Build 589089stable
Module 666624
6,373 characters · in 29609.b896f2d9d6398168.jsDependencies
Source Raw
function(e,t,n){"use strict";var r,o,i,a=n(549412);function u(e){for(var t=e.length;--t>=0;)e[t]=0}var s=573,l=[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],c=[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],f=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],d=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],h=Array(576);u(h);var p=Array(60);u(p);var m=Array(512);u(m);var v=Array(256);u(v);var y=Array(29);u(y);var g=Array(30);function b(e,t,n,r,o){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=o,this.has_stree=e&&e.length}function w(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function _(e){return e<256?m[e]:m[256+(e>>>7)]}function D(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function k(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,D(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function E(e,t,n){k(e,n[2*t],n[2*t+1])}function x(e,t){var n=0;do n|=1&e,e>>>=1,n<<=1;while(--t>0);return n>>>1}function C(e,t,n){var r,o,i=Array(16),a=0;for(r=1;r<=15;r++)i[r]=a=a+n[r-1]<<1;for(o=0;o<=t;o++){var u=e[2*o+1];0!==u&&(e[2*o]=x(i[u]++,u))}}function S(e){var t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function A(e){e.bi_valid>8?D(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function O(e,t,n,r){var o=2*t,i=2*n;return e[o]<e[i]||e[o]===e[i]&&r[t]<=r[n]}function B(e,t,n){for(var r=e.heap[n],o=n<<1;o<=e.heap_len&&(o<e.heap_len&&O(t,e.heap[o+1],e.heap[o],e.depth)&&o++,!O(t,r,e.heap[o],e.depth));)e.heap[n]=e.heap[o],n=o,o<<=1;e.heap[n]=r}function T(e,t,n){var r,o,i,a,u=0;if(0!==e.last_lit)do r=e.pending_buf[e.d_buf+2*u]<<8|e.pending_buf[e.d_buf+2*u+1],o=e.pending_buf[e.l_buf+u],u++,0===r?E(e,o,t):(E(e,(i=v[o])+256+1,t),0!==(a=l[i])&&k(e,o-=y[i],a),E(e,i=_(--r),n),0!==(a=c[i])&&k(e,r-=g[i],a));while(u<e.last_lit);E(e,256,t)}function F(e,t){var n,r,o,i=t.dyn_tree,a=t.stat_desc.static_tree,u=t.stat_desc.has_stree,l=t.stat_desc.elems,c=-1;for(n=0,e.heap_len=0,e.heap_max=s;n<l;n++)0!==i[2*n]?(e.heap[++e.heap_len]=c=n,e.depth[n]=0):i[2*n+1]=0;for(;e.heap_len<2;)i[2*(o=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[o]=0,e.opt_len--,u&&(e.static_len-=a[2*o+1]);for(t.max_code=c,n=e.heap_len>>1;n>=1;n--)B(e,i,n);o=l;do n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],B(e,i,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,i[2*o]=i[2*n]+i[2*r],e.depth[o]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,i[2*n+1]=i[2*r+1]=o,e.heap[1]=o++,B(e,i,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,o,i,a,u,l=t.dyn_tree,c=t.max_code,f=t.stat_desc.static_tree,d=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,m=t.stat_desc.max_length,v=0;for(i=0;i<=15;i++)e.bl_count[i]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<s;n++)(i=l[2*l[2*(r=e.heap[n])+1]+1]+1)>m&&(i=m,v++),l[2*r+1]=i,!(r>c)&&(e.bl_count[i]++,a=0,r>=p&&(a=h[r-p]),u=l[2*r],e.opt_len+=u*(i+a),d&&(e.static_len+=u*(f[2*r+1]+a)));if(0!==v){do{for(i=m-1;0===e.bl_count[i];)i--;e.bl_count[i]--,e.bl_count[i+1]+=2,e.bl_count[m]--,v-=2}while(v>0);for(i=m;0!==i;i--)for(r=e.bl_count[i];0!==r;)!((o=e.heap[--n])>c)&&(l[2*o+1]!==i&&(e.opt_len+=(i-l[2*o+1])*l[2*o],l[2*o+1]=i),r--)}}(e,t),C(i,c,e.bl_count)}function P(e,t,n){var r,o,i=-1,a=t[1],u=0,s=7,l=4;for(0===a&&(s=138,l=3),t[(n+1)*2+1]=65535,r=0;r<=n;r++)o=a,a=t[(r+1)*2+1],++u<s&&o===a||(u<l?e.bl_tree[2*o]+=u:0!==o?(o!==i&&e.bl_tree[2*o]++,e.bl_tree[32]++):u<=10?e.bl_tree[34]++:e.bl_tree[36]++,u=0,i=o,0===a?(s=138,l=3):o===a?(s=6,l=3):(s=7,l=4))}function z(e,t,n){var r,o,i=-1,a=t[1],u=0,s=7,l=4;for(0===a&&(s=138,l=3),r=0;r<=n;r++)if(o=a,a=t[(r+1)*2+1],!(++u<s)||o!==a){if(u<l)do E(e,o,e.bl_tree);while(0!=--u);else 0!==o?(o!==i&&(E(e,o,e.bl_tree),u--),E(e,16,e.bl_tree),k(e,u-3,2)):u<=10?(E(e,17,e.bl_tree),k(e,u-3,3)):(E(e,18,e.bl_tree),k(e,u-11,7));u=0,i=o,0===a?(s=138,l=3):o===a?(s=6,l=3):(s=7,l=4)}}u(g);var R=!1;function M(e,t,n,r){k(e,0+ +!!r,3),A(e),D(e,n),D(e,~n),a.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}t._tr_init=function(e){R||(!function(){var e,t,n,a,u,s=Array(16);for(a=0,n=0;a<28;a++)for(e=0,y[a]=n;e<1<<l[a];e++)v[n++]=a;for(v[n-1]=a,u=0,a=0;a<16;a++)for(e=0,g[a]=u;e<1<<c[a];e++)m[u++]=a;for(u>>=7;a<30;a++)for(e=0,g[a]=u<<7;e<1<<c[a]-7;e++)m[256+u++]=a;for(t=0;t<=15;t++)s[t]=0;for(e=0;e<=143;)h[2*e+1]=8,e++,s[8]++;for(;e<=255;)h[2*e+1]=9,e++,s[9]++;for(;e<=279;)h[2*e+1]=7,e++,s[7]++;for(;e<=287;)h[2*e+1]=8,e++,s[8]++;for(C(h,287,s),e=0;e<30;e++)p[2*e+1]=5,p[2*e]=x(e,5);r=new b(h,l,257,286,15),o=new b(p,c,0,30,15),i=new b([],f,0,19,7)}(),R=!0),e.l_desc=new w(e.dyn_ltree,r),e.d_desc=new w(e.dyn_dtree,o),e.bl_desc=new w(e.bl_tree,i),e.bi_buf=0,e.bi_valid=0,S(e)},t._tr_stored_block=M,t._tr_flush_block=function(e,t,n,r){var o,i,a=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=0xf3ffc07f;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),F(e,e.l_desc),F(e,e.d_desc),a=function(e){var t;for(P(e,e.dyn_ltree,e.l_desc.max_code),P(e,e.dyn_dtree,e.d_desc.max_code),F(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*d[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),o=e.opt_len+3+7>>>3,(i=e.static_len+3+7>>>3)<=o&&(o=i)):o=i=n+5,n+4<=o&&-1!==t?M(e,t,n,r):4===e.strategy||i===o?(k(e,2+ +!!r,3),T(e,h,p)):(k(e,4+ +!!r,3),function(e,t,n,r){var o;for(k(e,t-257,5),k(e,n-1,5),k(e,r-4,4),o=0;o<r;o++)k(e,e.bl_tree[2*d[o]+1],3);z(e,e.dyn_ltree,t-1),z(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),T(e,e.dyn_ltree,e.dyn_dtree)),S(e),r&&A(e)},t._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[(v[n]+256+1)*2]++,e.dyn_dtree[2*_(t)]++),e.last_lit===e.lit_bufsize-1},t._tr_align=function(e){k(e,2,3),E(e,256,h),16===e.bi_valid?(D(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}}