elsefor(T=0;m>T;++T)e[n++]=e[i++]=E[T];if(A=t.a.extraField)if(b)e.set(A,n),e.set(A,i),n+=0,i+=0;elsefor(T=0;w>T;++T)e[n++]=e[i++]=A[T];if(k=t.a.comment)if(b)e.set(k,i),i+=w;elsefor(T=0;w>T;++T)e[i++]=k[T];if(b)e.set(t.buffer,n),n+=t.buffer.length;elsefor(T=0,D=t.buffer.length;D>T;++T)e[n++]=t.buffer[T]}if(e[s++]=M[0],e[s++]=M[1],e[s++]=M[2],e[s++]=M[3],e[s++]=0,e[s++]=0,e[s++]=0,e[s++]=0,e[s++]=255&I,e[s++]=255&I>>8,e[s++]=255&I,e[s++]=255&I>>8,e[s++]=255&F,e[s++]=255&F>>8,e[s++]=255&F>>16,e[s++]=255&F>>24,e[s++]=255&R,e[s++]=255&R>>8,e[s++]=255&R>>16,e[s++]=255&R>>24,w=this.d?this.d.length:0,e[s++]=255&w,e[s++]=255&w>>8,this.d)if(b)e.set(this.d,s);elsefor(T=0,D=w;D>T;++T)e[s++]=this.d[T];returne},t("Zlib.Zip",h),t("Zlib.Zip.prototype.addFile",h.prototype.m),t("Zlib.Zip.prototype.compress",h.prototype.g),t("Zlib.Zip.prototype.setPassword",h.prototype.q),g("Zlib.Zip.CompressionMethod",{STORE:0,DEFLATE:8}),g("Zlib.Zip.OperatingSystem",{MSDOS:0,UNIX:3,MACINTOSH:7})}.call(this),n("zip",function(){}),function(){functiont(t){throwt}functione(t,e){varn=t.split("."),r=g;!(n[0]inr)&&r.execScript&&r.execScript("var "+n[0]);for(vari;n.length&&(i=n.shift());)n.length||e===d?r=r[i]?r[i]:r[i]={}:r[i]=e}functionn(t){vare,n,r,i,o,s,a,c,u,f,l=t.length,h=0,p=Number.POSITIVE_INFINITY;for(c=0;l>c;++c)t[c]>h&&(h=t[c]),p>t[c]&&(p=t[c]);for(e=1<<h,n=new(y?Uint32Array:Array)(e),r=1,i=0,o=2;h>=r;){for(c=0;l>c;++c)if(t[c]===r){for(s=0,a=i,u=0;r>u;++u)s=s<<1|1&a,a>>=1;for(f=r<<16|c,u=s;e>u;u+=o)n[u]=f;++i}++r,i<<=1,o<<=1}return[n,h,p]}functionr(e,n){switch(this.l=[],this.m=32768,this.d=this.f=this.c=this.t=0,this.input=y?newUint8Array(e):e,this.u=!1,this.n=S,this.L=!1,(n||!(n={}))&&(n.index&&(this.c=n.index),n.bufferSize&&(this.m=n.bufferSize),n.bufferType&&(this.n=n.bufferType),n.resize&&(this.L=n.resize)),this.n){casex:this.a=32768,this.b=new(y?Uint8Array:Array)(32768+this.m+258);break;caseS:this.a=0,this.b=new(y?Uint8Array:Array)(this.m),this.e=this.X,this.B=this.S,this.q=this.W;break;default:t(Error("invalid inflate mode"))}}functioni(e,n){for(varr,i=e.f,o=e.d,s=e.input,a=e.c,c=s.length;n>o;)a>=c&&t(Error("input buffer is broken")),i|=s[a++]<<o,o+=8;returnr=i&(1<<n)-1,e.f=i>>>n,e.d=o-n,e.c=a,r}functiono(t,e){for(varn,r,i=t.f,o=t.d,s=t.input,a=t.c,c=s.length,u=e[0],f=e[1];f>o&&!(a>=c);)i|=s[a++]<<o,o+=8;returnn=u[i&(1<<f)-1],r=n>>>16,t.f=i>>r,t.d=o-r,t.c=a,65535&n}functions(t){functione(t,e,n){varr,s,a,c=this.K;for(a=0;t>a;)switch(r=o(this,e)){case16:for(s=3+i(this,2);s--;)n[a++]=c;break;case17:for(s=3+i(this,3);s--;)n[a++]=0;c=0;break;case18:for(s=11+i(this,7);s--;)n[a++]=0;c=0;break;default:c=n[a++]=r}returnthis.K=c,n}varr,s,a,c,u=i(t,5)+257,f=i(t,5)+1,l=i(t,4)+4,h=new(y?Uint8Array:Array)(D.length);for(c=0;l>c;++c)h[D[c]]=i(t,3);if(!y)for(c=l,l=h.length;l>c;++c)h[D[c]]=0;r=n(h),s=new(y?Uint8Array:Array)(u),a=new(y?Uint8Array:Array)(f),t.K=0,t.q(n(e.call(t,u,r,s)),n(e.call(t,f,r,a)))}functiona(t){t=t||{},this.files=[],this.v=t.comment}functionc(t,e){e=e||{},this.input=y&&tinstanceofArray?newUint8Array(t):t,this.c=0,this.ca=e.verify||!1,this.j=e.password}functionu(t,e){this.input=t,this.offset=e}functionf(t,e){this.input=t,this.offset=e}functionl(e){varn,r,i,o,s=[],a={};if(!e.i){if(e.o===d){varc,f=e.input;if(!e.D)t:{varl,h=e.input;for(l=h.length-12;l>0;--l)if(h[l]===Z[0]&&h[l+1]===Z[1]&&h[l+2]===Z[2]&&h[l+3]===Z[3]){e.D=l;breakt}t(Error("End of Central Directory Record not found"))}c=e.D,(f[c++]!==Z[0]||f[c++]!==Z[1]||f[c++]!==Z[2]||f[c++]!==Z[3])&&t(Error("invalid signature")),e.ia=f[c++]|f[c++]<<8,e.ka=f[c++]|f[c++]<<8,e.la=f[c++]|f[c++]<<8,e.ba=f[c++]|f[c++]<<8,e.R=(f[c++]|f[c++]<<8|f[c++]<<16|f[c++]<<24)>>>0,e.o=(f[c++]|f[c++]<<8|f[c++]<<16|f[c++]<<24)>>>0,e.w=f[c++]|f[c++]<<8,e.v=y?f.subarray(c,c+e.w):f.slice(c,c+e.w)}for(n=e.o,i=0,o=e.ba;o>i;++i)r=newu(e.input,n),r.parse(),n+=r.length,s[i]=r,a[r.filename]=i;e.R<n-e.o&&t(Error("invalid file header size")),e.i=s,e.G=a}}functionh(t,e,n){returnn^=t.s(e),t.k(e,n),n}varp,d=void0,g=this,y="undefined"!=typeofUint8Array&&"undefined"!=typeofUint16
}functionp(e){if(e)o(e);else{varr=Date.now();n(t,A,y,{mtime:r,ctime:r},g)}}functiond(e){e?o(e):(v[E]=newMe(b.id,ve),t.put(y.data,v,p))}functiong(t){t?o(t):o(null,b)}e=he(e);vary,v,m,b,w,E=de(e),A=pe(e),k=0;Ee==E?le(r).contains(xe)?o(newCe.EISDIR("the named file is a directory and O_WRITE is set")):i(t,e,f):i(t,A,s)}functionf(t,e,r,i,o,s){functiona(t){t?s(t):s(null,o)}functionc(r){if(r)s(r);else{vari=Date.now();n(t,e.path,l,{mtime:i,ctime:i},a)}}functionu(e){e?s(e):t.put(l.id,l,c)}functionf(n,a){if(n)s(n);else{l=a;varc=newUint8Array(o),f=r.subarray(i,i+o);c.set(f),e.position=o,l.size=o,l.version+=1,t.put(l.data,c,u)}}varl;t.get(e.id,f)}functionl(t,e,r,i,o,s,a){functionc(t){t?a(t):a(null,o)}functionu(r){if(r)a(r);else{vari=Date.now();n(t,e.path,p,{mtime:i,ctime:i},c)}}functionf(e){e?a(e):t.put(p.id,p,u)}functionl(n,c){if(n)a(n);else{d=c;varu=void0!==s&&null!==s?s:e.position,l=Math.max(d.length,u+o),h=newUint8Array(l);d&&h.set(d);varg=r.subarray(i,i+o);h.set(g,u),void0===s&&(e.position+=o),p.size=l,p.version+=1,t.put(p.data,h,f)}}functionh(e,n){e?a(e):(p=n,t.get(p.data,l))}varp,d;t.get(e.id,h)}functionh(t,e,n,r,i,o,s){functiona(t,a){if(t)s(t);else{f=a;varc=void0!==o&&null!==o?o:e.position;i=c+i>n.length?i-c:i;varu=f.subarray(c,c+i);n.set(u,r),void0===o&&(e.position+=i),s(null,i)}}functionc(e,n){e?s(e):(u=n,t.get(u.data,a))}varu,f;t.get(e.id,c)}functionp(t,n,r){n=he(n),de(n),i(t,n,e(r))}functiond(t,n,r){t.get(n.id,e(r))}functiong(t,n,r){functiono(e,n){e?r(e):(a=n,t.get(a.data,s))}functions(n,i){n?r(n):(c=i,le(c).has(u)?t.get(c[u].id,e(r)):r(newCe.ENOENT("a component of the path does not name an existing file")))}n=he(n);vara,c,u=de(n),f=pe(n);Ee==u?i(t,n,e(r)):i(t,f,o)}functiony(t,e,r,o){functions(e){e?o(e):n(t,r,b,{ctime:Date.now()},o)}functiona(e,n){e?o(e):(b=n,b.nlinks+=1,t.put(b.id,b,s))}functionc(e){e?o(e):t.get(m[w].id,a)}functionu(e,n){e?o(e):(m=n,le(m).has(w)?o(newCe.EEXIST("newpath resolves to an existing file")):(m[w]=y[p],t.put(v.data,m,c)))}functionf(e,n){e?o(e):(v=n,t.get(v.data,u))}functionl(e,n){e?o(e):(y=n,le(y).has(p)?i(t,E,f):o(newCe.ENOENT("a component of either path prefix does not exist")))}functionh(e,n){e?o(e):(g=n,t.get(g.data,l))}e=he(e);varp=de(e),d=pe(e);r=he(r);varg,y,v,m,b,w=de(r),E=pe(r);i(t,d,h)}functionv(t,e,r){functiono(e){e?r(e):(deletel[p],t.put(f.data,l,function(){vare=Date.now();n(t,d,f,{mtime:e,ctime:e},r)}))}functions(e){e?r(e):t.delete(h.data,o)}functiona(i,a){i?r(i):(h=a,h.nlinks-=1,1>h.nlinks?t.delete(h.id,s):t.put(h.id,h,function(){n(t,e,h,{ctime:Date.now()},o)}))}functionc(e,n){e?r(e):(l=n,le(l).has(p)?t.get(l[p].id,a):r(newCe.ENOENT("a component of the path does not name an existing file")))}functionu(e,n){e?r(e):(f=n,t.get(f.data,c))}e=he(e);varf,l,h,p=de(e),d=pe(e);i(t,d,u)}functionm(t,e,n){functionr(t,e){if(t)n(t);else{a=e;varr=Object.keys(a);n(null,r)}}functiono(e,i){e?n(e):(s=i,t.get(s.data,r))}e=he(e),de(e);vars,a;i(t,e,o)}functionb(t,e,r,o){functions(e,n){e?o(e):(l=n,t.get(l.data,a))}functiona(t,e){t?o(t):(h=e,le(h).has(d)?o(newCe.EEXIST):c())}functionc(){p=newBe(void0,be),p.nlinks+=1,p.size=e.length,p.data=e,t.put(p.id,p,f)}functionu(e){if(e)o(e);else{varr=Date.now();n(t,g,l,{mtime:r,ctime:r},o)}}functionf(e){e?o(e):(h[d]=newMe(p.id,be),t.put(l.data,h,u))}r=he(r);varl,h,p,d=de(r),g=pe(r);Ee==d?o(newCe.EEXIST):i(t,g,s)}functionw(t,e,n){functionr(e,r){e?n(e):(a=r,t.get(a.data,o))}functiono(e,r){e?n(e):(c=r,le(c).has(u)?t.get(c[u].id,s):n(newCe.ENOENT("a component of the path does not name an existing file")))}functions(t,e){t?n(t):e.mode!=be?n(newCe.EINVAL("path not a symbolic link")):n(null,e.data)}e=he(e);vara,c,u=de(e),f=pe(e);i(t,f,r)}functionE(t,e,r,o){functions(e,n){e?o(e):n.mode==me?o(newCe.EISDIR):(f=n,t.get(f.data,a))}functiona(e,n){if(e)o(e);else{vari=newUint8Array(r);n&&i.set(n.subarray(0,r)),t.put(f.data,i,u)}}functionc(r){if(r)o(r);else{vari=Date.now();n(t,e,f,{mtime:i,ctime:i},o)}}functionu(e){e?o(e):(f.size=r,f.version+=1,t.put(f.id,f,c))}e=he(e);varf;0>r?o(ne