rmapi-js 8.5.0 → 9.0.1

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.
@@ -1,21 +1,23 @@
1
- var NU=Object.create;var{getPrototypeOf:DU,defineProperty:_1,getOwnPropertyNames:A4,getOwnPropertyDescriptor:AU}=Object,x4=Object.prototype.hasOwnProperty;var R4=(Q,$,U)=>{U=Q!=null?NU(DU(Q)):{};let X=$||!Q||!Q.__esModule?_1(U,"default",{value:Q,enumerable:!0}):U;for(let q of A4(Q))if(!x4.call(X,q))_1(X,q,{get:()=>Q[q],enumerable:!0});return X},D4=new WeakMap,o0=(Q)=>{var $=D4.get(Q),U;if($)return $;if($=_1({},"__esModule",{value:!0}),Q&&typeof Q==="object"||typeof Q==="function")A4(Q).map((X)=>!x4.call($,X)&&_1($,X,{get:()=>Q[X],enumerable:!(U=AU(Q,X))||U.enumerable}));return D4.set(Q,$),$},J0=(Q,$)=>()=>($||Q(($={exports:{}}).exports,$),$.exports);var T4=(Q,$)=>{for(var U in $)_1(Q,U,{get:$[U],enumerable:!0,configurable:!0,set:(X)=>$[U]=()=>X})};var E4=(Q,$)=>()=>(Q&&($=Q(Q=0)),$);var L2={};T4(L2,{transcode:()=>wX,resolveObjectURL:()=>JX,kStringMaxLength:()=>b4,kMaxLength:()=>b1,isUtf8:()=>BX,isAscii:()=>GX,default:()=>WX,constants:()=>fU,btoa:()=>kU,atob:()=>gU,INSPECT_MAX_BYTES:()=>_4,File:()=>vU,Buffer:()=>h,Blob:()=>yU});function xU(Q){var $=Q.length;if($%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var U=Q.indexOf("=");if(U===-1)U=$;var X=U===$?0:4-U%4;return[U,X]}function RU(Q,$){return(Q+$)*3/4-$}function TU(Q){var $,U=xU(Q),X=U[0],q=U[1],V=new Uint8Array(RU(X,q)),Y=0,K=q>0?X-4:X,G;for(G=0;G<K;G+=4)$=r0[Q.charCodeAt(G)]<<18|r0[Q.charCodeAt(G+1)]<<12|r0[Q.charCodeAt(G+2)]<<6|r0[Q.charCodeAt(G+3)],V[Y++]=$>>16&255,V[Y++]=$>>8&255,V[Y++]=$&255;if(q===2)$=r0[Q.charCodeAt(G)]<<2|r0[Q.charCodeAt(G+1)]>>4,V[Y++]=$&255;if(q===1)$=r0[Q.charCodeAt(G)]<<10|r0[Q.charCodeAt(G+1)]<<4|r0[Q.charCodeAt(G+2)]>>2,V[Y++]=$>>8&255,V[Y++]=$&255;return V}function EU(Q){return K2[Q>>18&63]+K2[Q>>12&63]+K2[Q>>6&63]+K2[Q&63]}function SU(Q,$,U){var X,q=[];for(var V=$;V<U;V+=3)X=(Q[V]<<16&16711680)+(Q[V+1]<<8&65280)+(Q[V+2]&255),q.push(EU(X));return q.join("")}function k4(Q){var $,U=Q.length,X=U%3,q=[],V=16383;for(var Y=0,K=U-X;Y<K;Y+=V)q.push(SU(Q,Y,Y+V>K?K:Y+V));if(X===1)$=Q[U-1],q.push(K2[$>>2]+K2[$<<4&63]+"==");else if(X===2)$=(Q[U-2]<<8)+Q[U-1],q.push(K2[$>>10]+K2[$>>4&63]+K2[$<<2&63]+"=");return q.join("")}function L6(Q,$,U,X,q){var V,Y,K=q*8-X-1,G=(1<<K)-1,J=G>>1,B=-7,Z=U?q-1:0,j=U?-1:1,P=Q[$+Z];Z+=j,V=P&(1<<-B)-1,P>>=-B,B+=K;for(;B>0;V=V*256+Q[$+Z],Z+=j,B-=8);Y=V&(1<<-B)-1,V>>=-B,B+=X;for(;B>0;Y=Y*256+Q[$+Z],Z+=j,B-=8);if(V===0)V=1-J;else if(V===G)return Y?NaN:(P?-1:1)*(1/0);else Y=Y+Math.pow(2,X),V=V-J;return(P?-1:1)*Y*Math.pow(2,V-X)}function h4(Q,$,U,X,q,V){var Y,K,G,J=V*8-q-1,B=(1<<J)-1,Z=B>>1,j=q===23?Math.pow(2,-24)-Math.pow(2,-77):0,P=X?0:V-1,g=X?1:-1,y=$<0||$===0&&1/$<0?1:0;if($=Math.abs($),isNaN($)||$===1/0)K=isNaN($)?1:0,Y=B;else{if(Y=Math.floor(Math.log($)/Math.LN2),$*(G=Math.pow(2,-Y))<1)Y--,G*=2;if(Y+Z>=1)$+=j/G;else $+=j*Math.pow(2,1-Z);if($*G>=2)Y++,G/=2;if(Y+Z>=B)K=0,Y=B;else if(Y+Z>=1)K=($*G-1)*Math.pow(2,q),Y=Y+Z;else K=$*Math.pow(2,Z-1)*Math.pow(2,q),Y=0}for(;q>=8;Q[U+P]=K&255,P+=g,K/=256,q-=8);Y=Y<<q|K,J+=q;for(;J>0;Q[U+P]=Y&255,P+=g,Y/=256,J-=8);Q[U+P-g]|=y*128}function H2(Q){if(Q>b1)throw new RangeError('The value "'+Q+'" is invalid for option "size"');let $=new Uint8Array(Q);return Object.setPrototypeOf($,h.prototype),$}function E8(Q,$,U){return class X extends U{constructor(){super();Object.defineProperty(this,"message",{value:$.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${Q}]`,this.stack,delete this.name}get code(){return Q}set code(q){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:q,writable:!0})}toString(){return`${this.name} [${Q}]: ${this.message}`}}}function h(Q,$,U){if(typeof Q==="number"){if(typeof $==="string")throw new TypeError('The "string" argument must be of type string. Received type number');return S8(Q)}return u4(Q,$,U)}function u4(Q,$,U){if(typeof Q==="string")return uU(Q,$);if(ArrayBuffer.isView(Q))return cU(Q);if(Q==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Q);if(J2(Q,ArrayBuffer)||Q&&J2(Q.buffer,ArrayBuffer))return R8(Q,$,U);if(typeof SharedArrayBuffer!=="undefined"&&(J2(Q,SharedArrayBuffer)||Q&&J2(Q.buffer,SharedArrayBuffer)))return R8(Q,$,U);if(typeof Q==="number")throw new 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 h.from(X,$,U);let q=pU(Q);if(q)return q;if(typeof Symbol!=="undefined"&&Symbol.toPrimitive!=null&&typeof Q[Symbol.toPrimitive]==="function")return h.from(Q[Symbol.toPrimitive]("string"),$,U);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Q)}function c4(Q){if(typeof Q!=="number")throw new TypeError('"size" argument must be of type number');else if(Q<0)throw new RangeError('The value "'+Q+'" is invalid for option "size"')}function bU(Q,$,U){if(c4(Q),Q<=0)return H2(Q);if($!==void 0)return typeof U==="string"?H2(Q).fill($,U):H2(Q).fill($);return H2(Q)}function S8(Q){return c4(Q),H2(Q<0?0:k8(Q)|0)}function uU(Q,$){if(typeof $!=="string"||$==="")$="utf8";if(!h.isEncoding($))throw new TypeError("Unknown encoding: "+$);let U=p4(Q,$)|0,X=H2(U),q=X.write(Q,$);if(q!==U)X=X.slice(0,q);return X}function x8(Q){let $=Q.length<0?0:k8(Q.length)|0,U=H2($);for(let X=0;X<$;X+=1)U[X]=Q[X]&255;return U}function cU(Q){if(J2(Q,Uint8Array)){let $=new Uint8Array(Q);return R8($.buffer,$.byteOffset,$.byteLength)}return x8(Q)}function R8(Q,$,U){if($<0||Q.byteLength<$)throw new RangeError('"offset" is outside of buffer bounds');if(Q.byteLength<$+(U||0))throw new RangeError('"length" is outside of buffer bounds');let X;if($===void 0&&U===void 0)X=new Uint8Array(Q);else if(U===void 0)X=new Uint8Array(Q,$);else X=new Uint8Array(Q,$,U);return Object.setPrototypeOf(X,h.prototype),X}function pU(Q){if(h.isBuffer(Q)){let $=k8(Q.length)|0,U=H2($);if(U.length===0)return U;return Q.copy(U,0,0,$),U}if(Q.length!==void 0){if(typeof Q.length!=="number"||Number.isNaN(Q.length))return H2(0);return x8(Q)}if(Q.type==="Buffer"&&Array.isArray(Q.data))return x8(Q.data)}function k8(Q){if(Q>=b1)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+b1.toString(16)+" bytes");return Q|0}function p4(Q,$){if(h.isBuffer(Q))return Q.length;if(ArrayBuffer.isView(Q)||J2(Q,ArrayBuffer))return Q.byteLength;if(typeof Q!=="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Q);let U=Q.length,X=arguments.length>2&&arguments[2]===!0;if(!X&&U===0)return 0;let q=!1;for(;;)switch($){case"ascii":case"latin1":case"binary":return U;case"utf8":case"utf-8":return T8(Q).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U*2;case"hex":return U>>>1;case"base64":return s4(Q).length;default:if(q)return X?-1:T8(Q).length;$=(""+$).toLowerCase(),q=!0}}function mU(Q,$,U){let X=!1;if($===void 0||$<0)$=0;if($>this.length)return"";if(U===void 0||U>this.length)U=this.length;if(U<=0)return"";if(U>>>=0,$>>>=0,U<=$)return"";if(!Q)Q="utf8";while(!0)switch(Q){case"hex":return eU(this,$,U);case"utf8":case"utf-8":return d4(this,$,U);case"ascii":return sU(this,$,U);case"latin1":case"binary":return tU(this,$,U);case"base64":return rU(this,$,U);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return QX(this,$,U);default:if(X)throw new TypeError("Unknown encoding: "+Q);Q=(Q+"").toLowerCase(),X=!0}}function r2(Q,$,U){let X=Q[$];Q[$]=Q[U],Q[U]=X}function m4(Q,$,U,X,q){if(Q.length===0)return-1;if(typeof U==="string")X=U,U=0;else if(U>2147483647)U=2147483647;else if(U<-2147483648)U=-2147483648;if(U=+U,Number.isNaN(U))U=q?0:Q.length-1;if(U<0)U=Q.length+U;if(U>=Q.length)if(q)return-1;else U=Q.length-1;else if(U<0)if(q)U=0;else return-1;if(typeof $==="string")$=h.from($,X);if(h.isBuffer($)){if($.length===0)return-1;return v4(Q,$,U,X,q)}else if(typeof $==="number"){if($=$&255,typeof Uint8Array.prototype.indexOf==="function")if(q)return Uint8Array.prototype.indexOf.call(Q,$,U);else return Uint8Array.prototype.lastIndexOf.call(Q,$,U);return v4(Q,[$],U,X,q)}throw new TypeError("val must be string, number or Buffer")}function v4(Q,$,U,X,q){let V=1,Y=Q.length,K=$.length;if(X!==void 0){if(X=String(X).toLowerCase(),X==="ucs2"||X==="ucs-2"||X==="utf16le"||X==="utf-16le"){if(Q.length<2||$.length<2)return-1;V=2,Y/=2,K/=2,U/=2}}function G(B,Z){if(V===1)return B[Z];else return B.readUInt16BE(Z*V)}let J;if(q){let B=-1;for(J=U;J<Y;J++)if(G(Q,J)===G($,B===-1?0:J-B)){if(B===-1)B=J;if(J-B+1===K)return B*V}else{if(B!==-1)J-=J-B;B=-1}}else{if(U+K>Y)U=Y-K;for(J=U;J>=0;J--){let B=!0;for(let Z=0;Z<K;Z++)if(G(Q,J+Z)!==G($,Z)){B=!1;break}if(B)return J}}return-1}function dU(Q,$,U,X){U=Number(U)||0;let q=Q.length-U;if(!X)X=q;else if(X=Number(X),X>q)X=q;let V=$.length;if(X>V/2)X=V/2;let Y;for(Y=0;Y<X;++Y){let K=parseInt($.substr(Y*2,2),16);if(Number.isNaN(K))return Y;Q[U+Y]=K}return Y}function lU(Q,$,U,X){return C6(T8($,Q.length-U),Q,U,X)}function iU(Q,$,U,X){return C6(qX($),Q,U,X)}function nU(Q,$,U,X){return C6(s4($),Q,U,X)}function oU(Q,$,U,X){return C6(VX($,Q.length-U),Q,U,X)}function rU(Q,$,U){if($===0&&U===Q.length)return k4(Q);else return k4(Q.slice($,U))}function d4(Q,$,U){U=Math.min(Q.length,U);let X=[],q=$;while(q<U){let V=Q[q],Y=null,K=V>239?4:V>223?3:V>191?2:1;if(q+K<=U){let G,J,B,Z;switch(K){case 1:if(V<128)Y=V;break;case 2:if(G=Q[q+1],(G&192)===128){if(Z=(V&31)<<6|G&63,Z>127)Y=Z}break;case 3:if(G=Q[q+1],J=Q[q+2],(G&192)===128&&(J&192)===128){if(Z=(V&15)<<12|(G&63)<<6|J&63,Z>2047&&(Z<55296||Z>57343))Y=Z}break;case 4:if(G=Q[q+1],J=Q[q+2],B=Q[q+3],(G&192)===128&&(J&192)===128&&(B&192)===128){if(Z=(V&15)<<18|(G&63)<<12|(J&63)<<6|B&63,Z>65535&&Z<1114112)Y=Z}}}if(Y===null)Y=65533,K=1;else if(Y>65535)Y-=65536,X.push(Y>>>10&1023|55296),Y=56320|Y&1023;X.push(Y),q+=K}return aU(X)}function aU(Q){let $=Q.length;if($<=y4)return String.fromCharCode.apply(String,Q);let U="",X=0;while(X<$)U+=String.fromCharCode.apply(String,Q.slice(X,X+=y4));return U}function sU(Q,$,U){let X="";U=Math.min(Q.length,U);for(let q=$;q<U;++q)X+=String.fromCharCode(Q[q]&127);return X}function tU(Q,$,U){let X="";U=Math.min(Q.length,U);for(let q=$;q<U;++q)X+=String.fromCharCode(Q[q]);return X}function eU(Q,$,U){let X=Q.length;if(!$||$<0)$=0;if(!U||U<0||U>X)U=X;let q="";for(let V=$;V<U;++V)q+=YX[Q[V]];return q}function QX(Q,$,U){let X=Q.slice($,U),q="";for(let V=0;V<X.length-1;V+=2)q+=String.fromCharCode(X[V]+X[V+1]*256);return q}function E0(Q,$,U){if(Q%1!==0||Q<0)throw new RangeError("offset is not uint");if(Q+$>U)throw new RangeError("Trying to access beyond buffer length")}function u0(Q,$,U,X,q,V){if(!h.isBuffer(Q))throw new TypeError('"buffer" argument must be a Buffer instance');if($>q||$<V)throw new RangeError('"value" argument is out of bounds');if(U+X>Q.length)throw new RangeError("Index out of range")}function l4(Q,$,U,X,q){a4($,X,q,Q,U,7);let V=Number($&BigInt(4294967295));Q[U++]=V,V=V>>8,Q[U++]=V,V=V>>8,Q[U++]=V,V=V>>8,Q[U++]=V;let Y=Number($>>BigInt(32)&BigInt(4294967295));return Q[U++]=Y,Y=Y>>8,Q[U++]=Y,Y=Y>>8,Q[U++]=Y,Y=Y>>8,Q[U++]=Y,U}function i4(Q,$,U,X,q){a4($,X,q,Q,U,7);let V=Number($&BigInt(4294967295));Q[U+7]=V,V=V>>8,Q[U+6]=V,V=V>>8,Q[U+5]=V,V=V>>8,Q[U+4]=V;let Y=Number($>>BigInt(32)&BigInt(4294967295));return Q[U+3]=Y,Y=Y>>8,Q[U+2]=Y,Y=Y>>8,Q[U+1]=Y,Y=Y>>8,Q[U]=Y,U+8}function n4(Q,$,U,X,q,V){if(U+X>Q.length)throw new RangeError("Index out of range");if(U<0)throw new RangeError("Index out of range")}function o4(Q,$,U,X,q){if($=+$,U=U>>>0,!q)n4(Q,$,U,4,340282346638528860000000000000000000000,-340282346638528860000000000000000000000);return h4(Q,$,U,X,23,4),U+4}function r4(Q,$,U,X,q){if($=+$,U=U>>>0,!q)n4(Q,$,U,8,179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,-179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000);return h4(Q,$,U,X,52,8),U+8}function f4(Q){let $="",U=Q.length,X=Q[0]==="-"?1:0;for(;U>=X+4;U-=3)$=`_${Q.slice(U-3,U)}${$}`;return`${Q.slice(0,U)}${$}`}function $X(Q,$,U){if(z1($,"offset"),Q[$]===void 0||Q[$+U]===void 0)u1($,Q.length-(U+1))}function a4(Q,$,U,X,q,V){if(Q>U||Q<$){let Y=typeof $==="bigint"?"n":"",K;if(V>3)if($===0||$===BigInt(0))K=`>= 0${Y} and < 2${Y} ** ${(V+1)*8}${Y}`;else K=`>= -(2${Y} ** ${(V+1)*8-1}${Y}) and < 2 ** ${(V+1)*8-1}${Y}`;else K=`>= ${$}${Y} and <= ${U}${Y}`;throw new A8("value",K,Q)}$X(X,q,V)}function z1(Q,$){if(typeof Q!=="number")throw new _U($,"number",Q)}function u1(Q,$,U){if(Math.floor(Q)!==Q)throw z1(Q,U),new A8(U||"offset","an integer",Q);if($<0)throw new hU;throw new A8(U||"offset",`>= ${U?1:0} and <= ${$}`,Q)}function XX(Q){if(Q=Q.split("=")[0],Q=Q.trim().replace(UX,""),Q.length<2)return"";while(Q.length%4!==0)Q=Q+"=";return Q}function T8(Q,$){$=$||1/0;let U,X=Q.length,q=null,V=[];for(let Y=0;Y<X;++Y){if(U=Q.charCodeAt(Y),U>55295&&U<57344){if(!q){if(U>56319){if(($-=3)>-1)V.push(239,191,189);continue}else if(Y+1===X){if(($-=3)>-1)V.push(239,191,189);continue}q=U;continue}if(U<56320){if(($-=3)>-1)V.push(239,191,189);q=U;continue}U=(q-55296<<10|U-56320)+65536}else if(q){if(($-=3)>-1)V.push(239,191,189)}if(q=null,U<128){if(($-=1)<0)break;V.push(U)}else if(U<2048){if(($-=2)<0)break;V.push(U>>6|192,U&63|128)}else if(U<65536){if(($-=3)<0)break;V.push(U>>12|224,U>>6&63|128,U&63|128)}else if(U<1114112){if(($-=4)<0)break;V.push(U>>18|240,U>>12&63|128,U>>6&63|128,U&63|128)}else throw new Error("Invalid code point")}return V}function qX(Q){let $=[];for(let U=0;U<Q.length;++U)$.push(Q.charCodeAt(U)&255);return $}function VX(Q,$){let U,X,q,V=[];for(let Y=0;Y<Q.length;++Y){if(($-=2)<0)break;U=Q.charCodeAt(Y),X=U>>8,q=U%256,V.push(q),V.push(X)}return V}function s4(Q){return TU(XX(Q))}function C6(Q,$,U,X){let q;for(q=0;q<X;++q){if(q+U>=$.length||q>=Q.length)break;$[q+U]=Q[q]}return q}function J2(Q,$){return Q instanceof $||Q!=null&&Q.constructor!=null&&Q.constructor.name!=null&&Q.constructor.name===$.name}function E2(Q){return typeof BigInt==="undefined"?KX:Q}function KX(){throw new Error("BigInt not supported")}function g8(Q){return()=>{throw new Error(Q+" is not implemented for node:buffer browser polyfill")}}var K2,r0,D8="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o2,S4,g4,_4=50,b1=2147483647,b4=536870888,kU,gU,vU,yU,fU,hU,_U,A8,y4=4096,UX,YX,JX,BX,GX=(Q)=>{for(let $ of Q)if($.charCodeAt(0)>127)return!1;return!0},wX,WX;var C2=E4(()=>{K2=[],r0=[];for(o2=0,S4=D8.length;o2<S4;++o2)K2[o2]=D8[o2],r0[D8.charCodeAt(o2)]=o2;r0[45]=62;r0[95]=63;g4=typeof Symbol==="function"&&typeof Symbol.for==="function"?Symbol.for("nodejs.util.inspect.custom"):null,kU=globalThis.btoa,gU=globalThis.atob,vU=globalThis.File,yU=globalThis.Blob,fU={MAX_LENGTH:b1,MAX_STRING_LENGTH:b4};hU=E8("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),_U=E8("ERR_INVALID_ARG_TYPE",function(Q,$){return`The "${Q}" argument must be of type number. Received type ${typeof $}`},TypeError),A8=E8("ERR_OUT_OF_RANGE",function(Q,$,U){let X=`The value of "${Q}" is out of range.`,q=U;if(Number.isInteger(U)&&Math.abs(U)>4294967296)q=f4(String(U));else if(typeof U==="bigint"){if(q=String(U),U>BigInt(2)**BigInt(32)||U<-(BigInt(2)**BigInt(32)))q=f4(q);q+="n"}return X+=` It must be ${$}. Received ${q}`,X},RangeError);Object.defineProperty(h.prototype,"parent",{enumerable:!0,get:function(){if(!h.isBuffer(this))return;return this.buffer}});Object.defineProperty(h.prototype,"offset",{enumerable:!0,get:function(){if(!h.isBuffer(this))return;return this.byteOffset}});h.poolSize=8192;h.from=function(Q,$,U){return u4(Q,$,U)};Object.setPrototypeOf(h.prototype,Uint8Array.prototype);Object.setPrototypeOf(h,Uint8Array);h.alloc=function(Q,$,U){return bU(Q,$,U)};h.allocUnsafe=function(Q){return S8(Q)};h.allocUnsafeSlow=function(Q){return S8(Q)};h.isBuffer=function Q($){return $!=null&&$._isBuffer===!0&&$!==h.prototype};h.compare=function Q($,U){if(J2($,Uint8Array))$=h.from($,$.offset,$.byteLength);if(J2(U,Uint8Array))U=h.from(U,U.offset,U.byteLength);if(!h.isBuffer($)||!h.isBuffer(U))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if($===U)return 0;let X=$.length,q=U.length;for(let V=0,Y=Math.min(X,q);V<Y;++V)if($[V]!==U[V]){X=$[V],q=U[V];break}if(X<q)return-1;if(q<X)return 1;return 0};h.isEncoding=function Q($){switch(String($).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}};h.concat=function Q($,U){if(!Array.isArray($))throw new TypeError('"list" argument must be an Array of Buffers');if($.length===0)return h.alloc(0);let X;if(U===void 0){U=0;for(X=0;X<$.length;++X)U+=$[X].length}let q=h.allocUnsafe(U),V=0;for(X=0;X<$.length;++X){let Y=$[X];if(J2(Y,Uint8Array))if(V+Y.length>q.length){if(!h.isBuffer(Y))Y=h.from(Y);Y.copy(q,V)}else Uint8Array.prototype.set.call(q,Y,V);else if(!h.isBuffer(Y))throw new TypeError('"list" argument must be an Array of Buffers');else Y.copy(q,V);V+=Y.length}return q};h.byteLength=p4;h.prototype._isBuffer=!0;h.prototype.swap16=function Q(){let $=this.length;if($%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let U=0;U<$;U+=2)r2(this,U,U+1);return this};h.prototype.swap32=function Q(){let $=this.length;if($%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let U=0;U<$;U+=4)r2(this,U,U+3),r2(this,U+1,U+2);return this};h.prototype.swap64=function Q(){let $=this.length;if($%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let U=0;U<$;U+=8)r2(this,U,U+7),r2(this,U+1,U+6),r2(this,U+2,U+5),r2(this,U+3,U+4);return this};h.prototype.toString=function Q(){let $=this.length;if($===0)return"";if(arguments.length===0)return d4(this,0,$);return mU.apply(this,arguments)};h.prototype.toLocaleString=h.prototype.toString;h.prototype.equals=function Q($){if(!h.isBuffer($))throw new TypeError("Argument must be a Buffer");if(this===$)return!0;return h.compare(this,$)===0};h.prototype.inspect=function Q(){let $="",U=_4;if($=this.toString("hex",0,U).replace(/(.{2})/g,"$1 ").trim(),this.length>U)$+=" ... ";return"<Buffer "+$+">"};if(g4)h.prototype[g4]=h.prototype.inspect;h.prototype.compare=function Q($,U,X,q,V){if(J2($,Uint8Array))$=h.from($,$.offset,$.byteLength);if(!h.isBuffer($))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof $);if(U===void 0)U=0;if(X===void 0)X=$?$.length:0;if(q===void 0)q=0;if(V===void 0)V=this.length;if(U<0||X>$.length||q<0||V>this.length)throw new RangeError("out of range index");if(q>=V&&U>=X)return 0;if(q>=V)return-1;if(U>=X)return 1;if(U>>>=0,X>>>=0,q>>>=0,V>>>=0,this===$)return 0;let Y=V-q,K=X-U,G=Math.min(Y,K),J=this.slice(q,V),B=$.slice(U,X);for(let Z=0;Z<G;++Z)if(J[Z]!==B[Z]){Y=J[Z],K=B[Z];break}if(Y<K)return-1;if(K<Y)return 1;return 0};h.prototype.includes=function Q($,U,X){return this.indexOf($,U,X)!==-1};h.prototype.indexOf=function Q($,U,X){return m4(this,$,U,X,!0)};h.prototype.lastIndexOf=function Q($,U,X){return m4(this,$,U,X,!1)};h.prototype.write=function Q($,U,X,q){if(U===void 0)q="utf8",X=this.length,U=0;else if(X===void 0&&typeof U==="string")q=U,X=this.length,U=0;else if(isFinite(U))if(U=U>>>0,isFinite(X)){if(X=X>>>0,q===void 0)q="utf8"}else q=X,X=void 0;else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let V=this.length-U;if(X===void 0||X>V)X=V;if($.length>0&&(X<0||U<0)||U>this.length)throw new RangeError("Attempt to write outside buffer bounds");if(!q)q="utf8";let Y=!1;for(;;)switch(q){case"hex":return dU(this,$,U,X);case"utf8":case"utf-8":return lU(this,$,U,X);case"ascii":case"latin1":case"binary":return iU(this,$,U,X);case"base64":return nU(this,$,U,X);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return oU(this,$,U,X);default:if(Y)throw new TypeError("Unknown encoding: "+q);q=(""+q).toLowerCase(),Y=!0}};h.prototype.toJSON=function Q(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};h.prototype.slice=function Q($,U){let X=this.length;if($=~~$,U=U===void 0?X:~~U,$<0){if($+=X,$<0)$=0}else if($>X)$=X;if(U<0){if(U+=X,U<0)U=0}else if(U>X)U=X;if(U<$)U=$;let q=this.subarray($,U);return Object.setPrototypeOf(q,h.prototype),q};h.prototype.readUintLE=h.prototype.readUIntLE=function Q($,U,X){if($=$>>>0,U=U>>>0,!X)E0($,U,this.length);let q=this[$],V=1,Y=0;while(++Y<U&&(V*=256))q+=this[$+Y]*V;return q};h.prototype.readUintBE=h.prototype.readUIntBE=function Q($,U,X){if($=$>>>0,U=U>>>0,!X)E0($,U,this.length);let q=this[$+--U],V=1;while(U>0&&(V*=256))q+=this[$+--U]*V;return q};h.prototype.readUint8=h.prototype.readUInt8=function Q($,U){if($=$>>>0,!U)E0($,1,this.length);return this[$]};h.prototype.readUint16LE=h.prototype.readUInt16LE=function Q($,U){if($=$>>>0,!U)E0($,2,this.length);return this[$]|this[$+1]<<8};h.prototype.readUint16BE=h.prototype.readUInt16BE=function Q($,U){if($=$>>>0,!U)E0($,2,this.length);return this[$]<<8|this[$+1]};h.prototype.readUint32LE=h.prototype.readUInt32LE=function Q($,U){if($=$>>>0,!U)E0($,4,this.length);return(this[$]|this[$+1]<<8|this[$+2]<<16)+this[$+3]*16777216};h.prototype.readUint32BE=h.prototype.readUInt32BE=function Q($,U){if($=$>>>0,!U)E0($,4,this.length);return this[$]*16777216+(this[$+1]<<16|this[$+2]<<8|this[$+3])};h.prototype.readBigUInt64LE=E2(function Q($){$=$>>>0,z1($,"offset");let U=this[$],X=this[$+7];if(U===void 0||X===void 0)u1($,this.length-8);let q=U+this[++$]*256+this[++$]*65536+this[++$]*16777216,V=this[++$]+this[++$]*256+this[++$]*65536+X*16777216;return BigInt(q)+(BigInt(V)<<BigInt(32))});h.prototype.readBigUInt64BE=E2(function Q($){$=$>>>0,z1($,"offset");let U=this[$],X=this[$+7];if(U===void 0||X===void 0)u1($,this.length-8);let q=U*16777216+this[++$]*65536+this[++$]*256+this[++$],V=this[++$]*16777216+this[++$]*65536+this[++$]*256+X;return(BigInt(q)<<BigInt(32))+BigInt(V)});h.prototype.readIntLE=function Q($,U,X){if($=$>>>0,U=U>>>0,!X)E0($,U,this.length);let q=this[$],V=1,Y=0;while(++Y<U&&(V*=256))q+=this[$+Y]*V;if(V*=128,q>=V)q-=Math.pow(2,8*U);return q};h.prototype.readIntBE=function Q($,U,X){if($=$>>>0,U=U>>>0,!X)E0($,U,this.length);let q=U,V=1,Y=this[$+--q];while(q>0&&(V*=256))Y+=this[$+--q]*V;if(V*=128,Y>=V)Y-=Math.pow(2,8*U);return Y};h.prototype.readInt8=function Q($,U){if($=$>>>0,!U)E0($,1,this.length);if(!(this[$]&128))return this[$];return(255-this[$]+1)*-1};h.prototype.readInt16LE=function Q($,U){if($=$>>>0,!U)E0($,2,this.length);let X=this[$]|this[$+1]<<8;return X&32768?X|4294901760:X};h.prototype.readInt16BE=function Q($,U){if($=$>>>0,!U)E0($,2,this.length);let X=this[$+1]|this[$]<<8;return X&32768?X|4294901760:X};h.prototype.readInt32LE=function Q($,U){if($=$>>>0,!U)E0($,4,this.length);return this[$]|this[$+1]<<8|this[$+2]<<16|this[$+3]<<24};h.prototype.readInt32BE=function Q($,U){if($=$>>>0,!U)E0($,4,this.length);return this[$]<<24|this[$+1]<<16|this[$+2]<<8|this[$+3]};h.prototype.readBigInt64LE=E2(function Q($){$=$>>>0,z1($,"offset");let U=this[$],X=this[$+7];if(U===void 0||X===void 0)u1($,this.length-8);let q=this[$+4]+this[$+5]*256+this[$+6]*65536+(X<<24);return(BigInt(q)<<BigInt(32))+BigInt(U+this[++$]*256+this[++$]*65536+this[++$]*16777216)});h.prototype.readBigInt64BE=E2(function Q($){$=$>>>0,z1($,"offset");let U=this[$],X=this[$+7];if(U===void 0||X===void 0)u1($,this.length-8);let q=(U<<24)+this[++$]*65536+this[++$]*256+this[++$];return(BigInt(q)<<BigInt(32))+BigInt(this[++$]*16777216+this[++$]*65536+this[++$]*256+X)});h.prototype.readFloatLE=function Q($,U){if($=$>>>0,!U)E0($,4,this.length);return L6(this,$,!0,23,4)};h.prototype.readFloatBE=function Q($,U){if($=$>>>0,!U)E0($,4,this.length);return L6(this,$,!1,23,4)};h.prototype.readDoubleLE=function Q($,U){if($=$>>>0,!U)E0($,8,this.length);return L6(this,$,!0,52,8)};h.prototype.readDoubleBE=function Q($,U){if($=$>>>0,!U)E0($,8,this.length);return L6(this,$,!1,52,8)};h.prototype.writeUintLE=h.prototype.writeUIntLE=function Q($,U,X,q){if($=+$,U=U>>>0,X=X>>>0,!q){let K=Math.pow(2,8*X)-1;u0(this,$,U,X,K,0)}let V=1,Y=0;this[U]=$&255;while(++Y<X&&(V*=256))this[U+Y]=$/V&255;return U+X};h.prototype.writeUintBE=h.prototype.writeUIntBE=function Q($,U,X,q){if($=+$,U=U>>>0,X=X>>>0,!q){let K=Math.pow(2,8*X)-1;u0(this,$,U,X,K,0)}let V=X-1,Y=1;this[U+V]=$&255;while(--V>=0&&(Y*=256))this[U+V]=$/Y&255;return U+X};h.prototype.writeUint8=h.prototype.writeUInt8=function Q($,U,X){if($=+$,U=U>>>0,!X)u0(this,$,U,1,255,0);return this[U]=$&255,U+1};h.prototype.writeUint16LE=h.prototype.writeUInt16LE=function Q($,U,X){if($=+$,U=U>>>0,!X)u0(this,$,U,2,65535,0);return this[U]=$&255,this[U+1]=$>>>8,U+2};h.prototype.writeUint16BE=h.prototype.writeUInt16BE=function Q($,U,X){if($=+$,U=U>>>0,!X)u0(this,$,U,2,65535,0);return this[U]=$>>>8,this[U+1]=$&255,U+2};h.prototype.writeUint32LE=h.prototype.writeUInt32LE=function Q($,U,X){if($=+$,U=U>>>0,!X)u0(this,$,U,4,4294967295,0);return this[U+3]=$>>>24,this[U+2]=$>>>16,this[U+1]=$>>>8,this[U]=$&255,U+4};h.prototype.writeUint32BE=h.prototype.writeUInt32BE=function Q($,U,X){if($=+$,U=U>>>0,!X)u0(this,$,U,4,4294967295,0);return this[U]=$>>>24,this[U+1]=$>>>16,this[U+2]=$>>>8,this[U+3]=$&255,U+4};h.prototype.writeBigUInt64LE=E2(function Q($,U=0){return l4(this,$,U,BigInt(0),BigInt("0xffffffffffffffff"))});h.prototype.writeBigUInt64BE=E2(function Q($,U=0){return i4(this,$,U,BigInt(0),BigInt("0xffffffffffffffff"))});h.prototype.writeIntLE=function Q($,U,X,q){if($=+$,U=U>>>0,!q){let G=Math.pow(2,8*X-1);u0(this,$,U,X,G-1,-G)}let V=0,Y=1,K=0;this[U]=$&255;while(++V<X&&(Y*=256)){if($<0&&K===0&&this[U+V-1]!==0)K=1;this[U+V]=($/Y>>0)-K&255}return U+X};h.prototype.writeIntBE=function Q($,U,X,q){if($=+$,U=U>>>0,!q){let G=Math.pow(2,8*X-1);u0(this,$,U,X,G-1,-G)}let V=X-1,Y=1,K=0;this[U+V]=$&255;while(--V>=0&&(Y*=256)){if($<0&&K===0&&this[U+V+1]!==0)K=1;this[U+V]=($/Y>>0)-K&255}return U+X};h.prototype.writeInt8=function Q($,U,X){if($=+$,U=U>>>0,!X)u0(this,$,U,1,127,-128);if($<0)$=255+$+1;return this[U]=$&255,U+1};h.prototype.writeInt16LE=function Q($,U,X){if($=+$,U=U>>>0,!X)u0(this,$,U,2,32767,-32768);return this[U]=$&255,this[U+1]=$>>>8,U+2};h.prototype.writeInt16BE=function Q($,U,X){if($=+$,U=U>>>0,!X)u0(this,$,U,2,32767,-32768);return this[U]=$>>>8,this[U+1]=$&255,U+2};h.prototype.writeInt32LE=function Q($,U,X){if($=+$,U=U>>>0,!X)u0(this,$,U,4,2147483647,-2147483648);return this[U]=$&255,this[U+1]=$>>>8,this[U+2]=$>>>16,this[U+3]=$>>>24,U+4};h.prototype.writeInt32BE=function Q($,U,X){if($=+$,U=U>>>0,!X)u0(this,$,U,4,2147483647,-2147483648);if($<0)$=4294967295+$+1;return this[U]=$>>>24,this[U+1]=$>>>16,this[U+2]=$>>>8,this[U+3]=$&255,U+4};h.prototype.writeBigInt64LE=E2(function Q($,U=0){return l4(this,$,U,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});h.prototype.writeBigInt64BE=E2(function Q($,U=0){return i4(this,$,U,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});h.prototype.writeFloatLE=function Q($,U,X){return o4(this,$,U,!0,X)};h.prototype.writeFloatBE=function Q($,U,X){return o4(this,$,U,!1,X)};h.prototype.writeDoubleLE=function Q($,U,X){return r4(this,$,U,!0,X)};h.prototype.writeDoubleBE=function Q($,U,X){return r4(this,$,U,!1,X)};h.prototype.copy=function Q($,U,X,q){if(!h.isBuffer($))throw new TypeError("argument should be a Buffer");if(!X)X=0;if(!q&&q!==0)q=this.length;if(U>=$.length)U=$.length;if(!U)U=0;if(q>0&&q<X)q=X;if(q===X)return 0;if($.length===0||this.length===0)return 0;if(U<0)throw new RangeError("targetStart out of bounds");if(X<0||X>=this.length)throw new RangeError("Index out of range");if(q<0)throw new RangeError("sourceEnd out of bounds");if(q>this.length)q=this.length;if($.length-U<q-X)q=$.length-U+X;let V=q-X;if(this===$&&typeof Uint8Array.prototype.copyWithin==="function")this.copyWithin(U,X,q);else Uint8Array.prototype.set.call($,this.subarray(X,q),U);return V};h.prototype.fill=function Q($,U,X,q){if(typeof $==="string"){if(typeof U==="string")q=U,U=0,X=this.length;else if(typeof X==="string")q=X,X=this.length;if(q!==void 0&&typeof q!=="string")throw new TypeError("encoding must be a string");if(typeof q==="string"&&!h.isEncoding(q))throw new TypeError("Unknown encoding: "+q);if($.length===1){let Y=$.charCodeAt(0);if(q==="utf8"&&Y<128||q==="latin1")$=Y}}else if(typeof $==="number")$=$&255;else if(typeof $==="boolean")$=Number($);if(U<0||this.length<U||this.length<X)throw new RangeError("Out of range index");if(X<=U)return this;if(U=U>>>0,X=X===void 0?this.length:X>>>0,!$)$=0;let V;if(typeof $==="number")for(V=U;V<X;++V)this[V]=$;else{let Y=h.isBuffer($)?$:h.from($,q),K=Y.length;if(K===0)throw new TypeError('The value "'+$+'" is invalid for argument "value"');for(V=0;V<X-U;++V)this[V+U]=Y[V%K]}return this};UX=/[^+/0-9A-Za-z-_]/g;YX=function(){let Q=new Array(256);for(let $=0;$<16;++$){let U=$*16;for(let X=0;X<16;++X)Q[U+X]="0123456789abcdef"[$]+"0123456789abcdef"[X]}return Q}();JX=g8("resolveObjectURL"),BX=g8("isUtf8"),wX=g8("transcode"),WX=h});var p1={};T4(p1,{setMaxListeners:()=>JQ,once:()=>YQ,listenerCount:()=>BQ,init:()=>S2,getMaxListeners:()=>wQ,getEventListeners:()=>KQ,default:()=>LX,captureRejectionSymbol:()=>UQ,addAbortListener:()=>WQ,EventEmitter:()=>S2});function XQ(Q,$){var{_events:U}=Q;if($[0]??=new Error("Unhandled error."),!U)throw $[0];var X=U[$Q];if(X)for(var q of e4.call(X))q.apply(Q,$);var V=U.error;if(!V)throw $[0];for(var q of e4.call(V))q.apply(Q,$);return!0}function ZX(Q,$,U,X){$.then(void 0,function(q){queueMicrotask(()=>PX(Q,q,U,X))})}function PX(Q,$,U,X){if(typeof Q[t4]==="function")Q[t4]($,U,...X);else try{Q[a2]=!1,Q.emit("error",$)}finally{Q[a2]=!0}}function qQ(Q,$,U){U.warned=!0;let X=new Error(`Possible EventEmitter memory leak detected. ${U.length} ${String($)} listeners added to [${Q.constructor.name}]. Use emitter.setMaxListeners() to increase limit`);X.name="MaxListenersExceededWarning",X.emitter=Q,X.type=$,X.count=U.length,console.warn(X)}function VQ(Q,$,...U){this.removeListener(Q,$),$.apply(this,U)}function YQ(Q,$,U){var X=U?.signal;if(GQ(X,"options.signal"),X?.aborted)throw new v8(void 0,{cause:X?.reason});let{resolve:q,reject:V,promise:Y}=$newPromiseCapability(Promise),K=(B)=>{if(Q.removeListener($,G),X!=null)O6(X,"abort",J);V(B)},G=(...B)=>{if(typeof Q.removeListener==="function")Q.removeListener("error",K);if(X!=null)O6(X,"abort",J);q(B)};if(QQ(Q,$,G,{once:!0}),$!=="error"&&typeof Q.once==="function")Q.once("error",K);function J(){O6(Q,$,G),O6(Q,"error",K),V(new v8(void 0,{cause:X?.reason}))}if(X!=null)QQ(X,"abort",J,{once:!0});return Y}function KQ(Q,$){return Q.listeners($)}function JQ(Q,...$){f8(Q,"setMaxListeners",0);var U;if($&&(U=$.length))for(let X=0;X<U;X++)$[X].setMaxListeners(Q);else s2=Q}function BQ(Q,$){return Q.listenerCount($)}function O6(Q,$,U,X){if(typeof Q.removeListener==="function")Q.removeListener($,U);else Q.removeEventListener($,U,X)}function QQ(Q,$,U,X){if(typeof Q.on==="function")if(X.once)Q.once($,U);else Q.on($,U);else Q.addEventListener($,U,X)}function j1(Q,$,U){let X=new TypeError(`The "${Q}" argument must be of type ${$}. Received ${U}`);return X.code="ERR_INVALID_ARG_TYPE",X}function MX(Q,$,U){let X=new RangeError(`The "${Q}" argument is out of range. It must be ${$}. Received ${U}`);return X.code="ERR_OUT_OF_RANGE",X}function GQ(Q,$){if(Q!==void 0&&(Q===null||typeof Q!=="object"||!("aborted"in Q)))throw j1($,"AbortSignal",Q)}function f8(Q,$,U,X){if(typeof Q!=="number")throw j1($,"number",Q);if(U!=null&&Q<U||X!=null&&Q>X||(U!=null||X!=null)&&Number.isNaN(Q))throw MX($,`${U!=null?`>= ${U}`:""}${U!=null&&X!=null?" && ":""}${X!=null?`<= ${X}`:""}`,Q)}function c1(Q){if(typeof Q!=="function")throw new TypeError("The listener must be a function")}function HX(Q,$){if(typeof Q!=="boolean")throw j1($,"boolean",Q)}function wQ(Q){return Q?._maxListeners??s2}function WQ(Q,$){if(Q===void 0)throw j1("signal","AbortSignal",Q);if(GQ(Q,"signal"),typeof $!=="function")throw j1("listener","function",$);let U;if(Q.aborted)queueMicrotask(()=>$());else Q.addEventListener("abort",$,{__proto__:null,once:!0}),U=()=>{Q.removeEventListener("abort",$)};return{__proto__:null,[Symbol.dispose](){U?.()}}}var y8,a2,$Q,zX,jX,t4,UQ,e4,s2=10,S2=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[a2]=$?.captureRejections?Boolean($?.captureRejections):H0[a2])this.emit=IX},H0,FX=function Q($,...U){if($==="error")return XQ(this,U);var{_events:X}=this;if(X===void 0)return!1;var q=X[$];if(q===void 0)return!1;let V=q.length>1?q.slice():q;for(let Y=0,{length:K}=V;Y<K;Y++){let G=V[Y];switch(U.length){case 0:G.call(this);break;case 1:G.call(this,U[0]);break;case 2:G.call(this,U[0],U[1]);break;case 3:G.call(this,U[0],U[1],U[2]);break;default:G.apply(this,U);break}}return!0},IX=function Q($,...U){if($==="error")return XQ(this,U);var{_events:X}=this;if(X===void 0)return!1;var q=X[$];if(q===void 0)return!1;let V=q.length>1?q.slice():q;for(let Y=0,{length:K}=V;Y<K;Y++){let G=V[Y],J;switch(U.length){case 0:J=G.call(this);break;case 1:J=G.call(this,U[0]);break;case 2:J=G.call(this,U[0],U[1]);break;case 3:J=G.call(this,U[0],U[1],U[2]);break;default:J=G.apply(this,U);break}if(J!==void 0&&typeof J?.then==="function"&&J.then===Promise.prototype.then)ZX(this,J,$,U)}return!0},v8,LX;var m1=E4(()=>{y8=Symbol.for,a2=Symbol("kCapture"),$Q=y8("events.errorMonitor"),zX=Symbol("events.maxEventTargetListeners"),jX=Symbol("events.maxEventTargetListenersWarned"),t4=y8("nodejs.rejection"),UQ=y8("nodejs.rejection"),e4=Array.prototype.slice,H0=S2.prototype={};H0._events=void 0;H0._eventsCount=0;H0._maxListeners=void 0;H0.setMaxListeners=function Q($){return f8($,"setMaxListeners",0),this._maxListeners=$,this};H0.constructor=S2;H0.getMaxListeners=function Q(){return this?._maxListeners??s2};H0.emit=FX;H0.addListener=function Q($,U){c1(U);var X=this._events;if(!X)X=this._events={__proto__:null},this._eventsCount=0;else if(X.newListener)this.emit("newListener",$,U.listener??U);var q=X[$];if(!q)X[$]=[U],this._eventsCount++;else{q.push(U);var V=this._maxListeners??s2;if(V>0&&q.length>V&&!q.warned)qQ(this,$,q)}return this};H0.on=H0.addListener;H0.prependListener=function Q($,U){c1(U);var X=this._events;if(!X)X=this._events={__proto__:null},this._eventsCount=0;else if(X.newListener)this.emit("newListener",$,U.listener??U);var q=X[$];if(!q)X[$]=[U],this._eventsCount++;else{q.unshift(U);var V=this._maxListeners??s2;if(V>0&&q.length>V&&!q.warned)qQ(this,$,q)}return this};H0.once=function Q($,U){c1(U);let X=VQ.bind(this,$,U);return X.listener=U,this.addListener($,X),this};H0.prependOnceListener=function Q($,U){c1(U);let X=VQ.bind(this,$,U);return X.listener=U,this.prependListener($,X),this};H0.removeListener=function Q($,U){c1(U);var{_events:X}=this;if(!X)return this;var q=X[$];if(!q)return this;var V=q.length;let Y=-1;for(let K=V-1;K>=0;K--)if(q[K]===U||q[K].listener===U){Y=K;break}if(Y<0)return this;if(Y===0)q.shift();else q.splice(Y,1);if(q.length===0)delete X[$],this._eventsCount--;return this};H0.off=H0.removeListener;H0.removeAllListeners=function Q($){var{_events:U}=this;if($&&U){if(U[$])delete U[$],this._eventsCount--}else this._events={__proto__:null};return this};H0.listeners=function Q($){var{_events:U}=this;if(!U)return[];var X=U[$];if(!X)return[];return X.map((q)=>q.listener??q)};H0.rawListeners=function Q($){var{_events:U}=this;if(!U)return[];var X=U[$];if(!X)return[];return X.slice()};H0.listenerCount=function Q($){var{_events:U}=this;if(!U)return 0;return U[$]?.length??0};H0.eventNames=function Q(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};H0[a2]=!1;v8=class v8 extends Error{constructor(Q="The operation was aborted",$=void 0){if($!==void 0&&typeof $!=="object")throw j1("options","Object",$);super(Q,$);this.code="ABORT_ERR",this.name="AbortError"}};Object.defineProperties(S2,{captureRejections:{get(){return H0[a2]},set(Q){HX(Q,"EventEmitter.captureRejections"),H0[a2]=Q},enumerable:!0},defaultMaxListeners:{enumerable:!0,get:()=>{return s2},set:(Q)=>{f8(Q,"defaultMaxListeners",0),s2=Q}},kMaxEventTargetListeners:{value:zX,enumerable:!1,configurable:!1,writable:!1},kMaxEventTargetListenersWarned:{value:jX,enumerable:!1,configurable:!1,writable:!1}});Object.assign(S2,{once:YQ,getEventListeners:KQ,getMaxListeners:wQ,setMaxListeners:JQ,EventEmitter:S2,usingDomains:!1,captureRejectionSymbol:UQ,errorMonitor:$Q,addAbortListener:WQ,init:S2,listenerCount:BQ});LX=S2});var x6=J0((ZB,HQ)=>{var I0=(Q,$)=>()=>($||Q(($={exports:{}}).exports,$),$.exports),O0=I0((Q,$)=>{class U extends Error{constructor(X){if(!Array.isArray(X))throw new TypeError(`Expected input to be an Array, got ${typeof X}`);let q="";for(let V=0;V<X.length;V++)q+=` ${X[V].stack}
2
- `;super(q);this.name="AggregateError",this.errors=X}}$.exports={AggregateError:U,ArrayIsArray(X){return Array.isArray(X)},ArrayPrototypeIncludes(X,q){return X.includes(q)},ArrayPrototypeIndexOf(X,q){return X.indexOf(q)},ArrayPrototypeJoin(X,q){return X.join(q)},ArrayPrototypeMap(X,q){return X.map(q)},ArrayPrototypePop(X,q){return X.pop(q)},ArrayPrototypePush(X,q){return X.push(q)},ArrayPrototypeSlice(X,q,V){return X.slice(q,V)},Error,FunctionPrototypeCall(X,q,...V){return X.call(q,...V)},FunctionPrototypeSymbolHasInstance(X,q){return Function.prototype[Symbol.hasInstance].call(X,q)},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,q){return Object.defineProperties(X,q)},ObjectDefineProperty(X,q,V){return Object.defineProperty(X,q,V)},ObjectGetOwnPropertyDescriptor(X,q){return Object.getOwnPropertyDescriptor(X,q)},ObjectKeys(X){return Object.keys(X)},ObjectSetPrototypeOf(X,q){return Object.setPrototypeOf(X,q)},Promise,PromisePrototypeCatch(X,q){return X.catch(q)},PromisePrototypeThen(X,q,V){return X.then(q,V)},PromiseReject(X){return Promise.reject(X)},PromiseResolve(X){return Promise.resolve(X)},ReflectApply:Reflect.apply,RegExpPrototypeTest(X,q){return X.test(q)},SafeSet:Set,String,StringPrototypeSlice(X,q,V){return X.slice(q,V)},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,q,V){return X.set(q,V)},Boolean,Uint8Array}}),zQ=I0((Q,$)=>{$.exports={format(U,...X){return U.replace(/%([sdifj])/g,function(...[q,V]){let Y=X.shift();if(V==="f")return Y.toFixed(6);else if(V==="j")return JSON.stringify(Y);else if(V==="s"&&typeof Y==="object")return`${Y.constructor!==Object?Y.constructor.name:""} {}`.trim();else return Y.toString()})},inspect(U){switch(typeof U){case"string":if(U.includes("'")){if(!U.includes('"'))return`"${U}"`;else if(!U.includes("`")&&!U.includes("${"))return`\`${U}\``}return`'${U}'`;case"number":if(isNaN(U))return"NaN";else if(Object.is(U,-0))return String(U);return U;case"bigint":return`${String(U)}n`;case"boolean":case"undefined":return String(U);case"object":return"{}"}}}}),h0=I0((Q,$)=>{var{format:U,inspect:X}=zQ(),{AggregateError:q}=O0(),V=globalThis.AggregateError||q,Y=Symbol("kIsNodeError"),K=["string","function","number","object","Function","Object","boolean","bigint","symbol"],G=/^([A-Z][a-z0-9]*)+$/,J={};function B(M,w){if(!M)throw new J.ERR_INTERNAL_ASSERTION(w)}function Z(M){let w="",I=M.length,F=M[0]==="-"?1:0;for(;I>=F+4;I-=3)w=`_${M.slice(I-3,I)}${w}`;return`${M.slice(0,I)}${w}`}function j(M,w,I){if(typeof w==="function")return B(w.length<=I.length,`Code: ${M}; The provided arguments length (${I.length}) does not match the required ones (${w.length}).`),w(...I);let F=(w.match(/%[dfijoOs]/g)||[]).length;if(B(F===I.length,`Code: ${M}; The provided arguments length (${I.length}) does not match the required ones (${F}).`),I.length===0)return w;return U(w,...I)}function P(M,w,I){if(!I)I=Error;class F extends I{constructor(...L){super(j(M,w,L))}toString(){return`${this.name} [${M}]: ${this.message}`}}Object.defineProperties(F.prototype,{name:{value:I.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${M}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),F.prototype.code=M,F.prototype[Y]=!0,J[M]=F}function g(M){let w="__node_internal_"+M.name;return Object.defineProperty(M,"name",{value:w}),M}function y(M,w){if(M&&w&&M!==w){if(Array.isArray(w.errors))return w.errors.push(M),w;let I=new V([w,M],w.message);return I.code=w.code,I}return M||w}class k extends Error{constructor(M="The operation was aborted",w=void 0){if(w!==void 0&&typeof w!=="object")throw new J.ERR_INVALID_ARG_TYPE("options","Object",w);super(M,w);this.code="ABORT_ERR",this.name="AbortError"}}P("ERR_ASSERTION","%s",Error),P("ERR_INVALID_ARG_TYPE",(M,w,I)=>{if(B(typeof M==="string","'name' must be a string"),!Array.isArray(w))w=[w];let F="The ";if(M.endsWith(" argument"))F+=`${M} `;else F+=`"${M}" ${M.includes(".")?"property":"argument"} `;F+="must be ";let L=[],_=[],A=[];for(let E of w)if(B(typeof E==="string","All expected entries have to be of type string"),K.includes(E))L.push(E.toLowerCase());else if(G.test(E))_.push(E);else B(E!=="object",'The value "object" should be written as "Object"'),A.push(E);if(_.length>0){let E=L.indexOf("object");if(E!==-1)L.splice(L,E,1),_.push("Object")}if(L.length>0){switch(L.length){case 1:F+=`of type ${L[0]}`;break;case 2:F+=`one of type ${L[0]} or ${L[1]}`;break;default:{let E=L.pop();F+=`one of type ${L.join(", ")}, or ${E}`}}if(_.length>0||A.length>0)F+=" or "}if(_.length>0){switch(_.length){case 1:F+=`an instance of ${_[0]}`;break;case 2:F+=`an instance of ${_[0]} or ${_[1]}`;break;default:{let E=_.pop();F+=`an instance of ${_.join(", ")}, or ${E}`}}if(A.length>0)F+=" or "}switch(A.length){case 0:break;case 1:if(A[0].toLowerCase()!==A[0])F+="an ";F+=`${A[0]}`;break;case 2:F+=`one of ${A[0]} or ${A[1]}`;break;default:{let E=A.pop();F+=`one of ${A.join(", ")}, or ${E}`}}if(I==null)F+=`. Received ${I}`;else if(typeof I==="function"&&I.name)F+=`. Received function ${I.name}`;else if(typeof I==="object"){var i;if((i=I.constructor)!==null&&i!==void 0&&i.name)F+=`. Received an instance of ${I.constructor.name}`;else{let E=X(I,{depth:-1});F+=`. Received ${E}`}}else{let E=X(I,{colors:!1});if(E.length>25)E=`${E.slice(0,25)}...`;F+=`. Received type ${typeof I} (${E})`}return F},TypeError),P("ERR_INVALID_ARG_VALUE",(M,w,I="is invalid")=>{let F=X(w);if(F.length>128)F=F.slice(0,128)+"...";return`The ${M.includes(".")?"property":"argument"} '${M}' ${I}. Received ${F}`},TypeError),P("ERR_INVALID_RETURN_VALUE",(M,w,I)=>{var F;let L=I!==null&&I!==void 0&&(F=I.constructor)!==null&&F!==void 0&&F.name?`instance of ${I.constructor.name}`:`type ${typeof I}`;return`Expected ${M} to be returned from the "${w}" function but got ${L}.`},TypeError),P("ERR_MISSING_ARGS",(...M)=>{B(M.length>0,"At least one arg needs to be specified");let w,I=M.length;switch(M=(Array.isArray(M)?M:[M]).map((F)=>`"${F}"`).join(" or "),I){case 1:w+=`The ${M[0]} argument`;break;case 2:w+=`The ${M[0]} and ${M[1]} arguments`;break;default:{let F=M.pop();w+=`The ${M.join(", ")}, and ${F} arguments`}break}return`${w} must be specified`},TypeError),P("ERR_OUT_OF_RANGE",(M,w,I)=>{B(w,'Missing "range" argument');let F;if(Number.isInteger(I)&&Math.abs(I)>4294967296)F=Z(String(I));else if(typeof I==="bigint"){F=String(I);let L=BigInt(2)**BigInt(32);if(I>L||I<-L)F=Z(F);F+="n"}else F=X(I);return`The value of "${M}" is out of range. It must be ${w}. Received ${F}`},RangeError),P("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),P("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),P("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),P("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),P("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),P("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),P("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),P("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),P("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),P("ERR_STREAM_WRITE_AFTER_END","write after end",Error),P("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),$.exports={AbortError:k,aggregateTwoErrors:g(y),hideStackFrames:g,codes:J}}),CX=I0((Q,$)=>{Object.defineProperty(Q,"__esModule",{value:!0});var U=new WeakMap,X=new WeakMap;function q(O){let C=U.get(O);return console.assert(C!=null,"'this' is expected an Event object, but got",O),C}function V(O){if(O.passiveListener!=null){if(typeof console!=="undefined"&&typeof console.error==="function")console.error("Unable to preventDefault inside passive event listener invocation.",O.passiveListener);return}if(!O.event.cancelable)return;if(O.canceled=!0,typeof O.event.preventDefault==="function")O.event.preventDefault()}function Y(O,C){U.set(this,{eventTarget:O,event:C,eventPhase:2,currentTarget:O,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:C.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});let x=Object.keys(C);for(let R=0;R<x.length;++R){let v=x[R];if(!(v in this))Object.defineProperty(this,v,K(v))}}if(Y.prototype={get type(){return q(this).event.type},get target(){return q(this).eventTarget},get currentTarget(){return q(this).currentTarget},composedPath(){let O=q(this).currentTarget;if(O==null)return[];return[O]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return q(this).eventPhase},stopPropagation(){let O=q(this);if(O.stopped=!0,typeof O.event.stopPropagation==="function")O.event.stopPropagation()},stopImmediatePropagation(){let O=q(this);if(O.stopped=!0,O.immediateStopped=!0,typeof O.event.stopImmediatePropagation==="function")O.event.stopImmediatePropagation()},get bubbles(){return Boolean(q(this).event.bubbles)},get cancelable(){return Boolean(q(this).event.cancelable)},preventDefault(){V(q(this))},get defaultPrevented(){return q(this).canceled},get composed(){return Boolean(q(this).event.composed)},get timeStamp(){return q(this).timeStamp},get srcElement(){return q(this).eventTarget},get cancelBubble(){return q(this).stopped},set cancelBubble(O){if(!O)return;let C=q(this);if(C.stopped=!0,typeof C.event.cancelBubble==="boolean")C.event.cancelBubble=!0},get returnValue(){return!q(this).canceled},set returnValue(O){if(!O)V(q(this))},initEvent(){}},Object.defineProperty(Y.prototype,"constructor",{value:Y,configurable:!0,writable:!0}),typeof window!=="undefined"&&typeof window.Event!=="undefined")Object.setPrototypeOf(Y.prototype,window.Event.prototype),X.set(window.Event.prototype,Y);function K(O){return{get(){return q(this).event[O]},set(C){q(this).event[O]=C},configurable:!0,enumerable:!0}}function G(O){return{value(){let C=q(this).event;return C[O].apply(C,arguments)},configurable:!0,enumerable:!0}}function J(O,C){let x=Object.keys(C);if(x.length===0)return O;function R(v,T){O.call(this,v,T)}R.prototype=Object.create(O.prototype,{constructor:{value:R,configurable:!0,writable:!0}});for(let v=0;v<x.length;++v){let T=x[v];if(!(T in O.prototype)){let n=typeof Object.getOwnPropertyDescriptor(C,T).value==="function";Object.defineProperty(R.prototype,T,n?G(T):K(T))}}return R}function B(O){if(O==null||O===Object.prototype)return Y;let C=X.get(O);if(C==null)C=J(B(Object.getPrototypeOf(O)),O),X.set(O,C);return C}function Z(O,C){return new(B(Object.getPrototypeOf(C)))(O,C)}function j(O){return q(O).immediateStopped}function P(O,C){q(O).eventPhase=C}function g(O,C){q(O).currentTarget=C}function y(O,C){q(O).passiveListener=C}var k=new WeakMap,M=1,w=2,I=3;function F(O){return O!==null&&typeof O==="object"}function L(O){let C=k.get(O);if(C==null)throw new TypeError("'this' is expected an EventTarget object, but got another value.");return C}function _(O){return{get(){let C=L(this).get(O);while(C!=null){if(C.listenerType===I)return C.listener;C=C.next}return null},set(C){if(typeof C!=="function"&&!F(C))C=null;let x=L(this),R=null,v=x.get(O);while(v!=null){if(v.listenerType===I)if(R!==null)R.next=v.next;else if(v.next!==null)x.set(O,v.next);else x.delete(O);else R=v;v=v.next}if(C!==null){let T={listener:C,listenerType:I,passive:!1,once:!1,next:null};if(R===null)x.set(O,T);else R.next=T}},configurable:!0,enumerable:!0}}function A(O,C){Object.defineProperty(O,`on${C}`,_(C))}function i(O){function C(){E.call(this)}C.prototype=Object.create(E.prototype,{constructor:{value:C,configurable:!0,writable:!0}});for(let x=0;x<O.length;++x)A(C.prototype,O[x]);return C}function E(){if(this instanceof E){k.set(this,new Map);return}if(arguments.length===1&&Array.isArray(arguments[0]))return i(arguments[0]);if(arguments.length>0){let O=new Array(arguments.length);for(let C=0;C<arguments.length;++C)O[C]=arguments[C];return i(O)}throw new TypeError("Cannot call a class as a function")}if(E.prototype={addEventListener(O,C,x){if(C==null)return;if(typeof C!=="function"&&!F(C))throw new TypeError("'listener' should be a function or an object.");let R=L(this),v=F(x),T=(v?Boolean(x.capture):Boolean(x))?M:w,n={listener:C,listenerType:T,passive:v&&Boolean(x.passive),once:v&&Boolean(x.once),next:null},e=R.get(O);if(e===void 0){R.set(O,n);return}let X0=null;while(e!=null){if(e.listener===C&&e.listenerType===T)return;X0=e,e=e.next}X0.next=n},removeEventListener(O,C,x){if(C==null)return;let R=L(this),v=(F(x)?Boolean(x.capture):Boolean(x))?M:w,T=null,n=R.get(O);while(n!=null){if(n.listener===C&&n.listenerType===v){if(T!==null)T.next=n.next;else if(n.next!==null)R.set(O,n.next);else R.delete(O);return}T=n,n=n.next}},dispatchEvent(O){if(O==null||typeof O.type!=="string")throw new TypeError('"event.type" should be a string.');let C=L(this),x=O.type,R=C.get(x);if(R==null)return!0;let v=Z(this,O),T=null;while(R!=null){if(R.once)if(T!==null)T.next=R.next;else if(R.next!==null)C.set(x,R.next);else C.delete(x);else T=R;if(y(v,R.passive?R.listener:null),typeof R.listener==="function")try{R.listener.call(this,v)}catch(n){if(typeof console!=="undefined"&&typeof console.error==="function")console.error(n)}else if(R.listenerType!==I&&typeof R.listener.handleEvent==="function")R.listener.handleEvent(v);if(j(v))break;R=R.next}return y(v,null),P(v,0),g(v,null),!v.defaultPrevented}},Object.defineProperty(E.prototype,"constructor",{value:E,configurable:!0,writable:!0}),typeof window!=="undefined"&&typeof window.EventTarget!=="undefined")Object.setPrototypeOf(E.prototype,window.EventTarget.prototype);Q.defineEventAttribute=A,Q.EventTarget=E,Q.default=E,$.exports=E,$.exports.EventTarget=$.exports.default=E,$.exports.defineEventAttribute=A}),d1=I0((Q,$)=>{Object.defineProperty(Q,"__esModule",{value:!0});var U=CX();class X extends U.EventTarget{constructor(){super();throw new TypeError("AbortSignal cannot be constructed directly")}get aborted(){let B=Y.get(this);if(typeof B!=="boolean")throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?"null":typeof this}`);return B}}U.defineEventAttribute(X.prototype,"abort");function q(){let B=Object.create(X.prototype);return U.EventTarget.call(B),Y.set(B,!1),B}function V(B){if(Y.get(B)!==!1)return;Y.set(B,!0),B.dispatchEvent({type:"abort"})}var Y=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,q())}get signal(){return J(this)}abort(){V(J(this))}}var G=new WeakMap;function J(B){let Z=G.get(B);if(Z==null)throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${B===null?"null":typeof B}`);return Z}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,$.exports=K,$.exports.AbortController=$.exports.default=K,$.exports.AbortSignal=X}),c0=I0((Q,$)=>{var U=(C2(),o0(L2)),{format:X,inspect:q}=zQ(),{codes:{ERR_INVALID_ARG_TYPE:V}}=h0(),{kResistStopPropagation:Y,AggregateError:K,SymbolDispose:G}=O0(),J=globalThis.AbortSignal||d1().AbortSignal,B=globalThis.AbortController||d1().AbortController,Z=Object.getPrototypeOf(async function(){}).constructor,j=globalThis.Blob||U.Blob,P=typeof j!=="undefined"?function k(M){return M instanceof j}:function k(M){return!1},g=(k,M)=>{if(k!==void 0&&(k===null||typeof k!=="object"||!("aborted"in k)))throw new V(M,"AbortSignal",k)},y=(k,M)=>{if(typeof k!=="function")throw new V(M,"Function",k)};$.exports={AggregateError:K,kEmptyObject:Object.freeze({}),once(k){let M=!1;return function(...w){if(M)return;M=!0,k.apply(this,w)}},createDeferredPromise:function(){let k,M;return{promise:new Promise((w,I)=>{k=w,M=I}),resolve:k,reject:M}},promisify(k){return new Promise((M,w)=>{k((I,...F)=>{if(I)return w(I);return M(...F)})})},debuglog(){return function(){}},format:X,inspect:q,types:{isAsyncFunction(k){return k instanceof Z},isArrayBufferView(k){return ArrayBuffer.isView(k)}},isBlob:P,deprecate(k,M){return k},addAbortListener:(m1(),o0(p1)).addAbortListener||function k(M,w){if(M===void 0)throw new V("signal","AbortSignal",M);g(M,"signal"),y(w,"listener");let I;if(M.aborted)queueMicrotask(()=>w());else M.addEventListener("abort",w,{__proto__:null,once:!0,[Y]:!0}),I=()=>{M.removeEventListener("abort",w)};return{__proto__:null,[G](){var F;(F=I)===null||F===void 0||F()}}},AbortSignalAny:J.any||function k(M){if(M.length===1)return M[0];let w=new B,I=()=>w.abort();return M.forEach((F)=>{g(F,"signals"),F.addEventListener("abort",I,{once:!0})}),w.signal.addEventListener("abort",()=>{M.forEach((F)=>F.removeEventListener("abort",I))},{once:!0}),w.signal}},$.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}),l1=I0((Q,$)=>{var{ArrayIsArray:U,ArrayPrototypeIncludes:X,ArrayPrototypeJoin:q,ArrayPrototypeMap:V,NumberIsInteger:Y,NumberIsNaN:K,NumberMAX_SAFE_INTEGER:G,NumberMIN_SAFE_INTEGER:J,NumberParseInt:B,ObjectPrototypeHasOwnProperty:Z,RegExpPrototypeExec:j,String:P,StringPrototypeToUpperCase:g,StringPrototypeTrim:y}=O0(),{hideStackFrames:k,codes:{ERR_SOCKET_BAD_PORT:M,ERR_INVALID_ARG_TYPE:w,ERR_INVALID_ARG_VALUE:I,ERR_OUT_OF_RANGE:F,ERR_UNKNOWN_SIGNAL:L}}=h0(),{normalizeEncoding:_}=c0(),{isAsyncFunction:A,isArrayBufferView:i}=c0().types,E={};function O(D){return D===(D|0)}function C(D){return D===D>>>0}var x=/^[0-7]+$/,R="must be a 32-bit unsigned integer or an octal string";function v(D,d,$0){if(typeof D==="undefined")D=$0;if(typeof D==="string"){if(j(x,D)===null)throw new I(d,D,R);D=B(D,8)}return e(D,d),D}var T=k((D,d,$0=J,l=G)=>{if(typeof D!=="number")throw new w(d,"number",D);if(!Y(D))throw new F(d,"an integer",D);if(D<$0||D>l)throw new F(d,`>= ${$0} && <= ${l}`,D)}),n=k((D,d,$0=-2147483648,l=2147483647)=>{if(typeof D!=="number")throw new w(d,"number",D);if(!Y(D))throw new F(d,"an integer",D);if(D<$0||D>l)throw new F(d,`>= ${$0} && <= ${l}`,D)}),e=k((D,d,$0=!1)=>{if(typeof D!=="number")throw new w(d,"number",D);if(!Y(D))throw new F(d,"an integer",D);let l=$0?1:0,K0=4294967295;if(D<l||D>K0)throw new F(d,`>= ${l} && <= ${K0}`,D)});function X0(D,d){if(typeof D!=="string")throw new w(d,"string",D)}function W0(D,d,$0=void 0,l){if(typeof D!=="number")throw new w(d,"number",D);if($0!=null&&D<$0||l!=null&&D>l||($0!=null||l!=null)&&K(D))throw new F(d,`${$0!=null?`>= ${$0}`:""}${$0!=null&&l!=null?" && ":""}${l!=null?`<= ${l}`:""}`,D)}var u=k((D,d,$0)=>{if(!X($0,D)){let l="must be one of: "+q(V($0,(K0)=>typeof K0==="string"?`'${K0}'`:P(K0)),", ");throw new I(d,D,l)}});function Y0(D,d){if(typeof D!=="boolean")throw new w(d,"boolean",D)}function H(D,d,$0){return D==null||!Z(D,d)?$0:D[d]}var m=k((D,d,$0=null)=>{let l=H($0,"allowArray",!1),K0=H($0,"allowFunction",!1);if(!H($0,"nullable",!1)&&D===null||!l&&U(D)||typeof D!=="object"&&(!K0||typeof D!=="function"))throw new w(d,"Object",D)}),U0=k((D,d)=>{if(D!=null&&typeof D!=="object"&&typeof D!=="function")throw new w(d,"a dictionary",D)}),b=k((D,d,$0=0)=>{if(!U(D))throw new w(d,"Array",D);if(D.length<$0){let l=`must be longer than ${$0}`;throw new I(d,D,l)}});function V0(D,d){b(D,d);for(let $0=0;$0<D.length;$0++)X0(D[$0],`${d}[${$0}]`)}function B0(D,d){b(D,d);for(let $0=0;$0<D.length;$0++)Y0(D[$0],`${d}[${$0}]`)}function Z0(D,d){b(D,d);for(let $0=0;$0<D.length;$0++){let l=D[$0],K0=`${d}[${$0}]`;if(l==null)throw new w(K0,"AbortSignal",l);w0(l,K0)}}function z0(D,d="signal"){if(X0(D,d),E[D]===void 0){if(E[g(D)]!==void 0)throw new L(D+" (signals must use all capital letters)");throw new L(D)}}var c=k((D,d="buffer")=>{if(!i(D))throw new w(d,["Buffer","TypedArray","DataView"],D)});function p(D,d){let $0=_(d),l=D.length;if($0==="hex"&&l%2!==0)throw new I("encoding",d,`is invalid for data of length ${l}`)}function Q0(D,d="Port",$0=!0){if(typeof D!=="number"&&typeof D!=="string"||typeof D==="string"&&y(D).length===0||+D!==+D>>>0||D>65535||D===0&&!$0)throw new M(d,D,$0);return D|0}var w0=k((D,d)=>{if(D!==void 0&&(D===null||typeof D!=="object"||!("aborted"in D)))throw new w(d,"AbortSignal",D)}),G0=k((D,d)=>{if(typeof D!=="function")throw new w(d,"Function",D)}),N=k((D,d)=>{if(typeof D!=="function"||A(D))throw new w(d,"Function",D)}),S=k((D,d)=>{if(D!==void 0)throw new w(d,"undefined",D)});function f(D,d,$0){if(!X($0,D))throw new w(d,`('${q($0,"|")}')`,D)}var r=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function s(D,d){if(typeof D==="undefined"||!j(r,D))throw new I(d,D,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function o(D){if(typeof D==="string")return s(D,"hints"),D;else if(U(D)){let d=D.length,$0="";if(d===0)return $0;for(let l=0;l<d;l++){let K0=D[l];if(s(K0,"hints"),$0+=K0,l!==d-1)$0+=", "}return $0}throw new I("hints",D,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}$.exports={isInt32:O,isUint32:C,parseFileMode:v,validateArray:b,validateStringArray:V0,validateBooleanArray:B0,validateAbortSignalArray:Z0,validateBoolean:Y0,validateBuffer:c,validateDictionary:U0,validateEncoding:p,validateFunction:G0,validateInt32:n,validateInteger:T,validateNumber:W0,validateObject:m,validateOneOf:u,validatePlainFunction:N,validatePort:Q0,validateSignalName:z0,validateString:X0,validateUint32:e,validateUndefined:S,validateUnion:f,validateAbortSignal:w0,validateLinkHeaderValue:o}}),t2=I0((Q,$)=>{$.exports=globalThis.process}),N2=I0((Q,$)=>{var{SymbolAsyncIterator:U,SymbolIterator:X,SymbolFor:q}=O0(),V=q("nodejs.stream.destroyed"),Y=q("nodejs.stream.errored"),K=q("nodejs.stream.readable"),G=q("nodejs.stream.writable"),J=q("nodejs.stream.disturbed"),B=q("nodejs.webstream.isClosedPromise"),Z=q("nodejs.webstream.controllerErrorFunction");function j(H,m=!1){var U0;return!!(H&&typeof H.pipe==="function"&&typeof H.on==="function"&&(!m||typeof H.pause==="function"&&typeof H.resume==="function")&&(!H._writableState||((U0=H._readableState)===null||U0===void 0?void 0:U0.readable)!==!1)&&(!H._writableState||H._readableState))}function P(H){var m;return!!(H&&typeof H.write==="function"&&typeof H.on==="function"&&(!H._readableState||((m=H._writableState)===null||m===void 0?void 0:m.writable)!==!1))}function g(H){return!!(H&&typeof H.pipe==="function"&&H._readableState&&typeof H.on==="function"&&typeof H.write==="function")}function y(H){return H&&(H._readableState||H._writableState||typeof H.write==="function"&&typeof H.on==="function"||typeof H.pipe==="function"&&typeof H.on==="function")}function k(H){return!!(H&&!y(H)&&typeof H.pipeThrough==="function"&&typeof H.getReader==="function"&&typeof H.cancel==="function")}function M(H){return!!(H&&!y(H)&&typeof H.getWriter==="function"&&typeof H.abort==="function")}function w(H){return!!(H&&!y(H)&&typeof H.readable==="object"&&typeof H.writable==="object")}function I(H){return k(H)||M(H)||w(H)}function F(H,m){if(H==null)return!1;if(m===!0)return typeof H[U]==="function";if(m===!1)return typeof H[X]==="function";return typeof H[U]==="function"||typeof H[X]==="function"}function L(H){if(!y(H))return null;let{_writableState:m,_readableState:U0}=H,b=m||U0;return!!(H.destroyed||H[V]||b!==null&&b!==void 0&&b.destroyed)}function _(H){if(!P(H))return null;if(H.writableEnded===!0)return!0;let m=H._writableState;if(m!==null&&m!==void 0&&m.errored)return!1;if(typeof(m===null||m===void 0?void 0:m.ended)!=="boolean")return null;return m.ended}function A(H,m){if(!P(H))return null;if(H.writableFinished===!0)return!0;let U0=H._writableState;if(U0!==null&&U0!==void 0&&U0.errored)return!1;if(typeof(U0===null||U0===void 0?void 0:U0.finished)!=="boolean")return null;return!!(U0.finished||m===!1&&U0.ended===!0&&U0.length===0)}function i(H){if(!j(H))return null;if(H.readableEnded===!0)return!0;let m=H._readableState;if(!m||m.errored)return!1;if(typeof(m===null||m===void 0?void 0:m.ended)!=="boolean")return null;return m.ended}function E(H,m){if(!j(H))return null;let U0=H._readableState;if(U0!==null&&U0!==void 0&&U0.errored)return!1;if(typeof(U0===null||U0===void 0?void 0:U0.endEmitted)!=="boolean")return null;return!!(U0.endEmitted||m===!1&&U0.ended===!0&&U0.length===0)}function O(H){if(H&&H[K]!=null)return H[K];if(typeof(H===null||H===void 0?void 0:H.readable)!=="boolean")return null;if(L(H))return!1;return j(H)&&H.readable&&!E(H)}function C(H){if(H&&H[G]!=null)return H[G];if(typeof(H===null||H===void 0?void 0:H.writable)!=="boolean")return null;if(L(H))return!1;return P(H)&&H.writable&&!_(H)}function x(H,m){if(!y(H))return null;if(L(H))return!0;if((m===null||m===void 0?void 0:m.readable)!==!1&&O(H))return!1;if((m===null||m===void 0?void 0:m.writable)!==!1&&C(H))return!1;return!0}function R(H){var m,U0;if(!y(H))return null;if(H.writableErrored)return H.writableErrored;return(m=(U0=H._writableState)===null||U0===void 0?void 0:U0.errored)!==null&&m!==void 0?m:null}function v(H){var m,U0;if(!y(H))return null;if(H.readableErrored)return H.readableErrored;return(m=(U0=H._readableState)===null||U0===void 0?void 0:U0.errored)!==null&&m!==void 0?m:null}function T(H){if(!y(H))return null;if(typeof H.closed==="boolean")return H.closed;let{_writableState:m,_readableState:U0}=H;if(typeof(m===null||m===void 0?void 0:m.closed)==="boolean"||typeof(U0===null||U0===void 0?void 0:U0.closed)==="boolean")return(m===null||m===void 0?void 0:m.closed)||(U0===null||U0===void 0?void 0:U0.closed);if(typeof H._closed==="boolean"&&n(H))return H._closed;return null}function n(H){return typeof H._closed==="boolean"&&typeof H._defaultKeepAlive==="boolean"&&typeof H._removedConnection==="boolean"&&typeof H._removedContLen==="boolean"}function e(H){return typeof H._sent100==="boolean"&&n(H)}function X0(H){var m;return typeof H._consuming==="boolean"&&typeof H._dumped==="boolean"&&((m=H.req)===null||m===void 0?void 0:m.upgradeOrConnect)===void 0}function W0(H){if(!y(H))return null;let{_writableState:m,_readableState:U0}=H,b=m||U0;return!b&&e(H)||!!(b&&b.autoDestroy&&b.emitClose&&b.closed===!1)}function u(H){var m;return!!(H&&((m=H[J])!==null&&m!==void 0?m:H.readableDidRead||H.readableAborted))}function Y0(H){var m,U0,b,V0,B0,Z0,z0,c,p,Q0;return!!(H&&((m=(U0=(b=(V0=(B0=(Z0=H[Y])!==null&&Z0!==void 0?Z0:H.readableErrored)!==null&&B0!==void 0?B0:H.writableErrored)!==null&&V0!==void 0?V0:(z0=H._readableState)===null||z0===void 0?void 0:z0.errorEmitted)!==null&&b!==void 0?b:(c=H._writableState)===null||c===void 0?void 0:c.errorEmitted)!==null&&U0!==void 0?U0:(p=H._readableState)===null||p===void 0?void 0:p.errored)!==null&&m!==void 0?m:(Q0=H._writableState)===null||Q0===void 0?void 0:Q0.errored))}$.exports={isDestroyed:L,kIsDestroyed:V,isDisturbed:u,kIsDisturbed:J,isErrored:Y0,kIsErrored:Y,isReadable:O,kIsReadable:K,kIsClosedPromise:B,kControllerErrorFunction:Z,kIsWritable:G,isClosed:T,isDuplexNodeStream:g,isFinished:x,isIterable:F,isReadableNodeStream:j,isReadableStream:k,isReadableEnded:i,isReadableFinished:E,isReadableErrored:v,isNodeStream:y,isWebStream:I,isWritable:C,isWritableNodeStream:P,isWritableStream:M,isWritableEnded:_,isWritableFinished:A,isWritableErrored:R,isServerRequest:X0,isServerResponse:e,willEmitClose:W0,isTransformStream:w}}),k2=I0((Q,$)=>{var U=t2(),{AbortError:X,codes:q}=h0(),{ERR_INVALID_ARG_TYPE:V,ERR_STREAM_PREMATURE_CLOSE:Y}=q,{kEmptyObject:K,once:G}=c0(),{validateAbortSignal:J,validateFunction:B,validateObject:Z,validateBoolean:j}=l1(),{Promise:P,PromisePrototypeThen:g,SymbolDispose:y}=O0(),{isClosed:k,isReadable:M,isReadableNodeStream:w,isReadableStream:I,isReadableFinished:F,isReadableErrored:L,isWritable:_,isWritableNodeStream:A,isWritableStream:i,isWritableFinished:E,isWritableErrored:O,isNodeStream:C,willEmitClose:x,kIsClosedPromise:R}=N2(),v;function T(u){return u.setHeader&&typeof u.abort==="function"}var n=()=>{};function e(u,Y0,H){var m,U0;if(arguments.length===2)H=Y0,Y0=K;else if(Y0==null)Y0=K;else Z(Y0,"options");if(B(H,"callback"),J(Y0.signal,"options.signal"),H=G(H),I(u)||i(u))return X0(u,Y0,H);if(!C(u))throw new V("stream",["ReadableStream","WritableStream","Stream"],u);let b=(m=Y0.readable)!==null&&m!==void 0?m:w(u),V0=(U0=Y0.writable)!==null&&U0!==void 0?U0:A(u),B0=u._writableState,Z0=u._readableState,z0=()=>{if(!u.writable)Q0()},c=x(u)&&w(u)===b&&A(u)===V0,p=E(u,!1),Q0=()=>{if(p=!0,u.destroyed)c=!1;if(c&&(!u.readable||b))return;if(!b||w0)H.call(u)},w0=F(u,!1),G0=()=>{if(w0=!0,u.destroyed)c=!1;if(c&&(!u.writable||V0))return;if(!V0||p)H.call(u)},N=(D)=>{H.call(u,D)},S=k(u),f=()=>{S=!0;let D=O(u)||L(u);if(D&&typeof D!=="boolean")return H.call(u,D);if(b&&!w0&&w(u,!0)){if(!F(u,!1))return H.call(u,new Y)}if(V0&&!p){if(!E(u,!1))return H.call(u,new Y)}H.call(u)},r=()=>{S=!0;let D=O(u)||L(u);if(D&&typeof D!=="boolean")return H.call(u,D);H.call(u)},s=()=>{u.req.on("finish",Q0)};if(T(u)){if(u.on("complete",Q0),!c)u.on("abort",f);if(u.req)s();else u.on("request",s)}else if(V0&&!B0)u.on("end",z0),u.on("close",z0);if(!c&&typeof u.aborted==="boolean")u.on("aborted",f);if(u.on("end",G0),u.on("finish",Q0),Y0.error!==!1)u.on("error",N);if(u.on("close",f),S)U.nextTick(f);else if(B0!==null&&B0!==void 0&&B0.errorEmitted||Z0!==null&&Z0!==void 0&&Z0.errorEmitted){if(!c)U.nextTick(r)}else if(!b&&(!c||M(u))&&(p||_(u)===!1))U.nextTick(r);else if(!V0&&(!c||_(u))&&(w0||M(u)===!1))U.nextTick(r);else if(Z0&&u.req&&u.aborted)U.nextTick(r);let o=()=>{if(H=n,u.removeListener("aborted",f),u.removeListener("complete",Q0),u.removeListener("abort",f),u.removeListener("request",s),u.req)u.req.removeListener("finish",Q0);u.removeListener("end",z0),u.removeListener("close",z0),u.removeListener("finish",Q0),u.removeListener("end",G0),u.removeListener("error",N),u.removeListener("close",f)};if(Y0.signal&&!S){let D=()=>{let d=H;o(),d.call(u,new X(void 0,{cause:Y0.signal.reason}))};if(Y0.signal.aborted)U.nextTick(D);else{v=v||c0().addAbortListener;let d=v(Y0.signal,D),$0=H;H=G((...l)=>{d[y](),$0.apply(u,l)})}}return o}function X0(u,Y0,H){let m=!1,U0=n;if(Y0.signal)if(U0=()=>{m=!0,H.call(u,new X(void 0,{cause:Y0.signal.reason}))},Y0.signal.aborted)U.nextTick(U0);else{v=v||c0().addAbortListener;let V0=v(Y0.signal,U0),B0=H;H=G((...Z0)=>{V0[y](),B0.apply(u,Z0)})}let b=(...V0)=>{if(!m)U.nextTick(()=>H.apply(u,V0))};return g(u[R].promise,b,b),n}function W0(u,Y0){var H;let m=!1;if(Y0===null)Y0=K;if((H=Y0)!==null&&H!==void 0&&H.cleanup)j(Y0.cleanup,"cleanup"),m=Y0.cleanup;return new P((U0,b)=>{let V0=e(u,Y0,(B0)=>{if(m)V0();if(B0)b(B0);else U0()})})}$.exports=e,$.exports.finished=W0}),Z1=I0((Q,$)=>{var U=t2(),{aggregateTwoErrors:X,codes:{ERR_MULTIPLE_CALLBACK:q},AbortError:V}=h0(),{Symbol:Y}=O0(),{kIsDestroyed:K,isDestroyed:G,isFinished:J,isServerRequest:B}=N2(),Z=Y("kDestroy"),j=Y("kConstruct");function P(x,R,v){if(x){if(x.stack,R&&!R.errored)R.errored=x;if(v&&!v.errored)v.errored=x}}function g(x,R){let v=this._readableState,T=this._writableState,n=T||v;if(T!==null&&T!==void 0&&T.destroyed||v!==null&&v!==void 0&&v.destroyed){if(typeof R==="function")R();return this}if(P(x,T,v),T)T.destroyed=!0;if(v)v.destroyed=!0;if(!n.constructed)this.once(Z,function(e){y(this,X(e,x),R)});else y(this,x,R);return this}function y(x,R,v){let T=!1;function n(e){if(T)return;T=!0;let{_readableState:X0,_writableState:W0}=x;if(P(e,W0,X0),W0)W0.closed=!0;if(X0)X0.closed=!0;if(typeof v==="function")v(e);if(e)U.nextTick(k,x,e);else U.nextTick(M,x)}try{x._destroy(R||null,n)}catch(e){n(e)}}function k(x,R){w(x,R),M(x)}function M(x){let{_readableState:R,_writableState:v}=x;if(v)v.closeEmitted=!0;if(R)R.closeEmitted=!0;if(v!==null&&v!==void 0&&v.emitClose||R!==null&&R!==void 0&&R.emitClose)x.emit("close")}function w(x,R){let{_readableState:v,_writableState:T}=x;if(T!==null&&T!==void 0&&T.errorEmitted||v!==null&&v!==void 0&&v.errorEmitted)return;if(T)T.errorEmitted=!0;if(v)v.errorEmitted=!0;x.emit("error",R)}function I(){let x=this._readableState,R=this._writableState;if(x)x.constructed=!0,x.closed=!1,x.closeEmitted=!1,x.destroyed=!1,x.errored=null,x.errorEmitted=!1,x.reading=!1,x.ended=x.readable===!1,x.endEmitted=x.readable===!1;if(R)R.constructed=!0,R.destroyed=!1,R.closed=!1,R.closeEmitted=!1,R.errored=null,R.errorEmitted=!1,R.finalCalled=!1,R.prefinished=!1,R.ended=R.writable===!1,R.ending=R.writable===!1,R.finished=R.writable===!1}function F(x,R,v){let{_readableState:T,_writableState:n}=x;if(n!==null&&n!==void 0&&n.destroyed||T!==null&&T!==void 0&&T.destroyed)return this;if(T!==null&&T!==void 0&&T.autoDestroy||n!==null&&n!==void 0&&n.autoDestroy)x.destroy(R);else if(R){if(R.stack,n&&!n.errored)n.errored=R;if(T&&!T.errored)T.errored=R;if(v)U.nextTick(w,x,R);else w(x,R)}}function L(x,R){if(typeof x._construct!=="function")return;let{_readableState:v,_writableState:T}=x;if(v)v.constructed=!1;if(T)T.constructed=!1;if(x.once(j,R),x.listenerCount(j)>1)return;U.nextTick(_,x)}function _(x){let R=!1;function v(T){if(R){F(x,T!==null&&T!==void 0?T:new q);return}R=!0;let{_readableState:n,_writableState:e}=x,X0=e||n;if(n)n.constructed=!0;if(e)e.constructed=!0;if(X0.destroyed)x.emit(Z,T);else if(T)F(x,T,!0);else U.nextTick(A,x)}try{x._construct((T)=>{U.nextTick(v,T)})}catch(T){U.nextTick(v,T)}}function A(x){x.emit(j)}function i(x){return(x===null||x===void 0?void 0:x.setHeader)&&typeof x.abort==="function"}function E(x){x.emit("close")}function O(x,R){x.emit("error",R),U.nextTick(E,x)}function C(x,R){if(!x||G(x))return;if(!R&&!J(x))R=new V;if(B(x))x.socket=null,x.destroy(R);else if(i(x))x.abort();else if(i(x.req))x.req.abort();else if(typeof x.destroy==="function")x.destroy(R);else if(typeof x.close==="function")x.close();else if(R)U.nextTick(O,x,R);else U.nextTick(E,x);if(!x.destroyed)x[K]=!0}$.exports={construct:L,destroyer:C,destroy:g,undestroy:I,errorOrDestroy:F}}),h8=I0((Q,$)=>{var{ArrayIsArray:U,ObjectSetPrototypeOf:X}=O0(),{EventEmitter:q}=(m1(),o0(p1));function V(K){q.call(this,K)}X(V.prototype,q.prototype),X(V,q),V.prototype.pipe=function(K,G){let J=this;function B(M){if(K.writable&&K.write(M)===!1&&J.pause)J.pause()}J.on("data",B);function Z(){if(J.readable&&J.resume)J.resume()}if(K.on("drain",Z),!K._isStdio&&(!G||G.end!==!1))J.on("end",P),J.on("close",g);let j=!1;function P(){if(j)return;j=!0,K.end()}function g(){if(j)return;if(j=!0,typeof K.destroy==="function")K.destroy()}function y(M){if(k(),q.listenerCount(this,"error")===0)this.emit("error",M)}Y(J,"error",y),Y(K,"error",y);function k(){J.removeListener("data",B),K.removeListener("drain",Z),J.removeListener("end",P),J.removeListener("close",g),J.removeListener("error",y),K.removeListener("error",y),J.removeListener("end",k),J.removeListener("close",k),K.removeListener("close",k)}return J.on("end",k),J.on("close",k),K.on("close",k),K.emit("pipe",J),K};function Y(K,G,J){if(typeof K.prependListener==="function")return K.prependListener(G,J);if(!K._events||!K._events[G])K.on(G,J);else if(U(K._events[G]))K._events[G].unshift(J);else K._events[G]=[J,K._events[G]]}$.exports={Stream:V,prependListener:Y}}),N6=I0((Q,$)=>{var{SymbolDispose:U}=O0(),{AbortError:X,codes:q}=h0(),{isNodeStream:V,isWebStream:Y,kControllerErrorFunction:K}=N2(),G=k2(),{ERR_INVALID_ARG_TYPE:J}=q,B,Z=(j,P)=>{if(typeof j!=="object"||!("aborted"in j))throw new J(P,"AbortSignal",j)};$.exports.addAbortSignal=function j(P,g){if(Z(P,"signal"),!V(g)&&!Y(g))throw new J("stream",["ReadableStream","WritableStream","Stream"],g);return $.exports.addAbortSignalNoValidate(P,g)},$.exports.addAbortSignalNoValidate=function(j,P){if(typeof j!=="object"||!("aborted"in j))return P;let g=V(P)?()=>{P.destroy(new X(void 0,{cause:j.reason}))}:()=>{P[K](new X(void 0,{cause:j.reason}))};if(j.aborted)g();else{B=B||c0().addAbortListener;let y=B(j,g);G(P,y[U])}return P}}),OX=I0((Q,$)=>{var{StringPrototypeSlice:U,SymbolIterator:X,TypedArrayPrototypeSet:q,Uint8Array:V}=O0(),{Buffer:Y}=(C2(),o0(L2)),{inspect:K}=c0();$.exports=class G{constructor(){this.head=null,this.tail=null,this.length=0}push(J){let B={data:J,next:null};if(this.length>0)this.tail.next=B;else this.head=B;this.tail=B,++this.length}unshift(J){let B={data:J,next:this.head};if(this.length===0)this.tail=B;this.head=B,++this.length}shift(){if(this.length===0)return;let J=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;return--this.length,J}clear(){this.head=this.tail=null,this.length=0}join(J){if(this.length===0)return"";let B=this.head,Z=""+B.data;while((B=B.next)!==null)Z+=J+B.data;return Z}concat(J){if(this.length===0)return Y.alloc(0);let B=Y.allocUnsafe(J>>>0),Z=this.head,j=0;while(Z)q(B,Z.data,j),j+=Z.data.length,Z=Z.next;return B}consume(J,B){let Z=this.head.data;if(J<Z.length){let j=Z.slice(0,J);return this.head.data=Z.slice(J),j}if(J===Z.length)return this.shift();return B?this._getString(J):this._getBuffer(J)}first(){return this.head.data}*[X](){for(let J=this.head;J;J=J.next)yield J.data}_getString(J){let B="",Z=this.head,j=0;do{let P=Z.data;if(J>P.length)B+=P,J-=P.length;else{if(J===P.length)if(B+=P,++j,Z.next)this.head=Z.next;else this.head=this.tail=null;else B+=U(P,0,J),this.head=Z,Z.data=U(P,J);break}++j}while((Z=Z.next)!==null);return this.length-=j,B}_getBuffer(J){let B=Y.allocUnsafe(J),Z=J,j=this.head,P=0;do{let g=j.data;if(J>g.length)q(B,g,Z-J),J-=g.length;else{if(J===g.length)if(q(B,g,Z-J),++P,j.next)this.head=j.next;else this.head=this.tail=null;else q(B,new V(g.buffer,g.byteOffset,J),Z-J),this.head=j,j.data=g.slice(J);break}++P}while((j=j.next)!==null);return this.length-=P,B}[Symbol.for("nodejs.util.inspect.custom")](J,B){return K(this,{...B,depth:0,customInspect:!1})}}}),D6=I0((Q,$)=>{var{MathFloor:U,NumberIsInteger:X}=O0(),{validateInteger:q}=l1(),{ERR_INVALID_ARG_VALUE:V}=h0().codes,Y=16384,K=16;function G(j,P,g){return j.highWaterMark!=null?j.highWaterMark:P?j[g]:null}function J(j){return j?K:Y}function B(j,P){if(q(P,"value",0),j)K=P;else Y=P}function Z(j,P,g,y){let k=G(P,y,g);if(k!=null){if(!X(k)||k<0){let M=y?`options.${g}`:"options.highWaterMark";throw new V(M,k)}return U(k)}return J(j.objectMode)}$.exports={getHighWaterMark:Z,getDefaultHighWaterMark:J,setDefaultHighWaterMark:B}}),NX=I0((Q,$)=>{/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var U=(C2(),o0(L2)),X=U.Buffer;function q(Y,K){for(var G in Y)K[G]=Y[G]}if(X.from&&X.alloc&&X.allocUnsafe&&X.allocUnsafeSlow)$.exports=U;else q(U,Q),Q.Buffer=V;function V(Y,K,G){return X(Y,K,G)}V.prototype=Object.create(X.prototype),q(X,V),V.from=function(Y,K,G){if(typeof Y==="number")throw new TypeError("Argument must not be a number");return X(Y,K,G)},V.alloc=function(Y,K,G){if(typeof Y!=="number")throw new TypeError("Argument must be a number");var J=X(Y);if(K!==void 0)if(typeof G==="string")J.fill(K,G);else J.fill(K);else J.fill(0);return J},V.allocUnsafe=function(Y){if(typeof Y!=="number")throw new TypeError("Argument must be a number");return X(Y)},V.allocUnsafeSlow=function(Y){if(typeof Y!=="number")throw new TypeError("Argument must be a number");return U.SlowBuffer(Y)}}),DX=I0((Q)=>{var $=NX().Buffer,U=$.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 I;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(I)return;w=(""+w).toLowerCase(),I=!0}}function q(w){var I=X(w);if(typeof I!=="string"&&($.isEncoding===U||!U(w)))throw new Error("Unknown encoding: "+w);return I||w}Q.StringDecoder=V;function V(w){this.encoding=q(w);var I;switch(this.encoding){case"utf16le":this.text=j,this.end=P,I=4;break;case"utf8":this.fillLast=J,I=4;break;case"base64":this.text=g,this.end=y,I=3;break;default:this.write=k,this.end=M;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=$.allocUnsafe(I)}V.prototype.write=function(w){if(w.length===0)return"";var I,F;if(this.lastNeed){if(I=this.fillLast(w),I===void 0)return"";F=this.lastNeed,this.lastNeed=0}else F=0;if(F<w.length)return I?I+this.text(w,F):this.text(w,F);return I||""},V.prototype.end=Z,V.prototype.text=B,V.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 Y(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,I,F){var L=I.length-1;if(L<F)return 0;var _=Y(I[L]);if(_>=0){if(_>0)w.lastNeed=_-1;return _}if(--L<F||_===-2)return 0;if(_=Y(I[L]),_>=0){if(_>0)w.lastNeed=_-2;return _}if(--L<F||_===-2)return 0;if(_=Y(I[L]),_>=0){if(_>0)if(_===2)_=0;else w.lastNeed=_-3;return _}return 0}function G(w,I,F){if((I[0]&192)!==128)return w.lastNeed=0,"�";if(w.lastNeed>1&&I.length>1){if((I[1]&192)!==128)return w.lastNeed=1,"�";if(w.lastNeed>2&&I.length>2){if((I[2]&192)!==128)return w.lastNeed=2,"�"}}}function J(w){var I=this.lastTotal-this.lastNeed,F=G(this,w,I);if(F!==void 0)return F;if(this.lastNeed<=w.length)return w.copy(this.lastChar,I,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);w.copy(this.lastChar,I,0,w.length),this.lastNeed-=w.length}function B(w,I){var F=K(this,w,I);if(!this.lastNeed)return w.toString("utf8",I);this.lastTotal=F;var L=w.length-(F-this.lastNeed);return w.copy(this.lastChar,0,L),w.toString("utf8",I,L)}function Z(w){var I=w&&w.length?this.write(w):"";if(this.lastNeed)return I+"�";return I}function j(w,I){if((w.length-I)%2===0){var F=w.toString("utf16le",I);if(F){var L=F.charCodeAt(F.length-1);if(L>=55296&&L<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=w[w.length-2],this.lastChar[1]=w[w.length-1],F.slice(0,-1)}return F}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=w[w.length-1],w.toString("utf16le",I,w.length-1)}function P(w){var I=w&&w.length?this.write(w):"";if(this.lastNeed){var F=this.lastTotal-this.lastNeed;return I+this.lastChar.toString("utf16le",0,F)}return I}function g(w,I){var F=(w.length-I)%3;if(F===0)return w.toString("base64",I);if(this.lastNeed=3-F,this.lastTotal=3,F===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",I,w.length-F)}function y(w){var I=w&&w.length?this.write(w):"";if(this.lastNeed)return I+this.lastChar.toString("base64",0,3-this.lastNeed);return I}function k(w){return w.toString(this.encoding)}function M(w){return w&&w.length?this.write(w):""}}),jQ=I0((Q,$)=>{var U=t2(),{PromisePrototypeThen:X,SymbolAsyncIterator:q,SymbolIterator:V}=O0(),{Buffer:Y}=(C2(),o0(L2)),{ERR_INVALID_ARG_TYPE:K,ERR_STREAM_NULL_VALUES:G}=h0().codes;function J(B,Z,j){let P;if(typeof Z==="string"||Z instanceof Y)return new B({objectMode:!0,...j,read(){this.push(Z),this.push(null)}});let g;if(Z&&Z[q])g=!0,P=Z[q]();else if(Z&&Z[V])g=!1,P=Z[V]();else throw new K("iterable",["Iterable"],Z);let y=new B({objectMode:!0,highWaterMark:1,...j}),k=!1;y._read=function(){if(!k)k=!0,w()},y._destroy=function(I,F){X(M(I),()=>U.nextTick(F,I),(L)=>U.nextTick(F,L||I))};async function M(I){let F=I!==void 0&&I!==null,L=typeof P.throw==="function";if(F&&L){let{value:_,done:A}=await P.throw(I);if(await _,A)return}if(typeof P.return==="function"){let{value:_}=await P.return();await _}}async function w(){for(;;){try{let{value:I,done:F}=g?await P.next():P.next();if(F)y.push(null);else{let L=I&&typeof I.then==="function"?await I:I;if(L===null)throw k=!1,new G;else if(y.push(L))continue;else k=!1}}catch(I){y.destroy(I)}break}}return y}$.exports=J}),A6=I0((Q,$)=>{var U=t2(),{ArrayPrototypeIndexOf:X,NumberIsInteger:q,NumberIsNaN:V,NumberParseInt:Y,ObjectDefineProperties:K,ObjectKeys:G,ObjectSetPrototypeOf:J,Promise:B,SafeSet:Z,SymbolAsyncDispose:j,SymbolAsyncIterator:P,Symbol:g}=O0();$.exports=l,l.ReadableState=$0;var{EventEmitter:y}=(m1(),o0(p1)),{Stream:k,prependListener:M}=h8(),{Buffer:w}=(C2(),o0(L2)),{addAbortSignal:I}=N6(),F=k2(),L=c0().debuglog("stream",(W)=>{L=W}),_=OX(),A=Z1(),{getHighWaterMark:i,getDefaultHighWaterMark:E}=D6(),{aggregateTwoErrors:O,codes:{ERR_INVALID_ARG_TYPE:C,ERR_METHOD_NOT_IMPLEMENTED:x,ERR_OUT_OF_RANGE:R,ERR_STREAM_PUSH_AFTER_EOF:v,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:T},AbortError:n}=h0(),{validateObject:e}=l1(),X0=g("kPaused"),{StringDecoder:W0}=DX(),u=jQ();J(l.prototype,k.prototype),J(l,k);var Y0=()=>{},{errorOrDestroy:H}=A,m=1,U0=2,b=4,V0=8,B0=16,Z0=32,z0=64,c=128,p=256,Q0=512,w0=1024,G0=2048,N=4096,S=8192,f=16384,r=32768,s=65536,o=131072,D=262144;function d(W){return{enumerable:!1,get(){return(this.state&W)!==0},set(z){if(z)this.state|=W;else this.state&=~W}}}K($0.prototype,{objectMode:d(m),ended:d(U0),endEmitted:d(b),reading:d(V0),constructed:d(B0),sync:d(Z0),needReadable:d(z0),emittedReadable:d(c),readableListening:d(p),resumeScheduled:d(Q0),errorEmitted:d(w0),emitClose:d(G0),autoDestroy:d(N),destroyed:d(S),closed:d(f),closeEmitted:d(r),multiAwaitDrain:d(s),readingMore:d(o),dataEmitted:d(D)});function $0(W,z,a){if(typeof a!=="boolean")a=z instanceof O2();if(this.state=G0|N|B0|Z0,W&&W.objectMode)this.state|=m;if(a&&W&&W.readableObjectMode)this.state|=m;if(this.highWaterMark=W?i(this,W,"readableHighWaterMark",a):E(!1),this.buffer=new _,this.length=0,this.pipes=[],this.flowing=null,this[X0]=null,W&&W.emitClose===!1)this.state&=~G0;if(W&&W.autoDestroy===!1)this.state&=~N;if(this.errored=null,this.defaultEncoding=W&&W.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,W&&W.encoding)this.decoder=new W0(W.encoding),this.encoding=W.encoding}function l(W){if(!(this instanceof l))return new l(W);let z=this instanceof O2();if(this._readableState=new $0(W,this,z),W){if(typeof W.read==="function")this._read=W.read;if(typeof W.destroy==="function")this._destroy=W.destroy;if(typeof W.construct==="function")this._construct=W.construct;if(W.signal&&!z)I(W.signal,this)}k.call(this,W),A.construct(this,()=>{if(this._readableState.needReadable)W1(this,this._readableState)})}l.prototype.destroy=A.destroy,l.prototype._undestroy=A.undestroy,l.prototype._destroy=function(W,z){z(W)},l.prototype[y.captureRejectionSymbol]=function(W){this.destroy(W)},l.prototype[j]=function(){let W;if(!this.destroyed)W=this.readableEnded?null:new n,this.destroy(W);return new B((z,a)=>F(this,(t)=>t&&t!==W?a(t):z(null)))},l.prototype.push=function(W,z){return K0(this,W,z,!1)},l.prototype.unshift=function(W,z){return K0(this,W,z,!0)};function K0(W,z,a,t){L("readableAddChunk",z);let q0=W._readableState,y0;if((q0.state&m)===0){if(typeof z==="string"){if(a=a||q0.defaultEncoding,q0.encoding!==a)if(t&&q0.encoding)z=w.from(z,a).toString(q0.encoding);else z=w.from(z,a),a=""}else if(z instanceof w)a="";else if(k._isUint8Array(z))z=k._uint8ArrayToBuffer(z),a="";else if(z!=null)y0=new C("chunk",["string","Buffer","Uint8Array"],z)}if(y0)H(W,y0);else if(z===null)q0.state&=~V0,v0(W,q0);else if((q0.state&m)!==0||z&&z.length>0)if(t)if((q0.state&b)!==0)H(W,new T);else if(q0.destroyed||q0.errored)return!1;else d0(W,q0,z,!0);else if(q0.ended)H(W,new v);else if(q0.destroyed||q0.errored)return!1;else if(q0.state&=~V0,q0.decoder&&!a)if(z=q0.decoder.write(z),q0.objectMode||z.length!==0)d0(W,q0,z,!1);else W1(W,q0);else d0(W,q0,z,!1);else if(!t)q0.state&=~V0,W1(W,q0);return!q0.ended&&(q0.length<q0.highWaterMark||q0.length===0)}function d0(W,z,a,t){if(z.flowing&&z.length===0&&!z.sync&&W.listenerCount("data")>0){if((z.state&s)!==0)z.awaitDrainWriters.clear();else z.awaitDrainWriters=null;z.dataEmitted=!0,W.emit("data",a)}else{if(z.length+=z.objectMode?1:a.length,t)z.buffer.unshift(a);else z.buffer.push(a);if((z.state&z0)!==0)b0(W)}W1(W,z)}l.prototype.isPaused=function(){let W=this._readableState;return W[X0]===!0||W.flowing===!1},l.prototype.setEncoding=function(W){let z=new W0(W);this._readableState.decoder=z,this._readableState.encoding=this._readableState.decoder.encoding;let a=this._readableState.buffer,t="";for(let q0 of a)t+=z.write(q0);if(a.clear(),t!=="")a.push(t);return this._readableState.length=t.length,this};var D0=1073741824;function R0(W){if(W>D0)throw new R("size","<= 1GiB",W);else W--,W|=W>>>1,W|=W>>>2,W|=W>>>4,W|=W>>>8,W|=W>>>16,W++;return W}function l2(W,z){if(W<=0||z.length===0&&z.ended)return 0;if((z.state&m)!==0)return 1;if(V(W)){if(z.flowing&&z.length)return z.buffer.first().length;return z.length}if(W<=z.length)return W;return z.ended?z.length:0}l.prototype.read=function(W){if(L("read",W),W===void 0)W=NaN;else if(!q(W))W=Y(W,10);let z=this._readableState,a=W;if(W>z.highWaterMark)z.highWaterMark=R0(W);if(W!==0)z.state&=~c;if(W===0&&z.needReadable&&((z.highWaterMark!==0?z.length>=z.highWaterMark:z.length>0)||z.ended)){if(L("read: emitReadable",z.length,z.ended),z.length===0&&z.ended)H8(this);else b0(this);return null}if(W=l2(W,z),W===0&&z.ended){if(z.length===0)H8(this);return null}let t=(z.state&z0)!==0;if(L("need readable",t),z.length===0||z.length-W<z.highWaterMark)t=!0,L("length less than watermark",t);if(z.ended||z.reading||z.destroyed||z.errored||!z.constructed)t=!1,L("reading, ended or constructing",t);else if(t){if(L("do read"),z.state|=V0|Z0,z.length===0)z.state|=z0;try{this._read(z.highWaterMark)}catch(y0){H(this,y0)}if(z.state&=~Z0,!z.reading)W=l2(a,z)}let q0;if(W>0)q0=H4(W,z);else q0=null;if(q0===null)z.needReadable=z.length<=z.highWaterMark,W=0;else if(z.length-=W,z.multiAwaitDrain)z.awaitDrainWriters.clear();else z.awaitDrainWriters=null;if(z.length===0){if(!z.ended)z.needReadable=!0;if(a!==W&&z.ended)H8(this)}if(q0!==null&&!z.errorEmitted&&!z.closeEmitted)z.dataEmitted=!0,this.emit("data",q0);return q0};function v0(W,z){if(L("onEofChunk"),z.ended)return;if(z.decoder){let a=z.decoder.end();if(a&&a.length)z.buffer.push(a),z.length+=z.objectMode?1:a.length}if(z.ended=!0,z.sync)b0(W);else z.needReadable=!1,z.emittedReadable=!0,w1(W)}function b0(W){let z=W._readableState;if(L("emitReadable",z.needReadable,z.emittedReadable),z.needReadable=!1,!z.emittedReadable)L("emitReadable",z.flowing),z.emittedReadable=!0,U.nextTick(w1,W)}function w1(W){let z=W._readableState;if(L("emitReadable_",z.destroyed,z.length,z.ended),!z.destroyed&&!z.errored&&(z.length||z.ended))W.emit("readable"),z.emittedReadable=!1;z.needReadable=!z.flowing&&!z.ended&&z.length<=z.highWaterMark,I4(W)}function W1(W,z){if(!z.readingMore&&z.constructed)z.readingMore=!0,U.nextTick(Y2,W,z)}function Y2(W,z){while(!z.reading&&!z.ended&&(z.length<z.highWaterMark||z.flowing&&z.length===0)){let a=z.length;if(L("maybeReadMore read 0"),W.read(0),a===z.length)break}z.readingMore=!1}l.prototype._read=function(W){throw new x("_read()")},l.prototype.pipe=function(W,z){let a=this,t=this._readableState;if(t.pipes.length===1){if(!t.multiAwaitDrain)t.multiAwaitDrain=!0,t.awaitDrainWriters=new Z(t.awaitDrainWriters?[t.awaitDrainWriters]:[])}t.pipes.push(W),L("pipe count=%d opts=%j",t.pipes.length,z);let q0=(!z||z.end!==!1)&&W!==U.stdout&&W!==U.stderr?n0:h1;if(t.endEmitted)U.nextTick(q0);else a.once("end",q0);W.on("unpipe",y0);function y0(n2,M2){if(L("onunpipe"),n2===a){if(M2&&M2.hasUnpiped===!1)M2.hasUnpiped=!0,OU()}}function n0(){L("onend"),W.end()}let i2,C4=!1;function OU(){if(L("cleanup"),W.removeListener("close",O8),W.removeListener("finish",N8),i2)W.removeListener("drain",i2);if(W.removeListener("error",C8),W.removeListener("unpipe",y0),a.removeListener("end",n0),a.removeListener("end",h1),a.removeListener("data",N4),C4=!0,i2&&t.awaitDrainWriters&&(!W._writableState||W._writableState.needDrain))i2()}function O4(){if(!C4){if(t.pipes.length===1&&t.pipes[0]===W)L("false write response, pause",0),t.awaitDrainWriters=W,t.multiAwaitDrain=!1;else if(t.pipes.length>1&&t.pipes.includes(W))L("false write response, pause",t.awaitDrainWriters.size),t.awaitDrainWriters.add(W);a.pause()}if(!i2)i2=PU(a,W),W.on("drain",i2)}a.on("data",N4);function N4(n2){L("ondata");let M2=W.write(n2);if(L("dest.write",M2),M2===!1)O4()}function C8(n2){if(L("onerror",n2),h1(),W.removeListener("error",C8),W.listenerCount("error")===0){let M2=W._writableState||W._readableState;if(M2&&!M2.errorEmitted)H(W,n2);else W.emit("error",n2)}}M(W,"error",C8);function O8(){W.removeListener("finish",N8),h1()}W.once("close",O8);function N8(){L("onfinish"),W.removeListener("close",O8),h1()}W.once("finish",N8);function h1(){L("unpipe"),a.unpipe(W)}if(W.emit("pipe",a),W.writableNeedDrain===!0)O4();else if(!t.flowing)L("pipe resume"),a.resume();return W};function PU(W,z){return function a(){let t=W._readableState;if(t.awaitDrainWriters===z)L("pipeOnDrain",1),t.awaitDrainWriters=null;else if(t.multiAwaitDrain)L("pipeOnDrain",t.awaitDrainWriters.size),t.awaitDrainWriters.delete(z);if((!t.awaitDrainWriters||t.awaitDrainWriters.size===0)&&W.listenerCount("data"))W.resume()}}l.prototype.unpipe=function(W){let z=this._readableState,a={hasUnpiped:!1};if(z.pipes.length===0)return this;if(!W){let q0=z.pipes;z.pipes=[],this.pause();for(let y0=0;y0<q0.length;y0++)q0[y0].emit("unpipe",this,{hasUnpiped:!1});return this}let t=X(z.pipes,W);if(t===-1)return this;if(z.pipes.splice(t,1),z.pipes.length===0)this.pause();return W.emit("unpipe",this,a),this},l.prototype.on=function(W,z){let a=k.prototype.on.call(this,W,z),t=this._readableState;if(W==="data"){if(t.readableListening=this.listenerCount("readable")>0,t.flowing!==!1)this.resume()}else if(W==="readable"){if(!t.endEmitted&&!t.readableListening){if(t.readableListening=t.needReadable=!0,t.flowing=!1,t.emittedReadable=!1,L("on readable",t.length,t.reading),t.length)b0(this);else if(!t.reading)U.nextTick(FU,this)}}return a},l.prototype.addListener=l.prototype.on,l.prototype.removeListener=function(W,z){let a=k.prototype.removeListener.call(this,W,z);if(W==="readable")U.nextTick(F4,this);return a},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(W){let z=k.prototype.removeAllListeners.apply(this,arguments);if(W==="readable"||W===void 0)U.nextTick(F4,this);return z};function F4(W){let z=W._readableState;if(z.readableListening=W.listenerCount("readable")>0,z.resumeScheduled&&z[X0]===!1)z.flowing=!0;else if(W.listenerCount("data")>0)W.resume();else if(!z.readableListening)z.flowing=null}function FU(W){L("readable nexttick read 0"),W.read(0)}l.prototype.resume=function(){let W=this._readableState;if(!W.flowing)L("resume"),W.flowing=!W.readableListening,IU(this,W);return W[X0]=!1,this};function IU(W,z){if(!z.resumeScheduled)z.resumeScheduled=!0,U.nextTick(MU,W,z)}function MU(W,z){if(L("resume",z.reading),!z.reading)W.read(0);if(z.resumeScheduled=!1,W.emit("resume"),I4(W),z.flowing&&!z.reading)W.read(0)}l.prototype.pause=function(){if(L("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1)L("pause"),this._readableState.flowing=!1,this.emit("pause");return this._readableState[X0]=!0,this};function I4(W){let z=W._readableState;L("flow",z.flowing);while(z.flowing&&W.read()!==null);}l.prototype.wrap=function(W){let z=!1;W.on("data",(t)=>{if(!this.push(t)&&W.pause)z=!0,W.pause()}),W.on("end",()=>{this.push(null)}),W.on("error",(t)=>{H(this,t)}),W.on("close",()=>{this.destroy()}),W.on("destroy",()=>{this.destroy()}),this._read=()=>{if(z&&W.resume)z=!1,W.resume()};let a=G(W);for(let t=1;t<a.length;t++){let q0=a[t];if(this[q0]===void 0&&typeof W[q0]==="function")this[q0]=W[q0].bind(W)}return this},l.prototype[P]=function(){return M4(this)},l.prototype.iterator=function(W){if(W!==void 0)e(W,"options");return M4(this,W)};function M4(W,z){if(typeof W.read!=="function")W=l.wrap(W,{objectMode:!0});let a=HU(W,z);return a.stream=W,a}async function*HU(W,z){let a=Y0;function t(n0){if(this===W)a(),a=Y0;else a=n0}W.on("readable",t);let q0,y0=F(W,{writable:!1},(n0)=>{q0=n0?O(q0,n0):null,a(),a=Y0});try{while(!0){let n0=W.destroyed?null:W.read();if(n0!==null)yield n0;else if(q0)throw q0;else if(q0===null)return;else await new B(t)}}catch(n0){throw q0=O(q0,n0),q0}finally{if((q0||(z===null||z===void 0?void 0:z.destroyOnReturn)!==!1)&&(q0===void 0||W._readableState.autoDestroy))A.destroyer(W,null);else W.off("readable",t),y0()}}K(l.prototype,{readable:{__proto__:null,get(){let W=this._readableState;return!!W&&W.readable!==!1&&!W.destroyed&&!W.errorEmitted&&!W.endEmitted},set(W){if(this._readableState)this._readableState.readable=!!W}},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(W){if(this._readableState)this._readableState.flowing=W}},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(W){if(!this._readableState)return;this._readableState.destroyed=W}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),K($0.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[X0]!==!1},set(W){this[X0]=!!W}}}),l._fromList=H4;function H4(W,z){if(z.length===0)return null;let a;if(z.objectMode)a=z.buffer.shift();else if(!W||W>=z.length){if(z.decoder)a=z.buffer.join("");else if(z.buffer.length===1)a=z.buffer.first();else a=z.buffer.concat(z.length);z.buffer.clear()}else a=z.buffer.consume(W,z.decoder);return a}function H8(W){let z=W._readableState;if(L("endReadable",z.endEmitted),!z.endEmitted)z.ended=!0,U.nextTick(LU,z,W)}function LU(W,z){if(L("endReadableNT",W.endEmitted,W.length),!W.errored&&!W.closeEmitted&&!W.endEmitted&&W.length===0){if(W.endEmitted=!0,z.emit("end"),z.writable&&z.allowHalfOpen===!1)U.nextTick(CU,z);else if(W.autoDestroy){let a=z._writableState;if(!a||a.autoDestroy&&(a.finished||a.writable===!1))z.destroy()}}}function CU(W){if(W.writable&&!W.writableEnded&&!W.destroyed)W.end()}l.from=function(W,z){return u(l,W,z)};var L8;function L4(){if(L8===void 0)L8={};return L8}l.fromWeb=function(W,z){return L4().newStreamReadableFromReadableStream(W,z)},l.toWeb=function(W,z){return L4().newReadableStreamFromStreamReadable(W,z)},l.wrap=function(W,z){var a,t;return new l({objectMode:(a=(t=W.readableObjectMode)!==null&&t!==void 0?t:W.objectMode)!==null&&a!==void 0?a:!0,...z,destroy(q0,y0){A.destroyer(W,q0),y0(q0)}}).wrap(W)}}),_8=I0((Q,$)=>{var U=t2(),{ArrayPrototypeSlice:X,Error:q,FunctionPrototypeSymbolHasInstance:V,ObjectDefineProperty:Y,ObjectDefineProperties:K,ObjectSetPrototypeOf:G,StringPrototypeToLowerCase:J,Symbol:B,SymbolHasInstance:Z}=O0();$.exports=e,e.WritableState=T;var{EventEmitter:j}=(m1(),o0(p1)),P=h8().Stream,{Buffer:g}=(C2(),o0(L2)),y=Z1(),{addAbortSignal:k}=N6(),{getHighWaterMark:M,getDefaultHighWaterMark:w}=D6(),{ERR_INVALID_ARG_TYPE:I,ERR_METHOD_NOT_IMPLEMENTED:F,ERR_MULTIPLE_CALLBACK:L,ERR_STREAM_CANNOT_PIPE:_,ERR_STREAM_DESTROYED:A,ERR_STREAM_ALREADY_FINISHED:i,ERR_STREAM_NULL_VALUES:E,ERR_STREAM_WRITE_AFTER_END:O,ERR_UNKNOWN_ENCODING:C}=h0().codes,{errorOrDestroy:x}=y;G(e.prototype,P.prototype),G(e,P);function R(){}var v=B("kOnFinished");function T(N,S,f){if(typeof f!=="boolean")f=S instanceof O2();if(this.objectMode=!!(N&&N.objectMode),f)this.objectMode=this.objectMode||!!(N&&N.writableObjectMode);this.highWaterMark=N?M(this,N,"writableHighWaterMark",f):w(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let r=!!(N&&N.decodeStrings===!1);this.decodeStrings=!r,this.defaultEncoding=N&&N.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=H.bind(void 0,S),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,n(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!N||N.emitClose!==!1,this.autoDestroy=!N||N.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[v]=[]}function n(N){N.buffered=[],N.bufferedIndex=0,N.allBuffers=!0,N.allNoop=!0}T.prototype.getBuffer=function N(){return X(this.buffered,this.bufferedIndex)},Y(T.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function e(N){let S=this instanceof O2();if(!S&&!V(e,this))return new e(N);if(this._writableState=new T(N,this,S),N){if(typeof N.write==="function")this._write=N.write;if(typeof N.writev==="function")this._writev=N.writev;if(typeof N.destroy==="function")this._destroy=N.destroy;if(typeof N.final==="function")this._final=N.final;if(typeof N.construct==="function")this._construct=N.construct;if(N.signal)k(N.signal,this)}P.call(this,N),y.construct(this,()=>{let f=this._writableState;if(!f.writing)V0(this,f);c(this,f)})}Y(e,Z,{__proto__:null,value:function(N){if(V(this,N))return!0;if(this!==e)return!1;return N&&N._writableState instanceof T}}),e.prototype.pipe=function(){x(this,new _)};function X0(N,S,f,r){let s=N._writableState;if(typeof f==="function")r=f,f=s.defaultEncoding;else{if(!f)f=s.defaultEncoding;else if(f!=="buffer"&&!g.isEncoding(f))throw new C(f);if(typeof r!=="function")r=R}if(S===null)throw new E;else if(!s.objectMode)if(typeof S==="string"){if(s.decodeStrings!==!1)S=g.from(S,f),f="buffer"}else if(S instanceof g)f="buffer";else if(P._isUint8Array(S))S=P._uint8ArrayToBuffer(S),f="buffer";else throw new I("chunk",["string","Buffer","Uint8Array"],S);let o;if(s.ending)o=new O;else if(s.destroyed)o=new A("write");if(o)return U.nextTick(r,o),x(N,o,!0),o;return s.pendingcb++,W0(N,s,S,f,r)}e.prototype.write=function(N,S,f){return X0(this,N,S,f)===!0},e.prototype.cork=function(){this._writableState.corked++},e.prototype.uncork=function(){let N=this._writableState;if(N.corked){if(N.corked--,!N.writing)V0(this,N)}},e.prototype.setDefaultEncoding=function N(S){if(typeof S==="string")S=J(S);if(!g.isEncoding(S))throw new C(S);return this._writableState.defaultEncoding=S,this};function W0(N,S,f,r,s){let o=S.objectMode?1:f.length;S.length+=o;let D=S.length<S.highWaterMark;if(!D)S.needDrain=!0;if(S.writing||S.corked||S.errored||!S.constructed){if(S.buffered.push({chunk:f,encoding:r,callback:s}),S.allBuffers&&r!=="buffer")S.allBuffers=!1;if(S.allNoop&&s!==R)S.allNoop=!1}else S.writelen=o,S.writecb=s,S.writing=!0,S.sync=!0,N._write(f,r,S.onwrite),S.sync=!1;return D&&!S.errored&&!S.destroyed}function u(N,S,f,r,s,o,D){if(S.writelen=r,S.writecb=D,S.writing=!0,S.sync=!0,S.destroyed)S.onwrite(new A("write"));else if(f)N._writev(s,S.onwrite);else N._write(s,o,S.onwrite);S.sync=!1}function Y0(N,S,f,r){--S.pendingcb,r(f),b(S),x(N,f)}function H(N,S){let f=N._writableState,r=f.sync,s=f.writecb;if(typeof s!=="function"){x(N,new L);return}if(f.writing=!1,f.writecb=null,f.length-=f.writelen,f.writelen=0,S){if(S.stack,!f.errored)f.errored=S;if(N._readableState&&!N._readableState.errored)N._readableState.errored=S;if(r)U.nextTick(Y0,N,f,S,s);else Y0(N,f,S,s)}else{if(f.buffered.length>f.bufferedIndex)V0(N,f);if(r)if(f.afterWriteTickInfo!==null&&f.afterWriteTickInfo.cb===s)f.afterWriteTickInfo.count++;else f.afterWriteTickInfo={count:1,cb:s,stream:N,state:f},U.nextTick(m,f.afterWriteTickInfo);else U0(N,f,1,s)}}function m({stream:N,state:S,count:f,cb:r}){return S.afterWriteTickInfo=null,U0(N,S,f,r)}function U0(N,S,f,r){if(!S.ending&&!N.destroyed&&S.length===0&&S.needDrain)S.needDrain=!1,N.emit("drain");while(f-- >0)S.pendingcb--,r();if(S.destroyed)b(S);c(N,S)}function b(N){if(N.writing)return;for(let s=N.bufferedIndex;s<N.buffered.length;++s){var S;let{chunk:o,callback:D}=N.buffered[s],d=N.objectMode?1:o.length;N.length-=d,D((S=N.errored)!==null&&S!==void 0?S:new A("write"))}let f=N[v].splice(0);for(let s=0;s<f.length;s++){var r;f[s]((r=N.errored)!==null&&r!==void 0?r:new A("end"))}n(N)}function V0(N,S){if(S.corked||S.bufferProcessing||S.destroyed||!S.constructed)return;let{buffered:f,bufferedIndex:r,objectMode:s}=S,o=f.length-r;if(!o)return;let D=r;if(S.bufferProcessing=!0,o>1&&N._writev){S.pendingcb-=o-1;let d=S.allNoop?R:(l)=>{for(let K0=D;K0<f.length;++K0)f[K0].callback(l)},$0=S.allNoop&&D===0?f:X(f,D);$0.allBuffers=S.allBuffers,u(N,S,!0,S.length,$0,"",d),n(S)}else{do{let{chunk:d,encoding:$0,callback:l}=f[D];f[D++]=null;let K0=s?1:d.length;u(N,S,!1,K0,d,$0,l)}while(D<f.length&&!S.writing);if(D===f.length)n(S);else if(D>256)f.splice(0,D),S.bufferedIndex=0;else S.bufferedIndex=D}S.bufferProcessing=!1}e.prototype._write=function(N,S,f){if(this._writev)this._writev([{chunk:N,encoding:S}],f);else throw new F("_write()")},e.prototype._writev=null,e.prototype.end=function(N,S,f){let r=this._writableState;if(typeof N==="function")f=N,N=null,S=null;else if(typeof S==="function")f=S,S=null;let s;if(N!==null&&N!==void 0){let o=X0(this,N,S);if(o instanceof q)s=o}if(r.corked)r.corked=1,this.uncork();if(s);else if(!r.errored&&!r.ending)r.ending=!0,c(this,r,!0),r.ended=!0;else if(r.finished)s=new i("end");else if(r.destroyed)s=new A("end");if(typeof f==="function")if(s||r.finished)U.nextTick(f,s);else r[v].push(f);return this};function B0(N){return N.ending&&!N.destroyed&&N.constructed&&N.length===0&&!N.errored&&N.buffered.length===0&&!N.finished&&!N.writing&&!N.errorEmitted&&!N.closeEmitted}function Z0(N,S){let f=!1;function r(s){if(f){x(N,s!==null&&s!==void 0?s:L());return}if(f=!0,S.pendingcb--,s){let o=S[v].splice(0);for(let D=0;D<o.length;D++)o[D](s);x(N,s,S.sync)}else if(B0(S))S.prefinished=!0,N.emit("prefinish"),S.pendingcb++,U.nextTick(p,N,S)}S.sync=!0,S.pendingcb++;try{N._final(r)}catch(s){r(s)}S.sync=!1}function z0(N,S){if(!S.prefinished&&!S.finalCalled)if(typeof N._final==="function"&&!S.destroyed)S.finalCalled=!0,Z0(N,S);else S.prefinished=!0,N.emit("prefinish")}function c(N,S,f){if(B0(S)){if(z0(N,S),S.pendingcb===0){if(f)S.pendingcb++,U.nextTick((r,s)=>{if(B0(s))p(r,s);else s.pendingcb--},N,S);else if(B0(S))S.pendingcb++,p(N,S)}}}function p(N,S){S.pendingcb--,S.finished=!0;let f=S[v].splice(0);for(let r=0;r<f.length;r++)f[r]();if(N.emit("finish"),S.autoDestroy){let r=N._readableState;if(!r||r.autoDestroy&&(r.endEmitted||r.readable===!1))N.destroy()}}K(e.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(N){if(this._writableState)this._writableState.destroyed=N}},writable:{__proto__:null,get(){let N=this._writableState;return!!N&&N.writable!==!1&&!N.destroyed&&!N.errored&&!N.ending&&!N.ended},set(N){if(this._writableState)this._writableState.writable=!!N}},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 N=this._writableState;if(!N)return!1;return!N.destroyed&&!N.ending&&N.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 Q0=y.destroy;e.prototype.destroy=function(N,S){let f=this._writableState;if(!f.destroyed&&(f.bufferedIndex<f.buffered.length||f[v].length))U.nextTick(b,f);return Q0.call(this,N,S),this},e.prototype._undestroy=y.undestroy,e.prototype._destroy=function(N,S){S(N)},e.prototype[j.captureRejectionSymbol]=function(N){this.destroy(N)};var w0;function G0(){if(w0===void 0)w0={};return w0}e.fromWeb=function(N,S){return G0().newStreamWritableFromWritableStream(N,S)},e.toWeb=function(N){return G0().newWritableStreamFromStreamWritable(N)}}),AX=I0((Q,$)=>{var U=t2(),X=(C2(),o0(L2)),{isReadable:q,isWritable:V,isIterable:Y,isNodeStream:K,isReadableNodeStream:G,isWritableNodeStream:J,isDuplexNodeStream:B,isReadableStream:Z,isWritableStream:j}=N2(),P=k2(),{AbortError:g,codes:{ERR_INVALID_ARG_TYPE:y,ERR_INVALID_RETURN_VALUE:k}}=h0(),{destroyer:M}=Z1(),w=O2(),I=A6(),F=_8(),{createDeferredPromise:L}=c0(),_=jQ(),A=globalThis.Blob||X.Blob,i=typeof A!=="undefined"?function v(T){return T instanceof A}:function v(T){return!1},E=globalThis.AbortController||d1().AbortController,{FunctionPrototypeCall:O}=O0();class C extends w{constructor(v){super(v);if((v===null||v===void 0?void 0:v.readable)===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if((v===null||v===void 0?void 0:v.writable)===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}}$.exports=function v(T,n){if(B(T))return T;if(G(T))return R({readable:T});if(J(T))return R({writable:T});if(K(T))return R({writable:!1,readable:!1});if(Z(T))return R({readable:I.fromWeb(T)});if(j(T))return R({writable:F.fromWeb(T)});if(typeof T==="function"){let{value:X0,write:W0,final:u,destroy:Y0}=x(T);if(Y(X0))return _(C,X0,{objectMode:!0,write:W0,final:u,destroy:Y0});let H=X0===null||X0===void 0?void 0:X0.then;if(typeof H==="function"){let m,U0=O(H,X0,(b)=>{if(b!=null)throw new k("nully","body",b)},(b)=>{M(m,b)});return m=new C({objectMode:!0,readable:!1,write:W0,final(b){u(async()=>{try{await U0,U.nextTick(b,null)}catch(V0){U.nextTick(b,V0)}})},destroy:Y0})}throw new k("Iterable, AsyncIterable or AsyncFunction",n,X0)}if(i(T))return v(T.arrayBuffer());if(Y(T))return _(C,T,{objectMode:!0,writable:!1});if(Z(T===null||T===void 0?void 0:T.readable)&&j(T===null||T===void 0?void 0:T.writable))return C.fromWeb(T);if(typeof(T===null||T===void 0?void 0:T.writable)==="object"||typeof(T===null||T===void 0?void 0:T.readable)==="object"){let X0=T!==null&&T!==void 0&&T.readable?G(T===null||T===void 0?void 0:T.readable)?T===null||T===void 0?void 0:T.readable:v(T.readable):void 0,W0=T!==null&&T!==void 0&&T.writable?J(T===null||T===void 0?void 0:T.writable)?T===null||T===void 0?void 0:T.writable:v(T.writable):void 0;return R({readable:X0,writable:W0})}let e=T===null||T===void 0?void 0:T.then;if(typeof e==="function"){let X0;return O(e,T,(W0)=>{if(W0!=null)X0.push(W0);X0.push(null)},(W0)=>{M(X0,W0)}),X0=new C({objectMode:!0,writable:!1,read(){}})}throw new y(n,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],T)};function x(v){let{promise:T,resolve:n}=L(),e=new E,X0=e.signal;return{value:v(async function*(){while(!0){let W0=T;T=null;let{chunk:u,done:Y0,cb:H}=await W0;if(U.nextTick(H),Y0)return;if(X0.aborted)throw new g(void 0,{cause:X0.reason});({promise:T,resolve:n}=L()),yield u}}(),{signal:X0}),write(W0,u,Y0){let H=n;n=null,H({chunk:W0,done:!1,cb:Y0})},final(W0){let u=n;n=null,u({done:!0,cb:W0})},destroy(W0,u){e.abort(),u(W0)}}}function R(v){let T=v.readable&&typeof v.readable.read!=="function"?I.wrap(v.readable):v.readable,n=v.writable,e=!!q(T),X0=!!V(n),W0,u,Y0,H,m;function U0(b){let V0=H;if(H=null,V0)V0(b);else if(b)m.destroy(b)}if(m=new C({readableObjectMode:!!(T!==null&&T!==void 0&&T.readableObjectMode),writableObjectMode:!!(n!==null&&n!==void 0&&n.writableObjectMode),readable:e,writable:X0}),X0)P(n,(b)=>{if(X0=!1,b)M(T,b);U0(b)}),m._write=function(b,V0,B0){if(n.write(b,V0))B0();else W0=B0},m._final=function(b){n.end(),u=b},n.on("drain",function(){if(W0){let b=W0;W0=null,b()}}),n.on("finish",function(){if(u){let b=u;u=null,b()}});if(e)P(T,(b)=>{if(e=!1,b)M(T,b);U0(b)}),T.on("readable",function(){if(Y0){let b=Y0;Y0=null,b()}}),T.on("end",function(){m.push(null)}),m._read=function(){while(!0){let b=T.read();if(b===null){Y0=m._read;return}if(!m.push(b))return}};return m._destroy=function(b,V0){if(!b&&H!==null)b=new g;if(Y0=null,W0=null,u=null,H===null)V0(b);else H=V0,M(n,b),M(T,b)},m}}),O2=I0((Q,$)=>{var{ObjectDefineProperties:U,ObjectGetOwnPropertyDescriptor:X,ObjectKeys:q,ObjectSetPrototypeOf:V}=O0();$.exports=G;var Y=A6(),K=_8();V(G.prototype,Y.prototype),V(G,Y);{let j=q(K.prototype);for(let P=0;P<j.length;P++){let g=j[P];if(!G.prototype[g])G.prototype[g]=K.prototype[g]}}function G(j){if(!(this instanceof G))return new G(j);if(Y.call(this,j),K.call(this,j),j){if(this.allowHalfOpen=j.allowHalfOpen!==!1,j.readable===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if(j.writable===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}else this.allowHalfOpen=!0}U(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(j){if(this._readableState&&this._writableState)this._readableState.destroyed=j,this._writableState.destroyed=j}}});var J;function B(){if(J===void 0)J={};return J}G.fromWeb=function(j,P){return B().newStreamDuplexFromReadableWritablePair(j,P)},G.toWeb=function(j){return B().newReadableWritablePairFromDuplex(j)};var Z;G.from=function(j){if(!Z)Z=AX();return Z(j,"body")}}),ZQ=I0((Q,$)=>{var{ObjectSetPrototypeOf:U,Symbol:X}=O0();$.exports=G;var{ERR_METHOD_NOT_IMPLEMENTED:q}=h0().codes,V=O2(),{getHighWaterMark:Y}=D6();U(G.prototype,V.prototype),U(G,V);var K=X("kCallback");function G(Z){if(!(this instanceof G))return new G(Z);let j=Z?Y(this,Z,"readableHighWaterMark",!0):null;if(j===0)Z={...Z,highWaterMark:null,readableHighWaterMark:j,writableHighWaterMark:Z.writableHighWaterMark||0};if(V.call(this,Z),this._readableState.sync=!1,this[K]=null,Z){if(typeof Z.transform==="function")this._transform=Z.transform;if(typeof Z.flush==="function")this._flush=Z.flush}this.on("prefinish",B)}function J(Z){if(typeof this._flush==="function"&&!this.destroyed)this._flush((j,P)=>{if(j){if(Z)Z(j);else this.destroy(j);return}if(P!=null)this.push(P);if(this.push(null),Z)Z()});else if(this.push(null),Z)Z()}function B(){if(this._final!==J)J.call(this)}G.prototype._final=J,G.prototype._transform=function(Z,j,P){throw new q("_transform()")},G.prototype._write=function(Z,j,P){let g=this._readableState,y=this._writableState,k=g.length;this._transform(Z,j,(M,w)=>{if(M){P(M);return}if(w!=null)this.push(w);if(y.ended||k===g.length||g.length<g.highWaterMark)P();else this[K]=P})},G.prototype._read=function(){if(this[K]){let Z=this[K];this[K]=null,Z()}}}),PQ=I0((Q,$)=>{var{ObjectSetPrototypeOf:U}=O0();$.exports=q;var X=ZQ();U(q.prototype,X.prototype),U(q,X);function q(V){if(!(this instanceof q))return new q(V);X.call(this,V)}q.prototype._transform=function(V,Y,K){K(null,V)}}),b8=I0((Q,$)=>{var U=t2(),{ArrayIsArray:X,Promise:q,SymbolAsyncIterator:V,SymbolDispose:Y}=O0(),K=k2(),{once:G}=c0(),J=Z1(),B=O2(),{aggregateTwoErrors:Z,codes:{ERR_INVALID_ARG_TYPE:j,ERR_INVALID_RETURN_VALUE:P,ERR_MISSING_ARGS:g,ERR_STREAM_DESTROYED:y,ERR_STREAM_PREMATURE_CLOSE:k},AbortError:M}=h0(),{validateFunction:w,validateAbortSignal:I}=l1(),{isIterable:F,isReadable:L,isReadableNodeStream:_,isNodeStream:A,isTransformStream:i,isWebStream:E,isReadableStream:O,isReadableFinished:C}=N2(),x=globalThis.AbortController||d1().AbortController,R,v,T;function n(b,V0,B0){let Z0=!1;b.on("close",()=>{Z0=!0});let z0=K(b,{readable:V0,writable:B0},(c)=>{Z0=!c});return{destroy:(c)=>{if(Z0)return;Z0=!0,J.destroyer(b,c||new y("pipe"))},cleanup:z0}}function e(b){return w(b[b.length-1],"streams[stream.length - 1]"),b.pop()}function X0(b){if(F(b))return b;else if(_(b))return W0(b);throw new j("val",["Readable","Iterable","AsyncIterable"],b)}async function*W0(b){if(!v)v=A6();yield*v.prototype[V].call(b)}async function u(b,V0,B0,{end:Z0}){let z0,c=null,p=(G0)=>{if(G0)z0=G0;if(c){let N=c;c=null,N()}},Q0=()=>new q((G0,N)=>{if(z0)N(z0);else c=()=>{if(z0)N(z0);else G0()}});V0.on("drain",p);let w0=K(V0,{readable:!1},p);try{if(V0.writableNeedDrain)await Q0();for await(let G0 of b)if(!V0.write(G0))await Q0();if(Z0)V0.end(),await Q0();B0()}catch(G0){B0(z0!==G0?Z(z0,G0):G0)}finally{w0(),V0.off("drain",p)}}async function Y0(b,V0,B0,{end:Z0}){if(i(V0))V0=V0.writable;let z0=V0.getWriter();try{for await(let c of b)await z0.ready,z0.write(c).catch(()=>{});if(await z0.ready,Z0)await z0.close();B0()}catch(c){try{await z0.abort(c),B0(c)}catch(p){B0(p)}}}function H(...b){return m(b,G(e(b)))}function m(b,V0,B0){if(b.length===1&&X(b[0]))b=b[0];if(b.length<2)throw new g("streams");let Z0=new x,z0=Z0.signal,c=B0===null||B0===void 0?void 0:B0.signal,p=[];I(c,"options.signal");function Q0(){s(new M)}T=T||c0().addAbortListener;let w0;if(c)w0=T(c,Q0);let G0,N,S=[],f=0;function r(l){s(l,--f===0)}function s(l,K0){var d0;if(l&&(!G0||G0.code==="ERR_STREAM_PREMATURE_CLOSE"))G0=l;if(!G0&&!K0)return;while(S.length)S.shift()(G0);if((d0=w0)===null||d0===void 0||d0[Y](),Z0.abort(),K0){if(!G0)p.forEach((D0)=>D0());U.nextTick(V0,G0,N)}}let o;for(let l=0;l<b.length;l++){let K0=b[l],d0=l<b.length-1,D0=l>0,R0=d0||(B0===null||B0===void 0?void 0:B0.end)!==!1,l2=l===b.length-1;if(A(K0)){let v0=function(b0){if(b0&&b0.name!=="AbortError"&&b0.code!=="ERR_STREAM_PREMATURE_CLOSE")r(b0)};var D=v0;if(R0){let{destroy:b0,cleanup:w1}=n(K0,d0,D0);if(S.push(b0),L(K0)&&l2)p.push(w1)}if(K0.on("error",v0),L(K0)&&l2)p.push(()=>{K0.removeListener("error",v0)})}if(l===0)if(typeof K0==="function"){if(o=K0({signal:z0}),!F(o))throw new P("Iterable, AsyncIterable or Stream","source",o)}else if(F(K0)||_(K0)||i(K0))o=K0;else o=B.from(K0);else if(typeof K0==="function"){if(i(o)){var d;o=X0((d=o)===null||d===void 0?void 0:d.readable)}else o=X0(o);if(o=K0(o,{signal:z0}),d0){if(!F(o,!0))throw new P("AsyncIterable",`transform[${l-1}]`,o)}else{var $0;if(!R)R=PQ();let v0=new R({objectMode:!0}),b0=($0=o)===null||$0===void 0?void 0:$0.then;if(typeof b0==="function")f++,b0.call(o,(Y2)=>{if(N=Y2,Y2!=null)v0.write(Y2);if(R0)v0.end();U.nextTick(r)},(Y2)=>{v0.destroy(Y2),U.nextTick(r,Y2)});else if(F(o,!0))f++,u(o,v0,r,{end:R0});else if(O(o)||i(o)){let Y2=o.readable||o;f++,u(Y2,v0,r,{end:R0})}else throw new P("AsyncIterable or Promise","destination",o);o=v0;let{destroy:w1,cleanup:W1}=n(o,!1,!0);if(S.push(w1),l2)p.push(W1)}}else if(A(K0)){if(_(o)){f+=2;let v0=U0(o,K0,r,{end:R0});if(L(K0)&&l2)p.push(v0)}else if(i(o)||O(o)){let v0=o.readable||o;f++,u(v0,K0,r,{end:R0})}else if(F(o))f++,u(o,K0,r,{end:R0});else throw new j("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],o);o=K0}else if(E(K0)){if(_(o))f++,Y0(X0(o),K0,r,{end:R0});else if(O(o)||F(o))f++,Y0(o,K0,r,{end:R0});else if(i(o))f++,Y0(o.readable,K0,r,{end:R0});else throw new j("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],o);o=K0}else o=B.from(K0)}if(z0!==null&&z0!==void 0&&z0.aborted||c!==null&&c!==void 0&&c.aborted)U.nextTick(Q0);return o}function U0(b,V0,B0,{end:Z0}){let z0=!1;if(V0.on("close",()=>{if(!z0)B0(new k)}),b.pipe(V0,{end:!1}),Z0){let p=function(){z0=!0,V0.end()};var c=p;if(C(b))U.nextTick(p);else b.once("end",p)}else B0();return K(b,{readable:!0,writable:!1},(p)=>{let Q0=b._readableState;if(p&&p.code==="ERR_STREAM_PREMATURE_CLOSE"&&Q0&&Q0.ended&&!Q0.errored&&!Q0.errorEmitted)b.once("end",B0).once("error",B0);else B0(p)}),K(V0,{readable:!1,writable:!0},B0)}$.exports={pipelineImpl:m,pipeline:H}}),FQ=I0((Q,$)=>{var{pipeline:U}=b8(),X=O2(),{destroyer:q}=Z1(),{isNodeStream:V,isReadable:Y,isWritable:K,isWebStream:G,isTransformStream:J,isWritableStream:B,isReadableStream:Z}=N2(),{AbortError:j,codes:{ERR_INVALID_ARG_VALUE:P,ERR_MISSING_ARGS:g}}=h0(),y=k2();$.exports=function k(...M){if(M.length===0)throw new g("streams");if(M.length===1)return X.from(M[0]);let w=[...M];if(typeof M[0]==="function")M[0]=X.from(M[0]);if(typeof M[M.length-1]==="function"){let R=M.length-1;M[R]=X.from(M[R])}for(let R=0;R<M.length;++R){if(!V(M[R])&&!G(M[R]))continue;if(R<M.length-1&&!(Y(M[R])||Z(M[R])||J(M[R])))throw new P(`streams[${R}]`,w[R],"must be readable");if(R>0&&!(K(M[R])||B(M[R])||J(M[R])))throw new P(`streams[${R}]`,w[R],"must be writable")}let I,F,L,_,A;function i(R){let v=_;if(_=null,v)v(R);else if(R)A.destroy(R);else if(!x&&!C)A.destroy()}let E=M[0],O=U(M,i),C=!!(K(E)||B(E)||J(E)),x=!!(Y(O)||Z(O)||J(O));if(A=new X({writableObjectMode:!!(E!==null&&E!==void 0&&E.writableObjectMode),readableObjectMode:!!(O!==null&&O!==void 0&&O.readableObjectMode),writable:C,readable:x}),C){if(V(E))A._write=function(v,T,n){if(E.write(v,T))n();else I=n},A._final=function(v){E.end(),F=v},E.on("drain",function(){if(I){let v=I;I=null,v()}});else if(G(E)){let v=(J(E)?E.writable:E).getWriter();A._write=async function(T,n,e){try{await v.ready,v.write(T).catch(()=>{}),e()}catch(X0){e(X0)}},A._final=async function(T){try{await v.ready,v.close().catch(()=>{}),F=T}catch(n){T(n)}}}let R=J(O)?O.readable:O;y(R,()=>{if(F){let v=F;F=null,v()}})}if(x){if(V(O))O.on("readable",function(){if(L){let R=L;L=null,R()}}),O.on("end",function(){A.push(null)}),A._read=function(){while(!0){let R=O.read();if(R===null){L=A._read;return}if(!A.push(R))return}};else if(G(O)){let R=(J(O)?O.readable:O).getReader();A._read=async function(){while(!0)try{let{value:v,done:T}=await R.read();if(!A.push(v))return;if(T){A.push(null);return}}catch{return}}}}return A._destroy=function(R,v){if(!R&&_!==null)R=new j;if(L=null,I=null,F=null,_===null)v(R);else if(_=v,V(O))q(O,R)},A}}),xX=I0((Q,$)=>{var U=globalThis.AbortController||d1().AbortController,{codes:{ERR_INVALID_ARG_VALUE:X,ERR_INVALID_ARG_TYPE:q,ERR_MISSING_ARGS:V,ERR_OUT_OF_RANGE:Y},AbortError:K}=h0(),{validateAbortSignal:G,validateInteger:J,validateObject:B}=l1(),Z=O0().Symbol("kWeak"),j=O0().Symbol("kResistStopPropagation"),{finished:P}=k2(),g=FQ(),{addAbortSignalNoValidate:y}=N6(),{isWritable:k,isNodeStream:M}=N2(),{deprecate:w}=c0(),{ArrayPrototypePush:I,Boolean:F,MathFloor:L,Number:_,NumberIsNaN:A,Promise:i,PromiseReject:E,PromiseResolve:O,PromisePrototypeThen:C,Symbol:x}=O0(),R=x("kEmpty"),v=x("kEof");function T(c,p){if(p!=null)B(p,"options");if((p===null||p===void 0?void 0:p.signal)!=null)G(p.signal,"options.signal");if(M(c)&&!k(c))throw new X("stream",c,"must be writable");let Q0=g(this,c);if(p!==null&&p!==void 0&&p.signal)y(p.signal,Q0);return Q0}function n(c,p){if(typeof c!=="function")throw new q("fn",["Function","AsyncFunction"],c);if(p!=null)B(p,"options");if((p===null||p===void 0?void 0:p.signal)!=null)G(p.signal,"options.signal");let Q0=1;if((p===null||p===void 0?void 0:p.concurrency)!=null)Q0=L(p.concurrency);let w0=Q0-1;if((p===null||p===void 0?void 0:p.highWaterMark)!=null)w0=L(p.highWaterMark);return J(Q0,"options.concurrency",1),J(w0,"options.highWaterMark",0),w0+=Q0,async function*G0(){let N=c0().AbortSignalAny([p===null||p===void 0?void 0:p.signal].filter(F)),S=this,f=[],r={signal:N},s,o,D=!1,d=0;function $0(){D=!0,l()}function l(){d-=1,K0()}function K0(){if(o&&!D&&d<Q0&&f.length<w0)o(),o=null}async function d0(){try{for await(let D0 of S){if(D)return;if(N.aborted)throw new K;try{if(D0=c(D0,r),D0===R)continue;D0=O(D0)}catch(R0){D0=E(R0)}if(d+=1,C(D0,l,$0),f.push(D0),s)s(),s=null;if(!D&&(f.length>=w0||d>=Q0))await new i((R0)=>{o=R0})}f.push(v)}catch(D0){let R0=E(D0);C(R0,l,$0),f.push(R0)}finally{if(D=!0,s)s(),s=null}}d0();try{while(!0){while(f.length>0){let D0=await f[0];if(D0===v)return;if(N.aborted)throw new K;if(D0!==R)yield D0;f.shift(),K0()}await new i((D0)=>{s=D0})}}finally{if(D=!0,o)o(),o=null}}.call(this)}function e(c=void 0){if(c!=null)B(c,"options");if((c===null||c===void 0?void 0:c.signal)!=null)G(c.signal,"options.signal");return async function*p(){let Q0=0;for await(let G0 of this){var w0;if(c!==null&&c!==void 0&&(w0=c.signal)!==null&&w0!==void 0&&w0.aborted)throw new K({cause:c.signal.reason});yield[Q0++,G0]}}.call(this)}async function X0(c,p=void 0){for await(let Q0 of H.call(this,c,p))return!0;return!1}async function W0(c,p=void 0){if(typeof c!=="function")throw new q("fn",["Function","AsyncFunction"],c);return!await X0.call(this,async(...Q0)=>{return!await c(...Q0)},p)}async function u(c,p){for await(let Q0 of H.call(this,c,p))return Q0;return}async function Y0(c,p){if(typeof c!=="function")throw new q("fn",["Function","AsyncFunction"],c);async function Q0(w0,G0){return await c(w0,G0),R}for await(let w0 of n.call(this,Q0,p));}function H(c,p){if(typeof c!=="function")throw new q("fn",["Function","AsyncFunction"],c);async function Q0(w0,G0){if(await c(w0,G0))return w0;return R}return n.call(this,Q0,p)}class m extends V{constructor(){super("reduce");this.message="Reduce of an empty stream requires an initial value"}}async function U0(c,p,Q0){var w0;if(typeof c!=="function")throw new q("reducer",["Function","AsyncFunction"],c);if(Q0!=null)B(Q0,"options");if((Q0===null||Q0===void 0?void 0:Q0.signal)!=null)G(Q0.signal,"options.signal");let G0=arguments.length>1;if(Q0!==null&&Q0!==void 0&&(w0=Q0.signal)!==null&&w0!==void 0&&w0.aborted){let s=new K(void 0,{cause:Q0.signal.reason});throw this.once("error",()=>{}),await P(this.destroy(s)),s}let N=new U,S=N.signal;if(Q0!==null&&Q0!==void 0&&Q0.signal){let s={once:!0,[Z]:this,[j]:!0};Q0.signal.addEventListener("abort",()=>N.abort(),s)}let f=!1;try{for await(let s of this){var r;if(f=!0,Q0!==null&&Q0!==void 0&&(r=Q0.signal)!==null&&r!==void 0&&r.aborted)throw new K;if(!G0)p=s,G0=!0;else p=await c(p,s,{signal:S})}if(!f&&!G0)throw new m}finally{N.abort()}return p}async function b(c){if(c!=null)B(c,"options");if((c===null||c===void 0?void 0:c.signal)!=null)G(c.signal,"options.signal");let p=[];for await(let w0 of this){var Q0;if(c!==null&&c!==void 0&&(Q0=c.signal)!==null&&Q0!==void 0&&Q0.aborted)throw new K(void 0,{cause:c.signal.reason});I(p,w0)}return p}function V0(c,p){let Q0=n.call(this,c,p);return async function*w0(){for await(let G0 of Q0)yield*G0}.call(this)}function B0(c){if(c=_(c),A(c))return 0;if(c<0)throw new Y("number",">= 0",c);return c}function Z0(c,p=void 0){if(p!=null)B(p,"options");if((p===null||p===void 0?void 0:p.signal)!=null)G(p.signal,"options.signal");return c=B0(c),async function*Q0(){var w0;if(p!==null&&p!==void 0&&(w0=p.signal)!==null&&w0!==void 0&&w0.aborted)throw new K;for await(let N of this){var G0;if(p!==null&&p!==void 0&&(G0=p.signal)!==null&&G0!==void 0&&G0.aborted)throw new K;if(c--<=0)yield N}}.call(this)}function z0(c,p=void 0){if(p!=null)B(p,"options");if((p===null||p===void 0?void 0:p.signal)!=null)G(p.signal,"options.signal");return c=B0(c),async function*Q0(){var w0;if(p!==null&&p!==void 0&&(w0=p.signal)!==null&&w0!==void 0&&w0.aborted)throw new K;for await(let N of this){var G0;if(p!==null&&p!==void 0&&(G0=p.signal)!==null&&G0!==void 0&&G0.aborted)throw new K;if(c-- >0)yield N;if(c<=0)return}}.call(this)}$.exports.streamReturningOperators={asIndexedPairs:w(e,"readable.asIndexedPairs will be removed in a future version."),drop:Z0,filter:H,flatMap:V0,map:n,take:z0,compose:T},$.exports.promiseReturningOperators={every:W0,forEach:Y0,reduce:U0,toArray:b,some:X0,find:u}}),IQ=I0((Q,$)=>{var{ArrayPrototypePop:U,Promise:X}=O0(),{isIterable:q,isNodeStream:V,isWebStream:Y}=N2(),{pipelineImpl:K}=b8(),{finished:G}=k2();MQ();function J(...B){return new X((Z,j)=>{let P,g,y=B[B.length-1];if(y&&typeof y==="object"&&!V(y)&&!q(y)&&!Y(y)){let k=U(B);P=k.signal,g=k.end}K(B,(k,M)=>{if(k)j(k);else Z(M)},{signal:P,end:g})})}$.exports={finished:G,pipeline:J}}),MQ=I0((Q,$)=>{var{Buffer:U}=(C2(),o0(L2)),{ObjectDefineProperty:X,ObjectKeys:q,ReflectApply:V}=O0(),{promisify:{custom:Y}}=c0(),{streamReturningOperators:K,promiseReturningOperators:G}=xX(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:J}}=h0(),B=FQ(),{setDefaultHighWaterMark:Z,getDefaultHighWaterMark:j}=D6(),{pipeline:P}=b8(),{destroyer:g}=Z1(),y=k2(),k=IQ(),M=N2(),w=$.exports=h8().Stream;w.isDestroyed=M.isDestroyed,w.isDisturbed=M.isDisturbed,w.isErrored=M.isErrored,w.isReadable=M.isReadable,w.isWritable=M.isWritable,w.Readable=A6();for(let F of q(K)){let L=function(...A){if(new.target)throw J();return w.Readable.from(V(_,this,A))},_=K[F];X(L,"name",{__proto__:null,value:_.name}),X(L,"length",{__proto__:null,value:_.length}),X(w.Readable.prototype,F,{__proto__:null,value:L,enumerable:!1,configurable:!0,writable:!0})}for(let F of q(G)){let L=function(...A){if(new.target)throw J();return V(_,this,A)},_=G[F];X(L,"name",{__proto__:null,value:_.name}),X(L,"length",{__proto__:null,value:_.length}),X(w.Readable.prototype,F,{__proto__:null,value:L,enumerable:!1,configurable:!0,writable:!0})}w.Writable=_8(),w.Duplex=O2(),w.Transform=ZQ(),w.PassThrough=PQ(),w.pipeline=P;var{addAbortSignal:I}=N6();w.addAbortSignal=I,w.finished=y,w.destroy=g,w.compose=B,w.setDefaultHighWaterMark=Z,w.getDefaultHighWaterMark=j,X(w,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return k}}),X(P,Y,{__proto__:null,enumerable:!0,get(){return k.pipeline}}),X(y,Y,{__proto__:null,enumerable:!0,get(){return k.finished}}),w.Stream=w,w._isUint8Array=function F(L){return L instanceof Uint8Array},w._uint8ArrayToBuffer=function F(L){return U.from(L.buffer,L.byteOffset,L.byteLength)}}),RX=I0((Q,$)=>{var U=x6();{let X=MQ(),q=IQ(),V=X.Readable.destroy;$.exports=X.Readable,$.exports._uint8ArrayToBuffer=X._uint8ArrayToBuffer,$.exports._isUint8Array=X._isUint8Array,$.exports.isDisturbed=X.isDisturbed,$.exports.isErrored=X.isErrored,$.exports.isReadable=X.isReadable,$.exports.Readable=X.Readable,$.exports.Writable=X.Writable,$.exports.Duplex=X.Duplex,$.exports.Transform=X.Transform,$.exports.PassThrough=X.PassThrough,$.exports.addAbortSignal=X.addAbortSignal,$.exports.finished=X.finished,$.exports.destroy=X.destroy,$.exports.destroy=V,$.exports.pipeline=X.pipeline,$.exports.compose=X.compose,Object.defineProperty(X,"promises",{configurable:!0,enumerable:!0,get(){return q}}),$.exports.Stream=X.Stream}$.exports.default=$.exports});HQ.exports=RX()});var D2=J0((EX)=>{EX.base64=!0;EX.array=!0;EX.string=!0;EX.arraybuffer=typeof ArrayBuffer!=="undefined"&&typeof Uint8Array!=="undefined";EX.nodebuffer=typeof Buffer!=="undefined";EX.uint8array=typeof Uint8Array!=="undefined";if(typeof ArrayBuffer==="undefined")EX.blob=!1;else{R6=new ArrayBuffer(0);try{EX.blob=new Blob([R6],{type:"application/zip"}).size===0}catch(Q){try{c8=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,T6=new c8,T6.append(R6),EX.blob=T6.getBlob("application/zip").size===0}catch($){EX.blob=!1}}}var R6,c8,T6;try{EX.nodestream=!!x6().Readable}catch(Q){EX.nodestream=!1}});var p8=J0((bX)=>{var hX=N0(),_X=D2(),B2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";bX.encode=function(Q){var $=[],U,X,q,V,Y,K,G,J=0,B=Q.length,Z=B,j=hX.getTypeOf(Q)!=="string";while(J<Q.length){if(Z=B-J,!j)U=Q.charCodeAt(J++),X=J<B?Q.charCodeAt(J++):0,q=J<B?Q.charCodeAt(J++):0;else U=Q[J++],X=J<B?Q[J++]:0,q=J<B?Q[J++]:0;V=U>>2,Y=(U&3)<<4|X>>4,K=Z>1?(X&15)<<2|q>>6:64,G=Z>2?q&63:64,$.push(B2.charAt(V)+B2.charAt(Y)+B2.charAt(K)+B2.charAt(G))}return $.join("")};bX.decode=function(Q){var $,U,X,q,V,Y,K,G=0,J=0,B="data:";if(Q.substr(0,B.length)===B)throw new Error("Invalid base64 input, it looks like a data url.");Q=Q.replace(/[^A-Za-z0-9+/=]/g,"");var Z=Q.length*3/4;if(Q.charAt(Q.length-1)===B2.charAt(64))Z--;if(Q.charAt(Q.length-2)===B2.charAt(64))Z--;if(Z%1!==0)throw new Error("Invalid base64 input, bad content length.");var j;if(_X.uint8array)j=new Uint8Array(Z|0);else j=new Array(Z|0);while(G<Q.length){if(q=B2.indexOf(Q.charAt(G++)),V=B2.indexOf(Q.charAt(G++)),Y=B2.indexOf(Q.charAt(G++)),K=B2.indexOf(Q.charAt(G++)),$=q<<2|V>>4,U=(V&15)<<4|Y>>2,X=(Y&3)<<6|K,j[J++]=$,Y!==64)j[J++]=U;if(K!==64)j[J++]=X}return j}});var i1=J0((IB,LQ)=>{LQ.exports={isNode:typeof Buffer!=="undefined",newBufferFrom:function(Q,$){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(Q,$);else{if(typeof Q==="number")throw new Error('The "data" argument must not be a number');return new Buffer(Q,$)}},allocBuffer:function(Q){if(Buffer.alloc)return Buffer.alloc(Q);else{var $=new Buffer(Q);return $.fill(0),$}},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 NQ=J0((MB,OQ)=>{var CQ=global.MutationObserver||global.WebKitMutationObserver,n1;if(CQ)S6=0,m8=new CQ(E6),k6=global.document.createTextNode(""),m8.observe(k6,{characterData:!0}),n1=function(){k6.data=S6=++S6%2};else if(!global.setImmediate&&typeof global.MessageChannel!=="undefined")g6=new global.MessageChannel,g6.port1.onmessage=E6,n1=function(){g6.port2.postMessage(0)};else if("document"in global&&"onreadystatechange"in global.document.createElement("script"))n1=function(){var Q=global.document.createElement("script");Q.onreadystatechange=function(){E6(),Q.onreadystatechange=null,Q.parentNode.removeChild(Q),Q=null},global.document.documentElement.appendChild(Q)};else n1=function(){setTimeout(E6,0)};var S6,m8,k6,g6,d8,o1=[];function E6(){d8=!0;var Q,$,U=o1.length;while(U){$=o1,o1=[],Q=-1;while(++Q<U)$[Q]();U=o1.length}d8=!1}OQ.exports=pX;function pX(Q){if(o1.push(Q)===1&&!d8)n1()}});var EQ=J0((HB,TQ)=>{var mX=NQ();function P1(){}var f0={},DQ=["REJECTED"],l8=["FULFILLED"],AQ=["PENDING"];TQ.exports=g2;function g2(Q){if(typeof Q!=="function")throw new TypeError("resolver must be a function");if(this.state=AQ,this.queue=[],this.outcome=void 0,Q!==P1)xQ(this,Q)}g2.prototype.finally=function(Q){if(typeof Q!=="function")return this;var $=this.constructor;return this.then(U,X);function U(q){function V(){return q}return $.resolve(Q()).then(V)}function X(q){function V(){throw q}return $.resolve(Q()).then(V)}};g2.prototype.catch=function(Q){return this.then(null,Q)};g2.prototype.then=function(Q,$){if(typeof Q!=="function"&&this.state===l8||typeof $!=="function"&&this.state===DQ)return this;var U=new this.constructor(P1);if(this.state!==AQ){var X=this.state===l8?Q:$;i8(U,X,this.outcome)}else this.queue.push(new r1(U,Q,$));return U};function r1(Q,$,U){if(this.promise=Q,typeof $==="function")this.onFulfilled=$,this.callFulfilled=this.otherCallFulfilled;if(typeof U==="function")this.onRejected=U,this.callRejected=this.otherCallRejected}r1.prototype.callFulfilled=function(Q){f0.resolve(this.promise,Q)};r1.prototype.otherCallFulfilled=function(Q){i8(this.promise,this.onFulfilled,Q)};r1.prototype.callRejected=function(Q){f0.reject(this.promise,Q)};r1.prototype.otherCallRejected=function(Q){i8(this.promise,this.onRejected,Q)};function i8(Q,$,U){mX(function(){var X;try{X=$(U)}catch(q){return f0.reject(Q,q)}if(X===Q)f0.reject(Q,new TypeError("Cannot resolve promise with itself"));else f0.resolve(Q,X)})}f0.resolve=function(Q,$){var U=RQ(dX,$);if(U.status==="error")return f0.reject(Q,U.value);var X=U.value;if(X)xQ(Q,X);else{Q.state=l8,Q.outcome=$;var q=-1,V=Q.queue.length;while(++q<V)Q.queue[q].callFulfilled($)}return Q};f0.reject=function(Q,$){Q.state=DQ,Q.outcome=$;var U=-1,X=Q.queue.length;while(++U<X)Q.queue[U].callRejected($);return Q};function dX(Q){var $=Q&&Q.then;if(Q&&(typeof Q==="object"||typeof Q==="function")&&typeof $==="function")return function U(){$.apply(Q,arguments)}}function xQ(Q,$){var U=!1;function X(K){if(U)return;U=!0,f0.reject(Q,K)}function q(K){if(U)return;U=!0,f0.resolve(Q,K)}function V(){$(q,X)}var Y=RQ(V);if(Y.status==="error")X(Y.value)}function RQ(Q,$){var U={};try{U.value=Q($),U.status="success"}catch(X){U.status="error",U.value=X}return U}g2.resolve=lX;function lX(Q){if(Q instanceof this)return Q;return f0.resolve(new this(P1),Q)}g2.reject=iX;function iX(Q){var $=new this(P1);return f0.reject($,Q)}g2.all=nX;function nX(Q){var $=this;if(Object.prototype.toString.call(Q)!=="[object Array]")return this.reject(new TypeError("must be an array"));var U=Q.length,X=!1;if(!U)return this.resolve([]);var q=new Array(U),V=0,Y=-1,K=new this(P1);while(++Y<U)G(Q[Y],Y);return K;function G(J,B){$.resolve(J).then(Z,function(j){if(!X)X=!0,f0.reject(K,j)});function Z(j){if(q[B]=j,++V===U&&!X)X=!0,f0.resolve(K,q)}}}g2.race=oX;function oX(Q){var $=this;if(Object.prototype.toString.call(Q)!=="[object Array]")return this.reject(new TypeError("must be an array"));var U=Q.length,X=!1;if(!U)return this.resolve([]);var q=-1,V=new this(P1);while(++q<U)Y(Q[q]);return V;function Y(K){$.resolve(K).then(function(G){if(!X)X=!0,f0.resolve(V,G)},function(G){if(!X)X=!0,f0.reject(V,G)})}}});var F1=J0((LB,SQ)=>{var n8=null;if(typeof Promise!=="undefined")n8=Promise;else n8=EQ();SQ.exports={Promise:n8}});var gQ=J0((kQ)=>{(function(Q,$){if(Q.setImmediate)return;var U=1,X={},q=!1,V=Q.document,Y;function K(w){if(typeof w!=="function")w=new Function(""+w);var I=new Array(arguments.length-1);for(var F=0;F<I.length;F++)I[F]=arguments[F+1];var L={callback:w,args:I};return X[U]=L,Y(U),U++}function G(w){delete X[w]}function J(w){var{callback:I,args:F}=w;switch(F.length){case 0:I();break;case 1:I(F[0]);break;case 2:I(F[0],F[1]);break;case 3:I(F[0],F[1],F[2]);break;default:I.apply($,F);break}}function B(w){if(q)setTimeout(B,0,w);else{var I=X[w];if(I){q=!0;try{J(I)}finally{G(w),q=!1}}}}function Z(){Y=function(w){process.nextTick(function(){B(w)})}}function j(){if(Q.postMessage&&!Q.importScripts){var w=!0,I=Q.onmessage;return Q.onmessage=function(){w=!1},Q.postMessage("","*"),Q.onmessage=I,w}}function P(){var w="setImmediate$"+Math.random()+"$",I=function(F){if(F.source===Q&&typeof F.data==="string"&&F.data.indexOf(w)===0)B(+F.data.slice(w.length))};if(Q.addEventListener)Q.addEventListener("message",I,!1);else Q.attachEvent("onmessage",I);Y=function(F){Q.postMessage(w+F,"*")}}function g(){var w=new MessageChannel;w.port1.onmessage=function(I){var F=I.data;B(F)},Y=function(I){w.port2.postMessage(I)}}function y(){var w=V.documentElement;Y=function(I){var F=V.createElement("script");F.onreadystatechange=function(){B(I),F.onreadystatechange=null,w.removeChild(F),F=null},w.appendChild(F)}}function k(){Y=function(w){setTimeout(B,0,w)}}var M=Object.getPrototypeOf&&Object.getPrototypeOf(Q);if(M=M&&M.setTimeout?M:Q,{}.toString.call(Q.process)==="[object process]")Z();else if(j())P();else if(Q.MessageChannel)g();else if(V&&"onreadystatechange"in V.createElement("script"))y();else k();M.setImmediate=K,M.clearImmediate=G})(typeof self==="undefined"?typeof global==="undefined"?kQ:global:self)});var N0=J0((sX)=>{var v2=D2(),rX=p8(),I1=i1(),o8=F1();gQ();function aX(Q){var $=null;if(v2.uint8array)$=new Uint8Array(Q.length);else $=new Array(Q.length);return y6(Q,$)}sX.newBlob=function(Q,$){sX.checkSupport("blob");try{return new Blob([Q],{type:$})}catch(q){try{var U=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,X=new U;return X.append(Q),X.getBlob($)}catch(V){throw new Error("Bug : can't construct the Blob.")}}};function a1(Q){return Q}function y6(Q,$){for(var U=0;U<Q.length;++U)$[U]=Q.charCodeAt(U)&255;return $}var v6={stringifyByChunk:function(Q,$,U){var X=[],q=0,V=Q.length;if(V<=U)return String.fromCharCode.apply(null,Q);while(q<V){if($==="array"||$==="nodebuffer")X.push(String.fromCharCode.apply(null,Q.slice(q,Math.min(q+U,V))));else X.push(String.fromCharCode.apply(null,Q.subarray(q,Math.min(q+U,V))));q+=U}return X.join("")},stringifyByChar:function(Q){var $="";for(var U=0;U<Q.length;U++)$+=String.fromCharCode(Q[U]);return $},applyCanBeUsed:{uint8array:function(){try{return v2.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(Q){return!1}}(),nodebuffer:function(){try{return v2.nodebuffer&&String.fromCharCode.apply(null,I1.allocBuffer(1)).length===1}catch(Q){return!1}}()}};function s1(Q){var $=65536,U=sX.getTypeOf(Q),X=!0;if(U==="uint8array")X=v6.applyCanBeUsed.uint8array;else if(U==="nodebuffer")X=v6.applyCanBeUsed.nodebuffer;if(X)while($>1)try{return v6.stringifyByChunk(Q,U,$)}catch(q){$=Math.floor($/2)}return v6.stringifyByChar(Q)}sX.applyFromCharCode=s1;function f6(Q,$){for(var U=0;U<Q.length;U++)$[U]=Q[U];return $}var y2={};y2.string={string:a1,array:function(Q){return y6(Q,new Array(Q.length))},arraybuffer:function(Q){return y2.string.uint8array(Q).buffer},uint8array:function(Q){return y6(Q,new Uint8Array(Q.length))},nodebuffer:function(Q){return y6(Q,I1.allocBuffer(Q.length))}};y2.array={string:s1,array:a1,arraybuffer:function(Q){return new Uint8Array(Q).buffer},uint8array:function(Q){return new Uint8Array(Q)},nodebuffer:function(Q){return I1.newBufferFrom(Q)}};y2.arraybuffer={string:function(Q){return s1(new Uint8Array(Q))},array:function(Q){return f6(new Uint8Array(Q),new Array(Q.byteLength))},arraybuffer:a1,uint8array:function(Q){return new Uint8Array(Q)},nodebuffer:function(Q){return I1.newBufferFrom(new Uint8Array(Q))}};y2.uint8array={string:s1,array:function(Q){return f6(Q,new Array(Q.length))},arraybuffer:function(Q){return Q.buffer},uint8array:a1,nodebuffer:function(Q){return I1.newBufferFrom(Q)}};y2.nodebuffer={string:s1,array:function(Q){return f6(Q,new Array(Q.length))},arraybuffer:function(Q){return y2.nodebuffer.uint8array(Q).buffer},uint8array:function(Q){return f6(Q,new Uint8Array(Q.length))},nodebuffer:a1};sX.transformTo=function(Q,$){if(!$)$="";if(!Q)return $;sX.checkSupport(Q);var U=sX.getTypeOf($),X=y2[U][Q]($);return X};sX.resolve=function(Q){var $=Q.split("/"),U=[];for(var X=0;X<$.length;X++){var q=$[X];if(q==="."||q===""&&X!==0&&X!==$.length-1)continue;else if(q==="..")U.pop();else U.push(q)}return U.join("/")};sX.getTypeOf=function(Q){if(typeof Q==="string")return"string";if(Object.prototype.toString.call(Q)==="[object Array]")return"array";if(v2.nodebuffer&&I1.isBuffer(Q))return"nodebuffer";if(v2.uint8array&&Q instanceof Uint8Array)return"uint8array";if(v2.arraybuffer&&Q instanceof ArrayBuffer)return"arraybuffer"};sX.checkSupport=function(Q){var $=v2[Q.toLowerCase()];if(!$)throw new Error(Q+" is not supported by this platform")};sX.MAX_VALUE_16BITS=65535;sX.MAX_VALUE_32BITS=-1;sX.pretty=function(Q){var $="",U,X;for(X=0;X<(Q||"").length;X++)U=Q.charCodeAt(X),$+="\\x"+(U<16?"0":"")+U.toString(16).toUpperCase();return $};sX.delay=function(Q,$,U){setImmediate(function(){Q.apply(U||null,$||[])})};sX.inherits=function(Q,$){var U=function(){};U.prototype=$.prototype,Q.prototype=new U};sX.extend=function(){var Q={},$,U;for($=0;$<arguments.length;$++)for(U in arguments[$])if(Object.prototype.hasOwnProperty.call(arguments[$],U)&&typeof Q[U]==="undefined")Q[U]=arguments[$][U];return Q};sX.prepareContent=function(Q,$,U,X,q){var V=o8.Promise.resolve($).then(function(Y){var K=v2.blob&&(Y instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(Y))!==-1);if(K&&typeof FileReader!=="undefined")return new o8.Promise(function(G,J){var B=new FileReader;B.onload=function(Z){G(Z.target.result)},B.onerror=function(Z){J(Z.target.error)},B.readAsArrayBuffer(Y)});else return Y});return V.then(function(Y){var K=sX.getTypeOf(Y);if(!K)return o8.Promise.reject(new Error("Can't read the data of '"+Q+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));if(K==="arraybuffer")Y=sX.transformTo("uint8array",Y);else if(K==="string"){if(q)Y=rX.decode(Y);else if(U){if(X!==!0)Y=aX(Y)}}return Y})}});var l0=J0((NB,hQ)=>{function fQ(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}fQ.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,$){return this._listeners[Q].push($),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(Q,$){if(this._listeners[Q])for(var U=0;U<this._listeners[Q].length;U++)this._listeners[Q][U].call(this,$)},pipe:function(Q){return Q.registerPrevious(this)},registerPrevious:function(Q){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=Q.streamInfo,this.mergeStreamInfo(),this.previous=Q;var $=this;return Q.on("data",function(U){$.processChunk(U)}),Q.on("end",function(){$.end()}),Q.on("error",function(U){$.error(U)}),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,$){return this.extraStreamInfo[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 new 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}};hQ.exports=fQ});var H1=J0((Wq)=>{var M1=N0(),e2=D2(),Jq=i1(),h6=l0(),t1=new Array(256);for(G2=0;G2<256;G2++)t1[G2]=G2>=252?6:G2>=248?5:G2>=240?4:G2>=224?3:G2>=192?2:1;var G2;t1[254]=t1[254]=1;var Bq=function(Q){var $,U,X,q,V,Y=Q.length,K=0;for(q=0;q<Y;q++){if(U=Q.charCodeAt(q),(U&64512)===55296&&q+1<Y){if(X=Q.charCodeAt(q+1),(X&64512)===56320)U=65536+(U-55296<<10)+(X-56320),q++}K+=U<128?1:U<2048?2:U<65536?3:4}if(e2.uint8array)$=new Uint8Array(K);else $=new Array(K);for(V=0,q=0;V<K;q++){if(U=Q.charCodeAt(q),(U&64512)===55296&&q+1<Y){if(X=Q.charCodeAt(q+1),(X&64512)===56320)U=65536+(U-55296<<10)+(X-56320),q++}if(U<128)$[V++]=U;else if(U<2048)$[V++]=192|U>>>6,$[V++]=128|U&63;else if(U<65536)$[V++]=224|U>>>12,$[V++]=128|U>>>6&63,$[V++]=128|U&63;else $[V++]=240|U>>>18,$[V++]=128|U>>>12&63,$[V++]=128|U>>>6&63,$[V++]=128|U&63}return $},Gq=function(Q,$){var U;if($=$||Q.length,$>Q.length)$=Q.length;U=$-1;while(U>=0&&(Q[U]&192)===128)U--;if(U<0)return $;if(U===0)return $;return U+t1[Q[U]]>$?U:$},wq=function(Q){var $,U,X,q,V=Q.length,Y=new Array(V*2);for(U=0,$=0;$<V;){if(X=Q[$++],X<128){Y[U++]=X;continue}if(q=t1[X],q>4){Y[U++]=65533,$+=q-1;continue}X&=q===2?31:q===3?15:7;while(q>1&&$<V)X=X<<6|Q[$++]&63,q--;if(q>1){Y[U++]=65533;continue}if(X<65536)Y[U++]=X;else X-=65536,Y[U++]=55296|X>>10&1023,Y[U++]=56320|X&1023}if(Y.length!==U)if(Y.subarray)Y=Y.subarray(0,U);else Y.length=U;return M1.applyFromCharCode(Y)};Wq.utf8encode=function Q($){if(e2.nodebuffer)return Jq.newBufferFrom($,"utf-8");return Bq($)};Wq.utf8decode=function Q($){if(e2.nodebuffer)return M1.transformTo("nodebuffer",$).toString("utf-8");return $=M1.transformTo(e2.uint8array?"uint8array":"array",$),wq($)};function _6(){h6.call(this,"utf-8 decode"),this.leftOver=null}M1.inherits(_6,h6);_6.prototype.processChunk=function(Q){var $=M1.transformTo(e2.uint8array?"uint8array":"array",Q.data);if(this.leftOver&&this.leftOver.length){if(e2.uint8array){var U=$;$=new Uint8Array(U.length+this.leftOver.length),$.set(this.leftOver,0),$.set(U,this.leftOver.length)}else $=this.leftOver.concat($);this.leftOver=null}var X=Gq($),q=$;if(X!==$.length)if(e2.uint8array)q=$.subarray(0,X),this.leftOver=$.subarray(X,$.length);else q=$.slice(0,X),this.leftOver=$.slice(X,$.length);this.push({data:Wq.utf8decode(q),meta:Q.meta})};_6.prototype.flush=function(){if(this.leftOver&&this.leftOver.length)this.push({data:Wq.utf8decode(this.leftOver),meta:{}}),this.leftOver=null};Wq.Utf8DecodeWorker=_6;function a8(){h6.call(this,"utf-8 encode")}M1.inherits(a8,h6);a8.prototype.processChunk=function(Q){this.push({data:Wq.utf8encode(Q.data),meta:Q.meta})};Wq.Utf8EncodeWorker=a8});var pQ=J0((AB,cQ)=>{var bQ=l0(),uQ=N0();function t8(Q){bQ.call(this,"ConvertWorker to "+Q),this.destType=Q}uQ.inherits(t8,bQ);t8.prototype.processChunk=function(Q){this.push({data:uQ.transformTo(this.destType,Q.data),meta:Q.meta})};cQ.exports=t8});var lQ=J0((xB,dQ)=>{var mQ=x6().Readable,Zq=N0();Zq.inherits(e8,mQ);function e8(Q,$,U){mQ.call(this,$),this._helper=Q;var X=this;Q.on("data",function(q,V){if(!X.push(q))X._helper.pause();if(U)U(V)}).on("error",function(q){X.emit("error",q)}).on("end",function(){X.push(null)})}e8.prototype._read=function(){this._helper.resume()};dQ.exports=e8});var Q5=J0((RB,oQ)=>{var Q1=N0(),Pq=pQ(),Fq=l0(),Iq=p8(),Mq=D2(),Hq=F1(),iQ=null;if(Mq.nodestream)try{iQ=lQ()}catch(Q){}function Lq(Q,$,U){switch(Q){case"blob":return Q1.newBlob(Q1.transformTo("arraybuffer",$),U);case"base64":return Iq.encode($);default:return Q1.transformTo(Q,$)}}function Cq(Q,$){var U,X=0,q=null,V=0;for(U=0;U<$.length;U++)V+=$[U].length;switch(Q){case"string":return $.join("");case"array":return Array.prototype.concat.apply([],$);case"uint8array":q=new Uint8Array(V);for(U=0;U<$.length;U++)q.set($[U],X),X+=$[U].length;return q;case"nodebuffer":return Buffer.concat($);default:throw new Error("concat : unsupported type '"+Q+"'")}}function Oq(Q,$){return new Hq.Promise(function(U,X){var q=[],V=Q._internalType,Y=Q._outputType,K=Q._mimeType;Q.on("data",function(G,J){if(q.push(G),$)$(J)}).on("error",function(G){q=[],X(G)}).on("end",function(){try{var G=Lq(Y,Cq(V,q),K);U(G)}catch(J){X(J)}q=[]}).resume()})}function nQ(Q,$,U){var X=$;switch($){case"blob":case"arraybuffer":X="uint8array";break;case"base64":X="string";break}try{this._internalType=X,this._outputType=$,this._mimeType=U,Q1.checkSupport(X),this._worker=Q.pipe(new Pq(X)),Q.lock()}catch(q){this._worker=new Fq("error"),this._worker.error(q)}}nQ.prototype={accumulate:function(Q){return Oq(this,Q)},on:function(Q,$){var U=this;if(Q==="data")this._worker.on(Q,function(X){$.call(U,X.data,X.meta)});else this._worker.on(Q,function(){Q1.delay($,arguments,U)});return this},resume:function(){return Q1.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(Q){if(Q1.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new iQ(this,{objectMode:this._outputType!=="nodebuffer"},Q)}};oQ.exports=nQ});var $5=J0((Nq)=>{Nq.base64=!1;Nq.binary=!1;Nq.dir=!1;Nq.createFolders=!0;Nq.date=null;Nq.compression=null;Nq.compressionOptions=null;Nq.comment=null;Nq.unixPermissions=null;Nq.dosPermissions=null});var U5=J0((EB,rQ)=>{var b6=N0(),u6=l0(),yq=16384;function L1(Q){u6.call(this,"DataWorker");var $=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,Q.then(function(U){if($.dataIsReady=!0,$.data=U,$.max=U&&U.length||0,$.type=b6.getTypeOf(U),!$.isPaused)$._tickAndRepeat()},function(U){$.error(U)})}b6.inherits(L1,u6);L1.prototype.cleanUp=function(){u6.prototype.cleanUp.call(this),this.data=null};L1.prototype.resume=function(){if(!u6.prototype.resume.call(this))return!1;if(!this._tickScheduled&&this.dataIsReady)this._tickScheduled=!0,b6.delay(this._tickAndRepeat,[],this);return!0};L1.prototype._tickAndRepeat=function(){if(this._tickScheduled=!1,this.isPaused||this.isFinished)return;if(this._tick(),!this.isFinished)b6.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0};L1.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var Q=yq,$=null,U=Math.min(this.max,this.index+Q);if(this.index>=this.max)return this.end();else{switch(this.type){case"string":$=this.data.substring(this.index,U);break;case"uint8array":$=this.data.subarray(this.index,U);break;case"array":case"nodebuffer":$=this.data.slice(this.index,U);break}return this.index=U,this.push({data:$,meta:{percent:this.max?this.index/this.max*100:0}})}};rQ.exports=L1});var c6=J0((SB,sQ)=>{var fq=N0();function hq(){var Q,$=[];for(var U=0;U<256;U++){Q=U;for(var X=0;X<8;X++)Q=Q&1?3988292384^Q>>>1:Q>>>1;$[U]=Q}return $}var aQ=hq();function _q(Q,$,U,X){var q=aQ,V=X+U;Q=Q^-1;for(var Y=X;Y<V;Y++)Q=Q>>>8^q[(Q^$[Y])&255];return Q^-1}function bq(Q,$,U,X){var q=aQ,V=X+U;Q=Q^-1;for(var Y=X;Y<V;Y++)Q=Q>>>8^q[(Q^$.charCodeAt(Y))&255];return Q^-1}sQ.exports=function Q($,U){if(typeof $==="undefined"||!$.length)return 0;var X=fq.getTypeOf($)!=="string";if(X)return _q(U|0,$,$.length,0);else return bq(U|0,$,$.length,0)}});var q5=J0((kB,eQ)=>{var tQ=l0(),uq=c6(),cq=N0();function X5(){tQ.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}cq.inherits(X5,tQ);X5.prototype.processChunk=function(Q){this.streamInfo.crc32=uq(Q.data,this.streamInfo.crc32||0),this.push(Q)};eQ.exports=X5});var $$=J0((gB,Q$)=>{var pq=N0(),V5=l0();function Y5(Q){V5.call(this,"DataLengthProbe for "+Q),this.propName=Q,this.withStreamInfo(Q,0)}pq.inherits(Y5,V5);Y5.prototype.processChunk=function(Q){if(Q){var $=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=$+Q.data.length}V5.prototype.processChunk.call(this,Q)};Q$.exports=Y5});var p6=J0((vB,q$)=>{var U$=F1(),X$=U5(),mq=q5(),K5=$$();function J5(Q,$,U,X,q){this.compressedSize=Q,this.uncompressedSize=$,this.crc32=U,this.compression=X,this.compressedContent=q}J5.prototype={getContentWorker:function(){var Q=new X$(U$.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new K5("data_length")),$=this;return Q.on("end",function(){if(this.streamInfo.data_length!==$.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),Q},getCompressedWorker:function(){return new X$(U$.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}};J5.createWorkerFrom=function(Q,$,U){return Q.pipe(new mq).pipe(new K5("uncompressedSize")).pipe($.compressWorker(U)).pipe(new K5("compressedSize")).withStreamInfo("compression",$)};q$.exports=J5});var J$=J0((yB,K$)=>{var dq=Q5(),lq=U5(),B5=H1(),G5=p6(),V$=l0(),w5=function(Q,$,U){this.name=Q,this.dir=U.dir,this.date=U.date,this.comment=U.comment,this.unixPermissions=U.unixPermissions,this.dosPermissions=U.dosPermissions,this._data=$,this._dataBinary=U.binary,this.options={compression:U.compression,compressionOptions:U.compressionOptions}};w5.prototype={internalStream:function(Q){var $=null,U="string";try{if(!Q)throw new Error("No output type specified.");U=Q.toLowerCase();var X=U==="string"||U==="text";if(U==="binarystring"||U==="text")U="string";$=this._decompressWorker();var q=!this._dataBinary;if(q&&!X)$=$.pipe(new B5.Utf8EncodeWorker);if(!q&&X)$=$.pipe(new B5.Utf8DecodeWorker)}catch(V){$=new V$("error"),$.error(V)}return new dq($,U,"")},async:function(Q,$){return this.internalStream(Q).accumulate($)},nodeStream:function(Q,$){return this.internalStream(Q||"nodebuffer").toNodejsStream($)},_compressWorker:function(Q,$){if(this._data instanceof G5&&this._data.compression.magic===Q.magic)return this._data.getCompressedWorker();else{var U=this._decompressWorker();if(!this._dataBinary)U=U.pipe(new B5.Utf8EncodeWorker);return G5.createWorkerFrom(U,Q,$)}},_decompressWorker:function(){if(this._data instanceof G5)return this._data.getContentWorker();else if(this._data instanceof V$)return this._data;else return new lq(this._data)}};var Y$=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],iq=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")};for(e1=0;e1<Y$.length;e1++)w5.prototype[Y$[e1]]=iq;var e1;K$.exports=w5});var A2=J0((W5)=>{var aq=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";function sq(Q,$){return Object.prototype.hasOwnProperty.call(Q,$)}W5.assign=function(Q){var $=Array.prototype.slice.call(arguments,1);while($.length){var U=$.shift();if(!U)continue;if(typeof U!=="object")throw new TypeError(U+"must be non-object");for(var X in U)if(sq(U,X))Q[X]=U[X]}return Q};W5.shrinkBuf=function(Q,$){if(Q.length===$)return Q;if(Q.subarray)return Q.subarray(0,$);return Q.length=$,Q};var tq={arraySet:function(Q,$,U,X,q){if($.subarray&&Q.subarray){Q.set($.subarray(U,U+X),q);return}for(var V=0;V<X;V++)Q[q+V]=$[U+V]},flattenChunks:function(Q){var $,U,X,q,V,Y;X=0;for($=0,U=Q.length;$<U;$++)X+=Q[$].length;Y=new Uint8Array(X),q=0;for($=0,U=Q.length;$<U;$++)V=Q[$],Y.set(V,q),q+=V.length;return Y}},eq={arraySet:function(Q,$,U,X,q){for(var V=0;V<X;V++)Q[q+V]=$[U+V]},flattenChunks:function(Q){return[].concat.apply([],Q)}};W5.setTyped=function(Q){if(Q)W5.Buf8=Uint8Array,W5.Buf16=Uint16Array,W5.Buf32=Int32Array,W5.assign(W5,tq);else W5.Buf8=Array,W5.Buf16=Array,W5.Buf32=Array,W5.assign(W5,eq)};W5.setTyped(aq)});var k$=J0((CV)=>{var $V=A2(),UV=4,G$=0,w$=1,XV=2;function O1(Q){var $=Q.length;while(--$>=0)Q[$]=0}var qV=0,F$=1,VV=2,YV=3,KV=258,H5=29,V6=256,$6=V6+1+H5,C1=30,L5=19,I$=2*$6+1,$1=15,j5=16,JV=7,C5=256,M$=16,H$=17,L$=18,I5=[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],m6=[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],BV=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],C$=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],GV=512,x2=new Array(($6+2)*2);O1(x2);var Q6=new Array(C1*2);O1(Q6);var U6=new Array(GV);O1(U6);var X6=new Array(KV-YV+1);O1(X6);var O5=new Array(H5);O1(O5);var d6=new Array(C1);O1(d6);function Z5(Q,$,U,X,q){this.static_tree=Q,this.extra_bits=$,this.extra_base=U,this.elems=X,this.max_length=q,this.has_stree=Q&&Q.length}var O$,N$,D$;function P5(Q,$){this.dyn_tree=Q,this.max_code=0,this.stat_desc=$}function A$(Q){return Q<256?U6[Q]:U6[256+(Q>>>7)]}function q6(Q,$){Q.pending_buf[Q.pending++]=$&255,Q.pending_buf[Q.pending++]=$>>>8&255}function p0(Q,$,U){if(Q.bi_valid>j5-U)Q.bi_buf|=$<<Q.bi_valid&65535,q6(Q,Q.bi_buf),Q.bi_buf=$>>j5-Q.bi_valid,Q.bi_valid+=U-j5;else Q.bi_buf|=$<<Q.bi_valid&65535,Q.bi_valid+=U}function w2(Q,$,U){p0(Q,U[$*2],U[$*2+1])}function x$(Q,$){var U=0;do U|=Q&1,Q>>>=1,U<<=1;while(--$>0);return U>>>1}function wV(Q){if(Q.bi_valid===16)q6(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 WV(Q,$){var{dyn_tree:U,max_code:X}=$,q=$.stat_desc.static_tree,V=$.stat_desc.has_stree,Y=$.stat_desc.extra_bits,K=$.stat_desc.extra_base,G=$.stat_desc.max_length,J,B,Z,j,P,g,y=0;for(j=0;j<=$1;j++)Q.bl_count[j]=0;U[Q.heap[Q.heap_max]*2+1]=0;for(J=Q.heap_max+1;J<I$;J++){if(B=Q.heap[J],j=U[U[B*2+1]*2+1]+1,j>G)j=G,y++;if(U[B*2+1]=j,B>X)continue;if(Q.bl_count[j]++,P=0,B>=K)P=Y[B-K];if(g=U[B*2],Q.opt_len+=g*(j+P),V)Q.static_len+=g*(q[B*2+1]+P)}if(y===0)return;do{j=G-1;while(Q.bl_count[j]===0)j--;Q.bl_count[j]--,Q.bl_count[j+1]+=2,Q.bl_count[G]--,y-=2}while(y>0);for(j=G;j!==0;j--){B=Q.bl_count[j];while(B!==0){if(Z=Q.heap[--J],Z>X)continue;if(U[Z*2+1]!==j)Q.opt_len+=(j-U[Z*2+1])*U[Z*2],U[Z*2+1]=j;B--}}}function R$(Q,$,U){var X=new Array($1+1),q=0,V,Y;for(V=1;V<=$1;V++)X[V]=q=q+U[V-1]<<1;for(Y=0;Y<=$;Y++){var K=Q[Y*2+1];if(K===0)continue;Q[Y*2]=x$(X[K]++,K)}}function zV(){var Q,$,U,X,q,V=new Array($1+1);U=0;for(X=0;X<H5-1;X++){O5[X]=U;for(Q=0;Q<1<<I5[X];Q++)X6[U++]=X}X6[U-1]=X,q=0;for(X=0;X<16;X++){d6[X]=q;for(Q=0;Q<1<<m6[X];Q++)U6[q++]=X}q>>=7;for(;X<C1;X++){d6[X]=q<<7;for(Q=0;Q<1<<m6[X]-7;Q++)U6[256+q++]=X}for($=0;$<=$1;$++)V[$]=0;Q=0;while(Q<=143)x2[Q*2+1]=8,Q++,V[8]++;while(Q<=255)x2[Q*2+1]=9,Q++,V[9]++;while(Q<=279)x2[Q*2+1]=7,Q++,V[7]++;while(Q<=287)x2[Q*2+1]=8,Q++,V[8]++;R$(x2,$6+1,V);for(Q=0;Q<C1;Q++)Q6[Q*2+1]=5,Q6[Q*2]=x$(Q,5);O$=new Z5(x2,I5,V6+1,$6,$1),N$=new Z5(Q6,m6,0,C1,$1),D$=new Z5(new Array(0),BV,0,L5,JV)}function T$(Q){var $;for($=0;$<$6;$++)Q.dyn_ltree[$*2]=0;for($=0;$<C1;$++)Q.dyn_dtree[$*2]=0;for($=0;$<L5;$++)Q.bl_tree[$*2]=0;Q.dyn_ltree[C5*2]=1,Q.opt_len=Q.static_len=0,Q.last_lit=Q.matches=0}function E$(Q){if(Q.bi_valid>8)q6(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 jV(Q,$,U,X){if(E$(Q),X)q6(Q,U),q6(Q,~U);$V.arraySet(Q.pending_buf,Q.window,$,U,Q.pending),Q.pending+=U}function W$(Q,$,U,X){var q=$*2,V=U*2;return Q[q]<Q[V]||Q[q]===Q[V]&&X[$]<=X[U]}function F5(Q,$,U){var X=Q.heap[U],q=U<<1;while(q<=Q.heap_len){if(q<Q.heap_len&&W$($,Q.heap[q+1],Q.heap[q],Q.depth))q++;if(W$($,X,Q.heap[q],Q.depth))break;Q.heap[U]=Q.heap[q],U=q,q<<=1}Q.heap[U]=X}function z$(Q,$,U){var X,q,V=0,Y,K;if(Q.last_lit!==0)do if(X=Q.pending_buf[Q.d_buf+V*2]<<8|Q.pending_buf[Q.d_buf+V*2+1],q=Q.pending_buf[Q.l_buf+V],V++,X===0)w2(Q,q,$);else{if(Y=X6[q],w2(Q,Y+V6+1,$),K=I5[Y],K!==0)q-=O5[Y],p0(Q,q,K);if(X--,Y=A$(X),w2(Q,Y,U),K=m6[Y],K!==0)X-=d6[Y],p0(Q,X,K)}while(V<Q.last_lit);w2(Q,C5,$)}function M5(Q,$){var U=$.dyn_tree,X=$.stat_desc.static_tree,q=$.stat_desc.has_stree,V=$.stat_desc.elems,Y,K,G=-1,J;Q.heap_len=0,Q.heap_max=I$;for(Y=0;Y<V;Y++)if(U[Y*2]!==0)Q.heap[++Q.heap_len]=G=Y,Q.depth[Y]=0;else U[Y*2+1]=0;while(Q.heap_len<2)if(J=Q.heap[++Q.heap_len]=G<2?++G:0,U[J*2]=1,Q.depth[J]=0,Q.opt_len--,q)Q.static_len-=X[J*2+1];$.max_code=G;for(Y=Q.heap_len>>1;Y>=1;Y--)F5(Q,U,Y);J=V;do Y=Q.heap[1],Q.heap[1]=Q.heap[Q.heap_len--],F5(Q,U,1),K=Q.heap[1],Q.heap[--Q.heap_max]=Y,Q.heap[--Q.heap_max]=K,U[J*2]=U[Y*2]+U[K*2],Q.depth[J]=(Q.depth[Y]>=Q.depth[K]?Q.depth[Y]:Q.depth[K])+1,U[Y*2+1]=U[K*2+1]=J,Q.heap[1]=J++,F5(Q,U,1);while(Q.heap_len>=2);Q.heap[--Q.heap_max]=Q.heap[1],WV(Q,$),R$(U,G,Q.bl_count)}function j$(Q,$,U){var X,q=-1,V,Y=$[1],K=0,G=7,J=4;if(Y===0)G=138,J=3;$[(U+1)*2+1]=65535;for(X=0;X<=U;X++){if(V=Y,Y=$[(X+1)*2+1],++K<G&&V===Y)continue;else if(K<J)Q.bl_tree[V*2]+=K;else if(V!==0){if(V!==q)Q.bl_tree[V*2]++;Q.bl_tree[M$*2]++}else if(K<=10)Q.bl_tree[H$*2]++;else Q.bl_tree[L$*2]++;if(K=0,q=V,Y===0)G=138,J=3;else if(V===Y)G=6,J=3;else G=7,J=4}}function Z$(Q,$,U){var X,q=-1,V,Y=$[1],K=0,G=7,J=4;if(Y===0)G=138,J=3;for(X=0;X<=U;X++){if(V=Y,Y=$[(X+1)*2+1],++K<G&&V===Y)continue;else if(K<J)do w2(Q,V,Q.bl_tree);while(--K!==0);else if(V!==0){if(V!==q)w2(Q,V,Q.bl_tree),K--;w2(Q,M$,Q.bl_tree),p0(Q,K-3,2)}else if(K<=10)w2(Q,H$,Q.bl_tree),p0(Q,K-3,3);else w2(Q,L$,Q.bl_tree),p0(Q,K-11,7);if(K=0,q=V,Y===0)G=138,J=3;else if(V===Y)G=6,J=3;else G=7,J=4}}function ZV(Q){var $;j$(Q,Q.dyn_ltree,Q.l_desc.max_code),j$(Q,Q.dyn_dtree,Q.d_desc.max_code),M5(Q,Q.bl_desc);for($=L5-1;$>=3;$--)if(Q.bl_tree[C$[$]*2+1]!==0)break;return Q.opt_len+=3*($+1)+5+5+4,$}function PV(Q,$,U,X){var q;p0(Q,$-257,5),p0(Q,U-1,5),p0(Q,X-4,4);for(q=0;q<X;q++)p0(Q,Q.bl_tree[C$[q]*2+1],3);Z$(Q,Q.dyn_ltree,$-1),Z$(Q,Q.dyn_dtree,U-1)}function FV(Q){var $=4093624447,U;for(U=0;U<=31;U++,$>>>=1)if($&1&&Q.dyn_ltree[U*2]!==0)return G$;if(Q.dyn_ltree[18]!==0||Q.dyn_ltree[20]!==0||Q.dyn_ltree[26]!==0)return w$;for(U=32;U<V6;U++)if(Q.dyn_ltree[U*2]!==0)return w$;return G$}var P$=!1;function IV(Q){if(!P$)zV(),P$=!0;Q.l_desc=new P5(Q.dyn_ltree,O$),Q.d_desc=new P5(Q.dyn_dtree,N$),Q.bl_desc=new P5(Q.bl_tree,D$),Q.bi_buf=0,Q.bi_valid=0,T$(Q)}function S$(Q,$,U,X){p0(Q,(qV<<1)+(X?1:0),3),jV(Q,$,U,!0)}function MV(Q){p0(Q,F$<<1,3),w2(Q,C5,x2),wV(Q)}function HV(Q,$,U,X){var q,V,Y=0;if(Q.level>0){if(Q.strm.data_type===XV)Q.strm.data_type=FV(Q);if(M5(Q,Q.l_desc),M5(Q,Q.d_desc),Y=ZV(Q),q=Q.opt_len+3+7>>>3,V=Q.static_len+3+7>>>3,V<=q)q=V}else q=V=U+5;if(U+4<=q&&$!==-1)S$(Q,$,U,X);else if(Q.strategy===UV||V===q)p0(Q,(F$<<1)+(X?1:0),3),z$(Q,x2,Q6);else p0(Q,(VV<<1)+(X?1:0),3),PV(Q,Q.l_desc.max_code+1,Q.d_desc.max_code+1,Y+1),z$(Q,Q.dyn_ltree,Q.dyn_dtree);if(T$(Q),X)E$(Q)}function LV(Q,$,U){if(Q.pending_buf[Q.d_buf+Q.last_lit*2]=$>>>8&255,Q.pending_buf[Q.d_buf+Q.last_lit*2+1]=$&255,Q.pending_buf[Q.l_buf+Q.last_lit]=U&255,Q.last_lit++,$===0)Q.dyn_ltree[U*2]++;else Q.matches++,$--,Q.dyn_ltree[(X6[U]+V6+1)*2]++,Q.dyn_dtree[A$($)*2]++;return Q.last_lit===Q.lit_bufsize-1}CV._tr_init=IV;CV._tr_stored_block=S$;CV._tr_flush_block=HV;CV._tr_tally=LV;CV._tr_align=MV});var N5=J0((_B,g$)=>{function RV(Q,$,U,X){var q=Q&65535|0,V=Q>>>16&65535|0,Y=0;while(U!==0){Y=U>2000?2000:U,U-=Y;do q=q+$[X++]|0,V=V+q|0;while(--Y);q%=65521,V%=65521}return q|V<<16|0}g$.exports=RV});var D5=J0((bB,v$)=>{function TV(){var Q,$=[];for(var U=0;U<256;U++){Q=U;for(var X=0;X<8;X++)Q=Q&1?3988292384^Q>>>1:Q>>>1;$[U]=Q}return $}var EV=TV();function SV(Q,$,U,X){var q=EV,V=X+U;Q^=-1;for(var Y=X;Y<V;Y++)Q=Q>>>8^q[(Q^$[Y])&255];return Q^-1}v$.exports=SV});var l6=J0((uB,y$)=>{y$.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 d$=J0((GY)=>{var _0=A2(),a0=k$(),b$=N5(),f2=D5(),kV=l6(),V1=0,gV=1,vV=3,c2=4,f$=5,z2=0,h$=1,s0=-2,yV=-3,A5=-5,fV=-1,hV=1,i6=2,_V=3,bV=4,uV=0,cV=2,a6=8,pV=9,mV=15,dV=8,lV=29,iV=256,R5=iV+1+lV,nV=30,oV=19,rV=2*R5+1,aV=15,P0=3,b2=258,$2=b2+P0+1,sV=32,s6=42,T5=69,n6=73,o6=91,r6=103,U1=113,K6=666,T0=1,J6=2,X1=3,A1=4,tV=3;function u2(Q,$){return Q.msg=kV[$],$}function _$(Q){return(Q<<1)-(Q>4?9:0)}function _2(Q){var $=Q.length;while(--$>=0)Q[$]=0}function h2(Q){var $=Q.state,U=$.pending;if(U>Q.avail_out)U=Q.avail_out;if(U===0)return;if(_0.arraySet(Q.output,$.pending_buf,$.pending_out,U,Q.next_out),Q.next_out+=U,$.pending_out+=U,Q.total_out+=U,Q.avail_out-=U,$.pending-=U,$.pending===0)$.pending_out=0}function S0(Q,$){a0._tr_flush_block(Q,Q.block_start>=0?Q.block_start:-1,Q.strstart-Q.block_start,$),Q.block_start=Q.strstart,h2(Q.strm)}function F0(Q,$){Q.pending_buf[Q.pending++]=$}function Y6(Q,$){Q.pending_buf[Q.pending++]=$>>>8&255,Q.pending_buf[Q.pending++]=$&255}function eV(Q,$,U,X){var q=Q.avail_in;if(q>X)q=X;if(q===0)return 0;if(Q.avail_in-=q,_0.arraySet($,Q.input,Q.next_in,q,U),Q.state.wrap===1)Q.adler=b$(Q.adler,$,q,U);else if(Q.state.wrap===2)Q.adler=f2(Q.adler,$,q,U);return Q.next_in+=q,Q.total_in+=q,q}function u$(Q,$){var{max_chain_length:U,strstart:X}=Q,q,V,Y=Q.prev_length,K=Q.nice_match,G=Q.strstart>Q.w_size-$2?Q.strstart-(Q.w_size-$2):0,J=Q.window,B=Q.w_mask,Z=Q.prev,j=Q.strstart+b2,P=J[X+Y-1],g=J[X+Y];if(Q.prev_length>=Q.good_match)U>>=2;if(K>Q.lookahead)K=Q.lookahead;do{if(q=$,J[q+Y]!==g||J[q+Y-1]!==P||J[q]!==J[X]||J[++q]!==J[X+1])continue;X+=2,q++;do;while(J[++X]===J[++q]&&J[++X]===J[++q]&&J[++X]===J[++q]&&J[++X]===J[++q]&&J[++X]===J[++q]&&J[++X]===J[++q]&&J[++X]===J[++q]&&J[++X]===J[++q]&&X<j);if(V=b2-(j-X),X=j-b2,V>Y){if(Q.match_start=$,Y=V,V>=K)break;P=J[X+Y-1],g=J[X+Y]}}while(($=Z[$&B])>G&&--U!==0);if(Y<=Q.lookahead)return Y;return Q.lookahead}function q1(Q){var $=Q.w_size,U,X,q,V,Y;do{if(V=Q.window_size-Q.lookahead-Q.strstart,Q.strstart>=$+($-$2)){_0.arraySet(Q.window,Q.window,$,$,0),Q.match_start-=$,Q.strstart-=$,Q.block_start-=$,X=Q.hash_size,U=X;do q=Q.head[--U],Q.head[U]=q>=$?q-$:0;while(--X);X=$,U=X;do q=Q.prev[--U],Q.prev[U]=q>=$?q-$:0;while(--X);V+=$}if(Q.strm.avail_in===0)break;if(X=eV(Q.strm,Q.window,Q.strstart+Q.lookahead,V),Q.lookahead+=X,Q.lookahead+Q.insert>=P0){Y=Q.strstart-Q.insert,Q.ins_h=Q.window[Y],Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Y+1])&Q.hash_mask;while(Q.insert)if(Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Y+P0-1])&Q.hash_mask,Q.prev[Y&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Y,Y++,Q.insert--,Q.lookahead+Q.insert<P0)break}}while(Q.lookahead<$2&&Q.strm.avail_in!==0)}function QY(Q,$){var U=65535;if(U>Q.pending_buf_size-5)U=Q.pending_buf_size-5;for(;;){if(Q.lookahead<=1){if(q1(Q),Q.lookahead===0&&$===V1)return T0;if(Q.lookahead===0)break}Q.strstart+=Q.lookahead,Q.lookahead=0;var X=Q.block_start+U;if(Q.strstart===0||Q.strstart>=X){if(Q.lookahead=Q.strstart-X,Q.strstart=X,S0(Q,!1),Q.strm.avail_out===0)return T0}if(Q.strstart-Q.block_start>=Q.w_size-$2){if(S0(Q,!1),Q.strm.avail_out===0)return T0}}if(Q.insert=0,$===c2){if(S0(Q,!0),Q.strm.avail_out===0)return X1;return A1}if(Q.strstart>Q.block_start){if(S0(Q,!1),Q.strm.avail_out===0)return T0}return T0}function x5(Q,$){var U,X;for(;;){if(Q.lookahead<$2){if(q1(Q),Q.lookahead<$2&&$===V1)return T0;if(Q.lookahead===0)break}if(U=0,Q.lookahead>=P0)Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+P0-1])&Q.hash_mask,U=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart;if(U!==0&&Q.strstart-U<=Q.w_size-$2)Q.match_length=u$(Q,U);if(Q.match_length>=P0)if(X=a0._tr_tally(Q,Q.strstart-Q.match_start,Q.match_length-P0),Q.lookahead-=Q.match_length,Q.match_length<=Q.max_lazy_match&&Q.lookahead>=P0){Q.match_length--;do Q.strstart++,Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+P0-1])&Q.hash_mask,U=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=a0._tr_tally(Q,0,Q.window[Q.strstart]),Q.lookahead--,Q.strstart++;if(X){if(S0(Q,!1),Q.strm.avail_out===0)return T0}}if(Q.insert=Q.strstart<P0-1?Q.strstart:P0-1,$===c2){if(S0(Q,!0),Q.strm.avail_out===0)return X1;return A1}if(Q.last_lit){if(S0(Q,!1),Q.strm.avail_out===0)return T0}return J6}function N1(Q,$){var U,X,q;for(;;){if(Q.lookahead<$2){if(q1(Q),Q.lookahead<$2&&$===V1)return T0;if(Q.lookahead===0)break}if(U=0,Q.lookahead>=P0)Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+P0-1])&Q.hash_mask,U=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=P0-1,U!==0&&Q.prev_length<Q.max_lazy_match&&Q.strstart-U<=Q.w_size-$2){if(Q.match_length=u$(Q,U),Q.match_length<=5&&(Q.strategy===hV||Q.match_length===P0&&Q.strstart-Q.match_start>4096))Q.match_length=P0-1}if(Q.prev_length>=P0&&Q.match_length<=Q.prev_length){q=Q.strstart+Q.lookahead-P0,X=a0._tr_tally(Q,Q.strstart-1-Q.prev_match,Q.prev_length-P0),Q.lookahead-=Q.prev_length-1,Q.prev_length-=2;do if(++Q.strstart<=q)Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+P0-1])&Q.hash_mask,U=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=P0-1,Q.strstart++,X){if(S0(Q,!1),Q.strm.avail_out===0)return T0}}else if(Q.match_available){if(X=a0._tr_tally(Q,0,Q.window[Q.strstart-1]),X)S0(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=a0._tr_tally(Q,0,Q.window[Q.strstart-1]),Q.match_available=0;if(Q.insert=Q.strstart<P0-1?Q.strstart:P0-1,$===c2){if(S0(Q,!0),Q.strm.avail_out===0)return X1;return A1}if(Q.last_lit){if(S0(Q,!1),Q.strm.avail_out===0)return T0}return J6}function $Y(Q,$){var U,X,q,V,Y=Q.window;for(;;){if(Q.lookahead<=b2){if(q1(Q),Q.lookahead<=b2&&$===V1)return T0;if(Q.lookahead===0)break}if(Q.match_length=0,Q.lookahead>=P0&&Q.strstart>0){if(q=Q.strstart-1,X=Y[q],X===Y[++q]&&X===Y[++q]&&X===Y[++q]){V=Q.strstart+b2;do;while(X===Y[++q]&&X===Y[++q]&&X===Y[++q]&&X===Y[++q]&&X===Y[++q]&&X===Y[++q]&&X===Y[++q]&&X===Y[++q]&&q<V);if(Q.match_length=b2-(V-q),Q.match_length>Q.lookahead)Q.match_length=Q.lookahead}}if(Q.match_length>=P0)U=a0._tr_tally(Q,1,Q.match_length-P0),Q.lookahead-=Q.match_length,Q.strstart+=Q.match_length,Q.match_length=0;else U=a0._tr_tally(Q,0,Q.window[Q.strstart]),Q.lookahead--,Q.strstart++;if(U){if(S0(Q,!1),Q.strm.avail_out===0)return T0}}if(Q.insert=0,$===c2){if(S0(Q,!0),Q.strm.avail_out===0)return X1;return A1}if(Q.last_lit){if(S0(Q,!1),Q.strm.avail_out===0)return T0}return J6}function UY(Q,$){var U;for(;;){if(Q.lookahead===0){if(q1(Q),Q.lookahead===0){if($===V1)return T0;break}}if(Q.match_length=0,U=a0._tr_tally(Q,0,Q.window[Q.strstart]),Q.lookahead--,Q.strstart++,U){if(S0(Q,!1),Q.strm.avail_out===0)return T0}}if(Q.insert=0,$===c2){if(S0(Q,!0),Q.strm.avail_out===0)return X1;return A1}if(Q.last_lit){if(S0(Q,!1),Q.strm.avail_out===0)return T0}return J6}function W2(Q,$,U,X,q){this.good_length=Q,this.max_lazy=$,this.nice_length=U,this.max_chain=X,this.func=q}var D1;D1=[new W2(0,0,0,0,QY),new W2(4,4,8,4,x5),new W2(4,5,16,8,x5),new W2(4,6,32,32,x5),new W2(4,4,16,16,N1),new W2(8,16,32,32,N1),new W2(8,16,128,128,N1),new W2(8,32,128,256,N1),new W2(32,128,258,1024,N1),new W2(32,258,258,4096,N1)];function XY(Q){Q.window_size=2*Q.w_size,_2(Q.head),Q.max_lazy_match=D1[Q.level].max_lazy,Q.good_match=D1[Q.level].good_length,Q.nice_match=D1[Q.level].nice_length,Q.max_chain_length=D1[Q.level].max_chain,Q.strstart=0,Q.block_start=0,Q.lookahead=0,Q.insert=0,Q.match_length=Q.prev_length=P0-1,Q.match_available=0,Q.ins_h=0}function qY(){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=a6,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(rV*2),this.dyn_dtree=new _0.Buf16((2*nV+1)*2),this.bl_tree=new _0.Buf16((2*oV+1)*2),_2(this.dyn_ltree),_2(this.dyn_dtree),_2(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new _0.Buf16(aV+1),this.heap=new _0.Buf16(2*R5+1),_2(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new _0.Buf16(2*R5+1),_2(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 c$(Q){var $;if(!Q||!Q.state)return u2(Q,s0);if(Q.total_in=Q.total_out=0,Q.data_type=cV,$=Q.state,$.pending=0,$.pending_out=0,$.wrap<0)$.wrap=-$.wrap;return $.status=$.wrap?s6:U1,Q.adler=$.wrap===2?0:1,$.last_flush=V1,a0._tr_init($),z2}function p$(Q){var $=c$(Q);if($===z2)XY(Q.state);return $}function VY(Q,$){if(!Q||!Q.state)return s0;if(Q.state.wrap!==2)return s0;return Q.state.gzhead=$,z2}function m$(Q,$,U,X,q,V){if(!Q)return s0;var Y=1;if($===fV)$=6;if(X<0)Y=0,X=-X;else if(X>15)Y=2,X-=16;if(q<1||q>pV||U!==a6||X<8||X>15||$<0||$>9||V<0||V>bV)return u2(Q,s0);if(X===8)X=9;var K=new qY;return Q.state=K,K.strm=Q,K.wrap=Y,K.gzhead=null,K.w_bits=X,K.w_size=1<<K.w_bits,K.w_mask=K.w_size-1,K.hash_bits=q+7,K.hash_size=1<<K.hash_bits,K.hash_mask=K.hash_size-1,K.hash_shift=~~((K.hash_bits+P0-1)/P0),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<<q+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=$,K.strategy=V,K.method=U,p$(Q)}function YY(Q,$){return m$(Q,$,a6,mV,dV,uV)}function KY(Q,$){var U,X,q,V;if(!Q||!Q.state||$>f$||$<0)return Q?u2(Q,s0):s0;if(X=Q.state,!Q.output||!Q.input&&Q.avail_in!==0||X.status===K6&&$!==c2)return u2(Q,Q.avail_out===0?A5:s0);if(X.strm=Q,U=X.last_flush,X.last_flush=$,X.status===s6)if(X.wrap===2)if(Q.adler=0,F0(X,31),F0(X,139),F0(X,8),!X.gzhead)F0(X,0),F0(X,0),F0(X,0),F0(X,0),F0(X,0),F0(X,X.level===9?2:X.strategy>=i6||X.level<2?4:0),F0(X,tV),X.status=U1;else{if(F0(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)),F0(X,X.gzhead.time&255),F0(X,X.gzhead.time>>8&255),F0(X,X.gzhead.time>>16&255),F0(X,X.gzhead.time>>24&255),F0(X,X.level===9?2:X.strategy>=i6||X.level<2?4:0),F0(X,X.gzhead.os&255),X.gzhead.extra&&X.gzhead.extra.length)F0(X,X.gzhead.extra.length&255),F0(X,X.gzhead.extra.length>>8&255);if(X.gzhead.hcrc)Q.adler=f2(Q.adler,X.pending_buf,X.pending,0);X.gzindex=0,X.status=T5}else{var Y=a6+(X.w_bits-8<<4)<<8,K=-1;if(X.strategy>=i6||X.level<2)K=0;else if(X.level<6)K=1;else if(X.level===6)K=2;else K=3;if(Y|=K<<6,X.strstart!==0)Y|=sV;if(Y+=31-Y%31,X.status=U1,Y6(X,Y),X.strstart!==0)Y6(X,Q.adler>>>16),Y6(X,Q.adler&65535);Q.adler=1}if(X.status===T5)if(X.gzhead.extra){q=X.pending;while(X.gzindex<(X.gzhead.extra.length&65535)){if(X.pending===X.pending_buf_size){if(X.gzhead.hcrc&&X.pending>q)Q.adler=f2(Q.adler,X.pending_buf,X.pending-q,q);if(h2(Q),q=X.pending,X.pending===X.pending_buf_size)break}F0(X,X.gzhead.extra[X.gzindex]&255),X.gzindex++}if(X.gzhead.hcrc&&X.pending>q)Q.adler=f2(Q.adler,X.pending_buf,X.pending-q,q);if(X.gzindex===X.gzhead.extra.length)X.gzindex=0,X.status=n6}else X.status=n6;if(X.status===n6)if(X.gzhead.name){q=X.pending;do{if(X.pending===X.pending_buf_size){if(X.gzhead.hcrc&&X.pending>q)Q.adler=f2(Q.adler,X.pending_buf,X.pending-q,q);if(h2(Q),q=X.pending,X.pending===X.pending_buf_size){V=1;break}}if(X.gzindex<X.gzhead.name.length)V=X.gzhead.name.charCodeAt(X.gzindex++)&255;else V=0;F0(X,V)}while(V!==0);if(X.gzhead.hcrc&&X.pending>q)Q.adler=f2(Q.adler,X.pending_buf,X.pending-q,q);if(V===0)X.gzindex=0,X.status=o6}else X.status=o6;if(X.status===o6)if(X.gzhead.comment){q=X.pending;do{if(X.pending===X.pending_buf_size){if(X.gzhead.hcrc&&X.pending>q)Q.adler=f2(Q.adler,X.pending_buf,X.pending-q,q);if(h2(Q),q=X.pending,X.pending===X.pending_buf_size){V=1;break}}if(X.gzindex<X.gzhead.comment.length)V=X.gzhead.comment.charCodeAt(X.gzindex++)&255;else V=0;F0(X,V)}while(V!==0);if(X.gzhead.hcrc&&X.pending>q)Q.adler=f2(Q.adler,X.pending_buf,X.pending-q,q);if(V===0)X.status=r6}else X.status=r6;if(X.status===r6)if(X.gzhead.hcrc){if(X.pending+2>X.pending_buf_size)h2(Q);if(X.pending+2<=X.pending_buf_size)F0(X,Q.adler&255),F0(X,Q.adler>>8&255),Q.adler=0,X.status=U1}else X.status=U1;if(X.pending!==0){if(h2(Q),Q.avail_out===0)return X.last_flush=-1,z2}else if(Q.avail_in===0&&_$($)<=_$(U)&&$!==c2)return u2(Q,A5);if(X.status===K6&&Q.avail_in!==0)return u2(Q,A5);if(Q.avail_in!==0||X.lookahead!==0||$!==V1&&X.status!==K6){var G=X.strategy===i6?UY(X,$):X.strategy===_V?$Y(X,$):D1[X.level].func(X,$);if(G===X1||G===A1)X.status=K6;if(G===T0||G===X1){if(Q.avail_out===0)X.last_flush=-1;return z2}if(G===J6){if($===gV)a0._tr_align(X);else if($!==f$){if(a0._tr_stored_block(X,0,0,!1),$===vV){if(_2(X.head),X.lookahead===0)X.strstart=0,X.block_start=0,X.insert=0}}if(h2(Q),Q.avail_out===0)return X.last_flush=-1,z2}}if($!==c2)return z2;if(X.wrap<=0)return h$;if(X.wrap===2)F0(X,Q.adler&255),F0(X,Q.adler>>8&255),F0(X,Q.adler>>16&255),F0(X,Q.adler>>24&255),F0(X,Q.total_in&255),F0(X,Q.total_in>>8&255),F0(X,Q.total_in>>16&255),F0(X,Q.total_in>>24&255);else Y6(X,Q.adler>>>16),Y6(X,Q.adler&65535);if(h2(Q),X.wrap>0)X.wrap=-X.wrap;return X.pending!==0?z2:h$}function JY(Q){var $;if(!Q||!Q.state)return s0;if($=Q.state.status,$!==s6&&$!==T5&&$!==n6&&$!==o6&&$!==r6&&$!==U1&&$!==K6)return u2(Q,s0);return Q.state=null,$===U1?u2(Q,yV):z2}function BY(Q,$){var U=$.length,X,q,V,Y,K,G,J,B;if(!Q||!Q.state)return s0;if(X=Q.state,Y=X.wrap,Y===2||Y===1&&X.status!==s6||X.lookahead)return s0;if(Y===1)Q.adler=b$(Q.adler,$,U,0);if(X.wrap=0,U>=X.w_size){if(Y===0)_2(X.head),X.strstart=0,X.block_start=0,X.insert=0;B=new _0.Buf8(X.w_size),_0.arraySet(B,$,U-X.w_size,X.w_size,0),$=B,U=X.w_size}K=Q.avail_in,G=Q.next_in,J=Q.input,Q.avail_in=U,Q.next_in=0,Q.input=$,q1(X);while(X.lookahead>=P0){q=X.strstart,V=X.lookahead-(P0-1);do X.ins_h=(X.ins_h<<X.hash_shift^X.window[q+P0-1])&X.hash_mask,X.prev[q&X.w_mask]=X.head[X.ins_h],X.head[X.ins_h]=q,q++;while(--V);X.strstart=q,X.lookahead=P0-1,q1(X)}return X.strstart+=X.lookahead,X.block_start=X.strstart,X.insert=X.lookahead,X.lookahead=0,X.match_length=X.prev_length=P0-1,X.match_available=0,Q.next_in=G,Q.input=J,Q.avail_in=K,X.wrap=Y,z2}GY.deflateInit=YY;GY.deflateInit2=m$;GY.deflateReset=p$;GY.deflateResetKeep=c$;GY.deflateSetHeader=VY;GY.deflate=KY;GY.deflateEnd=JY;GY.deflateSetDictionary=BY;GY.deflateInfo="pako deflate (from Nodeca project)"});var E5=J0((HY)=>{var t6=A2(),l$=!0,i$=!0;try{String.fromCharCode.apply(null,[0])}catch(Q){l$=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(Q){i$=!1}var B6=new t6.Buf8(256);for(j2=0;j2<256;j2++)B6[j2]=j2>=252?6:j2>=248?5:j2>=240?4:j2>=224?3:j2>=192?2:1;var j2;B6[254]=B6[254]=1;HY.string2buf=function(Q){var $,U,X,q,V,Y=Q.length,K=0;for(q=0;q<Y;q++){if(U=Q.charCodeAt(q),(U&64512)===55296&&q+1<Y){if(X=Q.charCodeAt(q+1),(X&64512)===56320)U=65536+(U-55296<<10)+(X-56320),q++}K+=U<128?1:U<2048?2:U<65536?3:4}$=new t6.Buf8(K);for(V=0,q=0;V<K;q++){if(U=Q.charCodeAt(q),(U&64512)===55296&&q+1<Y){if(X=Q.charCodeAt(q+1),(X&64512)===56320)U=65536+(U-55296<<10)+(X-56320),q++}if(U<128)$[V++]=U;else if(U<2048)$[V++]=192|U>>>6,$[V++]=128|U&63;else if(U<65536)$[V++]=224|U>>>12,$[V++]=128|U>>>6&63,$[V++]=128|U&63;else $[V++]=240|U>>>18,$[V++]=128|U>>>12&63,$[V++]=128|U>>>6&63,$[V++]=128|U&63}return $};function n$(Q,$){if($<65534){if(Q.subarray&&i$||!Q.subarray&&l$)return String.fromCharCode.apply(null,t6.shrinkBuf(Q,$))}var U="";for(var X=0;X<$;X++)U+=String.fromCharCode(Q[X]);return U}HY.buf2binstring=function(Q){return n$(Q,Q.length)};HY.binstring2buf=function(Q){var $=new t6.Buf8(Q.length);for(var U=0,X=$.length;U<X;U++)$[U]=Q.charCodeAt(U);return $};HY.buf2string=function(Q,$){var U,X,q,V,Y=$||Q.length,K=new Array(Y*2);for(X=0,U=0;U<Y;){if(q=Q[U++],q<128){K[X++]=q;continue}if(V=B6[q],V>4){K[X++]=65533,U+=V-1;continue}q&=V===2?31:V===3?15:7;while(V>1&&U<Y)q=q<<6|Q[U++]&63,V--;if(V>1){K[X++]=65533;continue}if(q<65536)K[X++]=q;else q-=65536,K[X++]=55296|q>>10&1023,K[X++]=56320|q&1023}return n$(K,X)};HY.utf8border=function(Q,$){var U;if($=$||Q.length,$>Q.length)$=Q.length;U=$-1;while(U>=0&&(Q[U]&192)===128)U--;if(U<0)return $;if(U===0)return $;return U+B6[Q[U]]>$?U:$}});var S5=J0((mB,o$)=>{function AY(){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}o$.exports=AY});var t$=J0((vY)=>{var G6=d$(),w6=A2(),g5=E5(),v5=l6(),xY=S5(),s$=Object.prototype.toString,RY=0,k5=4,x1=0,r$=1,a$=2,TY=-1,EY=0,SY=8;function Y1(Q){if(!(this instanceof Y1))return new Y1(Q);this.options=w6.assign({level:TY,method:SY,chunkSize:16384,windowBits:15,memLevel:8,strategy:EY,to:""},Q||{});var $=this.options;if($.raw&&$.windowBits>0)$.windowBits=-$.windowBits;else if($.gzip&&$.windowBits>0&&$.windowBits<16)$.windowBits+=16;this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new xY,this.strm.avail_out=0;var U=G6.deflateInit2(this.strm,$.level,$.method,$.windowBits,$.memLevel,$.strategy);if(U!==x1)throw new Error(v5[U]);if($.header)G6.deflateSetHeader(this.strm,$.header);if($.dictionary){var X;if(typeof $.dictionary==="string")X=g5.string2buf($.dictionary);else if(s$.call($.dictionary)==="[object ArrayBuffer]")X=new Uint8Array($.dictionary);else X=$.dictionary;if(U=G6.deflateSetDictionary(this.strm,X),U!==x1)throw new Error(v5[U]);this._dict_set=!0}}Y1.prototype.push=function(Q,$){var U=this.strm,X=this.options.chunkSize,q,V;if(this.ended)return!1;if(V=$===~~$?$:$===!0?k5:RY,typeof Q==="string")U.input=g5.string2buf(Q);else if(s$.call(Q)==="[object ArrayBuffer]")U.input=new Uint8Array(Q);else U.input=Q;U.next_in=0,U.avail_in=U.input.length;do{if(U.avail_out===0)U.output=new w6.Buf8(X),U.next_out=0,U.avail_out=X;if(q=G6.deflate(U,V),q!==r$&&q!==x1)return this.onEnd(q),this.ended=!0,!1;if(U.avail_out===0||U.avail_in===0&&(V===k5||V===a$))if(this.options.to==="string")this.onData(g5.buf2binstring(w6.shrinkBuf(U.output,U.next_out)));else this.onData(w6.shrinkBuf(U.output,U.next_out))}while((U.avail_in>0||U.avail_out===0)&&q!==r$);if(V===k5)return q=G6.deflateEnd(this.strm),this.onEnd(q),this.ended=!0,q===x1;if(V===a$)return this.onEnd(x1),U.avail_out=0,!0;return!0};Y1.prototype.onData=function(Q){this.chunks.push(Q)};Y1.prototype.onEnd=function(Q){if(Q===x1)if(this.options.to==="string")this.result=this.chunks.join("");else this.result=w6.flattenChunks(this.chunks);this.chunks=[],this.err=Q,this.msg=this.strm.msg};function y5(Q,$){var U=new Y1($);if(U.push(Q,!0),U.err)throw U.msg||v5[U.err];return U.result}function kY(Q,$){return $=$||{},$.raw=!0,y5(Q,$)}function gY(Q,$){return $=$||{},$.gzip=!0,y5(Q,$)}vY.Deflate=Y1;vY.deflate=y5;vY.deflateRaw=kY;vY.gzip=gY});var Q7=J0((lB,e$)=>{var e6=30,bY=12;e$.exports=function Q($,U){var X,q,V,Y,K,G,J,B,Z,j,P,g,y,k,M,w,I,F,L,_,A,i,E,O,C;X=$.state,q=$.next_in,O=$.input,V=q+($.avail_in-5),Y=$.next_out,C=$.output,K=Y-(U-$.avail_out),G=Y+($.avail_out-257),J=X.dmax,B=X.wsize,Z=X.whave,j=X.wnext,P=X.window,g=X.hold,y=X.bits,k=X.lencode,M=X.distcode,w=(1<<X.lenbits)-1,I=(1<<X.distbits)-1;Q:do{if(y<15)g+=O[q++]<<y,y+=8,g+=O[q++]<<y,y+=8;F=k[g&w];$:for(;;){if(L=F>>>24,g>>>=L,y-=L,L=F>>>16&255,L===0)C[Y++]=F&65535;else if(L&16){if(_=F&65535,L&=15,L){if(y<L)g+=O[q++]<<y,y+=8;_+=g&(1<<L)-1,g>>>=L,y-=L}if(y<15)g+=O[q++]<<y,y+=8,g+=O[q++]<<y,y+=8;F=M[g&I];U:for(;;){if(L=F>>>24,g>>>=L,y-=L,L=F>>>16&255,L&16){if(A=F&65535,L&=15,y<L){if(g+=O[q++]<<y,y+=8,y<L)g+=O[q++]<<y,y+=8}if(A+=g&(1<<L)-1,A>J){$.msg="invalid distance too far back",X.mode=e6;break Q}if(g>>>=L,y-=L,L=Y-K,A>L){if(L=A-L,L>Z){if(X.sane){$.msg="invalid distance too far back",X.mode=e6;break Q}}if(i=0,E=P,j===0){if(i+=B-L,L<_){_-=L;do C[Y++]=P[i++];while(--L);i=Y-A,E=C}}else if(j<L){if(i+=B+j-L,L-=j,L<_){_-=L;do C[Y++]=P[i++];while(--L);if(i=0,j<_){L=j,_-=L;do C[Y++]=P[i++];while(--L);i=Y-A,E=C}}}else if(i+=j-L,L<_){_-=L;do C[Y++]=P[i++];while(--L);i=Y-A,E=C}while(_>2)C[Y++]=E[i++],C[Y++]=E[i++],C[Y++]=E[i++],_-=3;if(_){if(C[Y++]=E[i++],_>1)C[Y++]=E[i++]}}else{i=Y-A;do C[Y++]=C[i++],C[Y++]=C[i++],C[Y++]=C[i++],_-=3;while(_>2);if(_){if(C[Y++]=C[i++],_>1)C[Y++]=C[i++]}}}else if((L&64)===0){F=M[(F&65535)+(g&(1<<L)-1)];continue U}else{$.msg="invalid distance code",X.mode=e6;break Q}break}}else if((L&64)===0){F=k[(F&65535)+(g&(1<<L)-1)];continue $}else if(L&32){X.mode=bY;break Q}else{$.msg="invalid literal/length code",X.mode=e6;break Q}break}}while(q<V&&Y<G);_=y>>3,q-=_,y-=_<<3,g&=(1<<y)-1,$.next_in=q,$.next_out=Y,$.avail_in=q<V?5+(V-q):5-(q-V),$.avail_out=Y<G?257+(G-Y):257-(Y-G),X.hold=g,X.bits=y;return}});var K7=J0((iB,Y7)=>{var $7=A2(),R1=15,U7=852,X7=592,q7=0,f5=1,V7=2,uY=[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],cY=[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],pY=[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],mY=[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];Y7.exports=function Q($,U,X,q,V,Y,K,G){var J=G.bits,B=0,Z=0,j=0,P=0,g=0,y=0,k=0,M=0,w=0,I=0,F,L,_,A,i,E=null,O=0,C,x=new $7.Buf16(R1+1),R=new $7.Buf16(R1+1),v=null,T=0,n,e,X0;for(B=0;B<=R1;B++)x[B]=0;for(Z=0;Z<q;Z++)x[U[X+Z]]++;g=J;for(P=R1;P>=1;P--)if(x[P]!==0)break;if(g>P)g=P;if(P===0)return V[Y++]=20971520,V[Y++]=20971520,G.bits=1,0;for(j=1;j<P;j++)if(x[j]!==0)break;if(g<j)g=j;M=1;for(B=1;B<=R1;B++)if(M<<=1,M-=x[B],M<0)return-1;if(M>0&&($===q7||P!==1))return-1;R[1]=0;for(B=1;B<R1;B++)R[B+1]=R[B]+x[B];for(Z=0;Z<q;Z++)if(U[X+Z]!==0)K[R[U[X+Z]]++]=Z;if($===q7)E=v=K,C=19;else if($===f5)E=uY,O-=257,v=cY,T-=257,C=256;else E=pY,v=mY,C=-1;if(I=0,Z=0,B=j,i=Y,y=g,k=0,_=-1,w=1<<g,A=w-1,$===f5&&w>U7||$===V7&&w>X7)return 1;for(;;){if(n=B-k,K[Z]<C)e=0,X0=K[Z];else if(K[Z]>C)e=v[T+K[Z]],X0=E[O+K[Z]];else e=96,X0=0;F=1<<B-k,L=1<<y,j=L;do L-=F,V[i+(I>>k)+L]=n<<24|e<<16|X0|0;while(L!==0);F=1<<B-1;while(I&F)F>>=1;if(F!==0)I&=F-1,I+=F;else I=0;if(Z++,--x[B]===0){if(B===P)break;B=U[X+K[Z]]}if(B>g&&(I&A)!==_){if(k===0)k=g;i+=j,y=B-k,M=1<<y;while(y+k<P){if(M-=x[y+k],M<=0)break;y++,M<<=1}if(w+=1<<y,$===f5&&w>U7||$===V7&&w>X7)return 1;_=I&A,V[_]=g<<24|y<<16|i-Y|0}}if(I!==0)V[i+I]=B-k<<24|4194304|0;return G.bits=g,0}});var p7=J0((JK)=>{var i0=A2(),p5=N5(),Z2=D5(),dY=Q7(),W6=K7(),lY=0,g7=1,v7=2,J7=4,iY=5,Q8=6,K1=0,nY=1,oY=2,t0=-2,y7=-3,m5=-4,rY=-5,B7=8,f7=1,G7=2,w7=3,W7=4,z7=5,j7=6,Z7=7,P7=8,F7=9,I7=10,X8=11,R2=12,h5=13,M7=14,_5=15,H7=16,L7=17,C7=18,O7=19,$8=20,U8=21,N7=22,D7=23,A7=24,x7=25,R7=26,b5=27,T7=28,E7=29,L0=30,d5=31,aY=32,sY=852,tY=592,eY=15,QK=eY;function S7(Q){return(Q>>>24&255)+(Q>>>8&65280)+((Q&65280)<<8)+((Q&255)<<24)}function $K(){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 h7(Q){var $;if(!Q||!Q.state)return t0;if($=Q.state,Q.total_in=Q.total_out=$.total=0,Q.msg="",$.wrap)Q.adler=$.wrap&1;return $.mode=f7,$.last=0,$.havedict=0,$.dmax=32768,$.head=null,$.hold=0,$.bits=0,$.lencode=$.lendyn=new i0.Buf32(sY),$.distcode=$.distdyn=new i0.Buf32(tY),$.sane=1,$.back=-1,K1}function _7(Q){var $;if(!Q||!Q.state)return t0;return $=Q.state,$.wsize=0,$.whave=0,$.wnext=0,h7(Q)}function b7(Q,$){var U,X;if(!Q||!Q.state)return t0;if(X=Q.state,$<0)U=0,$=-$;else if(U=($>>4)+1,$<48)$&=15;if($&&($<8||$>15))return t0;if(X.window!==null&&X.wbits!==$)X.window=null;return X.wrap=U,X.wbits=$,_7(Q)}function u7(Q,$){var U,X;if(!Q)return t0;if(X=new $K,Q.state=X,X.window=null,U=b7(Q,$),U!==K1)Q.state=null;return U}function UK(Q){return u7(Q,QK)}var k7=!0,u5,c5;function XK(Q){if(k7){var $;u5=new i0.Buf32(512),c5=new i0.Buf32(32),$=0;while($<144)Q.lens[$++]=8;while($<256)Q.lens[$++]=9;while($<280)Q.lens[$++]=7;while($<288)Q.lens[$++]=8;W6(g7,Q.lens,0,288,u5,0,Q.work,{bits:9}),$=0;while($<32)Q.lens[$++]=5;W6(v7,Q.lens,0,32,c5,0,Q.work,{bits:5}),k7=!1}Q.lencode=u5,Q.lenbits=9,Q.distcode=c5,Q.distbits=5}function c7(Q,$,U,X){var q,V=Q.state;if(V.window===null)V.wsize=1<<V.wbits,V.wnext=0,V.whave=0,V.window=new i0.Buf8(V.wsize);if(X>=V.wsize)i0.arraySet(V.window,$,U-V.wsize,V.wsize,0),V.wnext=0,V.whave=V.wsize;else{if(q=V.wsize-V.wnext,q>X)q=X;if(i0.arraySet(V.window,$,U-X,q,V.wnext),X-=q,X)i0.arraySet(V.window,$,U-X,X,0),V.wnext=X,V.whave=V.wsize;else{if(V.wnext+=q,V.wnext===V.wsize)V.wnext=0;if(V.whave<V.wsize)V.whave+=q}}return 0}function qK(Q,$){var U,X,q,V,Y,K,G,J,B,Z,j,P,g,y,k=0,M,w,I,F,L,_,A,i,E=new i0.Buf8(4),O,C,x=[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 t0;if(U=Q.state,U.mode===R2)U.mode=h5;Y=Q.next_out,q=Q.output,G=Q.avail_out,V=Q.next_in,X=Q.input,K=Q.avail_in,J=U.hold,B=U.bits,Z=K,j=G,i=K1;Q:for(;;)switch(U.mode){case f7:if(U.wrap===0){U.mode=h5;break}while(B<16){if(K===0)break Q;K--,J+=X[V++]<<B,B+=8}if(U.wrap&2&&J===35615){U.check=0,E[0]=J&255,E[1]=J>>>8&255,U.check=Z2(U.check,E,2,0),J=0,B=0,U.mode=G7;break}if(U.flags=0,U.head)U.head.done=!1;if(!(U.wrap&1)||(((J&255)<<8)+(J>>8))%31){Q.msg="incorrect header check",U.mode=L0;break}if((J&15)!==B7){Q.msg="unknown compression method",U.mode=L0;break}if(J>>>=4,B-=4,A=(J&15)+8,U.wbits===0)U.wbits=A;else if(A>U.wbits){Q.msg="invalid window size",U.mode=L0;break}U.dmax=1<<A,Q.adler=U.check=1,U.mode=J&512?I7:R2,J=0,B=0;break;case G7:while(B<16){if(K===0)break Q;K--,J+=X[V++]<<B,B+=8}if(U.flags=J,(U.flags&255)!==B7){Q.msg="unknown compression method",U.mode=L0;break}if(U.flags&57344){Q.msg="unknown header flags set",U.mode=L0;break}if(U.head)U.head.text=J>>8&1;if(U.flags&512)E[0]=J&255,E[1]=J>>>8&255,U.check=Z2(U.check,E,2,0);J=0,B=0,U.mode=w7;case w7:while(B<32){if(K===0)break Q;K--,J+=X[V++]<<B,B+=8}if(U.head)U.head.time=J;if(U.flags&512)E[0]=J&255,E[1]=J>>>8&255,E[2]=J>>>16&255,E[3]=J>>>24&255,U.check=Z2(U.check,E,4,0);J=0,B=0,U.mode=W7;case W7:while(B<16){if(K===0)break Q;K--,J+=X[V++]<<B,B+=8}if(U.head)U.head.xflags=J&255,U.head.os=J>>8;if(U.flags&512)E[0]=J&255,E[1]=J>>>8&255,U.check=Z2(U.check,E,2,0);J=0,B=0,U.mode=z7;case z7:if(U.flags&1024){while(B<16){if(K===0)break Q;K--,J+=X[V++]<<B,B+=8}if(U.length=J,U.head)U.head.extra_len=J;if(U.flags&512)E[0]=J&255,E[1]=J>>>8&255,U.check=Z2(U.check,E,2,0);J=0,B=0}else if(U.head)U.head.extra=null;U.mode=j7;case j7:if(U.flags&1024){if(P=U.length,P>K)P=K;if(P){if(U.head){if(A=U.head.extra_len-U.length,!U.head.extra)U.head.extra=new Array(U.head.extra_len);i0.arraySet(U.head.extra,X,V,P,A)}if(U.flags&512)U.check=Z2(U.check,X,P,V);K-=P,V+=P,U.length-=P}if(U.length)break Q}U.length=0,U.mode=Z7;case Z7:if(U.flags&2048){if(K===0)break Q;P=0;do if(A=X[V+P++],U.head&&A&&U.length<65536)U.head.name+=String.fromCharCode(A);while(A&&P<K);if(U.flags&512)U.check=Z2(U.check,X,P,V);if(K-=P,V+=P,A)break Q}else if(U.head)U.head.name=null;U.length=0,U.mode=P7;case P7:if(U.flags&4096){if(K===0)break Q;P=0;do if(A=X[V+P++],U.head&&A&&U.length<65536)U.head.comment+=String.fromCharCode(A);while(A&&P<K);if(U.flags&512)U.check=Z2(U.check,X,P,V);if(K-=P,V+=P,A)break Q}else if(U.head)U.head.comment=null;U.mode=F7;case F7:if(U.flags&512){while(B<16){if(K===0)break Q;K--,J+=X[V++]<<B,B+=8}if(J!==(U.check&65535)){Q.msg="header crc mismatch",U.mode=L0;break}J=0,B=0}if(U.head)U.head.hcrc=U.flags>>9&1,U.head.done=!0;Q.adler=U.check=0,U.mode=R2;break;case I7:while(B<32){if(K===0)break Q;K--,J+=X[V++]<<B,B+=8}Q.adler=U.check=S7(J),J=0,B=0,U.mode=X8;case X8:if(U.havedict===0)return Q.next_out=Y,Q.avail_out=G,Q.next_in=V,Q.avail_in=K,U.hold=J,U.bits=B,oY;Q.adler=U.check=1,U.mode=R2;case R2:if($===iY||$===Q8)break Q;case h5:if(U.last){J>>>=B&7,B-=B&7,U.mode=b5;break}while(B<3){if(K===0)break Q;K--,J+=X[V++]<<B,B+=8}switch(U.last=J&1,J>>>=1,B-=1,J&3){case 0:U.mode=M7;break;case 1:if(XK(U),U.mode=$8,$===Q8){J>>>=2,B-=2;break Q}break;case 2:U.mode=L7;break;case 3:Q.msg="invalid block type",U.mode=L0}J>>>=2,B-=2;break;case M7:J>>>=B&7,B-=B&7;while(B<32){if(K===0)break Q;K--,J+=X[V++]<<B,B+=8}if((J&65535)!==(J>>>16^65535)){Q.msg="invalid stored block lengths",U.mode=L0;break}if(U.length=J&65535,J=0,B=0,U.mode=_5,$===Q8)break Q;case _5:U.mode=H7;case H7:if(P=U.length,P){if(P>K)P=K;if(P>G)P=G;if(P===0)break Q;i0.arraySet(q,X,V,P,Y),K-=P,V+=P,G-=P,Y+=P,U.length-=P;break}U.mode=R2;break;case L7:while(B<14){if(K===0)break Q;K--,J+=X[V++]<<B,B+=8}if(U.nlen=(J&31)+257,J>>>=5,B-=5,U.ndist=(J&31)+1,J>>>=5,B-=5,U.ncode=(J&15)+4,J>>>=4,B-=4,U.nlen>286||U.ndist>30){Q.msg="too many length or distance symbols",U.mode=L0;break}U.have=0,U.mode=C7;case C7:while(U.have<U.ncode){while(B<3){if(K===0)break Q;K--,J+=X[V++]<<B,B+=8}U.lens[x[U.have++]]=J&7,J>>>=3,B-=3}while(U.have<19)U.lens[x[U.have++]]=0;if(U.lencode=U.lendyn,U.lenbits=7,O={bits:U.lenbits},i=W6(lY,U.lens,0,19,U.lencode,0,U.work,O),U.lenbits=O.bits,i){Q.msg="invalid code lengths set",U.mode=L0;break}U.have=0,U.mode=O7;case O7:while(U.have<U.nlen+U.ndist){for(;;){if(k=U.lencode[J&(1<<U.lenbits)-1],M=k>>>24,w=k>>>16&255,I=k&65535,M<=B)break;if(K===0)break Q;K--,J+=X[V++]<<B,B+=8}if(I<16)J>>>=M,B-=M,U.lens[U.have++]=I;else{if(I===16){C=M+2;while(B<C){if(K===0)break Q;K--,J+=X[V++]<<B,B+=8}if(J>>>=M,B-=M,U.have===0){Q.msg="invalid bit length repeat",U.mode=L0;break}A=U.lens[U.have-1],P=3+(J&3),J>>>=2,B-=2}else if(I===17){C=M+3;while(B<C){if(K===0)break Q;K--,J+=X[V++]<<B,B+=8}J>>>=M,B-=M,A=0,P=3+(J&7),J>>>=3,B-=3}else{C=M+7;while(B<C){if(K===0)break Q;K--,J+=X[V++]<<B,B+=8}J>>>=M,B-=M,A=0,P=11+(J&127),J>>>=7,B-=7}if(U.have+P>U.nlen+U.ndist){Q.msg="invalid bit length repeat",U.mode=L0;break}while(P--)U.lens[U.have++]=A}}if(U.mode===L0)break;if(U.lens[256]===0){Q.msg="invalid code -- missing end-of-block",U.mode=L0;break}if(U.lenbits=9,O={bits:U.lenbits},i=W6(g7,U.lens,0,U.nlen,U.lencode,0,U.work,O),U.lenbits=O.bits,i){Q.msg="invalid literal/lengths set",U.mode=L0;break}if(U.distbits=6,U.distcode=U.distdyn,O={bits:U.distbits},i=W6(v7,U.lens,U.nlen,U.ndist,U.distcode,0,U.work,O),U.distbits=O.bits,i){Q.msg="invalid distances set",U.mode=L0;break}if(U.mode=$8,$===Q8)break Q;case $8:U.mode=U8;case U8:if(K>=6&&G>=258){if(Q.next_out=Y,Q.avail_out=G,Q.next_in=V,Q.avail_in=K,U.hold=J,U.bits=B,dY(Q,j),Y=Q.next_out,q=Q.output,G=Q.avail_out,V=Q.next_in,X=Q.input,K=Q.avail_in,J=U.hold,B=U.bits,U.mode===R2)U.back=-1;break}U.back=0;for(;;){if(k=U.lencode[J&(1<<U.lenbits)-1],M=k>>>24,w=k>>>16&255,I=k&65535,M<=B)break;if(K===0)break Q;K--,J+=X[V++]<<B,B+=8}if(w&&(w&240)===0){F=M,L=w,_=I;for(;;){if(k=U.lencode[_+((J&(1<<F+L)-1)>>F)],M=k>>>24,w=k>>>16&255,I=k&65535,F+M<=B)break;if(K===0)break Q;K--,J+=X[V++]<<B,B+=8}J>>>=F,B-=F,U.back+=F}if(J>>>=M,B-=M,U.back+=M,U.length=I,w===0){U.mode=R7;break}if(w&32){U.back=-1,U.mode=R2;break}if(w&64){Q.msg="invalid literal/length code",U.mode=L0;break}U.extra=w&15,U.mode=N7;case N7:if(U.extra){C=U.extra;while(B<C){if(K===0)break Q;K--,J+=X[V++]<<B,B+=8}U.length+=J&(1<<U.extra)-1,J>>>=U.extra,B-=U.extra,U.back+=U.extra}U.was=U.length,U.mode=D7;case D7:for(;;){if(k=U.distcode[J&(1<<U.distbits)-1],M=k>>>24,w=k>>>16&255,I=k&65535,M<=B)break;if(K===0)break Q;K--,J+=X[V++]<<B,B+=8}if((w&240)===0){F=M,L=w,_=I;for(;;){if(k=U.distcode[_+((J&(1<<F+L)-1)>>F)],M=k>>>24,w=k>>>16&255,I=k&65535,F+M<=B)break;if(K===0)break Q;K--,J+=X[V++]<<B,B+=8}J>>>=F,B-=F,U.back+=F}if(J>>>=M,B-=M,U.back+=M,w&64){Q.msg="invalid distance code",U.mode=L0;break}U.offset=I,U.extra=w&15,U.mode=A7;case A7:if(U.extra){C=U.extra;while(B<C){if(K===0)break Q;K--,J+=X[V++]<<B,B+=8}U.offset+=J&(1<<U.extra)-1,J>>>=U.extra,B-=U.extra,U.back+=U.extra}if(U.offset>U.dmax){Q.msg="invalid distance too far back",U.mode=L0;break}U.mode=x7;case x7:if(G===0)break Q;if(P=j-G,U.offset>P){if(P=U.offset-P,P>U.whave){if(U.sane){Q.msg="invalid distance too far back",U.mode=L0;break}}if(P>U.wnext)P-=U.wnext,g=U.wsize-P;else g=U.wnext-P;if(P>U.length)P=U.length;y=U.window}else y=q,g=Y-U.offset,P=U.length;if(P>G)P=G;G-=P,U.length-=P;do q[Y++]=y[g++];while(--P);if(U.length===0)U.mode=U8;break;case R7:if(G===0)break Q;q[Y++]=U.length,G--,U.mode=U8;break;case b5:if(U.wrap){while(B<32){if(K===0)break Q;K--,J|=X[V++]<<B,B+=8}if(j-=G,Q.total_out+=j,U.total+=j,j)Q.adler=U.check=U.flags?Z2(U.check,q,j,Y-j):p5(U.check,q,j,Y-j);if(j=G,(U.flags?J:S7(J))!==U.check){Q.msg="incorrect data check",U.mode=L0;break}J=0,B=0}U.mode=T7;case T7:if(U.wrap&&U.flags){while(B<32){if(K===0)break Q;K--,J+=X[V++]<<B,B+=8}if(J!==(U.total&4294967295)){Q.msg="incorrect length check",U.mode=L0;break}J=0,B=0}U.mode=E7;case E7:i=nY;break Q;case L0:i=y7;break Q;case d5:return m5;case aY:default:return t0}if(Q.next_out=Y,Q.avail_out=G,Q.next_in=V,Q.avail_in=K,U.hold=J,U.bits=B,U.wsize||j!==Q.avail_out&&U.mode<L0&&(U.mode<b5||$!==J7)){if(c7(Q,Q.output,Q.next_out,j-Q.avail_out))return U.mode=d5,m5}if(Z-=Q.avail_in,j-=Q.avail_out,Q.total_in+=Z,Q.total_out+=j,U.total+=j,U.wrap&&j)Q.adler=U.check=U.flags?Z2(U.check,q,j,Q.next_out-j):p5(U.check,q,j,Q.next_out-j);if(Q.data_type=U.bits+(U.last?64:0)+(U.mode===R2?128:0)+(U.mode===$8||U.mode===_5?256:0),(Z===0&&j===0||$===J7)&&i===K1)i=rY;return i}function VK(Q){if(!Q||!Q.state)return t0;var $=Q.state;if($.window)$.window=null;return Q.state=null,K1}function YK(Q,$){var U;if(!Q||!Q.state)return t0;if(U=Q.state,(U.wrap&2)===0)return t0;return U.head=$,$.done=!1,K1}function KK(Q,$){var U=$.length,X,q,V;if(!Q||!Q.state)return t0;if(X=Q.state,X.wrap!==0&&X.mode!==X8)return t0;if(X.mode===X8){if(q=1,q=p5(q,$,U,0),q!==X.check)return y7}if(V=c7(Q,$,U,U),V)return X.mode=d5,m5;return X.havedict=1,K1}JK.inflateReset=_7;JK.inflateReset2=b7;JK.inflateResetKeep=h7;JK.inflateInit=UK;JK.inflateInit2=u7;JK.inflate=qK;JK.inflateEnd=VK;JK.inflateGetHeader=YK;JK.inflateSetDictionary=KK;JK.inflateInfo="pako inflate (from Nodeca project)"});var l5=J0((oB,m7)=>{m7.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 l7=J0((rB,d7)=>{function MK(){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}d7.exports=MK});var n7=J0((OK)=>{var T1=p7(),z6=A2(),q8=E5(),x0=l5(),i5=l6(),HK=S5(),LK=l7(),i7=Object.prototype.toString;function J1(Q){if(!(this instanceof J1))return new J1(Q);this.options=z6.assign({chunkSize:16384,windowBits:0,to:""},Q||{});var $=this.options;if($.raw&&$.windowBits>=0&&$.windowBits<16){if($.windowBits=-$.windowBits,$.windowBits===0)$.windowBits=-15}if($.windowBits>=0&&$.windowBits<16&&!(Q&&Q.windowBits))$.windowBits+=32;if($.windowBits>15&&$.windowBits<48){if(($.windowBits&15)===0)$.windowBits|=15}this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new HK,this.strm.avail_out=0;var U=T1.inflateInit2(this.strm,$.windowBits);if(U!==x0.Z_OK)throw new Error(i5[U]);if(this.header=new LK,T1.inflateGetHeader(this.strm,this.header),$.dictionary){if(typeof $.dictionary==="string")$.dictionary=q8.string2buf($.dictionary);else if(i7.call($.dictionary)==="[object ArrayBuffer]")$.dictionary=new Uint8Array($.dictionary);if($.raw){if(U=T1.inflateSetDictionary(this.strm,$.dictionary),U!==x0.Z_OK)throw new Error(i5[U])}}}J1.prototype.push=function(Q,$){var U=this.strm,X=this.options.chunkSize,q=this.options.dictionary,V,Y,K,G,J,B=!1;if(this.ended)return!1;if(Y=$===~~$?$:$===!0?x0.Z_FINISH:x0.Z_NO_FLUSH,typeof Q==="string")U.input=q8.binstring2buf(Q);else if(i7.call(Q)==="[object ArrayBuffer]")U.input=new Uint8Array(Q);else U.input=Q;U.next_in=0,U.avail_in=U.input.length;do{if(U.avail_out===0)U.output=new z6.Buf8(X),U.next_out=0,U.avail_out=X;if(V=T1.inflate(U,x0.Z_NO_FLUSH),V===x0.Z_NEED_DICT&&q)V=T1.inflateSetDictionary(this.strm,q);if(V===x0.Z_BUF_ERROR&&B===!0)V=x0.Z_OK,B=!1;if(V!==x0.Z_STREAM_END&&V!==x0.Z_OK)return this.onEnd(V),this.ended=!0,!1;if(U.next_out){if(U.avail_out===0||V===x0.Z_STREAM_END||U.avail_in===0&&(Y===x0.Z_FINISH||Y===x0.Z_SYNC_FLUSH))if(this.options.to==="string"){if(K=q8.utf8border(U.output,U.next_out),G=U.next_out-K,J=q8.buf2string(U.output,K),U.next_out=G,U.avail_out=X-G,G)z6.arraySet(U.output,U.output,K,G,0);this.onData(J)}else this.onData(z6.shrinkBuf(U.output,U.next_out))}if(U.avail_in===0&&U.avail_out===0)B=!0}while((U.avail_in>0||U.avail_out===0)&&V!==x0.Z_STREAM_END);if(V===x0.Z_STREAM_END)Y=x0.Z_FINISH;if(Y===x0.Z_FINISH)return V=T1.inflateEnd(this.strm),this.onEnd(V),this.ended=!0,V===x0.Z_OK;if(Y===x0.Z_SYNC_FLUSH)return this.onEnd(x0.Z_OK),U.avail_out=0,!0;return!0};J1.prototype.onData=function(Q){this.chunks.push(Q)};J1.prototype.onEnd=function(Q){if(Q===x0.Z_OK)if(this.options.to==="string")this.result=this.chunks.join("");else this.result=z6.flattenChunks(this.chunks);this.chunks=[],this.err=Q,this.msg=this.strm.msg};function n5(Q,$){var U=new J1($);if(U.push(Q,!0),U.err)throw U.msg||i5[U.err];return U.result}function CK(Q,$){return $=$||{},$.raw=!0,n5(Q,$)}OK.Inflate=J1;OK.inflate=n5;OK.inflateRaw=CK;OK.ungzip=n5});var a7=J0((sB,r7)=>{var RK=A2().assign,TK=t$(),EK=n7(),SK=l5(),o7={};RK(o7,TK,EK,SK);r7.exports=o7});var t7=J0((yK)=>{var kK=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Uint32Array!=="undefined",gK=a7(),s7=N0(),V8=l0(),vK=kK?"uint8array":"array";yK.magic="\b\x00";function B1(Q,$){V8.call(this,"FlateWorker/"+Q),this._pako=null,this._pakoAction=Q,this._pakoOptions=$,this.meta={}}s7.inherits(B1,V8);B1.prototype.processChunk=function(Q){if(this.meta=Q.meta,this._pako===null)this._createPako();this._pako.push(s7.transformTo(vK,Q.data),!1)};B1.prototype.flush=function(){if(V8.prototype.flush.call(this),this._pako===null)this._createPako();this._pako.push([],!0)};B1.prototype.cleanUp=function(){V8.prototype.cleanUp.call(this),this._pako=null};B1.prototype._createPako=function(){this._pako=new gK[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var Q=this;this._pako.onData=function($){Q.push({data:$,meta:Q.meta})}};yK.compressWorker=function(Q){return new B1("Deflate",Q)};yK.uncompressWorker=function(){return new B1("Inflate",{})}});var o5=J0((bK)=>{var e7=l0();bK.STORE={magic:"\x00\x00",compressWorker:function(){return new e7("STORE compression")},uncompressWorker:function(){return new e7("STORE decompression")}};bK.DEFLATE=t7()});var r5=J0((pK)=>{pK.LOCAL_FILE_HEADER="PK\x03\x04";pK.CENTRAL_FILE_HEADER="PK\x01\x02";pK.CENTRAL_DIRECTORY_END="PK\x05\x06";pK.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07";pK.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06";pK.DATA_DESCRIPTOR="PK\x07\b"});var X9=J0(($G,U9)=>{var E1=N0(),S1=l0(),a5=H1(),Q9=c6(),Y8=r5(),M0=function(Q,$){var U="",X;for(X=0;X<$;X++)U+=String.fromCharCode(Q&255),Q=Q>>>8;return U},rK=function(Q,$){var U=Q;if(!Q)U=$?16893:33204;return(U&65535)<<16},aK=function(Q){return(Q||0)&63},$9=function(Q,$,U,X,q,V){var{file:Y,compression:K}=Q,G=V!==a5.utf8encode,J=E1.transformTo("string",V(Y.name)),B=E1.transformTo("string",a5.utf8encode(Y.name)),Z=Y.comment,j=E1.transformTo("string",V(Z)),P=E1.transformTo("string",a5.utf8encode(Z)),g=B.length!==Y.name.length,y=P.length!==Z.length,k,M,w="",I="",F="",L=Y.dir,_=Y.date,A={crc32:0,compressedSize:0,uncompressedSize:0};if(!$||U)A.crc32=Q.crc32,A.compressedSize=Q.compressedSize,A.uncompressedSize=Q.uncompressedSize;var i=0;if($)i|=8;if(!G&&(g||y))i|=2048;var E=0,O=0;if(L)E|=16;if(q==="UNIX")O=798,E|=rK(Y.unixPermissions,L);else O=20,E|=aK(Y.dosPermissions,L);if(k=_.getUTCHours(),k=k<<6,k=k|_.getUTCMinutes(),k=k<<5,k=k|_.getUTCSeconds()/2,M=_.getUTCFullYear()-1980,M=M<<4,M=M|_.getUTCMonth()+1,M=M<<5,M=M|_.getUTCDate(),g)I=M0(1,1)+M0(Q9(J),4)+B,w+="up"+M0(I.length,2)+I;if(y)F=M0(1,1)+M0(Q9(j),4)+P,w+="uc"+M0(F.length,2)+F;var C="";C+=`
3
- \x00`,C+=M0(i,2),C+=K.magic,C+=M0(k,2),C+=M0(M,2),C+=M0(A.crc32,4),C+=M0(A.compressedSize,4),C+=M0(A.uncompressedSize,4),C+=M0(J.length,2),C+=M0(w.length,2);var x=Y8.LOCAL_FILE_HEADER+C+J+w,R=Y8.CENTRAL_FILE_HEADER+M0(O,2)+C+M0(j.length,2)+"\x00\x00\x00\x00"+M0(E,4)+M0(X,4)+J+w+j;return{fileRecord:x,dirRecord:R}},sK=function(Q,$,U,X,q){var V="",Y=E1.transformTo("string",q(X));return V=Y8.CENTRAL_DIRECTORY_END+"\x00\x00\x00\x00"+M0(Q,2)+M0(Q,2)+M0($,4)+M0(U,4)+M0(Y.length,2)+Y,V},tK=function(Q){var $="";return $=Y8.DATA_DESCRIPTOR+M0(Q.crc32,4)+M0(Q.compressedSize,4)+M0(Q.uncompressedSize,4),$};function U2(Q,$,U,X){S1.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=$,this.zipPlatform=U,this.encodeFileName=X,this.streamFiles=Q,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}E1.inherits(U2,S1);U2.prototype.push=function(Q){var $=Q.meta.percent||0,U=this.entriesCount,X=this._sources.length;if(this.accumulate)this.contentBuffer.push(Q);else this.bytesWritten+=Q.data.length,S1.prototype.push.call(this,{data:Q.data,meta:{currentFile:this.currentFile,percent:U?($+100*(U-X-1))/U:100}})};U2.prototype.openedSource=function(Q){this.currentSourceOffset=this.bytesWritten,this.currentFile=Q.file.name;var $=this.streamFiles&&!Q.file.dir;if($){var U=$9(Q,$,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:U.fileRecord,meta:{percent:0}})}else this.accumulate=!0};U2.prototype.closedSource=function(Q){this.accumulate=!1;var $=this.streamFiles&&!Q.file.dir,U=$9(Q,$,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(U.dirRecord),$)this.push({data:tK(Q),meta:{percent:100}});else{this.push({data:U.fileRecord,meta:{percent:0}});while(this.contentBuffer.length)this.push(this.contentBuffer.shift())}this.currentFile=null};U2.prototype.flush=function(){var Q=this.bytesWritten;for(var $=0;$<this.dirRecords.length;$++)this.push({data:this.dirRecords[$],meta:{percent:100}});var U=this.bytesWritten-Q,X=sK(this.dirRecords.length,U,Q,this.zipComment,this.encodeFileName);this.push({data:X,meta:{percent:100}})};U2.prototype.prepareNextSource=function(){if(this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused)this.previous.pause();else this.previous.resume()};U2.prototype.registerPrevious=function(Q){this._sources.push(Q);var $=this;return Q.on("data",function(U){$.processChunk(U)}),Q.on("end",function(){if($.closedSource($.previous.streamInfo),$._sources.length)$.prepareNextSource();else $.end()}),Q.on("error",function(U){$.error(U)}),this};U2.prototype.resume=function(){if(!S1.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};U2.prototype.error=function(Q){var $=this._sources;if(!S1.prototype.error.call(this,Q))return!1;for(var U=0;U<$.length;U++)try{$[U].error(Q)}catch(X){}return!0};U2.prototype.lock=function(){S1.prototype.lock.call(this);var Q=this._sources;for(var $=0;$<Q.length;$++)Q[$].lock()};U9.exports=U2});var q9=J0((UJ)=>{var eK=o5(),QJ=X9(),$J=function(Q,$){var U=Q||$,X=eK[U];if(!X)throw new Error(U+" is not a valid compression method !");return X};UJ.generateWorker=function(Q,$,U){var X=new QJ($.streamFiles,U,$.platform,$.encodeFileName),q=0;try{Q.forEach(function(V,Y){q++;var K=$J(Y.options.compression,$.compression),G=Y.options.compressionOptions||$.compressionOptions||{},J=Y.dir,B=Y.date;Y._compressWorker(K,G).withStreamInfo("file",{name:V,dir:J,date:B,comment:Y.comment||"",unixPermissions:Y.unixPermissions,dosPermissions:Y.dosPermissions}).pipe(X)}),X.entriesCount=q}catch(V){X.error(V)}return X}});var Y9=J0((XG,V9)=>{var qJ=N0(),K8=l0();function j6(Q,$){K8.call(this,"Nodejs stream input adapter for "+Q),this._upstreamEnded=!1,this._bindStream($)}qJ.inherits(j6,K8);j6.prototype._bindStream=function(Q){var $=this;this._stream=Q,Q.pause(),Q.on("data",function(U){$.push({data:U,meta:{percent:0}})}).on("error",function(U){if($.isPaused)this.generatedError=U;else $.error(U)}).on("end",function(){if($.isPaused)$._upstreamEnded=!0;else $.end()})};j6.prototype.pause=function(){if(!K8.prototype.pause.call(this))return!1;return this._stream.pause(),!0};j6.prototype.resume=function(){if(!K8.prototype.resume.call(this))return!1;if(this._upstreamEnded)this.end();else this._stream.resume();return!0};V9.exports=j6});var P9=J0((qG,Z9)=>{var VJ=H1(),Z6=N0(),G9=l0(),YJ=Q5(),w9=$5(),K9=p6(),KJ=J$(),JJ=q9(),J9=i1(),BJ=Y9(),W9=function(Q,$,U){var X=Z6.getTypeOf($),q,V=Z6.extend(U||{},w9);if(V.date=V.date||new Date,V.compression!==null)V.compression=V.compression.toUpperCase();if(typeof V.unixPermissions==="string")V.unixPermissions=parseInt(V.unixPermissions,8);if(V.unixPermissions&&V.unixPermissions&16384)V.dir=!0;if(V.dosPermissions&&V.dosPermissions&16)V.dir=!0;if(V.dir)Q=z9(Q);if(V.createFolders&&(q=GJ(Q)))j9.call(this,q,!0);var Y=X==="string"&&V.binary===!1&&V.base64===!1;if(!U||typeof U.binary==="undefined")V.binary=!Y;var K=$ instanceof K9&&$.uncompressedSize===0;if(K||V.dir||!$||$.length===0)V.base64=!1,V.binary=!0,$="",V.compression="STORE",X="string";var G=null;if($ instanceof K9||$ instanceof G9)G=$;else if(J9.isNode&&J9.isStream($))G=new BJ(Q,$);else G=Z6.prepareContent(Q,$,V.binary,V.optimizedBinaryString,V.base64);var J=new KJ(Q,G,V);this.files[Q]=J},GJ=function(Q){if(Q.slice(-1)==="/")Q=Q.substring(0,Q.length-1);var $=Q.lastIndexOf("/");return $>0?Q.substring(0,$):""},z9=function(Q){if(Q.slice(-1)!=="/")Q+="/";return Q},j9=function(Q,$){if($=typeof $!=="undefined"?$:w9.createFolders,Q=z9(Q),!this.files[Q])W9.call(this,Q,null,{dir:!0,createFolders:$});return this.files[Q]};function B9(Q){return Object.prototype.toString.call(Q)==="[object RegExp]"}var wJ={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(Q){var $,U,X;for($ in this.files)if(X=this.files[$],U=$.slice(this.root.length,$.length),U&&$.slice(0,this.root.length)===this.root)Q(U,X)},filter:function(Q){var $=[];return this.forEach(function(U,X){if(Q(U,X))$.push(X)}),$},file:function(Q,$,U){if(arguments.length===1)if(B9(Q)){var X=Q;return this.filter(function(V,Y){return!Y.dir&&X.test(V)})}else{var q=this.files[this.root+Q];if(q&&!q.dir)return q;else return null}else Q=this.root+Q,W9.call(this,Q,$,U);return this},folder:function(Q){if(!Q)return this;if(B9(Q))return this.filter(function(q,V){return V.dir&&Q.test(q)});var $=this.root+Q,U=j9.call(this,$),X=this.clone();return X.root=U.name,X},remove:function(Q){Q=this.root+Q;var $=this.files[Q];if(!$){if(Q.slice(-1)!=="/")Q+="/";$=this.files[Q]}if($&&!$.dir)delete this.files[Q];else{var U=this.filter(function(q,V){return V.name.slice(0,Q.length)===Q});for(var X=0;X<U.length;X++)delete this.files[U[X].name]}return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(Q){var $,U={};try{if(U=Z6.extend(Q||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:VJ.utf8encode}),U.type=U.type.toLowerCase(),U.compression=U.compression.toUpperCase(),U.type==="binarystring")U.type="string";if(!U.type)throw new Error("No output type specified.");if(Z6.checkSupport(U.type),U.platform==="darwin"||U.platform==="freebsd"||U.platform==="linux"||U.platform==="sunos")U.platform="UNIX";if(U.platform==="win32")U.platform="DOS";var X=U.comment||this.comment||"";$=JJ.generateWorker(this,U,X)}catch(q){$=new G9("error"),$.error(q)}return new YJ($,U.type||"string",U.mimeType)},generateAsync:function(Q,$){return this.generateInternalStream(Q).accumulate($)},generateNodeStream:function(Q,$){if(Q=Q||{},!Q.type)Q.type="nodebuffer";return this.generateInternalStream(Q).toNodejsStream($)}};Z9.exports=wJ});var s5=J0((VG,I9)=>{var WJ=N0();function F9(Q){this.data=Q,this.length=Q.length,this.index=0,this.zero=0}F9.prototype={checkOffset:function(Q){this.checkIndex(this.index+Q)},checkIndex:function(Q){if(this.length<this.zero+Q||Q<0)throw new 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 $=0,U;this.checkOffset(Q);for(U=this.index+Q-1;U>=this.index;U--)$=($<<8)+this.byteAt(U);return this.index+=Q,$},readString:function(Q){return WJ.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))}};I9.exports=F9});var t5=J0((YG,H9)=>{var M9=s5(),zJ=N0();function k1(Q){M9.call(this,Q);for(var $=0;$<this.data.length;$++)Q[$]=Q[$]&255}zJ.inherits(k1,M9);k1.prototype.byteAt=function(Q){return this.data[this.zero+Q]};k1.prototype.lastIndexOfSignature=function(Q){var $=Q.charCodeAt(0),U=Q.charCodeAt(1),X=Q.charCodeAt(2),q=Q.charCodeAt(3);for(var V=this.length-4;V>=0;--V)if(this.data[V]===$&&this.data[V+1]===U&&this.data[V+2]===X&&this.data[V+3]===q)return V-this.zero;return-1};k1.prototype.readAndCheckSignature=function(Q){var $=Q.charCodeAt(0),U=Q.charCodeAt(1),X=Q.charCodeAt(2),q=Q.charCodeAt(3),V=this.readData(4);return $===V[0]&&U===V[1]&&X===V[2]&&q===V[3]};k1.prototype.readData=function(Q){if(this.checkOffset(Q),Q===0)return[];var $=this.data.slice(this.zero+this.index,this.zero+this.index+Q);return this.index+=Q,$};H9.exports=k1});var O9=J0((KG,C9)=>{var L9=s5(),jJ=N0();function g1(Q){L9.call(this,Q)}jJ.inherits(g1,L9);g1.prototype.byteAt=function(Q){return this.data.charCodeAt(this.zero+Q)};g1.prototype.lastIndexOfSignature=function(Q){return this.data.lastIndexOf(Q)-this.zero};g1.prototype.readAndCheckSignature=function(Q){var $=this.readData(4);return Q===$};g1.prototype.readData=function(Q){this.checkOffset(Q);var $=this.data.slice(this.zero+this.index,this.zero+this.index+Q);return this.index+=Q,$};C9.exports=g1});var Q4=J0((JG,D9)=>{var N9=t5(),ZJ=N0();function e5(Q){N9.call(this,Q)}ZJ.inherits(e5,N9);e5.prototype.readData=function(Q){if(this.checkOffset(Q),Q===0)return new Uint8Array(0);var $=this.data.subarray(this.zero+this.index,this.zero+this.index+Q);return this.index+=Q,$};D9.exports=e5});var R9=J0((BG,x9)=>{var A9=Q4(),PJ=N0();function $4(Q){A9.call(this,Q)}PJ.inherits($4,A9);$4.prototype.readData=function(Q){this.checkOffset(Q);var $=this.data.slice(this.zero+this.index,this.zero+this.index+Q);return this.index+=Q,$};x9.exports=$4});var U4=J0((GG,E9)=>{var J8=N0(),T9=D2(),FJ=t5(),IJ=O9(),MJ=R9(),HJ=Q4();E9.exports=function(Q){var $=J8.getTypeOf(Q);if(J8.checkSupport($),$==="string"&&!T9.uint8array)return new IJ(Q);if($==="nodebuffer")return new MJ(Q);if(T9.uint8array)return new HJ(J8.transformTo("uint8array",Q));return new FJ(J8.transformTo("array",Q))}});var v9=J0((wG,g9)=>{var X4=U4(),p2=N0(),LJ=p6(),S9=c6(),B8=H1(),G8=o5(),CJ=D2(),OJ=0,NJ=3,DJ=function(Q){for(var $ in G8){if(!Object.prototype.hasOwnProperty.call(G8,$))continue;if(G8[$].magic===Q)return G8[$]}return null};function k9(Q,$){this.options=Q,this.loadOptions=$}k9.prototype={isEncrypted:function(){return(this.bitFlag&1)===1},useUTF8:function(){return(this.bitFlag&2048)===2048},readLocalPart:function(Q){var $,U;if(Q.skip(22),this.fileNameLength=Q.readInt(2),U=Q.readInt(2),this.fileName=Q.readData(this.fileNameLength),Q.skip(U),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if($=DJ(this.compressionMethod),$===null)throw new Error("Corrupted zip : compression "+p2.pretty(this.compressionMethod)+" unknown (inner file : "+p2.transformTo("string",this.fileName)+")");this.decompressed=new LJ(this.compressedSize,this.uncompressedSize,this.crc32,$,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.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 new Error("Encrypted zip are not supported");Q.skip($),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===OJ)this.dosPermissions=this.externalFileAttributes&63;if(Q===NJ)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=X4(this.extraFields[1].value);if(this.uncompressedSize===p2.MAX_VALUE_32BITS)this.uncompressedSize=Q.readInt(8);if(this.compressedSize===p2.MAX_VALUE_32BITS)this.compressedSize=Q.readInt(8);if(this.localHeaderOffset===p2.MAX_VALUE_32BITS)this.localHeaderOffset=Q.readInt(8);if(this.diskNumberStart===p2.MAX_VALUE_32BITS)this.diskNumberStart=Q.readInt(4)},readExtraFields:function(Q){var $=Q.index+this.extraFieldsLength,U,X,q;if(!this.extraFields)this.extraFields={};while(Q.index+4<$)U=Q.readInt(2),X=Q.readInt(2),q=Q.readData(X),this.extraFields[U]={id:U,length:X,value:q};Q.setIndex($)},handleUTF8:function(){var Q=CJ.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=B8.utf8decode(this.fileName),this.fileCommentStr=B8.utf8decode(this.fileComment);else{var $=this.findExtraFieldUnicodePath();if($!==null)this.fileNameStr=$;else{var U=p2.transformTo(Q,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(U)}var X=this.findExtraFieldUnicodeComment();if(X!==null)this.fileCommentStr=X;else{var q=p2.transformTo(Q,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(q)}}},findExtraFieldUnicodePath:function(){var Q=this.extraFields[28789];if(Q){var $=X4(Q.value);if($.readInt(1)!==1)return null;if(S9(this.fileName)!==$.readInt(4))return null;return B8.utf8decode($.readData(Q.length-5))}return null},findExtraFieldUnicodeComment:function(){var Q=this.extraFields[25461];if(Q){var $=X4(Q.value);if($.readInt(1)!==1)return null;if(S9(this.fileComment)!==$.readInt(4))return null;return B8.utf8decode($.readData(Q.length-5))}return null}};g9.exports=k9});var h9=J0((WG,f9)=>{var AJ=U4(),T2=N0(),X2=r5(),xJ=v9(),RJ=D2();function y9(Q){this.files=[],this.loadOptions=Q}y9.prototype={checkSignature:function(Q){if(!this.reader.readAndCheckSignature(Q)){this.reader.index-=4;var $=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+T2.pretty($)+", expected "+T2.pretty(Q)+")")}},isSignature:function(Q,$){var U=this.reader.index;this.reader.setIndex(Q);var X=this.reader.readString(4),q=X===$;return this.reader.setIndex(U),q},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),$=RJ.uint8array?"uint8array":"array",U=T2.transformTo($,Q);this.zipComment=this.loadOptions.decodeFileName(U)},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,$=0,U,X,q;while($<Q)U=this.reader.readInt(2),X=this.reader.readInt(4),q=this.reader.readData(X),this.zip64ExtensibleData[U]={id:U,length:X,value:q}},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 new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var Q,$;for(Q=0;Q<this.files.length;Q++)$=this.files[Q],this.reader.setIndex($.localHeaderOffset),this.checkSignature(X2.LOCAL_FILE_HEADER),$.readLocalPart(this.reader),$.handleUTF8(),$.processAttributes()},readCentralDir:function(){var Q;this.reader.setIndex(this.centralDirOffset);while(this.reader.readAndCheckSignature(X2.CENTRAL_FILE_HEADER))Q=new xJ({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 new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)}},readEndOfCentral:function(){var Q=this.reader.lastIndexOfSignature(X2.CENTRAL_DIRECTORY_END);if(Q<0){var $=!this.isSignature(0,X2.LOCAL_FILE_HEADER);if($)throw new 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 new Error("Corrupted zip: can't find end of central directory")}this.reader.setIndex(Q);var U=Q;if(this.checkSignature(X2.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===T2.MAX_VALUE_16BITS||this.diskWithCentralDirStart===T2.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===T2.MAX_VALUE_16BITS||this.centralDirRecords===T2.MAX_VALUE_16BITS||this.centralDirSize===T2.MAX_VALUE_32BITS||this.centralDirOffset===T2.MAX_VALUE_32BITS){if(this.zip64=!0,Q=this.reader.lastIndexOfSignature(X2.ZIP64_CENTRAL_DIRECTORY_LOCATOR),Q<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(Q),this.checkSignature(X2.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,X2.ZIP64_CENTRAL_DIRECTORY_END)){if(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(X2.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory")}this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(X2.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var X=this.centralDirOffset+this.centralDirSize;if(this.zip64)X+=20,X+=12+this.zip64EndOfCentralSize;var q=U-X;if(q>0)if(this.isSignature(U,X2.CENTRAL_FILE_HEADER));else this.reader.zero=q;else if(q<0)throw new Error("Corrupted zip: missing "+Math.abs(q)+" bytes.")},prepareReader:function(Q){this.reader=AJ(Q)},load:function(Q){this.prepareReader(Q),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}};f9.exports=y9});var u9=J0((zG,b9)=>{var q4=N0(),w8=F1(),TJ=H1(),EJ=h9(),SJ=q5(),_9=i1();function kJ(Q){return new w8.Promise(function($,U){var X=Q.decompressed.getContentWorker().pipe(new SJ);X.on("error",function(q){U(q)}).on("end",function(){if(X.streamInfo.crc32!==Q.decompressed.crc32)U(new Error("Corrupted zip : CRC32 mismatch"));else $()}).resume()})}b9.exports=function(Q,$){var U=this;if($=q4.extend($||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:TJ.utf8decode}),_9.isNode&&_9.isStream(Q))return w8.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file."));return q4.prepareContent("the loaded zip file",Q,!0,$.optimizedBinaryString,$.base64).then(function(X){var q=new EJ($);return q.load(X),q}).then(function X(q){var V=[w8.Promise.resolve(q)],Y=q.files;if($.checkCRC32)for(var K=0;K<Y.length;K++)V.push(kJ(Y[K]));return w8.Promise.all(V)}).then(function X(q){var V=q.shift(),Y=V.files;for(var K=0;K<Y.length;K++){var G=Y[K],J=G.fileNameStr,B=q4.resolve(G.fileNameStr);if(U.file(B,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:$.createFolders}),!G.dir)U.file(B).unsafeOriginalName=J}if(V.zipComment.length)U.comment=V.zipComment;return U})}});var p9=J0((jG,c9)=>{function e0(){if(!(this instanceof e0))return new e0;if(arguments.length)throw new 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 e0;for(var $ in this)if(typeof this[$]!=="function")Q[$]=this[$];return Q}}e0.prototype=P9();e0.prototype.loadAsync=u9();e0.support=D2();e0.defaults=$5();e0.version="3.10.1";e0.loadAsync=function(Q,$){return new e0().loadAsync(Q,$)};e0.external=F1();c9.exports=e0});var BU=J0((z4)=>{/*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */var JU;(function(Q){if(typeof DO_NOT_EXPORT_CRC==="undefined")if(typeof z4==="object")Q(z4);else if(typeof define==="function"&&define.amd)define(function(){var $={};return Q($),$});else Q(JU={});else Q(JU={})})(function(Q){Q.version="1.2.2";function $(){var A=0,i=new Array(256);for(var E=0;E!=256;++E)A=E,A=A&1?-2097792136^A>>>1:A>>>1,A=A&1?-2097792136^A>>>1:A>>>1,A=A&1?-2097792136^A>>>1:A>>>1,A=A&1?-2097792136^A>>>1:A>>>1,A=A&1?-2097792136^A>>>1:A>>>1,A=A&1?-2097792136^A>>>1:A>>>1,A=A&1?-2097792136^A>>>1:A>>>1,A=A&1?-2097792136^A>>>1:A>>>1,i[E]=A;return typeof Int32Array!=="undefined"?new Int32Array(i):i}var U=$();function X(A){var i=0,E=0,O=0,C=typeof Int32Array!=="undefined"?new Int32Array(4096):new Array(4096);for(O=0;O!=256;++O)C[O]=A[O];for(O=0;O!=256;++O){E=A[O];for(i=256+O;i<4096;i+=256)E=C[i]=E>>>8^A[E&255]}var x=[];for(O=1;O!=16;++O)x[O-1]=typeof Int32Array!=="undefined"?C.subarray(O*256,O*256+256):C.slice(O*256,O*256+256);return x}var q=X(U),V=q[0],Y=q[1],K=q[2],G=q[3],J=q[4],B=q[5],Z=q[6],j=q[7],P=q[8],g=q[9],y=q[10],k=q[11],M=q[12],w=q[13],I=q[14];function F(A,i){var E=i^-1;for(var O=0,C=A.length;O<C;)E=E>>>8^U[(E^A.charCodeAt(O++))&255];return~E}function L(A,i){var E=i^-1,O=A.length-15,C=0;for(;C<O;)E=I[A[C++]^E&255]^w[A[C++]^E>>8&255]^M[A[C++]^E>>16&255]^k[A[C++]^E>>>24]^y[A[C++]]^g[A[C++]]^P[A[C++]]^j[A[C++]]^Z[A[C++]]^B[A[C++]]^J[A[C++]]^G[A[C++]]^K[A[C++]]^Y[A[C++]]^V[A[C++]]^U[A[C++]];O+=15;while(C<O)E=E>>>8^U[(E^A[C++])&255];return~E}function _(A,i){var E=i^-1;for(var O=0,C=A.length,x=0,R=0;O<C;)if(x=A.charCodeAt(O++),x<128)E=E>>>8^U[(E^x)&255];else if(x<2048)E=E>>>8^U[(E^(192|x>>6&31))&255],E=E>>>8^U[(E^(128|x&63))&255];else if(x>=55296&&x<57344)x=(x&1023)+64,R=A.charCodeAt(O++)&1023,E=E>>>8^U[(E^(240|x>>8&7))&255],E=E>>>8^U[(E^(128|x>>2&63))&255],E=E>>>8^U[(E^(128|R>>6&15|(x&3)<<4))&255],E=E>>>8^U[(E^(128|R&63))&255];else E=E>>>8^U[(E^(224|x>>12&15))&255],E=E>>>8^U[(E^(128|x>>6&63))&255],E=E>>>8^U[(E^(128|x&63))&255];return~E}Q.table=U,Q.bstr=F,Q.buf=L,Q.str=_})});var zU=R4(p9(),1);function*d9(...Q){for(let $ of Q)yield*$}function*z8(Q,$){let U=0;for(let X of Q)yield $(X,U++)}function*gJ(Q,$){let U=0;for(let X of Q)if($(X,U++))yield X}function*vJ(Q){for(let $=0;$<Q;++$)yield $}function P6(Q=0.5){return Math.random()<Q}function l9(Q,$){return Q+Math.floor(Math.random()*($-Q))}function Z8(Q){let $=Q[l9(0,Q.length)];if($===void 0)throw new Error("choices was empty in random choice");else return $}var W8;function V4(){if(W8===void 0){let Q=Math.sqrt(-2*Math.log(Math.random())),$=2*Math.PI*Math.random();return W8=Q*Math.sin($),Q*Math.cos($)}else{let Q=W8;return W8=void 0,Q}}function q2(Q=1){let $=Math.exp(-Q),U=0,X=Math.random();while(X>$)U++,X*=Math.random();return U}var m9=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 ;,'"`;function y1(Q){return Array(Q).fill(null).map(()=>m9.charAt(Math.floor(Math.random()*m9.length))).join("")}var yJ=/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(\.\d+)?([zZ]|((\+|-)(\d{2}):(\d{2})))$/;function fJ(Q){let $=yJ.exec(Q);if(!$)return!1;let[,U,X,q,V,Y,K]=$.map((G)=>parseInt(G,10));return U!==void 0&&X!==void 0&&q!==void 0&&V!==void 0&&Y!==void 0&&K!==void 0&&0<X&&X<=12&&q<=hJ(U,X)&&V<24&&Y<60&&K<=60}function hJ(Q,$){if($===2)return _J(Q)?29:28;return bJ[$-1]??0}function _J(Q){return Q%4===0&&(Q%100!==0||Q%400===0)}var bJ=[31,0,31,30,31,30,31,31,30,31,30,31];function j8(Q){return typeof Q==="object"&&Q!==null&&!Array.isArray(Q)}var uJ={int8:[-128,128],int16:[-32768,32768],int32:[-2147483648,2147483648],uint8:[0,256],uint16:[0,65536],uint32:[0,4294967296]};function v1(Q){return/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(Q)?`.${Q}`:`["${Q}"]`}function Q2(Q){return Q===null?"null":Array.isArray(Q)?"array":typeof Q}class k0{guard(Q){for(let $ of this.pathErrors(Q))return!1;return!0}guardAssert(Q){let $=[];for(let[U,X]of this.pathErrors(Q)){let q=U.reverse().join("")||".";$.push(`${q}: ${X}`)}if($.length){let U=JSON.stringify(Q,null,2),X=JSON.stringify(this.schema(),null,2);throw new Error(`Validation errors:
4
- ${$.join(`
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 u6(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 c6(Z5(q,Q.length-$),Q,$,X)}function fK(Q,q,$,X){return c6(nK(q),Q,$,X)}function hK(Q,q,$,X){return c6(v7(q),Q,$,X)}function _K(Q,q,$,X){return c6(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 c6(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 u6(this,Q,!0,23,4)};_.prototype.readFloatBE=function(Q,q){if(Q=Q>>>0,!q)v0(Q,4,this.length);return u6(this,Q,!1,23,4)};_.prototype.readDoubleLE=function(Q,q){if(Q=Q>>>0,!q)v0(Q,8,this.length);return u6(this,Q,!0,52,8)};_.prototype.readDoubleBE=function(Q,q){if(Q=Q>>>0,!q)v0(Q,8,this.length);return u6(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)p6(X,"abort",V);U(z)},G=(...z)=>{if(typeof Q.removeListener==="function")Q.removeListener("error",K);if(X!=null)p6(X,"abort",V);Y(z)};if(k7(Q,q,G,{once:!0}),q!=="error"&&typeof Q.once==="function")Q.once("error",K);function V(){p6(Q,q,G),p6(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 p6(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 i6=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}}),m6=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})}}}),d6=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}),l6=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}=m6(),M=_2(),I=p0().debuglog("stream",(B)=>{I=B}),f=ZV(),E=O1(),{getHighWaterMark:d,getDefaultHighWaterMark:R}=d6(),{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}=m6(),{getHighWaterMark:N,getDefaultHighWaterMark:W}=d6(),{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=l6(),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=l6(),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}=d6();$(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=l6();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}=m6(),{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}=d6(),{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=l6();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}=m6();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 $=i6();{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{o6=new ArrayBuffer(0);try{LV.blob=new Blob([o6],{type:"application/zip"}).size===0}catch(Q){try{A5=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,n6=new A5,n6.append(o6),LV.blob=n6.getBlob("application/zip").size===0}catch(q){LV.blob=!1}}}var o6,A5,n6;try{LV.nodestream=!!i6().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)a6=0,R5=new q9(r6),s6=global.document.createTextNode(""),R5.observe(s6,{characterData:!0}),J6=function(){s6.data=a6=++a6%2};else if(!global.setImmediate&&typeof global.MessageChannel<"u")t6=new global.MessageChannel,t6.port1.onmessage=r6,J6=function(){t6.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(){r6(),Q.onreadystatechange=null,Q.parentNode.removeChild(Q),Q=null},global.document.documentElement.appendChild(Q)};else J6=function(){setTimeout(r6,0)};var a6,R5,s6,t6,x5,K6=[];function r6(){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 Q8(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 Q8(Q,q){for(var $=0;$<Q.length;++$)q[$]=Q.charCodeAt($)&255;return q}var e6={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=e6.applyCanBeUsed.uint8array;else if($==="nodebuffer")X=e6.applyCanBeUsed.nodebuffer;if(X)while(q>1)try{return e6.stringifyByChunk(Q,$,q)}catch(Y){q=Math.floor(q/2)}return e6.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 Q8(Q,Array(Q.length))},arraybuffer:function(Q){return c2.string.uint8array(Q).buffer},uint8array:function(Q){return Q8(Q,new Uint8Array(Q.length))},nodebuffer:function(Q){return Q8(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(),$8=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 X8(){$8.call(this,"utf-8 decode"),this.leftOver=null}v1.inherits(X8,$8);X8.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})};X8.prototype.flush=function(){if(this.leftOver&&this.leftOver.length)this.push({data:$z.utf8decode(this.leftOver),meta:{}}),this.leftOver=null};$z.Utf8DecodeWorker=X8;function g5(){$8.call(this,"utf-8 encode")}v1.inherits(g5,$8);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=i6().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 Y8=A0(),U8=l0(),Az=16384;function S1(Q){U8.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=Y8.getTypeOf($),!q.isPaused)q._tickAndRepeat()},function($){q.error($)})}Y8.inherits(S1,U8);S1.prototype.cleanUp=function(){U8.prototype.cleanUp.call(this),this.data=null};S1.prototype.resume=function(){if(!U8.prototype.resume.call(this))return!1;if(!this._tickScheduled&&this.dataIsReady)this._tickScheduled=!0,Y8.delay(this._tickAndRepeat,[],this);return!0};S1.prototype._tickAndRepeat=function(){if(this._tickScheduled=!1,this.isPaused||this.isFinished)return;if(this._tick(),!this.isFinished)Y8.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 J8=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=J8(),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 K8=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=K8(),_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],V8=[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 z8=Array(k1);g1(z8);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++){z8[X]=Y;for(Q=0;Q<1<<V8[X];Q++)F6[Y++]=X}Y>>=7;for(;X<k1;X++){z8[X]=Y<<7;for(Q=0;Q<1<<V8[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,V8,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=V8[J],K!==0)X-=z8[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 G8=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=G8(),Z1=0,NG=1,DG=3,o2=4,Fq=5,M2=0,Hq=1,e0=-2,AG=-3,G4=-5,OG=-1,RG=1,W8=2,xG=3,TG=4,vG=0,EG=2,F8=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,H8=42,Z4=69,B8=73,Z8=91,j8=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=F8,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?H8: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||$!==F8||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,F8,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===H8)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>=W8||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>=W8||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=F8+(X.w_bits-8<<4)<<8,K=-1;if(X.strategy>=W8||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=B8}else X.status=B8;if(X.status===B8)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=Z8}else X.status=Z8;if(X.status===Z8)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=j8}else X.status=j8;if(X.status===j8)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===W8?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!==H8&&q!==Z4&&q!==B8&&q!==Z8&&q!==j8&&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!==H8||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 w8=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 w8.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 w8.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,w8.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 w8.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=G8(),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 M8=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=M8;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=M8;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=M8;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=M8;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,P8=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,I8=11,S2=12,C4=13,tq=14,I4=15,eq=16,Q$=17,q$=18,$$=19,L8=20,C8=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=I8;case I8: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===P8)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=L8,q===P8){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===P8)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=L8,q===P8)break Q;case L8:$.mode=C8;case C8: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=C8;break;case K$:if(G===0)break Q;Y[J++]=$.length,G--,$.mode=C8;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===L8||$.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!==I8)return Q2;if(X.mode===I8){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(),N8=j4(),x0=T4(),v4=G8(),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=N8.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=N8.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=N8.utf8border($.output,$.next_out),G=$.next_out-K,V=N8.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(),D8=l0(),DB=IB?"uint8array":"array";AB.magic="\b\x00";function w1(Q,q){D8.call(this,"FlateWorker/"+Q),this._pako=null,this._pakoAction=Q,this._pakoOptions=q,this.meta={}}v$.inherits(w1,D8);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(D8.prototype.flush.call(this),this._pako===null)this._createPako();this._pako.push([],!0)};w1.prototype.cleanUp=function(){D8.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$=J8(),A8=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=A8.LOCAL_FILE_HEADER+D+V+W,S=A8.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=A8.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=A8.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(),O8=l0();function R6(Q,q){O8.call(this,"Nodejs stream input adapter for "+Q),this._upstreamEnded=!1,this._bindStream(q)}nB.inherits(R6,O8);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(!O8.prototype.pause.call(this))return!1;return this._stream.pause(),!0};R6.prototype.resume=function(){if(!O8.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$=K8(),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 R8=A0(),VX=T2(),KZ=f4(),VZ=$X(),zZ=KX(),GZ=_4();zX.exports=function(Q){var q=R8.getTypeOf(Q);if(R8.checkSupport(q),q==="string"&&!VX.uint8array)return new VZ(Q);if(q==="nodebuffer")return new zZ(Q);if(VX.uint8array)return new GZ(R8.transformTo("uint8array",Q));return new KZ(R8.transformTo("array",Q))}});var ZX=k((bP,BX)=>{var c4=u4(),n2=A0(),WZ=K8(),GX=J8(),x8=E1(),T8=S4(),BZ=T2(),ZZ=0,jZ=3,FZ=function(Q){for(var q in T8){if(!Object.prototype.hasOwnProperty.call(T8,q))continue;if(T8[q].magic===Q)return T8[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=x8.utf8decode(this.fileName),this.fileCommentStr=x8.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 x8.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 x8.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(),v8=x1(),PZ=E1(),LZ=HX(),CZ=p5(),wX=U6();function IZ(Q){return new v8.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 v8.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=[v8.Promise.resolve(Y)],J=Y.files;if(q.checkCRC32)for(var K=0;K<J.length;K++)U.push(IZ(J[K]));return v8.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 y6=function(Q){return Q&&Q.Math===Math&&Q};dX.exports=y6(typeof globalThis=="object"&&globalThis)||y6(typeof window=="object"&&window)||y6(typeof self=="object"&&self)||y6(typeof global=="object"&&global)||y6(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,f6,o8,mF=function(Q){return o8(Q)?f6(Q):i8(Q,{})},dF=function(Q){return function(q){var $;if(!_F(q)||($=f6(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},f6=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},f6=function(Q){return vQ(Q,a2)?Q[a2]:{}},o8=function(Q){return vQ(Q,a2)};var Y2,a2;OU.exports={set:i8,get:f6,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\./,h6=function(Q,q){var $=mH[pH(Q)];return $===lH?!0:$===dH?!1:uH(q)?bH(q):!!q},pH=h6.normalize=function(Q){return String(Q).replace(cH,".").toLowerCase()},mH=h6.data={},dH=h6.NATIVE="N",lH=h6.POLYFILL="P";XJ.exports=h6});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 _6=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=_6(),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(),r1=Aw.Uint8Array,xw=!r1||!r1.fromBase64||!function(){try{r1.fromBase64("a");return}catch(Q){}try{r1.fromBase64("",null)}catch(Q){return!0}}();if(r1)Dw({target:"Uint8Array",stat:!0,forced:xw},{fromBase64:function(q){var $=Rw(q,arguments.length>1?arguments[1]:void 0,null,9007199254740991);return Ow(r1,$.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 b6=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=b6(),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=b6(),YM=_6(),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=b6(),WM=_6(),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=b6(),CM=_6(),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*S8(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 T6(Q=0.5){return Math.random()<Q}function DX(Q,q){return Q+Math.floor(Math.random()*(q-Q))}function g8(Q){let q=Q[DX(0,Q.length)];if(q===void 0)throw Error("choices was empty in random choice");else return q}var E8;function m4(){if(E8===void 0){let Q=Math.sqrt(-2*Math.log(Math.random())),q=2*Math.PI*Math.random();return E8=Q*Math.sin(q),Q*Math.cos(q)}else{let Q=E8;return E8=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 k8(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
+ ${q.join(`
5
6
  `)}
6
7
 
7
8
  While trying to validate:
8
- ${U}
9
+ ${$}
9
10
 
10
11
  Against schema:
11
- ${X}`)}else return!0}}class i9 extends k0{#Q;definitions;nullable=!0;constructor(Q){super();this.#Q=Q,this.definitions=Q.definitions}*pathErrors(Q){if(Q!==null)for(let[$,U]of this.#Q.pathErrors(Q))yield[$,`${U} or ${Q2(Q)} is not null`]}fuzz(){return P6(0.1)?null:this.#Q.fuzz()}schema(){return{...this.#Q.schema(),nullable:!0}}}function P8(Q){return new i9(Q)}class cJ extends k0{#Q;#$;definitions;nullable;constructor(Q,$){super();this.#Q=Q,this.#$=$,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.#$}}}class n9 extends k0{*pathErrors(Q){if(Q===void 0)yield[[],"value is undefined"]}fuzz(){return Z8([()=>null,P6,V4,()=>y1(q2()),()=>Array(q2()).fill(null).map(()=>this.fuzz()),()=>Object.fromEntries(Array(q2()).fill(null).map(()=>[y1(q2(3)),this.fuzz()]))])()}schema(){return{}}}function o9(){return new n9}class r9 extends k0{*pathErrors(Q){if(typeof Q!=="boolean")yield[[],`${Q2(Q)} is not a boolean`]}fuzz(){return P6()}schema(){return{type:"boolean"}}}function G1(){return new r9}class F8 extends k0{#Q;#$;#U;constructor(Q){super();this.#Q=Q,[this.#$,this.#U]=uJ[Q]}*pathErrors(Q){if(typeof Q!=="number")yield[[],`${Q2(Q)} is not a number`];else if(Q%1!==0)yield[[],`${Q.toPrecision()} is not an integer`];else if(Q<this.#$)yield[[],`${Q.toFixed()} is less than ${this.#$.toFixed()}`];else if(Q>=this.#U)yield[[],`${Q.toFixed()} is greater than ${(this.#U-1).toFixed()}`]}fuzz(){return l9(this.#$,this.#U)}schema(){return{type:this.#Q}}}function F6(){return new F8("uint8")}function V2(){return new F8("int32")}function I6(){return new F8("uint32")}class a9 extends k0{#Q;constructor(Q){super();this.#Q=Q}*pathErrors(Q){if(typeof Q!=="number")yield[[],`${Q2(Q)} is not number, expected a float`]}fuzz(){return V4()}schema(){return{type:this.#Q}}}function A0(){return new a9("float64")}class s9 extends k0{*pathErrors(Q){if(typeof Q!=="string")yield[[],`${Q2(Q)} is not a string`]}fuzz(){return y1(q2(3))}schema(){return{type:"string"}}}function j0(){return new s9}class t9 extends k0{*pathErrors(Q){if(typeof Q!=="string")yield[[],`${Q2(Q)} is not a string`];else if(!fJ(Q))yield[[],`${Q} is not a valid timestamp`]}fuzz(){return new Date(Math.random()*3153600000000).toISOString()}schema(){return{type:"timestamp"}}}function e9(){return new t9}class QU extends k0{#Q;#$;constructor(Q,$){super();this.#Q=Q,this.#$=$}*pathErrors(Q){if(typeof Q!=="string")yield[[],`${Q2(Q)} is not a string`];else if(!this.#$.has(Q))yield[[],`${Q} is not one of ${this.#Q.join(", ")}`]}fuzz(){return Z8(this.#Q)}schema(){return{enum:[...this.#Q]}}}function P2(...Q){let $=new Set(Q);if($.size!==Q.length)throw new Error("enum can't contain duplicates");else return new QU(Q,$)}class $U extends k0{#Q;constructor(Q){super();this.#Q=Q}*pathErrors(Q){if(!Array.isArray(Q))yield[[],`${Q2(Q)} is not an array`];else for(let[$,U]of Q.entries())for(let[X,q]of this.#Q.pathErrors(U))X.push(`[${$.toFixed()}]`),yield[X,q]}fuzz(){return Array(q2()).fill(null).map(()=>this.#Q.fuzz())}schema(){return{elements:this.#Q.schema()}}}function m0(Q){if(Q.definitions)throw new Error("definitions can only exist on a root schema");else return new $U(Q)}class UU extends k0{#Q;constructor(Q){super();this.#Q=Q}*pathErrors(Q){if(!j8(Q))yield[[],`${Q2(Q)} is not a record`];else for(let[$,U]of Object.entries(Q))for(let[X,q]of this.#Q.pathErrors(U))X.push(v1($)),yield[X,q]}fuzz(){return Object.fromEntries(Array(q2()).fill(null).map(()=>[y1(q2(3)),this.#Q.fuzz()]))}schema(){return{values:this.#Q.schema()}}}function M6(Q){if(Q.definitions)throw new Error("definitions can only exist on a root schema");else return new UU(Q)}class XU extends k0{#Q;#$;#U;keys;constructor(Q,$,U,X){super();this.#Q=Q,this.#$=$,this.#U=U,this.keys=X}*pathErrors(Q){if(!j8(Q))yield[[],`${Q2(Q)} is not a record`];else{if(this.#Q)for(let[$,U]of this.#Q){let X=Q[$];if(X===void 0)yield[[],`required key '${$}' is missing`];else for(let[q,V]of U.pathErrors(X))q.push(v1($)),yield[q,V]}if(this.#$){for(let[$,U]of this.#$)if(Q[$]!==void 0)for(let[X,q]of U.pathErrors(Q[$]))X.push(v1($)),yield[X,q]}if(!this.#U){for(let $ of Object.keys(Q))if(!this.keys.has($))yield[[v1($)],`'${$}' is not a valid property and additional properties are not allowed`]}}}fuzz(){let Q=z8(this.#Q??[],([X,q])=>[X,q.fuzz()]),$=z8(gJ(this.#$??[],()=>P6()),([X,q])=>[X,q.fuzz()]),U=this.#U?z8(vJ(q2()),()=>[y1(q2(3)),Z8([()=>null,P6,V4,()=>y1(q2()),()=>[],()=>({})])()]):[];return Object.fromEntries(d9(Q,$,U))}schema(){let Q={};if(this.#Q)Q.properties=Object.fromEntries(this.#Q.map(([$,U])=>[$,U.schema()]));if(this.#$)Q.optionalProperties=Object.fromEntries(this.#$.map(([$,U])=>[$,U.schema()]));if(this.#U)Q.additionalProperties=!0;return Q}}function pJ(Q,$,U){let X=new Set(z8(d9(Q??[],$??[]),([q])=>q));if(Q?.some(([,q])=>q.definitions))throw new Error("definitions can only exist on a root schema");else if($?.some(([,q])=>q.definitions))throw new Error("definitions can only exist on a root schema");else if(X.size!==(Q?.length??0)+($?.length??0))throw new Error("properties and optionalProperties keys must be unique");else return new XU(Q,$,U??!1,X)}function C0(Q,$,U){return pJ(Q?Object.entries(Q):void 0,$?Object.entries($):void 0,U)}class mJ extends k0{#Q;#$;#U;constructor(Q,$,U){super();this.#Q=Q,this.#$=$,this.#U=U}guard(Q){if(!j8(Q))return!1;let{[this.#Q]:$,...U}=Q;if(typeof $!=="string")return!1;return this.#$[$]?.guard(U)??!1}*pathErrors(Q){if(!j8(Q))yield[[],`${Q2(Q)} is not an object`];else{let{[this.#Q]:$,...U}=Q;if($===void 0)yield[[],`discriminator key '${this.#Q}' is missing`];else if(typeof $!=="string")yield[[v1(this.#Q)],`${Q2($)} is not a string`];else{let X=this.#$[$];if(X===void 0)yield[[v1(this.#Q)],`'${$}' is not a valid discriminator value (${Object.keys(this.#$).join(", ")})`];else yield*X.pathErrors(U)}}}fuzz(){let[Q,$]=Z8(this.#U);return{...$.fuzz(),[this.#Q]:Q}}schema(){let Q=Object.fromEntries(this.#U.map(([$,U])=>[$,U.schema()]));return{discriminator:this.#Q,mapping:Q}}}class qU extends k0{#Q;#$;definitions=!0;constructor(Q,$){super();this.#Q=Q,this.#$=$}*pathErrors(Q){yield*this.#$.pathErrors(Q)}fuzz(){return this.#$.fuzz()}schema(){let Q=Object.fromEntries(Object.entries(this.#Q).map(([$,U])=>[$,U.schema()]));return{...this.#$.schema(),definitions:Q}}}class VU extends k0{#Q;#$;constructor(Q,$){super();this.#Q=Q,this.#$=$}*pathErrors(Q){yield*this.#$.pathErrors(Q)}fuzz(){return this.#$.fuzz()}schema(){return{ref:this.#Q}}}class YU{#Q;#$;constructor(Q,$){this.#Q=Q,this.#$=$}def(Q,$){let U=$(this.#$);return new YU({...this.#Q,[Q]:U},{...this.#$,[Q]:new VU(Q,U)})}build(Q){return new qU(this.#Q,Q(this.#$))}}class dJ extends k0{#Q;#$;constructor(Q,$){super();this.#$=Q,this.#Q=$}#U(){let Q=this.#$[this.#Q];if(Q===void 0)throw new Error(`ref ${this.#Q} was not in definitions after ref builder was finished`);else return Q}*pathErrors(Q){yield*this.#U().pathErrors(Q)}fuzz(){return this.#U().fuzz()}schema(){return{ref:this.#Q}}}var g0=[];for(let Q=0;Q<256;++Q)g0.push((Q+256).toString(16).slice(1));function KU(Q,$=0){return(g0[Q[$+0]]+g0[Q[$+1]]+g0[Q[$+2]]+g0[Q[$+3]]+"-"+g0[Q[$+4]]+g0[Q[$+5]]+"-"+g0[Q[$+6]]+g0[Q[$+7]]+"-"+g0[Q[$+8]]+g0[Q[$+9]]+"-"+g0[Q[$+10]]+g0[Q[$+11]]+g0[Q[$+12]]+g0[Q[$+13]]+g0[Q[$+14]]+g0[Q[$+15]]).toLowerCase()}var Y4,lJ=new Uint8Array(16);function K4(){if(!Y4){if(typeof crypto==="undefined"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Y4=crypto.getRandomValues.bind(crypto)}return Y4(lJ)}var iJ=typeof crypto!=="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),J4={randomUUID:iJ};function nJ(Q,$,U){Q=Q||{};let X=Q.random??Q.rng?.()??K4();if(X.length<16)throw new Error("Random bytes length must be >= 16");if(X[6]=X[6]&15|64,X[8]=X[8]&63|128,$){if(U=U||0,U<0||U+16>$.length)throw new RangeError(`UUID byte range ${U}:${U+15} is out of buffer bounds`);for(let q=0;q<16;++q)$[U+q]=X[q];return $}return KU(X)}function oJ(Q,$,U){if(J4.randomUUID&&!$&&!Q)return J4.randomUUID();return nJ(Q,$,U)}var f1=oJ;class F2 extends Error{field;regex;constructor(Q,$,U){super(U);this.field=Q,this.regex=$}}class H6 extends Error{hash;constructor(Q){super(`'${Q}' not found in the root hash`);this.hash=Q}}class B4 extends Map{#Q;#$=0;constructor(Q,$=[]){super();this.#Q=Q;for(let[U,X]of $)this.set(U,X)}get(Q){let $=super.get(Q);if($!==void 0)super.delete(Q),super.set(Q,$);return $}set(Q,$){let U=super.get(Q);if(U===void 0)this.#$+=Q.length;else if(U!==null)this.#$-=U.length;if($!==null)this.#$+=$.length;super.delete(Q);let X;while(this.#$>this.#Q&&(X=this.entries().next().value)){let[q,V]=X;if(super.delete(q),this.#$-=q.length,V!==null)this.#$-=V.length}return super.set(Q,$),this}delete(Q){let $=super.get(Q);if($===void 0)return!1;if(super.delete(Q),$!==null)this.#$-=$.length;return this.#$-=Q.length,!0}clear(){super.clear(),this.#$=0}}var I8=sJ;var I2=[],W4=[];var G4="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(m2=0,w4=G4.length;m2<w4;++m2)I2[m2]=G4[m2],W4[G4.charCodeAt(m2)]=m2;var m2,w4;W4[45]=62;W4[95]=63;function rJ(Q){return I2[Q>>18&63]+I2[Q>>12&63]+I2[Q>>6&63]+I2[Q&63]}function aJ(Q,$,U){var X,q=[];for(var V=$;V<U;V+=3)X=(Q[V]<<16&16711680)+(Q[V+1]<<8&65280)+(Q[V+2]&255),q.push(rJ(X));return q.join("")}function sJ(Q){var $,U=Q.length,X=U%3,q=[],V=16383;for(var Y=0,K=U-X;Y<K;Y+=V)q.push(aJ(Q,Y,Y+V>K?K:Y+V));if(X===1)$=Q[U-1],q.push(I2[$>>2]+I2[$<<4&63]+"==");else if(X===2)$=(Q[U-2]<<8)+Q[U-1],q.push(I2[$>>10]+I2[$>>4&63]+I2[$<<2&63]+"=");return q.join("")}var wU=R4(BU(),1);var M8=/^[0-9a-f]{64}$/,WU=C0({name:j0(),timestamp:A0()},void 0,!0),tJ=C0({name:j0(),pageId:j0(),timestamp:A0()},void 0,!0),eJ=C0(void 0,{authors:m0(j0()),title:j0(),publicationDate:j0(),publisher:j0()},!0),QB=C0({id:j0(),idx:C0({timestamp:j0(),value:j0()},void 0,!0)},{template:C0({timestamp:j0(),value:j0()},void 0,!0),redir:C0({timestamp:j0(),value:V2()},void 0,!0),scrollTime:C0({timestamp:j0(),value:e9()},void 0,!0),verticalScroll:C0({timestamp:j0(),value:A0()},void 0,!0),deleted:C0({timestamp:j0(),value:V2()},void 0,!0)},!0),$B=C0({lastOpened:C0({timestamp:j0(),value:j0()},void 0,!0),original:C0({timestamp:j0(),value:V2()},void 0,!0),pages:m0(QB),uuids:m0(C0({first:j0(),second:I6()},void 0,!0))},void 0,!0),UB=C0(void 0,{tags:m0(WU)}),XB=C0({coverPageNumber:V2(),documentMetadata:eJ,extraMetadata:M6(j0()),fileType:P2("epub","notebook","pdf"),fontName:j0(),lineHeight:V2(),orientation:P2("portrait","landscape"),pageCount:I6(),sizeInBytes:j0(),textAlignment:P2("","justify","left"),textScale:A0()},{cPages:$B,customZoomCenterX:A0(),customZoomCenterY:A0(),customZoomOrientation:P2("portrait","landscape"),customZoomPageHeight:A0(),customZoomPageWidth:A0(),customZoomScale:A0(),dummyDocument:G1(),formatVersion:F6(),keyboardMetadata:C0({count:I6(),timestamp:A0()},void 0,!0),lastOpenedPage:V2(),margins:I6(),originalPageCount:V2(),pages:P8(m0(j0())),pageTags:m0(tJ),redirectionPageMap:m0(V2()),tags:m0(WU),transform:C0({m11:A0(),m12:A0(),m13:A0(),m21:A0(),m22:A0(),m23:A0(),m31:A0(),m32:A0(),m33:A0()},void 0,!0),viewBackgroundFilter:P2("off","fullpage"),zoomMode:P2("bestFit","customFit","fitToHeight","fitToWidth")},!0),qB=C0({name:j0(),author:j0(),iconData:j0(),categories:m0(j0()),labels:m0(j0()),orientation:P2("portrait","landscape"),templateVersion:j0(),supportedScreens:m0(P2("rm2","rmPP")),constants:m0(M6(V2())),items:m0(o9())},{formatVersion:F6()}),VB=C0({lastModified:j0(),parent:j0(),pinned:G1(),type:P2("DocumentType","CollectionType","TemplateType"),visibleName:j0()},{lastOpened:j0(),lastOpenedPage:V2(),createdTime:j0(),deleted:G1(),metadatamodified:G1(),modified:G1(),synced:G1(),version:F6()},!0),YB=C0({hash:j0(),generation:A0()},void 0,!0),KB=C0({hash:j0(),generation:A0(),schemaVersion:F6()},void 0,!0),JB=C0({docID:j0(),hash:j0()},void 0,!0);async function GU(Q){let $=await crypto.subtle.digest("SHA-256",Q);return[...new Uint8Array($)].map((U)=>U.toString(16).padStart(2,"0")).join("")}class j4{#Q;#$;#U;#X;constructor(Q,$,U,X){this.#Q=Q,this.#X=$,this.#$=U,this.#U=X}async getRootHash(){let $=await(await this.#Q("GET",`${this.#$}/sync/v4/root`)).text(),U=JSON.parse($);if(!KB.guardAssert(U))throw Error("invalid root hash");let{hash:X,generation:q,schemaVersion:V}=U;if(V!==3)throw new Error(`schema version ${V} not supported`);else if(!Number.isSafeInteger(q))throw new Error(`generation ${q} was not a safe integer; please file a bug report`);else return[X,q]}async#q(Q){if(!M8.test(Q))throw new F2(Q,M8,"hash was not a valid hash");let U=await(await this.#Q("GET",`${this.#$}/sync/v3/files/${Q}`)).arrayBuffer();return new Uint8Array(U)}async getHash(Q){let $=this.#X.get(Q);if($!=null)return new TextEncoder().encode($);else{let U=await this.#q(Q);if(this.#X.get(Q)===void 0)this.#X.set(Q,null);return U}}async getText(Q){let $=this.#X.get(Q);if($!=null)return $;else{let U=await this.#q(Q),q=new TextDecoder().decode(U);return this.#X.set(Q,q),q}}async getEntries(Q){let $=await this.getText(Q),[U,...X]=$.slice(0,-1).split(`
12
- `);if(U!=="3")throw new Error(`schema version ${U} not supported`);else return X.map((q)=>{let[V,Y,K,G,J]=q.split(":");if(V===void 0||Y===void 0||K===void 0||G===void 0||J===void 0)throw new Error(`line '${q}' was not formatted correctly`);else if(Y==="80000000")return{hash:V,type:80000000,id:K,subfiles:parseInt(G,10),size:parseInt(J,10)};else if(Y==="0"&&G==="0")return{hash:V,type:0,id:K,subfiles:0,size:parseInt(J,10)};else throw new Error(`line '${q}' was not formatted correctly`)})}async getContent(Q){let $=await this.getText(Q),U=JSON.parse($),X=[];for(let[V,Y]of[["collection",UB],["template",qB],["document",XB]])try{if(Y.guardAssert(U))return U}catch(K){let G=K instanceof Error?K.message:"unknown error type";X.push(`Couldn't validate as ${V} because:
13
- ${G}`)}let q=X.join(`
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 v6(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 g8([()=>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 E6(){return new y8("uint8")}function z2(){return new y8("int32")}function S6(){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 g8(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(!k8(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 k6(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(!k8(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=S8(this.#Q??[],([X,Y])=>[X,Y.fuzz()]),q=S8(NZ(this.#q??[],()=>T6()),([X,Y])=>[X,Y.fuzz()]),$=this.#$?S8(DZ(V2()),()=>[i1(V2(3)),g8([()=>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(S8(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(!k8(Q))return!1;let{[this.#Q]:q,...$}=Q;if(typeof q!=="string")return!1;return this.#q[q]?.guard($)??!1}*pathErrors(Q){if(!k8(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]=g8(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 g6 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:v6(d0(N0({first:j0(),second:S6()},void 0,!0)))},void 0,!0),xM=N0(void 0,{tags:d0($K)}),TM=N0({coverPageNumber:z2(),documentMetadata:AM,extraMetadata:k6(j0()),fileType:C2("epub","notebook","pdf"),fontName:j0(),lineHeight:z2(),orientation:C2("portrait","landscape"),pageCount:S6(),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:E6(),keyboardMetadata:N0({count:S6(),timestamp:O0()},void 0,!0),lastOpenedPage:z2(),margins:S6(),originalPageCount:z2(),pages:v6(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(k6(z2())),items:d0(RX())},{formatVersion:E6()}),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:E6()},!0),SM=N0({hash:j0(),generation:O0()},void 0,!0),kM=N0({hash:j0(),generation:O0(),schemaVersion:E6()},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
+ `);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
+ ${G}`)}let Y=X.join(`
14
15
 
15
16
  or
16
17
 
17
- `);throw new Error(`invalid content: ${q}`)}async getMetadata(Q){let $=await this.getText(Q),U=JSON.parse($);if(!VB.guardAssert(U))throw Error("invalid metadata");return U}async putRootHash(Q,$,U=!0){if(!Number.isSafeInteger($))throw new Error(`generation ${$} was not a safe integer`);else if(!M8.test(Q))throw new F2(Q,M8,"rootHash was not a valid hash");let X=JSON.stringify({hash:Q,generation:$,broadcast:U}),V=await(await this.#Q("PUT",`${this.#$}/sync/v3/root`,{body:X})).text(),Y=JSON.parse(V);if(!YB.guardAssert(Y))throw Error("invalid root hash");let{hash:K,generation:G}=Y;if(Number.isSafeInteger(G))return[K,G];else throw new Error(`new generation ${G} was not a safe integer; please file a bug report`)}async#V(Q,$,U){if(!this.#X.has(Q)){let X=wU.default.buf(U,0),q=new ArrayBuffer(4);new DataView(q).setInt32(0,X,!1);let V=I8(new Uint8Array(q));if(await this.#Q("PUT",`${this.#$}/sync/v3/files/${Q}`,{body:U,headers:{"rm-filename":$,"x-goog-hash":`crc32c=${V}`}}),this.#X.get(Q)===void 0)this.#X.set(Q,null)}}async putFile(Q,$){let U=await GU($);return[{id:Q,hash:U,type:0,subfiles:0,size:$.length},this.#V(U,Q,$)]}async putText(Q,$){let X=new TextEncoder().encode($),[q,V]=await this.putFile(Q,X);return[q,V.then(()=>{this.#X.set(q.hash,$)})]}async putContent(Q,$){if(!Q.endsWith(".content"))throw new Error(`id ${Q} did not end with '.content'`);else return await this.putText(Q,JSON.stringify($))}async putMetadata(Q,$){if(!Q.endsWith(".metadata"))throw new Error(`id ${Q} did not end with '.metadata'`);else return await this.putText(Q,JSON.stringify($))}async putEntries(Q,$){$.sort((G,J)=>G.id.localeCompare(J.id));let U=new Uint8Array($.length*32);for(let[G,{hash:J}]of $.entries())for(let[B,Z]of(J.match(/../g)??[]).entries())U[G*32+B]=parseInt(Z,16);let X=await GU(U),q=$.reduce((G,J)=>G+J.size,0),V=[`3
18
- `];for(let{hash:G,type:J,id:B,subfiles:Z,size:j}of $)V.push(`${G}:${J}:${B}:${Z}:${j}
19
- `);let Y={id:Q,hash:X,type:80000000,subfiles:$.length,size:q},K=new TextEncoder;return[Y,this.#V(X,`${Q}.docSchema`,K.encode(V.join("")))]}async uploadFile(Q,$,U){let q=I8(new TextEncoder().encode(JSON.stringify({file_name:Q}))),Y=await(await this.#Q("POST",`${this.#U}/doc/v2/files`,{body:$,headers:{"Content-Type":U,"rm-meta":q,"rm-source":"RoR-Browser"}})).json();if(!JB.guardAssert(Y))throw Error("invalid upload response");let{docID:K,hash:G}=Y;return{id:K,hash:G}}dumpCache(){return JSON.stringify(Object.fromEntries(this.#X))}clearCache(){this.#X.clear()}}var jU="https://webapp-prod.cloud.remarkable.engineering",BB="https://eu.tectonic.remarkable.com",GB="https://internal.cloud.remarkable.com",d2=/^([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}||trash)$/;class Z4 extends Error{constructor(){super("root generation was stale; try put again")}}class P4 extends Error{status;statusText;constructor(Q,$,U){super(U);this.status=Q,this.statusText=$}}async function _G(Q,{deviceDesc:$="browser-chrome",uuid:U=f1(),authHost:X=jU}={}){if(Q.length!==8)throw new Error(`code should be length 8, but was ${Q.length}`);let q=await fetch(`${X}/token/json/2/device/new`,{method:"POST",headers:{Authorization:"Bearer"},body:JSON.stringify({code:Q,deviceDesc:$,deviceID:U})});if(!q.ok)throw new P4(q.status,q.statusText,"couldn't register api");else return await q.text()}class ZU{#Q;#$;raw;#U;constructor(Q,$,U,X){this.#Q=Q,this.#$=X,this.raw=new j4((q,V,{body:Y,headers:K}={})=>this.#V(V,{method:q,body:Y,headers:K}),X,$,U)}async#X(Q=!1){if(Q||this.#U===void 0)this.#U=await this.raw.getRootHash();return this.#U}async#q(Q,$){try{this.#U=await this.raw.putRootHash(Q,$)}catch(U){if(U instanceof Z4)this.#U=void 0;throw U}}async#V(Q,{body:$,method:U="POST",headers:X={}}){let q=await fetch(Q,{method:U,headers:{Authorization:`Bearer ${this.#Q}`,...X},body:$});if(!q.ok){let V=await q.text();if(V===`{"message":"precondition failed"}
20
- `)throw new Z4;else throw new P4(q.status,q.statusText,`failed reMarkable request: ${V}`)}else return q}async#G({hash:Q,id:$}){let U=await this.raw.getEntries(Q),X=U.find((P)=>P.id.endsWith(".metadata")),q=U.find((P)=>P.id.endsWith(".content"));if(X===void 0)throw new Error(`couldn't find metadata for hash ${Q}`);let[{visibleName:V,lastModified:Y,pinned:K,parent:G,lastOpened:J,new:B,source:Z},j]=await Promise.all([this.raw.getMetadata(X.hash),q===void 0?Promise.resolve({fileType:void 0,tags:void 0}):this.raw.getContent(q.hash)]);if("templateVersion"in j)return{id:$,hash:Q,visibleName:V,lastModified:Y,new:B,pinned:K,source:Z,parent:G,type:"TemplateType"};else if(j.fileType===void 0)return{id:$,hash:Q,visibleName:V,lastModified:Y,pinned:K,parent:G,tags:j.tags,type:"CollectionType"};else return{id:$,hash:Q,visibleName:V,lastModified:Y,pinned:K,parent:G,tags:j.tags,lastOpened:J??"",fileType:j.fileType,type:"DocumentType"}}async listItems(Q=!1){let $=await this.listIds(Q);return await Promise.all($.map((U)=>this.#G(U)))}async listIds(Q=!1){let[$]=await this.#X(Q);return(await this.raw.getEntries($)).map(({id:X,hash:q})=>({id:X,hash:q}))}async getContent(Q){let $=await this.raw.getEntries(Q),[U]=$.filter((X)=>X.id.endsWith(".content"));if(U===void 0)throw new Error(`couldn't find contents for hash ${Q}`);else return await this.raw.getContent(U.hash)}async getMetadata(Q){let $=await this.raw.getEntries(Q),[U]=$.filter((X)=>X.id.endsWith(".metadata"));if(U===void 0)throw new Error(`couldn't find metadata for hash ${Q}`);else return await this.raw.getMetadata(U.hash)}async getPdf(Q){let $=await this.raw.getEntries(Q),[U]=$.filter((X)=>X.id.endsWith(".pdf"));if(U===void 0)throw new Error(`couldn't find pdf for hash ${Q}`);else return await this.raw.getHash(U.hash)}async getEpub(Q){let $=await this.raw.getEntries(Q),[U]=$.filter((X)=>X.id.endsWith(".epub"));if(U===void 0)throw new Error(`couldn't find epub for hash ${Q}`);else return await this.raw.getHash(U.hash)}async getDocument(Q){let $=await this.raw.getEntries(Q),U=new zU.default;for(let X of $)U.file(X.id,this.raw.getHash(X.hash));return U.generateAsync({type:"uint8array"})}async#J(Q,$,U,{refresh:X,parent:q="",pinned:V=!1,zoomMode:Y="bestFit",viewBackgroundFilter:K,textScale:G=1,textAlignment:J="justify",fontName:B="",coverPageNumber:Z=-1,authors:j,title:P,publicationDate:g,publisher:y,extraMetadata:k={},lineHeight:M=-1,margins:w=125,orientation:I="portrait",tags:F}){if(q&&!d2.test(q))throw new F2(q,d2,"parent must be a valid document id");let L=f1(),_=new Date,A={parent:q,pinned:V,lastModified:(+_).toFixed(),createdTime:(+_).toFixed(),type:"DocumentType",visibleName:Q,lastOpened:"0",lastOpenedPage:0},i={coverPageNumber:Z,documentMetadata:{authors:j,title:P,publicationDate:g,publisher:y},extraMetadata:k,lineHeight:M,margins:w,orientation:I,fileType:$,formatVersion:1,tags:F?.map((U0)=>({name:U0,timestamp:+_}))??[],fontName:B,textAlignment:J,textScale:G,zoomMode:Y,viewBackgroundFilter:K,originalPageCount:1,pageCount:1,pageTags:[],pages:[f1()],redirectionPageMap:[0],sizeInBytes:U.length.toFixed()},[[E,O],[C,x],[R,v],[T,n],[e,X0]]=await Promise.all([this.raw.putContent(`${L}.content`,i),this.raw.putMetadata(`${L}.metadata`,A),this.raw.putText(`${L}.pagedata`,`
21
- `),this.raw.putFile(`${L}.${$}`,U),this.#X(X)]),[[W0,u],Y0]=await Promise.all([this.raw.putEntries(L,[E,C,R,T]),this.raw.getEntries(e)]);Y0.push(W0);let[H,m]=await this.raw.putEntries("root",Y0);return await Promise.all([O,x,v,n,u,m]),await this.#q(H.hash,X0),{id:L,hash:W0.hash}}async putPdf(Q,$,U={}){return await this.#J(Q,"pdf",$,U)}async putEpub(Q,$,U={}){return await this.#J(Q,"epub",$,U)}async putFolder(Q,{parent:$=""}={},U=!1){if($&&!d2.test($))throw new F2($,d2,"parent must be a valid document id");let X=f1(),q=new Date,V={tags:[]},Y={lastModified:(+q).toFixed(),createdTime:(+q).toFixed(),parent:$,pinned:!1,type:"CollectionType",visibleName:Q},[[K,G],[J,B],[Z,j]]=await Promise.all([this.raw.putContent(`${X}.content`,V),this.raw.putMetadata(`${X}.metadata`,Y),this.#X(U)]),[[P,g],y]=await Promise.all([this.raw.putEntries(X,[K,J]),this.raw.getEntries(Z)]);y.push(P);let[k,M]=await this.raw.putEntries("root",y);return await Promise.all([G,B,g,M]),await this.#q(k.hash,j),{id:X,hash:P.hash}}async uploadEpub(Q,$){return await this.raw.uploadFile(Q,$,"application/epub+zip")}async uploadPdf(Q,$){return await this.raw.uploadFile(Q,$,"application/pdf")}async uploadFolder(Q){return await this.raw.uploadFile(Q,new Uint8Array(0),"folder")}async#w(Q,$,U){let X=await this.raw.getEntries($),q=X.findIndex((j)=>j.id.endsWith(".content")),V=X[q];if(V===void 0)throw new Error("internal error: couldn't find content in entry hash");let Y=await this.raw.getContent(V.hash);Object.assign(Y,U);let[K,G]=await this.raw.putContent(V.id,Y);X[q]=K;let[J,B]=await this.raw.putEntries(Q,X),Z=Promise.all([G,B]);return[J,Z]}async#Y(Q,$,U,X){let[q,V]=await this.#X(X),Y=await this.raw.getEntries(q),K=Y.findIndex((g)=>g.hash===Q),G=Y[K];if(G===void 0)throw new H6(Q);let[[J,B],Z]=await Promise.all([this.#w(G.id,Q,$),this.getMetadata(Q)]);if(Z.type!==U)throw new Error(`expected type ${U} but got ${Z.type} for hash ${Q}`);Y[K]=J;let[j,P]=await this.raw.putEntries("root",Y);return await Promise.all([B,P]),await this.#q(j.hash,V),{hash:J.hash}}async updateDocument(Q,$,U=!1){return await this.#Y(Q,$,"DocumentType",U)}async updateCollection(Q,$,U=!1){return await this.#Y(Q,$,"CollectionType",U)}async updateTemplate(Q,$,U=!1){return await this.#Y(Q,$,"TemplateType",U)}async#B(Q,$,U){let X=await this.raw.getEntries($),q=X.findIndex((j)=>j.id.endsWith(".metadata")),V=X[q];if(V===void 0)throw new Error("internal error: couldn't find metadata in entry hash");let Y=await this.raw.getMetadata(V.hash);Object.assign(Y,U);let[K,G]=await this.raw.putMetadata(V.id,Y);X[q]=K;let[J,B]=await this.raw.putEntries(Q,X),Z=Promise.all([G,B]);return[J,Z]}async#K(Q,$,U=!1){let[X,q]=await this.#X(U),V=await this.raw.getEntries(X),Y=V.findIndex((j)=>j.hash===Q),K=V[Y];if(K===void 0)throw new H6(Q);let[G,J]=await this.#B(K.id,Q,$);V[Y]=G;let[B,Z]=await this.raw.putEntries("root",V);return await Promise.all([J,Z]),await this.#q(B.hash,q),{hash:G.hash}}async move(Q,$,U=!1){if(!d2.test($))throw new F2($,d2,"parent must be a valid document id");return await this.#K(Q,{parent:$},U)}async delete(Q,$=!1){return await this.move(Q,"trash",$)}async rename(Q,$,U=!1){return await this.#K(Q,{visibleName:$},U)}async stared(Q,$,U=!1){return await this.#K(Q,{pinned:$},U)}async bulkMove(Q,$,U=!1){if(!d2.test($))throw new F2($,d2,"parent must be a valid document id");let[X,q]=await this.#X(U),V=await this.raw.getEntries(X),Y=new Set(Q),K=[],G=[];for(let g of V)(Y.has(g.hash)?K:G).push(g);let J=await Promise.all(K.map(({id:g,hash:y})=>this.#B(g,y,{parent:$}))),B=[],Z={};for(let[g,[y,k]]of J.entries())G.push(y),B.push(k),Z[K[g].hash]=y.hash;let[j,P]=await this.raw.putEntries("root",G);return await Promise.all([Promise.all(B),P]),await this.#q(j.hash,q),{hashes:Z}}async bulkDelete(Q,$=!1){return await this.bulkMove(Q,"trash",$)}dumpCache(){return this.raw.dumpCache()}async pruneCache(Q){let[$]=await this.#X(Q),U=new Set(this.#$.keys()),X=[await this.raw.getEntries($)],q=[];while(X.length){for(let V of X)for(let{hash:Y,type:K}of V)if(U.add(Y),K===80000000)q.push(this.raw.getEntries(Y));X=await Promise.all(q),q=[]}for(let V of U)this.#$.delete(V)}clearCache(){this.raw.clearCache()}}var wB=M6(P8(j0()));async function WB(Q,{authHost:$=jU}={}){let U=await fetch(`${$}/token/json/2/user/new`,{method:"POST",headers:{Authorization:`Bearer ${Q}`}});if(!U.ok)throw new Error(`couldn't fetch auth token: ${U.statusText}`);return await U.text()}function zB(Q,{rawHost:$=BB,uploadHost:U=GB,cache:X,maxCacheSize:q=1/0}={}){let V=JSON.parse(X??"{}");if(wB.guard(V)){let Y=Object.entries(V),K=q===1/0?new Map(Y):new B4(q,Y);return new ZU(Q,$,U,K)}throw new 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 bG(Q,$={}){let{authHost:U,rawHost:X,uploadHost:q,cache:V,maxCacheSize:Y,syncHost:K}=$??{},G=await WB(Q,{authHost:U});return zB(G,{rawHost:X,uploadHost:q,cache:V,maxCacheSize:Y,syncHost:K})}export{zB as session,bG as remarkable,_G as register,WB as auth,F2 as ValidationError,P4 as ResponseError,H6 as HashNotFoundError,Z4 as GenerationError};
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
+ `];if($===4){let V=Q==="root"?".":Q;Y.push(`0:${V}:${q.length}:${X}
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:$=o1(),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=o1(),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:[o1()],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=o1(),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 g6(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 g6(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=k6(v6(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,g6 as HashNotFoundError,rQ as GenerationError};