@zeniai/web-cockpit-ui 2.0.3-qa → 2.0.4-qa
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/dist/assets/{Preview-BVyMJAPE.js → Preview-DMyryFTd.js} +1 -1
- package/dist/assets/{ScreenRoutes-CwLY_dkY.js → ScreenRoutes-Bs70iM7z.js} +1 -1
- package/dist/assets/{SignInScreen-CaI8wFiS.js → SignInScreen-8vIByTYi.js} +1 -1
- package/dist/assets/{analytics-CxbihAd3.js → analytics-DWHcOHaf.js} +1 -1
- package/dist/assets/{analyticsHelper-csAMKE5t.js → analyticsHelper-hrB0kxk3.js} +1 -1
- package/dist/assets/{core-Hv_-H1bU.js → core-DewJXbwB.js} +1 -1
- package/dist/assets/{dash.all.min-C3Ldwycm.js → dash.all.min-BB1DDnMC.js} +1 -1
- package/dist/assets/{empty-DhRBGhjm.js → empty-CEMSSzWM.js} +1 -1
- package/dist/assets/{empty-QRLZUlHa.js → empty-j_qPq0Zf.js} +1 -1
- package/dist/assets/{epic-KK3h4RfP.js → epic-lpTxTVvz.js} +1 -1
- package/dist/assets/{index-PgoCRaWL.js → index-BlJZ-dhR.js} +6941 -6915
- package/dist/assets/{index-Dph5v5C-.js → index-BmW3AUCZ.js} +1 -1
- package/dist/assets/{index-SKjzeIQp.js → index-C8sKyUYi.js} +2 -2
- package/dist/assets/{index-leO1smnu.js → index-CM88Ah5n.js} +1 -1
- package/dist/assets/{index-Bc1Qz0-0.js → index-CrtI5Ate.js} +1 -1
- package/dist/assets/{index-CMq9JvPe.js → index-D12uZmZI.js} +1 -1
- package/dist/assets/{index-Cw3F7LYn.js → index-fKyOV1-A.js} +1 -1
- package/dist/assets/{lexical-C-kCEErw.js → lexical-C519bmtq.js} +1 -1
- package/dist/assets/{liveblocks-DFTwHfDQ.js → liveblocks-C7Zupxea.js} +1 -1
- package/dist/assets/{lottie-B8znk3av.js → lottie-B7qludfH.js} +1 -1
- package/dist/assets/{mui-9V4sBmJH.js → mui-CiRrt3-Q.js} +1 -1
- package/dist/assets/{react-BdHy_3Z1.js → react-B6hE_Gvb.js} +1 -1
- package/dist/assets/{react-Cvl9RCSj.js → react-BjuRXFQH.js} +1 -1
- package/dist/assets/{react-Dp0F7YdG.js → react-BlrAehTt.js} +1 -1
- package/dist/assets/{react-CnRxfgat.js → react-CRDV8ihT.js} +1 -1
- package/dist/assets/{react-voAl-2TL.js → react-CgxLCPYS.js} +1 -1
- package/dist/assets/{react-VUnoXr6o.js → react-CitxChvf.js} +1 -1
- package/dist/assets/{react-Qs4XAm3M.js → react-DM6yR7Oj.js} +1 -1
- package/dist/assets/{react-CjHphctG.js → react-nVL-8NcM.js} +2 -2
- package/dist/assets/{recharts-5TLVAs9t.js → recharts-CKPbJuAx.js} +1 -1
- package/dist/assets/{sentry-BGg7q7oJ.js → sentry-CvrT50CN.js} +1 -1
- package/dist/assets/{url-DQukgrUm.js → url-Btpgetn5.js} +1 -1
- package/dist/assets/{url-Bld22Mre.js → url-CbczuHIs.js} +1 -1
- package/dist/assets/{utils--BZutJl7.js → utils-LaFOlRS7.js} +1 -1
- package/dist/assets/{zeni-epic-state-BfQhQ4UO.js → zeni-epic-state-CovB4gqb.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as h,b as a}from"./sentry-
|
|
1
|
+
import{a as h,b as a}from"./sentry-CvrT50CN.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new t.Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="6d600b3f-6c40-4b9e-8892-371ff81f1c30",t._sentryDebugIdIdentifier="sentry-dbid-6d600b3f-6c40-4b9e-8892-371ff81f1c30")}catch{}})();const c="64px",f={},k=({src:t,light:n,oEmbedUrl:r,onClickPreview:s,playIcon:m,previewTabIndex:I,previewAriaLabel:u})=>{const[p,o]=h.useState(null);h.useEffect(()=>{!t||!n||!r||_({src:t,light:n,oEmbedUrl:r})},[t,n,r]);const _=async({src:e,light:i,oEmbedUrl:E})=>{if(a.isValidElement(i))return;if(typeof i=="string"){o(i);return}if(f[e]){o(f[e]);return}o(null);const b=await(await fetch(E.replace("{url}",e))).json();if(b.thumbnail_url){const g=b.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");o(g),f[e]=g}},w=e=>{(e.key==="Enter"||e.key===" ")&&s?.(e)},v=e=>{s?.(e)},l=a.isValidElement(n),y={display:"flex",alignItems:"center",justifyContent:"center"},d={preview:{width:"100%",height:"100%",backgroundImage:p&&!l?`url(${p})`:void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer",...y},shadow:{background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:c,width:c,height:c,position:l?"absolute":void 0,...y},playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},x=a.createElement("div",{style:d.shadow,className:"react-player__shadow"},a.createElement("div",{style:d.playIcon,className:"react-player__play-icon"}));return a.createElement("div",{style:d.preview,className:"react-player__preview",tabIndex:I,onClick:v,onKeyDown:w,...u?{"aria-label":u}:{}},l?n:null,m||x)};var S=k;export{S as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{G1 as Pf,G2 as kf,jr as xt,ef as ps,G3 as jf,eo as Lf,ed as qf,G4 as Wt,ek as rn,G5 as id,G6 as ad,G7 as or,G8 as od,i2 as Nf,jt as At,h$ as sd,i6 as Df,G9 as ms,i8 as ud,i9 as cd,Ga as _r,Gb as sr,hx as ld,Gc as cn,Gd as Fo,c$ as fd,fx as Bo,fu as nn,fC as qt,fA as hd,Ge as Mf,Gf as Ff,ip as dd,il as pd,Gg as md,iA as gd,iv as gs,is as vd,ig as yd,Gh as _d,dX as bd,d5 as wd,jF as Bf,Gi as Ed,be as tn,ic as vs,ii as Sd,qp as Uf,js as ln,Gj as pt,iP as Uo,Gk as Rd,jL as Od,B as et,bi as Go,Gl as Td,hu as xd,Gm as Ad,Gn as Gf,Go as Id,oZ as ys,ou as Cd,Gp as Pd,oA as Rn,Gq as kd,oC as jd,Gr as Rt,or as Ld,cP as qd,jw as Vf,jx as $f,jv as Vo,ju as $o,jy as Nd,Gs as Dd,p0 as Md,Gt as Fd,oJ as Bd,oW as Ud,Gu as Gd,oN as Vd,Gv as $d,Gw as Yt,Gx as zo,Gy as zd,Gz as Hd,nv as Zd,nB as zf,GA as Hf,g$ as Wd,F7 as Zf,GB as Yd,F1 as Jd,GC as Kd,GD as Xd,nE as Qd,GE as ep,Fc as tp,F0 as rp,r_ as Wf,GF as On,GG as Yf,C9 as Ho,BX as np,Cc as Jf,B_ as ip,GH as ap,C3 as op,BR as sp,BU as up,GI as cp,Cg as lp,C6 as fp,bl as hp,bd as dp,GJ as pp,GK as Gt,GL as mp,GM as gp,GN as vp,iE as qo,iK as yp,ba as _p}from"./zeni-epic-state-BfQhQ4UO.js";import{j as U}from"./liveblocks-DFTwHfDQ.js";import{a as fe,p as ye,e as Kf,d as Xf,g as bp}from"./sentry-BGg7q7oJ.js";import{Z as ur,m as Dt,g as wp,V as wt,a as Qf,b as at,c as Ge,h as It,d as Mt,z as Je,i as Ep,u as Sp,F as Rp,l as Op,e as fn,f as Tp,D as cr,$ as hn,o as Lt,C as xp,q as Ap,j as Ot,n as dn,k as Nt,p as Ip,r as Cp,s as Tn,t as Pp,v as eh,w as kp,x as th,_ as rh,y as No,H as jp,I as Lp,A as qp,B as nh,E as Np,G as Dp,R as Mp,M as Fp,J as Bp,K as Up,L as Gp,N as Vp,O as $p,P as zp,Q as Hp,S as Zp,T as Wp}from"./index-PgoCRaWL.js";import{f as Yp}from"./analyticsHelper-csAMKE5t.js";import{i as Fe,n as Ze,g as Se,o as ot,N as rr,k as gt,l as Te,p as ih,h as $e,u as Zo,j as Do}from"./core-Hv_-H1bU.js";import{D as lr,n as tt,S as $t}from"./mui-9V4sBmJH.js";import{a as He,b as Jp,c as Kp,d as Xp,e as Wo,f as Qp,g as em,h as tm,i as zt,j as rm,k as ir,l as pn,m as nm,n as fr,o as im}from"./utils--BZutJl7.js";import{r as Yo}from"./empty-QRLZUlHa.js";import{r as hr,a as am}from"./index-CMq9JvPe.js";import{r as om}from"./index-Dph5v5C-.js";import"./recharts-5TLVAs9t.js";import"./lottie-B8znk3av.js";import"./analytics-CxbihAd3.js";import"./lexical-C-kCEErw.js";import"./url-Bld22Mre.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="af38e11e-3148-4752-afd9-8ad712530aec",e._sentryDebugIdIdentifier="sentry-dbid-af38e11e-3148-4752-afd9-8ad712530aec")}catch{}})();var xn={},_s;function mn(){return _s||(_s=1,function(e){var n=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function o(t,r){return Object.prototype.hasOwnProperty.call(t,r)}e.assign=function(t){for(var r=Array.prototype.slice.call(arguments,1);r.length;){var s=r.shift();if(s){if(typeof s!="object")throw new TypeError(s+"must be non-object");for(var d in s)o(s,d)&&(t[d]=s[d])}}return t},e.shrinkBuf=function(t,r){return t.length===r?t:t.subarray?t.subarray(0,r):(t.length=r,t)};var i={arraySet:function(t,r,s,d,l){if(r.subarray&&t.subarray){t.set(r.subarray(s,s+d),l);return}for(var f=0;f<d;f++)t[l+f]=r[s+f]},flattenChunks:function(t){var r,s,d,l,f,h;for(d=0,r=0,s=t.length;r<s;r++)d+=t[r].length;for(h=new Uint8Array(d),l=0,r=0,s=t.length;r<s;r++)f=t[r],h.set(f,l),l+=f.length;return h}},a={arraySet:function(t,r,s,d,l){for(var f=0;f<d;f++)t[l+f]=r[s+f]},flattenChunks:function(t){return[].concat.apply([],t)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,i)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,a))},e.setTyped(n)}(xn)),xn}var ut={},Ct={},bs;function sm(){if(bs)return Ct;bs=1;var e=mn(),n=4,o=0,i=1,a=2;function t(I){for(var ne=I.length;--ne>=0;)I[ne]=0}var r=0,s=1,d=2,l=3,f=258,h=29,c=256,w=c+1+h,m=30,y=19,g=2*w+1,u=15,_=16,E=7,v=256,b=16,x=17,O=18,C=[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],D=[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],Y=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],H=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S=512,R=new Array((w+2)*2);t(R);var L=new Array(m*2);t(L);var N=new Array(S);t(N);var V=new Array(f-l+1);t(V);var P=new Array(h);t(P);var j=new Array(m);t(j);function k(I,ne,se,le,Z){this.static_tree=I,this.extra_bits=ne,this.extra_base=se,this.elems=le,this.max_length=Z,this.has_stree=I&&I.length}var F,W,z;function B(I,ne){this.dyn_tree=I,this.max_code=0,this.stat_desc=ne}function q(I){return I<256?N[I]:N[256+(I>>>7)]}function M(I,ne){I.pending_buf[I.pending++]=ne&255,I.pending_buf[I.pending++]=ne>>>8&255}function G(I,ne,se){I.bi_valid>_-se?(I.bi_buf|=ne<<I.bi_valid&65535,M(I,I.bi_buf),I.bi_buf=ne>>_-I.bi_valid,I.bi_valid+=se-_):(I.bi_buf|=ne<<I.bi_valid&65535,I.bi_valid+=se)}function X(I,ne,se){G(I,se[ne*2],se[ne*2+1])}function K(I,ne){var se=0;do se|=I&1,I>>>=1,se<<=1;while(--ne>0);return se>>>1}function ae(I){I.bi_valid===16?(M(I,I.bi_buf),I.bi_buf=0,I.bi_valid=0):I.bi_valid>=8&&(I.pending_buf[I.pending++]=I.bi_buf&255,I.bi_buf>>=8,I.bi_valid-=8)}function ue(I,ne){var se=ne.dyn_tree,le=ne.max_code,Z=ne.stat_desc.static_tree,ie=ne.stat_desc.has_stree,T=ne.stat_desc.extra_bits,oe=ne.stat_desc.extra_base,be=ne.stat_desc.max_length,p,te,re,A,$,ee,_e=0;for(A=0;A<=u;A++)I.bl_count[A]=0;for(se[I.heap[I.heap_max]*2+1]=0,p=I.heap_max+1;p<g;p++)te=I.heap[p],A=se[se[te*2+1]*2+1]+1,A>be&&(A=be,_e++),se[te*2+1]=A,!(te>le)&&(I.bl_count[A]++,$=0,te>=oe&&($=T[te-oe]),ee=se[te*2],I.opt_len+=ee*(A+$),ie&&(I.static_len+=ee*(Z[te*2+1]+$)));if(_e!==0){do{for(A=be-1;I.bl_count[A]===0;)A--;I.bl_count[A]--,I.bl_count[A+1]+=2,I.bl_count[be]--,_e-=2}while(_e>0);for(A=be;A!==0;A--)for(te=I.bl_count[A];te!==0;)re=I.heap[--p],!(re>le)&&(se[re*2+1]!==A&&(I.opt_len+=(A-se[re*2+1])*se[re*2],se[re*2+1]=A),te--)}}function ve(I,ne,se){var le=new Array(u+1),Z=0,ie,T;for(ie=1;ie<=u;ie++)le[ie]=Z=Z+se[ie-1]<<1;for(T=0;T<=ne;T++){var oe=I[T*2+1];oe!==0&&(I[T*2]=K(le[oe]++,oe))}}function me(){var I,ne,se,le,Z,ie=new Array(u+1);for(se=0,le=0;le<h-1;le++)for(P[le]=se,I=0;I<1<<C[le];I++)V[se++]=le;for(V[se-1]=le,Z=0,le=0;le<16;le++)for(j[le]=Z,I=0;I<1<<D[le];I++)N[Z++]=le;for(Z>>=7;le<m;le++)for(j[le]=Z<<7,I=0;I<1<<D[le]-7;I++)N[256+Z++]=le;for(ne=0;ne<=u;ne++)ie[ne]=0;for(I=0;I<=143;)R[I*2+1]=8,I++,ie[8]++;for(;I<=255;)R[I*2+1]=9,I++,ie[9]++;for(;I<=279;)R[I*2+1]=7,I++,ie[7]++;for(;I<=287;)R[I*2+1]=8,I++,ie[8]++;for(ve(R,w+1,ie),I=0;I<m;I++)L[I*2+1]=5,L[I*2]=K(I,5);F=new k(R,C,c+1,w,u),W=new k(L,D,0,m,u),z=new k(new Array(0),Y,0,y,E)}function we(I){var ne;for(ne=0;ne<w;ne++)I.dyn_ltree[ne*2]=0;for(ne=0;ne<m;ne++)I.dyn_dtree[ne*2]=0;for(ne=0;ne<y;ne++)I.bl_tree[ne*2]=0;I.dyn_ltree[v*2]=1,I.opt_len=I.static_len=0,I.last_lit=I.matches=0}function Ce(I){I.bi_valid>8?M(I,I.bi_buf):I.bi_valid>0&&(I.pending_buf[I.pending++]=I.bi_buf),I.bi_buf=0,I.bi_valid=0}function ke(I,ne,se,le){Ce(I),M(I,se),M(I,~se),e.arraySet(I.pending_buf,I.window,ne,se,I.pending),I.pending+=se}function je(I,ne,se,le){var Z=ne*2,ie=se*2;return I[Z]<I[ie]||I[Z]===I[ie]&&le[ne]<=le[se]}function Ae(I,ne,se){for(var le=I.heap[se],Z=se<<1;Z<=I.heap_len&&(Z<I.heap_len&&je(ne,I.heap[Z+1],I.heap[Z],I.depth)&&Z++,!je(ne,le,I.heap[Z],I.depth));)I.heap[se]=I.heap[Z],se=Z,Z<<=1;I.heap[se]=le}function Ee(I,ne,se){var le,Z,ie=0,T,oe;if(I.last_lit!==0)do le=I.pending_buf[I.d_buf+ie*2]<<8|I.pending_buf[I.d_buf+ie*2+1],Z=I.pending_buf[I.l_buf+ie],ie++,le===0?X(I,Z,ne):(T=V[Z],X(I,T+c+1,ne),oe=C[T],oe!==0&&(Z-=P[T],G(I,Z,oe)),le--,T=q(le),X(I,T,se),oe=D[T],oe!==0&&(le-=j[T],G(I,le,oe)));while(ie<I.last_lit);X(I,v,ne)}function Ve(I,ne){var se=ne.dyn_tree,le=ne.stat_desc.static_tree,Z=ne.stat_desc.has_stree,ie=ne.stat_desc.elems,T,oe,be=-1,p;for(I.heap_len=0,I.heap_max=g,T=0;T<ie;T++)se[T*2]!==0?(I.heap[++I.heap_len]=be=T,I.depth[T]=0):se[T*2+1]=0;for(;I.heap_len<2;)p=I.heap[++I.heap_len]=be<2?++be:0,se[p*2]=1,I.depth[p]=0,I.opt_len--,Z&&(I.static_len-=le[p*2+1]);for(ne.max_code=be,T=I.heap_len>>1;T>=1;T--)Ae(I,se,T);p=ie;do T=I.heap[1],I.heap[1]=I.heap[I.heap_len--],Ae(I,se,1),oe=I.heap[1],I.heap[--I.heap_max]=T,I.heap[--I.heap_max]=oe,se[p*2]=se[T*2]+se[oe*2],I.depth[p]=(I.depth[T]>=I.depth[oe]?I.depth[T]:I.depth[oe])+1,se[T*2+1]=se[oe*2+1]=p,I.heap[1]=p++,Ae(I,se,1);while(I.heap_len>=2);I.heap[--I.heap_max]=I.heap[1],ue(I,ne),ve(se,be,I.bl_count)}function st(I,ne,se){var le,Z=-1,ie,T=ne[0*2+1],oe=0,be=7,p=4;for(T===0&&(be=138,p=3),ne[(se+1)*2+1]=65535,le=0;le<=se;le++)ie=T,T=ne[(le+1)*2+1],!(++oe<be&&ie===T)&&(oe<p?I.bl_tree[ie*2]+=oe:ie!==0?(ie!==Z&&I.bl_tree[ie*2]++,I.bl_tree[b*2]++):oe<=10?I.bl_tree[x*2]++:I.bl_tree[O*2]++,oe=0,Z=ie,T===0?(be=138,p=3):ie===T?(be=6,p=3):(be=7,p=4))}function qe(I,ne,se){var le,Z=-1,ie,T=ne[0*2+1],oe=0,be=7,p=4;for(T===0&&(be=138,p=3),le=0;le<=se;le++)if(ie=T,T=ne[(le+1)*2+1],!(++oe<be&&ie===T)){if(oe<p)do X(I,ie,I.bl_tree);while(--oe!==0);else ie!==0?(ie!==Z&&(X(I,ie,I.bl_tree),oe--),X(I,b,I.bl_tree),G(I,oe-3,2)):oe<=10?(X(I,x,I.bl_tree),G(I,oe-3,3)):(X(I,O,I.bl_tree),G(I,oe-11,7));oe=0,Z=ie,T===0?(be=138,p=3):ie===T?(be=6,p=3):(be=7,p=4)}}function De(I){var ne;for(st(I,I.dyn_ltree,I.l_desc.max_code),st(I,I.dyn_dtree,I.d_desc.max_code),Ve(I,I.bl_desc),ne=y-1;ne>=3&&I.bl_tree[H[ne]*2+1]===0;ne--);return I.opt_len+=3*(ne+1)+5+5+4,ne}function We(I,ne,se,le){var Z;for(G(I,ne-257,5),G(I,se-1,5),G(I,le-4,4),Z=0;Z<le;Z++)G(I,I.bl_tree[H[Z]*2+1],3);qe(I,I.dyn_ltree,ne-1),qe(I,I.dyn_dtree,se-1)}function J(I){var ne=4093624447,se;for(se=0;se<=31;se++,ne>>>=1)if(ne&1&&I.dyn_ltree[se*2]!==0)return o;if(I.dyn_ltree[9*2]!==0||I.dyn_ltree[10*2]!==0||I.dyn_ltree[13*2]!==0)return i;for(se=32;se<c;se++)if(I.dyn_ltree[se*2]!==0)return i;return o}var Q=!1;function ce(I){Q||(me(),Q=!0),I.l_desc=new B(I.dyn_ltree,F),I.d_desc=new B(I.dyn_dtree,W),I.bl_desc=new B(I.bl_tree,z),I.bi_buf=0,I.bi_valid=0,we(I)}function ge(I,ne,se,le){G(I,(r<<1)+(le?1:0),3),ke(I,ne,se)}function he(I){G(I,s<<1,3),X(I,v,R),ae(I)}function Re(I,ne,se,le){var Z,ie,T=0;I.level>0?(I.strm.data_type===a&&(I.strm.data_type=J(I)),Ve(I,I.l_desc),Ve(I,I.d_desc),T=De(I),Z=I.opt_len+3+7>>>3,ie=I.static_len+3+7>>>3,ie<=Z&&(Z=ie)):Z=ie=se+5,se+4<=Z&&ne!==-1?ge(I,ne,se,le):I.strategy===n||ie===Z?(G(I,(s<<1)+(le?1:0),3),Ee(I,R,L)):(G(I,(d<<1)+(le?1:0),3),We(I,I.l_desc.max_code+1,I.d_desc.max_code+1,T+1),Ee(I,I.dyn_ltree,I.dyn_dtree)),we(I),le&&Ce(I)}function Oe(I,ne,se){return I.pending_buf[I.d_buf+I.last_lit*2]=ne>>>8&255,I.pending_buf[I.d_buf+I.last_lit*2+1]=ne&255,I.pending_buf[I.l_buf+I.last_lit]=se&255,I.last_lit++,ne===0?I.dyn_ltree[se*2]++:(I.matches++,ne--,I.dyn_ltree[(V[se]+c+1)*2]++,I.dyn_dtree[q(ne)*2]++),I.last_lit===I.lit_bufsize-1}return Ct._tr_init=ce,Ct._tr_stored_block=ge,Ct._tr_flush_block=Re,Ct._tr_tally=Oe,Ct._tr_align=he,Ct}var An,ws;function ah(){if(ws)return An;ws=1;function e(n,o,i,a){for(var t=n&65535|0,r=n>>>16&65535|0,s=0;i!==0;){s=i>2e3?2e3:i,i-=s;do t=t+o[a++]|0,r=r+t|0;while(--s);t%=65521,r%=65521}return t|r<<16|0}return An=e,An}var In,Es;function oh(){if(Es)return In;Es=1;function e(){for(var i,a=[],t=0;t<256;t++){i=t;for(var r=0;r<8;r++)i=i&1?3988292384^i>>>1:i>>>1;a[t]=i}return a}var n=e();function o(i,a,t,r){var s=n,d=r+t;i^=-1;for(var l=r;l<d;l++)i=i>>>8^s[(i^a[l])&255];return i^-1}return In=o,In}var Cn,Ss;function um(){return Ss||(Ss=1,Cn={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"}),Cn}var Rs;function cm(){if(Rs)return ut;Rs=1;var e=mn(),n=sm(),o=ah(),i=oh(),a=um(),t=0,r=1,s=3,d=4,l=5,f=0,h=1,c=-2,w=-3,m=-5,y=-1,g=1,u=2,_=3,E=4,v=0,b=2,x=8,O=9,C=15,D=8,Y=29,H=256,S=H+1+Y,R=30,L=19,N=2*S+1,V=15,P=3,j=258,k=j+P+1,F=32,W=42,z=69,B=73,q=91,M=103,G=113,X=666,K=1,ae=2,ue=3,ve=4,me=3;function we(p,te){return p.msg=a[te],te}function Ce(p){return(p<<1)-(p>4?9:0)}function ke(p){for(var te=p.length;--te>=0;)p[te]=0}function je(p){var te=p.state,re=te.pending;re>p.avail_out&&(re=p.avail_out),re!==0&&(e.arraySet(p.output,te.pending_buf,te.pending_out,re,p.next_out),p.next_out+=re,te.pending_out+=re,p.total_out+=re,p.avail_out-=re,te.pending-=re,te.pending===0&&(te.pending_out=0))}function Ae(p,te){n._tr_flush_block(p,p.block_start>=0?p.block_start:-1,p.strstart-p.block_start,te),p.block_start=p.strstart,je(p.strm)}function Ee(p,te){p.pending_buf[p.pending++]=te}function Ve(p,te){p.pending_buf[p.pending++]=te>>>8&255,p.pending_buf[p.pending++]=te&255}function st(p,te,re,A){var $=p.avail_in;return $>A&&($=A),$===0?0:(p.avail_in-=$,e.arraySet(te,p.input,p.next_in,$,re),p.state.wrap===1?p.adler=o(p.adler,te,$,re):p.state.wrap===2&&(p.adler=i(p.adler,te,$,re)),p.next_in+=$,p.total_in+=$,$)}function qe(p,te){var re=p.max_chain_length,A=p.strstart,$,ee,_e=p.prev_length,de=p.nice_match,pe=p.strstart>p.w_size-k?p.strstart-(p.w_size-k):0,xe=p.window,vt=p.w_mask,Le=p.prev,Ie=p.strstart+j,Be=xe[A+_e-1],Ye=xe[A+_e];p.prev_length>=p.good_match&&(re>>=2),de>p.lookahead&&(de=p.lookahead);do if($=te,!(xe[$+_e]!==Ye||xe[$+_e-1]!==Be||xe[$]!==xe[A]||xe[++$]!==xe[A+1])){A+=2,$++;do;while(xe[++A]===xe[++$]&&xe[++A]===xe[++$]&&xe[++A]===xe[++$]&&xe[++A]===xe[++$]&&xe[++A]===xe[++$]&&xe[++A]===xe[++$]&&xe[++A]===xe[++$]&&xe[++A]===xe[++$]&&A<Ie);if(ee=j-(Ie-A),A=Ie-j,ee>_e){if(p.match_start=te,_e=ee,ee>=de)break;Be=xe[A+_e-1],Ye=xe[A+_e]}}while((te=Le[te&vt])>pe&&--re!==0);return _e<=p.lookahead?_e:p.lookahead}function De(p){var te=p.w_size,re,A,$,ee,_e;do{if(ee=p.window_size-p.lookahead-p.strstart,p.strstart>=te+(te-k)){e.arraySet(p.window,p.window,te,te,0),p.match_start-=te,p.strstart-=te,p.block_start-=te,A=p.hash_size,re=A;do $=p.head[--re],p.head[re]=$>=te?$-te:0;while(--A);A=te,re=A;do $=p.prev[--re],p.prev[re]=$>=te?$-te:0;while(--A);ee+=te}if(p.strm.avail_in===0)break;if(A=st(p.strm,p.window,p.strstart+p.lookahead,ee),p.lookahead+=A,p.lookahead+p.insert>=P)for(_e=p.strstart-p.insert,p.ins_h=p.window[_e],p.ins_h=(p.ins_h<<p.hash_shift^p.window[_e+1])&p.hash_mask;p.insert&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[_e+P-1])&p.hash_mask,p.prev[_e&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=_e,_e++,p.insert--,!(p.lookahead+p.insert<P)););}while(p.lookahead<k&&p.strm.avail_in!==0)}function We(p,te){var re=65535;for(re>p.pending_buf_size-5&&(re=p.pending_buf_size-5);;){if(p.lookahead<=1){if(De(p),p.lookahead===0&&te===t)return K;if(p.lookahead===0)break}p.strstart+=p.lookahead,p.lookahead=0;var A=p.block_start+re;if((p.strstart===0||p.strstart>=A)&&(p.lookahead=p.strstart-A,p.strstart=A,Ae(p,!1),p.strm.avail_out===0)||p.strstart-p.block_start>=p.w_size-k&&(Ae(p,!1),p.strm.avail_out===0))return K}return p.insert=0,te===d?(Ae(p,!0),p.strm.avail_out===0?ue:ve):(p.strstart>p.block_start&&(Ae(p,!1),p.strm.avail_out===0),K)}function J(p,te){for(var re,A;;){if(p.lookahead<k){if(De(p),p.lookahead<k&&te===t)return K;if(p.lookahead===0)break}if(re=0,p.lookahead>=P&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+P-1])&p.hash_mask,re=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart),re!==0&&p.strstart-re<=p.w_size-k&&(p.match_length=qe(p,re)),p.match_length>=P)if(A=n._tr_tally(p,p.strstart-p.match_start,p.match_length-P),p.lookahead-=p.match_length,p.match_length<=p.max_lazy_match&&p.lookahead>=P){p.match_length--;do p.strstart++,p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+P-1])&p.hash_mask,re=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart;while(--p.match_length!==0);p.strstart++}else p.strstart+=p.match_length,p.match_length=0,p.ins_h=p.window[p.strstart],p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+1])&p.hash_mask;else A=n._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++;if(A&&(Ae(p,!1),p.strm.avail_out===0))return K}return p.insert=p.strstart<P-1?p.strstart:P-1,te===d?(Ae(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ae(p,!1),p.strm.avail_out===0)?K:ae}function Q(p,te){for(var re,A,$;;){if(p.lookahead<k){if(De(p),p.lookahead<k&&te===t)return K;if(p.lookahead===0)break}if(re=0,p.lookahead>=P&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+P-1])&p.hash_mask,re=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart),p.prev_length=p.match_length,p.prev_match=p.match_start,p.match_length=P-1,re!==0&&p.prev_length<p.max_lazy_match&&p.strstart-re<=p.w_size-k&&(p.match_length=qe(p,re),p.match_length<=5&&(p.strategy===g||p.match_length===P&&p.strstart-p.match_start>4096)&&(p.match_length=P-1)),p.prev_length>=P&&p.match_length<=p.prev_length){$=p.strstart+p.lookahead-P,A=n._tr_tally(p,p.strstart-1-p.prev_match,p.prev_length-P),p.lookahead-=p.prev_length-1,p.prev_length-=2;do++p.strstart<=$&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+P-1])&p.hash_mask,re=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart);while(--p.prev_length!==0);if(p.match_available=0,p.match_length=P-1,p.strstart++,A&&(Ae(p,!1),p.strm.avail_out===0))return K}else if(p.match_available){if(A=n._tr_tally(p,0,p.window[p.strstart-1]),A&&Ae(p,!1),p.strstart++,p.lookahead--,p.strm.avail_out===0)return K}else p.match_available=1,p.strstart++,p.lookahead--}return p.match_available&&(A=n._tr_tally(p,0,p.window[p.strstart-1]),p.match_available=0),p.insert=p.strstart<P-1?p.strstart:P-1,te===d?(Ae(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ae(p,!1),p.strm.avail_out===0)?K:ae}function ce(p,te){for(var re,A,$,ee,_e=p.window;;){if(p.lookahead<=j){if(De(p),p.lookahead<=j&&te===t)return K;if(p.lookahead===0)break}if(p.match_length=0,p.lookahead>=P&&p.strstart>0&&($=p.strstart-1,A=_e[$],A===_e[++$]&&A===_e[++$]&&A===_e[++$])){ee=p.strstart+j;do;while(A===_e[++$]&&A===_e[++$]&&A===_e[++$]&&A===_e[++$]&&A===_e[++$]&&A===_e[++$]&&A===_e[++$]&&A===_e[++$]&&$<ee);p.match_length=j-(ee-$),p.match_length>p.lookahead&&(p.match_length=p.lookahead)}if(p.match_length>=P?(re=n._tr_tally(p,1,p.match_length-P),p.lookahead-=p.match_length,p.strstart+=p.match_length,p.match_length=0):(re=n._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++),re&&(Ae(p,!1),p.strm.avail_out===0))return K}return p.insert=0,te===d?(Ae(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ae(p,!1),p.strm.avail_out===0)?K:ae}function ge(p,te){for(var re;;){if(p.lookahead===0&&(De(p),p.lookahead===0)){if(te===t)return K;break}if(p.match_length=0,re=n._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++,re&&(Ae(p,!1),p.strm.avail_out===0))return K}return p.insert=0,te===d?(Ae(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ae(p,!1),p.strm.avail_out===0)?K:ae}function he(p,te,re,A,$){this.good_length=p,this.max_lazy=te,this.nice_length=re,this.max_chain=A,this.func=$}var Re;Re=[new he(0,0,0,0,We),new he(4,4,8,4,J),new he(4,5,16,8,J),new he(4,6,32,32,J),new he(4,4,16,16,Q),new he(8,16,32,32,Q),new he(8,16,128,128,Q),new he(8,32,128,256,Q),new he(32,128,258,1024,Q),new he(32,258,258,4096,Q)];function Oe(p){p.window_size=2*p.w_size,ke(p.head),p.max_lazy_match=Re[p.level].max_lazy,p.good_match=Re[p.level].good_length,p.nice_match=Re[p.level].nice_length,p.max_chain_length=Re[p.level].max_chain,p.strstart=0,p.block_start=0,p.lookahead=0,p.insert=0,p.match_length=p.prev_length=P-1,p.match_available=0,p.ins_h=0}function I(){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=x,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 e.Buf16(N*2),this.dyn_dtree=new e.Buf16((2*R+1)*2),this.bl_tree=new e.Buf16((2*L+1)*2),ke(this.dyn_ltree),ke(this.dyn_dtree),ke(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new e.Buf16(V+1),this.heap=new e.Buf16(2*S+1),ke(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new e.Buf16(2*S+1),ke(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 ne(p){var te;return!p||!p.state?we(p,c):(p.total_in=p.total_out=0,p.data_type=b,te=p.state,te.pending=0,te.pending_out=0,te.wrap<0&&(te.wrap=-te.wrap),te.status=te.wrap?W:G,p.adler=te.wrap===2?0:1,te.last_flush=t,n._tr_init(te),f)}function se(p){var te=ne(p);return te===f&&Oe(p.state),te}function le(p,te){return!p||!p.state||p.state.wrap!==2?c:(p.state.gzhead=te,f)}function Z(p,te,re,A,$,ee){if(!p)return c;var _e=1;if(te===y&&(te=6),A<0?(_e=0,A=-A):A>15&&(_e=2,A-=16),$<1||$>O||re!==x||A<8||A>15||te<0||te>9||ee<0||ee>E)return we(p,c);A===8&&(A=9);var de=new I;return p.state=de,de.strm=p,de.wrap=_e,de.gzhead=null,de.w_bits=A,de.w_size=1<<de.w_bits,de.w_mask=de.w_size-1,de.hash_bits=$+7,de.hash_size=1<<de.hash_bits,de.hash_mask=de.hash_size-1,de.hash_shift=~~((de.hash_bits+P-1)/P),de.window=new e.Buf8(de.w_size*2),de.head=new e.Buf16(de.hash_size),de.prev=new e.Buf16(de.w_size),de.lit_bufsize=1<<$+6,de.pending_buf_size=de.lit_bufsize*4,de.pending_buf=new e.Buf8(de.pending_buf_size),de.d_buf=1*de.lit_bufsize,de.l_buf=3*de.lit_bufsize,de.level=te,de.strategy=ee,de.method=re,se(p)}function ie(p,te){return Z(p,te,x,C,D,v)}function T(p,te){var re,A,$,ee;if(!p||!p.state||te>l||te<0)return p?we(p,c):c;if(A=p.state,!p.output||!p.input&&p.avail_in!==0||A.status===X&&te!==d)return we(p,p.avail_out===0?m:c);if(A.strm=p,re=A.last_flush,A.last_flush=te,A.status===W)if(A.wrap===2)p.adler=0,Ee(A,31),Ee(A,139),Ee(A,8),A.gzhead?(Ee(A,(A.gzhead.text?1:0)+(A.gzhead.hcrc?2:0)+(A.gzhead.extra?4:0)+(A.gzhead.name?8:0)+(A.gzhead.comment?16:0)),Ee(A,A.gzhead.time&255),Ee(A,A.gzhead.time>>8&255),Ee(A,A.gzhead.time>>16&255),Ee(A,A.gzhead.time>>24&255),Ee(A,A.level===9?2:A.strategy>=u||A.level<2?4:0),Ee(A,A.gzhead.os&255),A.gzhead.extra&&A.gzhead.extra.length&&(Ee(A,A.gzhead.extra.length&255),Ee(A,A.gzhead.extra.length>>8&255)),A.gzhead.hcrc&&(p.adler=i(p.adler,A.pending_buf,A.pending,0)),A.gzindex=0,A.status=z):(Ee(A,0),Ee(A,0),Ee(A,0),Ee(A,0),Ee(A,0),Ee(A,A.level===9?2:A.strategy>=u||A.level<2?4:0),Ee(A,me),A.status=G);else{var _e=x+(A.w_bits-8<<4)<<8,de=-1;A.strategy>=u||A.level<2?de=0:A.level<6?de=1:A.level===6?de=2:de=3,_e|=de<<6,A.strstart!==0&&(_e|=F),_e+=31-_e%31,A.status=G,Ve(A,_e),A.strstart!==0&&(Ve(A,p.adler>>>16),Ve(A,p.adler&65535)),p.adler=1}if(A.status===z)if(A.gzhead.extra){for($=A.pending;A.gzindex<(A.gzhead.extra.length&65535)&&!(A.pending===A.pending_buf_size&&(A.gzhead.hcrc&&A.pending>$&&(p.adler=i(p.adler,A.pending_buf,A.pending-$,$)),je(p),$=A.pending,A.pending===A.pending_buf_size));)Ee(A,A.gzhead.extra[A.gzindex]&255),A.gzindex++;A.gzhead.hcrc&&A.pending>$&&(p.adler=i(p.adler,A.pending_buf,A.pending-$,$)),A.gzindex===A.gzhead.extra.length&&(A.gzindex=0,A.status=B)}else A.status=B;if(A.status===B)if(A.gzhead.name){$=A.pending;do{if(A.pending===A.pending_buf_size&&(A.gzhead.hcrc&&A.pending>$&&(p.adler=i(p.adler,A.pending_buf,A.pending-$,$)),je(p),$=A.pending,A.pending===A.pending_buf_size)){ee=1;break}A.gzindex<A.gzhead.name.length?ee=A.gzhead.name.charCodeAt(A.gzindex++)&255:ee=0,Ee(A,ee)}while(ee!==0);A.gzhead.hcrc&&A.pending>$&&(p.adler=i(p.adler,A.pending_buf,A.pending-$,$)),ee===0&&(A.gzindex=0,A.status=q)}else A.status=q;if(A.status===q)if(A.gzhead.comment){$=A.pending;do{if(A.pending===A.pending_buf_size&&(A.gzhead.hcrc&&A.pending>$&&(p.adler=i(p.adler,A.pending_buf,A.pending-$,$)),je(p),$=A.pending,A.pending===A.pending_buf_size)){ee=1;break}A.gzindex<A.gzhead.comment.length?ee=A.gzhead.comment.charCodeAt(A.gzindex++)&255:ee=0,Ee(A,ee)}while(ee!==0);A.gzhead.hcrc&&A.pending>$&&(p.adler=i(p.adler,A.pending_buf,A.pending-$,$)),ee===0&&(A.status=M)}else A.status=M;if(A.status===M&&(A.gzhead.hcrc?(A.pending+2>A.pending_buf_size&&je(p),A.pending+2<=A.pending_buf_size&&(Ee(A,p.adler&255),Ee(A,p.adler>>8&255),p.adler=0,A.status=G)):A.status=G),A.pending!==0){if(je(p),p.avail_out===0)return A.last_flush=-1,f}else if(p.avail_in===0&&Ce(te)<=Ce(re)&&te!==d)return we(p,m);if(A.status===X&&p.avail_in!==0)return we(p,m);if(p.avail_in!==0||A.lookahead!==0||te!==t&&A.status!==X){var pe=A.strategy===u?ge(A,te):A.strategy===_?ce(A,te):Re[A.level].func(A,te);if((pe===ue||pe===ve)&&(A.status=X),pe===K||pe===ue)return p.avail_out===0&&(A.last_flush=-1),f;if(pe===ae&&(te===r?n._tr_align(A):te!==l&&(n._tr_stored_block(A,0,0,!1),te===s&&(ke(A.head),A.lookahead===0&&(A.strstart=0,A.block_start=0,A.insert=0))),je(p),p.avail_out===0))return A.last_flush=-1,f}return te!==d?f:A.wrap<=0?h:(A.wrap===2?(Ee(A,p.adler&255),Ee(A,p.adler>>8&255),Ee(A,p.adler>>16&255),Ee(A,p.adler>>24&255),Ee(A,p.total_in&255),Ee(A,p.total_in>>8&255),Ee(A,p.total_in>>16&255),Ee(A,p.total_in>>24&255)):(Ve(A,p.adler>>>16),Ve(A,p.adler&65535)),je(p),A.wrap>0&&(A.wrap=-A.wrap),A.pending!==0?f:h)}function oe(p){var te;return!p||!p.state?c:(te=p.state.status,te!==W&&te!==z&&te!==B&&te!==q&&te!==M&&te!==G&&te!==X?we(p,c):(p.state=null,te===G?we(p,w):f))}function be(p,te){var re=te.length,A,$,ee,_e,de,pe,xe,vt;if(!p||!p.state||(A=p.state,_e=A.wrap,_e===2||_e===1&&A.status!==W||A.lookahead))return c;for(_e===1&&(p.adler=o(p.adler,te,re,0)),A.wrap=0,re>=A.w_size&&(_e===0&&(ke(A.head),A.strstart=0,A.block_start=0,A.insert=0),vt=new e.Buf8(A.w_size),e.arraySet(vt,te,re-A.w_size,A.w_size,0),te=vt,re=A.w_size),de=p.avail_in,pe=p.next_in,xe=p.input,p.avail_in=re,p.next_in=0,p.input=te,De(A);A.lookahead>=P;){$=A.strstart,ee=A.lookahead-(P-1);do A.ins_h=(A.ins_h<<A.hash_shift^A.window[$+P-1])&A.hash_mask,A.prev[$&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=$,$++;while(--ee);A.strstart=$,A.lookahead=P-1,De(A)}return A.strstart+=A.lookahead,A.block_start=A.strstart,A.insert=A.lookahead,A.lookahead=0,A.match_length=A.prev_length=P-1,A.match_available=0,p.next_in=pe,p.input=xe,p.avail_in=de,A.wrap=_e,f}return ut.deflateInit=ie,ut.deflateInit2=Z,ut.deflateReset=se,ut.deflateResetKeep=ne,ut.deflateSetHeader=le,ut.deflate=T,ut.deflateEnd=oe,ut.deflateSetDictionary=be,ut.deflateInfo="pako deflate (from Nodeca project)",ut}var Pn,Os;function lm(){if(Os)return Pn;Os=1;function e(){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}return Pn=e,Pn}var it={},kn,Ts;function fm(){if(Ts)return kn;Ts=1;var e=30,n=12;return kn=function(i,a){var t,r,s,d,l,f,h,c,w,m,y,g,u,_,E,v,b,x,O,C,D,Y,H,S,R;t=i.state,r=i.next_in,S=i.input,s=r+(i.avail_in-5),d=i.next_out,R=i.output,l=d-(a-i.avail_out),f=d+(i.avail_out-257),h=t.dmax,c=t.wsize,w=t.whave,m=t.wnext,y=t.window,g=t.hold,u=t.bits,_=t.lencode,E=t.distcode,v=(1<<t.lenbits)-1,b=(1<<t.distbits)-1;e:do{u<15&&(g+=S[r++]<<u,u+=8,g+=S[r++]<<u,u+=8),x=_[g&v];t:for(;;){if(O=x>>>24,g>>>=O,u-=O,O=x>>>16&255,O===0)R[d++]=x&65535;else if(O&16){C=x&65535,O&=15,O&&(u<O&&(g+=S[r++]<<u,u+=8),C+=g&(1<<O)-1,g>>>=O,u-=O),u<15&&(g+=S[r++]<<u,u+=8,g+=S[r++]<<u,u+=8),x=E[g&b];r:for(;;){if(O=x>>>24,g>>>=O,u-=O,O=x>>>16&255,O&16){if(D=x&65535,O&=15,u<O&&(g+=S[r++]<<u,u+=8,u<O&&(g+=S[r++]<<u,u+=8)),D+=g&(1<<O)-1,D>h){i.msg="invalid distance too far back",t.mode=e;break e}if(g>>>=O,u-=O,O=d-l,D>O){if(O=D-O,O>w&&t.sane){i.msg="invalid distance too far back",t.mode=e;break e}if(Y=0,H=y,m===0){if(Y+=c-O,O<C){C-=O;do R[d++]=y[Y++];while(--O);Y=d-D,H=R}}else if(m<O){if(Y+=c+m-O,O-=m,O<C){C-=O;do R[d++]=y[Y++];while(--O);if(Y=0,m<C){O=m,C-=O;do R[d++]=y[Y++];while(--O);Y=d-D,H=R}}}else if(Y+=m-O,O<C){C-=O;do R[d++]=y[Y++];while(--O);Y=d-D,H=R}for(;C>2;)R[d++]=H[Y++],R[d++]=H[Y++],R[d++]=H[Y++],C-=3;C&&(R[d++]=H[Y++],C>1&&(R[d++]=H[Y++]))}else{Y=d-D;do R[d++]=R[Y++],R[d++]=R[Y++],R[d++]=R[Y++],C-=3;while(C>2);C&&(R[d++]=R[Y++],C>1&&(R[d++]=R[Y++]))}}else if((O&64)===0){x=E[(x&65535)+(g&(1<<O)-1)];continue r}else{i.msg="invalid distance code",t.mode=e;break e}break}}else if((O&64)===0){x=_[(x&65535)+(g&(1<<O)-1)];continue t}else if(O&32){t.mode=n;break e}else{i.msg="invalid literal/length code",t.mode=e;break e}break}}while(r<s&&d<f);C=u>>3,r-=C,u-=C<<3,g&=(1<<u)-1,i.next_in=r,i.next_out=d,i.avail_in=r<s?5+(s-r):5-(r-s),i.avail_out=d<f?257+(f-d):257-(d-f),t.hold=g,t.bits=u},kn}var jn,xs;function hm(){if(xs)return jn;xs=1;var e=mn(),n=15,o=852,i=592,a=0,t=1,r=2,s=[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],d=[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],l=[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],f=[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];return jn=function(c,w,m,y,g,u,_,E){var v=E.bits,b=0,x=0,O=0,C=0,D=0,Y=0,H=0,S=0,R=0,L=0,N,V,P,j,k,F=null,W=0,z,B=new e.Buf16(n+1),q=new e.Buf16(n+1),M=null,G=0,X,K,ae;for(b=0;b<=n;b++)B[b]=0;for(x=0;x<y;x++)B[w[m+x]]++;for(D=v,C=n;C>=1&&B[C]===0;C--);if(D>C&&(D=C),C===0)return g[u++]=1<<24|64<<16|0,g[u++]=1<<24|64<<16|0,E.bits=1,0;for(O=1;O<C&&B[O]===0;O++);for(D<O&&(D=O),S=1,b=1;b<=n;b++)if(S<<=1,S-=B[b],S<0)return-1;if(S>0&&(c===a||C!==1))return-1;for(q[1]=0,b=1;b<n;b++)q[b+1]=q[b]+B[b];for(x=0;x<y;x++)w[m+x]!==0&&(_[q[w[m+x]]++]=x);if(c===a?(F=M=_,z=19):c===t?(F=s,W-=257,M=d,G-=257,z=256):(F=l,M=f,z=-1),L=0,x=0,b=O,k=u,Y=D,H=0,P=-1,R=1<<D,j=R-1,c===t&&R>o||c===r&&R>i)return 1;for(;;){X=b-H,_[x]<z?(K=0,ae=_[x]):_[x]>z?(K=M[G+_[x]],ae=F[W+_[x]]):(K=96,ae=0),N=1<<b-H,V=1<<Y,O=V;do V-=N,g[k+(L>>H)+V]=X<<24|K<<16|ae|0;while(V!==0);for(N=1<<b-1;L&N;)N>>=1;if(N!==0?(L&=N-1,L+=N):L=0,x++,--B[b]===0){if(b===C)break;b=w[m+_[x]]}if(b>D&&(L&j)!==P){for(H===0&&(H=D),k+=O,Y=b-H,S=1<<Y;Y+H<C&&(S-=B[Y+H],!(S<=0));)Y++,S<<=1;if(R+=1<<Y,c===t&&R>o||c===r&&R>i)return 1;P=L&j,g[P]=D<<24|Y<<16|k-u|0}}return L!==0&&(g[k+L]=b-H<<24|64<<16|0),E.bits=D,0},jn}var As;function dm(){if(As)return it;As=1;var e=mn(),n=ah(),o=oh(),i=fm(),a=hm(),t=0,r=1,s=2,d=4,l=5,f=6,h=0,c=1,w=2,m=-2,y=-3,g=-4,u=-5,_=8,E=1,v=2,b=3,x=4,O=5,C=6,D=7,Y=8,H=9,S=10,R=11,L=12,N=13,V=14,P=15,j=16,k=17,F=18,W=19,z=20,B=21,q=22,M=23,G=24,X=25,K=26,ae=27,ue=28,ve=29,me=30,we=31,Ce=32,ke=852,je=592,Ae=15,Ee=Ae;function Ve(Z){return(Z>>>24&255)+(Z>>>8&65280)+((Z&65280)<<8)+((Z&255)<<24)}function st(){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 e.Buf16(320),this.work=new e.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function qe(Z){var ie;return!Z||!Z.state?m:(ie=Z.state,Z.total_in=Z.total_out=ie.total=0,Z.msg="",ie.wrap&&(Z.adler=ie.wrap&1),ie.mode=E,ie.last=0,ie.havedict=0,ie.dmax=32768,ie.head=null,ie.hold=0,ie.bits=0,ie.lencode=ie.lendyn=new e.Buf32(ke),ie.distcode=ie.distdyn=new e.Buf32(je),ie.sane=1,ie.back=-1,h)}function De(Z){var ie;return!Z||!Z.state?m:(ie=Z.state,ie.wsize=0,ie.whave=0,ie.wnext=0,qe(Z))}function We(Z,ie){var T,oe;return!Z||!Z.state||(oe=Z.state,ie<0?(T=0,ie=-ie):(T=(ie>>4)+1,ie<48&&(ie&=15)),ie&&(ie<8||ie>15))?m:(oe.window!==null&&oe.wbits!==ie&&(oe.window=null),oe.wrap=T,oe.wbits=ie,De(Z))}function J(Z,ie){var T,oe;return Z?(oe=new st,Z.state=oe,oe.window=null,T=We(Z,ie),T!==h&&(Z.state=null),T):m}function Q(Z){return J(Z,Ee)}var ce=!0,ge,he;function Re(Z){if(ce){var ie;for(ge=new e.Buf32(512),he=new e.Buf32(32),ie=0;ie<144;)Z.lens[ie++]=8;for(;ie<256;)Z.lens[ie++]=9;for(;ie<280;)Z.lens[ie++]=7;for(;ie<288;)Z.lens[ie++]=8;for(a(r,Z.lens,0,288,ge,0,Z.work,{bits:9}),ie=0;ie<32;)Z.lens[ie++]=5;a(s,Z.lens,0,32,he,0,Z.work,{bits:5}),ce=!1}Z.lencode=ge,Z.lenbits=9,Z.distcode=he,Z.distbits=5}function Oe(Z,ie,T,oe){var be,p=Z.state;return p.window===null&&(p.wsize=1<<p.wbits,p.wnext=0,p.whave=0,p.window=new e.Buf8(p.wsize)),oe>=p.wsize?(e.arraySet(p.window,ie,T-p.wsize,p.wsize,0),p.wnext=0,p.whave=p.wsize):(be=p.wsize-p.wnext,be>oe&&(be=oe),e.arraySet(p.window,ie,T-oe,be,p.wnext),oe-=be,oe?(e.arraySet(p.window,ie,T-oe,oe,0),p.wnext=oe,p.whave=p.wsize):(p.wnext+=be,p.wnext===p.wsize&&(p.wnext=0),p.whave<p.wsize&&(p.whave+=be))),0}function I(Z,ie){var T,oe,be,p,te,re,A,$,ee,_e,de,pe,xe,vt,Le=0,Ie,Be,Ye,Xe,vr,yr,Me,nt,ze=new e.Buf8(4),yt,ht,ds=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!Z||!Z.state||!Z.output||!Z.input&&Z.avail_in!==0)return m;T=Z.state,T.mode===L&&(T.mode=N),te=Z.next_out,be=Z.output,A=Z.avail_out,p=Z.next_in,oe=Z.input,re=Z.avail_in,$=T.hold,ee=T.bits,_e=re,de=A,nt=h;e:for(;;)switch(T.mode){case E:if(T.wrap===0){T.mode=N;break}for(;ee<16;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}if(T.wrap&2&&$===35615){T.check=0,ze[0]=$&255,ze[1]=$>>>8&255,T.check=o(T.check,ze,2,0),$=0,ee=0,T.mode=v;break}if(T.flags=0,T.head&&(T.head.done=!1),!(T.wrap&1)||((($&255)<<8)+($>>8))%31){Z.msg="incorrect header check",T.mode=me;break}if(($&15)!==_){Z.msg="unknown compression method",T.mode=me;break}if($>>>=4,ee-=4,Me=($&15)+8,T.wbits===0)T.wbits=Me;else if(Me>T.wbits){Z.msg="invalid window size",T.mode=me;break}T.dmax=1<<Me,Z.adler=T.check=1,T.mode=$&512?S:L,$=0,ee=0;break;case v:for(;ee<16;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}if(T.flags=$,(T.flags&255)!==_){Z.msg="unknown compression method",T.mode=me;break}if(T.flags&57344){Z.msg="unknown header flags set",T.mode=me;break}T.head&&(T.head.text=$>>8&1),T.flags&512&&(ze[0]=$&255,ze[1]=$>>>8&255,T.check=o(T.check,ze,2,0)),$=0,ee=0,T.mode=b;case b:for(;ee<32;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}T.head&&(T.head.time=$),T.flags&512&&(ze[0]=$&255,ze[1]=$>>>8&255,ze[2]=$>>>16&255,ze[3]=$>>>24&255,T.check=o(T.check,ze,4,0)),$=0,ee=0,T.mode=x;case x:for(;ee<16;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}T.head&&(T.head.xflags=$&255,T.head.os=$>>8),T.flags&512&&(ze[0]=$&255,ze[1]=$>>>8&255,T.check=o(T.check,ze,2,0)),$=0,ee=0,T.mode=O;case O:if(T.flags&1024){for(;ee<16;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}T.length=$,T.head&&(T.head.extra_len=$),T.flags&512&&(ze[0]=$&255,ze[1]=$>>>8&255,T.check=o(T.check,ze,2,0)),$=0,ee=0}else T.head&&(T.head.extra=null);T.mode=C;case C:if(T.flags&1024&&(pe=T.length,pe>re&&(pe=re),pe&&(T.head&&(Me=T.head.extra_len-T.length,T.head.extra||(T.head.extra=new Array(T.head.extra_len)),e.arraySet(T.head.extra,oe,p,pe,Me)),T.flags&512&&(T.check=o(T.check,oe,pe,p)),re-=pe,p+=pe,T.length-=pe),T.length))break e;T.length=0,T.mode=D;case D:if(T.flags&2048){if(re===0)break e;pe=0;do Me=oe[p+pe++],T.head&&Me&&T.length<65536&&(T.head.name+=String.fromCharCode(Me));while(Me&&pe<re);if(T.flags&512&&(T.check=o(T.check,oe,pe,p)),re-=pe,p+=pe,Me)break e}else T.head&&(T.head.name=null);T.length=0,T.mode=Y;case Y:if(T.flags&4096){if(re===0)break e;pe=0;do Me=oe[p+pe++],T.head&&Me&&T.length<65536&&(T.head.comment+=String.fromCharCode(Me));while(Me&&pe<re);if(T.flags&512&&(T.check=o(T.check,oe,pe,p)),re-=pe,p+=pe,Me)break e}else T.head&&(T.head.comment=null);T.mode=H;case H:if(T.flags&512){for(;ee<16;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}if($!==(T.check&65535)){Z.msg="header crc mismatch",T.mode=me;break}$=0,ee=0}T.head&&(T.head.hcrc=T.flags>>9&1,T.head.done=!0),Z.adler=T.check=0,T.mode=L;break;case S:for(;ee<32;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}Z.adler=T.check=Ve($),$=0,ee=0,T.mode=R;case R:if(T.havedict===0)return Z.next_out=te,Z.avail_out=A,Z.next_in=p,Z.avail_in=re,T.hold=$,T.bits=ee,w;Z.adler=T.check=1,T.mode=L;case L:if(ie===l||ie===f)break e;case N:if(T.last){$>>>=ee&7,ee-=ee&7,T.mode=ae;break}for(;ee<3;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}switch(T.last=$&1,$>>>=1,ee-=1,$&3){case 0:T.mode=V;break;case 1:if(Re(T),T.mode=z,ie===f){$>>>=2,ee-=2;break e}break;case 2:T.mode=k;break;case 3:Z.msg="invalid block type",T.mode=me}$>>>=2,ee-=2;break;case V:for($>>>=ee&7,ee-=ee&7;ee<32;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}if(($&65535)!==($>>>16^65535)){Z.msg="invalid stored block lengths",T.mode=me;break}if(T.length=$&65535,$=0,ee=0,T.mode=P,ie===f)break e;case P:T.mode=j;case j:if(pe=T.length,pe){if(pe>re&&(pe=re),pe>A&&(pe=A),pe===0)break e;e.arraySet(be,oe,p,pe,te),re-=pe,p+=pe,A-=pe,te+=pe,T.length-=pe;break}T.mode=L;break;case k:for(;ee<14;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}if(T.nlen=($&31)+257,$>>>=5,ee-=5,T.ndist=($&31)+1,$>>>=5,ee-=5,T.ncode=($&15)+4,$>>>=4,ee-=4,T.nlen>286||T.ndist>30){Z.msg="too many length or distance symbols",T.mode=me;break}T.have=0,T.mode=F;case F:for(;T.have<T.ncode;){for(;ee<3;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}T.lens[ds[T.have++]]=$&7,$>>>=3,ee-=3}for(;T.have<19;)T.lens[ds[T.have++]]=0;if(T.lencode=T.lendyn,T.lenbits=7,yt={bits:T.lenbits},nt=a(t,T.lens,0,19,T.lencode,0,T.work,yt),T.lenbits=yt.bits,nt){Z.msg="invalid code lengths set",T.mode=me;break}T.have=0,T.mode=W;case W:for(;T.have<T.nlen+T.ndist;){for(;Le=T.lencode[$&(1<<T.lenbits)-1],Ie=Le>>>24,Be=Le>>>16&255,Ye=Le&65535,!(Ie<=ee);){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}if(Ye<16)$>>>=Ie,ee-=Ie,T.lens[T.have++]=Ye;else{if(Ye===16){for(ht=Ie+2;ee<ht;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}if($>>>=Ie,ee-=Ie,T.have===0){Z.msg="invalid bit length repeat",T.mode=me;break}Me=T.lens[T.have-1],pe=3+($&3),$>>>=2,ee-=2}else if(Ye===17){for(ht=Ie+3;ee<ht;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}$>>>=Ie,ee-=Ie,Me=0,pe=3+($&7),$>>>=3,ee-=3}else{for(ht=Ie+7;ee<ht;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}$>>>=Ie,ee-=Ie,Me=0,pe=11+($&127),$>>>=7,ee-=7}if(T.have+pe>T.nlen+T.ndist){Z.msg="invalid bit length repeat",T.mode=me;break}for(;pe--;)T.lens[T.have++]=Me}}if(T.mode===me)break;if(T.lens[256]===0){Z.msg="invalid code -- missing end-of-block",T.mode=me;break}if(T.lenbits=9,yt={bits:T.lenbits},nt=a(r,T.lens,0,T.nlen,T.lencode,0,T.work,yt),T.lenbits=yt.bits,nt){Z.msg="invalid literal/lengths set",T.mode=me;break}if(T.distbits=6,T.distcode=T.distdyn,yt={bits:T.distbits},nt=a(s,T.lens,T.nlen,T.ndist,T.distcode,0,T.work,yt),T.distbits=yt.bits,nt){Z.msg="invalid distances set",T.mode=me;break}if(T.mode=z,ie===f)break e;case z:T.mode=B;case B:if(re>=6&&A>=258){Z.next_out=te,Z.avail_out=A,Z.next_in=p,Z.avail_in=re,T.hold=$,T.bits=ee,i(Z,de),te=Z.next_out,be=Z.output,A=Z.avail_out,p=Z.next_in,oe=Z.input,re=Z.avail_in,$=T.hold,ee=T.bits,T.mode===L&&(T.back=-1);break}for(T.back=0;Le=T.lencode[$&(1<<T.lenbits)-1],Ie=Le>>>24,Be=Le>>>16&255,Ye=Le&65535,!(Ie<=ee);){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}if(Be&&(Be&240)===0){for(Xe=Ie,vr=Be,yr=Ye;Le=T.lencode[yr+(($&(1<<Xe+vr)-1)>>Xe)],Ie=Le>>>24,Be=Le>>>16&255,Ye=Le&65535,!(Xe+Ie<=ee);){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}$>>>=Xe,ee-=Xe,T.back+=Xe}if($>>>=Ie,ee-=Ie,T.back+=Ie,T.length=Ye,Be===0){T.mode=K;break}if(Be&32){T.back=-1,T.mode=L;break}if(Be&64){Z.msg="invalid literal/length code",T.mode=me;break}T.extra=Be&15,T.mode=q;case q:if(T.extra){for(ht=T.extra;ee<ht;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}T.length+=$&(1<<T.extra)-1,$>>>=T.extra,ee-=T.extra,T.back+=T.extra}T.was=T.length,T.mode=M;case M:for(;Le=T.distcode[$&(1<<T.distbits)-1],Ie=Le>>>24,Be=Le>>>16&255,Ye=Le&65535,!(Ie<=ee);){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}if((Be&240)===0){for(Xe=Ie,vr=Be,yr=Ye;Le=T.distcode[yr+(($&(1<<Xe+vr)-1)>>Xe)],Ie=Le>>>24,Be=Le>>>16&255,Ye=Le&65535,!(Xe+Ie<=ee);){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}$>>>=Xe,ee-=Xe,T.back+=Xe}if($>>>=Ie,ee-=Ie,T.back+=Ie,Be&64){Z.msg="invalid distance code",T.mode=me;break}T.offset=Ye,T.extra=Be&15,T.mode=G;case G:if(T.extra){for(ht=T.extra;ee<ht;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}T.offset+=$&(1<<T.extra)-1,$>>>=T.extra,ee-=T.extra,T.back+=T.extra}if(T.offset>T.dmax){Z.msg="invalid distance too far back",T.mode=me;break}T.mode=X;case X:if(A===0)break e;if(pe=de-A,T.offset>pe){if(pe=T.offset-pe,pe>T.whave&&T.sane){Z.msg="invalid distance too far back",T.mode=me;break}pe>T.wnext?(pe-=T.wnext,xe=T.wsize-pe):xe=T.wnext-pe,pe>T.length&&(pe=T.length),vt=T.window}else vt=be,xe=te-T.offset,pe=T.length;pe>A&&(pe=A),A-=pe,T.length-=pe;do be[te++]=vt[xe++];while(--pe);T.length===0&&(T.mode=B);break;case K:if(A===0)break e;be[te++]=T.length,A--,T.mode=B;break;case ae:if(T.wrap){for(;ee<32;){if(re===0)break e;re--,$|=oe[p++]<<ee,ee+=8}if(de-=A,Z.total_out+=de,T.total+=de,de&&(Z.adler=T.check=T.flags?o(T.check,be,de,te-de):n(T.check,be,de,te-de)),de=A,(T.flags?$:Ve($))!==T.check){Z.msg="incorrect data check",T.mode=me;break}$=0,ee=0}T.mode=ue;case ue:if(T.wrap&&T.flags){for(;ee<32;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}if($!==(T.total&4294967295)){Z.msg="incorrect length check",T.mode=me;break}$=0,ee=0}T.mode=ve;case ve:nt=c;break e;case me:nt=y;break e;case we:return g;case Ce:default:return m}return Z.next_out=te,Z.avail_out=A,Z.next_in=p,Z.avail_in=re,T.hold=$,T.bits=ee,(T.wsize||de!==Z.avail_out&&T.mode<me&&(T.mode<ae||ie!==d))&&Oe(Z,Z.output,Z.next_out,de-Z.avail_out),_e-=Z.avail_in,de-=Z.avail_out,Z.total_in+=_e,Z.total_out+=de,T.total+=de,T.wrap&&de&&(Z.adler=T.check=T.flags?o(T.check,be,de,Z.next_out-de):n(T.check,be,de,Z.next_out-de)),Z.data_type=T.bits+(T.last?64:0)+(T.mode===L?128:0)+(T.mode===z||T.mode===P?256:0),(_e===0&&de===0||ie===d)&&nt===h&&(nt=u),nt}function ne(Z){if(!Z||!Z.state)return m;var ie=Z.state;return ie.window&&(ie.window=null),Z.state=null,h}function se(Z,ie){var T;return!Z||!Z.state||(T=Z.state,(T.wrap&2)===0)?m:(T.head=ie,ie.done=!1,h)}function le(Z,ie){var T=ie.length,oe,be,p;return!Z||!Z.state||(oe=Z.state,oe.wrap!==0&&oe.mode!==R)?m:oe.mode===R&&(be=1,be=n(be,ie,T,0),be!==oe.check)?y:(p=Oe(Z,ie,T,T),p?(oe.mode=we,g):(oe.havedict=1,h))}return it.inflateReset=De,it.inflateReset2=We,it.inflateResetKeep=qe,it.inflateInit=Q,it.inflateInit2=J,it.inflate=I,it.inflateEnd=ne,it.inflateGetHeader=se,it.inflateSetDictionary=le,it.inflateInfo="pako inflate (from Nodeca project)",it}var Ln,Is;function pm(){return Is||(Is=1,Ln={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}),Ln}const mm={overlayWidth:new at(100,100,50)};function Cs(){const e=Fe(),n=Ze(),o=ur(),i=Dt(),a=Se(b=>Pf(b)),t=a.uiState.selectedCustomerTenantId,r=fe.useMemo(()=>t?a.customers.find(b=>b.tenantId===t):void 0,[a.customers,t]),s=Se(b=>t?kf(b.aiAccountantCustomerState,b.userState,t):[]),d=a.customerViewStateByTenantId[t],l=d?.jobsFetchStatus??{fetchState:"Not-Started"},f=d?.jobsPageToken!=null;fe.useEffect(()=>{a.fetchState==="Completed"?n(xt(!1)):(a.fetchState==="Not-Started"||a.fetchState==="Error")&&n(ps())},[a.fetchState]);const h=b=>{const x=It(b),O=Mt(b);Ge.trackCockpitTabClicked(O),e(`../../${x}`,{replace:!0})},c=(b,x,O,C)=>{n(jf([b.tenantId])),n(Lf(x,O,C))},w=b=>{n(qf(b.companyId,b.tenantId))},m=b=>{b==="aiAccountant"&&n(ps())},y=(b,x)=>{n(Wt({sortKey:b,sortOrder:x}))},g=b=>{n(Wt({selectedCustomerTenantId:b.tenantId})),n(rn(b.tenantId))},u=()=>{n(Wt({selectedCustomerTenantId:""}))},_=b=>{n(Wt({filterText:b}))},E=(b,x)=>{n(Wt({filters:x}))},v=()=>{t&&n(rn(t,!0))};return U.jsxs(U.Fragment,{children:[U.jsx(wp,{headerData:{selectedTabOption:wt("aiAccountant")},headerActions:{onTabChange:h},aiAccountantPageData:{aiAccountantView:a},aiAccountantPageActions:{onAction:c,onCancelOnboarding:w,onCockpitReloadData:m,onColumnSortConfigChanged:y,onCustomerSelected:g,onFilterTextChanged:_,onFiltersChange:E}}),U.jsx(lr,{anchor:"right",open:r!=null,PaperProps:{style:{width:mm.overlayWidth.valuePercentage(o),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.75,cursor:"pointer"}}},onClose:u,children:r!=null&&U.jsx(Qf,{customer:r,hasMoreJobs:f,jobs:s,jobsFetchStatus:l,onAction:c,onCancelOnboarding:w,onClose:u,onLoadMoreJobs:v})})]})}function gm(){const{tenantId:e=""}=ot(),n=Fe(),o=Ze(),i=Se(c=>id(c.aiAccountantCustomerState,c.userState)),a=Se(c=>Pf(c)),t=i.find(c=>c.tenantId===e),r=a.customerViewStateByTenantId[e],s=Se(c=>kf(c.aiAccountantCustomerState,c.userState,e));if(fe.useEffect(()=>{o(rn(e))},[e,o]),t==null)return null;const d=(c,w,m,y)=>{o(jf([c.tenantId])),o(Lf(w,m,y))},l=c=>{o(qf(c.companyId,c.tenantId))},f=()=>{n("../")},h=()=>{o(rn(e,!0))};return U.jsx(Qf,{customer:t,hasMoreJobs:r?.jobsPageToken!=null,jobs:s,jobsFetchStatus:r?.jobsFetchStatus??{fetchState:"Not-Started"},onAction:d,onCancelOnboarding:l,onClose:f,onLoadMoreJobs:h})}const sh=(e,n)=>{const o=[...e??[]];return o.push(n),o},vm=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},ym=(e=2)=>{let n="../";for(let o=0;o<e;o++)n=`${n}../`;return n},Pe=({state:e,element:n})=>Je.isSignedIn()===!0?U.jsx(U.Fragment,{children:n}):U.jsx(rr,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function _m(){return U.jsxs(gt,{children:[U.jsx(Te,{path:"/",element:U.jsx(Pe,{element:U.jsx(Cs,{})})}),U.jsx(Te,{path:"/detail/:tenantId",element:U.jsx(Pe,{element:U.jsx(gm,{})})}),U.jsx(Te,{path:"/*",element:U.jsx(Pe,{element:U.jsx(Cs,{})})})]})}const Ft=()=>{const[e,n]=ih(),[o,i]=fe.useState(),a=fe.useRef(!1);return fe.useEffect(()=>{if(a.current===!0||!(e.has("thread_id")||e.has("entity_type")||e.has("company_id")))return;const r=Ep(e);r!=null&&i(r);const s=new URLSearchParams(e);s.delete("thread_id"),s.delete("entity_type"),s.delete("company_id"),n(s,{replace:!0}),a.current=!0},[e,n]),o},bm={overlayWidth:new at(100,100,50)},{common:{strings:Ps}}=cr.getLocalizedStrings();function wm(e,n){return{headerActions:{onTabChange:o=>{const i=It(o),a=Mt(o);Ge.trackCockpitTabClicked(a),n.navigate(`../../${i}`,{replace:!0})},filterActions:{onFilterTextChanged:(o,i)=>{e(_r({uiState:{filterText:i}}))},onFiltersChange:(o,i)=>{i.categories!=null&&i.categoryCombinationOperator!=null&&Ge.trackHealthMonitorFiltersApplied({filterSelection:{condition:i.categories.map(a=>a.matchingOperator).join(Ps.comma),logic:i.categoryCombinationOperator,parameter:i.categories.map(a=>a.field).join(Ps.comma)}}),e(_r({uiState:{filters:i}}))}}},healthPageActions:{onRowClick:o=>{e(Df(o))},onColumnSortConfigChanged:(o,i)=>{e(_r({uiState:{sortKey:o,sortOrder:i}}))},onCockpitReloadData:o=>{o==="healthMonitor"&&e(Nf())},onFiltersChange:o=>{e(_r({uiState:{filters:o}}))}}}}function Em(e,n){return{headerData:{selectedTabOption:wt("healthMonitor")},healthPageData:{healthView:n.healthView,managementView:n.managementView,mixpanelUrl:n.mixpanelHMUrl}}}const Sm=$e(Em,wm)(Tp);function qn({isDrawerOpen:e}){const n=Fe(),o=Ze(),i=Dt(),a=ur(),{companyId:t}=ot(),[r,s]=ih(),[d,l]=fe.useState(!1),f=Ft(),h=Se(v=>ad(v)),c=Se(v=>or(v)),{additionalChurnFactors:w}=Se(v=>od(v)),{selectedCompanyDetail:m,selectedCompanyId:y,localFormDataAndStatusByCompanyId:g}=h,u=Se(v=>v.companyViewState.zeniUsers.fetchState),_=Se(v=>v.companyHealthMetricConfigViewState);if(fe.useEffect(()=>{const v=b=>b==="Not-Started"||b==="Error";h.fetchState==="Completed"?o(xt(!1)):v(h.fetchState)&&(o(Nf()),v(u)&&o(At()),v(_.fetchState)&&o(sd()))},[h.fetchState,_.fetchState]),fe.useEffect(()=>{t!=null&&h.fetchState==="Completed"&&r.has("utm_source")===!0&&(o(Df(t)),m!=null&&(Sp(),Ge.trackCockpitHealthMonitorNotificationAlertClicked({companyId:m.companyInfo.companyId,companyName:m.companyInfo.name,churnProbability:m.companyHealthMetric.churnProbabilityPercentage??null}),l(!0),r.delete("utm_source"),s(r)))},[h.fetchState,m?.companyInfo.companyId,m?.companyInfo.name]),Je.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return U.jsxs(U.Fragment,{children:[e===!0||y!=null&&m!=null?U.jsx(lr,{anchor:"right",open:y!=null,PaperProps:{style:{width:bm.overlayWidth.valuePercentage(a),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>o(ms()),children:U.jsx(Rp,{roomId:`cockpit_${y}`,autoConnect:!0,children:U.jsx(Op,{onSaveClick:()=>{y!=null&&o(cd(y))},onSaveChangesToLocalStore:v=>{h.selectedCompanyId!=null&&o(ud({companyId:h.selectedCompanyId,updatedLocalData:v}))},localData:g?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:h,onCloseDrawer:()=>o(ms()),analytics:Ge,urlSource:d,additionalChurnFactorsOptions:w})})}):null,U.jsx(Sm,{initialOpenThreadRequest:f??void 0,healthView:h,managementView:c,navigate:n,mixpanelHMUrl:fn.mixpanelHMUrl})]})}function Rm(){return U.jsxs(gt,{children:[U.jsx(Te,{path:"/companies/:companyId",element:U.jsx(Pe,{element:U.jsx(qn,{isDrawerOpen:!0})})}),U.jsx(Te,{path:"/",element:U.jsx(Pe,{element:U.jsx(qn,{})})}),U.jsx(Te,{path:"/*",element:U.jsx(Pe,{element:U.jsx(qn,{})})})]})}const Om={drawerLeftMargin:new at(0,0,240)};function dr(e){const{isOpen:n,drawerLeftMargin:o,children:i,onClose:a}=e,t=ur(),r=o?.valuePx(t)??Om.drawerLeftMargin.valuePx(t),s=Dt();return U.jsx(lr,{anchor:"right",open:n,PaperProps:{style:{width:`calc(100% - ${r})`}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:a,children:i})}const Tm=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?U.jsx(xm,{children:U.jsx(hn,{size:"ExtraLarge",start:!0})}):null,xm=tt.div`
|
|
1
|
+
import{G1 as Pf,G2 as kf,jr as xt,ef as ps,G3 as jf,eo as Lf,ed as qf,G4 as Wt,ek as rn,G5 as id,G6 as ad,G7 as or,G8 as od,i2 as Nf,jt as At,h$ as sd,i6 as Df,G9 as ms,i8 as ud,i9 as cd,Ga as _r,Gb as sr,hx as ld,Gc as cn,Gd as Fo,c$ as fd,fx as Bo,fu as nn,fC as qt,fA as hd,Ge as Mf,Gf as Ff,ip as dd,il as pd,Gg as md,iA as gd,iv as gs,is as vd,ig as yd,Gh as _d,dX as bd,d5 as wd,jF as Bf,Gi as Ed,be as tn,ic as vs,ii as Sd,qp as Uf,js as ln,Gj as pt,iP as Uo,Gk as Rd,jL as Od,B as et,bi as Go,Gl as Td,hu as xd,Gm as Ad,Gn as Gf,Go as Id,oZ as ys,ou as Cd,Gp as Pd,oA as Rn,Gq as kd,oC as jd,Gr as Rt,or as Ld,cP as qd,jw as Vf,jx as $f,jv as Vo,ju as $o,jy as Nd,Gs as Dd,p0 as Md,Gt as Fd,oJ as Bd,oW as Ud,Gu as Gd,oN as Vd,Gv as $d,Gw as Yt,Gx as zo,Gy as zd,Gz as Hd,nv as Zd,nB as zf,GA as Hf,g$ as Wd,F7 as Zf,GB as Yd,F1 as Jd,GC as Kd,GD as Xd,nE as Qd,GE as ep,Fc as tp,F0 as rp,r_ as Wf,GF as On,GG as Yf,C9 as Ho,BX as np,Cc as Jf,B_ as ip,GH as ap,C3 as op,BR as sp,BU as up,GI as cp,Cg as lp,C6 as fp,bl as hp,bd as dp,GJ as pp,GK as Gt,GL as mp,GM as gp,GN as vp,iE as qo,iK as yp,ba as _p}from"./zeni-epic-state-CovB4gqb.js";import{j as U}from"./liveblocks-C7Zupxea.js";import{a as fe,p as ye,e as Kf,d as Xf,g as bp}from"./sentry-CvrT50CN.js";import{Z as ur,h as Dt,g as wp,V as wt,m as Qf,b as at,a as Ge,c as It,d as Mt,z as Je,w as Ep,u as Sp,n as Rp,l as Op,e as fn,f as Tp,D as cr,i as hn,o as Lt,C as xp,j as Ap,k as Ot,p as dn,N as Nt,q as Ip,r as Cp,s as Tn,t as Pp,v as eh,B as kp,x as th,F as rh,y as No,U as jp,I as Lp,A as qp,E as nh,G as Np,H as Dp,K as Mp,J as Fp,L as Bp,$ as Up,M as Gp,P as Vp,R as $p,O as zp,Q as Hp,S as Zp,T as Wp}from"./index-BlJZ-dhR.js";import{f as Yp}from"./analyticsHelper-hrB0kxk3.js";import{i as Fe,n as Ze,g as Se,o as ot,N as rr,k as gt,l as Te,p as ih,h as $e,u as Zo,j as Do}from"./core-DewJXbwB.js";import{D as lr,n as tt,S as $t}from"./mui-CiRrt3-Q.js";import{a as He,b as Jp,c as Kp,d as Xp,e as Wo,f as Qp,g as em,h as tm,i as zt,j as rm,k as ir,l as pn,m as nm,n as fr,o as im}from"./utils-LaFOlRS7.js";import{r as Yo}from"./empty-j_qPq0Zf.js";import{r as hr,a as am}from"./index-D12uZmZI.js";import{r as om}from"./index-BmW3AUCZ.js";import"./recharts-CKPbJuAx.js";import"./lottie-B7qludfH.js";import"./analytics-DWHcOHaf.js";import"./lexical-C519bmtq.js";import"./url-CbczuHIs.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="a550e24a-88f0-494c-95e6-e3b0fbffc655",e._sentryDebugIdIdentifier="sentry-dbid-a550e24a-88f0-494c-95e6-e3b0fbffc655")}catch{}})();var xn={},_s;function mn(){return _s||(_s=1,function(e){var n=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function o(t,r){return Object.prototype.hasOwnProperty.call(t,r)}e.assign=function(t){for(var r=Array.prototype.slice.call(arguments,1);r.length;){var s=r.shift();if(s){if(typeof s!="object")throw new TypeError(s+"must be non-object");for(var d in s)o(s,d)&&(t[d]=s[d])}}return t},e.shrinkBuf=function(t,r){return t.length===r?t:t.subarray?t.subarray(0,r):(t.length=r,t)};var i={arraySet:function(t,r,s,d,l){if(r.subarray&&t.subarray){t.set(r.subarray(s,s+d),l);return}for(var f=0;f<d;f++)t[l+f]=r[s+f]},flattenChunks:function(t){var r,s,d,l,f,h;for(d=0,r=0,s=t.length;r<s;r++)d+=t[r].length;for(h=new Uint8Array(d),l=0,r=0,s=t.length;r<s;r++)f=t[r],h.set(f,l),l+=f.length;return h}},a={arraySet:function(t,r,s,d,l){for(var f=0;f<d;f++)t[l+f]=r[s+f]},flattenChunks:function(t){return[].concat.apply([],t)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,i)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,a))},e.setTyped(n)}(xn)),xn}var ut={},Ct={},bs;function sm(){if(bs)return Ct;bs=1;var e=mn(),n=4,o=0,i=1,a=2;function t(I){for(var ne=I.length;--ne>=0;)I[ne]=0}var r=0,s=1,d=2,l=3,f=258,h=29,c=256,w=c+1+h,m=30,y=19,g=2*w+1,u=15,_=16,E=7,v=256,b=16,x=17,O=18,C=[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],D=[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],Y=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],H=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S=512,R=new Array((w+2)*2);t(R);var L=new Array(m*2);t(L);var N=new Array(S);t(N);var V=new Array(f-l+1);t(V);var P=new Array(h);t(P);var j=new Array(m);t(j);function k(I,ne,se,le,Z){this.static_tree=I,this.extra_bits=ne,this.extra_base=se,this.elems=le,this.max_length=Z,this.has_stree=I&&I.length}var F,W,z;function B(I,ne){this.dyn_tree=I,this.max_code=0,this.stat_desc=ne}function q(I){return I<256?N[I]:N[256+(I>>>7)]}function M(I,ne){I.pending_buf[I.pending++]=ne&255,I.pending_buf[I.pending++]=ne>>>8&255}function G(I,ne,se){I.bi_valid>_-se?(I.bi_buf|=ne<<I.bi_valid&65535,M(I,I.bi_buf),I.bi_buf=ne>>_-I.bi_valid,I.bi_valid+=se-_):(I.bi_buf|=ne<<I.bi_valid&65535,I.bi_valid+=se)}function X(I,ne,se){G(I,se[ne*2],se[ne*2+1])}function K(I,ne){var se=0;do se|=I&1,I>>>=1,se<<=1;while(--ne>0);return se>>>1}function ae(I){I.bi_valid===16?(M(I,I.bi_buf),I.bi_buf=0,I.bi_valid=0):I.bi_valid>=8&&(I.pending_buf[I.pending++]=I.bi_buf&255,I.bi_buf>>=8,I.bi_valid-=8)}function ue(I,ne){var se=ne.dyn_tree,le=ne.max_code,Z=ne.stat_desc.static_tree,ie=ne.stat_desc.has_stree,T=ne.stat_desc.extra_bits,oe=ne.stat_desc.extra_base,be=ne.stat_desc.max_length,p,te,re,A,$,ee,_e=0;for(A=0;A<=u;A++)I.bl_count[A]=0;for(se[I.heap[I.heap_max]*2+1]=0,p=I.heap_max+1;p<g;p++)te=I.heap[p],A=se[se[te*2+1]*2+1]+1,A>be&&(A=be,_e++),se[te*2+1]=A,!(te>le)&&(I.bl_count[A]++,$=0,te>=oe&&($=T[te-oe]),ee=se[te*2],I.opt_len+=ee*(A+$),ie&&(I.static_len+=ee*(Z[te*2+1]+$)));if(_e!==0){do{for(A=be-1;I.bl_count[A]===0;)A--;I.bl_count[A]--,I.bl_count[A+1]+=2,I.bl_count[be]--,_e-=2}while(_e>0);for(A=be;A!==0;A--)for(te=I.bl_count[A];te!==0;)re=I.heap[--p],!(re>le)&&(se[re*2+1]!==A&&(I.opt_len+=(A-se[re*2+1])*se[re*2],se[re*2+1]=A),te--)}}function ve(I,ne,se){var le=new Array(u+1),Z=0,ie,T;for(ie=1;ie<=u;ie++)le[ie]=Z=Z+se[ie-1]<<1;for(T=0;T<=ne;T++){var oe=I[T*2+1];oe!==0&&(I[T*2]=K(le[oe]++,oe))}}function me(){var I,ne,se,le,Z,ie=new Array(u+1);for(se=0,le=0;le<h-1;le++)for(P[le]=se,I=0;I<1<<C[le];I++)V[se++]=le;for(V[se-1]=le,Z=0,le=0;le<16;le++)for(j[le]=Z,I=0;I<1<<D[le];I++)N[Z++]=le;for(Z>>=7;le<m;le++)for(j[le]=Z<<7,I=0;I<1<<D[le]-7;I++)N[256+Z++]=le;for(ne=0;ne<=u;ne++)ie[ne]=0;for(I=0;I<=143;)R[I*2+1]=8,I++,ie[8]++;for(;I<=255;)R[I*2+1]=9,I++,ie[9]++;for(;I<=279;)R[I*2+1]=7,I++,ie[7]++;for(;I<=287;)R[I*2+1]=8,I++,ie[8]++;for(ve(R,w+1,ie),I=0;I<m;I++)L[I*2+1]=5,L[I*2]=K(I,5);F=new k(R,C,c+1,w,u),W=new k(L,D,0,m,u),z=new k(new Array(0),Y,0,y,E)}function we(I){var ne;for(ne=0;ne<w;ne++)I.dyn_ltree[ne*2]=0;for(ne=0;ne<m;ne++)I.dyn_dtree[ne*2]=0;for(ne=0;ne<y;ne++)I.bl_tree[ne*2]=0;I.dyn_ltree[v*2]=1,I.opt_len=I.static_len=0,I.last_lit=I.matches=0}function Ce(I){I.bi_valid>8?M(I,I.bi_buf):I.bi_valid>0&&(I.pending_buf[I.pending++]=I.bi_buf),I.bi_buf=0,I.bi_valid=0}function ke(I,ne,se,le){Ce(I),M(I,se),M(I,~se),e.arraySet(I.pending_buf,I.window,ne,se,I.pending),I.pending+=se}function je(I,ne,se,le){var Z=ne*2,ie=se*2;return I[Z]<I[ie]||I[Z]===I[ie]&&le[ne]<=le[se]}function Ae(I,ne,se){for(var le=I.heap[se],Z=se<<1;Z<=I.heap_len&&(Z<I.heap_len&&je(ne,I.heap[Z+1],I.heap[Z],I.depth)&&Z++,!je(ne,le,I.heap[Z],I.depth));)I.heap[se]=I.heap[Z],se=Z,Z<<=1;I.heap[se]=le}function Ee(I,ne,se){var le,Z,ie=0,T,oe;if(I.last_lit!==0)do le=I.pending_buf[I.d_buf+ie*2]<<8|I.pending_buf[I.d_buf+ie*2+1],Z=I.pending_buf[I.l_buf+ie],ie++,le===0?X(I,Z,ne):(T=V[Z],X(I,T+c+1,ne),oe=C[T],oe!==0&&(Z-=P[T],G(I,Z,oe)),le--,T=q(le),X(I,T,se),oe=D[T],oe!==0&&(le-=j[T],G(I,le,oe)));while(ie<I.last_lit);X(I,v,ne)}function Ve(I,ne){var se=ne.dyn_tree,le=ne.stat_desc.static_tree,Z=ne.stat_desc.has_stree,ie=ne.stat_desc.elems,T,oe,be=-1,p;for(I.heap_len=0,I.heap_max=g,T=0;T<ie;T++)se[T*2]!==0?(I.heap[++I.heap_len]=be=T,I.depth[T]=0):se[T*2+1]=0;for(;I.heap_len<2;)p=I.heap[++I.heap_len]=be<2?++be:0,se[p*2]=1,I.depth[p]=0,I.opt_len--,Z&&(I.static_len-=le[p*2+1]);for(ne.max_code=be,T=I.heap_len>>1;T>=1;T--)Ae(I,se,T);p=ie;do T=I.heap[1],I.heap[1]=I.heap[I.heap_len--],Ae(I,se,1),oe=I.heap[1],I.heap[--I.heap_max]=T,I.heap[--I.heap_max]=oe,se[p*2]=se[T*2]+se[oe*2],I.depth[p]=(I.depth[T]>=I.depth[oe]?I.depth[T]:I.depth[oe])+1,se[T*2+1]=se[oe*2+1]=p,I.heap[1]=p++,Ae(I,se,1);while(I.heap_len>=2);I.heap[--I.heap_max]=I.heap[1],ue(I,ne),ve(se,be,I.bl_count)}function st(I,ne,se){var le,Z=-1,ie,T=ne[0*2+1],oe=0,be=7,p=4;for(T===0&&(be=138,p=3),ne[(se+1)*2+1]=65535,le=0;le<=se;le++)ie=T,T=ne[(le+1)*2+1],!(++oe<be&&ie===T)&&(oe<p?I.bl_tree[ie*2]+=oe:ie!==0?(ie!==Z&&I.bl_tree[ie*2]++,I.bl_tree[b*2]++):oe<=10?I.bl_tree[x*2]++:I.bl_tree[O*2]++,oe=0,Z=ie,T===0?(be=138,p=3):ie===T?(be=6,p=3):(be=7,p=4))}function qe(I,ne,se){var le,Z=-1,ie,T=ne[0*2+1],oe=0,be=7,p=4;for(T===0&&(be=138,p=3),le=0;le<=se;le++)if(ie=T,T=ne[(le+1)*2+1],!(++oe<be&&ie===T)){if(oe<p)do X(I,ie,I.bl_tree);while(--oe!==0);else ie!==0?(ie!==Z&&(X(I,ie,I.bl_tree),oe--),X(I,b,I.bl_tree),G(I,oe-3,2)):oe<=10?(X(I,x,I.bl_tree),G(I,oe-3,3)):(X(I,O,I.bl_tree),G(I,oe-11,7));oe=0,Z=ie,T===0?(be=138,p=3):ie===T?(be=6,p=3):(be=7,p=4)}}function De(I){var ne;for(st(I,I.dyn_ltree,I.l_desc.max_code),st(I,I.dyn_dtree,I.d_desc.max_code),Ve(I,I.bl_desc),ne=y-1;ne>=3&&I.bl_tree[H[ne]*2+1]===0;ne--);return I.opt_len+=3*(ne+1)+5+5+4,ne}function We(I,ne,se,le){var Z;for(G(I,ne-257,5),G(I,se-1,5),G(I,le-4,4),Z=0;Z<le;Z++)G(I,I.bl_tree[H[Z]*2+1],3);qe(I,I.dyn_ltree,ne-1),qe(I,I.dyn_dtree,se-1)}function J(I){var ne=4093624447,se;for(se=0;se<=31;se++,ne>>>=1)if(ne&1&&I.dyn_ltree[se*2]!==0)return o;if(I.dyn_ltree[9*2]!==0||I.dyn_ltree[10*2]!==0||I.dyn_ltree[13*2]!==0)return i;for(se=32;se<c;se++)if(I.dyn_ltree[se*2]!==0)return i;return o}var Q=!1;function ce(I){Q||(me(),Q=!0),I.l_desc=new B(I.dyn_ltree,F),I.d_desc=new B(I.dyn_dtree,W),I.bl_desc=new B(I.bl_tree,z),I.bi_buf=0,I.bi_valid=0,we(I)}function ge(I,ne,se,le){G(I,(r<<1)+(le?1:0),3),ke(I,ne,se)}function he(I){G(I,s<<1,3),X(I,v,R),ae(I)}function Re(I,ne,se,le){var Z,ie,T=0;I.level>0?(I.strm.data_type===a&&(I.strm.data_type=J(I)),Ve(I,I.l_desc),Ve(I,I.d_desc),T=De(I),Z=I.opt_len+3+7>>>3,ie=I.static_len+3+7>>>3,ie<=Z&&(Z=ie)):Z=ie=se+5,se+4<=Z&&ne!==-1?ge(I,ne,se,le):I.strategy===n||ie===Z?(G(I,(s<<1)+(le?1:0),3),Ee(I,R,L)):(G(I,(d<<1)+(le?1:0),3),We(I,I.l_desc.max_code+1,I.d_desc.max_code+1,T+1),Ee(I,I.dyn_ltree,I.dyn_dtree)),we(I),le&&Ce(I)}function Oe(I,ne,se){return I.pending_buf[I.d_buf+I.last_lit*2]=ne>>>8&255,I.pending_buf[I.d_buf+I.last_lit*2+1]=ne&255,I.pending_buf[I.l_buf+I.last_lit]=se&255,I.last_lit++,ne===0?I.dyn_ltree[se*2]++:(I.matches++,ne--,I.dyn_ltree[(V[se]+c+1)*2]++,I.dyn_dtree[q(ne)*2]++),I.last_lit===I.lit_bufsize-1}return Ct._tr_init=ce,Ct._tr_stored_block=ge,Ct._tr_flush_block=Re,Ct._tr_tally=Oe,Ct._tr_align=he,Ct}var An,ws;function ah(){if(ws)return An;ws=1;function e(n,o,i,a){for(var t=n&65535|0,r=n>>>16&65535|0,s=0;i!==0;){s=i>2e3?2e3:i,i-=s;do t=t+o[a++]|0,r=r+t|0;while(--s);t%=65521,r%=65521}return t|r<<16|0}return An=e,An}var In,Es;function oh(){if(Es)return In;Es=1;function e(){for(var i,a=[],t=0;t<256;t++){i=t;for(var r=0;r<8;r++)i=i&1?3988292384^i>>>1:i>>>1;a[t]=i}return a}var n=e();function o(i,a,t,r){var s=n,d=r+t;i^=-1;for(var l=r;l<d;l++)i=i>>>8^s[(i^a[l])&255];return i^-1}return In=o,In}var Cn,Ss;function um(){return Ss||(Ss=1,Cn={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"}),Cn}var Rs;function cm(){if(Rs)return ut;Rs=1;var e=mn(),n=sm(),o=ah(),i=oh(),a=um(),t=0,r=1,s=3,d=4,l=5,f=0,h=1,c=-2,w=-3,m=-5,y=-1,g=1,u=2,_=3,E=4,v=0,b=2,x=8,O=9,C=15,D=8,Y=29,H=256,S=H+1+Y,R=30,L=19,N=2*S+1,V=15,P=3,j=258,k=j+P+1,F=32,W=42,z=69,B=73,q=91,M=103,G=113,X=666,K=1,ae=2,ue=3,ve=4,me=3;function we(p,te){return p.msg=a[te],te}function Ce(p){return(p<<1)-(p>4?9:0)}function ke(p){for(var te=p.length;--te>=0;)p[te]=0}function je(p){var te=p.state,re=te.pending;re>p.avail_out&&(re=p.avail_out),re!==0&&(e.arraySet(p.output,te.pending_buf,te.pending_out,re,p.next_out),p.next_out+=re,te.pending_out+=re,p.total_out+=re,p.avail_out-=re,te.pending-=re,te.pending===0&&(te.pending_out=0))}function Ae(p,te){n._tr_flush_block(p,p.block_start>=0?p.block_start:-1,p.strstart-p.block_start,te),p.block_start=p.strstart,je(p.strm)}function Ee(p,te){p.pending_buf[p.pending++]=te}function Ve(p,te){p.pending_buf[p.pending++]=te>>>8&255,p.pending_buf[p.pending++]=te&255}function st(p,te,re,A){var $=p.avail_in;return $>A&&($=A),$===0?0:(p.avail_in-=$,e.arraySet(te,p.input,p.next_in,$,re),p.state.wrap===1?p.adler=o(p.adler,te,$,re):p.state.wrap===2&&(p.adler=i(p.adler,te,$,re)),p.next_in+=$,p.total_in+=$,$)}function qe(p,te){var re=p.max_chain_length,A=p.strstart,$,ee,_e=p.prev_length,de=p.nice_match,pe=p.strstart>p.w_size-k?p.strstart-(p.w_size-k):0,xe=p.window,vt=p.w_mask,Le=p.prev,Ie=p.strstart+j,Be=xe[A+_e-1],Ye=xe[A+_e];p.prev_length>=p.good_match&&(re>>=2),de>p.lookahead&&(de=p.lookahead);do if($=te,!(xe[$+_e]!==Ye||xe[$+_e-1]!==Be||xe[$]!==xe[A]||xe[++$]!==xe[A+1])){A+=2,$++;do;while(xe[++A]===xe[++$]&&xe[++A]===xe[++$]&&xe[++A]===xe[++$]&&xe[++A]===xe[++$]&&xe[++A]===xe[++$]&&xe[++A]===xe[++$]&&xe[++A]===xe[++$]&&xe[++A]===xe[++$]&&A<Ie);if(ee=j-(Ie-A),A=Ie-j,ee>_e){if(p.match_start=te,_e=ee,ee>=de)break;Be=xe[A+_e-1],Ye=xe[A+_e]}}while((te=Le[te&vt])>pe&&--re!==0);return _e<=p.lookahead?_e:p.lookahead}function De(p){var te=p.w_size,re,A,$,ee,_e;do{if(ee=p.window_size-p.lookahead-p.strstart,p.strstart>=te+(te-k)){e.arraySet(p.window,p.window,te,te,0),p.match_start-=te,p.strstart-=te,p.block_start-=te,A=p.hash_size,re=A;do $=p.head[--re],p.head[re]=$>=te?$-te:0;while(--A);A=te,re=A;do $=p.prev[--re],p.prev[re]=$>=te?$-te:0;while(--A);ee+=te}if(p.strm.avail_in===0)break;if(A=st(p.strm,p.window,p.strstart+p.lookahead,ee),p.lookahead+=A,p.lookahead+p.insert>=P)for(_e=p.strstart-p.insert,p.ins_h=p.window[_e],p.ins_h=(p.ins_h<<p.hash_shift^p.window[_e+1])&p.hash_mask;p.insert&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[_e+P-1])&p.hash_mask,p.prev[_e&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=_e,_e++,p.insert--,!(p.lookahead+p.insert<P)););}while(p.lookahead<k&&p.strm.avail_in!==0)}function We(p,te){var re=65535;for(re>p.pending_buf_size-5&&(re=p.pending_buf_size-5);;){if(p.lookahead<=1){if(De(p),p.lookahead===0&&te===t)return K;if(p.lookahead===0)break}p.strstart+=p.lookahead,p.lookahead=0;var A=p.block_start+re;if((p.strstart===0||p.strstart>=A)&&(p.lookahead=p.strstart-A,p.strstart=A,Ae(p,!1),p.strm.avail_out===0)||p.strstart-p.block_start>=p.w_size-k&&(Ae(p,!1),p.strm.avail_out===0))return K}return p.insert=0,te===d?(Ae(p,!0),p.strm.avail_out===0?ue:ve):(p.strstart>p.block_start&&(Ae(p,!1),p.strm.avail_out===0),K)}function J(p,te){for(var re,A;;){if(p.lookahead<k){if(De(p),p.lookahead<k&&te===t)return K;if(p.lookahead===0)break}if(re=0,p.lookahead>=P&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+P-1])&p.hash_mask,re=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart),re!==0&&p.strstart-re<=p.w_size-k&&(p.match_length=qe(p,re)),p.match_length>=P)if(A=n._tr_tally(p,p.strstart-p.match_start,p.match_length-P),p.lookahead-=p.match_length,p.match_length<=p.max_lazy_match&&p.lookahead>=P){p.match_length--;do p.strstart++,p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+P-1])&p.hash_mask,re=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart;while(--p.match_length!==0);p.strstart++}else p.strstart+=p.match_length,p.match_length=0,p.ins_h=p.window[p.strstart],p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+1])&p.hash_mask;else A=n._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++;if(A&&(Ae(p,!1),p.strm.avail_out===0))return K}return p.insert=p.strstart<P-1?p.strstart:P-1,te===d?(Ae(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ae(p,!1),p.strm.avail_out===0)?K:ae}function Q(p,te){for(var re,A,$;;){if(p.lookahead<k){if(De(p),p.lookahead<k&&te===t)return K;if(p.lookahead===0)break}if(re=0,p.lookahead>=P&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+P-1])&p.hash_mask,re=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart),p.prev_length=p.match_length,p.prev_match=p.match_start,p.match_length=P-1,re!==0&&p.prev_length<p.max_lazy_match&&p.strstart-re<=p.w_size-k&&(p.match_length=qe(p,re),p.match_length<=5&&(p.strategy===g||p.match_length===P&&p.strstart-p.match_start>4096)&&(p.match_length=P-1)),p.prev_length>=P&&p.match_length<=p.prev_length){$=p.strstart+p.lookahead-P,A=n._tr_tally(p,p.strstart-1-p.prev_match,p.prev_length-P),p.lookahead-=p.prev_length-1,p.prev_length-=2;do++p.strstart<=$&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+P-1])&p.hash_mask,re=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart);while(--p.prev_length!==0);if(p.match_available=0,p.match_length=P-1,p.strstart++,A&&(Ae(p,!1),p.strm.avail_out===0))return K}else if(p.match_available){if(A=n._tr_tally(p,0,p.window[p.strstart-1]),A&&Ae(p,!1),p.strstart++,p.lookahead--,p.strm.avail_out===0)return K}else p.match_available=1,p.strstart++,p.lookahead--}return p.match_available&&(A=n._tr_tally(p,0,p.window[p.strstart-1]),p.match_available=0),p.insert=p.strstart<P-1?p.strstart:P-1,te===d?(Ae(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ae(p,!1),p.strm.avail_out===0)?K:ae}function ce(p,te){for(var re,A,$,ee,_e=p.window;;){if(p.lookahead<=j){if(De(p),p.lookahead<=j&&te===t)return K;if(p.lookahead===0)break}if(p.match_length=0,p.lookahead>=P&&p.strstart>0&&($=p.strstart-1,A=_e[$],A===_e[++$]&&A===_e[++$]&&A===_e[++$])){ee=p.strstart+j;do;while(A===_e[++$]&&A===_e[++$]&&A===_e[++$]&&A===_e[++$]&&A===_e[++$]&&A===_e[++$]&&A===_e[++$]&&A===_e[++$]&&$<ee);p.match_length=j-(ee-$),p.match_length>p.lookahead&&(p.match_length=p.lookahead)}if(p.match_length>=P?(re=n._tr_tally(p,1,p.match_length-P),p.lookahead-=p.match_length,p.strstart+=p.match_length,p.match_length=0):(re=n._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++),re&&(Ae(p,!1),p.strm.avail_out===0))return K}return p.insert=0,te===d?(Ae(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ae(p,!1),p.strm.avail_out===0)?K:ae}function ge(p,te){for(var re;;){if(p.lookahead===0&&(De(p),p.lookahead===0)){if(te===t)return K;break}if(p.match_length=0,re=n._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++,re&&(Ae(p,!1),p.strm.avail_out===0))return K}return p.insert=0,te===d?(Ae(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ae(p,!1),p.strm.avail_out===0)?K:ae}function he(p,te,re,A,$){this.good_length=p,this.max_lazy=te,this.nice_length=re,this.max_chain=A,this.func=$}var Re;Re=[new he(0,0,0,0,We),new he(4,4,8,4,J),new he(4,5,16,8,J),new he(4,6,32,32,J),new he(4,4,16,16,Q),new he(8,16,32,32,Q),new he(8,16,128,128,Q),new he(8,32,128,256,Q),new he(32,128,258,1024,Q),new he(32,258,258,4096,Q)];function Oe(p){p.window_size=2*p.w_size,ke(p.head),p.max_lazy_match=Re[p.level].max_lazy,p.good_match=Re[p.level].good_length,p.nice_match=Re[p.level].nice_length,p.max_chain_length=Re[p.level].max_chain,p.strstart=0,p.block_start=0,p.lookahead=0,p.insert=0,p.match_length=p.prev_length=P-1,p.match_available=0,p.ins_h=0}function I(){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=x,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 e.Buf16(N*2),this.dyn_dtree=new e.Buf16((2*R+1)*2),this.bl_tree=new e.Buf16((2*L+1)*2),ke(this.dyn_ltree),ke(this.dyn_dtree),ke(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new e.Buf16(V+1),this.heap=new e.Buf16(2*S+1),ke(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new e.Buf16(2*S+1),ke(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 ne(p){var te;return!p||!p.state?we(p,c):(p.total_in=p.total_out=0,p.data_type=b,te=p.state,te.pending=0,te.pending_out=0,te.wrap<0&&(te.wrap=-te.wrap),te.status=te.wrap?W:G,p.adler=te.wrap===2?0:1,te.last_flush=t,n._tr_init(te),f)}function se(p){var te=ne(p);return te===f&&Oe(p.state),te}function le(p,te){return!p||!p.state||p.state.wrap!==2?c:(p.state.gzhead=te,f)}function Z(p,te,re,A,$,ee){if(!p)return c;var _e=1;if(te===y&&(te=6),A<0?(_e=0,A=-A):A>15&&(_e=2,A-=16),$<1||$>O||re!==x||A<8||A>15||te<0||te>9||ee<0||ee>E)return we(p,c);A===8&&(A=9);var de=new I;return p.state=de,de.strm=p,de.wrap=_e,de.gzhead=null,de.w_bits=A,de.w_size=1<<de.w_bits,de.w_mask=de.w_size-1,de.hash_bits=$+7,de.hash_size=1<<de.hash_bits,de.hash_mask=de.hash_size-1,de.hash_shift=~~((de.hash_bits+P-1)/P),de.window=new e.Buf8(de.w_size*2),de.head=new e.Buf16(de.hash_size),de.prev=new e.Buf16(de.w_size),de.lit_bufsize=1<<$+6,de.pending_buf_size=de.lit_bufsize*4,de.pending_buf=new e.Buf8(de.pending_buf_size),de.d_buf=1*de.lit_bufsize,de.l_buf=3*de.lit_bufsize,de.level=te,de.strategy=ee,de.method=re,se(p)}function ie(p,te){return Z(p,te,x,C,D,v)}function T(p,te){var re,A,$,ee;if(!p||!p.state||te>l||te<0)return p?we(p,c):c;if(A=p.state,!p.output||!p.input&&p.avail_in!==0||A.status===X&&te!==d)return we(p,p.avail_out===0?m:c);if(A.strm=p,re=A.last_flush,A.last_flush=te,A.status===W)if(A.wrap===2)p.adler=0,Ee(A,31),Ee(A,139),Ee(A,8),A.gzhead?(Ee(A,(A.gzhead.text?1:0)+(A.gzhead.hcrc?2:0)+(A.gzhead.extra?4:0)+(A.gzhead.name?8:0)+(A.gzhead.comment?16:0)),Ee(A,A.gzhead.time&255),Ee(A,A.gzhead.time>>8&255),Ee(A,A.gzhead.time>>16&255),Ee(A,A.gzhead.time>>24&255),Ee(A,A.level===9?2:A.strategy>=u||A.level<2?4:0),Ee(A,A.gzhead.os&255),A.gzhead.extra&&A.gzhead.extra.length&&(Ee(A,A.gzhead.extra.length&255),Ee(A,A.gzhead.extra.length>>8&255)),A.gzhead.hcrc&&(p.adler=i(p.adler,A.pending_buf,A.pending,0)),A.gzindex=0,A.status=z):(Ee(A,0),Ee(A,0),Ee(A,0),Ee(A,0),Ee(A,0),Ee(A,A.level===9?2:A.strategy>=u||A.level<2?4:0),Ee(A,me),A.status=G);else{var _e=x+(A.w_bits-8<<4)<<8,de=-1;A.strategy>=u||A.level<2?de=0:A.level<6?de=1:A.level===6?de=2:de=3,_e|=de<<6,A.strstart!==0&&(_e|=F),_e+=31-_e%31,A.status=G,Ve(A,_e),A.strstart!==0&&(Ve(A,p.adler>>>16),Ve(A,p.adler&65535)),p.adler=1}if(A.status===z)if(A.gzhead.extra){for($=A.pending;A.gzindex<(A.gzhead.extra.length&65535)&&!(A.pending===A.pending_buf_size&&(A.gzhead.hcrc&&A.pending>$&&(p.adler=i(p.adler,A.pending_buf,A.pending-$,$)),je(p),$=A.pending,A.pending===A.pending_buf_size));)Ee(A,A.gzhead.extra[A.gzindex]&255),A.gzindex++;A.gzhead.hcrc&&A.pending>$&&(p.adler=i(p.adler,A.pending_buf,A.pending-$,$)),A.gzindex===A.gzhead.extra.length&&(A.gzindex=0,A.status=B)}else A.status=B;if(A.status===B)if(A.gzhead.name){$=A.pending;do{if(A.pending===A.pending_buf_size&&(A.gzhead.hcrc&&A.pending>$&&(p.adler=i(p.adler,A.pending_buf,A.pending-$,$)),je(p),$=A.pending,A.pending===A.pending_buf_size)){ee=1;break}A.gzindex<A.gzhead.name.length?ee=A.gzhead.name.charCodeAt(A.gzindex++)&255:ee=0,Ee(A,ee)}while(ee!==0);A.gzhead.hcrc&&A.pending>$&&(p.adler=i(p.adler,A.pending_buf,A.pending-$,$)),ee===0&&(A.gzindex=0,A.status=q)}else A.status=q;if(A.status===q)if(A.gzhead.comment){$=A.pending;do{if(A.pending===A.pending_buf_size&&(A.gzhead.hcrc&&A.pending>$&&(p.adler=i(p.adler,A.pending_buf,A.pending-$,$)),je(p),$=A.pending,A.pending===A.pending_buf_size)){ee=1;break}A.gzindex<A.gzhead.comment.length?ee=A.gzhead.comment.charCodeAt(A.gzindex++)&255:ee=0,Ee(A,ee)}while(ee!==0);A.gzhead.hcrc&&A.pending>$&&(p.adler=i(p.adler,A.pending_buf,A.pending-$,$)),ee===0&&(A.status=M)}else A.status=M;if(A.status===M&&(A.gzhead.hcrc?(A.pending+2>A.pending_buf_size&&je(p),A.pending+2<=A.pending_buf_size&&(Ee(A,p.adler&255),Ee(A,p.adler>>8&255),p.adler=0,A.status=G)):A.status=G),A.pending!==0){if(je(p),p.avail_out===0)return A.last_flush=-1,f}else if(p.avail_in===0&&Ce(te)<=Ce(re)&&te!==d)return we(p,m);if(A.status===X&&p.avail_in!==0)return we(p,m);if(p.avail_in!==0||A.lookahead!==0||te!==t&&A.status!==X){var pe=A.strategy===u?ge(A,te):A.strategy===_?ce(A,te):Re[A.level].func(A,te);if((pe===ue||pe===ve)&&(A.status=X),pe===K||pe===ue)return p.avail_out===0&&(A.last_flush=-1),f;if(pe===ae&&(te===r?n._tr_align(A):te!==l&&(n._tr_stored_block(A,0,0,!1),te===s&&(ke(A.head),A.lookahead===0&&(A.strstart=0,A.block_start=0,A.insert=0))),je(p),p.avail_out===0))return A.last_flush=-1,f}return te!==d?f:A.wrap<=0?h:(A.wrap===2?(Ee(A,p.adler&255),Ee(A,p.adler>>8&255),Ee(A,p.adler>>16&255),Ee(A,p.adler>>24&255),Ee(A,p.total_in&255),Ee(A,p.total_in>>8&255),Ee(A,p.total_in>>16&255),Ee(A,p.total_in>>24&255)):(Ve(A,p.adler>>>16),Ve(A,p.adler&65535)),je(p),A.wrap>0&&(A.wrap=-A.wrap),A.pending!==0?f:h)}function oe(p){var te;return!p||!p.state?c:(te=p.state.status,te!==W&&te!==z&&te!==B&&te!==q&&te!==M&&te!==G&&te!==X?we(p,c):(p.state=null,te===G?we(p,w):f))}function be(p,te){var re=te.length,A,$,ee,_e,de,pe,xe,vt;if(!p||!p.state||(A=p.state,_e=A.wrap,_e===2||_e===1&&A.status!==W||A.lookahead))return c;for(_e===1&&(p.adler=o(p.adler,te,re,0)),A.wrap=0,re>=A.w_size&&(_e===0&&(ke(A.head),A.strstart=0,A.block_start=0,A.insert=0),vt=new e.Buf8(A.w_size),e.arraySet(vt,te,re-A.w_size,A.w_size,0),te=vt,re=A.w_size),de=p.avail_in,pe=p.next_in,xe=p.input,p.avail_in=re,p.next_in=0,p.input=te,De(A);A.lookahead>=P;){$=A.strstart,ee=A.lookahead-(P-1);do A.ins_h=(A.ins_h<<A.hash_shift^A.window[$+P-1])&A.hash_mask,A.prev[$&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=$,$++;while(--ee);A.strstart=$,A.lookahead=P-1,De(A)}return A.strstart+=A.lookahead,A.block_start=A.strstart,A.insert=A.lookahead,A.lookahead=0,A.match_length=A.prev_length=P-1,A.match_available=0,p.next_in=pe,p.input=xe,p.avail_in=de,A.wrap=_e,f}return ut.deflateInit=ie,ut.deflateInit2=Z,ut.deflateReset=se,ut.deflateResetKeep=ne,ut.deflateSetHeader=le,ut.deflate=T,ut.deflateEnd=oe,ut.deflateSetDictionary=be,ut.deflateInfo="pako deflate (from Nodeca project)",ut}var Pn,Os;function lm(){if(Os)return Pn;Os=1;function e(){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}return Pn=e,Pn}var it={},kn,Ts;function fm(){if(Ts)return kn;Ts=1;var e=30,n=12;return kn=function(i,a){var t,r,s,d,l,f,h,c,w,m,y,g,u,_,E,v,b,x,O,C,D,Y,H,S,R;t=i.state,r=i.next_in,S=i.input,s=r+(i.avail_in-5),d=i.next_out,R=i.output,l=d-(a-i.avail_out),f=d+(i.avail_out-257),h=t.dmax,c=t.wsize,w=t.whave,m=t.wnext,y=t.window,g=t.hold,u=t.bits,_=t.lencode,E=t.distcode,v=(1<<t.lenbits)-1,b=(1<<t.distbits)-1;e:do{u<15&&(g+=S[r++]<<u,u+=8,g+=S[r++]<<u,u+=8),x=_[g&v];t:for(;;){if(O=x>>>24,g>>>=O,u-=O,O=x>>>16&255,O===0)R[d++]=x&65535;else if(O&16){C=x&65535,O&=15,O&&(u<O&&(g+=S[r++]<<u,u+=8),C+=g&(1<<O)-1,g>>>=O,u-=O),u<15&&(g+=S[r++]<<u,u+=8,g+=S[r++]<<u,u+=8),x=E[g&b];r:for(;;){if(O=x>>>24,g>>>=O,u-=O,O=x>>>16&255,O&16){if(D=x&65535,O&=15,u<O&&(g+=S[r++]<<u,u+=8,u<O&&(g+=S[r++]<<u,u+=8)),D+=g&(1<<O)-1,D>h){i.msg="invalid distance too far back",t.mode=e;break e}if(g>>>=O,u-=O,O=d-l,D>O){if(O=D-O,O>w&&t.sane){i.msg="invalid distance too far back",t.mode=e;break e}if(Y=0,H=y,m===0){if(Y+=c-O,O<C){C-=O;do R[d++]=y[Y++];while(--O);Y=d-D,H=R}}else if(m<O){if(Y+=c+m-O,O-=m,O<C){C-=O;do R[d++]=y[Y++];while(--O);if(Y=0,m<C){O=m,C-=O;do R[d++]=y[Y++];while(--O);Y=d-D,H=R}}}else if(Y+=m-O,O<C){C-=O;do R[d++]=y[Y++];while(--O);Y=d-D,H=R}for(;C>2;)R[d++]=H[Y++],R[d++]=H[Y++],R[d++]=H[Y++],C-=3;C&&(R[d++]=H[Y++],C>1&&(R[d++]=H[Y++]))}else{Y=d-D;do R[d++]=R[Y++],R[d++]=R[Y++],R[d++]=R[Y++],C-=3;while(C>2);C&&(R[d++]=R[Y++],C>1&&(R[d++]=R[Y++]))}}else if((O&64)===0){x=E[(x&65535)+(g&(1<<O)-1)];continue r}else{i.msg="invalid distance code",t.mode=e;break e}break}}else if((O&64)===0){x=_[(x&65535)+(g&(1<<O)-1)];continue t}else if(O&32){t.mode=n;break e}else{i.msg="invalid literal/length code",t.mode=e;break e}break}}while(r<s&&d<f);C=u>>3,r-=C,u-=C<<3,g&=(1<<u)-1,i.next_in=r,i.next_out=d,i.avail_in=r<s?5+(s-r):5-(r-s),i.avail_out=d<f?257+(f-d):257-(d-f),t.hold=g,t.bits=u},kn}var jn,xs;function hm(){if(xs)return jn;xs=1;var e=mn(),n=15,o=852,i=592,a=0,t=1,r=2,s=[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],d=[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],l=[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],f=[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];return jn=function(c,w,m,y,g,u,_,E){var v=E.bits,b=0,x=0,O=0,C=0,D=0,Y=0,H=0,S=0,R=0,L=0,N,V,P,j,k,F=null,W=0,z,B=new e.Buf16(n+1),q=new e.Buf16(n+1),M=null,G=0,X,K,ae;for(b=0;b<=n;b++)B[b]=0;for(x=0;x<y;x++)B[w[m+x]]++;for(D=v,C=n;C>=1&&B[C]===0;C--);if(D>C&&(D=C),C===0)return g[u++]=1<<24|64<<16|0,g[u++]=1<<24|64<<16|0,E.bits=1,0;for(O=1;O<C&&B[O]===0;O++);for(D<O&&(D=O),S=1,b=1;b<=n;b++)if(S<<=1,S-=B[b],S<0)return-1;if(S>0&&(c===a||C!==1))return-1;for(q[1]=0,b=1;b<n;b++)q[b+1]=q[b]+B[b];for(x=0;x<y;x++)w[m+x]!==0&&(_[q[w[m+x]]++]=x);if(c===a?(F=M=_,z=19):c===t?(F=s,W-=257,M=d,G-=257,z=256):(F=l,M=f,z=-1),L=0,x=0,b=O,k=u,Y=D,H=0,P=-1,R=1<<D,j=R-1,c===t&&R>o||c===r&&R>i)return 1;for(;;){X=b-H,_[x]<z?(K=0,ae=_[x]):_[x]>z?(K=M[G+_[x]],ae=F[W+_[x]]):(K=96,ae=0),N=1<<b-H,V=1<<Y,O=V;do V-=N,g[k+(L>>H)+V]=X<<24|K<<16|ae|0;while(V!==0);for(N=1<<b-1;L&N;)N>>=1;if(N!==0?(L&=N-1,L+=N):L=0,x++,--B[b]===0){if(b===C)break;b=w[m+_[x]]}if(b>D&&(L&j)!==P){for(H===0&&(H=D),k+=O,Y=b-H,S=1<<Y;Y+H<C&&(S-=B[Y+H],!(S<=0));)Y++,S<<=1;if(R+=1<<Y,c===t&&R>o||c===r&&R>i)return 1;P=L&j,g[P]=D<<24|Y<<16|k-u|0}}return L!==0&&(g[k+L]=b-H<<24|64<<16|0),E.bits=D,0},jn}var As;function dm(){if(As)return it;As=1;var e=mn(),n=ah(),o=oh(),i=fm(),a=hm(),t=0,r=1,s=2,d=4,l=5,f=6,h=0,c=1,w=2,m=-2,y=-3,g=-4,u=-5,_=8,E=1,v=2,b=3,x=4,O=5,C=6,D=7,Y=8,H=9,S=10,R=11,L=12,N=13,V=14,P=15,j=16,k=17,F=18,W=19,z=20,B=21,q=22,M=23,G=24,X=25,K=26,ae=27,ue=28,ve=29,me=30,we=31,Ce=32,ke=852,je=592,Ae=15,Ee=Ae;function Ve(Z){return(Z>>>24&255)+(Z>>>8&65280)+((Z&65280)<<8)+((Z&255)<<24)}function st(){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 e.Buf16(320),this.work=new e.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function qe(Z){var ie;return!Z||!Z.state?m:(ie=Z.state,Z.total_in=Z.total_out=ie.total=0,Z.msg="",ie.wrap&&(Z.adler=ie.wrap&1),ie.mode=E,ie.last=0,ie.havedict=0,ie.dmax=32768,ie.head=null,ie.hold=0,ie.bits=0,ie.lencode=ie.lendyn=new e.Buf32(ke),ie.distcode=ie.distdyn=new e.Buf32(je),ie.sane=1,ie.back=-1,h)}function De(Z){var ie;return!Z||!Z.state?m:(ie=Z.state,ie.wsize=0,ie.whave=0,ie.wnext=0,qe(Z))}function We(Z,ie){var T,oe;return!Z||!Z.state||(oe=Z.state,ie<0?(T=0,ie=-ie):(T=(ie>>4)+1,ie<48&&(ie&=15)),ie&&(ie<8||ie>15))?m:(oe.window!==null&&oe.wbits!==ie&&(oe.window=null),oe.wrap=T,oe.wbits=ie,De(Z))}function J(Z,ie){var T,oe;return Z?(oe=new st,Z.state=oe,oe.window=null,T=We(Z,ie),T!==h&&(Z.state=null),T):m}function Q(Z){return J(Z,Ee)}var ce=!0,ge,he;function Re(Z){if(ce){var ie;for(ge=new e.Buf32(512),he=new e.Buf32(32),ie=0;ie<144;)Z.lens[ie++]=8;for(;ie<256;)Z.lens[ie++]=9;for(;ie<280;)Z.lens[ie++]=7;for(;ie<288;)Z.lens[ie++]=8;for(a(r,Z.lens,0,288,ge,0,Z.work,{bits:9}),ie=0;ie<32;)Z.lens[ie++]=5;a(s,Z.lens,0,32,he,0,Z.work,{bits:5}),ce=!1}Z.lencode=ge,Z.lenbits=9,Z.distcode=he,Z.distbits=5}function Oe(Z,ie,T,oe){var be,p=Z.state;return p.window===null&&(p.wsize=1<<p.wbits,p.wnext=0,p.whave=0,p.window=new e.Buf8(p.wsize)),oe>=p.wsize?(e.arraySet(p.window,ie,T-p.wsize,p.wsize,0),p.wnext=0,p.whave=p.wsize):(be=p.wsize-p.wnext,be>oe&&(be=oe),e.arraySet(p.window,ie,T-oe,be,p.wnext),oe-=be,oe?(e.arraySet(p.window,ie,T-oe,oe,0),p.wnext=oe,p.whave=p.wsize):(p.wnext+=be,p.wnext===p.wsize&&(p.wnext=0),p.whave<p.wsize&&(p.whave+=be))),0}function I(Z,ie){var T,oe,be,p,te,re,A,$,ee,_e,de,pe,xe,vt,Le=0,Ie,Be,Ye,Xe,vr,yr,Me,nt,ze=new e.Buf8(4),yt,ht,ds=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!Z||!Z.state||!Z.output||!Z.input&&Z.avail_in!==0)return m;T=Z.state,T.mode===L&&(T.mode=N),te=Z.next_out,be=Z.output,A=Z.avail_out,p=Z.next_in,oe=Z.input,re=Z.avail_in,$=T.hold,ee=T.bits,_e=re,de=A,nt=h;e:for(;;)switch(T.mode){case E:if(T.wrap===0){T.mode=N;break}for(;ee<16;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}if(T.wrap&2&&$===35615){T.check=0,ze[0]=$&255,ze[1]=$>>>8&255,T.check=o(T.check,ze,2,0),$=0,ee=0,T.mode=v;break}if(T.flags=0,T.head&&(T.head.done=!1),!(T.wrap&1)||((($&255)<<8)+($>>8))%31){Z.msg="incorrect header check",T.mode=me;break}if(($&15)!==_){Z.msg="unknown compression method",T.mode=me;break}if($>>>=4,ee-=4,Me=($&15)+8,T.wbits===0)T.wbits=Me;else if(Me>T.wbits){Z.msg="invalid window size",T.mode=me;break}T.dmax=1<<Me,Z.adler=T.check=1,T.mode=$&512?S:L,$=0,ee=0;break;case v:for(;ee<16;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}if(T.flags=$,(T.flags&255)!==_){Z.msg="unknown compression method",T.mode=me;break}if(T.flags&57344){Z.msg="unknown header flags set",T.mode=me;break}T.head&&(T.head.text=$>>8&1),T.flags&512&&(ze[0]=$&255,ze[1]=$>>>8&255,T.check=o(T.check,ze,2,0)),$=0,ee=0,T.mode=b;case b:for(;ee<32;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}T.head&&(T.head.time=$),T.flags&512&&(ze[0]=$&255,ze[1]=$>>>8&255,ze[2]=$>>>16&255,ze[3]=$>>>24&255,T.check=o(T.check,ze,4,0)),$=0,ee=0,T.mode=x;case x:for(;ee<16;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}T.head&&(T.head.xflags=$&255,T.head.os=$>>8),T.flags&512&&(ze[0]=$&255,ze[1]=$>>>8&255,T.check=o(T.check,ze,2,0)),$=0,ee=0,T.mode=O;case O:if(T.flags&1024){for(;ee<16;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}T.length=$,T.head&&(T.head.extra_len=$),T.flags&512&&(ze[0]=$&255,ze[1]=$>>>8&255,T.check=o(T.check,ze,2,0)),$=0,ee=0}else T.head&&(T.head.extra=null);T.mode=C;case C:if(T.flags&1024&&(pe=T.length,pe>re&&(pe=re),pe&&(T.head&&(Me=T.head.extra_len-T.length,T.head.extra||(T.head.extra=new Array(T.head.extra_len)),e.arraySet(T.head.extra,oe,p,pe,Me)),T.flags&512&&(T.check=o(T.check,oe,pe,p)),re-=pe,p+=pe,T.length-=pe),T.length))break e;T.length=0,T.mode=D;case D:if(T.flags&2048){if(re===0)break e;pe=0;do Me=oe[p+pe++],T.head&&Me&&T.length<65536&&(T.head.name+=String.fromCharCode(Me));while(Me&&pe<re);if(T.flags&512&&(T.check=o(T.check,oe,pe,p)),re-=pe,p+=pe,Me)break e}else T.head&&(T.head.name=null);T.length=0,T.mode=Y;case Y:if(T.flags&4096){if(re===0)break e;pe=0;do Me=oe[p+pe++],T.head&&Me&&T.length<65536&&(T.head.comment+=String.fromCharCode(Me));while(Me&&pe<re);if(T.flags&512&&(T.check=o(T.check,oe,pe,p)),re-=pe,p+=pe,Me)break e}else T.head&&(T.head.comment=null);T.mode=H;case H:if(T.flags&512){for(;ee<16;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}if($!==(T.check&65535)){Z.msg="header crc mismatch",T.mode=me;break}$=0,ee=0}T.head&&(T.head.hcrc=T.flags>>9&1,T.head.done=!0),Z.adler=T.check=0,T.mode=L;break;case S:for(;ee<32;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}Z.adler=T.check=Ve($),$=0,ee=0,T.mode=R;case R:if(T.havedict===0)return Z.next_out=te,Z.avail_out=A,Z.next_in=p,Z.avail_in=re,T.hold=$,T.bits=ee,w;Z.adler=T.check=1,T.mode=L;case L:if(ie===l||ie===f)break e;case N:if(T.last){$>>>=ee&7,ee-=ee&7,T.mode=ae;break}for(;ee<3;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}switch(T.last=$&1,$>>>=1,ee-=1,$&3){case 0:T.mode=V;break;case 1:if(Re(T),T.mode=z,ie===f){$>>>=2,ee-=2;break e}break;case 2:T.mode=k;break;case 3:Z.msg="invalid block type",T.mode=me}$>>>=2,ee-=2;break;case V:for($>>>=ee&7,ee-=ee&7;ee<32;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}if(($&65535)!==($>>>16^65535)){Z.msg="invalid stored block lengths",T.mode=me;break}if(T.length=$&65535,$=0,ee=0,T.mode=P,ie===f)break e;case P:T.mode=j;case j:if(pe=T.length,pe){if(pe>re&&(pe=re),pe>A&&(pe=A),pe===0)break e;e.arraySet(be,oe,p,pe,te),re-=pe,p+=pe,A-=pe,te+=pe,T.length-=pe;break}T.mode=L;break;case k:for(;ee<14;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}if(T.nlen=($&31)+257,$>>>=5,ee-=5,T.ndist=($&31)+1,$>>>=5,ee-=5,T.ncode=($&15)+4,$>>>=4,ee-=4,T.nlen>286||T.ndist>30){Z.msg="too many length or distance symbols",T.mode=me;break}T.have=0,T.mode=F;case F:for(;T.have<T.ncode;){for(;ee<3;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}T.lens[ds[T.have++]]=$&7,$>>>=3,ee-=3}for(;T.have<19;)T.lens[ds[T.have++]]=0;if(T.lencode=T.lendyn,T.lenbits=7,yt={bits:T.lenbits},nt=a(t,T.lens,0,19,T.lencode,0,T.work,yt),T.lenbits=yt.bits,nt){Z.msg="invalid code lengths set",T.mode=me;break}T.have=0,T.mode=W;case W:for(;T.have<T.nlen+T.ndist;){for(;Le=T.lencode[$&(1<<T.lenbits)-1],Ie=Le>>>24,Be=Le>>>16&255,Ye=Le&65535,!(Ie<=ee);){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}if(Ye<16)$>>>=Ie,ee-=Ie,T.lens[T.have++]=Ye;else{if(Ye===16){for(ht=Ie+2;ee<ht;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}if($>>>=Ie,ee-=Ie,T.have===0){Z.msg="invalid bit length repeat",T.mode=me;break}Me=T.lens[T.have-1],pe=3+($&3),$>>>=2,ee-=2}else if(Ye===17){for(ht=Ie+3;ee<ht;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}$>>>=Ie,ee-=Ie,Me=0,pe=3+($&7),$>>>=3,ee-=3}else{for(ht=Ie+7;ee<ht;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}$>>>=Ie,ee-=Ie,Me=0,pe=11+($&127),$>>>=7,ee-=7}if(T.have+pe>T.nlen+T.ndist){Z.msg="invalid bit length repeat",T.mode=me;break}for(;pe--;)T.lens[T.have++]=Me}}if(T.mode===me)break;if(T.lens[256]===0){Z.msg="invalid code -- missing end-of-block",T.mode=me;break}if(T.lenbits=9,yt={bits:T.lenbits},nt=a(r,T.lens,0,T.nlen,T.lencode,0,T.work,yt),T.lenbits=yt.bits,nt){Z.msg="invalid literal/lengths set",T.mode=me;break}if(T.distbits=6,T.distcode=T.distdyn,yt={bits:T.distbits},nt=a(s,T.lens,T.nlen,T.ndist,T.distcode,0,T.work,yt),T.distbits=yt.bits,nt){Z.msg="invalid distances set",T.mode=me;break}if(T.mode=z,ie===f)break e;case z:T.mode=B;case B:if(re>=6&&A>=258){Z.next_out=te,Z.avail_out=A,Z.next_in=p,Z.avail_in=re,T.hold=$,T.bits=ee,i(Z,de),te=Z.next_out,be=Z.output,A=Z.avail_out,p=Z.next_in,oe=Z.input,re=Z.avail_in,$=T.hold,ee=T.bits,T.mode===L&&(T.back=-1);break}for(T.back=0;Le=T.lencode[$&(1<<T.lenbits)-1],Ie=Le>>>24,Be=Le>>>16&255,Ye=Le&65535,!(Ie<=ee);){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}if(Be&&(Be&240)===0){for(Xe=Ie,vr=Be,yr=Ye;Le=T.lencode[yr+(($&(1<<Xe+vr)-1)>>Xe)],Ie=Le>>>24,Be=Le>>>16&255,Ye=Le&65535,!(Xe+Ie<=ee);){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}$>>>=Xe,ee-=Xe,T.back+=Xe}if($>>>=Ie,ee-=Ie,T.back+=Ie,T.length=Ye,Be===0){T.mode=K;break}if(Be&32){T.back=-1,T.mode=L;break}if(Be&64){Z.msg="invalid literal/length code",T.mode=me;break}T.extra=Be&15,T.mode=q;case q:if(T.extra){for(ht=T.extra;ee<ht;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}T.length+=$&(1<<T.extra)-1,$>>>=T.extra,ee-=T.extra,T.back+=T.extra}T.was=T.length,T.mode=M;case M:for(;Le=T.distcode[$&(1<<T.distbits)-1],Ie=Le>>>24,Be=Le>>>16&255,Ye=Le&65535,!(Ie<=ee);){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}if((Be&240)===0){for(Xe=Ie,vr=Be,yr=Ye;Le=T.distcode[yr+(($&(1<<Xe+vr)-1)>>Xe)],Ie=Le>>>24,Be=Le>>>16&255,Ye=Le&65535,!(Xe+Ie<=ee);){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}$>>>=Xe,ee-=Xe,T.back+=Xe}if($>>>=Ie,ee-=Ie,T.back+=Ie,Be&64){Z.msg="invalid distance code",T.mode=me;break}T.offset=Ye,T.extra=Be&15,T.mode=G;case G:if(T.extra){for(ht=T.extra;ee<ht;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}T.offset+=$&(1<<T.extra)-1,$>>>=T.extra,ee-=T.extra,T.back+=T.extra}if(T.offset>T.dmax){Z.msg="invalid distance too far back",T.mode=me;break}T.mode=X;case X:if(A===0)break e;if(pe=de-A,T.offset>pe){if(pe=T.offset-pe,pe>T.whave&&T.sane){Z.msg="invalid distance too far back",T.mode=me;break}pe>T.wnext?(pe-=T.wnext,xe=T.wsize-pe):xe=T.wnext-pe,pe>T.length&&(pe=T.length),vt=T.window}else vt=be,xe=te-T.offset,pe=T.length;pe>A&&(pe=A),A-=pe,T.length-=pe;do be[te++]=vt[xe++];while(--pe);T.length===0&&(T.mode=B);break;case K:if(A===0)break e;be[te++]=T.length,A--,T.mode=B;break;case ae:if(T.wrap){for(;ee<32;){if(re===0)break e;re--,$|=oe[p++]<<ee,ee+=8}if(de-=A,Z.total_out+=de,T.total+=de,de&&(Z.adler=T.check=T.flags?o(T.check,be,de,te-de):n(T.check,be,de,te-de)),de=A,(T.flags?$:Ve($))!==T.check){Z.msg="incorrect data check",T.mode=me;break}$=0,ee=0}T.mode=ue;case ue:if(T.wrap&&T.flags){for(;ee<32;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}if($!==(T.total&4294967295)){Z.msg="incorrect length check",T.mode=me;break}$=0,ee=0}T.mode=ve;case ve:nt=c;break e;case me:nt=y;break e;case we:return g;case Ce:default:return m}return Z.next_out=te,Z.avail_out=A,Z.next_in=p,Z.avail_in=re,T.hold=$,T.bits=ee,(T.wsize||de!==Z.avail_out&&T.mode<me&&(T.mode<ae||ie!==d))&&Oe(Z,Z.output,Z.next_out,de-Z.avail_out),_e-=Z.avail_in,de-=Z.avail_out,Z.total_in+=_e,Z.total_out+=de,T.total+=de,T.wrap&&de&&(Z.adler=T.check=T.flags?o(T.check,be,de,Z.next_out-de):n(T.check,be,de,Z.next_out-de)),Z.data_type=T.bits+(T.last?64:0)+(T.mode===L?128:0)+(T.mode===z||T.mode===P?256:0),(_e===0&&de===0||ie===d)&&nt===h&&(nt=u),nt}function ne(Z){if(!Z||!Z.state)return m;var ie=Z.state;return ie.window&&(ie.window=null),Z.state=null,h}function se(Z,ie){var T;return!Z||!Z.state||(T=Z.state,(T.wrap&2)===0)?m:(T.head=ie,ie.done=!1,h)}function le(Z,ie){var T=ie.length,oe,be,p;return!Z||!Z.state||(oe=Z.state,oe.wrap!==0&&oe.mode!==R)?m:oe.mode===R&&(be=1,be=n(be,ie,T,0),be!==oe.check)?y:(p=Oe(Z,ie,T,T),p?(oe.mode=we,g):(oe.havedict=1,h))}return it.inflateReset=De,it.inflateReset2=We,it.inflateResetKeep=qe,it.inflateInit=Q,it.inflateInit2=J,it.inflate=I,it.inflateEnd=ne,it.inflateGetHeader=se,it.inflateSetDictionary=le,it.inflateInfo="pako inflate (from Nodeca project)",it}var Ln,Is;function pm(){return Is||(Is=1,Ln={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}),Ln}const mm={overlayWidth:new at(100,100,50)};function Cs(){const e=Fe(),n=Ze(),o=ur(),i=Dt(),a=Se(b=>Pf(b)),t=a.uiState.selectedCustomerTenantId,r=fe.useMemo(()=>t?a.customers.find(b=>b.tenantId===t):void 0,[a.customers,t]),s=Se(b=>t?kf(b.aiAccountantCustomerState,b.userState,t):[]),d=a.customerViewStateByTenantId[t],l=d?.jobsFetchStatus??{fetchState:"Not-Started"},f=d?.jobsPageToken!=null;fe.useEffect(()=>{a.fetchState==="Completed"?n(xt(!1)):(a.fetchState==="Not-Started"||a.fetchState==="Error")&&n(ps())},[a.fetchState]);const h=b=>{const x=It(b),O=Mt(b);Ge.trackCockpitTabClicked(O),e(`../../${x}`,{replace:!0})},c=(b,x,O,C)=>{n(jf([b.tenantId])),n(Lf(x,O,C))},w=b=>{n(qf(b.companyId,b.tenantId))},m=b=>{b==="aiAccountant"&&n(ps())},y=(b,x)=>{n(Wt({sortKey:b,sortOrder:x}))},g=b=>{n(Wt({selectedCustomerTenantId:b.tenantId})),n(rn(b.tenantId))},u=()=>{n(Wt({selectedCustomerTenantId:""}))},_=b=>{n(Wt({filterText:b}))},E=(b,x)=>{n(Wt({filters:x}))},v=()=>{t&&n(rn(t,!0))};return U.jsxs(U.Fragment,{children:[U.jsx(wp,{headerData:{selectedTabOption:wt("aiAccountant")},headerActions:{onTabChange:h},aiAccountantPageData:{aiAccountantView:a},aiAccountantPageActions:{onAction:c,onCancelOnboarding:w,onCockpitReloadData:m,onColumnSortConfigChanged:y,onCustomerSelected:g,onFilterTextChanged:_,onFiltersChange:E}}),U.jsx(lr,{anchor:"right",open:r!=null,PaperProps:{style:{width:mm.overlayWidth.valuePercentage(o),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.75,cursor:"pointer"}}},onClose:u,children:r!=null&&U.jsx(Qf,{customer:r,hasMoreJobs:f,jobs:s,jobsFetchStatus:l,onAction:c,onCancelOnboarding:w,onClose:u,onLoadMoreJobs:v})})]})}function gm(){const{tenantId:e=""}=ot(),n=Fe(),o=Ze(),i=Se(c=>id(c.aiAccountantCustomerState,c.userState)),a=Se(c=>Pf(c)),t=i.find(c=>c.tenantId===e),r=a.customerViewStateByTenantId[e],s=Se(c=>kf(c.aiAccountantCustomerState,c.userState,e));if(fe.useEffect(()=>{o(rn(e))},[e,o]),t==null)return null;const d=(c,w,m,y)=>{o(jf([c.tenantId])),o(Lf(w,m,y))},l=c=>{o(qf(c.companyId,c.tenantId))},f=()=>{n("../")},h=()=>{o(rn(e,!0))};return U.jsx(Qf,{customer:t,hasMoreJobs:r?.jobsPageToken!=null,jobs:s,jobsFetchStatus:r?.jobsFetchStatus??{fetchState:"Not-Started"},onAction:d,onCancelOnboarding:l,onClose:f,onLoadMoreJobs:h})}const sh=(e,n)=>{const o=[...e??[]];return o.push(n),o},vm=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},ym=(e=2)=>{let n="../";for(let o=0;o<e;o++)n=`${n}../`;return n},Pe=({state:e,element:n})=>Je.isSignedIn()===!0?U.jsx(U.Fragment,{children:n}):U.jsx(rr,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function _m(){return U.jsxs(gt,{children:[U.jsx(Te,{path:"/",element:U.jsx(Pe,{element:U.jsx(Cs,{})})}),U.jsx(Te,{path:"/detail/:tenantId",element:U.jsx(Pe,{element:U.jsx(gm,{})})}),U.jsx(Te,{path:"/*",element:U.jsx(Pe,{element:U.jsx(Cs,{})})})]})}const Ft=()=>{const[e,n]=ih(),[o,i]=fe.useState(),a=fe.useRef(!1);return fe.useEffect(()=>{if(a.current===!0||!(e.has("thread_id")||e.has("entity_type")||e.has("company_id")))return;const r=Ep(e);r!=null&&i(r);const s=new URLSearchParams(e);s.delete("thread_id"),s.delete("entity_type"),s.delete("company_id"),n(s,{replace:!0}),a.current=!0},[e,n]),o},bm={overlayWidth:new at(100,100,50)},{common:{strings:Ps}}=cr.getLocalizedStrings();function wm(e,n){return{headerActions:{onTabChange:o=>{const i=It(o),a=Mt(o);Ge.trackCockpitTabClicked(a),n.navigate(`../../${i}`,{replace:!0})},filterActions:{onFilterTextChanged:(o,i)=>{e(_r({uiState:{filterText:i}}))},onFiltersChange:(o,i)=>{i.categories!=null&&i.categoryCombinationOperator!=null&&Ge.trackHealthMonitorFiltersApplied({filterSelection:{condition:i.categories.map(a=>a.matchingOperator).join(Ps.comma),logic:i.categoryCombinationOperator,parameter:i.categories.map(a=>a.field).join(Ps.comma)}}),e(_r({uiState:{filters:i}}))}}},healthPageActions:{onRowClick:o=>{e(Df(o))},onColumnSortConfigChanged:(o,i)=>{e(_r({uiState:{sortKey:o,sortOrder:i}}))},onCockpitReloadData:o=>{o==="healthMonitor"&&e(Nf())},onFiltersChange:o=>{e(_r({uiState:{filters:o}}))}}}}function Em(e,n){return{headerData:{selectedTabOption:wt("healthMonitor")},healthPageData:{healthView:n.healthView,managementView:n.managementView,mixpanelUrl:n.mixpanelHMUrl}}}const Sm=$e(Em,wm)(Tp);function qn({isDrawerOpen:e}){const n=Fe(),o=Ze(),i=Dt(),a=ur(),{companyId:t}=ot(),[r,s]=ih(),[d,l]=fe.useState(!1),f=Ft(),h=Se(v=>ad(v)),c=Se(v=>or(v)),{additionalChurnFactors:w}=Se(v=>od(v)),{selectedCompanyDetail:m,selectedCompanyId:y,localFormDataAndStatusByCompanyId:g}=h,u=Se(v=>v.companyViewState.zeniUsers.fetchState),_=Se(v=>v.companyHealthMetricConfigViewState);if(fe.useEffect(()=>{const v=b=>b==="Not-Started"||b==="Error";h.fetchState==="Completed"?o(xt(!1)):v(h.fetchState)&&(o(Nf()),v(u)&&o(At()),v(_.fetchState)&&o(sd()))},[h.fetchState,_.fetchState]),fe.useEffect(()=>{t!=null&&h.fetchState==="Completed"&&r.has("utm_source")===!0&&(o(Df(t)),m!=null&&(Sp(),Ge.trackCockpitHealthMonitorNotificationAlertClicked({companyId:m.companyInfo.companyId,companyName:m.companyInfo.name,churnProbability:m.companyHealthMetric.churnProbabilityPercentage??null}),l(!0),r.delete("utm_source"),s(r)))},[h.fetchState,m?.companyInfo.companyId,m?.companyInfo.name]),Je.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return U.jsxs(U.Fragment,{children:[e===!0||y!=null&&m!=null?U.jsx(lr,{anchor:"right",open:y!=null,PaperProps:{style:{width:bm.overlayWidth.valuePercentage(a),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>o(ms()),children:U.jsx(Rp,{roomId:`cockpit_${y}`,autoConnect:!0,children:U.jsx(Op,{onSaveClick:()=>{y!=null&&o(cd(y))},onSaveChangesToLocalStore:v=>{h.selectedCompanyId!=null&&o(ud({companyId:h.selectedCompanyId,updatedLocalData:v}))},localData:g?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:h,onCloseDrawer:()=>o(ms()),analytics:Ge,urlSource:d,additionalChurnFactorsOptions:w})})}):null,U.jsx(Sm,{initialOpenThreadRequest:f??void 0,healthView:h,managementView:c,navigate:n,mixpanelHMUrl:fn.mixpanelHMUrl})]})}function Rm(){return U.jsxs(gt,{children:[U.jsx(Te,{path:"/companies/:companyId",element:U.jsx(Pe,{element:U.jsx(qn,{isDrawerOpen:!0})})}),U.jsx(Te,{path:"/",element:U.jsx(Pe,{element:U.jsx(qn,{})})}),U.jsx(Te,{path:"/*",element:U.jsx(Pe,{element:U.jsx(qn,{})})})]})}const Om={drawerLeftMargin:new at(0,0,240)};function dr(e){const{isOpen:n,drawerLeftMargin:o,children:i,onClose:a}=e,t=ur(),r=o?.valuePx(t)??Om.drawerLeftMargin.valuePx(t),s=Dt();return U.jsx(lr,{anchor:"right",open:n,PaperProps:{style:{width:`calc(100% - ${r})`}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:a,children:i})}const Tm=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?U.jsx(xm,{children:U.jsx(hn,{size:"ExtraLarge",start:!0})}):null,xm=tt.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
width: 100%;
|
|
4
4
|
height: 100%;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as
|
|
1
|
+
import{j as l}from"./liveblocks-C7Zupxea.js";import{a as f,b as S,n as I}from"./sentry-CvrT50CN.js";import{n as m,i as w,g,u as h,N as y,h as b}from"./core-DewJXbwB.js";import{z as d,h as C,D as v,a as E,y as U,W as T,e as p}from"./index-BlJZ-dhR.js";import{GO as x,GP as D,GQ as L,GR as z,bi as u}from"./zeni-epic-state-CovB4gqb.js";import{f as A}from"./analyticsHelper-hrB0kxk3.js";import"./recharts-CKPbJuAx.js";import"./mui-CiRrt3-Q.js";import"./lottie-B7qludfH.js";import"./analytics-DWHcOHaf.js";import"./lexical-C519bmtq.js";import"./utils-LaFOlRS7.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="6ed491bc-f643-4a65-806e-ead0f8e8ec73",e._sentryDebugIdIdentifier="sentry-dbid-6ed491bc-f643-4a65-806e-ead0f8e8ec73")}catch{}})();function N(e){const o=e.tenantState.fetchState,i=e.tenantState.sendEmailMagicLinkFetchState;return{googleClientId:p.googleClientId,microsoftClientId:p.microsoftClientId,signInError:e.tenantState.error?.error,fetchState:o,sendMagicLinkStatus:i,showEmailLogin:!1}}function P(e,o){const{location:i,navigate:r}=o;return console.warn(JSON.stringify(window.location)),{onOAuthError:(n,t)=>{I({message:`OAuth error from provider ${t} with error ${n}`,level:"error",tags:{authProvider:t,errorType:"zeni.login.error"},extra:{error:n,windowLocation:window.location.href}})},onOAuthSuccess:(n,t)=>{const s=t==="google"?window.location.origin:window.location.origin+window.location.pathname;e(z({authCode:n,oauthProvider:t,appType:"web",redirectUri:u(s),sourceUri:u(i.state!=null?i.state.origin:"")}))},getSignedInUser:()=>d.getSignedInUser(),onSignedInCallback:()=>{const n=i.state?.origin;n&&n!=="/"?r(n,{replace:!0}):window.open(window.location.origin,"_self")},clearSignInError:()=>{e(L())}}}const k=b(N,P)(T),O=S.memo(k);function Q(){const e=m(),o=w(),i=d.getSignedInUser(),r=g(a=>a.tenantState.fetchState),n=g(a=>a.tenantState.signInState),t=g(a=>a.tenantState.loggedInUser),s=C().mode,c=h();if(f.useEffect(()=>{n==="In-Progress"&&r==="Completed"&&t?.zeniSessionId!=null&&(d.saveSignedInUserWithSession(t,t.zeniSessionId),x(t.userId,t.zeniSessionId),e(D("Completed")),v.updateAppLocaleID("en"),A(t,s),setTimeout(()=>{E.trackLogin(U.Event.loginSuccess,t.authProvider??"google")},2e3))},[]),n==="In-Progress"&&r==="Completed"&&t?.zeniSessionId!=null||i!=null){const a=c.state?.origin??"/";return l.jsx(y,{to:a,state:{...c.state,origin:""}})}else return l.jsx(O,{navigate:o,location:c})}export{Q as default};
|