2 lines
16 KiB
JavaScript
2 lines
16 KiB
JavaScript
/* 2020-9-22 15:23:24 | 版权所有 军懋国兴 */
|
|
!function(n){var h=15,p=573,st=-2,e=[0,1,2,3,4,4,5,5,6,6,6,6,7,7,7,7,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,0,0,16,17,18,18,19,19,20,20,20,20,21,21,21,21,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29];function lt(){var c=this;c.build_tree=function(t){var e,n,a,i=c.dyn_tree,r=c.stat_desc.static_tree,_=c.stat_desc.elems,o=-1;for(t.heap_len=0,t.heap_max=p,e=0;e<_;e++)0!==i[2*e]?(t.heap[++t.heap_len]=o=e,t.depth[e]=0):i[2*e+1]=0;for(;t.heap_len<2;)i[2*(a=t.heap[++t.heap_len]=o<2?++o:0)]=1,t.depth[a]=0,t.opt_len--,r&&(t.static_len-=r[2*a+1]);for(c.max_code=o,e=Math.floor(t.heap_len/2);1<=e;e--)t.pqdownheap(i,e);for(a=_;e=t.heap[1],t.heap[1]=t.heap[t.heap_len--],t.pqdownheap(i,1),n=t.heap[1],t.heap[--t.heap_max]=e,t.heap[--t.heap_max]=n,i[2*a]=i[2*e]+i[2*n],t.depth[a]=Math.max(t.depth[e],t.depth[n])+1,i[2*e+1]=i[2*n+1]=a,t.heap[1]=a++,t.pqdownheap(i,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(t){for(var e,n,a,i,r,_=c.dyn_tree,o=c.stat_desc.static_tree,u=c.stat_desc.extra_bits,f=c.stat_desc.extra_base,d=c.stat_desc.max_length,s=0,l=0;l<=h;l++)t.bl_count[l]=0;for(_[2*t.heap[t.heap_max]+1]=0,e=t.heap_max+1;e<p;e++)d<(l=_[2*_[2*(n=t.heap[e])+1]+1]+1)&&(l=d,s++),_[2*n+1]=l,n>c.max_code||(t.bl_count[l]++,i=0,f<=n&&(i=u[n-f]),r=_[2*n],t.opt_len+=r*(l+i),o&&(t.static_len+=r*(o[2*n+1]+i)));if(0!==s){do{for(l=d-1;0===t.bl_count[l];)l--;t.bl_count[l]--,t.bl_count[l+1]+=2,t.bl_count[d]--,s-=2}while(0<s);for(l=d;0!==l;l--)for(n=t.bl_count[l];0!==n;)(a=t.heap[--e])>c.max_code||(_[2*a+1]!=l&&(t.opt_len+=(l-_[2*a+1])*_[2*a],_[2*a+1]=l),n--)}}(t),function(t,e,n){for(var a,i,r=[],_=0,o=1;o<=h;o++)r[o]=_=_+n[o-1]<<1;for(a=0;a<=e;a++)0!==(i=t[2*a+1])&&(t[2*a]=function(t,e){for(var n=0;n|=1&t,t>>>=1,n<<=1,0<--e;);return n>>>1}(r[i]++,i))}(i,c.max_code,t.bl_count)}}function ct(t,e,n,a,i){var r=this;r.static_tree=t,r.extra_bits=e,r.extra_base=n,r.elems=a,r.max_length=i}function t(t,e,n,a,i){var r=this;r.good_length=t,r.max_lazy=e,r.nice_length=n,r.max_chain=a,r.func=i}lt._length_code=[0,1,2,3,4,5,6,7,8,8,9,9,10,10,11,11,12,12,12,12,13,13,13,13,14,14,14,14,15,15,15,15,16,16,16,16,16,16,16,16,17,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28],lt.base_length=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0],lt.base_dist=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576],lt.d_code=function(t){return t<256?e[t]:e[256+(t>>>7)]},lt.extra_lbits=[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],lt.extra_dbits=[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],lt.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],lt.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ct.static_ltree=[12,8,140,8,76,8,204,8,44,8,172,8,108,8,236,8,28,8,156,8,92,8,220,8,60,8,188,8,124,8,252,8,2,8,130,8,66,8,194,8,34,8,162,8,98,8,226,8,18,8,146,8,82,8,210,8,50,8,178,8,114,8,242,8,10,8,138,8,74,8,202,8,42,8,170,8,106,8,234,8,26,8,154,8,90,8,218,8,58,8,186,8,122,8,250,8,6,8,134,8,70,8,198,8,38,8,166,8,102,8,230,8,22,8,150,8,86,8,214,8,54,8,182,8,118,8,246,8,14,8,142,8,78,8,206,8,46,8,174,8,110,8,238,8,30,8,158,8,94,8,222,8,62,8,190,8,126,8,254,8,1,8,129,8,65,8,193,8,33,8,161,8,97,8,225,8,17,8,145,8,81,8,209,8,49,8,177,8,113,8,241,8,9,8,137,8,73,8,201,8,41,8,169,8,105,8,233,8,25,8,153,8,89,8,217,8,57,8,185,8,121,8,249,8,5,8,133,8,69,8,197,8,37,8,165,8,101,8,229,8,21,8,149,8,85,8,213,8,53,8,181,8,117,8,245,8,13,8,141,8,77,8,205,8,45,8,173,8,109,8,237,8,29,8,157,8,93,8,221,8,61,8,189,8,125,8,253,8,19,9,275,9,147,9,403,9,83,9,339,9,211,9,467,9,51,9,307,9,179,9,435,9,115,9,371,9,243,9,499,9,11,9,267,9,139,9,395,9,75,9,331,9,203,9,459,9,43,9,299,9,171,9,427,9,107,9,363,9,235,9,491,9,27,9,283,9,155,9,411,9,91,9,347,9,219,9,475,9,59,9,315,9,187,9,443,9,123,9,379,9,251,9,507,9,7,9,263,9,135,9,391,9,71,9,327,9,199,9,455,9,39,9,295,9,167,9,423,9,103,9,359,9,231,9,487,9,23,9,279,9,151,9,407,9,87,9,343,9,215,9,471,9,55,9,311,9,183,9,439,9,119,9,375,9,247,9,503,9,15,9,271,9,143,9,399,9,79,9,335,9,207,9,463,9,47,9,303,9,175,9,431,9,111,9,367,9,239,9,495,9,31,9,287,9,159,9,415,9,95,9,351,9,223,9,479,9,63,9,319,9,191,9,447,9,127,9,383,9,255,9,511,9,0,7,64,7,32,7,96,7,16,7,80,7,48,7,112,7,8,7,72,7,40,7,104,7,24,7,88,7,56,7,120,7,4,7,68,7,36,7,100,7,20,7,84,7,52,7,116,7,3,8,131,8,67,8,195,8,35,8,163,8,99,8,227,8],ct.static_dtree=[0,5,16,5,8,5,24,5,4,5,20,5,12,5,28,5,2,5,18,5,10,5,26,5,6,5,22,5,14,5,30,5,1,5,17,5,9,5,25,5,5,5,21,5,13,5,29,5,3,5,19,5,11,5,27,5,7,5,23,5],ct.static_l_desc=new ct(ct.static_ltree,lt.extra_lbits,257,286,h),ct.static_d_desc=new ct(ct.static_dtree,lt.extra_dbits,0,30,h),ct.static_bl_desc=new ct(null,lt.extra_blbits,0,19,7);var a,ht=[new t(0,0,0,0,0),new t(4,4,8,4,1),new t(4,5,16,8,1),new t(4,6,32,32,1),new t(4,4,16,16,2),new t(8,16,32,32,2),new t(8,16,128,128,2),new t(8,32,128,256,2),new t(32,128,258,1024,2),new t(32,258,258,4096,2)],pt=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],xt=113,vt=666,bt=262;function gt(t,e,n,a){var i=t[2*e],r=t[2*n];return i<r||i==r&&a[e]<=a[n]}function i(){var u,f,d,s,l,c,h,p,o,x,v,b,g,w,m,y,M,A,U,E,k,z,q,D,I,P,S,L,j,B,C,F,G,H,J,K,N,r,O,Q,R,T=this,V=new lt,W=new lt,X=new lt;function Y(){for(var t=0;t<286;t++)C[2*t]=0;for(t=0;t<30;t++)F[2*t]=0;for(t=0;t<19;t++)G[2*t]=0;C[512]=1,T.opt_len=T.static_len=0,K=r=0}function Z(t,e){var n,a,i=-1,r=t[1],_=0,o=7,u=4;for(0===r&&(o=138,u=3),t[2*(e+1)+1]=65535,n=0;n<=e;n++)a=r,r=t[2*(n+1)+1],++_<o&&a==r||(_<u?G[2*a]+=_:0!==a?(a!=i&&G[2*a]++,G[32]++):_<=10?G[34]++:G[36]++,i=a,u=(_=0)===r?(o=138,3):a==r?(o=6,3):(o=7,4))}function $(t){T.pending_buf[T.pending++]=t}function _(t){$(255&t),$(t>>>8&255)}function tt(t,e){var n,a=e;16-a<R?(_(Q|=(n=t)<<R&65535),Q=n>>>16-R,R+=a-16):(Q|=t<<R&65535,R+=a)}function et(t,e){var n=2*t;tt(65535&e[n],65535&e[1+n])}function nt(t,e){var n,a,i=-1,r=t[1],_=0,o=7,u=4;for(0===r&&(o=138,u=3),n=0;n<=e;n++)if(a=r,r=t[2*(n+1)+1],!(++_<o&&a==r)){if(_<u)for(;et(a,G),0!=--_;);else 0!==a?(a!=i&&(et(a,G),_--),et(16,G),tt(_-3,2)):_<=10?(et(17,G),tt(_-3,3)):(et(18,G),tt(_-11,7));i=a,u=(_=0)===r?(o=138,3):a==r?(o=6,3):(o=7,4)}}function at(){16==R?(_(Q),R=Q=0):8<=R&&($(255&Q),Q>>>=8,R-=8)}function it(t,e){var n,a,i;if(T.pending_buf[N+2*K]=t>>>8&255,T.pending_buf[N+2*K+1]=255&t,T.pending_buf[H+K]=255&e,K++,0===t?C[2*e]++:(r++,t--,C[2*(lt._length_code[e]+256+1)]++,F[2*lt.d_code(t)]++),0==(8191&K)&&2<S){for(n=8*K,a=k-M,i=0;i<30;i++)n+=F[2*i]*(5+lt.extra_dbits[i]);if(n>>>=3,r<Math.floor(K/2)&&n<Math.floor(a/2))return!0}return K==J-1}function rt(t,e){var n,a,i,r,_=0;if(0!==K)for(;n=T.pending_buf[N+2*_]<<8&65280|255&T.pending_buf[N+2*_+1],a=255&T.pending_buf[H+_],_++,0==n?et(a,t):(et((i=lt._length_code[a])+256+1,t),0!==(r=lt.extra_lbits[i])&&tt(a-=lt.base_length[i],r),et(i=lt.d_code(--n),e),0!==(r=lt.extra_dbits[i])&&tt(n-=lt.base_dist[i],r)),_<K;);et(256,t),O=t[513]}function _t(){8<R?_(Q):0<R&&$(255&Q),R=Q=0}function ot(t,e,n){var a,i;tt(0+(n?1:0),3),a=t,i=e,_t(),O=8,_(i),_(~i),T.pending_buf.set(p.subarray(a,a+i),T.pending),T.pending+=i}function ut(t){var e,n,a,i,r,_;e=0<=M?M:-1,n=k-M,a=t,(_=0)<S?(V.build_tree(T),W.build_tree(T),_=function(){var t;for(Z(C,V.max_code),Z(F,W.max_code),X.build_tree(T),t=18;3<=t&&0===G[2*lt.bl_order[t]+1];t--);return T.opt_len+=3*(t+1)+5+5+4,t}(),i=T.opt_len+3+7>>>3,(r=T.static_len+3+7>>>3)<=i&&(i=r)):i=r=n+5,n+4<=i&&-1!=e?ot(e,n,a):r==i?(tt(2+(a?1:0),3),rt(ct.static_ltree,ct.static_dtree)):(tt(4+(a?1:0),3),function(t,e,n){var a;for(tt(t-257,5),tt(e-1,5),tt(n-4,4),a=0;a<n;a++)tt(G[2*lt.bl_order[a]+1],3);nt(C,t-1),nt(F,e-1)}(V.max_code+1,W.max_code+1,_+1),rt(C,F)),Y(),a&&_t(),M=k,u.flush_pending()}function ft(){var t,e,n,a;do{if(0==(a=o-q-k)&&0===k&&0===q)a=l;else if(-1==a)a--;else if(l+l-bt<=k){for(p.set(p.subarray(l,l+l),0),z-=l,k-=l,M-=l,n=t=g;e=65535&v[--n],v[n]=l<=e?e-l:0,0!=--t;);for(n=t=l;e=65535&x[--n],x[n]=l<=e?e-l:0,0!=--t;);a+=l}if(0===u.avail_in)return;t=u.read_buf(p,k+q,a),3<=(q+=t)&&(b=((b=255&p[k])<<y^255&p[k+1])&m)}while(q<bt&&0!==u.avail_in)}function dt(t){var e,n,a=I,i=k,r=D,_=l-bt<k?k-(l-bt):0,o=B,u=h,f=k+258,d=p[i+r-1],s=p[i+r];j<=D&&(a>>=2),q<o&&(o=q);do{if(p[(e=t)+r]==s&&p[e+r-1]==d&&p[e]==p[i]&&p[++e]==p[i+1]){i+=2,e++;do{}while(p[++i]==p[++e]&&p[++i]==p[++e]&&p[++i]==p[++e]&&p[++i]==p[++e]&&p[++i]==p[++e]&&p[++i]==p[++e]&&p[++i]==p[++e]&&p[++i]==p[++e]&&i<f);if(n=258-(f-i),i=f-258,r<n){if(z=t,o<=(r=n))break;d=p[i+r-1],s=p[i+r]}}}while((t=65535&x[t&u])>_&&0!=--a);return r<=q?r:q}T.depth=[],T.bl_count=[],T.heap=[],C=[],F=[],G=[],T.pqdownheap=function(t,e){for(var n=T.heap,a=n[e],i=e<<1;i<=T.heap_len&&(i<T.heap_len&>(t,n[i+1],n[i],T.depth)&&i++,!gt(t,a,n[i],T.depth));)n[e]=n[i],e=i,i<<=1;n[e]=a},T.deflateInit=function(t,e,n,a,i,r){return a=a||8,i=i||8,r=r||0,t.msg=null,-1==e&&(e=6),i<1||9<i||8!=a||n<9||15<n||e<0||9<e||r<0||2<r?st:(t.dstate=T,h=(l=1<<(c=n))-1,m=(g=1<<(w=i+7))-1,y=Math.floor((w+3-1)/3),p=new Uint8Array(2*l),x=[],v=[],J=1<<i+6,T.pending_buf=new Uint8Array(4*J),d=4*J,N=Math.floor(J/2),H=3*J,S=e,L=r,(_=t).total_in=_.total_out=0,_.msg=null,T.pending=0,T.pending_out=0,f=xt,s=0,V.dyn_tree=C,V.stat_desc=ct.static_l_desc,W.dyn_tree=F,W.stat_desc=ct.static_d_desc,X.dyn_tree=G,X.stat_desc=ct.static_bl_desc,R=Q=0,O=8,Y(),function(){var t;for(o=2*l,t=v[g-1]=0;t<g-1;t++)v[t]=0;P=ht[S].max_lazy,j=ht[S].good_length,B=ht[S].nice_length,I=ht[S].max_chain,A=D=2,b=E=q=M=k=0}(),0);var _},T.deflateEnd=function(){return 42!=f&&f!=xt&&f!=vt?st:(T.pending_buf=null,p=x=v=null,T.dstate=null,f==xt?-3:0)},T.deflateParams=function(t,e,n){var a=0;return-1==e&&(e=6),e<0||9<e||n<0||2<n?st:(ht[S].func!=ht[e].func&&0!==t.total_in&&(a=t.deflate(1)),S!=e&&(P=ht[S=e].max_lazy,j=ht[S].good_length,B=ht[S].nice_length,I=ht[S].max_chain),L=n,a)},T.deflateSetDictionary=function(t,e,n){var a,i=n,r=0;if(!e||42!=f)return st;if(i<3)return 0;for(l-bt<i&&(r=n-(i=l-bt)),p.set(e.subarray(r,r+i),0),M=k=i,b=((b=255&p[0])<<y^255&p[1])&m,a=0;a<=i-3;a++)b=(b<<y^255&p[a+2])&m,x[a&h]=v[b],v[b]=a;return 0},T.deflate=function(t,e){var n,a,i,r,_,o;if(4<e||e<0)return st;if(!t.next_out||!t.next_in&&0!==t.avail_in||f==vt&&4!=e)return t.msg=pt[4],st;if(0===t.avail_out)return t.msg=pt[7],-5;if(u=t,r=s,s=e,42==f&&(a=8+(c-8<<4)<<8,3<(i=(S-1&255)>>1)&&(i=3),a|=i<<6,0!==k&&(a|=32),f=xt,$((o=a+=31-a%31)>>8&255),$(255&o)),0!==T.pending){if(u.flush_pending(),0===u.avail_out)return s=-1,0}else if(0===u.avail_in&&e<=r&&4!=e)return u.msg=pt[7],-5;if(f==vt&&0!==u.avail_in)return t.msg=pt[7],-5;if(0!==u.avail_in||0!==q||0!=e&&f!=vt){switch(_=-1,ht[S].func){case 0:_=function(t){var e,n=65535;for(d-5<n&&(n=d-5);;){if(q<=1){if(ft(),0===q&&0==t)return 0;if(0===q)break}if(k+=q,e=M+n,((q=0)===k||e<=k)&&(q=k-e,k=e,ut(!1),0===u.avail_out))return 0;if(l-bt<=k-M&&(ut(!1),0===u.avail_out))return 0}return ut(4==t),0===u.avail_out?4==t?2:0:4==t?3:1}(e);break;case 1:_=function(t){for(var e,n=0;;){if(q<bt){if(ft(),q<bt&&0==t)return 0;if(0===q)break}if(3<=q&&(b=(b<<y^255&p[k+2])&m,n=65535&v[b],x[k&h]=v[b],v[b]=k),0!==n&&(k-n&65535)<=l-bt&&2!=L&&(A=dt(n)),3<=A)if(e=it(k-z,A-3),q-=A,A<=P&&3<=q){for(A--;b=(b<<y^255&p[++k+2])&m,n=65535&v[b],x[k&h]=v[b],v[b]=k,0!=--A;);k++}else k+=A,A=0,b=((b=255&p[k])<<y^255&p[k+1])&m;else e=it(0,255&p[k]),q--,k++;if(e&&(ut(!1),0===u.avail_out))return 0}return ut(4==t),0===u.avail_out?4==t?2:0:4==t?3:1}(e);break;case 2:_=function(t){for(var e,n,a=0;;){if(q<bt){if(ft(),q<bt&&0==t)return 0;if(0===q)break}if(3<=q&&(b=(b<<y^255&p[k+2])&m,a=65535&v[b],x[k&h]=v[b],v[b]=k),D=A,U=z,A=2,0!==a&&D<P&&(k-a&65535)<=l-bt&&(2!=L&&(A=dt(a)),A<=5&&(1==L||3==A&&4096<k-z)&&(A=2)),3<=D&&A<=D){for(n=k+q-3,e=it(k-1-U,D-3),q-=D-1,D-=2;++k<=n&&(b=(b<<y^255&p[k+2])&m,a=65535&v[b],x[k&h]=v[b],v[b]=k),0!=--D;);if(E=0,A=2,k++,e&&(ut(!1),0===u.avail_out))return 0}else if(0!==E){if((e=it(0,255&p[k-1]))&&ut(!1),k++,q--,0===u.avail_out)return 0}else E=1,k++,q--}return 0!==E&&(e=it(0,255&p[k-1]),E=0),ut(4==t),0===u.avail_out?4==t?2:0:4==t?3:1}(e)}if(2!=_&&3!=_||(f=vt),0==_||2==_)return 0===u.avail_out&&(s=-1),0;if(1==_){if(1==e)tt(2,3),et(256,ct.static_ltree),at(),1+O+10-R<9&&(tt(2,3),et(256,ct.static_ltree),at()),O=7;else if(ot(0,0,!1),3==e)for(n=0;n<g;n++)v[n]=0;if(u.flush_pending(),0===u.avail_out)return s=-1,0}}return 4!=e?0:1}}function r(){var t=this;t.next_in_index=0,t.next_out_index=0,t.avail_in=0,t.total_in=0,t.avail_out=0,t.total_out=0}function _(t){var o=new r,u=new Uint8Array(512);void 0===t&&(t=-1),o.deflateInit(t),o.next_out=u,this.append=function(t,e){var n,a=[],i=0,r=0,_=0;if(t.length){o.next_in_index=0,o.next_in=t,o.avail_in=t.length;do{if(o.next_out_index=0,o.avail_out=512,0!=o.deflate(0))throw"deflating: "+o.msg;o.next_out_index&&(512==o.next_out_index?a.push(new Uint8Array(u)):a.push(new Uint8Array(u.subarray(0,o.next_out_index)))),_+=o.next_out_index,e&&0<o.next_in_index&&o.next_in_index!=i&&(e(o.next_in_index),i=o.next_in_index)}while(0<o.avail_in||0===o.avail_out);return n=new Uint8Array(_),a.forEach(function(t){n.set(t,r),r+=t.length}),n}},this.flush=function(){var t,e,n=[],a=0,i=0;do{if(o.next_out_index=0,o.avail_out=512,1!=(t=o.deflate(4))&&0!=t)throw"deflating: "+o.msg;0<512-o.avail_out&&n.push(new Uint8Array(u.subarray(0,o.next_out_index))),i+=o.next_out_index}while(0<o.avail_in||0===o.avail_out);return o.deflateEnd(),e=new Uint8Array(i),n.forEach(function(t){e.set(t,a),a+=t.length}),e}}r.prototype={deflateInit:function(t,e){return this.dstate=new i,e=e||h,this.dstate.deflateInit(this,t,e)},deflate:function(t){return this.dstate?this.dstate.deflate(this,t):st},deflateEnd:function(){if(!this.dstate)return st;var t=this.dstate.deflateEnd();return this.dstate=null,t},deflateParams:function(t,e){return this.dstate?this.dstate.deflateParams(this,t,e):st},deflateSetDictionary:function(t,e){return this.dstate?this.dstate.deflateSetDictionary(this,t,e):st},read_buf:function(t,e,n){var a=this,i=a.avail_in;return n<i&&(i=n),0===i?0:(a.avail_in-=i,t.set(a.next_in.subarray(a.next_in_index,a.next_in_index+i),e),a.next_in_index+=i,a.total_in+=i,i)},flush_pending:function(){var t=this,e=t.dstate.pending;e>t.avail_out&&(e=t.avail_out),0!==e&&(t.next_out.set(t.dstate.pending_buf.subarray(t.dstate.pending_out,t.dstate.pending_out+e),t.next_out_index),t.next_out_index+=e,t.dstate.pending_out+=e,t.total_out+=e,t.avail_out-=e,t.dstate.pending-=e,0===t.dstate.pending&&(t.dstate.pending_out=0))}},n.zip?n.zip.Deflater=_:(a=new _,n.addEventListener("message",function(t){var e=t.data;e.init&&(a=new _(e.level),n.postMessage({oninit:!0})),e.append&&n.postMessage({onappend:!0,data:a.append(e.data,function(t){n.postMessage({progress:!0,current:t})})}),e.flush&&n.postMessage({onflush:!0,data:a.flush()})},!1))}(this); |