diff --git a/bin/deflate.min.js b/bin/deflate.min.js index d877569..885e190 100644 --- a/bin/deflate.min.js +++ b/bin/deflate.min.js @@ -1,37 +1,33 @@ /** @license zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */ -(function() {'use strict';var j=this;function q(a,d,b){a=a.split(".");b=b||j;!(a[0]in b)&&b.execScript&&b.execScript("var "+a[0]);for(var f;a.length&&(f=a.shift());)!a.length&&void 0!==d?b[f]=d:b=b[f]?b[f]:b[f]={}}Math.floor(2147483648*Math.random()).toString(36);var r="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Uint32Array;function s(a,d){this.index="number"===typeof d?d:0;this.e=0;this.buffer=a instanceof(r?Uint8Array:Array)?a:new (r?Uint8Array:Array)(32768);if(2*this.buffer.length<=this.index)throw Error("invalid index");this.buffer.length<=this.index&&this.l()}s.prototype.l=function(){var a=this.buffer,d,b=a.length,f=new (r?Uint8Array:Array)(b<<1);if(r)f.set(a);else for(d=0;d>>8&255]<<16|t[a>>>16&255]<<8|t[a>>>24&255])>>32-d:t[a]>>8-d);if(8>d+e)g=g<>d-b-1&1,8===++e&&(e=0,f[c++]=t[g],g=0,c===f.length&&(f=this.l()));f[c]=g;this.buffer=f;this.e=e;this.index=c};s.prototype.finish=function(){var a=this.buffer,d=this.index;0w;++w){for(var x=u,y=w,z=w,A=z,B=7,z=z>>>1;z;z>>>=1)A<<=1,A|=z&1,--B;x[y]=(A<>>0}var t=u;var aa=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759, +(function() {'use strict';var j=void 0,z=!0,da=this;function F(a,c){var b=a.split("."),g=da;!(b[0]in g)&&g.execScript&&g.execScript("var "+b[0]);for(var d;b.length&&(d=b.shift());)!b.length&&c!==j?g[d]=c:g=g[d]?g[d]:g[d]={}};var G="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Uint32Array;function O(a,c){this.index="number"===typeof c?c:0;this.e=0;this.buffer=a instanceof(G?Uint8Array:Array)?a:new (G?Uint8Array:Array)(32768);if(2*this.buffer.length<=this.index)throw Error("invalid index");this.buffer.length<=this.index&&ea(this)}function ea(a){var c=a.buffer,b,g=c.length,d=new (G?Uint8Array:Array)(g<<1);if(G)d.set(c);else for(b=0;b>>8&255]<<16|P[a>>>16&255]<<8|P[a>>>24&255])>>32-c:P[a]>>8-c);if(8>c+e)f=f<>c-l-1&1,8===++e&&(e=0,g[d++]=P[f],f=0,d===g.length&&(g=ea(this)));g[d]=f;this.buffer=g;this.e=e;this.index=d};O.prototype.finish=function(){var a=this.buffer,c=this.index,b;0Q;++Q){for(var S=Q,T=S,ga=7,S=S>>>1;S;S>>>=1)T<<=1,T|=S&1,--ga;fa[Q]=(T<>>0}var P=fa;var ja=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759, 2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977, 2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755, 2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956, 3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270, -936918E3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];r&&new Uint32Array(aa);function C(a){this.buffer=new (r?Uint16Array:Array)(2*a);this.length=0}C.prototype.getParent=function(a){return 2*((a-2)/4|0)};C.prototype.v=function(a){return 2*a+2};C.prototype.push=function(a,d){var b,f,c=this.buffer,e;b=this.length;c[this.length++]=d;for(c[this.length++]=a;0c[f])e=c[b],c[b]=c[f],c[f]=e,e=c[b+1],c[b+1]=c[f+1],c[f+1]=e,b=f;else break;return this.length}; -C.prototype.pop=function(){var a,d,b=this.buffer,f,c,e;d=b[0];a=b[1];this.length-=2;b[0]=b[this.length];b[1]=b[this.length+1];for(e=0;;){c=this.v(e);if(c>=this.length)break;c+2b[c]&&(c+=2);if(b[c]>b[e])f=b[e],b[e]=b[c],b[c]=f,f=b[e+1],b[e+1]=b[c+1],b[c+1]=f;else break;e=c}return{index:a,value:d,length:this.length}};function D(a){var d=a.length,b=0,f=Number.POSITIVE_INFINITY,c,e,g,i,k,n,l,m,h;for(m=0;mb&&(b=a[m]),a[m]>=1;for(h=n;hH;H++)switch(!0){case 143>=H:G.push([H+48,8]);break;case 255>=H:G.push([H-144+400,9]);break;case 279>=H:G.push([H-256+0,7]);break;case 287>=H:G.push([H-280+192,8]);break;default:throw"invalid literal: "+H;} -E.prototype.h=function(){var a,d,b,f=this.input;switch(this.d){case 0:d=0;for(b=f.length;d>>8&255;c[e++]=f&255;c[e++]=f>>>8&255;if(r)c.set(a,e),e+=a.length,c=c.subarray(0,e);else{b=0;for(f=a.length;bo;o++)v[o]=p[i[o]];for(g=19;4=a:return[265,a-11,1];case 14>=a:return[266,a-13,1];case 16>=a:return[267,a-15,1];case 18>=a:return[268,a-17,1];case 22>=a:return[269,a-19,2];case 26>=a:return[270,a-23,2];case 30>=a:return[271,a-27,2];case 34>=a:return[272,a-31,2];case 42>= -a:return[273,a-35,3];case 50>=a:return[274,a-43,3];case 58>=a:return[275,a-51,3];case 66>=a:return[276,a-59,3];case 82>=a:return[277,a-67,4];case 98>=a:return[278,a-83,4];case 114>=a:return[279,a-99,4];case 130>=a:return[280,a-115,4];case 162>=a:return[281,a-131,5];case 194>=a:return[282,a-163,5];case 226>=a:return[283,a-195,5];case 257>=a:return[284,a-227,5];case 258===a:return[285,a-258,0];default:throw"invalid length: "+a;}}var J=[],K,L;for(K=3;258>=K;K++)L=ca(K),J[K]=L[2]<<24|L[1]<<16|L[0]; -var da=r?new Uint32Array(J):J; -I.prototype.w=function(a){switch(!0){case 1===a:a=[0,a-1,0];break;case 2===a:a=[1,a-2,0];break;case 3===a:a=[2,a-3,0];break;case 4===a:a=[3,a-4,0];break;case 6>=a:a=[4,a-5,1];break;case 8>=a:a=[5,a-7,1];break;case 12>=a:a=[6,a-9,2];break;case 16>=a:a=[7,a-13,2];break;case 24>=a:a=[8,a-17,3];break;case 32>=a:a=[9,a-25,3];break;case 48>=a:a=[10,a-33,4];break;case 64>=a:a=[11,a-49,4];break;case 96>=a:a=[12,a-65,5];break;case 128>=a:a=[13,a-97,5];break;case 192>=a:a=[14,a-129,6];break;case 256>=a:a=[15, -a-193,6];break;case 384>=a:a=[16,a-257,7];break;case 512>=a:a=[17,a-385,7];break;case 768>=a:a=[18,a-513,8];break;case 1024>=a:a=[19,a-769,8];break;case 1536>=a:a=[20,a-1025,9];break;case 2048>=a:a=[21,a-1537,9];break;case 3072>=a:a=[22,a-2049,10];break;case 4096>=a:a=[23,a-3073,10];break;case 6144>=a:a=[24,a-4097,11];break;case 8192>=a:a=[25,a-6145,11];break;case 12288>=a:a=[26,a-8193,12];break;case 16384>=a:a=[27,a-12289,12];break;case 24576>=a:a=[28,a-16385,13];break;case 32768>=a:a=[29,a-24577, -13];break;default:throw"invalid distance";}return a};I.prototype.G=function(){var a=this.p,d=[],b=0,f;f=da[this.length];d[b++]=f&65535;d[b++]=f>>16&255;d[b++]=f>>24;f=this.w(a);d[b++]=f[0];d[b++]=f[1];d[b++]=f[2];return d}; -E.prototype.n=function(a){function d(a,b){var c=a.G(),d,e;d=0;for(e=c.length;d=c;)h[c++]=0;for(c=0;29>=c;)p[c++]=0}h[256]=1;b=0;for(f=a.length;b=f){k&&d(k,-1);c=0;for(e=f-b;cg&&d+ge&&(c=f,e=g);if(258===g)break}return new I(e,d-c)}; -E.prototype.z=function(a,d,b,f){var c=new (r?Uint32Array:Array)(a+b),e,g,i=new (r?Uint32Array:Array)(316),k=new (r?Uint8Array:Array)(19);for(e=g=0;ea)for(;0a?a:138,f>a-3&&f=f?(i[b++]=17,i[b++]=f-3,k[17]++):(i[b++]=18,i[b++]=f-11,k[18]++),a-=f;else if(i[b++]=c[e],k[c[e]]++, -a--,3>a)for(;0a?a:6,f>a-3&&f2*c[h-1]+e[h]&&(c[h]=2*c[h-1]+e[h]),i[h]=Array(c[h]),k[h]=Array(c[h]);for(l=0;la[l]?(i[h][m]=b,k[h][m]=d,p+=2):(i[h][m]=a[l],k[h][m]=l,++l);n[h]=0;1===e[h]&&f(h)}return g}; -E.prototype.i=function(a){var d=new (r?Uint16Array:Array)(a.length),b=[],f=[],c=0,e,g,i;e=0;for(g=a.length;e1<c)throw"undercommitted";e=0;for(g=a.length;e>>=1}return d};function M(a,d){this.input=a;this.a=new (r?Uint8Array:Array)(32768);this.d=N.f;var b={},f;if((d||!(d={}))&&"number"===typeof d.compressionType)this.d=d.compressionType;for(f in d)b[f]=d[f];b.outputBuffer=this.a;this.o=new E(this.input,b)}var N=ba; -M.prototype.h=function(){var a,d,b,f=0;b=this.a;a=O;switch(a){case O:d=Math.LOG2E*Math.log(32768)-8;break;default:throw Error("invalid compression method");}d=d<<4|a;b[f++]=d;switch(a){case O:switch(this.d){case N.NONE:a=0;break;case N.k:a=1;break;case N.f:a=2;break;default:throw Error("unsupported compression type");}break;default:throw Error("invalid compression method");}a=a<<6|0;b[f++]=a|31-(256*d+a)%31;b=this.input;if("string"===typeof b){b=b.split("");d=0;for(a=b.length;d>>0}d=1;a=0;for(var c=b.length,e,g=0;0>>0;this.o.c=f;b=this.o.h();f=b.length;r&&(b=new Uint8Array(b.buffer),b.length<=f+4&&(this.a=new Uint8Array(b.length+4),this.a.set(b),b=this.a),b=b.subarray(0,f+4));b[f++]=d&255;b[f++]=d>>8&255;b[f++]=d>>16&255;b[f++]=d>>24&255;return b};q("Zlib.Deflate",M,void 0);q("Zlib.Deflate.compress",function(a,d){return(new M(a,d)).h()},void 0);q("Zlib.Deflate.CompressionType",N,void 0); -q("Zlib.Deflate.CompressionType.NONE",N.NONE,void 0);q("Zlib.Deflate.CompressionType.FIXED",N.k,void 0);q("Zlib.Deflate.CompressionType.DYNAMIC",N.f,void 0);var ea=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];r&&new Uint16Array(ea);var fa=[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,258,258];r&&new Uint16Array(fa);var ga=[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];r&&new Uint8Array(ga);var ha=[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];r&&new Uint16Array(ha); -var ia=[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];r&&new Uint8Array(ia);var P=new (r?Uint8Array:Array)(288),Q,R;Q=0;for(R=P.length;Q=Q?8:255>=Q?9:279>=Q?7:8;D(P);var S=new (r?Uint8Array:Array)(30),T,U;T=0;for(U=S.length;T=W?8:255>=W?9:279>=W?7:8;D(V);var Y=new (r?Uint8Array:Array)(30),Z,$;Z=0;for($=Y.length;Z<$;++Z)Y[Z]=5;D(Y);var O=8;}).call(this); +936918E3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];G&&new Uint32Array(ja);function ka(a){this.buffer=new (G?Uint16Array:Array)(2*a);this.length=0}ka.prototype.getParent=function(a){return 2*((a-2)/4|0)};ka.prototype.push=function(a,c){var b,g,d=this.buffer,e;b=this.length;d[this.length++]=c;for(d[this.length++]=a;0d[g])e=d[b],d[b]=d[g],d[g]=e,e=d[b+1],d[b+1]=d[g+1],d[g+1]=e,b=g;else break;return this.length}; +ka.prototype.pop=function(){var a,c,b=this.buffer,g,d,e;c=b[0];a=b[1];this.length-=2;b[0]=b[this.length];b[1]=b[this.length+1];for(e=0;;){d=2*e+2;if(d>=this.length)break;d+2b[d]&&(d+=2);if(b[d]>b[e])g=b[e],b[e]=b[d],b[d]=g,g=b[e+1],b[e+1]=b[d+1],b[d+1]=g;else break;e=d}return{index:a,value:c,length:this.length}};function la(a){var c=a.length,b=0,g=Number.POSITIVE_INFINITY,d,e,f,l,s,k,r,m,h;for(m=0;mb&&(b=a[m]),a[m]>=1;for(h=k;hW;W++)switch(z){case 143>=W:U.push([W+48,8]);break;case 255>=W:U.push([W-144+400,9]);break;case 279>=W:U.push([W-256+0,7]);break;case 287>=W:U.push([W-280+192,8]);break;default:throw"invalid literal: "+W;} +na.prototype.g=function(){var a,c,b,g,d=this.input;switch(this.d){case 0:b=0;for(g=d.length;b>>8&255;h[n++]=k&255;h[n++]=k>>>8&255;if(G)h.set(e,n),n+=e.length,h=h.subarray(0,n);else{r=0;for(m=e.length;rv)for(;0v?v:138,E>v-3&&E=E?(J[H++]=17,J[H++]=E-3,M[17]++):(J[H++]=18,J[H++]=E-11,M[18]++),v-=E;else if(J[H++]=K[t],M[K[t]]++,v--,3>v)for(;0v?v:6,E>v-3&&ED;D++)ma[D]=ha[$[D]];for(B=19;4=a:return[265,a-11,1];case 14>=a:return[266,a-13,1];case 16>=a:return[267,a-15,1];case 18>=a:return[268,a-17,1];case 22>=a:return[269,a-19,2];case 26>=a:return[270,a-23,2];case 30>=a:return[271,a-27,2];case 34>=a:return[272,a- +31,2];case 42>=a:return[273,a-35,3];case 50>=a:return[274,a-43,3];case 58>=a:return[275,a-51,3];case 66>=a:return[276,a-59,3];case 82>=a:return[277,a-67,4];case 98>=a:return[278,a-83,4];case 114>=a:return[279,a-99,4];case 130>=a:return[280,a-115,4];case 162>=a:return[281,a-131,5];case 194>=a:return[282,a-163,5];case 226>=a:return[283,a-195,5];case 257>=a:return[284,a-227,5];case 258===a:return[285,a-258,0];default:throw"invalid length: "+a;}}var xa=[],wa,ya; +for(wa=3;258>=wa;wa++)ya=va(),xa[wa]=ya[2]<<24|ya[1]<<16|ya[0];var za=G?new Uint32Array(xa):xa; +function ra(a,c){function b(a,c){var b=a.k,d=[],e=0,g;g=za[a.length];d[e++]=g&65535;d[e++]=g>>16&255;d[e++]=g>>24;var f;switch(z){case 1===b:f=[0,b-1,0];break;case 2===b:f=[1,b-2,0];break;case 3===b:f=[2,b-3,0];break;case 4===b:f=[3,b-4,0];break;case 6>=b:f=[4,b-5,1];break;case 8>=b:f=[5,b-7,1];break;case 12>=b:f=[6,b-9,2];break;case 16>=b:f=[7,b-13,2];break;case 24>=b:f=[8,b-17,3];break;case 32>=b:f=[9,b-25,3];break;case 48>=b:f=[10,b-33,4];break;case 64>=b:f=[11,b-49,4];break;case 96>=b:f=[12,b- +65,5];break;case 128>=b:f=[13,b-97,5];break;case 192>=b:f=[14,b-129,6];break;case 256>=b:f=[15,b-193,6];break;case 384>=b:f=[16,b-257,7];break;case 512>=b:f=[17,b-385,7];break;case 768>=b:f=[18,b-513,8];break;case 1024>=b:f=[19,b-769,8];break;case 1536>=b:f=[20,b-1025,9];break;case 2048>=b:f=[21,b-1537,9];break;case 3072>=b:f=[22,b-2049,10];break;case 4096>=b:f=[23,b-3073,10];break;case 6144>=b:f=[24,b-4097,11];break;case 8192>=b:f=[25,b-6145,11];break;case 12288>=b:f=[26,b-8193,12];break;case 16384>= +b:f=[27,b-12289,12];break;case 24576>=b:f=[28,b-16385,13];break;case 32768>=b:f=[29,b-24577,13];break;default:throw"invalid distance";}g=f;d[e++]=g[0];d[e++]=g[1];d[e++]=g[2];var i,k;i=0;for(k=d.length;i=e;)q[e++]=0;for(e=0;29>=e;)u[e++]=0}q[256]=1;g=0;for(d=c.length;g=d){m&&b(m,-1);e=0;for(f=d-g;ep&&g+pi&&(A=x,i=p);if(258===p)break}r=new ua(i,g-A);m?m.length2*h[i-1]+n[i]&&(h[i]=2*h[i-1]+n[i]),q[i]=Array(h[i]),u[i]=Array(h[i]);for(A=0;Al[A]?(q[i][p]=C,u[i][p]=m,B+=2): +(q[i][p]=l[A],u[i][p]=A,++A);I[i]=0;1===n[i]&&b(i)}s=w;k=0;for(r=f.length;k1<d)throw"undercommitted";e=0;for(f=a.length;e>>=1}return c};function Aa(a,c){this.input=a;this.a=new (G?Uint8Array:Array)(32768);this.d=X.f;var b={},g;if((c||!(c={}))&&"number"===typeof c.compressionType)this.d=c.compressionType;for(g in c)b[g]=c[g];b.outputBuffer=this.a;this.j=new na(this.input,b)}var X=qa; +Aa.prototype.g=function(){var a,c,b,g,d,e,f,l=0;f=this.a;a=Ba;switch(a){case Ba:c=Math.LOG2E*Math.log(32768)-8;break;default:throw Error("invalid compression method");}b=c<<4|a;f[l++]=b;switch(a){case Ba:switch(this.d){case X.NONE:d=0;break;case X.h:d=1;break;case X.f:d=2;break;default:throw Error("unsupported compression type");}break;default:throw Error("invalid compression method");}g=d<<6|0;f[l++]=g|31-(256*b+g)%31;var s=this.input;if("string"===typeof s){var k=s.split(""),r,m;r=0;for(m=k.length;r< +m;r++)k[r]=(k[r].charCodeAt(0)&255)>>>0;s=k}for(var h=1,n=0,w=s.length,q,u=0;0>>0;this.j.c=l;f=this.j.g();l=f.length;G&&(f=new Uint8Array(f.buffer),f.length<=l+4&&(this.a=new Uint8Array(f.length+4),this.a.set(f),f=this.a),f=f.subarray(0,l+4));f[l++]=e>>24&255;f[l++]=e>>16&255;f[l++]=e>>8&255;f[l++]=e&255;return f};F("Zlib.Deflate",Aa);F("Zlib.Deflate.compress",function(a,c){return(new Aa(a,c)).g()}); +F("Zlib.Deflate.CompressionType",X);F("Zlib.Deflate.CompressionType.NONE",X.NONE);F("Zlib.Deflate.CompressionType.FIXED",X.h);F("Zlib.Deflate.CompressionType.DYNAMIC",X.f);var Pa=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];G&&new Uint16Array(Pa);var Qa=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,258,258];G&&new Uint16Array(Qa);var Ra=[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];G&&new Uint8Array(Ra);var Sa=[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];G&&new Uint16Array(Sa); +var Ta=[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];G&&new Uint8Array(Ta);var Ua=new (G?Uint8Array:Array)(288),Y,Va;Y=0;for(Va=Ua.length;Y=Y?8:255>=Y?9:279>=Y?7:8;la(Ua);var Wa=new (G?Uint8Array:Array)(30),Xa,Ya;Xa=0;for(Ya=Wa.length;Xa=Z?8:255>=Z?9:279>=Z?7:8;la(db);var fb=new (G?Uint8Array:Array)(30),gb,hb;gb=0;for(hb=fb.length;gbl;++l){for(var ca=ba,da=l,n=l,o=n,q=7,n=n>>>1;n;n>>>=1)o<<=1,o|=n&1,--q;ca[da]=(o<>>0};var r={m:function(a,c,b){return r.update(a,0,c,b)},update:function(a,c,b,d){for(var f=r.A,e="number"===typeof b?b:b=0,d="number"===typeof d?d:a.length,c=c^4294967295,e=d&7;e--;++b)c=c>>>8^f[(c^a[b])&255];for(e=d>>3;e--;b+=8)c=c>>>8^f[(c^a[b])&255],c=c>>>8^f[(c^a[b+1])&255],c=c>>>8^f[(c^a[b+2])&255],c=c>>>8^f[(c^a[b+3])&255],c=c>>>8^f[(c^a[b+4])&255],c=c>>>8^f[(c^a[b+5])&255],c=c>>>8^f[(c^a[b+6])&255],c=c>>>8^f[(c^a[b+7])&255];return(c^4294967295)>>>0}},s,t=[0,1996959894,3993919788,2567524794,124634137, -1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598, -565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092, -3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386, -503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920, -3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918E3,2847714899,3736837829,1202900863,817233897, -3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];s=j?new Uint32Array(t):t;r.A=s;function ea(){};function u(a){var c=a.length,b=0,d=Number.POSITIVE_INFINITY,f,e,g,i,p,x,y,k,m;for(k=0;kb&&(b=a[k]),a[k]>=1;for(m=x;mw;w++)switch(!0){case 143>=w:v.push([w+48,8]);break;case 255>=w:v.push([w-144+400,9]);break;case 279>=w:v.push([w-256+0,7]);break;case 287>=w:v.push([w-280+192,8]);break;default:throw"invalid literal: "+w;}function z(a,c){this.length=a;this.C=c} -function fa(a){switch(!0){case 3===a:return[257,a-3,0];case 4===a:return[258,a-4,0];case 5===a:return[259,a-5,0];case 6===a:return[260,a-6,0];case 7===a:return[261,a-7,0];case 8===a:return[262,a-8,0];case 9===a:return[263,a-9,0];case 10===a:return[264,a-10,0];case 12>=a:return[265,a-11,1];case 14>=a:return[266,a-13,1];case 16>=a:return[267,a-15,1];case 18>=a:return[268,a-17,1];case 22>=a:return[269,a-19,2];case 26>=a:return[270,a-23,2];case 30>=a:return[271,a-27,2];case 34>=a:return[272,a-31,2];case 42>= -a:return[273,a-35,3];case 50>=a:return[274,a-43,3];case 58>=a:return[275,a-51,3];case 66>=a:return[276,a-59,3];case 82>=a:return[277,a-67,4];case 98>=a:return[278,a-83,4];case 114>=a:return[279,a-99,4];case 130>=a:return[280,a-115,4];case 162>=a:return[281,a-131,5];case 194>=a:return[282,a-163,5];case 226>=a:return[283,a-195,5];case 257>=a:return[284,a-227,5];case 258===a:return[285,a-258,0];default:throw"invalid length: "+a;}}var A=[],B,C;for(B=3;258>=B;B++)C=fa(B),A[B]=C[2]<<24|C[1]<<16|C[0]; -var ga=j?new Uint32Array(A):A; -z.prototype.L=function(a){switch(!0){case 1===a:a=[0,a-1,0];break;case 2===a:a=[1,a-2,0];break;case 3===a:a=[2,a-3,0];break;case 4===a:a=[3,a-4,0];break;case 6>=a:a=[4,a-5,1];break;case 8>=a:a=[5,a-7,1];break;case 12>=a:a=[6,a-9,2];break;case 16>=a:a=[7,a-13,2];break;case 24>=a:a=[8,a-17,3];break;case 32>=a:a=[9,a-25,3];break;case 48>=a:a=[10,a-33,4];break;case 64>=a:a=[11,a-49,4];break;case 96>=a:a=[12,a-65,5];break;case 128>=a:a=[13,a-97,5];break;case 192>=a:a=[14,a-129,6];break;case 256>=a:a=[15, -a-193,6];break;case 384>=a:a=[16,a-257,7];break;case 512>=a:a=[17,a-385,7];break;case 768>=a:a=[18,a-513,8];break;case 1024>=a:a=[19,a-769,8];break;case 1536>=a:a=[20,a-1025,9];break;case 2048>=a:a=[21,a-1537,9];break;case 3072>=a:a=[22,a-2049,10];break;case 4096>=a:a=[23,a-3073,10];break;case 6144>=a:a=[24,a-4097,11];break;case 8192>=a:a=[25,a-6145,11];break;case 12288>=a:a=[26,a-8193,12];break;case 16384>=a:a=[27,a-12289,12];break;case 24576>=a:a=[28,a-16385,13];break;case 32768>=a:a=[29,a-24577, -13];break;default:throw"invalid distance";}return a};z.prototype.V=function(){var a=this.C,c=[],b=0,d;d=ga[this.length];c[b++]=d&65535;c[b++]=d>>16&255;c[b++]=d>>24;d=this.L(a);c[b++]=d[0];c[b++]=d[1];c[b++]=d[2];return c};function D(a,c){this.j=[];this.k=32768;this.e=this.g=this.c=this.p=0;this.input=j?new Uint8Array(a):a;this.q=!1;this.l=E;this.z=!1;if(c||!(c={}))if(c.index&&(this.c=c.index),c.bufferSize&&(this.k=c.bufferSize),c.bufferType&&(this.l=c.bufferType),c.resize)this.z=c.resize;switch(this.l){case F:this.a=32768;this.b=new (j?Uint8Array:Array)(32768+this.k+258);break;case E:this.a=0;this.b=new (j?Uint8Array:Array)(this.k);this.f=this.K;this.s=this.D;this.n=this.H;break;default:throw Error("invalid inflate mode"); -}}var F=0,E=1;D.prototype.o=function(){for(;!this.q;)this.M();return this.s()}; -var G=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],H=j?new Uint16Array(G):G,I=[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,258,258],J=j?new Uint16Array(I):I,K=[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],L=j?new Uint8Array(K):K,M=[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],N=j?new Uint16Array(M):M,O=[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],P=j?new Uint8Array(O):O,Q=new (j?Uint8Array:Array)(288),R,S;R=0;for(S=Q.length;R=R?8:255>=R?9:279>=R?7:8;var ha=u(Q),T=new (j?Uint8Array:Array)(30),U,V;U=0;for(V=T.length;U>>=1;switch(a){case 0:this.P();break;case 1:this.O();break;case 2:this.N();break;default:throw Error("unknown BTYPE: "+a);}}; -D.prototype.d=function(a){for(var c=this.g,b=this.e,d=this.input,f=this.c,e;b>>a;this.e=b-a;this.c=f;return e};D.prototype.h=function(a){for(var c=this.g,b=this.e,d=this.input,f=this.c,e=a[0],a=a[1],g;b>>16;this.g=c>>e;this.e=b-e;this.c=f;return d&65535}; -D.prototype.P=function(){var a=this.input,c=this.c,b=this.b,d=this.a,f,e,g,i=b.length;this.e=this.g=0;f=a[c++];if(void 0===f)throw Error("invalid uncompressed block header: LEN (first byte)");e=f;f=a[c++];if(void 0===f)throw Error("invalid uncompressed block header: LEN (second byte)");e|=f<<8;f=a[c++];if(void 0===f)throw Error("invalid uncompressed block header: NLEN (first byte)");g=f;f=a[c++];if(void 0===f)throw Error("invalid uncompressed block header: NLEN (second byte)");if(e===~(g|f<<8))throw Error("invalid uncompressed block header: length verify"); -if(c+e>a.length)throw Error("input buffer is broken");switch(this.l){case F:for(;d+e>b.length;){f=i-d;e-=f;if(j)b.set(a.subarray(c,c+f),d),d+=f,c+=f;else for(;f--;)b[d++]=a[c++];this.a=d;b=this.f();d=this.a}break;case E:for(;d+e>b.length;)b=this.f({u:2});break;default:throw Error("invalid inflate mode");}if(j)b.set(a.subarray(c,c+e),d),d+=e,c+=e;else for(;e--;)b[d++]=a[c++];this.c=c;this.a=d;this.b=b};D.prototype.O=function(){this.n(ha,ia)}; -D.prototype.N=function(){function a(a,c,b){var d,e,f;for(f=0;fe)d>=f&&(this.a=d,b=this.f(),d=this.a),b[d++]=e;else{e-=257;i=J[e];0=f&&(this.a=d,b=this.f(),d=this.a);for(;i--;)b[d]=b[d++-g]}for(;8<=this.e;)this.e-=8,this.c--;this.a=d}; -D.prototype.H=function(a,c){var b=this.b,d=this.a;this.t=a;for(var f=b.length,e,g,i;256!==(e=this.h(a));)if(256>e)d>=f&&(b=this.f(),f=b.length),b[d++]=e;else{e-=257;i=J[e];0f&&(b=this.f(),f=b.length);for(;i--;)b[d]=b[d++-g]}for(;8<=this.e;)this.e-=8,this.c--;this.a=d}; -D.prototype.f=function(){var a=new (j?Uint8Array:Array)(this.a-32768),c=this.a-32768,b,d,f=this.b;if(j)a.set(f.subarray(32768,a.length));else{b=0;for(d=a.length;bb;++b)f[b]=f[c+b];this.a=32768;return f}; -D.prototype.K=function(a){var c=this.input.length/this.c+1|0,b=this.input,d=this.b;a&&("number"===typeof a.u&&(c=a.u),"number"===typeof a.B&&(c+=a.B));2>c?(a=(b.length-this.c)/this.t[2],a=258*(a/2)|0,a=ac&&(this.b.length=c),a=this.b);return this.buffer=a};function W(a){this.input=a;this.c=0;this.member=[]}W.prototype.o=function(){for(var a=this.input.length;this.c>>0;if(r.m(d)!==c)throw Error("invalid CRC-32 checksum: 0x"+r.m(d).toString(16)+" / 0x"+c.toString(16));a.S=c=(g[b++]|g[b++]<<8| -g[b++]<<16|g[b++]<<24)>>>0;if((d.length&4294967295)!==c)throw Error("invalid input size: "+(d.length&4294967295)+" / "+c);this.member.push(a);this.c=b};W.prototype.J=function(a,c){return a+c};W.prototype.F=function(){var a=this.member,c,b,d=0,f=0;c=0;for(b=a.length;c=Y?8:255>=Y?9:279>=Y?7:8;u(X);var Z=new (j?Uint8Array:Array)(30),$,pa;$=0;for(pa=Z.length;$t;++t)for(var u=t,ba=7,u=u>>>1;u;u>>>=1)--ba;var v={k:function(a,b,c){return v.update(a,0,b,c)},update:function(a,b,c,d){for(var e=v.w,f="number"===typeof c?c:c=0,g="number"===typeof d?d:a.length,b=b^4294967295,f=g&7;f--;++c)b=b>>>8^e[(b^a[c])&255];for(f=g>>3;f--;c+=8)b=b>>>8^e[(b^a[c])&255],b=b>>>8^e[(b^a[c+1])&255],b=b>>>8^e[(b^a[c+2])&255],b=b>>>8^e[(b^a[c+3])&255],b=b>>>8^e[(b^a[c+4])&255],b=b>>>8^e[(b^a[c+5])&255],b=b>>>8^e[(b^a[c+6])&255],b=b>>>8^e[(b^a[c+7])&255];return(b^4294967295)>>>0}},ca=v,w,y=[0,1996959894,3993919788,2567524794, +124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304, +3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486, +2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580, +2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221, +2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918E3,2847714899,3736837829,1202900863, +817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];w=s?new Uint32Array(y):y;ca.w=w;function da(){};function z(a){var b=a.length,c=0,d=Number.POSITIVE_INFINITY,e,f,g,i,l,m,r,h,j;for(h=0;hc&&(c=a[h]),a[h]>=1;for(j=m;jB;B++)switch(!0){case 143>=B:A.push([B+48,8]);break;case 255>=B:A.push([B-144+400,9]);break;case 279>=B:A.push([B-256+0,7]);break;case 287>=B:A.push([B-280+192,8]);break;default:k("invalid literal: "+B)} +function ea(){var a=C;switch(!0){case 3===a:return[257,a-3,0];case 4===a:return[258,a-4,0];case 5===a:return[259,a-5,0];case 6===a:return[260,a-6,0];case 7===a:return[261,a-7,0];case 8===a:return[262,a-8,0];case 9===a:return[263,a-9,0];case 10===a:return[264,a-10,0];case 12>=a:return[265,a-11,1];case 14>=a:return[266,a-13,1];case 16>=a:return[267,a-15,1];case 18>=a:return[268,a-17,1];case 22>=a:return[269,a-19,2];case 26>=a:return[270,a-23,2];case 30>=a:return[271,a-27,2];case 34>=a:return[272,a- +31,2];case 42>=a:return[273,a-35,3];case 50>=a:return[274,a-43,3];case 58>=a:return[275,a-51,3];case 66>=a:return[276,a-59,3];case 82>=a:return[277,a-67,4];case 98>=a:return[278,a-83,4];case 114>=a:return[279,a-99,4];case 130>=a:return[280,a-115,4];case 162>=a:return[281,a-131,5];case 194>=a:return[282,a-163,5];case 226>=a:return[283,a-195,5];case 257>=a:return[284,a-227,5];case 258===a:return[285,a-258,0];default:k("invalid length: "+a)}}var E=[],C,F; +for(C=3;258>=C;C++)F=ea(),E[C]=F[2]<<24|F[1]<<16|F[0];s&&new Uint32Array(E);function G(a,b){this.h=[];this.i=32768;this.d=this.f=this.c=this.n=0;this.input=s?new Uint8Array(a):a;this.o=!1;this.j=H;this.v=!1;if(b||!(b={}))b.index&&(this.c=b.index),b.bufferSize&&(this.i=b.bufferSize),b.bufferType&&(this.j=b.bufferType),b.resize&&(this.v=b.resize);switch(this.j){case I:this.a=32768;this.b=new (s?Uint8Array:Array)(32768+this.i+258);break;case H:this.a=0;this.b=new (s?Uint8Array:Array)(this.i);this.e=this.D;this.q=this.A;this.l=this.C;break;default:k(Error("invalid inflate mode"))}} +var I=0,H=1; +G.prototype.m=function(){for(;!this.o;){var a=J(this,3);a&1&&(this.o=!0);a>>>=1;switch(a){case 0:var b=this.input,c=this.c,d=this.b,e=this.a,f=n,g=n,i=n,l=d.length,m=n;this.d=this.f=0;f=b[c++];f===n&&k(Error("invalid uncompressed block header: LEN (first byte)"));g=f;f=b[c++];f===n&&k(Error("invalid uncompressed block header: LEN (second byte)"));g|=f<<8;f=b[c++];f===n&&k(Error("invalid uncompressed block header: NLEN (first byte)"));i=f;f=b[c++];f===n&&k(Error("invalid uncompressed block header: NLEN (second byte)"));i|= +f<<8;g===~i&&k(Error("invalid uncompressed block header: length verify"));c+g>b.length&&k(Error("input buffer is broken"));switch(this.j){case I:for(;e+g>d.length;){m=l-e;g-=m;if(s)d.set(b.subarray(c,c+m),e),e+=m,c+=m;else for(;m--;)d[e++]=b[c++];this.a=e;d=this.e();e=this.a}break;case H:for(;e+g>d.length;)d=this.e({s:2});break;default:k(Error("invalid inflate mode"))}if(s)d.set(b.subarray(c,c+g),e),e+=g,c+=g;else for(;g--;)d[e++]=b[c++];this.c=c;this.a=e;this.b=d;break;case 1:this.l(fa,ga);break; +case 2:ha(this);break;default:k(Error("unknown BTYPE: "+a))}}return this.q()}; +var L=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],M=s?new Uint16Array(L):L,ia=[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,258,258],ja=s?new Uint16Array(ia):ia,ka=[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],N=s?new Uint8Array(ka):ka,la=[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],ma=s?new Uint16Array(la):la,na=[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],O=s?new Uint8Array(na):na,Q=new (s?Uint8Array:Array)(288),S,oa;S=0;for(oa=Q.length;S=S?8:255>=S?9:279>=S?7:8;var fa=z(Q),T=new (s?Uint8Array:Array)(30),U,pa;U=0;for(pa=T.length;U>>b;a.d=d-b;a.c=f;return g} +function V(a,b){for(var c=a.f,d=a.d,e=a.input,f=a.c,g=b[0],i=b[1],l,m,r;d>>16;a.f=c>>r;a.d=d-r;a.c=f;return m&65535} +function ha(a){function b(a,b,c){var d,e,f,g;for(g=0;gf)d>=e&&(this.a=d,c=this.e(),d=this.a),c[d++]=f;else{g=f-257;l=ja[g];0=e&&(this.a=d,c=this.e(),d=this.a);for(;l--;)c[d]=c[d++-i]}for(;8<=this.d;)this.d-=8,this.c--;this.a=d}; +G.prototype.C=function(a,b){var c=this.b,d=this.a;this.r=a;for(var e=c.length,f,g,i,l;256!==(f=V(this,a));)if(256>f)d>=e&&(c=this.e(),e=c.length),c[d++]=f;else{g=f-257;l=ja[g];0e&&(c=this.e(),e=c.length);for(;l--;)c[d]=c[d++-i]}for(;8<=this.d;)this.d-=8,this.c--;this.a=d}; +G.prototype.e=function(){var a=new (s?Uint8Array:Array)(this.a-32768),b=this.a-32768,c,d,e=this.b;if(s)a.set(e.subarray(32768,a.length));else{c=0;for(d=a.length;cc;++c)e[c]=e[b+c];this.a=32768;return e}; +G.prototype.D=function(a){var b,c=this.input.length/this.c+1|0,d,e,f,g=this.input,i=this.b;a&&("number"===typeof a.s&&(c=a.s),"number"===typeof a.z&&(c+=a.z));2>c?(d=(g.length-this.c)/this.r[2],f=258*(d/2)|0,e=fb&&(this.b.length=b),a=this.b);return this.buffer=a};function W(a){this.input=a;this.c=0;this.member=[]} +W.prototype.m=function(){for(var a=this.input.length;this.c>>0;v.k(e)!==r&&k(Error("invalid CRC-32 checksum: 0x"+v.k(e).toString(16)+" / 0x"+r.toString(16))); +b.H=c=(h[j++]|h[j++]<<8|h[j++]<<16|h[j++]<<24)>>>0;(e.length&4294967295)!==c&&k(Error("invalid input size: "+(e.length&4294967295)+" / "+c));this.member.push(b);this.c=j}var D=this.member,q,K,P=0,R=0,x;q=0;for(K=D.length;q=Y?8:255>=Y?9:279>=Y?7:8;z(X);var Z=new (s?Uint8Array:Array)(30),$,wa;$=0;for(wa=Z.length;$>>8&255]<<16|t[a>>>16&255]<<8|t[a>>>24&255])>>32-d:t[a]>>8-d);if(8>d+c)g=g<>d-b-1&1,8===++c&&(c=0,f[e++]=t[g],g=0,e===f.length&&(f=this.m()));f[e]=g;this.buffer=f;this.f=c;this.index=e};s.prototype.finish=function(){var a=this.buffer,d=this.index;0w;++w){for(var x=v,aa=w,y=w,z=y,A=7,y=y>>>1;y;y>>>=1)z<<=1,z|=y&1,--A;x[aa]=(z<>>0}var t=v;var B={k:function(a,d,b){return B.update(a,0,d,b)},update:function(a,d,b,f){for(var e=B.q,c="number"===typeof b?b:b=0,f="number"===typeof f?f:a.length,d=d^4294967295,c=f&7;c--;++b)d=d>>>8^e[(d^a[b])&255];for(c=f>>3;c--;b+=8)d=d>>>8^e[(d^a[b])&255],d=d>>>8^e[(d^a[b+1])&255],d=d>>>8^e[(d^a[b+2])&255],d=d>>>8^e[(d^a[b+3])&255],d=d>>>8^e[(d^a[b+4])&255],d=d>>>8^e[(d^a[b+5])&255],d=d>>>8^e[(d^a[b+6])&255],d=d>>>8^e[(d^a[b+7])&255];return(d^4294967295)>>>0}},C,D=[0,1996959894,3993919788,2567524794,124634137, -1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598, -565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092, -3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386, -503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920, -3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918E3,2847714899,3736837829,1202900863,817233897, -3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];C=r?new Uint32Array(D):D;B.q=C;function E(a){this.buffer=new (r?Uint16Array:Array)(2*a);this.length=0}E.prototype.getParent=function(a){return 2*((a-2)/4|0)};E.prototype.z=function(a){return 2*a+2};E.prototype.push=function(a,d){var b,f,e=this.buffer,c;b=this.length;e[this.length++]=d;for(e[this.length++]=a;0e[f])c=e[b],e[b]=e[f],e[f]=c,c=e[b+1],e[b+1]=e[f+1],e[f+1]=c,b=f;else break;return this.length}; -E.prototype.pop=function(){var a,d,b=this.buffer,f,e,c;d=b[0];a=b[1];this.length-=2;b[0]=b[this.length];b[1]=b[this.length+1];for(c=0;;){e=this.z(c);if(e>=this.length)break;e+2b[e]&&(e+=2);if(b[e]>b[c])f=b[c],b[c]=b[e],b[e]=f,f=b[c+1],b[c+1]=b[e+1],b[e+1]=f;else break;c=e}return{index:a,value:d,length:this.length}};function F(a){var d=a.length,b=0,f=Number.POSITIVE_INFINITY,e,c,g,i,k,n,l,m,h;for(m=0;mb&&(b=a[m]),a[m]>=1;for(h=n;hJ;J++)switch(!0){case 143>=J:I.push([J+48,8]);break;case 255>=J:I.push([J-144+400,9]);break;case 279>=J:I.push([J-256+0,7]);break;case 287>=J:I.push([J-280+192,8]);break;default:throw"invalid literal: "+J;} -G.prototype.h=function(){var a,d,b,f=this.input;switch(this.l){case 0:d=0;for(b=f.length;d>>8&255;e[c++]=f&255;e[c++]=f>>>8&255;if(r)e.set(a,c),c+=a.length,e=e.subarray(0,c);else{b=0;for(f=a.length;bo;o++)u[o]=p[i[o]];for(g=19;4=a:return[265,a-11,1];case 14>=a:return[266,a-13,1];case 16>=a:return[267,a-15,1];case 18>=a:return[268,a-17,1];case 22>=a:return[269,a-19,2];case 26>=a:return[270,a-23,2];case 30>=a:return[271,a-27,2];case 34>=a:return[272,a-31,2];case 42>= -a:return[273,a-35,3];case 50>=a:return[274,a-43,3];case 58>=a:return[275,a-51,3];case 66>=a:return[276,a-59,3];case 82>=a:return[277,a-67,4];case 98>=a:return[278,a-83,4];case 114>=a:return[279,a-99,4];case 130>=a:return[280,a-115,4];case 162>=a:return[281,a-131,5];case 194>=a:return[282,a-163,5];case 226>=a:return[283,a-195,5];case 257>=a:return[284,a-227,5];case 258===a:return[285,a-258,0];default:throw"invalid length: "+a;}}var L=[],M,N;for(M=3;258>=M;M++)N=ba(M),L[M]=N[2]<<24|N[1]<<16|N[0]; -var ca=r?new Uint32Array(L):L; -K.prototype.A=function(a){switch(!0){case 1===a:a=[0,a-1,0];break;case 2===a:a=[1,a-2,0];break;case 3===a:a=[2,a-3,0];break;case 4===a:a=[3,a-4,0];break;case 6>=a:a=[4,a-5,1];break;case 8>=a:a=[5,a-7,1];break;case 12>=a:a=[6,a-9,2];break;case 16>=a:a=[7,a-13,2];break;case 24>=a:a=[8,a-17,3];break;case 32>=a:a=[9,a-25,3];break;case 48>=a:a=[10,a-33,4];break;case 64>=a:a=[11,a-49,4];break;case 96>=a:a=[12,a-65,5];break;case 128>=a:a=[13,a-97,5];break;case 192>=a:a=[14,a-129,6];break;case 256>=a:a=[15, -a-193,6];break;case 384>=a:a=[16,a-257,7];break;case 512>=a:a=[17,a-385,7];break;case 768>=a:a=[18,a-513,8];break;case 1024>=a:a=[19,a-769,8];break;case 1536>=a:a=[20,a-1025,9];break;case 2048>=a:a=[21,a-1537,9];break;case 3072>=a:a=[22,a-2049,10];break;case 4096>=a:a=[23,a-3073,10];break;case 6144>=a:a=[24,a-4097,11];break;case 8192>=a:a=[25,a-6145,11];break;case 12288>=a:a=[26,a-8193,12];break;case 16384>=a:a=[27,a-12289,12];break;case 24576>=a:a=[28,a-16385,13];break;case 32768>=a:a=[29,a-24577, -13];break;default:throw"invalid distance";}return a};K.prototype.I=function(){var a=this.r,d=[],b=0,f;f=ca[this.length];d[b++]=f&65535;d[b++]=f>>16&255;d[b++]=f>>24;f=this.A(a);d[b++]=f[0];d[b++]=f[1];d[b++]=f[2];return d}; -G.prototype.p=function(a){function d(a,b){var c=a.I(),d,e;d=0;for(e=c.length;d=e;)h[e++]=0;for(e=0;29>=e;)p[e++]=0}h[256]=1;b=0;for(f=a.length;b=f){k&&d(k,-1);e=0;for(c=f-b;eg&&d+gc&&(e=f,c=g);if(258===g)break}return new K(c,d-e)}; -G.prototype.B=function(a,d,b,f){var e=new (r?Uint32Array:Array)(a+b),c,g,i=new (r?Uint32Array:Array)(316),k=new (r?Uint8Array:Array)(19);for(c=g=0;ca)for(;0a?a:138,f>a-3&&f=f?(i[b++]=17,i[b++]=f-3,k[17]++):(i[b++]=18,i[b++]=f-11,k[18]++),a-=f;else if(i[b++]=e[c],k[e[c]]++, -a--,3>a)for(;0a?a:6,f>a-3&&f2*e[h-1]+c[h]&&(e[h]=2*e[h-1]+c[h]),i[h]=Array(e[h]),k[h]=Array(e[h]);for(l=0;la[l]?(i[h][m]=b,k[h][m]=d,p+=2):(i[h][m]=a[l],k[h][m]=l,++l);n[h]=0;1===c[h]&&f(h)}return g}; -G.prototype.i=function(a){var d=new (r?Uint16Array:Array)(a.length),b=[],f=[],e=0,c,g,i;c=0;for(g=a.length;c1<e)throw"undercommitted";c=0;for(g=a.length;c>>=1}return d};function O(a,d){this.input=a;this.c=this.n=0;this.d={};if(d&&(d.flags&&(this.d=d.flags),"string"===typeof d.filename&&(this.filename=d.filename),"string"===typeof d.comment&&(this.comment=d.comment),d.deflateOptions))this.e=d.deflateOptions;this.e||(this.e={})} -O.prototype.h=function(){var a,d,b,f,e,c=new (r?Uint8Array:Array)(32768);b=0;var g=this.input,i=this.n;d=this.filename;var k=this.comment;c[b++]=31;c[b++]=139;c[b++]=8;a=0;this.d.fname&&(a|=da);this.d.fcomment&&(a|=ea);this.d.fhcrc&&(a|=fa);c[b++]=a;a=(Date.now?Date.now():+new Date)/1E3|0;c[b++]=a&255;c[b++]=a>>>8&255;c[b++]=a>>>16&255;c[b++]=a>>>24&255;c[b++]=0;c[b++]=ga;if(void 0!==this.d.fname){f=0;for(e=d.length;f>>8&255),c[b++]=a&255;c[b++]=0}if(this.d.comment){f= -0;for(e=k.length;f>>8&255),c[b++]=a&255;c[b++]=0}this.d.fhcrc&&(d=B.k(c,0,b)&65535,c[b++]=d&255,c[b++]=d>>>8&255);this.e.outputBuffer=c;this.e.outputIndex=b;b=new G(g,this.e);c=b.h();b=b.c;r&&(b+8>c.buffer.byteLength?(this.b=new Uint8Array(b+8),this.b.set(new Uint8Array(c.buffer)),c=this.b):c=new Uint8Array(c.buffer));d=B.k(g);c[b++]=d&255;c[b++]=d>>>8&255;c[b++]=d>>>16&255;c[b++]=d>>>24&255;e=g.length;c[b++]=e&255;c[b++]=e>>>8&255;c[b++]=e>>>16&255;c[b++]= -e>>>24&255;this.n=i;r&&b=Q?8:255>=Q?9:279>=Q?7:8;F(P);var S=new (r?Uint8Array:Array)(30),T,U;T=0;for(U=S.length;T=W?8:255>=W?9:279>=W?7:8;F(V);var Y=new (r?Uint8Array:Array)(30),Z,$;Z=0;for($=Y.length;Z<$;++Z)Y[Z]=5;F(Y);}).call(this); +(function() {'use strict';var k=void 0,y=!0,ca=this;function da(a,c){var b=a.split("."),g=ca;!(b[0]in g)&&g.execScript&&g.execScript("var "+b[0]);for(var e;b.length&&(e=b.shift());)!b.length&&c!==k?g[e]=c:g=g[e]?g[e]:g[e]={}};var E="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Uint32Array;function G(a,c){this.index="number"===typeof c?c:0;this.f=0;this.buffer=a instanceof(E?Uint8Array:Array)?a:new (E?Uint8Array:Array)(32768);if(2*this.buffer.length<=this.index)throw Error("invalid index");this.buffer.length<=this.index&&ea(this)}function ea(a){var c=a.buffer,b,g=c.length,e=new (E?Uint8Array:Array)(g<<1);if(E)e.set(c);else for(b=0;b>>8&255]<<16|O[a>>>16&255]<<8|O[a>>>24&255])>>32-c:O[a]>>8-c);if(8>c+f)l=l<>c-m-1&1,8===++f&&(f=0,g[e++]=O[l],l=0,e===g.length&&(g=ea(this)));g[e]=l;this.buffer=g;this.f=f;this.index=e};G.prototype.finish=function(){var a=this.buffer,c=this.index,b;0P;++P){for(var R=P,S=R,ia=7,R=R>>>1;R;R>>>=1)S<<=1,S|=R&1,--ia;ha[P]=(S<>>0}var O=ha;var U={h:function(a,c,b){return U.update(a,0,c,b)},update:function(a,c,b,g){for(var e=U.l,f="number"===typeof b?b:b=0,l="number"===typeof g?g:a.length,c=c^4294967295,f=l&7;f--;++b)c=c>>>8^e[(c^a[b])&255];for(f=l>>3;f--;b+=8)c=c>>>8^e[(c^a[b])&255],c=c>>>8^e[(c^a[b+1])&255],c=c>>>8^e[(c^a[b+2])&255],c=c>>>8^e[(c^a[b+3])&255],c=c>>>8^e[(c^a[b+4])&255],c=c>>>8^e[(c^a[b+5])&255],c=c>>>8^e[(c^a[b+6])&255],c=c>>>8^e[(c^a[b+7])&255];return(c^4294967295)>>>0}},ja=U,ka,ma=[0,1996959894,3993919788,2567524794, +124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304, +3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486, +2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580, +2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221, +2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918E3,2847714899,3736837829,1202900863, +817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];ka=E?new Uint32Array(ma):ma;ja.l=ka;function na(a){this.buffer=new (E?Uint16Array:Array)(2*a);this.length=0}na.prototype.getParent=function(a){return 2*((a-2)/4|0)};na.prototype.push=function(a,c){var b,g,e=this.buffer,f;b=this.length;e[this.length++]=c;for(e[this.length++]=a;0e[g])f=e[b],e[b]=e[g],e[g]=f,f=e[b+1],e[b+1]=e[g+1],e[g+1]=f,b=g;else break;return this.length}; +na.prototype.pop=function(){var a,c,b=this.buffer,g,e,f;c=b[0];a=b[1];this.length-=2;b[0]=b[this.length];b[1]=b[this.length+1];for(f=0;;){e=2*f+2;if(e>=this.length)break;e+2b[e]&&(e+=2);if(b[e]>b[f])g=b[f],b[f]=b[e],b[e]=g,g=b[f+1],b[f+1]=b[e+1],b[e+1]=g;else break;f=e}return{index:a,value:c,length:this.length}};function pa(a){var c=a.length,b=0,g=Number.POSITIVE_INFINITY,e,f,l,m,h,d,r,n,j;for(n=0;nb&&(b=a[n]),a[n]>=1;for(j=d;jW;W++)switch(y){case 143>=W:V.push([W+48,8]);break;case 255>=W:V.push([W-144+400,9]);break;case 279>=W:V.push([W-256+0,7]);break;case 287>=W:V.push([W-280+192,8]);break;default:throw"invalid literal: "+W;} +qa.prototype.g=function(){var a,c,b,g,e=this.input;switch(this.i){case 0:b=0;for(g=e.length;b>>8&255;j[q++]=d&255;j[q++]=d>>>8&255;if(E)j.set(f,q),q+=f.length,j=j.subarray(0,q);else{r=0;for(n=f.length;ru)for(;0u?u:138,F>u-3&&F=F?(J[H++]=17,J[H++]=F-3,M[17]++):(J[H++]=18,J[H++]=F-11,M[18]++),u-=F;else if(J[H++]=K[t],M[K[t]]++,u--,3>u)for(;0u?u:6,F>u-3&&FD;D++)la[D]=fa[Z[D]];for(A=19;4=a:return[265,a-11,1];case 14>=a:return[266,a-13,1];case 16>=a:return[267,a-15,1];case 18>=a:return[268,a-17,1];case 22>=a:return[269,a-19,2];case 26>=a:return[270,a-23,2];case 30>=a:return[271,a-27,2];case 34>=a:return[272,a- +31,2];case 42>=a:return[273,a-35,3];case 50>=a:return[274,a-43,3];case 58>=a:return[275,a-51,3];case 66>=a:return[276,a-59,3];case 82>=a:return[277,a-67,4];case 98>=a:return[278,a-83,4];case 114>=a:return[279,a-99,4];case 130>=a:return[280,a-115,4];case 162>=a:return[281,a-131,5];case 194>=a:return[282,a-163,5];case 226>=a:return[283,a-195,5];case 257>=a:return[284,a-227,5];case 258===a:return[285,a-258,0];default:throw"invalid length: "+a;}}var ya=[],xa,za; +for(xa=3;258>=xa;xa++)za=wa(),ya[xa]=za[2]<<24|za[1]<<16|za[0];var Aa=E?new Uint32Array(ya):ya; +function sa(a,c){function b(a,c){var b=a.m,e=[],f=0,g;g=Aa[a.length];e[f++]=g&65535;e[f++]=g>>16&255;e[f++]=g>>24;var d;switch(y){case 1===b:d=[0,b-1,0];break;case 2===b:d=[1,b-2,0];break;case 3===b:d=[2,b-3,0];break;case 4===b:d=[3,b-4,0];break;case 6>=b:d=[4,b-5,1];break;case 8>=b:d=[5,b-7,1];break;case 12>=b:d=[6,b-9,2];break;case 16>=b:d=[7,b-13,2];break;case 24>=b:d=[8,b-17,3];break;case 32>=b:d=[9,b-25,3];break;case 48>=b:d=[10,b-33,4];break;case 64>=b:d=[11,b-49,4];break;case 96>=b:d=[12,b- +65,5];break;case 128>=b:d=[13,b-97,5];break;case 192>=b:d=[14,b-129,6];break;case 256>=b:d=[15,b-193,6];break;case 384>=b:d=[16,b-257,7];break;case 512>=b:d=[17,b-385,7];break;case 768>=b:d=[18,b-513,8];break;case 1024>=b:d=[19,b-769,8];break;case 1536>=b:d=[20,b-1025,9];break;case 2048>=b:d=[21,b-1537,9];break;case 3072>=b:d=[22,b-2049,10];break;case 4096>=b:d=[23,b-3073,10];break;case 6144>=b:d=[24,b-4097,11];break;case 8192>=b:d=[25,b-6145,11];break;case 12288>=b:d=[26,b-8193,12];break;case 16384>= +b:d=[27,b-12289,12];break;case 24576>=b:d=[28,b-16385,13];break;case 32768>=b:d=[29,b-24577,13];break;default:throw"invalid distance";}g=d;e[f++]=g[0];e[f++]=g[1];e[f++]=g[2];var h,i;h=0;for(i=e.length;h=f;)s[f++]=0;for(f=0;29>=f;)w[f++]=0}s[256]=1;g=0;for(e=c.length;g=e){n&&b(n,-1);f=0;for(l=e-g;fp&&g+pi&&(z=v,i=p);if(258===p)break}r=new va(i,g-z);n?n.length2*j[i-1]+q[i]&&(j[i]=2*j[i-1]+q[i]),s[i]=Array(j[i]),w[i]=Array(j[i]);for(z=0;zm[z]?(s[i][p]=B,w[i][p]=n,A+=2): +(s[i][p]=m[z],w[i][p]=z,++z);I[i]=0;1===q[i]&&b(i)}h=C;d=0;for(r=l.length;d1<e)throw"undercommitted";f=0;for(l=a.length;f>>=1}return c};function Ba(a,c){this.input=a;this.c=this.j=0;this.d={};c&&(c.flags&&(this.d=c.flags),"string"===typeof c.filename&&(this.filename=c.filename),"string"===typeof c.comment&&(this.comment=c.comment),c.deflateOptions&&(this.e=c.deflateOptions));this.e||(this.e={})} +Ba.prototype.g=function(){var a,c,b,g,e,f,l,m,h=new (E?Uint8Array:Array)(32768),d=0,r=this.input,n=this.j,j=this.filename,q=this.comment;h[d++]=31;h[d++]=139;h[d++]=8;a=0;this.d.fname&&(a|=Ca);this.d.fcomment&&(a|=Qa);this.d.fhcrc&&(a|=Ra);h[d++]=a;c=(Date.now?Date.now():+new Date)/1E3|0;h[d++]=c&255;h[d++]=c>>>8&255;h[d++]=c>>>16&255;h[d++]=c>>>24&255;h[d++]=0;h[d++]=Sa;if(this.d.fname!==k){l=0;for(m=j.length;l>>8&255),h[d++]=f&255;h[d++]=0}if(this.d.comment){l= +0;for(m=q.length;l>>8&255),h[d++]=f&255;h[d++]=0}this.d.fhcrc&&(b=U.h(h,0,d)&65535,h[d++]=b&255,h[d++]=b>>>8&255);this.e.outputBuffer=h;this.e.outputIndex=d;e=new qa(r,this.e);h=e.g();d=e.c;E&&(d+8>h.buffer.byteLength?(this.b=new Uint8Array(d+8),this.b.set(new Uint8Array(h.buffer)),h=this.b):h=new Uint8Array(h.buffer));g=U.h(r);h[d++]=g&255;h[d++]=g>>>8&255;h[d++]=g>>>16&255;h[d++]=g>>>24&255;m=r.length;h[d++]=m&255;h[d++]=m>>>8&255;h[d++]=m>>>16&255;h[d++]= +m>>>24&255;this.j=n;E&&d=X?8:255>=X?9:279>=X?7:8;pa(Ya);var $a=new (E?Uint8Array:Array)(30),ab,bb;ab=0;for(bb=$a.length;ab=Y?8:255>=Y?9:279>=Y?7:8;pa(hb);var jb=new (E?Uint8Array:Array)(30),kb,lb;kb=0;for(lb=jb.length;kbl;++l){for(var ca=ba,da=l,n=l,o=n,q=7,n=n>>>1;n;n>>>=1)o<<=1,o|=n&1,--q;ca[da]=(o<>>0};var ea=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759, +(function() {'use strict';function i(a){throw a;}var l=void 0,aa=this;function p(a,d){var b=a.split("."),c=aa;!(b[0]in c)&&c.execScript&&c.execScript("var "+b[0]);for(var f;b.length&&(f=b.shift());)!b.length&&d!==l?c[f]=d:c=c[f]?c[f]:c[f]={}};var q="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Uint32Array;new (q?Uint8Array:Array)(256);var r;for(r=0;256>r;++r)for(var t=r,ba=7,t=t>>>1;t;t>>>=1)--ba;var ca=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759, 2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977, 2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755, 2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956, 3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270, -936918E3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];j&&new Uint32Array(ea);function r(a){var b=a.length,d=0,c=Number.POSITIVE_INFINITY,f,e,h,i,p,w,x,k,m;for(k=0;kd&&(d=a[k]),a[k]>=1;for(m=w;mt;t++)switch(!0){case 143>=t:s.push([t+48,8]);break;case 255>=t:s.push([t-144+400,9]);break;case 279>=t:s.push([t-256+0,7]);break;case 287>=t:s.push([t-280+192,8]);break;default:throw"invalid literal: "+t;}function u(a,b){this.length=a;this.z=b} -function fa(a){switch(!0){case 3===a:return[257,a-3,0];case 4===a:return[258,a-4,0];case 5===a:return[259,a-5,0];case 6===a:return[260,a-6,0];case 7===a:return[261,a-7,0];case 8===a:return[262,a-8,0];case 9===a:return[263,a-9,0];case 10===a:return[264,a-10,0];case 12>=a:return[265,a-11,1];case 14>=a:return[266,a-13,1];case 16>=a:return[267,a-15,1];case 18>=a:return[268,a-17,1];case 22>=a:return[269,a-19,2];case 26>=a:return[270,a-23,2];case 30>=a:return[271,a-27,2];case 34>=a:return[272,a-31,2];case 42>= -a:return[273,a-35,3];case 50>=a:return[274,a-43,3];case 58>=a:return[275,a-51,3];case 66>=a:return[276,a-59,3];case 82>=a:return[277,a-67,4];case 98>=a:return[278,a-83,4];case 114>=a:return[279,a-99,4];case 130>=a:return[280,a-115,4];case 162>=a:return[281,a-131,5];case 194>=a:return[282,a-163,5];case 226>=a:return[283,a-195,5];case 257>=a:return[284,a-227,5];case 258===a:return[285,a-258,0];default:throw"invalid length: "+a;}}var v=[],y,z;for(y=3;258>=y;y++)z=fa(y),v[y]=z[2]<<24|z[1]<<16|z[0]; -var ga=j?new Uint32Array(v):v; -u.prototype.D=function(a){switch(!0){case 1===a:a=[0,a-1,0];break;case 2===a:a=[1,a-2,0];break;case 3===a:a=[2,a-3,0];break;case 4===a:a=[3,a-4,0];break;case 6>=a:a=[4,a-5,1];break;case 8>=a:a=[5,a-7,1];break;case 12>=a:a=[6,a-9,2];break;case 16>=a:a=[7,a-13,2];break;case 24>=a:a=[8,a-17,3];break;case 32>=a:a=[9,a-25,3];break;case 48>=a:a=[10,a-33,4];break;case 64>=a:a=[11,a-49,4];break;case 96>=a:a=[12,a-65,5];break;case 128>=a:a=[13,a-97,5];break;case 192>=a:a=[14,a-129,6];break;case 256>=a:a=[15, -a-193,6];break;case 384>=a:a=[16,a-257,7];break;case 512>=a:a=[17,a-385,7];break;case 768>=a:a=[18,a-513,8];break;case 1024>=a:a=[19,a-769,8];break;case 1536>=a:a=[20,a-1025,9];break;case 2048>=a:a=[21,a-1537,9];break;case 3072>=a:a=[22,a-2049,10];break;case 4096>=a:a=[23,a-3073,10];break;case 6144>=a:a=[24,a-4097,11];break;case 8192>=a:a=[25,a-6145,11];break;case 12288>=a:a=[26,a-8193,12];break;case 16384>=a:a=[27,a-12289,12];break;case 24576>=a:a=[28,a-16385,13];break;case 32768>=a:a=[29,a-24577, -13];break;default:throw"invalid distance";}return a};u.prototype.K=function(){var a=this.z,b=[],d=0,c;c=ga[this.length];b[d++]=c&65535;b[d++]=c>>16&255;b[d++]=c>>24;c=this.D(a);b[d++]=c[0];b[d++]=c[1];b[d++]=c[2];return b};function A(a,b){this.i=[];this.j=32768;this.e=this.g=this.a=this.n=0;this.input=j?new Uint8Array(a):a;this.o=!1;this.k=B;this.t=!1;if(b||!(b={}))if(b.index&&(this.a=b.index),b.bufferSize&&(this.j=b.bufferSize),b.bufferType&&(this.k=b.bufferType),b.resize)this.t=b.resize;switch(this.k){case C:this.b=32768;this.c=new (j?Uint8Array:Array)(32768+this.j+258);break;case B:this.b=0;this.c=new (j?Uint8Array:Array)(this.j);this.f=this.C;this.p=this.A;this.l=this.B;break;default:throw Error("invalid inflate mode"); -}}var C=0,B=1,D={v:C,u:B};A.prototype.m=function(){for(;!this.o;)this.F();return this.p()}; -var E=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],F=j?new Uint16Array(E):E,G=[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,258,258],H=j?new Uint16Array(G):G,I=[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],J=j?new Uint8Array(I):I,K=[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],L=j?new Uint16Array(K):K,M=[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],N=j?new Uint8Array(M):M,O=new (j?Uint8Array:Array)(288),P,Q;P=0;for(Q=O.length;P=P?8:255>=P?9:279>=P?7:8;var ha=r(O),R=new (j?Uint8Array:Array)(30),S,T;S=0;for(T=R.length;S>>=1;switch(a){case 0:this.I();break;case 1:this.H();break;case 2:this.G();break;default:throw Error("unknown BTYPE: "+a);}}; -A.prototype.d=function(a){for(var b=this.g,d=this.e,c=this.input,f=this.a,e;d>>a;this.e=d-a;this.a=f;return e};A.prototype.h=function(a){for(var b=this.g,d=this.e,c=this.input,f=this.a,e=a[0],a=a[1],h;d>>16;this.g=b>>e;this.e=d-e;this.a=f;return c&65535}; -A.prototype.I=function(){var a=this.input,b=this.a,d=this.c,c=this.b,f,e,h,i=d.length;this.e=this.g=0;f=a[b++];if(void 0===f)throw Error("invalid uncompressed block header: LEN (first byte)");e=f;f=a[b++];if(void 0===f)throw Error("invalid uncompressed block header: LEN (second byte)");e|=f<<8;f=a[b++];if(void 0===f)throw Error("invalid uncompressed block header: NLEN (first byte)");h=f;f=a[b++];if(void 0===f)throw Error("invalid uncompressed block header: NLEN (second byte)");if(e===~(h|f<<8))throw Error("invalid uncompressed block header: length verify"); -if(b+e>a.length)throw Error("input buffer is broken");switch(this.k){case C:for(;c+e>d.length;){f=i-c;e-=f;if(j)d.set(a.subarray(b,b+f),c),c+=f,b+=f;else for(;f--;)d[c++]=a[b++];this.b=c;d=this.f();c=this.b}break;case B:for(;c+e>d.length;)d=this.f({r:2});break;default:throw Error("invalid inflate mode");}if(j)d.set(a.subarray(b,b+e),c),c+=e,b+=e;else for(;e--;)d[c++]=a[b++];this.a=b;this.b=c;this.c=d};A.prototype.H=function(){this.l(ha,ia)}; -A.prototype.G=function(){function a(a,d,c){var b,e,f;for(f=0;fe)c>=f&&(this.b=c,d=this.f(),c=this.b),d[c++]=e;else{e-=257;i=H[e];0=f&&(this.b=c,d=this.f(),c=this.b);for(;i--;)d[c]=d[c++-h]}for(;8<=this.e;)this.e-=8,this.a--;this.b=c}; -A.prototype.B=function(a,b){var d=this.c,c=this.b;this.q=a;for(var f=d.length,e,h,i;256!==(e=this.h(a));)if(256>e)c>=f&&(d=this.f(),f=d.length),d[c++]=e;else{e-=257;i=H[e];0f&&(d=this.f(),f=d.length);for(;i--;)d[c]=d[c++-h]}for(;8<=this.e;)this.e-=8,this.a--;this.b=c}; -A.prototype.f=function(){var a=new (j?Uint8Array:Array)(this.b-32768),b=this.b-32768,d,c,f=this.c;if(j)a.set(f.subarray(32768,a.length));else{d=0;for(c=a.length;dd;++d)f[d]=f[b+d];this.b=32768;return f}; -A.prototype.C=function(a){var b=this.input.length/this.a+1|0,d=this.input,c=this.c;a&&("number"===typeof a.r&&(b=a.r),"number"===typeof a.w&&(b+=a.w));2>b?(a=(d.length-this.a)/this.q[2],a=258*(a/2)|0,a=ab&&(this.c.length=b),a=this.c);return this.buffer=a};function U(a,b){var d,c;this.input=a;this.a=0;if(b||!(b={}))if(b.index&&(this.a=b.index),b.verify)this.J=b.verify;d=a[this.a++];c=a[this.a++];switch(d&15){case V:this.method=V;break;default:throw Error("unsupported compression method");}if(0!==((d<<8)+c)%31)throw Error("invalid fcheck flag:"+((d<<8)+c)%31);if(c&32)throw Error("fdict flag is not supported");this.s=new A(a,{index:this.a,bufferSize:b.bufferSize,bufferType:b.bufferType,resize:b.resize})} -U.prototype.m=function(){var a=this.input,b;b=this.s.m();this.a=this.s.a;if(this.J){var a=a[this.a++]<<24|a[this.a++]<<16|a[this.a++]<<8|a[this.a++],d=b;if("string"===typeof d){var d=d.split(""),c,f;c=0;for(f=d.length;c>>0}c=1;f=0;for(var e=d.length,h,i=0;0>>0)throw Error("invalid adler-32 checksum");}return b};g("Zlib.Inflate",U,void 0);g("Zlib.Inflate.BufferType",D,void 0); -D.ADAPTIVE=D.u;D.BLOCK=D.v;g("Zlib.Inflate.prototype.decompress",U.prototype.m,void 0);var ja=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];j&&new Uint16Array(ja);var ka=[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,258,258];j&&new Uint16Array(ka);var la=[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];j&&new Uint8Array(la);var ma=[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];j&&new Uint16Array(ma); -var na=[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];j&&new Uint8Array(na);var W=new (j?Uint8Array:Array)(288),X,Y;X=0;for(Y=W.length;X=X?8:255>=X?9:279>=X?7:8;r(W);var Z=new (j?Uint8Array:Array)(30),$,oa;$=0;for(oa=Z.length;$b&&(b=a[m]),a[m]>=1;for(s=k;sw;w++)switch(!0){case 143>=w:v.push([w+48,8]);break;case 255>=w:v.push([w-144+400,9]);break;case 279>=w:v.push([w-256+0,7]);break;case 287>=w:v.push([w-280+192,8]);break;default:i("invalid literal: "+w)} +function da(){var a=x;switch(!0){case 3===a:return[257,a-3,0];case 4===a:return[258,a-4,0];case 5===a:return[259,a-5,0];case 6===a:return[260,a-6,0];case 7===a:return[261,a-7,0];case 8===a:return[262,a-8,0];case 9===a:return[263,a-9,0];case 10===a:return[264,a-10,0];case 12>=a:return[265,a-11,1];case 14>=a:return[266,a-13,1];case 16>=a:return[267,a-15,1];case 18>=a:return[268,a-17,1];case 22>=a:return[269,a-19,2];case 26>=a:return[270,a-23,2];case 30>=a:return[271,a-27,2];case 34>=a:return[272,a- +31,2];case 42>=a:return[273,a-35,3];case 50>=a:return[274,a-43,3];case 58>=a:return[275,a-51,3];case 66>=a:return[276,a-59,3];case 82>=a:return[277,a-67,4];case 98>=a:return[278,a-83,4];case 114>=a:return[279,a-99,4];case 130>=a:return[280,a-115,4];case 162>=a:return[281,a-131,5];case 194>=a:return[282,a-163,5];case 226>=a:return[283,a-195,5];case 257>=a:return[284,a-227,5];case 258===a:return[285,a-258,0];default:i("invalid length: "+a)}}var y=[],x,z; +for(x=3;258>=x;x++)z=da(),y[x]=z[2]<<24|z[1]<<16|z[0];q&&new Uint32Array(y);function A(a,d){this.g=[];this.h=32768;this.d=this.f=this.a=this.l=0;this.input=q?new Uint8Array(a):a;this.m=!1;this.i=B;this.r=!1;if(d||!(d={}))d.index&&(this.a=d.index),d.bufferSize&&(this.h=d.bufferSize),d.bufferType&&(this.i=d.bufferType),d.resize&&(this.r=d.resize);switch(this.i){case C:this.b=32768;this.c=new (q?Uint8Array:Array)(32768+this.h+258);break;case B:this.b=0;this.c=new (q?Uint8Array:Array)(this.h);this.e=this.z;this.n=this.v;this.j=this.w;break;default:i(Error("invalid inflate mode"))}} +var C=0,B=1,D={t:C,s:B}; +A.prototype.k=function(){for(;!this.m;){var a=E(this,3);a&1&&(this.m=!0);a>>>=1;switch(a){case 0:var d=this.input,b=this.a,c=this.c,f=this.b,e=l,g=l,h=l,j=c.length,k=l;this.d=this.f=0;e=d[b++];e===l&&i(Error("invalid uncompressed block header: LEN (first byte)"));g=e;e=d[b++];e===l&&i(Error("invalid uncompressed block header: LEN (second byte)"));g|=e<<8;e=d[b++];e===l&&i(Error("invalid uncompressed block header: NLEN (first byte)"));h=e;e=d[b++];e===l&&i(Error("invalid uncompressed block header: NLEN (second byte)"));h|= +e<<8;g===~h&&i(Error("invalid uncompressed block header: length verify"));b+g>d.length&&i(Error("input buffer is broken"));switch(this.i){case C:for(;f+g>c.length;){k=j-f;g-=k;if(q)c.set(d.subarray(b,b+k),f),f+=k,b+=k;else for(;k--;)c[f++]=d[b++];this.b=f;c=this.e();f=this.b}break;case B:for(;f+g>c.length;)c=this.e({p:2});break;default:i(Error("invalid inflate mode"))}if(q)c.set(d.subarray(b,b+g),f),f+=g,b+=g;else for(;g--;)c[f++]=d[b++];this.a=b;this.b=f;this.c=c;break;case 1:this.j(ea,fa);break; +case 2:ga(this);break;default:i(Error("unknown BTYPE: "+a))}}return this.n()}; +var F=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],G=q?new Uint16Array(F):F,H=[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,258,258],I=q?new Uint16Array(H):H,J=[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],K=q?new Uint8Array(J):J,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],M=q?new Uint16Array(L):L,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],O=q?new Uint8Array(N):N,P=new (q?Uint8Array:Array)(288),Q,R;Q=0;for(R=P.length;Q=Q?8:255>=Q?9:279>=Q?7:8;var ea=u(P),S=new (q?Uint8Array:Array)(30),T,U;T=0;for(U=S.length;T>>d;a.d=c-d;a.a=e;return g} +function V(a,d){for(var b=a.f,c=a.d,f=a.input,e=a.a,g=d[0],h=d[1],j,k,n;c>>16;a.f=b>>n;a.d=c-n;a.a=e;return k&65535} +function ga(a){function d(a,b,c){var d,e,f,g;for(g=0;ge)c>=f&&(this.b=c,b=this.e(),c=this.b),b[c++]=e;else{g=e-257;j=I[g];0=f&&(this.b=c,b=this.e(),c=this.b);for(;j--;)b[c]=b[c++-h]}for(;8<=this.d;)this.d-=8,this.a--;this.b=c}; +A.prototype.w=function(a,d){var b=this.c,c=this.b;this.o=a;for(var f=b.length,e,g,h,j;256!==(e=V(this,a));)if(256>e)c>=f&&(b=this.e(),f=b.length),b[c++]=e;else{g=e-257;j=I[g];0f&&(b=this.e(),f=b.length);for(;j--;)b[c]=b[c++-h]}for(;8<=this.d;)this.d-=8,this.a--;this.b=c}; +A.prototype.e=function(){var a=new (q?Uint8Array:Array)(this.b-32768),d=this.b-32768,b,c,f=this.c;if(q)a.set(f.subarray(32768,a.length));else{b=0;for(c=a.length;bb;++b)f[b]=f[d+b];this.b=32768;return f}; +A.prototype.z=function(a){var d,b=this.input.length/this.a+1|0,c,f,e,g=this.input,h=this.c;a&&("number"===typeof a.p&&(b=a.p),"number"===typeof a.u&&(b+=a.u));2>b?(c=(g.length-this.a)/this.o[2],e=258*(c/2)|0,f=ed&&(this.c.length=d),a=this.c);return this.buffer=a};function W(a,d){var b,c;this.input=a;this.a=0;if(d||!(d={}))d.index&&(this.a=d.index),d.verify&&(this.A=d.verify);b=a[this.a++];c=a[this.a++];switch(b&15){case ha:this.method=ha;break;default:i(Error("unsupported compression method"))}0!==((b<<8)+c)%31&&i(Error("invalid fcheck flag:"+((b<<8)+c)%31));c&32&&i(Error("fdict flag is not supported"));this.q=new A(a,{index:this.a,bufferSize:d.bufferSize,bufferType:d.bufferType,resize:d.resize})} +W.prototype.k=function(){var a=this.input,d,b;d=this.q.k();this.a=this.q.a;if(this.A){b=(a[this.a++]<<24|a[this.a++]<<16|a[this.a++]<<8|a[this.a++])>>>0;var c=d;if("string"===typeof c){var f=c.split(""),e,g;e=0;for(g=f.length;e>>0;c=f}for(var h=1,j=0,k=c.length,n,m=0;0>>0&&i(Error("invalid adler-32 checksum"))}return d};p("Zlib.Inflate",W);p("Zlib.Inflate.BufferType",D); +D.ADAPTIVE=D.s;D.BLOCK=D.t;p("Zlib.Inflate.prototype.decompress",W.prototype.k);var ia=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];q&&new Uint16Array(ia);var ja=[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,258,258];q&&new Uint16Array(ja);var ka=[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];q&&new Uint8Array(ka);var la=[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];q&&new Uint16Array(la); +var ma=[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];q&&new Uint8Array(ma);var X=new (q?Uint8Array:Array)(288),Y,na;Y=0;for(na=X.length;Y=Y?8:255>=Y?9:279>=Y?7:8;u(X);var Z=new (q?Uint8Array:Array)(30),$,oa;$=0;for(oa=Z.length;$n;++n){for(var ba=aa,ca=n,o=n,r=o,s=7,o=o>>>1;o;o>>>=1)r<<=1,r|=o&1,--s;ba[ca]=(r<>>0};var da=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759, +(function() {'use strict';var i=void 0,m=!0,aa=this;function q(a,c){var b=a.split("."),d=aa;!(b[0]in d)&&d.execScript&&d.execScript("var "+b[0]);for(var e;b.length&&(e=b.shift());)!b.length&&c!==i?d[e]=c:d=d[e]?d[e]:d[e]={}};var r="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Uint32Array;new (r?Uint8Array:Array)(256);var s;for(s=0;256>s;++s)for(var t=s,ba=7,t=t>>>1;t;t>>>=1)--ba;var ca=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759, 2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977, 2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755, 2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956, 3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270, -936918E3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];l&&new Uint32Array(da);function t(a){var c=a.length,b=0,d=Number.POSITIVE_INFINITY,e,g,h,i,p,q,x,k,m;for(k=0;kb&&(b=a[k]),a[k]>=1;for(m=q;mv;v++)switch(!0){case 143>=v:u.push([v+48,8]);break;case 255>=v:u.push([v-144+400,9]);break;case 279>=v:u.push([v-256+0,7]);break;case 287>=v:u.push([v-280+192,8]);break;default:throw"invalid literal: "+v;}function w(a,c){this.length=a;this.s=c} -function ea(a){switch(!0){case 3===a:return[257,a-3,0];case 4===a:return[258,a-4,0];case 5===a:return[259,a-5,0];case 6===a:return[260,a-6,0];case 7===a:return[261,a-7,0];case 8===a:return[262,a-8,0];case 9===a:return[263,a-9,0];case 10===a:return[264,a-10,0];case 12>=a:return[265,a-11,1];case 14>=a:return[266,a-13,1];case 16>=a:return[267,a-15,1];case 18>=a:return[268,a-17,1];case 22>=a:return[269,a-19,2];case 26>=a:return[270,a-23,2];case 30>=a:return[271,a-27,2];case 34>=a:return[272,a-31,2];case 42>= -a:return[273,a-35,3];case 50>=a:return[274,a-43,3];case 58>=a:return[275,a-51,3];case 66>=a:return[276,a-59,3];case 82>=a:return[277,a-67,4];case 98>=a:return[278,a-83,4];case 114>=a:return[279,a-99,4];case 130>=a:return[280,a-115,4];case 162>=a:return[281,a-131,5];case 194>=a:return[282,a-163,5];case 226>=a:return[283,a-195,5];case 257>=a:return[284,a-227,5];case 258===a:return[285,a-258,0];default:throw"invalid length: "+a;}}var y=[],z,A;for(z=3;258>=z;z++)A=ea(z),y[z]=A[2]<<24|A[1]<<16|A[0]; -var fa=l?new Uint32Array(y):y; -w.prototype.B=function(a){switch(!0){case 1===a:a=[0,a-1,0];break;case 2===a:a=[1,a-2,0];break;case 3===a:a=[2,a-3,0];break;case 4===a:a=[3,a-4,0];break;case 6>=a:a=[4,a-5,1];break;case 8>=a:a=[5,a-7,1];break;case 12>=a:a=[6,a-9,2];break;case 16>=a:a=[7,a-13,2];break;case 24>=a:a=[8,a-17,3];break;case 32>=a:a=[9,a-25,3];break;case 48>=a:a=[10,a-33,4];break;case 64>=a:a=[11,a-49,4];break;case 96>=a:a=[12,a-65,5];break;case 128>=a:a=[13,a-97,5];break;case 192>=a:a=[14,a-129,6];break;case 256>=a:a=[15, -a-193,6];break;case 384>=a:a=[16,a-257,7];break;case 512>=a:a=[17,a-385,7];break;case 768>=a:a=[18,a-513,8];break;case 1024>=a:a=[19,a-769,8];break;case 1536>=a:a=[20,a-1025,9];break;case 2048>=a:a=[21,a-1537,9];break;case 3072>=a:a=[22,a-2049,10];break;case 4096>=a:a=[23,a-3073,10];break;case 6144>=a:a=[24,a-4097,11];break;case 8192>=a:a=[25,a-6145,11];break;case 12288>=a:a=[26,a-8193,12];break;case 16384>=a:a=[27,a-12289,12];break;case 24576>=a:a=[28,a-16385,13];break;case 32768>=a:a=[29,a-24577, -13];break;default:throw"invalid distance";}return a};w.prototype.M=function(){var a=this.s,c=[],b=0,d;d=fa[this.length];c[b++]=d&65535;c[b++]=d>>16&255;c[b++]=d>>24;d=this.B(a);c[b++]=d[0];c[b++]=d[1];c[b++]=d[2];return c};var ga=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];l&&new Uint16Array(ga);var ha=[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,258,258];l&&new Uint16Array(ha);var ia=[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];l&&new Uint8Array(ia);var ja=[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];l&&new Uint16Array(ja); -var ka=[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];l&&new Uint8Array(ka);var B=new (l?Uint8Array:Array)(288),C,D;C=0;for(D=B.length;C=C?8:255>=C?9:279>=C?7:8;t(B);var E=new (l?Uint8Array:Array)(30),F,G;F=0;for(G=E.length;Fthis.H()&&(b=!0);break;case 2:case 3:switch(this.h){case 0:0>this.J()&&(b=!0);break;case 1:0>this.F()&&(b=!0);break;case 2:0>this.D()&&(b=!0)}break;case 4:case 5:switch(this.h){case 0:0>this.G()&&(b=!0);break;case 1:case 2:0>this.z()&&(b=!0)}break;case 6:this.o?b=!0:this.status=I}return this.w()}; -var J=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],K=l?new Uint16Array(J):J,L=[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,258,258],la=l?new Uint16Array(L):L,M=[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],N=l?new Uint8Array(M):M,O=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],ma=l?new Uint16Array(O):O,P=[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],Q=l?new Uint8Array(P):P,R=new (l?Uint8Array:Array)(288),S,T;S=0;for(T=R.length;S=S?8:255>=S?9:279>=S?7:8;var na=t(R),U=new (l?Uint8Array:Array)(30),V,W;V=0;for(W=U.length;V(a=this.e(3)))return Y(this),-1;a&1&&(this.o=!0);a>>>=1;switch(a){case 0:this.h=0;break;case 1:this.h=1;break;case 2:this.h=2;break;default:throw Error("unknown BTYPE: "+a);}this.status=2}; -H.prototype.e=function(a){for(var c=this.f,b=this.d,d=this.input,e=this.a,g;b>>a;this.d=b-a;this.a=e;return g};H.prototype.n=function(a){for(var c=this.f,b=this.d,d=this.input,e=this.a,g=a[0],a=a[1],h;b>>16;this.f=c>>g;this.d=b-g;this.a=e;return d&65535}; -H.prototype.J=function(){var a,c,b,d=this.input,e=this.a;this.status=3;a=d[e++];if(void 0===a)return-1;c=a;a=d[e++];if(void 0===a)return-1;c|=a<<8;a=d[e++];if(void 0===a)return-1;b=a;a=d[e++];if(void 0===a)return-1;if(c===~(b|a<<8))throw Error("invalid uncompressed block header: length verify");this.d=this.f=0;this.a=e;this.p=c;this.status=4}; -H.prototype.G=function(){var a=this.input,c=this.a,b=this.c,d=this.b,e=this.p;for(this.status=5;e--;){d===b.length&&(b=this.k());if(void 0===a[c])return this.a=c,this.b=d,this.p=e+1,-1;b[d++]=a[c++]}0>e&&(this.status=6);this.a=c;this.b=d;return 0};H.prototype.F=function(){this.status=3;this.m=na;this.q=oa;this.status=4;return 0};function X(a){a.C=a.a;a.u=a.d;a.t=a.f}function Y(a){a.a=a.C;a.d=a.u;a.f=a.t} -H.prototype.D=function(){var a,c,b,d=new (l?Uint8Array:Array)(K.length),e,g,h,i=0;this.status=3;X(this);a=this.e(5)+257;c=this.e(5)+1;b=this.e(4)+4;if(0>a||0>c||0>b)return Y(this),-1;try{for(var p=function(a,c,b){for(var d,e,g=0,g=0;gd)throw Error("not enough input");switch(d){case 16:if(0>(d=this.e(2)))throw Error("not enough input");for(d=3+d;d--;)b[g++]=e;break;case 17:if(0>(d=this.e(3)))throw Error("not enough input");for(d=3+d;d--;)b[g++]=0;e=0;break;case 18:if(0>(d=this.e(7)))throw Error("not enough input"); -for(d=11+d;d--;)b[g++]=0;e=0;break;default:e=b[g++]=d}}return b},q,i=0;i(q=this.e(3)))throw Error("not enough input");d[K[i]]=q}e=t(d);g=new (l?Uint8Array:Array)(a);h=new (l?Uint8Array:Array)(c);this.m=t(p.call(this,a,e,g));this.q=t(p.call(this,c,e,h))}catch(x){return Y(this),-1}this.status=4;return 0}; -H.prototype.z=function(){var a=this.c,c=this.b,b,d,e,g=this.m,h=this.q,i=a.length;for(this.status=5;;){X(this);b=this.n(g);if(0>b)return this.b=c,Y(this),-1;if(256===b)break;if(256>b)c===i&&(a=this.k(),i=a.length),a[c++]=b;else{d=b-257;e=la[d];if(0b)return this.b=c,Y(this),-1;e+=b}b=this.n(h);if(0>b)return this.b=c,Y(this),-1;d=ma[b];if(0b)return this.b=c,Y(this),-1;d+=b}c+e>=i&&(a=this.k(),i=a.length);for(;e--;)a[c]=a[c++-d];if(this.a===this.input.length)return this.b= -c,-1}}for(;8<=this.d;)this.d-=8,this.a--;this.b=c;this.status=6};H.prototype.k=function(a){var c=this.input.length/this.a+1|0,b=this.input,d=this.c;a&&("number"===typeof a.A&&(c=a.A),"number"===typeof a.r&&(c+=a.r));2>c?(a=(b.length-this.a)/this.m[2],a=258*(a/2)|0,a=athis.I())return new (l?Uint8Array:Array);a=this.i.j(this.input,this.a);this.a=this.i.a;return a};Z.prototype.l=function(){return this.i.l()}; -Z.prototype.I=function(){var a=this.a,c=this.input,b=c[a++],c=c[a++];if(void 0===b||void 0===c)return-1;switch(b&15){case $:this.method=$;break;default:throw Error("unsupported compression method");}if(0!==((b<<8)+c)%31)throw Error("invalid fcheck flag:"+((b<<8)+c)%31);if(c&32)throw Error("fdict flag is not supported");this.a=a};j("Zlib.InflateStream",Z,void 0);j("Zlib.InflateStream.prototype.decompress",Z.prototype.j,void 0);j("Zlib.InflateStream.prototype.getBytes",Z.prototype.l,void 0);var $=8;}).call(this); +936918E3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];r&&new Uint32Array(ca);function u(a){var c=a.length,b=0,d=Number.POSITIVE_INFINITY,e,f,g,h,j,l,k,n,p;for(n=0;nb&&(b=a[n]),a[n]>=1;for(p=l;pw;w++)switch(m){case 143>=w:v.push([w+48,8]);break;case 255>=w:v.push([w-144+400,9]);break;case 279>=w:v.push([w-256+0,7]);break;case 287>=w:v.push([w-280+192,8]);break;default:throw"invalid literal: "+w;} +function da(){var a=x;switch(m){case 3===a:return[257,a-3,0];case 4===a:return[258,a-4,0];case 5===a:return[259,a-5,0];case 6===a:return[260,a-6,0];case 7===a:return[261,a-7,0];case 8===a:return[262,a-8,0];case 9===a:return[263,a-9,0];case 10===a:return[264,a-10,0];case 12>=a:return[265,a-11,1];case 14>=a:return[266,a-13,1];case 16>=a:return[267,a-15,1];case 18>=a:return[268,a-17,1];case 22>=a:return[269,a-19,2];case 26>=a:return[270,a-23,2];case 30>=a:return[271,a-27,2];case 34>=a:return[272,a-31, +2];case 42>=a:return[273,a-35,3];case 50>=a:return[274,a-43,3];case 58>=a:return[275,a-51,3];case 66>=a:return[276,a-59,3];case 82>=a:return[277,a-67,4];case 98>=a:return[278,a-83,4];case 114>=a:return[279,a-99,4];case 130>=a:return[280,a-115,4];case 162>=a:return[281,a-131,5];case 194>=a:return[282,a-163,5];case 226>=a:return[283,a-195,5];case 257>=a:return[284,a-227,5];case 258===a:return[285,a-258,0];default:throw"invalid length: "+a;}}var y=[],x,z; +for(x=3;258>=x;x++)z=da(),y[x]=z[2]<<24|z[1]<<16|z[0];r&&new Uint32Array(y);var ea=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];r&&new Uint16Array(ea);var fa=[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,258,258];r&&new Uint16Array(fa);var ga=[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];r&&new Uint8Array(ga);var ha=[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];r&&new Uint16Array(ha); +var ia=[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];r&&new Uint8Array(ia);var A=new (r?Uint8Array:Array)(288),B,C;B=0;for(C=A.length;B=B?8:255>=B?9:279>=B?7:8;u(A);var D=new (r?Uint8Array:Array)(30),E,F;E=0;for(F=D.length;E(e=J(this,3)))K(this),d=-1;else{e&1&&(this.l=m);e>>>=1;switch(e){case 0:this.g=0;break;case 1:this.g=1;break;case 2:this.g=2;break;default:throw Error("unknown BTYPE: "+e);}this.status=2;d=i}0>d&&(b=m);break;case 2:case 3:switch(this.g){case 0:0>ja(this)&&(b=m);break;case 1:this.status=3;this.k=ka;this.n=la;this.status=4;break;case 2:0>ma(this)&& +(b=m)}break;case 4:case 5:switch(this.g){case 0:var f;a:{var g=this.input,h=this.a,j=this.c,l=this.b,k=this.m;for(this.status=5;k--;){l===j.length&&(j=L(this));if(g[h]===i){this.a=h;this.b=l;this.m=k+1;f=-1;break a}j[l++]=g[h++]}0>k&&(this.status=6);this.a=h;this.b=l;f=0}0>f&&(b=m);break;case 1:case 2:0>na(this)&&(b=m)}break;case 6:this.l?b=m:this.status=H}var n,p=this.b;this.s?r?(n=new Uint8Array(p),n.set(this.c.subarray(this.f,p))):n=this.c.slice(this.f,p):n=r?this.c.subarray(this.f,p):this.c.slice(this.f, +p);this.buffer=n;this.f=p;return this.buffer}; +var M=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],N=r?new Uint16Array(M):M,O=[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,258,258],oa=r?new Uint16Array(O):O,P=[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],Q=r?new Uint8Array(P):P,R=[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],pa=r?new Uint16Array(R):R,S=[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],T=r?new Uint8Array(S):S,U=new (r?Uint8Array:Array)(288),V,W;V=0;for(W=U.length;V=V?8:255>=V?9:279>=V?7:8;var ka=u(U),X=new (r?Uint8Array:Array)(30),Y,qa;Y=0;for(qa=X.length;Y>>c;a.d=d-c;a.a=f;return g} +function Z(a,c){for(var b=a.e,d=a.d,e=a.input,f=a.a,g=c[0],h=c[1],j,l,k;d>>16;a.e=b>>k;a.d=d-k;a.a=f;return l&65535}function ja(a){var c,b,d,e=a.input,f=a.a;a.status=3;c=e[f++];if(c===i)return-1;b=c;c=e[f++];if(c===i)return-1;b|=c<<8;c=e[f++];if(c===i)return-1;d=c;c=e[f++];if(c===i)return-1;if(b===~(d|c<<8))throw Error("invalid uncompressed block header: length verify");a.e=0;a.d=0;a.a=f;a.m=b;a.status=4} +function I(a){a.r=a.a;a.p=a.d;a.o=a.e}function K(a){a.a=a.r;a.d=a.p;a.e=a.o} +function ma(a){var c,b,d,e=new (r?Uint8Array:Array)(N.length),f,g,h,j=0;a.status=3;I(a);c=J(a,5)+257;b=J(a,5)+1;d=J(a,4)+4;if(0>c||0>b||0>d)return K(a),-1;try{for(var l=function(a,b,c){for(var d,e,f,g=0,h,g=0;gd)throw Error("not enough input");switch(d){case 16:if(0>(h=J(this,2)))throw Error("not enough input");for(f=3+h;f--;)c[g++]=e;break;case 17:if(0>(h=J(this,3)))throw Error("not enough input");for(f=3+h;f--;)c[g++]=0;e=0;break;case 18:if(0>(h=J(this,7)))throw Error("not enough input"); +for(f=11+h;f--;)c[g++]=0;e=0;break;default:e=c[g++]=d}}return c},k,j=0;j(k=J(a,3)))throw Error("not enough input");e[N[j]]=k}f=u(e);g=new (r?Uint8Array:Array)(c);h=new (r?Uint8Array:Array)(b);a.k=u(l.call(a,c,f,g));a.n=u(l.call(a,b,f,h))}catch(n){return K(a),-1}a.status=4;return 0} +function na(a){var c=a.c,b=a.b,d,e,f,g,h=a.k,j=a.n,l=c.length,k;for(a.status=5;;){I(a);d=Z(a,h);if(0>d)return a.b=b,K(a),-1;if(256===d)break;if(256>d)b===l&&(c=L(a),l=c.length),c[b++]=d;else{e=d-257;g=oa[e];if(0k)return a.b=b,K(a),-1;g+=k}d=Z(a,j);if(0>d)return a.b=b,K(a),-1;f=pa[d];if(0k)return a.b=b,K(a),-1;f+=k}b+g>=l&&(c=L(a),l=c.length);for(;g--;)c[b]=c[b++-f];if(a.a===a.input.length)return a.b=b,-1}}for(;8<=a.d;)a.d-=8,a.a--;a.b=b;a.status=6} +function L(a){var c,b=a.input.length/a.a+1|0,d,e,f,g=a.input,h=a.c;2>b?(d=(g.length-a.a)/a.k[2],f=258*(d/2)|0,e=fe}if(d)return new (r?Uint8Array:Array);c=this.h.i(this.input,this.a);this.a=this.h.a;return c};$.prototype.j=function(){return this.h.j()};q("Zlib.InflateStream",$);q("Zlib.InflateStream.prototype.decompress",$.prototype.i);q("Zlib.InflateStream.prototype.getBytes",$.prototype.j);var ra=8;}).call(this); diff --git a/bin/node-zlib.js b/bin/node-zlib.js index d60c559..edfb1bd 100644 --- a/bin/node-zlib.js +++ b/bin/node-zlib.js @@ -1,58 +1,55 @@ /** @license zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */ -(function() {'use strict';Math.floor(2147483648*Math.random()).toString(36);var i="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Uint32Array;function p(a){if("string"===typeof a){var a=a.split(""),c,b;c=0;for(b=a.length;c>>0}c=1;b=0;for(var f=a.length,e,d=0;0>>0};function q(a,c){this.index="number"===typeof c?c:0;this.p=0;this.buffer=a instanceof(i?Uint8Array:Array)?a:new (i?Uint8Array:Array)(32768);if(2*this.buffer.length<=this.index)throw Error("invalid index");this.buffer.length<=this.index&&this.g()}q.prototype.g=function(){var a=this.buffer,c,b=a.length,f=new (i?Uint8Array:Array)(b<<1);if(i)f.set(a);else for(c=0;c>>8&255]<<16|s[a>>>16&255]<<8|s[a>>>24&255])>>32-c:s[a]>>8-c);if(8>c+d)g=g<>c-b-1&1,8===++d&&(d=0,f[e++]=s[g],g=0,e===f.length&&(f=this.g()));f[e]=g;this.buffer=f;this.p=d;this.index=e};q.prototype.finish=function(){var a=this.buffer,c=this.index;0u;++u){for(var aa=t,ba=u,v=u,w=v,y=7,v=v>>>1;v;v>>>=1)w<<=1,w|=v&1,--y;aa[ba]=(w<>>0}var s=t;var z={l:function(a,c,b){return z.update(a,0,c,b)},update:function(a,c,b,f){for(var e=z.R,d="number"===typeof b?b:b=0,f="number"===typeof f?f:a.length,c=c^4294967295,d=f&7;d--;++b)c=c>>>8^e[(c^a[b])&255];for(d=f>>3;d--;b+=8)c=c>>>8^e[(c^a[b])&255],c=c>>>8^e[(c^a[b+1])&255],c=c>>>8^e[(c^a[b+2])&255],c=c>>>8^e[(c^a[b+3])&255],c=c>>>8^e[(c^a[b+4])&255],c=c>>>8^e[(c^a[b+5])&255],c=c>>>8^e[(c^a[b+6])&255],c=c>>>8^e[(c^a[b+7])&255];return(c^4294967295)>>>0}},A,ca=[0,1996959894,3993919788,2567524794,124634137, -1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598, -565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092, -3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386, -503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920, -3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918E3,2847714899,3736837829,1202900863,817233897, -3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];A=i?new Uint32Array(ca):ca;z.R=A;function da(){};function B(a){this.buffer=new (i?Uint16Array:Array)(2*a);this.length=0}B.prototype.getParent=function(a){return 2*((a-2)/4|0)};B.prototype.fa=function(a){return 2*a+2};B.prototype.push=function(a,c){var b,f,e=this.buffer,d;b=this.length;e[this.length++]=c;for(e[this.length++]=a;0e[f])d=e[b],e[b]=e[f],e[f]=d,d=e[b+1],e[b+1]=e[f+1],e[f+1]=d,b=f;else break;return this.length}; -B.prototype.pop=function(){var a,c,b=this.buffer,f,e,d;c=b[0];a=b[1];this.length-=2;b[0]=b[this.length];b[1]=b[this.length+1];for(d=0;;){e=this.fa(d);if(e>=this.length)break;e+2b[e]&&(e+=2);if(b[e]>b[d])f=b[d],b[d]=b[e],b[e]=f,f=b[d+1],b[d+1]=b[e+1],b[e+1]=f;else break;d=e}return{index:a,value:c,length:this.length}};function C(a){var c=a.length,b=0,f=Number.POSITIVE_INFINITY,e,d,g,h,k,n,l,m,j;for(m=0;mb&&(b=a[m]),a[m]>=1;for(j=n;jG;G++)switch(!0){case 143>=G:F.push([G+48,8]);break;case 255>=G:F.push([G-144+400,9]);break;case 279>=G:F.push([G-256+0,7]);break;case 287>=G:F.push([G-280+192,8]);break;default:throw"invalid literal: "+G;} -D.prototype.i=function(){var a,c,b,f=this.input;switch(this.m){case 0:c=0;for(b=f.length;c>>8&255;e[d++]=f&255;e[d++]=f>>>8&255;if(i)e.set(a,d),d+=a.length,e=e.subarray(0,d);else{b=0;for(f=a.length;bo;o++)x[o]=r[h[o]];for(g=19;4=a:return[265,a-11,1];case 14>=a:return[266,a-13,1];case 16>=a:return[267,a-15,1];case 18>=a:return[268,a-17,1];case 22>=a:return[269,a-19,2];case 26>=a:return[270,a-23,2];case 30>=a:return[271,a-27,2];case 34>=a:return[272,a-31,2];case 42>= -a:return[273,a-35,3];case 50>=a:return[274,a-43,3];case 58>=a:return[275,a-51,3];case 66>=a:return[276,a-59,3];case 82>=a:return[277,a-67,4];case 98>=a:return[278,a-83,4];case 114>=a:return[279,a-99,4];case 130>=a:return[280,a-115,4];case 162>=a:return[281,a-131,5];case 194>=a:return[282,a-163,5];case 226>=a:return[283,a-195,5];case 257>=a:return[284,a-227,5];case 258===a:return[285,a-258,0];default:throw"invalid length: "+a;}}var I=[],J,K;for(J=3;258>=J;J++)K=fa(J),I[J]=K[2]<<24|K[1]<<16|K[0]; -var ga=i?new Uint32Array(I):I; -H.prototype.ga=function(a){switch(!0){case 1===a:a=[0,a-1,0];break;case 2===a:a=[1,a-2,0];break;case 3===a:a=[2,a-3,0];break;case 4===a:a=[3,a-4,0];break;case 6>=a:a=[4,a-5,1];break;case 8>=a:a=[5,a-7,1];break;case 12>=a:a=[6,a-9,2];break;case 16>=a:a=[7,a-13,2];break;case 24>=a:a=[8,a-17,3];break;case 32>=a:a=[9,a-25,3];break;case 48>=a:a=[10,a-33,4];break;case 64>=a:a=[11,a-49,4];break;case 96>=a:a=[12,a-65,5];break;case 128>=a:a=[13,a-97,5];break;case 192>=a:a=[14,a-129,6];break;case 256>=a:a= -[15,a-193,6];break;case 384>=a:a=[16,a-257,7];break;case 512>=a:a=[17,a-385,7];break;case 768>=a:a=[18,a-513,8];break;case 1024>=a:a=[19,a-769,8];break;case 1536>=a:a=[20,a-1025,9];break;case 2048>=a:a=[21,a-1537,9];break;case 3072>=a:a=[22,a-2049,10];break;case 4096>=a:a=[23,a-3073,10];break;case 6144>=a:a=[24,a-4097,11];break;case 8192>=a:a=[25,a-6145,11];break;case 12288>=a:a=[26,a-8193,12];break;case 16384>=a:a=[27,a-12289,12];break;case 24576>=a:a=[28,a-16385,13];break;case 32768>=a:a=[29,a- -24577,13];break;default:throw"invalid distance";}return a};H.prototype.ra=function(){var a=this.T,c=[],b=0,f;f=ga[this.length];c[b++]=f&65535;c[b++]=f>>16&255;c[b++]=f>>24;f=this.ga(a);c[b++]=f[0];c[b++]=f[1];c[b++]=f[2];return c}; -D.prototype.L=function(a){function c(a,b){var c=a.ra(),d,e;d=0;for(e=c.length;d=e;)j[e++]=0;for(e=0;29>=e;)r[e++]=0}j[256]=1;b=0;for(f=a.length;b=f){k&&c(k,-1);e=0;for(d=f-b;eg&&c+gd&&(e=f,d=g);if(258===g)break}return new H(d,c-e)}; -D.prototype.ha=function(a,c,b,f){var e=new (i?Uint32Array:Array)(a+b),d,g,h=new (i?Uint32Array:Array)(316),k=new (i?Uint8Array:Array)(19);for(d=g=0;da)for(;0a?a:138,f>a-3&&f=f?(h[b++]=17,h[b++]=f-3,k[17]++):(h[b++]=18,h[b++]=f-11,k[18]++),a-=f;else if(h[b++]=e[d],k[e[d]]++, -a--,3>a)for(;0a?a:6,f>a-3&&f2*e[j-1]+d[j]&&(e[j]=2*e[j-1]+d[j]),h[j]=Array(e[j]),k[j]=Array(e[j]);for(l=0;la[l]?(h[j][m]=b,k[j][m]=c,r+=2):(h[j][m]=a[l],k[j][m]=l,++l);n[j]=0;1===d[j]&&f(j)}return g}; -D.prototype.w=function(a){var c=new (i?Uint16Array:Array)(a.length),b=[],f=[],e=0,d,g,h;d=0;for(g=a.length;d1<e)throw"undercommitted";d=0;for(g=a.length;d>>=1}return c};function ha(a,c){this.input=a;this.a=new (i?Uint8Array:Array)(32768);this.m=L.B;var b={},f;if((c||!(c={}))&&"number"===typeof c.compressionType)this.m=c.compressionType;for(f in c)b[f]=c[f];b.outputBuffer=this.a;this.N=new D(this.input,b)}var L=ea; -ha.prototype.i=function(){var a,c,b,f=0;b=this.a;a=M;switch(a){case M:c=Math.LOG2E*Math.log(32768)-8;break;default:throw Error("invalid compression method");}c=c<<4|a;b[f++]=c;switch(a){case M:switch(this.m){case L.NONE:a=0;break;case L.Q:a=1;break;case L.B:a=2;break;default:throw Error("unsupported compression type");}break;default:throw Error("invalid compression method");}a=a<<6|0;b[f++]=a|31-(256*c+a)%31;c=p(this.input);this.N.b=f;b=this.N.i();f=b.length;i&&(b=new Uint8Array(b.buffer),b.length<= -f+4&&(this.a=new Uint8Array(b.length+4),this.a.set(b),b=this.a),b=b.subarray(0,f+4));b[f++]=c&255;b[f++]=c>>8&255;b[f++]=c>>16&255;b[f++]=c>>24&255;return b};function ia(a,c){this.input=a;this.b=this.c=0;this.h={};if(c&&(c.flags&&(this.h=c.flags),"string"===typeof c.filename&&(this.filename=c.filename),"string"===typeof c.comment&&(this.comment=c.comment),c.deflateOptions))this.n=c.deflateOptions;this.n||(this.n={})} -ia.prototype.i=function(){var a,c,b,f,e,d=new (i?Uint8Array:Array)(32768);b=0;var g=this.input,h=this.c;c=this.filename;var k=this.comment;d[b++]=31;d[b++]=139;d[b++]=8;a=0;this.h.fname&&(a|=ja);this.h.fcomment&&(a|=ka);this.h.fhcrc&&(a|=la);d[b++]=a;a=(Date.now?Date.now():+new Date)/1E3|0;d[b++]=a&255;d[b++]=a>>>8&255;d[b++]=a>>>16&255;d[b++]=a>>>24&255;d[b++]=0;d[b++]=ma;if(void 0!==this.h.fname){f=0;for(e=c.length;f>>8&255),d[b++]=a&255;d[b++]=0}if(this.h.comment){f= -0;for(e=k.length;f>>8&255),d[b++]=a&255;d[b++]=0}this.h.fhcrc&&(c=z.l(d,0,b)&65535,d[b++]=c&255,d[b++]=c>>>8&255);this.n.outputBuffer=d;this.n.outputIndex=b;b=new D(g,this.n);d=b.i();b=b.b;i&&(b+8>d.buffer.byteLength?(this.a=new Uint8Array(b+8),this.a.set(new Uint8Array(d.buffer)),d=this.a):d=new Uint8Array(d.buffer));c=z.l(g);d[b++]=c&255;d[b++]=c>>>8&255;d[b++]=c>>>16&255;d[b++]=c>>>24&255;e=g.length;d[b++]=e&255;d[b++]=e>>>8&255;d[b++]=e>>>16&255;d[b++]= -e>>>24&255;this.c=h;i&&b=S?8:255>=S?9:279>=S?7:8;var xa=C(R),T=new (i?Uint8Array:Array)(30),U,ya;U=0;for(ya=T.length;U>>=1;switch(a){case 0:this.oa();break;case 1:this.na();break;case 2:this.ma();break;default:throw Error("unknown BTYPE: "+a);}}; -N.prototype.e=function(a){for(var c=this.k,b=this.f,f=this.input,e=this.c,d;b>>a;this.f=b-a;this.c=e;return d};N.prototype.o=function(a){for(var c=this.k,b=this.f,f=this.input,e=this.c,d=a[0],a=a[1],g;b>>16;this.k=c>>d;this.f=b-d;this.c=e;return f&65535}; -N.prototype.oa=function(){var a=this.input,c=this.c,b=this.a,f=this.b,e,d,g,h=b.length;this.f=this.k=0;e=a[c++];if(void 0===e)throw Error("invalid uncompressed block header: LEN (first byte)");d=e;e=a[c++];if(void 0===e)throw Error("invalid uncompressed block header: LEN (second byte)");d|=e<<8;e=a[c++];if(void 0===e)throw Error("invalid uncompressed block header: NLEN (first byte)");g=e;e=a[c++];if(void 0===e)throw Error("invalid uncompressed block header: NLEN (second byte)");if(d===~(g|e<<8))throw Error("invalid uncompressed block header: length verify"); -if(c+d>a.length)throw Error("input buffer is broken");switch(this.t){case na:for(;f+d>b.length;){e=h-f;d-=e;if(i)b.set(a.subarray(c,c+e),f),f+=e,c+=e;else for(;e--;)b[f++]=a[c++];this.b=f;b=this.g();f=this.b}break;case O:for(;f+d>b.length;)b=this.g({H:2});break;default:throw Error("invalid inflate mode");}if(i)b.set(a.subarray(c,c+d),f),f+=d,c+=d;else for(;d--;)b[f++]=a[c++];this.c=c;this.b=f;this.a=b};N.prototype.na=function(){this.v(xa,za)}; -N.prototype.ma=function(){function a(a,b,c){var d,e,f;for(f=0;fd)f>=e&&(this.b=f,b=this.g(),f=this.b),b[f++]=d;else{d-=257;h=ra[d];0=e&&(this.b=f,b=this.g(),f=this.b);for(;h--;)b[f]=b[f++-g]}for(;8<=this.f;)this.f-=8,this.c--;this.b=f}; -N.prototype.X=function(a,c){var b=this.a,f=this.b;this.G=a;for(var e=b.length,d,g,h;256!==(d=this.o(a));)if(256>d)f>=e&&(b=this.g(),e=b.length),b[f++]=d;else{d-=257;h=ra[d];0e&&(b=this.g(),e=b.length);for(;h--;)b[f]=b[f++-g]}for(;8<=this.f;)this.f-=8,this.c--;this.b=f}; -N.prototype.g=function(){var a=new (i?Uint8Array:Array)(this.b-32768),c=this.b-32768,b,f,e=this.a;if(i)a.set(e.subarray(32768,a.length));else{b=0;for(f=a.length;bb;++b)e[b]=e[c+b];this.b=32768;return e}; -N.prototype.aa=function(a){var c=this.input.length/this.c+1|0,b=this.input,f=this.a;a&&("number"===typeof a.H&&(c=a.H),"number"===typeof a.S&&(c+=a.S));2>c?(a=(b.length-this.c)/this.G[2],a=258*(a/2)|0,a=ac&&(this.a.length=c),a=this.a);return this.buffer=a};function V(a){this.input=a;this.c=0;this.member=[]}V.prototype.j=function(){for(var a=this.input.length;this.c>>0;if(z.l(f)!==c)throw Error("invalid CRC-32 checksum: 0x"+z.l(f).toString(16)+" / 0x"+c.toString(16));a.wa=c=(g[b++]| -g[b++]<<8|g[b++]<<16|g[b++]<<24)>>>0;if((f.length&4294967295)!==c)throw Error("invalid input size: "+(f.length&4294967295)+" / "+c);this.member.push(a);this.c=b};V.prototype.Z=function(a,c){return a+c};V.prototype.V=function(){var a=this.member,c,b,f=0,e=0;c=0;for(b=a.length;c=Y?8:255>=Y?9:279>=Y?7:8;C(X);var Z=new (i?Uint8Array:Array)(30),$,Pa;$=0;for(Pa=Z.length;$>>0;c=a}for(var e=1,d=0,g=c.length,h,j=0;0>>0};function I(c,a){this.index="number"===typeof a?a:0;this.n=0;this.buffer=c instanceof(B?Uint8Array:Array)?c:new (B?Uint8Array:Array)(32768);2*this.buffer.length<=this.index&&m(Error("invalid index"));this.buffer.length<=this.index&&this.f()}I.prototype.f=function(){var c=this.buffer,a,b=c.length,f=new (B?Uint8Array:Array)(b<<1);if(B)f.set(c);else for(a=0;a>>8&255]<<16|K[c>>>16&255]<<8|K[c>>>24&255])>>32-a:K[c]>>8-a);if(8>a+d)g=g<>a-h-1&1,8===++d&&(d=0,f[e++]=K[g],g=0,e===f.length&&(f=this.f()));f[e]=g;this.buffer=f;this.n=d;this.index=e};I.prototype.finish=function(){var c=this.buffer,a=this.index,b;0Q;++Q){for(var R=Q,ga=R,ha=7,R=R>>>1;R;R>>>=1)ga<<=1,ga|=R&1,--ha;ba[Q]=(ga<>>0}var K=ba;var S={k:function(c,a,b){return S.update(c,0,a,b)},update:function(c,a,b,f){for(var e=S.L,d="number"===typeof b?b:b=0,g="number"===typeof f?f:c.length,a=a^4294967295,d=g&7;d--;++b)a=a>>>8^e[(a^c[b])&255];for(d=g>>3;d--;b+=8)a=a>>>8^e[(a^c[b])&255],a=a>>>8^e[(a^c[b+1])&255],a=a>>>8^e[(a^c[b+2])&255],a=a>>>8^e[(a^c[b+3])&255],a=a>>>8^e[(a^c[b+4])&255],a=a>>>8^e[(a^c[b+5])&255],a=a>>>8^e[(a^c[b+6])&255],a=a>>>8^e[(a^c[b+7])&255];return(a^4294967295)>>>0}},ia=S,ja,ka=[0,1996959894,3993919788,2567524794, +124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304, +3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486, +2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580, +2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221, +2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918E3,2847714899,3736837829,1202900863, +817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];ja=B?new Uint32Array(ka):ka;ia.L=ja;function na(){};function oa(c){this.buffer=new (B?Uint16Array:Array)(2*c);this.length=0}oa.prototype.getParent=function(c){return 2*((c-2)/4|0)};oa.prototype.push=function(c,a){var b,f,e=this.buffer,d;b=this.length;e[this.length++]=a;for(e[this.length++]=c;0e[f])d=e[b],e[b]=e[f],e[f]=d,d=e[b+1],e[b+1]=e[f+1],e[f+1]=d,b=f;else break;return this.length}; +oa.prototype.pop=function(){var c,a,b=this.buffer,f,e,d;a=b[0];c=b[1];this.length-=2;b[0]=b[this.length];b[1]=b[this.length+1];for(d=0;;){e=2*d+2;if(e>=this.length)break;e+2b[e]&&(e+=2);if(b[e]>b[d])f=b[d],b[d]=b[e],b[e]=f,f=b[d+1],b[d+1]=b[e+1],b[e+1]=f;else break;d=e}return{index:c,value:a,length:this.length}};function T(c){var a=c.length,b=0,f=Number.POSITIVE_INFINITY,e,d,g,h,j,i,q,l,k;for(l=0;lb&&(b=c[l]),c[l]>=1;for(k=i;kU;U++)switch(t){case 143>=U:sa.push([U+48,8]);break;case 255>=U:sa.push([U-144+400,9]);break;case 279>=U:sa.push([U-256+0,7]);break;case 287>=U:sa.push([U-280+192,8]);break;default:m("invalid literal: "+U)} +pa.prototype.h=function(){var c,a,b,f,e=this.input;switch(this.l){case 0:b=0;for(f=e.length;b>>8&255;k[p++]=i&255;k[p++]=i>>>8&255;if(B)k.set(d,p),p+=d.length,k=k.subarray(0,p);else{q=0;for(l=d.length;qz)for(;0z?z:138,H>z-3&&H=H?(L[J++]=17,L[J++]=H-3,O[17]++):(L[J++]=18,L[J++]=H-11,O[18]++),z-=H;else if(L[J++]=M[y],O[M[y]]++,z--,3>z)for(;0z?z:6,H>z-3&&HG;G++)va[G]=la[ca[G]];for(D=19;4=c:return[265,c-11,1];case 14>=c:return[266,c-13,1];case 16>=c:return[267,c-15,1];case 18>=c:return[268,c-17,1];case 22>=c:return[269,c-19,2];case 26>=c:return[270,c-23,2];case 30>=c:return[271,c-27,2];case 34>=c:return[272,c- +31,2];case 42>=c:return[273,c-35,3];case 50>=c:return[274,c-43,3];case 58>=c:return[275,c-51,3];case 66>=c:return[276,c-59,3];case 82>=c:return[277,c-67,4];case 98>=c:return[278,c-83,4];case 114>=c:return[279,c-99,4];case 130>=c:return[280,c-115,4];case 162>=c:return[281,c-131,5];case 194>=c:return[282,c-163,5];case 226>=c:return[283,c-195,5];case 257>=c:return[284,c-227,5];case 258===c:return[285,c-258,0];default:m("invalid length: "+c)}}var Ba=[],Aa,Ca; +for(Aa=3;258>=Aa;Aa++)Ca=za(),Ba[Aa]=Ca[2]<<24|Ca[1]<<16|Ca[0];var Da=B?new Uint32Array(Ba):Ba; +function ta(c,a){function b(a,c){var b=a.N,d=[],e=0,f;f=Da[a.length];d[e++]=f&65535;d[e++]=f>>16&255;d[e++]=f>>24;var g;switch(t){case 1===b:g=[0,b-1,0];break;case 2===b:g=[1,b-2,0];break;case 3===b:g=[2,b-3,0];break;case 4===b:g=[3,b-4,0];break;case 6>=b:g=[4,b-5,1];break;case 8>=b:g=[5,b-7,1];break;case 12>=b:g=[6,b-9,2];break;case 16>=b:g=[7,b-13,2];break;case 24>=b:g=[8,b-17,3];break;case 32>=b:g=[9,b-25,3];break;case 48>=b:g=[10,b-33,4];break;case 64>=b:g=[11,b-49,4];break;case 96>=b:g=[12,b- +65,5];break;case 128>=b:g=[13,b-97,5];break;case 192>=b:g=[14,b-129,6];break;case 256>=b:g=[15,b-193,6];break;case 384>=b:g=[16,b-257,7];break;case 512>=b:g=[17,b-385,7];break;case 768>=b:g=[18,b-513,8];break;case 1024>=b:g=[19,b-769,8];break;case 1536>=b:g=[20,b-1025,9];break;case 2048>=b:g=[21,b-1537,9];break;case 3072>=b:g=[22,b-2049,10];break;case 4096>=b:g=[23,b-3073,10];break;case 6144>=b:g=[24,b-4097,11];break;case 8192>=b:g=[25,b-6145,11];break;case 12288>=b:g=[26,b-8193,12];break;case 16384>= +b:g=[27,b-12289,12];break;case 24576>=b:g=[28,b-16385,13];break;case 32768>=b:g=[29,b-24577,13];break;default:m("invalid distance")}f=g;d[e++]=f[0];d[e++]=f[1];d[e++]=f[2];var h,i;h=0;for(i=d.length;h=d;)v[d++]=0;for(d=0;29>=d;)x[d++]=0}v[256]=1;f=0;for(e=a.length;f=e){l&&b(l,-1);d=0;for(g=e-f;ds&&f+sn&&(C=A,n=s);if(258===s)break}q=new xa(n,f-C);l?l.length2*k[n-1]+p[n]&&(k[n]=2*k[n-1]+p[n]),v[n]=Array(k[n]),x[n]=Array(k[n]);for(C=0;Ch[C]?(v[n][s]=E,x[n][s]=l,D+=2): +(v[n][s]=h[C],x[n][s]=C,++C);F[n]=0;1===p[n]&&b(n)}j=u;i=0;for(q=g.length;i1<e&&m("undercommitted");d=0;for(g=c.length;d>>=1}return a};function Ea(c,a){this.input=c;this.a=new (B?Uint8Array:Array)(32768);this.l=Fa.u;var b={},f;if((a||!(a={}))&&"number"===typeof a.compressionType)this.l=a.compressionType;for(f in a)b[f]=a[f];b.outputBuffer=this.a;this.H=new pa(this.input,b)}var Fa=ra; +Ea.prototype.h=function(){var c,a,b,f,e,d,g,h=0;g=this.a;c=Ga;switch(c){case Ga:a=Math.LOG2E*Math.log(32768)-8;break;default:m(Error("invalid compression method"))}b=a<<4|c;g[h++]=b;switch(c){case Ga:switch(this.l){case Fa.NONE:e=0;break;case Fa.K:e=1;break;case Fa.u:e=2;break;default:m(Error("unsupported compression type"))}break;default:m(Error("invalid compression method"))}f=e<<6|0;g[h++]=f|31-(256*b+f)%31;d=aa(this.input);this.H.b=h;g=this.H.h();h=g.length;B&&(g=new Uint8Array(g.buffer),g.length<= +h+4&&(this.a=new Uint8Array(g.length+4),this.a.set(g),g=this.a),g=g.subarray(0,h+4));g[h++]=d>>24&255;g[h++]=d>>16&255;g[h++]=d>>8&255;g[h++]=d&255;return g};function Ha(c,a){this.input=c;this.b=this.c=0;this.g={};a&&(a.flags&&(this.g=a.flags),"string"===typeof a.filename&&(this.filename=a.filename),"string"===typeof a.comment&&(this.comment=a.comment),a.deflateOptions&&(this.m=a.deflateOptions));this.m||(this.m={})} +Ha.prototype.h=function(){var c,a,b,f,e,d,g,h,j=new (B?Uint8Array:Array)(32768),i=0,q=this.input,l=this.c,k=this.filename,p=this.comment;j[i++]=31;j[i++]=139;j[i++]=8;c=0;this.g.fname&&(c|=Ia);this.g.fcomment&&(c|=Ja);this.g.fhcrc&&(c|=Ka);j[i++]=c;a=(Date.now?Date.now():+new Date)/1E3|0;j[i++]=a&255;j[i++]=a>>>8&255;j[i++]=a>>>16&255;j[i++]=a>>>24&255;j[i++]=0;j[i++]=Ya;if(this.g.fname!==r){g=0;for(h=k.length;g>>8&255),j[i++]=d&255;j[i++]=0}if(this.g.comment){g= +0;for(h=p.length;g>>8&255),j[i++]=d&255;j[i++]=0}this.g.fhcrc&&(b=S.k(j,0,i)&65535,j[i++]=b&255,j[i++]=b>>>8&255);this.m.outputBuffer=j;this.m.outputIndex=i;e=new pa(q,this.m);j=e.h();i=e.b;B&&(i+8>j.buffer.byteLength?(this.a=new Uint8Array(i+8),this.a.set(new Uint8Array(j.buffer)),j=this.a):j=new Uint8Array(j.buffer));f=S.k(q);j[i++]=f&255;j[i++]=f>>>8&255;j[i++]=f>>>16&255;j[i++]=f>>>24&255;h=q.length;j[i++]=h&255;j[i++]=h>>>8&255;j[i++]=h>>>16&255;j[i++]= +h>>>24&255;this.c=l;B&&i>>=1;switch(c){case 0:var a=this.input,b=this.c,f=this.a,e=this.b,d=r,g=r,h=r,j=f.length,i=r;this.e=this.j=0;d=a[b++];d===r&&m(Error("invalid uncompressed block header: LEN (first byte)"));g=d;d=a[b++];d===r&&m(Error("invalid uncompressed block header: LEN (second byte)"));g|=d<<8;d=a[b++];d===r&&m(Error("invalid uncompressed block header: NLEN (first byte)"));h=d;d=a[b++];d===r&&m(Error("invalid uncompressed block header: NLEN (second byte)"));h|= +d<<8;g===~h&&m(Error("invalid uncompressed block header: length verify"));b+g>a.length&&m(Error("input buffer is broken"));switch(this.r){case $a:for(;e+g>f.length;){i=j-e;g-=i;if(B)f.set(a.subarray(b,b+i),e),e+=i,b+=i;else for(;i--;)f[e++]=a[b++];this.b=e;f=this.f();e=this.b}break;case Za:for(;e+g>f.length;)f=this.f({B:2});break;default:m(Error("invalid inflate mode"))}if(B)f.set(a.subarray(b,b+g),e),e+=g,b+=g;else for(;g--;)f[e++]=a[b++];this.c=b;this.b=e;this.a=f;break;case 1:this.s(ab,bb);break; +case 2:cb(this);break;default:m(Error("unknown BTYPE: "+c))}}return this.z()}; +var db=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],eb=B?new Uint16Array(db):db,fb=[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,258,258],gb=B?new Uint16Array(fb):fb,hb=[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],ib=B?new Uint8Array(hb):hb,jb=[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],kb=B?new Uint16Array(jb):jb,lb=[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],mb=B?new Uint8Array(lb):lb,nb=new (B?Uint8Array:Array)(288),Y,ob;Y=0;for(ob=nb.length;Y=Y?8:255>=Y?9:279>=Y?7:8;var ab=T(nb),pb=new (B?Uint8Array:Array)(30),qb,rb;qb=0;for(rb=pb.length;qb>>a;c.e=f-a;c.c=d;return g} +function sb(c,a){for(var b=c.j,f=c.e,e=c.input,d=c.c,g=a[0],h=a[1],j,i,q;f>>16;c.j=b>>q;c.e=f-q;c.c=d;return i&65535} +function cb(c){function a(a,b,c){var d,f,e,g;for(g=0;gd)f>=e&&(this.b=f,b=this.f(),f=this.b),b[f++]=d;else{g=d-257;j=gb[g];0=e&&(this.b=f,b=this.f(),f=this.b);for(;j--;)b[f]=b[f++-h]}for(;8<=this.e;)this.e-=8,this.c--;this.b=f}; +W.prototype.Q=function(c,a){var b=this.a,f=this.b;this.A=c;for(var e=b.length,d,g,h,j;256!==(d=sb(this,c));)if(256>d)f>=e&&(b=this.f(),e=b.length),b[f++]=d;else{g=d-257;j=gb[g];0e&&(b=this.f(),e=b.length);for(;j--;)b[f]=b[f++-h]}for(;8<=this.e;)this.e-=8,this.c--;this.b=f}; +W.prototype.f=function(){var c=new (B?Uint8Array:Array)(this.b-32768),a=this.b-32768,b,f,e=this.a;if(B)c.set(e.subarray(32768,c.length));else{b=0;for(f=c.length;bb;++b)e[b]=e[a+b];this.b=32768;return e}; +W.prototype.R=function(c){var a,b=this.input.length/this.c+1|0,f,e,d,g=this.input,h=this.a;c&&("number"===typeof c.B&&(b=c.B),"number"===typeof c.M&&(b+=c.M));2>b?(f=(g.length-this.c)/this.A[2],d=258*(f/2)|0,e=da&&(this.a.length=a),c=this.a);return this.buffer=c};function tb(c){this.input=c;this.c=0;this.member=[]} +tb.prototype.i=function(){for(var c=this.input.length;this.c>>0;S.k(e)!==q&&m(Error("invalid CRC-32 checksum: 0x"+S.k(e).toString(16)+" / 0x"+q.toString(16))); +a.Y=b=(l[k++]|l[k++]<<8|l[k++]<<16|l[k++]<<24)>>>0;(e.length&4294967295)!==b&&m(Error("invalid input size: "+(e.length&4294967295)+" / "+b));this.member.push(a);this.c=k}var p=this.member,u,v,x=0,F=0,w;u=0;for(v=p.length;u>>0,b!==aa(a)&&m(Error("invalid adler-32 checksum")));return a};exports.deflate=vb;exports.deflateSync=wb;exports.inflate=xb;exports.inflateSync=yb;exports.gzip=zb;exports.gzipSync=Ab;exports.gunzip=Bb;exports.gunzipSync=Cb;function vb(c,a,b){process.nextTick(function(){var f,e;try{e=wb(c,b)}catch(d){f=d}a(f,e)})}function wb(c,a){var b;b=(new Ea(c)).h();a||(a={});return a.G?b:Db(b)}function xb(c,a,b){process.nextTick(function(){var f,e;try{e=yb(c,b)}catch(d){f=d}a(f,e)})} +function yb(c,a){var b;c.subarray=c.slice;b=(new ub(c)).i();a||(a={});return a.noBuffer?b:Db(b)}function zb(c,a,b){process.nextTick(function(){var f,e;try{e=Ab(c,b)}catch(d){f=d}a(f,e)})}function Ab(c,a){var b;c.subarray=c.slice;b=(new Ha(c)).h();a||(a={});return a.G?b:Db(b)}function Bb(c,a,b){process.nextTick(function(){var f,e;try{e=Cb(c,b)}catch(d){f=d}a(f,e)})}function Cb(c,a){var b;c.subarray=c.slice;b=(new tb(c)).i();a||(a={});return a.G?b:Db(b)} +function Db(c){var a=new Buffer(c.length),b,f;b=0;for(f=c.length;b=$?8:255>=$?9:279>=$?7:8;T(Jb);var Lb=new (B?Uint8Array:Array)(30),Mb,Nb;Mb=0;for(Nb=Lb.length;Mb>>0}c=1;b=0;for(var f=a.length,d,e=0;0>>0};function s(a,c){this.index="number"===typeof c?c:0;this.k=0;this.buffer=a instanceof(q?Uint8Array:Array)?a:new (q?Uint8Array:Array)(32768);if(2*this.buffer.length<=this.index)throw Error("invalid index");this.buffer.length<=this.index&&this.g()}s.prototype.g=function(){var a=this.buffer,c,b=a.length,f=new (q?Uint8Array:Array)(b<<1);if(q)f.set(a);else for(c=0;c>>8&255]<<16|t[a>>>16&255]<<8|t[a>>>24&255])>>32-c:t[a]>>8-c);if(8>c+e)g=g<>c-b-1&1,8===++e&&(e=0,f[d++]=t[g],g=0,d===f.length&&(f=this.g()));f[d]=g;this.buffer=f;this.k=e;this.index=d};s.prototype.finish=function(){var a=this.buffer,c=this.index;0v;++v){for(var ba=u,ca=v,w=v,x=w,da=7,w=w>>>1;w;w>>>=1)x<<=1,x|=w&1,--da;ba[ca]=(x<>>0}var t=u;var ea=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759, +(function() {'use strict';function i(a){throw a;}var r=void 0,v=!0,aa=this;function y(a,c){var b=a.split("."),e=aa;!(b[0]in e)&&e.execScript&&e.execScript("var "+b[0]);for(var f;b.length&&(f=b.shift());)!b.length&&c!==r?e[f]=c:e=e[f]?e[f]:e[f]={}};var H="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Uint32Array;function ba(a){if("string"===typeof a){var c=a.split(""),b,e;b=0;for(e=c.length;b>>0;a=c}for(var f=1,d=0,g=a.length,h,m=0;0>>0};function J(a,c){this.index="number"===typeof c?c:0;this.i=0;this.buffer=a instanceof(H?Uint8Array:Array)?a:new (H?Uint8Array:Array)(32768);2*this.buffer.length<=this.index&&i(Error("invalid index"));this.buffer.length<=this.index&&this.f()}J.prototype.f=function(){var a=this.buffer,c,b=a.length,e=new (H?Uint8Array:Array)(b<<1);if(H)e.set(a);else for(c=0;c>>8&255]<<16|N[a>>>16&255]<<8|N[a>>>24&255])>>32-c:N[a]>>8-c);if(8>c+d)g=g<>c-h-1&1,8===++d&&(d=0,e[f++]=N[g],g=0,f===e.length&&(e=this.f()));e[f]=g;this.buffer=e;this.i=d;this.index=f};J.prototype.finish=function(){var a=this.buffer,c=this.index,b;0ha;++ha){for(var R=ha,ia=R,ja=7,R=R>>>1;R;R>>>=1)ia<<=1,ia|=R&1,--ja;ca[ha]=(ia<>>0}var N=ca;var ka=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759, 2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977, 2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755, 2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956, 3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270, -936918E3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];q&&new Uint32Array(ea);function z(a){this.buffer=new (q?Uint16Array:Array)(2*a);this.length=0}z.prototype.getParent=function(a){return 2*((a-2)/4|0)};z.prototype.V=function(a){return 2*a+2};z.prototype.push=function(a,c){var b,f,d=this.buffer,e;b=this.length;d[this.length++]=c;for(d[this.length++]=a;0d[f])e=d[b],d[b]=d[f],d[f]=e,e=d[b+1],d[b+1]=d[f+1],d[f+1]=e,b=f;else break;return this.length}; -z.prototype.pop=function(){var a,c,b=this.buffer,f,d,e;c=b[0];a=b[1];this.length-=2;b[0]=b[this.length];b[1]=b[this.length+1];for(e=0;;){d=this.V(e);if(d>=this.length)break;d+2b[d]&&(d+=2);if(b[d]>b[e])f=b[e],b[e]=b[d],b[d]=f,f=b[e+1],b[e+1]=b[d+1],b[d+1]=f;else break;e=d}return{index:a,value:c,length:this.length}};function A(a){var c=a.length,b=0,f=Number.POSITIVE_INFINITY,d,e,g,h,k,n,l,m,j;for(m=0;mb&&(b=a[m]),a[m]>=1;for(j=n;jE;E++)switch(!0){case 143>=E:D.push([E+48,8]);break;case 255>=E:D.push([E-144+400,9]);break;case 279>=E:D.push([E-256+0,7]);break;case 287>=E:D.push([E-280+192,8]);break;default:throw"invalid literal: "+E;} -B.prototype.q=function(){var a,c,b,f=this.input;switch(this.i){case 0:c=0;for(b=f.length;c>>8&255;d[e++]=f&255;d[e++]=f>>>8&255;if(q)d.set(a,e),e+=a.length,d=d.subarray(0,e);else{b=0;for(f=a.length;bo;o++)y[o]=p[h[o]];for(g=19;4=a:return[265,a-11,1];case 14>=a:return[266,a-13,1];case 16>=a:return[267,a-15,1];case 18>=a:return[268,a-17,1];case 22>=a:return[269,a-19,2];case 26>=a:return[270,a-23,2];case 30>=a:return[271,a-27,2];case 34>=a:return[272,a-31,2];case 42>= -a:return[273,a-35,3];case 50>=a:return[274,a-43,3];case 58>=a:return[275,a-51,3];case 66>=a:return[276,a-59,3];case 82>=a:return[277,a-67,4];case 98>=a:return[278,a-83,4];case 114>=a:return[279,a-99,4];case 130>=a:return[280,a-115,4];case 162>=a:return[281,a-131,5];case 194>=a:return[282,a-163,5];case 226>=a:return[283,a-195,5];case 257>=a:return[284,a-227,5];case 258===a:return[285,a-258,0];default:throw"invalid length: "+a;}}var G=[],H,I;for(H=3;258>=H;H++)I=ga(H),G[H]=I[2]<<24|I[1]<<16|I[0]; -var ha=q?new Uint32Array(G):G; -F.prototype.W=function(a){switch(!0){case 1===a:a=[0,a-1,0];break;case 2===a:a=[1,a-2,0];break;case 3===a:a=[2,a-3,0];break;case 4===a:a=[3,a-4,0];break;case 6>=a:a=[4,a-5,1];break;case 8>=a:a=[5,a-7,1];break;case 12>=a:a=[6,a-9,2];break;case 16>=a:a=[7,a-13,2];break;case 24>=a:a=[8,a-17,3];break;case 32>=a:a=[9,a-25,3];break;case 48>=a:a=[10,a-33,4];break;case 64>=a:a=[11,a-49,4];break;case 96>=a:a=[12,a-65,5];break;case 128>=a:a=[13,a-97,5];break;case 192>=a:a=[14,a-129,6];break;case 256>=a:a=[15, -a-193,6];break;case 384>=a:a=[16,a-257,7];break;case 512>=a:a=[17,a-385,7];break;case 768>=a:a=[18,a-513,8];break;case 1024>=a:a=[19,a-769,8];break;case 1536>=a:a=[20,a-1025,9];break;case 2048>=a:a=[21,a-1537,9];break;case 3072>=a:a=[22,a-2049,10];break;case 4096>=a:a=[23,a-3073,10];break;case 6144>=a:a=[24,a-4097,11];break;case 8192>=a:a=[25,a-6145,11];break;case 12288>=a:a=[26,a-8193,12];break;case 16384>=a:a=[27,a-12289,12];break;case 24576>=a:a=[28,a-16385,13];break;case 32768>=a:a=[29,a-24577, -13];break;default:throw"invalid distance";}return a};F.prototype.ga=function(){var a=this.M,c=[],b=0,f;f=ha[this.length];c[b++]=f&65535;c[b++]=f>>16&255;c[b++]=f>>24;f=this.W(a);c[b++]=f[0];c[b++]=f[1];c[b++]=f[2];return c}; -B.prototype.F=function(a){function c(a,b){var c=a.ga(),d,e;d=0;for(e=c.length;d=d;)j[d++]=0;for(d=0;29>=d;)p[d++]=0}j[256]=1;b=0;for(f=a.length;b=f){k&&c(k,-1);d=0;for(e=f-b;dg&&c+ge&&(d=f,e=g);if(258===g)break}return new F(e,c-d)}; -B.prototype.X=function(a,c,b,f){var d=new (q?Uint32Array:Array)(a+b),e,g,h=new (q?Uint32Array:Array)(316),k=new (q?Uint8Array:Array)(19);for(e=g=0;ea)for(;0a?a:138,f>a-3&&f=f?(h[b++]=17,h[b++]=f-3,k[17]++):(h[b++]=18,h[b++]=f-11,k[18]++),a-=f;else if(h[b++]=d[e],k[d[e]]++, -a--,3>a)for(;0a?a:6,f>a-3&&f2*d[j-1]+e[j]&&(d[j]=2*d[j-1]+e[j]),h[j]=Array(d[j]),k[j]=Array(d[j]);for(l=0;la[l]?(h[j][m]=b,k[j][m]=c,p+=2):(h[j][m]=a[l],k[j][m]=l,++l);n[j]=0;1===e[j]&&f(j)}return g}; -B.prototype.t=function(a){var c=new (q?Uint16Array:Array)(a.length),b=[],f=[],d=0,e,g,h;e=0;for(g=a.length;e1<d)throw"undercommitted";e=0;for(g=a.length;e>>=1}return c};function J(a,c){this.input=a;this.a=new (q?Uint8Array:Array)(32768);this.i=K.l;var b={},f;if((c||!(c={}))&&"number"===typeof c.compressionType)this.i=c.compressionType;for(f in c)b[f]=c[f];b.outputBuffer=this.a;this.G=new B(this.input,b)}var K=fa; -J.prototype.q=function(){var a,c,b,f=0;b=this.a;a=L;switch(a){case L:c=Math.LOG2E*Math.log(32768)-8;break;default:throw Error("invalid compression method");}c=c<<4|a;b[f++]=c;switch(a){case L:switch(this.i){case K.NONE:a=0;break;case K.w:a=1;break;case K.l:a=2;break;default:throw Error("unsupported compression type");}break;default:throw Error("invalid compression method");}a=a<<6|0;b[f++]=a|31-(256*c+a)%31;c=r(this.input);this.G.b=f;b=this.G.q();f=b.length;q&&(b=new Uint8Array(b.buffer),b.length<= -f+4&&(this.a=new Uint8Array(b.length+4),this.a.set(b),b=this.a),b=b.subarray(0,f+4));b[f++]=c&255;b[f++]=c>>8&255;b[f++]=c>>16&255;b[f++]=c>>24&255;return b};i("Zlib.Deflate",J,void 0);i("Zlib.Deflate.compress",function(a,c){return(new J(a,c)).q()},void 0);i("Zlib.Deflate.CompressionType",K,void 0);i("Zlib.Deflate.CompressionType.NONE",K.NONE,void 0);i("Zlib.Deflate.CompressionType.FIXED",K.w,void 0);i("Zlib.Deflate.CompressionType.DYNAMIC",K.l,void 0);function M(a,c){this.m=[];this.n=32768;this.f=this.h=this.c=this.v=0;this.input=q?new Uint8Array(a):a;this.z=!1;this.o=N;this.I=!1;if(c||!(c={}))if(c.index&&(this.c=c.index),c.bufferSize&&(this.n=c.bufferSize),c.bufferType&&(this.o=c.bufferType),c.resize)this.I=c.resize;switch(this.o){case O:this.b=32768;this.a=new (q?Uint8Array:Array)(32768+this.n+258);break;case N:this.b=0;this.a=new (q?Uint8Array:Array)(this.n);this.g=this.Q;this.A=this.N;this.r=this.O;break;default:throw Error("invalid inflate mode"); -}}var O=0,N=1,P={K:O,J:N};M.prototype.s=function(){for(;!this.z;)this.aa();return this.A()}; -var ia=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ja=q?new Uint16Array(ia):ia,ka=[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,258,258],la=q?new Uint16Array(ka):ka,ma=[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],Q=q?new Uint8Array(ma):ma,na=[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],oa=q?new Uint16Array(na):na,pa=[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],R=q?new Uint8Array(pa):pa,S=new (q?Uint8Array:Array)(288),T,qa;T=0;for(qa=S.length;T=T?8:255>=T?9:279>=T?7:8;var ra=A(S),U=new (q?Uint8Array:Array)(30),V,sa;V=0;for(sa=U.length;V>>=1;switch(a){case 0:this.da();break;case 1:this.ca();break;case 2:this.ba();break;default:throw Error("unknown BTYPE: "+a);}}; -M.prototype.e=function(a){for(var c=this.h,b=this.f,f=this.input,d=this.c,e;b>>a;this.f=b-a;this.c=d;return e};M.prototype.j=function(a){for(var c=this.h,b=this.f,f=this.input,d=this.c,e=a[0],a=a[1],g;b>>16;this.h=c>>e;this.f=b-e;this.c=d;return f&65535}; -M.prototype.da=function(){var a=this.input,c=this.c,b=this.a,f=this.b,d,e,g,h=b.length;this.f=this.h=0;d=a[c++];if(void 0===d)throw Error("invalid uncompressed block header: LEN (first byte)");e=d;d=a[c++];if(void 0===d)throw Error("invalid uncompressed block header: LEN (second byte)");e|=d<<8;d=a[c++];if(void 0===d)throw Error("invalid uncompressed block header: NLEN (first byte)");g=d;d=a[c++];if(void 0===d)throw Error("invalid uncompressed block header: NLEN (second byte)");if(e===~(g|d<<8))throw Error("invalid uncompressed block header: length verify"); -if(c+e>a.length)throw Error("input buffer is broken");switch(this.o){case O:for(;f+e>b.length;){d=h-f;e-=d;if(q)b.set(a.subarray(c,c+d),f),f+=d,c+=d;else for(;d--;)b[f++]=a[c++];this.b=f;b=this.g();f=this.b}break;case N:for(;f+e>b.length;)b=this.g({C:2});break;default:throw Error("invalid inflate mode");}if(q)b.set(a.subarray(c,c+e),f),f+=e,c+=e;else for(;e--;)b[f++]=a[c++];this.c=c;this.b=f;this.a=b};M.prototype.ca=function(){this.r(ra,ta)}; -M.prototype.ba=function(){function a(a,b,c){var d,e,f;for(f=0;fe)f>=d&&(this.b=f,b=this.g(),f=this.b),b[f++]=e;else{e-=257;h=la[e];0=d&&(this.b=f,b=this.g(),f=this.b);for(;h--;)b[f]=b[f++-g]}for(;8<=this.f;)this.f-=8,this.c--;this.b=f}; -M.prototype.O=function(a,c){var b=this.a,f=this.b;this.B=a;for(var d=b.length,e,g,h;256!==(e=this.j(a));)if(256>e)f>=d&&(b=this.g(),d=b.length),b[f++]=e;else{e-=257;h=la[e];0d&&(b=this.g(),d=b.length);for(;h--;)b[f]=b[f++-g]}for(;8<=this.f;)this.f-=8,this.c--;this.b=f}; -M.prototype.g=function(){var a=new (q?Uint8Array:Array)(this.b-32768),c=this.b-32768,b,f,d=this.a;if(q)a.set(d.subarray(32768,a.length));else{b=0;for(f=a.length;bb;++b)d[b]=d[c+b];this.b=32768;return d}; -M.prototype.Q=function(a){var c=this.input.length/this.c+1|0,b=this.input,f=this.a;a&&("number"===typeof a.C&&(c=a.C),"number"===typeof a.L&&(c+=a.L));2>c?(a=(b.length-this.c)/this.B[2],a=258*(a/2)|0,a=ac&&(this.a.length=c),a=this.a);return this.buffer=a};function W(a,c){var b,f;this.input=a;this.c=0;if(c||!(c={}))if(c.index&&(this.c=c.index),c.verify)this.ha=c.verify;b=a[this.c++];f=a[this.c++];switch(b&15){case L:this.method=L;break;default:throw Error("unsupported compression method");}if(0!==((b<<8)+f)%31)throw Error("invalid fcheck flag:"+((b<<8)+f)%31);if(f&32)throw Error("fdict flag is not supported");this.H=new M(a,{index:this.c,bufferSize:c.bufferSize,bufferType:c.bufferType,resize:c.resize})} -W.prototype.s=function(){var a=this.input,c;c=this.H.s();this.c=this.H.c;if(this.ha&&(a=a[this.c++]<<24|a[this.c++]<<16|a[this.c++]<<8|a[this.c++],a!==r(c)))throw Error("invalid adler-32 checksum");return c};i("Zlib.Inflate",W,void 0);i("Zlib.Inflate.BufferType",P,void 0);P.ADAPTIVE=P.J;P.BLOCK=P.K;i("Zlib.Inflate.prototype.decompress",W.prototype.s,void 0);var ua=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];q&&new Uint16Array(ua);var va=[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,258,258];q&&new Uint16Array(va);var wa=[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];q&&new Uint8Array(wa);var xa=[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];q&&new Uint16Array(xa); -var ya=[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];q&&new Uint8Array(ya);var X=new (q?Uint8Array:Array)(288),Y,za;Y=0;for(za=X.length;Y=Y?8:255>=Y?9:279>=Y?7:8;A(X);var Z=new (q?Uint8Array:Array)(30),$,Aa;$=0;for(Aa=Z.length;$f[e])d=f[b],f[b]=f[e],f[e]=d,d=f[b+1],f[b+1]=f[e+1],f[e+1]=d,b=e;else break;return this.length}; +la.prototype.pop=function(){var a,c,b=this.buffer,e,f,d;c=b[0];a=b[1];this.length-=2;b[0]=b[this.length];b[1]=b[this.length+1];for(d=0;;){f=2*d+2;if(f>=this.length)break;f+2b[f]&&(f+=2);if(b[f]>b[d])e=b[d],b[d]=b[f],b[f]=e,e=b[d+1],b[d+1]=b[f+1],b[f+1]=e;else break;d=f}return{index:a,value:c,length:this.length}};function S(a){var c=a.length,b=0,e=Number.POSITIVE_INFINITY,f,d,g,h,m,j,s,n,l;for(n=0;nb&&(b=a[n]),a[n]>=1;for(l=j;lT;T++)switch(v){case 143>=T:ra.push([T+48,8]);break;case 255>=T:ra.push([T-144+400,9]);break;case 279>=T:ra.push([T-256+0,7]);break;case 287>=T:ra.push([T-280+192,8]);break;default:i("invalid literal: "+T)} +ma.prototype.n=function(){var a,c,b,e,f=this.input;switch(this.h){case 0:b=0;for(e=f.length;b>>8&255;l[q++]=j&255;l[q++]=j>>>8&255;if(H)l.set(d,q),q+=d.length,l=l.subarray(0,q);else{s=0;for(n=d.length;sw)for(;0w?w:138,G>w-3&&G=G?(L[I++]=17,L[I++]=G-3,P[17]++):(L[I++]=18,L[I++]=G-11,P[18]++),w-=G;else if(L[I++]=M[u],P[M[u]]++,w--,3>w)for(;0w?w:6,G>w-3&&GF;F++)va[F]=na[da[F]];for(C=19;4=a:return[265,a-11,1];case 14>=a:return[266,a-13,1];case 16>=a:return[267,a-15,1];case 18>=a:return[268,a-17,1];case 22>=a:return[269,a-19,2];case 26>=a:return[270,a-23,2];case 30>=a:return[271,a-27,2];case 34>=a:return[272,a- +31,2];case 42>=a:return[273,a-35,3];case 50>=a:return[274,a-43,3];case 58>=a:return[275,a-51,3];case 66>=a:return[276,a-59,3];case 82>=a:return[277,a-67,4];case 98>=a:return[278,a-83,4];case 114>=a:return[279,a-99,4];case 130>=a:return[280,a-115,4];case 162>=a:return[281,a-131,5];case 194>=a:return[282,a-163,5];case 226>=a:return[283,a-195,5];case 257>=a:return[284,a-227,5];case 258===a:return[285,a-258,0];default:i("invalid length: "+a)}}var Aa=[],za,Ba; +for(za=3;258>=za;za++)Ba=xa(),Aa[za]=Ba[2]<<24|Ba[1]<<16|Ba[0];var Ca=H?new Uint32Array(Aa):Aa; +function sa(a,c){function b(a,c){var b=a.G,d=[],e=0,f;f=Ca[a.length];d[e++]=f&65535;d[e++]=f>>16&255;d[e++]=f>>24;var g;switch(v){case 1===b:g=[0,b-1,0];break;case 2===b:g=[1,b-2,0];break;case 3===b:g=[2,b-3,0];break;case 4===b:g=[3,b-4,0];break;case 6>=b:g=[4,b-5,1];break;case 8>=b:g=[5,b-7,1];break;case 12>=b:g=[6,b-9,2];break;case 16>=b:g=[7,b-13,2];break;case 24>=b:g=[8,b-17,3];break;case 32>=b:g=[9,b-25,3];break;case 48>=b:g=[10,b-33,4];break;case 64>=b:g=[11,b-49,4];break;case 96>=b:g=[12,b- +65,5];break;case 128>=b:g=[13,b-97,5];break;case 192>=b:g=[14,b-129,6];break;case 256>=b:g=[15,b-193,6];break;case 384>=b:g=[16,b-257,7];break;case 512>=b:g=[17,b-385,7];break;case 768>=b:g=[18,b-513,8];break;case 1024>=b:g=[19,b-769,8];break;case 1536>=b:g=[20,b-1025,9];break;case 2048>=b:g=[21,b-1537,9];break;case 3072>=b:g=[22,b-2049,10];break;case 4096>=b:g=[23,b-3073,10];break;case 6144>=b:g=[24,b-4097,11];break;case 8192>=b:g=[25,b-6145,11];break;case 12288>=b:g=[26,b-8193,12];break;case 16384>= +b:g=[27,b-12289,12];break;case 24576>=b:g=[28,b-16385,13];break;case 32768>=b:g=[29,b-24577,13];break;default:i("invalid distance")}f=g;d[e++]=f[0];d[e++]=f[1];d[e++]=f[2];var h,j;h=0;for(j=d.length;h=d;)t[d++]=0;for(d=0;29>=d;)z[d++]=0}t[256]=1;e=0;for(f=c.length;e=f){n&&b(n,-1);d=0;for(g=f-e;dp&&e+pk&&(B=x,k=p);if(258===p)break}s=new wa(k,e-B);n?n.length2*l[k-1]+q[k]&&(l[k]=2*l[k-1]+q[k]),t[k]=Array(l[k]),z[k]=Array(l[k]);for(B=0;Bh[B]?(t[k][p]=D,z[k][p]=n,C+=2): +(t[k][p]=h[B],z[k][p]=B,++B);K[k]=0;1===q[k]&&b(k)}m=E;j=0;for(s=g.length;j1<f&&i("undercommitted");d=0;for(g=a.length;d>>=1}return c};function Da(a,c){this.input=a;this.a=new (H?Uint8Array:Array)(32768);this.h=U.j;var b={},e;if((c||!(c={}))&&"number"===typeof c.compressionType)this.h=c.compressionType;for(e in c)b[e]=c[e];b.outputBuffer=this.a;this.z=new ma(this.input,b)}var U=qa; +Da.prototype.n=function(){var a,c,b,e,f,d,g,h=0;g=this.a;a=Ea;switch(a){case Ea:c=Math.LOG2E*Math.log(32768)-8;break;default:i(Error("invalid compression method"))}b=c<<4|a;g[h++]=b;switch(a){case Ea:switch(this.h){case U.NONE:f=0;break;case U.r:f=1;break;case U.j:f=2;break;default:i(Error("unsupported compression type"))}break;default:i(Error("invalid compression method"))}e=f<<6|0;g[h++]=e|31-(256*b+e)%31;d=ba(this.input);this.z.b=h;g=this.z.n();h=g.length;H&&(g=new Uint8Array(g.buffer),g.length<= +h+4&&(this.a=new Uint8Array(g.length+4),this.a.set(g),g=this.a),g=g.subarray(0,h+4));g[h++]=d>>24&255;g[h++]=d>>16&255;g[h++]=d>>8&255;g[h++]=d&255;return g};y("Zlib.Deflate",Da);y("Zlib.Deflate.compress",function(a,c){return(new Da(a,c)).n()});y("Zlib.Deflate.CompressionType",U);y("Zlib.Deflate.CompressionType.NONE",U.NONE);y("Zlib.Deflate.CompressionType.FIXED",U.r);y("Zlib.Deflate.CompressionType.DYNAMIC",U.j);function V(a,c){this.k=[];this.l=32768;this.e=this.g=this.c=this.q=0;this.input=H?new Uint8Array(a):a;this.s=!1;this.m=Fa;this.B=!1;if(c||!(c={}))c.index&&(this.c=c.index),c.bufferSize&&(this.l=c.bufferSize),c.bufferType&&(this.m=c.bufferType),c.resize&&(this.B=c.resize);switch(this.m){case Ga:this.b=32768;this.a=new (H?Uint8Array:Array)(32768+this.l+258);break;case Fa:this.b=0;this.a=new (H?Uint8Array:Array)(this.l);this.f=this.J;this.t=this.H;this.o=this.I;break;default:i(Error("invalid inflate mode"))}} +var Ga=0,Fa=1,Ha={D:Ga,C:Fa}; +V.prototype.p=function(){for(;!this.s;){var a=X(this,3);a&1&&(this.s=v);a>>>=1;switch(a){case 0:var c=this.input,b=this.c,e=this.a,f=this.b,d=r,g=r,h=r,m=e.length,j=r;this.e=this.g=0;d=c[b++];d===r&&i(Error("invalid uncompressed block header: LEN (first byte)"));g=d;d=c[b++];d===r&&i(Error("invalid uncompressed block header: LEN (second byte)"));g|=d<<8;d=c[b++];d===r&&i(Error("invalid uncompressed block header: NLEN (first byte)"));h=d;d=c[b++];d===r&&i(Error("invalid uncompressed block header: NLEN (second byte)"));h|= +d<<8;g===~h&&i(Error("invalid uncompressed block header: length verify"));b+g>c.length&&i(Error("input buffer is broken"));switch(this.m){case Ga:for(;f+g>e.length;){j=m-f;g-=j;if(H)e.set(c.subarray(b,b+j),f),f+=j,b+=j;else for(;j--;)e[f++]=c[b++];this.b=f;e=this.f();f=this.b}break;case Fa:for(;f+g>e.length;)e=this.f({v:2});break;default:i(Error("invalid inflate mode"))}if(H)e.set(c.subarray(b,b+g),f),f+=g,b+=g;else for(;g--;)e[f++]=c[b++];this.c=b;this.b=f;this.a=e;break;case 1:this.o(Ia,Ja);break; +case 2:Ka(this);break;default:i(Error("unknown BTYPE: "+a))}}return this.t()}; +var La=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Za=H?new Uint16Array(La):La,$a=[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,258,258],ab=H?new Uint16Array($a):$a,bb=[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],cb=H?new Uint8Array(bb):bb,db=[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],eb=H?new Uint16Array(db):db,fb=[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],gb=H?new Uint8Array(fb):fb,hb=new (H?Uint8Array:Array)(288),Y,ib;Y=0;for(ib=hb.length;Y=Y?8:255>=Y?9:279>=Y?7:8;var Ia=S(hb),jb=new (H?Uint8Array:Array)(30),kb,lb;kb=0;for(lb=jb.length;kb>>c;a.e=e-c;a.c=d;return g} +function mb(a,c){for(var b=a.g,e=a.e,f=a.input,d=a.c,g=c[0],h=c[1],m,j,s;e>>16;a.g=b>>s;a.e=e-s;a.c=d;return j&65535} +function Ka(a){function c(a,b,c){var d,e,f,g;for(g=0;gd)e>=f&&(this.b=e,b=this.f(),e=this.b),b[e++]=d;else{g=d-257;m=ab[g];0=f&&(this.b=e,b=this.f(),e=this.b);for(;m--;)b[e]=b[e++-h]}for(;8<=this.e;)this.e-=8,this.c--;this.b=e}; +V.prototype.I=function(a,c){var b=this.a,e=this.b;this.u=a;for(var f=b.length,d,g,h,m;256!==(d=mb(this,a));)if(256>d)e>=f&&(b=this.f(),f=b.length),b[e++]=d;else{g=d-257;m=ab[g];0f&&(b=this.f(),f=b.length);for(;m--;)b[e]=b[e++-h]}for(;8<=this.e;)this.e-=8,this.c--;this.b=e}; +V.prototype.f=function(){var a=new (H?Uint8Array:Array)(this.b-32768),c=this.b-32768,b,e,f=this.a;if(H)a.set(f.subarray(32768,a.length));else{b=0;for(e=a.length;bb;++b)f[b]=f[c+b];this.b=32768;return f}; +V.prototype.J=function(a){var c,b=this.input.length/this.c+1|0,e,f,d,g=this.input,h=this.a;a&&("number"===typeof a.v&&(b=a.v),"number"===typeof a.F&&(b+=a.F));2>b?(e=(g.length-this.c)/this.u[2],d=258*(e/2)|0,f=dc&&(this.a.length=c),a=this.a);return this.buffer=a};function nb(a,c){var b,e;this.input=a;this.c=0;if(c||!(c={}))c.index&&(this.c=c.index),c.verify&&(this.M=c.verify);b=a[this.c++];e=a[this.c++];switch(b&15){case Ea:this.method=Ea;break;default:i(Error("unsupported compression method"))}0!==((b<<8)+e)%31&&i(Error("invalid fcheck flag:"+((b<<8)+e)%31));e&32&&i(Error("fdict flag is not supported"));this.A=new V(a,{index:this.c,bufferSize:c.bufferSize,bufferType:c.bufferType,resize:c.resize})} +nb.prototype.p=function(){var a=this.input,c,b;c=this.A.p();this.c=this.A.c;this.M&&(b=(a[this.c++]<<24|a[this.c++]<<16|a[this.c++]<<8|a[this.c++])>>>0,b!==ba(c)&&i(Error("invalid adler-32 checksum")));return c};y("Zlib.Inflate",nb);y("Zlib.Inflate.BufferType",Ha);Ha.ADAPTIVE=Ha.C;Ha.BLOCK=Ha.D;y("Zlib.Inflate.prototype.decompress",nb.prototype.p);var ob=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];H&&new Uint16Array(ob);var pb=[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,258,258];H&&new Uint16Array(pb);var qb=[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];H&&new Uint8Array(qb);var rb=[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];H&&new Uint16Array(rb); +var sb=[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];H&&new Uint8Array(sb);var tb=new (H?Uint8Array:Array)(288),Z,ub;Z=0;for(ub=tb.length;Z=Z?8:255>=Z?9:279>=Z?7:8;S(tb);var vb=new (H?Uint8Array:Array)(30),wb,xb;wb=0;for(xb=vb.length;wb>>0}c=1;b=0;for(var f=a.length,e,d=0;0>>0};function q(a,c){this.index="number"===typeof c?c:0;this.p=0;this.buffer=a instanceof(p?Uint8Array:Array)?a:new (p?Uint8Array:Array)(32768);if(2*this.buffer.length<=this.index)throw Error("invalid index");this.buffer.length<=this.index&&this.g()}q.prototype.g=function(){var a=this.buffer,c,b=a.length,f=new (p?Uint8Array:Array)(b<<1);if(p)f.set(a);else for(c=0;c>>8&255]<<16|s[a>>>16&255]<<8|s[a>>>24&255])>>32-c:s[a]>>8-c);if(8>c+d)g=g<>c-b-1&1,8===++d&&(d=0,f[e++]=s[g],g=0,e===f.length&&(f=this.g()));f[e]=g;this.buffer=f;this.p=d;this.index=e};q.prototype.finish=function(){var a=this.buffer,c=this.index;0t;++t){for(var da=ca,ea=t,u=t,v=u,fa=7,u=u>>>1;u;u>>>=1)v<<=1,v|=u&1,--fa;da[ea]=(v<>>0}var s=ca;var w={l:function(a,c,b){return w.update(a,0,c,b)},update:function(a,c,b,f){for(var e=w.S,d="number"===typeof b?b:b=0,f="number"===typeof f?f:a.length,c=c^4294967295,d=f&7;d--;++b)c=c>>>8^e[(c^a[b])&255];for(d=f>>3;d--;b+=8)c=c>>>8^e[(c^a[b])&255],c=c>>>8^e[(c^a[b+1])&255],c=c>>>8^e[(c^a[b+2])&255],c=c>>>8^e[(c^a[b+3])&255],c=c>>>8^e[(c^a[b+4])&255],c=c>>>8^e[(c^a[b+5])&255],c=c>>>8^e[(c^a[b+6])&255],c=c>>>8^e[(c^a[b+7])&255];return(c^4294967295)>>>0}},ga,ha=[0,1996959894,3993919788,2567524794,124634137, -1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598, -565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092, -3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386, -503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920, -3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918E3,2847714899,3736837829,1202900863,817233897, -3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];ga=p?new Uint32Array(ha):ha;w.S=ga;function ia(){};function x(a){this.buffer=new (p?Uint16Array:Array)(2*a);this.length=0}x.prototype.getParent=function(a){return 2*((a-2)/4|0)};x.prototype.ga=function(a){return 2*a+2};x.prototype.push=function(a,c){var b,f,e=this.buffer,d;b=this.length;e[this.length++]=c;for(e[this.length++]=a;0e[f])d=e[b],e[b]=e[f],e[f]=d,d=e[b+1],e[b+1]=e[f+1],e[f+1]=d,b=f;else break;return this.length}; -x.prototype.pop=function(){var a,c,b=this.buffer,f,e,d;c=b[0];a=b[1];this.length-=2;b[0]=b[this.length];b[1]=b[this.length+1];for(d=0;;){e=this.ga(d);if(e>=this.length)break;e+2b[e]&&(e+=2);if(b[e]>b[d])f=b[d],b[d]=b[e],b[e]=f,f=b[d+1],b[d+1]=b[e+1],b[e+1]=f;else break;d=e}return{index:a,value:c,length:this.length}};function y(a){var c=a.length,b=0,f=Number.POSITIVE_INFINITY,e,d,g,h,k,n,l,m,j;for(m=0;mb&&(b=a[m]),a[m]>=1;for(j=n;jD;D++)switch(!0){case 143>=D:C.push([D+48,8]);break;case 255>=D:C.push([D-144+400,9]);break;case 279>=D:C.push([D-256+0,7]);break;case 287>=D:C.push([D-280+192,8]);break;default:throw"invalid literal: "+D;} -A.prototype.i=function(){var a,c,b,f=this.input;switch(this.m){case 0:c=0;for(b=f.length;c>>8&255;e[d++]=f&255;e[d++]=f>>>8&255;if(p)e.set(a,d),d+=a.length,e=e.subarray(0,d);else{b=0;for(f=a.length;bo;o++)z[o]=r[h[o]];for(g=19;4=a:return[265,a-11,1];case 14>=a:return[266,a-13,1];case 16>=a:return[267,a-15,1];case 18>=a:return[268,a-17,1];case 22>=a:return[269,a-19,2];case 26>=a:return[270,a-23,2];case 30>=a:return[271,a-27,2];case 34>=a:return[272,a-31,2];case 42>= -a:return[273,a-35,3];case 50>=a:return[274,a-43,3];case 58>=a:return[275,a-51,3];case 66>=a:return[276,a-59,3];case 82>=a:return[277,a-67,4];case 98>=a:return[278,a-83,4];case 114>=a:return[279,a-99,4];case 130>=a:return[280,a-115,4];case 162>=a:return[281,a-131,5];case 194>=a:return[282,a-163,5];case 226>=a:return[283,a-195,5];case 257>=a:return[284,a-227,5];case 258===a:return[285,a-258,0];default:throw"invalid length: "+a;}}var F=[],G,H;for(G=3;258>=G;G++)H=ka(G),F[G]=H[2]<<24|H[1]<<16|H[0]; -var la=p?new Uint32Array(F):F; -E.prototype.ha=function(a){switch(!0){case 1===a:a=[0,a-1,0];break;case 2===a:a=[1,a-2,0];break;case 3===a:a=[2,a-3,0];break;case 4===a:a=[3,a-4,0];break;case 6>=a:a=[4,a-5,1];break;case 8>=a:a=[5,a-7,1];break;case 12>=a:a=[6,a-9,2];break;case 16>=a:a=[7,a-13,2];break;case 24>=a:a=[8,a-17,3];break;case 32>=a:a=[9,a-25,3];break;case 48>=a:a=[10,a-33,4];break;case 64>=a:a=[11,a-49,4];break;case 96>=a:a=[12,a-65,5];break;case 128>=a:a=[13,a-97,5];break;case 192>=a:a=[14,a-129,6];break;case 256>=a:a= -[15,a-193,6];break;case 384>=a:a=[16,a-257,7];break;case 512>=a:a=[17,a-385,7];break;case 768>=a:a=[18,a-513,8];break;case 1024>=a:a=[19,a-769,8];break;case 1536>=a:a=[20,a-1025,9];break;case 2048>=a:a=[21,a-1537,9];break;case 3072>=a:a=[22,a-2049,10];break;case 4096>=a:a=[23,a-3073,10];break;case 6144>=a:a=[24,a-4097,11];break;case 8192>=a:a=[25,a-6145,11];break;case 12288>=a:a=[26,a-8193,12];break;case 16384>=a:a=[27,a-12289,12];break;case 24576>=a:a=[28,a-16385,13];break;case 32768>=a:a=[29,a- -24577,13];break;default:throw"invalid distance";}return a};E.prototype.sa=function(){var a=this.U,c=[],b=0,f;f=la[this.length];c[b++]=f&65535;c[b++]=f>>16&255;c[b++]=f>>24;f=this.ha(a);c[b++]=f[0];c[b++]=f[1];c[b++]=f[2];return c}; -A.prototype.M=function(a){function c(a,b){var c=a.sa(),d,e;d=0;for(e=c.length;d=e;)j[e++]=0;for(e=0;29>=e;)r[e++]=0}j[256]=1;b=0;for(f=a.length;b=f){k&&c(k,-1);e=0;for(d=f-b;eg&&c+gd&&(e=f,d=g);if(258===g)break}return new E(d,c-e)}; -A.prototype.ia=function(a,c,b,f){var e=new (p?Uint32Array:Array)(a+b),d,g,h=new (p?Uint32Array:Array)(316),k=new (p?Uint8Array:Array)(19);for(d=g=0;da)for(;0a?a:138,f>a-3&&f=f?(h[b++]=17,h[b++]=f-3,k[17]++):(h[b++]=18,h[b++]=f-11,k[18]++),a-=f;else if(h[b++]=e[d],k[e[d]]++, -a--,3>a)for(;0a?a:6,f>a-3&&f2*e[j-1]+d[j]&&(e[j]=2*e[j-1]+d[j]),h[j]=Array(e[j]),k[j]=Array(e[j]);for(l=0;la[l]?(h[j][m]=b,k[j][m]=c,r+=2):(h[j][m]=a[l],k[j][m]=l,++l);n[j]=0;1===d[j]&&f(j)}return g}; -A.prototype.z=function(a){var c=new (p?Uint16Array:Array)(a.length),b=[],f=[],e=0,d,g,h;d=0;for(g=a.length;d1<e)throw"undercommitted";d=0;for(g=a.length;d>>=1}return c};function I(a,c){this.input=a;this.a=new (p?Uint8Array:Array)(32768);this.m=J.r;var b={},f;if((c||!(c={}))&&"number"===typeof c.compressionType)this.m=c.compressionType;for(f in c)b[f]=c[f];b.outputBuffer=this.a;this.N=new A(this.input,b)}var J=ja; -I.prototype.i=function(){var a,c,b,f=0;b=this.a;a=K;switch(a){case K:c=Math.LOG2E*Math.log(32768)-8;break;default:throw Error("invalid compression method");}c=c<<4|a;b[f++]=c;switch(a){case K:switch(this.m){case J.NONE:a=0;break;case J.C:a=1;break;case J.r:a=2;break;default:throw Error("unsupported compression type");}break;default:throw Error("invalid compression method");}a=a<<6|0;b[f++]=a|31-(256*c+a)%31;c=ba(this.input);this.N.b=f;b=this.N.i();f=b.length;p&&(b=new Uint8Array(b.buffer),b.length<= -f+4&&(this.a=new Uint8Array(b.length+4),this.a.set(b),b=this.a),b=b.subarray(0,f+4));b[f++]=c&255;b[f++]=c>>8&255;b[f++]=c>>16&255;b[f++]=c>>24&255;return b};i("Zlib.Deflate",I,void 0);i("Zlib.Deflate.compress",function(a,c){return(new I(a,c)).i()},void 0);i("Zlib.Deflate.CompressionType",J,void 0);i("Zlib.Deflate.CompressionType.NONE",J.NONE,void 0);i("Zlib.Deflate.CompressionType.FIXED",J.C,void 0);i("Zlib.Deflate.CompressionType.DYNAMIC",J.r,void 0);function L(a,c){this.input=a;this.b=this.c=0;this.h={};if(c&&(c.flags&&(this.h=c.flags),"string"===typeof c.filename&&(this.filename=c.filename),"string"===typeof c.comment&&(this.comment=c.comment),c.deflateOptions))this.n=c.deflateOptions;this.n||(this.n={})} -L.prototype.i=function(){var a,c,b,f,e,d=new (p?Uint8Array:Array)(32768);b=0;var g=this.input,h=this.c;c=this.filename;var k=this.comment;d[b++]=31;d[b++]=139;d[b++]=8;a=0;this.h.fname&&(a|=ma);this.h.fcomment&&(a|=na);this.h.fhcrc&&(a|=oa);d[b++]=a;a=(Date.now?Date.now():+new Date)/1E3|0;d[b++]=a&255;d[b++]=a>>>8&255;d[b++]=a>>>16&255;d[b++]=a>>>24&255;d[b++]=0;d[b++]=pa;if(void 0!==this.h.fname){f=0;for(e=c.length;f>>8&255),d[b++]=a&255;d[b++]=0}if(this.h.comment){f= -0;for(e=k.length;f>>8&255),d[b++]=a&255;d[b++]=0}this.h.fhcrc&&(c=w.l(d,0,b)&65535,d[b++]=c&255,d[b++]=c>>>8&255);this.n.outputBuffer=d;this.n.outputIndex=b;b=new A(g,this.n);d=b.i();b=b.b;p&&(b+8>d.buffer.byteLength?(this.a=new Uint8Array(b+8),this.a.set(new Uint8Array(d.buffer)),d=this.a):d=new Uint8Array(d.buffer));c=w.l(g);d[b++]=c&255;d[b++]=c>>>8&255;d[b++]=c>>>16&255;d[b++]=c>>>24&255;e=g.length;d[b++]=e&255;d[b++]=e>>>8&255;d[b++]=e>>>16&255;d[b++]= -e>>>24&255;this.c=h;p&&b=T?8:255>=T?9:279>=T?7:8;var za=y(S),U=new (p?Uint8Array:Array)(30),V,Aa;V=0;for(Aa=U.length;V>>=1;switch(a){case 0:this.pa();break;case 1:this.oa();break;case 2:this.na();break;default:throw Error("unknown BTYPE: "+a);}}; -M.prototype.e=function(a){for(var c=this.k,b=this.f,f=this.input,e=this.c,d;b>>a;this.f=b-a;this.c=e;return d};M.prototype.o=function(a){for(var c=this.k,b=this.f,f=this.input,e=this.c,d=a[0],a=a[1],g;b>>16;this.k=c>>d;this.f=b-d;this.c=e;return f&65535}; -M.prototype.pa=function(){var a=this.input,c=this.c,b=this.a,f=this.b,e,d,g,h=b.length;this.f=this.k=0;e=a[c++];if(void 0===e)throw Error("invalid uncompressed block header: LEN (first byte)");d=e;e=a[c++];if(void 0===e)throw Error("invalid uncompressed block header: LEN (second byte)");d|=e<<8;e=a[c++];if(void 0===e)throw Error("invalid uncompressed block header: NLEN (first byte)");g=e;e=a[c++];if(void 0===e)throw Error("invalid uncompressed block header: NLEN (second byte)");if(d===~(g|e<<8))throw Error("invalid uncompressed block header: length verify"); -if(c+d>a.length)throw Error("input buffer is broken");switch(this.u){case O:for(;f+d>b.length;){e=h-f;d-=e;if(p)b.set(a.subarray(c,c+e),f),f+=e,c+=e;else for(;e--;)b[f++]=a[c++];this.b=f;b=this.g();f=this.b}break;case N:for(;f+d>b.length;)b=this.g({I:2});break;default:throw Error("invalid inflate mode");}if(p)b.set(a.subarray(c,c+d),f),f+=d,c+=d;else for(;d--;)b[f++]=a[c++];this.c=c;this.b=f;this.a=b};M.prototype.oa=function(){this.w(za,Ba)}; -M.prototype.na=function(){function a(a,b,c){var d,e,f;for(f=0;fd)f>=e&&(this.b=f,b=this.g(),f=this.b),b[f++]=d;else{d-=257;h=ta[d];0=e&&(this.b=f,b=this.g(),f=this.b);for(;h--;)b[f]=b[f++-g]}for(;8<=this.f;)this.f-=8,this.c--;this.b=f}; -M.prototype.Y=function(a,c){var b=this.a,f=this.b;this.H=a;for(var e=b.length,d,g,h;256!==(d=this.o(a));)if(256>d)f>=e&&(b=this.g(),e=b.length),b[f++]=d;else{d-=257;h=ta[d];0e&&(b=this.g(),e=b.length);for(;h--;)b[f]=b[f++-g]}for(;8<=this.f;)this.f-=8,this.c--;this.b=f}; -M.prototype.g=function(){var a=new (p?Uint8Array:Array)(this.b-32768),c=this.b-32768,b,f,e=this.a;if(p)a.set(e.subarray(32768,a.length));else{b=0;for(f=a.length;bb;++b)e[b]=e[c+b];this.b=32768;return e}; -M.prototype.ba=function(a){var c=this.input.length/this.c+1|0,b=this.input,f=this.a;a&&("number"===typeof a.I&&(c=a.I),"number"===typeof a.T&&(c+=a.T));2>c?(a=(b.length-this.c)/this.H[2],a=258*(a/2)|0,a=ac&&(this.a.length=c),a=this.a);return this.buffer=a};function W(a){this.input=a;this.c=0;this.member=[]}W.prototype.j=function(){for(var a=this.input.length;this.c>>0;if(w.l(f)!==c)throw Error("invalid CRC-32 checksum: 0x"+w.l(f).toString(16)+" / 0x"+c.toString(16));a.xa=c=(g[b++]| -g[b++]<<8|g[b++]<<16|g[b++]<<24)>>>0;if((f.length&4294967295)!==c)throw Error("invalid input size: "+(f.length&4294967295)+" / "+c);this.member.push(a);this.c=b};W.prototype.$=function(a,c){return a+c};W.prototype.W=function(){var a=this.member,c,b,f=0,e=0;c=0;for(b=a.length;c=Z?8:255>=Z?9:279>=Z?7:8;y(Y);var Ia=new (p?Uint8Array:Array)(30),$,Ja;$=0;for(Ja=Ia.length;$>>0;b=a}for(var e=1,d=0,g=b.length,h,j=0;0>>0};function J(b,a){this.index="number"===typeof a?a:0;this.n=0;this.buffer=b instanceof(I?Uint8Array:Array)?b:new (I?Uint8Array:Array)(32768);2*this.buffer.length<=this.index&&m(Error("invalid index"));this.buffer.length<=this.index&&this.f()}J.prototype.f=function(){var b=this.buffer,a,c=b.length,f=new (I?Uint8Array:Array)(c<<1);if(I)f.set(b);else for(a=0;a>>8&255]<<16|L[b>>>16&255]<<8|L[b>>>24&255])>>32-a:L[b]>>8-a);if(8>a+d)g=g<>a-h-1&1,8===++d&&(d=0,f[e++]=L[g],g=0,e===f.length&&(f=this.f()));f[e]=g;this.buffer=f;this.n=d;this.index=e};J.prototype.finish=function(){var b=this.buffer,a=this.index,c;0ia;++ia){for(var R=ia,ja=R,ka=7,R=R>>>1;R;R>>>=1)ja<<=1,ja|=R&1,--ka;da[ia]=(ja<>>0}var L=da;var S={k:function(b,a,c){return S.update(b,0,a,c)},update:function(b,a,c,f){for(var e=S.M,d="number"===typeof c?c:c=0,g="number"===typeof f?f:b.length,a=a^4294967295,d=g&7;d--;++c)a=a>>>8^e[(a^b[c])&255];for(d=g>>3;d--;c+=8)a=a>>>8^e[(a^b[c])&255],a=a>>>8^e[(a^b[c+1])&255],a=a>>>8^e[(a^b[c+2])&255],a=a>>>8^e[(a^b[c+3])&255],a=a>>>8^e[(a^b[c+4])&255],a=a>>>8^e[(a^b[c+5])&255],a=a>>>8^e[(a^b[c+6])&255],a=a>>>8^e[(a^b[c+7])&255];return(a^4294967295)>>>0}},la=S,ma,na=[0,1996959894,3993919788,2567524794, +124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304, +3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486, +2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580, +2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221, +2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918E3,2847714899,3736837829,1202900863, +817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];ma=I?new Uint32Array(na):na;la.M=ma;function qa(){};function ra(b){this.buffer=new (I?Uint16Array:Array)(2*b);this.length=0}ra.prototype.getParent=function(b){return 2*((b-2)/4|0)};ra.prototype.push=function(b,a){var c,f,e=this.buffer,d;c=this.length;e[this.length++]=a;for(e[this.length++]=b;0e[f])d=e[c],e[c]=e[f],e[f]=d,d=e[c+1],e[c+1]=e[f+1],e[f+1]=d,c=f;else break;return this.length}; +ra.prototype.pop=function(){var b,a,c=this.buffer,f,e,d;a=c[0];b=c[1];this.length-=2;c[0]=c[this.length];c[1]=c[this.length+1];for(d=0;;){e=2*d+2;if(e>=this.length)break;e+2c[e]&&(e+=2);if(c[e]>c[d])f=c[d],c[d]=c[e],c[e]=f,f=c[d+1],c[d+1]=c[e+1],c[e+1]=f;else break;d=e}return{index:b,value:a,length:this.length}};function T(b){var a=b.length,c=0,f=Number.POSITIVE_INFINITY,e,d,g,h,j,i,r,l,k;for(l=0;lc&&(c=b[l]),b[l]>=1;for(k=i;kU;U++)switch(t){case 143>=U:va.push([U+48,8]);break;case 255>=U:va.push([U-144+400,9]);break;case 279>=U:va.push([U-256+0,7]);break;case 287>=U:va.push([U-280+192,8]);break;default:m("invalid literal: "+U)} +sa.prototype.h=function(){var b,a,c,f,e=this.input;switch(this.l){case 0:c=0;for(f=e.length;c>>8&255;k[p++]=i&255;k[p++]=i>>>8&255;if(I)k.set(d,p),p+=d.length,k=k.subarray(0,p);else{r=0;for(l=d.length;rz)for(;0z?z:138,H>z-3&&H=H?(M[K++]=17,M[K++]=H-3,P[17]++):(M[K++]=18,M[K++]=H-11,P[18]++),z-=H;else if(M[K++]=N[y],P[N[y]]++,z--,3>z)for(;0z?z:6,H>z-3&&HG;G++)xa[G]=oa[ea[G]];for(D=19;4=b:return[265,b-11,1];case 14>=b:return[266,b-13,1];case 16>=b:return[267,b-15,1];case 18>=b:return[268,b-17,1];case 22>=b:return[269,b-19,2];case 26>=b:return[270,b-23,2];case 30>=b:return[271,b-27,2];case 34>=b:return[272,b- +31,2];case 42>=b:return[273,b-35,3];case 50>=b:return[274,b-43,3];case 58>=b:return[275,b-51,3];case 66>=b:return[276,b-59,3];case 82>=b:return[277,b-67,4];case 98>=b:return[278,b-83,4];case 114>=b:return[279,b-99,4];case 130>=b:return[280,b-115,4];case 162>=b:return[281,b-131,5];case 194>=b:return[282,b-163,5];case 226>=b:return[283,b-195,5];case 257>=b:return[284,b-227,5];case 258===b:return[285,b-258,0];default:m("invalid length: "+b)}}var Ea=[],Da,Fa; +for(Da=3;258>=Da;Da++)Fa=Ca(),Ea[Da]=Fa[2]<<24|Fa[1]<<16|Fa[0];var Ga=I?new Uint32Array(Ea):Ea; +function wa(b,a){function c(a,b){var c=a.O,d=[],e=0,f;f=Ga[a.length];d[e++]=f&65535;d[e++]=f>>16&255;d[e++]=f>>24;var g;switch(t){case 1===c:g=[0,c-1,0];break;case 2===c:g=[1,c-2,0];break;case 3===c:g=[2,c-3,0];break;case 4===c:g=[3,c-4,0];break;case 6>=c:g=[4,c-5,1];break;case 8>=c:g=[5,c-7,1];break;case 12>=c:g=[6,c-9,2];break;case 16>=c:g=[7,c-13,2];break;case 24>=c:g=[8,c-17,3];break;case 32>=c:g=[9,c-25,3];break;case 48>=c:g=[10,c-33,4];break;case 64>=c:g=[11,c-49,4];break;case 96>=c:g=[12,c- +65,5];break;case 128>=c:g=[13,c-97,5];break;case 192>=c:g=[14,c-129,6];break;case 256>=c:g=[15,c-193,6];break;case 384>=c:g=[16,c-257,7];break;case 512>=c:g=[17,c-385,7];break;case 768>=c:g=[18,c-513,8];break;case 1024>=c:g=[19,c-769,8];break;case 1536>=c:g=[20,c-1025,9];break;case 2048>=c:g=[21,c-1537,9];break;case 3072>=c:g=[22,c-2049,10];break;case 4096>=c:g=[23,c-3073,10];break;case 6144>=c:g=[24,c-4097,11];break;case 8192>=c:g=[25,c-6145,11];break;case 12288>=c:g=[26,c-8193,12];break;case 16384>= +c:g=[27,c-12289,12];break;case 24576>=c:g=[28,c-16385,13];break;case 32768>=c:g=[29,c-24577,13];break;default:m("invalid distance")}f=g;d[e++]=f[0];d[e++]=f[1];d[e++]=f[2];var h,i;h=0;for(i=d.length;h=d;)v[d++]=0;for(d=0;29>=d;)x[d++]=0}v[256]=1;f=0;for(e=a.length;f=e){l&&c(l,-1);d=0;for(g=e-f;ds&&f+sn&&(C=A,n=s);if(258===s)break}r=new Ba(n,f-C);l?l.length2*k[n-1]+p[n]&&(k[n]=2*k[n-1]+p[n]),v[n]=Array(k[n]),x[n]=Array(k[n]);for(C=0;Ch[C]?(v[n][s]=E,x[n][s]=l,D+=2): +(v[n][s]=h[C],x[n][s]=C,++C);F[n]=0;1===p[n]&&c(n)}j=u;i=0;for(r=g.length;i1<e&&m("undercommitted");d=0;for(g=b.length;d>>=1}return a};function Ha(b,a){this.input=b;this.a=new (I?Uint8Array:Array)(32768);this.l=V.p;var c={},f;if((a||!(a={}))&&"number"===typeof a.compressionType)this.l=a.compressionType;for(f in a)c[f]=a[f];c.outputBuffer=this.a;this.H=new sa(this.input,c)}var V=ua; +Ha.prototype.h=function(){var b,a,c,f,e,d,g,h=0;g=this.a;b=Ia;switch(b){case Ia:a=Math.LOG2E*Math.log(32768)-8;break;default:m(Error("invalid compression method"))}c=a<<4|b;g[h++]=c;switch(b){case Ia:switch(this.l){case V.NONE:e=0;break;case V.v:e=1;break;case V.p:e=2;break;default:m(Error("unsupported compression type"))}break;default:m(Error("invalid compression method"))}f=e<<6|0;g[h++]=f|31-(256*c+f)%31;d=ca(this.input);this.H.b=h;g=this.H.h();h=g.length;I&&(g=new Uint8Array(g.buffer),g.length<= +h+4&&(this.a=new Uint8Array(g.length+4),this.a.set(g),g=this.a),g=g.subarray(0,h+4));g[h++]=d>>24&255;g[h++]=d>>16&255;g[h++]=d>>8&255;g[h++]=d&255;return g};B("Zlib.Deflate",Ha);B("Zlib.Deflate.compress",function(b,a){return(new Ha(b,a)).h()});B("Zlib.Deflate.CompressionType",V);B("Zlib.Deflate.CompressionType.NONE",V.NONE);B("Zlib.Deflate.CompressionType.FIXED",V.v);B("Zlib.Deflate.CompressionType.DYNAMIC",V.p);function Ja(b,a){this.input=b;this.b=this.c=0;this.g={};a&&(a.flags&&(this.g=a.flags),"string"===typeof a.filename&&(this.filename=a.filename),"string"===typeof a.comment&&(this.comment=a.comment),a.deflateOptions&&(this.m=a.deflateOptions));this.m||(this.m={})} +Ja.prototype.h=function(){var b,a,c,f,e,d,g,h,j=new (I?Uint8Array:Array)(32768),i=0,r=this.input,l=this.c,k=this.filename,p=this.comment;j[i++]=31;j[i++]=139;j[i++]=8;b=0;this.g.fname&&(b|=Ka);this.g.fcomment&&(b|=La);this.g.fhcrc&&(b|=Ma);j[i++]=b;a=(Date.now?Date.now():+new Date)/1E3|0;j[i++]=a&255;j[i++]=a>>>8&255;j[i++]=a>>>16&255;j[i++]=a>>>24&255;j[i++]=0;j[i++]=Na;if(this.g.fname!==q){g=0;for(h=k.length;g>>8&255),j[i++]=d&255;j[i++]=0}if(this.g.comment){g= +0;for(h=p.length;g>>8&255),j[i++]=d&255;j[i++]=0}this.g.fhcrc&&(c=S.k(j,0,i)&65535,j[i++]=c&255,j[i++]=c>>>8&255);this.m.outputBuffer=j;this.m.outputIndex=i;e=new sa(r,this.m);j=e.h();i=e.b;I&&(i+8>j.buffer.byteLength?(this.a=new Uint8Array(i+8),this.a.set(new Uint8Array(j.buffer)),j=this.a):j=new Uint8Array(j.buffer));f=S.k(r);j[i++]=f&255;j[i++]=f>>>8&255;j[i++]=f>>>16&255;j[i++]=f>>>24&255;h=r.length;j[i++]=h&255;j[i++]=h>>>8&255;j[i++]=h>>>16&255;j[i++]= +h>>>24&255;this.c=l;I&&i>>=1;switch(b){case 0:var a=this.input,c=this.c,f=this.a,e=this.b,d=q,g=q,h=q,j=f.length,i=q;this.e=this.j=0;d=a[c++];d===q&&m(Error("invalid uncompressed block header: LEN (first byte)"));g=d;d=a[c++];d===q&&m(Error("invalid uncompressed block header: LEN (second byte)"));g|=d<<8;d=a[c++];d===q&&m(Error("invalid uncompressed block header: NLEN (first byte)"));h=d;d=a[c++];d===q&&m(Error("invalid uncompressed block header: NLEN (second byte)"));h|= +d<<8;g===~h&&m(Error("invalid uncompressed block header: length verify"));c+g>a.length&&m(Error("input buffer is broken"));switch(this.s){case Pa:for(;e+g>f.length;){i=j-e;g-=i;if(I)f.set(a.subarray(c,c+i),e),e+=i,c+=i;else for(;i--;)f[e++]=a[c++];this.b=e;f=this.f();e=this.b}break;case Oa:for(;e+g>f.length;)f=this.f({C:2});break;default:m(Error("invalid inflate mode"))}if(I)f.set(a.subarray(c,c+g),e),e+=g,c+=g;else for(;g--;)f[e++]=a[c++];this.c=c;this.b=e;this.a=f;break;case 1:this.t(db,eb);break; +case 2:fb(this);break;default:m(Error("unknown BTYPE: "+b))}}return this.A()}; +var gb=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],hb=I?new Uint16Array(gb):gb,ib=[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,258,258],jb=I?new Uint16Array(ib):ib,kb=[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],lb=I?new Uint8Array(kb):kb,mb=[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],nb=I?new Uint16Array(mb):mb,ob=[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],pb=I?new Uint8Array(ob):ob,qb=new (I?Uint8Array:Array)(288),Z,rb;Z=0;for(rb=qb.length;Z=Z?8:255>=Z?9:279>=Z?7:8;var db=T(qb),sb=new (I?Uint8Array:Array)(30),tb,ub;tb=0;for(ub=sb.length;tb>>a;b.e=f-a;b.c=d;return g} +function vb(b,a){for(var c=b.j,f=b.e,e=b.input,d=b.c,g=a[0],h=a[1],j,i,r;f>>16;b.j=c>>r;b.e=f-r;b.c=d;return i&65535} +function fb(b){function a(a,c,b){var d,f,e,g;for(g=0;gd)f>=e&&(this.b=f,c=this.f(),f=this.b),c[f++]=d;else{g=d-257;j=jb[g];0=e&&(this.b=f,c=this.f(),f=this.b);for(;j--;)c[f]=c[f++-h]}for(;8<=this.e;)this.e-=8,this.c--;this.b=f}; +W.prototype.R=function(b,a){var c=this.a,f=this.b;this.B=b;for(var e=c.length,d,g,h,j;256!==(d=vb(this,b));)if(256>d)f>=e&&(c=this.f(),e=c.length),c[f++]=d;else{g=d-257;j=jb[g];0e&&(c=this.f(),e=c.length);for(;j--;)c[f]=c[f++-h]}for(;8<=this.e;)this.e-=8,this.c--;this.b=f}; +W.prototype.f=function(){var b=new (I?Uint8Array:Array)(this.b-32768),a=this.b-32768,c,f,e=this.a;if(I)b.set(e.subarray(32768,b.length));else{c=0;for(f=b.length;cc;++c)e[c]=e[a+c];this.b=32768;return e}; +W.prototype.S=function(b){var a,c=this.input.length/this.c+1|0,f,e,d,g=this.input,h=this.a;b&&("number"===typeof b.C&&(c=b.C),"number"===typeof b.N&&(c+=b.N));2>c?(f=(g.length-this.c)/this.B[2],d=258*(f/2)|0,e=da&&(this.a.length=a),b=this.a);return this.buffer=b};function wb(b){this.input=b;this.c=0;this.member=[]} +wb.prototype.i=function(){for(var b=this.input.length;this.c>>0;S.k(e)!==r&&m(Error("invalid CRC-32 checksum: 0x"+S.k(e).toString(16)+" / 0x"+r.toString(16))); +a.Z=c=(l[k++]|l[k++]<<8|l[k++]<<16|l[k++]<<24)>>>0;(e.length&4294967295)!==c&&m(Error("invalid input size: "+(e.length&4294967295)+" / "+c));this.member.push(a);this.c=k}var p=this.member,u,v,x=0,F=0,w;u=0;for(v=p.length;u>>0,c!==ca(a)&&m(Error("invalid adler-32 checksum")));return a};B("Zlib.Inflate",xb);B("Zlib.Inflate.BufferType",Qa);Qa.ADAPTIVE=Qa.K;Qa.BLOCK=Qa.L;B("Zlib.Inflate.prototype.decompress",xb.prototype.i);var yb=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];I&&new Uint16Array(yb);var zb=[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,258,258];I&&new Uint16Array(zb);var Ab=[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];I&&new Uint8Array(Ab);var Bb=[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];I&&new Uint16Array(Bb); +var Cb=[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];I&&new Uint8Array(Cb);var Db=new (I?Uint8Array:Array)(288),$,Eb;$=0;for(Eb=Db.length;$=$?8:255>=$?9:279>=$?7:8;T(Db);var Fb=new (I?Uint8Array:Array)(30),Gb,Hb;Gb=0;for(Hb=Fb.length;Gb - + + diff --git a/package.json b/package.json index dc60bb4..3ffb65a 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "author": "imaya ", "name": "zlibjs", "description": "zlib and gzip implementation in JavaScript", - "version": "0.1.1", + "version": "0.1.2", "main": "./bin/node-zlib.js", "homepage": "https://github.com/imaya/zlib.js", "repository": { diff --git a/src/bitstream.js b/src/bitstream.js index 2e6c38a..22d67ec 100644 --- a/src/bitstream.js +++ b/src/bitstream.js @@ -108,6 +108,19 @@ Zlib.BitStream.prototype.writeBits = function(number, n, reverse) { /** @type {number} loop counter. */ var i; + /** + * 32-bit 整数のビット順を逆にする + * @param {number} n 32-bit integer. + * @return {number} reversed 32-bit integer. + * @private + */ + function rev32_(n) { + return (Zlib.BitStream.ReverseTable[n & 0xFF] << 24) | + (Zlib.BitStream.ReverseTable[n >>> 8 & 0xFF] << 16) | + (Zlib.BitStream.ReverseTable[n >>> 16 & 0xFF] << 8) | + Zlib.BitStream.ReverseTable[n >>> 24 & 0xFF]; + } + if (reverse && n > 1) { number = n > 8 ? rev32_(number) >> (32 - n) : @@ -143,18 +156,6 @@ Zlib.BitStream.prototype.writeBits = function(number, n, reverse) { this.index = index; }; -/** - * 32-bit 整数のビット順を逆にする - * @param {number} n 32-bit integer. - * @return {number} reversed 32-bit integer. - * @private - */ -function rev32_(n) { - return (Zlib.BitStream.ReverseTable[n & 0xFF] << 24) | - (Zlib.BitStream.ReverseTable[n >>> 8 & 0xFF] << 16) | - (Zlib.BitStream.ReverseTable[n >>> 16 & 0xFF] << 8) | - Zlib.BitStream.ReverseTable[n >>> 24 & 0xFF]; -} /** * ストリームの終端処理を行う diff --git a/src/deflate.js b/src/deflate.js index 5114e27..ca56487 100644 --- a/src/deflate.js +++ b/src/deflate.js @@ -186,10 +186,10 @@ Zlib.Deflate.prototype.compress = function() { } // adler32 - output[pos++] = (adler ) & 0xff; - output[pos++] = (adler >> 8) & 0xff; - output[pos++] = (adler >> 16) & 0xff; output[pos++] = (adler >> 24) & 0xff; + output[pos++] = (adler >> 16) & 0xff; + output[pos++] = (adler >> 8) & 0xff; + output[pos++] = (adler ) & 0xff; return output; }; diff --git a/src/inflate.js b/src/inflate.js index dd33bc5..f682ad4 100644 --- a/src/inflate.js +++ b/src/inflate.js @@ -133,9 +133,10 @@ Zlib.Inflate.prototype.decompress = function() { // verify adler-32 if (this.verify) { - adler32 = + adler32 = ( input[this.ip++] << 24 | input[this.ip++] << 16 | - input[this.ip++] << 8 | input[this.ip++]; + input[this.ip++] << 8 | input[this.ip++] + ) >>> 0; if (adler32 !== Zlib.Adler32(buffer)) { throw new Error('invalid adler-32 checksum'); diff --git a/src/rawdeflate.js b/src/rawdeflate.js index 8083d74..3d39b59 100644 --- a/src/rawdeflate.js +++ b/src/rawdeflate.js @@ -521,19 +521,20 @@ Zlib.RawDeflate.prototype.fixedHuffman = function(dataArray, stream) { * @param {!number} backwardDistance マッチ位置との距離. * @constructor */ -function Lz77Match(length, backwardDistance) { +Zlib.RawDeflate.Lz77Match = function(length, backwardDistance) { /** @type {number} match length. */ this.length = length; /** @type {number} backward distance. */ this.backwardDistance = backwardDistance; -} +}; + /** * 長さ符号テーブル. * [コード, 拡張ビット, 拡張ビット長] の配列となっている. * @const * @type {!(Array.|Uint32Array)} */ -Lz77Match.LengthCodeTable = (function(table) { +Zlib.RawDeflate.Lz77Match.LengthCodeTable = (function(table) { return USE_TYPEDARRAY ? new Uint32Array(table) : table; })((function() { /** @type {!Array} */ @@ -596,7 +597,7 @@ Lz77Match.LengthCodeTable = (function(table) { * @return {!Array.} コード、拡張ビット、拡張ビット長の配列. * @private */ -Lz77Match.prototype.getDistanceCode_ = function(dist) { +Zlib.RawDeflate.Lz77Match.prototype.getDistanceCode_ = function(dist) { /** @type {!Array.} distance code table. */ var r; @@ -643,7 +644,7 @@ Lz77Match.prototype.getDistanceCode_ = function(dist) { * [ CODE, EXTRA-BIT-LEN, EXTRA, CODE, EXTRA-BIT-LEN, EXTRA ] * @return {!Array.} LZ77 符号化 byte array. */ -Lz77Match.prototype.toLz77Array = function() { +Zlib.RawDeflate.Lz77Match.prototype.toLz77Array = function() { /** @type {number} */ var length = this.length; /** @type {number} */ @@ -656,7 +657,7 @@ Lz77Match.prototype.toLz77Array = function() { var code; // length - code = Lz77Match.LengthCodeTable[length]; + code = Zlib.RawDeflate.Lz77Match.LengthCodeTable[length]; codeArray[pos++] = code & 0xffff; codeArray[pos++] = (code >> 16) & 0xff; codeArray[pos++] = code >> 24; @@ -692,9 +693,9 @@ Zlib.RawDeflate.prototype.lz77 = function(dataArray) { var windowSize = Zlib.RawDeflate.WindowSize; /** @type {Array.>} match list */ var matchList; - /** @type {Lz77Match} longest match */ + /** @type {Zlib.RawDeflate.Lz77Match} longest match */ var longestMatch; - /** @type {Lz77Match} previous longest match */ + /** @type {Zlib.RawDeflate.Lz77Match} previous longest match */ var prevMatch; /** @type {!(Array.|Uint16Array)} lz77 buffer */ var lz77buf = USE_TYPEDARRAY ? @@ -721,7 +722,7 @@ Zlib.RawDeflate.prototype.lz77 = function(dataArray) { /** * マッチデータの書き込み - * @param {Lz77Match} match LZ77 Match data. + * @param {Zlib.RawDeflate.Lz77Match} match LZ77 Match data. * @param {!number} offset スキップ開始位置(相対指定). * @private */ @@ -832,7 +833,7 @@ Zlib.RawDeflate.prototype.lz77 = function(dataArray) { * @param {!Object} data plain data byte array. * @param {!number} position plain data byte array position. * @param {!Array.} matchList 候補となる位置の配列. - * @return {!Lz77Match} 最長かつ最短距離のマッチオブジェクト. + * @return {!Zlib.RawDeflate.Lz77Match} 最長かつ最短距離のマッチオブジェクト. * @private */ Zlib.RawDeflate.prototype.searchLongestMatch_ = @@ -877,7 +878,7 @@ function(data, position, matchList) { } } - return new Lz77Match(matchMax, position - currentMatch); + return new Zlib.RawDeflate.Lz77Match(matchMax, position - currentMatch); }; /** diff --git a/src/rawinflate_stream.js b/src/rawinflate_stream.js index ed623a8..f16a2a8 100644 --- a/src/rawinflate_stream.js +++ b/src/rawinflate_stream.js @@ -318,9 +318,9 @@ Zlib.RawInflateStream.prototype.readBlockHeader = function() { this.status = Zlib.RawInflateStream.Status.BLOCK_HEADER_START; - save(this); + this.save_(); if ((hdr = this.readBits(3)) < 0) { - restore(this); + this.restore_(); return -1; } @@ -546,25 +546,23 @@ Zlib.RawInflateStream.prototype.parseFixedHuffmanBlock = function() { /** * オブジェクトのコンテキストを別のプロパティに退避する. - * @param {Zlib.RawInflateStream} target 対象オブジェクト. * @private */ -function save(target) { - target.ip_ = target.ip; - target.bitsbuflen_ = target.bitsbuflen; - target.bitsbuf_ = target.bitsbuf; -} +Zlib.RawInflateStream.prototype.save_ = function() { + this.ip_ = this.ip; + this.bitsbuflen_ = this.bitsbuflen; + this.bitsbuf_ = this.bitsbuf; +}; /** * 別のプロパティに退避したコンテキストを復元する. - * @param {Zlib.RawInflateStream} target 対象オブジェクト. * @private */ -function restore(target) { - target.ip = target.ip_; - target.bitsbuflen = target.bitsbuflen_; - target.bitsbuf = target.bitsbuf_; -} +Zlib.RawInflateStream.prototype.restore_ = function() { + this.ip = this.ip_; + this.bitsbuflen = this.bitsbuflen_; + this.bitsbuf = this.bitsbuf_; +}; /** * parse dynamic huffman block. @@ -592,19 +590,19 @@ Zlib.RawInflateStream.prototype.parseDynamicHuffmanBlock = function() { this.status = Zlib.RawInflateStream.Status.BLOCK_BODY_START; - save(this); + this.save_(); hlit = this.readBits(5) + 257; hdist = this.readBits(5) + 1; hclen = this.readBits(4) + 4; if (hlit < 0 || hdist < 0 || hclen < 0) { - restore(this); + this.restore_(); return -1; } try { parseDynamicHuffmanBlockImpl.call(this); } catch(e) { - restore(this); + this.restore_(); return -1; } @@ -713,12 +711,12 @@ Zlib.RawInflateStream.prototype.decodeHuffman = function() { this.status = Zlib.RawInflateStream.Status.DECODE_BLOCK_START; while (true) { - save(this); + this.save_(); code = this.readCodeByTable(litlen); if (code < 0) { this.op = op; - restore(this); + this.restore_(); return -1; } @@ -744,7 +742,7 @@ Zlib.RawInflateStream.prototype.decodeHuffman = function() { bits = this.readBits(Zlib.RawInflateStream.LengthExtraTable[ti]); if (bits < 0) { this.op = op; - restore(this); + this.restore_(); return -1; } codeLength += bits; @@ -754,7 +752,7 @@ Zlib.RawInflateStream.prototype.decodeHuffman = function() { code = this.readCodeByTable(dist); if (code < 0) { this.op = op; - restore(this); + this.restore_(); return -1; } codeDist = Zlib.RawInflateStream.DistCodeTable[code]; @@ -762,7 +760,7 @@ Zlib.RawInflateStream.prototype.decodeHuffman = function() { bits = this.readBits(Zlib.RawInflateStream.DistExtraTable[code]); if (bits < 0) { this.op = op; - restore(this); + this.restore_(); return -1; } codeDist += bits; diff --git a/test/browser-plain-test.js b/test/browser-plain-test.js index eb78e4d..44c555d 100644 --- a/test/browser-plain-test.js +++ b/test/browser-plain-test.js @@ -338,7 +338,9 @@ function inflateTest(mode, testData, compressionType) { console.log("deflated data size:", deflate.length); // inflate - inflate = (new Zlib.Inflate(deflate)).decompress(); + inflate = (new Zlib.Inflate(deflate, { + verify: true + })).decompress(); console.log("inflated data size:", inflate.length) // assertion diff --git a/test/browser-test.js b/test/browser-test.js index 29edd66..a3a6221 100644 --- a/test/browser-test.js +++ b/test/browser-test.js @@ -161,7 +161,8 @@ buster.testCase( var inflator = new Zlib.Inflate(decodedData, { bufferType: Zlib.Inflate.BufferType.BLOCK, - bufferSize: 41152 + bufferSize: 41152, + verify: true }); var inflated = inflator.decompress(); @@ -254,6 +255,11 @@ function inflateTest(mode, testData, compressionType, inflateOption) { console.log("deflated data size:", deflate.length); // inflate + if (inflateOption) { + inflateOption.verify = true; + } else { + inflateOption = {verify: true}; + } inflate = (new Zlib.Inflate(deflate, inflateOption)).decompress(); console.log("inflated data size:", inflate.length) diff --git a/vendor/google-closure-compiler/compiler.jar b/vendor/google-closure-compiler/compiler.jar index 64cb730..95a5ac7 100644 Binary files a/vendor/google-closure-compiler/compiler.jar and b/vendor/google-closure-compiler/compiler.jar differ