compression-streams-polyfill
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -42,2 +42,10 @@ "use strict"; | ||
cb = resolve; | ||
if (chunk instanceof ArrayBuffer) | ||
chunk = new Uint8Array(chunk); | ||
else if (ArrayBuffer.isView(chunk)) { | ||
chunk = new Uint8Array(chunk.buffer, chunk.byteOffset, chunk.byteLength); | ||
} | ||
else { | ||
throw new TypeError("The provided value is not of type '(ArrayBuffer or ArrayBufferView)'"); | ||
} | ||
compressor.push(chunk); | ||
@@ -50,3 +58,3 @@ }), | ||
}, { | ||
size: chunk => chunk.byteLength, | ||
size: chunk => chunk.byteLength | 0, | ||
highWaterMark: 65536 | ||
@@ -53,0 +61,0 @@ }); |
{ | ||
"name": "compression-streams-polyfill", | ||
"description": "Lightweight polyfill/ponyfill for the Compression Streams API", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"author": "Arjun Barrett <arjunbarrett@gmail.com>", | ||
@@ -6,0 +6,0 @@ "main": "lib/index.js", |
@@ -42,2 +42,10 @@ "use strict"; | ||
cb = resolve; | ||
if (chunk instanceof ArrayBuffer) | ||
chunk = new Uint8Array(chunk); | ||
else if (ArrayBuffer.isView(chunk)) { | ||
chunk = new Uint8Array(chunk.buffer, chunk.byteOffset, chunk.byteLength); | ||
} | ||
else { | ||
throw new TypeError("The provided value is not of type '(ArrayBuffer or ArrayBufferView)'"); | ||
} | ||
compressor.push(chunk); | ||
@@ -50,3 +58,3 @@ }), | ||
}, { | ||
size: chunk => chunk.byteLength, | ||
size: chunk => chunk.byteLength | 0, | ||
highWaterMark: 65536 | ||
@@ -53,0 +61,0 @@ }); |
@@ -7,3 +7,3 @@ # compression-streams-polyfill | ||
Install: | ||
``` | ||
```sh | ||
npm i compression-streams-polyfill # or yarn add, or pnpm add | ||
@@ -28,3 +28,3 @@ ``` | ||
You should use either UNPKG or jsDelivr (i.e. only one of the following) | ||
You can specify the version, e.g. with compression-streams-polyfill@0.1.1 | ||
You can specify the version, e.g. with compression-streams-polyfill@0.1.2 | ||
--> | ||
@@ -31,0 +31,0 @@ <script src="https://unpkg.com/compression-streams-polyfill"></script> |
@@ -1,1 +0,1 @@ | ||
!function(t){"function"==typeof define&&define.amd?define(t):t()}(function(){var t={},n=Uint8Array,r=Uint16Array,e=Uint32Array,i=new n([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),o=new n([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new n([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),f=function(t,n){for(var i=new r(31),o=0;o<31;++o)i[o]=n+=1<<t[o-1];var a=new e(i[30]);for(o=1;o<30;++o)for(var f=i[o];f<i[o+1];++f)a[f]=f-i[o]<<5|o;return[i,a]},s=f(i,2),u=s[0],c=s[1];u[28]=258,c[258]=28;for(var h=f(o,0),l=h[0],v=h[1],p=new r(32768),d=0;d<32768;++d){var g=(43690&d)>>>1|(21845&d)<<1;p[d]=((65280&(g=(61680&(g=(52428&g)>>>2|(13107&g)<<2))>>>4|(3855&g)<<4))>>>8|(255&g)<<8)>>>1}var m=function(t,n,e){for(var i=t.length,o=0,a=new r(n);o<i;++o)t[o]&&++a[t[o]-1];var f,s=new r(n);for(o=0;o<n;++o)s[o]=s[o-1]+a[o-1]<<1;if(e){f=new r(1<<n);var u=15-n;for(o=0;o<i;++o)if(t[o])for(var c=o<<4|t[o],h=n-t[o],l=s[t[o]-1]++<<h,v=l|(1<<h)-1;l<=v;++l)f[p[l]>>>u]=c}else for(f=new r(i),o=0;o<i;++o)t[o]&&(f[o]=p[s[t[o]-1]++]>>>15-t[o]);return f},w=new n(288);for(d=0;d<144;++d)w[d]=8;for(d=144;d<256;++d)w[d]=9;for(d=256;d<280;++d)w[d]=7;for(d=280;d<288;++d)w[d]=8;var y=new n(32);for(d=0;d<32;++d)y[d]=5;var b=/*#__PURE__*/m(w,9,0),M=/*#__PURE__*/m(w,9,1),k=/*#__PURE__*/m(y,5,0),E=/*#__PURE__*/m(y,5,1),x=function(t){for(var n=t[0],r=1;r<t.length;++r)t[r]>n&&(n=t[r]);return n},S=function(t,n,r){var e=n/8|0;return(t[e]|t[e+1]<<8)>>(7&n)&r},T=function(t,n){var r=n/8|0;return(t[r]|t[r+1]<<8|t[r+2]<<16)>>(7&n)},z=function(t){return(t+7)/8|0},U=function(t,i,o){(null==i||i<0)&&(i=0),(null==o||o>t.length)&&(o=t.length);var a=new(2==t.BYTES_PER_ELEMENT?r:4==t.BYTES_PER_ELEMENT?e:n)(o-i);return a.set(t.subarray(i,o)),a},D=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],O=function(t,n,r){var e=new Error(n||D[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,O),!r)throw e;return e},$=function(t,r,e){var f=t.length;if(!f||e&&e.f&&!e.l)return r||new n(0);var s=!r||e,c=!e||e.i;e||(e={}),r||(r=new n(3*f));var h=function(t){var e=r.length;if(t>e){var i=new n(Math.max(2*e,t));i.set(r),r=i}},v=e.f||0,p=e.p||0,d=e.b||0,g=e.l,w=e.d,y=e.m,b=e.n,k=8*f;do{if(!g){v=S(t,p,1);var D=S(t,p+1,3);if(p+=3,!D){var $=t[(I=z(p)+4)-4]|t[I-3]<<8,A=I+$;if(A>f){c&&O(0);break}s&&h(d+$),r.set(t.subarray(I,A),d),e.b=d+=$,e.p=p=8*A,e.f=v;continue}if(1==D)g=M,w=E,y=9,b=5;else if(2==D){var L=S(t,p,31)+257,C=S(t,p+10,15)+4,F=L+S(t,p+5,31)+1;p+=14;for(var P=new n(F),R=new n(19),_=0;_<C;++_)R[a[_]]=S(t,p+3*_,7);p+=3*C;var B=x(R),j=(1<<B)-1,q=m(R,B,1);for(_=0;_<F;){var I,N=q[S(t,p,j)];if(p+=15&N,(I=N>>>4)<16)P[_++]=I;else{var W=0,Y=0;for(16==I?(Y=3+S(t,p,3),p+=2,W=P[_-1]):17==I?(Y=3+S(t,p,7),p+=3):18==I&&(Y=11+S(t,p,127),p+=7);Y--;)P[_++]=W}}var G=P.subarray(0,L),H=P.subarray(L);y=x(G),b=x(H),g=m(G,y,1),w=m(H,b,1)}else O(1);if(p>k){c&&O(0);break}}s&&h(d+131072);for(var J=(1<<y)-1,K=(1<<b)-1,Q=p;;Q=p){var V=(W=g[T(t,p)&J])>>>4;if((p+=15&W)>k){c&&O(0);break}if(W||O(2),V<256)r[d++]=V;else{if(256==V){Q=p,g=null;break}var X=V-254;V>264&&(X=S(t,p,(1<<(nt=i[_=V-257]))-1)+u[_],p+=nt);var Z=w[T(t,p)&K],tt=Z>>>4;if(Z||O(3),p+=15&Z,H=l[tt],tt>3){var nt=o[tt];H+=T(t,p)&(1<<nt)-1,p+=nt}if(p>k){c&&O(0);break}s&&h(d+131072);for(var rt=d+X;d<rt;d+=4)r[d]=r[d-H],r[d+1]=r[d+1-H],r[d+2]=r[d+2-H],r[d+3]=r[d+3-H];d=rt}}e.l=g,e.p=Q,e.b=d,e.f=v,g&&(v=1,e.m=y,e.d=w,e.n=b)}while(!v);return d==r.length?r:U(r,0,d)},A=function(t,n,r){var e=n/8|0;t[e]|=r<<=7&n,t[e+1]|=r>>>8},L=function(t,n,r){var e=n/8|0;t[e]|=r<<=7&n,t[e+1]|=r>>>8,t[e+2]|=r>>>16},C=function(t,e){for(var i=[],o=0;o<t.length;++o)t[o]&&i.push({s:o,f:t[o]});var a=i.length,f=i.slice();if(!a)return[q,0];if(1==a){var s=new n(i[0].s+1);return s[i[0].s]=1,[s,1]}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var u=i[0],c=i[1],h=0,l=1,v=2;for(i[0]={s:-1,f:u.f+c.f,l:u,r:c};l!=a-1;)u=i[i[h].f<i[v].f?h++:v++],c=i[h!=l&&i[h].f<i[v].f?h++:v++],i[l++]={s:-1,f:u.f+c.f,l:u,r:c};var p=f[0].s;for(o=1;o<a;++o)f[o].s>p&&(p=f[o].s);var d=new r(p+1),g=F(i[l-1],d,0);if(g>e){o=0;var m=0,w=g-e,y=1<<w;for(f.sort(function(t,n){return d[n.s]-d[t.s]||t.f-n.f});o<a;++o){var b=f[o].s;if(!(d[b]>e))break;m+=y-(1<<g-d[b]),d[b]=e}for(m>>>=w;m>0;){var M=f[o].s;d[M]<e?m-=1<<e-d[M]++-1:++o}for(;o>=0&&m;--o){var k=f[o].s;d[k]==e&&(--d[k],++m)}g=e}return[new n(d),g]},F=function(t,n,r){return-1==t.s?Math.max(F(t.l,n,r+1),F(t.r,n,r+1)):n[t.s]=r},P=function(t){for(var n=t.length;n&&!t[--n];);for(var e=new r(++n),i=0,o=t[0],a=1,f=function(t){e[i++]=t},s=1;s<=n;++s)if(t[s]==o&&s!=n)++a;else{if(!o&&a>2){for(;a>138;a-=138)f(32754);a>2&&(f(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(f(o),--a;a>6;a-=6)f(8304);a>2&&(f(a-3<<5|8208),a=0)}for(;a--;)f(o);a=1,o=t[s]}return[e.subarray(0,i),n]},R=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},_=function(t,n,r){var e=r.length,i=z(n+2);t[i]=255&e,t[i+1]=e>>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var o=0;o<e;++o)t[i+o+4]=r[o];return 8*(i+4+e)},B=function(t,n,e,f,s,u,c,h,l,v,p){A(n,p++,e),++s[256];for(var d=C(s,15),g=d[0],M=d[1],E=C(u,15),x=E[0],S=E[1],T=P(g),z=T[0],U=T[1],D=P(x),O=D[0],$=D[1],F=new r(19),B=0;B<z.length;++B)F[31&z[B]]++;for(B=0;B<O.length;++B)F[31&O[B]]++;for(var j=C(F,7),q=j[0],I=j[1],N=19;N>4&&!q[a[N-1]];--N);var W,Y,G,H,J=v+5<<3,K=R(s,w)+R(u,y)+c,Q=R(s,g)+R(u,x)+c+14+3*N+R(F,q)+(2*F[16]+3*F[17]+7*F[18]);if(J<=K&&J<=Q)return _(n,p,t.subarray(l,l+v));if(A(n,p,1+(Q<K)),p+=2,Q<K){W=m(g,M,0),Y=g,G=m(x,S,0),H=x;var V=m(q,I,0);for(A(n,p,U-257),A(n,p+5,$-1),A(n,p+10,N-4),p+=14,B=0;B<N;++B)A(n,p+3*B,q[a[B]]);p+=3*N;for(var X=[z,O],Z=0;Z<2;++Z){var tt=X[Z];for(B=0;B<tt.length;++B)A(n,p,V[nt=31&tt[B]]),p+=q[nt],nt>15&&(A(n,p,tt[B]>>>5&127),p+=tt[B]>>>12)}}else W=b,Y=w,G=k,H=y;for(B=0;B<h;++B)if(f[B]>255){var nt;L(n,p,W[257+(nt=f[B]>>>18&31)]),p+=Y[nt+257],nt>7&&(A(n,p,f[B]>>>23&31),p+=i[nt]);var rt=31&f[B];L(n,p,G[rt]),p+=H[rt],rt>3&&(L(n,p,f[B]>>>5&8191),p+=o[rt])}else L(n,p,W[f[B]]),p+=Y[f[B]];return L(n,p,W[256]),p+Y[256]},j=/*#__PURE__*/new e([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),q=/*#__PURE__*/new n(0),I=function(t,a,f,s,u,h){var l=t.length,p=new n(s+l+5*(1+Math.ceil(l/7e3))+u),d=p.subarray(s,p.length-u),g=0;if(!a||l<8)for(var m=0;m<=l;m+=65535){var w=m+65535;w>=l&&(d[g>>3]=h),g=_(d,g+1,t.subarray(m,w))}else{for(var y=j[a-1],b=y>>>13,M=8191&y,k=(1<<f)-1,E=new r(32768),x=new r(k+1),S=Math.ceil(f/3),T=2*S,D=function(n){return(t[n]^t[n+1]<<S^t[n+2]<<T)&k},O=new e(25e3),$=new r(288),A=new r(32),L=0,C=0,F=(m=0,0),P=0,R=0;m<l;++m){var I=D(m),N=32767&m,W=x[I];if(E[N]=W,x[I]=N,P<=m){var Y=l-m;if((L>7e3||F>24576)&&Y>423){g=B(t,d,0,O,$,A,C,F,R,m-R,g),F=L=C=0,R=m;for(var G=0;G<286;++G)$[G]=0;for(G=0;G<30;++G)A[G]=0}var H=2,J=0,K=M,Q=N-W&32767;if(Y>2&&I==D(m-Q))for(var V=Math.min(b,Y)-1,X=Math.min(32767,m),Z=Math.min(258,Y);Q<=X&&--K&&N!=W;){if(t[m+H]==t[m+H-Q]){for(var tt=0;tt<Z&&t[m+tt]==t[m+tt-Q];++tt);if(tt>H){if(H=tt,J=Q,tt>V)break;var nt=Math.min(Q,tt-2),rt=0;for(G=0;G<nt;++G){var et=m-Q+G+32768&32767,it=et-E[et]+32768&32767;it>rt&&(rt=it,W=et)}}}Q+=(N=W)-(W=E[N])+32768&32767}if(J){O[F++]=268435456|c[H]<<18|v[J];var ot=31&c[H],at=31&v[J];C+=i[ot]+o[at],++$[257+ot],++A[at],P=m+H,++L}else O[F++]=t[m],++$[t[m]]}}g=B(t,d,h,O,$,A,C,F,R,m-R,g),!h&&7&g&&(g=_(d,g+1,q))}return U(p,0,s+z(g)+u)},N=/*#__PURE__*/function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),W=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=N[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}},Y=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,o=0|r.length,a=0;a!=o;){for(var f=Math.min(a+2655,o);a<f;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|t>>>8<<16|(255&(n%=65521))<<8|n>>>8}}},G=function(t,n,r,e,i){return I(t,null==n.level?6:n.level,null==n.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+n.mem,r,e,!i)},H=function(t,n,r){for(var e=t(),i=t.toString(),o=i.slice(i.indexOf("[")+1,i.lastIndexOf("]")).replace(/\s+/g,"").split(","),a=0;a<e.length;++a){var f=e[a],s=o[a];if("function"==typeof f){n+=";"+s+"=";var u=f.toString();if(f.prototype)if(-1!=u.indexOf("[native code]")){var c=u.indexOf(" ",8)+1;n+=u.slice(c,u.indexOf("(",c))}else for(var h in n+=u,f.prototype)n+=";"+s+".prototype."+h+"="+f.prototype[h].toString();else n+=u}else r[s]=f}return[n,r]},J=[],K=function(){return[n,r,e,i,o,a,u,l,M,E,p,D,m,x,S,T,z,U,O,$,wt,nt,rt]},Q=function(){return[n,r,e,i,o,a,c,v,b,w,k,y,p,j,q,m,A,L,C,F,P,R,_,B,z,U,I,G,dt,nt]},V=function(){return[at,ut,ot,W,N]},X=function(){return[ft,st]},Z=function(){return[ct,ot,Y]},tt=function(){return[ht]},nt=function(t){return postMessage(t,[t.buffer])},rt=function(t){return t&&t.size&&new n(t.size)},et=function(t){return t.ondata=function(t,n){return postMessage([t,n],[t.buffer])},function(n){return t.push(n.data[0],n.data[1])}},it=function(n,r,e,i,o){var a,f=function(n,e,i,o){var a;if(!J[i]){for(var s="",u={},c=n.length-1,h=0;h<c;++h)s=(a=H(n[h],s,u))[0],u=a[1];J[i]=H(n[c],s,u)}var l=function(t,n){var r={};for(var e in t)r[e]=t[e];for(var e in n)r[e]=n[e];return r}({},J[i][1]);return function(n,r,e,i,o){var a=new Worker(t[r]||(t[r]=URL.createObjectURL(new Blob([n+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return a.onmessage=function(t){var n=t.data,r=n.$e$;if(r){var e=new Error(r[0]);e.code=r[1],e.stack=r[2],o(e,null)}else o(null,n)},a.postMessage(e,i),a}(J[i][0]+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+e.toString()+"}",i,l,function(t){var n=[];for(var r in t)t[r].buffer&&n.push((t[r]=new t[r].constructor(t[r])).buffer);return n}(l),function(t,n){t?(f.terminate(),r.ondata.call(r,t)):(n[1]&&f.terminate(),r.ondata.call(r,t,n[0],n[1]))})}(n,i,o);f.postMessage(e),r.push=function(t,n){r.ondata||O(5),a&&r.ondata(O(4,0,1),null,!!n),f.postMessage([t,a=n],[t.buffer])},r.terminate=function(){f.terminate()}},ot=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},at=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&ot(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}},ft=function(t){31==t[0]&&139==t[1]&&8==t[2]||O(6,"invalid gzip data");var n=t[3],r=10;4&n&&(r+=t[10]|2+(t[11]<<8));for(var e=(n>>3&1)+(n>>4&1);e>0;e-=!t[r++]);return r+(2&n)},st=function(t){var n=t.length;return(t[n-4]|t[n-3]<<8|t[n-2]<<16|t[n-1]<<24)>>>0},ut=function(t){return 10+(t.filename&&t.filename.length+1||0)},ct=function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;t[0]=120,t[1]=e<<6|(e?32-2*e:1)},ht=function(t){(8!=(15&t[0])||t[0]>>>4>7||(t[0]<<8|t[1])%31)&&O(6,"invalid zlib data"),32&t[1]&&O(6,"invalid zlib data: preset dictionaries not supported")};function lt(t,n){return n||"function"!=typeof t||(n=t,t={}),this.ondata=n,t}var vt=/*#__PURE__*/function(){function t(t,n){n||"function"!=typeof t||(n=t,t={}),this.ondata=n,this.o=t||{}}return t.prototype.p=function(t,n){this.ondata(G(t,this.o,0,0,!n),n)},t.prototype.push=function(t,n){this.ondata||O(5),this.d&&O(4),this.d=n,this.p(t,n||!1)},t}(),pt=/*#__PURE__*/function(){return function(t,n){it([Q,function(){return[et,vt]}],this,lt.call(this,t,n),function(t){var n=new vt(t.data);onmessage=et(n)},6)}}();function dt(t,n){return G(t,n||{},0,0)}var gt=/*#__PURE__*/function(){function t(t){this.s={},this.p=new n(0),this.ondata=t}return t.prototype.e=function(t){this.ondata||O(5),this.d&&O(4);var r=this.p.length,e=new n(r+t.length);e.set(this.p),e.set(t,r),this.p=e},t.prototype.c=function(t){this.d=this.s.i=t||!1;var n=this.s.b,r=$(this.p,this.o,this.s);this.ondata(U(r,n,this.s.b),this.d),this.o=U(r,this.s.b-32768),this.s.b=this.o.length,this.p=U(this.p,this.s.p/8|0),this.s.p&=7},t.prototype.push=function(t,n){this.e(t),this.c(n)},t}(),mt=/*#__PURE__*/function(){return function(t){this.ondata=t,it([K,function(){return[et,gt]}],this,0,function(){var t=new gt;onmessage=et(t)},7)}}();function wt(t,n){return $(t,n)}var yt=/*#__PURE__*/function(){function t(t,n){this.c=W(),this.l=0,this.v=1,vt.call(this,t,n)}return t.prototype.push=function(t,n){vt.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){this.c.p(t),this.l+=t.length;var r=G(t,this.o,this.v&&ut(this.o),n&&8,!n);this.v&&(at(r,this.o),this.v=0),n&&(ot(r,r.length-8,this.c.d()),ot(r,r.length-4,this.l)),this.ondata(r,n)},t}(),bt=/*#__PURE__*/function(){return function(t,n){it([Q,V,function(){return[et,vt,yt]}],this,lt.call(this,t,n),function(t){var n=new yt(t.data);onmessage=et(n)},8)}}(),Mt=/*#__PURE__*/function(){function t(t){this.v=1,gt.call(this,t)}return t.prototype.push=function(t,n){if(gt.prototype.e.call(this,t),this.v){var r=this.p.length>3?ft(this.p):4;if(r>=this.p.length&&!n)return;this.p=this.p.subarray(r),this.v=0}n&&(this.p.length<8&&O(6,"invalid gzip data"),this.p=this.p.subarray(0,-8)),gt.prototype.c.call(this,n)},t}(),kt=/*#__PURE__*/function(){return function(t){this.ondata=t,it([K,X,function(){return[et,gt,Mt]}],this,0,function(){var t=new Mt;onmessage=et(t)},9)}}(),Et=/*#__PURE__*/function(){function t(t,n){this.c=Y(),this.v=1,vt.call(this,t,n)}return t.prototype.push=function(t,n){vt.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){this.c.p(t);var r=G(t,this.o,this.v&&2,n&&4,!n);this.v&&(ct(r,this.o),this.v=0),n&&ot(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),xt=/*#__PURE__*/function(){return function(t,n){it([Q,Z,function(){return[et,vt,Et]}],this,lt.call(this,t,n),function(t){var n=new Et(t.data);onmessage=et(n)},10)}}(),St=/*#__PURE__*/function(){function t(t){this.v=1,gt.call(this,t)}return t.prototype.push=function(t,n){if(gt.prototype.e.call(this,t),this.v){if(this.p.length<2&&!n)return;this.p=this.p.subarray(2),this.v=0}n&&(this.p.length<4&&O(6,"invalid zlib data"),this.p=this.p.subarray(0,-4)),gt.prototype.c.call(this,n)},t}(),Tt=/*#__PURE__*/function(){return function(t){this.ondata=t,it([K,tt,function(){return[et,gt,St]}],this,0,function(){var t=new St;onmessage=et(t)},11)}}(),zt="undefined"!=typeof TextDecoder&&/*#__PURE__*/new TextDecoder;try{zt.decode(q,{stream:!0})}catch(t){}const Ut={gzip:bt,deflate:xt,"deflate-raw":pt},Dt={gzip:kt,deflate:Tt,"deflate-raw":mt},Ot=(t,n,r)=>class extends t{constructor(t){if(!arguments.length)throw new TypeError(`Failed to construct '${r}': 1 argument required, but only 0 present.`);const e=n[t];if(!e)throw new TypeError(`Failed to construct '${r}': Unsupported compression format: '${t}'`);let i,o=new e;super({start:t=>{o.ondata=(n,r,e)=>{n?t.error(n):r&&(t.enqueue(r),e&&t.terminate()),i()}},transform:t=>new Promise(n=>{i=n,o.push(t)}),flush:()=>new Promise(t=>{i=t,o.push(new Uint8Array(0),!0)})},{size:t=>t.byteLength,highWaterMark:65536})}},$t="undefined"==typeof globalThis?"undefined"==typeof self?"undefined"==typeof global?{}:global:self:globalThis;void 0===$t.CompressionStream&&($t.CompressionStream=function(t){class n extends(Ot(t,Ut,"CompressionStream")){}return n}(TransformStream)),void 0===$t.DecompressionStream&&($t.DecompressionStream=function(t){class n extends(Ot(t,Dt,"DecompressionStream")){}return n}(TransformStream))}); | ||
!function(t){"function"==typeof define&&define.amd?define(t):t()}(function(){var t={},n=Uint8Array,r=Uint16Array,e=Uint32Array,i=new n([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),o=new n([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new n([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),f=function(t,n){for(var i=new r(31),o=0;o<31;++o)i[o]=n+=1<<t[o-1];var a=new e(i[30]);for(o=1;o<30;++o)for(var f=i[o];f<i[o+1];++f)a[f]=f-i[o]<<5|o;return[i,a]},s=f(i,2),u=s[0],c=s[1];u[28]=258,c[258]=28;for(var h=f(o,0),l=h[0],v=h[1],p=new r(32768),d=0;d<32768;++d){var g=(43690&d)>>>1|(21845&d)<<1;p[d]=((65280&(g=(61680&(g=(52428&g)>>>2|(13107&g)<<2))>>>4|(3855&g)<<4))>>>8|(255&g)<<8)>>>1}var w=function(t,n,e){for(var i=t.length,o=0,a=new r(n);o<i;++o)t[o]&&++a[t[o]-1];var f,s=new r(n);for(o=0;o<n;++o)s[o]=s[o-1]+a[o-1]<<1;if(e){f=new r(1<<n);var u=15-n;for(o=0;o<i;++o)if(t[o])for(var c=o<<4|t[o],h=n-t[o],l=s[t[o]-1]++<<h,v=l|(1<<h)-1;l<=v;++l)f[p[l]>>>u]=c}else for(f=new r(i),o=0;o<i;++o)t[o]&&(f[o]=p[s[t[o]-1]++]>>>15-t[o]);return f},m=new n(288);for(d=0;d<144;++d)m[d]=8;for(d=144;d<256;++d)m[d]=9;for(d=256;d<280;++d)m[d]=7;for(d=280;d<288;++d)m[d]=8;var y=new n(32);for(d=0;d<32;++d)y[d]=5;var b=/*#__PURE__*/w(m,9,0),M=/*#__PURE__*/w(m,9,1),E=/*#__PURE__*/w(y,5,0),k=/*#__PURE__*/w(y,5,1),T=function(t){for(var n=t[0],r=1;r<t.length;++r)t[r]>n&&(n=t[r]);return n},x=function(t,n,r){var e=n/8|0;return(t[e]|t[e+1]<<8)>>(7&n)&r},S=function(t,n){var r=n/8|0;return(t[r]|t[r+1]<<8|t[r+2]<<16)>>(7&n)},A=function(t){return(t+7)/8|0},z=function(t,i,o){(null==i||i<0)&&(i=0),(null==o||o>t.length)&&(o=t.length);var a=new(2==t.BYTES_PER_ELEMENT?r:4==t.BYTES_PER_ELEMENT?e:n)(o-i);return a.set(t.subarray(i,o)),a},U=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],O=function(t,n,r){var e=new Error(n||U[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,O),!r)throw e;return e},B=function(t,r,e){var f=t.length;if(!f||e&&e.f&&!e.l)return r||new n(0);var s=!r||e,c=!e||e.i;e||(e={}),r||(r=new n(3*f));var h=function(t){var e=r.length;if(t>e){var i=new n(Math.max(2*e,t));i.set(r),r=i}},v=e.f||0,p=e.p||0,d=e.b||0,g=e.l,m=e.d,y=e.m,b=e.n,E=8*f;do{if(!g){v=x(t,p,1);var U=x(t,p+1,3);if(p+=3,!U){var B=t[(I=A(p)+4)-4]|t[I-3]<<8,D=I+B;if(D>f){c&&O(0);break}s&&h(d+B),r.set(t.subarray(I,D),d),e.b=d+=B,e.p=p=8*D,e.f=v;continue}if(1==U)g=M,m=k,y=9,b=5;else if(2==U){var L=x(t,p,31)+257,$=x(t,p+10,15)+4,C=L+x(t,p+5,31)+1;p+=14;for(var F=new n(C),P=new n(19),R=0;R<$;++R)P[a[R]]=x(t,p+3*R,7);p+=3*$;var _=T(P),j=(1<<_)-1,q=w(P,_,1);for(R=0;R<C;){var I,N=q[x(t,p,j)];if(p+=15&N,(I=N>>>4)<16)F[R++]=I;else{var V=0,W=0;for(16==I?(W=3+x(t,p,3),p+=2,V=F[R-1]):17==I?(W=3+x(t,p,7),p+=3):18==I&&(W=11+x(t,p,127),p+=7);W--;)F[R++]=V}}var Y=F.subarray(0,L),G=F.subarray(L);y=T(Y),b=T(G),g=w(Y,y,1),m=w(G,b,1)}else O(1);if(p>E){c&&O(0);break}}s&&h(d+131072);for(var H=(1<<y)-1,J=(1<<b)-1,K=p;;K=p){var Q=(V=g[S(t,p)&H])>>>4;if((p+=15&V)>E){c&&O(0);break}if(V||O(2),Q<256)r[d++]=Q;else{if(256==Q){K=p,g=null;break}var X=Q-254;Q>264&&(X=x(t,p,(1<<(nt=i[R=Q-257]))-1)+u[R],p+=nt);var Z=m[S(t,p)&J],tt=Z>>>4;if(Z||O(3),p+=15&Z,G=l[tt],tt>3){var nt=o[tt];G+=S(t,p)&(1<<nt)-1,p+=nt}if(p>E){c&&O(0);break}s&&h(d+131072);for(var rt=d+X;d<rt;d+=4)r[d]=r[d-G],r[d+1]=r[d+1-G],r[d+2]=r[d+2-G],r[d+3]=r[d+3-G];d=rt}}e.l=g,e.p=K,e.b=d,e.f=v,g&&(v=1,e.m=y,e.d=m,e.n=b)}while(!v);return d==r.length?r:z(r,0,d)},D=function(t,n,r){var e=n/8|0;t[e]|=r<<=7&n,t[e+1]|=r>>>8},L=function(t,n,r){var e=n/8|0;t[e]|=r<<=7&n,t[e+1]|=r>>>8,t[e+2]|=r>>>16},$=function(t,e){for(var i=[],o=0;o<t.length;++o)t[o]&&i.push({s:o,f:t[o]});var a=i.length,f=i.slice();if(!a)return[q,0];if(1==a){var s=new n(i[0].s+1);return s[i[0].s]=1,[s,1]}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var u=i[0],c=i[1],h=0,l=1,v=2;for(i[0]={s:-1,f:u.f+c.f,l:u,r:c};l!=a-1;)u=i[i[h].f<i[v].f?h++:v++],c=i[h!=l&&i[h].f<i[v].f?h++:v++],i[l++]={s:-1,f:u.f+c.f,l:u,r:c};var p=f[0].s;for(o=1;o<a;++o)f[o].s>p&&(p=f[o].s);var d=new r(p+1),g=C(i[l-1],d,0);if(g>e){o=0;var w=0,m=g-e,y=1<<m;for(f.sort(function(t,n){return d[n.s]-d[t.s]||t.f-n.f});o<a;++o){var b=f[o].s;if(!(d[b]>e))break;w+=y-(1<<g-d[b]),d[b]=e}for(w>>>=m;w>0;){var M=f[o].s;d[M]<e?w-=1<<e-d[M]++-1:++o}for(;o>=0&&w;--o){var E=f[o].s;d[E]==e&&(--d[E],++w)}g=e}return[new n(d),g]},C=function(t,n,r){return-1==t.s?Math.max(C(t.l,n,r+1),C(t.r,n,r+1)):n[t.s]=r},F=function(t){for(var n=t.length;n&&!t[--n];);for(var e=new r(++n),i=0,o=t[0],a=1,f=function(t){e[i++]=t},s=1;s<=n;++s)if(t[s]==o&&s!=n)++a;else{if(!o&&a>2){for(;a>138;a-=138)f(32754);a>2&&(f(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(f(o),--a;a>6;a-=6)f(8304);a>2&&(f(a-3<<5|8208),a=0)}for(;a--;)f(o);a=1,o=t[s]}return[e.subarray(0,i),n]},P=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},R=function(t,n,r){var e=r.length,i=A(n+2);t[i]=255&e,t[i+1]=e>>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var o=0;o<e;++o)t[i+o+4]=r[o];return 8*(i+4+e)},_=function(t,n,e,f,s,u,c,h,l,v,p){D(n,p++,e),++s[256];for(var d=$(s,15),g=d[0],M=d[1],k=$(u,15),T=k[0],x=k[1],S=F(g),A=S[0],z=S[1],U=F(T),O=U[0],B=U[1],C=new r(19),_=0;_<A.length;++_)C[31&A[_]]++;for(_=0;_<O.length;++_)C[31&O[_]]++;for(var j=$(C,7),q=j[0],I=j[1],N=19;N>4&&!q[a[N-1]];--N);var V,W,Y,G,H=v+5<<3,J=P(s,m)+P(u,y)+c,K=P(s,g)+P(u,T)+c+14+3*N+P(C,q)+(2*C[16]+3*C[17]+7*C[18]);if(H<=J&&H<=K)return R(n,p,t.subarray(l,l+v));if(D(n,p,1+(K<J)),p+=2,K<J){V=w(g,M,0),W=g,Y=w(T,x,0),G=T;var Q=w(q,I,0);for(D(n,p,z-257),D(n,p+5,B-1),D(n,p+10,N-4),p+=14,_=0;_<N;++_)D(n,p+3*_,q[a[_]]);p+=3*N;for(var X=[A,O],Z=0;Z<2;++Z){var tt=X[Z];for(_=0;_<tt.length;++_)D(n,p,Q[nt=31&tt[_]]),p+=q[nt],nt>15&&(D(n,p,tt[_]>>>5&127),p+=tt[_]>>>12)}}else V=b,W=m,Y=E,G=y;for(_=0;_<h;++_)if(f[_]>255){var nt;L(n,p,V[257+(nt=f[_]>>>18&31)]),p+=W[nt+257],nt>7&&(D(n,p,f[_]>>>23&31),p+=i[nt]);var rt=31&f[_];L(n,p,Y[rt]),p+=G[rt],rt>3&&(L(n,p,f[_]>>>5&8191),p+=o[rt])}else L(n,p,V[f[_]]),p+=W[f[_]];return L(n,p,V[256]),p+W[256]},j=/*#__PURE__*/new e([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),q=/*#__PURE__*/new n(0),I=function(t,a,f,s,u,h){var l=t.length,p=new n(s+l+5*(1+Math.ceil(l/7e3))+u),d=p.subarray(s,p.length-u),g=0;if(!a||l<8)for(var w=0;w<=l;w+=65535){var m=w+65535;m>=l&&(d[g>>3]=h),g=R(d,g+1,t.subarray(w,m))}else{for(var y=j[a-1],b=y>>>13,M=8191&y,E=(1<<f)-1,k=new r(32768),T=new r(E+1),x=Math.ceil(f/3),S=2*x,U=function(n){return(t[n]^t[n+1]<<x^t[n+2]<<S)&E},O=new e(25e3),B=new r(288),D=new r(32),L=0,$=0,C=(w=0,0),F=0,P=0;w<l;++w){var I=U(w),N=32767&w,V=T[I];if(k[N]=V,T[I]=N,F<=w){var W=l-w;if((L>7e3||C>24576)&&W>423){g=_(t,d,0,O,B,D,$,C,P,w-P,g),C=L=$=0,P=w;for(var Y=0;Y<286;++Y)B[Y]=0;for(Y=0;Y<30;++Y)D[Y]=0}var G=2,H=0,J=M,K=N-V&32767;if(W>2&&I==U(w-K))for(var Q=Math.min(b,W)-1,X=Math.min(32767,w),Z=Math.min(258,W);K<=X&&--J&&N!=V;){if(t[w+G]==t[w+G-K]){for(var tt=0;tt<Z&&t[w+tt]==t[w+tt-K];++tt);if(tt>G){if(G=tt,H=K,tt>Q)break;var nt=Math.min(K,tt-2),rt=0;for(Y=0;Y<nt;++Y){var et=w-K+Y+32768&32767,it=et-k[et]+32768&32767;it>rt&&(rt=it,V=et)}}}K+=(N=V)-(V=k[N])+32768&32767}if(H){O[C++]=268435456|c[G]<<18|v[H];var ot=31&c[G],at=31&v[H];$+=i[ot]+o[at],++B[257+ot],++D[at],F=w+G,++L}else O[C++]=t[w],++B[t[w]]}}g=_(t,d,h,O,B,D,$,C,P,w-P,g),!h&&7&g&&(g=R(d,g+1,q))}return z(p,0,s+A(g)+u)},N=/*#__PURE__*/function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),V=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=N[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}},W=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,o=0|r.length,a=0;a!=o;){for(var f=Math.min(a+2655,o);a<f;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|t>>>8<<16|(255&(n%=65521))<<8|n>>>8}}},Y=function(t,n,r,e,i){return I(t,null==n.level?6:n.level,null==n.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+n.mem,r,e,!i)},G=function(t,n,r){for(var e=t(),i=t.toString(),o=i.slice(i.indexOf("[")+1,i.lastIndexOf("]")).replace(/\s+/g,"").split(","),a=0;a<e.length;++a){var f=e[a],s=o[a];if("function"==typeof f){n+=";"+s+"=";var u=f.toString();if(f.prototype)if(-1!=u.indexOf("[native code]")){var c=u.indexOf(" ",8)+1;n+=u.slice(c,u.indexOf("(",c))}else for(var h in n+=u,f.prototype)n+=";"+s+".prototype."+h+"="+f.prototype[h].toString();else n+=u}else r[s]=f}return[n,r]},H=[],J=function(){return[n,r,e,i,o,a,u,l,M,k,p,U,w,T,x,S,A,z,O,B,mt,nt,rt]},K=function(){return[n,r,e,i,o,a,c,v,b,m,E,y,p,j,q,w,D,L,$,C,F,P,R,_,A,z,I,Y,dt,nt]},Q=function(){return[at,ut,ot,V,N]},X=function(){return[ft,st]},Z=function(){return[ct,ot,W]},tt=function(){return[ht]},nt=function(t){return postMessage(t,[t.buffer])},rt=function(t){return t&&t.size&&new n(t.size)},et=function(t){return t.ondata=function(t,n){return postMessage([t,n],[t.buffer])},function(n){return t.push(n.data[0],n.data[1])}},it=function(n,r,e,i,o){var a,f=function(n,e,i,o){var a;if(!H[i]){for(var s="",u={},c=n.length-1,h=0;h<c;++h)s=(a=G(n[h],s,u))[0],u=a[1];H[i]=G(n[c],s,u)}var l=function(t,n){var r={};for(var e in t)r[e]=t[e];for(var e in n)r[e]=n[e];return r}({},H[i][1]);return function(n,r,e,i,o){var a=new Worker(t[r]||(t[r]=URL.createObjectURL(new Blob([n+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return a.onmessage=function(t){var n=t.data,r=n.$e$;if(r){var e=new Error(r[0]);e.code=r[1],e.stack=r[2],o(e,null)}else o(null,n)},a.postMessage(e,i),a}(H[i][0]+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+e.toString()+"}",i,l,function(t){var n=[];for(var r in t)t[r].buffer&&n.push((t[r]=new t[r].constructor(t[r])).buffer);return n}(l),function(t,n){t?(f.terminate(),r.ondata.call(r,t)):(n[1]&&f.terminate(),r.ondata.call(r,t,n[0],n[1]))})}(n,i,o);f.postMessage(e),r.push=function(t,n){r.ondata||O(5),a&&r.ondata(O(4,0,1),null,!!n),f.postMessage([t,a=n],[t.buffer])},r.terminate=function(){f.terminate()}},ot=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},at=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&ot(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}},ft=function(t){31==t[0]&&139==t[1]&&8==t[2]||O(6,"invalid gzip data");var n=t[3],r=10;4&n&&(r+=t[10]|2+(t[11]<<8));for(var e=(n>>3&1)+(n>>4&1);e>0;e-=!t[r++]);return r+(2&n)},st=function(t){var n=t.length;return(t[n-4]|t[n-3]<<8|t[n-2]<<16|t[n-1]<<24)>>>0},ut=function(t){return 10+(t.filename&&t.filename.length+1||0)},ct=function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;t[0]=120,t[1]=e<<6|(e?32-2*e:1)},ht=function(t){(8!=(15&t[0])||t[0]>>>4>7||(t[0]<<8|t[1])%31)&&O(6,"invalid zlib data"),32&t[1]&&O(6,"invalid zlib data: preset dictionaries not supported")};function lt(t,n){return n||"function"!=typeof t||(n=t,t={}),this.ondata=n,t}var vt=/*#__PURE__*/function(){function t(t,n){n||"function"!=typeof t||(n=t,t={}),this.ondata=n,this.o=t||{}}return t.prototype.p=function(t,n){this.ondata(Y(t,this.o,0,0,!n),n)},t.prototype.push=function(t,n){this.ondata||O(5),this.d&&O(4),this.d=n,this.p(t,n||!1)},t}(),pt=/*#__PURE__*/function(){return function(t,n){it([K,function(){return[et,vt]}],this,lt.call(this,t,n),function(t){var n=new vt(t.data);onmessage=et(n)},6)}}();function dt(t,n){return Y(t,n||{},0,0)}var gt=/*#__PURE__*/function(){function t(t){this.s={},this.p=new n(0),this.ondata=t}return t.prototype.e=function(t){this.ondata||O(5),this.d&&O(4);var r=this.p.length,e=new n(r+t.length);e.set(this.p),e.set(t,r),this.p=e},t.prototype.c=function(t){this.d=this.s.i=t||!1;var n=this.s.b,r=B(this.p,this.o,this.s);this.ondata(z(r,n,this.s.b),this.d),this.o=z(r,this.s.b-32768),this.s.b=this.o.length,this.p=z(this.p,this.s.p/8|0),this.s.p&=7},t.prototype.push=function(t,n){this.e(t),this.c(n)},t}(),wt=/*#__PURE__*/function(){return function(t){this.ondata=t,it([J,function(){return[et,gt]}],this,0,function(){var t=new gt;onmessage=et(t)},7)}}();function mt(t,n){return B(t,n)}var yt=/*#__PURE__*/function(){function t(t,n){this.c=V(),this.l=0,this.v=1,vt.call(this,t,n)}return t.prototype.push=function(t,n){vt.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){this.c.p(t),this.l+=t.length;var r=Y(t,this.o,this.v&&ut(this.o),n&&8,!n);this.v&&(at(r,this.o),this.v=0),n&&(ot(r,r.length-8,this.c.d()),ot(r,r.length-4,this.l)),this.ondata(r,n)},t}(),bt=/*#__PURE__*/function(){return function(t,n){it([K,Q,function(){return[et,vt,yt]}],this,lt.call(this,t,n),function(t){var n=new yt(t.data);onmessage=et(n)},8)}}(),Mt=/*#__PURE__*/function(){function t(t){this.v=1,gt.call(this,t)}return t.prototype.push=function(t,n){if(gt.prototype.e.call(this,t),this.v){var r=this.p.length>3?ft(this.p):4;if(r>=this.p.length&&!n)return;this.p=this.p.subarray(r),this.v=0}n&&(this.p.length<8&&O(6,"invalid gzip data"),this.p=this.p.subarray(0,-8)),gt.prototype.c.call(this,n)},t}(),Et=/*#__PURE__*/function(){return function(t){this.ondata=t,it([J,X,function(){return[et,gt,Mt]}],this,0,function(){var t=new Mt;onmessage=et(t)},9)}}(),kt=/*#__PURE__*/function(){function t(t,n){this.c=W(),this.v=1,vt.call(this,t,n)}return t.prototype.push=function(t,n){vt.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){this.c.p(t);var r=Y(t,this.o,this.v&&2,n&&4,!n);this.v&&(ct(r,this.o),this.v=0),n&&ot(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),Tt=/*#__PURE__*/function(){return function(t,n){it([K,Z,function(){return[et,vt,kt]}],this,lt.call(this,t,n),function(t){var n=new kt(t.data);onmessage=et(n)},10)}}(),xt=/*#__PURE__*/function(){function t(t){this.v=1,gt.call(this,t)}return t.prototype.push=function(t,n){if(gt.prototype.e.call(this,t),this.v){if(this.p.length<2&&!n)return;this.p=this.p.subarray(2),this.v=0}n&&(this.p.length<4&&O(6,"invalid zlib data"),this.p=this.p.subarray(0,-4)),gt.prototype.c.call(this,n)},t}(),St=/*#__PURE__*/function(){return function(t){this.ondata=t,it([J,tt,function(){return[et,gt,xt]}],this,0,function(){var t=new xt;onmessage=et(t)},11)}}(),At="undefined"!=typeof TextDecoder&&/*#__PURE__*/new TextDecoder;try{At.decode(q,{stream:!0})}catch(t){}const zt={gzip:bt,deflate:Tt,"deflate-raw":pt},Ut={gzip:Et,deflate:St,"deflate-raw":wt},Ot=(t,n,r)=>class extends t{constructor(t){if(!arguments.length)throw new TypeError(`Failed to construct '${r}': 1 argument required, but only 0 present.`);const e=n[t];if(!e)throw new TypeError(`Failed to construct '${r}': Unsupported compression format: '${t}'`);let i,o=new e;super({start:t=>{o.ondata=(n,r,e)=>{n?t.error(n):r&&(t.enqueue(r),e&&t.terminate()),i()}},transform:t=>new Promise(n=>{if(i=n,t instanceof ArrayBuffer)t=new Uint8Array(t);else{if(!ArrayBuffer.isView(t))throw new TypeError("The provided value is not of type '(ArrayBuffer or ArrayBufferView)'");t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}o.push(t)}),flush:()=>new Promise(t=>{i=t,o.push(new Uint8Array(0),!0)})},{size:t=>0|t.byteLength,highWaterMark:65536})}},Bt="undefined"==typeof globalThis?"undefined"==typeof self?"undefined"==typeof global?{}:global:self:globalThis;void 0===Bt.CompressionStream&&(Bt.CompressionStream=function(t){class n extends(Ot(t,zt,"CompressionStream")){}return n}(TransformStream)),void 0===Bt.DecompressionStream&&(Bt.DecompressionStream=function(t){class n extends(Ot(t,Ut,"DecompressionStream")){}return n}(TransformStream))}); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
35558
439
0