Socket
Socket
Sign inDemoInstall

fflate

Package Overview
Dependencies
0
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.10 to 0.3.11

2

CHANGELOG.md

@@ -0,1 +1,3 @@

## 0.3.11
- Fix docs
## 0.3.9

@@ -2,0 +4,0 @@ - Fixed issue with unzipping

52

esm/browser.js

@@ -329,3 +329,3 @@ // DEFLATE is a complex format; to read this code, you should probably check the RFC first:

};
// starting at p, write the minimum number of bits that can hold v to ds
// starting at p, write the minimum number of bits that can hold v to d
var wbits = function (d, p, v) {

@@ -337,3 +337,3 @@ v <<= p & 7;

};
// starting at p, write the minimum number of bits (>8) that can hold v to ds
// starting at p, write the minimum number of bits (>8) that can hold v to d
var wbits16 = function (d, p, v) {

@@ -957,3 +957,3 @@ v <<= p & 7;

cb = opts, opts = {};
if (!cb)
if (typeof cb != 'function')
throw 'no callback';

@@ -1039,3 +1039,3 @@ return cbify(data, opts, [

cb = opts, opts = {};
if (!cb)
if (typeof cb != 'function')
throw 'no callback';

@@ -1107,3 +1107,3 @@ return cbify(data, opts, [

cb = opts, opts = {};
if (!cb)
if (typeof cb != 'function')
throw 'no callback';

@@ -1191,3 +1191,3 @@ return cbify(data, opts, [

cb = opts, opts = {};
if (!cb)
if (typeof cb != 'function')
throw 'no callback';

@@ -1258,3 +1258,3 @@ return cbify(data, opts, [

cb = opts, opts = {};
if (!cb)
if (typeof cb != 'function')
throw 'no callback';

@@ -1341,3 +1341,3 @@ return cbify(data, opts, [

cb = opts, opts = {};
if (!cb)
if (typeof cb != 'function')
throw 'no callback';

@@ -1438,3 +1438,3 @@ return cbify(data, opts, [

cb = opts, opts = {};
if (!cb)
if (typeof cb != 'function')
throw 'no callback';

@@ -1572,2 +1572,4 @@ return (data[0] == 31 && data[1] == 139 && data[2] == 8)

cb = opts, opts = {};
if (typeof cb != 'function')
throw 'no callback';
var r = {};

@@ -1603,4 +1605,2 @@ fltn(data, '', r, opts);

var t = p.level == 0 ? 0 : 8;
if (n.length > 65535)
throw 'filename too long';
var cbl = function (e, d) {

@@ -1628,6 +1628,14 @@ if (e) {

};
if (n.length > 65535)
cbl(new Error('filename too long'), null);
if (!t)
cbl(null, file);
else if (m < 160000)
cbl(null, deflateSync(file, opts));
else if (m < 160000) {
try {
cbl(null, deflateSync(file, opts));
}
catch (e) {
cbl(e, null);
}
}
else

@@ -1694,2 +1702,4 @@ term.push(deflate(file, opts, cbl));

export function unzip(data, cb) {
if (typeof cb != 'function')
throw 'no callback';
var term = [];

@@ -1703,4 +1713,6 @@ var tAll = function () {

for (; b4(data, e) != 0x6054B50; --e) {
if (!e || data.length - e > 65558)
throw 'invalid zip file';
if (!e || data.length - e > 65558) {
cb(new Error('invalid zip file'), null);
return;
}
}

@@ -1732,4 +1744,10 @@ ;

var infl = data.subarray(b, sc ? b + sc : data.length);
if (sc < 320000)
cbl(null, inflateSync(infl, su != null && new u8(su)));
if (sc < 320000) {
try {
cbl(null, inflateSync(infl, su != null && new u8(su)));
}
catch (e) {
cbl(e, null);
}
}
else

@@ -1736,0 +1754,0 @@ inflate(infl, { size: su }, cbl);

@@ -660,2 +660,7 @@ /**

/**
* Options for asynchronously expanding a ZIP archive
*/
export interface AsyncUnzipOptions extends AsyncOptions {
}
/**
* A file that can be used to create a ZIP archive

@@ -665,3 +670,3 @@ */

/**
* A file that can be used to asynchronously createa a ZIP archive
* A file that can be used to asynchronously create a ZIP archive
*/

@@ -668,0 +673,0 @@ export declare type AsyncZippableFile = Uint8Array | [Uint8Array, AsyncZipOptions];

@@ -323,3 +323,3 @@ "use strict";

};
// starting at p, write the minimum number of bits that can hold v to ds
// starting at p, write the minimum number of bits that can hold v to d
var wbits = function (d, p, v) {

@@ -331,3 +331,3 @@ v <<= p & 7;

};
// starting at p, write the minimum number of bits (>8) that can hold v to ds
// starting at p, write the minimum number of bits (>8) that can hold v to d
var wbits16 = function (d, p, v) {

@@ -951,3 +951,3 @@ v <<= p & 7;

cb = opts, opts = {};
if (!cb)
if (typeof cb != 'function')
throw 'no callback';

@@ -1035,3 +1035,3 @@ return cbify(data, opts, [

cb = opts, opts = {};
if (!cb)
if (typeof cb != 'function')
throw 'no callback';

@@ -1107,3 +1107,3 @@ return cbify(data, opts, [

cb = opts, opts = {};
if (!cb)
if (typeof cb != 'function')
throw 'no callback';

@@ -1195,3 +1195,3 @@ return cbify(data, opts, [

cb = opts, opts = {};
if (!cb)
if (typeof cb != 'function')
throw 'no callback';

@@ -1264,3 +1264,3 @@ return cbify(data, opts, [

cb = opts, opts = {};
if (!cb)
if (typeof cb != 'function')
throw 'no callback';

@@ -1349,3 +1349,3 @@ return cbify(data, opts, [

cb = opts, opts = {};
if (!cb)
if (typeof cb != 'function')
throw 'no callback';

@@ -1444,3 +1444,3 @@ return cbify(data, opts, [

cb = opts, opts = {};
if (!cb)
if (typeof cb != 'function')
throw 'no callback';

@@ -1582,2 +1582,4 @@ return (data[0] == 31 && data[1] == 139 && data[2] == 8)

cb = opts, opts = {};
if (typeof cb != 'function')
throw 'no callback';
var r = {};

@@ -1613,4 +1615,2 @@ fltn(data, '', r, opts);

var t = p.level == 0 ? 0 : 8;
if (n.length > 65535)
throw 'filename too long';
var cbl = function (e, d) {

@@ -1638,6 +1638,14 @@ if (e) {

};
if (n.length > 65535)
cbl(new Error('filename too long'), null);
if (!t)
cbl(null, file);
else if (m < 160000)
cbl(null, deflateSync(file, opts));
else if (m < 160000) {
try {
cbl(null, deflateSync(file, opts));
}
catch (e) {
cbl(e, null);
}
}
else

@@ -1706,2 +1714,4 @@ term.push(deflate(file, opts, cbl));

function unzip(data, cb) {
if (typeof cb != 'function')
throw 'no callback';
var term = [];

@@ -1715,4 +1725,6 @@ var tAll = function () {

for (; b4(data, e) != 0x6054B50; --e) {
if (!e || data.length - e > 65558)
throw 'invalid zip file';
if (!e || data.length - e > 65558) {
cb(new Error('invalid zip file'), null);
return;
}
}

@@ -1744,4 +1756,10 @@ ;

var infl = data.subarray(b, sc ? b + sc : data.length);
if (sc < 320000)
cbl(null, inflateSync(infl, su != null && new u8(su)));
if (sc < 320000) {
try {
cbl(null, inflateSync(infl, su != null && new u8(su)));
}
catch (e) {
cbl(e, null);
}
}
else

@@ -1748,0 +1766,0 @@ inflate(infl, { size: su }, cbl);

{
"name": "fflate",
"version": "0.3.10",
"version": "0.3.11",
"description": "High performance (de)compression in an 8kB package",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

@@ -225,3 +225,3 @@ # fflate

```js
import { gzip, zlib, AsyncGzip, zip } from 'fflate';
import { gzip, zlib, AsyncGzip, zip, strFromU8 } from 'fflate';

@@ -295,2 +295,11 @@ // Workers will work in almost any browser (even IE11!)

// Save the ZIP file
});
// unzip is the only async function without support for consume option
// Also parallelized, so unzip is also often much faster than unzipSync
unzip(aMassiveZIPFile, (err, unzipped) => {
// If the archive has data.xml, log it here
console.log(unzipped['data.xml']);
// Conversion to string
console.log(strFromU8(unzipped['data.xml']))
})

@@ -297,0 +306,0 @@ ```

@@ -1,1 +0,1 @@

!function(f){typeof module!='undefined'&&typeof exports=='object'?module.exports=f():typeof define!='undefined'&&define.amd?define(['fflate',f]):(typeof self!='undefined'?self:this).fflate=f()}(function(){var _e={};"use strict";var t=(typeof module!='undefined'&&typeof exports=='object'?function(_f){"use strict";var e=eval('require')("worker_threads"),r=";var __w=require('worker_threads');__w.parentPort.on('message',function(m){onmessage({data:m})}),postMessage=function(m,t){__w.parentPort.postMessage(m,t)},close=process.exit;self=global";_f.default=function(t,o,n,s,a){var u=!1,i=new e.Worker(t+r,{eval:!0}).on("error",(function(e){return a(e,null)})).on("message",(function(e){return a(null,e)})).on("exit",(function(e){e&&!u&&a(Error("Exited with code "+e),null)}));return i.postMessage(n,s),i.terminate=function(){return u=!0,e.Worker.prototype.terminate.call(i)},i};return _f}:function(_f){"use strict";var e={};_f.default=function(r,t,n,o,s){var u=e[t]||(e[t]=URL.createObjectURL(new Blob([r],{type:"text/javascript"}))),a=new Worker(u);return a.onerror=function(e){return s(e.error,null)},a.onmessage=function(e){return s(null,e.data)},a.postMessage(n,o),a};return _f})({}),n=Uint8Array,r=Uint16Array,e=Uint32Array,o=function(t,n){for(var r=0;r<32;++r)n[r]=(1<<t[r])-1;return n},i=new n([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,0,0,0]),a=o(i,new n(32)),s=new n([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,0,0]),f=o(s,new r(32)),u=new n([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),l=function(t,n){for(var o=new r(31),i=0;i<31;++i)o[i]=n+=1<<t[i-1];var a=new e(o[30]);for(i=1;i<30;++i)for(var s=o[i];s<o[i+1];++s)a[s]=s-o[i]<<5|i;return[o,a]},h=l(i,2),c=h[0],p=h[1];c[28]=258,p[258]=28;for(var v=l(s,0),d=v[0],g=v[1],w=new r(32768),y=0;y<32768;++y){var x=(2863311530&y)>>>1|(1431655765&y)<<1;w[y]=((4278255360&(x=(4042322160&(x=(3435973836&x)>>>2|(858993459&x)<<2))>>>4|(252645135&x)<<4))>>>8|(16711935&x)<<8)>>>1}var m=function(t,n,e){for(var o=t.length,i=0,a=new r(n);i<o;++i)++a[t[i]-1];var s,f=new r(n);for(i=0;i<n;++i)f[i]=f[i-1]+a[i-1]<<1;if(e){s=new r(1<<n);var u=15-n;for(i=0;i<o;++i)if(t[i])for(var l=i<<4|t[i],h=n-t[i],c=f[t[i]-1]++<<h,p=c|(1<<h)-1;c<=p;++c)s[w[c]>>>u]=l}else for(s=new r(o),i=0;i<o;++i)s[i]=w[f[t[i]-1]++]>>>15-t[i];return s},b=new n(288);for(y=0;y<144;++y)b[y]=8;for(y=144;y<256;++y)b[y]=9;for(y=256;y<280;++y)b[y]=7;for(y=280;y<288;++y)b[y]=8;var z=new n(32);for(y=0;y<32;++y)z[y]=5;var A=m(b,9,0),S=m(b,9,1),M=m(z,5,0),k=m(z,5,1),C=function(t){for(var n=t[0],r=1;r<t.length;++r)t[r]>n&&(n=t[r]);return n},D=function(t,n,r){var e=n>>>3;return(t[e]|t[e+1]<<8)>>>(7&n)&r},G=function(t,n){var r=n>>>3;return(t[r]|t[r+1]<<8|t[r+2]<<16)>>>(7&n)},U=function(t){return(t>>>3)+(7&t&&1)},O=function(t,o,i){(null==o||o<0)&&(o=0),(null==i||i>t.length)&&(i=t.length);var a=new(t instanceof r?r:t instanceof e?e:n)(i-o);return a.set(t.subarray(o,i)),a},F=function(t,r,e){var o=!e||e.i;e||(e={});var l=t.length,h=!r||!o;r||(r=new n(3*l));var p=function(t){var e=r.length;if(t>e){var o=new n(Math.max(e<<1,t));o.set(r),r=o}},v=e.f||0,g=e.p||0,w=e.b||0,y=e.l,x=e.d,b=e.m,z=e.n;if(v&&!y)return r;var A=l<<3;do{if(!y){e.f=v=D(t,g,1);var M=D(t,g+1,3);if(g+=3,!M){var F=t[(K=U(g)+4)-4]|t[K-3]<<8,I=K+F;if(I>l){if(o)throw"unexpected EOF";break}h&&p(w+F),r.set(t.subarray(K,I),w),e.b=w+=F,e.p=g=I<<3;continue}if(1==M)y=S,x=k,b=9,z=5;else{if(2!=M)throw"invalid block type";var Z=D(t,g,31)+257,E=D(t,g+5,31)+1,T=D(t,g+10,15)+4,_=Z+E;g+=14;for(var j=new n(_),q=new n(19),H=0;H<T;++H)q[u[H]]=D(t,g+3*H,7);g+=3*T;var Y=C(q),B=(1<<Y)-1;if(!o&&g+_*(Y+7)>A)break;var J=m(q,Y,1);for(H=0;H<_;){var K,L=J[D(t,g,B)];if(g+=15&L,(K=L>>>4)<16)j[H++]=K;else{var N=0,P=0;for(16==K?(P=3+D(t,g,3),g+=2,N=j[H-1]):17==K?(P=3+D(t,g,7),g+=3):18==K&&(P=11+D(t,g,127),g+=7);P--;)j[H++]=N}}var Q=j.subarray(0,Z),R=j.subarray(Z);b=C(Q),z=C(R),y=m(Q,b,1),x=m(R,z,1)}if(g>A)throw"unexpected EOF"}h&&p(w+131072);for(var V=(1<<b)-1,W=(1<<z)-1,X=b+z+18;o||g+X<A;){var $=(N=y[G(t,g)&V])>>>4;if((g+=15&N)>A)throw"unexpected EOF";if(!N)throw"invalid length/literal";if($<256)r[w++]=$;else{if(256==$){y=null;break}var tt=$-254;$>264&&(tt=D(t,g,a[H=$-257])+c[H],g+=i[H]);var nt=x[G(t,g)&W],rt=nt>>>4;if(!nt)throw"invalid distance";if(g+=15&nt,R=d[rt],rt>3&&(R+=G(t,g)&f[rt],g+=s[rt]),g>A)throw"unexpected EOF";h&&p(w+131072);for(var et=w+tt;w<et;w+=4)r[w]=r[w-R],r[w+1]=r[w+1-R],r[w+2]=r[w+2-R],r[w+3]=r[w+3-R];w=et}}e.l=y,e.p=g,e.b=w,y&&(v=1,e.m=b,e.d=x,e.n=z)}while(!v);return w==r.length?r:O(r,0,w)},I=function(t,n,r){var e=n>>>3;t[e]|=r<<=7&n,t[e+1]|=r>>>8},Z=function(t,n,r){var e=n>>>3;t[e]|=r<<=7&n,t[e+1]|=r>>>8,t[e+2]|=r>>>16},E=function(t,e){for(var o=[],i=0;i<t.length;++i)t[i]&&o.push({s:i,f:t[i]});var a=o.length,s=o.slice();if(!a)return[new n(0),0];if(1==a){var f=new n(o[0].s+1);return f[o[0].s]=1,[f,1]}o.sort((function(t,n){return t.f-n.f})),o.push({s:-1,f:25001});var u=o[0],l=o[1],h=0,c=1,p=2;for(o[0]={s:-1,f:u.f+l.f,l:u,r:l};c!=a-1;)u=o[o[h].f<o[p].f?h++:p++],l=o[h!=c&&o[h].f<o[p].f?h++:p++],o[c++]={s:-1,f:u.f+l.f,l:u,r:l};var v=s[0].s;for(i=1;i<a;++i)s[i].s>v&&(v=s[i].s);var d=new r(v+1),g=T(o[c-1],d,0);if(g>e){i=0;var w=0,y=g-e,x=1<<y;for(s.sort((function(t,n){return d[n.s]-d[t.s]||t.f-n.f}));i<a;++i){var m=s[i].s;if(!(d[m]>e))break;w+=x-(1<<g-d[m]),d[m]=e}for(w>>>=y;w>0;){var b=s[i].s;d[b]<e?w-=1<<e-d[b]++-1:++i}for(;i>=0&&w;--i){var z=s[i].s;d[z]==e&&(--d[z],++w)}g=e}return[new n(d),g]},T=function(t,n,r){return-1==t.s?Math.max(T(t.l,n,r+1),T(t.r,n,r+1)):n[t.s]=r},_=function(t){for(var n=t.length;n&&!t[--n];);for(var e=new r(++n),o=0,i=t[0],a=1,s=function(t){e[o++]=t},f=1;f<=n;++f)if(t[f]==i&&f!=n)++a;else{if(!i&&a>2){for(;a>138;a-=138)s(32754);a>2&&(s(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(s(i),--a;a>6;a-=6)s(8304);a>2&&(s(a-3<<5|8208),a=0)}for(;a--;)s(i);a=1,i=t[f]}return[e.subarray(0,o),n]},j=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},q=function(t,n,r){var e=r.length,o=U(n+2);t[o]=255&e,t[o+1]=e>>>8,t[o+2]=255^t[o],t[o+3]=255^t[o+1];for(var i=0;i<e;++i)t[o+i+4]=r[i];return o+4+e<<3},H=function(t,n,e,o,a,f,l,h,c,p,v){I(n,v++,e),++a[256];for(var d=E(a,15),g=d[0],w=d[1],y=E(f,15),x=y[0],S=y[1],k=_(g),C=k[0],D=k[1],G=_(x),U=G[0],O=G[1],F=new r(19),T=0;T<C.length;++T)F[31&C[T]]++;for(T=0;T<U.length;++T)F[31&U[T]]++;for(var H=E(F,7),Y=H[0],B=H[1],J=19;J>4&&!Y[u[J-1]];--J);var K,L,N,P,Q=p+5<<3,R=j(a,b)+j(f,z)+l,V=j(a,g)+j(f,x)+l+14+3*J+j(F,Y)+(2*F[16]+3*F[17]+7*F[18]);if(Q<=R&&Q<=V)return q(n,v,t.subarray(c,c+p));if(I(n,v,1+(V<R)),v+=2,V<R){K=m(g,w,0),L=g,N=m(x,S,0),P=x;var W=m(Y,B,0);for(I(n,v,D-257),I(n,v+5,O-1),I(n,v+10,J-4),v+=14,T=0;T<J;++T)I(n,v+3*T,Y[u[T]]);v+=3*J;for(var X=[C,U],$=0;$<2;++$){var tt=X[$];for(T=0;T<tt.length;++T)I(n,v,W[nt=31&tt[T]]),v+=Y[nt],nt>15&&(I(n,v,tt[T]>>>5&127),v+=tt[T]>>>12)}}else K=A,L=b,N=M,P=z;for(T=0;T<h;++T)if(o[T]>255){var nt;Z(n,v,K[257+(nt=o[T]>>>18&31)]),v+=L[nt+257],nt>7&&(I(n,v,o[T]>>>23&31),v+=i[nt]);var rt=31&o[T];Z(n,v,N[rt]),v+=P[rt],rt>3&&(Z(n,v,o[T]>>>5&8191),v+=s[rt])}else Z(n,v,K[o[T]]),v+=L[o[T]];return Z(n,v,K[256]),v+L[256]},Y=new e([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),B=new n(0),J=function(t,o,a,f,u,l){var h=t.length,c=new n(f+h+5*(1+Math.floor(h/7e3))+u),v=c.subarray(f,c.length-u),d=0;if(!o||h<8)for(var w=0;w<=h;w+=65535){var y=w+65535;y<h?d=q(v,d,t.subarray(w,y)):(v[w]=l,d=q(v,d,t.subarray(w,h)))}else{for(var x=Y[o-1],m=x>>>13,b=8191&x,z=(1<<a)-1,A=new r(32768),S=new r(z+1),M=Math.ceil(a/3),k=2*M,C=function(n){return(t[n]^t[n+1]<<M^t[n+2]<<k)&z},D=new e(25e3),G=new r(288),F=new r(32),I=0,Z=0,E=(w=0,0),T=0,_=0;w<h;++w){var j=C(w),J=32767&w,K=S[j];if(A[J]=K,S[j]=J,T<=w){var L=h-w;if((I>7e3||E>24576)&&L>423){d=H(t,v,0,D,G,F,Z,E,_,w-_,d),E=I=Z=0,_=w;for(var N=0;N<286;++N)G[N]=0;for(N=0;N<30;++N)F[N]=0}var P=2,Q=0,R=b,V=J-K&32767;if(L>2&&j==C(w-V))for(var W=Math.min(m,L)-1,X=Math.min(32767,w),$=Math.min(258,L);V<=X&&--R&&J!=K;){if(t[w+P]==t[w+P-V]){for(var tt=0;tt<$&&t[w+tt]==t[w+tt-V];++tt);if(tt>P){if(P=tt,Q=V,tt>W)break;var nt=Math.min(V,tt-2),rt=0;for(N=0;N<nt;++N){var et=w-V+N+32768&32767,ot=et-A[et]+32768&32767;ot>rt&&(rt=ot,K=et)}}}V+=(J=K)-(K=A[J])+32768&32767}if(Q){D[E++]=268435456|p[P]<<18|g[Q];var it=31&p[P],at=31&g[Q];Z+=i[it]+s[at],++G[257+it],++F[at],T=w+P,++I}else D[E++]=t[w],++G[t[w]]}}d=H(t,v,l,D,G,F,Z,E,_,w-_,d),l||(d=q(v,d,B))}return O(c,0,f+U(d)+u)},K=new e(256);for(y=0;y<256;++y){for(var L=y,N=9;--N;)L=(1&L&&3988292384)^L>>>1;K[y]=L}var P=function(){var t=4294967295;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=K[255&r^n[e]]^r>>>8;t=r},d:function(){return 4294967295^t}}},Q=function(){var t=1,n=0;return{p:function(r){for(var e=t,o=n,i=r.length,a=0;a!=i;){for(var s=Math.min(a+5552,i);a<s;++a)o+=e+=r[a];e%=65521,o%=65521}t=e,n=o},d:function(){return(255&t)<<24|t>>>8<<16|(255&n)<<8|n>>>8}}},R=function(t,n,r,e,o){return J(t,null==n.level?6:n.level,null==n.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+n.mem,r,e,!o)},V=function(t,n){var r={};for(var e in t)r[e]=t[e];for(var e in n)r[e]=n[e];return r},W=function(t,n,r){for(var e=t(),o=""+t,i=o.slice(o.indexOf("[")+1,o.lastIndexOf("]")).replace(/ /g,"").split(","),a=0;a<e.length;++a){var s=e[a],f=i[a];if("function"==typeof s){n+=";"+f+"=";var u=""+s;if(s.prototype)if(-1!=u.indexOf("[native code]"))n+=u.slice(9,u.indexOf("(",11));else for(var l in n+=u,s.prototype)n+=";"+f+".prototype."+l+"="+s.prototype[l];else n+=u}else r[f]=s}return[n,r]},X=function(t){for(var n in t.data[0])self[n]=t.data[0][n];onmessage=Function("return "+t.data[1])()},$=[],tt=function(t){var o=[];for(var i in t)(t[i]instanceof n||t[i]instanceof r||t[i]instanceof e)&&o.push((t[i]=new t[i].constructor(t[i])).buffer);return o},nt=function(n,r,e,o){var i;if(!$[e]){for(var a="",s={},f=n.length-1,u=0;u<f;++u)a=(i=W(n[u],a,s))[0],s=i[1];$[e]=W(n[f],a,s)}var l=V({},$[e][1]);return t.default($[e][0]+";onmessage="+X,e,[l,""+r],tt(l),o)},rt=function(){return[n,r,i,a,s,f,u,c,d,S,k,w,m,C,D,G,U,O,F,Ut,ft,ut]},et=function(){return[n,r,e,i,s,u,p,g,A,b,M,z,w,Y,B,m,I,Z,E,T,_,j,q,H,U,O,J,R,kt,ft]},ot=function(){return[gt,xt,dt,P,K]},it=function(){return[wt,yt]},at=function(){return[mt,dt,Q]},st=function(){return[bt]},ft=function(t){return postMessage(t,[t.buffer])},ut=function(t){return t&&t.size&&new n(t.size)},lt=function(t,r,e,o,i,a){var s=nt(e,o,i,(function(t,n){s.terminate(),a(t,n)}));return r.consume||(t=new n(t)),s.postMessage([t,r],[t.buffer]),function(){s.terminate()}},ht=function(t){return t.ondata=function(t,n){return postMessage([t,n],[t.buffer])},function(n){return t.push(n.data[0],n.data[1])}},ct=function(t,n,r,e,o){var i,a=nt(t,e,o,(function(t,r){t?(a.terminate(),n.ondata.call(n,t)):(r[1]&&a.terminate(),n.ondata.call(n,t,r[0],r[1]))}));a.postMessage(r),n.push=function(t,r){if(i)throw"stream finished";if(!n.ondata)throw"no stream handler";a.postMessage([t,i=r],[t.buffer])},n.terminate=function(){a.terminate()}},pt=function(t,n){return t[n]|t[n+1]<<8},vt=function(t,n){return t[n]|t[n+1]<<8|t[n+2]<<16|t[n+3]<<24},dt=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},gt=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&dt(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}},wt=function(t){if(31!=t[0]||139!=t[1]||8!=t[2])throw"invalid gzip data";var n=t[3],r=10;4&n&&(r+=t[10]|2+(t[11]<<8));for(var e=(n>>3&1)+(n>>4&1);e>0;e-=!t[r++]);return r+(2&n)},yt=function(t){var n=t.length;return t[n-4]|t[n-3]<<8|t[n-2]<<16|t[n-1]<<24},xt=function(t){return 10+(t.filename&&t.filename.length+1||0)},mt=function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;t[0]=120,t[1]=e<<6|(e?32-2*e:1)},bt=function(t){if(8!=(15&t[0])||t[0]>>>4>7||(t[0]<<8|t[1])%31)throw"invalid zlib data";if(32&t[1])throw"invalid zlib data: preset dictionaries not supported"};function zt(t,n){return n||"function"!=typeof t||(n=t,t={}),this.ondata=n,t}var At=function(){function t(t,n){n||"function"!=typeof t||(n=t,t={}),this.ondata=n,this.o=t||{}}return t.prototype.p=function(t,n){this.ondata(R(t,this.o,0,0,!n),n)},t.prototype.push=function(t,n){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";this.d=n,this.p(t,n||!1)},t}();_e.Deflate=At;var St=function(t,n){ct([et,function(){return[ht,At]}],this,zt.call(this,t,n),(function(t){var n=new At(t.data);onmessage=ht(n)}),6)};function Mt(t,n,r){if(r||(r=n,n={}),!r)throw"no callback";return lt(t,n,[et],(function(t){return ft(kt(t.data[0],t.data[1]))}),0,r)}function kt(t,n){return void 0===n&&(n={}),R(t,n,0,0)}_e.AsyncDeflate=St,_e.deflate=Mt,_e.deflateSync=kt;var Ct=function(){function t(t){this.s={},this.p=new n(0),this.ondata=t}return t.prototype.e=function(t){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";var r=this.p.length,e=new n(r+t.length);e.set(this.p),e.set(t,r),this.p=e},t.prototype.c=function(t,n){this.d=this.s.i=n;var r=this.s.b,e=F(this.p,this.o,this.s);this.ondata(O(e,r,this.s.b),n||!1),this.o=O(e,this.s.b-32768),this.s.b=32768,this.p=O(this.p,this.s.p>>>3),this.s.p&=7},t.prototype.push=function(t,n){this.e(t),this.c(t,n)},t}();_e.Inflate=Ct;var Dt=function(t){this.ondata=t,ct([rt,function(){return[ht,Ct]}],this,0,(function(){var t=new Ct;onmessage=ht(t)}),7)};function Gt(t,n,r){if(r||(r=n,n={}),!r)throw"no callback";return lt(t,n,[rt],(function(t){return ft(Ut(t.data[0],ut(t.data[1])))}),1,r)}function Ut(t,n){return F(t,n)}_e.AsyncInflate=Dt,_e.inflate=Gt,_e.inflateSync=Ut;var Ot=function(){function t(t,n){this.c=P(),this.l=0,this.v=1,At.call(this,t,n)}return t.prototype.push=function(t,n){At.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){this.c.p(t),this.l+=t.length;var r=R(t,this.o,this.v&&xt(this.o),n&&8,!n);this.v&&(gt(r,this.o),this.v=0),n&&(dt(r,r.length-8,this.c.d()),dt(r,r.length-4,this.l)),this.ondata(r,n)},t}();_e.Gzip=Ot,_e.Compress=Ot;var Ft=function(t,n){ct([et,ot,function(){return[ht,At,Ot]}],this,zt.call(this,t,n),(function(t){var n=new Ot(t.data);onmessage=ht(n)}),8)};function It(t,n,r){if(r||(r=n,n={}),!r)throw"no callback";return lt(t,n,[et,ot,function(){return[Zt]}],(function(t){return ft(Zt(t.data[0],t.data[1]))}),2,r)}function Zt(t,n){void 0===n&&(n={});var r=P(),e=t.length;r.p(t);var o=R(t,n,xt(n),8),i=o.length;return gt(o,n),dt(o,i-8,r.d()),dt(o,i-4,e),o}_e.AsyncGzip=Ft,_e.AsyncCompress=Ft,_e.gzip=It,_e.compress=It,_e.gzipSync=Zt,_e.compressSync=Zt;var Et=function(){function t(t){this.v=1,Ct.call(this,t)}return t.prototype.push=function(t,n){if(Ct.prototype.e.call(this,t),this.v){var r=wt(this.p);if(r>=this.p.length&&!n)return;this.p=this.p.subarray(r),this.v=0}if(n){if(this.p.length<8)throw"invalid gzip stream";this.p=this.p.subarray(0,-8)}Ct.prototype.c.call(this,t,n)},t}();_e.Gunzip=Et;var Tt=function(t){this.ondata=t,ct([rt,it,function(){return[ht,Ct,Et]}],this,0,(function(){var t=new Et;onmessage=ht(t)}),9)};function _t(t,n,r){if(r||(r=n,n={}),!r)throw"no callback";return lt(t,n,[rt,it,function(){return[jt]}],(function(t){return ft(jt(t.data[0]))}),3,r)}function jt(t,r){return F(t.subarray(wt(t),-8),r||new n(yt(t)))}_e.AsyncGunzip=Tt,_e.gunzip=_t,_e.gunzipSync=jt;var qt=function(){function t(t,n){this.c=Q(),this.v=1,At.call(this,t,n)}return t.prototype.push=function(t,n){At.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){this.c.p(t);var r=R(t,this.o,this.v&&2,n&&4,!n);this.v&&(mt(r,this.o),this.v=0),n&&dt(r,r.length-4,this.c.d()),this.ondata(r,n)},t}();_e.Zlib=qt;var Ht=function(t,n){ct([et,at,function(){return[ht,At,qt]}],this,zt.call(this,t,n),(function(t){var n=new qt(t.data);onmessage=ht(n)}),10)};function Yt(t,n,r){if(r||(r=n,n={}),!r)throw"no callback";return lt(t,n,[et,at,function(){return[Bt]}],(function(t){return ft(Bt(t.data[0],t.data[1]))}),4,r)}function Bt(t,n){void 0===n&&(n={});var r=Q();r.p(t);var e=R(t,n,2,4);return mt(e,n),dt(e,e.length-4,r.d()),e}_e.AsyncZlib=Ht,_e.zlib=Yt,_e.zlibSync=Bt;var Jt=function(){function t(t){this.v=1,Ct.call(this,t)}return t.prototype.push=function(t,n){if(Ct.prototype.e.call(this,t),this.v){if(this.p.length<2&&!n)return;this.p=this.p.subarray(2),this.v=0}if(n){if(this.p.length<8)throw"invalid zlib stream";this.p=this.p.subarray(0,-4)}Ct.prototype.c.call(this,t,n)},t}();_e.Unzlib=Jt;var Kt=function(t){this.ondata=t,ct([rt,st,function(){return[ht,Ct,Jt]}],this,0,(function(){var t=new Jt;onmessage=ht(t)}),11)};function Lt(t,n,r){if(r||(r=n,n={}),!r)throw"no callback";return lt(t,n,[rt,st,function(){return[Nt]}],(function(t){return ft(Nt(t.data[0],ut(t.data[1])))}),5,r)}function Nt(t,n){return F((bt(t),t.subarray(2,-4)),n)}_e.AsyncUnzlib=Kt,_e.unzlib=Lt,_e.unzlibSync=Nt;var Pt=function(){function t(t){this.G=Et,this.I=Ct,this.Z=Jt,this.ondata=t}return t.prototype.push=function(t,r){if(!this.ondata)throw"no stream handler";if(this.s)this.s.push(t,r);else{if(this.p&&this.p.length){var e=new n(this.p.length+t.length);e.set(this.p),e.set(t,this.p.length)}else this.p=t;if(this.p.length>2){var o=this,i=function(){o.ondata.apply(o,arguments)};this.s=31==this.p[0]&&139==this.p[1]&&8==this.p[2]?new this.G(i):8!=(15&this.p[0])||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(i):new this.Z(i),this.s.push(this.p,r),this.p=null}}},t}();_e.Decompress=Pt;var Qt=function(){function t(t){this.G=Tt,this.I=Dt,this.Z=Kt,this.ondata=t}return t.prototype.push=function(t,n){Pt.prototype.push.call(this,t,n)},t}();function Rt(t,n,r){if(r||(r=n,n={}),!r)throw"no callback";return 31==t[0]&&139==t[1]&&8==t[2]?_t(t,n,r):8!=(15&t[0])||t[0]>>4>7||(t[0]<<8|t[1])%31?Gt(t,n,r):Lt(t,n,r)}function Vt(t,n){return 31==t[0]&&139==t[1]&&8==t[2]?jt(t,n):8!=(15&t[0])||t[0]>>4>7||(t[0]<<8|t[1])%31?Ut(t,n):Nt(t,n)}_e.AsyncDecompress=Qt,_e.decompress=Rt,_e.decompressSync=Vt;var Wt=function(t,r,e,o){for(var i in t){var a=t[i],s=r+i;a instanceof n?e[s]=[a,o]:Array.isArray(a)?e[s]=[a[0],V(o,a[1])]:Wt(a,s+"/",e,o)}};function Xt(t,r){var e=t.length;if(!r&&"undefined"!=typeof TextEncoder)return(new TextEncoder).encode(t);for(var o=new n(t.length+(t.length>>>1)),i=0,a=function(t){o[i++]=t},s=0;s<e;++s){if(i+5>o.length){var f=new n(i+8+(e-s<<1));f.set(o),o=f}var u=t.charCodeAt(s);u<128||r?a(u):u<2048?(a(192|u>>>6),a(128|63&u)):u>55295&&u<57344?(a(240|(u=65536+(1047552&u)|1023&t.charCodeAt(++s))>>>18),a(128|u>>>12&63),a(128|u>>>6&63),a(128|63&u)):(a(224|u>>>12),a(128|u>>>6&63),a(128|63&u))}return O(o,0,i)}function $t(t,n){var r="";if(!n&&"undefined"!=typeof TextDecoder)return(new TextDecoder).decode(t);for(var e=0;e<t.length;){var o=t[e++];o<128||n?r+=String.fromCharCode(o):o<224?r+=String.fromCharCode((31&o)<<6|63&t[e++]):o<240?r+=String.fromCharCode((15&o)<<12|(63&t[e++])<<6|63&t[e++]):(o=((15&o)<<18|(63&t[e++])<<12|(63&t[e++])<<6|63&t[e++])-65536,r+=String.fromCharCode(55296|o>>10,56320|1023&o))}return r}_e.strToU8=Xt,_e.strFromU8=$t;var tn=function(t,n){var r=pt(t,n+6),e=4&r,o=pt(t,n+8),i=e?null:vt(t,n+18),a=e?null:vt(t,n+22),s=pt(t,n+26),f=pt(t,n+28);return[i,o,a,$t(t.subarray(n+=30,n+=s),!(2048&r)),n+f]},nn=function(t,n,r,e,o,i,a,s,f,u){var l=i.length,h=e.length;dt(t,n,null!=f?33639248:67324752),n+=4,null!=f&&(t[n]=20,n+=2),t[n]=20,n+=2,t[n++]=8==u&&(1==s.level?6:s.level<6?4:9==s.level?2:0),t[n++]=a&&8,t[n]=u,n+=2;var c=new Date(s.mtime||Date.now()),p=c.getFullYear()-1980;if(p<0||p>119)throw"date not in range 1980-2099";dt(t,n,p<<25|c.getMonth()+1<<21|c.getDate()<<16|c.getHours()<<11|c.getMinutes()<<5|c.getSeconds()>>>1),dt(t,n+=4,r),dt(t,n+4,h),dt(t,n+8,o),dt(t,n+12,l),n+=16,null!=f&&(dt(t,n+=10,f),n+=4),t.set(i,n),n+=l,null==f&&t.set(e,n)},rn=function(t,n,r,e,o){dt(t,n,101010256),dt(t,n+8,r),dt(t,n+10,r),dt(t,n+12,e),dt(t,n+16,o)};function en(t,r,e){e||(e=r,r={});var o={};Wt(t,"",o,r);var i=Object.keys(o),a=i.length,s=0,f=0,u=a,l=Array(a),h=[],c=function(){for(var t=0;t<h.length;++t)h[t]()},p=function(){var t=new n(f+22),r=s,o=f-s;f=0;for(var i=0;i<u;++i){var a=l[i];nn(t,f,a.c,a.d,a.m,a.n,a.u,a.p,null,a.t),nn(t,s,a.c,a.d,a.m,a.n,a.u,a.p,f,a.t),s+=46+a.n.length,f+=30+a.n.length+a.d.length}rn(t,s,l.length,o,r),e(null,t)};a||p();for(var v=function(t){var n=i[t],u=o[n],v=u[0],d=u[1],g=P(),w=v.length;g.p(v);var y=Xt(n),x=y.length,m=0==d.level?0:8;if(y.length>65535)throw"filename too long";var b=function(r,o){if(r)c(),e(r,null);else{var i=o.length;l[t]={t:m,d:o,m:w,c:g.d(),u:n.length!=i,n:y,p:d},s+=30+x+i,f+=76+2*x+i,--a||p()}};m?w<16e4?b(null,kt(v,r)):h.push(Mt(v,r,b)):b(null,v)},d=0;d<u;++d)v(d);return c}function on(t,r){void 0===r&&(r={});var e={},o=[];Wt(t,"",e,r);var i=0,a=0;for(var s in e){var f=e[s],u=f[0],l=f[1],h=0==l.level?0:8,c=Xt(s),p=c.length;if(c.length>65535)throw"filename too long";var v=h?kt(u,l):u,d=v.length,g=P();g.p(u),o.push({t:h,d:v,m:u.length,c:g.d(),u:s.length!=p,n:c,o:i,p:l}),i+=30+p+d,a+=76+2*p+d}for(var w=new n(a+22),y=i,x=a-i,m=0;m<o.length;++m){var b=o[m];nn(w,b.o,b.c,b.d,b.m,b.n,b.u,b.p,null,b.t),nn(w,i,b.c,b.d,b.m,b.n,b.u,b.p,b.o,b.t),i+=46+b.n.length}return rn(w,i,o.length,x,y),w}function an(t,r){for(var e=[],o=function(){for(var t=0;t<e.length;++t)e[t]()},i={},a=t.length-22;101010256!=vt(t,a);--a)if(!a||t.length-a>65558)throw"invalid zip file";var s=pt(t,a+8);s||r(null,{});for(var f=s,u=vt(t,a+16),l=function(e){var a=vt(t,u+42);u+=46+pt(t,u+28)+pt(t,u+30)+pt(t,u+32);var f=tn(t,a),l=f[0],h=f[1],c=f[2],p=f[3],v=f[4],d=function(t,n){t?(o(),r(t,null)):(i[p]=n,--s||r(null,i))};if(h){if(8!=h)throw"unknown compression type "+h;var g=t.subarray(v,l?v+l:t.length);l<32e4?d(null,Ut(g,null!=c&&new n(c))):Gt(g,{size:c},d)}else d(null,O(t,v,v+l))},h=0;h<f;++h)l();return o}function sn(t){for(var r={},e=t.length-22;101010256!=vt(t,e);--e)if(!e||t.length-e>65558)throw"invalid zip file";var o=pt(t,e+8);if(!o)return{};for(var i=vt(t,e+16),a=0;a<o;++a){var s=vt(t,i+42);i+=46+pt(t,i+28)+pt(t,i+30)+pt(t,i+32);var f=tn(t,s),u=f[0],l=f[1],h=f[2],c=f[3],p=f[4];if(l){if(8!=l)throw"unknown compression type "+l;r[c]=Ut(t.subarray(p,u?p+u:t.length),null!=h&&new n(h))}else r[c]=O(t,p,p+u)}return r}_e.zip=en,_e.zipSync=on,_e.unzip=an,_e.unzipSync=sn;return _e})
!function(f){typeof module!='undefined'&&typeof exports=='object'?module.exports=f():typeof define!='undefined'&&define.amd?define(['fflate',f]):(typeof self!='undefined'?self:this).fflate=f()}(function(){var _e={};"use strict";var t=(typeof module!='undefined'&&typeof exports=='object'?function(_f){"use strict";var e=eval('require')("worker_threads"),r=";var __w=require('worker_threads');__w.parentPort.on('message',function(m){onmessage({data:m})}),postMessage=function(m,t){__w.parentPort.postMessage(m,t)},close=process.exit;self=global";_f.default=function(t,o,n,s,a){var u=!1,i=new e.Worker(t+r,{eval:!0}).on("error",(function(e){return a(e,null)})).on("message",(function(e){return a(null,e)})).on("exit",(function(e){e&&!u&&a(Error("Exited with code "+e),null)}));return i.postMessage(n,s),i.terminate=function(){return u=!0,e.Worker.prototype.terminate.call(i)},i};return _f}:function(_f){"use strict";var e={};_f.default=function(r,t,n,o,s){var u=e[t]||(e[t]=URL.createObjectURL(new Blob([r],{type:"text/javascript"}))),a=new Worker(u);return a.onerror=function(e){return s(e.error,null)},a.onmessage=function(e){return s(null,e.data)},a.postMessage(n,o),a};return _f})({}),n=Uint8Array,r=Uint16Array,e=Uint32Array,o=function(t,n){for(var r=0;r<32;++r)n[r]=(1<<t[r])-1;return n},i=new n([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,0,0,0]),a=o(i,new n(32)),s=new n([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,0,0]),f=o(s,new r(32)),u=new n([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),l=function(t,n){for(var o=new r(31),i=0;i<31;++i)o[i]=n+=1<<t[i-1];var a=new e(o[30]);for(i=1;i<30;++i)for(var s=o[i];s<o[i+1];++s)a[s]=s-o[i]<<5|i;return[o,a]},c=l(i,2),h=c[0],p=c[1];h[28]=258,p[258]=28;for(var v=l(s,0),d=v[0],g=v[1],y=new r(32768),w=0;w<32768;++w){var x=(2863311530&w)>>>1|(1431655765&w)<<1;y[w]=((4278255360&(x=(4042322160&(x=(3435973836&x)>>>2|(858993459&x)<<2))>>>4|(252645135&x)<<4))>>>8|(16711935&x)<<8)>>>1}var m=function(t,n,e){for(var o=t.length,i=0,a=new r(n);i<o;++i)++a[t[i]-1];var s,f=new r(n);for(i=0;i<n;++i)f[i]=f[i-1]+a[i-1]<<1;if(e){s=new r(1<<n);var u=15-n;for(i=0;i<o;++i)if(t[i])for(var l=i<<4|t[i],c=n-t[i],h=f[t[i]-1]++<<c,p=h|(1<<c)-1;h<=p;++h)s[y[h]>>>u]=l}else for(s=new r(o),i=0;i<o;++i)s[i]=y[f[t[i]-1]++]>>>15-t[i];return s},b=new n(288);for(w=0;w<144;++w)b[w]=8;for(w=144;w<256;++w)b[w]=9;for(w=256;w<280;++w)b[w]=7;for(w=280;w<288;++w)b[w]=8;var z=new n(32);for(w=0;w<32;++w)z[w]=5;var A=m(b,9,0),S=m(b,9,1),M=m(z,5,0),k=m(z,5,1),C=function(t){for(var n=t[0],r=1;r<t.length;++r)t[r]>n&&(n=t[r]);return n},D=function(t,n,r){var e=n>>>3;return(t[e]|t[e+1]<<8)>>>(7&n)&r},G=function(t,n){var r=n>>>3;return(t[r]|t[r+1]<<8|t[r+2]<<16)>>>(7&n)},U=function(t){return(t>>>3)+(7&t&&1)},O=function(t,o,i){(null==o||o<0)&&(o=0),(null==i||i>t.length)&&(i=t.length);var a=new(t instanceof r?r:t instanceof e?e:n)(i-o);return a.set(t.subarray(o,i)),a},E=function(t,r,e){var o=!e||e.i;e||(e={});var l=t.length,c=!r||!o;r||(r=new n(3*l));var p=function(t){var e=r.length;if(t>e){var o=new n(Math.max(e<<1,t));o.set(r),r=o}},v=e.f||0,g=e.p||0,y=e.b||0,w=e.l,x=e.d,b=e.m,z=e.n;if(v&&!w)return r;var A=l<<3;do{if(!w){e.f=v=D(t,g,1);var M=D(t,g+1,3);if(g+=3,!M){var E=t[(K=U(g)+4)-4]|t[K-3]<<8,F=K+E;if(F>l){if(o)throw"unexpected EOF";break}c&&p(y+E),r.set(t.subarray(K,F),y),e.b=y+=E,e.p=g=F<<3;continue}if(1==M)w=S,x=k,b=9,z=5;else{if(2!=M)throw"invalid block type";var I=D(t,g,31)+257,Z=D(t,g+5,31)+1,T=D(t,g+10,15)+4,_=I+Z;g+=14;for(var j=new n(_),q=new n(19),H=0;H<T;++H)q[u[H]]=D(t,g+3*H,7);g+=3*T;var Y=C(q),B=(1<<Y)-1;if(!o&&g+_*(Y+7)>A)break;var J=m(q,Y,1);for(H=0;H<_;){var K,L=J[D(t,g,B)];if(g+=15&L,(K=L>>>4)<16)j[H++]=K;else{var N=0,P=0;for(16==K?(P=3+D(t,g,3),g+=2,N=j[H-1]):17==K?(P=3+D(t,g,7),g+=3):18==K&&(P=11+D(t,g,127),g+=7);P--;)j[H++]=N}}var Q=j.subarray(0,I),R=j.subarray(I);b=C(Q),z=C(R),w=m(Q,b,1),x=m(R,z,1)}if(g>A)throw"unexpected EOF"}c&&p(y+131072);for(var V=(1<<b)-1,W=(1<<z)-1,X=b+z+18;o||g+X<A;){var $=(N=w[G(t,g)&V])>>>4;if((g+=15&N)>A)throw"unexpected EOF";if(!N)throw"invalid length/literal";if($<256)r[y++]=$;else{if(256==$){w=null;break}var tt=$-254;$>264&&(tt=D(t,g,a[H=$-257])+h[H],g+=i[H]);var nt=x[G(t,g)&W],rt=nt>>>4;if(!nt)throw"invalid distance";if(g+=15&nt,R=d[rt],rt>3&&(R+=G(t,g)&f[rt],g+=s[rt]),g>A)throw"unexpected EOF";c&&p(y+131072);for(var et=y+tt;y<et;y+=4)r[y]=r[y-R],r[y+1]=r[y+1-R],r[y+2]=r[y+2-R],r[y+3]=r[y+3-R];y=et}}e.l=w,e.p=g,e.b=y,w&&(v=1,e.m=b,e.d=x,e.n=z)}while(!v);return y==r.length?r:O(r,0,y)},F=function(t,n,r){var e=n>>>3;t[e]|=r<<=7&n,t[e+1]|=r>>>8},I=function(t,n,r){var e=n>>>3;t[e]|=r<<=7&n,t[e+1]|=r>>>8,t[e+2]|=r>>>16},Z=function(t,e){for(var o=[],i=0;i<t.length;++i)t[i]&&o.push({s:i,f:t[i]});var a=o.length,s=o.slice();if(!a)return[new n(0),0];if(1==a){var f=new n(o[0].s+1);return f[o[0].s]=1,[f,1]}o.sort((function(t,n){return t.f-n.f})),o.push({s:-1,f:25001});var u=o[0],l=o[1],c=0,h=1,p=2;for(o[0]={s:-1,f:u.f+l.f,l:u,r:l};h!=a-1;)u=o[o[c].f<o[p].f?c++:p++],l=o[c!=h&&o[c].f<o[p].f?c++:p++],o[h++]={s:-1,f:u.f+l.f,l:u,r:l};var v=s[0].s;for(i=1;i<a;++i)s[i].s>v&&(v=s[i].s);var d=new r(v+1),g=T(o[h-1],d,0);if(g>e){i=0;var y=0,w=g-e,x=1<<w;for(s.sort((function(t,n){return d[n.s]-d[t.s]||t.f-n.f}));i<a;++i){var m=s[i].s;if(!(d[m]>e))break;y+=x-(1<<g-d[m]),d[m]=e}for(y>>>=w;y>0;){var b=s[i].s;d[b]<e?y-=1<<e-d[b]++-1:++i}for(;i>=0&&y;--i){var z=s[i].s;d[z]==e&&(--d[z],++y)}g=e}return[new n(d),g]},T=function(t,n,r){return-1==t.s?Math.max(T(t.l,n,r+1),T(t.r,n,r+1)):n[t.s]=r},_=function(t){for(var n=t.length;n&&!t[--n];);for(var e=new r(++n),o=0,i=t[0],a=1,s=function(t){e[o++]=t},f=1;f<=n;++f)if(t[f]==i&&f!=n)++a;else{if(!i&&a>2){for(;a>138;a-=138)s(32754);a>2&&(s(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(s(i),--a;a>6;a-=6)s(8304);a>2&&(s(a-3<<5|8208),a=0)}for(;a--;)s(i);a=1,i=t[f]}return[e.subarray(0,o),n]},j=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},q=function(t,n,r){var e=r.length,o=U(n+2);t[o]=255&e,t[o+1]=e>>>8,t[o+2]=255^t[o],t[o+3]=255^t[o+1];for(var i=0;i<e;++i)t[o+i+4]=r[i];return o+4+e<<3},H=function(t,n,e,o,a,f,l,c,h,p,v){F(n,v++,e),++a[256];for(var d=Z(a,15),g=d[0],y=d[1],w=Z(f,15),x=w[0],S=w[1],k=_(g),C=k[0],D=k[1],G=_(x),U=G[0],O=G[1],E=new r(19),T=0;T<C.length;++T)E[31&C[T]]++;for(T=0;T<U.length;++T)E[31&U[T]]++;for(var H=Z(E,7),Y=H[0],B=H[1],J=19;J>4&&!Y[u[J-1]];--J);var K,L,N,P,Q=p+5<<3,R=j(a,b)+j(f,z)+l,V=j(a,g)+j(f,x)+l+14+3*J+j(E,Y)+(2*E[16]+3*E[17]+7*E[18]);if(Q<=R&&Q<=V)return q(n,v,t.subarray(h,h+p));if(F(n,v,1+(V<R)),v+=2,V<R){K=m(g,y,0),L=g,N=m(x,S,0),P=x;var W=m(Y,B,0);for(F(n,v,D-257),F(n,v+5,O-1),F(n,v+10,J-4),v+=14,T=0;T<J;++T)F(n,v+3*T,Y[u[T]]);v+=3*J;for(var X=[C,U],$=0;$<2;++$){var tt=X[$];for(T=0;T<tt.length;++T)F(n,v,W[nt=31&tt[T]]),v+=Y[nt],nt>15&&(F(n,v,tt[T]>>>5&127),v+=tt[T]>>>12)}}else K=A,L=b,N=M,P=z;for(T=0;T<c;++T)if(o[T]>255){var nt;I(n,v,K[257+(nt=o[T]>>>18&31)]),v+=L[nt+257],nt>7&&(F(n,v,o[T]>>>23&31),v+=i[nt]);var rt=31&o[T];I(n,v,N[rt]),v+=P[rt],rt>3&&(I(n,v,o[T]>>>5&8191),v+=s[rt])}else I(n,v,K[o[T]]),v+=L[o[T]];return I(n,v,K[256]),v+L[256]},Y=new e([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),B=new n(0),J=function(t,o,a,f,u,l){var c=t.length,h=new n(f+c+5*(1+Math.floor(c/7e3))+u),v=h.subarray(f,h.length-u),d=0;if(!o||c<8)for(var y=0;y<=c;y+=65535){var w=y+65535;w<c?d=q(v,d,t.subarray(y,w)):(v[y]=l,d=q(v,d,t.subarray(y,c)))}else{for(var x=Y[o-1],m=x>>>13,b=8191&x,z=(1<<a)-1,A=new r(32768),S=new r(z+1),M=Math.ceil(a/3),k=2*M,C=function(n){return(t[n]^t[n+1]<<M^t[n+2]<<k)&z},D=new e(25e3),G=new r(288),E=new r(32),F=0,I=0,Z=(y=0,0),T=0,_=0;y<c;++y){var j=C(y),J=32767&y,K=S[j];if(A[J]=K,S[j]=J,T<=y){var L=c-y;if((F>7e3||Z>24576)&&L>423){d=H(t,v,0,D,G,E,I,Z,_,y-_,d),Z=F=I=0,_=y;for(var N=0;N<286;++N)G[N]=0;for(N=0;N<30;++N)E[N]=0}var P=2,Q=0,R=b,V=J-K&32767;if(L>2&&j==C(y-V))for(var W=Math.min(m,L)-1,X=Math.min(32767,y),$=Math.min(258,L);V<=X&&--R&&J!=K;){if(t[y+P]==t[y+P-V]){for(var tt=0;tt<$&&t[y+tt]==t[y+tt-V];++tt);if(tt>P){if(P=tt,Q=V,tt>W)break;var nt=Math.min(V,tt-2),rt=0;for(N=0;N<nt;++N){var et=y-V+N+32768&32767,ot=et-A[et]+32768&32767;ot>rt&&(rt=ot,K=et)}}}V+=(J=K)-(K=A[J])+32768&32767}if(Q){D[Z++]=268435456|p[P]<<18|g[Q];var it=31&p[P],at=31&g[Q];I+=i[it]+s[at],++G[257+it],++E[at],T=y+P,++F}else D[Z++]=t[y],++G[t[y]]}}d=H(t,v,l,D,G,E,I,Z,_,y-_,d),l||(d=q(v,d,B))}return O(h,0,f+U(d)+u)},K=new e(256);for(w=0;w<256;++w){for(var L=w,N=9;--N;)L=(1&L&&3988292384)^L>>>1;K[w]=L}var P=function(){var t=4294967295;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=K[255&r^n[e]]^r>>>8;t=r},d:function(){return 4294967295^t}}},Q=function(){var t=1,n=0;return{p:function(r){for(var e=t,o=n,i=r.length,a=0;a!=i;){for(var s=Math.min(a+5552,i);a<s;++a)o+=e+=r[a];e%=65521,o%=65521}t=e,n=o},d:function(){return(255&t)<<24|t>>>8<<16|(255&n)<<8|n>>>8}}},R=function(t,n,r,e,o){return J(t,null==n.level?6:n.level,null==n.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+n.mem,r,e,!o)},V=function(t,n){var r={};for(var e in t)r[e]=t[e];for(var e in n)r[e]=n[e];return r},W=function(t,n,r){for(var e=t(),o=""+t,i=o.slice(o.indexOf("[")+1,o.lastIndexOf("]")).replace(/ /g,"").split(","),a=0;a<e.length;++a){var s=e[a],f=i[a];if("function"==typeof s){n+=";"+f+"=";var u=""+s;if(s.prototype)if(-1!=u.indexOf("[native code]"))n+=u.slice(9,u.indexOf("(",11));else for(var l in n+=u,s.prototype)n+=";"+f+".prototype."+l+"="+s.prototype[l];else n+=u}else r[f]=s}return[n,r]},X=function(t){for(var n in t.data[0])self[n]=t.data[0][n];onmessage=Function("return "+t.data[1])()},$=[],tt=function(t){var o=[];for(var i in t)(t[i]instanceof n||t[i]instanceof r||t[i]instanceof e)&&o.push((t[i]=new t[i].constructor(t[i])).buffer);return o},nt=function(n,r,e,o){var i;if(!$[e]){for(var a="",s={},f=n.length-1,u=0;u<f;++u)a=(i=W(n[u],a,s))[0],s=i[1];$[e]=W(n[f],a,s)}var l=V({},$[e][1]);return t.default($[e][0]+";onmessage="+X,e,[l,""+r],tt(l),o)},rt=function(){return[n,r,i,a,s,f,u,h,d,S,k,y,m,C,D,G,U,O,E,Ut,ft,ut]},et=function(){return[n,r,e,i,s,u,p,g,A,b,M,z,y,Y,B,m,F,I,Z,T,_,j,q,H,U,O,J,R,kt,ft]},ot=function(){return[gt,xt,dt,P,K]},it=function(){return[yt,wt]},at=function(){return[mt,dt,Q]},st=function(){return[bt]},ft=function(t){return postMessage(t,[t.buffer])},ut=function(t){return t&&t.size&&new n(t.size)},lt=function(t,r,e,o,i,a){var s=nt(e,o,i,(function(t,n){s.terminate(),a(t,n)}));return r.consume||(t=new n(t)),s.postMessage([t,r],[t.buffer]),function(){s.terminate()}},ct=function(t){return t.ondata=function(t,n){return postMessage([t,n],[t.buffer])},function(n){return t.push(n.data[0],n.data[1])}},ht=function(t,n,r,e,o){var i,a=nt(t,e,o,(function(t,r){t?(a.terminate(),n.ondata.call(n,t)):(r[1]&&a.terminate(),n.ondata.call(n,t,r[0],r[1]))}));a.postMessage(r),n.push=function(t,r){if(i)throw"stream finished";if(!n.ondata)throw"no stream handler";a.postMessage([t,i=r],[t.buffer])},n.terminate=function(){a.terminate()}},pt=function(t,n){return t[n]|t[n+1]<<8},vt=function(t,n){return t[n]|t[n+1]<<8|t[n+2]<<16|t[n+3]<<24},dt=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},gt=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&dt(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}},yt=function(t){if(31!=t[0]||139!=t[1]||8!=t[2])throw"invalid gzip data";var n=t[3],r=10;4&n&&(r+=t[10]|2+(t[11]<<8));for(var e=(n>>3&1)+(n>>4&1);e>0;e-=!t[r++]);return r+(2&n)},wt=function(t){var n=t.length;return t[n-4]|t[n-3]<<8|t[n-2]<<16|t[n-1]<<24},xt=function(t){return 10+(t.filename&&t.filename.length+1||0)},mt=function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;t[0]=120,t[1]=e<<6|(e?32-2*e:1)},bt=function(t){if(8!=(15&t[0])||t[0]>>>4>7||(t[0]<<8|t[1])%31)throw"invalid zlib data";if(32&t[1])throw"invalid zlib data: preset dictionaries not supported"};function zt(t,n){return n||"function"!=typeof t||(n=t,t={}),this.ondata=n,t}var At=function(){function t(t,n){n||"function"!=typeof t||(n=t,t={}),this.ondata=n,this.o=t||{}}return t.prototype.p=function(t,n){this.ondata(R(t,this.o,0,0,!n),n)},t.prototype.push=function(t,n){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";this.d=n,this.p(t,n||!1)},t}();_e.Deflate=At;var St=function(t,n){ht([et,function(){return[ct,At]}],this,zt.call(this,t,n),(function(t){var n=new At(t.data);onmessage=ct(n)}),6)};function Mt(t,n,r){if(r||(r=n,n={}),"function"!=typeof r)throw"no callback";return lt(t,n,[et],(function(t){return ft(kt(t.data[0],t.data[1]))}),0,r)}function kt(t,n){return void 0===n&&(n={}),R(t,n,0,0)}_e.AsyncDeflate=St,_e.deflate=Mt,_e.deflateSync=kt;var Ct=function(){function t(t){this.s={},this.p=new n(0),this.ondata=t}return t.prototype.e=function(t){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";var r=this.p.length,e=new n(r+t.length);e.set(this.p),e.set(t,r),this.p=e},t.prototype.c=function(t,n){this.d=this.s.i=n;var r=this.s.b,e=E(this.p,this.o,this.s);this.ondata(O(e,r,this.s.b),n||!1),this.o=O(e,this.s.b-32768),this.s.b=32768,this.p=O(this.p,this.s.p>>>3),this.s.p&=7},t.prototype.push=function(t,n){this.e(t),this.c(t,n)},t}();_e.Inflate=Ct;var Dt=function(t){this.ondata=t,ht([rt,function(){return[ct,Ct]}],this,0,(function(){var t=new Ct;onmessage=ct(t)}),7)};function Gt(t,n,r){if(r||(r=n,n={}),"function"!=typeof r)throw"no callback";return lt(t,n,[rt],(function(t){return ft(Ut(t.data[0],ut(t.data[1])))}),1,r)}function Ut(t,n){return E(t,n)}_e.AsyncInflate=Dt,_e.inflate=Gt,_e.inflateSync=Ut;var Ot=function(){function t(t,n){this.c=P(),this.l=0,this.v=1,At.call(this,t,n)}return t.prototype.push=function(t,n){At.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){this.c.p(t),this.l+=t.length;var r=R(t,this.o,this.v&&xt(this.o),n&&8,!n);this.v&&(gt(r,this.o),this.v=0),n&&(dt(r,r.length-8,this.c.d()),dt(r,r.length-4,this.l)),this.ondata(r,n)},t}();_e.Gzip=Ot,_e.Compress=Ot;var Et=function(t,n){ht([et,ot,function(){return[ct,At,Ot]}],this,zt.call(this,t,n),(function(t){var n=new Ot(t.data);onmessage=ct(n)}),8)};function Ft(t,n,r){if(r||(r=n,n={}),"function"!=typeof r)throw"no callback";return lt(t,n,[et,ot,function(){return[It]}],(function(t){return ft(It(t.data[0],t.data[1]))}),2,r)}function It(t,n){void 0===n&&(n={});var r=P(),e=t.length;r.p(t);var o=R(t,n,xt(n),8),i=o.length;return gt(o,n),dt(o,i-8,r.d()),dt(o,i-4,e),o}_e.AsyncGzip=Et,_e.AsyncCompress=Et,_e.gzip=Ft,_e.compress=Ft,_e.gzipSync=It,_e.compressSync=It;var Zt=function(){function t(t){this.v=1,Ct.call(this,t)}return t.prototype.push=function(t,n){if(Ct.prototype.e.call(this,t),this.v){var r=yt(this.p);if(r>=this.p.length&&!n)return;this.p=this.p.subarray(r),this.v=0}if(n){if(this.p.length<8)throw"invalid gzip stream";this.p=this.p.subarray(0,-8)}Ct.prototype.c.call(this,t,n)},t}();_e.Gunzip=Zt;var Tt=function(t){this.ondata=t,ht([rt,it,function(){return[ct,Ct,Zt]}],this,0,(function(){var t=new Zt;onmessage=ct(t)}),9)};function _t(t,n,r){if(r||(r=n,n={}),"function"!=typeof r)throw"no callback";return lt(t,n,[rt,it,function(){return[jt]}],(function(t){return ft(jt(t.data[0]))}),3,r)}function jt(t,r){return E(t.subarray(yt(t),-8),r||new n(wt(t)))}_e.AsyncGunzip=Tt,_e.gunzip=_t,_e.gunzipSync=jt;var qt=function(){function t(t,n){this.c=Q(),this.v=1,At.call(this,t,n)}return t.prototype.push=function(t,n){At.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){this.c.p(t);var r=R(t,this.o,this.v&&2,n&&4,!n);this.v&&(mt(r,this.o),this.v=0),n&&dt(r,r.length-4,this.c.d()),this.ondata(r,n)},t}();_e.Zlib=qt;var Ht=function(t,n){ht([et,at,function(){return[ct,At,qt]}],this,zt.call(this,t,n),(function(t){var n=new qt(t.data);onmessage=ct(n)}),10)};function Yt(t,n,r){if(r||(r=n,n={}),"function"!=typeof r)throw"no callback";return lt(t,n,[et,at,function(){return[Bt]}],(function(t){return ft(Bt(t.data[0],t.data[1]))}),4,r)}function Bt(t,n){void 0===n&&(n={});var r=Q();r.p(t);var e=R(t,n,2,4);return mt(e,n),dt(e,e.length-4,r.d()),e}_e.AsyncZlib=Ht,_e.zlib=Yt,_e.zlibSync=Bt;var Jt=function(){function t(t){this.v=1,Ct.call(this,t)}return t.prototype.push=function(t,n){if(Ct.prototype.e.call(this,t),this.v){if(this.p.length<2&&!n)return;this.p=this.p.subarray(2),this.v=0}if(n){if(this.p.length<8)throw"invalid zlib stream";this.p=this.p.subarray(0,-4)}Ct.prototype.c.call(this,t,n)},t}();_e.Unzlib=Jt;var Kt=function(t){this.ondata=t,ht([rt,st,function(){return[ct,Ct,Jt]}],this,0,(function(){var t=new Jt;onmessage=ct(t)}),11)};function Lt(t,n,r){if(r||(r=n,n={}),"function"!=typeof r)throw"no callback";return lt(t,n,[rt,st,function(){return[Nt]}],(function(t){return ft(Nt(t.data[0],ut(t.data[1])))}),5,r)}function Nt(t,n){return E((bt(t),t.subarray(2,-4)),n)}_e.AsyncUnzlib=Kt,_e.unzlib=Lt,_e.unzlibSync=Nt;var Pt=function(){function t(t){this.G=Zt,this.I=Ct,this.Z=Jt,this.ondata=t}return t.prototype.push=function(t,r){if(!this.ondata)throw"no stream handler";if(this.s)this.s.push(t,r);else{if(this.p&&this.p.length){var e=new n(this.p.length+t.length);e.set(this.p),e.set(t,this.p.length)}else this.p=t;if(this.p.length>2){var o=this,i=function(){o.ondata.apply(o,arguments)};this.s=31==this.p[0]&&139==this.p[1]&&8==this.p[2]?new this.G(i):8!=(15&this.p[0])||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(i):new this.Z(i),this.s.push(this.p,r),this.p=null}}},t}();_e.Decompress=Pt;var Qt=function(){function t(t){this.G=Tt,this.I=Dt,this.Z=Kt,this.ondata=t}return t.prototype.push=function(t,n){Pt.prototype.push.call(this,t,n)},t}();function Rt(t,n,r){if(r||(r=n,n={}),"function"!=typeof r)throw"no callback";return 31==t[0]&&139==t[1]&&8==t[2]?_t(t,n,r):8!=(15&t[0])||t[0]>>4>7||(t[0]<<8|t[1])%31?Gt(t,n,r):Lt(t,n,r)}function Vt(t,n){return 31==t[0]&&139==t[1]&&8==t[2]?jt(t,n):8!=(15&t[0])||t[0]>>4>7||(t[0]<<8|t[1])%31?Ut(t,n):Nt(t,n)}_e.AsyncDecompress=Qt,_e.decompress=Rt,_e.decompressSync=Vt;var Wt=function(t,r,e,o){for(var i in t){var a=t[i],s=r+i;a instanceof n?e[s]=[a,o]:Array.isArray(a)?e[s]=[a[0],V(o,a[1])]:Wt(a,s+"/",e,o)}};function Xt(t,r){var e=t.length;if(!r&&"undefined"!=typeof TextEncoder)return(new TextEncoder).encode(t);for(var o=new n(t.length+(t.length>>>1)),i=0,a=function(t){o[i++]=t},s=0;s<e;++s){if(i+5>o.length){var f=new n(i+8+(e-s<<1));f.set(o),o=f}var u=t.charCodeAt(s);u<128||r?a(u):u<2048?(a(192|u>>>6),a(128|63&u)):u>55295&&u<57344?(a(240|(u=65536+(1047552&u)|1023&t.charCodeAt(++s))>>>18),a(128|u>>>12&63),a(128|u>>>6&63),a(128|63&u)):(a(224|u>>>12),a(128|u>>>6&63),a(128|63&u))}return O(o,0,i)}function $t(t,n){var r="";if(!n&&"undefined"!=typeof TextDecoder)return(new TextDecoder).decode(t);for(var e=0;e<t.length;){var o=t[e++];o<128||n?r+=String.fromCharCode(o):o<224?r+=String.fromCharCode((31&o)<<6|63&t[e++]):o<240?r+=String.fromCharCode((15&o)<<12|(63&t[e++])<<6|63&t[e++]):(o=((15&o)<<18|(63&t[e++])<<12|(63&t[e++])<<6|63&t[e++])-65536,r+=String.fromCharCode(55296|o>>10,56320|1023&o))}return r}_e.strToU8=Xt,_e.strFromU8=$t;var tn=function(t,n){var r=pt(t,n+6),e=4&r,o=pt(t,n+8),i=e?null:vt(t,n+18),a=e?null:vt(t,n+22),s=pt(t,n+26),f=pt(t,n+28);return[i,o,a,$t(t.subarray(n+=30,n+=s),!(2048&r)),n+f]},nn=function(t,n,r,e,o,i,a,s,f,u){var l=i.length,c=e.length;dt(t,n,null!=f?33639248:67324752),n+=4,null!=f&&(t[n]=20,n+=2),t[n]=20,n+=2,t[n++]=8==u&&(1==s.level?6:s.level<6?4:9==s.level?2:0),t[n++]=a&&8,t[n]=u,n+=2;var h=new Date(s.mtime||Date.now()),p=h.getFullYear()-1980;if(p<0||p>119)throw"date not in range 1980-2099";dt(t,n,p<<25|h.getMonth()+1<<21|h.getDate()<<16|h.getHours()<<11|h.getMinutes()<<5|h.getSeconds()>>>1),dt(t,n+=4,r),dt(t,n+4,c),dt(t,n+8,o),dt(t,n+12,l),n+=16,null!=f&&(dt(t,n+=10,f),n+=4),t.set(i,n),n+=l,null==f&&t.set(e,n)},rn=function(t,n,r,e,o){dt(t,n,101010256),dt(t,n+8,r),dt(t,n+10,r),dt(t,n+12,e),dt(t,n+16,o)};function en(t,r,e){if(e||(e=r,r={}),"function"!=typeof e)throw"no callback";var o={};Wt(t,"",o,r);var i=Object.keys(o),a=i.length,s=0,f=0,u=a,l=Array(a),c=[],h=function(){for(var t=0;t<c.length;++t)c[t]()},p=function(){var t=new n(f+22),r=s,o=f-s;f=0;for(var i=0;i<u;++i){var a=l[i];nn(t,f,a.c,a.d,a.m,a.n,a.u,a.p,null,a.t),nn(t,s,a.c,a.d,a.m,a.n,a.u,a.p,f,a.t),s+=46+a.n.length,f+=30+a.n.length+a.d.length}rn(t,s,l.length,o,r),e(null,t)};a||p();for(var v=function(t){var n=i[t],u=o[n],v=u[0],d=u[1],g=P(),y=v.length;g.p(v);var w=Xt(n),x=w.length,m=0==d.level?0:8,b=function(r,o){if(r)h(),e(r,null);else{var i=o.length;l[t]={t:m,d:o,m:y,c:g.d(),u:n.length!=i,n:w,p:d},s+=30+x+i,f+=76+2*x+i,--a||p()}};if(w.length>65535&&b(Error("filename too long"),null),m)if(y<16e4)try{b(null,kt(v,r))}catch(t){b(t,null)}else c.push(Mt(v,r,b));else b(null,v)},d=0;d<u;++d)v(d);return h}function on(t,r){void 0===r&&(r={});var e={},o=[];Wt(t,"",e,r);var i=0,a=0;for(var s in e){var f=e[s],u=f[0],l=f[1],c=0==l.level?0:8,h=Xt(s),p=h.length;if(h.length>65535)throw"filename too long";var v=c?kt(u,l):u,d=v.length,g=P();g.p(u),o.push({t:c,d:v,m:u.length,c:g.d(),u:s.length!=p,n:h,o:i,p:l}),i+=30+p+d,a+=76+2*p+d}for(var y=new n(a+22),w=i,x=a-i,m=0;m<o.length;++m){var b=o[m];nn(y,b.o,b.c,b.d,b.m,b.n,b.u,b.p,null,b.t),nn(y,i,b.c,b.d,b.m,b.n,b.u,b.p,b.o,b.t),i+=46+b.n.length}return rn(y,i,o.length,x,w),y}function an(t,r){if("function"!=typeof r)throw"no callback";for(var e=[],o=function(){for(var t=0;t<e.length;++t)e[t]()},i={},a=t.length-22;101010256!=vt(t,a);--a)if(!a||t.length-a>65558)return void r(Error("invalid zip file"),null);var s=pt(t,a+8);s||r(null,{});for(var f=s,u=vt(t,a+16),l=function(e){var a=vt(t,u+42);u+=46+pt(t,u+28)+pt(t,u+30)+pt(t,u+32);var f=tn(t,a),l=f[0],c=f[1],h=f[2],p=f[3],v=f[4],d=function(t,n){t?(o(),r(t,null)):(i[p]=n,--s||r(null,i))};if(c){if(8!=c)throw"unknown compression type "+c;var g=t.subarray(v,l?v+l:t.length);if(l<32e4)try{d(null,Ut(g,null!=h&&new n(h)))}catch(t){d(t,null)}else Gt(g,{size:h},d)}else d(null,O(t,v,v+l))},c=0;c<f;++c)l();return o}function sn(t){for(var r={},e=t.length-22;101010256!=vt(t,e);--e)if(!e||t.length-e>65558)throw"invalid zip file";var o=pt(t,e+8);if(!o)return{};for(var i=vt(t,e+16),a=0;a<o;++a){var s=vt(t,i+42);i+=46+pt(t,i+28)+pt(t,i+30)+pt(t,i+32);var f=tn(t,s),u=f[0],l=f[1],c=f[2],h=f[3],p=f[4];if(l){if(8!=l)throw"unknown compression type "+l;r[h]=Ut(t.subarray(p,u?p+u:t.length),null!=c&&new n(c))}else r[h]=O(t,p,p+u)}return r}_e.zip=en,_e.zipSync=on,_e.unzip=an,_e.unzipSync=sn;return _e})

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc