>1,B=p===23?Math.pow(2,-24)-Math.pow(2,-77):0,A=c?0:l-1,_=c?1:-1,T=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(i=isNaN(r)?1:0,h=D):(h=Math.floor(Math.log(r)/Math.LN2),r*(d=Math.pow(2,-h))<1&&(h--,d*=2),h+R>=1?r+=B/d:r+=B*Math.pow(2,1-R),r*d>=2&&(h++,d/=2),h+R>=D?(i=0,h=D):h+R>=1?(i=(r*d-1)*Math.pow(2,p),h=h+R):(i=r*Math.pow(2,R-1)*Math.pow(2,p),h=0));p>=8;a[o+A]=i&255,A+=_,i/=256,p-=8);for(h=h<0;a[o+A]=h&255,A+=_,h/=256,w-=8);a[o+A-_]|=T*128}),Te}var Tt;function Fe(){return Tt||(Tt=1,(function(a){var r=ti(),o=ri(),c=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;a.Buffer=i,a.SlowBuffer=y,a.INSPECT_MAX_BYTES=50;var p=2147483647;a.kMaxLength=p,i.TYPED_ARRAY_SUPPORT=l(),!i.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 l(){try{var n=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(n,e),n.foo()===42}catch{return!1}}Object.defineProperty(i.prototype,"parent",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.buffer}}),Object.defineProperty(i.prototype,"offset",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.byteOffset}});function h(n){if(n>p)throw new RangeError('The value "'+n+'" is invalid for option "size"');var e=new Uint8Array(n);return Object.setPrototypeOf(e,i.prototype),e}function i(n,e,t){if(typeof n=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return R(n)}return d(n,e,t)}i.poolSize=8192;function d(n,e,t){if(typeof n=="string")return B(n,e);if(ArrayBuffer.isView(n))return A(n);if(n==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof n);if(M(n,ArrayBuffer)||n&&M(n.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(M(n,SharedArrayBuffer)||n&&M(n.buffer,SharedArrayBuffer)))return _(n,e,t);if(typeof n=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var u=n.valueOf&&n.valueOf();if(u!=null&&u!==n)return i.from(u,e,t);var b=T(n);if(b)return b;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof n[Symbol.toPrimitive]=="function")return i.from(n[Symbol.toPrimitive]("string"),e,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof n)}i.from=function(n,e,t){return d(n,e,t)},Object.setPrototypeOf(i.prototype,Uint8Array.prototype),Object.setPrototypeOf(i,Uint8Array);function w(n){if(typeof n!="number")throw new TypeError('"size" argument must be of type number');if(n<0)throw new RangeError('The value "'+n+'" is invalid for option "size"')}function D(n,e,t){return w(n),n<=0?h(n):e!==void 0?typeof t=="string"?h(n).fill(e,t):h(n).fill(e):h(n)}i.alloc=function(n,e,t){return D(n,e,t)};function R(n){return w(n),h(n<0?0:F(n)|0)}i.allocUnsafe=function(n){return R(n)},i.allocUnsafeSlow=function(n){return R(n)};function B(n,e){if((typeof e!="string"||e==="")&&(e="utf8"),!i.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var t=v(n,e)|0,u=h(t),b=u.write(n,e);return b!==t&&(u=u.slice(0,b)),u}function A(n){for(var e=n.length<0?0:F(n.length)|0,t=h(e),u=0;u=p)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+p.toString(16)+" bytes");return n|0}function y(n){return+n!=n&&(n=0),i.alloc(+n)}i.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==i.prototype},i.compare=function(e,t){if(M(e,Uint8Array)&&(e=i.from(e,e.offset,e.byteLength)),M(t,Uint8Array)&&(t=i.from(t,t.offset,t.byteLength)),!i.isBuffer(e)||!i.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var u=e.length,b=t.length,L=0,k=Math.min(u,b);L2&&arguments[2]===!0;if(!u&&t===0)return 0;for(var b=!1;;)switch(e){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return N(n).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return s(n).length;default:if(b)return u?-1:N(n).length;e=(""+e).toLowerCase(),b=!0}}i.byteLength=v;function S(n,e,t){var u=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,e>>>=0,t<=e))return"";for(n||(n="utf8");;)switch(n){case"hex":return ue(this,e,t);case"utf8":case"utf-8":return ne(this,e,t);case"ascii":return ae(this,e,t);case"latin1":case"binary":return he(this,e,t);case"base64":return re(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return fe(this,e,t);default:if(u)throw new TypeError("Unknown encoding: "+n);n=(n+"").toLowerCase(),u=!0}}i.prototype._isBuffer=!0;function m(n,e,t){var u=n[e];n[e]=n[t],n[t]=u}i.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tt&&(e+=" ... "),""},c&&(i.prototype[c]=i.prototype.inspect),i.prototype.compare=function(e,t,u,b,L){if(M(e,Uint8Array)&&(e=i.from(e,e.offset,e.byteLength)),!i.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),u===void 0&&(u=e?e.length:0),b===void 0&&(b=0),L===void 0&&(L=this.length),t<0||u>e.length||b<0||L>this.length)throw new RangeError("out of range index");if(b>=L&&t>=u)return 0;if(b>=L)return-1;if(t>=u)return 1;if(t>>>=0,u>>>=0,b>>>=0,L>>>=0,this===e)return 0;for(var k=L-b,W=u-t,K=Math.min(k,W),V=this.slice(b,L),J=e.slice(t,u),$=0;$2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,O(t)&&(t=b?0:n.length-1),t<0&&(t=n.length+t),t>=n.length){if(b)return-1;t=n.length-1}else if(t<0)if(b)t=0;else return-1;if(typeof e=="string"&&(e=i.from(e,u)),i.isBuffer(e))return e.length===0?-1:C(n,e,t,u,b);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?b?Uint8Array.prototype.indexOf.call(n,e,t):Uint8Array.prototype.lastIndexOf.call(n,e,t):C(n,[e],t,u,b);throw new TypeError("val must be string, number or Buffer")}function C(n,e,t,u,b){var L=1,k=n.length,W=e.length;if(u!==void 0&&(u=String(u).toLowerCase(),u==="ucs2"||u==="ucs-2"||u==="utf16le"||u==="utf-16le")){if(n.length<2||e.length<2)return-1;L=2,k/=2,W/=2,t/=2}function K(_t,Ct){return L===1?_t[Ct]:_t.readUInt16BE(Ct*L)}var V;if(b){var J=-1;for(V=t;Vk&&(t=k-W),V=t;V>=0;V--){for(var $=!0,se=0;seb&&(u=b)):u=b;var L=e.length;u>L/2&&(u=L/2);for(var k=0;k>>0,isFinite(u)?(u=u>>>0,b===void 0&&(b="utf8")):(b=u,u=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var L=this.length-t;if((u===void 0||u>L)&&(u=L),e.length>0&&(u<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");b||(b="utf8");for(var k=!1;;)switch(b){case"hex":return I(this,e,t,u);case"utf8":case"utf-8":return P(this,e,t,u);case"ascii":return U(this,e,t,u);case"latin1":case"binary":return q(this,e,t,u);case"base64":return G(this,e,t,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ee(this,e,t,u);default:if(k)throw new TypeError("Unknown encoding: "+b);b=(""+b).toLowerCase(),k=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function re(n,e,t){return e===0&&t===n.length?r.fromByteArray(n):r.fromByteArray(n.slice(e,t))}function ne(n,e,t){t=Math.min(n.length,t);for(var u=[],b=e;b239?4:L>223?3:L>191?2:1;if(b+W<=t){var K,V,J,$;switch(W){case 1:L<128&&(k=L);break;case 2:K=n[b+1],(K&192)===128&&($=(L&31)<<6|K&63,$>127&&(k=$));break;case 3:K=n[b+1],V=n[b+2],(K&192)===128&&(V&192)===128&&($=(L&15)<<12|(K&63)<<6|V&63,$>2047&&($<55296||$>57343)&&(k=$));break;case 4:K=n[b+1],V=n[b+2],J=n[b+3],(K&192)===128&&(V&192)===128&&(J&192)===128&&($=(L&15)<<18|(K&63)<<12|(V&63)<<6|J&63,$>65535&&$<1114112&&(k=$))}}k===null?(k=65533,W=1):k>65535&&(k-=65536,u.push(k>>>10&1023|55296),k=56320|k&1023),u.push(k),b+=W}return oe(u)}var ie=4096;function oe(n){var e=n.length;if(e<=ie)return String.fromCharCode.apply(String,n);for(var t="",u=0;uu)&&(t=u);for(var b="",L=e;Lu&&(e=u),t<0?(t+=u,t<0&&(t=0)):t>u&&(t=u),tt)throw new RangeError("Trying to access beyond buffer length")}i.prototype.readUIntLE=function(e,t,u){e=e>>>0,t=t>>>0,u||Y(e,t,this.length);for(var b=this[e],L=1,k=0;++k>>0,t=t>>>0,u||Y(e,t,this.length);for(var b=this[e+--t],L=1;t>0&&(L*=256);)b+=this[e+--t]*L;return b},i.prototype.readUInt8=function(e,t){return e=e>>>0,t||Y(e,1,this.length),this[e]},i.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||Y(e,2,this.length),this[e]|this[e+1]<<8},i.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||Y(e,2,this.length),this[e]<<8|this[e+1]},i.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||Y(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},i.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||Y(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},i.prototype.readIntLE=function(e,t,u){e=e>>>0,t=t>>>0,u||Y(e,t,this.length);for(var b=this[e],L=1,k=0;++k=L&&(b-=Math.pow(2,8*t)),b},i.prototype.readIntBE=function(e,t,u){e=e>>>0,t=t>>>0,u||Y(e,t,this.length);for(var b=t,L=1,k=this[e+--b];b>0&&(L*=256);)k+=this[e+--b]*L;return L*=128,k>=L&&(k-=Math.pow(2,8*t)),k},i.prototype.readInt8=function(e,t){return e=e>>>0,t||Y(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},i.prototype.readInt16LE=function(e,t){e=e>>>0,t||Y(e,2,this.length);var u=this[e]|this[e+1]<<8;return u&32768?u|4294901760:u},i.prototype.readInt16BE=function(e,t){e=e>>>0,t||Y(e,2,this.length);var u=this[e+1]|this[e]<<8;return u&32768?u|4294901760:u},i.prototype.readInt32LE=function(e,t){return e=e>>>0,t||Y(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},i.prototype.readInt32BE=function(e,t){return e=e>>>0,t||Y(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},i.prototype.readFloatLE=function(e,t){return e=e>>>0,t||Y(e,4,this.length),o.read(this,e,!0,23,4)},i.prototype.readFloatBE=function(e,t){return e=e>>>0,t||Y(e,4,this.length),o.read(this,e,!1,23,4)},i.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||Y(e,8,this.length),o.read(this,e,!0,52,8)},i.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||Y(e,8,this.length),o.read(this,e,!1,52,8)};function Z(n,e,t,u,b,L){if(!i.isBuffer(n))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>b||en.length)throw new RangeError("Index out of range")}i.prototype.writeUIntLE=function(e,t,u,b){if(e=+e,t=t>>>0,u=u>>>0,!b){var L=Math.pow(2,8*u)-1;Z(this,e,t,u,L,0)}var k=1,W=0;for(this[t]=e&255;++W>>0,u=u>>>0,!b){var L=Math.pow(2,8*u)-1;Z(this,e,t,u,L,0)}var k=u-1,W=1;for(this[t+k]=e&255;--k>=0&&(W*=256);)this[t+k]=e/W&255;return t+u},i.prototype.writeUInt8=function(e,t,u){return e=+e,t=t>>>0,u||Z(this,e,t,1,255,0),this[t]=e&255,t+1},i.prototype.writeUInt16LE=function(e,t,u){return e=+e,t=t>>>0,u||Z(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},i.prototype.writeUInt16BE=function(e,t,u){return e=+e,t=t>>>0,u||Z(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},i.prototype.writeUInt32LE=function(e,t,u){return e=+e,t=t>>>0,u||Z(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},i.prototype.writeUInt32BE=function(e,t,u){return e=+e,t=t>>>0,u||Z(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},i.prototype.writeIntLE=function(e,t,u,b){if(e=+e,t=t>>>0,!b){var L=Math.pow(2,8*u-1);Z(this,e,t,u,L-1,-L)}var k=0,W=1,K=0;for(this[t]=e&255;++k>0)-K&255;return t+u},i.prototype.writeIntBE=function(e,t,u,b){if(e=+e,t=t>>>0,!b){var L=Math.pow(2,8*u-1);Z(this,e,t,u,L-1,-L)}var k=u-1,W=1,K=0;for(this[t+k]=e&255;--k>=0&&(W*=256);)e<0&&K===0&&this[t+k+1]!==0&&(K=1),this[t+k]=(e/W>>0)-K&255;return t+u},i.prototype.writeInt8=function(e,t,u){return e=+e,t=t>>>0,u||Z(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},i.prototype.writeInt16LE=function(e,t,u){return e=+e,t=t>>>0,u||Z(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},i.prototype.writeInt16BE=function(e,t,u){return e=+e,t=t>>>0,u||Z(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},i.prototype.writeInt32LE=function(e,t,u){return e=+e,t=t>>>0,u||Z(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},i.prototype.writeInt32BE=function(e,t,u){return e=+e,t=t>>>0,u||Z(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function te(n,e,t,u,b,L){if(t+u>n.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function be(n,e,t,u,b){return e=+e,t=t>>>0,b||te(n,e,t,4),o.write(n,e,t,u,23,4),t+4}i.prototype.writeFloatLE=function(e,t,u){return be(this,e,t,!0,u)},i.prototype.writeFloatBE=function(e,t,u){return be(this,e,t,!1,u)};function we(n,e,t,u,b){return e=+e,t=t>>>0,b||te(n,e,t,8),o.write(n,e,t,u,52,8),t+8}i.prototype.writeDoubleLE=function(e,t,u){return we(this,e,t,!0,u)},i.prototype.writeDoubleBE=function(e,t,u){return we(this,e,t,!1,u)},i.prototype.copy=function(e,t,u,b){if(!i.isBuffer(e))throw new TypeError("argument should be a Buffer");if(u||(u=0),!b&&b!==0&&(b=this.length),t>=e.length&&(t=e.length),t||(t=0),b>0&&b=this.length)throw new RangeError("Index out of range");if(b<0)throw new RangeError("sourceEnd out of bounds");b>this.length&&(b=this.length),e.length-t=0;--k)e[k+t]=this[k+u];else Uint8Array.prototype.set.call(e,this.subarray(u,b),t);return L},i.prototype.fill=function(e,t,u,b){if(typeof e=="string"){if(typeof t=="string"?(b=t,t=0,u=this.length):typeof u=="string"&&(b=u,u=this.length),b!==void 0&&typeof b!="string")throw new TypeError("encoding must be a string");if(typeof b=="string"&&!i.isEncoding(b))throw new TypeError("Unknown encoding: "+b);if(e.length===1){var L=e.charCodeAt(0);(b==="utf8"&&L<128||b==="latin1")&&(e=L)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length>>0,u=u===void 0?this.length:u>>>0,e||(e=0);var k;if(typeof e=="number")for(k=t;k55295&&t<57344){if(!b){if(t>56319){(e-=3)>-1&&L.push(239,191,189);continue}else if(k+1===u){(e-=3)>-1&&L.push(239,191,189);continue}b=t;continue}if(t<56320){(e-=3)>-1&&L.push(239,191,189),b=t;continue}t=(b-55296<<10|t-56320)+65536}else b&&(e-=3)>-1&&L.push(239,191,189);if(b=null,t<128){if((e-=1)<0)break;L.push(t)}else if(t<2048){if((e-=2)<0)break;L.push(t>>6|192,t&63|128)}else if(t<65536){if((e-=3)<0)break;L.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((e-=4)<0)break;L.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return L}function j(n){for(var e=[],t=0;t>8,b=t%256,L.push(b),L.push(u);return L}function s(n){return r.toByteArray(E(n))}function f(n,e,t,u){for(var b=0;b=e.length||b>=n.length);++b)e[b+t]=n[b];return b}function M(n,e){return n instanceof e||n!=null&&n.constructor!=null&&n.constructor.name!=null&&n.constructor.name===e.name}function O(n){return n!==n}var X=(function(){for(var n="0123456789abcdef",e=new Array(256),t=0;t<16;++t)for(var u=t*16,b=0;b<16;++b)e[u+b]=n[t]+n[b];return e})()})(Ke)),Ke}var de=Fe();const ni={lstatSync:()=>{},isFileReadStream(a){return!1}},Pe={...ni,runtime:"browser"},Me=a=>{if(a==null)return 0;if(typeof a=="string")return de.Buffer.byteLength(a);if(typeof a.byteLength=="number")return a.byteLength;if(typeof a.length=="number")return a.length;if(typeof a.size=="number")return a.size;if(typeof a.start=="number"&&typeof a.end=="number")return a.end+1-a.start;if(Pe.isFileReadStream(a))try{return Pe.lstatSync(a.path).size}catch{return}};var le;(function(a){a.EMPTY_INPUT="a null or undefined Body",a.CONTENT_LENGTH="the ContentLength property of the params set by the caller",a.STRING_LENGTH="the encoded byte length of the Body string",a.TYPED_ARRAY="the byteLength of a typed byte array such as Uint8Array",a.LENGTH="the value of Body.length",a.SIZE="the value of Body.size",a.START_END_DIFF="the numeric difference between Body.start and Body.end",a.LSTAT="the size of the file given by Body.path on disk as reported by lstatSync"})(le||(le={}));const ii=(a,r)=>{if(r!=null)return le.CONTENT_LENGTH;if(a==null)return le.EMPTY_INPUT;if(typeof a=="string")return le.STRING_LENGTH;if(typeof a.byteLength=="number")return le.TYPED_ARRAY;if(typeof a.length=="number")return le.LENGTH;if(typeof a.size=="number")return le.SIZE;if(typeof a.start=="number"&&typeof a.end=="number")return le.START_END_DIFF;if(Pe.isFileReadStream(a))try{return Pe.lstatSync(a.path).size,le.LSTAT}catch{return}};var Le={exports:{}},Mt;function ve(){return Mt||(Mt=1,typeof Object.create=="function"?Le.exports=function(r,o){o&&(r.super_=o,r.prototype=Object.create(o.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:Le.exports=function(r,o){if(o){r.super_=o;var c=function(){};c.prototype=o.prototype,r.prototype=new c,r.prototype.constructor=r}}),Le.exports}var $e,Lt;function sr(){return Lt||(Lt=1,$e=Oe().EventEmitter),$e}const ai={},oi=Object.freeze(Object.defineProperty({__proto__:null,default:ai},Symbol.toStringTag,{value:"Module"})),ur=Ur(oi);var ze,kt;function si(){if(kt)return ze;kt=1;function a(_,T){var F=Object.keys(_);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(_);T&&(y=y.filter(function(v){return Object.getOwnPropertyDescriptor(_,v).enumerable})),F.push.apply(F,y)}return F}function r(_){for(var T=1;T0?this.tail.next=y:this.head=y,this.tail=y,++this.length}},{key:"unshift",value:function(F){var y={data:F,next:this.head};this.length===0&&(this.tail=y),this.head=y,++this.length}},{key:"shift",value:function(){if(this.length!==0){var F=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,F}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(F){if(this.length===0)return"";for(var y=this.head,v=""+y.data;y=y.next;)v+=F+y.data;return v}},{key:"concat",value:function(F){if(this.length===0)return w.alloc(0);for(var y=w.allocUnsafe(F>>>0),v=this.head,S=0;v;)A(v.data,y,S),S+=v.data.length,v=v.next;return y}},{key:"consume",value:function(F,y){var v;return Fm.length?m.length:F;if(g===m.length?S+=m:S+=m.slice(0,F),F-=g,F===0){g===m.length?(++v,y.next?this.head=y.next:this.head=this.tail=null):(this.head=y,y.data=m.slice(g));break}++v}return this.length-=v,S}},{key:"_getBuffer",value:function(F){var y=w.allocUnsafe(F),v=this.head,S=1;for(v.data.copy(y),F-=v.data.length;v=v.next;){var m=v.data,g=F>m.length?m.length:F;if(m.copy(y,y.length-F,0,g),F-=g,F===0){g===m.length?(++S,v.next?this.head=v.next:this.head=this.tail=null):(this.head=v,v.data=m.slice(g));break}++S}return this.length-=S,y}},{key:B,value:function(F,y){return R(this,r(r({},y),{},{depth:0,customInspect:!1}))}}]),_})(),ze}var Ve,Nt;function lr(){if(Nt)return Ve;Nt=1;function a(h,i){var d=this,w=this._readableState&&this._readableState.destroyed,D=this._writableState&&this._writableState.destroyed;return w||D?(i?i(h):h&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(p,this,h)):process.nextTick(p,this,h)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(h||null,function(R){!i&&R?d._writableState?d._writableState.errorEmitted?process.nextTick(o,d):(d._writableState.errorEmitted=!0,process.nextTick(r,d,R)):process.nextTick(r,d,R):i?(process.nextTick(o,d),i(R)):process.nextTick(o,d)}),this)}function r(h,i){p(h,i),o(h)}function o(h){h._writableState&&!h._writableState.emitClose||h._readableState&&!h._readableState.emitClose||h.emit("close")}function c(){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)}function p(h,i){h.emit("error",i)}function l(h,i){var d=h._readableState,w=h._writableState;d&&d.autoDestroy||w&&w.autoDestroy?h.destroy(i):h.emit("error",i)}return Ve={destroy:a,undestroy:c,errorOrDestroy:l},Ve}var Ge={},Pt;function _e(){if(Pt)return Ge;Pt=1;function a(i,d){i.prototype=Object.create(d.prototype),i.prototype.constructor=i,i.__proto__=d}var r={};function o(i,d,w){w||(w=Error);function D(B,A,_){return typeof d=="string"?d:d(B,A,_)}var R=(function(B){a(A,B);function A(_,T,F){return B.call(this,D(_,T,F))||this}return A})(w);R.prototype.name=w.name,R.prototype.code=i,r[i]=R}function c(i,d){if(Array.isArray(i)){var w=i.length;return i=i.map(function(D){return String(D)}),w>2?"one of ".concat(d," ").concat(i.slice(0,w-1).join(", "),", or ")+i[w-1]:w===2?"one of ".concat(d," ").concat(i[0]," or ").concat(i[1]):"of ".concat(d," ").concat(i[0])}else return"of ".concat(d," ").concat(String(i))}function p(i,d,w){return i.substr(0,d.length)===d}function l(i,d,w){return(w===void 0||w>i.length)&&(w=i.length),i.substring(w-d.length,w)===d}function h(i,d,w){return typeof w!="number"&&(w=0),w+d.length>i.length?!1:i.indexOf(d,w)!==-1}return o("ERR_INVALID_OPT_VALUE",function(i,d){return'The value "'+d+'" is invalid for option "'+i+'"'},TypeError),o("ERR_INVALID_ARG_TYPE",function(i,d,w){var D;typeof d=="string"&&p(d,"not ")?(D="must not be",d=d.replace(/^not /,"")):D="must be";var R;if(l(i," argument"))R="The ".concat(i," ").concat(D," ").concat(c(d,"type"));else{var B=h(i,".")?"property":"argument";R='The "'.concat(i,'" ').concat(B," ").concat(D," ").concat(c(d,"type"))}return R+=". Received type ".concat(typeof w),R},TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",function(i){return"The "+i+" method is not implemented"}),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",function(i){return"Cannot call "+i+" after a stream was destroyed"}),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",function(i){return"Unknown encoding: "+i},TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Ge.codes=r,Ge}var Ye,It;function fr(){if(It)return Ye;It=1;var a=_e().codes.ERR_INVALID_OPT_VALUE;function r(c,p,l){return c.highWaterMark!=null?c.highWaterMark:p?c[l]:null}function o(c,p,l,h){var i=r(p,h,l);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var d=h?l:"highWaterMark";throw new a(d,i)}return Math.floor(i)}return c.objectMode?16:16*1024}return Ye={getHighWaterMark:o},Ye}var Xe,Ut;function ui(){if(Ut)return Xe;Ut=1,Xe=a;function a(o,c){if(r("noDeprecation"))return o;var p=!1;function l(){if(!p){if(r("throwDeprecation"))throw new Error(c);r("traceDeprecation")?console.trace(c):console.warn(c),p=!0}return o.apply(this,arguments)}return l}function r(o){try{if(!Ee.localStorage)return!1}catch{return!1}var c=Ee.localStorage[o];return c==null?!1:String(c).toLowerCase()==="true"}return Xe}var Qe,Ot;function cr(){if(Ot)return Qe;Ot=1,Qe=P;function a(x){var E=this;this.next=null,this.entry=null,this.finish=function(){we(E,x)}}var r;P.WritableState=C;var o={deprecate:ui()},c=sr(),p=Fe().Buffer,l=(typeof Ee<"u"?Ee:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function h(x){return p.from(x)}function i(x){return p.isBuffer(x)||x instanceof l}var d=lr(),w=fr(),D=w.getHighWaterMark,R=_e().codes,B=R.ERR_INVALID_ARG_TYPE,A=R.ERR_METHOD_NOT_IMPLEMENTED,_=R.ERR_MULTIPLE_CALLBACK,T=R.ERR_STREAM_CANNOT_PIPE,F=R.ERR_STREAM_DESTROYED,y=R.ERR_STREAM_NULL_VALUES,v=R.ERR_STREAM_WRITE_AFTER_END,S=R.ERR_UNKNOWN_ENCODING,m=d.errorOrDestroy;ve()(P,c);function g(){}function C(x,E,N){r=r||xe(),x=x||{},typeof N!="boolean"&&(N=E instanceof r),this.objectMode=!!x.objectMode,N&&(this.objectMode=this.objectMode||!!x.writableObjectMode),this.highWaterMark=D(this,x,"writableHighWaterMark",N),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var j=x.decodeStrings===!1;this.decodeStrings=!j,this.defaultEncoding=x.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(H){oe(E,H)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=x.emitClose!==!1,this.autoDestroy=!!x.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}C.prototype.getBuffer=function(){for(var E=this.bufferedRequest,N=[];E;)N.push(E),E=E.next;return N},(function(){try{Object.defineProperty(C.prototype,"buffer",{get:o.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var I;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(I=Function.prototype[Symbol.hasInstance],Object.defineProperty(P,Symbol.hasInstance,{value:function(E){return I.call(this,E)?!0:this!==P?!1:E&&E._writableState instanceof C}})):I=function(E){return E instanceof this};function P(x){r=r||xe();var E=this instanceof r;if(!E&&!I.call(P,this))return new P(x);this._writableState=new C(x,this,E),this.writable=!0,x&&(typeof x.write=="function"&&(this._write=x.write),typeof x.writev=="function"&&(this._writev=x.writev),typeof x.destroy=="function"&&(this._destroy=x.destroy),typeof x.final=="function"&&(this._final=x.final)),c.call(this)}P.prototype.pipe=function(){m(this,new T)};function U(x,E){var N=new v;m(x,N),process.nextTick(E,N)}function q(x,E,N,j){var H;return N===null?H=new y:typeof N!="string"&&!E.objectMode&&(H=new B("chunk",["string","Buffer"],N)),H?(m(x,H),process.nextTick(j,H),!1):!0}P.prototype.write=function(x,E,N){var j=this._writableState,H=!1,s=!j.objectMode&&i(x);return s&&!p.isBuffer(x)&&(x=h(x)),typeof E=="function"&&(N=E,E=null),s?E="buffer":E||(E=j.defaultEncoding),typeof N!="function"&&(N=g),j.ending?U(this,N):(s||q(this,j,x,N))&&(j.pendingcb++,H=ee(this,j,s,x,E,N)),H},P.prototype.cork=function(){this._writableState.corked++},P.prototype.uncork=function(){var x=this._writableState;x.corked&&(x.corked--,!x.writing&&!x.corked&&!x.bufferProcessing&&x.bufferedRequest&&ue(this,x))},P.prototype.setDefaultEncoding=function(E){if(typeof E=="string"&&(E=E.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((E+"").toLowerCase())>-1))throw new S(E);return this._writableState.defaultEncoding=E,this},Object.defineProperty(P.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function G(x,E,N){return!x.objectMode&&x.decodeStrings!==!1&&typeof E=="string"&&(E=p.from(E,N)),E}Object.defineProperty(P.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function ee(x,E,N,j,H,s){if(!N){var f=G(E,j,H);j!==f&&(N=!0,H="buffer",j=f)}var M=E.objectMode?1:j.length;E.length+=M;var O=E.length