@legit-sdk/react 0.2.12 → 0.2.13

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -176
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,178 +1,3 @@
1
1
  // @legit-sdk/react - works in browser and Next.js SSR
2
2
 
3
- var XA=Object.defineProperty;var l=(o,i)=>XA(o,"name",{value:i,configurable:!0});var ZP=(o,i)=>()=>(o&&(i=o(o=0)),i);var QP=(o,i)=>{for(var f in i)XA(o,f,{get:i[f],enumerable:!0})};var PP={};QP(PP,{CompositeFs:()=>pE,EphemeralSubFs:()=>yE,GitSubFs:()=>SP,HiddenFileSubFs:()=>gE,PassThroughSubFs:()=>lP,createFsOperationFileLogger:()=>c5,createLegitSyncService:()=>BP,getLegitFsAccess:()=>HC,gitBranchOperationsVirtualFile:()=>vd,openLegitFs:()=>O2,openLegitFsWithMemoryFs:()=>CP});function gx(){if(zm)return ws;zm=!0,ws.byteLength=u,ws.toByteArray=c,ws.fromByteArray=y;for(var o=[],i=[],f=typeof Uint8Array<"u"?Uint8Array:Array,g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,n=g.length;a<n;++a)o[a]=g[a],i[g.charCodeAt(a)]=a;i[45]=62,i[95]=63;function r(w){var _=w.length;if(_%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var S=w.indexOf("=");S===-1&&(S=_);var T=S===_?0:4-S%4;return[S,T]}l(r,"i"),e(r,"getLens");function u(w){var _=r(w),S=_[0],T=_[1];return(S+T)*3/4-T}l(u,"f"),e(u,"byteLength");function p(w,_,S){return(_+S)*3/4-S}l(p,"h"),e(p,"_byteLength");function c(w){var _,S=r(w),T=S[0],k=S[1],E=new f(p(w,T,k)),j=0,A=k>0?T-4:T,I;for(I=0;I<A;I+=4)_=i[w.charCodeAt(I)]<<18|i[w.charCodeAt(I+1)]<<12|i[w.charCodeAt(I+2)]<<6|i[w.charCodeAt(I+3)],E[j++]=_>>16&255,E[j++]=_>>8&255,E[j++]=_&255;return k===2&&(_=i[w.charCodeAt(I)]<<2|i[w.charCodeAt(I+1)]>>4,E[j++]=_&255),k===1&&(_=i[w.charCodeAt(I)]<<10|i[w.charCodeAt(I+1)]<<4|i[w.charCodeAt(I+2)]>>2,E[j++]=_>>8&255,E[j++]=_&255),E}l(c,"c"),e(c,"toByteArray");function d(w){return o[w>>18&63]+o[w>>12&63]+o[w>>6&63]+o[w&63]}l(d,"d"),e(d,"tripletToBase64");function m(w,_,S){for(var T,k=[],E=_;E<S;E+=3)T=(w[E]<<16&16711680)+(w[E+1]<<8&65280)+(w[E+2]&255),k.push(d(T));return k.join("")}l(m,"y"),e(m,"encodeChunk");function y(w){for(var _,S=w.length,T=S%3,k=[],E=16383,j=0,A=S-T;j<A;j+=E)k.push(m(w,j,j+E>A?A:j+E));return T===1?(_=w[S-1],k.push(o[_>>2]+o[_<<4&63]+"==")):T===2&&(_=(w[S-2]<<8)+w[S-1],k.push(o[_>>10]+o[_>>4&63]+o[_<<2&63]+"=")),k.join("")}return l(y,"m"),e(y,"fromByteArray"),ws}function yx(){return Hm||(Hm=!0,Su.read=function(o,i,f,g,a){var n,r,u=a*8-g-1,p=(1<<u)-1,c=p>>1,d=-7,m=f?a-1:0,y=f?-1:1,w=o[i+m];for(m+=y,n=w&(1<<-d)-1,w>>=-d,d+=u;d>0;n=n*256+o[i+m],m+=y,d-=8);for(r=n&(1<<-d)-1,n>>=-d,d+=g;d>0;r=r*256+o[i+m],m+=y,d-=8);if(n===0)n=1-c;else{if(n===p)return r?NaN:(w?-1:1)*(1/0);r=r+Math.pow(2,g),n=n-c}return(w?-1:1)*r*Math.pow(2,n-g)},Su.write=function(o,i,f,g,a,n){var r,u,p,c=n*8-a-1,d=(1<<c)-1,m=d>>1,y=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=g?0:n-1,_=g?1:-1,S=i<0||i===0&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(u=isNaN(i)?1:0,r=d):(r=Math.floor(Math.log(i)/Math.LN2),i*(p=Math.pow(2,-r))<1&&(r--,p*=2),r+m>=1?i+=y/p:i+=y*Math.pow(2,1-m),i*p>=2&&(r++,p/=2),r+m>=d?(u=0,r=d):r+m>=1?(u=(i*p-1)*Math.pow(2,a),r=r+m):(u=i*Math.pow(2,m-1)*Math.pow(2,a),r=0));a>=8;o[f+w]=u&255,w+=_,u/=256,a-=8);for(r=r<<a|u,c+=a;c>0;o[f+w]=r&255,w+=_,r/=256,c-=8);o[f+w-_]|=S*128}),Su}function eR(){if(qm)return Ni;qm=!0;let o=gx(),i=yx(),f=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Ni.Buffer=r,Ni.SlowBuffer=k,Ni.INSPECT_MAX_BYTES=50;let g=2147483647;Ni.kMaxLength=g,r.TYPED_ARRAY_SUPPORT=a(),!r.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{let t=new Uint8Array(1),s={foo:e(function(){return 42},"foo")};return Object.setPrototypeOf(s,Uint8Array.prototype),Object.setPrototypeOf(t,s),t.foo()===42}catch{return!1}}l(a,"a"),e(a,"typedArraySupport"),Object.defineProperty(r.prototype,"parent",{enumerable:!0,get:e(function(){if(r.isBuffer(this))return this.buffer},"get")}),Object.defineProperty(r.prototype,"offset",{enumerable:!0,get:e(function(){if(r.isBuffer(this))return this.byteOffset},"get")});function n(t){if(t>g)throw new RangeError('The value "'+t+'" is invalid for option "size"');let s=new Uint8Array(t);return Object.setPrototypeOf(s,r.prototype),s}l(n,"s"),e(n,"createBuffer");function r(t,s,h){if(typeof t=="number"){if(typeof s=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(t)}return u(t,s,h)}l(r,"i"),e(r,"Buffer2"),r.poolSize=8192;function u(t,s,h){if(typeof t=="string")return m(t,s);if(ArrayBuffer.isView(t))return w(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(xe(t,ArrayBuffer)||t&&xe(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(xe(t,SharedArrayBuffer)||t&&xe(t.buffer,SharedArrayBuffer)))return _(t,s,h);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let v=t.valueOf&&t.valueOf();if(v!=null&&v!==t)return r.from(v,s,h);let R=S(t);if(R)return R;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return r.from(t[Symbol.toPrimitive]("string"),s,h);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}l(u,"f"),e(u,"from"),r.from=function(t,s,h){return u(t,s,h)},Object.setPrototypeOf(r.prototype,Uint8Array.prototype),Object.setPrototypeOf(r,Uint8Array);function p(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}l(p,"h"),e(p,"assertSize");function c(t,s,h){return p(t),t<=0?n(t):s!==void 0?typeof h=="string"?n(t).fill(s,h):n(t).fill(s):n(t)}l(c,"c"),e(c,"alloc"),r.alloc=function(t,s,h){return c(t,s,h)};function d(t){return p(t),n(t<0?0:T(t)|0)}l(d,"d"),e(d,"allocUnsafe"),r.allocUnsafe=function(t){return d(t)},r.allocUnsafeSlow=function(t){return d(t)};function m(t,s){if((typeof s!="string"||s==="")&&(s="utf8"),!r.isEncoding(s))throw new TypeError("Unknown encoding: "+s);let h=E(t,s)|0,v=n(h),R=v.write(t,s);return R!==h&&(v=v.slice(0,R)),v}l(m,"y"),e(m,"fromString");function y(t){let s=t.length<0?0:T(t.length)|0,h=n(s);for(let v=0;v<s;v+=1)h[v]=t[v]&255;return h}l(y,"m"),e(y,"fromArrayLike");function w(t){if(xe(t,Uint8Array)){let s=new Uint8Array(t);return _(s.buffer,s.byteOffset,s.byteLength)}return y(t)}l(w,"g"),e(w,"fromArrayView");function _(t,s,h){if(s<0||t.byteLength<s)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<s+(h||0))throw new RangeError('"length" is outside of buffer bounds');let v;return s===void 0&&h===void 0?v=new Uint8Array(t):h===void 0?v=new Uint8Array(t,s):v=new Uint8Array(t,s,h),Object.setPrototypeOf(v,r.prototype),v}l(_,"v"),e(_,"fromArrayBuffer");function S(t){if(r.isBuffer(t)){let s=T(t.length)|0,h=n(s);return h.length===0||t.copy(h,0,0,s),h}if(t.length!==void 0)return typeof t.length!="number"||Oe(t.length)?n(0):y(t);if(t.type==="Buffer"&&Array.isArray(t.data))return y(t.data)}l(S,"_"),e(S,"fromObject");function T(t){if(t>=g)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+g.toString(16)+" bytes");return t|0}l(T,"b"),e(T,"checked");function k(t){return+t!=t&&(t=0),r.alloc(+t)}l(k,"E"),e(k,"SlowBuffer"),r.isBuffer=e(function(t){return t!=null&&t._isBuffer===!0&&t!==r.prototype},"isBuffer"),r.compare=e(function(t,s){if(xe(t,Uint8Array)&&(t=r.from(t,t.offset,t.byteLength)),xe(s,Uint8Array)&&(s=r.from(s,s.offset,s.byteLength)),!r.isBuffer(t)||!r.isBuffer(s))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===s)return 0;let h=t.length,v=s.length;for(let R=0,P=Math.min(h,v);R<P;++R)if(t[R]!==s[R]){h=t[R],v=s[R];break}return h<v?-1:v<h?1:0},"compare"),r.isEncoding=e(function(t){switch(String(t).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}},"isEncoding"),r.concat=e(function(t,s){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return r.alloc(0);let h;if(s===void 0)for(s=0,h=0;h<t.length;++h)s+=t[h].length;let v=r.allocUnsafe(s),R=0;for(h=0;h<t.length;++h){let P=t[h];if(xe(P,Uint8Array))R+P.length>v.length?(r.isBuffer(P)||(P=r.from(P)),P.copy(v,R)):Uint8Array.prototype.set.call(v,P,R);else if(r.isBuffer(P))P.copy(v,R);else throw new TypeError('"list" argument must be an Array of Buffers');R+=P.length}return v},"concat");function E(t,s){if(r.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||xe(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);let h=t.length,v=arguments.length>2&&arguments[2]===!0;if(!v&&h===0)return 0;let R=!1;for(;;)switch(s){case"ascii":case"latin1":case"binary":return h;case"utf8":case"utf-8":return Ee(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return h*2;case"hex":return h>>>1;case"base64":return ge(t).length;default:if(R)return v?-1:Ee(t).length;s=(""+s).toLowerCase(),R=!0}}l(E,"R"),e(E,"byteLength"),r.byteLength=E;function j(t,s,h){let v=!1;if((s===void 0||s<0)&&(s=0),s>this.length||((h===void 0||h>this.length)&&(h=this.length),h<=0)||(h>>>=0,s>>>=0,h<=s))return"";for(t||(t="utf8");;)switch(t){case"hex":return se(this,s,h);case"utf8":case"utf-8":return ae(this,s,h);case"ascii":return Ie(this,s,h);case"latin1":case"binary":return je(this,s,h);case"base64":return re(this,s,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Te(this,s,h);default:if(v)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),v=!0}}l(j,"T"),e(j,"slowToString"),r.prototype._isBuffer=!0;function A(t,s,h){let v=t[s];t[s]=t[h],t[h]=v}l(A,"F"),e(A,"swap"),r.prototype.swap16=e(function(){let t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let s=0;s<t;s+=2)A(this,s,s+1);return this},"swap16"),r.prototype.swap32=e(function(){let t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let s=0;s<t;s+=4)A(this,s,s+3),A(this,s+1,s+2);return this},"swap32"),r.prototype.swap64=e(function(){let t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let s=0;s<t;s+=8)A(this,s,s+7),A(this,s+1,s+6),A(this,s+2,s+5),A(this,s+3,s+4);return this},"swap64"),r.prototype.toString=e(function(){let t=this.length;return t===0?"":arguments.length===0?ae(this,0,t):j.apply(this,arguments)},"toString"),r.prototype.toLocaleString=r.prototype.toString,r.prototype.equals=e(function(t){if(!r.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:r.compare(this,t)===0},"equals"),r.prototype.inspect=e(function(){let t="",s=Ni.INSPECT_MAX_BYTES;return t=this.toString("hex",0,s).replace(/(.{2})/g,"$1 ").trim(),this.length>s&&(t+=" ... "),"<Buffer "+t+">"},"inspect"),f&&(r.prototype[f]=r.prototype.inspect),r.prototype.compare=e(function(t,s,h,v,R){if(xe(t,Uint8Array)&&(t=r.from(t,t.offset,t.byteLength)),!r.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(s===void 0&&(s=0),h===void 0&&(h=t?t.length:0),v===void 0&&(v=0),R===void 0&&(R=this.length),s<0||h>t.length||v<0||R>this.length)throw new RangeError("out of range index");if(v>=R&&s>=h)return 0;if(v>=R)return-1;if(s>=h)return 1;if(s>>>=0,h>>>=0,v>>>=0,R>>>=0,this===t)return 0;let P=R-v,C=h-s,Z=Math.min(P,C),oe=this.slice(v,R),Ae=t.slice(s,h);for(let le=0;le<Z;++le)if(oe[le]!==Ae[le]){P=oe[le],C=Ae[le];break}return P<C?-1:C<P?1:0},"compare");function I(t,s,h,v,R){if(t.length===0)return-1;if(typeof h=="string"?(v=h,h=0):h>2147483647?h=2147483647:h<-2147483648&&(h=-2147483648),h=+h,Oe(h)&&(h=R?0:t.length-1),h<0&&(h=t.length+h),h>=t.length){if(R)return-1;h=t.length-1}else if(h<0)if(R)h=0;else return-1;if(typeof s=="string"&&(s=r.from(s,v)),r.isBuffer(s))return s.length===0?-1:U(t,s,h,v,R);if(typeof s=="number")return s=s&255,typeof Uint8Array.prototype.indexOf=="function"?R?Uint8Array.prototype.indexOf.call(t,s,h):Uint8Array.prototype.lastIndexOf.call(t,s,h):U(t,[s],h,v,R);throw new TypeError("val must be string, number or Buffer")}l(I,"S"),e(I,"bidirectionalIndexOf");function U(t,s,h,v,R){let P=1,C=t.length,Z=s.length;if(v!==void 0&&(v=String(v).toLowerCase(),v==="ucs2"||v==="ucs-2"||v==="utf16le"||v==="utf-16le")){if(t.length<2||s.length<2)return-1;P=2,C/=2,Z/=2,h/=2}function oe(le,Fe){return P===1?le[Fe]:le.readUInt16BE(Fe*P)}l(oe,"re"),e(oe,"read");let Ae;if(R){let le=-1;for(Ae=h;Ae<C;Ae++)if(oe(t,Ae)===oe(s,le===-1?0:Ae-le)){if(le===-1&&(le=Ae),Ae-le+1===Z)return le*P}else le!==-1&&(Ae-=Ae-le),le=-1}else for(h+Z>C&&(h=C-Z),Ae=h;Ae>=0;Ae--){let le=!0;for(let Fe=0;Fe<Z;Fe++)if(oe(t,Ae+Fe)!==oe(s,Fe)){le=!1;break}if(le)return Ae}return-1}l(U,"B"),e(U,"arrayIndexOf"),r.prototype.includes=e(function(t,s,h){return this.indexOf(t,s,h)!==-1},"includes"),r.prototype.indexOf=e(function(t,s,h){return I(this,t,s,h,!0)},"indexOf"),r.prototype.lastIndexOf=e(function(t,s,h){return I(this,t,s,h,!1)},"lastIndexOf");function M(t,s,h,v){h=Number(h)||0;let R=t.length-h;v?(v=Number(v),v>R&&(v=R)):v=R;let P=s.length;v>P/2&&(v=P/2);let C;for(C=0;C<v;++C){let Z=parseInt(s.substr(C*2,2),16);if(Oe(Z))return C;t[h+C]=Z}return C}l(M,"I"),e(M,"hexWrite");function ee(t,s,h,v){return Ne(Ee(s,t.length-h),t,h,v)}l(ee,"D"),e(ee,"utf8Write");function V(t,s,h,v){return Ne(ke(s),t,h,v)}l(V,"L"),e(V,"asciiWrite");function q(t,s,h,v){return Ne(ge(s),t,h,v)}l(q,"C"),e(q,"base64Write");function G(t,s,h,v){return Ne(be(s,t.length-h),t,h,v)}l(G,"j"),e(G,"ucs2Write"),r.prototype.write=e(function(t,s,h,v){if(s===void 0)v="utf8",h=this.length,s=0;else if(h===void 0&&typeof s=="string")v=s,h=this.length,s=0;else if(isFinite(s))s=s>>>0,isFinite(h)?(h=h>>>0,v===void 0&&(v="utf8")):(v=h,h=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let R=this.length-s;if((h===void 0||h>R)&&(h=R),t.length>0&&(h<0||s<0)||s>this.length)throw new RangeError("Attempt to write outside buffer bounds");v||(v="utf8");let P=!1;for(;;)switch(v){case"hex":return M(this,t,s,h);case"utf8":case"utf-8":return ee(this,t,s,h);case"ascii":case"latin1":case"binary":return V(this,t,s,h);case"base64":return q(this,t,s,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,t,s,h);default:if(P)throw new TypeError("Unknown encoding: "+v);v=(""+v).toLowerCase(),P=!0}},"write"),r.prototype.toJSON=e(function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},"toJSON");function re(t,s,h){return s===0&&h===t.length?o.fromByteArray(t):o.fromByteArray(t.slice(s,h))}l(re,"q"),e(re,"base64Slice");function ae(t,s,h){h=Math.min(t.length,h);let v=[],R=s;for(;R<h;){let P=t[R],C=null,Z=P>239?4:P>223?3:P>191?2:1;if(R+Z<=h){let oe,Ae,le,Fe;switch(Z){case 1:P<128&&(C=P);break;case 2:oe=t[R+1],(oe&192)===128&&(Fe=(P&31)<<6|oe&63,Fe>127&&(C=Fe));break;case 3:oe=t[R+1],Ae=t[R+2],(oe&192)===128&&(Ae&192)===128&&(Fe=(P&15)<<12|(oe&63)<<6|Ae&63,Fe>2047&&(Fe<55296||Fe>57343)&&(C=Fe));break;case 4:oe=t[R+1],Ae=t[R+2],le=t[R+3],(oe&192)===128&&(Ae&192)===128&&(le&192)===128&&(Fe=(P&15)<<18|(oe&63)<<12|(Ae&63)<<6|le&63,Fe>65535&&Fe<1114112&&(C=Fe))}}C===null?(C=65533,Z=1):C>65535&&(C-=65536,v.push(C>>>10&1023|55296),C=56320|C&1023),v.push(C),R+=Z}return we(v)}l(ae,"Z"),e(ae,"utf8Slice");let de=4096;function we(t){let s=t.length;if(s<=de)return String.fromCharCode.apply(String,t);let h="",v=0;for(;v<s;)h+=String.fromCharCode.apply(String,t.slice(v,v+=de));return h}l(we,"se"),e(we,"decodeCodePointsArray");function Ie(t,s,h){let v="";h=Math.min(t.length,h);for(let R=s;R<h;++R)v+=String.fromCharCode(t[R]&127);return v}l(Ie,"_e"),e(Ie,"asciiSlice");function je(t,s,h){let v="";h=Math.min(t.length,h);for(let R=s;R<h;++R)v+=String.fromCharCode(t[R]);return v}l(je,"pe"),e(je,"latin1Slice");function se(t,s,h){let v=t.length;(!s||s<0)&&(s=0),(!h||h<0||h>v)&&(h=v);let R="";for(let P=s;P<h;++P)R+=Pe[t[P]];return R}l(se,"Q"),e(se,"hexSlice");function Te(t,s,h){let v=t.slice(s,h),R="";for(let P=0;P<v.length-1;P+=2)R+=String.fromCharCode(v[P]+v[P+1]*256);return R}l(Te,"he"),e(Te,"utf16leSlice"),r.prototype.slice=e(function(t,s){let h=this.length;t=~~t,s=s===void 0?h:~~s,t<0?(t+=h,t<0&&(t=0)):t>h&&(t=h),s<0?(s+=h,s<0&&(s=0)):s>h&&(s=h),s<t&&(s=t);let v=this.subarray(t,s);return Object.setPrototypeOf(v,r.prototype),v},"slice");function J(t,s,h){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+s>h)throw new RangeError("Trying to access beyond buffer length")}l(J,"U"),e(J,"checkOffset"),r.prototype.readUintLE=r.prototype.readUIntLE=e(function(t,s,h){t=t>>>0,s=s>>>0,h||J(t,s,this.length);let v=this[t],R=1,P=0;for(;++P<s&&(R*=256);)v+=this[t+P]*R;return v},"readUIntLE"),r.prototype.readUintBE=r.prototype.readUIntBE=e(function(t,s,h){t=t>>>0,s=s>>>0,h||J(t,s,this.length);let v=this[t+--s],R=1;for(;s>0&&(R*=256);)v+=this[t+--s]*R;return v},"readUIntBE"),r.prototype.readUint8=r.prototype.readUInt8=e(function(t,s){return t=t>>>0,s||J(t,1,this.length),this[t]},"readUInt8"),r.prototype.readUint16LE=r.prototype.readUInt16LE=e(function(t,s){return t=t>>>0,s||J(t,2,this.length),this[t]|this[t+1]<<8},"readUInt16LE"),r.prototype.readUint16BE=r.prototype.readUInt16BE=e(function(t,s){return t=t>>>0,s||J(t,2,this.length),this[t]<<8|this[t+1]},"readUInt16BE"),r.prototype.readUint32LE=r.prototype.readUInt32LE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216},"readUInt32LE"),r.prototype.readUint32BE=r.prototype.readUInt32BE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])},"readUInt32BE"),r.prototype.readBigUInt64LE=$e(e(function(t){t=t>>>0,N(t,"offset");let s=this[t],h=this[t+7];(s===void 0||h===void 0)&&x(t,this.length-8);let v=s+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,R=this[++t]+this[++t]*2**8+this[++t]*2**16+h*2**24;return BigInt(v)+(BigInt(R)<<BigInt(32))},"readBigUInt64LE")),r.prototype.readBigUInt64BE=$e(e(function(t){t=t>>>0,N(t,"offset");let s=this[t],h=this[t+7];(s===void 0||h===void 0)&&x(t,this.length-8);let v=s*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],R=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+h;return(BigInt(v)<<BigInt(32))+BigInt(R)},"readBigUInt64BE")),r.prototype.readIntLE=e(function(t,s,h){t=t>>>0,s=s>>>0,h||J(t,s,this.length);let v=this[t],R=1,P=0;for(;++P<s&&(R*=256);)v+=this[t+P]*R;return R*=128,v>=R&&(v-=Math.pow(2,8*s)),v},"readIntLE"),r.prototype.readIntBE=e(function(t,s,h){t=t>>>0,s=s>>>0,h||J(t,s,this.length);let v=s,R=1,P=this[t+--v];for(;v>0&&(R*=256);)P+=this[t+--v]*R;return R*=128,P>=R&&(P-=Math.pow(2,8*s)),P},"readIntBE"),r.prototype.readInt8=e(function(t,s){return t=t>>>0,s||J(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]},"readInt8"),r.prototype.readInt16LE=e(function(t,s){t=t>>>0,s||J(t,2,this.length);let h=this[t]|this[t+1]<<8;return h&32768?h|4294901760:h},"readInt16LE"),r.prototype.readInt16BE=e(function(t,s){t=t>>>0,s||J(t,2,this.length);let h=this[t+1]|this[t]<<8;return h&32768?h|4294901760:h},"readInt16BE"),r.prototype.readInt32LE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},"readInt32LE"),r.prototype.readInt32BE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},"readInt32BE"),r.prototype.readBigInt64LE=$e(e(function(t){t=t>>>0,N(t,"offset");let s=this[t],h=this[t+7];(s===void 0||h===void 0)&&x(t,this.length-8);let v=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(h<<24);return(BigInt(v)<<BigInt(32))+BigInt(s+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24)},"readBigInt64LE")),r.prototype.readBigInt64BE=$e(e(function(t){t=t>>>0,N(t,"offset");let s=this[t],h=this[t+7];(s===void 0||h===void 0)&&x(t,this.length-8);let v=(s<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(v)<<BigInt(32))+BigInt(this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+h)},"readBigInt64BE")),r.prototype.readFloatLE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),i.read(this,t,!0,23,4)},"readFloatLE"),r.prototype.readFloatBE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),i.read(this,t,!1,23,4)},"readFloatBE"),r.prototype.readDoubleLE=e(function(t,s){return t=t>>>0,s||J(t,8,this.length),i.read(this,t,!0,52,8)},"readDoubleLE"),r.prototype.readDoubleBE=e(function(t,s){return t=t>>>0,s||J(t,8,this.length),i.read(this,t,!1,52,8)},"readDoubleBE");function ue(t,s,h,v,R,P){if(!r.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(s>R||s<P)throw new RangeError('"value" argument is out of bounds');if(h+v>t.length)throw new RangeError("Index out of range")}l(ue,"J"),e(ue,"checkInt"),r.prototype.writeUintLE=r.prototype.writeUIntLE=e(function(t,s,h,v){if(t=+t,s=s>>>0,h=h>>>0,!v){let C=Math.pow(2,8*h)-1;ue(this,t,s,h,C,0)}let R=1,P=0;for(this[s]=t&255;++P<h&&(R*=256);)this[s+P]=t/R&255;return s+h},"writeUIntLE"),r.prototype.writeUintBE=r.prototype.writeUIntBE=e(function(t,s,h,v){if(t=+t,s=s>>>0,h=h>>>0,!v){let C=Math.pow(2,8*h)-1;ue(this,t,s,h,C,0)}let R=h-1,P=1;for(this[s+R]=t&255;--R>=0&&(P*=256);)this[s+R]=t/P&255;return s+h},"writeUIntBE"),r.prototype.writeUint8=r.prototype.writeUInt8=e(function(t,s,h){return t=+t,s=s>>>0,h||ue(this,t,s,1,255,0),this[s]=t&255,s+1},"writeUInt8"),r.prototype.writeUint16LE=r.prototype.writeUInt16LE=e(function(t,s,h){return t=+t,s=s>>>0,h||ue(this,t,s,2,65535,0),this[s]=t&255,this[s+1]=t>>>8,s+2},"writeUInt16LE"),r.prototype.writeUint16BE=r.prototype.writeUInt16BE=e(function(t,s,h){return t=+t,s=s>>>0,h||ue(this,t,s,2,65535,0),this[s]=t>>>8,this[s+1]=t&255,s+2},"writeUInt16BE"),r.prototype.writeUint32LE=r.prototype.writeUInt32LE=e(function(t,s,h){return t=+t,s=s>>>0,h||ue(this,t,s,4,4294967295,0),this[s+3]=t>>>24,this[s+2]=t>>>16,this[s+1]=t>>>8,this[s]=t&255,s+4},"writeUInt32LE"),r.prototype.writeUint32BE=r.prototype.writeUInt32BE=e(function(t,s,h){return t=+t,s=s>>>0,h||ue(this,t,s,4,4294967295,0),this[s]=t>>>24,this[s+1]=t>>>16,this[s+2]=t>>>8,this[s+3]=t&255,s+4},"writeUInt32BE");function te(t,s,h,v,R){ve(s,v,R,t,h,7);let P=Number(s&BigInt(4294967295));t[h++]=P,P=P>>8,t[h++]=P,P=P>>8,t[h++]=P,P=P>>8,t[h++]=P;let C=Number(s>>BigInt(32)&BigInt(4294967295));return t[h++]=C,C=C>>8,t[h++]=C,C=C>>8,t[h++]=C,C=C>>8,t[h++]=C,h}l(te,"z"),e(te,"wrtBigUInt64LE");function X(t,s,h,v,R){ve(s,v,R,t,h,7);let P=Number(s&BigInt(4294967295));t[h+7]=P,P=P>>8,t[h+6]=P,P=P>>8,t[h+5]=P,P=P>>8,t[h+4]=P;let C=Number(s>>BigInt(32)&BigInt(4294967295));return t[h+3]=C,C=C>>8,t[h+2]=C,C=C>>8,t[h+1]=C,C=C>>8,t[h]=C,h+8}l(X,"V"),e(X,"wrtBigUInt64BE"),r.prototype.writeBigUInt64LE=$e(e(function(t,s=0){return te(this,t,s,BigInt(0),BigInt("0xffffffffffffffff"))},"writeBigUInt64LE")),r.prototype.writeBigUInt64BE=$e(e(function(t,s=0){return X(this,t,s,BigInt(0),BigInt("0xffffffffffffffff"))},"writeBigUInt64BE")),r.prototype.writeIntLE=e(function(t,s,h,v){if(t=+t,s=s>>>0,!v){let Z=Math.pow(2,8*h-1);ue(this,t,s,h,Z-1,-Z)}let R=0,P=1,C=0;for(this[s]=t&255;++R<h&&(P*=256);)t<0&&C===0&&this[s+R-1]!==0&&(C=1),this[s+R]=(t/P>>0)-C&255;return s+h},"writeIntLE"),r.prototype.writeIntBE=e(function(t,s,h,v){if(t=+t,s=s>>>0,!v){let Z=Math.pow(2,8*h-1);ue(this,t,s,h,Z-1,-Z)}let R=h-1,P=1,C=0;for(this[s+R]=t&255;--R>=0&&(P*=256);)t<0&&C===0&&this[s+R+1]!==0&&(C=1),this[s+R]=(t/P>>0)-C&255;return s+h},"writeIntBE"),r.prototype.writeInt8=e(function(t,s,h){return t=+t,s=s>>>0,h||ue(this,t,s,1,127,-128),t<0&&(t=255+t+1),this[s]=t&255,s+1},"writeInt8"),r.prototype.writeInt16LE=e(function(t,s,h){return t=+t,s=s>>>0,h||ue(this,t,s,2,32767,-32768),this[s]=t&255,this[s+1]=t>>>8,s+2},"writeInt16LE"),r.prototype.writeInt16BE=e(function(t,s,h){return t=+t,s=s>>>0,h||ue(this,t,s,2,32767,-32768),this[s]=t>>>8,this[s+1]=t&255,s+2},"writeInt16BE"),r.prototype.writeInt32LE=e(function(t,s,h){return t=+t,s=s>>>0,h||ue(this,t,s,4,2147483647,-2147483648),this[s]=t&255,this[s+1]=t>>>8,this[s+2]=t>>>16,this[s+3]=t>>>24,s+4},"writeInt32LE"),r.prototype.writeInt32BE=e(function(t,s,h){return t=+t,s=s>>>0,h||ue(this,t,s,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[s]=t>>>24,this[s+1]=t>>>16,this[s+2]=t>>>8,this[s+3]=t&255,s+4},"writeInt32BE"),r.prototype.writeBigInt64LE=$e(e(function(t,s=0){return te(this,t,s,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))},"writeBigInt64LE")),r.prototype.writeBigInt64BE=$e(e(function(t,s=0){return X(this,t,s,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))},"writeBigInt64BE"));function ye(t,s,h,v,R,P){if(h+v>t.length)throw new RangeError("Index out of range");if(h<0)throw new RangeError("Index out of range")}l(ye,"G"),e(ye,"checkIEEE754");function Re(t,s,h,v,R){return s=+s,h=h>>>0,R||ye(t,s,h,4),i.write(t,s,h,v,23,4),h+4}l(Re,"fe"),e(Re,"writeFloat"),r.prototype.writeFloatLE=e(function(t,s,h){return Re(this,t,s,!0,h)},"writeFloatLE"),r.prototype.writeFloatBE=e(function(t,s,h){return Re(this,t,s,!1,h)},"writeFloatBE");function De(t,s,h,v,R){return s=+s,h=h>>>0,R||ye(t,s,h,8),i.write(t,s,h,v,52,8),h+8}l(De,"be"),e(De,"writeDouble"),r.prototype.writeDoubleLE=e(function(t,s,h){return De(this,t,s,!0,h)},"writeDoubleLE"),r.prototype.writeDoubleBE=e(function(t,s,h){return De(this,t,s,!1,h)},"writeDoubleBE"),r.prototype.copy=e(function(t,s,h,v){if(!r.isBuffer(t))throw new TypeError("argument should be a Buffer");if(h||(h=0),!v&&v!==0&&(v=this.length),s>=t.length&&(s=t.length),s||(s=0),v>0&&v<h&&(v=h),v===h||t.length===0||this.length===0)return 0;if(s<0)throw new RangeError("targetStart out of bounds");if(h<0||h>=this.length)throw new RangeError("Index out of range");if(v<0)throw new RangeError("sourceEnd out of bounds");v>this.length&&(v=this.length),t.length-s<v-h&&(v=t.length-s+h);let R=v-h;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(s,h,v):Uint8Array.prototype.set.call(t,this.subarray(h,v),s),R},"copy"),r.prototype.fill=e(function(t,s,h,v){if(typeof t=="string"){if(typeof s=="string"?(v=s,s=0,h=this.length):typeof h=="string"&&(v=h,h=this.length),v!==void 0&&typeof v!="string")throw new TypeError("encoding must be a string");if(typeof v=="string"&&!r.isEncoding(v))throw new TypeError("Unknown encoding: "+v);if(t.length===1){let P=t.charCodeAt(0);(v==="utf8"&&P<128||v==="latin1")&&(t=P)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(s<0||this.length<s||this.length<h)throw new RangeError("Out of range index");if(h<=s)return this;s=s>>>0,h=h===void 0?this.length:h>>>0,t||(t=0);let R;if(typeof t=="number")for(R=s;R<h;++R)this[R]=t;else{let P=r.isBuffer(t)?t:r.from(t,v),C=P.length;if(C===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(R=0;R<h-s;++R)this[R+s]=P[R%C]}return this},"fill");let Y={};function H(t,s,h){var R;var v;Y[t]=(v=(R=class extends h{constructor(){super(),Object.defineProperty(this,"message",{value:s.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(C){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:C,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}},l(R,"w"),R),e(v,"NodeError"),v)}l(H,"$"),e(H,"E"),H("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),H("ERR_INVALID_ARG_TYPE",function(t,s){return`The "${t}" argument must be of type number. Received type ${typeof s}`},TypeError),H("ERR_OUT_OF_RANGE",function(t,s,h){let v=`The value of "${t}" is out of range.`,R=h;return Number.isInteger(h)&&Math.abs(h)>2**32?R=Q(String(h)):typeof h=="bigint"&&(R=String(h),(h>BigInt(2)**BigInt(32)||h<-(BigInt(2)**BigInt(32)))&&(R=Q(R)),R+="n"),v+=` It must be ${s}. Received ${R}`,v},RangeError);function Q(t){let s="",h=t.length,v=t[0]==="-"?1:0;for(;h>=v+4;h-=3)s=`_${t.slice(h-3,h)}${s}`;return`${t.slice(0,h)}${s}`}l(Q,"H"),e(Q,"addNumericalSeparator");function fe(t,s,h){N(s,"offset"),(t[s]===void 0||t[s+h]===void 0)&&x(s,t.length-(h+1))}l(fe,"te"),e(fe,"checkBounds");function ve(t,s,h,v,R,P){if(t>h||t<s){let C=typeof s=="bigint"?"n":"",Z;throw s===0||s===BigInt(0)?Z=`>= 0${C} and < 2${C} ** ${(P+1)*8}${C}`:Z=`>= -(2${C} ** ${(P+1)*8-1}${C}) and < 2 ** ${(P+1)*8-1}${C}`,new Y.ERR_OUT_OF_RANGE("value",Z,t)}fe(v,R,P)}l(ve,"oe"),e(ve,"checkIntBI");function N(t,s){if(typeof t!="number")throw new Y.ERR_INVALID_ARG_TYPE(s,"number",t)}l(N,"P"),e(N,"validateNumber");function x(t,s,h){throw Math.floor(t)!==t?(N(t,h),new Y.ERR_OUT_OF_RANGE("offset","an integer",t)):s<0?new Y.ERR_BUFFER_OUT_OF_BOUNDS:new Y.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${s}`,t)}l(x,"x"),e(x,"boundsError");let D=/[^+/0-9A-Za-z-_]/g;function z(t){if(t=t.split("=")[0],t=t.trim().replace(D,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}l(z,"Y"),e(z,"base64clean");function Ee(t,s){s=s||1/0;let h,v=t.length,R=null,P=[];for(let C=0;C<v;++C){if(h=t.charCodeAt(C),h>55295&&h<57344){if(!R){if(h>56319){(s-=3)>-1&&P.push(239,191,189);continue}else if(C+1===v){(s-=3)>-1&&P.push(239,191,189);continue}R=h;continue}if(h<56320){(s-=3)>-1&&P.push(239,191,189),R=h;continue}h=(R-55296<<10|h-56320)+65536}else R&&(s-=3)>-1&&P.push(239,191,189);if(R=null,h<128){if((s-=1)<0)break;P.push(h)}else if(h<2048){if((s-=2)<0)break;P.push(h>>6|192,h&63|128)}else if(h<65536){if((s-=3)<0)break;P.push(h>>12|224,h>>6&63|128,h&63|128)}else if(h<1114112){if((s-=4)<0)break;P.push(h>>18|240,h>>12&63|128,h>>6&63|128,h&63|128)}else throw new Error("Invalid code point")}return P}l(Ee,"ue"),e(Ee,"utf8ToBytes");function ke(t){let s=[];for(let h=0;h<t.length;++h)s.push(t.charCodeAt(h)&255);return s}l(ke,"le"),e(ke,"asciiToBytes");function be(t,s){let h,v,R,P=[];for(let C=0;C<t.length&&!((s-=2)<0);++C)h=t.charCodeAt(C),v=h>>8,R=h%256,P.push(R),P.push(v);return P}l(be,"ee"),e(be,"utf16leToBytes");function ge(t){return o.toByteArray(z(t))}l(ge,"ie"),e(ge,"base64ToBytes");function Ne(t,s,h,v){let R;for(R=0;R<v&&!(R+h>=s.length||R>=t.length);++R)s[R+h]=t[R];return R}l(Ne,"me"),e(Ne,"blitBuffer");function xe(t,s){return t instanceof s||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===s.name}l(xe,"ye"),e(xe,"isInstance");function Oe(t){return t!==t}l(Oe,"ve"),e(Oe,"numberIsNaN");let Pe=function(){let t="0123456789abcdef",s=new Array(256);for(let h=0;h<16;++h){let v=h*16;for(let R=0;R<16;++R)s[v+R]=t[h]+t[R]}return s}();function $e(t){return typeof BigInt>"u"?Ke:t}l($e,"Be"),e($e,"defineBigIntMethod");function Ke(){throw new Error("BigInt not supported")}return l(Ke,"Xe"),e(Ke,"BufferBigIntNotDefined"),Ni}function vx(){if(Gm)return bs;Gm=!0,bs.byteLength=u,bs.toByteArray=c,bs.fromByteArray=y;for(var o=[],i=[],f=typeof Uint8Array<"u"?Uint8Array:Array,g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,n=g.length;a<n;++a)o[a]=g[a],i[g.charCodeAt(a)]=a;i[45]=62,i[95]=63;function r(w){var _=w.length;if(_%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var S=w.indexOf("=");S===-1&&(S=_);var T=S===_?0:4-S%4;return[S,T]}l(r,"i"),e(r,"getLens");function u(w){var _=r(w),S=_[0],T=_[1];return(S+T)*3/4-T}l(u,"f"),e(u,"byteLength");function p(w,_,S){return(_+S)*3/4-S}l(p,"h"),e(p,"_byteLength");function c(w){var _,S=r(w),T=S[0],k=S[1],E=new f(p(w,T,k)),j=0,A=k>0?T-4:T,I;for(I=0;I<A;I+=4)_=i[w.charCodeAt(I)]<<18|i[w.charCodeAt(I+1)]<<12|i[w.charCodeAt(I+2)]<<6|i[w.charCodeAt(I+3)],E[j++]=_>>16&255,E[j++]=_>>8&255,E[j++]=_&255;return k===2&&(_=i[w.charCodeAt(I)]<<2|i[w.charCodeAt(I+1)]>>4,E[j++]=_&255),k===1&&(_=i[w.charCodeAt(I)]<<10|i[w.charCodeAt(I+1)]<<4|i[w.charCodeAt(I+2)]>>2,E[j++]=_>>8&255,E[j++]=_&255),E}l(c,"c"),e(c,"toByteArray");function d(w){return o[w>>18&63]+o[w>>12&63]+o[w>>6&63]+o[w&63]}l(d,"d"),e(d,"tripletToBase64");function m(w,_,S){for(var T,k=[],E=_;E<S;E+=3)T=(w[E]<<16&16711680)+(w[E+1]<<8&65280)+(w[E+2]&255),k.push(d(T));return k.join("")}l(m,"y"),e(m,"encodeChunk");function y(w){for(var _,S=w.length,T=S%3,k=[],E=16383,j=0,A=S-T;j<A;j+=E)k.push(m(w,j,j+E>A?A:j+E));return T===1?(_=w[S-1],k.push(o[_>>2]+o[_<<4&63]+"==")):T===2&&(_=(w[S-2]<<8)+w[S-1],k.push(o[_>>10]+o[_>>4&63]+o[_<<2&63]+"=")),k.join("")}return l(y,"m"),e(y,"fromByteArray"),bs}function _x(){return Vm||(Vm=!0,Au.read=function(o,i,f,g,a){var n,r,u=a*8-g-1,p=(1<<u)-1,c=p>>1,d=-7,m=f?a-1:0,y=f?-1:1,w=o[i+m];for(m+=y,n=w&(1<<-d)-1,w>>=-d,d+=u;d>0;n=n*256+o[i+m],m+=y,d-=8);for(r=n&(1<<-d)-1,n>>=-d,d+=g;d>0;r=r*256+o[i+m],m+=y,d-=8);if(n===0)n=1-c;else{if(n===p)return r?NaN:(w?-1:1)*(1/0);r=r+Math.pow(2,g),n=n-c}return(w?-1:1)*r*Math.pow(2,n-g)},Au.write=function(o,i,f,g,a,n){var r,u,p,c=n*8-a-1,d=(1<<c)-1,m=d>>1,y=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=g?0:n-1,_=g?1:-1,S=i<0||i===0&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(u=isNaN(i)?1:0,r=d):(r=Math.floor(Math.log(i)/Math.LN2),i*(p=Math.pow(2,-r))<1&&(r--,p*=2),r+m>=1?i+=y/p:i+=y*Math.pow(2,1-m),i*p>=2&&(r++,p/=2),r+m>=d?(u=0,r=d):r+m>=1?(u=(i*p-1)*Math.pow(2,a),r=r+m):(u=i*Math.pow(2,m-1)*Math.pow(2,a),r=0));a>=8;o[f+w]=u&255,w+=_,u/=256,a-=8);for(r=r<<a|u,c+=a;c>0;o[f+w]=r&255,w+=_,r/=256,c-=8);o[f+w-_]|=S*128}),Au}function tR(){if(Km)return Di;Km=!0;let o=vx(),i=_x(),f=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Di.Buffer=r,Di.SlowBuffer=k,Di.INSPECT_MAX_BYTES=50;let g=2147483647;Di.kMaxLength=g,r.TYPED_ARRAY_SUPPORT=a(),!r.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{let t=new Uint8Array(1),s={foo:e(function(){return 42},"foo")};return Object.setPrototypeOf(s,Uint8Array.prototype),Object.setPrototypeOf(t,s),t.foo()===42}catch{return!1}}l(a,"a"),e(a,"typedArraySupport"),Object.defineProperty(r.prototype,"parent",{enumerable:!0,get:e(function(){if(r.isBuffer(this))return this.buffer},"get")}),Object.defineProperty(r.prototype,"offset",{enumerable:!0,get:e(function(){if(r.isBuffer(this))return this.byteOffset},"get")});function n(t){if(t>g)throw new RangeError('The value "'+t+'" is invalid for option "size"');let s=new Uint8Array(t);return Object.setPrototypeOf(s,r.prototype),s}l(n,"s"),e(n,"createBuffer");function r(t,s,h){if(typeof t=="number"){if(typeof s=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(t)}return u(t,s,h)}l(r,"i"),e(r,"Buffer2"),r.poolSize=8192;function u(t,s,h){if(typeof t=="string")return m(t,s);if(ArrayBuffer.isView(t))return w(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(xe(t,ArrayBuffer)||t&&xe(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(xe(t,SharedArrayBuffer)||t&&xe(t.buffer,SharedArrayBuffer)))return _(t,s,h);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let v=t.valueOf&&t.valueOf();if(v!=null&&v!==t)return r.from(v,s,h);let R=S(t);if(R)return R;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return r.from(t[Symbol.toPrimitive]("string"),s,h);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}l(u,"f"),e(u,"from"),r.from=function(t,s,h){return u(t,s,h)},Object.setPrototypeOf(r.prototype,Uint8Array.prototype),Object.setPrototypeOf(r,Uint8Array);function p(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}l(p,"h"),e(p,"assertSize");function c(t,s,h){return p(t),t<=0?n(t):s!==void 0?typeof h=="string"?n(t).fill(s,h):n(t).fill(s):n(t)}l(c,"c"),e(c,"alloc"),r.alloc=function(t,s,h){return c(t,s,h)};function d(t){return p(t),n(t<0?0:T(t)|0)}l(d,"d"),e(d,"allocUnsafe"),r.allocUnsafe=function(t){return d(t)},r.allocUnsafeSlow=function(t){return d(t)};function m(t,s){if((typeof s!="string"||s==="")&&(s="utf8"),!r.isEncoding(s))throw new TypeError("Unknown encoding: "+s);let h=E(t,s)|0,v=n(h),R=v.write(t,s);return R!==h&&(v=v.slice(0,R)),v}l(m,"y"),e(m,"fromString");function y(t){let s=t.length<0?0:T(t.length)|0,h=n(s);for(let v=0;v<s;v+=1)h[v]=t[v]&255;return h}l(y,"m"),e(y,"fromArrayLike");function w(t){if(xe(t,Uint8Array)){let s=new Uint8Array(t);return _(s.buffer,s.byteOffset,s.byteLength)}return y(t)}l(w,"g"),e(w,"fromArrayView");function _(t,s,h){if(s<0||t.byteLength<s)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<s+(h||0))throw new RangeError('"length" is outside of buffer bounds');let v;return s===void 0&&h===void 0?v=new Uint8Array(t):h===void 0?v=new Uint8Array(t,s):v=new Uint8Array(t,s,h),Object.setPrototypeOf(v,r.prototype),v}l(_,"v"),e(_,"fromArrayBuffer");function S(t){if(r.isBuffer(t)){let s=T(t.length)|0,h=n(s);return h.length===0||t.copy(h,0,0,s),h}if(t.length!==void 0)return typeof t.length!="number"||Oe(t.length)?n(0):y(t);if(t.type==="Buffer"&&Array.isArray(t.data))return y(t.data)}l(S,"_"),e(S,"fromObject");function T(t){if(t>=g)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+g.toString(16)+" bytes");return t|0}l(T,"b"),e(T,"checked");function k(t){return+t!=t&&(t=0),r.alloc(+t)}l(k,"E"),e(k,"SlowBuffer"),r.isBuffer=e(function(t){return t!=null&&t._isBuffer===!0&&t!==r.prototype},"isBuffer"),r.compare=e(function(t,s){if(xe(t,Uint8Array)&&(t=r.from(t,t.offset,t.byteLength)),xe(s,Uint8Array)&&(s=r.from(s,s.offset,s.byteLength)),!r.isBuffer(t)||!r.isBuffer(s))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===s)return 0;let h=t.length,v=s.length;for(let R=0,P=Math.min(h,v);R<P;++R)if(t[R]!==s[R]){h=t[R],v=s[R];break}return h<v?-1:v<h?1:0},"compare"),r.isEncoding=e(function(t){switch(String(t).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}},"isEncoding"),r.concat=e(function(t,s){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return r.alloc(0);let h;if(s===void 0)for(s=0,h=0;h<t.length;++h)s+=t[h].length;let v=r.allocUnsafe(s),R=0;for(h=0;h<t.length;++h){let P=t[h];if(xe(P,Uint8Array))R+P.length>v.length?(r.isBuffer(P)||(P=r.from(P)),P.copy(v,R)):Uint8Array.prototype.set.call(v,P,R);else if(r.isBuffer(P))P.copy(v,R);else throw new TypeError('"list" argument must be an Array of Buffers');R+=P.length}return v},"concat");function E(t,s){if(r.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||xe(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);let h=t.length,v=arguments.length>2&&arguments[2]===!0;if(!v&&h===0)return 0;let R=!1;for(;;)switch(s){case"ascii":case"latin1":case"binary":return h;case"utf8":case"utf-8":return Ee(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return h*2;case"hex":return h>>>1;case"base64":return ge(t).length;default:if(R)return v?-1:Ee(t).length;s=(""+s).toLowerCase(),R=!0}}l(E,"R"),e(E,"byteLength"),r.byteLength=E;function j(t,s,h){let v=!1;if((s===void 0||s<0)&&(s=0),s>this.length||((h===void 0||h>this.length)&&(h=this.length),h<=0)||(h>>>=0,s>>>=0,h<=s))return"";for(t||(t="utf8");;)switch(t){case"hex":return se(this,s,h);case"utf8":case"utf-8":return ae(this,s,h);case"ascii":return Ie(this,s,h);case"latin1":case"binary":return je(this,s,h);case"base64":return re(this,s,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Te(this,s,h);default:if(v)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),v=!0}}l(j,"T"),e(j,"slowToString"),r.prototype._isBuffer=!0;function A(t,s,h){let v=t[s];t[s]=t[h],t[h]=v}l(A,"F"),e(A,"swap"),r.prototype.swap16=e(function(){let t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let s=0;s<t;s+=2)A(this,s,s+1);return this},"swap16"),r.prototype.swap32=e(function(){let t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let s=0;s<t;s+=4)A(this,s,s+3),A(this,s+1,s+2);return this},"swap32"),r.prototype.swap64=e(function(){let t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let s=0;s<t;s+=8)A(this,s,s+7),A(this,s+1,s+6),A(this,s+2,s+5),A(this,s+3,s+4);return this},"swap64"),r.prototype.toString=e(function(){let t=this.length;return t===0?"":arguments.length===0?ae(this,0,t):j.apply(this,arguments)},"toString"),r.prototype.toLocaleString=r.prototype.toString,r.prototype.equals=e(function(t){if(!r.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:r.compare(this,t)===0},"equals"),r.prototype.inspect=e(function(){let t="",s=Di.INSPECT_MAX_BYTES;return t=this.toString("hex",0,s).replace(/(.{2})/g,"$1 ").trim(),this.length>s&&(t+=" ... "),"<Buffer "+t+">"},"inspect"),f&&(r.prototype[f]=r.prototype.inspect),r.prototype.compare=e(function(t,s,h,v,R){if(xe(t,Uint8Array)&&(t=r.from(t,t.offset,t.byteLength)),!r.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(s===void 0&&(s=0),h===void 0&&(h=t?t.length:0),v===void 0&&(v=0),R===void 0&&(R=this.length),s<0||h>t.length||v<0||R>this.length)throw new RangeError("out of range index");if(v>=R&&s>=h)return 0;if(v>=R)return-1;if(s>=h)return 1;if(s>>>=0,h>>>=0,v>>>=0,R>>>=0,this===t)return 0;let P=R-v,C=h-s,Z=Math.min(P,C),oe=this.slice(v,R),Ae=t.slice(s,h);for(let le=0;le<Z;++le)if(oe[le]!==Ae[le]){P=oe[le],C=Ae[le];break}return P<C?-1:C<P?1:0},"compare");function I(t,s,h,v,R){if(t.length===0)return-1;if(typeof h=="string"?(v=h,h=0):h>2147483647?h=2147483647:h<-2147483648&&(h=-2147483648),h=+h,Oe(h)&&(h=R?0:t.length-1),h<0&&(h=t.length+h),h>=t.length){if(R)return-1;h=t.length-1}else if(h<0)if(R)h=0;else return-1;if(typeof s=="string"&&(s=r.from(s,v)),r.isBuffer(s))return s.length===0?-1:U(t,s,h,v,R);if(typeof s=="number")return s=s&255,typeof Uint8Array.prototype.indexOf=="function"?R?Uint8Array.prototype.indexOf.call(t,s,h):Uint8Array.prototype.lastIndexOf.call(t,s,h):U(t,[s],h,v,R);throw new TypeError("val must be string, number or Buffer")}l(I,"S"),e(I,"bidirectionalIndexOf");function U(t,s,h,v,R){let P=1,C=t.length,Z=s.length;if(v!==void 0&&(v=String(v).toLowerCase(),v==="ucs2"||v==="ucs-2"||v==="utf16le"||v==="utf-16le")){if(t.length<2||s.length<2)return-1;P=2,C/=2,Z/=2,h/=2}function oe(le,Fe){return P===1?le[Fe]:le.readUInt16BE(Fe*P)}l(oe,"re"),e(oe,"read");let Ae;if(R){let le=-1;for(Ae=h;Ae<C;Ae++)if(oe(t,Ae)===oe(s,le===-1?0:Ae-le)){if(le===-1&&(le=Ae),Ae-le+1===Z)return le*P}else le!==-1&&(Ae-=Ae-le),le=-1}else for(h+Z>C&&(h=C-Z),Ae=h;Ae>=0;Ae--){let le=!0;for(let Fe=0;Fe<Z;Fe++)if(oe(t,Ae+Fe)!==oe(s,Fe)){le=!1;break}if(le)return Ae}return-1}l(U,"B"),e(U,"arrayIndexOf"),r.prototype.includes=e(function(t,s,h){return this.indexOf(t,s,h)!==-1},"includes"),r.prototype.indexOf=e(function(t,s,h){return I(this,t,s,h,!0)},"indexOf"),r.prototype.lastIndexOf=e(function(t,s,h){return I(this,t,s,h,!1)},"lastIndexOf");function M(t,s,h,v){h=Number(h)||0;let R=t.length-h;v?(v=Number(v),v>R&&(v=R)):v=R;let P=s.length;v>P/2&&(v=P/2);let C;for(C=0;C<v;++C){let Z=parseInt(s.substr(C*2,2),16);if(Oe(Z))return C;t[h+C]=Z}return C}l(M,"I"),e(M,"hexWrite");function ee(t,s,h,v){return Ne(Ee(s,t.length-h),t,h,v)}l(ee,"D"),e(ee,"utf8Write");function V(t,s,h,v){return Ne(ke(s),t,h,v)}l(V,"L"),e(V,"asciiWrite");function q(t,s,h,v){return Ne(ge(s),t,h,v)}l(q,"C"),e(q,"base64Write");function G(t,s,h,v){return Ne(be(s,t.length-h),t,h,v)}l(G,"j"),e(G,"ucs2Write"),r.prototype.write=e(function(t,s,h,v){if(s===void 0)v="utf8",h=this.length,s=0;else if(h===void 0&&typeof s=="string")v=s,h=this.length,s=0;else if(isFinite(s))s=s>>>0,isFinite(h)?(h=h>>>0,v===void 0&&(v="utf8")):(v=h,h=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let R=this.length-s;if((h===void 0||h>R)&&(h=R),t.length>0&&(h<0||s<0)||s>this.length)throw new RangeError("Attempt to write outside buffer bounds");v||(v="utf8");let P=!1;for(;;)switch(v){case"hex":return M(this,t,s,h);case"utf8":case"utf-8":return ee(this,t,s,h);case"ascii":case"latin1":case"binary":return V(this,t,s,h);case"base64":return q(this,t,s,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,t,s,h);default:if(P)throw new TypeError("Unknown encoding: "+v);v=(""+v).toLowerCase(),P=!0}},"write"),r.prototype.toJSON=e(function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},"toJSON");function re(t,s,h){return s===0&&h===t.length?o.fromByteArray(t):o.fromByteArray(t.slice(s,h))}l(re,"q"),e(re,"base64Slice");function ae(t,s,h){h=Math.min(t.length,h);let v=[],R=s;for(;R<h;){let P=t[R],C=null,Z=P>239?4:P>223?3:P>191?2:1;if(R+Z<=h){let oe,Ae,le,Fe;switch(Z){case 1:P<128&&(C=P);break;case 2:oe=t[R+1],(oe&192)===128&&(Fe=(P&31)<<6|oe&63,Fe>127&&(C=Fe));break;case 3:oe=t[R+1],Ae=t[R+2],(oe&192)===128&&(Ae&192)===128&&(Fe=(P&15)<<12|(oe&63)<<6|Ae&63,Fe>2047&&(Fe<55296||Fe>57343)&&(C=Fe));break;case 4:oe=t[R+1],Ae=t[R+2],le=t[R+3],(oe&192)===128&&(Ae&192)===128&&(le&192)===128&&(Fe=(P&15)<<18|(oe&63)<<12|(Ae&63)<<6|le&63,Fe>65535&&Fe<1114112&&(C=Fe))}}C===null?(C=65533,Z=1):C>65535&&(C-=65536,v.push(C>>>10&1023|55296),C=56320|C&1023),v.push(C),R+=Z}return we(v)}l(ae,"Z"),e(ae,"utf8Slice");let de=4096;function we(t){let s=t.length;if(s<=de)return String.fromCharCode.apply(String,t);let h="",v=0;for(;v<s;)h+=String.fromCharCode.apply(String,t.slice(v,v+=de));return h}l(we,"se"),e(we,"decodeCodePointsArray");function Ie(t,s,h){let v="";h=Math.min(t.length,h);for(let R=s;R<h;++R)v+=String.fromCharCode(t[R]&127);return v}l(Ie,"_e"),e(Ie,"asciiSlice");function je(t,s,h){let v="";h=Math.min(t.length,h);for(let R=s;R<h;++R)v+=String.fromCharCode(t[R]);return v}l(je,"pe"),e(je,"latin1Slice");function se(t,s,h){let v=t.length;(!s||s<0)&&(s=0),(!h||h<0||h>v)&&(h=v);let R="";for(let P=s;P<h;++P)R+=Pe[t[P]];return R}l(se,"Q"),e(se,"hexSlice");function Te(t,s,h){let v=t.slice(s,h),R="";for(let P=0;P<v.length-1;P+=2)R+=String.fromCharCode(v[P]+v[P+1]*256);return R}l(Te,"he"),e(Te,"utf16leSlice"),r.prototype.slice=e(function(t,s){let h=this.length;t=~~t,s=s===void 0?h:~~s,t<0?(t+=h,t<0&&(t=0)):t>h&&(t=h),s<0?(s+=h,s<0&&(s=0)):s>h&&(s=h),s<t&&(s=t);let v=this.subarray(t,s);return Object.setPrototypeOf(v,r.prototype),v},"slice");function J(t,s,h){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+s>h)throw new RangeError("Trying to access beyond buffer length")}l(J,"U"),e(J,"checkOffset"),r.prototype.readUintLE=r.prototype.readUIntLE=e(function(t,s,h){t=t>>>0,s=s>>>0,h||J(t,s,this.length);let v=this[t],R=1,P=0;for(;++P<s&&(R*=256);)v+=this[t+P]*R;return v},"readUIntLE"),r.prototype.readUintBE=r.prototype.readUIntBE=e(function(t,s,h){t=t>>>0,s=s>>>0,h||J(t,s,this.length);let v=this[t+--s],R=1;for(;s>0&&(R*=256);)v+=this[t+--s]*R;return v},"readUIntBE"),r.prototype.readUint8=r.prototype.readUInt8=e(function(t,s){return t=t>>>0,s||J(t,1,this.length),this[t]},"readUInt8"),r.prototype.readUint16LE=r.prototype.readUInt16LE=e(function(t,s){return t=t>>>0,s||J(t,2,this.length),this[t]|this[t+1]<<8},"readUInt16LE"),r.prototype.readUint16BE=r.prototype.readUInt16BE=e(function(t,s){return t=t>>>0,s||J(t,2,this.length),this[t]<<8|this[t+1]},"readUInt16BE"),r.prototype.readUint32LE=r.prototype.readUInt32LE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216},"readUInt32LE"),r.prototype.readUint32BE=r.prototype.readUInt32BE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])},"readUInt32BE"),r.prototype.readBigUInt64LE=$e(e(function(t){t=t>>>0,N(t,"offset");let s=this[t],h=this[t+7];(s===void 0||h===void 0)&&x(t,this.length-8);let v=s+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,R=this[++t]+this[++t]*2**8+this[++t]*2**16+h*2**24;return BigInt(v)+(BigInt(R)<<BigInt(32))},"readBigUInt64LE")),r.prototype.readBigUInt64BE=$e(e(function(t){t=t>>>0,N(t,"offset");let s=this[t],h=this[t+7];(s===void 0||h===void 0)&&x(t,this.length-8);let v=s*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],R=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+h;return(BigInt(v)<<BigInt(32))+BigInt(R)},"readBigUInt64BE")),r.prototype.readIntLE=e(function(t,s,h){t=t>>>0,s=s>>>0,h||J(t,s,this.length);let v=this[t],R=1,P=0;for(;++P<s&&(R*=256);)v+=this[t+P]*R;return R*=128,v>=R&&(v-=Math.pow(2,8*s)),v},"readIntLE"),r.prototype.readIntBE=e(function(t,s,h){t=t>>>0,s=s>>>0,h||J(t,s,this.length);let v=s,R=1,P=this[t+--v];for(;v>0&&(R*=256);)P+=this[t+--v]*R;return R*=128,P>=R&&(P-=Math.pow(2,8*s)),P},"readIntBE"),r.prototype.readInt8=e(function(t,s){return t=t>>>0,s||J(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]},"readInt8"),r.prototype.readInt16LE=e(function(t,s){t=t>>>0,s||J(t,2,this.length);let h=this[t]|this[t+1]<<8;return h&32768?h|4294901760:h},"readInt16LE"),r.prototype.readInt16BE=e(function(t,s){t=t>>>0,s||J(t,2,this.length);let h=this[t+1]|this[t]<<8;return h&32768?h|4294901760:h},"readInt16BE"),r.prototype.readInt32LE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},"readInt32LE"),r.prototype.readInt32BE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},"readInt32BE"),r.prototype.readBigInt64LE=$e(e(function(t){t=t>>>0,N(t,"offset");let s=this[t],h=this[t+7];(s===void 0||h===void 0)&&x(t,this.length-8);let v=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(h<<24);return(BigInt(v)<<BigInt(32))+BigInt(s+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24)},"readBigInt64LE")),r.prototype.readBigInt64BE=$e(e(function(t){t=t>>>0,N(t,"offset");let s=this[t],h=this[t+7];(s===void 0||h===void 0)&&x(t,this.length-8);let v=(s<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(v)<<BigInt(32))+BigInt(this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+h)},"readBigInt64BE")),r.prototype.readFloatLE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),i.read(this,t,!0,23,4)},"readFloatLE"),r.prototype.readFloatBE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),i.read(this,t,!1,23,4)},"readFloatBE"),r.prototype.readDoubleLE=e(function(t,s){return t=t>>>0,s||J(t,8,this.length),i.read(this,t,!0,52,8)},"readDoubleLE"),r.prototype.readDoubleBE=e(function(t,s){return t=t>>>0,s||J(t,8,this.length),i.read(this,t,!1,52,8)},"readDoubleBE");function ue(t,s,h,v,R,P){if(!r.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(s>R||s<P)throw new RangeError('"value" argument is out of bounds');if(h+v>t.length)throw new RangeError("Index out of range")}l(ue,"J"),e(ue,"checkInt"),r.prototype.writeUintLE=r.prototype.writeUIntLE=e(function(t,s,h,v){if(t=+t,s=s>>>0,h=h>>>0,!v){let C=Math.pow(2,8*h)-1;ue(this,t,s,h,C,0)}let R=1,P=0;for(this[s]=t&255;++P<h&&(R*=256);)this[s+P]=t/R&255;return s+h},"writeUIntLE"),r.prototype.writeUintBE=r.prototype.writeUIntBE=e(function(t,s,h,v){if(t=+t,s=s>>>0,h=h>>>0,!v){let C=Math.pow(2,8*h)-1;ue(this,t,s,h,C,0)}let R=h-1,P=1;for(this[s+R]=t&255;--R>=0&&(P*=256);)this[s+R]=t/P&255;return s+h},"writeUIntBE"),r.prototype.writeUint8=r.prototype.writeUInt8=e(function(t,s,h){return t=+t,s=s>>>0,h||ue(this,t,s,1,255,0),this[s]=t&255,s+1},"writeUInt8"),r.prototype.writeUint16LE=r.prototype.writeUInt16LE=e(function(t,s,h){return t=+t,s=s>>>0,h||ue(this,t,s,2,65535,0),this[s]=t&255,this[s+1]=t>>>8,s+2},"writeUInt16LE"),r.prototype.writeUint16BE=r.prototype.writeUInt16BE=e(function(t,s,h){return t=+t,s=s>>>0,h||ue(this,t,s,2,65535,0),this[s]=t>>>8,this[s+1]=t&255,s+2},"writeUInt16BE"),r.prototype.writeUint32LE=r.prototype.writeUInt32LE=e(function(t,s,h){return t=+t,s=s>>>0,h||ue(this,t,s,4,4294967295,0),this[s+3]=t>>>24,this[s+2]=t>>>16,this[s+1]=t>>>8,this[s]=t&255,s+4},"writeUInt32LE"),r.prototype.writeUint32BE=r.prototype.writeUInt32BE=e(function(t,s,h){return t=+t,s=s>>>0,h||ue(this,t,s,4,4294967295,0),this[s]=t>>>24,this[s+1]=t>>>16,this[s+2]=t>>>8,this[s+3]=t&255,s+4},"writeUInt32BE");function te(t,s,h,v,R){ve(s,v,R,t,h,7);let P=Number(s&BigInt(4294967295));t[h++]=P,P=P>>8,t[h++]=P,P=P>>8,t[h++]=P,P=P>>8,t[h++]=P;let C=Number(s>>BigInt(32)&BigInt(4294967295));return t[h++]=C,C=C>>8,t[h++]=C,C=C>>8,t[h++]=C,C=C>>8,t[h++]=C,h}l(te,"z"),e(te,"wrtBigUInt64LE");function X(t,s,h,v,R){ve(s,v,R,t,h,7);let P=Number(s&BigInt(4294967295));t[h+7]=P,P=P>>8,t[h+6]=P,P=P>>8,t[h+5]=P,P=P>>8,t[h+4]=P;let C=Number(s>>BigInt(32)&BigInt(4294967295));return t[h+3]=C,C=C>>8,t[h+2]=C,C=C>>8,t[h+1]=C,C=C>>8,t[h]=C,h+8}l(X,"V"),e(X,"wrtBigUInt64BE"),r.prototype.writeBigUInt64LE=$e(e(function(t,s=0){return te(this,t,s,BigInt(0),BigInt("0xffffffffffffffff"))},"writeBigUInt64LE")),r.prototype.writeBigUInt64BE=$e(e(function(t,s=0){return X(this,t,s,BigInt(0),BigInt("0xffffffffffffffff"))},"writeBigUInt64BE")),r.prototype.writeIntLE=e(function(t,s,h,v){if(t=+t,s=s>>>0,!v){let Z=Math.pow(2,8*h-1);ue(this,t,s,h,Z-1,-Z)}let R=0,P=1,C=0;for(this[s]=t&255;++R<h&&(P*=256);)t<0&&C===0&&this[s+R-1]!==0&&(C=1),this[s+R]=(t/P>>0)-C&255;return s+h},"writeIntLE"),r.prototype.writeIntBE=e(function(t,s,h,v){if(t=+t,s=s>>>0,!v){let Z=Math.pow(2,8*h-1);ue(this,t,s,h,Z-1,-Z)}let R=h-1,P=1,C=0;for(this[s+R]=t&255;--R>=0&&(P*=256);)t<0&&C===0&&this[s+R+1]!==0&&(C=1),this[s+R]=(t/P>>0)-C&255;return s+h},"writeIntBE"),r.prototype.writeInt8=e(function(t,s,h){return t=+t,s=s>>>0,h||ue(this,t,s,1,127,-128),t<0&&(t=255+t+1),this[s]=t&255,s+1},"writeInt8"),r.prototype.writeInt16LE=e(function(t,s,h){return t=+t,s=s>>>0,h||ue(this,t,s,2,32767,-32768),this[s]=t&255,this[s+1]=t>>>8,s+2},"writeInt16LE"),r.prototype.writeInt16BE=e(function(t,s,h){return t=+t,s=s>>>0,h||ue(this,t,s,2,32767,-32768),this[s]=t>>>8,this[s+1]=t&255,s+2},"writeInt16BE"),r.prototype.writeInt32LE=e(function(t,s,h){return t=+t,s=s>>>0,h||ue(this,t,s,4,2147483647,-2147483648),this[s]=t&255,this[s+1]=t>>>8,this[s+2]=t>>>16,this[s+3]=t>>>24,s+4},"writeInt32LE"),r.prototype.writeInt32BE=e(function(t,s,h){return t=+t,s=s>>>0,h||ue(this,t,s,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[s]=t>>>24,this[s+1]=t>>>16,this[s+2]=t>>>8,this[s+3]=t&255,s+4},"writeInt32BE"),r.prototype.writeBigInt64LE=$e(e(function(t,s=0){return te(this,t,s,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))},"writeBigInt64LE")),r.prototype.writeBigInt64BE=$e(e(function(t,s=0){return X(this,t,s,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))},"writeBigInt64BE"));function ye(t,s,h,v,R,P){if(h+v>t.length)throw new RangeError("Index out of range");if(h<0)throw new RangeError("Index out of range")}l(ye,"G"),e(ye,"checkIEEE754");function Re(t,s,h,v,R){return s=+s,h=h>>>0,R||ye(t,s,h,4),i.write(t,s,h,v,23,4),h+4}l(Re,"fe"),e(Re,"writeFloat"),r.prototype.writeFloatLE=e(function(t,s,h){return Re(this,t,s,!0,h)},"writeFloatLE"),r.prototype.writeFloatBE=e(function(t,s,h){return Re(this,t,s,!1,h)},"writeFloatBE");function De(t,s,h,v,R){return s=+s,h=h>>>0,R||ye(t,s,h,8),i.write(t,s,h,v,52,8),h+8}l(De,"be"),e(De,"writeDouble"),r.prototype.writeDoubleLE=e(function(t,s,h){return De(this,t,s,!0,h)},"writeDoubleLE"),r.prototype.writeDoubleBE=e(function(t,s,h){return De(this,t,s,!1,h)},"writeDoubleBE"),r.prototype.copy=e(function(t,s,h,v){if(!r.isBuffer(t))throw new TypeError("argument should be a Buffer");if(h||(h=0),!v&&v!==0&&(v=this.length),s>=t.length&&(s=t.length),s||(s=0),v>0&&v<h&&(v=h),v===h||t.length===0||this.length===0)return 0;if(s<0)throw new RangeError("targetStart out of bounds");if(h<0||h>=this.length)throw new RangeError("Index out of range");if(v<0)throw new RangeError("sourceEnd out of bounds");v>this.length&&(v=this.length),t.length-s<v-h&&(v=t.length-s+h);let R=v-h;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(s,h,v):Uint8Array.prototype.set.call(t,this.subarray(h,v),s),R},"copy"),r.prototype.fill=e(function(t,s,h,v){if(typeof t=="string"){if(typeof s=="string"?(v=s,s=0,h=this.length):typeof h=="string"&&(v=h,h=this.length),v!==void 0&&typeof v!="string")throw new TypeError("encoding must be a string");if(typeof v=="string"&&!r.isEncoding(v))throw new TypeError("Unknown encoding: "+v);if(t.length===1){let P=t.charCodeAt(0);(v==="utf8"&&P<128||v==="latin1")&&(t=P)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(s<0||this.length<s||this.length<h)throw new RangeError("Out of range index");if(h<=s)return this;s=s>>>0,h=h===void 0?this.length:h>>>0,t||(t=0);let R;if(typeof t=="number")for(R=s;R<h;++R)this[R]=t;else{let P=r.isBuffer(t)?t:r.from(t,v),C=P.length;if(C===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(R=0;R<h-s;++R)this[R+s]=P[R%C]}return this},"fill");let Y={};function H(t,s,h){var R;var v;Y[t]=(v=(R=class extends h{constructor(){super(),Object.defineProperty(this,"message",{value:s.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(C){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:C,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}},l(R,"w"),R),e(v,"NodeError"),v)}l(H,"$"),e(H,"E"),H("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),H("ERR_INVALID_ARG_TYPE",function(t,s){return`The "${t}" argument must be of type number. Received type ${typeof s}`},TypeError),H("ERR_OUT_OF_RANGE",function(t,s,h){let v=`The value of "${t}" is out of range.`,R=h;return Number.isInteger(h)&&Math.abs(h)>2**32?R=Q(String(h)):typeof h=="bigint"&&(R=String(h),(h>BigInt(2)**BigInt(32)||h<-(BigInt(2)**BigInt(32)))&&(R=Q(R)),R+="n"),v+=` It must be ${s}. Received ${R}`,v},RangeError);function Q(t){let s="",h=t.length,v=t[0]==="-"?1:0;for(;h>=v+4;h-=3)s=`_${t.slice(h-3,h)}${s}`;return`${t.slice(0,h)}${s}`}l(Q,"H"),e(Q,"addNumericalSeparator");function fe(t,s,h){N(s,"offset"),(t[s]===void 0||t[s+h]===void 0)&&x(s,t.length-(h+1))}l(fe,"te"),e(fe,"checkBounds");function ve(t,s,h,v,R,P){if(t>h||t<s){let C=typeof s=="bigint"?"n":"",Z;throw s===0||s===BigInt(0)?Z=`>= 0${C} and < 2${C} ** ${(P+1)*8}${C}`:Z=`>= -(2${C} ** ${(P+1)*8-1}${C}) and < 2 ** ${(P+1)*8-1}${C}`,new Y.ERR_OUT_OF_RANGE("value",Z,t)}fe(v,R,P)}l(ve,"oe"),e(ve,"checkIntBI");function N(t,s){if(typeof t!="number")throw new Y.ERR_INVALID_ARG_TYPE(s,"number",t)}l(N,"P"),e(N,"validateNumber");function x(t,s,h){throw Math.floor(t)!==t?(N(t,h),new Y.ERR_OUT_OF_RANGE("offset","an integer",t)):s<0?new Y.ERR_BUFFER_OUT_OF_BOUNDS:new Y.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${s}`,t)}l(x,"x"),e(x,"boundsError");let D=/[^+/0-9A-Za-z-_]/g;function z(t){if(t=t.split("=")[0],t=t.trim().replace(D,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}l(z,"Y"),e(z,"base64clean");function Ee(t,s){s=s||1/0;let h,v=t.length,R=null,P=[];for(let C=0;C<v;++C){if(h=t.charCodeAt(C),h>55295&&h<57344){if(!R){if(h>56319){(s-=3)>-1&&P.push(239,191,189);continue}else if(C+1===v){(s-=3)>-1&&P.push(239,191,189);continue}R=h;continue}if(h<56320){(s-=3)>-1&&P.push(239,191,189),R=h;continue}h=(R-55296<<10|h-56320)+65536}else R&&(s-=3)>-1&&P.push(239,191,189);if(R=null,h<128){if((s-=1)<0)break;P.push(h)}else if(h<2048){if((s-=2)<0)break;P.push(h>>6|192,h&63|128)}else if(h<65536){if((s-=3)<0)break;P.push(h>>12|224,h>>6&63|128,h&63|128)}else if(h<1114112){if((s-=4)<0)break;P.push(h>>18|240,h>>12&63|128,h>>6&63|128,h&63|128)}else throw new Error("Invalid code point")}return P}l(Ee,"ue"),e(Ee,"utf8ToBytes");function ke(t){let s=[];for(let h=0;h<t.length;++h)s.push(t.charCodeAt(h)&255);return s}l(ke,"le"),e(ke,"asciiToBytes");function be(t,s){let h,v,R,P=[];for(let C=0;C<t.length&&!((s-=2)<0);++C)h=t.charCodeAt(C),v=h>>8,R=h%256,P.push(R),P.push(v);return P}l(be,"ee"),e(be,"utf16leToBytes");function ge(t){return o.toByteArray(z(t))}l(ge,"ie"),e(ge,"base64ToBytes");function Ne(t,s,h,v){let R;for(R=0;R<v&&!(R+h>=s.length||R>=t.length);++R)s[R+h]=t[R];return R}l(Ne,"me"),e(Ne,"blitBuffer");function xe(t,s){return t instanceof s||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===s.name}l(xe,"ye"),e(xe,"isInstance");function Oe(t){return t!==t}l(Oe,"ve"),e(Oe,"numberIsNaN");let Pe=function(){let t="0123456789abcdef",s=new Array(256);for(let h=0;h<16;++h){let v=h*16;for(let R=0;R<16;++R)s[v+R]=t[h]+t[R]}return s}();function $e(t){return typeof BigInt>"u"?Ke:t}l($e,"Be"),e($e,"defineBigIntMethod");function Ke(){throw new Error("BigInt not supported")}return l(Ke,"Xe"),e(Ke,"BufferBigIntNotDefined"),Di}function ed(o){throw new Error("Node.js process "+o+" is not supported by JSPM core outside of Node.js")}function Ox(){!ga||!oa||(ga=!1,oa.length?jn=oa.concat(jn):zl=-1,jn.length&&AE())}function AE(){if(!ga){var o=setTimeout(Ox,0);ga=!0;for(var i=jn.length;i;){for(oa=jn,jn=[];++zl<i;)oa&&oa[zl].run();zl=-1,i=jn.length}oa=null,ga=!1,clearTimeout(o)}}function rR(o){var i=new Array(arguments.length-1);if(arguments.length>1)for(var f=1;f<arguments.length;f++)i[f-1]=arguments[f];jn.push(new Jm(o,i)),jn.length===1&&!ga&&setTimeout(AE,0)}function Jm(o,i){this.fun=o,this.array=i}function mr(){}function nR(o){ed("_linkedBinding")}function iR(o){ed("dlopen")}function oR(){return[]}function aR(){return[]}function sR(o,i){if(!o)throw new Error(i||"assertion error")}function lR(){return!1}function fR(){return fi.now()/1e3}function Xf(o){var i=Math.floor((Date.now()-fi.now())*.001),f=fi.now()*.001,g=Math.floor(f)+i,a=Math.floor(f%1*1e9);return o&&(g=g-o[0],a=a-o[1],a<0&&(g--,a+=Ru)),[g,a]}function Zn(){return RE}function uR(o){return[]}function cR(){if(Ym)return ku;Ym=!0;var o=RE;function i(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}l(i,"t"),e(i,"assertPath");function f(n,r){for(var u="",p=0,c=-1,d=0,m,y=0;y<=n.length;++y){if(y<n.length)m=n.charCodeAt(y);else{if(m===47)break;m=47}if(m===47){if(!(c===y-1||d===1))if(c!==y-1&&d===2){if(u.length<2||p!==2||u.charCodeAt(u.length-1)!==46||u.charCodeAt(u.length-2)!==46){if(u.length>2){var w=u.lastIndexOf("/");if(w!==u.length-1){w===-1?(u="",p=0):(u=u.slice(0,w),p=u.length-1-u.lastIndexOf("/")),c=y,d=0;continue}}else if(u.length===2||u.length===1){u="",p=0,c=y,d=0;continue}}r&&(u.length>0?u+="/..":u="..",p=2)}else u.length>0?u+="/"+n.slice(c+1,y):u=n.slice(c+1,y),p=y-c-1;c=y,d=0}else m===46&&d!==-1?++d:d=-1}return u}l(f,"r"),e(f,"normalizeStringPosix");function g(n,r){var u=r.dir||r.root,p=r.base||(r.name||"")+(r.ext||"");return u?u===r.root?u+p:u+n+p:p}l(g,"n"),e(g,"_format");var a={resolve:e(function(){for(var n="",r=!1,u,p=arguments.length-1;p>=-1&&!r;p--){var c;p>=0?c=arguments[p]:(u===void 0&&(u=o.cwd()),c=u),i(c),c.length!==0&&(n=c+"/"+n,r=c.charCodeAt(0)===47)}return n=f(n,!r),r?n.length>0?"/"+n:"/":n.length>0?n:"."},"resolve2"),normalize:e(function(n){if(i(n),n.length===0)return".";var r=n.charCodeAt(0)===47,u=n.charCodeAt(n.length-1)===47;return n=f(n,!r),n.length===0&&!r&&(n="."),n.length>0&&u&&(n+="/"),r?"/"+n:n},"normalize2"),isAbsolute:e(function(n){return i(n),n.length>0&&n.charCodeAt(0)===47},"isAbsolute2"),join:e(function(){if(arguments.length===0)return".";for(var n,r=0;r<arguments.length;++r){var u=arguments[r];i(u),u.length>0&&(n===void 0?n=u:n+="/"+u)}return n===void 0?".":a.normalize(n)},"join2"),relative:e(function(n,r){if(i(n),i(r),n===r||(n=a.resolve(n),r=a.resolve(r),n===r))return"";for(var u=1;u<n.length&&n.charCodeAt(u)===47;++u);for(var p=n.length,c=p-u,d=1;d<r.length&&r.charCodeAt(d)===47;++d);for(var m=r.length,y=m-d,w=c<y?c:y,_=-1,S=0;S<=w;++S){if(S===w){if(y>w){if(r.charCodeAt(d+S)===47)return r.slice(d+S+1);if(S===0)return r.slice(d+S)}else c>w&&(n.charCodeAt(u+S)===47?_=S:S===0&&(_=0));break}var T=n.charCodeAt(u+S),k=r.charCodeAt(d+S);if(T!==k)break;T===47&&(_=S)}var E="";for(S=u+_+1;S<=p;++S)(S===p||n.charCodeAt(S)===47)&&(E.length===0?E+="..":E+="/..");return E.length>0?E+r.slice(d+_):(d+=_,r.charCodeAt(d)===47&&++d,r.slice(d))},"relative2"),_makeLong:e(function(n){return n},"_makeLong2"),dirname:e(function(n){if(i(n),n.length===0)return".";for(var r=n.charCodeAt(0),u=r===47,p=-1,c=!0,d=n.length-1;d>=1;--d)if(r=n.charCodeAt(d),r===47){if(!c){p=d;break}}else c=!1;return p===-1?u?"/":".":u&&p===1?"//":n.slice(0,p)},"dirname2"),basename:e(function(n,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');i(n);var u=0,p=-1,c=!0,d;if(r!==void 0&&r.length>0&&r.length<=n.length){if(r.length===n.length&&r===n)return"";var m=r.length-1,y=-1;for(d=n.length-1;d>=0;--d){var w=n.charCodeAt(d);if(w===47){if(!c){u=d+1;break}}else y===-1&&(c=!1,y=d+1),m>=0&&(w===r.charCodeAt(m)?--m===-1&&(p=d):(m=-1,p=y))}return u===p?p=y:p===-1&&(p=n.length),n.slice(u,p)}else{for(d=n.length-1;d>=0;--d)if(n.charCodeAt(d)===47){if(!c){u=d+1;break}}else p===-1&&(c=!1,p=d+1);return p===-1?"":n.slice(u,p)}},"basename2"),extname:e(function(n){i(n);for(var r=-1,u=0,p=-1,c=!0,d=0,m=n.length-1;m>=0;--m){var y=n.charCodeAt(m);if(y===47){if(!c){u=m+1;break}continue}p===-1&&(c=!1,p=m+1),y===46?r===-1?r=m:d!==1&&(d=1):r!==-1&&(d=-1)}return r===-1||p===-1||d===0||d===1&&r===p-1&&r===u+1?"":n.slice(r,p)},"extname2"),format:e(function(n){if(n===null||typeof n!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof n);return g("/",n)},"format2"),parse:e(function(n){i(n);var r={root:"",dir:"",base:"",ext:"",name:""};if(n.length===0)return r;var u=n.charCodeAt(0),p=u===47,c;p?(r.root="/",c=1):c=0;for(var d=-1,m=0,y=-1,w=!0,_=n.length-1,S=0;_>=c;--_){if(u=n.charCodeAt(_),u===47){if(!w){m=_+1;break}continue}y===-1&&(w=!1,y=_+1),u===46?d===-1?d=_:S!==1&&(S=1):d!==-1&&(S=-1)}return d===-1||y===-1||S===0||S===1&&d===y-1&&d===m+1?y!==-1&&(m===0&&p?r.base=r.name=n.slice(1,y):r.base=r.name=n.slice(m,y)):(m===0&&p?(r.name=n.slice(1,d),r.base=n.slice(1,y)):(r.name=n.slice(m,d),r.base=n.slice(m,y)),r.ext=n.slice(d,y)),m>0?r.dir=n.slice(0,m-1):p&&(r.dir="/"),r},"parse2"),sep:"/",delimiter:":",win32:null,posix:null};return a.posix=a,ku=a,ku}function Zm(o,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");Ou(o,i);function f(){this.constructor=o}l(f,"r"),e(f,"__"),o.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}function Qm(o,i){var f={};for(var g in o)Object.prototype.hasOwnProperty.call(o,g)&&i.indexOf(g)<0&&(f[g]=o[g]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,g=Object.getOwnPropertySymbols(o);a<g.length;a++)i.indexOf(g[a])<0&&Object.prototype.propertyIsEnumerable.call(o,g[a])&&(f[g[a]]=o[g[a]]);return f}function Xm(o,i,f,g){var a=arguments.length,n=a<3?i:g===null?g=Object.getOwnPropertyDescriptor(i,f):g,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,i,f,g);else for(var u=o.length-1;u>=0;u--)(r=o[u])&&(n=(a<3?r(n):a>3?r(i,f,n):r(i,f))||n);return a>3&&n&&Object.defineProperty(i,f,n),n}function e0(o,i){return function(f,g){i(f,g,o)}}function t0(o,i,f,g,a,n){function r(k){if(k!==void 0&&typeof k!="function")throw new TypeError("Function expected");return k}l(r,"i"),e(r,"accept");for(var u=g.kind,p=u==="getter"?"get":u==="setter"?"set":"value",c=!i&&o?g.static?o:o.prototype:null,d=i||(c?Object.getOwnPropertyDescriptor(c,g.name):{}),m,y=!1,w=f.length-1;w>=0;w--){var _={};for(var S in g)_[S]=S==="access"?{}:g[S];for(var S in g.access)_.access[S]=g.access[S];_.addInitializer=function(k){if(y)throw new TypeError("Cannot add initializers after decoration has completed");n.push(r(k||null))};var T=(0,f[w])(u==="accessor"?{get:d.get,set:d.set}:d[p],_);if(u==="accessor"){if(T===void 0)continue;if(T===null||typeof T!="object")throw new TypeError("Object expected");(m=r(T.get))&&(d.get=m),(m=r(T.set))&&(d.set=m),(m=r(T.init))&&a.unshift(m)}else(m=r(T))&&(u==="field"?a.unshift(m):d[p]=m)}c&&Object.defineProperty(c,g.name,d),y=!0}function r0(o,i,f){for(var g=arguments.length>2,a=0;a<i.length;a++)f=g?i[a].call(o,f):i[a].call(o);return g?f:void 0}function n0(o){return typeof o=="symbol"?o:"".concat(o)}function i0(o,i,f){return typeof i=="symbol"&&(i=i.description?"[".concat(i.description,"]"):""),Object.defineProperty(o,"name",{configurable:!0,value:f?"".concat(f," ",i):i})}function o0(o,i){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,i)}function a0(o,i,f,g){function a(n){return n instanceof f?n:new f(function(r){r(n)})}return l(a,"a"),e(a,"adopt"),new(f||(f=Promise))(function(n,r){function u(d){try{c(g.next(d))}catch(m){r(m)}}l(u,"f"),e(u,"fulfilled");function p(d){try{c(g.throw(d))}catch(m){r(m)}}l(p,"h"),e(p,"rejected");function c(d){d.done?n(d.value):a(d.value).then(u,p)}l(c,"c"),e(c,"step"),c((g=g.apply(o,i||[])).next())})}function s0(o,i){var f={label:0,sent:e(function(){if(n[0]&1)throw n[1];return n[1]},"sent"),trys:[],ops:[]},g,a,n,r=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return r.next=u(0),r.throw=u(1),r.return=u(2),typeof Symbol=="function"&&(r[Symbol.iterator]=function(){return this}),r;function u(c){return function(d){return p([c,d])}}function p(c){if(g)throw new TypeError("Generator is already executing.");for(;r&&(r=0,c[0]&&(f=0)),f;)try{if(g=1,a&&(n=c[0]&2?a.return:c[0]?a.throw||((n=a.return)&&n.call(a),0):a.next)&&!(n=n.call(a,c[1])).done)return n;switch(a=0,n&&(c=[c[0]&2,n.value]),c[0]){case 0:case 1:n=c;break;case 4:return f.label++,{value:c[1],done:!1};case 5:f.label++,a=c[1],c=[0];continue;case 7:c=f.ops.pop(),f.trys.pop();continue;default:if(n=f.trys,!(n=n.length>0&&n[n.length-1])&&(c[0]===6||c[0]===2)){f=0;continue}if(c[0]===3&&(!n||c[1]>n[0]&&c[1]<n[3])){f.label=c[1];break}if(c[0]===6&&f.label<n[1]){f.label=n[1],n=c;break}if(n&&f.label<n[2]){f.label=n[2],f.ops.push(c);break}n[2]&&f.ops.pop(),f.trys.pop();continue}c=i.call(o,f)}catch(d){c=[6,d],a=0}finally{g=n=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function l0(o,i){for(var f in o)f!=="default"&&!Object.prototype.hasOwnProperty.call(i,f)&&df(i,o,f)}function hf(o){var i=typeof Symbol=="function"&&Symbol.iterator,f=i&&o[i],g=0;if(f)return f.call(o);if(o&&typeof o.length=="number")return{next:e(function(){return o&&g>=o.length&&(o=void 0),{value:o&&o[g++],done:!o}},"next")};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}function td(o,i){var f=typeof Symbol=="function"&&o[Symbol.iterator];if(!f)return o;var g=f.call(o),a,n=[],r;try{for(;(i===void 0||i-- >0)&&!(a=g.next()).done;)n.push(a.value)}catch(u){r={error:u}}finally{try{a&&!a.done&&(f=g.return)&&f.call(g)}finally{if(r)throw r.error}}return n}function f0(){for(var o=[],i=0;i<arguments.length;i++)o=o.concat(td(arguments[i]));return o}function u0(){for(var o=0,i=0,f=arguments.length;i<f;i++)o+=arguments[i].length;for(var g=Array(o),a=0,i=0;i<f;i++)for(var n=arguments[i],r=0,u=n.length;r<u;r++,a++)g[a]=n[r];return g}function c0(o,i,f){if(f||arguments.length===2)for(var g=0,a=i.length,n;g<a;g++)(n||!(g in i))&&(n||(n=Array.prototype.slice.call(i,0,g)),n[g]=i[g]);return o.concat(n||Array.prototype.slice.call(i))}function ka(o){return this instanceof ka?(this.v=o,this):new ka(o)}function h0(o,i,f){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var g=f.apply(o,i||[]),a,n=[];return a=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),u("next"),u("throw"),u("return",r),a[Symbol.asyncIterator]=function(){return this},a;function r(w){return function(_){return Promise.resolve(_).then(w,m)}}function u(w,_){g[w]&&(a[w]=function(S){return new Promise(function(T,k){n.push([w,S,T,k])>1||p(w,S)})},_&&(a[w]=_(a[w])))}function p(w,_){try{c(g[w](_))}catch(S){y(n[0][3],S)}}function c(w){w.value instanceof ka?Promise.resolve(w.value.v).then(d,m):y(n[0][2],w)}function d(w){p("next",w)}function m(w){p("throw",w)}function y(w,_){w(_),n.shift(),n.length&&p(n[0][0],n[0][1])}}function d0(o){var i,f;return i={},g("next"),g("throw",function(a){throw a}),g("return"),i[Symbol.iterator]=function(){return this},i;function g(a,n){i[a]=o[a]?function(r){return(f=!f)?{value:ka(o[a](r)),done:!1}:n?n(r):r}:n}}function p0(o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=o[Symbol.asyncIterator],f;return i?i.call(o):(o=typeof hf=="function"?hf(o):o[Symbol.iterator](),f={},g("next"),g("throw"),g("return"),f[Symbol.asyncIterator]=function(){return this},f);function g(n){f[n]=o[n]&&function(r){return new Promise(function(u,p){r=o[n](r),a(u,p,r.done,r.value)})}}function a(n,r,u,p){Promise.resolve(p).then(function(c){n({value:c,done:u})},r)}}function g0(o,i){return Object.defineProperty?Object.defineProperty(o,"raw",{value:i}):o.raw=i,o}function y0(o){if(o&&o.__esModule)return o;var i={};if(o!=null)for(var f=Tu(o),g=0;g<f.length;g++)f[g]!=="default"&&df(i,o,f[g]);return Hx(i,o),i}function m0(o){return o&&o.__esModule?o:{default:o}}function w0(o,i,f,g){if(f==="a"&&!g)throw new TypeError("Private accessor was defined without a getter");if(typeof i=="function"?o!==i||!g:!i.has(o))throw new TypeError("Cannot read private member from an object whose class did not declare it");return f==="m"?g:f==="a"?g.call(o):g?g.value:i.get(o)}function b0(o,i,f,g,a){if(g==="m")throw new TypeError("Private method is not writable");if(g==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof i=="function"?o!==i||!a:!i.has(o))throw new TypeError("Cannot write private member to an object whose class did not declare it");return g==="a"?a.call(o,f):a?a.value=f:i.set(o,f),f}function v0(o,i){if(i===null||typeof i!="object"&&typeof i!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof o=="function"?i===o:o.has(i)}function _0(o,i,f){if(i!=null){if(typeof i!="object"&&typeof i!="function")throw new TypeError("Object expected.");var g,a;if(f){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");g=i[Symbol.asyncDispose]}if(g===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");g=i[Symbol.dispose],f&&(a=g)}if(typeof g!="function")throw new TypeError("Object not disposable.");a&&(g=e(function(){try{a.call(this)}catch(n){return Promise.reject(n)}},"dispose")),o.stack.push({value:i,dispose:g,async:f})}else f&&o.stack.push({async:!0});return i}function E0(o){function i(n){o.error=o.hasError?new qx(n,o.error,"An error was suppressed during disposal."):n,o.hasError=!0}l(i,"t"),e(i,"fail");var f,g=0;function a(){for(;f=o.stack.pop();)try{if(!f.async&&g===1)return g=0,o.stack.push(f),Promise.resolve().then(a);if(f.dispose){var n=f.dispose.call(f.value);if(f.async)return g|=2,Promise.resolve(n).then(a,function(r){return i(r),a()})}else g|=1}catch(r){i(r)}if(g===1)return o.hasError?Promise.reject(o.error):Promise.resolve();if(o.hasError)throw o.error}return l(a,"a"),e(a,"next"),a()}function S0(o,i){return typeof o=="string"&&/^\.\.?\//.test(o)?o.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(f,g,a,n,r){return g?i?".jsx":".js":a&&(!n||!r)?f:a+n+"."+r.toLowerCase()+"js"}):o}function rd(o){throw new Error("Node.js process "+o+" is not supported by JSPM core outside of Node.js")}function Yx(){!ya||!aa||(ya=!1,aa.length?Cn=aa.concat(Cn):Hl=-1,Cn.length&&OE())}function OE(){if(!ya){var o=setTimeout(Yx,0);ya=!0;for(var i=Cn.length;i;){for(aa=Cn,Cn=[];++Hl<i;)aa&&aa[Hl].run();Hl=-1,i=Cn.length}aa=null,ya=!1,clearTimeout(o)}}function A0(o){var i=new Array(arguments.length-1);if(arguments.length>1)for(var f=1;f<arguments.length;f++)i[f-1]=arguments[f];Cn.push(new R0(o,i)),Cn.length===1&&!ya&&setTimeout(OE,0)}function R0(o,i){this.fun=o,this.array=i}function wr(){}function k0(o){rd("_linkedBinding")}function O0(o){rd("dlopen")}function T0(){return[]}function F0(){return[]}function B0(o,i){if(!o)throw new Error(i||"assertion error")}function I0(){return!1}function x0(){return ui.now()/1e3}function Fl(o){var i=Math.floor((Date.now()-ui.now())*.001),f=ui.now()*.001,g=Math.floor(f)+i,a=Math.floor(f%1*1e9);return o&&(g=g-o[0],a=a-o[1],a<0&&(g--,a+=Fu)),[g,a]}function Tn(){return Zx}function j0(o){return[]}function gk(){if($w)return Bu;$w=!0;let o=2147483647,i=36,f=1,g=26,a=38,n=700,r=72,u=128,p="-",c=/^xn--/,d=/[^\0-\x7F]/,m=/[\x2E\u3002\uFF0E\uFF61]/g,y={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},w=i-f,_=Math.floor,S=String.fromCharCode;function T(q){throw new RangeError(y[q])}l(T,"b"),e(T,"error");function k(q,G){let re=[],ae=q.length;for(;ae--;)re[ae]=G(q[ae]);return re}l(k,"E"),e(k,"map");function E(q,G){let re=q.split("@"),ae="";re.length>1&&(ae=re[0]+"@",q=re[1]),q=q.replace(m,".");let de=q.split("."),we=k(de,G).join(".");return ae+we}l(E,"R"),e(E,"mapDomain");function j(q){let G=[],re=0,ae=q.length;for(;re<ae;){let de=q.charCodeAt(re++);if(de>=55296&&de<=56319&&re<ae){let we=q.charCodeAt(re++);(we&64512)==56320?G.push(((de&1023)<<10)+(we&1023)+65536):(G.push(de),re--)}else G.push(de)}return G}l(j,"T"),e(j,"ucs2decode");let A=e(q=>String.fromCodePoint(...q),"ucs2encode"),I=e(function(q){return q>=48&&q<58?26+(q-48):q>=65&&q<91?q-65:q>=97&&q<123?q-97:i},"basicToDigit"),U=e(function(q,G){return q+22+75*(q<26)-((G!=0)<<5)},"digitToBasic"),M=e(function(q,G,re){let ae=0;for(q=re?_(q/n):q>>1,q+=_(q/G);q>w*g>>1;ae+=i)q=_(q/w);return _(ae+(w+1)*q/(q+a))},"adapt"),ee=e(function(q){let G=[],re=q.length,ae=0,de=u,we=r,Ie=q.lastIndexOf(p);Ie<0&&(Ie=0);for(let je=0;je<Ie;++je)q.charCodeAt(je)>=128&&T("not-basic"),G.push(q.charCodeAt(je));for(let je=Ie>0?Ie+1:0;je<re;){let se=ae;for(let J=1,ue=i;;ue+=i){je>=re&&T("invalid-input");let te=I(q.charCodeAt(je++));te>=i&&T("invalid-input"),te>_((o-ae)/J)&&T("overflow"),ae+=te*J;let X=ue<=we?f:ue>=we+g?g:ue-we;if(te<X)break;let ye=i-X;J>_(o/ye)&&T("overflow"),J*=ye}let Te=G.length+1;we=M(ae-se,Te,se==0),_(ae/Te)>o-de&&T("overflow"),de+=_(ae/Te),ae%=Te,G.splice(ae++,0,de)}return String.fromCodePoint(...G)},"decode2"),V=e(function(q){let G=[];q=j(q);let re=q.length,ae=u,de=0,we=r;for(let se of q)se<128&&G.push(S(se));let Ie=G.length,je=Ie;for(Ie&&G.push(p);je<re;){let se=o;for(let J of q)J>=ae&&J<se&&(se=J);let Te=je+1;se-ae>_((o-de)/Te)&&T("overflow"),de+=(se-ae)*Te,ae=se;for(let J of q)if(J<ae&&++de>o&&T("overflow"),J===ae){let ue=de;for(let te=i;;te+=i){let X=te<=we?f:te>=we+g?g:te-we;if(ue<X)break;let ye=ue-X,Re=i-X;G.push(S(U(X+ye%Re,0))),ue=_(ye/Re)}G.push(S(U(ue,0))),we=M(de,Te,je===Ie),de=0,++je}++de,++ae}return G.join("")},"encode2");return Bu={version:"2.3.1",ucs2:{decode:j,encode:A},decode:ee,encode:V,toASCII:e(function(q){return E(q,function(G){return d.test(G)?"xn--"+V(G):G})},"toASCII2"),toUnicode:e(function(q){return E(q,function(G){return c.test(G)?ee(G.slice(4).toLowerCase()):G})},"toUnicode2")},Bu}function n6(){return zw||(zw=!0,Ww=e(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var o={},i=Symbol("test"),f=Object(i);if(typeof i=="string"||Object.prototype.toString.call(i)!=="[object Symbol]"||Object.prototype.toString.call(f)!=="[object Symbol]")return!1;var g=42;o[i]=g;for(i in o)return!1;if(typeof Object.keys=="function"&&Object.keys(o).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(o).length!==0)return!1;var a=Object.getOwnPropertySymbols(o);if(a.length!==1||a[0]!==i||!Object.prototype.propertyIsEnumerable.call(o,i))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var n=Object.getOwnPropertyDescriptor(o,i);if(n.value!==g||n.enumerable!==!0)return!1}return!0},"hasSymbols")),Ww}function i6(){return qw||(qw=!0,Hw=Error),Hw}function o6(){return Vw||(Vw=!0,Gw=EvalError),Gw}function a6(){return Jw||(Jw=!0,Kw=RangeError),Kw}function s6(){return Zw||(Zw=!0,Yw=ReferenceError),Yw}function BE(){return Xw||(Xw=!0,Qw=SyntaxError),Qw}function Ys(){return tb||(tb=!0,eb=TypeError),eb}function l6(){return nb||(nb=!0,rb=URIError),rb}function f6(){if(ib)return Iu;ib=!0;var o=typeof Symbol<"u"&&Symbol,i=n6();return Iu=e(function(){return typeof o!="function"||typeof Symbol!="function"||typeof o("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:i()},"hasNativeSymbols"),Iu}function u6(){if(ob)return xu;ob=!0;var o={__proto__:null,foo:{}},i=Object;return xu=e(function(){return{__proto__:o}.foo===o.foo&&!(o instanceof i)},"hasProto"),xu}function c6(){if(ab)return ju;ab=!0;var o="Function.prototype.bind called on incompatible ",i=Object.prototype.toString,f=Math.max,g="[object Function]",a=e(function(u,p){for(var c=[],d=0;d<u.length;d+=1)c[d]=u[d];for(var m=0;m<p.length;m+=1)c[m+u.length]=p[m];return c},"concatty2"),n=e(function(u,p){for(var c=[],d=p,m=0;d<u.length;d+=1,m+=1)c[m]=u[d];return c},"slicy2"),r=e(function(u,p){for(var c="",d=0;d<u.length;d+=1)c+=u[d],d+1<u.length&&(c+=p);return c},"joiny");return ju=e(function(u){var p=this;if(typeof p!="function"||i.apply(p)!==g)throw new TypeError(o+p);for(var c=n(arguments,1),d,m=e(function(){if(this instanceof d){var T=p.apply(this,a(c,arguments));return Object(T)===T?T:this}return p.apply(u,a(c,arguments))},"binder"),y=f(0,p.length-c.length),w=[],_=0;_<y;_++)w[_]="$"+_;if(d=Function("binder","return function ("+r(w,",")+"){ return binder.apply(this,arguments); }")(m),p.prototype){var S=e(function(){},"Empty2");S.prototype=p.prototype,d.prototype=new S,S.prototype=null}return d},"bind"),ju}function Sd(){if(sb)return Cu;sb=!0;var o=c6();return Cu=Function.prototype.bind||o,Cu}function h6(){if(lb)return Pu;lb=!0;var o=Function.prototype.call,i=Object.prototype.hasOwnProperty,f=Sd();return Pu=f.call(o,i),Pu}function Ia(){if(fb)return Lu;fb=!0;var o,i=i6(),f=o6(),g=a6(),a=s6(),n=BE(),r=Ys(),u=l6(),p=Function,c=e(function(je){try{return p('"use strict"; return ('+je+").constructor;")()}catch{}},"getEvalledConstructor"),d=Object.getOwnPropertyDescriptor;if(d)try{d({},"")}catch{d=null}var m=e(function(){throw new r},"throwTypeError"),y=d?function(){try{return arguments.callee,m}catch{try{return d(arguments,"callee").get}catch{return m}}}():m,w=f6()(),_=u6()(),S=Object.getPrototypeOf||(_?function(je){return je.__proto__}:null),T={},k=typeof Uint8Array>"u"||!S?o:S(Uint8Array),E={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?o:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?o:ArrayBuffer,"%ArrayIteratorPrototype%":w&&S?S([][Symbol.iterator]()):o,"%AsyncFromSyncIteratorPrototype%":o,"%AsyncFunction%":T,"%AsyncGenerator%":T,"%AsyncGeneratorFunction%":T,"%AsyncIteratorPrototype%":T,"%Atomics%":typeof Atomics>"u"?o:Atomics,"%BigInt%":typeof BigInt>"u"?o:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?o:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?o:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?o:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":f,"%Float32Array%":typeof Float32Array>"u"?o:Float32Array,"%Float64Array%":typeof Float64Array>"u"?o:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?o:FinalizationRegistry,"%Function%":p,"%GeneratorFunction%":T,"%Int8Array%":typeof Int8Array>"u"?o:Int8Array,"%Int16Array%":typeof Int16Array>"u"?o:Int16Array,"%Int32Array%":typeof Int32Array>"u"?o:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&S?S(S([][Symbol.iterator]())):o,"%JSON%":typeof JSON=="object"?JSON:o,"%Map%":typeof Map>"u"?o:Map,"%MapIteratorPrototype%":typeof Map>"u"||!w||!S?o:S(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?o:Promise,"%Proxy%":typeof Proxy>"u"?o:Proxy,"%RangeError%":g,"%ReferenceError%":a,"%Reflect%":typeof Reflect>"u"?o:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?o:Set,"%SetIteratorPrototype%":typeof Set>"u"||!w||!S?o:S(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?o:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&S?S(""[Symbol.iterator]()):o,"%Symbol%":w?Symbol:o,"%SyntaxError%":n,"%ThrowTypeError%":y,"%TypedArray%":k,"%TypeError%":r,"%Uint8Array%":typeof Uint8Array>"u"?o:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?o:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?o:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?o:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>"u"?o:WeakMap,"%WeakRef%":typeof WeakRef>"u"?o:WeakRef,"%WeakSet%":typeof WeakSet>"u"?o:WeakSet};if(S)try{null.error}catch(je){var j=S(S(je));E["%Error.prototype%"]=j}var A=e(l(function je(se){var Te;if(se==="%AsyncFunction%")Te=c("async function () {}");else if(se==="%GeneratorFunction%")Te=c("function* () {}");else if(se==="%AsyncGeneratorFunction%")Te=c("async function* () {}");else if(se==="%AsyncGenerator%"){var J=je("%AsyncGeneratorFunction%");J&&(Te=J.prototype)}else if(se==="%AsyncIteratorPrototype%"){var ue=je("%AsyncGenerator%");ue&&S&&(Te=S(ue.prototype))}return E[se]=Te,Te},"pe"),"doEval2"),I={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},U=Sd(),M=h6(),ee=U.call(Function.call,Array.prototype.concat),V=U.call(Function.apply,Array.prototype.splice),q=U.call(Function.call,String.prototype.replace),G=U.call(Function.call,String.prototype.slice),re=U.call(Function.call,RegExp.prototype.exec),ae=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,de=/\\(\\)?/g,we=e(function(je){var se=G(je,0,1),Te=G(je,-1);if(se==="%"&&Te!=="%")throw new n("invalid intrinsic syntax, expected closing `%`");if(Te==="%"&&se!=="%")throw new n("invalid intrinsic syntax, expected opening `%`");var J=[];return q(je,ae,function(ue,te,X,ye){J[J.length]=X?q(ye,de,"$1"):te||ue}),J},"stringToPath2"),Ie=e(function(je,se){var Te=je,J;if(M(I,Te)&&(J=I[Te],Te="%"+J[0]+"%"),M(E,Te)){var ue=E[Te];if(ue===T&&(ue=A(Te)),typeof ue>"u"&&!se)throw new r("intrinsic "+je+" exists, but is not available. Please file an issue!");return{alias:J,name:Te,value:ue}}throw new n("intrinsic "+je+" does not exist!")},"getBaseIntrinsic2");return Lu=e(function(je,se){if(typeof je!="string"||je.length===0)throw new r("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof se!="boolean")throw new r('"allowMissing" argument must be a boolean');if(re(/^%?[^%]*%?$/,je)===null)throw new n("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Te=we(je),J=Te.length>0?Te[0]:"",ue=Ie("%"+J+"%",se),te=ue.name,X=ue.value,ye=!1,Re=ue.alias;Re&&(J=Re[0],V(Te,ee([0,1],Re)));for(var De=1,Y=!0;De<Te.length;De+=1){var H=Te[De],Q=G(H,0,1),fe=G(H,-1);if((Q==='"'||Q==="'"||Q==="`"||fe==='"'||fe==="'"||fe==="`")&&Q!==fe)throw new n("property names with quotes must have matching quotes");if((H==="constructor"||!Y)&&(ye=!0),J+="."+H,te="%"+J+"%",M(E,te))X=E[te];else if(X!=null){if(!(H in X)){if(!se)throw new r("base intrinsic for "+je+" exists, but the property is not available.");return}if(d&&De+1>=Te.length){var ve=d(X,H);Y=!!ve,Y&&"get"in ve&&!("originalValue"in ve.get)?X=ve.get:X=X[H]}else Y=M(X,H),X=X[H];Y&&!ye&&(E[te]=X)}}return X},"GetIntrinsic"),Lu}function Ad(){if(ub)return Nu;ub=!0;var o=Ia(),i=o("%Object.defineProperty%",!0)||!1;if(i)try{i({},"a",{value:1})}catch{i=!1}return Nu=i,Nu}function IE(){if(cb)return Du;cb=!0;var o=Ia(),i=o("%Object.getOwnPropertyDescriptor%",!0);if(i)try{i([],"length")}catch{i=null}return Du=i,Du}function d6(){if(hb)return Uu;hb=!0;var o=Ad(),i=BE(),f=Ys(),g=IE();return Uu=e(function(a,n,r){if(!a||typeof a!="object"&&typeof a!="function")throw new f("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new f("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new f("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new f("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new f("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new f("`loose`, if provided, must be a boolean");var u=arguments.length>3?arguments[3]:null,p=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,d=arguments.length>6?arguments[6]:!1,m=!!g&&g(a,n);if(o)o(a,n,{configurable:c===null&&m?m.configurable:!c,enumerable:u===null&&m?m.enumerable:!u,value:r,writable:p===null&&m?m.writable:!p});else if(d||!u&&!p&&!c)a[n]=r;else throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},"defineDataProperty"),Uu}function p6(){if(db)return Mu;db=!0;var o=Ad(),i=e(function(){return!!o},"hasPropertyDescriptors2");return i.hasArrayLengthDefineBug=e(function(){if(!o)return null;try{return o([],"length",{value:1}).length!==1}catch{return!0}},"hasArrayLengthDefineBug"),Mu=i,Mu}function g6(){if(pb)return $u;pb=!0;var o=Ia(),i=d6(),f=p6()(),g=IE(),a=Ys(),n=o("%Math.floor%");return $u=e(function(r,u){if(typeof r!="function")throw new a("`fn` is not a function");if(typeof u!="number"||u<0||u>4294967295||n(u)!==u)throw new a("`length` must be a positive 32-bit integer");var p=arguments.length>2&&!!arguments[2],c=!0,d=!0;if("length"in r&&g){var m=g(r,"length");m&&!m.configurable&&(c=!1),m&&!m.writable&&(d=!1)}return(c||d||!p)&&(f?i(r,"length",u,!0,!0):i(r,"length",u)),r},"setFunctionLength"),$u}function y6(){if(gb)return vs;gb=!0;var o=Sd(),i=Ia(),f=g6(),g=Ys(),a=i("%Function.prototype.apply%"),n=i("%Function.prototype.call%"),r=i("%Reflect.apply%",!0)||o.call(n,a),u=Ad(),p=i("%Math.max%");vs=e(function(d){if(typeof d!="function")throw new g("a function is required");var m=r(o,n,arguments);return f(m,1+p(0,d.length-(arguments.length-1)),!0)},"callBind");var c=e(function(){return r(o,a,arguments)},"applyBind2");return u?u(vs,"apply",{value:c}):vs.apply=c,vs}function m6(){if(yb)return Wu;yb=!0;var o=Ia(),i=y6(),f=i(o("String.prototype.indexOf"));return Wu=e(function(g,a){var n=o(g,!!a);return typeof n=="function"&&f(g,".prototype.")>-1?i(n):n},"callBoundIntrinsic"),Wu}function nd(o){throw new Error("Node.js process "+o+" is not supported by JSPM core outside of Node.js")}function w6(){!ma||!sa||(ma=!1,sa.length?Pn=sa.concat(Pn):ql=-1,Pn.length&&xE())}function xE(){if(!ma){var o=setTimeout(w6,0);ma=!0;for(var i=Pn.length;i;){for(sa=Pn,Pn=[];++ql<i;)sa&&sa[ql].run();ql=-1,i=Pn.length}sa=null,ma=!1,clearTimeout(o)}}function yk(o){var i=new Array(arguments.length-1);if(arguments.length>1)for(var f=1;f<arguments.length;f++)i[f-1]=arguments[f];Pn.push(new Dw(o,i)),Pn.length===1&&!ma&&setTimeout(xE,0)}function Dw(o,i){this.fun=o,this.array=i}function br(){}function mk(o){nd("_linkedBinding")}function wk(o){nd("dlopen")}function bk(){return[]}function vk(){return[]}function _k(o,i){if(!o)throw new Error(i||"assertion error")}function Ek(){return!1}function Sk(){return ci.now()/1e3}function tu(o){var i=Math.floor((Date.now()-ci.now())*.001),f=ci.now()*.001,g=Math.floor(f)+i,a=Math.floor(f%1*1e9);return o&&(g=g-o[0],a=a-o[1],a<0&&(g--,a+=zu)),[g,a]}function Qn(){return CE}function Ak(o){return[]}function Rk(){if(mb)return Hu;mb=!0;var o=CE;function i(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}l(i,"t"),e(i,"assertPath");function f(n,r){for(var u="",p=0,c=-1,d=0,m,y=0;y<=n.length;++y){if(y<n.length)m=n.charCodeAt(y);else{if(m===47)break;m=47}if(m===47){if(!(c===y-1||d===1))if(c!==y-1&&d===2){if(u.length<2||p!==2||u.charCodeAt(u.length-1)!==46||u.charCodeAt(u.length-2)!==46){if(u.length>2){var w=u.lastIndexOf("/");if(w!==u.length-1){w===-1?(u="",p=0):(u=u.slice(0,w),p=u.length-1-u.lastIndexOf("/")),c=y,d=0;continue}}else if(u.length===2||u.length===1){u="",p=0,c=y,d=0;continue}}r&&(u.length>0?u+="/..":u="..",p=2)}else u.length>0?u+="/"+n.slice(c+1,y):u=n.slice(c+1,y),p=y-c-1;c=y,d=0}else m===46&&d!==-1?++d:d=-1}return u}l(f,"r"),e(f,"normalizeStringPosix");function g(n,r){var u=r.dir||r.root,p=r.base||(r.name||"")+(r.ext||"");return u?u===r.root?u+p:u+n+p:p}l(g,"n"),e(g,"_format");var a={resolve:e(function(){for(var n="",r=!1,u,p=arguments.length-1;p>=-1&&!r;p--){var c;p>=0?c=arguments[p]:(u===void 0&&(u=o.cwd()),c=u),i(c),c.length!==0&&(n=c+"/"+n,r=c.charCodeAt(0)===47)}return n=f(n,!r),r?n.length>0?"/"+n:"/":n.length>0?n:"."},"resolve2"),normalize:e(function(n){if(i(n),n.length===0)return".";var r=n.charCodeAt(0)===47,u=n.charCodeAt(n.length-1)===47;return n=f(n,!r),n.length===0&&!r&&(n="."),n.length>0&&u&&(n+="/"),r?"/"+n:n},"normalize"),isAbsolute:e(function(n){return i(n),n.length>0&&n.charCodeAt(0)===47},"isAbsolute"),join:e(function(){if(arguments.length===0)return".";for(var n,r=0;r<arguments.length;++r){var u=arguments[r];i(u),u.length>0&&(n===void 0?n=u:n+="/"+u)}return n===void 0?".":a.normalize(n)},"join"),relative:e(function(n,r){if(i(n),i(r),n===r||(n=a.resolve(n),r=a.resolve(r),n===r))return"";for(var u=1;u<n.length&&n.charCodeAt(u)===47;++u);for(var p=n.length,c=p-u,d=1;d<r.length&&r.charCodeAt(d)===47;++d);for(var m=r.length,y=m-d,w=c<y?c:y,_=-1,S=0;S<=w;++S){if(S===w){if(y>w){if(r.charCodeAt(d+S)===47)return r.slice(d+S+1);if(S===0)return r.slice(d+S)}else c>w&&(n.charCodeAt(u+S)===47?_=S:S===0&&(_=0));break}var T=n.charCodeAt(u+S),k=r.charCodeAt(d+S);if(T!==k)break;T===47&&(_=S)}var E="";for(S=u+_+1;S<=p;++S)(S===p||n.charCodeAt(S)===47)&&(E.length===0?E+="..":E+="/..");return E.length>0?E+r.slice(d+_):(d+=_,r.charCodeAt(d)===47&&++d,r.slice(d))},"relative"),_makeLong:e(function(n){return n},"_makeLong"),dirname:e(function(n){if(i(n),n.length===0)return".";for(var r=n.charCodeAt(0),u=r===47,p=-1,c=!0,d=n.length-1;d>=1;--d)if(r=n.charCodeAt(d),r===47){if(!c){p=d;break}}else c=!1;return p===-1?u?"/":".":u&&p===1?"//":n.slice(0,p)},"dirname"),basename:e(function(n,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');i(n);var u=0,p=-1,c=!0,d;if(r!==void 0&&r.length>0&&r.length<=n.length){if(r.length===n.length&&r===n)return"";var m=r.length-1,y=-1;for(d=n.length-1;d>=0;--d){var w=n.charCodeAt(d);if(w===47){if(!c){u=d+1;break}}else y===-1&&(c=!1,y=d+1),m>=0&&(w===r.charCodeAt(m)?--m===-1&&(p=d):(m=-1,p=y))}return u===p?p=y:p===-1&&(p=n.length),n.slice(u,p)}else{for(d=n.length-1;d>=0;--d)if(n.charCodeAt(d)===47){if(!c){u=d+1;break}}else p===-1&&(c=!1,p=d+1);return p===-1?"":n.slice(u,p)}},"basename"),extname:e(function(n){i(n);for(var r=-1,u=0,p=-1,c=!0,d=0,m=n.length-1;m>=0;--m){var y=n.charCodeAt(m);if(y===47){if(!c){u=m+1;break}continue}p===-1&&(c=!1,p=m+1),y===46?r===-1?r=m:d!==1&&(d=1):r!==-1&&(d=-1)}return r===-1||p===-1||d===0||d===1&&r===p-1&&r===u+1?"":n.slice(r,p)},"extname"),format:e(function(n){if(n===null||typeof n!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof n);return g("/",n)},"format2"),parse:e(function(n){i(n);var r={root:"",dir:"",base:"",ext:"",name:""};if(n.length===0)return r;var u=n.charCodeAt(0),p=u===47,c;p?(r.root="/",c=1):c=0;for(var d=-1,m=0,y=-1,w=!0,_=n.length-1,S=0;_>=c;--_){if(u=n.charCodeAt(_),u===47){if(!w){m=_+1;break}continue}y===-1&&(w=!1,y=_+1),u===46?d===-1?d=_:S!==1&&(S=1):d!==-1&&(S=-1)}return d===-1||y===-1||S===0||S===1&&d===y-1&&d===m+1?y!==-1&&(m===0&&p?r.base=r.name=n.slice(1,y):r.base=r.name=n.slice(m,y)):(m===0&&p?(r.name=n.slice(1,d),r.base=n.slice(1,y)):(r.name=n.slice(m,d),r.base=n.slice(m,y)),r.ext=n.slice(d,y)),m>0?r.dir=n.slice(0,m-1):p&&(r.dir="/"),r},"parse2"),sep:"/",delimiter:":",win32:null,posix:null};return a.posix=a,Hu=a,Hu}function b6(){if(bb)return qu;bb=!0;var o=typeof Map=="function"&&Map.prototype,i=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,f=o&&i&&typeof i.get=="function"?i.get:null,g=o&&Map.prototype.forEach,a=typeof Set=="function"&&Set.prototype,n=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,r=a&&n&&typeof n.get=="function"?n.get:null,u=a&&Set.prototype.forEach,p=typeof WeakMap=="function"&&WeakMap.prototype,c=p?WeakMap.prototype.has:null,d=typeof WeakSet=="function"&&WeakSet.prototype,m=d?WeakSet.prototype.has:null,y=typeof WeakRef=="function"&&WeakRef.prototype,w=y?WeakRef.prototype.deref:null,_=Boolean.prototype.valueOf,S=Object.prototype.toString,T=Function.prototype.toString,k=String.prototype.match,E=String.prototype.slice,j=String.prototype.replace,A=String.prototype.toUpperCase,I=String.prototype.toLowerCase,U=RegExp.prototype.test,M=Array.prototype.concat,ee=Array.prototype.join,V=Array.prototype.slice,q=Math.floor,G=typeof BigInt=="function"?BigInt.prototype.valueOf:null,re=Object.getOwnPropertySymbols,ae=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,de=typeof Symbol=="function"&&typeof Symbol.iterator=="object",we=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===de||!0)?Symbol.toStringTag:null,Ie=Object.prototype.propertyIsEnumerable,je=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(Z){return Z.__proto__}:null);function se(Z,oe){if(Z===1/0||Z===-1/0||Z!==Z||Z&&Z>-1e3&&Z<1e3||U.call(/e/,oe))return oe;var Ae=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof Z=="number"){var le=Z<0?-q(-Z):q(Z);if(le!==Z){var Fe=String(le),ie=E.call(oe,Fe.length+1);return j.call(Fe,Ae,"$&_")+"."+j.call(j.call(ie,/([0-9]{3})/g,"$&_"),/_$/,"")}}return j.call(oe,Ae,"$&_")}l(se,"Q"),e(se,"addNumericSeparator");var Te=k6,J=Te.custom,ue=ve(J)?J:null;qu=e(l(function Z(oe,Ae,le,Fe){var ie=Ae||{};if(D(ie,"quoteStyle")&&ie.quoteStyle!=="single"&&ie.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(D(ie,"maxStringLength")&&(typeof ie.maxStringLength=="number"?ie.maxStringLength<0&&ie.maxStringLength!==1/0:ie.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Je=D(ie,"customInspect")?ie.customInspect:!0;if(typeof Je!="boolean"&&Je!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(D(ie,"indent")&&ie.indent!==null&&ie.indent!==" "&&!(parseInt(ie.indent,10)===ie.indent&&ie.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(D(ie,"numericSeparator")&&typeof ie.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var dt=ie.numericSeparator;if(typeof oe>"u")return"undefined";if(oe===null)return"null";if(typeof oe=="boolean")return oe?"true":"false";if(typeof oe=="string")return $e(oe,ie);if(typeof oe=="number"){if(oe===0)return 1/0/oe>0?"0":"-0";var W=String(oe);return dt?se(oe,W):W}if(typeof oe=="bigint"){var qe=String(oe)+"n";return dt?se(oe,qe):qe}var Ve=typeof ie.depth>"u"?5:ie.depth;if(typeof le>"u"&&(le=0),le>=Ve&&Ve>0&&typeof oe=="object")return ye(oe)?"[Array]":"[Object]";var pe=R(ie,le);if(typeof Fe>"u")Fe=[];else if(ke(Fe,oe)>=0)return"[Circular]";function Le(Nt,Ut,pr){if(Ut&&(Fe=V.call(Fe),Fe.push(Ut)),pr){var nl={depth:ie.depth};return D(ie,"quoteStyle")&&(nl.quoteStyle=ie.quoteStyle),Z(Nt,nl,le+1,Fe)}return Z(Nt,ie,le+1,Fe)}if(l(Le,"or"),e(Le,"inspect"),typeof oe=="function"&&!De(oe)){var He=Ee(oe),me=C(oe,Le);return"[Function"+(He?": "+He:" (anonymous)")+"]"+(me.length>0?" { "+ee.call(me,", ")+" }":"")}if(ve(oe)){var Se=de?j.call(String(oe),/^(Symbol\(.*\))_[^)]*$/,"$1"):ae.call(oe);return typeof oe=="object"&&!de?t(Se):Se}if(Pe(oe)){for(var We="<"+I.call(String(oe.nodeName)),Qe=oe.attributes||[],lt=0;lt<Qe.length;lt++)We+=" "+Qe[lt].name+"="+te(X(Qe[lt].value),"double",ie);return We+=">",oe.childNodes&&oe.childNodes.length&&(We+="..."),We+="</"+I.call(String(oe.nodeName))+">",We}if(ye(oe)){if(oe.length===0)return"[]";var bt=C(oe,Le);return pe&&!v(bt)?"["+P(bt,pe)+"]":"[ "+ee.call(bt,", ")+" ]"}if(Y(oe)){var ht=C(oe,Le);return!("cause"in Error.prototype)&&"cause"in oe&&!Ie.call(oe,"cause")?"{ ["+String(oe)+"] "+ee.call(M.call("[cause]: "+Le(oe.cause),ht),", ")+" }":ht.length===0?"["+String(oe)+"]":"{ ["+String(oe)+"] "+ee.call(ht,", ")+" }"}if(typeof oe=="object"&&Je){if(ue&&typeof oe[ue]=="function"&&Te)return Te(oe,{depth:Ve-le});if(Je!=="symbol"&&typeof oe.inspect=="function")return oe.inspect()}if(be(oe)){var kt=[];return g&&g.call(oe,function(Nt,Ut){kt.push(Le(Ut,oe,!0)+" => "+Le(Nt,oe))}),h("Map",f.call(oe),kt,pe)}if(xe(oe)){var zt=[];return u&&u.call(oe,function(Nt){zt.push(Le(Nt,oe))}),h("Set",r.call(oe),zt,pe)}if(ge(oe))return s("WeakMap");if(Oe(oe))return s("WeakSet");if(Ne(oe))return s("WeakRef");if(Q(oe))return t(Le(Number(oe)));if(N(oe))return t(Le(G.call(oe)));if(fe(oe))return t(_.call(oe));if(H(oe))return t(Le(String(oe)));if(typeof window<"u"&&oe===window)return"{ [object Window] }";if(typeof globalThis<"u"&&oe===globalThis||typeof Gu<"u"&&oe===Gu)return"{ [object globalThis] }";if(!Re(oe)&&!De(oe)){var Wt=C(oe,Le),ir=je?je(oe)===Object.prototype:oe instanceof Object||oe.constructor===Object,kr=oe instanceof Object?"":"null prototype",et=!ir&&we&&Object(oe)===oe&&we in oe?E.call(z(oe),8,-1):kr?"Object":"",er=ir||typeof oe.constructor!="function"?"":oe.constructor.name?oe.constructor.name+" ":"",Tt=er+(et||kr?"["+ee.call(M.call([],et||[],kr||[]),": ")+"] ":"");return Wt.length===0?Tt+"{}":pe?Tt+"{"+P(Wt,pe)+"}":Tt+"{ "+ee.call(Wt,", ")+" }"}return String(oe)},"W"),"inspect_");function te(Z,oe,Ae){var le=(Ae.quoteStyle||oe)==="double"?'"':"'";return le+Z+le}l(te,"z"),e(te,"wrapQuotes");function X(Z){return j.call(String(Z),/"/g,"&quot;")}l(X,"V"),e(X,"quote");function ye(Z){return z(Z)==="[object Array]"&&(!we||!(typeof Z=="object"&&we in Z))}l(ye,"G"),e(ye,"isArray");function Re(Z){return z(Z)==="[object Date]"&&(!we||!(typeof Z=="object"&&we in Z))}l(Re,"fe"),e(Re,"isDate");function De(Z){return z(Z)==="[object RegExp]"&&(!we||!(typeof Z=="object"&&we in Z))}l(De,"be"),e(De,"isRegExp");function Y(Z){return z(Z)==="[object Error]"&&(!we||!(typeof Z=="object"&&we in Z))}l(Y,"N"),e(Y,"isError");function H(Z){return z(Z)==="[object String]"&&(!we||!(typeof Z=="object"&&we in Z))}l(H,"$"),e(H,"isString");function Q(Z){return z(Z)==="[object Number]"&&(!we||!(typeof Z=="object"&&we in Z))}l(Q,"H"),e(Q,"isNumber");function fe(Z){return z(Z)==="[object Boolean]"&&(!we||!(typeof Z=="object"&&we in Z))}l(fe,"te"),e(fe,"isBoolean");function ve(Z){if(de)return Z&&typeof Z=="object"&&Z instanceof Symbol;if(typeof Z=="symbol")return!0;if(!Z||typeof Z!="object"||!ae)return!1;try{return ae.call(Z),!0}catch{}return!1}l(ve,"oe"),e(ve,"isSymbol");function N(Z){if(!Z||typeof Z!="object"||!G)return!1;try{return G.call(Z),!0}catch{}return!1}l(N,"P"),e(N,"isBigInt");var x=Object.prototype.hasOwnProperty||function(Z){return Z in(this||Gu)};function D(Z,oe){return x.call(Z,oe)}l(D,"M"),e(D,"has");function z(Z){return S.call(Z)}l(z,"Y"),e(z,"toStr");function Ee(Z){if(Z.name)return Z.name;var oe=k.call(T.call(Z),/^function\s*([\w$]+)/);return oe?oe[1]:null}l(Ee,"ue"),e(Ee,"nameOf");function ke(Z,oe){if(Z.indexOf)return Z.indexOf(oe);for(var Ae=0,le=Z.length;Ae<le;Ae++)if(Z[Ae]===oe)return Ae;return-1}l(ke,"le"),e(ke,"indexOf");function be(Z){if(!f||!Z||typeof Z!="object")return!1;try{f.call(Z);try{r.call(Z)}catch{return!0}return Z instanceof Map}catch{}return!1}l(be,"ee"),e(be,"isMap");function ge(Z){if(!c||!Z||typeof Z!="object")return!1;try{c.call(Z,c);try{m.call(Z,m)}catch{return!0}return Z instanceof WeakMap}catch{}return!1}l(ge,"ie"),e(ge,"isWeakMap");function Ne(Z){if(!w||!Z||typeof Z!="object")return!1;try{return w.call(Z),!0}catch{}return!1}l(Ne,"me"),e(Ne,"isWeakRef");function xe(Z){if(!r||!Z||typeof Z!="object")return!1;try{r.call(Z);try{f.call(Z)}catch{return!0}return Z instanceof Set}catch{}return!1}l(xe,"ye"),e(xe,"isSet");function Oe(Z){if(!m||!Z||typeof Z!="object")return!1;try{m.call(Z,m);try{c.call(Z,c)}catch{return!0}return Z instanceof WeakSet}catch{}return!1}l(Oe,"ve"),e(Oe,"isWeakSet");function Pe(Z){return!Z||typeof Z!="object"?!1:typeof HTMLElement<"u"&&Z instanceof HTMLElement?!0:typeof Z.nodeName=="string"&&typeof Z.getAttribute=="function"}l(Pe,"Me"),e(Pe,"isElement");function $e(Z,oe){if(Z.length>oe.maxStringLength){var Ae=Z.length-oe.maxStringLength,le="... "+Ae+" more character"+(Ae>1?"s":"");return $e(E.call(Z,0,oe.maxStringLength),oe)+le}var Fe=j.call(j.call(Z,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Ke);return te(Fe,"single",oe)}l($e,"Be"),e($e,"inspectString");function Ke(Z){var oe=Z.charCodeAt(0),Ae={8:"b",9:"t",10:"n",12:"f",13:"r"}[oe];return Ae?"\\"+Ae:"\\x"+(oe<16?"0":"")+A.call(oe.toString(16))}l(Ke,"Xe"),e(Ke,"lowbyte");function t(Z){return"Object("+Z+")"}l(t,"p"),e(t,"markBoxed");function s(Z){return Z+" { ? }"}l(s,"l"),e(s,"weakCollectionOf");function h(Z,oe,Ae,le){var Fe=le?P(Ae,le):ee.call(Ae,", ");return Z+" ("+oe+") {"+Fe+"}"}l(h,"u"),e(h,"collectionOf");function v(Z){for(var oe=0;oe<Z.length;oe++)if(ke(Z[oe],`
4
- `)>=0)return!1;return!0}l(v,"w"),e(v,"singleLineValues");function R(Z,oe){var Ae;if(Z.indent===" ")Ae=" ";else if(typeof Z.indent=="number"&&Z.indent>0)Ae=ee.call(Array(Z.indent+1)," ");else return null;return{base:Ae,prev:ee.call(Array(oe+1),Ae)}}l(R,"A"),e(R,"getIndent");function P(Z,oe){if(Z.length===0)return"";var Ae=`
5
- `+oe.prev+oe.base;return Ae+ee.call(Z,","+Ae)+`
6
- `+oe.prev}l(P,"O"),e(P,"indentedJoin");function C(Z,oe){var Ae=ye(Z),le=[];if(Ae){le.length=Z.length;for(var Fe=0;Fe<Z.length;Fe++)le[Fe]=D(Z,Fe)?oe(Z[Fe],Z):""}var ie=typeof re=="function"?re(Z):[],Je;if(de){Je={};for(var dt=0;dt<ie.length;dt++)Je["$"+ie[dt]]=ie[dt]}for(var W in Z)D(Z,W)&&(Ae&&String(Number(W))===W&&W<Z.length||de&&Je["$"+W]instanceof Symbol||(U.call(/[^\w$]/,W)?le.push(oe(W,Z)+": "+oe(Z[W],Z)):le.push(W+": "+oe(Z[W],Z))));if(typeof re=="function")for(var qe=0;qe<ie.length;qe++)Ie.call(Z,ie[qe])&&le.push("["+oe(ie[qe])+"]: "+oe(Z[ie[qe]],Z));return le}return l(C,"k"),e(C,"arrObjKeys"),qu}function v6(){if(vb)return Vu;vb=!0;var o=Ia(),i=m6(),f=b6(),g=Ys(),a=o("%WeakMap%",!0),n=o("%Map%",!0),r=i("WeakMap.prototype.get",!0),u=i("WeakMap.prototype.set",!0),p=i("WeakMap.prototype.has",!0),c=i("Map.prototype.get",!0),d=i("Map.prototype.set",!0),m=i("Map.prototype.has",!0),y=e(function(T,k){for(var E=T,j;(j=E.next)!==null;E=j)if(j.key===k)return E.next=j.next,j.next=T.next,T.next=j,j},"listGetNode"),w=e(function(T,k){var E=y(T,k);return E&&E.value},"listGet"),_=e(function(T,k,E){var j=y(T,k);j?j.value=E:T.next={key:k,next:T.next,value:E}},"listSet"),S=e(function(T,k){return!!y(T,k)},"listHas");return Vu=e(function(){var T,k,E,j={assert:e(function(A){if(!j.has(A))throw new g("Side channel does not contain "+f(A))},"assert"),get:e(function(A){if(a&&A&&(typeof A=="object"||typeof A=="function")){if(T)return r(T,A)}else if(n){if(k)return c(k,A)}else if(E)return w(E,A)},"get"),has:e(function(A){if(a&&A&&(typeof A=="object"||typeof A=="function")){if(T)return p(T,A)}else if(n){if(k)return m(k,A)}else if(E)return S(E,A);return!1},"has"),set:e(function(A,I){a&&A&&(typeof A=="object"||typeof A=="function")?(T||(T=new a),u(T,A,I)):n?(k||(k=new n),d(k,A,I)):(E||(E={key:{},next:null}),_(E,A,I))},"set")};return j},"getSideChannel"),Vu}function Rd(){if(_b)return Ku;_b=!0;var o=String.prototype.replace,i=/%20/g,f={RFC1738:"RFC1738",RFC3986:"RFC3986"};return Ku={default:f.RFC3986,formatters:{RFC1738:e(function(g){return o.call(g,i,"+")},"RFC1738"),RFC3986:e(function(g){return String(g)},"RFC3986")},RFC1738:f.RFC1738,RFC3986:f.RFC3986},Ku}function jE(){if(Eb)return Ju;Eb=!0;var o=Rd(),i=Object.prototype.hasOwnProperty,f=Array.isArray,g=function(){for(var T=[],k=0;k<256;++k)T.push("%"+((k<16?"0":"")+k.toString(16)).toUpperCase());return T}(),a=e(function(T){for(;T.length>1;){var k=T.pop(),E=k.obj[k.prop];if(f(E)){for(var j=[],A=0;A<E.length;++A)typeof E[A]<"u"&&j.push(E[A]);k.obj[k.prop]=j}}},"compactQueue2"),n=e(function(T,k){for(var E=k&&k.plainObjects?Object.create(null):{},j=0;j<T.length;++j)typeof T[j]<"u"&&(E[j]=T[j]);return E},"arrayToObject2"),r=e(l(function T(k,E,j){if(!E)return k;if(typeof E!="object"){if(f(k))k.push(E);else if(k&&typeof k=="object")(j&&(j.plainObjects||j.allowPrototypes)||!i.call(Object.prototype,E))&&(k[E]=!0);else return[k,E];return k}if(!k||typeof k!="object")return[k].concat(E);var A=k;return f(k)&&!f(E)&&(A=n(k,j)),f(k)&&f(E)?(E.forEach(function(I,U){if(i.call(k,U)){var M=k[U];M&&typeof M=="object"&&I&&typeof I=="object"?k[U]=T(M,I,j):k.push(I)}else k[U]=I}),k):Object.keys(E).reduce(function(I,U){var M=E[U];return i.call(I,U)?I[U]=T(I[U],M,j):I[U]=M,I},A)},"b"),"merge2"),u=e(function(T,k){return Object.keys(k).reduce(function(E,j){return E[j]=k[j],E},T)},"assignSingleSource"),p=e(function(T,k,E){var j=T.replace(/\+/g," ");if(E==="iso-8859-1")return j.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(j)}catch{return j}},"decode2"),c=1024,d=e(function(T,k,E,j,A){if(T.length===0)return T;var I=T;if(typeof T=="symbol"?I=Symbol.prototype.toString.call(T):typeof T!="string"&&(I=String(T)),E==="iso-8859-1")return escape(I).replace(/%u[0-9a-f]{4}/gi,function(re){return"%26%23"+parseInt(re.slice(2),16)+"%3B"});for(var U="",M=0;M<I.length;M+=c){for(var ee=I.length>=c?I.slice(M,M+c):I,V=[],q=0;q<ee.length;++q){var G=ee.charCodeAt(q);if(G===45||G===46||G===95||G===126||G>=48&&G<=57||G>=65&&G<=90||G>=97&&G<=122||A===o.RFC1738&&(G===40||G===41)){V[V.length]=ee.charAt(q);continue}if(G<128){V[V.length]=g[G];continue}if(G<2048){V[V.length]=g[192|G>>6]+g[128|G&63];continue}if(G<55296||G>=57344){V[V.length]=g[224|G>>12]+g[128|G>>6&63]+g[128|G&63];continue}q+=1,G=65536+((G&1023)<<10|ee.charCodeAt(q)&1023),V[V.length]=g[240|G>>18]+g[128|G>>12&63]+g[128|G>>6&63]+g[128|G&63]}U+=V.join("")}return U},"encode3"),m=e(function(T){for(var k=[{obj:{o:T},prop:"o"}],E=[],j=0;j<k.length;++j)for(var A=k[j],I=A.obj[A.prop],U=Object.keys(I),M=0;M<U.length;++M){var ee=U[M],V=I[ee];typeof V=="object"&&V!==null&&E.indexOf(V)===-1&&(k.push({obj:I,prop:ee}),E.push(V))}return a(k),T},"compact2"),y=e(function(T){return Object.prototype.toString.call(T)==="[object RegExp]"},"isRegExp2"),w=e(function(T){return!T||typeof T!="object"?!1:!!(T.constructor&&T.constructor.isBuffer&&T.constructor.isBuffer(T))},"isBuffer2"),_=e(function(T,k){return[].concat(T,k)},"combine2"),S=e(function(T,k){if(f(T)){for(var E=[],j=0;j<T.length;j+=1)E.push(k(T[j]));return E}return k(T)},"maybeMap2");return Ju={arrayToObject:n,assign:u,combine:_,compact:m,decode:p,encode:d,isBuffer:w,isRegExp:y,maybeMap:S,merge:r},Ju}function _6(){if(Sb)return Yu;Sb=!0;var o=v6(),i=jE(),f=Rd(),g=Object.prototype.hasOwnProperty,a={brackets:e(function(S){return S+"[]"},"brackets"),comma:"comma",indices:e(function(S,T){return S+"["+T+"]"},"indices"),repeat:e(function(S){return S},"repeat")},n=Array.isArray,r=Array.prototype.push,u=e(function(S,T){r.apply(S,n(T)?T:[T])},"pushToArray"),p=Date.prototype.toISOString,c=f.default,d={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:i.encode,encodeValuesOnly:!1,format:c,formatter:f.formatters[c],indices:!1,serializeDate:e(function(S){return p.call(S)},"serializeDate"),skipNulls:!1,strictNullHandling:!1},m=e(function(S){return typeof S=="string"||typeof S=="number"||typeof S=="boolean"||typeof S=="symbol"||typeof S=="bigint"},"isNonNullishPrimitive2"),y={},w=e(l(function S(T,k,E,j,A,I,U,M,ee,V,q,G,re,ae,de,we,Ie,je){for(var se=T,Te=je,J=0,ue=!1;(Te=Te.get(y))!==void 0&&!ue;){var te=Te.get(T);if(J+=1,typeof te<"u"){if(te===J)throw new RangeError("Cyclic object value");ue=!0}typeof Te.get(y)>"u"&&(J=0)}if(typeof V=="function"?se=V(k,se):se instanceof Date?se=re(se):E==="comma"&&n(se)&&(se=i.maybeMap(se,function(z){return z instanceof Date?re(z):z})),se===null){if(I)return ee&&!we?ee(k,d.encoder,Ie,"key",ae):k;se=""}if(m(se)||i.isBuffer(se)){if(ee){var X=we?k:ee(k,d.encoder,Ie,"key",ae);return[de(X)+"="+de(ee(se,d.encoder,Ie,"value",ae))]}return[de(k)+"="+de(String(se))]}var ye=[];if(typeof se>"u")return ye;var Re;if(E==="comma"&&n(se))we&&ee&&(se=i.maybeMap(se,ee)),Re=[{value:se.length>0?se.join(",")||null:void 0}];else if(n(V))Re=V;else{var De=Object.keys(se);Re=q?De.sort(q):De}var Y=M?k.replace(/\./g,"%2E"):k,H=j&&n(se)&&se.length===1?Y+"[]":Y;if(A&&n(se)&&se.length===0)return H+"[]";for(var Q=0;Q<Re.length;++Q){var fe=Re[Q],ve=typeof fe=="object"&&typeof fe.value<"u"?fe.value:se[fe];if(!(U&&ve===null)){var N=G&&M?fe.replace(/\./g,"%2E"):fe,x=n(se)?typeof E=="function"?E(H,N):H:H+(G?"."+N:"["+N+"]");je.set(T,J);var D=o();D.set(y,je),u(ye,S(ve,x,E,j,A,I,U,M,E==="comma"&&we&&n(se)?null:ee,V,q,G,re,ae,de,we,Ie,D))}}return ye},"_"),"stringify2"),_=e(function(S){if(!S)return d;if(typeof S.allowEmptyArrays<"u"&&typeof S.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof S.encodeDotInKeys<"u"&&typeof S.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(S.encoder!==null&&typeof S.encoder<"u"&&typeof S.encoder!="function")throw new TypeError("Encoder has to be a function.");var T=S.charset||d.charset;if(typeof S.charset<"u"&&S.charset!=="utf-8"&&S.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var k=f.default;if(typeof S.format<"u"){if(!g.call(f.formatters,S.format))throw new TypeError("Unknown format option provided.");k=S.format}var E=f.formatters[k],j=d.filter;(typeof S.filter=="function"||n(S.filter))&&(j=S.filter);var A;if(S.arrayFormat in a?A=S.arrayFormat:"indices"in S?A=S.indices?"indices":"repeat":A=d.arrayFormat,"commaRoundTrip"in S&&typeof S.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var I=typeof S.allowDots>"u"?S.encodeDotInKeys===!0?!0:d.allowDots:!!S.allowDots;return{addQueryPrefix:typeof S.addQueryPrefix=="boolean"?S.addQueryPrefix:d.addQueryPrefix,allowDots:I,allowEmptyArrays:typeof S.allowEmptyArrays=="boolean"?!!S.allowEmptyArrays:d.allowEmptyArrays,arrayFormat:A,charset:T,charsetSentinel:typeof S.charsetSentinel=="boolean"?S.charsetSentinel:d.charsetSentinel,commaRoundTrip:S.commaRoundTrip,delimiter:typeof S.delimiter>"u"?d.delimiter:S.delimiter,encode:typeof S.encode=="boolean"?S.encode:d.encode,encodeDotInKeys:typeof S.encodeDotInKeys=="boolean"?S.encodeDotInKeys:d.encodeDotInKeys,encoder:typeof S.encoder=="function"?S.encoder:d.encoder,encodeValuesOnly:typeof S.encodeValuesOnly=="boolean"?S.encodeValuesOnly:d.encodeValuesOnly,filter:j,format:k,formatter:E,serializeDate:typeof S.serializeDate=="function"?S.serializeDate:d.serializeDate,skipNulls:typeof S.skipNulls=="boolean"?S.skipNulls:d.skipNulls,sort:typeof S.sort=="function"?S.sort:null,strictNullHandling:typeof S.strictNullHandling=="boolean"?S.strictNullHandling:d.strictNullHandling}},"normalizeStringifyOptions2");return Yu=e(function(S,T){var k=S,E=_(T),j,A;typeof E.filter=="function"?(A=E.filter,k=A("",k)):n(E.filter)&&(A=E.filter,j=A);var I=[];if(typeof k!="object"||k===null)return"";var U=a[E.arrayFormat],M=U==="comma"&&E.commaRoundTrip;j||(j=Object.keys(k)),E.sort&&j.sort(E.sort);for(var ee=o(),V=0;V<j.length;++V){var q=j[V];E.skipNulls&&k[q]===null||u(I,w(k[q],q,U,M,E.allowEmptyArrays,E.strictNullHandling,E.skipNulls,E.encodeDotInKeys,E.encode?E.encoder:null,E.filter,E.sort,E.allowDots,E.serializeDate,E.format,E.formatter,E.encodeValuesOnly,E.charset,ee))}var G=I.join(E.delimiter),re=E.addQueryPrefix===!0?"?":"";return E.charsetSentinel&&(E.charset==="iso-8859-1"?re+="utf8=%26%2310003%3B&":re+="utf8=%E2%9C%93&"),G.length>0?re+G:""},"exports$42"),Yu}function E6(){if(Ab)return Zu;Ab=!0;var o=jE(),i=Object.prototype.hasOwnProperty,f=Array.isArray,g={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:o.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},a=e(function(y){return y.replace(/&#(\d+);/g,function(w,_){return String.fromCharCode(parseInt(_,10))})},"interpretNumericEntities"),n=e(function(y,w){return y&&typeof y=="string"&&w.comma&&y.indexOf(",")>-1?y.split(","):y},"parseArrayValue"),r="utf8=%26%2310003%3B",u="utf8=%E2%9C%93",p=e(function(y,w){var _={__proto__:null},S=w.ignoreQueryPrefix?y.replace(/^\?/,""):y;S=S.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var T=w.parameterLimit===1/0?void 0:w.parameterLimit,k=S.split(w.delimiter,T),E=-1,j,A=w.charset;if(w.charsetSentinel)for(j=0;j<k.length;++j)k[j].indexOf("utf8=")===0&&(k[j]===u?A="utf-8":k[j]===r&&(A="iso-8859-1"),E=j,j=k.length);for(j=0;j<k.length;++j)if(j!==E){var I=k[j],U=I.indexOf("]="),M=U===-1?I.indexOf("="):U+1,ee,V;M===-1?(ee=w.decoder(I,g.decoder,A,"key"),V=w.strictNullHandling?null:""):(ee=w.decoder(I.slice(0,M),g.decoder,A,"key"),V=o.maybeMap(n(I.slice(M+1),w),function(G){return w.decoder(G,g.decoder,A,"value")})),V&&w.interpretNumericEntities&&A==="iso-8859-1"&&(V=a(V)),I.indexOf("[]=")>-1&&(V=f(V)?[V]:V);var q=i.call(_,ee);q&&w.duplicates==="combine"?_[ee]=o.combine(_[ee],V):(!q||w.duplicates==="last")&&(_[ee]=V)}return _},"parseQueryStringValues"),c=e(function(y,w,_,S){for(var T=S?w:n(w,_),k=y.length-1;k>=0;--k){var E,j=y[k];if(j==="[]"&&_.parseArrays)E=_.allowEmptyArrays&&(T===""||_.strictNullHandling&&T===null)?[]:[].concat(T);else{E=_.plainObjects?Object.create(null):{};var A=j.charAt(0)==="["&&j.charAt(j.length-1)==="]"?j.slice(1,-1):j,I=_.decodeDotInKeys?A.replace(/%2E/g,"."):A,U=parseInt(I,10);!_.parseArrays&&I===""?E={0:T}:!isNaN(U)&&j!==I&&String(U)===I&&U>=0&&_.parseArrays&&U<=_.arrayLimit?(E=[],E[U]=T):I!=="__proto__"&&(E[I]=T)}T=E}return T},"parseObject"),d=e(function(y,w,_,S){if(y){var T=_.allowDots?y.replace(/\.([^.[]+)/g,"[$1]"):y,k=/(\[[^[\]]*])/,E=/(\[[^[\]]*])/g,j=_.depth>0&&k.exec(T),A=j?T.slice(0,j.index):T,I=[];if(A){if(!_.plainObjects&&i.call(Object.prototype,A)&&!_.allowPrototypes)return;I.push(A)}for(var U=0;_.depth>0&&(j=E.exec(T))!==null&&U<_.depth;){if(U+=1,!_.plainObjects&&i.call(Object.prototype,j[1].slice(1,-1))&&!_.allowPrototypes)return;I.push(j[1])}if(j){if(_.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+_.depth+" and strictDepth is true");I.push("["+T.slice(j.index)+"]")}return c(I,w,_,S)}},"parseQueryStringKeys"),m=e(function(y){if(!y)return g;if(typeof y.allowEmptyArrays<"u"&&typeof y.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof y.decodeDotInKeys<"u"&&typeof y.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(y.decoder!==null&&typeof y.decoder<"u"&&typeof y.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof y.charset<"u"&&y.charset!=="utf-8"&&y.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var w=typeof y.charset>"u"?g.charset:y.charset,_=typeof y.duplicates>"u"?g.duplicates:y.duplicates;if(_!=="combine"&&_!=="first"&&_!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var S=typeof y.allowDots>"u"?y.decodeDotInKeys===!0?!0:g.allowDots:!!y.allowDots;return{allowDots:S,allowEmptyArrays:typeof y.allowEmptyArrays=="boolean"?!!y.allowEmptyArrays:g.allowEmptyArrays,allowPrototypes:typeof y.allowPrototypes=="boolean"?y.allowPrototypes:g.allowPrototypes,allowSparse:typeof y.allowSparse=="boolean"?y.allowSparse:g.allowSparse,arrayLimit:typeof y.arrayLimit=="number"?y.arrayLimit:g.arrayLimit,charset:w,charsetSentinel:typeof y.charsetSentinel=="boolean"?y.charsetSentinel:g.charsetSentinel,comma:typeof y.comma=="boolean"?y.comma:g.comma,decodeDotInKeys:typeof y.decodeDotInKeys=="boolean"?y.decodeDotInKeys:g.decodeDotInKeys,decoder:typeof y.decoder=="function"?y.decoder:g.decoder,delimiter:typeof y.delimiter=="string"||o.isRegExp(y.delimiter)?y.delimiter:g.delimiter,depth:typeof y.depth=="number"||y.depth===!1?+y.depth:g.depth,duplicates:_,ignoreQueryPrefix:y.ignoreQueryPrefix===!0,interpretNumericEntities:typeof y.interpretNumericEntities=="boolean"?y.interpretNumericEntities:g.interpretNumericEntities,parameterLimit:typeof y.parameterLimit=="number"?y.parameterLimit:g.parameterLimit,parseArrays:y.parseArrays!==!1,plainObjects:typeof y.plainObjects=="boolean"?y.plainObjects:g.plainObjects,strictDepth:typeof y.strictDepth=="boolean"?!!y.strictDepth:g.strictDepth,strictNullHandling:typeof y.strictNullHandling=="boolean"?y.strictNullHandling:g.strictNullHandling}},"normalizeParseOptions2");return Zu=e(function(y,w){var _=m(w);if(y===""||y===null||typeof y>"u")return _.plainObjects?Object.create(null):{};for(var S=typeof y=="string"?p(y,_):y,T=_.plainObjects?Object.create(null):{},k=Object.keys(S),E=0;E<k.length;++E){var j=k[E],A=d(j,S[j],_,typeof y=="string");T=o.merge(T,A,_)}return _.allowSparse===!0?T:o.compact(T)},"exports$32"),Zu}function S6(){if(Rb)return Qu;Rb=!0;var o=_6(),i=E6(),f=Rd();return Qu={formats:f,parse:i,stringify:o},Qu}function kk(){if(kb)return Mi;kb=!0;var o=Ui;function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}l(i,"t"),e(i,"Url2");var f=/^([a-z0-9.+-]+:)/i,g=/:[0-9]*$/,a=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,n=["<",">",'"',"`"," ","\r",`
7
- `," "],r=["{","}","|","\\","^","`"].concat(n),u=["'"].concat(r),p=["%","/","?",";","#"].concat(u),c=["/","?","#"],d=255,m=/^[+a-z0-9A-Z_-]{0,63}$/,y=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,w={javascript:!0,"javascript:":!0},_={javascript:!0,"javascript:":!0},S={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},T=S6();function k(I,U,M){if(I&&typeof I=="object"&&I instanceof i)return I;var ee=new i;return ee.parse(I,U,M),ee}l(k,"E"),e(k,"urlParse"),i.prototype.parse=function(I,U,M){if(typeof I!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof I);var ee=I.indexOf("?"),V=ee!==-1&&ee<I.indexOf("#")?"?":"#",q=I.split(V),G=/\\/g;q[0]=q[0].replace(G,"/"),I=q.join(V);var re=I;if(re=re.trim(),!M&&I.split("#").length===1){var ae=a.exec(re);if(ae)return this.path=re,this.href=re,this.pathname=ae[1],ae[2]?(this.search=ae[2],U?this.query=T.parse(this.search.substr(1)):this.query=this.search.substr(1)):U&&(this.search="",this.query={}),this}var de=f.exec(re);if(de){de=de[0];var we=de.toLowerCase();this.protocol=we,re=re.substr(de.length)}if(M||de||re.match(/^\/\/[^@/]+@[^@/]+/)){var Ie=re.substr(0,2)==="//";Ie&&!(de&&_[de])&&(re=re.substr(2),this.slashes=!0)}if(!_[de]&&(Ie||de&&!S[de])){for(var je=-1,se=0;se<c.length;se++){var Te=re.indexOf(c[se]);Te!==-1&&(je===-1||Te<je)&&(je=Te)}var J,ue;je===-1?ue=re.lastIndexOf("@"):ue=re.lastIndexOf("@",je),ue!==-1&&(J=re.slice(0,ue),re=re.slice(ue+1),this.auth=decodeURIComponent(J)),je=-1;for(var se=0;se<p.length;se++){var Te=re.indexOf(p[se]);Te!==-1&&(je===-1||Te<je)&&(je=Te)}je===-1&&(je=re.length),this.host=re.slice(0,je),re=re.slice(je),this.parseHost(),this.hostname=this.hostname||"";var te=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!te)for(var X=this.hostname.split(/\./),se=0,ye=X.length;se<ye;se++){var Re=X[se];if(Re&&!Re.match(m)){for(var De="",Y=0,H=Re.length;Y<H;Y++)Re.charCodeAt(Y)>127?De+="x":De+=Re[Y];if(!De.match(m)){var Q=X.slice(0,se),fe=X.slice(se+1),ve=Re.match(y);ve&&(Q.push(ve[1]),fe.unshift(ve[2])),fe.length&&(re="/"+fe.join(".")+re),this.hostname=Q.join(".");break}}}this.hostname.length>d?this.hostname="":this.hostname=this.hostname.toLowerCase(),te||(this.hostname=o.toASCII(this.hostname));var N=this.port?":"+this.port:"",x=this.hostname||"";this.host=x+N,this.href+=this.host,te&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),re[0]!=="/"&&(re="/"+re))}if(!w[we])for(var se=0,ye=u.length;se<ye;se++){var D=u[se];if(re.indexOf(D)!==-1){var z=encodeURIComponent(D);z===D&&(z=escape(D)),re=re.split(D).join(z)}}var Ee=re.indexOf("#");Ee!==-1&&(this.hash=re.substr(Ee),re=re.slice(0,Ee));var ke=re.indexOf("?");if(ke!==-1?(this.search=re.substr(ke),this.query=re.substr(ke+1),U&&(this.query=T.parse(this.query)),re=re.slice(0,ke)):U&&(this.search="",this.query={}),re&&(this.pathname=re),S[we]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var N=this.pathname||"",be=this.search||"";this.path=N+be}return this.href=this.format(),this};function E(I){return typeof I=="string"&&(I=k(I)),I instanceof i?I.format():i.prototype.format.call(I)}l(E,"R"),e(E,"urlFormat"),i.prototype.format=function(){var I=this.auth||"";I&&(I=encodeURIComponent(I),I=I.replace(/%3A/i,":"),I+="@");var U=this.protocol||"",M=this.pathname||"",ee=this.hash||"",V=!1,q="";this.host?V=I+this.host:this.hostname&&(V=I+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(V+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(q=T.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var G=this.search||q&&"?"+q||"";return U&&U.substr(-1)!==":"&&(U+=":"),this.slashes||(!U||S[U])&&V!==!1?(V="//"+(V||""),M&&M.charAt(0)!=="/"&&(M="/"+M)):V||(V=""),ee&&ee.charAt(0)!=="#"&&(ee="#"+ee),G&&G.charAt(0)!=="?"&&(G="?"+G),M=M.replace(/[?#]/g,function(re){return encodeURIComponent(re)}),G=G.replace("#","%23"),U+V+M+G+ee};function j(I,U){return k(I,!1,!0).resolve(U)}l(j,"T"),e(j,"urlResolve"),i.prototype.resolve=function(I){return this.resolveObject(k(I,!1,!0)).format()};function A(I,U){return I?k(I,!1,!0).resolveObject(U):U}return l(A,"F"),e(A,"urlResolveObject"),i.prototype.resolveObject=function(I){if(typeof I=="string"){var U=new i;U.parse(I,!1,!0),I=U}for(var M=new i,ee=Object.keys(this),V=0;V<ee.length;V++){var q=ee[V];M[q]=this[q]}if(M.hash=I.hash,I.href==="")return M.href=M.format(),M;if(I.slashes&&!I.protocol){for(var G=Object.keys(I),re=0;re<G.length;re++){var ae=G[re];ae!=="protocol"&&(M[ae]=I[ae])}return S[M.protocol]&&M.hostname&&!M.pathname&&(M.pathname="/",M.path=M.pathname),M.href=M.format(),M}if(I.protocol&&I.protocol!==M.protocol){if(!S[I.protocol]){for(var de=Object.keys(I),we=0;we<de.length;we++){var Ie=de[we];M[Ie]=I[Ie]}return M.href=M.format(),M}if(M.protocol=I.protocol,!I.host&&!_[I.protocol]){for(var ye=(I.pathname||"").split("/");ye.length&&!(I.host=ye.shift()););I.host||(I.host=""),I.hostname||(I.hostname=""),ye[0]!==""&&ye.unshift(""),ye.length<2&&ye.unshift(""),M.pathname=ye.join("/")}else M.pathname=I.pathname;if(M.search=I.search,M.query=I.query,M.host=I.host||"",M.auth=I.auth,M.hostname=I.hostname||I.host,M.port=I.port,M.pathname||M.search){var je=M.pathname||"",se=M.search||"";M.path=je+se}return M.slashes=M.slashes||I.slashes,M.href=M.format(),M}var Te=M.pathname&&M.pathname.charAt(0)==="/",J=I.host||I.pathname&&I.pathname.charAt(0)==="/",ue=J||Te||M.host&&I.pathname,te=ue,X=M.pathname&&M.pathname.split("/")||[],ye=I.pathname&&I.pathname.split("/")||[],Re=M.protocol&&!S[M.protocol];if(Re&&(M.hostname="",M.port=null,M.host&&(X[0]===""?X[0]=M.host:X.unshift(M.host)),M.host="",I.protocol&&(I.hostname=null,I.port=null,I.host&&(ye[0]===""?ye[0]=I.host:ye.unshift(I.host)),I.host=null),ue=ue&&(ye[0]===""||X[0]==="")),J)M.host=I.host||I.host===""?I.host:M.host,M.hostname=I.hostname||I.hostname===""?I.hostname:M.hostname,M.search=I.search,M.query=I.query,X=ye;else if(ye.length)X||(X=[]),X.pop(),X=X.concat(ye),M.search=I.search,M.query=I.query;else if(I.search!=null){if(Re){M.host=X.shift(),M.hostname=M.host;var De=M.host&&M.host.indexOf("@")>0?M.host.split("@"):!1;De&&(M.auth=De.shift(),M.hostname=De.shift(),M.host=M.hostname)}return M.search=I.search,M.query=I.query,(M.pathname!==null||M.search!==null)&&(M.path=(M.pathname?M.pathname:"")+(M.search?M.search:"")),M.href=M.format(),M}if(!X.length)return M.pathname=null,M.search?M.path="/"+M.search:M.path=null,M.href=M.format(),M;for(var Y=X.slice(-1)[0],H=(M.host||I.host||X.length>1)&&(Y==="."||Y==="..")||Y==="",Q=0,fe=X.length;fe>=0;fe--)Y=X[fe],Y==="."?X.splice(fe,1):Y===".."?(X.splice(fe,1),Q++):Q&&(X.splice(fe,1),Q--);if(!ue&&!te)for(;Q--;Q)X.unshift("..");ue&&X[0]!==""&&(!X[0]||X[0].charAt(0)!=="/")&&X.unshift(""),H&&X.join("/").substr(-1)!=="/"&&X.push("");var ve=X[0]===""||X[0]&&X[0].charAt(0)==="/";if(Re){M.hostname=ve?"":X.length?X.shift():"",M.host=M.hostname;var De=M.host&&M.host.indexOf("@")>0?M.host.split("@"):!1;De&&(M.auth=De.shift(),M.hostname=De.shift(),M.host=M.hostname)}return ue=ue||M.host&&X.length,ue&&!ve&&X.unshift(""),X.length>0?M.pathname=X.join("/"):(M.pathname=null,M.path=null),(M.pathname!==null||M.search!==null)&&(M.path=(M.pathname?M.pathname:"")+(M.search?M.search:"")),M.auth=I.auth||M.auth,M.slashes=M.slashes||I.slashes,M.href=M.format(),M},i.prototype.parseHost=function(){var I=this.host,U=g.exec(I);U&&(U=U[0],U!==":"&&(this.port=U.substr(1)),I=I.substr(0,I.length-U.length)),I&&(this.hostname=I)},Mi.parse=k,Mi.resolve=j,Mi.resolveObject=A,Mi.format=E,Mi.Url=i,Mi}function Uw(o){if(typeof o=="string")o=new URL(o);else if(!(o instanceof URL))throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");if(o.protocol!=="file:")throw new Deno.errors.InvalidData("invalid url scheme");return id?A6(o):R6(o)}function A6(o){let i=o.hostname,f=o.pathname;for(let g=0;g<f.length;g++)if(f[g]==="%"){let a=f.codePointAt(g+2)||32;if(f[g+1]==="2"&&a===102||f[g+1]==="5"&&a===99)throw new Deno.errors.InvalidData("must not include encoded \\ or / characters")}if(f=f.replace(N6,"\\"),f=decodeURIComponent(f),i!=="")return`\\\\${i}${f}`;{let g=f.codePointAt(1)|32,a=f[2];if(g<P6||g>L6||a!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return f.slice(1)}}function R6(o){if(o.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let i=o.pathname;for(let f=0;f<i.length;f++)if(i[f]==="%"){let g=i.codePointAt(f+2)||32;if(i[f+1]==="2"&&g===102)throw new Deno.errors.InvalidData("must not include encoded / characters")}return decodeURIComponent(i)}function Mw(o){let i=wb.resolve(o),f=o.charCodeAt(o.length-1);(f===C6||id&&f===j6)&&i[i.length-1]!==wb.sep&&(i+="/");let g=new URL("file://");return i.includes("%")&&(i=i.replace(D6,"%25")),!id&&i.includes("\\")&&(i=i.replace(U6,"%5C")),i.includes(`
8
- `)&&(i=i.replace(M6,"%0A")),i.includes("\r")&&(i=i.replace($6,"%0D")),i.includes(" ")&&(i=i.replace(W6,"%09")),g.pathname=i,g}function H6(){if(Tb)return _s;Tb=!0,_s.byteLength=u,_s.toByteArray=c,_s.fromByteArray=y;for(var o=[],i=[],f=typeof Uint8Array<"u"?Uint8Array:Array,g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,n=g.length;a<n;++a)o[a]=g[a],i[g.charCodeAt(a)]=a;i[45]=62,i[95]=63;function r(w){var _=w.length;if(_%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var S=w.indexOf("=");S===-1&&(S=_);var T=S===_?0:4-S%4;return[S,T]}l(r,"i"),e(r,"getLens");function u(w){var _=r(w),S=_[0],T=_[1];return(S+T)*3/4-T}l(u,"f"),e(u,"byteLength");function p(w,_,S){return(_+S)*3/4-S}l(p,"h"),e(p,"_byteLength");function c(w){var _,S=r(w),T=S[0],k=S[1],E=new f(p(w,T,k)),j=0,A=k>0?T-4:T,I;for(I=0;I<A;I+=4)_=i[w.charCodeAt(I)]<<18|i[w.charCodeAt(I+1)]<<12|i[w.charCodeAt(I+2)]<<6|i[w.charCodeAt(I+3)],E[j++]=_>>16&255,E[j++]=_>>8&255,E[j++]=_&255;return k===2&&(_=i[w.charCodeAt(I)]<<2|i[w.charCodeAt(I+1)]>>4,E[j++]=_&255),k===1&&(_=i[w.charCodeAt(I)]<<10|i[w.charCodeAt(I+1)]<<4|i[w.charCodeAt(I+2)]>>2,E[j++]=_>>8&255,E[j++]=_&255),E}l(c,"c"),e(c,"toByteArray");function d(w){return o[w>>18&63]+o[w>>12&63]+o[w>>6&63]+o[w&63]}l(d,"d"),e(d,"tripletToBase64");function m(w,_,S){for(var T,k=[],E=_;E<S;E+=3)T=(w[E]<<16&16711680)+(w[E+1]<<8&65280)+(w[E+2]&255),k.push(d(T));return k.join("")}l(m,"y"),e(m,"encodeChunk");function y(w){for(var _,S=w.length,T=S%3,k=[],E=16383,j=0,A=S-T;j<A;j+=E)k.push(m(w,j,j+E>A?A:j+E));return T===1?(_=w[S-1],k.push(o[_>>2]+o[_<<4&63]+"==")):T===2&&(_=(w[S-2]<<8)+w[S-1],k.push(o[_>>10]+o[_>>4&63]+o[_<<2&63]+"=")),k.join("")}return l(y,"m"),e(y,"fromByteArray"),_s}function q6(){return Fb||(Fb=!0,Xu.read=function(o,i,f,g,a){var n,r,u=a*8-g-1,p=(1<<u)-1,c=p>>1,d=-7,m=f?a-1:0,y=f?-1:1,w=o[i+m];for(m+=y,n=w&(1<<-d)-1,w>>=-d,d+=u;d>0;n=n*256+o[i+m],m+=y,d-=8);for(r=n&(1<<-d)-1,n>>=-d,d+=g;d>0;r=r*256+o[i+m],m+=y,d-=8);if(n===0)n=1-c;else{if(n===p)return r?NaN:(w?-1:1)*(1/0);r=r+Math.pow(2,g),n=n-c}return(w?-1:1)*r*Math.pow(2,n-g)},Xu.write=function(o,i,f,g,a,n){var r,u,p,c=n*8-a-1,d=(1<<c)-1,m=d>>1,y=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=g?0:n-1,_=g?1:-1,S=i<0||i===0&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(u=isNaN(i)?1:0,r=d):(r=Math.floor(Math.log(i)/Math.LN2),i*(p=Math.pow(2,-r))<1&&(r--,p*=2),r+m>=1?i+=y/p:i+=y*Math.pow(2,1-m),i*p>=2&&(r++,p/=2),r+m>=d?(u=0,r=d):r+m>=1?(u=(i*p-1)*Math.pow(2,a),r=r+m):(u=i*Math.pow(2,m-1)*Math.pow(2,a),r=0));a>=8;o[f+w]=u&255,w+=_,u/=256,a-=8);for(r=r<<a|u,c+=a;c>0;o[f+w]=r&255,w+=_,r/=256,c-=8);o[f+w-_]|=S*128}),Xu}function vi(){if(Bb)return $i;Bb=!0;let o=H6(),i=q6(),f=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;$i.Buffer=r,$i.SlowBuffer=k,$i.INSPECT_MAX_BYTES=50;let g=2147483647;$i.kMaxLength=g,r.TYPED_ARRAY_SUPPORT=a(),!r.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{let t=new Uint8Array(1),s={foo:e(function(){return 42},"foo")};return Object.setPrototypeOf(s,Uint8Array.prototype),Object.setPrototypeOf(t,s),t.foo()===42}catch{return!1}}l(a,"a"),e(a,"typedArraySupport"),Object.defineProperty(r.prototype,"parent",{enumerable:!0,get:e(function(){if(r.isBuffer(this))return this.buffer},"get")}),Object.defineProperty(r.prototype,"offset",{enumerable:!0,get:e(function(){if(r.isBuffer(this))return this.byteOffset},"get")});function n(t){if(t>g)throw new RangeError('The value "'+t+'" is invalid for option "size"');let s=new Uint8Array(t);return Object.setPrototypeOf(s,r.prototype),s}l(n,"s"),e(n,"createBuffer");function r(t,s,h){if(typeof t=="number"){if(typeof s=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(t)}return u(t,s,h)}l(r,"i"),e(r,"Buffer"),r.poolSize=8192;function u(t,s,h){if(typeof t=="string")return m(t,s);if(ArrayBuffer.isView(t))return w(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(xe(t,ArrayBuffer)||t&&xe(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(xe(t,SharedArrayBuffer)||t&&xe(t.buffer,SharedArrayBuffer)))return _(t,s,h);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let v=t.valueOf&&t.valueOf();if(v!=null&&v!==t)return r.from(v,s,h);let R=S(t);if(R)return R;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return r.from(t[Symbol.toPrimitive]("string"),s,h);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}l(u,"f"),e(u,"from"),r.from=function(t,s,h){return u(t,s,h)},Object.setPrototypeOf(r.prototype,Uint8Array.prototype),Object.setPrototypeOf(r,Uint8Array);function p(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}l(p,"h"),e(p,"assertSize");function c(t,s,h){return p(t),t<=0?n(t):s!==void 0?typeof h=="string"?n(t).fill(s,h):n(t).fill(s):n(t)}l(c,"c"),e(c,"alloc"),r.alloc=function(t,s,h){return c(t,s,h)};function d(t){return p(t),n(t<0?0:T(t)|0)}l(d,"d"),e(d,"allocUnsafe"),r.allocUnsafe=function(t){return d(t)},r.allocUnsafeSlow=function(t){return d(t)};function m(t,s){if((typeof s!="string"||s==="")&&(s="utf8"),!r.isEncoding(s))throw new TypeError("Unknown encoding: "+s);let h=E(t,s)|0,v=n(h),R=v.write(t,s);return R!==h&&(v=v.slice(0,R)),v}l(m,"y"),e(m,"fromString");function y(t){let s=t.length<0?0:T(t.length)|0,h=n(s);for(let v=0;v<s;v+=1)h[v]=t[v]&255;return h}l(y,"m"),e(y,"fromArrayLike");function w(t){if(xe(t,Uint8Array)){let s=new Uint8Array(t);return _(s.buffer,s.byteOffset,s.byteLength)}return y(t)}l(w,"g"),e(w,"fromArrayView");function _(t,s,h){if(s<0||t.byteLength<s)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<s+(h||0))throw new RangeError('"length" is outside of buffer bounds');let v;return s===void 0&&h===void 0?v=new Uint8Array(t):h===void 0?v=new Uint8Array(t,s):v=new Uint8Array(t,s,h),Object.setPrototypeOf(v,r.prototype),v}l(_,"v"),e(_,"fromArrayBuffer");function S(t){if(r.isBuffer(t)){let s=T(t.length)|0,h=n(s);return h.length===0||t.copy(h,0,0,s),h}if(t.length!==void 0)return typeof t.length!="number"||Oe(t.length)?n(0):y(t);if(t.type==="Buffer"&&Array.isArray(t.data))return y(t.data)}l(S,"_"),e(S,"fromObject");function T(t){if(t>=g)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+g.toString(16)+" bytes");return t|0}l(T,"b"),e(T,"checked");function k(t){return+t!=t&&(t=0),r.alloc(+t)}l(k,"E"),e(k,"SlowBuffer"),r.isBuffer=e(function(t){return t!=null&&t._isBuffer===!0&&t!==r.prototype},"isBuffer2"),r.compare=e(function(t,s){if(xe(t,Uint8Array)&&(t=r.from(t,t.offset,t.byteLength)),xe(s,Uint8Array)&&(s=r.from(s,s.offset,s.byteLength)),!r.isBuffer(t)||!r.isBuffer(s))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===s)return 0;let h=t.length,v=s.length;for(let R=0,P=Math.min(h,v);R<P;++R)if(t[R]!==s[R]){h=t[R],v=s[R];break}return h<v?-1:v<h?1:0},"compare"),r.isEncoding=e(function(t){switch(String(t).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}},"isEncoding"),r.concat=e(function(t,s){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return r.alloc(0);let h;if(s===void 0)for(s=0,h=0;h<t.length;++h)s+=t[h].length;let v=r.allocUnsafe(s),R=0;for(h=0;h<t.length;++h){let P=t[h];if(xe(P,Uint8Array))R+P.length>v.length?(r.isBuffer(P)||(P=r.from(P)),P.copy(v,R)):Uint8Array.prototype.set.call(v,P,R);else if(r.isBuffer(P))P.copy(v,R);else throw new TypeError('"list" argument must be an Array of Buffers');R+=P.length}return v},"concat");function E(t,s){if(r.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||xe(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);let h=t.length,v=arguments.length>2&&arguments[2]===!0;if(!v&&h===0)return 0;let R=!1;for(;;)switch(s){case"ascii":case"latin1":case"binary":return h;case"utf8":case"utf-8":return Ee(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return h*2;case"hex":return h>>>1;case"base64":return ge(t).length;default:if(R)return v?-1:Ee(t).length;s=(""+s).toLowerCase(),R=!0}}l(E,"R"),e(E,"byteLength"),r.byteLength=E;function j(t,s,h){let v=!1;if((s===void 0||s<0)&&(s=0),s>this.length||((h===void 0||h>this.length)&&(h=this.length),h<=0)||(h>>>=0,s>>>=0,h<=s))return"";for(t||(t="utf8");;)switch(t){case"hex":return se(this,s,h);case"utf8":case"utf-8":return ae(this,s,h);case"ascii":return Ie(this,s,h);case"latin1":case"binary":return je(this,s,h);case"base64":return re(this,s,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Te(this,s,h);default:if(v)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),v=!0}}l(j,"T"),e(j,"slowToString"),r.prototype._isBuffer=!0;function A(t,s,h){let v=t[s];t[s]=t[h],t[h]=v}l(A,"F"),e(A,"swap"),r.prototype.swap16=e(function(){let t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let s=0;s<t;s+=2)A(this,s,s+1);return this},"swap16"),r.prototype.swap32=e(function(){let t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let s=0;s<t;s+=4)A(this,s,s+3),A(this,s+1,s+2);return this},"swap32"),r.prototype.swap64=e(function(){let t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let s=0;s<t;s+=8)A(this,s,s+7),A(this,s+1,s+6),A(this,s+2,s+5),A(this,s+3,s+4);return this},"swap64"),r.prototype.toString=e(function(){let t=this.length;return t===0?"":arguments.length===0?ae(this,0,t):j.apply(this,arguments)},"toString"),r.prototype.toLocaleString=r.prototype.toString,r.prototype.equals=e(function(t){if(!r.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:r.compare(this,t)===0},"equals"),r.prototype.inspect=e(function(){let t="",s=$i.INSPECT_MAX_BYTES;return t=this.toString("hex",0,s).replace(/(.{2})/g,"$1 ").trim(),this.length>s&&(t+=" ... "),"<Buffer "+t+">"},"inspect2"),f&&(r.prototype[f]=r.prototype.inspect),r.prototype.compare=e(function(t,s,h,v,R){if(xe(t,Uint8Array)&&(t=r.from(t,t.offset,t.byteLength)),!r.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(s===void 0&&(s=0),h===void 0&&(h=t?t.length:0),v===void 0&&(v=0),R===void 0&&(R=this.length),s<0||h>t.length||v<0||R>this.length)throw new RangeError("out of range index");if(v>=R&&s>=h)return 0;if(v>=R)return-1;if(s>=h)return 1;if(s>>>=0,h>>>=0,v>>>=0,R>>>=0,this===t)return 0;let P=R-v,C=h-s,Z=Math.min(P,C),oe=this.slice(v,R),Ae=t.slice(s,h);for(let le=0;le<Z;++le)if(oe[le]!==Ae[le]){P=oe[le],C=Ae[le];break}return P<C?-1:C<P?1:0},"compare");function I(t,s,h,v,R){if(t.length===0)return-1;if(typeof h=="string"?(v=h,h=0):h>2147483647?h=2147483647:h<-2147483648&&(h=-2147483648),h=+h,Oe(h)&&(h=R?0:t.length-1),h<0&&(h=t.length+h),h>=t.length){if(R)return-1;h=t.length-1}else if(h<0)if(R)h=0;else return-1;if(typeof s=="string"&&(s=r.from(s,v)),r.isBuffer(s))return s.length===0?-1:U(t,s,h,v,R);if(typeof s=="number")return s=s&255,typeof Uint8Array.prototype.indexOf=="function"?R?Uint8Array.prototype.indexOf.call(t,s,h):Uint8Array.prototype.lastIndexOf.call(t,s,h):U(t,[s],h,v,R);throw new TypeError("val must be string, number or Buffer")}l(I,"S"),e(I,"bidirectionalIndexOf");function U(t,s,h,v,R){let P=1,C=t.length,Z=s.length;if(v!==void 0&&(v=String(v).toLowerCase(),v==="ucs2"||v==="ucs-2"||v==="utf16le"||v==="utf-16le")){if(t.length<2||s.length<2)return-1;P=2,C/=2,Z/=2,h/=2}function oe(le,Fe){return P===1?le[Fe]:le.readUInt16BE(Fe*P)}l(oe,"re"),e(oe,"read");let Ae;if(R){let le=-1;for(Ae=h;Ae<C;Ae++)if(oe(t,Ae)===oe(s,le===-1?0:Ae-le)){if(le===-1&&(le=Ae),Ae-le+1===Z)return le*P}else le!==-1&&(Ae-=Ae-le),le=-1}else for(h+Z>C&&(h=C-Z),Ae=h;Ae>=0;Ae--){let le=!0;for(let Fe=0;Fe<Z;Fe++)if(oe(t,Ae+Fe)!==oe(s,Fe)){le=!1;break}if(le)return Ae}return-1}l(U,"B"),e(U,"arrayIndexOf"),r.prototype.includes=e(function(t,s,h){return this.indexOf(t,s,h)!==-1},"includes"),r.prototype.indexOf=e(function(t,s,h){return I(this,t,s,h,!0)},"indexOf"),r.prototype.lastIndexOf=e(function(t,s,h){return I(this,t,s,h,!1)},"lastIndexOf");function M(t,s,h,v){h=Number(h)||0;let R=t.length-h;v?(v=Number(v),v>R&&(v=R)):v=R;let P=s.length;v>P/2&&(v=P/2);let C;for(C=0;C<v;++C){let Z=parseInt(s.substr(C*2,2),16);if(Oe(Z))return C;t[h+C]=Z}return C}l(M,"I"),e(M,"hexWrite");function ee(t,s,h,v){return Ne(Ee(s,t.length-h),t,h,v)}l(ee,"D"),e(ee,"utf8Write");function V(t,s,h,v){return Ne(ke(s),t,h,v)}l(V,"L"),e(V,"asciiWrite");function q(t,s,h,v){return Ne(ge(s),t,h,v)}l(q,"C"),e(q,"base64Write");function G(t,s,h,v){return Ne(be(s,t.length-h),t,h,v)}l(G,"j"),e(G,"ucs2Write"),r.prototype.write=e(function(t,s,h,v){if(s===void 0)v="utf8",h=this.length,s=0;else if(h===void 0&&typeof s=="string")v=s,h=this.length,s=0;else if(isFinite(s))s=s>>>0,isFinite(h)?(h=h>>>0,v===void 0&&(v="utf8")):(v=h,h=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let R=this.length-s;if((h===void 0||h>R)&&(h=R),t.length>0&&(h<0||s<0)||s>this.length)throw new RangeError("Attempt to write outside buffer bounds");v||(v="utf8");let P=!1;for(;;)switch(v){case"hex":return M(this,t,s,h);case"utf8":case"utf-8":return ee(this,t,s,h);case"ascii":case"latin1":case"binary":return V(this,t,s,h);case"base64":return q(this,t,s,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,t,s,h);default:if(P)throw new TypeError("Unknown encoding: "+v);v=(""+v).toLowerCase(),P=!0}},"write"),r.prototype.toJSON=e(function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},"toJSON");function re(t,s,h){return s===0&&h===t.length?o.fromByteArray(t):o.fromByteArray(t.slice(s,h))}l(re,"q"),e(re,"base64Slice");function ae(t,s,h){h=Math.min(t.length,h);let v=[],R=s;for(;R<h;){let P=t[R],C=null,Z=P>239?4:P>223?3:P>191?2:1;if(R+Z<=h){let oe,Ae,le,Fe;switch(Z){case 1:P<128&&(C=P);break;case 2:oe=t[R+1],(oe&192)===128&&(Fe=(P&31)<<6|oe&63,Fe>127&&(C=Fe));break;case 3:oe=t[R+1],Ae=t[R+2],(oe&192)===128&&(Ae&192)===128&&(Fe=(P&15)<<12|(oe&63)<<6|Ae&63,Fe>2047&&(Fe<55296||Fe>57343)&&(C=Fe));break;case 4:oe=t[R+1],Ae=t[R+2],le=t[R+3],(oe&192)===128&&(Ae&192)===128&&(le&192)===128&&(Fe=(P&15)<<18|(oe&63)<<12|(Ae&63)<<6|le&63,Fe>65535&&Fe<1114112&&(C=Fe))}}C===null?(C=65533,Z=1):C>65535&&(C-=65536,v.push(C>>>10&1023|55296),C=56320|C&1023),v.push(C),R+=Z}return we(v)}l(ae,"Z"),e(ae,"utf8Slice");let de=4096;function we(t){let s=t.length;if(s<=de)return String.fromCharCode.apply(String,t);let h="",v=0;for(;v<s;)h+=String.fromCharCode.apply(String,t.slice(v,v+=de));return h}l(we,"se"),e(we,"decodeCodePointsArray");function Ie(t,s,h){let v="";h=Math.min(t.length,h);for(let R=s;R<h;++R)v+=String.fromCharCode(t[R]&127);return v}l(Ie,"_e"),e(Ie,"asciiSlice");function je(t,s,h){let v="";h=Math.min(t.length,h);for(let R=s;R<h;++R)v+=String.fromCharCode(t[R]);return v}l(je,"pe"),e(je,"latin1Slice");function se(t,s,h){let v=t.length;(!s||s<0)&&(s=0),(!h||h<0||h>v)&&(h=v);let R="";for(let P=s;P<h;++P)R+=Pe[t[P]];return R}l(se,"Q"),e(se,"hexSlice");function Te(t,s,h){let v=t.slice(s,h),R="";for(let P=0;P<v.length-1;P+=2)R+=String.fromCharCode(v[P]+v[P+1]*256);return R}l(Te,"he"),e(Te,"utf16leSlice"),r.prototype.slice=e(function(t,s){let h=this.length;t=~~t,s=s===void 0?h:~~s,t<0?(t+=h,t<0&&(t=0)):t>h&&(t=h),s<0?(s+=h,s<0&&(s=0)):s>h&&(s=h),s<t&&(s=t);let v=this.subarray(t,s);return Object.setPrototypeOf(v,r.prototype),v},"slice");function J(t,s,h){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+s>h)throw new RangeError("Trying to access beyond buffer length")}l(J,"U"),e(J,"checkOffset"),r.prototype.readUintLE=r.prototype.readUIntLE=e(function(t,s,h){t=t>>>0,s=s>>>0,h||J(t,s,this.length);let v=this[t],R=1,P=0;for(;++P<s&&(R*=256);)v+=this[t+P]*R;return v},"readUIntLE"),r.prototype.readUintBE=r.prototype.readUIntBE=e(function(t,s,h){t=t>>>0,s=s>>>0,h||J(t,s,this.length);let v=this[t+--s],R=1;for(;s>0&&(R*=256);)v+=this[t+--s]*R;return v},"readUIntBE"),r.prototype.readUint8=r.prototype.readUInt8=e(function(t,s){return t=t>>>0,s||J(t,1,this.length),this[t]},"readUInt8"),r.prototype.readUint16LE=r.prototype.readUInt16LE=e(function(t,s){return t=t>>>0,s||J(t,2,this.length),this[t]|this[t+1]<<8},"readUInt16LE"),r.prototype.readUint16BE=r.prototype.readUInt16BE=e(function(t,s){return t=t>>>0,s||J(t,2,this.length),this[t]<<8|this[t+1]},"readUInt16BE"),r.prototype.readUint32LE=r.prototype.readUInt32LE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216},"readUInt32LE"),r.prototype.readUint32BE=r.prototype.readUInt32BE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])},"readUInt32BE"),r.prototype.readBigUInt64LE=$e(e(function(t){t=t>>>0,N(t,"offset");let s=this[t],h=this[t+7];(s===void 0||h===void 0)&&x(t,this.length-8);let v=s+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,R=this[++t]+this[++t]*2**8+this[++t]*2**16+h*2**24;return BigInt(v)+(BigInt(R)<<BigInt(32))},"readBigUInt64LE")),r.prototype.readBigUInt64BE=$e(e(function(t){t=t>>>0,N(t,"offset");let s=this[t],h=this[t+7];(s===void 0||h===void 0)&&x(t,this.length-8);let v=s*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],R=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+h;return(BigInt(v)<<BigInt(32))+BigInt(R)},"readBigUInt64BE")),r.prototype.readIntLE=e(function(t,s,h){t=t>>>0,s=s>>>0,h||J(t,s,this.length);let v=this[t],R=1,P=0;for(;++P<s&&(R*=256);)v+=this[t+P]*R;return R*=128,v>=R&&(v-=Math.pow(2,8*s)),v},"readIntLE"),r.prototype.readIntBE=e(function(t,s,h){t=t>>>0,s=s>>>0,h||J(t,s,this.length);let v=s,R=1,P=this[t+--v];for(;v>0&&(R*=256);)P+=this[t+--v]*R;return R*=128,P>=R&&(P-=Math.pow(2,8*s)),P},"readIntBE"),r.prototype.readInt8=e(function(t,s){return t=t>>>0,s||J(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]},"readInt8"),r.prototype.readInt16LE=e(function(t,s){t=t>>>0,s||J(t,2,this.length);let h=this[t]|this[t+1]<<8;return h&32768?h|4294901760:h},"readInt16LE"),r.prototype.readInt16BE=e(function(t,s){t=t>>>0,s||J(t,2,this.length);let h=this[t+1]|this[t]<<8;return h&32768?h|4294901760:h},"readInt16BE"),r.prototype.readInt32LE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},"readInt32LE"),r.prototype.readInt32BE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},"readInt32BE"),r.prototype.readBigInt64LE=$e(e(function(t){t=t>>>0,N(t,"offset");let s=this[t],h=this[t+7];(s===void 0||h===void 0)&&x(t,this.length-8);let v=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(h<<24);return(BigInt(v)<<BigInt(32))+BigInt(s+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24)},"readBigInt64LE")),r.prototype.readBigInt64BE=$e(e(function(t){t=t>>>0,N(t,"offset");let s=this[t],h=this[t+7];(s===void 0||h===void 0)&&x(t,this.length-8);let v=(s<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(v)<<BigInt(32))+BigInt(this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+h)},"readBigInt64BE")),r.prototype.readFloatLE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),i.read(this,t,!0,23,4)},"readFloatLE"),r.prototype.readFloatBE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),i.read(this,t,!1,23,4)},"readFloatBE"),r.prototype.readDoubleLE=e(function(t,s){return t=t>>>0,s||J(t,8,this.length),i.read(this,t,!0,52,8)},"readDoubleLE"),r.prototype.readDoubleBE=e(function(t,s){return t=t>>>0,s||J(t,8,this.length),i.read(this,t,!1,52,8)},"readDoubleBE");function ue(t,s,h,v,R,P){if(!r.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(s>R||s<P)throw new RangeError('"value" argument is out of bounds');if(h+v>t.length)throw new RangeError("Index out of range")}l(ue,"J"),e(ue,"checkInt"),r.prototype.writeUintLE=r.prototype.writeUIntLE=e(function(t,s,h,v){if(t=+t,s=s>>>0,h=h>>>0,!v){let C=Math.pow(2,8*h)-1;ue(this,t,s,h,C,0)}let R=1,P=0;for(this[s]=t&255;++P<h&&(R*=256);)this[s+P]=t/R&255;return s+h},"writeUIntLE"),r.prototype.writeUintBE=r.prototype.writeUIntBE=e(function(t,s,h,v){if(t=+t,s=s>>>0,h=h>>>0,!v){let C=Math.pow(2,8*h)-1;ue(this,t,s,h,C,0)}let R=h-1,P=1;for(this[s+R]=t&255;--R>=0&&(P*=256);)this[s+R]=t/P&255;return s+h},"writeUIntBE"),r.prototype.writeUint8=r.prototype.writeUInt8=e(function(t,s,h){return t=+t,s=s>>>0,h||ue(this,t,s,1,255,0),this[s]=t&255,s+1},"writeUInt8"),r.prototype.writeUint16LE=r.prototype.writeUInt16LE=e(function(t,s,h){return t=+t,s=s>>>0,h||ue(this,t,s,2,65535,0),this[s]=t&255,this[s+1]=t>>>8,s+2},"writeUInt16LE"),r.prototype.writeUint16BE=r.prototype.writeUInt16BE=e(function(t,s,h){return t=+t,s=s>>>0,h||ue(this,t,s,2,65535,0),this[s]=t>>>8,this[s+1]=t&255,s+2},"writeUInt16BE"),r.prototype.writeUint32LE=r.prototype.writeUInt32LE=e(function(t,s,h){return t=+t,s=s>>>0,h||ue(this,t,s,4,4294967295,0),this[s+3]=t>>>24,this[s+2]=t>>>16,this[s+1]=t>>>8,this[s]=t&255,s+4},"writeUInt32LE"),r.prototype.writeUint32BE=r.prototype.writeUInt32BE=e(function(t,s,h){return t=+t,s=s>>>0,h||ue(this,t,s,4,4294967295,0),this[s]=t>>>24,this[s+1]=t>>>16,this[s+2]=t>>>8,this[s+3]=t&255,s+4},"writeUInt32BE");function te(t,s,h,v,R){ve(s,v,R,t,h,7);let P=Number(s&BigInt(4294967295));t[h++]=P,P=P>>8,t[h++]=P,P=P>>8,t[h++]=P,P=P>>8,t[h++]=P;let C=Number(s>>BigInt(32)&BigInt(4294967295));return t[h++]=C,C=C>>8,t[h++]=C,C=C>>8,t[h++]=C,C=C>>8,t[h++]=C,h}l(te,"z"),e(te,"wrtBigUInt64LE");function X(t,s,h,v,R){ve(s,v,R,t,h,7);let P=Number(s&BigInt(4294967295));t[h+7]=P,P=P>>8,t[h+6]=P,P=P>>8,t[h+5]=P,P=P>>8,t[h+4]=P;let C=Number(s>>BigInt(32)&BigInt(4294967295));return t[h+3]=C,C=C>>8,t[h+2]=C,C=C>>8,t[h+1]=C,C=C>>8,t[h]=C,h+8}l(X,"V"),e(X,"wrtBigUInt64BE"),r.prototype.writeBigUInt64LE=$e(e(function(t,s=0){return te(this,t,s,BigInt(0),BigInt("0xffffffffffffffff"))},"writeBigUInt64LE")),r.prototype.writeBigUInt64BE=$e(e(function(t,s=0){return X(this,t,s,BigInt(0),BigInt("0xffffffffffffffff"))},"writeBigUInt64BE")),r.prototype.writeIntLE=e(function(t,s,h,v){if(t=+t,s=s>>>0,!v){let Z=Math.pow(2,8*h-1);ue(this,t,s,h,Z-1,-Z)}let R=0,P=1,C=0;for(this[s]=t&255;++R<h&&(P*=256);)t<0&&C===0&&this[s+R-1]!==0&&(C=1),this[s+R]=(t/P>>0)-C&255;return s+h},"writeIntLE"),r.prototype.writeIntBE=e(function(t,s,h,v){if(t=+t,s=s>>>0,!v){let Z=Math.pow(2,8*h-1);ue(this,t,s,h,Z-1,-Z)}let R=h-1,P=1,C=0;for(this[s+R]=t&255;--R>=0&&(P*=256);)t<0&&C===0&&this[s+R+1]!==0&&(C=1),this[s+R]=(t/P>>0)-C&255;return s+h},"writeIntBE"),r.prototype.writeInt8=e(function(t,s,h){return t=+t,s=s>>>0,h||ue(this,t,s,1,127,-128),t<0&&(t=255+t+1),this[s]=t&255,s+1},"writeInt8"),r.prototype.writeInt16LE=e(function(t,s,h){return t=+t,s=s>>>0,h||ue(this,t,s,2,32767,-32768),this[s]=t&255,this[s+1]=t>>>8,s+2},"writeInt16LE"),r.prototype.writeInt16BE=e(function(t,s,h){return t=+t,s=s>>>0,h||ue(this,t,s,2,32767,-32768),this[s]=t>>>8,this[s+1]=t&255,s+2},"writeInt16BE"),r.prototype.writeInt32LE=e(function(t,s,h){return t=+t,s=s>>>0,h||ue(this,t,s,4,2147483647,-2147483648),this[s]=t&255,this[s+1]=t>>>8,this[s+2]=t>>>16,this[s+3]=t>>>24,s+4},"writeInt32LE"),r.prototype.writeInt32BE=e(function(t,s,h){return t=+t,s=s>>>0,h||ue(this,t,s,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[s]=t>>>24,this[s+1]=t>>>16,this[s+2]=t>>>8,this[s+3]=t&255,s+4},"writeInt32BE"),r.prototype.writeBigInt64LE=$e(e(function(t,s=0){return te(this,t,s,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))},"writeBigInt64LE")),r.prototype.writeBigInt64BE=$e(e(function(t,s=0){return X(this,t,s,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))},"writeBigInt64BE"));function ye(t,s,h,v,R,P){if(h+v>t.length)throw new RangeError("Index out of range");if(h<0)throw new RangeError("Index out of range")}l(ye,"G"),e(ye,"checkIEEE754");function Re(t,s,h,v,R){return s=+s,h=h>>>0,R||ye(t,s,h,4),i.write(t,s,h,v,23,4),h+4}l(Re,"fe"),e(Re,"writeFloat"),r.prototype.writeFloatLE=e(function(t,s,h){return Re(this,t,s,!0,h)},"writeFloatLE"),r.prototype.writeFloatBE=e(function(t,s,h){return Re(this,t,s,!1,h)},"writeFloatBE");function De(t,s,h,v,R){return s=+s,h=h>>>0,R||ye(t,s,h,8),i.write(t,s,h,v,52,8),h+8}l(De,"be"),e(De,"writeDouble"),r.prototype.writeDoubleLE=e(function(t,s,h){return De(this,t,s,!0,h)},"writeDoubleLE"),r.prototype.writeDoubleBE=e(function(t,s,h){return De(this,t,s,!1,h)},"writeDoubleBE"),r.prototype.copy=e(function(t,s,h,v){if(!r.isBuffer(t))throw new TypeError("argument should be a Buffer");if(h||(h=0),!v&&v!==0&&(v=this.length),s>=t.length&&(s=t.length),s||(s=0),v>0&&v<h&&(v=h),v===h||t.length===0||this.length===0)return 0;if(s<0)throw new RangeError("targetStart out of bounds");if(h<0||h>=this.length)throw new RangeError("Index out of range");if(v<0)throw new RangeError("sourceEnd out of bounds");v>this.length&&(v=this.length),t.length-s<v-h&&(v=t.length-s+h);let R=v-h;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(s,h,v):Uint8Array.prototype.set.call(t,this.subarray(h,v),s),R},"copy"),r.prototype.fill=e(function(t,s,h,v){if(typeof t=="string"){if(typeof s=="string"?(v=s,s=0,h=this.length):typeof h=="string"&&(v=h,h=this.length),v!==void 0&&typeof v!="string")throw new TypeError("encoding must be a string");if(typeof v=="string"&&!r.isEncoding(v))throw new TypeError("Unknown encoding: "+v);if(t.length===1){let P=t.charCodeAt(0);(v==="utf8"&&P<128||v==="latin1")&&(t=P)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(s<0||this.length<s||this.length<h)throw new RangeError("Out of range index");if(h<=s)return this;s=s>>>0,h=h===void 0?this.length:h>>>0,t||(t=0);let R;if(typeof t=="number")for(R=s;R<h;++R)this[R]=t;else{let P=r.isBuffer(t)?t:r.from(t,v),C=P.length;if(C===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(R=0;R<h-s;++R)this[R+s]=P[R%C]}return this},"fill");let Y={};function H(t,s,h){var R;var v;Y[t]=(v=(R=class extends h{constructor(){super(),Object.defineProperty(this,"message",{value:s.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(C){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:C,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}},l(R,"w"),R),e(v,"NodeError"),v)}l(H,"$"),e(H,"E"),H("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),H("ERR_INVALID_ARG_TYPE",function(t,s){return`The "${t}" argument must be of type number. Received type ${typeof s}`},TypeError),H("ERR_OUT_OF_RANGE",function(t,s,h){let v=`The value of "${t}" is out of range.`,R=h;return Number.isInteger(h)&&Math.abs(h)>2**32?R=Q(String(h)):typeof h=="bigint"&&(R=String(h),(h>BigInt(2)**BigInt(32)||h<-(BigInt(2)**BigInt(32)))&&(R=Q(R)),R+="n"),v+=` It must be ${s}. Received ${R}`,v},RangeError);function Q(t){let s="",h=t.length,v=t[0]==="-"?1:0;for(;h>=v+4;h-=3)s=`_${t.slice(h-3,h)}${s}`;return`${t.slice(0,h)}${s}`}l(Q,"H"),e(Q,"addNumericalSeparator");function fe(t,s,h){N(s,"offset"),(t[s]===void 0||t[s+h]===void 0)&&x(s,t.length-(h+1))}l(fe,"te"),e(fe,"checkBounds");function ve(t,s,h,v,R,P){if(t>h||t<s){let C=typeof s=="bigint"?"n":"",Z;throw s===0||s===BigInt(0)?Z=`>= 0${C} and < 2${C} ** ${(P+1)*8}${C}`:Z=`>= -(2${C} ** ${(P+1)*8-1}${C}) and < 2 ** ${(P+1)*8-1}${C}`,new Y.ERR_OUT_OF_RANGE("value",Z,t)}fe(v,R,P)}l(ve,"oe"),e(ve,"checkIntBI");function N(t,s){if(typeof t!="number")throw new Y.ERR_INVALID_ARG_TYPE(s,"number",t)}l(N,"P"),e(N,"validateNumber");function x(t,s,h){throw Math.floor(t)!==t?(N(t,h),new Y.ERR_OUT_OF_RANGE("offset","an integer",t)):s<0?new Y.ERR_BUFFER_OUT_OF_BOUNDS:new Y.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${s}`,t)}l(x,"x"),e(x,"boundsError");let D=/[^+/0-9A-Za-z-_]/g;function z(t){if(t=t.split("=")[0],t=t.trim().replace(D,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}l(z,"Y"),e(z,"base64clean");function Ee(t,s){s=s||1/0;let h,v=t.length,R=null,P=[];for(let C=0;C<v;++C){if(h=t.charCodeAt(C),h>55295&&h<57344){if(!R){if(h>56319){(s-=3)>-1&&P.push(239,191,189);continue}else if(C+1===v){(s-=3)>-1&&P.push(239,191,189);continue}R=h;continue}if(h<56320){(s-=3)>-1&&P.push(239,191,189),R=h;continue}h=(R-55296<<10|h-56320)+65536}else R&&(s-=3)>-1&&P.push(239,191,189);if(R=null,h<128){if((s-=1)<0)break;P.push(h)}else if(h<2048){if((s-=2)<0)break;P.push(h>>6|192,h&63|128)}else if(h<65536){if((s-=3)<0)break;P.push(h>>12|224,h>>6&63|128,h&63|128)}else if(h<1114112){if((s-=4)<0)break;P.push(h>>18|240,h>>12&63|128,h>>6&63|128,h&63|128)}else throw new Error("Invalid code point")}return P}l(Ee,"ue"),e(Ee,"utf8ToBytes");function ke(t){let s=[];for(let h=0;h<t.length;++h)s.push(t.charCodeAt(h)&255);return s}l(ke,"le"),e(ke,"asciiToBytes");function be(t,s){let h,v,R,P=[];for(let C=0;C<t.length&&!((s-=2)<0);++C)h=t.charCodeAt(C),v=h>>8,R=h%256,P.push(R),P.push(v);return P}l(be,"ee"),e(be,"utf16leToBytes");function ge(t){return o.toByteArray(z(t))}l(ge,"ie"),e(ge,"base64ToBytes");function Ne(t,s,h,v){let R;for(R=0;R<v&&!(R+h>=s.length||R>=t.length);++R)s[R+h]=t[R];return R}l(Ne,"me"),e(Ne,"blitBuffer");function xe(t,s){return t instanceof s||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===s.name}l(xe,"ye"),e(xe,"isInstance");function Oe(t){return t!==t}l(Oe,"ve"),e(Oe,"numberIsNaN");let Pe=function(){let t="0123456789abcdef",s=new Array(256);for(let h=0;h<16;++h){let v=h*16;for(let R=0;R<16;++R)s[v+R]=t[h]+t[R]}return s}();function $e(t){return typeof BigInt>"u"?Ke:t}l($e,"Be"),e($e,"defineBigIntMethod");function Ke(){throw new Error("BigInt not supported")}return l(Ke,"Xe"),e(Ke,"BufferBigIntNotDefined"),$i}function IO(){if(Ib)return Il;Ib=!0;var o=typeof Reflect=="object"?Reflect:null,i=o&&typeof o.apply=="function"?o.apply:e(function(A,I,U){return Function.prototype.apply.call(A,I,U)},"ReflectApply2"),f;o&&typeof o.ownKeys=="function"?f=o.ownKeys:Object.getOwnPropertySymbols?f=e(function(A){return Object.getOwnPropertyNames(A).concat(Object.getOwnPropertySymbols(A))},"ReflectOwnKeys2"):f=e(function(A){return Object.getOwnPropertyNames(A)},"ReflectOwnKeys2");function g(A){console&&console.warn&&console.warn(A)}l(g,"n"),e(g,"ProcessEmitWarning");var a=Number.isNaN||e(function(A){return A!==A},"NumberIsNaN2");function n(){n.init.call(this)}l(n,"s"),e(n,"EventEmitter2"),Il=n,Il.once=k,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._eventsCount=0,n.prototype._maxListeners=void 0;var r=10;function u(A){if(typeof A!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof A)}l(u,"f"),e(u,"checkListener"),Object.defineProperty(n,"defaultMaxListeners",{enumerable:!0,get:e(function(){return r},"get"),set:e(function(A){if(typeof A!="number"||A<0||a(A))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+A+".");r=A},"set")}),n.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},n.prototype.setMaxListeners=e(function(A){if(typeof A!="number"||A<0||a(A))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+A+".");return this._maxListeners=A,this},"setMaxListeners");function p(A){return A._maxListeners===void 0?n.defaultMaxListeners:A._maxListeners}l(p,"h"),e(p,"_getMaxListeners"),n.prototype.getMaxListeners=e(function(){return p(this)},"getMaxListeners"),n.prototype.emit=e(function(A){for(var I=[],U=1;U<arguments.length;U++)I.push(arguments[U]);var M=A==="error",ee=this._events;if(ee!==void 0)M=M&&ee.error===void 0;else if(!M)return!1;if(M){var V;if(I.length>0&&(V=I[0]),V instanceof Error)throw V;var q=new Error("Unhandled error."+(V?" ("+V.message+")":""));throw q.context=V,q}var G=ee[A];if(G===void 0)return!1;if(typeof G=="function")i(G,this,I);else for(var re=G.length,ae=_(G,re),U=0;U<re;++U)i(ae[U],this,I);return!0},"emit2");function c(A,I,U,M){var ee,V,q;if(u(U),V=A._events,V===void 0?(V=A._events=Object.create(null),A._eventsCount=0):(V.newListener!==void 0&&(A.emit("newListener",I,U.listener?U.listener:U),V=A._events),q=V[I]),q===void 0)q=V[I]=U,++A._eventsCount;else if(typeof q=="function"?q=V[I]=M?[U,q]:[q,U]:M?q.unshift(U):q.push(U),ee=p(A),ee>0&&q.length>ee&&!q.warned){q.warned=!0;var G=new Error("Possible EventEmitter memory leak detected. "+q.length+" "+String(I)+" listeners added. Use emitter.setMaxListeners() to increase limit");G.name="MaxListenersExceededWarning",G.emitter=A,G.type=I,G.count=q.length,g(G)}return A}l(c,"c"),e(c,"_addListener"),n.prototype.addListener=e(function(A,I){return c(this,A,I,!1)},"addListener2"),n.prototype.on=n.prototype.addListener,n.prototype.prependListener=e(function(A,I){return c(this,A,I,!0)},"prependListener2");function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}l(d,"d"),e(d,"onceWrapper");function m(A,I,U){var M={fired:!1,wrapFn:void 0,target:A,type:I,listener:U},ee=d.bind(M);return ee.listener=U,M.wrapFn=ee,ee}l(m,"y"),e(m,"_onceWrap"),n.prototype.once=e(function(A,I){return u(I),this.on(A,m(this,A,I)),this},"once4"),n.prototype.prependOnceListener=e(function(A,I){return u(I),this.prependListener(A,m(this,A,I)),this},"prependOnceListener2"),n.prototype.removeListener=e(function(A,I){var U,M,ee,V,q;if(u(I),M=this._events,M===void 0)return this;if(U=M[A],U===void 0)return this;if(U===I||U.listener===I)--this._eventsCount===0?this._events=Object.create(null):(delete M[A],M.removeListener&&this.emit("removeListener",A,U.listener||I));else if(typeof U!="function"){for(ee=-1,V=U.length-1;V>=0;V--)if(U[V]===I||U[V].listener===I){q=U[V].listener,ee=V;break}if(ee<0)return this;ee===0?U.shift():S(U,ee),U.length===1&&(M[A]=U[0]),M.removeListener!==void 0&&this.emit("removeListener",A,q||I)}return this},"removeListener2"),n.prototype.off=n.prototype.removeListener,n.prototype.removeAllListeners=e(function(A){var I,U,M;if(U=this._events,U===void 0)return this;if(U.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):U[A]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete U[A]),this;if(arguments.length===0){var ee=Object.keys(U),V;for(M=0;M<ee.length;++M)V=ee[M],V!=="removeListener"&&this.removeAllListeners(V);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(I=U[A],typeof I=="function")this.removeListener(A,I);else if(I!==void 0)for(M=I.length-1;M>=0;M--)this.removeListener(A,I[M]);return this},"removeAllListeners2");function y(A,I,U){var M=A._events;if(M===void 0)return[];var ee=M[I];return ee===void 0?[]:typeof ee=="function"?U?[ee.listener||ee]:[ee]:U?T(ee):_(ee,ee.length)}l(y,"m"),e(y,"_listeners"),n.prototype.listeners=e(function(A){return y(this,A,!0)},"listeners2"),n.prototype.rawListeners=e(function(A){return y(this,A,!1)},"rawListeners"),n.listenerCount=function(A,I){return typeof A.listenerCount=="function"?A.listenerCount(I):w.call(A,I)},n.prototype.listenerCount=w;function w(A){var I=this._events;if(I!==void 0){var U=I[A];if(typeof U=="function")return 1;if(U!==void 0)return U.length}return 0}l(w,"g"),e(w,"listenerCount2"),n.prototype.eventNames=e(function(){return this._eventsCount>0?f(this._events):[]},"eventNames");function _(A,I){for(var U=new Array(I),M=0;M<I;++M)U[M]=A[M];return U}l(_,"v"),e(_,"arrayClone");function S(A,I){for(;I+1<A.length;I++)A[I]=A[I+1];A.pop()}l(S,"_"),e(S,"spliceOne");function T(A){for(var I=new Array(A.length),U=0;U<I.length;++U)I[U]=A[U].listener||A[U];return I}l(T,"b"),e(T,"unwrapListeners");function k(A,I){return new Promise(function(U,M){function ee(q){A.removeListener(I,V),M(q)}l(ee,"D"),e(ee,"errorListener");function V(){typeof A.removeListener=="function"&&A.removeListener("error",ee),U([].slice.call(arguments))}l(V,"L"),e(V,"resolver"),j(A,I,V,{once:!0}),I!=="error"&&E(A,ee,{once:!0})})}l(k,"E"),e(k,"once3");function E(A,I,U){typeof A.on=="function"&&j(A,"error",I,U)}l(E,"R"),e(E,"addErrorHandlerIfEventEmitter");function j(A,I,U,M){if(typeof A.on=="function")M.once?A.once(I,U):A.on(I,U);else if(typeof A.addEventListener=="function")A.addEventListener(I,e(l(function ee(V){M.once&&A.removeEventListener(I,ee),U(V)},"D"),"wrapListener"));else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof A)}return l(j,"T"),e(j,"eventTargetAgnosticAddListener"),Il}function od(o){throw new Error("Node.js process "+o+" is not supported by JSPM core outside of Node.js")}function G6(){!wa||!la||(wa=!1,la.length?Ln=la.concat(Ln):Gl=-1,Ln.length&&LE())}function LE(){if(!wa){var o=setTimeout(G6,0);wa=!0;for(var i=Ln.length;i;){for(la=Ln,Ln=[];++Gl<i;)la&&la[Gl].run();Gl=-1,i=Ln.length}la=null,wa=!1,clearTimeout(o)}}function xO(o){var i=new Array(arguments.length-1);if(arguments.length>1)for(var f=1;f<arguments.length;f++)i[f-1]=arguments[f];Ln.push(new Ob(o,i)),Ln.length===1&&!wa&&setTimeout(LE,0)}function Ob(o,i){this.fun=o,this.array=i}function vr(){}function jO(o){od("_linkedBinding")}function CO(o){od("dlopen")}function PO(){return[]}function LO(){return[]}function NO(o,i){if(!o)throw new Error(i||"assertion error")}function DO(){return!1}function UO(){return hi.now()/1e3}function nu(o){var i=Math.floor((Date.now()-hi.now())*.001),f=hi.now()*.001,g=Math.floor(f)+i,a=Math.floor(f%1*1e9);return o&&(g=g-o[0],a=a-o[1],a<0&&(g--,a+=ec)),[g,a]}function Xn(){return zn}function MO(o){return[]}function V6(){if(xb)return Es;xb=!0;var o=vi(),i=o.Buffer;function f(a,n){for(var r in a)n[r]=a[r]}l(f,"r"),e(f,"copyProps"),i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?Es=o:(f(o,Es),Es.Buffer=g);function g(a,n,r){return i(a,n,r)}return l(g,"n"),e(g,"SafeBuffer"),g.prototype=Object.create(i.prototype),f(i,g),g.from=function(a,n,r){if(typeof a=="number")throw new TypeError("Argument must not be a number");return i(a,n,r)},g.alloc=function(a,n,r){if(typeof a!="number")throw new TypeError("Argument must be a number");var u=i(a);return n!==void 0?typeof r=="string"?u.fill(n,r):u.fill(n):u.fill(0),u},g.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return i(a)},g.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return o.SlowBuffer(a)},Es}function $O(){if(jb)return tc;jb=!0;var o=V6().Buffer,i=o.isEncoding||function(k){switch(k=""+k,k&&k.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 f(k){if(!k)return"utf8";for(var E;;)switch(k){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 k;default:if(E)return;k=(""+k).toLowerCase(),E=!0}}l(f,"r"),e(f,"_normalizeEncoding");function g(k){var E=f(k);if(typeof E!="string"&&(o.isEncoding===i||!i(k)))throw new Error("Unknown encoding: "+k);return E||k}l(g,"n"),e(g,"normalizeEncoding"),tc.StringDecoder=a;function a(k){this.encoding=g(k);var E;switch(this.encoding){case"utf16le":this.text=m,this.end=y,E=4;break;case"utf8":this.fillLast=p,E=4;break;case"base64":this.text=w,this.end=_,E=3;break;default:this.write=S,this.end=T;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=o.allocUnsafe(E)}l(a,"a"),e(a,"StringDecoder2"),a.prototype.write=function(k){if(k.length===0)return"";var E,j;if(this.lastNeed){if(E=this.fillLast(k),E===void 0)return"";j=this.lastNeed,this.lastNeed=0}else j=0;return j<k.length?E?E+this.text(k,j):this.text(k,j):E||""},a.prototype.end=d,a.prototype.text=c,a.prototype.fillLast=function(k){if(this.lastNeed<=k.length)return k.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);k.copy(this.lastChar,this.lastTotal-this.lastNeed,0,k.length),this.lastNeed-=k.length};function n(k){return k<=127?0:k>>5===6?2:k>>4===14?3:k>>3===30?4:k>>6===2?-1:-2}l(n,"s"),e(n,"utf8CheckByte");function r(k,E,j){var A=E.length-1;if(A<j)return 0;var I=n(E[A]);return I>=0?(I>0&&(k.lastNeed=I-1),I):--A<j||I===-2?0:(I=n(E[A]),I>=0?(I>0&&(k.lastNeed=I-2),I):--A<j||I===-2?0:(I=n(E[A]),I>=0?(I>0&&(I===2?I=0:k.lastNeed=I-3),I):0))}l(r,"i"),e(r,"utf8CheckIncomplete");function u(k,E,j){if((E[0]&192)!==128)return k.lastNeed=0,"\uFFFD";if(k.lastNeed>1&&E.length>1){if((E[1]&192)!==128)return k.lastNeed=1,"\uFFFD";if(k.lastNeed>2&&E.length>2&&(E[2]&192)!==128)return k.lastNeed=2,"\uFFFD"}}l(u,"f"),e(u,"utf8CheckExtraBytes");function p(k){var E=this.lastTotal-this.lastNeed,j=u(this,k);if(j!==void 0)return j;if(this.lastNeed<=k.length)return k.copy(this.lastChar,E,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);k.copy(this.lastChar,E,0,k.length),this.lastNeed-=k.length}l(p,"h"),e(p,"utf8FillLast");function c(k,E){var j=r(this,k,E);if(!this.lastNeed)return k.toString("utf8",E);this.lastTotal=j;var A=k.length-(j-this.lastNeed);return k.copy(this.lastChar,0,A),k.toString("utf8",E,A)}l(c,"c"),e(c,"utf8Text");function d(k){var E=k&&k.length?this.write(k):"";return this.lastNeed?E+"\uFFFD":E}l(d,"d"),e(d,"utf8End");function m(k,E){if((k.length-E)%2===0){var j=k.toString("utf16le",E);if(j){var A=j.charCodeAt(j.length-1);if(A>=55296&&A<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=k[k.length-2],this.lastChar[1]=k[k.length-1],j.slice(0,-1)}return j}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=k[k.length-1],k.toString("utf16le",E,k.length-1)}l(m,"y"),e(m,"utf16Text");function y(k){var E=k&&k.length?this.write(k):"";if(this.lastNeed){var j=this.lastTotal-this.lastNeed;return E+this.lastChar.toString("utf16le",0,j)}return E}l(y,"m"),e(y,"utf16End");function w(k,E){var j=(k.length-E)%3;return j===0?k.toString("base64",E):(this.lastNeed=3-j,this.lastTotal=3,j===1?this.lastChar[0]=k[k.length-1]:(this.lastChar[0]=k[k.length-2],this.lastChar[1]=k[k.length-1]),k.toString("base64",E,k.length-j))}l(w,"g"),e(w,"base64Text");function _(k){var E=k&&k.length?this.write(k):"";return this.lastNeed?E+this.lastChar.toString("base64",0,3-this.lastNeed):E}l(_,"v"),e(_,"base64End");function S(k){return k.toString(this.encoding)}l(S,"_"),e(S,"simpleWrite");function T(k){return k&&k.length?this.write(k):""}return l(T,"b"),e(T,"simpleEnd"),tc}function NE(){return Pb||(Pb=!0,Cb=e(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var o={},i=Symbol("test"),f=Object(i);if(typeof i=="string"||Object.prototype.toString.call(i)!=="[object Symbol]"||Object.prototype.toString.call(f)!=="[object Symbol]")return!1;var g=42;o[i]=g;for(i in o)return!1;if(typeof Object.keys=="function"&&Object.keys(o).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(o).length!==0)return!1;var a=Object.getOwnPropertySymbols(o);if(a.length!==1||a[0]!==i||!Object.prototype.propertyIsEnumerable.call(o,i))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var n=Object.getOwnPropertyDescriptor(o,i);if(n.value!==g||n.enumerable!==!0)return!1}return!0},"hasSymbols")),Cb}function K6(){return Nb||(Nb=!0,Lb=Error),Lb}function J6(){return Ub||(Ub=!0,Db=EvalError),Db}function Y6(){return $b||($b=!0,Mb=RangeError),Mb}function Z6(){return zb||(zb=!0,Wb=ReferenceError),Wb}function DE(){return qb||(qb=!0,Hb=SyntaxError),Hb}function wf(){return Vb||(Vb=!0,Gb=TypeError),Gb}function Q6(){return Jb||(Jb=!0,Kb=URIError),Kb}function X6(){if(Yb)return nc;Yb=!0;var o=typeof Symbol<"u"&&Symbol,i=NE();return nc=e(function(){return typeof o!="function"||typeof Symbol!="function"||typeof o("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:i()},"hasNativeSymbols"),nc}function ej(){if(Zb)return ic;Zb=!0;var o={__proto__:null,foo:{}},i=Object;return ic=e(function(){return{__proto__:o}.foo===o.foo&&!(o instanceof i)},"hasProto"),ic}function tj(){if(Qb)return oc;Qb=!0;var o="Function.prototype.bind called on incompatible ",i=Object.prototype.toString,f=Math.max,g="[object Function]",a=e(function(u,p){for(var c=[],d=0;d<u.length;d+=1)c[d]=u[d];for(var m=0;m<p.length;m+=1)c[m+u.length]=p[m];return c},"concatty2"),n=e(function(u,p){for(var c=[],d=p,m=0;d<u.length;d+=1,m+=1)c[m]=u[d];return c},"slicy2"),r=e(function(u,p){for(var c="",d=0;d<u.length;d+=1)c+=u[d],d+1<u.length&&(c+=p);return c},"joiny");return oc=e(function(u){var p=this;if(typeof p!="function"||i.apply(p)!==g)throw new TypeError(o+p);for(var c=n(arguments,1),d,m=e(function(){if(this instanceof d){var T=p.apply(this,a(c,arguments));return Object(T)===T?T:this}return p.apply(u,a(c,arguments))},"binder"),y=f(0,p.length-c.length),w=[],_=0;_<y;_++)w[_]="$"+_;if(d=Function("binder","return function ("+r(w,",")+"){ return binder.apply(this,arguments); }")(m),p.prototype){var S=e(function(){},"Empty2");S.prototype=p.prototype,d.prototype=new S,S.prototype=null}return d},"bind"),oc}function kd(){if(Xb)return ac;Xb=!0;var o=tj();return ac=Function.prototype.bind||o,ac}function rj(){if(e1)return sc;e1=!0;var o=Function.prototype.call,i=Object.prototype.hasOwnProperty,f=kd();return sc=f.call(o,i),sc}function Zs(){if(t1)return lc;t1=!0;var o,i=K6(),f=J6(),g=Y6(),a=Z6(),n=DE(),r=wf(),u=Q6(),p=Function,c=e(function(je){try{return p('"use strict"; return ('+je+").constructor;")()}catch{}},"getEvalledConstructor"),d=Object.getOwnPropertyDescriptor;if(d)try{d({},"")}catch{d=null}var m=e(function(){throw new r},"throwTypeError"),y=d?function(){try{return arguments.callee,m}catch{try{return d(arguments,"callee").get}catch{return m}}}():m,w=X6()(),_=ej()(),S=Object.getPrototypeOf||(_?function(je){return je.__proto__}:null),T={},k=typeof Uint8Array>"u"||!S?o:S(Uint8Array),E={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?o:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?o:ArrayBuffer,"%ArrayIteratorPrototype%":w&&S?S([][Symbol.iterator]()):o,"%AsyncFromSyncIteratorPrototype%":o,"%AsyncFunction%":T,"%AsyncGenerator%":T,"%AsyncGeneratorFunction%":T,"%AsyncIteratorPrototype%":T,"%Atomics%":typeof Atomics>"u"?o:Atomics,"%BigInt%":typeof BigInt>"u"?o:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?o:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?o:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?o:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":f,"%Float32Array%":typeof Float32Array>"u"?o:Float32Array,"%Float64Array%":typeof Float64Array>"u"?o:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?o:FinalizationRegistry,"%Function%":p,"%GeneratorFunction%":T,"%Int8Array%":typeof Int8Array>"u"?o:Int8Array,"%Int16Array%":typeof Int16Array>"u"?o:Int16Array,"%Int32Array%":typeof Int32Array>"u"?o:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&S?S(S([][Symbol.iterator]())):o,"%JSON%":typeof JSON=="object"?JSON:o,"%Map%":typeof Map>"u"?o:Map,"%MapIteratorPrototype%":typeof Map>"u"||!w||!S?o:S(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?o:Promise,"%Proxy%":typeof Proxy>"u"?o:Proxy,"%RangeError%":g,"%ReferenceError%":a,"%Reflect%":typeof Reflect>"u"?o:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?o:Set,"%SetIteratorPrototype%":typeof Set>"u"||!w||!S?o:S(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?o:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&S?S(""[Symbol.iterator]()):o,"%Symbol%":w?Symbol:o,"%SyntaxError%":n,"%ThrowTypeError%":y,"%TypedArray%":k,"%TypeError%":r,"%Uint8Array%":typeof Uint8Array>"u"?o:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?o:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?o:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?o:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>"u"?o:WeakMap,"%WeakRef%":typeof WeakRef>"u"?o:WeakRef,"%WeakSet%":typeof WeakSet>"u"?o:WeakSet};if(S)try{null.error}catch(je){var j=S(S(je));E["%Error.prototype%"]=j}var A=e(l(function je(se){var Te;if(se==="%AsyncFunction%")Te=c("async function () {}");else if(se==="%GeneratorFunction%")Te=c("function* () {}");else if(se==="%AsyncGeneratorFunction%")Te=c("async function* () {}");else if(se==="%AsyncGenerator%"){var J=je("%AsyncGeneratorFunction%");J&&(Te=J.prototype)}else if(se==="%AsyncIteratorPrototype%"){var ue=je("%AsyncGenerator%");ue&&S&&(Te=S(ue.prototype))}return E[se]=Te,Te},"pe"),"doEval2"),I={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},U=kd(),M=rj(),ee=U.call(Function.call,Array.prototype.concat),V=U.call(Function.apply,Array.prototype.splice),q=U.call(Function.call,String.prototype.replace),G=U.call(Function.call,String.prototype.slice),re=U.call(Function.call,RegExp.prototype.exec),ae=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,de=/\\(\\)?/g,we=e(function(je){var se=G(je,0,1),Te=G(je,-1);if(se==="%"&&Te!=="%")throw new n("invalid intrinsic syntax, expected closing `%`");if(Te==="%"&&se!=="%")throw new n("invalid intrinsic syntax, expected opening `%`");var J=[];return q(je,ae,function(ue,te,X,ye){J[J.length]=X?q(ye,de,"$1"):te||ue}),J},"stringToPath2"),Ie=e(function(je,se){var Te=je,J;if(M(I,Te)&&(J=I[Te],Te="%"+J[0]+"%"),M(E,Te)){var ue=E[Te];if(ue===T&&(ue=A(Te)),typeof ue>"u"&&!se)throw new r("intrinsic "+je+" exists, but is not available. Please file an issue!");return{alias:J,name:Te,value:ue}}throw new n("intrinsic "+je+" does not exist!")},"getBaseIntrinsic2");return lc=e(function(je,se){if(typeof je!="string"||je.length===0)throw new r("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof se!="boolean")throw new r('"allowMissing" argument must be a boolean');if(re(/^%?[^%]*%?$/,je)===null)throw new n("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Te=we(je),J=Te.length>0?Te[0]:"",ue=Ie("%"+J+"%",se),te=ue.name,X=ue.value,ye=!1,Re=ue.alias;Re&&(J=Re[0],V(Te,ee([0,1],Re)));for(var De=1,Y=!0;De<Te.length;De+=1){var H=Te[De],Q=G(H,0,1),fe=G(H,-1);if((Q==='"'||Q==="'"||Q==="`"||fe==='"'||fe==="'"||fe==="`")&&Q!==fe)throw new n("property names with quotes must have matching quotes");if((H==="constructor"||!Y)&&(ye=!0),J+="."+H,te="%"+J+"%",M(E,te))X=E[te];else if(X!=null){if(!(H in X)){if(!se)throw new r("base intrinsic for "+je+" exists, but the property is not available.");return}if(d&&De+1>=Te.length){var ve=d(X,H);Y=!!ve,Y&&"get"in ve&&!("originalValue"in ve.get)?X=ve.get:X=X[H]}else Y=M(X,H),X=X[H];Y&&!ye&&(E[te]=X)}}return X},"GetIntrinsic"),lc}function Od(){if(r1)return fc;r1=!0;var o=Zs(),i=o("%Object.defineProperty%",!0)||!1;if(i)try{i({},"a",{value:1})}catch{i=!1}return fc=i,fc}function Td(){if(n1)return uc;n1=!0;var o=Zs(),i=o("%Object.getOwnPropertyDescriptor%",!0);if(i)try{i([],"length")}catch{i=null}return uc=i,uc}function nj(){if(i1)return cc;i1=!0;var o=Od(),i=DE(),f=wf(),g=Td();return cc=e(function(a,n,r){if(!a||typeof a!="object"&&typeof a!="function")throw new f("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new f("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new f("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new f("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new f("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new f("`loose`, if provided, must be a boolean");var u=arguments.length>3?arguments[3]:null,p=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,d=arguments.length>6?arguments[6]:!1,m=!!g&&g(a,n);if(o)o(a,n,{configurable:c===null&&m?m.configurable:!c,enumerable:u===null&&m?m.enumerable:!u,value:r,writable:p===null&&m?m.writable:!p});else if(d||!u&&!p&&!c)a[n]=r;else throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},"defineDataProperty"),cc}function ij(){if(o1)return hc;o1=!0;var o=Od(),i=e(function(){return!!o},"hasPropertyDescriptors2");return i.hasArrayLengthDefineBug=e(function(){if(!o)return null;try{return o([],"length",{value:1}).length!==1}catch{return!0}},"hasArrayLengthDefineBug"),hc=i,hc}function oj(){if(a1)return dc;a1=!0;var o=Zs(),i=nj(),f=ij()(),g=Td(),a=wf(),n=o("%Math.floor%");return dc=e(function(r,u){if(typeof r!="function")throw new a("`fn` is not a function");if(typeof u!="number"||u<0||u>4294967295||n(u)!==u)throw new a("`length` must be a positive 32-bit integer");var p=arguments.length>2&&!!arguments[2],c=!0,d=!0;if("length"in r&&g){var m=g(r,"length");m&&!m.configurable&&(c=!1),m&&!m.writable&&(d=!1)}return(c||d||!p)&&(f?i(r,"length",u,!0,!0):i(r,"length",u)),r},"setFunctionLength"),dc}function UE(){if(s1)return Ss;s1=!0;var o=kd(),i=Zs(),f=oj(),g=wf(),a=i("%Function.prototype.apply%"),n=i("%Function.prototype.call%"),r=i("%Reflect.apply%",!0)||o.call(n,a),u=Od(),p=i("%Math.max%");Ss=e(function(d){if(typeof d!="function")throw new g("a function is required");var m=r(o,n,arguments);return f(m,1+p(0,d.length-(arguments.length-1)),!0)},"callBind");var c=e(function(){return r(o,a,arguments)},"applyBind2");return u?u(Ss,"apply",{value:c}):Ss.apply=c,Ss}function ME(){if(l1)return pc;l1=!0;var o=Zs(),i=UE(),f=i(o("String.prototype.indexOf"));return pc=e(function(g,a){var n=o(g,!!a);return typeof n=="function"&&f(g,".prototype.")>-1?i(n):n},"callBoundIntrinsic"),pc}function aj(){return f1||(f1=!0,typeof Object.create=="function"?gc=e(function(o,i){i&&(o.super_=i,o.prototype=Object.create(i.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}))},"inherits2"):gc=e(function(o,i){if(i){o.super_=i;var f=e(function(){},"TempCtor");f.prototype=i.prototype,o.prototype=new f,o.prototype.constructor=o}},"inherits2")),gc}function Fd(){if(u1)return yc;u1=!0;var o=NE();return yc=e(function(){return o()&&!!Symbol.toStringTag},"hasToStringTagShams"),yc}function sj(){if(c1)return mc;c1=!0;var o=Fd()(),i=ME(),f=i("Object.prototype.toString"),g=e(function(r){return o&&r&&typeof r=="object"&&Symbol.toStringTag in r?!1:f(r)==="[object Arguments]"},"isArguments"),a=e(function(r){return g(r)?!0:r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&f(r)!=="[object Array]"&&f(r.callee)==="[object Function]"},"isArguments"),n=function(){return g(arguments)}();return g.isLegacyArguments=a,mc=n?g:a,mc}function lj(){if(h1)return wc;h1=!0;var o=Object.prototype.toString,i=Function.prototype.toString,f=/^\s*(?:function)?\*/,g=Fd()(),a=Object.getPrototypeOf,n=e(function(){if(!g)return!1;try{return Function("return function*() {}")()}catch{}},"getGeneratorFunc"),r;return wc=e(function(u){if(typeof u!="function")return!1;if(f.test(i.call(u)))return!0;if(!g){var p=o.call(u);return p==="[object GeneratorFunction]"}if(!a)return!1;if(typeof r>"u"){var c=n();r=c?a(c):!1}return a(u)===r},"isGeneratorFunction"),wc}function fj(){if(d1)return bc;d1=!0;var o=Function.prototype.toString,i=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,f,g;if(typeof i=="function"&&typeof Object.defineProperty=="function")try{f=Object.defineProperty({},"length",{get:e(function(){throw g},"get")}),g={},i(function(){throw 42},null,f)}catch(E){E!==g&&(i=null)}else i=null;var a=/^\s*class\b/,n=e(function(E){try{var j=o.call(E);return a.test(j)}catch{return!1}},"isES6ClassFunction"),r=e(function(E){try{return n(E)?!1:(o.call(E),!0)}catch{return!1}},"tryFunctionToStr"),u=Object.prototype.toString,p="[object Object]",c="[object Function]",d="[object GeneratorFunction]",m="[object HTMLAllCollection]",y="[object HTML document.all class]",w="[object HTMLCollection]",_=typeof Symbol=="function"&&!!Symbol.toStringTag,S=!(0 in[,]),T=e(function(){return!1},"isDocumentDotAll");if(typeof document=="object"){var k=document.all;u.call(k)===u.call(document.all)&&(T=e(function(E){if((S||!E)&&(typeof E>"u"||typeof E=="object"))try{var j=u.call(E);return(j===m||j===y||j===w||j===p)&&E("")==null}catch{}return!1},"isDocumentDotAll"))}return bc=e(i?function(E){if(T(E))return!0;if(!E||typeof E!="function"&&typeof E!="object")return!1;try{i(E,null,f)}catch(j){if(j!==g)return!1}return!n(E)&&r(E)}:function(E){if(T(E))return!0;if(!E||typeof E!="function"&&typeof E!="object")return!1;if(_)return r(E);if(n(E))return!1;var j=u.call(E);return j!==c&&j!==d&&!/^\[object HTML/.test(j)?!1:r(E)},"isCallable"),bc}function uj(){if(p1)return vc;p1=!0;var o=fj(),i=Object.prototype.toString,f=Object.prototype.hasOwnProperty,g=e(function(u,p,c){for(var d=0,m=u.length;d<m;d++)f.call(u,d)&&(c==null?p(u[d],d,u):p.call(c,u[d],d,u))},"forEachArray2"),a=e(function(u,p,c){for(var d=0,m=u.length;d<m;d++)c==null?p(u.charAt(d),d,u):p.call(c,u.charAt(d),d,u)},"forEachString2"),n=e(function(u,p,c){for(var d in u)f.call(u,d)&&(c==null?p(u[d],d,u):p.call(c,u[d],d,u))},"forEachObject2"),r=e(function(u,p,c){if(!o(p))throw new TypeError("iterator must be a function");var d;arguments.length>=3&&(d=c),i.call(u)==="[object Array]"?g(u,p,d):typeof u=="string"?a(u,p,d):n(u,p,d)},"forEach2");return vc=r,vc}function cj(){return y1||(y1=!0,g1=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),g1}function hj(){if(m1)return _c;m1=!0;var o=cj(),i=typeof globalThis>"u"?bj:globalThis;return _c=e(function(){for(var f=[],g=0;g<o.length;g++)typeof i[o[g]]=="function"&&(f[f.length]=o[g]);return f},"availableTypedArrays"),_c}function $E(){if(w1)return Ec;w1=!0;var o=uj(),i=hj(),f=UE(),g=ME(),a=Td(),n=g("Object.prototype.toString"),r=Fd()(),u=typeof globalThis>"u"?vj:globalThis,p=i(),c=g("String.prototype.slice"),d=Object.getPrototypeOf,m=g("Array.prototype.indexOf",!0)||e(function(S,T){for(var k=0;k<S.length;k+=1)if(S[k]===T)return k;return-1},"indexOf"),y={__proto__:null};r&&a&&d?o(p,function(S){var T=new u[S];if(Symbol.toStringTag in T){var k=d(T),E=a(k,Symbol.toStringTag);if(!E){var j=d(k);E=a(j,Symbol.toStringTag)}y["$"+S]=f(E.get)}}):o(p,function(S){var T=new u[S],k=T.slice||T.set;k&&(y["$"+S]=f(k))});var w=e(function(S){var T=!1;return o(y,function(k,E){if(!T)try{"$"+k(S)===E&&(T=c(E,1))}catch{}}),T},"tryAllTypedArrays"),_=e(function(S){var T=!1;return o(y,function(k,E){if(!T)try{k(S),T=c(E,1)}catch{}}),T},"tryAllSlices");return Ec=e(function(S){if(!S||typeof S!="object")return!1;if(!r){var T=c(n(S),8,-1);return m(p,T)>-1?T:T!=="Object"?!1:_(S)}return a?w(S):null},"whichTypedArray"),Ec}function dj(){if(b1)return Sc;b1=!0;var o=$E();return Sc=e(function(i){return!!o(i)},"isTypedArray"),Sc}function pj(){if(v1)return Et;v1=!0;var o=sj(),i=lj(),f=$E(),g=dj();function a(be){return be.call.bind(be)}l(a,"a"),e(a,"uncurryThis");var n=typeof BigInt<"u",r=typeof Symbol<"u",u=a(Object.prototype.toString),p=a(Number.prototype.valueOf),c=a(String.prototype.valueOf),d=a(Boolean.prototype.valueOf);if(n)var m=a(BigInt.prototype.valueOf);if(r)var y=a(Symbol.prototype.valueOf);function w(be,ge){if(typeof be!="object")return!1;try{return ge(be),!0}catch{return!1}}l(w,"g"),e(w,"checkBoxedPrimitive"),Et.isArgumentsObject=o,Et.isGeneratorFunction=i,Et.isTypedArray=g;function _(be){return typeof Promise<"u"&&be instanceof Promise||be!==null&&typeof be=="object"&&typeof be.then=="function"&&typeof be.catch=="function"}l(_,"v"),e(_,"isPromise"),Et.isPromise=_;function S(be){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(be):g(be)||te(be)}l(S,"_"),e(S,"isArrayBufferView"),Et.isArrayBufferView=S;function T(be){return f(be)==="Uint8Array"}l(T,"b"),e(T,"isUint8Array"),Et.isUint8Array=T;function k(be){return f(be)==="Uint8ClampedArray"}l(k,"E"),e(k,"isUint8ClampedArray"),Et.isUint8ClampedArray=k;function E(be){return f(be)==="Uint16Array"}l(E,"R"),e(E,"isUint16Array"),Et.isUint16Array=E;function j(be){return f(be)==="Uint32Array"}l(j,"T"),e(j,"isUint32Array"),Et.isUint32Array=j;function A(be){return f(be)==="Int8Array"}l(A,"F"),e(A,"isInt8Array"),Et.isInt8Array=A;function I(be){return f(be)==="Int16Array"}l(I,"S"),e(I,"isInt16Array"),Et.isInt16Array=I;function U(be){return f(be)==="Int32Array"}l(U,"B"),e(U,"isInt32Array"),Et.isInt32Array=U;function M(be){return f(be)==="Float32Array"}l(M,"I"),e(M,"isFloat32Array"),Et.isFloat32Array=M;function ee(be){return f(be)==="Float64Array"}l(ee,"D"),e(ee,"isFloat64Array"),Et.isFloat64Array=ee;function V(be){return f(be)==="BigInt64Array"}l(V,"L"),e(V,"isBigInt64Array"),Et.isBigInt64Array=V;function q(be){return f(be)==="BigUint64Array"}l(q,"C"),e(q,"isBigUint64Array"),Et.isBigUint64Array=q;function G(be){return u(be)==="[object Map]"}l(G,"j"),e(G,"isMapToString"),G.working=typeof Map<"u"&&G(new Map);function re(be){return typeof Map>"u"?!1:G.working?G(be):be instanceof Map}l(re,"q"),e(re,"isMap"),Et.isMap=re;function ae(be){return u(be)==="[object Set]"}l(ae,"Z"),e(ae,"isSetToString"),ae.working=typeof Set<"u"&&ae(new Set);function de(be){return typeof Set>"u"?!1:ae.working?ae(be):be instanceof Set}l(de,"K"),e(de,"isSet"),Et.isSet=de;function we(be){return u(be)==="[object WeakMap]"}l(we,"se"),e(we,"isWeakMapToString"),we.working=typeof WeakMap<"u"&&we(new WeakMap);function Ie(be){return typeof WeakMap>"u"?!1:we.working?we(be):be instanceof WeakMap}l(Ie,"_e"),e(Ie,"isWeakMap"),Et.isWeakMap=Ie;function je(be){return u(be)==="[object WeakSet]"}l(je,"pe"),e(je,"isWeakSetToString"),je.working=typeof WeakSet<"u"&&je(new WeakSet);function se(be){return je(be)}l(se,"Q"),e(se,"isWeakSet"),Et.isWeakSet=se;function Te(be){return u(be)==="[object ArrayBuffer]"}l(Te,"he"),e(Te,"isArrayBufferToString"),Te.working=typeof ArrayBuffer<"u"&&Te(new ArrayBuffer);function J(be){return typeof ArrayBuffer>"u"?!1:Te.working?Te(be):be instanceof ArrayBuffer}l(J,"U"),e(J,"isArrayBuffer"),Et.isArrayBuffer=J;function ue(be){return u(be)==="[object DataView]"}l(ue,"J"),e(ue,"isDataViewToString"),ue.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&ue(new DataView(new ArrayBuffer(1),0,1));function te(be){return typeof DataView>"u"?!1:ue.working?ue(be):be instanceof DataView}l(te,"z"),e(te,"isDataView"),Et.isDataView=te;var X=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function ye(be){return u(be)==="[object SharedArrayBuffer]"}l(ye,"G"),e(ye,"isSharedArrayBufferToString");function Re(be){return typeof X>"u"?!1:(typeof ye.working>"u"&&(ye.working=ye(new X)),ye.working?ye(be):be instanceof X)}l(Re,"fe"),e(Re,"isSharedArrayBuffer"),Et.isSharedArrayBuffer=Re;function De(be){return u(be)==="[object AsyncFunction]"}l(De,"be"),e(De,"isAsyncFunction"),Et.isAsyncFunction=De;function Y(be){return u(be)==="[object Map Iterator]"}l(Y,"N"),e(Y,"isMapIterator"),Et.isMapIterator=Y;function H(be){return u(be)==="[object Set Iterator]"}l(H,"$"),e(H,"isSetIterator"),Et.isSetIterator=H;function Q(be){return u(be)==="[object Generator]"}l(Q,"H"),e(Q,"isGeneratorObject"),Et.isGeneratorObject=Q;function fe(be){return u(be)==="[object WebAssembly.Module]"}l(fe,"te"),e(fe,"isWebAssemblyCompiledModule"),Et.isWebAssemblyCompiledModule=fe;function ve(be){return w(be,p)}l(ve,"oe"),e(ve,"isNumberObject"),Et.isNumberObject=ve;function N(be){return w(be,c)}l(N,"P"),e(N,"isStringObject"),Et.isStringObject=N;function x(be){return w(be,d)}l(x,"x"),e(x,"isBooleanObject"),Et.isBooleanObject=x;function D(be){return n&&w(be,m)}l(D,"M"),e(D,"isBigIntObject"),Et.isBigIntObject=D;function z(be){return r&&w(be,y)}l(z,"Y"),e(z,"isSymbolObject"),Et.isSymbolObject=z;function Ee(be){return ve(be)||N(be)||x(be)||D(be)||z(be)}l(Ee,"ue"),e(Ee,"isBoxedPrimitive"),Et.isBoxedPrimitive=Ee;function ke(be){return typeof Uint8Array<"u"&&(J(be)||Re(be))}return l(ke,"le"),e(ke,"isAnyArrayBuffer"),Et.isAnyArrayBuffer=ke,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(be){Object.defineProperty(Et,be,{enumerable:!1,value:e(function(){throw new Error(be+" is not supported in userland")},"value")})}),Et}function gj(){return E1||(E1=!0,_1=e(function(o){return o&&typeof o=="object"&&typeof o.copy=="function"&&typeof o.fill=="function"&&typeof o.readUInt8=="function"},"isBuffer2")),_1}function WO(){if(S1)return St;S1=!0;var o=zn,i=Object.getOwnPropertyDescriptors||e(function(te){for(var X=Object.keys(te),ye={},Re=0;Re<X.length;Re++)ye[X[Re]]=Object.getOwnPropertyDescriptor(te,X[Re]);return ye},"getOwnPropertyDescriptors2"),f=/%[sdj%]/g;St.format=function(te){if(!I(te)){for(var X=[],ye=0;ye<arguments.length;ye++)X.push(r(arguments[ye]));return X.join(" ")}for(var ye=1,Re=arguments,De=Re.length,Y=String(te).replace(f,function(fe){if(fe==="%%")return"%";if(ye>=De)return fe;switch(fe){case"%s":return String(Re[ye++]);case"%d":return Number(Re[ye++]);case"%j":try{return JSON.stringify(Re[ye++])}catch{return"[Circular]"}default:return fe}}),H=Re[ye];ye<De;H=Re[++ye])E(H)||!V(H)?Y+=" "+H:Y+=" "+r(H);return Y},St.deprecate=function(te,X){if(typeof o<"u"&&o.noDeprecation===!0)return te;if(typeof o>"u")return function(){return St.deprecate(te,X).apply(this||As,arguments)};var ye=!1;function Re(){if(!ye){if(o.throwDeprecation)throw new Error(X);o.traceDeprecation?console.trace(X):console.error(X),ye=!0}return te.apply(this||As,arguments)}return l(Re,"fe"),e(Re,"deprecated"),Re};var g={},a=/^$/;if(o.env.NODE_DEBUG){var n=o.env.NODE_DEBUG;n=n.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),a=new RegExp("^"+n+"$","i")}St.debuglog=function(te){if(te=te.toUpperCase(),!g[te])if(a.test(te)){var X=o.pid;g[te]=function(){var ye=St.format.apply(St,arguments);console.error("%s %d: %s",te,X,ye)}}else g[te]=function(){};return g[te]};function r(te,X){var ye={seen:[],stylize:p};return arguments.length>=3&&(ye.depth=arguments[2]),arguments.length>=4&&(ye.colors=arguments[3]),k(X)?ye.showHidden=X:X&&St._extend(ye,X),M(ye.showHidden)&&(ye.showHidden=!1),M(ye.depth)&&(ye.depth=2),M(ye.colors)&&(ye.colors=!1),M(ye.customInspect)&&(ye.customInspect=!0),ye.colors&&(ye.stylize=u),d(ye,te,ye.depth)}l(r,"i"),e(r,"inspect2"),St.inspect=r,r.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},r.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function u(te,X){var ye=r.styles[X];return ye?"\x1B["+r.colors[ye][0]+"m"+te+"\x1B["+r.colors[ye][1]+"m":te}l(u,"f"),e(u,"stylizeWithColor");function p(te,X){return te}l(p,"h"),e(p,"stylizeNoColor");function c(te){var X={};return te.forEach(function(ye,Re){X[ye]=!0}),X}l(c,"c"),e(c,"arrayToHash");function d(te,X,ye){if(te.customInspect&&X&&re(X.inspect)&&X.inspect!==St.inspect&&!(X.constructor&&X.constructor.prototype===X)){var Re=X.inspect(ye,te);return I(Re)||(Re=d(te,Re,ye)),Re}var De=m(te,X);if(De)return De;var Y=Object.keys(X),H=c(Y);if(te.showHidden&&(Y=Object.getOwnPropertyNames(X)),G(X)&&(Y.indexOf("message")>=0||Y.indexOf("description")>=0))return y(X);if(Y.length===0){if(re(X)){var Q=X.name?": "+X.name:"";return te.stylize("[Function"+Q+"]","special")}if(ee(X))return te.stylize(RegExp.prototype.toString.call(X),"regexp");if(q(X))return te.stylize(Date.prototype.toString.call(X),"date");if(G(X))return y(X)}var fe="",ve=!1,N=["{","}"];if(T(X)&&(ve=!0,N=["[","]"]),re(X)){var x=X.name?": "+X.name:"";fe=" [Function"+x+"]"}if(ee(X)&&(fe=" "+RegExp.prototype.toString.call(X)),q(X)&&(fe=" "+Date.prototype.toUTCString.call(X)),G(X)&&(fe=" "+y(X)),Y.length===0&&(!ve||X.length==0))return N[0]+fe+N[1];if(ye<0)return ee(X)?te.stylize(RegExp.prototype.toString.call(X),"regexp"):te.stylize("[Object]","special");te.seen.push(X);var D;return ve?D=w(te,X,ye,H,Y):D=Y.map(function(z){return _(te,X,ye,H,z,ve)}),te.seen.pop(),S(D,fe,N)}l(d,"d"),e(d,"formatValue");function m(te,X){if(M(X))return te.stylize("undefined","undefined");if(I(X)){var ye="'"+JSON.stringify(X).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return te.stylize(ye,"string")}if(A(X))return te.stylize(""+X,"number");if(k(X))return te.stylize(""+X,"boolean");if(E(X))return te.stylize("null","null")}l(m,"y"),e(m,"formatPrimitive");function y(te){return"["+Error.prototype.toString.call(te)+"]"}l(y,"m"),e(y,"formatError");function w(te,X,ye,Re,De){for(var Y=[],H=0,Q=X.length;H<Q;++H)se(X,String(H))?Y.push(_(te,X,ye,Re,String(H),!0)):Y.push("");return De.forEach(function(fe){fe.match(/^\d+$/)||Y.push(_(te,X,ye,Re,fe,!0))}),Y}l(w,"g"),e(w,"formatArray");function _(te,X,ye,Re,De,Y){var H,Q,fe;if(fe=Object.getOwnPropertyDescriptor(X,De)||{value:X[De]},fe.get?fe.set?Q=te.stylize("[Getter/Setter]","special"):Q=te.stylize("[Getter]","special"):fe.set&&(Q=te.stylize("[Setter]","special")),se(Re,De)||(H="["+De+"]"),Q||(te.seen.indexOf(fe.value)<0?(E(ye)?Q=d(te,fe.value,null):Q=d(te,fe.value,ye-1),Q.indexOf(`
9
- `)>-1&&(Y?Q=Q.split(`
10
- `).map(function(ve){return" "+ve}).join(`
11
- `).slice(2):Q=`
12
- `+Q.split(`
13
- `).map(function(ve){return" "+ve}).join(`
14
- `))):Q=te.stylize("[Circular]","special")),M(H)){if(Y&&De.match(/^\d+$/))return Q;H=JSON.stringify(""+De),H.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(H=H.slice(1,-1),H=te.stylize(H,"name")):(H=H.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),H=te.stylize(H,"string"))}return H+": "+Q}l(_,"v"),e(_,"formatProperty");function S(te,X,ye){var Re=te.reduce(function(De,Y){return Y.indexOf(`
15
- `)>=0,De+Y.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Re>60?ye[0]+(X===""?"":X+`
16
- `)+" "+te.join(`,
17
- `)+" "+ye[1]:ye[0]+X+" "+te.join(", ")+" "+ye[1]}l(S,"_"),e(S,"reduceToSingleString"),St.types=pj();function T(te){return Array.isArray(te)}l(T,"b"),e(T,"isArray2"),St.isArray=T;function k(te){return typeof te=="boolean"}l(k,"E"),e(k,"isBoolean2"),St.isBoolean=k;function E(te){return te===null}l(E,"R"),e(E,"isNull2"),St.isNull=E;function j(te){return te==null}l(j,"T"),e(j,"isNullOrUndefined2"),St.isNullOrUndefined=j;function A(te){return typeof te=="number"}l(A,"F"),e(A,"isNumber2"),St.isNumber=A;function I(te){return typeof te=="string"}l(I,"S"),e(I,"isString2"),St.isString=I;function U(te){return typeof te=="symbol"}l(U,"B"),e(U,"isSymbol2"),St.isSymbol=U;function M(te){return te===void 0}l(M,"I"),e(M,"isUndefined2"),St.isUndefined=M;function ee(te){return V(te)&&de(te)==="[object RegExp]"}l(ee,"D"),e(ee,"isRegExp2"),St.isRegExp=ee,St.types.isRegExp=ee;function V(te){return typeof te=="object"&&te!==null}l(V,"L"),e(V,"isObject2"),St.isObject=V;function q(te){return V(te)&&de(te)==="[object Date]"}l(q,"C"),e(q,"isDate2"),St.isDate=q,St.types.isDate=q;function G(te){return V(te)&&(de(te)==="[object Error]"||te instanceof Error)}l(G,"j"),e(G,"isError2"),St.isError=G,St.types.isNativeError=G;function re(te){return typeof te=="function"}l(re,"q"),e(re,"isFunction2"),St.isFunction=re;function ae(te){return te===null||typeof te=="boolean"||typeof te=="number"||typeof te=="string"||typeof te=="symbol"||typeof te>"u"}l(ae,"Z"),e(ae,"isPrimitive2"),St.isPrimitive=ae,St.isBuffer=gj();function de(te){return Object.prototype.toString.call(te)}l(de,"K"),e(de,"objectToString");function we(te){return te<10?"0"+te.toString(10):te.toString(10)}l(we,"se"),e(we,"pad");var Ie=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function je(){var te=new Date,X=[we(te.getHours()),we(te.getMinutes()),we(te.getSeconds())].join(":");return[te.getDate(),Ie[te.getMonth()],X].join(" ")}l(je,"pe"),e(je,"timestamp"),St.log=function(){console.log("%s - %s",je(),St.format.apply(St,arguments))},St.inherits=aj(),St._extend=function(te,X){if(!X||!V(X))return te;for(var ye=Object.keys(X),Re=ye.length;Re--;)te[ye[Re]]=X[ye[Re]];return te};function se(te,X){return Object.prototype.hasOwnProperty.call(te,X)}l(se,"Q"),e(se,"hasOwnProperty");var Te=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;St.promisify=e(function(te){if(typeof te!="function")throw new TypeError('The "original" argument must be of type Function');if(Te&&te[Te]){if(X=te[Te],typeof X!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(X,Te,{value:X,enumerable:!1,writable:!1,configurable:!0}),X}function X(){for(var ye,Re,De=new Promise(function(Q,fe){ye=Q,Re=fe}),Y=[],H=0;H<arguments.length;H++)Y.push(arguments[H]);Y.push(function(Q,fe){Q?Re(Q):ye(fe)});try{te.apply(this||As,Y)}catch(Q){Re(Q)}return De}return l(X,"G"),e(X,"fn"),Object.setPrototypeOf(X,Object.getPrototypeOf(te)),Te&&Object.defineProperty(X,Te,{value:X,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(X,i(te))},"promisify2"),St.promisify.custom=Te;function J(te,X){if(!te){var ye=new Error("Promise was rejected with a falsy value");ye.reason=te,te=ye}return X(te)}l(J,"U"),e(J,"callbackifyOnRejected");function ue(te){if(typeof te!="function")throw new TypeError('The "original" argument must be of type Function');function X(){for(var ye=[],Re=0;Re<arguments.length;Re++)ye.push(arguments[Re]);var De=ye.pop();if(typeof De!="function")throw new TypeError("The last argument must be of type Function");var Y=this||As,H=e(function(){return De.apply(Y,arguments)},"cb");te.apply(this||As,ye).then(function(Q){o.nextTick(H.bind(null,null,Q))},function(Q){o.nextTick(J.bind(null,Q,H))})}return l(X,"V"),e(X,"callbackified"),Object.setPrototypeOf(X,Object.getPrototypeOf(te)),Object.defineProperties(X,i(te)),X}return l(ue,"J"),e(ue,"callbackify2"),St.callbackify=ue,St}function Qt(){return R1||(R1=!0,A1={ArrayIsArray(o){return Array.isArray(o)},ArrayPrototypeIncludes(o,i){return o.includes(i)},ArrayPrototypeIndexOf(o,i){return o.indexOf(i)},ArrayPrototypeJoin(o,i){return o.join(i)},ArrayPrototypeMap(o,i){return o.map(i)},ArrayPrototypePop(o,i){return o.pop(i)},ArrayPrototypePush(o,i){return o.push(i)},ArrayPrototypeSlice(o,i,f){return o.slice(i,f)},Error,FunctionPrototypeCall(o,i,...f){return o.call(i,...f)},FunctionPrototypeSymbolHasInstance(o,i){return Function.prototype[Symbol.hasInstance].call(o,i)},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(o,i){return Object.defineProperties(o,i)},ObjectDefineProperty(o,i,f){return Object.defineProperty(o,i,f)},ObjectGetOwnPropertyDescriptor(o,i){return Object.getOwnPropertyDescriptor(o,i)},ObjectKeys(o){return Object.keys(o)},ObjectSetPrototypeOf(o,i){return Object.setPrototypeOf(o,i)},Promise,PromisePrototypeCatch(o,i){return o.catch(i)},PromisePrototypeThen(o,i,f){return o.then(i,f)},PromiseReject(o){return Promise.reject(o)},PromiseResolve(o){return Promise.resolve(o)},ReflectApply:Reflect.apply,RegExpPrototypeTest(o,i){return o.test(i)},SafeSet:Set,String,StringPrototypeSlice(o,i,f){return o.slice(i,f)},StringPrototypeToLowerCase(o){return o.toLowerCase()},StringPrototypeToUpperCase(o){return o.toUpperCase()},StringPrototypeTrim(o){return o.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(o,i,f){return o.set(i,f)},Boolean,Uint8Array}),A1}function Vs(){if(k1)return Rs;k1=!0;let{AbortController:o,AbortSignal:i}=typeof self<"u"?self:typeof window<"u"?window:void 0;return Rs=o,Rs.AbortSignal=i,Rs.default=o,Rs}function Rr(){var y;if(O1)return xl;O1=!0;let o=vi(),{kResistStopPropagation:i,SymbolDispose:f}=Qt(),g=globalThis.AbortSignal||Vs().AbortSignal,a=globalThis.AbortController||Vs().AbortController,n=Object.getPrototypeOf(async function(){}).constructor,r=globalThis.Blob||o.Blob,u=e(typeof r<"u"?function(w){return w instanceof r}:function(w){return!1},"isBlob2"),p=e((w,_)=>{if(w!==void 0&&(w===null||typeof w!="object"||!("aborted"in w)))throw new ERR_INVALID_ARG_TYPE(_,"AbortSignal",w)},"validateAbortSignal"),c=e((w,_)=>{if(typeof w!="function")throw new ERR_INVALID_ARG_TYPE(_,"Function",w)},"validateFunction"),d=(y=class extends Error{constructor(_){if(!Array.isArray(_))throw new TypeError(`Expected input to be an Array, got ${typeof _}`);let S="";for(let T=0;T<_.length;T++)S+=` ${_[T].stack}
18
- `;super(S),this.name="AggregateError",this.errors=_}},l(y,"y"),y);return e(d,"AggregateError2"),xl={AggregateError:d,kEmptyObject:Object.freeze({}),once(w){let _=!1;return function(...S){_||(_=!0,w.apply(this,S))}},createDeferredPromise:e(function(){let w,_;return{promise:new Promise((S,T)=>{w=S,_=T}),resolve:w,reject:_}},"createDeferredPromise"),promisify(w){return new Promise((_,S)=>{w((T,...k)=>T?S(T):_(...k))})},debuglog(){return function(){}},format(w,..._){return w.replace(/%([sdifj])/g,function(...[S,T]){let k=_.shift();return T==="f"?k.toFixed(6):T==="j"?JSON.stringify(k):T==="s"&&typeof k=="object"?`${k.constructor!==Object?k.constructor.name:""} {}`.trim():k.toString()})},inspect(w){switch(typeof w){case"string":if(w.includes("'"))if(w.includes('"')){if(!w.includes("`")&&!w.includes("${"))return`\`${w}\``}else return`"${w}"`;return`'${w}'`;case"number":return isNaN(w)?"NaN":Object.is(w,-0)?String(w):w;case"bigint":return`${String(w)}n`;case"boolean":case"undefined":return String(w);case"object":return"{}"}},types:{isAsyncFunction(w){return w instanceof n},isArrayBufferView(w){return ArrayBuffer.isView(w)}},isBlob:u,deprecate(w,_){return w},addAbortListener:yi.addAbortListener||e(function(w,_){if(w===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",w);p(w,"signal"),c(_,"listener");let S;return w.aborted?queueMicrotask(()=>_()):(w.addEventListener("abort",_,{__proto__:null,once:!0,[i]:!0}),S=e(()=>{w.removeEventListener("abort",_)},"removeEventListener")),{__proto__:null,[f](){var T;(T=S)===null||T===void 0||T()}}},"addAbortListener"),AbortSignalAny:g.any||e(function(w){if(w.length===1)return w[0];let _=new a,S=e(()=>_.abort(),"abort2");return w.forEach(T=>{p(T,"signals"),T.addEventListener("abort",S,{once:!0})}),_.signal.addEventListener("abort",()=>{w.forEach(T=>T.removeEventListener("abort",S))},{once:!0}),_.signal},"AbortSignalAny")},xl.promisify.custom=Symbol.for("nodejs.util.promisify.custom"),xl}function Pr(){var k;if(T1)return Ac;T1=!0;let{format:o,inspect:i,AggregateError:f}=Rr(),g=globalThis.AggregateError||f,a=Symbol("kIsNodeError"),n=["string","function","number","object","Function","Object","boolean","bigint","symbol"],r=/^([A-Z][a-z0-9]*)+$/,u="__node_internal_",p={};function c(E,j){if(!E)throw new p.ERR_INTERNAL_ASSERTION(j)}l(c,"c"),e(c,"assert2");function d(E){let j="",A=E.length,I=E[0]==="-"?1:0;for(;A>=I+4;A-=3)j=`_${E.slice(A-3,A)}${j}`;return`${E.slice(0,A)}${j}`}l(d,"d"),e(d,"addNumericalSeparator");function m(E,j,A){if(typeof j=="function")return c(j.length<=A.length,`Code: ${E}; The provided arguments length (${A.length}) does not match the required ones (${j.length}).`),j(...A);let I=(j.match(/%[dfijoOs]/g)||[]).length;return c(I===A.length,`Code: ${E}; The provided arguments length (${A.length}) does not match the required ones (${I}).`),A.length===0?j:o(j,...A)}l(m,"y"),e(m,"getMessage");function y(E,j,A){var M;A||(A=Error);let I=(M=class extends A{constructor(...V){super(m(E,j,V))}toString(){return`${this.name} [${E}]: ${this.message}`}},l(M,"S"),M);e(I,"NodeError");let U=I;Object.defineProperties(U.prototype,{name:{value:A.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${E}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),U.prototype.code=E,U.prototype[a]=!0,p[E]=U}l(y,"m"),e(y,"E");function w(E){let j=u+E.name;return Object.defineProperty(E,"name",{value:j}),E}l(w,"g"),e(w,"hideStackFrames");function _(E,j){if(E&&j&&E!==j){if(Array.isArray(j.errors))return j.errors.push(E),j;let A=new g([j,E],j.message);return A.code=j.code,A}return E||j}l(_,"v"),e(_,"aggregateTwoErrors");let S=(k=class extends Error{constructor(j="The operation was aborted",A=void 0){if(A!==void 0&&typeof A!="object")throw new p.ERR_INVALID_ARG_TYPE("options","Object",A);super(j,A),this.code="ABORT_ERR",this.name="AbortError"}},l(k,"b"),k);e(S,"AbortError");let T=S;return y("ERR_ASSERTION","%s",Error),y("ERR_INVALID_ARG_TYPE",(E,j,A)=>{c(typeof E=="string","'name' must be a string"),Array.isArray(j)||(j=[j]);let I="The ";E.endsWith(" argument")?I+=`${E} `:I+=`"${E}" ${E.includes(".")?"property":"argument"} `,I+="must be ";let U=[],M=[],ee=[];for(let q of j)c(typeof q=="string","All expected entries have to be of type string"),n.includes(q)?U.push(q.toLowerCase()):r.test(q)?M.push(q):(c(q!=="object",'The value "object" should be written as "Object"'),ee.push(q));if(M.length>0){let q=U.indexOf("object");q!==-1&&(U.splice(U,q,1),M.push("Object"))}if(U.length>0){switch(U.length){case 1:I+=`of type ${U[0]}`;break;case 2:I+=`one of type ${U[0]} or ${U[1]}`;break;default:{let q=U.pop();I+=`one of type ${U.join(", ")}, or ${q}`}}(M.length>0||ee.length>0)&&(I+=" or ")}if(M.length>0){switch(M.length){case 1:I+=`an instance of ${M[0]}`;break;case 2:I+=`an instance of ${M[0]} or ${M[1]}`;break;default:{let q=M.pop();I+=`an instance of ${M.join(", ")}, or ${q}`}}ee.length>0&&(I+=" or ")}switch(ee.length){case 0:break;case 1:ee[0].toLowerCase()!==ee[0]&&(I+="an "),I+=`${ee[0]}`;break;case 2:I+=`one of ${ee[0]} or ${ee[1]}`;break;default:{let q=ee.pop();I+=`one of ${ee.join(", ")}, or ${q}`}}if(A==null)I+=`. Received ${A}`;else if(typeof A=="function"&&A.name)I+=`. Received function ${A.name}`;else if(typeof A=="object"){var V;if((V=A.constructor)!==null&&V!==void 0&&V.name)I+=`. Received an instance of ${A.constructor.name}`;else{let q=i(A,{depth:-1});I+=`. Received ${q}`}}else{let q=i(A,{colors:!1});q.length>25&&(q=`${q.slice(0,25)}...`),I+=`. Received type ${typeof A} (${q})`}return I},TypeError),y("ERR_INVALID_ARG_VALUE",(E,j,A="is invalid")=>{let I=i(j);return I.length>128&&(I=I.slice(0,128)+"..."),`The ${E.includes(".")?"property":"argument"} '${E}' ${A}. Received ${I}`},TypeError),y("ERR_INVALID_RETURN_VALUE",(E,j,A)=>{var I;let U=A!=null&&(I=A.constructor)!==null&&I!==void 0&&I.name?`instance of ${A.constructor.name}`:`type ${typeof A}`;return`Expected ${E} to be returned from the "${j}" function but got ${U}.`},TypeError),y("ERR_MISSING_ARGS",(...E)=>{c(E.length>0,"At least one arg needs to be specified");let j,A=E.length;switch(E=(Array.isArray(E)?E:[E]).map(I=>`"${I}"`).join(" or "),A){case 1:j+=`The ${E[0]} argument`;break;case 2:j+=`The ${E[0]} and ${E[1]} arguments`;break;default:{let I=E.pop();j+=`The ${E.join(", ")}, and ${I} arguments`}break}return`${j} must be specified`},TypeError),y("ERR_OUT_OF_RANGE",(E,j,A)=>{c(j,'Missing "range" argument');let I;return Number.isInteger(A)&&Math.abs(A)>2**32?I=d(String(A)):typeof A=="bigint"?(I=String(A),(A>2n**32n||A<-(2n**32n))&&(I=d(I)),I+="n"):I=i(A),`The value of "${E}" is out of range. It must be ${j}. Received ${I}`},RangeError),y("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),y("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),y("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),y("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),y("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),y("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),y("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),y("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),y("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),y("ERR_STREAM_WRITE_AFTER_END","write after end",Error),y("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),Ac={AbortError:T,aggregateTwoErrors:w(_),hideStackFrames:w,codes:p},Ac}function Qs(){if(F1)return Rc;F1=!0;let{ArrayIsArray:o,ArrayPrototypeIncludes:i,ArrayPrototypeJoin:f,ArrayPrototypeMap:g,NumberIsInteger:a,NumberIsNaN:n,NumberMAX_SAFE_INTEGER:r,NumberMIN_SAFE_INTEGER:u,NumberParseInt:p,ObjectPrototypeHasOwnProperty:c,RegExpPrototypeExec:d,String:m,StringPrototypeToUpperCase:y,StringPrototypeTrim:w}=Qt(),{hideStackFrames:_,codes:{ERR_SOCKET_BAD_PORT:S,ERR_INVALID_ARG_TYPE:T,ERR_INVALID_ARG_VALUE:k,ERR_OUT_OF_RANGE:E,ERR_UNKNOWN_SIGNAL:j}}=Pr(),{normalizeEncoding:A}=Rr(),{isAsyncFunction:I,isArrayBufferView:U}=Rr().types,M={};function ee(ge){return ge===(ge|0)}l(ee,"D"),e(ee,"isInt32");function V(ge){return ge===ge>>>0}l(V,"L"),e(V,"isUint32");let q=/^[0-7]+$/,G="must be a 32-bit unsigned integer or an octal string";function re(ge,Ne,xe){if(typeof ge>"u"&&(ge=xe),typeof ge=="string"){if(d(q,ge)===null)throw new k(Ne,ge,G);ge=p(ge,8)}return we(ge,Ne),ge}l(re,"q"),e(re,"parseFileMode");let ae=_((ge,Ne,xe=u,Oe=r)=>{if(typeof ge!="number")throw new T(Ne,"number",ge);if(!a(ge))throw new E(Ne,"an integer",ge);if(ge<xe||ge>Oe)throw new E(Ne,`>= ${xe} && <= ${Oe}`,ge)}),de=_((ge,Ne,xe=-2147483648,Oe=2147483647)=>{if(typeof ge!="number")throw new T(Ne,"number",ge);if(!a(ge))throw new E(Ne,"an integer",ge);if(ge<xe||ge>Oe)throw new E(Ne,`>= ${xe} && <= ${Oe}`,ge)}),we=_((ge,Ne,xe=!1)=>{if(typeof ge!="number")throw new T(Ne,"number",ge);if(!a(ge))throw new E(Ne,"an integer",ge);let Oe=xe?1:0,Pe=4294967295;if(ge<Oe||ge>Pe)throw new E(Ne,`>= ${Oe} && <= ${Pe}`,ge)});function Ie(ge,Ne){if(typeof ge!="string")throw new T(Ne,"string",ge)}l(Ie,"_e"),e(Ie,"validateString");function je(ge,Ne,xe=void 0,Oe){if(typeof ge!="number")throw new T(Ne,"number",ge);if(xe!=null&&ge<xe||Oe!=null&&ge>Oe||(xe!=null||Oe!=null)&&n(ge))throw new E(Ne,`${xe!=null?`>= ${xe}`:""}${xe!=null&&Oe!=null?" && ":""}${Oe!=null?`<= ${Oe}`:""}`,ge)}l(je,"pe"),e(je,"validateNumber");let se=_((ge,Ne,xe)=>{if(!i(xe,ge)){let Oe="must be one of: "+f(g(xe,Pe=>typeof Pe=="string"?`'${Pe}'`:m(Pe)),", ");throw new k(Ne,ge,Oe)}});function Te(ge,Ne){if(typeof ge!="boolean")throw new T(Ne,"boolean",ge)}l(Te,"he"),e(Te,"validateBoolean");function J(ge,Ne,xe){return ge==null||!c(ge,Ne)?xe:ge[Ne]}l(J,"U"),e(J,"getOwnPropertyValueOrDefault");let ue=_((ge,Ne,xe=null)=>{let Oe=J(xe,"allowArray",!1),Pe=J(xe,"allowFunction",!1);if(!J(xe,"nullable",!1)&&ge===null||!Oe&&o(ge)||typeof ge!="object"&&(!Pe||typeof ge!="function"))throw new T(Ne,"Object",ge)}),te=_((ge,Ne)=>{if(ge!=null&&typeof ge!="object"&&typeof ge!="function")throw new T(Ne,"a dictionary",ge)}),X=_((ge,Ne,xe=0)=>{if(!o(ge))throw new T(Ne,"Array",ge);if(ge.length<xe){let Oe=`must be longer than ${xe}`;throw new k(Ne,ge,Oe)}});function ye(ge,Ne){X(ge,Ne);for(let xe=0;xe<ge.length;xe++)Ie(ge[xe],`${Ne}[${xe}]`)}l(ye,"G"),e(ye,"validateStringArray");function Re(ge,Ne){X(ge,Ne);for(let xe=0;xe<ge.length;xe++)Te(ge[xe],`${Ne}[${xe}]`)}l(Re,"fe"),e(Re,"validateBooleanArray");function De(ge,Ne){X(ge,Ne);for(let xe=0;xe<ge.length;xe++){let Oe=ge[xe],Pe=`${Ne}[${xe}]`;if(Oe==null)throw new T(Pe,"AbortSignal",Oe);ve(Oe,Pe)}}l(De,"be"),e(De,"validateAbortSignalArray");function Y(ge,Ne="signal"){if(Ie(ge,Ne),M[ge]===void 0)throw M[y(ge)]!==void 0?new j(ge+" (signals must use all capital letters)"):new j(ge)}l(Y,"N"),e(Y,"validateSignalName");let H=_((ge,Ne="buffer")=>{if(!U(ge))throw new T(Ne,["Buffer","TypedArray","DataView"],ge)});function Q(ge,Ne){let xe=A(Ne),Oe=ge.length;if(xe==="hex"&&Oe%2!==0)throw new k("encoding",Ne,`is invalid for data of length ${Oe}`)}l(Q,"H"),e(Q,"validateEncoding");function fe(ge,Ne="Port",xe=!0){if(typeof ge!="number"&&typeof ge!="string"||typeof ge=="string"&&w(ge).length===0||+ge!==+ge>>>0||ge>65535||ge===0&&!xe)throw new S(Ne,ge,xe);return ge|0}l(fe,"te"),e(fe,"validatePort");let ve=_((ge,Ne)=>{if(ge!==void 0&&(ge===null||typeof ge!="object"||!("aborted"in ge)))throw new T(Ne,"AbortSignal",ge)}),N=_((ge,Ne)=>{if(typeof ge!="function")throw new T(Ne,"Function",ge)}),x=_((ge,Ne)=>{if(typeof ge!="function"||I(ge))throw new T(Ne,"Function",ge)}),D=_((ge,Ne)=>{if(ge!==void 0)throw new T(Ne,"undefined",ge)});function z(ge,Ne,xe){if(!i(xe,ge))throw new T(Ne,`('${f(xe,"|")}')`,ge)}l(z,"Y"),e(z,"validateUnion");let Ee=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function ke(ge,Ne){if(typeof ge>"u"||!d(Ee,ge))throw new k(Ne,ge,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}l(ke,"le"),e(ke,"validateLinkHeaderFormat");function be(ge){if(typeof ge=="string")return ke(ge,"hints"),ge;if(o(ge)){let Ne=ge.length,xe="";if(Ne===0)return xe;for(let Oe=0;Oe<Ne;Oe++){let Pe=ge[Oe];ke(Pe,"hints"),xe+=Pe,Oe!==Ne-1&&(xe+=", ")}return xe}throw new k("hints",ge,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}return l(be,"ee"),e(be,"validateLinkHeaderValue"),Rc={isInt32:ee,isUint32:V,parseFileMode:re,validateArray:X,validateStringArray:ye,validateBooleanArray:Re,validateAbortSignalArray:De,validateBoolean:Te,validateBuffer:H,validateDictionary:te,validateEncoding:Q,validateFunction:N,validateInt32:de,validateInteger:ae,validateNumber:je,validateObject:ue,validateOneOf:se,validatePlainFunction:x,validatePort:fe,validateSignalName:Y,validateString:Ie,validateUint32:we,validateUndefined:D,validateUnion:z,validateAbortSignal:ve,validateLinkHeaderValue:be},Rc}function Wn(){if(B1)return kc;B1=!0;let{SymbolAsyncIterator:o,SymbolIterator:i,SymbolFor:f}=Qt(),g=f("nodejs.stream.destroyed"),a=f("nodejs.stream.errored"),n=f("nodejs.stream.readable"),r=f("nodejs.stream.writable"),u=f("nodejs.stream.disturbed"),p=f("nodejs.webstream.isClosedPromise"),c=f("nodejs.webstream.controllerErrorFunction");function d(J,ue=!1){var te;return!!(J&&typeof J.pipe=="function"&&typeof J.on=="function"&&(!ue||typeof J.pause=="function"&&typeof J.resume=="function")&&(!J._writableState||((te=J._readableState)===null||te===void 0?void 0:te.readable)!==!1)&&(!J._writableState||J._readableState))}l(d,"d"),e(d,"isReadableNodeStream");function m(J){var ue;return!!(J&&typeof J.write=="function"&&typeof J.on=="function"&&(!J._readableState||((ue=J._writableState)===null||ue===void 0?void 0:ue.writable)!==!1))}l(m,"y"),e(m,"isWritableNodeStream");function y(J){return!!(J&&typeof J.pipe=="function"&&J._readableState&&typeof J.on=="function"&&typeof J.write=="function")}l(y,"m"),e(y,"isDuplexNodeStream");function w(J){return J&&(J._readableState||J._writableState||typeof J.write=="function"&&typeof J.on=="function"||typeof J.pipe=="function"&&typeof J.on=="function")}l(w,"g"),e(w,"isNodeStream");function _(J){return!!(J&&!w(J)&&typeof J.pipeThrough=="function"&&typeof J.getReader=="function"&&typeof J.cancel=="function")}l(_,"v"),e(_,"isReadableStream");function S(J){return!!(J&&!w(J)&&typeof J.getWriter=="function"&&typeof J.abort=="function")}l(S,"_"),e(S,"isWritableStream");function T(J){return!!(J&&!w(J)&&typeof J.readable=="object"&&typeof J.writable=="object")}l(T,"b"),e(T,"isTransformStream");function k(J){return _(J)||S(J)||T(J)}l(k,"E"),e(k,"isWebStream");function E(J,ue){return J==null?!1:ue===!0?typeof J[o]=="function":ue===!1?typeof J[i]=="function":typeof J[o]=="function"||typeof J[i]=="function"}l(E,"R"),e(E,"isIterable");function j(J){if(!w(J))return null;let ue=J._writableState,te=J._readableState,X=ue||te;return!!(J.destroyed||J[g]||X!=null&&X.destroyed)}l(j,"T"),e(j,"isDestroyed");function A(J){if(!m(J))return null;if(J.writableEnded===!0)return!0;let ue=J._writableState;return ue!=null&&ue.errored?!1:typeof ue?.ended!="boolean"?null:ue.ended}l(A,"F"),e(A,"isWritableEnded");function I(J,ue){if(!m(J))return null;if(J.writableFinished===!0)return!0;let te=J._writableState;return te!=null&&te.errored?!1:typeof te?.finished!="boolean"?null:!!(te.finished||ue===!1&&te.ended===!0&&te.length===0)}l(I,"S"),e(I,"isWritableFinished");function U(J){if(!d(J))return null;if(J.readableEnded===!0)return!0;let ue=J._readableState;return!ue||ue.errored?!1:typeof ue?.ended!="boolean"?null:ue.ended}l(U,"B"),e(U,"isReadableEnded");function M(J,ue){if(!d(J))return null;let te=J._readableState;return te!=null&&te.errored?!1:typeof te?.endEmitted!="boolean"?null:!!(te.endEmitted||ue===!1&&te.ended===!0&&te.length===0)}l(M,"I"),e(M,"isReadableFinished");function ee(J){return J&&J[n]!=null?J[n]:typeof J?.readable!="boolean"?null:j(J)?!1:d(J)&&J.readable&&!M(J)}l(ee,"D"),e(ee,"isReadable");function V(J){return J&&J[r]!=null?J[r]:typeof J?.writable!="boolean"?null:j(J)?!1:m(J)&&J.writable&&!A(J)}l(V,"L"),e(V,"isWritable");function q(J,ue){return w(J)?j(J)?!0:!(ue?.readable!==!1&&ee(J)||ue?.writable!==!1&&V(J)):null}l(q,"C"),e(q,"isFinished");function G(J){var ue,te;return w(J)?J.writableErrored?J.writableErrored:(ue=(te=J._writableState)===null||te===void 0?void 0:te.errored)!==null&&ue!==void 0?ue:null:null}l(G,"j"),e(G,"isWritableErrored");function re(J){var ue,te;return w(J)?J.readableErrored?J.readableErrored:(ue=(te=J._readableState)===null||te===void 0?void 0:te.errored)!==null&&ue!==void 0?ue:null:null}l(re,"q"),e(re,"isReadableErrored");function ae(J){if(!w(J))return null;if(typeof J.closed=="boolean")return J.closed;let ue=J._writableState,te=J._readableState;return typeof ue?.closed=="boolean"||typeof te?.closed=="boolean"?ue?.closed||te?.closed:typeof J._closed=="boolean"&&de(J)?J._closed:null}l(ae,"Z"),e(ae,"isClosed");function de(J){return typeof J._closed=="boolean"&&typeof J._defaultKeepAlive=="boolean"&&typeof J._removedConnection=="boolean"&&typeof J._removedContLen=="boolean"}l(de,"K"),e(de,"isOutgoingMessage");function we(J){return typeof J._sent100=="boolean"&&de(J)}l(we,"se"),e(we,"isServerResponse");function Ie(J){var ue;return typeof J._consuming=="boolean"&&typeof J._dumped=="boolean"&&((ue=J.req)===null||ue===void 0?void 0:ue.upgradeOrConnect)===void 0}l(Ie,"_e"),e(Ie,"isServerRequest");function je(J){if(!w(J))return null;let ue=J._writableState,te=J._readableState,X=ue||te;return!X&&we(J)||!!(X&&X.autoDestroy&&X.emitClose&&X.closed===!1)}l(je,"pe"),e(je,"willEmitClose");function se(J){var ue;return!!(J&&((ue=J[u])!==null&&ue!==void 0?ue:J.readableDidRead||J.readableAborted))}l(se,"Q"),e(se,"isDisturbed");function Te(J){var ue,te,X,ye,Re,De,Y,H,Q,fe;return!!(J&&((ue=(te=(X=(ye=(Re=(De=J[a])!==null&&De!==void 0?De:J.readableErrored)!==null&&Re!==void 0?Re:J.writableErrored)!==null&&ye!==void 0?ye:(Y=J._readableState)===null||Y===void 0?void 0:Y.errorEmitted)!==null&&X!==void 0?X:(H=J._writableState)===null||H===void 0?void 0:H.errorEmitted)!==null&&te!==void 0?te:(Q=J._readableState)===null||Q===void 0?void 0:Q.errored)!==null&&ue!==void 0?ue:!((fe=J._writableState)===null||fe===void 0)&&fe.errored))}return l(Te,"he"),e(Te,"isErrored"),kc={isDestroyed:j,kIsDestroyed:g,isDisturbed:se,kIsDisturbed:u,isErrored:Te,kIsErrored:a,isReadable:ee,kIsReadable:n,kIsClosedPromise:p,kControllerErrorFunction:c,kIsWritable:r,isClosed:ae,isDuplexNodeStream:y,isFinished:q,isIterable:E,isReadableNodeStream:d,isReadableStream:_,isReadableEnded:U,isReadableFinished:M,isReadableErrored:re,isNodeStream:w,isWebStream:k,isWritable:V,isWritableNodeStream:m,isWritableStream:S,isWritableEnded:A,isWritableFinished:I,isWritableErrored:G,isServerRequest:Ie,isServerResponse:we,willEmitClose:je,isTransformStream:T},kc}function _i(){if(I1)return jl;I1=!0;let o=zn,{AbortError:i,codes:f}=Pr(),{ERR_INVALID_ARG_TYPE:g,ERR_STREAM_PREMATURE_CLOSE:a}=f,{kEmptyObject:n,once:r}=Rr(),{validateAbortSignal:u,validateFunction:p,validateObject:c,validateBoolean:d}=Qs(),{Promise:m,PromisePrototypeThen:y,SymbolDispose:w}=Qt(),{isClosed:_,isReadable:S,isReadableNodeStream:T,isReadableStream:k,isReadableFinished:E,isReadableErrored:j,isWritable:A,isWritableNodeStream:I,isWritableStream:U,isWritableFinished:M,isWritableErrored:ee,isNodeStream:V,willEmitClose:q,kIsClosedPromise:G}=Wn(),re;function ae(se){return se.setHeader&&typeof se.abort=="function"}l(ae,"Z"),e(ae,"isRequest");let de=e(()=>{},"nop");function we(se,Te,J){var ue,te;if(arguments.length===2?(J=Te,Te=n):Te==null?Te=n:c(Te,"options"),p(J,"callback"),u(Te.signal,"options.signal"),J=r(J),k(se)||U(se))return Ie(se,Te,J);if(!V(se))throw new g("stream",["ReadableStream","WritableStream","Stream"],se);let X=(ue=Te.readable)!==null&&ue!==void 0?ue:T(se),ye=(te=Te.writable)!==null&&te!==void 0?te:I(se),Re=se._writableState,De=se._readableState,Y=e(()=>{se.writable||fe()},"onlegacyfinish"),H=q(se)&&T(se)===X&&I(se)===ye,Q=M(se,!1),fe=e(()=>{Q=!0,se.destroyed&&(H=!1),!(H&&(!se.readable||X))&&(!X||ve)&&J.call(se)},"onfinish"),ve=E(se,!1),N=e(()=>{ve=!0,se.destroyed&&(H=!1),!(H&&(!se.writable||ye))&&(!ye||Q)&&J.call(se)},"onend"),x=e(ge=>{J.call(se,ge)},"onerror"),D=_(se),z=e(()=>{D=!0;let ge=ee(se)||j(se);if(ge&&typeof ge!="boolean")return J.call(se,ge);if(X&&!ve&&T(se,!0)&&!E(se,!1))return J.call(se,new a);if(ye&&!Q&&!M(se,!1))return J.call(se,new a);J.call(se)},"onclose"),Ee=e(()=>{D=!0;let ge=ee(se)||j(se);if(ge&&typeof ge!="boolean")return J.call(se,ge);J.call(se)},"onclosed"),ke=e(()=>{se.req.on("finish",fe)},"onrequest");ae(se)?(se.on("complete",fe),H||se.on("abort",z),se.req?ke():se.on("request",ke)):ye&&!Re&&(se.on("end",Y),se.on("close",Y)),!H&&typeof se.aborted=="boolean"&&se.on("aborted",z),se.on("end",N),se.on("finish",fe),Te.error!==!1&&se.on("error",x),se.on("close",z),D?o.nextTick(z):Re!=null&&Re.errorEmitted||De!=null&&De.errorEmitted?H||o.nextTick(Ee):(!X&&(!H||S(se))&&(Q||A(se)===!1)||!ye&&(!H||A(se))&&(ve||S(se)===!1)||De&&se.req&&se.aborted)&&o.nextTick(Ee);let be=e(()=>{J=de,se.removeListener("aborted",z),se.removeListener("complete",fe),se.removeListener("abort",z),se.removeListener("request",ke),se.req&&se.req.removeListener("finish",fe),se.removeListener("end",Y),se.removeListener("close",Y),se.removeListener("finish",fe),se.removeListener("end",N),se.removeListener("error",x),se.removeListener("close",z)},"cleanup");if(Te.signal&&!D){let ge=e(()=>{let Ne=J;be(),Ne.call(se,new i(void 0,{cause:Te.signal.reason}))},"abort2");if(Te.signal.aborted)o.nextTick(ge);else{re=re||Rr().addAbortListener;let Ne=re(Te.signal,ge),xe=J;J=r((...Oe)=>{Ne[w](),xe.apply(se,Oe)})}}return be}l(we,"se"),e(we,"eos");function Ie(se,Te,J){let ue=!1,te=de;if(Te.signal)if(te=e(()=>{ue=!0,J.call(se,new i(void 0,{cause:Te.signal.reason}))},"abort2"),Te.signal.aborted)o.nextTick(te);else{re=re||Rr().addAbortListener;let ye=re(Te.signal,te),Re=J;J=r((...De)=>{ye[w](),Re.apply(se,De)})}let X=e((...ye)=>{ue||o.nextTick(()=>J.apply(se,ye))},"resolverFn");return y(se[G].promise,X,X),de}l(Ie,"_e"),e(Ie,"eosWeb");function je(se,Te){var J;let ue=!1;return Te===null&&(Te=n),(J=Te)!==null&&J!==void 0&&J.cleanup&&(d(Te.cleanup,"cleanup"),ue=Te.cleanup),new m((te,X)=>{let ye=we(se,Te,Re=>{ue&&ye(),Re?X(Re):te()})})}return l(je,"pe"),e(je,"finished2"),jl=we,jl.finished=je,jl}function ja(){if(x1)return Oc;x1=!0;let o=zn,{aggregateTwoErrors:i,codes:{ERR_MULTIPLE_CALLBACK:f},AbortError:g}=Pr(),{Symbol:a}=Qt(),{kIsDestroyed:n,isDestroyed:r,isFinished:u,isServerRequest:p}=Wn(),c=a("kDestroy"),d=a("kConstruct");function m(q,G,re){q&&(q.stack,G&&!G.errored&&(G.errored=q),re&&!re.errored&&(re.errored=q))}l(m,"y"),e(m,"checkError");function y(q,G){let re=this._readableState,ae=this._writableState,de=ae||re;return ae!=null&&ae.destroyed||re!=null&&re.destroyed?(typeof G=="function"&&G(),this):(m(q,ae,re),ae&&(ae.destroyed=!0),re&&(re.destroyed=!0),de.constructed?w(this,q,G):this.once(c,function(we){w(this,i(we,q),G)}),this)}l(y,"m"),e(y,"destroy");function w(q,G,re){let ae=!1;function de(we){if(ae)return;ae=!0;let Ie=q._readableState,je=q._writableState;m(we,je,Ie),je&&(je.closed=!0),Ie&&(Ie.closed=!0),typeof re=="function"&&re(we),we?o.nextTick(_,q,we):o.nextTick(S,q)}l(de,"K"),e(de,"onDestroy");try{q._destroy(G||null,de)}catch(we){de(we)}}l(w,"g"),e(w,"_destroy");function _(q,G){T(q,G),S(q)}l(_,"v"),e(_,"emitErrorCloseNT");function S(q){let G=q._readableState,re=q._writableState;re&&(re.closeEmitted=!0),G&&(G.closeEmitted=!0),(re!=null&&re.emitClose||G!=null&&G.emitClose)&&q.emit("close")}l(S,"_"),e(S,"emitCloseNT");function T(q,G){let re=q._readableState,ae=q._writableState;ae!=null&&ae.errorEmitted||re!=null&&re.errorEmitted||(ae&&(ae.errorEmitted=!0),re&&(re.errorEmitted=!0),q.emit("error",G))}l(T,"b"),e(T,"emitErrorNT");function k(){let q=this._readableState,G=this._writableState;q&&(q.constructed=!0,q.closed=!1,q.closeEmitted=!1,q.destroyed=!1,q.errored=null,q.errorEmitted=!1,q.reading=!1,q.ended=q.readable===!1,q.endEmitted=q.readable===!1),G&&(G.constructed=!0,G.destroyed=!1,G.closed=!1,G.closeEmitted=!1,G.errored=null,G.errorEmitted=!1,G.finalCalled=!1,G.prefinished=!1,G.ended=G.writable===!1,G.ending=G.writable===!1,G.finished=G.writable===!1)}l(k,"E"),e(k,"undestroy");function E(q,G,re){let ae=q._readableState,de=q._writableState;if(de!=null&&de.destroyed||ae!=null&&ae.destroyed)return this;ae!=null&&ae.autoDestroy||de!=null&&de.autoDestroy?q.destroy(G):G&&(G.stack,de&&!de.errored&&(de.errored=G),ae&&!ae.errored&&(ae.errored=G),re?o.nextTick(T,q,G):T(q,G))}l(E,"R"),e(E,"errorOrDestroy");function j(q,G){if(typeof q._construct!="function")return;let re=q._readableState,ae=q._writableState;re&&(re.constructed=!1),ae&&(ae.constructed=!1),q.once(d,G),!(q.listenerCount(d)>1)&&o.nextTick(A,q)}l(j,"T"),e(j,"construct");function A(q){let G=!1;function re(ae){if(G){E(q,ae??new f);return}G=!0;let de=q._readableState,we=q._writableState,Ie=we||de;de&&(de.constructed=!0),we&&(we.constructed=!0),Ie.destroyed?q.emit(c,ae):ae?E(q,ae,!0):o.nextTick(I,q)}l(re,"q"),e(re,"onConstruct");try{q._construct(ae=>{o.nextTick(re,ae)})}catch(ae){o.nextTick(re,ae)}}l(A,"F"),e(A,"constructNT");function I(q){q.emit(d)}l(I,"S"),e(I,"emitConstructNT");function U(q){return q?.setHeader&&typeof q.abort=="function"}l(U,"B"),e(U,"isRequest");function M(q){q.emit("close")}l(M,"I"),e(M,"emitCloseLegacy");function ee(q,G){q.emit("error",G),o.nextTick(M,q)}l(ee,"D"),e(ee,"emitErrorCloseLegacy");function V(q,G){!q||r(q)||(!G&&!u(q)&&(G=new g),p(q)?(q.socket=null,q.destroy(G)):U(q)?q.abort():U(q.req)?q.req.abort():typeof q.destroy=="function"?q.destroy(G):typeof q.close=="function"?q.close():G?o.nextTick(ee,q,G):o.nextTick(M,q),q.destroyed||(q[n]=!0))}return l(V,"L"),e(V,"destroyer"),Oc={construct:j,destroyer:V,destroy:y,undestroy:k,errorOrDestroy:E},Oc}function Bd(){if(j1)return Tc;j1=!0;let{ArrayIsArray:o,ObjectSetPrototypeOf:i}=Qt(),{EventEmitter:f}=yi;function g(n){f.call(this,n)}l(g,"n"),e(g,"Stream2"),i(g.prototype,f.prototype),i(g,f),g.prototype.pipe=function(n,r){let u=this;function p(S){n.writable&&n.write(S)===!1&&u.pause&&u.pause()}l(p,"h"),e(p,"ondata"),u.on("data",p);function c(){u.readable&&u.resume&&u.resume()}l(c,"c"),e(c,"ondrain"),n.on("drain",c),!n._isStdio&&(!r||r.end!==!1)&&(u.on("end",m),u.on("close",y));let d=!1;function m(){d||(d=!0,n.end())}l(m,"y"),e(m,"onend");function y(){d||(d=!0,typeof n.destroy=="function"&&n.destroy())}l(y,"m"),e(y,"onclose");function w(S){_(),f.listenerCount(this,"error")===0&&this.emit("error",S)}l(w,"g"),e(w,"onerror"),a(u,"error",w),a(n,"error",w);function _(){u.removeListener("data",p),n.removeListener("drain",c),u.removeListener("end",m),u.removeListener("close",y),u.removeListener("error",w),n.removeListener("error",w),u.removeListener("end",_),u.removeListener("close",_),n.removeListener("close",_)}return l(_,"v"),e(_,"cleanup"),u.on("end",_),u.on("close",_),n.on("close",_),n.emit("pipe",u),n};function a(n,r,u){if(typeof n.prependListener=="function")return n.prependListener(r,u);!n._events||!n._events[r]?n.on(r,u):o(n._events[r])?n._events[r].unshift(u):n._events[r]=[u,n._events[r]]}return l(a,"a"),e(a,"prependListener2"),Tc={Stream:g,prependListener:a},Tc}function bf(){if(C1)return ks;C1=!0;let{SymbolDispose:o}=Qt(),{AbortError:i,codes:f}=Pr(),{isNodeStream:g,isWebStream:a,kControllerErrorFunction:n}=Wn(),r=_i(),{ERR_INVALID_ARG_TYPE:u}=f,p,c=e((d,m)=>{if(typeof d!="object"||!("aborted"in d))throw new u(m,"AbortSignal",d)},"validateAbortSignal");return ks.addAbortSignal=e(function(d,m){if(c(d,"signal"),!g(m)&&!a(m))throw new u("stream",["ReadableStream","WritableStream","Stream"],m);return ks.addAbortSignalNoValidate(d,m)},"addAbortSignal"),ks.addAbortSignalNoValidate=function(d,m){if(typeof d!="object"||!("aborted"in d))return m;let y=g(m)?()=>{m.destroy(new i(void 0,{cause:d.reason}))}:()=>{m[n](new i(void 0,{cause:d.reason}))};if(d.aborted)y();else{p=p||Rr().addAbortListener;let w=p(d,y);r(m,w[o])}return m},ks}function yj(){var u;var o;if(P1)return Fc;P1=!0;let{StringPrototypeSlice:i,SymbolIterator:f,TypedArrayPrototypeSet:g,Uint8Array:a}=Qt(),{Buffer:n}=vi(),{inspect:r}=Rr();return Fc=(o=(u=class{constructor(){this.head=null,this.tail=null,this.length=0}push(c){let d={data:c,next:null};this.length>0?this.tail.next=d:this.head=d,this.tail=d,++this.length}unshift(c){let d={data:c,next:this.head};this.length===0&&(this.tail=d),this.head=d,++this.length}shift(){if(this.length===0)return;let c=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,c}clear(){this.head=this.tail=null,this.length=0}join(c){if(this.length===0)return"";let d=this.head,m=""+d.data;for(;(d=d.next)!==null;)m+=c+d.data;return m}concat(c){if(this.length===0)return n.alloc(0);let d=n.allocUnsafe(c>>>0),m=this.head,y=0;for(;m;)g(d,m.data,y),y+=m.data.length,m=m.next;return d}consume(c,d){let m=this.head.data;if(c<m.length){let y=m.slice(0,c);return this.head.data=m.slice(c),y}return c===m.length?this.shift():d?this._getString(c):this._getBuffer(c)}first(){return this.head.data}*[f](){for(let c=this.head;c;c=c.next)yield c.data}_getString(c){let d="",m=this.head,y=0;do{let w=m.data;if(c>w.length)d+=w,c-=w.length;else{c===w.length?(d+=w,++y,m.next?this.head=m.next:this.head=this.tail=null):(d+=i(w,0,c),this.head=m,m.data=i(w,c));break}++y}while((m=m.next)!==null);return this.length-=y,d}_getBuffer(c){let d=n.allocUnsafe(c),m=c,y=this.head,w=0;do{let _=y.data;if(c>_.length)g(d,_,m-c),c-=_.length;else{c===_.length?(g(d,_,m-c),++w,y.next?this.head=y.next:this.head=this.tail=null):(g(d,new a(_.buffer,_.byteOffset,c),m-c),this.head=y,y.data=_.slice(c));break}++w}while((y=y.next)!==null);return this.length-=w,d}[Symbol.for("nodejs.util.inspect.custom")](c,d){return r(this,{...d,depth:0,customInspect:!1})}},l(u,"i"),u),e(o,"BufferList"),o),Fc}function vf(){if(L1)return Bc;L1=!0;let{MathFloor:o,NumberIsInteger:i}=Qt(),{validateInteger:f}=Qs(),{ERR_INVALID_ARG_VALUE:g}=Pr().codes,a=16*1024,n=16;function r(d,m,y){return d.highWaterMark!=null?d.highWaterMark:m?d[y]:null}l(r,"i"),e(r,"highWaterMarkFrom");function u(d){return d?n:a}l(u,"f"),e(u,"getDefaultHighWaterMark");function p(d,m){f(m,"value",0),d?n=m:a=m}l(p,"h"),e(p,"setDefaultHighWaterMark");function c(d,m,y,w){let _=r(m,w,y);if(_!=null){if(!i(_)||_<0){let S=w?`options.${y}`:"options.highWaterMark";throw new g(S,_)}return o(_)}return u(d.objectMode)}return l(c,"c"),e(c,"getHighWaterMark"),Bc={getHighWaterMark:c,getDefaultHighWaterMark:u,setDefaultHighWaterMark:p},Bc}function WE(){if(N1)return Ic;N1=!0;let o=zn,{PromisePrototypeThen:i,SymbolAsyncIterator:f,SymbolIterator:g}=Qt(),{Buffer:a}=vi(),{ERR_INVALID_ARG_TYPE:n,ERR_STREAM_NULL_VALUES:r}=Pr().codes;function u(p,c,d){let m;if(typeof c=="string"||c instanceof a)return new p({objectMode:!0,...d,read(){this.push(c),this.push(null)}});let y;if(c&&c[f])y=!0,m=c[f]();else if(c&&c[g])y=!1,m=c[g]();else throw new n("iterable",["Iterable"],c);let w=new p({objectMode:!0,highWaterMark:1,...d}),_=!1;w._read=function(){_||(_=!0,T())},w._destroy=function(k,E){i(S(k),()=>o.nextTick(E,k),j=>o.nextTick(E,j||k))};async function S(k){let E=k!=null,j=typeof m.throw=="function";if(E&&j){let{value:A,done:I}=await m.throw(k);if(await A,I)return}if(typeof m.return=="function"){let{value:A}=await m.return();await A}}l(S,"_"),e(S,"close");async function T(){for(;;){try{let{value:k,done:E}=y?await m.next():m.next();if(E)w.push(null);else{let j=k&&typeof k.then=="function"?await k:k;if(j===null)throw _=!1,new r;if(w.push(j))continue;_=!1}}catch(k){w.destroy(k)}break}}return l(T,"b"),e(T,"next"),w}return l(u,"f"),e(u,"from"),Ic=u,Ic}function _f(){if(D1)return xc;D1=!0;let o=zn,{ArrayPrototypeIndexOf:i,NumberIsInteger:f,NumberIsNaN:g,NumberParseInt:a,ObjectDefineProperties:n,ObjectKeys:r,ObjectSetPrototypeOf:u,Promise:p,SafeSet:c,SymbolAsyncDispose:d,SymbolAsyncIterator:m,Symbol:y}=Qt();xc=Oe,Oe.ReadableState=xe;let{EventEmitter:w}=yi,{Stream:_,prependListener:S}=Bd(),{Buffer:T}=vi(),{addAbortSignal:k}=bf(),E=_i(),j=Rr().debuglog("stream",me=>{j=me}),A=yj(),I=ja(),{getHighWaterMark:U,getDefaultHighWaterMark:M}=vf(),{aggregateTwoErrors:ee,codes:{ERR_INVALID_ARG_TYPE:V,ERR_METHOD_NOT_IMPLEMENTED:q,ERR_OUT_OF_RANGE:G,ERR_STREAM_PUSH_AFTER_EOF:re,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:ae},AbortError:de}=Pr(),{validateObject:we}=Qs(),Ie=y("kPaused"),{StringDecoder:je}=rc,se=WE();u(Oe.prototype,_.prototype),u(Oe,_);let Te=e(()=>{},"nop"),{errorOrDestroy:J}=I,ue=1,te=2,X=4,ye=8,Re=16,De=32,Y=64,H=128,Q=256,fe=512,ve=1024,N=2048,x=4096,D=8192,z=16384,Ee=32768,ke=65536,be=1<<17,ge=1<<18;function Ne(me){return{enumerable:!1,get(){return((this||Ze).state&me)!==0},set(Se){Se?(this||Ze).state|=me:(this||Ze).state&=~me}}}l(Ne,"me"),e(Ne,"makeBitMapDescriptor"),n(xe.prototype,{objectMode:Ne(ue),ended:Ne(te),endEmitted:Ne(X),reading:Ne(ye),constructed:Ne(Re),sync:Ne(De),needReadable:Ne(Y),emittedReadable:Ne(H),readableListening:Ne(Q),resumeScheduled:Ne(fe),errorEmitted:Ne(ve),emitClose:Ne(N),autoDestroy:Ne(x),destroyed:Ne(D),closed:Ne(z),closeEmitted:Ne(Ee),multiAwaitDrain:Ne(ke),readingMore:Ne(be),dataEmitted:Ne(ge)});function xe(me,Se,We){typeof We!="boolean"&&(We=Se instanceof Mn()),(this||Ze).state=N|x|Re|De,me&&me.objectMode&&((this||Ze).state|=ue),We&&me&&me.readableObjectMode&&((this||Ze).state|=ue),(this||Ze).highWaterMark=me?U(this||Ze,me,"readableHighWaterMark",We):M(!1),(this||Ze).buffer=new A,(this||Ze).length=0,(this||Ze).pipes=[],(this||Ze).flowing=null,(this||Ze)[Ie]=null,me&&me.emitClose===!1&&((this||Ze).state&=~N),me&&me.autoDestroy===!1&&((this||Ze).state&=~x),(this||Ze).errored=null,(this||Ze).defaultEncoding=me&&me.defaultEncoding||"utf8",(this||Ze).awaitDrainWriters=null,(this||Ze).decoder=null,(this||Ze).encoding=null,me&&me.encoding&&((this||Ze).decoder=new je(me.encoding),(this||Ze).encoding=me.encoding)}l(xe,"ye"),e(xe,"ReadableState");function Oe(me){if(!((this||Ze)instanceof Oe))return new Oe(me);let Se=(this||Ze)instanceof Mn();(this||Ze)._readableState=new xe(me,this||Ze,Se),me&&(typeof me.read=="function"&&((this||Ze)._read=me.read),typeof me.destroy=="function"&&((this||Ze)._destroy=me.destroy),typeof me.construct=="function"&&((this||Ze)._construct=me.construct),me.signal&&!Se&&k(me.signal,this||Ze)),_.call(this||Ze,me),I.construct(this||Ze,()=>{(this||Ze)._readableState.needReadable&&P(this||Ze,(this||Ze)._readableState)})}l(Oe,"ve"),e(Oe,"Readable2"),Oe.prototype.destroy=I.destroy,Oe.prototype._undestroy=I.undestroy,Oe.prototype._destroy=function(me,Se){Se(me)},Oe.prototype[w.captureRejectionSymbol]=function(me){this.destroy(me)},Oe.prototype[d]=function(){let me;return(this||Ze).destroyed||(me=(this||Ze).readableEnded?null:new de,this.destroy(me)),new p((Se,We)=>E(this||Ze,Qe=>Qe&&Qe!==me?We(Qe):Se(null)))},Oe.prototype.push=function(me,Se){return Pe(this||Ze,me,Se,!1)},Oe.prototype.unshift=function(me,Se){return Pe(this||Ze,me,Se,!0)};function Pe(me,Se,We,Qe){j("readableAddChunk",Se);let lt=me._readableState,bt;if(lt.state&ue||(typeof Se=="string"?(We=We||lt.defaultEncoding,lt.encoding!==We&&(Qe&&lt.encoding?Se=T.from(Se,We).toString(lt.encoding):(Se=T.from(Se,We),We=""))):Se instanceof T?We="":_._isUint8Array(Se)?(Se=_._uint8ArrayToBuffer(Se),We=""):Se!=null&&(bt=new V("chunk",["string","Buffer","Uint8Array"],Se))),bt)J(me,bt);else if(Se===null)lt.state&=~ye,h(me,lt);else if(lt.state&ue||Se&&Se.length>0)if(Qe)if(lt.state&X)J(me,new ae);else{if(lt.destroyed||lt.errored)return!1;$e(me,lt,Se,!0)}else if(lt.ended)J(me,new re);else{if(lt.destroyed||lt.errored)return!1;lt.state&=~ye,lt.decoder&&!We?(Se=lt.decoder.write(Se),lt.objectMode||Se.length!==0?$e(me,lt,Se,!1):P(me,lt)):$e(me,lt,Se,!1)}else Qe||(lt.state&=~ye,P(me,lt));return!lt.ended&&(lt.length<lt.highWaterMark||lt.length===0)}l(Pe,"Me"),e(Pe,"readableAddChunk");function $e(me,Se,We,Qe){Se.flowing&&Se.length===0&&!Se.sync&&me.listenerCount("data")>0?(Se.state&ke?Se.awaitDrainWriters.clear():Se.awaitDrainWriters=null,Se.dataEmitted=!0,me.emit("data",We)):(Se.length+=Se.objectMode?1:We.length,Qe?Se.buffer.unshift(We):Se.buffer.push(We),Se.state&Y&&v(me)),P(me,Se)}l($e,"Be"),e($e,"addChunk"),Oe.prototype.isPaused=function(){let me=(this||Ze)._readableState;return me[Ie]===!0||me.flowing===!1},Oe.prototype.setEncoding=function(me){let Se=new je(me);(this||Ze)._readableState.decoder=Se,(this||Ze)._readableState.encoding=(this||Ze)._readableState.decoder.encoding;let We=(this||Ze)._readableState.buffer,Qe="";for(let lt of We)Qe+=Se.write(lt);return We.clear(),Qe!==""&&We.push(Qe),(this||Ze)._readableState.length=Qe.length,this||Ze};let Ke=1073741824;function t(me){if(me>Ke)throw new G("size","<= 1GiB",me);return me--,me|=me>>>1,me|=me>>>2,me|=me>>>4,me|=me>>>8,me|=me>>>16,me++,me}l(t,"p"),e(t,"computeNewHighWaterMark");function s(me,Se){return me<=0||Se.length===0&&Se.ended?0:Se.state&ue?1:g(me)?Se.flowing&&Se.length?Se.buffer.first().length:Se.length:me<=Se.length?me:Se.ended?Se.length:0}l(s,"l"),e(s,"howMuchToRead"),Oe.prototype.read=function(me){j("read",me),me===void 0?me=NaN:f(me)||(me=a(me,10));let Se=(this||Ze)._readableState,We=me;if(me>Se.highWaterMark&&(Se.highWaterMark=t(me)),me!==0&&(Se.state&=~H),me===0&&Se.needReadable&&((Se.highWaterMark!==0?Se.length>=Se.highWaterMark:Se.length>0)||Se.ended))return j("read: emitReadable",Se.length,Se.ended),Se.length===0&&Se.ended?qe(this||Ze):v(this||Ze),null;if(me=s(me,Se),me===0&&Se.ended)return Se.length===0&&qe(this||Ze),null;let Qe=(Se.state&Y)!==0;if(j("need readable",Qe),(Se.length===0||Se.length-me<Se.highWaterMark)&&(Qe=!0,j("length less than watermark",Qe)),Se.ended||Se.reading||Se.destroyed||Se.errored||!Se.constructed)Qe=!1,j("reading, ended or constructing",Qe);else if(Qe){j("do read"),Se.state|=ye|De,Se.length===0&&(Se.state|=Y);try{this._read(Se.highWaterMark)}catch(bt){J(this||Ze,bt)}Se.state&=~De,Se.reading||(me=s(We,Se))}let lt;return me>0?lt=W(me,Se):lt=null,lt===null?(Se.needReadable=Se.length<=Se.highWaterMark,me=0):(Se.length-=me,Se.multiAwaitDrain?Se.awaitDrainWriters.clear():Se.awaitDrainWriters=null),Se.length===0&&(Se.ended||(Se.needReadable=!0),We!==me&&Se.ended&&qe(this||Ze)),lt!==null&&!Se.errorEmitted&&!Se.closeEmitted&&(Se.dataEmitted=!0,this.emit("data",lt)),lt};function h(me,Se){if(j("onEofChunk"),!Se.ended){if(Se.decoder){let We=Se.decoder.end();We&&We.length&&(Se.buffer.push(We),Se.length+=Se.objectMode?1:We.length)}Se.ended=!0,Se.sync?v(me):(Se.needReadable=!1,Se.emittedReadable=!0,R(me))}}l(h,"u"),e(h,"onEofChunk");function v(me){let Se=me._readableState;j("emitReadable",Se.needReadable,Se.emittedReadable),Se.needReadable=!1,Se.emittedReadable||(j("emitReadable",Se.flowing),Se.emittedReadable=!0,o.nextTick(R,me))}l(v,"w"),e(v,"emitReadable");function R(me){let Se=me._readableState;j("emitReadable_",Se.destroyed,Se.length,Se.ended),!Se.destroyed&&!Se.errored&&(Se.length||Se.ended)&&(me.emit("readable"),Se.emittedReadable=!1),Se.needReadable=!Se.flowing&&!Se.ended&&Se.length<=Se.highWaterMark,ie(me)}l(R,"A"),e(R,"emitReadable_");function P(me,Se){!Se.readingMore&&Se.constructed&&(Se.readingMore=!0,o.nextTick(C,me,Se))}l(P,"O"),e(P,"maybeReadMore");function C(me,Se){for(;!Se.reading&&!Se.ended&&(Se.length<Se.highWaterMark||Se.flowing&&Se.length===0);){let We=Se.length;if(j("maybeReadMore read 0"),me.read(0),We===Se.length)break}Se.readingMore=!1}l(C,"k"),e(C,"maybeReadMore_"),Oe.prototype._read=function(me){throw new q("_read()")},Oe.prototype.pipe=function(me,Se){let We=this||Ze,Qe=(this||Ze)._readableState;Qe.pipes.length===1&&(Qe.multiAwaitDrain||(Qe.multiAwaitDrain=!0,Qe.awaitDrainWriters=new c(Qe.awaitDrainWriters?[Qe.awaitDrainWriters]:[]))),Qe.pipes.push(me),j("pipe count=%d opts=%j",Qe.pipes.length,Se);let lt=(!Se||Se.end!==!1)&&me!==o.stdout&&me!==o.stderr?ht:Nt;Qe.endEmitted?o.nextTick(lt):We.once("end",lt),me.on("unpipe",bt);function bt(Ut,pr){j("onunpipe"),Ut===We&&pr&&pr.hasUnpiped===!1&&(pr.hasUnpiped=!0,Wt())}l(bt,"Gt"),e(bt,"onunpipe");function ht(){j("onend"),me.end()}l(ht,"xl"),e(ht,"onend");let kt,zt=!1;function Wt(){j("cleanup"),me.removeListener("close",er),me.removeListener("finish",Tt),kt&&me.removeListener("drain",kt),me.removeListener("error",et),me.removeListener("unpipe",bt),We.removeListener("end",ht),We.removeListener("end",Nt),We.removeListener("data",kr),zt=!0,kt&&Qe.awaitDrainWriters&&(!me._writableState||me._writableState.needDrain)&&kt()}l(Wt,"Tu"),e(Wt,"cleanup");function ir(){zt||(Qe.pipes.length===1&&Qe.pipes[0]===me?(j("false write response, pause",0),Qe.awaitDrainWriters=me,Qe.multiAwaitDrain=!1):Qe.pipes.length>1&&Qe.pipes.includes(me)&&(j("false write response, pause",Qe.awaitDrainWriters.size),Qe.awaitDrainWriters.add(me)),We.pause()),kt||(kt=Z(We,me),me.on("drain",kt))}l(ir,"Ua"),e(ir,"pause"),We.on("data",kr);function kr(Ut){j("ondata");let pr=me.write(Ut);j("dest.write",pr),pr===!1&&ir()}l(kr,"Ol"),e(kr,"ondata");function et(Ut){if(j("onerror",Ut),Nt(),me.removeListener("error",et),me.listenerCount("error")===0){let pr=me._writableState||me._readableState;pr&&!pr.errorEmitted?J(me,Ut):me.emit("error",Ut)}}l(et,"Il"),e(et,"onerror"),S(me,"error",et);function er(){me.removeListener("finish",Tt),Nt()}l(er,"xo"),e(er,"onclose"),me.once("close",er);function Tt(){j("onfinish"),me.removeListener("close",er),Nt()}l(Tt,"bn"),e(Tt,"onfinish"),me.once("finish",Tt);function Nt(){j("unpipe"),We.unpipe(me)}return l(Nt,"_n"),e(Nt,"unpipe"),me.emit("pipe",We),me.writableNeedDrain===!0?ir():Qe.flowing||(j("pipe resume"),We.resume()),me};function Z(me,Se){return e(function(){let We=me._readableState;We.awaitDrainWriters===Se?(j("pipeOnDrain",1),We.awaitDrainWriters=null):We.multiAwaitDrain&&(j("pipeOnDrain",We.awaitDrainWriters.size),We.awaitDrainWriters.delete(Se)),(!We.awaitDrainWriters||We.awaitDrainWriters.size===0)&&me.listenerCount("data")&&me.resume()},"pipeOnDrainFunctionResult")}l(Z,"W"),e(Z,"pipeOnDrain"),Oe.prototype.unpipe=function(me){let Se=(this||Ze)._readableState,We={hasUnpiped:!1};if(Se.pipes.length===0)return this||Ze;if(!me){let lt=Se.pipes;Se.pipes=[],this.pause();for(let bt=0;bt<lt.length;bt++)lt[bt].emit("unpipe",this||Ze,{hasUnpiped:!1});return this||Ze}let Qe=i(Se.pipes,me);return Qe===-1?this||Ze:(Se.pipes.splice(Qe,1),Se.pipes.length===0&&this.pause(),me.emit("unpipe",this||Ze,We),this||Ze)},Oe.prototype.on=function(me,Se){let We=_.prototype.on.call(this||Ze,me,Se),Qe=(this||Ze)._readableState;return me==="data"?(Qe.readableListening=this.listenerCount("readable")>0,Qe.flowing!==!1&&this.resume()):me==="readable"&&!Qe.endEmitted&&!Qe.readableListening&&(Qe.readableListening=Qe.needReadable=!0,Qe.flowing=!1,Qe.emittedReadable=!1,j("on readable",Qe.length,Qe.reading),Qe.length?v(this||Ze):Qe.reading||o.nextTick(Ae,this||Ze)),We},Oe.prototype.addListener=Oe.prototype.on,Oe.prototype.removeListener=function(me,Se){let We=_.prototype.removeListener.call(this||Ze,me,Se);return me==="readable"&&o.nextTick(oe,this||Ze),We},Oe.prototype.off=Oe.prototype.removeListener,Oe.prototype.removeAllListeners=function(me){let Se=_.prototype.removeAllListeners.apply(this||Ze,arguments);return(me==="readable"||me===void 0)&&o.nextTick(oe,this||Ze),Se};function oe(me){let Se=me._readableState;Se.readableListening=me.listenerCount("readable")>0,Se.resumeScheduled&&Se[Ie]===!1?Se.flowing=!0:me.listenerCount("data")>0?me.resume():Se.readableListening||(Se.flowing=null)}l(oe,"re"),e(oe,"updateReadableListening");function Ae(me){j("readable nexttick read 0"),me.read(0)}l(Ae,"de"),e(Ae,"nReadingNextTick"),Oe.prototype.resume=function(){let me=(this||Ze)._readableState;return me.flowing||(j("resume"),me.flowing=!me.readableListening,le(this||Ze,me)),me[Ie]=!1,this||Ze};function le(me,Se){Se.resumeScheduled||(Se.resumeScheduled=!0,o.nextTick(Fe,me,Se))}l(le,"we"),e(le,"resume");function Fe(me,Se){j("resume",Se.reading),Se.reading||me.read(0),Se.resumeScheduled=!1,me.emit("resume"),ie(me),Se.flowing&&!Se.reading&&me.read(0)}l(Fe,"ce"),e(Fe,"resume_"),Oe.prototype.pause=function(){return j("call pause flowing=%j",(this||Ze)._readableState.flowing),(this||Ze)._readableState.flowing!==!1&&(j("pause"),(this||Ze)._readableState.flowing=!1,this.emit("pause")),(this||Ze)._readableState[Ie]=!0,this||Ze};function ie(me){let Se=me._readableState;for(j("flow",Se.flowing);Se.flowing&&me.read()!==null;);}l(ie,"je"),e(ie,"flow"),Oe.prototype.wrap=function(me){let Se=!1;me.on("data",Qe=>{!this.push(Qe)&&me.pause&&(Se=!0,me.pause())}),me.on("end",()=>{this.push(null)}),me.on("error",Qe=>{J(this||Ze,Qe)}),me.on("close",()=>{this.destroy()}),me.on("destroy",()=>{this.destroy()}),(this||Ze)._read=()=>{Se&&me.resume&&(Se=!1,me.resume())};let We=r(me);for(let Qe=1;Qe<We.length;Qe++){let lt=We[Qe];(this||Ze)[lt]===void 0&&typeof me[lt]=="function"&&((this||Ze)[lt]=me[lt].bind(me))}return this||Ze},Oe.prototype[m]=function(){return Je(this||Ze)},Oe.prototype.iterator=function(me){return me!==void 0&&we(me,"options"),Je(this||Ze,me)};function Je(me,Se){typeof me.read!="function"&&(me=Oe.wrap(me,{objectMode:!0}));let We=dt(me,Se);return We.stream=me,We}l(Je,"sn"),e(Je,"streamToAsyncIterator");async function*dt(me,Se){let We=Te;function Qe(ht){(this||Ze)===me?(We(),We=Te):We=ht}l(Qe,"Ie"),e(Qe,"next"),me.on("readable",Qe);let lt,bt=E(me,{writable:!1},ht=>{lt=ht?ee(lt,ht):null,We(),We=Te});try{for(;;){let ht=me.destroyed?null:me.read();if(ht!==null)yield ht;else{if(lt)throw lt;if(lt===null)return;await new p(Qe)}}}catch(ht){throw lt=ee(lt,ht),lt}finally{(lt||Se?.destroyOnReturn!==!1)&&(lt===void 0||me._readableState.autoDestroy)?I.destroyer(me,null):(me.off("readable",Qe),bt())}}l(dt,"qn"),e(dt,"createAsyncIterator"),n(Oe.prototype,{readable:{__proto__:null,get(){let me=(this||Ze)._readableState;return!!me&&me.readable!==!1&&!me.destroyed&&!me.errorEmitted&&!me.endEmitted},set(me){(this||Ze)._readableState&&((this||Ze)._readableState.readable=!!me)}},readableDidRead:{__proto__:null,enumerable:!1,get:e(function(){return(this||Ze)._readableState.dataEmitted},"get")},readableAborted:{__proto__:null,enumerable:!1,get:e(function(){return!!((this||Ze)._readableState.readable!==!1&&((this||Ze)._readableState.destroyed||(this||Ze)._readableState.errored)&&!(this||Ze)._readableState.endEmitted)},"get")},readableHighWaterMark:{__proto__:null,enumerable:!1,get:e(function(){return(this||Ze)._readableState.highWaterMark},"get")},readableBuffer:{__proto__:null,enumerable:!1,get:e(function(){return(this||Ze)._readableState&&(this||Ze)._readableState.buffer},"get")},readableFlowing:{__proto__:null,enumerable:!1,get:e(function(){return(this||Ze)._readableState.flowing},"get"),set:e(function(me){(this||Ze)._readableState&&((this||Ze)._readableState.flowing=me)},"set")},readableLength:{__proto__:null,enumerable:!1,get(){return(this||Ze)._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return(this||Ze)._readableState?(this||Ze)._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return(this||Ze)._readableState?(this||Ze)._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return(this||Ze)._readableState?(this||Ze)._readableState.errored:null}},closed:{__proto__:null,get(){return(this||Ze)._readableState?(this||Ze)._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return(this||Ze)._readableState?(this||Ze)._readableState.destroyed:!1},set(me){(this||Ze)._readableState&&((this||Ze)._readableState.destroyed=me)}},readableEnded:{__proto__:null,enumerable:!1,get(){return(this||Ze)._readableState?(this||Ze)._readableState.endEmitted:!1}}}),n(xe.prototype,{pipesCount:{__proto__:null,get(){return(this||Ze).pipes.length}},paused:{__proto__:null,get(){return(this||Ze)[Ie]!==!1},set(me){(this||Ze)[Ie]=!!me}}}),Oe._fromList=W;function W(me,Se){if(Se.length===0)return null;let We;return Se.objectMode?We=Se.buffer.shift():!me||me>=Se.length?(Se.decoder?We=Se.buffer.join(""):Se.buffer.length===1?We=Se.buffer.first():We=Se.buffer.concat(Se.length),Se.buffer.clear()):We=Se.buffer.consume(me,Se.decoder),We}l(W,"Vt"),e(W,"fromList");function qe(me){let Se=me._readableState;j("endReadable",Se.endEmitted),Se.endEmitted||(Se.ended=!0,o.nextTick(Ve,Se,me))}l(qe,"jr"),e(qe,"endReadable");function Ve(me,Se){if(j("endReadableNT",me.endEmitted,me.length),!me.errored&&!me.closeEmitted&&!me.endEmitted&&me.length===0){if(me.endEmitted=!0,Se.emit("end"),Se.writable&&Se.allowHalfOpen===!1)o.nextTick(pe,Se);else if(me.autoDestroy){let We=Se._writableState;(!We||We.autoDestroy&&(We.finished||We.writable===!1))&&Se.destroy()}}}l(Ve,"Tl"),e(Ve,"endReadableNT");function pe(me){me.writable&&!me.writableEnded&&!me.destroyed&&me.end()}l(pe,"ki"),e(pe,"endWritableNT"),Oe.from=function(me,Se){return se(Oe,me,Se)};let Le;function He(){return Le===void 0&&(Le={}),Le}return l(He,"Fl"),e(He,"lazyWebStreams"),Oe.fromWeb=function(me,Se){return He().newStreamReadableFromReadableStream(me,Se)},Oe.toWeb=function(me,Se){return He().newReadableStreamFromStreamReadable(me,Se)},Oe.wrap=function(me,Se){var We,Qe;return new Oe({objectMode:(We=(Qe=me.readableObjectMode)!==null&&Qe!==void 0?Qe:me.objectMode)!==null&&We!==void 0?We:!0,...Se,destroy(lt,bt){I.destroyer(me,lt),bt(lt)}}).wrap(me)},xc}function Id(){if(U1)return jc;U1=!0;let o=zn,{ArrayPrototypeSlice:i,Error:f,FunctionPrototypeSymbolHasInstance:g,ObjectDefineProperty:a,ObjectDefineProperties:n,ObjectSetPrototypeOf:r,StringPrototypeToLowerCase:u,Symbol:p,SymbolHasInstance:c}=Qt();jc=we,we.WritableState=ae;let{EventEmitter:d}=yi,m=Bd().Stream,{Buffer:y}=vi(),w=ja(),{addAbortSignal:_}=bf(),{getHighWaterMark:S,getDefaultHighWaterMark:T}=vf(),{ERR_INVALID_ARG_TYPE:k,ERR_METHOD_NOT_IMPLEMENTED:E,ERR_MULTIPLE_CALLBACK:j,ERR_STREAM_CANNOT_PIPE:A,ERR_STREAM_DESTROYED:I,ERR_STREAM_ALREADY_FINISHED:U,ERR_STREAM_NULL_VALUES:M,ERR_STREAM_WRITE_AFTER_END:ee,ERR_UNKNOWN_ENCODING:V}=Pr().codes,{errorOrDestroy:q}=w;r(we.prototype,m.prototype),r(we,m);function G(){}l(G,"j"),e(G,"nop");let re=p("kOnFinished");function ae(x,D,z){typeof z!="boolean"&&(z=D instanceof Mn()),(this||nt).objectMode=!!(x&&x.objectMode),z&&((this||nt).objectMode=(this||nt).objectMode||!!(x&&x.writableObjectMode)),(this||nt).highWaterMark=x?S(this||nt,x,"writableHighWaterMark",z):T(!1),(this||nt).finalCalled=!1,(this||nt).needDrain=!1,(this||nt).ending=!1,(this||nt).ended=!1,(this||nt).finished=!1,(this||nt).destroyed=!1;let Ee=!!(x&&x.decodeStrings===!1);(this||nt).decodeStrings=!Ee,(this||nt).defaultEncoding=x&&x.defaultEncoding||"utf8",(this||nt).length=0,(this||nt).writing=!1,(this||nt).corked=0,(this||nt).sync=!0,(this||nt).bufferProcessing=!1,(this||nt).onwrite=J.bind(void 0,D),(this||nt).writecb=null,(this||nt).writelen=0,(this||nt).afterWriteTickInfo=null,de(this||nt),(this||nt).pendingcb=0,(this||nt).constructed=!0,(this||nt).prefinished=!1,(this||nt).errorEmitted=!1,(this||nt).emitClose=!x||x.emitClose!==!1,(this||nt).autoDestroy=!x||x.autoDestroy!==!1,(this||nt).errored=null,(this||nt).closed=!1,(this||nt).closeEmitted=!1,(this||nt)[re]=[]}l(ae,"Z"),e(ae,"WritableState");function de(x){x.buffered=[],x.bufferedIndex=0,x.allBuffers=!0,x.allNoop=!0}l(de,"K"),e(de,"resetBuffer"),ae.prototype.getBuffer=e(function(){return i((this||nt).buffered,(this||nt).bufferedIndex)},"getBuffer"),a(ae.prototype,"bufferedRequestCount",{__proto__:null,get(){return(this||nt).buffered.length-(this||nt).bufferedIndex}});function we(x){let D=(this||nt)instanceof Mn();if(!D&&!g(we,this||nt))return new we(x);(this||nt)._writableState=new ae(x,this||nt,D),x&&(typeof x.write=="function"&&((this||nt)._write=x.write),typeof x.writev=="function"&&((this||nt)._writev=x.writev),typeof x.destroy=="function"&&((this||nt)._destroy=x.destroy),typeof x.final=="function"&&((this||nt)._final=x.final),typeof x.construct=="function"&&((this||nt)._construct=x.construct),x.signal&&_(x.signal,this||nt)),m.call(this||nt,x),w.construct(this||nt,()=>{let z=(this||nt)._writableState;z.writing||ye(this||nt,z),H(this||nt,z)})}l(we,"se"),e(we,"Writable2"),a(we,c,{__proto__:null,value:e(function(x){return g(this||nt,x)?!0:(this||nt)!==we?!1:x&&x._writableState instanceof ae},"value")}),we.prototype.pipe=function(){q(this||nt,new A)};function Ie(x,D,z,Ee){let ke=x._writableState;if(typeof z=="function")Ee=z,z=ke.defaultEncoding;else{if(!z)z=ke.defaultEncoding;else if(z!=="buffer"&&!y.isEncoding(z))throw new V(z);typeof Ee!="function"&&(Ee=G)}if(D===null)throw new M;if(!ke.objectMode)if(typeof D=="string")ke.decodeStrings!==!1&&(D=y.from(D,z),z="buffer");else if(D instanceof y)z="buffer";else if(m._isUint8Array(D))D=m._uint8ArrayToBuffer(D),z="buffer";else throw new k("chunk",["string","Buffer","Uint8Array"],D);let be;return ke.ending?be=new ee:ke.destroyed&&(be=new I("write")),be?(o.nextTick(Ee,be),q(x,be,!0),be):(ke.pendingcb++,je(x,ke,D,z,Ee))}l(Ie,"_e"),e(Ie,"_write"),we.prototype.write=function(x,D,z){return Ie(this||nt,x,D,z)===!0},we.prototype.cork=function(){(this||nt)._writableState.corked++},we.prototype.uncork=function(){let x=(this||nt)._writableState;x.corked&&(x.corked--,x.writing||ye(this||nt,x))},we.prototype.setDefaultEncoding=e(function(x){if(typeof x=="string"&&(x=u(x)),!y.isEncoding(x))throw new V(x);return(this||nt)._writableState.defaultEncoding=x,this||nt},"setDefaultEncoding");function je(x,D,z,Ee,ke){let be=D.objectMode?1:z.length;D.length+=be;let ge=D.length<D.highWaterMark;return ge||(D.needDrain=!0),D.writing||D.corked||D.errored||!D.constructed?(D.buffered.push({chunk:z,encoding:Ee,callback:ke}),D.allBuffers&&Ee!=="buffer"&&(D.allBuffers=!1),D.allNoop&&ke!==G&&(D.allNoop=!1)):(D.writelen=be,D.writecb=ke,D.writing=!0,D.sync=!0,x._write(z,Ee,D.onwrite),D.sync=!1),ge&&!D.errored&&!D.destroyed}l(je,"pe"),e(je,"writeOrBuffer");function se(x,D,z,Ee,ke,be,ge){D.writelen=Ee,D.writecb=ge,D.writing=!0,D.sync=!0,D.destroyed?D.onwrite(new I("write")):z?x._writev(ke,D.onwrite):x._write(ke,be,D.onwrite),D.sync=!1}l(se,"Q"),e(se,"doWrite");function Te(x,D,z,Ee){--D.pendingcb,Ee(z),X(D),q(x,z)}l(Te,"he"),e(Te,"onwriteError");function J(x,D){let z=x._writableState,Ee=z.sync,ke=z.writecb;if(typeof ke!="function"){q(x,new j);return}z.writing=!1,z.writecb=null,z.length-=z.writelen,z.writelen=0,D?(D.stack,z.errored||(z.errored=D),x._readableState&&!x._readableState.errored&&(x._readableState.errored=D),Ee?o.nextTick(Te,x,z,D,ke):Te(x,z,D,ke)):(z.buffered.length>z.bufferedIndex&&ye(x,z),Ee?z.afterWriteTickInfo!==null&&z.afterWriteTickInfo.cb===ke?z.afterWriteTickInfo.count++:(z.afterWriteTickInfo={count:1,cb:ke,stream:x,state:z},o.nextTick(ue,z.afterWriteTickInfo)):te(x,z,1,ke))}l(J,"U"),e(J,"onwrite");function ue({stream:x,state:D,count:z,cb:Ee}){return D.afterWriteTickInfo=null,te(x,D,z,Ee)}l(ue,"J"),e(ue,"afterWriteTick");function te(x,D,z,Ee){for(!D.ending&&!x.destroyed&&D.length===0&&D.needDrain&&(D.needDrain=!1,x.emit("drain"));z-- >0;)D.pendingcb--,Ee();D.destroyed&&X(D),H(x,D)}l(te,"z"),e(te,"afterWrite");function X(x){if(x.writing)return;for(let ke=x.bufferedIndex;ke<x.buffered.length;++ke){var D;let{chunk:be,callback:ge}=x.buffered[ke],Ne=x.objectMode?1:be.length;x.length-=Ne,ge((D=x.errored)!==null&&D!==void 0?D:new I("write"))}let z=x[re].splice(0);for(let ke=0;ke<z.length;ke++){var Ee;z[ke]((Ee=x.errored)!==null&&Ee!==void 0?Ee:new I("end"))}de(x)}l(X,"V"),e(X,"errorBuffer");function ye(x,D){if(D.corked||D.bufferProcessing||D.destroyed||!D.constructed)return;let{buffered:z,bufferedIndex:Ee,objectMode:ke}=D,be=z.length-Ee;if(!be)return;let ge=Ee;if(D.bufferProcessing=!0,be>1&&x._writev){D.pendingcb-=be-1;let Ne=D.allNoop?G:Oe=>{for(let Pe=ge;Pe<z.length;++Pe)z[Pe].callback(Oe)},xe=D.allNoop&&ge===0?z:i(z,ge);xe.allBuffers=D.allBuffers,se(x,D,!0,D.length,xe,"",Ne),de(D)}else{do{let{chunk:Ne,encoding:xe,callback:Oe}=z[ge];z[ge++]=null;let Pe=ke?1:Ne.length;se(x,D,!1,Pe,Ne,xe,Oe)}while(ge<z.length&&!D.writing);ge===z.length?de(D):ge>256?(z.splice(0,ge),D.bufferedIndex=0):D.bufferedIndex=ge}D.bufferProcessing=!1}l(ye,"G"),e(ye,"clearBuffer"),we.prototype._write=function(x,D,z){if((this||nt)._writev)this._writev([{chunk:x,encoding:D}],z);else throw new E("_write()")},we.prototype._writev=null,we.prototype.end=function(x,D,z){let Ee=(this||nt)._writableState;typeof x=="function"?(z=x,x=null,D=null):typeof D=="function"&&(z=D,D=null);let ke;if(x!=null){let be=Ie(this||nt,x,D);be instanceof f&&(ke=be)}return Ee.corked&&(Ee.corked=1,this.uncork()),ke||(!Ee.errored&&!Ee.ending?(Ee.ending=!0,H(this||nt,Ee,!0),Ee.ended=!0):Ee.finished?ke=new U("end"):Ee.destroyed&&(ke=new I("end"))),typeof z=="function"&&(ke||Ee.finished?o.nextTick(z,ke):Ee[re].push(z)),this||nt};function Re(x){return x.ending&&!x.destroyed&&x.constructed&&x.length===0&&!x.errored&&x.buffered.length===0&&!x.finished&&!x.writing&&!x.errorEmitted&&!x.closeEmitted}l(Re,"fe"),e(Re,"needFinish");function De(x,D){let z=!1;function Ee(ke){if(z){q(x,ke??j());return}if(z=!0,D.pendingcb--,ke){let be=D[re].splice(0);for(let ge=0;ge<be.length;ge++)be[ge](ke);q(x,ke,D.sync)}else Re(D)&&(D.prefinished=!0,x.emit("prefinish"),D.pendingcb++,o.nextTick(Q,x,D))}l(Ee,"ue"),e(Ee,"onFinish"),D.sync=!0,D.pendingcb++;try{x._final(Ee)}catch(ke){Ee(ke)}D.sync=!1}l(De,"be"),e(De,"callFinal");function Y(x,D){!D.prefinished&&!D.finalCalled&&(typeof x._final=="function"&&!D.destroyed?(D.finalCalled=!0,De(x,D)):(D.prefinished=!0,x.emit("prefinish")))}l(Y,"N"),e(Y,"prefinish");function H(x,D,z){Re(D)&&(Y(x,D),D.pendingcb===0&&(z?(D.pendingcb++,o.nextTick((Ee,ke)=>{Re(ke)?Q(Ee,ke):ke.pendingcb--},x,D)):Re(D)&&(D.pendingcb++,Q(x,D))))}l(H,"$"),e(H,"finishMaybe");function Q(x,D){D.pendingcb--,D.finished=!0;let z=D[re].splice(0);for(let Ee=0;Ee<z.length;Ee++)z[Ee]();if(x.emit("finish"),D.autoDestroy){let Ee=x._readableState;(!Ee||Ee.autoDestroy&&(Ee.endEmitted||Ee.readable===!1))&&x.destroy()}}l(Q,"H"),e(Q,"finish"),n(we.prototype,{closed:{__proto__:null,get(){return(this||nt)._writableState?(this||nt)._writableState.closed:!1}},destroyed:{__proto__:null,get(){return(this||nt)._writableState?(this||nt)._writableState.destroyed:!1},set(x){(this||nt)._writableState&&((this||nt)._writableState.destroyed=x)}},writable:{__proto__:null,get(){let x=(this||nt)._writableState;return!!x&&x.writable!==!1&&!x.destroyed&&!x.errored&&!x.ending&&!x.ended},set(x){(this||nt)._writableState&&((this||nt)._writableState.writable=!!x)}},writableFinished:{__proto__:null,get(){return(this||nt)._writableState?(this||nt)._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return(this||nt)._writableState?(this||nt)._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return(this||nt)._writableState&&(this||nt)._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return(this||nt)._writableState?(this||nt)._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){let x=(this||nt)._writableState;return x?!x.destroyed&&!x.ending&&x.needDrain:!1}},writableHighWaterMark:{__proto__:null,get(){return(this||nt)._writableState&&(this||nt)._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return(this||nt)._writableState?(this||nt)._writableState.corked:0}},writableLength:{__proto__:null,get(){return(this||nt)._writableState&&(this||nt)._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return(this||nt)._writableState?(this||nt)._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:e(function(){return!!((this||nt)._writableState.writable!==!1&&((this||nt)._writableState.destroyed||(this||nt)._writableState.errored)&&!(this||nt)._writableState.finished)},"get")}});let fe=w.destroy;we.prototype.destroy=function(x,D){let z=(this||nt)._writableState;return!z.destroyed&&(z.bufferedIndex<z.buffered.length||z[re].length)&&o.nextTick(X,z),fe.call(this||nt,x,D),this||nt},we.prototype._undestroy=w.undestroy,we.prototype._destroy=function(x,D){D(x)},we.prototype[d.captureRejectionSymbol]=function(x){this.destroy(x)};let ve;function N(){return ve===void 0&&(ve={}),ve}return l(N,"P"),e(N,"lazyWebStreams"),we.fromWeb=function(x,D){return N().newStreamWritableFromWritableStream(x,D)},we.toWeb=function(x){return N().newWritableStreamFromStreamWritable(x)},jc}function mj(){var ae;if(M1)return Cc;M1=!0;let o=zn,i=vi(),{isReadable:f,isWritable:g,isIterable:a,isNodeStream:n,isReadableNodeStream:r,isWritableNodeStream:u,isDuplexNodeStream:p,isReadableStream:c,isWritableStream:d}=Wn(),m=_i(),{AbortError:y,codes:{ERR_INVALID_ARG_TYPE:w,ERR_INVALID_RETURN_VALUE:_}}=Pr(),{destroyer:S}=ja(),T=Mn(),k=_f(),E=Id(),{createDeferredPromise:j}=Rr(),A=WE(),I=globalThis.Blob||i.Blob,U=e(typeof I<"u"?function(de){return de instanceof I}:function(de){return!1},"isBlob2"),M=globalThis.AbortController||Vs().AbortController,{FunctionPrototypeCall:ee}=Qt(),V=(ae=class extends T{constructor(we){super(we),we?.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),we?.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}},l(ae,"q"),ae);e(V,"Duplexify");let q=V;Cc=e(l(function de(we,Ie){if(p(we))return we;if(r(we))return re({readable:we});if(u(we))return re({writable:we});if(n(we))return re({writable:!1,readable:!1});if(c(we))return re({readable:k.fromWeb(we)});if(d(we))return re({writable:E.fromWeb(we)});if(typeof we=="function"){let{value:se,write:Te,final:J,destroy:ue}=G(we);if(a(se))return A(q,se,{objectMode:!0,write:Te,final:J,destroy:ue});let te=se?.then;if(typeof te=="function"){let X,ye=ee(te,se,Re=>{if(Re!=null)throw new _("nully","body",Re)},Re=>{S(X,Re)});return X=new q({objectMode:!0,readable:!1,write:Te,final(Re){J(async()=>{try{await ye,o.nextTick(Re,null)}catch(De){o.nextTick(Re,De)}})},destroy:ue})}throw new _("Iterable, AsyncIterable or AsyncFunction",Ie,se)}if(U(we))return de(we.arrayBuffer());if(a(we))return A(q,we,{objectMode:!0,writable:!1});if(c(we?.readable)&&d(we?.writable))return q.fromWeb(we);if(typeof we?.writable=="object"||typeof we?.readable=="object"){let se=we!=null&&we.readable?r(we?.readable)?we?.readable:de(we.readable):void 0,Te=we!=null&&we.writable?u(we?.writable)?we?.writable:de(we.writable):void 0;return re({readable:se,writable:Te})}let je=we?.then;if(typeof je=="function"){let se;return ee(je,we,Te=>{Te!=null&&se.push(Te),se.push(null)},Te=>{S(se,Te)}),se=new q({objectMode:!0,writable:!1,read(){}})}throw new w(Ie,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],we)},"Z"),"duplexify");function G(de){let{promise:we,resolve:Ie}=j(),je=new M,se=je.signal;return{value:de(async function*(){for(;;){let Te=we;we=null;let{chunk:J,done:ue,cb:te}=await Te;if(o.nextTick(te),ue)return;if(se.aborted)throw new y(void 0,{cause:se.reason});({promise:we,resolve:Ie}=j()),yield J}}(),{signal:se}),write(Te,J,ue){let te=Ie;Ie=null,te({chunk:Te,done:!1,cb:ue})},final(Te){let J=Ie;Ie=null,J({done:!0,cb:Te})},destroy(Te,J){je.abort(),J(Te)}}}l(G,"C"),e(G,"fromAsyncGen");function re(de){let we=de.readable&&typeof de.readable.read!="function"?k.wrap(de.readable):de.readable,Ie=de.writable,je=!!f(we),se=!!g(Ie),Te,J,ue,te,X;function ye(Re){let De=te;te=null,De?De(Re):Re&&X.destroy(Re)}return l(ye,"V"),e(ye,"onfinished"),X=new q({readableObjectMode:!!(we!=null&&we.readableObjectMode),writableObjectMode:!!(Ie!=null&&Ie.writableObjectMode),readable:je,writable:se}),se&&(m(Ie,Re=>{se=!1,Re&&S(we,Re),ye(Re)}),X._write=function(Re,De,Y){Ie.write(Re,De)?Y():Te=Y},X._final=function(Re){Ie.end(),J=Re},Ie.on("drain",function(){if(Te){let Re=Te;Te=null,Re()}}),Ie.on("finish",function(){if(J){let Re=J;J=null,Re()}})),je&&(m(we,Re=>{je=!1,Re&&S(we,Re),ye(Re)}),we.on("readable",function(){if(ue){let Re=ue;ue=null,Re()}}),we.on("end",function(){X.push(null)}),X._read=function(){for(;;){let Re=we.read();if(Re===null){ue=X._read;return}if(!X.push(Re))return}}),X._destroy=function(Re,De){!Re&&te!==null&&(Re=new y),ue=null,Te=null,J=null,te===null?De(Re):(te=De,S(Ie,Re),S(we,Re))},X}return l(re,"j"),e(re,"_duplexify"),Cc}function Mn(){if($1)return Pc;$1=!0;let{ObjectDefineProperties:o,ObjectGetOwnPropertyDescriptor:i,ObjectKeys:f,ObjectSetPrototypeOf:g}=Qt();Pc=r;let a=_f(),n=Id();g(r.prototype,a.prototype),g(r,a);{let d=f(n.prototype);for(let m=0;m<d.length;m++){let y=d[m];r.prototype[y]||(r.prototype[y]=n.prototype[y])}}function r(d){if(!(this instanceof r))return new r(d);a.call(this,d),n.call(this,d),d?(this.allowHalfOpen=d.allowHalfOpen!==!1,d.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),d.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}l(r,"i"),e(r,"Duplex2"),o(r.prototype,{writable:{__proto__:null,...i(n.prototype,"writable")},writableHighWaterMark:{__proto__:null,...i(n.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...i(n.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...i(n.prototype,"writableBuffer")},writableLength:{__proto__:null,...i(n.prototype,"writableLength")},writableFinished:{__proto__:null,...i(n.prototype,"writableFinished")},writableCorked:{__proto__:null,...i(n.prototype,"writableCorked")},writableEnded:{__proto__:null,...i(n.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...i(n.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set(d){this._readableState&&this._writableState&&(this._readableState.destroyed=d,this._writableState.destroyed=d)}}});let u;function p(){return u===void 0&&(u={}),u}l(p,"h"),e(p,"lazyWebStreams"),r.fromWeb=function(d,m){return p().newStreamDuplexFromReadableWritablePair(d,m)},r.toWeb=function(d){return p().newReadableWritablePairFromDuplex(d)};let c;return r.from=function(d){return c||(c=mj()),c(d,"body")},Pc}function zE(){if(W1)return Lc;W1=!0;let{ObjectSetPrototypeOf:o,Symbol:i}=Qt();Lc=r;let{ERR_METHOD_NOT_IMPLEMENTED:f}=Pr().codes,g=Mn(),{getHighWaterMark:a}=vf();o(r.prototype,g.prototype),o(r,g);let n=i("kCallback");function r(c){if(!(this instanceof r))return new r(c);let d=c?a(this,c,"readableHighWaterMark",!0):null;d===0&&(c={...c,highWaterMark:null,readableHighWaterMark:d,writableHighWaterMark:c.writableHighWaterMark||0}),g.call(this,c),this._readableState.sync=!1,this[n]=null,c&&(typeof c.transform=="function"&&(this._transform=c.transform),typeof c.flush=="function"&&(this._flush=c.flush)),this.on("prefinish",p)}l(r,"i"),e(r,"Transform2");function u(c){typeof this._flush=="function"&&!this.destroyed?this._flush((d,m)=>{if(d){c?c(d):this.destroy(d);return}m!=null&&this.push(m),this.push(null),c&&c()}):(this.push(null),c&&c())}l(u,"f"),e(u,"final");function p(){this._final!==u&&u.call(this)}return l(p,"h"),e(p,"prefinish"),r.prototype._final=u,r.prototype._transform=function(c,d,m){throw new f("_transform()")},r.prototype._write=function(c,d,m){let y=this._readableState,w=this._writableState,_=y.length;this._transform(c,d,(S,T)=>{if(S){m(S);return}T!=null&&this.push(T),w.ended||_===y.length||y.length<y.highWaterMark?m():this[n]=m})},r.prototype._read=function(){if(this[n]){let c=this[n];this[n]=null,c()}},Lc}function HE(){if(z1)return Nc;z1=!0;let{ObjectSetPrototypeOf:o}=Qt();Nc=f;let i=zE();o(f.prototype,i.prototype),o(f,i);function f(g){if(!(this instanceof f))return new f(g);i.call(this,g)}return l(f,"r"),e(f,"PassThrough2"),f.prototype._transform=function(g,a,n){n(null,g)},Nc}function xd(){if(H1)return Dc;H1=!0;let o=zn,{ArrayIsArray:i,Promise:f,SymbolAsyncIterator:g,SymbolDispose:a}=Qt(),n=_i(),{once:r}=Rr(),u=ja(),p=Mn(),{aggregateTwoErrors:c,codes:{ERR_INVALID_ARG_TYPE:d,ERR_INVALID_RETURN_VALUE:m,ERR_MISSING_ARGS:y,ERR_STREAM_DESTROYED:w,ERR_STREAM_PREMATURE_CLOSE:_},AbortError:S}=Pr(),{validateFunction:T,validateAbortSignal:k}=Qs(),{isIterable:E,isReadable:j,isReadableNodeStream:A,isNodeStream:I,isTransformStream:U,isWebStream:M,isReadableStream:ee,isReadableFinished:V}=Wn(),q=globalThis.AbortController||Vs().AbortController,G,re,ae;function de(X,ye,Re){let De=!1;X.on("close",()=>{De=!0});let Y=n(X,{readable:ye,writable:Re},H=>{De=!H});return{destroy:e(H=>{De||(De=!0,u.destroyer(X,H||new w("pipe")))},"destroy"),cleanup:Y}}l(de,"K"),e(de,"destroyer");function we(X){return T(X[X.length-1],"streams[stream.length - 1]"),X.pop()}l(we,"se"),e(we,"popCallback");function Ie(X){if(E(X))return X;if(A(X))return je(X);throw new d("val",["Readable","Iterable","AsyncIterable"],X)}l(Ie,"_e"),e(Ie,"makeAsyncIterable");async function*je(X){re||(re=_f()),yield*re.prototype[g].call(X)}l(je,"pe"),e(je,"fromReadable");async function se(X,ye,Re,{end:De}){let Y,H=null,Q=e(N=>{if(N&&(Y=N),H){let x=H;H=null,x()}},"resume"),fe=e(()=>new f((N,x)=>{Y?x(Y):H=e(()=>{Y?x(Y):N()},"onresolve")}),"wait");ye.on("drain",Q);let ve=n(ye,{readable:!1},Q);try{ye.writableNeedDrain&&await fe();for await(let N of X)ye.write(N)||await fe();De&&(ye.end(),await fe()),Re()}catch(N){Re(Y!==N?c(Y,N):N)}finally{ve(),ye.off("drain",Q)}}l(se,"Q"),e(se,"pumpToNode");async function Te(X,ye,Re,{end:De}){U(ye)&&(ye=ye.writable);let Y=ye.getWriter();try{for await(let H of X)await Y.ready,Y.write(H).catch(()=>{});await Y.ready,De&&await Y.close(),Re()}catch(H){try{await Y.abort(H),Re(H)}catch(Q){Re(Q)}}}l(Te,"he"),e(Te,"pumpToWeb");function J(...X){return ue(X,r(we(X)))}l(J,"U"),e(J,"pipeline2");function ue(X,ye,Re){if(X.length===1&&i(X[0])&&(X=X[0]),X.length<2)throw new y("streams");let De=new q,Y=De.signal,H=Re?.signal,Q=[];k(H,"options.signal");function fe(){ke(new S)}l(fe,"te"),e(fe,"abort2"),ae=ae||Rr().addAbortListener;let ve;H&&(ve=ae(H,fe));let N,x,D=[],z=0;function Ee(xe){ke(xe,--z===0)}l(Ee,"ue"),e(Ee,"finish");function ke(xe,Oe){var Pe;if(xe&&(!N||N.code==="ERR_STREAM_PREMATURE_CLOSE")&&(N=xe),!(!N&&!Oe)){for(;D.length;)D.shift()(N);(Pe=ve)===null||Pe===void 0||Pe[a](),De.abort(),Oe&&(N||Q.forEach($e=>$e()),o.nextTick(ye,N,x))}}l(ke,"le"),e(ke,"finishImpl");let be;for(let xe=0;xe<X.length;xe++){let Oe=X[xe],Pe=xe<X.length-1,$e=xe>0,Ke=Pe||Re?.end!==!1,t=xe===X.length-1;if(I(Oe)){let s=e(function(h){h&&h.name!=="AbortError"&&h.code!=="ERR_STREAM_PREMATURE_CLOSE"&&Ee(h)},"onError");if(Ke){let{destroy:h,cleanup:v}=de(Oe,Pe,$e);D.push(h),j(Oe)&&t&&Q.push(v)}Oe.on("error",s),j(Oe)&&t&&Q.push(()=>{Oe.removeListener("error",s)})}if(xe===0)if(typeof Oe=="function"){if(be=Oe({signal:Y}),!E(be))throw new m("Iterable, AsyncIterable or Stream","source",be)}else E(Oe)||A(Oe)||U(Oe)?be=Oe:be=p.from(Oe);else if(typeof Oe=="function"){if(U(be)){var ge;be=Ie((ge=be)===null||ge===void 0?void 0:ge.readable)}else be=Ie(be);if(be=Oe(be,{signal:Y}),Pe){if(!E(be,!0))throw new m("AsyncIterable",`transform[${xe-1}]`,be)}else{var Ne;G||(G=HE());let s=new G({objectMode:!0}),h=(Ne=be)===null||Ne===void 0?void 0:Ne.then;if(typeof h=="function")z++,h.call(be,P=>{x=P,P!=null&&s.write(P),Ke&&s.end(),o.nextTick(Ee)},P=>{s.destroy(P),o.nextTick(Ee,P)});else if(E(be,!0))z++,se(be,s,Ee,{end:Ke});else if(ee(be)||U(be)){let P=be.readable||be;z++,se(P,s,Ee,{end:Ke})}else throw new m("AsyncIterable or Promise","destination",be);be=s;let{destroy:v,cleanup:R}=de(be,!1,!0);D.push(v),t&&Q.push(R)}}else if(I(Oe)){if(A(be)){z+=2;let s=te(be,Oe,Ee,{end:Ke});j(Oe)&&t&&Q.push(s)}else if(U(be)||ee(be)){let s=be.readable||be;z++,se(s,Oe,Ee,{end:Ke})}else if(E(be))z++,se(be,Oe,Ee,{end:Ke});else throw new d("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],be);be=Oe}else if(M(Oe)){if(A(be))z++,Te(Ie(be),Oe,Ee,{end:Ke});else if(ee(be)||E(be))z++,Te(be,Oe,Ee,{end:Ke});else if(U(be))z++,Te(be.readable,Oe,Ee,{end:Ke});else throw new d("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],be);be=Oe}else be=p.from(Oe)}return(Y!=null&&Y.aborted||H!=null&&H.aborted)&&o.nextTick(fe),be}l(ue,"J"),e(ue,"pipelineImpl");function te(X,ye,Re,{end:De}){let Y=!1;if(ye.on("close",()=>{Y||Re(new _)}),X.pipe(ye,{end:!1}),De){let H=e(function(){Y=!0,ye.end()},"endFn");V(X)?o.nextTick(H):X.once("end",H)}else Re();return n(X,{readable:!0,writable:!1},H=>{let Q=X._readableState;H&&H.code==="ERR_STREAM_PREMATURE_CLOSE"&&Q&&Q.ended&&!Q.errored&&!Q.errorEmitted?X.once("end",Re).once("error",Re):Re(H)}),n(ye,{readable:!1,writable:!0},Re)}return l(te,"z"),e(te,"pipe"),Dc={pipelineImpl:ue,pipeline:J},Dc}function qE(){if(q1)return Uc;q1=!0;let{pipeline:o}=xd(),i=Mn(),{destroyer:f}=ja(),{isNodeStream:g,isReadable:a,isWritable:n,isWebStream:r,isTransformStream:u,isWritableStream:p,isReadableStream:c}=Wn(),{AbortError:d,codes:{ERR_INVALID_ARG_VALUE:m,ERR_MISSING_ARGS:y}}=Pr(),w=_i();return Uc=e(function(..._){if(_.length===0)throw new y("streams");if(_.length===1)return i.from(_[0]);let S=[..._];if(typeof _[0]=="function"&&(_[0]=i.from(_[0])),typeof _[_.length-1]=="function"){let q=_.length-1;_[q]=i.from(_[q])}for(let q=0;q<_.length;++q)if(!(!g(_[q])&&!r(_[q]))){if(q<_.length-1&&!(a(_[q])||c(_[q])||u(_[q])))throw new m(`streams[${q}]`,S[q],"must be readable");if(q>0&&!(n(_[q])||p(_[q])||u(_[q])))throw new m(`streams[${q}]`,S[q],"must be writable")}let T,k,E,j,A;function I(q){let G=j;j=null,G?G(q):q?A.destroy(q):!V&&!ee&&A.destroy()}l(I,"B"),e(I,"onfinished");let U=_[0],M=o(_,I),ee=!!(n(U)||p(U)||u(U)),V=!!(a(M)||c(M)||u(M));if(A=new i({writableObjectMode:!!(U!=null&&U.writableObjectMode),readableObjectMode:!!(M!=null&&M.readableObjectMode),writable:ee,readable:V}),ee){if(g(U))A._write=function(G,re,ae){U.write(G,re)?ae():T=ae},A._final=function(G){U.end(),k=G},U.on("drain",function(){if(T){let G=T;T=null,G()}});else if(r(U)){let G=(u(U)?U.writable:U).getWriter();A._write=async function(re,ae,de){try{await G.ready,G.write(re).catch(()=>{}),de()}catch(we){de(we)}},A._final=async function(re){try{await G.ready,G.close().catch(()=>{}),k=re}catch(ae){re(ae)}}}let q=u(M)?M.readable:M;w(q,()=>{if(k){let G=k;k=null,G()}})}if(V){if(g(M))M.on("readable",function(){if(E){let q=E;E=null,q()}}),M.on("end",function(){A.push(null)}),A._read=function(){for(;;){let q=M.read();if(q===null){E=A._read;return}if(!A.push(q))return}};else if(r(M)){let q=(u(M)?M.readable:M).getReader();A._read=async function(){for(;;)try{let{value:G,done:re}=await q.read();if(!A.push(G))return;if(re){A.push(null);return}}catch{return}}}}return A._destroy=function(q,G){!q&&j!==null&&(q=new d),E=null,T=null,k=null,j===null?G(q):(j=G,g(M)&&f(M,q))},A},"compose"),Uc}function wj(){var Q;if(G1)return Cl;G1=!0;let o=globalThis.AbortController||Vs().AbortController,{codes:{ERR_INVALID_ARG_VALUE:i,ERR_INVALID_ARG_TYPE:f,ERR_MISSING_ARGS:g,ERR_OUT_OF_RANGE:a},AbortError:n}=Pr(),{validateAbortSignal:r,validateInteger:u,validateObject:p}=Qs(),c=Qt().Symbol("kWeak"),d=Qt().Symbol("kResistStopPropagation"),{finished:m}=_i(),y=qE(),{addAbortSignalNoValidate:w}=bf(),{isWritable:_,isNodeStream:S}=Wn(),{deprecate:T}=Rr(),{ArrayPrototypePush:k,Boolean:E,MathFloor:j,Number:A,NumberIsNaN:I,Promise:U,PromiseReject:M,PromiseResolve:ee,PromisePrototypeThen:V,Symbol:q}=Qt(),G=q("kEmpty"),re=q("kEof");function ae(fe,ve){if(ve!=null&&p(ve,"options"),ve?.signal!=null&&r(ve.signal,"options.signal"),S(fe)&&!_(fe))throw new i("stream",fe,"must be writable");let N=y(this,fe);return ve!=null&&ve.signal&&w(ve.signal,N),N}l(ae,"Z"),e(ae,"compose");function de(fe,ve){if(typeof fe!="function")throw new f("fn",["Function","AsyncFunction"],fe);ve!=null&&p(ve,"options"),ve?.signal!=null&&r(ve.signal,"options.signal");let N=1;ve?.concurrency!=null&&(N=j(ve.concurrency));let x=N-1;return ve?.highWaterMark!=null&&(x=j(ve.highWaterMark)),u(N,"options.concurrency",1),u(x,"options.highWaterMark",0),x+=N,e(async function*(){let D=Rr().AbortSignalAny([ve?.signal].filter(E)),z=this,Ee=[],ke={signal:D},be,ge,Ne=!1,xe=0;function Oe(){Ne=!0,Pe()}l(Oe,"ve"),e(Oe,"onCatch");function Pe(){xe-=1,$e()}l(Pe,"Me"),e(Pe,"afterItemProcessed");function $e(){ge&&!Ne&&xe<N&&Ee.length<x&&(ge(),ge=null)}l($e,"Be"),e($e,"maybeResume");async function Ke(){try{for await(let t of z){if(Ne)return;if(D.aborted)throw new n;try{if(t=fe(t,ke),t===G)continue;t=ee(t)}catch(s){t=M(s)}xe+=1,V(t,Pe,Oe),Ee.push(t),be&&(be(),be=null),!Ne&&(Ee.length>=x||xe>=N)&&await new U(s=>{ge=s})}Ee.push(re)}catch(t){let s=M(t);V(s,Pe,Oe),Ee.push(s)}finally{Ne=!0,be&&(be(),be=null)}}l(Ke,"Xe"),e(Ke,"pump"),Ke();try{for(;;){for(;Ee.length>0;){let t=await Ee[0];if(t===re)return;if(D.aborted)throw new n;t!==G&&(yield t),Ee.shift(),$e()}await new U(t=>{be=t})}}finally{Ne=!0,ge&&(ge(),ge=null)}},"map2").call(this)}l(de,"K"),e(de,"map");function we(fe=void 0){return fe!=null&&p(fe,"options"),fe?.signal!=null&&r(fe.signal,"options.signal"),e(async function*(){let ve=0;for await(let x of this){var N;if(fe!=null&&(N=fe.signal)!==null&&N!==void 0&&N.aborted)throw new n({cause:fe.signal.reason});yield[ve++,x]}},"asIndexedPairs2").call(this)}l(we,"se"),e(we,"asIndexedPairs");async function Ie(fe,ve=void 0){for await(let N of J.call(this,fe,ve))return!0;return!1}l(Ie,"_e"),e(Ie,"some");async function je(fe,ve=void 0){if(typeof fe!="function")throw new f("fn",["Function","AsyncFunction"],fe);return!await Ie.call(this,async(...N)=>!await fe(...N),ve)}l(je,"pe"),e(je,"every");async function se(fe,ve){for await(let N of J.call(this,fe,ve))return N}l(se,"Q"),e(se,"find");async function Te(fe,ve){if(typeof fe!="function")throw new f("fn",["Function","AsyncFunction"],fe);async function N(x,D){return await fe(x,D),G}l(N,"oe"),e(N,"forEachFn");for await(let x of de.call(this,N,ve));}l(Te,"he"),e(Te,"forEach");function J(fe,ve){if(typeof fe!="function")throw new f("fn",["Function","AsyncFunction"],fe);async function N(x,D){return await fe(x,D)?x:G}return l(N,"oe"),e(N,"filterFn"),de.call(this,N,ve)}l(J,"U"),e(J,"filter");let ue=(Q=class extends g{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}},l(Q,"$"),Q);e(ue,"ReduceAwareErrMissingArgs");let te=ue;async function X(fe,ve,N){var x;if(typeof fe!="function")throw new f("reducer",["Function","AsyncFunction"],fe);N!=null&&p(N,"options"),N?.signal!=null&&r(N.signal,"options.signal");let D=arguments.length>1;if(N!=null&&(x=N.signal)!==null&&x!==void 0&&x.aborted){let ge=new n(void 0,{cause:N.signal.reason});throw this.once("error",()=>{}),await m(this.destroy(ge)),ge}let z=new o,Ee=z.signal;if(N!=null&&N.signal){let ge={once:!0,[c]:this,[d]:!0};N.signal.addEventListener("abort",()=>z.abort(),ge)}let ke=!1;try{for await(let ge of this){var be;if(ke=!0,N!=null&&(be=N.signal)!==null&&be!==void 0&&be.aborted)throw new n;D?ve=await fe(ve,ge,{signal:Ee}):(ve=ge,D=!0)}if(!ke&&!D)throw new te}finally{z.abort()}return ve}l(X,"z"),e(X,"reduce");async function ye(fe){fe!=null&&p(fe,"options"),fe?.signal!=null&&r(fe.signal,"options.signal");let ve=[];for await(let x of this){var N;if(fe!=null&&(N=fe.signal)!==null&&N!==void 0&&N.aborted)throw new n(void 0,{cause:fe.signal.reason});k(ve,x)}return ve}l(ye,"V"),e(ye,"toArray");function Re(fe,ve){let N=de.call(this,fe,ve);return e(async function*(){for await(let x of N)yield*x},"flatMap2").call(this)}l(Re,"G"),e(Re,"flatMap");function De(fe){if(fe=A(fe),I(fe))return 0;if(fe<0)throw new a("number",">= 0",fe);return fe}l(De,"fe"),e(De,"toIntegerOrInfinity");function Y(fe,ve=void 0){return ve!=null&&p(ve,"options"),ve?.signal!=null&&r(ve.signal,"options.signal"),fe=De(fe),e(async function*(){var N;if(ve!=null&&(N=ve.signal)!==null&&N!==void 0&&N.aborted)throw new n;for await(let D of this){var x;if(ve!=null&&(x=ve.signal)!==null&&x!==void 0&&x.aborted)throw new n;fe--<=0&&(yield D)}},"drop2").call(this)}l(Y,"be"),e(Y,"drop");function H(fe,ve=void 0){return ve!=null&&p(ve,"options"),ve?.signal!=null&&r(ve.signal,"options.signal"),fe=De(fe),e(async function*(){var N;if(ve!=null&&(N=ve.signal)!==null&&N!==void 0&&N.aborted)throw new n;for await(let D of this){var x;if(ve!=null&&(x=ve.signal)!==null&&x!==void 0&&x.aborted)throw new n;if(fe-- >0&&(yield D),fe<=0)return}},"take2").call(this)}return l(H,"N"),e(H,"take"),Cl.streamReturningOperators={asIndexedPairs:T(we,"readable.asIndexedPairs will be removed in a future version."),drop:Y,filter:J,flatMap:Re,map:de,take:H,compose:ae},Cl.promiseReturningOperators={every:je,forEach:Te,reduce:X,toArray:ye,some:Ie,find:se},Cl}function GE(){if(V1)return Mc;V1=!0;let{ArrayPrototypePop:o,Promise:i}=Qt(),{isIterable:f,isNodeStream:g,isWebStream:a}=Wn(),{pipelineImpl:n}=xd(),{finished:r}=_i();VE();function u(...p){return new i((c,d)=>{let m,y,w=p[p.length-1];if(w&&typeof w=="object"&&!g(w)&&!f(w)&&!a(w)){let _=o(p);m=_.signal,y=_.end}n(p,(_,S)=>{_?d(_):c(S)},{signal:m,end:y})})}return l(u,"f"),e(u,"pipeline2"),Mc={finished:r,pipeline:u},Mc}function VE(){if(K1)return $c;K1=!0;let{Buffer:o}=vi(),{ObjectDefineProperty:i,ObjectKeys:f,ReflectApply:g}=Qt(),{promisify:{custom:a}}=Rr(),{streamReturningOperators:n,promiseReturningOperators:r}=wj(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:u}}=Pr(),p=qE(),{setDefaultHighWaterMark:c,getDefaultHighWaterMark:d}=vf(),{pipeline:m}=xd(),{destroyer:y}=ja(),w=_i(),_=GE(),S=Wn(),T=$c=Bd().Stream;T.isDestroyed=S.isDestroyed,T.isDisturbed=S.isDisturbed,T.isErrored=S.isErrored,T.isReadable=S.isReadable,T.isWritable=S.isWritable,T.Readable=_f();for(let E of f(n)){let j=e(function(...I){if(new.target)throw u();return T.Readable.from(g(A,this||J1,I))},"fn"),A=n[E];i(j,"name",{__proto__:null,value:A.name}),i(j,"length",{__proto__:null,value:A.length}),i(T.Readable.prototype,E,{__proto__:null,value:j,enumerable:!1,configurable:!0,writable:!0})}for(let E of f(r)){let j=e(function(...I){if(new.target)throw u();return g(A,this||J1,I)},"fn"),A=r[E];i(j,"name",{__proto__:null,value:A.name}),i(j,"length",{__proto__:null,value:A.length}),i(T.Readable.prototype,E,{__proto__:null,value:j,enumerable:!1,configurable:!0,writable:!0})}T.Writable=Id(),T.Duplex=Mn(),T.Transform=zE(),T.PassThrough=HE(),T.pipeline=m;let{addAbortSignal:k}=bf();return T.addAbortSignal=k,T.finished=w,T.destroy=y,T.compose=p,T.setDefaultHighWaterMark=c,T.getDefaultHighWaterMark=d,i(T,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return _}}),i(m,a,{__proto__:null,enumerable:!0,get(){return _.pipeline}}),i(w,a,{__proto__:null,enumerable:!0,get(){return _.finished}}),T.Stream=T,T._isUint8Array=e(function(E){return E instanceof Uint8Array},"isUint8Array"),T._uint8ArrayToBuffer=e(function(E){return o.from(E.buffer,E.byteOffset,E.byteLength)},"_uint8ArrayToBuffer"),$c}function zO(){if(Y1)return Zt;Y1=!0;let o=VE(),i=GE(),f=o.Readable.destroy;return Zt=o.Readable,Zt._uint8ArrayToBuffer=o._uint8ArrayToBuffer,Zt._isUint8Array=o._isUint8Array,Zt.isDisturbed=o.isDisturbed,Zt.isErrored=o.isErrored,Zt.isReadable=o.isReadable,Zt.Readable=o.Readable,Zt.Writable=o.Writable,Zt.Duplex=o.Duplex,Zt.Transform=o.Transform,Zt.PassThrough=o.PassThrough,Zt.addAbortSignal=o.addAbortSignal,Zt.finished=o.finished,Zt.destroy=o.destroy,Zt.destroy=f,Zt.pipeline=o.pipeline,Zt.compose=o.compose,Object.defineProperty(o,"promises",{configurable:!0,enumerable:!0,get(){return i}}),Zt.Stream=o.Stream,Zt.default=Zt,Zt}function VT(){if(Z1)return Pl;Z1=!0;var o=typeof Reflect=="object"?Reflect:null,i=o&&typeof o.apply=="function"?o.apply:e(function(A,I,U){return Function.prototype.apply.call(A,I,U)},"ReflectApply2"),f;o&&typeof o.ownKeys=="function"?f=o.ownKeys:Object.getOwnPropertySymbols?f=e(function(A){return Object.getOwnPropertyNames(A).concat(Object.getOwnPropertySymbols(A))},"ReflectOwnKeys2"):f=e(function(A){return Object.getOwnPropertyNames(A)},"ReflectOwnKeys2");function g(A){console&&console.warn&&console.warn(A)}l(g,"n"),e(g,"ProcessEmitWarning");var a=Number.isNaN||e(function(A){return A!==A},"NumberIsNaN2");function n(){n.init.call(this)}l(n,"s"),e(n,"EventEmitter2"),Pl=n,Pl.once=k,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._eventsCount=0,n.prototype._maxListeners=void 0;var r=10;function u(A){if(typeof A!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof A)}l(u,"f"),e(u,"checkListener"),Object.defineProperty(n,"defaultMaxListeners",{enumerable:!0,get:e(function(){return r},"get"),set:e(function(A){if(typeof A!="number"||A<0||a(A))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+A+".");r=A},"set")}),n.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},n.prototype.setMaxListeners=e(function(A){if(typeof A!="number"||A<0||a(A))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+A+".");return this._maxListeners=A,this},"setMaxListeners");function p(A){return A._maxListeners===void 0?n.defaultMaxListeners:A._maxListeners}l(p,"h"),e(p,"_getMaxListeners"),n.prototype.getMaxListeners=e(function(){return p(this)},"getMaxListeners"),n.prototype.emit=e(function(A){for(var I=[],U=1;U<arguments.length;U++)I.push(arguments[U]);var M=A==="error",ee=this._events;if(ee!==void 0)M=M&&ee.error===void 0;else if(!M)return!1;if(M){var V;if(I.length>0&&(V=I[0]),V instanceof Error)throw V;var q=new Error("Unhandled error."+(V?" ("+V.message+")":""));throw q.context=V,q}var G=ee[A];if(G===void 0)return!1;if(typeof G=="function")i(G,this,I);else for(var re=G.length,ae=_(G,re),U=0;U<re;++U)i(ae[U],this,I);return!0},"emit");function c(A,I,U,M){var ee,V,q;if(u(U),V=A._events,V===void 0?(V=A._events=Object.create(null),A._eventsCount=0):(V.newListener!==void 0&&(A.emit("newListener",I,U.listener?U.listener:U),V=A._events),q=V[I]),q===void 0)q=V[I]=U,++A._eventsCount;else if(typeof q=="function"?q=V[I]=M?[U,q]:[q,U]:M?q.unshift(U):q.push(U),ee=p(A),ee>0&&q.length>ee&&!q.warned){q.warned=!0;var G=new Error("Possible EventEmitter memory leak detected. "+q.length+" "+String(I)+" listeners added. Use emitter.setMaxListeners() to increase limit");G.name="MaxListenersExceededWarning",G.emitter=A,G.type=I,G.count=q.length,g(G)}return A}l(c,"c"),e(c,"_addListener"),n.prototype.addListener=e(function(A,I){return c(this,A,I,!1)},"addListener"),n.prototype.on=n.prototype.addListener,n.prototype.prependListener=e(function(A,I){return c(this,A,I,!0)},"prependListener");function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}l(d,"d"),e(d,"onceWrapper");function m(A,I,U){var M={fired:!1,wrapFn:void 0,target:A,type:I,listener:U},ee=d.bind(M);return ee.listener=U,M.wrapFn=ee,ee}l(m,"y"),e(m,"_onceWrap"),n.prototype.once=e(function(A,I){return u(I),this.on(A,m(this,A,I)),this},"once3"),n.prototype.prependOnceListener=e(function(A,I){return u(I),this.prependListener(A,m(this,A,I)),this},"prependOnceListener"),n.prototype.removeListener=e(function(A,I){var U,M,ee,V,q;if(u(I),M=this._events,M===void 0)return this;if(U=M[A],U===void 0)return this;if(U===I||U.listener===I)--this._eventsCount===0?this._events=Object.create(null):(delete M[A],M.removeListener&&this.emit("removeListener",A,U.listener||I));else if(typeof U!="function"){for(ee=-1,V=U.length-1;V>=0;V--)if(U[V]===I||U[V].listener===I){q=U[V].listener,ee=V;break}if(ee<0)return this;ee===0?U.shift():S(U,ee),U.length===1&&(M[A]=U[0]),M.removeListener!==void 0&&this.emit("removeListener",A,q||I)}return this},"removeListener"),n.prototype.off=n.prototype.removeListener,n.prototype.removeAllListeners=e(function(A){var I,U,M;if(U=this._events,U===void 0)return this;if(U.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):U[A]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete U[A]),this;if(arguments.length===0){var ee=Object.keys(U),V;for(M=0;M<ee.length;++M)V=ee[M],V!=="removeListener"&&this.removeAllListeners(V);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(I=U[A],typeof I=="function")this.removeListener(A,I);else if(I!==void 0)for(M=I.length-1;M>=0;M--)this.removeListener(A,I[M]);return this},"removeAllListeners");function y(A,I,U){var M=A._events;if(M===void 0)return[];var ee=M[I];return ee===void 0?[]:typeof ee=="function"?U?[ee.listener||ee]:[ee]:U?T(ee):_(ee,ee.length)}l(y,"m"),e(y,"_listeners"),n.prototype.listeners=e(function(A){return y(this,A,!0)},"listeners"),n.prototype.rawListeners=e(function(A){return y(this,A,!1)},"rawListeners"),n.listenerCount=function(A,I){return typeof A.listenerCount=="function"?A.listenerCount(I):w.call(A,I)},n.prototype.listenerCount=w;function w(A){var I=this._events;if(I!==void 0){var U=I[A];if(typeof U=="function")return 1;if(U!==void 0)return U.length}return 0}l(w,"g"),e(w,"listenerCount2"),n.prototype.eventNames=e(function(){return this._eventsCount>0?f(this._events):[]},"eventNames");function _(A,I){for(var U=new Array(I),M=0;M<I;++M)U[M]=A[M];return U}l(_,"v"),e(_,"arrayClone");function S(A,I){for(;I+1<A.length;I++)A[I]=A[I+1];A.pop()}l(S,"_"),e(S,"spliceOne");function T(A){for(var I=new Array(A.length),U=0;U<I.length;++U)I[U]=A[U].listener||A[U];return I}l(T,"b"),e(T,"unwrapListeners");function k(A,I){return new Promise(function(U,M){function ee(q){A.removeListener(I,V),M(q)}l(ee,"D"),e(ee,"errorListener");function V(){typeof A.removeListener=="function"&&A.removeListener("error",ee),U([].slice.call(arguments))}l(V,"L"),e(V,"resolver"),j(A,I,V,{once:!0}),I!=="error"&&E(A,ee,{once:!0})})}l(k,"E"),e(k,"once2");function E(A,I,U){typeof A.on=="function"&&j(A,"error",I,U)}l(E,"R"),e(E,"addErrorHandlerIfEventEmitter");function j(A,I,U,M){if(typeof A.on=="function")M.once?A.once(I,U):A.on(I,U);else if(typeof A.addEventListener=="function")A.addEventListener(I,e(l(function ee(V){M.once&&A.removeEventListener(I,ee),U(V)},"D"),"wrapListener"));else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof A)}return l(j,"T"),e(j,"eventTargetAgnosticAddListener"),Pl}function Yi(){return yv||(yv=!0,typeof Object.create=="function"?Kc=e(function(o,i){i&&(o.super_=i,o.prototype=Object.create(i.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}))},"inherits"):Kc=e(function(o,i){if(i){o.super_=i;var f=e(function(){},"TempCtor");f.prototype=i.prototype,o.prototype=new f,o.prototype.constructor=o}},"inherits")),Kc}function It(){It.init.call(this)}function Ll(o){if(typeof o!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof o)}function Q1(o){return o._maxListeners===void 0?It.defaultMaxListeners:o._maxListeners}function wy(o,i,f,g){var a,n,r,u;if(Ll(f),(n=o._events)===void 0?(n=o._events=Object.create(null),o._eventsCount=0):(n.newListener!==void 0&&(o.emit("newListener",i,f.listener?f.listener:f),n=o._events),r=n[i]),r===void 0)r=n[i]=f,++o._eventsCount;else if(typeof r=="function"?r=n[i]=g?[f,r]:[r,f]:g?r.unshift(f):r.push(f),(a=Q1(o))>0&&r.length>a&&!r.warned){r.warned=!0;var p=new Error("Possible EventEmitter memory leak detected. "+r.length+" "+String(i)+" listeners added. Use emitter.setMaxListeners() to increase limit");p.name="MaxListenersExceededWarning",p.emitter=o,p.type=i,p.count=r.length,u=p,console&&console.warn&&console.warn(u)}return o}function Xj(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function by(o,i,f){var g={fired:!1,wrapFn:void 0,target:o,type:i,listener:f},a=Xj.bind(g);return a.listener=f,g.wrapFn=a,a}function vy(o,i,f){var g=o._events;if(g===void 0)return[];var a=g[i];return a===void 0?[]:typeof a=="function"?f?[a.listener||a]:[a]:f?function(n){for(var r=new Array(n.length),u=0;u<r.length;++u)r[u]=n[u].listener||n[u];return r}(a):X1(a,a.length)}function _y(o){var i=this._events;if(i!==void 0){var f=i[o];if(typeof f=="function")return 1;if(f!==void 0)return f.length}return 0}function X1(o,i){for(var f=new Array(i),g=0;g<i;++g)f[g]=o[g];return f}function e8(){if(mv)return Os;mv=!0,Os.byteLength=u,Os.toByteArray=c,Os.fromByteArray=y;for(var o=[],i=[],f=typeof Uint8Array<"u"?Uint8Array:Array,g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,n=g.length;a<n;++a)o[a]=g[a],i[g.charCodeAt(a)]=a;i[45]=62,i[95]=63;function r(w){var _=w.length;if(_%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var S=w.indexOf("=");S===-1&&(S=_);var T=S===_?0:4-S%4;return[S,T]}l(r,"i"),e(r,"getLens");function u(w){var _=r(w),S=_[0],T=_[1];return(S+T)*3/4-T}l(u,"f"),e(u,"byteLength");function p(w,_,S){return(_+S)*3/4-S}l(p,"h"),e(p,"_byteLength");function c(w){var _,S=r(w),T=S[0],k=S[1],E=new f(p(w,T,k)),j=0,A=k>0?T-4:T,I;for(I=0;I<A;I+=4)_=i[w.charCodeAt(I)]<<18|i[w.charCodeAt(I+1)]<<12|i[w.charCodeAt(I+2)]<<6|i[w.charCodeAt(I+3)],E[j++]=_>>16&255,E[j++]=_>>8&255,E[j++]=_&255;return k===2&&(_=i[w.charCodeAt(I)]<<2|i[w.charCodeAt(I+1)]>>4,E[j++]=_&255),k===1&&(_=i[w.charCodeAt(I)]<<10|i[w.charCodeAt(I+1)]<<4|i[w.charCodeAt(I+2)]>>2,E[j++]=_>>8&255,E[j++]=_&255),E}l(c,"c"),e(c,"toByteArray");function d(w){return o[w>>18&63]+o[w>>12&63]+o[w>>6&63]+o[w&63]}l(d,"d"),e(d,"tripletToBase64");function m(w,_,S){for(var T,k=[],E=_;E<S;E+=3)T=(w[E]<<16&16711680)+(w[E+1]<<8&65280)+(w[E+2]&255),k.push(d(T));return k.join("")}l(m,"y"),e(m,"encodeChunk");function y(w){for(var _,S=w.length,T=S%3,k=[],E=16383,j=0,A=S-T;j<A;j+=E)k.push(m(w,j,j+E>A?A:j+E));return T===1?(_=w[S-1],k.push(o[_>>2]+o[_<<4&63]+"==")):T===2&&(_=(w[S-2]<<8)+w[S-1],k.push(o[_>>10]+o[_>>4&63]+o[_<<2&63]+"=")),k.join("")}return l(y,"m"),e(y,"fromByteArray"),Os}function t8(){return wv||(wv=!0,Jc.read=function(o,i,f,g,a){var n,r,u=a*8-g-1,p=(1<<u)-1,c=p>>1,d=-7,m=f?a-1:0,y=f?-1:1,w=o[i+m];for(m+=y,n=w&(1<<-d)-1,w>>=-d,d+=u;d>0;n=n*256+o[i+m],m+=y,d-=8);for(r=n&(1<<-d)-1,n>>=-d,d+=g;d>0;r=r*256+o[i+m],m+=y,d-=8);if(n===0)n=1-c;else{if(n===p)return r?NaN:(w?-1:1)*(1/0);r=r+Math.pow(2,g),n=n-c}return(w?-1:1)*r*Math.pow(2,n-g)},Jc.write=function(o,i,f,g,a,n){var r,u,p,c=n*8-a-1,d=(1<<c)-1,m=d>>1,y=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=g?0:n-1,_=g?1:-1,S=i<0||i===0&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(u=isNaN(i)?1:0,r=d):(r=Math.floor(Math.log(i)/Math.LN2),i*(p=Math.pow(2,-r))<1&&(r--,p*=2),r+m>=1?i+=y/p:i+=y*Math.pow(2,1-m),i*p>=2&&(r++,p/=2),r+m>=d?(u=0,r=d):r+m>=1?(u=(i*p-1)*Math.pow(2,a),r=r+m):(u=i*Math.pow(2,m-1)*Math.pow(2,a),r=0));a>=8;o[f+w]=u&255,w+=_,u/=256,a-=8);for(r=r<<a|u,c+=a;c>0;o[f+w]=r&255,w+=_,r/=256,c-=8);o[f+w-_]|=S*128}),Jc}function Ca(){if(bv)return Wi;bv=!0;let o=e8(),i=t8(),f=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Wi.Buffer=r,Wi.SlowBuffer=k,Wi.INSPECT_MAX_BYTES=50;let g=2147483647;Wi.kMaxLength=g,r.TYPED_ARRAY_SUPPORT=a(),!r.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{let t=new Uint8Array(1),s={foo:e(function(){return 42},"foo")};return Object.setPrototypeOf(s,Uint8Array.prototype),Object.setPrototypeOf(t,s),t.foo()===42}catch{return!1}}l(a,"a"),e(a,"typedArraySupport"),Object.defineProperty(r.prototype,"parent",{enumerable:!0,get:e(function(){if(r.isBuffer(this))return this.buffer},"get")}),Object.defineProperty(r.prototype,"offset",{enumerable:!0,get:e(function(){if(r.isBuffer(this))return this.byteOffset},"get")});function n(t){if(t>g)throw new RangeError('The value "'+t+'" is invalid for option "size"');let s=new Uint8Array(t);return Object.setPrototypeOf(s,r.prototype),s}l(n,"s"),e(n,"createBuffer");function r(t,s,h){if(typeof t=="number"){if(typeof s=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(t)}return u(t,s,h)}l(r,"i"),e(r,"Buffer"),r.poolSize=8192;function u(t,s,h){if(typeof t=="string")return m(t,s);if(ArrayBuffer.isView(t))return w(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(xe(t,ArrayBuffer)||t&&xe(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(xe(t,SharedArrayBuffer)||t&&xe(t.buffer,SharedArrayBuffer)))return _(t,s,h);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let v=t.valueOf&&t.valueOf();if(v!=null&&v!==t)return r.from(v,s,h);let R=S(t);if(R)return R;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return r.from(t[Symbol.toPrimitive]("string"),s,h);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}l(u,"f"),e(u,"from"),r.from=function(t,s,h){return u(t,s,h)},Object.setPrototypeOf(r.prototype,Uint8Array.prototype),Object.setPrototypeOf(r,Uint8Array);function p(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}l(p,"h"),e(p,"assertSize");function c(t,s,h){return p(t),t<=0?n(t):s!==void 0?typeof h=="string"?n(t).fill(s,h):n(t).fill(s):n(t)}l(c,"c"),e(c,"alloc"),r.alloc=function(t,s,h){return c(t,s,h)};function d(t){return p(t),n(t<0?0:T(t)|0)}l(d,"d"),e(d,"allocUnsafe"),r.allocUnsafe=function(t){return d(t)},r.allocUnsafeSlow=function(t){return d(t)};function m(t,s){if((typeof s!="string"||s==="")&&(s="utf8"),!r.isEncoding(s))throw new TypeError("Unknown encoding: "+s);let h=E(t,s)|0,v=n(h),R=v.write(t,s);return R!==h&&(v=v.slice(0,R)),v}l(m,"y"),e(m,"fromString");function y(t){let s=t.length<0?0:T(t.length)|0,h=n(s);for(let v=0;v<s;v+=1)h[v]=t[v]&255;return h}l(y,"m"),e(y,"fromArrayLike");function w(t){if(xe(t,Uint8Array)){let s=new Uint8Array(t);return _(s.buffer,s.byteOffset,s.byteLength)}return y(t)}l(w,"g"),e(w,"fromArrayView");function _(t,s,h){if(s<0||t.byteLength<s)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<s+(h||0))throw new RangeError('"length" is outside of buffer bounds');let v;return s===void 0&&h===void 0?v=new Uint8Array(t):h===void 0?v=new Uint8Array(t,s):v=new Uint8Array(t,s,h),Object.setPrototypeOf(v,r.prototype),v}l(_,"v"),e(_,"fromArrayBuffer");function S(t){if(r.isBuffer(t)){let s=T(t.length)|0,h=n(s);return h.length===0||t.copy(h,0,0,s),h}if(t.length!==void 0)return typeof t.length!="number"||Oe(t.length)?n(0):y(t);if(t.type==="Buffer"&&Array.isArray(t.data))return y(t.data)}l(S,"_"),e(S,"fromObject");function T(t){if(t>=g)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+g.toString(16)+" bytes");return t|0}l(T,"b"),e(T,"checked");function k(t){return+t!=t&&(t=0),r.alloc(+t)}l(k,"E"),e(k,"SlowBuffer"),r.isBuffer=e(function(t){return t!=null&&t._isBuffer===!0&&t!==r.prototype},"isBuffer"),r.compare=e(function(t,s){if(xe(t,Uint8Array)&&(t=r.from(t,t.offset,t.byteLength)),xe(s,Uint8Array)&&(s=r.from(s,s.offset,s.byteLength)),!r.isBuffer(t)||!r.isBuffer(s))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===s)return 0;let h=t.length,v=s.length;for(let R=0,P=Math.min(h,v);R<P;++R)if(t[R]!==s[R]){h=t[R],v=s[R];break}return h<v?-1:v<h?1:0},"compare"),r.isEncoding=e(function(t){switch(String(t).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}},"isEncoding"),r.concat=e(function(t,s){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return r.alloc(0);let h;if(s===void 0)for(s=0,h=0;h<t.length;++h)s+=t[h].length;let v=r.allocUnsafe(s),R=0;for(h=0;h<t.length;++h){let P=t[h];if(xe(P,Uint8Array))R+P.length>v.length?(r.isBuffer(P)||(P=r.from(P)),P.copy(v,R)):Uint8Array.prototype.set.call(v,P,R);else if(r.isBuffer(P))P.copy(v,R);else throw new TypeError('"list" argument must be an Array of Buffers');R+=P.length}return v},"concat");function E(t,s){if(r.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||xe(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);let h=t.length,v=arguments.length>2&&arguments[2]===!0;if(!v&&h===0)return 0;let R=!1;for(;;)switch(s){case"ascii":case"latin1":case"binary":return h;case"utf8":case"utf-8":return Ee(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return h*2;case"hex":return h>>>1;case"base64":return ge(t).length;default:if(R)return v?-1:Ee(t).length;s=(""+s).toLowerCase(),R=!0}}l(E,"R"),e(E,"byteLength"),r.byteLength=E;function j(t,s,h){let v=!1;if((s===void 0||s<0)&&(s=0),s>this.length||((h===void 0||h>this.length)&&(h=this.length),h<=0)||(h>>>=0,s>>>=0,h<=s))return"";for(t||(t="utf8");;)switch(t){case"hex":return se(this,s,h);case"utf8":case"utf-8":return ae(this,s,h);case"ascii":return Ie(this,s,h);case"latin1":case"binary":return je(this,s,h);case"base64":return re(this,s,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Te(this,s,h);default:if(v)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),v=!0}}l(j,"T"),e(j,"slowToString"),r.prototype._isBuffer=!0;function A(t,s,h){let v=t[s];t[s]=t[h],t[h]=v}l(A,"F"),e(A,"swap"),r.prototype.swap16=e(function(){let t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let s=0;s<t;s+=2)A(this,s,s+1);return this},"swap16"),r.prototype.swap32=e(function(){let t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let s=0;s<t;s+=4)A(this,s,s+3),A(this,s+1,s+2);return this},"swap32"),r.prototype.swap64=e(function(){let t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let s=0;s<t;s+=8)A(this,s,s+7),A(this,s+1,s+6),A(this,s+2,s+5),A(this,s+3,s+4);return this},"swap64"),r.prototype.toString=e(function(){let t=this.length;return t===0?"":arguments.length===0?ae(this,0,t):j.apply(this,arguments)},"toString"),r.prototype.toLocaleString=r.prototype.toString,r.prototype.equals=e(function(t){if(!r.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:r.compare(this,t)===0},"equals"),r.prototype.inspect=e(function(){let t="",s=Wi.INSPECT_MAX_BYTES;return t=this.toString("hex",0,s).replace(/(.{2})/g,"$1 ").trim(),this.length>s&&(t+=" ... "),"<Buffer "+t+">"},"inspect"),f&&(r.prototype[f]=r.prototype.inspect),r.prototype.compare=e(function(t,s,h,v,R){if(xe(t,Uint8Array)&&(t=r.from(t,t.offset,t.byteLength)),!r.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(s===void 0&&(s=0),h===void 0&&(h=t?t.length:0),v===void 0&&(v=0),R===void 0&&(R=this.length),s<0||h>t.length||v<0||R>this.length)throw new RangeError("out of range index");if(v>=R&&s>=h)return 0;if(v>=R)return-1;if(s>=h)return 1;if(s>>>=0,h>>>=0,v>>>=0,R>>>=0,this===t)return 0;let P=R-v,C=h-s,Z=Math.min(P,C),oe=this.slice(v,R),Ae=t.slice(s,h);for(let le=0;le<Z;++le)if(oe[le]!==Ae[le]){P=oe[le],C=Ae[le];break}return P<C?-1:C<P?1:0},"compare");function I(t,s,h,v,R){if(t.length===0)return-1;if(typeof h=="string"?(v=h,h=0):h>2147483647?h=2147483647:h<-2147483648&&(h=-2147483648),h=+h,Oe(h)&&(h=R?0:t.length-1),h<0&&(h=t.length+h),h>=t.length){if(R)return-1;h=t.length-1}else if(h<0)if(R)h=0;else return-1;if(typeof s=="string"&&(s=r.from(s,v)),r.isBuffer(s))return s.length===0?-1:U(t,s,h,v,R);if(typeof s=="number")return s=s&255,typeof Uint8Array.prototype.indexOf=="function"?R?Uint8Array.prototype.indexOf.call(t,s,h):Uint8Array.prototype.lastIndexOf.call(t,s,h):U(t,[s],h,v,R);throw new TypeError("val must be string, number or Buffer")}l(I,"S"),e(I,"bidirectionalIndexOf");function U(t,s,h,v,R){let P=1,C=t.length,Z=s.length;if(v!==void 0&&(v=String(v).toLowerCase(),v==="ucs2"||v==="ucs-2"||v==="utf16le"||v==="utf-16le")){if(t.length<2||s.length<2)return-1;P=2,C/=2,Z/=2,h/=2}function oe(le,Fe){return P===1?le[Fe]:le.readUInt16BE(Fe*P)}l(oe,"re"),e(oe,"read");let Ae;if(R){let le=-1;for(Ae=h;Ae<C;Ae++)if(oe(t,Ae)===oe(s,le===-1?0:Ae-le)){if(le===-1&&(le=Ae),Ae-le+1===Z)return le*P}else le!==-1&&(Ae-=Ae-le),le=-1}else for(h+Z>C&&(h=C-Z),Ae=h;Ae>=0;Ae--){let le=!0;for(let Fe=0;Fe<Z;Fe++)if(oe(t,Ae+Fe)!==oe(s,Fe)){le=!1;break}if(le)return Ae}return-1}l(U,"B"),e(U,"arrayIndexOf"),r.prototype.includes=e(function(t,s,h){return this.indexOf(t,s,h)!==-1},"includes"),r.prototype.indexOf=e(function(t,s,h){return I(this,t,s,h,!0)},"indexOf"),r.prototype.lastIndexOf=e(function(t,s,h){return I(this,t,s,h,!1)},"lastIndexOf");function M(t,s,h,v){h=Number(h)||0;let R=t.length-h;v?(v=Number(v),v>R&&(v=R)):v=R;let P=s.length;v>P/2&&(v=P/2);let C;for(C=0;C<v;++C){let Z=parseInt(s.substr(C*2,2),16);if(Oe(Z))return C;t[h+C]=Z}return C}l(M,"I"),e(M,"hexWrite");function ee(t,s,h,v){return Ne(Ee(s,t.length-h),t,h,v)}l(ee,"D"),e(ee,"utf8Write");function V(t,s,h,v){return Ne(ke(s),t,h,v)}l(V,"L"),e(V,"asciiWrite");function q(t,s,h,v){return Ne(ge(s),t,h,v)}l(q,"C"),e(q,"base64Write");function G(t,s,h,v){return Ne(be(s,t.length-h),t,h,v)}l(G,"j"),e(G,"ucs2Write"),r.prototype.write=e(function(t,s,h,v){if(s===void 0)v="utf8",h=this.length,s=0;else if(h===void 0&&typeof s=="string")v=s,h=this.length,s=0;else if(isFinite(s))s=s>>>0,isFinite(h)?(h=h>>>0,v===void 0&&(v="utf8")):(v=h,h=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let R=this.length-s;if((h===void 0||h>R)&&(h=R),t.length>0&&(h<0||s<0)||s>this.length)throw new RangeError("Attempt to write outside buffer bounds");v||(v="utf8");let P=!1;for(;;)switch(v){case"hex":return M(this,t,s,h);case"utf8":case"utf-8":return ee(this,t,s,h);case"ascii":case"latin1":case"binary":return V(this,t,s,h);case"base64":return q(this,t,s,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,t,s,h);default:if(P)throw new TypeError("Unknown encoding: "+v);v=(""+v).toLowerCase(),P=!0}},"write"),r.prototype.toJSON=e(function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},"toJSON");function re(t,s,h){return s===0&&h===t.length?o.fromByteArray(t):o.fromByteArray(t.slice(s,h))}l(re,"q"),e(re,"base64Slice");function ae(t,s,h){h=Math.min(t.length,h);let v=[],R=s;for(;R<h;){let P=t[R],C=null,Z=P>239?4:P>223?3:P>191?2:1;if(R+Z<=h){let oe,Ae,le,Fe;switch(Z){case 1:P<128&&(C=P);break;case 2:oe=t[R+1],(oe&192)===128&&(Fe=(P&31)<<6|oe&63,Fe>127&&(C=Fe));break;case 3:oe=t[R+1],Ae=t[R+2],(oe&192)===128&&(Ae&192)===128&&(Fe=(P&15)<<12|(oe&63)<<6|Ae&63,Fe>2047&&(Fe<55296||Fe>57343)&&(C=Fe));break;case 4:oe=t[R+1],Ae=t[R+2],le=t[R+3],(oe&192)===128&&(Ae&192)===128&&(le&192)===128&&(Fe=(P&15)<<18|(oe&63)<<12|(Ae&63)<<6|le&63,Fe>65535&&Fe<1114112&&(C=Fe))}}C===null?(C=65533,Z=1):C>65535&&(C-=65536,v.push(C>>>10&1023|55296),C=56320|C&1023),v.push(C),R+=Z}return we(v)}l(ae,"Z"),e(ae,"utf8Slice");let de=4096;function we(t){let s=t.length;if(s<=de)return String.fromCharCode.apply(String,t);let h="",v=0;for(;v<s;)h+=String.fromCharCode.apply(String,t.slice(v,v+=de));return h}l(we,"se"),e(we,"decodeCodePointsArray");function Ie(t,s,h){let v="";h=Math.min(t.length,h);for(let R=s;R<h;++R)v+=String.fromCharCode(t[R]&127);return v}l(Ie,"_e"),e(Ie,"asciiSlice");function je(t,s,h){let v="";h=Math.min(t.length,h);for(let R=s;R<h;++R)v+=String.fromCharCode(t[R]);return v}l(je,"pe"),e(je,"latin1Slice");function se(t,s,h){let v=t.length;(!s||s<0)&&(s=0),(!h||h<0||h>v)&&(h=v);let R="";for(let P=s;P<h;++P)R+=Pe[t[P]];return R}l(se,"Q"),e(se,"hexSlice");function Te(t,s,h){let v=t.slice(s,h),R="";for(let P=0;P<v.length-1;P+=2)R+=String.fromCharCode(v[P]+v[P+1]*256);return R}l(Te,"he"),e(Te,"utf16leSlice"),r.prototype.slice=e(function(t,s){let h=this.length;t=~~t,s=s===void 0?h:~~s,t<0?(t+=h,t<0&&(t=0)):t>h&&(t=h),s<0?(s+=h,s<0&&(s=0)):s>h&&(s=h),s<t&&(s=t);let v=this.subarray(t,s);return Object.setPrototypeOf(v,r.prototype),v},"slice");function J(t,s,h){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+s>h)throw new RangeError("Trying to access beyond buffer length")}l(J,"U"),e(J,"checkOffset"),r.prototype.readUintLE=r.prototype.readUIntLE=e(function(t,s,h){t=t>>>0,s=s>>>0,h||J(t,s,this.length);let v=this[t],R=1,P=0;for(;++P<s&&(R*=256);)v+=this[t+P]*R;return v},"readUIntLE"),r.prototype.readUintBE=r.prototype.readUIntBE=e(function(t,s,h){t=t>>>0,s=s>>>0,h||J(t,s,this.length);let v=this[t+--s],R=1;for(;s>0&&(R*=256);)v+=this[t+--s]*R;return v},"readUIntBE"),r.prototype.readUint8=r.prototype.readUInt8=e(function(t,s){return t=t>>>0,s||J(t,1,this.length),this[t]},"readUInt8"),r.prototype.readUint16LE=r.prototype.readUInt16LE=e(function(t,s){return t=t>>>0,s||J(t,2,this.length),this[t]|this[t+1]<<8},"readUInt16LE"),r.prototype.readUint16BE=r.prototype.readUInt16BE=e(function(t,s){return t=t>>>0,s||J(t,2,this.length),this[t]<<8|this[t+1]},"readUInt16BE"),r.prototype.readUint32LE=r.prototype.readUInt32LE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216},"readUInt32LE"),r.prototype.readUint32BE=r.prototype.readUInt32BE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])},"readUInt32BE"),r.prototype.readBigUInt64LE=$e(e(function(t){t=t>>>0,N(t,"offset");let s=this[t],h=this[t+7];(s===void 0||h===void 0)&&x(t,this.length-8);let v=s+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,R=this[++t]+this[++t]*2**8+this[++t]*2**16+h*2**24;return BigInt(v)+(BigInt(R)<<BigInt(32))},"readBigUInt64LE")),r.prototype.readBigUInt64BE=$e(e(function(t){t=t>>>0,N(t,"offset");let s=this[t],h=this[t+7];(s===void 0||h===void 0)&&x(t,this.length-8);let v=s*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],R=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+h;return(BigInt(v)<<BigInt(32))+BigInt(R)},"readBigUInt64BE")),r.prototype.readIntLE=e(function(t,s,h){t=t>>>0,s=s>>>0,h||J(t,s,this.length);let v=this[t],R=1,P=0;for(;++P<s&&(R*=256);)v+=this[t+P]*R;return R*=128,v>=R&&(v-=Math.pow(2,8*s)),v},"readIntLE"),r.prototype.readIntBE=e(function(t,s,h){t=t>>>0,s=s>>>0,h||J(t,s,this.length);let v=s,R=1,P=this[t+--v];for(;v>0&&(R*=256);)P+=this[t+--v]*R;return R*=128,P>=R&&(P-=Math.pow(2,8*s)),P},"readIntBE"),r.prototype.readInt8=e(function(t,s){return t=t>>>0,s||J(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]},"readInt8"),r.prototype.readInt16LE=e(function(t,s){t=t>>>0,s||J(t,2,this.length);let h=this[t]|this[t+1]<<8;return h&32768?h|4294901760:h},"readInt16LE"),r.prototype.readInt16BE=e(function(t,s){t=t>>>0,s||J(t,2,this.length);let h=this[t+1]|this[t]<<8;return h&32768?h|4294901760:h},"readInt16BE"),r.prototype.readInt32LE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},"readInt32LE"),r.prototype.readInt32BE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},"readInt32BE"),r.prototype.readBigInt64LE=$e(e(function(t){t=t>>>0,N(t,"offset");let s=this[t],h=this[t+7];(s===void 0||h===void 0)&&x(t,this.length-8);let v=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(h<<24);return(BigInt(v)<<BigInt(32))+BigInt(s+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24)},"readBigInt64LE")),r.prototype.readBigInt64BE=$e(e(function(t){t=t>>>0,N(t,"offset");let s=this[t],h=this[t+7];(s===void 0||h===void 0)&&x(t,this.length-8);let v=(s<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(v)<<BigInt(32))+BigInt(this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+h)},"readBigInt64BE")),r.prototype.readFloatLE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),i.read(this,t,!0,23,4)},"readFloatLE"),r.prototype.readFloatBE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),i.read(this,t,!1,23,4)},"readFloatBE"),r.prototype.readDoubleLE=e(function(t,s){return t=t>>>0,s||J(t,8,this.length),i.read(this,t,!0,52,8)},"readDoubleLE"),r.prototype.readDoubleBE=e(function(t,s){return t=t>>>0,s||J(t,8,this.length),i.read(this,t,!1,52,8)},"readDoubleBE");function ue(t,s,h,v,R,P){if(!r.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(s>R||s<P)throw new RangeError('"value" argument is out of bounds');if(h+v>t.length)throw new RangeError("Index out of range")}l(ue,"J"),e(ue,"checkInt"),r.prototype.writeUintLE=r.prototype.writeUIntLE=e(function(t,s,h,v){if(t=+t,s=s>>>0,h=h>>>0,!v){let C=Math.pow(2,8*h)-1;ue(this,t,s,h,C,0)}let R=1,P=0;for(this[s]=t&255;++P<h&&(R*=256);)this[s+P]=t/R&255;return s+h},"writeUIntLE"),r.prototype.writeUintBE=r.prototype.writeUIntBE=e(function(t,s,h,v){if(t=+t,s=s>>>0,h=h>>>0,!v){let C=Math.pow(2,8*h)-1;ue(this,t,s,h,C,0)}let R=h-1,P=1;for(this[s+R]=t&255;--R>=0&&(P*=256);)this[s+R]=t/P&255;return s+h},"writeUIntBE"),r.prototype.writeUint8=r.prototype.writeUInt8=e(function(t,s,h){return t=+t,s=s>>>0,h||ue(this,t,s,1,255,0),this[s]=t&255,s+1},"writeUInt8"),r.prototype.writeUint16LE=r.prototype.writeUInt16LE=e(function(t,s,h){return t=+t,s=s>>>0,h||ue(this,t,s,2,65535,0),this[s]=t&255,this[s+1]=t>>>8,s+2},"writeUInt16LE"),r.prototype.writeUint16BE=r.prototype.writeUInt16BE=e(function(t,s,h){return t=+t,s=s>>>0,h||ue(this,t,s,2,65535,0),this[s]=t>>>8,this[s+1]=t&255,s+2},"writeUInt16BE"),r.prototype.writeUint32LE=r.prototype.writeUInt32LE=e(function(t,s,h){return t=+t,s=s>>>0,h||ue(this,t,s,4,4294967295,0),this[s+3]=t>>>24,this[s+2]=t>>>16,this[s+1]=t>>>8,this[s]=t&255,s+4},"writeUInt32LE"),r.prototype.writeUint32BE=r.prototype.writeUInt32BE=e(function(t,s,h){return t=+t,s=s>>>0,h||ue(this,t,s,4,4294967295,0),this[s]=t>>>24,this[s+1]=t>>>16,this[s+2]=t>>>8,this[s+3]=t&255,s+4},"writeUInt32BE");function te(t,s,h,v,R){ve(s,v,R,t,h,7);let P=Number(s&BigInt(4294967295));t[h++]=P,P=P>>8,t[h++]=P,P=P>>8,t[h++]=P,P=P>>8,t[h++]=P;let C=Number(s>>BigInt(32)&BigInt(4294967295));return t[h++]=C,C=C>>8,t[h++]=C,C=C>>8,t[h++]=C,C=C>>8,t[h++]=C,h}l(te,"z"),e(te,"wrtBigUInt64LE");function X(t,s,h,v,R){ve(s,v,R,t,h,7);let P=Number(s&BigInt(4294967295));t[h+7]=P,P=P>>8,t[h+6]=P,P=P>>8,t[h+5]=P,P=P>>8,t[h+4]=P;let C=Number(s>>BigInt(32)&BigInt(4294967295));return t[h+3]=C,C=C>>8,t[h+2]=C,C=C>>8,t[h+1]=C,C=C>>8,t[h]=C,h+8}l(X,"V"),e(X,"wrtBigUInt64BE"),r.prototype.writeBigUInt64LE=$e(e(function(t,s=0){return te(this,t,s,BigInt(0),BigInt("0xffffffffffffffff"))},"writeBigUInt64LE")),r.prototype.writeBigUInt64BE=$e(e(function(t,s=0){return X(this,t,s,BigInt(0),BigInt("0xffffffffffffffff"))},"writeBigUInt64BE")),r.prototype.writeIntLE=e(function(t,s,h,v){if(t=+t,s=s>>>0,!v){let Z=Math.pow(2,8*h-1);ue(this,t,s,h,Z-1,-Z)}let R=0,P=1,C=0;for(this[s]=t&255;++R<h&&(P*=256);)t<0&&C===0&&this[s+R-1]!==0&&(C=1),this[s+R]=(t/P>>0)-C&255;return s+h},"writeIntLE"),r.prototype.writeIntBE=e(function(t,s,h,v){if(t=+t,s=s>>>0,!v){let Z=Math.pow(2,8*h-1);ue(this,t,s,h,Z-1,-Z)}let R=h-1,P=1,C=0;for(this[s+R]=t&255;--R>=0&&(P*=256);)t<0&&C===0&&this[s+R+1]!==0&&(C=1),this[s+R]=(t/P>>0)-C&255;return s+h},"writeIntBE"),r.prototype.writeInt8=e(function(t,s,h){return t=+t,s=s>>>0,h||ue(this,t,s,1,127,-128),t<0&&(t=255+t+1),this[s]=t&255,s+1},"writeInt8"),r.prototype.writeInt16LE=e(function(t,s,h){return t=+t,s=s>>>0,h||ue(this,t,s,2,32767,-32768),this[s]=t&255,this[s+1]=t>>>8,s+2},"writeInt16LE"),r.prototype.writeInt16BE=e(function(t,s,h){return t=+t,s=s>>>0,h||ue(this,t,s,2,32767,-32768),this[s]=t>>>8,this[s+1]=t&255,s+2},"writeInt16BE"),r.prototype.writeInt32LE=e(function(t,s,h){return t=+t,s=s>>>0,h||ue(this,t,s,4,2147483647,-2147483648),this[s]=t&255,this[s+1]=t>>>8,this[s+2]=t>>>16,this[s+3]=t>>>24,s+4},"writeInt32LE"),r.prototype.writeInt32BE=e(function(t,s,h){return t=+t,s=s>>>0,h||ue(this,t,s,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[s]=t>>>24,this[s+1]=t>>>16,this[s+2]=t>>>8,this[s+3]=t&255,s+4},"writeInt32BE"),r.prototype.writeBigInt64LE=$e(e(function(t,s=0){return te(this,t,s,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))},"writeBigInt64LE")),r.prototype.writeBigInt64BE=$e(e(function(t,s=0){return X(this,t,s,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))},"writeBigInt64BE"));function ye(t,s,h,v,R,P){if(h+v>t.length)throw new RangeError("Index out of range");if(h<0)throw new RangeError("Index out of range")}l(ye,"G"),e(ye,"checkIEEE754");function Re(t,s,h,v,R){return s=+s,h=h>>>0,R||ye(t,s,h,4),i.write(t,s,h,v,23,4),h+4}l(Re,"fe"),e(Re,"writeFloat"),r.prototype.writeFloatLE=e(function(t,s,h){return Re(this,t,s,!0,h)},"writeFloatLE"),r.prototype.writeFloatBE=e(function(t,s,h){return Re(this,t,s,!1,h)},"writeFloatBE");function De(t,s,h,v,R){return s=+s,h=h>>>0,R||ye(t,s,h,8),i.write(t,s,h,v,52,8),h+8}l(De,"be"),e(De,"writeDouble"),r.prototype.writeDoubleLE=e(function(t,s,h){return De(this,t,s,!0,h)},"writeDoubleLE"),r.prototype.writeDoubleBE=e(function(t,s,h){return De(this,t,s,!1,h)},"writeDoubleBE"),r.prototype.copy=e(function(t,s,h,v){if(!r.isBuffer(t))throw new TypeError("argument should be a Buffer");if(h||(h=0),!v&&v!==0&&(v=this.length),s>=t.length&&(s=t.length),s||(s=0),v>0&&v<h&&(v=h),v===h||t.length===0||this.length===0)return 0;if(s<0)throw new RangeError("targetStart out of bounds");if(h<0||h>=this.length)throw new RangeError("Index out of range");if(v<0)throw new RangeError("sourceEnd out of bounds");v>this.length&&(v=this.length),t.length-s<v-h&&(v=t.length-s+h);let R=v-h;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(s,h,v):Uint8Array.prototype.set.call(t,this.subarray(h,v),s),R},"copy"),r.prototype.fill=e(function(t,s,h,v){if(typeof t=="string"){if(typeof s=="string"?(v=s,s=0,h=this.length):typeof h=="string"&&(v=h,h=this.length),v!==void 0&&typeof v!="string")throw new TypeError("encoding must be a string");if(typeof v=="string"&&!r.isEncoding(v))throw new TypeError("Unknown encoding: "+v);if(t.length===1){let P=t.charCodeAt(0);(v==="utf8"&&P<128||v==="latin1")&&(t=P)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(s<0||this.length<s||this.length<h)throw new RangeError("Out of range index");if(h<=s)return this;s=s>>>0,h=h===void 0?this.length:h>>>0,t||(t=0);let R;if(typeof t=="number")for(R=s;R<h;++R)this[R]=t;else{let P=r.isBuffer(t)?t:r.from(t,v),C=P.length;if(C===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(R=0;R<h-s;++R)this[R+s]=P[R%C]}return this},"fill");let Y={};function H(t,s,h){var R;var v;Y[t]=(v=(R=class extends h{constructor(){super(),Object.defineProperty(this,"message",{value:s.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(C){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:C,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}},l(R,"w"),R),e(v,"NodeError"),v)}l(H,"$"),e(H,"E2"),H("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),H("ERR_INVALID_ARG_TYPE",function(t,s){return`The "${t}" argument must be of type number. Received type ${typeof s}`},TypeError),H("ERR_OUT_OF_RANGE",function(t,s,h){let v=`The value of "${t}" is out of range.`,R=h;return Number.isInteger(h)&&Math.abs(h)>2**32?R=Q(String(h)):typeof h=="bigint"&&(R=String(h),(h>BigInt(2)**BigInt(32)||h<-(BigInt(2)**BigInt(32)))&&(R=Q(R)),R+="n"),v+=` It must be ${s}. Received ${R}`,v},RangeError);function Q(t){let s="",h=t.length,v=t[0]==="-"?1:0;for(;h>=v+4;h-=3)s=`_${t.slice(h-3,h)}${s}`;return`${t.slice(0,h)}${s}`}l(Q,"H"),e(Q,"addNumericalSeparator");function fe(t,s,h){N(s,"offset"),(t[s]===void 0||t[s+h]===void 0)&&x(s,t.length-(h+1))}l(fe,"te"),e(fe,"checkBounds");function ve(t,s,h,v,R,P){if(t>h||t<s){let C=typeof s=="bigint"?"n":"",Z;throw s===0||s===BigInt(0)?Z=`>= 0${C} and < 2${C} ** ${(P+1)*8}${C}`:Z=`>= -(2${C} ** ${(P+1)*8-1}${C}) and < 2 ** ${(P+1)*8-1}${C}`,new Y.ERR_OUT_OF_RANGE("value",Z,t)}fe(v,R,P)}l(ve,"oe"),e(ve,"checkIntBI");function N(t,s){if(typeof t!="number")throw new Y.ERR_INVALID_ARG_TYPE(s,"number",t)}l(N,"P"),e(N,"validateNumber");function x(t,s,h){throw Math.floor(t)!==t?(N(t,h),new Y.ERR_OUT_OF_RANGE("offset","an integer",t)):s<0?new Y.ERR_BUFFER_OUT_OF_BOUNDS:new Y.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${s}`,t)}l(x,"x"),e(x,"boundsError");let D=/[^+/0-9A-Za-z-_]/g;function z(t){if(t=t.split("=")[0],t=t.trim().replace(D,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}l(z,"Y"),e(z,"base64clean");function Ee(t,s){s=s||1/0;let h,v=t.length,R=null,P=[];for(let C=0;C<v;++C){if(h=t.charCodeAt(C),h>55295&&h<57344){if(!R){if(h>56319){(s-=3)>-1&&P.push(239,191,189);continue}else if(C+1===v){(s-=3)>-1&&P.push(239,191,189);continue}R=h;continue}if(h<56320){(s-=3)>-1&&P.push(239,191,189),R=h;continue}h=(R-55296<<10|h-56320)+65536}else R&&(s-=3)>-1&&P.push(239,191,189);if(R=null,h<128){if((s-=1)<0)break;P.push(h)}else if(h<2048){if((s-=2)<0)break;P.push(h>>6|192,h&63|128)}else if(h<65536){if((s-=3)<0)break;P.push(h>>12|224,h>>6&63|128,h&63|128)}else if(h<1114112){if((s-=4)<0)break;P.push(h>>18|240,h>>12&63|128,h>>6&63|128,h&63|128)}else throw new Error("Invalid code point")}return P}l(Ee,"ue"),e(Ee,"utf8ToBytes");function ke(t){let s=[];for(let h=0;h<t.length;++h)s.push(t.charCodeAt(h)&255);return s}l(ke,"le"),e(ke,"asciiToBytes");function be(t,s){let h,v,R,P=[];for(let C=0;C<t.length&&!((s-=2)<0);++C)h=t.charCodeAt(C),v=h>>8,R=h%256,P.push(R),P.push(v);return P}l(be,"ee"),e(be,"utf16leToBytes");function ge(t){return o.toByteArray(z(t))}l(ge,"ie"),e(ge,"base64ToBytes");function Ne(t,s,h,v){let R;for(R=0;R<v&&!(R+h>=s.length||R>=t.length);++R)s[R+h]=t[R];return R}l(Ne,"me"),e(Ne,"blitBuffer");function xe(t,s){return t instanceof s||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===s.name}l(xe,"ye"),e(xe,"isInstance");function Oe(t){return t!==t}l(Oe,"ve"),e(Oe,"numberIsNaN");let Pe=function(){let t="0123456789abcdef",s=new Array(256);for(let h=0;h<16;++h){let v=h*16;for(let R=0;R<16;++R)s[v+R]=t[h]+t[R]}return s}();function $e(t){return typeof BigInt>"u"?Ke:t}l($e,"Be"),e($e,"defineBigIntMethod");function Ke(){throw new Error("BigInt not supported")}return l(Ke,"Xe"),e(Ke,"BufferBigIntNotDefined"),Wi}function zc(){throw new Error("setTimeout has not been defined")}function Hc(){throw new Error("clearTimeout has not been defined")}function ev(o){if(oi===setTimeout)return setTimeout(o,0);if((oi===zc||!oi)&&setTimeout)return oi=setTimeout,setTimeout(o,0);try{return oi(o,0)}catch{try{return oi.call(null,o,0)}catch{return oi.call(this||ba,o,0)}}}function r8(){va&&ua&&(va=!1,ua.length?Nn=ua.concat(Nn):ef=-1,Nn.length&&tv())}function tv(){if(!va){var o=ev(r8);va=!0;for(var i=Nn.length;i;){for(ua=Nn,Nn=[];++ef<i;)ua&&ua[ef].run();ef=-1,i=Nn.length}ua=null,va=!1,function(f){if(ai===clearTimeout)return clearTimeout(f);if((ai===Hc||!ai)&&clearTimeout)return ai=clearTimeout,clearTimeout(f);try{ai(f)}catch{try{return ai.call(null,f)}catch{return ai.call(this||ba,f)}}}(o)}}function Ey(o,i){(this||ba).fun=o,(this||ba).array=i}function Sn(){}function Ti(o){return o.call.bind(o)}function el(o,i){if(typeof o!="object")return!1;try{return i(o),!0}catch{return!1}}function Sy(o){return jr&&Hr?tn(o)!==void 0:rv(o)||nv(o)||iv(o)||ov(o)||av(o)||sv(o)||lv(o)||fv(o)||uv(o)||cv(o)||hv(o)}function rv(o){return jr&&Hr?tn(o)==="Uint8Array":Kt(o)==="[object Uint8Array]"||v8(o)&&o.buffer!==void 0}function nv(o){return jr&&Hr?tn(o)==="Uint8ClampedArray":Kt(o)==="[object Uint8ClampedArray]"}function iv(o){return jr&&Hr?tn(o)==="Uint16Array":Kt(o)==="[object Uint16Array]"}function ov(o){return jr&&Hr?tn(o)==="Uint32Array":Kt(o)==="[object Uint32Array]"}function av(o){return jr&&Hr?tn(o)==="Int8Array":Kt(o)==="[object Int8Array]"}function sv(o){return jr&&Hr?tn(o)==="Int16Array":Kt(o)==="[object Int16Array]"}function lv(o){return jr&&Hr?tn(o)==="Int32Array":Kt(o)==="[object Int32Array]"}function fv(o){return jr&&Hr?tn(o)==="Float32Array":Kt(o)==="[object Float32Array]"}function uv(o){return jr&&Hr?tn(o)==="Float64Array":Kt(o)==="[object Float64Array]"}function cv(o){return jr&&Hr?tn(o)==="BigInt64Array":Kt(o)==="[object BigInt64Array]"}function hv(o){return jr&&Hr?tn(o)==="BigUint64Array":Kt(o)==="[object BigUint64Array]"}function pl(o){return Kt(o)==="[object Map]"}function gl(o){return Kt(o)==="[object Set]"}function yl(o){return Kt(o)==="[object WeakMap]"}function ou(o){return Kt(o)==="[object WeakSet]"}function Vl(o){return Kt(o)==="[object ArrayBuffer]"}function Ay(o){return typeof ArrayBuffer<"u"&&(Vl.working?Vl(o):o instanceof ArrayBuffer)}function Kl(o){return Kt(o)==="[object DataView]"}function Ry(o){return typeof DataView<"u"&&(Kl.working?Kl(o):o instanceof DataView)}function Jl(o){return Kt(o)==="[object SharedArrayBuffer]"}function ky(o){return typeof SharedArrayBuffer<"u"&&(Jl.working?Jl(o):o instanceof SharedArrayBuffer)}function Oy(o){return el(o,_8)}function Ty(o){return el(o,E8)}function Fy(o){return el(o,S8)}function By(o){return vv&&el(o,BX)}function Iy(o){return Yc&&el(o,CX)}function di(o,i){var f={seen:[],stylize:i8};return arguments.length>=3&&(f.depth=arguments[2]),arguments.length>=4&&(f.colors=arguments[3]),ad(i)?f.showHidden=i:i&&Xe._extend(f,i),Vi(f.showHidden)&&(f.showHidden=!1),Vi(f.depth)&&(f.depth=2),Vi(f.colors)&&(f.colors=!1),Vi(f.customInspect)&&(f.customInspect=!0),f.colors&&(f.stylize=n8),pf(f,o,f.depth)}function n8(o,i){var f=di.styles[i];return f?"\x1B["+di.colors[f][0]+"m"+o+"\x1B["+di.colors[f][1]+"m":o}function i8(o,i){return o}function pf(o,i,f){if(o.customInspect&&i&&Xl(i.inspect)&&i.inspect!==Xe.inspect&&(!i.constructor||i.constructor.prototype!==i)){var g=i.inspect(f,o);return Zl(g)||(g=pf(o,g,f)),g}var a=function(y,w){if(Vi(w))return y.stylize("undefined","undefined");if(Zl(w)){var _="'"+JSON.stringify(w).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return y.stylize(_,"string")}if(pv(w))return y.stylize(""+w,"number");if(ad(w))return y.stylize(""+w,"boolean");if(Yl(w))return y.stylize("null","null")}(o,i);if(a)return a;var n=Object.keys(i),r=function(y){var w={};return y.forEach(function(_,S){w[_]=!0}),w}(n);if(o.showHidden&&(n=Object.getOwnPropertyNames(i)),xs(i)&&(n.indexOf("message")>=0||n.indexOf("description")>=0))return qc(i);if(n.length===0){if(Xl(i)){var u=i.name?": "+i.name:"";return o.stylize("[Function"+u+"]","special")}if(Is(i))return o.stylize(RegExp.prototype.toString.call(i),"regexp");if(Ql(i))return o.stylize(Date.prototype.toString.call(i),"date");if(xs(i))return qc(i)}var p,c="",d=!1,m=["{","}"];return dv(i)&&(d=!0,m=["[","]"]),Xl(i)&&(c=" [Function"+(i.name?": "+i.name:"")+"]"),Is(i)&&(c=" "+RegExp.prototype.toString.call(i)),Ql(i)&&(c=" "+Date.prototype.toUTCString.call(i)),xs(i)&&(c=" "+qc(i)),n.length!==0||d&&i.length!=0?f<0?Is(i)?o.stylize(RegExp.prototype.toString.call(i),"regexp"):o.stylize("[Object]","special"):(o.seen.push(i),p=d?function(y,w,_,S,T){for(var k=[],E=0,j=w.length;E<j;++E)QE(w,String(E))?k.push(Gc(y,w,_,S,String(E),!0)):k.push("");return T.forEach(function(A){A.match(/^\d+$/)||k.push(Gc(y,w,_,S,A,!0))}),k}(o,i,f,r,n):n.map(function(y){return Gc(o,i,f,r,y,d)}),o.seen.pop(),function(y,w,_){var S=0;return y.reduce(function(T,k){return S++,k.indexOf(`
19
- `)>=0&&S++,T+k.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?_[0]+(w===""?"":w+`
20
- `)+" "+y.join(`,
21
- `)+" "+_[1]:_[0]+w+" "+y.join(", ")+" "+_[1]}(p,c,m)):m[0]+c+m[1]}function qc(o){return"["+Error.prototype.toString.call(o)+"]"}function Gc(o,i,f,g,a,n){var r,u,p;if((p=Object.getOwnPropertyDescriptor(i,a)||{value:i[a]}).get?u=p.set?o.stylize("[Getter/Setter]","special"):o.stylize("[Getter]","special"):p.set&&(u=o.stylize("[Setter]","special")),QE(g,a)||(r="["+a+"]"),u||(o.seen.indexOf(p.value)<0?(u=Yl(f)?pf(o,p.value,null):pf(o,p.value,f-1)).indexOf(`
22
- `)>-1&&(u=n?u.split(`
23
- `).map(function(c){return" "+c}).join(`
24
- `).substr(2):`
25
- `+u.split(`
26
- `).map(function(c){return" "+c}).join(`
27
- `)):u=o.stylize("[Circular]","special")),Vi(r)){if(n&&a.match(/^\d+$/))return u;(r=JSON.stringify(""+a)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(r=r.substr(1,r.length-2),r=o.stylize(r,"name")):(r=r.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),r=o.stylize(r,"string"))}return r+": "+u}function dv(o){return Array.isArray(o)}function ad(o){return typeof o=="boolean"}function Yl(o){return o===null}function pv(o){return typeof o=="number"}function Zl(o){return typeof o=="string"}function Vi(o){return o===void 0}function Is(o){return fa(o)&&Ld(o)==="[object RegExp]"}function fa(o){return typeof o=="object"&&o!==null}function Ql(o){return fa(o)&&Ld(o)==="[object Date]"}function xs(o){return fa(o)&&(Ld(o)==="[object Error]"||o instanceof Error)}function Xl(o){return typeof o=="function"}function Ld(o){return Object.prototype.toString.call(o)}function Vc(o){return o<10?"0"+o.toString(10):o.toString(10)}function KT(){var o=new Date,i=[Vc(o.getHours()),Vc(o.getMinutes()),Vc(o.getSeconds())].join(":");return[o.getDate(),A8[o.getMonth()],i].join(" ")}function QE(o,i){return Object.prototype.hasOwnProperty.call(o,i)}function JT(o,i){if(!o){var f=new Error("Promise was rejected with a falsy value");f.reason=o,o=f}return i(o)}function sd(o){throw new Error("Node.js process "+o+" is not supported by JSPM core outside of Node.js")}function o8(){!_a||!ca||(_a=!1,ca.length?Dn=ca.concat(Dn):tf=-1,Dn.length&&XE())}function XE(){if(!_a){var o=setTimeout(o8,0);_a=!0;for(var i=Dn.length;i;){for(ca=Dn,Dn=[];++tf<i;)ca&&ca[tf].run();tf=-1,i=Dn.length}ca=null,_a=!1,clearTimeout(o)}}function YT(o){var i=new Array(arguments.length-1);if(arguments.length>1)for(var f=1;f<arguments.length;f++)i[f-1]=arguments[f];Dn.push(new gv(o,i)),Dn.length===1&&!_a&&setTimeout(XE,0)}function gv(o,i){this.fun=o,this.array=i}function _r(){}function ZT(o){sd("_linkedBinding")}function QT(o){sd("dlopen")}function XT(){return[]}function eF(){return[]}function tF(o,i){if(!o)throw new Error(i||"assertion error")}function rF(){return!1}function nF(){return pi.now()/1e3}function au(o){var i=Math.floor((Date.now()-pi.now())*.001),f=pi.now()*.001,g=Math.floor(f)+i,a=Math.floor(f%1*1e9);return o&&(g=g-o[0],a=a-o[1],a<0&&(g--,a+=Zc)),[g,a]}function ei(){return Ei}function iF(o){return[]}function a8(){if(_v)return Qc;_v=!0,Qc=o;function o(f,g){if(i("noDeprecation"))return f;var a=!1;function n(){if(!a){if(i("throwDeprecation"))throw new Error(g);i("traceDeprecation")?console.trace(g):console.warn(g),a=!0}return f.apply(this||Xc,arguments)}return l(n,"s"),e(n,"deprecated"),n}l(o,"e"),e(o,"deprecate");function i(f){try{if(!Xc.localStorage)return!1}catch{return!1}var g=Xc.localStorage[f];return g==null?!1:String(g).toLowerCase()==="true"}return l(i,"t"),e(i,"config2"),Qc}function s8(){if(Ev)return Ts;Ev=!0;var o=Ca(),i=o.Buffer;function f(a,n){for(var r in a)n[r]=a[r]}l(f,"r"),e(f,"copyProps"),i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?Ts=o:(f(o,Ts),Ts.Buffer=g);function g(a,n,r){return i(a,n,r)}return l(g,"n"),e(g,"SafeBuffer"),g.prototype=Object.create(i.prototype),f(i,g),g.from=function(a,n,r){if(typeof a=="number")throw new TypeError("Argument must not be a number");return i(a,n,r)},g.alloc=function(a,n,r){if(typeof a!="number")throw new TypeError("Argument must be a number");var u=i(a);return n!==void 0?typeof r=="string"?u.fill(n,r):u.fill(n):u.fill(0),u},g.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return i(a)},g.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return o.SlowBuffer(a)},Ts}function oF(){if(Sv)return eh;Sv=!0;var o=s8().Buffer,i=o.isEncoding||function(k){switch(k=""+k,k&&k.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 f(k){if(!k)return"utf8";for(var E;;)switch(k){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 k;default:if(E)return;k=(""+k).toLowerCase(),E=!0}}l(f,"r"),e(f,"_normalizeEncoding");function g(k){var E=f(k);if(typeof E!="string"&&(o.isEncoding===i||!i(k)))throw new Error("Unknown encoding: "+k);return E||k}l(g,"n"),e(g,"normalizeEncoding"),eh.StringDecoder=a;function a(k){this.encoding=g(k);var E;switch(this.encoding){case"utf16le":this.text=m,this.end=y,E=4;break;case"utf8":this.fillLast=p,E=4;break;case"base64":this.text=w,this.end=_,E=3;break;default:this.write=S,this.end=T;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=o.allocUnsafe(E)}l(a,"a"),e(a,"StringDecoder2"),a.prototype.write=function(k){if(k.length===0)return"";var E,j;if(this.lastNeed){if(E=this.fillLast(k),E===void 0)return"";j=this.lastNeed,this.lastNeed=0}else j=0;return j<k.length?E?E+this.text(k,j):this.text(k,j):E||""},a.prototype.end=d,a.prototype.text=c,a.prototype.fillLast=function(k){if(this.lastNeed<=k.length)return k.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);k.copy(this.lastChar,this.lastTotal-this.lastNeed,0,k.length),this.lastNeed-=k.length};function n(k){return k<=127?0:k>>5===6?2:k>>4===14?3:k>>3===30?4:k>>6===2?-1:-2}l(n,"s"),e(n,"utf8CheckByte");function r(k,E,j){var A=E.length-1;if(A<j)return 0;var I=n(E[A]);return I>=0?(I>0&&(k.lastNeed=I-1),I):--A<j||I===-2?0:(I=n(E[A]),I>=0?(I>0&&(k.lastNeed=I-2),I):--A<j||I===-2?0:(I=n(E[A]),I>=0?(I>0&&(I===2?I=0:k.lastNeed=I-3),I):0))}l(r,"i"),e(r,"utf8CheckIncomplete");function u(k,E,j){if((E[0]&192)!==128)return k.lastNeed=0,"\uFFFD";if(k.lastNeed>1&&E.length>1){if((E[1]&192)!==128)return k.lastNeed=1,"\uFFFD";if(k.lastNeed>2&&E.length>2&&(E[2]&192)!==128)return k.lastNeed=2,"\uFFFD"}}l(u,"f"),e(u,"utf8CheckExtraBytes");function p(k){var E=this.lastTotal-this.lastNeed,j=u(this,k);if(j!==void 0)return j;if(this.lastNeed<=k.length)return k.copy(this.lastChar,E,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);k.copy(this.lastChar,E,0,k.length),this.lastNeed-=k.length}l(p,"h"),e(p,"utf8FillLast");function c(k,E){var j=r(this,k,E);if(!this.lastNeed)return k.toString("utf8",E);this.lastTotal=j;var A=k.length-(j-this.lastNeed);return k.copy(this.lastChar,0,A),k.toString("utf8",E,A)}l(c,"c"),e(c,"utf8Text");function d(k){var E=k&&k.length?this.write(k):"";return this.lastNeed?E+"\uFFFD":E}l(d,"d"),e(d,"utf8End");function m(k,E){if((k.length-E)%2===0){var j=k.toString("utf16le",E);if(j){var A=j.charCodeAt(j.length-1);if(A>=55296&&A<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=k[k.length-2],this.lastChar[1]=k[k.length-1],j.slice(0,-1)}return j}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=k[k.length-1],k.toString("utf16le",E,k.length-1)}l(m,"y"),e(m,"utf16Text");function y(k){var E=k&&k.length?this.write(k):"";if(this.lastNeed){var j=this.lastTotal-this.lastNeed;return E+this.lastChar.toString("utf16le",0,j)}return E}l(y,"m"),e(y,"utf16End");function w(k,E){var j=(k.length-E)%3;return j===0?k.toString("base64",E):(this.lastNeed=3-j,this.lastTotal=3,j===1?this.lastChar[0]=k[k.length-1]:(this.lastChar[0]=k[k.length-2],this.lastChar[1]=k[k.length-1]),k.toString("base64",E,k.length-j))}l(w,"g"),e(w,"base64Text");function _(k){var E=k&&k.length?this.write(k):"";return this.lastNeed?E+this.lastChar.toString("base64",0,3-this.lastNeed):E}l(_,"v"),e(_,"base64End");function S(k){return k.toString(this.encoding)}l(S,"_"),e(S,"simpleWrite");function T(k){return k&&k.length?this.write(k):""}return l(T,"b"),e(T,"simpleEnd"),eh}function aF(){if(Av)return th;Av=!0;var o=th={},i,f;function g(){throw new Error("setTimeout has not been defined")}l(g,"n"),e(g,"defaultSetTimout");function a(){throw new Error("clearTimeout has not been defined")}l(a,"a"),e(a,"defaultClearTimeout"),function(){try{typeof setTimeout=="function"?i=setTimeout:i=g}catch{i=g}try{typeof clearTimeout=="function"?f=clearTimeout:f=a}catch{f=a}}();function n(S){if(i===setTimeout)return setTimeout(S,0);if((i===g||!i)&&setTimeout)return i=setTimeout,setTimeout(S,0);try{return i(S,0)}catch{try{return i.call(null,S,0)}catch{return i.call(this||ra,S,0)}}}l(n,"s"),e(n,"runTimeout");function r(S){if(f===clearTimeout)return clearTimeout(S);if((f===a||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(S);try{return f(S)}catch{try{return f.call(null,S)}catch{return f.call(this||ra,S)}}}l(r,"i"),e(r,"runClearTimeout");var u=[],p=!1,c,d=-1;function m(){!p||!c||(p=!1,c.length?u=c.concat(u):d=-1,u.length&&y())}l(m,"y"),e(m,"cleanUpNextTick2");function y(){if(!p){var S=n(m);p=!0;for(var T=u.length;T;){for(c=u,u=[];++d<T;)c&&c[d].run();d=-1,T=u.length}c=null,p=!1,r(S)}}l(y,"m"),e(y,"drainQueue2"),o.nextTick=function(S){var T=new Array(arguments.length-1);if(arguments.length>1)for(var k=1;k<arguments.length;k++)T[k-1]=arguments[k];u.push(new w(S,T)),u.length===1&&!p&&n(y)};function w(S,T){(this||ra).fun=S,(this||ra).array=T}l(w,"g"),e(w,"Item2"),w.prototype.run=function(){(this||ra).fun.apply(null,(this||ra).array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={};function _(){}return l(_,"v"),e(_,"noop2"),o.on=_,o.addListener=_,o.once=_,o.off=_,o.removeListener=_,o.removeAllListeners=_,o.emit=_,o.prependListener=_,o.prependOnceListener=_,o.listeners=function(S){return[]},o.binding=function(S){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(S){throw new Error("process.chdir is not supported")},o.umask=function(){return 0},th}function sF(){if(Rv)return rh;Rv=!0;var o=qt;function i(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}l(i,"t"),e(i,"assertPath");function f(n,r){for(var u="",p=0,c=-1,d=0,m,y=0;y<=n.length;++y){if(y<n.length)m=n.charCodeAt(y);else{if(m===47)break;m=47}if(m===47){if(!(c===y-1||d===1))if(c!==y-1&&d===2){if(u.length<2||p!==2||u.charCodeAt(u.length-1)!==46||u.charCodeAt(u.length-2)!==46){if(u.length>2){var w=u.lastIndexOf("/");if(w!==u.length-1){w===-1?(u="",p=0):(u=u.slice(0,w),p=u.length-1-u.lastIndexOf("/")),c=y,d=0;continue}}else if(u.length===2||u.length===1){u="",p=0,c=y,d=0;continue}}r&&(u.length>0?u+="/..":u="..",p=2)}else u.length>0?u+="/"+n.slice(c+1,y):u=n.slice(c+1,y),p=y-c-1;c=y,d=0}else m===46&&d!==-1?++d:d=-1}return u}l(f,"r"),e(f,"normalizeStringPosix");function g(n,r){var u=r.dir||r.root,p=r.base||(r.name||"")+(r.ext||"");return u?u===r.root?u+p:u+n+p:p}l(g,"n"),e(g,"_format");var a={resolve:e(function(){for(var n="",r=!1,u,p=arguments.length-1;p>=-1&&!r;p--){var c;p>=0?c=arguments[p]:(u===void 0&&(u=o.cwd()),c=u),i(c),c.length!==0&&(n=c+"/"+n,r=c.charCodeAt(0)===47)}return n=f(n,!r),r?n.length>0?"/"+n:"/":n.length>0?n:"."},"resolve"),normalize:e(function(n){if(i(n),n.length===0)return".";var r=n.charCodeAt(0)===47,u=n.charCodeAt(n.length-1)===47;return n=f(n,!r),n.length===0&&!r&&(n="."),n.length>0&&u&&(n+="/"),r?"/"+n:n},"normalize"),isAbsolute:e(function(n){return i(n),n.length>0&&n.charCodeAt(0)===47},"isAbsolute"),join:e(function(){if(arguments.length===0)return".";for(var n,r=0;r<arguments.length;++r){var u=arguments[r];i(u),u.length>0&&(n===void 0?n=u:n+="/"+u)}return n===void 0?".":a.normalize(n)},"join"),relative:e(function(n,r){if(i(n),i(r),n===r||(n=a.resolve(n),r=a.resolve(r),n===r))return"";for(var u=1;u<n.length&&n.charCodeAt(u)===47;++u);for(var p=n.length,c=p-u,d=1;d<r.length&&r.charCodeAt(d)===47;++d);for(var m=r.length,y=m-d,w=c<y?c:y,_=-1,S=0;S<=w;++S){if(S===w){if(y>w){if(r.charCodeAt(d+S)===47)return r.slice(d+S+1);if(S===0)return r.slice(d+S)}else c>w&&(n.charCodeAt(u+S)===47?_=S:S===0&&(_=0));break}var T=n.charCodeAt(u+S),k=r.charCodeAt(d+S);if(T!==k)break;T===47&&(_=S)}var E="";for(S=u+_+1;S<=p;++S)(S===p||n.charCodeAt(S)===47)&&(E.length===0?E+="..":E+="/..");return E.length>0?E+r.slice(d+_):(d+=_,r.charCodeAt(d)===47&&++d,r.slice(d))},"relative"),_makeLong:e(function(n){return n},"_makeLong"),dirname:e(function(n){if(i(n),n.length===0)return".";for(var r=n.charCodeAt(0),u=r===47,p=-1,c=!0,d=n.length-1;d>=1;--d)if(r=n.charCodeAt(d),r===47){if(!c){p=d;break}}else c=!1;return p===-1?u?"/":".":u&&p===1?"//":n.slice(0,p)},"dirname"),basename:e(function(n,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');i(n);var u=0,p=-1,c=!0,d;if(r!==void 0&&r.length>0&&r.length<=n.length){if(r.length===n.length&&r===n)return"";var m=r.length-1,y=-1;for(d=n.length-1;d>=0;--d){var w=n.charCodeAt(d);if(w===47){if(!c){u=d+1;break}}else y===-1&&(c=!1,y=d+1),m>=0&&(w===r.charCodeAt(m)?--m===-1&&(p=d):(m=-1,p=y))}return u===p?p=y:p===-1&&(p=n.length),n.slice(u,p)}else{for(d=n.length-1;d>=0;--d)if(n.charCodeAt(d)===47){if(!c){u=d+1;break}}else p===-1&&(c=!1,p=d+1);return p===-1?"":n.slice(u,p)}},"basename"),extname:e(function(n){i(n);for(var r=-1,u=0,p=-1,c=!0,d=0,m=n.length-1;m>=0;--m){var y=n.charCodeAt(m);if(y===47){if(!c){u=m+1;break}continue}p===-1&&(c=!1,p=m+1),y===46?r===-1?r=m:d!==1&&(d=1):r!==-1&&(d=-1)}return r===-1||p===-1||d===0||d===1&&r===p-1&&r===u+1?"":n.slice(r,p)},"extname"),format:e(function(n){if(n===null||typeof n!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof n);return g("/",n)},"format"),parse:e(function(n){i(n);var r={root:"",dir:"",base:"",ext:"",name:""};if(n.length===0)return r;var u=n.charCodeAt(0),p=u===47,c;p?(r.root="/",c=1):c=0;for(var d=-1,m=0,y=-1,w=!0,_=n.length-1,S=0;_>=c;--_){if(u=n.charCodeAt(_),u===47){if(!w){m=_+1;break}continue}y===-1&&(w=!1,y=_+1),u===46?d===-1?d=_:S!==1&&(S=1):d!==-1&&(S=-1)}return d===-1||y===-1||S===0||S===1&&d===y-1&&d===m+1?y!==-1&&(m===0&&p?r.base=r.name=n.slice(1,y):r.base=r.name=n.slice(m,y)):(m===0&&p?(r.name=n.slice(1,d),r.base=n.slice(1,y)):(r.name=n.slice(m,d),r.base=n.slice(m,y)),r.ext=n.slice(d,y)),m>0?r.dir=n.slice(0,m-1):p&&(r.dir="/"),r},"parse"),sep:"/",delimiter:":",win32:null,posix:null};return a.posix=a,rh=a,rh}function Fi(o){throw new RangeError(k8[o])}function xy(o,i){let f=o.split("@"),g="";f.length>1&&(g=f[0]+"@",o=f[1]);let a=function(n,r){let u=[],p=n.length;for(;p--;)u[p]=r(n[p]);return u}((o=o.replace(R8,".")).split("."),i).join(".");return g+a}function jy(o){let i=[],f=0,g=o.length;for(;f<g;){let a=o.charCodeAt(f++);if(a>=55296&&a<=56319&&f<g){let n=o.charCodeAt(f++);(64512&n)==56320?i.push(((1023&a)<<10)+(1023&n)+65536):(i.push(a),f--)}else i.push(a)}return i}function lF(o,i){return Object.prototype.hasOwnProperty.call(o,i)}function Jr(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function us(o,i,f){if(o&&dn.isObject(o)&&o instanceof Jr)return o;var g=new Jr;return g.parse(o,i,f),g}function fF(){if(Ov)return nh;Ov=!0;var o=Ht;function i(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}l(i,"t"),e(i,"assertPath");function f(n,r){for(var u="",p=0,c=-1,d=0,m,y=0;y<=n.length;++y){if(y<n.length)m=n.charCodeAt(y);else{if(m===47)break;m=47}if(m===47){if(!(c===y-1||d===1))if(c!==y-1&&d===2){if(u.length<2||p!==2||u.charCodeAt(u.length-1)!==46||u.charCodeAt(u.length-2)!==46){if(u.length>2){var w=u.lastIndexOf("/");if(w!==u.length-1){w===-1?(u="",p=0):(u=u.slice(0,w),p=u.length-1-u.lastIndexOf("/")),c=y,d=0;continue}}else if(u.length===2||u.length===1){u="",p=0,c=y,d=0;continue}}r&&(u.length>0?u+="/..":u="..",p=2)}else u.length>0?u+="/"+n.slice(c+1,y):u=n.slice(c+1,y),p=y-c-1;c=y,d=0}else m===46&&d!==-1?++d:d=-1}return u}l(f,"r"),e(f,"normalizeStringPosix");function g(n,r){var u=r.dir||r.root,p=r.base||(r.name||"")+(r.ext||"");return u?u===r.root?u+p:u+n+p:p}l(g,"n"),e(g,"_format");var a={resolve:e(function(){for(var n="",r=!1,u,p=arguments.length-1;p>=-1&&!r;p--){var c;p>=0?c=arguments[p]:(u===void 0&&(u=o.cwd()),c=u),i(c),c.length!==0&&(n=c+"/"+n,r=c.charCodeAt(0)===47)}return n=f(n,!r),r?n.length>0?"/"+n:"/":n.length>0?n:"."},"resolve"),normalize:e(function(n){if(i(n),n.length===0)return".";var r=n.charCodeAt(0)===47,u=n.charCodeAt(n.length-1)===47;return n=f(n,!r),n.length===0&&!r&&(n="."),n.length>0&&u&&(n+="/"),r?"/"+n:n},"normalize"),isAbsolute:e(function(n){return i(n),n.length>0&&n.charCodeAt(0)===47},"isAbsolute"),join:e(function(){if(arguments.length===0)return".";for(var n,r=0;r<arguments.length;++r){var u=arguments[r];i(u),u.length>0&&(n===void 0?n=u:n+="/"+u)}return n===void 0?".":a.normalize(n)},"join"),relative:e(function(n,r){if(i(n),i(r),n===r||(n=a.resolve(n),r=a.resolve(r),n===r))return"";for(var u=1;u<n.length&&n.charCodeAt(u)===47;++u);for(var p=n.length,c=p-u,d=1;d<r.length&&r.charCodeAt(d)===47;++d);for(var m=r.length,y=m-d,w=c<y?c:y,_=-1,S=0;S<=w;++S){if(S===w){if(y>w){if(r.charCodeAt(d+S)===47)return r.slice(d+S+1);if(S===0)return r.slice(d+S)}else c>w&&(n.charCodeAt(u+S)===47?_=S:S===0&&(_=0));break}var T=n.charCodeAt(u+S),k=r.charCodeAt(d+S);if(T!==k)break;T===47&&(_=S)}var E="";for(S=u+_+1;S<=p;++S)(S===p||n.charCodeAt(S)===47)&&(E.length===0?E+="..":E+="/..");return E.length>0?E+r.slice(d+_):(d+=_,r.charCodeAt(d)===47&&++d,r.slice(d))},"relative"),_makeLong:e(function(n){return n},"_makeLong"),dirname:e(function(n){if(i(n),n.length===0)return".";for(var r=n.charCodeAt(0),u=r===47,p=-1,c=!0,d=n.length-1;d>=1;--d)if(r=n.charCodeAt(d),r===47){if(!c){p=d;break}}else c=!1;return p===-1?u?"/":".":u&&p===1?"//":n.slice(0,p)},"dirname"),basename:e(function(n,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');i(n);var u=0,p=-1,c=!0,d;if(r!==void 0&&r.length>0&&r.length<=n.length){if(r.length===n.length&&r===n)return"";var m=r.length-1,y=-1;for(d=n.length-1;d>=0;--d){var w=n.charCodeAt(d);if(w===47){if(!c){u=d+1;break}}else y===-1&&(c=!1,y=d+1),m>=0&&(w===r.charCodeAt(m)?--m===-1&&(p=d):(m=-1,p=y))}return u===p?p=y:p===-1&&(p=n.length),n.slice(u,p)}else{for(d=n.length-1;d>=0;--d)if(n.charCodeAt(d)===47){if(!c){u=d+1;break}}else p===-1&&(c=!1,p=d+1);return p===-1?"":n.slice(u,p)}},"basename"),extname:e(function(n){i(n);for(var r=-1,u=0,p=-1,c=!0,d=0,m=n.length-1;m>=0;--m){var y=n.charCodeAt(m);if(y===47){if(!c){u=m+1;break}continue}p===-1&&(c=!1,p=m+1),y===46?r===-1?r=m:d!==1&&(d=1):r!==-1&&(d=-1)}return r===-1||p===-1||d===0||d===1&&r===p-1&&r===u+1?"":n.slice(r,p)},"extname"),format:e(function(n){if(n===null||typeof n!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof n);return g("/",n)},"format"),parse:e(function(n){i(n);var r={root:"",dir:"",base:"",ext:"",name:""};if(n.length===0)return r;var u=n.charCodeAt(0),p=u===47,c;p?(r.root="/",c=1):c=0;for(var d=-1,m=0,y=-1,w=!0,_=n.length-1,S=0;_>=c;--_){if(u=n.charCodeAt(_),u===47){if(!w){m=_+1;break}continue}y===-1&&(w=!1,y=_+1),u===46?d===-1?d=_:S!==1&&(S=1):d!==-1&&(S=-1)}return d===-1||y===-1||S===0||S===1&&d===y-1&&d===m+1?y!==-1&&(m===0&&p?r.base=r.name=n.slice(1,y):r.base=r.name=n.slice(m,y)):(m===0&&p?(r.name=n.slice(1,d),r.base=n.slice(1,y)):(r.name=n.slice(m,d),r.base=n.slice(m,y)),r.ext=n.slice(d,y)),m>0?r.dir=n.slice(0,m-1):p&&(r.dir="/"),r},"parse"),sep:"/",delimiter:":",win32:null,posix:null};return a.posix=a,nh=a,nh}function uF(o){if(typeof o=="string")o=new URL(o);else if(!(o instanceof URL))throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");if(o.protocol!=="file:")throw new Deno.errors.InvalidData("invalid url scheme");return ld?l8(o):f8(o)}function l8(o){let i=o.hostname,f=o.pathname;for(let g=0;g<f.length;g++)if(f[g]==="%"){let a=f.codePointAt(g+2)||32;if(f[g+1]==="2"&&a===102||f[g+1]==="5"&&a===99)throw new Deno.errors.InvalidData("must not include encoded \\ or / characters")}if(f=f.replace(I8,"\\"),f=decodeURIComponent(f),i!=="")return`\\\\${i}${f}`;{let g=f.codePointAt(1)|32,a=f[2];if(g<F8||g>B8||a!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return f.slice(1)}}function f8(o){if(o.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let i=o.pathname;for(let f=0;f<i.length;f++)if(i[f]==="%"){let g=i.codePointAt(f+2)||32;if(i[f+1]==="2"&&g===102)throw new Deno.errors.InvalidData("must not include encoded / characters")}return decodeURIComponent(i)}function cF(o){let i=Tv.resolve(o),f=o.charCodeAt(o.length-1);(f===T8||ld&&f===O8)&&i[i.length-1]!==Tv.sep&&(i+="/");let g=new URL("file://");return i.includes("%")&&(i=i.replace(x8,"%25")),!ld&&i.includes("\\")&&(i=i.replace(j8,"%5C")),i.includes(`
28
- `)&&(i=i.replace(C8,"%0A")),i.includes("\r")&&(i=i.replace(P8,"%0D")),i.includes(" ")&&(i=i.replace(L8,"%09")),g.pathname=i,g}function hF(o){if(typeof o=="string")o=new URL(o);else if(!(o instanceof URL))throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");if(o.protocol!=="file:")throw new Deno.errors.InvalidData("invalid url scheme");return fd?u8(o):c8(o)}function u8(o){let i=o.hostname,f=o.pathname;for(let g=0;g<f.length;g++)if(f[g]==="%"){let a=f.codePointAt(g+2)||32;if(f[g+1]==="2"&&a===102||f[g+1]==="5"&&a===99)throw new Deno.errors.InvalidData("must not include encoded \\ or / characters")}if(f=f.replace($8,"\\"),f=decodeURIComponent(f),i!=="")return`\\\\${i}${f}`;{let g=f.codePointAt(1)|32,a=f[2];if(g<U8||g>M8||a!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return f.slice(1)}}function c8(o){if(o.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let i=o.pathname;for(let f=0;f<i.length;f++)if(i[f]==="%"){let g=i.codePointAt(f+2)||32;if(i[f+1]==="2"&&g===102)throw new Deno.errors.InvalidData("must not include encoded / characters")}return decodeURIComponent(i)}function dF(o){let i=kv.resolve(o),f=o.charCodeAt(o.length-1);(f===D8||fd&&f===N8)&&i[i.length-1]!==kv.sep&&(i+="/");let g=new URL("file://");return i.includes("%")&&(i=i.replace(W8,"%25")),!fd&&i.includes("\\")&&(i=i.replace(z8,"%5C")),i.includes(`
29
- `)&&(i=i.replace(H8,"%0A")),i.includes("\r")&&(i=i.replace(q8,"%0D")),i.includes(" ")&&(i=i.replace(G8,"%09")),g.pathname=i,g}function e2(){if(Fv)return Mr;Fv=!0,Mr.fetch=g(zi.fetch)&&g(zi.ReadableStream),Mr.writableStream=g(zi.WritableStream),Mr.abortController=g(zi.AbortController);var o;function i(){if(o!==void 0)return o;if(zi.XMLHttpRequest){o=new zi.XMLHttpRequest;try{o.open("GET",zi.XDomainRequest?"/":"https://example.com")}catch{o=null}}else o=null;return o}l(i,"t"),e(i,"getXHR");function f(a){var n=i();if(!n)return!1;try{return n.responseType=a,n.responseType===a}catch{}return!1}l(f,"r"),e(f,"checkTypeSupport"),Mr.arraybuffer=Mr.fetch||f("arraybuffer"),Mr.msstream=!Mr.fetch&&f("ms-stream"),Mr.mozchunkedarraybuffer=!Mr.fetch&&f("moz-chunked-arraybuffer"),Mr.overrideMimeType=Mr.fetch||(i()?g(i().overrideMimeType):!1);function g(a){return typeof a=="function"}return l(g,"n"),e(g,"isFunction"),o=null,Mr}function t2(){return Iv||(Iv=!0,Bv=Yr.EventEmitter),Bv}function h8(){if(xv)return ih;xv=!0;function o(_,S){var T=Object.keys(_);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(_);S&&(k=k.filter(function(E){return Object.getOwnPropertyDescriptor(_,E).enumerable})),T.push.apply(T,k)}return T}l(o,"e"),e(o,"ownKeys");function i(_){for(var S=1;S<arguments.length;S++){var T=arguments[S]!=null?arguments[S]:{};S%2?o(Object(T),!0).forEach(function(k){f(_,k,T[k])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(T)):o(Object(T)).forEach(function(k){Object.defineProperty(_,k,Object.getOwnPropertyDescriptor(T,k))})}return _}l(i,"t"),e(i,"_objectSpread");function f(_,S,T){return S=r(S),S in _?Object.defineProperty(_,S,{value:T,enumerable:!0,configurable:!0,writable:!0}):_[S]=T,_}l(f,"r"),e(f,"_defineProperty");function g(_,S){if(!(_ instanceof S))throw new TypeError("Cannot call a class as a function")}l(g,"n"),e(g,"_classCallCheck");function a(_,S){for(var T=0;T<S.length;T++){var k=S[T];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(_,r(k.key),k)}}l(a,"a"),e(a,"_defineProperties");function n(_,S,T){return S&&a(_.prototype,S),Object.defineProperty(_,"prototype",{writable:!1}),_}l(n,"s"),e(n,"_createClass");function r(_){var S=u(_,"string");return typeof S=="symbol"?S:String(S)}l(r,"i"),e(r,"_toPropertyKey");function u(_,S){if(typeof _!="object"||_===null)return _;var T=_[Symbol.toPrimitive];if(T!==void 0){var k=T.call(_,S||"default");if(typeof k!="object")return k;throw new TypeError("@@toPrimitive must return a primitive value.")}return(S==="string"?String:Number)(_)}l(u,"f"),e(u,"_toPrimitive");var p=Ca(),c=p.Buffer,d=Xe,m=d.inspect,y=m&&m.custom||"inspect";function w(_,S,T){c.prototype.copy.call(_,S,T)}return l(w,"g"),e(w,"copyBuffer"),ih=function(){function _(){g(this,_),this.head=null,this.tail=null,this.length=0}return l(_,"v"),e(_,"BufferList"),n(_,[{key:"push",value:e(function(S){var T={data:S,next:null};this.length>0?this.tail.next=T:this.head=T,this.tail=T,++this.length},"push")},{key:"unshift",value:e(function(S){var T={data:S,next:this.head};this.length===0&&(this.tail=T),this.head=T,++this.length},"unshift")},{key:"shift",value:e(function(){if(this.length!==0){var S=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,S}},"shift")},{key:"clear",value:e(function(){this.head=this.tail=null,this.length=0},"clear")},{key:"join",value:e(function(S){if(this.length===0)return"";for(var T=this.head,k=""+T.data;T=T.next;)k+=S+T.data;return k},"join")},{key:"concat",value:e(function(S){if(this.length===0)return c.alloc(0);for(var T=c.allocUnsafe(S>>>0),k=this.head,E=0;k;)w(k.data,T,E),E+=k.data.length,k=k.next;return T},"concat")},{key:"consume",value:e(function(S,T){var k;return S<this.head.data.length?(k=this.head.data.slice(0,S),this.head.data=this.head.data.slice(S)):S===this.head.data.length?k=this.shift():k=T?this._getString(S):this._getBuffer(S),k},"consume")},{key:"first",value:e(function(){return this.head.data},"first")},{key:"_getString",value:e(function(S){var T=this.head,k=1,E=T.data;for(S-=E.length;T=T.next;){var j=T.data,A=S>j.length?j.length:S;if(A===j.length?E+=j:E+=j.slice(0,S),S-=A,S===0){A===j.length?(++k,T.next?this.head=T.next:this.head=this.tail=null):(this.head=T,T.data=j.slice(A));break}++k}return this.length-=k,E},"_getString")},{key:"_getBuffer",value:e(function(S){var T=c.allocUnsafe(S),k=this.head,E=1;for(k.data.copy(T),S-=k.data.length;k=k.next;){var j=k.data,A=S>j.length?j.length:S;if(j.copy(T,T.length-S,0,A),S-=A,S===0){A===j.length?(++E,k.next?this.head=k.next:this.head=this.tail=null):(this.head=k,k.data=j.slice(A));break}++E}return this.length-=E,T},"_getBuffer")},{key:y,value:e(function(S,T){return m(this,i(i({},T),{},{depth:0,customInspect:!1}))},"value")}]),_}(),ih}function r2(){if(jv)return oh;jv=!0;var o=Ei;function i(u,p){var c=this,d=this._readableState&&this._readableState.destroyed,m=this._writableState&&this._writableState.destroyed;return d||m?(p?p(u):u&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,o.nextTick(n,this,u)):o.nextTick(n,this,u)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(u||null,function(y){!p&&y?c._writableState?c._writableState.errorEmitted?o.nextTick(g,c):(c._writableState.errorEmitted=!0,o.nextTick(f,c,y)):o.nextTick(f,c,y):p?(o.nextTick(g,c),p(y)):o.nextTick(g,c)}),this)}l(i,"t"),e(i,"destroy");function f(u,p){n(u,p),g(u)}l(f,"r"),e(f,"emitErrorAndCloseNT");function g(u){u._writableState&&!u._writableState.emitClose||u._readableState&&!u._readableState.emitClose||u.emit("close")}l(g,"n"),e(g,"emitCloseNT");function a(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}l(a,"a"),e(a,"undestroy");function n(u,p){u.emit("error",p)}l(n,"s"),e(n,"emitErrorNT");function r(u,p){var c=u._readableState,d=u._writableState;c&&c.autoDestroy||d&&d.autoDestroy?u.destroy(p):u.emit("error",p)}return l(r,"i"),e(r,"errorOrDestroy"),oh={destroy:i,undestroy:a,errorOrDestroy:r},oh}function Pa(){if(Cv)return ah;Cv=!0;let o={};function i(r,u,p){var y;p||(p=Error);function c(w,_,S){return typeof u=="string"?u:u(w,_,S)}l(c,"c"),e(c,"getMessage");let d=(y=class extends p{constructor(_,S,T){super(c(_,S,T))}},l(y,"y"),y);e(d,"NodeError");let m=d;m.prototype.name=p.name,m.prototype.code=r,o[r]=m}l(i,"t"),e(i,"createErrorType");function f(r,u){if(Array.isArray(r)){let p=r.length;return r=r.map(c=>String(c)),p>2?`one of ${u} ${r.slice(0,p-1).join(", ")}, or `+r[p-1]:p===2?`one of ${u} ${r[0]} or ${r[1]}`:`of ${u} ${r[0]}`}else return`of ${u} ${String(r)}`}l(f,"r"),e(f,"oneOf");function g(r,u,p){return r.substr(0,u.length)===u}l(g,"n"),e(g,"startsWith");function a(r,u,p){return(p===void 0||p>r.length)&&(p=r.length),r.substring(p-u.length,p)===u}l(a,"a"),e(a,"endsWith");function n(r,u,p){return typeof p!="number"&&(p=0),p+u.length>r.length?!1:r.indexOf(u,p)!==-1}return l(n,"s"),e(n,"includes"),i("ERR_INVALID_OPT_VALUE",function(r,u){return'The value "'+u+'" is invalid for option "'+r+'"'},TypeError),i("ERR_INVALID_ARG_TYPE",function(r,u,p){let c;typeof u=="string"&&g(u,"not ")?(c="must not be",u=u.replace(/^not /,"")):c="must be";let d;if(a(r," argument"))d=`The ${r} ${c} ${f(u,"type")}`;else{let m=n(r,".")?"property":"argument";d=`The "${r}" ${m} ${c} ${f(u,"type")}`}return d+=`. Received type ${typeof p}`,d},TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",function(r){return"The "+r+" method is not implemented"}),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",function(r){return"Cannot call "+r+" after a stream was destroyed"}),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",function(r){return"Unknown encoding: "+r},TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),ah.codes=o,ah}function n2(){if(Pv)return sh;Pv=!0;var o=Pa().codes.ERR_INVALID_OPT_VALUE;function i(g,a,n){return g.highWaterMark!=null?g.highWaterMark:a?g[n]:null}l(i,"t"),e(i,"highWaterMarkFrom");function f(g,a,n,r){var u=i(a,r,n);if(u!=null){if(!(isFinite(u)&&Math.floor(u)===u)||u<0){var p=r?n:"highWaterMark";throw new o(p,u)}return Math.floor(u)}return g.objectMode?16:16*1024}return l(f,"r"),e(f,"getHighWaterMark"),sh={getHighWaterMark:f},sh}function i2(){if(Lv)return lh;Lv=!0;var o=Ei;lh=V;function i(Y){var H=this;this.next=null,this.entry=null,this.finish=function(){De(H,Y)}}l(i,"t"),e(i,"CorkedRequest");var f;V.WritableState=M;var g={deprecate:a8()},a=t2(),n=Ca().Buffer,r=(typeof Nv<"u"?Nv:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function u(Y){return n.from(Y)}l(u,"f"),e(u,"_uint8ArrayToBuffer");function p(Y){return n.isBuffer(Y)||Y instanceof r}l(p,"h"),e(p,"_isUint8Array");var c=r2(),d=n2(),m=d.getHighWaterMark,y=Pa().codes,w=y.ERR_INVALID_ARG_TYPE,_=y.ERR_METHOD_NOT_IMPLEMENTED,S=y.ERR_MULTIPLE_CALLBACK,T=y.ERR_STREAM_CANNOT_PIPE,k=y.ERR_STREAM_DESTROYED,E=y.ERR_STREAM_NULL_VALUES,j=y.ERR_STREAM_WRITE_AFTER_END,A=y.ERR_UNKNOWN_ENCODING,I=c.errorOrDestroy;Yi()(V,a);function U(){}l(U,"B"),e(U,"nop");function M(Y,H,Q){f=f||Oa(),Y=Y||{},typeof Q!="boolean"&&(Q=H instanceof f),this.objectMode=!!Y.objectMode,Q&&(this.objectMode=this.objectMode||!!Y.writableObjectMode),this.highWaterMark=m(this,Y,"writableHighWaterMark",Q),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var fe=Y.decodeStrings===!1;this.decodeStrings=!fe,this.defaultEncoding=Y.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ve){je(H,ve)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=Y.emitClose!==!1,this.autoDestroy=!!Y.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}l(M,"I"),e(M,"WritableState"),M.prototype.getBuffer=e(function(){for(var Y=this.bufferedRequest,H=[];Y;)H.push(Y),Y=Y.next;return H},"getBuffer"),function(){try{Object.defineProperty(M.prototype,"buffer",{get:g.deprecate(e(function(){return this.getBuffer()},"writableStateBufferGetter"),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var ee;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ee=Function.prototype[Symbol.hasInstance],Object.defineProperty(V,Symbol.hasInstance,{value:e(function(Y){return ee.call(this,Y)?!0:this!==V?!1:Y&&Y._writableState instanceof M},"value")})):ee=e(function(Y){return Y instanceof this},"realHasInstance2");function V(Y){f=f||Oa();var H=this instanceof f;if(!H&&!ee.call(V,this))return new V(Y);this._writableState=new M(Y,this,H),this.writable=!0,Y&&(typeof Y.write=="function"&&(this._write=Y.write),typeof Y.writev=="function"&&(this._writev=Y.writev),typeof Y.destroy=="function"&&(this._destroy=Y.destroy),typeof Y.final=="function"&&(this._final=Y.final)),a.call(this)}l(V,"L"),e(V,"Writable"),V.prototype.pipe=function(){I(this,new T)};function q(Y,H){var Q=new j;I(Y,Q),o.nextTick(H,Q)}l(q,"C"),e(q,"writeAfterEnd");function G(Y,H,Q,fe){var ve;return Q===null?ve=new E:typeof Q!="string"&&!H.objectMode&&(ve=new w("chunk",["string","Buffer"],Q)),ve?(I(Y,ve),o.nextTick(fe,ve),!1):!0}l(G,"j"),e(G,"validChunk"),V.prototype.write=function(Y,H,Q){var fe=this._writableState,ve=!1,N=!fe.objectMode&&p(Y);return N&&!n.isBuffer(Y)&&(Y=u(Y)),typeof H=="function"&&(Q=H,H=null),N?H="buffer":H||(H=fe.defaultEncoding),typeof Q!="function"&&(Q=U),fe.ending?q(this,Q):(N||G(this,fe,Y,Q))&&(fe.pendingcb++,ve=ae(this,fe,N,Y,H,Q)),ve},V.prototype.cork=function(){this._writableState.corked++},V.prototype.uncork=function(){var Y=this._writableState;Y.corked&&(Y.corked--,!Y.writing&&!Y.corked&&!Y.bufferProcessing&&Y.bufferedRequest&&J(this,Y))},V.prototype.setDefaultEncoding=e(function(Y){if(typeof Y=="string"&&(Y=Y.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Y+"").toLowerCase())>-1))throw new A(Y);return this._writableState.defaultEncoding=Y,this},"setDefaultEncoding"),Object.defineProperty(V.prototype,"writableBuffer",{enumerable:!1,get:e(function(){return this._writableState&&this._writableState.getBuffer()},"get2")});function re(Y,H,Q){return!Y.objectMode&&Y.decodeStrings!==!1&&typeof H=="string"&&(H=n.from(H,Q)),H}l(re,"q"),e(re,"decodeChunk"),Object.defineProperty(V.prototype,"writableHighWaterMark",{enumerable:!1,get:e(function(){return this._writableState.highWaterMark},"get2")});function ae(Y,H,Q,fe,ve,N){if(!Q){var x=re(H,fe,ve);fe!==x&&(Q=!0,ve="buffer",fe=x)}var D=H.objectMode?1:fe.length;H.length+=D;var z=H.length<H.highWaterMark;if(z||(H.needDrain=!0),H.writing||H.corked){var Ee=H.lastBufferedRequest;H.lastBufferedRequest={chunk:fe,encoding:ve,isBuf:Q,callback:N,next:null},Ee?Ee.next=H.lastBufferedRequest:H.bufferedRequest=H.lastBufferedRequest,H.bufferedRequestCount+=1}else de(Y,H,!1,D,fe,ve,N);return z}l(ae,"Z"),e(ae,"writeOrBuffer");function de(Y,H,Q,fe,ve,N,x){H.writelen=fe,H.writecb=x,H.writing=!0,H.sync=!0,H.destroyed?H.onwrite(new k("write")):Q?Y._writev(ve,H.onwrite):Y._write(ve,N,H.onwrite),H.sync=!1}l(de,"K"),e(de,"doWrite");function we(Y,H,Q,fe,ve){--H.pendingcb,Q?(o.nextTick(ve,fe),o.nextTick(ye,Y,H),Y._writableState.errorEmitted=!0,I(Y,fe)):(ve(fe),Y._writableState.errorEmitted=!0,I(Y,fe),ye(Y,H))}l(we,"se"),e(we,"onwriteError");function Ie(Y){Y.writing=!1,Y.writecb=null,Y.length-=Y.writelen,Y.writelen=0}l(Ie,"_e"),e(Ie,"onwriteStateUpdate");function je(Y,H){var Q=Y._writableState,fe=Q.sync,ve=Q.writecb;if(typeof ve!="function")throw new S;if(Ie(Q),H)we(Y,Q,fe,H,ve);else{var N=ue(Q)||Y.destroyed;!N&&!Q.corked&&!Q.bufferProcessing&&Q.bufferedRequest&&J(Y,Q),fe?o.nextTick(se,Y,Q,N,ve):se(Y,Q,N,ve)}}l(je,"pe"),e(je,"onwrite");function se(Y,H,Q,fe){Q||Te(Y,H),H.pendingcb--,fe(),ye(Y,H)}l(se,"Q"),e(se,"afterWrite");function Te(Y,H){H.length===0&&H.needDrain&&(H.needDrain=!1,Y.emit("drain"))}l(Te,"he"),e(Te,"onwriteDrain");function J(Y,H){H.bufferProcessing=!0;var Q=H.bufferedRequest;if(Y._writev&&Q&&Q.next){var fe=H.bufferedRequestCount,ve=new Array(fe),N=H.corkedRequestsFree;N.entry=Q;for(var x=0,D=!0;Q;)ve[x]=Q,Q.isBuf||(D=!1),Q=Q.next,x+=1;ve.allBuffers=D,de(Y,H,!0,H.length,ve,"",N.finish),H.pendingcb++,H.lastBufferedRequest=null,N.next?(H.corkedRequestsFree=N.next,N.next=null):H.corkedRequestsFree=new i(H),H.bufferedRequestCount=0}else{for(;Q;){var z=Q.chunk,Ee=Q.encoding,ke=Q.callback,be=H.objectMode?1:z.length;if(de(Y,H,!1,be,z,Ee,ke),Q=Q.next,H.bufferedRequestCount--,H.writing)break}Q===null&&(H.lastBufferedRequest=null)}H.bufferedRequest=Q,H.bufferProcessing=!1}l(J,"U"),e(J,"clearBuffer"),V.prototype._write=function(Y,H,Q){Q(new _("_write()"))},V.prototype._writev=null,V.prototype.end=function(Y,H,Q){var fe=this._writableState;return typeof Y=="function"?(Q=Y,Y=null,H=null):typeof H=="function"&&(Q=H,H=null),Y!=null&&this.write(Y,H),fe.corked&&(fe.corked=1,this.uncork()),fe.ending||Re(this,fe,Q),this},Object.defineProperty(V.prototype,"writableLength",{enumerable:!1,get:e(function(){return this._writableState.length},"get2")});function ue(Y){return Y.ending&&Y.length===0&&Y.bufferedRequest===null&&!Y.finished&&!Y.writing}l(ue,"J"),e(ue,"needFinish");function te(Y,H){Y._final(function(Q){H.pendingcb--,Q&&I(Y,Q),H.prefinished=!0,Y.emit("prefinish"),ye(Y,H)})}l(te,"z"),e(te,"callFinal");function X(Y,H){!H.prefinished&&!H.finalCalled&&(typeof Y._final=="function"&&!H.destroyed?(H.pendingcb++,H.finalCalled=!0,o.nextTick(te,Y,H)):(H.prefinished=!0,Y.emit("prefinish")))}l(X,"V"),e(X,"prefinish");function ye(Y,H){var Q=ue(H);if(Q&&(X(Y,H),H.pendingcb===0&&(H.finished=!0,Y.emit("finish"),H.autoDestroy))){var fe=Y._readableState;(!fe||fe.autoDestroy&&fe.endEmitted)&&Y.destroy()}return Q}l(ye,"G"),e(ye,"finishMaybe");function Re(Y,H,Q){H.ending=!0,ye(Y,H),Q&&(H.finished?o.nextTick(Q):Y.once("finish",Q)),H.ended=!0,Y.writable=!1}l(Re,"fe"),e(Re,"endWritable");function De(Y,H,Q){var fe=Y.entry;for(Y.entry=null;fe;){var ve=fe.callback;H.pendingcb--,ve(Q),fe=fe.next}H.corkedRequestsFree.next=Y}return l(De,"be"),e(De,"onCorkedFinish"),Object.defineProperty(V.prototype,"destroyed",{enumerable:!1,get:e(function(){return this._writableState===void 0?!1:this._writableState.destroyed},"get2"),set:e(function(Y){this._writableState&&(this._writableState.destroyed=Y)},"set")}),V.prototype.destroy=c.destroy,V.prototype._undestroy=c.undestroy,V.prototype._destroy=function(Y,H){H(Y)},lh}function Oa(){if(Dv)return fh;Dv=!0;var o=Ei,i=Object.keys||function(d){var m=[];for(var y in d)m.push(y);return m};fh=u;var f=o2(),g=i2();Yi()(u,f);for(var a=i(g.prototype),n=0;n<a.length;n++){var r=a[n];u.prototype[r]||(u.prototype[r]=g.prototype[r])}function u(d){if(!(this instanceof u))return new u(d);f.call(this,d),g.call(this,d),this.allowHalfOpen=!0,d&&(d.readable===!1&&(this.readable=!1),d.writable===!1&&(this.writable=!1),d.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",p)))}l(u,"f"),e(u,"Duplex"),Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:e(function(){return this._writableState.highWaterMark},"get2")}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:e(function(){return this._writableState&&this._writableState.getBuffer()},"get2")}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:e(function(){return this._writableState.length},"get2")});function p(){this._writableState.ended||o.nextTick(c,this)}l(p,"h"),e(p,"onend");function c(d){d.end()}return l(c,"c"),e(c,"onEndNT"),Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:e(function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},"get2"),set:e(function(d){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=d,this._writableState.destroyed=d)},"set")}),fh}function Nd(){if(Uv)return uh;Uv=!0;var o=Pa().codes.ERR_STREAM_PREMATURE_CLOSE;function i(n){var r=!1;return function(){if(!r){r=!0;for(var u=arguments.length,p=new Array(u),c=0;c<u;c++)p[c]=arguments[c];n.apply(this,p)}}}l(i,"t"),e(i,"once2");function f(){}l(f,"r"),e(f,"noop2");function g(n){return n.setHeader&&typeof n.abort=="function"}l(g,"n"),e(g,"isRequest");function a(n,r,u){if(typeof r=="function")return a(n,null,r);r||(r={}),u=i(u||f);var p=r.readable||r.readable!==!1&&n.readable,c=r.writable||r.writable!==!1&&n.writable,d=e(function(){n.writable||y()},"onlegacyfinish2"),m=n._writableState&&n._writableState.finished,y=e(function(){c=!1,m=!0,p||u.call(n)},"onfinish2"),w=n._readableState&&n._readableState.endEmitted,_=e(function(){p=!1,w=!0,c||u.call(n)},"onend2"),S=e(function(E){u.call(n,E)},"onerror2"),T=e(function(){var E;if(p&&!w)return(!n._readableState||!n._readableState.ended)&&(E=new o),u.call(n,E);if(c&&!m)return(!n._writableState||!n._writableState.ended)&&(E=new o),u.call(n,E)},"onclose2"),k=e(function(){n.req.on("finish",y)},"onrequest2");return g(n)?(n.on("complete",y),n.on("abort",T),n.req?k():n.on("request",k)):c&&!n._writableState&&(n.on("end",d),n.on("close",d)),n.on("end",_),n.on("finish",y),r.error!==!1&&n.on("error",S),n.on("close",T),function(){n.removeListener("complete",y),n.removeListener("abort",T),n.removeListener("request",k),n.req&&n.req.removeListener("finish",y),n.removeListener("end",d),n.removeListener("close",d),n.removeListener("finish",y),n.removeListener("end",_),n.removeListener("error",S),n.removeListener("close",T)}}return l(a,"a"),e(a,"eos"),uh=a,uh}function d8(){if(Mv)return ch;Mv=!0;var o=Ei,i;function f(A,I,U){return I=g(I),I in A?Object.defineProperty(A,I,{value:U,enumerable:!0,configurable:!0,writable:!0}):A[I]=U,A}l(f,"r"),e(f,"_defineProperty");function g(A){var I=a(A,"string");return typeof I=="symbol"?I:String(I)}l(g,"n"),e(g,"_toPropertyKey");function a(A,I){if(typeof A!="object"||A===null)return A;var U=A[Symbol.toPrimitive];if(U!==void 0){var M=U.call(A,I||"default");if(typeof M!="object")return M;throw new TypeError("@@toPrimitive must return a primitive value.")}return(I==="string"?String:Number)(A)}l(a,"a"),e(a,"_toPrimitive");var n=Nd(),r=Symbol("lastResolve"),u=Symbol("lastReject"),p=Symbol("error"),c=Symbol("ended"),d=Symbol("lastPromise"),m=Symbol("handlePromise"),y=Symbol("stream");function w(A,I){return{value:A,done:I}}l(w,"g"),e(w,"createIterResult2");function _(A){var I=A[r];if(I!==null){var U=A[y].read();U!==null&&(A[d]=null,A[r]=null,A[u]=null,I(w(U,!1)))}}l(_,"v"),e(_,"readAndResolve");function S(A){o.nextTick(_,A)}l(S,"_"),e(S,"onReadable");function T(A,I){return function(U,M){A.then(function(){if(I[c]){U(w(void 0,!0));return}I[m](U,M)},M)}}l(T,"b"),e(T,"wrapForNext");var k=Object.getPrototypeOf(function(){}),E=Object.setPrototypeOf((i={get stream(){return this[y]},next:e(function(){var A=this,I=this[p];if(I!==null)return Promise.reject(I);if(this[c])return Promise.resolve(w(void 0,!0));if(this[y].destroyed)return new Promise(function(V,q){o.nextTick(function(){A[p]?q(A[p]):V(w(void 0,!0))})});var U=this[d],M;if(U)M=new Promise(T(U,this));else{var ee=this[y].read();if(ee!==null)return Promise.resolve(w(ee,!1));M=new Promise(this[m])}return this[d]=M,M},"next")},f(i,Symbol.asyncIterator,function(){return this}),f(i,"return",e(function(){var A=this;return new Promise(function(I,U){A[y].destroy(null,function(M){if(M){U(M);return}I(w(void 0,!0))})})},"_return")),i),k),j=e(function(A){var I,U=Object.create(E,(I={},f(I,y,{value:A,writable:!0}),f(I,r,{value:null,writable:!0}),f(I,u,{value:null,writable:!0}),f(I,p,{value:null,writable:!0}),f(I,c,{value:A._readableState.endEmitted,writable:!0}),f(I,m,{value:e(function(M,ee){var V=U[y].read();V?(U[d]=null,U[r]=null,U[u]=null,M(w(V,!1))):(U[r]=M,U[u]=ee)},"value"),writable:!0}),I));return U[d]=null,n(A,function(M){if(M&&M.code!=="ERR_STREAM_PREMATURE_CLOSE"){var ee=U[u];ee!==null&&(U[d]=null,U[r]=null,U[u]=null,ee(M)),U[p]=M;return}var V=U[r];V!==null&&(U[d]=null,U[r]=null,U[u]=null,V(w(void 0,!0))),U[c]=!0}),A.on("readable",S.bind(null,U)),U},"createReadableStreamAsyncIterator2");return ch=j,ch}function p8(){return Wv||(Wv=!0,$v=e(function(){throw new Error("Readable.from is not available in the browser")},"exports$b")),$v}function o2(){if(zv)return hh;zv=!0;var o=Ei;hh=q;var i;q.ReadableState=V,Yr.EventEmitter;var f=e(function(N,x){return N.listeners(x).length},"EElistenerCount2"),g=t2(),a=Ca().Buffer,n=(typeof Hv<"u"?Hv:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function r(N){return a.from(N)}l(r,"i"),e(r,"_uint8ArrayToBuffer");function u(N){return a.isBuffer(N)||N instanceof n}l(u,"f"),e(u,"_isUint8Array");var p=Xe,c;p&&p.debuglog?c=p.debuglog("stream"):c=e(function(){},"debug2");var d=h8(),m=r2(),y=n2(),w=y.getHighWaterMark,_=Pa().codes,S=_.ERR_INVALID_ARG_TYPE,T=_.ERR_STREAM_PUSH_AFTER_EOF,k=_.ERR_METHOD_NOT_IMPLEMENTED,E=_.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,j,A,I;Yi()(q,g);var U=m.errorOrDestroy,M=["error","close","destroy","pause","resume"];function ee(N,x,D){if(typeof N.prependListener=="function")return N.prependListener(x,D);!N._events||!N._events[x]?N.on(x,D):Array.isArray(N._events[x])?N._events[x].unshift(D):N._events[x]=[D,N._events[x]]}l(ee,"D"),e(ee,"prependListener2");function V(N,x,D){i=i||Oa(),N=N||{},typeof D!="boolean"&&(D=x instanceof i),this.objectMode=!!N.objectMode,D&&(this.objectMode=this.objectMode||!!N.readableObjectMode),this.highWaterMark=w(this,N,"readableHighWaterMark",D),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=N.emitClose!==!1,this.autoDestroy=!!N.autoDestroy,this.destroyed=!1,this.defaultEncoding=N.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,N.encoding&&(j||(j=rf.StringDecoder),this.decoder=new j(N.encoding),this.encoding=N.encoding)}l(V,"L"),e(V,"ReadableState");function q(N){if(i=i||Oa(),!(this instanceof q))return new q(N);var x=this instanceof i;this._readableState=new V(N,this,x),this.readable=!0,N&&(typeof N.read=="function"&&(this._read=N.read),typeof N.destroy=="function"&&(this._destroy=N.destroy)),g.call(this)}l(q,"C"),e(q,"Readable"),Object.defineProperty(q.prototype,"destroyed",{enumerable:!1,get:e(function(){return this._readableState===void 0?!1:this._readableState.destroyed},"get2"),set:e(function(N){this._readableState&&(this._readableState.destroyed=N)},"set")}),q.prototype.destroy=m.destroy,q.prototype._undestroy=m.undestroy,q.prototype._destroy=function(N,x){x(N)},q.prototype.push=function(N,x){var D=this._readableState,z;return D.objectMode?z=!0:typeof N=="string"&&(x=x||D.defaultEncoding,x!==D.encoding&&(N=a.from(N,x),x=""),z=!0),G(this,N,x,!1,z)},q.prototype.unshift=function(N){return G(this,N,null,!0,!1)};function G(N,x,D,z,Ee){c("readableAddChunk",x);var ke=N._readableState;if(x===null)ke.reading=!1,je(N,ke);else{var be;if(Ee||(be=ae(ke,x)),be)U(N,be);else if(ke.objectMode||x&&x.length>0)if(typeof x!="string"&&!ke.objectMode&&Object.getPrototypeOf(x)!==a.prototype&&(x=r(x)),z)ke.endEmitted?U(N,new E):re(N,ke,x,!0);else if(ke.ended)U(N,new T);else{if(ke.destroyed)return!1;ke.reading=!1,ke.decoder&&!D?(x=ke.decoder.write(x),ke.objectMode||x.length!==0?re(N,ke,x,!1):J(N,ke)):re(N,ke,x,!1)}else z||(ke.reading=!1,J(N,ke))}return!ke.ended&&(ke.length<ke.highWaterMark||ke.length===0)}l(G,"j"),e(G,"readableAddChunk");function re(N,x,D,z){x.flowing&&x.length===0&&!x.sync?(x.awaitDrain=0,N.emit("data",D)):(x.length+=x.objectMode?1:D.length,z?x.buffer.unshift(D):x.buffer.push(D),x.needReadable&&se(N)),J(N,x)}l(re,"q"),e(re,"addChunk");function ae(N,x){var D;return!u(x)&&typeof x!="string"&&x!==void 0&&!N.objectMode&&(D=new S("chunk",["string","Buffer","Uint8Array"],x)),D}l(ae,"Z"),e(ae,"chunkInvalid"),q.prototype.isPaused=function(){return this._readableState.flowing===!1},q.prototype.setEncoding=function(N){j||(j=rf.StringDecoder);var x=new j(N);this._readableState.decoder=x,this._readableState.encoding=this._readableState.decoder.encoding;for(var D=this._readableState.buffer.head,z="";D!==null;)z+=x.write(D.data),D=D.next;return this._readableState.buffer.clear(),z!==""&&this._readableState.buffer.push(z),this._readableState.length=z.length,this};var de=1073741824;function we(N){return N>=de?N=de:(N--,N|=N>>>1,N|=N>>>2,N|=N>>>4,N|=N>>>8,N|=N>>>16,N++),N}l(we,"se"),e(we,"computeNewHighWaterMark");function Ie(N,x){return N<=0||x.length===0&&x.ended?0:x.objectMode?1:N!==N?x.flowing&&x.length?x.buffer.head.data.length:x.length:(N>x.highWaterMark&&(x.highWaterMark=we(N)),N<=x.length?N:x.ended?x.length:(x.needReadable=!0,0))}l(Ie,"_e"),e(Ie,"howMuchToRead"),q.prototype.read=function(N){c("read",N),N=parseInt(N,10);var x=this._readableState,D=N;if(N!==0&&(x.emittedReadable=!1),N===0&&x.needReadable&&((x.highWaterMark!==0?x.length>=x.highWaterMark:x.length>0)||x.ended))return c("read: emitReadable",x.length,x.ended),x.length===0&&x.ended?Q(this):se(this),null;if(N=Ie(N,x),N===0&&x.ended)return x.length===0&&Q(this),null;var z=x.needReadable;c("need readable",z),(x.length===0||x.length-N<x.highWaterMark)&&(z=!0,c("length less than watermark",z)),x.ended||x.reading?(z=!1,c("reading or ended",z)):z&&(c("do read"),x.reading=!0,x.sync=!0,x.length===0&&(x.needReadable=!0),this._read(x.highWaterMark),x.sync=!1,x.reading||(N=Ie(D,x)));var Ee;return N>0?Ee=H(N,x):Ee=null,Ee===null?(x.needReadable=x.length<=x.highWaterMark,N=0):(x.length-=N,x.awaitDrain=0),x.length===0&&(x.ended||(x.needReadable=!0),D!==N&&x.ended&&Q(this)),Ee!==null&&this.emit("data",Ee),Ee};function je(N,x){if(c("onEofChunk"),!x.ended){if(x.decoder){var D=x.decoder.end();D&&D.length&&(x.buffer.push(D),x.length+=x.objectMode?1:D.length)}x.ended=!0,x.sync?se(N):(x.needReadable=!1,x.emittedReadable||(x.emittedReadable=!0,Te(N)))}}l(je,"pe"),e(je,"onEofChunk");function se(N){var x=N._readableState;c("emitReadable",x.needReadable,x.emittedReadable),x.needReadable=!1,x.emittedReadable||(c("emitReadable",x.flowing),x.emittedReadable=!0,o.nextTick(Te,N))}l(se,"Q"),e(se,"emitReadable");function Te(N){var x=N._readableState;c("emitReadable_",x.destroyed,x.length,x.ended),!x.destroyed&&(x.length||x.ended)&&(N.emit("readable"),x.emittedReadable=!1),x.needReadable=!x.flowing&&!x.ended&&x.length<=x.highWaterMark,Y(N)}l(Te,"he"),e(Te,"emitReadable_");function J(N,x){x.readingMore||(x.readingMore=!0,o.nextTick(ue,N,x))}l(J,"U"),e(J,"maybeReadMore");function ue(N,x){for(;!x.reading&&!x.ended&&(x.length<x.highWaterMark||x.flowing&&x.length===0);){var D=x.length;if(c("maybeReadMore read 0"),N.read(0),D===x.length)break}x.readingMore=!1}l(ue,"J"),e(ue,"maybeReadMore_"),q.prototype._read=function(N){U(this,new k("_read()"))},q.prototype.pipe=function(N,x){var D=this,z=this._readableState;switch(z.pipesCount){case 0:z.pipes=N;break;case 1:z.pipes=[z.pipes,N];break;default:z.pipes.push(N);break}z.pipesCount+=1,c("pipe count=%d opts=%j",z.pipesCount,x);var Ee=(!x||x.end!==!1)&&N!==o.stdout&&N!==o.stderr,ke=Ee?ge:s;z.endEmitted?o.nextTick(ke):D.once("end",ke),N.on("unpipe",be);function be(h,v){c("onunpipe"),h===D&&v&&v.hasUnpiped===!1&&(v.hasUnpiped=!0,Oe())}l(be,"ee"),e(be,"onunpipe");function ge(){c("onend"),N.end()}l(ge,"ie"),e(ge,"onend");var Ne=te(D);N.on("drain",Ne);var xe=!1;function Oe(){c("cleanup"),N.removeListener("close",Ke),N.removeListener("finish",t),N.removeListener("drain",Ne),N.removeListener("error",$e),N.removeListener("unpipe",be),D.removeListener("end",ge),D.removeListener("end",s),D.removeListener("data",Pe),xe=!0,z.awaitDrain&&(!N._writableState||N._writableState.needDrain)&&Ne()}l(Oe,"ve"),e(Oe,"cleanup"),D.on("data",Pe);function Pe(h){c("ondata");var v=N.write(h);c("dest.write",v),v===!1&&((z.pipesCount===1&&z.pipes===N||z.pipesCount>1&&ve(z.pipes,N)!==-1)&&!xe&&(c("false write response, pause",z.awaitDrain),z.awaitDrain++),D.pause())}l(Pe,"Me"),e(Pe,"ondata");function $e(h){c("onerror",h),s(),N.removeListener("error",$e),f(N,"error")===0&&U(N,h)}l($e,"Be"),e($e,"onerror"),ee(N,"error",$e);function Ke(){N.removeListener("finish",t),s()}l(Ke,"Xe"),e(Ke,"onclose"),N.once("close",Ke);function t(){c("onfinish"),N.removeListener("close",Ke),s()}l(t,"p"),e(t,"onfinish"),N.once("finish",t);function s(){c("unpipe"),D.unpipe(N)}return l(s,"l"),e(s,"unpipe"),N.emit("pipe",D),z.flowing||(c("pipe resume"),D.resume()),N};function te(N){return e(function(){var x=N._readableState;c("pipeOnDrain",x.awaitDrain),x.awaitDrain&&x.awaitDrain--,x.awaitDrain===0&&f(N,"data")&&(x.flowing=!0,Y(N))},"pipeOnDrainFunctionResult")}l(te,"z"),e(te,"pipeOnDrain"),q.prototype.unpipe=function(N){var x=this._readableState,D={hasUnpiped:!1};if(x.pipesCount===0)return this;if(x.pipesCount===1)return N&&N!==x.pipes?this:(N||(N=x.pipes),x.pipes=null,x.pipesCount=0,x.flowing=!1,N&&N.emit("unpipe",this,D),this);if(!N){var z=x.pipes,Ee=x.pipesCount;x.pipes=null,x.pipesCount=0,x.flowing=!1;for(var ke=0;ke<Ee;ke++)z[ke].emit("unpipe",this,{hasUnpiped:!1});return this}var be=ve(x.pipes,N);return be===-1?this:(x.pipes.splice(be,1),x.pipesCount-=1,x.pipesCount===1&&(x.pipes=x.pipes[0]),N.emit("unpipe",this,D),this)},q.prototype.on=function(N,x){var D=g.prototype.on.call(this,N,x),z=this._readableState;return N==="data"?(z.readableListening=this.listenerCount("readable")>0,z.flowing!==!1&&this.resume()):N==="readable"&&!z.endEmitted&&!z.readableListening&&(z.readableListening=z.needReadable=!0,z.flowing=!1,z.emittedReadable=!1,c("on readable",z.length,z.reading),z.length?se(this):z.reading||o.nextTick(ye,this)),D},q.prototype.addListener=q.prototype.on,q.prototype.removeListener=function(N,x){var D=g.prototype.removeListener.call(this,N,x);return N==="readable"&&o.nextTick(X,this),D},q.prototype.removeAllListeners=function(N){var x=g.prototype.removeAllListeners.apply(this,arguments);return(N==="readable"||N===void 0)&&o.nextTick(X,this),x};function X(N){var x=N._readableState;x.readableListening=N.listenerCount("readable")>0,x.resumeScheduled&&!x.paused?x.flowing=!0:N.listenerCount("data")>0&&N.resume()}l(X,"V"),e(X,"updateReadableListening");function ye(N){c("readable nexttick read 0"),N.read(0)}l(ye,"G"),e(ye,"nReadingNextTick"),q.prototype.resume=function(){var N=this._readableState;return N.flowing||(c("resume"),N.flowing=!N.readableListening,Re(this,N)),N.paused=!1,this};function Re(N,x){x.resumeScheduled||(x.resumeScheduled=!0,o.nextTick(De,N,x))}l(Re,"fe"),e(Re,"resume");function De(N,x){c("resume",x.reading),x.reading||N.read(0),x.resumeScheduled=!1,N.emit("resume"),Y(N),x.flowing&&!x.reading&&N.read(0)}l(De,"be"),e(De,"resume_"),q.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Y(N){var x=N._readableState;for(c("flow",x.flowing);x.flowing&&N.read()!==null;);}l(Y,"N"),e(Y,"flow"),q.prototype.wrap=function(N){var x=this,D=this._readableState,z=!1;N.on("end",function(){if(c("wrapped end"),D.decoder&&!D.ended){var be=D.decoder.end();be&&be.length&&x.push(be)}x.push(null)}),N.on("data",function(be){if(c("wrapped data"),D.decoder&&(be=D.decoder.write(be)),!(D.objectMode&&be==null)&&!(!D.objectMode&&(!be||!be.length))){var ge=x.push(be);ge||(z=!0,N.pause())}});for(var Ee in N)this[Ee]===void 0&&typeof N[Ee]=="function"&&(this[Ee]=e(function(be){return e(function(){return N[be].apply(N,arguments)},"methodWrapReturnFunction")},"methodWrap")(Ee));for(var ke=0;ke<M.length;ke++)N.on(M[ke],this.emit.bind(this,M[ke]));return this._read=function(be){c("wrapped _read",be),z&&(z=!1,N.resume())},this},typeof Symbol=="function"&&(q.prototype[Symbol.asyncIterator]=function(){return A===void 0&&(A=d8()),A(this)}),Object.defineProperty(q.prototype,"readableHighWaterMark",{enumerable:!1,get:e(function(){return this._readableState.highWaterMark},"get2")}),Object.defineProperty(q.prototype,"readableBuffer",{enumerable:!1,get:e(function(){return this._readableState&&this._readableState.buffer},"get2")}),Object.defineProperty(q.prototype,"readableFlowing",{enumerable:!1,get:e(function(){return this._readableState.flowing},"get2"),set:e(function(N){this._readableState&&(this._readableState.flowing=N)},"set")}),q._fromList=H,Object.defineProperty(q.prototype,"readableLength",{enumerable:!1,get:e(function(){return this._readableState.length},"get2")});function H(N,x){if(x.length===0)return null;var D;return x.objectMode?D=x.buffer.shift():!N||N>=x.length?(x.decoder?D=x.buffer.join(""):x.buffer.length===1?D=x.buffer.first():D=x.buffer.concat(x.length),x.buffer.clear()):D=x.buffer.consume(N,x.decoder),D}l(H,"$"),e(H,"fromList");function Q(N){var x=N._readableState;c("endReadable",x.endEmitted),x.endEmitted||(x.ended=!0,o.nextTick(fe,x,N))}l(Q,"H"),e(Q,"endReadable");function fe(N,x){if(c("endReadableNT",N.endEmitted,N.length),!N.endEmitted&&N.length===0&&(N.endEmitted=!0,x.readable=!1,x.emit("end"),N.autoDestroy)){var D=x._writableState;(!D||D.autoDestroy&&D.finished)&&x.destroy()}}l(fe,"te"),e(fe,"endReadableNT"),typeof Symbol=="function"&&(q.from=function(N,x){return I===void 0&&(I=p8()),I(q,N,x)});function ve(N,x){for(var D=0,z=N.length;D<z;D++)if(N[D]===x)return D;return-1}return l(ve,"oe"),e(ve,"indexOf"),hh}function a2(){if(qv)return dh;qv=!0,dh=u;var o=Pa().codes,i=o.ERR_METHOD_NOT_IMPLEMENTED,f=o.ERR_MULTIPLE_CALLBACK,g=o.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=o.ERR_TRANSFORM_WITH_LENGTH_0,n=Oa();Yi()(u,n);function r(d,m){var y=this._transformState;y.transforming=!1;var w=y.writecb;if(w===null)return this.emit("error",new f);y.writechunk=null,y.writecb=null,m!=null&&this.push(m),w(d);var _=this._readableState;_.reading=!1,(_.needReadable||_.length<_.highWaterMark)&&this._read(_.highWaterMark)}l(r,"i"),e(r,"afterTransform");function u(d){if(!(this instanceof u))return new u(d);n.call(this,d),this._transformState={afterTransform:r.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,d&&(typeof d.transform=="function"&&(this._transform=d.transform),typeof d.flush=="function"&&(this._flush=d.flush)),this.on("prefinish",p)}l(u,"f"),e(u,"Transform");function p(){var d=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(m,y){c(d,m,y)}):c(this,null,null)}l(p,"h"),e(p,"prefinish"),u.prototype.push=function(d,m){return this._transformState.needTransform=!1,n.prototype.push.call(this,d,m)},u.prototype._transform=function(d,m,y){y(new i("_transform()"))},u.prototype._write=function(d,m,y){var w=this._transformState;if(w.writecb=y,w.writechunk=d,w.writeencoding=m,!w.transforming){var _=this._readableState;(w.needTransform||_.needReadable||_.length<_.highWaterMark)&&this._read(_.highWaterMark)}},u.prototype._read=function(d){var m=this._transformState;m.writechunk!==null&&!m.transforming?(m.transforming=!0,this._transform(m.writechunk,m.writeencoding,m.afterTransform)):m.needTransform=!0},u.prototype._destroy=function(d,m){n.prototype._destroy.call(this,d,function(y){m(y)})};function c(d,m,y){if(m)return d.emit("error",m);if(y!=null&&d.push(y),d._writableState.length)throw new a;if(d._transformState.transforming)throw new g;return d.push(null)}return l(c,"c"),e(c,"done"),dh}function g8(){if(Gv)return ph;Gv=!0,ph=i;var o=a2();Yi()(i,o);function i(f){if(!(this instanceof i))return new i(f);o.call(this,f)}return l(i,"t"),e(i,"PassThrough"),i.prototype._transform=function(f,g,a){a(null,f)},ph}function y8(){if(Vv)return gh;Vv=!0;var o;function i(y){var w=!1;return function(){w||(w=!0,y.apply(void 0,arguments))}}l(i,"t"),e(i,"once2");var f=Pa().codes,g=f.ERR_MISSING_ARGS,a=f.ERR_STREAM_DESTROYED;function n(y){if(y)throw y}l(n,"s"),e(n,"noop2");function r(y){return y.setHeader&&typeof y.abort=="function"}l(r,"i"),e(r,"isRequest");function u(y,w,_,S){S=i(S);var T=!1;y.on("close",function(){T=!0}),o===void 0&&(o=Nd()),o(y,{readable:w,writable:_},function(E){if(E)return S(E);T=!0,S()});var k=!1;return function(E){if(!T&&!k){if(k=!0,r(y))return y.abort();if(typeof y.destroy=="function")return y.destroy();S(E||new a("pipe"))}}}l(u,"f"),e(u,"destroyer");function p(y){y()}l(p,"h"),e(p,"call");function c(y,w){return y.pipe(w)}l(c,"c"),e(c,"pipe");function d(y){return!y.length||typeof y[y.length-1]!="function"?n:y.pop()}l(d,"d"),e(d,"popCallback");function m(){for(var y=arguments.length,w=new Array(y),_=0;_<y;_++)w[_]=arguments[_];var S=d(w);if(Array.isArray(w[0])&&(w=w[0]),w.length<2)throw new g("streams");var T,k=w.map(function(E,j){var A=j<w.length-1,I=j>0;return u(E,A,I,function(U){T||(T=U),U&&k.forEach(p),!A&&(k.forEach(p),S(T))})});return w.reduce(c)}return l(m,"y"),e(m,"pipeline"),gh=m,gh}function s2(){return Kv||(Kv=!0,$r=$r=o2(),$r.Stream=$r,$r.Readable=$r,$r.Writable=i2(),$r.Duplex=Oa(),$r.Transform=a2(),$r.PassThrough=g8(),$r.finished=Nd(),$r.pipeline=y8()),$r}function l2(){if(Jv)return Nl;Jv=!0;var o=Ca().Buffer,i=Ei,f=e2(),g=Yi(),a=s2(),n=Nl.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},r=Nl.IncomingMessage=function(u,p,c,d){var m=this||Dl;if(a.Readable.call(m),m._mode=c,m.headers={},m.rawHeaders=[],m.trailers={},m.rawTrailers=[],m.on("end",function(){i.nextTick(function(){m.emit("close")})}),c==="fetch"){let k=e(function(){w.read().then(function(E){if(!m._destroyed){if(d(E.done),E.done){m.push(null);return}m.push(o.from(E.value)),k()}}).catch(function(E){d(!0),m._destroyed||m.emit("error",E)})},"read");if(m._fetchResponse=p,m.url=p.url,m.statusCode=p.status,m.statusMessage=p.statusText,p.headers.forEach(function(E,j){m.headers[j.toLowerCase()]=E,m.rawHeaders.push(j,E)}),f.writableStream){var y=new WritableStream({write:e(function(E){return d(!1),new Promise(function(j,A){m._destroyed?A():m.push(o.from(E))?j():m._resumeFetch=j})},"write"),close:e(function(){d(!0),m._destroyed||m.push(null)},"close"),abort:e(function(E){d(!0),m._destroyed||m.emit("error",E)},"abort")});try{p.body.pipeTo(y).catch(function(E){d(!0),m._destroyed||m.emit("error",E)});return}catch{}}var w=p.body.getReader();k()}else{m._xhr=u,m._pos=0,m.url=u.responseURL,m.statusCode=u.status,m.statusMessage=u.statusText;var _=u.getAllResponseHeaders().split(/\r?\n/);if(_.forEach(function(k){var E=k.match(/^([^:]+):\s*(.*)/);if(E){var j=E[1].toLowerCase();j==="set-cookie"?(m.headers[j]===void 0&&(m.headers[j]=[]),m.headers[j].push(E[2])):m.headers[j]!==void 0?m.headers[j]+=", "+E[2]:m.headers[j]=E[2],m.rawHeaders.push(E[1],E[2])}}),m._charset="x-user-defined",!f.overrideMimeType){var S=m.rawHeaders["mime-type"];if(S){var T=S.match(/;\s*charset=([^;])(;|$)/);T&&(m._charset=T[1].toLowerCase())}m._charset||(m._charset="utf-8")}}};return g(r,a.Readable),r.prototype._read=function(){var u=this||Dl,p=u._resumeFetch;p&&(u._resumeFetch=null,p())},r.prototype._onXHRProgress=function(u){var p=this||Dl,c=p._xhr,d=null;switch(p._mode){case"text":if(d=c.responseText,d.length>p._pos){var m=d.substr(p._pos);if(p._charset==="x-user-defined"){for(var y=o.alloc(m.length),w=0;w<m.length;w++)y[w]=m.charCodeAt(w)&255;p.push(y)}else p.push(m,p._charset);p._pos=d.length}break;case"arraybuffer":if(c.readyState!==n.DONE||!c.response)break;d=c.response,p.push(o.from(new Uint8Array(d)));break;case"moz-chunked-arraybuffer":if(d=c.response,c.readyState!==n.LOADING||!d)break;p.push(o.from(new Uint8Array(d)));break;case"ms-stream":if(d=c.response,c.readyState!==n.LOADING)break;var _=new Dl.MSStreamReader;_.onprogress=function(){_.result.byteLength>p._pos&&(p.push(o.from(new Uint8Array(_.result.slice(p._pos)))),p._pos=_.result.byteLength)},_.onload=function(){u(!0),p.push(null)},_.readAsArrayBuffer(d);break}p._xhr.readyState===n.DONE&&p._mode!=="ms-stream"&&(u(!0),p.push(null))},Nl}function m8(){if(Yv)return yh;Yv=!0;var o=Ca().Buffer,i=Ei,f=e2(),g=Yi(),a=l2(),n=s2(),r=a.IncomingMessage,u=a.readyStates;function p(y,w){return f.fetch&&w?"fetch":f.mozchunkedarraybuffer?"moz-chunked-arraybuffer":f.msstream?"ms-stream":f.arraybuffer&&y?"arraybuffer":"text"}l(p,"h"),e(p,"decideMode");var c=yh=e(function(y){var w=this||ur;n.Writable.call(w),w._opts=y,w._body=[],w._headers={},y.auth&&w.setHeader("Authorization","Basic "+o.from(y.auth).toString("base64")),Object.keys(y.headers).forEach(function(T){w.setHeader(T,y.headers[T])});var _,S=!0;if(y.mode==="disable-fetch"||"requestTimeout"in y&&!f.abortController)S=!1,_=!0;else if(y.mode==="prefer-streaming")_=!1;else if(y.mode==="allow-wrong-content-type")_=!f.overrideMimeType;else if(!y.mode||y.mode==="default"||y.mode==="prefer-fast")_=!0;else throw new Error("Invalid value for opts.mode");w._mode=p(_,S),w._fetchTimer=null,w._socketTimeout=null,w._socketTimer=null,w.on("finish",function(){w._onFinish()})},"exports$4");g(c,n.Writable),c.prototype.setHeader=function(y,w){var _=this||ur,S=y.toLowerCase();m.indexOf(S)===-1&&(_._headers[S]={name:y,value:w})},c.prototype.getHeader=function(y){var w=(this||ur)._headers[y.toLowerCase()];return w?w.value:null},c.prototype.removeHeader=function(y){var w=this||ur;delete w._headers[y.toLowerCase()]},c.prototype._onFinish=function(){var y=this||ur;if(!y._destroyed){var w=y._opts;"timeout"in w&&w.timeout!==0&&y.setTimeout(w.timeout);var _=y._headers,S=null;w.method!=="GET"&&w.method!=="HEAD"&&(S=new Blob(y._body,{type:(_["content-type"]||{}).value||""}));var T=[];if(Object.keys(_).forEach(function(A){var I=_[A].name,U=_[A].value;Array.isArray(U)?U.forEach(function(M){T.push([I,M])}):T.push([I,U])}),y._mode==="fetch"){var k=null;if(f.abortController){var E=new AbortController;k=E.signal,y._fetchAbortController=E,"requestTimeout"in w&&w.requestTimeout!==0&&(y._fetchTimer=ur.setTimeout(function(){y.emit("requestTimeout"),y._fetchAbortController&&y._fetchAbortController.abort()},w.requestTimeout))}ur.fetch(y._opts.url,{method:y._opts.method,headers:T,body:S||void 0,mode:"cors",credentials:w.withCredentials?"include":"same-origin",signal:k}).then(function(A){y._fetchResponse=A,y._resetTimers(!1),y._connect()},function(A){y._resetTimers(!0),y._destroyed||y.emit("error",A)})}else{var j=y._xhr=new ur.XMLHttpRequest;try{j.open(y._opts.method,y._opts.url,!0)}catch(A){i.nextTick(function(){y.emit("error",A)});return}"responseType"in j&&(j.responseType=y._mode),"withCredentials"in j&&(j.withCredentials=!!w.withCredentials),y._mode==="text"&&"overrideMimeType"in j&&j.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in w&&(j.timeout=w.requestTimeout,j.ontimeout=function(){y.emit("requestTimeout")}),T.forEach(function(A){j.setRequestHeader(A[0],A[1])}),y._response=null,j.onreadystatechange=function(){switch(j.readyState){case u.LOADING:case u.DONE:y._onXHRProgress();break}},y._mode==="moz-chunked-arraybuffer"&&(j.onprogress=function(){y._onXHRProgress()}),j.onerror=function(){y._destroyed||(y._resetTimers(!0),y.emit("error",new Error("XHR error")))};try{j.send(S)}catch(A){i.nextTick(function(){y.emit("error",A)});return}}}};function d(y){try{var w=y.status;return w!==null&&w!==0}catch{return!1}}l(d,"d"),e(d,"statusValid"),c.prototype._onXHRProgress=function(){var y=this||ur;y._resetTimers(!1),!(!d(y._xhr)||y._destroyed)&&(y._response||y._connect(),y._response._onXHRProgress(y._resetTimers.bind(y)))},c.prototype._connect=function(){var y=this||ur;y._destroyed||(y._response=new r(y._xhr,y._fetchResponse,y._mode,y._resetTimers.bind(y)),y._response.on("error",function(w){y.emit("error",w)}),y.emit("response",y._response))},c.prototype._write=function(y,w,_){var S=this||ur;S._body.push(y),_()},c.prototype._resetTimers=function(y){var w=this||ur;ur.clearTimeout(w._socketTimer),w._socketTimer=null,y?(ur.clearTimeout(w._fetchTimer),w._fetchTimer=null):w._socketTimeout&&(w._socketTimer=ur.setTimeout(function(){w.emit("timeout")},w._socketTimeout))},c.prototype.abort=c.prototype.destroy=function(y){var w=this||ur;w._destroyed=!0,w._resetTimers(!0),w._response&&(w._response._destroyed=!0),w._xhr?w._xhr.abort():w._fetchAbortController&&w._fetchAbortController.abort(),y&&w.emit("error",y)},c.prototype.end=function(y,w,_){var S=this||ur;typeof y=="function"&&(_=y,y=void 0),n.Writable.prototype.end.call(S,y,w,_)},c.prototype.setTimeout=function(y,w){var _=this||ur;w&&_.once("timeout",w),_._socketTimeout=y,_._resetTimers(!1)},c.prototype.flushHeaders=function(){},c.prototype.setNoDelay=function(){},c.prototype.setSocketKeepAlive=function(){};var m=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"];return yh}function w8(){if(Zv)return mh;Zv=!0,mh=i;var o=Object.prototype.hasOwnProperty;function i(){for(var f={},g=0;g<arguments.length;g++){var a=arguments[g];for(var n in a)o.call(a,n)&&(f[n]=a[n])}return f}return l(i,"t"),e(i,"extend"),mh}function b8(){return Xv||(Xv=!0,Qv={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}),Qv}function pF(){if(e_)return wh;e_=!0;var o=m8(),i=l2(),f=w8(),g=b8(),a=Lt,n=wh;return n.request=function(r,u){typeof r=="string"?r=a.parse(r):r=f(r);var p=V8.location.protocol.search(/^https?:$/)===-1?"http:":"",c=r.protocol||p,d=r.hostname||r.host,m=r.port,y=r.path||"/";d&&d.indexOf(":")!==-1&&(d="["+d+"]"),r.url=(d?c+"//"+d:"")+(m?":"+m:"")+y,r.method=(r.method||"GET").toUpperCase(),r.headers=r.headers||{};var w=new o(r);return u&&w.on("response",u),w},n.get=e(function(r,u){var p=n.request(r,u);return p.end(),p},"get2"),n.ClientRequest=o,n.IncomingMessage=i.IncomingMessage,n.Agent=function(){},n.Agent.defaultMaxSockets=4,n.globalAgent=new n.Agent,n.STATUS_CODES=g,n.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"],wh}function xt(){xt.init.call(this)}function Ul(o){if(typeof o!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof o)}function t_(o){return o._maxListeners===void 0?xt.defaultMaxListeners:o._maxListeners}function Qy(o,i,f,g){var a,n,r,u;if(Ul(f),(n=o._events)===void 0?(n=o._events=Object.create(null),o._eventsCount=0):(n.newListener!==void 0&&(o.emit("newListener",i,f.listener?f.listener:f),n=o._events),r=n[i]),r===void 0)r=n[i]=f,++o._eventsCount;else if(typeof r=="function"?r=n[i]=g?[f,r]:[r,f]:g?r.unshift(f):r.push(f),(a=t_(o))>0&&r.length>a&&!r.warned){r.warned=!0;var p=new Error("Possible EventEmitter memory leak detected. "+r.length+" "+String(i)+" listeners added. Use emitter.setMaxListeners() to increase limit");p.name="MaxListenersExceededWarning",p.emitter=o,p.type=i,p.count=r.length,u=p,console&&console.warn&&console.warn(u)}return o}function n4(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Xy(o,i,f){var g={fired:!1,wrapFn:void 0,target:o,type:i,listener:f},a=n4.bind(g);return a.listener=f,g.wrapFn=a,a}function em(o,i,f){var g=o._events;if(g===void 0)return[];var a=g[i];return a===void 0?[]:typeof a=="function"?f?[a.listener||a]:[a]:f?function(n){for(var r=new Array(n.length),u=0;u<r.length;++u)r[u]=n[u].listener||n[u];return r}(a):r_(a,a.length)}function tm(o){var i=this._events;if(i!==void 0){var f=i[o];if(typeof f=="function")return 1;if(f!==void 0)return f.length}return 0}function r_(o,i){for(var f=new Array(i),g=0;g<i;++g)f[g]=o[g];return f}function bh(){throw new Error("setTimeout has not been defined")}function vh(){throw new Error("clearTimeout has not been defined")}function n_(o){if(si===setTimeout)return setTimeout(o,0);if((si===bh||!si)&&setTimeout)return si=setTimeout,setTimeout(o,0);try{return si(o,0)}catch{try{return si.call(null,o,0)}catch{return si.call(this||Ea,o,0)}}}function i4(){Sa&&da&&(Sa=!1,da.length?Un=da.concat(Un):cf=-1,Un.length&&i_())}function i_(){if(!Sa){var o=n_(i4);Sa=!0;for(var i=Un.length;i;){for(da=Un,Un=[];++cf<i;)da&&da[cf].run();cf=-1,i=Un.length}da=null,Sa=!1,function(f){if(li===clearTimeout)return clearTimeout(f);if((li===vh||!li)&&clearTimeout)return li=clearTimeout,clearTimeout(f);try{li(f)}catch{try{return li.call(null,f)}catch{return li.call(this||Ea,f)}}}(o)}}function rm(o,i){(this||Ea).fun=o,(this||Ea).array=i}function Rn(){}function Ii(o){return o.call.bind(o)}function tl(o,i){if(typeof o!="object")return!1;try{return i(o),!0}catch{return!1}}function nm(o){return Cr&&qr?nn(o)!==void 0:o_(o)||a_(o)||s_(o)||l_(o)||f_(o)||u_(o)||c_(o)||h_(o)||d_(o)||p_(o)||g_(o)}function o_(o){return Cr&&qr?nn(o)==="Uint8Array":Jt(o)==="[object Uint8Array]"||P4(o)&&o.buffer!==void 0}function a_(o){return Cr&&qr?nn(o)==="Uint8ClampedArray":Jt(o)==="[object Uint8ClampedArray]"}function s_(o){return Cr&&qr?nn(o)==="Uint16Array":Jt(o)==="[object Uint16Array]"}function l_(o){return Cr&&qr?nn(o)==="Uint32Array":Jt(o)==="[object Uint32Array]"}function f_(o){return Cr&&qr?nn(o)==="Int8Array":Jt(o)==="[object Int8Array]"}function u_(o){return Cr&&qr?nn(o)==="Int16Array":Jt(o)==="[object Int16Array]"}function c_(o){return Cr&&qr?nn(o)==="Int32Array":Jt(o)==="[object Int32Array]"}function h_(o){return Cr&&qr?nn(o)==="Float32Array":Jt(o)==="[object Float32Array]"}function d_(o){return Cr&&qr?nn(o)==="Float64Array":Jt(o)==="[object Float64Array]"}function p_(o){return Cr&&qr?nn(o)==="BigInt64Array":Jt(o)==="[object BigInt64Array]"}function g_(o){return Cr&&qr?nn(o)==="BigUint64Array":Jt(o)==="[object BigUint64Array]"}function bl(o){return Jt(o)==="[object Map]"}function vl(o){return Jt(o)==="[object Set]"}function _l(o){return Jt(o)==="[object WeakMap]"}function pu(o){return Jt(o)==="[object WeakSet]"}function nf(o){return Jt(o)==="[object ArrayBuffer]"}function im(o){return typeof ArrayBuffer<"u"&&(nf.working?nf(o):o instanceof ArrayBuffer)}function of(o){return Jt(o)==="[object DataView]"}function om(o){return typeof DataView<"u"&&(of.working?of(o):o instanceof DataView)}function af(o){return Jt(o)==="[object SharedArrayBuffer]"}function am(o){return typeof SharedArrayBuffer<"u"&&(af.working?af(o):o instanceof SharedArrayBuffer)}function sm(o){return tl(o,L4)}function lm(o){return tl(o,N4)}function fm(o){return tl(o,D4)}function um(o){return A_&&tl(o,CQ)}function cm(o){return kh&&tl(o,LQ)}function gi(o,i){var f={seen:[],stylize:a4};return arguments.length>=3&&(f.depth=arguments[2]),arguments.length>=4&&(f.colors=arguments[3]),ud(i)?f.showHidden=i:i&&at._extend(f,i),Ki(f.showHidden)&&(f.showHidden=!1),Ki(f.depth)&&(f.depth=2),Ki(f.colors)&&(f.colors=!1),Ki(f.customInspect)&&(f.customInspect=!0),f.colors&&(f.stylize=o4),gf(f,o,f.depth)}function o4(o,i){var f=gi.styles[i];return f?"\x1B["+gi.colors[f][0]+"m"+o+"\x1B["+gi.colors[f][1]+"m":o}function a4(o,i){return o}function gf(o,i,f){if(o.customInspect&&i&&uf(i.inspect)&&i.inspect!==at.inspect&&(!i.constructor||i.constructor.prototype!==i)){var g=i.inspect(f,o);return lf(g)||(g=gf(o,g,f)),g}var a=function(y,w){if(Ki(w))return y.stylize("undefined","undefined");if(lf(w)){var _="'"+JSON.stringify(w).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return y.stylize(_,"string")}if(m_(w))return y.stylize(""+w,"number");if(ud(w))return y.stylize(""+w,"boolean");if(sf(w))return y.stylize("null","null")}(o,i);if(a)return a;var n=Object.keys(i),r=function(y){var w={};return y.forEach(function(_,S){w[_]=!0}),w}(n);if(o.showHidden&&(n=Object.getOwnPropertyNames(i)),Cs(i)&&(n.indexOf("message")>=0||n.indexOf("description")>=0))return _h(i);if(n.length===0){if(uf(i)){var u=i.name?": "+i.name:"";return o.stylize("[Function"+u+"]","special")}if(js(i))return o.stylize(RegExp.prototype.toString.call(i),"regexp");if(ff(i))return o.stylize(Date.prototype.toString.call(i),"date");if(Cs(i))return _h(i)}var p,c="",d=!1,m=["{","}"];return y_(i)&&(d=!0,m=["[","]"]),uf(i)&&(c=" [Function"+(i.name?": "+i.name:"")+"]"),js(i)&&(c=" "+RegExp.prototype.toString.call(i)),ff(i)&&(c=" "+Date.prototype.toUTCString.call(i)),Cs(i)&&(c=" "+_h(i)),n.length!==0||d&&i.length!=0?f<0?js(i)?o.stylize(RegExp.prototype.toString.call(i),"regexp"):o.stylize("[Object]","special"):(o.seen.push(i),p=d?function(y,w,_,S,T){for(var k=[],E=0,j=w.length;E<j;++E)f2(w,String(E))?k.push(Eh(y,w,_,S,String(E),!0)):k.push("");return T.forEach(function(A){A.match(/^\d+$/)||k.push(Eh(y,w,_,S,A,!0))}),k}(o,i,f,r,n):n.map(function(y){return Eh(o,i,f,r,y,d)}),o.seen.pop(),function(y,w,_){var S=0;return y.reduce(function(T,k){return S++,k.indexOf(`
30
- `)>=0&&S++,T+k.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?_[0]+(w===""?"":w+`
31
- `)+" "+y.join(`,
32
- `)+" "+_[1]:_[0]+w+" "+y.join(", ")+" "+_[1]}(p,c,m)):m[0]+c+m[1]}function _h(o){return"["+Error.prototype.toString.call(o)+"]"}function Eh(o,i,f,g,a,n){var r,u,p;if((p=Object.getOwnPropertyDescriptor(i,a)||{value:i[a]}).get?u=p.set?o.stylize("[Getter/Setter]","special"):o.stylize("[Getter]","special"):p.set&&(u=o.stylize("[Setter]","special")),f2(g,a)||(r="["+a+"]"),u||(o.seen.indexOf(p.value)<0?(u=sf(f)?gf(o,p.value,null):gf(o,p.value,f-1)).indexOf(`
33
- `)>-1&&(u=n?u.split(`
34
- `).map(function(c){return" "+c}).join(`
35
- `).substr(2):`
36
- `+u.split(`
37
- `).map(function(c){return" "+c}).join(`
38
- `)):u=o.stylize("[Circular]","special")),Ki(r)){if(n&&a.match(/^\d+$/))return u;(r=JSON.stringify(""+a)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(r=r.substr(1,r.length-2),r=o.stylize(r,"name")):(r=r.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),r=o.stylize(r,"string"))}return r+": "+u}function y_(o){return Array.isArray(o)}function ud(o){return typeof o=="boolean"}function sf(o){return o===null}function m_(o){return typeof o=="number"}function lf(o){return typeof o=="string"}function Ki(o){return o===void 0}function js(o){return ha(o)&&Dd(o)==="[object RegExp]"}function ha(o){return typeof o=="object"&&o!==null}function ff(o){return ha(o)&&Dd(o)==="[object Date]"}function Cs(o){return ha(o)&&(Dd(o)==="[object Error]"||o instanceof Error)}function uf(o){return typeof o=="function"}function Dd(o){return Object.prototype.toString.call(o)}function Sh(o){return o<10?"0"+o.toString(10):o.toString(10)}function KB(){var o=new Date,i=[Sh(o.getHours()),Sh(o.getMinutes()),Sh(o.getSeconds())].join(":");return[o.getDate(),U4[o.getMonth()],i].join(" ")}function f2(o,i){return Object.prototype.hasOwnProperty.call(o,i)}function JB(o,i){if(!o){var f=new Error("Promise was rejected with a falsy value");f.reason=o,o=f}return i(o)}function YB(){if(R_)return Oh;R_=!0;var o=Oh={},i,f;function g(){throw new Error("setTimeout has not been defined")}l(g,"n"),e(g,"defaultSetTimout");function a(){throw new Error("clearTimeout has not been defined")}l(a,"a"),e(a,"defaultClearTimeout"),function(){try{typeof setTimeout=="function"?i=setTimeout:i=g}catch{i=g}try{typeof clearTimeout=="function"?f=clearTimeout:f=a}catch{f=a}}();function n(S){if(i===setTimeout)return setTimeout(S,0);if((i===g||!i)&&setTimeout)return i=setTimeout,setTimeout(S,0);try{return i(S,0)}catch{try{return i.call(null,S,0)}catch{return i.call(this||na,S,0)}}}l(n,"s"),e(n,"runTimeout");function r(S){if(f===clearTimeout)return clearTimeout(S);if((f===a||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(S);try{return f(S)}catch{try{return f.call(null,S)}catch{return f.call(this||na,S)}}}l(r,"i"),e(r,"runClearTimeout");var u=[],p=!1,c,d=-1;function m(){!p||!c||(p=!1,c.length?u=c.concat(u):d=-1,u.length&&y())}l(m,"y"),e(m,"cleanUpNextTick");function y(){if(!p){var S=n(m);p=!0;for(var T=u.length;T;){for(c=u,u=[];++d<T;)c&&c[d].run();d=-1,T=u.length}c=null,p=!1,r(S)}}l(y,"m"),e(y,"drainQueue"),o.nextTick=function(S){var T=new Array(arguments.length-1);if(arguments.length>1)for(var k=1;k<arguments.length;k++)T[k-1]=arguments[k];u.push(new w(S,T)),u.length===1&&!p&&n(y)};function w(S,T){(this||na).fun=S,(this||na).array=T}l(w,"g"),e(w,"Item"),w.prototype.run=function(){(this||na).fun.apply(null,(this||na).array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={};function _(){}return l(_,"v"),e(_,"noop"),o.on=_,o.addListener=_,o.once=_,o.off=_,o.removeListener=_,o.removeAllListeners=_,o.emit=_,o.prependListener=_,o.prependOnceListener=_,o.listeners=function(S){return[]},o.binding=function(S){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(S){throw new Error("process.chdir is not supported")},o.umask=function(){return 0},Oh}function hm(o){var i=o.length;if(i%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var f=o.indexOf("=");return f===-1&&(f=i),[f,f===i?0:4-f%4]}function ZB(o,i,f){for(var g,a,n=[],r=i;r<f;r+=3)g=(o[r]<<16&16711680)+(o[r+1]<<8&65280)+(255&o[r+2]),n.push(wn[(a=g)>>18&63]+wn[a>>12&63]+wn[a>>6&63]+wn[63&a]);return n.join("")}function Bn(o){if(o>2147483647)throw new RangeError('The value "'+o+'" is invalid for option "size"');var i=new Uint8Array(o);return Object.setPrototypeOf(i,tt.prototype),i}function tt(o,i,f){if(typeof o=="number"){if(typeof i=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Ah(o)}return w_(o,i,f)}function w_(o,i,f){if(typeof o=="string")return function(n,r){if(typeof r=="string"&&r!==""||(r="utf8"),!tt.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var u=0|v_(n,r),p=Bn(u),c=p.write(n,r);return c!==u&&(p=p.slice(0,c)),p}(o,i);if(ArrayBuffer.isView(o))return Rh(o);if(o==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof o);if(In(o,ArrayBuffer)||o&&In(o.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(In(o,SharedArrayBuffer)||o&&In(o.buffer,SharedArrayBuffer)))return s4(o,i,f);if(typeof o=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var g=o.valueOf&&o.valueOf();if(g!=null&&g!==o)return tt.from(g,i,f);var a=function(n){if(tt.isBuffer(n)){var r=0|Ud(n.length),u=Bn(r);return u.length===0||n.copy(u,0,0,r),u}if(n.length!==void 0)return typeof n.length!="number"||Md(n.length)?Bn(0):Rh(n);if(n.type==="Buffer"&&Array.isArray(n.data))return Rh(n.data)}(o);if(a)return a;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof o[Symbol.toPrimitive]=="function")return tt.from(o[Symbol.toPrimitive]("string"),i,f);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof o)}function b_(o){if(typeof o!="number")throw new TypeError('"size" argument must be of type number');if(o<0)throw new RangeError('The value "'+o+'" is invalid for option "size"')}function Ah(o){return b_(o),Bn(o<0?0:0|Ud(o))}function Rh(o){for(var i=o.length<0?0:0|Ud(o.length),f=Bn(i),g=0;g<i;g+=1)f[g]=255&o[g];return f}function s4(o,i,f){if(i<0||o.byteLength<i)throw new RangeError('"offset" is outside of buffer bounds');if(o.byteLength<i+(f||0))throw new RangeError('"length" is outside of buffer bounds');var g;return g=i===void 0&&f===void 0?new Uint8Array(o):f===void 0?new Uint8Array(o,i):new Uint8Array(o,i,f),Object.setPrototypeOf(g,tt.prototype),g}function Ud(o){if(o>=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|o}function v_(o,i){if(tt.isBuffer(o))return o.length;if(ArrayBuffer.isView(o)||In(o,ArrayBuffer))return o.byteLength;if(typeof o!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof o);var f=o.length,g=arguments.length>2&&arguments[2]===!0;if(!g&&f===0)return 0;for(var a=!1;;)switch(i){case"ascii":case"latin1":case"binary":return f;case"utf8":case"utf-8":return cd(o).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*f;case"hex":return f>>>1;case"base64":return c2(o).length;default:if(a)return g?-1:cd(o).length;i=(""+i).toLowerCase(),a=!0}}function QB(o,i,f){var g=!1;if((i===void 0||i<0)&&(i=0),i>this.length||((f===void 0||f>this.length)&&(f=this.length),f<=0)||(f>>>=0)<=(i>>>=0))return"";for(o||(o="utf8");;)switch(o){case"hex":return c4(this,i,f);case"utf8":case"utf-8":return S_(this,i,f);case"ascii":return f4(this,i,f);case"latin1":case"binary":return u4(this,i,f);case"base64":return l4(this,i,f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return h4(this,i,f);default:if(g)throw new TypeError("Unknown encoding: "+o);o=(o+"").toLowerCase(),g=!0}}function xi(o,i,f){var g=o[i];o[i]=o[f],o[f]=g}function dm(o,i,f,g,a){if(o.length===0)return-1;if(typeof f=="string"?(g=f,f=0):f>2147483647?f=2147483647:f<-2147483648&&(f=-2147483648),Md(f=+f)&&(f=a?0:o.length-1),f<0&&(f=o.length+f),f>=o.length){if(a)return-1;f=o.length-1}else if(f<0){if(!a)return-1;f=0}if(typeof i=="string"&&(i=tt.from(i,g)),tt.isBuffer(i))return i.length===0?-1:__(o,i,f,g,a);if(typeof i=="number")return i&=255,typeof Uint8Array.prototype.indexOf=="function"?a?Uint8Array.prototype.indexOf.call(o,i,f):Uint8Array.prototype.lastIndexOf.call(o,i,f):__(o,[i],f,g,a);throw new TypeError("val must be string, number or Buffer")}function __(o,i,f,g,a){var n,r=1,u=o.length,p=i.length;if(g!==void 0&&((g=String(g).toLowerCase())==="ucs2"||g==="ucs-2"||g==="utf16le"||g==="utf-16le")){if(o.length<2||i.length<2)return-1;r=2,u/=2,p/=2,f/=2}function c(w,_){return r===1?w[_]:w.readUInt16BE(_*r)}if(l(c,"c"),e(c,"h5"),a){var d=-1;for(n=f;n<u;n++)if(c(o,n)===c(i,d===-1?0:n-d)){if(d===-1&&(d=n),n-d+1===p)return d*r}else d!==-1&&(n-=n-d),d=-1}else for(f+p>u&&(f=u-p),n=f;n>=0;n--){for(var m=!0,y=0;y<p;y++)if(c(o,n+y)!==c(i,y)){m=!1;break}if(m)return n}return-1}function XB(o,i,f,g){f=Number(f)||0;var a=o.length-f;g?(g=Number(g))>a&&(g=a):g=a;var n=i.length;g>n/2&&(g=n/2);for(var r=0;r<g;++r){var u=parseInt(i.substr(2*r,2),16);if(Md(u))return r;o[f+r]=u}return r}function eI(o,i,f,g){return Of(cd(i,o.length-f),o,f,g)}function E_(o,i,f,g){return Of(function(a){for(var n=[],r=0;r<a.length;++r)n.push(255&a.charCodeAt(r));return n}(i),o,f,g)}function tI(o,i,f,g){return E_(o,i,f,g)}function rI(o,i,f,g){return Of(c2(i),o,f,g)}function nI(o,i,f,g){return Of(function(a,n){for(var r,u,p,c=[],d=0;d<a.length&&!((n-=2)<0);++d)r=a.charCodeAt(d),u=r>>8,p=r%256,c.push(p),c.push(u);return c}(i,o.length-f),o,f,g)}function l4(o,i,f){return i===0&&f===o.length?hd.fromByteArray(o):hd.fromByteArray(o.slice(i,f))}function S_(o,i,f){f=Math.min(o.length,f);for(var g=[],a=i;a<f;){var n,r,u,p,c=o[a],d=null,m=c>239?4:c>223?3:c>191?2:1;if(a+m<=f)switch(m){case 1:c<128&&(d=c);break;case 2:(192&(n=o[a+1]))==128&&(p=(31&c)<<6|63&n)>127&&(d=p);break;case 3:n=o[a+1],r=o[a+2],(192&n)==128&&(192&r)==128&&(p=(15&c)<<12|(63&n)<<6|63&r)>2047&&(p<55296||p>57343)&&(d=p);break;case 4:n=o[a+1],r=o[a+2],u=o[a+3],(192&n)==128&&(192&r)==128&&(192&u)==128&&(p=(15&c)<<18|(63&n)<<12|(63&r)<<6|63&u)>65535&&p<1114112&&(d=p)}d===null?(d=65533,m=1):d>65535&&(d-=65536,g.push(d>>>10&1023|55296),d=56320|1023&d),g.push(d),a+=m}return function(y){var w=y.length;if(w<=4096)return String.fromCharCode.apply(String,y);for(var _="",S=0;S<w;)_+=String.fromCharCode.apply(String,y.slice(S,S+=4096));return _}(g)}function f4(o,i,f){var g="";f=Math.min(o.length,f);for(var a=i;a<f;++a)g+=String.fromCharCode(127&o[a]);return g}function u4(o,i,f){var g="";f=Math.min(o.length,f);for(var a=i;a<f;++a)g+=String.fromCharCode(o[a]);return g}function c4(o,i,f){var g=o.length;(!i||i<0)&&(i=0),(!f||f<0||f>g)&&(f=g);for(var a="",n=i;n<f;++n)a+=$4[o[n]];return a}function h4(o,i,f){for(var g=o.slice(i,f),a="",n=0;n<g.length;n+=2)a+=String.fromCharCode(g[n]+256*g[n+1]);return a}function fr(o,i,f){if(o%1!=0||o<0)throw new RangeError("offset is not uint");if(o+i>f)throw new RangeError("Trying to access beyond buffer length")}function Ir(o,i,f,g,a,n){if(!tt.isBuffer(o))throw new TypeError('"buffer" argument must be a Buffer instance');if(i>a||i<n)throw new RangeError('"value" argument is out of bounds');if(f+g>o.length)throw new RangeError("Index out of range")}function u2(o,i,f,g,a,n){if(f+g>o.length)throw new RangeError("Index out of range");if(f<0)throw new RangeError("Index out of range")}function pm(o,i,f,g,a){return i=+i,f>>>=0,a||u2(o,0,f,4),ia.write(o,i,f,g,23,4),f+4}function gm(o,i,f,g,a){return i=+i,f>>>=0,a||u2(o,0,f,8),ia.write(o,i,f,g,52,8),f+8}function cd(o,i){var f;i=i||1/0;for(var g=o.length,a=null,n=[],r=0;r<g;++r){if((f=o.charCodeAt(r))>55295&&f<57344){if(!a){if(f>56319){(i-=3)>-1&&n.push(239,191,189);continue}if(r+1===g){(i-=3)>-1&&n.push(239,191,189);continue}a=f;continue}if(f<56320){(i-=3)>-1&&n.push(239,191,189),a=f;continue}f=65536+(a-55296<<10|f-56320)}else a&&(i-=3)>-1&&n.push(239,191,189);if(a=null,f<128){if((i-=1)<0)break;n.push(f)}else if(f<2048){if((i-=2)<0)break;n.push(f>>6|192,63&f|128)}else if(f<65536){if((i-=3)<0)break;n.push(f>>12|224,f>>6&63|128,63&f|128)}else{if(!(f<1114112))throw new Error("Invalid code point");if((i-=4)<0)break;n.push(f>>18|240,f>>12&63|128,f>>6&63|128,63&f|128)}}return n}function c2(o){return hd.toByteArray(function(i){if((i=(i=i.split("=")[0]).trim().replace(M4,"")).length<2)return"";for(;i.length%4!=0;)i+="=";return i}(o))}function Of(o,i,f,g){for(var a=0;a<g&&!(a+f>=i.length||a>=o.length);++a)i[a+f]=o[a];return a}function In(o,i){return o instanceof i||o!=null&&o.constructor!=null&&o.constructor.name!=null&&o.constructor.name===i.name}function Md(o){return o!=o}function ym(o,i){for(var f in o)i[f]=o[f]}function ji(o,i,f){return pn(o,i,f)}function ds(o){var i;switch(this.encoding=function(f){var g=function(a){if(!a)return"utf8";for(var n;;)switch(a){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 a;default:if(n)return;a=(""+a).toLowerCase(),n=!0}}(f);if(typeof g!="string"&&(pd.isEncoding===k_||!k_(f)))throw new Error("Unknown encoding: "+f);return g||f}(o),this.encoding){case"utf16le":this.text=p4,this.end=g4,i=4;break;case"utf8":this.fillLast=d4,i=4;break;case"base64":this.text=y4,this.end=m4,i=3;break;default:return this.write=w4,this.end=b4,void 0}this.lastNeed=0,this.lastTotal=0,this.lastChar=pd.allocUnsafe(i)}function gu(o){return o<=127?0:o>>5==6?2:o>>4==14?3:o>>3==30?4:o>>6==2?-1:-2}function d4(o){var i=this.lastTotal-this.lastNeed,f=function(g,a,n){if((192&a[0])!=128)return g.lastNeed=0,"\uFFFD";if(g.lastNeed>1&&a.length>1){if((192&a[1])!=128)return g.lastNeed=1,"\uFFFD";if(g.lastNeed>2&&a.length>2&&(192&a[2])!=128)return g.lastNeed=2,"\uFFFD"}}(this,o);return f!==void 0?f:this.lastNeed<=o.length?(o.copy(this.lastChar,i,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(o.copy(this.lastChar,i,0,o.length),this.lastNeed-=o.length,void 0)}function p4(o,i){if((o.length-i)%2==0){var f=o.toString("utf16le",i);if(f){var g=f.charCodeAt(f.length-1);if(g>=55296&&g<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=o[o.length-2],this.lastChar[1]=o[o.length-1],f.slice(0,-1)}return f}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=o[o.length-1],o.toString("utf16le",i,o.length-1)}function g4(o){var i=o&&o.length?this.write(o):"";if(this.lastNeed){var f=this.lastTotal-this.lastNeed;return i+this.lastChar.toString("utf16le",0,f)}return i}function y4(o,i){var f=(o.length-i)%3;return f===0?o.toString("base64",i):(this.lastNeed=3-f,this.lastTotal=3,f===1?this.lastChar[0]=o[o.length-1]:(this.lastChar[0]=o[o.length-2],this.lastChar[1]=o[o.length-1]),o.toString("base64",i,o.length-f))}function m4(o){var i=o&&o.length?this.write(o):"";return this.lastNeed?i+this.lastChar.toString("base64",0,3-this.lastNeed):i}function w4(o){return o.toString(this.encoding)}function b4(o){return o&&o.length?this.write(o):""}function v4(){if(O_)return Fs;O_=!0,Fs.byteLength=u,Fs.toByteArray=c,Fs.fromByteArray=y;for(var o=[],i=[],f=typeof Uint8Array<"u"?Uint8Array:Array,g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,n=g.length;a<n;++a)o[a]=g[a],i[g.charCodeAt(a)]=a;i[45]=62,i[95]=63;function r(w){var _=w.length;if(_%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var S=w.indexOf("=");S===-1&&(S=_);var T=S===_?0:4-S%4;return[S,T]}l(r,"i"),e(r,"getLens");function u(w){var _=r(w),S=_[0],T=_[1];return(S+T)*3/4-T}l(u,"f"),e(u,"byteLength");function p(w,_,S){return(_+S)*3/4-S}l(p,"h"),e(p,"_byteLength");function c(w){var _,S=r(w),T=S[0],k=S[1],E=new f(p(w,T,k)),j=0,A=k>0?T-4:T,I;for(I=0;I<A;I+=4)_=i[w.charCodeAt(I)]<<18|i[w.charCodeAt(I+1)]<<12|i[w.charCodeAt(I+2)]<<6|i[w.charCodeAt(I+3)],E[j++]=_>>16&255,E[j++]=_>>8&255,E[j++]=_&255;return k===2&&(_=i[w.charCodeAt(I)]<<2|i[w.charCodeAt(I+1)]>>4,E[j++]=_&255),k===1&&(_=i[w.charCodeAt(I)]<<10|i[w.charCodeAt(I+1)]<<4|i[w.charCodeAt(I+2)]>>2,E[j++]=_>>8&255,E[j++]=_&255),E}l(c,"c"),e(c,"toByteArray");function d(w){return o[w>>18&63]+o[w>>12&63]+o[w>>6&63]+o[w&63]}l(d,"d"),e(d,"tripletToBase64");function m(w,_,S){for(var T,k=[],E=_;E<S;E+=3)T=(w[E]<<16&16711680)+(w[E+1]<<8&65280)+(w[E+2]&255),k.push(d(T));return k.join("")}l(m,"y"),e(m,"encodeChunk");function y(w){for(var _,S=w.length,T=S%3,k=[],E=16383,j=0,A=S-T;j<A;j+=E)k.push(m(w,j,j+E>A?A:j+E));return T===1?(_=w[S-1],k.push(o[_>>2]+o[_<<4&63]+"==")):T===2&&(_=(w[S-2]<<8)+w[S-1],k.push(o[_>>10]+o[_>>4&63]+o[_<<2&63]+"=")),k.join("")}return l(y,"m"),e(y,"fromByteArray"),Fs}function _4(){return T_||(T_=!0,Th.read=function(o,i,f,g,a){var n,r,u=a*8-g-1,p=(1<<u)-1,c=p>>1,d=-7,m=f?a-1:0,y=f?-1:1,w=o[i+m];for(m+=y,n=w&(1<<-d)-1,w>>=-d,d+=u;d>0;n=n*256+o[i+m],m+=y,d-=8);for(r=n&(1<<-d)-1,n>>=-d,d+=g;d>0;r=r*256+o[i+m],m+=y,d-=8);if(n===0)n=1-c;else{if(n===p)return r?NaN:(w?-1:1)*(1/0);r=r+Math.pow(2,g),n=n-c}return(w?-1:1)*r*Math.pow(2,n-g)},Th.write=function(o,i,f,g,a,n){var r,u,p,c=n*8-a-1,d=(1<<c)-1,m=d>>1,y=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=g?0:n-1,_=g?1:-1,S=i<0||i===0&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(u=isNaN(i)?1:0,r=d):(r=Math.floor(Math.log(i)/Math.LN2),i*(p=Math.pow(2,-r))<1&&(r--,p*=2),r+m>=1?i+=y/p:i+=y*Math.pow(2,1-m),i*p>=2&&(r++,p/=2),r+m>=d?(u=0,r=d):r+m>=1?(u=(i*p-1)*Math.pow(2,a),r=r+m):(u=i*Math.pow(2,m-1)*Math.pow(2,a),r=0));a>=8;o[f+w]=u&255,w+=_,u/=256,a-=8);for(r=r<<a|u,c+=a;c>0;o[f+w]=r&255,w+=_,r/=256,c-=8);o[f+w-_]|=S*128}),Th}function iI(){if(F_)return Hi;F_=!0;let o=v4(),i=_4(),f=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Hi.Buffer=r,Hi.SlowBuffer=k,Hi.INSPECT_MAX_BYTES=50;let g=2147483647;Hi.kMaxLength=g,r.TYPED_ARRAY_SUPPORT=a(),!r.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{let t=new Uint8Array(1),s={foo:e(function(){return 42},"foo")};return Object.setPrototypeOf(s,Uint8Array.prototype),Object.setPrototypeOf(t,s),t.foo()===42}catch{return!1}}l(a,"a"),e(a,"typedArraySupport"),Object.defineProperty(r.prototype,"parent",{enumerable:!0,get:e(function(){if(r.isBuffer(this))return this.buffer},"get")}),Object.defineProperty(r.prototype,"offset",{enumerable:!0,get:e(function(){if(r.isBuffer(this))return this.byteOffset},"get")});function n(t){if(t>g)throw new RangeError('The value "'+t+'" is invalid for option "size"');let s=new Uint8Array(t);return Object.setPrototypeOf(s,r.prototype),s}l(n,"s"),e(n,"createBuffer");function r(t,s,h){if(typeof t=="number"){if(typeof s=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(t)}return u(t,s,h)}l(r,"i"),e(r,"Buffer"),r.poolSize=8192;function u(t,s,h){if(typeof t=="string")return m(t,s);if(ArrayBuffer.isView(t))return w(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(xe(t,ArrayBuffer)||t&&xe(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(xe(t,SharedArrayBuffer)||t&&xe(t.buffer,SharedArrayBuffer)))return _(t,s,h);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let v=t.valueOf&&t.valueOf();if(v!=null&&v!==t)return r.from(v,s,h);let R=S(t);if(R)return R;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return r.from(t[Symbol.toPrimitive]("string"),s,h);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}l(u,"f"),e(u,"from"),r.from=function(t,s,h){return u(t,s,h)},Object.setPrototypeOf(r.prototype,Uint8Array.prototype),Object.setPrototypeOf(r,Uint8Array);function p(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}l(p,"h"),e(p,"assertSize");function c(t,s,h){return p(t),t<=0?n(t):s!==void 0?typeof h=="string"?n(t).fill(s,h):n(t).fill(s):n(t)}l(c,"c"),e(c,"alloc"),r.alloc=function(t,s,h){return c(t,s,h)};function d(t){return p(t),n(t<0?0:T(t)|0)}l(d,"d"),e(d,"allocUnsafe"),r.allocUnsafe=function(t){return d(t)},r.allocUnsafeSlow=function(t){return d(t)};function m(t,s){if((typeof s!="string"||s==="")&&(s="utf8"),!r.isEncoding(s))throw new TypeError("Unknown encoding: "+s);let h=E(t,s)|0,v=n(h),R=v.write(t,s);return R!==h&&(v=v.slice(0,R)),v}l(m,"y"),e(m,"fromString");function y(t){let s=t.length<0?0:T(t.length)|0,h=n(s);for(let v=0;v<s;v+=1)h[v]=t[v]&255;return h}l(y,"m"),e(y,"fromArrayLike");function w(t){if(xe(t,Uint8Array)){let s=new Uint8Array(t);return _(s.buffer,s.byteOffset,s.byteLength)}return y(t)}l(w,"g"),e(w,"fromArrayView");function _(t,s,h){if(s<0||t.byteLength<s)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<s+(h||0))throw new RangeError('"length" is outside of buffer bounds');let v;return s===void 0&&h===void 0?v=new Uint8Array(t):h===void 0?v=new Uint8Array(t,s):v=new Uint8Array(t,s,h),Object.setPrototypeOf(v,r.prototype),v}l(_,"v"),e(_,"fromArrayBuffer");function S(t){if(r.isBuffer(t)){let s=T(t.length)|0,h=n(s);return h.length===0||t.copy(h,0,0,s),h}if(t.length!==void 0)return typeof t.length!="number"||Oe(t.length)?n(0):y(t);if(t.type==="Buffer"&&Array.isArray(t.data))return y(t.data)}l(S,"_"),e(S,"fromObject");function T(t){if(t>=g)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+g.toString(16)+" bytes");return t|0}l(T,"b"),e(T,"checked");function k(t){return+t!=t&&(t=0),r.alloc(+t)}l(k,"E"),e(k,"SlowBuffer"),r.isBuffer=e(function(t){return t!=null&&t._isBuffer===!0&&t!==r.prototype},"isBuffer"),r.compare=e(function(t,s){if(xe(t,Uint8Array)&&(t=r.from(t,t.offset,t.byteLength)),xe(s,Uint8Array)&&(s=r.from(s,s.offset,s.byteLength)),!r.isBuffer(t)||!r.isBuffer(s))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===s)return 0;let h=t.length,v=s.length;for(let R=0,P=Math.min(h,v);R<P;++R)if(t[R]!==s[R]){h=t[R],v=s[R];break}return h<v?-1:v<h?1:0},"compare"),r.isEncoding=e(function(t){switch(String(t).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}},"isEncoding"),r.concat=e(function(t,s){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return r.alloc(0);let h;if(s===void 0)for(s=0,h=0;h<t.length;++h)s+=t[h].length;let v=r.allocUnsafe(s),R=0;for(h=0;h<t.length;++h){let P=t[h];if(xe(P,Uint8Array))R+P.length>v.length?(r.isBuffer(P)||(P=r.from(P)),P.copy(v,R)):Uint8Array.prototype.set.call(v,P,R);else if(r.isBuffer(P))P.copy(v,R);else throw new TypeError('"list" argument must be an Array of Buffers');R+=P.length}return v},"concat");function E(t,s){if(r.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||xe(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);let h=t.length,v=arguments.length>2&&arguments[2]===!0;if(!v&&h===0)return 0;let R=!1;for(;;)switch(s){case"ascii":case"latin1":case"binary":return h;case"utf8":case"utf-8":return Ee(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return h*2;case"hex":return h>>>1;case"base64":return ge(t).length;default:if(R)return v?-1:Ee(t).length;s=(""+s).toLowerCase(),R=!0}}l(E,"R"),e(E,"byteLength"),r.byteLength=E;function j(t,s,h){let v=!1;if((s===void 0||s<0)&&(s=0),s>this.length||((h===void 0||h>this.length)&&(h=this.length),h<=0)||(h>>>=0,s>>>=0,h<=s))return"";for(t||(t="utf8");;)switch(t){case"hex":return se(this,s,h);case"utf8":case"utf-8":return ae(this,s,h);case"ascii":return Ie(this,s,h);case"latin1":case"binary":return je(this,s,h);case"base64":return re(this,s,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Te(this,s,h);default:if(v)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),v=!0}}l(j,"T"),e(j,"slowToString"),r.prototype._isBuffer=!0;function A(t,s,h){let v=t[s];t[s]=t[h],t[h]=v}l(A,"F"),e(A,"swap"),r.prototype.swap16=e(function(){let t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let s=0;s<t;s+=2)A(this,s,s+1);return this},"swap16"),r.prototype.swap32=e(function(){let t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let s=0;s<t;s+=4)A(this,s,s+3),A(this,s+1,s+2);return this},"swap32"),r.prototype.swap64=e(function(){let t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let s=0;s<t;s+=8)A(this,s,s+7),A(this,s+1,s+6),A(this,s+2,s+5),A(this,s+3,s+4);return this},"swap64"),r.prototype.toString=e(function(){let t=this.length;return t===0?"":arguments.length===0?ae(this,0,t):j.apply(this,arguments)},"toString"),r.prototype.toLocaleString=r.prototype.toString,r.prototype.equals=e(function(t){if(!r.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:r.compare(this,t)===0},"equals"),r.prototype.inspect=e(function(){let t="",s=Hi.INSPECT_MAX_BYTES;return t=this.toString("hex",0,s).replace(/(.{2})/g,"$1 ").trim(),this.length>s&&(t+=" ... "),"<Buffer "+t+">"},"inspect"),f&&(r.prototype[f]=r.prototype.inspect),r.prototype.compare=e(function(t,s,h,v,R){if(xe(t,Uint8Array)&&(t=r.from(t,t.offset,t.byteLength)),!r.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(s===void 0&&(s=0),h===void 0&&(h=t?t.length:0),v===void 0&&(v=0),R===void 0&&(R=this.length),s<0||h>t.length||v<0||R>this.length)throw new RangeError("out of range index");if(v>=R&&s>=h)return 0;if(v>=R)return-1;if(s>=h)return 1;if(s>>>=0,h>>>=0,v>>>=0,R>>>=0,this===t)return 0;let P=R-v,C=h-s,Z=Math.min(P,C),oe=this.slice(v,R),Ae=t.slice(s,h);for(let le=0;le<Z;++le)if(oe[le]!==Ae[le]){P=oe[le],C=Ae[le];break}return P<C?-1:C<P?1:0},"compare");function I(t,s,h,v,R){if(t.length===0)return-1;if(typeof h=="string"?(v=h,h=0):h>2147483647?h=2147483647:h<-2147483648&&(h=-2147483648),h=+h,Oe(h)&&(h=R?0:t.length-1),h<0&&(h=t.length+h),h>=t.length){if(R)return-1;h=t.length-1}else if(h<0)if(R)h=0;else return-1;if(typeof s=="string"&&(s=r.from(s,v)),r.isBuffer(s))return s.length===0?-1:U(t,s,h,v,R);if(typeof s=="number")return s=s&255,typeof Uint8Array.prototype.indexOf=="function"?R?Uint8Array.prototype.indexOf.call(t,s,h):Uint8Array.prototype.lastIndexOf.call(t,s,h):U(t,[s],h,v,R);throw new TypeError("val must be string, number or Buffer")}l(I,"S"),e(I,"bidirectionalIndexOf");function U(t,s,h,v,R){let P=1,C=t.length,Z=s.length;if(v!==void 0&&(v=String(v).toLowerCase(),v==="ucs2"||v==="ucs-2"||v==="utf16le"||v==="utf-16le")){if(t.length<2||s.length<2)return-1;P=2,C/=2,Z/=2,h/=2}function oe(le,Fe){return P===1?le[Fe]:le.readUInt16BE(Fe*P)}l(oe,"re"),e(oe,"read");let Ae;if(R){let le=-1;for(Ae=h;Ae<C;Ae++)if(oe(t,Ae)===oe(s,le===-1?0:Ae-le)){if(le===-1&&(le=Ae),Ae-le+1===Z)return le*P}else le!==-1&&(Ae-=Ae-le),le=-1}else for(h+Z>C&&(h=C-Z),Ae=h;Ae>=0;Ae--){let le=!0;for(let Fe=0;Fe<Z;Fe++)if(oe(t,Ae+Fe)!==oe(s,Fe)){le=!1;break}if(le)return Ae}return-1}l(U,"B"),e(U,"arrayIndexOf"),r.prototype.includes=e(function(t,s,h){return this.indexOf(t,s,h)!==-1},"includes"),r.prototype.indexOf=e(function(t,s,h){return I(this,t,s,h,!0)},"indexOf"),r.prototype.lastIndexOf=e(function(t,s,h){return I(this,t,s,h,!1)},"lastIndexOf");function M(t,s,h,v){h=Number(h)||0;let R=t.length-h;v?(v=Number(v),v>R&&(v=R)):v=R;let P=s.length;v>P/2&&(v=P/2);let C;for(C=0;C<v;++C){let Z=parseInt(s.substr(C*2,2),16);if(Oe(Z))return C;t[h+C]=Z}return C}l(M,"I"),e(M,"hexWrite");function ee(t,s,h,v){return Ne(Ee(s,t.length-h),t,h,v)}l(ee,"D"),e(ee,"utf8Write");function V(t,s,h,v){return Ne(ke(s),t,h,v)}l(V,"L"),e(V,"asciiWrite");function q(t,s,h,v){return Ne(ge(s),t,h,v)}l(q,"C"),e(q,"base64Write");function G(t,s,h,v){return Ne(be(s,t.length-h),t,h,v)}l(G,"j"),e(G,"ucs2Write"),r.prototype.write=e(function(t,s,h,v){if(s===void 0)v="utf8",h=this.length,s=0;else if(h===void 0&&typeof s=="string")v=s,h=this.length,s=0;else if(isFinite(s))s=s>>>0,isFinite(h)?(h=h>>>0,v===void 0&&(v="utf8")):(v=h,h=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let R=this.length-s;if((h===void 0||h>R)&&(h=R),t.length>0&&(h<0||s<0)||s>this.length)throw new RangeError("Attempt to write outside buffer bounds");v||(v="utf8");let P=!1;for(;;)switch(v){case"hex":return M(this,t,s,h);case"utf8":case"utf-8":return ee(this,t,s,h);case"ascii":case"latin1":case"binary":return V(this,t,s,h);case"base64":return q(this,t,s,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,t,s,h);default:if(P)throw new TypeError("Unknown encoding: "+v);v=(""+v).toLowerCase(),P=!0}},"write"),r.prototype.toJSON=e(function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},"toJSON");function re(t,s,h){return s===0&&h===t.length?o.fromByteArray(t):o.fromByteArray(t.slice(s,h))}l(re,"q"),e(re,"base64Slice");function ae(t,s,h){h=Math.min(t.length,h);let v=[],R=s;for(;R<h;){let P=t[R],C=null,Z=P>239?4:P>223?3:P>191?2:1;if(R+Z<=h){let oe,Ae,le,Fe;switch(Z){case 1:P<128&&(C=P);break;case 2:oe=t[R+1],(oe&192)===128&&(Fe=(P&31)<<6|oe&63,Fe>127&&(C=Fe));break;case 3:oe=t[R+1],Ae=t[R+2],(oe&192)===128&&(Ae&192)===128&&(Fe=(P&15)<<12|(oe&63)<<6|Ae&63,Fe>2047&&(Fe<55296||Fe>57343)&&(C=Fe));break;case 4:oe=t[R+1],Ae=t[R+2],le=t[R+3],(oe&192)===128&&(Ae&192)===128&&(le&192)===128&&(Fe=(P&15)<<18|(oe&63)<<12|(Ae&63)<<6|le&63,Fe>65535&&Fe<1114112&&(C=Fe))}}C===null?(C=65533,Z=1):C>65535&&(C-=65536,v.push(C>>>10&1023|55296),C=56320|C&1023),v.push(C),R+=Z}return we(v)}l(ae,"Z"),e(ae,"utf8Slice");let de=4096;function we(t){let s=t.length;if(s<=de)return String.fromCharCode.apply(String,t);let h="",v=0;for(;v<s;)h+=String.fromCharCode.apply(String,t.slice(v,v+=de));return h}l(we,"se"),e(we,"decodeCodePointsArray");function Ie(t,s,h){let v="";h=Math.min(t.length,h);for(let R=s;R<h;++R)v+=String.fromCharCode(t[R]&127);return v}l(Ie,"_e"),e(Ie,"asciiSlice");function je(t,s,h){let v="";h=Math.min(t.length,h);for(let R=s;R<h;++R)v+=String.fromCharCode(t[R]);return v}l(je,"pe"),e(je,"latin1Slice");function se(t,s,h){let v=t.length;(!s||s<0)&&(s=0),(!h||h<0||h>v)&&(h=v);let R="";for(let P=s;P<h;++P)R+=Pe[t[P]];return R}l(se,"Q"),e(se,"hexSlice");function Te(t,s,h){let v=t.slice(s,h),R="";for(let P=0;P<v.length-1;P+=2)R+=String.fromCharCode(v[P]+v[P+1]*256);return R}l(Te,"he"),e(Te,"utf16leSlice"),r.prototype.slice=e(function(t,s){let h=this.length;t=~~t,s=s===void 0?h:~~s,t<0?(t+=h,t<0&&(t=0)):t>h&&(t=h),s<0?(s+=h,s<0&&(s=0)):s>h&&(s=h),s<t&&(s=t);let v=this.subarray(t,s);return Object.setPrototypeOf(v,r.prototype),v},"slice");function J(t,s,h){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+s>h)throw new RangeError("Trying to access beyond buffer length")}l(J,"U"),e(J,"checkOffset"),r.prototype.readUintLE=r.prototype.readUIntLE=e(function(t,s,h){t=t>>>0,s=s>>>0,h||J(t,s,this.length);let v=this[t],R=1,P=0;for(;++P<s&&(R*=256);)v+=this[t+P]*R;return v},"readUIntLE"),r.prototype.readUintBE=r.prototype.readUIntBE=e(function(t,s,h){t=t>>>0,s=s>>>0,h||J(t,s,this.length);let v=this[t+--s],R=1;for(;s>0&&(R*=256);)v+=this[t+--s]*R;return v},"readUIntBE"),r.prototype.readUint8=r.prototype.readUInt8=e(function(t,s){return t=t>>>0,s||J(t,1,this.length),this[t]},"readUInt8"),r.prototype.readUint16LE=r.prototype.readUInt16LE=e(function(t,s){return t=t>>>0,s||J(t,2,this.length),this[t]|this[t+1]<<8},"readUInt16LE"),r.prototype.readUint16BE=r.prototype.readUInt16BE=e(function(t,s){return t=t>>>0,s||J(t,2,this.length),this[t]<<8|this[t+1]},"readUInt16BE"),r.prototype.readUint32LE=r.prototype.readUInt32LE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216},"readUInt32LE"),r.prototype.readUint32BE=r.prototype.readUInt32BE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])},"readUInt32BE"),r.prototype.readBigUInt64LE=$e(e(function(t){t=t>>>0,N(t,"offset");let s=this[t],h=this[t+7];(s===void 0||h===void 0)&&x(t,this.length-8);let v=s+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,R=this[++t]+this[++t]*2**8+this[++t]*2**16+h*2**24;return BigInt(v)+(BigInt(R)<<BigInt(32))},"readBigUInt64LE")),r.prototype.readBigUInt64BE=$e(e(function(t){t=t>>>0,N(t,"offset");let s=this[t],h=this[t+7];(s===void 0||h===void 0)&&x(t,this.length-8);let v=s*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],R=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+h;return(BigInt(v)<<BigInt(32))+BigInt(R)},"readBigUInt64BE")),r.prototype.readIntLE=e(function(t,s,h){t=t>>>0,s=s>>>0,h||J(t,s,this.length);let v=this[t],R=1,P=0;for(;++P<s&&(R*=256);)v+=this[t+P]*R;return R*=128,v>=R&&(v-=Math.pow(2,8*s)),v},"readIntLE"),r.prototype.readIntBE=e(function(t,s,h){t=t>>>0,s=s>>>0,h||J(t,s,this.length);let v=s,R=1,P=this[t+--v];for(;v>0&&(R*=256);)P+=this[t+--v]*R;return R*=128,P>=R&&(P-=Math.pow(2,8*s)),P},"readIntBE"),r.prototype.readInt8=e(function(t,s){return t=t>>>0,s||J(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]},"readInt8"),r.prototype.readInt16LE=e(function(t,s){t=t>>>0,s||J(t,2,this.length);let h=this[t]|this[t+1]<<8;return h&32768?h|4294901760:h},"readInt16LE"),r.prototype.readInt16BE=e(function(t,s){t=t>>>0,s||J(t,2,this.length);let h=this[t+1]|this[t]<<8;return h&32768?h|4294901760:h},"readInt16BE"),r.prototype.readInt32LE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},"readInt32LE"),r.prototype.readInt32BE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},"readInt32BE"),r.prototype.readBigInt64LE=$e(e(function(t){t=t>>>0,N(t,"offset");let s=this[t],h=this[t+7];(s===void 0||h===void 0)&&x(t,this.length-8);let v=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(h<<24);return(BigInt(v)<<BigInt(32))+BigInt(s+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24)},"readBigInt64LE")),r.prototype.readBigInt64BE=$e(e(function(t){t=t>>>0,N(t,"offset");let s=this[t],h=this[t+7];(s===void 0||h===void 0)&&x(t,this.length-8);let v=(s<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(v)<<BigInt(32))+BigInt(this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+h)},"readBigInt64BE")),r.prototype.readFloatLE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),i.read(this,t,!0,23,4)},"readFloatLE"),r.prototype.readFloatBE=e(function(t,s){return t=t>>>0,s||J(t,4,this.length),i.read(this,t,!1,23,4)},"readFloatBE"),r.prototype.readDoubleLE=e(function(t,s){return t=t>>>0,s||J(t,8,this.length),i.read(this,t,!0,52,8)},"readDoubleLE"),r.prototype.readDoubleBE=e(function(t,s){return t=t>>>0,s||J(t,8,this.length),i.read(this,t,!1,52,8)},"readDoubleBE");function ue(t,s,h,v,R,P){if(!r.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(s>R||s<P)throw new RangeError('"value" argument is out of bounds');if(h+v>t.length)throw new RangeError("Index out of range")}l(ue,"J"),e(ue,"checkInt"),r.prototype.writeUintLE=r.prototype.writeUIntLE=e(function(t,s,h,v){if(t=+t,s=s>>>0,h=h>>>0,!v){let C=Math.pow(2,8*h)-1;ue(this,t,s,h,C,0)}let R=1,P=0;for(this[s]=t&255;++P<h&&(R*=256);)this[s+P]=t/R&255;return s+h},"writeUIntLE"),r.prototype.writeUintBE=r.prototype.writeUIntBE=e(function(t,s,h,v){if(t=+t,s=s>>>0,h=h>>>0,!v){let C=Math.pow(2,8*h)-1;ue(this,t,s,h,C,0)}let R=h-1,P=1;for(this[s+R]=t&255;--R>=0&&(P*=256);)this[s+R]=t/P&255;return s+h},"writeUIntBE"),r.prototype.writeUint8=r.prototype.writeUInt8=e(function(t,s,h){return t=+t,s=s>>>0,h||ue(this,t,s,1,255,0),this[s]=t&255,s+1},"writeUInt8"),r.prototype.writeUint16LE=r.prototype.writeUInt16LE=e(function(t,s,h){return t=+t,s=s>>>0,h||ue(this,t,s,2,65535,0),this[s]=t&255,this[s+1]=t>>>8,s+2},"writeUInt16LE"),r.prototype.writeUint16BE=r.prototype.writeUInt16BE=e(function(t,s,h){return t=+t,s=s>>>0,h||ue(this,t,s,2,65535,0),this[s]=t>>>8,this[s+1]=t&255,s+2},"writeUInt16BE"),r.prototype.writeUint32LE=r.prototype.writeUInt32LE=e(function(t,s,h){return t=+t,s=s>>>0,h||ue(this,t,s,4,4294967295,0),this[s+3]=t>>>24,this[s+2]=t>>>16,this[s+1]=t>>>8,this[s]=t&255,s+4},"writeUInt32LE"),r.prototype.writeUint32BE=r.prototype.writeUInt32BE=e(function(t,s,h){return t=+t,s=s>>>0,h||ue(this,t,s,4,4294967295,0),this[s]=t>>>24,this[s+1]=t>>>16,this[s+2]=t>>>8,this[s+3]=t&255,s+4},"writeUInt32BE");function te(t,s,h,v,R){ve(s,v,R,t,h,7);let P=Number(s&BigInt(4294967295));t[h++]=P,P=P>>8,t[h++]=P,P=P>>8,t[h++]=P,P=P>>8,t[h++]=P;let C=Number(s>>BigInt(32)&BigInt(4294967295));return t[h++]=C,C=C>>8,t[h++]=C,C=C>>8,t[h++]=C,C=C>>8,t[h++]=C,h}l(te,"z"),e(te,"wrtBigUInt64LE");function X(t,s,h,v,R){ve(s,v,R,t,h,7);let P=Number(s&BigInt(4294967295));t[h+7]=P,P=P>>8,t[h+6]=P,P=P>>8,t[h+5]=P,P=P>>8,t[h+4]=P;let C=Number(s>>BigInt(32)&BigInt(4294967295));return t[h+3]=C,C=C>>8,t[h+2]=C,C=C>>8,t[h+1]=C,C=C>>8,t[h]=C,h+8}l(X,"V"),e(X,"wrtBigUInt64BE"),r.prototype.writeBigUInt64LE=$e(e(function(t,s=0){return te(this,t,s,BigInt(0),BigInt("0xffffffffffffffff"))},"writeBigUInt64LE")),r.prototype.writeBigUInt64BE=$e(e(function(t,s=0){return X(this,t,s,BigInt(0),BigInt("0xffffffffffffffff"))},"writeBigUInt64BE")),r.prototype.writeIntLE=e(function(t,s,h,v){if(t=+t,s=s>>>0,!v){let Z=Math.pow(2,8*h-1);ue(this,t,s,h,Z-1,-Z)}let R=0,P=1,C=0;for(this[s]=t&255;++R<h&&(P*=256);)t<0&&C===0&&this[s+R-1]!==0&&(C=1),this[s+R]=(t/P>>0)-C&255;return s+h},"writeIntLE"),r.prototype.writeIntBE=e(function(t,s,h,v){if(t=+t,s=s>>>0,!v){let Z=Math.pow(2,8*h-1);ue(this,t,s,h,Z-1,-Z)}let R=h-1,P=1,C=0;for(this[s+R]=t&255;--R>=0&&(P*=256);)t<0&&C===0&&this[s+R+1]!==0&&(C=1),this[s+R]=(t/P>>0)-C&255;return s+h},"writeIntBE"),r.prototype.writeInt8=e(function(t,s,h){return t=+t,s=s>>>0,h||ue(this,t,s,1,127,-128),t<0&&(t=255+t+1),this[s]=t&255,s+1},"writeInt8"),r.prototype.writeInt16LE=e(function(t,s,h){return t=+t,s=s>>>0,h||ue(this,t,s,2,32767,-32768),this[s]=t&255,this[s+1]=t>>>8,s+2},"writeInt16LE"),r.prototype.writeInt16BE=e(function(t,s,h){return t=+t,s=s>>>0,h||ue(this,t,s,2,32767,-32768),this[s]=t>>>8,this[s+1]=t&255,s+2},"writeInt16BE"),r.prototype.writeInt32LE=e(function(t,s,h){return t=+t,s=s>>>0,h||ue(this,t,s,4,2147483647,-2147483648),this[s]=t&255,this[s+1]=t>>>8,this[s+2]=t>>>16,this[s+3]=t>>>24,s+4},"writeInt32LE"),r.prototype.writeInt32BE=e(function(t,s,h){return t=+t,s=s>>>0,h||ue(this,t,s,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[s]=t>>>24,this[s+1]=t>>>16,this[s+2]=t>>>8,this[s+3]=t&255,s+4},"writeInt32BE"),r.prototype.writeBigInt64LE=$e(e(function(t,s=0){return te(this,t,s,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))},"writeBigInt64LE")),r.prototype.writeBigInt64BE=$e(e(function(t,s=0){return X(this,t,s,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))},"writeBigInt64BE"));function ye(t,s,h,v,R,P){if(h+v>t.length)throw new RangeError("Index out of range");if(h<0)throw new RangeError("Index out of range")}l(ye,"G"),e(ye,"checkIEEE754");function Re(t,s,h,v,R){return s=+s,h=h>>>0,R||ye(t,s,h,4),i.write(t,s,h,v,23,4),h+4}l(Re,"fe"),e(Re,"writeFloat"),r.prototype.writeFloatLE=e(function(t,s,h){return Re(this,t,s,!0,h)},"writeFloatLE"),r.prototype.writeFloatBE=e(function(t,s,h){return Re(this,t,s,!1,h)},"writeFloatBE");function De(t,s,h,v,R){return s=+s,h=h>>>0,R||ye(t,s,h,8),i.write(t,s,h,v,52,8),h+8}l(De,"be"),e(De,"writeDouble"),r.prototype.writeDoubleLE=e(function(t,s,h){return De(this,t,s,!0,h)},"writeDoubleLE"),r.prototype.writeDoubleBE=e(function(t,s,h){return De(this,t,s,!1,h)},"writeDoubleBE"),r.prototype.copy=e(function(t,s,h,v){if(!r.isBuffer(t))throw new TypeError("argument should be a Buffer");if(h||(h=0),!v&&v!==0&&(v=this.length),s>=t.length&&(s=t.length),s||(s=0),v>0&&v<h&&(v=h),v===h||t.length===0||this.length===0)return 0;if(s<0)throw new RangeError("targetStart out of bounds");if(h<0||h>=this.length)throw new RangeError("Index out of range");if(v<0)throw new RangeError("sourceEnd out of bounds");v>this.length&&(v=this.length),t.length-s<v-h&&(v=t.length-s+h);let R=v-h;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(s,h,v):Uint8Array.prototype.set.call(t,this.subarray(h,v),s),R},"copy"),r.prototype.fill=e(function(t,s,h,v){if(typeof t=="string"){if(typeof s=="string"?(v=s,s=0,h=this.length):typeof h=="string"&&(v=h,h=this.length),v!==void 0&&typeof v!="string")throw new TypeError("encoding must be a string");if(typeof v=="string"&&!r.isEncoding(v))throw new TypeError("Unknown encoding: "+v);if(t.length===1){let P=t.charCodeAt(0);(v==="utf8"&&P<128||v==="latin1")&&(t=P)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(s<0||this.length<s||this.length<h)throw new RangeError("Out of range index");if(h<=s)return this;s=s>>>0,h=h===void 0?this.length:h>>>0,t||(t=0);let R;if(typeof t=="number")for(R=s;R<h;++R)this[R]=t;else{let P=r.isBuffer(t)?t:r.from(t,v),C=P.length;if(C===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(R=0;R<h-s;++R)this[R+s]=P[R%C]}return this},"fill");let Y={};function H(t,s,h){var R;var v;Y[t]=(v=(R=class extends h{constructor(){super(),Object.defineProperty(this,"message",{value:s.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(C){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:C,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}},l(R,"w"),R),e(v,"NodeError"),v)}l(H,"$"),e(H,"E3"),H("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),H("ERR_INVALID_ARG_TYPE",function(t,s){return`The "${t}" argument must be of type number. Received type ${typeof s}`},TypeError),H("ERR_OUT_OF_RANGE",function(t,s,h){let v=`The value of "${t}" is out of range.`,R=h;return Number.isInteger(h)&&Math.abs(h)>2**32?R=Q(String(h)):typeof h=="bigint"&&(R=String(h),(h>BigInt(2)**BigInt(32)||h<-(BigInt(2)**BigInt(32)))&&(R=Q(R)),R+="n"),v+=` It must be ${s}. Received ${R}`,v},RangeError);function Q(t){let s="",h=t.length,v=t[0]==="-"?1:0;for(;h>=v+4;h-=3)s=`_${t.slice(h-3,h)}${s}`;return`${t.slice(0,h)}${s}`}l(Q,"H"),e(Q,"addNumericalSeparator");function fe(t,s,h){N(s,"offset"),(t[s]===void 0||t[s+h]===void 0)&&x(s,t.length-(h+1))}l(fe,"te"),e(fe,"checkBounds");function ve(t,s,h,v,R,P){if(t>h||t<s){let C=typeof s=="bigint"?"n":"",Z;throw s===0||s===BigInt(0)?Z=`>= 0${C} and < 2${C} ** ${(P+1)*8}${C}`:Z=`>= -(2${C} ** ${(P+1)*8-1}${C}) and < 2 ** ${(P+1)*8-1}${C}`,new Y.ERR_OUT_OF_RANGE("value",Z,t)}fe(v,R,P)}l(ve,"oe"),e(ve,"checkIntBI");function N(t,s){if(typeof t!="number")throw new Y.ERR_INVALID_ARG_TYPE(s,"number",t)}l(N,"P"),e(N,"validateNumber");function x(t,s,h){throw Math.floor(t)!==t?(N(t,h),new Y.ERR_OUT_OF_RANGE("offset","an integer",t)):s<0?new Y.ERR_BUFFER_OUT_OF_BOUNDS:new Y.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${s}`,t)}l(x,"x"),e(x,"boundsError");let D=/[^+/0-9A-Za-z-_]/g;function z(t){if(t=t.split("=")[0],t=t.trim().replace(D,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}l(z,"Y"),e(z,"base64clean");function Ee(t,s){s=s||1/0;let h,v=t.length,R=null,P=[];for(let C=0;C<v;++C){if(h=t.charCodeAt(C),h>55295&&h<57344){if(!R){if(h>56319){(s-=3)>-1&&P.push(239,191,189);continue}else if(C+1===v){(s-=3)>-1&&P.push(239,191,189);continue}R=h;continue}if(h<56320){(s-=3)>-1&&P.push(239,191,189),R=h;continue}h=(R-55296<<10|h-56320)+65536}else R&&(s-=3)>-1&&P.push(239,191,189);if(R=null,h<128){if((s-=1)<0)break;P.push(h)}else if(h<2048){if((s-=2)<0)break;P.push(h>>6|192,h&63|128)}else if(h<65536){if((s-=3)<0)break;P.push(h>>12|224,h>>6&63|128,h&63|128)}else if(h<1114112){if((s-=4)<0)break;P.push(h>>18|240,h>>12&63|128,h>>6&63|128,h&63|128)}else throw new Error("Invalid code point")}return P}l(Ee,"ue"),e(Ee,"utf8ToBytes");function ke(t){let s=[];for(let h=0;h<t.length;++h)s.push(t.charCodeAt(h)&255);return s}l(ke,"le"),e(ke,"asciiToBytes");function be(t,s){let h,v,R,P=[];for(let C=0;C<t.length&&!((s-=2)<0);++C)h=t.charCodeAt(C),v=h>>8,R=h%256,P.push(R),P.push(v);return P}l(be,"ee"),e(be,"utf16leToBytes");function ge(t){return o.toByteArray(z(t))}l(ge,"ie"),e(ge,"base64ToBytes");function Ne(t,s,h,v){let R;for(R=0;R<v&&!(R+h>=s.length||R>=t.length);++R)s[R+h]=t[R];return R}l(Ne,"me"),e(Ne,"blitBuffer");function xe(t,s){return t instanceof s||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===s.name}l(xe,"ye"),e(xe,"isInstance");function Oe(t){return t!==t}l(Oe,"ve"),e(Oe,"numberIsNaN");let Pe=function(){let t="0123456789abcdef",s=new Array(256);for(let h=0;h<16;++h){let v=h*16;for(let R=0;R<16;++R)s[v+R]=t[h]+t[R]}return s}();function $e(t){return typeof BigInt>"u"?Ke:t}l($e,"Be"),e($e,"defineBigIntMethod");function Ke(){throw new Error("BigInt not supported")}return l(Ke,"Xe"),e(Ke,"BufferBigIntNotDefined"),Hi}function Zi(){return B_||(B_=!0,typeof Object.create=="function"?Fh=e(function(o,i){i&&(o.super_=i,o.prototype=Object.create(i.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}))},"inherits"):Fh=e(function(o,i){if(i){o.super_=i;var f=e(function(){},"TempCtor");f.prototype=i.prototype,o.prototype=new f,o.prototype.constructor=o}},"inherits")),Fh}function h2(){return x_||(x_=!0,I_=yn.EventEmitter),I_}function E4(){if(j_)return Bh;j_=!0;function o(y,w){var _=Object.keys(y);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(y);w&&(S=S.filter(function(T){return Object.getOwnPropertyDescriptor(y,T).enumerable})),_.push.apply(_,S)}return _}l(o,"e"),e(o,"ownKeys");function i(y){for(var w=1;w<arguments.length;w++){var _=arguments[w]!=null?arguments[w]:{};w%2?o(Object(_),!0).forEach(function(S){f(y,S,_[S])}):Object.getOwnPropertyDescriptors?Object.defineProperties(y,Object.getOwnPropertyDescriptors(_)):o(Object(_)).forEach(function(S){Object.defineProperty(y,S,Object.getOwnPropertyDescriptor(_,S))})}return y}l(i,"t"),e(i,"_objectSpread");function f(y,w,_){return w in y?Object.defineProperty(y,w,{value:_,enumerable:!0,configurable:!0,writable:!0}):y[w]=_,y}l(f,"r"),e(f,"_defineProperty");function g(y,w){if(!(y instanceof w))throw new TypeError("Cannot call a class as a function")}l(g,"n"),e(g,"_classCallCheck");function a(y,w){for(var _=0;_<w.length;_++){var S=w[_];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(y,S.key,S)}}l(a,"a"),e(a,"_defineProperties");function n(y,w,_){return w&&a(y.prototype,w),y}l(n,"s"),e(n,"_createClass");var r=wi,u=r.Buffer,p=at,c=p.inspect,d=c&&c.custom||"inspect";function m(y,w,_){u.prototype.copy.call(y,w,_)}return l(m,"y"),e(m,"copyBuffer"),Bh=function(){function y(){g(this,y),this.head=null,this.tail=null,this.length=0}return l(y,"m"),e(y,"BufferList"),n(y,[{key:"push",value:e(function(w){var _={data:w,next:null};this.length>0?this.tail.next=_:this.head=_,this.tail=_,++this.length},"push")},{key:"unshift",value:e(function(w){var _={data:w,next:this.head};this.length===0&&(this.tail=_),this.head=_,++this.length},"unshift")},{key:"shift",value:e(function(){if(this.length!==0){var w=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,w}},"shift")},{key:"clear",value:e(function(){this.head=this.tail=null,this.length=0},"clear")},{key:"join",value:e(function(w){if(this.length===0)return"";for(var _=this.head,S=""+_.data;_=_.next;)S+=w+_.data;return S},"join")},{key:"concat",value:e(function(w){if(this.length===0)return u.alloc(0);for(var _=u.allocUnsafe(w>>>0),S=this.head,T=0;S;)m(S.data,_,T),T+=S.data.length,S=S.next;return _},"concat")},{key:"consume",value:e(function(w,_){var S;return w<this.head.data.length?(S=this.head.data.slice(0,w),this.head.data=this.head.data.slice(w)):w===this.head.data.length?S=this.shift():S=_?this._getString(w):this._getBuffer(w),S},"consume")},{key:"first",value:e(function(){return this.head.data},"first")},{key:"_getString",value:e(function(w){var _=this.head,S=1,T=_.data;for(w-=T.length;_=_.next;){var k=_.data,E=w>k.length?k.length:w;if(E===k.length?T+=k:T+=k.slice(0,w),w-=E,w===0){E===k.length?(++S,_.next?this.head=_.next:this.head=this.tail=null):(this.head=_,_.data=k.slice(E));break}++S}return this.length-=S,T},"_getString")},{key:"_getBuffer",value:e(function(w){var _=u.allocUnsafe(w),S=this.head,T=1;for(S.data.copy(_),w-=S.data.length;S=S.next;){var k=S.data,E=w>k.length?k.length:w;if(k.copy(_,_.length-w,0,E),w-=E,w===0){E===k.length?(++T,S.next?this.head=S.next:this.head=this.tail=null):(this.head=S,S.data=k.slice(E));break}++T}return this.length-=T,_},"_getBuffer")},{key:d,value:e(function(w,_){return c(this,i({},_,{depth:0,customInspect:!1}))},"value")}]),y}(),Bh}function d2(){if(C_)return Ih;C_=!0;var o=Ot;function i(u,p){var c=this,d=this._readableState&&this._readableState.destroyed,m=this._writableState&&this._writableState.destroyed;return d||m?(p?p(u):u&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,o.nextTick(n,this,u)):o.nextTick(n,this,u)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(u||null,function(y){!p&&y?c._writableState?c._writableState.errorEmitted?o.nextTick(g,c):(c._writableState.errorEmitted=!0,o.nextTick(f,c,y)):o.nextTick(f,c,y):p?(o.nextTick(g,c),p(y)):o.nextTick(g,c)}),this)}l(i,"t"),e(i,"destroy");function f(u,p){n(u,p),g(u)}l(f,"r"),e(f,"emitErrorAndCloseNT");function g(u){u._writableState&&!u._writableState.emitClose||u._readableState&&!u._readableState.emitClose||u.emit("close")}l(g,"n"),e(g,"emitCloseNT");function a(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}l(a,"a"),e(a,"undestroy");function n(u,p){u.emit("error",p)}l(n,"s"),e(n,"emitErrorNT");function r(u,p){var c=u._readableState,d=u._writableState;c&&c.autoDestroy||d&&d.autoDestroy?u.destroy(p):u.emit("error",p)}return l(r,"i"),e(r,"errorOrDestroy"),Ih={destroy:i,undestroy:a,errorOrDestroy:r},Ih}function La(){if(P_)return xh;P_=!0;let o={};function i(r,u,p){var y;p||(p=Error);function c(w,_,S){return typeof u=="string"?u:u(w,_,S)}l(c,"c"),e(c,"getMessage");let d=(y=class extends p{constructor(_,S,T){super(c(_,S,T))}},l(y,"y"),y);e(d,"NodeError");let m=d;m.prototype.name=p.name,m.prototype.code=r,o[r]=m}l(i,"t"),e(i,"createErrorType");function f(r,u){if(Array.isArray(r)){let p=r.length;return r=r.map(c=>String(c)),p>2?`one of ${u} ${r.slice(0,p-1).join(", ")}, or `+r[p-1]:p===2?`one of ${u} ${r[0]} or ${r[1]}`:`of ${u} ${r[0]}`}else return`of ${u} ${String(r)}`}l(f,"r"),e(f,"oneOf");function g(r,u,p){return r.substr(0,u.length)===u}l(g,"n"),e(g,"startsWith");function a(r,u,p){return(p===void 0||p>r.length)&&(p=r.length),r.substring(p-u.length,p)===u}l(a,"a"),e(a,"endsWith");function n(r,u,p){return typeof p!="number"&&(p=0),p+u.length>r.length?!1:r.indexOf(u,p)!==-1}return l(n,"s"),e(n,"includes"),i("ERR_INVALID_OPT_VALUE",function(r,u){return'The value "'+u+'" is invalid for option "'+r+'"'},TypeError),i("ERR_INVALID_ARG_TYPE",function(r,u,p){let c;typeof u=="string"&&g(u,"not ")?(c="must not be",u=u.replace(/^not /,"")):c="must be";let d;if(a(r," argument"))d=`The ${r} ${c} ${f(u,"type")}`;else{let m=n(r,".")?"property":"argument";d=`The "${r}" ${m} ${c} ${f(u,"type")}`}return d+=`. Received type ${typeof p}`,d},TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",function(r){return"The "+r+" method is not implemented"}),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",function(r){return"Cannot call "+r+" after a stream was destroyed"}),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",function(r){return"Unknown encoding: "+r},TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),xh.codes=o,xh}function p2(){if(L_)return jh;L_=!0;var o=La().codes.ERR_INVALID_OPT_VALUE;function i(g,a,n){return g.highWaterMark!=null?g.highWaterMark:a?g[n]:null}l(i,"t"),e(i,"highWaterMarkFrom");function f(g,a,n,r){var u=i(a,r,n);if(u!=null){if(!(isFinite(u)&&Math.floor(u)===u)||u<0){var p=r?n:"highWaterMark";throw new o(p,u)}return Math.floor(u)}return g.objectMode?16:16*1024}return l(f,"r"),e(f,"getHighWaterMark"),jh={getHighWaterMark:f},jh}function S4(){if(N_)return Ch;N_=!0,Ch=o;function o(f,g){if(i("noDeprecation"))return f;var a=!1;function n(){if(!a){if(i("throwDeprecation"))throw new Error(g);i("traceDeprecation")?console.trace(g):console.warn(g),a=!0}return f.apply(this||Ph,arguments)}return l(n,"s"),e(n,"deprecated"),n}l(o,"e"),e(o,"deprecate");function i(f){try{if(!Ph.localStorage)return!1}catch{return!1}var g=Ph.localStorage[f];return g==null?!1:String(g).toLowerCase()==="true"}return l(i,"t"),e(i,"config"),Ch}function g2(){if(D_)return Lh;D_=!0;var o=Ot;Lh=V;function i(Y){var H=this;this.next=null,this.entry=null,this.finish=function(){De(H,Y)}}l(i,"t"),e(i,"CorkedRequest");var f;V.WritableState=M;var g={deprecate:S4()},a=h2(),n=wi.Buffer,r=W4.Uint8Array||function(){};function u(Y){return n.from(Y)}l(u,"f"),e(u,"_uint8ArrayToBuffer");function p(Y){return n.isBuffer(Y)||Y instanceof r}l(p,"h"),e(p,"_isUint8Array");var c=d2(),d=p2(),m=d.getHighWaterMark,y=La().codes,w=y.ERR_INVALID_ARG_TYPE,_=y.ERR_METHOD_NOT_IMPLEMENTED,S=y.ERR_MULTIPLE_CALLBACK,T=y.ERR_STREAM_CANNOT_PIPE,k=y.ERR_STREAM_DESTROYED,E=y.ERR_STREAM_NULL_VALUES,j=y.ERR_STREAM_WRITE_AFTER_END,A=y.ERR_UNKNOWN_ENCODING,I=c.errorOrDestroy;Zi()(V,a);function U(){}l(U,"B"),e(U,"nop");function M(Y,H,Q){f=f||Ta(),Y=Y||{},typeof Q!="boolean"&&(Q=H instanceof f),this.objectMode=!!Y.objectMode,Q&&(this.objectMode=this.objectMode||!!Y.writableObjectMode),this.highWaterMark=m(this,Y,"writableHighWaterMark",Q),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var fe=Y.decodeStrings===!1;this.decodeStrings=!fe,this.defaultEncoding=Y.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ve){je(H,ve)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=Y.emitClose!==!1,this.autoDestroy=!!Y.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}l(M,"I"),e(M,"WritableState"),M.prototype.getBuffer=e(function(){for(var Y=this.bufferedRequest,H=[];Y;)H.push(Y),Y=Y.next;return H},"getBuffer"),function(){try{Object.defineProperty(M.prototype,"buffer",{get:g.deprecate(e(function(){return this.getBuffer()},"writableStateBufferGetter"),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var ee;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ee=Function.prototype[Symbol.hasInstance],Object.defineProperty(V,Symbol.hasInstance,{value:e(function(Y){return ee.call(this,Y)?!0:this!==V?!1:Y&&Y._writableState instanceof M},"value")})):ee=e(function(Y){return Y instanceof this},"realHasInstance2");function V(Y){f=f||Ta();var H=this instanceof f;if(!H&&!ee.call(V,this))return new V(Y);this._writableState=new M(Y,this,H),this.writable=!0,Y&&(typeof Y.write=="function"&&(this._write=Y.write),typeof Y.writev=="function"&&(this._writev=Y.writev),typeof Y.destroy=="function"&&(this._destroy=Y.destroy),typeof Y.final=="function"&&(this._final=Y.final)),a.call(this)}l(V,"L"),e(V,"Writable"),V.prototype.pipe=function(){I(this,new T)};function q(Y,H){var Q=new j;I(Y,Q),o.nextTick(H,Q)}l(q,"C"),e(q,"writeAfterEnd");function G(Y,H,Q,fe){var ve;return Q===null?ve=new E:typeof Q!="string"&&!H.objectMode&&(ve=new w("chunk",["string","Buffer"],Q)),ve?(I(Y,ve),o.nextTick(fe,ve),!1):!0}l(G,"j"),e(G,"validChunk"),V.prototype.write=function(Y,H,Q){var fe=this._writableState,ve=!1,N=!fe.objectMode&&p(Y);return N&&!n.isBuffer(Y)&&(Y=u(Y)),typeof H=="function"&&(Q=H,H=null),N?H="buffer":H||(H=fe.defaultEncoding),typeof Q!="function"&&(Q=U),fe.ending?q(this,Q):(N||G(this,fe,Y,Q))&&(fe.pendingcb++,ve=ae(this,fe,N,Y,H,Q)),ve},V.prototype.cork=function(){this._writableState.corked++},V.prototype.uncork=function(){var Y=this._writableState;Y.corked&&(Y.corked--,!Y.writing&&!Y.corked&&!Y.bufferProcessing&&Y.bufferedRequest&&J(this,Y))},V.prototype.setDefaultEncoding=e(function(Y){if(typeof Y=="string"&&(Y=Y.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Y+"").toLowerCase())>-1))throw new A(Y);return this._writableState.defaultEncoding=Y,this},"setDefaultEncoding"),Object.defineProperty(V.prototype,"writableBuffer",{enumerable:!1,get:e(function(){return this._writableState&&this._writableState.getBuffer()},"get2")});function re(Y,H,Q){return!Y.objectMode&&Y.decodeStrings!==!1&&typeof H=="string"&&(H=n.from(H,Q)),H}l(re,"q"),e(re,"decodeChunk"),Object.defineProperty(V.prototype,"writableHighWaterMark",{enumerable:!1,get:e(function(){return this._writableState.highWaterMark},"get2")});function ae(Y,H,Q,fe,ve,N){if(!Q){var x=re(H,fe,ve);fe!==x&&(Q=!0,ve="buffer",fe=x)}var D=H.objectMode?1:fe.length;H.length+=D;var z=H.length<H.highWaterMark;if(z||(H.needDrain=!0),H.writing||H.corked){var Ee=H.lastBufferedRequest;H.lastBufferedRequest={chunk:fe,encoding:ve,isBuf:Q,callback:N,next:null},Ee?Ee.next=H.lastBufferedRequest:H.bufferedRequest=H.lastBufferedRequest,H.bufferedRequestCount+=1}else de(Y,H,!1,D,fe,ve,N);return z}l(ae,"Z"),e(ae,"writeOrBuffer");function de(Y,H,Q,fe,ve,N,x){H.writelen=fe,H.writecb=x,H.writing=!0,H.sync=!0,H.destroyed?H.onwrite(new k("write")):Q?Y._writev(ve,H.onwrite):Y._write(ve,N,H.onwrite),H.sync=!1}l(de,"K"),e(de,"doWrite");function we(Y,H,Q,fe,ve){--H.pendingcb,Q?(o.nextTick(ve,fe),o.nextTick(ye,Y,H),Y._writableState.errorEmitted=!0,I(Y,fe)):(ve(fe),Y._writableState.errorEmitted=!0,I(Y,fe),ye(Y,H))}l(we,"se"),e(we,"onwriteError");function Ie(Y){Y.writing=!1,Y.writecb=null,Y.length-=Y.writelen,Y.writelen=0}l(Ie,"_e"),e(Ie,"onwriteStateUpdate");function je(Y,H){var Q=Y._writableState,fe=Q.sync,ve=Q.writecb;if(typeof ve!="function")throw new S;if(Ie(Q),H)we(Y,Q,fe,H,ve);else{var N=ue(Q)||Y.destroyed;!N&&!Q.corked&&!Q.bufferProcessing&&Q.bufferedRequest&&J(Y,Q),fe?o.nextTick(se,Y,Q,N,ve):se(Y,Q,N,ve)}}l(je,"pe"),e(je,"onwrite");function se(Y,H,Q,fe){Q||Te(Y,H),H.pendingcb--,fe(),ye(Y,H)}l(se,"Q"),e(se,"afterWrite");function Te(Y,H){H.length===0&&H.needDrain&&(H.needDrain=!1,Y.emit("drain"))}l(Te,"he"),e(Te,"onwriteDrain");function J(Y,H){H.bufferProcessing=!0;var Q=H.bufferedRequest;if(Y._writev&&Q&&Q.next){var fe=H.bufferedRequestCount,ve=new Array(fe),N=H.corkedRequestsFree;N.entry=Q;for(var x=0,D=!0;Q;)ve[x]=Q,Q.isBuf||(D=!1),Q=Q.next,x+=1;ve.allBuffers=D,de(Y,H,!0,H.length,ve,"",N.finish),H.pendingcb++,H.lastBufferedRequest=null,N.next?(H.corkedRequestsFree=N.next,N.next=null):H.corkedRequestsFree=new i(H),H.bufferedRequestCount=0}else{for(;Q;){var z=Q.chunk,Ee=Q.encoding,ke=Q.callback,be=H.objectMode?1:z.length;if(de(Y,H,!1,be,z,Ee,ke),Q=Q.next,H.bufferedRequestCount--,H.writing)break}Q===null&&(H.lastBufferedRequest=null)}H.bufferedRequest=Q,H.bufferProcessing=!1}l(J,"U"),e(J,"clearBuffer"),V.prototype._write=function(Y,H,Q){Q(new _("_write()"))},V.prototype._writev=null,V.prototype.end=function(Y,H,Q){var fe=this._writableState;return typeof Y=="function"?(Q=Y,Y=null,H=null):typeof H=="function"&&(Q=H,H=null),Y!=null&&this.write(Y,H),fe.corked&&(fe.corked=1,this.uncork()),fe.ending||Re(this,fe,Q),this},Object.defineProperty(V.prototype,"writableLength",{enumerable:!1,get:e(function(){return this._writableState.length},"get2")});function ue(Y){return Y.ending&&Y.length===0&&Y.bufferedRequest===null&&!Y.finished&&!Y.writing}l(ue,"J"),e(ue,"needFinish");function te(Y,H){Y._final(function(Q){H.pendingcb--,Q&&I(Y,Q),H.prefinished=!0,Y.emit("prefinish"),ye(Y,H)})}l(te,"z"),e(te,"callFinal");function X(Y,H){!H.prefinished&&!H.finalCalled&&(typeof Y._final=="function"&&!H.destroyed?(H.pendingcb++,H.finalCalled=!0,o.nextTick(te,Y,H)):(H.prefinished=!0,Y.emit("prefinish")))}l(X,"V"),e(X,"prefinish");function ye(Y,H){var Q=ue(H);if(Q&&(X(Y,H),H.pendingcb===0&&(H.finished=!0,Y.emit("finish"),H.autoDestroy))){var fe=Y._readableState;(!fe||fe.autoDestroy&&fe.endEmitted)&&Y.destroy()}return Q}l(ye,"G"),e(ye,"finishMaybe");function Re(Y,H,Q){H.ending=!0,ye(Y,H),Q&&(H.finished?o.nextTick(Q):Y.once("finish",Q)),H.ended=!0,Y.writable=!1}l(Re,"fe"),e(Re,"endWritable");function De(Y,H,Q){var fe=Y.entry;for(Y.entry=null;fe;){var ve=fe.callback;H.pendingcb--,ve(Q),fe=fe.next}H.corkedRequestsFree.next=Y}return l(De,"be"),e(De,"onCorkedFinish"),Object.defineProperty(V.prototype,"destroyed",{enumerable:!1,get:e(function(){return this._writableState===void 0?!1:this._writableState.destroyed},"get2"),set:e(function(Y){this._writableState&&(this._writableState.destroyed=Y)},"set")}),V.prototype.destroy=c.destroy,V.prototype._undestroy=c.undestroy,V.prototype._destroy=function(Y,H){H(Y)},Lh}function Ta(){if(U_)return Nh;U_=!0;var o=Ot,i=Object.keys||function(d){var m=[];for(var y in d)m.push(y);return m};Nh=u;var f=y2(),g=g2();Zi()(u,f);for(var a=i(g.prototype),n=0;n<a.length;n++){var r=a[n];u.prototype[r]||(u.prototype[r]=g.prototype[r])}function u(d){if(!(this instanceof u))return new u(d);f.call(this,d),g.call(this,d),this.allowHalfOpen=!0,d&&(d.readable===!1&&(this.readable=!1),d.writable===!1&&(this.writable=!1),d.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",p)))}l(u,"f"),e(u,"Duplex"),Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:e(function(){return this._writableState.highWaterMark},"get2")}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:e(function(){return this._writableState&&this._writableState.getBuffer()},"get2")}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:e(function(){return this._writableState.length},"get2")});function p(){this._writableState.ended||o.nextTick(c,this)}l(p,"h"),e(p,"onend");function c(d){d.end()}return l(c,"c"),e(c,"onEndNT"),Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:e(function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},"get2"),set:e(function(d){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=d,this._writableState.destroyed=d)},"set")}),Nh}function $d(){if(M_)return Dh;M_=!0;var o=La().codes.ERR_STREAM_PREMATURE_CLOSE;function i(n){var r=!1;return function(){if(!r){r=!0;for(var u=arguments.length,p=new Array(u),c=0;c<u;c++)p[c]=arguments[c];n.apply(this,p)}}}l(i,"t"),e(i,"once");function f(){}l(f,"r"),e(f,"noop");function g(n){return n.setHeader&&typeof n.abort=="function"}l(g,"n"),e(g,"isRequest");function a(n,r,u){if(typeof r=="function")return a(n,null,r);r||(r={}),u=i(u||f);var p=r.readable||r.readable!==!1&&n.readable,c=r.writable||r.writable!==!1&&n.writable,d=e(function(){n.writable||y()},"onlegacyfinish2"),m=n._writableState&&n._writableState.finished,y=e(function(){c=!1,m=!0,p||u.call(n)},"onfinish2"),w=n._readableState&&n._readableState.endEmitted,_=e(function(){p=!1,w=!0,c||u.call(n)},"onend2"),S=e(function(E){u.call(n,E)},"onerror2"),T=e(function(){var E;if(p&&!w)return(!n._readableState||!n._readableState.ended)&&(E=new o),u.call(n,E);if(c&&!m)return(!n._writableState||!n._writableState.ended)&&(E=new o),u.call(n,E)},"onclose2"),k=e(function(){n.req.on("finish",y)},"onrequest2");return g(n)?(n.on("complete",y),n.on("abort",T),n.req?k():n.on("request",k)):c&&!n._writableState&&(n.on("end",d),n.on("close",d)),n.on("end",_),n.on("finish",y),r.error!==!1&&n.on("error",S),n.on("close",T),function(){n.removeListener("complete",y),n.removeListener("abort",T),n.removeListener("request",k),n.req&&n.req.removeListener("finish",y),n.removeListener("end",d),n.removeListener("close",d),n.removeListener("finish",y),n.removeListener("end",_),n.removeListener("error",S),n.removeListener("close",T)}}return l(a,"a"),e(a,"eos"),Dh=a,Dh}function A4(){if($_)return Uh;$_=!0;var o=Ot,i;function f(E,j,A){return j in E?Object.defineProperty(E,j,{value:A,enumerable:!0,configurable:!0,writable:!0}):E[j]=A,E}l(f,"r"),e(f,"_defineProperty");var g=$d(),a=Symbol("lastResolve"),n=Symbol("lastReject"),r=Symbol("error"),u=Symbol("ended"),p=Symbol("lastPromise"),c=Symbol("handlePromise"),d=Symbol("stream");function m(E,j){return{value:E,done:j}}l(m,"y"),e(m,"createIterResult");function y(E){var j=E[a];if(j!==null){var A=E[d].read();A!==null&&(E[p]=null,E[a]=null,E[n]=null,j(m(A,!1)))}}l(y,"m"),e(y,"readAndResolve");function w(E){o.nextTick(y,E)}l(w,"g"),e(w,"onReadable");function _(E,j){return function(A,I){E.then(function(){if(j[u]){A(m(void 0,!0));return}j[c](A,I)},I)}}l(_,"v"),e(_,"wrapForNext");var S=Object.getPrototypeOf(function(){}),T=Object.setPrototypeOf((i={get stream(){return this[d]},next:e(function(){var E=this,j=this[r];if(j!==null)return Promise.reject(j);if(this[u])return Promise.resolve(m(void 0,!0));if(this[d].destroyed)return new Promise(function(M,ee){o.nextTick(function(){E[r]?ee(E[r]):M(m(void 0,!0))})});var A=this[p],I;if(A)I=new Promise(_(A,this));else{var U=this[d].read();if(U!==null)return Promise.resolve(m(U,!1));I=new Promise(this[c])}return this[p]=I,I},"next")},f(i,Symbol.asyncIterator,function(){return this}),f(i,"return",e(function(){var E=this;return new Promise(function(j,A){E[d].destroy(null,function(I){if(I){A(I);return}j(m(void 0,!0))})})},"_return")),i),S),k=e(function(E){var j,A=Object.create(T,(j={},f(j,d,{value:E,writable:!0}),f(j,a,{value:null,writable:!0}),f(j,n,{value:null,writable:!0}),f(j,r,{value:null,writable:!0}),f(j,u,{value:E._readableState.endEmitted,writable:!0}),f(j,c,{value:e(function(I,U){var M=A[d].read();M?(A[p]=null,A[a]=null,A[n]=null,I(m(M,!1))):(A[a]=I,A[n]=U)},"value"),writable:!0}),j));return A[p]=null,g(E,function(I){if(I&&I.code!=="ERR_STREAM_PREMATURE_CLOSE"){var U=A[n];U!==null&&(A[p]=null,A[a]=null,A[n]=null,U(I)),A[r]=I;return}var M=A[a];M!==null&&(A[p]=null,A[a]=null,A[n]=null,M(m(void 0,!0))),A[u]=!0}),E.on("readable",w.bind(null,A)),A},"createReadableStreamAsyncIterator2");return Uh=k,Uh}function R4(){return z_||(z_=!0,W_=e(function(){throw new Error("Readable.from is not available in the browser")},"exports$4")),W_}function y2(){if(H_)return Mh;H_=!0;var o=Ot;Mh=q;var i;q.ReadableState=V,yn.EventEmitter;var f=e(function(N,x){return N.listeners(x).length},"EElistenerCount2"),g=h2(),a=wi.Buffer,n=z4.Uint8Array||function(){};function r(N){return a.from(N)}l(r,"i"),e(r,"_uint8ArrayToBuffer");function u(N){return a.isBuffer(N)||N instanceof n}l(u,"f"),e(u,"_isUint8Array");var p=at,c;p&&p.debuglog?c=p.debuglog("stream"):c=e(function(){},"debug2");var d=E4(),m=d2(),y=p2(),w=y.getHighWaterMark,_=La().codes,S=_.ERR_INVALID_ARG_TYPE,T=_.ERR_STREAM_PUSH_AFTER_EOF,k=_.ERR_METHOD_NOT_IMPLEMENTED,E=_.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,j,A,I;Zi()(q,g);var U=m.errorOrDestroy,M=["error","close","destroy","pause","resume"];function ee(N,x,D){if(typeof N.prependListener=="function")return N.prependListener(x,D);!N._events||!N._events[x]?N.on(x,D):Array.isArray(N._events[x])?N._events[x].unshift(D):N._events[x]=[D,N._events[x]]}l(ee,"D"),e(ee,"prependListener");function V(N,x,D){i=i||Ta(),N=N||{},typeof D!="boolean"&&(D=x instanceof i),this.objectMode=!!N.objectMode,D&&(this.objectMode=this.objectMode||!!N.readableObjectMode),this.highWaterMark=w(this,N,"readableHighWaterMark",D),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=N.emitClose!==!1,this.autoDestroy=!!N.autoDestroy,this.destroyed=!1,this.defaultEncoding=N.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,N.encoding&&(j||(j=dd.StringDecoder),this.decoder=new j(N.encoding),this.encoding=N.encoding)}l(V,"L"),e(V,"ReadableState");function q(N){if(i=i||Ta(),!(this instanceof q))return new q(N);var x=this instanceof i;this._readableState=new V(N,this,x),this.readable=!0,N&&(typeof N.read=="function"&&(this._read=N.read),typeof N.destroy=="function"&&(this._destroy=N.destroy)),g.call(this)}l(q,"C"),e(q,"Readable"),Object.defineProperty(q.prototype,"destroyed",{enumerable:!1,get:e(function(){return this._readableState===void 0?!1:this._readableState.destroyed},"get2"),set:e(function(N){this._readableState&&(this._readableState.destroyed=N)},"set")}),q.prototype.destroy=m.destroy,q.prototype._undestroy=m.undestroy,q.prototype._destroy=function(N,x){x(N)},q.prototype.push=function(N,x){var D=this._readableState,z;return D.objectMode?z=!0:typeof N=="string"&&(x=x||D.defaultEncoding,x!==D.encoding&&(N=a.from(N,x),x=""),z=!0),G(this,N,x,!1,z)},q.prototype.unshift=function(N){return G(this,N,null,!0,!1)};function G(N,x,D,z,Ee){c("readableAddChunk",x);var ke=N._readableState;if(x===null)ke.reading=!1,je(N,ke);else{var be;if(Ee||(be=ae(ke,x)),be)U(N,be);else if(ke.objectMode||x&&x.length>0)if(typeof x!="string"&&!ke.objectMode&&Object.getPrototypeOf(x)!==a.prototype&&(x=r(x)),z)ke.endEmitted?U(N,new E):re(N,ke,x,!0);else if(ke.ended)U(N,new T);else{if(ke.destroyed)return!1;ke.reading=!1,ke.decoder&&!D?(x=ke.decoder.write(x),ke.objectMode||x.length!==0?re(N,ke,x,!1):J(N,ke)):re(N,ke,x,!1)}else z||(ke.reading=!1,J(N,ke))}return!ke.ended&&(ke.length<ke.highWaterMark||ke.length===0)}l(G,"j"),e(G,"readableAddChunk");function re(N,x,D,z){x.flowing&&x.length===0&&!x.sync?(x.awaitDrain=0,N.emit("data",D)):(x.length+=x.objectMode?1:D.length,z?x.buffer.unshift(D):x.buffer.push(D),x.needReadable&&se(N)),J(N,x)}l(re,"q"),e(re,"addChunk");function ae(N,x){var D;return!u(x)&&typeof x!="string"&&x!==void 0&&!N.objectMode&&(D=new S("chunk",["string","Buffer","Uint8Array"],x)),D}l(ae,"Z"),e(ae,"chunkInvalid"),q.prototype.isPaused=function(){return this._readableState.flowing===!1},q.prototype.setEncoding=function(N){j||(j=dd.StringDecoder);var x=new j(N);this._readableState.decoder=x,this._readableState.encoding=this._readableState.decoder.encoding;for(var D=this._readableState.buffer.head,z="";D!==null;)z+=x.write(D.data),D=D.next;return this._readableState.buffer.clear(),z!==""&&this._readableState.buffer.push(z),this._readableState.length=z.length,this};var de=1073741824;function we(N){return N>=de?N=de:(N--,N|=N>>>1,N|=N>>>2,N|=N>>>4,N|=N>>>8,N|=N>>>16,N++),N}l(we,"se"),e(we,"computeNewHighWaterMark");function Ie(N,x){return N<=0||x.length===0&&x.ended?0:x.objectMode?1:N!==N?x.flowing&&x.length?x.buffer.head.data.length:x.length:(N>x.highWaterMark&&(x.highWaterMark=we(N)),N<=x.length?N:x.ended?x.length:(x.needReadable=!0,0))}l(Ie,"_e"),e(Ie,"howMuchToRead"),q.prototype.read=function(N){c("read",N),N=parseInt(N,10);var x=this._readableState,D=N;if(N!==0&&(x.emittedReadable=!1),N===0&&x.needReadable&&((x.highWaterMark!==0?x.length>=x.highWaterMark:x.length>0)||x.ended))return c("read: emitReadable",x.length,x.ended),x.length===0&&x.ended?Q(this):se(this),null;if(N=Ie(N,x),N===0&&x.ended)return x.length===0&&Q(this),null;var z=x.needReadable;c("need readable",z),(x.length===0||x.length-N<x.highWaterMark)&&(z=!0,c("length less than watermark",z)),x.ended||x.reading?(z=!1,c("reading or ended",z)):z&&(c("do read"),x.reading=!0,x.sync=!0,x.length===0&&(x.needReadable=!0),this._read(x.highWaterMark),x.sync=!1,x.reading||(N=Ie(D,x)));var Ee;return N>0?Ee=H(N,x):Ee=null,Ee===null?(x.needReadable=x.length<=x.highWaterMark,N=0):(x.length-=N,x.awaitDrain=0),x.length===0&&(x.ended||(x.needReadable=!0),D!==N&&x.ended&&Q(this)),Ee!==null&&this.emit("data",Ee),Ee};function je(N,x){if(c("onEofChunk"),!x.ended){if(x.decoder){var D=x.decoder.end();D&&D.length&&(x.buffer.push(D),x.length+=x.objectMode?1:D.length)}x.ended=!0,x.sync?se(N):(x.needReadable=!1,x.emittedReadable||(x.emittedReadable=!0,Te(N)))}}l(je,"pe"),e(je,"onEofChunk");function se(N){var x=N._readableState;c("emitReadable",x.needReadable,x.emittedReadable),x.needReadable=!1,x.emittedReadable||(c("emitReadable",x.flowing),x.emittedReadable=!0,o.nextTick(Te,N))}l(se,"Q"),e(se,"emitReadable");function Te(N){var x=N._readableState;c("emitReadable_",x.destroyed,x.length,x.ended),!x.destroyed&&(x.length||x.ended)&&(N.emit("readable"),x.emittedReadable=!1),x.needReadable=!x.flowing&&!x.ended&&x.length<=x.highWaterMark,Y(N)}l(Te,"he"),e(Te,"emitReadable_");function J(N,x){x.readingMore||(x.readingMore=!0,o.nextTick(ue,N,x))}l(J,"U"),e(J,"maybeReadMore");function ue(N,x){for(;!x.reading&&!x.ended&&(x.length<x.highWaterMark||x.flowing&&x.length===0);){var D=x.length;if(c("maybeReadMore read 0"),N.read(0),D===x.length)break}x.readingMore=!1}l(ue,"J"),e(ue,"maybeReadMore_"),q.prototype._read=function(N){U(this,new k("_read()"))},q.prototype.pipe=function(N,x){var D=this,z=this._readableState;switch(z.pipesCount){case 0:z.pipes=N;break;case 1:z.pipes=[z.pipes,N];break;default:z.pipes.push(N);break}z.pipesCount+=1,c("pipe count=%d opts=%j",z.pipesCount,x);var Ee=(!x||x.end!==!1)&&N!==o.stdout&&N!==o.stderr,ke=Ee?ge:s;z.endEmitted?o.nextTick(ke):D.once("end",ke),N.on("unpipe",be);function be(h,v){c("onunpipe"),h===D&&v&&v.hasUnpiped===!1&&(v.hasUnpiped=!0,Oe())}l(be,"ee"),e(be,"onunpipe");function ge(){c("onend"),N.end()}l(ge,"ie"),e(ge,"onend");var Ne=te(D);N.on("drain",Ne);var xe=!1;function Oe(){c("cleanup"),N.removeListener("close",Ke),N.removeListener("finish",t),N.removeListener("drain",Ne),N.removeListener("error",$e),N.removeListener("unpipe",be),D.removeListener("end",ge),D.removeListener("end",s),D.removeListener("data",Pe),xe=!0,z.awaitDrain&&(!N._writableState||N._writableState.needDrain)&&Ne()}l(Oe,"ve"),e(Oe,"cleanup"),D.on("data",Pe);function Pe(h){c("ondata");var v=N.write(h);c("dest.write",v),v===!1&&((z.pipesCount===1&&z.pipes===N||z.pipesCount>1&&ve(z.pipes,N)!==-1)&&!xe&&(c("false write response, pause",z.awaitDrain),z.awaitDrain++),D.pause())}l(Pe,"Me"),e(Pe,"ondata");function $e(h){c("onerror",h),s(),N.removeListener("error",$e),f(N,"error")===0&&U(N,h)}l($e,"Be"),e($e,"onerror"),ee(N,"error",$e);function Ke(){N.removeListener("finish",t),s()}l(Ke,"Xe"),e(Ke,"onclose"),N.once("close",Ke);function t(){c("onfinish"),N.removeListener("close",Ke),s()}l(t,"p"),e(t,"onfinish"),N.once("finish",t);function s(){c("unpipe"),D.unpipe(N)}return l(s,"l"),e(s,"unpipe"),N.emit("pipe",D),z.flowing||(c("pipe resume"),D.resume()),N};function te(N){return e(function(){var x=N._readableState;c("pipeOnDrain",x.awaitDrain),x.awaitDrain&&x.awaitDrain--,x.awaitDrain===0&&f(N,"data")&&(x.flowing=!0,Y(N))},"pipeOnDrainFunctionResult")}l(te,"z"),e(te,"pipeOnDrain"),q.prototype.unpipe=function(N){var x=this._readableState,D={hasUnpiped:!1};if(x.pipesCount===0)return this;if(x.pipesCount===1)return N&&N!==x.pipes?this:(N||(N=x.pipes),x.pipes=null,x.pipesCount=0,x.flowing=!1,N&&N.emit("unpipe",this,D),this);if(!N){var z=x.pipes,Ee=x.pipesCount;x.pipes=null,x.pipesCount=0,x.flowing=!1;for(var ke=0;ke<Ee;ke++)z[ke].emit("unpipe",this,{hasUnpiped:!1});return this}var be=ve(x.pipes,N);return be===-1?this:(x.pipes.splice(be,1),x.pipesCount-=1,x.pipesCount===1&&(x.pipes=x.pipes[0]),N.emit("unpipe",this,D),this)},q.prototype.on=function(N,x){var D=g.prototype.on.call(this,N,x),z=this._readableState;return N==="data"?(z.readableListening=this.listenerCount("readable")>0,z.flowing!==!1&&this.resume()):N==="readable"&&!z.endEmitted&&!z.readableListening&&(z.readableListening=z.needReadable=!0,z.flowing=!1,z.emittedReadable=!1,c("on readable",z.length,z.reading),z.length?se(this):z.reading||o.nextTick(ye,this)),D},q.prototype.addListener=q.prototype.on,q.prototype.removeListener=function(N,x){var D=g.prototype.removeListener.call(this,N,x);return N==="readable"&&o.nextTick(X,this),D},q.prototype.removeAllListeners=function(N){var x=g.prototype.removeAllListeners.apply(this,arguments);return(N==="readable"||N===void 0)&&o.nextTick(X,this),x};function X(N){var x=N._readableState;x.readableListening=N.listenerCount("readable")>0,x.resumeScheduled&&!x.paused?x.flowing=!0:N.listenerCount("data")>0&&N.resume()}l(X,"V"),e(X,"updateReadableListening");function ye(N){c("readable nexttick read 0"),N.read(0)}l(ye,"G"),e(ye,"nReadingNextTick"),q.prototype.resume=function(){var N=this._readableState;return N.flowing||(c("resume"),N.flowing=!N.readableListening,Re(this,N)),N.paused=!1,this};function Re(N,x){x.resumeScheduled||(x.resumeScheduled=!0,o.nextTick(De,N,x))}l(Re,"fe"),e(Re,"resume");function De(N,x){c("resume",x.reading),x.reading||N.read(0),x.resumeScheduled=!1,N.emit("resume"),Y(N),x.flowing&&!x.reading&&N.read(0)}l(De,"be"),e(De,"resume_"),q.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Y(N){var x=N._readableState;for(c("flow",x.flowing);x.flowing&&N.read()!==null;);}l(Y,"N"),e(Y,"flow"),q.prototype.wrap=function(N){var x=this,D=this._readableState,z=!1;N.on("end",function(){if(c("wrapped end"),D.decoder&&!D.ended){var be=D.decoder.end();be&&be.length&&x.push(be)}x.push(null)}),N.on("data",function(be){if(c("wrapped data"),D.decoder&&(be=D.decoder.write(be)),!(D.objectMode&&be==null)&&!(!D.objectMode&&(!be||!be.length))){var ge=x.push(be);ge||(z=!0,N.pause())}});for(var Ee in N)this[Ee]===void 0&&typeof N[Ee]=="function"&&(this[Ee]=e(function(be){return e(function(){return N[be].apply(N,arguments)},"methodWrapReturnFunction")},"methodWrap")(Ee));for(var ke=0;ke<M.length;ke++)N.on(M[ke],this.emit.bind(this,M[ke]));return this._read=function(be){c("wrapped _read",be),z&&(z=!1,N.resume())},this},typeof Symbol=="function"&&(q.prototype[Symbol.asyncIterator]=function(){return A===void 0&&(A=A4()),A(this)}),Object.defineProperty(q.prototype,"readableHighWaterMark",{enumerable:!1,get:e(function(){return this._readableState.highWaterMark},"get2")}),Object.defineProperty(q.prototype,"readableBuffer",{enumerable:!1,get:e(function(){return this._readableState&&this._readableState.buffer},"get2")}),Object.defineProperty(q.prototype,"readableFlowing",{enumerable:!1,get:e(function(){return this._readableState.flowing},"get2"),set:e(function(N){this._readableState&&(this._readableState.flowing=N)},"set")}),q._fromList=H,Object.defineProperty(q.prototype,"readableLength",{enumerable:!1,get:e(function(){return this._readableState.length},"get2")});function H(N,x){if(x.length===0)return null;var D;return x.objectMode?D=x.buffer.shift():!N||N>=x.length?(x.decoder?D=x.buffer.join(""):x.buffer.length===1?D=x.buffer.first():D=x.buffer.concat(x.length),x.buffer.clear()):D=x.buffer.consume(N,x.decoder),D}l(H,"$"),e(H,"fromList");function Q(N){var x=N._readableState;c("endReadable",x.endEmitted),x.endEmitted||(x.ended=!0,o.nextTick(fe,x,N))}l(Q,"H"),e(Q,"endReadable");function fe(N,x){if(c("endReadableNT",N.endEmitted,N.length),!N.endEmitted&&N.length===0&&(N.endEmitted=!0,x.readable=!1,x.emit("end"),N.autoDestroy)){var D=x._writableState;(!D||D.autoDestroy&&D.finished)&&x.destroy()}}l(fe,"te"),e(fe,"endReadableNT"),typeof Symbol=="function"&&(q.from=function(N,x){return I===void 0&&(I=R4()),I(q,N,x)});function ve(N,x){for(var D=0,z=N.length;D<z;D++)if(N[D]===x)return D;return-1}return l(ve,"oe"),e(ve,"indexOf"),Mh}function m2(){if(q_)return $h;q_=!0,$h=u;var o=La().codes,i=o.ERR_METHOD_NOT_IMPLEMENTED,f=o.ERR_MULTIPLE_CALLBACK,g=o.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=o.ERR_TRANSFORM_WITH_LENGTH_0,n=Ta();Zi()(u,n);function r(d,m){var y=this._transformState;y.transforming=!1;var w=y.writecb;if(w===null)return this.emit("error",new f);y.writechunk=null,y.writecb=null,m!=null&&this.push(m),w(d);var _=this._readableState;_.reading=!1,(_.needReadable||_.length<_.highWaterMark)&&this._read(_.highWaterMark)}l(r,"i"),e(r,"afterTransform");function u(d){if(!(this instanceof u))return new u(d);n.call(this,d),this._transformState={afterTransform:r.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,d&&(typeof d.transform=="function"&&(this._transform=d.transform),typeof d.flush=="function"&&(this._flush=d.flush)),this.on("prefinish",p)}l(u,"f"),e(u,"Transform");function p(){var d=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(m,y){c(d,m,y)}):c(this,null,null)}l(p,"h"),e(p,"prefinish"),u.prototype.push=function(d,m){return this._transformState.needTransform=!1,n.prototype.push.call(this,d,m)},u.prototype._transform=function(d,m,y){y(new i("_transform()"))},u.prototype._write=function(d,m,y){var w=this._transformState;if(w.writecb=y,w.writechunk=d,w.writeencoding=m,!w.transforming){var _=this._readableState;(w.needTransform||_.needReadable||_.length<_.highWaterMark)&&this._read(_.highWaterMark)}},u.prototype._read=function(d){var m=this._transformState;m.writechunk!==null&&!m.transforming?(m.transforming=!0,this._transform(m.writechunk,m.writeencoding,m.afterTransform)):m.needTransform=!0},u.prototype._destroy=function(d,m){n.prototype._destroy.call(this,d,function(y){m(y)})};function c(d,m,y){if(m)return d.emit("error",m);if(y!=null&&d.push(y),d._writableState.length)throw new a;if(d._transformState.transforming)throw new g;return d.push(null)}return l(c,"c"),e(c,"done"),$h}function k4(){if(G_)return Wh;G_=!0,Wh=i;var o=m2();Zi()(i,o);function i(f){if(!(this instanceof i))return new i(f);o.call(this,f)}return l(i,"t"),e(i,"PassThrough"),i.prototype._transform=function(f,g,a){a(null,f)},Wh}function O4(){if(V_)return zh;V_=!0;var o;function i(y){var w=!1;return function(){w||(w=!0,y.apply(void 0,arguments))}}l(i,"t"),e(i,"once");var f=La().codes,g=f.ERR_MISSING_ARGS,a=f.ERR_STREAM_DESTROYED;function n(y){if(y)throw y}l(n,"s"),e(n,"noop");function r(y){return y.setHeader&&typeof y.abort=="function"}l(r,"i"),e(r,"isRequest");function u(y,w,_,S){S=i(S);var T=!1;y.on("close",function(){T=!0}),o===void 0&&(o=$d()),o(y,{readable:w,writable:_},function(E){if(E)return S(E);T=!0,S()});var k=!1;return function(E){if(!T&&!k){if(k=!0,r(y))return y.abort();if(typeof y.destroy=="function")return y.destroy();S(E||new a("pipe"))}}}l(u,"f"),e(u,"destroyer");function p(y){y()}l(p,"h"),e(p,"call");function c(y,w){return y.pipe(w)}l(c,"c"),e(c,"pipe");function d(y){return!y.length||typeof y[y.length-1]!="function"?n:y.pop()}l(d,"d"),e(d,"popCallback");function m(){for(var y=arguments.length,w=new Array(y),_=0;_<y;_++)w[_]=arguments[_];var S=d(w);if(Array.isArray(w[0])&&(w=w[0]),w.length<2)throw new g("streams");var T,k=w.map(function(E,j){var A=j<w.length-1,I=j>0;return u(E,A,I,function(U){T||(T=U),U&&k.forEach(p),!A&&(k.forEach(p),S(T))})});return w.reduce(c)}return l(m,"y"),e(m,"pipeline"),zh=m,zh}function w2(){return K_||(K_=!0,Wr=Wr=y2(),Wr.Stream=Wr,Wr.Readable=Wr,Wr.Writable=g2(),Wr.Duplex=Ta(),Wr.Transform=m2(),Wr.PassThrough=k4(),Wr.finished=$d(),Wr.pipeline=O4()),Wr}function oI(){if(J_)return Hh;J_=!0;var o=Ot;function i(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}l(i,"t"),e(i,"assertPath");function f(n,r){for(var u="",p=0,c=-1,d=0,m,y=0;y<=n.length;++y){if(y<n.length)m=n.charCodeAt(y);else{if(m===47)break;m=47}if(m===47){if(!(c===y-1||d===1))if(c!==y-1&&d===2){if(u.length<2||p!==2||u.charCodeAt(u.length-1)!==46||u.charCodeAt(u.length-2)!==46){if(u.length>2){var w=u.lastIndexOf("/");if(w!==u.length-1){w===-1?(u="",p=0):(u=u.slice(0,w),p=u.length-1-u.lastIndexOf("/")),c=y,d=0;continue}}else if(u.length===2||u.length===1){u="",p=0,c=y,d=0;continue}}r&&(u.length>0?u+="/..":u="..",p=2)}else u.length>0?u+="/"+n.slice(c+1,y):u=n.slice(c+1,y),p=y-c-1;c=y,d=0}else m===46&&d!==-1?++d:d=-1}return u}l(f,"r"),e(f,"normalizeStringPosix");function g(n,r){var u=r.dir||r.root,p=r.base||(r.name||"")+(r.ext||"");return u?u===r.root?u+p:u+n+p:p}l(g,"n"),e(g,"_format");var a={resolve:e(function(){for(var n="",r=!1,u,p=arguments.length-1;p>=-1&&!r;p--){var c;p>=0?c=arguments[p]:(u===void 0&&(u=o.cwd()),c=u),i(c),c.length!==0&&(n=c+"/"+n,r=c.charCodeAt(0)===47)}return n=f(n,!r),r?n.length>0?"/"+n:"/":n.length>0?n:"."},"resolve"),normalize:e(function(n){if(i(n),n.length===0)return".";var r=n.charCodeAt(0)===47,u=n.charCodeAt(n.length-1)===47;return n=f(n,!r),n.length===0&&!r&&(n="."),n.length>0&&u&&(n+="/"),r?"/"+n:n},"normalize"),isAbsolute:e(function(n){return i(n),n.length>0&&n.charCodeAt(0)===47},"isAbsolute"),join:e(function(){if(arguments.length===0)return".";for(var n,r=0;r<arguments.length;++r){var u=arguments[r];i(u),u.length>0&&(n===void 0?n=u:n+="/"+u)}return n===void 0?".":a.normalize(n)},"join"),relative:e(function(n,r){if(i(n),i(r),n===r||(n=a.resolve(n),r=a.resolve(r),n===r))return"";for(var u=1;u<n.length&&n.charCodeAt(u)===47;++u);for(var p=n.length,c=p-u,d=1;d<r.length&&r.charCodeAt(d)===47;++d);for(var m=r.length,y=m-d,w=c<y?c:y,_=-1,S=0;S<=w;++S){if(S===w){if(y>w){if(r.charCodeAt(d+S)===47)return r.slice(d+S+1);if(S===0)return r.slice(d+S)}else c>w&&(n.charCodeAt(u+S)===47?_=S:S===0&&(_=0));break}var T=n.charCodeAt(u+S),k=r.charCodeAt(d+S);if(T!==k)break;T===47&&(_=S)}var E="";for(S=u+_+1;S<=p;++S)(S===p||n.charCodeAt(S)===47)&&(E.length===0?E+="..":E+="/..");return E.length>0?E+r.slice(d+_):(d+=_,r.charCodeAt(d)===47&&++d,r.slice(d))},"relative"),_makeLong:e(function(n){return n},"_makeLong"),dirname:e(function(n){if(i(n),n.length===0)return".";for(var r=n.charCodeAt(0),u=r===47,p=-1,c=!0,d=n.length-1;d>=1;--d)if(r=n.charCodeAt(d),r===47){if(!c){p=d;break}}else c=!1;return p===-1?u?"/":".":u&&p===1?"//":n.slice(0,p)},"dirname"),basename:e(function(n,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');i(n);var u=0,p=-1,c=!0,d;if(r!==void 0&&r.length>0&&r.length<=n.length){if(r.length===n.length&&r===n)return"";var m=r.length-1,y=-1;for(d=n.length-1;d>=0;--d){var w=n.charCodeAt(d);if(w===47){if(!c){u=d+1;break}}else y===-1&&(c=!1,y=d+1),m>=0&&(w===r.charCodeAt(m)?--m===-1&&(p=d):(m=-1,p=y))}return u===p?p=y:p===-1&&(p=n.length),n.slice(u,p)}else{for(d=n.length-1;d>=0;--d)if(n.charCodeAt(d)===47){if(!c){u=d+1;break}}else p===-1&&(c=!1,p=d+1);return p===-1?"":n.slice(u,p)}},"basename"),extname:e(function(n){i(n);for(var r=-1,u=0,p=-1,c=!0,d=0,m=n.length-1;m>=0;--m){var y=n.charCodeAt(m);if(y===47){if(!c){u=m+1;break}continue}p===-1&&(c=!1,p=m+1),y===46?r===-1?r=m:d!==1&&(d=1):r!==-1&&(d=-1)}return r===-1||p===-1||d===0||d===1&&r===p-1&&r===u+1?"":n.slice(r,p)},"extname"),format:e(function(n){if(n===null||typeof n!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof n);return g("/",n)},"format"),parse:e(function(n){i(n);var r={root:"",dir:"",base:"",ext:"",name:""};if(n.length===0)return r;var u=n.charCodeAt(0),p=u===47,c;p?(r.root="/",c=1):c=0;for(var d=-1,m=0,y=-1,w=!0,_=n.length-1,S=0;_>=c;--_){if(u=n.charCodeAt(_),u===47){if(!w){m=_+1;break}continue}y===-1&&(w=!1,y=_+1),u===46?d===-1?d=_:S!==1&&(S=1):d!==-1&&(S=-1)}return d===-1||y===-1||S===0||S===1&&d===y-1&&d===m+1?y!==-1&&(m===0&&p?r.base=r.name=n.slice(1,y):r.base=r.name=n.slice(m,y)):(m===0&&p?(r.name=n.slice(1,d),r.base=n.slice(1,y)):(r.name=n.slice(m,d),r.base=n.slice(m,y)),r.ext=n.slice(d,y)),m>0?r.dir=n.slice(0,m-1):p&&(r.dir="/"),r},"parse"),sep:"/",delimiter:":",win32:null,posix:null};return a.posix=a,Hh=a,Hh}function Ci(o){throw new RangeError(q4[o])}function mm(o,i){let f=o.split("@"),g="";f.length>1&&(g=f[0]+"@",o=f[1]);let a=function(n,r){let u=[],p=n.length;for(;p--;)u[p]=r(n[p]);return u}((o=o.replace(H4,".")).split("."),i).join(".");return g+a}function wm(o){let i=[],f=0,g=o.length;for(;f<g;){let a=o.charCodeAt(f++);if(a>=55296&&a<=56319&&f<g){let n=o.charCodeAt(f++);(64512&n)==56320?i.push(((1023&a)<<10)+(1023&n)+65536):(i.push(a),f--)}else i.push(a)}return i}function aI(o,i){return Object.prototype.hasOwnProperty.call(o,i)}function Zr(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function ps(o,i,f){if(o&&gn.isObject(o)&&o instanceof Zr)return o;var g=new Zr;return g.parse(o,i,f),g}function sI(){if(Z_)return qh;Z_=!0;var o=Gt;function i(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}l(i,"t"),e(i,"assertPath");function f(n,r){for(var u="",p=0,c=-1,d=0,m,y=0;y<=n.length;++y){if(y<n.length)m=n.charCodeAt(y);else{if(m===47)break;m=47}if(m===47){if(!(c===y-1||d===1))if(c!==y-1&&d===2){if(u.length<2||p!==2||u.charCodeAt(u.length-1)!==46||u.charCodeAt(u.length-2)!==46){if(u.length>2){var w=u.lastIndexOf("/");if(w!==u.length-1){w===-1?(u="",p=0):(u=u.slice(0,w),p=u.length-1-u.lastIndexOf("/")),c=y,d=0;continue}}else if(u.length===2||u.length===1){u="",p=0,c=y,d=0;continue}}r&&(u.length>0?u+="/..":u="..",p=2)}else u.length>0?u+="/"+n.slice(c+1,y):u=n.slice(c+1,y),p=y-c-1;c=y,d=0}else m===46&&d!==-1?++d:d=-1}return u}l(f,"r"),e(f,"normalizeStringPosix");function g(n,r){var u=r.dir||r.root,p=r.base||(r.name||"")+(r.ext||"");return u?u===r.root?u+p:u+n+p:p}l(g,"n"),e(g,"_format");var a={resolve:e(function(){for(var n="",r=!1,u,p=arguments.length-1;p>=-1&&!r;p--){var c;p>=0?c=arguments[p]:(u===void 0&&(u=o.cwd()),c=u),i(c),c.length!==0&&(n=c+"/"+n,r=c.charCodeAt(0)===47)}return n=f(n,!r),r?n.length>0?"/"+n:"/":n.length>0?n:"."},"resolve"),normalize:e(function(n){if(i(n),n.length===0)return".";var r=n.charCodeAt(0)===47,u=n.charCodeAt(n.length-1)===47;return n=f(n,!r),n.length===0&&!r&&(n="."),n.length>0&&u&&(n+="/"),r?"/"+n:n},"normalize"),isAbsolute:e(function(n){return i(n),n.length>0&&n.charCodeAt(0)===47},"isAbsolute"),join:e(function(){if(arguments.length===0)return".";for(var n,r=0;r<arguments.length;++r){var u=arguments[r];i(u),u.length>0&&(n===void 0?n=u:n+="/"+u)}return n===void 0?".":a.normalize(n)},"join"),relative:e(function(n,r){if(i(n),i(r),n===r||(n=a.resolve(n),r=a.resolve(r),n===r))return"";for(var u=1;u<n.length&&n.charCodeAt(u)===47;++u);for(var p=n.length,c=p-u,d=1;d<r.length&&r.charCodeAt(d)===47;++d);for(var m=r.length,y=m-d,w=c<y?c:y,_=-1,S=0;S<=w;++S){if(S===w){if(y>w){if(r.charCodeAt(d+S)===47)return r.slice(d+S+1);if(S===0)return r.slice(d+S)}else c>w&&(n.charCodeAt(u+S)===47?_=S:S===0&&(_=0));break}var T=n.charCodeAt(u+S),k=r.charCodeAt(d+S);if(T!==k)break;T===47&&(_=S)}var E="";for(S=u+_+1;S<=p;++S)(S===p||n.charCodeAt(S)===47)&&(E.length===0?E+="..":E+="/..");return E.length>0?E+r.slice(d+_):(d+=_,r.charCodeAt(d)===47&&++d,r.slice(d))},"relative"),_makeLong:e(function(n){return n},"_makeLong"),dirname:e(function(n){if(i(n),n.length===0)return".";for(var r=n.charCodeAt(0),u=r===47,p=-1,c=!0,d=n.length-1;d>=1;--d)if(r=n.charCodeAt(d),r===47){if(!c){p=d;break}}else c=!1;return p===-1?u?"/":".":u&&p===1?"//":n.slice(0,p)},"dirname"),basename:e(function(n,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');i(n);var u=0,p=-1,c=!0,d;if(r!==void 0&&r.length>0&&r.length<=n.length){if(r.length===n.length&&r===n)return"";var m=r.length-1,y=-1;for(d=n.length-1;d>=0;--d){var w=n.charCodeAt(d);if(w===47){if(!c){u=d+1;break}}else y===-1&&(c=!1,y=d+1),m>=0&&(w===r.charCodeAt(m)?--m===-1&&(p=d):(m=-1,p=y))}return u===p?p=y:p===-1&&(p=n.length),n.slice(u,p)}else{for(d=n.length-1;d>=0;--d)if(n.charCodeAt(d)===47){if(!c){u=d+1;break}}else p===-1&&(c=!1,p=d+1);return p===-1?"":n.slice(u,p)}},"basename"),extname:e(function(n){i(n);for(var r=-1,u=0,p=-1,c=!0,d=0,m=n.length-1;m>=0;--m){var y=n.charCodeAt(m);if(y===47){if(!c){u=m+1;break}continue}p===-1&&(c=!1,p=m+1),y===46?r===-1?r=m:d!==1&&(d=1):r!==-1&&(d=-1)}return r===-1||p===-1||d===0||d===1&&r===p-1&&r===u+1?"":n.slice(r,p)},"extname"),format:e(function(n){if(n===null||typeof n!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof n);return g("/",n)},"format"),parse:e(function(n){i(n);var r={root:"",dir:"",base:"",ext:"",name:""};if(n.length===0)return r;var u=n.charCodeAt(0),p=u===47,c;p?(r.root="/",c=1):c=0;for(var d=-1,m=0,y=-1,w=!0,_=n.length-1,S=0;_>=c;--_){if(u=n.charCodeAt(_),u===47){if(!w){m=_+1;break}continue}y===-1&&(w=!1,y=_+1),u===46?d===-1?d=_:S!==1&&(S=1):d!==-1&&(S=-1)}return d===-1||y===-1||S===0||S===1&&d===y-1&&d===m+1?y!==-1&&(m===0&&p?r.base=r.name=n.slice(1,y):r.base=r.name=n.slice(m,y)):(m===0&&p?(r.name=n.slice(1,d),r.base=n.slice(1,y)):(r.name=n.slice(m,d),r.base=n.slice(m,y)),r.ext=n.slice(d,y)),m>0?r.dir=n.slice(0,m-1):p&&(r.dir="/"),r},"parse"),sep:"/",delimiter:":",win32:null,posix:null};return a.posix=a,qh=a,qh}function lI(o){if(typeof o=="string")o=new URL(o);else if(!(o instanceof URL))throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");if(o.protocol!=="file:")throw new Deno.errors.InvalidData("invalid url scheme");return gd?T4(o):F4(o)}function T4(o){let i=o.hostname,f=o.pathname;for(let g=0;g<f.length;g++)if(f[g]==="%"){let a=f.codePointAt(g+2)||32;if(f[g+1]==="2"&&a===102||f[g+1]==="5"&&a===99)throw new Deno.errors.InvalidData("must not include encoded \\ or / characters")}if(f=f.replace(Y4,"\\"),f=decodeURIComponent(f),i!=="")return`\\\\${i}${f}`;{let g=f.codePointAt(1)|32,a=f[2];if(g<K4||g>J4||a!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return f.slice(1)}}function F4(o){if(o.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let i=o.pathname;for(let f=0;f<i.length;f++)if(i[f]==="%"){let g=i.codePointAt(f+2)||32;if(i[f+1]==="2"&&g===102)throw new Deno.errors.InvalidData("must not include encoded / characters")}return decodeURIComponent(i)}function fI(o){let i=Q_.resolve(o),f=o.charCodeAt(o.length-1);(f===V4||gd&&f===G4)&&i[i.length-1]!==Q_.sep&&(i+="/");let g=new URL("file://");return i.includes("%")&&(i=i.replace(Z4,"%25")),!gd&&i.includes("\\")&&(i=i.replace(Q4,"%5C")),i.includes(`
39
- `)&&(i=i.replace(X4,"%0A")),i.includes("\r")&&(i=i.replace(eC,"%0D")),i.includes(" ")&&(i=i.replace(tC,"%09")),g.pathname=i,g}function uI(o){if(typeof o=="string")o=new URL(o);else if(!(o instanceof URL))throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");if(o.protocol!=="file:")throw new Deno.errors.InvalidData("invalid url scheme");return yd?B4(o):I4(o)}function B4(o){let i=o.hostname,f=o.pathname;for(let g=0;g<f.length;g++)if(f[g]==="%"){let a=f.codePointAt(g+2)||32;if(f[g+1]==="2"&&a===102||f[g+1]==="5"&&a===99)throw new Deno.errors.InvalidData("must not include encoded \\ or / characters")}if(f=f.replace(aC,"\\"),f=decodeURIComponent(f),i!=="")return`\\\\${i}${f}`;{let g=f.codePointAt(1)|32,a=f[2];if(g<iC||g>oC||a!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return f.slice(1)}}function I4(o){if(o.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let i=o.pathname;for(let f=0;f<i.length;f++)if(i[f]==="%"){let g=i.codePointAt(f+2)||32;if(i[f+1]==="2"&&g===102)throw new Deno.errors.InvalidData("must not include encoded / characters")}return decodeURIComponent(i)}function cI(o){let i=Y_.resolve(o),f=o.charCodeAt(o.length-1);(f===nC||yd&&f===rC)&&i[i.length-1]!==Y_.sep&&(i+="/");let g=new URL("file://");return i.includes("%")&&(i=i.replace(sC,"%25")),!yd&&i.includes("\\")&&(i=i.replace(lC,"%5C")),i.includes(`
40
- `)&&(i=i.replace(fC,"%0A")),i.includes("\r")&&(i=i.replace(uC,"%0D")),i.includes(" ")&&(i=i.replace(cC,"%09")),g.pathname=i,g}function b2(){if(X_)return zr;X_=!0,zr.fetch=g(qi.fetch)&&g(qi.ReadableStream),zr.writableStream=g(qi.WritableStream),zr.abortController=g(qi.AbortController);var o;function i(){if(o!==void 0)return o;if(qi.XMLHttpRequest){o=new qi.XMLHttpRequest;try{o.open("GET",qi.XDomainRequest?"/":"https://example.com")}catch{o=null}}else o=null;return o}l(i,"t"),e(i,"getXHR");function f(a){var n=i();if(!n)return!1;try{return n.responseType=a,n.responseType===a}catch{}return!1}l(f,"r"),e(f,"checkTypeSupport"),zr.arraybuffer=zr.fetch||f("arraybuffer"),zr.msstream=!zr.fetch&&f("ms-stream"),zr.mozchunkedarraybuffer=!zr.fetch&&f("moz-chunked-arraybuffer"),zr.overrideMimeType=zr.fetch||(i()?g(i().overrideMimeType):!1);function g(a){return typeof a=="function"}return l(g,"n"),e(g,"isFunction"),o=null,zr}function v2(){if(eE)return Ml;eE=!0;var o=wi.Buffer,i=Ot,f=b2(),g=Zi(),a=w2(),n=Ml.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},r=Ml.IncomingMessage=function(u,p,c,d){var m=this||$l;if(a.Readable.call(m),m._mode=c,m.headers={},m.rawHeaders=[],m.trailers={},m.rawTrailers=[],m.on("end",function(){i.nextTick(function(){m.emit("close")})}),c==="fetch"){let k=e(function(){w.read().then(function(E){if(!m._destroyed){if(d(E.done),E.done){m.push(null);return}m.push(o.from(E.value)),k()}}).catch(function(E){d(!0),m._destroyed||m.emit("error",E)})},"read");if(m._fetchResponse=p,m.url=p.url,m.statusCode=p.status,m.statusMessage=p.statusText,p.headers.forEach(function(E,j){m.headers[j.toLowerCase()]=E,m.rawHeaders.push(j,E)}),f.writableStream){var y=new WritableStream({write:e(function(E){return d(!1),new Promise(function(j,A){m._destroyed?A():m.push(o.from(E))?j():m._resumeFetch=j})},"write"),close:e(function(){d(!0),m._destroyed||m.push(null)},"close"),abort:e(function(E){d(!0),m._destroyed||m.emit("error",E)},"abort")});try{p.body.pipeTo(y).catch(function(E){d(!0),m._destroyed||m.emit("error",E)});return}catch{}}var w=p.body.getReader();k()}else{m._xhr=u,m._pos=0,m.url=u.responseURL,m.statusCode=u.status,m.statusMessage=u.statusText;var _=u.getAllResponseHeaders().split(/\r?\n/);if(_.forEach(function(k){var E=k.match(/^([^:]+):\s*(.*)/);if(E){var j=E[1].toLowerCase();j==="set-cookie"?(m.headers[j]===void 0&&(m.headers[j]=[]),m.headers[j].push(E[2])):m.headers[j]!==void 0?m.headers[j]+=", "+E[2]:m.headers[j]=E[2],m.rawHeaders.push(E[1],E[2])}}),m._charset="x-user-defined",!f.overrideMimeType){var S=m.rawHeaders["mime-type"];if(S){var T=S.match(/;\s*charset=([^;])(;|$)/);T&&(m._charset=T[1].toLowerCase())}m._charset||(m._charset="utf-8")}}};return g(r,a.Readable),r.prototype._read=function(){var u=this||$l,p=u._resumeFetch;p&&(u._resumeFetch=null,p())},r.prototype._onXHRProgress=function(u){var p=this||$l,c=p._xhr,d=null;switch(p._mode){case"text":if(d=c.responseText,d.length>p._pos){var m=d.substr(p._pos);if(p._charset==="x-user-defined"){for(var y=o.alloc(m.length),w=0;w<m.length;w++)y[w]=m.charCodeAt(w)&255;p.push(y)}else p.push(m,p._charset);p._pos=d.length}break;case"arraybuffer":if(c.readyState!==n.DONE||!c.response)break;d=c.response,p.push(o.from(new Uint8Array(d)));break;case"moz-chunked-arraybuffer":if(d=c.response,c.readyState!==n.LOADING||!d)break;p.push(o.from(new Uint8Array(d)));break;case"ms-stream":if(d=c.response,c.readyState!==n.LOADING)break;var _=new $l.MSStreamReader;_.onprogress=function(){_.result.byteLength>p._pos&&(p.push(o.from(new Uint8Array(_.result.slice(p._pos)))),p._pos=_.result.byteLength)},_.onload=function(){u(!0),p.push(null)},_.readAsArrayBuffer(d);break}p._xhr.readyState===n.DONE&&p._mode!=="ms-stream"&&(u(!0),p.push(null))},Ml}function x4(){if(tE)return Gh;tE=!0;var o=wi.Buffer,i=Ot,f=b2(),g=Zi(),a=v2(),n=w2(),r=a.IncomingMessage,u=a.readyStates;function p(y,w){return f.fetch&&w?"fetch":f.mozchunkedarraybuffer?"moz-chunked-arraybuffer":f.msstream?"ms-stream":f.arraybuffer&&y?"arraybuffer":"text"}l(p,"h"),e(p,"decideMode");var c=Gh=e(function(y){var w=this||cr;n.Writable.call(w),w._opts=y,w._body=[],w._headers={},y.auth&&w.setHeader("Authorization","Basic "+o.from(y.auth).toString("base64")),Object.keys(y.headers).forEach(function(T){w.setHeader(T,y.headers[T])});var _,S=!0;if(y.mode==="disable-fetch"||"requestTimeout"in y&&!f.abortController)S=!1,_=!0;else if(y.mode==="prefer-streaming")_=!1;else if(y.mode==="allow-wrong-content-type")_=!f.overrideMimeType;else if(!y.mode||y.mode==="default"||y.mode==="prefer-fast")_=!0;else throw new Error("Invalid value for opts.mode");w._mode=p(_,S),w._fetchTimer=null,w._socketTimeout=null,w._socketTimer=null,w.on("finish",function(){w._onFinish()})},"exports$42");g(c,n.Writable),c.prototype.setHeader=function(y,w){var _=this||cr,S=y.toLowerCase();m.indexOf(S)===-1&&(_._headers[S]={name:y,value:w})},c.prototype.getHeader=function(y){var w=(this||cr)._headers[y.toLowerCase()];return w?w.value:null},c.prototype.removeHeader=function(y){var w=this||cr;delete w._headers[y.toLowerCase()]},c.prototype._onFinish=function(){var y=this||cr;if(!y._destroyed){var w=y._opts;"timeout"in w&&w.timeout!==0&&y.setTimeout(w.timeout);var _=y._headers,S=null;w.method!=="GET"&&w.method!=="HEAD"&&(S=new Blob(y._body,{type:(_["content-type"]||{}).value||""}));var T=[];if(Object.keys(_).forEach(function(A){var I=_[A].name,U=_[A].value;Array.isArray(U)?U.forEach(function(M){T.push([I,M])}):T.push([I,U])}),y._mode==="fetch"){var k=null;if(f.abortController){var E=new AbortController;k=E.signal,y._fetchAbortController=E,"requestTimeout"in w&&w.requestTimeout!==0&&(y._fetchTimer=cr.setTimeout(function(){y.emit("requestTimeout"),y._fetchAbortController&&y._fetchAbortController.abort()},w.requestTimeout))}cr.fetch(y._opts.url,{method:y._opts.method,headers:T,body:S||void 0,mode:"cors",credentials:w.withCredentials?"include":"same-origin",signal:k}).then(function(A){y._fetchResponse=A,y._resetTimers(!1),y._connect()},function(A){y._resetTimers(!0),y._destroyed||y.emit("error",A)})}else{var j=y._xhr=new cr.XMLHttpRequest;try{j.open(y._opts.method,y._opts.url,!0)}catch(A){i.nextTick(function(){y.emit("error",A)});return}"responseType"in j&&(j.responseType=y._mode),"withCredentials"in j&&(j.withCredentials=!!w.withCredentials),y._mode==="text"&&"overrideMimeType"in j&&j.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in w&&(j.timeout=w.requestTimeout,j.ontimeout=function(){y.emit("requestTimeout")}),T.forEach(function(A){j.setRequestHeader(A[0],A[1])}),y._response=null,j.onreadystatechange=function(){switch(j.readyState){case u.LOADING:case u.DONE:y._onXHRProgress();break}},y._mode==="moz-chunked-arraybuffer"&&(j.onprogress=function(){y._onXHRProgress()}),j.onerror=function(){y._destroyed||(y._resetTimers(!0),y.emit("error",new Error("XHR error")))};try{j.send(S)}catch(A){i.nextTick(function(){y.emit("error",A)});return}}}};function d(y){try{var w=y.status;return w!==null&&w!==0}catch{return!1}}l(d,"d"),e(d,"statusValid"),c.prototype._onXHRProgress=function(){var y=this||cr;y._resetTimers(!1),!(!d(y._xhr)||y._destroyed)&&(y._response||y._connect(),y._response._onXHRProgress(y._resetTimers.bind(y)))},c.prototype._connect=function(){var y=this||cr;y._destroyed||(y._response=new r(y._xhr,y._fetchResponse,y._mode,y._resetTimers.bind(y)),y._response.on("error",function(w){y.emit("error",w)}),y.emit("response",y._response))},c.prototype._write=function(y,w,_){var S=this||cr;S._body.push(y),_()},c.prototype._resetTimers=function(y){var w=this||cr;cr.clearTimeout(w._socketTimer),w._socketTimer=null,y?(cr.clearTimeout(w._fetchTimer),w._fetchTimer=null):w._socketTimeout&&(w._socketTimer=cr.setTimeout(function(){w.emit("timeout")},w._socketTimeout))},c.prototype.abort=c.prototype.destroy=function(y){var w=this||cr;w._destroyed=!0,w._resetTimers(!0),w._response&&(w._response._destroyed=!0),w._xhr?w._xhr.abort():w._fetchAbortController&&w._fetchAbortController.abort(),y&&w.emit("error",y)},c.prototype.end=function(y,w,_){var S=this||cr;typeof y=="function"&&(_=y,y=void 0),n.Writable.prototype.end.call(S,y,w,_)},c.prototype.setTimeout=function(y,w){var _=this||cr;w&&_.once("timeout",w),_._socketTimeout=y,_._resetTimers(!1)},c.prototype.flushHeaders=function(){},c.prototype.setNoDelay=function(){},c.prototype.setSocketKeepAlive=function(){};var m=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"];return Gh}function j4(){if(rE)return Vh;rE=!0,Vh=i;var o=Object.prototype.hasOwnProperty;function i(){for(var f={},g=0;g<arguments.length;g++){var a=arguments[g];for(var n in a)o.call(a,n)&&(f[n]=a[n])}return f}return l(i,"t"),e(i,"extend"),Vh}function C4(){return iE||(iE=!0,nE={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}),nE}function hI(){if(oE)return Kh;oE=!0;var o=x4(),i=v2(),f=j4(),g=C4(),a=jt,n=Kh;return n.request=function(r,u){typeof r=="string"?r=a.parse(r):r=f(r);var p=hC.location.protocol.search(/^https?:$/)===-1?"http:":"",c=r.protocol||p,d=r.hostname||r.host,m=r.port,y=r.path||"/";d&&d.indexOf(":")!==-1&&(d="["+d+"]"),r.url=(d?c+"//"+d:"")+(m?":"+m:"")+y,r.method=(r.method||"GET").toUpperCase(),r.headers=r.headers||{};var w=new o(r);return u&&w.on("response",u),w},n.get=e(function(r,u){var p=n.request(r,u);return p.end(),p},"get2"),n.ClientRequest=o,n.IncomingMessage=i.IncomingMessage,n.Agent=function(){},n.Agent.defaultMaxSockets=4,n.globalAgent=new n.Agent,n.STATUS_CODES=g,n.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"],Kh}function dI(){if(aE)return Jh;aE=!0;var o=Fn,i=jt,f=Jh;for(var g in o)o.hasOwnProperty(g)&&(f[g]=o[g]);f.request=function(n,r){return n=a(n),o.request.call(this||sE,n,r)},f.get=function(n,r){return n=a(n),o.get.call(this||sE,n,r)};function a(n){if(typeof n=="string"&&(n=i.parse(n)),n.protocol||(n.protocol="https:"),n.protocol!=="https:")throw new Error('Protocol "'+n.protocol+'" not supported. Expected "https:"');return n}return l(a,"a"),e(a,"validateParams"),Jh}function EC(){if(lE)return Yh;lE=!0;function o(i,f){return Object.prototype.hasOwnProperty.call(i,f)}return l(o,"e"),e(o,"hasOwnProperty"),Yh=e(function(i,f,g,a){f=f||"&",g=g||"=";var n={};if(typeof i!="string"||i.length===0)return n;var r=/\+/g;i=i.split(f);var u=1e3;a&&typeof a.maxKeys=="number"&&(u=a.maxKeys);var p=i.length;u>0&&p>u&&(p=u);for(var c=0;c<p;++c){var d=i[c].replace(r,"%20"),m=d.indexOf(g),y,w,_,S;m>=0?(y=d.substr(0,m),w=d.substr(m+1)):(y=d,w=""),_=decodeURIComponent(y),S=decodeURIComponent(w),o(n,_)?Array.isArray(n[_])?n[_].push(S):n[_]=[n[_],S]:n[_]=S}return n},"exports$3"),Yh}function SC(){if(fE)return Zh;fE=!0;var o=e(function(i){switch(typeof i){case"string":return i;case"boolean":return i?"true":"false";case"number":return isFinite(i)?i:"";default:return""}},"stringifyPrimitive");return Zh=e(function(i,f,g,a){return f=f||"&",g=g||"=",i===null&&(i=void 0),typeof i=="object"?Object.keys(i).map(function(n){var r=encodeURIComponent(o(n))+g;return Array.isArray(i[n])?i[n].map(function(u){return r+encodeURIComponent(o(u))}).join(f):r+encodeURIComponent(o(i[n]))}).filter(Boolean).join(f):a?encodeURIComponent(o(a))+g+encodeURIComponent(o(i)):""},"exports$2"),Zh}function JI(){return uE||(uE=!0,Bs.decode=Bs.parse=EC(),Bs.encode=Bs.stringify=SC()),Bs}function YI(){if(cE)return Wl;cE=!0;var o=typeof Reflect=="object"?Reflect:null,i=o&&typeof o.apply=="function"?o.apply:e(function(A,I,U){return Function.prototype.apply.call(A,I,U)},"ReflectApply2"),f;o&&typeof o.ownKeys=="function"?f=o.ownKeys:Object.getOwnPropertySymbols?f=e(function(A){return Object.getOwnPropertyNames(A).concat(Object.getOwnPropertySymbols(A))},"ReflectOwnKeys2"):f=e(function(A){return Object.getOwnPropertyNames(A)},"ReflectOwnKeys2");function g(A){console&&console.warn&&console.warn(A)}l(g,"n"),e(g,"ProcessEmitWarning");var a=Number.isNaN||e(function(A){return A!==A},"NumberIsNaN2");function n(){n.init.call(this)}l(n,"s"),e(n,"EventEmitter2"),Wl=n,Wl.once=k,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._eventsCount=0,n.prototype._maxListeners=void 0;var r=10;function u(A){if(typeof A!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof A)}l(u,"f"),e(u,"checkListener"),Object.defineProperty(n,"defaultMaxListeners",{enumerable:!0,get:e(function(){return r},"get"),set:e(function(A){if(typeof A!="number"||A<0||a(A))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+A+".");r=A},"set")}),n.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},n.prototype.setMaxListeners=e(function(A){if(typeof A!="number"||A<0||a(A))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+A+".");return this._maxListeners=A,this},"setMaxListeners");function p(A){return A._maxListeners===void 0?n.defaultMaxListeners:A._maxListeners}l(p,"h"),e(p,"_getMaxListeners"),n.prototype.getMaxListeners=e(function(){return p(this)},"getMaxListeners"),n.prototype.emit=e(function(A){for(var I=[],U=1;U<arguments.length;U++)I.push(arguments[U]);var M=A==="error",ee=this._events;if(ee!==void 0)M=M&&ee.error===void 0;else if(!M)return!1;if(M){var V;if(I.length>0&&(V=I[0]),V instanceof Error)throw V;var q=new Error("Unhandled error."+(V?" ("+V.message+")":""));throw q.context=V,q}var G=ee[A];if(G===void 0)return!1;if(typeof G=="function")i(G,this,I);else for(var re=G.length,ae=_(G,re),U=0;U<re;++U)i(ae[U],this,I);return!0},"emit");function c(A,I,U,M){var ee,V,q;if(u(U),V=A._events,V===void 0?(V=A._events=Object.create(null),A._eventsCount=0):(V.newListener!==void 0&&(A.emit("newListener",I,U.listener?U.listener:U),V=A._events),q=V[I]),q===void 0)q=V[I]=U,++A._eventsCount;else if(typeof q=="function"?q=V[I]=M?[U,q]:[q,U]:M?q.unshift(U):q.push(U),ee=p(A),ee>0&&q.length>ee&&!q.warned){q.warned=!0;var G=new Error("Possible EventEmitter memory leak detected. "+q.length+" "+String(I)+" listeners added. Use emitter.setMaxListeners() to increase limit");G.name="MaxListenersExceededWarning",G.emitter=A,G.type=I,G.count=q.length,g(G)}return A}l(c,"c"),e(c,"_addListener"),n.prototype.addListener=e(function(A,I){return c(this,A,I,!1)},"addListener"),n.prototype.on=n.prototype.addListener,n.prototype.prependListener=e(function(A,I){return c(this,A,I,!0)},"prependListener");function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}l(d,"d"),e(d,"onceWrapper");function m(A,I,U){var M={fired:!1,wrapFn:void 0,target:A,type:I,listener:U},ee=d.bind(M);return ee.listener=U,M.wrapFn=ee,ee}l(m,"y"),e(m,"_onceWrap"),n.prototype.once=e(function(A,I){return u(I),this.on(A,m(this,A,I)),this},"once3"),n.prototype.prependOnceListener=e(function(A,I){return u(I),this.prependListener(A,m(this,A,I)),this},"prependOnceListener"),n.prototype.removeListener=e(function(A,I){var U,M,ee,V,q;if(u(I),M=this._events,M===void 0)return this;if(U=M[A],U===void 0)return this;if(U===I||U.listener===I)--this._eventsCount===0?this._events=Object.create(null):(delete M[A],M.removeListener&&this.emit("removeListener",A,U.listener||I));else if(typeof U!="function"){for(ee=-1,V=U.length-1;V>=0;V--)if(U[V]===I||U[V].listener===I){q=U[V].listener,ee=V;break}if(ee<0)return this;ee===0?U.shift():S(U,ee),U.length===1&&(M[A]=U[0]),M.removeListener!==void 0&&this.emit("removeListener",A,q||I)}return this},"removeListener"),n.prototype.off=n.prototype.removeListener,n.prototype.removeAllListeners=e(function(A){var I,U,M;if(U=this._events,U===void 0)return this;if(U.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):U[A]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete U[A]),this;if(arguments.length===0){var ee=Object.keys(U),V;for(M=0;M<ee.length;++M)V=ee[M],V!=="removeListener"&&this.removeAllListeners(V);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(I=U[A],typeof I=="function")this.removeListener(A,I);else if(I!==void 0)for(M=I.length-1;M>=0;M--)this.removeListener(A,I[M]);return this},"removeAllListeners");function y(A,I,U){var M=A._events;if(M===void 0)return[];var ee=M[I];return ee===void 0?[]:typeof ee=="function"?U?[ee.listener||ee]:[ee]:U?T(ee):_(ee,ee.length)}l(y,"m"),e(y,"_listeners"),n.prototype.listeners=e(function(A){return y(this,A,!0)},"listeners"),n.prototype.rawListeners=e(function(A){return y(this,A,!1)},"rawListeners"),n.listenerCount=function(A,I){return typeof A.listenerCount=="function"?A.listenerCount(I):w.call(A,I)},n.prototype.listenerCount=w;function w(A){var I=this._events;if(I!==void 0){var U=I[A];if(typeof U=="function")return 1;if(U!==void 0)return U.length}return 0}l(w,"g"),e(w,"listenerCount2"),n.prototype.eventNames=e(function(){return this._eventsCount>0?f(this._events):[]},"eventNames");function _(A,I){for(var U=new Array(I),M=0;M<I;++M)U[M]=A[M];return U}l(_,"v"),e(_,"arrayClone");function S(A,I){for(;I+1<A.length;I++)A[I]=A[I+1];A.pop()}l(S,"_"),e(S,"spliceOne");function T(A){for(var I=new Array(A.length),U=0;U<I.length;++U)I[U]=A[U].listener||A[U];return I}l(T,"b"),e(T,"unwrapListeners");function k(A,I){return new Promise(function(U,M){function ee(q){A.removeListener(I,V),M(q)}l(ee,"D"),e(ee,"errorListener");function V(){typeof A.removeListener=="function"&&A.removeListener("error",ee),U([].slice.call(arguments))}l(V,"L"),e(V,"resolver"),j(A,I,V,{once:!0}),I!=="error"&&E(A,ee,{once:!0})})}l(k,"E"),e(k,"once2");function E(A,I,U){typeof A.on=="function"&&j(A,"error",I,U)}l(E,"R"),e(E,"addErrorHandlerIfEventEmitter");function j(A,I,U,M){if(typeof A.on=="function")M.once?A.once(I,U):A.on(I,U);else if(typeof A.addEventListener=="function")A.addEventListener(I,e(l(function ee(V){M.once&&A.removeEventListener(I,ee),U(V)},"D"),"wrapListener"));else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof A)}return l(j,"T"),e(j,"eventTargetAgnosticAddListener"),Wl}function hE(o){let i=o.name||"untitled";return{kind:"file",name:i,async getFile(){let f=(await o.stat()).size;console.log("reading data into buffer of size"+f);let g=Gs.alloc(f);await o.read(g,0,f,0);let a=new Uint8Array(g.buffer,g.byteOffset,g.byteLength);console.log("buffer read",a);let n=a;return new File([n],i||"untitled")},async createWritable(){return{async write(f){console.log("writing data to handle",o);let g;if(typeof f=="string")g=Gs.from(f,"utf-8");else if(f instanceof Blob){let a=await f.arrayBuffer();g=new Uint8Array(a)}else if(ArrayBuffer.isView(f))g=new Uint8Array(f.buffer,f.byteOffset,f.byteLength);else throw console.log("data",f),new Error("Unsupported data type for write");await o.write(g),await o.sync(),console.log("write completed")},async close(){await o.close()}}}}}async function zC(o){let i=await o.getFile();return i.handle=o,i}async function HC(o){return{openFile:e(async i=>{let f=await o.promises.open(i,"w");return f.name=i,await zC(hE(f))},"openFile"),fileSave:e(async(i,f,g,a,n)=>{if(g)console.log("using existing handle",g);else{let u=window.prompt("Save as",f?.fileName??"untitled");if(console.log("result of prompt",u),!u)throw new Error("no file choosen");try{let p=await o.promises.open(`${u}`,"w");g=hE(p)}catch(p){throw console.error("Failed to open file in legitFs",p),new Error("Failed to open file in legitFs")}}let r=i instanceof Blob?i:await i;return await(await g.createWritable()).write(r),g},"fileSave")}}function Wd(o){throw new Error("Node.js process "+o+" is not supported by JSPM core outside of Node.js")}function qC(){!Ps||!pa||(Ps=!1,pa.length?bi=pa.concat(bi):Qh=-1,bi.length&&S2())}function S2(){if(!Ps){var o=setTimeout(qC,0);Ps=!0;for(var i=bi.length;i;){for(pa=bi,bi=[];++Qh<i;)pa&&pa[Qh].run();Qh=-1,i=bi.length}pa=null,Ps=!1,clearTimeout(o)}}function GC(o){var i=new Array(arguments.length-1);if(arguments.length>1)for(var f=1;f<arguments.length;f++)i[f-1]=arguments[f];bi.push(new A2(o,i)),bi.length===1&&!Ps&&setTimeout(S2,0)}function A2(o,i){this.fun=o,this.array=i}function Sr(){}function VC(o){Wd("_linkedBinding")}function KC(o){Wd("dlopen")}function JC(){return[]}function YC(){return[]}function ZC(o,i){if(!o)throw new Error(i||"assertion error")}function QC(){return!1}function XC(){return Gi.now()/1e3}function md(o){var i=Math.floor((Date.now()-Gi.now())*.001),f=Gi.now()*.001,g=Math.floor(f)+i,a=Math.floor(f%1*1e9);return o&&(g=g-o[0],a=a-o[1],a<0&&(g--,a+=dE)),[g,a]}function Si(){return tP}function eP(o){return[]}function rP(){if(QI)return Dm;QI=!0;var o=tP;function i(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}l(i,"t"),e(i,"assertPath");function f(n,r){for(var u="",p=0,c=-1,d=0,m,y=0;y<=n.length;++y){if(y<n.length)m=n.charCodeAt(y);else{if(m===47)break;m=47}if(m===47){if(!(c===y-1||d===1))if(c!==y-1&&d===2){if(u.length<2||p!==2||u.charCodeAt(u.length-1)!==46||u.charCodeAt(u.length-2)!==46){if(u.length>2){var w=u.lastIndexOf("/");if(w!==u.length-1){w===-1?(u="",p=0):(u=u.slice(0,w),p=u.length-1-u.lastIndexOf("/")),c=y,d=0;continue}}else if(u.length===2||u.length===1){u="",p=0,c=y,d=0;continue}}r&&(u.length>0?u+="/..":u="..",p=2)}else u.length>0?u+="/"+n.slice(c+1,y):u=n.slice(c+1,y),p=y-c-1;c=y,d=0}else m===46&&d!==-1?++d:d=-1}return u}l(f,"r"),e(f,"normalizeStringPosix");function g(n,r){var u=r.dir||r.root,p=r.base||(r.name||"")+(r.ext||"");return u?u===r.root?u+p:u+n+p:p}l(g,"n"),e(g,"_format");var a={resolve:e(function(){for(var n="",r=!1,u,p=arguments.length-1;p>=-1&&!r;p--){var c;p>=0?c=arguments[p]:(u===void 0&&(u=o.cwd()),c=u),i(c),c.length!==0&&(n=c+"/"+n,r=c.charCodeAt(0)===47)}return n=f(n,!r),r?n.length>0?"/"+n:"/":n.length>0?n:"."},"resolve2"),normalize:e(function(n){if(i(n),n.length===0)return".";var r=n.charCodeAt(0)===47,u=n.charCodeAt(n.length-1)===47;return n=f(n,!r),n.length===0&&!r&&(n="."),n.length>0&&u&&(n+="/"),r?"/"+n:n},"normalize2"),isAbsolute:e(function(n){return i(n),n.length>0&&n.charCodeAt(0)===47},"isAbsolute2"),join:e(function(){if(arguments.length===0)return".";for(var n,r=0;r<arguments.length;++r){var u=arguments[r];i(u),u.length>0&&(n===void 0?n=u:n+="/"+u)}return n===void 0?".":a.normalize(n)},"join2"),relative:e(function(n,r){if(i(n),i(r),n===r||(n=a.resolve(n),r=a.resolve(r),n===r))return"";for(var u=1;u<n.length&&n.charCodeAt(u)===47;++u);for(var p=n.length,c=p-u,d=1;d<r.length&&r.charCodeAt(d)===47;++d);for(var m=r.length,y=m-d,w=c<y?c:y,_=-1,S=0;S<=w;++S){if(S===w){if(y>w){if(r.charCodeAt(d+S)===47)return r.slice(d+S+1);if(S===0)return r.slice(d+S)}else c>w&&(n.charCodeAt(u+S)===47?_=S:S===0&&(_=0));break}var T=n.charCodeAt(u+S),k=r.charCodeAt(d+S);if(T!==k)break;T===47&&(_=S)}var E="";for(S=u+_+1;S<=p;++S)(S===p||n.charCodeAt(S)===47)&&(E.length===0?E+="..":E+="/..");return E.length>0?E+r.slice(d+_):(d+=_,r.charCodeAt(d)===47&&++d,r.slice(d))},"relative2"),_makeLong:e(function(n){return n},"_makeLong2"),dirname:e(function(n){if(i(n),n.length===0)return".";for(var r=n.charCodeAt(0),u=r===47,p=-1,c=!0,d=n.length-1;d>=1;--d)if(r=n.charCodeAt(d),r===47){if(!c){p=d;break}}else c=!1;return p===-1?u?"/":".":u&&p===1?"//":n.slice(0,p)},"dirname2"),basename:e(function(n,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');i(n);var u=0,p=-1,c=!0,d;if(r!==void 0&&r.length>0&&r.length<=n.length){if(r.length===n.length&&r===n)return"";var m=r.length-1,y=-1;for(d=n.length-1;d>=0;--d){var w=n.charCodeAt(d);if(w===47){if(!c){u=d+1;break}}else y===-1&&(c=!1,y=d+1),m>=0&&(w===r.charCodeAt(m)?--m===-1&&(p=d):(m=-1,p=y))}return u===p?p=y:p===-1&&(p=n.length),n.slice(u,p)}else{for(d=n.length-1;d>=0;--d)if(n.charCodeAt(d)===47){if(!c){u=d+1;break}}else p===-1&&(c=!1,p=d+1);return p===-1?"":n.slice(u,p)}},"basename2"),extname:e(function(n){i(n);for(var r=-1,u=0,p=-1,c=!0,d=0,m=n.length-1;m>=0;--m){var y=n.charCodeAt(m);if(y===47){if(!c){u=m+1;break}continue}p===-1&&(c=!1,p=m+1),y===46?r===-1?r=m:d!==1&&(d=1):r!==-1&&(d=-1)}return r===-1||p===-1||d===0||d===1&&r===p-1&&r===u+1?"":n.slice(r,p)},"extname2"),format:e(function(n){if(n===null||typeof n!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof n);return g("/",n)},"format2"),parse:e(function(n){i(n);var r={root:"",dir:"",base:"",ext:"",name:""};if(n.length===0)return r;var u=n.charCodeAt(0),p=u===47,c;p?(r.root="/",c=1):c=0;for(var d=-1,m=0,y=-1,w=!0,_=n.length-1,S=0;_>=c;--_){if(u=n.charCodeAt(_),u===47){if(!w){m=_+1;break}continue}y===-1&&(w=!1,y=_+1),u===46?d===-1?d=_:S!==1&&(S=1):d!==-1&&(S=-1)}return d===-1||y===-1||S===0||S===1&&d===y-1&&d===m+1?y!==-1&&(m===0&&p?r.base=r.name=n.slice(1,y):r.base=r.name=n.slice(m,y)):(m===0&&p?(r.name=n.slice(1,d),r.base=n.slice(1,y)):(r.name=n.slice(m,d),r.base=n.slice(m,y)),r.ext=n.slice(d,y)),m>0?r.dir=n.slice(0,m-1):p&&(r.dir="/"),r},"parse2"),sep:"/",delimiter:":",win32:null,posix:null};return a.posix=a,Dm=a,Dm}function mE(o){let i=o.codePointAt(0);return!(i>=0&&i<=31||i===127||XD.has(o))}function pP(o){let i="";for(let f of o)f===" "?i+=dP:mE(f)?i+=f:i+="%"+f.codePointAt(0);for(let f of e5)if(f.test(i))return Array.from(i).map(g=>mE(g)?g:"%"+g.codePointAt(0)).join("");return i}function gP(o){return o.replace(/%(\d+)/g,(i,f)=>String.fromCodePoint(parseInt(f,10))).replace(new RegExp(dP,"g")," ")}function wd(o){return o.replace(/\./g,"%2E").replace(/\//g,".")}function mn(o){return o.replace(/\./g,"/").replace(/%2E/g,".")}async function Er(o,i,f){try{return await xn.default.resolveRef({fs:o,dir:i,ref:`refs/heads/${mn(f)}`})}catch{return}}async function mi({dir:o,fs:i,treeOid:f,deletePathParts:g,addPathParts:a,addObj:n,addKeepIfEmpty:r,deleteKeepIfNotEmpty:u,keepFilename:p=".keep"}){let[c,...d]=a??[],[m,...y]=g??[],w=[];if(f){let{tree:_}=await xn.default.readTree({fs:i,dir:o,oid:f});w=[..._]}if(c===m){let _=c;if(_===void 0)throw new Error("illegal arguement - called with out a path part");if(d.length===0)throw new Error("can not move into it self");if(y.length===0)throw new Error("can not move from it self");let S=w.findIndex(j=>j.path===_),T=(S!==-1?w[S]:void 0)?.oid,k=await mi({dir:o,fs:i,treeOid:T,addPathParts:d,deletePathParts:y,addObj:n,addKeepIfEmpty:r,deleteKeepIfNotEmpty:u});if(k===void 0)throw new Error("on the same path we expect an update - respectivly a newly created subTreeOid");let E=!1;if(k!==T){E=!0;let j={mode:"040000",path:_,oid:k,type:"tree"};S!==-1?w[S]=j:w.push(j)}if(f==null&&!E)throw new Error("Illegal state - if the currentOid is undefined - a new tree should have been created (an update should have happened)");if(E)return await xn.default.writeTree({fs:i,dir:o,tree:w});if(f===void 0)throw new Error("currentOid should be set - since the sub tree didn't exist and ");return f}else{let _=!1,S;if(m){let T=w.findIndex(E=>E.path===m),k=T!==-1?w[T]:void 0;if(k===void 0)throw new Error("Element doesnt exist in tree");if(y.length>0){if(k&&k.type!=="tree")throw new Error("SubPart of the path for the obj to delete is not a tree");let E=await mi({dir:o,fs:i,treeOid:k.oid,addPathParts:void 0,deletePathParts:y,addObj:n,addKeepIfEmpty:r,deleteKeepIfNotEmpty:u});if(E===k.oid)throw new Error("in case of a delete we expect a different subtree oid");_=!0,E===void 0?w.splice(T,1):w[T]={mode:"040000",path:m,oid:E,type:"tree"}}else if(_=!0,w.splice(T,1),w.length===0&&r){let E=new Uint8Array(0),j=await xn.default.writeBlob({fs:i,dir:o,blob:E});w.push({mode:"100644",oid:j,path:p,type:"blob"})}S=k}if(c){let T=w.findIndex(E=>E.path===c),k=T!==-1?w[T]:void 0;if(d.length>0){if(k&&k.type!=="tree")throw new Error("SubPart of the path for the obj to add is not a tree");let E=await mi({dir:o,fs:i,treeOid:k?.oid,addPathParts:d,deletePathParts:void 0,addObj:n,addKeepIfEmpty:r,deleteKeepIfNotEmpty:u});if(E===void 0)throw new Error("in case we add, we expect an update - respectivly a newly created subTreeOid");if(E!==k?.oid){_=!0;let j={mode:"040000",path:c,oid:E,type:"tree"};if(T!==-1)w[T]=j;else if(w.push(j),u&&w.length>1){let A=w.findIndex(I=>I.path===p);A!==-1&&w.splice(A,1)}}}else{if(_=!0,n){let E={mode:n.type==="tree"?"040000":"100644",path:c,oid:n.oid,type:n.type};if(T!==-1)w[T]=E;else{if(u&&w.length>0){let j=w.findIndex(A=>A.path===p);j!==-1&&w.splice(j,1)}w.push(E)}}if(r&&w.length===0){let E=new Uint8Array(0),j=await xn.default.writeBlob({fs:i,dir:o,blob:E});w.push({mode:"100644",oid:j,path:p,type:"blob"})}}}if(w.length===0)return;if(_)return await xn.default.writeTree({fs:i,dir:o,tree:w});if(f===void 0)throw new Error("currentOid should be set - since the sub tree didn't exist and ");return f}}async function Ls({filePath:o,gitRoot:i,nodeFs:f,commitSha:g,pathParams:a}){if(!a.filePath){let n=await xn.default.readTree({fs:f,dir:i,oid:g});return{type:"tree",entries:n.tree.map(r=>Fa({parent:o,name:r.path,isDir:r.type==="tree"})),oid:n.oid}}return(await xn.default.walk({fs:f,dir:i,trees:[xn.default.TREE({ref:g})],map:e(async(n,[r])=>{if(n===a.filePath&&r){let u=await r.type();if(u==="blob")return{type:"blob",oid:await r.oid()};if(u=="tree"){let p=await xn.default.readTree({fs:f,dir:i,oid:await r.oid()});return{type:"tree",entries:p.tree.map(c=>Fa({parent:o,name:c.path,isDir:c.type==="tree"})),oid:p.oid}}}},"map")})).find(n=>n!==void 0)}function Fa(o){return{name:o.name,isFile:e(()=>!o.isDir,"isFile"),isDirectory:e(()=>o.isDir,"isDirectory"),isBlockDevice:e(()=>!0,"isBlockDevice"),isCharacterDevice:e(()=>!1,"isCharacterDevice"),isSymbolicLink:e(()=>!1,"isSymbolicLink"),isFIFO:e(()=>!1,"isFIFO"),isSocket:e(()=>!1,"isSocket"),parentPath:o.parent,path:o.parent}}async function Vt(o,i){try{let f=await bE.default.getConfig({fs:i,dir:o,path:"user.legit-current-branch"});if(f)return wd(f)}catch{}try{let f=await bE.default.getConfig({fs:i,dir:o,path:"init.defaultBranch"});return wd(f)||"main"}catch{return"main"}}async function wP(o,i,f){await bE.default.setConfig({fs:i,dir:o,path:"user.legit-current-branch",value:mn(f)})}function vP(o,i,f){return o===0&&i===2&&f===0?"untracked":o===1&&i===0&&f===0?"deleted":o===1&&i===2&&f!==0?"modified":o===0&&i===2&&f===2?"added":"unknown"}async function on(o,i,f){return(await o5.default.listBranches({fs:o,dir:i})).filter(g=>g.endsWith("__"+f+EP))[0]}function AP(o){let i=[o];return{next(){return Promise.resolve({done:i.length===0,value:i.pop()})},return(){return i=[],{}},[Symbol.asyncIterator](){return this}}}function RP(o){return o[Symbol.asyncIterator]?o[Symbol.asyncIterator]():o[Symbol.iterator]?o[Symbol.iterator]():o.next?o:AP(o)}async function k2(o,i){let f=RP(o);for(;;){let{value:g,done:a}=await f.next();if(g&&await i(g),a)break}f.return&&f.return()}function kP(o){let{PassThrough:i}=G3(),f=new i;return setTimeout(async()=>{await k2(o,g=>f.write(g)),f.end()},1),f}async function OP(o){let i=0,f=[];await k2(o,n=>{f.push(n),i+=n.byteLength});let g=new Uint8Array(i),a=0;for(let n of f)g.set(n,a),a+=n.byteLength;return g}function TP(o){let i=Object.getOwnPropertyDescriptor(o,Symbol.asyncIterator);if(i&&i.enumerable)return o;let f=!1,g=[],a={};return o.on("data",n=>{g.push(n),a.resolve&&(a.resolve({value:g.shift(),done:!1}),a={})}),o.on("error",n=>{a.reject&&(a.reject(n),a={})}),o.on("end",()=>{f=!0,a.resolve&&(a.resolve({done:!0}),a={})}),{next(){return new Promise((n,r)=>{if(g.length===0&&f)return n({done:!0});if(g.length>0)return n({value:g.shift(),done:!1});g.length===0&&!f&&(a={resolve:n,reject:r})})},return(){o.removeAllListeners(),o.destroy&&o.destroy()},[Symbol.asyncIterator](){return this}}}async function FP({onProgress:o,url:i,method:f="GET",headers:g={},agent:a,body:n}){return n&&Array.isArray(n)?n=Buffer.from(await OP(n)):n&&(n=kP(n)),new Promise((r,u)=>{(0,l5.default)({url:i,method:f,headers:g,agent:a,body:n},(p,c)=>{if(p)return u(p);try{let d=TP(c);r({url:c.url,method:c.method,statusCode:c.statusCode,statusMessage:c.statusMessage,body:d,headers:c.headers})}catch(d){u(d)}})})}function IP(o){let i=JSON.stringify(o),f=new TextEncoder().encode(i),g="";return typeof btoa=="function"?g=btoa(String.fromCharCode(...f)):g=Buffer.from(f).toString("base64"),g.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function xP(o){let i=o.replace(/-/g,"+").replace(/_/g,"/")+"===".slice((o.length+3)%4),f;typeof atob=="function"?f=atob(i):f=Buffer.from(i,"base64").toString("binary");let g=Uint8Array.from(f,n=>n.charCodeAt(0)),a=new TextDecoder().decode(g);return JSON.parse(a)}function jP({storageFs:o,gitRoot:i}){return{getUserTokens:e(async f=>{let g=await hx.default.getConfig({fs:o,dir:i,path:dx});return g?xP(g):{accessTokens:[]}},"getUserTokens"),setUserTokens:e(async(f,g)=>await hx.default.setConfig({fs:o,dir:i,path:dx,value:IP(g)}),"setUserTokens")}}async function CP(o){let i=new cx.Volume,f=(0,cx.createFsFromVolume)(i);return O2({...o,storageFs:o?.storageFs?o.storageFs:f,gitRoot:o?.gitRoot||"/"})}async function O2({storageFs:o,gitRoot:i,anonymousBranch:f="anonymous",showKeepFiles:g=!1,initialAuthor:a={type:"local",id:"local",name:"Local User",email:"local@legitcontrol.com"},serverUrl:n="https://sync.legitcontrol.com",publicKey:r}){await o.promises.readdir(i+"/.git").then(()=>!0).catch(()=>!1)||(await xr.default.init({fs:o,dir:"/",defaultBranch:f}),await o.promises.writeFile(i+"/.keep",""),await xr.default.add({fs:o,dir:"/",filepath:".keep"}),await xr.default.commit({fs:o,dir:"/",message:"Initial commit",author:{name:"Test",email:"test@example.com"}}),await xr.default.setConfig({fs:o,dir:i,path:"init.defaultBranch",value:f})),await xr.default.getConfig({fs:o,dir:i,path:"user.legit_user_id"})||await xr.default.setConfig({fs:o,dir:i,path:"user.legit_user_id",value:a.name}),await xr.default.getConfig({fs:o,dir:i,path:"user.name"})||await xr.default.setConfig({fs:o,dir:i,path:"user.name",value:a.name}),await xr.default.getConfig({fs:o,dir:i,path:"user.email"})||await xr.default.setConfig({fs:o,dir:i,path:"user.email",value:a.email});let u=new pE({name:"root",parentFs:void 0,storageFs:o,gitRoot:i}),p=new yE({name:"root-ephemeral",parentFs:u,gitRoot:i,ephemeralPatterns:[]}),c=new gE({name:"root-hidden",parentFs:u,gitRoot:i,hiddenFiles:[]});u.setHiddenFilesSubFs(c),u.setEphemeralFilesSubFs(p);let d=new pE({name:"git",parentFs:u,storageFs:void 0,gitRoot:i,defaultBranch:f}),m=new SP({name:"git-subfs",parentFs:d,gitRoot:i,gitStorageFs:u}),y=g?[".git"]:[".git",".keep"],w=new gE({name:"git-hidden-subfs",parentFs:d,gitRoot:i,hiddenFiles:y}),_=new yE({name:"git-ephemeral-subfs",parentFs:d,gitRoot:i,ephemeralPatterns:["**/._*","**/.DS_Store","**/.AppleDouble/","**/.AppleDB","**/.AppleDesktop","**/.Spotlight-V100","**/.TemporaryItems","**/.Trashes","**/.fseventsd","**/.VolumeIcon.icns","**/.ql_disablethumbnails","**/.~lock.*","**/lu[0-9a-zA-Z]*.tmp","**/.metaentries.json.tmp","**/**.sb-**"]});d.addSubFs(m),d.setHiddenFilesSubFs(w),d.setEphemeralFilesSubFs(_);let S=jP({storageFs:o,gitRoot:i}),T=u5(S,r),k=BP({fs:o,gitRepoPath:i,serverUrl:n,auth:T,anonymousBranch:f}),E=Object.assign(d,{auth:T,sync:k,setLogger(j){u.setLoggger(j),d.setLoggger(j)},push:e(async j=>{},"push"),shareCurrentBranch:e(async()=>{if((await T.getUser()).type==="local")throw new Error("login first - for example anonymously using legitfs.auth.signInAnonymously()");let j=await E.getCurrentBranch();return j===f&&(j=(await T.getUser()).id,await xr.default.renameBranch({fs:o,dir:i,oldref:f,ref:j})),await k.sequentialPush([j]),E.setCurrentBranch(j),j},"shareCurrentBranch"),setCurrentBranch:e(async j=>{(await xr.default.listBranches({fs:o,dir:i})).includes(j)||await k?.loadBranch(j);let A=(await xr.default.listBranches({fs:o,dir:i})).includes(j);if(console.log("branchExistsAfter",A),!A)throw new Error(`Branch ${j} does not exist`);await xr.default.setConfig({fs:o,dir:i,path:"init.defaultBranch",value:j})},"setCurrentBranch"),getCurrentBranch:e(async()=>{let j=await xr.default.getConfig({fs:o,dir:i,path:"init.defaultBranch"});if(!j)throw new Error("No current branch set");return j},"getCurrentBranch")});return E}var XP,Js,eL,tL,rL,nL,iL,e,Xt,Ge,an,px,$t,hr,vt,ws,zm,Su,Hm,Ni,qm,ki,Gs,mx,wx,EE,$n,bx,bs,Gm,Au,Vm,Di,Km,Oi,Ex,Sx,Ax,oL,Rx,aL,sL,Ba,kx,_d,Ed,SE,jn,ga,oa,zl,hR,dR,pR,gR,yR,mR,wR,bR,vR,_R,ER,SR,AR,RR,kR,OR,TR,FR,BR,IR,xR,eu,jR,CR,PR,LR,NR,DR,UR,MR,$R,WR,zR,HR,qR,GR,VR,KR,JR,YR,ZR,QR,XR,ek,tk,rk,nk,fi,dy,Ru,ik,ok,ak,sk,lk,fk,uk,ck,hk,dk,pk,RE,ku,Ym,Ar,Tx,Fx,Bx,Ix,xx,jx,Cx,Px,Lx,Nx,Dx,Ux,Mx,$x,Wx,lL,zx,fL,yf,kE,Ou,Tl,df,Hx,Tu,qx,Gx,Vx,uL,Kx,Jx,Cn,ya,aa,Hl,C0,P0,L0,N0,D0,U0,M0,$0,W0,z0,H0,q0,G0,V0,K0,J0,Y0,Z0,Q0,X0,ew,tw,Bl,rw,nw,iw,ow,aw,sw,lw,fw,uw,cw,hw,dw,pw,gw,yw,mw,ww,bw,vw,_w,Ew,Sw,Aw,Rw,kw,ui,py,Fu,Ow,Tw,Fw,Bw,Iw,xw,jw,Cw,Pw,Lw,Nw,Zx,cL,Qx,hL,TE,Xx,e6,t6,mf,r6,FE,Bu,$w,Ui,dL,pL,gL,yL,mL,wL,Ww,zw,Hw,qw,Gw,Vw,Kw,Jw,Yw,Zw,Qw,Xw,eb,tb,rb,nb,Iu,ib,xu,ob,ju,ab,Cu,sb,Pu,lb,Lu,fb,Nu,ub,Du,cb,Uu,hb,Mu,db,$u,pb,vs,gb,Wu,yb,Pn,ma,sa,ql,Ok,Tk,Fk,Bk,Ik,xk,jk,Ck,Pk,Lk,Nk,Dk,Uk,Mk,$k,Wk,zk,Hk,qk,Gk,Vk,ru,Kk,Jk,Yk,Zk,Qk,Xk,eO,tO,rO,nO,iO,oO,aO,sO,lO,fO,uO,cO,hO,dO,pO,gO,yO,mO,wO,ci,gy,zu,bO,vO,_O,EO,SO,AO,RO,kO,OO,TO,FO,CE,Hu,mb,wb,k6,qu,bb,Gu,Vu,vb,Ku,_b,Ju,Eb,Yu,Sb,Zu,Ab,Qu,Rb,Mi,kb,Br,BO,O6,T6,F6,B6,I6,x6,j6,C6,P6,L6,id,N6,D6,U6,M6,$6,W6,bL,PE,z6,xa,vL,_L,EL,SL,_s,Tb,Xu,Fb,$i,Bb,Il,Ib,yi,AL,RL,kL,OL,TL,FL,Ln,wa,la,Gl,HO,qO,GO,VO,KO,JO,YO,ZO,QO,XO,eT,tT,rT,nT,iT,oT,aT,sT,lT,fT,uT,iu,cT,hT,dT,pT,gT,yT,mT,wT,bT,vT,_T,ET,ST,AT,RT,kT,OT,TT,FT,BT,IT,xT,jT,CT,PT,hi,yy,ec,LT,NT,DT,UT,MT,$T,WT,zT,HT,qT,GT,zn,Es,xb,tc,jb,rc,BL,Cb,Pb,Lb,Nb,Db,Ub,Mb,$b,Wb,zb,Hb,qb,Gb,Vb,Kb,Jb,nc,Yb,ic,Zb,oc,Qb,ac,Xb,sc,e1,lc,t1,fc,r1,uc,n1,cc,i1,hc,o1,dc,a1,Ss,s1,pc,l1,gc,f1,yc,u1,mc,c1,wc,h1,bc,d1,vc,p1,g1,y1,_c,m1,bj,Ec,w1,vj,Sc,b1,Et,v1,_1,E1,St,S1,As,wt,IL,xL,jL,CL,PL,LL,NL,DL,UL,ML,$L,WL,zL,HL,qL,GL,VL,KL,JL,YL,ZL,QL,XL,my,eN,tN,rN,A1,R1,Rs,k1,xl,O1,Ac,T1,Rc,F1,kc,B1,jl,I1,Oc,x1,Tc,j1,ks,C1,Fc,P1,Bc,L1,Ic,N1,xc,D1,Ze,jc,U1,nt,Cc,M1,Pc,$1,Lc,W1,Nc,z1,Dc,H1,Uc,q1,Cl,G1,Mc,V1,$c,K1,J1,Zt,Y1,Dt,Wc,_j,Ej,Sj,Aj,Rj,kj,Oj,Tj,nN,Fj,iN,oN,Pl,Z1,dl,Bj,Ij,xj,jj,Cj,Pj,aN,Lj,sN,Nj,lN,fN,uN,cN,hN,dN,pN,gN,yN,mN,wN,bN,vN,_N,EN,Ef,Dj,SN,AN,Xs,Sf,jd,Cd,RN,Af,Uj,kN,ON,TN,FN,Mj,BN,IN,xN,jN,CN,PN,LN,NN,DN,UN,Rf,Pd,$j,MN,Wj,zj,$N,kf,KE,JE,WN,Hj,YE,zN,qj,HN,Gj,Vj,qN,GN,VN,KN,JN,YN,ZN,QN,XN,e3,t3,r3,n3,i3,o3,a3,s3,l3,Ji,f3,Kj,Jj,ZE,u3,Yj,Zj,c3,h3,d3,p3,Qj,g3,y3,m3,w3,b3,v3,_3,E3,S3,dr,A3,R3,Kc,yv,gF,yF,Ko,Cy,Py,Ly,Yr,Os,mv,Jc,wv,Wi,bv,mF,oi,ai,ba,rr,ua,Nn,va,ef,Ht,wF,su,ml,Ny,bF,vF,_F,EF,SF,Dy,Uy,My,AF,RF,kF,$y,At,v8,OF,TF,vv,Yc,Hr,jr,FF,Kt,_8,E8,S8,cs,Xe,fn,Wy,BF,wl,zy,lu,A8,Bi,k3,O3,Dn,_a,ca,tf,IF,xF,jF,CF,PF,LF,NF,DF,UF,MF,$F,WF,zF,HF,qF,GF,VF,KF,JF,YF,ZF,fu,QF,XF,eB,tB,rB,nB,iB,oB,aB,sB,lB,fB,uB,cB,hB,dB,pB,gB,yB,mB,wB,bB,vB,_B,EB,pi,Hy,Zc,SB,AB,RB,kB,OB,TB,FB,BB,IB,xB,jB,Ei,Qc,_v,Xc,Ts,Ev,eh,Sv,rf,T3,th,Av,ra,qt,rh,Rv,kv,Jo,CB,PB,R8,k8,un,uu,qy,Gy,Vy,Ky,LB,NB,hs,DB,An,Lt,UB,dn,MB,$B,WB,zB,cu,Jy,Yy,Zy,HB,qB,hu,Yo,du,nh,Ov,Tv,GB,O8,T8,F8,B8,ld,I8,x8,j8,C8,P8,L8,VB,N8,D8,U8,M8,fd,$8,W8,z8,H8,q8,G8,Mr,Fv,zi,Bv,Iv,ih,xv,oh,jv,ah,Cv,sh,Pv,lh,Lv,Nv,fh,Dv,uh,Uv,ch,Mv,$v,Wv,hh,zv,Hv,dh,qv,ph,Gv,gh,Vv,$r,Kv,Nl,Jv,Dl,yh,Yv,ur,mh,Zv,Qv,Xv,wh,e_,V8,ti,K8,J8,Y8,Z8,Q8,X8,e4,t4,F3,r4,B3,pI,gI,Zo,bm,vm,_m,yn,yI,si,li,Ea,nr,da,Un,Sa,cf,Gt,mI,yu,El,Em,wI,bI,vI,_I,EI,Sm,Am,Rm,SI,AI,RI,km,Rt,P4,kI,OI,A_,kh,qr,Cr,TI,Jt,L4,N4,D4,gs,at,cn,Om,FI,Sl,Tm,mu,U4,Pi,I3,Oh,R_,na,Ot,BI,wn,Vr,II,wu,Qo,xI,jI,kn,hd,ia,Fm,M4,$4,Al,Rl,pn,CI,dd,pd,k_,Fs,O_,Th,T_,Hi,F_,wi,Fh,B_,I_,x_,Bh,j_,Ih,C_,xh,P_,jh,L_,Ch,N_,Ph,Lh,D_,W4,Nh,U_,Dh,M_,Uh,$_,W_,z_,Mh,H_,z4,$h,q_,Wh,G_,zh,V_,Wr,K_,Hh,J_,Y_,Xo,PI,LI,H4,q4,hn,bu,Bm,Im,xm,jm,NI,DI,ys,UI,On,jt,MI,gn,$I,WI,zI,HI,vu,Cm,Pm,Lm,qI,GI,_u,ea,Eu,qh,Z_,Q_,VI,G4,V4,K4,J4,gd,Y4,Z4,Q4,X4,eC,tC,KI,rC,nC,iC,oC,yd,aC,sC,lC,fC,uC,cC,zr,X_,qi,Ml,eE,$l,Gh,tE,cr,Vh,rE,nE,iE,Kh,oE,hC,Fn,Jh,aE,sE,ri,dC,pC,gC,yC,mC,wC,bC,vC,x3,_C,j3,C3,P3,Yh,lE,Zh,fE,Bs,uE,ni,AC,RC,kC,OC,L3,TC,N3,D3,Wl,cE,kl,FC,BC,IC,xC,jC,CC,U3,_2,PC,LC,NC,M3,DC,rl,UC,$3,MC,Ks,ZI,E2,W3,z3,$C,WC,H3,q3,G3,bi,Ps,pa,Qh,V3,K3,J3,Y3,Z3,Q3,X3,eD,tD,rD,nD,iD,oD,aD,sD,lD,fD,uD,cD,hD,dD,R2,pD,gD,yD,mD,wD,bD,vD,_D,ED,SD,AD,RD,kD,OD,TD,FD,BD,ID,xD,jD,CD,PD,LD,ND,DD,Gi,Nm,dE,UD,MD,$D,WD,zD,HD,qD,GD,VD,KD,JD,tP,Dm,QI,Lr,E5,XI,S5,Aa,A5,R5,k5,O5,T5,F5,B5,I5,x5,j5,C5,Ns,nP,iP,Ds,oP,zd,ex,Us,aP,Tf,Ms,sP,lP,tx,$s,fP,YD,Ws,uP,pE,ZD,zs,cP,gE,rx,QD,Hs,hP,yE,nx,ix,ox,xn,XD,e5,dP,yP,Bt,Ra,mP,wE,bE,bd,ta,vE,t5,Um,bP,Mm,r5,_E,n5,qs,_P,i5,$m,ax,Kr,o5,EP,sx,ms,vd,Ol,a5,lx,fx,ii,ux,s5,bn,Xh,SP,Ur,l5,f5,Wm,Li,BP,xr,cx,u5,hx,dx,c5,LP=ZP(()=>{"use strict";XP=Object.create,Js=Object.defineProperty,eL=Object.getOwnPropertyDescriptor,tL=Object.getOwnPropertyNames,rL=Object.getPrototypeOf,nL=Object.prototype.hasOwnProperty,iL=l((o,i,f)=>i in o?Js(o,i,{enumerable:!0,configurable:!0,writable:!0,value:f}):o[i]=f,"i8"),e=l((o,i)=>Js(o,"name",{value:i,configurable:!0}),"o"),Xt=l((o,i)=>()=>(o&&(i=o(o=0)),i),"pt"),Ge=l((o,i)=>()=>(i||o((i={exports:{}}).exports,i),i.exports),"ge"),an=l((o,i)=>{for(var f in i)Js(o,f,{get:i[f],enumerable:!0})},"Wr"),px=l((o,i,f,g)=>{if(i&&typeof i=="object"||typeof i=="function")for(let a of tL(i))!nL.call(o,a)&&a!==f&&Js(o,a,{get:l(()=>i[a],"get"),enumerable:!(g=eL(i,a))||g.enumerable});return o},"v1"),$t=l((o,i,f)=>(f=o!=null?XP(rL(o)):{},px(i||!o||!o.__esModule?Js(f,"default",{value:o,enumerable:!0}):f,o)),"ut"),hr=l(o=>px(Js({},"__esModule",{value:!0}),o),"Nt"),vt=l((o,i,f)=>iL(o,typeof i!="symbol"?i+"":i,f),"Ne");l(gx,"o8");l(yx,"a8");l(eR,"s8");EE=Xt(()=>{ws={},zm=!1,e(gx,"dew$2"),Su={},Hm=!1,e(yx,"dew$1"),Ni={},qm=!1,e(eR,"dew"),ki=eR(),ki.Buffer,ki.SlowBuffer,ki.INSPECT_MAX_BYTES,ki.kMaxLength,Gs=ki.Buffer,mx=ki.INSPECT_MAX_BYTES,wx=ki.kMaxLength}),$n=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.constants=o.SEP=void 0,o.SEP="/",o.constants={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:64,O_EXCL:128,O_NOCTTY:256,O_TRUNC:512,O_APPEND:1024,O_DIRECTORY:65536,O_NOATIME:262144,O_NOFOLLOW:131072,O_SYNC:1052672,O_SYMLINK:2097152,O_DIRECT:16384,O_NONBLOCK:2048,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_FS_SYMLINK_DIR:1,UV_FS_SYMLINK_JUNCTION:2,UV_FS_COPYFILE_EXCL:1,UV_FS_COPYFILE_FICLONE:2,UV_FS_COPYFILE_FICLONE_FORCE:4,COPYFILE_EXCL:1,COPYFILE_FICLONE:2,COPYFILE_FICLONE_FORCE:4}}),bx=Ge(o=>{"use strict";var y;Object.defineProperty(o,"__esModule",{value:!0}),o.Stats=void 0;var i=$n(),{S_IFMT:f,S_IFDIR:g,S_IFREG:a,S_IFBLK:n,S_IFCHR:r,S_IFLNK:u,S_IFIFO:p,S_IFSOCK:c}=i.constants,d=(y=class{static build(_,S=!1){let T=new y,{uid:k,gid:E,atime:j,mtime:A,ctime:I}=_,U=S?ee=>BigInt(ee):ee=>ee;T.uid=U(k),T.gid=U(E),T.rdev=U(_.rdev),T.blksize=U(4096),T.ino=U(_.ino),T.size=U(_.getSize()),T.blocks=U(1),T.atime=j,T.mtime=A,T.ctime=I,T.birthtime=I,T.atimeMs=U(j.getTime()),T.mtimeMs=U(A.getTime());let M=U(I.getTime());if(T.ctimeMs=M,T.birthtimeMs=M,S){T.atimeNs=BigInt(j.getTime())*BigInt(1e6),T.mtimeNs=BigInt(A.getTime())*BigInt(1e6);let ee=BigInt(I.getTime())*BigInt(1e6);T.ctimeNs=ee,T.birthtimeNs=ee}return T.dev=U(0),T.mode=U(_.mode),T.nlink=U(_.nlink),T}_checkModeProperty(_){return(Number(this.mode)&f)===_}isDirectory(){return this._checkModeProperty(g)}isFile(){return this._checkModeProperty(a)}isBlockDevice(){return this._checkModeProperty(n)}isCharacterDevice(){return this._checkModeProperty(r)}isSymbolicLink(){return this._checkModeProperty(u)}isFIFO(){return this._checkModeProperty(p)}isSocket(){return this._checkModeProperty(c)}},l(y,"Pu"),y);e(d,"Stats");var m=d;o.Stats=m,o.default=m});l(vx,"C6");l(_x,"L6");l(tR,"D6");oL=Xt(()=>{bs={},Gm=!1,e(vx,"dew$2"),Au={},Vm=!1,e(_x,"dew$1"),Di={},Km=!1,e(tR,"dew"),Oi=tR(),Oi.Buffer,Oi.SlowBuffer,Oi.INSPECT_MAX_BYTES,Oi.kMaxLength,Ex=Oi.Buffer,Sx=Oi.INSPECT_MAX_BYTES,Ax=Oi.kMaxLength}),Rx={};an(Rx,{Buffer:l(()=>Ex,"Buffer"),INSPECT_MAX_BYTES:l(()=>Sx,"INSPECT_MAX_BYTES"),kMaxLength:l(()=>Ax,"kMaxLength")});aL=Xt(()=>{oL()}),sL=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.Buffer=void 0;var i=(aL(),hr(Rx));Object.defineProperty(o,"Buffer",{enumerable:!0,get:e(function(){return i.Buffer},"get")})}),Ba=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.bufferFrom=o.bufferAllocUnsafe=o.Buffer=void 0;var i=sL();Object.defineProperty(o,"Buffer",{enumerable:!0,get:e(function(){return i.Buffer},"get")});function f(n,...r){return new i.Buffer(n,...r)}l(f,"L1"),e(f,"bufferV0P12Ponyfill");var g=i.Buffer.allocUnsafe||f;o.bufferAllocUnsafe=g;var a=i.Buffer.from||f;o.bufferFrom=a}),kx=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.inherits=i,o.promisify=f,o.inspect=g,o.format=a;function i(n,r){if(n==null)throw new TypeError("The constructor to inherit from is not defined");if(r==null)throw new TypeError("The super constructor to inherit from is not defined");n.super_=r,n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})}l(i,"W6"),e(i,"inherits");function f(n){if(typeof n!="function")throw new TypeError('The "original" argument must be of type function');return function(...r){return new Promise((u,p)=>{n.call(this,...r,(c,d)=>{c?p(c):u(d)})})}}l(f,"q6"),e(f,"promisify");function g(n){return n===null?"null":n===void 0?"undefined":typeof n=="string"?`'${n}'`:typeof n=="number"||typeof n=="boolean"?String(n):Array.isArray(n)?`[ ${n.map(r=>g(r)).join(", ")} ]`:typeof n=="object"?`{ ${Object.entries(n).map(([r,u])=>`${r}: ${g(u)}`).join(", ")} }`:String(n)}l(g,"dy"),e(g,"inspect");function a(n,...r){if(r.length===0)return n;let u=n,p=0;for(u=u.replace(/%[sdj%]/g,c=>{if(p>=r.length)return c;let d=r[p++];switch(c){case"%s":return String(d);case"%d":return Number(d).toString();case"%j":try{return JSON.stringify(d)}catch{return"[Circular]"}case"%%":return"%";default:return c}});p<r.length;)u+=" "+String(r[p++]);return u}l(a,"z6"),e(a,"format")}),_d=Ge(o=>{"use strict";var d;Object.defineProperty(o,"__esModule",{value:!0}),o.AssertionError=o.RangeError=o.TypeError=o.Error=void 0,o.message=p,o.E=c;var i=kx(),f=typeof Symbol>"u"?"_kCode":Symbol("code"),g={};function a(m){var w;var y;return y=(w=class extends m{constructor(S,...T){super(p(S,T)),this.code=S,this[f]=S,this.name=`${super.name} [${this[f]}]`}},l(w,"t"),w),e(y,"NodeError"),y}l(a,"gy"),e(a,"makeNodeError");var n=globalThis,r=(d=class extends n.Error{constructor(y){if(typeof y!="object"||y===null)throw new o.TypeError("ERR_INVALID_ARG_TYPE","options","object");y.message?super(y.message):super(`${(0,i.inspect)(y.actual).slice(0,128)} ${y.operator} ${(0,i.inspect)(y.expected).slice(0,128)}`),this.generatedMessage=!y.message,this.name="AssertionError [ERR_ASSERTION]",this.code="ERR_ASSERTION",this.actual=y.actual,this.expected=y.expected,this.operator=y.operator,o.Error.captureStackTrace(this,y.stackStartFunction)}},l(d,"wy"),d);e(r,"AssertionError");var u=r;o.AssertionError=u;function p(m,y){if(typeof m!="string")throw new o.Error("Error message key must be a string");let w=g[m];if(!w)throw new o.Error(`An invalid error message key was used: ${m}.`);let _;if(typeof w=="function")_=w;else{if(_=i.format,y===void 0||y.length===0)return w;y.unshift(w)}return String(_.apply(null,y))}l(p,"$1"),e(p,"message");function c(m,y){g[m]=typeof y=="function"?y:String(y)}l(c,"Ni"),e(c,"E"),o.Error=a(n.Error),o.TypeError=a(n.TypeError),o.RangeError=a(n.RangeError),c("ERR_DIR_CLOSED","Directory handle was closed"),c("ERR_DIR_CONCURRENT_OPERATION","Cannot do synchronous work on directory handle with concurrent asynchronous operations"),c("ERR_INVALID_FILE_URL_HOST",'File URL host must be "localhost" or empty on %s'),c("ERR_INVALID_FILE_URL_PATH","File URL path %s"),c("ERR_INVALID_OPT_VALUE",(m,y)=>`The value "${String(y)}" is invalid for option "${m}"`),c("ERR_INVALID_OPT_VALUE_ENCODING",m=>`The value "${String(m)}" is invalid for option "encoding"`),c("ERR_INVALID_ARG_VALUE","Unable to open file as blob")}),Ed=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.ENCODING_UTF8=void 0,o.assertEncoding=g,o.strToEncoding=a;var i=Ba(),f=_d();o.ENCODING_UTF8="utf8";function g(n){if(n&&!i.Buffer.isEncoding(n))throw new f.TypeError("ERR_INVALID_OPT_VALUE_ENCODING",n)}l(g,"G6"),e(g,"assertEncoding");function a(n,r){return!r||r===o.ENCODING_UTF8?n:r==="buffer"?new i.Buffer(n):new i.Buffer(n).toString(r)}l(a,"Y6"),e(a,"strToEncoding")}),SE=Ge(o=>{"use strict";var w;Object.defineProperty(o,"__esModule",{value:!0}),o.Dirent=void 0;var i=$n(),f=Ed(),{S_IFMT:g,S_IFDIR:a,S_IFREG:n,S_IFBLK:r,S_IFCHR:u,S_IFLNK:p,S_IFIFO:c,S_IFSOCK:d}=i.constants,m=(w=class{constructor(){this.name="",this.path="",this.parentPath="",this.mode=0}static build(S,T){let k=new w,{mode:E}=S.getNode();return k.name=(0,f.strToEncoding)(S.getName(),T),k.mode=E,k.path=S.getParentPath(),k.parentPath=k.path,k}_checkModeProperty(S){return(this.mode&g)===S}isDirectory(){return this._checkModeProperty(a)}isFile(){return this._checkModeProperty(n)}isBlockDevice(){return this._checkModeProperty(r)}isCharacterDevice(){return this._checkModeProperty(u)}isSymbolicLink(){return this._checkModeProperty(p)}isFIFO(){return this._checkModeProperty(c)}isSocket(){return this._checkModeProperty(d)}},l(w,"Nu"),w);e(m,"Dirent");var y=m;o.Dirent=y,o.default=y});l(ed,"Ay");l(Ox,"oM");l(AE,"U1");l(rR,"aM");l(Jm,"j1");l(mr,"Xt");l(nR,"SM");l(iR,"FM");l(oR,"xM");l(aR,"OM");l(sR,"$M");l(lR,"HM");l(fR,"oU");l(Xf,"Sy");l(Zn,"Mi");l(uR,"gU");l(cR,"wU");lL=Xt(()=>{e(ed,"unimplemented"),jn=[],ga=!1,zl=-1,e(Ox,"cleanUpNextTick"),e(AE,"drainQueue"),e(rR,"nextTick"),e(Jm,"Item"),Jm.prototype.run=function(){this.fun.apply(null,this.array)},hR="browser",dR="x64",pR="browser",gR={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},yR=["/usr/bin/node"],mR=[],wR="v16.8.0",bR={},vR=e(function(o,i){console.warn((i?i+": ":"")+o)},"emitWarning"),_R=e(function(o){ed("binding")},"binding"),ER=e(function(o){return 0},"umask"),SR=e(function(){return"/"},"cwd"),AR=e(function(o){},"chdir"),RR={name:"node",sourceUrl:"",headersUrl:"",libUrl:""},e(mr,"noop"),kR=mr,OR=[],e(nR,"_linkedBinding"),TR={},FR=!1,BR={},e(iR,"dlopen"),e(oR,"_getActiveRequests"),e(aR,"_getActiveHandles"),IR=mr,xR=mr,eu=e(function(){return{}},"cpuUsage"),jR=eu,CR=eu,PR=mr,LR=mr,NR=mr,DR={},e(sR,"assert"),UR={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},MR=mr,$R=mr,e(lR,"hasUncaughtExceptionCaptureCallback"),WR=mr,zR=mr,HR=mr,qR=mr,GR=mr,VR=void 0,KR=void 0,JR=void 0,YR=mr,ZR=2,QR=1,XR="/bin/usr/node",ek=9229,tk="node",rk=[],nk=mr,fi={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0},fi.now===void 0&&(dy=Date.now(),fi.timing&&fi.timing.navigationStart&&(dy=fi.timing.navigationStart),fi.now=()=>Date.now()-dy),e(fR,"uptime"),Ru=1e9,e(Xf,"hrtime"),Xf.bigint=function(o){var i=Xf(o);return typeof BigInt>"u"?i[0]*Ru+i[1]:BigInt(i[0]*Ru)+BigInt(i[1])},ik=10,ok={},ak=0,e(Zn,"on"),sk=Zn,lk=Zn,fk=Zn,uk=Zn,ck=Zn,hk=mr,dk=Zn,pk=Zn,e(uR,"listeners"),RE={version:wR,versions:bR,arch:dR,platform:pR,release:RR,_rawDebug:kR,moduleLoadList:OR,binding:_R,_linkedBinding:nR,_events:ok,_eventsCount:ak,_maxListeners:ik,on:Zn,addListener:sk,once:lk,off:fk,removeListener:uk,removeAllListeners:ck,emit:hk,prependListener:dk,prependOnceListener:pk,listeners:uR,domain:TR,_exiting:FR,config:BR,dlopen:iR,uptime:fR,_getActiveRequests:oR,_getActiveHandles:aR,reallyExit:IR,_kill:xR,cpuUsage:eu,resourceUsage:jR,memoryUsage:CR,kill:PR,exit:LR,openStdin:NR,allowedNodeEnvironmentFlags:DR,assert:sR,features:UR,_fatalExceptions:MR,setUncaughtExceptionCaptureCallback:$R,hasUncaughtExceptionCaptureCallback:lR,emitWarning:vR,nextTick:rR,_tickCallback:WR,_debugProcess:zR,_debugEnd:HR,_startProfilerIdleNotifier:qR,_stopProfilerIdleNotifier:GR,stdout:VR,stdin:JR,stderr:KR,abort:YR,umask:ER,chdir:AR,cwd:SR,env:gR,title:hR,argv:yR,execArgv:mR,pid:ZR,ppid:QR,execPath:XR,debugPort:ek,hrtime:Xf,argv0:tk,_preload_modules:rk,setSourceMapsEnabled:nk},ku={},Ym=!1,e(cR,"dew"),Ar=cR(),Tx=Ar._makeLong,Fx=Ar.basename,Bx=Ar.delimiter,Ix=Ar.dirname,xx=Ar.extname,jx=Ar.format,Cx=Ar.isAbsolute,Px=Ar.join,Lx=Ar.normalize,Nx=Ar.parse,Dx=Ar.posix,Ux=Ar.relative,Mx=Ar.resolve,$x=Ar.sep,Wx=Ar.win32}),zx={};an(zx,{_makeLong:l(()=>Tx,"_makeLong"),basename:l(()=>Fx,"basename"),delimiter:l(()=>Bx,"delimiter"),dirname:l(()=>Ix,"dirname"),extname:l(()=>xx,"extname"),format:l(()=>jx,"format"),isAbsolute:l(()=>Cx,"isAbsolute"),join:l(()=>Px,"join"),normalize:l(()=>Lx,"normalize"),parse:l(()=>Nx,"parse"),posix:l(()=>Dx,"posix"),relative:l(()=>Ux,"relative"),resolve:l(()=>Mx,"resolve"),sep:l(()=>$x,"sep"),win32:l(()=>Wx,"win32")});fL=Xt(()=>{lL()}),yf=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.basename=o.isAbsolute=o.normalize=o.dirname=o.relative=o.join=o.posix=o.sep=o.resolve=void 0;var i=(fL(),hr(zx));Object.defineProperty(o,"resolve",{enumerable:!0,get:e(function(){return i.resolve},"get")}),Object.defineProperty(o,"sep",{enumerable:!0,get:e(function(){return i.sep},"get")}),Object.defineProperty(o,"posix",{enumerable:!0,get:e(function(){return i.posix},"get")}),Object.defineProperty(o,"join",{enumerable:!0,get:e(function(){return i.join},"get")}),Object.defineProperty(o,"relative",{enumerable:!0,get:e(function(){return i.relative},"get")}),Object.defineProperty(o,"dirname",{enumerable:!0,get:e(function(){return i.dirname},"get")}),Object.defineProperty(o,"normalize",{enumerable:!0,get:e(function(){return i.normalize},"get")}),Object.defineProperty(o,"isAbsolute",{enumerable:!0,get:e(function(){return i.isAbsolute},"get")}),Object.defineProperty(o,"basename",{enumerable:!0,get:e(function(){return i.basename},"get")})}),kE={};an(kE,{__addDisposableResource:l(()=>_0,"__addDisposableResource"),__assign:l(()=>Tl,"__assign"),__asyncDelegator:l(()=>d0,"__asyncDelegator"),__asyncGenerator:l(()=>h0,"__asyncGenerator"),__asyncValues:l(()=>p0,"__asyncValues"),__await:l(()=>ka,"__await"),__awaiter:l(()=>a0,"__awaiter"),__classPrivateFieldGet:l(()=>w0,"__classPrivateFieldGet"),__classPrivateFieldIn:l(()=>v0,"__classPrivateFieldIn"),__classPrivateFieldSet:l(()=>b0,"__classPrivateFieldSet"),__createBinding:l(()=>df,"__createBinding"),__decorate:l(()=>Xm,"__decorate"),__disposeResources:l(()=>E0,"__disposeResources"),__esDecorate:l(()=>t0,"__esDecorate"),__exportStar:l(()=>l0,"__exportStar"),__extends:l(()=>Zm,"__extends"),__generator:l(()=>s0,"__generator"),__importDefault:l(()=>m0,"__importDefault"),__importStar:l(()=>y0,"__importStar"),__makeTemplateObject:l(()=>g0,"__makeTemplateObject"),__metadata:l(()=>o0,"__metadata"),__param:l(()=>e0,"__param"),__propKey:l(()=>n0,"__propKey"),__read:l(()=>td,"__read"),__rest:l(()=>Qm,"__rest"),__rewriteRelativeImportExtension:l(()=>S0,"__rewriteRelativeImportExtension"),__runInitializers:l(()=>r0,"__runInitializers"),__setFunctionName:l(()=>i0,"__setFunctionName"),__spread:l(()=>f0,"__spread"),__spreadArray:l(()=>c0,"__spreadArray"),__spreadArrays:l(()=>u0,"__spreadArrays"),__values:l(()=>hf,"__values"),default:l(()=>Gx,"default")});l(Zm,"V1");l(Qm,"G1");l(Xm,"Y1");l(e0,"K1");l(t0,"X1");l(r0,"J1");l(n0,"Z1");l(i0,"Q1");l(o0,"eE");l(a0,"tE");l(s0,"rE");l(l0,"nE");l(hf,"ju");l(td,"xy");l(f0,"iE");l(u0,"oE");l(c0,"aE");l(ka,"Ya");l(h0,"sE");l(d0,"lE");l(p0,"fE");l(g0,"uE");l(y0,"cE");l(m0,"hE");l(w0,"dE");l(b0,"pE");l(v0,"yE");l(_0,"mE");l(E0,"gE");l(S0,"wE");Vx=Xt(()=>{Ou=e(function(o,i){return Ou=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,g){f.__proto__=g}||function(f,g){for(var a in g)Object.prototype.hasOwnProperty.call(g,a)&&(f[a]=g[a])},Ou(o,i)},"extendStatics"),e(Zm,"__extends"),Tl=e(function(){return Tl=Object.assign||e(function(o){for(var i,f=1,g=arguments.length;f<g;f++){i=arguments[f];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(o[a]=i[a])}return o},"__assign"),Tl.apply(this,arguments)},"__assign"),e(Qm,"__rest"),e(Xm,"__decorate"),e(e0,"__param"),e(t0,"__esDecorate"),e(r0,"__runInitializers"),e(n0,"__propKey"),e(i0,"__setFunctionName"),e(o0,"__metadata"),e(a0,"__awaiter"),e(s0,"__generator"),df=Object.create?function(o,i,f,g){g===void 0&&(g=f);var a=Object.getOwnPropertyDescriptor(i,f);(!a||("get"in a?!i.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:e(function(){return i[f]},"get")}),Object.defineProperty(o,g,a)}:function(o,i,f,g){g===void 0&&(g=f),o[g]=i[f]},e(l0,"__exportStar"),e(hf,"__values"),e(td,"__read"),e(f0,"__spread"),e(u0,"__spreadArrays"),e(c0,"__spreadArray"),e(ka,"__await"),e(h0,"__asyncGenerator"),e(d0,"__asyncDelegator"),e(p0,"__asyncValues"),e(g0,"__makeTemplateObject"),Hx=Object.create?function(o,i){Object.defineProperty(o,"default",{enumerable:!0,value:i})}:function(o,i){o.default=i},Tu=e(function(o){return Tu=Object.getOwnPropertyNames||function(i){var f=[];for(var g in i)Object.prototype.hasOwnProperty.call(i,g)&&(f[f.length]=g);return f},Tu(o)},"ownKeys"),e(y0,"__importStar"),e(m0,"__importDefault"),e(w0,"__classPrivateFieldGet"),e(b0,"__classPrivateFieldSet"),e(v0,"__classPrivateFieldIn"),e(_0,"__addDisposableResource"),qx=typeof SuppressedError=="function"?SuppressedError:function(o,i,f){var g=new Error(f);return g.name="SuppressedError",g.error=o,g.suppressed=i,g},e(E0,"__disposeResources"),e(S0,"__rewriteRelativeImportExtension"),Gx={__extends:Zm,__assign:Tl,__rest:Qm,__decorate:Xm,__param:e0,__esDecorate:t0,__runInitializers:r0,__propKey:n0,__setFunctionName:i0,__metadata:o0,__awaiter:a0,__generator:s0,__createBinding:df,__exportStar:l0,__values:hf,__read:td,__spread:f0,__spreadArrays:u0,__spreadArray:c0,__await:ka,__asyncGenerator:h0,__asyncDelegator:d0,__asyncValues:p0,__makeTemplateObject:g0,__importStar:y0,__importDefault:m0,__classPrivateFieldGet:w0,__classPrivateFieldSet:b0,__classPrivateFieldIn:v0,__addDisposableResource:_0,__disposeResources:E0,__rewriteRelativeImportExtension:S0}}),uL=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0})}),Kx=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.flattenJSON=void 0;var i=Ba(),f=yf(),g=f.posix?f.posix.join:f.join,a=e(n=>{let r={};function u(p,c){for(let d in c){let m=c[d],y=g(p,d);typeof m=="string"||m instanceof i.Buffer?r[y]=m:typeof m=="object"&&m!==null&&!(m instanceof i.Buffer)&&Object.keys(m).length>0?u(y,m):r[y]=null}}return l(u,"r"),e(u,"flatten"),u("",n),r},"flattenJSON");o.flattenJSON=a}),Jx=Ge(o=>{"use strict";var g;Object.defineProperty(o,"__esModule",{value:!0}),o.FanOut=void 0;var i=(g=class{constructor(){this.listeners=new Set}emit(n){this.listeners.forEach(r=>r(n))}listen(n){let r=this.listeners;return r.add(n),()=>r.delete(n)}},l(g,"Cy"),g);e(i,"FanOut");var f=i;o.FanOut=f});l(rd,"$y");l(Yx,"MU");l(OE,"EE");l(A0,"SE");l(R0,"AE");l(wr,"Jt");l(k0,"HE");l(O0,"VE");l(T0,"GE");l(F0,"YE");l(B0,"nS");l(I0,"sS");l(x0,"AS");l(Fl,"Vu");l(Tn,"Xn");l(j0,"DS");cL=Xt(()=>{e(rd,"unimplemented"),Cn=[],ya=!1,Hl=-1,e(Yx,"cleanUpNextTick"),e(OE,"drainQueue"),e(A0,"nextTick"),e(R0,"Item"),R0.prototype.run=function(){this.fun.apply(null,this.array)},C0="browser",P0="x64",L0="browser",N0={PATH:"/usr/bin",LANG:typeof navigator<"u"?navigator.language+".UTF-8":void 0,PWD:"/",HOME:"/home",TMP:"/tmp"},D0=["/usr/bin/node"],U0=[],M0="v16.8.0",$0={},W0=e(function(o,i){console.warn((i?i+": ":"")+o)},"emitWarning"),z0=e(function(o){rd("binding")},"binding"),H0=e(function(o){return 0},"umask"),q0=e(function(){return"/"},"cwd"),G0=e(function(o){},"chdir"),V0={name:"node",sourceUrl:"",headersUrl:"",libUrl:""},e(wr,"noop"),K0=!0,J0=wr,Y0=[],e(k0,"_linkedBinding"),Z0={},Q0=!1,X0={},e(O0,"dlopen"),e(T0,"_getActiveRequests"),e(F0,"_getActiveHandles"),ew=wr,tw=wr,Bl=e(function(){return{}},"cpuUsage"),rw=Bl,nw=Bl,iw=wr,ow=wr,aw=wr,sw={},e(B0,"assert"),lw={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},fw=wr,uw=wr,e(I0,"hasUncaughtExceptionCaptureCallback"),cw=wr,hw=wr,dw=wr,pw=wr,gw=wr,yw=void 0,mw=void 0,ww=void 0,bw=wr,vw=2,_w=1,Ew="/bin/usr/node",Sw=9229,Aw="node",Rw=[],kw=wr,ui={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0},ui.now===void 0&&(py=Date.now(),ui.timing&&ui.timing.navigationStart&&(py=ui.timing.navigationStart),ui.now=()=>Date.now()-py),e(x0,"uptime"),Fu=1e9,e(Fl,"hrtime"),Fl.bigint=function(o){var i=Fl(o);return typeof BigInt>"u"?i[0]*Fu+i[1]:BigInt(i[0]*Fu)+BigInt(i[1])},Ow=10,Tw={},Fw=0,e(Tn,"on"),Bw=Tn,Iw=Tn,xw=Tn,jw=Tn,Cw=Tn,Pw=wr,Lw=Tn,Nw=Tn,e(j0,"listeners"),Zx={version:M0,versions:$0,arch:P0,platform:L0,browser:K0,release:V0,_rawDebug:J0,moduleLoadList:Y0,binding:z0,_linkedBinding:k0,_events:Tw,_eventsCount:Fw,_maxListeners:Ow,on:Tn,addListener:Bw,once:Iw,off:xw,removeListener:jw,removeAllListeners:Cw,emit:Pw,prependListener:Lw,prependOnceListener:Nw,listeners:j0,domain:Z0,_exiting:Q0,config:X0,dlopen:O0,uptime:x0,_getActiveRequests:T0,_getActiveHandles:F0,reallyExit:ew,_kill:tw,cpuUsage:Bl,resourceUsage:rw,memoryUsage:nw,kill:iw,exit:ow,openStdin:aw,allowedNodeEnvironmentFlags:sw,assert:B0,features:lw,_fatalExceptions:fw,setUncaughtExceptionCaptureCallback:uw,hasUncaughtExceptionCaptureCallback:I0,emitWarning:W0,nextTick:A0,_tickCallback:cw,_debugProcess:hw,_debugEnd:dw,_startProfilerIdleNotifier:pw,_stopProfilerIdleNotifier:gw,stdout:yw,stdin:ww,stderr:mw,abort:bw,umask:H0,chdir:G0,cwd:q0,env:N0,title:C0,argv:D0,execArgv:U0,pid:vw,ppid:_w,execPath:Ew,debugPort:Sw,hrtime:Fl,argv0:Aw,_preload_modules:Rw,setSourceMapsEnabled:kw}}),Qx={};an(Qx,{_debugEnd:l(()=>dw,"_debugEnd"),_debugProcess:l(()=>hw,"_debugProcess"),_events:l(()=>Tw,"_events"),_eventsCount:l(()=>Fw,"_eventsCount"),_exiting:l(()=>Q0,"_exiting"),_fatalExceptions:l(()=>fw,"_fatalExceptions"),_getActiveHandles:l(()=>F0,"_getActiveHandles"),_getActiveRequests:l(()=>T0,"_getActiveRequests"),_kill:l(()=>tw,"_kill"),_linkedBinding:l(()=>k0,"_linkedBinding"),_maxListeners:l(()=>Ow,"_maxListeners"),_preload_modules:l(()=>Rw,"_preload_modules"),_rawDebug:l(()=>J0,"_rawDebug"),_startProfilerIdleNotifier:l(()=>pw,"_startProfilerIdleNotifier"),_stopProfilerIdleNotifier:l(()=>gw,"_stopProfilerIdleNotifier"),_tickCallback:l(()=>cw,"_tickCallback"),abort:l(()=>bw,"abort"),addListener:l(()=>Bw,"addListener"),allowedNodeEnvironmentFlags:l(()=>sw,"allowedNodeEnvironmentFlags"),arch:l(()=>P0,"arch"),argv:l(()=>D0,"argv"),argv0:l(()=>Aw,"argv0"),assert:l(()=>B0,"assert"),binding:l(()=>z0,"binding"),browser:l(()=>K0,"browser"),chdir:l(()=>G0,"chdir"),config:l(()=>X0,"config"),cpuUsage:l(()=>Bl,"cpuUsage"),cwd:l(()=>q0,"cwd"),debugPort:l(()=>Sw,"debugPort"),dlopen:l(()=>O0,"dlopen"),domain:l(()=>Z0,"domain"),emit:l(()=>Pw,"emit"),emitWarning:l(()=>W0,"emitWarning"),env:l(()=>N0,"env"),execArgv:l(()=>U0,"execArgv"),execPath:l(()=>Ew,"execPath"),exit:l(()=>ow,"exit"),features:l(()=>lw,"features"),hasUncaughtExceptionCaptureCallback:l(()=>I0,"hasUncaughtExceptionCaptureCallback"),hrtime:l(()=>Fl,"hrtime"),kill:l(()=>iw,"kill"),listeners:l(()=>j0,"listeners"),memoryUsage:l(()=>nw,"memoryUsage"),moduleLoadList:l(()=>Y0,"moduleLoadList"),nextTick:l(()=>A0,"nextTick"),off:l(()=>xw,"off"),on:l(()=>Tn,"on"),once:l(()=>Iw,"once"),openStdin:l(()=>aw,"openStdin"),pid:l(()=>vw,"pid"),platform:l(()=>L0,"platform"),ppid:l(()=>_w,"ppid"),prependListener:l(()=>Lw,"prependListener"),prependOnceListener:l(()=>Nw,"prependOnceListener"),reallyExit:l(()=>ew,"reallyExit"),release:l(()=>V0,"release"),removeAllListeners:l(()=>Cw,"removeAllListeners"),removeListener:l(()=>jw,"removeListener"),resourceUsage:l(()=>rw,"resourceUsage"),setSourceMapsEnabled:l(()=>kw,"setSourceMapsEnabled"),setUncaughtExceptionCaptureCallback:l(()=>uw,"setUncaughtExceptionCaptureCallback"),stderr:l(()=>mw,"stderr"),stdin:l(()=>ww,"stdin"),stdout:l(()=>yw,"stdout"),title:l(()=>C0,"title"),umask:l(()=>H0,"umask"),uptime:l(()=>x0,"uptime"),version:l(()=>M0,"version"),versions:l(()=>$0,"versions")});hL=Xt(()=>{cL()}),TE=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.createProcess=f;var i=e(()=>{if(typeof process<"u")return process;try{return hL(),hr(Qx)}catch{return}},"maybeReturnProcess");function f(){let g=i()||{};return g.cwd||(g.cwd=()=>"/"),g.emitWarning||(g.emitWarning=(a,n)=>{console.warn(`${n}${n?": ":""}${a}`)}),g.env||(g.env={}),g}l(f,"US"),e(f,"createProcess"),o.default=f()}),Xx=Ge(o=>{"use strict";var _;Object.defineProperty(o,"__esModule",{value:!0}),o.Node=void 0;var i=Jx(),f=TE(),g=Ba(),a=$n(),{S_IFMT:n,S_IFDIR:r,S_IFREG:u,S_IFLNK:p,S_IFCHR:c}=a.constants,d=e(()=>f.default.getuid?.()??0,"getuid"),m=e(()=>f.default.getgid?.()??0,"getgid"),y=(_=class{constructor(T,k=438){this.changes=new i.FanOut,this._uid=d(),this._gid=m(),this._atime=new Date,this._mtime=new Date,this._ctime=new Date,this.rdev=0,this._nlink=1,this.mode=k,this.ino=T}set ctime(T){this._ctime=T}get ctime(){return this._ctime}set uid(T){this._uid=T,this.ctime=new Date}get uid(){return this._uid}set gid(T){this._gid=T,this.ctime=new Date}get gid(){return this._gid}set atime(T){this._atime=T}get atime(){return this._atime}set mtime(T){this._mtime=T,this.ctime=new Date}get mtime(){return this._mtime}get perm(){return this.mode&~n}set perm(T){this.mode=this.mode&n|T&~n,this.ctime=new Date}set nlink(T){this._nlink=T,this.ctime=new Date}get nlink(){return this._nlink}getString(T="utf8"){return this.atime=new Date,this.getBuffer().toString(T)}setString(T){this.buf=(0,g.bufferFrom)(T,"utf8"),this.touch()}getBuffer(){return this.atime=new Date,this.buf||(this.buf=(0,g.bufferAllocUnsafe)(0)),(0,g.bufferFrom)(this.buf)}setBuffer(T){this.buf=(0,g.bufferFrom)(T),this.touch()}getSize(){return this.buf?this.buf.length:0}setModeProperty(T){this.mode=T}isFile(){return(this.mode&n)===u}isDirectory(){return(this.mode&n)===r}isSymlink(){return(this.mode&n)===p}isCharacterDevice(){return(this.mode&n)===c}makeSymlink(T){this.mode=p|438,this.symlink=T}write(T,k=0,E=T.length,j=0){if(this.buf||(this.buf=(0,g.bufferAllocUnsafe)(0)),j+E>this.buf.length){let A=(0,g.bufferAllocUnsafe)(j+E);this.buf.copy(A,0,0,this.buf.length),this.buf=A}return T.copy(this.buf,j,k,k+E),this.touch(),E}read(T,k=0,E=T.byteLength,j=0){if(this.atime=new Date,this.buf||(this.buf=(0,g.bufferAllocUnsafe)(0)),j>=this.buf.length)return 0;let A=E;A>T.byteLength&&(A=T.byteLength),A+j>this.buf.length&&(A=this.buf.length-j);let I=T instanceof g.Buffer?T:g.Buffer.from(T.buffer,T.byteOffset,T.byteLength);return this.buf.copy(I,k,j,j+A),A}truncate(T=0){if(!T)this.buf=(0,g.bufferAllocUnsafe)(0);else if(this.buf||(this.buf=(0,g.bufferAllocUnsafe)(0)),T<=this.buf.length)this.buf=this.buf.slice(0,T);else{let k=(0,g.bufferAllocUnsafe)(T);this.buf.copy(k),k.fill(0,this.buf.length),this.buf=k}this.touch()}chmod(T){this.mode=this.mode&n|T&~n,this.touch()}chown(T,k){this.uid=T,this.gid=k,this.touch()}touch(){this.mtime=new Date,this.changes.emit(["modify"])}canRead(T=d(),k=m()){return!!(this.perm&4||k===this.gid&&this.perm&32||T===this.uid&&this.perm&256)}canWrite(T=d(),k=m()){return!!(this.perm&2||k===this.gid&&this.perm&16||T===this.uid&&this.perm&128)}canExecute(T=d(),k=m()){return!!(this.perm&1||k===this.gid&&this.perm&8||T===this.uid&&this.perm&64)}del(){this.changes.emit(["delete"])}toJSON(){return{ino:this.ino,uid:this.uid,gid:this.gid,atime:this.atime.getTime(),mtime:this.mtime.getTime(),ctime:this.ctime.getTime(),perm:this.perm,mode:this.mode,nlink:this.nlink,symlink:this.symlink,data:this.getString()}}},l(_,"Uy"),_);e(y,"Node");var w=y;o.Node=w}),e6=Ge(o=>{"use strict";var r;Object.defineProperty(o,"__esModule",{value:!0}),o.Link=void 0;var i=$n(),f=Jx(),{S_IFREG:g}=i.constants,a=(r=class{get steps(){return this._steps}set steps(p){this._steps=p;for(let[c,d]of this.children.entries())c==="."||c===".."||d?.syncSteps()}constructor(p,c,d){this.changes=new f.FanOut,this.children=new Map,this._steps=[],this.ino=0,this.length=0,this.vol=p,this.parent=c,this.name=d,this.syncSteps()}setNode(p){this.node=p,this.ino=p.ino}getNode(){return this.node}createChild(p,c=this.vol.createNode(g|438)){let d=new r(this.vol,this,p);return d.setNode(c),c.isDirectory()&&(d.children.set(".",d),d.getNode().nlink++),this.setChild(p,d),d}setChild(p,c=new r(this.vol,this,p)){return this.children.set(p,c),c.parent=this,this.length++,c.getNode().isDirectory()&&(c.children.set("..",this),this.getNode().nlink++),this.getNode().mtime=new Date,this.changes.emit(["child:add",c,this]),c}deleteChild(p){p.getNode().isDirectory()&&(p.children.delete(".."),this.getNode().nlink--),this.children.delete(p.getName()),this.length--,this.getNode().mtime=new Date,this.changes.emit(["child:del",p,this])}getChild(p){return this.getNode().atime=new Date,this.children.get(p)}getPath(){return this.steps.join("/")}getParentPath(){return this.steps.slice(0,-1).join("/")}getName(){return this.steps[this.steps.length-1]}toJSON(){return{steps:this.steps,ino:this.ino,children:Array.from(this.children.keys())}}syncSteps(){this.steps=this.parent?this.parent.steps.concat([this.name]):[this.name]}},l(r,"$l"),r);e(a,"Link");var n=a;o.Link=n}),t6=Ge(o=>{"use strict";var n;Object.defineProperty(o,"__esModule",{value:!0}),o.File=void 0;var i=$n(),{O_APPEND:f}=i.constants,g=(n=class{constructor(u,p,c,d){this.link=u,this.node=p,this.flags=c,this.fd=d,this.position=0,this.flags&f&&(this.position=this.getSize())}getString(u="utf8"){return this.node.getString()}setString(u){this.node.setString(u)}getBuffer(){return this.node.getBuffer()}setBuffer(u){this.node.setBuffer(u)}getSize(){return this.node.getSize()}truncate(u){this.node.truncate(u)}seekTo(u){this.position=u}write(u,p=0,c=u.length,d){typeof d!="number"&&(d=this.position);let m=this.node.write(u,p,c,d);return this.position=d+m,m}read(u,p=0,c=u.byteLength,d){typeof d!="number"&&(d=this.position);let m=this.node.read(u,p,c,d);return this.position=d+m,m}chmod(u){this.node.chmod(u)}chown(u,p){this.node.chown(u,p)}},l(n,"zy"),n);e(g,"File");var a=g;o.File=a}),mf=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.FLAGS=o.ERRSTR=void 0;var i=$n();o.ERRSTR={PATH_STR:"path must be a string, Buffer, or Uint8Array",FD:"fd must be a file descriptor",MODE_INT:"mode must be an int",CB:"callback must be a function",UID:"uid must be an unsigned int",GID:"gid must be an unsigned int",LEN:"len must be an integer",ATIME:"atime must be an integer",MTIME:"mtime must be an integer",PREFIX:"filename prefix is required",BUFFER:"buffer must be an instance of Buffer or StaticBuffer",OFFSET:"offset must be an integer",LENGTH:"length must be an integer",POSITION:"position must be an integer"};var{O_RDONLY:f,O_WRONLY:g,O_RDWR:a,O_CREAT:n,O_EXCL:r,O_TRUNC:u,O_APPEND:p,O_SYNC:c}=i.constants,d;(function(m){m[m.r=f]="r",m[m["r+"]=a]="r+",m[m.rs=f|c]="rs",m[m.sr=m.rs]="sr",m[m["rs+"]=a|c]="rs+",m[m["sr+"]=m["rs+"]]="sr+",m[m.w=g|n|u]="w",m[m.wx=g|n|u|r]="wx",m[m.xw=m.wx]="xw",m[m["w+"]=a|n|u]="w+",m[m["wx+"]=a|n|u|r]="wx+",m[m["xw+"]=m["wx+"]]="xw+",m[m.a=g|p|n]="a",m[m.ax=g|p|n|r]="ax",m[m.xa=m.ax]="xa",m[m["a+"]=a|p|n]="a+",m[m["ax+"]=a|p|n|r]="ax+",m[m["xa+"]=m["ax+"]]="xa+"})(d||(o.FLAGS=d={}))}),r6=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.default=typeof queueMicrotask=="function"?queueMicrotask:i=>Promise.resolve().then(()=>i()).catch(()=>{})}),FE=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.filenameToSteps=o.resolve=o.unixify=o.isWin=void 0,o.isFd=_,o.validateFd=S,o.dataToBuffer=T;var i=yf(),f=Ba(),g=TE(),a=Ed(),n=mf();o.isWin=g.default.platform==="win32";var r=i.resolve,u=i.posix?i.posix.sep:i.sep,p=e((k,E)=>{let j=k[E];return E>0&&(j==="/"||o.isWin&&j==="\\")},"isSeparator"),c=e(k=>{let E=k.length-1;if(E<2)return k;for(;p(k,E);)E--;return k.substr(0,E+1)},"removeTrailingSeparator"),d=e((k,E)=>{if(typeof k!="string")throw new TypeError("expected a string");return k=k.replace(/[\\\/]+/g,"/"),E!==!1&&(k=c(k)),k},"normalizePath"),m=e((k,E=!0)=>o.isWin?(k=d(k,E),k.replace(/^([a-zA-Z]+:|\.\/)/,"")):k,"unixify");o.unixify=m;var y=e((k,E=g.default.cwd())=>r(E,k),"resolve");if(o.resolve=y,o.isWin){let k=y;o.resolve=y=e((E,j)=>(0,o.unixify)(k(E,j)),"resolve")}var w=e((k,E)=>{let j=y(k,E).substring(1);return j?j.split(u):[]},"filenameToSteps");o.filenameToSteps=w;function _(k){return k>>>0===k}l(_,"GS"),e(_,"isFd");function S(k){if(!_(k))throw TypeError(n.ERRSTR.FD)}l(S,"l3"),e(S,"validateFd");function T(k,E=a.ENCODING_UTF8){return f.Buffer.isBuffer(k)?k:k instanceof Uint8Array?(0,f.bufferFrom)(k):E==="buffer"?(0,f.bufferFrom)(String(k),"utf8"):(0,f.bufferFrom)(String(k),E)}l(T,"f3"),e(T,"dataToBuffer")});l(gk,"u3");l(n6,"c3");l(i6,"h3");l(o6,"d3");l(a6,"p3");l(s6,"y3");l(BE,"TA");l(Ys,"Ul");l(l6,"m3");l(f6,"g3");l(u6,"w3");l(c6,"v3");l(Sd,"Om");l(h6,"b3");l(Ia,"es");l(Ad,"Im");l(IE,"FA");l(d6,"_3");l(p6,"E3");l(g6,"S3");l(y6,"A3");l(m6,"R3");l(nd,"Pm");l(w6,"T3");l(xE,"xA");l(yk,"F3");l(Dw,"OA");l(br,"Zt");l(mk,"q3");l(wk,"Y3");l(bk,"K3");l(vk,"X3");l(_k,"oj");l(Ek,"fj");l(Sk,"Tj");l(tu,"Fm");l(Qn,"Wi");l(Ak,"$j");l(Rk,"Mj");l(b6,"jj");l(v6,"Hj");l(Rd,"Bm");l(jE,"PA");l(_6,"Wj");l(E6,"qj");l(S6,"zj");l(kk,"Vj");l(Uw,"kA");l(A6,"u4");l(R6,"c4");l(Mw,"BA");bL=Xt(()=>{Bu={},$w=!1,e(gk,"dew"),Ui=gk(),dL=Ui.decode,pL=Ui.encode,gL=Ui.toASCII,yL=Ui.toUnicode,mL=Ui.ucs2,wL=Ui.version,Ww={},zw=!1,e(n6,"dew$k"),Hw={},qw=!1,e(i6,"dew$j"),Gw={},Vw=!1,e(o6,"dew$i"),Kw={},Jw=!1,e(a6,"dew$h"),Yw={},Zw=!1,e(s6,"dew$g"),Qw={},Xw=!1,e(BE,"dew$f"),eb={},tb=!1,e(Ys,"dew$e"),rb={},nb=!1,e(l6,"dew$d"),Iu={},ib=!1,e(f6,"dew$c"),xu={},ob=!1,e(u6,"dew$b"),ju={},ab=!1,e(c6,"dew$a"),Cu={},sb=!1,e(Sd,"dew$9"),Pu={},lb=!1,e(h6,"dew$8"),Lu={},fb=!1,e(Ia,"dew$7"),Nu={},ub=!1,e(Ad,"dew$6"),Du={},cb=!1,e(IE,"dew$5"),Uu={},hb=!1,e(d6,"dew$4"),Mu={},db=!1,e(p6,"dew$3"),$u={},pb=!1,e(g6,"dew$2"),vs={},gb=!1,e(y6,"dew$1"),Wu={},yb=!1,e(m6,"dew2"),e(nd,"unimplemented"),Pn=[],ma=!1,ql=-1,e(w6,"cleanUpNextTick"),e(xE,"drainQueue"),e(yk,"nextTick"),e(Dw,"Item"),Dw.prototype.run=function(){this.fun.apply(null,this.array)},Ok="browser",Tk="x64",Fk="browser",Bk={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},Ik=["/usr/bin/node"],xk=[],jk="v16.8.0",Ck={},Pk=e(function(o,i){console.warn((i?i+": ":"")+o)},"emitWarning"),Lk=e(function(o){nd("binding")},"binding"),Nk=e(function(o){return 0},"umask"),Dk=e(function(){return"/"},"cwd"),Uk=e(function(o){},"chdir"),Mk={name:"node",sourceUrl:"",headersUrl:"",libUrl:""},e(br,"noop"),$k=br,Wk=[],e(mk,"_linkedBinding"),zk={},Hk=!1,qk={},e(wk,"dlopen"),e(bk,"_getActiveRequests"),e(vk,"_getActiveHandles"),Gk=br,Vk=br,ru=e(function(){return{}},"cpuUsage"),Kk=ru,Jk=ru,Yk=br,Zk=br,Qk=br,Xk={},e(_k,"assert"),eO={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},tO=br,rO=br,e(Ek,"hasUncaughtExceptionCaptureCallback"),nO=br,iO=br,oO=br,aO=br,sO=br,lO=void 0,fO=void 0,uO=void 0,cO=br,hO=2,dO=1,pO="/bin/usr/node",gO=9229,yO="node",mO=[],wO=br,ci={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0},ci.now===void 0&&(gy=Date.now(),ci.timing&&ci.timing.navigationStart&&(gy=ci.timing.navigationStart),ci.now=()=>Date.now()-gy),e(Sk,"uptime"),zu=1e9,e(tu,"hrtime"),tu.bigint=function(o){var i=tu(o);return typeof BigInt>"u"?i[0]*zu+i[1]:BigInt(i[0]*zu)+BigInt(i[1])},bO=10,vO={},_O=0,e(Qn,"on"),EO=Qn,SO=Qn,AO=Qn,RO=Qn,kO=Qn,OO=br,TO=Qn,FO=Qn,e(Ak,"listeners"),CE={version:jk,versions:Ck,arch:Tk,platform:Fk,release:Mk,_rawDebug:$k,moduleLoadList:Wk,binding:Lk,_linkedBinding:mk,_events:vO,_eventsCount:_O,_maxListeners:bO,on:Qn,addListener:EO,once:SO,off:AO,removeListener:RO,removeAllListeners:kO,emit:OO,prependListener:TO,prependOnceListener:FO,listeners:Ak,domain:zk,_exiting:Hk,config:qk,dlopen:wk,uptime:Sk,_getActiveRequests:bk,_getActiveHandles:vk,reallyExit:Gk,_kill:Vk,cpuUsage:ru,resourceUsage:Kk,memoryUsage:Jk,kill:Yk,exit:Zk,openStdin:Qk,allowedNodeEnvironmentFlags:Xk,assert:_k,features:eO,_fatalExceptions:tO,setUncaughtExceptionCaptureCallback:rO,hasUncaughtExceptionCaptureCallback:Ek,emitWarning:Pk,nextTick:yk,_tickCallback:nO,_debugProcess:iO,_debugEnd:oO,_startProfilerIdleNotifier:aO,_stopProfilerIdleNotifier:sO,stdout:lO,stdin:uO,stderr:fO,abort:cO,umask:Nk,chdir:Uk,cwd:Dk,env:Bk,title:Ok,argv:Ik,execArgv:xk,pid:hO,ppid:dO,execPath:pO,debugPort:gO,hrtime:tu,argv0:yO,_preload_modules:mO,setSourceMapsEnabled:wO},Hu={},mb=!1,e(Rk,"dew3"),wb=Rk(),k6=Object.freeze(Object.create(null)),qu={},bb=!1,Gu=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,e(b6,"dew$72"),Vu={},vb=!1,e(v6,"dew$62"),Ku={},_b=!1,e(Rd,"dew$52"),Ju={},Eb=!1,e(jE,"dew$42"),Yu={},Sb=!1,e(_6,"dew$32"),Zu={},Ab=!1,e(E6,"dew$22"),Qu={},Rb=!1,e(S6,"dew$12"),Mi={},kb=!1,e(kk,"dew4"),Br=kk(),Br.parse,Br.resolve,Br.resolveObject,Br.format,Br.Url,BO=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0,Br.URL=typeof URL<"u"?URL:null,Br.pathToFileURL=Mw,Br.fileURLToPath=Uw,O6=Br.Url,T6=Br.format,F6=Br.resolve,B6=Br.resolveObject,I6=Br.parse,x6=Br.URL,j6=92,C6=47,P6=97,L6=122,id=BO==="win32",N6=/\//g,D6=/%/g,U6=/\\/g,M6=/\n/g,$6=/\r/g,W6=/\t/g,e(Uw,"fileURLToPath"),e(A6,"getPathFromURLWin"),e(R6,"getPathFromURLPosix"),e(Mw,"pathToFileURL")}),PE={};an(PE,{URL:l(()=>x6,"URL"),Url:l(()=>O6,"Url"),fileURLToPath:l(()=>Uw,"fileURLToPath"),format:l(()=>T6,"format"),parse:l(()=>I6,"parse"),pathToFileURL:l(()=>Mw,"pathToFileURL"),resolve:l(()=>F6,"resolve"),resolveObject:l(()=>B6,"resolveObject")});z6=Xt(()=>{bL()}),xa=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.getWriteSyncArgs=o.getWriteArgs=o.bufToUint8=void 0,o.promisify=r,o.validateCallback=u,o.modeToNumber=c,o.nullCheck=d,o.pathToFilename=y,o.createError=re,o.genRndStr6=ae,o.flagsToNumber=de,o.streamToBuffer=we,o.bufferToEncoding=Te,o.isReadableStream=J;var i=mf(),f=_d(),g=Ba(),a=r6(),n=FE();function r(ue,te,X=ye=>ye){return(...ye)=>new Promise((Re,De)=>{ue[te].bind(ue)(...ye,(Y,H)=>Y?De(Y):Re(X(H)))})}l(r,"d4"),e(r,"promisify");function u(ue){if(typeof ue!="function")throw TypeError(i.ERRSTR.CB);return ue}l(u,"LA"),e(u,"validateCallback");function p(ue,te){if(typeof ue=="number")return ue;if(typeof ue=="string")return parseInt(ue,8);if(te)return c(te)}l(p,"p4"),e(p,"_modeToNumber");function c(ue,te){let X=p(ue,te);if(typeof X!="number"||isNaN(X))throw new TypeError(i.ERRSTR.MODE_INT);return X}l(c,"DA"),e(c,"modeToNumber");function d(ue,te){if((""+ue).indexOf("\0")!==-1){let X=new Error("Path must be a string without null bytes");if(X.code="ENOENT",typeof te!="function")throw X;return(0,a.default)(()=>{te(X)}),!1}return!0}l(d,"NA"),e(d,"nullCheck");function m(ue){if(ue.hostname!=="")throw new f.TypeError("ERR_INVALID_FILE_URL_HOST",process.platform);let te=ue.pathname;for(let X=0;X<te.length;X++)if(te[X]==="%"){let ye=te.codePointAt(X+2)|32;if(te[X+1]==="2"&&ye===102)throw new f.TypeError("ERR_INVALID_FILE_URL_PATH","must not include encoded / characters")}return decodeURIComponent(te)}l(m,"y4"),e(m,"getPathFromURLPosix");function y(ue){if(ue instanceof Uint8Array&&(ue=(0,g.bufferFrom)(ue)),typeof ue!="string"&&!g.Buffer.isBuffer(ue)){try{if(!(ue instanceof(z6(),hr(PE)).URL))throw new TypeError(i.ERRSTR.PATH_STR)}catch{throw new TypeError(i.ERRSTR.PATH_STR)}ue=m(ue)}let te=String(ue);return d(te),te}l(y,"m4"),e(y,"pathToFilename");var w="ENOENT",_="EBADF",S="EINVAL",T="EPERM",k="EPROTO",E="EEXIST",j="ENOTDIR",A="EMFILE",I="EACCES",U="EISDIR",M="ENOTEMPTY",ee="ENOSYS",V="ERR_FS_EISDIR",q="ERR_OUT_OF_RANGE";function G(ue,te="",X="",ye=""){let Re="";switch(X&&(Re=` '${X}'`),ye&&(Re+=` -> '${ye}'`),ue){case w:return`ENOENT: no such file or directory, ${te}${Re}`;case _:return`EBADF: bad file descriptor, ${te}${Re}`;case S:return`EINVAL: invalid argument, ${te}${Re}`;case T:return`EPERM: operation not permitted, ${te}${Re}`;case k:return`EPROTO: protocol error, ${te}${Re}`;case E:return`EEXIST: file already exists, ${te}${Re}`;case j:return`ENOTDIR: not a directory, ${te}${Re}`;case U:return`EISDIR: illegal operation on a directory, ${te}${Re}`;case I:return`EACCES: permission denied, ${te}${Re}`;case M:return`ENOTEMPTY: directory not empty, ${te}${Re}`;case A:return`EMFILE: too many open files, ${te}${Re}`;case ee:return`ENOSYS: function not implemented, ${te}${Re}`;case V:return`[ERR_FS_EISDIR]: Path is a directory: ${te} returned EISDIR (is a directory) ${X}`;case q:return`[ERR_OUT_OF_RANGE]: value out of range, ${te}${Re}`;default:return`${ue}: error occurred, ${te}${Re}`}}l(G,"P4"),e(G,"formatError");function re(ue,te="",X="",ye="",Re=Error){let De=new Re(G(ue,te,X,ye));return De.code=ue,X&&(De.path=X),De}l(re,"k4"),e(re,"createError");function ae(){return Math.random().toString(36).slice(2,8).padEnd(6,"0")}l(ae,"B4"),e(ae,"genRndStr6");function de(ue){if(typeof ue=="number")return ue;if(typeof ue=="string"){let te=i.FLAGS[ue];if(typeof te<"u")return te}throw new f.TypeError("ERR_INVALID_OPT_VALUE","flags",ue)}l(de,"C4"),e(de,"flagsToNumber");function we(ue){let te=[];return new Promise((X,ye)=>{ue.on("data",Re=>te.push(Re)),ue.on("end",()=>X(g.Buffer.concat(te))),ue.on("error",ye)})}l(we,"L4"),e(we,"streamToBuffer");var Ie=e(ue=>new Uint8Array(ue.buffer,ue.byteOffset,ue.byteLength),"bufToUint8");o.bufToUint8=Ie;var je=e((ue,te,X,ye,Re,De)=>{(0,n.validateFd)(ue);let Y=0,H,Q=null,fe,ve,N=typeof te,x=typeof X,D=typeof ye,z=typeof Re;N!=="string"?x==="function"?ve=X:D==="function"?(Y=X|0,ve=ye):z==="function"?(Y=X|0,H=ye,ve=Re):(Y=X|0,H=ye,Q=Re,ve=De):x==="function"?ve=X:D==="function"?(Q=X,ve=ye):z==="function"&&(Q=X,fe=ye,ve=Re);let Ee=(0,n.dataToBuffer)(te,fe);N!=="string"?typeof H>"u"&&(H=Ee.length):(Y=0,H=Ee.length);let ke=u(ve);return[ue,N==="string",Ee,Y,H,Q,ke]},"getWriteArgs");o.getWriteArgs=je;var se=e((ue,te,X,ye,Re)=>{(0,n.validateFd)(ue);let De,Y,H,Q,fe=typeof te!="string";fe?(Y=(X||0)|0,H=ye,Q=Re):(Q=X,De=ye);let ve=(0,n.dataToBuffer)(te,De);return fe?typeof H>"u"&&(H=ve.length):(Y=0,H=ve.length),[ue,ve,Y||0,H,Q]},"getWriteSyncArgs");o.getWriteSyncArgs=se;function Te(ue,te){return!te||te==="buffer"?ue:ue.toString(te)}l(Te,"M4"),e(Te,"bufferToEncoding");function J(ue){return ue!==null&&typeof ue=="object"&&typeof ue.pipe=="function"&&typeof ue.on=="function"&&ue.readable===!0}l(J,"U4"),e(J,"isReadableStream")}),vL=Ge(o=>{"use strict";var V;Object.defineProperty(o,"__esModule",{value:!0}),o.Superblock=void 0;var i=yf(),f=Xx(),g=e6(),a=t6(),n=Ba(),r=TE(),u=$n(),p=mf(),c=xa(),d=FE(),m=Kx(),y=i.posix?i.posix.sep:i.sep,w=i.posix?i.posix.relative:i.relative,_=i.posix?i.posix.join:i.join,{O_RDONLY:S,O_WRONLY:T,O_RDWR:k,O_CREAT:E,O_EXCL:j,O_TRUNC:A,O_APPEND:I,O_DIRECTORY:U}=u.constants,M=(V=class{static fromJSON(G,re){let ae=new V;return ae.fromJSON(G,re),ae}static fromNestedJSON(G,re){let ae=new V;return ae.fromNestedJSON(G,re),ae}constructor(G={}){this.ino=0,this.inodes={},this.releasedInos=[],this.fds={},this.releasedFds=[],this.maxFiles=1e4,this.openFiles=0,this.open=(ae,de,we,Ie=!0)=>{let je=this.openFile(ae,de,we,Ie);if(!je)throw(0,c.createError)("ENOENT","open",ae);return je.fd},this.writeFile=(ae,de,we,Ie)=>{let je=typeof ae=="number",se;je?se=ae:se=this.open((0,c.pathToFilename)(ae),we,Ie);let Te=0,J=de.length,ue=we&I?void 0:0;try{for(;J>0;){let te=this.write(se,de,Te,J,ue);Te+=te,J-=te,ue!==void 0&&(ue+=te)}}finally{je||this.close(se)}},this.read=(ae,de,we,Ie,je)=>{if(de.byteLength<Ie)throw(0,c.createError)("ERR_OUT_OF_RANGE","read",void 0,void 0,RangeError);let se=this.getFileByFdOrThrow(ae);if(se.node.isSymlink())throw(0,c.createError)("EPERM","read",se.link.getPath());return se.read(de,Number(we),Number(Ie),je===-1||typeof je!="number"?void 0:je)},this.readv=(ae,de,we)=>{let Ie=this.getFileByFdOrThrow(ae),je=we??void 0;je===-1&&(je=void 0);let se=0;for(let Te of de){let J=Ie.read(Te,0,Te.byteLength,je);if(je=void 0,se+=J,J<Te.byteLength)break}return se},this.link=(ae,de)=>{let we;try{we=this.getLinkOrThrow(ae,"link")}catch(J){throw J.code&&(J=(0,c.createError)(J.code,"link",ae,de)),J}let Ie=(0,i.dirname)(de),je;try{je=this.getLinkOrThrow(Ie,"link")}catch(J){throw J.code&&(J=(0,c.createError)(J.code,"link",ae,de)),J}let se=(0,i.basename)(de);if(je.getChild(se))throw(0,c.createError)("EEXIST","link",ae,de);let Te=we.getNode();Te.nlink++,je.createChild(se,Te)},this.unlink=ae=>{let de=this.getLinkOrThrow(ae,"unlink");if(de.length)throw Error("Dir not empty...");this.deleteLink(de);let we=de.getNode();we.nlink--,we.nlink<=0&&this.deleteNode(we)},this.symlink=(ae,de)=>{let we=(0,d.filenameToSteps)(de),Ie;try{Ie=this.getLinkParentAsDirOrThrow(we)}catch(J){throw J.code&&(J=(0,c.createError)(J.code,"symlink",ae,de)),J}let je=we[we.length-1];if(Ie.getChild(je))throw(0,c.createError)("EEXIST","symlink",ae,de);let se=Ie.getNode();if(!se.canExecute()||!se.canWrite())throw(0,c.createError)("EACCES","symlink",ae,de);let Te=Ie.createChild(je);return Te.getNode().makeSymlink(ae),Te},this.rename=(ae,de)=>{let we;try{we=this.getResolvedLinkOrThrow(ae)}catch(ue){throw ue.code&&(ue=(0,c.createError)(ue.code,"rename",ae,de)),ue}let Ie;try{Ie=this.getLinkParentAsDirOrThrow(de)}catch(ue){throw ue.code&&(ue=(0,c.createError)(ue.code,"rename",ae,de)),ue}let je=we.parent;if(!je)throw(0,c.createError)("EINVAL","rename",ae,de);let se=je.getNode(),Te=Ie.getNode();if(!se.canExecute()||!se.canWrite()||!Te.canExecute()||!Te.canWrite())throw(0,c.createError)("EACCES","rename",ae,de);je.deleteChild(we);let J=(0,i.basename)(de);we.name=J,we.steps=[...Ie.steps,J],Ie.setChild(we.getName(),we)},this.mkdir=(ae,de)=>{let we=(0,d.filenameToSteps)(ae);if(!we.length)throw(0,c.createError)("EEXIST","mkdir",ae);let Ie=this.getLinkParentAsDirOrThrow(ae,"mkdir"),je=we[we.length-1];if(Ie.getChild(je))throw(0,c.createError)("EEXIST","mkdir",ae);let se=Ie.getNode();if(!se.canWrite()||!se.canExecute())throw(0,c.createError)("EACCES","mkdir",ae);Ie.createChild(je,this.createNode(u.constants.S_IFDIR|de))},this.mkdirp=(ae,de)=>{let we=!1,Ie=(0,d.filenameToSteps)(ae),je=null,se=Ie.length;for(se=Ie.length;se>=0&&(je=this.getResolvedLink(Ie.slice(0,se)),!je);se--);for(je||(je=this.root,se=0),je=this.getResolvedLinkOrThrow(i.sep+Ie.slice(0,se).join(i.sep),"mkdir"),se;se<Ie.length;se++){let Te=je.getNode();if(Te.isDirectory()){if(!Te.canExecute()||!Te.canWrite())throw(0,c.createError)("EACCES","mkdir",ae)}else throw(0,c.createError)("ENOTDIR","mkdir",ae);we=!0,je=je.createChild(Ie[se],this.createNode(u.constants.S_IFDIR|de))}return we?ae:void 0},this.rmdir=(ae,de=!1)=>{let we=this.getLinkAsDirOrThrow(ae,"rmdir");if(we.length&&!de)throw(0,c.createError)("ENOTEMPTY","rmdir",ae);this.deleteLink(we)},this.rm=(ae,de=!1,we=!1)=>{let Ie;try{Ie=this.getResolvedLinkOrThrow(ae,"stat")}catch(je){if(je.code==="ENOENT"&&de)return;throw je}if(Ie.getNode().isDirectory()&&!we)throw(0,c.createError)("ERR_FS_EISDIR","rm",ae);if(!Ie.parent?.getNode().canWrite())throw(0,c.createError)("EACCES","rm",ae);this.deleteLink(Ie)},this.close=ae=>{(0,d.validateFd)(ae);let de=this.getFileByFdOrThrow(ae,"close");this.closeFile(de)};let re=this.createLink();re.setNode(this.createNode(u.constants.S_IFDIR|511)),re.setChild(".",re),re.getNode().nlink++,re.setChild("..",re),re.getNode().nlink++,this.root=re}createLink(G,re,ae=!1,de){if(!G)return new g.Link(this,void 0,"");if(!re)throw new Error("createLink: name cannot be empty");let we=de??(ae?511:438),Ie=de&&de&u.constants.S_IFMT?de&u.constants.S_IFMT:ae?u.constants.S_IFDIR:u.constants.S_IFREG,je=we&~u.constants.S_IFMT|Ie;return G.createChild(re,this.createNode(je))}deleteLink(G){let re=G.parent;return re?(re.deleteChild(G),!0):!1}newInoNumber(){return this.releasedInos.pop()||(this.ino=(this.ino+1)%4294967295,this.ino)}newFdNumber(){let G=this.releasedFds.pop();return typeof G=="number"?G:V.fd--}createNode(G){let re=new f.Node(this.newInoNumber(),G);return this.inodes[re.ino]=re,re}deleteNode(G){G.del(),delete this.inodes[G.ino],this.releasedInos.push(G.ino)}walk(G,re=!1,ae=!1,de=!1,we){let Ie,je;G instanceof g.Link?(Ie=G.steps,je=y+Ie.join(y)):typeof G=="string"?(Ie=(0,d.filenameToSteps)(G),je=G):(Ie=G,je=y+Ie.join(y));let se=this.root,Te=0;for(;Te<Ie.length;){let J=se.getNode();if(J.isDirectory()){if(de&&!J.canExecute())throw(0,c.createError)("EACCES",we,je)}else if(Te<Ie.length-1)throw(0,c.createError)("ENOTDIR",we,je);if(se=se.getChild(Ie[Te])??null,!se){if(ae)throw(0,c.createError)("ENOENT",we,je);return null}if(J=se?.getNode(),J.isSymlink()&&(re||Te<Ie.length-1)){let ue=(0,i.isAbsolute)(J.symlink)?J.symlink:_((0,i.dirname)(se.getPath()),J.symlink);Ie=(0,d.filenameToSteps)(ue).concat(Ie.slice(Te+1)),se=this.root,Te=0;continue}if(ae&&!J.isDirectory()&&Te<Ie.length-1){let ue=r.default.platform==="win32"?"ENOENT":"ENOTDIR";throw(0,c.createError)(ue,we,je)}Te++}return se}getLink(G){return this.walk(G,!1,!1,!1)}getLinkOrThrow(G,re){return this.walk(G,!1,!0,!0,re)}getResolvedLink(G){return this.walk(G,!0,!1,!1)}getResolvedLinkOrThrow(G,re){return this.walk(G,!0,!0,!0,re)}resolveSymlinks(G){return this.getResolvedLink(G.steps.slice(1))}getLinkAsDirOrThrow(G,re){let ae=this.getLinkOrThrow(G,re);if(!ae.getNode().isDirectory())throw(0,c.createError)("ENOTDIR",re,G);return ae}getLinkParent(G){return this.getLink(G.slice(0,-1))}getLinkParentAsDirOrThrow(G,re){let ae=(G instanceof Array?G:(0,d.filenameToSteps)(G)).slice(0,-1),de=y+ae.join(y),we=this.getLinkOrThrow(de,re);if(!we.getNode().isDirectory())throw(0,c.createError)("ENOTDIR",re,de);return we}getFileByFd(G){return this.fds[String(G)]}getFileByFdOrThrow(G,re){if(!(0,d.isFd)(G))throw TypeError(p.ERRSTR.FD);let ae=this.getFileByFd(G);if(!ae)throw(0,c.createError)("EBADF",re);return ae}_toJSON(G=this.root,re={},ae,de){let we=!0,Ie=G.children;G.getNode().isFile()&&(Ie=new Map([[G.getName(),G.parent.getChild(G.getName())]]),G=G.parent);for(let se of Ie.keys()){if(se==="."||se==="..")continue;we=!1;let Te=G.getChild(se);if(!Te)throw new Error("_toJSON: unexpected undefined");let J=Te.getNode();if(J.isFile()){let ue=Te.getPath();ae&&(ue=w(ae,ue)),re[ue]=de?J.getBuffer():J.getString()}else J.isDirectory()&&this._toJSON(Te,re,ae,de)}let je=G.getPath();return ae&&(je=w(ae,je)),je&&we&&(re[je]=null),re}toJSON(G,re={},ae=!1,de=!1){let we=[];if(G){Array.isArray(G)||(G=[G]);for(let Ie of G){let je=(0,c.pathToFilename)(Ie),se=this.getResolvedLink(je);se&&we.push(se)}}else we.push(this.root);if(!we.length)return re;for(let Ie of we)this._toJSON(Ie,re,ae?Ie.getPath():"",de);return re}fromJSON(G,re=r.default.cwd()){for(let ae in G){let de=G[ae];if(ae=(0,d.resolve)(ae,re),typeof de=="string"||de instanceof n.Buffer){let we=(0,i.dirname)(ae);this.mkdirp(we,511);let Ie=(0,d.dataToBuffer)(de);this.writeFile(ae,Ie,p.FLAGS.w,438)}else this.mkdirp(ae,511)}}fromNestedJSON(G,re){this.fromJSON((0,m.flattenJSON)(G),re)}reset(){this.ino=0,this.inodes={},this.releasedInos=[],this.fds={},this.releasedFds=[],this.openFiles=0,this.root=this.createLink(),this.root.setNode(this.createNode(u.constants.S_IFDIR|511))}mountSync(G,re){this.fromJSON(re,G)}openLink(G,re,ae=!0){if(this.openFiles>=this.maxFiles)throw(0,c.createError)("EMFILE","open",G.getPath());let de=G;ae&&(de=this.getResolvedLinkOrThrow(G.getPath(),"open"));let we=de.getNode();if(we.isDirectory()){if((re&(S|k|T))!==S)throw(0,c.createError)("EISDIR","open",G.getPath())}else if(re&U)throw(0,c.createError)("ENOTDIR","open",G.getPath());if((re&(S|k|T))!==T&&!we.canRead()||re&(T|k)&&!we.canWrite())throw(0,c.createError)("EACCES","open",G.getPath());let Ie=new a.File(G,we,re,this.newFdNumber());return this.fds[Ie.fd]=Ie,this.openFiles++,re&A&&Ie.truncate(),Ie}openFile(G,re,ae,de=!0){let we=(0,d.filenameToSteps)(G),Ie;try{if(Ie=de?this.getResolvedLinkOrThrow(G,"open"):this.getLinkOrThrow(G,"open"),Ie&&re&E&&re&j)throw(0,c.createError)("EEXIST","open",G)}catch(je){if(je.code==="ENOENT"&&re&E){let se=(0,i.dirname)(G),Te=this.getResolvedLinkOrThrow(se),J=Te.getNode();if(!J.isDirectory())throw(0,c.createError)("ENOTDIR","open",G);if(!J.canExecute()||!J.canWrite())throw(0,c.createError)("EACCES","open",G);ae??(ae=438),Ie=this.createLink(Te,we[we.length-1],!1,ae)}else throw je}if(Ie)return this.openLink(Ie,re,de);throw(0,c.createError)("ENOENT","open",G)}closeFile(G){this.fds[G.fd]&&(this.openFiles--,delete this.fds[G.fd],this.releasedFds.push(G.fd))}write(G,re,ae,de,we){let Ie=this.getFileByFdOrThrow(G,"write");if(Ie.node.isSymlink())throw(0,c.createError)("EBADF","write",Ie.link.getPath());return Ie.write(re,ae,de,we===-1||typeof we!="number"?void 0:we)}},l(V,"rs"),V);e(M,"Superblock");var ee=M;o.Superblock=ee,ee.fd=2147483647}),_L=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.Superblock=o.File=o.Link=o.Node=void 0;var i=(Vx(),hr(kE));i.__exportStar(uL(),o),i.__exportStar(Kx(),o);var f=Xx();Object.defineProperty(o,"Node",{enumerable:!0,get:e(function(){return f.Node},"get")});var g=e6();Object.defineProperty(o,"Link",{enumerable:!0,get:e(function(){return g.Link},"get")});var a=t6();Object.defineProperty(o,"File",{enumerable:!0,get:e(function(){return a.File},"get")});var n=vL();Object.defineProperty(o,"Superblock",{enumerable:!0,get:e(function(){return n.Superblock},"get")})}),EL=Ge(o=>{"use strict";var g;Object.defineProperty(o,"__esModule",{value:!0}),o.StatFs=void 0;var i=(g=class{static build(n,r=!1){let u=new g,p=r?_=>BigInt(_):_=>_;u.type=p(2240043254),u.bsize=p(4096);let c=Object.keys(n.inodes).length,d=1e6,m=Math.min(c*2,d),y=d-m;u.blocks=p(d),u.bfree=p(y),u.bavail=p(y);let w=1e6;return u.files=p(w),u.ffree=p(w-c),u}},l(g,"yc"),g);e(i,"StatFs");var f=i;o.StatFs=f,o.default=f}),SL=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0});function i(f,g,a){let n=setTimeout.apply(globalThis,arguments);return n&&typeof n=="object"&&typeof n.unref=="function"&&n.unref(),n}l(i,"eH"),e(i,"setTimeoutUnref"),o.default=i});l(H6,"tH");l(q6,"rH");l(vi,"Vi");l(IO,"nH");l(od,"jg");l(G6,"iH");l(LE,"sR");l(xO,"oH");l(Ob,"lR");l(vr,"Qt");l(jO,"EH");l(CO,"TH");l(PO,"FH");l(LO,"xH");l(NO,"NH");l(DO,"jH");l(UO,"iW");l(nu,"Mg");l(Xn,"Yi");l(MO,"mW");l(V6,"gW");l($O,"wW");l(NE,"fR");l(K6,"vW");l(J6,"bW");l(Y6,"_W");l(Z6,"EW");l(DE,"uR");l(wf,"Sc");l(Q6,"SW");l(X6,"AW");l(ej,"RW");l(tj,"TW");l(kd,"qg");l(rj,"FW");l(Zs,"Xl");l(Od,"zg");l(Td,"Vg");l(nj,"xW");l(ij,"OW");l(oj,"IW");l(UE,"cR");l(ME,"hR");l(aj,"PW");l(Fd,"Gg");l(sj,"kW");l(lj,"BW");l(fj,"CW");l(uj,"LW");l(cj,"DW");l(hj,"$W");l($E,"dR");l(dj,"UW");l(pj,"jW");l(gj,"HW");l(WO,"WW");l(Qt,"Et");l(Vs,"Kl");l(Rr,"lr");l(Pr,"yr");l(Qs,"Jl");l(Wn,"ri");l(_i,"Ki");l(ja,"is");l(Bd,"Yg");l(bf,"Ac");l(yj,"qW");l(vf,"Rc");l(WE,"pR");l(_f,"Tc");l(Id,"Kg");l(mj,"zW");l(Mn,"ei");l(zE,"yR");l(HE,"mR");l(xd,"Xg");l(qE,"gR");l(wj,"VW");l(GE,"wR");l(VE,"vR");l(zO,"GW");nN=Xt(()=>{_s={},Tb=!1,e(H6,"dew$2"),Xu={},Fb=!1,e(q6,"dew$1"),$i={},Bb=!1,e(vi,"dew"),Il={},Ib=!1,e(IO,"dew2"),yi=IO(),yi.once,yi.once=function(o,i){return new Promise((f,g)=>{function a(...r){n!==void 0&&o.removeListener("error",n),f(r)}l(a,"a"),e(a,"eventListener");let n;i!=="error"&&(n=e(r=>{o.removeListener(name,a),g(r)},"errorListener"),o.once("error",n)),o.once(i,a)})},yi.on=function(o,i){let f=[],g=[],a=null,n=!1,r={async next(){let c=f.shift();if(c)return createIterResult(c,!1);if(a){let d=Promise.reject(a);return a=null,d}return n?createIterResult(void 0,!0):new Promise((d,m)=>g.push({resolve:d,reject:m}))},async return(){o.removeListener(i,u),o.removeListener("error",p),n=!0;for(let c of g)c.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)},throw(c){a=c,o.removeListener(i,u),o.removeListener("error",p)},[Symbol.asyncIterator](){return this}};return o.on(i,u),o.on("error",p),r;function u(...c){let d=g.shift();d?d.resolve(createIterResult(c,!1)):f.push(c)}function p(c){n=!0;let d=g.shift();d?d.reject(c):a=c,r.return()}},{EventEmitter:AL,defaultMaxListeners:RL,init:kL,listenerCount:OL,on:TL,once:FL}=yi,e(od,"unimplemented"),Ln=[],wa=!1,Gl=-1,e(G6,"cleanUpNextTick"),e(LE,"drainQueue"),e(xO,"nextTick"),e(Ob,"Item"),Ob.prototype.run=function(){this.fun.apply(null,this.array)},HO="browser",qO="x64",GO="browser",VO={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},KO=["/usr/bin/node"],JO=[],YO="v16.8.0",ZO={},QO=e(function(o,i){console.warn((i?i+": ":"")+o)},"emitWarning"),XO=e(function(o){od("binding")},"binding"),eT=e(function(o){return 0},"umask"),tT=e(function(){return"/"},"cwd"),rT=e(function(o){},"chdir"),nT={name:"node",sourceUrl:"",headersUrl:"",libUrl:""},e(vr,"noop"),iT=vr,oT=[],e(jO,"_linkedBinding"),aT={},sT=!1,lT={},e(CO,"dlopen"),e(PO,"_getActiveRequests"),e(LO,"_getActiveHandles"),fT=vr,uT=vr,iu=e(function(){return{}},"cpuUsage"),cT=iu,hT=iu,dT=vr,pT=vr,gT=vr,yT={},e(NO,"assert"),mT={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},wT=vr,bT=vr,e(DO,"hasUncaughtExceptionCaptureCallback"),vT=vr,_T=vr,ET=vr,ST=vr,AT=vr,RT=void 0,kT=void 0,OT=void 0,TT=vr,FT=2,BT=1,IT="/bin/usr/node",xT=9229,jT="node",CT=[],PT=vr,hi={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0},hi.now===void 0&&(yy=Date.now(),hi.timing&&hi.timing.navigationStart&&(yy=hi.timing.navigationStart),hi.now=()=>Date.now()-yy),e(UO,"uptime"),ec=1e9,e(nu,"hrtime"),nu.bigint=function(o){var i=nu(o);return typeof BigInt>"u"?i[0]*ec+i[1]:BigInt(i[0]*ec)+BigInt(i[1])},LT=10,NT={},DT=0,e(Xn,"on2"),UT=Xn,MT=Xn,$T=Xn,WT=Xn,zT=Xn,HT=vr,qT=Xn,GT=Xn,e(MO,"listeners"),zn={version:YO,versions:ZO,arch:qO,platform:GO,release:nT,_rawDebug:iT,moduleLoadList:oT,binding:XO,_linkedBinding:jO,_events:NT,_eventsCount:DT,_maxListeners:LT,on:Xn,addListener:UT,once:MT,off:$T,removeListener:WT,removeAllListeners:zT,emit:HT,prependListener:qT,prependOnceListener:GT,listeners:MO,domain:aT,_exiting:sT,config:lT,dlopen:CO,uptime:UO,_getActiveRequests:PO,_getActiveHandles:LO,reallyExit:fT,_kill:uT,cpuUsage:iu,resourceUsage:cT,memoryUsage:hT,kill:dT,exit:pT,openStdin:gT,allowedNodeEnvironmentFlags:yT,assert:NO,features:mT,_fatalExceptions:wT,setUncaughtExceptionCaptureCallback:bT,hasUncaughtExceptionCaptureCallback:DO,emitWarning:QO,nextTick:xO,_tickCallback:vT,_debugProcess:_T,_debugEnd:ET,_startProfilerIdleNotifier:ST,_stopProfilerIdleNotifier:AT,stdout:RT,stdin:OT,stderr:kT,abort:TT,umask:eT,chdir:rT,cwd:tT,env:VO,title:HO,argv:KO,execArgv:JO,pid:FT,ppid:BT,execPath:IT,debugPort:xT,hrtime:nu,argv0:jT,_preload_modules:CT,setSourceMapsEnabled:PT},Es={},xb=!1,e(V6,"dew$12"),tc={},jb=!1,e($O,"dew3"),rc=$O(),rc.StringDecoder,BL=rc.StringDecoder,Cb={},Pb=!1,e(NE,"dew$k"),Lb={},Nb=!1,e(K6,"dew$j"),Db={},Ub=!1,e(J6,"dew$i"),Mb={},$b=!1,e(Y6,"dew$h"),Wb={},zb=!1,e(Z6,"dew$g"),Hb={},qb=!1,e(DE,"dew$f"),Gb={},Vb=!1,e(wf,"dew$e"),Kb={},Jb=!1,e(Q6,"dew$d"),nc={},Yb=!1,e(X6,"dew$c"),ic={},Zb=!1,e(ej,"dew$b"),oc={},Qb=!1,e(tj,"dew$a"),ac={},Xb=!1,e(kd,"dew$9"),sc={},e1=!1,e(rj,"dew$8"),lc={},t1=!1,e(Zs,"dew$7"),fc={},r1=!1,e(Od,"dew$6"),uc={},n1=!1,e(Td,"dew$5"),cc={},i1=!1,e(nj,"dew$4"),hc={},o1=!1,e(ij,"dew$3"),dc={},a1=!1,e(oj,"dew$22"),Ss={},s1=!1,e(UE,"dew$13"),pc={},l1=!1,e(ME,"dew4"),gc={},f1=!1,e(aj,"dew5"),yc={},u1=!1,e(Fd,"dew$b2"),mc={},c1=!1,e(sj,"dew$a2"),wc={},h1=!1,e(lj,"dew$92"),bc={},d1=!1,e(fj,"dew$82"),vc={},p1=!1,e(uj,"dew$72"),g1={},y1=!1,e(cj,"dew$62"),_c={},m1=!1,bj=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,e(hj,"dew$52"),Ec={},w1=!1,vj=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,e($E,"dew$42"),Sc={},b1=!1,e(dj,"dew$32"),Et={},v1=!1,e(pj,"dew$23"),_1={},E1=!1,e(gj,"dew$14"),St={},S1=!1,As=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,e(WO,"dew6"),wt=WO(),wt.format,wt.deprecate,wt.debuglog,wt.inspect,wt.types,wt.isArray,wt.isBoolean,wt.isNull,wt.isNullOrUndefined,wt.isNumber,wt.isString,wt.isSymbol,wt.isUndefined,wt.isRegExp,wt.isObject,wt.isDate,wt.isError,wt.isFunction,wt.isPrimitive,wt.isBuffer,wt.log,wt.inherits,wt._extend,wt.promisify,wt.callbackify,IL=wt._extend,xL=wt.callbackify,jL=wt.debuglog,CL=wt.deprecate,PL=wt.format,LL=wt.inherits,NL=wt.inspect,DL=wt.isArray,UL=wt.isBoolean,ML=wt.isBuffer,$L=wt.isDate,WL=wt.isError,zL=wt.isFunction,HL=wt.isNull,qL=wt.isNullOrUndefined,GL=wt.isNumber,VL=wt.isObject,KL=wt.isPrimitive,JL=wt.isRegExp,YL=wt.isString,ZL=wt.isSymbol,QL=wt.isUndefined,XL=wt.log,my=wt.promisify,eN=wt.types,tN=wt.TextEncoder=globalThis.TextEncoder,rN=wt.TextDecoder=globalThis.TextDecoder,A1={},R1=!1,e(Qt,"dew$o"),Rs={},k1=!1,e(Vs,"dew$n"),xl={},O1=!1,e(Rr,"dew$m"),Ac={},T1=!1,e(Pr,"dew$l"),Rc={},F1=!1,e(Qs,"dew$k2"),kc={},B1=!1,e(Wn,"dew$j2"),jl={},I1=!1,e(_i,"dew$i2"),Oc={},x1=!1,e(ja,"dew$h2"),Tc={},j1=!1,e(Bd,"dew$g2"),ks={},C1=!1,e(bf,"dew$f2"),Fc={},P1=!1,e(yj,"dew$e2"),Bc={},L1=!1,e(vf,"dew$d2"),Ic={},N1=!1,e(WE,"dew$c2"),xc={},D1=!1,Ze=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,e(_f,"dew$b3"),jc={},U1=!1,nt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,e(Id,"dew$a3"),Cc={},M1=!1,e(mj,"dew$93"),Pc={},$1=!1,e(Mn,"dew$83"),Lc={},W1=!1,e(zE,"dew$73"),Nc={},z1=!1,e(HE,"dew$63"),Dc={},H1=!1,e(xd,"dew$53"),Uc={},q1=!1,e(qE,"dew$43"),Cl={},G1=!1,e(wj,"dew$33"),Mc={},V1=!1,e(GE,"dew$24"),$c={},K1=!1,J1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,e(VE,"dew$15"),Zt={},Y1=!1,e(zO,"dew7"),Dt=zO(),Dt._uint8ArrayToBuffer,Dt._isUint8Array,Dt.isDisturbed,Dt.isErrored,Dt.isReadable,Dt.Readable,Dt.Writable,Dt.Duplex,Dt.Transform,Dt.PassThrough,Dt.addAbortSignal,Dt.finished,Dt.destroy,Dt.pipeline,Dt.compose,Dt.Stream,Wc=Dt.Readable,Wc.wrap=function(o,i){return i=Object.assign({objectMode:o.readableObjectMode!=null||o.objectMode!=null||!0},i),i.destroy=function(f,g){o.destroy(f),g(f)},new Wc(i).wrap(o)},_j=Dt.Writable,Ej=Dt.Duplex,Sj=Dt.Transform,Aj=Dt.PassThrough,Rj=Dt.finished,kj=Dt.pipeline,Oj=Dt.Stream,Tj={finished:my(Dt.finished),pipeline:my(Dt.pipeline)}}),Fj={};an(Fj,{Duplex:l(()=>Ej,"Duplex"),PassThrough:l(()=>Aj,"PassThrough"),Readable:l(()=>Wc,"Readable"),Stream:l(()=>Oj,"Stream"),Transform:l(()=>Sj,"Transform"),Writable:l(()=>_j,"Writable"),finished:l(()=>Rj,"finished"),pipeline:l(()=>kj,"pipeline"),promises:l(()=>Tj,"promises")});iN=Xt(()=>{nN()}),oN=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.Writable=o.Readable=void 0;var i=(iN(),hr(Fj));Object.defineProperty(o,"Readable",{enumerable:!0,get:e(function(){return i.Readable},"get")}),Object.defineProperty(o,"Writable",{enumerable:!0,get:e(function(){return i.Writable},"get")})});l(VT,"r7");aN=Xt(()=>{Pl={},Z1=!1,e(VT,"dew"),dl=VT(),dl.once,dl.once=function(o,i){return new Promise((f,g)=>{function a(...r){n!==void 0&&o.removeListener("error",n),f(r)}l(a,"a"),e(a,"eventListener");let n;i!=="error"&&(n=e(r=>{o.removeListener(name,a),g(r)},"errorListener"),o.once("error",n)),o.once(i,a)})},dl.on=function(o,i){let f=[],g=[],a=null,n=!1,r={async next(){let c=f.shift();if(c)return createIterResult(c,!1);if(a){let d=Promise.reject(a);return a=null,d}return n?createIterResult(void 0,!0):new Promise((d,m)=>g.push({resolve:d,reject:m}))},async return(){o.removeListener(i,u),o.removeListener("error",p),n=!0;for(let c of g)c.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)},throw(c){a=c,o.removeListener(i,u),o.removeListener("error",p)},[Symbol.asyncIterator](){return this}};return o.on(i,u),o.on("error",p),r;function u(...c){let d=g.shift();d?d.resolve(createIterResult(c,!1)):f.push(c)}function p(c){n=!0;let d=g.shift();d?d.reject(c):a=c,r.return()}},{EventEmitter:Bj,defaultMaxListeners:Ij,init:xj,listenerCount:jj,on:Cj,once:Pj}=dl}),Lj={};an(Lj,{EventEmitter:l(()=>Bj,"EventEmitter"),defaultMaxListeners:l(()=>Ij,"defaultMaxListeners"),init:l(()=>xj,"init"),listenerCount:l(()=>jj,"listenerCount"),on:l(()=>Cj,"on"),once:l(()=>Pj,"once")});sN=Xt(()=>{aN()}),Nj=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.EventEmitter=void 0;var i=(sN(),hr(Lj));Object.defineProperty(o,"EventEmitter",{enumerable:!0,get:e(function(){return i.EventEmitter},"get")})}),lN=Ge(o=>{"use strict";var n;Object.defineProperty(o,"__esModule",{value:!0}),o.FileHandle=void 0;var i=xa(),f=Nj(),g=(n=class extends f.EventEmitter{constructor(u,p){super(),this.refs=1,this.closePromise=null,this.position=0,this.readableWebStreamLocked=!1,this.fs=u,this.fd=p}getAsyncId(){return this.fd}appendFile(u,p){return(0,i.promisify)(this.fs,"appendFile")(this.fd,u,p)}chmod(u){return(0,i.promisify)(this.fs,"fchmod")(this.fd,u)}chown(u,p){return(0,i.promisify)(this.fs,"fchown")(this.fd,u,p)}close(){if(this.fd===-1)return Promise.resolve();if(this.closePromise)return this.closePromise;if(this.refs--,this.refs===0){let u=this.fd;this.fd=-1,this.closePromise=(0,i.promisify)(this.fs,"close")(u).finally(()=>{this.closePromise=null})}else this.closePromise=new Promise((u,p)=>{this.closeResolve=u,this.closeReject=p}).finally(()=>{this.closePromise=null,this.closeReject=void 0,this.closeResolve=void 0});return this.emit("close"),this.closePromise}datasync(){return(0,i.promisify)(this.fs,"fdatasync")(this.fd)}createReadStream(u){return this.fs.createReadStream("",{...u,fd:this})}createWriteStream(u){return this.fs.createWriteStream("",{...u,fd:this})}readableWebStream(u={}){let{type:p="bytes",autoClose:c=!1}=u,d=0;if(this.fd===-1)throw new Error("The FileHandle is closed");if(this.closePromise)throw new Error("The FileHandle is closing");if(this.readableWebStreamLocked)throw new Error("An error will be thrown if this method is called more than once or is called after the FileHandle is closed or closing.");this.readableWebStreamLocked=!0,this.ref();let m=e(()=>{this.readableWebStreamLocked=!1,this.unref(),c&&this.close().catch(()=>{})},"unlockAndCleanup");return new ReadableStream({type:p==="bytes"?"bytes":void 0,autoAllocateChunkSize:16384,pull:e(async y=>{try{let w=y.byobRequest?.view;if(!w){let S=new Uint8Array(16384),T=await this.read(S,0,S.length,d);if(T.bytesRead===0){y.close(),m();return}d+=T.bytesRead,y.enqueue(S.slice(0,T.bytesRead));return}let _=await this.read(w,w.byteOffset,w.byteLength,d);if(_.bytesRead===0){y.close(),m();return}d+=_.bytesRead,y.byobRequest.respond(_.bytesRead)}catch(w){y.error(w),m()}},"pull"),cancel:e(async()=>{m()},"cancel")})}async read(u,p,c,d){let m=d??this.position,y=await(0,i.promisify)(this.fs,"read",w=>({bytesRead:w,buffer:u}))(this.fd,u,p,c,m);return d==null&&(this.position+=y.bytesRead),y}readv(u,p){return(0,i.promisify)(this.fs,"readv",c=>({bytesRead:c,buffers:u}))(this.fd,u,p)}readFile(u){return(0,i.promisify)(this.fs,"readFile")(this.fd,u)}stat(u){return(0,i.promisify)(this.fs,"fstat")(this.fd,u)}sync(){return(0,i.promisify)(this.fs,"fsync")(this.fd)}truncate(u){return(0,i.promisify)(this.fs,"ftruncate")(this.fd,u)}utimes(u,p){return(0,i.promisify)(this.fs,"futimes")(this.fd,u,p)}async write(u,p,c,d){let m=typeof d!="number",y=m?this.position:d,w=await(0,i.promisify)(this.fs,"write",_=>({bytesWritten:_,buffer:u}))(this.fd,u,p,c,y);return m&&(this.position+=w.bytesWritten),w}writev(u,p){return(0,i.promisify)(this.fs,"writev",c=>({bytesWritten:c,buffers:u}))(this.fd,u,p)}writeFile(u,p){return(0,i.promisify)(this.fs,"writeFile")(this.fd,u,p)}async[Symbol.asyncDispose](){await this.close()}ref(){this.refs++}unref(){this.refs--,this.refs===0&&(this.fd=-1,this.closeResolve&&(0,i.promisify)(this.fs,"close")(this.fd).then(this.closeResolve,this.closeReject))}},l(n,"Qg"),n);e(g,"FileHandle");var a=g;o.FileHandle=a}),fN=Ge(o=>{"use strict";var u,p;Object.defineProperty(o,"__esModule",{value:!0}),o.FsPromises=void 0;var i=xa(),f=$n(),g=(u=class{constructor(d,m,y={}){if(this.fs=d,this.path=m,this.options=y,this.eventQueue=[],this.resolveQueue=[],this.finished=!1,this.maxQueue=y.maxQueue||2048,this.overflow=y.overflow||"ignore",this.startWatching(),y.signal){if(y.signal.aborted){this.finish();return}y.signal.addEventListener("abort",()=>{this.finish()})}}startWatching(){try{this.watcher=this.fs.watch(this.path,this.options,(d,m)=>{this.enqueueEvent({eventType:d,filename:m})})}catch(d){throw this.finish(),d}}enqueueEvent(d){if(!this.finished){if(this.eventQueue.length>=this.maxQueue)if(this.overflow==="throw"){let m=new Error(`Watch queue overflow: more than ${this.maxQueue} events queued`);this.finish(m);return}else this.eventQueue.shift(),console.warn(`Watch queue overflow: dropping event due to exceeding maxQueue of ${this.maxQueue}`);if(this.eventQueue.push(d),this.resolveQueue.length>0){let{resolve:m}=this.resolveQueue.shift(),y=this.eventQueue.shift();m({value:y,done:!1})}}}finish(d){if(!this.finished)for(this.finished=!0,this.watcher&&(this.watcher.close(),this.watcher=null);this.resolveQueue.length>0;){let{resolve:m,reject:y}=this.resolveQueue.shift();d?y(d):m({value:void 0,done:!0})}}async next(){return this.finished?{value:void 0,done:!0}:this.eventQueue.length>0?{value:this.eventQueue.shift(),done:!1}:new Promise((d,m)=>{this.resolveQueue.push({resolve:d,reject:m})})}async return(){return this.finish(),{value:void 0,done:!0}}async throw(d){throw this.finish(d),d}[Symbol.asyncIterator](){return this}},l(u,"rw"),u);e(g,"FSWatchAsyncIterator");var a=g,n=(p=class{constructor(d,m){this.fs=d,this.FileHandle=m,this.constants=f.constants,this.cp=(0,i.promisify)(this.fs,"cp"),this.opendir=(0,i.promisify)(this.fs,"opendir"),this.statfs=(0,i.promisify)(this.fs,"statfs"),this.lutimes=(0,i.promisify)(this.fs,"lutimes"),this.glob=(0,i.promisify)(this.fs,"glob"),this.access=(0,i.promisify)(this.fs,"access"),this.chmod=(0,i.promisify)(this.fs,"chmod"),this.chown=(0,i.promisify)(this.fs,"chown"),this.copyFile=(0,i.promisify)(this.fs,"copyFile"),this.lchmod=(0,i.promisify)(this.fs,"lchmod"),this.lchown=(0,i.promisify)(this.fs,"lchown"),this.link=(0,i.promisify)(this.fs,"link"),this.lstat=(0,i.promisify)(this.fs,"lstat"),this.mkdir=(0,i.promisify)(this.fs,"mkdir"),this.mkdtemp=(0,i.promisify)(this.fs,"mkdtemp"),this.readdir=(0,i.promisify)(this.fs,"readdir"),this.readlink=(0,i.promisify)(this.fs,"readlink"),this.realpath=(0,i.promisify)(this.fs,"realpath"),this.rename=(0,i.promisify)(this.fs,"rename"),this.rmdir=(0,i.promisify)(this.fs,"rmdir"),this.rm=(0,i.promisify)(this.fs,"rm"),this.stat=(0,i.promisify)(this.fs,"stat"),this.symlink=(0,i.promisify)(this.fs,"symlink"),this.truncate=(0,i.promisify)(this.fs,"truncate"),this.unlink=(0,i.promisify)(this.fs,"unlink"),this.utimes=(0,i.promisify)(this.fs,"utimes"),this.readFile=(y,w)=>(0,i.promisify)(this.fs,"readFile")(y instanceof this.FileHandle?y.fd:y,w),this.appendFile=(y,w,_)=>(0,i.promisify)(this.fs,"appendFile")(y instanceof this.FileHandle?y.fd:y,w,_),this.open=(y,w="r",_)=>(0,i.promisify)(this.fs,"open",S=>new this.FileHandle(this.fs,S))(y,w,_),this.writeFile=(y,w,_)=>((0,i.isReadableStream)(w)?(0,i.streamToBuffer)(w):Promise.resolve(w)).then(S=>(0,i.promisify)(this.fs,"writeFile")(y instanceof this.FileHandle?y.fd:y,S,_)),this.watch=(y,w)=>{let _=typeof w=="string"?{encoding:w}:w||{};return new a(this.fs,y,_)}}},l(p,"nw"),p);e(n,"FsPromises");var r=n;o.FsPromises=r}),uN=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.printTree=void 0;var i=e((f="",g)=>{let a="",n=g.length-1;for(;n>=0&&!g[n];n--);for(let r=0;r<=n;r++){let u=g[r];if(!u)continue;let p=r===n,c=u(f+(p?" ":"\u2502")+" "),d=c?p?"\u2514\u2500":"\u251C\u2500":"\u2502";a+=`
41
- `+f+d+(c?" "+c:"")}return a},"printTree");o.printTree=i}),cN=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.printBinary=void 0;var i=e((f="",g)=>{let a=g[0],n=g[1],r="";return a&&(r+=`
42
- `+f+"\u2190 "+a(f+" ")),n&&(r+=`
43
- `+f+"\u2192 "+n(f+" ")),r},"printBinary");o.printBinary=i}),hN=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.printJson=void 0;var i=e((f="",g,a=2)=>(JSON.stringify(g,null,a)||"nil").split(`
44
- `).join(`
45
- `+f),"printJson");o.printJson=i}),dN=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0});var i=(Vx(),hr(kE));i.__exportStar(uN(),o),i.__exportStar(cN(),o),i.__exportStar(hN(),o)}),pN=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.newNotAllowedError=o.newTypeMismatchError=o.newNotFoundError=o.assertCanWrite=o.assertName=o.basename=o.ctx=void 0;var i=e((c={})=>({separator:"/",syncHandleAllowed:!1,mode:"read",...c}),"ctx");o.ctx=i;var f=e((c,d)=>{c[c.length-1]===d&&(c=c.slice(0,-1));let m=c.lastIndexOf(d);return m===-1?c:c.slice(m+1)},"basename");o.basename=f;var g=/^(\.{1,2})$|^(.*([\/\\]).*)$/,a=e((c,d,m)=>{if(!c||g.test(c))throw new TypeError(`Failed to execute '${d}' on '${m}': Name is not allowed.`)},"assertName");o.assertName=a;var n=e(c=>{if(c!=="readwrite")throw new DOMException("The request is not allowed by the user agent or the platform in the current context.","NotAllowedError")},"assertCanWrite");o.assertCanWrite=n;var r=e(()=>new DOMException("A requested file or directory could not be found at the time an operation was processed.","NotFoundError"),"newNotFoundError");o.newNotFoundError=r;var u=e(()=>new DOMException("The path supplied exists, but was not an entry of requested type.","TypeMismatchError"),"newTypeMismatchError");o.newTypeMismatchError=u;var p=e(()=>new DOMException("Permission not granted.","NotAllowedError"),"newNotAllowedError");o.newNotAllowedError=p}),gN=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.toTreeSync=void 0;var i=dN(),f=pN(),g=e((a,n={})=>{let r=n.separator||"/",u=n.dir||r;u[u.length-1]!==r&&(u+=r);let p=n.tab||"",c=n.depth??10,d=" (...)";if(c>0){let m=a.readdirSync(u,{withFileTypes:!0});d=(0,i.printTree)(p,m.map(y=>w=>y.isDirectory()?(0,o.toTreeSync)(a,{dir:u+y.name,depth:c-1,tab:w}):y.isSymbolicLink()?""+y.name+" \u2192 "+a.readlinkSync(u+y.name):""+y.name))}return(0,f.basename)(u,r)+r+d},"toTreeSync");o.toTreeSync=g}),yN=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.getWriteFileOptions=o.writeFileDefaults=o.getRealpathOptsAndCb=o.getRealpathOptions=o.getStatfsOptsAndCb=o.getStatfsOptions=o.getStatOptsAndCb=o.getStatOptions=o.getAppendFileOptsAndCb=o.getAppendFileOpts=o.getOpendirOptsAndCb=o.getOpendirOptions=o.getReaddirOptsAndCb=o.getReaddirOptions=o.getReadFileOptions=o.getRmOptsAndCb=o.getRmdirOptions=o.getDefaultOptsAndCb=o.getDefaultOpts=o.optsDefaults=o.getMkdirOptions=void 0,o.getOptions=u,o.optsGenerator=p,o.optsAndCbGenerator=c;var i=mf(),f=Ed(),g=xa(),a={mode:511,recursive:!1},n=e(ee=>typeof ee=="number"?Object.assign({},a,{mode:ee}):Object.assign({},a,ee),"getMkdirOptions");o.getMkdirOptions=n;var r=e(ee=>`Expected options to be either an object or a string, but got ${ee} instead`,"ERRSTR_OPTS");function u(ee,V){let q;if(V){let G=typeof V;switch(G){case"string":q=Object.assign({},ee,{encoding:V});break;case"object":q=Object.assign({},ee,V);break;default:throw TypeError(r(G))}}else return ee;return q.encoding!=="buffer"&&(0,f.assertEncoding)(q.encoding),q}l(u,"$R"),e(u,"getOptions");function p(ee){return V=>u(ee,V)}l(p,"ni"),e(p,"optsGenerator");function c(ee){return(V,q)=>typeof V=="function"?[ee(),V]:[ee(V),(0,g.validateCallback)(q)]}l(c,"Wo"),e(c,"optsAndCbGenerator"),o.optsDefaults={encoding:"utf8"},o.getDefaultOpts=p(o.optsDefaults),o.getDefaultOptsAndCb=c(o.getDefaultOpts);var d={recursive:!1},m=e(ee=>Object.assign({},d,ee),"getRmdirOptions");o.getRmdirOptions=m;var y=p(o.optsDefaults);o.getRmOptsAndCb=c(y);var w={flag:"r"};o.getReadFileOptions=p(w);var _={encoding:"utf8",recursive:!1,withFileTypes:!1};o.getReaddirOptions=p(_),o.getReaddirOptsAndCb=c(o.getReaddirOptions);var S={encoding:"utf8",bufferSize:32,recursive:!1};o.getOpendirOptions=p(S),o.getOpendirOptsAndCb=c(o.getOpendirOptions);var T={encoding:"utf8",mode:438,flag:i.FLAGS[i.FLAGS.a]};o.getAppendFileOpts=p(T),o.getAppendFileOptsAndCb=c(o.getAppendFileOpts);var k={bigint:!1},E=e((ee={})=>Object.assign({},k,ee),"getStatOptions");o.getStatOptions=E;var j=e((ee,V)=>typeof ee=="function"?[(0,o.getStatOptions)(),ee]:[(0,o.getStatOptions)(ee),(0,g.validateCallback)(V)],"getStatOptsAndCb");o.getStatOptsAndCb=j;var A={bigint:!1},I=e((ee={})=>Object.assign({},A,ee),"getStatfsOptions");o.getStatfsOptions=I;var U=e((ee,V)=>typeof ee=="function"?[(0,o.getStatfsOptions)(),ee]:[(0,o.getStatfsOptions)(ee),(0,g.validateCallback)(V)],"getStatfsOptsAndCb");o.getStatfsOptsAndCb=U;var M=o.optsDefaults;o.getRealpathOptions=p(M),o.getRealpathOptsAndCb=c(o.getRealpathOptions),o.writeFileDefaults={encoding:"utf8",mode:438,flag:i.FLAGS[i.FLAGS.w]},o.getWriteFileOptions=p(o.writeFileDefaults)}),mN=Ge(o=>{"use strict";var r;Object.defineProperty(o,"__esModule",{value:!0}),o.Dir=void 0;var i=xa(),f=SE(),g=_d(),a=(r=class{constructor(p,c){this.link=p,this.options=c,this.iteratorInfo=[],this.closed=!1,this.operationQueue=null,this.path=p.getPath(),this.iteratorInfo.push(p.children[Symbol.iterator]())}closeBase(){}readBase(p){let c,d,m,y;do{do if({done:c,value:d}=p[p.length-1].next(),!c)[m,y]=d;else break;while(m==="."||m==="..");if(c){if(p.pop(),p.length===0)break;c=!1}else return this.options.recursive&&y.children.size&&p.push(y.children[Symbol.iterator]()),f.default.build(y,this.options.encoding)}while(!c);return null}close(p){if(p===void 0)return this.closed?Promise.reject(new g.Error("ERR_DIR_CLOSED")):new Promise((c,d)=>{this.close(m=>{m?d(m):c()})});if((0,i.validateCallback)(p),this.closed){process.nextTick(p,new g.Error("ERR_DIR_CLOSED"));return}if(this.operationQueue!==null){this.operationQueue.push(()=>{this.close(p)});return}this.closed=!0;try{this.closeBase(),process.nextTick(p)}catch(c){process.nextTick(p,c)}}closeSync(){if(this.closed)throw new g.Error("ERR_DIR_CLOSED");if(this.operationQueue!==null)throw new g.Error("ERR_DIR_CONCURRENT_OPERATION");this.closed=!0,this.closeBase()}read(p){if(p===void 0)return new Promise((c,d)=>{this.read((m,y)=>{m?d(m):c(y??null)})});if((0,i.validateCallback)(p),this.closed){process.nextTick(p,new g.Error("ERR_DIR_CLOSED"));return}if(this.operationQueue!==null){this.operationQueue.push(()=>{this.read(p)});return}this.operationQueue=[];try{let c=this.readBase(this.iteratorInfo);process.nextTick(()=>{let d=this.operationQueue;this.operationQueue=null;for(let m of d)m();p(null,c)})}catch(c){process.nextTick(()=>{let d=this.operationQueue;this.operationQueue=null;for(let m of d)m();p(c)})}}readSync(){if(this.closed)throw new g.Error("ERR_DIR_CLOSED");if(this.operationQueue!==null)throw new g.Error("ERR_DIR_CONCURRENT_OPERATION");return this.readBase(this.iteratorInfo)}[Symbol.asyncIterator](){return{next:e(async()=>{try{let p=await this.read();return p!==null?{done:!1,value:p}:{done:!0,value:void 0}}catch(p){throw p}},"next"),[Symbol.asyncIterator](){return this}}}},l(r,"sw"),r);e(a,"Dir");var n=a;o.Dir=n}),wN=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.toMatcher=o.toRegex=void 0;var i=e(r=>/[.^$+{}()|\\]/.test(r)?`\\${r}`:r,"escapeRe"),f=e((r,u,p,c)=>{let d=u,m=[],y="",w=1;for(;d<r.length&&w>0;){let T=r[d];if(T==="(")w++,y+=T,d++;else if(T===")")if(w--,w===0){m.push(y),d++;break}else y+=T,d++;else T==="|"&&w===1?(m.push(y),y="",d++):(y+=T,d++)}if(w!==0)return;let _="",S=m.length;for(let T=0;T<S;T++)_+=(_?"|":"")+(0,o.toRegex)(m[T],c).source.replace(/^\^/,"").replace(/\$$/,"");switch(p){case"?":return[`(?:${_})?`,d];case"*":return[`(?:${_})*`,d];case"+":return[`(?:${_})+`,d];case"@":return[`(?:${_})`,d];case"!":return[`(?!${_})[^/]*`,d]}},"parseExtGlob"),g=e((r,u)=>{let p="",c=0,d=e(()=>{c++;let w=[],_="",S=!1;for(;c<r.length;){let T=r[c];if(T==="}"){w.push(_),c++,S=!0;break}if(T===","){w.push(_),_="",c++;continue}_+=T,c++}return S?`(?:${w.map(T=>(0,o.toRegex)(T,u).source.replace(/^\^/,"").replace(/\$$/,"")).join("|")})`:"\\{"+i(_)},"parseBraceGroup"),m=!!u?.extglob;for(;c<r.length;){let w=r[c];if(m&&r[c+1]==="("&&(w==="?"||w==="*"||w==="+"||w==="@"||w==="!")){let _=f(r,c+2,w,u);if(_){p+=_[0],c=_[1];continue}}switch(w){case"*":{if(r[c+1]==="*"){let _=c+2;for(;r[_]==="*";)_++;r[_]==="/"?(p+="(?:.*/)?",c=_+1):(p+=".*",c=_)}else p+="[^/]*",c++;break}case"?":p+="[^/]",c++;break;case"[":{let _="[";for(c++,c<r.length&&r[c]==="!"&&(_+="^",c++),c<r.length&&r[c]==="]"&&(_+="]",c++);c<r.length&&r[c]!=="]";){let S=r[c];_+=S==="\\"?"\\\\":S,c++}if(c<r.length&&r[c]==="]")_+="]",c++;else{p+="\\[";continue}p+=_;break}case"{":{p+=d();break}case"/":p+="/",c++;break;case".":case"^":case"$":case"+":case"(":case")":case"|":case"\\":p+=`\\${w}`,c++;break;default:p+=w,c++;break}}let y=u?.nocase?"i":"";return new RegExp("^"+p+"$",y)},"toRegex");o.toRegex=g;var a=/^\/(.{1,4096})\/([gimsuy]{0,6})$/,n=e((r,u)=>{let p=[],c=Array.isArray(r)?r:[r];for(let d of c)if(typeof d=="string"){let m=a.exec(d);if(m){let[,y,w]=m;p.push(new RegExp(y,w))}else p.push((0,o.toRegex)(d,u))}else p.push(d);return p.length?new Function("p","return "+p.map(d=>d+".test(p)").join("||")):()=>!1},"toMatcher");o.toMatcher=n}),bN=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.globSync=d;var i=yf(),f=wN(),g=xa(),a=i.posix.join,n=i.posix.relative,r=i.posix.resolve;function u(m,y){return(0,f.toRegex)(y).test(m)}l(u,"qR"),e(u,"matchesPattern");function p(m,y){return y?typeof y=="function"?y(m):(Array.isArray(y)?y:[y]).some(w=>u(m,w)):!1}l(p,"Q7"),e(p,"isExcluded");function c(m,y,w,_,S=0){let T=[],k=_.maxdepth??1/0,E=_.cwd?(0,g.pathToFilename)(_.cwd):process.cwd();if(S>k)return T;try{let j=m.readdirSync(y,{withFileTypes:!0});for(let A of j){let I=a(y,A.name.toString()),U=n(E,I);if(!p(U,_.exclude)&&(w.some(M=>u(U,M))&&T.push(U),A.isDirectory()&&S<k)){let M=c(m,I,w,_,S+1);T.push(...M)}}}catch{}return T}l(c,"lw"),e(c,"walkDirectory");function d(m,y,w={}){let _=w.cwd?(0,g.pathToFilename)(w.cwd):process.cwd(),S=r(_),T={cwd:S,exclude:w.exclude,maxdepth:w.maxdepth,withFileTypes:w.withFileTypes||!1},k=[];if(i.posix.isAbsolute(y)){let E=i.posix.dirname(y),j=i.posix.basename(y),A=c(m,E,[j],{...T,cwd:E});k.push(...A.map(I=>i.posix.resolve(E,I)))}else{let E=c(m,S,[y],T);k.push(...E)}return k=[...new Set(k)].sort(),k}l(d,"eq"),e(d,"globSync")}),vN=Ge(o=>{"use strict";var be,ge,Ne;Object.defineProperty(o,"__esModule",{value:!0}),o.FSWatcher=o.StatWatcher=o.Volume=void 0,o.pathToSteps=ue,o.dataToStr=te,o.toUnixTimestamp=X;var i=yf(),f=_L(),g=bx(),a=SE(),n=EL(),r=Ba(),u=r6(),p=SL(),c=oN(),d=$n(),m=Nj(),y=Ed(),w=lN(),_=kx(),S=fN(),T=gN(),k=mf(),E=_d(),j=yN(),A=xa(),I=mN(),U=FE(),M=i.resolve,{O_SYMLINK:ee,F_OK:V,R_OK:q,W_OK:G,X_OK:re,COPYFILE_EXCL:ae,COPYFILE_FICLONE_FORCE:de}=d.constants,we=i.posix?i.posix.sep:i.sep,Ie=i.posix?i.posix.relative:i.relative,je=i.posix?i.posix.join:i.join,se=i.posix?i.posix.dirname:i.dirname,Te=i.posix?i.posix.normalize:i.normalize,J=128;function ue(xe){return(0,U.filenameToSteps)((0,A.pathToFilename)(xe))}l(ue,"gq"),e(ue,"pathToSteps");function te(xe,Oe=y.ENCODING_UTF8){return r.Buffer.isBuffer(xe)?xe.toString(Oe):xe instanceof Uint8Array?(0,r.bufferFrom)(xe).toString(Oe):String(xe)}l(te,"wq"),e(te,"dataToStr");function X(xe){if(typeof xe=="string"&&+xe==xe)return+xe;if(xe instanceof Date)return xe.getTime()/1e3;if(isFinite(xe))return xe<0?Date.now()/1e3:xe;throw new Error("Cannot parse time: "+xe)}l(X,"xr"),e(X,"toUnixTimestamp");function ye(xe){if(typeof xe!="number")throw TypeError(k.ERRSTR.UID)}l(ye,"as"),e(ye,"validateUid");function Re(xe){if(typeof xe!="number")throw TypeError(k.ERRSTR.GID)}l(Re,"ss"),e(Re,"validateGid");var De=(be=class{get promises(){if(this.promisesApi===null)throw new Error("Promise is not supported in this environment.");return this.promisesApi}constructor(Oe=new f.Superblock){this._core=Oe,this.promisesApi=new S.FsPromises(this,w.FileHandle),this.openSync=(v,R,P=438)=>{let C=(0,A.modeToNumber)(P),Z=(0,A.pathToFilename)(v),oe=(0,A.flagsToNumber)(R);return this._core.open(Z,oe,C,!(oe&ee))},this.open=(v,R,P,C)=>{let Z=P,oe=C;typeof P=="function"&&(Z=438,oe=P),Z=Z||438;let Ae=(0,A.modeToNumber)(Z),le=(0,A.pathToFilename)(v),Fe=(0,A.flagsToNumber)(R);this.wrapAsync(this._core.open,[le,Fe,Ae,!(Fe&ee)],oe)},this.closeSync=v=>{this._core.close(v)},this.close=(v,R)=>{(0,U.validateFd)(v);let P=this._core.getFileByFdOrThrow(v,"close");this.wrapAsync(this._core.close,[P.fd],R)},this.readSync=(v,R,P,C,Z)=>((0,U.validateFd)(v),this._core.read(v,R,P,C,Z)),this.read=(v,R,P,C,Z,oe)=>{if((0,A.validateCallback)(oe),C===0)return(0,u.default)(()=>{oe&&oe(null,0,R)});Promise.resolve().then(()=>{try{let Ae=this._core.read(v,R,P,C,Z);oe(null,Ae,R)}catch(Ae){oe(Ae)}})},this.readv=(v,R,P,C)=>{let Z=P,oe=C;typeof P=="function"&&([Z,oe]=[null,P]),(0,A.validateCallback)(oe),Promise.resolve().then(()=>{try{let Ae=this._core.readv(v,R,Z);oe(null,Ae,R)}catch(Ae){oe(Ae)}})},this.readvSync=(v,R,P)=>((0,U.validateFd)(v),this._core.readv(v,R,P??null)),this._readfile=(v,R,P)=>{let C,Z=typeof v=="number"&&(0,U.isFd)(v),oe;if(Z)oe=v;else{let Ae=(0,A.pathToFilename)(v),le=String(v),Fe=le.length>1&&le.endsWith("/"),ie=this._core.getResolvedLinkOrThrow(Ae,"open"),Je=ie.getNode();if(Je.isDirectory())throw(0,A.createError)("EISDIR","open",ie.getPath());if(Fe&&Je.isFile())throw(0,A.createError)("ENOTDIR","open",le);oe=this.openSync(v,R)}try{C=(0,A.bufferToEncoding)(this._core.getFileByFdOrThrow(oe).getBuffer(),P)}finally{Z||this.closeSync(oe)}return C},this.readFileSync=(v,R)=>{let P=(0,j.getReadFileOptions)(R),C=(0,A.flagsToNumber)(P.flag);return this._readfile(v,C,P.encoding)},this.readFile=(v,R,P)=>{let[C,Z]=(0,j.optsAndCbGenerator)(j.getReadFileOptions)(R,P),oe=(0,A.flagsToNumber)(C.flag);this.wrapAsync(this._readfile,[v,oe,C.encoding],Z)},this.writeSync=(v,R,P,C,Z)=>{let[,oe,Ae,le,Fe]=(0,A.getWriteSyncArgs)(v,R,P,C,Z);return this._write(v,oe,Ae,le,Fe)},this.write=(v,R,P,C,Z,oe)=>{let[,Ae,le,Fe,ie,Je,dt]=(0,A.getWriteArgs)(v,R,P,C,Z,oe);Promise.resolve().then(()=>{try{let W=this._write(v,le,Fe,ie,Je);Ae?dt(null,W,R):dt(null,W,le)}catch(W){dt(W)}})},this.writev=(v,R,P,C)=>{let Z=P,oe=C;typeof P=="function"&&([Z,oe]=[null,P]),(0,A.validateCallback)(oe),Promise.resolve().then(()=>{try{let Ae=this.writevBase(v,R,Z);oe(null,Ae,R)}catch(Ae){oe(Ae)}})},this.writevSync=(v,R,P)=>((0,U.validateFd)(v),this.writevBase(v,R,P??null)),this.writeFileSync=(v,R,P)=>{let C=(0,j.getWriteFileOptions)(P),Z=(0,A.flagsToNumber)(C.flag),oe=(0,A.modeToNumber)(C.mode),Ae=(0,U.dataToBuffer)(R,C.encoding);this._core.writeFile(v,Ae,Z,oe)},this.writeFile=(v,R,P,C)=>{let Z=P,oe=C;typeof P=="function"&&([Z,oe]=[j.writeFileDefaults,P]);let Ae=(0,A.validateCallback)(oe),le=(0,j.getWriteFileOptions)(Z),Fe=(0,A.flagsToNumber)(le.flag),ie=(0,A.modeToNumber)(le.mode),Je=(0,U.dataToBuffer)(R,le.encoding);this.wrapAsync(this._core.writeFile,[v,Je,Fe,ie],Ae)},this.copyFileSync=(v,R,P)=>{let C=(0,A.pathToFilename)(v),Z=(0,A.pathToFilename)(R);return this._copyFile(C,Z,(P||0)|0)},this.copyFile=(v,R,P,C)=>{let Z=(0,A.pathToFilename)(v),oe=(0,A.pathToFilename)(R),Ae,le;typeof P=="function"?[Ae,le]=[0,P]:[Ae,le]=[P,C],(0,A.validateCallback)(le),this.wrapAsync(this._copyFile,[Z,oe,Ae],le)},this._cp=(v,R,P)=>{if(P.filter&&!P.filter(v,R))return;let C=P.dereference?this.statSync(v):this.lstatSync(v),Z=null;try{Z=this.lstatSync(R)}catch(oe){if(oe.code!=="ENOENT")throw oe}if(Z&&C.ino===Z.ino&&C.dev===Z.dev)throw(0,A.createError)("EINVAL","cp",v,R);if(Z){if(C.isDirectory()&&!Z.isDirectory())throw(0,A.createError)("EISDIR","cp",v,R);if(!C.isDirectory()&&Z.isDirectory())throw(0,A.createError)("ENOTDIR","cp",v,R)}if(C.isDirectory()&&this.isSrcSubdir(v,R))throw(0,A.createError)("EINVAL","cp",v,R);{let oe=se(R);this.existsSync(oe)||this.mkdirSync(oe,{recursive:!0})}if(C.isDirectory()){if(!P.recursive)throw(0,A.createError)("EISDIR","cp",v);this.cpDirSync(C,Z,v,R,P)}else if(C.isFile()||C.isCharacterDevice()||C.isBlockDevice())this.cpFileSync(C,Z,v,R,P);else if(C.isSymbolicLink()&&!P.dereference)this.cpSymlinkSync(Z,v,R,P);else throw(0,A.createError)("EINVAL","cp",v)},this.linkSync=(v,R)=>{let P=(0,A.pathToFilename)(v),C=(0,A.pathToFilename)(R);this._core.link(P,C)},this.link=(v,R,P)=>{let C=(0,A.pathToFilename)(v),Z=(0,A.pathToFilename)(R);this.wrapAsync(this._core.link,[C,Z],P)},this.unlinkSync=v=>{let R=(0,A.pathToFilename)(v);this._core.unlink(R)},this.unlink=(v,R)=>{let P=(0,A.pathToFilename)(v);this.wrapAsync(this._core.unlink,[P],R)},this.symlinkSync=(v,R,P)=>{let C=(0,A.pathToFilename)(v),Z=(0,A.pathToFilename)(R);this._core.symlink(C,Z)},this.symlink=(v,R,P,C)=>{let Z=(0,A.validateCallback)(typeof P=="function"?P:C),oe=(0,A.pathToFilename)(v),Ae=(0,A.pathToFilename)(R);this.wrapAsync(this._core.symlink,[oe,Ae],Z)},this._lstat=(v,R=!1,P=!1)=>{let C;try{C=this._core.getLinkOrThrow(v,"lstat")}catch(Z){if(Z.code==="ENOENT"&&!P)return;throw Z}return g.default.build(C.getNode(),R)},this.lstatSync=(v,R)=>{let{throwIfNoEntry:P=!0,bigint:C=!1}=(0,j.getStatOptions)(R);return this._lstat((0,A.pathToFilename)(v),C,P)},this.renameSync=(v,R)=>{let P=(0,A.pathToFilename)(v),C=(0,A.pathToFilename)(R);this._core.rename(P,C)},this.rename=(v,R,P)=>{let C=(0,A.pathToFilename)(v),Z=(0,A.pathToFilename)(R);this.wrapAsync(this._core.rename,[C,Z],P)},this.existsSync=v=>{try{return this._exists((0,A.pathToFilename)(v))}catch{return!1}},this.exists=(v,R)=>{let P=(0,A.pathToFilename)(v);if(typeof R!="function")throw Error(k.ERRSTR.CB);Promise.resolve().then(()=>{try{R(this._exists(P))}catch{R(!1)}})},this.accessSync=(v,R=V)=>{let P=(0,A.pathToFilename)(v);R=R|0,this._access(P,R)},this.access=(v,R,P)=>{let C=V,Z;typeof R!="function"?[C,Z]=[R|0,(0,A.validateCallback)(P)]:Z=R;let oe=(0,A.pathToFilename)(v);this.wrapAsync(this._access,[oe,C],Z)},this.appendFileSync=(v,R,P)=>{let C=(0,j.getAppendFileOpts)(P);(!C.flag||(0,U.isFd)(v))&&(C.flag="a"),this.writeFileSync(v,R,C)},this.appendFile=(v,R,P,C)=>{let[Z,oe]=(0,j.getAppendFileOptsAndCb)(P,C);(!Z.flag||(0,U.isFd)(v))&&(Z.flag="a"),this.writeFile(v,R,Z,oe)},this._readdir=(v,R)=>{let P=(0,U.filenameToSteps)(v),C=this._core.getResolvedLinkOrThrow(v,"scandir"),Z=C.getNode();if(!Z.isDirectory())throw(0,A.createError)("ENOTDIR","scandir",v);if(!Z.canRead())throw(0,A.createError)("EACCES","scandir",v);let oe=[];for(let le of C.children.keys()){let Fe=C.getChild(le);if(!(!Fe||le==="."||le==="..")&&(oe.push(a.default.build(Fe,R.encoding)),R.recursive&&Fe.children.size)){let ie={...R,recursive:!0,withFileTypes:!0},Je=this._readdir(Fe.getPath(),ie);oe.push(...Je)}}if(!U.isWin&&R.encoding!=="buffer"&&oe.sort((le,Fe)=>le.name<Fe.name?-1:le.name>Fe.name?1:0),R.withFileTypes)return oe;let Ae=v;return U.isWin&&(Ae=Ae.replace(/\\/g,"/")),oe.map(le=>{if(R.recursive){let Fe=je(le.parentPath,le.name.toString());return U.isWin&&(Fe=Fe.replace(/\\/g,"/")),Fe.replace(Ae+i.posix.sep,"")}return le.name})},this.readdirSync=(v,R)=>{let P=(0,j.getReaddirOptions)(R),C=(0,A.pathToFilename)(v);return this._readdir(C,P)},this.readdir=(v,R,P)=>{let[C,Z]=(0,j.getReaddirOptsAndCb)(R,P),oe=(0,A.pathToFilename)(v);this.wrapAsync(this._readdir,[oe,C],Z)},this._readlink=(v,R)=>{let P=this._core.getLinkOrThrow(v,"readlink").getNode();if(!P.isSymlink())throw(0,A.createError)("EINVAL","readlink",v);return(0,y.strToEncoding)(P.symlink,R)},this.readlinkSync=(v,R)=>{let P=(0,j.getDefaultOpts)(R),C=(0,A.pathToFilename)(v);return this._readlink(C,P.encoding)},this.readlink=(v,R,P)=>{let[C,Z]=(0,j.getDefaultOptsAndCb)(R,P),oe=(0,A.pathToFilename)(v);this.wrapAsync(this._readlink,[oe,C.encoding],Z)},this._fsync=v=>{this._core.getFileByFdOrThrow(v,"fsync")},this.fsyncSync=v=>{this._fsync(v)},this.fsync=(v,R)=>{this.wrapAsync(this._fsync,[v],R)},this._fdatasync=v=>{this._core.getFileByFdOrThrow(v,"fdatasync")},this.fdatasyncSync=v=>{this._fdatasync(v)},this.fdatasync=(v,R)=>{this.wrapAsync(this._fdatasync,[v],R)},this._ftruncate=(v,R)=>{this._core.getFileByFdOrThrow(v,"ftruncate").truncate(R)},this.ftruncateSync=(v,R)=>{this._ftruncate(v,R)},this.ftruncate=(v,R,P)=>{let C=typeof R=="number"?R:0,Z=(0,A.validateCallback)(typeof R=="number"?P:R);this.wrapAsync(this._ftruncate,[v,C],Z)},this._truncate=(v,R)=>{let P=this.openSync(v,"r+");try{this.ftruncateSync(P,R)}finally{this.closeSync(P)}},this.truncateSync=(v,R)=>{if((0,U.isFd)(v))return this.ftruncateSync(v,R);this._truncate(v,R)},this.truncate=(v,R,P)=>{let C=typeof R=="number"?R:0,Z=(0,A.validateCallback)(typeof R=="number"?P:R);if((0,U.isFd)(v))return this.ftruncate(v,C,Z);this.wrapAsync(this._truncate,[v,C],Z)},this._futimes=(v,R,P)=>{let C=this._core.getFileByFdOrThrow(v,"futimes").node;C.atime=new Date(R*1e3),C.mtime=new Date(P*1e3)},this.futimesSync=(v,R,P)=>{this._futimes(v,X(R),X(P))},this.futimes=(v,R,P,C)=>{this.wrapAsync(this._futimes,[v,X(R),X(P)],C)},this._utimes=(v,R,P,C=!0)=>{let Z=this._core,oe=(C?Z.getResolvedLinkOrThrow(v,"utimes"):Z.getLinkOrThrow(v,"lutimes")).getNode();oe.atime=new Date(R*1e3),oe.mtime=new Date(P*1e3)},this.utimesSync=(v,R,P)=>{this._utimes((0,A.pathToFilename)(v),X(R),X(P),!0)},this.utimes=(v,R,P,C)=>{this.wrapAsync(this._utimes,[(0,A.pathToFilename)(v),X(R),X(P),!0],C)},this.lutimesSync=(v,R,P)=>{this._utimes((0,A.pathToFilename)(v),X(R),X(P),!1)},this.lutimes=(v,R,P,C)=>{this.wrapAsync(this._utimes,[(0,A.pathToFilename)(v),X(R),X(P),!1],C)},this.mkdirSync=(v,R)=>{let P=(0,j.getMkdirOptions)(R),C=(0,A.modeToNumber)(P.mode,511),Z=(0,A.pathToFilename)(v);if(P.recursive)return this._core.mkdirp(Z,C);this._core.mkdir(Z,C)},this.mkdir=(v,R,P)=>{let C=(0,j.getMkdirOptions)(R),Z=(0,A.validateCallback)(typeof R=="function"?R:P),oe=(0,A.modeToNumber)(C.mode,511),Ae=(0,A.pathToFilename)(v);C.recursive?this.wrapAsync(this._core.mkdirp,[Ae,oe],Z):this.wrapAsync(this._core.mkdir,[Ae,oe],Z)},this._mkdtemp=(v,R,P=5)=>{let C=v+(0,A.genRndStr6)();try{return this._core.mkdir(C,511),(0,y.strToEncoding)(C,R)}catch(Z){if(Z.code==="EEXIST"){if(P>1)return this._mkdtemp(v,R,P-1);throw Error("Could not create temp dir.")}else throw Z}},this.mkdtempSync=(v,R)=>{let{encoding:P}=(0,j.getDefaultOpts)(R);if(!v||typeof v!="string")throw new TypeError("filename prefix is required");return(0,A.nullCheck)(v),this._mkdtemp(v,P)},this.mkdtemp=(v,R,P)=>{let[{encoding:C},Z]=(0,j.getDefaultOptsAndCb)(R,P);if(!v||typeof v!="string")throw new TypeError("filename prefix is required");(0,A.nullCheck)(v)&&this.wrapAsync(this._mkdtemp,[v,C],Z)},this.rmdirSync=(v,R)=>{let P=(0,j.getRmdirOptions)(R);this._core.rmdir((0,A.pathToFilename)(v),P.recursive)},this.rmdir=(v,R,P)=>{let C=(0,j.getRmdirOptions)(R),Z=(0,A.validateCallback)(typeof R=="function"?R:P);this.wrapAsync(this._core.rmdir,[(0,A.pathToFilename)(v),C.recursive],Z)},this.rmSync=(v,R)=>{this._core.rm((0,A.pathToFilename)(v),R?.force,R?.recursive)},this.rm=(v,R,P)=>{let[C,Z]=(0,j.getRmOptsAndCb)(R,P);this.wrapAsync(this._core.rm,[(0,A.pathToFilename)(v),C?.force,C?.recursive],Z)},this._fchmod=(v,R)=>{this._core.getFileByFdOrThrow(v,"fchmod").chmod(R)},this.fchmodSync=(v,R)=>{this._fchmod(v,(0,A.modeToNumber)(R))},this.fchmod=(v,R,P)=>{this.wrapAsync(this._fchmod,[v,(0,A.modeToNumber)(R)],P)},this._chmod=(v,R,P=!0)=>{(P?this._core.getResolvedLinkOrThrow(v,"chmod"):this._core.getLinkOrThrow(v,"chmod")).getNode().chmod(R)},this.chmodSync=(v,R)=>{let P=(0,A.modeToNumber)(R),C=(0,A.pathToFilename)(v);this._chmod(C,P,!0)},this.chmod=(v,R,P)=>{let C=(0,A.modeToNumber)(R),Z=(0,A.pathToFilename)(v);this.wrapAsync(this._chmod,[Z,C],P)},this._lchmod=(v,R)=>{this._chmod(v,R,!1)},this.lchmodSync=(v,R)=>{let P=(0,A.modeToNumber)(R),C=(0,A.pathToFilename)(v);this._lchmod(C,P)},this.lchmod=(v,R,P)=>{let C=(0,A.modeToNumber)(R),Z=(0,A.pathToFilename)(v);this.wrapAsync(this._lchmod,[Z,C],P)},this._fchown=(v,R,P)=>{this._core.getFileByFdOrThrow(v,"fchown").chown(R,P)},this.fchownSync=(v,R,P)=>{ye(R),Re(P),this._fchown(v,R,P)},this.fchown=(v,R,P,C)=>{ye(R),Re(P),this.wrapAsync(this._fchown,[v,R,P],C)},this._chown=(v,R,P)=>{this._core.getResolvedLinkOrThrow(v,"chown").getNode().chown(R,P)},this.chownSync=(v,R,P)=>{ye(R),Re(P),this._chown((0,A.pathToFilename)(v),R,P)},this.chown=(v,R,P,C)=>{ye(R),Re(P),this.wrapAsync(this._chown,[(0,A.pathToFilename)(v),R,P],C)},this._lchown=(v,R,P)=>{this._core.getLinkOrThrow(v,"lchown").getNode().chown(R,P)},this.lchownSync=(v,R,P)=>{ye(R),Re(P),this._lchown((0,A.pathToFilename)(v),R,P)},this.lchown=(v,R,P,C)=>{ye(R),Re(P),this.wrapAsync(this._lchown,[(0,A.pathToFilename)(v),R,P],C)},this.statWatchers={},this.cpSync=(v,R,P)=>{let C=(0,A.pathToFilename)(v),Z=(0,A.pathToFilename)(R),oe={dereference:P?.dereference??!1,errorOnExist:P?.errorOnExist??!1,filter:P?.filter,force:P?.force??!0,mode:P?.mode??0,preserveTimestamps:P?.preserveTimestamps??!1,recursive:P?.recursive??!1,verbatimSymlinks:P?.verbatimSymlinks??!1};return this._cp(C,Z,oe)},this.cp=(v,R,P,C)=>{let Z=(0,A.pathToFilename)(v),oe=(0,A.pathToFilename)(R),Ae,le;typeof P=="function"?[Ae,le]=[{},P]:[Ae,le]=[P||{},C],(0,A.validateCallback)(le);let Fe={dereference:Ae?.dereference??!1,errorOnExist:Ae?.errorOnExist??!1,filter:Ae?.filter,force:Ae?.force??!0,mode:Ae?.mode??0,preserveTimestamps:Ae?.preserveTimestamps??!1,recursive:Ae?.recursive??!1,verbatimSymlinks:Ae?.verbatimSymlinks??!1};this.wrapAsync(this._cp,[Z,oe,Fe],le)},this.openAsBlob=async(v,R)=>{let P=(0,A.pathToFilename)(v),C;try{C=this._core.getResolvedLinkOrThrow(P,"open")}catch(Ae){throw Ae&&typeof Ae=="object"&&Ae.code==="ENOENT"?new E.TypeError("ERR_INVALID_ARG_VALUE"):Ae}let Z=C.getNode().getBuffer(),oe=R?.type||"";return new Blob([Z],{type:oe})},this.glob=(v,...R)=>{let[P,C]=R.length===1?[{},R[0]]:[R[0],R[1]];this.wrapAsync(this._globSync,[v,P||{}],C)},this.globSync=(v,R={})=>this._globSync(v,R),this._globSync=(v,R={})=>{let{globSync:P}=bN();return P(this,v,R)},this._opendir=(v,R)=>{let P=this._core.getResolvedLinkOrThrow(v,"scandir");if(!P.getNode().isDirectory())throw(0,A.createError)("ENOTDIR","scandir",v);return new I.Dir(P,R)},this.opendirSync=(v,R)=>{let P=(0,j.getOpendirOptions)(R),C=(0,A.pathToFilename)(v);return this._opendir(C,P)},this.opendir=(v,R,P)=>{let[C,Z]=(0,j.getOpendirOptsAndCb)(R,P),oe=(0,A.pathToFilename)(v);this.wrapAsync(this._opendir,[oe,C],Z)};let Pe=this;this.StatWatcher=class extends fe{constructor(){super(Pe)}};let $e=x;this.ReadStream=class extends $e{constructor(...v){super(Pe,...v)}};let Ke=z;this.WriteStream=class extends Ke{constructor(...v){super(Pe,...v)}},this.FSWatcher=class extends ke{constructor(){super(Pe)}};let t=e((v,R)=>{let P=this._core.getResolvedLinkOrThrow(v,"realpath");return(0,y.strToEncoding)(P.getPath()||"/",R)},"_realpath"),s=e((v,R,P)=>{let[C,Z]=(0,j.getRealpathOptsAndCb)(R,P),oe=(0,A.pathToFilename)(v);Pe.wrapAsync(t,[oe,C.encoding],Z)},"realpathImpl"),h=e((v,R)=>t((0,A.pathToFilename)(v),(0,j.getRealpathOptions)(R).encoding),"realpathSyncImpl");this.realpath=s,this.realpath.native=s,this.realpathSync=h,this.realpathSync.native=h}wrapAsync(Oe,Pe,$e){(0,A.validateCallback)($e),Promise.resolve().then(()=>{let Ke;try{Ke=Oe.apply(this,Pe)}catch(t){$e(t);return}$e(null,Ke)})}toTree(Oe={separator:i.sep}){return(0,T.toTreeSync)(this,Oe)}reset(){this._core.reset()}toJSON(Oe,Pe={},$e=!1,Ke=!1){return this._core.toJSON(Oe,Pe,$e,Ke)}fromJSON(Oe,Pe){return this._core.fromJSON(Oe,Pe)}fromNestedJSON(Oe,Pe){return this._core.fromNestedJSON(Oe,Pe)}mountSync(Oe,Pe){this._core.fromJSON(Pe,Oe)}_write(Oe,Pe,$e,Ke,t){let s=this._core.getFileByFdOrThrow(Oe,"write");if(s.node.isSymlink())throw(0,A.createError)("EBADF","write",s.link.getPath());return s.write(Pe,$e,Ke,t===-1||typeof t!="number"?void 0:t)}writevBase(Oe,Pe,$e){let Ke=this._core.getFileByFdOrThrow(Oe),t=$e??void 0;t===-1&&(t=void 0);let s=0;for(let h of Pe){let v=r.Buffer.from(h.buffer,h.byteOffset,h.byteLength),R=Ke.write(v,0,v.byteLength,t);if(t=void 0,s+=R,R<v.byteLength)break}return s}_copyFile(Oe,Pe,$e){let Ke=this.readFileSync(Oe);if($e&ae&&this.existsSync(Pe))throw(0,A.createError)("EEXIST","copyFile",Oe,Pe);if($e&de)throw(0,A.createError)("ENOSYS","copyFile",Oe,Pe);this._core.writeFile(Pe,Ke,k.FLAGS.w,438)}isSrcSubdir(Oe,Pe){try{let $e=Te(Oe.startsWith("/")?Oe:"/"+Oe),Ke=Te(Pe.startsWith("/")?Pe:"/"+Pe);if($e===Ke)return!0;let t=Ie($e,Ke);return t===""||!t.startsWith("..")&&!(0,i.isAbsolute)(t)}catch{return!1}}cpFileSync(Oe,Pe,$e,Ke,t){if(Pe){if(t.errorOnExist)throw(0,A.createError)("EEXIST","cp",Ke);if(!t.force)return;this.unlinkSync(Ke)}this.copyFileSync($e,Ke,t.mode),t.preserveTimestamps&&this.utimesSync(Ke,Oe.atime,Oe.mtime),this.chmodSync(Ke,Number(Oe.mode))}cpDirSync(Oe,Pe,$e,Ke,t){Pe||this.mkdirSync(Ke);let s=this.readdirSync($e);for(let h of s){let v=je($e,String(h)),R=je(Ke,String(h));t.filter&&!t.filter(v,R)||this._cp(v,R,t)}this.chmodSync(Ke,Number(Oe.mode))}cpSymlinkSync(Oe,Pe,$e,Ke){let t=String(this.readlinkSync(Pe));!Ke.verbatimSymlinks&&!(0,i.isAbsolute)(t)&&(t=M(se(Pe),t)),Oe&&this.unlinkSync($e),this.symlinkSync(t,$e)}lstat(Oe,Pe,$e){let[{throwIfNoEntry:Ke=!0,bigint:t=!1},s]=(0,j.getStatOptsAndCb)(Pe,$e);this.wrapAsync(this._lstat,[(0,A.pathToFilename)(Oe),t,Ke],s)}_stat(Oe,Pe=!1,$e=!0){let Ke;try{Ke=this._core.getResolvedLinkOrThrow(Oe,"stat")}catch(t){if(t.code==="ENOENT"&&!$e)return;throw t}return g.default.build(Ke.getNode(),Pe)}statSync(Oe,Pe){let{bigint:$e=!0,throwIfNoEntry:Ke=!0}=(0,j.getStatOptions)(Pe);return this._stat((0,A.pathToFilename)(Oe),$e,Ke)}stat(Oe,Pe,$e){let[{bigint:Ke=!1,throwIfNoEntry:t=!0},s]=(0,j.getStatOptsAndCb)(Pe,$e);this.wrapAsync(this._stat,[(0,A.pathToFilename)(Oe),Ke,t],s)}fstatBase(Oe,Pe=!1){let $e=this._core.getFileByFd(Oe);if(!$e)throw(0,A.createError)("EBADF","fstat");return g.default.build($e.node,Pe)}fstatSync(Oe,Pe){return this.fstatBase(Oe,(0,j.getStatOptions)(Pe).bigint)}fstat(Oe,Pe,$e){let[Ke,t]=(0,j.getStatOptsAndCb)(Pe,$e);this.wrapAsync(this.fstatBase,[Oe,Ke.bigint],t)}_exists(Oe){return!!this._stat(Oe)}_access(Oe,Pe){let $e=this._core.getLinkOrThrow(Oe,"access").getNode();if(Pe!==V&&(Pe&q&&!$e.canRead()||Pe&G&&!$e.canWrite()||Pe&re&&!$e.canExecute()))throw(0,A.createError)("EACCES","access",Oe)}watchFile(Oe,Pe,$e){let Ke=(0,A.pathToFilename)(Oe),t=Pe,s=$e;if(typeof t=="function"&&(s=Pe,t=null),typeof s!="function")throw Error('"watchFile()" requires a listener function');let h=5007,v=!0;t&&typeof t=="object"&&(typeof t.interval=="number"&&(h=t.interval),typeof t.persistent=="boolean"&&(v=t.persistent));let R=this.statWatchers[Ke];return R||(R=new this.StatWatcher,R.start(Ke,v,h),this.statWatchers[Ke]=R),R.addListener("change",s),R}unwatchFile(Oe,Pe){let $e=(0,A.pathToFilename)(Oe),Ke=this.statWatchers[$e];Ke&&(typeof Pe=="function"?Ke.removeListener("change",Pe):Ke.removeAllListeners("change"),Ke.listenerCount("change")===0&&(Ke.stop(),delete this.statWatchers[$e]))}createReadStream(Oe,Pe){return new this.ReadStream(Oe,Pe)}createWriteStream(Oe,Pe){return new this.WriteStream(Oe,Pe)}watch(Oe,Pe,$e){let Ke=(0,A.pathToFilename)(Oe),t=Pe;typeof Pe=="function"&&($e=Pe,t=null);let{persistent:s,recursive:h,encoding:v}=(0,j.getDefaultOpts)(t);s===void 0&&(s=!0),h===void 0&&(h=!1);let R=new this.FSWatcher;return R.start(Ke,s,h,v),$e&&R.addListener("change",$e),R}_statfs(Oe,Pe=!1){return this._core.getResolvedLinkOrThrow(Oe,"statfs"),n.default.build(this._core,Pe)}statfsSync(Oe,Pe){let{bigint:$e=!1}=(0,j.getStatfsOptions)(Pe);return this._statfs((0,A.pathToFilename)(Oe),$e)}statfs(Oe,Pe,$e){let[{bigint:Ke=!1},t]=(0,j.getStatfsOptsAndCb)(Pe,$e);this.wrapAsync(this._statfs,[(0,A.pathToFilename)(Oe),Ke],t)}},l(be,"pw"),be);e(De,"Volume");var Y=De;o.Volume=Y,Y.fromJSON=(xe,Oe)=>new Y(f.Superblock.fromJSON(xe,Oe)),Y.fromNestedJSON=(xe,Oe)=>new Y(f.Superblock.fromNestedJSON(xe,Oe));function H(xe){xe.emit("stop")}l(H,"vq"),e(H,"emitStop");var Q=(ge=class extends m.EventEmitter{constructor(Oe){super(),this.onInterval=()=>{try{let Pe=this.vol.statSync(this.filename);this.hasChanged(Pe)&&(this.emit("change",Pe,this.prev),this.prev=Pe)}finally{this.loop()}},this.vol=Oe}loop(){this.timeoutRef=this.setTimeout(this.onInterval,this.interval)}hasChanged(Oe){return Oe.mtimeMs>this.prev.mtimeMs||Oe.nlink!==this.prev.nlink}start(Oe,Pe=!0,$e=5007){this.filename=(0,A.pathToFilename)(Oe),this.setTimeout=Pe?setTimeout.bind(globalThis):p.default,this.interval=$e,this.prev=this.vol.statSync(this.filename),this.loop()}stop(){clearTimeout(this.timeoutRef),(0,u.default)(()=>{H.call(this,this)})}},l(ge,"yw"),ge);e(Q,"StatWatcher");var fe=Q;o.StatWatcher=fe;var ve;function N(xe){ve=(0,r.bufferAllocUnsafe)(xe),ve.used=0}l(N,"bq"),e(N,"allocNewPool"),(0,_.inherits)(x,c.Readable),o.ReadStream=x;function x(xe,Oe,Pe){if(!(this instanceof x))return new x(xe,Oe,Pe);if(this._vol=xe,Pe=Object.assign({},(0,j.getOptions)(Pe,{})),Pe.highWaterMark===void 0&&(Pe.highWaterMark=64*1024),c.Readable.call(this,Pe),this.path=(0,A.pathToFilename)(Oe),this.fd=Pe.fd===void 0?null:typeof Pe.fd!="number"?Pe.fd.fd:Pe.fd,this.flags=Pe.flags===void 0?"r":Pe.flags,this.mode=Pe.mode===void 0?438:Pe.mode,this.start=Pe.start,this.end=Pe.end,this.autoClose=Pe.autoClose===void 0?!0:Pe.autoClose,this.pos=void 0,this.bytesRead=0,this.start!==void 0){if(typeof this.start!="number")throw new TypeError('"start" option must be a Number');if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw new TypeError('"end" option must be a Number');if(this.start>this.end)throw new Error('"start" option must be <= "end" option');this.pos=this.start}typeof this.fd!="number"&&this.open(),this.on("end",function(){this.autoClose&&this.destroy&&this.destroy()})}l(x,"Sn"),e(x,"FsReadStream"),x.prototype.open=function(){var xe=this;this._vol.open(this.path,this.flags,this.mode,(Oe,Pe)=>{if(Oe){xe.autoClose&&xe.destroy&&xe.destroy(),xe.emit("error",Oe);return}xe.fd=Pe,xe.emit("open",Pe),xe.read()})},x.prototype._read=function(xe){if(typeof this.fd!="number")return this.once("open",function(){this._read(xe)});if(this.destroyed)return;(!ve||ve.length-ve.used<J)&&N(this._readableState.highWaterMark);var Oe=ve,Pe=Math.min(ve.length-ve.used,xe),$e=ve.used;if(this.pos!==void 0&&(Pe=Math.min(this.end-this.pos+1,Pe)),Pe<=0)return this.push(null);var Ke=this;this._vol.read(this.fd,ve,ve.used,Pe,this.pos,t),this.pos!==void 0&&(this.pos+=Pe),ve.used+=Pe;function t(s,h){if(s)Ke.autoClose&&Ke.destroy&&Ke.destroy(),Ke.emit("error",s);else{var v=null;h>0&&(Ke.bytesRead+=h,v=Oe.slice($e,$e+h)),Ke.push(v)}}l(t,"s"),e(t,"onread")},x.prototype._destroy=function(xe,Oe){this.close(Pe=>{Oe(xe||Pe)})},x.prototype.close=function(xe){if(xe&&this.once("close",xe),this.closed||typeof this.fd!="number"){if(typeof this.fd!="number"){this.once("open",D);return}return(0,u.default)(()=>this.emit("close"))}typeof this._readableState?.closed=="boolean"?this._readableState.closed=!0:this.closed=!0,this._vol.close(this.fd,Oe=>{Oe?this.emit("error",Oe):this.emit("close")}),this.fd=null};function D(xe){this.close()}l(D,"JR"),e(D,"closeOnOpen"),(0,_.inherits)(z,c.Writable),o.WriteStream=z;function z(xe,Oe,Pe){if(!(this instanceof z))return new z(xe,Oe,Pe);if(this._vol=xe,Pe=Object.assign({},(0,j.getOptions)(Pe,{})),c.Writable.call(this,Pe),this.path=(0,A.pathToFilename)(Oe),this.fd=Pe.fd===void 0?null:typeof Pe.fd!="number"?Pe.fd.fd:Pe.fd,this.flags=Pe.flags===void 0?"w":Pe.flags,this.mode=Pe.mode===void 0?438:Pe.mode,this.start=Pe.start,this.autoClose=Pe.autoClose===void 0?!0:!!Pe.autoClose,this.pos=void 0,this.bytesWritten=0,this.pending=!0,this.start!==void 0){if(typeof this.start!="number")throw new TypeError('"start" option must be a Number');if(this.start<0)throw new Error('"start" must be >= zero');this.pos=this.start}Pe.encoding&&this.setDefaultEncoding(Pe.encoding),typeof this.fd!="number"&&this.open(),this.once("finish",function(){this.autoClose&&this.close()})}l(z,"Gr"),e(z,"FsWriteStream"),z.prototype.open=function(){this._vol.open(this.path,this.flags,this.mode,function(xe,Oe){if(xe){this.autoClose&&this.destroy&&this.destroy(),this.emit("error",xe);return}this.fd=Oe,this.pending=!1,this.emit("open",Oe)}.bind(this))},z.prototype._write=function(xe,Oe,Pe){if(!(xe instanceof r.Buffer||xe instanceof Uint8Array))return this.emit("error",new Error("Invalid data"));if(typeof this.fd!="number")return this.once("open",function(){this._write(xe,Oe,Pe)});var $e=this;this._vol.write(this.fd,xe,0,xe.length,this.pos,(Ke,t)=>{if(Ke)return $e.autoClose&&$e.destroy&&$e.destroy(),Pe(Ke);$e.bytesWritten+=t,Pe()}),this.pos!==void 0&&(this.pos+=xe.length)},z.prototype._writev=function(xe,Oe){if(typeof this.fd!="number")return this.once("open",function(){this._writev(xe,Oe)});let Pe=this,$e=xe.length,Ke=new Array($e);for(var t=0,s=0;s<$e;s++){var h=xe[s].chunk;Ke[s]=h,t+=h.length}let v=r.Buffer.concat(Ke);this._vol.write(this.fd,v,0,v.length,this.pos,(R,P)=>{if(R)return Pe.destroy&&Pe.destroy(),Oe(R);Pe.bytesWritten+=P,Oe()}),this.pos!==void 0&&(this.pos+=t)},z.prototype.close=function(xe){if(xe&&this.once("close",xe),this.closed||typeof this.fd!="number"){if(typeof this.fd!="number"){this.once("open",D);return}return(0,u.default)(()=>this.emit("close"))}typeof this._writableState?.closed=="boolean"?this._writableState.closed=!0:this.closed=!0,this._vol.close(this.fd,Oe=>{Oe?this.emit("error",Oe):this.emit("close")}),this.fd=null},z.prototype._destroy=x.prototype._destroy,z.prototype.destroySoon=z.prototype.end;var Ee=(Ne=class extends m.EventEmitter{constructor(Oe){super(),this._filename="",this._filenameEncoded="",this._recursive=!1,this._encoding=y.ENCODING_UTF8,this._listenerRemovers=new Map,this._onParentChild=Pe=>{Pe.getName()===this._getName()&&this._emit("rename")},this._emit=Pe=>{this.emit("change",Pe,this._filenameEncoded)},this._persist=()=>{this._timer=setTimeout(this._persist,1e6)},this._vol=Oe}_getName(){return this._steps[this._steps.length-1]}start(Oe,Pe=!0,$e=!1,Ke=y.ENCODING_UTF8){this._filename=(0,A.pathToFilename)(Oe),this._steps=(0,U.filenameToSteps)(this._filename),this._filenameEncoded=(0,y.strToEncoding)(this._filename),this._recursive=$e,this._encoding=Ke;try{this._link=this._vol._core.getLinkOrThrow(this._filename,"FSWatcher")}catch(v){let R=new Error(`watch ${this._filename} ${v.code}`);throw R.code=v.code,R.errno=v.code,R}let t=e(v=>{let R=v.getPath(),P=v.getNode(),C=e(()=>{let Ae=Ie(this._filename,R);return Ae||(Ae=this._getName()),this.emit("change","change",Ae)},"onNodeChange"),Z=P.changes.listen(([Ae])=>{Ae==="modify"&&C()}),oe=this._listenerRemovers.get(P.ino)??[];oe.push(()=>Z()),this._listenerRemovers.set(P.ino,oe)},"watchLinkNodeChanged"),s=e(v=>{let R=v.getNode(),P=e(oe=>{this.emit("change","rename",Ie(this._filename,oe.getPath())),t(oe),s(oe)},"onLinkChildAdd"),C=e(oe=>{let Ae=e(le=>{let Fe=le.getNode().ino,ie=this._listenerRemovers.get(Fe);ie&&(ie.forEach(Je=>Je()),this._listenerRemovers.delete(Fe));for(let[Je,dt]of le.children.entries())dt&&Je!=="."&&Je!==".."&&Ae(dt)},"removeLinkNodeListeners");Ae(oe),this.emit("change","rename",Ie(this._filename,oe.getPath()))},"onLinkChildDelete");for(let[oe,Ae]of v.children.entries())Ae&&oe!=="."&&oe!==".."&&t(Ae);let Z=v.changes.listen(([oe,Ae])=>{oe==="child:add"?P(Ae):oe==="child:del"&&C(Ae)});if((this._listenerRemovers.get(R.ino)??[]).push(()=>{Z()}),$e)for(let[oe,Ae]of v.children.entries())Ae&&oe!=="."&&oe!==".."&&s(Ae)},"watchLinkChildrenChanged");t(this._link),s(this._link);let h=this._link.parent;h&&h.changes.listen(([v,R])=>{v==="child:del"&&this._onParentChild(R)}),Pe&&this._persist()}close(){clearTimeout(this._timer),this._listenerRemovers.forEach(Oe=>{Oe.forEach(Pe=>Pe())}),this._listenerRemovers.clear(),this._parentChangesUnsub?.()}},l(Ne,"mw"),Ne);e(Ee,"FSWatcher");var ke=Ee;o.FSWatcher=ke}),_N=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.fsSynchronousApiList=void 0,o.fsSynchronousApiList=["accessSync","appendFileSync","chmodSync","chownSync","closeSync","copyFileSync","existsSync","fchmodSync","fchownSync","fdatasyncSync","fstatSync","fsyncSync","ftruncateSync","futimesSync","lchmodSync","lchownSync","linkSync","lstatSync","mkdirSync","mkdtempSync","openSync","opendirSync","readdirSync","readFileSync","readlinkSync","readSync","readvSync","realpathSync","renameSync","rmdirSync","rmSync","statSync","symlinkSync","truncateSync","unlinkSync","utimesSync","lutimesSync","writeFileSync","writeSync","writevSync"]}),EN=Ge(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.fsCallbackApiList=void 0,o.fsCallbackApiList=["access","appendFile","chmod","chown","close","copyFile","cp","createReadStream","createWriteStream","exists","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","openAsBlob","opendir","read","readv","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","statfs","symlink","truncate","unlink","unwatchFile","utimes","lutimes","watch","watchFile","write","writev","writeFile"]}),Ef=Ge((o,i)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.memfs=o.fs=o.vol=o.Volume=void 0,o.createFsFromVolume=y;var f=bx(),g=SE(),a=vN();Object.defineProperty(o,"Volume",{enumerable:!0,get:e(function(){return a.Volume},"get")});var n=$n(),r=_N(),u=EN(),{F_OK:p,R_OK:c,W_OK:d,X_OK:m}=n.constants;o.vol=new a.Volume;function y(_){let S={F_OK:p,R_OK:c,W_OK:d,X_OK:m,constants:n.constants,Stats:f.default,Dirent:g.default};for(let T of r.fsSynchronousApiList)typeof _[T]=="function"&&(S[T]=_[T].bind(_));for(let T of u.fsCallbackApiList)typeof _[T]=="function"&&(S[T]=_[T].bind(_));return S.StatWatcher=_.StatWatcher,S.FSWatcher=_.FSWatcher,S.WriteStream=_.WriteStream,S.ReadStream=_.ReadStream,S.promises=_.promises,typeof _.realpath=="function"&&(S.realpath=_.realpath.bind(_),typeof _.realpath.native=="function"&&(S.realpath.native=_.realpath.native.bind(_))),typeof _.realpathSync=="function"&&(S.realpathSync=_.realpathSync.bind(_),typeof _.realpathSync.native=="function"&&(S.realpathSync.native=_.realpathSync.native.bind(_))),S._toUnixTimestamp=a.toUnixTimestamp,S.__vol=_,S}l(y,"gw"),e(y,"createFsFromVolume"),o.fs=y(o.vol);var w=e((_={},S="/")=>{let T=a.Volume.fromNestedJSON(_,S);return{fs:y(T),vol:T}},"memfs");o.memfs=w,i.exports={...i.exports,...o.fs},i.exports.semantic=!0}),Dj=Ge((o,i)=>{var Q,fe,ve;function f(N){return Array.isArray(N)?N:[N]}l(f,"iT"),e(f,"makeArray");var g=void 0,a="",n=" ",r="\\",u=/^\s+$/,p=/(?:[^\\]|^)\\$/,c=/^\\!/,d=/^\\#/,m=/\r?\n/g,y=/^\.{0,2}\/|^\.{1,2}$/,w=/\/$/,_="/",S="node-ignore";typeof Symbol<"u"&&(S=Symbol.for("node-ignore"));var T=S,k=e((N,x,D)=>(Object.defineProperty(N,x,{value:D}),D),"define"),E=/([0-z])-([0-z])/g,j=e(()=>!1,"RETURN_FALSE"),A=e(N=>N.replace(E,(x,D,z)=>D.charCodeAt(0)<=z.charCodeAt(0)?x:a),"sanitizeRange"),I=e(N=>{let{length:x}=N;return N.slice(0,x-x%2)},"cleanRangeBackSlash"),U=[[/^\uFEFF/,()=>a],[/((?:\\\\)*?)(\\?\s+)$/,(N,x,D)=>x+(D.indexOf("\\")===0?n:a)],[/(\\+?)\s/g,(N,x)=>{let{length:D}=x;return x.slice(0,D-D%2)+n}],[/[\\$.|*+(){^]/g,N=>`\\${N}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,e(function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"},"startingReplacer")],[/\\\/\\\*\\\*(?=\\\/|$)/g,(N,x,D)=>x+6<D.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(N,x,D)=>{let z=D.replace(/\\\*/g,"[^\\/]*");return x+z}],[/\\\\\\(?=[$.|*+(){^])/g,()=>r],[/\\\\/g,()=>r],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(N,x,D,z,Ee)=>x===r?`\\[${D}${I(z)}${Ee}`:Ee==="]"&&z.length%2===0?`[${A(D)}${z}]`:"[]"],[/(?:[^*])$/,N=>/\/$/.test(N)?`${N}$`:`${N}(?=$|\\/$)`]],M=/(^|\\\/)?\\\*$/,ee="regex",V="checkRegex",q="_",G={[ee](N,x){return`${x?`${x}[^/]+`:"[^/]*"}(?=$|\\/$)`},[V](N,x){return`${x?`${x}[^/]*`:"[^/]*"}(?=$|\\/$)`}},re=e(N=>U.reduce((x,[D,z])=>x.replace(D,z.bind(N)),N),"makeRegexPrefix"),ae=e(N=>typeof N=="string","isString"),de=e(N=>N&&ae(N)&&!u.test(N)&&!p.test(N)&&N.indexOf("#")!==0,"checkPattern"),we=e(N=>N.split(m).filter(Boolean),"splitPattern"),Ie=(Q=class{constructor(x,D,z,Ee,ke,be){this.pattern=x,this.mark=D,this.negative=ke,k(this,"body",z),k(this,"ignoreCase",Ee),k(this,"regexPrefix",be)}get regex(){let x=q+ee;return this[x]?this[x]:this._make(ee,x)}get checkRegex(){let x=q+V;return this[x]?this[x]:this._make(V,x)}_make(x,D){let z=this.regexPrefix.replace(M,G[x]),Ee=this.ignoreCase?new RegExp(z,"i"):new RegExp(z);return k(this,D,Ee)}},l(Q,"xw"),Q);e(Ie,"IgnoreRule");var je=Ie,se=e(({pattern:N,mark:x},D)=>{let z=!1,Ee=N;Ee.indexOf("!")===0&&(z=!0,Ee=Ee.substr(1)),Ee=Ee.replace(c,"!").replace(d,"#");let ke=re(Ee);return new je(N,x,Ee,D,z,ke)},"createRule"),Te=(fe=class{constructor(x){this._ignoreCase=x,this._rules=[]}_add(x){if(x&&x[T]){this._rules=this._rules.concat(x._rules._rules),this._added=!0;return}if(ae(x)&&(x={pattern:x}),de(x.pattern)){let D=se(x,this._ignoreCase);this._added=!0,this._rules.push(D)}}add(x){return this._added=!1,f(ae(x)?we(x):x).forEach(this._add,this),this._added}test(x,D,z){let Ee=!1,ke=!1,be;this._rules.forEach(Ne=>{let{negative:xe}=Ne;ke===xe&&Ee!==ke||xe&&!Ee&&!ke&&!D||!Ne[z].test(x)||(Ee=!xe,ke=xe,be=xe?g:Ne)});let ge={ignored:Ee,unignored:ke};return be&&(ge.rule=be),ge}},l(fe,"Ow"),fe);e(Te,"RuleManager");var J=Te,ue=e((N,x)=>{throw new x(N)},"throwError"),te=e((N,x,D)=>ae(N)?N?te.isNotRelative(N)?D(`path should be a \`path.relative()\`d string, but got "${x}"`,RangeError):!0:D("path must not be empty",TypeError):D(`path must be a string, but got \`${x}\``,TypeError),"checkPath"),X=e(N=>y.test(N),"isNotRelative");te.isNotRelative=X,te.convert=N=>N;var ye=(ve=class{constructor({ignorecase:x=!0,ignoreCase:D=x,allowRelativePaths:z=!1}={}){k(this,T,!0),this._rules=new J(D),this._strictPathCheck=!z,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}add(x){return this._rules.add(x)&&this._initCache(),this}addPattern(x){return this.add(x)}_test(x,D,z,Ee){let ke=x&&te.convert(x);return te(ke,x,this._strictPathCheck?ue:j),this._t(ke,D,z,Ee)}checkIgnore(x){if(!w.test(x))return this.test(x);let D=x.split(_).filter(Boolean);if(D.pop(),D.length){let z=this._t(D.join(_)+_,this._testCache,!0,D);if(z.ignored)return z}return this._rules.test(x,!1,V)}_t(x,D,z,Ee){if(x in D)return D[x];if(Ee||(Ee=x.split(_).filter(Boolean)),Ee.pop(),!Ee.length)return D[x]=this._rules.test(x,z,ee);let ke=this._t(Ee.join(_)+_,D,z,Ee);return D[x]=ke.ignored?ke:this._rules.test(x,z,ee)}ignores(x){return this._test(x,this._ignoreCache,!1).ignored}createFilter(){return x=>!this.ignores(x)}filter(x){return f(x).filter(this.createFilter())}test(x){return this._test(x,this._testCache,!0)}},l(ve,"Iw"),ve);e(ye,"Ignore");var Re=ye,De=e(N=>new Re(N),"factory"),Y=e(N=>te(N&&te.convert(N),N,j),"isPathValid"),H=e(()=>{let N=e(D=>/^\\\\\?\\/.test(D)||/["<>|\u0000-\u001F]+/u.test(D)?D:D.replace(/\\/g,"/"),"makePosix");te.convert=N;let x=/^[a-z]:\//i;te.isNotRelative=D=>x.test(D)||X(D)},"setupWindows");typeof process<"u"&&process.platform==="win32"&&H(),i.exports=De,De.default=De,i.exports.isPathValid=Y,k(i.exports,Symbol.for("setupWindows"),H)}),SN=Ge((o,i)=>{"use strict";var f=e(function(g){if(g=g||{},this.Promise=g.Promise||Promise,this.queues=Object.create(null),this.domainReentrant=g.domainReentrant||!1,this.domainReentrant){if(typeof process>"u"||typeof process.domain>"u")throw new Error("Domain-reentrant locks require `process.domain` to exist. Please flip `opts.domainReentrant = false`, use a NodeJS version that still implements Domain, or install a browser polyfill.");this.domains=Object.create(null)}this.timeout=g.timeout||f.DEFAULT_TIMEOUT,this.maxOccupationTime=g.maxOccupationTime||f.DEFAULT_MAX_OCCUPATION_TIME,this.maxExecutionTime=g.maxExecutionTime||f.DEFAULT_MAX_EXECUTION_TIME,g.maxPending===1/0||Number.isInteger(g.maxPending)&&g.maxPending>=0?this.maxPending=g.maxPending:this.maxPending=f.DEFAULT_MAX_PENDING},"AsyncLock");f.DEFAULT_TIMEOUT=0,f.DEFAULT_MAX_OCCUPATION_TIME=0,f.DEFAULT_MAX_EXECUTION_TIME=0,f.DEFAULT_MAX_PENDING=1e3,f.prototype.acquire=function(g,a,n,r){if(Array.isArray(g))return this._acquireBatch(g,a,n,r);if(typeof a!="function")throw new Error("You must pass a function to execute");var u=null,p=null,c=null;typeof n!="function"&&(r=n,n=null,c=new this.Promise(function(I,U){u=I,p=U})),r=r||{};var d=!1,m=null,y=null,w=null,_=this,S=e(function(I,U,M){y&&(clearTimeout(y),y=null),w&&(clearTimeout(w),w=null),I&&(_.queues[g]&&_.queues[g].length===0&&delete _.queues[g],_.domainReentrant&&delete _.domains[g]),d||(c?U?p(U):u(M):typeof n=="function"&&n(U,M),d=!0),I&&_.queues[g]&&_.queues[g].length>0&&_.queues[g].shift()()},"done"),T=e(function(I){if(d)return S(I);m&&(clearTimeout(m),m=null),_.domainReentrant&&I&&(_.domains[g]=process.domain);var U=r.maxExecutionTime||_.maxExecutionTime;if(U&&(w=setTimeout(function(){_.queues[g]&&S(I,new Error("Maximum execution time is exceeded "+g))},U)),a.length===1){var M=!1;try{a(function(ee,V){M||(M=!0,S(I,ee,V))})}catch(ee){M||(M=!0,S(I,ee))}}else _._promiseTry(function(){return a()}).then(function(ee){S(I,void 0,ee)},function(ee){S(I,ee)})},"exec");_.domainReentrant&&process.domain&&(T=process.domain.bind(T));var k=r.maxPending||_.maxPending;if(!_.queues[g])_.queues[g]=[],T(!0);else if(_.domainReentrant&&process.domain&&process.domain===_.domains[g])T(!1);else if(_.queues[g].length>=k)S(!1,new Error("Too many pending tasks in queue "+g));else{var E=e(function(){T(!0)},"taskFn");r.skipQueue?_.queues[g].unshift(E):_.queues[g].push(E);var j=r.timeout||_.timeout;j&&(m=setTimeout(function(){m=null,S(!1,new Error("async-lock timed out in queue "+g))},j))}var A=r.maxOccupationTime||_.maxOccupationTime;if(A&&(y=setTimeout(function(){_.queues[g]&&S(!1,new Error("Maximum occupation time is exceeded in queue "+g))},A)),c)return c},f.prototype._acquireBatch=function(g,a,n,r){typeof n!="function"&&(r=n,n=null);var u=this,p=e(function(d,m){return function(y){u.acquire(d,m,y,r)}},"getFn"),c=g.reduceRight(function(d,m){return p(m,d)},a);if(typeof n=="function")c(n);else return new this.Promise(function(d,m){c.length===1?c(function(y,w){y?m(y):d(w)}):d(c())})},f.prototype.isBusy=function(g){return g?!!this.queues[g]:Object.keys(this.queues).length>0},f.prototype._promiseTry=function(g){try{return this.Promise.resolve(g())}catch(a){return this.Promise.reject(a)}},i.exports=f}),AN=Ge((o,i)=>{"use strict";i.exports=SN()}),Xs=Ge((o,i)=>{typeof Object.create=="function"?i.exports=e(function(f,g){g&&(f.super_=g,f.prototype=Object.create(g.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}))},"inherits"):i.exports=e(function(f,g){if(g){f.super_=g;var a=e(function(){},"TempCtor");a.prototype=g.prototype,f.prototype=new a,f.prototype.constructor=f}},"inherits")}),Sf={};an(Sf,{Buffer:l(()=>Gs,"Buffer"),INSPECT_MAX_BYTES:l(()=>mx,"INSPECT_MAX_BYTES"),kMaxLength:l(()=>wx,"kMaxLength")});jd=Xt(()=>{EE()}),Cd=Ge((o,i)=>{var f=(jd(),hr(Sf)),g=f.Buffer;function a(r,u){for(var p in r)u[p]=r[p]}l(a,"mT"),e(a,"copyProps"),g.from&&g.alloc&&g.allocUnsafe&&g.allocUnsafeSlow?i.exports=f:(a(f,o),o.Buffer=n);function n(r,u,p){return g(r,u,p)}l(n,"Ko"),e(n,"SafeBuffer"),n.prototype=Object.create(g.prototype),a(g,n),n.from=function(r,u,p){if(typeof r=="number")throw new TypeError("Argument must not be a number");return g(r,u,p)},n.alloc=function(r,u,p){if(typeof r!="number")throw new TypeError("Argument must be a number");var c=g(r);return u!==void 0?typeof p=="string"?c.fill(u,p):c.fill(u):c.fill(0),c},n.allocUnsafe=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return g(r)},n.allocUnsafeSlow=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return f.SlowBuffer(r)}}),RN=Ge((o,i)=>{var f={}.toString;i.exports=Array.isArray||function(g){return f.call(g)=="[object Array]"}}),Af=Ge((o,i)=>{"use strict";i.exports=TypeError}),Uj=Ge((o,i)=>{"use strict";i.exports=Object}),kN=Ge((o,i)=>{"use strict";i.exports=Error}),ON=Ge((o,i)=>{"use strict";i.exports=EvalError}),TN=Ge((o,i)=>{"use strict";i.exports=RangeError}),FN=Ge((o,i)=>{"use strict";i.exports=ReferenceError}),Mj=Ge((o,i)=>{"use strict";i.exports=SyntaxError}),BN=Ge((o,i)=>{"use strict";i.exports=URIError}),IN=Ge((o,i)=>{"use strict";i.exports=Math.abs}),xN=Ge((o,i)=>{"use strict";i.exports=Math.floor}),jN=Ge((o,i)=>{"use strict";i.exports=Math.max}),CN=Ge((o,i)=>{"use strict";i.exports=Math.min}),PN=Ge((o,i)=>{"use strict";i.exports=Math.pow}),LN=Ge((o,i)=>{"use strict";i.exports=Math.round}),NN=Ge((o,i)=>{"use strict";i.exports=Number.isNaN||e(function(f){return f!==f},"isNaN")}),DN=Ge((o,i)=>{"use strict";var f=NN();i.exports=e(function(g){return f(g)||g===0?g:g<0?-1:1},"sign")}),UN=Ge((o,i)=>{"use strict";i.exports=Object.getOwnPropertyDescriptor}),Rf=Ge((o,i)=>{"use strict";var f=UN();if(f)try{f([],"length")}catch{f=null}i.exports=f}),Pd=Ge((o,i)=>{"use strict";var f=Object.defineProperty||!1;if(f)try{f({},"a",{value:1})}catch{f=!1}i.exports=f}),$j=Ge((o,i)=>{"use strict";i.exports=e(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var f={},g=Symbol("test"),a=Object(g);if(typeof g=="string"||Object.prototype.toString.call(g)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var n=42;f[g]=n;for(var r in f)return!1;if(typeof Object.keys=="function"&&Object.keys(f).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(f).length!==0)return!1;var u=Object.getOwnPropertySymbols(f);if(u.length!==1||u[0]!==g||!Object.prototype.propertyIsEnumerable.call(f,g))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var p=Object.getOwnPropertyDescriptor(f,g);if(p.value!==n||p.enumerable!==!0)return!1}return!0},"hasSymbols")}),MN=Ge((o,i)=>{"use strict";var f=typeof Symbol<"u"&&Symbol,g=$j();i.exports=e(function(){return typeof f!="function"||typeof Symbol!="function"||typeof f("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:g()},"hasNativeSymbols")}),Wj=Ge((o,i)=>{"use strict";i.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null}),zj=Ge((o,i)=>{"use strict";var f=Uj();i.exports=f.getPrototypeOf||null}),$N=Ge((o,i)=>{"use strict";var f="Function.prototype.bind called on incompatible ",g=Object.prototype.toString,a=Math.max,n="[object Function]",r=e(function(c,d){for(var m=[],y=0;y<c.length;y+=1)m[y]=c[y];for(var w=0;w<d.length;w+=1)m[w+c.length]=d[w];return m},"concatty"),u=e(function(c,d){for(var m=[],y=d||0,w=0;y<c.length;y+=1,w+=1)m[w]=c[y];return m},"slicy"),p=e(function(c,d){for(var m="",y=0;y<c.length;y+=1)m+=c[y],y+1<c.length&&(m+=d);return m},"joiny");i.exports=e(function(c){var d=this;if(typeof d!="function"||g.apply(d)!==n)throw new TypeError(f+d);for(var m=u(arguments,1),y,w=e(function(){if(this instanceof y){var E=d.apply(this,r(m,arguments));return Object(E)===E?E:this}return d.apply(c,r(m,arguments))},"binder"),_=a(0,d.length-m.length),S=[],T=0;T<_;T++)S[T]="$"+T;if(y=Function("binder","return function ("+p(S,",")+"){ return binder.apply(this,arguments); }")(w),d.prototype){var k=e(function(){},"Empty");k.prototype=d.prototype,y.prototype=new k,k.prototype=null}return y},"bind")}),kf=Ge((o,i)=>{"use strict";var f=$N();i.exports=Function.prototype.bind||f}),KE=Ge((o,i)=>{"use strict";i.exports=Function.prototype.call}),JE=Ge((o,i)=>{"use strict";i.exports=Function.prototype.apply}),WN=Ge((o,i)=>{"use strict";i.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply}),Hj=Ge((o,i)=>{"use strict";var f=kf(),g=JE(),a=KE(),n=WN();i.exports=n||f.call(a,g)}),YE=Ge((o,i)=>{"use strict";var f=kf(),g=Af(),a=KE(),n=Hj();i.exports=e(function(r){if(r.length<1||typeof r[0]!="function")throw new g("a function is required");return n(f,a,r)},"callBindBasic")}),zN=Ge((o,i)=>{"use strict";var f=YE(),g=Rf(),a;try{a=[].__proto__===Array.prototype}catch(p){if(!p||typeof p!="object"||!("code"in p)||p.code!=="ERR_PROTO_ACCESS")throw p}var n=!!a&&g&&g(Object.prototype,"__proto__"),r=Object,u=r.getPrototypeOf;i.exports=n&&typeof n.get=="function"?f([n.get]):typeof u=="function"?e(function(p){return u(p==null?p:r(p))},"getDunder"):!1}),qj=Ge((o,i)=>{"use strict";var f=Wj(),g=zj(),a=zN();i.exports=f?e(function(n){return f(n)},"getProto"):g?e(function(n){if(!n||typeof n!="object"&&typeof n!="function")throw new TypeError("getProto: not an object");return g(n)},"getProto"):a?e(function(n){return a(n)},"getProto"):null}),HN=Ge((o,i)=>{"use strict";var f=Function.prototype.call,g=Object.prototype.hasOwnProperty,a=kf();i.exports=a.call(f,g)}),Gj=Ge((o,i)=>{"use strict";var f,g=Uj(),a=kN(),n=ON(),r=TN(),u=FN(),p=Mj(),c=Af(),d=BN(),m=IN(),y=xN(),w=jN(),_=CN(),S=PN(),T=LN(),k=DN(),E=Function,j=e(function(ve){try{return E('"use strict"; return ('+ve+").constructor;")()}catch{}},"getEvalledConstructor"),A=Rf(),I=Pd(),U=e(function(){throw new c},"throwTypeError"),M=A?function(){try{return arguments.callee,U}catch{try{return A(arguments,"callee").get}catch{return U}}}():U,ee=MN()(),V=qj(),q=zj(),G=Wj(),re=JE(),ae=KE(),de={},we=typeof Uint8Array>"u"||!V?f:V(Uint8Array),Ie={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?f:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?f:ArrayBuffer,"%ArrayIteratorPrototype%":ee&&V?V([][Symbol.iterator]()):f,"%AsyncFromSyncIteratorPrototype%":f,"%AsyncFunction%":de,"%AsyncGenerator%":de,"%AsyncGeneratorFunction%":de,"%AsyncIteratorPrototype%":de,"%Atomics%":typeof Atomics>"u"?f:Atomics,"%BigInt%":typeof BigInt>"u"?f:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?f:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?f:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?f:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":a,"%eval%":eval,"%EvalError%":n,"%Float16Array%":typeof Float16Array>"u"?f:Float16Array,"%Float32Array%":typeof Float32Array>"u"?f:Float32Array,"%Float64Array%":typeof Float64Array>"u"?f:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?f:FinalizationRegistry,"%Function%":E,"%GeneratorFunction%":de,"%Int8Array%":typeof Int8Array>"u"?f:Int8Array,"%Int16Array%":typeof Int16Array>"u"?f:Int16Array,"%Int32Array%":typeof Int32Array>"u"?f:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ee&&V?V(V([][Symbol.iterator]())):f,"%JSON%":typeof JSON=="object"?JSON:f,"%Map%":typeof Map>"u"?f:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ee||!V?f:V(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":g,"%Object.getOwnPropertyDescriptor%":A,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?f:Promise,"%Proxy%":typeof Proxy>"u"?f:Proxy,"%RangeError%":r,"%ReferenceError%":u,"%Reflect%":typeof Reflect>"u"?f:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?f:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ee||!V?f:V(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?f:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ee&&V?V(""[Symbol.iterator]()):f,"%Symbol%":ee?Symbol:f,"%SyntaxError%":p,"%ThrowTypeError%":M,"%TypedArray%":we,"%TypeError%":c,"%Uint8Array%":typeof Uint8Array>"u"?f:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?f:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?f:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?f:Uint32Array,"%URIError%":d,"%WeakMap%":typeof WeakMap>"u"?f:WeakMap,"%WeakRef%":typeof WeakRef>"u"?f:WeakRef,"%WeakSet%":typeof WeakSet>"u"?f:WeakSet,"%Function.prototype.call%":ae,"%Function.prototype.apply%":re,"%Object.defineProperty%":I,"%Object.getPrototypeOf%":q,"%Math.abs%":m,"%Math.floor%":y,"%Math.max%":w,"%Math.min%":_,"%Math.pow%":S,"%Math.round%":T,"%Math.sign%":k,"%Reflect.getPrototypeOf%":G};if(V)try{null.error}catch(ve){je=V(V(ve)),Ie["%Error.prototype%"]=je}var je,se=e(l(function ve(N){var x;if(N==="%AsyncFunction%")x=j("async function () {}");else if(N==="%GeneratorFunction%")x=j("function* () {}");else if(N==="%AsyncGeneratorFunction%")x=j("async function* () {}");else if(N==="%AsyncGenerator%"){var D=ve("%AsyncGeneratorFunction%");D&&(x=D.prototype)}else if(N==="%AsyncIteratorPrototype%"){var z=ve("%AsyncGenerator%");z&&V&&(x=V(z.prototype))}return Ie[N]=x,x},"e"),"doEval"),Te={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},J=kf(),ue=HN(),te=J.call(ae,Array.prototype.concat),X=J.call(re,Array.prototype.splice),ye=J.call(ae,String.prototype.replace),Re=J.call(ae,String.prototype.slice),De=J.call(ae,RegExp.prototype.exec),Y=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,H=/\\(\\)?/g,Q=e(function(ve){var N=Re(ve,0,1),x=Re(ve,-1);if(N==="%"&&x!=="%")throw new p("invalid intrinsic syntax, expected closing `%`");if(x==="%"&&N!=="%")throw new p("invalid intrinsic syntax, expected opening `%`");var D=[];return ye(ve,Y,function(z,Ee,ke,be){D[D.length]=ke?ye(be,H,"$1"):Ee||z}),D},"stringToPath"),fe=e(function(ve,N){var x=ve,D;if(ue(Te,x)&&(D=Te[x],x="%"+D[0]+"%"),ue(Ie,x)){var z=Ie[x];if(z===de&&(z=se(x)),typeof z>"u"&&!N)throw new c("intrinsic "+ve+" exists, but is not available. Please file an issue!");return{alias:D,name:x,value:z}}throw new p("intrinsic "+ve+" does not exist!")},"getBaseIntrinsic");i.exports=e(function(ve,N){if(typeof ve!="string"||ve.length===0)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof N!="boolean")throw new c('"allowMissing" argument must be a boolean');if(De(/^%?[^%]*%?$/,ve)===null)throw new p("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var x=Q(ve),D=x.length>0?x[0]:"",z=fe("%"+D+"%",N),Ee=z.name,ke=z.value,be=!1,ge=z.alias;ge&&(D=ge[0],X(x,te([0,1],ge)));for(var Ne=1,xe=!0;Ne<x.length;Ne+=1){var Oe=x[Ne],Pe=Re(Oe,0,1),$e=Re(Oe,-1);if((Pe==='"'||Pe==="'"||Pe==="`"||$e==='"'||$e==="'"||$e==="`")&&Pe!==$e)throw new p("property names with quotes must have matching quotes");if((Oe==="constructor"||!xe)&&(be=!0),D+="."+Oe,Ee="%"+D+"%",ue(Ie,Ee))ke=Ie[Ee];else if(ke!=null){if(!(Oe in ke)){if(!N)throw new c("base intrinsic for "+ve+" exists, but the property is not available.");return}if(A&&Ne+1>=x.length){var Ke=A(ke,Oe);xe=!!Ke,xe&&"get"in Ke&&!("originalValue"in Ke.get)?ke=Ke.get:ke=ke[Oe]}else xe=ue(ke,Oe),ke=ke[Oe];xe&&!be&&(Ie[Ee]=ke)}}return ke},"GetIntrinsic")}),Vj=Ge((o,i)=>{"use strict";var f=Gj(),g=YE(),a=g([f("%String.prototype.indexOf%")]);i.exports=e(function(n,r){var u=f(n,!!r);return typeof u=="function"&&a(n,".prototype.")>-1?g([u]):u},"callBoundIntrinsic")}),qN=Ge((o,i)=>{"use strict";var f=Function.prototype.toString,g=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,a,n;if(typeof g=="function"&&typeof Object.defineProperty=="function")try{a=Object.defineProperty({},"length",{get:e(function(){throw n},"get")}),n={},g(function(){throw 42},null,a)}catch(A){A!==n&&(g=null)}else g=null;var r=/^\s*class\b/,u=e(function(A){try{var I=f.call(A);return r.test(I)}catch{return!1}},"isES6ClassFunction"),p=e(function(A){try{return u(A)?!1:(f.call(A),!0)}catch{return!1}},"tryFunctionToStr"),c=Object.prototype.toString,d="[object Object]",m="[object Function]",y="[object GeneratorFunction]",w="[object HTMLAllCollection]",_="[object HTML document.all class]",S="[object HTMLCollection]",T=typeof Symbol=="function"&&!!Symbol.toStringTag,k=!(0 in[,]),E=e(function(){return!1},"isDocumentDotAll");typeof document=="object"&&(j=document.all,c.call(j)===c.call(document.all)&&(E=e(function(A){if((k||!A)&&(typeof A>"u"||typeof A=="object"))try{var I=c.call(A);return(I===w||I===_||I===S||I===d)&&A("")==null}catch{}return!1},"isDocumentDotAll")));var j;i.exports=e(g?function(A){if(E(A))return!0;if(!A||typeof A!="function"&&typeof A!="object")return!1;try{g(A,null,a)}catch(I){if(I!==n)return!1}return!u(A)&&p(A)}:function(A){if(E(A))return!0;if(!A||typeof A!="function"&&typeof A!="object")return!1;if(T)return p(A);if(u(A))return!1;var I=c.call(A);return I!==m&&I!==y&&!/^\[object HTML/.test(I)?!1:p(A)},"isCallable")}),GN=Ge((o,i)=>{"use strict";var f=qN(),g=Object.prototype.toString,a=Object.prototype.hasOwnProperty,n=e(function(c,d,m){for(var y=0,w=c.length;y<w;y++)a.call(c,y)&&(m==null?d(c[y],y,c):d.call(m,c[y],y,c))},"forEachArray"),r=e(function(c,d,m){for(var y=0,w=c.length;y<w;y++)m==null?d(c.charAt(y),y,c):d.call(m,c.charAt(y),y,c)},"forEachString"),u=e(function(c,d,m){for(var y in c)a.call(c,y)&&(m==null?d(c[y],y,c):d.call(m,c[y],y,c))},"forEachObject");function p(c){return g.call(c)==="[object Array]"}l(p,"az"),e(p,"isArray"),i.exports=e(function(c,d,m){if(!f(d))throw new TypeError("iterator must be a function");var y;arguments.length>=3&&(y=m),p(c)?n(c,d,y):typeof c=="string"?r(c,d,y):u(c,d,y)},"forEach")}),VN=Ge((o,i)=>{"use strict";i.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]}),KN=Ge((o,i)=>{"use strict";var f=VN(),g=globalThis;i.exports=e(function(){for(var a=[],n=0;n<f.length;n++)typeof g[f[n]]=="function"&&(a[a.length]=f[n]);return a},"availableTypedArrays")}),JN=Ge((o,i)=>{"use strict";var f=Pd(),g=Mj(),a=Af(),n=Rf();i.exports=e(function(r,u,p){if(!r||typeof r!="object"&&typeof r!="function")throw new a("`obj` must be an object or a function`");if(typeof u!="string"&&typeof u!="symbol")throw new a("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new a("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new a("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new a("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new a("`loose`, if provided, must be a boolean");var c=arguments.length>3?arguments[3]:null,d=arguments.length>4?arguments[4]:null,m=arguments.length>5?arguments[5]:null,y=arguments.length>6?arguments[6]:!1,w=!!n&&n(r,u);if(f)f(r,u,{configurable:m===null&&w?w.configurable:!m,enumerable:c===null&&w?w.enumerable:!c,value:p,writable:d===null&&w?w.writable:!d});else if(y||!c&&!d&&!m)r[u]=p;else throw new g("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},"defineDataProperty")}),YN=Ge((o,i)=>{"use strict";var f=Pd(),g=e(function(){return!!f},"hasPropertyDescriptors");g.hasArrayLengthDefineBug=e(function(){if(!f)return null;try{return f([],"length",{value:1}).length!==1}catch{return!0}},"hasArrayLengthDefineBug"),i.exports=g}),ZN=Ge((o,i)=>{"use strict";var f=Gj(),g=JN(),a=YN()(),n=Rf(),r=Af(),u=f("%Math.floor%");i.exports=e(function(p,c){if(typeof p!="function")throw new r("`fn` is not a function");if(typeof c!="number"||c<0||c>4294967295||u(c)!==c)throw new r("`length` must be a positive 32-bit integer");var d=arguments.length>2&&!!arguments[2],m=!0,y=!0;if("length"in p&&n){var w=n(p,"length");w&&!w.configurable&&(m=!1),w&&!w.writable&&(y=!1)}return(m||y||!d)&&(a?g(p,"length",c,!0,!0):g(p,"length",c)),p},"setFunctionLength")}),QN=Ge((o,i)=>{"use strict";var f=kf(),g=JE(),a=Hj();i.exports=e(function(){return a(f,g,arguments)},"applyBind")}),XN=Ge((o,i)=>{"use strict";var f=ZN(),g=Pd(),a=YE(),n=QN();i.exports=e(function(r){var u=a(arguments),p=r.length-(arguments.length-1);return f(u,1+(p>0?p:0),!0)},"callBind"),g?g(i.exports,"apply",{value:n}):i.exports.apply=n}),e3=Ge((o,i)=>{"use strict";var f=$j();i.exports=e(function(){return f()&&!!Symbol.toStringTag},"hasToStringTagShams")}),t3=Ge((o,i)=>{"use strict";var f=GN(),g=KN(),a=XN(),n=Vj(),r=Rf(),u=qj(),p=n("Object.prototype.toString"),c=e3()(),d=globalThis,m=g(),y=n("String.prototype.slice"),w=n("Array.prototype.indexOf",!0)||e(function(k,E){for(var j=0;j<k.length;j+=1)if(k[j]===E)return j;return-1},"indexOf"),_={__proto__:null};c&&r&&u?f(m,function(k){var E=new d[k];if(Symbol.toStringTag in E&&u){var j=u(E),A=r(j,Symbol.toStringTag);if(!A&&j){var I=u(j);A=r(I,Symbol.toStringTag)}_["$"+k]=a(A.get)}}):f(m,function(k){var E=new d[k],j=E.slice||E.set;j&&(_["$"+k]=a(j))});var S=e(function(k){var E=!1;return f(_,function(j,A){if(!E)try{"$"+j(k)===A&&(E=y(A,1))}catch{}}),E},"tryAllTypedArrays"),T=e(function(k){var E=!1;return f(_,function(j,A){if(!E)try{j(k),E=y(A,1)}catch{}}),E},"tryAllSlices");i.exports=e(function(k){if(!k||typeof k!="object")return!1;if(!c){var E=y(p(k),8,-1);return w(m,E)>-1?E:E!=="Object"?!1:T(k)}return r?S(k):null},"whichTypedArray")}),r3=Ge((o,i)=>{"use strict";var f=t3();i.exports=e(function(g){return!!f(g)},"isTypedArray")}),n3=Ge((o,i)=>{"use strict";var f=Af(),g=Vj(),a=g("TypedArray.prototype.buffer",!0),n=r3();i.exports=a||e(function(r){if(!n(r))throw new f("Not a Typed Array");return r.buffer},"typedArrayBuffer")}),i3=Ge((o,i)=>{"use strict";var f=Cd().Buffer,g=RN(),a=n3(),n=ArrayBuffer.isView||e(function(c){try{return a(c),!0}catch{return!1}},"isView"),r=typeof Uint8Array<"u",u=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",p=u&&(f.prototype instanceof Uint8Array||f.TYPED_ARRAY_SUPPORT);i.exports=e(function(c,d){if(f.isBuffer(c))return c.constructor&&!("isBuffer"in c)?f.from(c):c;if(typeof c=="string")return f.from(c,d);if(u&&n(c)){if(c.byteLength===0)return f.alloc(0);if(p){var m=f.from(c.buffer,c.byteOffset,c.byteLength);if(m.byteLength===c.byteLength)return m}var y=c instanceof Uint8Array?c:new Uint8Array(c.buffer,c.byteOffset,c.byteLength),w=f.from(y);if(w.length===c.byteLength)return w}if(r&&c instanceof Uint8Array)return f.from(c);var _=g(c);if(_)for(var S=0;S<c.length;S+=1){var T=c[S];if(typeof T!="number"||T<0||T>255||~~T!==T)throw new RangeError("Array items must be numbers in the range 0-255.")}if(_||f.isBuffer(c)&&c.constructor&&typeof c.constructor.isBuffer=="function"&&c.constructor.isBuffer(c))return f.from(c);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')},"toBuffer")}),o3=Ge((o,i)=>{"use strict";var f=Cd().Buffer,g=i3();function a(n,r){this._block=f.alloc(n),this._finalSize=r,this._blockSize=n,this._len=0}l(a,"mh"),e(a,"Hash"),a.prototype.update=function(n,r){n=g(n,r||"utf8");for(var u=this._block,p=this._blockSize,c=n.length,d=this._len,m=0;m<c;){for(var y=d%p,w=Math.min(c-m,p-y),_=0;_<w;_++)u[y+_]=n[m+_];d+=w,m+=w,d%p===0&&this._update(u)}return this._len+=c,this},a.prototype.digest=function(n){var r=this._len%this._blockSize;this._block[r]=128,this._block.fill(0,r+1),r>=this._finalSize&&(this._update(this._block),this._block.fill(0));var u=this._len*8;if(u<=4294967295)this._block.writeUInt32BE(u,this._blockSize-4);else{var p=(u&4294967295)>>>0,c=(u-p)/4294967296;this._block.writeUInt32BE(c,this._blockSize-8),this._block.writeUInt32BE(p,this._blockSize-4)}this._update(this._block);var d=this._hash();return n?d.toString(n):d},a.prototype._update=function(){throw new Error("_update must be implemented by subclass")},i.exports=a}),a3=Ge((o,i)=>{"use strict";var f=Xs(),g=o3(),a=Cd().Buffer,n=[1518500249,1859775393,-1894007588,-899497514],r=new Array(80);function u(){this.init(),this._w=r,g.call(this,64,56)}l(u,"hf"),e(u,"Sha1"),f(u,g),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function p(y){return y<<1|y>>>31}l(p,"Mz"),e(p,"rotl1");function c(y){return y<<5|y>>>27}l(c,"Uz"),e(c,"rotl5");function d(y){return y<<30|y>>>2}l(d,"jz"),e(d,"rotl30");function m(y,w,_,S){return y===0?w&_|~w&S:y===2?w&_|w&S|_&S:w^_^S}l(m,"Hz"),e(m,"ft"),u.prototype._update=function(y){for(var w=this._w,_=this._a|0,S=this._b|0,T=this._c|0,k=this._d|0,E=this._e|0,j=0;j<16;++j)w[j]=y.readInt32BE(j*4);for(;j<80;++j)w[j]=p(w[j-3]^w[j-8]^w[j-14]^w[j-16]);for(var A=0;A<80;++A){var I=~~(A/20),U=c(_)+m(I,S,T,k)+E+w[A]+n[I]|0;E=k,k=T,T=d(S),S=_,_=U}this._a=_+this._a|0,this._b=S+this._b|0,this._c=T+this._c|0,this._d=k+this._d|0,this._e=E+this._e|0},u.prototype._hash=function(){var y=a.allocUnsafe(20);return y.writeInt32BE(this._a|0,0),y.writeInt32BE(this._b|0,4),y.writeInt32BE(this._c|0,8),y.writeInt32BE(this._d|0,12),y.writeInt32BE(this._e|0,16),y},i.exports=u}),s3=Ge((o,i)=>{"use strict";function f(r){if(typeof r!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(r))}l(f,"Rn"),e(f,"assertPath");function g(r,u){for(var p="",c=0,d=-1,m=0,y,w=0;w<=r.length;++w){if(w<r.length)y=r.charCodeAt(w);else{if(y===47)break;y=47}if(y===47){if(!(d===w-1||m===1))if(d!==w-1&&m===2){if(p.length<2||c!==2||p.charCodeAt(p.length-1)!==46||p.charCodeAt(p.length-2)!==46){if(p.length>2){var _=p.lastIndexOf("/");if(_!==p.length-1){_===-1?(p="",c=0):(p=p.slice(0,_),c=p.length-1-p.lastIndexOf("/")),d=w,m=0;continue}}else if(p.length===2||p.length===1){p="",c=0,d=w,m=0;continue}}u&&(p.length>0?p+="/..":p="..",c=2)}else p.length>0?p+="/"+r.slice(d+1,w):p=r.slice(d+1,w),c=w-d-1;d=w,m=0}else y===46&&m!==-1?++m:m=-1}return p}l(g,"Ox"),e(g,"normalizeStringPosix");function a(r,u){var p=u.dir||u.root,c=u.base||(u.name||"")+(u.ext||"");return p?p===u.root?p+c:p+r+c:c}l(a,"Wz"),e(a,"_format");var n={resolve:e(function(){for(var r="",u=!1,p,c=arguments.length-1;c>=-1&&!u;c--){var d;c>=0?d=arguments[c]:(p===void 0&&(p=process.cwd()),d=p),f(d),d.length!==0&&(r=d+"/"+r,u=d.charCodeAt(0)===47)}return r=g(r,!u),u?r.length>0?"/"+r:"/":r.length>0?r:"."},"resolve"),normalize:e(function(r){if(f(r),r.length===0)return".";var u=r.charCodeAt(0)===47,p=r.charCodeAt(r.length-1)===47;return r=g(r,!u),r.length===0&&!u&&(r="."),r.length>0&&p&&(r+="/"),u?"/"+r:r},"normalize"),isAbsolute:e(function(r){return f(r),r.length>0&&r.charCodeAt(0)===47},"isAbsolute"),join:e(function(){if(arguments.length===0)return".";for(var r,u=0;u<arguments.length;++u){var p=arguments[u];f(p),p.length>0&&(r===void 0?r=p:r+="/"+p)}return r===void 0?".":n.normalize(r)},"join"),relative:e(function(r,u){if(f(r),f(u),r===u||(r=n.resolve(r),u=n.resolve(u),r===u))return"";for(var p=1;p<r.length&&r.charCodeAt(p)===47;++p);for(var c=r.length,d=c-p,m=1;m<u.length&&u.charCodeAt(m)===47;++m);for(var y=u.length,w=y-m,_=d<w?d:w,S=-1,T=0;T<=_;++T){if(T===_){if(w>_){if(u.charCodeAt(m+T)===47)return u.slice(m+T+1);if(T===0)return u.slice(m+T)}else d>_&&(r.charCodeAt(p+T)===47?S=T:T===0&&(S=0));break}var k=r.charCodeAt(p+T),E=u.charCodeAt(m+T);if(k!==E)break;k===47&&(S=T)}var j="";for(T=p+S+1;T<=c;++T)(T===c||r.charCodeAt(T)===47)&&(j.length===0?j+="..":j+="/..");return j.length>0?j+u.slice(m+S):(m+=S,u.charCodeAt(m)===47&&++m,u.slice(m))},"relative"),_makeLong:e(function(r){return r},"_makeLong"),dirname:e(function(r){if(f(r),r.length===0)return".";for(var u=r.charCodeAt(0),p=u===47,c=-1,d=!0,m=r.length-1;m>=1;--m)if(u=r.charCodeAt(m),u===47){if(!d){c=m;break}}else d=!1;return c===-1?p?"/":".":p&&c===1?"//":r.slice(0,c)},"dirname"),basename:e(function(r,u){if(u!==void 0&&typeof u!="string")throw new TypeError('"ext" argument must be a string');f(r);var p=0,c=-1,d=!0,m;if(u!==void 0&&u.length>0&&u.length<=r.length){if(u.length===r.length&&u===r)return"";var y=u.length-1,w=-1;for(m=r.length-1;m>=0;--m){var _=r.charCodeAt(m);if(_===47){if(!d){p=m+1;break}}else w===-1&&(d=!1,w=m+1),y>=0&&(_===u.charCodeAt(y)?--y===-1&&(c=m):(y=-1,c=w))}return p===c?c=w:c===-1&&(c=r.length),r.slice(p,c)}else{for(m=r.length-1;m>=0;--m)if(r.charCodeAt(m)===47){if(!d){p=m+1;break}}else c===-1&&(d=!1,c=m+1);return c===-1?"":r.slice(p,c)}},"basename"),extname:e(function(r){f(r);for(var u=-1,p=0,c=-1,d=!0,m=0,y=r.length-1;y>=0;--y){var w=r.charCodeAt(y);if(w===47){if(!d){p=y+1;break}continue}c===-1&&(d=!1,c=y+1),w===46?u===-1?u=y:m!==1&&(m=1):u!==-1&&(m=-1)}return u===-1||c===-1||m===0||m===1&&u===c-1&&u===p+1?"":r.slice(u,c)},"extname"),format:e(function(r){if(r===null||typeof r!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof r);return a("/",r)},"format"),parse:e(function(r){f(r);var u={root:"",dir:"",base:"",ext:"",name:""};if(r.length===0)return u;var p=r.charCodeAt(0),c=p===47,d;c?(u.root="/",d=1):d=0;for(var m=-1,y=0,w=-1,_=!0,S=r.length-1,T=0;S>=d;--S){if(p=r.charCodeAt(S),p===47){if(!_){y=S+1;break}continue}w===-1&&(_=!1,w=S+1),p===46?m===-1?m=S:T!==1&&(T=1):m!==-1&&(T=-1)}return m===-1||w===-1||T===0||T===1&&m===w-1&&m===y+1?w!==-1&&(y===0&&c?u.base=u.name=r.slice(1,w):u.base=u.name=r.slice(y,w)):(y===0&&c?(u.name=r.slice(1,m),u.base=r.slice(1,w)):(u.name=r.slice(y,m),u.base=r.slice(y,w)),u.ext=r.slice(m,w)),y>0?u.dir=r.slice(0,y-1):c&&(u.dir="/"),u},"parse"),sep:"/",delimiter:":",win32:null,posix:null};n.posix=n,i.exports=n}),l3=Ge(o=>{var i;(function(f){typeof DO_NOT_EXPORT_CRC>"u"?typeof o=="object"?f(o):typeof define=="function"&&define.amd?define(function(){var g={};return f(g),g}):f(i={}):f(i={})})(function(f){f.version="1.2.2";function g(){for(var V=0,q=new Array(256),G=0;G!=256;++G)V=G,V=V&1?-306674912^V>>>1:V>>>1,V=V&1?-306674912^V>>>1:V>>>1,V=V&1?-306674912^V>>>1:V>>>1,V=V&1?-306674912^V>>>1:V>>>1,V=V&1?-306674912^V>>>1:V>>>1,V=V&1?-306674912^V>>>1:V>>>1,V=V&1?-306674912^V>>>1:V>>>1,V=V&1?-306674912^V>>>1:V>>>1,q[G]=V;return typeof Int32Array<"u"?new Int32Array(q):q}l(g,"t"),e(g,"signed_crc_table");var a=g();function n(V){var q=0,G=0,re=0,ae=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(re=0;re!=256;++re)ae[re]=V[re];for(re=0;re!=256;++re)for(G=V[re],q=256+re;q<4096;q+=256)G=ae[q]=G>>>8^V[G&255];var de=[];for(re=1;re!=16;++re)de[re-1]=typeof Int32Array<"u"?ae.subarray(re*256,re*256+256):ae.slice(re*256,re*256+256);return de}l(n,"n"),e(n,"slice_by_16_tables");var r=n(a),u=r[0],p=r[1],c=r[2],d=r[3],m=r[4],y=r[5],w=r[6],_=r[7],S=r[8],T=r[9],k=r[10],E=r[11],j=r[12],A=r[13],I=r[14];function U(V,q){for(var G=q^-1,re=0,ae=V.length;re<ae;)G=G>>>8^a[(G^V.charCodeAt(re++))&255];return~G}l(U,"F"),e(U,"crc32_bstr");function M(V,q){for(var G=q^-1,re=V.length-15,ae=0;ae<re;)G=I[V[ae++]^G&255]^A[V[ae++]^G>>8&255]^j[V[ae++]^G>>16&255]^E[V[ae++]^G>>>24]^k[V[ae++]]^T[V[ae++]]^S[V[ae++]]^_[V[ae++]]^w[V[ae++]]^y[V[ae++]]^m[V[ae++]]^d[V[ae++]]^c[V[ae++]]^p[V[ae++]]^u[V[ae++]]^a[V[ae++]];for(re+=15;ae<re;)G=G>>>8^a[(G^V[ae++])&255];return~G}l(M,"S"),e(M,"crc32_buf");function ee(V,q){for(var G=q^-1,re=0,ae=V.length,de=0,we=0;re<ae;)de=V.charCodeAt(re++),de<128?G=G>>>8^a[(G^de)&255]:de<2048?(G=G>>>8^a[(G^(192|de>>6&31))&255],G=G>>>8^a[(G^(128|de&63))&255]):de>=55296&&de<57344?(de=(de&1023)+64,we=V.charCodeAt(re++)&1023,G=G>>>8^a[(G^(240|de>>8&7))&255],G=G>>>8^a[(G^(128|de>>2&63))&255],G=G>>>8^a[(G^(128|we>>6&15|(de&3)<<4))&255],G=G>>>8^a[(G^(128|we&63))&255]):(G=G>>>8^a[(G^(224|de>>12&15))&255],G=G>>>8^a[(G^(128|de>>6&63))&255],G=G>>>8^a[(G^(128|de&63))&255]);return~G}l(ee,"B"),e(ee,"crc32_str"),f.table=a,f.bstr=U,f.buf=M,f.str=ee})}),Ji=Ge(o=>{"use strict";var i=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function f(n,r){return Object.prototype.hasOwnProperty.call(n,r)}l(f,"zz"),e(f,"_has"),o.assign=function(n){for(var r=Array.prototype.slice.call(arguments,1);r.length;){var u=r.shift();if(u){if(typeof u!="object")throw new TypeError(u+"must be non-object");for(var p in u)f(u,p)&&(n[p]=u[p])}}return n},o.shrinkBuf=function(n,r){return n.length===r?n:n.subarray?n.subarray(0,r):(n.length=r,n)};var g={arraySet:e(function(n,r,u,p,c){if(r.subarray&&n.subarray){n.set(r.subarray(u,u+p),c);return}for(var d=0;d<p;d++)n[c+d]=r[u+d]},"arraySet"),flattenChunks:e(function(n){var r,u,p,c,d,m;for(p=0,r=0,u=n.length;r<u;r++)p+=n[r].length;for(m=new Uint8Array(p),c=0,r=0,u=n.length;r<u;r++)d=n[r],m.set(d,c),c+=d.length;return m},"flattenChunks")},a={arraySet:e(function(n,r,u,p,c){for(var d=0;d<p;d++)n[c+d]=r[u+d]},"arraySet"),flattenChunks:e(function(n){return[].concat.apply([],n)},"flattenChunks")};o.setTyped=function(n){n?(o.Buf8=Uint8Array,o.Buf16=Uint16Array,o.Buf32=Int32Array,o.assign(o,g)):(o.Buf8=Array,o.Buf16=Array,o.Buf32=Array,o.assign(o,a))},o.setTyped(i)}),f3=Ge(o=>{"use strict";var i=Ji(),f=4,g=0,a=1,n=2;function r(C){for(var Z=C.length;--Z>=0;)C[Z]=0}l(r,"Ss"),e(r,"zero");var u=0,p=1,c=2,d=3,m=258,y=29,w=256,_=w+1+y,S=30,T=19,k=2*_+1,E=15,j=16,A=7,I=256,U=16,M=17,ee=18,V=[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],q=[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],G=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],re=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ae=512,de=new Array((_+2)*2);r(de);var we=new Array(S*2);r(we);var Ie=new Array(ae);r(Ie);var je=new Array(m-d+1);r(je);var se=new Array(y);r(se);var Te=new Array(S);r(Te);function J(C,Z,oe,Ae,le){this.static_tree=C,this.extra_bits=Z,this.extra_base=oe,this.elems=Ae,this.max_length=le,this.has_stree=C&&C.length}l(J,"o0"),e(J,"StaticTreeDesc");var ue,te,X;function ye(C,Z){this.dyn_tree=C,this.max_code=0,this.stat_desc=Z}l(ye,"a0"),e(ye,"TreeDesc");function Re(C){return C<256?Ie[C]:Ie[256+(C>>>7)]}l(Re,"Xx"),e(Re,"d_code");function De(C,Z){C.pending_buf[C.pending++]=Z&255,C.pending_buf[C.pending++]=Z>>>8&255}l(De,"gf"),e(De,"put_short");function Y(C,Z,oe){C.bi_valid>j-oe?(C.bi_buf|=Z<<C.bi_valid&65535,De(C,C.bi_buf),C.bi_buf=Z>>j-C.bi_valid,C.bi_valid+=oe-j):(C.bi_buf|=Z<<C.bi_valid&65535,C.bi_valid+=oe)}l(Y,"mr"),e(Y,"send_bits");function H(C,Z,oe){Y(C,oe[Z*2],oe[Z*2+1])}l(H,"Tn"),e(H,"send_code");function Q(C,Z){var oe=0;do oe|=C&1,C>>>=1,oe<<=1;while(--Z>0);return oe>>>1}l(Q,"Jx"),e(Q,"bi_reverse");function fe(C){C.bi_valid===16?(De(C,C.bi_buf),C.bi_buf=0,C.bi_valid=0):C.bi_valid>=8&&(C.pending_buf[C.pending++]=C.bi_buf&255,C.bi_buf>>=8,C.bi_valid-=8)}l(fe,"iV"),e(fe,"bi_flush");function ve(C,Z){var oe=Z.dyn_tree,Ae=Z.max_code,le=Z.stat_desc.static_tree,Fe=Z.stat_desc.has_stree,ie=Z.stat_desc.extra_bits,Je=Z.stat_desc.extra_base,dt=Z.stat_desc.max_length,W,qe,Ve,pe,Le,He,me=0;for(pe=0;pe<=E;pe++)C.bl_count[pe]=0;for(oe[C.heap[C.heap_max]*2+1]=0,W=C.heap_max+1;W<k;W++)qe=C.heap[W],pe=oe[oe[qe*2+1]*2+1]+1,pe>dt&&(pe=dt,me++),oe[qe*2+1]=pe,!(qe>Ae)&&(C.bl_count[pe]++,Le=0,qe>=Je&&(Le=ie[qe-Je]),He=oe[qe*2],C.opt_len+=He*(pe+Le),Fe&&(C.static_len+=He*(le[qe*2+1]+Le)));if(me!==0){do{for(pe=dt-1;C.bl_count[pe]===0;)pe--;C.bl_count[pe]--,C.bl_count[pe+1]+=2,C.bl_count[dt]--,me-=2}while(me>0);for(pe=dt;pe!==0;pe--)for(qe=C.bl_count[pe];qe!==0;)Ve=C.heap[--W],!(Ve>Ae)&&(oe[Ve*2+1]!==pe&&(C.opt_len+=(pe-oe[Ve*2+1])*oe[Ve*2],oe[Ve*2+1]=pe),qe--)}}l(ve,"oV"),e(ve,"gen_bitlen");function N(C,Z,oe){var Ae=new Array(E+1),le=0,Fe,ie;for(Fe=1;Fe<=E;Fe++)Ae[Fe]=le=le+oe[Fe-1]<<1;for(ie=0;ie<=Z;ie++){var Je=C[ie*2+1];Je!==0&&(C[ie*2]=Q(Ae[Je]++,Je))}}l(N,"Zx"),e(N,"gen_codes");function x(){var C,Z,oe,Ae,le,Fe=new Array(E+1);for(oe=0,Ae=0;Ae<y-1;Ae++)for(se[Ae]=oe,C=0;C<1<<V[Ae];C++)je[oe++]=Ae;for(je[oe-1]=Ae,le=0,Ae=0;Ae<16;Ae++)for(Te[Ae]=le,C=0;C<1<<q[Ae];C++)Ie[le++]=Ae;for(le>>=7;Ae<S;Ae++)for(Te[Ae]=le<<7,C=0;C<1<<q[Ae]-7;C++)Ie[256+le++]=Ae;for(Z=0;Z<=E;Z++)Fe[Z]=0;for(C=0;C<=143;)de[C*2+1]=8,C++,Fe[8]++;for(;C<=255;)de[C*2+1]=9,C++,Fe[9]++;for(;C<=279;)de[C*2+1]=7,C++,Fe[7]++;for(;C<=287;)de[C*2+1]=8,C++,Fe[8]++;for(N(de,_+1,Fe),C=0;C<S;C++)we[C*2+1]=5,we[C*2]=Q(C,5);ue=new J(de,V,w+1,_,E),te=new J(we,q,0,S,E),X=new J(new Array(0),G,0,T,A)}l(x,"aV"),e(x,"tr_static_init");function D(C){var Z;for(Z=0;Z<_;Z++)C.dyn_ltree[Z*2]=0;for(Z=0;Z<S;Z++)C.dyn_dtree[Z*2]=0;for(Z=0;Z<T;Z++)C.bl_tree[Z*2]=0;C.dyn_ltree[I*2]=1,C.opt_len=C.static_len=0,C.last_lit=C.matches=0}l(D,"Qx"),e(D,"init_block");function z(C){C.bi_valid>8?De(C,C.bi_buf):C.bi_valid>0&&(C.pending_buf[C.pending++]=C.bi_buf),C.bi_buf=0,C.bi_valid=0}l(z,"eO"),e(z,"bi_windup");function Ee(C,Z,oe,Ae){z(C),Ae&&(De(C,oe),De(C,~oe)),i.arraySet(C.pending_buf,C.window,Z,oe,C.pending),C.pending+=oe}l(Ee,"sV"),e(Ee,"copy_block");function ke(C,Z,oe,Ae){var le=Z*2,Fe=oe*2;return C[le]<C[Fe]||C[le]===C[Fe]&&Ae[Z]<=Ae[oe]}l(ke,"Dx"),e(ke,"smaller");function be(C,Z,oe){for(var Ae=C.heap[oe],le=oe<<1;le<=C.heap_len&&(le<C.heap_len&&ke(Z,C.heap[le+1],C.heap[le],C.depth)&&le++,!ke(Z,Ae,C.heap[le],C.depth));)C.heap[oe]=C.heap[le],oe=le,le<<=1;C.heap[oe]=Ae}l(be,"s0"),e(be,"pqdownheap");function ge(C,Z,oe){var Ae,le,Fe=0,ie,Je;if(C.last_lit!==0)do Ae=C.pending_buf[C.d_buf+Fe*2]<<8|C.pending_buf[C.d_buf+Fe*2+1],le=C.pending_buf[C.l_buf+Fe],Fe++,Ae===0?H(C,le,Z):(ie=je[le],H(C,ie+w+1,Z),Je=V[ie],Je!==0&&(le-=se[ie],Y(C,le,Je)),Ae--,ie=Re(Ae),H(C,ie,oe),Je=q[ie],Je!==0&&(Ae-=Te[ie],Y(C,Ae,Je)));while(Fe<C.last_lit);H(C,I,Z)}l(ge,"Nx"),e(ge,"compress_block");function Ne(C,Z){var oe=Z.dyn_tree,Ae=Z.stat_desc.static_tree,le=Z.stat_desc.has_stree,Fe=Z.stat_desc.elems,ie,Je,dt=-1,W;for(C.heap_len=0,C.heap_max=k,ie=0;ie<Fe;ie++)oe[ie*2]!==0?(C.heap[++C.heap_len]=dt=ie,C.depth[ie]=0):oe[ie*2+1]=0;for(;C.heap_len<2;)W=C.heap[++C.heap_len]=dt<2?++dt:0,oe[W*2]=1,C.depth[W]=0,C.opt_len--,le&&(C.static_len-=Ae[W*2+1]);for(Z.max_code=dt,ie=C.heap_len>>1;ie>=1;ie--)be(C,oe,ie);W=Fe;do ie=C.heap[1],C.heap[1]=C.heap[C.heap_len--],be(C,oe,1),Je=C.heap[1],C.heap[--C.heap_max]=ie,C.heap[--C.heap_max]=Je,oe[W*2]=oe[ie*2]+oe[Je*2],C.depth[W]=(C.depth[ie]>=C.depth[Je]?C.depth[ie]:C.depth[Je])+1,oe[ie*2+1]=oe[Je*2+1]=W,C.heap[1]=W++,be(C,oe,1);while(C.heap_len>=2);C.heap[--C.heap_max]=C.heap[1],ve(C,Z),N(oe,dt,C.bl_count)}l(Ne,"f0"),e(Ne,"build_tree");function xe(C,Z,oe){var Ae,le=-1,Fe,ie=Z[0*2+1],Je=0,dt=7,W=4;for(ie===0&&(dt=138,W=3),Z[(oe+1)*2+1]=65535,Ae=0;Ae<=oe;Ae++)Fe=ie,ie=Z[(Ae+1)*2+1],!(++Je<dt&&Fe===ie)&&(Je<W?C.bl_tree[Fe*2]+=Je:Fe!==0?(Fe!==le&&C.bl_tree[Fe*2]++,C.bl_tree[U*2]++):Je<=10?C.bl_tree[M*2]++:C.bl_tree[ee*2]++,Je=0,le=Fe,ie===0?(dt=138,W=3):Fe===ie?(dt=6,W=3):(dt=7,W=4))}l(xe,"$x"),e(xe,"scan_tree");function Oe(C,Z,oe){var Ae,le=-1,Fe,ie=Z[0*2+1],Je=0,dt=7,W=4;for(ie===0&&(dt=138,W=3),Ae=0;Ae<=oe;Ae++)if(Fe=ie,ie=Z[(Ae+1)*2+1],!(++Je<dt&&Fe===ie)){if(Je<W)do H(C,Fe,C.bl_tree);while(--Je!==0);else Fe!==0?(Fe!==le&&(H(C,Fe,C.bl_tree),Je--),H(C,U,C.bl_tree),Y(C,Je-3,2)):Je<=10?(H(C,M,C.bl_tree),Y(C,Je-3,3)):(H(C,ee,C.bl_tree),Y(C,Je-11,7));Je=0,le=Fe,ie===0?(dt=138,W=3):Fe===ie?(dt=6,W=3):(dt=7,W=4)}}l(Oe,"Mx"),e(Oe,"send_tree");function Pe(C){var Z;for(xe(C,C.dyn_ltree,C.l_desc.max_code),xe(C,C.dyn_dtree,C.d_desc.max_code),Ne(C,C.bl_desc),Z=T-1;Z>=3&&C.bl_tree[re[Z]*2+1]===0;Z--);return C.opt_len+=3*(Z+1)+5+5+4,Z}l(Pe,"lV"),e(Pe,"build_bl_tree");function $e(C,Z,oe,Ae){var le;for(Y(C,Z-257,5),Y(C,oe-1,5),Y(C,Ae-4,4),le=0;le<Ae;le++)Y(C,C.bl_tree[re[le]*2+1],3);Oe(C,C.dyn_ltree,Z-1),Oe(C,C.dyn_dtree,oe-1)}l($e,"fV"),e($e,"send_all_trees");function Ke(C){var Z=4093624447,oe;for(oe=0;oe<=31;oe++,Z>>>=1)if(Z&1&&C.dyn_ltree[oe*2]!==0)return g;if(C.dyn_ltree[9*2]!==0||C.dyn_ltree[10*2]!==0||C.dyn_ltree[13*2]!==0)return a;for(oe=32;oe<w;oe++)if(C.dyn_ltree[oe*2]!==0)return a;return g}l(Ke,"uV"),e(Ke,"detect_data_type");var t=!1;function s(C){t||(x(),t=!0),C.l_desc=new ye(C.dyn_ltree,ue),C.d_desc=new ye(C.dyn_dtree,te),C.bl_desc=new ye(C.bl_tree,X),C.bi_buf=0,C.bi_valid=0,D(C)}l(s,"cV"),e(s,"_tr_init");function h(C,Z,oe,Ae){Y(C,(u<<1)+(Ae?1:0),3),Ee(C,Z,oe,!0)}l(h,"tO"),e(h,"_tr_stored_block");function v(C){Y(C,p<<1,3),H(C,I,de),fe(C)}l(v,"hV"),e(v,"_tr_align");function R(C,Z,oe,Ae){var le,Fe,ie=0;C.level>0?(C.strm.data_type===n&&(C.strm.data_type=Ke(C)),Ne(C,C.l_desc),Ne(C,C.d_desc),ie=Pe(C),le=C.opt_len+3+7>>>3,Fe=C.static_len+3+7>>>3,Fe<=le&&(le=Fe)):le=Fe=oe+5,oe+4<=le&&Z!==-1?h(C,Z,oe,Ae):C.strategy===f||Fe===le?(Y(C,(p<<1)+(Ae?1:0),3),ge(C,de,we)):(Y(C,(c<<1)+(Ae?1:0),3),$e(C,C.l_desc.max_code+1,C.d_desc.max_code+1,ie+1),ge(C,C.dyn_ltree,C.dyn_dtree)),D(C),Ae&&z(C)}l(R,"dV"),e(R,"_tr_flush_block");function P(C,Z,oe){return C.pending_buf[C.d_buf+C.last_lit*2]=Z>>>8&255,C.pending_buf[C.d_buf+C.last_lit*2+1]=Z&255,C.pending_buf[C.l_buf+C.last_lit]=oe&255,C.last_lit++,Z===0?C.dyn_ltree[oe*2]++:(C.matches++,Z--,C.dyn_ltree[(je[oe]+w+1)*2]++,C.dyn_dtree[Re(Z)*2]++),C.last_lit===C.lit_bufsize-1}l(P,"pV"),e(P,"_tr_tally"),o._tr_init=s,o._tr_stored_block=h,o._tr_flush_block=R,o._tr_tally=P,o._tr_align=v}),Kj=Ge((o,i)=>{"use strict";function f(g,a,n,r){for(var u=g&65535|0,p=g>>>16&65535|0,c=0;n!==0;){c=n>2e3?2e3:n,n-=c;do u=u+a[r++]|0,p=p+u|0;while(--c);u%=65521,p%=65521}return u|p<<16|0}l(f,"yV"),e(f,"adler32"),i.exports=f}),Jj=Ge((o,i)=>{"use strict";function f(){for(var n,r=[],u=0;u<256;u++){n=u;for(var p=0;p<8;p++)n=n&1?3988292384^n>>>1:n>>>1;r[u]=n}return r}l(f,"mV"),e(f,"makeTable");var g=f();function a(n,r,u,p){var c=g,d=p+u;n^=-1;for(var m=p;m<d;m++)n=n>>>8^c[(n^r[m])&255];return n^-1}l(a,"wV"),e(a,"crc32"),i.exports=a}),ZE=Ge((o,i)=>{"use strict";i.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"}}),u3=Ge(o=>{"use strict";var i=Ji(),f=f3(),g=Kj(),a=Jj(),n=ZE(),r=0,u=1,p=3,c=4,d=5,m=0,y=1,w=-2,_=-3,S=-5,T=-1,k=1,E=2,j=3,A=4,I=0,U=2,M=8,ee=9,V=15,q=8,G=29,re=256,ae=re+1+G,de=30,we=19,Ie=2*ae+1,je=15,se=3,Te=258,J=Te+se+1,ue=32,te=42,X=69,ye=73,Re=91,De=103,Y=113,H=666,Q=1,fe=2,ve=3,N=4,x=3;function D(W,qe){return W.msg=n[qe],qe}l(D,"eo"),e(D,"err");function z(W){return(W<<1)-(W>4?9:0)}l(z,"lO"),e(z,"rank");function Ee(W){for(var qe=W.length;--qe>=0;)W[qe]=0}l(Ee,"Zi"),e(Ee,"zero");function ke(W){var qe=W.state,Ve=qe.pending;Ve>W.avail_out&&(Ve=W.avail_out),Ve!==0&&(i.arraySet(W.output,qe.pending_buf,qe.pending_out,Ve,W.next_out),W.next_out+=Ve,qe.pending_out+=Ve,W.total_out+=Ve,W.avail_out-=Ve,qe.pending-=Ve,qe.pending===0&&(qe.pending_out=0))}l(ke,"Ji"),e(ke,"flush_pending");function be(W,qe){f._tr_flush_block(W,W.block_start>=0?W.block_start:-1,W.strstart-W.block_start,qe),W.block_start=W.strstart,ke(W.strm)}l(be,"zt"),e(be,"flush_block_only");function ge(W,qe){W.pending_buf[W.pending++]=qe}l(ge,"tt"),e(ge,"put_byte");function Ne(W,qe){W.pending_buf[W.pending++]=qe>>>8&255,W.pending_buf[W.pending++]=qe&255}l(Ne,"vf"),e(Ne,"putShortMSB");function xe(W,qe,Ve,pe){var Le=W.avail_in;return Le>pe&&(Le=pe),Le===0?0:(W.avail_in-=Le,i.arraySet(qe,W.input,W.next_in,Le,Ve),W.state.wrap===1?W.adler=g(W.adler,qe,Le,Ve):W.state.wrap===2&&(W.adler=a(W.adler,qe,Le,Ve)),W.next_in+=Le,W.total_in+=Le,Le)}l(xe,"UV"),e(xe,"read_buf");function Oe(W,qe){var Ve=W.max_chain_length,pe=W.strstart,Le,He,me=W.prev_length,Se=W.nice_match,We=W.strstart>W.w_size-J?W.strstart-(W.w_size-J):0,Qe=W.window,lt=W.w_mask,bt=W.prev,ht=W.strstart+Te,kt=Qe[pe+me-1],zt=Qe[pe+me];W.prev_length>=W.good_match&&(Ve>>=2),Se>W.lookahead&&(Se=W.lookahead);do if(Le=qe,!(Qe[Le+me]!==zt||Qe[Le+me-1]!==kt||Qe[Le]!==Qe[pe]||Qe[++Le]!==Qe[pe+1])){pe+=2,Le++;do;while(Qe[++pe]===Qe[++Le]&&Qe[++pe]===Qe[++Le]&&Qe[++pe]===Qe[++Le]&&Qe[++pe]===Qe[++Le]&&Qe[++pe]===Qe[++Le]&&Qe[++pe]===Qe[++Le]&&Qe[++pe]===Qe[++Le]&&Qe[++pe]===Qe[++Le]&&pe<ht);if(He=Te-(ht-pe),pe=ht-Te,He>me){if(W.match_start=qe,me=He,He>=Se)break;kt=Qe[pe+me-1],zt=Qe[pe+me]}}while((qe=bt[qe&lt])>We&&--Ve!==0);return me<=W.lookahead?me:W.lookahead}l(Oe,"uO"),e(Oe,"longest_match");function Pe(W){var qe=W.w_size,Ve,pe,Le,He,me;do{if(He=W.window_size-W.lookahead-W.strstart,W.strstart>=qe+(qe-J)){i.arraySet(W.window,W.window,qe,qe,0),W.match_start-=qe,W.strstart-=qe,W.block_start-=qe,pe=W.hash_size,Ve=pe;do Le=W.head[--Ve],W.head[Ve]=Le>=qe?Le-qe:0;while(--pe);pe=qe,Ve=pe;do Le=W.prev[--Ve],W.prev[Ve]=Le>=qe?Le-qe:0;while(--pe);He+=qe}if(W.strm.avail_in===0)break;if(pe=xe(W.strm,W.window,W.strstart+W.lookahead,He),W.lookahead+=pe,W.lookahead+W.insert>=se)for(me=W.strstart-W.insert,W.ins_h=W.window[me],W.ins_h=(W.ins_h<<W.hash_shift^W.window[me+1])&W.hash_mask;W.insert&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[me+se-1])&W.hash_mask,W.prev[me&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=me,me++,W.insert--,!(W.lookahead+W.insert<se)););}while(W.lookahead<J&&W.strm.avail_in!==0)}l(Pe,"ea"),e(Pe,"fill_window");function $e(W,qe){var Ve=65535;for(Ve>W.pending_buf_size-5&&(Ve=W.pending_buf_size-5);;){if(W.lookahead<=1){if(Pe(W),W.lookahead===0&&qe===r)return Q;if(W.lookahead===0)break}W.strstart+=W.lookahead,W.lookahead=0;var pe=W.block_start+Ve;if((W.strstart===0||W.strstart>=pe)&&(W.lookahead=W.strstart-pe,W.strstart=pe,be(W,!1),W.strm.avail_out===0)||W.strstart-W.block_start>=W.w_size-J&&(be(W,!1),W.strm.avail_out===0))return Q}return W.insert=0,qe===c?(be(W,!0),W.strm.avail_out===0?ve:N):(W.strstart>W.block_start&&(be(W,!1),W.strm.avail_out),Q)}l($e,"jV"),e($e,"deflate_stored");function Ke(W,qe){for(var Ve,pe;;){if(W.lookahead<J){if(Pe(W),W.lookahead<J&&qe===r)return Q;if(W.lookahead===0)break}if(Ve=0,W.lookahead>=se&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+se-1])&W.hash_mask,Ve=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart),Ve!==0&&W.strstart-Ve<=W.w_size-J&&(W.match_length=Oe(W,Ve)),W.match_length>=se)if(pe=f._tr_tally(W,W.strstart-W.match_start,W.match_length-se),W.lookahead-=W.match_length,W.match_length<=W.max_lazy_match&&W.lookahead>=se){W.match_length--;do W.strstart++,W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+se-1])&W.hash_mask,Ve=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart;while(--W.match_length!==0);W.strstart++}else W.strstart+=W.match_length,W.match_length=0,W.ins_h=W.window[W.strstart],W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+1])&W.hash_mask;else pe=f._tr_tally(W,0,W.window[W.strstart]),W.lookahead--,W.strstart++;if(pe&&(be(W,!1),W.strm.avail_out===0))return Q}return W.insert=W.strstart<se-1?W.strstart:se-1,qe===c?(be(W,!0),W.strm.avail_out===0?ve:N):W.last_lit&&(be(W,!1),W.strm.avail_out===0)?Q:fe}l(Ke,"g0"),e(Ke,"deflate_fast");function t(W,qe){for(var Ve,pe,Le;;){if(W.lookahead<J){if(Pe(W),W.lookahead<J&&qe===r)return Q;if(W.lookahead===0)break}if(Ve=0,W.lookahead>=se&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+se-1])&W.hash_mask,Ve=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart),W.prev_length=W.match_length,W.prev_match=W.match_start,W.match_length=se-1,Ve!==0&&W.prev_length<W.max_lazy_match&&W.strstart-Ve<=W.w_size-J&&(W.match_length=Oe(W,Ve),W.match_length<=5&&(W.strategy===k||W.match_length===se&&W.strstart-W.match_start>4096)&&(W.match_length=se-1)),W.prev_length>=se&&W.match_length<=W.prev_length){Le=W.strstart+W.lookahead-se,pe=f._tr_tally(W,W.strstart-1-W.prev_match,W.prev_length-se),W.lookahead-=W.prev_length-1,W.prev_length-=2;do++W.strstart<=Le&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+se-1])&W.hash_mask,Ve=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart);while(--W.prev_length!==0);if(W.match_available=0,W.match_length=se-1,W.strstart++,pe&&(be(W,!1),W.strm.avail_out===0))return Q}else if(W.match_available){if(pe=f._tr_tally(W,0,W.window[W.strstart-1]),pe&&be(W,!1),W.strstart++,W.lookahead--,W.strm.avail_out===0)return Q}else W.match_available=1,W.strstart++,W.lookahead--}return W.match_available&&(pe=f._tr_tally(W,0,W.window[W.strstart-1]),W.match_available=0),W.insert=W.strstart<se-1?W.strstart:se-1,qe===c?(be(W,!0),W.strm.avail_out===0?ve:N):W.last_lit&&(be(W,!1),W.strm.avail_out===0)?Q:fe}l(t,"Rs"),e(t,"deflate_slow");function s(W,qe){for(var Ve,pe,Le,He,me=W.window;;){if(W.lookahead<=Te){if(Pe(W),W.lookahead<=Te&&qe===r)return Q;if(W.lookahead===0)break}if(W.match_length=0,W.lookahead>=se&&W.strstart>0&&(Le=W.strstart-1,pe=me[Le],pe===me[++Le]&&pe===me[++Le]&&pe===me[++Le])){He=W.strstart+Te;do;while(pe===me[++Le]&&pe===me[++Le]&&pe===me[++Le]&&pe===me[++Le]&&pe===me[++Le]&&pe===me[++Le]&&pe===me[++Le]&&pe===me[++Le]&&Le<He);W.match_length=Te-(He-Le),W.match_length>W.lookahead&&(W.match_length=W.lookahead)}if(W.match_length>=se?(Ve=f._tr_tally(W,1,W.match_length-se),W.lookahead-=W.match_length,W.strstart+=W.match_length,W.match_length=0):(Ve=f._tr_tally(W,0,W.window[W.strstart]),W.lookahead--,W.strstart++),Ve&&(be(W,!1),W.strm.avail_out===0))return Q}return W.insert=0,qe===c?(be(W,!0),W.strm.avail_out===0?ve:N):W.last_lit&&(be(W,!1),W.strm.avail_out===0)?Q:fe}l(s,"HV"),e(s,"deflate_rle");function h(W,qe){for(var Ve;;){if(W.lookahead===0&&(Pe(W),W.lookahead===0)){if(qe===r)return Q;break}if(W.match_length=0,Ve=f._tr_tally(W,0,W.window[W.strstart]),W.lookahead--,W.strstart++,Ve&&(be(W,!1),W.strm.avail_out===0))return Q}return W.insert=0,qe===c?(be(W,!0),W.strm.avail_out===0?ve:N):W.last_lit&&(be(W,!1),W.strm.avail_out===0)?Q:fe}l(h,"WV"),e(h,"deflate_huff");function v(W,qe,Ve,pe,Le){this.good_length=W,this.max_lazy=qe,this.nice_length=Ve,this.max_chain=pe,this.func=Le}l(v,"Fn"),e(v,"Config");var R;R=[new v(0,0,0,0,$e),new v(4,4,8,4,Ke),new v(4,5,16,8,Ke),new v(4,6,32,32,Ke),new v(4,4,16,16,t),new v(8,16,32,32,t),new v(8,16,128,128,t),new v(8,32,128,256,t),new v(32,128,258,1024,t),new v(32,258,258,4096,t)];function P(W){W.window_size=2*W.w_size,Ee(W.head),W.max_lazy_match=R[W.level].max_lazy,W.good_match=R[W.level].good_length,W.nice_match=R[W.level].nice_length,W.max_chain_length=R[W.level].max_chain,W.strstart=0,W.block_start=0,W.lookahead=0,W.insert=0,W.match_length=W.prev_length=se-1,W.match_available=0,W.ins_h=0}l(P,"qV"),e(P,"lm_init");function C(){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=M,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 i.Buf16(Ie*2),this.dyn_dtree=new i.Buf16((2*de+1)*2),this.bl_tree=new i.Buf16((2*we+1)*2),Ee(this.dyn_ltree),Ee(this.dyn_dtree),Ee(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(je+1),this.heap=new i.Buf16(2*ae+1),Ee(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*ae+1),Ee(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}l(C,"zV"),e(C,"DeflateState");function Z(W){var qe;return!W||!W.state?D(W,w):(W.total_in=W.total_out=0,W.data_type=U,qe=W.state,qe.pending=0,qe.pending_out=0,qe.wrap<0&&(qe.wrap=-qe.wrap),qe.status=qe.wrap?te:Y,W.adler=qe.wrap===2?0:1,qe.last_flush=r,f._tr_init(qe),m)}l(Z,"cO"),e(Z,"deflateResetKeep");function oe(W){var qe=Z(W);return qe===m&&P(W.state),qe}l(oe,"hO"),e(oe,"deflateReset");function Ae(W,qe){return!W||!W.state||W.state.wrap!==2?w:(W.state.gzhead=qe,m)}l(Ae,"VV"),e(Ae,"deflateSetHeader");function le(W,qe,Ve,pe,Le,He){if(!W)return w;var me=1;if(qe===T&&(qe=6),pe<0?(me=0,pe=-pe):pe>15&&(me=2,pe-=16),Le<1||Le>ee||Ve!==M||pe<8||pe>15||qe<0||qe>9||He<0||He>A)return D(W,w);pe===8&&(pe=9);var Se=new C;return W.state=Se,Se.strm=W,Se.wrap=me,Se.gzhead=null,Se.w_bits=pe,Se.w_size=1<<Se.w_bits,Se.w_mask=Se.w_size-1,Se.hash_bits=Le+7,Se.hash_size=1<<Se.hash_bits,Se.hash_mask=Se.hash_size-1,Se.hash_shift=~~((Se.hash_bits+se-1)/se),Se.window=new i.Buf8(Se.w_size*2),Se.head=new i.Buf16(Se.hash_size),Se.prev=new i.Buf16(Se.w_size),Se.lit_bufsize=1<<Le+6,Se.pending_buf_size=Se.lit_bufsize*4,Se.pending_buf=new i.Buf8(Se.pending_buf_size),Se.d_buf=1*Se.lit_bufsize,Se.l_buf=3*Se.lit_bufsize,Se.level=qe,Se.strategy=He,Se.method=Ve,oe(W)}l(le,"dO"),e(le,"deflateInit2");function Fe(W,qe){return le(W,qe,M,V,q,I)}l(Fe,"GV"),e(Fe,"deflateInit");function ie(W,qe){var Ve,pe,Le,He;if(!W||!W.state||qe>d||qe<0)return W?D(W,w):w;if(pe=W.state,!W.output||!W.input&&W.avail_in!==0||pe.status===H&&qe!==c)return D(W,W.avail_out===0?S:w);if(pe.strm=W,Ve=pe.last_flush,pe.last_flush=qe,pe.status===te)if(pe.wrap===2)W.adler=0,ge(pe,31),ge(pe,139),ge(pe,8),pe.gzhead?(ge(pe,(pe.gzhead.text?1:0)+(pe.gzhead.hcrc?2:0)+(pe.gzhead.extra?4:0)+(pe.gzhead.name?8:0)+(pe.gzhead.comment?16:0)),ge(pe,pe.gzhead.time&255),ge(pe,pe.gzhead.time>>8&255),ge(pe,pe.gzhead.time>>16&255),ge(pe,pe.gzhead.time>>24&255),ge(pe,pe.level===9?2:pe.strategy>=E||pe.level<2?4:0),ge(pe,pe.gzhead.os&255),pe.gzhead.extra&&pe.gzhead.extra.length&&(ge(pe,pe.gzhead.extra.length&255),ge(pe,pe.gzhead.extra.length>>8&255)),pe.gzhead.hcrc&&(W.adler=a(W.adler,pe.pending_buf,pe.pending,0)),pe.gzindex=0,pe.status=X):(ge(pe,0),ge(pe,0),ge(pe,0),ge(pe,0),ge(pe,0),ge(pe,pe.level===9?2:pe.strategy>=E||pe.level<2?4:0),ge(pe,x),pe.status=Y);else{var me=M+(pe.w_bits-8<<4)<<8,Se=-1;pe.strategy>=E||pe.level<2?Se=0:pe.level<6?Se=1:pe.level===6?Se=2:Se=3,me|=Se<<6,pe.strstart!==0&&(me|=ue),me+=31-me%31,pe.status=Y,Ne(pe,me),pe.strstart!==0&&(Ne(pe,W.adler>>>16),Ne(pe,W.adler&65535)),W.adler=1}if(pe.status===X)if(pe.gzhead.extra){for(Le=pe.pending;pe.gzindex<(pe.gzhead.extra.length&65535)&&!(pe.pending===pe.pending_buf_size&&(pe.gzhead.hcrc&&pe.pending>Le&&(W.adler=a(W.adler,pe.pending_buf,pe.pending-Le,Le)),ke(W),Le=pe.pending,pe.pending===pe.pending_buf_size));)ge(pe,pe.gzhead.extra[pe.gzindex]&255),pe.gzindex++;pe.gzhead.hcrc&&pe.pending>Le&&(W.adler=a(W.adler,pe.pending_buf,pe.pending-Le,Le)),pe.gzindex===pe.gzhead.extra.length&&(pe.gzindex=0,pe.status=ye)}else pe.status=ye;if(pe.status===ye)if(pe.gzhead.name){Le=pe.pending;do{if(pe.pending===pe.pending_buf_size&&(pe.gzhead.hcrc&&pe.pending>Le&&(W.adler=a(W.adler,pe.pending_buf,pe.pending-Le,Le)),ke(W),Le=pe.pending,pe.pending===pe.pending_buf_size)){He=1;break}pe.gzindex<pe.gzhead.name.length?He=pe.gzhead.name.charCodeAt(pe.gzindex++)&255:He=0,ge(pe,He)}while(He!==0);pe.gzhead.hcrc&&pe.pending>Le&&(W.adler=a(W.adler,pe.pending_buf,pe.pending-Le,Le)),He===0&&(pe.gzindex=0,pe.status=Re)}else pe.status=Re;if(pe.status===Re)if(pe.gzhead.comment){Le=pe.pending;do{if(pe.pending===pe.pending_buf_size&&(pe.gzhead.hcrc&&pe.pending>Le&&(W.adler=a(W.adler,pe.pending_buf,pe.pending-Le,Le)),ke(W),Le=pe.pending,pe.pending===pe.pending_buf_size)){He=1;break}pe.gzindex<pe.gzhead.comment.length?He=pe.gzhead.comment.charCodeAt(pe.gzindex++)&255:He=0,ge(pe,He)}while(He!==0);pe.gzhead.hcrc&&pe.pending>Le&&(W.adler=a(W.adler,pe.pending_buf,pe.pending-Le,Le)),He===0&&(pe.status=De)}else pe.status=De;if(pe.status===De&&(pe.gzhead.hcrc?(pe.pending+2>pe.pending_buf_size&&ke(W),pe.pending+2<=pe.pending_buf_size&&(ge(pe,W.adler&255),ge(pe,W.adler>>8&255),W.adler=0,pe.status=Y)):pe.status=Y),pe.pending!==0){if(ke(W),W.avail_out===0)return pe.last_flush=-1,m}else if(W.avail_in===0&&z(qe)<=z(Ve)&&qe!==c)return D(W,S);if(pe.status===H&&W.avail_in!==0)return D(W,S);if(W.avail_in!==0||pe.lookahead!==0||qe!==r&&pe.status!==H){var We=pe.strategy===E?h(pe,qe):pe.strategy===j?s(pe,qe):R[pe.level].func(pe,qe);if((We===ve||We===N)&&(pe.status=H),We===Q||We===ve)return W.avail_out===0&&(pe.last_flush=-1),m;if(We===fe&&(qe===u?f._tr_align(pe):qe!==d&&(f._tr_stored_block(pe,0,0,!1),qe===p&&(Ee(pe.head),pe.lookahead===0&&(pe.strstart=0,pe.block_start=0,pe.insert=0))),ke(W),W.avail_out===0))return pe.last_flush=-1,m}return qe!==c?m:pe.wrap<=0?y:(pe.wrap===2?(ge(pe,W.adler&255),ge(pe,W.adler>>8&255),ge(pe,W.adler>>16&255),ge(pe,W.adler>>24&255),ge(pe,W.total_in&255),ge(pe,W.total_in>>8&255),ge(pe,W.total_in>>16&255),ge(pe,W.total_in>>24&255)):(Ne(pe,W.adler>>>16),Ne(pe,W.adler&65535)),ke(W),pe.wrap>0&&(pe.wrap=-pe.wrap),pe.pending!==0?m:y)}l(ie,"YV"),e(ie,"deflate");function Je(W){var qe;return!W||!W.state?w:(qe=W.state.status,qe!==te&&qe!==X&&qe!==ye&&qe!==Re&&qe!==De&&qe!==Y&&qe!==H?D(W,w):(W.state=null,qe===Y?D(W,_):m))}l(Je,"KV"),e(Je,"deflateEnd");function dt(W,qe){var Ve=qe.length,pe,Le,He,me,Se,We,Qe,lt;if(!W||!W.state||(pe=W.state,me=pe.wrap,me===2||me===1&&pe.status!==te||pe.lookahead))return w;for(me===1&&(W.adler=g(W.adler,qe,Ve,0)),pe.wrap=0,Ve>=pe.w_size&&(me===0&&(Ee(pe.head),pe.strstart=0,pe.block_start=0,pe.insert=0),lt=new i.Buf8(pe.w_size),i.arraySet(lt,qe,Ve-pe.w_size,pe.w_size,0),qe=lt,Ve=pe.w_size),Se=W.avail_in,We=W.next_in,Qe=W.input,W.avail_in=Ve,W.next_in=0,W.input=qe,Pe(pe);pe.lookahead>=se;){Le=pe.strstart,He=pe.lookahead-(se-1);do pe.ins_h=(pe.ins_h<<pe.hash_shift^pe.window[Le+se-1])&pe.hash_mask,pe.prev[Le&pe.w_mask]=pe.head[pe.ins_h],pe.head[pe.ins_h]=Le,Le++;while(--He);pe.strstart=Le,pe.lookahead=se-1,Pe(pe)}return pe.strstart+=pe.lookahead,pe.block_start=pe.strstart,pe.insert=pe.lookahead,pe.lookahead=0,pe.match_length=pe.prev_length=se-1,pe.match_available=0,W.next_in=We,W.input=Qe,W.avail_in=Se,pe.wrap=me,m}l(dt,"XV"),e(dt,"deflateSetDictionary"),o.deflateInit=Fe,o.deflateInit2=le,o.deflateReset=oe,o.deflateResetKeep=Z,o.deflateSetHeader=Ae,o.deflate=ie,o.deflateEnd=Je,o.deflateSetDictionary=dt,o.deflateInfo="pako deflate (from Nodeca project)"}),Yj=Ge(o=>{"use strict";var i=Ji(),f=!0,g=!0;try{String.fromCharCode.apply(null,[0])}catch{f=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{g=!1}var a=new i.Buf8(256);for(n=0;n<256;n++)a[n]=n>=252?6:n>=248?5:n>=240?4:n>=224?3:n>=192?2:1;var n;a[254]=a[254]=1,o.string2buf=function(u){var p,c,d,m,y,w=u.length,_=0;for(m=0;m<w;m++)c=u.charCodeAt(m),(c&64512)===55296&&m+1<w&&(d=u.charCodeAt(m+1),(d&64512)===56320&&(c=65536+(c-55296<<10)+(d-56320),m++)),_+=c<128?1:c<2048?2:c<65536?3:4;for(p=new i.Buf8(_),y=0,m=0;y<_;m++)c=u.charCodeAt(m),(c&64512)===55296&&m+1<w&&(d=u.charCodeAt(m+1),(d&64512)===56320&&(c=65536+(c-55296<<10)+(d-56320),m++)),c<128?p[y++]=c:c<2048?(p[y++]=192|c>>>6,p[y++]=128|c&63):c<65536?(p[y++]=224|c>>>12,p[y++]=128|c>>>6&63,p[y++]=128|c&63):(p[y++]=240|c>>>18,p[y++]=128|c>>>12&63,p[y++]=128|c>>>6&63,p[y++]=128|c&63);return p};function r(u,p){if(p<65534&&(u.subarray&&g||!u.subarray&&f))return String.fromCharCode.apply(null,i.shrinkBuf(u,p));for(var c="",d=0;d<p;d++)c+=String.fromCharCode(u[d]);return c}l(r,"gO"),e(r,"buf2binstring"),o.buf2binstring=function(u){return r(u,u.length)},o.binstring2buf=function(u){for(var p=new i.Buf8(u.length),c=0,d=p.length;c<d;c++)p[c]=u.charCodeAt(c);return p},o.buf2string=function(u,p){var c,d,m,y,w=p||u.length,_=new Array(w*2);for(d=0,c=0;c<w;){if(m=u[c++],m<128){_[d++]=m;continue}if(y=a[m],y>4){_[d++]=65533,c+=y-1;continue}for(m&=y===2?31:y===3?15:7;y>1&&c<w;)m=m<<6|u[c++]&63,y--;if(y>1){_[d++]=65533;continue}m<65536?_[d++]=m:(m-=65536,_[d++]=55296|m>>10&1023,_[d++]=56320|m&1023)}return r(_,d)},o.utf8border=function(u,p){var c;for(p=p||u.length,p>u.length&&(p=u.length),c=p-1;c>=0&&(u[c]&192)===128;)c--;return c<0||c===0?p:c+a[u[c]]>p?c:p}}),Zj=Ge((o,i)=>{"use strict";function f(){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}l(f,"JV"),e(f,"ZStream"),i.exports=f}),c3=Ge(o=>{"use strict";var i=u3(),f=Ji(),g=Yj(),a=ZE(),n=Zj(),r=Object.prototype.toString,u=0,p=4,c=0,d=1,m=2,y=-1,w=0,_=8;function S(j){if(!(this instanceof S))return new S(j);this.options=f.assign({level:y,method:_,chunkSize:16384,windowBits:15,memLevel:8,strategy:w,to:""},j||{});var A=this.options;A.raw&&A.windowBits>0?A.windowBits=-A.windowBits:A.gzip&&A.windowBits>0&&A.windowBits<16&&(A.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new n,this.strm.avail_out=0;var I=i.deflateInit2(this.strm,A.level,A.method,A.windowBits,A.memLevel,A.strategy);if(I!==c)throw new Error(a[I]);if(A.header&&i.deflateSetHeader(this.strm,A.header),A.dictionary){var U;if(typeof A.dictionary=="string"?U=g.string2buf(A.dictionary):r.call(A.dictionary)==="[object ArrayBuffer]"?U=new Uint8Array(A.dictionary):U=A.dictionary,I=i.deflateSetDictionary(this.strm,U),I!==c)throw new Error(a[I]);this._dict_set=!0}}l(S,"ra"),e(S,"Deflate"),S.prototype.push=function(j,A){var I=this.strm,U=this.options.chunkSize,M,ee;if(this.ended)return!1;ee=A===~~A?A:A===!0?p:u,typeof j=="string"?I.input=g.string2buf(j):r.call(j)==="[object ArrayBuffer]"?I.input=new Uint8Array(j):I.input=j,I.next_in=0,I.avail_in=I.input.length;do{if(I.avail_out===0&&(I.output=new f.Buf8(U),I.next_out=0,I.avail_out=U),M=i.deflate(I,ee),M!==d&&M!==c)return this.onEnd(M),this.ended=!0,!1;(I.avail_out===0||I.avail_in===0&&(ee===p||ee===m))&&(this.options.to==="string"?this.onData(g.buf2binstring(f.shrinkBuf(I.output,I.next_out))):this.onData(f.shrinkBuf(I.output,I.next_out)))}while((I.avail_in>0||I.avail_out===0)&&M!==d);return ee===p?(M=i.deflateEnd(this.strm),this.onEnd(M),this.ended=!0,M===c):(ee===m&&(this.onEnd(c),I.avail_out=0),!0)},S.prototype.onData=function(j){this.chunks.push(j)},S.prototype.onEnd=function(j){j===c&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=f.flattenChunks(this.chunks)),this.chunks=[],this.err=j,this.msg=this.strm.msg};function T(j,A){var I=new S(A);if(I.push(j,!0),I.err)throw I.msg||a[I.err];return I.result}l(T,"R0"),e(T,"deflate");function k(j,A){return A=A||{},A.raw=!0,T(j,A)}l(k,"nG"),e(k,"deflateRaw");function E(j,A){return A=A||{},A.gzip=!0,T(j,A)}l(E,"iG"),e(E,"gzip"),o.Deflate=S,o.deflate=T,o.deflateRaw=k,o.gzip=E}),h3=Ge((o,i)=>{"use strict";var f=30,g=12;i.exports=e(function(a,n){var r,u,p,c,d,m,y,w,_,S,T,k,E,j,A,I,U,M,ee,V,q,G,re,ae,de;r=a.state,u=a.next_in,ae=a.input,p=u+(a.avail_in-5),c=a.next_out,de=a.output,d=c-(n-a.avail_out),m=c+(a.avail_out-257),y=r.dmax,w=r.wsize,_=r.whave,S=r.wnext,T=r.window,k=r.hold,E=r.bits,j=r.lencode,A=r.distcode,I=(1<<r.lenbits)-1,U=(1<<r.distbits)-1;e:do{E<15&&(k+=ae[u++]<<E,E+=8,k+=ae[u++]<<E,E+=8),M=j[k&I];t:for(;;){if(ee=M>>>24,k>>>=ee,E-=ee,ee=M>>>16&255,ee===0)de[c++]=M&65535;else if(ee&16){V=M&65535,ee&=15,ee&&(E<ee&&(k+=ae[u++]<<E,E+=8),V+=k&(1<<ee)-1,k>>>=ee,E-=ee),E<15&&(k+=ae[u++]<<E,E+=8,k+=ae[u++]<<E,E+=8),M=A[k&U];r:for(;;){if(ee=M>>>24,k>>>=ee,E-=ee,ee=M>>>16&255,ee&16){if(q=M&65535,ee&=15,E<ee&&(k+=ae[u++]<<E,E+=8,E<ee&&(k+=ae[u++]<<E,E+=8)),q+=k&(1<<ee)-1,q>y){a.msg="invalid distance too far back",r.mode=f;break e}if(k>>>=ee,E-=ee,ee=c-d,q>ee){if(ee=q-ee,ee>_&&r.sane){a.msg="invalid distance too far back",r.mode=f;break e}if(G=0,re=T,S===0){if(G+=w-ee,ee<V){V-=ee;do de[c++]=T[G++];while(--ee);G=c-q,re=de}}else if(S<ee){if(G+=w+S-ee,ee-=S,ee<V){V-=ee;do de[c++]=T[G++];while(--ee);if(G=0,S<V){ee=S,V-=ee;do de[c++]=T[G++];while(--ee);G=c-q,re=de}}}else if(G+=S-ee,ee<V){V-=ee;do de[c++]=T[G++];while(--ee);G=c-q,re=de}for(;V>2;)de[c++]=re[G++],de[c++]=re[G++],de[c++]=re[G++],V-=3;V&&(de[c++]=re[G++],V>1&&(de[c++]=re[G++]))}else{G=c-q;do de[c++]=de[G++],de[c++]=de[G++],de[c++]=de[G++],V-=3;while(V>2);V&&(de[c++]=de[G++],V>1&&(de[c++]=de[G++]))}}else if(ee&64){a.msg="invalid distance code",r.mode=f;break e}else{M=A[(M&65535)+(k&(1<<ee)-1)];continue r}break}}else if(ee&64)if(ee&32){r.mode=g;break e}else{a.msg="invalid literal/length code",r.mode=f;break e}else{M=j[(M&65535)+(k&(1<<ee)-1)];continue t}break}}while(u<p&&c<m);V=E>>3,u-=V,E-=V<<3,k&=(1<<E)-1,a.next_in=u,a.next_out=c,a.avail_in=u<p?5+(p-u):5-(u-p),a.avail_out=c<m?257+(m-c):257-(c-m),r.hold=k,r.bits=E},"inflate_fast")}),d3=Ge((o,i)=>{"use strict";var f=Ji(),g=15,a=852,n=592,r=0,u=1,p=2,c=[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],d=[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],m=[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],y=[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];i.exports=e(function(w,_,S,T,k,E,j,A){var I=A.bits,U=0,M=0,ee=0,V=0,q=0,G=0,re=0,ae=0,de=0,we=0,Ie,je,se,Te,J,ue=null,te=0,X,ye=new f.Buf16(g+1),Re=new f.Buf16(g+1),De=null,Y=0,H,Q,fe;for(U=0;U<=g;U++)ye[U]=0;for(M=0;M<T;M++)ye[_[S+M]]++;for(q=I,V=g;V>=1&&ye[V]===0;V--);if(q>V&&(q=V),V===0)return k[E++]=1<<24|64<<16|0,k[E++]=1<<24|64<<16|0,A.bits=1,0;for(ee=1;ee<V&&ye[ee]===0;ee++);for(q<ee&&(q=ee),ae=1,U=1;U<=g;U++)if(ae<<=1,ae-=ye[U],ae<0)return-1;if(ae>0&&(w===r||V!==1))return-1;for(Re[1]=0,U=1;U<g;U++)Re[U+1]=Re[U]+ye[U];for(M=0;M<T;M++)_[S+M]!==0&&(j[Re[_[S+M]]++]=M);if(w===r?(ue=De=j,X=19):w===u?(ue=c,te-=257,De=d,Y-=257,X=256):(ue=m,De=y,X=-1),we=0,M=0,U=ee,J=E,G=q,re=0,se=-1,de=1<<q,Te=de-1,w===u&&de>a||w===p&&de>n)return 1;for(;;){H=U-re,j[M]<X?(Q=0,fe=j[M]):j[M]>X?(Q=De[Y+j[M]],fe=ue[te+j[M]]):(Q=96,fe=0),Ie=1<<U-re,je=1<<G,ee=je;do je-=Ie,k[J+(we>>re)+je]=H<<24|Q<<16|fe|0;while(je!==0);for(Ie=1<<U-1;we&Ie;)Ie>>=1;if(Ie!==0?(we&=Ie-1,we+=Ie):we=0,M++,--ye[U]===0){if(U===V)break;U=_[S+j[M]]}if(U>q&&(we&Te)!==se){for(re===0&&(re=q),J+=ee,G=U-re,ae=1<<G;G+re<V&&(ae-=ye[G+re],!(ae<=0));)G++,ae<<=1;if(de+=1<<G,w===u&&de>a||w===p&&de>n)return 1;se=we&Te,k[se]=q<<24|G<<16|J-E|0}}return we!==0&&(k[J+we]=U-re<<24|64<<16|0),A.bits=q,0},"inflate_table")}),p3=Ge(o=>{"use strict";var i=Ji(),f=Kj(),g=Jj(),a=h3(),n=d3(),r=0,u=1,p=2,c=4,d=5,m=6,y=0,w=1,_=2,S=-2,T=-3,k=-4,E=-5,j=8,A=1,I=2,U=3,M=4,ee=5,V=6,q=7,G=8,re=9,ae=10,de=11,we=12,Ie=13,je=14,se=15,Te=16,J=17,ue=18,te=19,X=20,ye=21,Re=22,De=23,Y=24,H=25,Q=26,fe=27,ve=28,N=29,x=30,D=31,z=32,Ee=852,ke=592,be=15,ge=be;function Ne(le){return(le>>>24&255)+(le>>>8&65280)+((le&65280)<<8)+((le&255)<<24)}l(Ne,"tI"),e(Ne,"zswap32");function xe(){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 i.Buf16(320),this.work=new i.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}l(xe,"_G"),e(xe,"InflateState");function Oe(le){var Fe;return!le||!le.state?S:(Fe=le.state,le.total_in=le.total_out=Fe.total=0,le.msg="",Fe.wrap&&(le.adler=Fe.wrap&1),Fe.mode=A,Fe.last=0,Fe.havedict=0,Fe.dmax=32768,Fe.head=null,Fe.hold=0,Fe.bits=0,Fe.lencode=Fe.lendyn=new i.Buf32(Ee),Fe.distcode=Fe.distdyn=new i.Buf32(ke),Fe.sane=1,Fe.back=-1,y)}l(Oe,"sI"),e(Oe,"inflateResetKeep");function Pe(le){var Fe;return!le||!le.state?S:(Fe=le.state,Fe.wsize=0,Fe.whave=0,Fe.wnext=0,Oe(le))}l(Pe,"lI"),e(Pe,"inflateReset");function $e(le,Fe){var ie,Je;return!le||!le.state||(Je=le.state,Fe<0?(ie=0,Fe=-Fe):(ie=(Fe>>4)+1,Fe<48&&(Fe&=15)),Fe&&(Fe<8||Fe>15))?S:(Je.window!==null&&Je.wbits!==Fe&&(Je.window=null),Je.wrap=ie,Je.wbits=Fe,Pe(le))}l($e,"fI"),e($e,"inflateReset2");function Ke(le,Fe){var ie,Je;return le?(Je=new xe,le.state=Je,Je.window=null,ie=$e(le,Fe),ie!==y&&(le.state=null),ie):S}l(Ke,"uI"),e(Ke,"inflateInit2");function t(le){return Ke(le,ge)}l(t,"EG"),e(t,"inflateInit");var s=!0,h,v;function R(le){if(s){var Fe;for(h=new i.Buf32(512),v=new i.Buf32(32),Fe=0;Fe<144;)le.lens[Fe++]=8;for(;Fe<256;)le.lens[Fe++]=9;for(;Fe<280;)le.lens[Fe++]=7;for(;Fe<288;)le.lens[Fe++]=8;for(n(u,le.lens,0,288,h,0,le.work,{bits:9}),Fe=0;Fe<32;)le.lens[Fe++]=5;n(p,le.lens,0,32,v,0,le.work,{bits:5}),s=!1}le.lencode=h,le.lenbits=9,le.distcode=v,le.distbits=5}l(R,"SG"),e(R,"fixedtables");function P(le,Fe,ie,Je){var dt,W=le.state;return W.window===null&&(W.wsize=1<<W.wbits,W.wnext=0,W.whave=0,W.window=new i.Buf8(W.wsize)),Je>=W.wsize?(i.arraySet(W.window,Fe,ie-W.wsize,W.wsize,0),W.wnext=0,W.whave=W.wsize):(dt=W.wsize-W.wnext,dt>Je&&(dt=Je),i.arraySet(W.window,Fe,ie-Je,dt,W.wnext),Je-=dt,Je?(i.arraySet(W.window,Fe,ie-Je,Je,0),W.wnext=Je,W.whave=W.wsize):(W.wnext+=dt,W.wnext===W.wsize&&(W.wnext=0),W.whave<W.wsize&&(W.whave+=dt))),0}l(P,"cI"),e(P,"updatewindow");function C(le,Fe){var ie,Je,dt,W,qe,Ve,pe,Le,He,me,Se,We,Qe,lt,bt=0,ht,kt,zt,Wt,ir,kr,et,er,Tt=new i.Buf8(4),Nt,Ut,pr=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!le||!le.state||!le.output||!le.input&&le.avail_in!==0)return S;ie=le.state,ie.mode===we&&(ie.mode=Ie),qe=le.next_out,dt=le.output,pe=le.avail_out,W=le.next_in,Je=le.input,Ve=le.avail_in,Le=ie.hold,He=ie.bits,me=Ve,Se=pe,er=y;e:for(;;)switch(ie.mode){case A:if(ie.wrap===0){ie.mode=Ie;break}for(;He<16;){if(Ve===0)break e;Ve--,Le+=Je[W++]<<He,He+=8}if(ie.wrap&2&&Le===35615){ie.check=0,Tt[0]=Le&255,Tt[1]=Le>>>8&255,ie.check=g(ie.check,Tt,2,0),Le=0,He=0,ie.mode=I;break}if(ie.flags=0,ie.head&&(ie.head.done=!1),!(ie.wrap&1)||(((Le&255)<<8)+(Le>>8))%31){le.msg="incorrect header check",ie.mode=x;break}if((Le&15)!==j){le.msg="unknown compression method",ie.mode=x;break}if(Le>>>=4,He-=4,et=(Le&15)+8,ie.wbits===0)ie.wbits=et;else if(et>ie.wbits){le.msg="invalid window size",ie.mode=x;break}ie.dmax=1<<et,le.adler=ie.check=1,ie.mode=Le&512?ae:we,Le=0,He=0;break;case I:for(;He<16;){if(Ve===0)break e;Ve--,Le+=Je[W++]<<He,He+=8}if(ie.flags=Le,(ie.flags&255)!==j){le.msg="unknown compression method",ie.mode=x;break}if(ie.flags&57344){le.msg="unknown header flags set",ie.mode=x;break}ie.head&&(ie.head.text=Le>>8&1),ie.flags&512&&(Tt[0]=Le&255,Tt[1]=Le>>>8&255,ie.check=g(ie.check,Tt,2,0)),Le=0,He=0,ie.mode=U;case U:for(;He<32;){if(Ve===0)break e;Ve--,Le+=Je[W++]<<He,He+=8}ie.head&&(ie.head.time=Le),ie.flags&512&&(Tt[0]=Le&255,Tt[1]=Le>>>8&255,Tt[2]=Le>>>16&255,Tt[3]=Le>>>24&255,ie.check=g(ie.check,Tt,4,0)),Le=0,He=0,ie.mode=M;case M:for(;He<16;){if(Ve===0)break e;Ve--,Le+=Je[W++]<<He,He+=8}ie.head&&(ie.head.xflags=Le&255,ie.head.os=Le>>8),ie.flags&512&&(Tt[0]=Le&255,Tt[1]=Le>>>8&255,ie.check=g(ie.check,Tt,2,0)),Le=0,He=0,ie.mode=ee;case ee:if(ie.flags&1024){for(;He<16;){if(Ve===0)break e;Ve--,Le+=Je[W++]<<He,He+=8}ie.length=Le,ie.head&&(ie.head.extra_len=Le),ie.flags&512&&(Tt[0]=Le&255,Tt[1]=Le>>>8&255,ie.check=g(ie.check,Tt,2,0)),Le=0,He=0}else ie.head&&(ie.head.extra=null);ie.mode=V;case V:if(ie.flags&1024&&(We=ie.length,We>Ve&&(We=Ve),We&&(ie.head&&(et=ie.head.extra_len-ie.length,ie.head.extra||(ie.head.extra=new Array(ie.head.extra_len)),i.arraySet(ie.head.extra,Je,W,We,et)),ie.flags&512&&(ie.check=g(ie.check,Je,We,W)),Ve-=We,W+=We,ie.length-=We),ie.length))break e;ie.length=0,ie.mode=q;case q:if(ie.flags&2048){if(Ve===0)break e;We=0;do et=Je[W+We++],ie.head&&et&&ie.length<65536&&(ie.head.name+=String.fromCharCode(et));while(et&&We<Ve);if(ie.flags&512&&(ie.check=g(ie.check,Je,We,W)),Ve-=We,W+=We,et)break e}else ie.head&&(ie.head.name=null);ie.length=0,ie.mode=G;case G:if(ie.flags&4096){if(Ve===0)break e;We=0;do et=Je[W+We++],ie.head&&et&&ie.length<65536&&(ie.head.comment+=String.fromCharCode(et));while(et&&We<Ve);if(ie.flags&512&&(ie.check=g(ie.check,Je,We,W)),Ve-=We,W+=We,et)break e}else ie.head&&(ie.head.comment=null);ie.mode=re;case re:if(ie.flags&512){for(;He<16;){if(Ve===0)break e;Ve--,Le+=Je[W++]<<He,He+=8}if(Le!==(ie.check&65535)){le.msg="header crc mismatch",ie.mode=x;break}Le=0,He=0}ie.head&&(ie.head.hcrc=ie.flags>>9&1,ie.head.done=!0),le.adler=ie.check=0,ie.mode=we;break;case ae:for(;He<32;){if(Ve===0)break e;Ve--,Le+=Je[W++]<<He,He+=8}le.adler=ie.check=Ne(Le),Le=0,He=0,ie.mode=de;case de:if(ie.havedict===0)return le.next_out=qe,le.avail_out=pe,le.next_in=W,le.avail_in=Ve,ie.hold=Le,ie.bits=He,_;le.adler=ie.check=1,ie.mode=we;case we:if(Fe===d||Fe===m)break e;case Ie:if(ie.last){Le>>>=He&7,He-=He&7,ie.mode=fe;break}for(;He<3;){if(Ve===0)break e;Ve--,Le+=Je[W++]<<He,He+=8}switch(ie.last=Le&1,Le>>>=1,He-=1,Le&3){case 0:ie.mode=je;break;case 1:if(R(ie),ie.mode=X,Fe===m){Le>>>=2,He-=2;break e}break;case 2:ie.mode=J;break;case 3:le.msg="invalid block type",ie.mode=x}Le>>>=2,He-=2;break;case je:for(Le>>>=He&7,He-=He&7;He<32;){if(Ve===0)break e;Ve--,Le+=Je[W++]<<He,He+=8}if((Le&65535)!==(Le>>>16^65535)){le.msg="invalid stored block lengths",ie.mode=x;break}if(ie.length=Le&65535,Le=0,He=0,ie.mode=se,Fe===m)break e;case se:ie.mode=Te;case Te:if(We=ie.length,We){if(We>Ve&&(We=Ve),We>pe&&(We=pe),We===0)break e;i.arraySet(dt,Je,W,We,qe),Ve-=We,W+=We,pe-=We,qe+=We,ie.length-=We;break}ie.mode=we;break;case J:for(;He<14;){if(Ve===0)break e;Ve--,Le+=Je[W++]<<He,He+=8}if(ie.nlen=(Le&31)+257,Le>>>=5,He-=5,ie.ndist=(Le&31)+1,Le>>>=5,He-=5,ie.ncode=(Le&15)+4,Le>>>=4,He-=4,ie.nlen>286||ie.ndist>30){le.msg="too many length or distance symbols",ie.mode=x;break}ie.have=0,ie.mode=ue;case ue:for(;ie.have<ie.ncode;){for(;He<3;){if(Ve===0)break e;Ve--,Le+=Je[W++]<<He,He+=8}ie.lens[pr[ie.have++]]=Le&7,Le>>>=3,He-=3}for(;ie.have<19;)ie.lens[pr[ie.have++]]=0;if(ie.lencode=ie.lendyn,ie.lenbits=7,Nt={bits:ie.lenbits},er=n(r,ie.lens,0,19,ie.lencode,0,ie.work,Nt),ie.lenbits=Nt.bits,er){le.msg="invalid code lengths set",ie.mode=x;break}ie.have=0,ie.mode=te;case te:for(;ie.have<ie.nlen+ie.ndist;){for(;bt=ie.lencode[Le&(1<<ie.lenbits)-1],ht=bt>>>24,kt=bt>>>16&255,zt=bt&65535,!(ht<=He);){if(Ve===0)break e;Ve--,Le+=Je[W++]<<He,He+=8}if(zt<16)Le>>>=ht,He-=ht,ie.lens[ie.have++]=zt;else{if(zt===16){for(Ut=ht+2;He<Ut;){if(Ve===0)break e;Ve--,Le+=Je[W++]<<He,He+=8}if(Le>>>=ht,He-=ht,ie.have===0){le.msg="invalid bit length repeat",ie.mode=x;break}et=ie.lens[ie.have-1],We=3+(Le&3),Le>>>=2,He-=2}else if(zt===17){for(Ut=ht+3;He<Ut;){if(Ve===0)break e;Ve--,Le+=Je[W++]<<He,He+=8}Le>>>=ht,He-=ht,et=0,We=3+(Le&7),Le>>>=3,He-=3}else{for(Ut=ht+7;He<Ut;){if(Ve===0)break e;Ve--,Le+=Je[W++]<<He,He+=8}Le>>>=ht,He-=ht,et=0,We=11+(Le&127),Le>>>=7,He-=7}if(ie.have+We>ie.nlen+ie.ndist){le.msg="invalid bit length repeat",ie.mode=x;break}for(;We--;)ie.lens[ie.have++]=et}}if(ie.mode===x)break;if(ie.lens[256]===0){le.msg="invalid code -- missing end-of-block",ie.mode=x;break}if(ie.lenbits=9,Nt={bits:ie.lenbits},er=n(u,ie.lens,0,ie.nlen,ie.lencode,0,ie.work,Nt),ie.lenbits=Nt.bits,er){le.msg="invalid literal/lengths set",ie.mode=x;break}if(ie.distbits=6,ie.distcode=ie.distdyn,Nt={bits:ie.distbits},er=n(p,ie.lens,ie.nlen,ie.ndist,ie.distcode,0,ie.work,Nt),ie.distbits=Nt.bits,er){le.msg="invalid distances set",ie.mode=x;break}if(ie.mode=X,Fe===m)break e;case X:ie.mode=ye;case ye:if(Ve>=6&&pe>=258){le.next_out=qe,le.avail_out=pe,le.next_in=W,le.avail_in=Ve,ie.hold=Le,ie.bits=He,a(le,Se),qe=le.next_out,dt=le.output,pe=le.avail_out,W=le.next_in,Je=le.input,Ve=le.avail_in,Le=ie.hold,He=ie.bits,ie.mode===we&&(ie.back=-1);break}for(ie.back=0;bt=ie.lencode[Le&(1<<ie.lenbits)-1],ht=bt>>>24,kt=bt>>>16&255,zt=bt&65535,!(ht<=He);){if(Ve===0)break e;Ve--,Le+=Je[W++]<<He,He+=8}if(kt&&!(kt&240)){for(Wt=ht,ir=kt,kr=zt;bt=ie.lencode[kr+((Le&(1<<Wt+ir)-1)>>Wt)],ht=bt>>>24,kt=bt>>>16&255,zt=bt&65535,!(Wt+ht<=He);){if(Ve===0)break e;Ve--,Le+=Je[W++]<<He,He+=8}Le>>>=Wt,He-=Wt,ie.back+=Wt}if(Le>>>=ht,He-=ht,ie.back+=ht,ie.length=zt,kt===0){ie.mode=Q;break}if(kt&32){ie.back=-1,ie.mode=we;break}if(kt&64){le.msg="invalid literal/length code",ie.mode=x;break}ie.extra=kt&15,ie.mode=Re;case Re:if(ie.extra){for(Ut=ie.extra;He<Ut;){if(Ve===0)break e;Ve--,Le+=Je[W++]<<He,He+=8}ie.length+=Le&(1<<ie.extra)-1,Le>>>=ie.extra,He-=ie.extra,ie.back+=ie.extra}ie.was=ie.length,ie.mode=De;case De:for(;bt=ie.distcode[Le&(1<<ie.distbits)-1],ht=bt>>>24,kt=bt>>>16&255,zt=bt&65535,!(ht<=He);){if(Ve===0)break e;Ve--,Le+=Je[W++]<<He,He+=8}if(!(kt&240)){for(Wt=ht,ir=kt,kr=zt;bt=ie.distcode[kr+((Le&(1<<Wt+ir)-1)>>Wt)],ht=bt>>>24,kt=bt>>>16&255,zt=bt&65535,!(Wt+ht<=He);){if(Ve===0)break e;Ve--,Le+=Je[W++]<<He,He+=8}Le>>>=Wt,He-=Wt,ie.back+=Wt}if(Le>>>=ht,He-=ht,ie.back+=ht,kt&64){le.msg="invalid distance code",ie.mode=x;break}ie.offset=zt,ie.extra=kt&15,ie.mode=Y;case Y:if(ie.extra){for(Ut=ie.extra;He<Ut;){if(Ve===0)break e;Ve--,Le+=Je[W++]<<He,He+=8}ie.offset+=Le&(1<<ie.extra)-1,Le>>>=ie.extra,He-=ie.extra,ie.back+=ie.extra}if(ie.offset>ie.dmax){le.msg="invalid distance too far back",ie.mode=x;break}ie.mode=H;case H:if(pe===0)break e;if(We=Se-pe,ie.offset>We){if(We=ie.offset-We,We>ie.whave&&ie.sane){le.msg="invalid distance too far back",ie.mode=x;break}We>ie.wnext?(We-=ie.wnext,Qe=ie.wsize-We):Qe=ie.wnext-We,We>ie.length&&(We=ie.length),lt=ie.window}else lt=dt,Qe=qe-ie.offset,We=ie.length;We>pe&&(We=pe),pe-=We,ie.length-=We;do dt[qe++]=lt[Qe++];while(--We);ie.length===0&&(ie.mode=ye);break;case Q:if(pe===0)break e;dt[qe++]=ie.length,pe--,ie.mode=ye;break;case fe:if(ie.wrap){for(;He<32;){if(Ve===0)break e;Ve--,Le|=Je[W++]<<He,He+=8}if(Se-=pe,le.total_out+=Se,ie.total+=Se,Se&&(le.adler=ie.check=ie.flags?g(ie.check,dt,Se,qe-Se):f(ie.check,dt,Se,qe-Se)),Se=pe,(ie.flags?Le:Ne(Le))!==ie.check){le.msg="incorrect data check",ie.mode=x;break}Le=0,He=0}ie.mode=ve;case ve:if(ie.wrap&&ie.flags){for(;He<32;){if(Ve===0)break e;Ve--,Le+=Je[W++]<<He,He+=8}if(Le!==(ie.total&4294967295)){le.msg="incorrect length check",ie.mode=x;break}Le=0,He=0}ie.mode=N;case N:er=w;break e;case x:er=T;break e;case D:return k;case z:default:return S}return le.next_out=qe,le.avail_out=pe,le.next_in=W,le.avail_in=Ve,ie.hold=Le,ie.bits=He,(ie.wsize||Se!==le.avail_out&&ie.mode<x&&(ie.mode<fe||Fe!==c))&&P(le,le.output,le.next_out,Se-le.avail_out)?(ie.mode=D,k):(me-=le.avail_in,Se-=le.avail_out,le.total_in+=me,le.total_out+=Se,ie.total+=Se,ie.wrap&&Se&&(le.adler=ie.check=ie.flags?g(ie.check,dt,Se,le.next_out-Se):f(ie.check,dt,Se,le.next_out-Se)),le.data_type=ie.bits+(ie.last?64:0)+(ie.mode===we?128:0)+(ie.mode===X||ie.mode===se?256:0),(me===0&&Se===0||Fe===c)&&er===y&&(er=E),er)}l(C,"AG"),e(C,"inflate");function Z(le){if(!le||!le.state)return S;var Fe=le.state;return Fe.window&&(Fe.window=null),le.state=null,y}l(Z,"RG"),e(Z,"inflateEnd");function oe(le,Fe){var ie;return!le||!le.state||(ie=le.state,!(ie.wrap&2))?S:(ie.head=Fe,Fe.done=!1,y)}l(oe,"TG"),e(oe,"inflateGetHeader");function Ae(le,Fe){var ie=Fe.length,Je,dt,W;return!le||!le.state||(Je=le.state,Je.wrap!==0&&Je.mode!==de)?S:Je.mode===de&&(dt=1,dt=f(dt,Fe,ie,0),dt!==Je.check)?T:(W=P(le,Fe,ie,ie),W?(Je.mode=D,k):(Je.havedict=1,y))}l(Ae,"FG"),e(Ae,"inflateSetDictionary"),o.inflateReset=Pe,o.inflateReset2=$e,o.inflateResetKeep=Oe,o.inflateInit=t,o.inflateInit2=Ke,o.inflate=C,o.inflateEnd=Z,o.inflateGetHeader=oe,o.inflateSetDictionary=Ae,o.inflateInfo="pako inflate (from Nodeca project)"}),Qj=Ge((o,i)=>{"use strict";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}}),g3=Ge((o,i)=>{"use strict";function f(){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}l(f,"xG"),e(f,"GZheader"),i.exports=f}),y3=Ge(o=>{"use strict";var i=p3(),f=Ji(),g=Yj(),a=Qj(),n=ZE(),r=Zj(),u=g3(),p=Object.prototype.toString;function c(y){if(!(this instanceof c))return new c(y);this.options=f.assign({chunkSize:16384,windowBits:0,to:""},y||{});var w=this.options;w.raw&&w.windowBits>=0&&w.windowBits<16&&(w.windowBits=-w.windowBits,w.windowBits===0&&(w.windowBits=-15)),w.windowBits>=0&&w.windowBits<16&&!(y&&y.windowBits)&&(w.windowBits+=32),w.windowBits>15&&w.windowBits<48&&(w.windowBits&15||(w.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new r,this.strm.avail_out=0;var _=i.inflateInit2(this.strm,w.windowBits);if(_!==a.Z_OK)throw new Error(n[_]);if(this.header=new u,i.inflateGetHeader(this.strm,this.header),w.dictionary&&(typeof w.dictionary=="string"?w.dictionary=g.string2buf(w.dictionary):p.call(w.dictionary)==="[object ArrayBuffer]"&&(w.dictionary=new Uint8Array(w.dictionary)),w.raw&&(_=i.inflateSetDictionary(this.strm,w.dictionary),_!==a.Z_OK)))throw new Error(n[_])}l(c,"ia"),e(c,"Inflate"),c.prototype.push=function(y,w){var _=this.strm,S=this.options.chunkSize,T=this.options.dictionary,k,E,j,A,I,U=!1;if(this.ended)return!1;E=w===~~w?w:w===!0?a.Z_FINISH:a.Z_NO_FLUSH,typeof y=="string"?_.input=g.binstring2buf(y):p.call(y)==="[object ArrayBuffer]"?_.input=new Uint8Array(y):_.input=y,_.next_in=0,_.avail_in=_.input.length;do{if(_.avail_out===0&&(_.output=new f.Buf8(S),_.next_out=0,_.avail_out=S),k=i.inflate(_,a.Z_NO_FLUSH),k===a.Z_NEED_DICT&&T&&(k=i.inflateSetDictionary(this.strm,T)),k===a.Z_BUF_ERROR&&U===!0&&(k=a.Z_OK,U=!1),k!==a.Z_STREAM_END&&k!==a.Z_OK)return this.onEnd(k),this.ended=!0,!1;_.next_out&&(_.avail_out===0||k===a.Z_STREAM_END||_.avail_in===0&&(E===a.Z_FINISH||E===a.Z_SYNC_FLUSH))&&(this.options.to==="string"?(j=g.utf8border(_.output,_.next_out),A=_.next_out-j,I=g.buf2string(_.output,j),_.next_out=A,_.avail_out=S-A,A&&f.arraySet(_.output,_.output,j,A,0),this.onData(I)):this.onData(f.shrinkBuf(_.output,_.next_out))),_.avail_in===0&&_.avail_out===0&&(U=!0)}while((_.avail_in>0||_.avail_out===0)&&k!==a.Z_STREAM_END);return k===a.Z_STREAM_END&&(E=a.Z_FINISH),E===a.Z_FINISH?(k=i.inflateEnd(this.strm),this.onEnd(k),this.ended=!0,k===a.Z_OK):(E===a.Z_SYNC_FLUSH&&(this.onEnd(a.Z_OK),_.avail_out=0),!0)},c.prototype.onData=function(y){this.chunks.push(y)},c.prototype.onEnd=function(y){y===a.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=f.flattenChunks(this.chunks)),this.chunks=[],this.err=y,this.msg=this.strm.msg};function d(y,w){var _=new c(w);if(_.push(y,!0),_.err)throw _.msg||n[_.err];return _.result}l(d,"N0"),e(d,"inflate");function m(y,w){return w=w||{},w.raw=!0,d(y,w)}l(m,"PG"),e(m,"inflateRaw"),o.Inflate=c,o.inflate=d,o.inflateRaw=m,o.ungzip=d}),m3=Ge((o,i)=>{"use strict";var f=Ji().assign,g=c3(),a=y3(),n=Qj(),r={};f(r,g,a,n),i.exports=r}),w3=Ge((o,i)=>{"use strict";var f=e((g,a)=>function(...n){let r=a.promiseModule;return new r((u,p)=>{a.multiArgs?n.push((...c)=>{a.errorFirst?c[0]?p(c):(c.shift(),u(c)):u(c)}):a.errorFirst?n.push((c,d)=>{c?p(c):u(d)}):n.push(u),g.apply(this,n)})},"processFn");i.exports=(g,a)=>{a=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},a);let n=typeof g;if(!(g!==null&&(n==="object"||n==="function")))throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${g===null?"null":n}\``);let r=e(p=>{let c=e(d=>typeof d=="string"?p===d:d.test(p),"match");return a.include?a.include.some(c):!a.exclude.some(c)},"filter"),u;n==="function"?u=e(function(...p){return a.excludeMain?g(...p):f(g,a).apply(this,p)},"ret"):u=Object.create(Object.getPrototypeOf(g));for(let p in g){let c=g[p];u[p]=typeof c=="function"&&r(p)?f(c,a):c}return u}}),b3=Ge((o,i)=>{var J,ue;function f(te){return Array.isArray(te)?te:[te]}l(f,"AI"),e(f,"makeArray");var g="",a=" ",n="\\",r=/^\s+$/,u=/(?:[^\\]|^)\\$/,p=/^\\!/,c=/^\\#/,d=/\r?\n/g,m=/^\.*\/|^\.+$/,y="/",w="node-ignore";typeof Symbol<"u"&&(w=Symbol.for("node-ignore"));var _=w,S=e((te,X,ye)=>Object.defineProperty(te,X,{value:ye}),"define"),T=/([0-z])-([0-z])/g,k=e(()=>!1,"RETURN_FALSE"),E=e(te=>te.replace(T,(X,ye,Re)=>ye.charCodeAt(0)<=Re.charCodeAt(0)?X:g),"sanitizeRange"),j=e(te=>{let{length:X}=te;return te.slice(0,X-X%2)},"cleanRangeBackSlash"),A=[[/^\uFEFF/,()=>g],[/((?:\\\\)*?)(\\?\s+)$/,(te,X,ye)=>X+(ye.indexOf("\\")===0?a:g)],[/(\\+?)\s/g,(te,X)=>{let{length:ye}=X;return X.slice(0,ye-ye%2)+a}],[/[\\$.|*+(){^]/g,te=>`\\${te}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,e(function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"},"startingReplacer")],[/\\\/\\\*\\\*(?=\\\/|$)/g,(te,X,ye)=>X+6<ye.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(te,X,ye)=>{let Re=ye.replace(/\\\*/g,"[^\\/]*");return X+Re}],[/\\\\\\(?=[$.|*+(){^])/g,()=>n],[/\\\\/g,()=>n],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(te,X,ye,Re,De)=>X===n?`\\[${ye}${j(Re)}${De}`:De==="]"&&Re.length%2===0?`[${E(ye)}${Re}]`:"[]"],[/(?:[^*])$/,te=>/\/$/.test(te)?`${te}$`:`${te}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(te,X)=>`${X?`${X}[^/]+`:"[^/]*"}(?=$|\\/$)`]],I=Object.create(null),U=e((te,X)=>{let ye=I[te];return ye||(ye=A.reduce((Re,[De,Y])=>Re.replace(De,Y.bind(te)),te),I[te]=ye),X?new RegExp(ye,"i"):new RegExp(ye)},"makeRegex"),M=e(te=>typeof te=="string","isString"),ee=e(te=>te&&M(te)&&!r.test(te)&&!u.test(te)&&te.indexOf("#")!==0,"checkPattern"),V=e(te=>te.split(d),"splitPattern"),q=(J=class{constructor(X,ye,Re,De){this.origin=X,this.pattern=ye,this.negative=Re,this.regex=De}},l(J,"q0"),J);e(q,"IgnoreRule");var G=q,re=e((te,X)=>{let ye=te,Re=!1;te.indexOf("!")===0&&(Re=!0,te=te.substr(1)),te=te.replace(p,"!").replace(c,"#");let De=U(te,X);return new G(ye,te,Re,De)},"createRule"),ae=e((te,X)=>{throw new X(te)},"throwError"),de=e((te,X,ye)=>M(te)?te?de.isNotRelative(te)?ye(`path should be a \`path.relative()\`d string, but got "${X}"`,RangeError):!0:ye("path must not be empty",TypeError):ye(`path must be a string, but got \`${X}\``,TypeError),"checkPath"),we=e(te=>m.test(te),"isNotRelative");de.isNotRelative=we,de.convert=te=>te;var Ie=(ue=class{constructor({ignorecase:X=!0,ignoreCase:ye=X,allowRelativePaths:Re=!1}={}){S(this,_,!0),this._rules=[],this._ignoreCase=ye,this._allowRelativePaths=Re,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(X){if(X&&X[_]){this._rules=this._rules.concat(X._rules),this._added=!0;return}if(ee(X)){let ye=re(X,this._ignoreCase);this._added=!0,this._rules.push(ye)}}add(X){return this._added=!1,f(M(X)?V(X):X).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(X){return this.add(X)}_testOne(X,ye){let Re=!1,De=!1;return this._rules.forEach(Y=>{let{negative:H}=Y;De===H&&Re!==De||H&&!Re&&!De&&!ye||Y.regex.test(X)&&(Re=!H,De=H)}),{ignored:Re,unignored:De}}_test(X,ye,Re,De){let Y=X&&de.convert(X);return de(Y,X,this._allowRelativePaths?k:ae),this._t(Y,ye,Re,De)}_t(X,ye,Re,De){if(X in ye)return ye[X];if(De||(De=X.split(y)),De.pop(),!De.length)return ye[X]=this._testOne(X,Re);let Y=this._t(De.join(y)+y,ye,Re,De);return ye[X]=Y.ignored?Y:this._testOne(X,Re)}ignores(X){return this._test(X,this._ignoreCache,!1).ignored}createFilter(){return X=>!this.ignores(X)}filter(X){return f(X).filter(this.createFilter())}test(X){return this._test(X,this._testCache,!0)}},l(ue,"z0"),ue);e(Ie,"Ignore");var je=Ie,se=e(te=>new je(te),"factory"),Te=e(te=>de(te&&de.convert(te),te,k),"isPathValid");if(se.isPathValid=Te,se.default=se,i.exports=se,typeof process<"u"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){let te=e(ye=>/^\\\\\?\\/.test(ye)||/["<>|\u0000-\u001F]+/u.test(ye)?ye:ye.replace(/\\/g,"/"),"makePosix");de.convert=te;let X=/^[a-z]:\//i;de.isNotRelative=ye=>X.test(ye)||we(ye)}}),v3=Ge((o,i)=>{"use strict";function f(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}l(f,"QG"),e(f,"escapeRegExp");function g(n,r,u){return r=r instanceof RegExp?r:new RegExp(f(r),"g"),n.replace(r,u)}l(g,"Pn"),e(g,"replaceAll");var a={clean:e(function(n){if(typeof n!="string")throw new Error("Expected a string, received: "+n);return n=g(n,"./","/"),n=g(n,"..","."),n=g(n," ","-"),n=g(n,/^[~^:?*\\\-]/g,""),n=g(n,/[~^:?*\\]/g,"-"),n=g(n,/[~^:?*\\\-]$/g,""),n=g(n,"@{","-"),n=g(n,/\.$/g,""),n=g(n,/\/$/g,""),n=g(n,/\.lock$/g,""),n},"clean")};i.exports=a}),_3=Ge((o,i)=>{"use strict";var f=/(^|[/.])([/.]|$)|^@$|@{|[\x00-\x20\x7f~^:?*[\\]|\.lock(\/|$)/;i.exports=e(function(g,a){if(typeof g!="string")throw new TypeError("Reference name must be a string");return!f.test(g)&&(!!a||g.includes("/"))},"validRef")}),E3=Ge((o,i)=>{i.exports=function(f,g){var a=f,n=g,r=a.length,u=n.length,p=!1,c=null,d=r+1,m=[],y=[],w=[],_="",S=-1,T=0,k=1,E,j,A=e(function(){r>=u&&(E=a,j=r,a=n,n=E,r=u,u=j,p=!0,d=r+1)},"init"),I=e(function(V,q,G){return{x:V,y:q,k:G}},"P"),U=e(function(V,q){return{elem:V,t:q}},"seselem"),M=e(function(V,q,G){var re,ae,de;for(q>G?re=m[V-1+d]:re=m[V+1+d],de=Math.max(q,G),ae=de-V;ae<r&&de<u&&a[ae]===n[de];)++ae,++de;return m[V+d]=y.length,y[y.length]=new I(ae,de,re),de},"snake"),ee=e(function(V){var q,G,re,ae,de;for(q=G=1,re=ae=0,de=V.length-1;de>=0;--de)for(;re<V[de].x||ae<V[de].y;)V[de].y-V[de].x>ae-re?(p?w[w.length]=new U(n[ae],S):w[w.length]=new U(n[ae],k),++G,++ae):V[de].y-V[de].x<ae-re?(p?w[w.length]=new U(a[re],k):w[w.length]=new U(a[re],S),++q,++re):(w[w.length]=new U(a[re],T),_+=a[re],++q,++G,++re,++ae)},"recordseq");return A(),{SES_DELETE:-1,SES_COMMON:0,SES_ADD:1,editdistance:e(function(){return c},"editdistance"),getlcs:e(function(){return _},"getlcs"),getses:e(function(){return w},"getses"),compose:e(function(){var V,q,G,re,ae,de,we,Ie;for(V=u-r,q=r+u+3,G={},we=0;we<q;++we)G[we]=-1,m[we]=-1;re=-1;do{for(++re,Ie=-re;Ie<=V-1;++Ie)G[Ie+d]=M(Ie,G[Ie-1+d]+1,G[Ie+1+d]);for(Ie=V+re;Ie>=V+1;--Ie)G[Ie+d]=M(Ie,G[Ie-1+d]+1,G[Ie+1+d]);G[V+d]=M(V,G[V-1+d]+1,G[V+1+d])}while(G[V+d]!==u);for(c=V+2*re,ae=m[V+d],de=[];ae!==-1;)de[de.length]=new I(y[ae].x,y[ae].y,null),ae=y[ae].k;ee(de)},"compose")}}}),S3=Ge((o,i)=>{var f=E3();function g(u,p){var c=new f(u,p);c.compose();for(var d=c.getses(),m,y,w=u.length-1,_=p.length-1,S=d.length-1;S>=0;--S)d[S].t===c.SES_COMMON?(y?(y.chain={file1index:w,file2index:_,chain:null},y=y.chain):(m={file1index:w,file2index:_,chain:null},y=m),w--,_--):d[S].t===c.SES_DELETE?w--:d[S].t===c.SES_ADD&&_--;var T={file1index:-1,file2index:-1,chain:null};return y?(y.chain=T,m):T}l(g,"nY"),e(g,"longestCommonSubsequence");function a(u,p){for(var c=[],d=u.length,m=p.length,y=g(u,p);y!==null;y=y.chain){var w=d-y.file1index-1,_=m-y.file2index-1;d=y.file1index,m=y.file2index,(w||_)&&c.push({file1:[d+1,w],file2:[m+1,_]})}return c.reverse(),c}l(a,"MI"),e(a,"diffIndices");function n(u,p,c){var d,m=a(p,u),y=a(p,c),w=[];function _(J,ue){w.push([J.file1[0],ue,J.file1[1],J.file2[0],J.file2[1]])}for(l(_,"f"),e(_,"addHunk"),d=0;d<m.length;d++)_(m[d],0);for(d=0;d<y.length;d++)_(y[d],2);w.sort(function(J,ue){return J[0]-ue[0]});var S=[],T=0;function k(J){J>T&&(S.push([1,T,J-T]),T=J)}l(k,"d"),e(k,"copyCommon");for(var E=0;E<w.length;E++){for(var j=E,A=w[E],I=A[0],U=I+A[2];E<w.length-1;){var M=w[E+1],ee=M[0];if(ee>U)break;U=Math.max(U,ee+M[2]),E++}if(k(I),j==E)A[4]>0&&S.push([A[1],A[3],A[4]]);else{var V={0:[u.length,-1,p.length,-1],2:[c.length,-1,p.length,-1]};for(d=j;d<=E;d++){A=w[d];var q=A[1],G=V[q],re=A[0],ae=re+A[2],de=A[3],we=de+A[4];G[0]=Math.min(de,G[0]),G[1]=Math.max(we,G[1]),G[2]=Math.min(re,G[2]),G[3]=Math.max(ae,G[3])}var Ie=V[0][0]+(I-V[0][2]),je=V[0][1]+(U-V[0][3]),se=V[2][0]+(I-V[2][2]),Te=V[2][1]+(U-V[2][3]);S.push([-1,Ie,je-Ie,I,U-I,se,Te-se])}T=U}return k(p.length),S}l(n,"iY"),e(n,"diff3MergeIndices");function r(u,p,c){var d=[],m=[u,p,c],y=n(u,p,c),w=[];function _(){w.length&&d.push({ok:w}),w=[]}l(_,"f"),e(_,"flushOk");function S(A){for(var I=0;I<A.length;I++)w.push(A[I])}l(S,"h"),e(S,"pushOk");function T(A){if(A[2]!=A[6])return!0;for(var I=A[1],U=A[5],M=0;M<A[2];M++)if(u[M+I]!=c[M+U])return!0;return!1}l(T,"c"),e(T,"isTrueConflict");for(var k=0;k<y.length;k++){var E=y[k],j=E[0];j==-1?T(E)?(_(),d.push({conflict:{a:u.slice(E[1],E[1]+E[2]),aIndex:E[1],o:p.slice(E[3],E[3]+E[4]),oIndex:E[3],b:c.slice(E[5],E[5]+E[6]),bIndex:E[5]}})):S(m[0].slice(E[1],E[1]+E[2])):S(m[j].slice(E[1],E[1]+E[2]))}return _(),d}l(r,"oY"),e(r,"diff3Merge"),i.exports=r}),dr=Ge(o=>{"use strict";var oo,ao,so,lo,qa,ln,Ga,Va,fo,uo,co,ho,po,go,yo,mo,Ka,Yt,wo,Ja,Ya,Ri,bo,vo,_o,Eo,So,Ao,Ro,ko,Oo,To,Fo,Bo,Io,xo,jo,Co,Po,Lo,No,Do,Uo,Mo,$o,Wo,zo,Jn,gr,Za,Qa,Xa,es,ts,rs,ns,is,os,as,ss,Ho,Yn;Object.defineProperty(o,"__esModule",{value:!0});function i(B){return B&&typeof B=="object"&&"default"in B?B.default:B}l(i,"di"),e(i,"_interopDefault");var f=i(AN()),g=i(a3()),a=s3(),n=i(l3()),r=i(m3()),u=i(w3()),p=i(b3()),c=i(v3()),d=i(_3()),m=i(S3()),y=(oo=class extends Error{constructor(b){super(b),this.caller=""}toJSON(){return{code:this.code,data:this.data,caller:this.caller,message:this.message,stack:this.stack}}fromJSON(b){let O=new oo(b.message);return O.code=b.code,O.data=b.data,O.caller=b.caller,O.stack=b.stack,O}get isIsomorphicGitError(){return!0}},l(oo,"Vh"),oo);e(y,"BaseError");var w=y,_=(ao=class extends w{constructor(b){super(`Modifying the index is not possible because you have unmerged files: ${b.toString}. Fix them up in the work tree, and then use 'git add/rm as appropriate to mark resolution and make a commit.`),this.code=this.name=ao.code,this.data={filepaths:b}}},l(ao,"Gh"),ao);e(_,"UnmergedPathsError");var S=_;S.code="UnmergedPathsError";var T=(so=class extends w{constructor(b){super(`An internal error caused this command to fail. Please file a bug report at https://github.com/isomorphic-git/isomorphic-git/issues with this error message: ${b}`),this.code=this.name=so.code,this.data={message:b}}},l(so,"Yh"),so);e(T,"InternalError");var k=T;k.code="InternalError";var E=(lo=class extends w{constructor(b){super(`The filepath "${b}" contains unsafe character sequences`),this.code=this.name=lo.code,this.data={filepath:b}}},l(lo,"Kh"),lo);e(E,"UnsafeFilepathError");var j=E;j.code="UnsafeFilepathError";var A=(qa=class{constructor(b){this.buffer=b,this._start=0}eof(){return this._start>=this.buffer.length}tell(){return this._start}seek(b){this._start=b}slice(b){let O=this.buffer.slice(this._start,this._start+b);return this._start+=b,O}toString(b,O){let F=this.buffer.toString(b,this._start,this._start+O);return this._start+=O,F}write(b,O,F){let L=this.buffer.write(b,this._start,O,F);return this._start+=O,L}copy(b,O,F){let L=b.copy(this.buffer,this._start,O,F);return this._start+=L,L}readUInt8(){let b=this.buffer.readUInt8(this._start);return this._start+=1,b}writeUInt8(b){let O=this.buffer.writeUInt8(b,this._start);return this._start+=1,O}readUInt16BE(){let b=this.buffer.readUInt16BE(this._start);return this._start+=2,b}writeUInt16BE(b){let O=this.buffer.writeUInt16BE(b,this._start);return this._start+=2,O}readUInt32BE(){let b=this.buffer.readUInt32BE(this._start);return this._start+=4,b}writeUInt32BE(b){let O=this.buffer.writeUInt32BE(b,this._start);return this._start+=4,O}},l(qa,"Av"),qa);e(A,"BufferCursor");var I=A;function U(B,b){return-(B<b)||+(B>b)}l(U,"Pd"),e(U,"compareStrings");function M(B,b){return U(B.path,b.path)}l(M,"cP"),e(M,"comparePath");function ee(B){let b=B>0?B>>12:0;b!==4&&b!==8&&b!==10&&b!==14&&(b=8);let O=B&511;return O&73?O=493:O=420,b!==8&&(O=0),(b<<12)+O}l(ee,"hP"),e(ee,"normalizeMode");var V=2**32;function q(B,b,O,F){if(B!==void 0&&b!==void 0)return[B,b];O===void 0&&(O=F.valueOf());let L=Math.floor(O/1e3),$=(O-L*1e3)*1e6;return[L,$]}l(q,"HI"),e(q,"SecondsNanoseconds");function G(B){let[b,O]=q(B.ctimeSeconds,B.ctimeNanoseconds,B.ctimeMs,B.ctime),[F,L]=q(B.mtimeSeconds,B.mtimeNanoseconds,B.mtimeMs,B.mtime);return{ctimeSeconds:b%V,ctimeNanoseconds:O%V,mtimeSeconds:F%V,mtimeNanoseconds:L%V,dev:B.dev%V,ino:B.ino%V,mode:ee(B.mode%V),uid:B.uid%V,gid:B.gid%V,size:B.size>-1?B.size%V:0}}l(G,"Ds"),e(G,"normalizeStats");function re(B){let b="";for(let O of new Uint8Array(B))O<16&&(b+="0"),b+=O.toString(16);return b}l(re,"fY"),e(re,"toHex");var ae=null;async function de(B){return ae===null&&(ae=await je()),ae?Ie(B):we(B)}l(de,"hi"),e(de,"shasum");function we(B){return new g().update(B).digest("hex")}l(we,"uY"),e(we,"shasumSync");async function Ie(B){let b=await crypto.subtle.digest("SHA-1",B);return re(b)}l(Ie,"dP"),e(Ie,"subtleSHA1");async function je(){try{return await Ie(new Uint8Array([]))==="da39a3ee5e6b4b0d3255bfef95601890afd80709"}catch{}return!1}l(je,"cY"),e(je,"testSubtleSHA1");function se(B){return{assumeValid:!!(B&32768),extended:!!(B&16384),stage:(B&12288)>>12,nameLength:B&4095}}l(se,"hY"),e(se,"parseCacheEntryFlags");function Te(B){let b=B.flags;return b.extended=!1,b.nameLength=Math.min(Buffer.from(B.path).length,4095),(b.assumeValid?32768:0)+(b.extended?16384:0)+((b.stage&3)<<12)+(b.nameLength&4095)}l(Te,"dY"),e(Te,"renderCacheEntryFlags");var J=(ln=class{constructor(b,O){this._dirty=!1,this._unmergedPaths=O||new Set,this._entries=b||new Map}_addEntry(b){if(b.flags.stage===0)b.stages=[b],this._entries.set(b.path,b),this._unmergedPaths.delete(b.path);else{let O=this._entries.get(b.path);O||(this._entries.set(b.path,b),O=b),O.stages[b.flags.stage]=b,this._unmergedPaths.add(b.path)}}static async from(b){if(Buffer.isBuffer(b))return ln.fromBuffer(b);if(b===null)return new ln(null);throw new k("invalid type passed to GitIndex.from")}static async fromBuffer(b){if(b.length===0)throw new k("Index file is empty (.git/index)");let O=new ln,F=new I(b),L=F.toString("utf8",4);if(L!=="DIRC")throw new k(`Invalid dircache magic file number: ${L}`);let $=await de(b.slice(0,-20)),K=b.slice(-20).toString("hex");if(K!==$)throw new k(`Invalid checksum in GitIndex buffer: expected ${K} but saw ${$}`);let ne=F.readUInt32BE();if(ne!==2)throw new k(`Unsupported dircache version: ${ne}`);let _e=F.readUInt32BE(),ce=0;for(;!F.eof()&&ce<_e;){let he={};he.ctimeSeconds=F.readUInt32BE(),he.ctimeNanoseconds=F.readUInt32BE(),he.mtimeSeconds=F.readUInt32BE(),he.mtimeNanoseconds=F.readUInt32BE(),he.dev=F.readUInt32BE(),he.ino=F.readUInt32BE(),he.mode=F.readUInt32BE(),he.uid=F.readUInt32BE(),he.gid=F.readUInt32BE(),he.size=F.readUInt32BE(),he.oid=F.slice(20).toString("hex");let Be=F.readUInt16BE();he.flags=se(Be);let Ce=b.indexOf(0,F.tell()+1)-F.tell();if(Ce<1)throw new k(`Got a path length of: ${Ce}`);if(he.path=F.toString("utf8",Ce),he.path.includes("..\\")||he.path.includes("../"))throw new j(he.path);let Me=8-(F.tell()-12)%8;for(Me===0&&(Me=8);Me--;){let ze=F.readUInt8();if(ze!==0)throw new k(`Expected 1-8 null characters but got '${ze}' after ${he.path}`);if(F.eof())throw new k("Unexpected end of file")}he.stages=[],O._addEntry(he),ce++}return O}get unmergedPaths(){return[...this._unmergedPaths]}get entries(){return[...this._entries.values()].sort(M)}get entriesMap(){return this._entries}get entriesFlat(){return[...this.entries].flatMap(b=>b.stages.length>1?b.stages.filter(O=>O):b)}*[Symbol.iterator](){for(let b of this.entries)yield b}insert({filepath:b,stats:O,oid:F,stage:L=0}){O||(O={ctimeSeconds:0,ctimeNanoseconds:0,mtimeSeconds:0,mtimeNanoseconds:0,dev:0,ino:0,mode:0,uid:0,gid:0,size:0}),O=G(O);let $=Buffer.from(b),K={ctimeSeconds:O.ctimeSeconds,ctimeNanoseconds:O.ctimeNanoseconds,mtimeSeconds:O.mtimeSeconds,mtimeNanoseconds:O.mtimeNanoseconds,dev:O.dev,ino:O.ino,mode:O.mode||33188,uid:O.uid,gid:O.gid,size:O.size,path:b,oid:F,flags:{assumeValid:!1,extended:!1,stage:L,nameLength:$.length<4095?$.length:4095},stages:[]};this._addEntry(K),this._dirty=!0}delete({filepath:b}){if(this._entries.has(b))this._entries.delete(b);else for(let O of this._entries.keys())O.startsWith(b+"/")&&this._entries.delete(O);this._unmergedPaths.has(b)&&this._unmergedPaths.delete(b),this._dirty=!0}clear(){this._entries.clear(),this._dirty=!0}has({filepath:b}){return this._entries.has(b)}render(){return this.entries.map(b=>`${b.mode.toString(8)} ${b.oid} ${b.path}`).join(`
46
- `)}static async _entryToBuffer(b){let O=Buffer.from(b.path),F=Math.ceil((62+O.length+1)/8)*8,L=Buffer.alloc(F),$=new I(L),K=G(b);return $.writeUInt32BE(K.ctimeSeconds),$.writeUInt32BE(K.ctimeNanoseconds),$.writeUInt32BE(K.mtimeSeconds),$.writeUInt32BE(K.mtimeNanoseconds),$.writeUInt32BE(K.dev),$.writeUInt32BE(K.ino),$.writeUInt32BE(K.mode),$.writeUInt32BE(K.uid),$.writeUInt32BE(K.gid),$.writeUInt32BE(K.size),$.write(b.oid,20,"hex"),$.writeUInt16BE(Te(b)),$.write(b.path,O.length,"utf8"),L}async toObject(){let b=Buffer.alloc(12),O=new I(b);O.write("DIRC",4,"utf8"),O.writeUInt32BE(2),O.writeUInt32BE(this.entriesFlat.length);let F=[];for(let ne of this.entries)if(F.push(ln._entryToBuffer(ne)),ne.stages.length>1)for(let _e of ne.stages)_e&&_e!==ne&&F.push(ln._entryToBuffer(_e));F=await Promise.all(F);let L=Buffer.concat(F),$=Buffer.concat([b,L]),K=await de($);return Buffer.concat([$,Buffer.from(K,"hex")])}},l(ln,"no"),ln);e(J,"GitIndex");var ue=J;function te(B,b,O=!0,F=!0){let L=G(B),$=G(b);return O&&L.mode!==$.mode||L.mtimeSeconds!==$.mtimeSeconds||L.ctimeSeconds!==$.ctimeSeconds||L.uid!==$.uid||L.gid!==$.gid||F&&L.ino!==$.ino||L.size!==$.size}l(te,"Dh"),e(te,"compareStats");var X=null,ye=Symbol("IndexCache");function Re(){return{map:new Map,stats:new Map}}l(Re,"pY"),e(Re,"createCache");async function De(B,b,O){let[F,L]=await Promise.all([B.lstat(b),B.read(b)]),$=await ue.from(L);O.map.set(b,$),O.stats.set(b,F)}l(De,"yY"),e(De,"updateCachedIndexFile");async function Y(B,b,O){let F=O.stats.get(b);if(F===void 0)return!0;if(F===null)return!1;let L=await B.lstat(b);return L===null?!1:te(F,L)}l(Y,"mY"),e(Y,"isIndexStale");var H=(Ga=class{static async acquire({fs:b,gitdir:O,cache:F,allowUnmerged:L=!0},$){F[ye]||(F[ye]=Re());let K=`${O}/index`;X===null&&(X=new f({maxPending:1/0}));let ne,_e=[];return await X.acquire(K,async()=>{let ce=F[ye];await Y(b,K,ce)&&await De(b,K,ce);let he=ce.map.get(K);if(_e=he.unmergedPaths,_e.length&&!L)throw new S(_e);if(ne=await $(he),he._dirty){let Be=await he.toObject();await b.write(K,Be),ce.stats.set(K,await b.lstat(K)),he._dirty=!1}}),ne}},l(Ga,"Rv"),Ga);e(H,"GitIndexManager");var Q=H;function fe(B){let b=Math.max(B.lastIndexOf("/"),B.lastIndexOf("\\"));return b>-1&&(B=B.slice(b+1)),B}l(fe,"Nh"),e(fe,"basename");function ve(B){let b=Math.max(B.lastIndexOf("/"),B.lastIndexOf("\\"));return b===-1?".":b===0?"/":B.slice(0,b)}l(ve,"Ns"),e(ve,"dirname");function N(B){let b=new Map,O=e(function(L){if(!b.has(L)){let $={type:"tree",fullpath:L,basename:fe(L),metadata:{},children:[]};b.set(L,$),$.parent=O(ve(L)),$.parent&&$.parent!==$&&$.parent.children.push($)}return b.get(L)},"mkdir"),F=e(function(L,$){if(!b.has(L)){let K={type:"blob",fullpath:L,basename:fe(L),metadata:$,parent:O(ve(L)),children:[]};K.parent&&K.parent.children.push(K),b.set(L,K)}return b.get(L)},"mkfile");O(".");for(let L of B)F(L.path,L);return b}l(N,"pP"),e(N,"flatFileListToDirectoryStructure");function x(B){switch(B){case 16384:return"tree";case 33188:return"blob";case 33261:return"blob";case 40960:return"blob";case 57344:return"commit"}throw new k(`Unexpected GitTree entry mode: ${B.toString(8)}`)}l(x,"gY"),e(x,"mode2type");var D=(Va=class{constructor({fs:b,gitdir:O,cache:F}){var K;var L;this.treePromise=Q.acquire({fs:b,gitdir:O,cache:F},async function(ne){return N(ne.entries)});let $=this;this.ConstructEntry=(L=(K=class{constructor(_e){this._fullpath=_e,this._type=!1,this._mode=!1,this._stat=!1,this._oid=!1}async type(){return $.type(this)}async mode(){return $.mode(this)}async stat(){return $.stat(this)}async content(){return $.content(this)}async oid(){return $.oid(this)}},l(K,"s"),K),e(L,"StageEntry"),L)}async readdir(b){let O=b._fullpath,F=(await this.treePromise).get(O);if(!F||F.type==="blob")return null;if(F.type!=="tree")throw new Error(`ENOTDIR: not a directory, scandir '${O}'`);let L=F.children.map($=>$.fullpath);return L.sort(U),L}async type(b){return b._type===!1&&await b.stat(),b._type}async mode(b){return b._mode===!1&&await b.stat(),b._mode}async stat(b){if(b._stat===!1){let O=(await this.treePromise).get(b._fullpath);if(!O)throw new Error(`ENOENT: no such file or directory, lstat '${b._fullpath}'`);let F=O.type==="tree"?{}:G(O.metadata);b._type=O.type==="tree"?"tree":x(F.mode),b._mode=F.mode,O.type==="tree"?b._stat=void 0:b._stat=F}return b._stat}async content(b){}async oid(b){if(b._oid===!1){let O=(await this.treePromise).get(b._fullpath);b._oid=O.metadata.oid}return b._oid}},l(Va,"Tv"),Va);e(D,"GitWalkerIndex");var z=D,Ee=Symbol("GitWalkSymbol");function ke(){let B=Object.create(null);return Object.defineProperty(B,Ee,{value:e(function({fs:b,gitdir:O,cache:F}){return new z({fs:b,gitdir:O,cache:F})},"value")}),Object.freeze(B),B}l(ke,"ua"),e(ke,"STAGE");var be=(fo=class extends w{constructor(b){super(`Could not find ${b}.`),this.code=this.name=fo.code,this.data={what:b}}},l(fo,"Xh"),fo);e(be,"NotFoundError");var ge=be;ge.code="NotFoundError";var Ne=(uo=class extends w{constructor(b,O,F,L){super(`Object ${b} ${L?`at ${L}`:""}was anticipated to be a ${F} but it is a ${O}.`),this.code=this.name=uo.code,this.data={oid:b,actual:O,expected:F,filepath:L}}},l(uo,"Jh"),uo);e(Ne,"ObjectTypeError");var xe=Ne;xe.code="ObjectTypeError";var Oe=(co=class extends w{constructor(b){super(`Expected a 40-char hex object id but saw "${b}".`),this.code=this.name=co.code,this.data={value:b}}},l(co,"Zh"),co);e(Oe,"InvalidOidError");var Pe=Oe;Pe.code="InvalidOidError";var $e=(ho=class extends w{constructor(b){super(`Could not find a fetch refspec for remote "${b}". Make sure the config file has an entry like the following:
47
- [remote "${b}"]
48
- fetch = +refs/heads/*:refs/remotes/origin/*
49
- `),this.code=this.name=ho.code,this.data={remote:b}}},l(ho,"Qh"),ho);e($e,"NoRefspecError");var Ke=$e;Ke.code="NoRefspecError";var t=(po=class{constructor(b){if(this.refs=new Map,this.parsedConfig=[],b){let O=null;this.parsedConfig=b.trim().split(`
50
- `).map(F=>{if(/^\s*#/.test(F))return{line:F,comment:!0};let L=F.indexOf(" ");if(F.startsWith("^")){let $=F.slice(1);return this.refs.set(O+"^{}",$),{line:F,ref:O,peeled:$}}else{let $=F.slice(0,L);return O=F.slice(L+1),this.refs.set(O,$),{line:F,ref:O,oid:$}}})}return this}static from(b){return new po(b)}delete(b){this.parsedConfig=this.parsedConfig.filter(O=>O.ref!==b),this.refs.delete(b)}toString(){return this.parsedConfig.map(({line:b})=>b).join(`
51
- `)+`
52
- `}},l(po,"ed"),po);e(t,"GitPackedRefs");var s=t,h=(go=class{constructor({remotePath:b,localPath:O,force:F,matchPrefix:L}){Object.assign(this,{remotePath:b,localPath:O,force:F,matchPrefix:L})}static from(b){let[O,F,L,$,K]=b.match(/^(\+?)(.*?)(\*?):(.*?)(\*?)$/).slice(1),ne=O==="+",_e=L==="*";if(_e!==(K==="*"))throw new k("Invalid refspec");return new go({remotePath:F,localPath:$,force:ne,matchPrefix:_e})}translate(b){if(this.matchPrefix){if(b.startsWith(this.remotePath))return this.localPath+b.replace(this.remotePath,"")}else if(b===this.remotePath)return this.localPath;return null}reverseTranslate(b){if(this.matchPrefix){if(b.startsWith(this.localPath))return this.remotePath+b.replace(this.localPath,"")}else if(b===this.localPath)return this.remotePath;return null}},l(go,"td"),go);e(h,"GitRefSpec");var v=h,R=(yo=class{constructor(b=[]){this.rules=b}static from(b){let O=[];for(let F of b)O.push(v.from(F));return new yo(O)}add(b){let O=v.from(b);this.rules.push(O)}translate(b){let O=[];for(let F of this.rules)for(let L of b){let $=F.translate(L);$&&O.push([L,$])}return O}translateOne(b){let O=null;for(let F of this.rules){let L=F.translate(b);L&&(O=L)}return O}localNamespaces(){return this.rules.filter(b=>b.matchPrefix).map(b=>b.localPath.replace(/\/$/,""))}},l(yo,"rd"),yo);e(R,"GitRefSpecSet");var P=R;function C(B,b){let O=B.replace(/\^\{\}$/,""),F=b.replace(/\^\{\}$/,""),L=-(O<F)||+(O>F);return L===0?B.endsWith("^{}")?1:-1:L}l(C,"wY"),e(C,"compareRefNames");var Z=e(B=>{if(typeof B=="number")return B;B=B.toLowerCase();let b=parseInt(B);return B.endsWith("k")&&(b*=1024),B.endsWith("m")&&(b*=1024*1024),B.endsWith("g")&&(b*=1024*1024*1024),b},"num"),oe=e(B=>{if(typeof B=="boolean")return B;if(B=B.trim().toLowerCase(),B==="true"||B==="yes"||B==="on")return!0;if(B==="false"||B==="no"||B==="off")return!1;throw Error(`Expected 'true', 'false', 'yes', 'no', 'on', or 'off', but got ${B}`)},"bool"),Ae={core:{filemode:oe,bare:oe,logallrefupdates:oe,symlinks:oe,ignorecase:oe,bigFileThreshold:Z}},le=/^\[([A-Za-z0-9-.]+)(?: "(.*)")?\]$/,Fe=/^[A-Za-z0-9-.]+$/,ie=/^([A-Za-z][A-Za-z-]*)(?: *= *(.*))?$/,Je=/^[A-Za-z][A-Za-z-]*$/,dt=/^(.*?)( *[#;].*)$/,W=e(B=>{let b=le.exec(B);if(b!=null){let[O,F]=b.slice(1);return[O,F]}return null},"extractSectionLine"),qe=e(B=>{let b=ie.exec(B);if(b!=null){let[O,F="true"]=b.slice(1),L=Ve(F),$=Le(L);return[O,$]}return null},"extractVariableLine"),Ve=e(B=>{let b=dt.exec(B);if(b==null)return B;let[O,F]=b.slice(1);return pe(O)&&pe(F)?`${O}${F}`:O},"removeComments"),pe=e(B=>(B.match(/(?:^|[^\\])"/g)||[]).length%2!==0,"hasOddNumberOfQuotes"),Le=e(B=>B.split("").reduce((b,O,F,L)=>{let $=O==='"'&&L[F-1]!=="\\",K=O==="\\"&&L[F+1]==='"';return $||K?b:b+O},""),"removeQuotes"),He=e(B=>B!=null?B.toLowerCase():null,"lower"),me=e((B,b,O)=>[He(B),b,He(O)].filter(F=>F!=null).join("."),"getPath"),Se=e(B=>{let b=B.split("."),O=b.shift(),F=b.pop(),L=b.length?b.join("."):void 0;return{section:O,subsection:L,name:F,path:me(O,L,F),sectionPath:me(O,L,null),isSection:!!O}},"normalizePath"),We=e((B,b)=>B.reduce((O,F,L)=>b(F)?L:O,-1),"findLastIndex"),Qe=(mo=class{constructor(b){let O=null,F=null;this.parsedConfig=b?b.split(`
53
- `).map(L=>{let $=null,K=null,ne=L.trim(),_e=W(ne),ce=_e!=null;if(ce)[O,F]=_e;else{let Be=qe(ne);Be!=null&&([$,K]=Be)}let he=me(O,F,$);return{line:L,isSection:ce,section:O,subsection:F,name:$,value:K,path:he}}):[]}static from(b){return new mo(b)}async get(b,O=!1){let F=Se(b).path,L=this.parsedConfig.filter($=>$.path===F).map(({section:$,name:K,value:ne})=>{let _e=Ae[$]&&Ae[$][K];return _e?_e(ne):ne});return O?L:L.pop()}async getall(b){return this.get(b,!0)}async getSubsections(b){return this.parsedConfig.filter(O=>O.isSection&&O.section===b).map(O=>O.subsection)}async deleteSection(b,O){this.parsedConfig=this.parsedConfig.filter(F=>!(F.section===b&&F.subsection===O))}async append(b,O){return this.set(b,O,!0)}async set(b,O,F=!1){let{section:L,subsection:$,name:K,path:ne,sectionPath:_e,isSection:ce}=Se(b),he=We(this.parsedConfig,Be=>Be.path===ne);if(O==null)he!==-1&&this.parsedConfig.splice(he,1);else if(he!==-1){let Be=this.parsedConfig[he],Ce=Object.assign({},Be,{name:K,value:O,modified:!0});F?this.parsedConfig.splice(he+1,0,Ce):this.parsedConfig[he]=Ce}else{let Be=this.parsedConfig.findIndex(Me=>Me.path===_e),Ce={section:L,subsection:$,name:K,value:O,modified:!0,path:ne};if(Fe.test(L)&&Je.test(K))if(Be>=0)this.parsedConfig.splice(Be+1,0,Ce);else{let Me={isSection:ce,section:L,subsection:$,modified:!0,path:_e};this.parsedConfig.push(Me,Ce)}}}toString(){return this.parsedConfig.map(({line:b,section:O,subsection:F,name:L,value:$,modified:K=!1})=>K?L!=null&&$!=null?typeof $=="string"&&/[#;]/.test($)?` ${L} = "${$}"`:` ${L} = ${$}`:F!=null?`[${O} "${F}"]`:`[${O}]`:b).join(`
54
- `)}},l(mo,"nd"),mo);e(Qe,"GitConfig");var lt=Qe,bt=(Ka=class{static async get({fs:b,gitdir:O}){let F=await b.read(`${O}/config`,{encoding:"utf8"});return lt.from(F)}static async save({fs:b,gitdir:O,config:F}){await b.write(`${O}/config`,F.toString(),{encoding:"utf8"})}},l(Ka,"Fv"),Ka);e(bt,"GitConfigManager");var ht=bt,kt=e(B=>[`${B}`,`refs/${B}`,`refs/tags/${B}`,`refs/heads/${B}`,`refs/remotes/${B}`,`refs/remotes/${B}/HEAD`],"refpaths"),zt=["config","description","index","shallow","commondir"],Wt;async function ir(B,b){return Wt===void 0&&(Wt=new f),Wt.acquire(B,b)}l(ir,"ro"),e(ir,"acquireLock");var kr=(Yt=class{static async updateRemoteRefs({fs:b,gitdir:O,remote:F,refs:L,symrefs:$,tags:K,refspecs:ne=void 0,prune:_e=!1,pruneTags:ce=!1}){for(let rt of L.values())if(!rt.match(/[0-9a-f]{40}/))throw new Pe(rt);let he=await ht.get({fs:b,gitdir:O});if(!ne){if(ne=await he.getall(`remote.${F}.fetch`),ne.length===0)throw new Ke(F);ne.unshift(`+HEAD:refs/remotes/${F}/HEAD`)}let Be=P.from(ne),Ce=new Map;if(ce){let rt=await Yt.listRefs({fs:b,gitdir:O,filepath:"refs/tags"});await Yt.deleteRefs({fs:b,gitdir:O,refs:rt.map(ot=>`refs/tags/${ot}`)})}if(K){for(let rt of L.keys())if(rt.startsWith("refs/tags")&&!rt.endsWith("^{}")&&!await Yt.exists({fs:b,gitdir:O,ref:rt})){let ot=L.get(rt);Ce.set(rt,ot)}}let Me=Be.translate([...L.keys()]);for(let[rt,ot]of Me){let it=L.get(rt);Ce.set(ot,it)}let ze=Be.translate([...$.keys()]);for(let[rt,ot]of ze){let it=$.get(rt),ft=Be.translateOne(it);ft&&Ce.set(ot,`ref: ${ft}`)}let Ye=[];if(_e){for(let rt of Be.localNamespaces()){let ot=(await Yt.listRefs({fs:b,gitdir:O,filepath:rt})).map(it=>`${rt}/${it}`);for(let it of ot)Ce.has(it)||Ye.push(it)}Ye.length>0&&await Yt.deleteRefs({fs:b,gitdir:O,refs:Ye})}for(let[rt,ot]of Ce)await ir(rt,async()=>b.write(a.join(O,rt),`${ot.trim()}
55
- `,"utf8"));return{pruned:Ye}}static async writeRef({fs:b,gitdir:O,ref:F,value:L}){if(!L.match(/[0-9a-f]{40}/))throw new Pe(L);await ir(F,async()=>b.write(a.join(O,F),`${L.trim()}
56
- `,"utf8"))}static async writeSymbolicRef({fs:b,gitdir:O,ref:F,value:L}){await ir(F,async()=>b.write(a.join(O,F),`ref: ${L.trim()}
57
- `,"utf8"))}static async deleteRef({fs:b,gitdir:O,ref:F}){return Yt.deleteRefs({fs:b,gitdir:O,refs:[F]})}static async deleteRefs({fs:b,gitdir:O,refs:F}){await Promise.all(F.map(ne=>b.rm(a.join(O,ne))));let L=await ir("packed-refs",async()=>b.read(`${O}/packed-refs`,{encoding:"utf8"})),$=s.from(L),K=$.refs.size;for(let ne of F)$.refs.has(ne)&&$.delete(ne);$.refs.size<K&&(L=$.toString(),await ir("packed-refs",async()=>b.write(`${O}/packed-refs`,L,{encoding:"utf8"})))}static async resolve({fs:b,gitdir:O,ref:F,depth:L=void 0}){if(L!==void 0&&(L--,L===-1))return F;if(F.startsWith("ref: "))return F=F.slice(5),Yt.resolve({fs:b,gitdir:O,ref:F,depth:L});if(F.length===40&&/[0-9a-f]{40}/.test(F))return F;let $=await Yt.packedRefs({fs:b,gitdir:O}),K=kt(F).filter(ne=>!zt.includes(ne));for(let ne of K){let _e=await ir(ne,async()=>await b.read(`${O}/${ne}`,{encoding:"utf8"})||$.get(ne));if(_e)return Yt.resolve({fs:b,gitdir:O,ref:_e.trim(),depth:L})}throw new ge(F)}static async exists({fs:b,gitdir:O,ref:F}){try{return await Yt.expand({fs:b,gitdir:O,ref:F}),!0}catch{return!1}}static async expand({fs:b,gitdir:O,ref:F}){if(F.length===40&&/[0-9a-f]{40}/.test(F))return F;let L=await Yt.packedRefs({fs:b,gitdir:O}),$=kt(F);for(let K of $)if(await ir(K,async()=>b.exists(`${O}/${K}`))||L.has(K))return K;throw new ge(F)}static async expandAgainstMap({ref:b,map:O}){let F=kt(b);for(let L of F)if(await O.has(L))return L;throw new ge(b)}static resolveAgainstMap({ref:b,fullref:O=b,depth:F=void 0,map:L}){if(F!==void 0&&(F--,F===-1))return{fullref:O,oid:b};if(b.startsWith("ref: "))return b=b.slice(5),Yt.resolveAgainstMap({ref:b,fullref:O,depth:F,map:L});if(b.length===40&&/[0-9a-f]{40}/.test(b))return{fullref:O,oid:b};let $=kt(b);for(let K of $){let ne=L.get(K);if(ne)return Yt.resolveAgainstMap({ref:ne.trim(),fullref:K,depth:F,map:L})}throw new ge(b)}static async packedRefs({fs:b,gitdir:O}){let F=await ir("packed-refs",async()=>b.read(`${O}/packed-refs`,{encoding:"utf8"}));return s.from(F).refs}static async listRefs({fs:b,gitdir:O,filepath:F}){let L=Yt.packedRefs({fs:b,gitdir:O}),$=null;try{$=await b.readdirDeep(`${O}/${F}`),$=$.map(K=>K.replace(`${O}/${F}/`,""))}catch{$=[]}for(let K of(await L).keys())K.startsWith(F)&&(K=K.replace(F+"/",""),$.includes(K)||$.push(K));return $.sort(C),$}static async listBranches({fs:b,gitdir:O,remote:F}){return F?Yt.listRefs({fs:b,gitdir:O,filepath:`refs/remotes/${F}`}):Yt.listRefs({fs:b,gitdir:O,filepath:"refs/heads"})}static async listTags({fs:b,gitdir:O}){return(await Yt.listRefs({fs:b,gitdir:O,filepath:"refs/tags"})).filter(F=>!F.endsWith("^{}"))}},l(Yt,"Bt"),Yt);e(kr,"GitRefManager");var et=kr;function er(B,b){return U(Tt(B),Tt(b))}l(er,"PY"),e(er,"compareTreeEntryPath");function Tt(B){return B.mode==="040000"?B.path+"/":B.path}l(Tt,"GI"),e(Tt,"appendSlashIfDir");function Nt(B){switch(B){case"040000":return"tree";case"100644":return"blob";case"100755":return"blob";case"120000":return"blob";case"160000":return"commit"}throw new k(`Unexpected GitTree entry mode: ${B}`)}l(Nt,"yP"),e(Nt,"mode2type$1");function Ut(B){let b=[],O=0;for(;O<B.length;){let F=B.indexOf(32,O);if(F===-1)throw new k(`GitTree: Error parsing buffer at byte location ${O}: Could not find the next space character.`);let L=B.indexOf(0,O);if(L===-1)throw new k(`GitTree: Error parsing buffer at byte location ${O}: Could not find the next null character.`);let $=B.slice(O,F).toString("utf8");$==="40000"&&($="040000");let K=Nt($),ne=B.slice(F+1,L).toString("utf8");if(ne.includes("\\")||ne.includes("/"))throw new j(ne);let _e=B.slice(L+1,L+21).toString("hex");O=L+21,b.push({mode:$,path:ne,oid:_e,type:K})}return b}l(Ut,"kY"),e(Ut,"parseBuffer");function pr(B){if(typeof B=="number"&&(B=B.toString(8)),B.match(/^0?4.*/))return"040000";if(B.match(/^1006.*/))return"100644";if(B.match(/^1007.*/))return"100755";if(B.match(/^120.*/))return"120000";if(B.match(/^160.*/))return"160000";throw new k(`Could not understand file mode: ${B}`)}l(pr,"BY"),e(pr,"limitModeToAllowed");function nl(B){return!B.oid&&B.sha&&(B.oid=B.sha),B.mode=pr(B.mode),B.type||(B.type=Nt(B.mode)),B}l(nl,"CY"),e(nl,"nudgeIntoShape");var B2=(wo=class{constructor(b){if(Buffer.isBuffer(b))this._entries=Ut(b);else if(Array.isArray(b))this._entries=b.map(nl);else throw new k("invalid type passed to GitTree constructor");this._entries.sort(M)}static from(b){return new wo(b)}render(){return this._entries.map(b=>`${b.mode} ${b.type} ${b.oid} ${b.path}`).join(`
58
- `)}toObject(){let b=[...this._entries];return b.sort(er),Buffer.concat(b.map(O=>{let F=Buffer.from(O.mode.replace(/^0/,"")),L=Buffer.from(" "),$=Buffer.from(O.path,"utf8"),K=Buffer.from([0]),ne=Buffer.from(O.oid,"hex");return Buffer.concat([F,L,$,K,ne])}))}entries(){return this._entries}*[Symbol.iterator](){for(let b of this._entries)yield b}},l(wo,"id"),wo);e(B2,"GitTree");var Qr=B2,I2=(Ja=class{static wrap({type:b,object:O}){let F=`${b} ${O.length}\0`,L=F.length,$=L+O.length,K=new Uint8Array($);for(let ne=0;ne<L;ne++)K[ne]=F.charCodeAt(ne);return K.set(O,L),K}static unwrap(b){let O=b.indexOf(32),F=b.indexOf(0),L=b.slice(0,O).toString("utf8"),$=b.slice(O+1,F).toString("utf8"),K=b.length-(F+1);if(parseInt($)!==K)throw new k(`Length mismatch: expected ${$} bytes but got ${K} instead.`);return{type:L,object:Buffer.from(b.slice(F+1))}}},l(Ja,"xv"),Ja);e(I2,"GitObject");var Na=I2;async function Gd({fs:B,gitdir:b,oid:O}){let F=`objects/${O.slice(0,2)}/${O.slice(2)}`,L=await B.read(`${b}/${F}`);return L?{object:L,format:"deflated",source:F}:null}l(Gd,"mP"),e(Gd,"readObjectLoose");function x2(B,b){let O=new I(B),F=Vd(O);if(F!==b.byteLength)throw new k(`applyDelta expected source buffer to be ${F} bytes but the provided buffer was ${b.length} bytes`);let L=Vd(O),$,K=Jd(O,b);if(K.byteLength===L)$=K;else{$=Buffer.alloc(L);let ne=new I($);for(ne.copy(K);!O.eof();)ne.copy(Jd(O,b));let _e=ne.tell();if(L!==_e)throw new k(`applyDelta expected target buffer to be ${L} bytes but the resulting buffer was ${_e} bytes`)}return $}l(x2,"LY"),e(x2,"applyDelta");function Vd(B){let b=0,O=0,F=null;do F=B.readUInt8(),b|=(F&127)<<O,O+=7;while(F&128);return b}l(Vd,"YI"),e(Vd,"readVarIntLE");function Kd(B,b,O){let F=0,L=0;for(;O--;)b&1&&(F|=B.readUInt8()<<L),b>>=1,L+=8;return F}l(Kd,"KI"),e(Kd,"readCompactLE");function Jd(B,b){let O=B.readUInt8(),F=128,L=15,$=112;if(O&F){let K=Kd(B,O&L,4),ne=Kd(B,(O&$)>>4,3);return ne===0&&(ne=65536),b.slice(K,K+ne)}else return B.slice(O)}l(Jd,"XI"),e(Jd,"readOp");function j2(B){let b=[B];return{next(){return Promise.resolve({done:b.length===0,value:b.pop()})},return(){return b=[],{}},[Symbol.asyncIterator](){return this}}}l(j2,"DY"),e(j2,"fromValue");function Yd(B){return B[Symbol.asyncIterator]?B[Symbol.asyncIterator]():B[Symbol.iterator]?B[Symbol.iterator]():B.next?B:j2(B)}l(Yd,"gP"),e(Yd,"getIterator");var C2=(Ya=class{constructor(b){if(typeof Buffer>"u")throw new Error("Missing Buffer dependency");this.stream=Yd(b),this.buffer=null,this.cursor=0,this.undoCursor=0,this.started=!1,this._ended=!1,this._discardedBytes=0}eof(){return this._ended&&this.cursor===this.buffer.length}tell(){return this._discardedBytes+this.cursor}async byte(){if(!this.eof()&&(this.started||await this._init(),!(this.cursor===this.buffer.length&&(await this._loadnext(),this._ended))))return this._moveCursor(1),this.buffer[this.undoCursor]}async chunk(){if(!this.eof()&&(this.started||await this._init(),!(this.cursor===this.buffer.length&&(await this._loadnext(),this._ended))))return this._moveCursor(this.buffer.length),this.buffer.slice(this.undoCursor,this.cursor)}async read(b){if(!this.eof())return this.started||await this._init(),this.cursor+b>this.buffer.length&&(this._trim(),await this._accumulate(b)),this._moveCursor(b),this.buffer.slice(this.undoCursor,this.cursor)}async skip(b){this.eof()||(this.started||await this._init(),this.cursor+b>this.buffer.length&&(this._trim(),await this._accumulate(b)),this._moveCursor(b))}async undo(){this.cursor=this.undoCursor}async _next(){this.started=!0;let{done:b,value:O}=await this.stream.next();return b&&(this._ended=!0,!O)?Buffer.alloc(0):(O&&(O=Buffer.from(O)),O)}_trim(){this.buffer=this.buffer.slice(this.undoCursor),this.cursor-=this.undoCursor,this._discardedBytes+=this.undoCursor,this.undoCursor=0}_moveCursor(b){this.undoCursor=this.cursor,this.cursor+=b,this.cursor>this.buffer.length&&(this.cursor=this.buffer.length)}async _accumulate(b){if(this._ended)return;let O=[this.buffer];for(;this.cursor+b>L2(O);){let F=await this._next();if(this._ended)break;O.push(F)}this.buffer=Buffer.concat(O)}async _loadnext(){this._discardedBytes+=this.buffer.length,this.undoCursor=0,this.cursor=0,this.buffer=await this._next()}async _init(){this.buffer=await this._next()}},l(Ya,"Ov"),Ya);e(C2,"StreamReader");var P2=C2;function L2(B){return B.reduce((b,O)=>b+O.length,0)}l(L2,"NY"),e(L2,"lengthBuffers");async function N2(B,b){let O=new P2(B),F=await O.read(4);if(F=F.toString("utf8"),F!=="PACK")throw new k(`Invalid PACK header '${F}'`);let L=await O.read(4);if(L=L.readUInt32BE(0),L!==2)throw new k(`Invalid packfile version: ${L}`);let $=await O.read(4);if($=$.readUInt32BE(0),!($<1))for(;!O.eof()&&$--;){let K=O.tell(),{type:ne,length:_e,ofs:ce,reference:he}=await D2(O),Be=new r.Inflate;for(;!Be.result;){let Ce=await O.chunk();if(!Ce)break;if(Be.push(Ce,!1),Be.err)throw new k(`Pako error: ${Be.msg}`);if(Be.result){if(Be.result.length!==_e)throw new k("Inflated object size is different from that stated in packfile.");await O.undo(),await O.read(Ce.length-Be.strm.avail_in);let Me=O.tell();await b({data:Be.result,type:ne,num:$,offset:K,end:Me,reference:he,ofs:ce})}}}}l(N2,"$Y"),e(N2,"listpack");async function D2(B){let b=await B.byte(),O=b>>4&7,F=b&15;if(b&128){let K=4;do b=await B.byte(),F|=(b&127)<<K,K+=7;while(b&128)}let L,$;if(O===6){let K=0;L=0;let ne=[];do b=await B.byte(),L|=(b&127)<<K,K+=7,ne.push(b);while(b&128);$=Buffer.from(ne)}return O===7&&($=await B.read(20)),{type:O,length:F,ofs:L,reference:$}}l(D2,"MY"),e(D2,"parseHeader");var Zd=!1;async function Qd(B){return Zd===null&&(Zd=M2()),Zd?U2(B):r.inflate(B)}l(Qd,"wP"),e(Qd,"inflate");async function U2(B){let b=new DecompressionStream("deflate"),O=new Blob([B]).stream().pipeThrough(b);return new Uint8Array(await new Response(O).arrayBuffer())}l(U2,"UY"),e(U2,"browserInflate");function M2(){try{if(new DecompressionStream("deflate"))return!0}catch{}return!1}l(M2,"jY"),e(M2,"testDecompressionStream");function $2(B){let b=[],O=0,F=0;do{O=B.readUInt8();let L=O&127;b.push(L),F=O&128}while(F);return b.reduce((L,$)=>L+1<<7|$,-1)}l($2,"HY"),e($2,"decodeVarInt");function W2(B,b){let O=b,F=4,L=null;do L=B.readUInt8(),O|=(L&127)<<F,F+=7;while(L&128);return O}l(W2,"WY"),e(W2,"otherVarIntDecode");var z2=(Ri=class{constructor(b){Object.assign(this,b),this.offsetCache={}}static async fromIdx({idx:b,getExternalRefDelta:O}){let F=new I(b);if(F.slice(4).toString("hex")!=="ff744f63")return;let L=F.readUInt32BE();if(L!==2)throw new k(`Unable to read version ${L} packfile IDX. (Only version 2 supported)`);if(b.byteLength>2048*1024*1024)throw new k("To keep implementation simple, I haven't implemented the layer 5 feature needed to support packfiles > 2GB in size.");F.seek(F.tell()+4*255);let $=F.readUInt32BE(),K=[];for(let ce=0;ce<$;ce++){let he=F.slice(20).toString("hex");K[ce]=he}F.seek(F.tell()+4*$);let ne=new Map;for(let ce=0;ce<$;ce++)ne.set(K[ce],F.readUInt32BE());let _e=F.slice(20).toString("hex");return new Ri({hashes:K,crcs:{},offsets:ne,packfileSha:_e,getExternalRefDelta:O})}static async fromPack({pack:b,getExternalRefDelta:O,onProgress:F}){let L={1:"commit",2:"tree",3:"blob",4:"tag",6:"ofs-delta",7:"ref-delta"},$={},K=b.slice(-20).toString("hex"),ne=[],_e={},ce=new Map,he=null,Be=null;await N2([b],async({data:rt,type:ot,reference:it,offset:ft,num:gt})=>{he===null&&(he=gt);let yt=Math.floor((he-gt)*100/he);yt!==Be&&F&&await F({phase:"Receiving objects",loaded:he-gt,total:he}),Be=yt,ot=L[ot],["commit","tree","blob","tag"].includes(ot)?$[ft]={type:ot,offset:ft}:ot==="ofs-delta"?$[ft]={type:ot,offset:ft}:ot==="ref-delta"&&($[ft]={type:ot,offset:ft})});let Ce=Object.keys($).map(Number);for(let[rt,ot]of Ce.entries()){let it=rt+1===Ce.length?b.byteLength-20:Ce[rt+1],ft=$[ot],gt=n.buf(b.slice(ot,it))>>>0;ft.end=it,ft.crc=gt}let Me=new Ri({pack:Promise.resolve(b),packfileSha:K,crcs:_e,hashes:ne,offsets:ce,getExternalRefDelta:O});Be=null;let ze=0,Ye=[0,0,0,0,0,0,0,0,0,0,0,0];for(let rt in $){rt=Number(rt);let ot=Math.floor(ze*100/he);ot!==Be&&F&&await F({phase:"Resolving deltas",loaded:ze,total:he}),ze++,Be=ot;let it=$[rt];if(!it.oid)try{Me.readDepth=0,Me.externalReadDepth=0;let{type:ft,object:gt}=await Me.readSlice({start:rt});Ye[Me.readDepth]+=1;let yt=await de(Na.wrap({type:ft,object:gt}));it.oid=yt,ne.push(yt),ce.set(yt,rt),_e[yt]=it.crc}catch{continue}}return ne.sort(),Me}async toBuffer(){let b=[],O=e((ce,he)=>{b.push(Buffer.from(ce,he))},"write");O("ff744f63","hex"),O("00000002","hex");let F=new I(Buffer.alloc(256*4));for(let ce=0;ce<256;ce++){let he=0;for(let Be of this.hashes)parseInt(Be.slice(0,2),16)<=ce&&he++;F.writeUInt32BE(he)}b.push(F.buffer);for(let ce of this.hashes)O(ce,"hex");let L=new I(Buffer.alloc(this.hashes.length*4));for(let ce of this.hashes)L.writeUInt32BE(this.crcs[ce]);b.push(L.buffer);let $=new I(Buffer.alloc(this.hashes.length*4));for(let ce of this.hashes)$.writeUInt32BE(this.offsets.get(ce));b.push($.buffer),O(this.packfileSha,"hex");let K=Buffer.concat(b),ne=await de(K),_e=Buffer.alloc(20);return _e.write(ne,"hex"),Buffer.concat([K,_e])}async load({pack:b}){this.pack=b}async unload(){this.pack=null}async read({oid:b}){if(!this.offsets.get(b)){if(this.getExternalRefDelta)return this.externalReadDepth++,this.getExternalRefDelta(b);throw new k(`Could not read object ${b} from packfile`)}let O=this.offsets.get(b);return this.readSlice({start:O})}async readSlice({start:b}){if(this.offsetCache[b])return Object.assign({},this.offsetCache[b]);this.readDepth++;let O={16:"commit",32:"tree",48:"blob",64:"tag",96:"ofs_delta",112:"ref_delta"};if(!this.pack)throw new k("Tried to read from a GitPackIndex with no packfile loaded into memory");let F=(await this.pack).slice(b),L=new I(F),$=L.readUInt8(),K=$&112,ne=O[K];if(ne===void 0)throw new k("Unrecognized type: 0b"+K.toString(2));let _e=$&15,ce=_e;$&128&&(ce=W2(L,_e));let he=null,Be=null;if(ne==="ofs_delta"){let Me=$2(L),ze=b-Me;({object:he,type:ne}=await this.readSlice({start:ze}))}if(ne==="ref_delta"){let Me=L.slice(20).toString("hex");({object:he,type:ne}=await this.read({oid:Me}))}let Ce=F.slice(L.tell());if(Be=Buffer.from(await Qd(Ce)),Be.byteLength!==ce)throw new k(`Packfile told us object would have length ${ce} but it had length ${Be.byteLength}`);return he&&(Be=Buffer.from(x2(Be,he))),this.readDepth>3&&(this.offsetCache[b]={type:ne,object:Be}),{type:ne,format:"content",object:Be}}},l(Ri,"If"),Ri);e(z2,"GitPackIndex");var Xd=z2,Ff=Symbol("PackfileCache");async function H2({fs:B,filename:b,getExternalRefDelta:O,emitter:F,emitterPrefix:L}){let $=await B.read(b);return Xd.fromIdx({idx:$,getExternalRefDelta:O})}l(H2,"qY"),e(H2,"loadPackIndex");function Bf({fs:B,cache:b,filename:O,getExternalRefDelta:F,emitter:L,emitterPrefix:$}){b[Ff]||(b[Ff]=new Map);let K=b[Ff].get(O);return K||(K=H2({fs:B,filename:O,getExternalRefDelta:F,emitter:L,emitterPrefix:$}),b[Ff].set(O,K)),K}l(Bf,"wv"),e(Bf,"readPackIndex");async function q2({fs:B,cache:b,gitdir:O,oid:F,format:L="content",getExternalRefDelta:$}){let K=await B.readdir(a.join(O,"objects/pack"));K=K.filter(ne=>ne.endsWith(".idx"));for(let ne of K){let _e=`${O}/objects/pack/${ne}`,ce=await Bf({fs:B,cache:b,filename:_e,getExternalRefDelta:$});if(ce.error)throw new k(ce.error);if(ce.offsets.has(F)){if(!ce.pack){let Be=_e.replace(/idx$/,"pack");ce.pack=B.read(Be)}let he=await ce.read({oid:F,getExternalRefDelta:$});return he.format="content",he.source=`objects/pack/${ne.replace(/idx$/,"pack")}`,he}}return null}l(q2,"zY"),e(q2,"readObjectPacked");async function Mt({fs:B,cache:b,gitdir:O,oid:F,format:L="content"}){let $=e(he=>Mt({fs:B,cache:b,gitdir:O,oid:he}),"getExternalRefDelta"),K;if(F==="4b825dc642cb6eb9a060e54bf8d69288fbee4904"&&(K={format:"wrapped",object:Buffer.from("tree 0\0")}),K||(K=await Gd({fs:B,gitdir:O,oid:F})),!K){if(K=await q2({fs:B,cache:b,gitdir:O,oid:F,getExternalRefDelta:$}),!K)throw new ge(F);return K}if(L==="deflated"||(K.format==="deflated"&&(K.object=Buffer.from(await Qd(K.object)),K.format="wrapped"),L==="wrapped"))return K;let ne=await de(K.object);if(ne!==F)throw new k(`SHA check failed! Expected ${F}, computed ${ne}`);let{object:_e,type:ce}=Na.unwrap(K.object);if(K.type=ce,K.object=_e,K.format="content",L==="content")return K;throw new k(`invalid requested format "${L}"`)}l(Mt,"ht"),e(Mt,"_readObject");var G2=(bo=class extends w{constructor(b,O,F=!0){super(`Failed to create ${b} at ${O} because it already exists.${F?` (Hint: use 'force: true' parameter to overwrite existing ${b}.)`:""}`),this.code=this.name=bo.code,this.data={noun:b,where:O,canForce:F}}},l(bo,"od"),bo);e(G2,"AlreadyExistsError");var Hn=G2;Hn.code="AlreadyExistsError";var V2=(vo=class extends w{constructor(b,O,F){super(`Found multiple ${b} matching "${O}" (${F.join(", ")}). Use a longer abbreviation length to disambiguate them.`),this.code=this.name=vo.code,this.data={nouns:b,short:O,matches:F}}},l(vo,"ad"),vo);e(V2,"AmbiguousError");var ep=V2;ep.code="AmbiguousError";var K2=(_o=class extends w{constructor(b){super(`Your local changes to the following files would be overwritten by checkout: ${b.join(", ")}`),this.code=this.name=_o.code,this.data={filepaths:b}}},l(_o,"sd"),_o);e(K2,"CheckoutConflictError");var tp=K2;tp.code="CheckoutConflictError";var J2=(Eo=class extends w{constructor(b,O){super(`Failed to checkout "${b}" because commit ${O} is not available locally. Do a git fetch to make the branch available locally.`),this.code=this.name=Eo.code,this.data={ref:b,oid:O}}},l(Eo,"ld"),Eo);e(J2,"CommitNotFetchedError");var rp=J2;rp.code="CommitNotFetchedError";var Y2=(So=class extends w{constructor(){super("Empty response from git server."),this.code=this.name=So.code,this.data={}}},l(So,"fd"),So);e(Y2,"EmptyServerResponseError");var np=Y2;np.code="EmptyServerResponseError";var Z2=(Ao=class extends w{constructor(){super("A simple fast-forward merge was not possible."),this.code=this.name=Ao.code,this.data={}}},l(Ao,"ud"),Ao);e(Z2,"FastForwardError");var ip=Z2;ip.code="FastForwardError";var Q2=(Ro=class extends w{constructor(b,O){super(`One or more branches were not updated: ${b}`),this.code=this.name=Ro.code,this.data={prettyDetails:b,result:O}}},l(Ro,"cd"),Ro);e(Q2,"GitPushError");var op=Q2;op.code="GitPushError";var X2=(ko=class extends w{constructor(b,O,F){super(`HTTP Error: ${b} ${O}`),this.code=this.name=ko.code,this.data={statusCode:b,statusMessage:O,response:F}}},l(ko,"hd"),ko);e(X2,"HttpError");var If=X2;If.code="HttpError";var eS=(Oo=class extends w{constructor(b){let O="invalid filepath";b==="leading-slash"||b==="trailing-slash"?O='"filepath" parameter should not include leading or trailing directory separators because these can cause problems on some platforms.':b==="directory"&&(O='"filepath" should not be a directory.'),super(O),this.code=this.name=Oo.code,this.data={reason:b}}},l(Oo,"dd"),Oo);e(eS,"InvalidFilepathError");var Da=eS;Da.code="InvalidFilepathError";var tS=(To=class extends w{constructor(b,O){super(`"${b}" would be an invalid git reference. (Hint: a valid alternative would be "${O}".)`),this.code=this.name=To.code,this.data={ref:b,suggestion:O}}},l(To,"pd"),To);e(tS,"InvalidRefNameError");var qn=tS;qn.code="InvalidRefNameError";var rS=(Fo=class extends w{constructor(b){super(`Maximum search depth of ${b} exceeded.`),this.code=this.name=Fo.code,this.data={depth:b}}},l(Fo,"yd"),Fo);e(rS,"MaxDepthError");var ap=rS;ap.code="MaxDepthError";var nS=(Bo=class extends w{constructor(){super("Merges with conflicts are not supported yet."),this.code=this.name=Bo.code,this.data={}}},l(Bo,"md"),Bo);e(nS,"MergeNotSupportedError");var xf=nS;xf.code="MergeNotSupportedError";var iS=(Io=class extends w{constructor(b,O,F,L){super(`Automatic merge failed with one or more merge conflicts in the following files: ${b.toString()}. Fix conflicts then commit the result.`),this.code=this.name=Io.code,this.data={filepaths:b,bothModified:O,deleteByUs:F,deleteByTheirs:L}}},l(Io,"gd"),Io);e(iS,"MergeConflictError");var jf=iS;jf.code="MergeConflictError";var oS=(xo=class extends w{constructor(b){super(`No name was provided for ${b} in the argument or in the .git/config file.`),this.code=this.name=xo.code,this.data={role:b}}},l(xo,"wd"),xo);e(oS,"MissingNameError");var Nr=oS;Nr.code="MissingNameError";var aS=(jo=class extends w{constructor(b){super(`The function requires a "${b}" parameter but none was provided.`),this.code=this.name=jo.code,this.data={parameter:b}}},l(jo,"vd"),jo);e(aS,"MissingParameterError");var Xr=aS;Xr.code="MissingParameterError";var sS=(Co=class extends w{constructor(b){super('There are multiple errors that were thrown by the method. Please refer to the "errors" property to see more'),this.code=this.name=Co.code,this.data={errors:b},this.errors=b}},l(Co,"bd"),Co);e(sS,"MultipleGitError");var sp=sS;sp.code="MultipleGitError";var lS=(Po=class extends w{constructor(b,O){super(`Expected "${b}" but received "${O}".`),this.code=this.name=Po.code,this.data={expected:b,actual:O}}},l(Po,"_d"),Po);e(lS,"ParseError");var il=lS;il.code="ParseError";var fS=(Lo=class extends w{constructor(b){let O="";b==="not-fast-forward"?O=" because it was not a simple fast-forward":b==="tag-exists"&&(O=" because tag already exists"),super(`Push rejected${O}. Use "force: true" to override.`),this.code=this.name=Lo.code,this.data={reason:b}}},l(Lo,"Ed"),Lo);e(fS,"PushRejectedError");var Cf=fS;Cf.code="PushRejectedError";var uS=(No=class extends w{constructor(b,O){super(`Remote does not support the "${b}" so the "${O}" parameter cannot be used.`),this.code=this.name=No.code,this.data={capability:b,parameter:O}}},l(No,"Sd"),No);e(uS,"RemoteCapabilityError");var Ua=uS;Ua.code="RemoteCapabilityError";var cS=(Do=class extends w{constructor(b,O){super(`Remote did not reply using the "smart" HTTP protocol. Expected "001e# service=git-upload-pack" but received: ${b}`),this.code=this.name=Do.code,this.data={preview:b,response:O}}},l(Do,"Ad"),Do);e(cS,"SmartHttpError");var lp=cS;lp.code="SmartHttpError";var hS=(Uo=class extends w{constructor(b,O,F){super(`Git remote "${b}" uses an unrecognized transport protocol: "${O}"`),this.code=this.name=Uo.code,this.data={url:b,transport:O,suggestion:F}}},l(Uo,"Rd"),Uo);e(hS,"UnknownTransportError");var fp=hS;fp.code="UnknownTransportError";var dS=(Mo=class extends w{constructor(b){super(`Cannot parse remote URL: "${b}"`),this.code=this.name=Mo.code,this.data={url:b}}},l(Mo,"Td"),Mo);e(dS,"UrlParseError");var up=dS;up.code="UrlParseError";var pS=($o=class extends w{constructor(){super("The operation was canceled."),this.code=this.name=$o.code,this.data={}}},l($o,"Fd"),$o);e(pS,"UserCanceledError");var Pf=pS;Pf.code="UserCanceledError";var gS=(Wo=class extends w{constructor(b){super(`Could not merge index: Entry for '${b}' is not up to date. Either reset the index entry to HEAD, or stage your unstaged changes.`),this.code=this.name=Wo.code,this.data={filepath:b}}},l(Wo,"xd"),Wo);e(gS,"IndexResetError");var cp=gS;cp.code="IndexResetError";var yS=(zo=class extends w{constructor(b){super(`"${b}" does not point to any commit. You're maybe working on a repository with no commits yet. `),this.code=this.name=zo.code,this.data={ref:b}}},l(zo,"Od"),zo);e(yS,"NoCommitError");var hp=yS;hp.code="NoCommitError";var mS=Object.freeze({__proto__:null,AlreadyExistsError:Hn,AmbiguousError:ep,CheckoutConflictError:tp,CommitNotFetchedError:rp,EmptyServerResponseError:np,FastForwardError:ip,GitPushError:op,HttpError:If,InternalError:k,InvalidFilepathError:Da,InvalidOidError:Pe,InvalidRefNameError:qn,MaxDepthError:ap,MergeNotSupportedError:xf,MergeConflictError:jf,MissingNameError:Nr,MissingParameterError:Xr,MultipleGitError:sp,NoRefspecError:Ke,NotFoundError:ge,ObjectTypeError:xe,ParseError:il,PushRejectedError:Cf,RemoteCapabilityError:Ua,SmartHttpError:lp,UnknownTransportError:fp,UnsafeFilepathError:j,UrlParseError:up,UserCanceledError:Pf,UnmergedPathsError:S,IndexResetError:cp,NoCommitError:hp});function Lf({name:B,email:b,timestamp:O,timezoneOffset:F}){return F=wS(F),`${B} <${b}> ${O} ${F}`}l(Lf,"uv"),e(Lf,"formatAuthor");function wS(B){let b=bS(vS(B));B=Math.abs(B);let O=Math.floor(B/60);B-=O*60;let F=String(O),L=String(B);return F.length<2&&(F="0"+F),L.length<2&&(L="0"+L),(b===-1?"-":"+")+F+L}l(wS,"VY"),e(wS,"formatTimezoneOffset");function bS(B){return Math.sign(B)||(Object.is(B,-0)?-1:1)}l(bS,"GY"),e(bS,"simpleSign");function vS(B){return B===0?B:-B}l(vS,"YY"),e(vS,"negateExceptForZero");function vn(B){return B=B.replace(/\r/g,""),B=B.replace(/^\n+/,""),B=B.replace(/\n+$/,"")+`
59
- `,B}l(vn,"ci"),e(vn,"normalizeNewlines");function ol(B){let[,b,O,F,L]=B.match(/^(.*) <(.*)> (.*) (.*)$/);return{name:b,email:O,timestamp:Number(F),timezoneOffset:_S(L)}}l(ol,"jh"),e(ol,"parseAuthor");function _S(B){let[,b,O,F]=B.match(/(\+|-)(\d\d)(\d\d)/);return F=(b==="+"?1:-1)*(Number(O)*60+Number(F)),ES(F)}l(_S,"KY"),e(_S,"parseTimezoneOffset");function ES(B){return B===0?B:-B}l(ES,"XY"),e(ES,"negateExceptForZero$1");var SS=(Jn=class{constructor(b){if(typeof b=="string")this._tag=b;else if(Buffer.isBuffer(b))this._tag=b.toString("utf8");else if(typeof b=="object")this._tag=Jn.render(b);else throw new k("invalid type passed to GitAnnotatedTag constructor")}static from(b){return new Jn(b)}static render(b){return`object ${b.object}
60
- type ${b.type}
61
- tag ${b.tag}
62
- tagger ${Lf(b.tagger)}
63
-
64
- ${b.message}
65
- ${b.gpgsig?b.gpgsig:""}`}justHeaders(){return this._tag.slice(0,this._tag.indexOf(`
66
-
67
- `))}message(){let b=this.withoutSignature();return b.slice(b.indexOf(`
68
-
69
- `)+2)}parse(){return Object.assign(this.headers(),{message:this.message(),gpgsig:this.gpgsig()})}render(){return this._tag}headers(){let b=this.justHeaders().split(`
70
- `),O=[];for(let L of b)L[0]===" "?O[O.length-1]+=`
71
- `+L.slice(1):O.push(L);let F={};for(let L of O){let $=L.slice(0,L.indexOf(" ")),K=L.slice(L.indexOf(" ")+1);Array.isArray(F[$])?F[$].push(K):F[$]=K}return F.tagger&&(F.tagger=ol(F.tagger)),F.committer&&(F.committer=ol(F.committer)),F}withoutSignature(){let b=vn(this._tag);return b.indexOf(`
72
- -----BEGIN PGP SIGNATURE-----`)===-1?b:b.slice(0,b.lastIndexOf(`
73
- -----BEGIN PGP SIGNATURE-----`))}gpgsig(){if(this._tag.indexOf(`
74
- -----BEGIN PGP SIGNATURE-----`)===-1)return;let b=this._tag.slice(this._tag.indexOf("-----BEGIN PGP SIGNATURE-----"),this._tag.indexOf("-----END PGP SIGNATURE-----")+27);return vn(b)}payload(){return this.withoutSignature()+`
75
- `}toObject(){return Buffer.from(this._tag,"utf8")}static async sign(b,O,F){let L=b.payload(),{signature:$}=await O({payload:L,secretKey:F});$=vn($);let K=L+$;return Jn.from(K)}},l(Jn,"ks"),Jn);e(SS,"GitAnnotatedTag");var sn=SS;function Nf(B){return B.trim().split(`
76
- `).map(b=>" "+b).join(`
77
- `)+`
78
- `}l(Nf,"Z0"),e(Nf,"indent");function AS(B){return B.split(`
79
- `).map(b=>b.replace(/^ /,"")).join(`
80
- `)}l(AS,"JY"),e(AS,"outdent");var RS=(gr=class{constructor(b){if(typeof b=="string")this._commit=b;else if(Buffer.isBuffer(b))this._commit=b.toString("utf8");else if(typeof b=="object")this._commit=gr.render(b);else throw new k("invalid type passed to GitCommit constructor")}static fromPayloadSignature({payload:b,signature:O}){let F=gr.justHeaders(b),L=gr.justMessage(b),$=vn(F+`
81
- gpgsig`+Nf(O)+`
82
- `+L);return new gr($)}static from(b){return new gr(b)}toObject(){return Buffer.from(this._commit,"utf8")}headers(){return this.parseHeaders()}message(){return gr.justMessage(this._commit)}parse(){return Object.assign({message:this.message()},this.headers())}static justMessage(b){return vn(b.slice(b.indexOf(`
83
-
84
- `)+2))}static justHeaders(b){return b.slice(0,b.indexOf(`
85
-
86
- `))}parseHeaders(){let b=gr.justHeaders(this._commit).split(`
87
- `),O=[];for(let L of b)L[0]===" "?O[O.length-1]+=`
88
- `+L.slice(1):O.push(L);let F={parent:[]};for(let L of O){let $=L.slice(0,L.indexOf(" ")),K=L.slice(L.indexOf(" ")+1);Array.isArray(F[$])?F[$].push(K):F[$]=K}return F.author&&(F.author=ol(F.author)),F.committer&&(F.committer=ol(F.committer)),F}static renderHeaders(b){let O="";if(b.tree?O+=`tree ${b.tree}
89
- `:O+=`tree 4b825dc642cb6eb9a060e54bf8d69288fbee4904
90
- `,b.parent){if(b.parent.length===void 0)throw new k("commit 'parent' property should be an array");for(let $ of b.parent)O+=`parent ${$}
91
- `}let F=b.author;O+=`author ${Lf(F)}
92
- `;let L=b.committer||b.author;return O+=`committer ${Lf(L)}
93
- `,b.gpgsig&&(O+="gpgsig"+Nf(b.gpgsig)),O}static render(b){return gr.renderHeaders(b)+`
94
- `+vn(b.message)}render(){return this._commit}withoutSignature(){let b=vn(this._commit);if(b.indexOf(`
95
- gpgsig`)===-1)return b;let O=b.slice(0,b.indexOf(`
96
- gpgsig`)),F=b.slice(b.indexOf(`-----END PGP SIGNATURE-----
97
- `)+28);return vn(O+`
98
- `+F)}isolateSignature(){let b=this._commit.slice(this._commit.indexOf("-----BEGIN PGP SIGNATURE-----"),this._commit.indexOf("-----END PGP SIGNATURE-----")+27);return AS(b)}static async sign(b,O,F){let L=b.withoutSignature(),$=gr.justMessage(b._commit),{signature:K}=await O({payload:L,secretKey:F});K=vn(K);let ne=gr.justHeaders(b._commit)+`
99
- gpgsig`+Nf(K)+`
100
- `+$;return gr.from(ne)}},l(gr,"gr"),gr);e(RS,"GitCommit");var en=RS;async function Qi({fs:B,cache:b,gitdir:O,oid:F}){if(F==="4b825dc642cb6eb9a060e54bf8d69288fbee4904")return{tree:Qr.from([]),oid:F};let{type:L,object:$}=await Mt({fs:B,cache:b,gitdir:O,oid:F});if(L==="tag")return F=sn.from($).parse().object,Qi({fs:B,cache:b,gitdir:O,oid:F});if(L==="commit")return F=en.from($).parse().tree,Qi({fs:B,cache:b,gitdir:O,oid:F});if(L!=="tree")throw new xe(F,L,"tree");return{tree:Qr.from($),oid:F}}l(Qi,"Ws"),e(Qi,"resolveTree");var kS=(Za=class{constructor({fs:b,gitdir:O,ref:F,cache:L}){var ne;var $;this.fs=b,this.cache=L,this.gitdir=O,this.mapPromise=(async()=>{let _e=new Map,ce;try{ce=await et.resolve({fs:b,gitdir:O,ref:F})}catch(Be){Be instanceof ge&&(ce="4b825dc642cb6eb9a060e54bf8d69288fbee4904")}let he=await Qi({fs:b,cache:this.cache,gitdir:O,oid:ce});return he.type="tree",he.mode="40000",_e.set(".",he),_e})();let K=this;this.ConstructEntry=($=(ne=class{constructor(ce){this._fullpath=ce,this._type=!1,this._mode=!1,this._stat=!1,this._content=!1,this._oid=!1}async type(){return K.type(this)}async mode(){return K.mode(this)}async stat(){return K.stat(this)}async content(){return K.content(this)}async oid(){return K.oid(this)}},l(ne,"i"),ne),e($,"TreeEntry"),$)}async readdir(b){let O=b._fullpath,{fs:F,cache:L,gitdir:$}=this,K=await this.mapPromise,ne=K.get(O);if(!ne)throw new Error(`No obj for ${O}`);let _e=ne.oid;if(!_e)throw new Error(`No oid for obj ${JSON.stringify(ne)}`);if(ne.type!=="tree")return null;let{type:ce,object:he}=await Mt({fs:F,cache:L,gitdir:$,oid:_e});if(ce!==ne.type)throw new xe(_e,ce,ne.type);let Be=Qr.from(he);for(let Ce of Be)K.set(a.join(O,Ce.path),Ce);return Be.entries().map(Ce=>a.join(O,Ce.path))}async type(b){if(b._type===!1){let O=await this.mapPromise,{type:F}=O.get(b._fullpath);b._type=F}return b._type}async mode(b){if(b._mode===!1){let O=await this.mapPromise,{mode:F}=O.get(b._fullpath);b._mode=ee(parseInt(F,8))}return b._mode}async stat(b){}async content(b){if(b._content===!1){let O=await this.mapPromise,{fs:F,cache:L,gitdir:$}=this,K=O.get(b._fullpath).oid,{type:ne,object:_e}=await Mt({fs:F,cache:L,gitdir:$,oid:K});ne!=="blob"?b._content=void 0:b._content=new Uint8Array(_e)}return b._content}async oid(b){if(b._oid===!1){let O=(await this.mapPromise).get(b._fullpath);b._oid=O.oid}return b._oid}},l(Za,"Iv"),Za);e(kS,"GitWalkerRepo");var $P=kS;function Dr({ref:B="HEAD"}={}){let b=Object.create(null);return Object.defineProperty(b,Ee,{value:e(function({fs:O,gitdir:F,cache:L}){return new $P({fs:O,gitdir:F,ref:B,cache:L})},"value")}),Object.freeze(b),b}l(Dr,"Br"),e(Dr,"TREE");var OS=(Qa=class{constructor({fs:b,dir:O,gitdir:F,cache:L}){var ne;var $;this.fs=b,this.cache=L,this.dir=O,this.gitdir=F,this.config=null;let K=this;this.ConstructEntry=($=(ne=class{constructor(ce){this._fullpath=ce,this._type=!1,this._mode=!1,this._stat=!1,this._content=!1,this._oid=!1}async type(){return K.type(this)}async mode(){return K.mode(this)}async stat(){return K.stat(this)}async content(){return K.content(this)}async oid(){return K.oid(this)}},l(ne,"i"),ne),e($,"WorkdirEntry"),$)}async readdir(b){let O=b._fullpath,{fs:F,dir:L}=this,$=await F.readdir(a.join(L,O));return $===null?null:$.map(K=>a.join(O,K))}async type(b){return b._type===!1&&await b.stat(),b._type}async mode(b){return b._mode===!1&&await b.stat(),b._mode}async stat(b){if(b._stat===!1){let{fs:O,dir:F}=this,L=await O.lstat(`${F}/${b._fullpath}`);if(!L)throw new Error(`ENOENT: no such file or directory, lstat '${b._fullpath}'`);let $=L.isDirectory()?"tree":"blob";$==="blob"&&!L.isFile()&&!L.isSymbolicLink()&&($="special"),b._type=$,L=G(L),b._mode=L.mode,L.size===-1&&b._actualSize&&(L.size=b._actualSize),b._stat=L}return b._stat}async content(b){if(b._content===!1){let{fs:O,dir:F,gitdir:L}=this;if(await b.type()==="tree")b._content=void 0;else{let $=await(await this._getGitConfig(O,L)).get("core.autocrlf"),K=await O.read(`${F}/${b._fullpath}`,{autocrlf:$});b._actualSize=K.length,b._stat&&b._stat.size===-1&&(b._stat.size=b._actualSize),b._content=new Uint8Array(K)}}return b._content}async oid(b){if(b._oid===!1){let O=this,{fs:F,gitdir:L,cache:$}=this,K;await Q.acquire({fs:F,gitdir:L,cache:$},async function(ne){let _e=ne.entriesMap.get(b._fullpath),ce=await b.stat(),he=await(await O._getGitConfig(F,L)).get("core.filemode"),Be=typeof process<"u"?process.platform!=="win32":!0;if(!_e||te(ce,_e,he,Be)){let Ce=await b.content();Ce===void 0?K=void 0:(K=await de(Na.wrap({type:"blob",object:Ce})),_e&&K===_e.oid&&(!he||ce.mode===_e.mode)&&te(ce,_e,he,Be)&&ne.insert({filepath:b._fullpath,stats:ce,oid:K}))}else K=_e.oid}),b._oid=K}return b._oid}async _getGitConfig(b,O){return this.config?this.config:(this.config=await ht.get({fs:b,gitdir:O}),this.config)}},l(Qa,"Pv"),Qa);e(OS,"GitWalkerFs");var WP=OS;function Xi(){let B=Object.create(null);return Object.defineProperty(B,Ee,{value:e(function({fs:b,dir:O,gitdir:F,cache:L}){return new WP({fs:b,dir:O,gitdir:F,cache:L})},"value")}),Object.freeze(B),B}l(Xi,"Ks"),e(Xi,"WORKDIR");function TS(B,b){let O=b-B;return Array.from({length:O},(F,L)=>B+L)}l(TS,"ZY"),e(TS,"arrayRange");var FS=typeof Array.prototype.flat>"u"?B=>B.reduce((b,O)=>b.concat(O),[]):B=>B.flat(),BS=(Xa=class{constructor(){this.value=null}consider(b){b!=null&&(this.value===null?this.value=b:b<this.value&&(this.value=b))}reset(){this.value=null}},l(Xa,"kv"),Xa);e(BS,"RunningMinimum");var zP=BS;function*IS(B){let b=new zP,O,F=[],L=B.length;for(let $=0;$<L;$++)F[$]=B[$].next().value,F[$]!==void 0&&b.consider(F[$]);if(b.value!==null)for(;;){let $=[];O=b.value,b.reset();for(let K=0;K<L;K++)F[K]!==void 0&&F[K]===O?($[K]=F[K],F[K]=B[K].next().value):$[K]=null,F[K]!==void 0&&b.consider(F[K]);if(yield $,b.value===null)return}}l(IS,"QY"),e(IS,"unionOfIterators");async function Gn({fs:B,cache:b,dir:O,gitdir:F,trees:L,map:$=e(async(_e,ce)=>ce,"map"),reduce:K=e(async(_e,ce)=>{let he=FS(ce);return _e!==void 0&&he.unshift(_e),he},"reduce"),iterate:ne=e((_e,ce)=>Promise.all([...ce].map(_e)),"iterate")}){let _e=L.map(Me=>Me[Ee]({fs:B,dir:O,gitdir:F,cache:b})),ce=new Array(_e.length).fill("."),he=TS(0,_e.length),Be=e(async Me=>{he.map(Ye=>{let rt=Me[Ye];Me[Ye]=rt&&new _e[Ye].ConstructEntry(rt)});let ze=(await Promise.all(he.map(Ye=>{let rt=Me[Ye];return rt?_e[Ye].readdir(rt):[]}))).map(Ye=>(Ye===null?[]:Ye)[Symbol.iterator]());return{entries:Me,children:IS(ze)}},"unionWalkerFromReaddir"),Ce=e(async Me=>{let{entries:ze,children:Ye}=await Be(Me),rt=ze.find(it=>it&&it._fullpath)._fullpath,ot=await $(rt,ze);if(ot!==null){let it=await ne(Ce,Ye);return it=it.filter(ft=>ft!==void 0),K(ot,it)}},"walk");return Ce(ce)}l(Gn,"lo"),e(Gn,"_walk");async function Df(B,b){let O=await B.readdir(b);O==null?await B.rm(b):O.length?await Promise.all(O.map(F=>{let L=a.join(b,F);return B.lstat(L).then($=>{if($)return $.isDirectory()?Df(B,L):B.rm(L)})})).then(()=>B.rmdir(b)):await B.rmdir(b)}l(Df,"pv"),e(Df,"rmRecursive");function xS(B){return jS(B)&&dp(B.then)&&dp(B.catch)}l(xS,"eK"),e(xS,"isPromiseLike");function jS(B){return B&&typeof B=="object"}l(jS,"tK"),e(jS,"isObject");function dp(B){return typeof B=="function"}l(dp,"JI"),e(dp,"isFunction");function pp(B){return xS(e(b=>{try{return b.readFile().catch(O=>O)}catch(O){return O}},"test")(B))}l(pp,"ZI"),e(pp,"isPromiseFs");var CS=["readFile","writeFile","mkdir","rmdir","unlink","stat","lstat","readdir","readlink","symlink"];function gp(B,b){if(pp(b))for(let O of CS)B[`_${O}`]=b[O].bind(b);else for(let O of CS)B[`_${O}`]=u(b[O].bind(b));pp(b)?b.rm?B._rm=b.rm.bind(b):b.rmdir.length>1?B._rm=b.rmdir.bind(b):B._rm=Df.bind(null,B):b.rm?B._rm=u(b.rm.bind(b)):b.rmdir.length>2?B._rm=u(b.rmdir.bind(b)):B._rm=Df.bind(null,B)}l(gp,"eP"),e(gp,"bindFs");var PS=(es=class{constructor(b){if(typeof b._original_unwrapped_fs<"u")return b;let O=Object.getOwnPropertyDescriptor(b,"promises");O&&O.enumerable?gp(this,b.promises):gp(this,b),this._original_unwrapped_fs=b}async exists(b,O={}){try{return await this._stat(b),!0}catch(F){if(F.code==="ENOENT"||F.code==="ENOTDIR"||(F.code||"").includes("ENS"))return!1;throw console.log('Unhandled error in "FileSystem.exists()" function',F),F}}async read(b,O={}){try{let F=await this._readFile(b,O);if(O.autocrlf==="true")try{F=new TextDecoder("utf8",{fatal:!0}).decode(F),F=F.replace(/\r\n/g,`
101
- `),F=new TextEncoder().encode(F)}catch{}return typeof F!="string"&&(F=Buffer.from(F)),F}catch{return null}}async write(b,O,F={}){try{await this._writeFile(b,O,F);return}catch{await this.mkdir(ve(b)),await this._writeFile(b,O,F)}}async mkdir(b,O=!1){try{await this._mkdir(b);return}catch(F){if(F===null||F.code==="EEXIST")return;if(O)throw F;if(F.code==="ENOENT"){let L=ve(b);if(L==="."||L==="/"||L===b)throw F;await this.mkdir(L),await this.mkdir(b,!0)}}}async rm(b){try{await this._unlink(b)}catch(O){if(O.code!=="ENOENT")throw O}}async rmdir(b,O){try{O&&O.recursive?await this._rm(b,O):await this._rmdir(b)}catch(F){if(F.code!=="ENOENT")throw F}}async readdir(b){try{let O=await this._readdir(b);return O.sort(U),O}catch(O){return O.code==="ENOTDIR"?null:[]}}async readdirDeep(b){let O=await this._readdir(b);return(await Promise.all(O.map(async F=>{let L=b+"/"+F;return(await this._stat(L)).isDirectory()?this.readdirDeep(L):L}))).reduce((F,L)=>F.concat(L),[])}async lstat(b){try{return await this._lstat(b)}catch(O){if(O.code==="ENOENT"||(O.code||"").includes("ENS"))return null;throw O}}async readlink(b,O={encoding:"buffer"}){try{let F=await this._readlink(b,O);return Buffer.isBuffer(F)?F:Buffer.from(F)}catch(F){if(F.code==="ENOENT"||(F.code||"").includes("ENS"))return null;throw F}}async writelink(b,O){return this._symlink(O.toString("utf8"),b)}},l(es,"Bv"),es);e(PS,"FileSystem");var mt=PS;function Ue(B,b){if(b===void 0)throw new Xr(B)}l(Ue,"ae"),e(Ue,"assertParameter");async function al(B,b){return!B&&!b?!1:B&&!b||!B&&b?!0:!(await B.type()==="tree"&&await b.type()==="tree"||await B.type()===await b.type()&&await B.mode()===await b.mode()&&await B.oid()===await b.oid())}l(al,"Hh"),e(al,"modified");async function yp({fs:B,dir:b,gitdir:O=a.join(b,".git"),commit:F="HEAD",cache:L={}}){try{Ue("fs",B),Ue("dir",b),Ue("gitdir",O);let $=new mt(B),K=[Dr({ref:F}),Xi(),ke()],ne=[];await Q.acquire({fs:$,gitdir:O,cache:L},async function(ce){ne=ce.unmergedPaths});let _e=await Gn({fs:$,cache:L,dir:b,gitdir:O,trees:K,map:e(async function(ce,[he,Be,Ce]){let Me=!await al(Be,Ce),ze=ne.includes(ce),Ye=!await al(Ce,he);if(Me||ze)return he?{path:ce,mode:await he.mode(),oid:await he.oid(),type:await he.type(),content:await he.content()}:void 0;if(Ye)return!1;throw new cp(ce)},"map")});await Q.acquire({fs:$,gitdir:O,cache:L},async function(ce){for(let he of _e)if(he!==!1){if(!he){await $.rmdir(`${b}/${he.path}`,{recursive:!0}),ce.delete({filepath:he.path});continue}if(he.type==="blob"){let Be=new TextDecoder().decode(he.content);await $.write(`${b}/${he.path}`,Be,{mode:he.mode}),ce.insert({filepath:he.path,oid:he.oid,stage:0})}}})}catch($){throw $.caller="git.abortMerge",$}}l(yp,"_P"),e(yp,"abortMerge");var LS=(ts=class{static async isIgnored({fs:b,dir:O,gitdir:F=a.join(O,".git"),filepath:L}){if(fe(L)===".git")return!0;if(L===".")return!1;let $="",K=a.join(F,"info","exclude");await b.exists(K)&&($=await b.read(K,"utf8"));let ne=[{gitignore:a.join(O,".gitignore"),filepath:L}],_e=L.split("/").filter(Boolean);for(let he=1;he<_e.length;he++){let Be=_e.slice(0,he).join("/"),Ce=_e.slice(he).join("/");ne.push({gitignore:a.join(O,Be,".gitignore"),filepath:Ce})}let ce=!1;for(let he of ne){let Be;try{Be=await b.read(he.gitignore,"utf8")}catch(ze){if(ze.code==="NOENT")continue}let Ce=p().add($);Ce.add(Be);let Me=ve(he.filepath);if(Me!=="."&&Ce.ignores(Me))return!0;ce?ce=!Ce.test(he.filepath).unignored:ce=Ce.test(he.filepath).ignored}return ce}},l(ts,"Cv"),ts);e(LS,"GitIgnoreManager");var Ma=LS;async function NS({fs:B,gitdir:b,object:O,format:F,oid:L}){if(F!=="deflated")throw new k("GitObjectStoreLoose expects objects to write to be in deflated format");let $=`objects/${L.slice(0,2)}/${L.slice(2)}`,K=`${b}/${$}`;await B.exists(K)||await B.write(K,O)}l(NS,"rK"),e(NS,"writeObjectLoose");var mp=null;async function wp(B){return mp===null&&(mp=US()),mp?DS(B):r.deflate(B)}l(wp,"EP"),e(wp,"deflate");async function DS(B){let b=new CompressionStream("deflate"),O=new Blob([B]).stream().pipeThrough(b);return new Uint8Array(await new Response(O).arrayBuffer())}l(DS,"nK"),e(DS,"browserDeflate");function US(){try{return new CompressionStream("deflate").writable.close(),new Blob([]).stream().cancel(),!0}catch{return!1}}l(US,"iK"),e(US,"testCompressionStream");async function Or({fs:B,gitdir:b,type:O,object:F,format:L="content",oid:$=void 0,dryRun:K=!1}){return L!=="deflated"&&(L!=="wrapped"&&(F=Na.wrap({type:O,object:F})),$=await de(F),F=Buffer.from(await wp(F))),K||await NS({fs:B,gitdir:b,object:F,format:"deflated",oid:$}),$}l(Or,"_r"),e(Or,"_writeObject");function bp(B){let b;for(;~(b=B.indexOf(92));)B[b]=47;return B}l(bp,"SP"),e(bp,"posixifyPathBuffer");async function vp({fs:B,dir:b,gitdir:O=a.join(b,".git"),filepath:F,cache:L={},force:$=!1,parallel:K=!0}){try{Ue("fs",B),Ue("dir",b),Ue("gitdir",O),Ue("filepath",F);let ne=new mt(B);await Q.acquire({fs:ne,gitdir:O,cache:L},async _e=>{let ce=await(await ht.get({fs:ne,gitdir:O})).get("core.autocrlf");return Uf({dir:b,gitdir:O,fs:ne,filepath:F,index:_e,force:$,parallel:K,autocrlf:ce})})}catch(ne){throw ne.caller="git.add",ne}}l(vp,"AP"),e(vp,"add");async function Uf({dir:B,gitdir:b,fs:O,filepath:F,index:L,force:$,parallel:K,autocrlf:ne}){F=Array.isArray(F)?F:[F];let _e=F.map(async Be=>{if(!$&&await Ma.isIgnored({fs:O,dir:B,gitdir:b,filepath:Be}))return;let Ce=await O.lstat(a.join(B,Be));if(!Ce)throw new ge(Be);if(Ce.isDirectory()){let Me=await O.readdir(a.join(B,Be));if(K){let ze=Me.map(Ye=>Uf({dir:B,gitdir:b,fs:O,filepath:[a.join(Be,Ye)],index:L,force:$,parallel:K,autocrlf:ne}));await Promise.all(ze)}else for(let ze of Me)await Uf({dir:B,gitdir:b,fs:O,filepath:[a.join(Be,ze)],index:L,force:$,parallel:K,autocrlf:ne})}else{let Me=Ce.isSymbolicLink()?await O.readlink(a.join(B,Be)).then(bp):await O.read(a.join(B,Be),{autocrlf:ne});if(Me===null)throw new ge(Be);let ze=await Or({fs:O,gitdir:b,type:"blob",object:Me});L.insert({filepath:Be,stats:Ce,oid:ze})}}),ce=await Promise.allSettled(_e),he=ce.filter(Be=>Be.status==="rejected").map(Be=>Be.reason);if(he.length>1)throw new sp(he);if(he.length===1)throw he[0];return ce.filter(Be=>Be.status==="fulfilled"&&Be.value).map(Be=>Be.value)}l(Uf,"yv"),e(Uf,"addToIndex");async function $a({fs:B,gitdir:b,path:O}){return(await ht.get({fs:B,gitdir:b})).get(O)}l($a,"Xf"),e($a,"_getConfig");function _p(B,...b){for(let O of b)if(O)for(let F of Object.keys(O)){let L=O[F];L!==void 0&&(B[F]=L)}return B}l(_p,"RP"),e(_p,"assignDefined");async function Vn({fs:B,gitdir:b,author:O,commit:F}){let L=Math.floor(Date.now()/1e3),$={name:await $a({fs:B,gitdir:b,path:"user.name"}),email:await $a({fs:B,gitdir:b,path:"user.email"})||"",timestamp:L,timezoneOffset:new Date(L*1e3).getTimezoneOffset()},K=_p({},$,F?F.author:void 0,O);if(K.name!==void 0)return K}l(Vn,"uo"),e(Vn,"normalizeAuthorObject");async function eo({fs:B,gitdir:b,author:O,committer:F,commit:L}){let $=Math.floor(Date.now()/1e3),K={name:await $a({fs:B,gitdir:b,path:"user.name"}),email:await $a({fs:B,gitdir:b,path:"user.email"})||"",timestamp:$,timezoneOffset:new Date($*1e3).getTimezoneOffset()},ne=_p({},K,L?L.committer:void 0,O,F);if(ne.name!==void 0)return ne}l(eo,"qs"),e(eo,"normalizeCommitterObject");async function Ep({fs:B,cache:b,gitdir:O,oid:F}){let{type:L,object:$}=await Mt({fs:B,cache:b,gitdir:O,oid:F});if(L==="tag")return F=sn.from($).parse().object,Ep({fs:B,cache:b,gitdir:O,oid:F});if(L!=="commit")throw new xe(F,L,"commit");return{commit:en.from($),oid:F}}l(Ep,"TP"),e(Ep,"resolveCommit");async function to({fs:B,cache:b,gitdir:O,oid:F}){let{commit:L,oid:$}=await Ep({fs:B,cache:b,gitdir:O,oid:F});return{oid:$,commit:L.parse(),payload:L.withoutSignature()}}l(to,"zs"),e(to,"_readCommit");async function sl({fs:B,cache:b,onSign:O,gitdir:F,message:L,author:$,committer:K,signingKey:ne,amend:_e=!1,dryRun:ce=!1,noUpdateBranch:he=!1,ref:Be,parent:Ce,tree:Me}){let ze=!1;Be||(Be=await et.resolve({fs:B,gitdir:F,ref:"HEAD",depth:2}));let Ye,rt;try{Ye=await et.resolve({fs:B,gitdir:F,ref:Be}),rt=await to({fs:B,gitdir:F,oid:Ye,cache:{}})}catch{ze=!0}if(_e&&ze)throw new hp(Be);let ot=_e?await Vn({fs:B,gitdir:F,author:$,commit:rt.commit}):await Vn({fs:B,gitdir:F,author:$});if(!ot)throw new Nr("author");let it=_e?await eo({fs:B,gitdir:F,author:ot,committer:K,commit:rt.commit}):await eo({fs:B,gitdir:F,author:ot,committer:K});if(!it)throw new Nr("committer");return Q.acquire({fs:B,gitdir:F,cache:b,allowUnmerged:!1},async function(ft){let gt=N(ft.entries).get(".");if(Me||(Me=await Sp({fs:B,gitdir:F,inode:gt,dryRun:ce})),Ce?Ce=await Promise.all(Ce.map(st=>et.resolve({fs:B,gitdir:F,ref:st}))):_e?Ce=rt.commit.parent:Ce=Ye?[Ye]:[],!L)if(_e)L=rt.commit.message;else throw new Xr("message");let yt=en.from({tree:Me,parent:Ce,author:ot,committer:it,message:L});ne&&(yt=await en.sign(yt,O,ne));let pt=await Or({fs:B,gitdir:F,type:"commit",object:yt.toObject(),dryRun:ce});return!he&&!ce&&await et.writeRef({fs:B,gitdir:F,ref:Be,value:pt}),pt})}l(sl,"Bd"),e(sl,"_commit");async function Sp({fs:B,gitdir:b,inode:O,dryRun:F}){let L=O.children;for(let ne of L)ne.type==="tree"&&(ne.metadata.mode="040000",ne.metadata.oid=await Sp({fs:B,gitdir:b,inode:ne,dryRun:F}));let $=L.map(ne=>({mode:ne.metadata.mode,path:ne.basename,oid:ne.metadata.oid,type:ne.type})),K=Qr.from($);return await Or({fs:B,gitdir:b,type:"tree",object:K.toObject(),dryRun:F})}l(Sp,"FP"),e(Sp,"constructTree");async function Wa({fs:B,cache:b,gitdir:O,oid:F,filepath:L}){if(L.startsWith("/"))throw new Da("leading-slash");if(L.endsWith("/"))throw new Da("trailing-slash");let $=F,K=await Qi({fs:B,cache:b,gitdir:O,oid:F}),ne=K.tree;if(L==="")F=K.oid;else{let _e=L.split("/");F=await Ap({fs:B,cache:b,gitdir:O,tree:ne,pathArray:_e,oid:$,filepath:L})}return F}l(Wa,"Jf"),e(Wa,"resolveFilepath");async function Ap({fs:B,cache:b,gitdir:O,tree:F,pathArray:L,oid:$,filepath:K}){let ne=L.shift();for(let _e of F)if(_e.path===ne){if(L.length===0)return _e.oid;{let{type:ce,object:he}=await Mt({fs:B,cache:b,gitdir:O,oid:_e.oid});if(ce!=="tree")throw new xe($,ce,"tree",K);return F=Qr.from(he),Ap({fs:B,cache:b,gitdir:O,tree:F,pathArray:L,oid:$,filepath:K})}}throw new ge(`file or directory found at "${$}:${K}"`)}l(Ap,"xP"),e(Ap,"_resolveFilepath");async function ro({fs:B,cache:b,gitdir:O,oid:F,filepath:L=void 0}){L!==void 0&&(F=await Wa({fs:B,cache:b,gitdir:O,oid:F,filepath:L}));let{tree:$,oid:K}=await Qi({fs:B,cache:b,gitdir:O,oid:F});return{oid:K,tree:$.entries()}}l(ro,"Xs"),e(ro,"_readTree");async function za({fs:B,gitdir:b,tree:O}){let F=Qr.from(O).toObject();return await Or({fs:B,gitdir:b,type:"tree",object:F,format:"content"})}l(za,"Zf"),e(za,"_writeTree");async function MS({fs:B,cache:b,onSign:O,gitdir:F,ref:L,oid:$,note:K,force:ne,author:_e,committer:ce,signingKey:he}){let Be;try{Be=await et.resolve({gitdir:F,fs:B,ref:L})}catch(Ye){if(!(Ye instanceof ge))throw Ye}let Ce=(await ro({fs:B,cache:b,gitdir:F,oid:Be||"4b825dc642cb6eb9a060e54bf8d69288fbee4904"})).tree;if(ne)Ce=Ce.filter(Ye=>Ye.path!==$);else for(let Ye of Ce)if(Ye.path===$)throw new Hn("note",$);typeof K=="string"&&(K=Buffer.from(K,"utf8"));let Me=await Or({fs:B,gitdir:F,type:"blob",object:K,format:"content"});Ce.push({mode:"100644",path:$,oid:Me,type:"blob"});let ze=await za({fs:B,gitdir:F,tree:Ce});return await sl({fs:B,cache:b,onSign:O,gitdir:F,ref:L,tree:ze,parent:Be&&[Be],message:`Note added by 'isomorphic-git addNote'
102
- `,author:_e,committer:ce,signingKey:he})}l(MS,"oK"),e(MS,"_addNote");async function Rp({fs:B,onSign:b,dir:O,gitdir:F=a.join(O,".git"),ref:L="refs/notes/commits",oid:$,note:K,force:ne,author:_e,committer:ce,signingKey:he,cache:Be={}}){try{Ue("fs",B),Ue("gitdir",F),Ue("oid",$),Ue("note",K),he&&Ue("onSign",b);let Ce=new mt(B),Me=await Vn({fs:Ce,gitdir:F,author:_e});if(!Me)throw new Nr("author");let ze=await eo({fs:Ce,gitdir:F,author:Me,committer:ce});if(!ze)throw new Nr("committer");return await MS({fs:new mt(Ce),cache:Be,onSign:b,gitdir:F,ref:L,oid:$,note:K,force:ne,author:Me,committer:ze,signingKey:he})}catch(Ce){throw Ce.caller="git.addNote",Ce}}l(Rp,"OP"),e(Rp,"addNote");async function kp({fs:B,gitdir:b,remote:O,url:F,force:L}){if(!d(O,!0))throw new qn(O,c.clean(O));let $=await ht.get({fs:B,gitdir:b});if(!L&&(await $.getSubsections("remote")).includes(O)&&F!==await $.get(`remote.${O}.url`))throw new Hn("remote",O);await $.set(`remote.${O}.url`,F),await $.set(`remote.${O}.fetch`,`+refs/heads/*:refs/remotes/${O}/*`),await ht.save({fs:B,gitdir:b,config:$})}l(kp,"IP"),e(kp,"_addRemote");async function Op({fs:B,dir:b,gitdir:O=a.join(b,".git"),remote:F,url:L,force:$=!1}){try{return Ue("fs",B),Ue("gitdir",O),Ue("remote",F),Ue("url",L),await kp({fs:new mt(B),gitdir:O,remote:F,url:L,force:$})}catch(K){throw K.caller="git.addRemote",K}}l(Op,"PP"),e(Op,"addRemote");async function $S({fs:B,cache:b,onSign:O,gitdir:F,ref:L,tagger:$,message:K=L,gpgsig:ne,object:_e,signingKey:ce,force:he=!1}){if(L=L.startsWith("refs/tags/")?L:`refs/tags/${L}`,!he&&await et.exists({fs:B,gitdir:F,ref:L}))throw new Hn("tag",L);let Be=await et.resolve({fs:B,gitdir:F,ref:_e||"HEAD"}),{type:Ce}=await Mt({fs:B,cache:b,gitdir:F,oid:Be}),Me=sn.from({object:Be,type:Ce,tag:L.replace("refs/tags/",""),tagger:$,message:K,gpgsig:ne});ce&&(Me=await sn.sign(Me,O,ce));let ze=await Or({fs:B,gitdir:F,type:"tag",object:Me.toObject()});await et.writeRef({fs:B,gitdir:F,ref:L,value:ze})}l($S,"aK"),e($S,"_annotatedTag");async function Tp({fs:B,onSign:b,dir:O,gitdir:F=a.join(O,".git"),ref:L,tagger:$,message:K=L,gpgsig:ne,object:_e,signingKey:ce,force:he=!1,cache:Be={}}){try{Ue("fs",B),Ue("gitdir",F),Ue("ref",L),ce&&Ue("onSign",b);let Ce=new mt(B),Me=await Vn({fs:Ce,gitdir:F,author:$});if(!Me)throw new Nr("tagger");return await $S({fs:Ce,cache:Be,onSign:b,gitdir:F,ref:L,tagger:Me,message:K,gpgsig:ne,object:_e,signingKey:ce,force:he})}catch(Ce){throw Ce.caller="git.annotatedTag",Ce}}l(Tp,"kP"),e(Tp,"annotatedTag");async function WS({fs:B,gitdir:b,ref:O,object:F,checkout:L=!1,force:$=!1}){if(!d(O,!0))throw new qn(O,c.clean(O));let K=`refs/heads/${O}`;if(!$&&await et.exists({fs:B,gitdir:b,ref:K}))throw new Hn("branch",O,!1);let ne;try{ne=await et.resolve({fs:B,gitdir:b,ref:F||"HEAD"})}catch{}ne&&await et.writeRef({fs:B,gitdir:b,ref:K,value:ne}),L&&await et.writeSymbolicRef({fs:B,gitdir:b,ref:"HEAD",value:K})}l(WS,"sK"),e(WS,"_branch");async function Fp({fs:B,dir:b,gitdir:O=a.join(b,".git"),ref:F,object:L,checkout:$=!1,force:K=!1}){try{return Ue("fs",B),Ue("gitdir",O),Ue("ref",F),await WS({fs:new mt(B),gitdir:O,ref:F,object:L,checkout:$,force:K})}catch(ne){throw ne.caller="git.branch",ne}}l(Fp,"BP"),e(Fp,"branch");var zS=e((B,b)=>B==="."||b==null||b.length===0||b==="."?!0:b.length>=B.length?b.startsWith(B):B.startsWith(b),"worthWalking");async function Mf({fs:B,cache:b,onProgress:O,onPostCheckout:F,dir:L,gitdir:$,remote:K,ref:ne,filepaths:_e,noCheckout:ce,noUpdateHead:he,dryRun:Be,force:Ce,track:Me=!0,nonBlocking:ze=!1,batchSize:Ye=100}){let rt;if(F)try{rt=await et.resolve({fs:B,gitdir:$,ref:"HEAD"})}catch{rt="0000000000000000000000000000000000000000"}let ot;try{ot=await et.resolve({fs:B,gitdir:$,ref:ne})}catch(it){if(ne==="HEAD")throw it;let ft=`${K}/${ne}`;if(ot=await et.resolve({fs:B,gitdir:$,ref:ft}),Me){let gt=await ht.get({fs:B,gitdir:$});await gt.set(`branch.${ne}.remote`,K),await gt.set(`branch.${ne}.merge`,`refs/heads/${ne}`),await ht.save({fs:B,gitdir:$,config:gt})}await et.writeRef({fs:B,gitdir:$,ref:`refs/heads/${ne}`,value:ot})}if(!ce){let it;try{it=await HS({fs:B,cache:b,onProgress:O,dir:L,gitdir:$,ref:ne,force:Ce,filepaths:_e})}catch(st){throw st instanceof ge&&st.data.what===ot?new rp(ne,ot):st}let ft=it.filter(([st])=>st==="conflict").map(([st,ut])=>ut);if(ft.length>0)throw new tp(ft);let gt=it.filter(([st])=>st==="error").map(([st,ut])=>ut);if(gt.length>0)throw new k(gt.join(", "));if(Be){F&&await F({previousHead:rt,newHead:ot,type:_e!=null&&_e.length>0?"file":"branch"});return}let yt=0,pt=it.length;if(await Q.acquire({fs:B,gitdir:$,cache:b},async function(st){await Promise.all(it.filter(([ut])=>ut==="delete"||ut==="delete-index").map(async function([ut,ct]){let _t=`${L}/${ct}`;ut==="delete"&&await B.rm(_t),st.delete({filepath:ct}),O&&await O({phase:"Updating workdir",loaded:++yt,total:pt})}))}),await Q.acquire({fs:B,gitdir:$,cache:b},async function(st){for(let[ut,ct]of it)if(ut==="rmdir"||ut==="rmdir-index"){let _t=`${L}/${ct}`;try{ut==="rmdir"&&await B.rmdir(_t),st.delete({filepath:ct}),O&&await O({phase:"Updating workdir",loaded:++yt,total:pt})}catch(Ct){if(Ct.code==="ENOTEMPTY")console.log(`Did not delete ${ct} because directory is not empty`);else throw Ct}}}),await Promise.all(it.filter(([st])=>st==="mkdir"||st==="mkdir-index").map(async function([st,ut]){let ct=`${L}/${ut}`;await B.mkdir(ct),O&&await O({phase:"Updating workdir",loaded:++yt,total:pt})})),ze){let st=it.filter(([ct])=>ct==="create"||ct==="create-index"||ct==="update"||ct==="mkdir-index"),ut=await Bp("Update Working Dir",st.map(([ct,_t,Ct,ar,Ft])=>()=>GS({fs:B,cache:b,gitdir:$,dir:L},[ct,_t,Ct,ar,Ft])),O,Ye);await Q.acquire({fs:B,gitdir:$,cache:b,allowUnmerged:!0},async function(ct){await Bp("Update Index",ut.map(([_t,Ct,ar])=>()=>qS({index:ct,fullpath:_t,oid:Ct,stats:ar})),O,Ye)})}else await Q.acquire({fs:B,gitdir:$,cache:b,allowUnmerged:!0},async function(st){await Promise.all(it.filter(([ut])=>ut==="create"||ut==="create-index"||ut==="update"||ut==="mkdir-index").map(async function([ut,ct,_t,Ct,ar]){let Ft=`${L}/${ct}`;try{if(ut!=="create-index"&&ut!=="mkdir-index"){let{object:yr}=await Mt({fs:B,cache:b,gitdir:$,oid:_t});if(ar&&await B.rm(Ft),Ct===33188)await B.write(Ft,yr);else if(Ct===33261)await B.write(Ft,yr,{mode:511});else if(Ct===40960)await B.writelink(Ft,yr);else throw new k(`Invalid mode 0o${Ct.toString(8)} detected in blob ${_t}`)}let sr=await B.lstat(Ft);Ct===33261&&(sr.mode=493),ut==="mkdir-index"&&(sr.mode=57344),st.insert({filepath:ct,stats:sr,oid:_t}),O&&await O({phase:"Updating workdir",loaded:++yt,total:pt})}catch(sr){console.log(sr)}}))});F&&await F({previousHead:rt,newHead:ot,type:_e!=null&&_e.length>0?"file":"branch"})}if(!he){let it=await et.expand({fs:B,gitdir:$,ref:ne});it.startsWith("refs/heads")?await et.writeSymbolicRef({fs:B,gitdir:$,ref:"HEAD",value:it}):await et.writeRef({fs:B,gitdir:$,ref:"HEAD",value:ot})}}l(Mf,"vv"),e(Mf,"_checkout");async function HS({fs:B,cache:b,onProgress:O,dir:F,gitdir:L,ref:$,force:K,filepaths:ne}){let _e=0;return Gn({fs:B,cache:b,dir:F,gitdir:L,trees:[Dr({ref:$}),Xi(),ke()],map:e(async function(ce,[he,Be,Ce]){if(ce!=="."){if(ne&&!ne.some(Me=>zS(ce,Me)))return null;switch(O&&await O({phase:"Analyzing workdir",loaded:++_e}),[!!Ce,!!he,!!Be].map(Number).join("")){case"000":return;case"001":return K&&ne&&ne.includes(ce)?["delete",ce]:void 0;case"010":switch(await he.type()){case"tree":return["mkdir",ce];case"blob":return["create",ce,await he.oid(),await he.mode()];case"commit":return["mkdir-index",ce,await he.oid(),await he.mode()];default:return["error",`new entry Unhandled type ${await he.type()}`]}case"011":switch(`${await he.type()}-${await Be.type()}`){case"tree-tree":return;case"tree-blob":case"blob-tree":return["conflict",ce];case"blob-blob":return await he.oid()!==await Be.oid()?K?["update",ce,await he.oid(),await he.mode(),await he.mode()!==await Be.mode()]:["conflict",ce]:await he.mode()!==await Be.mode()?K?["update",ce,await he.oid(),await he.mode(),!0]:["conflict",ce]:["create-index",ce,await he.oid(),await he.mode()];case"commit-tree":return;case"commit-blob":return["conflict",ce];default:return["error",`new entry Unhandled type ${he.type}`]}case"100":return["delete-index",ce];case"101":switch(await Ce.type()){case"tree":return["rmdir-index",ce];case"blob":return await Ce.oid()!==await Be.oid()?K?["delete",ce]:["conflict",ce]:["delete",ce];case"commit":return["rmdir-index",ce];default:return["error",`delete entry Unhandled type ${await Ce.type()}`]}case"110":case"111":switch(`${await Ce.type()}-${await he.type()}`){case"tree-tree":return;case"blob-blob":{if(await Ce.oid()===await he.oid()&&await Ce.mode()===await he.mode()&&!K)return;if(Be){if(await Be.oid()!==await Ce.oid()&&await Be.oid()!==await he.oid())return K?["update",ce,await he.oid(),await he.mode(),await he.mode()!==await Be.mode()]:["conflict",ce]}else if(K)return["update",ce,await he.oid(),await he.mode(),await he.mode()!==await Ce.mode()];return await he.mode()!==await Ce.mode()?["update",ce,await he.oid(),await he.mode(),!0]:await he.oid()!==await Ce.oid()?["update",ce,await he.oid(),await he.mode(),!1]:void 0}case"tree-blob":return["update-dir-to-blob",ce,await he.oid()];case"blob-tree":return["update-blob-to-tree",ce];case"commit-commit":return["mkdir-index",ce,await he.oid(),await he.mode()];default:return["error",`update entry Unhandled type ${await Ce.type()}-${await he.type()}`]}}}},"map"),reduce:e(async function(ce,he){return he=FS(he),ce?ce&&ce[0]==="rmdir"?(he.push(ce),he):(he.unshift(ce),he):he},"reduce")})}l(HS,"lK"),e(HS,"analyze");async function qS({index:B,fullpath:b,stats:O,oid:F}){try{B.insert({filepath:b,stats:O,oid:F})}catch(L){console.warn(`Error inserting ${b} into index:`,L)}}l(qS,"fK"),e(qS,"updateIndex");async function GS({fs:B,cache:b,gitdir:O,dir:F},[L,$,K,ne,_e]){let ce=`${F}/${$}`;if(L!=="create-index"&&L!=="mkdir-index"){let{object:Be}=await Mt({fs:B,cache:b,gitdir:O,oid:K});if(_e&&await B.rm(ce),ne===33188)await B.write(ce,Be);else if(ne===33261)await B.write(ce,Be,{mode:511});else if(ne===40960)await B.writelink(ce,Be);else throw new k(`Invalid mode 0o${ne.toString(8)} detected in blob ${K}`)}let he=await B.lstat(ce);return ne===33261&&(he.mode=493),L==="mkdir-index"&&(he.mode=57344),[$,K,he]}l(GS,"uK"),e(GS,"updateWorkingDir");async function Bp(B,b,O,F){let L=[];try{for(let $=0;$<b.length;$+=F){let K=b.slice($,$+F).map(ne=>ne());(await Promise.allSettled(K)).forEach(ne=>{ne.status==="fulfilled"&&L.push(ne.value)}),O&&await O({phase:"Updating workdir",loaded:$+K.length,total:b.length})}return L}catch($){console.error(`Error during ${B}: ${$}`)}return L}l(Bp,"tP"),e(Bp,"batchAllSettled");async function $f({fs:B,onProgress:b,onPostCheckout:O,dir:F,gitdir:L=a.join(F,".git"),remote:$="origin",ref:K,filepaths:ne,noCheckout:_e=!1,noUpdateHead:ce=K===void 0,dryRun:he=!1,force:Be=!1,track:Ce=!0,cache:Me={},nonBlocking:ze=!1,batchSize:Ye=100}){try{Ue("fs",B),Ue("dir",F),Ue("gitdir",L);let rt=K||"HEAD";return await Mf({fs:new mt(B),cache:Me,onProgress:b,onPostCheckout:O,dir:F,gitdir:L,remote:$,ref:rt,filepaths:ne,noCheckout:_e,noUpdateHead:ce,dryRun:he,force:Be,track:Ce,nonBlocking:ze,batchSize:Ye})}catch(rt){throw rt.caller="git.checkout",rt}}l($f,"bv"),e($f,"checkout");var HP=new RegExp("^refs/(heads/|tags/|remotes/)?(.*)");function Ai(B){let b=HP.exec(B);return b?b[1]==="remotes/"&&B.endsWith("/HEAD")?b[2].slice(0,-5):b[2]:B}l(Ai,"aa"),e(Ai,"abbreviateRef");async function Kn({fs:B,gitdir:b,fullname:O=!1,test:F=!1}){let L=await et.resolve({fs:B,gitdir:b,ref:"HEAD",depth:2});if(F)try{await et.resolve({fs:B,gitdir:b,ref:L})}catch{return}if(L.startsWith("refs/"))return O?L:Ai(L)}l(Kn,"co"),e(Kn,"_currentBranch");function VS(B){return B=B.replace(/^git@([^:]+):/,"https://$1/"),B=B.replace(/^ssh:\/\//,"https://"),B}l(VS,"hK"),e(VS,"translateSSHtoHTTP");function Ip({username:B="",password:b=""}){return`Basic ${Buffer.from(`${B}:${b}`).toString("base64")}`}l(Ip,"LP"),e(Ip,"calculateBasicAuthHeader");async function Ha(B,b){let O=Yd(B);for(;;){let{value:F,done:L}=await O.next();if(F&&await b(F),L)break}O.return&&O.return()}l(Ha,"Qf"),e(Ha,"forAwait");async function ll(B){let b=0,O=[];await Ha(B,$=>{O.push($),b+=$.byteLength});let F=new Uint8Array(b),L=0;for(let $ of O)F.set($,L),L+=$.byteLength;return F}l(ll,"Wh"),e(ll,"collect");function xp(B){let b=B.match(/^https?:\/\/([^/]+)@/);if(b==null)return{url:B,auth:{}};b=b[1];let[O,F]=b.split(":");return B=B.replace(`${b}@`,""),{url:B,auth:{username:O,password:F}}}l(xp,"rP"),e(xp,"extractAuthFromUrl");function Wf(B,b){let O=b.toString(16);return"0".repeat(B-O.length)+O}l(Wf,"mv"),e(Wf,"padHex");var KS=(rs=class{static flush(){return Buffer.from("0000","utf8")}static delim(){return Buffer.from("0001","utf8")}static encode(b){typeof b=="string"&&(b=Buffer.from(b));let O=b.length+4,F=Wf(4,O);return Buffer.concat([Buffer.from(F,"utf8"),b])}static streamReader(b){let O=new P2(b);return e(async function(){try{let F=await O.read(4);return F==null?!0:(F=parseInt(F.toString("utf8"),16),F===0||F===1?null:await O.read(F-4)??!0)}catch(F){return b.error=F,!0}},"read")}},l(rs,"Lv"),rs);e(KS,"GitPktLine");var or=KS;async function jp(B){let b={},O;for(;O=await B(),O!==!0;){if(O===null)continue;O=O.toString("utf8").replace(/\n$/,"");let F=O.indexOf("=");if(F>-1){let L=O.slice(0,F),$=O.slice(F+1);b[L]=$}else b[O]=!0}return{protocolVersion:2,capabilities2:b}}l(jp,"nP"),e(jp,"parseCapabilitiesV2");async function Cp(B,{service:b}){let O=new Set,F=new Map,L=new Map,$=or.streamReader(B),K=await $();for(;K===null;)K=await $();if(K===!0)throw new np;if(K.includes("version 2"))return jp($);if(K.toString("utf8").replace(/\n$/,"")!==`# service=${b}`)throw new il(`# service=${b}\\n`,K.toString("utf8"));let ne=await $();for(;ne===null;)ne=await $();if(ne===!0)return{capabilities:O,refs:F,symrefs:L};if(ne=ne.toString("utf8"),ne.includes("version 2"))return jp($);let[_e,ce]=zf(ne,"\0","\\x00");if(ce.split(" ").map(he=>O.add(he)),_e!=="0000000000000000000000000000000000000000 capabilities^{}"){let[he,Be]=zf(_e," "," ");for(F.set(Be,he);;){let Ce=await $();if(Ce===!0)break;if(Ce!==null){let[Me,ze]=zf(Ce.toString("utf8")," "," ");F.set(ze,Me)}}}for(let he of O)if(he.startsWith("symref=")){let Be=he.match(/symref=([^:]+):(.*)/);Be.length===3&&L.set(Be[1],Be[2])}return{protocolVersion:1,capabilities:O,refs:F,symrefs:L}}l(Cp,"iP"),e(Cp,"parseRefsAdResponse");function zf(B,b,O){let F=B.trim().split(b);if(F.length!==2)throw new il(`Two strings separated by '${O}'`,B.toString("utf8"));return F}l(zf,"ev"),e(zf,"splitAndAssert");var JS=e((B,b)=>B.endsWith("?")?`${B}${b}`:`${B}/${b.replace(/^https?:\/\//,"")}`,"corsProxify"),YS=e((B,b)=>{(b.username||b.password)&&(B.Authorization=Ip(b)),b.headers&&Object.assign(B,b.headers)},"updateHeaders"),Pp=e(async B=>{try{let b=Buffer.from(await ll(B.body)),O=b.toString("utf8");return{preview:O.length<256?O:O.slice(0,256)+"...",response:O,data:b}}catch{return{}}},"stringifyBody"),ZS=(ns=class{static async capabilities(){return["discover","connect"]}static async discover({http:b,onProgress:O,onAuth:F,onAuthSuccess:L,onAuthFailure:$,corsProxy:K,service:ne,url:_e,headers:ce,protocolVersion:he}){let{url:Be,auth:Ce}=xp(_e),Me=K?JS(K,Be):Be;(Ce.username||Ce.password)&&(ce.Authorization=Ip(Ce)),he===2&&(ce["Git-Protocol"]="version=2");let ze,Ye,rt=!1;do if(ze=await b.request({onProgress:O,method:"GET",url:`${Me}/info/refs?service=${ne}`,headers:ce}),Ye=!1,ze.statusCode===401||ze.statusCode===203){let ot=rt?$:F;if(ot){if(Ce=await ot(Be,{...Ce,headers:{...ce}}),Ce&&Ce.cancel)throw new Pf;Ce&&(YS(ce,Ce),rt=!0,Ye=!0)}}else ze.statusCode===200&&rt&&L&&await L(Be,Ce);while(Ye);if(ze.statusCode!==200){let{response:ot}=await Pp(ze);throw new If(ze.statusCode,ze.statusMessage,ot)}if(ze.headers["content-type"]===`application/x-${ne}-advertisement`){let ot=await Cp(ze.body,{service:ne});return ot.auth=Ce,ot}else{let{preview:ot,response:it,data:ft}=await Pp(ze);try{let gt=await Cp([ft],{service:ne});return gt.auth=Ce,gt}catch{throw new lp(ot,it)}}}static async connect({http:b,onProgress:O,corsProxy:F,service:L,url:$,auth:K,body:ne,headers:_e}){let ce=xp($);ce&&($=ce.url),F&&($=JS(F,$)),_e["content-type"]=`application/x-${L}-request`,_e.accept=`application/x-${L}-result`,YS(_e,K);let he=await b.request({onProgress:O,method:"POST",url:`${$}/${L}`,body:ne,headers:_e});if(he.statusCode!==200){let{response:Be}=Pp(he);throw new If(he.statusCode,he.statusMessage,Be)}return he}},l(ns,"Dv"),ns);e(ZS,"GitRemoteHTTP");var Hf=ZS,QS=(is=class{static getRemoteHelperFor({url:b}){let O=new Map;O.set("http",Hf),O.set("https",Hf);let F=XS({url:b});if(!F)throw new up(b);if(O.has(F.transport))return O.get(F.transport);throw new fp(b,F.transport,F.transport==="ssh"?VS(b):void 0)}},l(is,"Nv"),is);e(QS,"GitRemoteManager");var qf=QS;function XS({url:B}){if(B.startsWith("git@"))return{transport:"ssh",address:B};let b=B.match(/(\w+)(:\/\/|::)(.*)/);if(b!==null){if(b[2]==="://")return{transport:b[1],address:b[0]};if(b[2]==="::")return{transport:b[1],address:b[3]}}}l(XS,"dK"),e(XS,"parseRemoteUrl");var no=null,eA=(os=class{static async read({fs:b,gitdir:O}){no===null&&(no=new f);let F=a.join(O,"shallow"),L=new Set;return await no.acquire(F,async function(){let $=await b.read(F,{encoding:"utf8"});if($===null||$.trim()==="")return L;$.trim().split(`
103
- `).map(K=>L.add(K))}),L}static async write({fs:b,gitdir:O,oids:F}){no===null&&(no=new f);let L=a.join(O,"shallow");if(F.size>0){let $=[...F].join(`
104
- `)+`
105
- `;await no.acquire(L,async function(){await b.write(L,$,{encoding:"utf8"})})}else await no.acquire(L,async function(){await b.rm(L)})}},l(os,"$v"),os);e(eA,"GitShallowManager");var fl=eA;async function tA({fs:B,gitdir:b,oid:O}){let F=`objects/${O.slice(0,2)}/${O.slice(2)}`;return B.exists(`${b}/${F}`)}l(tA,"pK"),e(tA,"hasObjectLoose");async function rA({fs:B,cache:b,gitdir:O,oid:F,getExternalRefDelta:L}){let $=await B.readdir(a.join(O,"objects/pack"));$=$.filter(K=>K.endsWith(".idx"));for(let K of $){let ne=`${O}/objects/pack/${K}`,_e=await Bf({fs:B,cache:b,filename:ne,getExternalRefDelta:L});if(_e.error)throw new k(_e.error);if(_e.offsets.has(F))return!0}return!1}l(rA,"yK"),e(rA,"hasObjectPacked");async function Lp({fs:B,cache:b,gitdir:O,oid:F,format:L="content"}){let $=e(ne=>Mt({fs:B,cache:b,gitdir:O,oid:ne}),"getExternalRefDelta"),K=await tA({fs:B,gitdir:O,oid:F});return K||(K=await rA({fs:B,cache:b,gitdir:O,oid:F,getExternalRefDelta:$})),K}l(Lp,"sP"),e(Lp,"hasObject");function nA(B){return B.slice(0,12).toString("hex")==="5041434b0000000200000000"}l(nA,"mK"),e(nA,"emptyPackfile");function Np(B,b){let O=B.map(F=>F.split("=",1)[0]);return b.filter(F=>{let L=F.split("=",1)[0];return O.includes(L)})}l(Np,"DP"),e(Np,"filterCapabilities");var Gf={name:"isomorphic-git",version:"1.34.0",agent:"git/isomorphic-git@1.34.0"},iA=(as=class{constructor(){this._queue=[]}write(b){if(this._ended)throw Error("You cannot write to a FIFO that has already been ended!");if(this._waiting){let O=this._waiting;this._waiting=null,O({value:b})}else this._queue.push(b)}end(){if(this._ended=!0,this._waiting){let b=this._waiting;this._waiting=null,b({done:!0})}}destroy(b){this.error=b,this.end()}async next(){if(this._queue.length>0)return{value:this._queue.shift()};if(this._ended)return{done:!0};if(this._waiting)throw Error("You cannot call read until the previous call to read has returned!");return new Promise(b=>{this._waiting=b})}},l(as,"Mv"),as);e(iA,"FIFO");var Vf=iA;function oA(B){let b=B.indexOf("\r"),O=B.indexOf(`
106
- `);return b===-1&&O===-1?-1:b===-1?O+1:O===-1?b+1:O===b+1?O+1:Math.min(b,O)+1}l(oA,"gK"),e(oA,"findSplit");function Dp(B){let b=new Vf,O="";return(async()=>(await Ha(B,F=>{for(F=F.toString("utf8"),O+=F;;){let L=oA(O);if(L===-1)break;b.write(O.slice(0,L)),O=O.slice(L)}}),O.length>0&&b.write(O),b.end()))(),b}l(Dp,"NP"),e(Dp,"splitLines");var aA=(ss=class{static demux(b){let O=or.streamReader(b),F=new Vf,L=new Vf,$=new Vf,K=e(async function(){let ne=await O();if(ne===null)return K();if(ne===!0){F.end(),$.end(),b.error?L.destroy(b.error):L.end();return}switch(ne[0]){case 1:{L.write(ne.slice(1));break}case 2:{$.write(ne.slice(1));break}case 3:{let _e=ne.slice(1);$.write(_e),F.end(),$.end(),L.destroy(new Error(_e.toString("utf8")));return}default:F.write(ne)}K()},"nextBit");return K(),{packetlines:F,packfile:L,progress:$}}},l(ss,"Uv"),ss);e(aA,"GitSideBand");var sA=aA;async function lA(B){let{packetlines:b,packfile:O,progress:F}=sA.demux(B),L=[],$=[],K=[],ne=!1,_e=!1;return new Promise((ce,he)=>{Ha(b,Be=>{let Ce=Be.toString("utf8").trim();if(Ce.startsWith("shallow")){let Me=Ce.slice(-41).trim();Me.length!==40&&he(new Pe(Me)),L.push(Me)}else if(Ce.startsWith("unshallow")){let Me=Ce.slice(-41).trim();Me.length!==40&&he(new Pe(Me)),$.push(Me)}else if(Ce.startsWith("ACK")){let[,Me,ze]=Ce.split(" ");K.push({oid:Me,status:ze}),ze||(_e=!0)}else Ce.startsWith("NAK")?(ne=!0,_e=!0):(_e=!0,ne=!0);_e&&(B.error?he(B.error):ce({shallows:L,unshallows:$,acks:K,nak:ne,packfile:O,progress:F}))}).finally(()=>{_e||(B.error?he(B.error):ce({shallows:L,unshallows:$,acks:K,nak:ne,packfile:O,progress:F}))})})}l(lA,"wK"),e(lA,"parseUploadPackResponse");function fA({capabilities:B=[],wants:b=[],haves:O=[],shallows:F=[],depth:L=null,since:$=null,exclude:K=[]}){let ne=[];b=[...new Set(b)];let _e=` ${B.join(" ")}`;for(let ce of b)ne.push(or.encode(`want ${ce}${_e}
107
- `)),_e="";for(let ce of F)ne.push(or.encode(`shallow ${ce}
108
- `));L!==null&&ne.push(or.encode(`deepen ${L}
109
- `)),$!==null&&ne.push(or.encode(`deepen-since ${Math.floor($.valueOf()/1e3)}
110
- `));for(let ce of K)ne.push(or.encode(`deepen-not ${ce}
111
- `));ne.push(or.flush());for(let ce of O)ne.push(or.encode(`have ${ce}
112
- `));return ne.push(or.encode(`done
113
- `)),ne}l(fA,"vK"),e(fA,"writeUploadPackRequest");async function Kf({fs:B,cache:b,http:O,onProgress:F,onMessage:L,onAuth:$,onAuthSuccess:K,onAuthFailure:ne,gitdir:_e,ref:ce,remoteRef:he,remote:Be,url:Ce,corsProxy:Me,depth:ze=null,since:Ye=null,exclude:rt=[],relative:ot=!1,tags:it=!1,singleBranch:ft=!1,headers:gt={},prune:yt=!1,pruneTags:pt=!1}){let st=ce||await Kn({fs:B,gitdir:_e,test:!0}),ut=await ht.get({fs:B,gitdir:_e}),ct=Be||st&&await ut.get(`branch.${st}.remote`)||"origin",_t=Ce||await ut.get(`remote.${ct}.url`);if(typeof _t>"u")throw new Xr("remote OR url");let Ct=he||st&&await ut.get(`branch.${st}.merge`)||ce||"HEAD";Me===void 0&&(Me=await ut.get("http.corsProxy"));let ar=qf.getRemoteHelperFor({url:_t}),Ft=await ar.discover({http:O,onAuth:$,onAuthSuccess:K,onAuthFailure:ne,corsProxy:Me,service:"git-upload-pack",url:_t,headers:gt,protocolVersion:1}),sr=Ft.auth,yr=Ft.refs;if(yr.size===0)return{defaultBranch:null,fetchHead:null,fetchHeadDescription:null};if(ze!==null&&!Ft.capabilities.has("shallow"))throw new Ua("shallow","depth");if(Ye!==null&&!Ft.capabilities.has("deepen-since"))throw new Ua("deepen-since","since");if(rt.length>0&&!Ft.capabilities.has("deepen-not"))throw new Ua("deepen-not","exclude");if(ot===!0&&!Ft.capabilities.has("deepen-relative"))throw new Ua("deepen-relative","relative");let{oid:qo,fullref:Go}=et.resolveAgainstMap({ref:Ct,map:yr});for(let Pt of yr.keys())Pt===Go||Pt==="HEAD"||Pt.startsWith("refs/heads/")||it&&Pt.startsWith("refs/tags/")||yr.delete(Pt);let ls=Np([...Ft.capabilities],["multi_ack_detailed","no-done","side-band-64k","ofs-delta",`agent=${Gf.agent}`]);ot&&ls.push("deepen-relative");let uy=ft?[qo]:yr.values(),cy=ft?[st]:await et.listRefs({fs:B,gitdir:_e,filepath:"refs"}),Gr=[];for(let Pt of cy)try{Pt=await et.expand({fs:B,gitdir:_e,ref:Pt});let Fr=await et.resolve({fs:B,gitdir:_e,ref:Pt});await Lp({fs:B,cache:b,gitdir:_e,oid:Fr})&&Gr.push(Fr)}catch{}Gr=[...new Set(Gr)];let tr=await fl.read({fs:B,gitdir:_e}),_n=Ft.capabilities.has("shallow")?[...tr]:[],Tr=fA({capabilities:ls,wants:uy,haves:Gr,shallows:_n,depth:ze,since:Ye,exclude:rt}),cl=Buffer.from(await ll(Tr)),Vo=await ar.connect({http:O,onProgress:F,corsProxy:Me,service:"git-upload-pack",url:_t,auth:sr,body:[cl],headers:gt}),lr=await lA(Vo.body);Vo.headers&&(lr.headers=Vo.headers);for(let Pt of lr.shallows)if(!tr.has(Pt))try{let{object:Fr}=await Mt({fs:B,cache:b,gitdir:_e,oid:Pt}),rn=new en(Fr),En=await Promise.all(rn.headers().parent.map(fs=>Lp({fs:B,cache:b,gitdir:_e,oid:fs})));En.length===0||En.every(fs=>fs)||tr.add(Pt)}catch{tr.add(Pt)}for(let Pt of lr.unshallows)tr.delete(Pt);if(await fl.write({fs:B,gitdir:_e,oids:tr}),ft){let Pt=new Map([[Go,qo]]),Fr=new Map,rn=10,En=Go;for(;rn--;){let hy=Ft.symrefs.get(En);if(hy===void 0)break;Fr.set(En,hy),En=hy}let fs=yr.get(En);fs&&Pt.set(En,fs);let{pruned:YP}=await et.updateRemoteRefs({fs:B,gitdir:_e,remote:ct,refs:Pt,symrefs:Fr,tags:it,prune:yt});yt&&(lr.pruned=YP)}else{let{pruned:Pt}=await et.updateRemoteRefs({fs:B,gitdir:_e,remote:ct,refs:yr,symrefs:Ft.symrefs,tags:it,prune:yt,pruneTags:pt});yt&&(lr.pruned=Pt)}if(lr.HEAD=Ft.symrefs.get("HEAD"),lr.HEAD===void 0){let{oid:Pt}=et.resolveAgainstMap({ref:"HEAD",map:yr});for(let[Fr,rn]of yr.entries())if(Fr!=="HEAD"&&rn===Pt){lr.HEAD=Fr;break}}let JP=Go.startsWith("refs/tags")?"tag":"branch";if(lr.FETCH_HEAD={oid:qo,description:`${JP} '${Ai(Go)}' of ${_t}`},F||L){let Pt=Dp(lr.progress);Ha(Pt,async Fr=>{if(L&&await L(Fr),F){let rn=Fr.match(/([^:]*).*\((\d+?)\/(\d+?)\)/);rn&&await F({phase:rn[1].trim(),loaded:parseInt(rn[2],10),total:parseInt(rn[3],10)})}})}let Qf=Buffer.from(await ll(lr.packfile));if(Vo.body.error)throw Vo.body.error;let QA=Qf.slice(-20).toString("hex"),hl={defaultBranch:lr.HEAD,fetchHead:lr.FETCH_HEAD.oid,fetchHeadDescription:lr.FETCH_HEAD.description};if(lr.headers&&(hl.headers=lr.headers),yt&&(hl.pruned=lr.pruned),QA!==""&&!nA(Qf)){hl.packfile=`objects/pack/pack-${QA}.pack`;let Pt=a.join(_e,hl.packfile);await B.write(Pt,Qf);let Fr=e(En=>Mt({fs:B,cache:b,gitdir:_e,oid:En}),"getExternalRefDelta"),rn=await Xd.fromPack({pack:Qf,getExternalRefDelta:Fr,onProgress:F});await B.write(Pt.replace(/\.pack$/,".idx"),await rn.toBuffer())}return hl}l(Kf,"_v"),e(Kf,"_fetch");async function Up({fs:B,bare:b=!1,dir:O,gitdir:F=b?O:a.join(O,".git"),defaultBranch:L="master"}){if(await B.exists(F+"/config"))return;let $=["hooks","info","objects/info","objects/pack","refs/heads","refs/tags"];$=$.map(K=>F+"/"+K);for(let K of $)await B.mkdir(K);await B.write(F+"/config",`[core]
114
- repositoryformatversion = 0
115
- filemode = false
116
- bare = ${b}
117
- `+(b?"":` logallrefupdates = true
118
- `)+` symlinks = false
119
- ignorecase = true
120
- `),await B.write(F+"/HEAD",`ref: refs/heads/${L}
121
- `)}l(Up,"$P"),e(Up,"_init");async function uA({fs:B,cache:b,http:O,onProgress:F,onMessage:L,onAuth:$,onAuthSuccess:K,onAuthFailure:ne,onPostCheckout:_e,dir:ce,gitdir:he,url:Be,corsProxy:Ce,ref:Me,remote:ze,depth:Ye,since:rt,exclude:ot,relative:it,singleBranch:ft,noCheckout:gt,noTags:yt,headers:pt,nonBlocking:st,batchSize:ut=100}){try{if(await Up({fs:B,gitdir:he}),await kp({fs:B,gitdir:he,remote:ze,url:Be,force:!1}),Ce){let Ct=await ht.get({fs:B,gitdir:he});await Ct.set("http.corsProxy",Ce),await ht.save({fs:B,gitdir:he,config:Ct})}let{defaultBranch:ct,fetchHead:_t}=await Kf({fs:B,cache:b,http:O,onProgress:F,onMessage:L,onAuth:$,onAuthSuccess:K,onAuthFailure:ne,gitdir:he,ref:Me,remote:ze,corsProxy:Ce,depth:Ye,since:rt,exclude:ot,relative:it,singleBranch:ft,headers:pt,tags:!yt});if(_t===null)return;Me=Me||ct,Me=Me.replace("refs/heads/",""),await Mf({fs:B,cache:b,onProgress:F,onPostCheckout:_e,dir:ce,gitdir:he,ref:Me,remote:ze,noCheckout:gt,nonBlocking:st,batchSize:ut})}catch(ct){throw await B.rmdir(he,{recursive:!0,maxRetries:10}).catch(()=>{}),ct}}l(uA,"bK"),e(uA,"_clone");async function Mp({fs:B,http:b,onProgress:O,onMessage:F,onAuth:L,onAuthSuccess:$,onAuthFailure:K,onPostCheckout:ne,dir:_e,gitdir:ce=a.join(_e,".git"),url:he,corsProxy:Be=void 0,ref:Ce=void 0,remote:Me="origin",depth:ze=void 0,since:Ye=void 0,exclude:rt=[],relative:ot=!1,singleBranch:it=!1,noCheckout:ft=!1,noTags:gt=!1,headers:yt={},cache:pt={},nonBlocking:st=!1,batchSize:ut=100}){try{return Ue("fs",B),Ue("http",b),Ue("gitdir",ce),ft||Ue("dir",_e),Ue("url",he),await uA({fs:new mt(B),cache:pt,http:b,onProgress:O,onMessage:F,onAuth:L,onAuthSuccess:$,onAuthFailure:K,onPostCheckout:ne,dir:_e,gitdir:ce,url:he,corsProxy:Be,ref:Ce,remote:Me,depth:ze,since:Ye,exclude:rt,relative:ot,singleBranch:it,noCheckout:ft,noTags:gt,headers:yt,nonBlocking:st,batchSize:ut})}catch(ct){throw ct.caller="git.clone",ct}}l(Mp,"MP"),e(Mp,"clone");async function $p({fs:B,onSign:b,dir:O,gitdir:F=a.join(O,".git"),message:L,author:$,committer:K,signingKey:ne,amend:_e=!1,dryRun:ce=!1,noUpdateBranch:he=!1,ref:Be,parent:Ce,tree:Me,cache:ze={}}){try{Ue("fs",B),_e||Ue("message",L),ne&&Ue("onSign",b);let Ye=new mt(B);return await sl({fs:Ye,cache:ze,onSign:b,gitdir:F,message:L,author:$,committer:K,signingKey:ne,amend:_e,dryRun:ce,noUpdateBranch:he,ref:Be,parent:Ce,tree:Me})}catch(Ye){throw Ye.caller="git.commit",Ye}}l($p,"UP"),e($p,"commit");async function Wp({fs:B,dir:b,gitdir:O=a.join(b,".git"),fullname:F=!1,test:L=!1}){try{return Ue("fs",B),Ue("gitdir",O),await Kn({fs:new mt(B),gitdir:O,fullname:F,test:L})}catch($){throw $.caller="git.currentBranch",$}}l(Wp,"jP"),e(Wp,"currentBranch");async function cA({fs:B,gitdir:b,ref:O}){if(O=O.startsWith("refs/heads/")?O:`refs/heads/${O}`,!await et.exists({fs:B,gitdir:b,ref:O}))throw new ge(O);let F=await et.expand({fs:B,gitdir:b,ref:O}),L=await Kn({fs:B,gitdir:b,fullname:!0});if(F===L){let ne=await et.resolve({fs:B,gitdir:b,ref:F});await et.writeRef({fs:B,gitdir:b,ref:"HEAD",value:ne})}await et.deleteRef({fs:B,gitdir:b,ref:F});let $=Ai(O),K=await ht.get({fs:B,gitdir:b});await K.deleteSection("branch",$),await ht.save({fs:B,gitdir:b,config:K})}l(cA,"_K"),e(cA,"_deleteBranch");async function zp({fs:B,dir:b,gitdir:O=a.join(b,".git"),ref:F}){try{return Ue("fs",B),Ue("ref",F),await cA({fs:new mt(B),gitdir:O,ref:F})}catch(L){throw L.caller="git.deleteBranch",L}}l(zp,"HP"),e(zp,"deleteBranch");async function Hp({fs:B,dir:b,gitdir:O=a.join(b,".git"),ref:F}){try{Ue("fs",B),Ue("ref",F),await et.deleteRef({fs:new mt(B),gitdir:O,ref:F})}catch(L){throw L.caller="git.deleteRef",L}}l(Hp,"WP"),e(Hp,"deleteRef");async function hA({fs:B,gitdir:b,remote:O}){let F=await ht.get({fs:B,gitdir:b});await F.deleteSection("remote",O),await ht.save({fs:B,gitdir:b,config:F})}l(hA,"EK"),e(hA,"_deleteRemote");async function qp({fs:B,dir:b,gitdir:O=a.join(b,".git"),remote:F}){try{return Ue("fs",B),Ue("remote",F),await hA({fs:new mt(B),gitdir:O,remote:F})}catch(L){throw L.caller="git.deleteRemote",L}}l(qp,"qP"),e(qp,"deleteRemote");async function dA({fs:B,gitdir:b,ref:O}){O=O.startsWith("refs/tags/")?O:`refs/tags/${O}`,await et.deleteRef({fs:B,gitdir:b,ref:O})}l(dA,"SK"),e(dA,"_deleteTag");async function Gp({fs:B,dir:b,gitdir:O=a.join(b,".git"),ref:F}){try{return Ue("fs",B),Ue("ref",F),await dA({fs:new mt(B),gitdir:O,ref:F})}catch(L){throw L.caller="git.deleteTag",L}}l(Gp,"zP"),e(Gp,"deleteTag");async function pA({fs:B,gitdir:b,oid:O}){let F=O.slice(0,2);return(await B.readdir(`${b}/objects/${F}`)).map(L=>`${F}${L}`).filter(L=>L.startsWith(O))}l(pA,"AK"),e(pA,"expandOidLoose");async function gA({fs:B,cache:b,gitdir:O,oid:F,getExternalRefDelta:L}){let $=[],K=await B.readdir(a.join(O,"objects/pack"));K=K.filter(ne=>ne.endsWith(".idx"));for(let ne of K){let _e=`${O}/objects/pack/${ne}`,ce=await Bf({fs:B,cache:b,filename:_e,getExternalRefDelta:L});if(ce.error)throw new k(ce.error);for(let he of ce.offsets.keys())he.startsWith(F)&&$.push(he)}return $}l(gA,"RK"),e(gA,"expandOidPacked");async function yA({fs:B,cache:b,gitdir:O,oid:F}){let L=e(ne=>Mt({fs:B,cache:b,gitdir:O,oid:ne}),"getExternalRefDelta"),$=await pA({fs:B,gitdir:O,oid:F}),K=await gA({fs:B,cache:b,gitdir:O,oid:F,getExternalRefDelta:L});for(let ne of K)$.indexOf(ne)===-1&&$.push(ne);if($.length===1)return $[0];throw $.length>1?new ep("oids",F,$):new ge(`an object matching "${F}"`)}l(yA,"TK"),e(yA,"_expandOid");async function Vp({fs:B,dir:b,gitdir:O=a.join(b,".git"),oid:F,cache:L={}}){try{return Ue("fs",B),Ue("gitdir",O),Ue("oid",F),await yA({fs:new mt(B),cache:L,gitdir:O,oid:F})}catch($){throw $.caller="git.expandOid",$}}l(Vp,"VP"),e(Vp,"expandOid");async function Kp({fs:B,dir:b,gitdir:O=a.join(b,".git"),ref:F}){try{return Ue("fs",B),Ue("gitdir",O),Ue("ref",F),await et.expand({fs:new mt(B),gitdir:O,ref:F})}catch(L){throw L.caller="git.expandRef",L}}l(Kp,"GP"),e(Kp,"expandRef");async function Jf({fs:B,cache:b,gitdir:O,oids:F}){let L={},$=F.length,K=F.map((ne,_e)=>({index:_e,oid:ne}));for(;K.length;){let ne=new Set;for(let{oid:ce,index:he}of K)L[ce]||(L[ce]=new Set),L[ce].add(he),L[ce].size===$&&ne.add(ce);if(ne.size>0)return[...ne];let _e=new Map;for(let{oid:ce,index:he}of K)try{let{object:Be}=await Mt({fs:B,cache:b,gitdir:O,oid:ce}),Ce=en.from(Be),{parent:Me}=Ce.parseHeaders();for(let ze of Me)(!L[ze]||!L[ze].has(he))&&_e.set(ze+":"+he,{oid:ze,index:he})}catch{}K=Array.from(_e.values())}return[]}l(Jf,"Ev"),e(Jf,"_findMergeBase");var Jp=/^.*(\r?\n|$)/gm;function mA({branches:B,contents:b}){let O=B[1],F=B[2],L=b[0],$=b[1],K=b[2],ne=$.match(Jp),_e=L.match(Jp),ce=K.match(Jp),he=m(ne,_e,ce),Be=7,Ce="",Me=!0;for(let ze of he)ze.ok&&(Ce+=ze.ok.join("")),ze.conflict&&(Me=!1,Ce+=`${"<".repeat(Be)} ${O}
122
- `,Ce+=ze.conflict.a.join(""),Ce+=`${"=".repeat(Be)}
123
- `,Ce+=ze.conflict.b.join(""),Ce+=`${">".repeat(Be)} ${F}
124
- `);return{cleanMerge:Me,mergedText:Ce}}l(mA,"FK"),e(mA,"mergeFile");async function wA({fs:B,cache:b,dir:O,gitdir:F=a.join(O,".git"),index:L,ourOid:$,baseOid:K,theirOid:ne,ourName:_e="ours",baseName:ce="base",theirName:he="theirs",dryRun:Be=!1,abortOnConflict:Ce=!0,mergeDriver:Me}){let ze=Dr({ref:$}),Ye=Dr({ref:K}),rt=Dr({ref:ne}),ot=[],it=[],ft=[],gt=[],yt=await Gn({fs:B,cache:b,dir:O,gitdir:F,trees:[ze,Ye,rt],map:e(async function(pt,[st,ut,ct]){let _t=fe(pt),Ct=await al(st,ut),ar=await al(ct,ut);switch(`${Ct}-${ar}`){case"false-false":return{mode:await ut.mode(),path:_t,oid:await ut.oid(),type:await ut.type()};case"false-true":return!ct&&await st.type()==="tree"?{mode:await st.mode(),path:_t,oid:await st.oid(),type:await st.type()}:ct?{mode:await ct.mode(),path:_t,oid:await ct.oid(),type:await ct.type()}:void 0;case"true-false":return!st&&await ct.type()==="tree"?{mode:await ct.mode(),path:_t,oid:await ct.oid(),type:await ct.type()}:st?{mode:await st.mode(),path:_t,oid:await st.oid(),type:await st.type()}:void 0;case"true-true":{if(st&&ct&&await st.type()==="tree"&&await ct.type()==="tree")return{mode:await st.mode(),path:_t,oid:await st.oid(),type:"tree"};if(st&&ct&&await st.type()==="blob"&&await ct.type()==="blob")return bA({fs:B,gitdir:F,path:_t,ours:st,base:ut,theirs:ct,ourName:_e,baseName:ce,theirName:he,mergeDriver:Me}).then(async Ft=>{if(Ft.cleanMerge)Ce||L.insert({filepath:pt,oid:Ft.mergeResult.oid,stage:0});else if(ot.push(pt),it.push(pt),!Ce){let sr="";ut&&await ut.type()==="blob"&&(sr=await ut.oid());let yr=await st.oid(),qo=await ct.oid();L.delete({filepath:pt}),sr&&L.insert({filepath:pt,oid:sr,stage:1}),L.insert({filepath:pt,oid:yr,stage:2}),L.insert({filepath:pt,oid:qo,stage:3})}return Ft.mergeResult});if(ut&&!st&&ct&&await ut.type()==="blob"&&await ct.type()==="blob"){if(ot.push(pt),ft.push(pt),!Ce){let Ft=await ut.oid(),sr=await ct.oid();L.delete({filepath:pt}),L.insert({filepath:pt,oid:Ft,stage:1}),L.insert({filepath:pt,oid:sr,stage:3})}return{mode:await ct.mode(),oid:await ct.oid(),type:"blob",path:_t}}if(ut&&st&&!ct&&await ut.type()==="blob"&&await st.type()==="blob"){if(ot.push(pt),gt.push(pt),!Ce){let Ft=await ut.oid(),sr=await st.oid();L.delete({filepath:pt}),L.insert({filepath:pt,oid:Ft,stage:1}),L.insert({filepath:pt,oid:sr,stage:2})}return{mode:await st.mode(),oid:await st.oid(),type:"blob",path:_t}}if(ut&&!st&&!ct&&(await ut.type()==="blob"||await ut.type()==="tree"))return;throw new xf}}},"map"),reduce:ot.length!==0&&(!O||Ce)?void 0:async(pt,st)=>{let ut=st.filter(Boolean);if(pt&&!(pt&&pt.type==="tree"&&ut.length===0&&pt.path!==".")){if(ut.length>0||pt.path==="."&&ut.length===0){let ct=new Qr(ut).toObject(),_t=await Or({fs:B,gitdir:F,type:"tree",object:ct,dryRun:Be});pt.oid=_t}return pt}}});return ot.length!==0?(O&&!Ce&&await Gn({fs:B,cache:b,dir:O,gitdir:F,trees:[Dr({ref:yt.oid})],map:e(async function(pt,[st]){let ut=`${O}/${pt}`;if(await st.type()==="blob"){let ct=await st.mode(),_t=new TextDecoder().decode(await st.content());await B.write(ut,_t,{mode:ct})}return!0},"map")}),new jf(ot,it,ft,gt)):yt.oid}l(wA,"xK"),e(wA,"mergeTree");async function bA({fs:B,gitdir:b,path:O,ours:F,base:L,theirs:$,ourName:K,theirName:ne,baseName:_e,dryRun:ce,mergeDriver:he=mA}){let Be="blob",Ce="100755",Me="",ze="";L&&await L.type()==="blob"&&(Ce=await L.mode(),Me=await L.oid(),ze=Buffer.from(await L.content()).toString("utf8"));let Ye=Ce===await F.mode()?await $.mode():await F.mode();if(await F.oid()===await $.oid())return{cleanMerge:!0,mergeResult:{mode:Ye,path:O,oid:await F.oid(),type:Be}};if(await F.oid()===Me)return{cleanMerge:!0,mergeResult:{mode:Ye,path:O,oid:await $.oid(),type:Be}};if(await $.oid()===Me)return{cleanMerge:!0,mergeResult:{mode:Ye,path:O,oid:await F.oid(),type:Be}};let rt=Buffer.from(await F.content()).toString("utf8"),ot=Buffer.from(await $.content()).toString("utf8"),{mergedText:it,cleanMerge:ft}=await he({branches:[_e,K,ne],contents:[ze,rt,ot],path:O}),gt=await Or({fs:B,gitdir:b,type:"blob",object:Buffer.from(it,"utf8"),dryRun:ce});return{cleanMerge:ft,mergeResult:{mode:Ye,path:O,oid:gt,type:Be}}}l(bA,"OK"),e(bA,"mergeBlobs");async function Yp({fs:B,cache:b,dir:O,gitdir:F,ours:L,theirs:$,fastForward:K=!0,fastForwardOnly:ne=!1,dryRun:_e=!1,noUpdateBranch:ce=!1,abortOnConflict:he=!0,message:Be,author:Ce,committer:Me,signingKey:ze,onSign:Ye,mergeDriver:rt,allowUnrelatedHistories:ot=!1}){L===void 0&&(L=await Kn({fs:B,gitdir:F,fullname:!0})),L=await et.expand({fs:B,gitdir:F,ref:L}),$=await et.expand({fs:B,gitdir:F,ref:$});let it=await et.resolve({fs:B,gitdir:F,ref:L}),ft=await et.resolve({fs:B,gitdir:F,ref:$}),gt=await Jf({fs:B,cache:b,gitdir:F,oids:[it,ft]});if(gt.length!==1)if(gt.length===0&&ot)gt.push("4b825dc642cb6eb9a060e54bf8d69288fbee4904");else throw new xf;let yt=gt[0];if(yt===ft)return{oid:it,alreadyMerged:!0};if(K&&yt===it)return!_e&&!ce&&await et.writeRef({fs:B,gitdir:F,ref:L,value:ft}),{oid:ft,fastForward:!0};{if(ne)throw new ip;let pt=await Q.acquire({fs:B,gitdir:F,cache:b,allowUnmerged:!1},async st=>wA({fs:B,cache:b,dir:O,gitdir:F,index:st,ourOid:it,theirOid:ft,baseOid:yt,ourName:Ai(L),baseName:"base",theirName:Ai($),dryRun:_e,abortOnConflict:he,mergeDriver:rt}));if(pt instanceof jf)throw pt;return Be||(Be=`Merge branch '${Ai($)}' into ${Ai(L)}`),{oid:await sl({fs:B,cache:b,gitdir:F,message:Be,ref:L,tree:pt,parent:[it,ft],author:Ce,committer:Me,signingKey:ze,onSign:Ye,dryRun:_e,noUpdateBranch:ce}),tree:pt,mergeCommit:!0}}}l(Yp,"YP"),e(Yp,"_merge");async function Zp({fs:B,cache:b,http:O,onProgress:F,onMessage:L,onAuth:$,onAuthSuccess:K,onAuthFailure:ne,dir:_e,gitdir:ce,ref:he,url:Be,remote:Ce,remoteRef:Me,prune:ze,pruneTags:Ye,fastForward:rt,fastForwardOnly:ot,corsProxy:it,singleBranch:ft,headers:gt,author:yt,committer:pt,signingKey:st}){try{if(!he){let _t=await Kn({fs:B,gitdir:ce});if(!_t)throw new Xr("ref");he=_t}let{fetchHead:ut,fetchHeadDescription:ct}=await Kf({fs:B,cache:b,http:O,onProgress:F,onMessage:L,onAuth:$,onAuthSuccess:K,onAuthFailure:ne,gitdir:ce,corsProxy:it,ref:he,url:Be,remote:Ce,remoteRef:Me,singleBranch:ft,headers:gt,prune:ze,pruneTags:Ye});await Yp({fs:B,cache:b,gitdir:ce,ours:he,theirs:ut,fastForward:rt,fastForwardOnly:ot,message:`Merge ${ct}`,author:yt,committer:pt,signingKey:st,dryRun:!1,noUpdateBranch:!1}),await Mf({fs:B,cache:b,onProgress:F,dir:_e,gitdir:ce,ref:he,remote:Ce,noCheckout:!1})}catch(ut){throw ut.caller="git.pull",ut}}l(Zp,"KP"),e(Zp,"_pull");async function Qp({fs:B,http:b,onProgress:O,onMessage:F,onAuth:L,onAuthSuccess:$,onAuthFailure:K,dir:ne,gitdir:_e=a.join(ne,".git"),ref:ce,url:he,remote:Be,remoteRef:Ce,corsProxy:Me,singleBranch:ze,headers:Ye={},cache:rt={}}){try{Ue("fs",B),Ue("http",b),Ue("gitdir",_e);let ot={name:"",email:"",timestamp:Date.now(),timezoneOffset:0};return await Zp({fs:new mt(B),cache:rt,http:b,onProgress:O,onMessage:F,onAuth:L,onAuthSuccess:$,onAuthFailure:K,dir:ne,gitdir:_e,ref:ce,url:he,remote:Be,remoteRef:Ce,fastForwardOnly:!0,corsProxy:Me,singleBranch:ze,headers:Ye,author:ot,committer:ot})}catch(ot){throw ot.caller="git.fastForward",ot}}l(Qp,"XP"),e(Qp,"fastForward");async function Xp({fs:B,http:b,onProgress:O,onMessage:F,onAuth:L,onAuthSuccess:$,onAuthFailure:K,dir:ne,gitdir:_e=a.join(ne,".git"),ref:ce,remote:he,remoteRef:Be,url:Ce,corsProxy:Me,depth:ze=null,since:Ye=null,exclude:rt=[],relative:ot=!1,tags:it=!1,singleBranch:ft=!1,headers:gt={},prune:yt=!1,pruneTags:pt=!1,cache:st={}}){try{return Ue("fs",B),Ue("http",b),Ue("gitdir",_e),await Kf({fs:new mt(B),cache:st,http:b,onProgress:O,onMessage:F,onAuth:L,onAuthSuccess:$,onAuthFailure:K,gitdir:_e,ref:ce,remote:he,remoteRef:Be,url:Ce,corsProxy:Me,depth:ze,since:Ye,exclude:rt,relative:ot,tags:it,singleBranch:ft,headers:gt,prune:yt,pruneTags:pt})}catch(ut){throw ut.caller="git.fetch",ut}}l(Xp,"JP"),e(Xp,"fetch");async function eg({fs:B,dir:b,gitdir:O=a.join(b,".git"),oids:F,cache:L={}}){try{return Ue("fs",B),Ue("gitdir",O),Ue("oids",F),await Jf({fs:new mt(B),cache:L,gitdir:O,oids:F})}catch($){throw $.caller="git.findMergeBase",$}}l(eg,"ZP"),e(eg,"findMergeBase");async function tg({fs:B,filepath:b}){if(await B.exists(a.join(b,".git")))return b;{let O=ve(b);if(O===b)throw new ge(`git root for ${b}`);return tg({fs:B,filepath:O})}}l(tg,"QP"),e(tg,"_findRoot");async function rg({fs:B,filepath:b}){try{return Ue("fs",B),Ue("filepath",b),await tg({fs:new mt(B),filepath:b})}catch(O){throw O.caller="git.findRoot",O}}l(rg,"ek"),e(rg,"findRoot");async function ng({fs:B,dir:b,gitdir:O=a.join(b,".git"),path:F}){try{return Ue("fs",B),Ue("gitdir",O),Ue("path",F),await $a({fs:new mt(B),gitdir:O,path:F})}catch(L){throw L.caller="git.getConfig",L}}l(ng,"tk"),e(ng,"getConfig");async function vA({fs:B,gitdir:b,path:O}){return(await ht.get({fs:B,gitdir:b})).getall(O)}l(vA,"IK"),e(vA,"_getConfigAll");async function ig({fs:B,dir:b,gitdir:O=a.join(b,".git"),path:F}){try{return Ue("fs",B),Ue("gitdir",O),Ue("path",F),await vA({fs:new mt(B),gitdir:O,path:F})}catch(L){throw L.caller="git.getConfigAll",L}}l(ig,"rk"),e(ig,"getConfigAll");async function og({http:B,onAuth:b,onAuthSuccess:O,onAuthFailure:F,corsProxy:L,url:$,headers:K={},forPush:ne=!1}){try{Ue("http",B),Ue("url",$);let _e=await qf.getRemoteHelperFor({url:$}).discover({http:B,onAuth:b,onAuthSuccess:O,onAuthFailure:F,corsProxy:L,service:ne?"git-receive-pack":"git-upload-pack",url:$,headers:K,protocolVersion:1}),ce={capabilities:[..._e.capabilities]};for(let[he,Be]of _e.refs){let Ce=he.split("/"),Me=Ce.pop(),ze=ce;for(let Ye of Ce)ze[Ye]=ze[Ye]||{},ze=ze[Ye];ze[Me]=Be}for(let[he,Be]of _e.symrefs){let Ce=he.split("/"),Me=Ce.pop(),ze=ce;for(let Ye of Ce)ze[Ye]=ze[Ye]||{},ze=ze[Ye];ze[Me]=Be}return ce}catch(_e){throw _e.caller="git.getRemoteInfo",_e}}l(og,"nk"),e(og,"getRemoteInfo");function ag(B,b,O,F){let L=[];for(let[$,K]of B.refs){if(b&&!$.startsWith(b))continue;if($.endsWith("^{}")){if(F){let _e=$.replace("^{}",""),ce=L[L.length-1],he=ce.ref===_e?ce:L.find(Be=>Be.ref===_e);if(he===void 0)throw new Error("I did not expect this to happen");he.peeled=K}continue}let ne={ref:$,oid:K};O&&B.symrefs.has($)&&(ne.target=B.symrefs.get($)),L.push(ne)}return L}l(ag,"ik"),e(ag,"formatInfoRefs");async function sg({http:B,onAuth:b,onAuthSuccess:O,onAuthFailure:F,corsProxy:L,url:$,headers:K={},forPush:ne=!1,protocolVersion:_e=2}){try{Ue("http",B),Ue("url",$);let ce=await qf.getRemoteHelperFor({url:$}).discover({http:B,onAuth:b,onAuthSuccess:O,onAuthFailure:F,corsProxy:L,service:ne?"git-receive-pack":"git-upload-pack",url:$,headers:K,protocolVersion:_e});if(ce.protocolVersion===2)return{protocolVersion:ce.protocolVersion,capabilities:ce.capabilities2};let he={};for(let Be of ce.capabilities){let[Ce,Me]=Be.split("=");Me?he[Ce]=Me:he[Ce]=!0}return{protocolVersion:1,capabilities:he,refs:ag(ce,void 0,!0,!0)}}catch(ce){throw ce.caller="git.getRemoteInfo2",ce}}l(sg,"ok"),e(sg,"getRemoteInfo2");async function _A({type:B,object:b,format:O="content",oid:F=void 0}){return O!=="deflated"&&(O!=="wrapped"&&(b=Na.wrap({type:B,object:b})),F=await de(b)),{oid:F,object:b}}l(_A,"PK"),e(_A,"hashObject");async function lg({object:B}){try{Ue("object",B),typeof B=="string"?B=Buffer.from(B,"utf8"):B instanceof Uint8Array||(B=new Uint8Array(B));let b="blob",{oid:O,object:F}=await _A({type:b,format:"content",object:B});return{oid:O,type:b,object:F,format:"wrapped"}}catch(b){throw b.caller="git.hashBlob",b}}l(lg,"ak"),e(lg,"hashBlob");async function EA({fs:B,cache:b,onProgress:O,dir:F,gitdir:L,filepath:$}){try{$=a.join(F,$);let K=await B.read($),ne=e(ce=>Mt({fs:B,cache:b,gitdir:L,oid:ce}),"getExternalRefDelta"),_e=await Xd.fromPack({pack:K,getExternalRefDelta:ne,onProgress:O});return await B.write($.replace(/\.pack$/,".idx"),await _e.toBuffer()),{oids:[..._e.hashes]}}catch(K){throw K.caller="git.indexPack",K}}l(EA,"kK"),e(EA,"_indexPack");async function fg({fs:B,onProgress:b,dir:O,gitdir:F=a.join(O,".git"),filepath:L,cache:$={}}){try{return Ue("fs",B),Ue("dir",O),Ue("gitdir",O),Ue("filepath",L),await EA({fs:new mt(B),cache:$,onProgress:b,dir:O,gitdir:F,filepath:L})}catch(K){throw K.caller="git.indexPack",K}}l(fg,"sk"),e(fg,"indexPack");async function ug({fs:B,bare:b=!1,dir:O,gitdir:F=b?O:a.join(O,".git"),defaultBranch:L="master"}){try{return Ue("fs",B),Ue("gitdir",F),b||Ue("dir",O),await Up({fs:new mt(B),bare:b,dir:O,gitdir:F,defaultBranch:L})}catch($){throw $.caller="git.init",$}}l(ug,"lk"),e(ug,"init");async function cg({fs:B,cache:b,gitdir:O,oid:F,ancestor:L,depth:$}){let K=await fl.read({fs:B,gitdir:O});if(!F)throw new Xr("oid");if(!L)throw new Xr("ancestor");if(F===L)return!1;let ne=[F],_e=new Set,ce=0;for(;ne.length;){if(ce++===$)throw new ap($);let he=ne.shift(),{type:Be,object:Ce}=await Mt({fs:B,cache:b,gitdir:O,oid:he});if(Be!=="commit")throw new xe(he,Be,"commit");let Me=en.from(Ce).parse();for(let ze of Me.parent)if(ze===L)return!0;if(!K.has(he))for(let ze of Me.parent)_e.has(ze)||(ne.push(ze),_e.add(ze))}return!1}l(cg,"fk"),e(cg,"_isDescendent");async function hg({fs:B,dir:b,gitdir:O=a.join(b,".git"),oid:F,ancestor:L,depth:$=-1,cache:K={}}){try{return Ue("fs",B),Ue("gitdir",O),Ue("oid",F),Ue("ancestor",L),await cg({fs:new mt(B),cache:K,gitdir:O,oid:F,ancestor:L,depth:$})}catch(ne){throw ne.caller="git.isDescendent",ne}}l(hg,"uk"),e(hg,"isDescendent");async function dg({fs:B,dir:b,gitdir:O=a.join(b,".git"),filepath:F}){try{return Ue("fs",B),Ue("dir",b),Ue("gitdir",O),Ue("filepath",F),Ma.isIgnored({fs:new mt(B),dir:b,gitdir:O,filepath:F})}catch(L){throw L.caller="git.isIgnored",L}}l(dg,"ck"),e(dg,"isIgnored");async function pg({fs:B,dir:b,gitdir:O=a.join(b,".git"),remote:F}){try{return Ue("fs",B),Ue("gitdir",O),et.listBranches({fs:new mt(B),gitdir:O,remote:F})}catch(L){throw L.caller="git.listBranches",L}}l(pg,"hk"),e(pg,"listBranches");async function SA({fs:B,gitdir:b,ref:O,cache:F}){if(O){let L=await et.resolve({gitdir:b,fs:B,ref:O}),$=[];return await gg({fs:B,cache:F,gitdir:b,oid:L,filenames:$,prefix:""}),$}else return Q.acquire({fs:B,gitdir:b,cache:F},async function(L){return L.entries.map($=>$.path)})}l(SA,"BK"),e(SA,"_listFiles");async function gg({fs:B,cache:b,gitdir:O,oid:F,filenames:L,prefix:$}){let{tree:K}=await ro({fs:B,cache:b,gitdir:O,oid:F});for(let ne of K)ne.type==="tree"?await gg({fs:B,cache:b,gitdir:O,oid:ne.oid,filenames:L,prefix:a.join($,ne.path)}):L.push(a.join($,ne.path))}l(gg,"dk"),e(gg,"accumulateFilesFromOid");async function yg({fs:B,dir:b,gitdir:O=a.join(b,".git"),ref:F,cache:L={}}){try{return Ue("fs",B),Ue("gitdir",O),await SA({fs:new mt(B),cache:L,gitdir:O,ref:F})}catch($){throw $.caller="git.listFiles",$}}l(yg,"pk"),e(yg,"listFiles");async function AA({fs:B,cache:b,gitdir:O,ref:F}){let L;try{L=await et.resolve({gitdir:O,fs:B,ref:F})}catch($){if($ instanceof ge)return[]}return(await ro({fs:B,cache:b,gitdir:O,oid:L})).tree.map($=>({target:$.path,note:$.oid}))}l(AA,"CK"),e(AA,"_listNotes");async function mg({fs:B,dir:b,gitdir:O=a.join(b,".git"),ref:F="refs/notes/commits",cache:L={}}){try{return Ue("fs",B),Ue("gitdir",O),Ue("ref",F),await AA({fs:new mt(B),cache:L,gitdir:O,ref:F})}catch($){throw $.caller="git.listNotes",$}}l(mg,"yk"),e(mg,"listNotes");async function wg({fs:B,dir:b,gitdir:O=a.join(b,".git"),filepath:F}){try{return Ue("fs",B),Ue("gitdir",O),et.listRefs({fs:new mt(B),gitdir:O,filepath:F})}catch(L){throw L.caller="git.listRefs",L}}l(wg,"mk"),e(wg,"listRefs");async function RA({fs:B,gitdir:b}){let O=await ht.get({fs:B,gitdir:b}),F=await O.getSubsections("remote");return Promise.all(F.map(async L=>{let $=await O.get(`remote.${L}.url`);return{remote:L,url:$}}))}l(RA,"LK"),e(RA,"_listRemotes");async function bg({fs:B,dir:b,gitdir:O=a.join(b,".git")}){try{return Ue("fs",B),Ue("gitdir",O),await RA({fs:new mt(B),gitdir:O})}catch(F){throw F.caller="git.listRemotes",F}}l(bg,"gk"),e(bg,"listRemotes");async function kA(B){let b=or.streamReader(B),O=[],F;for(;F=await b(),F!==!0;){if(F===null)continue;F=F.toString("utf8").replace(/\n$/,"");let[L,$,...K]=F.split(" "),ne={ref:$,oid:L};for(let _e of K){let[ce,he]=_e.split(":");ce==="symref-target"?ne.target=he:ce==="peeled"&&(ne.peeled=he)}O.push(ne)}return O}l(kA,"DK"),e(kA,"parseListRefsResponse");async function OA({prefix:B,symrefs:b,peelTags:O}){let F=[];return F.push(or.encode(`command=ls-refs
125
- `)),F.push(or.encode(`agent=${Gf.agent}
126
- `)),(O||b||B)&&F.push(or.delim()),O&&F.push(or.encode("peel")),b&&F.push(or.encode("symrefs")),B&&F.push(or.encode(`ref-prefix ${B}`)),F.push(or.flush()),F}l(OA,"NK"),e(OA,"writeListRefsRequest");async function vg({http:B,onAuth:b,onAuthSuccess:O,onAuthFailure:F,corsProxy:L,url:$,headers:K={},forPush:ne=!1,protocolVersion:_e=2,prefix:ce,symrefs:he,peelTags:Be}){try{Ue("http",B),Ue("url",$);let Ce=await Hf.discover({http:B,onAuth:b,onAuthSuccess:O,onAuthFailure:F,corsProxy:L,service:ne?"git-receive-pack":"git-upload-pack",url:$,headers:K,protocolVersion:_e});if(Ce.protocolVersion===1)return ag(Ce,ce,he,Be);let Me=await OA({prefix:ce,symrefs:he,peelTags:Be}),ze=await Hf.connect({http:B,auth:Ce.auth,headers:K,corsProxy:L,service:ne?"git-receive-pack":"git-upload-pack",url:$,body:Me});return kA(ze.body)}catch(Ce){throw Ce.caller="git.listServerRefs",Ce}}l(vg,"wk"),e(vg,"listServerRefs");async function _g({fs:B,dir:b,gitdir:O=a.join(b,".git")}){try{return Ue("fs",B),Ue("gitdir",O),et.listTags({fs:new mt(B),gitdir:O})}catch(F){throw F.caller="git.listTags",F}}l(_g,"vk"),e(_g,"listTags");function TA(B,b){return B.committer.timestamp-b.committer.timestamp}l(TA,"$K"),e(TA,"compareAge");var qP="e69de29bb2d1d6434b8b29ae775ad8c2e48c5391";async function Eg({fs:B,cache:b,gitdir:O,oid:F,fileId:L}){if(L===qP)return;let $=F,K,ne=await Qi({fs:B,cache:b,gitdir:O,oid:F}),_e=ne.tree;return L===ne.oid?K=ne.path:(K=await Sg({fs:B,cache:b,gitdir:O,tree:_e,fileId:L,oid:$}),Array.isArray(K)&&(K.length===0?K=void 0:K.length===1&&(K=K[0]))),K}l(Eg,"lP"),e(Eg,"resolveFileIdInTree");async function Sg({fs:B,cache:b,gitdir:O,tree:F,fileId:L,oid:$,filepaths:K=[],parentPath:ne=""}){let _e=F.entries().map(function(ce){let he;return ce.oid===L?(he=a.join(ne,ce.path),K.push(he)):ce.type==="tree"&&(he=Mt({fs:B,cache:b,gitdir:O,oid:ce.oid}).then(function({object:Be}){return Sg({fs:B,cache:b,gitdir:O,tree:Qr.from(Be),fileId:L,oid:$,filepaths:K,parentPath:a.join(ne,ce.path)})})),he});return await Promise.all(_e),K}l(Sg,"bk"),e(Sg,"_resolveFileId");async function FA({fs:B,cache:b,gitdir:O,filepath:F,ref:L,depth:$,since:K,force:ne,follow:_e}){let ce=typeof K>"u"?void 0:Math.floor(K.valueOf()/1e3),he=[],Be=await fl.read({fs:B,gitdir:O}),Ce=await et.resolve({fs:B,gitdir:O,ref:L}),Me=[await to({fs:B,cache:b,gitdir:O,oid:Ce})],ze,Ye,rt;function ot(it){rt&&F&&he.push(it)}for(l(ot,"E"),e(ot,"endCommit");Me.length>0;){let it=Me.pop();if(ce!==void 0&&it.commit.committer.timestamp<=ce)break;if(F){let ft;try{ft=await Wa({fs:B,cache:b,gitdir:O,oid:it.commit.tree,filepath:F}),Ye&&ze!==ft&&he.push(Ye),ze=ft,Ye=it,rt=!0}catch(gt){if(gt instanceof ge){let yt=_e&&ze;if(yt&&(yt=await Eg({fs:B,cache:b,gitdir:O,oid:it.commit.tree,fileId:ze}),yt))if(Array.isArray(yt)){if(Ye){let pt=await Eg({fs:B,cache:b,gitdir:O,oid:Ye.commit.tree,fileId:ze});if(Array.isArray(pt))if(yt=yt.filter(st=>pt.indexOf(st)===-1),yt.length===1)yt=yt[0],F=yt,Ye&&he.push(Ye);else{yt=!1,Ye&&he.push(Ye);break}}}else F=yt,Ye&&he.push(Ye);if(!yt){if(rt&&ze&&(he.push(Ye),!ne))break;if(!ne&&!_e)throw gt}Ye=it,rt=!1}else throw gt}}else he.push(it);if($!==void 0&&he.length===$){ot(it);break}if(!Be.has(it.oid))for(let ft of it.commit.parent){let gt=await to({fs:B,cache:b,gitdir:O,oid:ft});Me.map(yt=>yt.oid).includes(gt.oid)||Me.push(gt)}Me.length===0&&ot(it),Me.sort((ft,gt)=>TA(ft.commit,gt.commit))}return he}l(FA,"UK"),e(FA,"_log");async function Ag({fs:B,dir:b,gitdir:O=a.join(b,".git"),filepath:F,ref:L="HEAD",depth:$,since:K,force:ne,follow:_e,cache:ce={}}){try{return Ue("fs",B),Ue("gitdir",O),Ue("ref",L),await FA({fs:new mt(B),cache:ce,gitdir:O,filepath:F,ref:L,depth:$,since:K,force:ne,follow:_e})}catch(he){throw he.caller="git.log",he}}l(Ag,"_k"),e(Ag,"log");async function Rg({fs:B,onSign:b,dir:O,gitdir:F=a.join(O,".git"),ours:L,theirs:$,fastForward:K=!0,fastForwardOnly:ne=!1,dryRun:_e=!1,noUpdateBranch:ce=!1,abortOnConflict:he=!0,message:Be,author:Ce,committer:Me,signingKey:ze,cache:Ye={},mergeDriver:rt,allowUnrelatedHistories:ot=!1}){try{Ue("fs",B),ze&&Ue("onSign",b);let it=new mt(B),ft=await Vn({fs:it,gitdir:F,author:Ce});if(!ft&&(!ne||!K))throw new Nr("author");let gt=await eo({fs:it,gitdir:F,author:ft,committer:Me});if(!gt&&(!ne||!K))throw new Nr("committer");return await Yp({fs:it,cache:Ye,dir:O,gitdir:F,ours:L,theirs:$,fastForward:K,fastForwardOnly:ne,dryRun:_e,noUpdateBranch:ce,abortOnConflict:he,message:Be,author:ft,committer:gt,signingKey:ze,onSign:b,mergeDriver:rt,allowUnrelatedHistories:ot})}catch(it){throw it.caller="git.merge",it}}l(Rg,"Ek"),e(Rg,"merge");var GP={commit:16,tree:32,blob:48,tag:64,ofs_delta:96,ref_delta:112};async function kg({fs:B,cache:b,dir:O,gitdir:F=a.join(O,".git"),oids:L}){let $=new g,K=[];function ne(he,Be){let Ce=Buffer.from(he,Be);K.push(Ce),$.update(Ce)}l(ne,"f"),e(ne,"write");async function _e({stype:he,object:Be}){let Ce=GP[he],Me=Be.length,ze=Me>15?128:0,Ye=Me&15;Me=Me>>>4;let rt=(ze|Ce|Ye).toString(16);for(ne(rt,"hex");ze;)ze=Me>127?128:0,rt=ze|Me&127,ne(Wf(2,rt),"hex"),Me=Me>>>7;ne(Buffer.from(await wp(Be)))}l(_e,"h"),e(_e,"writeObject"),ne("PACK"),ne("00000002","hex"),ne(Wf(8,L.length),"hex");for(let he of L){let{type:Be,object:Ce}=await Mt({fs:B,cache:b,gitdir:F,oid:he});await _e({write:ne,object:Ce,stype:Be})}let ce=$.digest();return K.push(ce),K}l(kg,"Sk"),e(kg,"_pack");async function BA({fs:B,cache:b,gitdir:O,oids:F,write:L}){let $=await kg({fs:B,cache:b,gitdir:O,oids:F}),K=Buffer.from(await ll($)),ne=`pack-${K.slice(-20).toString("hex")}.pack`;return L?(await B.write(a.join(O,`objects/pack/${ne}`),K),{filename:ne}):{filename:ne,packfile:new Uint8Array(K)}}l(BA,"HK"),e(BA,"_packObjects");async function Og({fs:B,dir:b,gitdir:O=a.join(b,".git"),oids:F,write:L=!1,cache:$={}}){try{return Ue("fs",B),Ue("gitdir",O),Ue("oids",F),await BA({fs:new mt(B),cache:$,gitdir:O,oids:F,write:L})}catch(K){throw K.caller="git.packObjects",K}}l(Og,"Ak"),e(Og,"packObjects");async function Tg({fs:B,http:b,onProgress:O,onMessage:F,onAuth:L,onAuthSuccess:$,onAuthFailure:K,dir:ne,gitdir:_e=a.join(ne,".git"),ref:ce,url:he,remote:Be,remoteRef:Ce,prune:Me=!1,pruneTags:ze=!1,fastForward:Ye=!0,fastForwardOnly:rt=!1,corsProxy:ot,singleBranch:it,headers:ft={},author:gt,committer:yt,signingKey:pt,cache:st={}}){try{Ue("fs",B),Ue("gitdir",_e);let ut=new mt(B),ct=await Vn({fs:ut,gitdir:_e,author:gt});if(!ct)throw new Nr("author");let _t=await eo({fs:ut,gitdir:_e,author:ct,committer:yt});if(!_t)throw new Nr("committer");return await Zp({fs:ut,cache:st,http:b,onProgress:O,onMessage:F,onAuth:L,onAuthSuccess:$,onAuthFailure:K,dir:ne,gitdir:_e,ref:ce,url:he,remote:Be,remoteRef:Ce,fastForward:Ye,fastForwardOnly:rt,corsProxy:ot,singleBranch:it,headers:ft,author:ct,committer:_t,signingKey:pt,prune:Me,pruneTags:ze})}catch(ut){throw ut.caller="git.pull",ut}}l(Tg,"Rk"),e(Tg,"pull");async function IA({fs:B,cache:b,dir:O,gitdir:F=a.join(O,".git"),start:L,finish:$}){let K=await fl.read({fs:B,gitdir:F}),ne=new Set,_e=new Set;for(let Be of L)ne.add(await et.resolve({fs:B,gitdir:F,ref:Be}));for(let Be of $)try{let Ce=await et.resolve({fs:B,gitdir:F,ref:Be});_e.add(Ce)}catch{}let ce=new Set;async function he(Be){ce.add(Be);let{type:Ce,object:Me}=await Mt({fs:B,cache:b,gitdir:F,oid:Be});if(Ce==="tag"){let ze=sn.from(Me).headers().object;return he(ze)}if(Ce!=="commit")throw new xe(Be,Ce,"commit");if(!K.has(Be)){let ze=en.from(Me).headers().parent;for(Be of ze)!_e.has(Be)&&!ce.has(Be)&&await he(Be)}}l(he,"d"),e(he,"walk");for(let Be of ne)await he(Be);return ce}l(IA,"WK"),e(IA,"listCommitsAndTags");async function Yf({fs:B,cache:b,dir:O,gitdir:F=a.join(O,".git"),oids:L}){let $=new Set;async function K(ne){if($.has(ne))return;$.add(ne);let{type:_e,object:ce}=await Mt({fs:B,cache:b,gitdir:F,oid:ne});if(_e==="tag"){let he=sn.from(ce).headers().object;await K(he)}else if(_e==="commit"){let he=en.from(ce).headers().tree;await K(he)}else if(_e==="tree"){let he=Qr.from(ce);for(let Be of he)Be.type==="blob"&&$.add(Be.oid),Be.type==="tree"&&await K(Be.oid)}}l(K,"i"),e(K,"walk");for(let ne of L)await K(ne);return $}l(Yf,"nv"),e(Yf,"listObjects");async function xA(B){let b={},O="",F=or.streamReader(B),L=await F();for(;L!==!0;)L!==null&&(O+=L.toString("utf8")+`
127
- `),L=await F();let $=O.toString("utf8").split(`
128
- `);if(L=$.shift(),!L.startsWith("unpack "))throw new il('unpack ok" or "unpack [error message]',L);b.ok=L==="unpack ok",b.ok||(b.error=L.slice(7)),b.refs={};for(let K of $){if(K.trim()==="")continue;let ne=K.slice(0,2),_e=K.slice(3),ce=_e.indexOf(" ");ce===-1&&(ce=_e.length);let he=_e.slice(0,ce),Be=_e.slice(ce+1);b.refs[he]={ok:ne==="ok",error:Be}}return b}l(xA,"qK"),e(xA,"parseReceivePackResponse");async function jA({capabilities:B=[],triplets:b=[]}){let O=[],F=`\0 ${B.join(" ")}`;for(let L of b)O.push(or.encode(`${L.oldoid} ${L.oid} ${L.fullRef}${F}
129
- `)),F="";return O.push(or.flush()),O}l(jA,"zK"),e(jA,"writeReceivePackRequest");async function CA({fs:B,cache:b,http:O,onProgress:F,onMessage:L,onAuth:$,onAuthSuccess:K,onAuthFailure:ne,onPrePush:_e,gitdir:ce,ref:he,remoteRef:Be,remote:Ce,url:Me,force:ze=!1,delete:Ye=!1,corsProxy:rt,headers:ot={}}){let it=he||await Kn({fs:B,gitdir:ce});if(typeof it>"u")throw new Xr("ref");let ft=await ht.get({fs:B,gitdir:ce});Ce=Ce||await ft.get(`branch.${it}.pushRemote`)||await ft.get("remote.pushDefault")||await ft.get(`branch.${it}.remote`)||"origin";let gt=Me||await ft.get(`remote.${Ce}.pushurl`)||await ft.get(`remote.${Ce}.url`);if(typeof gt>"u")throw new Xr("remote OR url");let yt=Be||await ft.get(`branch.${it}.merge`);if(typeof gt>"u")throw new Xr("remoteRef");rt===void 0&&(rt=await ft.get("http.corsProxy"));let pt=await et.expand({fs:B,gitdir:ce,ref:it}),st=Ye?"0000000000000000000000000000000000000000":await et.resolve({fs:B,gitdir:ce,ref:pt}),ut=qf.getRemoteHelperFor({url:gt}),ct=await ut.discover({http:O,onAuth:$,onAuthSuccess:K,onAuthFailure:ne,corsProxy:rt,service:"git-receive-pack",url:gt,headers:ot,protocolVersion:1}),_t=ct.auth,Ct;if(!yt)Ct=pt;else try{Ct=await et.expandAgainstMap({ref:yt,map:ct.refs})}catch(tr){if(tr instanceof ge)Ct=yt.startsWith("refs/")?yt:`refs/heads/${yt}`;else throw tr}let ar=ct.refs.get(Ct)||"0000000000000000000000000000000000000000";if(_e&&!await _e({remote:Ce,url:gt,localRef:{ref:Ye?"(delete)":pt,oid:st},remoteRef:{ref:Ct,oid:ar}}))throw new Pf;let Ft=!ct.capabilities.has("no-thin"),sr=new Set;if(!Ye){let tr=[...ct.refs.values()],_n=new Set;if(ar!=="0000000000000000000000000000000000000000"){let Tr=await Jf({fs:B,cache:b,gitdir:ce,oids:[st,ar]});for(let cl of Tr)tr.push(cl);Ft&&(_n=await Yf({fs:B,cache:b,gitdir:ce,oids:Tr}))}if(!tr.includes(st)){let Tr=await IA({fs:B,cache:b,gitdir:ce,start:[st],finish:tr});sr=await Yf({fs:B,cache:b,gitdir:ce,oids:Tr})}if(Ft){try{let Tr=await et.resolve({fs:B,gitdir:ce,ref:`refs/remotes/${Ce}/HEAD`,depth:2}),{oid:cl}=await et.resolveAgainstMap({ref:Tr.replace(`refs/remotes/${Ce}/`,""),fullref:Tr,map:ct.refs}),Vo=[cl];for(let lr of await Yf({fs:B,cache:b,gitdir:ce,oids:Vo}))_n.add(lr)}catch{}for(let Tr of _n)sr.delete(Tr)}if(st===ar&&(ze=!0),!ze){if(pt.startsWith("refs/tags")&&ar!=="0000000000000000000000000000000000000000")throw new Cf("tag-exists");if(st!=="0000000000000000000000000000000000000000"&&ar!=="0000000000000000000000000000000000000000"&&!await cg({fs:B,cache:b,gitdir:ce,oid:st,ancestor:ar,depth:-1}))throw new Cf("not-fast-forward")}}let yr=Np([...ct.capabilities],["report-status","side-band-64k",`agent=${Gf.agent}`]),qo=await jA({capabilities:yr,triplets:[{oldoid:ar,oid:st,fullRef:Ct}]}),Go=Ye?[]:await kg({fs:B,cache:b,gitdir:ce,oids:[...sr]}),ls=await ut.connect({http:O,onProgress:F,corsProxy:rt,service:"git-receive-pack",url:gt,auth:_t,headers:ot,body:[...qo,...Go]}),{packfile:uy,progress:cy}=await sA.demux(ls.body);if(L){let tr=Dp(cy);Ha(tr,async _n=>{await L(_n)})}let Gr=await xA(uy);if(ls.headers&&(Gr.headers=ls.headers),Ce&&Gr.ok&&Gr.refs[Ct].ok&&!pt.startsWith("refs/tags")){let tr=`refs/remotes/${Ce}/${Ct.replace("refs/heads","")}`;Ye?await et.deleteRef({fs:B,gitdir:ce,ref:tr}):await et.writeRef({fs:B,gitdir:ce,ref:tr,value:st})}if(Gr.ok&&Object.values(Gr.refs).every(tr=>tr.ok))return Gr;{let tr=Object.entries(Gr.refs).filter(([_n,Tr])=>!Tr.ok).map(([_n,Tr])=>`
130
- - ${_n}: ${Tr.error}`).join("");throw new op(tr,Gr)}}l(CA,"VK"),e(CA,"_push");async function Fg({fs:B,http:b,onProgress:O,onMessage:F,onAuth:L,onAuthSuccess:$,onAuthFailure:K,onPrePush:ne,dir:_e,gitdir:ce=a.join(_e,".git"),ref:he,remoteRef:Be,remote:Ce="origin",url:Me,force:ze=!1,delete:Ye=!1,corsProxy:rt,headers:ot={},cache:it={}}){try{return Ue("fs",B),Ue("http",b),Ue("gitdir",ce),await CA({fs:new mt(B),cache:it,http:b,onProgress:O,onMessage:F,onAuth:L,onAuthSuccess:$,onAuthFailure:K,onPrePush:ne,gitdir:ce,ref:he,remoteRef:Be,remote:Ce,url:Me,force:ze,delete:Ye,corsProxy:rt,headers:ot})}catch(ft){throw ft.caller="git.push",ft}}l(Fg,"Tk"),e(Fg,"push");async function Bg({fs:B,cache:b,gitdir:O,oid:F}){let{type:L,object:$}=await Mt({fs:B,cache:b,gitdir:O,oid:F});if(L==="tag")return F=sn.from($).parse().object,Bg({fs:B,cache:b,gitdir:O,oid:F});if(L!=="blob")throw new xe(F,L,"blob");return{oid:F,blob:new Uint8Array($)}}l(Bg,"Fk"),e(Bg,"resolveBlob");async function Ig({fs:B,cache:b,gitdir:O,oid:F,filepath:L=void 0}){return L!==void 0&&(F=await Wa({fs:B,cache:b,gitdir:O,oid:F,filepath:L})),await Bg({fs:B,cache:b,gitdir:O,oid:F})}l(Ig,"xk"),e(Ig,"_readBlob");async function xg({fs:B,dir:b,gitdir:O=a.join(b,".git"),oid:F,filepath:L,cache:$={}}){try{return Ue("fs",B),Ue("gitdir",O),Ue("oid",F),await Ig({fs:new mt(B),cache:$,gitdir:O,oid:F,filepath:L})}catch(K){throw K.caller="git.readBlob",K}}l(xg,"Ok"),e(xg,"readBlob");async function Zf({fs:B,dir:b,gitdir:O=a.join(b,".git"),oid:F,cache:L={}}){try{return Ue("fs",B),Ue("gitdir",O),Ue("oid",F),await to({fs:new mt(B),cache:L,gitdir:O,oid:F})}catch($){throw $.caller="git.readCommit",$}}l(Zf,"Sv"),e(Zf,"readCommit");async function PA({fs:B,cache:b,gitdir:O,ref:F="refs/notes/commits",oid:L}){let $=await et.resolve({gitdir:O,fs:B,ref:F}),{blob:K}=await Ig({fs:B,cache:b,gitdir:O,oid:$,filepath:L});return K}l(PA,"GK"),e(PA,"_readNote");async function jg({fs:B,dir:b,gitdir:O=a.join(b,".git"),ref:F="refs/notes/commits",oid:L,cache:$={}}){try{return Ue("fs",B),Ue("gitdir",O),Ue("ref",F),Ue("oid",L),await PA({fs:new mt(B),cache:$,gitdir:O,ref:F,oid:L})}catch(K){throw K.caller="git.readNote",K}}l(jg,"Ik"),e(jg,"readNote");async function Cg({fs:B,dir:b,gitdir:O=a.join(b,".git"),oid:F,format:L="parsed",filepath:$=void 0,encoding:K=void 0,cache:ne={}}){try{Ue("fs",B),Ue("gitdir",O),Ue("oid",F);let _e=new mt(B);$!==void 0&&(F=await Wa({fs:_e,cache:ne,gitdir:O,oid:F,filepath:$}));let ce=await Mt({fs:_e,cache:ne,gitdir:O,oid:F,format:L==="parsed"?"content":L});if(ce.oid=F,L==="parsed")switch(ce.format="parsed",ce.type){case"commit":ce.object=en.from(ce.object).parse();break;case"tree":ce.object=Qr.from(ce.object).entries();break;case"blob":K?ce.object=ce.object.toString(K):(ce.object=new Uint8Array(ce.object),ce.format="content");break;case"tag":ce.object=sn.from(ce.object).parse();break;default:throw new xe(ce.oid,ce.type,"blob|commit|tag|tree")}else(ce.format==="deflated"||ce.format==="wrapped")&&(ce.type=ce.format);return ce}catch(_e){throw _e.caller="git.readObject",_e}}l(Cg,"Pk"),e(Cg,"readObject");async function LA({fs:B,cache:b,gitdir:O,oid:F}){let{type:L,object:$}=await Mt({fs:B,cache:b,gitdir:O,oid:F,format:"content"});if(L!=="tag")throw new xe(F,L,"tag");let K=sn.from($);return{oid:F,tag:K.parse(),payload:K.payload()}}l(LA,"YK"),e(LA,"_readTag");async function Pg({fs:B,dir:b,gitdir:O=a.join(b,".git"),oid:F,cache:L={}}){try{return Ue("fs",B),Ue("gitdir",O),Ue("oid",F),await LA({fs:new mt(B),cache:L,gitdir:O,oid:F})}catch($){throw $.caller="git.readTag",$}}l(Pg,"kk"),e(Pg,"readTag");async function Lg({fs:B,dir:b,gitdir:O=a.join(b,".git"),oid:F,filepath:L=void 0,cache:$={}}){try{return Ue("fs",B),Ue("gitdir",O),Ue("oid",F),await ro({fs:new mt(B),cache:$,gitdir:O,oid:F,filepath:L})}catch(K){throw K.caller="git.readTree",K}}l(Lg,"Bk"),e(Lg,"readTree");async function Ng({fs:B,dir:b,gitdir:O=a.join(b,".git"),filepath:F,cache:L={}}){try{Ue("fs",B),Ue("gitdir",O),Ue("filepath",F),await Q.acquire({fs:new mt(B),gitdir:O,cache:L},async function($){$.delete({filepath:F})})}catch($){throw $.caller="git.remove",$}}l(Ng,"Ck"),e(Ng,"remove");async function NA({fs:B,cache:b,onSign:O,gitdir:F,ref:L="refs/notes/commits",oid:$,author:K,committer:ne,signingKey:_e}){let ce;try{ce=await et.resolve({gitdir:F,fs:B,ref:L})}catch(Ce){if(!(Ce instanceof ge))throw Ce}let he=(await ro({fs:B,gitdir:F,oid:ce||"4b825dc642cb6eb9a060e54bf8d69288fbee4904"})).tree;he=he.filter(Ce=>Ce.path!==$);let Be=await za({fs:B,gitdir:F,tree:he});return await sl({fs:B,cache:b,onSign:O,gitdir:F,ref:L,tree:Be,parent:ce&&[ce],message:`Note removed by 'isomorphic-git removeNote'
131
- `,author:K,committer:ne,signingKey:_e})}l(NA,"KK"),e(NA,"_removeNote");async function Dg({fs:B,onSign:b,dir:O,gitdir:F=a.join(O,".git"),ref:L="refs/notes/commits",oid:$,author:K,committer:ne,signingKey:_e,cache:ce={}}){try{Ue("fs",B),Ue("gitdir",F),Ue("oid",$);let he=new mt(B),Be=await Vn({fs:he,gitdir:F,author:K});if(!Be)throw new Nr("author");let Ce=await eo({fs:he,gitdir:F,author:Be,committer:ne});if(!Ce)throw new Nr("committer");return await NA({fs:he,cache:ce,onSign:b,gitdir:F,ref:L,oid:$,author:Be,committer:Ce,signingKey:_e})}catch(he){throw he.caller="git.removeNote",he}}l(Dg,"Lk"),e(Dg,"removeNote");async function DA({fs:B,gitdir:b,oldref:O,ref:F,checkout:L=!1}){if(!d(F,!0))throw new qn(F,c.clean(F));if(!d(O,!0))throw new qn(O,c.clean(O));let $=`refs/heads/${O}`,K=`refs/heads/${F}`;if(await et.exists({fs:B,gitdir:b,ref:K}))throw new Hn("branch",F,!1);let ne=await et.resolve({fs:B,gitdir:b,ref:$,depth:1});await et.writeRef({fs:B,gitdir:b,ref:K,value:ne}),await et.deleteRef({fs:B,gitdir:b,ref:$});let _e=await Kn({fs:B,gitdir:b,fullname:!0})===$;(L||_e)&&await et.writeSymbolicRef({fs:B,gitdir:b,ref:"HEAD",value:K})}l(DA,"XK"),e(DA,"_renameBranch");async function Ug({fs:B,dir:b,gitdir:O=a.join(b,".git"),ref:F,oldref:L,checkout:$=!1}){try{return Ue("fs",B),Ue("gitdir",O),Ue("ref",F),Ue("oldref",L),await DA({fs:new mt(B),gitdir:O,ref:F,oldref:L,checkout:$})}catch(K){throw K.caller="git.renameBranch",K}}l(Ug,"Dk"),e(Ug,"renameBranch");async function Mg({gitdir:B,type:b,object:O}){return de(Na.wrap({type:b,object:O}))}l(Mg,"Nk"),e(Mg,"hashObject$1");async function $g({fs:B,dir:b,gitdir:O=a.join(b,".git"),filepath:F,ref:L,cache:$={}}){try{Ue("fs",B),Ue("gitdir",O),Ue("filepath",F);let K=new mt(B),ne,_e;try{ne=await et.resolve({fs:K,gitdir:O,ref:L||"HEAD"})}catch(Be){if(L)throw Be}if(ne)try{ne=await Wa({fs:K,cache:$,gitdir:O,oid:ne,filepath:F})}catch{ne=null}let ce={ctime:new Date(0),mtime:new Date(0),dev:0,ino:0,mode:0,uid:0,gid:0,size:0},he=b&&await K.read(a.join(b,F));he&&(_e=await Mg({gitdir:O,type:"blob",object:he}),ne===_e&&(ce=await K.lstat(a.join(b,F)))),await Q.acquire({fs:K,gitdir:O,cache:$},async function(Be){Be.delete({filepath:F}),ne&&Be.insert({filepath:F,stats:ce,oid:ne})})}catch(K){throw K.caller="git.reset",K}}l($g,"$k"),e($g,"resetIndex");async function Wg({fs:B,dir:b,gitdir:O=a.join(b,".git"),ref:F,depth:L}){try{return Ue("fs",B),Ue("gitdir",O),Ue("ref",F),await et.resolve({fs:new mt(B),gitdir:O,ref:F,depth:L})}catch($){throw $.caller="git.resolveRef",$}}l(Wg,"Mk"),e(Wg,"resolveRef");async function zg({fs:B,dir:b,gitdir:O=a.join(b,".git"),path:F,value:L,append:$=!1}){try{Ue("fs",B),Ue("gitdir",O),Ue("path",F);let K=new mt(B),ne=await ht.get({fs:K,gitdir:O});$?await ne.append(F,L):await ne.set(F,L),await ht.save({fs:K,gitdir:O,config:ne})}catch(K){throw K.caller="git.setConfig",K}}l(zg,"Uk"),e(zg,"setConfig");async function Hg({fs:B,gitdir:b,commit:O}){let F=en.from(O).toObject();return await Or({fs:B,gitdir:b,type:"commit",object:F,format:"content"})}l(Hg,"jk"),e(Hg,"_writeCommit");var UA=(Ho=class{static get timezoneOffsetForRefLogEntry(){let b=new Date().getTimezoneOffset(),O=Math.abs(Math.floor(b/60)),F=Math.abs(b%60).toString().padStart(2,"0");return`${b>0?"-":"+"}${O.toString().padStart(2,"0")}${F}`}static createStashReflogEntry(b,O,F){let L=b.name.replace(/\s/g,""),$="0000000000000000000000000000000000000000",K=Math.floor(Date.now()/1e3),ne=Ho.timezoneOffsetForRefLogEntry;return`${$} ${O} ${L} ${b.email} ${K} ${ne} ${F}
132
- `}static getStashReflogEntry(b,O=!1){return b.split(`
133
- `).filter(F=>F).reverse().map((F,L)=>O?`stash@{${L}}: ${F.split(" ")[1]}`:F)}},l(Ho,"Id"),Ho);e(UA,"GitRefStash");var MA=UA,VP={stage:ke,workdir:Xi},qg;async function io(B,b){return qg===void 0&&(qg=new f),qg.acquire(B,b)}l(io,"Ys"),e(io,"acquireLock$1");async function $A(B,b,O,F,L=null){let $=a.join(O,F),K=await B.lstat($);if(!K)throw new ge($);if(K.isDirectory())throw new k(`${$}: file expected, but found directory`);let ne=L?await Gd({fs:B,gitdir:b,oid:L}):void 0,_e=ne?L:void 0;return ne||await io({fs:B,gitdir:b,currentFilepath:$},async()=>{let ce=K.isSymbolicLink()?await B.readlink($).then(bp):await B.read($);if(ce===null)throw new ge($);_e=await Or({fs:B,gitdir:b,type:"blob",object:ce})}),_e}l($A,"ZK"),e($A,"checkAndWriteBlob");async function WA({fs:B,dir:b,gitdir:O,entries:F}){async function L($){if($.type==="tree"){if(!$.oid){let K=await Promise.all($.children.map(L));$.oid=await za({fs:B,gitdir:O,tree:K}),$.mode=16384}}else $.type==="blob"&&($.oid=await $A(B,O,b,$.path,$.oid),$.mode=33188);return $.path=$.path.split("/").pop(),$}return l(L,"a"),e(L,"processTreeEntry"),Promise.all(F.map(L))}l(WA,"QK"),e(WA,"processTreeEntries");async function Gg({fs:B,dir:b,gitdir:O,treePair:F}){let L=F[1]==="stage",$=F.map(ce=>typeof ce=="string"?VP[ce]():ce),K=[],ne=await Gn({fs:B,cache:{},dir:b,gitdir:O,trees:$,map:e(async(ce,[he,Be])=>{if(!(ce==="."||await Ma.isIgnored({fs:B,dir:b,gitdir:O,filepath:ce}))&&Be)return(!he||await he.oid()!==await Be.oid()&&await Be.oid()!==void 0)&&K.push([he,Be]),{mode:await Be.mode(),path:ce,oid:await Be.oid(),type:await Be.type()}},"map"),reduce:e(async(ce,he)=>(he=he.filter(Boolean),ce?(ce.children=he,ce):he.length>0?he:void 0),"reduce"),iterate:e(async(ce,he)=>{let Be=[];for(let Ce of he){let[Me,ze]=Ce;L?ze&&(await B.exists(`${b}/${ze.toString()}`)?Be.push(Ce):K.push([null,ze])):Me&&(ze?Be.push(Ce):K.push([Me,null]))}return Be.length?Promise.all(Be.map(ce)):[]},"iterate")});if(K.length===0||ne.length===0)return null;let _e=(await WA({fs:B,dir:b,gitdir:O,entries:ne})).filter(Boolean).map(ce=>({mode:ce.mode,path:ce.path,oid:ce.oid,type:ce.type}));return za({fs:B,gitdir:O,tree:_e})}l(Gg,"fP"),e(Gg,"writeTreeChanges");async function zA({fs:B,dir:b,gitdir:O,stashCommit:F,parentCommit:L,wasStaged:$}){let K=[],ne=[],_e=await Gn({fs:B,cache:{},dir:b,gitdir:O,trees:[Dr({ref:L}),Dr({ref:F})],map:e(async(ce,[he,Be])=>{if(ce==="."||await Ma.isIgnored({fs:B,dir:b,gitdir:O,filepath:ce}))return;let Ce=Be?await Be.type():await he.type();if(Ce!=="tree"&&Ce!=="blob")return;if(!Be&&he){let ze=Ce==="tree"?"rmdir":"rm";return Ce==="tree"&&K.push(ce),Ce==="blob"&&$&&ne.push({filepath:ce,oid:await he.oid()}),{method:ze,filepath:ce}}let Me=await Be.oid();if(!he||await he.oid()!==Me)return Ce==="tree"?{method:"mkdir",filepath:ce}:($&&ne.push({filepath:ce,oid:Me,stats:await B.lstat(a.join(b,ce))}),{method:"write",filepath:ce,oid:Me})},"map")});await io({fs:B,gitdir:O,dirRemoved:K,ops:_e},async()=>{for(let ce of _e){let he=a.join(b,ce.filepath);switch(ce.method){case"rmdir":await B.rmdir(he);break;case"mkdir":await B.mkdir(he);break;case"rm":await B.rm(he);break;case"write":if(!K.some(Be=>he.startsWith(Be))){let{object:Be}=await Mt({fs:B,cache:{},gitdir:O,oid:ce.oid});await B.exists(he)&&await B.rm(he),await B.write(he,Be)}break}}}),await Q.acquire({fs:B,gitdir:O,cache:{}},async ce=>{ne.forEach(({filepath:he,stats:Be,oid:Ce})=>{ce.insert({filepath:he,stats:Be,oid:Ce})})})}l(zA,"eX"),e(zA,"applyTreeChanges");var HA=(Yn=class{constructor({fs:b,dir:O,gitdir:F=a.join(O,".git")}){Object.assign(this,{fs:b,dir:O,gitdir:F,_author:null})}static get refStash(){return"refs/stash"}static get refLogsStash(){return"logs/refs/stash"}get refStashPath(){return a.join(this.gitdir,Yn.refStash)}get refLogsStashPath(){return a.join(this.gitdir,Yn.refLogsStash)}async getAuthor(){if(!this._author&&(this._author=await Vn({fs:this.fs,gitdir:this.gitdir,author:{}}),!this._author))throw new Nr("author");return this._author}async getStashSHA(b,O){return await this.fs.exists(this.refStashPath)?(O||await this.readStashReflogs({parsed:!1}))[b].split(" ")[1]:null}async writeStashCommit({message:b,tree:O,parent:F}){return Hg({fs:this.fs,gitdir:this.gitdir,commit:{message:b,tree:O,parent:F,author:await this.getAuthor(),committer:await this.getAuthor()}})}async readStashCommit(b){let O=await this.readStashReflogs({parsed:!1});if(b!==0&&(b<0||b>O.length-1))throw new qn(`stash@${b}`,"number that is in range of [0, num of stash pushed]");let F=await this.getStashSHA(b,O);return F?to({fs:this.fs,cache:{},gitdir:this.gitdir,oid:F}):{}}async writeStashRef(b){return et.writeRef({fs:this.fs,gitdir:this.gitdir,ref:Yn.refStash,value:b})}async writeStashReflogEntry({stashCommit:b,message:O}){let F=await this.getAuthor(),L=MA.createStashReflogEntry(F,b,O),$=this.refLogsStashPath;await io({filepath:$,entry:L},async()=>{let K=await this.fs.exists($)?await this.fs.read($,"utf8"):"";await this.fs.write($,K+L,"utf8")})}async readStashReflogs({parsed:b=!1}){if(!await this.fs.exists(this.refLogsStashPath))return[];let O=await this.fs.read(this.refLogsStashPath,"utf8");return MA.getStashReflogEntry(O,b)}},l(Yn,"Bs"),Yn);e(HA,"GitStashManager");var ul=HA;async function Vg({fs:B,dir:b,gitdir:O,message:F=""}){let L=new ul({fs:B,dir:b,gitdir:O});await L.getAuthor();let $=await Kn({fs:B,gitdir:O,fullname:!1}),K=await et.resolve({fs:B,gitdir:O,ref:"HEAD"}),ne=(await Zf({fs:B,dir:b,gitdir:O,oid:K})).commit.message,_e=[K],ce=null,he=Dr({ref:"HEAD"}),Be=await Gg({fs:B,dir:b,gitdir:O,treePair:[Dr({ref:"HEAD"}),"stage"]});if(Be){let ze=await L.writeStashCommit({message:`stash-Index: WIP on ${$} - ${new Date().toISOString()}`,tree:Be,parent:_e});_e.push(ze),ce=Be,he=ke()}let Ce=await Gg({fs:B,dir:b,gitdir:O,treePair:[he,"workdir"]});if(Ce){let ze=await L.writeStashCommit({message:`stash-WorkDir: WIP on ${$} - ${new Date().toISOString()}`,tree:Ce,parent:[_e[_e.length-1]]});_e.push(ze),ce=Ce}if(!ce||!Be&&!Ce)throw new ge("changes, nothing to stash");let Me=(F.trim()||`WIP on ${$}`)+`: ${K.substring(0,7)} ${ne}`;return{stashCommit:await L.writeStashCommit({message:Me,tree:ce,parent:_e}),stashMsg:Me,branch:$,stashMgr:L}}l(Vg,"Hk"),e(Vg,"_createStashCommit");async function qA({fs:B,dir:b,gitdir:O,message:F=""}){let{stashCommit:L,stashMsg:$,branch:K,stashMgr:ne}=await Vg({fs:B,dir:b,gitdir:O,message:F});return await ne.writeStashRef(L),await ne.writeStashReflogEntry({stashCommit:L,message:$}),await $f({fs:B,dir:b,gitdir:O,ref:K,track:!1,force:!0}),L}l(qA,"tX"),e(qA,"_stashPush");async function GA({fs:B,dir:b,gitdir:O,message:F=""}){let{stashCommit:L}=await Vg({fs:B,dir:b,gitdir:O,message:F});return L}l(GA,"rX"),e(GA,"_stashCreate");async function Kg({fs:B,dir:b,gitdir:O,refIdx:F=0}){let L=await new ul({fs:B,dir:b,gitdir:O}).readStashCommit(F),{parent:$=null}=L.commit?L.commit:{};if(!(!$||!Array.isArray($)))for(let K=0;K<$.length-1;K++){let ne=(await to({fs:B,cache:{},gitdir:O,oid:$[K+1]})).commit.message.startsWith("stash-Index");await zA({fs:B,dir:b,gitdir:O,stashCommit:$[K+1],parentCommit:$[K],wasStaged:ne})}}l(Kg,"Wk"),e(Kg,"_stashApply");async function Jg({fs:B,dir:b,gitdir:O,refIdx:F=0}){let L=new ul({fs:B,dir:b,gitdir:O});if(!(await L.readStashCommit(F)).commit)return;let $=L.refStashPath;await io($,async()=>{await B.exists($)&&await B.rm($)});let K=await L.readStashReflogs({parsed:!1});if(!K.length)return;K.splice(F,1);let ne=L.refLogsStashPath;await io({reflogEntries:K,stashReflogPath:ne,stashMgr:L},async()=>{if(K.length){await B.write(ne,K.reverse().join(`
134
- `)+`
135
- `,"utf8");let _e=K[K.length-1].split(" ")[1];await L.writeStashRef(_e)}else await B.rm(ne)})}l(Jg,"qk"),e(Jg,"_stashDrop");async function VA({fs:B,dir:b,gitdir:O}){return new ul({fs:B,dir:b,gitdir:O}).readStashReflogs({parsed:!0})}l(VA,"nX"),e(VA,"_stashList");async function KA({fs:B,dir:b,gitdir:O}){let F=new ul({fs:B,dir:b,gitdir:O}),L=[F.refStashPath,F.refLogsStashPath];await io(L,async()=>{await Promise.all(L.map(async $=>{if(await B.exists($))return B.rm($)}))})}l(KA,"iX"),e(KA,"_stashClear");async function JA({fs:B,dir:b,gitdir:O,refIdx:F=0}){await Kg({fs:B,dir:b,gitdir:O,refIdx:F}),await Jg({fs:B,dir:b,gitdir:O,refIdx:F})}l(JA,"oX"),e(JA,"_stashPop");async function Yg({fs:B,dir:b,gitdir:O=a.join(b,".git"),op:F="push",message:L="",refIdx:$=0}){Ue("fs",B),Ue("dir",b),Ue("gitdir",O),Ue("op",F);let K={push:qA,apply:Kg,drop:Jg,list:VA,clear:KA,pop:JA,create:GA},ne=["apply","drop","pop"];try{let _e=new mt(B);["refs","logs","logs/refs"].map(he=>a.join(O,he)).forEach(async he=>{await _e.exists(he)||await _e.mkdir(he)});let ce=K[F];if(ce){if(ne.includes(F)&&$<0)throw new qn(`stash@${$}`,"number that is in range of [0, num of stash pushed]");return await ce({fs:_e,dir:b,gitdir:O,message:L,refIdx:$})}throw new Error(`To be implemented: ${F}`)}catch(_e){throw _e.caller="git.stash",_e}}l(Yg,"zk"),e(Yg,"stash");async function Zg({fs:B,dir:b,gitdir:O=a.join(b,".git"),filepath:F,cache:L={}}){try{Ue("fs",B),Ue("gitdir",O),Ue("filepath",F);let $=new mt(B);if(await Ma.isIgnored({fs:$,gitdir:O,dir:b,filepath:F}))return"ignored";let K=await YA({fs:$,cache:L,gitdir:O}),ne=await Qg({fs:$,cache:L,gitdir:O,tree:K,path:F}),_e=await Q.acquire({fs:$,gitdir:O,cache:L},async function(ze){for(let Ye of ze)if(Ye.path===F)return Ye;return null}),ce=await $.lstat(a.join(b,F)),he=ne!==null,Be=_e!==null,Ce=ce!==null,Me=e(async()=>{if(Be&&!te(_e,ce))return _e.oid;{let ze=await $.read(a.join(b,F)),Ye=await Mg({gitdir:O,type:"blob",object:ze});return Be&&_e.oid===Ye&&ce.size!==-1&&Q.acquire({fs:$,gitdir:O,cache:L},async function(rt){rt.insert({filepath:F,stats:ce,oid:Ye})}),Ye}},"getWorkdirOid");if(!he&&!Ce&&!Be)return"absent";if(!he&&!Ce&&Be)return"*absent";if(!he&&Ce&&!Be)return"*added";if(!he&&Ce&&Be)return await Me()===_e.oid?"added":"*added";if(he&&!Ce&&!Be)return"deleted";if(he&&!Ce&&Be)return _e.oid,"*deleted";if(he&&Ce&&!Be)return await Me()===ne?"*undeleted":"*undeletemodified";if(he&&Ce&&Be){let ze=await Me();return ze===ne?ze===_e.oid?"unmodified":"*unmodified":ze===_e.oid?"modified":"*modified"}}catch($){throw $.caller="git.status",$}}l(Zg,"Vk"),e(Zg,"status");async function Qg({fs:B,cache:b,gitdir:O,tree:F,path:L}){typeof L=="string"&&(L=L.split("/"));let $=L.shift();for(let K of F)if(K.path===$){if(L.length===0)return K.oid;let{type:ne,object:_e}=await Mt({fs:B,cache:b,gitdir:O,oid:K.oid});if(ne==="tree"){let ce=Qr.from(_e);return Qg({fs:B,cache:b,gitdir:O,tree:ce,path:L})}if(ne==="blob")throw new xe(K.oid,ne,"blob",L.join("/"))}return null}l(Qg,"Gk"),e(Qg,"getOidAtPath");async function YA({fs:B,cache:b,gitdir:O}){let F;try{F=await et.resolve({fs:B,gitdir:O,ref:"HEAD"})}catch($){if($ instanceof ge)return[]}let{tree:L}=await ro({fs:B,cache:b,gitdir:O,oid:F});return L}l(YA,"aX"),e(YA,"getHeadTree");async function Xg({fs:B,dir:b,gitdir:O=a.join(b,".git"),ref:F="HEAD",filepaths:L=["."],filter:$,cache:K={},ignored:ne=!1}){try{Ue("fs",B),Ue("gitdir",O),Ue("ref",F);let _e=new mt(B);return await Gn({fs:_e,cache:K,dir:b,gitdir:O,trees:[Dr({ref:F}),Xi(),ke()],map:e(async function(ce,[he,Be,Ce]){if(!he&&!Ce&&Be&&!ne&&await Ma.isIgnored({fs:_e,dir:b,filepath:ce})||!L.some(pt=>zS(ce,pt)))return null;if($&&!$(ce))return;let[Me,ze,Ye]=await Promise.all([he&&he.type(),Be&&Be.type(),Ce&&Ce.type()]),rt=[Me,ze,Ye].includes("blob");if((Me==="tree"||Me==="special")&&!rt)return;if(Me==="commit")return null;if((ze==="tree"||ze==="special")&&!rt)return;if(Ye==="commit")return null;if((Ye==="tree"||Ye==="special")&&!rt)return;let ot=Me==="blob"?await he.oid():void 0,it=Ye==="blob"?await Ce.oid():void 0,ft;Me!=="blob"&&ze==="blob"&&Ye!=="blob"?ft="42":ze==="blob"&&(ft=await Be.oid());let gt=[void 0,ot,ft,it],yt=gt.map(pt=>gt.indexOf(pt));return yt.shift(),[ce,...yt]},"map")})}catch(_e){throw _e.caller="git.statusMatrix",_e}}l(Xg,"Yk"),e(Xg,"statusMatrix");async function ey({fs:B,dir:b,gitdir:O=a.join(b,".git"),ref:F,object:L,force:$=!1}){try{Ue("fs",B),Ue("gitdir",O),Ue("ref",F);let K=new mt(B);if(F===void 0)throw new Xr("ref");F=F.startsWith("refs/tags/")?F:`refs/tags/${F}`;let ne=await et.resolve({fs:K,gitdir:O,ref:L||"HEAD"});if(!$&&await et.exists({fs:K,gitdir:O,ref:F}))throw new Hn("tag",F);await et.writeRef({fs:K,gitdir:O,ref:F,value:ne})}catch(K){throw K.caller="git.tag",K}}l(ey,"Kk"),e(ey,"tag");async function ty({fs:B,dir:b,gitdir:O=a.join(b,".git"),cache:F={},filepath:L,oid:$,mode:K,add:ne,remove:_e,force:ce}){try{Ue("fs",B),Ue("gitdir",O),Ue("filepath",L);let he=new mt(B);if(_e)return await Q.acquire({fs:he,gitdir:O,cache:F},async function(Ce){if(!ce){let Me=await he.lstat(a.join(b,L));if(Me){if(Me.isDirectory())throw new Da("directory");return}}Ce.has({filepath:L})&&Ce.delete({filepath:L})});let Be;if(!$){if(Be=await he.lstat(a.join(b,L)),!Be)throw new ge(`file at "${L}" on disk and "remove" not set`);if(Be.isDirectory())throw new Da("directory")}return await Q.acquire({fs:he,gitdir:O,cache:F},async function(Ce){if(!ne&&!Ce.has({filepath:L}))throw new ge(`file at "${L}" in index and "add" not set`);let Me;if($)Me={ctime:new Date(0),mtime:new Date(0),dev:0,ino:0,mode:K,uid:0,gid:0,size:0};else{Me=Be;let ze=Me.isSymbolicLink()?await he.readlink(a.join(b,L)):await he.read(a.join(b,L));$=await Or({fs:he,gitdir:O,type:"blob",format:"content",object:ze})}return Ce.insert({filepath:L,oid:$,stats:Me}),$})}catch(he){throw he.caller="git.updateIndex",he}}l(ty,"Xk"),e(ty,"updateIndex$1");function ry(){try{return Gf.version}catch(B){throw B.caller="git.version",B}}l(ry,"Jk"),e(ry,"version");async function ny({fs:B,dir:b,gitdir:O=a.join(b,".git"),trees:F,map:L,reduce:$,iterate:K,cache:ne={}}){try{return Ue("fs",B),Ue("gitdir",O),Ue("trees",F),await Gn({fs:new mt(B),cache:ne,dir:b,gitdir:O,trees:F,map:L,reduce:$,iterate:K})}catch(_e){throw _e.caller="git.walk",_e}}l(ny,"Zk"),e(ny,"walk");async function iy({fs:B,dir:b,gitdir:O=a.join(b,".git"),blob:F}){try{return Ue("fs",B),Ue("gitdir",O),Ue("blob",F),await Or({fs:new mt(B),gitdir:O,type:"blob",object:F,format:"content"})}catch(L){throw L.caller="git.writeBlob",L}}l(iy,"Qk"),e(iy,"writeBlob");async function oy({fs:B,dir:b,gitdir:O=a.join(b,".git"),commit:F}){try{return Ue("fs",B),Ue("gitdir",O),Ue("commit",F),await Hg({fs:new mt(B),gitdir:O,commit:F})}catch(L){throw L.caller="git.writeCommit",L}}l(oy,"eB"),e(oy,"writeCommit");async function ay({fs:B,dir:b,gitdir:O=a.join(b,".git"),type:F,object:L,format:$="parsed",oid:K,encoding:ne=void 0}){try{let _e=new mt(B);if($==="parsed"){switch(F){case"commit":L=en.from(L).toObject();break;case"tree":L=Qr.from(L).toObject();break;case"blob":L=Buffer.from(L,ne);break;case"tag":L=sn.from(L).toObject();break;default:throw new xe(K||"",F,"blob|commit|tag|tree")}$="content"}return K=await Or({fs:_e,gitdir:O,type:F,object:L,oid:K,format:$}),K}catch(_e){throw _e.caller="git.writeObject",_e}}l(ay,"tB"),e(ay,"writeObject");async function sy({fs:B,dir:b,gitdir:O=a.join(b,".git"),ref:F,value:L,force:$=!1,symbolic:K=!1}){try{Ue("fs",B),Ue("gitdir",O),Ue("ref",F),Ue("value",L);let ne=new mt(B);if(!d(F,!0))throw new qn(F,c.clean(F));if(!$&&await et.exists({fs:ne,gitdir:O,ref:F}))throw new Hn("ref",F);K?await et.writeSymbolicRef({fs:ne,gitdir:O,ref:F,value:L}):(L=await et.resolve({fs:ne,gitdir:O,ref:L}),await et.writeRef({fs:ne,gitdir:O,ref:F,value:L}))}catch(ne){throw ne.caller="git.writeRef",ne}}l(sy,"rB"),e(sy,"writeRef");async function ZA({fs:B,gitdir:b,tag:O}){let F=sn.from(O).toObject();return await Or({fs:B,gitdir:b,type:"tag",object:F,format:"content"})}l(ZA,"sX"),e(ZA,"_writeTag");async function ly({fs:B,dir:b,gitdir:O=a.join(b,".git"),tag:F}){try{return Ue("fs",B),Ue("gitdir",O),Ue("tag",F),await ZA({fs:new mt(B),gitdir:O,tag:F})}catch(L){throw L.caller="git.writeTag",L}}l(ly,"nB"),e(ly,"writeTag");async function fy({fs:B,dir:b,gitdir:O=a.join(b,".git"),tree:F}){try{return Ue("fs",B),Ue("gitdir",O),Ue("tree",F),await za({fs:new mt(B),gitdir:O,tree:F})}catch(L){throw L.caller="git.writeTree",L}}l(fy,"iB"),e(fy,"writeTree");var KP={Errors:mS,STAGE:ke,TREE:Dr,WORKDIR:Xi,add:vp,abortMerge:yp,addNote:Rp,addRemote:Op,annotatedTag:Tp,branch:Fp,checkout:$f,clone:Mp,commit:$p,getConfig:ng,getConfigAll:ig,setConfig:zg,currentBranch:Wp,deleteBranch:zp,deleteRef:Hp,deleteRemote:qp,deleteTag:Gp,expandOid:Vp,expandRef:Kp,fastForward:Qp,fetch:Xp,findMergeBase:eg,findRoot:rg,getRemoteInfo:og,getRemoteInfo2:sg,hashBlob:lg,indexPack:fg,init:ug,isDescendent:hg,isIgnored:dg,listBranches:pg,listFiles:yg,listNotes:mg,listRefs:wg,listRemotes:bg,listServerRefs:vg,listTags:_g,log:Ag,merge:Rg,packObjects:Og,pull:Tg,push:Fg,readBlob:xg,readCommit:Zf,readNote:jg,readObject:Cg,readTag:Pg,readTree:Lg,remove:Ng,removeNote:Dg,renameBranch:Ug,resetIndex:$g,updateIndex:ty,resolveRef:Wg,status:Zg,statusMatrix:Xg,tag:ey,version:ry,walk:ny,writeBlob:iy,writeCommit:oy,writeObject:ay,writeRef:sy,writeTag:ly,writeTree:fy,stash:Yg};o.Errors=mS,o.STAGE=ke,o.TREE=Dr,o.WORKDIR=Xi,o.abortMerge=yp,o.add=vp,o.addNote=Rp,o.addRemote=Op,o.annotatedTag=Tp,o.branch=Fp,o.checkout=$f,o.clone=Mp,o.commit=$p,o.currentBranch=Wp,o.default=KP,o.deleteBranch=zp,o.deleteRef=Hp,o.deleteRemote=qp,o.deleteTag=Gp,o.expandOid=Vp,o.expandRef=Kp,o.fastForward=Qp,o.fetch=Xp,o.findMergeBase=eg,o.findRoot=rg,o.getConfig=ng,o.getConfigAll=ig,o.getRemoteInfo=og,o.getRemoteInfo2=sg,o.hashBlob=lg,o.indexPack=fg,o.init=ug,o.isDescendent=hg,o.isIgnored=dg,o.listBranches=pg,o.listFiles=yg,o.listNotes=mg,o.listRefs=wg,o.listRemotes=bg,o.listServerRefs=vg,o.listTags=_g,o.log=Ag,o.merge=Rg,o.packObjects=Og,o.pull=Tg,o.push=Fg,o.readBlob=xg,o.readCommit=Zf,o.readNote=jg,o.readObject=Cg,o.readTag=Pg,o.readTree=Lg,o.remove=Ng,o.removeNote=Dg,o.renameBranch=Ug,o.resetIndex=$g,o.resolveRef=Wg,o.setConfig=zg,o.stash=Yg,o.status=Zg,o.statusMatrix=Xg,o.tag=ey,o.updateIndex=ty,o.version=ry,o.walk=ny,o.writeBlob=iy,o.writeCommit=oy,o.writeObject=ay,o.writeRef=sy,o.writeTag=ly,o.writeTree=fy}),A3=Ge((o,i)=>{i.exports=function(f,g){var a=[];f.on("data",function(n){a.push(n)}),f.once("end",function(){g&&g(null,Buffer.concat(a)),g=null}),f.once("error",function(n){g&&g(n),g=null})}}),R3=Ge(()=>{});l(Yi,"_a");l(It,"at");l(Ll,"tp");l(Q1,"xC");l(wy,"SB");l(Xj,"hX");l(by,"AB");l(vy,"RB");l(_y,"TB");l(X1,"OC");l(e8,"dX");l(t8,"pX");l(Ca,"sl");l(zc,"xb");l(Hc,"Ob");l(ev,"PC");l(r8,"yX");l(tv,"kC");l(Ey,"IB");l(Sn,"mi");l(Ti,"Ea");l(el,"uu");l(Sy,"kB");l(rv,"$C");l(nv,"MC");l(iv,"UC");l(ov,"jC");l(av,"HC");l(sv,"WC");l(lv,"qC");l(fv,"zC");l(uv,"VC");l(cv,"GC");l(hv,"YC");l(pl,"Yd");l(gl,"Kd");l(yl,"Xd");l(ou,"Xv");l(Vl,"op");l(Ay,"BB");l(Kl,"ap");l(Ry,"CB");l(Jl,"sp");l(ky,"LB");l(Oy,"DB");l(Ty,"NB");l(Fy,"$B");l(By,"MB");l(Iy,"UB");l(di,"yo");l(n8,"DX");l(i8,"NX");l(pf,"lp");l(qc,"Jv");l(Gc,"Zv");l(dv,"XC");l(ad,"Nb");l(Yl,"dp");l(pv,"JC");l(Zl,"fp");l(Vi,"va");l(Is,"lu");l(fa,"ll");l(Ql,"up");l(xs,"fu");l(Xl,"np");l(Ld,"$b");l(Vc,"Qv");l(KT,"MX");l(QE,"ZC");l(JT,"UX");l(sd,"Mb");l(o8,"jX");l(XE,"QC");l(YT,"HX");l(gv,"eL");l(_r,"nr");l(ZT,"oJ");l(QT,"fJ");l(XT,"uJ");l(eF,"cJ");l(tF,"bJ");l(rF,"AJ");l(nF,"jJ");l(au,"kb");l(ei,"mo");l(iF,"QJ");l(a8,"eZ");l(s8,"tZ");l(oF,"rZ");l(aF,"nZ");l(sF,"iZ");l(Fi,"ga");l(xy,"YB");l(jy,"tL");l(lF,"uZ");l(Jr,"Qr");l(us,"au");l(fF,"bZ");l(uF,"kZ");l(l8,"BZ");l(f8,"CZ");l(cF,"LZ");l(hF,"GZ");l(u8,"YZ");l(c8,"KZ");l(dF,"XZ");l(e2,"nL");l(t2,"iL");l(h8,"JZ");l(r2,"oL");l(Pa,"fl");l(n2,"aL");l(i2,"sL");l(Oa,"al");l(Nd,"jb");l(d8,"ZZ");l(p8,"QZ");l(o2,"lL");l(a2,"fL");l(g8,"eQ");l(y8,"tQ");l(s2,"uL");l(l2,"cL");l(m8,"rQ");l(w8,"nQ");l(b8,"iQ");l(pF,"aQ");F3=Xt(()=>{if(Kc={},yv=!1,e(Yi,"dew"),Ko=typeof Reflect=="object"?Reflect:null,Cy=Ko&&typeof Ko.apply=="function"?Ko.apply:function(a,n,r){return Function.prototype.apply.call(a,n,r)},yF=Ko&&typeof Ko.ownKeys=="function"?Ko.ownKeys:Object.getOwnPropertySymbols?function(a){return Object.getOwnPropertyNames(a).concat(Object.getOwnPropertySymbols(a))}:function(a){return Object.getOwnPropertyNames(a)},Py=Number.isNaN||function(a){return a!=a},e(It,"o"),gF=It,It.EventEmitter=It,It.prototype._events=void 0,It.prototype._eventsCount=0,It.prototype._maxListeners=void 0,Ly=10,e(Ll,"u"),e(Q1,"f"),e(wy,"v"),e(Xj,"a"),e(by,"l"),e(vy,"h"),e(_y,"p"),e(X1,"c"),Object.defineProperty(It,"defaultMaxListeners",{enumerable:!0,get:e(function(){return Ly},"get"),set:e(function(a){if(typeof a!="number"||a<0||Py(a))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+a+".");Ly=a},"set")}),It.init=function(){this._events!==void 0&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},It.prototype.setMaxListeners=function(a){if(typeof a!="number"||a<0||Py(a))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+a+".");return this._maxListeners=a,this},It.prototype.getMaxListeners=function(){return Q1(this)},It.prototype.emit=function(a){for(var n=[],r=1;r<arguments.length;r++)n.push(arguments[r]);var u=a==="error",p=this._events;if(p!==void 0)u=u&&p.error===void 0;else if(!u)return!1;if(u){var c;if(n.length>0&&(c=n[0]),c instanceof Error)throw c;var d=new Error("Unhandled error."+(c?" ("+c.message+")":""));throw d.context=c,d}var m=p[a];if(m===void 0)return!1;if(typeof m=="function")Cy(m,this,n);else{var y=m.length,w=X1(m,y);for(r=0;r<y;++r)Cy(w[r],this,n)}return!0},It.prototype.addListener=function(a,n){return wy(this,a,n,!1)},It.prototype.on=It.prototype.addListener,It.prototype.prependListener=function(a,n){return wy(this,a,n,!0)},It.prototype.once=function(a,n){return Ll(n),this.on(a,by(this,a,n)),this},It.prototype.prependOnceListener=function(a,n){return Ll(n),this.prependListener(a,by(this,a,n)),this},It.prototype.removeListener=function(a,n){var r,u,p,c,d;if(Ll(n),(u=this._events)===void 0)return this;if((r=u[a])===void 0)return this;if(r===n||r.listener===n)--this._eventsCount==0?this._events=Object.create(null):(delete u[a],u.removeListener&&this.emit("removeListener",a,r.listener||n));else if(typeof r!="function"){for(p=-1,c=r.length-1;c>=0;c--)if(r[c]===n||r[c].listener===n){d=r[c].listener,p=c;break}if(p<0)return this;p===0?r.shift():function(m,y){for(;y+1<m.length;y++)m[y]=m[y+1];m.pop()}(r,p),r.length===1&&(u[a]=r[0]),u.removeListener!==void 0&&this.emit("removeListener",a,d||n)}return this},It.prototype.off=It.prototype.removeListener,It.prototype.removeAllListeners=function(a){var n,r,u;if((r=this._events)===void 0)return this;if(r.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):r[a]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete r[a]),this;if(arguments.length===0){var p,c=Object.keys(r);for(u=0;u<c.length;++u)(p=c[u])!=="removeListener"&&this.removeAllListeners(p);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(n=r[a])=="function")this.removeListener(a,n);else if(n!==void 0)for(u=n.length-1;u>=0;u--)this.removeListener(a,n[u]);return this},It.prototype.listeners=function(a){return vy(this,a,!0)},It.prototype.rawListeners=function(a){return vy(this,a,!1)},It.listenerCount=function(a,n){return typeof a.listenerCount=="function"?a.listenerCount(n):_y.call(a,n)},It.prototype.listenerCount=_y,It.prototype.eventNames=function(){return this._eventsCount>0?yF(this._events):[]},Yr=gF,Yr.EventEmitter,Yr.defaultMaxListeners,Yr.init,Yr.listenerCount,Yr.EventEmitter,Yr.defaultMaxListeners,Yr.init,Yr.listenerCount,Yr.once=function(a,n){return new Promise((r,u)=>{function p(...d){c!==void 0&&a.removeListener("error",c),r(d)}l(p,"a"),e(p,"eventListener");let c;n!=="error"&&(c=e(d=>{a.removeListener(name,p),u(d)},"errorListener"),a.once("error",c)),a.once(n,p)})},Yr.on=function(a,n){let r=[],u=[],p=null,c=!1,d={async next(){let w=r.shift();if(w)return createIterResult(w,!1);if(p){let _=Promise.reject(p);return p=null,_}return c?createIterResult(void 0,!0):new Promise((_,S)=>u.push({resolve:_,reject:S}))},async return(){a.removeListener(n,m),a.removeListener("error",y),c=!0;for(let w of u)w.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)},throw(w){p=w,a.removeListener(n,m),a.removeListener("error",y)},[Symbol.asyncIterator](){return this}};return a.on(n,m),a.on("error",y),d;function m(...w){let _=u.shift();_?_.resolve(createIterResult(w,!1)):r.push(w)}function y(w){c=!0;let _=u.shift();_?_.reject(w):p=w,d.return()}},Os={},mv=!1,e(e8,"dew$2"),Jc={},wv=!1,e(t8,"dew$1"),Wi={},bv=!1,e(Ca,"dew2"),ba=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,rr=mF={},e(zc,"i$2"),e(Hc,"u$2"),e(ev,"c$2"),function(){try{oi=typeof setTimeout=="function"?setTimeout:zc}catch{oi=zc}try{ai=typeof clearTimeout=="function"?clearTimeout:Hc}catch{ai=Hc}}(),Nn=[],va=!1,ef=-1,e(r8,"h$1"),e(tv,"d$1"),e(Ey,"m$1"),e(Sn,"p$1"),rr.nextTick=function(a){var n=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)n[r-1]=arguments[r];Nn.push(new Ey(a,n)),Nn.length!==1||va||ev(tv)},Ey.prototype.run=function(){(this||ba).fun.apply(null,(this||ba).array)},rr.title="browser",rr.browser=!0,rr.env={},rr.argv=[],rr.version="",rr.versions={},rr.on=Sn,rr.addListener=Sn,rr.once=Sn,rr.off=Sn,rr.removeListener=Sn,rr.removeAllListeners=Sn,rr.emit=Sn,rr.prependListener=Sn,rr.prependOnceListener=Sn,rr.listeners=function(a){return[]},rr.binding=function(a){throw new Error("process.binding is not supported")},rr.cwd=function(){return"/"},rr.chdir=function(a){throw new Error("process.chdir is not supported")},rr.umask=function(){return 0},Ht=mF,Ht.addListener,Ht.argv,Ht.binding,Ht.browser,Ht.chdir,Ht.cwd,Ht.emit,Ht.env,Ht.listeners,Ht.nextTick,Ht.off,Ht.on,Ht.once,Ht.prependListener,Ht.prependOnceListener,Ht.removeAllListeners,Ht.removeListener,Ht.title,Ht.umask,Ht.version,Ht.versions,wF=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",su=Object.prototype.toString,ml=e(function(a){return!(wF&&a&&typeof a=="object"&&Symbol.toStringTag in a)&&su.call(a)==="[object Arguments]"},"o2"),Ny=e(function(a){return!!ml(a)||a!==null&&typeof a=="object"&&typeof a.length=="number"&&a.length>=0&&su.call(a)!=="[object Array]"&&su.call(a.callee)==="[object Function]"},"n2"),bF=function(){return ml(arguments)}(),ml.isLegacyArguments=Ny,vF=bF?ml:Ny,_F=Object.prototype.toString,EF=Function.prototype.toString,SF=/^\s*(?:function)?\*/,Dy=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Uy=Object.getPrototypeOf,My=function(){if(!Dy)return!1;try{return Function("return function*() {}")()}catch{}}(),AF=My?Uy(My):{},RF=e(function(a){return typeof a=="function"&&(!!SF.test(EF.call(a))||(Dy?Uy(a)===AF:_F.call(a)==="[object GeneratorFunction]"))},"i2"),kF=typeof Object.create=="function"?function(a,n){n&&(a.super_=n,a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}))}:function(a,n){if(n){a.super_=n;var r=e(function(){},"o4");r.prototype=n.prototype,a.prototype=new r,a.prototype.constructor=a}},$y=e(function(a){return a&&typeof a=="object"&&typeof a.copy=="function"&&typeof a.fill=="function"&&typeof a.readUInt8=="function"},"i$1"),At={},v8=$y,OF=vF,TF=RF,e(Ti,"c$1"),vv=typeof BigInt<"u",Yc=typeof Symbol<"u",Hr=Yc&&Symbol.toStringTag!==void 0,jr=typeof Uint8Array<"u",FF=typeof ArrayBuffer<"u",jr&&Hr)var o=Object.getPrototypeOf(Uint8Array.prototype),i=Ti(Object.getOwnPropertyDescriptor(o,Symbol.toStringTag).get);if(Kt=Ti(Object.prototype.toString),_8=Ti(Number.prototype.valueOf),E8=Ti(String.prototype.valueOf),S8=Ti(Boolean.prototype.valueOf),vv)var f=Ti(BigInt.prototype.valueOf);if(Yc)var g=Ti(Symbol.prototype.valueOf);e(el,"O"),e(Sy,"S"),e(rv,"B"),e(nv,"k"),e(iv,"E"),e(ov,"D"),e(av,"U"),e(sv,"P"),e(lv,"x"),e(fv,"I"),e(uv,"M"),e(cv,"z"),e(hv,"F"),e(pl,"T"),e(gl,"N"),e(yl,"W"),e(ou,"$"),e(Vl,"C"),e(Ay,"V"),e(Kl,"G"),e(Ry,"R"),e(Jl,"J"),e(ky,"_"),e(Oy,"H"),e(Ty,"Z"),e(Fy,"q"),e(By,"K"),e(Iy,"L"),At.isArgumentsObject=OF,At.isGeneratorFunction=TF,At.isPromise=function(a){return typeof Promise<"u"&&a instanceof Promise||a!==null&&typeof a=="object"&&typeof a.then=="function"&&typeof a.catch=="function"},At.isArrayBufferView=function(a){return FF&&ArrayBuffer.isView?ArrayBuffer.isView(a):Sy(a)||Ry(a)},At.isTypedArray=Sy,At.isUint8Array=rv,At.isUint8ClampedArray=nv,At.isUint16Array=iv,At.isUint32Array=ov,At.isInt8Array=av,At.isInt16Array=sv,At.isInt32Array=lv,At.isFloat32Array=fv,At.isFloat64Array=uv,At.isBigInt64Array=cv,At.isBigUint64Array=hv,pl.working=typeof Map<"u"&&pl(new Map),At.isMap=function(a){return typeof Map<"u"&&(pl.working?pl(a):a instanceof Map)},gl.working=typeof Set<"u"&&gl(new Set),At.isSet=function(a){return typeof Set<"u"&&(gl.working?gl(a):a instanceof Set)},yl.working=typeof WeakMap<"u"&&yl(new WeakMap),At.isWeakMap=function(a){return typeof WeakMap<"u"&&(yl.working?yl(a):a instanceof WeakMap)},ou.working=typeof WeakSet<"u"&&ou(new WeakSet),At.isWeakSet=function(a){return ou(a)},Vl.working=typeof ArrayBuffer<"u"&&Vl(new ArrayBuffer),At.isArrayBuffer=Ay,Kl.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&Kl(new DataView(new ArrayBuffer(1),0,1)),At.isDataView=Ry,Jl.working=typeof SharedArrayBuffer<"u"&&Jl(new SharedArrayBuffer),At.isSharedArrayBuffer=ky,At.isAsyncFunction=function(a){return Kt(a)==="[object AsyncFunction]"},At.isMapIterator=function(a){return Kt(a)==="[object Map Iterator]"},At.isSetIterator=function(a){return Kt(a)==="[object Set Iterator]"},At.isGeneratorObject=function(a){return Kt(a)==="[object Generator]"},At.isWebAssemblyCompiledModule=function(a){return Kt(a)==="[object WebAssembly.Module]"},At.isNumberObject=Oy,At.isStringObject=Ty,At.isBooleanObject=Fy,At.isBigIntObject=By,At.isSymbolObject=Iy,At.isBoxedPrimitive=function(a){return Oy(a)||Ty(a)||Fy(a)||By(a)||Iy(a)},At.isAnyArrayBuffer=function(a){return jr&&(Ay(a)||ky(a))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(a){Object.defineProperty(At,a,{enumerable:!1,value:e(function(){throw new Error(a+" is not supported in userland")},"value")})}),cs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,Xe={},fn=Ht,Wy=Object.getOwnPropertyDescriptors||function(a){for(var n=Object.keys(a),r={},u=0;u<n.length;u++)r[n[u]]=Object.getOwnPropertyDescriptor(a,n[u]);return r},BF=/%[sdj%]/g,Xe.format=function(a){if(!Zl(a)){for(var n=[],r=0;r<arguments.length;r++)n.push(di(arguments[r]));return n.join(" ")}r=1;for(var u=arguments,p=u.length,c=String(a).replace(BF,function(m){if(m==="%%")return"%";if(r>=p)return m;switch(m){case"%s":return String(u[r++]);case"%d":return Number(u[r++]);case"%j":try{return JSON.stringify(u[r++])}catch{return"[Circular]"}default:return m}}),d=u[r];r<p;d=u[++r])Yl(d)||!fa(d)?c+=" "+d:c+=" "+di(d);return c},Xe.deprecate=function(a,n){if(fn!==void 0&&fn.noDeprecation===!0)return a;if(fn===void 0)return function(){return Xe.deprecate(a,n).apply(this||cs,arguments)};var r=!1;return function(){if(!r){if(fn.throwDeprecation)throw new Error(n);fn.traceDeprecation?console.trace(n):console.error(n),r=!0}return a.apply(this||cs,arguments)}},wl={},zy=/^$/,fn.env.NODE_DEBUG&&(lu=fn.env.NODE_DEBUG,lu=lu.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),zy=new RegExp("^"+lu+"$","i")),e(di,"oe"),e(n8,"ue"),e(i8,"fe"),e(pf,"ae"),e(qc,"ce"),e(Gc,"se"),e(dv,"pe"),e(ad,"ye"),e(Yl,"le"),e(pv,"de"),e(Zl,"ge"),e(Vi,"be"),e(Is,"me"),e(fa,"he"),e(Ql,"je"),e(xs,"Ae"),e(Xl,"we"),e(Ld,"ve"),e(Vc,"Oe"),Xe.debuglog=function(a){if(a=a.toUpperCase(),!wl[a])if(zy.test(a)){var n=fn.pid;wl[a]=function(){var r=Xe.format.apply(Xe,arguments);console.error("%s %d: %s",a,n,r)}}else wl[a]=function(){};return wl[a]},Xe.inspect=di,di.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},di.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},Xe.types=At,Xe.isArray=dv,Xe.isBoolean=ad,Xe.isNull=Yl,Xe.isNullOrUndefined=function(a){return a==null},Xe.isNumber=pv,Xe.isString=Zl,Xe.isSymbol=function(a){return typeof a=="symbol"},Xe.isUndefined=Vi,Xe.isRegExp=Is,Xe.types.isRegExp=Is,Xe.isObject=fa,Xe.isDate=Ql,Xe.types.isDate=Ql,Xe.isError=xs,Xe.types.isNativeError=xs,Xe.isFunction=Xl,Xe.isPrimitive=function(a){return a===null||typeof a=="boolean"||typeof a=="number"||typeof a=="string"||typeof a=="symbol"||a===void 0},Xe.isBuffer=$y,A8=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],e(KT,"Be"),e(QE,"ke"),Xe.log=function(){console.log("%s - %s",KT(),Xe.format.apply(Xe,arguments))},Xe.inherits=kF,Xe._extend=function(a,n){if(!n||!fa(n))return a;for(var r=Object.keys(n),u=r.length;u--;)a[r[u]]=n[r[u]];return a},Bi=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0,e(JT,"De"),Xe.promisify=function(a){if(typeof a!="function")throw new TypeError('The "original" argument must be of type Function');if(Bi&&a[Bi]){var n;if(typeof(n=a[Bi])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(n,Bi,{value:n,enumerable:!1,writable:!1,configurable:!0}),n}function n(){for(var r,u,p=new Promise(function(m,y){r=m,u=y}),c=[],d=0;d<arguments.length;d++)c.push(arguments[d]);c.push(function(m,y){m?u(m):r(y)});try{a.apply(this||cs,c)}catch(m){u(m)}return p}return l(n,"t"),e(n,"t4"),Object.setPrototypeOf(n,Object.getPrototypeOf(a)),Bi&&Object.defineProperty(n,Bi,{value:n,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(n,Wy(a))},Xe.promisify.custom=Bi,Xe.callbackify=function(a){if(typeof a!="function")throw new TypeError('The "original" argument must be of type Function');function n(){for(var r=[],u=0;u<arguments.length;u++)r.push(arguments[u]);var p=r.pop();if(typeof p!="function")throw new TypeError("The last argument must be of type Function");var c=this||cs,d=e(function(){return p.apply(c,arguments)},"o4");a.apply(this||cs,r).then(function(m){fn.nextTick(d.bind(null,null,m))},function(m){fn.nextTick(JT.bind(null,m,d))})}return l(n,"t"),e(n,"t4"),Object.setPrototypeOf(n,Object.getPrototypeOf(a)),Object.defineProperties(n,Wy(a)),n},Xe._extend,Xe.callbackify,Xe.debuglog,Xe.deprecate,Xe.format,Xe.inherits,Xe.inspect,Xe.isArray,Xe.isBoolean,Xe.isBuffer,Xe.isDate,Xe.isError,Xe.isFunction,Xe.isNull,Xe.isNullOrUndefined,Xe.isNumber,Xe.isObject,Xe.isPrimitive,Xe.isRegExp,Xe.isString,Xe.isSymbol,Xe.isUndefined,Xe.log,Xe.promisify,Xe._extend,Xe.callbackify,Xe.debuglog,Xe.deprecate,Xe.format,Xe.inherits,Xe.inspect,Xe.isArray,Xe.isBoolean,Xe.isBuffer,Xe.isDate,Xe.isError,Xe.isFunction,Xe.isNull,Xe.isNullOrUndefined,Xe.isNumber,Xe.isObject,Xe.isPrimitive,Xe.isRegExp,Xe.isString,Xe.isSymbol,Xe.isUndefined,Xe.log,k3=Xe.promisify,Xe.types,Xe._extend,Xe.callbackify,Xe.debuglog,Xe.deprecate,Xe.format,Xe.inherits,Xe.inspect,Xe.isArray,Xe.isBoolean,Xe.isBuffer,Xe.isDate,Xe.isError,Xe.isFunction,Xe.isNull,Xe.isNullOrUndefined,Xe.isNumber,Xe.isObject,Xe.isPrimitive,Xe.isRegExp,Xe.isString,Xe.isSymbol,Xe.isUndefined,Xe.log,O3=Xe.promisify,Xe.types,Xe.TextEncoder=globalThis.TextEncoder,Xe.TextDecoder=globalThis.TextDecoder,e(sd,"unimplemented"),Dn=[],_a=!1,tf=-1,e(o8,"cleanUpNextTick"),e(XE,"drainQueue"),e(YT,"nextTick"),e(gv,"Item"),gv.prototype.run=function(){this.fun.apply(null,this.array)},IF="browser",xF="x64",jF="browser",CF={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},PF=["/usr/bin/node"],LF=[],NF="v16.8.0",DF={},UF=e(function(a,n){console.warn((n?n+": ":"")+a)},"emitWarning"),MF=e(function(a){sd("binding")},"binding"),$F=e(function(a){return 0},"umask"),WF=e(function(){return"/"},"cwd"),zF=e(function(a){},"chdir"),HF={name:"node",sourceUrl:"",headersUrl:"",libUrl:""},e(_r,"noop"),qF=_r,GF=[],e(ZT,"_linkedBinding"),VF={},KF=!1,JF={},e(QT,"dlopen"),e(XT,"_getActiveRequests"),e(eF,"_getActiveHandles"),YF=_r,ZF=_r,fu=e(function(){return{}},"cpuUsage"),QF=fu,XF=fu,eB=_r,tB=_r,rB=_r,nB={},e(tF,"assert"),iB={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},oB=_r,aB=_r,e(rF,"hasUncaughtExceptionCaptureCallback"),sB=_r,lB=_r,fB=_r,uB=_r,cB=_r,hB=void 0,dB=void 0,pB=void 0,gB=_r,yB=2,mB=1,wB="/bin/usr/node",bB=9229,vB="node",_B=[],EB=_r,pi={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0},pi.now===void 0&&(Hy=Date.now(),pi.timing&&pi.timing.navigationStart&&(Hy=pi.timing.navigationStart),pi.now=()=>Date.now()-Hy),e(nF,"uptime"),Zc=1e9,e(au,"hrtime"),au.bigint=function(a){var n=au(a);return typeof BigInt>"u"?n[0]*Zc+n[1]:BigInt(n[0]*Zc)+BigInt(n[1])},SB=10,AB={},RB=0,e(ei,"on"),kB=ei,OB=ei,TB=ei,FB=ei,BB=ei,IB=_r,xB=ei,jB=ei,e(iF,"listeners"),Ei={version:NF,versions:DF,arch:xF,platform:jF,release:HF,_rawDebug:qF,moduleLoadList:GF,binding:MF,_linkedBinding:ZT,_events:AB,_eventsCount:RB,_maxListeners:SB,on:ei,addListener:kB,once:OB,off:TB,removeListener:FB,removeAllListeners:BB,emit:IB,prependListener:xB,prependOnceListener:jB,listeners:iF,domain:VF,_exiting:KF,config:JF,dlopen:QT,uptime:nF,_getActiveRequests:XT,_getActiveHandles:eF,reallyExit:YF,_kill:ZF,cpuUsage:fu,resourceUsage:QF,memoryUsage:XF,kill:eB,exit:tB,openStdin:rB,allowedNodeEnvironmentFlags:nB,assert:tF,features:iB,_fatalExceptions:oB,setUncaughtExceptionCaptureCallback:aB,hasUncaughtExceptionCaptureCallback:rF,emitWarning:UF,nextTick:YT,_tickCallback:sB,_debugProcess:lB,_debugEnd:fB,_startProfilerIdleNotifier:uB,_stopProfilerIdleNotifier:cB,stdout:hB,stdin:pB,stderr:dB,abort:gB,umask:$F,chdir:zF,cwd:WF,env:CF,title:IF,argv:PF,execArgv:LF,pid:yB,ppid:mB,execPath:wB,debugPort:bB,hrtime:au,argv0:vB,_preload_modules:_B,setSourceMapsEnabled:EB},Qc={},_v=!1,Xc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,e(a8,"dew3"),Ts={},Ev=!1,e(s8,"dew$12"),eh={},Sv=!1,e(oF,"dew4"),rf=oF(),rf.StringDecoder,T3=rf.StringDecoder,th={},Av=!1,ra=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,e(aF,"dew5"),qt=aF(),qt.platform="browser",qt.addListener,qt.argv,qt.binding,qt.browser,qt.chdir,qt.cwd,qt.emit,qt.env,qt.listeners,qt.nextTick,qt.off,qt.on,qt.once,qt.prependListener,qt.prependOnceListener,qt.removeAllListeners,qt.removeListener,qt.title,qt.umask,qt.version,qt.versions,rh={},Rv=!1,e(sF,"dew$13"),kv=sF(),Jo=2147483647,CB=/^xn--/,PB=/[^\0-\x7E]/,R8=/[\x2E\u3002\uFF0E\uFF61]/g,k8={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},un=Math.floor,uu=String.fromCharCode,e(Fi,"i$12"),e(xy,"f$12"),e(jy,"l$12"),qy=e(function(a,n){return a+22+75*(a<26)-((n!=0)<<5)},"u$12"),Gy=e(function(a,n,r){let u=0;for(a=r?un(a/700):a>>1,a+=un(a/n);a>455;u+=36)a=un(a/35);return un(u+36*a/(a+38))},"a$12"),Vy=e(function(a){let n=[],r=a.length,u=0,p=128,c=72,d=a.lastIndexOf("-");d<0&&(d=0);for(let y=0;y<d;++y)a.charCodeAt(y)>=128&&Fi("not-basic"),n.push(a.charCodeAt(y));for(let y=d>0?d+1:0;y<r;){let w=u;for(let S=1,T=36;;T+=36){y>=r&&Fi("invalid-input");let k=(m=a.charCodeAt(y++))-48<10?m-22:m-65<26?m-65:m-97<26?m-97:36;(k>=36||k>un((Jo-u)/S))&&Fi("overflow"),u+=k*S;let E=T<=c?1:T>=c+26?26:T-c;if(k<E)break;let j=36-E;S>un(Jo/j)&&Fi("overflow"),S*=j}let _=n.length+1;c=Gy(u-w,_,w==0),un(u/_)>Jo-p&&Fi("overflow"),p+=un(u/_),u%=_,n.splice(u++,0,p)}var m;return String.fromCodePoint(...n)},"d2"),Ky=e(function(a){let n=[],r=(a=jy(a)).length,u=128,p=0,c=72;for(let y of a)y<128&&n.push(uu(y));let d=n.length,m=d;for(d&&n.push("-");m<r;){let y=Jo;for(let _ of a)_>=u&&_<y&&(y=_);let w=m+1;y-u>un((Jo-p)/w)&&Fi("overflow"),p+=(y-u)*w,u=y;for(let _ of a)if(_<u&&++p>Jo&&Fi("overflow"),_==u){let S=p;for(let T=36;;T+=36){let k=T<=c?1:T>=c+26?26:T-c;if(S<k)break;let E=S-k,j=36-k;n.push(uu(qy(k+E%j,0))),S=un(E/j)}n.push(uu(qy(S,0))),c=Gy(p,w,m==d),p=0,++m}++p,++u}return n.join("")},"h$12"),LB={version:"2.1.0",ucs2:{decode:jy,encode:e(a=>String.fromCodePoint(...a),"encode")},decode:Vy,encode:Ky,toASCII:e(function(a){return xy(a,function(n){return PB.test(n)?"xn--"+Ky(n):n})},"toASCII"),toUnicode:e(function(a){return xy(a,function(n){return CB.test(n)?Vy(n.slice(4).toLowerCase()):n})},"toUnicode")},e(lF,"e$12"),NB=e(function(a,n,r,u){n=n||"&",r=r||"=";var p={};if(typeof a!="string"||a.length===0)return p;var c=/\+/g;a=a.split(n);var d=1e3;u&&typeof u.maxKeys=="number"&&(d=u.maxKeys);var m=a.length;d>0&&m>d&&(m=d);for(var y=0;y<m;++y){var w,_,S,T,k=a[y].replace(c,"%20"),E=k.indexOf(r);E>=0?(w=k.substr(0,E),_=k.substr(E+1)):(w=k,_=""),S=decodeURIComponent(w),T=decodeURIComponent(_),lF(p,S)?Array.isArray(p[S])?p[S].push(T):p[S]=[p[S],T]:p[S]=T}return p},"n$12"),hs=e(function(a){switch(typeof a){case"string":return a;case"boolean":return a?"true":"false";case"number":return isFinite(a)?a:"";default:return""}},"r$12"),DB=e(function(a,n,r,u){return n=n||"&",r=r||"=",a===null&&(a=void 0),typeof a=="object"?Object.keys(a).map(function(p){var c=encodeURIComponent(hs(p))+r;return Array.isArray(a[p])?a[p].map(function(d){return c+encodeURIComponent(hs(d))}).join(n):c+encodeURIComponent(hs(a[p]))}).join(n):u?encodeURIComponent(hs(u))+r+encodeURIComponent(hs(a)):""},"t3"),An={},An.decode=An.parse=NB,An.encode=An.stringify=DB,An.decode,An.encode,An.parse,An.stringify,Lt={},UB=LB,dn={isString:e(function(a){return typeof a=="string"},"isString"),isObject:e(function(a){return typeof a=="object"&&a!==null},"isObject"),isNull:e(function(a){return a===null},"isNull"),isNullOrUndefined:e(function(a){return a==null},"isNullOrUndefined")},e(Jr,"r3"),Lt.parse=us,Lt.resolve=function(a,n){return us(a,!1,!0).resolve(n)},Lt.resolveObject=function(a,n){return a?us(a,!1,!0).resolveObject(n):n},Lt.format=function(a){return dn.isString(a)&&(a=us(a)),a instanceof Jr?a.format():Jr.prototype.format.call(a)},Lt.Url=Jr,MB=/^([a-z0-9.+-]+:)/i,$B=/:[0-9]*$/,WB=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,zB=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",`
136
- `," "]),cu=["'"].concat(zB),Jy=["%","/","?",";","#"].concat(cu),Yy=["/","?","#"],Zy=/^[+a-z0-9A-Z_-]{0,63}$/,HB=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,qB={javascript:!0,"javascript:":!0},hu={javascript:!0,"javascript:":!0},Yo={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},du=An,e(us,"O2"),Jr.prototype.parse=function(a,n,r){if(!dn.isString(a))throw new TypeError("Parameter 'url' must be a string, not "+typeof a);var u=a.indexOf("?"),p=u!==-1&&u<a.indexOf("#")?"?":"#",c=a.split(p);c[0]=c[0].replace(/\\/g,"/");var d=a=c.join(p);if(d=d.trim(),!r&&a.split("#").length===1){var m=WB.exec(d);if(m)return this.path=d,this.href=d,this.pathname=m[1],m[2]?(this.search=m[2],this.query=n?du.parse(this.search.substr(1)):this.search.substr(1)):n&&(this.search="",this.query={}),this}var y=MB.exec(d);if(y){var w=(y=y[0]).toLowerCase();this.protocol=w,d=d.substr(y.length)}if(r||y||d.match(/^\/\/[^@\/]+@[^@\/]+/)){var _=d.substr(0,2)==="//";!_||y&&hu[y]||(d=d.substr(2),this.slashes=!0)}if(!hu[y]&&(_||y&&!Yo[y])){for(var S,T,k=-1,E=0;E<Yy.length;E++)(j=d.indexOf(Yy[E]))!==-1&&(k===-1||j<k)&&(k=j);for((T=k===-1?d.lastIndexOf("@"):d.lastIndexOf("@",k))!==-1&&(S=d.slice(0,T),d=d.slice(T+1),this.auth=decodeURIComponent(S)),k=-1,E=0;E<Jy.length;E++){var j;(j=d.indexOf(Jy[E]))!==-1&&(k===-1||j<k)&&(k=j)}k===-1&&(k=d.length),this.host=d.slice(0,k),d=d.slice(k),this.parseHost(),this.hostname=this.hostname||"";var A=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!A)for(var I=this.hostname.split(/\./),U=(E=0,I.length);E<U;E++){var M=I[E];if(M&&!M.match(Zy)){for(var ee="",V=0,q=M.length;V<q;V++)M.charCodeAt(V)>127?ee+="x":ee+=M[V];if(!ee.match(Zy)){var G=I.slice(0,E),re=I.slice(E+1),ae=M.match(HB);ae&&(G.push(ae[1]),re.unshift(ae[2])),re.length&&(d="/"+re.join(".")+d),this.hostname=G.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),A||(this.hostname=UB.toASCII(this.hostname));var de=this.port?":"+this.port:"",we=this.hostname||"";this.host=we+de,this.href+=this.host,A&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),d[0]!=="/"&&(d="/"+d))}if(!qB[w])for(E=0,U=cu.length;E<U;E++){var Ie=cu[E];if(d.indexOf(Ie)!==-1){var je=encodeURIComponent(Ie);je===Ie&&(je=escape(Ie)),d=d.split(Ie).join(je)}}var se=d.indexOf("#");se!==-1&&(this.hash=d.substr(se),d=d.slice(0,se));var Te=d.indexOf("?");if(Te!==-1?(this.search=d.substr(Te),this.query=d.substr(Te+1),n&&(this.query=du.parse(this.query)),d=d.slice(0,Te)):n&&(this.search="",this.query={}),d&&(this.pathname=d),Yo[w]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){de=this.pathname||"";var J=this.search||"";this.path=de+J}return this.href=this.format(),this},Jr.prototype.format=function(){var a=this.auth||"";a&&(a=(a=encodeURIComponent(a)).replace(/%3A/i,":"),a+="@");var n=this.protocol||"",r=this.pathname||"",u=this.hash||"",p=!1,c="";this.host?p=a+this.host:this.hostname&&(p=a+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(p+=":"+this.port)),this.query&&dn.isObject(this.query)&&Object.keys(this.query).length&&(c=du.stringify(this.query));var d=this.search||c&&"?"+c||"";return n&&n.substr(-1)!==":"&&(n+=":"),this.slashes||(!n||Yo[n])&&p!==!1?(p="//"+(p||""),r&&r.charAt(0)!=="/"&&(r="/"+r)):p||(p=""),u&&u.charAt(0)!=="#"&&(u="#"+u),d&&d.charAt(0)!=="?"&&(d="?"+d),n+p+(r=r.replace(/[?#]/g,function(m){return encodeURIComponent(m)}))+(d=d.replace("#","%23"))+u},Jr.prototype.resolve=function(a){return this.resolveObject(us(a,!1,!0)).format()},Jr.prototype.resolveObject=function(a){if(dn.isString(a)){var n=new Jr;n.parse(a,!1,!0),a=n}for(var r=new Jr,u=Object.keys(this),p=0;p<u.length;p++){var c=u[p];r[c]=this[c]}if(r.hash=a.hash,a.href==="")return r.href=r.format(),r;if(a.slashes&&!a.protocol){for(var d=Object.keys(a),m=0;m<d.length;m++){var y=d[m];y!=="protocol"&&(r[y]=a[y])}return Yo[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(a.protocol&&a.protocol!==r.protocol){if(!Yo[a.protocol]){for(var w=Object.keys(a),_=0;_<w.length;_++){var S=w[_];r[S]=a[S]}return r.href=r.format(),r}if(r.protocol=a.protocol,a.host||hu[a.protocol])r.pathname=a.pathname;else{for(var T=(a.pathname||"").split("/");T.length&&!(a.host=T.shift()););a.host||(a.host=""),a.hostname||(a.hostname=""),T[0]!==""&&T.unshift(""),T.length<2&&T.unshift(""),r.pathname=T.join("/")}if(r.search=a.search,r.query=a.query,r.host=a.host||"",r.auth=a.auth,r.hostname=a.hostname||a.host,r.port=a.port,r.pathname||r.search){var k=r.pathname||"",E=r.search||"";r.path=k+E}return r.slashes=r.slashes||a.slashes,r.href=r.format(),r}var j=r.pathname&&r.pathname.charAt(0)==="/",A=a.host||a.pathname&&a.pathname.charAt(0)==="/",I=A||j||r.host&&a.pathname,U=I,M=r.pathname&&r.pathname.split("/")||[],ee=(T=a.pathname&&a.pathname.split("/")||[],r.protocol&&!Yo[r.protocol]);if(ee&&(r.hostname="",r.port=null,r.host&&(M[0]===""?M[0]=r.host:M.unshift(r.host)),r.host="",a.protocol&&(a.hostname=null,a.port=null,a.host&&(T[0]===""?T[0]=a.host:T.unshift(a.host)),a.host=null),I=I&&(T[0]===""||M[0]==="")),A)r.host=a.host||a.host===""?a.host:r.host,r.hostname=a.hostname||a.hostname===""?a.hostname:r.hostname,r.search=a.search,r.query=a.query,M=T;else if(T.length)M||(M=[]),M.pop(),M=M.concat(T),r.search=a.search,r.query=a.query;else if(!dn.isNullOrUndefined(a.search))return ee&&(r.hostname=r.host=M.shift(),(ae=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=ae.shift(),r.host=r.hostname=ae.shift())),r.search=a.search,r.query=a.query,dn.isNull(r.pathname)&&dn.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!M.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var V=M.slice(-1)[0],q=(r.host||a.host||M.length>1)&&(V==="."||V==="..")||V==="",G=0,re=M.length;re>=0;re--)(V=M[re])==="."?M.splice(re,1):V===".."?(M.splice(re,1),G++):G&&(M.splice(re,1),G--);if(!I&&!U)for(;G--;G)M.unshift("..");!I||M[0]===""||M[0]&&M[0].charAt(0)==="/"||M.unshift(""),q&&M.join("/").substr(-1)!=="/"&&M.push("");var ae,de=M[0]===""||M[0]&&M[0].charAt(0)==="/";return ee&&(r.hostname=r.host=de?"":M.length?M.shift():"",(ae=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=ae.shift(),r.host=r.hostname=ae.shift())),(I=I||r.host&&M.length)&&!de&&M.unshift(""),M.length?r.pathname=M.join("/"):(r.pathname=null,r.path=null),dn.isNull(r.pathname)&&dn.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=a.auth||r.auth,r.slashes=r.slashes||a.slashes,r.href=r.format(),r},Jr.prototype.parseHost=function(){var a=this.host,n=$B.exec(a);n&&((n=n[0])!==":"&&(this.port=n.substr(1)),a=a.substr(0,a.length-n.length)),a&&(this.hostname=a)},Lt.Url,Lt.format,Lt.resolve,Lt.resolveObject,nh={},Ov=!1,e(fF,"dew6"),Tv=fF(),GB=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0,Lt.URL=typeof URL<"u"?URL:null,Lt.pathToFileURL=cF,Lt.fileURLToPath=uF,Lt.Url,Lt.format,Lt.resolve,Lt.resolveObject,Lt.URL,O8=92,T8=47,F8=97,B8=122,ld=GB==="win32",I8=/\//g,x8=/%/g,j8=/\\/g,C8=/\n/g,P8=/\r/g,L8=/\t/g,e(uF,"fileURLToPath$1"),e(l8,"getPathFromURLWin$1"),e(f8,"getPathFromURLPosix$1"),e(cF,"pathToFileURL$1"),VB=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0,Lt.URL=typeof URL<"u"?URL:null,Lt.pathToFileURL=dF,Lt.fileURLToPath=hF,Lt.Url,Lt.format,Lt.resolve,Lt.resolveObject,Lt.parse,Lt.URL,N8=92,D8=47,U8=97,M8=122,fd=VB==="win32",$8=/\//g,W8=/%/g,z8=/\\/g,H8=/\n/g,q8=/\r/g,G8=/\t/g,e(hF,"fileURLToPath"),e(u8,"getPathFromURLWin"),e(c8,"getPathFromURLPosix"),e(dF,"pathToFileURL"),Mr={},Fv=!1,zi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,e(e2,"dew$k"),Bv={},Iv=!1,e(t2,"dew$j"),ih={},xv=!1,e(h8,"dew$i"),oh={},jv=!1,e(r2,"dew$h"),ah={},Cv=!1,e(Pa,"dew$g"),sh={},Pv=!1,e(n2,"dew$f"),lh={},Lv=!1,Nv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,e(i2,"dew$e"),fh={},Dv=!1,e(Oa,"dew$d"),uh={},Uv=!1,e(Nd,"dew$c"),ch={},Mv=!1,e(d8,"dew$b"),$v={},Wv=!1,e(p8,"dew$a"),hh={},zv=!1,Hv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,e(o2,"dew$9"),dh={},qv=!1,e(a2,"dew$8"),ph={},Gv=!1,e(g8,"dew$7"),gh={},Vv=!1,e(y8,"dew$6"),$r={},Kv=!1,e(s2,"dew$5"),Nl={},Jv=!1,Dl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,e(l2,"dew$4"),yh={},Yv=!1,ur=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,e(m8,"dew$3"),mh={},Zv=!1,e(w8,"dew$22"),Qv={},Xv=!1,e(b8,"dew$14"),wh={},e_=!1,V8=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,e(pF,"dew7"),ti=pF(),K8=ti.Agent,J8=ti.ClientRequest,Y8=ti.IncomingMessage,Z8=ti.METHODS,Q8=ti.STATUS_CODES,X8=ti.get,e4=ti.globalAgent,t4=ti.request}),r4={};an(r4,{Agent:l(()=>K8,"Agent"),ClientRequest:l(()=>J8,"ClientRequest"),IncomingMessage:l(()=>Y8,"IncomingMessage"),METHODS:l(()=>Z8,"METHODS"),STATUS_CODES:l(()=>Q8,"STATUS_CODES"),get:l(()=>X8,"get"),globalAgent:l(()=>e4,"globalAgent"),request:l(()=>t4,"request")});B3=Xt(()=>{F3()});l(xt,"st");l(Ul,"Ap");l(t_,"BD");l(Qy,"wL");l(n4,"yQ");l(Xy,"vL");l(em,"bL");l(tm,"_L");l(r_,"CD");l(bh,"__");l(vh,"E_");l(n_,"DD");l(i4,"mQ");l(i_,"ND");l(rm,"EL");l(Rn,"Ei");l(Ii,"ka");l(tl,"wu");l(nm,"AL");l(o_,"WD");l(a_,"qD");l(s_,"zD");l(l_,"VD");l(f_,"GD");l(u_,"YD");l(c_,"KD");l(h_,"XD");l(d_,"JD");l(p_,"ZD");l(g_,"QD");l(bl,"pp");l(vl,"yp");l(_l,"mp");l(pu,"Hb");l(nf,"Op");l(im,"RL");l(of,"Ip");l(om,"TL");l(af,"Pp");l(am,"FL");l(sm,"xL");l(lm,"OL");l(fm,"IL");l(um,"PL");l(cm,"kL");l(gi,"vo");l(o4,"NQ");l(a4,"$Q");l(gf,"kp");l(_h,"Wb");l(Eh,"qb");l(y_,"tN");l(ud,"B_");l(sf,"Dp");l(m_,"rN");l(lf,"Bp");l(Ki,"Pa");l(js,"mu");l(ha,"wl");l(ff,"Cp");l(Cs,"gu");l(uf,"Tp");l(Dd,"C_");l(Sh,"zb");l(KB,"UQ");l(f2,"nN");l(JB,"jQ");l(YB,"HQ");l(hm,"NL");l(ZB,"WQ");l(Bn,"Ti");l(tt,"Te");l(w_,"oN");l(b_,"aN");l(Ah,"R_");l(Rh,"Gb");l(s4,"ML");l(Ud,"L_");l(v_,"sN");l(QB,"zQ");l(xi,"Ra");l(dm,"UL");l(__,"jL");l(XB,"VQ");l(eI,"GQ");l(E_,"lN");l(tI,"YQ");l(rI,"KQ");l(nI,"XQ");l(l4,"JQ");l(S_,"fN");l(f4,"ZQ");l(u4,"QQ");l(c4,"e5");l(h4,"t5");l(fr,"Ht");l(Ir,"Rr");l(u2,"uN");l(pm,"HL");l(gm,"WL");l(cd,"T_");l(c2,"cN");l(Of,"Np");l(In,"Fi");l(Md,"D_");l(ym,"qL");l(ji,"Ta");l(ds,"cu");l(gu,"Yb");l(d4,"o5");l(p4,"a5");l(g4,"s5");l(y4,"l5");l(m4,"f5");l(w4,"u5");l(b4,"c5");l(v4,"h5");l(_4,"d5");l(iI,"p5");l(Zi,"Ba");l(h2,"hN");l(E4,"y5");l(d2,"dN");l(La,"vl");l(p2,"pN");l(S4,"m5");l(g2,"yN");l(Ta,"gl");l($d,"N_");l(A4,"w5");l(R4,"v5");l(y2,"mN");l(m2,"gN");l(k4,"_5");l(O4,"E5");l(w2,"wN");l(oI,"S5");l(Ci,"Oa");l(mm,"pD");l(wm,"vN");l(aI,"O5");l(Zr,"rn");l(ps,"pu");l(sI,"M5");l(lI,"J5");l(T4,"Z5");l(F4,"Q5");l(fI,"eee");l(uI,"hee");l(B4,"dee");l(I4,"pee");l(cI,"yee");l(b2,"_N");l(v2,"EN");l(x4,"mee");l(j4,"gee");l(C4,"wee");l(hI,"bee");l(dI,"_ee");x3=Xt(()=>{if(Zo=typeof Reflect=="object"?Reflect:null,bm=Zo&&typeof Zo.apply=="function"?Zo.apply:function(a,n,r){return Function.prototype.apply.call(a,n,r)},gI=Zo&&typeof Zo.ownKeys=="function"?Zo.ownKeys:Object.getOwnPropertySymbols?function(a){return Object.getOwnPropertyNames(a).concat(Object.getOwnPropertySymbols(a))}:function(a){return Object.getOwnPropertyNames(a)},vm=Number.isNaN||function(a){return a!=a},e(xt,"o"),pI=xt,xt.EventEmitter=xt,xt.prototype._events=void 0,xt.prototype._eventsCount=0,xt.prototype._maxListeners=void 0,_m=10,e(Ul,"u"),e(t_,"f"),e(Qy,"v"),e(n4,"a"),e(Xy,"l"),e(em,"h"),e(tm,"p"),e(r_,"c"),Object.defineProperty(xt,"defaultMaxListeners",{enumerable:!0,get:e(function(){return _m},"get"),set:e(function(a){if(typeof a!="number"||a<0||vm(a))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+a+".");_m=a},"set")}),xt.init=function(){this._events!==void 0&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},xt.prototype.setMaxListeners=function(a){if(typeof a!="number"||a<0||vm(a))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+a+".");return this._maxListeners=a,this},xt.prototype.getMaxListeners=function(){return t_(this)},xt.prototype.emit=function(a){for(var n=[],r=1;r<arguments.length;r++)n.push(arguments[r]);var u=a==="error",p=this._events;if(p!==void 0)u=u&&p.error===void 0;else if(!u)return!1;if(u){var c;if(n.length>0&&(c=n[0]),c instanceof Error)throw c;var d=new Error("Unhandled error."+(c?" ("+c.message+")":""));throw d.context=c,d}var m=p[a];if(m===void 0)return!1;if(typeof m=="function")bm(m,this,n);else{var y=m.length,w=r_(m,y);for(r=0;r<y;++r)bm(w[r],this,n)}return!0},xt.prototype.addListener=function(a,n){return Qy(this,a,n,!1)},xt.prototype.on=xt.prototype.addListener,xt.prototype.prependListener=function(a,n){return Qy(this,a,n,!0)},xt.prototype.once=function(a,n){return Ul(n),this.on(a,Xy(this,a,n)),this},xt.prototype.prependOnceListener=function(a,n){return Ul(n),this.prependListener(a,Xy(this,a,n)),this},xt.prototype.removeListener=function(a,n){var r,u,p,c,d;if(Ul(n),(u=this._events)===void 0)return this;if((r=u[a])===void 0)return this;if(r===n||r.listener===n)--this._eventsCount==0?this._events=Object.create(null):(delete u[a],u.removeListener&&this.emit("removeListener",a,r.listener||n));else if(typeof r!="function"){for(p=-1,c=r.length-1;c>=0;c--)if(r[c]===n||r[c].listener===n){d=r[c].listener,p=c;break}if(p<0)return this;p===0?r.shift():function(m,y){for(;y+1<m.length;y++)m[y]=m[y+1];m.pop()}(r,p),r.length===1&&(u[a]=r[0]),u.removeListener!==void 0&&this.emit("removeListener",a,d||n)}return this},xt.prototype.off=xt.prototype.removeListener,xt.prototype.removeAllListeners=function(a){var n,r,u;if((r=this._events)===void 0)return this;if(r.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):r[a]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete r[a]),this;if(arguments.length===0){var p,c=Object.keys(r);for(u=0;u<c.length;++u)(p=c[u])!=="removeListener"&&this.removeAllListeners(p);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(n=r[a])=="function")this.removeListener(a,n);else if(n!==void 0)for(u=n.length-1;u>=0;u--)this.removeListener(a,n[u]);return this},xt.prototype.listeners=function(a){return em(this,a,!0)},xt.prototype.rawListeners=function(a){return em(this,a,!1)},xt.listenerCount=function(a,n){return typeof a.listenerCount=="function"?a.listenerCount(n):tm.call(a,n)},xt.prototype.listenerCount=tm,xt.prototype.eventNames=function(){return this._eventsCount>0?gI(this._events):[]},yn=pI,yn.EventEmitter,yn.defaultMaxListeners,yn.init,yn.listenerCount,yn.EventEmitter,yn.defaultMaxListeners,yn.init,yn.listenerCount,Ea=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,nr=yI={},e(bh,"i$2"),e(vh,"u$2"),e(n_,"c$2"),function(){try{si=typeof setTimeout=="function"?setTimeout:bh}catch{si=bh}try{li=typeof clearTimeout=="function"?clearTimeout:vh}catch{li=vh}}(),Un=[],Sa=!1,cf=-1,e(i4,"h$1"),e(i_,"d$1"),e(rm,"m$1"),e(Rn,"p$1"),nr.nextTick=function(a){var n=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)n[r-1]=arguments[r];Un.push(new rm(a,n)),Un.length!==1||Sa||n_(i_)},rm.prototype.run=function(){(this||Ea).fun.apply(null,(this||Ea).array)},nr.title="browser",nr.browser=!0,nr.env={},nr.argv=[],nr.version="",nr.versions={},nr.on=Rn,nr.addListener=Rn,nr.once=Rn,nr.off=Rn,nr.removeListener=Rn,nr.removeAllListeners=Rn,nr.emit=Rn,nr.prependListener=Rn,nr.prependOnceListener=Rn,nr.listeners=function(a){return[]},nr.binding=function(a){throw new Error("process.binding is not supported")},nr.cwd=function(){return"/"},nr.chdir=function(a){throw new Error("process.chdir is not supported")},nr.umask=function(){return 0},Gt=yI,Gt.addListener,Gt.argv,Gt.binding,Gt.browser,Gt.chdir,Gt.cwd,Gt.emit,Gt.env,Gt.listeners,Gt.nextTick,Gt.off,Gt.on,Gt.once,Gt.prependListener,Gt.prependOnceListener,Gt.removeAllListeners,Gt.removeListener,Gt.title,Gt.umask,Gt.version,Gt.versions,mI=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",yu=Object.prototype.toString,El=e(function(a){return!(mI&&a&&typeof a=="object"&&Symbol.toStringTag in a)&&yu.call(a)==="[object Arguments]"},"o2"),Em=e(function(a){return!!El(a)||a!==null&&typeof a=="object"&&typeof a.length=="number"&&a.length>=0&&yu.call(a)!=="[object Array]"&&yu.call(a.callee)==="[object Function]"},"n2"),wI=function(){return El(arguments)}(),El.isLegacyArguments=Em,bI=wI?El:Em,vI=Object.prototype.toString,_I=Function.prototype.toString,EI=/^\s*(?:function)?\*/,Sm=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Am=Object.getPrototypeOf,Rm=function(){if(!Sm)return!1;try{return Function("return function*() {}")()}catch{}}(),SI=Rm?Am(Rm):{},AI=e(function(a){return typeof a=="function"&&(!!EI.test(_I.call(a))||(Sm?Am(a)===SI:vI.call(a)==="[object GeneratorFunction]"))},"i2"),RI=typeof Object.create=="function"?function(a,n){n&&(a.super_=n,a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}))}:function(a,n){if(n){a.super_=n;var r=e(function(){},"o5");r.prototype=n.prototype,a.prototype=new r,a.prototype.constructor=a}},km=e(function(a){return a&&typeof a=="object"&&typeof a.copy=="function"&&typeof a.fill=="function"&&typeof a.readUInt8=="function"},"i$1"),Rt={},P4=km,kI=bI,OI=AI,e(Ii,"c$1"),A_=typeof BigInt<"u",kh=typeof Symbol<"u",qr=kh&&Symbol.toStringTag!==void 0,Cr=typeof Uint8Array<"u",TI=typeof ArrayBuffer<"u",Cr&&qr)var o=Object.getPrototypeOf(Uint8Array.prototype),i=Ii(Object.getOwnPropertyDescriptor(o,Symbol.toStringTag).get);if(Jt=Ii(Object.prototype.toString),L4=Ii(Number.prototype.valueOf),N4=Ii(String.prototype.valueOf),D4=Ii(Boolean.prototype.valueOf),A_)var f=Ii(BigInt.prototype.valueOf);if(kh)var g=Ii(Symbol.prototype.valueOf);for(e(tl,"O"),e(nm,"S"),e(o_,"B"),e(a_,"k"),e(s_,"E"),e(l_,"D"),e(f_,"U"),e(u_,"P"),e(c_,"x"),e(h_,"I"),e(d_,"M"),e(p_,"z"),e(g_,"F"),e(bl,"T"),e(vl,"N"),e(_l,"W"),e(pu,"$"),e(nf,"C"),e(im,"V"),e(of,"G"),e(om,"R"),e(af,"J"),e(am,"_"),e(sm,"H"),e(lm,"Z"),e(fm,"q"),e(um,"K"),e(cm,"L"),Rt.isArgumentsObject=kI,Rt.isGeneratorFunction=OI,Rt.isPromise=function(a){return typeof Promise<"u"&&a instanceof Promise||a!==null&&typeof a=="object"&&typeof a.then=="function"&&typeof a.catch=="function"},Rt.isArrayBufferView=function(a){return TI&&ArrayBuffer.isView?ArrayBuffer.isView(a):nm(a)||om(a)},Rt.isTypedArray=nm,Rt.isUint8Array=o_,Rt.isUint8ClampedArray=a_,Rt.isUint16Array=s_,Rt.isUint32Array=l_,Rt.isInt8Array=f_,Rt.isInt16Array=u_,Rt.isInt32Array=c_,Rt.isFloat32Array=h_,Rt.isFloat64Array=d_,Rt.isBigInt64Array=p_,Rt.isBigUint64Array=g_,bl.working=typeof Map<"u"&&bl(new Map),Rt.isMap=function(a){return typeof Map<"u"&&(bl.working?bl(a):a instanceof Map)},vl.working=typeof Set<"u"&&vl(new Set),Rt.isSet=function(a){return typeof Set<"u"&&(vl.working?vl(a):a instanceof Set)},_l.working=typeof WeakMap<"u"&&_l(new WeakMap),Rt.isWeakMap=function(a){return typeof WeakMap<"u"&&(_l.working?_l(a):a instanceof WeakMap)},pu.working=typeof WeakSet<"u"&&pu(new WeakSet),Rt.isWeakSet=function(a){return pu(a)},nf.working=typeof ArrayBuffer<"u"&&nf(new ArrayBuffer),Rt.isArrayBuffer=im,of.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&of(new DataView(new ArrayBuffer(1),0,1)),Rt.isDataView=om,af.working=typeof SharedArrayBuffer<"u"&&af(new SharedArrayBuffer),Rt.isSharedArrayBuffer=am,Rt.isAsyncFunction=function(a){return Jt(a)==="[object AsyncFunction]"},Rt.isMapIterator=function(a){return Jt(a)==="[object Map Iterator]"},Rt.isSetIterator=function(a){return Jt(a)==="[object Set Iterator]"},Rt.isGeneratorObject=function(a){return Jt(a)==="[object Generator]"},Rt.isWebAssemblyCompiledModule=function(a){return Jt(a)==="[object WebAssembly.Module]"},Rt.isNumberObject=sm,Rt.isStringObject=lm,Rt.isBooleanObject=fm,Rt.isBigIntObject=um,Rt.isSymbolObject=cm,Rt.isBoxedPrimitive=function(a){return sm(a)||lm(a)||fm(a)||um(a)||cm(a)},Rt.isAnyArrayBuffer=function(a){return Cr&&(im(a)||am(a))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(a){Object.defineProperty(Rt,a,{enumerable:!1,value:e(function(){throw new Error(a+" is not supported in userland")},"value")})}),gs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,at={},cn=Gt,Om=Object.getOwnPropertyDescriptors||function(a){for(var n=Object.keys(a),r={},u=0;u<n.length;u++)r[n[u]]=Object.getOwnPropertyDescriptor(a,n[u]);return r},FI=/%[sdj%]/g,at.format=function(a){if(!lf(a)){for(var n=[],r=0;r<arguments.length;r++)n.push(gi(arguments[r]));return n.join(" ")}r=1;for(var u=arguments,p=u.length,c=String(a).replace(FI,function(m){if(m==="%%")return"%";if(r>=p)return m;switch(m){case"%s":return String(u[r++]);case"%d":return Number(u[r++]);case"%j":try{return JSON.stringify(u[r++])}catch{return"[Circular]"}default:return m}}),d=u[r];r<p;d=u[++r])sf(d)||!ha(d)?c+=" "+d:c+=" "+gi(d);return c},at.deprecate=function(a,n){if(cn!==void 0&&cn.noDeprecation===!0)return a;if(cn===void 0)return function(){return at.deprecate(a,n).apply(this||gs,arguments)};var r=!1;return function(){if(!r){if(cn.throwDeprecation)throw new Error(n);cn.traceDeprecation?console.trace(n):console.error(n),r=!0}return a.apply(this||gs,arguments)}},Sl={},Tm=/^$/,cn.env.NODE_DEBUG&&(mu=cn.env.NODE_DEBUG,mu=mu.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),Tm=new RegExp("^"+mu+"$","i")),e(gi,"oe"),e(o4,"ue"),e(a4,"fe"),e(gf,"ae"),e(_h,"ce"),e(Eh,"se"),e(y_,"pe"),e(ud,"ye"),e(sf,"le"),e(m_,"de"),e(lf,"ge"),e(Ki,"be"),e(js,"me"),e(ha,"he"),e(ff,"je"),e(Cs,"Ae"),e(uf,"we"),e(Dd,"ve"),e(Sh,"Oe"),at.debuglog=function(a){if(a=a.toUpperCase(),!Sl[a])if(Tm.test(a)){var n=cn.pid;Sl[a]=function(){var r=at.format.apply(at,arguments);console.error("%s %d: %s",a,n,r)}}else Sl[a]=function(){};return Sl[a]},at.inspect=gi,gi.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},gi.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},at.types=Rt,at.isArray=y_,at.isBoolean=ud,at.isNull=sf,at.isNullOrUndefined=function(a){return a==null},at.isNumber=m_,at.isString=lf,at.isSymbol=function(a){return typeof a=="symbol"},at.isUndefined=Ki,at.isRegExp=js,at.types.isRegExp=js,at.isObject=ha,at.isDate=ff,at.types.isDate=ff,at.isError=Cs,at.types.isNativeError=Cs,at.isFunction=uf,at.isPrimitive=function(a){return a===null||typeof a=="boolean"||typeof a=="number"||typeof a=="string"||typeof a=="symbol"||a===void 0},at.isBuffer=km,U4=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],e(KB,"Be"),e(f2,"ke"),at.log=function(){console.log("%s - %s",KB(),at.format.apply(at,arguments))},at.inherits=RI,at._extend=function(a,n){if(!n||!ha(n))return a;for(var r=Object.keys(n),u=r.length;u--;)a[r[u]]=n[r[u]];return a},Pi=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0,e(JB,"De"),at.promisify=function(a){if(typeof a!="function")throw new TypeError('The "original" argument must be of type Function');if(Pi&&a[Pi]){var n;if(typeof(n=a[Pi])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(n,Pi,{value:n,enumerable:!1,writable:!1,configurable:!0}),n}function n(){for(var r,u,p=new Promise(function(m,y){r=m,u=y}),c=[],d=0;d<arguments.length;d++)c.push(arguments[d]);c.push(function(m,y){m?u(m):r(y)});try{a.apply(this||gs,c)}catch(m){u(m)}return p}return l(n,"t"),e(n,"t5"),Object.setPrototypeOf(n,Object.getPrototypeOf(a)),Pi&&Object.defineProperty(n,Pi,{value:n,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(n,Om(a))},at.promisify.custom=Pi,at.callbackify=function(a){if(typeof a!="function")throw new TypeError('The "original" argument must be of type Function');function n(){for(var r=[],u=0;u<arguments.length;u++)r.push(arguments[u]);var p=r.pop();if(typeof p!="function")throw new TypeError("The last argument must be of type Function");var c=this||gs,d=e(function(){return p.apply(c,arguments)},"o5");a.apply(this||gs,r).then(function(m){cn.nextTick(d.bind(null,null,m))},function(m){cn.nextTick(JB.bind(null,m,d))})}return l(n,"t"),e(n,"t5"),Object.setPrototypeOf(n,Object.getPrototypeOf(a)),Object.defineProperties(n,Om(a)),n},at._extend,at.callbackify,at.debuglog,at.deprecate,at.format,at.inherits,at.inspect,at.isArray,at.isBoolean,at.isBuffer,at.isDate,at.isError,at.isFunction,at.isNull,at.isNullOrUndefined,at.isNumber,at.isObject,at.isPrimitive,at.isRegExp,at.isString,at.isSymbol,at.isUndefined,at.log,at.promisify,at._extend,at.callbackify,at.debuglog,at.deprecate,at.format,at.inherits,at.inspect,at.isArray,at.isBoolean,at.isBuffer,at.isDate,at.isError,at.isFunction,at.isNull,at.isNullOrUndefined,at.isNumber,at.isObject,at.isPrimitive,at.isRegExp,at.isString,at.isSymbol,at.isUndefined,at.log,I3=at.promisify,at.types,Oh={},R_=!1,na=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,e(YB,"dew"),Ot=YB(),Ot.platform="browser",Ot.addListener,Ot.argv,Ot.binding,Ot.browser,Ot.chdir,Ot.cwd,Ot.emit,Ot.env,Ot.listeners,Ot.nextTick,Ot.off,Ot.on,Ot.once,Ot.prependListener,Ot.prependOnceListener,Ot.removeAllListeners,Ot.removeListener,Ot.title,Ot.umask,Ot.version,Ot.versions,BI={byteLength:e(function(a){var n=hm(a),r=n[0],u=n[1];return 3*(r+u)/4-u},"byteLength"),toByteArray:e(function(a){var n,r,u=hm(a),p=u[0],c=u[1],d=new II(function(w,_,S){return 3*(_+S)/4-S}(0,p,c)),m=0,y=c>0?p-4:p;for(r=0;r<y;r+=4)n=Vr[a.charCodeAt(r)]<<18|Vr[a.charCodeAt(r+1)]<<12|Vr[a.charCodeAt(r+2)]<<6|Vr[a.charCodeAt(r+3)],d[m++]=n>>16&255,d[m++]=n>>8&255,d[m++]=255&n;return c===2&&(n=Vr[a.charCodeAt(r)]<<2|Vr[a.charCodeAt(r+1)]>>4,d[m++]=255&n),c===1&&(n=Vr[a.charCodeAt(r)]<<10|Vr[a.charCodeAt(r+1)]<<4|Vr[a.charCodeAt(r+2)]>>2,d[m++]=n>>8&255,d[m++]=255&n),d},"toByteArray"),fromByteArray:e(function(a){for(var n,r=a.length,u=r%3,p=[],c=0,d=r-u;c<d;c+=16383)p.push(ZB(a,c,c+16383>d?d:c+16383));return u===1?(n=a[r-1],p.push(wn[n>>2]+wn[n<<4&63]+"==")):u===2&&(n=(a[r-2]<<8)+a[r-1],p.push(wn[n>>10]+wn[n>>4&63]+wn[n<<2&63]+"=")),p.join("")},"fromByteArray")},wn=[],Vr=[],II=typeof Uint8Array<"u"?Uint8Array:Array,wu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Qo=0,xI=wu.length;Qo<xI;++Qo)wn[Qo]=wu[Qo],Vr[wu.charCodeAt(Qo)]=Qo;e(hm,"u$22"),e(ZB,"c$12"),Vr[45]=62,Vr[95]=63,jI={read:e(function(a,n,r,u,p){var c,d,m=8*p-u-1,y=(1<<m)-1,w=y>>1,_=-7,S=r?p-1:0,T=r?-1:1,k=a[n+S];for(S+=T,c=k&(1<<-_)-1,k>>=-_,_+=m;_>0;c=256*c+a[n+S],S+=T,_-=8);for(d=c&(1<<-_)-1,c>>=-_,_+=u;_>0;d=256*d+a[n+S],S+=T,_-=8);if(c===0)c=1-w;else{if(c===y)return d?NaN:1/0*(k?-1:1);d+=Math.pow(2,u),c-=w}return(k?-1:1)*d*Math.pow(2,c-u)},"read"),write:e(function(a,n,r,u,p,c){var d,m,y,w=8*c-p-1,_=(1<<w)-1,S=_>>1,T=p===23?Math.pow(2,-24)-Math.pow(2,-77):0,k=u?0:c-1,E=u?1:-1,j=n<0||n===0&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(m=isNaN(n)?1:0,d=_):(d=Math.floor(Math.log(n)/Math.LN2),n*(y=Math.pow(2,-d))<1&&(d--,y*=2),(n+=d+S>=1?T/y:T*Math.pow(2,1-S))*y>=2&&(d++,y/=2),d+S>=_?(m=0,d=_):d+S>=1?(m=(n*y-1)*Math.pow(2,p),d+=S):(m=n*Math.pow(2,S-1)*Math.pow(2,p),d=0));p>=8;a[r+k]=255&m,k+=E,m/=256,p-=8);for(d=d<<p|m,w+=p;w>0;a[r+k]=255&d,k+=E,d/=256,w-=8);a[r+k-E]|=128*j},"write")},kn={},hd=BI,ia=jI,Fm=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null,kn.Buffer=tt,kn.SlowBuffer=function(a){return+a!=a&&(a=0),tt.alloc(+a)},kn.INSPECT_MAX_BYTES=50,e(Bn,"f$2"),e(tt,"u$1$1"),e(w_,"s$12"),e(b_,"h$1$1"),e(Ah,"a$2"),e(Rh,"p3"),e(s4,"c$1$1"),e(Ud,"l$12"),e(v_,"y3"),e(QB,"g2"),e(xi,"w2"),e(dm,"d2"),e(__,"v3"),e(XB,"b2"),e(eI,"m2"),e(E_,"E2"),e(tI,"B2"),e(rI,"A2"),e(nI,"U2"),e(l4,"T2"),e(S_,"I2"),kn.kMaxLength=2147483647,tt.TYPED_ARRAY_SUPPORT=function(){try{var a=new Uint8Array(1),n={foo:e(function(){return 42},"foo")};return Object.setPrototypeOf(n,Uint8Array.prototype),Object.setPrototypeOf(a,n),a.foo()===42}catch{return!1}}(),tt.TYPED_ARRAY_SUPPORT||typeof console>"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(tt.prototype,"parent",{enumerable:!0,get:e(function(){if(tt.isBuffer(this))return this.buffer},"get")}),Object.defineProperty(tt.prototype,"offset",{enumerable:!0,get:e(function(){if(tt.isBuffer(this))return this.byteOffset},"get")}),tt.poolSize=8192,tt.from=function(a,n,r){return w_(a,n,r)},Object.setPrototypeOf(tt.prototype,Uint8Array.prototype),Object.setPrototypeOf(tt,Uint8Array),tt.alloc=function(a,n,r){return function(u,p,c){return b_(u),u<=0?Bn(u):p!==void 0?typeof c=="string"?Bn(u).fill(p,c):Bn(u).fill(p):Bn(u)}(a,n,r)},tt.allocUnsafe=function(a){return Ah(a)},tt.allocUnsafeSlow=function(a){return Ah(a)},tt.isBuffer=function(a){return a!=null&&a._isBuffer===!0&&a!==tt.prototype},tt.compare=function(a,n){if(In(a,Uint8Array)&&(a=tt.from(a,a.offset,a.byteLength)),In(n,Uint8Array)&&(n=tt.from(n,n.offset,n.byteLength)),!tt.isBuffer(a)||!tt.isBuffer(n))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(a===n)return 0;for(var r=a.length,u=n.length,p=0,c=Math.min(r,u);p<c;++p)if(a[p]!==n[p]){r=a[p],u=n[p];break}return r<u?-1:u<r?1:0},tt.isEncoding=function(a){switch(String(a).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}},tt.concat=function(a,n){if(!Array.isArray(a))throw new TypeError('"list" argument must be an Array of Buffers');if(a.length===0)return tt.alloc(0);var r;if(n===void 0)for(n=0,r=0;r<a.length;++r)n+=a[r].length;var u=tt.allocUnsafe(n),p=0;for(r=0;r<a.length;++r){var c=a[r];if(In(c,Uint8Array)&&(c=tt.from(c)),!tt.isBuffer(c))throw new TypeError('"list" argument must be an Array of Buffers');c.copy(u,p),p+=c.length}return u},tt.byteLength=v_,tt.prototype._isBuffer=!0,tt.prototype.swap16=function(){var a=this.length;if(a%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var n=0;n<a;n+=2)xi(this,n,n+1);return this},tt.prototype.swap32=function(){var a=this.length;if(a%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var n=0;n<a;n+=4)xi(this,n,n+3),xi(this,n+1,n+2);return this},tt.prototype.swap64=function(){var a=this.length;if(a%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var n=0;n<a;n+=8)xi(this,n,n+7),xi(this,n+1,n+6),xi(this,n+2,n+5),xi(this,n+3,n+4);return this},tt.prototype.toString=function(){var a=this.length;return a===0?"":arguments.length===0?S_(this,0,a):QB.apply(this,arguments)},tt.prototype.toLocaleString=tt.prototype.toString,tt.prototype.equals=function(a){if(!tt.isBuffer(a))throw new TypeError("Argument must be a Buffer");return this===a||tt.compare(this,a)===0},tt.prototype.inspect=function(){var a="",n=kn.INSPECT_MAX_BYTES;return a=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(a+=" ... "),"<Buffer "+a+">"},Fm&&(tt.prototype[Fm]=tt.prototype.inspect),tt.prototype.compare=function(a,n,r,u,p){if(In(a,Uint8Array)&&(a=tt.from(a,a.offset,a.byteLength)),!tt.isBuffer(a))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof a);if(n===void 0&&(n=0),r===void 0&&(r=a?a.length:0),u===void 0&&(u=0),p===void 0&&(p=this.length),n<0||r>a.length||u<0||p>this.length)throw new RangeError("out of range index");if(u>=p&&n>=r)return 0;if(u>=p)return-1;if(n>=r)return 1;if(this===a)return 0;for(var c=(p>>>=0)-(u>>>=0),d=(r>>>=0)-(n>>>=0),m=Math.min(c,d),y=this.slice(u,p),w=a.slice(n,r),_=0;_<m;++_)if(y[_]!==w[_]){c=y[_],d=w[_];break}return c<d?-1:d<c?1:0},tt.prototype.includes=function(a,n,r){return this.indexOf(a,n,r)!==-1},tt.prototype.indexOf=function(a,n,r){return dm(this,a,n,r,!0)},tt.prototype.lastIndexOf=function(a,n,r){return dm(this,a,n,r,!1)},tt.prototype.write=function(a,n,r,u){if(n===void 0)u="utf8",r=this.length,n=0;else if(r===void 0&&typeof n=="string")u=n,r=this.length,n=0;else{if(!isFinite(n))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");n>>>=0,isFinite(r)?(r>>>=0,u===void 0&&(u="utf8")):(u=r,r=void 0)}var p=this.length-n;if((r===void 0||r>p)&&(r=p),a.length>0&&(r<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");u||(u="utf8");for(var c=!1;;)switch(u){case"hex":return XB(this,a,n,r);case"utf8":case"utf-8":return eI(this,a,n,r);case"ascii":return E_(this,a,n,r);case"latin1":case"binary":return tI(this,a,n,r);case"base64":return rI(this,a,n,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return nI(this,a,n,r);default:if(c)throw new TypeError("Unknown encoding: "+u);u=(""+u).toLowerCase(),c=!0}},tt.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},e(f4,"S2"),e(u4,"R2"),e(c4,"O2"),e(h4,"L2"),e(fr,"x2"),e(Ir,"C2"),e(u2,"P2"),e(pm,"k2"),e(gm,"M2"),tt.prototype.slice=function(a,n){var r=this.length;(a=~~a)<0?(a+=r)<0&&(a=0):a>r&&(a=r),(n=n===void 0?r:~~n)<0?(n+=r)<0&&(n=0):n>r&&(n=r),n<a&&(n=a);var u=this.subarray(a,n);return Object.setPrototypeOf(u,tt.prototype),u},tt.prototype.readUIntLE=function(a,n,r){a>>>=0,n>>>=0,r||fr(a,n,this.length);for(var u=this[a],p=1,c=0;++c<n&&(p*=256);)u+=this[a+c]*p;return u},tt.prototype.readUIntBE=function(a,n,r){a>>>=0,n>>>=0,r||fr(a,n,this.length);for(var u=this[a+--n],p=1;n>0&&(p*=256);)u+=this[a+--n]*p;return u},tt.prototype.readUInt8=function(a,n){return a>>>=0,n||fr(a,1,this.length),this[a]},tt.prototype.readUInt16LE=function(a,n){return a>>>=0,n||fr(a,2,this.length),this[a]|this[a+1]<<8},tt.prototype.readUInt16BE=function(a,n){return a>>>=0,n||fr(a,2,this.length),this[a]<<8|this[a+1]},tt.prototype.readUInt32LE=function(a,n){return a>>>=0,n||fr(a,4,this.length),(this[a]|this[a+1]<<8|this[a+2]<<16)+16777216*this[a+3]},tt.prototype.readUInt32BE=function(a,n){return a>>>=0,n||fr(a,4,this.length),16777216*this[a]+(this[a+1]<<16|this[a+2]<<8|this[a+3])},tt.prototype.readIntLE=function(a,n,r){a>>>=0,n>>>=0,r||fr(a,n,this.length);for(var u=this[a],p=1,c=0;++c<n&&(p*=256);)u+=this[a+c]*p;return u>=(p*=128)&&(u-=Math.pow(2,8*n)),u},tt.prototype.readIntBE=function(a,n,r){a>>>=0,n>>>=0,r||fr(a,n,this.length);for(var u=n,p=1,c=this[a+--u];u>0&&(p*=256);)c+=this[a+--u]*p;return c>=(p*=128)&&(c-=Math.pow(2,8*n)),c},tt.prototype.readInt8=function(a,n){return a>>>=0,n||fr(a,1,this.length),128&this[a]?-1*(255-this[a]+1):this[a]},tt.prototype.readInt16LE=function(a,n){a>>>=0,n||fr(a,2,this.length);var r=this[a]|this[a+1]<<8;return 32768&r?4294901760|r:r},tt.prototype.readInt16BE=function(a,n){a>>>=0,n||fr(a,2,this.length);var r=this[a+1]|this[a]<<8;return 32768&r?4294901760|r:r},tt.prototype.readInt32LE=function(a,n){return a>>>=0,n||fr(a,4,this.length),this[a]|this[a+1]<<8|this[a+2]<<16|this[a+3]<<24},tt.prototype.readInt32BE=function(a,n){return a>>>=0,n||fr(a,4,this.length),this[a]<<24|this[a+1]<<16|this[a+2]<<8|this[a+3]},tt.prototype.readFloatLE=function(a,n){return a>>>=0,n||fr(a,4,this.length),ia.read(this,a,!0,23,4)},tt.prototype.readFloatBE=function(a,n){return a>>>=0,n||fr(a,4,this.length),ia.read(this,a,!1,23,4)},tt.prototype.readDoubleLE=function(a,n){return a>>>=0,n||fr(a,8,this.length),ia.read(this,a,!0,52,8)},tt.prototype.readDoubleBE=function(a,n){return a>>>=0,n||fr(a,8,this.length),ia.read(this,a,!1,52,8)},tt.prototype.writeUIntLE=function(a,n,r,u){a=+a,n>>>=0,r>>>=0,u||Ir(this,a,n,r,Math.pow(2,8*r)-1,0);var p=1,c=0;for(this[n]=255&a;++c<r&&(p*=256);)this[n+c]=a/p&255;return n+r},tt.prototype.writeUIntBE=function(a,n,r,u){a=+a,n>>>=0,r>>>=0,u||Ir(this,a,n,r,Math.pow(2,8*r)-1,0);var p=r-1,c=1;for(this[n+p]=255&a;--p>=0&&(c*=256);)this[n+p]=a/c&255;return n+r},tt.prototype.writeUInt8=function(a,n,r){return a=+a,n>>>=0,r||Ir(this,a,n,1,255,0),this[n]=255&a,n+1},tt.prototype.writeUInt16LE=function(a,n,r){return a=+a,n>>>=0,r||Ir(this,a,n,2,65535,0),this[n]=255&a,this[n+1]=a>>>8,n+2},tt.prototype.writeUInt16BE=function(a,n,r){return a=+a,n>>>=0,r||Ir(this,a,n,2,65535,0),this[n]=a>>>8,this[n+1]=255&a,n+2},tt.prototype.writeUInt32LE=function(a,n,r){return a=+a,n>>>=0,r||Ir(this,a,n,4,4294967295,0),this[n+3]=a>>>24,this[n+2]=a>>>16,this[n+1]=a>>>8,this[n]=255&a,n+4},tt.prototype.writeUInt32BE=function(a,n,r){return a=+a,n>>>=0,r||Ir(this,a,n,4,4294967295,0),this[n]=a>>>24,this[n+1]=a>>>16,this[n+2]=a>>>8,this[n+3]=255&a,n+4},tt.prototype.writeIntLE=function(a,n,r,u){if(a=+a,n>>>=0,!u){var p=Math.pow(2,8*r-1);Ir(this,a,n,r,p-1,-p)}var c=0,d=1,m=0;for(this[n]=255&a;++c<r&&(d*=256);)a<0&&m===0&&this[n+c-1]!==0&&(m=1),this[n+c]=(a/d>>0)-m&255;return n+r},tt.prototype.writeIntBE=function(a,n,r,u){if(a=+a,n>>>=0,!u){var p=Math.pow(2,8*r-1);Ir(this,a,n,r,p-1,-p)}var c=r-1,d=1,m=0;for(this[n+c]=255&a;--c>=0&&(d*=256);)a<0&&m===0&&this[n+c+1]!==0&&(m=1),this[n+c]=(a/d>>0)-m&255;return n+r},tt.prototype.writeInt8=function(a,n,r){return a=+a,n>>>=0,r||Ir(this,a,n,1,127,-128),a<0&&(a=255+a+1),this[n]=255&a,n+1},tt.prototype.writeInt16LE=function(a,n,r){return a=+a,n>>>=0,r||Ir(this,a,n,2,32767,-32768),this[n]=255&a,this[n+1]=a>>>8,n+2},tt.prototype.writeInt16BE=function(a,n,r){return a=+a,n>>>=0,r||Ir(this,a,n,2,32767,-32768),this[n]=a>>>8,this[n+1]=255&a,n+2},tt.prototype.writeInt32LE=function(a,n,r){return a=+a,n>>>=0,r||Ir(this,a,n,4,2147483647,-2147483648),this[n]=255&a,this[n+1]=a>>>8,this[n+2]=a>>>16,this[n+3]=a>>>24,n+4},tt.prototype.writeInt32BE=function(a,n,r){return a=+a,n>>>=0,r||Ir(this,a,n,4,2147483647,-2147483648),a<0&&(a=4294967295+a+1),this[n]=a>>>24,this[n+1]=a>>>16,this[n+2]=a>>>8,this[n+3]=255&a,n+4},tt.prototype.writeFloatLE=function(a,n,r){return pm(this,a,n,!0,r)},tt.prototype.writeFloatBE=function(a,n,r){return pm(this,a,n,!1,r)},tt.prototype.writeDoubleLE=function(a,n,r){return gm(this,a,n,!0,r)},tt.prototype.writeDoubleBE=function(a,n,r){return gm(this,a,n,!1,r)},tt.prototype.copy=function(a,n,r,u){if(!tt.isBuffer(a))throw new TypeError("argument should be a Buffer");if(r||(r=0),u||u===0||(u=this.length),n>=a.length&&(n=a.length),n||(n=0),u>0&&u<r&&(u=r),u===r||a.length===0||this.length===0)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(u<0)throw new RangeError("sourceEnd out of bounds");u>this.length&&(u=this.length),a.length-n<u-r&&(u=a.length-n+r);var p=u-r;if(this===a&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(n,r,u);else if(this===a&&r<n&&n<u)for(var c=p-1;c>=0;--c)a[c+n]=this[c+r];else Uint8Array.prototype.set.call(a,this.subarray(r,u),n);return p},tt.prototype.fill=function(a,n,r,u){if(typeof a=="string"){if(typeof n=="string"?(u=n,n=0,r=this.length):typeof r=="string"&&(u=r,r=this.length),u!==void 0&&typeof u!="string")throw new TypeError("encoding must be a string");if(typeof u=="string"&&!tt.isEncoding(u))throw new TypeError("Unknown encoding: "+u);if(a.length===1){var p=a.charCodeAt(0);(u==="utf8"&&p<128||u==="latin1")&&(a=p)}}else typeof a=="number"?a&=255:typeof a=="boolean"&&(a=Number(a));if(n<0||this.length<n||this.length<r)throw new RangeError("Out of range index");if(r<=n)return this;var c;if(n>>>=0,r=r===void 0?this.length:r>>>0,a||(a=0),typeof a=="number")for(c=n;c<r;++c)this[c]=a;else{var d=tt.isBuffer(a)?a:tt.from(a,u),m=d.length;if(m===0)throw new TypeError('The value "'+a+'" is invalid for argument "value"');for(c=0;c<r-n;++c)this[c+n]=d[c%m]}return this},M4=/[^+/0-9A-Za-z-_]/g,e(cd,"_2"),e(c2,"z2"),e(Of,"D2"),e(In,"F2"),e(Md,"N2"),$4=function(){for(var a=new Array(256),n=0;n<16;++n)for(var r=16*n,u=0;u<16;++u)a[r+u]="0123456789abcdef"[n]+"0123456789abcdef"[u];return a}(),kn.Buffer,kn.INSPECT_MAX_BYTES,kn.kMaxLength,Al={},Rl=kn,pn=Rl.Buffer,e(ym,"t3"),e(ji,"f3"),pn.from&&pn.alloc&&pn.allocUnsafe&&pn.allocUnsafeSlow?Al=Rl:(ym(Rl,Al),Al.Buffer=ji),ji.prototype=Object.create(pn.prototype),ym(pn,ji),ji.from=function(a,n,r){if(typeof a=="number")throw new TypeError("Argument must not be a number");return pn(a,n,r)},ji.alloc=function(a,n,r){if(typeof a!="number")throw new TypeError("Argument must be a number");var u=pn(a);return n!==void 0?typeof r=="string"?u.fill(n,r):u.fill(n):u.fill(0),u},ji.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return pn(a)},ji.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return Rl.SlowBuffer(a)},CI=Al,dd={},pd=CI.Buffer,k_=pd.isEncoding||function(a){switch((a=""+a)&&a.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}},e(ds,"a3"),e(gu,"r3"),e(d4,"n$12"),e(p4,"h3"),e(g4,"l3"),e(y4,"u$12"),e(m4,"o$12"),e(w4,"f$12"),e(b4,"c3"),dd.StringDecoder=ds,ds.prototype.write=function(a){if(a.length===0)return"";var n,r;if(this.lastNeed){if((n=this.fillLast(a))===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<a.length?n?n+this.text(a,r):this.text(a,r):n||""},ds.prototype.end=function(a){var n=a&&a.length?this.write(a):"";return this.lastNeed?n+"\uFFFD":n},ds.prototype.text=function(a,n){var r=function(p,c,d){var m=c.length-1;if(m<d)return 0;var y=gu(c[m]);return y>=0?(y>0&&(p.lastNeed=y-1),y):--m<d||y===-2?0:(y=gu(c[m]))>=0?(y>0&&(p.lastNeed=y-2),y):--m<d||y===-2?0:(y=gu(c[m]))>=0?(y>0&&(y===2?y=0:p.lastNeed=y-3),y):0}(this,a,n);if(!this.lastNeed)return a.toString("utf8",n);this.lastTotal=r;var u=a.length-(r-this.lastNeed);return a.copy(this.lastChar,0,u),a.toString("utf8",n,u)},ds.prototype.fillLast=function(a){if(this.lastNeed<=a.length)return a.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);a.copy(this.lastChar,this.lastTotal-this.lastNeed,0,a.length),this.lastNeed-=a.length},Fs={},O_=!1,e(v4,"dew$2$1"),Th={},T_=!1,e(_4,"dew$1$1"),Hi={},F_=!1,e(iI,"dew$g"),wi=iI(),wi.Buffer,wi.INSPECT_MAX_BYTES,wi.kMaxLength,Fh={},B_=!1,e(Zi,"dew$f"),I_={},x_=!1,e(h2,"dew$e"),Bh={},j_=!1,e(E4,"dew$d"),Ih={},C_=!1,e(d2,"dew$c"),xh={},P_=!1,e(La,"dew$b"),jh={},L_=!1,e(p2,"dew$a"),Ch={},N_=!1,Ph=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,e(S4,"dew$9"),Lh={},D_=!1,W4=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,e(g2,"dew$8"),Nh={},U_=!1,e(Ta,"dew$7"),Dh={},M_=!1,e($d,"dew$6"),Uh={},$_=!1,e(A4,"dew$5"),W_={},z_=!1,e(R4,"dew$4"),Mh={},H_=!1,z4=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,e(y2,"dew$3"),$h={},q_=!1,e(m2,"dew$2"),Wh={},G_=!1,e(k4,"dew$1"),zh={},V_=!1,e(O4,"dew2"),Wr={},K_=!1,e(w2,"dew3"),Hh={},J_=!1,e(oI,"dew$12"),Y_=oI(),Xo=2147483647,PI=/^xn--/,LI=/[^\0-\x7E]/,H4=/[\x2E\u3002\uFF0E\uFF61]/g,q4={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},hn=Math.floor,bu=String.fromCharCode,e(Ci,"i$13"),e(mm,"f$13"),e(wm,"l$13"),Bm=e(function(a,n){return a+22+75*(a<26)-((n!=0)<<5)},"u$13"),Im=e(function(a,n,r){let u=0;for(a=r?hn(a/700):a>>1,a+=hn(a/n);a>455;u+=36)a=hn(a/35);return hn(u+36*a/(a+38))},"a$12"),xm=e(function(a){let n=[],r=a.length,u=0,p=128,c=72,d=a.lastIndexOf("-");d<0&&(d=0);for(let y=0;y<d;++y)a.charCodeAt(y)>=128&&Ci("not-basic"),n.push(a.charCodeAt(y));for(let y=d>0?d+1:0;y<r;){let w=u;for(let S=1,T=36;;T+=36){y>=r&&Ci("invalid-input");let k=(m=a.charCodeAt(y++))-48<10?m-22:m-65<26?m-65:m-97<26?m-97:36;(k>=36||k>hn((Xo-u)/S))&&Ci("overflow"),u+=k*S;let E=T<=c?1:T>=c+26?26:T-c;if(k<E)break;let j=36-E;S>hn(Xo/j)&&Ci("overflow"),S*=j}let _=n.length+1;c=Im(u-w,_,w==0),hn(u/_)>Xo-p&&Ci("overflow"),p+=hn(u/_),u%=_,n.splice(u++,0,p)}var m;return String.fromCodePoint(...n)},"d3"),jm=e(function(a){let n=[],r=(a=wm(a)).length,u=128,p=0,c=72;for(let y of a)y<128&&n.push(bu(y));let d=n.length,m=d;for(d&&n.push("-");m<r;){let y=Xo;for(let _ of a)_>=u&&_<y&&(y=_);let w=m+1;y-u>hn((Xo-p)/w)&&Ci("overflow"),p+=(y-u)*w,u=y;for(let _ of a)if(_<u&&++p>Xo&&Ci("overflow"),_==u){let S=p;for(let T=36;;T+=36){let k=T<=c?1:T>=c+26?26:T-c;if(S<k)break;let E=S-k,j=36-k;n.push(bu(Bm(k+E%j,0))),S=hn(E/j)}n.push(bu(Bm(S,0))),c=Im(p,w,m==d),p=0,++m}++p,++u}return n.join("")},"h$12"),NI={version:"2.1.0",ucs2:{decode:wm,encode:e(a=>String.fromCodePoint(...a),"encode")},decode:xm,encode:jm,toASCII:e(function(a){return mm(a,function(n){return LI.test(n)?"xn--"+jm(n):n})},"toASCII"),toUnicode:e(function(a){return mm(a,function(n){return PI.test(n)?xm(n.slice(4).toLowerCase()):n})},"toUnicode")},e(aI,"e$13"),DI=e(function(a,n,r,u){n=n||"&",r=r||"=";var p={};if(typeof a!="string"||a.length===0)return p;var c=/\+/g;a=a.split(n);var d=1e3;u&&typeof u.maxKeys=="number"&&(d=u.maxKeys);var m=a.length;d>0&&m>d&&(m=d);for(var y=0;y<m;++y){var w,_,S,T,k=a[y].replace(c,"%20"),E=k.indexOf(r);E>=0?(w=k.substr(0,E),_=k.substr(E+1)):(w=k,_=""),S=decodeURIComponent(w),T=decodeURIComponent(_),aI(p,S)?Array.isArray(p[S])?p[S].push(T):p[S]=[p[S],T]:p[S]=T}return p},"n$13"),ys=e(function(a){switch(typeof a){case"string":return a;case"boolean":return a?"true":"false";case"number":return isFinite(a)?a:"";default:return""}},"r$12"),UI=e(function(a,n,r,u){return n=n||"&",r=r||"=",a===null&&(a=void 0),typeof a=="object"?Object.keys(a).map(function(p){var c=encodeURIComponent(ys(p))+r;return Array.isArray(a[p])?a[p].map(function(d){return c+encodeURIComponent(ys(d))}).join(n):c+encodeURIComponent(ys(a[p]))}).join(n):u?encodeURIComponent(ys(u))+r+encodeURIComponent(ys(a)):""},"t4"),On={},On.decode=On.parse=DI,On.encode=On.stringify=UI,On.decode,On.encode,On.parse,On.stringify,jt={},MI=NI,gn={isString:e(function(a){return typeof a=="string"},"isString"),isObject:e(function(a){return typeof a=="object"&&a!==null},"isObject"),isNull:e(function(a){return a===null},"isNull"),isNullOrUndefined:e(function(a){return a==null},"isNullOrUndefined")},e(Zr,"r4"),jt.parse=ps,jt.resolve=function(a,n){return ps(a,!1,!0).resolve(n)},jt.resolveObject=function(a,n){return a?ps(a,!1,!0).resolveObject(n):n},jt.format=function(a){return gn.isString(a)&&(a=ps(a)),a instanceof Zr?a.format():Zr.prototype.format.call(a)},jt.Url=Zr,$I=/^([a-z0-9.+-]+:)/i,WI=/:[0-9]*$/,zI=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,HI=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",`
137
- `," "]),vu=["'"].concat(HI),Cm=["%","/","?",";","#"].concat(vu),Pm=["/","?","#"],Lm=/^[+a-z0-9A-Z_-]{0,63}$/,qI=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,GI={javascript:!0,"javascript:":!0},_u={javascript:!0,"javascript:":!0},ea={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Eu=On,e(ps,"O3"),Zr.prototype.parse=function(a,n,r){if(!gn.isString(a))throw new TypeError("Parameter 'url' must be a string, not "+typeof a);var u=a.indexOf("?"),p=u!==-1&&u<a.indexOf("#")?"?":"#",c=a.split(p);c[0]=c[0].replace(/\\/g,"/");var d=a=c.join(p);if(d=d.trim(),!r&&a.split("#").length===1){var m=zI.exec(d);if(m)return this.path=d,this.href=d,this.pathname=m[1],m[2]?(this.search=m[2],this.query=n?Eu.parse(this.search.substr(1)):this.search.substr(1)):n&&(this.search="",this.query={}),this}var y=$I.exec(d);if(y){var w=(y=y[0]).toLowerCase();this.protocol=w,d=d.substr(y.length)}if(r||y||d.match(/^\/\/[^@\/]+@[^@\/]+/)){var _=d.substr(0,2)==="//";!_||y&&_u[y]||(d=d.substr(2),this.slashes=!0)}if(!_u[y]&&(_||y&&!ea[y])){for(var S,T,k=-1,E=0;E<Pm.length;E++)(j=d.indexOf(Pm[E]))!==-1&&(k===-1||j<k)&&(k=j);for((T=k===-1?d.lastIndexOf("@"):d.lastIndexOf("@",k))!==-1&&(S=d.slice(0,T),d=d.slice(T+1),this.auth=decodeURIComponent(S)),k=-1,E=0;E<Cm.length;E++){var j;(j=d.indexOf(Cm[E]))!==-1&&(k===-1||j<k)&&(k=j)}k===-1&&(k=d.length),this.host=d.slice(0,k),d=d.slice(k),this.parseHost(),this.hostname=this.hostname||"";var A=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!A)for(var I=this.hostname.split(/\./),U=(E=0,I.length);E<U;E++){var M=I[E];if(M&&!M.match(Lm)){for(var ee="",V=0,q=M.length;V<q;V++)M.charCodeAt(V)>127?ee+="x":ee+=M[V];if(!ee.match(Lm)){var G=I.slice(0,E),re=I.slice(E+1),ae=M.match(qI);ae&&(G.push(ae[1]),re.unshift(ae[2])),re.length&&(d="/"+re.join(".")+d),this.hostname=G.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),A||(this.hostname=MI.toASCII(this.hostname));var de=this.port?":"+this.port:"",we=this.hostname||"";this.host=we+de,this.href+=this.host,A&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),d[0]!=="/"&&(d="/"+d))}if(!GI[w])for(E=0,U=vu.length;E<U;E++){var Ie=vu[E];if(d.indexOf(Ie)!==-1){var je=encodeURIComponent(Ie);je===Ie&&(je=escape(Ie)),d=d.split(Ie).join(je)}}var se=d.indexOf("#");se!==-1&&(this.hash=d.substr(se),d=d.slice(0,se));var Te=d.indexOf("?");if(Te!==-1?(this.search=d.substr(Te),this.query=d.substr(Te+1),n&&(this.query=Eu.parse(this.query)),d=d.slice(0,Te)):n&&(this.search="",this.query={}),d&&(this.pathname=d),ea[w]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){de=this.pathname||"";var J=this.search||"";this.path=de+J}return this.href=this.format(),this},Zr.prototype.format=function(){var a=this.auth||"";a&&(a=(a=encodeURIComponent(a)).replace(/%3A/i,":"),a+="@");var n=this.protocol||"",r=this.pathname||"",u=this.hash||"",p=!1,c="";this.host?p=a+this.host:this.hostname&&(p=a+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(p+=":"+this.port)),this.query&&gn.isObject(this.query)&&Object.keys(this.query).length&&(c=Eu.stringify(this.query));var d=this.search||c&&"?"+c||"";return n&&n.substr(-1)!==":"&&(n+=":"),this.slashes||(!n||ea[n])&&p!==!1?(p="//"+(p||""),r&&r.charAt(0)!=="/"&&(r="/"+r)):p||(p=""),u&&u.charAt(0)!=="#"&&(u="#"+u),d&&d.charAt(0)!=="?"&&(d="?"+d),n+p+(r=r.replace(/[?#]/g,function(m){return encodeURIComponent(m)}))+(d=d.replace("#","%23"))+u},Zr.prototype.resolve=function(a){return this.resolveObject(ps(a,!1,!0)).format()},Zr.prototype.resolveObject=function(a){if(gn.isString(a)){var n=new Zr;n.parse(a,!1,!0),a=n}for(var r=new Zr,u=Object.keys(this),p=0;p<u.length;p++){var c=u[p];r[c]=this[c]}if(r.hash=a.hash,a.href==="")return r.href=r.format(),r;if(a.slashes&&!a.protocol){for(var d=Object.keys(a),m=0;m<d.length;m++){var y=d[m];y!=="protocol"&&(r[y]=a[y])}return ea[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(a.protocol&&a.protocol!==r.protocol){if(!ea[a.protocol]){for(var w=Object.keys(a),_=0;_<w.length;_++){var S=w[_];r[S]=a[S]}return r.href=r.format(),r}if(r.protocol=a.protocol,a.host||_u[a.protocol])r.pathname=a.pathname;else{for(var T=(a.pathname||"").split("/");T.length&&!(a.host=T.shift()););a.host||(a.host=""),a.hostname||(a.hostname=""),T[0]!==""&&T.unshift(""),T.length<2&&T.unshift(""),r.pathname=T.join("/")}if(r.search=a.search,r.query=a.query,r.host=a.host||"",r.auth=a.auth,r.hostname=a.hostname||a.host,r.port=a.port,r.pathname||r.search){var k=r.pathname||"",E=r.search||"";r.path=k+E}return r.slashes=r.slashes||a.slashes,r.href=r.format(),r}var j=r.pathname&&r.pathname.charAt(0)==="/",A=a.host||a.pathname&&a.pathname.charAt(0)==="/",I=A||j||r.host&&a.pathname,U=I,M=r.pathname&&r.pathname.split("/")||[],ee=(T=a.pathname&&a.pathname.split("/")||[],r.protocol&&!ea[r.protocol]);if(ee&&(r.hostname="",r.port=null,r.host&&(M[0]===""?M[0]=r.host:M.unshift(r.host)),r.host="",a.protocol&&(a.hostname=null,a.port=null,a.host&&(T[0]===""?T[0]=a.host:T.unshift(a.host)),a.host=null),I=I&&(T[0]===""||M[0]==="")),A)r.host=a.host||a.host===""?a.host:r.host,r.hostname=a.hostname||a.hostname===""?a.hostname:r.hostname,r.search=a.search,r.query=a.query,M=T;else if(T.length)M||(M=[]),M.pop(),M=M.concat(T),r.search=a.search,r.query=a.query;else if(!gn.isNullOrUndefined(a.search))return ee&&(r.hostname=r.host=M.shift(),(ae=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=ae.shift(),r.host=r.hostname=ae.shift())),r.search=a.search,r.query=a.query,gn.isNull(r.pathname)&&gn.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!M.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var V=M.slice(-1)[0],q=(r.host||a.host||M.length>1)&&(V==="."||V==="..")||V==="",G=0,re=M.length;re>=0;re--)(V=M[re])==="."?M.splice(re,1):V===".."?(M.splice(re,1),G++):G&&(M.splice(re,1),G--);if(!I&&!U)for(;G--;G)M.unshift("..");!I||M[0]===""||M[0]&&M[0].charAt(0)==="/"||M.unshift(""),q&&M.join("/").substr(-1)!=="/"&&M.push("");var ae,de=M[0]===""||M[0]&&M[0].charAt(0)==="/";return ee&&(r.hostname=r.host=de?"":M.length?M.shift():"",(ae=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=ae.shift(),r.host=r.hostname=ae.shift())),(I=I||r.host&&M.length)&&!de&&M.unshift(""),M.length?r.pathname=M.join("/"):(r.pathname=null,r.path=null),gn.isNull(r.pathname)&&gn.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=a.auth||r.auth,r.slashes=r.slashes||a.slashes,r.href=r.format(),r},Zr.prototype.parseHost=function(){var a=this.host,n=WI.exec(a);n&&((n=n[0])!==":"&&(this.port=n.substr(1)),a=a.substr(0,a.length-n.length)),a&&(this.hostname=a)},jt.Url,jt.format,jt.resolve,jt.resolveObject,qh={},Z_=!1,e(sI,"dew4"),Q_=sI(),VI=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0,jt.URL=typeof URL<"u"?URL:null,jt.pathToFileURL=fI,jt.fileURLToPath=lI,jt.Url,jt.format,jt.resolve,jt.resolveObject,jt.URL,G4=92,V4=47,K4=97,J4=122,gd=VI==="win32",Y4=/\//g,Z4=/%/g,Q4=/\\/g,X4=/\n/g,eC=/\r/g,tC=/\t/g,e(lI,"fileURLToPath$1"),e(T4,"getPathFromURLWin$1"),e(F4,"getPathFromURLPosix$1"),e(fI,"pathToFileURL$1"),KI=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0,jt.URL=typeof URL<"u"?URL:null,jt.pathToFileURL=cI,jt.fileURLToPath=uI,jt.Url,jt.format,jt.resolve,jt.resolveObject,jt.parse,jt.URL,rC=92,nC=47,iC=97,oC=122,yd=KI==="win32",aC=/\//g,sC=/%/g,lC=/\\/g,fC=/\n/g,uC=/\r/g,cC=/\t/g,e(uI,"fileURLToPath"),e(B4,"getPathFromURLWin"),e(I4,"getPathFromURLPosix"),e(cI,"pathToFileURL"),zr={},X_=!1,qi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,e(b2,"dew$52"),Ml={},eE=!1,$l=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,e(v2,"dew$42"),Gh={},tE=!1,cr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,e(x4,"dew$32"),Vh={},rE=!1,e(j4,"dew$22"),nE={},iE=!1,e(C4,"dew$13"),Kh={},oE=!1,hC=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,e(hI,"dew$62"),Fn=hI(),Fn.Agent,Fn.ClientRequest,Fn.IncomingMessage,Fn.METHODS,Fn.STATUS_CODES,Fn.get,Fn.globalAgent,Fn.request,Jh={},aE=!1,sE=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,e(dI,"dew5"),ri=dI(),dC=ri.Agent,pC=ri.ClientRequest,gC=ri.IncomingMessage,yC=ri.METHODS,mC=ri.STATUS_CODES,wC=ri.get,bC=ri.globalAgent,vC=ri.request}),_C={};an(_C,{Agent:l(()=>dC,"Agent"),ClientRequest:l(()=>pC,"ClientRequest"),IncomingMessage:l(()=>gC,"IncomingMessage"),METHODS:l(()=>yC,"METHODS"),STATUS_CODES:l(()=>mC,"STATUS_CODES"),get:l(()=>wC,"get"),globalAgent:l(()=>bC,"globalAgent"),request:l(()=>vC,"request")});j3=Xt(()=>{x3()}),C3=Ge((o,i)=>{i.exports=f;function f(g,a){if(g&&a)return f(g)(a);if(typeof g!="function")throw new TypeError("need wrapper function");return Object.keys(g).forEach(function(r){n[r]=g[r]}),n;function n(){for(var r=new Array(arguments.length),u=0;u<r.length;u++)r[u]=arguments[u];var p=g.apply(this,r),c=r[r.length-1];return typeof p=="function"&&p!==c&&Object.keys(c).forEach(function(d){p[d]=c[d]}),p}}l(f,"TN"),e(f,"wrappy")}),P3=Ge((o,i)=>{var f=C3();i.exports=f(g),i.exports.strict=f(a),g.proto=g(function(){Object.defineProperty(Function.prototype,"once",{value:e(function(){return g(this)},"value"),configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:e(function(){return a(this)},"value"),configurable:!0})});function g(n){var r=e(function(){return r.called?r.value:(r.called=!0,r.value=n.apply(this,arguments))},"f");return r.called=!1,r}l(g,"$p"),e(g,"once");function a(n){var r=e(function(){if(r.called)throw new Error(r.onceError);return r.called=!0,r.value=n.apply(this,arguments)},"f"),u=n.name||"Function wrapped with `once`";return r.onceError=u+" shouldn't be called more than once",r.called=!1,r}l(a,"IN"),e(a,"onceStrict")});l(EC,"Iee");l(SC,"Pee");l(JI,"kee");L3=Xt(()=>{Yh={},lE=!1,e(EC,"dew$2"),Zh={},fE=!1,e(SC,"dew$1"),Bs={},uE=!1,e(JI,"dew"),ni=JI(),ni.decode,ni.parse,ni.encode,ni.stringify,AC=ni.decode,RC=ni.encode,kC=ni.parse,OC=ni.stringify}),TC={};an(TC,{decode:l(()=>AC,"decode"),encode:l(()=>RC,"encode"),parse:l(()=>kC,"parse"),stringify:l(()=>OC,"stringify")});N3=Xt(()=>{L3()}),D3=Ge((o,i)=>{i.exports=d;var f=A3(),g=R3(),a=(B3(),hr(r4)),n=(j3(),hr(_C)),r=P3(),u=(N3(),hr(TC)),p=(z6(),hr(PE)),c=e(m=>m!==null&&typeof m=="object"&&typeof m.pipe=="function","isStream");function d(m,y){if(m=Object.assign({maxRedirects:10},typeof m=="string"?{url:m}:m),y=r(y),m.url){let{hostname:k,port:E,protocol:j,auth:A,path:I}=p.parse(m.url);delete m.url,!k&&!E&&!j&&!A?m.path=I:Object.assign(m,{hostname:k,port:E,protocol:j,auth:A,path:I})}let w={"accept-encoding":"gzip, deflate"};m.headers&&Object.keys(m.headers).forEach(k=>w[k.toLowerCase()]=m.headers[k]),m.headers=w;let _;m.body?_=m.json&&!c(m.body)?JSON.stringify(m.body):m.body:m.form&&(_=typeof m.form=="string"?m.form:u.stringify(m.form),m.headers["content-type"]="application/x-www-form-urlencoded"),_&&(m.method||(m.method="POST"),c(_)||(m.headers["content-length"]=Buffer.byteLength(_)),m.json&&!m.form&&(m.headers["content-type"]="application/json")),delete m.body,delete m.form,m.json&&(m.headers.accept="application/json"),m.method&&(m.method=m.method.toUpperCase());let S=m.hostname,T=(m.protocol==="https:"?n:a).request(m,k=>{if(m.followRedirects!==!1&&k.statusCode>=300&&k.statusCode<400&&k.headers.location){m.url=k.headers.location,delete m.headers.host,k.resume();let j=p.parse(m.url).hostname;return j!==null&&j!==S&&(delete m.headers.cookie,delete m.headers.authorization),m.method==="POST"&&[301,302].includes(k.statusCode)&&(m.method="GET",delete m.headers["content-length"],delete m.headers["content-type"]),m.maxRedirects--===0?y(new Error("too many redirects")):d(m,y)}let E=typeof g=="function"&&m.method!=="HEAD";y(null,E?g(k):k)});return T.on("timeout",()=>{T.abort(),y(new Error("Request timed out"))}),T.on("error",y),c(_)?_.on("error",y).pipe(T):T.end(_),T}l(d,"_l"),e(d,"simpleGet"),d.concat=(m,y)=>d(m,(w,_)=>{if(w)return y(w);f(_,(S,T)=>{if(S)return y(S);if(m.json)try{T=JSON.parse(T.toString())}catch(k){return y(k,_,T)}y(null,_,T)})}),["get","post","put","patch","head","delete"].forEach(m=>{d[m]=(y,w)=>(typeof y=="string"&&(y={url:y}),d(Object.assign({method:m.toUpperCase()},y),w))})});l(YI,"Hee");U3=Xt(()=>{Wl={},cE=!1,e(YI,"dew"),kl=YI(),kl.once,kl.once=function(o,i){return new Promise((f,g)=>{function a(...r){n!==void 0&&o.removeListener("error",n),f(r)}l(a,"a"),e(a,"eventListener");let n;i!=="error"&&(n=e(r=>{o.removeListener(name,a),g(r)},"errorListener"),o.once("error",n)),o.once(i,a)})},kl.on=function(o,i){let f=[],g=[],a=null,n=!1,r={async next(){let c=f.shift();if(c)return createIterResult(c,!1);if(a){let d=Promise.reject(a);return a=null,d}return n?createIterResult(void 0,!0):new Promise((d,m)=>g.push({resolve:d,reject:m}))},async return(){o.removeListener(i,u),o.removeListener("error",p),n=!0;for(let c of g)c.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)},throw(c){a=c,o.removeListener(i,u),o.removeListener("error",p)},[Symbol.asyncIterator](){return this}};return o.on(i,u),o.on("error",p),r;function u(...c){let d=g.shift();d?d.resolve(createIterResult(c,!1)):f.push(c)}function p(c){n=!0;let d=g.shift();d?d.reject(c):a=c,r.return()}},{EventEmitter:FC,defaultMaxListeners:BC,init:IC,listenerCount:xC,on:jC,once:CC}=kl}),_2={};an(_2,{EventEmitter:l(()=>FC,"EventEmitter"),defaultMaxListeners:l(()=>BC,"defaultMaxListeners"),init:l(()=>IC,"init"),listenerCount:l(()=>xC,"listenerCount"),on:l(()=>jC,"on"),once:l(()=>CC,"once")});PC=Xt(()=>{U3()}),LC=Ge((o,i)=>{i.exports=(PC(),hr(_2)).EventEmitter}),NC=Ge((o,i)=>{i.exports={}}),M3=Ge((o,i)=>{"use strict";function f(T,k){var E=Object.keys(T);if(Object.getOwnPropertySymbols){var j=Object.getOwnPropertySymbols(T);k&&(j=j.filter(function(A){return Object.getOwnPropertyDescriptor(T,A).enumerable})),E.push.apply(E,j)}return E}l(f,"VN"),e(f,"ownKeys");function g(T){for(var k=1;k<arguments.length;k++){var E=arguments[k]!=null?arguments[k]:{};k%2?f(Object(E),!0).forEach(function(j){a(T,j,E[j])}):Object.getOwnPropertyDescriptors?Object.defineProperties(T,Object.getOwnPropertyDescriptors(E)):f(Object(E)).forEach(function(j){Object.defineProperty(T,j,Object.getOwnPropertyDescriptor(E,j))})}return T}l(g,"GN"),e(g,"_objectSpread");function a(T,k,E){return k=p(k),k in T?Object.defineProperty(T,k,{value:E,enumerable:!0,configurable:!0,writable:!0}):T[k]=E,T}l(a,"Kee"),e(a,"_defineProperty");function n(T,k){if(!(T instanceof k))throw new TypeError("Cannot call a class as a function")}l(n,"Xee"),e(n,"_classCallCheck");function r(T,k){for(var E=0;E<k.length;E++){var j=k[E];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(T,p(j.key),j)}}l(r,"YN"),e(r,"_defineProperties");function u(T,k,E){return k&&r(T.prototype,k),E&&r(T,E),Object.defineProperty(T,"prototype",{writable:!1}),T}l(u,"Jee"),e(u,"_createClass");function p(T){var k=c(T,"string");return typeof k=="symbol"?k:String(k)}l(p,"KN"),e(p,"_toPropertyKey");function c(T,k){if(typeof T!="object"||T===null)return T;var E=T[Symbol.toPrimitive];if(E!==void 0){var j=E.call(T,k||"default");if(typeof j!="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return(k==="string"?String:Number)(T)}l(c,"Zee"),e(c,"_toPrimitive");var d=(jd(),hr(Sf)),m=d.Buffer,y=NC(),w=y.inspect,_=w&&w.custom||"inspect";function S(T,k,E){m.prototype.copy.call(T,k,E)}l(S,"rte"),e(S,"copyBuffer"),i.exports=function(){function T(){n(this,T),this.head=null,this.tail=null,this.length=0}return l(T,"e"),e(T,"BufferList"),u(T,[{key:"push",value:e(function(k){var E={data:k,next:null};this.length>0?this.tail.next=E:this.head=E,this.tail=E,++this.length},"push")},{key:"unshift",value:e(function(k){var E={data:k,next:this.head};this.length===0&&(this.tail=E),this.head=E,++this.length},"unshift")},{key:"shift",value:e(function(){if(this.length!==0){var k=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,k}},"shift")},{key:"clear",value:e(function(){this.head=this.tail=null,this.length=0},"clear")},{key:"join",value:e(function(k){if(this.length===0)return"";for(var E=this.head,j=""+E.data;E=E.next;)j+=k+E.data;return j},"join")},{key:"concat",value:e(function(k){if(this.length===0)return m.alloc(0);for(var E=m.allocUnsafe(k>>>0),j=this.head,A=0;j;)S(j.data,E,A),A+=j.data.length,j=j.next;return E},"concat")},{key:"consume",value:e(function(k,E){var j;return k<this.head.data.length?(j=this.head.data.slice(0,k),this.head.data=this.head.data.slice(k)):k===this.head.data.length?j=this.shift():j=E?this._getString(k):this._getBuffer(k),j},"consume")},{key:"first",value:e(function(){return this.head.data},"first")},{key:"_getString",value:e(function(k){var E=this.head,j=1,A=E.data;for(k-=A.length;E=E.next;){var I=E.data,U=k>I.length?I.length:k;if(U===I.length?A+=I:A+=I.slice(0,k),k-=U,k===0){U===I.length?(++j,E.next?this.head=E.next:this.head=this.tail=null):(this.head=E,E.data=I.slice(U));break}++j}return this.length-=j,A},"_getString")},{key:"_getBuffer",value:e(function(k){var E=m.allocUnsafe(k),j=this.head,A=1;for(j.data.copy(E),k-=j.data.length;j=j.next;){var I=j.data,U=k>I.length?I.length:k;if(I.copy(E,E.length-k,0,U),k-=U,k===0){U===I.length?(++A,j.next?this.head=j.next:this.head=this.tail=null):(this.head=j,j.data=I.slice(U));break}++A}return this.length-=A,E},"_getBuffer")},{key:_,value:e(function(k,E){return w(this,g(g({},E),{},{depth:0,customInspect:!1}))},"value")}]),T}()}),DC=Ge((o,i)=>{"use strict";function f(p,c){var d=this,m=this._readableState&&this._readableState.destroyed,y=this._writableState&&this._writableState.destroyed;return m||y?(c?c(p):p&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(r,this,p)):process.nextTick(r,this,p)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(p||null,function(w){!c&&w?d._writableState?d._writableState.errorEmitted?process.nextTick(a,d):(d._writableState.errorEmitted=!0,process.nextTick(g,d,w)):process.nextTick(g,d,w):c?(process.nextTick(a,d),c(w)):process.nextTick(a,d)}),this)}l(f,"nte"),e(f,"destroy");function g(p,c){r(p,c),a(p)}l(g,"ZN"),e(g,"emitErrorAndCloseNT");function a(p){p._writableState&&!p._writableState.emitClose||p._readableState&&!p._readableState.emitClose||p.emit("close")}l(a,"Hp"),e(a,"emitCloseNT");function n(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}l(n,"ite"),e(n,"undestroy");function r(p,c){p.emit("error",c)}l(r,"G_"),e(r,"emitErrorNT");function u(p,c){var d=p._readableState,m=p._writableState;d&&d.autoDestroy||m&&m.autoDestroy?p.destroy(c):p.emit("error",c)}l(u,"ote"),e(u,"errorOrDestroy"),i.exports={destroy:f,undestroy:n,errorOrDestroy:u}}),rl=Ge((o,i)=>{"use strict";function f(c,d){c.prototype=Object.create(d.prototype),c.prototype.constructor=c,c.__proto__=d}l(f,"ate"),e(f,"_inheritsLoose");var g={};function a(c,d,m){m||(m=Error);function y(_,S,T){return typeof d=="string"?d:d(_,S,T)}l(y,"n"),e(y,"getMessage");var w=function(_){f(S,_);function S(T,k,E){return _.call(this,y(T,k,E))||this}return l(S,"i"),e(S,"NodeError"),S}(m);w.prototype.name=m.name,w.prototype.code=c,g[c]=w}l(a,"on"),e(a,"createErrorType");function n(c,d){if(Array.isArray(c)){var m=c.length;return c=c.map(function(y){return String(y)}),m>2?"one of ".concat(d," ").concat(c.slice(0,m-1).join(", "),", or ")+c[m-1]:m===2?"one of ".concat(d," ").concat(c[0]," or ").concat(c[1]):"of ".concat(d," ").concat(c[0])}else return"of ".concat(d," ").concat(String(c))}l(n,"e$"),e(n,"oneOf");function r(c,d,m){return c.substr(!m||m<0?0:+m,d.length)===d}l(r,"ste"),e(r,"startsWith");function u(c,d,m){return(m===void 0||m>c.length)&&(m=c.length),c.substring(m-d.length,m)===d}l(u,"lte"),e(u,"endsWith");function p(c,d,m){return typeof m!="number"&&(m=0),m+d.length>c.length?!1:c.indexOf(d,m)!==-1}l(p,"fte"),e(p,"includes"),a("ERR_INVALID_OPT_VALUE",function(c,d){return'The value "'+d+'" is invalid for option "'+c+'"'},TypeError),a("ERR_INVALID_ARG_TYPE",function(c,d,m){var y;typeof d=="string"&&r(d,"not ")?(y="must not be",d=d.replace(/^not /,"")):y="must be";var w;if(u(c," argument"))w="The ".concat(c," ").concat(y," ").concat(n(d,"type"));else{var _=p(c,".")?"property":"argument";w='The "'.concat(c,'" ').concat(_," ").concat(y," ").concat(n(d,"type"))}return w+=". Received type ".concat(typeof m),w},TypeError),a("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),a("ERR_METHOD_NOT_IMPLEMENTED",function(c){return"The "+c+" method is not implemented"}),a("ERR_STREAM_PREMATURE_CLOSE","Premature close"),a("ERR_STREAM_DESTROYED",function(c){return"Cannot call "+c+" after a stream was destroyed"}),a("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),a("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),a("ERR_STREAM_WRITE_AFTER_END","write after end"),a("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),a("ERR_UNKNOWN_ENCODING",function(c){return"Unknown encoding: "+c},TypeError),a("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),i.exports.codes=g}),UC=Ge((o,i)=>{"use strict";var f=rl().codes.ERR_INVALID_OPT_VALUE;function g(n,r,u){return n.highWaterMark!=null?n.highWaterMark:r?n[u]:null}l(g,"cte"),e(g,"highWaterMarkFrom");function a(n,r,u,p){var c=g(r,p,u);if(c!=null){if(!(isFinite(c)&&Math.floor(c)===c)||c<0){var d=p?u:"highWaterMark";throw new f(d,c)}return Math.floor(c)}return n.objectMode?16:16*1024}l(a,"hte"),e(a,"getHighWaterMark"),i.exports={getHighWaterMark:a}}),$3=Ge((o,i)=>{i.exports=f;function f(a,n){if(g("noDeprecation"))return a;var r=!1;function u(){if(!r){if(g("throwDeprecation"))throw new Error(n);g("traceDeprecation")?console.trace(n):console.warn(n),r=!0}return a.apply(this,arguments)}return l(u,"n"),e(u,"deprecated"),u}l(f,"dte"),e(f,"deprecate");function g(a){try{if(!globalThis.localStorage)return!1}catch{return!1}var n=globalThis.localStorage[a];return n==null?!1:String(n).toLowerCase()==="true"}l(g,"X_"),e(g,"config")}),MC=Ge((o,i)=>{"use strict";i.exports=q;function f(H){var Q=this;this.next=null,this.entry=null,this.finish=function(){Y(Q,H)}}l(f,"s$"),e(f,"CorkedRequest");var g;q.WritableState=ee;var a={deprecate:$3()},n=LC(),r=(jd(),hr(Sf)).Buffer,u=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function p(H){return r.from(H)}l(p,"mte"),e(p,"_uint8ArrayToBuffer");function c(H){return r.isBuffer(H)||H instanceof u}l(c,"gte"),e(c,"_isUint8Array");var d=DC(),m=UC(),y=m.getHighWaterMark,w=rl().codes,_=w.ERR_INVALID_ARG_TYPE,S=w.ERR_METHOD_NOT_IMPLEMENTED,T=w.ERR_MULTIPLE_CALLBACK,k=w.ERR_STREAM_CANNOT_PIPE,E=w.ERR_STREAM_DESTROYED,j=w.ERR_STREAM_NULL_VALUES,A=w.ERR_STREAM_WRITE_AFTER_END,I=w.ERR_UNKNOWN_ENCODING,U=d.errorOrDestroy;Xs()(q,n);function M(){}l(M,"xte"),e(M,"nop");function ee(H,Q,fe){g=g||Ks(),H=H||{},typeof fe!="boolean"&&(fe=Q instanceof g),this.objectMode=!!H.objectMode,fe&&(this.objectMode=this.objectMode||!!H.writableObjectMode),this.highWaterMark=y(this,H,"writableHighWaterMark",fe),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ve=H.decodeStrings===!1;this.decodeStrings=!ve,this.defaultEncoding=H.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(N){se(Q,N)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=H.emitClose!==!1,this.autoDestroy=!!H.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new f(this)}l(ee,"bu"),e(ee,"WritableState"),ee.prototype.getBuffer=e(function(){for(var H=this.bufferedRequest,Q=[];H;)Q.push(H),H=H.next;return Q},"getBuffer"),function(){try{Object.defineProperty(ee.prototype,"buffer",{get:a.deprecate(e(function(){return this.getBuffer()},"writableStateBufferGetter"),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var V;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(V=Function.prototype[Symbol.hasInstance],Object.defineProperty(q,Symbol.hasInstance,{value:e(function(H){return V.call(this,H)?!0:this!==q?!1:H&&H._writableState instanceof ee},"value")})):V=e(function(H){return H instanceof this},"realHasInstance");function q(H){g=g||Ks();var Q=this instanceof g;if(!Q&&!V.call(q,this))return new q(H);this._writableState=new ee(H,this,Q),this.writable=!0,H&&(typeof H.write=="function"&&(this._write=H.write),typeof H.writev=="function"&&(this._writev=H.writev),typeof H.destroy=="function"&&(this._destroy=H.destroy),typeof H.final=="function"&&(this._final=H.final)),n.call(this)}l(q,"At"),e(q,"Writable"),q.prototype.pipe=function(){U(this,new k)};function G(H,Q){var fe=new A;U(H,fe),process.nextTick(Q,fe)}l(G,"Ote"),e(G,"writeAfterEnd");function re(H,Q,fe,ve){var N;return fe===null?N=new j:typeof fe!="string"&&!Q.objectMode&&(N=new _("chunk",["string","Buffer"],fe)),N?(U(H,N),process.nextTick(ve,N),!1):!0}l(re,"Ite"),e(re,"validChunk"),q.prototype.write=function(H,Q,fe){var ve=this._writableState,N=!1,x=!ve.objectMode&&c(H);return x&&!r.isBuffer(H)&&(H=p(H)),typeof Q=="function"&&(fe=Q,Q=null),x?Q="buffer":Q||(Q=ve.defaultEncoding),typeof fe!="function"&&(fe=M),ve.ending?G(this,fe):(x||re(this,ve,H,fe))&&(ve.pendingcb++,N=de(this,ve,x,H,Q,fe)),N},q.prototype.cork=function(){this._writableState.corked++},q.prototype.uncork=function(){var H=this._writableState;H.corked&&(H.corked--,!H.writing&&!H.corked&&!H.bufferProcessing&&H.bufferedRequest&&ue(this,H))},q.prototype.setDefaultEncoding=e(function(H){if(typeof H=="string"&&(H=H.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((H+"").toLowerCase())>-1))throw new I(H);return this._writableState.defaultEncoding=H,this},"setDefaultEncoding"),Object.defineProperty(q.prototype,"writableBuffer",{enumerable:!1,get:e(function(){return this._writableState&&this._writableState.getBuffer()},"get")});function ae(H,Q,fe){return!H.objectMode&&H.decodeStrings!==!1&&typeof Q=="string"&&(Q=r.from(Q,fe)),Q}l(ae,"Pte"),e(ae,"decodeChunk"),Object.defineProperty(q.prototype,"writableHighWaterMark",{enumerable:!1,get:e(function(){return this._writableState.highWaterMark},"get")});function de(H,Q,fe,ve,N,x){if(!fe){var D=ae(Q,ve,N);ve!==D&&(fe=!0,N="buffer",ve=D)}var z=Q.objectMode?1:ve.length;Q.length+=z;var Ee=Q.length<Q.highWaterMark;if(Ee||(Q.needDrain=!0),Q.writing||Q.corked){var ke=Q.lastBufferedRequest;Q.lastBufferedRequest={chunk:ve,encoding:N,isBuf:fe,callback:x,next:null},ke?ke.next=Q.lastBufferedRequest:Q.bufferedRequest=Q.lastBufferedRequest,Q.bufferedRequestCount+=1}else we(H,Q,!1,z,ve,N,x);return Ee}l(de,"kte"),e(de,"writeOrBuffer");function we(H,Q,fe,ve,N,x,D){Q.writelen=ve,Q.writecb=D,Q.writing=!0,Q.sync=!0,Q.destroyed?Q.onwrite(new E("write")):fe?H._writev(N,Q.onwrite):H._write(N,x,Q.onwrite),Q.sync=!1}l(we,"J_"),e(we,"doWrite");function Ie(H,Q,fe,ve,N){--Q.pendingcb,fe?(process.nextTick(N,ve),process.nextTick(Re,H,Q),H._writableState.errorEmitted=!0,U(H,ve)):(N(ve),H._writableState.errorEmitted=!0,U(H,ve),Re(H,Q))}l(Ie,"Bte"),e(Ie,"onwriteError");function je(H){H.writing=!1,H.writecb=null,H.length-=H.writelen,H.writelen=0}l(je,"Cte"),e(je,"onwriteStateUpdate");function se(H,Q){var fe=H._writableState,ve=fe.sync,N=fe.writecb;if(typeof N!="function")throw new T;if(je(fe),Q)Ie(H,fe,ve,Q,N);else{var x=te(fe)||H.destroyed;!x&&!fe.corked&&!fe.bufferProcessing&&fe.bufferedRequest&&ue(H,fe),ve?process.nextTick(Te,H,fe,x,N):Te(H,fe,x,N)}}l(se,"Lte"),e(se,"onwrite");function Te(H,Q,fe,ve){fe||J(H,Q),Q.pendingcb--,ve(),Re(H,Q)}l(Te,"a$"),e(Te,"afterWrite");function J(H,Q){Q.length===0&&Q.needDrain&&(Q.needDrain=!1,H.emit("drain"))}l(J,"Dte"),e(J,"onwriteDrain");function ue(H,Q){Q.bufferProcessing=!0;var fe=Q.bufferedRequest;if(H._writev&&fe&&fe.next){var ve=Q.bufferedRequestCount,N=new Array(ve),x=Q.corkedRequestsFree;x.entry=fe;for(var D=0,z=!0;fe;)N[D]=fe,fe.isBuf||(z=!1),fe=fe.next,D+=1;N.allBuffers=z,we(H,Q,!0,Q.length,N,"",x.finish),Q.pendingcb++,Q.lastBufferedRequest=null,x.next?(Q.corkedRequestsFree=x.next,x.next=null):Q.corkedRequestsFree=new f(Q),Q.bufferedRequestCount=0}else{for(;fe;){var Ee=fe.chunk,ke=fe.encoding,be=fe.callback,ge=Q.objectMode?1:Ee.length;if(we(H,Q,!1,ge,Ee,ke,be),fe=fe.next,Q.bufferedRequestCount--,Q.writing)break}fe===null&&(Q.lastBufferedRequest=null)}Q.bufferedRequest=fe,Q.bufferProcessing=!1}l(ue,"f$"),e(ue,"clearBuffer"),q.prototype._write=function(H,Q,fe){fe(new S("_write()"))},q.prototype._writev=null,q.prototype.end=function(H,Q,fe){var ve=this._writableState;return typeof H=="function"?(fe=H,H=null,Q=null):typeof Q=="function"&&(fe=Q,Q=null),H!=null&&this.write(H,Q),ve.corked&&(ve.corked=1,this.uncork()),ve.ending||De(this,ve,fe),this},Object.defineProperty(q.prototype,"writableLength",{enumerable:!1,get:e(function(){return this._writableState.length},"get")});function te(H){return H.ending&&H.length===0&&H.bufferedRequest===null&&!H.finished&&!H.writing}l(te,"u$"),e(te,"needFinish");function X(H,Q){H._final(function(fe){Q.pendingcb--,fe&&U(H,fe),Q.prefinished=!0,H.emit("prefinish"),Re(H,Q)})}l(X,"Nte"),e(X,"callFinal");function ye(H,Q){!Q.prefinished&&!Q.finalCalled&&(typeof H._final=="function"&&!Q.destroyed?(Q.pendingcb++,Q.finalCalled=!0,process.nextTick(X,H,Q)):(Q.prefinished=!0,H.emit("prefinish")))}l(ye,"$te"),e(ye,"prefinish");function Re(H,Q){var fe=te(Q);if(fe&&(ye(H,Q),Q.pendingcb===0&&(Q.finished=!0,H.emit("finish"),Q.autoDestroy))){var ve=H._readableState;(!ve||ve.autoDestroy&&ve.endEmitted)&&H.destroy()}return fe}l(Re,"vu"),e(Re,"finishMaybe");function De(H,Q,fe){Q.ending=!0,Re(H,Q),fe&&(Q.finished?process.nextTick(fe):H.once("finish",fe)),Q.ended=!0,H.writable=!1}l(De,"Mte"),e(De,"endWritable");function Y(H,Q,fe){var ve=H.entry;for(H.entry=null;ve;){var N=ve.callback;Q.pendingcb--,N(fe),ve=ve.next}Q.corkedRequestsFree.next=H}l(Y,"Ute"),e(Y,"onCorkedFinish"),Object.defineProperty(q.prototype,"destroyed",{enumerable:!1,get:e(function(){return this._writableState===void 0?!1:this._writableState.destroyed},"get"),set:e(function(H){this._writableState&&(this._writableState.destroyed=H)},"set")}),q.prototype.destroy=d.destroy,q.prototype._undestroy=d.undestroy,q.prototype._destroy=function(H,Q){Q(H)}}),Ks=Ge((o,i)=>{"use strict";var f=Object.keys||function(m){var y=[];for(var w in m)y.push(w);return y};i.exports=p;var g=$C(),a=MC();for(Xs()(p,g),n=f(a.prototype),u=0;u<n.length;u++)r=n[u],p.prototype[r]||(p.prototype[r]=a.prototype[r]);var n,r,u;function p(m){if(!(this instanceof p))return new p(m);g.call(this,m),a.call(this,m),this.allowHalfOpen=!0,m&&(m.readable===!1&&(this.readable=!1),m.writable===!1&&(this.writable=!1),m.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",c)))}l(p,"Wn"),e(p,"Duplex"),Object.defineProperty(p.prototype,"writableHighWaterMark",{enumerable:!1,get:e(function(){return this._writableState.highWaterMark},"get")}),Object.defineProperty(p.prototype,"writableBuffer",{enumerable:!1,get:e(function(){return this._writableState&&this._writableState.getBuffer()},"get")}),Object.defineProperty(p.prototype,"writableLength",{enumerable:!1,get:e(function(){return this._writableState.length},"get")});function c(){this._writableState.ended||process.nextTick(d,this)}l(c,"Hte"),e(c,"onend");function d(m){m.end()}l(d,"Wte"),e(d,"onEndNT"),Object.defineProperty(p.prototype,"destroyed",{enumerable:!1,get:e(function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},"get"),set:e(function(m){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=m,this._writableState.destroyed=m)},"set")})}),ZI=Ge(o=>{"use strict";var i=Cd().Buffer,f=i.isEncoding||function(E){switch(E=""+E,E&&E.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 g(E){if(!E)return"utf8";for(var j;;)switch(E){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 E;default:if(j)return;E=(""+E).toLowerCase(),j=!0}}l(g,"qte"),e(g,"_normalizeEncoding");function a(E){var j=g(E);if(typeof j!="string"&&(i.isEncoding===f||!f(E)))throw new Error("Unknown encoding: "+E);return j||E}l(a,"zte"),e(a,"normalizeEncoding"),o.StringDecoder=n;function n(E){this.encoding=a(E);var j;switch(this.encoding){case"utf16le":this.text=y,this.end=w,j=4;break;case"utf8":this.fillLast=c,j=4;break;case"base64":this.text=_,this.end=S,j=3;break;default:this.write=T,this.end=k;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(j)}l(n,"_u"),e(n,"StringDecoder"),n.prototype.write=function(E){if(E.length===0)return"";var j,A;if(this.lastNeed){if(j=this.fillLast(E),j===void 0)return"";A=this.lastNeed,this.lastNeed=0}else A=0;return A<E.length?j?j+this.text(E,A):this.text(E,A):j||""},n.prototype.end=m,n.prototype.text=d,n.prototype.fillLast=function(E){if(this.lastNeed<=E.length)return E.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);E.copy(this.lastChar,this.lastTotal-this.lastNeed,0,E.length),this.lastNeed-=E.length};function r(E){return E<=127?0:E>>5===6?2:E>>4===14?3:E>>3===30?4:E>>6===2?-1:-2}l(r,"n1"),e(r,"utf8CheckByte");function u(E,j,A){var I=j.length-1;if(I<A)return 0;var U=r(j[I]);return U>=0?(U>0&&(E.lastNeed=U-1),U):--I<A||U===-2?0:(U=r(j[I]),U>=0?(U>0&&(E.lastNeed=U-2),U):--I<A||U===-2?0:(U=r(j[I]),U>=0?(U>0&&(U===2?U=0:E.lastNeed=U-3),U):0))}l(u,"Vte"),e(u,"utf8CheckIncomplete");function p(E,j,A){if((j[0]&192)!==128)return E.lastNeed=0,"\uFFFD";if(E.lastNeed>1&&j.length>1){if((j[1]&192)!==128)return E.lastNeed=1,"\uFFFD";if(E.lastNeed>2&&j.length>2&&(j[2]&192)!==128)return E.lastNeed=2,"\uFFFD"}}l(p,"Gte"),e(p,"utf8CheckExtraBytes");function c(E){var j=this.lastTotal-this.lastNeed,A=p(this,E,j);if(A!==void 0)return A;if(this.lastNeed<=E.length)return E.copy(this.lastChar,j,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);E.copy(this.lastChar,j,0,E.length),this.lastNeed-=E.length}l(c,"Yte"),e(c,"utf8FillLast");function d(E,j){var A=u(this,E,j);if(!this.lastNeed)return E.toString("utf8",j);this.lastTotal=A;var I=E.length-(A-this.lastNeed);return E.copy(this.lastChar,0,I),E.toString("utf8",j,I)}l(d,"Kte"),e(d,"utf8Text");function m(E){var j=E&&E.length?this.write(E):"";return this.lastNeed?j+"\uFFFD":j}l(m,"Xte"),e(m,"utf8End");function y(E,j){if((E.length-j)%2===0){var A=E.toString("utf16le",j);if(A){var I=A.charCodeAt(A.length-1);if(I>=55296&&I<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=E[E.length-2],this.lastChar[1]=E[E.length-1],A.slice(0,-1)}return A}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=E[E.length-1],E.toString("utf16le",j,E.length-1)}l(y,"Jte"),e(y,"utf16Text");function w(E){var j=E&&E.length?this.write(E):"";if(this.lastNeed){var A=this.lastTotal-this.lastNeed;return j+this.lastChar.toString("utf16le",0,A)}return j}l(w,"Zte"),e(w,"utf16End");function _(E,j){var A=(E.length-j)%3;return A===0?E.toString("base64",j):(this.lastNeed=3-A,this.lastTotal=3,A===1?this.lastChar[0]=E[E.length-1]:(this.lastChar[0]=E[E.length-2],this.lastChar[1]=E[E.length-1]),E.toString("base64",j,E.length-A))}l(_,"Qte"),e(_,"base64Text");function S(E){var j=E&&E.length?this.write(E):"";return this.lastNeed?j+this.lastChar.toString("base64",0,3-this.lastNeed):j}l(S,"ere"),e(S,"base64End");function T(E){return E.toString(this.encoding)}l(T,"tre"),e(T,"simpleWrite");function k(E){return E&&E.length?this.write(E):""}l(k,"rre"),e(k,"simpleEnd")}),E2=Ge((o,i)=>{"use strict";var f=rl().codes.ERR_STREAM_PREMATURE_CLOSE;function g(u){var p=!1;return function(){if(!p){p=!0;for(var c=arguments.length,d=new Array(c),m=0;m<c;m++)d[m]=arguments[m];u.apply(this,d)}}}l(g,"nre"),e(g,"once");function a(){}l(a,"ire"),e(a,"noop");function n(u){return u.setHeader&&typeof u.abort=="function"}l(n,"ore"),e(n,"isRequest");function r(u,p,c){if(typeof p=="function")return r(u,null,p);p||(p={}),c=g(c||a);var d=p.readable||p.readable!==!1&&u.readable,m=p.writable||p.writable!==!1&&u.writable,y=e(function(){u.writable||_()},"onlegacyfinish"),w=u._writableState&&u._writableState.finished,_=e(function(){m=!1,w=!0,d||c.call(u)},"onfinish"),S=u._readableState&&u._readableState.endEmitted,T=e(function(){d=!1,S=!0,m||c.call(u)},"onend"),k=e(function(A){c.call(u,A)},"onerror"),E=e(function(){var A;if(d&&!S)return(!u._readableState||!u._readableState.ended)&&(A=new f),c.call(u,A);if(m&&!w)return(!u._writableState||!u._writableState.ended)&&(A=new f),c.call(u,A)},"onclose"),j=e(function(){u.req.on("finish",_)},"onrequest");return n(u)?(u.on("complete",_),u.on("abort",E),u.req?j():u.on("request",j)):m&&!u._writableState&&(u.on("end",y),u.on("close",y)),u.on("end",T),u.on("finish",_),p.error!==!1&&u.on("error",k),u.on("close",E),function(){u.removeListener("complete",_),u.removeListener("abort",E),u.removeListener("request",j),u.req&&u.req.removeListener("finish",_),u.removeListener("end",y),u.removeListener("close",y),u.removeListener("finish",_),u.removeListener("end",T),u.removeListener("error",k),u.removeListener("close",E)}}l(r,"g$"),e(r,"eos"),i.exports=r}),W3=Ge((o,i)=>{"use strict";var f;function g(I,U,M){return U=a(U),U in I?Object.defineProperty(I,U,{value:M,enumerable:!0,configurable:!0,writable:!0}):I[U]=M,I}l(g,"Ao"),e(g,"_defineProperty");function a(I){var U=n(I,"string");return typeof U=="symbol"?U:String(U)}l(a,"are"),e(a,"_toPropertyKey");function n(I,U){if(typeof I!="object"||I===null)return I;var M=I[Symbol.toPrimitive];if(M!==void 0){var ee=M.call(I,U||"default");if(typeof ee!="object")return ee;throw new TypeError("@@toPrimitive must return a primitive value.")}return(U==="string"?String:Number)(I)}l(n,"sre"),e(n,"_toPrimitive");var r=E2(),u=Symbol("lastResolve"),p=Symbol("lastReject"),c=Symbol("error"),d=Symbol("ended"),m=Symbol("lastPromise"),y=Symbol("handlePromise"),w=Symbol("stream");function _(I,U){return{value:I,done:U}}l(_,"To"),e(_,"createIterResult");function S(I){var U=I[u];if(U!==null){var M=I[w].read();M!==null&&(I[m]=null,I[u]=null,I[p]=null,U(_(M,!1)))}}l(S,"fre"),e(S,"readAndResolve");function T(I){process.nextTick(S,I)}l(T,"ure"),e(T,"onReadable");function k(I,U){return function(M,ee){I.then(function(){if(U[d]){M(_(void 0,!0));return}U[y](M,ee)},ee)}}l(k,"cre"),e(k,"wrapForNext");var E=Object.getPrototypeOf(function(){}),j=Object.setPrototypeOf((f={get stream(){return this[w]},next:e(function(){var I=this,U=this[c];if(U!==null)return Promise.reject(U);if(this[d])return Promise.resolve(_(void 0,!0));if(this[w].destroyed)return new Promise(function(q,G){process.nextTick(function(){I[c]?G(I[c]):q(_(void 0,!0))})});var M=this[m],ee;if(M)ee=new Promise(k(M,this));else{var V=this[w].read();if(V!==null)return Promise.resolve(_(V,!1));ee=new Promise(this[y])}return this[m]=ee,ee},"next")},g(f,Symbol.asyncIterator,function(){return this}),g(f,"return",e(function(){var I=this;return new Promise(function(U,M){I[w].destroy(null,function(ee){if(ee){M(ee);return}U(_(void 0,!0))})})},"_return")),f),E),A=e(function(I){var U,M=Object.create(j,(U={},g(U,w,{value:I,writable:!0}),g(U,u,{value:null,writable:!0}),g(U,p,{value:null,writable:!0}),g(U,c,{value:null,writable:!0}),g(U,d,{value:I._readableState.endEmitted,writable:!0}),g(U,y,{value:e(function(ee,V){var q=M[w].read();q?(M[m]=null,M[u]=null,M[p]=null,ee(_(q,!1))):(M[u]=ee,M[p]=V)},"value"),writable:!0}),U));return M[m]=null,r(I,function(ee){if(ee&&ee.code!=="ERR_STREAM_PREMATURE_CLOSE"){var V=M[p];V!==null&&(M[m]=null,M[u]=null,M[p]=null,V(ee)),M[c]=ee;return}var q=M[u];q!==null&&(M[m]=null,M[u]=null,M[p]=null,q(_(void 0,!0))),M[d]=!0}),I.on("readable",T.bind(null,M)),M},"createReadableStreamAsyncIterator");i.exports=A}),z3=Ge((o,i)=>{i.exports=function(){throw new Error("Readable.from is not available in the browser")}}),$C=Ge((o,i)=>{"use strict";i.exports=re;var f;re.ReadableState=G;var g=(PC(),hr(_2)).EventEmitter,a=e(function(D,z){return D.listeners(z).length},"EElistenerCount"),n=LC(),r=(jd(),hr(Sf)).Buffer,u=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function p(D){return r.from(D)}l(p,"mre"),e(p,"_uint8ArrayToBuffer");function c(D){return r.isBuffer(D)||D instanceof u}l(c,"gre"),e(c,"_isUint8Array");var d=NC(),m;d&&d.debuglog?m=d.debuglog("stream"):m=e(function(){},"debug");var y=M3(),w=DC(),_=UC(),S=_.getHighWaterMark,T=rl().codes,k=T.ERR_INVALID_ARG_TYPE,E=T.ERR_STREAM_PUSH_AFTER_EOF,j=T.ERR_METHOD_NOT_IMPLEMENTED,A=T.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,I,U,M;Xs()(re,n);var ee=w.errorOrDestroy,V=["error","close","destroy","pause","resume"];function q(D,z,Ee){if(typeof D.prependListener=="function")return D.prependListener(z,Ee);!D._events||!D._events[z]?D.on(z,Ee):Array.isArray(D._events[z])?D._events[z].unshift(Ee):D._events[z]=[Ee,D._events[z]]}l(q,"Rre"),e(q,"prependListener");function G(D,z,Ee){f=f||Ks(),D=D||{},typeof Ee!="boolean"&&(Ee=z instanceof f),this.objectMode=!!D.objectMode,Ee&&(this.objectMode=this.objectMode||!!D.readableObjectMode),this.highWaterMark=S(this,D,"readableHighWaterMark",Ee),this.buffer=new y,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=D.emitClose!==!1,this.autoDestroy=!!D.autoDestroy,this.destroyed=!1,this.defaultEncoding=D.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,D.encoding&&(I||(I=ZI().StringDecoder),this.decoder=new I(D.encoding),this.encoding=D.encoding)}l(G,"T$"),e(G,"ReadableState");function re(D){if(f=f||Ks(),!(this instanceof re))return new re(D);var z=this instanceof f;this._readableState=new G(D,this,z),this.readable=!0,D&&(typeof D.read=="function"&&(this._read=D.read),typeof D.destroy=="function"&&(this._destroy=D.destroy)),n.call(this)}l(re,"Qe"),e(re,"Readable"),Object.defineProperty(re.prototype,"destroyed",{enumerable:!1,get:e(function(){return this._readableState===void 0?!1:this._readableState.destroyed},"get"),set:e(function(D){this._readableState&&(this._readableState.destroyed=D)},"set")}),re.prototype.destroy=w.destroy,re.prototype._undestroy=w.undestroy,re.prototype._destroy=function(D,z){z(D)},re.prototype.push=function(D,z){var Ee=this._readableState,ke;return Ee.objectMode?ke=!0:typeof D=="string"&&(z=z||Ee.defaultEncoding,z!==Ee.encoding&&(D=r.from(D,z),z=""),ke=!0),ae(this,D,z,!1,ke)},re.prototype.unshift=function(D){return ae(this,D,null,!0,!1)};function ae(D,z,Ee,ke,be){m("readableAddChunk",z);var ge=D._readableState;if(z===null)ge.reading=!1,Te(D,ge);else{var Ne;if(be||(Ne=we(ge,z)),Ne)ee(D,Ne);else if(ge.objectMode||z&&z.length>0)if(typeof z!="string"&&!ge.objectMode&&Object.getPrototypeOf(z)!==r.prototype&&(z=p(z)),ke)ge.endEmitted?ee(D,new A):de(D,ge,z,!0);else if(ge.ended)ee(D,new E);else{if(ge.destroyed)return!1;ge.reading=!1,ge.decoder&&!Ee?(z=ge.decoder.write(z),ge.objectMode||z.length!==0?de(D,ge,z,!1):te(D,ge)):de(D,ge,z,!1)}else ke||(ge.reading=!1,te(D,ge))}return!ge.ended&&(ge.length<ge.highWaterMark||ge.length===0)}l(ae,"F$"),e(ae,"readableAddChunk");function de(D,z,Ee,ke){z.flowing&&z.length===0&&!z.sync?(z.awaitDrain=0,D.emit("data",Ee)):(z.length+=z.objectMode?1:Ee.length,ke?z.buffer.unshift(Ee):z.buffer.push(Ee),z.needReadable&&J(D)),te(D,z)}l(de,"c1"),e(de,"addChunk");function we(D,z){var Ee;return!c(z)&&typeof z!="string"&&z!==void 0&&!D.objectMode&&(Ee=new k("chunk",["string","Buffer","Uint8Array"],z)),Ee}l(we,"Tre"),e(we,"chunkInvalid"),re.prototype.isPaused=function(){return this._readableState.flowing===!1},re.prototype.setEncoding=function(D){I||(I=ZI().StringDecoder);var z=new I(D);this._readableState.decoder=z,this._readableState.encoding=this._readableState.decoder.encoding;for(var Ee=this._readableState.buffer.head,ke="";Ee!==null;)ke+=z.write(Ee.data),Ee=Ee.next;return this._readableState.buffer.clear(),ke!==""&&this._readableState.buffer.push(ke),this._readableState.length=ke.length,this};var Ie=1073741824;function je(D){return D>=Ie?D=Ie:(D--,D|=D>>>1,D|=D>>>2,D|=D>>>4,D|=D>>>8,D|=D>>>16,D++),D}l(je,"Fre"),e(je,"computeNewHighWaterMark");function se(D,z){return D<=0||z.length===0&&z.ended?0:z.objectMode?1:D!==D?z.flowing&&z.length?z.buffer.head.data.length:z.length:(D>z.highWaterMark&&(z.highWaterMark=je(D)),D<=z.length?D:z.ended?z.length:(z.needReadable=!0,0))}l(se,"A$"),e(se,"howMuchToRead"),re.prototype.read=function(D){m("read",D),D=parseInt(D,10);var z=this._readableState,Ee=D;if(D!==0&&(z.emittedReadable=!1),D===0&&z.needReadable&&((z.highWaterMark!==0?z.length>=z.highWaterMark:z.length>0)||z.ended))return m("read: emitReadable",z.length,z.ended),z.length===0&&z.ended?ve(this):J(this),null;if(D=se(D,z),D===0&&z.ended)return z.length===0&&ve(this),null;var ke=z.needReadable;m("need readable",ke),(z.length===0||z.length-D<z.highWaterMark)&&(ke=!0,m("length less than watermark",ke)),z.ended||z.reading?(ke=!1,m("reading or ended",ke)):ke&&(m("do read"),z.reading=!0,z.sync=!0,z.length===0&&(z.needReadable=!0),this._read(z.highWaterMark),z.sync=!1,z.reading||(D=se(Ee,z)));var be;return D>0?be=fe(D,z):be=null,be===null?(z.needReadable=z.length<=z.highWaterMark,D=0):(z.length-=D,z.awaitDrain=0),z.length===0&&(z.ended||(z.needReadable=!0),Ee!==D&&z.ended&&ve(this)),be!==null&&this.emit("data",be),be};function Te(D,z){if(m("onEofChunk"),!z.ended){if(z.decoder){var Ee=z.decoder.end();Ee&&Ee.length&&(z.buffer.push(Ee),z.length+=z.objectMode?1:Ee.length)}z.ended=!0,z.sync?J(D):(z.needReadable=!1,z.emittedReadable||(z.emittedReadable=!0,ue(D)))}}l(Te,"xre"),e(Te,"onEofChunk");function J(D){var z=D._readableState;m("emitReadable",z.needReadable,z.emittedReadable),z.needReadable=!1,z.emittedReadable||(m("emitReadable",z.flowing),z.emittedReadable=!0,process.nextTick(ue,D))}l(J,"Zp"),e(J,"emitReadable");function ue(D){var z=D._readableState;m("emitReadable_",z.destroyed,z.length,z.ended),!z.destroyed&&(z.length||z.ended)&&(D.emit("readable"),z.emittedReadable=!1),z.needReadable=!z.flowing&&!z.ended&&z.length<=z.highWaterMark,Q(D)}l(ue,"x$"),e(ue,"emitReadable_");function te(D,z){z.readingMore||(z.readingMore=!0,process.nextTick(X,D,z))}l(te,"d1"),e(te,"maybeReadMore");function X(D,z){for(;!z.reading&&!z.ended&&(z.length<z.highWaterMark||z.flowing&&z.length===0);){var Ee=z.length;if(m("maybeReadMore read 0"),D.read(0),Ee===z.length)break}z.readingMore=!1}l(X,"Ore"),e(X,"maybeReadMore_"),re.prototype._read=function(D){ee(this,new j("_read()"))},re.prototype.pipe=function(D,z){var Ee=this,ke=this._readableState;switch(ke.pipesCount){case 0:ke.pipes=D;break;case 1:ke.pipes=[ke.pipes,D];break;default:ke.pipes.push(D);break}ke.pipesCount+=1,m("pipe count=%d opts=%j",ke.pipesCount,z);var be=(!z||z.end!==!1)&&D!==process.stdout&&D!==process.stderr,ge=be?xe:v;ke.endEmitted?process.nextTick(ge):Ee.once("end",ge),D.on("unpipe",Ne);function Ne(R,P){m("onunpipe"),R===Ee&&P&&P.hasUnpiped===!1&&(P.hasUnpiped=!0,$e())}l(Ne,"i"),e(Ne,"onunpipe");function xe(){m("onend"),D.end()}l(xe,"f"),e(xe,"onend");var Oe=ye(Ee);D.on("drain",Oe);var Pe=!1;function $e(){m("cleanup"),D.removeListener("close",s),D.removeListener("finish",h),D.removeListener("drain",Oe),D.removeListener("error",t),D.removeListener("unpipe",Ne),Ee.removeListener("end",xe),Ee.removeListener("end",v),Ee.removeListener("data",Ke),Pe=!0,ke.awaitDrain&&(!D._writableState||D._writableState.needDrain)&&Oe()}l($e,"d"),e($e,"cleanup"),Ee.on("data",Ke);function Ke(R){m("ondata");var P=D.write(R);m("dest.write",P),P===!1&&((ke.pipesCount===1&&ke.pipes===D||ke.pipesCount>1&&x(ke.pipes,D)!==-1)&&!Pe&&(m("false write response, pause",ke.awaitDrain),ke.awaitDrain++),Ee.pause())}l(Ke,"y"),e(Ke,"ondata");function t(R){m("onerror",R),v(),D.removeListener("error",t),a(D,"error")===0&&ee(D,R)}l(t,"m"),e(t,"onerror"),q(D,"error",t);function s(){D.removeListener("finish",h),v()}l(s,"g"),e(s,"onclose"),D.once("close",s);function h(){m("onfinish"),D.removeListener("close",s),v()}l(h,"v"),e(h,"onfinish"),D.once("finish",h);function v(){m("unpipe"),Ee.unpipe(D)}return l(v,"_"),e(v,"unpipe"),D.emit("pipe",Ee),ke.flowing||(m("pipe resume"),Ee.resume()),D};function ye(D){return e(function(){var z=D._readableState;m("pipeOnDrain",z.awaitDrain),z.awaitDrain&&z.awaitDrain--,z.awaitDrain===0&&a(D,"data")&&(z.flowing=!0,Q(D))},"pipeOnDrainFunctionResult")}l(ye,"Ire"),e(ye,"pipeOnDrain"),re.prototype.unpipe=function(D){var z=this._readableState,Ee={hasUnpiped:!1};if(z.pipesCount===0)return this;if(z.pipesCount===1)return D&&D!==z.pipes?this:(D||(D=z.pipes),z.pipes=null,z.pipesCount=0,z.flowing=!1,D&&D.emit("unpipe",this,Ee),this);if(!D){var ke=z.pipes,be=z.pipesCount;z.pipes=null,z.pipesCount=0,z.flowing=!1;for(var ge=0;ge<be;ge++)ke[ge].emit("unpipe",this,{hasUnpiped:!1});return this}var Ne=x(z.pipes,D);return Ne===-1?this:(z.pipes.splice(Ne,1),z.pipesCount-=1,z.pipesCount===1&&(z.pipes=z.pipes[0]),D.emit("unpipe",this,Ee),this)},re.prototype.on=function(D,z){var Ee=n.prototype.on.call(this,D,z),ke=this._readableState;return D==="data"?(ke.readableListening=this.listenerCount("readable")>0,ke.flowing!==!1&&this.resume()):D==="readable"&&!ke.endEmitted&&!ke.readableListening&&(ke.readableListening=ke.needReadable=!0,ke.flowing=!1,ke.emittedReadable=!1,m("on readable",ke.length,ke.reading),ke.length?J(this):ke.reading||process.nextTick(De,this)),Ee},re.prototype.addListener=re.prototype.on,re.prototype.removeListener=function(D,z){var Ee=n.prototype.removeListener.call(this,D,z);return D==="readable"&&process.nextTick(Re,this),Ee},re.prototype.removeAllListeners=function(D){var z=n.prototype.removeAllListeners.apply(this,arguments);return(D==="readable"||D===void 0)&&process.nextTick(Re,this),z};function Re(D){var z=D._readableState;z.readableListening=D.listenerCount("readable")>0,z.resumeScheduled&&!z.paused?z.flowing=!0:D.listenerCount("data")>0&&D.resume()}l(Re,"O$"),e(Re,"updateReadableListening");function De(D){m("readable nexttick read 0"),D.read(0)}l(De,"Pre"),e(De,"nReadingNextTick"),re.prototype.resume=function(){var D=this._readableState;return D.flowing||(m("resume"),D.flowing=!D.readableListening,Y(this,D)),D.paused=!1,this};function Y(D,z){z.resumeScheduled||(z.resumeScheduled=!0,process.nextTick(H,D,z))}l(Y,"kre"),e(Y,"resume");function H(D,z){m("resume",z.reading),z.reading||D.read(0),z.resumeScheduled=!1,D.emit("resume"),Q(D),z.flowing&&!z.reading&&D.read(0)}l(H,"Bre"),e(H,"resume_"),re.prototype.pause=function(){return m("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(m("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Q(D){var z=D._readableState;for(m("flow",z.flowing);z.flowing&&D.read()!==null;);}l(Q,"y1"),e(Q,"flow"),re.prototype.wrap=function(D){var z=this,Ee=this._readableState,ke=!1;D.on("end",function(){if(m("wrapped end"),Ee.decoder&&!Ee.ended){var Ne=Ee.decoder.end();Ne&&Ne.length&&z.push(Ne)}z.push(null)}),D.on("data",function(Ne){if(m("wrapped data"),Ee.decoder&&(Ne=Ee.decoder.write(Ne)),!(Ee.objectMode&&Ne==null)&&!(!Ee.objectMode&&(!Ne||!Ne.length))){var xe=z.push(Ne);xe||(ke=!0,D.pause())}});for(var be in D)this[be]===void 0&&typeof D[be]=="function"&&(this[be]=e(function(Ne){return e(function(){return D[Ne].apply(D,arguments)},"methodWrapReturnFunction")},"methodWrap")(be));for(var ge=0;ge<V.length;ge++)D.on(V[ge],this.emit.bind(this,V[ge]));return this._read=function(Ne){m("wrapped _read",Ne),ke&&(ke=!1,D.resume())},this},typeof Symbol=="function"&&(re.prototype[Symbol.asyncIterator]=function(){return U===void 0&&(U=W3()),U(this)}),Object.defineProperty(re.prototype,"readableHighWaterMark",{enumerable:!1,get:e(function(){return this._readableState.highWaterMark},"get")}),Object.defineProperty(re.prototype,"readableBuffer",{enumerable:!1,get:e(function(){return this._readableState&&this._readableState.buffer},"get")}),Object.defineProperty(re.prototype,"readableFlowing",{enumerable:!1,get:e(function(){return this._readableState.flowing},"get"),set:e(function(D){this._readableState&&(this._readableState.flowing=D)},"set")}),re._fromList=fe,Object.defineProperty(re.prototype,"readableLength",{enumerable:!1,get:e(function(){return this._readableState.length},"get")});function fe(D,z){if(z.length===0)return null;var Ee;return z.objectMode?Ee=z.buffer.shift():!D||D>=z.length?(z.decoder?Ee=z.buffer.join(""):z.buffer.length===1?Ee=z.buffer.first():Ee=z.buffer.concat(z.length),z.buffer.clear()):Ee=z.buffer.consume(D,z.decoder),Ee}l(fe,"I$"),e(fe,"fromList");function ve(D){var z=D._readableState;m("endReadable",z.endEmitted),z.endEmitted||(z.ended=!0,process.nextTick(N,z,D))}l(ve,"h1"),e(ve,"endReadable");function N(D,z){if(m("endReadableNT",D.endEmitted,D.length),!D.endEmitted&&D.length===0&&(D.endEmitted=!0,z.readable=!1,z.emit("end"),D.autoDestroy)){var Ee=z._writableState;(!Ee||Ee.autoDestroy&&Ee.finished)&&z.destroy()}}l(N,"Cre"),e(N,"endReadableNT"),typeof Symbol=="function"&&(re.from=function(D,z){return M===void 0&&(M=z3()),M(re,D,z)});function x(D,z){for(var Ee=0,ke=D.length;Ee<ke;Ee++)if(D[Ee]===z)return Ee;return-1}l(x,"P$"),e(x,"indexOf")}),WC=Ge((o,i)=>{"use strict";i.exports=c;var f=rl().codes,g=f.ERR_METHOD_NOT_IMPLEMENTED,a=f.ERR_MULTIPLE_CALLBACK,n=f.ERR_TRANSFORM_ALREADY_TRANSFORMING,r=f.ERR_TRANSFORM_WITH_LENGTH_0,u=Ks();Xs()(c,u);function p(y,w){var _=this._transformState;_.transforming=!1;var S=_.writecb;if(S===null)return this.emit("error",new a);_.writechunk=null,_.writecb=null,w!=null&&this.push(w),S(y);var T=this._readableState;T.reading=!1,(T.needReadable||T.length<T.highWaterMark)&&this._read(T.highWaterMark)}l(p,"Mre"),e(p,"afterTransform");function c(y){if(!(this instanceof c))return new c(y);u.call(this,y),this._transformState={afterTransform:p.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,y&&(typeof y.transform=="function"&&(this._transform=y.transform),typeof y.flush=="function"&&(this._flush=y.flush)),this.on("prefinish",d)}l(c,"Pi"),e(c,"Transform");function d(){var y=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(w,_){m(y,w,_)}):m(this,null,null)}l(d,"Ure"),e(d,"prefinish"),c.prototype.push=function(y,w){return this._transformState.needTransform=!1,u.prototype.push.call(this,y,w)},c.prototype._transform=function(y,w,_){_(new g("_transform()"))},c.prototype._write=function(y,w,_){var S=this._transformState;if(S.writecb=_,S.writechunk=y,S.writeencoding=w,!S.transforming){var T=this._readableState;(S.needTransform||T.needReadable||T.length<T.highWaterMark)&&this._read(T.highWaterMark)}},c.prototype._read=function(y){var w=this._transformState;w.writechunk!==null&&!w.transforming?(w.transforming=!0,this._transform(w.writechunk,w.writeencoding,w.afterTransform)):w.needTransform=!0},c.prototype._destroy=function(y,w){u.prototype._destroy.call(this,y,function(_){w(_)})};function m(y,w,_){if(w)return y.emit("error",w);if(_!=null&&y.push(_),y._writableState.length)throw new r;if(y._transformState.transforming)throw new n;return y.push(null)}l(m,"B$"),e(m,"done")}),H3=Ge((o,i)=>{"use strict";i.exports=g;var f=WC();Xs()(g,f);function g(a){if(!(this instanceof g))return new g(a);f.call(this,a)}l(g,"Ru"),e(g,"PassThrough"),g.prototype._transform=function(a,n,r){r(null,a)}}),q3=Ge((o,i)=>{"use strict";var f;function g(_){var S=!1;return function(){S||(S=!0,_.apply(void 0,arguments))}}l(g,"jre"),e(g,"once");var a=rl().codes,n=a.ERR_MISSING_ARGS,r=a.ERR_STREAM_DESTROYED;function u(_){if(_)throw _}l(u,"$$"),e(u,"noop");function p(_){return _.setHeader&&typeof _.abort=="function"}l(p,"qre"),e(p,"isRequest");function c(_,S,T,k){k=g(k);var E=!1;_.on("close",function(){E=!0}),f===void 0&&(f=E2()),f(_,{readable:S,writable:T},function(A){if(A)return k(A);E=!0,k()});var j=!1;return function(A){if(!E&&!j){if(j=!0,p(_))return _.abort();if(typeof _.destroy=="function")return _.destroy();k(A||new r("pipe"))}}}l(c,"zre"),e(c,"destroyer");function d(_){_()}l(d,"M$"),e(d,"call");function m(_,S){return _.pipe(S)}l(m,"Vre"),e(m,"pipe");function y(_){return!_.length||typeof _[_.length-1]!="function"?u:_.pop()}l(y,"Gre"),e(y,"popCallback");function w(){for(var _=arguments.length,S=new Array(_),T=0;T<_;T++)S[T]=arguments[T];var k=y(S);if(Array.isArray(S[0])&&(S=S[0]),S.length<2)throw new n("streams");var E,j=S.map(function(A,I){var U=I<S.length-1,M=I>0;return c(A,U,M,function(ee){E||(E=ee),ee&&j.forEach(d),!U&&(j.forEach(d),k(E))})});return S.reduce(m)}l(w,"Yre"),e(w,"pipeline"),i.exports=w}),G3=Ge((o,i)=>{o=i.exports=$C(),o.Stream=o,o.Readable=o,o.Writable=MC(),o.Duplex=Ks(),o.Transform=WC(),o.PassThrough=H3(),o.finished=E2(),o.pipeline=q3()});EE();typeof globalThis<"u"&&!globalThis.Buffer&&(globalThis.Buffer=Gs);typeof window<"u"&&!window.Buffer&&(window.Buffer=Gs);EE();l(hE,"S1");e(hE,"fileHandleToFileSystemFileHandle");l(zC,"u8");e(zC,"fileSystemFileHandleToFileWithHandle");l(HC,"fne");e(HC,"getLegitFsAccess");l(Wd,"sy");e(Wd,"unimplemented");bi=[],Ps=!1,Qh=-1;l(qC,"c8");e(qC,"cleanUpNextTick");l(S2,"R1");e(S2,"drainQueue");l(GC,"h8");e(GC,"nextTick");l(A2,"T1");e(A2,"Item");A2.prototype.run=function(){this.fun.apply(null,this.array)};V3="browser",K3="x64",J3="browser",Y3={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},Z3=["/usr/bin/node"],Q3=[],X3="v16.8.0",eD={},tD=e(function(o,i){console.warn((i?i+": ":"")+o)},"emitWarning"),rD=e(function(o){Wd("binding")},"binding"),nD=e(function(o){return 0},"umask"),iD=e(function(){return"/"},"cwd"),oD=e(function(o){},"chdir"),aD={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};l(Sr,"Yt");e(Sr,"noop");sD=Sr,lD=[];l(VC,"O8");e(VC,"_linkedBinding");fD={},uD=!1,cD={};l(KC,"B8");e(KC,"dlopen");l(JC,"C8");e(JC,"_getActiveRequests");l(YC,"L8");e(YC,"_getActiveHandles");hD=Sr,dD=Sr,R2=e(function(){return{}},"cpuUsage"),pD=R2,gD=R2,yD=Sr,mD=Sr,wD=Sr,bD={};l(ZC,"q8");e(ZC,"assert");vD={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},_D=Sr,ED=Sr;l(QC,"Y8");e(QC,"hasUncaughtExceptionCaptureCallback");SD=Sr,AD=Sr,RD=Sr,kD=Sr,OD=Sr,TD=void 0,FD=void 0,BD=void 0,ID=Sr,xD=2,jD=1,CD="/bin/usr/node",PD=9229,LD="node",ND=[],DD=Sr,Gi={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0};Gi.now===void 0&&(Nm=Date.now(),Gi.timing&&Gi.timing.navigationStart&&(Nm=Gi.timing.navigationStart),Gi.now=()=>Date.now()-Nm);l(XC,"c6");e(XC,"uptime");dE=1e9;l(md,"ay");e(md,"hrtime");md.bigint=function(o){var i=md(o);return typeof BigInt>"u"?i[0]*dE+i[1]:BigInt(i[0]*dE)+BigInt(i[1])};UD=10,MD={},$D=0;l(Si,"Ci");e(Si,"on");WD=Si,zD=Si,HD=Si,qD=Si,GD=Si,VD=Sr,KD=Si,JD=Si;l(eP,"S6");e(eP,"listeners");tP={version:X3,versions:eD,arch:K3,platform:J3,release:aD,_rawDebug:sD,moduleLoadList:lD,binding:rD,_linkedBinding:VC,_events:MD,_eventsCount:$D,_maxListeners:UD,on:Si,addListener:WD,once:zD,off:HD,removeListener:qD,removeAllListeners:GD,emit:VD,prependListener:KD,prependOnceListener:JD,listeners:eP,domain:fD,_exiting:uD,config:cD,dlopen:KC,uptime:XC,_getActiveRequests:JC,_getActiveHandles:YC,reallyExit:hD,_kill:dD,cpuUsage:R2,resourceUsage:pD,memoryUsage:gD,kill:yD,exit:mD,openStdin:wD,allowedNodeEnvironmentFlags:bD,assert:ZC,features:vD,_fatalExceptions:_D,setUncaughtExceptionCaptureCallback:ED,hasUncaughtExceptionCaptureCallback:QC,emitWarning:tD,nextTick:GC,_tickCallback:SD,_debugProcess:AD,_debugEnd:RD,_startProfilerIdleNotifier:kD,_stopProfilerIdleNotifier:OD,stdout:TD,stdin:BD,stderr:FD,abort:ID,umask:nD,chdir:oD,cwd:iD,env:Y3,title:V3,argv:Z3,execArgv:Q3,pid:xD,ppid:jD,execPath:CD,debugPort:PD,hrtime:md,argv0:LD,_preload_modules:ND,setSourceMapsEnabled:DD},Dm={},QI=!1;l(rP,"A6");e(rP,"dew");Lr=rP(),E5=Lr._makeLong,XI=Lr.basename,S5=Lr.delimiter,Aa=Lr.dirname,A5=Lr.extname,R5=Lr.format,k5=Lr.isAbsolute,O5=Lr.join,T5=Lr.normalize,F5=Lr.parse,B5=Lr.posix,I5=Lr.relative,x5=Lr.resolve,j5=Lr.sep,C5=Lr.win32,nP=(Ns=class{constructor(i,f){vt(this,"entries",[]),vt(this,"currentIndex",0),vt(this,"closed",!1),vt(this,"compositFs"),vt(this,"dirPath"),vt(this,"initialized",!1),this.compositFs=i,this.dirPath=f}async initialize(){if(this.initialized)return;let i=new Set;for(let f of[...this.compositFs.subFilesystems].reverse()){let g=await f.readdir(this.dirPath);for(let a of g)i.add(a)}for(let f of Array.from(i)){let g=this.dirPath+"/"+f;await this.compositFs.hiddenFilesFileSystem?.responsible(g)||this.entries.push({name:f,path:g})}this.initialized=!0}async*[Symbol.asyncIterator](){for(await this.initialize();this.currentIndex<this.entries.length&&!this.closed;){let i=this.entries[this.currentIndex++];try{let f=await this.compositFs.stat(i.path);yield{name:i.name,isFile:e(()=>f.isFile(),"isFile"),isDirectory:e(()=>f.isDirectory(),"isDirectory"),isBlockDevice:e(()=>f.isBlockDevice(),"isBlockDevice"),isCharacterDevice:e(()=>f.isCharacterDevice(),"isCharacterDevice"),isSymbolicLink:e(()=>f.isSymbolicLink(),"isSymbolicLink"),isFIFO:e(()=>f.isFIFO(),"isFIFO"),isSocket:e(()=>f.isSocket(),"isSocket")}}catch(f){console.debug(`Failed to stat ${i.path}:`,f)}}}async read(){if(this.closed)throw new Error("Directory handle is closed");if(await this.initialize(),this.currentIndex>=this.entries.length)return null;let i=this.entries[this.currentIndex++];try{let f=await this.compositFs.stat(i.path);return{name:i.name,isFile:e(()=>f.isFile(),"isFile"),isDirectory:e(()=>f.isDirectory(),"isDirectory"),isBlockDevice:e(()=>f.isBlockDevice(),"isBlockDevice"),isCharacterDevice:e(()=>f.isCharacterDevice(),"isCharacterDevice"),isSymbolicLink:e(()=>f.isSymbolicLink(),"isSymbolicLink"),isFIFO:e(()=>f.isFIFO(),"isFIFO"),isSocket:e(()=>f.isSocket(),"isSocket")}}catch{return this.read()}}async close(){this.closed=!0,this.entries=[]}get path(){return this.dirPath}},l(Ns,"uy"),Ns);e(nP,"CompositeFsDir");iP=nP,oP=(Ds=class{constructor(i){vt(this,"delegate"),vt(this,"compositeFs"),vt(this,"_subFsFileDescriptor"),vt(this,"handleType","file"),vt(this,"_compositFsFileDescriptor",-1),this.delegate=i.fs,this._subFsFileDescriptor=i.subFsFileDescriptor,this._compositFsFileDescriptor=-1,this.compositeFs=i.compositeFs;let f=this._subFsFileDescriptor}get fsType(){return this.delegate.fileType()}get subFsFileDescriptor(){return this._subFsFileDescriptor}get fd(){return this._compositFsFileDescriptor}realize(i){if(this._compositFsFileDescriptor!==-1)throw new Error("was already realized");this._compositFsFileDescriptor=i}readableWebStream(i){throw new Error("Method not implemented.")}async appendFile(i,f){return await this.compositeFs.logOperationOnFileDescsriptor(this,"appendFile",{data:i,options:f}),await this.delegate.appendFile(this,i,f)}async chmod(i){return await this.compositeFs.logOperationOnFileDescsriptor(this,"chmod",{mode:i}),this.delegate.fchmod(this,i)}async chown(i,f){return await this.compositeFs.logOperationOnFileDescsriptor(this,"chown",{uid:i,gid:f}),this.delegate.fchown(this,i,f)}async close(){return await this.compositeFs.logOperationOnFileDescsriptor(this,"close",{}),this.compositeFs.close(this)}async datasync(){return await this.compositeFs.logOperationOnFileDescsriptor(this,"datasync",{}),this.delegate.dataSync(this)}async read(i,f,g,a){return await this.compositeFs.logOperationOnFileDescsriptor(this,"read",{targetBufferLength:i.length,offset:f,length:g,position:a}),await this.delegate.read(this,i,f,g,a)}async readv(i,f){return await this.compositeFs.logOperationOnFileDescsriptor(this,"readv",{buffers:i,position:f}),this.delegate.readv(this,i,f)}async stat(i){return await this.compositeFs.logOperationOnFileDescsriptor(this,"stat",{options:i}),this.delegate.fstat(this,i)}async truncate(i){return await this.compositeFs.logOperationOnFileDescsriptor(this,"truncate",{len:i}),this.delegate.ftruncate(this,i)}async utimes(i,f){return await this.compositeFs.logOperationOnFileDescsriptor(this,"utimes",{atime:i,mtime:f}),this.delegate.futimes(this,i,f)}async write(i,f,g,a){return await this.compositeFs.logOperationOnFileDescsriptor(this,"write",{buffer:i,offset:f,length:g,position:a}),this.delegate.write(this,i,f,g,a)}async writev(i,f){return await this.compositeFs.logOperationOnFileDescsriptor(this,"writev",{buffers:i,position:f}),this.delegate.writev(this,i,f)}async sync(){return await this.compositeFs.logOperationOnFileDescsriptor(this,"sync",{}),this.delegate.dataSync(this)}},l(Ds,"cy"),Ds);e(oP,"CompositFsFileHandle");zd=oP,ex=$t(Ef(),1),aP=(Us=class{constructor({name:i,parentFs:f,gitRoot:g}){vt(this,"compositFs"),vt(this,"gitRoot"),vt(this,"name"),this.name=i,this.compositFs=f,this.gitRoot=g}toStr(i){return typeof i=="string"?i:Buffer.isBuffer(i)?i.toString():i&&typeof i=="object"&&"fd"in i?`FileHandle(fd=${i.fd})`:String(i)}async open(i,f,g){throw new Error(`open not implemented for: ${this.toStr(i)}`)}async access(i,f){throw new Error(`access not implemented for: ${this.toStr(i)}`)}async stat(i,f){throw new Error(`lstat not implemented for: ${this.toStr(i)}`)}async lstat(i,f){throw new Error(`lstat not implemented for: ${this.toStr(i)}`)}async opendir(i,f){throw new Error(`opendir not implemented for: ${this.toStr(i)}`)}async link(i,f){throw new Error(`link not implemented for: ${this.toStr(i)}`)}async mkdir(i,f){throw new Error(`mkdir not implemented for: ${this.toStr(i)}`)}async readdir(i,f){throw new Error(`readdir not implemented for: ${this.toStr(i)}`)}async readlink(i,...f){throw new Error(`readlink not implemented for: ${this.toStr(i)}`)}async unlink(i){throw new Error(`unlink not implemented for: ${this.toStr(i)}`)}async rename(i,f){throw new Error(`rename not implemented for: ${this.toStr(i)}`)}async rmdir(i,...f){throw new Error(`rmdir not implemented for: ${this.toStr(i)}`)}async symlink(i,f,g){throw new Error(`symlink not implemented for: ${this.toStr(f)}`)}async lookup(i){throw new Error(`lookup not implemented for: ${this.toStr(i)}`)}resolvePath(i){throw new Error(`resolvePath not implemented for fd: ${i}`)}async close(i){this.compositFs.close(i)}async dataSync(i){throw new Error(`dataSync not implemented for: ${i.subFsFileDescriptor}`)}async read(i,f,g,a,n){throw new Error(`read not implemented for: ${i.subFsFileDescriptor}`)}async appendFile(i,f,g){throw new Error(`appendFile not implemented for: ${i.subFsFileDescriptor}`)}async fchmod(i,f){throw new Error(`fchmod not implemented for: ${i.subFsFileDescriptor}`)}async fchown(i,f,g){throw new Error(`fchown not implemented for: ${i.subFsFileDescriptor}`)}async ftruncate(i,f){throw new Error(`ftruncate not implemented for: ${i.subFsFileDescriptor}`)}async fstat(i,f){throw new Error(`fstat not implemented for: ${i.subFsFileDescriptor}`)}async futimes(i,f,g){throw new Error(`futimes not implemented for: ${i.subFsFileDescriptor}`)}async write(i,f,g,a,n){throw new Error(`write not implemented for: ${i.subFsFileDescriptor}`)}async writev(i,f,g){throw new Error(`writev not implemented for: ${i.subFsFileDescriptor}`)}async readv(i,f,g){throw new Error(`readv not implemented for: ${i.subFsFileDescriptor}`)}async readFile(i,f){throw new Error(`readFile not implemented for: ${this.toStr(i)}`)}async writeFile(i,f,g){throw new Error(`writeFile not implemented for: ${this.toStr(i)}`)}},l(Us,"ww"),Us);e(aP,"BaseCompositeSubFs");Tf=aP,sP=(Ms=class extends Tf{constructor({name:i,parentFs:f,gitRoot:g}){if(super({name:i,parentFs:f,gitRoot:g}),vt(this,"openFh",new Map),vt(this,"memFs",(0,ex.createFsFromVolume)(new ex.Volume)),vt(this,"targetFs"),this.compositFs=f,this.gitRoot=g,this.compositFs.parentFs===void 0)throw new Error("PassThroughSubFs not allowed in root fs");this.targetFs=this.compositFs.parentFs}async responsible(i){return!0}fileType(){return 4}async open(i,f,g){let a=Aa(i),n=await this.targetFs.promises.open(i,f,g);return this.openFh.set(n.fd,n),new zd({fs:this,compositeFs:this.compositFs,subFsFileDescriptor:n.fd,parentFsFileDescriptors:[n.fd]})}async access(i,f){return await this.targetFs.promises.access(i,f)}async stat(i,f){return this.targetFs.promises.stat(i,{bigint:!1})}async lstat(i,f){return this.targetFs.promises.lstat(i,{bigint:!1})}async opendir(i,f){return await this.targetFs.promises.opendir(i,f)}async link(i,f){return await this.targetFs.promises.link(i,f)}async mkdir(i,f){let g=typeof i=="string"?i:i.toString();return await this.targetFs.promises.mkdir(g,f)}async readdir(i,...f){return this.targetFs.promises.readdir(i,...f)}async readlink(i,...f){throw new Error("not implemented")}async unlink(i){return await this.targetFs.promises.unlink(i)}async rename(i,f){return await this.targetFs.promises.rename(i,f)}async rmdir(i,f){return await this.targetFs.promises.rmdir(i,f)}async symlink(i,f,g){return await this.targetFs.promises.symlink(i,f,g)}async lookup(i){throw new Error(`lookup is not implemented for: ${this.toStr(i)}`)}async close(i){let f=this.openFh.get(i.subFsFileDescriptor);f&&(await f.close(),this.openFh.delete(i.subFsFileDescriptor))}async dataSync(i){let f=this.openFh.get(i.subFsFileDescriptor);if(f)return await f.sync()}async read(i,f,g,a,n){let r=this.openFh.get(i.subFsFileDescriptor);if(r)return await r.read(f,g,a,n);throw new Error(`File handle not found: ${i.subFsFileDescriptor}`)}async fchmod(i,f){let g=this.openFh.get(i.subFsFileDescriptor);if(g)return await g.chmod(f)}async fchown(i,f,g){let a=this.openFh.get(i.subFsFileDescriptor);if(a)return await a.chown(f,g)}async write(i,f,g,a,n){let r=this.openFh.get(i.subFsFileDescriptor);if(r)return await r.write(f,g,a,n);throw new Error(`File handle not found: ${i.subFsFileDescriptor}`)}async ftruncate(i,f){let g=this.openFh.get(i.subFsFileDescriptor);if(g)return await g.truncate(f)}resolvePath(i){throw new Error(`resolvePath is not implemented: resolvePath(${i})`)}async fstat(i,f){let g=this.openFh.get(i.subFsFileDescriptor);if(g)return await g.stat(f);throw new Error(`File handle not found: ${i.subFsFileDescriptor}`)}async futimes(i,f,g){let a=this.openFh.get(i.subFsFileDescriptor);if(a)return await a.utimes(f,g)}async writev(i,f,g){let a=this.openFh.get(i.subFsFileDescriptor);if(a)return await a.writev(f,g??void 0);throw new Error(`File handle not found: ${i.subFsFileDescriptor}`)}async readv(i,f,g){let a=this.openFh.get(i.subFsFileDescriptor);if(a)return await a.readv(f,g??void 0);throw new Error(`File handle not found: ${i.subFsFileDescriptor}`)}async readFile(i,f){return typeof i=="string"||Buffer.isBuffer(i)?this.targetFs.readFile(i.toString(),f):super.readFile(i,f)}async writeFile(i,f,g){let a=typeof g=="object"&&g.flag?g.flag:"w",n=await this.targetFs.open(i,a);try{let r;if(typeof f=="string"){let u=typeof g=="object"&&g.encoding?g.encoding:"utf8";r=Buffer.from(f,u)}else Buffer.isBuffer(f)?r=f:r=Buffer.from(f);await n.write(r,0,r.length,0)}finally{await this.targetFs.close(n)}}},l(Ms,"vw"),Ms);e(sP,"PassThroughSubFs");lP=sP,tx=$t(Ef(),1),fP=($s=class extends Tf{constructor({name:i,parentFs:f,gitRoot:g,passThroughFs:a}){super({name:i,parentFs:f,gitRoot:g}),vt(this,"openFh",new Map),vt(this,"memFs",(0,tx.createFsFromVolume)(new tx.Volume)),vt(this,"targetFs"),this.compositFs=f,this.gitRoot=g,this.targetFs=a}async responsible(i){return!0}fileType(){return 4}async open(i,f,g){let a=Aa(i),n=await this.targetFs.promises.open(i,f,g);return this.openFh.set(n.fd,n),new zd({fs:this,compositeFs:this.compositFs,subFsFileDescriptor:n.fd,parentFsFileDescriptors:[]})}async access(i,f){return await this.targetFs.promises.access(i,f)}async stat(i,...f){return this.targetFs.promises.stat(i,{bigint:!1})}async lstat(i,...f){return this.targetFs.promises.lstat(i,{bigint:!1})}async opendir(i,f){let g=await this.targetFs.promises.opendir(i,f);return new iP(this.compositFs,i.toString())}async link(i,f){return await this.targetFs.promises.link(i,f)}async mkdir(i,f){await this.targetFs.promises.mkdir(i,f)}async readdir(i,...f){return this.targetFs.promises.readdir(i,...f)}async readlink(i,...f){throw new Error("not implemented")}async unlink(i){return await this.targetFs.promises.unlink(i)}async rename(i,f){return await this.targetFs.promises.rename(i,f)}async rmdir(i,f){return await this.targetFs.promises.rmdir(i,f)}async symlink(i,f,g){return await this.targetFs.promises.symlink(i,f,g)}async lookup(i){throw new Error(`lookup is not implemented for: ${this.toStr(i)}`)}async close(i){let f=this.openFh.get(i.subFsFileDescriptor);f&&(this.openFh.delete(i.subFsFileDescriptor),await f.close())}async dataSync(i){let f=this.openFh.get(i.subFsFileDescriptor);if(f)return await f.sync()}async read(i,f,g,a,n){let r=this.openFh.get(i.subFsFileDescriptor);if(r)return await r.read(f,g,a,n);throw new Error(`File handle not found: ${i.subFsFileDescriptor}`)}async fchmod(i,f){let g=this.openFh.get(i.subFsFileDescriptor);if(g)return await g.chmod(f)}async fchown(i,f,g){let a=this.openFh.get(i.subFsFileDescriptor);if(a)return await a.chown(f,g)}async write(i,f,g,a,n){let r=this.openFh.get(i.subFsFileDescriptor);if(r)return await r.write(f,g,a,n);throw new Error(`File handle not found: ${i.subFsFileDescriptor}`)}async ftruncate(i,f){let g=this.openFh.get(i.subFsFileDescriptor);if(g)return await g.truncate(f)}resolvePath(i){throw new Error(`resolvePath is not implemented: resolvePath(${i})`)}async fstat(i,f){let g=this.openFh.get(i.subFsFileDescriptor);if(g)return await g.stat(f);throw new Error(`File handle not found: ${i.subFsFileDescriptor}`)}async futimes(i,f,g){let a=this.openFh.get(i.subFsFileDescriptor);if(a)return await a.utimes(f,g)}async writev(i,f,g){let a=this.openFh.get(i.subFsFileDescriptor);if(a)return await a.writev(f,g??void 0);throw new Error(`File handle not found: ${i.subFsFileDescriptor}`)}async readv(i,f,g){let a=this.openFh.get(i.subFsFileDescriptor);if(a)return await a.readv(f,g??void 0);throw new Error(`File handle not found: ${i.subFsFileDescriptor}`)}async readFile(i,f){return this.targetFs.promises.readFile(i,f)}async writeFile(i,f,g){return this.targetFs.promises.writeFile(i,f,g)}},l($s,"bw"),$s);e(fP,"PassThroughToAsyncFsSubFs");YD=fP,uP=(Ws=class{constructor({name:i,parentFs:f,storageFs:g,gitRoot:a,defaultBranch:n="main"}){if(vt(this,"promises"),vt(this,"gitRoot"),vt(this,"ephemeralFilesFileSystem"),vt(this,"hiddenFilesFileSystem"),vt(this,"passThroughFileSystem"),vt(this,"subFilesystems",[]),vt(this,"parentFs"),vt(this,"name"),vt(this,"defaultBranch"),vt(this,"pathToFileDescriptors",new Map),vt(this,"openFileHandles",new Map),vt(this,"logOperation"),this.name=i,this.parentFs=f,this.gitRoot=a,this.defaultBranch=n,this.promises={access:this.access.bind(this),opendir:this.opendir.bind(this),mkdir:this.mkdir.bind(this),readdir:this.readdir.bind(this),open:this.open.bind(this),stat:this.stat.bind(this),lstat:this.lstat.bind(this),link:this.link.bind(this),readlink:this.readlink.bind(this),unlink:this.unlink.bind(this),rename:this.rename.bind(this),rmdir:this.rmdir.bind(this),symlink:this.symlink.bind(this),readFile:this.readFile.bind(this),writeFile:this.writeFile.bind(this),getFilehandle:this.getFilehandle.bind(this)},!f&&g){this.passThroughFileSystem=new YD({name:i+"-passthrough",passThroughFs:g,gitRoot:a,parentFs:this});return}if(!g&&f){this.passThroughFileSystem=new lP({name:i+"-passthrough",parentFs:this,gitRoot:a});return}throw new Error("invalid configuration")}getNextFileDescriptor(){let i=Array.from(this.openFileHandles.keys());return i.length===0?1:Math.max(...i)+1}setLoggger(i){this.logOperation=i}async logOperationOnFileDescsriptor(i,f,g){if(!this.logOperation)return;let a=[];for(let[n,r]of this.pathToFileDescriptors.entries())r.includes(i.fd)&&a.push(n);if(a.length!==0)return this.logOperation?.({fsName:i.delegate.name,fd:i,path:a[0],operation:f,operationArgs:g})}getFilehandle(i){return this.openFileHandles.get(i)}setEphemeralFilesSubFs(i){this.ephemeralFilesFileSystem=i}setHiddenFilesSubFs(i){this.hiddenFilesFileSystem=i}addSubFs(i){this.subFilesystems.push(i)}async getResponsibleFs(i){if(!i.toString().startsWith(this.gitRoot)&&this.gitRoot!=="./")throw new Error("tried to access a file ("+i+") outside of the legit folder: "+this.gitRoot);if(!this.hiddenFilesFileSystem)throw new Error(this.name+" intialize hidden fs first!");if(!this.ephemeralFilesFileSystem)throw new Error(this.name+" intialize ephemeral fs first!");if(await this.hiddenFilesFileSystem.responsible(i.toString()))return this.hiddenFilesFileSystem;if(await this.ephemeralFilesFileSystem.responsible(i.toString()))return this.ephemeralFilesFileSystem;for(let f of this.subFilesystems)if(await f.responsible(i.toString()))return f;return this.passThroughFileSystem}async access(i,f){let g=await this.getResponsibleFs(i);return await this.logOperation?.({fsName:g.name,path:i,operation:"access",operationArgs:{mode:f}}),g.access(i,f)}async opendir(i,f){await this.logOperation?.({fsName:this.name,path:i.toString(),operation:"opendir",operationArgs:{options:f}});let g=i.toString();if(!g.startsWith(this.gitRoot))throw new Error("tried to access a directory ("+g+") outside of the legit folder: "+this.gitRoot);return new iP(this,g)}async mkdir(i,f){let g=await this.getResponsibleFs(i);return await this.logOperation?.({fsName:g.name,path:i.toString(),operation:"mkdir",operationArgs:{options:f}}),g.mkdir(i,f)}async readdir(i,f){await this.logOperation?.({fsName:this.name,path:i.toString(),operation:"readdir",operationArgs:{options:f}});let g=new Set;for(let a of[...this.subFilesystems].reverse()){let n=await a.readdir(i,f);for(let r of n)await this.ephemeralFilesFileSystem?.responsible((i=="/"?"":i)+"/"+r)||g.add(r)}try{let a=await this.passThroughFileSystem.readdir(i,f);for(let n of a)await this.ephemeralFilesFileSystem?.responsible((i=="/"?"":i)+"/"+n)||g.add(n)}catch(a){if(a.code!=="ENOENT")throw new Error("error reading ephemeral fs: "+a)}try{let a=await this.ephemeralFilesFileSystem.readdir(i,f);for(let n of a)g.add(n)}catch(a){if(a.code!=="ENOENT")throw new Error("error reading ephemeral fs: "+a)}for(let a of g){let n=(i=="/"?"":i)+"/"+a;await this.hiddenFilesFileSystem.responsible(n)&&g.delete(a)}return Array.from(g)}async open(i,f,g){let a=await this.getResponsibleFs(i);await this.logOperation?.({fsName:a.name,path:i,operation:"open",operationArgs:{flags:f,mode:g}});let n=await a.open(i,f,g),r=this.getNextFileDescriptor();return n.realize(r),this.openFileHandles.set(r,n),this.pathToFileDescriptors.get(i)||this.pathToFileDescriptors.set(i,[]),this.pathToFileDescriptors.get(i).push(r),n}async close(i){try{await i.delegate.close(i)}catch(f){throw f}finally{for(let[f,g]of this.pathToFileDescriptors.entries()){let a=g.indexOf(i.fd);if(a!==-1){g.splice(a,1),g.length===0&&this.pathToFileDescriptors.delete(f);break}}this.openFileHandles.delete(i.fd)}}async stat(i,f){let g=i.toString(),a=await this.getResponsibleFs(i);return await this.logOperation?.({fsName:a.name,path:g,operation:"stat",operationArgs:{opts:f}}),a.stat(i)}async lstat(i,f){let g=await this.getResponsibleFs(i);return await this.logOperation?.({fsName:g.name,path:i.toString(),operation:"lstat",operationArgs:{opts:f}}),g.lstat(i,f)}async link(i,f){throw new Error("not implemented")}async readlink(i,f){throw new Error("not implemented")}async unlink(i){let f=await this.getResponsibleFs(i);return await this.logOperation?.({fsName:f.name,path:i.toString(),operation:"unlink",operationArgs:{}}),f.unlink(i)}async rename(i,f){if(this.hiddenFilesFileSystem){if(await this.hiddenFilesFileSystem.responsible(XI(i.toString())))throw new Error("Renaming of hidden Files is not allowed "+i);if(await this.hiddenFilesFileSystem.responsible(XI(f.toString())))throw new Error("Renaming to hidden Files is not allowed "+f)}let g=await this.getResponsibleFs(i),a=await this.getResponsibleFs(f);if(g===a)return await this.logOperation?.({fsName:g.name,path:i.toString(),operation:"rename",operationArgs:{oldPath:i,newPath:f}}),g.rename(i,f);let n=await g.open(i.toString(),"r");try{let r=await g.fstat(n),u=Buffer.alloc(r.size);await g.read(n,u,0,r.size,0),await g.close(n),await a.writeFile(f.toString(),u,"utf8"),await g.unlink(i)}catch(r){try{await g.close(n)}catch{}throw r}}async rmdir(i,f){let g=await this.getResponsibleFs(i);return await this.logOperation?.({fsName:g.name,path:i.toString(),operation:"rmdir",operationArgs:{dirPath:i,options:f}}),g.rmdir(i,f)}async symlink(i,f,g){throw new Error("not implemented")}async readFile(i,f){await this.logOperation?.({fsName:this.name,path:i.toString(),operation:"readFile",operationArgs:{path:i,options:f}});let g=!0,a;if(typeof i=="number"){g=!1;let n=this.getFilehandle(i);if(!n)throw new Error("Invalid file descriptor");a=n}else if(typeof i=="string")a=await this.open(i,"r");else throw new Error("only filehandle and path are supported atm");try{let n=(await a.stat()).size;if(typeof n=="bigint"){if(n>BigInt(Number.MAX_SAFE_INTEGER))throw new Error("File too large to read into buffer");n=Number(n)}let r=Buffer.alloc(n),{bytesRead:u}=await a.read(r,0,n,0);if(f&&typeof f.encoding=="string")return r.slice(0,u).toString(f.encoding);if(typeof f=="string"){if(f==="utf8"||f==="utf-8")return r.slice(0,u).toString(f);throw new Error("Unsupported encoding: "+f)}return r.slice(0,u)}finally{a&&g&&await a.close()}}async writeFile(i,f,g){await this.logOperation?.({fsName:this.name,path:i.toString(),operation:"writeFile",operationArgs:{data:f,options:g}});let a=typeof i!="number",n,r,u,p="w";if(typeof g=="string"?r=g:g&&typeof g=="object"&&(r=g.encoding,u=g.mode,p=g.flag||"w"),typeof i=="number"){let c=this.getFilehandle(i);if(!c)throw new Error("Invalid file descriptor");n=c}else if(typeof i=="string")n=await this.open(i,p,u);else throw new Error("only filehandle and path are supported atm");try{let c;if(typeof f=="string")c=Buffer.from(f,r||"utf8");else if(f instanceof Buffer)c=f;else if(f instanceof Uint8Array)c=Buffer.from(f);else throw new Error("Invalid data type for writeFile");let d=0;for(;d<c.length;){let{bytesWritten:m}=await n.write(c,d,c.length-d,d);d+=m}}finally{n&&a&&await n.close()}}},l(Ws,"_w"),Ws);e(uP,"CompositeFs");pE=uP,ZD=$t(Dj(),1),cP=(zs=class extends Tf{constructor({name:i,parentFs:f,gitRoot:g,hiddenFiles:a}){super({name:i,parentFs:f,gitRoot:g}),vt(this,"ig"),this.ig=(0,ZD.default)(),this.ig.add(a)}async responsible(i){let f=i.replace(/\\/g,"/"),g=f.startsWith("./")?f.slice(2):f;return g=g.startsWith("/")?g.slice(1):g,g===""||g==="."?!1:this.ig.ignores(g)}fileType(){return 255}error(i){return new Error(`Access to hidden file is not allowed: ${this.toStr(i)}`)}async open(i,f,g){throw this.error(i)}async access(i){throw this.error(i)}async stat(i){throw this.error(i)}async lstat(i){throw this.error(i)}async opendir(i){throw this.error(i)}async link(i){throw this.error(i)}async mkdir(i){throw this.error(i)}async readdir(i){throw this.error(i)}async readlink(i){throw this.error(i)}async unlink(i){throw this.error(i)}async rename(i){throw this.error(i)}async rmdir(i){throw this.error(i)}async symlink(i,f){throw this.error(f)}async lookup(i){throw this.error(i)}resolvePath(i){throw new Error(`Access to hidden file is not allowed: resolvePath(${i})`)}async close(i){throw new Error("Access to hidden file is not allowed: close: "+i.subFsFileDescriptor)}async dataSync(i){throw new Error("Access to hidden file is not allowed: dataSync: "+i.subFsFileDescriptor)}async read(i,f,g,a,n){throw new Error("Access to hidden file is not allowed: readFileHandle: "+i.subFsFileDescriptor)}},l(zs,"kw"),zs);e(cP,"HiddenFileSubFs");gE=cP,rx=$t(Ef(),1),QD=$t(Dj(),1),hP=(Hs=class extends Tf{constructor({name:i,parentFs:f,gitRoot:g,ephemeralPatterns:a}){super({name:i,parentFs:f,gitRoot:g}),vt(this,"openFh",new Map),vt(this,"memFs",(0,rx.createFsFromVolume)(new rx.Volume)),vt(this,"ig"),vt(this,"patterns"),this.compositFs=f,this.gitRoot=g,this.ig=(0,QD.default)(),this.ig.add(a),this.patterns=a}normalizePath(i){let f=typeof i=="string"?i:i.toString();return f.startsWith("/")?f:"/"+f}async responsible(i){let f=i.replace(/\\/g,"/"),g=f.startsWith("./")?f.slice(2):f;return g=g.startsWith("/")?g.slice(1):g,g===""||g==="."?!1:this.ig.ignores(g)}fileType(){return 5}async open(i,f,g){let a=this.normalizePath(i),n=Aa(a);n&&n!=="/"&&n!=="."&&await this.memFs.promises.mkdir(n,{recursive:!0});let r=await this.memFs.promises.open(a,f,g);return this.openFh.set(r.fd,r),new zd({fs:this,compositeFs:this.compositFs,subFsFileDescriptor:r.fd,parentFsFileDescriptors:[r.fd]})}async access(i,f){let g=this.normalizePath(i);return await this.memFs.promises.access(g,f)}async stat(i,f){let g=this.normalizePath(i);return this.memFs.promises.stat(g,{bigint:!1})}async lstat(i,f){let g=this.normalizePath(i);return this.memFs.promises.lstat(g,{bigint:!1})}async opendir(i,f){let g=this.normalizePath(i);return await this.memFs.promises.opendir(g,f)}async link(i,f){let g=this.normalizePath(i),a=this.normalizePath(f);return await this.memFs.promises.link(g,a)}async mkdir(i,f){let g=this.normalizePath(i);if(!(typeof f=="object"&&f&&"recursive"in f&&f.recursive)){let a=Aa(g);if(a&&a!=="/"&&a!==".")try{await this.memFs.promises.stat(a)}catch{await this.memFs.promises.mkdir(a,{recursive:!0})}}await this.memFs.promises.mkdir(g,f)}async readdir(i,...f){let g=this.normalizePath(i),a=await this.memFs.promises.readdir(g,...f);return console.log("EPHEMERAL: READDIR: ",a),a}async readlink(i){throw new Error("readlink is not implemented for EphemeralFileSubFs")}async unlink(i){let f=this.normalizePath(i);return await this.memFs.promises.unlink(f)}async rename(i,f){let g=this.normalizePath(i),a=this.normalizePath(f);return await this.memFs.promises.rename(g,a)}async rmdir(i,f){let g=this.normalizePath(i);return await this.memFs.promises.rmdir(g,f)}async symlink(i,f,g){let a=this.normalizePath(i),n=this.normalizePath(f);return await this.memFs.promises.symlink(a,n,g)}async lookup(i){throw new Error(`lookup is not implemented for: ${this.toStr(i)}`)}async close(i){let f=this.openFh.get(i.subFsFileDescriptor);f&&(await f.close(),this.openFh.delete(i.subFsFileDescriptor))}async dataSync(i){let f=this.openFh.get(i.subFsFileDescriptor);if(f)return await f.datasync()}async read(i,f,g,a,n){let r=this.openFh.get(i.subFsFileDescriptor);if(r)return await r.read(f,g,a,n);throw new Error(`File handle not found: ${i.subFsFileDescriptor}`)}async fchmod(i,f){let g=this.openFh.get(i.subFsFileDescriptor);if(g)return await g.chmod(f)}async fchown(i,f,g){let a=this.openFh.get(i.subFsFileDescriptor);if(a)return await a.chown(f,g)}async write(i,f,g,a,n){let r=this.openFh.get(i.subFsFileDescriptor);if(r)return await r.write(f,g,a,n);throw new Error(`File handle not found: ${i.subFsFileDescriptor}`)}async ftruncate(i,f){let g=this.openFh.get(i.subFsFileDescriptor);if(g)return await g.truncate(f)}resolvePath(i){throw new Error(`resolvePath is not implemented: resolvePath(${i})`)}async fstat(i,f){let g=this.openFh.get(i.subFsFileDescriptor);if(g)return await g.stat(f);throw new Error(`File handle not found: ${i.subFsFileDescriptor}`)}async futimes(i,f,g){let a=this.openFh.get(i.subFsFileDescriptor);if(a)return await a.utimes(f,g)}async writev(i,f,g){let a=this.openFh.get(i.subFsFileDescriptor);if(a)return await a.writev(f,g??void 0);throw new Error(`File handle not found: ${i.subFsFileDescriptor}`)}async readv(i,f,g){let a=this.openFh.get(i.subFsFileDescriptor);if(a)return await a.readv(f,g??void 0);throw new Error(`File handle not found: ${i.subFsFileDescriptor}`)}async readFile(i,f){if(typeof i=="string"||Buffer.isBuffer(i)){let g=this.normalizePath(i);return this.memFs.promises.readFile(g,f)}return super.readFile(i,f)}async writeFile(i,f,g){let a=this.normalizePath(i),n=Aa(a);return n&&n!=="/"&&n!=="."&&await this.memFs.promises.mkdir(n,{recursive:!0}),this.memFs.promises.writeFile(a,f,g)}},l(Hs,"Bw"),Hs);e(hP,"EphemeralSubFs");yE=hP,nx=$t(dr(),1),ix=$t(Ef(),1),ox=$t(dr(),1),xn=$t(dr(),1),XD=new Set([" ","~","^",":","?","*","[","\\"]),e5=[/^\/|\/$/,/\/\//,/\.$/,/\.lock$/,/^@$/,/@\{/],dP="\u2002";l(mE,"oB");e(mE,"isValidChar");l(pP,"sB");e(pP,"encodeName");l(gP,"lB");e(gP,"decodeName");l(wd,"eu");e(wd,"encodeBranchNameForVfs");l(mn,"Lr");e(mn,"decodeBranchNameFromVfs");l(Er,"Ft");e(Er,"tryResolveRef");l(mi,"pi");e(mi,"buildUpdatedTree");l(Ls,"ca");e(Ls,"resolveGitObjAtPath");l(Fa,"yi");e(Fa,"toDirEntry");yP={type:"gitBranchesListVirtualFile",rootType:"folder",getStats:e(async({gitRoot:o,nodeFs:i})=>{let f=o+"/.git";try{return await i.stat(f)}catch{throw new Error(`ENOENT: no such file or directory, stat '${f}'`)}},"getStats"),getFile:e(async({gitRoot:o,nodeFs:i,filePath:f})=>{try{let g=await ox.default.listBranches({fs:i,dir:o}),a=await Promise.all(g.map(async n=>{let r=await ox.default.resolveRef({fs:i,dir:o,ref:n});return Fa({parent:f,name:wd(n),isDir:!0})}));return{type:"directory",content:a,mode:493,size:a}}catch(g){throw g}},"getFile"),rename:e(async o=>{throw new Error("not implemented")},"rename"),mkdir:e(async function(o){throw new Error("not implemented")},"mkdir")},Bt=$t(dr(),1),mP=(Ra=class extends Error{constructor(i,f){super(i),vt(this,"code","ENOENT"),vt(this,"path"),this.name="ENOENTError",this.path=f,Object.setPrototypeOf(this,Ra.prototype)}},l(Ra,"Dd"),Ra);e(mP,"ENOENTError");wE=mP,bE=$t(dr(),1);l(Vt,"nt");e(Vt,"getCurrentBranch");l(wP,"fB");e(wP,"setCurrentBranch");bd={type:"gitBranchFileVirtualFile",rootType:"folder",getStats:e(async({gitRoot:o,nodeFs:i,filePath:f,cacheFs:g,pathParams:a})=>{a.branchName===void 0&&(a.branchName=await Vt(o,i));let n=await Er(i,o,a.branchName);if(!n)throw new wE(`ENOENT: no such file or directory, stat '${f}'`,f);let r=await Ls({filePath:f,gitRoot:o,nodeFs:i,commitSha:n,pathParams:a});if(!r)throw new wE(`ENOENT: no such file or directory, stat '${f}'`,f);let u=await Bt.default.readCommit({fs:i,dir:o,oid:n}),{commit:p}=u,c=await Bt.default.log({fs:i,dir:o,ref:n,filepath:a.filePath,depth:1}),d=p.committer.timestamp*1e3,m=c.length>0?c[0].commit.committer.timestamp*1e3:d;if(r.type==="tree")return{mode:420,size:0,isFile:e(()=>!0,"isFile"),isDirectory:e(()=>!0,"isDirectory"),isSymbolicLink:e(()=>!1,"isSymbolicLink"),isBlockDevice:e(()=>!1,"isBlockDevice"),isCharacterDevice:e(()=>!1,"isCharacterDevice"),isSocket:e(()=>!1,"isSocket"),isFIFO:e(()=>!1,"isFIFO"),isFileSync:e(()=>!0,"isFileSync"),isDirectorySync:e(()=>!1,"isDirectorySync"),dev:0,ino:0,nlink:1,uid:0,gid:0,rdev:0,blksize:4096,blocks:0,atimeMs:m,mtimeMs:m,ctimeMs:m,birthtimeMs:d,atime:new Date(m),mtime:new Date(m),ctime:new Date(m),birthtime:new Date(m)};{let{blob:y}=await Bt.default.readBlob({fs:i,dir:o,oid:r.oid});return{mode:420,size:y.length,isFile:e(()=>!0,"isFile"),isDirectory:e(()=>!1,"isDirectory"),isSymbolicLink:e(()=>!1,"isSymbolicLink"),isBlockDevice:e(()=>!1,"isBlockDevice"),isCharacterDevice:e(()=>!1,"isCharacterDevice"),isSocket:e(()=>!1,"isSocket"),isFIFO:e(()=>!1,"isFIFO"),isFileSync:e(()=>!0,"isFileSync"),isDirectorySync:e(()=>!1,"isDirectorySync"),dev:0,ino:0,nlink:1,uid:0,gid:0,rdev:0,blksize:4096,blocks:Math.ceil(y.length/4096),atimeMs:m,mtimeMs:m,ctimeMs:m,birthtimeMs:m,atime:new Date(m),mtime:new Date(m),ctime:new Date(m),birthtime:new Date(m)}}},"getStats"),getFile:e(async({filePath:o,gitRoot:i,nodeFs:f,cacheFs:g,pathParams:a})=>{a.branchName===void 0&&(a.branchName=await Vt(i,f));try{let n=await Er(f,i,a.branchName);if(!n){let u=await Bt.default.resolveRef({fs:f,dir:i,ref:"HEAD"});await Bt.default.branch({fs:f,dir:i,ref:a.branchName,object:u}),n=await Bt.default.resolveRef({fs:f,ref:`refs/heads/${a.branchName}`,dir:i})}let r=await Ls({filePath:o,gitRoot:i,nodeFs:f,commitSha:n,pathParams:a});if(!r)return;if(r.type==="blob"){let{blob:u}=await Bt.default.readBlob({fs:f,dir:i,oid:r.oid});return{type:"file",content:Buffer.from(u),mode:420,size:u.length,oid:r.oid}}else{let u=[];try{let p=await g.promises.stat(o);if(p&&p.isDirectory()){let c=await g.promises.readdir(o,{withFileTypes:!0});u.push(...c)}}catch{}return{type:"directory",content:Array.from(new Set([...u,...r.entries])).map(p=>({...p,name:p.name.toString(),path:`${o}`,parentPath:`${o}`})),mode:493}}}catch{return}},"getFile"),unlink:e(async({filePath:o,gitRoot:i,nodeFs:f,cacheFs:g,pathParams:a,author:n})=>{if(a.branchName===void 0&&(a.branchName=await Vt(i,f)),!a.filePath)throw new Error("filePath should be in pathParams");let r=await Er(f,i,a.branchName);if(!r)throw new Error("Invalid branch file path - branch must exist");let u=await Bt.default.readTree({fs:f,dir:i,oid:r}),p=await mi({dir:i,fs:f,treeOid:u.oid,deletePathParts:a.filePath.split("/"),addPathParts:void 0,addObj:void 0,deleteKeepIfNotEmpty:!1,addKeepIfEmpty:!0,keepFilename:".keep"});if(p!==u.oid){let c=await Bt.default.commit({fs:f,dir:i,message:`Delete ${a.filePath}`,tree:p,noUpdateBranch:!0,parent:[r],author:n});await Bt.default.writeRef({fs:f,dir:i,ref:`refs/heads/${mn(a.branchName)}`,value:c,force:!0})}},"unlink"),writeFile:e(async({filePath:o,gitRoot:i,nodeFs:f,content:g,cacheFs:a,pathParams:n,author:r})=>{if(n.branchName===void 0&&(n.branchName=await Vt(i,f)),n.filePath===void 0)throw new Error("filePath should be in pathParams");let u;typeof g=="string"?u=new TextEncoder().encode(g):u=new Uint8Array(g);let p=await Bt.default.writeBlob({fs:f,dir:i,blob:u}),c=await Er(f,i,n.branchName);if(!c){let y=await Bt.default.resolveRef({fs:f,dir:i,ref:"HEAD"});if(await Bt.default.branch({fs:f,dir:i,ref:mn(n.branchName),object:y}),c=await Er(f,i,n.branchName),!c)throw new Error("Could not create branch for writeFile")}let d=await Bt.default.readTree({fs:f,dir:i,oid:c}),m=await mi({dir:i,fs:f,treeOid:d.oid,deletePathParts:void 0,addPathParts:n.filePath.split("/"),addObj:{type:"blob",oid:p},deleteKeepIfNotEmpty:!0,addKeepIfEmpty:!1,keepFilename:".keep"});if(m!==d.oid){let y=await Bt.default.commit({fs:f,dir:i,message:`\u{1F4BE} Change '${n.filePath}'`,tree:m,noUpdateBranch:!0,parent:[c],author:r});await Bt.default.writeRef({fs:f,dir:i,ref:`refs/heads/${mn(n.branchName)}`,value:y,force:!0})}},"writeFile"),rename:e(async function({filePath:o,newPath:i,gitRoot:f,nodeFs:g,pathParams:a,newPathParams:n,author:r}){if(a.branchName===void 0&&(a.branchName=await Vt(f,g)),a.filePath===void 0)throw new Error("filePath should be in pathParams");if(n.branchName===void 0&&(n.branchName=await Vt(f,g)),n.filePath===void 0)throw new Error("filePath should be in newPathParams");let u=await Er(g,f,a.branchName);if(!u)throw new Error("Invalid branch file path - source branch must exist");let p=await Er(g,f,n.branchName);if(!p){let y=await Bt.default.resolveRef({fs:g,dir:f,ref:"HEAD"});if(await Bt.default.branch({fs:g,dir:f,ref:mn(n.branchName),object:y}),p=await Er(g,f,n.branchName),p===void 0)throw new Error("Could not create branch for rename operation")}if(n.branchName!==a.branchName)throw new Error("cross branch move not implemented yet");let c=await Ls({gitRoot:f,nodeFs:g,commitSha:u,filePath:o,pathParams:a});if(c===void 0)throw new Error("no obj at path exists");let d=await mi({dir:f,fs:g,deletePathParts:a.filePath.split("/"),addPathParts:n.filePath.split("/"),addObj:c.type==="blob"?{type:"blob",oid:c.oid}:{type:"tree",oid:c.oid,entries:c.entries.map(y=>y.name.toString())},treeOid:p,addKeepIfEmpty:!0,deleteKeepIfNotEmpty:!0}),m=await Bt.default.readTree({fs:g,dir:f,oid:u});if(d!==m.oid){let y=await Bt.default.commit({fs:g,dir:f,message:`\u{1F500} Rename '${a.filePath}' to '${n.filePath}'`,tree:d,noUpdateBranch:!0,parent:[p],author:r});await Bt.default.writeRef({fs:g,dir:f,ref:`refs/heads/${mn(n.branchName)}`,value:y,force:!0})}},"rename"),mkdir:e(async function(o){if(o.pathParams.branchName===void 0&&(o.pathParams.branchName=await Vt(o.gitRoot,o.nodeFs)),o.pathParams.filePath===void 0)throw new Error("filePath should be in pathParams");try{throw await bd.getStats(o),new Error("Folder exists")}catch{}o.filePath.endsWith("/")&&(o.filePath=o.filePath.replace(/\/+$/,"")),o.pathParams&&typeof o.pathParams.filePath=="string"&&(o.pathParams.filePath=o.pathParams.filePath.replace(/\/+$/,""));let i=await Er(o.nodeFs,o.gitRoot,o.pathParams.branchName);if(!i){let r=await Bt.default.resolveRef({fs:o.nodeFs,dir:o.gitRoot,ref:"HEAD"});if(await Bt.default.branch({fs:o.nodeFs,dir:o.gitRoot,ref:mn(o.pathParams.branchName),object:r}),i=await Er(o.nodeFs,o.gitRoot,o.pathParams.branchName),i===void 0)throw new Error("Could not create branch for mkdir operation")}let f=await Bt.default.readTree({fs:o.nodeFs,dir:o.gitRoot,oid:i}),g=new Uint8Array(0),a=await Bt.default.writeBlob({fs:o.nodeFs,dir:o.gitRoot,blob:g}),n=await mi({dir:o.gitRoot,fs:o.nodeFs,treeOid:f.oid,deletePathParts:void 0,addPathParts:[...o.pathParams.filePath.split("/"),".keep"],addObj:{type:"blob",oid:a},deleteKeepIfNotEmpty:!0,addKeepIfEmpty:!0,keepFilename:".keep"});if(n!==f.oid){let r=await Bt.default.commit({fs:o.nodeFs,dir:o.gitRoot,message:`\u{1F4BE} Change '${o.pathParams.filePath}'`,tree:n,noUpdateBranch:!0,parent:[i],author:o.author});await Bt.default.writeRef({fs:o.nodeFs,dir:o.gitRoot,ref:`refs/heads/${mn(o.pathParams.branchName)}`,value:r,force:!0})}},"mkdir"),rmdir:e(async({filePath:o,gitRoot:i,nodeFs:f,cacheFs:g,pathParams:a,author:n})=>{if(a.branchName===void 0&&(a.branchName=await Vt(i,f)),!a.filePath)throw new Error("filePath should be in pathParams");let r=await Er(f,i,a.branchName);if(!r)throw new Error("Invalid branch file path - branch must exist");let u=await Bt.default.readTree({fs:f,dir:i,oid:r}),p=await mi({dir:i,fs:f,treeOid:u.oid,deletePathParts:a.filePath.split("/"),addPathParts:void 0,addObj:void 0,deleteKeepIfNotEmpty:!1,addKeepIfEmpty:!0,keepFilename:".keep"});if(p!==u.oid){let c=await Bt.default.commit({fs:f,dir:i,message:`Delete ${a.filePath}`,tree:p,noUpdateBranch:!0,parent:[r],author:n});await Bt.default.writeRef({fs:f,dir:i,ref:`refs/heads/${mn(a.branchName)}`,value:c,force:!0})}},"rmdir")},ta=$t(dr(),1),vE={type:"gitBranchHeadVirtualFile",rootType:"file",getStats:e(async({gitRoot:o,nodeFs:i,pathParams:f})=>{f.branchName===void 0&&(f.branchName=await Vt(o,i));let g;try{g=await ta.default.resolveRef({fs:i,dir:o,ref:f.branchName})}catch{g=await ta.default.resolveRef({fs:i,dir:o,ref:`refs/heads/${f.branchName}`})}let a=await ta.default.readCommit({fs:i,dir:o,oid:g}),{commit:n}=a,r=n.committer.timestamp*1e3;return{mode:420,size:40,isFile:e(()=>!0,"isFile"),isDirectory:e(()=>!1,"isDirectory"),isSymbolicLink:e(()=>!1,"isSymbolicLink"),isBlockDevice:e(()=>!1,"isBlockDevice"),isCharacterDevice:e(()=>!1,"isCharacterDevice"),isSocket:e(()=>!1,"isSocket"),isFIFO:e(()=>!1,"isFIFO"),isFileSync:e(()=>!0,"isFileSync"),isDirectorySync:e(()=>!1,"isDirectorySync"),dev:0,ino:0,nlink:1,uid:0,gid:0,rdev:0,blksize:4096,blocks:Math.ceil(40/4096),atimeMs:r,mtimeMs:r,ctimeMs:r,birthtimeMs:r,atime:new Date(r),mtime:new Date(r),ctime:new Date(r),birthtime:new Date(r)}},"getStats"),getFile:e(async({gitRoot:o,nodeFs:i,pathParams:f})=>{f.branchName===void 0&&(f.branchName=await Vt(o,i));try{let g;try{g=await ta.default.resolveRef({fs:i,dir:o,ref:f.branchName})}catch{g=await ta.default.resolveRef({fs:i,dir:o,ref:`refs/heads/${f.branchName}`})}return{type:"file",content:g+`
138
- `,mode:420,size:g.length}}catch{return}},"getFile"),writeFile:e(async({filePath:o,gitRoot:i,nodeFs:f,content:g,cacheFs:a,pathParams:n})=>{console.log("gitBranchHeadVirtualFile writeFile called",{pathParams:n,content:g}),n.branchName===void 0&&(n.branchName=await Vt(i,f));let r=g.toString().trim();try{await ta.default.readCommit({fs:f,dir:i,oid:r})}catch{throw new Error(`Commit ${r} does not exist in the repository`)}await ta.default.writeRef({fs:f,dir:i,ref:"refs/heads/"+n.branchName,value:r,force:!0})},"writeFile"),rename(o){throw new Error("not implementsd")},mkdir:e(async function(o){throw new Error("not implemented")},"mkdir")},t5={type:"gitBranchTipVirtualFile",rootType:"file",getStats:e(async o=>{let i=o.gitRoot+"/.git";try{return await o.nodeFs.stat(i)}catch{throw new Error(`ENOENT: no such file or directory, stat '${i}'`)}},"getStats"),getFile:e(async({filePath:o,gitRoot:i,nodeFs:f,pathParams:g})=>{if(!g.branchName)throw new Error("branchName should be in pathParams");let a=await Er(f,i,g.branchName);if(a!==void 0)return{type:"file",content:a+`
139
- `,mode:420,size:a.length+1}},"getFile"),rename(o){throw new Error("not implementsd")},mkdir:e(async function(o){throw new Error("not implemented")},"mkdir")},Um=$t(dr(),1),bP={type:"gitCommitFileVirtualFile",rootType:"file",getStats:e(async({filePath:o,gitRoot:i,nodeFs:f,pathParams:g})=>{if(!g.sha_1_1_2)throw new Error("sha_1_1_2 should be in pathParams");if(!g.sha1_3__40)throw new Error("sha1_3__40 should be in pathParams");let a=g.sha_1_1_2+g.sha1_3__40,n=await Ls({filePath:o,gitRoot:i,nodeFs:f,commitSha:a,pathParams:g});if(!n)throw new wE(`ENOENT: no such file or directory, stat '${o}'`,o);let r=await Um.default.readCommit({fs:f,dir:i,oid:a}),{commit:u}=r,p=u.committer.timestamp*1e3;if(n.type==="tree")return{mode:420,size:0,isFile:e(()=>!0,"isFile"),isDirectory:e(()=>!0,"isDirectory"),isSymbolicLink:e(()=>!1,"isSymbolicLink"),isBlockDevice:e(()=>!1,"isBlockDevice"),isCharacterDevice:e(()=>!1,"isCharacterDevice"),isSocket:e(()=>!1,"isSocket"),isFIFO:e(()=>!1,"isFIFO"),isFileSync:e(()=>!0,"isFileSync"),isDirectorySync:e(()=>!1,"isDirectorySync"),dev:0,ino:0,nlink:1,uid:0,gid:0,rdev:0,blksize:4096,blocks:0,atimeMs:p,mtimeMs:p,ctimeMs:p,birthtimeMs:p,atime:new Date(p),mtime:new Date(p),ctime:new Date(p),birthtime:new Date(p)};{let{blob:c}=await Um.default.readBlob({fs:f,dir:i,oid:n.oid});return{mode:420,size:c.length,isFile:e(()=>!0,"isFile"),isDirectory:e(()=>!1,"isDirectory"),isSymbolicLink:e(()=>!1,"isSymbolicLink"),isBlockDevice:e(()=>!1,"isBlockDevice"),isCharacterDevice:e(()=>!1,"isCharacterDevice"),isSocket:e(()=>!1,"isSocket"),isFIFO:e(()=>!1,"isFIFO"),isFileSync:e(()=>!0,"isFileSync"),isDirectorySync:e(()=>!1,"isDirectorySync"),dev:0,ino:0,nlink:1,uid:0,gid:0,rdev:0,blksize:4096,blocks:Math.ceil(c.length/4096),atimeMs:p,mtimeMs:p,ctimeMs:p,birthtimeMs:p,atime:new Date(p),mtime:new Date(p),ctime:new Date(p),birthtime:new Date(p)}}},"getStats"),getFile:e(async({filePath:o,gitRoot:i,nodeFs:f,pathParams:g})=>{if(!g.sha_1_1_2)throw new Error("sha_1_1_2 should be in pathParams");if(!g.sha1_3__40)throw new Error("sha1_3__40 should be in pathParams");let a=g.sha_1_1_2+g.sha1_3__40;try{let n=await Ls({filePath:o,gitRoot:i,nodeFs:f,commitSha:a,pathParams:g});if(!n)return;if(n.type==="blob"){let{blob:r}=await Um.default.readBlob({fs:f,dir:i,oid:n.oid});return{type:"file",content:Buffer.from(r),mode:420,size:r.length,oid:n.oid}}else return{type:"directory",content:Array.from(new Set([...n.entries.filter(r=>r.name!==".keep")])).map(r=>({...r,name:r.name.toString(),path:`${o}`,parentPath:`${o}`})),mode:493}}catch{return}},"getFile"),rename(o){throw new Error("not implementsd")},mkdir:e(async function(o){throw new Error("not implemented")},"mkdir")},Mm=$t(dr(),1);l(vP,"cX");e(vP,"getFileStatus");r5={type:"gitStatusVirtualFile",rootType:"file",getStats:e(async o=>{let i=o.gitRoot+"/.git";try{return await o.nodeFs.stat(i)}catch{throw new Error(`ENOENT: no such file or directory, stat '${i}'`)}},"getStats"),getFile:e(async({gitRoot:o,nodeFs:i})=>{try{let f=await Mm.default.currentBranch({fs:i,dir:o})||"HEAD",g=await Mm.default.resolveRef({fs:i,dir:o,ref:"HEAD"}),a=(await Mm.default.statusMatrix({fs:i,dir:o})).filter(([,r,u,p])=>r!==u||u!==p).map(([r,u,p,c])=>({path:r,status:vP(u,p,c)})),n=JSON.stringify({branch:f,commit:g,clean:a.length===0,files:a},null,2);return{type:"file",content:n,mode:33188,size:Buffer.byteLength(n)}}catch(f){throw console.error(f),f}},"getFile"),rename(o){throw new Error("not implementsd")},mkdir:e(async function(o){throw new Error("not implemented")},"mkdir")},_E={type:"legitVirtualFile",rootType:"folder",getStats:e(async({gitRoot:o,nodeFs:i})=>{let f=o+"/.git";try{return await i.stat(f)}catch{throw new Error(`ENOENT: no such file or directory, stat '${f}'`)}},"getStats"),getFile:e(async({gitRoot:o,nodeFs:i})=>{throw new Error("not implemented")},"getFile"),rename(o){throw new Error("not implemented")},mkdir:e(async function(o){throw new Error("not implemented")},"mkdir")},n5=[_E,r5,bP,yP,bd,vE,t5],_P=(qs=class{constructor(i){this.routes=i,vt(this,"compiledRoutes");let f={},g=e((a,n)=>{if(typeof a.type=="string"){f[n]={handler:a,siblings:[]};let r=a}else{let r=[];for(let[u,p]of Object.entries(a))if(u==="."){if(f[n])throw new Error(`Conflict: multiple handlers for path '${n}', '.' and optional '[[parameter_name]]' defined?`);f[n]={handler:p,siblings:r}}else if(u.startsWith("[[")&&u.endsWith("]]")){if(f[n])throw new Error(`Conflict: multiple handlers for path '${n}', '.' and optional '[[parameter_name]]' defined?`);f[n]={handler:p,siblings:r},u.startsWith("[[...")?f[n?`${n}/${u}`:u]={handler:p,siblings:[]}:g(p,n?`${n}/${u}`:u)}else u.startsWith("[")&&u.endsWith("]")?u.startsWith("[...")?f[n?`${n}/${u}`:u]={handler:p,siblings:[]}:g(p,n?`${n}/${u}`:u):(r.push({segment:u,type:p["."]?"folder":"file"}),g(p,n?`${n}/${u}`:u))}},"walk");g(i,""),this.compiledRoutes=Object.entries(f).map(([a,n])=>{let r=[],u=a.split("/").map(p=>{if(p.startsWith("[[")&&p.endsWith("]]")){let c=p.slice(2,-2).replace(/^\.\.\./,"");return r.push(c),"(.*)"}if(p.startsWith("[")&&p.endsWith("]")){let c=p.slice(1,-1);return r.push(c),"([^/]+)"}return p.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}).join("/");return{regex:new RegExp(`^${u}$`),paramNames:r,staticSiblings:n.siblings,handler:n.handler}})}match(i){i.length>1&&i.endsWith("/")&&(i=i.replace(/\/+$/,""));for(let{regex:f,paramNames:g,handler:a,staticSiblings:n}of this.compiledRoutes){let r=i.match(f);if(!r)continue;let u={};for(let p=0;p<g.length;p++)u[g[p]]=decodeURIComponent(r[p+1]||"");return{handler:a,params:u,staticSiblings:n}}}},l(qs,"Hv"),qs);e(_P,"LegitPathRouter");i5=_P,$m=$t(dr(),1),ax={type:"gitCommitVirtualFolder",rootType:"folder",getStats:e(async o=>{let i=o.gitRoot+"/.git";try{return await o.nodeFs.stat(i)}catch{throw new Error(`ENOENT: no such file or directory, stat '${i}'`)}},"getStats"),getFile:e(async({filePath:o,gitRoot:i,nodeFs:f,pathParams:g})=>{let a=await $m.default.listBranches({fs:f,dir:i}),n=new Set,r=new Set;for(let c of a){let d=`refs/heads/${c}`;try{let m=await $m.default.resolveRef({fs:f,dir:i,ref:d});n.add(m)}catch{}}for(let c of n){let d=await $m.default.log({fs:f,dir:i,ref:c});for(let m of d)r.add(m.oid)}if(!g.sha_1_1_2){let c=new Set;for(let m of r)if(c.add(m.slice(0,2)),c.size>=256)break;let d=Array.from(c).sort().map(m=>Fa({parent:o,name:m,isDir:!0}));return{type:"directory",content:d,mode:493,size:d}}let u=new Set;for(let c of r)c.startsWith(g.sha_1_1_2)&&u.add(c.slice(2,40));let p=Array.from(u).sort().map(c=>Fa({parent:o,name:c,isDir:!0}));return{type:"directory",content:p,mode:493,size:p.length}},"getFile"),rename(o){throw new Error("not implementsd")},mkdir:e(async function(o){throw new Error("not implemented")},"mkdir")},Kr=$t(dr(),1),o5=$t(dr(),1),EP="-operation";l(on,"hr");e(on,"resolveOperationBranchName");sx={type:"gitBranchOperationVirtualFile",rootType:"file",getStats:e(async o=>{let{gitRoot:i,nodeFs:f,pathParams:g}=o;g.branchName===void 0&&(g.branchName=await Vt(i,f));let a;try{a=await Kr.default.resolveRef({fs:f,dir:i,ref:`refs/heads/${g.branchName}`})}catch{throw new Error(`Base Branch ${g.branchName} for operations does not exis`)}let n=await on(f,i,g.branchName),r=!1;if(n)try{a=await Kr.default.resolveRef({fs:f,dir:i,ref:n}),r=!0}catch{try{a=await Kr.default.resolveRef({fs:f,dir:i,ref:`refs/heads/${n}`}),r=!0}catch{}}let u=await Kr.default.readCommit({fs:f,dir:i,oid:a}),{commit:p}=u,c=p.committer.timestamp*1e3;try{return{mode:420,size:40,atimeMs:c,mtimeMs:c,ctimeMs:c,birthtimeMs:c,atime:new Date(c),mtime:new Date(c),ctime:new Date(c),birthtime:new Date(c),isFile:e(()=>!0,"isFile"),isDirectory:e(()=>!1,"isDirectory"),isSymbolicLink:e(()=>!1,"isSymbolicLink"),isBlockDevice:e(()=>!1,"isBlockDevice"),isCharacterDevice:e(()=>!1,"isCharacterDevice"),isSocket:e(()=>!1,"isSocket"),isFIFO:e(()=>!1,"isFIFO"),isFileSync:e(()=>!0,"isFileSync"),isDirectorySync:e(()=>!1,"isDirectorySync"),dev:0,ino:0,nlink:1,uid:0,gid:0,rdev:0,blksize:4096,blocks:0}}catch{throw new Error("ENOENT: no such file or directory, stat operationHistory")}},"getStats"),getFile:e(async o=>{let{gitRoot:i,nodeFs:f,pathParams:g}=o;g.branchName===void 0&&(g.branchName=await Vt(i,f));let a=await on(f,i,g.branchName),n,r=!1;return a?(n=await Kr.default.resolveRef({fs:f,dir:i,ref:`refs/heads/${a}`}),r=!0):n=await Kr.default.resolveRef({fs:f,dir:i,ref:`refs/heads/${g.branchName}`}),{type:"file",content:Buffer.from(n),mode:420,size:n.length}},"getFile"),writeFile:e(async({filePath:o,gitRoot:i,nodeFs:f,content:g,cacheFs:a,pathParams:n,author:r})=>{n.branchName===void 0&&(n.branchName=await Vt(i,f));let u;typeof g=="string"?u=new TextEncoder().encode(g):u=new Uint8Array(g);let p=await Kr.default.writeBlob({fs:f,dir:i,blob:u}),c=await Er(f,i,n.branchName);if(!c)throw new Error("Invalid branch file path - branch doesn't exist");let d=await on(f,i,n.branchName),m=!1;d||(d="legit/__"+n.branchName+EP,await Kr.default.branch({fs:f,dir:i,ref:d,object:c}),m=!0);let y=await Kr.default.resolveRef({fs:f,dir:i,ref:`refs/heads/${d}`}),w=await Kr.default.readTree({fs:f,dir:i,oid:c}),_;g instanceof ArrayBuffer?_=Buffer.from(g).toString("utf-8"):typeof g=="string"?_=g:g instanceof Uint8Array?_=Buffer.from(g).toString("utf-8"):_=String(g);let S=!1;if(!m){let k=await Kr.default.findMergeBase({fs:f,dir:i,oids:S?[y]:[y,c]});k.length===1&&k[0]===c&&(S=!0)}let T=await Kr.default.commit({fs:f,dir:i,message:_,tree:w.oid,noUpdateBranch:!0,author:r,parent:S?m?[c,c]:[y]:[y,c]});await Kr.default.writeRef({fs:f,dir:i,ref:`refs/heads/${d}`,value:T,force:!0})},"writeFile"),rename:e(async function({filePath:o,newPath:i,gitRoot:f,nodeFs:g,pathParams:a,newPathParams:n}){throw new Error("not implemented")},"rename"),mkdir:e(async function(o){throw new Error("not implemented")},"mkdir")},ms=$t(dr(),1),vd={type:"gitBranchOperationsVirtualFile",rootType:"file",getStats:e(async o=>{let{gitRoot:i,nodeFs:f,pathParams:g}=o;g.branchName===void 0&&(g.branchName=await Vt(i,f));let a=await on(f,i,g.branchName),n,r=!1;if(a)try{n=await ms.default.resolveRef({fs:f,dir:i,ref:a}),r=!0}catch{try{n=await ms.default.resolveRef({fs:f,dir:i,ref:`refs/heads/${a}`}),r=!0}catch{throw new Error(`Base Branch ${g.branchName} for operations does not exis`)}}else try{n=await ms.default.resolveRef({fs:f,dir:i,ref:`refs/heads/${g.branchName}`})}catch{throw new Error(`Base Branch ${g.branchName} for operations does not exis`)}let u=await ms.default.readCommit({fs:f,dir:i,oid:n}),{commit:p}=u,c=p.committer.timestamp*1e3;try{return{mode:420,size:(r?await vd.getFile(o):void 0)?.content?.length??0,atimeMs:c,mtimeMs:c,ctimeMs:c,birthtimeMs:c,atime:new Date(c),mtime:new Date(c),ctime:new Date(c),birthtime:new Date(c),isFile:e(()=>!0,"isFile"),isDirectory:e(()=>!1,"isDirectory"),isSymbolicLink:e(()=>!1,"isSymbolicLink"),isBlockDevice:e(()=>!1,"isBlockDevice"),isCharacterDevice:e(()=>!1,"isCharacterDevice"),isSocket:e(()=>!1,"isSocket"),isFIFO:e(()=>!1,"isFIFO"),isFileSync:e(()=>!0,"isFileSync"),isDirectorySync:e(()=>!1,"isDirectorySync"),dev:0,ino:0,nlink:1,uid:0,gid:0,rdev:0,blksize:4096,blocks:0}}catch{throw new Error("ENOENT: no such file or directory, stat operationHistory")}},"getStats"),getFile:e(async o=>{let{gitRoot:i,nodeFs:f,pathParams:g}=o;g.branchName===void 0&&(g.branchName=await Vt(i,f));let a=await on(f,i,g.branchName),n=[];if(a){let p=await ms.default.resolveRef({fs:f,dir:i,ref:`refs/heads/${a}`}),c=!1,d=p;for(;d&&!c;){let m=await ms.default.readCommit({fs:f,dir:i,oid:d});n.push({oid:m.oid,parentOids:m.commit.parent,message:m.commit.message,originBranchOid:"unset"}),d=m.commit.parent&&m.commit.parent.length>0?m.commit.parent[0]:null,m.commit.parent.length===2&&m.commit.parent[0]===m.commit.parent[1]&&(c=!0)}}let r;for(let p=n.length-1;p>=0;p--){let c=n[p];if(r===void 0){if(c.parentOids.length!==2&&c.parentOids[0]!==c.parentOids[1])throw new Error(`Operation commit ${c.oid} does not have two parents as expected`);r=c.parentOids[1]}c.parentOids.length===2&&(r=c.parentOids[1]),c.originBranchOid=r}let u=Buffer.from(JSON.stringify(n,null,2),"utf-8");return{type:"file",content:u,mode:420,size:u.length}},"getFile"),rename:e(async function(o){throw new Error("not implemented")},"rename"),mkdir:e(async function(o){throw new Error("not implemented")},"mkdir")},Ol=$t(dr(),1),a5={type:"getThreadName",rootType:"file",getStats:e(async o=>{let{gitRoot:i,nodeFs:f,pathParams:g}=o,a;try{a=await Ol.default.resolveRef({fs:f,dir:i,ref:`refs/heads/${g.branchName}`})}catch{throw new Error(`Base Branch ${g.branchName} for operations does not exis`)}let n=await on(f,i,g.branchName),r=!1;if(n)try{a=await Ol.default.resolveRef({fs:f,dir:i,ref:n}),r=!0}catch{try{a=await Ol.default.resolveRef({fs:f,dir:i,ref:`refs/heads/${n}`}),r=!0}catch{}}let u=await Ol.default.readCommit({fs:f,dir:i,oid:a}),{commit:p}=u,c=p.committer.timestamp*1e3;try{return{mode:420,size:40,atimeMs:c,mtimeMs:c,ctimeMs:c,birthtimeMs:c,atime:new Date(c),mtime:new Date(c),ctime:new Date(c),birthtime:new Date(c),isFile:e(()=>!0,"isFile"),isDirectory:e(()=>!1,"isDirectory"),isSymbolicLink:e(()=>!1,"isSymbolicLink"),isBlockDevice:e(()=>!1,"isBlockDevice"),isCharacterDevice:e(()=>!1,"isCharacterDevice"),isSocket:e(()=>!1,"isSocket"),isFIFO:e(()=>!1,"isFIFO"),isFileSync:e(()=>!0,"isFileSync"),isDirectorySync:e(()=>!1,"isDirectorySync"),dev:0,ino:0,nlink:1,uid:0,gid:0,rdev:0,blksize:4096,blocks:0}}catch{throw new Error("ENOENT: no such file or directory, stat operationHistory")}},"getStats"),getFile:e(async o=>{let{gitRoot:i,nodeFs:f,pathParams:g}=o,a=await on(f,i,g.branchName),n;if(a){let r="legit/",u=`__${g.branchName}-operation`;return a.startsWith(r)&&a.endsWith(u)?n=a.slice(r.length,a.length-u.length):n=a,{type:"file",content:Buffer.from(gP(n)),mode:420,size:n.length}}return{type:"file",content:Buffer.from(""),mode:420,size:0}},"getFile"),writeFile:e(async({filePath:o,gitRoot:i,nodeFs:f,content:g,cacheFs:a,pathParams:n})=>{if(n.branchName===void 0)throw new Error("branchName should be in pathParams");let r=await on(f,i,n.branchName);if(r){let u=`legit/${pP(g.toString())}__${n.branchName}-operation`;await Ol.default.renameBranch({fs:f,dir:i,oldref:r,ref:u}),r=u}},"writeFile"),rename:e(async function({filePath:o,newPath:i,gitRoot:f,nodeFs:g,pathParams:a,newPathParams:n}){throw new Error("not implemented")},"rename"),mkdir:e(async function(o){throw new Error("not implemented")},"mkdir")},lx=$t(dr(),1),fx={type:"gitBranchHistory",rootType:"file",getStats:e(async({gitRoot:o,nodeFs:i,pathParams:f})=>{f.branchName===void 0&&(f.branchName=await Vt(o,i));let g=await Er(i,o,f.branchName);if(!g)throw new Error(`Branch ${f.branchName} does not exist`);let a=await lx.default.readCommit({fs:i,dir:o,oid:g}),{commit:n}=a,r=n.committer.timestamp*1e3;return{mode:420,size:1e5,isFile:e(()=>!0,"isFile"),isDirectory:e(()=>!1,"isDirectory"),isSymbolicLink:e(()=>!1,"isSymbolicLink"),isBlockDevice:e(()=>!1,"isBlockDevice"),isCharacterDevice:e(()=>!1,"isCharacterDevice"),isSocket:e(()=>!1,"isSocket"),isFIFO:e(()=>!1,"isFIFO"),isFileSync:e(()=>!0,"isFileSync"),isDirectorySync:e(()=>!1,"isDirectorySync"),dev:0,ino:0,nlink:1,uid:0,gid:0,rdev:0,blksize:4096,blocks:Math.ceil(40/4096),atimeMs:r,mtimeMs:r,ctimeMs:r,birthtimeMs:r,atime:new Date(r),mtime:new Date(r),ctime:new Date(r),birthtime:new Date(r)}},"getStats"),getFile:e(async o=>{let{gitRoot:i,nodeFs:f,pathParams:g}=o,a=g.branchName;a===void 0&&(a=await Vt(i,f));let n=[];if(a){let u=await Er(f,i,a),p=!1,c=u;for(;c&&!p;){let d=await lx.default.readCommit({fs:f,dir:i,oid:c});n.push({oid:d.oid,...d.commit}),c=d.commit.parent[0]}}let r=Buffer.from(JSON.stringify(n,null,2),"utf-8");return{type:"file",content:r,mode:420,size:r.length}},"getFile"),rename:e(async o=>{throw new Error("not implemented")},"rename"),mkdir:e(async function(o){throw new Error("not implemented")},"mkdir")},ii=$t(dr(),1),ux={type:"gitBranchOperationHeadVirtualFile",rootType:"file",getStats:e(async({gitRoot:o,nodeFs:i,pathParams:f})=>{f.branchName===void 0&&(f.branchName=await Vt(o,i));let g=await on(i,o,f.branchName);if(!g){let p=new Date(0);return{mode:420,size:0,isFile:e(()=>!0,"isFile"),isDirectory:e(()=>!1,"isDirectory"),isSymbolicLink:e(()=>!1,"isSymbolicLink"),isBlockDevice:e(()=>!1,"isBlockDevice"),isCharacterDevice:e(()=>!1,"isCharacterDevice"),isSocket:e(()=>!1,"isSocket"),isFIFO:e(()=>!1,"isFIFO"),isFileSync:e(()=>!0,"isFileSync"),isDirectorySync:e(()=>!1,"isDirectorySync"),dev:0,ino:0,nlink:1,uid:0,gid:0,rdev:0,blksize:4096,blocks:Math.ceil(40/4096),atimeMs:p.getTime(),mtimeMs:p.getTime(),ctimeMs:p.getTime(),birthtimeMs:p.getTime(),atime:p,mtime:p,ctime:p,birthtime:p}}let a;try{a=await ii.default.resolveRef({fs:i,dir:o,ref:g})}catch{a=await ii.default.resolveRef({fs:i,dir:o,ref:`refs/heads/${g}`})}let n=await ii.default.readCommit({fs:i,dir:o,oid:a}),{commit:r}=n,u=r.committer.timestamp*1e3;return{mode:420,size:40,isFile:e(()=>!0,"isFile"),isDirectory:e(()=>!1,"isDirectory"),isSymbolicLink:e(()=>!1,"isSymbolicLink"),isBlockDevice:e(()=>!1,"isBlockDevice"),isCharacterDevice:e(()=>!1,"isCharacterDevice"),isSocket:e(()=>!1,"isSocket"),isFIFO:e(()=>!1,"isFIFO"),isFileSync:e(()=>!0,"isFileSync"),isDirectorySync:e(()=>!1,"isDirectorySync"),dev:0,ino:0,nlink:1,uid:0,gid:0,rdev:0,blksize:4096,blocks:Math.ceil(40/4096),atimeMs:u,mtimeMs:u,ctimeMs:u,birthtimeMs:u,atime:new Date(u),mtime:new Date(u),ctime:new Date(u),birthtime:new Date(u)}},"getStats"),getFile:e(async({gitRoot:o,nodeFs:i,pathParams:f})=>{f.branchName===void 0&&(f.branchName=await Vt(o,i));let g=await on(i,o,f.branchName);if(!g)return{type:"file",content:"",mode:420,size:0};try{let a;try{a=await ii.default.resolveRef({fs:i,dir:o,ref:g})}catch{a=await ii.default.resolveRef({fs:i,dir:o,ref:`refs/heads/${g}`})}return{type:"file",content:a+`
140
- `,mode:420,size:a.length}}catch{return}},"getFile"),writeFile:e(async({filePath:o,gitRoot:i,nodeFs:f,content:g,cacheFs:a,pathParams:n})=>{n.branchName===void 0&&(n.branchName=await Vt(i,f));let r=await on(f,i,n.branchName),u=await ii.default.resolveRef({fs:f,dir:i,ref:`refs/heads/${r}`});if(!r)throw new Error(`Operation branch name could not be resolved for branch ${n.branchName}`);let p=g.toString().trim(),c,d,m=!1;if(!u)throw new Error(`Operation branch ref could not be resolved for branch ${r}`);let y=u;for(;y&&!m;){let w=await ii.default.readCommit({fs:f,dir:i,oid:y});if(w.oid===p&&(c=w.oid),y=w.commit.parent&&w.commit.parent.length>0?w.commit.parent[0]:null,w.commit.parent.length===2){if(w.commit.parent[0]===w.commit.parent[1])m=!0;else if(c!==void 0){d=w.commit.parent[1];break}}}if(c===void 0)throw new Error(`Cant rollback to ${p} couldn't find newOperationBranchHead ${c}`);if(d===void 0)throw new Error(`Cant rollback to ${p} couldn't find newBranchHead ${d}`);await ii.default.writeRef({fs:f,dir:i,ref:"refs/heads/"+r,value:c,force:!0}),await ii.default.writeRef({fs:f,dir:i,ref:"refs/heads/"+n.branchName,value:d,force:!0})},"writeFile"),rename(o){throw new Error("not implementsd")},mkdir:e(async function(o){throw new Error("not implemented")},"mkdir")},s5={type:"gitCurrentBranchVirtualFile",rootType:"folder",getStats:e(async({gitRoot:o,nodeFs:i})=>{let f=(await Vt(o,i)).length;return{mode:420,size:f,isFile:e(()=>!0,"isFile"),isDirectory:e(()=>!1,"isDirectory"),isSymbolicLink:e(()=>!1,"isSymbolicLink"),isBlockDevice:e(()=>!1,"isBlockDevice"),isCharacterDevice:e(()=>!1,"isCharacterDevice"),isSocket:e(()=>!1,"isSocket"),isFIFO:e(()=>!1,"isFIFO"),isFileSync:e(()=>!0,"isFileSync"),isDirectorySync:e(()=>!1,"isDirectorySync"),dev:0,ino:0,nlink:1,uid:0,gid:0,rdev:0,blksize:4096,blocks:Math.ceil(f/4096),atimeMs:Date.now(),mtimeMs:Date.now(),ctimeMs:Date.now(),birthtimeMs:Date.now(),atime:new Date,mtime:new Date,ctime:new Date,birthtime:new Date}},"getStats"),getFile:e(async({gitRoot:o,nodeFs:i})=>{let f=await Vt(o,i);return{type:"file",content:f+`
141
- `,mode:420,size:f.length+1}},"getFile"),writeFile:e(async({gitRoot:o,nodeFs:i,content:f})=>{let g=f.toString().trim();if(!await Er(i,o,g))throw new Error(`Branch ${g} does not exist in the repository`);await wP(o,i,g)},"writeFile"),rename(o){throw new Error("not implemented")},mkdir:e(async function(o){throw new Error("not implemented")},"mkdir")},Xh=(bn=class extends Tf{constructor({name:i,parentFs:f,gitStorageFs:g,gitRoot:a,virtualFiles:n=n5}){super({name:i,parentFs:f,gitRoot:a}),vt(this,"memFs"),vt(this,"openFh",{}),vt(this,"virtualFiles"),vt(this,"legitFileNames"),vt(this,"storageFs"),this.gitRoot=a,this.storageFs=g,this.memFs=(0,ix.createFsFromVolume)(new ix.Volume),this.virtualFiles=n,this.legitFileNames=["branches","commits"]}async getAuthor(){let i=await nx.default.getConfig({fs:this.storageFs,dir:this.gitRoot,path:"user.name"}),f=await nx.default.getConfig({fs:this.storageFs,dir:this.gitRoot,path:"user.email"}),g=Math.floor(Date.now()/1e3),a=new Date().getTimezoneOffset();return{name:i,email:f,date:g,timezoneOffset:a}}async responsible(i){return!0}isLegitPath(i){return i.includes(`/${bn.LEGIT_DIR}/`)||i.includes(`/${bn.LEGIT_DIR}`)}getRouteHandler(i){let f=i;this.gitRoot&&i.startsWith(this.gitRoot)&&(this.gitRoot==="/"?f=i.slice(this.gitRoot.length):f=i.slice(this.gitRoot.length+1));let g=f.indexOf(`/${bn.LEGIT_DIR}`);if(g===-1)return bn.pathRouter.match(f);let a=f.slice(g+1);return bn.pathRouter.match(f)}async open(i,f,g){let a=this.getRouteHandler(i);if(!a)throw new Error("Not a virtual legit file");if(a?.handler.writeFile===void 0&&(f.includes("w")||f.includes("a")))throw new Error(`Write operations not allowed for ${a?.handler.type}`);if(f.includes("x")&&a?.handler.type!=="gitBranchFileVirtualFile")throw new Error(`Exclusive operations not allowed for ${a?.handler.type}`);let n=await a.handler.getFile({cacheFs:this.memFs,filePath:i,gitRoot:this.gitRoot,nodeFs:this.storageFs,pathParams:a.params,author:await this.getAuthor()}),r=!1;for(let m of Object.values(this.openFh))m.path===i&&(r=!0);if((n||r)&&f.includes("x"))throw Object.assign(new Error(`EEXIST: file already exists, open '${i}'`),{code:"EEXIST",errno:-17,syscall:"open",path:i});if(!n&&!r&&!(f.includes("w")||f.includes("a")))throw Object.assign(new Error(`ENOENT: no such file or directory, open '${i}'`),{code:"ENOENT",errno:-2,syscall:"open",path:i});let u=Aa(i);if(await this.memFs.promises.mkdir(u,{recursive:!0}),n===void 0&&!f.includes("x")||n&&n.type==="file")try{let m=await this.memFs.promises.access(i)}catch{await this.memFs.promises.writeFile(i,"")}let p=await this.memFs.promises.open(i,f,g),c=p.fd,d=new zd({fs:this,compositeFs:this.compositFs,subFsFileDescriptor:c,parentFsFileDescriptors:[]});return this.openFh[c]={path:i,mode:f,fh:p,openSha:n?.oid,readSha:void 0,unflushed:[]},(f.includes("x")||f.includes("w"))&&this.openFh[c].unflushed.push({length:0,start:0}),d}async mkdir(i,f){let g=i.toString(),a=this.getRouteHandler(g),n=f?{options:f}:{};try{await a?.handler.mkdir({cacheFs:this.memFs,filePath:i.toString(),nodeFs:this.storageFs,gitRoot:this.gitRoot,pathParams:a.params,...n,author:await this.getAuthor()});let r=typeof f=="object"?{...f,recursive:!0}:{recursive:!0};await this.memFs.promises.mkdir(i,r);let u=g.split("/"),p="";for(let c=1;c<=u.length;c++){p=u.slice(0,c).join("/");try{if((await this.memFs.promises.stat(p)).isDirectory()){let d=await this.memFs.promises.open(p,"r");this.openFh[d.fd]={path:p,mode:"r",fh:d,openSha:void 0,readSha:void 0,unflushed:[]}}}catch{}}}catch(r){throw r}}async access(i,f){await this.stat(i)}async futimes(i,f,g){let a=this.openFh[i.subFsFileDescriptor];if(!a)throw new Error("Invalid file handle");return await a.fh.utimes(f,g)}async fstat(i,f){let g=this.openFh[i.subFsFileDescriptor];if(!g)throw new Error("Invalid file handle");return this.stat(g.path,f)}async ftruncate(i,f){let g=this.openFh[i.subFsFileDescriptor];if(!g)throw new Error("Invalid file handle");return g.unflushed.push({length:0,start:0}),await g.fh.truncate(f)}async stat(i,f){let g=i.toString(),a=Object.values(this.openFh).find(r=>r.path===g&&r.unflushed.length>0);if(a&&a.unflushed.length>0)return await a.fh.stat(f);let n=this.getRouteHandler(g);if(!n)throw new Error(`ENOENT: no such file or directory, stat '${g}'`);return await n.handler.getStats({cacheFs:this.memFs,filePath:g,gitRoot:this.gitRoot,nodeFs:this.storageFs,pathParams:n.params,author:await this.getAuthor()})}async lstat(i,f){return this.stat(i,f)}async readdir(i,f){let g=i.toString(),a=this.getRouteHandler(g);if(!a)throw new Error(`ENOENT: no such file or directory, scandir '${g}'`);let n=await a?.handler.getFile({cacheFs:this.memFs,filePath:g,gitRoot:this.gitRoot,nodeFs:this.storageFs,pathParams:a.params,author:await this.getAuthor()});if(n){if(n.type!=="directory")throw new Error("not a folder");let r=a?.staticSiblings??[],u=Array.from(new Set([...n.content,...r.map(p=>Fa({name:p.segment,parent:g,isDir:p.type==="folder"}))])).sort((p,c)=>p.name.localeCompare(c.name,void 0,{numeric:!0,sensitivity:"base"}));return f?.withFileTypes?u:u.map(p=>p.name)}return[]}async read(i,f,g,a,n){let r=i.subFsFileDescriptor,u=this.openFh[r];if(!u)throw new Error("Invalid file handle");if(u.unflushed.length===0){let p=this.getRouteHandler(u.path),c=await p.handler.getFile({cacheFs:this.memFs,filePath:u.path,gitRoot:this.gitRoot,nodeFs:this.storageFs,pathParams:p?.params,author:await this.getAuthor()});if(!c?.content)throw new Error("couldnt access content");if(c.type!=="file")throw new Error("not a file");let d=typeof c.content=="string"?Buffer.from(c.content):c.content,m=typeof n=="number"?n:0,y=Math.min(m+a,d.length),w=Math.max(0,y-m);return d.copy(f,g,m,m+w),{bytesRead:w,buffer:f}}return await u.fh.read(f,g,a,n)}async write(i,f,g,a,n){let r=this.openFh[i.subFsFileDescriptor];if(!r)throw new Error("Invalid file handle");let u=r.mode;if(!u.includes("w")&&!u.includes("a")&&!u.includes("+"))throw Object.assign(new Error("EBADF: bad file descriptor, write"),{code:"EBADF",errno:-9,syscall:"write"});if(r.unflushed.length===0){let m=this.getRouteHandler(r.path),y=await m.handler.getFile({cacheFs:this.memFs,filePath:r.path,gitRoot:this.gitRoot,nodeFs:this.storageFs,pathParams:m.params,author:await this.getAuthor()});y&&y.oid&&(await this.memFs.promises.writeFile(r.path,y.content),r.readSha=y.oid)}let p=await r.fh.write(f,g,a,n),c=g??0,d=n??0;return r.unflushed.push({start:d,length:a||f.byteLength-c+d}),p}async close(i){let f=i.subFsFileDescriptor,g=this.openFh[f];if(!g)throw new Error("Invalid file handle");try{await this.dataSync(i),await g.fh.close()}finally{delete this.openFh[f]}}async dataSync(i){let f=i.subFsFileDescriptor,g=this.openFh[f];if(!g)throw new Error("Invalid file handle");if(g.unflushed.length>0){let a=this.getRouteHandler(g.path);if(a&&a.handler.writeFile){let n=await this.memFs.promises.readFile(g.path);await a.handler.writeFile({cacheFs:this.memFs,filePath:g.path,gitRoot:this.gitRoot,nodeFs:this.storageFs,content:n,pathParams:a.params,author:await this.getAuthor()})}g.unflushed=[]}}async readFile(i,f){let g=typeof i=="string"?i:Buffer.isBuffer(i)?i.toString():i.fd?`FileHandle(${i.fd})`:i.toString(),a=null;typeof f=="string"?a=f:f&&typeof f=="object"&&f.encoding&&(a=f.encoding);let n=await this.open(g,"r");try{let r=(await this.fstat(n)).size,u=Buffer.alloc(r);return await this.read(n,u,0,r,0),await this.close(n),a?u.toString(a):u}catch(r){try{await this.close(n)}catch{}throw r}}async writeFile(i,f,g){let a="w",n="utf8",r;typeof g=="string"?n=g:g&&typeof g=="object"&&(g.flag&&(a=String(g.flag)),g.encoding&&(n=g.encoding),g.mode&&(r=typeof g.mode=="string"?parseInt(g.mode,8):g.mode));let u=await this.open(i,a,r);try{let p;typeof f=="string"?p=Buffer.from(f,n):Buffer.isBuffer(f)?p=f:f instanceof Uint8Array?p=Buffer.from(f):ArrayBuffer.isView(f)?p=Buffer.from(f.buffer,f.byteOffset,f.byteLength):p=Buffer.from(f),await this.write(u,p,0,p.length,0)}finally{await this.close(u)}}async rename(i,f){let g=i.toString(),a=f.toString(),n=this.getRouteHandler(g),r=this.getRouteHandler(a);if(n?.handler.type==="gitBranchFileVirtualFile"&&r?.handler.type==="gitBranchFileVirtualFile"){let u=!0;try{await this.memFs.promises.access(a)}catch{u=!1}let p=!0;try{await this.stat(a)}catch{p=!1}let c=!0;try{await this.stat(g)}catch{c=!1}let d=!0;try{await this.memFs.promises.access(g)}catch{d=!1}if(d){let w=Aa(a);try{await this.memFs.promises.access(w)}catch{await this.memFs.promises.mkdir(w,{recursive:!0})}await this.memFs.promises.rename(i,f)}let m=this.getRouteHandler(g);if(!m)throw new Error("VF not found");let y=await m.handler.rename({cacheFs:this.memFs,filePath:g,gitRoot:this.gitRoot,nodeFs:this.storageFs,newPath:a,pathParams:m?.params??{},newPathParams:r?.params??{},author:await this.getAuthor()})}else throw new Error(`Unsupported rename operation from ${n?.handler.type} to ${r?.handler.type}`)}async fchmod(i,f){}async unlink(i){let f=i.toString(),g=this.getRouteHandler(f);if(g?.handler.unlink!==void 0)try{await g.handler.unlink({cacheFs:this.memFs,filePath:f,nodeFs:this.storageFs,gitRoot:this.gitRoot,pathParams:g.params,author:await this.getAuthor()})}catch(a){let n=!1;for(let[r,u]of Object.entries(this.openFh))u.path===f&&u.unflushed.length>0&&(n=!0);if(!n)throw a}finally{let a=!1;for(let[n,r]of Object.entries(this.openFh))r.path===f&&(a=!0,await r.fh.close(),delete this.openFh[Number(n)]);a&&await this.memFs.promises.unlink(f)}else throw new Error(`Cannot unlink ${g?.handler.type} files`)}async rmdir(i,...f){let g=i.toString(),a=this.getRouteHandler(g);if(a?.handler.rmdir!==void 0){await a.handler.rmdir({cacheFs:this.memFs,filePath:g,nodeFs:this.storageFs,gitRoot:this.gitRoot,pathParams:a.params,author:await this.getAuthor()});let n=!1;for(let[r,u]of Object.entries(this.openFh))u.path===g&&(n=!0,await u.fh.close(),delete this.openFh[Number(r)]);n&&await this.memFs.promises.rmdir(g,{recursive:!0})}else throw new Error(`Cannot rmdir
142
- ${a?.handler.type} directories`)}fileType(){return 10}},l(bn,"Cn"),bn);e(Xh,"GitSubFs"),vt(Xh,"LEGIT_DIR",".legit"),vt(Xh,"pathRouter",new i5({".legit":{".":_E,operation:sx,head:vE,operationHead:ux,operationHistory:vd,history:fx,currentBranch:s5,branches:{".":yP,"[branchName]":{".legit":{".":_E,operation:sx,head:vE,operationHead:ux,operationHistory:vd,history:fx,threadName:a5},"[[...filePath]]":bd}},commits:{".":ax,"[sha_1_1_2]":{".":ax,"[sha1_3__40]":{"[[...filePath]]":bP}}}},"[[...filePath]]":bd}));SP=Xh,Ur=$t(dr(),1),l5=$t(D3(),1);l(AP,"Kre");e(AP,"fromValue");l(RP,"Xre");e(RP,"getIterator");l(k2,"V$");e(k2,"forAwait");l(kP,"Jre");e(kP,"asyncIteratorToStream");l(OP,"Zre");e(OP,"collect");l(TP,"Qre");e(TP,"fromNodeStream");l(FP,"ene");e(FP,"request");f5={request:FP},Wm=f5,Li="legit",BP=e(({fs:o,gitRepoPath:i,serverUrl:f="https://hub.legitcontrol.com",auth:g,anonymousBranch:a,authHeaderPrefix:n="Bearer "})=>{let r=!1;async function u(T){let k=await g.getMaxAccessTokenForBranch(T);if(!k)throw new Error(`No access token for branch ${T}`);await Ur.default.fetch({fs:o,http:Wm,dir:i,singleBranch:!0,ref:`${T}`,remote:Li,url:f,headers:{Authorization:`${n}${k}`}});let E=await Ur.default.resolveRef({fs:o,dir:i,ref:`${Li}/${T}`});await Ur.default.writeRef({fs:o,dir:i,ref:`refs/heads/${T}`,value:E})}l(u,"f"),e(u,"loadBranch");let p=[];async function c(){let T=await g.getMaxAccessTokenForBranch("todo");await Ur.default.fetch({fs:o,http:Wm,dir:i,remote:Li,url:f,headers:{Authorization:`${n}${T}`}});let k=await Ur.default.listBranches({fs:o,dir:i});for(let E of k){if(E===a)continue;let j=`${Li}/${E}`,A,I;try{A=await Ur.default.resolveRef({fs:o,dir:i,ref:E})}catch(U){console.log(`Could not resolve local ref ${E}:`,U)}try{I=await Ur.default.resolveRef({fs:o,dir:i,ref:j})}catch{I=void 0}if(A&&I){if(A!==I){let U=await Ur.default.findMergeBase({fs:o,dir:i,oids:[A,I]});if(U[0]!==A&&U[0]!==I){let M=await Ur.default.merge({fs:o,dir:i,ours:A,theirs:I,fastForwardOnly:!1,abortOnConflict:!1,author:{name:"Your Name",email:"your.email@example.com"},mergeDriver:e(async({branches:ee,contents:V,path:q})=>{let[G,re,ae]=V;return console.log(`Merging ${ee[0]} with ${ee[1]}...`),console.log("merged:"),console.log(V),{cleanMerge:!0,mergedText:ae===void 0?re:ae}},"mergeDriver")});await Ur.default.writeRef({fs:o,dir:i,ref:`refs/heads/${E}`,value:M.oid,force:!0})}U[0]===A?(console.log(`branch ${E} differs - remote ahaed, not behind`),await Ur.default.writeRef({fs:o,dir:i,ref:`refs/heads/${E}`,value:I,force:!0})):U[0]===I?(console.log(`branch ${E} differs - local ahead, not behind`),p.push(E)):(console.log(`branch ${E} differs - both changed`),p.push(E))}}else A&&!I&&p.push(E)}}l(c,"c"),e(c,"pull");async function d(T){if((await g.getUser()).type!=="local")for(let k of T){let E=await g.getMaxAccessTokenForBranch(k);await Ur.default.push({fs:o,http:Wm,dir:i,remote:Li,url:f,ref:k,headers:{Authorization:`Bearer ${E}`}})}}l(d,"d"),e(d,"push");let m=Promise.resolve();async function y(T){m=m.then(()=>d(T)),await m}l(y,"m"),e(y,"sequentialPush");async function w(){await Ur.default.getConfig({fs:o,dir:i,path:`remote.${Li}.fetch`})||await Ur.default.setConfig({fs:o,dir:i,path:`remote.${Li}.fetch`,value:`+refs/heads/*:refs/remotes/${Li}/*`});try{await c();let T=[...new Set(p)].filter(k=>k.indexOf(a)===-1);await y(T),p=[]}catch(T){console.error("Error monitoring changes:",T)}finally{r&&setTimeout(w,1e3)}}l(w,"g"),e(w,"pullPushTick");function _(){r=!0,w()}l(_,"v"),e(_,"startSync");function S(){r=!1}return l(S,"_"),e(S,"stopSync"),{start:e(()=>{r||(_(),r=!0)},"start"),stop:e(()=>{S()},"stop"),isRunning:e(()=>r,"isRunning"),loadBranch:u,sequentialPush:y}},"createLegitSyncService"),xr=$t(dr(),1),cx=$t(Ef(),1),u5=e((o,i)=>{let f={type:"local",id:"local",name:"Local User",email:"local@legitcontrol.com"};return{getUser:e(async()=>f,"getUser"),signInAnonymously:e(async()=>{f.type="anonymous",f.id=crypto.randomUUID(),f.email=`anonymous-sha1-${f.id}-@legitcontrol.com`},"signInAnonymously"),addAccessToken:e(async g=>{let a=await o.getUserTokens(f.id);a.accessTokens.push(g),await o.setUserTokens(f.id,a)},"addAccessToken"),getMaxAccessTokenForBranch:e(async g=>{let a=await o.getUserTokens(f.id);if(!(a.accessTokens===void 0||a.accessTokens.length===0))return a.accessTokens[0]},"getMaxAccessTokenForBranch")}},"createSessionManager"),hx=$t(dr(),1);l(IP,"K$");e(IP,"encodeConfigJson");l(xP,"X$");e(xP,"decodeConfigJson");dx="user.legit-tokens";l(jP,"Z$");e(jP,"createGitConfigTokenStore");l(CP,"Ehe");e(CP,"openLegitFsWithMemoryFs");l(O2,"rne");e(O2,"openLegitFs");c5=e(o=>async i=>{if(!i.path.includes(".legit/branches/")||(i.path.match(/\.legit/g)||[]).length>1)return;let[f,g]=i.path.split(".legit/branches/"),[a,...n]=g.split("/"),r=n.join("/"),u=f+".legit/branches/"+a+"/.legit/operation",p=JSON.stringify(i.operationArgs,(c,d)=>Buffer.isBuffer(d)?{__buffer__:d.toString("base64")}:d);await o.writeFile(u,`[${i.fsName}].${i.operation}(${i.fd?i.fd.fd+" - ":""}${i.path})
143
-
144
- ${p}
145
-
146
- `)},"createFsOperationFileLogger");});import{createContext as h5,useContext as d5,useEffect as NP,useState as Hd,useRef as p5}from"react";import{jsx as w5}from"react/jsx-runtime";var DP=h5({legitFs:null,loading:!0,head:null,rollback:l(async()=>{},"rollback")}),T2=l(()=>d5(DP),"useLegitContext"),g5={gitRoot:"/"},y5=100,m5=l(({children:o,config:i=g5})=>{let[f,g]=Hd(!0),[a,n]=Hd(null),r=p5(null),[u,p]=Hd(),[c,d]=Hd(null);NP(()=>{if(!f)return;if(typeof window>"u"){g(!1);return}l(async()=>{try{let{openLegitFsWithMemoryFs:w}=await Promise.resolve().then(()=>(LP(),PP)),_=await w({gitRoot:i.gitRoot,serverUrl:i.serverUrl,publicKey:i.publicKey});i.publicKey&&(await _.auth.addAccessToken(i.publicKey),_.sync.start()),_&&n(_)}catch(w){p(w)}},"init")(),g(!1)},[]),NP(()=>{if(!a||typeof window>"u")return;window.legitFs=a;let y=setInterval(async()=>{let w=await a.getCurrentBranch();try{let _=await a.promises.readFile(`/.legit/branches/${w}/.legit/head`,"utf8");_!==r.current&&(r.current=_,d(_))}catch{}},y5);return()=>{clearInterval(y)}},[a]);let m=l(async y=>{if(!(typeof window>"u")){if(!a){console.error("No legitFs instance available");return}try{let w=await a.getCurrentBranch();await a.promises.writeFile(`/.legit/branches/${w}/.legit/head`,y,"utf8")}catch(w){p(w)}}},"rollback");return w5(DP.Provider,{value:{legitFs:a,loading:a===null,head:c,rollback:m,error:u},children:o})},"LegitProvider");import{useEffect as UP,useState as qd,useRef as F2,useCallback as MP,useMemo as b5}from"react";function v5(o,i){let{legitFs:f,error:g,head:a}=T2(),[n,r]=qd(null),[u,p]=qd([]),[c,d]=qd(!0),[m,y]=qd(),w=F2(null),_=F2(!1),S=F2(!1);UP(()=>{if(typeof window>"u"){d(!1);return}if(!f)return;let E=!1;return l(async()=>{d(!0);try{let A=await f.getCurrentBranch(),I=`/.legit/branches/${A}${o}`,U=`/.legit/branches/${A}/.legit/history`,M=await f.promises.readFile(I,"utf8"),ee=await f.promises.readFile(U,"utf8").catch(()=>"");if(E)return;let V=[],q=ee;q&&(V=JSON.parse(q)),w.current===M&&(w.current=null),r(M),p(V),y(void 0)}catch(A){A?.code!=="ENOENT"?y(A):(r(null),p([]))}finally{E||d(!1)}},"load")(),()=>{E=!0}},[f,o,a]);let T=MP(async E=>{if(!(typeof window>"u")&&f)try{w.current=E;let j=await f.getCurrentBranch();await f.promises.writeFile(`/.legit/branches/${j}${o}`,E,"utf8"),r(E)}catch(j){throw w.current=null,y(j),j}},[f,o]);UP(()=>{_.current||S.current||!c&&n===null&&f&&i?.initialData&&(S.current=!0,_.current=!0,l(async()=>{try{await T(i.initialData)}catch(j){console.error("Failed to initialize file:",j),_.current=!1}finally{S.current=!1}},"initialize")())},[c,n,f,i?.initialData,T]);let k=MP(async E=>{if(typeof window>"u"||!f)return"";try{let j=o.startsWith("/")?o.slice(1):o;return await f.promises.readFile(`/.legit/commits/${E.slice(0,2)}/${E.slice(2)}/${j}`,"utf8")}catch{return""}},[f,o]);return{data:n,setData:T,history:b5(()=>u,[u]),getPastState:k,loading:c,error:m??g,legitFs:f}}l(v5,"useLegitFile");export{m5 as LegitProvider,T2 as useLegitContext,v5 as useLegitFile};
147
- /*! Bundled license information:
148
-
149
- @jspm/core/nodelibs/browser/chunk-DtuTasat.js:
150
- (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
151
- */
152
- /*! Bundled license information:
153
-
154
- @jspm/core/nodelibs/browser/chunk-DtuTasat.js:
155
- (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
156
-
157
- @jspm/core/nodelibs/browser/chunk-CcCWfKp1.js:
158
- (*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
159
- */
160
- /*! Bundled license information:
161
-
162
- @jspm/core/nodelibs/browser/chunk-B738Er4n.js:
163
- (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
164
- */
165
- /*! Bundled license information:
166
-
167
- safe-buffer/index.js:
168
- (*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
169
-
170
- crc-32/crc32.js:
171
- (*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com *)
172
-
173
- simple-concat/index.js:
174
- (*! simple-concat. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
175
-
176
- simple-get/index.js:
177
- (*! simple-get. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
178
- */
3
+ var M=Object.defineProperty;var a=(i,s)=>M(i,"name",{value:s,configurable:!0});import{createContext as N,useContext as W,useEffect as H,useState as L,useRef as A}from"react";import{jsx as K}from"react/jsx-runtime";var I=N({legitFs:null,loading:!0,head:null,rollback:a(async()=>{},"rollback")}),x=a(()=>W(I),"useLegitContext"),S={gitRoot:"/"},T=100,z=a(({children:i,config:s=S})=>{let[e,h]=L(!0),[n,f]=L(null),u=A(null),[F,d]=L(),[y,p]=L(null);H(()=>{if(!e)return;if(typeof window>"u"){h(!1);return}a(async()=>{try{let{openLegitFsWithMemoryFs:t}=await import("@legit-sdk/core"),r=await t({gitRoot:s.gitRoot,serverUrl:s.serverUrl,publicKey:s.publicKey});s.publicKey&&(await r.auth.addAccessToken(s.publicKey),r.sync.start()),r&&f(r)}catch(t){d(t)}},"init")(),h(!1)},[]),H(()=>{if(!n||typeof window>"u")return;window.legitFs=n;let c=setInterval(async()=>{let t=await n.getCurrentBranch();try{let r=await n.promises.readFile(`/.legit/branches/${t}/.legit/head`,"utf8");r!==u.current&&(u.current=r,p(r))}catch{}},T);return()=>{clearInterval(c)}},[n]);let w=a(async c=>{if(!(typeof window>"u")){if(!n){console.error("No legitFs instance available");return}try{let t=await n.getCurrentBranch();await n.promises.writeFile(`/.legit/branches/${t}/.legit/head`,c,"utf8")}catch(t){d(t)}}},"rollback");return K(I.Provider,{value:{legitFs:n,loading:n===null,head:y,rollback:w,error:F},children:i})},"LegitProvider");import{useEffect as O,useState as m,useRef as P,useCallback as U,useMemo as V}from"react";function _(i,s){let{legitFs:e,error:h,head:n}=x(),[f,u]=m(null),[F,d]=m([]),[y,p]=m(!0),[w,c]=m(),t=P(null),r=P(!1),C=P(!1);O(()=>{if(typeof window>"u"){p(!1);return}if(!e)return;let o=!1;return a(async()=>{p(!0);try{let g=await e.getCurrentBranch(),k=`/.legit/branches/${g}${i}`,B=`/.legit/branches/${g}/.legit/history`,v=await e.promises.readFile(k,"utf8"),D=await e.promises.readFile(B,"utf8").catch(()=>"");if(o)return;let b=[],E=D;E&&(b=JSON.parse(E)),t.current===v&&(t.current=null),u(v),d(b),c(void 0)}catch(g){g?.code!=="ENOENT"?c(g):(u(null),d([]))}finally{o||p(!1)}},"load")(),()=>{o=!0}},[e,i,n]);let R=U(async o=>{if(!(typeof window>"u")&&e)try{t.current=o;let l=await e.getCurrentBranch();await e.promises.writeFile(`/.legit/branches/${l}${i}`,o,"utf8"),u(o)}catch(l){throw t.current=null,c(l),l}},[e,i]);O(()=>{r.current||C.current||!y&&f===null&&e&&s?.initialData&&(C.current=!0,r.current=!0,a(async()=>{try{await R(s.initialData)}catch(l){console.error("Failed to initialize file:",l),r.current=!1}finally{C.current=!1}},"initialize")())},[y,f,e,s?.initialData,R]);let $=U(async o=>{if(typeof window>"u"||!e)return"";try{let l=i.startsWith("/")?i.slice(1):i;return await e.promises.readFile(`/.legit/commits/${o.slice(0,2)}/${o.slice(2)}/${l}`,"utf8")}catch{return""}},[e,i]);return{data:f,setData:R,history:V(()=>F,[F]),getPastState:$,loading:y,error:w??h,legitFs:e}}a(_,"useLegitFile");export{z as LegitProvider,x as useLegitContext,_ as useLegitFile};