rmapi-js 9.0.0 → 9.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/raw.d.ts +1 -1
- package/dist/raw.js +3 -3
- package/dist/rmapi-js.esm.min.js +8 -8
- package/package.json +7 -2
package/dist/rmapi-js.esm.min.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
var jK=Object.create;var{getPrototypeOf:FK,defineProperty:s1,getOwnPropertyNames:J7,getOwnPropertyDescriptor:HK}=Object,K7=Object.prototype.hasOwnProperty;var V5=(Q,q,$)=>{$=Q!=null?jK(FK(Q)):{};let X=q||!Q||!Q.__esModule?s1($,"default",{value:Q,enumerable:!0}):$;for(let Y of J7(Q))if(!K7.call(X,Y))s1(X,Y,{get:()=>Q[Y],enumerable:!0});return X},U7=new WeakMap,a0=(Q)=>{var q=U7.get(Q),$;if(q)return q;if(q=s1({},"__esModule",{value:!0}),Q&&typeof Q==="object"||typeof Q==="function")J7(Q).map((X)=>!K7.call(q,X)&&s1(q,X,{get:()=>Q[X],enumerable:!($=HK(Q,X))||$.enumerable}));return U7.set(Q,q),q},k=(Q,q)=>()=>(q||Q((q={exports:{}}).exports,q),q.exports);var V7=(Q,q)=>{for(var $ in q)s1(Q,$,{get:q[$],enumerable:!0,configurable:!0,set:(X)=>q[$]=()=>X})};var z7=(Q,q)=>()=>(Q&&(q=Q(Q=0)),q);var A2={};V7(A2,{transcode:()=>qV,resolveObjectURL:()=>tK,kStringMaxLength:()=>M7,kMaxLength:()=>t1,isUtf8:()=>eK,isAscii:()=>QV,default:()=>$V,constants:()=>OK,btoa:()=>IK,atob:()=>NK,INSPECT_MAX_BYTES:()=>w7,File:()=>DK,Buffer:()=>_,Blob:()=>AK});function wK(Q){var q=Q.length;if(q%4>0)throw Error("Invalid string. Length must be a multiple of 4");var $=Q.indexOf("=");if($===-1)$=q;var X=$===q?0:4-$%4;return[$,X]}function MK(Q,q){return(Q+q)*3/4-q}function PK(Q){var q,$=wK(Q),X=$[0],Y=$[1],U=new Uint8Array(MK(X,Y)),J=0,K=Y>0?X-4:X,G;for(G=0;G<K;G+=4)q=s0[Q.charCodeAt(G)]<<18|s0[Q.charCodeAt(G+1)]<<12|s0[Q.charCodeAt(G+2)]<<6|s0[Q.charCodeAt(G+3)],U[J++]=q>>16&255,U[J++]=q>>8&255,U[J++]=q&255;if(Y===2)q=s0[Q.charCodeAt(G)]<<2|s0[Q.charCodeAt(G+1)]>>4,U[J++]=q&255;if(Y===1)q=s0[Q.charCodeAt(G)]<<10|s0[Q.charCodeAt(G+1)]<<4|s0[Q.charCodeAt(G+2)]>>2,U[J++]=q>>8&255,U[J++]=q&255;return U}function LK(Q){return B2[Q>>18&63]+B2[Q>>12&63]+B2[Q>>6&63]+B2[Q&63]}function CK(Q,q,$){var X,Y=[];for(var U=q;U<$;U+=3)X=(Q[U]<<16&16711680)+(Q[U+1]<<8&65280)+(Q[U+2]&255),Y.push(LK(X));return Y.join("")}function W7(Q){var q,$=Q.length,X=$%3,Y=[],U=16383;for(var J=0,K=$-X;J<K;J+=U)Y.push(CK(Q,J,J+U>K?K:J+U));if(X===1)q=Q[$-1],Y.push(B2[q>>2]+B2[q<<4&63]+"==");else if(X===2)q=(Q[$-2]<<8)+Q[$-1],Y.push(B2[q>>10]+B2[q>>4&63]+B2[q<<2&63]+"=");return Y.join("")}function b6(Q,q,$,X,Y){var U,J,K=Y*8-X-1,G=(1<<K)-1,V=G>>1,z=-7,w=$?Y-1:0,F=$?-1:1,Z=Q[q+w];w+=F,U=Z&(1<<-z)-1,Z>>=-z,z+=K;for(;z>0;U=U*256+Q[q+w],w+=F,z-=8);J=U&(1<<-z)-1,U>>=-z,z+=X;for(;z>0;J=J*256+Q[q+w],w+=F,z-=8);if(U===0)U=1-V;else if(U===G)return J?NaN:(Z?-1:1)*(1/0);else J=J+Math.pow(2,X),U=U-V;return(Z?-1:1)*J*Math.pow(2,U-X)}function H7(Q,q,$,X,Y,U){var J,K,G,V=U*8-Y-1,z=(1<<V)-1,w=z>>1,F=Y===23?Math.pow(2,-24)-Math.pow(2,-77):0,Z=X?0:U-1,h=X?1:-1,g=q<0||q===0&&1/q<0?1:0;if(q=Math.abs(q),isNaN(q)||q===1/0)K=isNaN(q)?1:0,J=z;else{if(J=Math.floor(Math.log(q)/Math.LN2),q*(G=Math.pow(2,-J))<1)J--,G*=2;if(J+w>=1)q+=F/G;else q+=F*Math.pow(2,1-w);if(q*G>=2)J++,G/=2;if(J+w>=z)K=0,J=z;else if(J+w>=1)K=(q*G-1)*Math.pow(2,Y),J=J+w;else K=q*Math.pow(2,w-1)*Math.pow(2,Y),J=0}for(;Y>=8;Q[$+Z]=K&255,Z+=h,K/=256,Y-=8);J=J<<Y|K,V+=Y;for(;V>0;Q[$+Z]=J&255,Z+=h,J/=256,V-=8);Q[$+Z-h]|=g*128}function D2(Q){if(Q>t1)throw RangeError('The value "'+Q+'" is invalid for option "size"');let q=new Uint8Array(Q);return Object.setPrototypeOf(q,_.prototype),q}function j5(Q,q,$){return class extends ${constructor(){super();Object.defineProperty(this,"message",{value:q.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${Q}]`,this.stack,delete this.name}get code(){return Q}set code(X){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:X,writable:!0})}toString(){return`${this.name} [${Q}]: ${this.message}`}}}function _(Q,q,$){if(typeof Q==="number"){if(typeof q==="string")throw TypeError('The "string" argument must be of type string. Received type number');return F5(Q)}return P7(Q,q,$)}function P7(Q,q,$){if(typeof Q==="string")return vK(Q,q);if(ArrayBuffer.isView(Q))return EK(Q);if(Q==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Q);if(Z2(Q,ArrayBuffer)||Q&&Z2(Q.buffer,ArrayBuffer))return B5(Q,q,$);if(typeof SharedArrayBuffer<"u"&&(Z2(Q,SharedArrayBuffer)||Q&&Z2(Q.buffer,SharedArrayBuffer)))return B5(Q,q,$);if(typeof Q==="number")throw TypeError('The "value" argument must not be of type number. Received type number');let X=Q.valueOf&&Q.valueOf();if(X!=null&&X!==Q)return _.from(X,q,$);let Y=SK(Q);if(Y)return Y;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Q[Symbol.toPrimitive]==="function")return _.from(Q[Symbol.toPrimitive]("string"),q,$);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Q)}function L7(Q){if(typeof Q!=="number")throw TypeError('"size" argument must be of type number');else if(Q<0)throw RangeError('The value "'+Q+'" is invalid for option "size"')}function TK(Q,q,$){if(L7(Q),Q<=0)return D2(Q);if(q!==void 0)return typeof $==="string"?D2(Q).fill(q,$):D2(Q).fill(q);return D2(Q)}function F5(Q){return L7(Q),D2(Q<0?0:H5(Q)|0)}function vK(Q,q){if(typeof q!=="string"||q==="")q="utf8";if(!_.isEncoding(q))throw TypeError("Unknown encoding: "+q);let $=C7(Q,q)|0,X=D2($),Y=X.write(Q,q);if(Y!==$)X=X.slice(0,Y);return X}function W5(Q){let q=Q.length<0?0:H5(Q.length)|0,$=D2(q);for(let X=0;X<q;X+=1)$[X]=Q[X]&255;return $}function EK(Q){if(Z2(Q,Uint8Array)){let q=new Uint8Array(Q);return B5(q.buffer,q.byteOffset,q.byteLength)}return W5(Q)}function B5(Q,q,$){if(q<0||Q.byteLength<q)throw RangeError('"offset" is outside of buffer bounds');if(Q.byteLength<q+($||0))throw RangeError('"length" is outside of buffer bounds');let X;if(q===void 0&&$===void 0)X=new Uint8Array(Q);else if($===void 0)X=new Uint8Array(Q,q);else X=new Uint8Array(Q,q,$);return Object.setPrototypeOf(X,_.prototype),X}function SK(Q){if(_.isBuffer(Q)){let q=H5(Q.length)|0,$=D2(q);if($.length===0)return $;return Q.copy($,0,0,q),$}if(Q.length!==void 0){if(typeof Q.length!=="number"||Number.isNaN(Q.length))return D2(0);return W5(Q)}if(Q.type==="Buffer"&&Array.isArray(Q.data))return W5(Q.data)}function H5(Q){if(Q>=t1)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+t1.toString(16)+" bytes");return Q|0}function C7(Q,q){if(_.isBuffer(Q))return Q.length;if(ArrayBuffer.isView(Q)||Z2(Q,ArrayBuffer))return Q.byteLength;if(typeof Q!=="string")throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Q);let $=Q.length,X=arguments.length>2&&arguments[2]===!0;if(!X&&$===0)return 0;let Y=!1;for(;;)switch(q){case"ascii":case"latin1":case"binary":return $;case"utf8":case"utf-8":return Z5(Q).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $*2;case"hex":return $>>>1;case"base64":return v7(Q).length;default:if(Y)return X?-1:Z5(Q).length;q=(""+q).toLowerCase(),Y=!0}}function kK(Q,q,$){let X=!1;if(q===void 0||q<0)q=0;if(q>this.length)return"";if($===void 0||$>this.length)$=this.length;if($<=0)return"";if($>>>=0,q>>>=0,$<=q)return"";if(!Q)Q="utf8";while(!0)switch(Q){case"hex":return mK(this,q,$);case"utf8":case"utf-8":return N7(this,q,$);case"ascii":return cK(this,q,$);case"latin1":case"binary":return pK(this,q,$);case"base64":return bK(this,q,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return dK(this,q,$);default:if(X)throw TypeError("Unknown encoding: "+Q);Q=(Q+"").toLowerCase(),X=!0}}function X1(Q,q,$){let X=Q[q];Q[q]=Q[$],Q[$]=X}function I7(Q,q,$,X,Y){if(Q.length===0)return-1;if(typeof $==="string")X=$,$=0;else if($>2147483647)$=2147483647;else if($<-2147483648)$=-2147483648;if($=+$,Number.isNaN($))$=Y?0:Q.length-1;if($<0)$=Q.length+$;if($>=Q.length)if(Y)return-1;else $=Q.length-1;else if($<0)if(Y)$=0;else return-1;if(typeof q==="string")q=_.from(q,X);if(_.isBuffer(q)){if(q.length===0)return-1;return Z7(Q,q,$,X,Y)}else if(typeof q==="number"){if(q=q&255,typeof Uint8Array.prototype.indexOf==="function")if(Y)return Uint8Array.prototype.indexOf.call(Q,q,$);else return Uint8Array.prototype.lastIndexOf.call(Q,q,$);return Z7(Q,[q],$,X,Y)}throw TypeError("val must be string, number or Buffer")}function Z7(Q,q,$,X,Y){let U=1,J=Q.length,K=q.length;if(X!==void 0){if(X=String(X).toLowerCase(),X==="ucs2"||X==="ucs-2"||X==="utf16le"||X==="utf-16le"){if(Q.length<2||q.length<2)return-1;U=2,J/=2,K/=2,$/=2}}function G(z,w){if(U===1)return z[w];else return z.readUInt16BE(w*U)}let V;if(Y){let z=-1;for(V=$;V<J;V++)if(G(Q,V)===G(q,z===-1?0:V-z)){if(z===-1)z=V;if(V-z+1===K)return z*U}else{if(z!==-1)V-=V-z;z=-1}}else{if($+K>J)$=J-K;for(V=$;V>=0;V--){let z=!0;for(let w=0;w<K;w++)if(G(Q,V+w)!==G(q,w)){z=!1;break}if(z)return V}}return-1}function gK(Q,q,$,X){$=Number($)||0;let Y=Q.length-$;if(!X)X=Y;else if(X=Number(X),X>Y)X=Y;let U=q.length;if(X>U/2)X=U/2;let J;for(J=0;J<X;++J){let K=parseInt(q.substr(J*2,2),16);if(Number.isNaN(K))return J;Q[$+J]=K}return J}function yK(Q,q,$,X){return u6(Z5(q,Q.length-$),Q,$,X)}function fK(Q,q,$,X){return u6(nK(q),Q,$,X)}function hK(Q,q,$,X){return u6(v7(q),Q,$,X)}function _K(Q,q,$,X){return u6(rK(q,Q.length-$),Q,$,X)}function bK(Q,q,$){if(q===0&&$===Q.length)return W7(Q);else return W7(Q.slice(q,$))}function N7(Q,q,$){$=Math.min(Q.length,$);let X=[],Y=q;while(Y<$){let U=Q[Y],J=null,K=U>239?4:U>223?3:U>191?2:1;if(Y+K<=$){let G,V,z,w;switch(K){case 1:if(U<128)J=U;break;case 2:if(G=Q[Y+1],(G&192)===128){if(w=(U&31)<<6|G&63,w>127)J=w}break;case 3:if(G=Q[Y+1],V=Q[Y+2],(G&192)===128&&(V&192)===128){if(w=(U&15)<<12|(G&63)<<6|V&63,w>2047&&(w<55296||w>57343))J=w}break;case 4:if(G=Q[Y+1],V=Q[Y+2],z=Q[Y+3],(G&192)===128&&(V&192)===128&&(z&192)===128){if(w=(U&15)<<18|(G&63)<<12|(V&63)<<6|z&63,w>65535&&w<1114112)J=w}}}if(J===null)J=65533,K=1;else if(J>65535)J-=65536,X.push(J>>>10&1023|55296),J=56320|J&1023;X.push(J),Y+=K}return uK(X)}function uK(Q){let q=Q.length;if(q<=j7)return String.fromCharCode.apply(String,Q);let $="",X=0;while(X<q)$+=String.fromCharCode.apply(String,Q.slice(X,X+=j7));return $}function cK(Q,q,$){let X="";$=Math.min(Q.length,$);for(let Y=q;Y<$;++Y)X+=String.fromCharCode(Q[Y]&127);return X}function pK(Q,q,$){let X="";$=Math.min(Q.length,$);for(let Y=q;Y<$;++Y)X+=String.fromCharCode(Q[Y]);return X}function mK(Q,q,$){let X=Q.length;if(!q||q<0)q=0;if(!$||$<0||$>X)$=X;let Y="";for(let U=q;U<$;++U)Y+=aK[Q[U]];return Y}function dK(Q,q,$){let X=Q.slice(q,$),Y="";for(let U=0;U<X.length-1;U+=2)Y+=String.fromCharCode(X[U]+X[U+1]*256);return Y}function v0(Q,q,$){if(Q%1!==0||Q<0)throw RangeError("offset is not uint");if(Q+q>$)throw RangeError("Trying to access beyond buffer length")}function c0(Q,q,$,X,Y,U){if(!_.isBuffer(Q))throw TypeError('"buffer" argument must be a Buffer instance');if(q>Y||q<U)throw RangeError('"value" argument is out of bounds');if($+X>Q.length)throw RangeError("Index out of range")}function D7(Q,q,$,X,Y){T7(q,X,Y,Q,$,7);let U=Number(q&BigInt(4294967295));Q[$++]=U,U=U>>8,Q[$++]=U,U=U>>8,Q[$++]=U,U=U>>8,Q[$++]=U;let J=Number(q>>BigInt(32)&BigInt(4294967295));return Q[$++]=J,J=J>>8,Q[$++]=J,J=J>>8,Q[$++]=J,J=J>>8,Q[$++]=J,$}function A7(Q,q,$,X,Y){T7(q,X,Y,Q,$,7);let U=Number(q&BigInt(4294967295));Q[$+7]=U,U=U>>8,Q[$+6]=U,U=U>>8,Q[$+5]=U,U=U>>8,Q[$+4]=U;let J=Number(q>>BigInt(32)&BigInt(4294967295));return Q[$+3]=J,J=J>>8,Q[$+2]=J,J=J>>8,Q[$+1]=J,J=J>>8,Q[$]=J,$+8}function O7(Q,q,$,X,Y,U){if($+X>Q.length)throw RangeError("Index out of range");if($<0)throw RangeError("Index out of range")}function R7(Q,q,$,X,Y){if(q=+q,$=$>>>0,!Y)O7(Q,q,$,4,340282346638528860000000000000000000000,-340282346638528860000000000000000000000);return H7(Q,q,$,X,23,4),$+4}function x7(Q,q,$,X,Y){if(q=+q,$=$>>>0,!Y)O7(Q,q,$,8,179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,-179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000);return H7(Q,q,$,X,52,8),$+8}function F7(Q){let q="",$=Q.length,X=Q[0]==="-"?1:0;for(;$>=X+4;$-=3)q=`_${Q.slice($-3,$)}${q}`;return`${Q.slice(0,$)}${q}`}function lK(Q,q,$){if(D1(q,"offset"),Q[q]===void 0||Q[q+$]===void 0)e1(q,Q.length-($+1))}function T7(Q,q,$,X,Y,U){if(Q>$||Q<q){let J=typeof q==="bigint"?"n":"",K;if(U>3)if(q===0||q===BigInt(0))K=`>= 0${J} and < 2${J} ** ${(U+1)*8}${J}`;else K=`>= -(2${J} ** ${(U+1)*8-1}${J}) and < 2 ** ${(U+1)*8-1}${J}`;else K=`>= ${q}${J} and <= ${$}${J}`;throw new G5("value",K,Q)}lK(X,Y,U)}function D1(Q,q){if(typeof Q!=="number")throw new xK(q,"number",Q)}function e1(Q,q,$){if(Math.floor(Q)!==Q)throw D1(Q,$),new G5($||"offset","an integer",Q);if(q<0)throw new RK;throw new G5($||"offset",`>= ${$?1:0} and <= ${q}`,Q)}function oK(Q){if(Q=Q.split("=")[0],Q=Q.trim().replace(iK,""),Q.length<2)return"";while(Q.length%4!==0)Q=Q+"=";return Q}function Z5(Q,q){q=q||1/0;let $,X=Q.length,Y=null,U=[];for(let J=0;J<X;++J){if($=Q.charCodeAt(J),$>55295&&$<57344){if(!Y){if($>56319){if((q-=3)>-1)U.push(239,191,189);continue}else if(J+1===X){if((q-=3)>-1)U.push(239,191,189);continue}Y=$;continue}if($<56320){if((q-=3)>-1)U.push(239,191,189);Y=$;continue}$=(Y-55296<<10|$-56320)+65536}else if(Y){if((q-=3)>-1)U.push(239,191,189)}if(Y=null,$<128){if((q-=1)<0)break;U.push($)}else if($<2048){if((q-=2)<0)break;U.push($>>6|192,$&63|128)}else if($<65536){if((q-=3)<0)break;U.push($>>12|224,$>>6&63|128,$&63|128)}else if($<1114112){if((q-=4)<0)break;U.push($>>18|240,$>>12&63|128,$>>6&63|128,$&63|128)}else throw Error("Invalid code point")}return U}function nK(Q){let q=[];for(let $=0;$<Q.length;++$)q.push(Q.charCodeAt($)&255);return q}function rK(Q,q){let $,X,Y,U=[];for(let J=0;J<Q.length;++J){if((q-=2)<0)break;$=Q.charCodeAt(J),X=$>>8,Y=$%256,U.push(Y),U.push(X)}return U}function v7(Q){return PK(oK(Q))}function u6(Q,q,$,X){let Y;for(Y=0;Y<X;++Y){if(Y+$>=q.length||Y>=Q.length)break;q[Y+$]=Q[Y]}return Y}function Z2(Q,q){return Q instanceof q||Q!=null&&Q.constructor!=null&&Q.constructor.name!=null&&Q.constructor.name===q.name}function f2(Q){return typeof BigInt>"u"?sK:Q}function sK(){throw Error("BigInt not supported")}function w5(Q){return()=>{throw Error(Q+" is not implemented for node:buffer browser polyfill")}}var B2,s0,z5="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$1,G7,B7,w7=50,t1=2147483647,M7=536870888,IK,NK,DK,AK,OK,RK,xK,G5,j7=4096,iK,aK,tK,eK,QV=(Q)=>{for(let q of Q)if(q.charCodeAt(0)>127)return!1;return!0},qV,$V;var O2=z7(()=>{B2=[],s0=[];for($1=0,G7=z5.length;$1<G7;++$1)B2[$1]=z5[$1],s0[z5.charCodeAt($1)]=$1;s0[45]=62;s0[95]=63;B7=typeof Symbol==="function"&&typeof Symbol.for==="function"?Symbol.for("nodejs.util.inspect.custom"):null,IK=globalThis.btoa,NK=globalThis.atob,DK=globalThis.File,AK=globalThis.Blob,OK={MAX_LENGTH:t1,MAX_STRING_LENGTH:M7};RK=j5("ERR_BUFFER_OUT_OF_BOUNDS",function(Q){if(Q)return`${Q} is outside of buffer bounds`;return"Attempt to access memory outside buffer bounds"},RangeError),xK=j5("ERR_INVALID_ARG_TYPE",function(Q,q){return`The "${Q}" argument must be of type number. Received type ${typeof q}`},TypeError),G5=j5("ERR_OUT_OF_RANGE",function(Q,q,$){let X=`The value of "${Q}" is out of range.`,Y=$;if(Number.isInteger($)&&Math.abs($)>4294967296)Y=F7(String($));else if(typeof $==="bigint"){if(Y=String($),$>BigInt(2)**BigInt(32)||$<-(BigInt(2)**BigInt(32)))Y=F7(Y);Y+="n"}return X+=` It must be ${q}. Received ${Y}`,X},RangeError);Object.defineProperty(_.prototype,"parent",{enumerable:!0,get:function(){if(!_.isBuffer(this))return;return this.buffer}});Object.defineProperty(_.prototype,"offset",{enumerable:!0,get:function(){if(!_.isBuffer(this))return;return this.byteOffset}});_.poolSize=8192;_.from=function(Q,q,$){return P7(Q,q,$)};Object.setPrototypeOf(_.prototype,Uint8Array.prototype);Object.setPrototypeOf(_,Uint8Array);_.alloc=function(Q,q,$){return TK(Q,q,$)};_.allocUnsafe=function(Q){return F5(Q)};_.allocUnsafeSlow=function(Q){return F5(Q)};_.isBuffer=function(Q){return Q!=null&&Q._isBuffer===!0&&Q!==_.prototype};_.compare=function(Q,q){if(Z2(Q,Uint8Array))Q=_.from(Q,Q.offset,Q.byteLength);if(Z2(q,Uint8Array))q=_.from(q,q.offset,q.byteLength);if(!_.isBuffer(Q)||!_.isBuffer(q))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Q===q)return 0;let $=Q.length,X=q.length;for(let Y=0,U=Math.min($,X);Y<U;++Y)if(Q[Y]!==q[Y]){$=Q[Y],X=q[Y];break}if($<X)return-1;if(X<$)return 1;return 0};_.isEncoding=function(Q){switch(String(Q).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};_.concat=function(Q,q){if(!Array.isArray(Q))throw TypeError('"list" argument must be an Array of Buffers');if(Q.length===0)return _.alloc(0);let $;if(q===void 0){q=0;for($=0;$<Q.length;++$)q+=Q[$].length}let X=_.allocUnsafe(q),Y=0;for($=0;$<Q.length;++$){let U=Q[$];if(Z2(U,Uint8Array))if(Y+U.length>X.length){if(!_.isBuffer(U))U=_.from(U);U.copy(X,Y)}else Uint8Array.prototype.set.call(X,U,Y);else if(!_.isBuffer(U))throw TypeError('"list" argument must be an Array of Buffers');else U.copy(X,Y);Y+=U.length}return X};_.byteLength=C7;_.prototype._isBuffer=!0;_.prototype.swap16=function(){let Q=this.length;if(Q%2!==0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let q=0;q<Q;q+=2)X1(this,q,q+1);return this};_.prototype.swap32=function(){let Q=this.length;if(Q%4!==0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let q=0;q<Q;q+=4)X1(this,q,q+3),X1(this,q+1,q+2);return this};_.prototype.swap64=function(){let Q=this.length;if(Q%8!==0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let q=0;q<Q;q+=8)X1(this,q,q+7),X1(this,q+1,q+6),X1(this,q+2,q+5),X1(this,q+3,q+4);return this};_.prototype.toString=function(){let Q=this.length;if(Q===0)return"";if(arguments.length===0)return N7(this,0,Q);return kK.apply(this,arguments)};_.prototype.toLocaleString=_.prototype.toString;_.prototype.equals=function(Q){if(!_.isBuffer(Q))throw TypeError("Argument must be a Buffer");if(this===Q)return!0;return _.compare(this,Q)===0};_.prototype.inspect=function(){let Q="",q=w7;if(Q=this.toString("hex",0,q).replace(/(.{2})/g,"$1 ").trim(),this.length>q)Q+=" ... ";return"<Buffer "+Q+">"};if(B7)_.prototype[B7]=_.prototype.inspect;_.prototype.compare=function(Q,q,$,X,Y){if(Z2(Q,Uint8Array))Q=_.from(Q,Q.offset,Q.byteLength);if(!_.isBuffer(Q))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Q);if(q===void 0)q=0;if($===void 0)$=Q?Q.length:0;if(X===void 0)X=0;if(Y===void 0)Y=this.length;if(q<0||$>Q.length||X<0||Y>this.length)throw RangeError("out of range index");if(X>=Y&&q>=$)return 0;if(X>=Y)return-1;if(q>=$)return 1;if(q>>>=0,$>>>=0,X>>>=0,Y>>>=0,this===Q)return 0;let U=Y-X,J=$-q,K=Math.min(U,J),G=this.slice(X,Y),V=Q.slice(q,$);for(let z=0;z<K;++z)if(G[z]!==V[z]){U=G[z],J=V[z];break}if(U<J)return-1;if(J<U)return 1;return 0};_.prototype.includes=function(Q,q,$){return this.indexOf(Q,q,$)!==-1};_.prototype.indexOf=function(Q,q,$){return I7(this,Q,q,$,!0)};_.prototype.lastIndexOf=function(Q,q,$){return I7(this,Q,q,$,!1)};_.prototype.write=function(Q,q,$,X){if(q===void 0)X="utf8",$=this.length,q=0;else if($===void 0&&typeof q==="string")X=q,$=this.length,q=0;else if(isFinite(q))if(q=q>>>0,isFinite($)){if($=$>>>0,X===void 0)X="utf8"}else X=$,$=void 0;else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let Y=this.length-q;if($===void 0||$>Y)$=Y;if(Q.length>0&&($<0||q<0)||q>this.length)throw RangeError("Attempt to write outside buffer bounds");if(!X)X="utf8";let U=!1;for(;;)switch(X){case"hex":return gK(this,Q,q,$);case"utf8":case"utf-8":return yK(this,Q,q,$);case"ascii":case"latin1":case"binary":return fK(this,Q,q,$);case"base64":return hK(this,Q,q,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _K(this,Q,q,$);default:if(U)throw TypeError("Unknown encoding: "+X);X=(""+X).toLowerCase(),U=!0}};_.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};_.prototype.slice=function(Q,q){let $=this.length;if(Q=~~Q,q=q===void 0?$:~~q,Q<0){if(Q+=$,Q<0)Q=0}else if(Q>$)Q=$;if(q<0){if(q+=$,q<0)q=0}else if(q>$)q=$;if(q<Q)q=Q;let X=this.subarray(Q,q);return Object.setPrototypeOf(X,_.prototype),X};_.prototype.readUintLE=_.prototype.readUIntLE=function(Q,q,$){if(Q=Q>>>0,q=q>>>0,!$)v0(Q,q,this.length);let X=this[Q],Y=1,U=0;while(++U<q&&(Y*=256))X+=this[Q+U]*Y;return X};_.prototype.readUintBE=_.prototype.readUIntBE=function(Q,q,$){if(Q=Q>>>0,q=q>>>0,!$)v0(Q,q,this.length);let X=this[Q+--q],Y=1;while(q>0&&(Y*=256))X+=this[Q+--q]*Y;return X};_.prototype.readUint8=_.prototype.readUInt8=function(Q,q){if(Q=Q>>>0,!q)v0(Q,1,this.length);return this[Q]};_.prototype.readUint16LE=_.prototype.readUInt16LE=function(Q,q){if(Q=Q>>>0,!q)v0(Q,2,this.length);return this[Q]|this[Q+1]<<8};_.prototype.readUint16BE=_.prototype.readUInt16BE=function(Q,q){if(Q=Q>>>0,!q)v0(Q,2,this.length);return this[Q]<<8|this[Q+1]};_.prototype.readUint32LE=_.prototype.readUInt32LE=function(Q,q){if(Q=Q>>>0,!q)v0(Q,4,this.length);return(this[Q]|this[Q+1]<<8|this[Q+2]<<16)+this[Q+3]*16777216};_.prototype.readUint32BE=_.prototype.readUInt32BE=function(Q,q){if(Q=Q>>>0,!q)v0(Q,4,this.length);return this[Q]*16777216+(this[Q+1]<<16|this[Q+2]<<8|this[Q+3])};_.prototype.readBigUInt64LE=f2(function(Q){Q=Q>>>0,D1(Q,"offset");let q=this[Q],$=this[Q+7];if(q===void 0||$===void 0)e1(Q,this.length-8);let X=q+this[++Q]*256+this[++Q]*65536+this[++Q]*16777216,Y=this[++Q]+this[++Q]*256+this[++Q]*65536+$*16777216;return BigInt(X)+(BigInt(Y)<<BigInt(32))});_.prototype.readBigUInt64BE=f2(function(Q){Q=Q>>>0,D1(Q,"offset");let q=this[Q],$=this[Q+7];if(q===void 0||$===void 0)e1(Q,this.length-8);let X=q*16777216+this[++Q]*65536+this[++Q]*256+this[++Q],Y=this[++Q]*16777216+this[++Q]*65536+this[++Q]*256+$;return(BigInt(X)<<BigInt(32))+BigInt(Y)});_.prototype.readIntLE=function(Q,q,$){if(Q=Q>>>0,q=q>>>0,!$)v0(Q,q,this.length);let X=this[Q],Y=1,U=0;while(++U<q&&(Y*=256))X+=this[Q+U]*Y;if(Y*=128,X>=Y)X-=Math.pow(2,8*q);return X};_.prototype.readIntBE=function(Q,q,$){if(Q=Q>>>0,q=q>>>0,!$)v0(Q,q,this.length);let X=q,Y=1,U=this[Q+--X];while(X>0&&(Y*=256))U+=this[Q+--X]*Y;if(Y*=128,U>=Y)U-=Math.pow(2,8*q);return U};_.prototype.readInt8=function(Q,q){if(Q=Q>>>0,!q)v0(Q,1,this.length);if(!(this[Q]&128))return this[Q];return(255-this[Q]+1)*-1};_.prototype.readInt16LE=function(Q,q){if(Q=Q>>>0,!q)v0(Q,2,this.length);let $=this[Q]|this[Q+1]<<8;return $&32768?$|4294901760:$};_.prototype.readInt16BE=function(Q,q){if(Q=Q>>>0,!q)v0(Q,2,this.length);let $=this[Q+1]|this[Q]<<8;return $&32768?$|4294901760:$};_.prototype.readInt32LE=function(Q,q){if(Q=Q>>>0,!q)v0(Q,4,this.length);return this[Q]|this[Q+1]<<8|this[Q+2]<<16|this[Q+3]<<24};_.prototype.readInt32BE=function(Q,q){if(Q=Q>>>0,!q)v0(Q,4,this.length);return this[Q]<<24|this[Q+1]<<16|this[Q+2]<<8|this[Q+3]};_.prototype.readBigInt64LE=f2(function(Q){Q=Q>>>0,D1(Q,"offset");let q=this[Q],$=this[Q+7];if(q===void 0||$===void 0)e1(Q,this.length-8);let X=this[Q+4]+this[Q+5]*256+this[Q+6]*65536+($<<24);return(BigInt(X)<<BigInt(32))+BigInt(q+this[++Q]*256+this[++Q]*65536+this[++Q]*16777216)});_.prototype.readBigInt64BE=f2(function(Q){Q=Q>>>0,D1(Q,"offset");let q=this[Q],$=this[Q+7];if(q===void 0||$===void 0)e1(Q,this.length-8);let X=(q<<24)+this[++Q]*65536+this[++Q]*256+this[++Q];return(BigInt(X)<<BigInt(32))+BigInt(this[++Q]*16777216+this[++Q]*65536+this[++Q]*256+$)});_.prototype.readFloatLE=function(Q,q){if(Q=Q>>>0,!q)v0(Q,4,this.length);return b6(this,Q,!0,23,4)};_.prototype.readFloatBE=function(Q,q){if(Q=Q>>>0,!q)v0(Q,4,this.length);return b6(this,Q,!1,23,4)};_.prototype.readDoubleLE=function(Q,q){if(Q=Q>>>0,!q)v0(Q,8,this.length);return b6(this,Q,!0,52,8)};_.prototype.readDoubleBE=function(Q,q){if(Q=Q>>>0,!q)v0(Q,8,this.length);return b6(this,Q,!1,52,8)};_.prototype.writeUintLE=_.prototype.writeUIntLE=function(Q,q,$,X){if(Q=+Q,q=q>>>0,$=$>>>0,!X){let J=Math.pow(2,8*$)-1;c0(this,Q,q,$,J,0)}let Y=1,U=0;this[q]=Q&255;while(++U<$&&(Y*=256))this[q+U]=Q/Y&255;return q+$};_.prototype.writeUintBE=_.prototype.writeUIntBE=function(Q,q,$,X){if(Q=+Q,q=q>>>0,$=$>>>0,!X){let J=Math.pow(2,8*$)-1;c0(this,Q,q,$,J,0)}let Y=$-1,U=1;this[q+Y]=Q&255;while(--Y>=0&&(U*=256))this[q+Y]=Q/U&255;return q+$};_.prototype.writeUint8=_.prototype.writeUInt8=function(Q,q,$){if(Q=+Q,q=q>>>0,!$)c0(this,Q,q,1,255,0);return this[q]=Q&255,q+1};_.prototype.writeUint16LE=_.prototype.writeUInt16LE=function(Q,q,$){if(Q=+Q,q=q>>>0,!$)c0(this,Q,q,2,65535,0);return this[q]=Q&255,this[q+1]=Q>>>8,q+2};_.prototype.writeUint16BE=_.prototype.writeUInt16BE=function(Q,q,$){if(Q=+Q,q=q>>>0,!$)c0(this,Q,q,2,65535,0);return this[q]=Q>>>8,this[q+1]=Q&255,q+2};_.prototype.writeUint32LE=_.prototype.writeUInt32LE=function(Q,q,$){if(Q=+Q,q=q>>>0,!$)c0(this,Q,q,4,4294967295,0);return this[q+3]=Q>>>24,this[q+2]=Q>>>16,this[q+1]=Q>>>8,this[q]=Q&255,q+4};_.prototype.writeUint32BE=_.prototype.writeUInt32BE=function(Q,q,$){if(Q=+Q,q=q>>>0,!$)c0(this,Q,q,4,4294967295,0);return this[q]=Q>>>24,this[q+1]=Q>>>16,this[q+2]=Q>>>8,this[q+3]=Q&255,q+4};_.prototype.writeBigUInt64LE=f2(function(Q,q=0){return D7(this,Q,q,BigInt(0),BigInt("0xffffffffffffffff"))});_.prototype.writeBigUInt64BE=f2(function(Q,q=0){return A7(this,Q,q,BigInt(0),BigInt("0xffffffffffffffff"))});_.prototype.writeIntLE=function(Q,q,$,X){if(Q=+Q,q=q>>>0,!X){let K=Math.pow(2,8*$-1);c0(this,Q,q,$,K-1,-K)}let Y=0,U=1,J=0;this[q]=Q&255;while(++Y<$&&(U*=256)){if(Q<0&&J===0&&this[q+Y-1]!==0)J=1;this[q+Y]=(Q/U>>0)-J&255}return q+$};_.prototype.writeIntBE=function(Q,q,$,X){if(Q=+Q,q=q>>>0,!X){let K=Math.pow(2,8*$-1);c0(this,Q,q,$,K-1,-K)}let Y=$-1,U=1,J=0;this[q+Y]=Q&255;while(--Y>=0&&(U*=256)){if(Q<0&&J===0&&this[q+Y+1]!==0)J=1;this[q+Y]=(Q/U>>0)-J&255}return q+$};_.prototype.writeInt8=function(Q,q,$){if(Q=+Q,q=q>>>0,!$)c0(this,Q,q,1,127,-128);if(Q<0)Q=255+Q+1;return this[q]=Q&255,q+1};_.prototype.writeInt16LE=function(Q,q,$){if(Q=+Q,q=q>>>0,!$)c0(this,Q,q,2,32767,-32768);return this[q]=Q&255,this[q+1]=Q>>>8,q+2};_.prototype.writeInt16BE=function(Q,q,$){if(Q=+Q,q=q>>>0,!$)c0(this,Q,q,2,32767,-32768);return this[q]=Q>>>8,this[q+1]=Q&255,q+2};_.prototype.writeInt32LE=function(Q,q,$){if(Q=+Q,q=q>>>0,!$)c0(this,Q,q,4,2147483647,-2147483648);return this[q]=Q&255,this[q+1]=Q>>>8,this[q+2]=Q>>>16,this[q+3]=Q>>>24,q+4};_.prototype.writeInt32BE=function(Q,q,$){if(Q=+Q,q=q>>>0,!$)c0(this,Q,q,4,2147483647,-2147483648);if(Q<0)Q=4294967295+Q+1;return this[q]=Q>>>24,this[q+1]=Q>>>16,this[q+2]=Q>>>8,this[q+3]=Q&255,q+4};_.prototype.writeBigInt64LE=f2(function(Q,q=0){return D7(this,Q,q,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});_.prototype.writeBigInt64BE=f2(function(Q,q=0){return A7(this,Q,q,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});_.prototype.writeFloatLE=function(Q,q,$){return R7(this,Q,q,!0,$)};_.prototype.writeFloatBE=function(Q,q,$){return R7(this,Q,q,!1,$)};_.prototype.writeDoubleLE=function(Q,q,$){return x7(this,Q,q,!0,$)};_.prototype.writeDoubleBE=function(Q,q,$){return x7(this,Q,q,!1,$)};_.prototype.copy=function(Q,q,$,X){if(!_.isBuffer(Q))throw TypeError("argument should be a Buffer");if(!$)$=0;if(!X&&X!==0)X=this.length;if(q>=Q.length)q=Q.length;if(!q)q=0;if(X>0&&X<$)X=$;if(X===$)return 0;if(Q.length===0||this.length===0)return 0;if(q<0)throw RangeError("targetStart out of bounds");if($<0||$>=this.length)throw RangeError("Index out of range");if(X<0)throw RangeError("sourceEnd out of bounds");if(X>this.length)X=this.length;if(Q.length-q<X-$)X=Q.length-q+$;let Y=X-$;if(this===Q&&typeof Uint8Array.prototype.copyWithin==="function")this.copyWithin(q,$,X);else Uint8Array.prototype.set.call(Q,this.subarray($,X),q);return Y};_.prototype.fill=function(Q,q,$,X){if(typeof Q==="string"){if(typeof q==="string")X=q,q=0,$=this.length;else if(typeof $==="string")X=$,$=this.length;if(X!==void 0&&typeof X!=="string")throw TypeError("encoding must be a string");if(typeof X==="string"&&!_.isEncoding(X))throw TypeError("Unknown encoding: "+X);if(Q.length===1){let U=Q.charCodeAt(0);if(X==="utf8"&&U<128||X==="latin1")Q=U}}else if(typeof Q==="number")Q=Q&255;else if(typeof Q==="boolean")Q=Number(Q);if(q<0||this.length<q||this.length<$)throw RangeError("Out of range index");if($<=q)return this;if(q=q>>>0,$=$===void 0?this.length:$>>>0,!Q)Q=0;let Y;if(typeof Q==="number")for(Y=q;Y<$;++Y)this[Y]=Q;else{let U=_.isBuffer(Q)?Q:_.from(Q,X),J=U.length;if(J===0)throw TypeError('The value "'+Q+'" is invalid for argument "value"');for(Y=0;Y<$-q;++Y)this[Y+q]=U[Y%J]}return this};iK=/[^+/0-9A-Za-z-_]/g;aK=function(){let Q=Array(256);for(let q=0;q<16;++q){let $=q*16;for(let X=0;X<16;++X)Q[$+X]="0123456789abcdef"[q]+"0123456789abcdef"[X]}return Q}();tK=w5("resolveObjectURL"),eK=w5("isUtf8"),qV=w5("transcode"),$V=_});var q6={};V7(q6,{setMaxListeners:()=>c7,once:()=>b7,listenerCount:()=>p7,init:()=>h2,getMaxListeners:()=>d7,getEventListeners:()=>u7,default:()=>WV,captureRejectionSymbol:()=>y7,addAbortListener:()=>l7,EventEmitter:()=>h2});function f7(Q,q){var{_events:$}=Q;if(q[0]??=Error("Unhandled error."),!$)throw q[0];var X=$[g7];if(X)for(var Y of S7.call(X))Y.apply(Q,q);var U=$.error;if(!U)throw q[0];for(var Y of S7.call(U))Y.apply(Q,q);return!0}function UV(Q,q,$,X){q.then(void 0,function(Y){queueMicrotask(()=>JV(Q,Y,$,X))})}function JV(Q,q,$,X){if(typeof Q[E7]==="function")Q[E7](q,$,...X);else try{Q[Y1]=!1,Q.emit("error",q)}finally{Q[Y1]=!0}}function h7(Q,q,$){$.warned=!0;let X=Error(`Possible EventEmitter memory leak detected. ${$.length} ${String(q)} listeners added to [${Q.constructor.name}]. Use emitter.setMaxListeners() to increase limit`);X.name="MaxListenersExceededWarning",X.emitter=Q,X.type=q,X.count=$.length,console.warn(X)}function _7(Q,q,...$){this.removeListener(Q,q),q.apply(this,$)}function b7(Q,q,$){var X=$?.signal;if(m7(X,"options.signal"),X?.aborted)throw new M5(void 0,{cause:X?.reason});let{resolve:Y,reject:U,promise:J}=$newPromiseCapability(Promise),K=(z)=>{if(Q.removeListener(q,G),X!=null)c6(X,"abort",V);U(z)},G=(...z)=>{if(typeof Q.removeListener==="function")Q.removeListener("error",K);if(X!=null)c6(X,"abort",V);Y(z)};if(k7(Q,q,G,{once:!0}),q!=="error"&&typeof Q.once==="function")Q.once("error",K);function V(){c6(Q,q,G),c6(Q,"error",K),U(new M5(void 0,{cause:X?.reason}))}if(X!=null)k7(X,"abort",V,{once:!0});return J}function u7(Q,q){return Q.listeners(q)}function c7(Q,...q){L5(Q,"setMaxListeners",0);var $;if(q&&($=q.length))for(let X=0;X<$;X++)q[X].setMaxListeners(Q);else U1=Q}function p7(Q,q){return Q.listenerCount(q)}function c6(Q,q,$,X){if(typeof Q.removeListener==="function")Q.removeListener(q,$);else Q.removeEventListener(q,$,X)}function k7(Q,q,$,X){if(typeof Q.on==="function")if(X.once)Q.once(q,$);else Q.on(q,$);else Q.addEventListener(q,$,X)}function A1(Q,q,$){let X=TypeError(`The "${Q}" argument must be of type ${q}. Received ${$}`);return X.code="ERR_INVALID_ARG_TYPE",X}function zV(Q,q,$){let X=RangeError(`The "${Q}" argument is out of range. It must be ${q}. Received ${$}`);return X.code="ERR_OUT_OF_RANGE",X}function m7(Q,q){if(Q!==void 0&&(Q===null||typeof Q!=="object"||!("aborted"in Q)))throw A1(q,"AbortSignal",Q)}function L5(Q,q,$,X){if(typeof Q!=="number")throw A1(q,"number",Q);if($!=null&&Q<$||X!=null&&Q>X||($!=null||X!=null)&&Number.isNaN(Q))throw zV(q,`${$!=null?`>= ${$}`:""}${$!=null&&X!=null?" && ":""}${X!=null?`<= ${X}`:""}`,Q)}function Q6(Q){if(typeof Q!=="function")throw TypeError("The listener must be a function")}function GV(Q,q){if(typeof Q!=="boolean")throw A1(q,"boolean",Q)}function d7(Q){return Q?._maxListeners??U1}function l7(Q,q){if(Q===void 0)throw A1("signal","AbortSignal",Q);if(m7(Q,"signal"),typeof q!=="function")throw A1("listener","function",q);let $;if(Q.aborted)queueMicrotask(()=>q());else Q.addEventListener("abort",q,{__proto__:null,once:!0}),$=()=>{Q.removeEventListener("abort",q)};return{__proto__:null,[Symbol.dispose](){$?.()}}}var P5,Y1,g7,XV,YV,E7,y7,S7,U1=10,h2=function(Q){if(this._events===void 0||this._events===this.__proto__._events)this._events={__proto__:null},this._eventsCount=0;if(this._maxListeners??=void 0,this[Y1]=Q?.captureRejections?Boolean(Q?.captureRejections):C0[Y1])this.emit=VV},C0,KV=function(Q,...q){if(Q==="error")return f7(this,q);var{_events:$}=this;if($===void 0)return!1;var X=$[Q];if(X===void 0)return!1;let Y=X.length>1?X.slice():X;for(let U=0,{length:J}=Y;U<J;U++){let K=Y[U];switch(q.length){case 0:K.call(this);break;case 1:K.call(this,q[0]);break;case 2:K.call(this,q[0],q[1]);break;case 3:K.call(this,q[0],q[1],q[2]);break;default:K.apply(this,q);break}}return!0},VV=function(Q,...q){if(Q==="error")return f7(this,q);var{_events:$}=this;if($===void 0)return!1;var X=$[Q];if(X===void 0)return!1;let Y=X.length>1?X.slice():X;for(let U=0,{length:J}=Y;U<J;U++){let K=Y[U],G;switch(q.length){case 0:G=K.call(this);break;case 1:G=K.call(this,q[0]);break;case 2:G=K.call(this,q[0],q[1]);break;case 3:G=K.call(this,q[0],q[1],q[2]);break;default:G=K.apply(this,q);break}if(G!==void 0&&typeof G?.then==="function"&&G.then===Promise.prototype.then)UV(this,G,Q,q)}return!0},M5,WV;var $6=z7(()=>{P5=Symbol.for,Y1=Symbol("kCapture"),g7=P5("events.errorMonitor"),XV=Symbol("events.maxEventTargetListeners"),YV=Symbol("events.maxEventTargetListenersWarned"),E7=P5("nodejs.rejection"),y7=P5("nodejs.rejection"),S7=Array.prototype.slice,C0=h2.prototype={};C0._events=void 0;C0._eventsCount=0;C0._maxListeners=void 0;C0.setMaxListeners=function(Q){return L5(Q,"setMaxListeners",0),this._maxListeners=Q,this};C0.constructor=h2;C0.getMaxListeners=function(){return this?._maxListeners??U1};C0.emit=KV;C0.addListener=function(Q,q){Q6(q);var $=this._events;if(!$)$=this._events={__proto__:null},this._eventsCount=0;else if($.newListener)this.emit("newListener",Q,q.listener??q);var X=$[Q];if(!X)$[Q]=[q],this._eventsCount++;else{X.push(q);var Y=this._maxListeners??U1;if(Y>0&&X.length>Y&&!X.warned)h7(this,Q,X)}return this};C0.on=C0.addListener;C0.prependListener=function(Q,q){Q6(q);var $=this._events;if(!$)$=this._events={__proto__:null},this._eventsCount=0;else if($.newListener)this.emit("newListener",Q,q.listener??q);var X=$[Q];if(!X)$[Q]=[q],this._eventsCount++;else{X.unshift(q);var Y=this._maxListeners??U1;if(Y>0&&X.length>Y&&!X.warned)h7(this,Q,X)}return this};C0.once=function(Q,q){Q6(q);let $=_7.bind(this,Q,q);return $.listener=q,this.addListener(Q,$),this};C0.prependOnceListener=function(Q,q){Q6(q);let $=_7.bind(this,Q,q);return $.listener=q,this.prependListener(Q,$),this};C0.removeListener=function(Q,q){Q6(q);var{_events:$}=this;if(!$)return this;var X=$[Q];if(!X)return this;var Y=X.length;let U=-1;for(let J=Y-1;J>=0;J--)if(X[J]===q||X[J].listener===q){U=J;break}if(U<0)return this;if(U===0)X.shift();else X.splice(U,1);if(X.length===0)delete $[Q],this._eventsCount--;return this};C0.off=C0.removeListener;C0.removeAllListeners=function(Q){var{_events:q}=this;if(Q&&q){if(q[Q])delete q[Q],this._eventsCount--}else this._events={__proto__:null};return this};C0.listeners=function(Q){var{_events:q}=this;if(!q)return[];var $=q[Q];if(!$)return[];return $.map((X)=>X.listener??X)};C0.rawListeners=function(Q){var{_events:q}=this;if(!q)return[];var $=q[Q];if(!$)return[];return $.slice()};C0.listenerCount=function(Q){var{_events:q}=this;if(!q)return 0;return q[Q]?.length??0};C0.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};C0[Y1]=!1;M5=class M5 extends Error{constructor(Q="The operation was aborted",q=void 0){if(q!==void 0&&typeof q!=="object")throw A1("options","Object",q);super(Q,q);this.code="ABORT_ERR",this.name="AbortError"}};Object.defineProperties(h2,{captureRejections:{get(){return C0[Y1]},set(Q){GV(Q,"EventEmitter.captureRejections"),C0[Y1]=Q},enumerable:!0},defaultMaxListeners:{enumerable:!0,get:()=>{return U1},set:(Q)=>{L5(Q,"defaultMaxListeners",0),U1=Q}},kMaxEventTargetListeners:{value:XV,enumerable:!1,configurable:!1,writable:!1},kMaxEventTargetListenersWarned:{value:YV,enumerable:!1,configurable:!1,writable:!1}});Object.assign(h2,{once:b7,getEventListeners:u7,getMaxListeners:d7,setMaxListeners:c7,EventEmitter:h2,usingDomains:!1,captureRejectionSymbol:y7,errorMonitor:g7,addAbortListener:l7,init:h2,listenerCount:p7});WV=h2});var l6=k((pM,e7)=>{var M0=(Q,q)=>()=>(q||Q((q={exports:{}}).exports,q),q.exports),D0=M0((Q,q)=>{class $ extends Error{constructor(X){if(!Array.isArray(X))throw TypeError(`Expected input to be an Array, got ${typeof X}`);let Y="";for(let U=0;U<X.length;U++)Y+=` ${X[U].stack}
|
|
2
|
-
`;super(Y);this.name="AggregateError",this.errors=X}}q.exports={AggregateError:$,ArrayIsArray(X){return Array.isArray(X)},ArrayPrototypeIncludes(X,Y){return X.includes(Y)},ArrayPrototypeIndexOf(X,Y){return X.indexOf(Y)},ArrayPrototypeJoin(X,Y){return X.join(Y)},ArrayPrototypeMap(X,Y){return X.map(Y)},ArrayPrototypePop(X,Y){return X.pop(Y)},ArrayPrototypePush(X,Y){return X.push(Y)},ArrayPrototypeSlice(X,Y,U){return X.slice(Y,U)},Error,FunctionPrototypeCall(X,Y,...U){return X.call(Y,...U)},FunctionPrototypeSymbolHasInstance(X,Y){return Function.prototype[Symbol.hasInstance].call(X,Y)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(X,Y){return Object.defineProperties(X,Y)},ObjectDefineProperty(X,Y,U){return Object.defineProperty(X,Y,U)},ObjectGetOwnPropertyDescriptor(X,Y){return Object.getOwnPropertyDescriptor(X,Y)},ObjectKeys(X){return Object.keys(X)},ObjectSetPrototypeOf(X,Y){return Object.setPrototypeOf(X,Y)},Promise,PromisePrototypeCatch(X,Y){return X.catch(Y)},PromisePrototypeThen(X,Y,U){return X.then(Y,U)},PromiseReject(X){return Promise.reject(X)},PromiseResolve(X){return Promise.resolve(X)},ReflectApply:Reflect.apply,RegExpPrototypeTest(X,Y){return X.test(Y)},SafeSet:Set,String,StringPrototypeSlice(X,Y,U){return X.slice(Y,U)},StringPrototypeToLowerCase(X){return X.toLowerCase()},StringPrototypeToUpperCase(X){return X.toUpperCase()},StringPrototypeTrim(X){return X.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(X,Y,U){return X.set(Y,U)},Boolean,Uint8Array}}),i7=M0((Q,q)=>{q.exports={format($,...X){return $.replace(/%([sdifj])/g,function(...[Y,U]){let J=X.shift();if(U==="f")return J.toFixed(6);else if(U==="j")return JSON.stringify(J);else if(U==="s"&&typeof J==="object")return`${J.constructor!==Object?J.constructor.name:""} {}`.trim();else return J.toString()})},inspect($){switch(typeof $){case"string":if($.includes("'")){if(!$.includes('"'))return`"${$}"`;else if(!$.includes("`")&&!$.includes("${"))return`\`${$}\``}return`'${$}'`;case"number":if(isNaN($))return"NaN";else if(Object.is($,-0))return String($);return $;case"bigint":return`${String($)}n`;case"boolean":case"undefined":return String($);case"object":return"{}"}}}}),h0=M0((Q,q)=>{var{format:$,inspect:X}=i7(),{AggregateError:Y}=D0(),U=globalThis.AggregateError||Y,J=Symbol("kIsNodeError"),K=["string","function","number","object","Function","Object","boolean","bigint","symbol"],G=/^([A-Z][a-z0-9]*)+$/,V={};function z(N,W){if(!N)throw new V.ERR_INTERNAL_ASSERTION(W)}function w(N){let W="",H=N.length,M=N[0]==="-"?1:0;for(;H>=M+4;H-=3)W=`_${N.slice(H-3,H)}${W}`;return`${N.slice(0,H)}${W}`}function F(N,W,H){if(typeof W==="function")return z(W.length<=H.length,`Code: ${N}; The provided arguments length (${H.length}) does not match the required ones (${W.length}).`),W(...H);let M=(W.match(/%[dfijoOs]/g)||[]).length;if(z(M===H.length,`Code: ${N}; The provided arguments length (${H.length}) does not match the required ones (${M}).`),H.length===0)return W;return $(W,...H)}function Z(N,W,H){if(!H)H=Error;class M extends H{constructor(...I){super(F(N,W,I))}toString(){return`${this.name} [${N}]: ${this.message}`}}Object.defineProperties(M.prototype,{name:{value:H.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${N}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),M.prototype.code=N,M.prototype[J]=!0,V[N]=M}function h(N){let W="__node_internal_"+N.name;return Object.defineProperty(N,"name",{value:W}),N}function g(N,W){if(N&&W&&N!==W){if(Array.isArray(W.errors))return W.errors.push(N),W;let H=new U([W,N],W.message);return H.code=W.code,H}return N||W}class C extends Error{constructor(N="The operation was aborted",W=void 0){if(W!==void 0&&typeof W!=="object")throw new V.ERR_INVALID_ARG_TYPE("options","Object",W);super(N,W);this.code="ABORT_ERR",this.name="AbortError"}}Z("ERR_ASSERTION","%s",Error),Z("ERR_INVALID_ARG_TYPE",(N,W,H)=>{if(z(typeof N==="string","'name' must be a string"),!Array.isArray(W))W=[W];let M="The ";if(N.endsWith(" argument"))M+=`${N} `;else M+=`"${N}" ${N.includes(".")?"property":"argument"} `;M+="must be ";let I=[],f=[],E=[];for(let R of W)if(z(typeof R==="string","All expected entries have to be of type string"),K.includes(R))I.push(R.toLowerCase());else if(G.test(R))f.push(R);else z(R!=="object",'The value "object" should be written as "Object"'),E.push(R);if(f.length>0){let R=I.indexOf("object");if(R!==-1)I.splice(I,R,1),f.push("Object")}if(I.length>0){switch(I.length){case 1:M+=`of type ${I[0]}`;break;case 2:M+=`one of type ${I[0]} or ${I[1]}`;break;default:{let R=I.pop();M+=`one of type ${I.join(", ")}, or ${R}`}}if(f.length>0||E.length>0)M+=" or "}if(f.length>0){switch(f.length){case 1:M+=`an instance of ${f[0]}`;break;case 2:M+=`an instance of ${f[0]} or ${f[1]}`;break;default:{let R=f.pop();M+=`an instance of ${f.join(", ")}, or ${R}`}}if(E.length>0)M+=" or "}switch(E.length){case 0:break;case 1:if(E[0].toLowerCase()!==E[0])M+="an ";M+=`${E[0]}`;break;case 2:M+=`one of ${E[0]} or ${E[1]}`;break;default:{let R=E.pop();M+=`one of ${E.join(", ")}, or ${R}`}}if(H==null)M+=`. Received ${H}`;else if(typeof H==="function"&&H.name)M+=`. Received function ${H.name}`;else if(typeof H==="object"){var d;if((d=H.constructor)!==null&&d!==void 0&&d.name)M+=`. Received an instance of ${H.constructor.name}`;else{let R=X(H,{depth:-1});M+=`. Received ${R}`}}else{let R=X(H,{colors:!1});if(R.length>25)R=`${R.slice(0,25)}...`;M+=`. Received type ${typeof H} (${R})`}return M},TypeError),Z("ERR_INVALID_ARG_VALUE",(N,W,H="is invalid")=>{let M=X(W);if(M.length>128)M=M.slice(0,128)+"...";return`The ${N.includes(".")?"property":"argument"} '${N}' ${H}. Received ${M}`},TypeError),Z("ERR_INVALID_RETURN_VALUE",(N,W,H)=>{var M;let I=H!==null&&H!==void 0&&(M=H.constructor)!==null&&M!==void 0&&M.name?`instance of ${H.constructor.name}`:`type ${typeof H}`;return`Expected ${N} to be returned from the "${W}" function but got ${I}.`},TypeError),Z("ERR_MISSING_ARGS",(...N)=>{z(N.length>0,"At least one arg needs to be specified");let W,H=N.length;switch(N=(Array.isArray(N)?N:[N]).map((M)=>`"${M}"`).join(" or "),H){case 1:W+=`The ${N[0]} argument`;break;case 2:W+=`The ${N[0]} and ${N[1]} arguments`;break;default:{let M=N.pop();W+=`The ${N.join(", ")}, and ${M} arguments`}break}return`${W} must be specified`},TypeError),Z("ERR_OUT_OF_RANGE",(N,W,H)=>{z(W,'Missing "range" argument');let M;if(Number.isInteger(H)&&Math.abs(H)>4294967296)M=w(String(H));else if(typeof H==="bigint"){M=String(H);let I=BigInt(2)**BigInt(32);if(H>I||H<-I)M=w(M);M+="n"}else M=X(H);return`The value of "${N}" is out of range. It must be ${W}. Received ${M}`},RangeError),Z("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),Z("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),Z("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),Z("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),Z("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),Z("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),Z("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),Z("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),Z("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),Z("ERR_STREAM_WRITE_AFTER_END","write after end",Error),Z("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),q.exports={AbortError:C,aggregateTwoErrors:h(g),hideStackFrames:h,codes:V}}),BV=M0((Q,q)=>{Object.defineProperty(Q,"__esModule",{value:!0});var $=new WeakMap,X=new WeakMap;function Y(x){let D=$.get(x);return console.assert(D!=null,"'this' is expected an Event object, but got",x),D}function U(x){if(x.passiveListener!=null){if(typeof console<"u"&&typeof console.error==="function")console.error("Unable to preventDefault inside passive event listener invocation.",x.passiveListener);return}if(!x.event.cancelable)return;if(x.canceled=!0,typeof x.event.preventDefault==="function")x.event.preventDefault()}function J(x,D){$.set(this,{eventTarget:x,event:D,eventPhase:2,currentTarget:x,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:D.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});let L=Object.keys(D);for(let S=0;S<L.length;++S){let y=L[S];if(!(y in this))Object.defineProperty(this,y,K(y))}}if(J.prototype={get type(){return Y(this).event.type},get target(){return Y(this).eventTarget},get currentTarget(){return Y(this).currentTarget},composedPath(){let x=Y(this).currentTarget;if(x==null)return[];return[x]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return Y(this).eventPhase},stopPropagation(){let x=Y(this);if(x.stopped=!0,typeof x.event.stopPropagation==="function")x.event.stopPropagation()},stopImmediatePropagation(){let x=Y(this);if(x.stopped=!0,x.immediateStopped=!0,typeof x.event.stopImmediatePropagation==="function")x.event.stopImmediatePropagation()},get bubbles(){return Boolean(Y(this).event.bubbles)},get cancelable(){return Boolean(Y(this).event.cancelable)},preventDefault(){U(Y(this))},get defaultPrevented(){return Y(this).canceled},get composed(){return Boolean(Y(this).event.composed)},get timeStamp(){return Y(this).timeStamp},get srcElement(){return Y(this).eventTarget},get cancelBubble(){return Y(this).stopped},set cancelBubble(x){if(!x)return;let D=Y(this);if(D.stopped=!0,typeof D.event.cancelBubble==="boolean")D.event.cancelBubble=!0},get returnValue(){return!Y(this).canceled},set returnValue(x){if(!x)U(Y(this))},initEvent(){}},Object.defineProperty(J.prototype,"constructor",{value:J,configurable:!0,writable:!0}),typeof window<"u"&&typeof window.Event<"u")Object.setPrototypeOf(J.prototype,window.Event.prototype),X.set(window.Event.prototype,J);function K(x){return{get(){return Y(this).event[x]},set(D){Y(this).event[x]=D},configurable:!0,enumerable:!0}}function G(x){return{value(){let D=Y(this).event;return D[x].apply(D,arguments)},configurable:!0,enumerable:!0}}function V(x,D){let L=Object.keys(D);if(L.length===0)return x;function S(y,v){x.call(this,y,v)}S.prototype=Object.create(x.prototype,{constructor:{value:S,configurable:!0,writable:!0}});for(let y=0;y<L.length;++y){let v=L[y];if(!(v in x.prototype)){let a=typeof Object.getOwnPropertyDescriptor(D,v).value==="function";Object.defineProperty(S.prototype,v,a?G(v):K(v))}}return S}function z(x){if(x==null||x===Object.prototype)return J;let D=X.get(x);if(D==null)D=V(z(Object.getPrototypeOf(x)),x),X.set(x,D);return D}function w(x,D){return new(z(Object.getPrototypeOf(D)))(x,D)}function F(x){return Y(x).immediateStopped}function Z(x,D){Y(x).eventPhase=D}function h(x,D){Y(x).currentTarget=D}function g(x,D){Y(x).passiveListener=D}var C=new WeakMap,N=1,W=2,H=3;function M(x){return x!==null&&typeof x==="object"}function I(x){let D=C.get(x);if(D==null)throw TypeError("'this' is expected an EventTarget object, but got another value.");return D}function f(x){return{get(){let D=I(this).get(x);while(D!=null){if(D.listenerType===H)return D.listener;D=D.next}return null},set(D){if(typeof D!=="function"&&!M(D))D=null;let L=I(this),S=null,y=L.get(x);while(y!=null){if(y.listenerType===H)if(S!==null)S.next=y.next;else if(y.next!==null)L.set(x,y.next);else L.delete(x);else S=y;y=y.next}if(D!==null){let v={listener:D,listenerType:H,passive:!1,once:!1,next:null};if(S===null)L.set(x,v);else S.next=v}},configurable:!0,enumerable:!0}}function E(x,D){Object.defineProperty(x,`on${D}`,f(D))}function d(x){function D(){R.call(this)}D.prototype=Object.create(R.prototype,{constructor:{value:D,configurable:!0,writable:!0}});for(let L=0;L<x.length;++L)E(D.prototype,x[L]);return D}function R(){if(this instanceof R){C.set(this,new Map);return}if(arguments.length===1&&Array.isArray(arguments[0]))return d(arguments[0]);if(arguments.length>0){let x=Array(arguments.length);for(let D=0;D<arguments.length;++D)x[D]=arguments[D];return d(x)}throw TypeError("Cannot call a class as a function")}if(R.prototype={addEventListener(x,D,L){if(D==null)return;if(typeof D!=="function"&&!M(D))throw TypeError("'listener' should be a function or an object.");let S=I(this),y=M(L),v=(y?Boolean(L.capture):Boolean(L))?N:W,a={listener:D,listenerType:v,passive:y&&Boolean(L.passive),once:y&&Boolean(L.once),next:null},Q0=S.get(x);if(Q0===void 0){S.set(x,a);return}let Y0=null;while(Q0!=null){if(Q0.listener===D&&Q0.listenerType===v)return;Y0=Q0,Q0=Q0.next}Y0.next=a},removeEventListener(x,D,L){if(D==null)return;let S=I(this),y=(M(L)?Boolean(L.capture):Boolean(L))?N:W,v=null,a=S.get(x);while(a!=null){if(a.listener===D&&a.listenerType===y){if(v!==null)v.next=a.next;else if(a.next!==null)S.set(x,a.next);else S.delete(x);return}v=a,a=a.next}},dispatchEvent(x){if(x==null||typeof x.type!=="string")throw TypeError('"event.type" should be a string.');let D=I(this),L=x.type,S=D.get(L);if(S==null)return!0;let y=w(this,x),v=null;while(S!=null){if(S.once)if(v!==null)v.next=S.next;else if(S.next!==null)D.set(L,S.next);else D.delete(L);else v=S;if(g(y,S.passive?S.listener:null),typeof S.listener==="function")try{S.listener.call(this,y)}catch(a){if(typeof console<"u"&&typeof console.error==="function")console.error(a)}else if(S.listenerType!==H&&typeof S.listener.handleEvent==="function")S.listener.handleEvent(y);if(F(y))break;S=S.next}return g(y,null),Z(y,0),h(y,null),!y.defaultPrevented}},Object.defineProperty(R.prototype,"constructor",{value:R,configurable:!0,writable:!0}),typeof window<"u"&&typeof window.EventTarget<"u")Object.setPrototypeOf(R.prototype,window.EventTarget.prototype);Q.defineEventAttribute=E,Q.EventTarget=R,Q.default=R,q.exports=R,q.exports.EventTarget=q.exports.default=R,q.exports.defineEventAttribute=E}),X6=M0((Q,q)=>{Object.defineProperty(Q,"__esModule",{value:!0});var $=BV();class X extends $.EventTarget{constructor(){super();throw TypeError("AbortSignal cannot be constructed directly")}get aborted(){let z=J.get(this);if(typeof z!=="boolean")throw TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?"null":typeof this}`);return z}}$.defineEventAttribute(X.prototype,"abort");function Y(){let z=Object.create(X.prototype);return $.EventTarget.call(z),J.set(z,!1),z}function U(z){if(J.get(z)!==!1)return;J.set(z,!0),z.dispatchEvent({type:"abort"})}var J=new WeakMap;if(Object.defineProperties(X.prototype,{aborted:{enumerable:!0}}),typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol")Object.defineProperty(X.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});class K{constructor(){G.set(this,Y())}get signal(){return V(this)}abort(){U(V(this))}}var G=new WeakMap;function V(z){let w=G.get(z);if(w==null)throw TypeError(`Expected 'this' to be an 'AbortController' object, but got ${z===null?"null":typeof z}`);return w}if(Object.defineProperties(K.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}}),typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol")Object.defineProperty(K.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"});Q.AbortController=K,Q.AbortSignal=X,Q.default=K,q.exports=K,q.exports.AbortController=q.exports.default=K,q.exports.AbortSignal=X}),p0=M0((Q,q)=>{var $=(O2(),a0(A2)),{format:X,inspect:Y}=i7(),{codes:{ERR_INVALID_ARG_TYPE:U}}=h0(),{kResistStopPropagation:J,AggregateError:K,SymbolDispose:G}=D0(),V=globalThis.AbortSignal||X6().AbortSignal,z=globalThis.AbortController||X6().AbortController,w=Object.getPrototypeOf(async function(){}).constructor,F=globalThis.Blob||$.Blob,Z=typeof F<"u"?function(C){return C instanceof F}:function(C){return!1},h=(C,N)=>{if(C!==void 0&&(C===null||typeof C!=="object"||!("aborted"in C)))throw new U(N,"AbortSignal",C)},g=(C,N)=>{if(typeof C!=="function")throw new U(N,"Function",C)};q.exports={AggregateError:K,kEmptyObject:Object.freeze({}),once(C){let N=!1;return function(...W){if(N)return;N=!0,C.apply(this,W)}},createDeferredPromise:function(){let C,N;return{promise:new Promise((W,H)=>{C=W,N=H}),resolve:C,reject:N}},promisify(C){return new Promise((N,W)=>{C((H,...M)=>{if(H)return W(H);return N(...M)})})},debuglog(){return function(){}},format:X,inspect:Y,types:{isAsyncFunction(C){return C instanceof w},isArrayBufferView(C){return ArrayBuffer.isView(C)}},isBlob:Z,deprecate(C,N){return C},addAbortListener:($6(),a0(q6)).addAbortListener||function(C,N){if(C===void 0)throw new U("signal","AbortSignal",C);h(C,"signal"),g(N,"listener");let W;if(C.aborted)queueMicrotask(()=>N());else C.addEventListener("abort",N,{__proto__:null,once:!0,[J]:!0}),W=()=>{C.removeEventListener("abort",N)};return{__proto__:null,[G](){var H;(H=W)===null||H===void 0||H()}}},AbortSignalAny:V.any||function(C){if(C.length===1)return C[0];let N=new z,W=()=>N.abort();return C.forEach((H)=>{h(H,"signals"),H.addEventListener("abort",W,{once:!0})}),N.signal.addEventListener("abort",()=>{C.forEach((H)=>H.removeEventListener("abort",W))},{once:!0}),N.signal}},q.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}),Y6=M0((Q,q)=>{var{ArrayIsArray:$,ArrayPrototypeIncludes:X,ArrayPrototypeJoin:Y,ArrayPrototypeMap:U,NumberIsInteger:J,NumberIsNaN:K,NumberMAX_SAFE_INTEGER:G,NumberMIN_SAFE_INTEGER:V,NumberParseInt:z,ObjectPrototypeHasOwnProperty:w,RegExpPrototypeExec:F,String:Z,StringPrototypeToUpperCase:h,StringPrototypeTrim:g}=D0(),{hideStackFrames:C,codes:{ERR_SOCKET_BAD_PORT:N,ERR_INVALID_ARG_TYPE:W,ERR_INVALID_ARG_VALUE:H,ERR_OUT_OF_RANGE:M,ERR_UNKNOWN_SIGNAL:I}}=h0(),{normalizeEncoding:f}=p0(),{isAsyncFunction:E,isArrayBufferView:d}=p0().types,R={};function x(O){return O===(O|0)}function D(O){return O===O>>>0}var L=/^[0-7]+$/,S="must be a 32-bit unsigned integer or an octal string";function y(O,i,q0){if(typeof O>"u")O=q0;if(typeof O==="string"){if(F(L,O)===null)throw new H(i,O,S);O=z(O,8)}return Q0(O,i),O}var v=C((O,i,q0=V,o=G)=>{if(typeof O!=="number")throw new W(i,"number",O);if(!J(O))throw new M(i,"an integer",O);if(O<q0||O>o)throw new M(i,`>= ${q0} && <= ${o}`,O)}),a=C((O,i,q0=-2147483648,o=2147483647)=>{if(typeof O!=="number")throw new W(i,"number",O);if(!J(O))throw new M(i,"an integer",O);if(O<q0||O>o)throw new M(i,`>= ${q0} && <= ${o}`,O)}),Q0=C((O,i,q0=!1)=>{if(typeof O!=="number")throw new W(i,"number",O);if(!J(O))throw new M(i,"an integer",O);let o=q0?1:0,V0=4294967295;if(O<o||O>V0)throw new M(i,`>= ${o} && <= ${V0}`,O)});function Y0(O,i){if(typeof O!=="string")throw new W(i,"string",O)}function B0(O,i,q0=void 0,o){if(typeof O!=="number")throw new W(i,"number",O);if(q0!=null&&O<q0||o!=null&&O>o||(q0!=null||o!=null)&&K(O))throw new M(i,`${q0!=null?`>= ${q0}`:""}${q0!=null&&o!=null?" && ":""}${o!=null?`<= ${o}`:""}`,O)}var c=C((O,i,q0)=>{if(!X(q0,O)){let o="must be one of: "+Y(U(q0,(V0)=>typeof V0==="string"?`'${V0}'`:Z(V0)),", ");throw new H(i,O,o)}});function K0(O,i){if(typeof O!=="boolean")throw new W(i,"boolean",O)}function P(O,i,q0){return O==null||!w(O,i)?q0:O[i]}var l=C((O,i,q0=null)=>{let o=P(q0,"allowArray",!1),V0=P(q0,"allowFunction",!1);if(!P(q0,"nullable",!1)&&O===null||!o&&$(O)||typeof O!=="object"&&(!V0||typeof O!=="function"))throw new W(i,"Object",O)}),$0=C((O,i)=>{if(O!=null&&typeof O!=="object"&&typeof O!=="function")throw new W(i,"a dictionary",O)}),u=C((O,i,q0=0)=>{if(!$(O))throw new W(i,"Array",O);if(O.length<q0){let o=`must be longer than ${q0}`;throw new H(i,O,o)}});function J0(O,i){u(O,i);for(let q0=0;q0<O.length;q0++)Y0(O[q0],`${i}[${q0}]`)}function z0(O,i){u(O,i);for(let q0=0;q0<O.length;q0++)K0(O[q0],`${i}[${q0}]`)}function F0(O,i){u(O,i);for(let q0=0;q0<O.length;q0++){let o=O[q0],V0=`${i}[${q0}]`;if(o==null)throw new W(V0,"AbortSignal",o);G0(o,V0)}}function Z0(O,i="signal"){if(Y0(O,i),R[O]===void 0){if(R[h(O)]!==void 0)throw new I(O+" (signals must use all capital letters)");throw new I(O)}}var p=C((O,i="buffer")=>{if(!d(O))throw new W(i,["Buffer","TypedArray","DataView"],O)});function m(O,i){let q0=f(i),o=O.length;if(q0==="hex"&&o%2!==0)throw new H("encoding",i,`is invalid for data of length ${o}`)}function s(O,i="Port",q0=!0){if(typeof O!=="number"&&typeof O!=="string"||typeof O==="string"&&g(O).length===0||+O!==+O>>>0||O>65535||O===0&&!q0)throw new N(i,O,q0);return O|0}var G0=C((O,i)=>{if(O!==void 0&&(O===null||typeof O!=="object"||!("aborted"in O)))throw new W(i,"AbortSignal",O)}),W0=C((O,i)=>{if(typeof O!=="function")throw new W(i,"Function",O)}),A=C((O,i)=>{if(typeof O!=="function"||E(O))throw new W(i,"Function",O)}),T=C((O,i)=>{if(O!==void 0)throw new W(i,"undefined",O)});function b(O,i,q0){if(!X(q0,O))throw new W(i,`('${Y(q0,"|")}')`,O)}var r=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function e(O,i){if(typeof O>"u"||!F(r,O))throw new H(i,O,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function t(O){if(typeof O==="string")return e(O,"hints"),O;else if($(O)){let i=O.length,q0="";if(i===0)return q0;for(let o=0;o<i;o++){let V0=O[o];if(e(V0,"hints"),q0+=V0,o!==i-1)q0+=", "}return q0}throw new H("hints",O,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}q.exports={isInt32:x,isUint32:D,parseFileMode:y,validateArray:u,validateStringArray:J0,validateBooleanArray:z0,validateAbortSignalArray:F0,validateBoolean:K0,validateBuffer:p,validateDictionary:$0,validateEncoding:m,validateFunction:W0,validateInt32:a,validateInteger:v,validateNumber:B0,validateObject:l,validateOneOf:c,validatePlainFunction:A,validatePort:s,validateSignalName:Z0,validateString:Y0,validateUint32:Q0,validateUndefined:T,validateUnion:b,validateAbortSignal:G0,validateLinkHeaderValue:t}}),J1=M0((Q,q)=>{q.exports=globalThis.process}),x2=M0((Q,q)=>{var{SymbolAsyncIterator:$,SymbolIterator:X,SymbolFor:Y}=D0(),U=Y("nodejs.stream.destroyed"),J=Y("nodejs.stream.errored"),K=Y("nodejs.stream.readable"),G=Y("nodejs.stream.writable"),V=Y("nodejs.stream.disturbed"),z=Y("nodejs.webstream.isClosedPromise"),w=Y("nodejs.webstream.controllerErrorFunction");function F(P,l=!1){var $0;return!!(P&&typeof P.pipe==="function"&&typeof P.on==="function"&&(!l||typeof P.pause==="function"&&typeof P.resume==="function")&&(!P._writableState||(($0=P._readableState)===null||$0===void 0?void 0:$0.readable)!==!1)&&(!P._writableState||P._readableState))}function Z(P){var l;return!!(P&&typeof P.write==="function"&&typeof P.on==="function"&&(!P._readableState||((l=P._writableState)===null||l===void 0?void 0:l.writable)!==!1))}function h(P){return!!(P&&typeof P.pipe==="function"&&P._readableState&&typeof P.on==="function"&&typeof P.write==="function")}function g(P){return P&&(P._readableState||P._writableState||typeof P.write==="function"&&typeof P.on==="function"||typeof P.pipe==="function"&&typeof P.on==="function")}function C(P){return!!(P&&!g(P)&&typeof P.pipeThrough==="function"&&typeof P.getReader==="function"&&typeof P.cancel==="function")}function N(P){return!!(P&&!g(P)&&typeof P.getWriter==="function"&&typeof P.abort==="function")}function W(P){return!!(P&&!g(P)&&typeof P.readable==="object"&&typeof P.writable==="object")}function H(P){return C(P)||N(P)||W(P)}function M(P,l){if(P==null)return!1;if(l===!0)return typeof P[$]==="function";if(l===!1)return typeof P[X]==="function";return typeof P[$]==="function"||typeof P[X]==="function"}function I(P){if(!g(P))return null;let{_writableState:l,_readableState:$0}=P,u=l||$0;return!!(P.destroyed||P[U]||u!==null&&u!==void 0&&u.destroyed)}function f(P){if(!Z(P))return null;if(P.writableEnded===!0)return!0;let l=P._writableState;if(l!==null&&l!==void 0&&l.errored)return!1;if(typeof(l===null||l===void 0?void 0:l.ended)!=="boolean")return null;return l.ended}function E(P,l){if(!Z(P))return null;if(P.writableFinished===!0)return!0;let $0=P._writableState;if($0!==null&&$0!==void 0&&$0.errored)return!1;if(typeof($0===null||$0===void 0?void 0:$0.finished)!=="boolean")return null;return!!($0.finished||l===!1&&$0.ended===!0&&$0.length===0)}function d(P){if(!F(P))return null;if(P.readableEnded===!0)return!0;let l=P._readableState;if(!l||l.errored)return!1;if(typeof(l===null||l===void 0?void 0:l.ended)!=="boolean")return null;return l.ended}function R(P,l){if(!F(P))return null;let $0=P._readableState;if($0!==null&&$0!==void 0&&$0.errored)return!1;if(typeof($0===null||$0===void 0?void 0:$0.endEmitted)!=="boolean")return null;return!!($0.endEmitted||l===!1&&$0.ended===!0&&$0.length===0)}function x(P){if(P&&P[K]!=null)return P[K];if(typeof(P===null||P===void 0?void 0:P.readable)!=="boolean")return null;if(I(P))return!1;return F(P)&&P.readable&&!R(P)}function D(P){if(P&&P[G]!=null)return P[G];if(typeof(P===null||P===void 0?void 0:P.writable)!=="boolean")return null;if(I(P))return!1;return Z(P)&&P.writable&&!f(P)}function L(P,l){if(!g(P))return null;if(I(P))return!0;if((l===null||l===void 0?void 0:l.readable)!==!1&&x(P))return!1;if((l===null||l===void 0?void 0:l.writable)!==!1&&D(P))return!1;return!0}function S(P){var l,$0;if(!g(P))return null;if(P.writableErrored)return P.writableErrored;return(l=($0=P._writableState)===null||$0===void 0?void 0:$0.errored)!==null&&l!==void 0?l:null}function y(P){var l,$0;if(!g(P))return null;if(P.readableErrored)return P.readableErrored;return(l=($0=P._readableState)===null||$0===void 0?void 0:$0.errored)!==null&&l!==void 0?l:null}function v(P){if(!g(P))return null;if(typeof P.closed==="boolean")return P.closed;let{_writableState:l,_readableState:$0}=P;if(typeof(l===null||l===void 0?void 0:l.closed)==="boolean"||typeof($0===null||$0===void 0?void 0:$0.closed)==="boolean")return(l===null||l===void 0?void 0:l.closed)||($0===null||$0===void 0?void 0:$0.closed);if(typeof P._closed==="boolean"&&a(P))return P._closed;return null}function a(P){return typeof P._closed==="boolean"&&typeof P._defaultKeepAlive==="boolean"&&typeof P._removedConnection==="boolean"&&typeof P._removedContLen==="boolean"}function Q0(P){return typeof P._sent100==="boolean"&&a(P)}function Y0(P){var l;return typeof P._consuming==="boolean"&&typeof P._dumped==="boolean"&&((l=P.req)===null||l===void 0?void 0:l.upgradeOrConnect)===void 0}function B0(P){if(!g(P))return null;let{_writableState:l,_readableState:$0}=P,u=l||$0;return!u&&Q0(P)||!!(u&&u.autoDestroy&&u.emitClose&&u.closed===!1)}function c(P){var l;return!!(P&&((l=P[V])!==null&&l!==void 0?l:P.readableDidRead||P.readableAborted))}function K0(P){var l,$0,u,J0,z0,F0,Z0,p,m,s;return!!(P&&((l=($0=(u=(J0=(z0=(F0=P[J])!==null&&F0!==void 0?F0:P.readableErrored)!==null&&z0!==void 0?z0:P.writableErrored)!==null&&J0!==void 0?J0:(Z0=P._readableState)===null||Z0===void 0?void 0:Z0.errorEmitted)!==null&&u!==void 0?u:(p=P._writableState)===null||p===void 0?void 0:p.errorEmitted)!==null&&$0!==void 0?$0:(m=P._readableState)===null||m===void 0?void 0:m.errored)!==null&&l!==void 0?l:(s=P._writableState)===null||s===void 0?void 0:s.errored))}q.exports={isDestroyed:I,kIsDestroyed:U,isDisturbed:c,kIsDisturbed:V,isErrored:K0,kIsErrored:J,isReadable:x,kIsReadable:K,kIsClosedPromise:z,kControllerErrorFunction:w,kIsWritable:G,isClosed:v,isDuplexNodeStream:h,isFinished:L,isIterable:M,isReadableNodeStream:F,isReadableStream:C,isReadableEnded:d,isReadableFinished:R,isReadableErrored:y,isNodeStream:g,isWebStream:H,isWritable:D,isWritableNodeStream:Z,isWritableStream:N,isWritableEnded:f,isWritableFinished:E,isWritableErrored:S,isServerRequest:Y0,isServerResponse:Q0,willEmitClose:B0,isTransformStream:W}}),_2=M0((Q,q)=>{var $=J1(),{AbortError:X,codes:Y}=h0(),{ERR_INVALID_ARG_TYPE:U,ERR_STREAM_PREMATURE_CLOSE:J}=Y,{kEmptyObject:K,once:G}=p0(),{validateAbortSignal:V,validateFunction:z,validateObject:w,validateBoolean:F}=Y6(),{Promise:Z,PromisePrototypeThen:h,SymbolDispose:g}=D0(),{isClosed:C,isReadable:N,isReadableNodeStream:W,isReadableStream:H,isReadableFinished:M,isReadableErrored:I,isWritable:f,isWritableNodeStream:E,isWritableStream:d,isWritableFinished:R,isWritableErrored:x,isNodeStream:D,willEmitClose:L,kIsClosedPromise:S}=x2(),y;function v(c){return c.setHeader&&typeof c.abort==="function"}var a=()=>{};function Q0(c,K0,P){var l,$0;if(arguments.length===2)P=K0,K0=K;else if(K0==null)K0=K;else w(K0,"options");if(z(P,"callback"),V(K0.signal,"options.signal"),P=G(P),H(c)||d(c))return Y0(c,K0,P);if(!D(c))throw new U("stream",["ReadableStream","WritableStream","Stream"],c);let u=(l=K0.readable)!==null&&l!==void 0?l:W(c),J0=($0=K0.writable)!==null&&$0!==void 0?$0:E(c),z0=c._writableState,F0=c._readableState,Z0=()=>{if(!c.writable)s()},p=L(c)&&W(c)===u&&E(c)===J0,m=R(c,!1),s=()=>{if(m=!0,c.destroyed)p=!1;if(p&&(!c.readable||u))return;if(!u||G0)P.call(c)},G0=M(c,!1),W0=()=>{if(G0=!0,c.destroyed)p=!1;if(p&&(!c.writable||J0))return;if(!J0||m)P.call(c)},A=(O)=>{P.call(c,O)},T=C(c),b=()=>{T=!0;let O=x(c)||I(c);if(O&&typeof O!=="boolean")return P.call(c,O);if(u&&!G0&&W(c,!0)){if(!M(c,!1))return P.call(c,new J)}if(J0&&!m){if(!R(c,!1))return P.call(c,new J)}P.call(c)},r=()=>{T=!0;let O=x(c)||I(c);if(O&&typeof O!=="boolean")return P.call(c,O);P.call(c)},e=()=>{c.req.on("finish",s)};if(v(c)){if(c.on("complete",s),!p)c.on("abort",b);if(c.req)e();else c.on("request",e)}else if(J0&&!z0)c.on("end",Z0),c.on("close",Z0);if(!p&&typeof c.aborted==="boolean")c.on("aborted",b);if(c.on("end",W0),c.on("finish",s),K0.error!==!1)c.on("error",A);if(c.on("close",b),T)$.nextTick(b);else if(z0!==null&&z0!==void 0&&z0.errorEmitted||F0!==null&&F0!==void 0&&F0.errorEmitted){if(!p)$.nextTick(r)}else if(!u&&(!p||N(c))&&(m||f(c)===!1))$.nextTick(r);else if(!J0&&(!p||f(c))&&(G0||N(c)===!1))$.nextTick(r);else if(F0&&c.req&&c.aborted)$.nextTick(r);let t=()=>{if(P=a,c.removeListener("aborted",b),c.removeListener("complete",s),c.removeListener("abort",b),c.removeListener("request",e),c.req)c.req.removeListener("finish",s);c.removeListener("end",Z0),c.removeListener("close",Z0),c.removeListener("finish",s),c.removeListener("end",W0),c.removeListener("error",A),c.removeListener("close",b)};if(K0.signal&&!T){let O=()=>{let i=P;t(),i.call(c,new X(void 0,{cause:K0.signal.reason}))};if(K0.signal.aborted)$.nextTick(O);else{y=y||p0().addAbortListener;let i=y(K0.signal,O),q0=P;P=G((...o)=>{i[g](),q0.apply(c,o)})}}return t}function Y0(c,K0,P){let l=!1,$0=a;if(K0.signal)if($0=()=>{l=!0,P.call(c,new X(void 0,{cause:K0.signal.reason}))},K0.signal.aborted)$.nextTick($0);else{y=y||p0().addAbortListener;let J0=y(K0.signal,$0),z0=P;P=G((...F0)=>{J0[g](),z0.apply(c,F0)})}let u=(...J0)=>{if(!l)$.nextTick(()=>P.apply(c,J0))};return h(c[S].promise,u,u),a}function B0(c,K0){var P;let l=!1;if(K0===null)K0=K;if((P=K0)!==null&&P!==void 0&&P.cleanup)F(K0.cleanup,"cleanup"),l=K0.cleanup;return new Z(($0,u)=>{let J0=Q0(c,K0,(z0)=>{if(l)J0();if(z0)u(z0);else $0()})})}q.exports=Q0,q.exports.finished=B0}),O1=M0((Q,q)=>{var $=J1(),{aggregateTwoErrors:X,codes:{ERR_MULTIPLE_CALLBACK:Y},AbortError:U}=h0(),{Symbol:J}=D0(),{kIsDestroyed:K,isDestroyed:G,isFinished:V,isServerRequest:z}=x2(),w=J("kDestroy"),F=J("kConstruct");function Z(L,S,y){if(L){if(L.stack,S&&!S.errored)S.errored=L;if(y&&!y.errored)y.errored=L}}function h(L,S){let y=this._readableState,v=this._writableState,a=v||y;if(v!==null&&v!==void 0&&v.destroyed||y!==null&&y!==void 0&&y.destroyed){if(typeof S==="function")S();return this}if(Z(L,v,y),v)v.destroyed=!0;if(y)y.destroyed=!0;if(!a.constructed)this.once(w,function(Q0){g(this,X(Q0,L),S)});else g(this,L,S);return this}function g(L,S,y){let v=!1;function a(Q0){if(v)return;v=!0;let{_readableState:Y0,_writableState:B0}=L;if(Z(Q0,B0,Y0),B0)B0.closed=!0;if(Y0)Y0.closed=!0;if(typeof y==="function")y(Q0);if(Q0)$.nextTick(C,L,Q0);else $.nextTick(N,L)}try{L._destroy(S||null,a)}catch(Q0){a(Q0)}}function C(L,S){W(L,S),N(L)}function N(L){let{_readableState:S,_writableState:y}=L;if(y)y.closeEmitted=!0;if(S)S.closeEmitted=!0;if(y!==null&&y!==void 0&&y.emitClose||S!==null&&S!==void 0&&S.emitClose)L.emit("close")}function W(L,S){let{_readableState:y,_writableState:v}=L;if(v!==null&&v!==void 0&&v.errorEmitted||y!==null&&y!==void 0&&y.errorEmitted)return;if(v)v.errorEmitted=!0;if(y)y.errorEmitted=!0;L.emit("error",S)}function H(){let L=this._readableState,S=this._writableState;if(L)L.constructed=!0,L.closed=!1,L.closeEmitted=!1,L.destroyed=!1,L.errored=null,L.errorEmitted=!1,L.reading=!1,L.ended=L.readable===!1,L.endEmitted=L.readable===!1;if(S)S.constructed=!0,S.destroyed=!1,S.closed=!1,S.closeEmitted=!1,S.errored=null,S.errorEmitted=!1,S.finalCalled=!1,S.prefinished=!1,S.ended=S.writable===!1,S.ending=S.writable===!1,S.finished=S.writable===!1}function M(L,S,y){let{_readableState:v,_writableState:a}=L;if(a!==null&&a!==void 0&&a.destroyed||v!==null&&v!==void 0&&v.destroyed)return this;if(v!==null&&v!==void 0&&v.autoDestroy||a!==null&&a!==void 0&&a.autoDestroy)L.destroy(S);else if(S){if(S.stack,a&&!a.errored)a.errored=S;if(v&&!v.errored)v.errored=S;if(y)$.nextTick(W,L,S);else W(L,S)}}function I(L,S){if(typeof L._construct!=="function")return;let{_readableState:y,_writableState:v}=L;if(y)y.constructed=!1;if(v)v.constructed=!1;if(L.once(F,S),L.listenerCount(F)>1)return;$.nextTick(f,L)}function f(L){let S=!1;function y(v){if(S){M(L,v!==null&&v!==void 0?v:new Y);return}S=!0;let{_readableState:a,_writableState:Q0}=L,Y0=Q0||a;if(a)a.constructed=!0;if(Q0)Q0.constructed=!0;if(Y0.destroyed)L.emit(w,v);else if(v)M(L,v,!0);else $.nextTick(E,L)}try{L._construct((v)=>{$.nextTick(y,v)})}catch(v){$.nextTick(y,v)}}function E(L){L.emit(F)}function d(L){return(L===null||L===void 0?void 0:L.setHeader)&&typeof L.abort==="function"}function R(L){L.emit("close")}function x(L,S){L.emit("error",S),$.nextTick(R,L)}function D(L,S){if(!L||G(L))return;if(!S&&!V(L))S=new U;if(z(L))L.socket=null,L.destroy(S);else if(d(L))L.abort();else if(d(L.req))L.req.abort();else if(typeof L.destroy==="function")L.destroy(S);else if(typeof L.close==="function")L.close();else if(S)$.nextTick(x,L,S);else $.nextTick(R,L);if(!L.destroyed)L[K]=!0}q.exports={construct:I,destroyer:D,destroy:h,undestroy:H,errorOrDestroy:M}}),C5=M0((Q,q)=>{var{ArrayIsArray:$,ObjectSetPrototypeOf:X}=D0(),{EventEmitter:Y}=($6(),a0(q6));function U(K){Y.call(this,K)}X(U.prototype,Y.prototype),X(U,Y),U.prototype.pipe=function(K,G){let V=this;function z(N){if(K.writable&&K.write(N)===!1&&V.pause)V.pause()}V.on("data",z);function w(){if(V.readable&&V.resume)V.resume()}if(K.on("drain",w),!K._isStdio&&(!G||G.end!==!1))V.on("end",Z),V.on("close",h);let F=!1;function Z(){if(F)return;F=!0,K.end()}function h(){if(F)return;if(F=!0,typeof K.destroy==="function")K.destroy()}function g(N){if(C(),Y.listenerCount(this,"error")===0)this.emit("error",N)}J(V,"error",g),J(K,"error",g);function C(){V.removeListener("data",z),K.removeListener("drain",w),V.removeListener("end",Z),V.removeListener("close",h),V.removeListener("error",g),K.removeListener("error",g),V.removeListener("end",C),V.removeListener("close",C),K.removeListener("close",C)}return V.on("end",C),V.on("close",C),K.on("close",C),K.emit("pipe",V),K};function J(K,G,V){if(typeof K.prependListener==="function")return K.prependListener(G,V);if(!K._events||!K._events[G])K.on(G,V);else if($(K._events[G]))K._events[G].unshift(V);else K._events[G]=[V,K._events[G]]}q.exports={Stream:U,prependListener:J}}),p6=M0((Q,q)=>{var{SymbolDispose:$}=D0(),{AbortError:X,codes:Y}=h0(),{isNodeStream:U,isWebStream:J,kControllerErrorFunction:K}=x2(),G=_2(),{ERR_INVALID_ARG_TYPE:V}=Y,z,w=(F,Z)=>{if(typeof F!=="object"||!("aborted"in F))throw new V(Z,"AbortSignal",F)};q.exports.addAbortSignal=function(F,Z){if(w(F,"signal"),!U(Z)&&!J(Z))throw new V("stream",["ReadableStream","WritableStream","Stream"],Z);return q.exports.addAbortSignalNoValidate(F,Z)},q.exports.addAbortSignalNoValidate=function(F,Z){if(typeof F!=="object"||!("aborted"in F))return Z;let h=U(Z)?()=>{Z.destroy(new X(void 0,{cause:F.reason}))}:()=>{Z[K](new X(void 0,{cause:F.reason}))};if(F.aborted)h();else{z=z||p0().addAbortListener;let g=z(F,h);G(Z,g[$])}return Z}}),ZV=M0((Q,q)=>{var{StringPrototypeSlice:$,SymbolIterator:X,TypedArrayPrototypeSet:Y,Uint8Array:U}=D0(),{Buffer:J}=(O2(),a0(A2)),{inspect:K}=p0();q.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(G){let V={data:G,next:null};if(this.length>0)this.tail.next=V;else this.head=V;this.tail=V,++this.length}unshift(G){let V={data:G,next:this.head};if(this.length===0)this.tail=V;this.head=V,++this.length}shift(){if(this.length===0)return;let G=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;return--this.length,G}clear(){this.head=this.tail=null,this.length=0}join(G){if(this.length===0)return"";let V=this.head,z=""+V.data;while((V=V.next)!==null)z+=G+V.data;return z}concat(G){if(this.length===0)return J.alloc(0);let V=J.allocUnsafe(G>>>0),z=this.head,w=0;while(z)Y(V,z.data,w),w+=z.data.length,z=z.next;return V}consume(G,V){let z=this.head.data;if(G<z.length){let w=z.slice(0,G);return this.head.data=z.slice(G),w}if(G===z.length)return this.shift();return V?this._getString(G):this._getBuffer(G)}first(){return this.head.data}*[X](){for(let G=this.head;G;G=G.next)yield G.data}_getString(G){let V="",z=this.head,w=0;do{let F=z.data;if(G>F.length)V+=F,G-=F.length;else{if(G===F.length)if(V+=F,++w,z.next)this.head=z.next;else this.head=this.tail=null;else V+=$(F,0,G),this.head=z,z.data=$(F,G);break}++w}while((z=z.next)!==null);return this.length-=w,V}_getBuffer(G){let V=J.allocUnsafe(G),z=G,w=this.head,F=0;do{let Z=w.data;if(G>Z.length)Y(V,Z,z-G),G-=Z.length;else{if(G===Z.length)if(Y(V,Z,z-G),++F,w.next)this.head=w.next;else this.head=this.tail=null;else Y(V,new U(Z.buffer,Z.byteOffset,G),z-G),this.head=w,w.data=Z.slice(G);break}++F}while((w=w.next)!==null);return this.length-=F,V}[Symbol.for("nodejs.util.inspect.custom")](G,V){return K(this,{...V,depth:0,customInspect:!1})}}}),m6=M0((Q,q)=>{var{MathFloor:$,NumberIsInteger:X}=D0(),{validateInteger:Y}=Y6(),{ERR_INVALID_ARG_VALUE:U}=h0().codes,J=16384,K=16;function G(F,Z,h){return F.highWaterMark!=null?F.highWaterMark:Z?F[h]:null}function V(F){return F?K:J}function z(F,Z){if(Y(Z,"value",0),F)K=Z;else J=Z}function w(F,Z,h,g){let C=G(Z,g,h);if(C!=null){if(!X(C)||C<0){let N=g?`options.${h}`:"options.highWaterMark";throw new U(N,C)}return $(C)}return V(F.objectMode)}q.exports={getHighWaterMark:w,getDefaultHighWaterMark:V,setDefaultHighWaterMark:z}}),jV=M0((Q,q)=>{/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var $=(O2(),a0(A2)),X=$.Buffer;function Y(J,K){for(var G in J)K[G]=J[G]}if(X.from&&X.alloc&&X.allocUnsafe&&X.allocUnsafeSlow)q.exports=$;else Y($,Q),Q.Buffer=U;function U(J,K,G){return X(J,K,G)}U.prototype=Object.create(X.prototype),Y(X,U),U.from=function(J,K,G){if(typeof J==="number")throw TypeError("Argument must not be a number");return X(J,K,G)},U.alloc=function(J,K,G){if(typeof J!=="number")throw TypeError("Argument must be a number");var V=X(J);if(K!==void 0)if(typeof G==="string")V.fill(K,G);else V.fill(K);else V.fill(0);return V},U.allocUnsafe=function(J){if(typeof J!=="number")throw TypeError("Argument must be a number");return X(J)},U.allocUnsafeSlow=function(J){if(typeof J!=="number")throw TypeError("Argument must be a number");return $.SlowBuffer(J)}}),FV=M0((Q)=>{var q=jV().Buffer,$=q.isEncoding||function(W){switch(W=""+W,W&&W.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function X(W){if(!W)return"utf8";var H;while(!0)switch(W){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return W;default:if(H)return;W=(""+W).toLowerCase(),H=!0}}function Y(W){var H=X(W);if(typeof H!=="string"&&(q.isEncoding===$||!$(W)))throw Error("Unknown encoding: "+W);return H||W}Q.StringDecoder=U;function U(W){this.encoding=Y(W);var H;switch(this.encoding){case"utf16le":this.text=F,this.end=Z,H=4;break;case"utf8":this.fillLast=V,H=4;break;case"base64":this.text=h,this.end=g,H=3;break;default:this.write=C,this.end=N;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=q.allocUnsafe(H)}U.prototype.write=function(W){if(W.length===0)return"";var H,M;if(this.lastNeed){if(H=this.fillLast(W),H===void 0)return"";M=this.lastNeed,this.lastNeed=0}else M=0;if(M<W.length)return H?H+this.text(W,M):this.text(W,M);return H||""},U.prototype.end=w,U.prototype.text=z,U.prototype.fillLast=function(W){if(this.lastNeed<=W.length)return W.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);W.copy(this.lastChar,this.lastTotal-this.lastNeed,0,W.length),this.lastNeed-=W.length};function J(W){if(W<=127)return 0;else if(W>>5===6)return 2;else if(W>>4===14)return 3;else if(W>>3===30)return 4;return W>>6===2?-1:-2}function K(W,H,M){var I=H.length-1;if(I<M)return 0;var f=J(H[I]);if(f>=0){if(f>0)W.lastNeed=f-1;return f}if(--I<M||f===-2)return 0;if(f=J(H[I]),f>=0){if(f>0)W.lastNeed=f-2;return f}if(--I<M||f===-2)return 0;if(f=J(H[I]),f>=0){if(f>0)if(f===2)f=0;else W.lastNeed=f-3;return f}return 0}function G(W,H,M){if((H[0]&192)!==128)return W.lastNeed=0,"�";if(W.lastNeed>1&&H.length>1){if((H[1]&192)!==128)return W.lastNeed=1,"�";if(W.lastNeed>2&&H.length>2){if((H[2]&192)!==128)return W.lastNeed=2,"�"}}}function V(W){var H=this.lastTotal-this.lastNeed,M=G(this,W,H);if(M!==void 0)return M;if(this.lastNeed<=W.length)return W.copy(this.lastChar,H,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);W.copy(this.lastChar,H,0,W.length),this.lastNeed-=W.length}function z(W,H){var M=K(this,W,H);if(!this.lastNeed)return W.toString("utf8",H);this.lastTotal=M;var I=W.length-(M-this.lastNeed);return W.copy(this.lastChar,0,I),W.toString("utf8",H,I)}function w(W){var H=W&&W.length?this.write(W):"";if(this.lastNeed)return H+"�";return H}function F(W,H){if((W.length-H)%2===0){var M=W.toString("utf16le",H);if(M){var I=M.charCodeAt(M.length-1);if(I>=55296&&I<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=W[W.length-2],this.lastChar[1]=W[W.length-1],M.slice(0,-1)}return M}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=W[W.length-1],W.toString("utf16le",H,W.length-1)}function Z(W){var H=W&&W.length?this.write(W):"";if(this.lastNeed){var M=this.lastTotal-this.lastNeed;return H+this.lastChar.toString("utf16le",0,M)}return H}function h(W,H){var M=(W.length-H)%3;if(M===0)return W.toString("base64",H);if(this.lastNeed=3-M,this.lastTotal=3,M===1)this.lastChar[0]=W[W.length-1];else this.lastChar[0]=W[W.length-2],this.lastChar[1]=W[W.length-1];return W.toString("base64",H,W.length-M)}function g(W){var H=W&&W.length?this.write(W):"";if(this.lastNeed)return H+this.lastChar.toString("base64",0,3-this.lastNeed);return H}function C(W){return W.toString(this.encoding)}function N(W){return W&&W.length?this.write(W):""}}),o7=M0((Q,q)=>{var $=J1(),{PromisePrototypeThen:X,SymbolAsyncIterator:Y,SymbolIterator:U}=D0(),{Buffer:J}=(O2(),a0(A2)),{ERR_INVALID_ARG_TYPE:K,ERR_STREAM_NULL_VALUES:G}=h0().codes;function V(z,w,F){let Z;if(typeof w==="string"||w instanceof J)return new z({objectMode:!0,...F,read(){this.push(w),this.push(null)}});let h;if(w&&w[Y])h=!0,Z=w[Y]();else if(w&&w[U])h=!1,Z=w[U]();else throw new K("iterable",["Iterable"],w);let g=new z({objectMode:!0,highWaterMark:1,...F}),C=!1;g._read=function(){if(!C)C=!0,W()},g._destroy=function(H,M){X(N(H),()=>$.nextTick(M,H),(I)=>$.nextTick(M,I||H))};async function N(H){let M=H!==void 0&&H!==null,I=typeof Z.throw==="function";if(M&&I){let{value:f,done:E}=await Z.throw(H);if(await f,E)return}if(typeof Z.return==="function"){let{value:f}=await Z.return();await f}}async function W(){for(;;){try{let{value:H,done:M}=h?await Z.next():Z.next();if(M)g.push(null);else{let I=H&&typeof H.then==="function"?await H:H;if(I===null)throw C=!1,new G;else if(g.push(I))continue;else C=!1}}catch(H){g.destroy(H)}break}}return g}q.exports=V}),d6=M0((Q,q)=>{var $=J1(),{ArrayPrototypeIndexOf:X,NumberIsInteger:Y,NumberIsNaN:U,NumberParseInt:J,ObjectDefineProperties:K,ObjectKeys:G,ObjectSetPrototypeOf:V,Promise:z,SafeSet:w,SymbolAsyncDispose:F,SymbolAsyncIterator:Z,Symbol:h}=D0();q.exports=o,o.ReadableState=q0;var{EventEmitter:g}=($6(),a0(q6)),{Stream:C,prependListener:N}=C5(),{Buffer:W}=(O2(),a0(A2)),{addAbortSignal:H}=p6(),M=_2(),I=p0().debuglog("stream",(B)=>{I=B}),f=ZV(),E=O1(),{getHighWaterMark:d,getDefaultHighWaterMark:R}=m6(),{aggregateTwoErrors:x,codes:{ERR_INVALID_ARG_TYPE:D,ERR_METHOD_NOT_IMPLEMENTED:L,ERR_OUT_OF_RANGE:S,ERR_STREAM_PUSH_AFTER_EOF:y,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:v},AbortError:a}=h0(),{validateObject:Q0}=Y6(),Y0=h("kPaused"),{StringDecoder:B0}=FV(),c=o7();V(o.prototype,C.prototype),V(o,C);var K0=()=>{},{errorOrDestroy:P}=E,l=1,$0=2,u=4,J0=8,z0=16,F0=32,Z0=64,p=128,m=256,s=512,G0=1024,W0=2048,A=4096,T=8192,b=16384,r=32768,e=65536,t=131072,O=262144;function i(B){return{enumerable:!1,get(){return(this.state&B)!==0},set(j){if(j)this.state|=B;else this.state&=~B}}}K(q0.prototype,{objectMode:i(l),ended:i($0),endEmitted:i(u),reading:i(J0),constructed:i(z0),sync:i(F0),needReadable:i(Z0),emittedReadable:i(p),readableListening:i(m),resumeScheduled:i(s),errorEmitted:i(G0),emitClose:i(W0),autoDestroy:i(A),destroyed:i(T),closed:i(b),closeEmitted:i(r),multiAwaitDrain:i(e),readingMore:i(t),dataEmitted:i(O)});function q0(B,j,n){if(typeof n!=="boolean")n=j instanceof R2();if(this.state=W0|A|z0|F0,B&&B.objectMode)this.state|=l;if(n&&B&&B.readableObjectMode)this.state|=l;if(this.highWaterMark=B?d(this,B,"readableHighWaterMark",n):R(!1),this.buffer=new f,this.length=0,this.pipes=[],this.flowing=null,this[Y0]=null,B&&B.emitClose===!1)this.state&=~W0;if(B&&B.autoDestroy===!1)this.state&=~A;if(this.errored=null,this.defaultEncoding=B&&B.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,B&&B.encoding)this.decoder=new B0(B.encoding),this.encoding=B.encoding}function o(B){if(!(this instanceof o))return new o(B);let j=this instanceof R2();if(this._readableState=new q0(B,this,j),B){if(typeof B.read==="function")this._read=B.read;if(typeof B.destroy==="function")this._destroy=B.destroy;if(typeof B.construct==="function")this._construct=B.construct;if(B.signal&&!j)H(B.signal,this)}C.call(this,B),E.construct(this,()=>{if(this._readableState.needReadable)N1(this,this._readableState)})}o.prototype.destroy=E.destroy,o.prototype._undestroy=E.undestroy,o.prototype._destroy=function(B,j){j(B)},o.prototype[g.captureRejectionSymbol]=function(B){this.destroy(B)},o.prototype[F]=function(){let B;if(!this.destroyed)B=this.readableEnded?null:new a,this.destroy(B);return new z((j,n)=>M(this,(X0)=>X0&&X0!==B?n(X0):j(null)))},o.prototype.push=function(B,j){return V0(this,B,j,!1)},o.prototype.unshift=function(B,j){return V0(this,B,j,!0)};function V0(B,j,n,X0){I("readableAddChunk",j);let U0=B._readableState,y0;if((U0.state&l)===0){if(typeof j==="string"){if(n=n||U0.defaultEncoding,U0.encoding!==n)if(X0&&U0.encoding)j=W.from(j,n).toString(U0.encoding);else j=W.from(j,n),n=""}else if(j instanceof W)n="";else if(C._isUint8Array(j))j=C._uint8ArrayToBuffer(j),n="";else if(j!=null)y0=new D("chunk",["string","Buffer","Uint8Array"],j)}if(y0)P(B,y0);else if(j===null)U0.state&=~J0,g0(B,U0);else if((U0.state&l)!==0||j&&j.length>0)if(X0)if((U0.state&u)!==0)P(B,new v);else if(U0.destroyed||U0.errored)return!1;else P0(B,U0,j,!0);else if(U0.ended)P(B,new y);else if(U0.destroyed||U0.errored)return!1;else if(U0.state&=~J0,U0.decoder&&!n)if(j=U0.decoder.write(j),U0.objectMode||j.length!==0)P0(B,U0,j,!1);else N1(B,U0);else P0(B,U0,j,!1);else if(!X0)U0.state&=~J0,N1(B,U0);return!U0.ended&&(U0.length<U0.highWaterMark||U0.length===0)}function P0(B,j,n,X0){if(j.flowing&&j.length===0&&!j.sync&&B.listenerCount("data")>0){if((j.state&e)!==0)j.awaitDrainWriters.clear();else j.awaitDrainWriters=null;j.dataEmitted=!0,B.emit("data",n)}else{if(j.length+=j.objectMode?1:n.length,X0)j.buffer.unshift(n);else j.buffer.push(n);if((j.state&Z0)!==0)u0(B)}N1(B,j)}o.prototype.isPaused=function(){let B=this._readableState;return B[Y0]===!0||B.flowing===!1},o.prototype.setEncoding=function(B){let j=new B0(B);this._readableState.decoder=j,this._readableState.encoding=this._readableState.decoder.encoding;let n=this._readableState.buffer,X0="";for(let U0 of n)X0+=j.write(U0);if(n.clear(),X0!=="")n.push(X0);return this._readableState.length=X0.length,this};var o0=1073741824;function n0(B){if(B>o0)throw new S("size","<= 1GiB",B);else B--,B|=B>>>1,B|=B>>>2,B|=B>>>4,B|=B>>>8,B|=B>>>16,B++;return B}function e2(B,j){if(B<=0||j.length===0&&j.ended)return 0;if((j.state&l)!==0)return 1;if(U(B)){if(j.flowing&&j.length)return j.buffer.first().length;return j.length}if(B<=j.length)return B;return j.ended?j.length:0}o.prototype.read=function(B){if(I("read",B),B===void 0)B=NaN;else if(!Y(B))B=J(B,10);let j=this._readableState,n=B;if(B>j.highWaterMark)j.highWaterMark=n0(B);if(B!==0)j.state&=~p;if(B===0&&j.needReadable&&((j.highWaterMark!==0?j.length>=j.highWaterMark:j.length>0)||j.ended)){if(I("read: emitReadable",j.length,j.ended),j.length===0&&j.ended)X5(this);else u0(this);return null}if(B=e2(B,j),B===0&&j.ended){if(j.length===0)X5(this);return null}let X0=(j.state&Z0)!==0;if(I("need readable",X0),j.length===0||j.length-B<j.highWaterMark)X0=!0,I("length less than watermark",X0);if(j.ended||j.reading||j.destroyed||j.errored||!j.constructed)X0=!1,I("reading, ended or constructing",X0);else if(X0){if(I("do read"),j.state|=J0|F0,j.length===0)j.state|=Z0;try{this._read(j.highWaterMark)}catch(y0){P(this,y0)}if(j.state&=~F0,!j.reading)B=e2(n,j)}let U0;if(B>0)U0=Q7(B,j);else U0=null;if(U0===null)j.needReadable=j.length<=j.highWaterMark,B=0;else if(j.length-=B,j.multiAwaitDrain)j.awaitDrainWriters.clear();else j.awaitDrainWriters=null;if(j.length===0){if(!j.ended)j.needReadable=!0;if(n!==B&&j.ended)X5(this)}if(U0!==null&&!j.errorEmitted&&!j.closeEmitted)j.dataEmitted=!0,this.emit("data",U0);return U0};function g0(B,j){if(I("onEofChunk"),j.ended)return;if(j.decoder){let n=j.decoder.end();if(n&&n.length)j.buffer.push(n),j.length+=j.objectMode?1:n.length}if(j.ended=!0,j.sync)u0(B);else j.needReadable=!1,j.emittedReadable=!0,I1(B)}function u0(B){let j=B._readableState;if(I("emitReadable",j.needReadable,j.emittedReadable),j.needReadable=!1,!j.emittedReadable)I("emitReadable",j.flowing),j.emittedReadable=!0,$.nextTick(I1,B)}function I1(B){let j=B._readableState;if(I("emitReadable_",j.destroyed,j.length,j.ended),!j.destroyed&&!j.errored&&(j.length||j.ended))B.emit("readable"),j.emittedReadable=!1;j.needReadable=!j.flowing&&!j.ended&&j.length<=j.highWaterMark,tQ(B)}function N1(B,j){if(!j.readingMore&&j.constructed)j.readingMore=!0,$.nextTick(W2,B,j)}function W2(B,j){while(!j.reading&&!j.ended&&(j.length<j.highWaterMark||j.flowing&&j.length===0)){let n=j.length;if(I("maybeReadMore read 0"),B.read(0),n===j.length)break}j.readingMore=!1}o.prototype._read=function(B){throw new L("_read()")},o.prototype.pipe=function(B,j){let n=this,X0=this._readableState;if(X0.pipes.length===1){if(!X0.multiAwaitDrain)X0.multiAwaitDrain=!0,X0.awaitDrainWriters=new w(X0.awaitDrainWriters?[X0.awaitDrainWriters]:[])}X0.pipes.push(B),I("pipe count=%d opts=%j",X0.pipes.length,j);let U0=(!j||j.end!==!1)&&B!==$.stdout&&B!==$.stderr?r0:a1;if(X0.endEmitted)$.nextTick(U0);else n.once("end",U0);B.on("unpipe",y0);function y0(q1,N2){if(I("onunpipe"),q1===n){if(N2&&N2.hasUnpiped===!1)N2.hasUnpiped=!0,ZK()}}function r0(){I("onend"),B.end()}let Q1,$7=!1;function ZK(){if(I("cleanup"),B.removeListener("close",J5),B.removeListener("finish",K5),Q1)B.removeListener("drain",Q1);if(B.removeListener("error",U5),B.removeListener("unpipe",y0),n.removeListener("end",r0),n.removeListener("end",a1),n.removeListener("data",Y7),$7=!0,Q1&&X0.awaitDrainWriters&&(!B._writableState||B._writableState.needDrain))Q1()}function X7(){if(!$7){if(X0.pipes.length===1&&X0.pipes[0]===B)I("false write response, pause",0),X0.awaitDrainWriters=B,X0.multiAwaitDrain=!1;else if(X0.pipes.length>1&&X0.pipes.includes(B))I("false write response, pause",X0.awaitDrainWriters.size),X0.awaitDrainWriters.add(B);n.pause()}if(!Q1)Q1=JK(n,B),B.on("drain",Q1)}n.on("data",Y7);function Y7(q1){I("ondata");let N2=B.write(q1);if(I("dest.write",N2),N2===!1)X7()}function U5(q1){if(I("onerror",q1),a1(),B.removeListener("error",U5),B.listenerCount("error")===0){let N2=B._writableState||B._readableState;if(N2&&!N2.errorEmitted)P(B,q1);else B.emit("error",q1)}}N(B,"error",U5);function J5(){B.removeListener("finish",K5),a1()}B.once("close",J5);function K5(){I("onfinish"),B.removeListener("close",J5),a1()}B.once("finish",K5);function a1(){I("unpipe"),n.unpipe(B)}if(B.emit("pipe",n),B.writableNeedDrain===!0)X7();else if(!X0.flowing)I("pipe resume"),n.resume();return B};function JK(B,j){return function(){let n=B._readableState;if(n.awaitDrainWriters===j)I("pipeOnDrain",1),n.awaitDrainWriters=null;else if(n.multiAwaitDrain)I("pipeOnDrain",n.awaitDrainWriters.size),n.awaitDrainWriters.delete(j);if((!n.awaitDrainWriters||n.awaitDrainWriters.size===0)&&B.listenerCount("data"))B.resume()}}o.prototype.unpipe=function(B){let j=this._readableState,n={hasUnpiped:!1};if(j.pipes.length===0)return this;if(!B){let U0=j.pipes;j.pipes=[],this.pause();for(let y0=0;y0<U0.length;y0++)U0[y0].emit("unpipe",this,{hasUnpiped:!1});return this}let X0=X(j.pipes,B);if(X0===-1)return this;if(j.pipes.splice(X0,1),j.pipes.length===0)this.pause();return B.emit("unpipe",this,n),this},o.prototype.on=function(B,j){let n=C.prototype.on.call(this,B,j),X0=this._readableState;if(B==="data"){if(X0.readableListening=this.listenerCount("readable")>0,X0.flowing!==!1)this.resume()}else if(B==="readable"){if(!X0.endEmitted&&!X0.readableListening){if(X0.readableListening=X0.needReadable=!0,X0.flowing=!1,X0.emittedReadable=!1,I("on readable",X0.length,X0.reading),X0.length)u0(this);else if(!X0.reading)$.nextTick(KK,this)}}return n},o.prototype.addListener=o.prototype.on,o.prototype.removeListener=function(B,j){let n=C.prototype.removeListener.call(this,B,j);if(B==="readable")$.nextTick(sQ,this);return n},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(B){let j=C.prototype.removeAllListeners.apply(this,arguments);if(B==="readable"||B===void 0)$.nextTick(sQ,this);return j};function sQ(B){let j=B._readableState;if(j.readableListening=B.listenerCount("readable")>0,j.resumeScheduled&&j[Y0]===!1)j.flowing=!0;else if(B.listenerCount("data")>0)B.resume();else if(!j.readableListening)j.flowing=null}function KK(B){I("readable nexttick read 0"),B.read(0)}o.prototype.resume=function(){let B=this._readableState;if(!B.flowing)I("resume"),B.flowing=!B.readableListening,VK(this,B);return B[Y0]=!1,this};function VK(B,j){if(!j.resumeScheduled)j.resumeScheduled=!0,$.nextTick(zK,B,j)}function zK(B,j){if(I("resume",j.reading),!j.reading)B.read(0);if(j.resumeScheduled=!1,B.emit("resume"),tQ(B),j.flowing&&!j.reading)B.read(0)}o.prototype.pause=function(){if(I("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1)I("pause"),this._readableState.flowing=!1,this.emit("pause");return this._readableState[Y0]=!0,this};function tQ(B){let j=B._readableState;I("flow",j.flowing);while(j.flowing&&B.read()!==null);}o.prototype.wrap=function(B){let j=!1;B.on("data",(X0)=>{if(!this.push(X0)&&B.pause)j=!0,B.pause()}),B.on("end",()=>{this.push(null)}),B.on("error",(X0)=>{P(this,X0)}),B.on("close",()=>{this.destroy()}),B.on("destroy",()=>{this.destroy()}),this._read=()=>{if(j&&B.resume)j=!1,B.resume()};let n=G(B);for(let X0=1;X0<n.length;X0++){let U0=n[X0];if(this[U0]===void 0&&typeof B[U0]==="function")this[U0]=B[U0].bind(B)}return this},o.prototype[Z]=function(){return eQ(this)},o.prototype.iterator=function(B){if(B!==void 0)Q0(B,"options");return eQ(this,B)};function eQ(B,j){if(typeof B.read!=="function")B=o.wrap(B,{objectMode:!0});let n=GK(B,j);return n.stream=B,n}async function*GK(B,j){let n=K0;function X0(r0){if(this===B)n(),n=K0;else n=r0}B.on("readable",X0);let U0,y0=M(B,{writable:!1},(r0)=>{U0=r0?x(U0,r0):null,n(),n=K0});try{while(!0){let r0=B.destroyed?null:B.read();if(r0!==null)yield r0;else if(U0)throw U0;else if(U0===null)return;else await new z(X0)}}catch(r0){throw U0=x(U0,r0),U0}finally{if((U0||(j===null||j===void 0?void 0:j.destroyOnReturn)!==!1)&&(U0===void 0||B._readableState.autoDestroy))E.destroyer(B,null);else B.off("readable",X0),y0()}}K(o.prototype,{readable:{__proto__:null,get(){let B=this._readableState;return!!B&&B.readable!==!1&&!B.destroyed&&!B.errorEmitted&&!B.endEmitted},set(B){if(this._readableState)this._readableState.readable=!!B}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(B){if(this._readableState)this._readableState.flowing=B}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(B){if(!this._readableState)return;this._readableState.destroyed=B}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),K(q0.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[Y0]!==!1},set(B){this[Y0]=!!B}}}),o._fromList=Q7;function Q7(B,j){if(j.length===0)return null;let n;if(j.objectMode)n=j.buffer.shift();else if(!B||B>=j.length){if(j.decoder)n=j.buffer.join("");else if(j.buffer.length===1)n=j.buffer.first();else n=j.buffer.concat(j.length);j.buffer.clear()}else n=j.buffer.consume(B,j.decoder);return n}function X5(B){let j=B._readableState;if(I("endReadable",j.endEmitted),!j.endEmitted)j.ended=!0,$.nextTick(WK,j,B)}function WK(B,j){if(I("endReadableNT",B.endEmitted,B.length),!B.errored&&!B.closeEmitted&&!B.endEmitted&&B.length===0){if(B.endEmitted=!0,j.emit("end"),j.writable&&j.allowHalfOpen===!1)$.nextTick(BK,j);else if(B.autoDestroy){let n=j._writableState;if(!n||n.autoDestroy&&(n.finished||n.writable===!1))j.destroy()}}}function BK(B){if(B.writable&&!B.writableEnded&&!B.destroyed)B.end()}o.from=function(B,j){return c(o,B,j)};var Y5;function q7(){if(Y5===void 0)Y5={};return Y5}o.fromWeb=function(B,j){return q7().newStreamReadableFromReadableStream(B,j)},o.toWeb=function(B,j){return q7().newReadableStreamFromStreamReadable(B,j)},o.wrap=function(B,j){var n,X0;return new o({objectMode:(n=(X0=B.readableObjectMode)!==null&&X0!==void 0?X0:B.objectMode)!==null&&n!==void 0?n:!0,...j,destroy(U0,y0){E.destroyer(B,U0),y0(U0)}}).wrap(B)}}),I5=M0((Q,q)=>{var $=J1(),{ArrayPrototypeSlice:X,Error:Y,FunctionPrototypeSymbolHasInstance:U,ObjectDefineProperty:J,ObjectDefineProperties:K,ObjectSetPrototypeOf:G,StringPrototypeToLowerCase:V,Symbol:z,SymbolHasInstance:w}=D0();q.exports=Q0,Q0.WritableState=v;var{EventEmitter:F}=($6(),a0(q6)),Z=C5().Stream,{Buffer:h}=(O2(),a0(A2)),g=O1(),{addAbortSignal:C}=p6(),{getHighWaterMark:N,getDefaultHighWaterMark:W}=m6(),{ERR_INVALID_ARG_TYPE:H,ERR_METHOD_NOT_IMPLEMENTED:M,ERR_MULTIPLE_CALLBACK:I,ERR_STREAM_CANNOT_PIPE:f,ERR_STREAM_DESTROYED:E,ERR_STREAM_ALREADY_FINISHED:d,ERR_STREAM_NULL_VALUES:R,ERR_STREAM_WRITE_AFTER_END:x,ERR_UNKNOWN_ENCODING:D}=h0().codes,{errorOrDestroy:L}=g;G(Q0.prototype,Z.prototype),G(Q0,Z);function S(){}var y=z("kOnFinished");function v(A,T,b){if(typeof b!=="boolean")b=T instanceof R2();if(this.objectMode=!!(A&&A.objectMode),b)this.objectMode=this.objectMode||!!(A&&A.writableObjectMode);this.highWaterMark=A?N(this,A,"writableHighWaterMark",b):W(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let r=!!(A&&A.decodeStrings===!1);this.decodeStrings=!r,this.defaultEncoding=A&&A.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=P.bind(void 0,T),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,a(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!A||A.emitClose!==!1,this.autoDestroy=!A||A.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[y]=[]}function a(A){A.buffered=[],A.bufferedIndex=0,A.allBuffers=!0,A.allNoop=!0}v.prototype.getBuffer=function(){return X(this.buffered,this.bufferedIndex)},J(v.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function Q0(A){let T=this instanceof R2();if(!T&&!U(Q0,this))return new Q0(A);if(this._writableState=new v(A,this,T),A){if(typeof A.write==="function")this._write=A.write;if(typeof A.writev==="function")this._writev=A.writev;if(typeof A.destroy==="function")this._destroy=A.destroy;if(typeof A.final==="function")this._final=A.final;if(typeof A.construct==="function")this._construct=A.construct;if(A.signal)C(A.signal,this)}Z.call(this,A),g.construct(this,()=>{let b=this._writableState;if(!b.writing)J0(this,b);p(this,b)})}J(Q0,w,{__proto__:null,value:function(A){if(U(this,A))return!0;if(this!==Q0)return!1;return A&&A._writableState instanceof v}}),Q0.prototype.pipe=function(){L(this,new f)};function Y0(A,T,b,r){let e=A._writableState;if(typeof b==="function")r=b,b=e.defaultEncoding;else{if(!b)b=e.defaultEncoding;else if(b!=="buffer"&&!h.isEncoding(b))throw new D(b);if(typeof r!=="function")r=S}if(T===null)throw new R;else if(!e.objectMode)if(typeof T==="string"){if(e.decodeStrings!==!1)T=h.from(T,b),b="buffer"}else if(T instanceof h)b="buffer";else if(Z._isUint8Array(T))T=Z._uint8ArrayToBuffer(T),b="buffer";else throw new H("chunk",["string","Buffer","Uint8Array"],T);let t;if(e.ending)t=new x;else if(e.destroyed)t=new E("write");if(t)return $.nextTick(r,t),L(A,t,!0),t;return e.pendingcb++,B0(A,e,T,b,r)}Q0.prototype.write=function(A,T,b){return Y0(this,A,T,b)===!0},Q0.prototype.cork=function(){this._writableState.corked++},Q0.prototype.uncork=function(){let A=this._writableState;if(A.corked){if(A.corked--,!A.writing)J0(this,A)}},Q0.prototype.setDefaultEncoding=function(A){if(typeof A==="string")A=V(A);if(!h.isEncoding(A))throw new D(A);return this._writableState.defaultEncoding=A,this};function B0(A,T,b,r,e){let t=T.objectMode?1:b.length;T.length+=t;let O=T.length<T.highWaterMark;if(!O)T.needDrain=!0;if(T.writing||T.corked||T.errored||!T.constructed){if(T.buffered.push({chunk:b,encoding:r,callback:e}),T.allBuffers&&r!=="buffer")T.allBuffers=!1;if(T.allNoop&&e!==S)T.allNoop=!1}else T.writelen=t,T.writecb=e,T.writing=!0,T.sync=!0,A._write(b,r,T.onwrite),T.sync=!1;return O&&!T.errored&&!T.destroyed}function c(A,T,b,r,e,t,O){if(T.writelen=r,T.writecb=O,T.writing=!0,T.sync=!0,T.destroyed)T.onwrite(new E("write"));else if(b)A._writev(e,T.onwrite);else A._write(e,t,T.onwrite);T.sync=!1}function K0(A,T,b,r){--T.pendingcb,r(b),u(T),L(A,b)}function P(A,T){let b=A._writableState,r=b.sync,e=b.writecb;if(typeof e!=="function"){L(A,new I);return}if(b.writing=!1,b.writecb=null,b.length-=b.writelen,b.writelen=0,T){if(T.stack,!b.errored)b.errored=T;if(A._readableState&&!A._readableState.errored)A._readableState.errored=T;if(r)$.nextTick(K0,A,b,T,e);else K0(A,b,T,e)}else{if(b.buffered.length>b.bufferedIndex)J0(A,b);if(r)if(b.afterWriteTickInfo!==null&&b.afterWriteTickInfo.cb===e)b.afterWriteTickInfo.count++;else b.afterWriteTickInfo={count:1,cb:e,stream:A,state:b},$.nextTick(l,b.afterWriteTickInfo);else $0(A,b,1,e)}}function l({stream:A,state:T,count:b,cb:r}){return T.afterWriteTickInfo=null,$0(A,T,b,r)}function $0(A,T,b,r){if(!T.ending&&!A.destroyed&&T.length===0&&T.needDrain)T.needDrain=!1,A.emit("drain");while(b-- >0)T.pendingcb--,r();if(T.destroyed)u(T);p(A,T)}function u(A){if(A.writing)return;for(let e=A.bufferedIndex;e<A.buffered.length;++e){var T;let{chunk:t,callback:O}=A.buffered[e],i=A.objectMode?1:t.length;A.length-=i,O((T=A.errored)!==null&&T!==void 0?T:new E("write"))}let b=A[y].splice(0);for(let e=0;e<b.length;e++){var r;b[e]((r=A.errored)!==null&&r!==void 0?r:new E("end"))}a(A)}function J0(A,T){if(T.corked||T.bufferProcessing||T.destroyed||!T.constructed)return;let{buffered:b,bufferedIndex:r,objectMode:e}=T,t=b.length-r;if(!t)return;let O=r;if(T.bufferProcessing=!0,t>1&&A._writev){T.pendingcb-=t-1;let i=T.allNoop?S:(o)=>{for(let V0=O;V0<b.length;++V0)b[V0].callback(o)},q0=T.allNoop&&O===0?b:X(b,O);q0.allBuffers=T.allBuffers,c(A,T,!0,T.length,q0,"",i),a(T)}else{do{let{chunk:i,encoding:q0,callback:o}=b[O];b[O++]=null;let V0=e?1:i.length;c(A,T,!1,V0,i,q0,o)}while(O<b.length&&!T.writing);if(O===b.length)a(T);else if(O>256)b.splice(0,O),T.bufferedIndex=0;else T.bufferedIndex=O}T.bufferProcessing=!1}Q0.prototype._write=function(A,T,b){if(this._writev)this._writev([{chunk:A,encoding:T}],b);else throw new M("_write()")},Q0.prototype._writev=null,Q0.prototype.end=function(A,T,b){let r=this._writableState;if(typeof A==="function")b=A,A=null,T=null;else if(typeof T==="function")b=T,T=null;let e;if(A!==null&&A!==void 0){let t=Y0(this,A,T);if(t instanceof Y)e=t}if(r.corked)r.corked=1,this.uncork();if(e);else if(!r.errored&&!r.ending)r.ending=!0,p(this,r,!0),r.ended=!0;else if(r.finished)e=new d("end");else if(r.destroyed)e=new E("end");if(typeof b==="function")if(e||r.finished)$.nextTick(b,e);else r[y].push(b);return this};function z0(A){return A.ending&&!A.destroyed&&A.constructed&&A.length===0&&!A.errored&&A.buffered.length===0&&!A.finished&&!A.writing&&!A.errorEmitted&&!A.closeEmitted}function F0(A,T){let b=!1;function r(e){if(b){L(A,e!==null&&e!==void 0?e:I());return}if(b=!0,T.pendingcb--,e){let t=T[y].splice(0);for(let O=0;O<t.length;O++)t[O](e);L(A,e,T.sync)}else if(z0(T))T.prefinished=!0,A.emit("prefinish"),T.pendingcb++,$.nextTick(m,A,T)}T.sync=!0,T.pendingcb++;try{A._final(r)}catch(e){r(e)}T.sync=!1}function Z0(A,T){if(!T.prefinished&&!T.finalCalled)if(typeof A._final==="function"&&!T.destroyed)T.finalCalled=!0,F0(A,T);else T.prefinished=!0,A.emit("prefinish")}function p(A,T,b){if(z0(T)){if(Z0(A,T),T.pendingcb===0){if(b)T.pendingcb++,$.nextTick((r,e)=>{if(z0(e))m(r,e);else e.pendingcb--},A,T);else if(z0(T))T.pendingcb++,m(A,T)}}}function m(A,T){T.pendingcb--,T.finished=!0;let b=T[y].splice(0);for(let r=0;r<b.length;r++)b[r]();if(A.emit("finish"),T.autoDestroy){let r=A._readableState;if(!r||r.autoDestroy&&(r.endEmitted||r.readable===!1))A.destroy()}}K(Q0.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(A){if(this._writableState)this._writableState.destroyed=A}},writable:{__proto__:null,get(){let A=this._writableState;return!!A&&A.writable!==!1&&!A.destroyed&&!A.errored&&!A.ending&&!A.ended},set(A){if(this._writableState)this._writableState.writable=!!A}},writableFinished:{__proto__:null,get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){let A=this._writableState;if(!A)return!1;return!A.destroyed&&!A.ending&&A.needDrain}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});var s=g.destroy;Q0.prototype.destroy=function(A,T){let b=this._writableState;if(!b.destroyed&&(b.bufferedIndex<b.buffered.length||b[y].length))$.nextTick(u,b);return s.call(this,A,T),this},Q0.prototype._undestroy=g.undestroy,Q0.prototype._destroy=function(A,T){T(A)},Q0.prototype[F.captureRejectionSymbol]=function(A){this.destroy(A)};var G0;function W0(){if(G0===void 0)G0={};return G0}Q0.fromWeb=function(A,T){return W0().newStreamWritableFromWritableStream(A,T)},Q0.toWeb=function(A){return W0().newWritableStreamFromStreamWritable(A)}}),HV=M0((Q,q)=>{var $=J1(),X=(O2(),a0(A2)),{isReadable:Y,isWritable:U,isIterable:J,isNodeStream:K,isReadableNodeStream:G,isWritableNodeStream:V,isDuplexNodeStream:z,isReadableStream:w,isWritableStream:F}=x2(),Z=_2(),{AbortError:h,codes:{ERR_INVALID_ARG_TYPE:g,ERR_INVALID_RETURN_VALUE:C}}=h0(),{destroyer:N}=O1(),W=R2(),H=d6(),M=I5(),{createDeferredPromise:I}=p0(),f=o7(),E=globalThis.Blob||X.Blob,d=typeof E<"u"?function(y){return y instanceof E}:function(y){return!1},R=globalThis.AbortController||X6().AbortController,{FunctionPrototypeCall:x}=D0();class D extends W{constructor(y){super(y);if((y===null||y===void 0?void 0:y.readable)===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if((y===null||y===void 0?void 0:y.writable)===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}}q.exports=function y(v,a){if(z(v))return v;if(G(v))return S({readable:v});if(V(v))return S({writable:v});if(K(v))return S({writable:!1,readable:!1});if(w(v))return S({readable:H.fromWeb(v)});if(F(v))return S({writable:M.fromWeb(v)});if(typeof v==="function"){let{value:Y0,write:B0,final:c,destroy:K0}=L(v);if(J(Y0))return f(D,Y0,{objectMode:!0,write:B0,final:c,destroy:K0});let P=Y0===null||Y0===void 0?void 0:Y0.then;if(typeof P==="function"){let l,$0=x(P,Y0,(u)=>{if(u!=null)throw new C("nully","body",u)},(u)=>{N(l,u)});return l=new D({objectMode:!0,readable:!1,write:B0,final(u){c(async()=>{try{await $0,$.nextTick(u,null)}catch(J0){$.nextTick(u,J0)}})},destroy:K0})}throw new C("Iterable, AsyncIterable or AsyncFunction",a,Y0)}if(d(v))return y(v.arrayBuffer());if(J(v))return f(D,v,{objectMode:!0,writable:!1});if(w(v===null||v===void 0?void 0:v.readable)&&F(v===null||v===void 0?void 0:v.writable))return D.fromWeb(v);if(typeof(v===null||v===void 0?void 0:v.writable)==="object"||typeof(v===null||v===void 0?void 0:v.readable)==="object"){let Y0=v!==null&&v!==void 0&&v.readable?G(v===null||v===void 0?void 0:v.readable)?v===null||v===void 0?void 0:v.readable:y(v.readable):void 0,B0=v!==null&&v!==void 0&&v.writable?V(v===null||v===void 0?void 0:v.writable)?v===null||v===void 0?void 0:v.writable:y(v.writable):void 0;return S({readable:Y0,writable:B0})}let Q0=v===null||v===void 0?void 0:v.then;if(typeof Q0==="function"){let Y0;return x(Q0,v,(B0)=>{if(B0!=null)Y0.push(B0);Y0.push(null)},(B0)=>{N(Y0,B0)}),Y0=new D({objectMode:!0,writable:!1,read(){}})}throw new g(a,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],v)};function L(y){let{promise:v,resolve:a}=I(),Q0=new R,Y0=Q0.signal;return{value:y(async function*(){while(!0){let B0=v;v=null;let{chunk:c,done:K0,cb:P}=await B0;if($.nextTick(P),K0)return;if(Y0.aborted)throw new h(void 0,{cause:Y0.reason});({promise:v,resolve:a}=I()),yield c}}(),{signal:Y0}),write(B0,c,K0){let P=a;a=null,P({chunk:B0,done:!1,cb:K0})},final(B0){let c=a;a=null,c({done:!0,cb:B0})},destroy(B0,c){Q0.abort(),c(B0)}}}function S(y){let v=y.readable&&typeof y.readable.read!=="function"?H.wrap(y.readable):y.readable,a=y.writable,Q0=!!Y(v),Y0=!!U(a),B0,c,K0,P,l;function $0(u){let J0=P;if(P=null,J0)J0(u);else if(u)l.destroy(u)}if(l=new D({readableObjectMode:!!(v!==null&&v!==void 0&&v.readableObjectMode),writableObjectMode:!!(a!==null&&a!==void 0&&a.writableObjectMode),readable:Q0,writable:Y0}),Y0)Z(a,(u)=>{if(Y0=!1,u)N(v,u);$0(u)}),l._write=function(u,J0,z0){if(a.write(u,J0))z0();else B0=z0},l._final=function(u){a.end(),c=u},a.on("drain",function(){if(B0){let u=B0;B0=null,u()}}),a.on("finish",function(){if(c){let u=c;c=null,u()}});if(Q0)Z(v,(u)=>{if(Q0=!1,u)N(v,u);$0(u)}),v.on("readable",function(){if(K0){let u=K0;K0=null,u()}}),v.on("end",function(){l.push(null)}),l._read=function(){while(!0){let u=v.read();if(u===null){K0=l._read;return}if(!l.push(u))return}};return l._destroy=function(u,J0){if(!u&&P!==null)u=new h;if(K0=null,B0=null,c=null,P===null)J0(u);else P=J0,N(a,u),N(v,u)},l}}),R2=M0((Q,q)=>{var{ObjectDefineProperties:$,ObjectGetOwnPropertyDescriptor:X,ObjectKeys:Y,ObjectSetPrototypeOf:U}=D0();q.exports=G;var J=d6(),K=I5();U(G.prototype,J.prototype),U(G,J);{let F=Y(K.prototype);for(let Z=0;Z<F.length;Z++){let h=F[Z];if(!G.prototype[h])G.prototype[h]=K.prototype[h]}}function G(F){if(!(this instanceof G))return new G(F);if(J.call(this,F),K.call(this,F),F){if(this.allowHalfOpen=F.allowHalfOpen!==!1,F.readable===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if(F.writable===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}else this.allowHalfOpen=!0}$(G.prototype,{writable:{__proto__:null,...X(K.prototype,"writable")},writableHighWaterMark:{__proto__:null,...X(K.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...X(K.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...X(K.prototype,"writableBuffer")},writableLength:{__proto__:null,...X(K.prototype,"writableLength")},writableFinished:{__proto__:null,...X(K.prototype,"writableFinished")},writableCorked:{__proto__:null,...X(K.prototype,"writableCorked")},writableEnded:{__proto__:null,...X(K.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...X(K.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){if(this._readableState===void 0||this._writableState===void 0)return!1;return this._readableState.destroyed&&this._writableState.destroyed},set(F){if(this._readableState&&this._writableState)this._readableState.destroyed=F,this._writableState.destroyed=F}}});var V;function z(){if(V===void 0)V={};return V}G.fromWeb=function(F,Z){return z().newStreamDuplexFromReadableWritablePair(F,Z)},G.toWeb=function(F){return z().newReadableWritablePairFromDuplex(F)};var w;G.from=function(F){if(!w)w=HV();return w(F,"body")}}),n7=M0((Q,q)=>{var{ObjectSetPrototypeOf:$,Symbol:X}=D0();q.exports=G;var{ERR_METHOD_NOT_IMPLEMENTED:Y}=h0().codes,U=R2(),{getHighWaterMark:J}=m6();$(G.prototype,U.prototype),$(G,U);var K=X("kCallback");function G(w){if(!(this instanceof G))return new G(w);let F=w?J(this,w,"readableHighWaterMark",!0):null;if(F===0)w={...w,highWaterMark:null,readableHighWaterMark:F,writableHighWaterMark:w.writableHighWaterMark||0};if(U.call(this,w),this._readableState.sync=!1,this[K]=null,w){if(typeof w.transform==="function")this._transform=w.transform;if(typeof w.flush==="function")this._flush=w.flush}this.on("prefinish",z)}function V(w){if(typeof this._flush==="function"&&!this.destroyed)this._flush((F,Z)=>{if(F){if(w)w(F);else this.destroy(F);return}if(Z!=null)this.push(Z);if(this.push(null),w)w()});else if(this.push(null),w)w()}function z(){if(this._final!==V)V.call(this)}G.prototype._final=V,G.prototype._transform=function(w,F,Z){throw new Y("_transform()")},G.prototype._write=function(w,F,Z){let h=this._readableState,g=this._writableState,C=h.length;this._transform(w,F,(N,W)=>{if(N){Z(N);return}if(W!=null)this.push(W);if(g.ended||C===h.length||h.length<h.highWaterMark)Z();else this[K]=Z})},G.prototype._read=function(){if(this[K]){let w=this[K];this[K]=null,w()}}}),r7=M0((Q,q)=>{var{ObjectSetPrototypeOf:$}=D0();q.exports=Y;var X=n7();$(Y.prototype,X.prototype),$(Y,X);function Y(U){if(!(this instanceof Y))return new Y(U);X.call(this,U)}Y.prototype._transform=function(U,J,K){K(null,U)}}),N5=M0((Q,q)=>{var $=J1(),{ArrayIsArray:X,Promise:Y,SymbolAsyncIterator:U,SymbolDispose:J}=D0(),K=_2(),{once:G}=p0(),V=O1(),z=R2(),{aggregateTwoErrors:w,codes:{ERR_INVALID_ARG_TYPE:F,ERR_INVALID_RETURN_VALUE:Z,ERR_MISSING_ARGS:h,ERR_STREAM_DESTROYED:g,ERR_STREAM_PREMATURE_CLOSE:C},AbortError:N}=h0(),{validateFunction:W,validateAbortSignal:H}=Y6(),{isIterable:M,isReadable:I,isReadableNodeStream:f,isNodeStream:E,isTransformStream:d,isWebStream:R,isReadableStream:x,isReadableFinished:D}=x2(),L=globalThis.AbortController||X6().AbortController,S,y,v;function a(u,J0,z0){let F0=!1;u.on("close",()=>{F0=!0});let Z0=K(u,{readable:J0,writable:z0},(p)=>{F0=!p});return{destroy:(p)=>{if(F0)return;F0=!0,V.destroyer(u,p||new g("pipe"))},cleanup:Z0}}function Q0(u){return W(u[u.length-1],"streams[stream.length - 1]"),u.pop()}function Y0(u){if(M(u))return u;else if(f(u))return B0(u);throw new F("val",["Readable","Iterable","AsyncIterable"],u)}async function*B0(u){if(!y)y=d6();yield*y.prototype[U].call(u)}async function c(u,J0,z0,{end:F0}){let Z0,p=null,m=(W0)=>{if(W0)Z0=W0;if(p){let A=p;p=null,A()}},s=()=>new Y((W0,A)=>{if(Z0)A(Z0);else p=()=>{if(Z0)A(Z0);else W0()}});J0.on("drain",m);let G0=K(J0,{readable:!1},m);try{if(J0.writableNeedDrain)await s();for await(let W0 of u)if(!J0.write(W0))await s();if(F0)J0.end(),await s();z0()}catch(W0){z0(Z0!==W0?w(Z0,W0):W0)}finally{G0(),J0.off("drain",m)}}async function K0(u,J0,z0,{end:F0}){if(d(J0))J0=J0.writable;let Z0=J0.getWriter();try{for await(let p of u)await Z0.ready,Z0.write(p).catch(()=>{});if(await Z0.ready,F0)await Z0.close();z0()}catch(p){try{await Z0.abort(p),z0(p)}catch(m){z0(m)}}}function P(...u){return l(u,G(Q0(u)))}function l(u,J0,z0){if(u.length===1&&X(u[0]))u=u[0];if(u.length<2)throw new h("streams");let F0=new L,Z0=F0.signal,p=z0===null||z0===void 0?void 0:z0.signal,m=[];H(p,"options.signal");function s(){e(new N)}v=v||p0().addAbortListener;let G0;if(p)G0=v(p,s);let W0,A,T=[],b=0;function r(o){e(o,--b===0)}function e(o,V0){var P0;if(o&&(!W0||W0.code==="ERR_STREAM_PREMATURE_CLOSE"))W0=o;if(!W0&&!V0)return;while(T.length)T.shift()(W0);if((P0=G0)===null||P0===void 0||P0[J](),F0.abort(),V0){if(!W0)m.forEach((o0)=>o0());$.nextTick(J0,W0,A)}}let t;for(let o=0;o<u.length;o++){let V0=u[o],P0=o<u.length-1,o0=o>0,n0=P0||(z0===null||z0===void 0?void 0:z0.end)!==!1,e2=o===u.length-1;if(E(V0)){let g0=function(u0){if(u0&&u0.name!=="AbortError"&&u0.code!=="ERR_STREAM_PREMATURE_CLOSE")r(u0)};var O=g0;if(n0){let{destroy:u0,cleanup:I1}=a(V0,P0,o0);if(T.push(u0),I(V0)&&e2)m.push(I1)}if(V0.on("error",g0),I(V0)&&e2)m.push(()=>{V0.removeListener("error",g0)})}if(o===0)if(typeof V0==="function"){if(t=V0({signal:Z0}),!M(t))throw new Z("Iterable, AsyncIterable or Stream","source",t)}else if(M(V0)||f(V0)||d(V0))t=V0;else t=z.from(V0);else if(typeof V0==="function"){if(d(t)){var i;t=Y0((i=t)===null||i===void 0?void 0:i.readable)}else t=Y0(t);if(t=V0(t,{signal:Z0}),P0){if(!M(t,!0))throw new Z("AsyncIterable",`transform[${o-1}]`,t)}else{var q0;if(!S)S=r7();let g0=new S({objectMode:!0}),u0=(q0=t)===null||q0===void 0?void 0:q0.then;if(typeof u0==="function")b++,u0.call(t,(W2)=>{if(A=W2,W2!=null)g0.write(W2);if(n0)g0.end();$.nextTick(r)},(W2)=>{g0.destroy(W2),$.nextTick(r,W2)});else if(M(t,!0))b++,c(t,g0,r,{end:n0});else if(x(t)||d(t)){let W2=t.readable||t;b++,c(W2,g0,r,{end:n0})}else throw new Z("AsyncIterable or Promise","destination",t);t=g0;let{destroy:I1,cleanup:N1}=a(t,!1,!0);if(T.push(I1),e2)m.push(N1)}}else if(E(V0)){if(f(t)){b+=2;let g0=$0(t,V0,r,{end:n0});if(I(V0)&&e2)m.push(g0)}else if(d(t)||x(t)){let g0=t.readable||t;b++,c(g0,V0,r,{end:n0})}else if(M(t))b++,c(t,V0,r,{end:n0});else throw new F("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],t);t=V0}else if(R(V0)){if(f(t))b++,K0(Y0(t),V0,r,{end:n0});else if(x(t)||M(t))b++,K0(t,V0,r,{end:n0});else if(d(t))b++,K0(t.readable,V0,r,{end:n0});else throw new F("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],t);t=V0}else t=z.from(V0)}if(Z0!==null&&Z0!==void 0&&Z0.aborted||p!==null&&p!==void 0&&p.aborted)$.nextTick(s);return t}function $0(u,J0,z0,{end:F0}){let Z0=!1;if(J0.on("close",()=>{if(!Z0)z0(new C)}),u.pipe(J0,{end:!1}),F0){let m=function(){Z0=!0,J0.end()};var p=m;if(D(u))$.nextTick(m);else u.once("end",m)}else z0();return K(u,{readable:!0,writable:!1},(m)=>{let s=u._readableState;if(m&&m.code==="ERR_STREAM_PREMATURE_CLOSE"&&s&&s.ended&&!s.errored&&!s.errorEmitted)u.once("end",z0).once("error",z0);else z0(m)}),K(J0,{readable:!1,writable:!0},z0)}q.exports={pipelineImpl:l,pipeline:P}}),a7=M0((Q,q)=>{var{pipeline:$}=N5(),X=R2(),{destroyer:Y}=O1(),{isNodeStream:U,isReadable:J,isWritable:K,isWebStream:G,isTransformStream:V,isWritableStream:z,isReadableStream:w}=x2(),{AbortError:F,codes:{ERR_INVALID_ARG_VALUE:Z,ERR_MISSING_ARGS:h}}=h0(),g=_2();q.exports=function(...C){if(C.length===0)throw new h("streams");if(C.length===1)return X.from(C[0]);let N=[...C];if(typeof C[0]==="function")C[0]=X.from(C[0]);if(typeof C[C.length-1]==="function"){let L=C.length-1;C[L]=X.from(C[L])}for(let L=0;L<C.length;++L){if(!U(C[L])&&!G(C[L]))continue;if(L<C.length-1&&!(J(C[L])||w(C[L])||V(C[L])))throw new Z(`streams[${L}]`,N[L],"must be readable");if(L>0&&!(K(C[L])||z(C[L])||V(C[L])))throw new Z(`streams[${L}]`,N[L],"must be writable")}let W,H,M,I,f;function E(L){let S=I;if(I=null,S)S(L);else if(L)f.destroy(L);else if(!D&&!x)f.destroy()}let d=C[0],R=$(C,E),x=!!(K(d)||z(d)||V(d)),D=!!(J(R)||w(R)||V(R));if(f=new X({writableObjectMode:!!(d!==null&&d!==void 0&&d.writableObjectMode),readableObjectMode:!!(R!==null&&R!==void 0&&R.readableObjectMode),writable:x,readable:D}),x){if(U(d))f._write=function(S,y,v){if(d.write(S,y))v();else W=v},f._final=function(S){d.end(),H=S},d.on("drain",function(){if(W){let S=W;W=null,S()}});else if(G(d)){let S=(V(d)?d.writable:d).getWriter();f._write=async function(y,v,a){try{await S.ready,S.write(y).catch(()=>{}),a()}catch(Q0){a(Q0)}},f._final=async function(y){try{await S.ready,S.close().catch(()=>{}),H=y}catch(v){y(v)}}}let L=V(R)?R.readable:R;g(L,()=>{if(H){let S=H;H=null,S()}})}if(D){if(U(R))R.on("readable",function(){if(M){let L=M;M=null,L()}}),R.on("end",function(){f.push(null)}),f._read=function(){while(!0){let L=R.read();if(L===null){M=f._read;return}if(!f.push(L))return}};else if(G(R)){let L=(V(R)?R.readable:R).getReader();f._read=async function(){while(!0)try{let{value:S,done:y}=await L.read();if(!f.push(S))return;if(y){f.push(null);return}}catch{return}}}}return f._destroy=function(L,S){if(!L&&I!==null)L=new F;if(M=null,W=null,H=null,I===null)S(L);else if(I=S,U(R))Y(R,L)},f}}),wV=M0((Q,q)=>{var $=globalThis.AbortController||X6().AbortController,{codes:{ERR_INVALID_ARG_VALUE:X,ERR_INVALID_ARG_TYPE:Y,ERR_MISSING_ARGS:U,ERR_OUT_OF_RANGE:J},AbortError:K}=h0(),{validateAbortSignal:G,validateInteger:V,validateObject:z}=Y6(),w=D0().Symbol("kWeak"),F=D0().Symbol("kResistStopPropagation"),{finished:Z}=_2(),h=a7(),{addAbortSignalNoValidate:g}=p6(),{isWritable:C,isNodeStream:N}=x2(),{deprecate:W}=p0(),{ArrayPrototypePush:H,Boolean:M,MathFloor:I,Number:f,NumberIsNaN:E,Promise:d,PromiseReject:R,PromiseResolve:x,PromisePrototypeThen:D,Symbol:L}=D0(),S=L("kEmpty"),y=L("kEof");function v(p,m){if(m!=null)z(m,"options");if((m===null||m===void 0?void 0:m.signal)!=null)G(m.signal,"options.signal");if(N(p)&&!C(p))throw new X("stream",p,"must be writable");let s=h(this,p);if(m!==null&&m!==void 0&&m.signal)g(m.signal,s);return s}function a(p,m){if(typeof p!=="function")throw new Y("fn",["Function","AsyncFunction"],p);if(m!=null)z(m,"options");if((m===null||m===void 0?void 0:m.signal)!=null)G(m.signal,"options.signal");let s=1;if((m===null||m===void 0?void 0:m.concurrency)!=null)s=I(m.concurrency);let G0=s-1;if((m===null||m===void 0?void 0:m.highWaterMark)!=null)G0=I(m.highWaterMark);return V(s,"options.concurrency",1),V(G0,"options.highWaterMark",0),G0+=s,async function*(){let W0=p0().AbortSignalAny([m===null||m===void 0?void 0:m.signal].filter(M)),A=this,T=[],b={signal:W0},r,e,t=!1,O=0;function i(){t=!0,q0()}function q0(){O-=1,o()}function o(){if(e&&!t&&O<s&&T.length<G0)e(),e=null}async function V0(){try{for await(let P0 of A){if(t)return;if(W0.aborted)throw new K;try{if(P0=p(P0,b),P0===S)continue;P0=x(P0)}catch(o0){P0=R(o0)}if(O+=1,D(P0,q0,i),T.push(P0),r)r(),r=null;if(!t&&(T.length>=G0||O>=s))await new d((o0)=>{e=o0})}T.push(y)}catch(P0){let o0=R(P0);D(o0,q0,i),T.push(o0)}finally{if(t=!0,r)r(),r=null}}V0();try{while(!0){while(T.length>0){let P0=await T[0];if(P0===y)return;if(W0.aborted)throw new K;if(P0!==S)yield P0;T.shift(),o()}await new d((P0)=>{r=P0})}}finally{if(t=!0,e)e(),e=null}}.call(this)}function Q0(p=void 0){if(p!=null)z(p,"options");if((p===null||p===void 0?void 0:p.signal)!=null)G(p.signal,"options.signal");return async function*(){let m=0;for await(let G0 of this){var s;if(p!==null&&p!==void 0&&(s=p.signal)!==null&&s!==void 0&&s.aborted)throw new K({cause:p.signal.reason});yield[m++,G0]}}.call(this)}async function Y0(p,m=void 0){for await(let s of P.call(this,p,m))return!0;return!1}async function B0(p,m=void 0){if(typeof p!=="function")throw new Y("fn",["Function","AsyncFunction"],p);return!await Y0.call(this,async(...s)=>{return!await p(...s)},m)}async function c(p,m){for await(let s of P.call(this,p,m))return s;return}async function K0(p,m){if(typeof p!=="function")throw new Y("fn",["Function","AsyncFunction"],p);async function s(G0,W0){return await p(G0,W0),S}for await(let G0 of a.call(this,s,m));}function P(p,m){if(typeof p!=="function")throw new Y("fn",["Function","AsyncFunction"],p);async function s(G0,W0){if(await p(G0,W0))return G0;return S}return a.call(this,s,m)}class l extends U{constructor(){super("reduce");this.message="Reduce of an empty stream requires an initial value"}}async function $0(p,m,s){var G0;if(typeof p!=="function")throw new Y("reducer",["Function","AsyncFunction"],p);if(s!=null)z(s,"options");if((s===null||s===void 0?void 0:s.signal)!=null)G(s.signal,"options.signal");let W0=arguments.length>1;if(s!==null&&s!==void 0&&(G0=s.signal)!==null&&G0!==void 0&&G0.aborted){let e=new K(void 0,{cause:s.signal.reason});throw this.once("error",()=>{}),await Z(this.destroy(e)),e}let A=new $,T=A.signal;if(s!==null&&s!==void 0&&s.signal){let e={once:!0,[w]:this,[F]:!0};s.signal.addEventListener("abort",()=>A.abort(),e)}let b=!1;try{for await(let e of this){var r;if(b=!0,s!==null&&s!==void 0&&(r=s.signal)!==null&&r!==void 0&&r.aborted)throw new K;if(!W0)m=e,W0=!0;else m=await p(m,e,{signal:T})}if(!b&&!W0)throw new l}finally{A.abort()}return m}async function u(p){if(p!=null)z(p,"options");if((p===null||p===void 0?void 0:p.signal)!=null)G(p.signal,"options.signal");let m=[];for await(let G0 of this){var s;if(p!==null&&p!==void 0&&(s=p.signal)!==null&&s!==void 0&&s.aborted)throw new K(void 0,{cause:p.signal.reason});H(m,G0)}return m}function J0(p,m){let s=a.call(this,p,m);return async function*(){for await(let G0 of s)yield*G0}.call(this)}function z0(p){if(p=f(p),E(p))return 0;if(p<0)throw new J("number",">= 0",p);return p}function F0(p,m=void 0){if(m!=null)z(m,"options");if((m===null||m===void 0?void 0:m.signal)!=null)G(m.signal,"options.signal");return p=z0(p),async function*(){var s;if(m!==null&&m!==void 0&&(s=m.signal)!==null&&s!==void 0&&s.aborted)throw new K;for await(let W0 of this){var G0;if(m!==null&&m!==void 0&&(G0=m.signal)!==null&&G0!==void 0&&G0.aborted)throw new K;if(p--<=0)yield W0}}.call(this)}function Z0(p,m=void 0){if(m!=null)z(m,"options");if((m===null||m===void 0?void 0:m.signal)!=null)G(m.signal,"options.signal");return p=z0(p),async function*(){var s;if(m!==null&&m!==void 0&&(s=m.signal)!==null&&s!==void 0&&s.aborted)throw new K;for await(let W0 of this){var G0;if(m!==null&&m!==void 0&&(G0=m.signal)!==null&&G0!==void 0&&G0.aborted)throw new K;if(p-- >0)yield W0;if(p<=0)return}}.call(this)}q.exports.streamReturningOperators={asIndexedPairs:W(Q0,"readable.asIndexedPairs will be removed in a future version."),drop:F0,filter:P,flatMap:J0,map:a,take:Z0,compose:v},q.exports.promiseReturningOperators={every:B0,forEach:K0,reduce:$0,toArray:u,some:Y0,find:c}}),s7=M0((Q,q)=>{var{ArrayPrototypePop:$,Promise:X}=D0(),{isIterable:Y,isNodeStream:U,isWebStream:J}=x2(),{pipelineImpl:K}=N5(),{finished:G}=_2();t7();function V(...z){return new X((w,F)=>{let Z,h,g=z[z.length-1];if(g&&typeof g==="object"&&!U(g)&&!Y(g)&&!J(g)){let C=$(z);Z=C.signal,h=C.end}K(z,(C,N)=>{if(C)F(C);else w(N)},{signal:Z,end:h})})}q.exports={finished:G,pipeline:V}}),t7=M0((Q,q)=>{var{Buffer:$}=(O2(),a0(A2)),{ObjectDefineProperty:X,ObjectKeys:Y,ReflectApply:U}=D0(),{promisify:{custom:J}}=p0(),{streamReturningOperators:K,promiseReturningOperators:G}=wV(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:V}}=h0(),z=a7(),{setDefaultHighWaterMark:w,getDefaultHighWaterMark:F}=m6(),{pipeline:Z}=N5(),{destroyer:h}=O1(),g=_2(),C=s7(),N=x2(),W=q.exports=C5().Stream;W.isDestroyed=N.isDestroyed,W.isDisturbed=N.isDisturbed,W.isErrored=N.isErrored,W.isReadable=N.isReadable,W.isWritable=N.isWritable,W.Readable=d6();for(let M of Y(K)){let I=function(...E){if(new.target)throw V();return W.Readable.from(U(f,this,E))},f=K[M];X(I,"name",{__proto__:null,value:f.name}),X(I,"length",{__proto__:null,value:f.length}),X(W.Readable.prototype,M,{__proto__:null,value:I,enumerable:!1,configurable:!0,writable:!0})}for(let M of Y(G)){let I=function(...E){if(new.target)throw V();return U(f,this,E)},f=G[M];X(I,"name",{__proto__:null,value:f.name}),X(I,"length",{__proto__:null,value:f.length}),X(W.Readable.prototype,M,{__proto__:null,value:I,enumerable:!1,configurable:!0,writable:!0})}W.Writable=I5(),W.Duplex=R2(),W.Transform=n7(),W.PassThrough=r7(),W.pipeline=Z;var{addAbortSignal:H}=p6();W.addAbortSignal=H,W.finished=g,W.destroy=h,W.compose=z,W.setDefaultHighWaterMark=w,W.getDefaultHighWaterMark=F,X(W,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return C}}),X(Z,J,{__proto__:null,enumerable:!0,get(){return C.pipeline}}),X(g,J,{__proto__:null,enumerable:!0,get(){return C.finished}}),W.Stream=W,W._isUint8Array=function(M){return M instanceof Uint8Array},W._uint8ArrayToBuffer=function(M){return $.from(M.buffer,M.byteOffset,M.byteLength)}}),MV=M0((Q,q)=>{var $=l6();{let X=t7(),Y=s7(),U=X.Readable.destroy;q.exports=X.Readable,q.exports._uint8ArrayToBuffer=X._uint8ArrayToBuffer,q.exports._isUint8Array=X._isUint8Array,q.exports.isDisturbed=X.isDisturbed,q.exports.isErrored=X.isErrored,q.exports.isReadable=X.isReadable,q.exports.Readable=X.Readable,q.exports.Writable=X.Writable,q.exports.Duplex=X.Duplex,q.exports.Transform=X.Transform,q.exports.PassThrough=X.PassThrough,q.exports.addAbortSignal=X.addAbortSignal,q.exports.finished=X.finished,q.exports.destroy=X.destroy,q.exports.destroy=U,q.exports.pipeline=X.pipeline,q.exports.compose=X.compose,Object.defineProperty(X,"promises",{configurable:!0,enumerable:!0,get(){return Y}}),q.exports.Stream=X.Stream}q.exports.default=q.exports});e7.exports=MV()});var T2=k((LV)=>{LV.base64=!0;LV.array=!0;LV.string=!0;LV.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u";LV.nodebuffer=typeof Buffer<"u";LV.uint8array=typeof Uint8Array<"u";if(typeof ArrayBuffer>"u")LV.blob=!1;else{i6=new ArrayBuffer(0);try{LV.blob=new Blob([i6],{type:"application/zip"}).size===0}catch(Q){try{A5=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,o6=new A5,o6.append(i6),LV.blob=o6.getBlob("application/zip").size===0}catch(q){LV.blob=!1}}}var i6,A5,o6;try{LV.nodestream=!!l6().Readable}catch(Q){LV.nodestream=!1}});var O5=k((TV)=>{var RV=A0(),xV=T2(),j2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";TV.encode=function(Q){var q=[],$,X,Y,U,J,K,G,V=0,z=Q.length,w=z,F=RV.getTypeOf(Q)!=="string";while(V<Q.length){if(w=z-V,!F)$=Q.charCodeAt(V++),X=V<z?Q.charCodeAt(V++):0,Y=V<z?Q.charCodeAt(V++):0;else $=Q[V++],X=V<z?Q[V++]:0,Y=V<z?Q[V++]:0;U=$>>2,J=($&3)<<4|X>>4,K=w>1?(X&15)<<2|Y>>6:64,G=w>2?Y&63:64,q.push(j2.charAt(U)+j2.charAt(J)+j2.charAt(K)+j2.charAt(G))}return q.join("")};TV.decode=function(Q){var q,$,X,Y,U,J,K,G=0,V=0,z="data:";if(Q.substr(0,z.length)===z)throw Error("Invalid base64 input, it looks like a data url.");Q=Q.replace(/[^A-Za-z0-9+/=]/g,"");var w=Q.length*3/4;if(Q.charAt(Q.length-1)===j2.charAt(64))w--;if(Q.charAt(Q.length-2)===j2.charAt(64))w--;if(w%1!==0)throw Error("Invalid base64 input, bad content length.");var F;if(xV.uint8array)F=new Uint8Array(w|0);else F=Array(w|0);while(G<Q.length){if(Y=j2.indexOf(Q.charAt(G++)),U=j2.indexOf(Q.charAt(G++)),J=j2.indexOf(Q.charAt(G++)),K=j2.indexOf(Q.charAt(G++)),q=Y<<2|U>>4,$=(U&15)<<4|J>>2,X=(J&3)<<6|K,F[V++]=q,J!==64)F[V++]=$;if(K!==64)F[V++]=X}return F}});var U6=k((iM,Q9)=>{Q9.exports={isNode:typeof Buffer<"u",newBufferFrom:function(Q,q){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(Q,q);else{if(typeof Q==="number")throw Error('The "data" argument must not be a number');return new Buffer(Q,q)}},allocBuffer:function(Q){if(Buffer.alloc)return Buffer.alloc(Q);else{var q=new Buffer(Q);return q.fill(0),q}},isBuffer:function(Q){return Buffer.isBuffer(Q)},isStream:function(Q){return Q&&typeof Q.on==="function"&&typeof Q.pause==="function"&&typeof Q.resume==="function"}}});var X9=k((oM,$9)=>{var q9=global.MutationObserver||global.WebKitMutationObserver,J6;if(q9)r6=0,R5=new q9(n6),a6=global.document.createTextNode(""),R5.observe(a6,{characterData:!0}),J6=function(){a6.data=r6=++r6%2};else if(!global.setImmediate&&typeof global.MessageChannel<"u")s6=new global.MessageChannel,s6.port1.onmessage=n6,J6=function(){s6.port2.postMessage(0)};else if("document"in global&&"onreadystatechange"in global.document.createElement("script"))J6=function(){var Q=global.document.createElement("script");Q.onreadystatechange=function(){n6(),Q.onreadystatechange=null,Q.parentNode.removeChild(Q),Q=null},global.document.documentElement.appendChild(Q)};else J6=function(){setTimeout(n6,0)};var r6,R5,a6,s6,x5,K6=[];function n6(){x5=!0;var Q,q,$=K6.length;while($){q=K6,K6=[],Q=-1;while(++Q<$)q[Q]();$=K6.length}x5=!1}$9.exports=SV;function SV(Q){if(K6.push(Q)===1&&!x5)J6()}});var z9=k((nM,V9)=>{var kV=X9();function R1(){}var f0={},Y9=["REJECTED"],T5=["FULFILLED"],U9=["PENDING"];V9.exports=b2;function b2(Q){if(typeof Q!=="function")throw TypeError("resolver must be a function");if(this.state=U9,this.queue=[],this.outcome=void 0,Q!==R1)J9(this,Q)}b2.prototype.finally=function(Q){if(typeof Q!=="function")return this;var q=this.constructor;return this.then($,X);function $(Y){function U(){return Y}return q.resolve(Q()).then(U)}function X(Y){function U(){throw Y}return q.resolve(Q()).then(U)}};b2.prototype.catch=function(Q){return this.then(null,Q)};b2.prototype.then=function(Q,q){if(typeof Q!=="function"&&this.state===T5||typeof q!=="function"&&this.state===Y9)return this;var $=new this.constructor(R1);if(this.state!==U9){var X=this.state===T5?Q:q;v5($,X,this.outcome)}else this.queue.push(new V6($,Q,q));return $};function V6(Q,q,$){if(this.promise=Q,typeof q==="function")this.onFulfilled=q,this.callFulfilled=this.otherCallFulfilled;if(typeof $==="function")this.onRejected=$,this.callRejected=this.otherCallRejected}V6.prototype.callFulfilled=function(Q){f0.resolve(this.promise,Q)};V6.prototype.otherCallFulfilled=function(Q){v5(this.promise,this.onFulfilled,Q)};V6.prototype.callRejected=function(Q){f0.reject(this.promise,Q)};V6.prototype.otherCallRejected=function(Q){v5(this.promise,this.onRejected,Q)};function v5(Q,q,$){kV(function(){var X;try{X=q($)}catch(Y){return f0.reject(Q,Y)}if(X===Q)f0.reject(Q,TypeError("Cannot resolve promise with itself"));else f0.resolve(Q,X)})}f0.resolve=function(Q,q){var $=K9(gV,q);if($.status==="error")return f0.reject(Q,$.value);var X=$.value;if(X)J9(Q,X);else{Q.state=T5,Q.outcome=q;var Y=-1,U=Q.queue.length;while(++Y<U)Q.queue[Y].callFulfilled(q)}return Q};f0.reject=function(Q,q){Q.state=Y9,Q.outcome=q;var $=-1,X=Q.queue.length;while(++$<X)Q.queue[$].callRejected(q);return Q};function gV(Q){var q=Q&&Q.then;if(Q&&(typeof Q==="object"||typeof Q==="function")&&typeof q==="function")return function(){q.apply(Q,arguments)}}function J9(Q,q){var $=!1;function X(K){if($)return;$=!0,f0.reject(Q,K)}function Y(K){if($)return;$=!0,f0.resolve(Q,K)}function U(){q(Y,X)}var J=K9(U);if(J.status==="error")X(J.value)}function K9(Q,q){var $={};try{$.value=Q(q),$.status="success"}catch(X){$.status="error",$.value=X}return $}b2.resolve=yV;function yV(Q){if(Q instanceof this)return Q;return f0.resolve(new this(R1),Q)}b2.reject=fV;function fV(Q){var q=new this(R1);return f0.reject(q,Q)}b2.all=hV;function hV(Q){var q=this;if(Object.prototype.toString.call(Q)!=="[object Array]")return this.reject(TypeError("must be an array"));var $=Q.length,X=!1;if(!$)return this.resolve([]);var Y=Array($),U=0,J=-1,K=new this(R1);while(++J<$)G(Q[J],J);return K;function G(V,z){q.resolve(V).then(w,function(F){if(!X)X=!0,f0.reject(K,F)});function w(F){if(Y[z]=F,++U===$&&!X)X=!0,f0.resolve(K,Y)}}}b2.race=_V;function _V(Q){var q=this;if(Object.prototype.toString.call(Q)!=="[object Array]")return this.reject(TypeError("must be an array"));var $=Q.length,X=!1;if(!$)return this.resolve([]);var Y=-1,U=new this(R1);while(++Y<$)J(Q[Y]);return U;function J(K){q.resolve(K).then(function(G){if(!X)X=!0,f0.resolve(U,G)},function(G){if(!X)X=!0,f0.reject(U,G)})}}});var x1=k((rM,G9)=>{var E5=null;if(typeof Promise<"u")E5=Promise;else E5=z9();G9.exports={Promise:E5}});var B9=k((W9)=>{(function(Q,q){if(Q.setImmediate)return;var $=1,X={},Y=!1,U=Q.document,J;function K(W){if(typeof W!=="function")W=Function(""+W);var H=Array(arguments.length-1);for(var M=0;M<H.length;M++)H[M]=arguments[M+1];var I={callback:W,args:H};return X[$]=I,J($),$++}function G(W){delete X[W]}function V(W){var{callback:H,args:M}=W;switch(M.length){case 0:H();break;case 1:H(M[0]);break;case 2:H(M[0],M[1]);break;case 3:H(M[0],M[1],M[2]);break;default:H.apply(q,M);break}}function z(W){if(Y)setTimeout(z,0,W);else{var H=X[W];if(H){Y=!0;try{V(H)}finally{G(W),Y=!1}}}}function w(){J=function(W){process.nextTick(function(){z(W)})}}function F(){if(Q.postMessage&&!Q.importScripts){var W=!0,H=Q.onmessage;return Q.onmessage=function(){W=!1},Q.postMessage("","*"),Q.onmessage=H,W}}function Z(){var W="setImmediate$"+Math.random()+"$",H=function(M){if(M.source===Q&&typeof M.data==="string"&&M.data.indexOf(W)===0)z(+M.data.slice(W.length))};if(Q.addEventListener)Q.addEventListener("message",H,!1);else Q.attachEvent("onmessage",H);J=function(M){Q.postMessage(W+M,"*")}}function h(){var W=new MessageChannel;W.port1.onmessage=function(H){var M=H.data;z(M)},J=function(H){W.port2.postMessage(H)}}function g(){var W=U.documentElement;J=function(H){var M=U.createElement("script");M.onreadystatechange=function(){z(H),M.onreadystatechange=null,W.removeChild(M),M=null},W.appendChild(M)}}function C(){J=function(W){setTimeout(z,0,W)}}var N=Object.getPrototypeOf&&Object.getPrototypeOf(Q);if(N=N&&N.setTimeout?N:Q,{}.toString.call(Q.process)==="[object process]")w();else if(F())Z();else if(Q.MessageChannel)h();else if(U&&"onreadystatechange"in U.createElement("script"))g();else C();N.setImmediate=K,N.clearImmediate=G})(typeof self>"u"?typeof global>"u"?W9:global:self)});var A0=k((cV)=>{var u2=T2(),bV=O5(),T1=U6(),S5=x1();B9();function uV(Q){var q=null;if(u2.uint8array)q=new Uint8Array(Q.length);else q=Array(Q.length);return e6(Q,q)}cV.newBlob=function(Q,q){cV.checkSupport("blob");try{return new Blob([Q],{type:q})}catch(Y){try{var $=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,X=new $;return X.append(Q),X.getBlob(q)}catch(U){throw Error("Bug : can't construct the Blob.")}}};function z6(Q){return Q}function e6(Q,q){for(var $=0;$<Q.length;++$)q[$]=Q.charCodeAt($)&255;return q}var t6={stringifyByChunk:function(Q,q,$){var X=[],Y=0,U=Q.length;if(U<=$)return String.fromCharCode.apply(null,Q);while(Y<U){if(q==="array"||q==="nodebuffer")X.push(String.fromCharCode.apply(null,Q.slice(Y,Math.min(Y+$,U))));else X.push(String.fromCharCode.apply(null,Q.subarray(Y,Math.min(Y+$,U))));Y+=$}return X.join("")},stringifyByChar:function(Q){var q="";for(var $=0;$<Q.length;$++)q+=String.fromCharCode(Q[$]);return q},applyCanBeUsed:{uint8array:function(){try{return u2.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(Q){return!1}}(),nodebuffer:function(){try{return u2.nodebuffer&&String.fromCharCode.apply(null,T1.allocBuffer(1)).length===1}catch(Q){return!1}}()}};function G6(Q){var q=65536,$=cV.getTypeOf(Q),X=!0;if($==="uint8array")X=t6.applyCanBeUsed.uint8array;else if($==="nodebuffer")X=t6.applyCanBeUsed.nodebuffer;if(X)while(q>1)try{return t6.stringifyByChunk(Q,$,q)}catch(Y){q=Math.floor(q/2)}return t6.stringifyByChar(Q)}cV.applyFromCharCode=G6;function Q8(Q,q){for(var $=0;$<Q.length;$++)q[$]=Q[$];return q}var c2={};c2.string={string:z6,array:function(Q){return e6(Q,Array(Q.length))},arraybuffer:function(Q){return c2.string.uint8array(Q).buffer},uint8array:function(Q){return e6(Q,new Uint8Array(Q.length))},nodebuffer:function(Q){return e6(Q,T1.allocBuffer(Q.length))}};c2.array={string:G6,array:z6,arraybuffer:function(Q){return new Uint8Array(Q).buffer},uint8array:function(Q){return new Uint8Array(Q)},nodebuffer:function(Q){return T1.newBufferFrom(Q)}};c2.arraybuffer={string:function(Q){return G6(new Uint8Array(Q))},array:function(Q){return Q8(new Uint8Array(Q),Array(Q.byteLength))},arraybuffer:z6,uint8array:function(Q){return new Uint8Array(Q)},nodebuffer:function(Q){return T1.newBufferFrom(new Uint8Array(Q))}};c2.uint8array={string:G6,array:function(Q){return Q8(Q,Array(Q.length))},arraybuffer:function(Q){return Q.buffer},uint8array:z6,nodebuffer:function(Q){return T1.newBufferFrom(Q)}};c2.nodebuffer={string:G6,array:function(Q){return Q8(Q,Array(Q.length))},arraybuffer:function(Q){return c2.nodebuffer.uint8array(Q).buffer},uint8array:function(Q){return Q8(Q,new Uint8Array(Q.length))},nodebuffer:z6};cV.transformTo=function(Q,q){if(!q)q="";if(!Q)return q;cV.checkSupport(Q);var $=cV.getTypeOf(q),X=c2[$][Q](q);return X};cV.resolve=function(Q){var q=Q.split("/"),$=[];for(var X=0;X<q.length;X++){var Y=q[X];if(Y==="."||Y===""&&X!==0&&X!==q.length-1)continue;else if(Y==="..")$.pop();else $.push(Y)}return $.join("/")};cV.getTypeOf=function(Q){if(typeof Q==="string")return"string";if(Object.prototype.toString.call(Q)==="[object Array]")return"array";if(u2.nodebuffer&&T1.isBuffer(Q))return"nodebuffer";if(u2.uint8array&&Q instanceof Uint8Array)return"uint8array";if(u2.arraybuffer&&Q instanceof ArrayBuffer)return"arraybuffer"};cV.checkSupport=function(Q){var q=u2[Q.toLowerCase()];if(!q)throw Error(Q+" is not supported by this platform")};cV.MAX_VALUE_16BITS=65535;cV.MAX_VALUE_32BITS=-1;cV.pretty=function(Q){var q="",$,X;for(X=0;X<(Q||"").length;X++)$=Q.charCodeAt(X),q+="\\x"+($<16?"0":"")+$.toString(16).toUpperCase();return q};cV.delay=function(Q,q,$){setImmediate(function(){Q.apply($||null,q||[])})};cV.inherits=function(Q,q){var $=function(){};$.prototype=q.prototype,Q.prototype=new $};cV.extend=function(){var Q={},q,$;for(q=0;q<arguments.length;q++)for($ in arguments[q])if(Object.prototype.hasOwnProperty.call(arguments[q],$)&&typeof Q[$]>"u")Q[$]=arguments[q][$];return Q};cV.prepareContent=function(Q,q,$,X,Y){var U=S5.Promise.resolve(q).then(function(J){var K=u2.blob&&(J instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(J))!==-1);if(K&&typeof FileReader<"u")return new S5.Promise(function(G,V){var z=new FileReader;z.onload=function(w){G(w.target.result)},z.onerror=function(w){V(w.target.error)},z.readAsArrayBuffer(J)});else return J});return U.then(function(J){var K=cV.getTypeOf(J);if(!K)return S5.Promise.reject(Error("Can't read the data of '"+Q+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));if(K==="arraybuffer")J=cV.transformTo("uint8array",J);else if(K==="string"){if(Y)J=bV.decode(J);else if($){if(X!==!0)J=uV(J)}}return J})}});var l0=k((tM,H9)=>{function F9(Q){this.name=Q||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}F9.prototype={push:function(Q){this.emit("data",Q)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(Q){this.emit("error",Q)}return!0},error:function(Q){if(this.isFinished)return!1;if(this.isPaused)this.generatedError=Q;else{if(this.isFinished=!0,this.emit("error",Q),this.previous)this.previous.error(Q);this.cleanUp()}return!0},on:function(Q,q){return this._listeners[Q].push(q),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(Q,q){if(this._listeners[Q])for(var $=0;$<this._listeners[Q].length;$++)this._listeners[Q][$].call(this,q)},pipe:function(Q){return Q.registerPrevious(this)},registerPrevious:function(Q){if(this.isLocked)throw Error("The stream '"+this+"' has already been used.");this.streamInfo=Q.streamInfo,this.mergeStreamInfo(),this.previous=Q;var q=this;return Q.on("data",function($){q.processChunk($)}),Q.on("end",function(){q.end()}),Q.on("error",function($){q.error($)}),this},pause:function(){if(this.isPaused||this.isFinished)return!1;if(this.isPaused=!0,this.previous)this.previous.pause();return!0},resume:function(){if(!this.isPaused||this.isFinished)return!1;this.isPaused=!1;var Q=!1;if(this.generatedError)this.error(this.generatedError),Q=!0;if(this.previous)this.previous.resume();return!Q},flush:function(){},processChunk:function(Q){this.push(Q)},withStreamInfo:function(Q,q){return this.extraStreamInfo[Q]=q,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var Q in this.extraStreamInfo){if(!Object.prototype.hasOwnProperty.call(this.extraStreamInfo,Q))continue;this.streamInfo[Q]=this.extraStreamInfo[Q]}},lock:function(){if(this.isLocked)throw Error("The stream '"+this+"' has already been used.");if(this.isLocked=!0,this.previous)this.previous.lock()},toString:function(){var Q="Worker "+this.name;if(this.previous)return this.previous+" -> "+Q;else return Q}};H9.exports=F9});var E1=k(($z)=>{var v1=A0(),K1=T2(),tV=U6(),q8=l0(),W6=Array(256);for(F2=0;F2<256;F2++)W6[F2]=F2>=252?6:F2>=248?5:F2>=240?4:F2>=224?3:F2>=192?2:1;var F2;W6[254]=W6[254]=1;var eV=function(Q){var q,$,X,Y,U,J=Q.length,K=0;for(Y=0;Y<J;Y++){if($=Q.charCodeAt(Y),($&64512)===55296&&Y+1<J){if(X=Q.charCodeAt(Y+1),(X&64512)===56320)$=65536+($-55296<<10)+(X-56320),Y++}K+=$<128?1:$<2048?2:$<65536?3:4}if(K1.uint8array)q=new Uint8Array(K);else q=Array(K);for(U=0,Y=0;U<K;Y++){if($=Q.charCodeAt(Y),($&64512)===55296&&Y+1<J){if(X=Q.charCodeAt(Y+1),(X&64512)===56320)$=65536+($-55296<<10)+(X-56320),Y++}if($<128)q[U++]=$;else if($<2048)q[U++]=192|$>>>6,q[U++]=128|$&63;else if($<65536)q[U++]=224|$>>>12,q[U++]=128|$>>>6&63,q[U++]=128|$&63;else q[U++]=240|$>>>18,q[U++]=128|$>>>12&63,q[U++]=128|$>>>6&63,q[U++]=128|$&63}return q},Qz=function(Q,q){var $;if(q=q||Q.length,q>Q.length)q=Q.length;$=q-1;while($>=0&&(Q[$]&192)===128)$--;if($<0)return q;if($===0)return q;return $+W6[Q[$]]>q?$:q},qz=function(Q){var q,$,X,Y,U=Q.length,J=Array(U*2);for($=0,q=0;q<U;){if(X=Q[q++],X<128){J[$++]=X;continue}if(Y=W6[X],Y>4){J[$++]=65533,q+=Y-1;continue}X&=Y===2?31:Y===3?15:7;while(Y>1&&q<U)X=X<<6|Q[q++]&63,Y--;if(Y>1){J[$++]=65533;continue}if(X<65536)J[$++]=X;else X-=65536,J[$++]=55296|X>>10&1023,J[$++]=56320|X&1023}if(J.length!==$)if(J.subarray)J=J.subarray(0,$);else J.length=$;return v1.applyFromCharCode(J)};$z.utf8encode=function(q){if(K1.nodebuffer)return tV.newBufferFrom(q,"utf-8");return eV(q)};$z.utf8decode=function(q){if(K1.nodebuffer)return v1.transformTo("nodebuffer",q).toString("utf-8");return q=v1.transformTo(K1.uint8array?"uint8array":"array",q),qz(q)};function $8(){q8.call(this,"utf-8 decode"),this.leftOver=null}v1.inherits($8,q8);$8.prototype.processChunk=function(Q){var q=v1.transformTo(K1.uint8array?"uint8array":"array",Q.data);if(this.leftOver&&this.leftOver.length){if(K1.uint8array){var $=q;q=new Uint8Array($.length+this.leftOver.length),q.set(this.leftOver,0),q.set($,this.leftOver.length)}else q=this.leftOver.concat(q);this.leftOver=null}var X=Qz(q),Y=q;if(X!==q.length)if(K1.uint8array)Y=q.subarray(0,X),this.leftOver=q.subarray(X,q.length);else Y=q.slice(0,X),this.leftOver=q.slice(X,q.length);this.push({data:$z.utf8decode(Y),meta:Q.meta})};$8.prototype.flush=function(){if(this.leftOver&&this.leftOver.length)this.push({data:$z.utf8decode(this.leftOver),meta:{}}),this.leftOver=null};$z.Utf8DecodeWorker=$8;function g5(){q8.call(this,"utf-8 encode")}v1.inherits(g5,q8);g5.prototype.processChunk=function(Q){this.push({data:$z.utf8encode(Q.data),meta:Q.meta})};$z.Utf8EncodeWorker=g5});var C9=k((QP,L9)=>{var M9=l0(),P9=A0();function f5(Q){M9.call(this,"ConvertWorker to "+Q),this.destType=Q}P9.inherits(f5,M9);f5.prototype.processChunk=function(Q){this.push({data:P9.transformTo(this.destType,Q.data),meta:Q.meta})};L9.exports=f5});var D9=k((qP,N9)=>{var I9=l6().Readable,Uz=A0();Uz.inherits(h5,I9);function h5(Q,q,$){I9.call(this,q),this._helper=Q;var X=this;Q.on("data",function(Y,U){if(!X.push(Y))X._helper.pause();if($)$(U)}).on("error",function(Y){X.emit("error",Y)}).on("end",function(){X.push(null)})}h5.prototype._read=function(){this._helper.resume()};N9.exports=h5});var _5=k(($P,R9)=>{var V1=A0(),Jz=C9(),Kz=l0(),Vz=O5(),zz=T2(),Gz=x1(),A9=null;if(zz.nodestream)try{A9=D9()}catch(Q){}function Wz(Q,q,$){switch(Q){case"blob":return V1.newBlob(V1.transformTo("arraybuffer",q),$);case"base64":return Vz.encode(q);default:return V1.transformTo(Q,q)}}function Bz(Q,q){var $,X=0,Y=null,U=0;for($=0;$<q.length;$++)U+=q[$].length;switch(Q){case"string":return q.join("");case"array":return Array.prototype.concat.apply([],q);case"uint8array":Y=new Uint8Array(U);for($=0;$<q.length;$++)Y.set(q[$],X),X+=q[$].length;return Y;case"nodebuffer":return Buffer.concat(q);default:throw Error("concat : unsupported type '"+Q+"'")}}function Zz(Q,q){return new Gz.Promise(function($,X){var Y=[],U=Q._internalType,J=Q._outputType,K=Q._mimeType;Q.on("data",function(G,V){if(Y.push(G),q)q(V)}).on("error",function(G){Y=[],X(G)}).on("end",function(){try{var G=Wz(J,Bz(U,Y),K);$(G)}catch(V){X(V)}Y=[]}).resume()})}function O9(Q,q,$){var X=q;switch(q){case"blob":case"arraybuffer":X="uint8array";break;case"base64":X="string";break}try{this._internalType=X,this._outputType=q,this._mimeType=$,V1.checkSupport(X),this._worker=Q.pipe(new Jz(X)),Q.lock()}catch(Y){this._worker=new Kz("error"),this._worker.error(Y)}}O9.prototype={accumulate:function(Q){return Zz(this,Q)},on:function(Q,q){var $=this;if(Q==="data")this._worker.on(Q,function(X){q.call($,X.data,X.meta)});else this._worker.on(Q,function(){V1.delay(q,arguments,$)});return this},resume:function(){return V1.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(Q){if(V1.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw Error(this._outputType+" is not supported by this method");return new A9(this,{objectMode:this._outputType!=="nodebuffer"},Q)}};R9.exports=O9});var b5=k((jz)=>{jz.base64=!1;jz.binary=!1;jz.dir=!1;jz.createFolders=!0;jz.date=null;jz.compression=null;jz.compressionOptions=null;jz.comment=null;jz.unixPermissions=null;jz.dosPermissions=null});var u5=k((YP,x9)=>{var X8=A0(),Y8=l0(),Az=16384;function S1(Q){Y8.call(this,"DataWorker");var q=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,Q.then(function($){if(q.dataIsReady=!0,q.data=$,q.max=$&&$.length||0,q.type=X8.getTypeOf($),!q.isPaused)q._tickAndRepeat()},function($){q.error($)})}X8.inherits(S1,Y8);S1.prototype.cleanUp=function(){Y8.prototype.cleanUp.call(this),this.data=null};S1.prototype.resume=function(){if(!Y8.prototype.resume.call(this))return!1;if(!this._tickScheduled&&this.dataIsReady)this._tickScheduled=!0,X8.delay(this._tickAndRepeat,[],this);return!0};S1.prototype._tickAndRepeat=function(){if(this._tickScheduled=!1,this.isPaused||this.isFinished)return;if(this._tick(),!this.isFinished)X8.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0};S1.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var Q=Az,q=null,$=Math.min(this.max,this.index+Q);if(this.index>=this.max)return this.end();else{switch(this.type){case"string":q=this.data.substring(this.index,$);break;case"uint8array":q=this.data.subarray(this.index,$);break;case"array":case"nodebuffer":q=this.data.slice(this.index,$);break}return this.index=$,this.push({data:q,meta:{percent:this.max?this.index/this.max*100:0}})}};x9.exports=S1});var U8=k((UP,v9)=>{var Oz=A0();function Rz(){var Q,q=[];for(var $=0;$<256;$++){Q=$;for(var X=0;X<8;X++)Q=Q&1?3988292384^Q>>>1:Q>>>1;q[$]=Q}return q}var T9=Rz();function xz(Q,q,$,X){var Y=T9,U=X+$;Q=Q^-1;for(var J=X;J<U;J++)Q=Q>>>8^Y[(Q^q[J])&255];return Q^-1}function Tz(Q,q,$,X){var Y=T9,U=X+$;Q=Q^-1;for(var J=X;J<U;J++)Q=Q>>>8^Y[(Q^q.charCodeAt(J))&255];return Q^-1}v9.exports=function(q,$){if(typeof q>"u"||!q.length)return 0;var X=Oz.getTypeOf(q)!=="string";if(X)return xz($|0,q,q.length,0);else return Tz($|0,q,q.length,0)}});var p5=k((JP,S9)=>{var E9=l0(),vz=U8(),Ez=A0();function c5(){E9.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}Ez.inherits(c5,E9);c5.prototype.processChunk=function(Q){this.streamInfo.crc32=vz(Q.data,this.streamInfo.crc32||0),this.push(Q)};S9.exports=c5});var g9=k((KP,k9)=>{var Sz=A0(),m5=l0();function d5(Q){m5.call(this,"DataLengthProbe for "+Q),this.propName=Q,this.withStreamInfo(Q,0)}Sz.inherits(d5,m5);d5.prototype.processChunk=function(Q){if(Q){var q=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=q+Q.data.length}m5.prototype.processChunk.call(this,Q)};k9.exports=d5});var J8=k((VP,h9)=>{var y9=x1(),f9=u5(),kz=p5(),l5=g9();function i5(Q,q,$,X,Y){this.compressedSize=Q,this.uncompressedSize=q,this.crc32=$,this.compression=X,this.compressedContent=Y}i5.prototype={getContentWorker:function(){var Q=new f9(y9.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new l5("data_length")),q=this;return Q.on("end",function(){if(this.streamInfo.data_length!==q.uncompressedSize)throw Error("Bug : uncompressed data size mismatch")}),Q},getCompressedWorker:function(){return new f9(y9.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}};i5.createWorkerFrom=function(Q,q,$){return Q.pipe(new kz).pipe(new l5("uncompressedSize")).pipe(q.compressWorker($)).pipe(new l5("compressedSize")).withStreamInfo("compression",q)};h9.exports=i5});var c9=k((zP,u9)=>{var gz=_5(),yz=u5(),o5=E1(),n5=J8(),_9=l0(),r5=function(Q,q,$){this.name=Q,this.dir=$.dir,this.date=$.date,this.comment=$.comment,this.unixPermissions=$.unixPermissions,this.dosPermissions=$.dosPermissions,this._data=q,this._dataBinary=$.binary,this.options={compression:$.compression,compressionOptions:$.compressionOptions}};r5.prototype={internalStream:function(Q){var q=null,$="string";try{if(!Q)throw Error("No output type specified.");$=Q.toLowerCase();var X=$==="string"||$==="text";if($==="binarystring"||$==="text")$="string";q=this._decompressWorker();var Y=!this._dataBinary;if(Y&&!X)q=q.pipe(new o5.Utf8EncodeWorker);if(!Y&&X)q=q.pipe(new o5.Utf8DecodeWorker)}catch(U){q=new _9("error"),q.error(U)}return new gz(q,$,"")},async:function(Q,q){return this.internalStream(Q).accumulate(q)},nodeStream:function(Q,q){return this.internalStream(Q||"nodebuffer").toNodejsStream(q)},_compressWorker:function(Q,q){if(this._data instanceof n5&&this._data.compression.magic===Q.magic)return this._data.getCompressedWorker();else{var $=this._decompressWorker();if(!this._dataBinary)$=$.pipe(new o5.Utf8EncodeWorker);return n5.createWorkerFrom($,Q,q)}},_decompressWorker:function(){if(this._data instanceof n5)return this._data.getContentWorker();else if(this._data instanceof _9)return this._data;else return new yz(this._data)}};var b9=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],fz=function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")};for(B6=0;B6<b9.length;B6++)r5.prototype[b9[B6]]=fz;var B6;u9.exports=r5});var v2=k((a5)=>{var uz=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function cz(Q,q){return Object.prototype.hasOwnProperty.call(Q,q)}a5.assign=function(Q){var q=Array.prototype.slice.call(arguments,1);while(q.length){var $=q.shift();if(!$)continue;if(typeof $!=="object")throw TypeError($+"must be non-object");for(var X in $)if(cz($,X))Q[X]=$[X]}return Q};a5.shrinkBuf=function(Q,q){if(Q.length===q)return Q;if(Q.subarray)return Q.subarray(0,q);return Q.length=q,Q};var pz={arraySet:function(Q,q,$,X,Y){if(q.subarray&&Q.subarray){Q.set(q.subarray($,$+X),Y);return}for(var U=0;U<X;U++)Q[Y+U]=q[$+U]},flattenChunks:function(Q){var q,$,X,Y,U,J;X=0;for(q=0,$=Q.length;q<$;q++)X+=Q[q].length;J=new Uint8Array(X),Y=0;for(q=0,$=Q.length;q<$;q++)U=Q[q],J.set(U,Y),Y+=U.length;return J}},mz={arraySet:function(Q,q,$,X,Y){for(var U=0;U<X;U++)Q[Y+U]=q[$+U]},flattenChunks:function(Q){return[].concat.apply([],Q)}};a5.setTyped=function(Q){if(Q)a5.Buf8=Uint8Array,a5.Buf16=Uint16Array,a5.Buf32=Int32Array,a5.assign(a5,pz);else a5.Buf8=Array,a5.Buf16=Array,a5.Buf32=Array,a5.assign(a5,mz)};a5.setTyped(uz)});var Wq=k((BG)=>{var lz=v2(),iz=4,m9=0,d9=1,oz=2;function g1(Q){var q=Q.length;while(--q>=0)Q[q]=0}var nz=0,a9=1,rz=2,az=3,sz=258,Y4=29,M6=256,j6=M6+1+Y4,k1=30,U4=19,s9=2*j6+1,z1=15,t5=16,tz=7,J4=256,t9=16,e9=17,Qq=18,$4=[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],K8=[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],ez=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],qq=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],QG=512,E2=Array((j6+2)*2);g1(E2);var Z6=Array(k1*2);g1(Z6);var F6=Array(QG);g1(F6);var H6=Array(sz-az+1);g1(H6);var K4=Array(Y4);g1(K4);var V8=Array(k1);g1(V8);function e5(Q,q,$,X,Y){this.static_tree=Q,this.extra_bits=q,this.extra_base=$,this.elems=X,this.max_length=Y,this.has_stree=Q&&Q.length}var $q,Xq,Yq;function Q4(Q,q){this.dyn_tree=Q,this.max_code=0,this.stat_desc=q}function Uq(Q){return Q<256?F6[Q]:F6[256+(Q>>>7)]}function w6(Q,q){Q.pending_buf[Q.pending++]=q&255,Q.pending_buf[Q.pending++]=q>>>8&255}function m0(Q,q,$){if(Q.bi_valid>t5-$)Q.bi_buf|=q<<Q.bi_valid&65535,w6(Q,Q.bi_buf),Q.bi_buf=q>>t5-Q.bi_valid,Q.bi_valid+=$-t5;else Q.bi_buf|=q<<Q.bi_valid&65535,Q.bi_valid+=$}function H2(Q,q,$){m0(Q,$[q*2],$[q*2+1])}function Jq(Q,q){var $=0;do $|=Q&1,Q>>>=1,$<<=1;while(--q>0);return $>>>1}function qG(Q){if(Q.bi_valid===16)w6(Q,Q.bi_buf),Q.bi_buf=0,Q.bi_valid=0;else if(Q.bi_valid>=8)Q.pending_buf[Q.pending++]=Q.bi_buf&255,Q.bi_buf>>=8,Q.bi_valid-=8}function $G(Q,q){var{dyn_tree:$,max_code:X}=q,Y=q.stat_desc.static_tree,U=q.stat_desc.has_stree,J=q.stat_desc.extra_bits,K=q.stat_desc.extra_base,G=q.stat_desc.max_length,V,z,w,F,Z,h,g=0;for(F=0;F<=z1;F++)Q.bl_count[F]=0;$[Q.heap[Q.heap_max]*2+1]=0;for(V=Q.heap_max+1;V<s9;V++){if(z=Q.heap[V],F=$[$[z*2+1]*2+1]+1,F>G)F=G,g++;if($[z*2+1]=F,z>X)continue;if(Q.bl_count[F]++,Z=0,z>=K)Z=J[z-K];if(h=$[z*2],Q.opt_len+=h*(F+Z),U)Q.static_len+=h*(Y[z*2+1]+Z)}if(g===0)return;do{F=G-1;while(Q.bl_count[F]===0)F--;Q.bl_count[F]--,Q.bl_count[F+1]+=2,Q.bl_count[G]--,g-=2}while(g>0);for(F=G;F!==0;F--){z=Q.bl_count[F];while(z!==0){if(w=Q.heap[--V],w>X)continue;if($[w*2+1]!==F)Q.opt_len+=(F-$[w*2+1])*$[w*2],$[w*2+1]=F;z--}}}function Kq(Q,q,$){var X=Array(z1+1),Y=0,U,J;for(U=1;U<=z1;U++)X[U]=Y=Y+$[U-1]<<1;for(J=0;J<=q;J++){var K=Q[J*2+1];if(K===0)continue;Q[J*2]=Jq(X[K]++,K)}}function XG(){var Q,q,$,X,Y,U=Array(z1+1);$=0;for(X=0;X<Y4-1;X++){K4[X]=$;for(Q=0;Q<1<<$4[X];Q++)H6[$++]=X}H6[$-1]=X,Y=0;for(X=0;X<16;X++){V8[X]=Y;for(Q=0;Q<1<<K8[X];Q++)F6[Y++]=X}Y>>=7;for(;X<k1;X++){V8[X]=Y<<7;for(Q=0;Q<1<<K8[X]-7;Q++)F6[256+Y++]=X}for(q=0;q<=z1;q++)U[q]=0;Q=0;while(Q<=143)E2[Q*2+1]=8,Q++,U[8]++;while(Q<=255)E2[Q*2+1]=9,Q++,U[9]++;while(Q<=279)E2[Q*2+1]=7,Q++,U[7]++;while(Q<=287)E2[Q*2+1]=8,Q++,U[8]++;Kq(E2,j6+1,U);for(Q=0;Q<k1;Q++)Z6[Q*2+1]=5,Z6[Q*2]=Jq(Q,5);$q=new e5(E2,$4,M6+1,j6,z1),Xq=new e5(Z6,K8,0,k1,z1),Yq=new e5([],ez,0,U4,tz)}function Vq(Q){var q;for(q=0;q<j6;q++)Q.dyn_ltree[q*2]=0;for(q=0;q<k1;q++)Q.dyn_dtree[q*2]=0;for(q=0;q<U4;q++)Q.bl_tree[q*2]=0;Q.dyn_ltree[J4*2]=1,Q.opt_len=Q.static_len=0,Q.last_lit=Q.matches=0}function zq(Q){if(Q.bi_valid>8)w6(Q,Q.bi_buf);else if(Q.bi_valid>0)Q.pending_buf[Q.pending++]=Q.bi_buf;Q.bi_buf=0,Q.bi_valid=0}function YG(Q,q,$,X){if(zq(Q),X)w6(Q,$),w6(Q,~$);lz.arraySet(Q.pending_buf,Q.window,q,$,Q.pending),Q.pending+=$}function l9(Q,q,$,X){var Y=q*2,U=$*2;return Q[Y]<Q[U]||Q[Y]===Q[U]&&X[q]<=X[$]}function q4(Q,q,$){var X=Q.heap[$],Y=$<<1;while(Y<=Q.heap_len){if(Y<Q.heap_len&&l9(q,Q.heap[Y+1],Q.heap[Y],Q.depth))Y++;if(l9(q,X,Q.heap[Y],Q.depth))break;Q.heap[$]=Q.heap[Y],$=Y,Y<<=1}Q.heap[$]=X}function i9(Q,q,$){var X,Y,U=0,J,K;if(Q.last_lit!==0)do if(X=Q.pending_buf[Q.d_buf+U*2]<<8|Q.pending_buf[Q.d_buf+U*2+1],Y=Q.pending_buf[Q.l_buf+U],U++,X===0)H2(Q,Y,q);else{if(J=H6[Y],H2(Q,J+M6+1,q),K=$4[J],K!==0)Y-=K4[J],m0(Q,Y,K);if(X--,J=Uq(X),H2(Q,J,$),K=K8[J],K!==0)X-=V8[J],m0(Q,X,K)}while(U<Q.last_lit);H2(Q,J4,q)}function X4(Q,q){var $=q.dyn_tree,X=q.stat_desc.static_tree,Y=q.stat_desc.has_stree,U=q.stat_desc.elems,J,K,G=-1,V;Q.heap_len=0,Q.heap_max=s9;for(J=0;J<U;J++)if($[J*2]!==0)Q.heap[++Q.heap_len]=G=J,Q.depth[J]=0;else $[J*2+1]=0;while(Q.heap_len<2)if(V=Q.heap[++Q.heap_len]=G<2?++G:0,$[V*2]=1,Q.depth[V]=0,Q.opt_len--,Y)Q.static_len-=X[V*2+1];q.max_code=G;for(J=Q.heap_len>>1;J>=1;J--)q4(Q,$,J);V=U;do J=Q.heap[1],Q.heap[1]=Q.heap[Q.heap_len--],q4(Q,$,1),K=Q.heap[1],Q.heap[--Q.heap_max]=J,Q.heap[--Q.heap_max]=K,$[V*2]=$[J*2]+$[K*2],Q.depth[V]=(Q.depth[J]>=Q.depth[K]?Q.depth[J]:Q.depth[K])+1,$[J*2+1]=$[K*2+1]=V,Q.heap[1]=V++,q4(Q,$,1);while(Q.heap_len>=2);Q.heap[--Q.heap_max]=Q.heap[1],$G(Q,q),Kq($,G,Q.bl_count)}function o9(Q,q,$){var X,Y=-1,U,J=q[1],K=0,G=7,V=4;if(J===0)G=138,V=3;q[($+1)*2+1]=65535;for(X=0;X<=$;X++){if(U=J,J=q[(X+1)*2+1],++K<G&&U===J)continue;else if(K<V)Q.bl_tree[U*2]+=K;else if(U!==0){if(U!==Y)Q.bl_tree[U*2]++;Q.bl_tree[t9*2]++}else if(K<=10)Q.bl_tree[e9*2]++;else Q.bl_tree[Qq*2]++;if(K=0,Y=U,J===0)G=138,V=3;else if(U===J)G=6,V=3;else G=7,V=4}}function n9(Q,q,$){var X,Y=-1,U,J=q[1],K=0,G=7,V=4;if(J===0)G=138,V=3;for(X=0;X<=$;X++){if(U=J,J=q[(X+1)*2+1],++K<G&&U===J)continue;else if(K<V)do H2(Q,U,Q.bl_tree);while(--K!==0);else if(U!==0){if(U!==Y)H2(Q,U,Q.bl_tree),K--;H2(Q,t9,Q.bl_tree),m0(Q,K-3,2)}else if(K<=10)H2(Q,e9,Q.bl_tree),m0(Q,K-3,3);else H2(Q,Qq,Q.bl_tree),m0(Q,K-11,7);if(K=0,Y=U,J===0)G=138,V=3;else if(U===J)G=6,V=3;else G=7,V=4}}function UG(Q){var q;o9(Q,Q.dyn_ltree,Q.l_desc.max_code),o9(Q,Q.dyn_dtree,Q.d_desc.max_code),X4(Q,Q.bl_desc);for(q=U4-1;q>=3;q--)if(Q.bl_tree[qq[q]*2+1]!==0)break;return Q.opt_len+=3*(q+1)+5+5+4,q}function JG(Q,q,$,X){var Y;m0(Q,q-257,5),m0(Q,$-1,5),m0(Q,X-4,4);for(Y=0;Y<X;Y++)m0(Q,Q.bl_tree[qq[Y]*2+1],3);n9(Q,Q.dyn_ltree,q-1),n9(Q,Q.dyn_dtree,$-1)}function KG(Q){var q=4093624447,$;for($=0;$<=31;$++,q>>>=1)if(q&1&&Q.dyn_ltree[$*2]!==0)return m9;if(Q.dyn_ltree[18]!==0||Q.dyn_ltree[20]!==0||Q.dyn_ltree[26]!==0)return d9;for($=32;$<M6;$++)if(Q.dyn_ltree[$*2]!==0)return d9;return m9}var r9=!1;function VG(Q){if(!r9)XG(),r9=!0;Q.l_desc=new Q4(Q.dyn_ltree,$q),Q.d_desc=new Q4(Q.dyn_dtree,Xq),Q.bl_desc=new Q4(Q.bl_tree,Yq),Q.bi_buf=0,Q.bi_valid=0,Vq(Q)}function Gq(Q,q,$,X){m0(Q,(nz<<1)+(X?1:0),3),YG(Q,q,$,!0)}function zG(Q){m0(Q,a9<<1,3),H2(Q,J4,E2),qG(Q)}function GG(Q,q,$,X){var Y,U,J=0;if(Q.level>0){if(Q.strm.data_type===oz)Q.strm.data_type=KG(Q);if(X4(Q,Q.l_desc),X4(Q,Q.d_desc),J=UG(Q),Y=Q.opt_len+3+7>>>3,U=Q.static_len+3+7>>>3,U<=Y)Y=U}else Y=U=$+5;if($+4<=Y&&q!==-1)Gq(Q,q,$,X);else if(Q.strategy===iz||U===Y)m0(Q,(a9<<1)+(X?1:0),3),i9(Q,E2,Z6);else m0(Q,(rz<<1)+(X?1:0),3),JG(Q,Q.l_desc.max_code+1,Q.d_desc.max_code+1,J+1),i9(Q,Q.dyn_ltree,Q.dyn_dtree);if(Vq(Q),X)zq(Q)}function WG(Q,q,$){if(Q.pending_buf[Q.d_buf+Q.last_lit*2]=q>>>8&255,Q.pending_buf[Q.d_buf+Q.last_lit*2+1]=q&255,Q.pending_buf[Q.l_buf+Q.last_lit]=$&255,Q.last_lit++,q===0)Q.dyn_ltree[$*2]++;else Q.matches++,q--,Q.dyn_ltree[(H6[$]+M6+1)*2]++,Q.dyn_dtree[Uq(q)*2]++;return Q.last_lit===Q.lit_bufsize-1}BG._tr_init=VG;BG._tr_stored_block=Gq;BG._tr_flush_block=GG;BG._tr_tally=WG;BG._tr_align=zG});var V4=k((BP,Bq)=>{function MG(Q,q,$,X){var Y=Q&65535|0,U=Q>>>16&65535|0,J=0;while($!==0){J=$>2000?2000:$,$-=J;do Y=Y+q[X++]|0,U=U+Y|0;while(--J);Y%=65521,U%=65521}return Y|U<<16|0}Bq.exports=MG});var z4=k((ZP,Zq)=>{function PG(){var Q,q=[];for(var $=0;$<256;$++){Q=$;for(var X=0;X<8;X++)Q=Q&1?3988292384^Q>>>1:Q>>>1;q[$]=Q}return q}var LG=PG();function CG(Q,q,$,X){var Y=LG,U=X+$;Q^=-1;for(var J=X;J<U;J++)Q=Q>>>8^Y[(Q^q[J])&255];return Q^-1}Zq.exports=CG});var z8=k((jP,jq)=>{jq.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}});var Nq=k((QW)=>{var _0=v2(),t0=Wq(),Mq=V4(),p2=z4(),IG=z8(),Z1=0,NG=1,DG=3,o2=4,Fq=5,M2=0,Hq=1,e0=-2,AG=-3,G4=-5,OG=-1,RG=1,G8=2,xG=3,TG=4,vG=0,EG=2,j8=8,SG=9,kG=15,gG=8,yG=29,fG=256,B4=fG+1+yG,hG=30,_G=19,bG=2*B4+1,uG=15,H0=3,l2=258,U2=l2+H0+1,cG=32,F8=42,Z4=69,W8=73,B8=91,Z8=103,G1=113,L6=666,T0=1,C6=2,W1=3,h1=4,pG=3;function i2(Q,q){return Q.msg=IG[q],q}function wq(Q){return(Q<<1)-(Q>4?9:0)}function d2(Q){var q=Q.length;while(--q>=0)Q[q]=0}function m2(Q){var q=Q.state,$=q.pending;if($>Q.avail_out)$=Q.avail_out;if($===0)return;if(_0.arraySet(Q.output,q.pending_buf,q.pending_out,$,Q.next_out),Q.next_out+=$,q.pending_out+=$,Q.total_out+=$,Q.avail_out-=$,q.pending-=$,q.pending===0)q.pending_out=0}function E0(Q,q){t0._tr_flush_block(Q,Q.block_start>=0?Q.block_start:-1,Q.strstart-Q.block_start,q),Q.block_start=Q.strstart,m2(Q.strm)}function w0(Q,q){Q.pending_buf[Q.pending++]=q}function P6(Q,q){Q.pending_buf[Q.pending++]=q>>>8&255,Q.pending_buf[Q.pending++]=q&255}function mG(Q,q,$,X){var Y=Q.avail_in;if(Y>X)Y=X;if(Y===0)return 0;if(Q.avail_in-=Y,_0.arraySet(q,Q.input,Q.next_in,Y,$),Q.state.wrap===1)Q.adler=Mq(Q.adler,q,Y,$);else if(Q.state.wrap===2)Q.adler=p2(Q.adler,q,Y,$);return Q.next_in+=Y,Q.total_in+=Y,Y}function Pq(Q,q){var{max_chain_length:$,strstart:X}=Q,Y,U,J=Q.prev_length,K=Q.nice_match,G=Q.strstart>Q.w_size-U2?Q.strstart-(Q.w_size-U2):0,V=Q.window,z=Q.w_mask,w=Q.prev,F=Q.strstart+l2,Z=V[X+J-1],h=V[X+J];if(Q.prev_length>=Q.good_match)$>>=2;if(K>Q.lookahead)K=Q.lookahead;do{if(Y=q,V[Y+J]!==h||V[Y+J-1]!==Z||V[Y]!==V[X]||V[++Y]!==V[X+1])continue;X+=2,Y++;do;while(V[++X]===V[++Y]&&V[++X]===V[++Y]&&V[++X]===V[++Y]&&V[++X]===V[++Y]&&V[++X]===V[++Y]&&V[++X]===V[++Y]&&V[++X]===V[++Y]&&V[++X]===V[++Y]&&X<F);if(U=l2-(F-X),X=F-l2,U>J){if(Q.match_start=q,J=U,U>=K)break;Z=V[X+J-1],h=V[X+J]}}while((q=w[q&z])>G&&--$!==0);if(J<=Q.lookahead)return J;return Q.lookahead}function B1(Q){var q=Q.w_size,$,X,Y,U,J;do{if(U=Q.window_size-Q.lookahead-Q.strstart,Q.strstart>=q+(q-U2)){_0.arraySet(Q.window,Q.window,q,q,0),Q.match_start-=q,Q.strstart-=q,Q.block_start-=q,X=Q.hash_size,$=X;do Y=Q.head[--$],Q.head[$]=Y>=q?Y-q:0;while(--X);X=q,$=X;do Y=Q.prev[--$],Q.prev[$]=Y>=q?Y-q:0;while(--X);U+=q}if(Q.strm.avail_in===0)break;if(X=mG(Q.strm,Q.window,Q.strstart+Q.lookahead,U),Q.lookahead+=X,Q.lookahead+Q.insert>=H0){J=Q.strstart-Q.insert,Q.ins_h=Q.window[J],Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[J+1])&Q.hash_mask;while(Q.insert)if(Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[J+H0-1])&Q.hash_mask,Q.prev[J&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=J,J++,Q.insert--,Q.lookahead+Q.insert<H0)break}}while(Q.lookahead<U2&&Q.strm.avail_in!==0)}function dG(Q,q){var $=65535;if($>Q.pending_buf_size-5)$=Q.pending_buf_size-5;for(;;){if(Q.lookahead<=1){if(B1(Q),Q.lookahead===0&&q===Z1)return T0;if(Q.lookahead===0)break}Q.strstart+=Q.lookahead,Q.lookahead=0;var X=Q.block_start+$;if(Q.strstart===0||Q.strstart>=X){if(Q.lookahead=Q.strstart-X,Q.strstart=X,E0(Q,!1),Q.strm.avail_out===0)return T0}if(Q.strstart-Q.block_start>=Q.w_size-U2){if(E0(Q,!1),Q.strm.avail_out===0)return T0}}if(Q.insert=0,q===o2){if(E0(Q,!0),Q.strm.avail_out===0)return W1;return h1}if(Q.strstart>Q.block_start){if(E0(Q,!1),Q.strm.avail_out===0)return T0}return T0}function W4(Q,q){var $,X;for(;;){if(Q.lookahead<U2){if(B1(Q),Q.lookahead<U2&&q===Z1)return T0;if(Q.lookahead===0)break}if($=0,Q.lookahead>=H0)Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+H0-1])&Q.hash_mask,$=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart;if($!==0&&Q.strstart-$<=Q.w_size-U2)Q.match_length=Pq(Q,$);if(Q.match_length>=H0)if(X=t0._tr_tally(Q,Q.strstart-Q.match_start,Q.match_length-H0),Q.lookahead-=Q.match_length,Q.match_length<=Q.max_lazy_match&&Q.lookahead>=H0){Q.match_length--;do Q.strstart++,Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+H0-1])&Q.hash_mask,$=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart;while(--Q.match_length!==0);Q.strstart++}else Q.strstart+=Q.match_length,Q.match_length=0,Q.ins_h=Q.window[Q.strstart],Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+1])&Q.hash_mask;else X=t0._tr_tally(Q,0,Q.window[Q.strstart]),Q.lookahead--,Q.strstart++;if(X){if(E0(Q,!1),Q.strm.avail_out===0)return T0}}if(Q.insert=Q.strstart<H0-1?Q.strstart:H0-1,q===o2){if(E0(Q,!0),Q.strm.avail_out===0)return W1;return h1}if(Q.last_lit){if(E0(Q,!1),Q.strm.avail_out===0)return T0}return C6}function y1(Q,q){var $,X,Y;for(;;){if(Q.lookahead<U2){if(B1(Q),Q.lookahead<U2&&q===Z1)return T0;if(Q.lookahead===0)break}if($=0,Q.lookahead>=H0)Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+H0-1])&Q.hash_mask,$=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart;if(Q.prev_length=Q.match_length,Q.prev_match=Q.match_start,Q.match_length=H0-1,$!==0&&Q.prev_length<Q.max_lazy_match&&Q.strstart-$<=Q.w_size-U2){if(Q.match_length=Pq(Q,$),Q.match_length<=5&&(Q.strategy===RG||Q.match_length===H0&&Q.strstart-Q.match_start>4096))Q.match_length=H0-1}if(Q.prev_length>=H0&&Q.match_length<=Q.prev_length){Y=Q.strstart+Q.lookahead-H0,X=t0._tr_tally(Q,Q.strstart-1-Q.prev_match,Q.prev_length-H0),Q.lookahead-=Q.prev_length-1,Q.prev_length-=2;do if(++Q.strstart<=Y)Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+H0-1])&Q.hash_mask,$=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart;while(--Q.prev_length!==0);if(Q.match_available=0,Q.match_length=H0-1,Q.strstart++,X){if(E0(Q,!1),Q.strm.avail_out===0)return T0}}else if(Q.match_available){if(X=t0._tr_tally(Q,0,Q.window[Q.strstart-1]),X)E0(Q,!1);if(Q.strstart++,Q.lookahead--,Q.strm.avail_out===0)return T0}else Q.match_available=1,Q.strstart++,Q.lookahead--}if(Q.match_available)X=t0._tr_tally(Q,0,Q.window[Q.strstart-1]),Q.match_available=0;if(Q.insert=Q.strstart<H0-1?Q.strstart:H0-1,q===o2){if(E0(Q,!0),Q.strm.avail_out===0)return W1;return h1}if(Q.last_lit){if(E0(Q,!1),Q.strm.avail_out===0)return T0}return C6}function lG(Q,q){var $,X,Y,U,J=Q.window;for(;;){if(Q.lookahead<=l2){if(B1(Q),Q.lookahead<=l2&&q===Z1)return T0;if(Q.lookahead===0)break}if(Q.match_length=0,Q.lookahead>=H0&&Q.strstart>0){if(Y=Q.strstart-1,X=J[Y],X===J[++Y]&&X===J[++Y]&&X===J[++Y]){U=Q.strstart+l2;do;while(X===J[++Y]&&X===J[++Y]&&X===J[++Y]&&X===J[++Y]&&X===J[++Y]&&X===J[++Y]&&X===J[++Y]&&X===J[++Y]&&Y<U);if(Q.match_length=l2-(U-Y),Q.match_length>Q.lookahead)Q.match_length=Q.lookahead}}if(Q.match_length>=H0)$=t0._tr_tally(Q,1,Q.match_length-H0),Q.lookahead-=Q.match_length,Q.strstart+=Q.match_length,Q.match_length=0;else $=t0._tr_tally(Q,0,Q.window[Q.strstart]),Q.lookahead--,Q.strstart++;if($){if(E0(Q,!1),Q.strm.avail_out===0)return T0}}if(Q.insert=0,q===o2){if(E0(Q,!0),Q.strm.avail_out===0)return W1;return h1}if(Q.last_lit){if(E0(Q,!1),Q.strm.avail_out===0)return T0}return C6}function iG(Q,q){var $;for(;;){if(Q.lookahead===0){if(B1(Q),Q.lookahead===0){if(q===Z1)return T0;break}}if(Q.match_length=0,$=t0._tr_tally(Q,0,Q.window[Q.strstart]),Q.lookahead--,Q.strstart++,$){if(E0(Q,!1),Q.strm.avail_out===0)return T0}}if(Q.insert=0,q===o2){if(E0(Q,!0),Q.strm.avail_out===0)return W1;return h1}if(Q.last_lit){if(E0(Q,!1),Q.strm.avail_out===0)return T0}return C6}function w2(Q,q,$,X,Y){this.good_length=Q,this.max_lazy=q,this.nice_length=$,this.max_chain=X,this.func=Y}var f1;f1=[new w2(0,0,0,0,dG),new w2(4,4,8,4,W4),new w2(4,5,16,8,W4),new w2(4,6,32,32,W4),new w2(4,4,16,16,y1),new w2(8,16,32,32,y1),new w2(8,16,128,128,y1),new w2(8,32,128,256,y1),new w2(32,128,258,1024,y1),new w2(32,258,258,4096,y1)];function oG(Q){Q.window_size=2*Q.w_size,d2(Q.head),Q.max_lazy_match=f1[Q.level].max_lazy,Q.good_match=f1[Q.level].good_length,Q.nice_match=f1[Q.level].nice_length,Q.max_chain_length=f1[Q.level].max_chain,Q.strstart=0,Q.block_start=0,Q.lookahead=0,Q.insert=0,Q.match_length=Q.prev_length=H0-1,Q.match_available=0,Q.ins_h=0}function nG(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=j8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new _0.Buf16(bG*2),this.dyn_dtree=new _0.Buf16((2*hG+1)*2),this.bl_tree=new _0.Buf16((2*_G+1)*2),d2(this.dyn_ltree),d2(this.dyn_dtree),d2(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new _0.Buf16(uG+1),this.heap=new _0.Buf16(2*B4+1),d2(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new _0.Buf16(2*B4+1),d2(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Lq(Q){var q;if(!Q||!Q.state)return i2(Q,e0);if(Q.total_in=Q.total_out=0,Q.data_type=EG,q=Q.state,q.pending=0,q.pending_out=0,q.wrap<0)q.wrap=-q.wrap;return q.status=q.wrap?F8:G1,Q.adler=q.wrap===2?0:1,q.last_flush=Z1,t0._tr_init(q),M2}function Cq(Q){var q=Lq(Q);if(q===M2)oG(Q.state);return q}function rG(Q,q){if(!Q||!Q.state)return e0;if(Q.state.wrap!==2)return e0;return Q.state.gzhead=q,M2}function Iq(Q,q,$,X,Y,U){if(!Q)return e0;var J=1;if(q===OG)q=6;if(X<0)J=0,X=-X;else if(X>15)J=2,X-=16;if(Y<1||Y>SG||$!==j8||X<8||X>15||q<0||q>9||U<0||U>TG)return i2(Q,e0);if(X===8)X=9;var K=new nG;return Q.state=K,K.strm=Q,K.wrap=J,K.gzhead=null,K.w_bits=X,K.w_size=1<<K.w_bits,K.w_mask=K.w_size-1,K.hash_bits=Y+7,K.hash_size=1<<K.hash_bits,K.hash_mask=K.hash_size-1,K.hash_shift=~~((K.hash_bits+H0-1)/H0),K.window=new _0.Buf8(K.w_size*2),K.head=new _0.Buf16(K.hash_size),K.prev=new _0.Buf16(K.w_size),K.lit_bufsize=1<<Y+6,K.pending_buf_size=K.lit_bufsize*4,K.pending_buf=new _0.Buf8(K.pending_buf_size),K.d_buf=1*K.lit_bufsize,K.l_buf=3*K.lit_bufsize,K.level=q,K.strategy=U,K.method=$,Cq(Q)}function aG(Q,q){return Iq(Q,q,j8,kG,gG,vG)}function sG(Q,q){var $,X,Y,U;if(!Q||!Q.state||q>Fq||q<0)return Q?i2(Q,e0):e0;if(X=Q.state,!Q.output||!Q.input&&Q.avail_in!==0||X.status===L6&&q!==o2)return i2(Q,Q.avail_out===0?G4:e0);if(X.strm=Q,$=X.last_flush,X.last_flush=q,X.status===F8)if(X.wrap===2)if(Q.adler=0,w0(X,31),w0(X,139),w0(X,8),!X.gzhead)w0(X,0),w0(X,0),w0(X,0),w0(X,0),w0(X,0),w0(X,X.level===9?2:X.strategy>=G8||X.level<2?4:0),w0(X,pG),X.status=G1;else{if(w0(X,(X.gzhead.text?1:0)+(X.gzhead.hcrc?2:0)+(!X.gzhead.extra?0:4)+(!X.gzhead.name?0:8)+(!X.gzhead.comment?0:16)),w0(X,X.gzhead.time&255),w0(X,X.gzhead.time>>8&255),w0(X,X.gzhead.time>>16&255),w0(X,X.gzhead.time>>24&255),w0(X,X.level===9?2:X.strategy>=G8||X.level<2?4:0),w0(X,X.gzhead.os&255),X.gzhead.extra&&X.gzhead.extra.length)w0(X,X.gzhead.extra.length&255),w0(X,X.gzhead.extra.length>>8&255);if(X.gzhead.hcrc)Q.adler=p2(Q.adler,X.pending_buf,X.pending,0);X.gzindex=0,X.status=Z4}else{var J=j8+(X.w_bits-8<<4)<<8,K=-1;if(X.strategy>=G8||X.level<2)K=0;else if(X.level<6)K=1;else if(X.level===6)K=2;else K=3;if(J|=K<<6,X.strstart!==0)J|=cG;if(J+=31-J%31,X.status=G1,P6(X,J),X.strstart!==0)P6(X,Q.adler>>>16),P6(X,Q.adler&65535);Q.adler=1}if(X.status===Z4)if(X.gzhead.extra){Y=X.pending;while(X.gzindex<(X.gzhead.extra.length&65535)){if(X.pending===X.pending_buf_size){if(X.gzhead.hcrc&&X.pending>Y)Q.adler=p2(Q.adler,X.pending_buf,X.pending-Y,Y);if(m2(Q),Y=X.pending,X.pending===X.pending_buf_size)break}w0(X,X.gzhead.extra[X.gzindex]&255),X.gzindex++}if(X.gzhead.hcrc&&X.pending>Y)Q.adler=p2(Q.adler,X.pending_buf,X.pending-Y,Y);if(X.gzindex===X.gzhead.extra.length)X.gzindex=0,X.status=W8}else X.status=W8;if(X.status===W8)if(X.gzhead.name){Y=X.pending;do{if(X.pending===X.pending_buf_size){if(X.gzhead.hcrc&&X.pending>Y)Q.adler=p2(Q.adler,X.pending_buf,X.pending-Y,Y);if(m2(Q),Y=X.pending,X.pending===X.pending_buf_size){U=1;break}}if(X.gzindex<X.gzhead.name.length)U=X.gzhead.name.charCodeAt(X.gzindex++)&255;else U=0;w0(X,U)}while(U!==0);if(X.gzhead.hcrc&&X.pending>Y)Q.adler=p2(Q.adler,X.pending_buf,X.pending-Y,Y);if(U===0)X.gzindex=0,X.status=B8}else X.status=B8;if(X.status===B8)if(X.gzhead.comment){Y=X.pending;do{if(X.pending===X.pending_buf_size){if(X.gzhead.hcrc&&X.pending>Y)Q.adler=p2(Q.adler,X.pending_buf,X.pending-Y,Y);if(m2(Q),Y=X.pending,X.pending===X.pending_buf_size){U=1;break}}if(X.gzindex<X.gzhead.comment.length)U=X.gzhead.comment.charCodeAt(X.gzindex++)&255;else U=0;w0(X,U)}while(U!==0);if(X.gzhead.hcrc&&X.pending>Y)Q.adler=p2(Q.adler,X.pending_buf,X.pending-Y,Y);if(U===0)X.status=Z8}else X.status=Z8;if(X.status===Z8)if(X.gzhead.hcrc){if(X.pending+2>X.pending_buf_size)m2(Q);if(X.pending+2<=X.pending_buf_size)w0(X,Q.adler&255),w0(X,Q.adler>>8&255),Q.adler=0,X.status=G1}else X.status=G1;if(X.pending!==0){if(m2(Q),Q.avail_out===0)return X.last_flush=-1,M2}else if(Q.avail_in===0&&wq(q)<=wq($)&&q!==o2)return i2(Q,G4);if(X.status===L6&&Q.avail_in!==0)return i2(Q,G4);if(Q.avail_in!==0||X.lookahead!==0||q!==Z1&&X.status!==L6){var G=X.strategy===G8?iG(X,q):X.strategy===xG?lG(X,q):f1[X.level].func(X,q);if(G===W1||G===h1)X.status=L6;if(G===T0||G===W1){if(Q.avail_out===0)X.last_flush=-1;return M2}if(G===C6){if(q===NG)t0._tr_align(X);else if(q!==Fq){if(t0._tr_stored_block(X,0,0,!1),q===DG){if(d2(X.head),X.lookahead===0)X.strstart=0,X.block_start=0,X.insert=0}}if(m2(Q),Q.avail_out===0)return X.last_flush=-1,M2}}if(q!==o2)return M2;if(X.wrap<=0)return Hq;if(X.wrap===2)w0(X,Q.adler&255),w0(X,Q.adler>>8&255),w0(X,Q.adler>>16&255),w0(X,Q.adler>>24&255),w0(X,Q.total_in&255),w0(X,Q.total_in>>8&255),w0(X,Q.total_in>>16&255),w0(X,Q.total_in>>24&255);else P6(X,Q.adler>>>16),P6(X,Q.adler&65535);if(m2(Q),X.wrap>0)X.wrap=-X.wrap;return X.pending!==0?M2:Hq}function tG(Q){var q;if(!Q||!Q.state)return e0;if(q=Q.state.status,q!==F8&&q!==Z4&&q!==W8&&q!==B8&&q!==Z8&&q!==G1&&q!==L6)return i2(Q,e0);return Q.state=null,q===G1?i2(Q,AG):M2}function eG(Q,q){var $=q.length,X,Y,U,J,K,G,V,z;if(!Q||!Q.state)return e0;if(X=Q.state,J=X.wrap,J===2||J===1&&X.status!==F8||X.lookahead)return e0;if(J===1)Q.adler=Mq(Q.adler,q,$,0);if(X.wrap=0,$>=X.w_size){if(J===0)d2(X.head),X.strstart=0,X.block_start=0,X.insert=0;z=new _0.Buf8(X.w_size),_0.arraySet(z,q,$-X.w_size,X.w_size,0),q=z,$=X.w_size}K=Q.avail_in,G=Q.next_in,V=Q.input,Q.avail_in=$,Q.next_in=0,Q.input=q,B1(X);while(X.lookahead>=H0){Y=X.strstart,U=X.lookahead-(H0-1);do X.ins_h=(X.ins_h<<X.hash_shift^X.window[Y+H0-1])&X.hash_mask,X.prev[Y&X.w_mask]=X.head[X.ins_h],X.head[X.ins_h]=Y,Y++;while(--U);X.strstart=Y,X.lookahead=H0-1,B1(X)}return X.strstart+=X.lookahead,X.block_start=X.strstart,X.insert=X.lookahead,X.lookahead=0,X.match_length=X.prev_length=H0-1,X.match_available=0,Q.next_in=G,Q.input=V,Q.avail_in=K,X.wrap=J,M2}QW.deflateInit=aG;QW.deflateInit2=Iq;QW.deflateReset=Cq;QW.deflateResetKeep=Lq;QW.deflateSetHeader=rG;QW.deflate=sG;QW.deflateEnd=tG;QW.deflateSetDictionary=eG;QW.deflateInfo="pako deflate (from Nodeca project)"});var j4=k((GW)=>{var H8=v2(),Dq=!0,Aq=!0;try{String.fromCharCode.apply(null,[0])}catch(Q){Dq=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(Q){Aq=!1}var I6=new H8.Buf8(256);for(P2=0;P2<256;P2++)I6[P2]=P2>=252?6:P2>=248?5:P2>=240?4:P2>=224?3:P2>=192?2:1;var P2;I6[254]=I6[254]=1;GW.string2buf=function(Q){var q,$,X,Y,U,J=Q.length,K=0;for(Y=0;Y<J;Y++){if($=Q.charCodeAt(Y),($&64512)===55296&&Y+1<J){if(X=Q.charCodeAt(Y+1),(X&64512)===56320)$=65536+($-55296<<10)+(X-56320),Y++}K+=$<128?1:$<2048?2:$<65536?3:4}q=new H8.Buf8(K);for(U=0,Y=0;U<K;Y++){if($=Q.charCodeAt(Y),($&64512)===55296&&Y+1<J){if(X=Q.charCodeAt(Y+1),(X&64512)===56320)$=65536+($-55296<<10)+(X-56320),Y++}if($<128)q[U++]=$;else if($<2048)q[U++]=192|$>>>6,q[U++]=128|$&63;else if($<65536)q[U++]=224|$>>>12,q[U++]=128|$>>>6&63,q[U++]=128|$&63;else q[U++]=240|$>>>18,q[U++]=128|$>>>12&63,q[U++]=128|$>>>6&63,q[U++]=128|$&63}return q};function Oq(Q,q){if(q<65534){if(Q.subarray&&Aq||!Q.subarray&&Dq)return String.fromCharCode.apply(null,H8.shrinkBuf(Q,q))}var $="";for(var X=0;X<q;X++)$+=String.fromCharCode(Q[X]);return $}GW.buf2binstring=function(Q){return Oq(Q,Q.length)};GW.binstring2buf=function(Q){var q=new H8.Buf8(Q.length);for(var $=0,X=q.length;$<X;$++)q[$]=Q.charCodeAt($);return q};GW.buf2string=function(Q,q){var $,X,Y,U,J=q||Q.length,K=Array(J*2);for(X=0,$=0;$<J;){if(Y=Q[$++],Y<128){K[X++]=Y;continue}if(U=I6[Y],U>4){K[X++]=65533,$+=U-1;continue}Y&=U===2?31:U===3?15:7;while(U>1&&$<J)Y=Y<<6|Q[$++]&63,U--;if(U>1){K[X++]=65533;continue}if(Y<65536)K[X++]=Y;else Y-=65536,K[X++]=55296|Y>>10&1023,K[X++]=56320|Y&1023}return Oq(K,X)};GW.utf8border=function(Q,q){var $;if(q=q||Q.length,q>Q.length)q=Q.length;$=q-1;while($>=0&&(Q[$]&192)===128)$--;if($<0)return q;if($===0)return q;return $+I6[Q[$]]>q?$:q}});var F4=k((wP,Rq)=>{function HW(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}Rq.exports=HW});var Eq=k((DW)=>{var N6=Nq(),D6=v2(),w4=j4(),M4=z8(),wW=F4(),vq=Object.prototype.toString,MW=0,H4=4,_1=0,xq=1,Tq=2,PW=-1,LW=0,CW=8;function j1(Q){if(!(this instanceof j1))return new j1(Q);this.options=D6.assign({level:PW,method:CW,chunkSize:16384,windowBits:15,memLevel:8,strategy:LW,to:""},Q||{});var q=this.options;if(q.raw&&q.windowBits>0)q.windowBits=-q.windowBits;else if(q.gzip&&q.windowBits>0&&q.windowBits<16)q.windowBits+=16;this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new wW,this.strm.avail_out=0;var $=N6.deflateInit2(this.strm,q.level,q.method,q.windowBits,q.memLevel,q.strategy);if($!==_1)throw Error(M4[$]);if(q.header)N6.deflateSetHeader(this.strm,q.header);if(q.dictionary){var X;if(typeof q.dictionary==="string")X=w4.string2buf(q.dictionary);else if(vq.call(q.dictionary)==="[object ArrayBuffer]")X=new Uint8Array(q.dictionary);else X=q.dictionary;if($=N6.deflateSetDictionary(this.strm,X),$!==_1)throw Error(M4[$]);this._dict_set=!0}}j1.prototype.push=function(Q,q){var $=this.strm,X=this.options.chunkSize,Y,U;if(this.ended)return!1;if(U=q===~~q?q:q===!0?H4:MW,typeof Q==="string")$.input=w4.string2buf(Q);else if(vq.call(Q)==="[object ArrayBuffer]")$.input=new Uint8Array(Q);else $.input=Q;$.next_in=0,$.avail_in=$.input.length;do{if($.avail_out===0)$.output=new D6.Buf8(X),$.next_out=0,$.avail_out=X;if(Y=N6.deflate($,U),Y!==xq&&Y!==_1)return this.onEnd(Y),this.ended=!0,!1;if($.avail_out===0||$.avail_in===0&&(U===H4||U===Tq))if(this.options.to==="string")this.onData(w4.buf2binstring(D6.shrinkBuf($.output,$.next_out)));else this.onData(D6.shrinkBuf($.output,$.next_out))}while(($.avail_in>0||$.avail_out===0)&&Y!==xq);if(U===H4)return Y=N6.deflateEnd(this.strm),this.onEnd(Y),this.ended=!0,Y===_1;if(U===Tq)return this.onEnd(_1),$.avail_out=0,!0;return!0};j1.prototype.onData=function(Q){this.chunks.push(Q)};j1.prototype.onEnd=function(Q){if(Q===_1)if(this.options.to==="string")this.result=this.chunks.join("");else this.result=D6.flattenChunks(this.chunks);this.chunks=[],this.err=Q,this.msg=this.strm.msg};function P4(Q,q){var $=new j1(q);if($.push(Q,!0),$.err)throw $.msg||M4[$.err];return $.result}function IW(Q,q){return q=q||{},q.raw=!0,P4(Q,q)}function NW(Q,q){return q=q||{},q.gzip=!0,P4(Q,q)}DW.Deflate=j1;DW.deflate=P4;DW.deflateRaw=IW;DW.gzip=NW});var kq=k((PP,Sq)=>{var w8=30,TW=12;Sq.exports=function(q,$){var X,Y,U,J,K,G,V,z,w,F,Z,h,g,C,N,W,H,M,I,f,E,d,R,x,D;X=q.state,Y=q.next_in,x=q.input,U=Y+(q.avail_in-5),J=q.next_out,D=q.output,K=J-($-q.avail_out),G=J+(q.avail_out-257),V=X.dmax,z=X.wsize,w=X.whave,F=X.wnext,Z=X.window,h=X.hold,g=X.bits,C=X.lencode,N=X.distcode,W=(1<<X.lenbits)-1,H=(1<<X.distbits)-1;Q:do{if(g<15)h+=x[Y++]<<g,g+=8,h+=x[Y++]<<g,g+=8;M=C[h&W];q:for(;;){if(I=M>>>24,h>>>=I,g-=I,I=M>>>16&255,I===0)D[J++]=M&65535;else if(I&16){if(f=M&65535,I&=15,I){if(g<I)h+=x[Y++]<<g,g+=8;f+=h&(1<<I)-1,h>>>=I,g-=I}if(g<15)h+=x[Y++]<<g,g+=8,h+=x[Y++]<<g,g+=8;M=N[h&H];$:for(;;){if(I=M>>>24,h>>>=I,g-=I,I=M>>>16&255,I&16){if(E=M&65535,I&=15,g<I){if(h+=x[Y++]<<g,g+=8,g<I)h+=x[Y++]<<g,g+=8}if(E+=h&(1<<I)-1,E>V){q.msg="invalid distance too far back",X.mode=w8;break Q}if(h>>>=I,g-=I,I=J-K,E>I){if(I=E-I,I>w){if(X.sane){q.msg="invalid distance too far back",X.mode=w8;break Q}}if(d=0,R=Z,F===0){if(d+=z-I,I<f){f-=I;do D[J++]=Z[d++];while(--I);d=J-E,R=D}}else if(F<I){if(d+=z+F-I,I-=F,I<f){f-=I;do D[J++]=Z[d++];while(--I);if(d=0,F<f){I=F,f-=I;do D[J++]=Z[d++];while(--I);d=J-E,R=D}}}else if(d+=F-I,I<f){f-=I;do D[J++]=Z[d++];while(--I);d=J-E,R=D}while(f>2)D[J++]=R[d++],D[J++]=R[d++],D[J++]=R[d++],f-=3;if(f){if(D[J++]=R[d++],f>1)D[J++]=R[d++]}}else{d=J-E;do D[J++]=D[d++],D[J++]=D[d++],D[J++]=D[d++],f-=3;while(f>2);if(f){if(D[J++]=D[d++],f>1)D[J++]=D[d++]}}}else if((I&64)===0){M=N[(M&65535)+(h&(1<<I)-1)];continue $}else{q.msg="invalid distance code",X.mode=w8;break Q}break}}else if((I&64)===0){M=C[(M&65535)+(h&(1<<I)-1)];continue q}else if(I&32){X.mode=TW;break Q}else{q.msg="invalid literal/length code",X.mode=w8;break Q}break}}while(Y<U&&J<G);f=g>>3,Y-=f,g-=f<<3,h&=(1<<g)-1,q.next_in=Y,q.next_out=J,q.avail_in=Y<U?5+(U-Y):5-(Y-U),q.avail_out=J<G?257+(G-J):257-(J-G),X.hold=h,X.bits=g;return}});var uq=k((LP,bq)=>{var gq=v2(),b1=15,yq=852,fq=592,hq=0,L4=1,_q=2,vW=[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,0,0],EW=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],SW=[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,0,0],kW=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];bq.exports=function(q,$,X,Y,U,J,K,G){var V=G.bits,z=0,w=0,F=0,Z=0,h=0,g=0,C=0,N=0,W=0,H=0,M,I,f,E,d,R=null,x=0,D,L=new gq.Buf16(b1+1),S=new gq.Buf16(b1+1),y=null,v=0,a,Q0,Y0;for(z=0;z<=b1;z++)L[z]=0;for(w=0;w<Y;w++)L[$[X+w]]++;h=V;for(Z=b1;Z>=1;Z--)if(L[Z]!==0)break;if(h>Z)h=Z;if(Z===0)return U[J++]=20971520,U[J++]=20971520,G.bits=1,0;for(F=1;F<Z;F++)if(L[F]!==0)break;if(h<F)h=F;N=1;for(z=1;z<=b1;z++)if(N<<=1,N-=L[z],N<0)return-1;if(N>0&&(q===hq||Z!==1))return-1;S[1]=0;for(z=1;z<b1;z++)S[z+1]=S[z]+L[z];for(w=0;w<Y;w++)if($[X+w]!==0)K[S[$[X+w]]++]=w;if(q===hq)R=y=K,D=19;else if(q===L4)R=vW,x-=257,y=EW,v-=257,D=256;else R=SW,y=kW,D=-1;if(H=0,w=0,z=F,d=J,g=h,C=0,f=-1,W=1<<h,E=W-1,q===L4&&W>yq||q===_q&&W>fq)return 1;for(;;){if(a=z-C,K[w]<D)Q0=0,Y0=K[w];else if(K[w]>D)Q0=y[v+K[w]],Y0=R[x+K[w]];else Q0=96,Y0=0;M=1<<z-C,I=1<<g,F=I;do I-=M,U[d+(H>>C)+I]=a<<24|Q0<<16|Y0|0;while(I!==0);M=1<<z-1;while(H&M)M>>=1;if(M!==0)H&=M-1,H+=M;else H=0;if(w++,--L[z]===0){if(z===Z)break;z=$[X+K[w]]}if(z>h&&(H&E)!==f){if(C===0)C=h;d+=F,g=z-C,N=1<<g;while(g+C<Z){if(N-=L[g+C],N<=0)break;g++,N<<=1}if(W+=1<<g,q===L4&&W>yq||q===_q&&W>fq)return 1;f=H&E,U[f]=h<<24|g<<16|d-J|0}}if(H!==0)U[d+H]=z-C<<24|4194304|0;return G.bits=h,0}});var C$=k((tW)=>{var i0=v2(),O4=V4(),L2=z4(),gW=kq(),A6=uq(),yW=0,B$=1,Z$=2,cq=4,fW=5,M8=6,F1=0,hW=1,_W=2,Q2=-2,j$=-3,R4=-4,bW=-5,pq=8,F$=1,mq=2,dq=3,lq=4,iq=5,oq=6,nq=7,rq=8,aq=9,sq=10,C8=11,S2=12,C4=13,tq=14,I4=15,eq=16,Q$=17,q$=18,$$=19,P8=20,L8=21,X$=22,Y$=23,U$=24,J$=25,K$=26,N4=27,V$=28,z$=29,I0=30,x4=31,uW=32,cW=852,pW=592,mW=15,dW=mW;function G$(Q){return(Q>>>24&255)+(Q>>>8&65280)+((Q&65280)<<8)+((Q&255)<<24)}function lW(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new i0.Buf16(320),this.work=new i0.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function H$(Q){var q;if(!Q||!Q.state)return Q2;if(q=Q.state,Q.total_in=Q.total_out=q.total=0,Q.msg="",q.wrap)Q.adler=q.wrap&1;return q.mode=F$,q.last=0,q.havedict=0,q.dmax=32768,q.head=null,q.hold=0,q.bits=0,q.lencode=q.lendyn=new i0.Buf32(cW),q.distcode=q.distdyn=new i0.Buf32(pW),q.sane=1,q.back=-1,F1}function w$(Q){var q;if(!Q||!Q.state)return Q2;return q=Q.state,q.wsize=0,q.whave=0,q.wnext=0,H$(Q)}function M$(Q,q){var $,X;if(!Q||!Q.state)return Q2;if(X=Q.state,q<0)$=0,q=-q;else if($=(q>>4)+1,q<48)q&=15;if(q&&(q<8||q>15))return Q2;if(X.window!==null&&X.wbits!==q)X.window=null;return X.wrap=$,X.wbits=q,w$(Q)}function P$(Q,q){var $,X;if(!Q)return Q2;if(X=new lW,Q.state=X,X.window=null,$=M$(Q,q),$!==F1)Q.state=null;return $}function iW(Q){return P$(Q,dW)}var W$=!0,D4,A4;function oW(Q){if(W$){var q;D4=new i0.Buf32(512),A4=new i0.Buf32(32),q=0;while(q<144)Q.lens[q++]=8;while(q<256)Q.lens[q++]=9;while(q<280)Q.lens[q++]=7;while(q<288)Q.lens[q++]=8;A6(B$,Q.lens,0,288,D4,0,Q.work,{bits:9}),q=0;while(q<32)Q.lens[q++]=5;A6(Z$,Q.lens,0,32,A4,0,Q.work,{bits:5}),W$=!1}Q.lencode=D4,Q.lenbits=9,Q.distcode=A4,Q.distbits=5}function L$(Q,q,$,X){var Y,U=Q.state;if(U.window===null)U.wsize=1<<U.wbits,U.wnext=0,U.whave=0,U.window=new i0.Buf8(U.wsize);if(X>=U.wsize)i0.arraySet(U.window,q,$-U.wsize,U.wsize,0),U.wnext=0,U.whave=U.wsize;else{if(Y=U.wsize-U.wnext,Y>X)Y=X;if(i0.arraySet(U.window,q,$-X,Y,U.wnext),X-=Y,X)i0.arraySet(U.window,q,$-X,X,0),U.wnext=X,U.whave=U.wsize;else{if(U.wnext+=Y,U.wnext===U.wsize)U.wnext=0;if(U.whave<U.wsize)U.whave+=Y}}return 0}function nW(Q,q){var $,X,Y,U,J,K,G,V,z,w,F,Z,h,g,C=0,N,W,H,M,I,f,E,d,R=new i0.Buf8(4),x,D,L=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!Q||!Q.state||!Q.output||!Q.input&&Q.avail_in!==0)return Q2;if($=Q.state,$.mode===S2)$.mode=C4;J=Q.next_out,Y=Q.output,G=Q.avail_out,U=Q.next_in,X=Q.input,K=Q.avail_in,V=$.hold,z=$.bits,w=K,F=G,d=F1;Q:for(;;)switch($.mode){case F$:if($.wrap===0){$.mode=C4;break}while(z<16){if(K===0)break Q;K--,V+=X[U++]<<z,z+=8}if($.wrap&2&&V===35615){$.check=0,R[0]=V&255,R[1]=V>>>8&255,$.check=L2($.check,R,2,0),V=0,z=0,$.mode=mq;break}if($.flags=0,$.head)$.head.done=!1;if(!($.wrap&1)||(((V&255)<<8)+(V>>8))%31){Q.msg="incorrect header check",$.mode=I0;break}if((V&15)!==pq){Q.msg="unknown compression method",$.mode=I0;break}if(V>>>=4,z-=4,E=(V&15)+8,$.wbits===0)$.wbits=E;else if(E>$.wbits){Q.msg="invalid window size",$.mode=I0;break}$.dmax=1<<E,Q.adler=$.check=1,$.mode=V&512?sq:S2,V=0,z=0;break;case mq:while(z<16){if(K===0)break Q;K--,V+=X[U++]<<z,z+=8}if($.flags=V,($.flags&255)!==pq){Q.msg="unknown compression method",$.mode=I0;break}if($.flags&57344){Q.msg="unknown header flags set",$.mode=I0;break}if($.head)$.head.text=V>>8&1;if($.flags&512)R[0]=V&255,R[1]=V>>>8&255,$.check=L2($.check,R,2,0);V=0,z=0,$.mode=dq;case dq:while(z<32){if(K===0)break Q;K--,V+=X[U++]<<z,z+=8}if($.head)$.head.time=V;if($.flags&512)R[0]=V&255,R[1]=V>>>8&255,R[2]=V>>>16&255,R[3]=V>>>24&255,$.check=L2($.check,R,4,0);V=0,z=0,$.mode=lq;case lq:while(z<16){if(K===0)break Q;K--,V+=X[U++]<<z,z+=8}if($.head)$.head.xflags=V&255,$.head.os=V>>8;if($.flags&512)R[0]=V&255,R[1]=V>>>8&255,$.check=L2($.check,R,2,0);V=0,z=0,$.mode=iq;case iq:if($.flags&1024){while(z<16){if(K===0)break Q;K--,V+=X[U++]<<z,z+=8}if($.length=V,$.head)$.head.extra_len=V;if($.flags&512)R[0]=V&255,R[1]=V>>>8&255,$.check=L2($.check,R,2,0);V=0,z=0}else if($.head)$.head.extra=null;$.mode=oq;case oq:if($.flags&1024){if(Z=$.length,Z>K)Z=K;if(Z){if($.head){if(E=$.head.extra_len-$.length,!$.head.extra)$.head.extra=Array($.head.extra_len);i0.arraySet($.head.extra,X,U,Z,E)}if($.flags&512)$.check=L2($.check,X,Z,U);K-=Z,U+=Z,$.length-=Z}if($.length)break Q}$.length=0,$.mode=nq;case nq:if($.flags&2048){if(K===0)break Q;Z=0;do if(E=X[U+Z++],$.head&&E&&$.length<65536)$.head.name+=String.fromCharCode(E);while(E&&Z<K);if($.flags&512)$.check=L2($.check,X,Z,U);if(K-=Z,U+=Z,E)break Q}else if($.head)$.head.name=null;$.length=0,$.mode=rq;case rq:if($.flags&4096){if(K===0)break Q;Z=0;do if(E=X[U+Z++],$.head&&E&&$.length<65536)$.head.comment+=String.fromCharCode(E);while(E&&Z<K);if($.flags&512)$.check=L2($.check,X,Z,U);if(K-=Z,U+=Z,E)break Q}else if($.head)$.head.comment=null;$.mode=aq;case aq:if($.flags&512){while(z<16){if(K===0)break Q;K--,V+=X[U++]<<z,z+=8}if(V!==($.check&65535)){Q.msg="header crc mismatch",$.mode=I0;break}V=0,z=0}if($.head)$.head.hcrc=$.flags>>9&1,$.head.done=!0;Q.adler=$.check=0,$.mode=S2;break;case sq:while(z<32){if(K===0)break Q;K--,V+=X[U++]<<z,z+=8}Q.adler=$.check=G$(V),V=0,z=0,$.mode=C8;case C8:if($.havedict===0)return Q.next_out=J,Q.avail_out=G,Q.next_in=U,Q.avail_in=K,$.hold=V,$.bits=z,_W;Q.adler=$.check=1,$.mode=S2;case S2:if(q===fW||q===M8)break Q;case C4:if($.last){V>>>=z&7,z-=z&7,$.mode=N4;break}while(z<3){if(K===0)break Q;K--,V+=X[U++]<<z,z+=8}switch($.last=V&1,V>>>=1,z-=1,V&3){case 0:$.mode=tq;break;case 1:if(oW($),$.mode=P8,q===M8){V>>>=2,z-=2;break Q}break;case 2:$.mode=Q$;break;case 3:Q.msg="invalid block type",$.mode=I0}V>>>=2,z-=2;break;case tq:V>>>=z&7,z-=z&7;while(z<32){if(K===0)break Q;K--,V+=X[U++]<<z,z+=8}if((V&65535)!==(V>>>16^65535)){Q.msg="invalid stored block lengths",$.mode=I0;break}if($.length=V&65535,V=0,z=0,$.mode=I4,q===M8)break Q;case I4:$.mode=eq;case eq:if(Z=$.length,Z){if(Z>K)Z=K;if(Z>G)Z=G;if(Z===0)break Q;i0.arraySet(Y,X,U,Z,J),K-=Z,U+=Z,G-=Z,J+=Z,$.length-=Z;break}$.mode=S2;break;case Q$:while(z<14){if(K===0)break Q;K--,V+=X[U++]<<z,z+=8}if($.nlen=(V&31)+257,V>>>=5,z-=5,$.ndist=(V&31)+1,V>>>=5,z-=5,$.ncode=(V&15)+4,V>>>=4,z-=4,$.nlen>286||$.ndist>30){Q.msg="too many length or distance symbols",$.mode=I0;break}$.have=0,$.mode=q$;case q$:while($.have<$.ncode){while(z<3){if(K===0)break Q;K--,V+=X[U++]<<z,z+=8}$.lens[L[$.have++]]=V&7,V>>>=3,z-=3}while($.have<19)$.lens[L[$.have++]]=0;if($.lencode=$.lendyn,$.lenbits=7,x={bits:$.lenbits},d=A6(yW,$.lens,0,19,$.lencode,0,$.work,x),$.lenbits=x.bits,d){Q.msg="invalid code lengths set",$.mode=I0;break}$.have=0,$.mode=$$;case $$:while($.have<$.nlen+$.ndist){for(;;){if(C=$.lencode[V&(1<<$.lenbits)-1],N=C>>>24,W=C>>>16&255,H=C&65535,N<=z)break;if(K===0)break Q;K--,V+=X[U++]<<z,z+=8}if(H<16)V>>>=N,z-=N,$.lens[$.have++]=H;else{if(H===16){D=N+2;while(z<D){if(K===0)break Q;K--,V+=X[U++]<<z,z+=8}if(V>>>=N,z-=N,$.have===0){Q.msg="invalid bit length repeat",$.mode=I0;break}E=$.lens[$.have-1],Z=3+(V&3),V>>>=2,z-=2}else if(H===17){D=N+3;while(z<D){if(K===0)break Q;K--,V+=X[U++]<<z,z+=8}V>>>=N,z-=N,E=0,Z=3+(V&7),V>>>=3,z-=3}else{D=N+7;while(z<D){if(K===0)break Q;K--,V+=X[U++]<<z,z+=8}V>>>=N,z-=N,E=0,Z=11+(V&127),V>>>=7,z-=7}if($.have+Z>$.nlen+$.ndist){Q.msg="invalid bit length repeat",$.mode=I0;break}while(Z--)$.lens[$.have++]=E}}if($.mode===I0)break;if($.lens[256]===0){Q.msg="invalid code -- missing end-of-block",$.mode=I0;break}if($.lenbits=9,x={bits:$.lenbits},d=A6(B$,$.lens,0,$.nlen,$.lencode,0,$.work,x),$.lenbits=x.bits,d){Q.msg="invalid literal/lengths set",$.mode=I0;break}if($.distbits=6,$.distcode=$.distdyn,x={bits:$.distbits},d=A6(Z$,$.lens,$.nlen,$.ndist,$.distcode,0,$.work,x),$.distbits=x.bits,d){Q.msg="invalid distances set",$.mode=I0;break}if($.mode=P8,q===M8)break Q;case P8:$.mode=L8;case L8:if(K>=6&&G>=258){if(Q.next_out=J,Q.avail_out=G,Q.next_in=U,Q.avail_in=K,$.hold=V,$.bits=z,gW(Q,F),J=Q.next_out,Y=Q.output,G=Q.avail_out,U=Q.next_in,X=Q.input,K=Q.avail_in,V=$.hold,z=$.bits,$.mode===S2)$.back=-1;break}$.back=0;for(;;){if(C=$.lencode[V&(1<<$.lenbits)-1],N=C>>>24,W=C>>>16&255,H=C&65535,N<=z)break;if(K===0)break Q;K--,V+=X[U++]<<z,z+=8}if(W&&(W&240)===0){M=N,I=W,f=H;for(;;){if(C=$.lencode[f+((V&(1<<M+I)-1)>>M)],N=C>>>24,W=C>>>16&255,H=C&65535,M+N<=z)break;if(K===0)break Q;K--,V+=X[U++]<<z,z+=8}V>>>=M,z-=M,$.back+=M}if(V>>>=N,z-=N,$.back+=N,$.length=H,W===0){$.mode=K$;break}if(W&32){$.back=-1,$.mode=S2;break}if(W&64){Q.msg="invalid literal/length code",$.mode=I0;break}$.extra=W&15,$.mode=X$;case X$:if($.extra){D=$.extra;while(z<D){if(K===0)break Q;K--,V+=X[U++]<<z,z+=8}$.length+=V&(1<<$.extra)-1,V>>>=$.extra,z-=$.extra,$.back+=$.extra}$.was=$.length,$.mode=Y$;case Y$:for(;;){if(C=$.distcode[V&(1<<$.distbits)-1],N=C>>>24,W=C>>>16&255,H=C&65535,N<=z)break;if(K===0)break Q;K--,V+=X[U++]<<z,z+=8}if((W&240)===0){M=N,I=W,f=H;for(;;){if(C=$.distcode[f+((V&(1<<M+I)-1)>>M)],N=C>>>24,W=C>>>16&255,H=C&65535,M+N<=z)break;if(K===0)break Q;K--,V+=X[U++]<<z,z+=8}V>>>=M,z-=M,$.back+=M}if(V>>>=N,z-=N,$.back+=N,W&64){Q.msg="invalid distance code",$.mode=I0;break}$.offset=H,$.extra=W&15,$.mode=U$;case U$:if($.extra){D=$.extra;while(z<D){if(K===0)break Q;K--,V+=X[U++]<<z,z+=8}$.offset+=V&(1<<$.extra)-1,V>>>=$.extra,z-=$.extra,$.back+=$.extra}if($.offset>$.dmax){Q.msg="invalid distance too far back",$.mode=I0;break}$.mode=J$;case J$:if(G===0)break Q;if(Z=F-G,$.offset>Z){if(Z=$.offset-Z,Z>$.whave){if($.sane){Q.msg="invalid distance too far back",$.mode=I0;break}}if(Z>$.wnext)Z-=$.wnext,h=$.wsize-Z;else h=$.wnext-Z;if(Z>$.length)Z=$.length;g=$.window}else g=Y,h=J-$.offset,Z=$.length;if(Z>G)Z=G;G-=Z,$.length-=Z;do Y[J++]=g[h++];while(--Z);if($.length===0)$.mode=L8;break;case K$:if(G===0)break Q;Y[J++]=$.length,G--,$.mode=L8;break;case N4:if($.wrap){while(z<32){if(K===0)break Q;K--,V|=X[U++]<<z,z+=8}if(F-=G,Q.total_out+=F,$.total+=F,F)Q.adler=$.check=$.flags?L2($.check,Y,F,J-F):O4($.check,Y,F,J-F);if(F=G,($.flags?V:G$(V))!==$.check){Q.msg="incorrect data check",$.mode=I0;break}V=0,z=0}$.mode=V$;case V$:if($.wrap&&$.flags){while(z<32){if(K===0)break Q;K--,V+=X[U++]<<z,z+=8}if(V!==($.total&4294967295)){Q.msg="incorrect length check",$.mode=I0;break}V=0,z=0}$.mode=z$;case z$:d=hW;break Q;case I0:d=j$;break Q;case x4:return R4;case uW:default:return Q2}if(Q.next_out=J,Q.avail_out=G,Q.next_in=U,Q.avail_in=K,$.hold=V,$.bits=z,$.wsize||F!==Q.avail_out&&$.mode<I0&&($.mode<N4||q!==cq)){if(L$(Q,Q.output,Q.next_out,F-Q.avail_out))return $.mode=x4,R4}if(w-=Q.avail_in,F-=Q.avail_out,Q.total_in+=w,Q.total_out+=F,$.total+=F,$.wrap&&F)Q.adler=$.check=$.flags?L2($.check,Y,F,Q.next_out-F):O4($.check,Y,F,Q.next_out-F);if(Q.data_type=$.bits+($.last?64:0)+($.mode===S2?128:0)+($.mode===P8||$.mode===I4?256:0),(w===0&&F===0||q===cq)&&d===F1)d=bW;return d}function rW(Q){if(!Q||!Q.state)return Q2;var q=Q.state;if(q.window)q.window=null;return Q.state=null,F1}function aW(Q,q){var $;if(!Q||!Q.state)return Q2;if($=Q.state,($.wrap&2)===0)return Q2;return $.head=q,q.done=!1,F1}function sW(Q,q){var $=q.length,X,Y,U;if(!Q||!Q.state)return Q2;if(X=Q.state,X.wrap!==0&&X.mode!==C8)return Q2;if(X.mode===C8){if(Y=1,Y=O4(Y,q,$,0),Y!==X.check)return j$}if(U=L$(Q,q,$,$),U)return X.mode=x4,R4;return X.havedict=1,F1}tW.inflateReset=w$;tW.inflateReset2=M$;tW.inflateResetKeep=H$;tW.inflateInit=iW;tW.inflateInit2=P$;tW.inflate=nW;tW.inflateEnd=rW;tW.inflateGetHeader=aW;tW.inflateSetDictionary=sW;tW.inflateInfo="pako inflate (from Nodeca project)"});var T4=k((IP,I$)=>{I$.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}});var D$=k((NP,N$)=>{function zB(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}N$.exports=zB});var O$=k((ZB)=>{var u1=C$(),O6=v2(),I8=j4(),x0=T4(),v4=z8(),GB=F4(),WB=D$(),A$=Object.prototype.toString;function H1(Q){if(!(this instanceof H1))return new H1(Q);this.options=O6.assign({chunkSize:16384,windowBits:0,to:""},Q||{});var q=this.options;if(q.raw&&q.windowBits>=0&&q.windowBits<16){if(q.windowBits=-q.windowBits,q.windowBits===0)q.windowBits=-15}if(q.windowBits>=0&&q.windowBits<16&&!(Q&&Q.windowBits))q.windowBits+=32;if(q.windowBits>15&&q.windowBits<48){if((q.windowBits&15)===0)q.windowBits|=15}this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new GB,this.strm.avail_out=0;var $=u1.inflateInit2(this.strm,q.windowBits);if($!==x0.Z_OK)throw Error(v4[$]);if(this.header=new WB,u1.inflateGetHeader(this.strm,this.header),q.dictionary){if(typeof q.dictionary==="string")q.dictionary=I8.string2buf(q.dictionary);else if(A$.call(q.dictionary)==="[object ArrayBuffer]")q.dictionary=new Uint8Array(q.dictionary);if(q.raw){if($=u1.inflateSetDictionary(this.strm,q.dictionary),$!==x0.Z_OK)throw Error(v4[$])}}}H1.prototype.push=function(Q,q){var $=this.strm,X=this.options.chunkSize,Y=this.options.dictionary,U,J,K,G,V,z=!1;if(this.ended)return!1;if(J=q===~~q?q:q===!0?x0.Z_FINISH:x0.Z_NO_FLUSH,typeof Q==="string")$.input=I8.binstring2buf(Q);else if(A$.call(Q)==="[object ArrayBuffer]")$.input=new Uint8Array(Q);else $.input=Q;$.next_in=0,$.avail_in=$.input.length;do{if($.avail_out===0)$.output=new O6.Buf8(X),$.next_out=0,$.avail_out=X;if(U=u1.inflate($,x0.Z_NO_FLUSH),U===x0.Z_NEED_DICT&&Y)U=u1.inflateSetDictionary(this.strm,Y);if(U===x0.Z_BUF_ERROR&&z===!0)U=x0.Z_OK,z=!1;if(U!==x0.Z_STREAM_END&&U!==x0.Z_OK)return this.onEnd(U),this.ended=!0,!1;if($.next_out){if($.avail_out===0||U===x0.Z_STREAM_END||$.avail_in===0&&(J===x0.Z_FINISH||J===x0.Z_SYNC_FLUSH))if(this.options.to==="string"){if(K=I8.utf8border($.output,$.next_out),G=$.next_out-K,V=I8.buf2string($.output,K),$.next_out=G,$.avail_out=X-G,G)O6.arraySet($.output,$.output,K,G,0);this.onData(V)}else this.onData(O6.shrinkBuf($.output,$.next_out))}if($.avail_in===0&&$.avail_out===0)z=!0}while(($.avail_in>0||$.avail_out===0)&&U!==x0.Z_STREAM_END);if(U===x0.Z_STREAM_END)J=x0.Z_FINISH;if(J===x0.Z_FINISH)return U=u1.inflateEnd(this.strm),this.onEnd(U),this.ended=!0,U===x0.Z_OK;if(J===x0.Z_SYNC_FLUSH)return this.onEnd(x0.Z_OK),$.avail_out=0,!0;return!0};H1.prototype.onData=function(Q){this.chunks.push(Q)};H1.prototype.onEnd=function(Q){if(Q===x0.Z_OK)if(this.options.to==="string")this.result=this.chunks.join("");else this.result=O6.flattenChunks(this.chunks);this.chunks=[],this.err=Q,this.msg=this.strm.msg};function E4(Q,q){var $=new H1(q);if($.push(Q,!0),$.err)throw $.msg||v4[$.err];return $.result}function BB(Q,q){return q=q||{},q.raw=!0,E4(Q,q)}ZB.Inflate=H1;ZB.inflate=E4;ZB.inflateRaw=BB;ZB.ungzip=E4});var T$=k((AP,x$)=>{var MB=v2().assign,PB=Eq(),LB=O$(),CB=T4(),R$={};MB(R$,PB,LB,CB);x$.exports=R$});var E$=k((AB)=>{var IB=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",NB=T$(),v$=A0(),N8=l0(),DB=IB?"uint8array":"array";AB.magic="\b\x00";function w1(Q,q){N8.call(this,"FlateWorker/"+Q),this._pako=null,this._pakoAction=Q,this._pakoOptions=q,this.meta={}}v$.inherits(w1,N8);w1.prototype.processChunk=function(Q){if(this.meta=Q.meta,this._pako===null)this._createPako();this._pako.push(v$.transformTo(DB,Q.data),!1)};w1.prototype.flush=function(){if(N8.prototype.flush.call(this),this._pako===null)this._createPako();this._pako.push([],!0)};w1.prototype.cleanUp=function(){N8.prototype.cleanUp.call(this),this._pako=null};w1.prototype._createPako=function(){this._pako=new NB[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var Q=this;this._pako.onData=function(q){Q.push({data:q,meta:Q.meta})}};AB.compressWorker=function(Q){return new w1("Deflate",Q)};AB.uncompressWorker=function(){return new w1("Inflate",{})}});var S4=k((TB)=>{var S$=l0();TB.STORE={magic:"\x00\x00",compressWorker:function(){return new S$("STORE compression")},uncompressWorker:function(){return new S$("STORE decompression")}};TB.DEFLATE=E$()});var k4=k((SB)=>{SB.LOCAL_FILE_HEADER="PK\x03\x04";SB.CENTRAL_FILE_HEADER="PK\x01\x02";SB.CENTRAL_DIRECTORY_END="PK\x05\x06";SB.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07";SB.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06";SB.DATA_DESCRIPTOR="PK\x07\b"});var f$=k((TP,y$)=>{var c1=A0(),p1=l0(),g4=E1(),k$=U8(),D8=k4(),L0=function(Q,q){var $="",X;for(X=0;X<q;X++)$+=String.fromCharCode(Q&255),Q=Q>>>8;return $},bB=function(Q,q){var $=Q;if(!Q)$=q?16893:33204;return($&65535)<<16},uB=function(Q){return(Q||0)&63},g$=function(Q,q,$,X,Y,U){var{file:J,compression:K}=Q,G=U!==g4.utf8encode,V=c1.transformTo("string",U(J.name)),z=c1.transformTo("string",g4.utf8encode(J.name)),w=J.comment,F=c1.transformTo("string",U(w)),Z=c1.transformTo("string",g4.utf8encode(w)),h=z.length!==J.name.length,g=Z.length!==w.length,C,N,W="",H="",M="",I=J.dir,f=J.date,E={crc32:0,compressedSize:0,uncompressedSize:0};if(!q||$)E.crc32=Q.crc32,E.compressedSize=Q.compressedSize,E.uncompressedSize=Q.uncompressedSize;var d=0;if(q)d|=8;if(!G&&(h||g))d|=2048;var R=0,x=0;if(I)R|=16;if(Y==="UNIX")x=798,R|=bB(J.unixPermissions,I);else x=20,R|=uB(J.dosPermissions,I);if(C=f.getUTCHours(),C=C<<6,C=C|f.getUTCMinutes(),C=C<<5,C=C|f.getUTCSeconds()/2,N=f.getUTCFullYear()-1980,N=N<<4,N=N|f.getUTCMonth()+1,N=N<<5,N=N|f.getUTCDate(),h)H=L0(1,1)+L0(k$(V),4)+z,W+="up"+L0(H.length,2)+H;if(g)M=L0(1,1)+L0(k$(F),4)+Z,W+="uc"+L0(M.length,2)+M;var D="";D+=`
|
|
3
|
-
\x00`,D+=L0(d,2),D+=K.magic,D+=L0(C,2),D+=L0(N,2),D+=L0(E.crc32,4),D+=L0(E.compressedSize,4),D+=L0(E.uncompressedSize,4),D+=L0(V.length,2),D+=L0(W.length,2);var L=D8.LOCAL_FILE_HEADER+D+V+W,S=D8.CENTRAL_FILE_HEADER+L0(x,2)+D+L0(F.length,2)+"\x00\x00\x00\x00"+L0(R,4)+L0(X,4)+V+W+F;return{fileRecord:L,dirRecord:S}},cB=function(Q,q,$,X,Y){var U="",J=c1.transformTo("string",Y(X));return U=D8.CENTRAL_DIRECTORY_END+"\x00\x00\x00\x00"+L0(Q,2)+L0(Q,2)+L0(q,4)+L0($,4)+L0(J.length,2)+J,U},pB=function(Q){var q="";return q=D8.DATA_DESCRIPTOR+L0(Q.crc32,4)+L0(Q.compressedSize,4)+L0(Q.uncompressedSize,4),q};function J2(Q,q,$,X){p1.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=q,this.zipPlatform=$,this.encodeFileName=X,this.streamFiles=Q,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}c1.inherits(J2,p1);J2.prototype.push=function(Q){var q=Q.meta.percent||0,$=this.entriesCount,X=this._sources.length;if(this.accumulate)this.contentBuffer.push(Q);else this.bytesWritten+=Q.data.length,p1.prototype.push.call(this,{data:Q.data,meta:{currentFile:this.currentFile,percent:$?(q+100*($-X-1))/$:100}})};J2.prototype.openedSource=function(Q){this.currentSourceOffset=this.bytesWritten,this.currentFile=Q.file.name;var q=this.streamFiles&&!Q.file.dir;if(q){var $=g$(Q,q,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:$.fileRecord,meta:{percent:0}})}else this.accumulate=!0};J2.prototype.closedSource=function(Q){this.accumulate=!1;var q=this.streamFiles&&!Q.file.dir,$=g$(Q,q,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push($.dirRecord),q)this.push({data:pB(Q),meta:{percent:100}});else{this.push({data:$.fileRecord,meta:{percent:0}});while(this.contentBuffer.length)this.push(this.contentBuffer.shift())}this.currentFile=null};J2.prototype.flush=function(){var Q=this.bytesWritten;for(var q=0;q<this.dirRecords.length;q++)this.push({data:this.dirRecords[q],meta:{percent:100}});var $=this.bytesWritten-Q,X=cB(this.dirRecords.length,$,Q,this.zipComment,this.encodeFileName);this.push({data:X,meta:{percent:100}})};J2.prototype.prepareNextSource=function(){if(this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused)this.previous.pause();else this.previous.resume()};J2.prototype.registerPrevious=function(Q){this._sources.push(Q);var q=this;return Q.on("data",function($){q.processChunk($)}),Q.on("end",function(){if(q.closedSource(q.previous.streamInfo),q._sources.length)q.prepareNextSource();else q.end()}),Q.on("error",function($){q.error($)}),this};J2.prototype.resume=function(){if(!p1.prototype.resume.call(this))return!1;if(!this.previous&&this._sources.length)return this.prepareNextSource(),!0;if(!this.previous&&!this._sources.length&&!this.generatedError)return this.end(),!0};J2.prototype.error=function(Q){var q=this._sources;if(!p1.prototype.error.call(this,Q))return!1;for(var $=0;$<q.length;$++)try{q[$].error(Q)}catch(X){}return!0};J2.prototype.lock=function(){p1.prototype.lock.call(this);var Q=this._sources;for(var q=0;q<Q.length;q++)Q[q].lock()};y$.exports=J2});var h$=k((iB)=>{var mB=S4(),dB=f$(),lB=function(Q,q){var $=Q||q,X=mB[$];if(!X)throw Error($+" is not a valid compression method !");return X};iB.generateWorker=function(Q,q,$){var X=new dB(q.streamFiles,$,q.platform,q.encodeFileName),Y=0;try{Q.forEach(function(U,J){Y++;var K=lB(J.options.compression,q.compression),G=J.options.compressionOptions||q.compressionOptions||{},V=J.dir,z=J.date;J._compressWorker(K,G).withStreamInfo("file",{name:U,dir:V,date:z,comment:J.comment||"",unixPermissions:J.unixPermissions,dosPermissions:J.dosPermissions}).pipe(X)}),X.entriesCount=Y}catch(U){X.error(U)}return X}});var b$=k((EP,_$)=>{var nB=A0(),A8=l0();function R6(Q,q){A8.call(this,"Nodejs stream input adapter for "+Q),this._upstreamEnded=!1,this._bindStream(q)}nB.inherits(R6,A8);R6.prototype._bindStream=function(Q){var q=this;this._stream=Q,Q.pause(),Q.on("data",function($){q.push({data:$,meta:{percent:0}})}).on("error",function($){if(q.isPaused)this.generatedError=$;else q.error($)}).on("end",function(){if(q.isPaused)q._upstreamEnded=!0;else q.end()})};R6.prototype.pause=function(){if(!A8.prototype.pause.call(this))return!1;return this._stream.pause(),!0};R6.prototype.resume=function(){if(!A8.prototype.resume.call(this))return!1;if(this._upstreamEnded)this.end();else this._stream.resume();return!0};_$.exports=R6});var r$=k((SP,n$)=>{var rB=E1(),x6=A0(),m$=l0(),aB=_5(),d$=b5(),u$=J8(),sB=c9(),tB=h$(),c$=U6(),eB=b$(),l$=function(Q,q,$){var X=x6.getTypeOf(q),Y,U=x6.extend($||{},d$);if(U.date=U.date||new Date,U.compression!==null)U.compression=U.compression.toUpperCase();if(typeof U.unixPermissions==="string")U.unixPermissions=parseInt(U.unixPermissions,8);if(U.unixPermissions&&U.unixPermissions&16384)U.dir=!0;if(U.dosPermissions&&U.dosPermissions&16)U.dir=!0;if(U.dir)Q=i$(Q);if(U.createFolders&&(Y=QZ(Q)))o$.call(this,Y,!0);var J=X==="string"&&U.binary===!1&&U.base64===!1;if(!$||typeof $.binary>"u")U.binary=!J;var K=q instanceof u$&&q.uncompressedSize===0;if(K||U.dir||!q||q.length===0)U.base64=!1,U.binary=!0,q="",U.compression="STORE",X="string";var G=null;if(q instanceof u$||q instanceof m$)G=q;else if(c$.isNode&&c$.isStream(q))G=new eB(Q,q);else G=x6.prepareContent(Q,q,U.binary,U.optimizedBinaryString,U.base64);var V=new sB(Q,G,U);this.files[Q]=V},QZ=function(Q){if(Q.slice(-1)==="/")Q=Q.substring(0,Q.length-1);var q=Q.lastIndexOf("/");return q>0?Q.substring(0,q):""},i$=function(Q){if(Q.slice(-1)!=="/")Q+="/";return Q},o$=function(Q,q){if(q=typeof q<"u"?q:d$.createFolders,Q=i$(Q),!this.files[Q])l$.call(this,Q,null,{dir:!0,createFolders:q});return this.files[Q]};function p$(Q){return Object.prototype.toString.call(Q)==="[object RegExp]"}var qZ={load:function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(Q){var q,$,X;for(q in this.files)if(X=this.files[q],$=q.slice(this.root.length,q.length),$&&q.slice(0,this.root.length)===this.root)Q($,X)},filter:function(Q){var q=[];return this.forEach(function($,X){if(Q($,X))q.push(X)}),q},file:function(Q,q,$){if(arguments.length===1)if(p$(Q)){var X=Q;return this.filter(function(U,J){return!J.dir&&X.test(U)})}else{var Y=this.files[this.root+Q];if(Y&&!Y.dir)return Y;else return null}else Q=this.root+Q,l$.call(this,Q,q,$);return this},folder:function(Q){if(!Q)return this;if(p$(Q))return this.filter(function(Y,U){return U.dir&&Q.test(Y)});var q=this.root+Q,$=o$.call(this,q),X=this.clone();return X.root=$.name,X},remove:function(Q){Q=this.root+Q;var q=this.files[Q];if(!q){if(Q.slice(-1)!=="/")Q+="/";q=this.files[Q]}if(q&&!q.dir)delete this.files[Q];else{var $=this.filter(function(Y,U){return U.name.slice(0,Q.length)===Q});for(var X=0;X<$.length;X++)delete this.files[$[X].name]}return this},generate:function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(Q){var q,$={};try{if($=x6.extend(Q||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:rB.utf8encode}),$.type=$.type.toLowerCase(),$.compression=$.compression.toUpperCase(),$.type==="binarystring")$.type="string";if(!$.type)throw Error("No output type specified.");if(x6.checkSupport($.type),$.platform==="darwin"||$.platform==="freebsd"||$.platform==="linux"||$.platform==="sunos")$.platform="UNIX";if($.platform==="win32")$.platform="DOS";var X=$.comment||this.comment||"";q=tB.generateWorker(this,$,X)}catch(Y){q=new m$("error"),q.error(Y)}return new aB(q,$.type||"string",$.mimeType)},generateAsync:function(Q,q){return this.generateInternalStream(Q).accumulate(q)},generateNodeStream:function(Q,q){if(Q=Q||{},!Q.type)Q.type="nodebuffer";return this.generateInternalStream(Q).toNodejsStream(q)}};n$.exports=qZ});var y4=k((kP,s$)=>{var $Z=A0();function a$(Q){this.data=Q,this.length=Q.length,this.index=0,this.zero=0}a$.prototype={checkOffset:function(Q){this.checkIndex(this.index+Q)},checkIndex:function(Q){if(this.length<this.zero+Q||Q<0)throw Error("End of data reached (data length = "+this.length+", asked index = "+Q+"). Corrupted zip ?")},setIndex:function(Q){this.checkIndex(Q),this.index=Q},skip:function(Q){this.setIndex(this.index+Q)},byteAt:function(){},readInt:function(Q){var q=0,$;this.checkOffset(Q);for($=this.index+Q-1;$>=this.index;$--)q=(q<<8)+this.byteAt($);return this.index+=Q,q},readString:function(Q){return $Z.transformTo("string",this.readData(Q))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var Q=this.readInt(4);return new Date(Date.UTC((Q>>25&127)+1980,(Q>>21&15)-1,Q>>16&31,Q>>11&31,Q>>5&63,(Q&31)<<1))}};s$.exports=a$});var f4=k((gP,e$)=>{var t$=y4(),XZ=A0();function m1(Q){t$.call(this,Q);for(var q=0;q<this.data.length;q++)Q[q]=Q[q]&255}XZ.inherits(m1,t$);m1.prototype.byteAt=function(Q){return this.data[this.zero+Q]};m1.prototype.lastIndexOfSignature=function(Q){var q=Q.charCodeAt(0),$=Q.charCodeAt(1),X=Q.charCodeAt(2),Y=Q.charCodeAt(3);for(var U=this.length-4;U>=0;--U)if(this.data[U]===q&&this.data[U+1]===$&&this.data[U+2]===X&&this.data[U+3]===Y)return U-this.zero;return-1};m1.prototype.readAndCheckSignature=function(Q){var q=Q.charCodeAt(0),$=Q.charCodeAt(1),X=Q.charCodeAt(2),Y=Q.charCodeAt(3),U=this.readData(4);return q===U[0]&&$===U[1]&&X===U[2]&&Y===U[3]};m1.prototype.readData=function(Q){if(this.checkOffset(Q),Q===0)return[];var q=this.data.slice(this.zero+this.index,this.zero+this.index+Q);return this.index+=Q,q};e$.exports=m1});var $X=k((yP,qX)=>{var QX=y4(),YZ=A0();function d1(Q){QX.call(this,Q)}YZ.inherits(d1,QX);d1.prototype.byteAt=function(Q){return this.data.charCodeAt(this.zero+Q)};d1.prototype.lastIndexOfSignature=function(Q){return this.data.lastIndexOf(Q)-this.zero};d1.prototype.readAndCheckSignature=function(Q){var q=this.readData(4);return Q===q};d1.prototype.readData=function(Q){this.checkOffset(Q);var q=this.data.slice(this.zero+this.index,this.zero+this.index+Q);return this.index+=Q,q};qX.exports=d1});var _4=k((fP,YX)=>{var XX=f4(),UZ=A0();function h4(Q){XX.call(this,Q)}UZ.inherits(h4,XX);h4.prototype.readData=function(Q){if(this.checkOffset(Q),Q===0)return new Uint8Array(0);var q=this.data.subarray(this.zero+this.index,this.zero+this.index+Q);return this.index+=Q,q};YX.exports=h4});var KX=k((hP,JX)=>{var UX=_4(),JZ=A0();function b4(Q){UX.call(this,Q)}JZ.inherits(b4,UX);b4.prototype.readData=function(Q){this.checkOffset(Q);var q=this.data.slice(this.zero+this.index,this.zero+this.index+Q);return this.index+=Q,q};JX.exports=b4});var u4=k((_P,zX)=>{var O8=A0(),VX=T2(),KZ=f4(),VZ=$X(),zZ=KX(),GZ=_4();zX.exports=function(Q){var q=O8.getTypeOf(Q);if(O8.checkSupport(q),q==="string"&&!VX.uint8array)return new VZ(Q);if(q==="nodebuffer")return new zZ(Q);if(VX.uint8array)return new GZ(O8.transformTo("uint8array",Q));return new KZ(O8.transformTo("array",Q))}});var ZX=k((bP,BX)=>{var c4=u4(),n2=A0(),WZ=J8(),GX=U8(),R8=E1(),x8=S4(),BZ=T2(),ZZ=0,jZ=3,FZ=function(Q){for(var q in x8){if(!Object.prototype.hasOwnProperty.call(x8,q))continue;if(x8[q].magic===Q)return x8[q]}return null};function WX(Q,q){this.options=Q,this.loadOptions=q}WX.prototype={isEncrypted:function(){return(this.bitFlag&1)===1},useUTF8:function(){return(this.bitFlag&2048)===2048},readLocalPart:function(Q){var q,$;if(Q.skip(22),this.fileNameLength=Q.readInt(2),$=Q.readInt(2),this.fileName=Q.readData(this.fileNameLength),Q.skip($),this.compressedSize===-1||this.uncompressedSize===-1)throw Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(q=FZ(this.compressionMethod),q===null)throw Error("Corrupted zip : compression "+n2.pretty(this.compressionMethod)+" unknown (inner file : "+n2.transformTo("string",this.fileName)+")");this.decompressed=new WZ(this.compressedSize,this.uncompressedSize,this.crc32,q,Q.readData(this.compressedSize))},readCentralPart:function(Q){this.versionMadeBy=Q.readInt(2),Q.skip(2),this.bitFlag=Q.readInt(2),this.compressionMethod=Q.readString(2),this.date=Q.readDate(),this.crc32=Q.readInt(4),this.compressedSize=Q.readInt(4),this.uncompressedSize=Q.readInt(4);var q=Q.readInt(2);if(this.extraFieldsLength=Q.readInt(2),this.fileCommentLength=Q.readInt(2),this.diskNumberStart=Q.readInt(2),this.internalFileAttributes=Q.readInt(2),this.externalFileAttributes=Q.readInt(4),this.localHeaderOffset=Q.readInt(4),this.isEncrypted())throw Error("Encrypted zip are not supported");Q.skip(q),this.readExtraFields(Q),this.parseZIP64ExtraField(Q),this.fileComment=Q.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var Q=this.versionMadeBy>>8;if(this.dir=this.externalFileAttributes&16?!0:!1,Q===ZZ)this.dosPermissions=this.externalFileAttributes&63;if(Q===jZ)this.unixPermissions=this.externalFileAttributes>>16&65535;if(!this.dir&&this.fileNameStr.slice(-1)==="/")this.dir=!0},parseZIP64ExtraField:function(){if(!this.extraFields[1])return;var Q=c4(this.extraFields[1].value);if(this.uncompressedSize===n2.MAX_VALUE_32BITS)this.uncompressedSize=Q.readInt(8);if(this.compressedSize===n2.MAX_VALUE_32BITS)this.compressedSize=Q.readInt(8);if(this.localHeaderOffset===n2.MAX_VALUE_32BITS)this.localHeaderOffset=Q.readInt(8);if(this.diskNumberStart===n2.MAX_VALUE_32BITS)this.diskNumberStart=Q.readInt(4)},readExtraFields:function(Q){var q=Q.index+this.extraFieldsLength,$,X,Y;if(!this.extraFields)this.extraFields={};while(Q.index+4<q)$=Q.readInt(2),X=Q.readInt(2),Y=Q.readData(X),this.extraFields[$]={id:$,length:X,value:Y};Q.setIndex(q)},handleUTF8:function(){var Q=BZ.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=R8.utf8decode(this.fileName),this.fileCommentStr=R8.utf8decode(this.fileComment);else{var q=this.findExtraFieldUnicodePath();if(q!==null)this.fileNameStr=q;else{var $=n2.transformTo(Q,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName($)}var X=this.findExtraFieldUnicodeComment();if(X!==null)this.fileCommentStr=X;else{var Y=n2.transformTo(Q,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(Y)}}},findExtraFieldUnicodePath:function(){var Q=this.extraFields[28789];if(Q){var q=c4(Q.value);if(q.readInt(1)!==1)return null;if(GX(this.fileName)!==q.readInt(4))return null;return R8.utf8decode(q.readData(Q.length-5))}return null},findExtraFieldUnicodeComment:function(){var Q=this.extraFields[25461];if(Q){var q=c4(Q.value);if(q.readInt(1)!==1)return null;if(GX(this.fileComment)!==q.readInt(4))return null;return R8.utf8decode(q.readData(Q.length-5))}return null}};BX.exports=WX});var HX=k((uP,FX)=>{var HZ=u4(),k2=A0(),K2=k4(),wZ=ZX(),MZ=T2();function jX(Q){this.files=[],this.loadOptions=Q}jX.prototype={checkSignature:function(Q){if(!this.reader.readAndCheckSignature(Q)){this.reader.index-=4;var q=this.reader.readString(4);throw Error("Corrupted zip or bug: unexpected signature ("+k2.pretty(q)+", expected "+k2.pretty(Q)+")")}},isSignature:function(Q,q){var $=this.reader.index;this.reader.setIndex(Q);var X=this.reader.readString(4),Y=X===q;return this.reader.setIndex($),Y},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var Q=this.reader.readData(this.zipCommentLength),q=MZ.uint8array?"uint8array":"array",$=k2.transformTo(q,Q);this.zipComment=this.loadOptions.decodeFileName($)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};var Q=this.zip64EndOfCentralSize-44,q=0,$,X,Y;while(q<Q)$=this.reader.readInt(2),X=this.reader.readInt(4),Y=this.reader.readData(X),this.zip64ExtensibleData[$]={id:$,length:X,value:Y}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var Q,q;for(Q=0;Q<this.files.length;Q++)q=this.files[Q],this.reader.setIndex(q.localHeaderOffset),this.checkSignature(K2.LOCAL_FILE_HEADER),q.readLocalPart(this.reader),q.handleUTF8(),q.processAttributes()},readCentralDir:function(){var Q;this.reader.setIndex(this.centralDirOffset);while(this.reader.readAndCheckSignature(K2.CENTRAL_FILE_HEADER))Q=new wZ({zip64:this.zip64},this.loadOptions),Q.readCentralPart(this.reader),this.files.push(Q);if(this.centralDirRecords!==this.files.length){if(this.centralDirRecords!==0&&this.files.length===0)throw Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)}},readEndOfCentral:function(){var Q=this.reader.lastIndexOfSignature(K2.CENTRAL_DIRECTORY_END);if(Q<0){var q=!this.isSignature(0,K2.LOCAL_FILE_HEADER);if(q)throw Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");else throw Error("Corrupted zip: can't find end of central directory")}this.reader.setIndex(Q);var $=Q;if(this.checkSignature(K2.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===k2.MAX_VALUE_16BITS||this.diskWithCentralDirStart===k2.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===k2.MAX_VALUE_16BITS||this.centralDirRecords===k2.MAX_VALUE_16BITS||this.centralDirSize===k2.MAX_VALUE_32BITS||this.centralDirOffset===k2.MAX_VALUE_32BITS){if(this.zip64=!0,Q=this.reader.lastIndexOfSignature(K2.ZIP64_CENTRAL_DIRECTORY_LOCATOR),Q<0)throw Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(Q),this.checkSignature(K2.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,K2.ZIP64_CENTRAL_DIRECTORY_END)){if(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(K2.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0)throw Error("Corrupted zip: can't find the ZIP64 end of central directory")}this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(K2.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var X=this.centralDirOffset+this.centralDirSize;if(this.zip64)X+=20,X+=12+this.zip64EndOfCentralSize;var Y=$-X;if(Y>0)if(this.isSignature($,K2.CENTRAL_FILE_HEADER));else this.reader.zero=Y;else if(Y<0)throw Error("Corrupted zip: missing "+Math.abs(Y)+" bytes.")},prepareReader:function(Q){this.reader=HZ(Q)},load:function(Q){this.prepareReader(Q),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}};FX.exports=jX});var PX=k((cP,MX)=>{var p4=A0(),T8=x1(),PZ=E1(),LZ=HX(),CZ=p5(),wX=U6();function IZ(Q){return new T8.Promise(function(q,$){var X=Q.decompressed.getContentWorker().pipe(new CZ);X.on("error",function(Y){$(Y)}).on("end",function(){if(X.streamInfo.crc32!==Q.decompressed.crc32)$(Error("Corrupted zip : CRC32 mismatch"));else q()}).resume()})}MX.exports=function(Q,q){var $=this;if(q=p4.extend(q||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:PZ.utf8decode}),wX.isNode&&wX.isStream(Q))return T8.Promise.reject(Error("JSZip can't accept a stream when loading a zip file."));return p4.prepareContent("the loaded zip file",Q,!0,q.optimizedBinaryString,q.base64).then(function(X){var Y=new LZ(q);return Y.load(X),Y}).then(function(Y){var U=[T8.Promise.resolve(Y)],J=Y.files;if(q.checkCRC32)for(var K=0;K<J.length;K++)U.push(IZ(J[K]));return T8.Promise.all(U)}).then(function(Y){var U=Y.shift(),J=U.files;for(var K=0;K<J.length;K++){var G=J[K],V=G.fileNameStr,z=p4.resolve(G.fileNameStr);if($.file(z,G.decompressed,{binary:!0,optimizedBinaryString:!0,date:G.date,dir:G.dir,comment:G.fileCommentStr.length?G.fileCommentStr:null,unixPermissions:G.unixPermissions,dosPermissions:G.dosPermissions,createFolders:q.createFolders}),!G.dir)$.file(z).unsafeOriginalName=V}if(U.zipComment.length)$.comment=U.zipComment;return $})}});var CX=k((pP,LX)=>{function q2(){if(!(this instanceof q2))return new q2;if(arguments.length)throw Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var Q=new q2;for(var q in this)if(typeof this[q]!=="function")Q[q]=this[q];return Q}}q2.prototype=r$();q2.prototype.loadAsync=PX();q2.support=T2();q2.defaults=b5();q2.version="3.10.1";q2.loadAsync=function(Q,q){return new q2().loadAsync(Q,q)};q2.external=x1();LX.exports=q2});var pX=k((n4)=>{/*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */var cX;(function(Q){if(typeof DO_NOT_EXPORT_CRC>"u")if(typeof n4==="object")Q(n4);else if(typeof define==="function"&&define.amd)define(function(){var q={};return Q(q),q});else Q(cX={});else Q(cX={})})(function(Q){Q.version="1.2.2";function q(){var E=0,d=Array(256);for(var R=0;R!=256;++R)E=R,E=E&1?-2097792136^E>>>1:E>>>1,E=E&1?-2097792136^E>>>1:E>>>1,E=E&1?-2097792136^E>>>1:E>>>1,E=E&1?-2097792136^E>>>1:E>>>1,E=E&1?-2097792136^E>>>1:E>>>1,E=E&1?-2097792136^E>>>1:E>>>1,E=E&1?-2097792136^E>>>1:E>>>1,E=E&1?-2097792136^E>>>1:E>>>1,d[R]=E;return typeof Int32Array<"u"?new Int32Array(d):d}var $=q();function X(E){var d=0,R=0,x=0,D=typeof Int32Array<"u"?new Int32Array(4096):Array(4096);for(x=0;x!=256;++x)D[x]=E[x];for(x=0;x!=256;++x){R=E[x];for(d=256+x;d<4096;d+=256)R=D[d]=R>>>8^E[R&255]}var L=[];for(x=1;x!=16;++x)L[x-1]=typeof Int32Array<"u"?D.subarray(x*256,x*256+256):D.slice(x*256,x*256+256);return L}var Y=X($),U=Y[0],J=Y[1],K=Y[2],G=Y[3],V=Y[4],z=Y[5],w=Y[6],F=Y[7],Z=Y[8],h=Y[9],g=Y[10],C=Y[11],N=Y[12],W=Y[13],H=Y[14];function M(E,d){var R=d^-1;for(var x=0,D=E.length;x<D;)R=R>>>8^$[(R^E.charCodeAt(x++))&255];return~R}function I(E,d){var R=d^-1,x=E.length-15,D=0;for(;D<x;)R=H[E[D++]^R&255]^W[E[D++]^R>>8&255]^N[E[D++]^R>>16&255]^C[E[D++]^R>>>24]^g[E[D++]]^h[E[D++]]^Z[E[D++]]^F[E[D++]]^w[E[D++]]^z[E[D++]]^V[E[D++]]^G[E[D++]]^K[E[D++]]^J[E[D++]]^U[E[D++]]^$[E[D++]];x+=15;while(D<x)R=R>>>8^$[(R^E[D++])&255];return~R}function f(E,d){var R=d^-1;for(var x=0,D=E.length,L=0,S=0;x<D;)if(L=E.charCodeAt(x++),L<128)R=R>>>8^$[(R^L)&255];else if(L<2048)R=R>>>8^$[(R^(192|L>>6&31))&255],R=R>>>8^$[(R^(128|L&63))&255];else if(L>=55296&&L<57344)L=(L&1023)+64,S=E.charCodeAt(x++)&1023,R=R>>>8^$[(R^(240|L>>8&7))&255],R=R>>>8^$[(R^(128|L>>2&63))&255],R=R>>>8^$[(R^(128|S>>6&15|(L&3)<<4))&255],R=R>>>8^$[(R^(128|S&63))&255];else R=R>>>8^$[(R^(224|L>>12&15))&255],R=R>>>8^$[(R^(128|L>>6&63))&255],R=R>>>8^$[(R^(128|L&63))&255];return~R}Q.table=$,Q.bstr=M,Q.buf=I,Q.str=f})});var R0=k((r4,dX)=>{var g6=function(Q){return Q&&Q.Math===Math&&Q};dX.exports=g6(typeof globalThis=="object"&&globalThis)||g6(typeof window=="object"&&window)||g6(typeof self=="object"&&self)||g6(typeof global=="object"&&global)||g6(typeof r4=="object"&&r4)||function(){return this}()||Function("return this")()});var g2=k((XL,lX)=>{lX.exports=function(Q){try{return!!Q()}catch(q){return!0}}});var r2=k((YL,iX)=>{var bZ=g2();iX.exports=!bZ(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var a4=k((UL,oX)=>{var uZ=g2();oX.exports=!uZ(function(){var Q=function(){}.bind();return typeof Q!="function"||Q.hasOwnProperty("prototype")})});var h8=k((JL,nX)=>{var cZ=a4(),f8=Function.prototype.call;nX.exports=cZ?f8.bind(f8):function(){return f8.apply(f8,arguments)}});var sX=k((mZ)=>{var rX={}.propertyIsEnumerable,aX=Object.getOwnPropertyDescriptor,pZ=aX&&!rX.call({1:2},1);mZ.f=pZ?function(q){var $=aX(this,q);return!!$&&$.enumerable}:rX});var s4=k((VL,tX)=>{tX.exports=function(Q,q){return{enumerable:!(Q&1),configurable:!(Q&2),writable:!(Q&4),value:q}}});var b0=k((zL,qY)=>{var eX=a4(),QY=Function.prototype,t4=QY.call,lZ=eX&&QY.bind.bind(t4,t4);qY.exports=eX?lZ:function(Q){return function(){return t4.apply(Q,arguments)}}});var _8=k((GL,XY)=>{var $Y=b0(),iZ=$Y({}.toString),oZ=$Y("".slice);XY.exports=function(Q){return oZ(iZ(Q),8,-1)}});var UY=k((WL,YY)=>{var nZ=b0(),rZ=g2(),aZ=_8(),e4=Object,sZ=nZ("".split);YY.exports=rZ(function(){return!e4("z").propertyIsEnumerable(0)})?function(Q){return aZ(Q)==="String"?sZ(Q,""):e4(Q)}:e4});var QQ=k((BL,JY)=>{JY.exports=function(Q){return Q===null||Q===void 0}});var qQ=k((ZL,KY)=>{var tZ=QQ(),eZ=TypeError;KY.exports=function(Q){if(tZ(Q))throw new eZ("Can't call method on "+Q);return Q}});var b8=k((jL,VY)=>{var Qj=UY(),qj=qQ();VY.exports=function(Q){return Qj(qj(Q))}});var X2=k((FL,zY)=>{var $Q=typeof document=="object"&&document.all;zY.exports=typeof $Q>"u"&&$Q!==void 0?function(Q){return typeof Q=="function"||Q===$Q}:function(Q){return typeof Q=="function"}});var P1=k((HL,GY)=>{var $j=X2();GY.exports=function(Q){return typeof Q=="object"?Q!==null:$j(Q)}});var YQ=k((wL,WY)=>{var XQ=R0(),Xj=X2(),Yj=function(Q){return Xj(Q)?Q:void 0};WY.exports=function(Q,q){return arguments.length<2?Yj(XQ[Q]):XQ[Q]&&XQ[Q][q]}});var ZY=k((ML,BY)=>{var Uj=b0();BY.exports=Uj({}.isPrototypeOf)});var wY=k((PL,HY)=>{var Jj=R0(),jY=Jj.navigator,FY=jY&&jY.userAgent;HY.exports=FY?String(FY):""});var DY=k((LL,NY)=>{var IY=R0(),UQ=wY(),MY=IY.process,PY=IY.Deno,LY=MY&&MY.versions||PY&&PY.version,CY=LY&&LY.v8,G2,u8;if(CY)G2=CY.split("."),u8=G2[0]>0&&G2[0]<4?1:+(G2[0]+G2[1]);if(!u8&&UQ){if(G2=UQ.match(/Edge\/(\d+)/),!G2||G2[1]>=74){if(G2=UQ.match(/Chrome\/(\d+)/),G2)u8=+G2[1]}}NY.exports=u8});var JQ=k((CL,OY)=>{var AY=DY(),Kj=g2(),Vj=R0(),zj=Vj.String;OY.exports=!!Object.getOwnPropertySymbols&&!Kj(function(){var Q=Symbol("symbol detection");return!zj(Q)||!(Object(Q)instanceof Symbol)||!Symbol.sham&&AY&&AY<41})});var KQ=k((IL,RY)=>{var Gj=JQ();RY.exports=Gj&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var VQ=k((NL,xY)=>{var Wj=YQ(),Bj=X2(),Zj=ZY(),jj=KQ(),Fj=Object;xY.exports=jj?function(Q){return typeof Q=="symbol"}:function(Q){var q=Wj("Symbol");return Bj(q)&&Zj(q.prototype,Fj(Q))}});var vY=k((DL,TY)=>{var Hj=String;TY.exports=function(Q){try{return Hj(Q)}catch(q){return"Object"}}});var zQ=k((AL,EY)=>{var wj=X2(),Mj=vY(),Pj=TypeError;EY.exports=function(Q){if(wj(Q))return Q;throw new Pj(Mj(Q)+" is not a function")}});var kY=k((OL,SY)=>{var Lj=zQ(),Cj=QQ();SY.exports=function(Q,q){var $=Q[q];return Cj($)?void 0:Lj($)}});var yY=k((RL,gY)=>{var GQ=h8(),WQ=X2(),BQ=P1(),Ij=TypeError;gY.exports=function(Q,q){var $,X;if(q==="string"&&WQ($=Q.toString)&&!BQ(X=GQ($,Q)))return X;if(WQ($=Q.valueOf)&&!BQ(X=GQ($,Q)))return X;if(q!=="string"&&WQ($=Q.toString)&&!BQ(X=GQ($,Q)))return X;throw new Ij("Can't convert object to primitive value")}});var hY=k((xL,fY)=>{fY.exports=!1});var c8=k((TL,bY)=>{var _Y=R0(),Nj=Object.defineProperty;bY.exports=function(Q,q){try{Nj(_Y,Q,{value:q,configurable:!0,writable:!0})}catch($){_Y[Q]=q}return q}});var p8=k((vL,pY)=>{var Dj=hY(),Aj=R0(),Oj=c8(),uY="__core-js_shared__",cY=pY.exports=Aj[uY]||Oj(uY,{});(cY.versions||(cY.versions=[])).push({version:"3.47.0",mode:Dj?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.47.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var ZQ=k((EL,dY)=>{var mY=p8();dY.exports=function(Q,q){return mY[Q]||(mY[Q]=q||{})}});var iY=k((SL,lY)=>{var Rj=qQ(),xj=Object;lY.exports=function(Q){return xj(Rj(Q))}});var y2=k((kL,oY)=>{var Tj=b0(),vj=iY(),Ej=Tj({}.hasOwnProperty);oY.exports=Object.hasOwn||function(q,$){return Ej(vj(q),$)}});var jQ=k((gL,nY)=>{var Sj=b0(),kj=0,gj=Math.random(),yj=Sj(1.1 .toString);nY.exports=function(Q){return"Symbol("+(Q===void 0?"":Q)+")_"+yj(++kj+gj,36)}});var m8=k((yL,aY)=>{var fj=R0(),hj=ZQ(),rY=y2(),_j=jQ(),bj=JQ(),uj=KQ(),n1=fj.Symbol,FQ=hj("wks"),cj=uj?n1.for||n1:n1&&n1.withoutSetter||_j;aY.exports=function(Q){if(!rY(FQ,Q))FQ[Q]=bj&&rY(n1,Q)?n1[Q]:cj("Symbol."+Q);return FQ[Q]}});var QU=k((fL,eY)=>{var pj=h8(),sY=P1(),tY=VQ(),mj=kY(),dj=yY(),lj=m8(),ij=TypeError,oj=lj("toPrimitive");eY.exports=function(Q,q){if(!sY(Q)||tY(Q))return Q;var $=mj(Q,oj),X;if($){if(q===void 0)q="default";if(X=pj($,Q,q),!sY(X)||tY(X))return X;throw new ij("Can't convert object to primitive value")}if(q===void 0)q="number";return dj(Q,q)}});var HQ=k((hL,qU)=>{var nj=QU(),rj=VQ();qU.exports=function(Q){var q=nj(Q,"string");return rj(q)?q:q+""}});var YU=k((_L,XU)=>{var aj=R0(),$U=P1(),wQ=aj.document,sj=$U(wQ)&&$U(wQ.createElement);XU.exports=function(Q){return sj?wQ.createElement(Q):{}}});var MQ=k((bL,UU)=>{var tj=r2(),ej=g2(),QF=YU();UU.exports=!tj&&!ej(function(){return Object.defineProperty(QF("div"),"a",{get:function(){return 7}}).a!==7})});var PQ=k((zF)=>{var qF=r2(),$F=h8(),XF=sX(),YF=s4(),UF=b8(),JF=HQ(),KF=y2(),VF=MQ(),JU=Object.getOwnPropertyDescriptor;zF.f=qF?JU:function(q,$){if(q=UF(q),$=JF($),VF)try{return JU(q,$)}catch(X){}if(KF(q,$))return YF(!$F(XF.f,q,$),q[$])}});var VU=k((cL,KU)=>{var WF=r2(),BF=g2();KU.exports=WF&&BF(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var LQ=k((pL,zU)=>{var ZF=P1(),jF=String,FF=TypeError;zU.exports=function(Q){if(ZF(Q))return Q;throw new FF(jF(Q)+" is not an object")}});var l8=k((CF)=>{var HF=r2(),wF=MQ(),MF=VU(),d8=LQ(),GU=HQ(),PF=TypeError,CQ=Object.defineProperty,LF=Object.getOwnPropertyDescriptor,IQ="enumerable",NQ="configurable",DQ="writable";CF.f=HF?MF?function(q,$,X){if(d8(q),$=GU($),d8(X),typeof q==="function"&&$==="prototype"&&"value"in X&&DQ in X&&!X[DQ]){var Y=LF(q,$);if(Y&&Y[DQ])q[$]=X.value,X={configurable:NQ in X?X[NQ]:Y[NQ],enumerable:IQ in X?X[IQ]:Y[IQ],writable:!1}}return CQ(q,$,X)}:CQ:function(q,$,X){if(d8(q),$=GU($),d8(X),wF)try{return CQ(q,$,X)}catch(Y){}if("get"in X||"set"in X)throw new PF("Accessors not supported");if("value"in X)q[$]=X.value;return q}});var AQ=k((dL,WU)=>{var NF=r2(),DF=l8(),AF=s4();WU.exports=NF?function(Q,q,$){return DF.f(Q,q,AF(1,$))}:function(Q,q,$){return Q[q]=$,Q}});var jU=k((lL,ZU)=>{var OQ=r2(),OF=y2(),BU=Function.prototype,RF=OQ&&Object.getOwnPropertyDescriptor,RQ=OF(BU,"name"),xF=RQ&&function(){}.name==="something",TF=RQ&&(!OQ||OQ&&RF(BU,"name").configurable);ZU.exports={EXISTS:RQ,PROPER:xF,CONFIGURABLE:TF}});var HU=k((iL,FU)=>{var vF=b0(),EF=X2(),xQ=p8(),SF=vF(Function.toString);if(!EF(xQ.inspectSource))xQ.inspectSource=function(Q){return SF(Q)};FU.exports=xQ.inspectSource});var PU=k((oL,MU)=>{var kF=R0(),gF=X2(),wU=kF.WeakMap;MU.exports=gF(wU)&&/native code/.test(String(wU))});var IU=k((nL,CU)=>{var yF=ZQ(),fF=jQ(),LU=yF("keys");CU.exports=function(Q){return LU[Q]||(LU[Q]=fF(Q))}});var TQ=k((rL,NU)=>{NU.exports={}});var RU=k((aL,OU)=>{var hF=PU(),AU=R0(),_F=P1(),bF=AQ(),vQ=y2(),EQ=p8(),uF=IU(),cF=TQ(),DU="Object already initialized",SQ=AU.TypeError,pF=AU.WeakMap,i8,y6,o8,mF=function(Q){return o8(Q)?y6(Q):i8(Q,{})},dF=function(Q){return function(q){var $;if(!_F(q)||($=y6(q)).type!==Q)throw new SQ("Incompatible receiver, "+Q+" required");return $}};if(hF||EQ.state)Y2=EQ.state||(EQ.state=new pF),Y2.get=Y2.get,Y2.has=Y2.has,Y2.set=Y2.set,i8=function(Q,q){if(Y2.has(Q))throw new SQ(DU);return q.facade=Q,Y2.set(Q,q),q},y6=function(Q){return Y2.get(Q)||{}},o8=function(Q){return Y2.has(Q)};else a2=uF("state"),cF[a2]=!0,i8=function(Q,q){if(vQ(Q,a2))throw new SQ(DU);return q.facade=Q,bF(Q,a2,q),q},y6=function(Q){return vQ(Q,a2)?Q[a2]:{}},o8=function(Q){return vQ(Q,a2)};var Y2,a2;OU.exports={set:i8,get:y6,has:o8,enforce:mF,getterFor:dF}});var EU=k((sL,vU)=>{var gQ=b0(),lF=g2(),iF=X2(),n8=y2(),kQ=r2(),oF=jU().CONFIGURABLE,nF=HU(),TU=RU(),rF=TU.enforce,aF=TU.get,xU=String,r8=Object.defineProperty,sF=gQ("".slice),tF=gQ("".replace),eF=gQ([].join),QH=kQ&&!lF(function(){return r8(function(){},"length",{value:8}).length!==8}),qH=String(String).split("String"),$H=vU.exports=function(Q,q,$){if(sF(xU(q),0,7)==="Symbol(")q="["+tF(xU(q),/^Symbol\(([^)]*)\).*$/,"$1")+"]";if($&&$.getter)q="get "+q;if($&&$.setter)q="set "+q;if(!n8(Q,"name")||oF&&Q.name!==q)if(kQ)r8(Q,"name",{value:q,configurable:!0});else Q.name=q;if(QH&&$&&n8($,"arity")&&Q.length!==$.arity)r8(Q,"length",{value:$.arity});try{if($&&n8($,"constructor")&&$.constructor){if(kQ)r8(Q,"prototype",{writable:!1})}else if(Q.prototype)Q.prototype=void 0}catch(Y){}var X=rF(Q);if(!n8(X,"source"))X.source=eF(qH,typeof q=="string"?q:"");return Q};Function.prototype.toString=$H(function(){return iF(this)&&aF(this).source||nF(this)},"toString")});var kU=k((tL,SU)=>{var XH=X2(),YH=l8(),UH=EU(),JH=c8();SU.exports=function(Q,q,$,X){if(!X)X={};var Y=X.enumerable,U=X.name!==void 0?X.name:q;if(XH($))UH($,U,X);if(X.global)if(Y)Q[q]=$;else JH(q,$);else{try{if(!X.unsafe)delete Q[q];else if(Q[q])Y=!0}catch(J){}if(Y)Q[q]=$;else YH.f(Q,q,{value:$,enumerable:!1,configurable:!X.nonConfigurable,writable:!X.nonWritable})}return Q}});var yU=k((eL,gU)=>{var{ceil:KH,floor:VH}=Math;gU.exports=Math.trunc||function(q){var $=+q;return($>0?VH:KH)($)}});var yQ=k((QC,fU)=>{var zH=yU();fU.exports=function(Q){var q=+Q;return q!==q||q===0?0:zH(q)}});var _U=k((qC,hU)=>{var GH=yQ(),WH=Math.max,BH=Math.min;hU.exports=function(Q,q){var $=GH(Q);return $<0?WH($+q,0):BH($,q)}});var uU=k(($C,bU)=>{var ZH=yQ(),jH=Math.min;bU.exports=function(Q){var q=ZH(Q);return q>0?jH(q,9007199254740991):0}});var fQ=k((XC,cU)=>{var FH=uU();cU.exports=function(Q){return FH(Q.length)}});var dU=k((YC,mU)=>{var HH=b8(),wH=_U(),MH=fQ(),pU=function(Q){return function(q,$,X){var Y=HH(q),U=MH(Y);if(U===0)return!Q&&-1;var J=wH(X,U),K;if(Q&&$!==$){while(U>J)if(K=Y[J++],K!==K)return!0}else for(;U>J;J++)if((Q||(J in Y))&&Y[J]===$)return Q||J||0;return!Q&&-1}};mU.exports={includes:pU(!0),indexOf:pU(!1)}});var oU=k((UC,iU)=>{var PH=b0(),hQ=y2(),LH=b8(),CH=dU().indexOf,IH=TQ(),lU=PH([].push);iU.exports=function(Q,q){var $=LH(Q),X=0,Y=[],U;for(U in $)!hQ(IH,U)&&hQ($,U)&&lU(Y,U);while(q.length>X)if(hQ($,U=q[X++]))~CH(Y,U)||lU(Y,U);return Y}});var rU=k((JC,nU)=>{nU.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var aU=k((OH)=>{var NH=oU(),DH=rU(),AH=DH.concat("length","prototype");OH.f=Object.getOwnPropertyNames||function(q){return NH(q,AH)}});var sU=k((xH)=>{xH.f=Object.getOwnPropertySymbols});var eU=k((zC,tU)=>{var vH=YQ(),EH=b0(),SH=aU(),kH=sU(),gH=LQ(),yH=EH([].concat);tU.exports=vH("Reflect","ownKeys")||function(q){var $=SH.f(gH(q)),X=kH.f;return X?yH($,X(q)):$}});var $J=k((GC,qJ)=>{var QJ=y2(),fH=eU(),hH=PQ(),_H=l8();qJ.exports=function(Q,q,$){var X=fH(q),Y=_H.f,U=hH.f;for(var J=0;J<X.length;J++){var K=X[J];if(!QJ(Q,K)&&!($&&QJ($,K)))Y(Q,K,U(q,K))}}});var YJ=k((WC,XJ)=>{var bH=g2(),uH=X2(),cH=/#|\.prototype\./,f6=function(Q,q){var $=mH[pH(Q)];return $===lH?!0:$===dH?!1:uH(q)?bH(q):!!q},pH=f6.normalize=function(Q){return String(Q).replace(cH,".").toLowerCase()},mH=f6.data={},dH=f6.NATIVE="N",lH=f6.POLYFILL="P";XJ.exports=f6});var L1=k((BC,UJ)=>{var a8=R0(),iH=PQ().f,oH=AQ(),nH=kU(),rH=c8(),aH=$J(),sH=YJ();UJ.exports=function(Q,q){var{target:$,global:X,stat:Y}=Q,U,J,K,G,V,z;if(X)J=a8;else if(Y)J=a8[$]||rH($,{});else J=a8[$]&&a8[$].prototype;if(J)for(K in q){if(V=q[K],Q.dontCallGetSet)z=iH(J,K),G=z&&z.value;else G=J[K];if(U=sH(X?K:$+(Y?".":"#")+K,Q.forced),!U&&G!==void 0){if(typeof V==typeof G)continue;aH(V,G)}if(Q.sham||G&&G.sham)oH(V,"sham",!0);nH(J,K,V,Q)}}});var KJ=k((ZC,JJ)=>{var tH=fQ();JJ.exports=function(Q,q,$){var X=0,Y=arguments.length>2?$:tH(q),U=new Q(Y);while(Y>X)U[X]=q[X++];return U}});var _Q=k((jC,VJ)=>{var eH=P1(),Qw=String,qw=TypeError;VJ.exports=function(Q){if(Q===void 0||eH(Q))return Q;throw new qw(Qw(Q)+" is not an object or undefined")}});var s8=k((FC,zJ)=>{var $w=TypeError;zJ.exports=function(Q){if(typeof Q=="string")return Q;throw new $w("Argument is not a string")}});var bQ=k((HC,jJ)=>{var ZJ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",GJ=ZJ+"+/",WJ=ZJ+"-_",BJ=function(Q){var q={},$=0;for(;$<64;$++)q[Q.charAt($)]=$;return q};jJ.exports={i2c:GJ,c2i:BJ(GJ),i2cUrl:WJ,c2iUrl:BJ(WJ)}});var uQ=k((wC,FJ)=>{var Xw=TypeError;FJ.exports=function(Q){var q=Q&&Q.alphabet;if(q===void 0||q==="base64"||q==="base64url")return q||"base64";throw new Xw("Incorrect `alphabet` option")}});var wJ=k((MC,HJ)=>{HJ.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"});var PJ=k((PC,MJ)=>{var Yw=b0(),Uw=zQ();MJ.exports=function(Q,q,$){try{return Yw(Uw(Object.getOwnPropertyDescriptor(Q,q)[$]))}catch(X){}}});var NJ=k((LC,IJ)=>{var CJ=R0(),Jw=PJ(),Kw=_8(),LJ=CJ.ArrayBuffer,Vw=CJ.TypeError;IJ.exports=LJ&&Jw(LJ.prototype,"byteLength","get")||function(Q){if(Kw(Q)!=="ArrayBuffer")throw new Vw("ArrayBuffer expected");return Q.byteLength}});var AJ=k((CC,DJ)=>{var zw=R0(),Gw=wJ(),Ww=NJ(),Bw=zw.DataView;DJ.exports=function(Q){if(!Gw||Ww(Q)!==0)return!1;try{return new Bw(Q),!1}catch(q){return!0}}});var h6=k((IC,OJ)=>{var Zw=AJ(),jw=TypeError;OJ.exports=function(Q){if(Zw(Q))throw new jw("ArrayBuffer is detached");return Q}});var dQ=k((NC,TJ)=>{var RJ=R0(),Fw=b0(),Hw=_Q(),ww=s8(),Mw=y2(),xJ=bQ(),Pw=uQ(),Lw=h6(),Cw=xJ.c2i,Iw=xJ.c2iUrl,s2=RJ.SyntaxError,Nw=RJ.TypeError,C1=Fw("".charAt),cQ=function(Q,q){var $=Q.length;for(;q<$;q++){var X=C1(Q,q);if(X!==" "&&X!=="\t"&&X!==`
|
|
4
|
-
`&&X!=="\f"&&X!=="\r")break}return q},pQ=function(Q,q,$){var X=Q.length;if(X<4)Q+=X===2?"AA":"A";var Y=(q[C1(Q,0)]<<18)+(q[C1(Q,1)]<<12)+(q[C1(Q,2)]<<6)+q[C1(Q,3)],U=[Y>>16&255,Y>>8&255,Y&255];if(X===2){if($&&U[1]!==0)throw new s2("Extra bits");return[U[0]]}if(X===3){if($&&U[2]!==0)throw new s2("Extra bits");return[U[0],U[1]]}return U},mQ=function(Q,q,$){var X=q.length;for(var Y=0;Y<X;Y++)Q[$+Y]=q[Y];return $+X};TJ.exports=function(Q,q,$,X){ww(Q),Hw(q);var Y=Pw(q)==="base64"?Cw:Iw,U=q?q.lastChunkHandling:void 0;if(U===void 0)U="loose";if(U!=="loose"&&U!=="strict"&&U!=="stop-before-partial")throw new Nw("Incorrect `lastChunkHandling` option");if($)Lw($.buffer);var J=Q.length,K=$||[],G=0,V=0,z="",w=0;if(X)while(!0){if(w=cQ(Q,w),w===J){if(z.length>0){if(U==="stop-before-partial")break;if(U==="loose"){if(z.length===1)throw new s2("Malformed padding: exactly one additional character");G=mQ(K,pQ(z,Y,!1),G)}else throw new s2("Missing padding")}V=J;break}var F=C1(Q,w);if(++w,F==="="){if(z.length<2)throw new s2("Padding is too early");if(w=cQ(Q,w),z.length===2){if(w===J){if(U==="stop-before-partial")break;throw new s2("Malformed padding: only one =")}if(C1(Q,w)==="=")++w,w=cQ(Q,w)}if(w<J)throw new s2("Unexpected character after padding");G=mQ(K,pQ(z,Y,U==="strict"),G),V=J;break}if(!Mw(Y,F))throw new s2("Unexpected character");var Z=X-G;if(Z===1&&z.length===2||Z===2&&z.length===3)break;if(z+=F,z.length===4){if(G=mQ(K,pQ(z,Y,!1),G),z="",V=w,G===X)break}}return{bytes:K,read:V,written:G}}});var vJ=k(()=>{var Dw=L1(),Aw=R0(),Ow=KJ(),Rw=dQ(),
|
|
1
|
+
var jK=Object.create;var{getPrototypeOf:FK,defineProperty:t1,getOwnPropertyNames:J7,getOwnPropertyDescriptor:HK}=Object,K7=Object.prototype.hasOwnProperty;var V5=(Q,q,$)=>{$=Q!=null?jK(FK(Q)):{};let X=q||!Q||!Q.__esModule?t1($,"default",{value:Q,enumerable:!0}):$;for(let Y of J7(Q))if(!K7.call(X,Y))t1(X,Y,{get:()=>Q[Y],enumerable:!0});return X},U7=new WeakMap,a0=(Q)=>{var q=U7.get(Q),$;if(q)return q;if(q=t1({},"__esModule",{value:!0}),Q&&typeof Q==="object"||typeof Q==="function")J7(Q).map((X)=>!K7.call(q,X)&&t1(q,X,{get:()=>Q[X],enumerable:!($=HK(Q,X))||$.enumerable}));return U7.set(Q,q),q},k=(Q,q)=>()=>(q||Q((q={exports:{}}).exports,q),q.exports);var V7=(Q,q)=>{for(var $ in q)t1(Q,$,{get:q[$],enumerable:!0,configurable:!0,set:(X)=>q[$]=()=>X})};var z7=(Q,q)=>()=>(Q&&(q=Q(Q=0)),q);var A2={};V7(A2,{transcode:()=>qV,resolveObjectURL:()=>tK,kStringMaxLength:()=>M7,kMaxLength:()=>e1,isUtf8:()=>eK,isAscii:()=>QV,default:()=>$V,constants:()=>OK,btoa:()=>IK,atob:()=>NK,INSPECT_MAX_BYTES:()=>w7,File:()=>DK,Buffer:()=>_,Blob:()=>AK});function wK(Q){var q=Q.length;if(q%4>0)throw Error("Invalid string. Length must be a multiple of 4");var $=Q.indexOf("=");if($===-1)$=q;var X=$===q?0:4-$%4;return[$,X]}function MK(Q,q){return(Q+q)*3/4-q}function PK(Q){var q,$=wK(Q),X=$[0],Y=$[1],U=new Uint8Array(MK(X,Y)),J=0,K=Y>0?X-4:X,G;for(G=0;G<K;G+=4)q=s0[Q.charCodeAt(G)]<<18|s0[Q.charCodeAt(G+1)]<<12|s0[Q.charCodeAt(G+2)]<<6|s0[Q.charCodeAt(G+3)],U[J++]=q>>16&255,U[J++]=q>>8&255,U[J++]=q&255;if(Y===2)q=s0[Q.charCodeAt(G)]<<2|s0[Q.charCodeAt(G+1)]>>4,U[J++]=q&255;if(Y===1)q=s0[Q.charCodeAt(G)]<<10|s0[Q.charCodeAt(G+1)]<<4|s0[Q.charCodeAt(G+2)]>>2,U[J++]=q>>8&255,U[J++]=q&255;return U}function LK(Q){return B2[Q>>18&63]+B2[Q>>12&63]+B2[Q>>6&63]+B2[Q&63]}function CK(Q,q,$){var X,Y=[];for(var U=q;U<$;U+=3)X=(Q[U]<<16&16711680)+(Q[U+1]<<8&65280)+(Q[U+2]&255),Y.push(LK(X));return Y.join("")}function W7(Q){var q,$=Q.length,X=$%3,Y=[],U=16383;for(var J=0,K=$-X;J<K;J+=U)Y.push(CK(Q,J,J+U>K?K:J+U));if(X===1)q=Q[$-1],Y.push(B2[q>>2]+B2[q<<4&63]+"==");else if(X===2)q=(Q[$-2]<<8)+Q[$-1],Y.push(B2[q>>10]+B2[q>>4&63]+B2[q<<2&63]+"=");return Y.join("")}function b6(Q,q,$,X,Y){var U,J,K=Y*8-X-1,G=(1<<K)-1,V=G>>1,z=-7,w=$?Y-1:0,F=$?-1:1,Z=Q[q+w];w+=F,U=Z&(1<<-z)-1,Z>>=-z,z+=K;for(;z>0;U=U*256+Q[q+w],w+=F,z-=8);J=U&(1<<-z)-1,U>>=-z,z+=X;for(;z>0;J=J*256+Q[q+w],w+=F,z-=8);if(U===0)U=1-V;else if(U===G)return J?NaN:(Z?-1:1)*(1/0);else J=J+Math.pow(2,X),U=U-V;return(Z?-1:1)*J*Math.pow(2,U-X)}function H7(Q,q,$,X,Y,U){var J,K,G,V=U*8-Y-1,z=(1<<V)-1,w=z>>1,F=Y===23?Math.pow(2,-24)-Math.pow(2,-77):0,Z=X?0:U-1,h=X?1:-1,g=q<0||q===0&&1/q<0?1:0;if(q=Math.abs(q),isNaN(q)||q===1/0)K=isNaN(q)?1:0,J=z;else{if(J=Math.floor(Math.log(q)/Math.LN2),q*(G=Math.pow(2,-J))<1)J--,G*=2;if(J+w>=1)q+=F/G;else q+=F*Math.pow(2,1-w);if(q*G>=2)J++,G/=2;if(J+w>=z)K=0,J=z;else if(J+w>=1)K=(q*G-1)*Math.pow(2,Y),J=J+w;else K=q*Math.pow(2,w-1)*Math.pow(2,Y),J=0}for(;Y>=8;Q[$+Z]=K&255,Z+=h,K/=256,Y-=8);J=J<<Y|K,V+=Y;for(;V>0;Q[$+Z]=J&255,Z+=h,J/=256,V-=8);Q[$+Z-h]|=g*128}function D2(Q){if(Q>e1)throw RangeError('The value "'+Q+'" is invalid for option "size"');let q=new Uint8Array(Q);return Object.setPrototypeOf(q,_.prototype),q}function j5(Q,q,$){return class extends ${constructor(){super();Object.defineProperty(this,"message",{value:q.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${Q}]`,this.stack,delete this.name}get code(){return Q}set code(X){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:X,writable:!0})}toString(){return`${this.name} [${Q}]: ${this.message}`}}}function _(Q,q,$){if(typeof Q==="number"){if(typeof q==="string")throw TypeError('The "string" argument must be of type string. Received type number');return F5(Q)}return P7(Q,q,$)}function P7(Q,q,$){if(typeof Q==="string")return vK(Q,q);if(ArrayBuffer.isView(Q))return EK(Q);if(Q==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Q);if(Z2(Q,ArrayBuffer)||Q&&Z2(Q.buffer,ArrayBuffer))return B5(Q,q,$);if(typeof SharedArrayBuffer<"u"&&(Z2(Q,SharedArrayBuffer)||Q&&Z2(Q.buffer,SharedArrayBuffer)))return B5(Q,q,$);if(typeof Q==="number")throw TypeError('The "value" argument must not be of type number. Received type number');let X=Q.valueOf&&Q.valueOf();if(X!=null&&X!==Q)return _.from(X,q,$);let Y=SK(Q);if(Y)return Y;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Q[Symbol.toPrimitive]==="function")return _.from(Q[Symbol.toPrimitive]("string"),q,$);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Q)}function L7(Q){if(typeof Q!=="number")throw TypeError('"size" argument must be of type number');else if(Q<0)throw RangeError('The value "'+Q+'" is invalid for option "size"')}function TK(Q,q,$){if(L7(Q),Q<=0)return D2(Q);if(q!==void 0)return typeof $==="string"?D2(Q).fill(q,$):D2(Q).fill(q);return D2(Q)}function F5(Q){return L7(Q),D2(Q<0?0:H5(Q)|0)}function vK(Q,q){if(typeof q!=="string"||q==="")q="utf8";if(!_.isEncoding(q))throw TypeError("Unknown encoding: "+q);let $=C7(Q,q)|0,X=D2($),Y=X.write(Q,q);if(Y!==$)X=X.slice(0,Y);return X}function W5(Q){let q=Q.length<0?0:H5(Q.length)|0,$=D2(q);for(let X=0;X<q;X+=1)$[X]=Q[X]&255;return $}function EK(Q){if(Z2(Q,Uint8Array)){let q=new Uint8Array(Q);return B5(q.buffer,q.byteOffset,q.byteLength)}return W5(Q)}function B5(Q,q,$){if(q<0||Q.byteLength<q)throw RangeError('"offset" is outside of buffer bounds');if(Q.byteLength<q+($||0))throw RangeError('"length" is outside of buffer bounds');let X;if(q===void 0&&$===void 0)X=new Uint8Array(Q);else if($===void 0)X=new Uint8Array(Q,q);else X=new Uint8Array(Q,q,$);return Object.setPrototypeOf(X,_.prototype),X}function SK(Q){if(_.isBuffer(Q)){let q=H5(Q.length)|0,$=D2(q);if($.length===0)return $;return Q.copy($,0,0,q),$}if(Q.length!==void 0){if(typeof Q.length!=="number"||Number.isNaN(Q.length))return D2(0);return W5(Q)}if(Q.type==="Buffer"&&Array.isArray(Q.data))return W5(Q.data)}function H5(Q){if(Q>=e1)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+e1.toString(16)+" bytes");return Q|0}function C7(Q,q){if(_.isBuffer(Q))return Q.length;if(ArrayBuffer.isView(Q)||Z2(Q,ArrayBuffer))return Q.byteLength;if(typeof Q!=="string")throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Q);let $=Q.length,X=arguments.length>2&&arguments[2]===!0;if(!X&&$===0)return 0;let Y=!1;for(;;)switch(q){case"ascii":case"latin1":case"binary":return $;case"utf8":case"utf-8":return Z5(Q).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $*2;case"hex":return $>>>1;case"base64":return v7(Q).length;default:if(Y)return X?-1:Z5(Q).length;q=(""+q).toLowerCase(),Y=!0}}function kK(Q,q,$){let X=!1;if(q===void 0||q<0)q=0;if(q>this.length)return"";if($===void 0||$>this.length)$=this.length;if($<=0)return"";if($>>>=0,q>>>=0,$<=q)return"";if(!Q)Q="utf8";while(!0)switch(Q){case"hex":return mK(this,q,$);case"utf8":case"utf-8":return N7(this,q,$);case"ascii":return cK(this,q,$);case"latin1":case"binary":return pK(this,q,$);case"base64":return bK(this,q,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return dK(this,q,$);default:if(X)throw TypeError("Unknown encoding: "+Q);Q=(Q+"").toLowerCase(),X=!0}}function X1(Q,q,$){let X=Q[q];Q[q]=Q[$],Q[$]=X}function I7(Q,q,$,X,Y){if(Q.length===0)return-1;if(typeof $==="string")X=$,$=0;else if($>2147483647)$=2147483647;else if($<-2147483648)$=-2147483648;if($=+$,Number.isNaN($))$=Y?0:Q.length-1;if($<0)$=Q.length+$;if($>=Q.length)if(Y)return-1;else $=Q.length-1;else if($<0)if(Y)$=0;else return-1;if(typeof q==="string")q=_.from(q,X);if(_.isBuffer(q)){if(q.length===0)return-1;return Z7(Q,q,$,X,Y)}else if(typeof q==="number"){if(q=q&255,typeof Uint8Array.prototype.indexOf==="function")if(Y)return Uint8Array.prototype.indexOf.call(Q,q,$);else return Uint8Array.prototype.lastIndexOf.call(Q,q,$);return Z7(Q,[q],$,X,Y)}throw TypeError("val must be string, number or Buffer")}function Z7(Q,q,$,X,Y){let U=1,J=Q.length,K=q.length;if(X!==void 0){if(X=String(X).toLowerCase(),X==="ucs2"||X==="ucs-2"||X==="utf16le"||X==="utf-16le"){if(Q.length<2||q.length<2)return-1;U=2,J/=2,K/=2,$/=2}}function G(z,w){if(U===1)return z[w];else return z.readUInt16BE(w*U)}let V;if(Y){let z=-1;for(V=$;V<J;V++)if(G(Q,V)===G(q,z===-1?0:V-z)){if(z===-1)z=V;if(V-z+1===K)return z*U}else{if(z!==-1)V-=V-z;z=-1}}else{if($+K>J)$=J-K;for(V=$;V>=0;V--){let z=!0;for(let w=0;w<K;w++)if(G(Q,V+w)!==G(q,w)){z=!1;break}if(z)return V}}return-1}function gK(Q,q,$,X){$=Number($)||0;let Y=Q.length-$;if(!X)X=Y;else if(X=Number(X),X>Y)X=Y;let U=q.length;if(X>U/2)X=U/2;let J;for(J=0;J<X;++J){let K=parseInt(q.substr(J*2,2),16);if(Number.isNaN(K))return J;Q[$+J]=K}return J}function yK(Q,q,$,X){return u6(Z5(q,Q.length-$),Q,$,X)}function fK(Q,q,$,X){return u6(nK(q),Q,$,X)}function hK(Q,q,$,X){return u6(v7(q),Q,$,X)}function _K(Q,q,$,X){return u6(rK(q,Q.length-$),Q,$,X)}function bK(Q,q,$){if(q===0&&$===Q.length)return W7(Q);else return W7(Q.slice(q,$))}function N7(Q,q,$){$=Math.min(Q.length,$);let X=[],Y=q;while(Y<$){let U=Q[Y],J=null,K=U>239?4:U>223?3:U>191?2:1;if(Y+K<=$){let G,V,z,w;switch(K){case 1:if(U<128)J=U;break;case 2:if(G=Q[Y+1],(G&192)===128){if(w=(U&31)<<6|G&63,w>127)J=w}break;case 3:if(G=Q[Y+1],V=Q[Y+2],(G&192)===128&&(V&192)===128){if(w=(U&15)<<12|(G&63)<<6|V&63,w>2047&&(w<55296||w>57343))J=w}break;case 4:if(G=Q[Y+1],V=Q[Y+2],z=Q[Y+3],(G&192)===128&&(V&192)===128&&(z&192)===128){if(w=(U&15)<<18|(G&63)<<12|(V&63)<<6|z&63,w>65535&&w<1114112)J=w}}}if(J===null)J=65533,K=1;else if(J>65535)J-=65536,X.push(J>>>10&1023|55296),J=56320|J&1023;X.push(J),Y+=K}return uK(X)}function uK(Q){let q=Q.length;if(q<=j7)return String.fromCharCode.apply(String,Q);let $="",X=0;while(X<q)$+=String.fromCharCode.apply(String,Q.slice(X,X+=j7));return $}function cK(Q,q,$){let X="";$=Math.min(Q.length,$);for(let Y=q;Y<$;++Y)X+=String.fromCharCode(Q[Y]&127);return X}function pK(Q,q,$){let X="";$=Math.min(Q.length,$);for(let Y=q;Y<$;++Y)X+=String.fromCharCode(Q[Y]);return X}function mK(Q,q,$){let X=Q.length;if(!q||q<0)q=0;if(!$||$<0||$>X)$=X;let Y="";for(let U=q;U<$;++U)Y+=aK[Q[U]];return Y}function dK(Q,q,$){let X=Q.slice(q,$),Y="";for(let U=0;U<X.length-1;U+=2)Y+=String.fromCharCode(X[U]+X[U+1]*256);return Y}function v0(Q,q,$){if(Q%1!==0||Q<0)throw RangeError("offset is not uint");if(Q+q>$)throw RangeError("Trying to access beyond buffer length")}function c0(Q,q,$,X,Y,U){if(!_.isBuffer(Q))throw TypeError('"buffer" argument must be a Buffer instance');if(q>Y||q<U)throw RangeError('"value" argument is out of bounds');if($+X>Q.length)throw RangeError("Index out of range")}function D7(Q,q,$,X,Y){T7(q,X,Y,Q,$,7);let U=Number(q&BigInt(4294967295));Q[$++]=U,U=U>>8,Q[$++]=U,U=U>>8,Q[$++]=U,U=U>>8,Q[$++]=U;let J=Number(q>>BigInt(32)&BigInt(4294967295));return Q[$++]=J,J=J>>8,Q[$++]=J,J=J>>8,Q[$++]=J,J=J>>8,Q[$++]=J,$}function A7(Q,q,$,X,Y){T7(q,X,Y,Q,$,7);let U=Number(q&BigInt(4294967295));Q[$+7]=U,U=U>>8,Q[$+6]=U,U=U>>8,Q[$+5]=U,U=U>>8,Q[$+4]=U;let J=Number(q>>BigInt(32)&BigInt(4294967295));return Q[$+3]=J,J=J>>8,Q[$+2]=J,J=J>>8,Q[$+1]=J,J=J>>8,Q[$]=J,$+8}function O7(Q,q,$,X,Y,U){if($+X>Q.length)throw RangeError("Index out of range");if($<0)throw RangeError("Index out of range")}function R7(Q,q,$,X,Y){if(q=+q,$=$>>>0,!Y)O7(Q,q,$,4,340282346638528860000000000000000000000,-340282346638528860000000000000000000000);return H7(Q,q,$,X,23,4),$+4}function x7(Q,q,$,X,Y){if(q=+q,$=$>>>0,!Y)O7(Q,q,$,8,179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,-179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000);return H7(Q,q,$,X,52,8),$+8}function F7(Q){let q="",$=Q.length,X=Q[0]==="-"?1:0;for(;$>=X+4;$-=3)q=`_${Q.slice($-3,$)}${q}`;return`${Q.slice(0,$)}${q}`}function lK(Q,q,$){if(D1(q,"offset"),Q[q]===void 0||Q[q+$]===void 0)Q6(q,Q.length-($+1))}function T7(Q,q,$,X,Y,U){if(Q>$||Q<q){let J=typeof q==="bigint"?"n":"",K;if(U>3)if(q===0||q===BigInt(0))K=`>= 0${J} and < 2${J} ** ${(U+1)*8}${J}`;else K=`>= -(2${J} ** ${(U+1)*8-1}${J}) and < 2 ** ${(U+1)*8-1}${J}`;else K=`>= ${q}${J} and <= ${$}${J}`;throw new G5("value",K,Q)}lK(X,Y,U)}function D1(Q,q){if(typeof Q!=="number")throw new xK(q,"number",Q)}function Q6(Q,q,$){if(Math.floor(Q)!==Q)throw D1(Q,$),new G5($||"offset","an integer",Q);if(q<0)throw new RK;throw new G5($||"offset",`>= ${$?1:0} and <= ${q}`,Q)}function oK(Q){if(Q=Q.split("=")[0],Q=Q.trim().replace(iK,""),Q.length<2)return"";while(Q.length%4!==0)Q=Q+"=";return Q}function Z5(Q,q){q=q||1/0;let $,X=Q.length,Y=null,U=[];for(let J=0;J<X;++J){if($=Q.charCodeAt(J),$>55295&&$<57344){if(!Y){if($>56319){if((q-=3)>-1)U.push(239,191,189);continue}else if(J+1===X){if((q-=3)>-1)U.push(239,191,189);continue}Y=$;continue}if($<56320){if((q-=3)>-1)U.push(239,191,189);Y=$;continue}$=(Y-55296<<10|$-56320)+65536}else if(Y){if((q-=3)>-1)U.push(239,191,189)}if(Y=null,$<128){if((q-=1)<0)break;U.push($)}else if($<2048){if((q-=2)<0)break;U.push($>>6|192,$&63|128)}else if($<65536){if((q-=3)<0)break;U.push($>>12|224,$>>6&63|128,$&63|128)}else if($<1114112){if((q-=4)<0)break;U.push($>>18|240,$>>12&63|128,$>>6&63|128,$&63|128)}else throw Error("Invalid code point")}return U}function nK(Q){let q=[];for(let $=0;$<Q.length;++$)q.push(Q.charCodeAt($)&255);return q}function rK(Q,q){let $,X,Y,U=[];for(let J=0;J<Q.length;++J){if((q-=2)<0)break;$=Q.charCodeAt(J),X=$>>8,Y=$%256,U.push(Y),U.push(X)}return U}function v7(Q){return PK(oK(Q))}function u6(Q,q,$,X){let Y;for(Y=0;Y<X;++Y){if(Y+$>=q.length||Y>=Q.length)break;q[Y+$]=Q[Y]}return Y}function Z2(Q,q){return Q instanceof q||Q!=null&&Q.constructor!=null&&Q.constructor.name!=null&&Q.constructor.name===q.name}function f2(Q){return typeof BigInt>"u"?sK:Q}function sK(){throw Error("BigInt not supported")}function w5(Q){return()=>{throw Error(Q+" is not implemented for node:buffer browser polyfill")}}var B2,s0,z5="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$1,G7,B7,w7=50,e1=2147483647,M7=536870888,IK,NK,DK,AK,OK,RK,xK,G5,j7=4096,iK,aK,tK,eK,QV=(Q)=>{for(let q of Q)if(q.charCodeAt(0)>127)return!1;return!0},qV,$V;var O2=z7(()=>{B2=[],s0=[];for($1=0,G7=z5.length;$1<G7;++$1)B2[$1]=z5[$1],s0[z5.charCodeAt($1)]=$1;s0[45]=62;s0[95]=63;B7=typeof Symbol==="function"&&typeof Symbol.for==="function"?Symbol.for("nodejs.util.inspect.custom"):null,IK=globalThis.btoa,NK=globalThis.atob,DK=globalThis.File,AK=globalThis.Blob,OK={MAX_LENGTH:e1,MAX_STRING_LENGTH:M7};RK=j5("ERR_BUFFER_OUT_OF_BOUNDS",function(Q){if(Q)return`${Q} is outside of buffer bounds`;return"Attempt to access memory outside buffer bounds"},RangeError),xK=j5("ERR_INVALID_ARG_TYPE",function(Q,q){return`The "${Q}" argument must be of type number. Received type ${typeof q}`},TypeError),G5=j5("ERR_OUT_OF_RANGE",function(Q,q,$){let X=`The value of "${Q}" is out of range.`,Y=$;if(Number.isInteger($)&&Math.abs($)>4294967296)Y=F7(String($));else if(typeof $==="bigint"){if(Y=String($),$>BigInt(2)**BigInt(32)||$<-(BigInt(2)**BigInt(32)))Y=F7(Y);Y+="n"}return X+=` It must be ${q}. Received ${Y}`,X},RangeError);Object.defineProperty(_.prototype,"parent",{enumerable:!0,get:function(){if(!_.isBuffer(this))return;return this.buffer}});Object.defineProperty(_.prototype,"offset",{enumerable:!0,get:function(){if(!_.isBuffer(this))return;return this.byteOffset}});_.poolSize=8192;_.from=function(Q,q,$){return P7(Q,q,$)};Object.setPrototypeOf(_.prototype,Uint8Array.prototype);Object.setPrototypeOf(_,Uint8Array);_.alloc=function(Q,q,$){return TK(Q,q,$)};_.allocUnsafe=function(Q){return F5(Q)};_.allocUnsafeSlow=function(Q){return F5(Q)};_.isBuffer=function(Q){return Q!=null&&Q._isBuffer===!0&&Q!==_.prototype};_.compare=function(Q,q){if(Z2(Q,Uint8Array))Q=_.from(Q,Q.offset,Q.byteLength);if(Z2(q,Uint8Array))q=_.from(q,q.offset,q.byteLength);if(!_.isBuffer(Q)||!_.isBuffer(q))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Q===q)return 0;let $=Q.length,X=q.length;for(let Y=0,U=Math.min($,X);Y<U;++Y)if(Q[Y]!==q[Y]){$=Q[Y],X=q[Y];break}if($<X)return-1;if(X<$)return 1;return 0};_.isEncoding=function(Q){switch(String(Q).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};_.concat=function(Q,q){if(!Array.isArray(Q))throw TypeError('"list" argument must be an Array of Buffers');if(Q.length===0)return _.alloc(0);let $;if(q===void 0){q=0;for($=0;$<Q.length;++$)q+=Q[$].length}let X=_.allocUnsafe(q),Y=0;for($=0;$<Q.length;++$){let U=Q[$];if(Z2(U,Uint8Array))if(Y+U.length>X.length){if(!_.isBuffer(U))U=_.from(U);U.copy(X,Y)}else Uint8Array.prototype.set.call(X,U,Y);else if(!_.isBuffer(U))throw TypeError('"list" argument must be an Array of Buffers');else U.copy(X,Y);Y+=U.length}return X};_.byteLength=C7;_.prototype._isBuffer=!0;_.prototype.swap16=function(){let Q=this.length;if(Q%2!==0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let q=0;q<Q;q+=2)X1(this,q,q+1);return this};_.prototype.swap32=function(){let Q=this.length;if(Q%4!==0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let q=0;q<Q;q+=4)X1(this,q,q+3),X1(this,q+1,q+2);return this};_.prototype.swap64=function(){let Q=this.length;if(Q%8!==0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let q=0;q<Q;q+=8)X1(this,q,q+7),X1(this,q+1,q+6),X1(this,q+2,q+5),X1(this,q+3,q+4);return this};_.prototype.toString=function(){let Q=this.length;if(Q===0)return"";if(arguments.length===0)return N7(this,0,Q);return kK.apply(this,arguments)};_.prototype.toLocaleString=_.prototype.toString;_.prototype.equals=function(Q){if(!_.isBuffer(Q))throw TypeError("Argument must be a Buffer");if(this===Q)return!0;return _.compare(this,Q)===0};_.prototype.inspect=function(){let Q="",q=w7;if(Q=this.toString("hex",0,q).replace(/(.{2})/g,"$1 ").trim(),this.length>q)Q+=" ... ";return"<Buffer "+Q+">"};if(B7)_.prototype[B7]=_.prototype.inspect;_.prototype.compare=function(Q,q,$,X,Y){if(Z2(Q,Uint8Array))Q=_.from(Q,Q.offset,Q.byteLength);if(!_.isBuffer(Q))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Q);if(q===void 0)q=0;if($===void 0)$=Q?Q.length:0;if(X===void 0)X=0;if(Y===void 0)Y=this.length;if(q<0||$>Q.length||X<0||Y>this.length)throw RangeError("out of range index");if(X>=Y&&q>=$)return 0;if(X>=Y)return-1;if(q>=$)return 1;if(q>>>=0,$>>>=0,X>>>=0,Y>>>=0,this===Q)return 0;let U=Y-X,J=$-q,K=Math.min(U,J),G=this.slice(X,Y),V=Q.slice(q,$);for(let z=0;z<K;++z)if(G[z]!==V[z]){U=G[z],J=V[z];break}if(U<J)return-1;if(J<U)return 1;return 0};_.prototype.includes=function(Q,q,$){return this.indexOf(Q,q,$)!==-1};_.prototype.indexOf=function(Q,q,$){return I7(this,Q,q,$,!0)};_.prototype.lastIndexOf=function(Q,q,$){return I7(this,Q,q,$,!1)};_.prototype.write=function(Q,q,$,X){if(q===void 0)X="utf8",$=this.length,q=0;else if($===void 0&&typeof q==="string")X=q,$=this.length,q=0;else if(isFinite(q))if(q=q>>>0,isFinite($)){if($=$>>>0,X===void 0)X="utf8"}else X=$,$=void 0;else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let Y=this.length-q;if($===void 0||$>Y)$=Y;if(Q.length>0&&($<0||q<0)||q>this.length)throw RangeError("Attempt to write outside buffer bounds");if(!X)X="utf8";let U=!1;for(;;)switch(X){case"hex":return gK(this,Q,q,$);case"utf8":case"utf-8":return yK(this,Q,q,$);case"ascii":case"latin1":case"binary":return fK(this,Q,q,$);case"base64":return hK(this,Q,q,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _K(this,Q,q,$);default:if(U)throw TypeError("Unknown encoding: "+X);X=(""+X).toLowerCase(),U=!0}};_.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};_.prototype.slice=function(Q,q){let $=this.length;if(Q=~~Q,q=q===void 0?$:~~q,Q<0){if(Q+=$,Q<0)Q=0}else if(Q>$)Q=$;if(q<0){if(q+=$,q<0)q=0}else if(q>$)q=$;if(q<Q)q=Q;let X=this.subarray(Q,q);return Object.setPrototypeOf(X,_.prototype),X};_.prototype.readUintLE=_.prototype.readUIntLE=function(Q,q,$){if(Q=Q>>>0,q=q>>>0,!$)v0(Q,q,this.length);let X=this[Q],Y=1,U=0;while(++U<q&&(Y*=256))X+=this[Q+U]*Y;return X};_.prototype.readUintBE=_.prototype.readUIntBE=function(Q,q,$){if(Q=Q>>>0,q=q>>>0,!$)v0(Q,q,this.length);let X=this[Q+--q],Y=1;while(q>0&&(Y*=256))X+=this[Q+--q]*Y;return X};_.prototype.readUint8=_.prototype.readUInt8=function(Q,q){if(Q=Q>>>0,!q)v0(Q,1,this.length);return this[Q]};_.prototype.readUint16LE=_.prototype.readUInt16LE=function(Q,q){if(Q=Q>>>0,!q)v0(Q,2,this.length);return this[Q]|this[Q+1]<<8};_.prototype.readUint16BE=_.prototype.readUInt16BE=function(Q,q){if(Q=Q>>>0,!q)v0(Q,2,this.length);return this[Q]<<8|this[Q+1]};_.prototype.readUint32LE=_.prototype.readUInt32LE=function(Q,q){if(Q=Q>>>0,!q)v0(Q,4,this.length);return(this[Q]|this[Q+1]<<8|this[Q+2]<<16)+this[Q+3]*16777216};_.prototype.readUint32BE=_.prototype.readUInt32BE=function(Q,q){if(Q=Q>>>0,!q)v0(Q,4,this.length);return this[Q]*16777216+(this[Q+1]<<16|this[Q+2]<<8|this[Q+3])};_.prototype.readBigUInt64LE=f2(function(Q){Q=Q>>>0,D1(Q,"offset");let q=this[Q],$=this[Q+7];if(q===void 0||$===void 0)Q6(Q,this.length-8);let X=q+this[++Q]*256+this[++Q]*65536+this[++Q]*16777216,Y=this[++Q]+this[++Q]*256+this[++Q]*65536+$*16777216;return BigInt(X)+(BigInt(Y)<<BigInt(32))});_.prototype.readBigUInt64BE=f2(function(Q){Q=Q>>>0,D1(Q,"offset");let q=this[Q],$=this[Q+7];if(q===void 0||$===void 0)Q6(Q,this.length-8);let X=q*16777216+this[++Q]*65536+this[++Q]*256+this[++Q],Y=this[++Q]*16777216+this[++Q]*65536+this[++Q]*256+$;return(BigInt(X)<<BigInt(32))+BigInt(Y)});_.prototype.readIntLE=function(Q,q,$){if(Q=Q>>>0,q=q>>>0,!$)v0(Q,q,this.length);let X=this[Q],Y=1,U=0;while(++U<q&&(Y*=256))X+=this[Q+U]*Y;if(Y*=128,X>=Y)X-=Math.pow(2,8*q);return X};_.prototype.readIntBE=function(Q,q,$){if(Q=Q>>>0,q=q>>>0,!$)v0(Q,q,this.length);let X=q,Y=1,U=this[Q+--X];while(X>0&&(Y*=256))U+=this[Q+--X]*Y;if(Y*=128,U>=Y)U-=Math.pow(2,8*q);return U};_.prototype.readInt8=function(Q,q){if(Q=Q>>>0,!q)v0(Q,1,this.length);if(!(this[Q]&128))return this[Q];return(255-this[Q]+1)*-1};_.prototype.readInt16LE=function(Q,q){if(Q=Q>>>0,!q)v0(Q,2,this.length);let $=this[Q]|this[Q+1]<<8;return $&32768?$|4294901760:$};_.prototype.readInt16BE=function(Q,q){if(Q=Q>>>0,!q)v0(Q,2,this.length);let $=this[Q+1]|this[Q]<<8;return $&32768?$|4294901760:$};_.prototype.readInt32LE=function(Q,q){if(Q=Q>>>0,!q)v0(Q,4,this.length);return this[Q]|this[Q+1]<<8|this[Q+2]<<16|this[Q+3]<<24};_.prototype.readInt32BE=function(Q,q){if(Q=Q>>>0,!q)v0(Q,4,this.length);return this[Q]<<24|this[Q+1]<<16|this[Q+2]<<8|this[Q+3]};_.prototype.readBigInt64LE=f2(function(Q){Q=Q>>>0,D1(Q,"offset");let q=this[Q],$=this[Q+7];if(q===void 0||$===void 0)Q6(Q,this.length-8);let X=this[Q+4]+this[Q+5]*256+this[Q+6]*65536+($<<24);return(BigInt(X)<<BigInt(32))+BigInt(q+this[++Q]*256+this[++Q]*65536+this[++Q]*16777216)});_.prototype.readBigInt64BE=f2(function(Q){Q=Q>>>0,D1(Q,"offset");let q=this[Q],$=this[Q+7];if(q===void 0||$===void 0)Q6(Q,this.length-8);let X=(q<<24)+this[++Q]*65536+this[++Q]*256+this[++Q];return(BigInt(X)<<BigInt(32))+BigInt(this[++Q]*16777216+this[++Q]*65536+this[++Q]*256+$)});_.prototype.readFloatLE=function(Q,q){if(Q=Q>>>0,!q)v0(Q,4,this.length);return b6(this,Q,!0,23,4)};_.prototype.readFloatBE=function(Q,q){if(Q=Q>>>0,!q)v0(Q,4,this.length);return b6(this,Q,!1,23,4)};_.prototype.readDoubleLE=function(Q,q){if(Q=Q>>>0,!q)v0(Q,8,this.length);return b6(this,Q,!0,52,8)};_.prototype.readDoubleBE=function(Q,q){if(Q=Q>>>0,!q)v0(Q,8,this.length);return b6(this,Q,!1,52,8)};_.prototype.writeUintLE=_.prototype.writeUIntLE=function(Q,q,$,X){if(Q=+Q,q=q>>>0,$=$>>>0,!X){let J=Math.pow(2,8*$)-1;c0(this,Q,q,$,J,0)}let Y=1,U=0;this[q]=Q&255;while(++U<$&&(Y*=256))this[q+U]=Q/Y&255;return q+$};_.prototype.writeUintBE=_.prototype.writeUIntBE=function(Q,q,$,X){if(Q=+Q,q=q>>>0,$=$>>>0,!X){let J=Math.pow(2,8*$)-1;c0(this,Q,q,$,J,0)}let Y=$-1,U=1;this[q+Y]=Q&255;while(--Y>=0&&(U*=256))this[q+Y]=Q/U&255;return q+$};_.prototype.writeUint8=_.prototype.writeUInt8=function(Q,q,$){if(Q=+Q,q=q>>>0,!$)c0(this,Q,q,1,255,0);return this[q]=Q&255,q+1};_.prototype.writeUint16LE=_.prototype.writeUInt16LE=function(Q,q,$){if(Q=+Q,q=q>>>0,!$)c0(this,Q,q,2,65535,0);return this[q]=Q&255,this[q+1]=Q>>>8,q+2};_.prototype.writeUint16BE=_.prototype.writeUInt16BE=function(Q,q,$){if(Q=+Q,q=q>>>0,!$)c0(this,Q,q,2,65535,0);return this[q]=Q>>>8,this[q+1]=Q&255,q+2};_.prototype.writeUint32LE=_.prototype.writeUInt32LE=function(Q,q,$){if(Q=+Q,q=q>>>0,!$)c0(this,Q,q,4,4294967295,0);return this[q+3]=Q>>>24,this[q+2]=Q>>>16,this[q+1]=Q>>>8,this[q]=Q&255,q+4};_.prototype.writeUint32BE=_.prototype.writeUInt32BE=function(Q,q,$){if(Q=+Q,q=q>>>0,!$)c0(this,Q,q,4,4294967295,0);return this[q]=Q>>>24,this[q+1]=Q>>>16,this[q+2]=Q>>>8,this[q+3]=Q&255,q+4};_.prototype.writeBigUInt64LE=f2(function(Q,q=0){return D7(this,Q,q,BigInt(0),BigInt("0xffffffffffffffff"))});_.prototype.writeBigUInt64BE=f2(function(Q,q=0){return A7(this,Q,q,BigInt(0),BigInt("0xffffffffffffffff"))});_.prototype.writeIntLE=function(Q,q,$,X){if(Q=+Q,q=q>>>0,!X){let K=Math.pow(2,8*$-1);c0(this,Q,q,$,K-1,-K)}let Y=0,U=1,J=0;this[q]=Q&255;while(++Y<$&&(U*=256)){if(Q<0&&J===0&&this[q+Y-1]!==0)J=1;this[q+Y]=(Q/U>>0)-J&255}return q+$};_.prototype.writeIntBE=function(Q,q,$,X){if(Q=+Q,q=q>>>0,!X){let K=Math.pow(2,8*$-1);c0(this,Q,q,$,K-1,-K)}let Y=$-1,U=1,J=0;this[q+Y]=Q&255;while(--Y>=0&&(U*=256)){if(Q<0&&J===0&&this[q+Y+1]!==0)J=1;this[q+Y]=(Q/U>>0)-J&255}return q+$};_.prototype.writeInt8=function(Q,q,$){if(Q=+Q,q=q>>>0,!$)c0(this,Q,q,1,127,-128);if(Q<0)Q=255+Q+1;return this[q]=Q&255,q+1};_.prototype.writeInt16LE=function(Q,q,$){if(Q=+Q,q=q>>>0,!$)c0(this,Q,q,2,32767,-32768);return this[q]=Q&255,this[q+1]=Q>>>8,q+2};_.prototype.writeInt16BE=function(Q,q,$){if(Q=+Q,q=q>>>0,!$)c0(this,Q,q,2,32767,-32768);return this[q]=Q>>>8,this[q+1]=Q&255,q+2};_.prototype.writeInt32LE=function(Q,q,$){if(Q=+Q,q=q>>>0,!$)c0(this,Q,q,4,2147483647,-2147483648);return this[q]=Q&255,this[q+1]=Q>>>8,this[q+2]=Q>>>16,this[q+3]=Q>>>24,q+4};_.prototype.writeInt32BE=function(Q,q,$){if(Q=+Q,q=q>>>0,!$)c0(this,Q,q,4,2147483647,-2147483648);if(Q<0)Q=4294967295+Q+1;return this[q]=Q>>>24,this[q+1]=Q>>>16,this[q+2]=Q>>>8,this[q+3]=Q&255,q+4};_.prototype.writeBigInt64LE=f2(function(Q,q=0){return D7(this,Q,q,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});_.prototype.writeBigInt64BE=f2(function(Q,q=0){return A7(this,Q,q,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});_.prototype.writeFloatLE=function(Q,q,$){return R7(this,Q,q,!0,$)};_.prototype.writeFloatBE=function(Q,q,$){return R7(this,Q,q,!1,$)};_.prototype.writeDoubleLE=function(Q,q,$){return x7(this,Q,q,!0,$)};_.prototype.writeDoubleBE=function(Q,q,$){return x7(this,Q,q,!1,$)};_.prototype.copy=function(Q,q,$,X){if(!_.isBuffer(Q))throw TypeError("argument should be a Buffer");if(!$)$=0;if(!X&&X!==0)X=this.length;if(q>=Q.length)q=Q.length;if(!q)q=0;if(X>0&&X<$)X=$;if(X===$)return 0;if(Q.length===0||this.length===0)return 0;if(q<0)throw RangeError("targetStart out of bounds");if($<0||$>=this.length)throw RangeError("Index out of range");if(X<0)throw RangeError("sourceEnd out of bounds");if(X>this.length)X=this.length;if(Q.length-q<X-$)X=Q.length-q+$;let Y=X-$;if(this===Q&&typeof Uint8Array.prototype.copyWithin==="function")this.copyWithin(q,$,X);else Uint8Array.prototype.set.call(Q,this.subarray($,X),q);return Y};_.prototype.fill=function(Q,q,$,X){if(typeof Q==="string"){if(typeof q==="string")X=q,q=0,$=this.length;else if(typeof $==="string")X=$,$=this.length;if(X!==void 0&&typeof X!=="string")throw TypeError("encoding must be a string");if(typeof X==="string"&&!_.isEncoding(X))throw TypeError("Unknown encoding: "+X);if(Q.length===1){let U=Q.charCodeAt(0);if(X==="utf8"&&U<128||X==="latin1")Q=U}}else if(typeof Q==="number")Q=Q&255;else if(typeof Q==="boolean")Q=Number(Q);if(q<0||this.length<q||this.length<$)throw RangeError("Out of range index");if($<=q)return this;if(q=q>>>0,$=$===void 0?this.length:$>>>0,!Q)Q=0;let Y;if(typeof Q==="number")for(Y=q;Y<$;++Y)this[Y]=Q;else{let U=_.isBuffer(Q)?Q:_.from(Q,X),J=U.length;if(J===0)throw TypeError('The value "'+Q+'" is invalid for argument "value"');for(Y=0;Y<$-q;++Y)this[Y+q]=U[Y%J]}return this};iK=/[^+/0-9A-Za-z-_]/g;aK=function(){let Q=Array(256);for(let q=0;q<16;++q){let $=q*16;for(let X=0;X<16;++X)Q[$+X]="0123456789abcdef"[q]+"0123456789abcdef"[X]}return Q}();tK=w5("resolveObjectURL"),eK=w5("isUtf8"),qV=w5("transcode"),$V=_});var $6={};V7($6,{setMaxListeners:()=>c7,once:()=>b7,listenerCount:()=>p7,init:()=>h2,getMaxListeners:()=>d7,getEventListeners:()=>u7,default:()=>WV,captureRejectionSymbol:()=>y7,addAbortListener:()=>l7,EventEmitter:()=>h2});function f7(Q,q){var{_events:$}=Q;if(q[0]??=Error("Unhandled error."),!$)throw q[0];var X=$[g7];if(X)for(var Y of S7.call(X))Y.apply(Q,q);var U=$.error;if(!U)throw q[0];for(var Y of S7.call(U))Y.apply(Q,q);return!0}function UV(Q,q,$,X){q.then(void 0,function(Y){queueMicrotask(()=>JV(Q,Y,$,X))})}function JV(Q,q,$,X){if(typeof Q[E7]==="function")Q[E7](q,$,...X);else try{Q[Y1]=!1,Q.emit("error",q)}finally{Q[Y1]=!0}}function h7(Q,q,$){$.warned=!0;let X=Error(`Possible EventEmitter memory leak detected. ${$.length} ${String(q)} listeners added to [${Q.constructor.name}]. Use emitter.setMaxListeners() to increase limit`);X.name="MaxListenersExceededWarning",X.emitter=Q,X.type=q,X.count=$.length,console.warn(X)}function _7(Q,q,...$){this.removeListener(Q,q),q.apply(this,$)}function b7(Q,q,$){var X=$?.signal;if(m7(X,"options.signal"),X?.aborted)throw new M5(void 0,{cause:X?.reason});let{resolve:Y,reject:U,promise:J}=$newPromiseCapability(Promise),K=(z)=>{if(Q.removeListener(q,G),X!=null)c6(X,"abort",V);U(z)},G=(...z)=>{if(typeof Q.removeListener==="function")Q.removeListener("error",K);if(X!=null)c6(X,"abort",V);Y(z)};if(k7(Q,q,G,{once:!0}),q!=="error"&&typeof Q.once==="function")Q.once("error",K);function V(){c6(Q,q,G),c6(Q,"error",K),U(new M5(void 0,{cause:X?.reason}))}if(X!=null)k7(X,"abort",V,{once:!0});return J}function u7(Q,q){return Q.listeners(q)}function c7(Q,...q){L5(Q,"setMaxListeners",0);var $;if(q&&($=q.length))for(let X=0;X<$;X++)q[X].setMaxListeners(Q);else U1=Q}function p7(Q,q){return Q.listenerCount(q)}function c6(Q,q,$,X){if(typeof Q.removeListener==="function")Q.removeListener(q,$);else Q.removeEventListener(q,$,X)}function k7(Q,q,$,X){if(typeof Q.on==="function")if(X.once)Q.once(q,$);else Q.on(q,$);else Q.addEventListener(q,$,X)}function A1(Q,q,$){let X=TypeError(`The "${Q}" argument must be of type ${q}. Received ${$}`);return X.code="ERR_INVALID_ARG_TYPE",X}function zV(Q,q,$){let X=RangeError(`The "${Q}" argument is out of range. It must be ${q}. Received ${$}`);return X.code="ERR_OUT_OF_RANGE",X}function m7(Q,q){if(Q!==void 0&&(Q===null||typeof Q!=="object"||!("aborted"in Q)))throw A1(q,"AbortSignal",Q)}function L5(Q,q,$,X){if(typeof Q!=="number")throw A1(q,"number",Q);if($!=null&&Q<$||X!=null&&Q>X||($!=null||X!=null)&&Number.isNaN(Q))throw zV(q,`${$!=null?`>= ${$}`:""}${$!=null&&X!=null?" && ":""}${X!=null?`<= ${X}`:""}`,Q)}function q6(Q){if(typeof Q!=="function")throw TypeError("The listener must be a function")}function GV(Q,q){if(typeof Q!=="boolean")throw A1(q,"boolean",Q)}function d7(Q){return Q?._maxListeners??U1}function l7(Q,q){if(Q===void 0)throw A1("signal","AbortSignal",Q);if(m7(Q,"signal"),typeof q!=="function")throw A1("listener","function",q);let $;if(Q.aborted)queueMicrotask(()=>q());else Q.addEventListener("abort",q,{__proto__:null,once:!0}),$=()=>{Q.removeEventListener("abort",q)};return{__proto__:null,[Symbol.dispose](){$?.()}}}var P5,Y1,g7,XV,YV,E7,y7,S7,U1=10,h2=function(Q){if(this._events===void 0||this._events===this.__proto__._events)this._events={__proto__:null},this._eventsCount=0;if(this._maxListeners??=void 0,this[Y1]=Q?.captureRejections?Boolean(Q?.captureRejections):C0[Y1])this.emit=VV},C0,KV=function(Q,...q){if(Q==="error")return f7(this,q);var{_events:$}=this;if($===void 0)return!1;var X=$[Q];if(X===void 0)return!1;let Y=X.length>1?X.slice():X;for(let U=0,{length:J}=Y;U<J;U++){let K=Y[U];switch(q.length){case 0:K.call(this);break;case 1:K.call(this,q[0]);break;case 2:K.call(this,q[0],q[1]);break;case 3:K.call(this,q[0],q[1],q[2]);break;default:K.apply(this,q);break}}return!0},VV=function(Q,...q){if(Q==="error")return f7(this,q);var{_events:$}=this;if($===void 0)return!1;var X=$[Q];if(X===void 0)return!1;let Y=X.length>1?X.slice():X;for(let U=0,{length:J}=Y;U<J;U++){let K=Y[U],G;switch(q.length){case 0:G=K.call(this);break;case 1:G=K.call(this,q[0]);break;case 2:G=K.call(this,q[0],q[1]);break;case 3:G=K.call(this,q[0],q[1],q[2]);break;default:G=K.apply(this,q);break}if(G!==void 0&&typeof G?.then==="function"&&G.then===Promise.prototype.then)UV(this,G,Q,q)}return!0},M5,WV;var X6=z7(()=>{P5=Symbol.for,Y1=Symbol("kCapture"),g7=P5("events.errorMonitor"),XV=Symbol("events.maxEventTargetListeners"),YV=Symbol("events.maxEventTargetListenersWarned"),E7=P5("nodejs.rejection"),y7=P5("nodejs.rejection"),S7=Array.prototype.slice,C0=h2.prototype={};C0._events=void 0;C0._eventsCount=0;C0._maxListeners=void 0;C0.setMaxListeners=function(Q){return L5(Q,"setMaxListeners",0),this._maxListeners=Q,this};C0.constructor=h2;C0.getMaxListeners=function(){return this?._maxListeners??U1};C0.emit=KV;C0.addListener=function(Q,q){q6(q);var $=this._events;if(!$)$=this._events={__proto__:null},this._eventsCount=0;else if($.newListener)this.emit("newListener",Q,q.listener??q);var X=$[Q];if(!X)$[Q]=[q],this._eventsCount++;else{X.push(q);var Y=this._maxListeners??U1;if(Y>0&&X.length>Y&&!X.warned)h7(this,Q,X)}return this};C0.on=C0.addListener;C0.prependListener=function(Q,q){q6(q);var $=this._events;if(!$)$=this._events={__proto__:null},this._eventsCount=0;else if($.newListener)this.emit("newListener",Q,q.listener??q);var X=$[Q];if(!X)$[Q]=[q],this._eventsCount++;else{X.unshift(q);var Y=this._maxListeners??U1;if(Y>0&&X.length>Y&&!X.warned)h7(this,Q,X)}return this};C0.once=function(Q,q){q6(q);let $=_7.bind(this,Q,q);return $.listener=q,this.addListener(Q,$),this};C0.prependOnceListener=function(Q,q){q6(q);let $=_7.bind(this,Q,q);return $.listener=q,this.prependListener(Q,$),this};C0.removeListener=function(Q,q){q6(q);var{_events:$}=this;if(!$)return this;var X=$[Q];if(!X)return this;var Y=X.length;let U=-1;for(let J=Y-1;J>=0;J--)if(X[J]===q||X[J].listener===q){U=J;break}if(U<0)return this;if(U===0)X.shift();else X.splice(U,1);if(X.length===0)delete $[Q],this._eventsCount--;return this};C0.off=C0.removeListener;C0.removeAllListeners=function(Q){var{_events:q}=this;if(Q&&q){if(q[Q])delete q[Q],this._eventsCount--}else this._events={__proto__:null};return this};C0.listeners=function(Q){var{_events:q}=this;if(!q)return[];var $=q[Q];if(!$)return[];return $.map((X)=>X.listener??X)};C0.rawListeners=function(Q){var{_events:q}=this;if(!q)return[];var $=q[Q];if(!$)return[];return $.slice()};C0.listenerCount=function(Q){var{_events:q}=this;if(!q)return 0;return q[Q]?.length??0};C0.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};C0[Y1]=!1;M5=class M5 extends Error{constructor(Q="The operation was aborted",q=void 0){if(q!==void 0&&typeof q!=="object")throw A1("options","Object",q);super(Q,q);this.code="ABORT_ERR",this.name="AbortError"}};Object.defineProperties(h2,{captureRejections:{get(){return C0[Y1]},set(Q){GV(Q,"EventEmitter.captureRejections"),C0[Y1]=Q},enumerable:!0},defaultMaxListeners:{enumerable:!0,get:()=>{return U1},set:(Q)=>{L5(Q,"defaultMaxListeners",0),U1=Q}},kMaxEventTargetListeners:{value:XV,enumerable:!1,configurable:!1,writable:!1},kMaxEventTargetListenersWarned:{value:YV,enumerable:!1,configurable:!1,writable:!1}});Object.assign(h2,{once:b7,getEventListeners:u7,getMaxListeners:d7,setMaxListeners:c7,EventEmitter:h2,usingDomains:!1,captureRejectionSymbol:y7,errorMonitor:g7,addAbortListener:l7,init:h2,listenerCount:p7});WV=h2});var l6=k((pM,e7)=>{var M0=(Q,q)=>()=>(q||Q((q={exports:{}}).exports,q),q.exports),D0=M0((Q,q)=>{class $ extends Error{constructor(X){if(!Array.isArray(X))throw TypeError(`Expected input to be an Array, got ${typeof X}`);let Y="";for(let U=0;U<X.length;U++)Y+=` ${X[U].stack}
|
|
2
|
+
`;super(Y);this.name="AggregateError",this.errors=X}}q.exports={AggregateError:$,ArrayIsArray(X){return Array.isArray(X)},ArrayPrototypeIncludes(X,Y){return X.includes(Y)},ArrayPrototypeIndexOf(X,Y){return X.indexOf(Y)},ArrayPrototypeJoin(X,Y){return X.join(Y)},ArrayPrototypeMap(X,Y){return X.map(Y)},ArrayPrototypePop(X,Y){return X.pop(Y)},ArrayPrototypePush(X,Y){return X.push(Y)},ArrayPrototypeSlice(X,Y,U){return X.slice(Y,U)},Error,FunctionPrototypeCall(X,Y,...U){return X.call(Y,...U)},FunctionPrototypeSymbolHasInstance(X,Y){return Function.prototype[Symbol.hasInstance].call(X,Y)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(X,Y){return Object.defineProperties(X,Y)},ObjectDefineProperty(X,Y,U){return Object.defineProperty(X,Y,U)},ObjectGetOwnPropertyDescriptor(X,Y){return Object.getOwnPropertyDescriptor(X,Y)},ObjectKeys(X){return Object.keys(X)},ObjectSetPrototypeOf(X,Y){return Object.setPrototypeOf(X,Y)},Promise,PromisePrototypeCatch(X,Y){return X.catch(Y)},PromisePrototypeThen(X,Y,U){return X.then(Y,U)},PromiseReject(X){return Promise.reject(X)},PromiseResolve(X){return Promise.resolve(X)},ReflectApply:Reflect.apply,RegExpPrototypeTest(X,Y){return X.test(Y)},SafeSet:Set,String,StringPrototypeSlice(X,Y,U){return X.slice(Y,U)},StringPrototypeToLowerCase(X){return X.toLowerCase()},StringPrototypeToUpperCase(X){return X.toUpperCase()},StringPrototypeTrim(X){return X.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(X,Y,U){return X.set(Y,U)},Boolean,Uint8Array}}),i7=M0((Q,q)=>{q.exports={format($,...X){return $.replace(/%([sdifj])/g,function(...[Y,U]){let J=X.shift();if(U==="f")return J.toFixed(6);else if(U==="j")return JSON.stringify(J);else if(U==="s"&&typeof J==="object")return`${J.constructor!==Object?J.constructor.name:""} {}`.trim();else return J.toString()})},inspect($){switch(typeof $){case"string":if($.includes("'")){if(!$.includes('"'))return`"${$}"`;else if(!$.includes("`")&&!$.includes("${"))return`\`${$}\``}return`'${$}'`;case"number":if(isNaN($))return"NaN";else if(Object.is($,-0))return String($);return $;case"bigint":return`${String($)}n`;case"boolean":case"undefined":return String($);case"object":return"{}"}}}}),h0=M0((Q,q)=>{var{format:$,inspect:X}=i7(),{AggregateError:Y}=D0(),U=globalThis.AggregateError||Y,J=Symbol("kIsNodeError"),K=["string","function","number","object","Function","Object","boolean","bigint","symbol"],G=/^([A-Z][a-z0-9]*)+$/,V={};function z(N,W){if(!N)throw new V.ERR_INTERNAL_ASSERTION(W)}function w(N){let W="",H=N.length,M=N[0]==="-"?1:0;for(;H>=M+4;H-=3)W=`_${N.slice(H-3,H)}${W}`;return`${N.slice(0,H)}${W}`}function F(N,W,H){if(typeof W==="function")return z(W.length<=H.length,`Code: ${N}; The provided arguments length (${H.length}) does not match the required ones (${W.length}).`),W(...H);let M=(W.match(/%[dfijoOs]/g)||[]).length;if(z(M===H.length,`Code: ${N}; The provided arguments length (${H.length}) does not match the required ones (${M}).`),H.length===0)return W;return $(W,...H)}function Z(N,W,H){if(!H)H=Error;class M extends H{constructor(...I){super(F(N,W,I))}toString(){return`${this.name} [${N}]: ${this.message}`}}Object.defineProperties(M.prototype,{name:{value:H.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${N}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),M.prototype.code=N,M.prototype[J]=!0,V[N]=M}function h(N){let W="__node_internal_"+N.name;return Object.defineProperty(N,"name",{value:W}),N}function g(N,W){if(N&&W&&N!==W){if(Array.isArray(W.errors))return W.errors.push(N),W;let H=new U([W,N],W.message);return H.code=W.code,H}return N||W}class C extends Error{constructor(N="The operation was aborted",W=void 0){if(W!==void 0&&typeof W!=="object")throw new V.ERR_INVALID_ARG_TYPE("options","Object",W);super(N,W);this.code="ABORT_ERR",this.name="AbortError"}}Z("ERR_ASSERTION","%s",Error),Z("ERR_INVALID_ARG_TYPE",(N,W,H)=>{if(z(typeof N==="string","'name' must be a string"),!Array.isArray(W))W=[W];let M="The ";if(N.endsWith(" argument"))M+=`${N} `;else M+=`"${N}" ${N.includes(".")?"property":"argument"} `;M+="must be ";let I=[],f=[],E=[];for(let R of W)if(z(typeof R==="string","All expected entries have to be of type string"),K.includes(R))I.push(R.toLowerCase());else if(G.test(R))f.push(R);else z(R!=="object",'The value "object" should be written as "Object"'),E.push(R);if(f.length>0){let R=I.indexOf("object");if(R!==-1)I.splice(I,R,1),f.push("Object")}if(I.length>0){switch(I.length){case 1:M+=`of type ${I[0]}`;break;case 2:M+=`one of type ${I[0]} or ${I[1]}`;break;default:{let R=I.pop();M+=`one of type ${I.join(", ")}, or ${R}`}}if(f.length>0||E.length>0)M+=" or "}if(f.length>0){switch(f.length){case 1:M+=`an instance of ${f[0]}`;break;case 2:M+=`an instance of ${f[0]} or ${f[1]}`;break;default:{let R=f.pop();M+=`an instance of ${f.join(", ")}, or ${R}`}}if(E.length>0)M+=" or "}switch(E.length){case 0:break;case 1:if(E[0].toLowerCase()!==E[0])M+="an ";M+=`${E[0]}`;break;case 2:M+=`one of ${E[0]} or ${E[1]}`;break;default:{let R=E.pop();M+=`one of ${E.join(", ")}, or ${R}`}}if(H==null)M+=`. Received ${H}`;else if(typeof H==="function"&&H.name)M+=`. Received function ${H.name}`;else if(typeof H==="object"){var d;if((d=H.constructor)!==null&&d!==void 0&&d.name)M+=`. Received an instance of ${H.constructor.name}`;else{let R=X(H,{depth:-1});M+=`. Received ${R}`}}else{let R=X(H,{colors:!1});if(R.length>25)R=`${R.slice(0,25)}...`;M+=`. Received type ${typeof H} (${R})`}return M},TypeError),Z("ERR_INVALID_ARG_VALUE",(N,W,H="is invalid")=>{let M=X(W);if(M.length>128)M=M.slice(0,128)+"...";return`The ${N.includes(".")?"property":"argument"} '${N}' ${H}. Received ${M}`},TypeError),Z("ERR_INVALID_RETURN_VALUE",(N,W,H)=>{var M;let I=H!==null&&H!==void 0&&(M=H.constructor)!==null&&M!==void 0&&M.name?`instance of ${H.constructor.name}`:`type ${typeof H}`;return`Expected ${N} to be returned from the "${W}" function but got ${I}.`},TypeError),Z("ERR_MISSING_ARGS",(...N)=>{z(N.length>0,"At least one arg needs to be specified");let W,H=N.length;switch(N=(Array.isArray(N)?N:[N]).map((M)=>`"${M}"`).join(" or "),H){case 1:W+=`The ${N[0]} argument`;break;case 2:W+=`The ${N[0]} and ${N[1]} arguments`;break;default:{let M=N.pop();W+=`The ${N.join(", ")}, and ${M} arguments`}break}return`${W} must be specified`},TypeError),Z("ERR_OUT_OF_RANGE",(N,W,H)=>{z(W,'Missing "range" argument');let M;if(Number.isInteger(H)&&Math.abs(H)>4294967296)M=w(String(H));else if(typeof H==="bigint"){M=String(H);let I=BigInt(2)**BigInt(32);if(H>I||H<-I)M=w(M);M+="n"}else M=X(H);return`The value of "${N}" is out of range. It must be ${W}. Received ${M}`},RangeError),Z("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),Z("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),Z("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),Z("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),Z("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),Z("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),Z("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),Z("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),Z("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),Z("ERR_STREAM_WRITE_AFTER_END","write after end",Error),Z("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),q.exports={AbortError:C,aggregateTwoErrors:h(g),hideStackFrames:h,codes:V}}),BV=M0((Q,q)=>{Object.defineProperty(Q,"__esModule",{value:!0});var $=new WeakMap,X=new WeakMap;function Y(x){let D=$.get(x);return console.assert(D!=null,"'this' is expected an Event object, but got",x),D}function U(x){if(x.passiveListener!=null){if(typeof console<"u"&&typeof console.error==="function")console.error("Unable to preventDefault inside passive event listener invocation.",x.passiveListener);return}if(!x.event.cancelable)return;if(x.canceled=!0,typeof x.event.preventDefault==="function")x.event.preventDefault()}function J(x,D){$.set(this,{eventTarget:x,event:D,eventPhase:2,currentTarget:x,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:D.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});let L=Object.keys(D);for(let S=0;S<L.length;++S){let y=L[S];if(!(y in this))Object.defineProperty(this,y,K(y))}}if(J.prototype={get type(){return Y(this).event.type},get target(){return Y(this).eventTarget},get currentTarget(){return Y(this).currentTarget},composedPath(){let x=Y(this).currentTarget;if(x==null)return[];return[x]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return Y(this).eventPhase},stopPropagation(){let x=Y(this);if(x.stopped=!0,typeof x.event.stopPropagation==="function")x.event.stopPropagation()},stopImmediatePropagation(){let x=Y(this);if(x.stopped=!0,x.immediateStopped=!0,typeof x.event.stopImmediatePropagation==="function")x.event.stopImmediatePropagation()},get bubbles(){return Boolean(Y(this).event.bubbles)},get cancelable(){return Boolean(Y(this).event.cancelable)},preventDefault(){U(Y(this))},get defaultPrevented(){return Y(this).canceled},get composed(){return Boolean(Y(this).event.composed)},get timeStamp(){return Y(this).timeStamp},get srcElement(){return Y(this).eventTarget},get cancelBubble(){return Y(this).stopped},set cancelBubble(x){if(!x)return;let D=Y(this);if(D.stopped=!0,typeof D.event.cancelBubble==="boolean")D.event.cancelBubble=!0},get returnValue(){return!Y(this).canceled},set returnValue(x){if(!x)U(Y(this))},initEvent(){}},Object.defineProperty(J.prototype,"constructor",{value:J,configurable:!0,writable:!0}),typeof window<"u"&&typeof window.Event<"u")Object.setPrototypeOf(J.prototype,window.Event.prototype),X.set(window.Event.prototype,J);function K(x){return{get(){return Y(this).event[x]},set(D){Y(this).event[x]=D},configurable:!0,enumerable:!0}}function G(x){return{value(){let D=Y(this).event;return D[x].apply(D,arguments)},configurable:!0,enumerable:!0}}function V(x,D){let L=Object.keys(D);if(L.length===0)return x;function S(y,v){x.call(this,y,v)}S.prototype=Object.create(x.prototype,{constructor:{value:S,configurable:!0,writable:!0}});for(let y=0;y<L.length;++y){let v=L[y];if(!(v in x.prototype)){let a=typeof Object.getOwnPropertyDescriptor(D,v).value==="function";Object.defineProperty(S.prototype,v,a?G(v):K(v))}}return S}function z(x){if(x==null||x===Object.prototype)return J;let D=X.get(x);if(D==null)D=V(z(Object.getPrototypeOf(x)),x),X.set(x,D);return D}function w(x,D){return new(z(Object.getPrototypeOf(D)))(x,D)}function F(x){return Y(x).immediateStopped}function Z(x,D){Y(x).eventPhase=D}function h(x,D){Y(x).currentTarget=D}function g(x,D){Y(x).passiveListener=D}var C=new WeakMap,N=1,W=2,H=3;function M(x){return x!==null&&typeof x==="object"}function I(x){let D=C.get(x);if(D==null)throw TypeError("'this' is expected an EventTarget object, but got another value.");return D}function f(x){return{get(){let D=I(this).get(x);while(D!=null){if(D.listenerType===H)return D.listener;D=D.next}return null},set(D){if(typeof D!=="function"&&!M(D))D=null;let L=I(this),S=null,y=L.get(x);while(y!=null){if(y.listenerType===H)if(S!==null)S.next=y.next;else if(y.next!==null)L.set(x,y.next);else L.delete(x);else S=y;y=y.next}if(D!==null){let v={listener:D,listenerType:H,passive:!1,once:!1,next:null};if(S===null)L.set(x,v);else S.next=v}},configurable:!0,enumerable:!0}}function E(x,D){Object.defineProperty(x,`on${D}`,f(D))}function d(x){function D(){R.call(this)}D.prototype=Object.create(R.prototype,{constructor:{value:D,configurable:!0,writable:!0}});for(let L=0;L<x.length;++L)E(D.prototype,x[L]);return D}function R(){if(this instanceof R){C.set(this,new Map);return}if(arguments.length===1&&Array.isArray(arguments[0]))return d(arguments[0]);if(arguments.length>0){let x=Array(arguments.length);for(let D=0;D<arguments.length;++D)x[D]=arguments[D];return d(x)}throw TypeError("Cannot call a class as a function")}if(R.prototype={addEventListener(x,D,L){if(D==null)return;if(typeof D!=="function"&&!M(D))throw TypeError("'listener' should be a function or an object.");let S=I(this),y=M(L),v=(y?Boolean(L.capture):Boolean(L))?N:W,a={listener:D,listenerType:v,passive:y&&Boolean(L.passive),once:y&&Boolean(L.once),next:null},Q0=S.get(x);if(Q0===void 0){S.set(x,a);return}let Y0=null;while(Q0!=null){if(Q0.listener===D&&Q0.listenerType===v)return;Y0=Q0,Q0=Q0.next}Y0.next=a},removeEventListener(x,D,L){if(D==null)return;let S=I(this),y=(M(L)?Boolean(L.capture):Boolean(L))?N:W,v=null,a=S.get(x);while(a!=null){if(a.listener===D&&a.listenerType===y){if(v!==null)v.next=a.next;else if(a.next!==null)S.set(x,a.next);else S.delete(x);return}v=a,a=a.next}},dispatchEvent(x){if(x==null||typeof x.type!=="string")throw TypeError('"event.type" should be a string.');let D=I(this),L=x.type,S=D.get(L);if(S==null)return!0;let y=w(this,x),v=null;while(S!=null){if(S.once)if(v!==null)v.next=S.next;else if(S.next!==null)D.set(L,S.next);else D.delete(L);else v=S;if(g(y,S.passive?S.listener:null),typeof S.listener==="function")try{S.listener.call(this,y)}catch(a){if(typeof console<"u"&&typeof console.error==="function")console.error(a)}else if(S.listenerType!==H&&typeof S.listener.handleEvent==="function")S.listener.handleEvent(y);if(F(y))break;S=S.next}return g(y,null),Z(y,0),h(y,null),!y.defaultPrevented}},Object.defineProperty(R.prototype,"constructor",{value:R,configurable:!0,writable:!0}),typeof window<"u"&&typeof window.EventTarget<"u")Object.setPrototypeOf(R.prototype,window.EventTarget.prototype);Q.defineEventAttribute=E,Q.EventTarget=R,Q.default=R,q.exports=R,q.exports.EventTarget=q.exports.default=R,q.exports.defineEventAttribute=E}),Y6=M0((Q,q)=>{Object.defineProperty(Q,"__esModule",{value:!0});var $=BV();class X extends $.EventTarget{constructor(){super();throw TypeError("AbortSignal cannot be constructed directly")}get aborted(){let z=J.get(this);if(typeof z!=="boolean")throw TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?"null":typeof this}`);return z}}$.defineEventAttribute(X.prototype,"abort");function Y(){let z=Object.create(X.prototype);return $.EventTarget.call(z),J.set(z,!1),z}function U(z){if(J.get(z)!==!1)return;J.set(z,!0),z.dispatchEvent({type:"abort"})}var J=new WeakMap;if(Object.defineProperties(X.prototype,{aborted:{enumerable:!0}}),typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol")Object.defineProperty(X.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});class K{constructor(){G.set(this,Y())}get signal(){return V(this)}abort(){U(V(this))}}var G=new WeakMap;function V(z){let w=G.get(z);if(w==null)throw TypeError(`Expected 'this' to be an 'AbortController' object, but got ${z===null?"null":typeof z}`);return w}if(Object.defineProperties(K.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}}),typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol")Object.defineProperty(K.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"});Q.AbortController=K,Q.AbortSignal=X,Q.default=K,q.exports=K,q.exports.AbortController=q.exports.default=K,q.exports.AbortSignal=X}),p0=M0((Q,q)=>{var $=(O2(),a0(A2)),{format:X,inspect:Y}=i7(),{codes:{ERR_INVALID_ARG_TYPE:U}}=h0(),{kResistStopPropagation:J,AggregateError:K,SymbolDispose:G}=D0(),V=globalThis.AbortSignal||Y6().AbortSignal,z=globalThis.AbortController||Y6().AbortController,w=Object.getPrototypeOf(async function(){}).constructor,F=globalThis.Blob||$.Blob,Z=typeof F<"u"?function(C){return C instanceof F}:function(C){return!1},h=(C,N)=>{if(C!==void 0&&(C===null||typeof C!=="object"||!("aborted"in C)))throw new U(N,"AbortSignal",C)},g=(C,N)=>{if(typeof C!=="function")throw new U(N,"Function",C)};q.exports={AggregateError:K,kEmptyObject:Object.freeze({}),once(C){let N=!1;return function(...W){if(N)return;N=!0,C.apply(this,W)}},createDeferredPromise:function(){let C,N;return{promise:new Promise((W,H)=>{C=W,N=H}),resolve:C,reject:N}},promisify(C){return new Promise((N,W)=>{C((H,...M)=>{if(H)return W(H);return N(...M)})})},debuglog(){return function(){}},format:X,inspect:Y,types:{isAsyncFunction(C){return C instanceof w},isArrayBufferView(C){return ArrayBuffer.isView(C)}},isBlob:Z,deprecate(C,N){return C},addAbortListener:(X6(),a0($6)).addAbortListener||function(C,N){if(C===void 0)throw new U("signal","AbortSignal",C);h(C,"signal"),g(N,"listener");let W;if(C.aborted)queueMicrotask(()=>N());else C.addEventListener("abort",N,{__proto__:null,once:!0,[J]:!0}),W=()=>{C.removeEventListener("abort",N)};return{__proto__:null,[G](){var H;(H=W)===null||H===void 0||H()}}},AbortSignalAny:V.any||function(C){if(C.length===1)return C[0];let N=new z,W=()=>N.abort();return C.forEach((H)=>{h(H,"signals"),H.addEventListener("abort",W,{once:!0})}),N.signal.addEventListener("abort",()=>{C.forEach((H)=>H.removeEventListener("abort",W))},{once:!0}),N.signal}},q.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}),U6=M0((Q,q)=>{var{ArrayIsArray:$,ArrayPrototypeIncludes:X,ArrayPrototypeJoin:Y,ArrayPrototypeMap:U,NumberIsInteger:J,NumberIsNaN:K,NumberMAX_SAFE_INTEGER:G,NumberMIN_SAFE_INTEGER:V,NumberParseInt:z,ObjectPrototypeHasOwnProperty:w,RegExpPrototypeExec:F,String:Z,StringPrototypeToUpperCase:h,StringPrototypeTrim:g}=D0(),{hideStackFrames:C,codes:{ERR_SOCKET_BAD_PORT:N,ERR_INVALID_ARG_TYPE:W,ERR_INVALID_ARG_VALUE:H,ERR_OUT_OF_RANGE:M,ERR_UNKNOWN_SIGNAL:I}}=h0(),{normalizeEncoding:f}=p0(),{isAsyncFunction:E,isArrayBufferView:d}=p0().types,R={};function x(O){return O===(O|0)}function D(O){return O===O>>>0}var L=/^[0-7]+$/,S="must be a 32-bit unsigned integer or an octal string";function y(O,i,q0){if(typeof O>"u")O=q0;if(typeof O==="string"){if(F(L,O)===null)throw new H(i,O,S);O=z(O,8)}return Q0(O,i),O}var v=C((O,i,q0=V,o=G)=>{if(typeof O!=="number")throw new W(i,"number",O);if(!J(O))throw new M(i,"an integer",O);if(O<q0||O>o)throw new M(i,`>= ${q0} && <= ${o}`,O)}),a=C((O,i,q0=-2147483648,o=2147483647)=>{if(typeof O!=="number")throw new W(i,"number",O);if(!J(O))throw new M(i,"an integer",O);if(O<q0||O>o)throw new M(i,`>= ${q0} && <= ${o}`,O)}),Q0=C((O,i,q0=!1)=>{if(typeof O!=="number")throw new W(i,"number",O);if(!J(O))throw new M(i,"an integer",O);let o=q0?1:0,V0=4294967295;if(O<o||O>V0)throw new M(i,`>= ${o} && <= ${V0}`,O)});function Y0(O,i){if(typeof O!=="string")throw new W(i,"string",O)}function B0(O,i,q0=void 0,o){if(typeof O!=="number")throw new W(i,"number",O);if(q0!=null&&O<q0||o!=null&&O>o||(q0!=null||o!=null)&&K(O))throw new M(i,`${q0!=null?`>= ${q0}`:""}${q0!=null&&o!=null?" && ":""}${o!=null?`<= ${o}`:""}`,O)}var c=C((O,i,q0)=>{if(!X(q0,O)){let o="must be one of: "+Y(U(q0,(V0)=>typeof V0==="string"?`'${V0}'`:Z(V0)),", ");throw new H(i,O,o)}});function K0(O,i){if(typeof O!=="boolean")throw new W(i,"boolean",O)}function P(O,i,q0){return O==null||!w(O,i)?q0:O[i]}var l=C((O,i,q0=null)=>{let o=P(q0,"allowArray",!1),V0=P(q0,"allowFunction",!1);if(!P(q0,"nullable",!1)&&O===null||!o&&$(O)||typeof O!=="object"&&(!V0||typeof O!=="function"))throw new W(i,"Object",O)}),$0=C((O,i)=>{if(O!=null&&typeof O!=="object"&&typeof O!=="function")throw new W(i,"a dictionary",O)}),u=C((O,i,q0=0)=>{if(!$(O))throw new W(i,"Array",O);if(O.length<q0){let o=`must be longer than ${q0}`;throw new H(i,O,o)}});function J0(O,i){u(O,i);for(let q0=0;q0<O.length;q0++)Y0(O[q0],`${i}[${q0}]`)}function z0(O,i){u(O,i);for(let q0=0;q0<O.length;q0++)K0(O[q0],`${i}[${q0}]`)}function F0(O,i){u(O,i);for(let q0=0;q0<O.length;q0++){let o=O[q0],V0=`${i}[${q0}]`;if(o==null)throw new W(V0,"AbortSignal",o);G0(o,V0)}}function Z0(O,i="signal"){if(Y0(O,i),R[O]===void 0){if(R[h(O)]!==void 0)throw new I(O+" (signals must use all capital letters)");throw new I(O)}}var p=C((O,i="buffer")=>{if(!d(O))throw new W(i,["Buffer","TypedArray","DataView"],O)});function m(O,i){let q0=f(i),o=O.length;if(q0==="hex"&&o%2!==0)throw new H("encoding",i,`is invalid for data of length ${o}`)}function s(O,i="Port",q0=!0){if(typeof O!=="number"&&typeof O!=="string"||typeof O==="string"&&g(O).length===0||+O!==+O>>>0||O>65535||O===0&&!q0)throw new N(i,O,q0);return O|0}var G0=C((O,i)=>{if(O!==void 0&&(O===null||typeof O!=="object"||!("aborted"in O)))throw new W(i,"AbortSignal",O)}),W0=C((O,i)=>{if(typeof O!=="function")throw new W(i,"Function",O)}),A=C((O,i)=>{if(typeof O!=="function"||E(O))throw new W(i,"Function",O)}),T=C((O,i)=>{if(O!==void 0)throw new W(i,"undefined",O)});function b(O,i,q0){if(!X(q0,O))throw new W(i,`('${Y(q0,"|")}')`,O)}var r=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function e(O,i){if(typeof O>"u"||!F(r,O))throw new H(i,O,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function t(O){if(typeof O==="string")return e(O,"hints"),O;else if($(O)){let i=O.length,q0="";if(i===0)return q0;for(let o=0;o<i;o++){let V0=O[o];if(e(V0,"hints"),q0+=V0,o!==i-1)q0+=", "}return q0}throw new H("hints",O,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}q.exports={isInt32:x,isUint32:D,parseFileMode:y,validateArray:u,validateStringArray:J0,validateBooleanArray:z0,validateAbortSignalArray:F0,validateBoolean:K0,validateBuffer:p,validateDictionary:$0,validateEncoding:m,validateFunction:W0,validateInt32:a,validateInteger:v,validateNumber:B0,validateObject:l,validateOneOf:c,validatePlainFunction:A,validatePort:s,validateSignalName:Z0,validateString:Y0,validateUint32:Q0,validateUndefined:T,validateUnion:b,validateAbortSignal:G0,validateLinkHeaderValue:t}}),J1=M0((Q,q)=>{q.exports=globalThis.process}),x2=M0((Q,q)=>{var{SymbolAsyncIterator:$,SymbolIterator:X,SymbolFor:Y}=D0(),U=Y("nodejs.stream.destroyed"),J=Y("nodejs.stream.errored"),K=Y("nodejs.stream.readable"),G=Y("nodejs.stream.writable"),V=Y("nodejs.stream.disturbed"),z=Y("nodejs.webstream.isClosedPromise"),w=Y("nodejs.webstream.controllerErrorFunction");function F(P,l=!1){var $0;return!!(P&&typeof P.pipe==="function"&&typeof P.on==="function"&&(!l||typeof P.pause==="function"&&typeof P.resume==="function")&&(!P._writableState||(($0=P._readableState)===null||$0===void 0?void 0:$0.readable)!==!1)&&(!P._writableState||P._readableState))}function Z(P){var l;return!!(P&&typeof P.write==="function"&&typeof P.on==="function"&&(!P._readableState||((l=P._writableState)===null||l===void 0?void 0:l.writable)!==!1))}function h(P){return!!(P&&typeof P.pipe==="function"&&P._readableState&&typeof P.on==="function"&&typeof P.write==="function")}function g(P){return P&&(P._readableState||P._writableState||typeof P.write==="function"&&typeof P.on==="function"||typeof P.pipe==="function"&&typeof P.on==="function")}function C(P){return!!(P&&!g(P)&&typeof P.pipeThrough==="function"&&typeof P.getReader==="function"&&typeof P.cancel==="function")}function N(P){return!!(P&&!g(P)&&typeof P.getWriter==="function"&&typeof P.abort==="function")}function W(P){return!!(P&&!g(P)&&typeof P.readable==="object"&&typeof P.writable==="object")}function H(P){return C(P)||N(P)||W(P)}function M(P,l){if(P==null)return!1;if(l===!0)return typeof P[$]==="function";if(l===!1)return typeof P[X]==="function";return typeof P[$]==="function"||typeof P[X]==="function"}function I(P){if(!g(P))return null;let{_writableState:l,_readableState:$0}=P,u=l||$0;return!!(P.destroyed||P[U]||u!==null&&u!==void 0&&u.destroyed)}function f(P){if(!Z(P))return null;if(P.writableEnded===!0)return!0;let l=P._writableState;if(l!==null&&l!==void 0&&l.errored)return!1;if(typeof(l===null||l===void 0?void 0:l.ended)!=="boolean")return null;return l.ended}function E(P,l){if(!Z(P))return null;if(P.writableFinished===!0)return!0;let $0=P._writableState;if($0!==null&&$0!==void 0&&$0.errored)return!1;if(typeof($0===null||$0===void 0?void 0:$0.finished)!=="boolean")return null;return!!($0.finished||l===!1&&$0.ended===!0&&$0.length===0)}function d(P){if(!F(P))return null;if(P.readableEnded===!0)return!0;let l=P._readableState;if(!l||l.errored)return!1;if(typeof(l===null||l===void 0?void 0:l.ended)!=="boolean")return null;return l.ended}function R(P,l){if(!F(P))return null;let $0=P._readableState;if($0!==null&&$0!==void 0&&$0.errored)return!1;if(typeof($0===null||$0===void 0?void 0:$0.endEmitted)!=="boolean")return null;return!!($0.endEmitted||l===!1&&$0.ended===!0&&$0.length===0)}function x(P){if(P&&P[K]!=null)return P[K];if(typeof(P===null||P===void 0?void 0:P.readable)!=="boolean")return null;if(I(P))return!1;return F(P)&&P.readable&&!R(P)}function D(P){if(P&&P[G]!=null)return P[G];if(typeof(P===null||P===void 0?void 0:P.writable)!=="boolean")return null;if(I(P))return!1;return Z(P)&&P.writable&&!f(P)}function L(P,l){if(!g(P))return null;if(I(P))return!0;if((l===null||l===void 0?void 0:l.readable)!==!1&&x(P))return!1;if((l===null||l===void 0?void 0:l.writable)!==!1&&D(P))return!1;return!0}function S(P){var l,$0;if(!g(P))return null;if(P.writableErrored)return P.writableErrored;return(l=($0=P._writableState)===null||$0===void 0?void 0:$0.errored)!==null&&l!==void 0?l:null}function y(P){var l,$0;if(!g(P))return null;if(P.readableErrored)return P.readableErrored;return(l=($0=P._readableState)===null||$0===void 0?void 0:$0.errored)!==null&&l!==void 0?l:null}function v(P){if(!g(P))return null;if(typeof P.closed==="boolean")return P.closed;let{_writableState:l,_readableState:$0}=P;if(typeof(l===null||l===void 0?void 0:l.closed)==="boolean"||typeof($0===null||$0===void 0?void 0:$0.closed)==="boolean")return(l===null||l===void 0?void 0:l.closed)||($0===null||$0===void 0?void 0:$0.closed);if(typeof P._closed==="boolean"&&a(P))return P._closed;return null}function a(P){return typeof P._closed==="boolean"&&typeof P._defaultKeepAlive==="boolean"&&typeof P._removedConnection==="boolean"&&typeof P._removedContLen==="boolean"}function Q0(P){return typeof P._sent100==="boolean"&&a(P)}function Y0(P){var l;return typeof P._consuming==="boolean"&&typeof P._dumped==="boolean"&&((l=P.req)===null||l===void 0?void 0:l.upgradeOrConnect)===void 0}function B0(P){if(!g(P))return null;let{_writableState:l,_readableState:$0}=P,u=l||$0;return!u&&Q0(P)||!!(u&&u.autoDestroy&&u.emitClose&&u.closed===!1)}function c(P){var l;return!!(P&&((l=P[V])!==null&&l!==void 0?l:P.readableDidRead||P.readableAborted))}function K0(P){var l,$0,u,J0,z0,F0,Z0,p,m,s;return!!(P&&((l=($0=(u=(J0=(z0=(F0=P[J])!==null&&F0!==void 0?F0:P.readableErrored)!==null&&z0!==void 0?z0:P.writableErrored)!==null&&J0!==void 0?J0:(Z0=P._readableState)===null||Z0===void 0?void 0:Z0.errorEmitted)!==null&&u!==void 0?u:(p=P._writableState)===null||p===void 0?void 0:p.errorEmitted)!==null&&$0!==void 0?$0:(m=P._readableState)===null||m===void 0?void 0:m.errored)!==null&&l!==void 0?l:(s=P._writableState)===null||s===void 0?void 0:s.errored))}q.exports={isDestroyed:I,kIsDestroyed:U,isDisturbed:c,kIsDisturbed:V,isErrored:K0,kIsErrored:J,isReadable:x,kIsReadable:K,kIsClosedPromise:z,kControllerErrorFunction:w,kIsWritable:G,isClosed:v,isDuplexNodeStream:h,isFinished:L,isIterable:M,isReadableNodeStream:F,isReadableStream:C,isReadableEnded:d,isReadableFinished:R,isReadableErrored:y,isNodeStream:g,isWebStream:H,isWritable:D,isWritableNodeStream:Z,isWritableStream:N,isWritableEnded:f,isWritableFinished:E,isWritableErrored:S,isServerRequest:Y0,isServerResponse:Q0,willEmitClose:B0,isTransformStream:W}}),_2=M0((Q,q)=>{var $=J1(),{AbortError:X,codes:Y}=h0(),{ERR_INVALID_ARG_TYPE:U,ERR_STREAM_PREMATURE_CLOSE:J}=Y,{kEmptyObject:K,once:G}=p0(),{validateAbortSignal:V,validateFunction:z,validateObject:w,validateBoolean:F}=U6(),{Promise:Z,PromisePrototypeThen:h,SymbolDispose:g}=D0(),{isClosed:C,isReadable:N,isReadableNodeStream:W,isReadableStream:H,isReadableFinished:M,isReadableErrored:I,isWritable:f,isWritableNodeStream:E,isWritableStream:d,isWritableFinished:R,isWritableErrored:x,isNodeStream:D,willEmitClose:L,kIsClosedPromise:S}=x2(),y;function v(c){return c.setHeader&&typeof c.abort==="function"}var a=()=>{};function Q0(c,K0,P){var l,$0;if(arguments.length===2)P=K0,K0=K;else if(K0==null)K0=K;else w(K0,"options");if(z(P,"callback"),V(K0.signal,"options.signal"),P=G(P),H(c)||d(c))return Y0(c,K0,P);if(!D(c))throw new U("stream",["ReadableStream","WritableStream","Stream"],c);let u=(l=K0.readable)!==null&&l!==void 0?l:W(c),J0=($0=K0.writable)!==null&&$0!==void 0?$0:E(c),z0=c._writableState,F0=c._readableState,Z0=()=>{if(!c.writable)s()},p=L(c)&&W(c)===u&&E(c)===J0,m=R(c,!1),s=()=>{if(m=!0,c.destroyed)p=!1;if(p&&(!c.readable||u))return;if(!u||G0)P.call(c)},G0=M(c,!1),W0=()=>{if(G0=!0,c.destroyed)p=!1;if(p&&(!c.writable||J0))return;if(!J0||m)P.call(c)},A=(O)=>{P.call(c,O)},T=C(c),b=()=>{T=!0;let O=x(c)||I(c);if(O&&typeof O!=="boolean")return P.call(c,O);if(u&&!G0&&W(c,!0)){if(!M(c,!1))return P.call(c,new J)}if(J0&&!m){if(!R(c,!1))return P.call(c,new J)}P.call(c)},r=()=>{T=!0;let O=x(c)||I(c);if(O&&typeof O!=="boolean")return P.call(c,O);P.call(c)},e=()=>{c.req.on("finish",s)};if(v(c)){if(c.on("complete",s),!p)c.on("abort",b);if(c.req)e();else c.on("request",e)}else if(J0&&!z0)c.on("end",Z0),c.on("close",Z0);if(!p&&typeof c.aborted==="boolean")c.on("aborted",b);if(c.on("end",W0),c.on("finish",s),K0.error!==!1)c.on("error",A);if(c.on("close",b),T)$.nextTick(b);else if(z0!==null&&z0!==void 0&&z0.errorEmitted||F0!==null&&F0!==void 0&&F0.errorEmitted){if(!p)$.nextTick(r)}else if(!u&&(!p||N(c))&&(m||f(c)===!1))$.nextTick(r);else if(!J0&&(!p||f(c))&&(G0||N(c)===!1))$.nextTick(r);else if(F0&&c.req&&c.aborted)$.nextTick(r);let t=()=>{if(P=a,c.removeListener("aborted",b),c.removeListener("complete",s),c.removeListener("abort",b),c.removeListener("request",e),c.req)c.req.removeListener("finish",s);c.removeListener("end",Z0),c.removeListener("close",Z0),c.removeListener("finish",s),c.removeListener("end",W0),c.removeListener("error",A),c.removeListener("close",b)};if(K0.signal&&!T){let O=()=>{let i=P;t(),i.call(c,new X(void 0,{cause:K0.signal.reason}))};if(K0.signal.aborted)$.nextTick(O);else{y=y||p0().addAbortListener;let i=y(K0.signal,O),q0=P;P=G((...o)=>{i[g](),q0.apply(c,o)})}}return t}function Y0(c,K0,P){let l=!1,$0=a;if(K0.signal)if($0=()=>{l=!0,P.call(c,new X(void 0,{cause:K0.signal.reason}))},K0.signal.aborted)$.nextTick($0);else{y=y||p0().addAbortListener;let J0=y(K0.signal,$0),z0=P;P=G((...F0)=>{J0[g](),z0.apply(c,F0)})}let u=(...J0)=>{if(!l)$.nextTick(()=>P.apply(c,J0))};return h(c[S].promise,u,u),a}function B0(c,K0){var P;let l=!1;if(K0===null)K0=K;if((P=K0)!==null&&P!==void 0&&P.cleanup)F(K0.cleanup,"cleanup"),l=K0.cleanup;return new Z(($0,u)=>{let J0=Q0(c,K0,(z0)=>{if(l)J0();if(z0)u(z0);else $0()})})}q.exports=Q0,q.exports.finished=B0}),O1=M0((Q,q)=>{var $=J1(),{aggregateTwoErrors:X,codes:{ERR_MULTIPLE_CALLBACK:Y},AbortError:U}=h0(),{Symbol:J}=D0(),{kIsDestroyed:K,isDestroyed:G,isFinished:V,isServerRequest:z}=x2(),w=J("kDestroy"),F=J("kConstruct");function Z(L,S,y){if(L){if(L.stack,S&&!S.errored)S.errored=L;if(y&&!y.errored)y.errored=L}}function h(L,S){let y=this._readableState,v=this._writableState,a=v||y;if(v!==null&&v!==void 0&&v.destroyed||y!==null&&y!==void 0&&y.destroyed){if(typeof S==="function")S();return this}if(Z(L,v,y),v)v.destroyed=!0;if(y)y.destroyed=!0;if(!a.constructed)this.once(w,function(Q0){g(this,X(Q0,L),S)});else g(this,L,S);return this}function g(L,S,y){let v=!1;function a(Q0){if(v)return;v=!0;let{_readableState:Y0,_writableState:B0}=L;if(Z(Q0,B0,Y0),B0)B0.closed=!0;if(Y0)Y0.closed=!0;if(typeof y==="function")y(Q0);if(Q0)$.nextTick(C,L,Q0);else $.nextTick(N,L)}try{L._destroy(S||null,a)}catch(Q0){a(Q0)}}function C(L,S){W(L,S),N(L)}function N(L){let{_readableState:S,_writableState:y}=L;if(y)y.closeEmitted=!0;if(S)S.closeEmitted=!0;if(y!==null&&y!==void 0&&y.emitClose||S!==null&&S!==void 0&&S.emitClose)L.emit("close")}function W(L,S){let{_readableState:y,_writableState:v}=L;if(v!==null&&v!==void 0&&v.errorEmitted||y!==null&&y!==void 0&&y.errorEmitted)return;if(v)v.errorEmitted=!0;if(y)y.errorEmitted=!0;L.emit("error",S)}function H(){let L=this._readableState,S=this._writableState;if(L)L.constructed=!0,L.closed=!1,L.closeEmitted=!1,L.destroyed=!1,L.errored=null,L.errorEmitted=!1,L.reading=!1,L.ended=L.readable===!1,L.endEmitted=L.readable===!1;if(S)S.constructed=!0,S.destroyed=!1,S.closed=!1,S.closeEmitted=!1,S.errored=null,S.errorEmitted=!1,S.finalCalled=!1,S.prefinished=!1,S.ended=S.writable===!1,S.ending=S.writable===!1,S.finished=S.writable===!1}function M(L,S,y){let{_readableState:v,_writableState:a}=L;if(a!==null&&a!==void 0&&a.destroyed||v!==null&&v!==void 0&&v.destroyed)return this;if(v!==null&&v!==void 0&&v.autoDestroy||a!==null&&a!==void 0&&a.autoDestroy)L.destroy(S);else if(S){if(S.stack,a&&!a.errored)a.errored=S;if(v&&!v.errored)v.errored=S;if(y)$.nextTick(W,L,S);else W(L,S)}}function I(L,S){if(typeof L._construct!=="function")return;let{_readableState:y,_writableState:v}=L;if(y)y.constructed=!1;if(v)v.constructed=!1;if(L.once(F,S),L.listenerCount(F)>1)return;$.nextTick(f,L)}function f(L){let S=!1;function y(v){if(S){M(L,v!==null&&v!==void 0?v:new Y);return}S=!0;let{_readableState:a,_writableState:Q0}=L,Y0=Q0||a;if(a)a.constructed=!0;if(Q0)Q0.constructed=!0;if(Y0.destroyed)L.emit(w,v);else if(v)M(L,v,!0);else $.nextTick(E,L)}try{L._construct((v)=>{$.nextTick(y,v)})}catch(v){$.nextTick(y,v)}}function E(L){L.emit(F)}function d(L){return(L===null||L===void 0?void 0:L.setHeader)&&typeof L.abort==="function"}function R(L){L.emit("close")}function x(L,S){L.emit("error",S),$.nextTick(R,L)}function D(L,S){if(!L||G(L))return;if(!S&&!V(L))S=new U;if(z(L))L.socket=null,L.destroy(S);else if(d(L))L.abort();else if(d(L.req))L.req.abort();else if(typeof L.destroy==="function")L.destroy(S);else if(typeof L.close==="function")L.close();else if(S)$.nextTick(x,L,S);else $.nextTick(R,L);if(!L.destroyed)L[K]=!0}q.exports={construct:I,destroyer:D,destroy:h,undestroy:H,errorOrDestroy:M}}),C5=M0((Q,q)=>{var{ArrayIsArray:$,ObjectSetPrototypeOf:X}=D0(),{EventEmitter:Y}=(X6(),a0($6));function U(K){Y.call(this,K)}X(U.prototype,Y.prototype),X(U,Y),U.prototype.pipe=function(K,G){let V=this;function z(N){if(K.writable&&K.write(N)===!1&&V.pause)V.pause()}V.on("data",z);function w(){if(V.readable&&V.resume)V.resume()}if(K.on("drain",w),!K._isStdio&&(!G||G.end!==!1))V.on("end",Z),V.on("close",h);let F=!1;function Z(){if(F)return;F=!0,K.end()}function h(){if(F)return;if(F=!0,typeof K.destroy==="function")K.destroy()}function g(N){if(C(),Y.listenerCount(this,"error")===0)this.emit("error",N)}J(V,"error",g),J(K,"error",g);function C(){V.removeListener("data",z),K.removeListener("drain",w),V.removeListener("end",Z),V.removeListener("close",h),V.removeListener("error",g),K.removeListener("error",g),V.removeListener("end",C),V.removeListener("close",C),K.removeListener("close",C)}return V.on("end",C),V.on("close",C),K.on("close",C),K.emit("pipe",V),K};function J(K,G,V){if(typeof K.prependListener==="function")return K.prependListener(G,V);if(!K._events||!K._events[G])K.on(G,V);else if($(K._events[G]))K._events[G].unshift(V);else K._events[G]=[V,K._events[G]]}q.exports={Stream:U,prependListener:J}}),p6=M0((Q,q)=>{var{SymbolDispose:$}=D0(),{AbortError:X,codes:Y}=h0(),{isNodeStream:U,isWebStream:J,kControllerErrorFunction:K}=x2(),G=_2(),{ERR_INVALID_ARG_TYPE:V}=Y,z,w=(F,Z)=>{if(typeof F!=="object"||!("aborted"in F))throw new V(Z,"AbortSignal",F)};q.exports.addAbortSignal=function(F,Z){if(w(F,"signal"),!U(Z)&&!J(Z))throw new V("stream",["ReadableStream","WritableStream","Stream"],Z);return q.exports.addAbortSignalNoValidate(F,Z)},q.exports.addAbortSignalNoValidate=function(F,Z){if(typeof F!=="object"||!("aborted"in F))return Z;let h=U(Z)?()=>{Z.destroy(new X(void 0,{cause:F.reason}))}:()=>{Z[K](new X(void 0,{cause:F.reason}))};if(F.aborted)h();else{z=z||p0().addAbortListener;let g=z(F,h);G(Z,g[$])}return Z}}),ZV=M0((Q,q)=>{var{StringPrototypeSlice:$,SymbolIterator:X,TypedArrayPrototypeSet:Y,Uint8Array:U}=D0(),{Buffer:J}=(O2(),a0(A2)),{inspect:K}=p0();q.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(G){let V={data:G,next:null};if(this.length>0)this.tail.next=V;else this.head=V;this.tail=V,++this.length}unshift(G){let V={data:G,next:this.head};if(this.length===0)this.tail=V;this.head=V,++this.length}shift(){if(this.length===0)return;let G=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;return--this.length,G}clear(){this.head=this.tail=null,this.length=0}join(G){if(this.length===0)return"";let V=this.head,z=""+V.data;while((V=V.next)!==null)z+=G+V.data;return z}concat(G){if(this.length===0)return J.alloc(0);let V=J.allocUnsafe(G>>>0),z=this.head,w=0;while(z)Y(V,z.data,w),w+=z.data.length,z=z.next;return V}consume(G,V){let z=this.head.data;if(G<z.length){let w=z.slice(0,G);return this.head.data=z.slice(G),w}if(G===z.length)return this.shift();return V?this._getString(G):this._getBuffer(G)}first(){return this.head.data}*[X](){for(let G=this.head;G;G=G.next)yield G.data}_getString(G){let V="",z=this.head,w=0;do{let F=z.data;if(G>F.length)V+=F,G-=F.length;else{if(G===F.length)if(V+=F,++w,z.next)this.head=z.next;else this.head=this.tail=null;else V+=$(F,0,G),this.head=z,z.data=$(F,G);break}++w}while((z=z.next)!==null);return this.length-=w,V}_getBuffer(G){let V=J.allocUnsafe(G),z=G,w=this.head,F=0;do{let Z=w.data;if(G>Z.length)Y(V,Z,z-G),G-=Z.length;else{if(G===Z.length)if(Y(V,Z,z-G),++F,w.next)this.head=w.next;else this.head=this.tail=null;else Y(V,new U(Z.buffer,Z.byteOffset,G),z-G),this.head=w,w.data=Z.slice(G);break}++F}while((w=w.next)!==null);return this.length-=F,V}[Symbol.for("nodejs.util.inspect.custom")](G,V){return K(this,{...V,depth:0,customInspect:!1})}}}),m6=M0((Q,q)=>{var{MathFloor:$,NumberIsInteger:X}=D0(),{validateInteger:Y}=U6(),{ERR_INVALID_ARG_VALUE:U}=h0().codes,J=16384,K=16;function G(F,Z,h){return F.highWaterMark!=null?F.highWaterMark:Z?F[h]:null}function V(F){return F?K:J}function z(F,Z){if(Y(Z,"value",0),F)K=Z;else J=Z}function w(F,Z,h,g){let C=G(Z,g,h);if(C!=null){if(!X(C)||C<0){let N=g?`options.${h}`:"options.highWaterMark";throw new U(N,C)}return $(C)}return V(F.objectMode)}q.exports={getHighWaterMark:w,getDefaultHighWaterMark:V,setDefaultHighWaterMark:z}}),jV=M0((Q,q)=>{/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var $=(O2(),a0(A2)),X=$.Buffer;function Y(J,K){for(var G in J)K[G]=J[G]}if(X.from&&X.alloc&&X.allocUnsafe&&X.allocUnsafeSlow)q.exports=$;else Y($,Q),Q.Buffer=U;function U(J,K,G){return X(J,K,G)}U.prototype=Object.create(X.prototype),Y(X,U),U.from=function(J,K,G){if(typeof J==="number")throw TypeError("Argument must not be a number");return X(J,K,G)},U.alloc=function(J,K,G){if(typeof J!=="number")throw TypeError("Argument must be a number");var V=X(J);if(K!==void 0)if(typeof G==="string")V.fill(K,G);else V.fill(K);else V.fill(0);return V},U.allocUnsafe=function(J){if(typeof J!=="number")throw TypeError("Argument must be a number");return X(J)},U.allocUnsafeSlow=function(J){if(typeof J!=="number")throw TypeError("Argument must be a number");return $.SlowBuffer(J)}}),FV=M0((Q)=>{var q=jV().Buffer,$=q.isEncoding||function(W){switch(W=""+W,W&&W.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function X(W){if(!W)return"utf8";var H;while(!0)switch(W){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return W;default:if(H)return;W=(""+W).toLowerCase(),H=!0}}function Y(W){var H=X(W);if(typeof H!=="string"&&(q.isEncoding===$||!$(W)))throw Error("Unknown encoding: "+W);return H||W}Q.StringDecoder=U;function U(W){this.encoding=Y(W);var H;switch(this.encoding){case"utf16le":this.text=F,this.end=Z,H=4;break;case"utf8":this.fillLast=V,H=4;break;case"base64":this.text=h,this.end=g,H=3;break;default:this.write=C,this.end=N;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=q.allocUnsafe(H)}U.prototype.write=function(W){if(W.length===0)return"";var H,M;if(this.lastNeed){if(H=this.fillLast(W),H===void 0)return"";M=this.lastNeed,this.lastNeed=0}else M=0;if(M<W.length)return H?H+this.text(W,M):this.text(W,M);return H||""},U.prototype.end=w,U.prototype.text=z,U.prototype.fillLast=function(W){if(this.lastNeed<=W.length)return W.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);W.copy(this.lastChar,this.lastTotal-this.lastNeed,0,W.length),this.lastNeed-=W.length};function J(W){if(W<=127)return 0;else if(W>>5===6)return 2;else if(W>>4===14)return 3;else if(W>>3===30)return 4;return W>>6===2?-1:-2}function K(W,H,M){var I=H.length-1;if(I<M)return 0;var f=J(H[I]);if(f>=0){if(f>0)W.lastNeed=f-1;return f}if(--I<M||f===-2)return 0;if(f=J(H[I]),f>=0){if(f>0)W.lastNeed=f-2;return f}if(--I<M||f===-2)return 0;if(f=J(H[I]),f>=0){if(f>0)if(f===2)f=0;else W.lastNeed=f-3;return f}return 0}function G(W,H,M){if((H[0]&192)!==128)return W.lastNeed=0,"�";if(W.lastNeed>1&&H.length>1){if((H[1]&192)!==128)return W.lastNeed=1,"�";if(W.lastNeed>2&&H.length>2){if((H[2]&192)!==128)return W.lastNeed=2,"�"}}}function V(W){var H=this.lastTotal-this.lastNeed,M=G(this,W,H);if(M!==void 0)return M;if(this.lastNeed<=W.length)return W.copy(this.lastChar,H,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);W.copy(this.lastChar,H,0,W.length),this.lastNeed-=W.length}function z(W,H){var M=K(this,W,H);if(!this.lastNeed)return W.toString("utf8",H);this.lastTotal=M;var I=W.length-(M-this.lastNeed);return W.copy(this.lastChar,0,I),W.toString("utf8",H,I)}function w(W){var H=W&&W.length?this.write(W):"";if(this.lastNeed)return H+"�";return H}function F(W,H){if((W.length-H)%2===0){var M=W.toString("utf16le",H);if(M){var I=M.charCodeAt(M.length-1);if(I>=55296&&I<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=W[W.length-2],this.lastChar[1]=W[W.length-1],M.slice(0,-1)}return M}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=W[W.length-1],W.toString("utf16le",H,W.length-1)}function Z(W){var H=W&&W.length?this.write(W):"";if(this.lastNeed){var M=this.lastTotal-this.lastNeed;return H+this.lastChar.toString("utf16le",0,M)}return H}function h(W,H){var M=(W.length-H)%3;if(M===0)return W.toString("base64",H);if(this.lastNeed=3-M,this.lastTotal=3,M===1)this.lastChar[0]=W[W.length-1];else this.lastChar[0]=W[W.length-2],this.lastChar[1]=W[W.length-1];return W.toString("base64",H,W.length-M)}function g(W){var H=W&&W.length?this.write(W):"";if(this.lastNeed)return H+this.lastChar.toString("base64",0,3-this.lastNeed);return H}function C(W){return W.toString(this.encoding)}function N(W){return W&&W.length?this.write(W):""}}),o7=M0((Q,q)=>{var $=J1(),{PromisePrototypeThen:X,SymbolAsyncIterator:Y,SymbolIterator:U}=D0(),{Buffer:J}=(O2(),a0(A2)),{ERR_INVALID_ARG_TYPE:K,ERR_STREAM_NULL_VALUES:G}=h0().codes;function V(z,w,F){let Z;if(typeof w==="string"||w instanceof J)return new z({objectMode:!0,...F,read(){this.push(w),this.push(null)}});let h;if(w&&w[Y])h=!0,Z=w[Y]();else if(w&&w[U])h=!1,Z=w[U]();else throw new K("iterable",["Iterable"],w);let g=new z({objectMode:!0,highWaterMark:1,...F}),C=!1;g._read=function(){if(!C)C=!0,W()},g._destroy=function(H,M){X(N(H),()=>$.nextTick(M,H),(I)=>$.nextTick(M,I||H))};async function N(H){let M=H!==void 0&&H!==null,I=typeof Z.throw==="function";if(M&&I){let{value:f,done:E}=await Z.throw(H);if(await f,E)return}if(typeof Z.return==="function"){let{value:f}=await Z.return();await f}}async function W(){for(;;){try{let{value:H,done:M}=h?await Z.next():Z.next();if(M)g.push(null);else{let I=H&&typeof H.then==="function"?await H:H;if(I===null)throw C=!1,new G;else if(g.push(I))continue;else C=!1}}catch(H){g.destroy(H)}break}}return g}q.exports=V}),d6=M0((Q,q)=>{var $=J1(),{ArrayPrototypeIndexOf:X,NumberIsInteger:Y,NumberIsNaN:U,NumberParseInt:J,ObjectDefineProperties:K,ObjectKeys:G,ObjectSetPrototypeOf:V,Promise:z,SafeSet:w,SymbolAsyncDispose:F,SymbolAsyncIterator:Z,Symbol:h}=D0();q.exports=o,o.ReadableState=q0;var{EventEmitter:g}=(X6(),a0($6)),{Stream:C,prependListener:N}=C5(),{Buffer:W}=(O2(),a0(A2)),{addAbortSignal:H}=p6(),M=_2(),I=p0().debuglog("stream",(B)=>{I=B}),f=ZV(),E=O1(),{getHighWaterMark:d,getDefaultHighWaterMark:R}=m6(),{aggregateTwoErrors:x,codes:{ERR_INVALID_ARG_TYPE:D,ERR_METHOD_NOT_IMPLEMENTED:L,ERR_OUT_OF_RANGE:S,ERR_STREAM_PUSH_AFTER_EOF:y,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:v},AbortError:a}=h0(),{validateObject:Q0}=U6(),Y0=h("kPaused"),{StringDecoder:B0}=FV(),c=o7();V(o.prototype,C.prototype),V(o,C);var K0=()=>{},{errorOrDestroy:P}=E,l=1,$0=2,u=4,J0=8,z0=16,F0=32,Z0=64,p=128,m=256,s=512,G0=1024,W0=2048,A=4096,T=8192,b=16384,r=32768,e=65536,t=131072,O=262144;function i(B){return{enumerable:!1,get(){return(this.state&B)!==0},set(j){if(j)this.state|=B;else this.state&=~B}}}K(q0.prototype,{objectMode:i(l),ended:i($0),endEmitted:i(u),reading:i(J0),constructed:i(z0),sync:i(F0),needReadable:i(Z0),emittedReadable:i(p),readableListening:i(m),resumeScheduled:i(s),errorEmitted:i(G0),emitClose:i(W0),autoDestroy:i(A),destroyed:i(T),closed:i(b),closeEmitted:i(r),multiAwaitDrain:i(e),readingMore:i(t),dataEmitted:i(O)});function q0(B,j,n){if(typeof n!=="boolean")n=j instanceof R2();if(this.state=W0|A|z0|F0,B&&B.objectMode)this.state|=l;if(n&&B&&B.readableObjectMode)this.state|=l;if(this.highWaterMark=B?d(this,B,"readableHighWaterMark",n):R(!1),this.buffer=new f,this.length=0,this.pipes=[],this.flowing=null,this[Y0]=null,B&&B.emitClose===!1)this.state&=~W0;if(B&&B.autoDestroy===!1)this.state&=~A;if(this.errored=null,this.defaultEncoding=B&&B.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,B&&B.encoding)this.decoder=new B0(B.encoding),this.encoding=B.encoding}function o(B){if(!(this instanceof o))return new o(B);let j=this instanceof R2();if(this._readableState=new q0(B,this,j),B){if(typeof B.read==="function")this._read=B.read;if(typeof B.destroy==="function")this._destroy=B.destroy;if(typeof B.construct==="function")this._construct=B.construct;if(B.signal&&!j)H(B.signal,this)}C.call(this,B),E.construct(this,()=>{if(this._readableState.needReadable)N1(this,this._readableState)})}o.prototype.destroy=E.destroy,o.prototype._undestroy=E.undestroy,o.prototype._destroy=function(B,j){j(B)},o.prototype[g.captureRejectionSymbol]=function(B){this.destroy(B)},o.prototype[F]=function(){let B;if(!this.destroyed)B=this.readableEnded?null:new a,this.destroy(B);return new z((j,n)=>M(this,(X0)=>X0&&X0!==B?n(X0):j(null)))},o.prototype.push=function(B,j){return V0(this,B,j,!1)},o.prototype.unshift=function(B,j){return V0(this,B,j,!0)};function V0(B,j,n,X0){I("readableAddChunk",j);let U0=B._readableState,y0;if((U0.state&l)===0){if(typeof j==="string"){if(n=n||U0.defaultEncoding,U0.encoding!==n)if(X0&&U0.encoding)j=W.from(j,n).toString(U0.encoding);else j=W.from(j,n),n=""}else if(j instanceof W)n="";else if(C._isUint8Array(j))j=C._uint8ArrayToBuffer(j),n="";else if(j!=null)y0=new D("chunk",["string","Buffer","Uint8Array"],j)}if(y0)P(B,y0);else if(j===null)U0.state&=~J0,g0(B,U0);else if((U0.state&l)!==0||j&&j.length>0)if(X0)if((U0.state&u)!==0)P(B,new v);else if(U0.destroyed||U0.errored)return!1;else P0(B,U0,j,!0);else if(U0.ended)P(B,new y);else if(U0.destroyed||U0.errored)return!1;else if(U0.state&=~J0,U0.decoder&&!n)if(j=U0.decoder.write(j),U0.objectMode||j.length!==0)P0(B,U0,j,!1);else N1(B,U0);else P0(B,U0,j,!1);else if(!X0)U0.state&=~J0,N1(B,U0);return!U0.ended&&(U0.length<U0.highWaterMark||U0.length===0)}function P0(B,j,n,X0){if(j.flowing&&j.length===0&&!j.sync&&B.listenerCount("data")>0){if((j.state&e)!==0)j.awaitDrainWriters.clear();else j.awaitDrainWriters=null;j.dataEmitted=!0,B.emit("data",n)}else{if(j.length+=j.objectMode?1:n.length,X0)j.buffer.unshift(n);else j.buffer.push(n);if((j.state&Z0)!==0)u0(B)}N1(B,j)}o.prototype.isPaused=function(){let B=this._readableState;return B[Y0]===!0||B.flowing===!1},o.prototype.setEncoding=function(B){let j=new B0(B);this._readableState.decoder=j,this._readableState.encoding=this._readableState.decoder.encoding;let n=this._readableState.buffer,X0="";for(let U0 of n)X0+=j.write(U0);if(n.clear(),X0!=="")n.push(X0);return this._readableState.length=X0.length,this};var o0=1073741824;function n0(B){if(B>o0)throw new S("size","<= 1GiB",B);else B--,B|=B>>>1,B|=B>>>2,B|=B>>>4,B|=B>>>8,B|=B>>>16,B++;return B}function e2(B,j){if(B<=0||j.length===0&&j.ended)return 0;if((j.state&l)!==0)return 1;if(U(B)){if(j.flowing&&j.length)return j.buffer.first().length;return j.length}if(B<=j.length)return B;return j.ended?j.length:0}o.prototype.read=function(B){if(I("read",B),B===void 0)B=NaN;else if(!Y(B))B=J(B,10);let j=this._readableState,n=B;if(B>j.highWaterMark)j.highWaterMark=n0(B);if(B!==0)j.state&=~p;if(B===0&&j.needReadable&&((j.highWaterMark!==0?j.length>=j.highWaterMark:j.length>0)||j.ended)){if(I("read: emitReadable",j.length,j.ended),j.length===0&&j.ended)X5(this);else u0(this);return null}if(B=e2(B,j),B===0&&j.ended){if(j.length===0)X5(this);return null}let X0=(j.state&Z0)!==0;if(I("need readable",X0),j.length===0||j.length-B<j.highWaterMark)X0=!0,I("length less than watermark",X0);if(j.ended||j.reading||j.destroyed||j.errored||!j.constructed)X0=!1,I("reading, ended or constructing",X0);else if(X0){if(I("do read"),j.state|=J0|F0,j.length===0)j.state|=Z0;try{this._read(j.highWaterMark)}catch(y0){P(this,y0)}if(j.state&=~F0,!j.reading)B=e2(n,j)}let U0;if(B>0)U0=Q7(B,j);else U0=null;if(U0===null)j.needReadable=j.length<=j.highWaterMark,B=0;else if(j.length-=B,j.multiAwaitDrain)j.awaitDrainWriters.clear();else j.awaitDrainWriters=null;if(j.length===0){if(!j.ended)j.needReadable=!0;if(n!==B&&j.ended)X5(this)}if(U0!==null&&!j.errorEmitted&&!j.closeEmitted)j.dataEmitted=!0,this.emit("data",U0);return U0};function g0(B,j){if(I("onEofChunk"),j.ended)return;if(j.decoder){let n=j.decoder.end();if(n&&n.length)j.buffer.push(n),j.length+=j.objectMode?1:n.length}if(j.ended=!0,j.sync)u0(B);else j.needReadable=!1,j.emittedReadable=!0,I1(B)}function u0(B){let j=B._readableState;if(I("emitReadable",j.needReadable,j.emittedReadable),j.needReadable=!1,!j.emittedReadable)I("emitReadable",j.flowing),j.emittedReadable=!0,$.nextTick(I1,B)}function I1(B){let j=B._readableState;if(I("emitReadable_",j.destroyed,j.length,j.ended),!j.destroyed&&!j.errored&&(j.length||j.ended))B.emit("readable"),j.emittedReadable=!1;j.needReadable=!j.flowing&&!j.ended&&j.length<=j.highWaterMark,tQ(B)}function N1(B,j){if(!j.readingMore&&j.constructed)j.readingMore=!0,$.nextTick(W2,B,j)}function W2(B,j){while(!j.reading&&!j.ended&&(j.length<j.highWaterMark||j.flowing&&j.length===0)){let n=j.length;if(I("maybeReadMore read 0"),B.read(0),n===j.length)break}j.readingMore=!1}o.prototype._read=function(B){throw new L("_read()")},o.prototype.pipe=function(B,j){let n=this,X0=this._readableState;if(X0.pipes.length===1){if(!X0.multiAwaitDrain)X0.multiAwaitDrain=!0,X0.awaitDrainWriters=new w(X0.awaitDrainWriters?[X0.awaitDrainWriters]:[])}X0.pipes.push(B),I("pipe count=%d opts=%j",X0.pipes.length,j);let U0=(!j||j.end!==!1)&&B!==$.stdout&&B!==$.stderr?r0:s1;if(X0.endEmitted)$.nextTick(U0);else n.once("end",U0);B.on("unpipe",y0);function y0(q1,N2){if(I("onunpipe"),q1===n){if(N2&&N2.hasUnpiped===!1)N2.hasUnpiped=!0,ZK()}}function r0(){I("onend"),B.end()}let Q1,$7=!1;function ZK(){if(I("cleanup"),B.removeListener("close",J5),B.removeListener("finish",K5),Q1)B.removeListener("drain",Q1);if(B.removeListener("error",U5),B.removeListener("unpipe",y0),n.removeListener("end",r0),n.removeListener("end",s1),n.removeListener("data",Y7),$7=!0,Q1&&X0.awaitDrainWriters&&(!B._writableState||B._writableState.needDrain))Q1()}function X7(){if(!$7){if(X0.pipes.length===1&&X0.pipes[0]===B)I("false write response, pause",0),X0.awaitDrainWriters=B,X0.multiAwaitDrain=!1;else if(X0.pipes.length>1&&X0.pipes.includes(B))I("false write response, pause",X0.awaitDrainWriters.size),X0.awaitDrainWriters.add(B);n.pause()}if(!Q1)Q1=JK(n,B),B.on("drain",Q1)}n.on("data",Y7);function Y7(q1){I("ondata");let N2=B.write(q1);if(I("dest.write",N2),N2===!1)X7()}function U5(q1){if(I("onerror",q1),s1(),B.removeListener("error",U5),B.listenerCount("error")===0){let N2=B._writableState||B._readableState;if(N2&&!N2.errorEmitted)P(B,q1);else B.emit("error",q1)}}N(B,"error",U5);function J5(){B.removeListener("finish",K5),s1()}B.once("close",J5);function K5(){I("onfinish"),B.removeListener("close",J5),s1()}B.once("finish",K5);function s1(){I("unpipe"),n.unpipe(B)}if(B.emit("pipe",n),B.writableNeedDrain===!0)X7();else if(!X0.flowing)I("pipe resume"),n.resume();return B};function JK(B,j){return function(){let n=B._readableState;if(n.awaitDrainWriters===j)I("pipeOnDrain",1),n.awaitDrainWriters=null;else if(n.multiAwaitDrain)I("pipeOnDrain",n.awaitDrainWriters.size),n.awaitDrainWriters.delete(j);if((!n.awaitDrainWriters||n.awaitDrainWriters.size===0)&&B.listenerCount("data"))B.resume()}}o.prototype.unpipe=function(B){let j=this._readableState,n={hasUnpiped:!1};if(j.pipes.length===0)return this;if(!B){let U0=j.pipes;j.pipes=[],this.pause();for(let y0=0;y0<U0.length;y0++)U0[y0].emit("unpipe",this,{hasUnpiped:!1});return this}let X0=X(j.pipes,B);if(X0===-1)return this;if(j.pipes.splice(X0,1),j.pipes.length===0)this.pause();return B.emit("unpipe",this,n),this},o.prototype.on=function(B,j){let n=C.prototype.on.call(this,B,j),X0=this._readableState;if(B==="data"){if(X0.readableListening=this.listenerCount("readable")>0,X0.flowing!==!1)this.resume()}else if(B==="readable"){if(!X0.endEmitted&&!X0.readableListening){if(X0.readableListening=X0.needReadable=!0,X0.flowing=!1,X0.emittedReadable=!1,I("on readable",X0.length,X0.reading),X0.length)u0(this);else if(!X0.reading)$.nextTick(KK,this)}}return n},o.prototype.addListener=o.prototype.on,o.prototype.removeListener=function(B,j){let n=C.prototype.removeListener.call(this,B,j);if(B==="readable")$.nextTick(sQ,this);return n},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(B){let j=C.prototype.removeAllListeners.apply(this,arguments);if(B==="readable"||B===void 0)$.nextTick(sQ,this);return j};function sQ(B){let j=B._readableState;if(j.readableListening=B.listenerCount("readable")>0,j.resumeScheduled&&j[Y0]===!1)j.flowing=!0;else if(B.listenerCount("data")>0)B.resume();else if(!j.readableListening)j.flowing=null}function KK(B){I("readable nexttick read 0"),B.read(0)}o.prototype.resume=function(){let B=this._readableState;if(!B.flowing)I("resume"),B.flowing=!B.readableListening,VK(this,B);return B[Y0]=!1,this};function VK(B,j){if(!j.resumeScheduled)j.resumeScheduled=!0,$.nextTick(zK,B,j)}function zK(B,j){if(I("resume",j.reading),!j.reading)B.read(0);if(j.resumeScheduled=!1,B.emit("resume"),tQ(B),j.flowing&&!j.reading)B.read(0)}o.prototype.pause=function(){if(I("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1)I("pause"),this._readableState.flowing=!1,this.emit("pause");return this._readableState[Y0]=!0,this};function tQ(B){let j=B._readableState;I("flow",j.flowing);while(j.flowing&&B.read()!==null);}o.prototype.wrap=function(B){let j=!1;B.on("data",(X0)=>{if(!this.push(X0)&&B.pause)j=!0,B.pause()}),B.on("end",()=>{this.push(null)}),B.on("error",(X0)=>{P(this,X0)}),B.on("close",()=>{this.destroy()}),B.on("destroy",()=>{this.destroy()}),this._read=()=>{if(j&&B.resume)j=!1,B.resume()};let n=G(B);for(let X0=1;X0<n.length;X0++){let U0=n[X0];if(this[U0]===void 0&&typeof B[U0]==="function")this[U0]=B[U0].bind(B)}return this},o.prototype[Z]=function(){return eQ(this)},o.prototype.iterator=function(B){if(B!==void 0)Q0(B,"options");return eQ(this,B)};function eQ(B,j){if(typeof B.read!=="function")B=o.wrap(B,{objectMode:!0});let n=GK(B,j);return n.stream=B,n}async function*GK(B,j){let n=K0;function X0(r0){if(this===B)n(),n=K0;else n=r0}B.on("readable",X0);let U0,y0=M(B,{writable:!1},(r0)=>{U0=r0?x(U0,r0):null,n(),n=K0});try{while(!0){let r0=B.destroyed?null:B.read();if(r0!==null)yield r0;else if(U0)throw U0;else if(U0===null)return;else await new z(X0)}}catch(r0){throw U0=x(U0,r0),U0}finally{if((U0||(j===null||j===void 0?void 0:j.destroyOnReturn)!==!1)&&(U0===void 0||B._readableState.autoDestroy))E.destroyer(B,null);else B.off("readable",X0),y0()}}K(o.prototype,{readable:{__proto__:null,get(){let B=this._readableState;return!!B&&B.readable!==!1&&!B.destroyed&&!B.errorEmitted&&!B.endEmitted},set(B){if(this._readableState)this._readableState.readable=!!B}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(B){if(this._readableState)this._readableState.flowing=B}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(B){if(!this._readableState)return;this._readableState.destroyed=B}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),K(q0.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[Y0]!==!1},set(B){this[Y0]=!!B}}}),o._fromList=Q7;function Q7(B,j){if(j.length===0)return null;let n;if(j.objectMode)n=j.buffer.shift();else if(!B||B>=j.length){if(j.decoder)n=j.buffer.join("");else if(j.buffer.length===1)n=j.buffer.first();else n=j.buffer.concat(j.length);j.buffer.clear()}else n=j.buffer.consume(B,j.decoder);return n}function X5(B){let j=B._readableState;if(I("endReadable",j.endEmitted),!j.endEmitted)j.ended=!0,$.nextTick(WK,j,B)}function WK(B,j){if(I("endReadableNT",B.endEmitted,B.length),!B.errored&&!B.closeEmitted&&!B.endEmitted&&B.length===0){if(B.endEmitted=!0,j.emit("end"),j.writable&&j.allowHalfOpen===!1)$.nextTick(BK,j);else if(B.autoDestroy){let n=j._writableState;if(!n||n.autoDestroy&&(n.finished||n.writable===!1))j.destroy()}}}function BK(B){if(B.writable&&!B.writableEnded&&!B.destroyed)B.end()}o.from=function(B,j){return c(o,B,j)};var Y5;function q7(){if(Y5===void 0)Y5={};return Y5}o.fromWeb=function(B,j){return q7().newStreamReadableFromReadableStream(B,j)},o.toWeb=function(B,j){return q7().newReadableStreamFromStreamReadable(B,j)},o.wrap=function(B,j){var n,X0;return new o({objectMode:(n=(X0=B.readableObjectMode)!==null&&X0!==void 0?X0:B.objectMode)!==null&&n!==void 0?n:!0,...j,destroy(U0,y0){E.destroyer(B,U0),y0(U0)}}).wrap(B)}}),I5=M0((Q,q)=>{var $=J1(),{ArrayPrototypeSlice:X,Error:Y,FunctionPrototypeSymbolHasInstance:U,ObjectDefineProperty:J,ObjectDefineProperties:K,ObjectSetPrototypeOf:G,StringPrototypeToLowerCase:V,Symbol:z,SymbolHasInstance:w}=D0();q.exports=Q0,Q0.WritableState=v;var{EventEmitter:F}=(X6(),a0($6)),Z=C5().Stream,{Buffer:h}=(O2(),a0(A2)),g=O1(),{addAbortSignal:C}=p6(),{getHighWaterMark:N,getDefaultHighWaterMark:W}=m6(),{ERR_INVALID_ARG_TYPE:H,ERR_METHOD_NOT_IMPLEMENTED:M,ERR_MULTIPLE_CALLBACK:I,ERR_STREAM_CANNOT_PIPE:f,ERR_STREAM_DESTROYED:E,ERR_STREAM_ALREADY_FINISHED:d,ERR_STREAM_NULL_VALUES:R,ERR_STREAM_WRITE_AFTER_END:x,ERR_UNKNOWN_ENCODING:D}=h0().codes,{errorOrDestroy:L}=g;G(Q0.prototype,Z.prototype),G(Q0,Z);function S(){}var y=z("kOnFinished");function v(A,T,b){if(typeof b!=="boolean")b=T instanceof R2();if(this.objectMode=!!(A&&A.objectMode),b)this.objectMode=this.objectMode||!!(A&&A.writableObjectMode);this.highWaterMark=A?N(this,A,"writableHighWaterMark",b):W(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let r=!!(A&&A.decodeStrings===!1);this.decodeStrings=!r,this.defaultEncoding=A&&A.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=P.bind(void 0,T),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,a(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!A||A.emitClose!==!1,this.autoDestroy=!A||A.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[y]=[]}function a(A){A.buffered=[],A.bufferedIndex=0,A.allBuffers=!0,A.allNoop=!0}v.prototype.getBuffer=function(){return X(this.buffered,this.bufferedIndex)},J(v.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function Q0(A){let T=this instanceof R2();if(!T&&!U(Q0,this))return new Q0(A);if(this._writableState=new v(A,this,T),A){if(typeof A.write==="function")this._write=A.write;if(typeof A.writev==="function")this._writev=A.writev;if(typeof A.destroy==="function")this._destroy=A.destroy;if(typeof A.final==="function")this._final=A.final;if(typeof A.construct==="function")this._construct=A.construct;if(A.signal)C(A.signal,this)}Z.call(this,A),g.construct(this,()=>{let b=this._writableState;if(!b.writing)J0(this,b);p(this,b)})}J(Q0,w,{__proto__:null,value:function(A){if(U(this,A))return!0;if(this!==Q0)return!1;return A&&A._writableState instanceof v}}),Q0.prototype.pipe=function(){L(this,new f)};function Y0(A,T,b,r){let e=A._writableState;if(typeof b==="function")r=b,b=e.defaultEncoding;else{if(!b)b=e.defaultEncoding;else if(b!=="buffer"&&!h.isEncoding(b))throw new D(b);if(typeof r!=="function")r=S}if(T===null)throw new R;else if(!e.objectMode)if(typeof T==="string"){if(e.decodeStrings!==!1)T=h.from(T,b),b="buffer"}else if(T instanceof h)b="buffer";else if(Z._isUint8Array(T))T=Z._uint8ArrayToBuffer(T),b="buffer";else throw new H("chunk",["string","Buffer","Uint8Array"],T);let t;if(e.ending)t=new x;else if(e.destroyed)t=new E("write");if(t)return $.nextTick(r,t),L(A,t,!0),t;return e.pendingcb++,B0(A,e,T,b,r)}Q0.prototype.write=function(A,T,b){return Y0(this,A,T,b)===!0},Q0.prototype.cork=function(){this._writableState.corked++},Q0.prototype.uncork=function(){let A=this._writableState;if(A.corked){if(A.corked--,!A.writing)J0(this,A)}},Q0.prototype.setDefaultEncoding=function(A){if(typeof A==="string")A=V(A);if(!h.isEncoding(A))throw new D(A);return this._writableState.defaultEncoding=A,this};function B0(A,T,b,r,e){let t=T.objectMode?1:b.length;T.length+=t;let O=T.length<T.highWaterMark;if(!O)T.needDrain=!0;if(T.writing||T.corked||T.errored||!T.constructed){if(T.buffered.push({chunk:b,encoding:r,callback:e}),T.allBuffers&&r!=="buffer")T.allBuffers=!1;if(T.allNoop&&e!==S)T.allNoop=!1}else T.writelen=t,T.writecb=e,T.writing=!0,T.sync=!0,A._write(b,r,T.onwrite),T.sync=!1;return O&&!T.errored&&!T.destroyed}function c(A,T,b,r,e,t,O){if(T.writelen=r,T.writecb=O,T.writing=!0,T.sync=!0,T.destroyed)T.onwrite(new E("write"));else if(b)A._writev(e,T.onwrite);else A._write(e,t,T.onwrite);T.sync=!1}function K0(A,T,b,r){--T.pendingcb,r(b),u(T),L(A,b)}function P(A,T){let b=A._writableState,r=b.sync,e=b.writecb;if(typeof e!=="function"){L(A,new I);return}if(b.writing=!1,b.writecb=null,b.length-=b.writelen,b.writelen=0,T){if(T.stack,!b.errored)b.errored=T;if(A._readableState&&!A._readableState.errored)A._readableState.errored=T;if(r)$.nextTick(K0,A,b,T,e);else K0(A,b,T,e)}else{if(b.buffered.length>b.bufferedIndex)J0(A,b);if(r)if(b.afterWriteTickInfo!==null&&b.afterWriteTickInfo.cb===e)b.afterWriteTickInfo.count++;else b.afterWriteTickInfo={count:1,cb:e,stream:A,state:b},$.nextTick(l,b.afterWriteTickInfo);else $0(A,b,1,e)}}function l({stream:A,state:T,count:b,cb:r}){return T.afterWriteTickInfo=null,$0(A,T,b,r)}function $0(A,T,b,r){if(!T.ending&&!A.destroyed&&T.length===0&&T.needDrain)T.needDrain=!1,A.emit("drain");while(b-- >0)T.pendingcb--,r();if(T.destroyed)u(T);p(A,T)}function u(A){if(A.writing)return;for(let e=A.bufferedIndex;e<A.buffered.length;++e){var T;let{chunk:t,callback:O}=A.buffered[e],i=A.objectMode?1:t.length;A.length-=i,O((T=A.errored)!==null&&T!==void 0?T:new E("write"))}let b=A[y].splice(0);for(let e=0;e<b.length;e++){var r;b[e]((r=A.errored)!==null&&r!==void 0?r:new E("end"))}a(A)}function J0(A,T){if(T.corked||T.bufferProcessing||T.destroyed||!T.constructed)return;let{buffered:b,bufferedIndex:r,objectMode:e}=T,t=b.length-r;if(!t)return;let O=r;if(T.bufferProcessing=!0,t>1&&A._writev){T.pendingcb-=t-1;let i=T.allNoop?S:(o)=>{for(let V0=O;V0<b.length;++V0)b[V0].callback(o)},q0=T.allNoop&&O===0?b:X(b,O);q0.allBuffers=T.allBuffers,c(A,T,!0,T.length,q0,"",i),a(T)}else{do{let{chunk:i,encoding:q0,callback:o}=b[O];b[O++]=null;let V0=e?1:i.length;c(A,T,!1,V0,i,q0,o)}while(O<b.length&&!T.writing);if(O===b.length)a(T);else if(O>256)b.splice(0,O),T.bufferedIndex=0;else T.bufferedIndex=O}T.bufferProcessing=!1}Q0.prototype._write=function(A,T,b){if(this._writev)this._writev([{chunk:A,encoding:T}],b);else throw new M("_write()")},Q0.prototype._writev=null,Q0.prototype.end=function(A,T,b){let r=this._writableState;if(typeof A==="function")b=A,A=null,T=null;else if(typeof T==="function")b=T,T=null;let e;if(A!==null&&A!==void 0){let t=Y0(this,A,T);if(t instanceof Y)e=t}if(r.corked)r.corked=1,this.uncork();if(e);else if(!r.errored&&!r.ending)r.ending=!0,p(this,r,!0),r.ended=!0;else if(r.finished)e=new d("end");else if(r.destroyed)e=new E("end");if(typeof b==="function")if(e||r.finished)$.nextTick(b,e);else r[y].push(b);return this};function z0(A){return A.ending&&!A.destroyed&&A.constructed&&A.length===0&&!A.errored&&A.buffered.length===0&&!A.finished&&!A.writing&&!A.errorEmitted&&!A.closeEmitted}function F0(A,T){let b=!1;function r(e){if(b){L(A,e!==null&&e!==void 0?e:I());return}if(b=!0,T.pendingcb--,e){let t=T[y].splice(0);for(let O=0;O<t.length;O++)t[O](e);L(A,e,T.sync)}else if(z0(T))T.prefinished=!0,A.emit("prefinish"),T.pendingcb++,$.nextTick(m,A,T)}T.sync=!0,T.pendingcb++;try{A._final(r)}catch(e){r(e)}T.sync=!1}function Z0(A,T){if(!T.prefinished&&!T.finalCalled)if(typeof A._final==="function"&&!T.destroyed)T.finalCalled=!0,F0(A,T);else T.prefinished=!0,A.emit("prefinish")}function p(A,T,b){if(z0(T)){if(Z0(A,T),T.pendingcb===0){if(b)T.pendingcb++,$.nextTick((r,e)=>{if(z0(e))m(r,e);else e.pendingcb--},A,T);else if(z0(T))T.pendingcb++,m(A,T)}}}function m(A,T){T.pendingcb--,T.finished=!0;let b=T[y].splice(0);for(let r=0;r<b.length;r++)b[r]();if(A.emit("finish"),T.autoDestroy){let r=A._readableState;if(!r||r.autoDestroy&&(r.endEmitted||r.readable===!1))A.destroy()}}K(Q0.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(A){if(this._writableState)this._writableState.destroyed=A}},writable:{__proto__:null,get(){let A=this._writableState;return!!A&&A.writable!==!1&&!A.destroyed&&!A.errored&&!A.ending&&!A.ended},set(A){if(this._writableState)this._writableState.writable=!!A}},writableFinished:{__proto__:null,get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){let A=this._writableState;if(!A)return!1;return!A.destroyed&&!A.ending&&A.needDrain}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});var s=g.destroy;Q0.prototype.destroy=function(A,T){let b=this._writableState;if(!b.destroyed&&(b.bufferedIndex<b.buffered.length||b[y].length))$.nextTick(u,b);return s.call(this,A,T),this},Q0.prototype._undestroy=g.undestroy,Q0.prototype._destroy=function(A,T){T(A)},Q0.prototype[F.captureRejectionSymbol]=function(A){this.destroy(A)};var G0;function W0(){if(G0===void 0)G0={};return G0}Q0.fromWeb=function(A,T){return W0().newStreamWritableFromWritableStream(A,T)},Q0.toWeb=function(A){return W0().newWritableStreamFromStreamWritable(A)}}),HV=M0((Q,q)=>{var $=J1(),X=(O2(),a0(A2)),{isReadable:Y,isWritable:U,isIterable:J,isNodeStream:K,isReadableNodeStream:G,isWritableNodeStream:V,isDuplexNodeStream:z,isReadableStream:w,isWritableStream:F}=x2(),Z=_2(),{AbortError:h,codes:{ERR_INVALID_ARG_TYPE:g,ERR_INVALID_RETURN_VALUE:C}}=h0(),{destroyer:N}=O1(),W=R2(),H=d6(),M=I5(),{createDeferredPromise:I}=p0(),f=o7(),E=globalThis.Blob||X.Blob,d=typeof E<"u"?function(y){return y instanceof E}:function(y){return!1},R=globalThis.AbortController||Y6().AbortController,{FunctionPrototypeCall:x}=D0();class D extends W{constructor(y){super(y);if((y===null||y===void 0?void 0:y.readable)===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if((y===null||y===void 0?void 0:y.writable)===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}}q.exports=function y(v,a){if(z(v))return v;if(G(v))return S({readable:v});if(V(v))return S({writable:v});if(K(v))return S({writable:!1,readable:!1});if(w(v))return S({readable:H.fromWeb(v)});if(F(v))return S({writable:M.fromWeb(v)});if(typeof v==="function"){let{value:Y0,write:B0,final:c,destroy:K0}=L(v);if(J(Y0))return f(D,Y0,{objectMode:!0,write:B0,final:c,destroy:K0});let P=Y0===null||Y0===void 0?void 0:Y0.then;if(typeof P==="function"){let l,$0=x(P,Y0,(u)=>{if(u!=null)throw new C("nully","body",u)},(u)=>{N(l,u)});return l=new D({objectMode:!0,readable:!1,write:B0,final(u){c(async()=>{try{await $0,$.nextTick(u,null)}catch(J0){$.nextTick(u,J0)}})},destroy:K0})}throw new C("Iterable, AsyncIterable or AsyncFunction",a,Y0)}if(d(v))return y(v.arrayBuffer());if(J(v))return f(D,v,{objectMode:!0,writable:!1});if(w(v===null||v===void 0?void 0:v.readable)&&F(v===null||v===void 0?void 0:v.writable))return D.fromWeb(v);if(typeof(v===null||v===void 0?void 0:v.writable)==="object"||typeof(v===null||v===void 0?void 0:v.readable)==="object"){let Y0=v!==null&&v!==void 0&&v.readable?G(v===null||v===void 0?void 0:v.readable)?v===null||v===void 0?void 0:v.readable:y(v.readable):void 0,B0=v!==null&&v!==void 0&&v.writable?V(v===null||v===void 0?void 0:v.writable)?v===null||v===void 0?void 0:v.writable:y(v.writable):void 0;return S({readable:Y0,writable:B0})}let Q0=v===null||v===void 0?void 0:v.then;if(typeof Q0==="function"){let Y0;return x(Q0,v,(B0)=>{if(B0!=null)Y0.push(B0);Y0.push(null)},(B0)=>{N(Y0,B0)}),Y0=new D({objectMode:!0,writable:!1,read(){}})}throw new g(a,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],v)};function L(y){let{promise:v,resolve:a}=I(),Q0=new R,Y0=Q0.signal;return{value:y(async function*(){while(!0){let B0=v;v=null;let{chunk:c,done:K0,cb:P}=await B0;if($.nextTick(P),K0)return;if(Y0.aborted)throw new h(void 0,{cause:Y0.reason});({promise:v,resolve:a}=I()),yield c}}(),{signal:Y0}),write(B0,c,K0){let P=a;a=null,P({chunk:B0,done:!1,cb:K0})},final(B0){let c=a;a=null,c({done:!0,cb:B0})},destroy(B0,c){Q0.abort(),c(B0)}}}function S(y){let v=y.readable&&typeof y.readable.read!=="function"?H.wrap(y.readable):y.readable,a=y.writable,Q0=!!Y(v),Y0=!!U(a),B0,c,K0,P,l;function $0(u){let J0=P;if(P=null,J0)J0(u);else if(u)l.destroy(u)}if(l=new D({readableObjectMode:!!(v!==null&&v!==void 0&&v.readableObjectMode),writableObjectMode:!!(a!==null&&a!==void 0&&a.writableObjectMode),readable:Q0,writable:Y0}),Y0)Z(a,(u)=>{if(Y0=!1,u)N(v,u);$0(u)}),l._write=function(u,J0,z0){if(a.write(u,J0))z0();else B0=z0},l._final=function(u){a.end(),c=u},a.on("drain",function(){if(B0){let u=B0;B0=null,u()}}),a.on("finish",function(){if(c){let u=c;c=null,u()}});if(Q0)Z(v,(u)=>{if(Q0=!1,u)N(v,u);$0(u)}),v.on("readable",function(){if(K0){let u=K0;K0=null,u()}}),v.on("end",function(){l.push(null)}),l._read=function(){while(!0){let u=v.read();if(u===null){K0=l._read;return}if(!l.push(u))return}};return l._destroy=function(u,J0){if(!u&&P!==null)u=new h;if(K0=null,B0=null,c=null,P===null)J0(u);else P=J0,N(a,u),N(v,u)},l}}),R2=M0((Q,q)=>{var{ObjectDefineProperties:$,ObjectGetOwnPropertyDescriptor:X,ObjectKeys:Y,ObjectSetPrototypeOf:U}=D0();q.exports=G;var J=d6(),K=I5();U(G.prototype,J.prototype),U(G,J);{let F=Y(K.prototype);for(let Z=0;Z<F.length;Z++){let h=F[Z];if(!G.prototype[h])G.prototype[h]=K.prototype[h]}}function G(F){if(!(this instanceof G))return new G(F);if(J.call(this,F),K.call(this,F),F){if(this.allowHalfOpen=F.allowHalfOpen!==!1,F.readable===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if(F.writable===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}else this.allowHalfOpen=!0}$(G.prototype,{writable:{__proto__:null,...X(K.prototype,"writable")},writableHighWaterMark:{__proto__:null,...X(K.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...X(K.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...X(K.prototype,"writableBuffer")},writableLength:{__proto__:null,...X(K.prototype,"writableLength")},writableFinished:{__proto__:null,...X(K.prototype,"writableFinished")},writableCorked:{__proto__:null,...X(K.prototype,"writableCorked")},writableEnded:{__proto__:null,...X(K.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...X(K.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){if(this._readableState===void 0||this._writableState===void 0)return!1;return this._readableState.destroyed&&this._writableState.destroyed},set(F){if(this._readableState&&this._writableState)this._readableState.destroyed=F,this._writableState.destroyed=F}}});var V;function z(){if(V===void 0)V={};return V}G.fromWeb=function(F,Z){return z().newStreamDuplexFromReadableWritablePair(F,Z)},G.toWeb=function(F){return z().newReadableWritablePairFromDuplex(F)};var w;G.from=function(F){if(!w)w=HV();return w(F,"body")}}),n7=M0((Q,q)=>{var{ObjectSetPrototypeOf:$,Symbol:X}=D0();q.exports=G;var{ERR_METHOD_NOT_IMPLEMENTED:Y}=h0().codes,U=R2(),{getHighWaterMark:J}=m6();$(G.prototype,U.prototype),$(G,U);var K=X("kCallback");function G(w){if(!(this instanceof G))return new G(w);let F=w?J(this,w,"readableHighWaterMark",!0):null;if(F===0)w={...w,highWaterMark:null,readableHighWaterMark:F,writableHighWaterMark:w.writableHighWaterMark||0};if(U.call(this,w),this._readableState.sync=!1,this[K]=null,w){if(typeof w.transform==="function")this._transform=w.transform;if(typeof w.flush==="function")this._flush=w.flush}this.on("prefinish",z)}function V(w){if(typeof this._flush==="function"&&!this.destroyed)this._flush((F,Z)=>{if(F){if(w)w(F);else this.destroy(F);return}if(Z!=null)this.push(Z);if(this.push(null),w)w()});else if(this.push(null),w)w()}function z(){if(this._final!==V)V.call(this)}G.prototype._final=V,G.prototype._transform=function(w,F,Z){throw new Y("_transform()")},G.prototype._write=function(w,F,Z){let h=this._readableState,g=this._writableState,C=h.length;this._transform(w,F,(N,W)=>{if(N){Z(N);return}if(W!=null)this.push(W);if(g.ended||C===h.length||h.length<h.highWaterMark)Z();else this[K]=Z})},G.prototype._read=function(){if(this[K]){let w=this[K];this[K]=null,w()}}}),r7=M0((Q,q)=>{var{ObjectSetPrototypeOf:$}=D0();q.exports=Y;var X=n7();$(Y.prototype,X.prototype),$(Y,X);function Y(U){if(!(this instanceof Y))return new Y(U);X.call(this,U)}Y.prototype._transform=function(U,J,K){K(null,U)}}),N5=M0((Q,q)=>{var $=J1(),{ArrayIsArray:X,Promise:Y,SymbolAsyncIterator:U,SymbolDispose:J}=D0(),K=_2(),{once:G}=p0(),V=O1(),z=R2(),{aggregateTwoErrors:w,codes:{ERR_INVALID_ARG_TYPE:F,ERR_INVALID_RETURN_VALUE:Z,ERR_MISSING_ARGS:h,ERR_STREAM_DESTROYED:g,ERR_STREAM_PREMATURE_CLOSE:C},AbortError:N}=h0(),{validateFunction:W,validateAbortSignal:H}=U6(),{isIterable:M,isReadable:I,isReadableNodeStream:f,isNodeStream:E,isTransformStream:d,isWebStream:R,isReadableStream:x,isReadableFinished:D}=x2(),L=globalThis.AbortController||Y6().AbortController,S,y,v;function a(u,J0,z0){let F0=!1;u.on("close",()=>{F0=!0});let Z0=K(u,{readable:J0,writable:z0},(p)=>{F0=!p});return{destroy:(p)=>{if(F0)return;F0=!0,V.destroyer(u,p||new g("pipe"))},cleanup:Z0}}function Q0(u){return W(u[u.length-1],"streams[stream.length - 1]"),u.pop()}function Y0(u){if(M(u))return u;else if(f(u))return B0(u);throw new F("val",["Readable","Iterable","AsyncIterable"],u)}async function*B0(u){if(!y)y=d6();yield*y.prototype[U].call(u)}async function c(u,J0,z0,{end:F0}){let Z0,p=null,m=(W0)=>{if(W0)Z0=W0;if(p){let A=p;p=null,A()}},s=()=>new Y((W0,A)=>{if(Z0)A(Z0);else p=()=>{if(Z0)A(Z0);else W0()}});J0.on("drain",m);let G0=K(J0,{readable:!1},m);try{if(J0.writableNeedDrain)await s();for await(let W0 of u)if(!J0.write(W0))await s();if(F0)J0.end(),await s();z0()}catch(W0){z0(Z0!==W0?w(Z0,W0):W0)}finally{G0(),J0.off("drain",m)}}async function K0(u,J0,z0,{end:F0}){if(d(J0))J0=J0.writable;let Z0=J0.getWriter();try{for await(let p of u)await Z0.ready,Z0.write(p).catch(()=>{});if(await Z0.ready,F0)await Z0.close();z0()}catch(p){try{await Z0.abort(p),z0(p)}catch(m){z0(m)}}}function P(...u){return l(u,G(Q0(u)))}function l(u,J0,z0){if(u.length===1&&X(u[0]))u=u[0];if(u.length<2)throw new h("streams");let F0=new L,Z0=F0.signal,p=z0===null||z0===void 0?void 0:z0.signal,m=[];H(p,"options.signal");function s(){e(new N)}v=v||p0().addAbortListener;let G0;if(p)G0=v(p,s);let W0,A,T=[],b=0;function r(o){e(o,--b===0)}function e(o,V0){var P0;if(o&&(!W0||W0.code==="ERR_STREAM_PREMATURE_CLOSE"))W0=o;if(!W0&&!V0)return;while(T.length)T.shift()(W0);if((P0=G0)===null||P0===void 0||P0[J](),F0.abort(),V0){if(!W0)m.forEach((o0)=>o0());$.nextTick(J0,W0,A)}}let t;for(let o=0;o<u.length;o++){let V0=u[o],P0=o<u.length-1,o0=o>0,n0=P0||(z0===null||z0===void 0?void 0:z0.end)!==!1,e2=o===u.length-1;if(E(V0)){let g0=function(u0){if(u0&&u0.name!=="AbortError"&&u0.code!=="ERR_STREAM_PREMATURE_CLOSE")r(u0)};var O=g0;if(n0){let{destroy:u0,cleanup:I1}=a(V0,P0,o0);if(T.push(u0),I(V0)&&e2)m.push(I1)}if(V0.on("error",g0),I(V0)&&e2)m.push(()=>{V0.removeListener("error",g0)})}if(o===0)if(typeof V0==="function"){if(t=V0({signal:Z0}),!M(t))throw new Z("Iterable, AsyncIterable or Stream","source",t)}else if(M(V0)||f(V0)||d(V0))t=V0;else t=z.from(V0);else if(typeof V0==="function"){if(d(t)){var i;t=Y0((i=t)===null||i===void 0?void 0:i.readable)}else t=Y0(t);if(t=V0(t,{signal:Z0}),P0){if(!M(t,!0))throw new Z("AsyncIterable",`transform[${o-1}]`,t)}else{var q0;if(!S)S=r7();let g0=new S({objectMode:!0}),u0=(q0=t)===null||q0===void 0?void 0:q0.then;if(typeof u0==="function")b++,u0.call(t,(W2)=>{if(A=W2,W2!=null)g0.write(W2);if(n0)g0.end();$.nextTick(r)},(W2)=>{g0.destroy(W2),$.nextTick(r,W2)});else if(M(t,!0))b++,c(t,g0,r,{end:n0});else if(x(t)||d(t)){let W2=t.readable||t;b++,c(W2,g0,r,{end:n0})}else throw new Z("AsyncIterable or Promise","destination",t);t=g0;let{destroy:I1,cleanup:N1}=a(t,!1,!0);if(T.push(I1),e2)m.push(N1)}}else if(E(V0)){if(f(t)){b+=2;let g0=$0(t,V0,r,{end:n0});if(I(V0)&&e2)m.push(g0)}else if(d(t)||x(t)){let g0=t.readable||t;b++,c(g0,V0,r,{end:n0})}else if(M(t))b++,c(t,V0,r,{end:n0});else throw new F("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],t);t=V0}else if(R(V0)){if(f(t))b++,K0(Y0(t),V0,r,{end:n0});else if(x(t)||M(t))b++,K0(t,V0,r,{end:n0});else if(d(t))b++,K0(t.readable,V0,r,{end:n0});else throw new F("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],t);t=V0}else t=z.from(V0)}if(Z0!==null&&Z0!==void 0&&Z0.aborted||p!==null&&p!==void 0&&p.aborted)$.nextTick(s);return t}function $0(u,J0,z0,{end:F0}){let Z0=!1;if(J0.on("close",()=>{if(!Z0)z0(new C)}),u.pipe(J0,{end:!1}),F0){let m=function(){Z0=!0,J0.end()};var p=m;if(D(u))$.nextTick(m);else u.once("end",m)}else z0();return K(u,{readable:!0,writable:!1},(m)=>{let s=u._readableState;if(m&&m.code==="ERR_STREAM_PREMATURE_CLOSE"&&s&&s.ended&&!s.errored&&!s.errorEmitted)u.once("end",z0).once("error",z0);else z0(m)}),K(J0,{readable:!1,writable:!0},z0)}q.exports={pipelineImpl:l,pipeline:P}}),a7=M0((Q,q)=>{var{pipeline:$}=N5(),X=R2(),{destroyer:Y}=O1(),{isNodeStream:U,isReadable:J,isWritable:K,isWebStream:G,isTransformStream:V,isWritableStream:z,isReadableStream:w}=x2(),{AbortError:F,codes:{ERR_INVALID_ARG_VALUE:Z,ERR_MISSING_ARGS:h}}=h0(),g=_2();q.exports=function(...C){if(C.length===0)throw new h("streams");if(C.length===1)return X.from(C[0]);let N=[...C];if(typeof C[0]==="function")C[0]=X.from(C[0]);if(typeof C[C.length-1]==="function"){let L=C.length-1;C[L]=X.from(C[L])}for(let L=0;L<C.length;++L){if(!U(C[L])&&!G(C[L]))continue;if(L<C.length-1&&!(J(C[L])||w(C[L])||V(C[L])))throw new Z(`streams[${L}]`,N[L],"must be readable");if(L>0&&!(K(C[L])||z(C[L])||V(C[L])))throw new Z(`streams[${L}]`,N[L],"must be writable")}let W,H,M,I,f;function E(L){let S=I;if(I=null,S)S(L);else if(L)f.destroy(L);else if(!D&&!x)f.destroy()}let d=C[0],R=$(C,E),x=!!(K(d)||z(d)||V(d)),D=!!(J(R)||w(R)||V(R));if(f=new X({writableObjectMode:!!(d!==null&&d!==void 0&&d.writableObjectMode),readableObjectMode:!!(R!==null&&R!==void 0&&R.readableObjectMode),writable:x,readable:D}),x){if(U(d))f._write=function(S,y,v){if(d.write(S,y))v();else W=v},f._final=function(S){d.end(),H=S},d.on("drain",function(){if(W){let S=W;W=null,S()}});else if(G(d)){let S=(V(d)?d.writable:d).getWriter();f._write=async function(y,v,a){try{await S.ready,S.write(y).catch(()=>{}),a()}catch(Q0){a(Q0)}},f._final=async function(y){try{await S.ready,S.close().catch(()=>{}),H=y}catch(v){y(v)}}}let L=V(R)?R.readable:R;g(L,()=>{if(H){let S=H;H=null,S()}})}if(D){if(U(R))R.on("readable",function(){if(M){let L=M;M=null,L()}}),R.on("end",function(){f.push(null)}),f._read=function(){while(!0){let L=R.read();if(L===null){M=f._read;return}if(!f.push(L))return}};else if(G(R)){let L=(V(R)?R.readable:R).getReader();f._read=async function(){while(!0)try{let{value:S,done:y}=await L.read();if(!f.push(S))return;if(y){f.push(null);return}}catch{return}}}}return f._destroy=function(L,S){if(!L&&I!==null)L=new F;if(M=null,W=null,H=null,I===null)S(L);else if(I=S,U(R))Y(R,L)},f}}),wV=M0((Q,q)=>{var $=globalThis.AbortController||Y6().AbortController,{codes:{ERR_INVALID_ARG_VALUE:X,ERR_INVALID_ARG_TYPE:Y,ERR_MISSING_ARGS:U,ERR_OUT_OF_RANGE:J},AbortError:K}=h0(),{validateAbortSignal:G,validateInteger:V,validateObject:z}=U6(),w=D0().Symbol("kWeak"),F=D0().Symbol("kResistStopPropagation"),{finished:Z}=_2(),h=a7(),{addAbortSignalNoValidate:g}=p6(),{isWritable:C,isNodeStream:N}=x2(),{deprecate:W}=p0(),{ArrayPrototypePush:H,Boolean:M,MathFloor:I,Number:f,NumberIsNaN:E,Promise:d,PromiseReject:R,PromiseResolve:x,PromisePrototypeThen:D,Symbol:L}=D0(),S=L("kEmpty"),y=L("kEof");function v(p,m){if(m!=null)z(m,"options");if((m===null||m===void 0?void 0:m.signal)!=null)G(m.signal,"options.signal");if(N(p)&&!C(p))throw new X("stream",p,"must be writable");let s=h(this,p);if(m!==null&&m!==void 0&&m.signal)g(m.signal,s);return s}function a(p,m){if(typeof p!=="function")throw new Y("fn",["Function","AsyncFunction"],p);if(m!=null)z(m,"options");if((m===null||m===void 0?void 0:m.signal)!=null)G(m.signal,"options.signal");let s=1;if((m===null||m===void 0?void 0:m.concurrency)!=null)s=I(m.concurrency);let G0=s-1;if((m===null||m===void 0?void 0:m.highWaterMark)!=null)G0=I(m.highWaterMark);return V(s,"options.concurrency",1),V(G0,"options.highWaterMark",0),G0+=s,async function*(){let W0=p0().AbortSignalAny([m===null||m===void 0?void 0:m.signal].filter(M)),A=this,T=[],b={signal:W0},r,e,t=!1,O=0;function i(){t=!0,q0()}function q0(){O-=1,o()}function o(){if(e&&!t&&O<s&&T.length<G0)e(),e=null}async function V0(){try{for await(let P0 of A){if(t)return;if(W0.aborted)throw new K;try{if(P0=p(P0,b),P0===S)continue;P0=x(P0)}catch(o0){P0=R(o0)}if(O+=1,D(P0,q0,i),T.push(P0),r)r(),r=null;if(!t&&(T.length>=G0||O>=s))await new d((o0)=>{e=o0})}T.push(y)}catch(P0){let o0=R(P0);D(o0,q0,i),T.push(o0)}finally{if(t=!0,r)r(),r=null}}V0();try{while(!0){while(T.length>0){let P0=await T[0];if(P0===y)return;if(W0.aborted)throw new K;if(P0!==S)yield P0;T.shift(),o()}await new d((P0)=>{r=P0})}}finally{if(t=!0,e)e(),e=null}}.call(this)}function Q0(p=void 0){if(p!=null)z(p,"options");if((p===null||p===void 0?void 0:p.signal)!=null)G(p.signal,"options.signal");return async function*(){let m=0;for await(let G0 of this){var s;if(p!==null&&p!==void 0&&(s=p.signal)!==null&&s!==void 0&&s.aborted)throw new K({cause:p.signal.reason});yield[m++,G0]}}.call(this)}async function Y0(p,m=void 0){for await(let s of P.call(this,p,m))return!0;return!1}async function B0(p,m=void 0){if(typeof p!=="function")throw new Y("fn",["Function","AsyncFunction"],p);return!await Y0.call(this,async(...s)=>{return!await p(...s)},m)}async function c(p,m){for await(let s of P.call(this,p,m))return s;return}async function K0(p,m){if(typeof p!=="function")throw new Y("fn",["Function","AsyncFunction"],p);async function s(G0,W0){return await p(G0,W0),S}for await(let G0 of a.call(this,s,m));}function P(p,m){if(typeof p!=="function")throw new Y("fn",["Function","AsyncFunction"],p);async function s(G0,W0){if(await p(G0,W0))return G0;return S}return a.call(this,s,m)}class l extends U{constructor(){super("reduce");this.message="Reduce of an empty stream requires an initial value"}}async function $0(p,m,s){var G0;if(typeof p!=="function")throw new Y("reducer",["Function","AsyncFunction"],p);if(s!=null)z(s,"options");if((s===null||s===void 0?void 0:s.signal)!=null)G(s.signal,"options.signal");let W0=arguments.length>1;if(s!==null&&s!==void 0&&(G0=s.signal)!==null&&G0!==void 0&&G0.aborted){let e=new K(void 0,{cause:s.signal.reason});throw this.once("error",()=>{}),await Z(this.destroy(e)),e}let A=new $,T=A.signal;if(s!==null&&s!==void 0&&s.signal){let e={once:!0,[w]:this,[F]:!0};s.signal.addEventListener("abort",()=>A.abort(),e)}let b=!1;try{for await(let e of this){var r;if(b=!0,s!==null&&s!==void 0&&(r=s.signal)!==null&&r!==void 0&&r.aborted)throw new K;if(!W0)m=e,W0=!0;else m=await p(m,e,{signal:T})}if(!b&&!W0)throw new l}finally{A.abort()}return m}async function u(p){if(p!=null)z(p,"options");if((p===null||p===void 0?void 0:p.signal)!=null)G(p.signal,"options.signal");let m=[];for await(let G0 of this){var s;if(p!==null&&p!==void 0&&(s=p.signal)!==null&&s!==void 0&&s.aborted)throw new K(void 0,{cause:p.signal.reason});H(m,G0)}return m}function J0(p,m){let s=a.call(this,p,m);return async function*(){for await(let G0 of s)yield*G0}.call(this)}function z0(p){if(p=f(p),E(p))return 0;if(p<0)throw new J("number",">= 0",p);return p}function F0(p,m=void 0){if(m!=null)z(m,"options");if((m===null||m===void 0?void 0:m.signal)!=null)G(m.signal,"options.signal");return p=z0(p),async function*(){var s;if(m!==null&&m!==void 0&&(s=m.signal)!==null&&s!==void 0&&s.aborted)throw new K;for await(let W0 of this){var G0;if(m!==null&&m!==void 0&&(G0=m.signal)!==null&&G0!==void 0&&G0.aborted)throw new K;if(p--<=0)yield W0}}.call(this)}function Z0(p,m=void 0){if(m!=null)z(m,"options");if((m===null||m===void 0?void 0:m.signal)!=null)G(m.signal,"options.signal");return p=z0(p),async function*(){var s;if(m!==null&&m!==void 0&&(s=m.signal)!==null&&s!==void 0&&s.aborted)throw new K;for await(let W0 of this){var G0;if(m!==null&&m!==void 0&&(G0=m.signal)!==null&&G0!==void 0&&G0.aborted)throw new K;if(p-- >0)yield W0;if(p<=0)return}}.call(this)}q.exports.streamReturningOperators={asIndexedPairs:W(Q0,"readable.asIndexedPairs will be removed in a future version."),drop:F0,filter:P,flatMap:J0,map:a,take:Z0,compose:v},q.exports.promiseReturningOperators={every:B0,forEach:K0,reduce:$0,toArray:u,some:Y0,find:c}}),s7=M0((Q,q)=>{var{ArrayPrototypePop:$,Promise:X}=D0(),{isIterable:Y,isNodeStream:U,isWebStream:J}=x2(),{pipelineImpl:K}=N5(),{finished:G}=_2();t7();function V(...z){return new X((w,F)=>{let Z,h,g=z[z.length-1];if(g&&typeof g==="object"&&!U(g)&&!Y(g)&&!J(g)){let C=$(z);Z=C.signal,h=C.end}K(z,(C,N)=>{if(C)F(C);else w(N)},{signal:Z,end:h})})}q.exports={finished:G,pipeline:V}}),t7=M0((Q,q)=>{var{Buffer:$}=(O2(),a0(A2)),{ObjectDefineProperty:X,ObjectKeys:Y,ReflectApply:U}=D0(),{promisify:{custom:J}}=p0(),{streamReturningOperators:K,promiseReturningOperators:G}=wV(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:V}}=h0(),z=a7(),{setDefaultHighWaterMark:w,getDefaultHighWaterMark:F}=m6(),{pipeline:Z}=N5(),{destroyer:h}=O1(),g=_2(),C=s7(),N=x2(),W=q.exports=C5().Stream;W.isDestroyed=N.isDestroyed,W.isDisturbed=N.isDisturbed,W.isErrored=N.isErrored,W.isReadable=N.isReadable,W.isWritable=N.isWritable,W.Readable=d6();for(let M of Y(K)){let I=function(...E){if(new.target)throw V();return W.Readable.from(U(f,this,E))},f=K[M];X(I,"name",{__proto__:null,value:f.name}),X(I,"length",{__proto__:null,value:f.length}),X(W.Readable.prototype,M,{__proto__:null,value:I,enumerable:!1,configurable:!0,writable:!0})}for(let M of Y(G)){let I=function(...E){if(new.target)throw V();return U(f,this,E)},f=G[M];X(I,"name",{__proto__:null,value:f.name}),X(I,"length",{__proto__:null,value:f.length}),X(W.Readable.prototype,M,{__proto__:null,value:I,enumerable:!1,configurable:!0,writable:!0})}W.Writable=I5(),W.Duplex=R2(),W.Transform=n7(),W.PassThrough=r7(),W.pipeline=Z;var{addAbortSignal:H}=p6();W.addAbortSignal=H,W.finished=g,W.destroy=h,W.compose=z,W.setDefaultHighWaterMark=w,W.getDefaultHighWaterMark=F,X(W,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return C}}),X(Z,J,{__proto__:null,enumerable:!0,get(){return C.pipeline}}),X(g,J,{__proto__:null,enumerable:!0,get(){return C.finished}}),W.Stream=W,W._isUint8Array=function(M){return M instanceof Uint8Array},W._uint8ArrayToBuffer=function(M){return $.from(M.buffer,M.byteOffset,M.byteLength)}}),MV=M0((Q,q)=>{var $=l6();{let X=t7(),Y=s7(),U=X.Readable.destroy;q.exports=X.Readable,q.exports._uint8ArrayToBuffer=X._uint8ArrayToBuffer,q.exports._isUint8Array=X._isUint8Array,q.exports.isDisturbed=X.isDisturbed,q.exports.isErrored=X.isErrored,q.exports.isReadable=X.isReadable,q.exports.Readable=X.Readable,q.exports.Writable=X.Writable,q.exports.Duplex=X.Duplex,q.exports.Transform=X.Transform,q.exports.PassThrough=X.PassThrough,q.exports.addAbortSignal=X.addAbortSignal,q.exports.finished=X.finished,q.exports.destroy=X.destroy,q.exports.destroy=U,q.exports.pipeline=X.pipeline,q.exports.compose=X.compose,Object.defineProperty(X,"promises",{configurable:!0,enumerable:!0,get(){return Y}}),q.exports.Stream=X.Stream}q.exports.default=q.exports});e7.exports=MV()});var T2=k((LV)=>{LV.base64=!0;LV.array=!0;LV.string=!0;LV.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u";LV.nodebuffer=typeof Buffer<"u";LV.uint8array=typeof Uint8Array<"u";if(typeof ArrayBuffer>"u")LV.blob=!1;else{i6=new ArrayBuffer(0);try{LV.blob=new Blob([i6],{type:"application/zip"}).size===0}catch(Q){try{A5=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,o6=new A5,o6.append(i6),LV.blob=o6.getBlob("application/zip").size===0}catch(q){LV.blob=!1}}}var i6,A5,o6;try{LV.nodestream=!!l6().Readable}catch(Q){LV.nodestream=!1}});var O5=k((TV)=>{var RV=A0(),xV=T2(),j2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";TV.encode=function(Q){var q=[],$,X,Y,U,J,K,G,V=0,z=Q.length,w=z,F=RV.getTypeOf(Q)!=="string";while(V<Q.length){if(w=z-V,!F)$=Q.charCodeAt(V++),X=V<z?Q.charCodeAt(V++):0,Y=V<z?Q.charCodeAt(V++):0;else $=Q[V++],X=V<z?Q[V++]:0,Y=V<z?Q[V++]:0;U=$>>2,J=($&3)<<4|X>>4,K=w>1?(X&15)<<2|Y>>6:64,G=w>2?Y&63:64,q.push(j2.charAt(U)+j2.charAt(J)+j2.charAt(K)+j2.charAt(G))}return q.join("")};TV.decode=function(Q){var q,$,X,Y,U,J,K,G=0,V=0,z="data:";if(Q.substr(0,z.length)===z)throw Error("Invalid base64 input, it looks like a data url.");Q=Q.replace(/[^A-Za-z0-9+/=]/g,"");var w=Q.length*3/4;if(Q.charAt(Q.length-1)===j2.charAt(64))w--;if(Q.charAt(Q.length-2)===j2.charAt(64))w--;if(w%1!==0)throw Error("Invalid base64 input, bad content length.");var F;if(xV.uint8array)F=new Uint8Array(w|0);else F=Array(w|0);while(G<Q.length){if(Y=j2.indexOf(Q.charAt(G++)),U=j2.indexOf(Q.charAt(G++)),J=j2.indexOf(Q.charAt(G++)),K=j2.indexOf(Q.charAt(G++)),q=Y<<2|U>>4,$=(U&15)<<4|J>>2,X=(J&3)<<6|K,F[V++]=q,J!==64)F[V++]=$;if(K!==64)F[V++]=X}return F}});var J6=k((iM,Q9)=>{Q9.exports={isNode:typeof Buffer<"u",newBufferFrom:function(Q,q){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(Q,q);else{if(typeof Q==="number")throw Error('The "data" argument must not be a number');return new Buffer(Q,q)}},allocBuffer:function(Q){if(Buffer.alloc)return Buffer.alloc(Q);else{var q=new Buffer(Q);return q.fill(0),q}},isBuffer:function(Q){return Buffer.isBuffer(Q)},isStream:function(Q){return Q&&typeof Q.on==="function"&&typeof Q.pause==="function"&&typeof Q.resume==="function"}}});var X9=k((oM,$9)=>{var q9=global.MutationObserver||global.WebKitMutationObserver,K6;if(q9)r6=0,R5=new q9(n6),a6=global.document.createTextNode(""),R5.observe(a6,{characterData:!0}),K6=function(){a6.data=r6=++r6%2};else if(!global.setImmediate&&typeof global.MessageChannel<"u")s6=new global.MessageChannel,s6.port1.onmessage=n6,K6=function(){s6.port2.postMessage(0)};else if("document"in global&&"onreadystatechange"in global.document.createElement("script"))K6=function(){var Q=global.document.createElement("script");Q.onreadystatechange=function(){n6(),Q.onreadystatechange=null,Q.parentNode.removeChild(Q),Q=null},global.document.documentElement.appendChild(Q)};else K6=function(){setTimeout(n6,0)};var r6,R5,a6,s6,x5,V6=[];function n6(){x5=!0;var Q,q,$=V6.length;while($){q=V6,V6=[],Q=-1;while(++Q<$)q[Q]();$=V6.length}x5=!1}$9.exports=SV;function SV(Q){if(V6.push(Q)===1&&!x5)K6()}});var z9=k((nM,V9)=>{var kV=X9();function R1(){}var f0={},Y9=["REJECTED"],T5=["FULFILLED"],U9=["PENDING"];V9.exports=b2;function b2(Q){if(typeof Q!=="function")throw TypeError("resolver must be a function");if(this.state=U9,this.queue=[],this.outcome=void 0,Q!==R1)J9(this,Q)}b2.prototype.finally=function(Q){if(typeof Q!=="function")return this;var q=this.constructor;return this.then($,X);function $(Y){function U(){return Y}return q.resolve(Q()).then(U)}function X(Y){function U(){throw Y}return q.resolve(Q()).then(U)}};b2.prototype.catch=function(Q){return this.then(null,Q)};b2.prototype.then=function(Q,q){if(typeof Q!=="function"&&this.state===T5||typeof q!=="function"&&this.state===Y9)return this;var $=new this.constructor(R1);if(this.state!==U9){var X=this.state===T5?Q:q;v5($,X,this.outcome)}else this.queue.push(new z6($,Q,q));return $};function z6(Q,q,$){if(this.promise=Q,typeof q==="function")this.onFulfilled=q,this.callFulfilled=this.otherCallFulfilled;if(typeof $==="function")this.onRejected=$,this.callRejected=this.otherCallRejected}z6.prototype.callFulfilled=function(Q){f0.resolve(this.promise,Q)};z6.prototype.otherCallFulfilled=function(Q){v5(this.promise,this.onFulfilled,Q)};z6.prototype.callRejected=function(Q){f0.reject(this.promise,Q)};z6.prototype.otherCallRejected=function(Q){v5(this.promise,this.onRejected,Q)};function v5(Q,q,$){kV(function(){var X;try{X=q($)}catch(Y){return f0.reject(Q,Y)}if(X===Q)f0.reject(Q,TypeError("Cannot resolve promise with itself"));else f0.resolve(Q,X)})}f0.resolve=function(Q,q){var $=K9(gV,q);if($.status==="error")return f0.reject(Q,$.value);var X=$.value;if(X)J9(Q,X);else{Q.state=T5,Q.outcome=q;var Y=-1,U=Q.queue.length;while(++Y<U)Q.queue[Y].callFulfilled(q)}return Q};f0.reject=function(Q,q){Q.state=Y9,Q.outcome=q;var $=-1,X=Q.queue.length;while(++$<X)Q.queue[$].callRejected(q);return Q};function gV(Q){var q=Q&&Q.then;if(Q&&(typeof Q==="object"||typeof Q==="function")&&typeof q==="function")return function(){q.apply(Q,arguments)}}function J9(Q,q){var $=!1;function X(K){if($)return;$=!0,f0.reject(Q,K)}function Y(K){if($)return;$=!0,f0.resolve(Q,K)}function U(){q(Y,X)}var J=K9(U);if(J.status==="error")X(J.value)}function K9(Q,q){var $={};try{$.value=Q(q),$.status="success"}catch(X){$.status="error",$.value=X}return $}b2.resolve=yV;function yV(Q){if(Q instanceof this)return Q;return f0.resolve(new this(R1),Q)}b2.reject=fV;function fV(Q){var q=new this(R1);return f0.reject(q,Q)}b2.all=hV;function hV(Q){var q=this;if(Object.prototype.toString.call(Q)!=="[object Array]")return this.reject(TypeError("must be an array"));var $=Q.length,X=!1;if(!$)return this.resolve([]);var Y=Array($),U=0,J=-1,K=new this(R1);while(++J<$)G(Q[J],J);return K;function G(V,z){q.resolve(V).then(w,function(F){if(!X)X=!0,f0.reject(K,F)});function w(F){if(Y[z]=F,++U===$&&!X)X=!0,f0.resolve(K,Y)}}}b2.race=_V;function _V(Q){var q=this;if(Object.prototype.toString.call(Q)!=="[object Array]")return this.reject(TypeError("must be an array"));var $=Q.length,X=!1;if(!$)return this.resolve([]);var Y=-1,U=new this(R1);while(++Y<$)J(Q[Y]);return U;function J(K){q.resolve(K).then(function(G){if(!X)X=!0,f0.resolve(U,G)},function(G){if(!X)X=!0,f0.reject(U,G)})}}});var x1=k((rM,G9)=>{var E5=null;if(typeof Promise<"u")E5=Promise;else E5=z9();G9.exports={Promise:E5}});var B9=k((W9)=>{(function(Q,q){if(Q.setImmediate)return;var $=1,X={},Y=!1,U=Q.document,J;function K(W){if(typeof W!=="function")W=Function(""+W);var H=Array(arguments.length-1);for(var M=0;M<H.length;M++)H[M]=arguments[M+1];var I={callback:W,args:H};return X[$]=I,J($),$++}function G(W){delete X[W]}function V(W){var{callback:H,args:M}=W;switch(M.length){case 0:H();break;case 1:H(M[0]);break;case 2:H(M[0],M[1]);break;case 3:H(M[0],M[1],M[2]);break;default:H.apply(q,M);break}}function z(W){if(Y)setTimeout(z,0,W);else{var H=X[W];if(H){Y=!0;try{V(H)}finally{G(W),Y=!1}}}}function w(){J=function(W){process.nextTick(function(){z(W)})}}function F(){if(Q.postMessage&&!Q.importScripts){var W=!0,H=Q.onmessage;return Q.onmessage=function(){W=!1},Q.postMessage("","*"),Q.onmessage=H,W}}function Z(){var W="setImmediate$"+Math.random()+"$",H=function(M){if(M.source===Q&&typeof M.data==="string"&&M.data.indexOf(W)===0)z(+M.data.slice(W.length))};if(Q.addEventListener)Q.addEventListener("message",H,!1);else Q.attachEvent("onmessage",H);J=function(M){Q.postMessage(W+M,"*")}}function h(){var W=new MessageChannel;W.port1.onmessage=function(H){var M=H.data;z(M)},J=function(H){W.port2.postMessage(H)}}function g(){var W=U.documentElement;J=function(H){var M=U.createElement("script");M.onreadystatechange=function(){z(H),M.onreadystatechange=null,W.removeChild(M),M=null},W.appendChild(M)}}function C(){J=function(W){setTimeout(z,0,W)}}var N=Object.getPrototypeOf&&Object.getPrototypeOf(Q);if(N=N&&N.setTimeout?N:Q,{}.toString.call(Q.process)==="[object process]")w();else if(F())Z();else if(Q.MessageChannel)h();else if(U&&"onreadystatechange"in U.createElement("script"))g();else C();N.setImmediate=K,N.clearImmediate=G})(typeof self>"u"?typeof global>"u"?W9:global:self)});var A0=k((cV)=>{var u2=T2(),bV=O5(),T1=J6(),S5=x1();B9();function uV(Q){var q=null;if(u2.uint8array)q=new Uint8Array(Q.length);else q=Array(Q.length);return e6(Q,q)}cV.newBlob=function(Q,q){cV.checkSupport("blob");try{return new Blob([Q],{type:q})}catch(Y){try{var $=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,X=new $;return X.append(Q),X.getBlob(q)}catch(U){throw Error("Bug : can't construct the Blob.")}}};function G6(Q){return Q}function e6(Q,q){for(var $=0;$<Q.length;++$)q[$]=Q.charCodeAt($)&255;return q}var t6={stringifyByChunk:function(Q,q,$){var X=[],Y=0,U=Q.length;if(U<=$)return String.fromCharCode.apply(null,Q);while(Y<U){if(q==="array"||q==="nodebuffer")X.push(String.fromCharCode.apply(null,Q.slice(Y,Math.min(Y+$,U))));else X.push(String.fromCharCode.apply(null,Q.subarray(Y,Math.min(Y+$,U))));Y+=$}return X.join("")},stringifyByChar:function(Q){var q="";for(var $=0;$<Q.length;$++)q+=String.fromCharCode(Q[$]);return q},applyCanBeUsed:{uint8array:function(){try{return u2.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(Q){return!1}}(),nodebuffer:function(){try{return u2.nodebuffer&&String.fromCharCode.apply(null,T1.allocBuffer(1)).length===1}catch(Q){return!1}}()}};function W6(Q){var q=65536,$=cV.getTypeOf(Q),X=!0;if($==="uint8array")X=t6.applyCanBeUsed.uint8array;else if($==="nodebuffer")X=t6.applyCanBeUsed.nodebuffer;if(X)while(q>1)try{return t6.stringifyByChunk(Q,$,q)}catch(Y){q=Math.floor(q/2)}return t6.stringifyByChar(Q)}cV.applyFromCharCode=W6;function Q8(Q,q){for(var $=0;$<Q.length;$++)q[$]=Q[$];return q}var c2={};c2.string={string:G6,array:function(Q){return e6(Q,Array(Q.length))},arraybuffer:function(Q){return c2.string.uint8array(Q).buffer},uint8array:function(Q){return e6(Q,new Uint8Array(Q.length))},nodebuffer:function(Q){return e6(Q,T1.allocBuffer(Q.length))}};c2.array={string:W6,array:G6,arraybuffer:function(Q){return new Uint8Array(Q).buffer},uint8array:function(Q){return new Uint8Array(Q)},nodebuffer:function(Q){return T1.newBufferFrom(Q)}};c2.arraybuffer={string:function(Q){return W6(new Uint8Array(Q))},array:function(Q){return Q8(new Uint8Array(Q),Array(Q.byteLength))},arraybuffer:G6,uint8array:function(Q){return new Uint8Array(Q)},nodebuffer:function(Q){return T1.newBufferFrom(new Uint8Array(Q))}};c2.uint8array={string:W6,array:function(Q){return Q8(Q,Array(Q.length))},arraybuffer:function(Q){return Q.buffer},uint8array:G6,nodebuffer:function(Q){return T1.newBufferFrom(Q)}};c2.nodebuffer={string:W6,array:function(Q){return Q8(Q,Array(Q.length))},arraybuffer:function(Q){return c2.nodebuffer.uint8array(Q).buffer},uint8array:function(Q){return Q8(Q,new Uint8Array(Q.length))},nodebuffer:G6};cV.transformTo=function(Q,q){if(!q)q="";if(!Q)return q;cV.checkSupport(Q);var $=cV.getTypeOf(q),X=c2[$][Q](q);return X};cV.resolve=function(Q){var q=Q.split("/"),$=[];for(var X=0;X<q.length;X++){var Y=q[X];if(Y==="."||Y===""&&X!==0&&X!==q.length-1)continue;else if(Y==="..")$.pop();else $.push(Y)}return $.join("/")};cV.getTypeOf=function(Q){if(typeof Q==="string")return"string";if(Object.prototype.toString.call(Q)==="[object Array]")return"array";if(u2.nodebuffer&&T1.isBuffer(Q))return"nodebuffer";if(u2.uint8array&&Q instanceof Uint8Array)return"uint8array";if(u2.arraybuffer&&Q instanceof ArrayBuffer)return"arraybuffer"};cV.checkSupport=function(Q){var q=u2[Q.toLowerCase()];if(!q)throw Error(Q+" is not supported by this platform")};cV.MAX_VALUE_16BITS=65535;cV.MAX_VALUE_32BITS=-1;cV.pretty=function(Q){var q="",$,X;for(X=0;X<(Q||"").length;X++)$=Q.charCodeAt(X),q+="\\x"+($<16?"0":"")+$.toString(16).toUpperCase();return q};cV.delay=function(Q,q,$){setImmediate(function(){Q.apply($||null,q||[])})};cV.inherits=function(Q,q){var $=function(){};$.prototype=q.prototype,Q.prototype=new $};cV.extend=function(){var Q={},q,$;for(q=0;q<arguments.length;q++)for($ in arguments[q])if(Object.prototype.hasOwnProperty.call(arguments[q],$)&&typeof Q[$]>"u")Q[$]=arguments[q][$];return Q};cV.prepareContent=function(Q,q,$,X,Y){var U=S5.Promise.resolve(q).then(function(J){var K=u2.blob&&(J instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(J))!==-1);if(K&&typeof FileReader<"u")return new S5.Promise(function(G,V){var z=new FileReader;z.onload=function(w){G(w.target.result)},z.onerror=function(w){V(w.target.error)},z.readAsArrayBuffer(J)});else return J});return U.then(function(J){var K=cV.getTypeOf(J);if(!K)return S5.Promise.reject(Error("Can't read the data of '"+Q+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));if(K==="arraybuffer")J=cV.transformTo("uint8array",J);else if(K==="string"){if(Y)J=bV.decode(J);else if($){if(X!==!0)J=uV(J)}}return J})}});var l0=k((tM,H9)=>{function F9(Q){this.name=Q||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}F9.prototype={push:function(Q){this.emit("data",Q)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(Q){this.emit("error",Q)}return!0},error:function(Q){if(this.isFinished)return!1;if(this.isPaused)this.generatedError=Q;else{if(this.isFinished=!0,this.emit("error",Q),this.previous)this.previous.error(Q);this.cleanUp()}return!0},on:function(Q,q){return this._listeners[Q].push(q),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(Q,q){if(this._listeners[Q])for(var $=0;$<this._listeners[Q].length;$++)this._listeners[Q][$].call(this,q)},pipe:function(Q){return Q.registerPrevious(this)},registerPrevious:function(Q){if(this.isLocked)throw Error("The stream '"+this+"' has already been used.");this.streamInfo=Q.streamInfo,this.mergeStreamInfo(),this.previous=Q;var q=this;return Q.on("data",function($){q.processChunk($)}),Q.on("end",function(){q.end()}),Q.on("error",function($){q.error($)}),this},pause:function(){if(this.isPaused||this.isFinished)return!1;if(this.isPaused=!0,this.previous)this.previous.pause();return!0},resume:function(){if(!this.isPaused||this.isFinished)return!1;this.isPaused=!1;var Q=!1;if(this.generatedError)this.error(this.generatedError),Q=!0;if(this.previous)this.previous.resume();return!Q},flush:function(){},processChunk:function(Q){this.push(Q)},withStreamInfo:function(Q,q){return this.extraStreamInfo[Q]=q,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var Q in this.extraStreamInfo){if(!Object.prototype.hasOwnProperty.call(this.extraStreamInfo,Q))continue;this.streamInfo[Q]=this.extraStreamInfo[Q]}},lock:function(){if(this.isLocked)throw Error("The stream '"+this+"' has already been used.");if(this.isLocked=!0,this.previous)this.previous.lock()},toString:function(){var Q="Worker "+this.name;if(this.previous)return this.previous+" -> "+Q;else return Q}};H9.exports=F9});var E1=k(($z)=>{var v1=A0(),K1=T2(),tV=J6(),q8=l0(),B6=Array(256);for(F2=0;F2<256;F2++)B6[F2]=F2>=252?6:F2>=248?5:F2>=240?4:F2>=224?3:F2>=192?2:1;var F2;B6[254]=B6[254]=1;var eV=function(Q){var q,$,X,Y,U,J=Q.length,K=0;for(Y=0;Y<J;Y++){if($=Q.charCodeAt(Y),($&64512)===55296&&Y+1<J){if(X=Q.charCodeAt(Y+1),(X&64512)===56320)$=65536+($-55296<<10)+(X-56320),Y++}K+=$<128?1:$<2048?2:$<65536?3:4}if(K1.uint8array)q=new Uint8Array(K);else q=Array(K);for(U=0,Y=0;U<K;Y++){if($=Q.charCodeAt(Y),($&64512)===55296&&Y+1<J){if(X=Q.charCodeAt(Y+1),(X&64512)===56320)$=65536+($-55296<<10)+(X-56320),Y++}if($<128)q[U++]=$;else if($<2048)q[U++]=192|$>>>6,q[U++]=128|$&63;else if($<65536)q[U++]=224|$>>>12,q[U++]=128|$>>>6&63,q[U++]=128|$&63;else q[U++]=240|$>>>18,q[U++]=128|$>>>12&63,q[U++]=128|$>>>6&63,q[U++]=128|$&63}return q},Qz=function(Q,q){var $;if(q=q||Q.length,q>Q.length)q=Q.length;$=q-1;while($>=0&&(Q[$]&192)===128)$--;if($<0)return q;if($===0)return q;return $+B6[Q[$]]>q?$:q},qz=function(Q){var q,$,X,Y,U=Q.length,J=Array(U*2);for($=0,q=0;q<U;){if(X=Q[q++],X<128){J[$++]=X;continue}if(Y=B6[X],Y>4){J[$++]=65533,q+=Y-1;continue}X&=Y===2?31:Y===3?15:7;while(Y>1&&q<U)X=X<<6|Q[q++]&63,Y--;if(Y>1){J[$++]=65533;continue}if(X<65536)J[$++]=X;else X-=65536,J[$++]=55296|X>>10&1023,J[$++]=56320|X&1023}if(J.length!==$)if(J.subarray)J=J.subarray(0,$);else J.length=$;return v1.applyFromCharCode(J)};$z.utf8encode=function(q){if(K1.nodebuffer)return tV.newBufferFrom(q,"utf-8");return eV(q)};$z.utf8decode=function(q){if(K1.nodebuffer)return v1.transformTo("nodebuffer",q).toString("utf-8");return q=v1.transformTo(K1.uint8array?"uint8array":"array",q),qz(q)};function $8(){q8.call(this,"utf-8 decode"),this.leftOver=null}v1.inherits($8,q8);$8.prototype.processChunk=function(Q){var q=v1.transformTo(K1.uint8array?"uint8array":"array",Q.data);if(this.leftOver&&this.leftOver.length){if(K1.uint8array){var $=q;q=new Uint8Array($.length+this.leftOver.length),q.set(this.leftOver,0),q.set($,this.leftOver.length)}else q=this.leftOver.concat(q);this.leftOver=null}var X=Qz(q),Y=q;if(X!==q.length)if(K1.uint8array)Y=q.subarray(0,X),this.leftOver=q.subarray(X,q.length);else Y=q.slice(0,X),this.leftOver=q.slice(X,q.length);this.push({data:$z.utf8decode(Y),meta:Q.meta})};$8.prototype.flush=function(){if(this.leftOver&&this.leftOver.length)this.push({data:$z.utf8decode(this.leftOver),meta:{}}),this.leftOver=null};$z.Utf8DecodeWorker=$8;function g5(){q8.call(this,"utf-8 encode")}v1.inherits(g5,q8);g5.prototype.processChunk=function(Q){this.push({data:$z.utf8encode(Q.data),meta:Q.meta})};$z.Utf8EncodeWorker=g5});var C9=k((QP,L9)=>{var M9=l0(),P9=A0();function f5(Q){M9.call(this,"ConvertWorker to "+Q),this.destType=Q}P9.inherits(f5,M9);f5.prototype.processChunk=function(Q){this.push({data:P9.transformTo(this.destType,Q.data),meta:Q.meta})};L9.exports=f5});var D9=k((qP,N9)=>{var I9=l6().Readable,Uz=A0();Uz.inherits(h5,I9);function h5(Q,q,$){I9.call(this,q),this._helper=Q;var X=this;Q.on("data",function(Y,U){if(!X.push(Y))X._helper.pause();if($)$(U)}).on("error",function(Y){X.emit("error",Y)}).on("end",function(){X.push(null)})}h5.prototype._read=function(){this._helper.resume()};N9.exports=h5});var _5=k(($P,R9)=>{var V1=A0(),Jz=C9(),Kz=l0(),Vz=O5(),zz=T2(),Gz=x1(),A9=null;if(zz.nodestream)try{A9=D9()}catch(Q){}function Wz(Q,q,$){switch(Q){case"blob":return V1.newBlob(V1.transformTo("arraybuffer",q),$);case"base64":return Vz.encode(q);default:return V1.transformTo(Q,q)}}function Bz(Q,q){var $,X=0,Y=null,U=0;for($=0;$<q.length;$++)U+=q[$].length;switch(Q){case"string":return q.join("");case"array":return Array.prototype.concat.apply([],q);case"uint8array":Y=new Uint8Array(U);for($=0;$<q.length;$++)Y.set(q[$],X),X+=q[$].length;return Y;case"nodebuffer":return Buffer.concat(q);default:throw Error("concat : unsupported type '"+Q+"'")}}function Zz(Q,q){return new Gz.Promise(function($,X){var Y=[],U=Q._internalType,J=Q._outputType,K=Q._mimeType;Q.on("data",function(G,V){if(Y.push(G),q)q(V)}).on("error",function(G){Y=[],X(G)}).on("end",function(){try{var G=Wz(J,Bz(U,Y),K);$(G)}catch(V){X(V)}Y=[]}).resume()})}function O9(Q,q,$){var X=q;switch(q){case"blob":case"arraybuffer":X="uint8array";break;case"base64":X="string";break}try{this._internalType=X,this._outputType=q,this._mimeType=$,V1.checkSupport(X),this._worker=Q.pipe(new Jz(X)),Q.lock()}catch(Y){this._worker=new Kz("error"),this._worker.error(Y)}}O9.prototype={accumulate:function(Q){return Zz(this,Q)},on:function(Q,q){var $=this;if(Q==="data")this._worker.on(Q,function(X){q.call($,X.data,X.meta)});else this._worker.on(Q,function(){V1.delay(q,arguments,$)});return this},resume:function(){return V1.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(Q){if(V1.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw Error(this._outputType+" is not supported by this method");return new A9(this,{objectMode:this._outputType!=="nodebuffer"},Q)}};R9.exports=O9});var b5=k((jz)=>{jz.base64=!1;jz.binary=!1;jz.dir=!1;jz.createFolders=!0;jz.date=null;jz.compression=null;jz.compressionOptions=null;jz.comment=null;jz.unixPermissions=null;jz.dosPermissions=null});var u5=k((YP,x9)=>{var X8=A0(),Y8=l0(),Az=16384;function S1(Q){Y8.call(this,"DataWorker");var q=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,Q.then(function($){if(q.dataIsReady=!0,q.data=$,q.max=$&&$.length||0,q.type=X8.getTypeOf($),!q.isPaused)q._tickAndRepeat()},function($){q.error($)})}X8.inherits(S1,Y8);S1.prototype.cleanUp=function(){Y8.prototype.cleanUp.call(this),this.data=null};S1.prototype.resume=function(){if(!Y8.prototype.resume.call(this))return!1;if(!this._tickScheduled&&this.dataIsReady)this._tickScheduled=!0,X8.delay(this._tickAndRepeat,[],this);return!0};S1.prototype._tickAndRepeat=function(){if(this._tickScheduled=!1,this.isPaused||this.isFinished)return;if(this._tick(),!this.isFinished)X8.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0};S1.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var Q=Az,q=null,$=Math.min(this.max,this.index+Q);if(this.index>=this.max)return this.end();else{switch(this.type){case"string":q=this.data.substring(this.index,$);break;case"uint8array":q=this.data.subarray(this.index,$);break;case"array":case"nodebuffer":q=this.data.slice(this.index,$);break}return this.index=$,this.push({data:q,meta:{percent:this.max?this.index/this.max*100:0}})}};x9.exports=S1});var U8=k((UP,v9)=>{var Oz=A0();function Rz(){var Q,q=[];for(var $=0;$<256;$++){Q=$;for(var X=0;X<8;X++)Q=Q&1?3988292384^Q>>>1:Q>>>1;q[$]=Q}return q}var T9=Rz();function xz(Q,q,$,X){var Y=T9,U=X+$;Q=Q^-1;for(var J=X;J<U;J++)Q=Q>>>8^Y[(Q^q[J])&255];return Q^-1}function Tz(Q,q,$,X){var Y=T9,U=X+$;Q=Q^-1;for(var J=X;J<U;J++)Q=Q>>>8^Y[(Q^q.charCodeAt(J))&255];return Q^-1}v9.exports=function(q,$){if(typeof q>"u"||!q.length)return 0;var X=Oz.getTypeOf(q)!=="string";if(X)return xz($|0,q,q.length,0);else return Tz($|0,q,q.length,0)}});var p5=k((JP,S9)=>{var E9=l0(),vz=U8(),Ez=A0();function c5(){E9.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}Ez.inherits(c5,E9);c5.prototype.processChunk=function(Q){this.streamInfo.crc32=vz(Q.data,this.streamInfo.crc32||0),this.push(Q)};S9.exports=c5});var g9=k((KP,k9)=>{var Sz=A0(),m5=l0();function d5(Q){m5.call(this,"DataLengthProbe for "+Q),this.propName=Q,this.withStreamInfo(Q,0)}Sz.inherits(d5,m5);d5.prototype.processChunk=function(Q){if(Q){var q=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=q+Q.data.length}m5.prototype.processChunk.call(this,Q)};k9.exports=d5});var J8=k((VP,h9)=>{var y9=x1(),f9=u5(),kz=p5(),l5=g9();function i5(Q,q,$,X,Y){this.compressedSize=Q,this.uncompressedSize=q,this.crc32=$,this.compression=X,this.compressedContent=Y}i5.prototype={getContentWorker:function(){var Q=new f9(y9.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new l5("data_length")),q=this;return Q.on("end",function(){if(this.streamInfo.data_length!==q.uncompressedSize)throw Error("Bug : uncompressed data size mismatch")}),Q},getCompressedWorker:function(){return new f9(y9.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}};i5.createWorkerFrom=function(Q,q,$){return Q.pipe(new kz).pipe(new l5("uncompressedSize")).pipe(q.compressWorker($)).pipe(new l5("compressedSize")).withStreamInfo("compression",q)};h9.exports=i5});var c9=k((zP,u9)=>{var gz=_5(),yz=u5(),o5=E1(),n5=J8(),_9=l0(),r5=function(Q,q,$){this.name=Q,this.dir=$.dir,this.date=$.date,this.comment=$.comment,this.unixPermissions=$.unixPermissions,this.dosPermissions=$.dosPermissions,this._data=q,this._dataBinary=$.binary,this.options={compression:$.compression,compressionOptions:$.compressionOptions}};r5.prototype={internalStream:function(Q){var q=null,$="string";try{if(!Q)throw Error("No output type specified.");$=Q.toLowerCase();var X=$==="string"||$==="text";if($==="binarystring"||$==="text")$="string";q=this._decompressWorker();var Y=!this._dataBinary;if(Y&&!X)q=q.pipe(new o5.Utf8EncodeWorker);if(!Y&&X)q=q.pipe(new o5.Utf8DecodeWorker)}catch(U){q=new _9("error"),q.error(U)}return new gz(q,$,"")},async:function(Q,q){return this.internalStream(Q).accumulate(q)},nodeStream:function(Q,q){return this.internalStream(Q||"nodebuffer").toNodejsStream(q)},_compressWorker:function(Q,q){if(this._data instanceof n5&&this._data.compression.magic===Q.magic)return this._data.getCompressedWorker();else{var $=this._decompressWorker();if(!this._dataBinary)$=$.pipe(new o5.Utf8EncodeWorker);return n5.createWorkerFrom($,Q,q)}},_decompressWorker:function(){if(this._data instanceof n5)return this._data.getContentWorker();else if(this._data instanceof _9)return this._data;else return new yz(this._data)}};var b9=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],fz=function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")};for(Z6=0;Z6<b9.length;Z6++)r5.prototype[b9[Z6]]=fz;var Z6;u9.exports=r5});var v2=k((a5)=>{var uz=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function cz(Q,q){return Object.prototype.hasOwnProperty.call(Q,q)}a5.assign=function(Q){var q=Array.prototype.slice.call(arguments,1);while(q.length){var $=q.shift();if(!$)continue;if(typeof $!=="object")throw TypeError($+"must be non-object");for(var X in $)if(cz($,X))Q[X]=$[X]}return Q};a5.shrinkBuf=function(Q,q){if(Q.length===q)return Q;if(Q.subarray)return Q.subarray(0,q);return Q.length=q,Q};var pz={arraySet:function(Q,q,$,X,Y){if(q.subarray&&Q.subarray){Q.set(q.subarray($,$+X),Y);return}for(var U=0;U<X;U++)Q[Y+U]=q[$+U]},flattenChunks:function(Q){var q,$,X,Y,U,J;X=0;for(q=0,$=Q.length;q<$;q++)X+=Q[q].length;J=new Uint8Array(X),Y=0;for(q=0,$=Q.length;q<$;q++)U=Q[q],J.set(U,Y),Y+=U.length;return J}},mz={arraySet:function(Q,q,$,X,Y){for(var U=0;U<X;U++)Q[Y+U]=q[$+U]},flattenChunks:function(Q){return[].concat.apply([],Q)}};a5.setTyped=function(Q){if(Q)a5.Buf8=Uint8Array,a5.Buf16=Uint16Array,a5.Buf32=Int32Array,a5.assign(a5,pz);else a5.Buf8=Array,a5.Buf16=Array,a5.Buf32=Array,a5.assign(a5,mz)};a5.setTyped(uz)});var Wq=k((BG)=>{var lz=v2(),iz=4,m9=0,d9=1,oz=2;function g1(Q){var q=Q.length;while(--q>=0)Q[q]=0}var nz=0,a9=1,rz=2,az=3,sz=258,Y4=29,P6=256,F6=P6+1+Y4,k1=30,U4=19,s9=2*F6+1,z1=15,t5=16,tz=7,J4=256,t9=16,e9=17,Qq=18,$4=[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],K8=[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],ez=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],qq=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],QG=512,E2=Array((F6+2)*2);g1(E2);var j6=Array(k1*2);g1(j6);var H6=Array(QG);g1(H6);var w6=Array(sz-az+1);g1(w6);var K4=Array(Y4);g1(K4);var V8=Array(k1);g1(V8);function e5(Q,q,$,X,Y){this.static_tree=Q,this.extra_bits=q,this.extra_base=$,this.elems=X,this.max_length=Y,this.has_stree=Q&&Q.length}var $q,Xq,Yq;function Q4(Q,q){this.dyn_tree=Q,this.max_code=0,this.stat_desc=q}function Uq(Q){return Q<256?H6[Q]:H6[256+(Q>>>7)]}function M6(Q,q){Q.pending_buf[Q.pending++]=q&255,Q.pending_buf[Q.pending++]=q>>>8&255}function m0(Q,q,$){if(Q.bi_valid>t5-$)Q.bi_buf|=q<<Q.bi_valid&65535,M6(Q,Q.bi_buf),Q.bi_buf=q>>t5-Q.bi_valid,Q.bi_valid+=$-t5;else Q.bi_buf|=q<<Q.bi_valid&65535,Q.bi_valid+=$}function H2(Q,q,$){m0(Q,$[q*2],$[q*2+1])}function Jq(Q,q){var $=0;do $|=Q&1,Q>>>=1,$<<=1;while(--q>0);return $>>>1}function qG(Q){if(Q.bi_valid===16)M6(Q,Q.bi_buf),Q.bi_buf=0,Q.bi_valid=0;else if(Q.bi_valid>=8)Q.pending_buf[Q.pending++]=Q.bi_buf&255,Q.bi_buf>>=8,Q.bi_valid-=8}function $G(Q,q){var{dyn_tree:$,max_code:X}=q,Y=q.stat_desc.static_tree,U=q.stat_desc.has_stree,J=q.stat_desc.extra_bits,K=q.stat_desc.extra_base,G=q.stat_desc.max_length,V,z,w,F,Z,h,g=0;for(F=0;F<=z1;F++)Q.bl_count[F]=0;$[Q.heap[Q.heap_max]*2+1]=0;for(V=Q.heap_max+1;V<s9;V++){if(z=Q.heap[V],F=$[$[z*2+1]*2+1]+1,F>G)F=G,g++;if($[z*2+1]=F,z>X)continue;if(Q.bl_count[F]++,Z=0,z>=K)Z=J[z-K];if(h=$[z*2],Q.opt_len+=h*(F+Z),U)Q.static_len+=h*(Y[z*2+1]+Z)}if(g===0)return;do{F=G-1;while(Q.bl_count[F]===0)F--;Q.bl_count[F]--,Q.bl_count[F+1]+=2,Q.bl_count[G]--,g-=2}while(g>0);for(F=G;F!==0;F--){z=Q.bl_count[F];while(z!==0){if(w=Q.heap[--V],w>X)continue;if($[w*2+1]!==F)Q.opt_len+=(F-$[w*2+1])*$[w*2],$[w*2+1]=F;z--}}}function Kq(Q,q,$){var X=Array(z1+1),Y=0,U,J;for(U=1;U<=z1;U++)X[U]=Y=Y+$[U-1]<<1;for(J=0;J<=q;J++){var K=Q[J*2+1];if(K===0)continue;Q[J*2]=Jq(X[K]++,K)}}function XG(){var Q,q,$,X,Y,U=Array(z1+1);$=0;for(X=0;X<Y4-1;X++){K4[X]=$;for(Q=0;Q<1<<$4[X];Q++)w6[$++]=X}w6[$-1]=X,Y=0;for(X=0;X<16;X++){V8[X]=Y;for(Q=0;Q<1<<K8[X];Q++)H6[Y++]=X}Y>>=7;for(;X<k1;X++){V8[X]=Y<<7;for(Q=0;Q<1<<K8[X]-7;Q++)H6[256+Y++]=X}for(q=0;q<=z1;q++)U[q]=0;Q=0;while(Q<=143)E2[Q*2+1]=8,Q++,U[8]++;while(Q<=255)E2[Q*2+1]=9,Q++,U[9]++;while(Q<=279)E2[Q*2+1]=7,Q++,U[7]++;while(Q<=287)E2[Q*2+1]=8,Q++,U[8]++;Kq(E2,F6+1,U);for(Q=0;Q<k1;Q++)j6[Q*2+1]=5,j6[Q*2]=Jq(Q,5);$q=new e5(E2,$4,P6+1,F6,z1),Xq=new e5(j6,K8,0,k1,z1),Yq=new e5([],ez,0,U4,tz)}function Vq(Q){var q;for(q=0;q<F6;q++)Q.dyn_ltree[q*2]=0;for(q=0;q<k1;q++)Q.dyn_dtree[q*2]=0;for(q=0;q<U4;q++)Q.bl_tree[q*2]=0;Q.dyn_ltree[J4*2]=1,Q.opt_len=Q.static_len=0,Q.last_lit=Q.matches=0}function zq(Q){if(Q.bi_valid>8)M6(Q,Q.bi_buf);else if(Q.bi_valid>0)Q.pending_buf[Q.pending++]=Q.bi_buf;Q.bi_buf=0,Q.bi_valid=0}function YG(Q,q,$,X){if(zq(Q),X)M6(Q,$),M6(Q,~$);lz.arraySet(Q.pending_buf,Q.window,q,$,Q.pending),Q.pending+=$}function l9(Q,q,$,X){var Y=q*2,U=$*2;return Q[Y]<Q[U]||Q[Y]===Q[U]&&X[q]<=X[$]}function q4(Q,q,$){var X=Q.heap[$],Y=$<<1;while(Y<=Q.heap_len){if(Y<Q.heap_len&&l9(q,Q.heap[Y+1],Q.heap[Y],Q.depth))Y++;if(l9(q,X,Q.heap[Y],Q.depth))break;Q.heap[$]=Q.heap[Y],$=Y,Y<<=1}Q.heap[$]=X}function i9(Q,q,$){var X,Y,U=0,J,K;if(Q.last_lit!==0)do if(X=Q.pending_buf[Q.d_buf+U*2]<<8|Q.pending_buf[Q.d_buf+U*2+1],Y=Q.pending_buf[Q.l_buf+U],U++,X===0)H2(Q,Y,q);else{if(J=w6[Y],H2(Q,J+P6+1,q),K=$4[J],K!==0)Y-=K4[J],m0(Q,Y,K);if(X--,J=Uq(X),H2(Q,J,$),K=K8[J],K!==0)X-=V8[J],m0(Q,X,K)}while(U<Q.last_lit);H2(Q,J4,q)}function X4(Q,q){var $=q.dyn_tree,X=q.stat_desc.static_tree,Y=q.stat_desc.has_stree,U=q.stat_desc.elems,J,K,G=-1,V;Q.heap_len=0,Q.heap_max=s9;for(J=0;J<U;J++)if($[J*2]!==0)Q.heap[++Q.heap_len]=G=J,Q.depth[J]=0;else $[J*2+1]=0;while(Q.heap_len<2)if(V=Q.heap[++Q.heap_len]=G<2?++G:0,$[V*2]=1,Q.depth[V]=0,Q.opt_len--,Y)Q.static_len-=X[V*2+1];q.max_code=G;for(J=Q.heap_len>>1;J>=1;J--)q4(Q,$,J);V=U;do J=Q.heap[1],Q.heap[1]=Q.heap[Q.heap_len--],q4(Q,$,1),K=Q.heap[1],Q.heap[--Q.heap_max]=J,Q.heap[--Q.heap_max]=K,$[V*2]=$[J*2]+$[K*2],Q.depth[V]=(Q.depth[J]>=Q.depth[K]?Q.depth[J]:Q.depth[K])+1,$[J*2+1]=$[K*2+1]=V,Q.heap[1]=V++,q4(Q,$,1);while(Q.heap_len>=2);Q.heap[--Q.heap_max]=Q.heap[1],$G(Q,q),Kq($,G,Q.bl_count)}function o9(Q,q,$){var X,Y=-1,U,J=q[1],K=0,G=7,V=4;if(J===0)G=138,V=3;q[($+1)*2+1]=65535;for(X=0;X<=$;X++){if(U=J,J=q[(X+1)*2+1],++K<G&&U===J)continue;else if(K<V)Q.bl_tree[U*2]+=K;else if(U!==0){if(U!==Y)Q.bl_tree[U*2]++;Q.bl_tree[t9*2]++}else if(K<=10)Q.bl_tree[e9*2]++;else Q.bl_tree[Qq*2]++;if(K=0,Y=U,J===0)G=138,V=3;else if(U===J)G=6,V=3;else G=7,V=4}}function n9(Q,q,$){var X,Y=-1,U,J=q[1],K=0,G=7,V=4;if(J===0)G=138,V=3;for(X=0;X<=$;X++){if(U=J,J=q[(X+1)*2+1],++K<G&&U===J)continue;else if(K<V)do H2(Q,U,Q.bl_tree);while(--K!==0);else if(U!==0){if(U!==Y)H2(Q,U,Q.bl_tree),K--;H2(Q,t9,Q.bl_tree),m0(Q,K-3,2)}else if(K<=10)H2(Q,e9,Q.bl_tree),m0(Q,K-3,3);else H2(Q,Qq,Q.bl_tree),m0(Q,K-11,7);if(K=0,Y=U,J===0)G=138,V=3;else if(U===J)G=6,V=3;else G=7,V=4}}function UG(Q){var q;o9(Q,Q.dyn_ltree,Q.l_desc.max_code),o9(Q,Q.dyn_dtree,Q.d_desc.max_code),X4(Q,Q.bl_desc);for(q=U4-1;q>=3;q--)if(Q.bl_tree[qq[q]*2+1]!==0)break;return Q.opt_len+=3*(q+1)+5+5+4,q}function JG(Q,q,$,X){var Y;m0(Q,q-257,5),m0(Q,$-1,5),m0(Q,X-4,4);for(Y=0;Y<X;Y++)m0(Q,Q.bl_tree[qq[Y]*2+1],3);n9(Q,Q.dyn_ltree,q-1),n9(Q,Q.dyn_dtree,$-1)}function KG(Q){var q=4093624447,$;for($=0;$<=31;$++,q>>>=1)if(q&1&&Q.dyn_ltree[$*2]!==0)return m9;if(Q.dyn_ltree[18]!==0||Q.dyn_ltree[20]!==0||Q.dyn_ltree[26]!==0)return d9;for($=32;$<P6;$++)if(Q.dyn_ltree[$*2]!==0)return d9;return m9}var r9=!1;function VG(Q){if(!r9)XG(),r9=!0;Q.l_desc=new Q4(Q.dyn_ltree,$q),Q.d_desc=new Q4(Q.dyn_dtree,Xq),Q.bl_desc=new Q4(Q.bl_tree,Yq),Q.bi_buf=0,Q.bi_valid=0,Vq(Q)}function Gq(Q,q,$,X){m0(Q,(nz<<1)+(X?1:0),3),YG(Q,q,$,!0)}function zG(Q){m0(Q,a9<<1,3),H2(Q,J4,E2),qG(Q)}function GG(Q,q,$,X){var Y,U,J=0;if(Q.level>0){if(Q.strm.data_type===oz)Q.strm.data_type=KG(Q);if(X4(Q,Q.l_desc),X4(Q,Q.d_desc),J=UG(Q),Y=Q.opt_len+3+7>>>3,U=Q.static_len+3+7>>>3,U<=Y)Y=U}else Y=U=$+5;if($+4<=Y&&q!==-1)Gq(Q,q,$,X);else if(Q.strategy===iz||U===Y)m0(Q,(a9<<1)+(X?1:0),3),i9(Q,E2,j6);else m0(Q,(rz<<1)+(X?1:0),3),JG(Q,Q.l_desc.max_code+1,Q.d_desc.max_code+1,J+1),i9(Q,Q.dyn_ltree,Q.dyn_dtree);if(Vq(Q),X)zq(Q)}function WG(Q,q,$){if(Q.pending_buf[Q.d_buf+Q.last_lit*2]=q>>>8&255,Q.pending_buf[Q.d_buf+Q.last_lit*2+1]=q&255,Q.pending_buf[Q.l_buf+Q.last_lit]=$&255,Q.last_lit++,q===0)Q.dyn_ltree[$*2]++;else Q.matches++,q--,Q.dyn_ltree[(w6[$]+P6+1)*2]++,Q.dyn_dtree[Uq(q)*2]++;return Q.last_lit===Q.lit_bufsize-1}BG._tr_init=VG;BG._tr_stored_block=Gq;BG._tr_flush_block=GG;BG._tr_tally=WG;BG._tr_align=zG});var V4=k((BP,Bq)=>{function MG(Q,q,$,X){var Y=Q&65535|0,U=Q>>>16&65535|0,J=0;while($!==0){J=$>2000?2000:$,$-=J;do Y=Y+q[X++]|0,U=U+Y|0;while(--J);Y%=65521,U%=65521}return Y|U<<16|0}Bq.exports=MG});var z4=k((ZP,Zq)=>{function PG(){var Q,q=[];for(var $=0;$<256;$++){Q=$;for(var X=0;X<8;X++)Q=Q&1?3988292384^Q>>>1:Q>>>1;q[$]=Q}return q}var LG=PG();function CG(Q,q,$,X){var Y=LG,U=X+$;Q^=-1;for(var J=X;J<U;J++)Q=Q>>>8^Y[(Q^q[J])&255];return Q^-1}Zq.exports=CG});var z8=k((jP,jq)=>{jq.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}});var Nq=k((QW)=>{var _0=v2(),t0=Wq(),Mq=V4(),p2=z4(),IG=z8(),Z1=0,NG=1,DG=3,o2=4,Fq=5,M2=0,Hq=1,e0=-2,AG=-3,G4=-5,OG=-1,RG=1,G8=2,xG=3,TG=4,vG=0,EG=2,j8=8,SG=9,kG=15,gG=8,yG=29,fG=256,B4=fG+1+yG,hG=30,_G=19,bG=2*B4+1,uG=15,H0=3,l2=258,U2=l2+H0+1,cG=32,F8=42,Z4=69,W8=73,B8=91,Z8=103,G1=113,C6=666,T0=1,I6=2,W1=3,h1=4,pG=3;function i2(Q,q){return Q.msg=IG[q],q}function wq(Q){return(Q<<1)-(Q>4?9:0)}function d2(Q){var q=Q.length;while(--q>=0)Q[q]=0}function m2(Q){var q=Q.state,$=q.pending;if($>Q.avail_out)$=Q.avail_out;if($===0)return;if(_0.arraySet(Q.output,q.pending_buf,q.pending_out,$,Q.next_out),Q.next_out+=$,q.pending_out+=$,Q.total_out+=$,Q.avail_out-=$,q.pending-=$,q.pending===0)q.pending_out=0}function E0(Q,q){t0._tr_flush_block(Q,Q.block_start>=0?Q.block_start:-1,Q.strstart-Q.block_start,q),Q.block_start=Q.strstart,m2(Q.strm)}function w0(Q,q){Q.pending_buf[Q.pending++]=q}function L6(Q,q){Q.pending_buf[Q.pending++]=q>>>8&255,Q.pending_buf[Q.pending++]=q&255}function mG(Q,q,$,X){var Y=Q.avail_in;if(Y>X)Y=X;if(Y===0)return 0;if(Q.avail_in-=Y,_0.arraySet(q,Q.input,Q.next_in,Y,$),Q.state.wrap===1)Q.adler=Mq(Q.adler,q,Y,$);else if(Q.state.wrap===2)Q.adler=p2(Q.adler,q,Y,$);return Q.next_in+=Y,Q.total_in+=Y,Y}function Pq(Q,q){var{max_chain_length:$,strstart:X}=Q,Y,U,J=Q.prev_length,K=Q.nice_match,G=Q.strstart>Q.w_size-U2?Q.strstart-(Q.w_size-U2):0,V=Q.window,z=Q.w_mask,w=Q.prev,F=Q.strstart+l2,Z=V[X+J-1],h=V[X+J];if(Q.prev_length>=Q.good_match)$>>=2;if(K>Q.lookahead)K=Q.lookahead;do{if(Y=q,V[Y+J]!==h||V[Y+J-1]!==Z||V[Y]!==V[X]||V[++Y]!==V[X+1])continue;X+=2,Y++;do;while(V[++X]===V[++Y]&&V[++X]===V[++Y]&&V[++X]===V[++Y]&&V[++X]===V[++Y]&&V[++X]===V[++Y]&&V[++X]===V[++Y]&&V[++X]===V[++Y]&&V[++X]===V[++Y]&&X<F);if(U=l2-(F-X),X=F-l2,U>J){if(Q.match_start=q,J=U,U>=K)break;Z=V[X+J-1],h=V[X+J]}}while((q=w[q&z])>G&&--$!==0);if(J<=Q.lookahead)return J;return Q.lookahead}function B1(Q){var q=Q.w_size,$,X,Y,U,J;do{if(U=Q.window_size-Q.lookahead-Q.strstart,Q.strstart>=q+(q-U2)){_0.arraySet(Q.window,Q.window,q,q,0),Q.match_start-=q,Q.strstart-=q,Q.block_start-=q,X=Q.hash_size,$=X;do Y=Q.head[--$],Q.head[$]=Y>=q?Y-q:0;while(--X);X=q,$=X;do Y=Q.prev[--$],Q.prev[$]=Y>=q?Y-q:0;while(--X);U+=q}if(Q.strm.avail_in===0)break;if(X=mG(Q.strm,Q.window,Q.strstart+Q.lookahead,U),Q.lookahead+=X,Q.lookahead+Q.insert>=H0){J=Q.strstart-Q.insert,Q.ins_h=Q.window[J],Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[J+1])&Q.hash_mask;while(Q.insert)if(Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[J+H0-1])&Q.hash_mask,Q.prev[J&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=J,J++,Q.insert--,Q.lookahead+Q.insert<H0)break}}while(Q.lookahead<U2&&Q.strm.avail_in!==0)}function dG(Q,q){var $=65535;if($>Q.pending_buf_size-5)$=Q.pending_buf_size-5;for(;;){if(Q.lookahead<=1){if(B1(Q),Q.lookahead===0&&q===Z1)return T0;if(Q.lookahead===0)break}Q.strstart+=Q.lookahead,Q.lookahead=0;var X=Q.block_start+$;if(Q.strstart===0||Q.strstart>=X){if(Q.lookahead=Q.strstart-X,Q.strstart=X,E0(Q,!1),Q.strm.avail_out===0)return T0}if(Q.strstart-Q.block_start>=Q.w_size-U2){if(E0(Q,!1),Q.strm.avail_out===0)return T0}}if(Q.insert=0,q===o2){if(E0(Q,!0),Q.strm.avail_out===0)return W1;return h1}if(Q.strstart>Q.block_start){if(E0(Q,!1),Q.strm.avail_out===0)return T0}return T0}function W4(Q,q){var $,X;for(;;){if(Q.lookahead<U2){if(B1(Q),Q.lookahead<U2&&q===Z1)return T0;if(Q.lookahead===0)break}if($=0,Q.lookahead>=H0)Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+H0-1])&Q.hash_mask,$=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart;if($!==0&&Q.strstart-$<=Q.w_size-U2)Q.match_length=Pq(Q,$);if(Q.match_length>=H0)if(X=t0._tr_tally(Q,Q.strstart-Q.match_start,Q.match_length-H0),Q.lookahead-=Q.match_length,Q.match_length<=Q.max_lazy_match&&Q.lookahead>=H0){Q.match_length--;do Q.strstart++,Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+H0-1])&Q.hash_mask,$=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart;while(--Q.match_length!==0);Q.strstart++}else Q.strstart+=Q.match_length,Q.match_length=0,Q.ins_h=Q.window[Q.strstart],Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+1])&Q.hash_mask;else X=t0._tr_tally(Q,0,Q.window[Q.strstart]),Q.lookahead--,Q.strstart++;if(X){if(E0(Q,!1),Q.strm.avail_out===0)return T0}}if(Q.insert=Q.strstart<H0-1?Q.strstart:H0-1,q===o2){if(E0(Q,!0),Q.strm.avail_out===0)return W1;return h1}if(Q.last_lit){if(E0(Q,!1),Q.strm.avail_out===0)return T0}return I6}function y1(Q,q){var $,X,Y;for(;;){if(Q.lookahead<U2){if(B1(Q),Q.lookahead<U2&&q===Z1)return T0;if(Q.lookahead===0)break}if($=0,Q.lookahead>=H0)Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+H0-1])&Q.hash_mask,$=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart;if(Q.prev_length=Q.match_length,Q.prev_match=Q.match_start,Q.match_length=H0-1,$!==0&&Q.prev_length<Q.max_lazy_match&&Q.strstart-$<=Q.w_size-U2){if(Q.match_length=Pq(Q,$),Q.match_length<=5&&(Q.strategy===RG||Q.match_length===H0&&Q.strstart-Q.match_start>4096))Q.match_length=H0-1}if(Q.prev_length>=H0&&Q.match_length<=Q.prev_length){Y=Q.strstart+Q.lookahead-H0,X=t0._tr_tally(Q,Q.strstart-1-Q.prev_match,Q.prev_length-H0),Q.lookahead-=Q.prev_length-1,Q.prev_length-=2;do if(++Q.strstart<=Y)Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+H0-1])&Q.hash_mask,$=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart;while(--Q.prev_length!==0);if(Q.match_available=0,Q.match_length=H0-1,Q.strstart++,X){if(E0(Q,!1),Q.strm.avail_out===0)return T0}}else if(Q.match_available){if(X=t0._tr_tally(Q,0,Q.window[Q.strstart-1]),X)E0(Q,!1);if(Q.strstart++,Q.lookahead--,Q.strm.avail_out===0)return T0}else Q.match_available=1,Q.strstart++,Q.lookahead--}if(Q.match_available)X=t0._tr_tally(Q,0,Q.window[Q.strstart-1]),Q.match_available=0;if(Q.insert=Q.strstart<H0-1?Q.strstart:H0-1,q===o2){if(E0(Q,!0),Q.strm.avail_out===0)return W1;return h1}if(Q.last_lit){if(E0(Q,!1),Q.strm.avail_out===0)return T0}return I6}function lG(Q,q){var $,X,Y,U,J=Q.window;for(;;){if(Q.lookahead<=l2){if(B1(Q),Q.lookahead<=l2&&q===Z1)return T0;if(Q.lookahead===0)break}if(Q.match_length=0,Q.lookahead>=H0&&Q.strstart>0){if(Y=Q.strstart-1,X=J[Y],X===J[++Y]&&X===J[++Y]&&X===J[++Y]){U=Q.strstart+l2;do;while(X===J[++Y]&&X===J[++Y]&&X===J[++Y]&&X===J[++Y]&&X===J[++Y]&&X===J[++Y]&&X===J[++Y]&&X===J[++Y]&&Y<U);if(Q.match_length=l2-(U-Y),Q.match_length>Q.lookahead)Q.match_length=Q.lookahead}}if(Q.match_length>=H0)$=t0._tr_tally(Q,1,Q.match_length-H0),Q.lookahead-=Q.match_length,Q.strstart+=Q.match_length,Q.match_length=0;else $=t0._tr_tally(Q,0,Q.window[Q.strstart]),Q.lookahead--,Q.strstart++;if($){if(E0(Q,!1),Q.strm.avail_out===0)return T0}}if(Q.insert=0,q===o2){if(E0(Q,!0),Q.strm.avail_out===0)return W1;return h1}if(Q.last_lit){if(E0(Q,!1),Q.strm.avail_out===0)return T0}return I6}function iG(Q,q){var $;for(;;){if(Q.lookahead===0){if(B1(Q),Q.lookahead===0){if(q===Z1)return T0;break}}if(Q.match_length=0,$=t0._tr_tally(Q,0,Q.window[Q.strstart]),Q.lookahead--,Q.strstart++,$){if(E0(Q,!1),Q.strm.avail_out===0)return T0}}if(Q.insert=0,q===o2){if(E0(Q,!0),Q.strm.avail_out===0)return W1;return h1}if(Q.last_lit){if(E0(Q,!1),Q.strm.avail_out===0)return T0}return I6}function w2(Q,q,$,X,Y){this.good_length=Q,this.max_lazy=q,this.nice_length=$,this.max_chain=X,this.func=Y}var f1;f1=[new w2(0,0,0,0,dG),new w2(4,4,8,4,W4),new w2(4,5,16,8,W4),new w2(4,6,32,32,W4),new w2(4,4,16,16,y1),new w2(8,16,32,32,y1),new w2(8,16,128,128,y1),new w2(8,32,128,256,y1),new w2(32,128,258,1024,y1),new w2(32,258,258,4096,y1)];function oG(Q){Q.window_size=2*Q.w_size,d2(Q.head),Q.max_lazy_match=f1[Q.level].max_lazy,Q.good_match=f1[Q.level].good_length,Q.nice_match=f1[Q.level].nice_length,Q.max_chain_length=f1[Q.level].max_chain,Q.strstart=0,Q.block_start=0,Q.lookahead=0,Q.insert=0,Q.match_length=Q.prev_length=H0-1,Q.match_available=0,Q.ins_h=0}function nG(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=j8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new _0.Buf16(bG*2),this.dyn_dtree=new _0.Buf16((2*hG+1)*2),this.bl_tree=new _0.Buf16((2*_G+1)*2),d2(this.dyn_ltree),d2(this.dyn_dtree),d2(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new _0.Buf16(uG+1),this.heap=new _0.Buf16(2*B4+1),d2(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new _0.Buf16(2*B4+1),d2(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Lq(Q){var q;if(!Q||!Q.state)return i2(Q,e0);if(Q.total_in=Q.total_out=0,Q.data_type=EG,q=Q.state,q.pending=0,q.pending_out=0,q.wrap<0)q.wrap=-q.wrap;return q.status=q.wrap?F8:G1,Q.adler=q.wrap===2?0:1,q.last_flush=Z1,t0._tr_init(q),M2}function Cq(Q){var q=Lq(Q);if(q===M2)oG(Q.state);return q}function rG(Q,q){if(!Q||!Q.state)return e0;if(Q.state.wrap!==2)return e0;return Q.state.gzhead=q,M2}function Iq(Q,q,$,X,Y,U){if(!Q)return e0;var J=1;if(q===OG)q=6;if(X<0)J=0,X=-X;else if(X>15)J=2,X-=16;if(Y<1||Y>SG||$!==j8||X<8||X>15||q<0||q>9||U<0||U>TG)return i2(Q,e0);if(X===8)X=9;var K=new nG;return Q.state=K,K.strm=Q,K.wrap=J,K.gzhead=null,K.w_bits=X,K.w_size=1<<K.w_bits,K.w_mask=K.w_size-1,K.hash_bits=Y+7,K.hash_size=1<<K.hash_bits,K.hash_mask=K.hash_size-1,K.hash_shift=~~((K.hash_bits+H0-1)/H0),K.window=new _0.Buf8(K.w_size*2),K.head=new _0.Buf16(K.hash_size),K.prev=new _0.Buf16(K.w_size),K.lit_bufsize=1<<Y+6,K.pending_buf_size=K.lit_bufsize*4,K.pending_buf=new _0.Buf8(K.pending_buf_size),K.d_buf=1*K.lit_bufsize,K.l_buf=3*K.lit_bufsize,K.level=q,K.strategy=U,K.method=$,Cq(Q)}function aG(Q,q){return Iq(Q,q,j8,kG,gG,vG)}function sG(Q,q){var $,X,Y,U;if(!Q||!Q.state||q>Fq||q<0)return Q?i2(Q,e0):e0;if(X=Q.state,!Q.output||!Q.input&&Q.avail_in!==0||X.status===C6&&q!==o2)return i2(Q,Q.avail_out===0?G4:e0);if(X.strm=Q,$=X.last_flush,X.last_flush=q,X.status===F8)if(X.wrap===2)if(Q.adler=0,w0(X,31),w0(X,139),w0(X,8),!X.gzhead)w0(X,0),w0(X,0),w0(X,0),w0(X,0),w0(X,0),w0(X,X.level===9?2:X.strategy>=G8||X.level<2?4:0),w0(X,pG),X.status=G1;else{if(w0(X,(X.gzhead.text?1:0)+(X.gzhead.hcrc?2:0)+(!X.gzhead.extra?0:4)+(!X.gzhead.name?0:8)+(!X.gzhead.comment?0:16)),w0(X,X.gzhead.time&255),w0(X,X.gzhead.time>>8&255),w0(X,X.gzhead.time>>16&255),w0(X,X.gzhead.time>>24&255),w0(X,X.level===9?2:X.strategy>=G8||X.level<2?4:0),w0(X,X.gzhead.os&255),X.gzhead.extra&&X.gzhead.extra.length)w0(X,X.gzhead.extra.length&255),w0(X,X.gzhead.extra.length>>8&255);if(X.gzhead.hcrc)Q.adler=p2(Q.adler,X.pending_buf,X.pending,0);X.gzindex=0,X.status=Z4}else{var J=j8+(X.w_bits-8<<4)<<8,K=-1;if(X.strategy>=G8||X.level<2)K=0;else if(X.level<6)K=1;else if(X.level===6)K=2;else K=3;if(J|=K<<6,X.strstart!==0)J|=cG;if(J+=31-J%31,X.status=G1,L6(X,J),X.strstart!==0)L6(X,Q.adler>>>16),L6(X,Q.adler&65535);Q.adler=1}if(X.status===Z4)if(X.gzhead.extra){Y=X.pending;while(X.gzindex<(X.gzhead.extra.length&65535)){if(X.pending===X.pending_buf_size){if(X.gzhead.hcrc&&X.pending>Y)Q.adler=p2(Q.adler,X.pending_buf,X.pending-Y,Y);if(m2(Q),Y=X.pending,X.pending===X.pending_buf_size)break}w0(X,X.gzhead.extra[X.gzindex]&255),X.gzindex++}if(X.gzhead.hcrc&&X.pending>Y)Q.adler=p2(Q.adler,X.pending_buf,X.pending-Y,Y);if(X.gzindex===X.gzhead.extra.length)X.gzindex=0,X.status=W8}else X.status=W8;if(X.status===W8)if(X.gzhead.name){Y=X.pending;do{if(X.pending===X.pending_buf_size){if(X.gzhead.hcrc&&X.pending>Y)Q.adler=p2(Q.adler,X.pending_buf,X.pending-Y,Y);if(m2(Q),Y=X.pending,X.pending===X.pending_buf_size){U=1;break}}if(X.gzindex<X.gzhead.name.length)U=X.gzhead.name.charCodeAt(X.gzindex++)&255;else U=0;w0(X,U)}while(U!==0);if(X.gzhead.hcrc&&X.pending>Y)Q.adler=p2(Q.adler,X.pending_buf,X.pending-Y,Y);if(U===0)X.gzindex=0,X.status=B8}else X.status=B8;if(X.status===B8)if(X.gzhead.comment){Y=X.pending;do{if(X.pending===X.pending_buf_size){if(X.gzhead.hcrc&&X.pending>Y)Q.adler=p2(Q.adler,X.pending_buf,X.pending-Y,Y);if(m2(Q),Y=X.pending,X.pending===X.pending_buf_size){U=1;break}}if(X.gzindex<X.gzhead.comment.length)U=X.gzhead.comment.charCodeAt(X.gzindex++)&255;else U=0;w0(X,U)}while(U!==0);if(X.gzhead.hcrc&&X.pending>Y)Q.adler=p2(Q.adler,X.pending_buf,X.pending-Y,Y);if(U===0)X.status=Z8}else X.status=Z8;if(X.status===Z8)if(X.gzhead.hcrc){if(X.pending+2>X.pending_buf_size)m2(Q);if(X.pending+2<=X.pending_buf_size)w0(X,Q.adler&255),w0(X,Q.adler>>8&255),Q.adler=0,X.status=G1}else X.status=G1;if(X.pending!==0){if(m2(Q),Q.avail_out===0)return X.last_flush=-1,M2}else if(Q.avail_in===0&&wq(q)<=wq($)&&q!==o2)return i2(Q,G4);if(X.status===C6&&Q.avail_in!==0)return i2(Q,G4);if(Q.avail_in!==0||X.lookahead!==0||q!==Z1&&X.status!==C6){var G=X.strategy===G8?iG(X,q):X.strategy===xG?lG(X,q):f1[X.level].func(X,q);if(G===W1||G===h1)X.status=C6;if(G===T0||G===W1){if(Q.avail_out===0)X.last_flush=-1;return M2}if(G===I6){if(q===NG)t0._tr_align(X);else if(q!==Fq){if(t0._tr_stored_block(X,0,0,!1),q===DG){if(d2(X.head),X.lookahead===0)X.strstart=0,X.block_start=0,X.insert=0}}if(m2(Q),Q.avail_out===0)return X.last_flush=-1,M2}}if(q!==o2)return M2;if(X.wrap<=0)return Hq;if(X.wrap===2)w0(X,Q.adler&255),w0(X,Q.adler>>8&255),w0(X,Q.adler>>16&255),w0(X,Q.adler>>24&255),w0(X,Q.total_in&255),w0(X,Q.total_in>>8&255),w0(X,Q.total_in>>16&255),w0(X,Q.total_in>>24&255);else L6(X,Q.adler>>>16),L6(X,Q.adler&65535);if(m2(Q),X.wrap>0)X.wrap=-X.wrap;return X.pending!==0?M2:Hq}function tG(Q){var q;if(!Q||!Q.state)return e0;if(q=Q.state.status,q!==F8&&q!==Z4&&q!==W8&&q!==B8&&q!==Z8&&q!==G1&&q!==C6)return i2(Q,e0);return Q.state=null,q===G1?i2(Q,AG):M2}function eG(Q,q){var $=q.length,X,Y,U,J,K,G,V,z;if(!Q||!Q.state)return e0;if(X=Q.state,J=X.wrap,J===2||J===1&&X.status!==F8||X.lookahead)return e0;if(J===1)Q.adler=Mq(Q.adler,q,$,0);if(X.wrap=0,$>=X.w_size){if(J===0)d2(X.head),X.strstart=0,X.block_start=0,X.insert=0;z=new _0.Buf8(X.w_size),_0.arraySet(z,q,$-X.w_size,X.w_size,0),q=z,$=X.w_size}K=Q.avail_in,G=Q.next_in,V=Q.input,Q.avail_in=$,Q.next_in=0,Q.input=q,B1(X);while(X.lookahead>=H0){Y=X.strstart,U=X.lookahead-(H0-1);do X.ins_h=(X.ins_h<<X.hash_shift^X.window[Y+H0-1])&X.hash_mask,X.prev[Y&X.w_mask]=X.head[X.ins_h],X.head[X.ins_h]=Y,Y++;while(--U);X.strstart=Y,X.lookahead=H0-1,B1(X)}return X.strstart+=X.lookahead,X.block_start=X.strstart,X.insert=X.lookahead,X.lookahead=0,X.match_length=X.prev_length=H0-1,X.match_available=0,Q.next_in=G,Q.input=V,Q.avail_in=K,X.wrap=J,M2}QW.deflateInit=aG;QW.deflateInit2=Iq;QW.deflateReset=Cq;QW.deflateResetKeep=Lq;QW.deflateSetHeader=rG;QW.deflate=sG;QW.deflateEnd=tG;QW.deflateSetDictionary=eG;QW.deflateInfo="pako deflate (from Nodeca project)"});var j4=k((GW)=>{var H8=v2(),Dq=!0,Aq=!0;try{String.fromCharCode.apply(null,[0])}catch(Q){Dq=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(Q){Aq=!1}var N6=new H8.Buf8(256);for(P2=0;P2<256;P2++)N6[P2]=P2>=252?6:P2>=248?5:P2>=240?4:P2>=224?3:P2>=192?2:1;var P2;N6[254]=N6[254]=1;GW.string2buf=function(Q){var q,$,X,Y,U,J=Q.length,K=0;for(Y=0;Y<J;Y++){if($=Q.charCodeAt(Y),($&64512)===55296&&Y+1<J){if(X=Q.charCodeAt(Y+1),(X&64512)===56320)$=65536+($-55296<<10)+(X-56320),Y++}K+=$<128?1:$<2048?2:$<65536?3:4}q=new H8.Buf8(K);for(U=0,Y=0;U<K;Y++){if($=Q.charCodeAt(Y),($&64512)===55296&&Y+1<J){if(X=Q.charCodeAt(Y+1),(X&64512)===56320)$=65536+($-55296<<10)+(X-56320),Y++}if($<128)q[U++]=$;else if($<2048)q[U++]=192|$>>>6,q[U++]=128|$&63;else if($<65536)q[U++]=224|$>>>12,q[U++]=128|$>>>6&63,q[U++]=128|$&63;else q[U++]=240|$>>>18,q[U++]=128|$>>>12&63,q[U++]=128|$>>>6&63,q[U++]=128|$&63}return q};function Oq(Q,q){if(q<65534){if(Q.subarray&&Aq||!Q.subarray&&Dq)return String.fromCharCode.apply(null,H8.shrinkBuf(Q,q))}var $="";for(var X=0;X<q;X++)$+=String.fromCharCode(Q[X]);return $}GW.buf2binstring=function(Q){return Oq(Q,Q.length)};GW.binstring2buf=function(Q){var q=new H8.Buf8(Q.length);for(var $=0,X=q.length;$<X;$++)q[$]=Q.charCodeAt($);return q};GW.buf2string=function(Q,q){var $,X,Y,U,J=q||Q.length,K=Array(J*2);for(X=0,$=0;$<J;){if(Y=Q[$++],Y<128){K[X++]=Y;continue}if(U=N6[Y],U>4){K[X++]=65533,$+=U-1;continue}Y&=U===2?31:U===3?15:7;while(U>1&&$<J)Y=Y<<6|Q[$++]&63,U--;if(U>1){K[X++]=65533;continue}if(Y<65536)K[X++]=Y;else Y-=65536,K[X++]=55296|Y>>10&1023,K[X++]=56320|Y&1023}return Oq(K,X)};GW.utf8border=function(Q,q){var $;if(q=q||Q.length,q>Q.length)q=Q.length;$=q-1;while($>=0&&(Q[$]&192)===128)$--;if($<0)return q;if($===0)return q;return $+N6[Q[$]]>q?$:q}});var F4=k((wP,Rq)=>{function HW(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}Rq.exports=HW});var Eq=k((DW)=>{var D6=Nq(),A6=v2(),w4=j4(),M4=z8(),wW=F4(),vq=Object.prototype.toString,MW=0,H4=4,_1=0,xq=1,Tq=2,PW=-1,LW=0,CW=8;function j1(Q){if(!(this instanceof j1))return new j1(Q);this.options=A6.assign({level:PW,method:CW,chunkSize:16384,windowBits:15,memLevel:8,strategy:LW,to:""},Q||{});var q=this.options;if(q.raw&&q.windowBits>0)q.windowBits=-q.windowBits;else if(q.gzip&&q.windowBits>0&&q.windowBits<16)q.windowBits+=16;this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new wW,this.strm.avail_out=0;var $=D6.deflateInit2(this.strm,q.level,q.method,q.windowBits,q.memLevel,q.strategy);if($!==_1)throw Error(M4[$]);if(q.header)D6.deflateSetHeader(this.strm,q.header);if(q.dictionary){var X;if(typeof q.dictionary==="string")X=w4.string2buf(q.dictionary);else if(vq.call(q.dictionary)==="[object ArrayBuffer]")X=new Uint8Array(q.dictionary);else X=q.dictionary;if($=D6.deflateSetDictionary(this.strm,X),$!==_1)throw Error(M4[$]);this._dict_set=!0}}j1.prototype.push=function(Q,q){var $=this.strm,X=this.options.chunkSize,Y,U;if(this.ended)return!1;if(U=q===~~q?q:q===!0?H4:MW,typeof Q==="string")$.input=w4.string2buf(Q);else if(vq.call(Q)==="[object ArrayBuffer]")$.input=new Uint8Array(Q);else $.input=Q;$.next_in=0,$.avail_in=$.input.length;do{if($.avail_out===0)$.output=new A6.Buf8(X),$.next_out=0,$.avail_out=X;if(Y=D6.deflate($,U),Y!==xq&&Y!==_1)return this.onEnd(Y),this.ended=!0,!1;if($.avail_out===0||$.avail_in===0&&(U===H4||U===Tq))if(this.options.to==="string")this.onData(w4.buf2binstring(A6.shrinkBuf($.output,$.next_out)));else this.onData(A6.shrinkBuf($.output,$.next_out))}while(($.avail_in>0||$.avail_out===0)&&Y!==xq);if(U===H4)return Y=D6.deflateEnd(this.strm),this.onEnd(Y),this.ended=!0,Y===_1;if(U===Tq)return this.onEnd(_1),$.avail_out=0,!0;return!0};j1.prototype.onData=function(Q){this.chunks.push(Q)};j1.prototype.onEnd=function(Q){if(Q===_1)if(this.options.to==="string")this.result=this.chunks.join("");else this.result=A6.flattenChunks(this.chunks);this.chunks=[],this.err=Q,this.msg=this.strm.msg};function P4(Q,q){var $=new j1(q);if($.push(Q,!0),$.err)throw $.msg||M4[$.err];return $.result}function IW(Q,q){return q=q||{},q.raw=!0,P4(Q,q)}function NW(Q,q){return q=q||{},q.gzip=!0,P4(Q,q)}DW.Deflate=j1;DW.deflate=P4;DW.deflateRaw=IW;DW.gzip=NW});var kq=k((PP,Sq)=>{var w8=30,TW=12;Sq.exports=function(q,$){var X,Y,U,J,K,G,V,z,w,F,Z,h,g,C,N,W,H,M,I,f,E,d,R,x,D;X=q.state,Y=q.next_in,x=q.input,U=Y+(q.avail_in-5),J=q.next_out,D=q.output,K=J-($-q.avail_out),G=J+(q.avail_out-257),V=X.dmax,z=X.wsize,w=X.whave,F=X.wnext,Z=X.window,h=X.hold,g=X.bits,C=X.lencode,N=X.distcode,W=(1<<X.lenbits)-1,H=(1<<X.distbits)-1;Q:do{if(g<15)h+=x[Y++]<<g,g+=8,h+=x[Y++]<<g,g+=8;M=C[h&W];q:for(;;){if(I=M>>>24,h>>>=I,g-=I,I=M>>>16&255,I===0)D[J++]=M&65535;else if(I&16){if(f=M&65535,I&=15,I){if(g<I)h+=x[Y++]<<g,g+=8;f+=h&(1<<I)-1,h>>>=I,g-=I}if(g<15)h+=x[Y++]<<g,g+=8,h+=x[Y++]<<g,g+=8;M=N[h&H];$:for(;;){if(I=M>>>24,h>>>=I,g-=I,I=M>>>16&255,I&16){if(E=M&65535,I&=15,g<I){if(h+=x[Y++]<<g,g+=8,g<I)h+=x[Y++]<<g,g+=8}if(E+=h&(1<<I)-1,E>V){q.msg="invalid distance too far back",X.mode=w8;break Q}if(h>>>=I,g-=I,I=J-K,E>I){if(I=E-I,I>w){if(X.sane){q.msg="invalid distance too far back",X.mode=w8;break Q}}if(d=0,R=Z,F===0){if(d+=z-I,I<f){f-=I;do D[J++]=Z[d++];while(--I);d=J-E,R=D}}else if(F<I){if(d+=z+F-I,I-=F,I<f){f-=I;do D[J++]=Z[d++];while(--I);if(d=0,F<f){I=F,f-=I;do D[J++]=Z[d++];while(--I);d=J-E,R=D}}}else if(d+=F-I,I<f){f-=I;do D[J++]=Z[d++];while(--I);d=J-E,R=D}while(f>2)D[J++]=R[d++],D[J++]=R[d++],D[J++]=R[d++],f-=3;if(f){if(D[J++]=R[d++],f>1)D[J++]=R[d++]}}else{d=J-E;do D[J++]=D[d++],D[J++]=D[d++],D[J++]=D[d++],f-=3;while(f>2);if(f){if(D[J++]=D[d++],f>1)D[J++]=D[d++]}}}else if((I&64)===0){M=N[(M&65535)+(h&(1<<I)-1)];continue $}else{q.msg="invalid distance code",X.mode=w8;break Q}break}}else if((I&64)===0){M=C[(M&65535)+(h&(1<<I)-1)];continue q}else if(I&32){X.mode=TW;break Q}else{q.msg="invalid literal/length code",X.mode=w8;break Q}break}}while(Y<U&&J<G);f=g>>3,Y-=f,g-=f<<3,h&=(1<<g)-1,q.next_in=Y,q.next_out=J,q.avail_in=Y<U?5+(U-Y):5-(Y-U),q.avail_out=J<G?257+(G-J):257-(J-G),X.hold=h,X.bits=g;return}});var uq=k((LP,bq)=>{var gq=v2(),b1=15,yq=852,fq=592,hq=0,L4=1,_q=2,vW=[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,0,0],EW=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],SW=[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,0,0],kW=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];bq.exports=function(q,$,X,Y,U,J,K,G){var V=G.bits,z=0,w=0,F=0,Z=0,h=0,g=0,C=0,N=0,W=0,H=0,M,I,f,E,d,R=null,x=0,D,L=new gq.Buf16(b1+1),S=new gq.Buf16(b1+1),y=null,v=0,a,Q0,Y0;for(z=0;z<=b1;z++)L[z]=0;for(w=0;w<Y;w++)L[$[X+w]]++;h=V;for(Z=b1;Z>=1;Z--)if(L[Z]!==0)break;if(h>Z)h=Z;if(Z===0)return U[J++]=20971520,U[J++]=20971520,G.bits=1,0;for(F=1;F<Z;F++)if(L[F]!==0)break;if(h<F)h=F;N=1;for(z=1;z<=b1;z++)if(N<<=1,N-=L[z],N<0)return-1;if(N>0&&(q===hq||Z!==1))return-1;S[1]=0;for(z=1;z<b1;z++)S[z+1]=S[z]+L[z];for(w=0;w<Y;w++)if($[X+w]!==0)K[S[$[X+w]]++]=w;if(q===hq)R=y=K,D=19;else if(q===L4)R=vW,x-=257,y=EW,v-=257,D=256;else R=SW,y=kW,D=-1;if(H=0,w=0,z=F,d=J,g=h,C=0,f=-1,W=1<<h,E=W-1,q===L4&&W>yq||q===_q&&W>fq)return 1;for(;;){if(a=z-C,K[w]<D)Q0=0,Y0=K[w];else if(K[w]>D)Q0=y[v+K[w]],Y0=R[x+K[w]];else Q0=96,Y0=0;M=1<<z-C,I=1<<g,F=I;do I-=M,U[d+(H>>C)+I]=a<<24|Q0<<16|Y0|0;while(I!==0);M=1<<z-1;while(H&M)M>>=1;if(M!==0)H&=M-1,H+=M;else H=0;if(w++,--L[z]===0){if(z===Z)break;z=$[X+K[w]]}if(z>h&&(H&E)!==f){if(C===0)C=h;d+=F,g=z-C,N=1<<g;while(g+C<Z){if(N-=L[g+C],N<=0)break;g++,N<<=1}if(W+=1<<g,q===L4&&W>yq||q===_q&&W>fq)return 1;f=H&E,U[f]=h<<24|g<<16|d-J|0}}if(H!==0)U[d+H]=z-C<<24|4194304|0;return G.bits=h,0}});var C$=k((tW)=>{var i0=v2(),O4=V4(),L2=z4(),gW=kq(),O6=uq(),yW=0,B$=1,Z$=2,cq=4,fW=5,M8=6,F1=0,hW=1,_W=2,Q2=-2,j$=-3,R4=-4,bW=-5,pq=8,F$=1,mq=2,dq=3,lq=4,iq=5,oq=6,nq=7,rq=8,aq=9,sq=10,C8=11,S2=12,C4=13,tq=14,I4=15,eq=16,Q$=17,q$=18,$$=19,P8=20,L8=21,X$=22,Y$=23,U$=24,J$=25,K$=26,N4=27,V$=28,z$=29,I0=30,x4=31,uW=32,cW=852,pW=592,mW=15,dW=mW;function G$(Q){return(Q>>>24&255)+(Q>>>8&65280)+((Q&65280)<<8)+((Q&255)<<24)}function lW(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new i0.Buf16(320),this.work=new i0.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function H$(Q){var q;if(!Q||!Q.state)return Q2;if(q=Q.state,Q.total_in=Q.total_out=q.total=0,Q.msg="",q.wrap)Q.adler=q.wrap&1;return q.mode=F$,q.last=0,q.havedict=0,q.dmax=32768,q.head=null,q.hold=0,q.bits=0,q.lencode=q.lendyn=new i0.Buf32(cW),q.distcode=q.distdyn=new i0.Buf32(pW),q.sane=1,q.back=-1,F1}function w$(Q){var q;if(!Q||!Q.state)return Q2;return q=Q.state,q.wsize=0,q.whave=0,q.wnext=0,H$(Q)}function M$(Q,q){var $,X;if(!Q||!Q.state)return Q2;if(X=Q.state,q<0)$=0,q=-q;else if($=(q>>4)+1,q<48)q&=15;if(q&&(q<8||q>15))return Q2;if(X.window!==null&&X.wbits!==q)X.window=null;return X.wrap=$,X.wbits=q,w$(Q)}function P$(Q,q){var $,X;if(!Q)return Q2;if(X=new lW,Q.state=X,X.window=null,$=M$(Q,q),$!==F1)Q.state=null;return $}function iW(Q){return P$(Q,dW)}var W$=!0,D4,A4;function oW(Q){if(W$){var q;D4=new i0.Buf32(512),A4=new i0.Buf32(32),q=0;while(q<144)Q.lens[q++]=8;while(q<256)Q.lens[q++]=9;while(q<280)Q.lens[q++]=7;while(q<288)Q.lens[q++]=8;O6(B$,Q.lens,0,288,D4,0,Q.work,{bits:9}),q=0;while(q<32)Q.lens[q++]=5;O6(Z$,Q.lens,0,32,A4,0,Q.work,{bits:5}),W$=!1}Q.lencode=D4,Q.lenbits=9,Q.distcode=A4,Q.distbits=5}function L$(Q,q,$,X){var Y,U=Q.state;if(U.window===null)U.wsize=1<<U.wbits,U.wnext=0,U.whave=0,U.window=new i0.Buf8(U.wsize);if(X>=U.wsize)i0.arraySet(U.window,q,$-U.wsize,U.wsize,0),U.wnext=0,U.whave=U.wsize;else{if(Y=U.wsize-U.wnext,Y>X)Y=X;if(i0.arraySet(U.window,q,$-X,Y,U.wnext),X-=Y,X)i0.arraySet(U.window,q,$-X,X,0),U.wnext=X,U.whave=U.wsize;else{if(U.wnext+=Y,U.wnext===U.wsize)U.wnext=0;if(U.whave<U.wsize)U.whave+=Y}}return 0}function nW(Q,q){var $,X,Y,U,J,K,G,V,z,w,F,Z,h,g,C=0,N,W,H,M,I,f,E,d,R=new i0.Buf8(4),x,D,L=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!Q||!Q.state||!Q.output||!Q.input&&Q.avail_in!==0)return Q2;if($=Q.state,$.mode===S2)$.mode=C4;J=Q.next_out,Y=Q.output,G=Q.avail_out,U=Q.next_in,X=Q.input,K=Q.avail_in,V=$.hold,z=$.bits,w=K,F=G,d=F1;Q:for(;;)switch($.mode){case F$:if($.wrap===0){$.mode=C4;break}while(z<16){if(K===0)break Q;K--,V+=X[U++]<<z,z+=8}if($.wrap&2&&V===35615){$.check=0,R[0]=V&255,R[1]=V>>>8&255,$.check=L2($.check,R,2,0),V=0,z=0,$.mode=mq;break}if($.flags=0,$.head)$.head.done=!1;if(!($.wrap&1)||(((V&255)<<8)+(V>>8))%31){Q.msg="incorrect header check",$.mode=I0;break}if((V&15)!==pq){Q.msg="unknown compression method",$.mode=I0;break}if(V>>>=4,z-=4,E=(V&15)+8,$.wbits===0)$.wbits=E;else if(E>$.wbits){Q.msg="invalid window size",$.mode=I0;break}$.dmax=1<<E,Q.adler=$.check=1,$.mode=V&512?sq:S2,V=0,z=0;break;case mq:while(z<16){if(K===0)break Q;K--,V+=X[U++]<<z,z+=8}if($.flags=V,($.flags&255)!==pq){Q.msg="unknown compression method",$.mode=I0;break}if($.flags&57344){Q.msg="unknown header flags set",$.mode=I0;break}if($.head)$.head.text=V>>8&1;if($.flags&512)R[0]=V&255,R[1]=V>>>8&255,$.check=L2($.check,R,2,0);V=0,z=0,$.mode=dq;case dq:while(z<32){if(K===0)break Q;K--,V+=X[U++]<<z,z+=8}if($.head)$.head.time=V;if($.flags&512)R[0]=V&255,R[1]=V>>>8&255,R[2]=V>>>16&255,R[3]=V>>>24&255,$.check=L2($.check,R,4,0);V=0,z=0,$.mode=lq;case lq:while(z<16){if(K===0)break Q;K--,V+=X[U++]<<z,z+=8}if($.head)$.head.xflags=V&255,$.head.os=V>>8;if($.flags&512)R[0]=V&255,R[1]=V>>>8&255,$.check=L2($.check,R,2,0);V=0,z=0,$.mode=iq;case iq:if($.flags&1024){while(z<16){if(K===0)break Q;K--,V+=X[U++]<<z,z+=8}if($.length=V,$.head)$.head.extra_len=V;if($.flags&512)R[0]=V&255,R[1]=V>>>8&255,$.check=L2($.check,R,2,0);V=0,z=0}else if($.head)$.head.extra=null;$.mode=oq;case oq:if($.flags&1024){if(Z=$.length,Z>K)Z=K;if(Z){if($.head){if(E=$.head.extra_len-$.length,!$.head.extra)$.head.extra=Array($.head.extra_len);i0.arraySet($.head.extra,X,U,Z,E)}if($.flags&512)$.check=L2($.check,X,Z,U);K-=Z,U+=Z,$.length-=Z}if($.length)break Q}$.length=0,$.mode=nq;case nq:if($.flags&2048){if(K===0)break Q;Z=0;do if(E=X[U+Z++],$.head&&E&&$.length<65536)$.head.name+=String.fromCharCode(E);while(E&&Z<K);if($.flags&512)$.check=L2($.check,X,Z,U);if(K-=Z,U+=Z,E)break Q}else if($.head)$.head.name=null;$.length=0,$.mode=rq;case rq:if($.flags&4096){if(K===0)break Q;Z=0;do if(E=X[U+Z++],$.head&&E&&$.length<65536)$.head.comment+=String.fromCharCode(E);while(E&&Z<K);if($.flags&512)$.check=L2($.check,X,Z,U);if(K-=Z,U+=Z,E)break Q}else if($.head)$.head.comment=null;$.mode=aq;case aq:if($.flags&512){while(z<16){if(K===0)break Q;K--,V+=X[U++]<<z,z+=8}if(V!==($.check&65535)){Q.msg="header crc mismatch",$.mode=I0;break}V=0,z=0}if($.head)$.head.hcrc=$.flags>>9&1,$.head.done=!0;Q.adler=$.check=0,$.mode=S2;break;case sq:while(z<32){if(K===0)break Q;K--,V+=X[U++]<<z,z+=8}Q.adler=$.check=G$(V),V=0,z=0,$.mode=C8;case C8:if($.havedict===0)return Q.next_out=J,Q.avail_out=G,Q.next_in=U,Q.avail_in=K,$.hold=V,$.bits=z,_W;Q.adler=$.check=1,$.mode=S2;case S2:if(q===fW||q===M8)break Q;case C4:if($.last){V>>>=z&7,z-=z&7,$.mode=N4;break}while(z<3){if(K===0)break Q;K--,V+=X[U++]<<z,z+=8}switch($.last=V&1,V>>>=1,z-=1,V&3){case 0:$.mode=tq;break;case 1:if(oW($),$.mode=P8,q===M8){V>>>=2,z-=2;break Q}break;case 2:$.mode=Q$;break;case 3:Q.msg="invalid block type",$.mode=I0}V>>>=2,z-=2;break;case tq:V>>>=z&7,z-=z&7;while(z<32){if(K===0)break Q;K--,V+=X[U++]<<z,z+=8}if((V&65535)!==(V>>>16^65535)){Q.msg="invalid stored block lengths",$.mode=I0;break}if($.length=V&65535,V=0,z=0,$.mode=I4,q===M8)break Q;case I4:$.mode=eq;case eq:if(Z=$.length,Z){if(Z>K)Z=K;if(Z>G)Z=G;if(Z===0)break Q;i0.arraySet(Y,X,U,Z,J),K-=Z,U+=Z,G-=Z,J+=Z,$.length-=Z;break}$.mode=S2;break;case Q$:while(z<14){if(K===0)break Q;K--,V+=X[U++]<<z,z+=8}if($.nlen=(V&31)+257,V>>>=5,z-=5,$.ndist=(V&31)+1,V>>>=5,z-=5,$.ncode=(V&15)+4,V>>>=4,z-=4,$.nlen>286||$.ndist>30){Q.msg="too many length or distance symbols",$.mode=I0;break}$.have=0,$.mode=q$;case q$:while($.have<$.ncode){while(z<3){if(K===0)break Q;K--,V+=X[U++]<<z,z+=8}$.lens[L[$.have++]]=V&7,V>>>=3,z-=3}while($.have<19)$.lens[L[$.have++]]=0;if($.lencode=$.lendyn,$.lenbits=7,x={bits:$.lenbits},d=O6(yW,$.lens,0,19,$.lencode,0,$.work,x),$.lenbits=x.bits,d){Q.msg="invalid code lengths set",$.mode=I0;break}$.have=0,$.mode=$$;case $$:while($.have<$.nlen+$.ndist){for(;;){if(C=$.lencode[V&(1<<$.lenbits)-1],N=C>>>24,W=C>>>16&255,H=C&65535,N<=z)break;if(K===0)break Q;K--,V+=X[U++]<<z,z+=8}if(H<16)V>>>=N,z-=N,$.lens[$.have++]=H;else{if(H===16){D=N+2;while(z<D){if(K===0)break Q;K--,V+=X[U++]<<z,z+=8}if(V>>>=N,z-=N,$.have===0){Q.msg="invalid bit length repeat",$.mode=I0;break}E=$.lens[$.have-1],Z=3+(V&3),V>>>=2,z-=2}else if(H===17){D=N+3;while(z<D){if(K===0)break Q;K--,V+=X[U++]<<z,z+=8}V>>>=N,z-=N,E=0,Z=3+(V&7),V>>>=3,z-=3}else{D=N+7;while(z<D){if(K===0)break Q;K--,V+=X[U++]<<z,z+=8}V>>>=N,z-=N,E=0,Z=11+(V&127),V>>>=7,z-=7}if($.have+Z>$.nlen+$.ndist){Q.msg="invalid bit length repeat",$.mode=I0;break}while(Z--)$.lens[$.have++]=E}}if($.mode===I0)break;if($.lens[256]===0){Q.msg="invalid code -- missing end-of-block",$.mode=I0;break}if($.lenbits=9,x={bits:$.lenbits},d=O6(B$,$.lens,0,$.nlen,$.lencode,0,$.work,x),$.lenbits=x.bits,d){Q.msg="invalid literal/lengths set",$.mode=I0;break}if($.distbits=6,$.distcode=$.distdyn,x={bits:$.distbits},d=O6(Z$,$.lens,$.nlen,$.ndist,$.distcode,0,$.work,x),$.distbits=x.bits,d){Q.msg="invalid distances set",$.mode=I0;break}if($.mode=P8,q===M8)break Q;case P8:$.mode=L8;case L8:if(K>=6&&G>=258){if(Q.next_out=J,Q.avail_out=G,Q.next_in=U,Q.avail_in=K,$.hold=V,$.bits=z,gW(Q,F),J=Q.next_out,Y=Q.output,G=Q.avail_out,U=Q.next_in,X=Q.input,K=Q.avail_in,V=$.hold,z=$.bits,$.mode===S2)$.back=-1;break}$.back=0;for(;;){if(C=$.lencode[V&(1<<$.lenbits)-1],N=C>>>24,W=C>>>16&255,H=C&65535,N<=z)break;if(K===0)break Q;K--,V+=X[U++]<<z,z+=8}if(W&&(W&240)===0){M=N,I=W,f=H;for(;;){if(C=$.lencode[f+((V&(1<<M+I)-1)>>M)],N=C>>>24,W=C>>>16&255,H=C&65535,M+N<=z)break;if(K===0)break Q;K--,V+=X[U++]<<z,z+=8}V>>>=M,z-=M,$.back+=M}if(V>>>=N,z-=N,$.back+=N,$.length=H,W===0){$.mode=K$;break}if(W&32){$.back=-1,$.mode=S2;break}if(W&64){Q.msg="invalid literal/length code",$.mode=I0;break}$.extra=W&15,$.mode=X$;case X$:if($.extra){D=$.extra;while(z<D){if(K===0)break Q;K--,V+=X[U++]<<z,z+=8}$.length+=V&(1<<$.extra)-1,V>>>=$.extra,z-=$.extra,$.back+=$.extra}$.was=$.length,$.mode=Y$;case Y$:for(;;){if(C=$.distcode[V&(1<<$.distbits)-1],N=C>>>24,W=C>>>16&255,H=C&65535,N<=z)break;if(K===0)break Q;K--,V+=X[U++]<<z,z+=8}if((W&240)===0){M=N,I=W,f=H;for(;;){if(C=$.distcode[f+((V&(1<<M+I)-1)>>M)],N=C>>>24,W=C>>>16&255,H=C&65535,M+N<=z)break;if(K===0)break Q;K--,V+=X[U++]<<z,z+=8}V>>>=M,z-=M,$.back+=M}if(V>>>=N,z-=N,$.back+=N,W&64){Q.msg="invalid distance code",$.mode=I0;break}$.offset=H,$.extra=W&15,$.mode=U$;case U$:if($.extra){D=$.extra;while(z<D){if(K===0)break Q;K--,V+=X[U++]<<z,z+=8}$.offset+=V&(1<<$.extra)-1,V>>>=$.extra,z-=$.extra,$.back+=$.extra}if($.offset>$.dmax){Q.msg="invalid distance too far back",$.mode=I0;break}$.mode=J$;case J$:if(G===0)break Q;if(Z=F-G,$.offset>Z){if(Z=$.offset-Z,Z>$.whave){if($.sane){Q.msg="invalid distance too far back",$.mode=I0;break}}if(Z>$.wnext)Z-=$.wnext,h=$.wsize-Z;else h=$.wnext-Z;if(Z>$.length)Z=$.length;g=$.window}else g=Y,h=J-$.offset,Z=$.length;if(Z>G)Z=G;G-=Z,$.length-=Z;do Y[J++]=g[h++];while(--Z);if($.length===0)$.mode=L8;break;case K$:if(G===0)break Q;Y[J++]=$.length,G--,$.mode=L8;break;case N4:if($.wrap){while(z<32){if(K===0)break Q;K--,V|=X[U++]<<z,z+=8}if(F-=G,Q.total_out+=F,$.total+=F,F)Q.adler=$.check=$.flags?L2($.check,Y,F,J-F):O4($.check,Y,F,J-F);if(F=G,($.flags?V:G$(V))!==$.check){Q.msg="incorrect data check",$.mode=I0;break}V=0,z=0}$.mode=V$;case V$:if($.wrap&&$.flags){while(z<32){if(K===0)break Q;K--,V+=X[U++]<<z,z+=8}if(V!==($.total&4294967295)){Q.msg="incorrect length check",$.mode=I0;break}V=0,z=0}$.mode=z$;case z$:d=hW;break Q;case I0:d=j$;break Q;case x4:return R4;case uW:default:return Q2}if(Q.next_out=J,Q.avail_out=G,Q.next_in=U,Q.avail_in=K,$.hold=V,$.bits=z,$.wsize||F!==Q.avail_out&&$.mode<I0&&($.mode<N4||q!==cq)){if(L$(Q,Q.output,Q.next_out,F-Q.avail_out))return $.mode=x4,R4}if(w-=Q.avail_in,F-=Q.avail_out,Q.total_in+=w,Q.total_out+=F,$.total+=F,$.wrap&&F)Q.adler=$.check=$.flags?L2($.check,Y,F,Q.next_out-F):O4($.check,Y,F,Q.next_out-F);if(Q.data_type=$.bits+($.last?64:0)+($.mode===S2?128:0)+($.mode===P8||$.mode===I4?256:0),(w===0&&F===0||q===cq)&&d===F1)d=bW;return d}function rW(Q){if(!Q||!Q.state)return Q2;var q=Q.state;if(q.window)q.window=null;return Q.state=null,F1}function aW(Q,q){var $;if(!Q||!Q.state)return Q2;if($=Q.state,($.wrap&2)===0)return Q2;return $.head=q,q.done=!1,F1}function sW(Q,q){var $=q.length,X,Y,U;if(!Q||!Q.state)return Q2;if(X=Q.state,X.wrap!==0&&X.mode!==C8)return Q2;if(X.mode===C8){if(Y=1,Y=O4(Y,q,$,0),Y!==X.check)return j$}if(U=L$(Q,q,$,$),U)return X.mode=x4,R4;return X.havedict=1,F1}tW.inflateReset=w$;tW.inflateReset2=M$;tW.inflateResetKeep=H$;tW.inflateInit=iW;tW.inflateInit2=P$;tW.inflate=nW;tW.inflateEnd=rW;tW.inflateGetHeader=aW;tW.inflateSetDictionary=sW;tW.inflateInfo="pako inflate (from Nodeca project)"});var T4=k((IP,I$)=>{I$.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}});var D$=k((NP,N$)=>{function zB(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}N$.exports=zB});var O$=k((ZB)=>{var u1=C$(),R6=v2(),I8=j4(),x0=T4(),v4=z8(),GB=F4(),WB=D$(),A$=Object.prototype.toString;function H1(Q){if(!(this instanceof H1))return new H1(Q);this.options=R6.assign({chunkSize:16384,windowBits:0,to:""},Q||{});var q=this.options;if(q.raw&&q.windowBits>=0&&q.windowBits<16){if(q.windowBits=-q.windowBits,q.windowBits===0)q.windowBits=-15}if(q.windowBits>=0&&q.windowBits<16&&!(Q&&Q.windowBits))q.windowBits+=32;if(q.windowBits>15&&q.windowBits<48){if((q.windowBits&15)===0)q.windowBits|=15}this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new GB,this.strm.avail_out=0;var $=u1.inflateInit2(this.strm,q.windowBits);if($!==x0.Z_OK)throw Error(v4[$]);if(this.header=new WB,u1.inflateGetHeader(this.strm,this.header),q.dictionary){if(typeof q.dictionary==="string")q.dictionary=I8.string2buf(q.dictionary);else if(A$.call(q.dictionary)==="[object ArrayBuffer]")q.dictionary=new Uint8Array(q.dictionary);if(q.raw){if($=u1.inflateSetDictionary(this.strm,q.dictionary),$!==x0.Z_OK)throw Error(v4[$])}}}H1.prototype.push=function(Q,q){var $=this.strm,X=this.options.chunkSize,Y=this.options.dictionary,U,J,K,G,V,z=!1;if(this.ended)return!1;if(J=q===~~q?q:q===!0?x0.Z_FINISH:x0.Z_NO_FLUSH,typeof Q==="string")$.input=I8.binstring2buf(Q);else if(A$.call(Q)==="[object ArrayBuffer]")$.input=new Uint8Array(Q);else $.input=Q;$.next_in=0,$.avail_in=$.input.length;do{if($.avail_out===0)$.output=new R6.Buf8(X),$.next_out=0,$.avail_out=X;if(U=u1.inflate($,x0.Z_NO_FLUSH),U===x0.Z_NEED_DICT&&Y)U=u1.inflateSetDictionary(this.strm,Y);if(U===x0.Z_BUF_ERROR&&z===!0)U=x0.Z_OK,z=!1;if(U!==x0.Z_STREAM_END&&U!==x0.Z_OK)return this.onEnd(U),this.ended=!0,!1;if($.next_out){if($.avail_out===0||U===x0.Z_STREAM_END||$.avail_in===0&&(J===x0.Z_FINISH||J===x0.Z_SYNC_FLUSH))if(this.options.to==="string"){if(K=I8.utf8border($.output,$.next_out),G=$.next_out-K,V=I8.buf2string($.output,K),$.next_out=G,$.avail_out=X-G,G)R6.arraySet($.output,$.output,K,G,0);this.onData(V)}else this.onData(R6.shrinkBuf($.output,$.next_out))}if($.avail_in===0&&$.avail_out===0)z=!0}while(($.avail_in>0||$.avail_out===0)&&U!==x0.Z_STREAM_END);if(U===x0.Z_STREAM_END)J=x0.Z_FINISH;if(J===x0.Z_FINISH)return U=u1.inflateEnd(this.strm),this.onEnd(U),this.ended=!0,U===x0.Z_OK;if(J===x0.Z_SYNC_FLUSH)return this.onEnd(x0.Z_OK),$.avail_out=0,!0;return!0};H1.prototype.onData=function(Q){this.chunks.push(Q)};H1.prototype.onEnd=function(Q){if(Q===x0.Z_OK)if(this.options.to==="string")this.result=this.chunks.join("");else this.result=R6.flattenChunks(this.chunks);this.chunks=[],this.err=Q,this.msg=this.strm.msg};function E4(Q,q){var $=new H1(q);if($.push(Q,!0),$.err)throw $.msg||v4[$.err];return $.result}function BB(Q,q){return q=q||{},q.raw=!0,E4(Q,q)}ZB.Inflate=H1;ZB.inflate=E4;ZB.inflateRaw=BB;ZB.ungzip=E4});var T$=k((AP,x$)=>{var MB=v2().assign,PB=Eq(),LB=O$(),CB=T4(),R$={};MB(R$,PB,LB,CB);x$.exports=R$});var E$=k((AB)=>{var IB=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",NB=T$(),v$=A0(),N8=l0(),DB=IB?"uint8array":"array";AB.magic="\b\x00";function w1(Q,q){N8.call(this,"FlateWorker/"+Q),this._pako=null,this._pakoAction=Q,this._pakoOptions=q,this.meta={}}v$.inherits(w1,N8);w1.prototype.processChunk=function(Q){if(this.meta=Q.meta,this._pako===null)this._createPako();this._pako.push(v$.transformTo(DB,Q.data),!1)};w1.prototype.flush=function(){if(N8.prototype.flush.call(this),this._pako===null)this._createPako();this._pako.push([],!0)};w1.prototype.cleanUp=function(){N8.prototype.cleanUp.call(this),this._pako=null};w1.prototype._createPako=function(){this._pako=new NB[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var Q=this;this._pako.onData=function(q){Q.push({data:q,meta:Q.meta})}};AB.compressWorker=function(Q){return new w1("Deflate",Q)};AB.uncompressWorker=function(){return new w1("Inflate",{})}});var S4=k((TB)=>{var S$=l0();TB.STORE={magic:"\x00\x00",compressWorker:function(){return new S$("STORE compression")},uncompressWorker:function(){return new S$("STORE decompression")}};TB.DEFLATE=E$()});var k4=k((SB)=>{SB.LOCAL_FILE_HEADER="PK\x03\x04";SB.CENTRAL_FILE_HEADER="PK\x01\x02";SB.CENTRAL_DIRECTORY_END="PK\x05\x06";SB.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07";SB.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06";SB.DATA_DESCRIPTOR="PK\x07\b"});var f$=k((TP,y$)=>{var c1=A0(),p1=l0(),g4=E1(),k$=U8(),D8=k4(),L0=function(Q,q){var $="",X;for(X=0;X<q;X++)$+=String.fromCharCode(Q&255),Q=Q>>>8;return $},bB=function(Q,q){var $=Q;if(!Q)$=q?16893:33204;return($&65535)<<16},uB=function(Q){return(Q||0)&63},g$=function(Q,q,$,X,Y,U){var{file:J,compression:K}=Q,G=U!==g4.utf8encode,V=c1.transformTo("string",U(J.name)),z=c1.transformTo("string",g4.utf8encode(J.name)),w=J.comment,F=c1.transformTo("string",U(w)),Z=c1.transformTo("string",g4.utf8encode(w)),h=z.length!==J.name.length,g=Z.length!==w.length,C,N,W="",H="",M="",I=J.dir,f=J.date,E={crc32:0,compressedSize:0,uncompressedSize:0};if(!q||$)E.crc32=Q.crc32,E.compressedSize=Q.compressedSize,E.uncompressedSize=Q.uncompressedSize;var d=0;if(q)d|=8;if(!G&&(h||g))d|=2048;var R=0,x=0;if(I)R|=16;if(Y==="UNIX")x=798,R|=bB(J.unixPermissions,I);else x=20,R|=uB(J.dosPermissions,I);if(C=f.getUTCHours(),C=C<<6,C=C|f.getUTCMinutes(),C=C<<5,C=C|f.getUTCSeconds()/2,N=f.getUTCFullYear()-1980,N=N<<4,N=N|f.getUTCMonth()+1,N=N<<5,N=N|f.getUTCDate(),h)H=L0(1,1)+L0(k$(V),4)+z,W+="up"+L0(H.length,2)+H;if(g)M=L0(1,1)+L0(k$(F),4)+Z,W+="uc"+L0(M.length,2)+M;var D="";D+=`
|
|
3
|
+
\x00`,D+=L0(d,2),D+=K.magic,D+=L0(C,2),D+=L0(N,2),D+=L0(E.crc32,4),D+=L0(E.compressedSize,4),D+=L0(E.uncompressedSize,4),D+=L0(V.length,2),D+=L0(W.length,2);var L=D8.LOCAL_FILE_HEADER+D+V+W,S=D8.CENTRAL_FILE_HEADER+L0(x,2)+D+L0(F.length,2)+"\x00\x00\x00\x00"+L0(R,4)+L0(X,4)+V+W+F;return{fileRecord:L,dirRecord:S}},cB=function(Q,q,$,X,Y){var U="",J=c1.transformTo("string",Y(X));return U=D8.CENTRAL_DIRECTORY_END+"\x00\x00\x00\x00"+L0(Q,2)+L0(Q,2)+L0(q,4)+L0($,4)+L0(J.length,2)+J,U},pB=function(Q){var q="";return q=D8.DATA_DESCRIPTOR+L0(Q.crc32,4)+L0(Q.compressedSize,4)+L0(Q.uncompressedSize,4),q};function J2(Q,q,$,X){p1.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=q,this.zipPlatform=$,this.encodeFileName=X,this.streamFiles=Q,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}c1.inherits(J2,p1);J2.prototype.push=function(Q){var q=Q.meta.percent||0,$=this.entriesCount,X=this._sources.length;if(this.accumulate)this.contentBuffer.push(Q);else this.bytesWritten+=Q.data.length,p1.prototype.push.call(this,{data:Q.data,meta:{currentFile:this.currentFile,percent:$?(q+100*($-X-1))/$:100}})};J2.prototype.openedSource=function(Q){this.currentSourceOffset=this.bytesWritten,this.currentFile=Q.file.name;var q=this.streamFiles&&!Q.file.dir;if(q){var $=g$(Q,q,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:$.fileRecord,meta:{percent:0}})}else this.accumulate=!0};J2.prototype.closedSource=function(Q){this.accumulate=!1;var q=this.streamFiles&&!Q.file.dir,$=g$(Q,q,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push($.dirRecord),q)this.push({data:pB(Q),meta:{percent:100}});else{this.push({data:$.fileRecord,meta:{percent:0}});while(this.contentBuffer.length)this.push(this.contentBuffer.shift())}this.currentFile=null};J2.prototype.flush=function(){var Q=this.bytesWritten;for(var q=0;q<this.dirRecords.length;q++)this.push({data:this.dirRecords[q],meta:{percent:100}});var $=this.bytesWritten-Q,X=cB(this.dirRecords.length,$,Q,this.zipComment,this.encodeFileName);this.push({data:X,meta:{percent:100}})};J2.prototype.prepareNextSource=function(){if(this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused)this.previous.pause();else this.previous.resume()};J2.prototype.registerPrevious=function(Q){this._sources.push(Q);var q=this;return Q.on("data",function($){q.processChunk($)}),Q.on("end",function(){if(q.closedSource(q.previous.streamInfo),q._sources.length)q.prepareNextSource();else q.end()}),Q.on("error",function($){q.error($)}),this};J2.prototype.resume=function(){if(!p1.prototype.resume.call(this))return!1;if(!this.previous&&this._sources.length)return this.prepareNextSource(),!0;if(!this.previous&&!this._sources.length&&!this.generatedError)return this.end(),!0};J2.prototype.error=function(Q){var q=this._sources;if(!p1.prototype.error.call(this,Q))return!1;for(var $=0;$<q.length;$++)try{q[$].error(Q)}catch(X){}return!0};J2.prototype.lock=function(){p1.prototype.lock.call(this);var Q=this._sources;for(var q=0;q<Q.length;q++)Q[q].lock()};y$.exports=J2});var h$=k((iB)=>{var mB=S4(),dB=f$(),lB=function(Q,q){var $=Q||q,X=mB[$];if(!X)throw Error($+" is not a valid compression method !");return X};iB.generateWorker=function(Q,q,$){var X=new dB(q.streamFiles,$,q.platform,q.encodeFileName),Y=0;try{Q.forEach(function(U,J){Y++;var K=lB(J.options.compression,q.compression),G=J.options.compressionOptions||q.compressionOptions||{},V=J.dir,z=J.date;J._compressWorker(K,G).withStreamInfo("file",{name:U,dir:V,date:z,comment:J.comment||"",unixPermissions:J.unixPermissions,dosPermissions:J.dosPermissions}).pipe(X)}),X.entriesCount=Y}catch(U){X.error(U)}return X}});var b$=k((EP,_$)=>{var nB=A0(),A8=l0();function x6(Q,q){A8.call(this,"Nodejs stream input adapter for "+Q),this._upstreamEnded=!1,this._bindStream(q)}nB.inherits(x6,A8);x6.prototype._bindStream=function(Q){var q=this;this._stream=Q,Q.pause(),Q.on("data",function($){q.push({data:$,meta:{percent:0}})}).on("error",function($){if(q.isPaused)this.generatedError=$;else q.error($)}).on("end",function(){if(q.isPaused)q._upstreamEnded=!0;else q.end()})};x6.prototype.pause=function(){if(!A8.prototype.pause.call(this))return!1;return this._stream.pause(),!0};x6.prototype.resume=function(){if(!A8.prototype.resume.call(this))return!1;if(this._upstreamEnded)this.end();else this._stream.resume();return!0};_$.exports=x6});var r$=k((SP,n$)=>{var rB=E1(),T6=A0(),m$=l0(),aB=_5(),d$=b5(),u$=J8(),sB=c9(),tB=h$(),c$=J6(),eB=b$(),l$=function(Q,q,$){var X=T6.getTypeOf(q),Y,U=T6.extend($||{},d$);if(U.date=U.date||new Date,U.compression!==null)U.compression=U.compression.toUpperCase();if(typeof U.unixPermissions==="string")U.unixPermissions=parseInt(U.unixPermissions,8);if(U.unixPermissions&&U.unixPermissions&16384)U.dir=!0;if(U.dosPermissions&&U.dosPermissions&16)U.dir=!0;if(U.dir)Q=i$(Q);if(U.createFolders&&(Y=QZ(Q)))o$.call(this,Y,!0);var J=X==="string"&&U.binary===!1&&U.base64===!1;if(!$||typeof $.binary>"u")U.binary=!J;var K=q instanceof u$&&q.uncompressedSize===0;if(K||U.dir||!q||q.length===0)U.base64=!1,U.binary=!0,q="",U.compression="STORE",X="string";var G=null;if(q instanceof u$||q instanceof m$)G=q;else if(c$.isNode&&c$.isStream(q))G=new eB(Q,q);else G=T6.prepareContent(Q,q,U.binary,U.optimizedBinaryString,U.base64);var V=new sB(Q,G,U);this.files[Q]=V},QZ=function(Q){if(Q.slice(-1)==="/")Q=Q.substring(0,Q.length-1);var q=Q.lastIndexOf("/");return q>0?Q.substring(0,q):""},i$=function(Q){if(Q.slice(-1)!=="/")Q+="/";return Q},o$=function(Q,q){if(q=typeof q<"u"?q:d$.createFolders,Q=i$(Q),!this.files[Q])l$.call(this,Q,null,{dir:!0,createFolders:q});return this.files[Q]};function p$(Q){return Object.prototype.toString.call(Q)==="[object RegExp]"}var qZ={load:function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(Q){var q,$,X;for(q in this.files)if(X=this.files[q],$=q.slice(this.root.length,q.length),$&&q.slice(0,this.root.length)===this.root)Q($,X)},filter:function(Q){var q=[];return this.forEach(function($,X){if(Q($,X))q.push(X)}),q},file:function(Q,q,$){if(arguments.length===1)if(p$(Q)){var X=Q;return this.filter(function(U,J){return!J.dir&&X.test(U)})}else{var Y=this.files[this.root+Q];if(Y&&!Y.dir)return Y;else return null}else Q=this.root+Q,l$.call(this,Q,q,$);return this},folder:function(Q){if(!Q)return this;if(p$(Q))return this.filter(function(Y,U){return U.dir&&Q.test(Y)});var q=this.root+Q,$=o$.call(this,q),X=this.clone();return X.root=$.name,X},remove:function(Q){Q=this.root+Q;var q=this.files[Q];if(!q){if(Q.slice(-1)!=="/")Q+="/";q=this.files[Q]}if(q&&!q.dir)delete this.files[Q];else{var $=this.filter(function(Y,U){return U.name.slice(0,Q.length)===Q});for(var X=0;X<$.length;X++)delete this.files[$[X].name]}return this},generate:function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(Q){var q,$={};try{if($=T6.extend(Q||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:rB.utf8encode}),$.type=$.type.toLowerCase(),$.compression=$.compression.toUpperCase(),$.type==="binarystring")$.type="string";if(!$.type)throw Error("No output type specified.");if(T6.checkSupport($.type),$.platform==="darwin"||$.platform==="freebsd"||$.platform==="linux"||$.platform==="sunos")$.platform="UNIX";if($.platform==="win32")$.platform="DOS";var X=$.comment||this.comment||"";q=tB.generateWorker(this,$,X)}catch(Y){q=new m$("error"),q.error(Y)}return new aB(q,$.type||"string",$.mimeType)},generateAsync:function(Q,q){return this.generateInternalStream(Q).accumulate(q)},generateNodeStream:function(Q,q){if(Q=Q||{},!Q.type)Q.type="nodebuffer";return this.generateInternalStream(Q).toNodejsStream(q)}};n$.exports=qZ});var y4=k((kP,s$)=>{var $Z=A0();function a$(Q){this.data=Q,this.length=Q.length,this.index=0,this.zero=0}a$.prototype={checkOffset:function(Q){this.checkIndex(this.index+Q)},checkIndex:function(Q){if(this.length<this.zero+Q||Q<0)throw Error("End of data reached (data length = "+this.length+", asked index = "+Q+"). Corrupted zip ?")},setIndex:function(Q){this.checkIndex(Q),this.index=Q},skip:function(Q){this.setIndex(this.index+Q)},byteAt:function(){},readInt:function(Q){var q=0,$;this.checkOffset(Q);for($=this.index+Q-1;$>=this.index;$--)q=(q<<8)+this.byteAt($);return this.index+=Q,q},readString:function(Q){return $Z.transformTo("string",this.readData(Q))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var Q=this.readInt(4);return new Date(Date.UTC((Q>>25&127)+1980,(Q>>21&15)-1,Q>>16&31,Q>>11&31,Q>>5&63,(Q&31)<<1))}};s$.exports=a$});var f4=k((gP,e$)=>{var t$=y4(),XZ=A0();function m1(Q){t$.call(this,Q);for(var q=0;q<this.data.length;q++)Q[q]=Q[q]&255}XZ.inherits(m1,t$);m1.prototype.byteAt=function(Q){return this.data[this.zero+Q]};m1.prototype.lastIndexOfSignature=function(Q){var q=Q.charCodeAt(0),$=Q.charCodeAt(1),X=Q.charCodeAt(2),Y=Q.charCodeAt(3);for(var U=this.length-4;U>=0;--U)if(this.data[U]===q&&this.data[U+1]===$&&this.data[U+2]===X&&this.data[U+3]===Y)return U-this.zero;return-1};m1.prototype.readAndCheckSignature=function(Q){var q=Q.charCodeAt(0),$=Q.charCodeAt(1),X=Q.charCodeAt(2),Y=Q.charCodeAt(3),U=this.readData(4);return q===U[0]&&$===U[1]&&X===U[2]&&Y===U[3]};m1.prototype.readData=function(Q){if(this.checkOffset(Q),Q===0)return[];var q=this.data.slice(this.zero+this.index,this.zero+this.index+Q);return this.index+=Q,q};e$.exports=m1});var $X=k((yP,qX)=>{var QX=y4(),YZ=A0();function d1(Q){QX.call(this,Q)}YZ.inherits(d1,QX);d1.prototype.byteAt=function(Q){return this.data.charCodeAt(this.zero+Q)};d1.prototype.lastIndexOfSignature=function(Q){return this.data.lastIndexOf(Q)-this.zero};d1.prototype.readAndCheckSignature=function(Q){var q=this.readData(4);return Q===q};d1.prototype.readData=function(Q){this.checkOffset(Q);var q=this.data.slice(this.zero+this.index,this.zero+this.index+Q);return this.index+=Q,q};qX.exports=d1});var _4=k((fP,YX)=>{var XX=f4(),UZ=A0();function h4(Q){XX.call(this,Q)}UZ.inherits(h4,XX);h4.prototype.readData=function(Q){if(this.checkOffset(Q),Q===0)return new Uint8Array(0);var q=this.data.subarray(this.zero+this.index,this.zero+this.index+Q);return this.index+=Q,q};YX.exports=h4});var KX=k((hP,JX)=>{var UX=_4(),JZ=A0();function b4(Q){UX.call(this,Q)}JZ.inherits(b4,UX);b4.prototype.readData=function(Q){this.checkOffset(Q);var q=this.data.slice(this.zero+this.index,this.zero+this.index+Q);return this.index+=Q,q};JX.exports=b4});var u4=k((_P,zX)=>{var O8=A0(),VX=T2(),KZ=f4(),VZ=$X(),zZ=KX(),GZ=_4();zX.exports=function(Q){var q=O8.getTypeOf(Q);if(O8.checkSupport(q),q==="string"&&!VX.uint8array)return new VZ(Q);if(q==="nodebuffer")return new zZ(Q);if(VX.uint8array)return new GZ(O8.transformTo("uint8array",Q));return new KZ(O8.transformTo("array",Q))}});var ZX=k((bP,BX)=>{var c4=u4(),n2=A0(),WZ=J8(),GX=U8(),R8=E1(),x8=S4(),BZ=T2(),ZZ=0,jZ=3,FZ=function(Q){for(var q in x8){if(!Object.prototype.hasOwnProperty.call(x8,q))continue;if(x8[q].magic===Q)return x8[q]}return null};function WX(Q,q){this.options=Q,this.loadOptions=q}WX.prototype={isEncrypted:function(){return(this.bitFlag&1)===1},useUTF8:function(){return(this.bitFlag&2048)===2048},readLocalPart:function(Q){var q,$;if(Q.skip(22),this.fileNameLength=Q.readInt(2),$=Q.readInt(2),this.fileName=Q.readData(this.fileNameLength),Q.skip($),this.compressedSize===-1||this.uncompressedSize===-1)throw Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(q=FZ(this.compressionMethod),q===null)throw Error("Corrupted zip : compression "+n2.pretty(this.compressionMethod)+" unknown (inner file : "+n2.transformTo("string",this.fileName)+")");this.decompressed=new WZ(this.compressedSize,this.uncompressedSize,this.crc32,q,Q.readData(this.compressedSize))},readCentralPart:function(Q){this.versionMadeBy=Q.readInt(2),Q.skip(2),this.bitFlag=Q.readInt(2),this.compressionMethod=Q.readString(2),this.date=Q.readDate(),this.crc32=Q.readInt(4),this.compressedSize=Q.readInt(4),this.uncompressedSize=Q.readInt(4);var q=Q.readInt(2);if(this.extraFieldsLength=Q.readInt(2),this.fileCommentLength=Q.readInt(2),this.diskNumberStart=Q.readInt(2),this.internalFileAttributes=Q.readInt(2),this.externalFileAttributes=Q.readInt(4),this.localHeaderOffset=Q.readInt(4),this.isEncrypted())throw Error("Encrypted zip are not supported");Q.skip(q),this.readExtraFields(Q),this.parseZIP64ExtraField(Q),this.fileComment=Q.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var Q=this.versionMadeBy>>8;if(this.dir=this.externalFileAttributes&16?!0:!1,Q===ZZ)this.dosPermissions=this.externalFileAttributes&63;if(Q===jZ)this.unixPermissions=this.externalFileAttributes>>16&65535;if(!this.dir&&this.fileNameStr.slice(-1)==="/")this.dir=!0},parseZIP64ExtraField:function(){if(!this.extraFields[1])return;var Q=c4(this.extraFields[1].value);if(this.uncompressedSize===n2.MAX_VALUE_32BITS)this.uncompressedSize=Q.readInt(8);if(this.compressedSize===n2.MAX_VALUE_32BITS)this.compressedSize=Q.readInt(8);if(this.localHeaderOffset===n2.MAX_VALUE_32BITS)this.localHeaderOffset=Q.readInt(8);if(this.diskNumberStart===n2.MAX_VALUE_32BITS)this.diskNumberStart=Q.readInt(4)},readExtraFields:function(Q){var q=Q.index+this.extraFieldsLength,$,X,Y;if(!this.extraFields)this.extraFields={};while(Q.index+4<q)$=Q.readInt(2),X=Q.readInt(2),Y=Q.readData(X),this.extraFields[$]={id:$,length:X,value:Y};Q.setIndex(q)},handleUTF8:function(){var Q=BZ.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=R8.utf8decode(this.fileName),this.fileCommentStr=R8.utf8decode(this.fileComment);else{var q=this.findExtraFieldUnicodePath();if(q!==null)this.fileNameStr=q;else{var $=n2.transformTo(Q,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName($)}var X=this.findExtraFieldUnicodeComment();if(X!==null)this.fileCommentStr=X;else{var Y=n2.transformTo(Q,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(Y)}}},findExtraFieldUnicodePath:function(){var Q=this.extraFields[28789];if(Q){var q=c4(Q.value);if(q.readInt(1)!==1)return null;if(GX(this.fileName)!==q.readInt(4))return null;return R8.utf8decode(q.readData(Q.length-5))}return null},findExtraFieldUnicodeComment:function(){var Q=this.extraFields[25461];if(Q){var q=c4(Q.value);if(q.readInt(1)!==1)return null;if(GX(this.fileComment)!==q.readInt(4))return null;return R8.utf8decode(q.readData(Q.length-5))}return null}};BX.exports=WX});var HX=k((uP,FX)=>{var HZ=u4(),k2=A0(),K2=k4(),wZ=ZX(),MZ=T2();function jX(Q){this.files=[],this.loadOptions=Q}jX.prototype={checkSignature:function(Q){if(!this.reader.readAndCheckSignature(Q)){this.reader.index-=4;var q=this.reader.readString(4);throw Error("Corrupted zip or bug: unexpected signature ("+k2.pretty(q)+", expected "+k2.pretty(Q)+")")}},isSignature:function(Q,q){var $=this.reader.index;this.reader.setIndex(Q);var X=this.reader.readString(4),Y=X===q;return this.reader.setIndex($),Y},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var Q=this.reader.readData(this.zipCommentLength),q=MZ.uint8array?"uint8array":"array",$=k2.transformTo(q,Q);this.zipComment=this.loadOptions.decodeFileName($)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};var Q=this.zip64EndOfCentralSize-44,q=0,$,X,Y;while(q<Q)$=this.reader.readInt(2),X=this.reader.readInt(4),Y=this.reader.readData(X),this.zip64ExtensibleData[$]={id:$,length:X,value:Y}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var Q,q;for(Q=0;Q<this.files.length;Q++)q=this.files[Q],this.reader.setIndex(q.localHeaderOffset),this.checkSignature(K2.LOCAL_FILE_HEADER),q.readLocalPart(this.reader),q.handleUTF8(),q.processAttributes()},readCentralDir:function(){var Q;this.reader.setIndex(this.centralDirOffset);while(this.reader.readAndCheckSignature(K2.CENTRAL_FILE_HEADER))Q=new wZ({zip64:this.zip64},this.loadOptions),Q.readCentralPart(this.reader),this.files.push(Q);if(this.centralDirRecords!==this.files.length){if(this.centralDirRecords!==0&&this.files.length===0)throw Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)}},readEndOfCentral:function(){var Q=this.reader.lastIndexOfSignature(K2.CENTRAL_DIRECTORY_END);if(Q<0){var q=!this.isSignature(0,K2.LOCAL_FILE_HEADER);if(q)throw Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");else throw Error("Corrupted zip: can't find end of central directory")}this.reader.setIndex(Q);var $=Q;if(this.checkSignature(K2.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===k2.MAX_VALUE_16BITS||this.diskWithCentralDirStart===k2.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===k2.MAX_VALUE_16BITS||this.centralDirRecords===k2.MAX_VALUE_16BITS||this.centralDirSize===k2.MAX_VALUE_32BITS||this.centralDirOffset===k2.MAX_VALUE_32BITS){if(this.zip64=!0,Q=this.reader.lastIndexOfSignature(K2.ZIP64_CENTRAL_DIRECTORY_LOCATOR),Q<0)throw Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(Q),this.checkSignature(K2.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,K2.ZIP64_CENTRAL_DIRECTORY_END)){if(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(K2.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0)throw Error("Corrupted zip: can't find the ZIP64 end of central directory")}this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(K2.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var X=this.centralDirOffset+this.centralDirSize;if(this.zip64)X+=20,X+=12+this.zip64EndOfCentralSize;var Y=$-X;if(Y>0)if(this.isSignature($,K2.CENTRAL_FILE_HEADER));else this.reader.zero=Y;else if(Y<0)throw Error("Corrupted zip: missing "+Math.abs(Y)+" bytes.")},prepareReader:function(Q){this.reader=HZ(Q)},load:function(Q){this.prepareReader(Q),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}};FX.exports=jX});var PX=k((cP,MX)=>{var p4=A0(),T8=x1(),PZ=E1(),LZ=HX(),CZ=p5(),wX=J6();function IZ(Q){return new T8.Promise(function(q,$){var X=Q.decompressed.getContentWorker().pipe(new CZ);X.on("error",function(Y){$(Y)}).on("end",function(){if(X.streamInfo.crc32!==Q.decompressed.crc32)$(Error("Corrupted zip : CRC32 mismatch"));else q()}).resume()})}MX.exports=function(Q,q){var $=this;if(q=p4.extend(q||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:PZ.utf8decode}),wX.isNode&&wX.isStream(Q))return T8.Promise.reject(Error("JSZip can't accept a stream when loading a zip file."));return p4.prepareContent("the loaded zip file",Q,!0,q.optimizedBinaryString,q.base64).then(function(X){var Y=new LZ(q);return Y.load(X),Y}).then(function(Y){var U=[T8.Promise.resolve(Y)],J=Y.files;if(q.checkCRC32)for(var K=0;K<J.length;K++)U.push(IZ(J[K]));return T8.Promise.all(U)}).then(function(Y){var U=Y.shift(),J=U.files;for(var K=0;K<J.length;K++){var G=J[K],V=G.fileNameStr,z=p4.resolve(G.fileNameStr);if($.file(z,G.decompressed,{binary:!0,optimizedBinaryString:!0,date:G.date,dir:G.dir,comment:G.fileCommentStr.length?G.fileCommentStr:null,unixPermissions:G.unixPermissions,dosPermissions:G.dosPermissions,createFolders:q.createFolders}),!G.dir)$.file(z).unsafeOriginalName=V}if(U.zipComment.length)$.comment=U.zipComment;return $})}});var CX=k((pP,LX)=>{function q2(){if(!(this instanceof q2))return new q2;if(arguments.length)throw Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var Q=new q2;for(var q in this)if(typeof this[q]!=="function")Q[q]=this[q];return Q}}q2.prototype=r$();q2.prototype.loadAsync=PX();q2.support=T2();q2.defaults=b5();q2.version="3.10.1";q2.loadAsync=function(Q,q){return new q2().loadAsync(Q,q)};q2.external=x1();LX.exports=q2});var pX=k((n4)=>{/*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */var cX;(function(Q){if(typeof DO_NOT_EXPORT_CRC>"u")if(typeof n4==="object")Q(n4);else if(typeof define==="function"&&define.amd)define(function(){var q={};return Q(q),q});else Q(cX={});else Q(cX={})})(function(Q){Q.version="1.2.2";function q(){var E=0,d=Array(256);for(var R=0;R!=256;++R)E=R,E=E&1?-2097792136^E>>>1:E>>>1,E=E&1?-2097792136^E>>>1:E>>>1,E=E&1?-2097792136^E>>>1:E>>>1,E=E&1?-2097792136^E>>>1:E>>>1,E=E&1?-2097792136^E>>>1:E>>>1,E=E&1?-2097792136^E>>>1:E>>>1,E=E&1?-2097792136^E>>>1:E>>>1,E=E&1?-2097792136^E>>>1:E>>>1,d[R]=E;return typeof Int32Array<"u"?new Int32Array(d):d}var $=q();function X(E){var d=0,R=0,x=0,D=typeof Int32Array<"u"?new Int32Array(4096):Array(4096);for(x=0;x!=256;++x)D[x]=E[x];for(x=0;x!=256;++x){R=E[x];for(d=256+x;d<4096;d+=256)R=D[d]=R>>>8^E[R&255]}var L=[];for(x=1;x!=16;++x)L[x-1]=typeof Int32Array<"u"?D.subarray(x*256,x*256+256):D.slice(x*256,x*256+256);return L}var Y=X($),U=Y[0],J=Y[1],K=Y[2],G=Y[3],V=Y[4],z=Y[5],w=Y[6],F=Y[7],Z=Y[8],h=Y[9],g=Y[10],C=Y[11],N=Y[12],W=Y[13],H=Y[14];function M(E,d){var R=d^-1;for(var x=0,D=E.length;x<D;)R=R>>>8^$[(R^E.charCodeAt(x++))&255];return~R}function I(E,d){var R=d^-1,x=E.length-15,D=0;for(;D<x;)R=H[E[D++]^R&255]^W[E[D++]^R>>8&255]^N[E[D++]^R>>16&255]^C[E[D++]^R>>>24]^g[E[D++]]^h[E[D++]]^Z[E[D++]]^F[E[D++]]^w[E[D++]]^z[E[D++]]^V[E[D++]]^G[E[D++]]^K[E[D++]]^J[E[D++]]^U[E[D++]]^$[E[D++]];x+=15;while(D<x)R=R>>>8^$[(R^E[D++])&255];return~R}function f(E,d){var R=d^-1;for(var x=0,D=E.length,L=0,S=0;x<D;)if(L=E.charCodeAt(x++),L<128)R=R>>>8^$[(R^L)&255];else if(L<2048)R=R>>>8^$[(R^(192|L>>6&31))&255],R=R>>>8^$[(R^(128|L&63))&255];else if(L>=55296&&L<57344)L=(L&1023)+64,S=E.charCodeAt(x++)&1023,R=R>>>8^$[(R^(240|L>>8&7))&255],R=R>>>8^$[(R^(128|L>>2&63))&255],R=R>>>8^$[(R^(128|S>>6&15|(L&3)<<4))&255],R=R>>>8^$[(R^(128|S&63))&255];else R=R>>>8^$[(R^(224|L>>12&15))&255],R=R>>>8^$[(R^(128|L>>6&63))&255],R=R>>>8^$[(R^(128|L&63))&255];return~R}Q.table=$,Q.bstr=M,Q.buf=I,Q.str=f})});var R0=k((r4,dX)=>{var g6=function(Q){return Q&&Q.Math===Math&&Q};dX.exports=g6(typeof globalThis=="object"&&globalThis)||g6(typeof window=="object"&&window)||g6(typeof self=="object"&&self)||g6(typeof global=="object"&&global)||g6(typeof r4=="object"&&r4)||function(){return this}()||Function("return this")()});var g2=k((XL,lX)=>{lX.exports=function(Q){try{return!!Q()}catch(q){return!0}}});var r2=k((YL,iX)=>{var bZ=g2();iX.exports=!bZ(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var a4=k((UL,oX)=>{var uZ=g2();oX.exports=!uZ(function(){var Q=function(){}.bind();return typeof Q!="function"||Q.hasOwnProperty("prototype")})});var h8=k((JL,nX)=>{var cZ=a4(),f8=Function.prototype.call;nX.exports=cZ?f8.bind(f8):function(){return f8.apply(f8,arguments)}});var sX=k((mZ)=>{var rX={}.propertyIsEnumerable,aX=Object.getOwnPropertyDescriptor,pZ=aX&&!rX.call({1:2},1);mZ.f=pZ?function(q){var $=aX(this,q);return!!$&&$.enumerable}:rX});var s4=k((VL,tX)=>{tX.exports=function(Q,q){return{enumerable:!(Q&1),configurable:!(Q&2),writable:!(Q&4),value:q}}});var b0=k((zL,qY)=>{var eX=a4(),QY=Function.prototype,t4=QY.call,lZ=eX&&QY.bind.bind(t4,t4);qY.exports=eX?lZ:function(Q){return function(){return t4.apply(Q,arguments)}}});var _8=k((GL,XY)=>{var $Y=b0(),iZ=$Y({}.toString),oZ=$Y("".slice);XY.exports=function(Q){return oZ(iZ(Q),8,-1)}});var UY=k((WL,YY)=>{var nZ=b0(),rZ=g2(),aZ=_8(),e4=Object,sZ=nZ("".split);YY.exports=rZ(function(){return!e4("z").propertyIsEnumerable(0)})?function(Q){return aZ(Q)==="String"?sZ(Q,""):e4(Q)}:e4});var QQ=k((BL,JY)=>{JY.exports=function(Q){return Q===null||Q===void 0}});var qQ=k((ZL,KY)=>{var tZ=QQ(),eZ=TypeError;KY.exports=function(Q){if(tZ(Q))throw new eZ("Can't call method on "+Q);return Q}});var b8=k((jL,VY)=>{var Qj=UY(),qj=qQ();VY.exports=function(Q){return Qj(qj(Q))}});var X2=k((FL,zY)=>{var $Q=typeof document=="object"&&document.all;zY.exports=typeof $Q>"u"&&$Q!==void 0?function(Q){return typeof Q=="function"||Q===$Q}:function(Q){return typeof Q=="function"}});var P1=k((HL,GY)=>{var $j=X2();GY.exports=function(Q){return typeof Q=="object"?Q!==null:$j(Q)}});var YQ=k((wL,WY)=>{var XQ=R0(),Xj=X2(),Yj=function(Q){return Xj(Q)?Q:void 0};WY.exports=function(Q,q){return arguments.length<2?Yj(XQ[Q]):XQ[Q]&&XQ[Q][q]}});var ZY=k((ML,BY)=>{var Uj=b0();BY.exports=Uj({}.isPrototypeOf)});var wY=k((PL,HY)=>{var Jj=R0(),jY=Jj.navigator,FY=jY&&jY.userAgent;HY.exports=FY?String(FY):""});var DY=k((LL,NY)=>{var IY=R0(),UQ=wY(),MY=IY.process,PY=IY.Deno,LY=MY&&MY.versions||PY&&PY.version,CY=LY&&LY.v8,G2,u8;if(CY)G2=CY.split("."),u8=G2[0]>0&&G2[0]<4?1:+(G2[0]+G2[1]);if(!u8&&UQ){if(G2=UQ.match(/Edge\/(\d+)/),!G2||G2[1]>=74){if(G2=UQ.match(/Chrome\/(\d+)/),G2)u8=+G2[1]}}NY.exports=u8});var JQ=k((CL,OY)=>{var AY=DY(),Kj=g2(),Vj=R0(),zj=Vj.String;OY.exports=!!Object.getOwnPropertySymbols&&!Kj(function(){var Q=Symbol("symbol detection");return!zj(Q)||!(Object(Q)instanceof Symbol)||!Symbol.sham&&AY&&AY<41})});var KQ=k((IL,RY)=>{var Gj=JQ();RY.exports=Gj&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var VQ=k((NL,xY)=>{var Wj=YQ(),Bj=X2(),Zj=ZY(),jj=KQ(),Fj=Object;xY.exports=jj?function(Q){return typeof Q=="symbol"}:function(Q){var q=Wj("Symbol");return Bj(q)&&Zj(q.prototype,Fj(Q))}});var vY=k((DL,TY)=>{var Hj=String;TY.exports=function(Q){try{return Hj(Q)}catch(q){return"Object"}}});var zQ=k((AL,EY)=>{var wj=X2(),Mj=vY(),Pj=TypeError;EY.exports=function(Q){if(wj(Q))return Q;throw new Pj(Mj(Q)+" is not a function")}});var kY=k((OL,SY)=>{var Lj=zQ(),Cj=QQ();SY.exports=function(Q,q){var $=Q[q];return Cj($)?void 0:Lj($)}});var yY=k((RL,gY)=>{var GQ=h8(),WQ=X2(),BQ=P1(),Ij=TypeError;gY.exports=function(Q,q){var $,X;if(q==="string"&&WQ($=Q.toString)&&!BQ(X=GQ($,Q)))return X;if(WQ($=Q.valueOf)&&!BQ(X=GQ($,Q)))return X;if(q!=="string"&&WQ($=Q.toString)&&!BQ(X=GQ($,Q)))return X;throw new Ij("Can't convert object to primitive value")}});var hY=k((xL,fY)=>{fY.exports=!1});var c8=k((TL,bY)=>{var _Y=R0(),Nj=Object.defineProperty;bY.exports=function(Q,q){try{Nj(_Y,Q,{value:q,configurable:!0,writable:!0})}catch($){_Y[Q]=q}return q}});var p8=k((vL,pY)=>{var Dj=hY(),Aj=R0(),Oj=c8(),uY="__core-js_shared__",cY=pY.exports=Aj[uY]||Oj(uY,{});(cY.versions||(cY.versions=[])).push({version:"3.47.0",mode:Dj?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.47.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var ZQ=k((EL,dY)=>{var mY=p8();dY.exports=function(Q,q){return mY[Q]||(mY[Q]=q||{})}});var iY=k((SL,lY)=>{var Rj=qQ(),xj=Object;lY.exports=function(Q){return xj(Rj(Q))}});var y2=k((kL,oY)=>{var Tj=b0(),vj=iY(),Ej=Tj({}.hasOwnProperty);oY.exports=Object.hasOwn||function(q,$){return Ej(vj(q),$)}});var jQ=k((gL,nY)=>{var Sj=b0(),kj=0,gj=Math.random(),yj=Sj(1.1 .toString);nY.exports=function(Q){return"Symbol("+(Q===void 0?"":Q)+")_"+yj(++kj+gj,36)}});var m8=k((yL,aY)=>{var fj=R0(),hj=ZQ(),rY=y2(),_j=jQ(),bj=JQ(),uj=KQ(),r1=fj.Symbol,FQ=hj("wks"),cj=uj?r1.for||r1:r1&&r1.withoutSetter||_j;aY.exports=function(Q){if(!rY(FQ,Q))FQ[Q]=bj&&rY(r1,Q)?r1[Q]:cj("Symbol."+Q);return FQ[Q]}});var QU=k((fL,eY)=>{var pj=h8(),sY=P1(),tY=VQ(),mj=kY(),dj=yY(),lj=m8(),ij=TypeError,oj=lj("toPrimitive");eY.exports=function(Q,q){if(!sY(Q)||tY(Q))return Q;var $=mj(Q,oj),X;if($){if(q===void 0)q="default";if(X=pj($,Q,q),!sY(X)||tY(X))return X;throw new ij("Can't convert object to primitive value")}if(q===void 0)q="number";return dj(Q,q)}});var HQ=k((hL,qU)=>{var nj=QU(),rj=VQ();qU.exports=function(Q){var q=nj(Q,"string");return rj(q)?q:q+""}});var YU=k((_L,XU)=>{var aj=R0(),$U=P1(),wQ=aj.document,sj=$U(wQ)&&$U(wQ.createElement);XU.exports=function(Q){return sj?wQ.createElement(Q):{}}});var MQ=k((bL,UU)=>{var tj=r2(),ej=g2(),QF=YU();UU.exports=!tj&&!ej(function(){return Object.defineProperty(QF("div"),"a",{get:function(){return 7}}).a!==7})});var PQ=k((zF)=>{var qF=r2(),$F=h8(),XF=sX(),YF=s4(),UF=b8(),JF=HQ(),KF=y2(),VF=MQ(),JU=Object.getOwnPropertyDescriptor;zF.f=qF?JU:function(q,$){if(q=UF(q),$=JF($),VF)try{return JU(q,$)}catch(X){}if(KF(q,$))return YF(!$F(XF.f,q,$),q[$])}});var VU=k((cL,KU)=>{var WF=r2(),BF=g2();KU.exports=WF&&BF(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var LQ=k((pL,zU)=>{var ZF=P1(),jF=String,FF=TypeError;zU.exports=function(Q){if(ZF(Q))return Q;throw new FF(jF(Q)+" is not an object")}});var l8=k((CF)=>{var HF=r2(),wF=MQ(),MF=VU(),d8=LQ(),GU=HQ(),PF=TypeError,CQ=Object.defineProperty,LF=Object.getOwnPropertyDescriptor,IQ="enumerable",NQ="configurable",DQ="writable";CF.f=HF?MF?function(q,$,X){if(d8(q),$=GU($),d8(X),typeof q==="function"&&$==="prototype"&&"value"in X&&DQ in X&&!X[DQ]){var Y=LF(q,$);if(Y&&Y[DQ])q[$]=X.value,X={configurable:NQ in X?X[NQ]:Y[NQ],enumerable:IQ in X?X[IQ]:Y[IQ],writable:!1}}return CQ(q,$,X)}:CQ:function(q,$,X){if(d8(q),$=GU($),d8(X),wF)try{return CQ(q,$,X)}catch(Y){}if("get"in X||"set"in X)throw new PF("Accessors not supported");if("value"in X)q[$]=X.value;return q}});var AQ=k((dL,WU)=>{var NF=r2(),DF=l8(),AF=s4();WU.exports=NF?function(Q,q,$){return DF.f(Q,q,AF(1,$))}:function(Q,q,$){return Q[q]=$,Q}});var jU=k((lL,ZU)=>{var OQ=r2(),OF=y2(),BU=Function.prototype,RF=OQ&&Object.getOwnPropertyDescriptor,RQ=OF(BU,"name"),xF=RQ&&function(){}.name==="something",TF=RQ&&(!OQ||OQ&&RF(BU,"name").configurable);ZU.exports={EXISTS:RQ,PROPER:xF,CONFIGURABLE:TF}});var HU=k((iL,FU)=>{var vF=b0(),EF=X2(),xQ=p8(),SF=vF(Function.toString);if(!EF(xQ.inspectSource))xQ.inspectSource=function(Q){return SF(Q)};FU.exports=xQ.inspectSource});var PU=k((oL,MU)=>{var kF=R0(),gF=X2(),wU=kF.WeakMap;MU.exports=gF(wU)&&/native code/.test(String(wU))});var IU=k((nL,CU)=>{var yF=ZQ(),fF=jQ(),LU=yF("keys");CU.exports=function(Q){return LU[Q]||(LU[Q]=fF(Q))}});var TQ=k((rL,NU)=>{NU.exports={}});var RU=k((aL,OU)=>{var hF=PU(),AU=R0(),_F=P1(),bF=AQ(),vQ=y2(),EQ=p8(),uF=IU(),cF=TQ(),DU="Object already initialized",SQ=AU.TypeError,pF=AU.WeakMap,i8,y6,o8,mF=function(Q){return o8(Q)?y6(Q):i8(Q,{})},dF=function(Q){return function(q){var $;if(!_F(q)||($=y6(q)).type!==Q)throw new SQ("Incompatible receiver, "+Q+" required");return $}};if(hF||EQ.state)Y2=EQ.state||(EQ.state=new pF),Y2.get=Y2.get,Y2.has=Y2.has,Y2.set=Y2.set,i8=function(Q,q){if(Y2.has(Q))throw new SQ(DU);return q.facade=Q,Y2.set(Q,q),q},y6=function(Q){return Y2.get(Q)||{}},o8=function(Q){return Y2.has(Q)};else a2=uF("state"),cF[a2]=!0,i8=function(Q,q){if(vQ(Q,a2))throw new SQ(DU);return q.facade=Q,bF(Q,a2,q),q},y6=function(Q){return vQ(Q,a2)?Q[a2]:{}},o8=function(Q){return vQ(Q,a2)};var Y2,a2;OU.exports={set:i8,get:y6,has:o8,enforce:mF,getterFor:dF}});var EU=k((sL,vU)=>{var gQ=b0(),lF=g2(),iF=X2(),n8=y2(),kQ=r2(),oF=jU().CONFIGURABLE,nF=HU(),TU=RU(),rF=TU.enforce,aF=TU.get,xU=String,r8=Object.defineProperty,sF=gQ("".slice),tF=gQ("".replace),eF=gQ([].join),QH=kQ&&!lF(function(){return r8(function(){},"length",{value:8}).length!==8}),qH=String(String).split("String"),$H=vU.exports=function(Q,q,$){if(sF(xU(q),0,7)==="Symbol(")q="["+tF(xU(q),/^Symbol\(([^)]*)\).*$/,"$1")+"]";if($&&$.getter)q="get "+q;if($&&$.setter)q="set "+q;if(!n8(Q,"name")||oF&&Q.name!==q)if(kQ)r8(Q,"name",{value:q,configurable:!0});else Q.name=q;if(QH&&$&&n8($,"arity")&&Q.length!==$.arity)r8(Q,"length",{value:$.arity});try{if($&&n8($,"constructor")&&$.constructor){if(kQ)r8(Q,"prototype",{writable:!1})}else if(Q.prototype)Q.prototype=void 0}catch(Y){}var X=rF(Q);if(!n8(X,"source"))X.source=eF(qH,typeof q=="string"?q:"");return Q};Function.prototype.toString=$H(function(){return iF(this)&&aF(this).source||nF(this)},"toString")});var kU=k((tL,SU)=>{var XH=X2(),YH=l8(),UH=EU(),JH=c8();SU.exports=function(Q,q,$,X){if(!X)X={};var Y=X.enumerable,U=X.name!==void 0?X.name:q;if(XH($))UH($,U,X);if(X.global)if(Y)Q[q]=$;else JH(q,$);else{try{if(!X.unsafe)delete Q[q];else if(Q[q])Y=!0}catch(J){}if(Y)Q[q]=$;else YH.f(Q,q,{value:$,enumerable:!1,configurable:!X.nonConfigurable,writable:!X.nonWritable})}return Q}});var yU=k((eL,gU)=>{var{ceil:KH,floor:VH}=Math;gU.exports=Math.trunc||function(q){var $=+q;return($>0?VH:KH)($)}});var yQ=k((QC,fU)=>{var zH=yU();fU.exports=function(Q){var q=+Q;return q!==q||q===0?0:zH(q)}});var _U=k((qC,hU)=>{var GH=yQ(),WH=Math.max,BH=Math.min;hU.exports=function(Q,q){var $=GH(Q);return $<0?WH($+q,0):BH($,q)}});var uU=k(($C,bU)=>{var ZH=yQ(),jH=Math.min;bU.exports=function(Q){var q=ZH(Q);return q>0?jH(q,9007199254740991):0}});var fQ=k((XC,cU)=>{var FH=uU();cU.exports=function(Q){return FH(Q.length)}});var dU=k((YC,mU)=>{var HH=b8(),wH=_U(),MH=fQ(),pU=function(Q){return function(q,$,X){var Y=HH(q),U=MH(Y);if(U===0)return!Q&&-1;var J=wH(X,U),K;if(Q&&$!==$){while(U>J)if(K=Y[J++],K!==K)return!0}else for(;U>J;J++)if((Q||(J in Y))&&Y[J]===$)return Q||J||0;return!Q&&-1}};mU.exports={includes:pU(!0),indexOf:pU(!1)}});var oU=k((UC,iU)=>{var PH=b0(),hQ=y2(),LH=b8(),CH=dU().indexOf,IH=TQ(),lU=PH([].push);iU.exports=function(Q,q){var $=LH(Q),X=0,Y=[],U;for(U in $)!hQ(IH,U)&&hQ($,U)&&lU(Y,U);while(q.length>X)if(hQ($,U=q[X++]))~CH(Y,U)||lU(Y,U);return Y}});var rU=k((JC,nU)=>{nU.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var aU=k((OH)=>{var NH=oU(),DH=rU(),AH=DH.concat("length","prototype");OH.f=Object.getOwnPropertyNames||function(q){return NH(q,AH)}});var sU=k((xH)=>{xH.f=Object.getOwnPropertySymbols});var eU=k((zC,tU)=>{var vH=YQ(),EH=b0(),SH=aU(),kH=sU(),gH=LQ(),yH=EH([].concat);tU.exports=vH("Reflect","ownKeys")||function(q){var $=SH.f(gH(q)),X=kH.f;return X?yH($,X(q)):$}});var $J=k((GC,qJ)=>{var QJ=y2(),fH=eU(),hH=PQ(),_H=l8();qJ.exports=function(Q,q,$){var X=fH(q),Y=_H.f,U=hH.f;for(var J=0;J<X.length;J++){var K=X[J];if(!QJ(Q,K)&&!($&&QJ($,K)))Y(Q,K,U(q,K))}}});var YJ=k((WC,XJ)=>{var bH=g2(),uH=X2(),cH=/#|\.prototype\./,f6=function(Q,q){var $=mH[pH(Q)];return $===lH?!0:$===dH?!1:uH(q)?bH(q):!!q},pH=f6.normalize=function(Q){return String(Q).replace(cH,".").toLowerCase()},mH=f6.data={},dH=f6.NATIVE="N",lH=f6.POLYFILL="P";XJ.exports=f6});var L1=k((BC,UJ)=>{var a8=R0(),iH=PQ().f,oH=AQ(),nH=kU(),rH=c8(),aH=$J(),sH=YJ();UJ.exports=function(Q,q){var{target:$,global:X,stat:Y}=Q,U,J,K,G,V,z;if(X)J=a8;else if(Y)J=a8[$]||rH($,{});else J=a8[$]&&a8[$].prototype;if(J)for(K in q){if(V=q[K],Q.dontCallGetSet)z=iH(J,K),G=z&&z.value;else G=J[K];if(U=sH(X?K:$+(Y?".":"#")+K,Q.forced),!U&&G!==void 0){if(typeof V==typeof G)continue;aH(V,G)}if(Q.sham||G&&G.sham)oH(V,"sham",!0);nH(J,K,V,Q)}}});var KJ=k((ZC,JJ)=>{var tH=fQ();JJ.exports=function(Q,q,$){var X=0,Y=arguments.length>2?$:tH(q),U=new Q(Y);while(Y>X)U[X]=q[X++];return U}});var _Q=k((jC,VJ)=>{var eH=P1(),Qw=String,qw=TypeError;VJ.exports=function(Q){if(Q===void 0||eH(Q))return Q;throw new qw(Qw(Q)+" is not an object or undefined")}});var s8=k((FC,zJ)=>{var $w=TypeError;zJ.exports=function(Q){if(typeof Q=="string")return Q;throw new $w("Argument is not a string")}});var bQ=k((HC,jJ)=>{var ZJ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",GJ=ZJ+"+/",WJ=ZJ+"-_",BJ=function(Q){var q={},$=0;for(;$<64;$++)q[Q.charAt($)]=$;return q};jJ.exports={i2c:GJ,c2i:BJ(GJ),i2cUrl:WJ,c2iUrl:BJ(WJ)}});var uQ=k((wC,FJ)=>{var Xw=TypeError;FJ.exports=function(Q){var q=Q&&Q.alphabet;if(q===void 0||q==="base64"||q==="base64url")return q||"base64";throw new Xw("Incorrect `alphabet` option")}});var wJ=k((MC,HJ)=>{HJ.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"});var PJ=k((PC,MJ)=>{var Yw=b0(),Uw=zQ();MJ.exports=function(Q,q,$){try{return Yw(Uw(Object.getOwnPropertyDescriptor(Q,q)[$]))}catch(X){}}});var NJ=k((LC,IJ)=>{var CJ=R0(),Jw=PJ(),Kw=_8(),LJ=CJ.ArrayBuffer,Vw=CJ.TypeError;IJ.exports=LJ&&Jw(LJ.prototype,"byteLength","get")||function(Q){if(Kw(Q)!=="ArrayBuffer")throw new Vw("ArrayBuffer expected");return Q.byteLength}});var AJ=k((CC,DJ)=>{var zw=R0(),Gw=wJ(),Ww=NJ(),Bw=zw.DataView;DJ.exports=function(Q){if(!Gw||Ww(Q)!==0)return!1;try{return new Bw(Q),!1}catch(q){return!0}}});var h6=k((IC,OJ)=>{var Zw=AJ(),jw=TypeError;OJ.exports=function(Q){if(Zw(Q))throw new jw("ArrayBuffer is detached");return Q}});var dQ=k((NC,TJ)=>{var RJ=R0(),Fw=b0(),Hw=_Q(),ww=s8(),Mw=y2(),xJ=bQ(),Pw=uQ(),Lw=h6(),Cw=xJ.c2i,Iw=xJ.c2iUrl,s2=RJ.SyntaxError,Nw=RJ.TypeError,C1=Fw("".charAt),cQ=function(Q,q){var $=Q.length;for(;q<$;q++){var X=C1(Q,q);if(X!==" "&&X!=="\t"&&X!==`
|
|
4
|
+
`&&X!=="\f"&&X!=="\r")break}return q},pQ=function(Q,q,$){var X=Q.length;if(X<4)Q+=X===2?"AA":"A";var Y=(q[C1(Q,0)]<<18)+(q[C1(Q,1)]<<12)+(q[C1(Q,2)]<<6)+q[C1(Q,3)],U=[Y>>16&255,Y>>8&255,Y&255];if(X===2){if($&&U[1]!==0)throw new s2("Extra bits");return[U[0]]}if(X===3){if($&&U[2]!==0)throw new s2("Extra bits");return[U[0],U[1]]}return U},mQ=function(Q,q,$){var X=q.length;for(var Y=0;Y<X;Y++)Q[$+Y]=q[Y];return $+X};TJ.exports=function(Q,q,$,X){ww(Q),Hw(q);var Y=Pw(q)==="base64"?Cw:Iw,U=q?q.lastChunkHandling:void 0;if(U===void 0)U="loose";if(U!=="loose"&&U!=="strict"&&U!=="stop-before-partial")throw new Nw("Incorrect `lastChunkHandling` option");if($)Lw($.buffer);var J=Q.length,K=$||[],G=0,V=0,z="",w=0;if(X)while(!0){if(w=cQ(Q,w),w===J){if(z.length>0){if(U==="stop-before-partial")break;if(U==="loose"){if(z.length===1)throw new s2("Malformed padding: exactly one additional character");G=mQ(K,pQ(z,Y,!1),G)}else throw new s2("Missing padding")}V=J;break}var F=C1(Q,w);if(++w,F==="="){if(z.length<2)throw new s2("Padding is too early");if(w=cQ(Q,w),z.length===2){if(w===J){if(U==="stop-before-partial")break;throw new s2("Malformed padding: only one =")}if(C1(Q,w)==="=")++w,w=cQ(Q,w)}if(w<J)throw new s2("Unexpected character after padding");G=mQ(K,pQ(z,Y,U==="strict"),G),V=J;break}if(!Mw(Y,F))throw new s2("Unexpected character");var Z=X-G;if(Z===1&&z.length===2||Z===2&&z.length===3)break;if(z+=F,z.length===4){if(G=mQ(K,pQ(z,Y,!1),G),z="",V=w,G===X)break}}return{bytes:K,read:V,written:G}}});var vJ=k(()=>{var Dw=L1(),Aw=R0(),Ow=KJ(),Rw=dQ(),a1=Aw.Uint8Array,xw=!a1||!a1.fromBase64||!function(){try{a1.fromBase64("a");return}catch(Q){}try{a1.fromBase64("",null)}catch(Q){return!0}}();if(a1)Dw({target:"Uint8Array",stat:!0,forced:xw},{fromBase64:function(q){var $=Rw(q,arguments.length>1?arguments[1]:void 0,null,9007199254740991);return Ow(a1,$.bytes)}})});var EJ=k(()=>{vJ()});var iQ=k((xC,yJ)=>{var lQ=R0(),kJ=b0(),Tw=lQ.Uint8Array,SJ=lQ.SyntaxError,vw=lQ.parseInt,Ew=Math.min,gJ=/[^\da-f]/i,Sw=kJ(gJ.exec),kw=kJ("".slice);yJ.exports=function(Q,q){var $=Q.length;if($%2!==0)throw new SJ("String should be an even number of characters");var X=q?Ew(q.length,$/2):$/2,Y=q||new Tw(X),U=0,J=0;while(J<X){var K=kw(Q,U,U+=2);if(Sw(gJ,K))throw new SJ("String should only contain hex characters");Y[J++]=vw(K,16)}return{bytes:Y,read:U}}});var fJ=k(()=>{var gw=L1(),yw=R0(),fw=s8(),hw=iQ();if(yw.Uint8Array)gw({target:"Uint8Array",stat:!0},{fromHex:function(q){return hw(fw(q)).bytes}})});var hJ=k(()=>{fJ()});var uJ=k((kC,bJ)=>{var _w=m8(),bw=_w("toStringTag"),_J={};_J[bw]="z";bJ.exports=String(_J)==="[object z]"});var pJ=k((gC,cJ)=>{var uw=uJ(),cw=X2(),t8=_8(),pw=m8(),mw=pw("toStringTag"),dw=Object,lw=t8(function(){return arguments}())==="Arguments",iw=function(Q,q){try{return Q[q]}catch($){}};cJ.exports=uw?t8:function(Q){var q,$,X;return Q===void 0?"Undefined":Q===null?"Null":typeof($=iw(q=dw(Q),mw))=="string"?$:lw?t8(q):(X=t8(q))==="Object"&&cw(q.callee)?"Arguments":X}});var _6=k((yC,mJ)=>{var ow=pJ(),nw=TypeError;mJ.exports=function(Q){if(ow(Q)==="Uint8Array")return Q;throw new nw("Argument is not an Uint8Array")}});var dJ=k(()=>{var rw=L1(),aw=R0(),sw=dQ(),tw=_6(),e8=aw.Uint8Array,ew=!e8||!e8.prototype.setFromBase64||!function(){var Q=new e8([255,255,255,255,255]);try{Q.setFromBase64("",null);return}catch(q){}try{Q.setFromBase64("a");return}catch(q){}try{Q.setFromBase64("MjYyZg===")}catch(q){return Q[0]===50&&Q[1]===54&&Q[2]===50&&Q[3]===255&&Q[4]===255}}();if(e8)rw({target:"Uint8Array",proto:!0,forced:ew},{setFromBase64:function(q){tw(this);var $=sw(q,arguments.length>1?arguments[1]:void 0,this,this.length);return{read:$.read,written:$.written}}})});var lJ=k(()=>{dJ()});var iJ=k(()=>{var QM=L1(),qM=R0(),$M=s8(),XM=_6(),YM=h6(),UM=iQ();if(qM.Uint8Array)QM({target:"Uint8Array",proto:!0},{setFromHex:function(q){XM(this),$M(q),YM(this.buffer);var $=UM(q,this).read;return{read:$,written:$/2}}})});var oJ=k(()=>{iJ()});var rJ=k(()=>{var JM=L1(),KM=R0(),VM=b0(),zM=_Q(),GM=_6(),WM=h6(),nJ=bQ(),BM=uQ(),ZM=nJ.i2c,jM=nJ.i2cUrl,FM=VM("".charAt),Q5=KM.Uint8Array,HM=!Q5||!Q5.prototype.toBase64||!function(){try{var Q=new Q5;Q.toBase64(null)}catch(q){return!0}}();if(Q5)JM({target:"Uint8Array",proto:!0,forced:HM},{toBase64:function(){var q=GM(this),$=arguments.length?zM(arguments[0]):void 0,X=BM($)==="base64"?ZM:jM,Y=!!$&&!!$.omitPadding;WM(this.buffer);var U="",J=0,K=q.length,G,V=function(z){return FM(X,G>>6*z&63)};for(;J+2<K;J+=3)G=(q[J]<<16)+(q[J+1]<<8)+q[J+2],U+=V(3)+V(2)+V(1)+V(0);if(J+2===K)G=(q[J]<<16)+(q[J+1]<<8),U+=V(3)+V(2)+V(1)+(Y?"":"=");else if(J+1===K)G=q[J]<<16,U+=V(3)+V(2)+(Y?"":"==");return U}})});var aJ=k(()=>{rJ()});var sJ=k(()=>{var wM=L1(),MM=R0(),PM=b0(),LM=_6(),CM=h6(),IM=PM(1.1 .toString),q5=MM.Uint8Array,NM=!q5||!q5.prototype.toHex||!function(){try{var Q=new q5([255,255,255,255,255,255,255,255]);return Q.toHex()==="ffffffffffffffff"}catch(q){return!1}}();if(q5)wM({target:"Uint8Array",proto:!0,forced:NM},{toHex:function(){LM(this),CM(this.buffer);var q="";for(var $=0,X=this.length;$<X;$++){var Y=IM(this[$],16);q+=Y.length===1?"0"+Y:Y}return q}})});var tJ=k(()=>{sJ()});var eJ=k(()=>{EJ();hJ();lJ();oJ();aJ();tJ()});var XK=V5(CX(),1);function*NX(...Q){for(let q of Q)yield*q}function*E8(Q,q){let $=0;for(let X of Q)yield q(X,$++)}function*NZ(Q,q){let $=0;for(let X of Q)if(q(X,$++))yield X}function*DZ(Q){for(let q=0;q<Q;++q)yield q}function v6(Q=0.5){return Math.random()<Q}function DX(Q,q){return Q+Math.floor(Math.random()*(q-Q))}function k8(Q){let q=Q[DX(0,Q.length)];if(q===void 0)throw Error("choices was empty in random choice");else return q}var v8;function m4(){if(v8===void 0){let Q=Math.sqrt(-2*Math.log(Math.random())),q=2*Math.PI*Math.random();return v8=Q*Math.sin(q),Q*Math.cos(q)}else{let Q=v8;return v8=void 0,Q}}function V2(Q=1){let q=Math.exp(-Q),$=0,X=Math.random();while(X>q)$++,X*=Math.random();return $}var IX=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 ;,'"`;function i1(Q){return Array(Q).fill(null).map(()=>IX.charAt(Math.floor(Math.random()*IX.length))).join("")}var AZ=/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(\.\d+)?([zZ]|((\+|-)(\d{2}):(\d{2})))$/;function OZ(Q){let q=AZ.exec(Q);if(!q)return!1;let[,$,X,Y,U,J,K]=q.map((G)=>parseInt(G,10));return $!==void 0&&X!==void 0&&Y!==void 0&&U!==void 0&&J!==void 0&&K!==void 0&&0<X&&X<=12&&Y<=RZ($,X)&&U<24&&J<60&&K<=60}function RZ(Q,q){if(q===2)return xZ(Q)?29:28;return TZ[q-1]??0}function xZ(Q){return Q%4===0&&(Q%100!==0||Q%400===0)}var TZ=[31,0,31,30,31,30,31,31,30,31,30,31];function S8(Q){return typeof Q==="object"&&Q!==null&&!Array.isArray(Q)}var vZ={int8:[-128,128],int16:[-32768,32768],int32:[-2147483648,2147483648],uint8:[0,256],uint16:[0,65536],uint32:[0,4294967296]};function l1(Q){return/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(Q)?`.${Q}`:`["${Q}"]`}function $2(Q){return Q===null?"null":Array.isArray(Q)?"array":typeof Q}class S0{guard(Q){for(let q of this.pathErrors(Q))return!1;return!0}guardAssert(Q){let q=[];for(let[$,X]of this.pathErrors(Q)){let Y=$.reverse().join("")||".";q.push(`${Y}: ${X}`)}if(q.length){let $=JSON.stringify(Q,null,2),X=JSON.stringify(this.schema(),null,2);throw Error(`Validation errors:
|
|
5
5
|
${q.join(`
|
|
6
6
|
`)}
|
|
7
7
|
|
|
@@ -9,7 +9,7 @@ While trying to validate:
|
|
|
9
9
|
${$}
|
|
10
10
|
|
|
11
11
|
Against schema:
|
|
12
|
-
${X}`)}else return!0}}class AX extends S0{#Q;definitions;nullable=!0;constructor(Q){super();this.#Q=Q,this.definitions=Q.definitions}*pathErrors(Q){if(Q!==null)for(let[q,$]of this.#Q.pathErrors(Q))yield[q,`${$} or ${$2(Q)} is not null`]}fuzz(){return T6(0.1)?null:this.#Q.fuzz()}schema(){return{...this.#Q.schema(),nullable:!0}}}function g8(Q){return new AX(Q)}class EZ extends S0{#Q;#q;definitions;nullable;constructor(Q,q){super();this.#Q=Q,this.#q=q,this.definitions=Q.definitions,this.nullable=Q.nullable}*pathErrors(Q){yield*this.#Q.pathErrors(Q)}fuzz(){return this.#Q.fuzz()}schema(){return{...this.#Q.schema(),metadata:this.#q}}}class OX extends S0{*pathErrors(Q){if(Q===void 0)yield[[],"value is undefined"]}fuzz(){return k8([()=>null,T6,m4,()=>i1(V2()),()=>Array(V2()).fill(null).map(()=>this.fuzz()),()=>Object.fromEntries(Array(V2()).fill(null).map(()=>[i1(V2(3)),this.fuzz()]))])()}schema(){return{}}}function RX(){return new OX}class xX extends S0{*pathErrors(Q){if(typeof Q!=="boolean")yield[[],`${$2(Q)} is not a boolean`]}fuzz(){return T6()}schema(){return{type:"boolean"}}}function M1(){return new xX}class y8 extends S0{#Q;#q;#$;constructor(Q){super();this.#Q=Q,[this.#q,this.#$]=vZ[Q]}*pathErrors(Q){if(typeof Q!=="number")yield[[],`${$2(Q)} is not a number`];else if(Q%1!==0)yield[[],`${Q.toPrecision()} is not an integer`];else if(Q<this.#q)yield[[],`${Q.toFixed()} is less than ${this.#q.toFixed()}`];else if(Q>=this.#$)yield[[],`${Q.toFixed()} is greater than ${(this.#$-1).toFixed()}`]}fuzz(){return DX(this.#q,this.#$)}schema(){return{type:this.#Q}}}function v6(){return new y8("uint8")}function z2(){return new y8("int32")}function E6(){return new y8("uint32")}class TX extends S0{#Q;constructor(Q){super();this.#Q=Q}*pathErrors(Q){if(typeof Q!=="number")yield[[],`${$2(Q)} is not number, expected a float`]}fuzz(){return m4()}schema(){return{type:this.#Q}}}function O0(){return new TX("float64")}class vX extends S0{*pathErrors(Q){if(typeof Q!=="string")yield[[],`${$2(Q)} is not a string`]}fuzz(){return i1(V2(3))}schema(){return{type:"string"}}}function j0(){return new vX}class EX extends S0{*pathErrors(Q){if(typeof Q!=="string")yield[[],`${$2(Q)} is not a string`];else if(!OZ(Q))yield[[],`${Q} is not a valid timestamp`]}fuzz(){return new Date(Math.random()*3153600000000).toISOString()}schema(){return{type:"timestamp"}}}function SX(){return new EX}class kX extends S0{#Q;#q;constructor(Q,q){super();this.#Q=Q,this.#q=q}*pathErrors(Q){if(typeof Q!=="string")yield[[],`${$2(Q)} is not a string`];else if(!this.#q.has(Q))yield[[],`${Q} is not one of ${this.#Q.join(", ")}`]}fuzz(){return k8(this.#Q)}schema(){return{enum:[...this.#Q]}}}function C2(...Q){let q=new Set(Q);if(q.size!==Q.length)throw Error("enum can't contain duplicates");else return new kX(Q,q)}class gX extends S0{#Q;constructor(Q){super();this.#Q=Q}*pathErrors(Q){if(!Array.isArray(Q))yield[[],`${$2(Q)} is not an array`];else for(let[q,$]of Q.entries())for(let[X,Y]of this.#Q.pathErrors($))X.push(`[${q.toFixed()}]`),yield[X,Y]}fuzz(){return Array(V2()).fill(null).map(()=>this.#Q.fuzz())}schema(){return{elements:this.#Q.schema()}}}function d0(Q){if(Q.definitions)throw Error("definitions can only exist on a root schema");else return new gX(Q)}class yX extends S0{#Q;constructor(Q){super();this.#Q=Q}*pathErrors(Q){if(!S8(Q))yield[[],`${$2(Q)} is not a record`];else for(let[q,$]of Object.entries(Q))for(let[X,Y]of this.#Q.pathErrors($))X.push(l1(q)),yield[X,Y]}fuzz(){return Object.fromEntries(Array(V2()).fill(null).map(()=>[i1(V2(3)),this.#Q.fuzz()]))}schema(){return{values:this.#Q.schema()}}}function S6(Q){if(Q.definitions)throw Error("definitions can only exist on a root schema");else return new yX(Q)}class fX extends S0{#Q;#q;#$;keys;constructor(Q,q,$,X){super();this.#Q=Q,this.#q=q,this.#$=$,this.keys=X}*pathErrors(Q){if(!S8(Q))yield[[],`${$2(Q)} is not a record`];else{if(this.#Q)for(let[q,$]of this.#Q){let X=Q[q];if(X===void 0)yield[[],`required key '${q}' is missing`];else for(let[Y,U]of $.pathErrors(X))Y.push(l1(q)),yield[Y,U]}if(this.#q){for(let[q,$]of this.#q)if(Q[q]!==void 0)for(let[X,Y]of $.pathErrors(Q[q]))X.push(l1(q)),yield[X,Y]}if(!this.#$){for(let q of Object.keys(Q))if(!this.keys.has(q))yield[[l1(q)],`'${q}' is not a valid property and additional properties are not allowed`]}}}fuzz(){let Q=E8(this.#Q??[],([X,Y])=>[X,Y.fuzz()]),q=E8(NZ(this.#q??[],()=>T6()),([X,Y])=>[X,Y.fuzz()]),$=this.#$?E8(DZ(V2()),()=>[i1(V2(3)),k8([()=>null,T6,m4,()=>i1(V2()),()=>[],()=>({})])()]):[];return Object.fromEntries(NX(Q,q,$))}schema(){let Q={};if(this.#Q)Q.properties=Object.fromEntries(this.#Q.map(([q,$])=>[q,$.schema()]));if(this.#q)Q.optionalProperties=Object.fromEntries(this.#q.map(([q,$])=>[q,$.schema()]));if(this.#$)Q.additionalProperties=!0;return Q}}function SZ(Q,q,$){let X=new Set(E8(NX(Q??[],q??[]),([Y])=>Y));if(Q?.some(([,Y])=>Y.definitions))throw Error("definitions can only exist on a root schema");else if(q?.some(([,Y])=>Y.definitions))throw Error("definitions can only exist on a root schema");else if(X.size!==(Q?.length??0)+(q?.length??0))throw Error("properties and optionalProperties keys must be unique");else return new fX(Q,q,$??!1,X)}function N0(Q,q,$){return SZ(Q?Object.entries(Q):void 0,q?Object.entries(q):void 0,$)}class kZ extends S0{#Q;#q;#$;constructor(Q,q,$){super();this.#Q=Q,this.#q=q,this.#$=$}guard(Q){if(!S8(Q))return!1;let{[this.#Q]:q,...$}=Q;if(typeof q!=="string")return!1;return this.#q[q]?.guard($)??!1}*pathErrors(Q){if(!S8(Q))yield[[],`${$2(Q)} is not an object`];else{let{[this.#Q]:q,...$}=Q;if(q===void 0)yield[[],`discriminator key '${this.#Q}' is missing`];else if(typeof q!=="string")yield[[l1(this.#Q)],`${$2(q)} is not a string`];else{let X=this.#q[q];if(X===void 0)yield[[l1(this.#Q)],`'${q}' is not a valid discriminator value (${Object.keys(this.#q).join(", ")})`];else yield*X.pathErrors($)}}}fuzz(){let[Q,q]=k8(this.#$);return{...q.fuzz(),[this.#Q]:Q}}schema(){let Q=Object.fromEntries(this.#$.map(([q,$])=>[q,$.schema()]));return{discriminator:this.#Q,mapping:Q}}}class hX extends S0{#Q;#q;definitions=!0;constructor(Q,q){super();this.#Q=Q,this.#q=q}*pathErrors(Q){yield*this.#q.pathErrors(Q)}fuzz(){return this.#q.fuzz()}schema(){let Q=Object.fromEntries(Object.entries(this.#Q).map(([q,$])=>[q,$.schema()]));return{...this.#q.schema(),definitions:Q}}}class _X extends S0{#Q;#q;constructor(Q,q){super();this.#Q=Q,this.#q=q}*pathErrors(Q){yield*this.#q.pathErrors(Q)}fuzz(){return this.#q.fuzz()}schema(){return{ref:this.#Q}}}class bX{#Q;#q;constructor(Q,q){this.#Q=Q,this.#q=q}def(Q,q){let $=q(this.#q);return new bX({...this.#Q,[Q]:$},{...this.#q,[Q]:new _X(Q,$)})}build(Q){return new hX(this.#Q,Q(this.#q))}}class gZ extends S0{#Q;#q;constructor(Q,q){super();this.#q=Q,this.#Q=q}#$(){let Q=this.#q[this.#Q];if(Q===void 0)throw Error(`ref ${this.#Q} was not in definitions after ref builder was finished`);else return Q}*pathErrors(Q){yield*this.#$().pathErrors(Q)}fuzz(){return this.#$().fuzz()}schema(){return{ref:this.#Q}}}var k0=[];for(let Q=0;Q<256;++Q)k0.push((Q+256).toString(16).slice(1));function uX(Q,q=0){return(k0[Q[q+0]]+k0[Q[q+1]]+k0[Q[q+2]]+k0[Q[q+3]]+"-"+k0[Q[q+4]]+k0[Q[q+5]]+"-"+k0[Q[q+6]]+k0[Q[q+7]]+"-"+k0[Q[q+8]]+k0[Q[q+9]]+"-"+k0[Q[q+10]]+k0[Q[q+11]]+k0[Q[q+12]]+k0[Q[q+13]]+k0[Q[q+14]]+k0[Q[q+15]]).toLowerCase()}var d4,yZ=new Uint8Array(16);function l4(){if(!d4){if(typeof crypto>"u"||!crypto.getRandomValues)throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");d4=crypto.getRandomValues.bind(crypto)}return d4(yZ)}var fZ=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),i4={randomUUID:fZ};function hZ(Q,q,$){Q=Q||{};let X=Q.random??Q.rng?.()??l4();if(X.length<16)throw Error("Random bytes length must be >= 16");if(X[6]=X[6]&15|64,X[8]=X[8]&63|128,q){if($=$||0,$<0||$+16>q.length)throw RangeError(`UUID byte range ${$}:${$+15} is out of buffer bounds`);for(let Y=0;Y<16;++Y)q[$+Y]=X[Y];return q}return uX(X)}function _Z(Q,q,$){if(i4.randomUUID&&!q&&!Q)return i4.randomUUID();return hZ(Q,q,$)}var o1=_Z;class I2 extends Error{field;regex;constructor(Q,q,$){super($);this.field=Q,this.regex=q}}class k6 extends Error{hash;constructor(Q){super(`'${Q}' not found in the root hash`);this.hash=Q}}class o4 extends Map{#Q;#q=0;constructor(Q,q=[]){super();this.#Q=Q;for(let[$,X]of q)this.set($,X)}get(Q){let q=super.get(Q);if(q!==void 0)super.delete(Q),super.set(Q,q);return q}set(Q,q){let $=super.get(Q);if($===void 0)this.#q+=Q.length;else if($!==null)this.#q-=$.length;if(q!==null)this.#q+=q.length;super.delete(Q);let X;while(this.#q>this.#Q&&(X=this.entries().next().value)){let[Y,U]=X;if(super.delete(Y),this.#q-=Y.length,U!==null)this.#q-=U.length}return super.set(Q,q),this}delete(Q){let q=super.get(Q);if(q===void 0)return!1;if(super.delete(Q),q!==null)this.#q-=q.length;return this.#q-=Q.length,!0}clear(){super.clear(),this.#q=0}}var qK=V5(pX(),1);function mX(Q){let q=Q.reduce((Y,U)=>Y+U.length,0),$=new Uint8Array(q),X=0;for(let Y of Q)$.set(Y,X),X+=Y.length;return $}var X3=V5(eJ(),1),$5=/^[0-9a-f]{64}$/,$K=N0({name:j0(),timestamp:O0()},void 0,!0),DM=N0({name:j0(),pageId:j0(),timestamp:O0()},void 0,!0),AM=N0(void 0,{authors:d0(j0()),title:j0(),publicationDate:j0(),publisher:j0()},!0),OM=N0({id:j0(),idx:N0({timestamp:j0(),value:j0()},void 0,!0)},{template:N0({timestamp:j0(),value:j0()},void 0,!0),redir:N0({timestamp:j0(),value:z2()},void 0,!0),scrollTime:N0({timestamp:j0(),value:SX()},void 0,!0),verticalScroll:N0({timestamp:j0(),value:O0()},void 0,!0),deleted:N0({timestamp:j0(),value:z2()},void 0,!0)},!0),RM=N0({lastOpened:N0({timestamp:j0(),value:j0()},void 0,!0),original:N0({timestamp:j0(),value:z2()},void 0,!0),pages:d0(OM),uuids:d0(N0({first:j0(),second:E6()},void 0,!0))},void 0,!0),xM=N0(void 0,{tags:d0($K)}),TM=N0({coverPageNumber:z2(),documentMetadata:AM,extraMetadata:S6(j0()),fileType:C2("epub","notebook","pdf"),fontName:j0(),lineHeight:z2(),orientation:C2("portrait","landscape"),pageCount:E6(),sizeInBytes:j0(),textAlignment:C2("","justify","left"),textScale:O0()},{cPages:RM,customZoomCenterX:O0(),customZoomCenterY:O0(),customZoomOrientation:C2("portrait","landscape"),customZoomPageHeight:O0(),customZoomPageWidth:O0(),customZoomScale:O0(),dummyDocument:M1(),formatVersion:v6(),keyboardMetadata:N0({count:E6(),timestamp:O0()},void 0,!0),lastOpenedPage:z2(),margins:E6(),originalPageCount:z2(),pages:g8(d0(j0())),pageTags:d0(DM),redirectionPageMap:d0(z2()),tags:d0($K),transform:N0({m11:O0(),m12:O0(),m13:O0(),m21:O0(),m22:O0(),m23:O0(),m31:O0(),m32:O0(),m33:O0()},void 0,!0),viewBackgroundFilter:C2("off","fullpage"),zoomMode:C2("bestFit","customFit","fitToHeight","fitToWidth")},!0),vM=N0({name:j0(),author:j0(),iconData:j0(),categories:d0(j0()),labels:d0(j0()),orientation:C2("portrait","landscape"),templateVersion:j0(),supportedScreens:d0(C2("rm2","rmPP")),constants:d0(S6(z2())),items:d0(RX())},{formatVersion:v6()}),EM=N0({lastModified:j0(),parent:j0(),pinned:M1(),type:C2("DocumentType","CollectionType","TemplateType"),visibleName:j0()},{lastOpened:j0(),lastOpenedPage:z2(),createdTime:j0(),deleted:M1(),metadatamodified:M1(),modified:M1(),synced:M1(),version:v6()},!0),SM=N0({hash:j0(),generation:O0()},void 0,!0),kM=N0({hash:j0(),generation:O0(),schemaVersion:v6()},void 0,!0),gM=N0({docID:j0(),hash:j0()},void 0,!0);async function oQ(Q){let q=await crypto.subtle.digest("SHA-256",Q);return new Uint8Array(q).toHex()}function QK(Q){let[q,$,X,Y,U]=Q.split(":");if(q===void 0||$===void 0||X===void 0||Y===void 0||U===void 0)throw Error(`line '${Q}' was not formatted correctly`);else if($==="80000000"||$==="0")return{hash:q,type:$==="0"?0:80000000,id:X,subfiles:parseInt(Y,10),size:parseInt(U,10)};else throw Error(`line '${Q}' was not formatted correctly`)}class nQ{#Q;#q;#$;#X;constructor(Q,q,$,X){this.#Q=Q,this.#X=q,this.#q=$,this.#$=X}async getRootHash(){let q=await(await this.#Q("GET",`${this.#q}/sync/v4/root`)).text(),$=JSON.parse(q);if(!kM.guardAssert($))throw Error("invalid root hash");let{hash:X,generation:Y,schemaVersion:U}=$;if(U!==3&&U!==4)throw Error(`schema version ${U} not supported`);else if(!Number.isSafeInteger(Y))throw Error(`generation ${Y} was not a safe integer; please file a bug report`);else return[X,Y,U]}async#Y(Q){if(!$5.test(Q))throw new I2(Q,$5,"hash was not a valid hash");let $=await(await this.#Q("GET",`${this.#q}/sync/v3/files/${Q}`)).arrayBuffer();return new Uint8Array($)}async getHash(Q){let q=this.#X.get(Q);if(q!=null)return new TextEncoder().encode(q);else{let $=await this.#Y(Q);if(this.#X.get(Q)===void 0)this.#X.set(Q,null);return $}}async getText(Q){let q=this.#X.get(Q);if(q!=null)return q;else{let $=await this.#Y(Q),Y=new TextDecoder().decode($);return this.#X.set(Q,Y),Y}}async getEntries(Q){let q=await this.getText(Q),[$,...X]=q.slice(0,-1).split(`
|
|
12
|
+
${X}`)}else return!0}}class AX extends S0{#Q;definitions;nullable=!0;constructor(Q){super();this.#Q=Q,this.definitions=Q.definitions}*pathErrors(Q){if(Q!==null)for(let[q,$]of this.#Q.pathErrors(Q))yield[q,`${$} or ${$2(Q)} is not null`]}fuzz(){return v6(0.1)?null:this.#Q.fuzz()}schema(){return{...this.#Q.schema(),nullable:!0}}}function E6(Q){return new AX(Q)}class EZ extends S0{#Q;#q;definitions;nullable;constructor(Q,q){super();this.#Q=Q,this.#q=q,this.definitions=Q.definitions,this.nullable=Q.nullable}*pathErrors(Q){yield*this.#Q.pathErrors(Q)}fuzz(){return this.#Q.fuzz()}schema(){return{...this.#Q.schema(),metadata:this.#q}}}class OX extends S0{*pathErrors(Q){if(Q===void 0)yield[[],"value is undefined"]}fuzz(){return k8([()=>null,v6,m4,()=>i1(V2()),()=>Array(V2()).fill(null).map(()=>this.fuzz()),()=>Object.fromEntries(Array(V2()).fill(null).map(()=>[i1(V2(3)),this.fuzz()]))])()}schema(){return{}}}function RX(){return new OX}class xX extends S0{*pathErrors(Q){if(typeof Q!=="boolean")yield[[],`${$2(Q)} is not a boolean`]}fuzz(){return v6()}schema(){return{type:"boolean"}}}function M1(){return new xX}class g8 extends S0{#Q;#q;#$;constructor(Q){super();this.#Q=Q,[this.#q,this.#$]=vZ[Q]}*pathErrors(Q){if(typeof Q!=="number")yield[[],`${$2(Q)} is not a number`];else if(Q%1!==0)yield[[],`${Q.toPrecision()} is not an integer`];else if(Q<this.#q)yield[[],`${Q.toFixed()} is less than ${this.#q.toFixed()}`];else if(Q>=this.#$)yield[[],`${Q.toFixed()} is greater than ${(this.#$-1).toFixed()}`]}fuzz(){return DX(this.#q,this.#$)}schema(){return{type:this.#Q}}}function y8(){return new g8("uint8")}function z2(){return new g8("int32")}function o1(){return new g8("uint32")}class TX extends S0{#Q;constructor(Q){super();this.#Q=Q}*pathErrors(Q){if(typeof Q!=="number")yield[[],`${$2(Q)} is not number, expected a float`]}fuzz(){return m4()}schema(){return{type:this.#Q}}}function O0(){return new TX("float64")}class vX extends S0{*pathErrors(Q){if(typeof Q!=="string")yield[[],`${$2(Q)} is not a string`]}fuzz(){return i1(V2(3))}schema(){return{type:"string"}}}function j0(){return new vX}class EX extends S0{*pathErrors(Q){if(typeof Q!=="string")yield[[],`${$2(Q)} is not a string`];else if(!OZ(Q))yield[[],`${Q} is not a valid timestamp`]}fuzz(){return new Date(Math.random()*3153600000000).toISOString()}schema(){return{type:"timestamp"}}}function SX(){return new EX}class kX extends S0{#Q;#q;constructor(Q,q){super();this.#Q=Q,this.#q=q}*pathErrors(Q){if(typeof Q!=="string")yield[[],`${$2(Q)} is not a string`];else if(!this.#q.has(Q))yield[[],`${Q} is not one of ${this.#Q.join(", ")}`]}fuzz(){return k8(this.#Q)}schema(){return{enum:[...this.#Q]}}}function C2(...Q){let q=new Set(Q);if(q.size!==Q.length)throw Error("enum can't contain duplicates");else return new kX(Q,q)}class gX extends S0{#Q;constructor(Q){super();this.#Q=Q}*pathErrors(Q){if(!Array.isArray(Q))yield[[],`${$2(Q)} is not an array`];else for(let[q,$]of Q.entries())for(let[X,Y]of this.#Q.pathErrors($))X.push(`[${q.toFixed()}]`),yield[X,Y]}fuzz(){return Array(V2()).fill(null).map(()=>this.#Q.fuzz())}schema(){return{elements:this.#Q.schema()}}}function d0(Q){if(Q.definitions)throw Error("definitions can only exist on a root schema");else return new gX(Q)}class yX extends S0{#Q;constructor(Q){super();this.#Q=Q}*pathErrors(Q){if(!S8(Q))yield[[],`${$2(Q)} is not a record`];else for(let[q,$]of Object.entries(Q))for(let[X,Y]of this.#Q.pathErrors($))X.push(l1(q)),yield[X,Y]}fuzz(){return Object.fromEntries(Array(V2()).fill(null).map(()=>[i1(V2(3)),this.#Q.fuzz()]))}schema(){return{values:this.#Q.schema()}}}function S6(Q){if(Q.definitions)throw Error("definitions can only exist on a root schema");else return new yX(Q)}class fX extends S0{#Q;#q;#$;keys;constructor(Q,q,$,X){super();this.#Q=Q,this.#q=q,this.#$=$,this.keys=X}*pathErrors(Q){if(!S8(Q))yield[[],`${$2(Q)} is not a record`];else{if(this.#Q)for(let[q,$]of this.#Q){let X=Q[q];if(X===void 0)yield[[],`required key '${q}' is missing`];else for(let[Y,U]of $.pathErrors(X))Y.push(l1(q)),yield[Y,U]}if(this.#q){for(let[q,$]of this.#q)if(Q[q]!==void 0)for(let[X,Y]of $.pathErrors(Q[q]))X.push(l1(q)),yield[X,Y]}if(!this.#$){for(let q of Object.keys(Q))if(!this.keys.has(q))yield[[l1(q)],`'${q}' is not a valid property and additional properties are not allowed`]}}}fuzz(){let Q=E8(this.#Q??[],([X,Y])=>[X,Y.fuzz()]),q=E8(NZ(this.#q??[],()=>v6()),([X,Y])=>[X,Y.fuzz()]),$=this.#$?E8(DZ(V2()),()=>[i1(V2(3)),k8([()=>null,v6,m4,()=>i1(V2()),()=>[],()=>({})])()]):[];return Object.fromEntries(NX(Q,q,$))}schema(){let Q={};if(this.#Q)Q.properties=Object.fromEntries(this.#Q.map(([q,$])=>[q,$.schema()]));if(this.#q)Q.optionalProperties=Object.fromEntries(this.#q.map(([q,$])=>[q,$.schema()]));if(this.#$)Q.additionalProperties=!0;return Q}}function SZ(Q,q,$){let X=new Set(E8(NX(Q??[],q??[]),([Y])=>Y));if(Q?.some(([,Y])=>Y.definitions))throw Error("definitions can only exist on a root schema");else if(q?.some(([,Y])=>Y.definitions))throw Error("definitions can only exist on a root schema");else if(X.size!==(Q?.length??0)+(q?.length??0))throw Error("properties and optionalProperties keys must be unique");else return new fX(Q,q,$??!1,X)}function N0(Q,q,$){return SZ(Q?Object.entries(Q):void 0,q?Object.entries(q):void 0,$)}class kZ extends S0{#Q;#q;#$;constructor(Q,q,$){super();this.#Q=Q,this.#q=q,this.#$=$}guard(Q){if(!S8(Q))return!1;let{[this.#Q]:q,...$}=Q;if(typeof q!=="string")return!1;return this.#q[q]?.guard($)??!1}*pathErrors(Q){if(!S8(Q))yield[[],`${$2(Q)} is not an object`];else{let{[this.#Q]:q,...$}=Q;if(q===void 0)yield[[],`discriminator key '${this.#Q}' is missing`];else if(typeof q!=="string")yield[[l1(this.#Q)],`${$2(q)} is not a string`];else{let X=this.#q[q];if(X===void 0)yield[[l1(this.#Q)],`'${q}' is not a valid discriminator value (${Object.keys(this.#q).join(", ")})`];else yield*X.pathErrors($)}}}fuzz(){let[Q,q]=k8(this.#$);return{...q.fuzz(),[this.#Q]:Q}}schema(){let Q=Object.fromEntries(this.#$.map(([q,$])=>[q,$.schema()]));return{discriminator:this.#Q,mapping:Q}}}class hX extends S0{#Q;#q;definitions=!0;constructor(Q,q){super();this.#Q=Q,this.#q=q}*pathErrors(Q){yield*this.#q.pathErrors(Q)}fuzz(){return this.#q.fuzz()}schema(){let Q=Object.fromEntries(Object.entries(this.#Q).map(([q,$])=>[q,$.schema()]));return{...this.#q.schema(),definitions:Q}}}class _X extends S0{#Q;#q;constructor(Q,q){super();this.#Q=Q,this.#q=q}*pathErrors(Q){yield*this.#q.pathErrors(Q)}fuzz(){return this.#q.fuzz()}schema(){return{ref:this.#Q}}}class bX{#Q;#q;constructor(Q,q){this.#Q=Q,this.#q=q}def(Q,q){let $=q(this.#q);return new bX({...this.#Q,[Q]:$},{...this.#q,[Q]:new _X(Q,$)})}build(Q){return new hX(this.#Q,Q(this.#q))}}class gZ extends S0{#Q;#q;constructor(Q,q){super();this.#q=Q,this.#Q=q}#$(){let Q=this.#q[this.#Q];if(Q===void 0)throw Error(`ref ${this.#Q} was not in definitions after ref builder was finished`);else return Q}*pathErrors(Q){yield*this.#$().pathErrors(Q)}fuzz(){return this.#$().fuzz()}schema(){return{ref:this.#Q}}}var k0=[];for(let Q=0;Q<256;++Q)k0.push((Q+256).toString(16).slice(1));function uX(Q,q=0){return(k0[Q[q+0]]+k0[Q[q+1]]+k0[Q[q+2]]+k0[Q[q+3]]+"-"+k0[Q[q+4]]+k0[Q[q+5]]+"-"+k0[Q[q+6]]+k0[Q[q+7]]+"-"+k0[Q[q+8]]+k0[Q[q+9]]+"-"+k0[Q[q+10]]+k0[Q[q+11]]+k0[Q[q+12]]+k0[Q[q+13]]+k0[Q[q+14]]+k0[Q[q+15]]).toLowerCase()}var d4,yZ=new Uint8Array(16);function l4(){if(!d4){if(typeof crypto>"u"||!crypto.getRandomValues)throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");d4=crypto.getRandomValues.bind(crypto)}return d4(yZ)}var fZ=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),i4={randomUUID:fZ};function hZ(Q,q,$){Q=Q||{};let X=Q.random??Q.rng?.()??l4();if(X.length<16)throw Error("Random bytes length must be >= 16");if(X[6]=X[6]&15|64,X[8]=X[8]&63|128,q){if($=$||0,$<0||$+16>q.length)throw RangeError(`UUID byte range ${$}:${$+15} is out of buffer bounds`);for(let Y=0;Y<16;++Y)q[$+Y]=X[Y];return q}return uX(X)}function _Z(Q,q,$){if(i4.randomUUID&&!q&&!Q)return i4.randomUUID();return hZ(Q,q,$)}var n1=_Z;class I2 extends Error{field;regex;constructor(Q,q,$){super($);this.field=Q,this.regex=q}}class k6 extends Error{hash;constructor(Q){super(`'${Q}' not found in the root hash`);this.hash=Q}}class o4 extends Map{#Q;#q=0;constructor(Q,q=[]){super();this.#Q=Q;for(let[$,X]of q)this.set($,X)}get(Q){let q=super.get(Q);if(q!==void 0)super.delete(Q),super.set(Q,q);return q}set(Q,q){let $=super.get(Q);if($===void 0)this.#q+=Q.length;else if($!==null)this.#q-=$.length;if(q!==null)this.#q+=q.length;super.delete(Q);let X;while(this.#q>this.#Q&&(X=this.entries().next().value)){let[Y,U]=X;if(super.delete(Y),this.#q-=Y.length,U!==null)this.#q-=U.length}return super.set(Q,q),this}delete(Q){let q=super.get(Q);if(q===void 0)return!1;if(super.delete(Q),q!==null)this.#q-=q.length;return this.#q-=Q.length,!0}clear(){super.clear(),this.#q=0}}var qK=V5(pX(),1);function mX(Q){let q=Q.reduce((Y,U)=>Y+U.length,0),$=new Uint8Array(q),X=0;for(let Y of Q)$.set(Y,X),X+=Y.length;return $}var X3=V5(eJ(),1),$5=/^[0-9a-f]{64}$/,$K=N0({name:j0(),timestamp:O0()},void 0,!0),DM=N0({name:j0(),pageId:j0(),timestamp:O0()},void 0,!0),AM=N0(void 0,{authors:d0(j0()),title:j0(),publicationDate:j0(),publisher:j0()},!0),OM=N0({id:j0(),idx:N0({timestamp:j0(),value:j0()},void 0,!0)},{template:N0({timestamp:j0(),value:j0()},void 0,!0),redir:N0({timestamp:j0(),value:z2()},void 0,!0),scrollTime:N0({timestamp:j0(),value:SX()},void 0,!0),verticalScroll:N0({timestamp:j0(),value:O0()},void 0,!0),deleted:N0({timestamp:j0(),value:z2()},void 0,!0)},!0),RM=N0({lastOpened:N0({timestamp:j0(),value:j0()},void 0,!0),original:N0({timestamp:j0(),value:z2()},void 0,!0),pages:d0(OM),uuids:E6(d0(N0({first:j0(),second:o1()},void 0,!0)))},void 0,!0),xM=N0(void 0,{tags:d0($K)}),TM=N0({coverPageNumber:z2(),documentMetadata:AM,extraMetadata:S6(j0()),fileType:C2("epub","notebook","pdf"),fontName:j0(),lineHeight:z2(),orientation:C2("portrait","landscape"),pageCount:o1(),sizeInBytes:j0(),textAlignment:C2("","justify","left"),textScale:O0()},{cPages:RM,customZoomCenterX:O0(),customZoomCenterY:O0(),customZoomOrientation:C2("portrait","landscape"),customZoomPageHeight:O0(),customZoomPageWidth:O0(),customZoomScale:O0(),dummyDocument:M1(),formatVersion:y8(),keyboardMetadata:N0({count:o1(),timestamp:O0()},void 0,!0),lastOpenedPage:z2(),margins:o1(),originalPageCount:z2(),pages:E6(d0(j0())),pageTags:d0(DM),redirectionPageMap:d0(z2()),tags:d0($K),transform:N0({m11:O0(),m12:O0(),m13:O0(),m21:O0(),m22:O0(),m23:O0(),m31:O0(),m32:O0(),m33:O0()},void 0,!0),viewBackgroundFilter:C2("off","fullpage"),zoomMode:C2("bestFit","customFit","fitToHeight","fitToWidth")},!0),vM=N0({name:j0(),author:j0(),iconData:j0(),categories:d0(j0()),labels:d0(j0()),orientation:C2("portrait","landscape"),templateVersion:j0(),supportedScreens:d0(C2("rm2","rmPP")),constants:d0(S6(z2())),items:d0(RX())},{formatVersion:y8()}),EM=N0({lastModified:j0(),parent:j0(),pinned:M1(),type:C2("DocumentType","CollectionType","TemplateType"),visibleName:j0()},{lastOpened:j0(),lastOpenedPage:z2(),createdTime:j0(),deleted:M1(),metadatamodified:M1(),modified:M1(),synced:M1(),version:o1()},!0),SM=N0({hash:j0(),generation:O0()},void 0,!0),kM=N0({hash:j0(),generation:O0(),schemaVersion:y8()},void 0,!0),gM=N0({docID:j0(),hash:j0()},void 0,!0);async function oQ(Q){let q=await crypto.subtle.digest("SHA-256",Q);return new Uint8Array(q).toHex()}function QK(Q){let[q,$,X,Y,U]=Q.split(":");if(q===void 0||$===void 0||X===void 0||Y===void 0||U===void 0)throw Error(`line '${Q}' was not formatted correctly`);else if($==="80000000"||$==="0")return{hash:q,type:$==="0"?0:80000000,id:X,subfiles:parseInt(Y,10),size:parseInt(U,10)};else throw Error(`line '${Q}' was not formatted correctly`)}class nQ{#Q;#q;#$;#X;constructor(Q,q,$,X){this.#Q=Q,this.#X=q,this.#q=$,this.#$=X}async getRootHash(){let q=await(await this.#Q("GET",`${this.#q}/sync/v4/root`)).text(),$=JSON.parse(q);if(!kM.guardAssert($))throw Error("invalid root hash");let{hash:X,generation:Y,schemaVersion:U}=$;if(U!==3&&U!==4)throw Error(`schema version ${U} not supported`);else if(!Number.isSafeInteger(Y))throw Error(`generation ${Y} was not a safe integer; please file a bug report`);else return[X,Y,U]}async#Y(Q){if(!$5.test(Q))throw new I2(Q,$5,"hash was not a valid hash");let $=await(await this.#Q("GET",`${this.#q}/sync/v3/files/${Q}`)).arrayBuffer();return new Uint8Array($)}async getHash(Q){let q=this.#X.get(Q);if(q!=null)return new TextEncoder().encode(q);else{let $=await this.#Y(Q);if(this.#X.get(Q)===void 0)this.#X.set(Q,null);return $}}async getText(Q){let q=this.#X.get(Q);if(q!=null)return q;else{let $=await this.#Y(Q),Y=new TextDecoder().decode($);return this.#X.set(Q,Y),Y}}async getEntries(Q){let q=await this.getText(Q),[$,...X]=q.slice(0,-1).split(`
|
|
13
13
|
`);if($==="3")return{entries:X.map(QK)};else if($==="4"){let[Y,...U]=X;if(!Y)throw Error("missing info line for schema version 4");let[J,K,G,V]=Y.split(":");if(J!=="0"||K===void 0||G===void 0||V===void 0)throw Error(`schema 4 info line '${Y}' was not formatted correctly`);let z=U.map(QK);if(parseInt(G,10)!==z.length)throw Error(`schema 4 expected ${G} entries, but found ${z.length}`);else return{entries:z,id:K,size:parseInt(V,10)}}else throw Error(`schema version ${$} not supported`)}async getContent(Q){let q=await this.getText(Q),$=JSON.parse(q),X=[];for(let[U,J]of[["collection",xM],["template",vM],["document",TM]])try{if(J.guardAssert($))return $}catch(K){let G=K instanceof Error?K.message:"unknown error type";X.push(`Couldn't validate as ${U} because:
|
|
14
14
|
${G}`)}let Y=X.join(`
|
|
15
15
|
|
|
@@ -18,6 +18,6 @@ or
|
|
|
18
18
|
`);throw Error(`invalid content: ${Y}`)}async getMetadata(Q){let q=await this.getText(Q),$=JSON.parse(q);if(!EM.guardAssert($))throw Error("invalid metadata");return $}async putRootHash(Q,q,$=!0){if(!Number.isSafeInteger(q))throw Error(`generation ${q} was not a safe integer`);else if(!$5.test(Q))throw new I2(Q,$5,"rootHash was not a valid hash");let X=JSON.stringify({hash:Q,generation:q,broadcast:$}),U=await(await this.#Q("PUT",`${this.#q}/sync/v3/root`,{body:X})).text(),J=JSON.parse(U);if(!SM.guardAssert(J))throw Error("invalid root hash");let{hash:K,generation:G}=J;if(Number.isSafeInteger(G))return[K,G];else throw Error(`new generation ${G} was not a safe integer; please file a bug report`)}async#U(Q,q,$){if(!this.#X.has(Q)){let X=qK.default.buf($,0),Y=new ArrayBuffer(4);new DataView(Y).setInt32(0,X,!1);let U=new Uint8Array(Y).toBase64();if(await this.#Q("PUT",`${this.#q}/sync/v3/files/${Q}`,{body:$,headers:{"rm-filename":q,"x-goog-hash":`crc32c=${U}`}}),this.#X.get(Q)===void 0)this.#X.set(Q,null)}}async putFile(Q,q){let $=await oQ(q);return[{id:Q,hash:$,type:0,subfiles:0,size:q.length},this.#U($,Q,q)]}async putText(Q,q){let X=new TextEncoder().encode(q),[Y,U]=await this.putFile(Q,X);return[Y,U.then(()=>{this.#X.set(Y.hash,q)})]}async putContent(Q,q){if(!Q.endsWith(".content"))throw Error(`id ${Q} did not end with '.content'`);else return await this.putText(Q,JSON.stringify(q))}async putMetadata(Q,q){if(!Q.endsWith(".metadata"))throw Error(`id ${Q} did not end with '.metadata'`);else return await this.putText(Q,JSON.stringify(q))}async putEntries(Q,q,$){q.sort((V,z)=>V.id.localeCompare(z.id));let X=q.reduce((V,z)=>V+z.size,0),Y=[`${$}
|
|
19
19
|
`];if($===4){let V=Q==="root"?".":Q;Y.push(`0:${V}:${q.length}:${X}
|
|
20
20
|
`)}for(let{hash:V,type:z,id:w,subfiles:F,size:Z}of q)Y.push(`${V}:${z}:${w}:${F}:${Z}
|
|
21
|
-
`);let J=new TextEncoder().encode(Y.join("")),K;if($===3){let V=[];for(let{hash:z}of q)V.push(Uint8Array.fromHex(z));K=await oQ(mX(V))}else if($===4)K=await oQ(J);else throw Error(`unsupported schema version ${$}`);return[{id:Q,hash:K,type:$>3?0:80000000,subfiles:q.length,size:X},this.#U(K,`${Q}.docSchema`,J)]}async uploadFile(Q,q,$){let Y=new TextEncoder().encode(JSON.stringify({file_name:Q})).toBase64(),J=await(await this.#Q("POST",`${this.#$}/doc/v2/files`,{body:q,headers:{"Content-Type":$,"rm-meta":Y,"rm-source":"RoR-Browser"}})).json();if(!gM.guardAssert(J))throw Error("invalid upload response");let{docID:K,hash:G}=J;return{id:K,hash:G}}dumpCache(){return JSON.stringify(Object.fromEntries(this.#X))}clearCache(){this.#X.clear()}}var YK="https://webapp-prod.cloud.remarkable.engineering",yM="https://eu.tectonic.remarkable.com",fM="https://internal.cloud.remarkable.com",t2=/^([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}||trash)$/;class rQ extends Error{constructor(){super("root generation was stale; try put again")}}class aQ extends Error{status;statusText;constructor(Q,q,$){super($);this.status=Q,this.statusText=q}}async function G3(Q,{deviceDesc:q="browser-chrome",uuid:$=
|
|
22
|
-
`)throw new rQ;else throw new aQ(Y.status,Y.statusText,`failed reMarkable request: ${U}`)}else return Y}async#G({hash:Q,id:q}){let{entries:$}=await this.raw.getEntries(Q),X=$.find((Z)=>Z.id.endsWith(".metadata")),Y=$.find((Z)=>Z.id.endsWith(".content"));if(X===void 0)throw Error(`couldn't find metadata for hash ${Q}`);let[{visibleName:U,lastModified:J,pinned:K,parent:G,lastOpened:V,new:z,source:w},F]=await Promise.all([this.raw.getMetadata(X.hash),Y===void 0?Promise.resolve({fileType:void 0,tags:void 0}):this.raw.getContent(Y.hash)]);if("templateVersion"in F)return{id:q,hash:Q,visibleName:U,lastModified:J,new:z,pinned:K,source:w,parent:G,type:"TemplateType"};else if(F.fileType===void 0)return{id:q,hash:Q,visibleName:U,lastModified:J,pinned:K,parent:G,tags:F.tags,type:"CollectionType"};else return{id:q,hash:Q,visibleName:U,lastModified:J,pinned:K,parent:G,tags:F.tags,lastOpened:V??"",fileType:F.fileType,type:"DocumentType"}}async listItems(Q=!1){let q=await this.listIds(Q);return await Promise.all(q.map(($)=>this.#G($)))}async listIds(Q=!1){let[q]=await this.#X(Q),{entries:$}=await this.raw.getEntries(q);return $.map(({id:X,hash:Y})=>({id:X,hash:Y}))}async getContent(Q){let{entries:q}=await this.raw.getEntries(Q),[$]=q.filter((X)=>X.id.endsWith(".content"));if($===void 0)throw Error(`couldn't find contents for hash ${Q}`);else return await this.raw.getContent($.hash)}async getMetadata(Q){let{entries:q}=await this.raw.getEntries(Q),[$]=q.filter((X)=>X.id.endsWith(".metadata"));if($===void 0)throw Error(`couldn't find metadata for hash ${Q}`);else return await this.raw.getMetadata($.hash)}async getPdf(Q){let{entries:q}=await this.raw.getEntries(Q),[$]=q.filter((X)=>X.id.endsWith(".pdf"));if($===void 0)throw Error(`couldn't find pdf for hash ${Q}`);else return await this.raw.getHash($.hash)}async getEpub(Q){let{entries:q}=await this.raw.getEntries(Q),[$]=q.filter((X)=>X.id.endsWith(".epub"));if($===void 0)throw Error(`couldn't find epub for hash ${Q}`);else return await this.raw.getHash($.hash)}async getDocument(Q){let{entries:q}=await this.raw.getEntries(Q),$=new XK.default;for(let X of q)$.file(X.id,this.raw.getHash(X.hash));return $.generateAsync({type:"uint8array"})}async#V(Q,q,$,{refresh:X,parent:Y="",pinned:U=!1,zoomMode:J="bestFit",viewBackgroundFilter:K,textScale:G=1,textAlignment:V="justify",fontName:z="",coverPageNumber:w=-1,authors:F,title:Z,publicationDate:h,publisher:g,extraMetadata:C={},lineHeight:N=-1,margins:W=125,orientation:H="portrait",tags:M}){if(Y&&!t2.test(Y))throw new I2(Y,t2,"parent must be a valid document id");let I=
|
|
23
|
-
`),this.raw.putFile(`${I}.${q}`,$),this.#X(X)]),[[c,K0],{entries:P}]=await Promise.all([this.raw.putEntries(I,[R,D,S,v],B0),this.raw.getEntries(Q0)]);P.push(c);let[l,$0]=await this.raw.putEntries("root",P,B0);return await Promise.all([x,L,y,a,K0,$0]),await this.#Y(l.hash,Y0),{id:I,hash:c.hash}}async putPdf(Q,q,$={}){return await this.#V(Q,"pdf",q,$)}async putEpub(Q,q,$={}){return await this.#V(Q,"epub",q,$)}async putFolder(Q,{parent:q=""}={},$=!1){if(q&&!t2.test(q))throw new I2(q,t2,"parent must be a valid document id");let X=
|
|
21
|
+
`);let J=new TextEncoder().encode(Y.join("")),K;if($===3){let V=[];for(let{hash:z}of q)V.push(Uint8Array.fromHex(z));K=await oQ(mX(V))}else if($===4)K=await oQ(J);else throw Error(`unsupported schema version ${$}`);return[{id:Q,hash:K,type:$>3?0:80000000,subfiles:q.length,size:X},this.#U(K,`${Q}.docSchema`,J)]}async uploadFile(Q,q,$){let Y=new TextEncoder().encode(JSON.stringify({file_name:Q})).toBase64(),J=await(await this.#Q("POST",`${this.#$}/doc/v2/files`,{body:q,headers:{"Content-Type":$,"rm-meta":Y,"rm-source":"RoR-Browser"}})).json();if(!gM.guardAssert(J))throw Error("invalid upload response");let{docID:K,hash:G}=J;return{id:K,hash:G}}dumpCache(){return JSON.stringify(Object.fromEntries(this.#X))}clearCache(){this.#X.clear()}}var YK="https://webapp-prod.cloud.remarkable.engineering",yM="https://eu.tectonic.remarkable.com",fM="https://internal.cloud.remarkable.com",t2=/^([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}||trash)$/;class rQ extends Error{constructor(){super("root generation was stale; try put again")}}class aQ extends Error{status;statusText;constructor(Q,q,$){super($);this.status=Q,this.statusText=q}}async function G3(Q,{deviceDesc:q="browser-chrome",uuid:$=n1(),authHost:X=YK}={}){if(Q.length!==8)throw Error(`code should be length 8, but was ${Q.length}`);let Y=await fetch(`${X}/token/json/2/device/new`,{method:"POST",headers:{Authorization:"Bearer"},body:JSON.stringify({code:Q,deviceDesc:q,deviceID:$})});if(!Y.ok)throw new aQ(Y.status,Y.statusText,"couldn't register api");else return await Y.text()}class UK{#Q;#q;raw;#$;constructor(Q,q,$,X){this.#Q=Q,this.#q=X,this.raw=new nQ((Y,U,{body:J,headers:K}={})=>this.#U(U,{method:Y,body:J,headers:K}),X,q,$)}async#X(Q=!1){if(Q||this.#$===void 0)this.#$=await this.raw.getRootHash();return this.#$}async#Y(Q,q){try{let[$,X]=await this.raw.putRootHash(Q,q),[,,Y]=this.#$;this.#$=[$,X,Y]}catch($){if($ instanceof rQ)this.#$=void 0;throw $}}async#U(Q,{body:q,method:$="POST",headers:X={}}){let Y=await fetch(Q,{method:$,headers:{Authorization:`Bearer ${this.#Q}`,...X},body:q});if(!Y.ok){let U=await Y.text();if(U===`{"message":"precondition failed"}
|
|
22
|
+
`)throw new rQ;else throw new aQ(Y.status,Y.statusText,`failed reMarkable request: ${U}`)}else return Y}async#G({hash:Q,id:q}){let{entries:$}=await this.raw.getEntries(Q),X=$.find((Z)=>Z.id.endsWith(".metadata")),Y=$.find((Z)=>Z.id.endsWith(".content"));if(X===void 0)throw Error(`couldn't find metadata for hash ${Q}`);let[{visibleName:U,lastModified:J,pinned:K,parent:G,lastOpened:V,new:z,source:w},F]=await Promise.all([this.raw.getMetadata(X.hash),Y===void 0?Promise.resolve({fileType:void 0,tags:void 0}):this.raw.getContent(Y.hash)]);if("templateVersion"in F)return{id:q,hash:Q,visibleName:U,lastModified:J,new:z,pinned:K,source:w,parent:G,type:"TemplateType"};else if(F.fileType===void 0)return{id:q,hash:Q,visibleName:U,lastModified:J,pinned:K,parent:G,tags:F.tags,type:"CollectionType"};else return{id:q,hash:Q,visibleName:U,lastModified:J,pinned:K,parent:G,tags:F.tags,lastOpened:V??"",fileType:F.fileType,type:"DocumentType"}}async listItems(Q=!1){let q=await this.listIds(Q);return await Promise.all(q.map(($)=>this.#G($)))}async listIds(Q=!1){let[q]=await this.#X(Q),{entries:$}=await this.raw.getEntries(q);return $.map(({id:X,hash:Y})=>({id:X,hash:Y}))}async getContent(Q){let{entries:q}=await this.raw.getEntries(Q),[$]=q.filter((X)=>X.id.endsWith(".content"));if($===void 0)throw Error(`couldn't find contents for hash ${Q}`);else return await this.raw.getContent($.hash)}async getMetadata(Q){let{entries:q}=await this.raw.getEntries(Q),[$]=q.filter((X)=>X.id.endsWith(".metadata"));if($===void 0)throw Error(`couldn't find metadata for hash ${Q}`);else return await this.raw.getMetadata($.hash)}async getPdf(Q){let{entries:q}=await this.raw.getEntries(Q),[$]=q.filter((X)=>X.id.endsWith(".pdf"));if($===void 0)throw Error(`couldn't find pdf for hash ${Q}`);else return await this.raw.getHash($.hash)}async getEpub(Q){let{entries:q}=await this.raw.getEntries(Q),[$]=q.filter((X)=>X.id.endsWith(".epub"));if($===void 0)throw Error(`couldn't find epub for hash ${Q}`);else return await this.raw.getHash($.hash)}async getDocument(Q){let{entries:q}=await this.raw.getEntries(Q),$=new XK.default;for(let X of q)$.file(X.id,this.raw.getHash(X.hash));return $.generateAsync({type:"uint8array"})}async#V(Q,q,$,{refresh:X,parent:Y="",pinned:U=!1,zoomMode:J="bestFit",viewBackgroundFilter:K,textScale:G=1,textAlignment:V="justify",fontName:z="",coverPageNumber:w=-1,authors:F,title:Z,publicationDate:h,publisher:g,extraMetadata:C={},lineHeight:N=-1,margins:W=125,orientation:H="portrait",tags:M}){if(Y&&!t2.test(Y))throw new I2(Y,t2,"parent must be a valid document id");let I=n1(),f=new Date,E={parent:Y,pinned:U,lastModified:(+f).toFixed(),createdTime:(+f).toFixed(),type:"DocumentType",visibleName:Q,lastOpened:"0",lastOpenedPage:0},d={coverPageNumber:w,documentMetadata:{authors:F,title:Z,publicationDate:h,publisher:g},extraMetadata:C,lineHeight:N,margins:W,orientation:H,fileType:q,formatVersion:1,tags:M?.map((u)=>({name:u,timestamp:+f}))??[],fontName:z,textAlignment:V,textScale:G,zoomMode:J,viewBackgroundFilter:K,originalPageCount:1,pageCount:1,pageTags:[],pages:[n1()],redirectionPageMap:[0],sizeInBytes:$.length.toFixed()},[[R,x],[D,L],[S,y],[v,a],[Q0,Y0,B0]]=await Promise.all([this.raw.putContent(`${I}.content`,d),this.raw.putMetadata(`${I}.metadata`,E),this.raw.putText(`${I}.pagedata`,`
|
|
23
|
+
`),this.raw.putFile(`${I}.${q}`,$),this.#X(X)]),[[c,K0],{entries:P}]=await Promise.all([this.raw.putEntries(I,[R,D,S,v],B0),this.raw.getEntries(Q0)]);P.push(c);let[l,$0]=await this.raw.putEntries("root",P,B0);return await Promise.all([x,L,y,a,K0,$0]),await this.#Y(l.hash,Y0),{id:I,hash:c.hash}}async putPdf(Q,q,$={}){return await this.#V(Q,"pdf",q,$)}async putEpub(Q,q,$={}){return await this.#V(Q,"epub",q,$)}async putFolder(Q,{parent:q=""}={},$=!1){if(q&&!t2.test(q))throw new I2(q,t2,"parent must be a valid document id");let X=n1(),Y=new Date,U={tags:[]},J={lastModified:(+Y).toFixed(),createdTime:(+Y).toFixed(),parent:q,pinned:!1,type:"CollectionType",visibleName:Q},[[K,G],[V,z],[w,F,Z]]=await Promise.all([this.raw.putContent(`${X}.content`,U),this.raw.putMetadata(`${X}.metadata`,J),this.#X($)]),[[h,g],{entries:C}]=await Promise.all([this.raw.putEntries(X,[K,V],Z),this.raw.getEntries(w)]);C.push(h);let[N,W]=await this.raw.putEntries("root",C,Z);return await Promise.all([G,z,g,W]),await this.#Y(N.hash,F),{id:X,hash:h.hash}}async uploadEpub(Q,q){return await this.raw.uploadFile(Q,q,"application/epub+zip")}async uploadPdf(Q,q){return await this.raw.uploadFile(Q,q,"application/pdf")}async uploadFolder(Q){return await this.raw.uploadFile(Q,new Uint8Array(0),"folder")}async#W(Q,q,$,X){let{entries:Y}=await this.raw.getEntries(q),U=Y.findIndex((Z)=>Z.id.endsWith(".content")),J=Y[U];if(J===void 0)throw Error("internal error: couldn't find content in entry hash");let K=await this.raw.getContent(J.hash);Object.assign(K,$);let[G,V]=await this.raw.putContent(J.id,K);Y[U]=G;let[z,w]=await this.raw.putEntries(Q,Y,X),F=Promise.all([V,w]);return[z,F]}async#J(Q,q,$,X){let[Y,U,J]=await this.#X(X),{entries:K}=await this.raw.getEntries(Y),G=K.findIndex((g)=>g.hash===Q),V=K[G];if(V===void 0)throw new k6(Q);let[[z,w],F]=await Promise.all([this.#W(V.id,Q,q,J),this.getMetadata(Q)]);if(F.type!==$)throw Error(`expected type ${$} but got ${F.type} for hash ${Q}`);K[G]=z;let[Z,h]=await this.raw.putEntries("root",K,J);return await Promise.all([w,h]),await this.#Y(Z.hash,U),{hash:z.hash}}async updateDocument(Q,q,$=!1){return await this.#J(Q,q,"DocumentType",$)}async updateCollection(Q,q,$=!1){return await this.#J(Q,q,"CollectionType",$)}async updateTemplate(Q,q,$=!1){return await this.#J(Q,q,"TemplateType",$)}async#z(Q,q,$,X){let{entries:Y}=await this.raw.getEntries(q),U=Y.findIndex((Z)=>Z.id.endsWith(".metadata")),J=Y[U];if(J===void 0)throw Error("internal error: couldn't find metadata in entry hash");let K=await this.raw.getMetadata(J.hash);Object.assign(K,$);let[G,V]=await this.raw.putMetadata(J.id,K);Y[U]=G;let[z,w]=await this.raw.putEntries(Q,Y,X),F=Promise.all([V,w]);return[z,F]}async#K(Q,q,$=!1){let[X,Y,U]=await this.#X($),{entries:J}=await this.raw.getEntries(X),K=J.findIndex((Z)=>Z.hash===Q),G=J[K];if(G===void 0)throw new k6(Q);let[V,z]=await this.#z(G.id,Q,q,U);J[K]=V;let[w,F]=await this.raw.putEntries("root",J,U);return await Promise.all([z,F]),await this.#Y(w.hash,Y),{hash:V.hash}}async move(Q,q,$=!1){if(!t2.test(q))throw new I2(q,t2,"parent must be a valid document id");return await this.#K(Q,{parent:q},$)}async delete(Q,q=!1){return await this.move(Q,"trash",q)}async rename(Q,q,$=!1){return await this.#K(Q,{visibleName:q},$)}async stared(Q,q,$=!1){return await this.#K(Q,{pinned:q},$)}async bulkMove(Q,q,$=!1){if(!t2.test(q))throw new I2(q,t2,"parent must be a valid document id");let[X,Y,U]=await this.#X($),{entries:J}=await this.raw.getEntries(X),K=new Set(Q),G=[],V=[];for(let g of J)(K.has(g.hash)?G:V).push(g);let z=await Promise.all(G.map(({id:g,hash:C})=>this.#z(g,C,{parent:q},U))),w=[],F={};for(let[g,[C,N]]of z.entries())V.push(C),w.push(N),F[G[g].hash]=C.hash;let[Z,h]=await this.raw.putEntries("root",V,U);return await Promise.all([Promise.all(w),h]),await this.#Y(Z.hash,Y),{hashes:F}}async bulkDelete(Q,q=!1){return await this.bulkMove(Q,"trash",q)}dumpCache(){return this.raw.dumpCache()}async pruneCache(Q){let[q]=await this.#X(Q),$=new Set(this.#q.keys()),Y=[(await this.raw.getEntries(q)).entries],U=[];while(Y.length){for(let K of Y)for(let{hash:G,type:V}of K)if($.add(G),V===80000000)U.push(this.raw.getEntries(G));Y=(await Promise.all(U)).map((K)=>K.entries),U=[]}for(let J of $)this.#q.delete(J)}clearCache(){this.raw.clearCache()}}var hM=S6(E6(j0()));async function _M(Q,{authHost:q=YK}={}){let $=await fetch(`${q}/token/json/2/user/new`,{method:"POST",headers:{Authorization:`Bearer ${Q}`}});if(!$.ok)throw Error(`couldn't fetch auth token: ${$.statusText}`);return await $.text()}function bM(Q,{rawHost:q=yM,uploadHost:$=fM,cache:X,maxCacheSize:Y=1/0}={}){let U=JSON.parse(X??"{}");if(hM.guard(U)){let J=Object.entries(U),K=Y===1/0?new Map(J):new o4(Y,J);return new UK(Q,q,$,K)}throw Error("cache was not a valid cache (json string mapping); your cache must be corrupted somehow. Either initialize remarkable without a cache, or fix its format.")}async function W3(Q,q={}){let{authHost:$,rawHost:X,uploadHost:Y,cache:U,maxCacheSize:J,syncHost:K}=q??{},G=await _M(Q,{authHost:$});return bM(G,{rawHost:X,uploadHost:Y,cache:U,maxCacheSize:J,syncHost:K})}export{bM as session,W3 as remarkable,G3 as register,_M as auth,I2 as ValidationError,aQ as ResponseError,k6 as HashNotFoundError,rQ as GenerationError};
|