UNPKG

n3

Version:

Lightning fast, asynchronous, streaming Turtle / N3 / RDF library.

2 lines 181 kB
var bl=Object.create;var Or=Object.defineProperty;var gl=Object.getOwnPropertyDescriptor;var yl=Object.getOwnPropertyNames;var wl=Object.getPrototypeOf,ml=Object.prototype.hasOwnProperty;var S=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},xl=(t,e)=>{for(var r in e)Or(t,r,{get:e[r],enumerable:!0})},El=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of yl(e))!ml.call(t,n)&&n!==r&&Or(t,n,{get:()=>e[n],enumerable:!(i=gl(e,n))||i.enumerable});return t};var zt=(t,e,r)=>(r=t!=null?bl(wl(t)):{},El(e||!t||!t.__esModule?Or(r,"default",{value:t,enumerable:!0}):r,t));var yn=S(Kt=>{"use strict";Kt.byteLength=Il;Kt.toByteArray=Tl;Kt.fromByteArray=vl;var Y=[],V=[],Sl=typeof Uint8Array<"u"?Uint8Array:Array,Mr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Pe=0,bn=Mr.length;Pe<bn;++Pe)Y[Pe]=Mr[Pe],V[Mr.charCodeAt(Pe)]=Pe;var Pe,bn;V[45]=62;V[95]=63;function gn(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var i=r===e?0:4-r%4;return[r,i]}function Il(t){var e=gn(t),r=e[0],i=e[1];return(r+i)*3/4-i}function Rl(t,e,r){return(e+r)*3/4-r}function Tl(t){var e,r=gn(t),i=r[0],n=r[1],s=new Sl(Rl(t,i,n)),o=0,a=n>0?i-4:i,l;for(l=0;l<a;l+=4)e=V[t.charCodeAt(l)]<<18|V[t.charCodeAt(l+1)]<<12|V[t.charCodeAt(l+2)]<<6|V[t.charCodeAt(l+3)],s[o++]=e>>16&255,s[o++]=e>>8&255,s[o++]=e&255;return n===2&&(e=V[t.charCodeAt(l)]<<2|V[t.charCodeAt(l+1)]>>4,s[o++]=e&255),n===1&&(e=V[t.charCodeAt(l)]<<10|V[t.charCodeAt(l+1)]<<4|V[t.charCodeAt(l+2)]>>2,s[o++]=e>>8&255,s[o++]=e&255),s}function Al(t){return Y[t>>18&63]+Y[t>>12&63]+Y[t>>6&63]+Y[t&63]}function Nl(t,e,r){for(var i,n=[],s=e;s<r;s+=3)i=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(t[s+2]&255),n.push(Al(i));return n.join("")}function vl(t){for(var e,r=t.length,i=r%3,n=[],s=16383,o=0,a=r-i;o<a;o+=s)n.push(Nl(t,o,o+s>a?a:o+s));return i===1?(e=t[r-1],n.push(Y[e>>2]+Y[e<<4&63]+"==")):i===2&&(e=(t[r-2]<<8)+t[r-1],n.push(Y[e>>10]+Y[e>>4&63]+Y[e<<2&63]+"=")),n.join("")}});var wn=S(Dr=>{Dr.read=function(t,e,r,i,n){var s,o,a=n*8-i-1,l=(1<<a)-1,u=l>>1,f=-7,c=r?n-1:0,_=r?-1:1,h=t[e+c];for(c+=_,s=h&(1<<-f)-1,h>>=-f,f+=a;f>0;s=s*256+t[e+c],c+=_,f-=8);for(o=s&(1<<-f)-1,s>>=-f,f+=i;f>0;o=o*256+t[e+c],c+=_,f-=8);if(s===0)s=1-u;else{if(s===l)return o?NaN:(h?-1:1)*(1/0);o=o+Math.pow(2,i),s=s-u}return(h?-1:1)*o*Math.pow(2,s-i)};Dr.write=function(t,e,r,i,n,s){var o,a,l,u=s*8-n-1,f=(1<<u)-1,c=f>>1,_=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=i?0:s-1,b=i?1:-1,p=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,o=f):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+c>=1?e+=_/l:e+=_*Math.pow(2,1-c),e*l>=2&&(o++,l/=2),o+c>=f?(a=0,o=f):o+c>=1?(a=(e*l-1)*Math.pow(2,n),o=o+c):(a=e*Math.pow(2,c-1)*Math.pow(2,n),o=0));n>=8;t[r+h]=a&255,h+=b,a/=256,n-=8);for(o=o<<n|a,u+=n;u>0;t[r+h]=o&255,h+=b,o/=256,u-=8);t[r+h-b]|=p*128}});var X=S(tt=>{"use strict";var kr=yn(),Ze=wn(),mn=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;tt.Buffer=d;tt.SlowBuffer=Cl;tt.INSPECT_MAX_BYTES=50;var Yt=2147483647;tt.kMaxLength=Yt;d.TYPED_ARRAY_SUPPORT=jl();!d.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 jl(){try{let t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch{return!1}}Object.defineProperty(d.prototype,"parent",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.buffer}});Object.defineProperty(d.prototype,"offset",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.byteOffset}});function fe(t){if(t>Yt)throw new RangeError('The value "'+t+'" is invalid for option "size"');let e=new Uint8Array(t);return Object.setPrototypeOf(e,d.prototype),e}function d(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Wr(t)}return In(t,e,r)}d.poolSize=8192;function In(t,e,r){if(typeof t=="string")return Pl(t,e);if(ArrayBuffer.isView(t))return Bl(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(J(t,ArrayBuffer)||t&&J(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(J(t,SharedArrayBuffer)||t&&J(t.buffer,SharedArrayBuffer)))return qr(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let i=t.valueOf&&t.valueOf();if(i!=null&&i!==t)return d.from(i,e,r);let n=Fl(t);if(n)return n;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return d.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}d.from=function(t,e,r){return In(t,e,r)};Object.setPrototypeOf(d.prototype,Uint8Array.prototype);Object.setPrototypeOf(d,Uint8Array);function Rn(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"')}function Ll(t,e,r){return Rn(t),t<=0?fe(t):e!==void 0?typeof r=="string"?fe(t).fill(e,r):fe(t).fill(e):fe(t)}d.alloc=function(t,e,r){return Ll(t,e,r)};function Wr(t){return Rn(t),fe(t<0?0:Gr(t)|0)}d.allocUnsafe=function(t){return Wr(t)};d.allocUnsafeSlow=function(t){return Wr(t)};function Pl(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!d.isEncoding(e))throw new TypeError("Unknown encoding: "+e);let r=Tn(t,e)|0,i=fe(r),n=i.write(t,e);return n!==r&&(i=i.slice(0,n)),i}function $r(t){let e=t.length<0?0:Gr(t.length)|0,r=fe(e);for(let i=0;i<e;i+=1)r[i]=t[i]&255;return r}function Bl(t){if(J(t,Uint8Array)){let e=new Uint8Array(t);return qr(e.buffer,e.byteOffset,e.byteLength)}return $r(t)}function qr(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');let i;return e===void 0&&r===void 0?i=new Uint8Array(t):r===void 0?i=new Uint8Array(t,e):i=new Uint8Array(t,e,r),Object.setPrototypeOf(i,d.prototype),i}function Fl(t){if(d.isBuffer(t)){let e=Gr(t.length)|0,r=fe(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||Qr(t.length)?fe(0):$r(t);if(t.type==="Buffer"&&Array.isArray(t.data))return $r(t.data)}function Gr(t){if(t>=Yt)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Yt.toString(16)+" bytes");return t|0}function Cl(t){return+t!=t&&(t=0),d.alloc(+t)}d.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==d.prototype};d.compare=function(e,r){if(J(e,Uint8Array)&&(e=d.from(e,e.offset,e.byteLength)),J(r,Uint8Array)&&(r=d.from(r,r.offset,r.byteLength)),!d.isBuffer(e)||!d.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;let i=e.length,n=r.length;for(let s=0,o=Math.min(i,n);s<o;++s)if(e[s]!==r[s]){i=e[s],n=r[s];break}return i<n?-1:n<i?1:0};d.isEncoding=function(e){switch(String(e).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}};d.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return d.alloc(0);let i;if(r===void 0)for(r=0,i=0;i<e.length;++i)r+=e[i].length;let n=d.allocUnsafe(r),s=0;for(i=0;i<e.length;++i){let o=e[i];if(J(o,Uint8Array))s+o.length>n.length?(d.isBuffer(o)||(o=d.from(o)),o.copy(n,s)):Uint8Array.prototype.set.call(n,o,s);else if(d.isBuffer(o))o.copy(n,s);else throw new TypeError('"list" argument must be an Array of Buffers');s+=o.length}return n};function Tn(t,e){if(d.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||J(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 r=t.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&r===0)return 0;let n=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Ur(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Cn(t).length;default:if(n)return i?-1:Ur(t).length;e=(""+e).toLowerCase(),n=!0}}d.byteLength=Tn;function Ol(t,e,r){let i=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return Ql(this,e,r);case"utf8":case"utf-8":return Nn(this,e,r);case"ascii":return Gl(this,e,r);case"latin1":case"binary":return Vl(this,e,r);case"base64":return Ul(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Hl(this,e,r);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}d.prototype._isBuffer=!0;function Be(t,e,r){let i=t[e];t[e]=t[r],t[r]=i}d.prototype.swap16=function(){let e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;r<e;r+=2)Be(this,r,r+1);return this};d.prototype.swap32=function(){let e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let r=0;r<e;r+=4)Be(this,r,r+3),Be(this,r+1,r+2);return this};d.prototype.swap64=function(){let e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let r=0;r<e;r+=8)Be(this,r,r+7),Be(this,r+1,r+6),Be(this,r+2,r+5),Be(this,r+3,r+4);return this};d.prototype.toString=function(){let e=this.length;return e===0?"":arguments.length===0?Nn(this,0,e):Ol.apply(this,arguments)};d.prototype.toLocaleString=d.prototype.toString;d.prototype.equals=function(e){if(!d.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:d.compare(this,e)===0};d.prototype.inspect=function(){let e="",r=tt.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};mn&&(d.prototype[mn]=d.prototype.inspect);d.prototype.compare=function(e,r,i,n,s){if(J(e,Uint8Array)&&(e=d.from(e,e.offset,e.byteLength)),!d.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),i===void 0&&(i=e?e.length:0),n===void 0&&(n=0),s===void 0&&(s=this.length),r<0||i>e.length||n<0||s>this.length)throw new RangeError("out of range index");if(n>=s&&r>=i)return 0;if(n>=s)return-1;if(r>=i)return 1;if(r>>>=0,i>>>=0,n>>>=0,s>>>=0,this===e)return 0;let o=s-n,a=i-r,l=Math.min(o,a),u=this.slice(n,s),f=e.slice(r,i);for(let c=0;c<l;++c)if(u[c]!==f[c]){o=u[c],a=f[c];break}return o<a?-1:a<o?1:0};function An(t,e,r,i,n){if(t.length===0)return-1;if(typeof r=="string"?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,Qr(r)&&(r=n?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(n)return-1;r=t.length-1}else if(r<0)if(n)r=0;else return-1;if(typeof e=="string"&&(e=d.from(e,i)),d.isBuffer(e))return e.length===0?-1:xn(t,e,r,i,n);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):xn(t,[e],r,i,n);throw new TypeError("val must be string, number or Buffer")}function xn(t,e,r,i,n){let s=1,o=t.length,a=e.length;if(i!==void 0&&(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(t.length<2||e.length<2)return-1;s=2,o/=2,a/=2,r/=2}function l(f,c){return s===1?f[c]:f.readUInt16BE(c*s)}let u;if(n){let f=-1;for(u=r;u<o;u++)if(l(t,u)===l(e,f===-1?0:u-f)){if(f===-1&&(f=u),u-f+1===a)return f*s}else f!==-1&&(u-=u-f),f=-1}else for(r+a>o&&(r=o-a),u=r;u>=0;u--){let f=!0;for(let c=0;c<a;c++)if(l(t,u+c)!==l(e,c)){f=!1;break}if(f)return u}return-1}d.prototype.includes=function(e,r,i){return this.indexOf(e,r,i)!==-1};d.prototype.indexOf=function(e,r,i){return An(this,e,r,i,!0)};d.prototype.lastIndexOf=function(e,r,i){return An(this,e,r,i,!1)};function Ml(t,e,r,i){r=Number(r)||0;let n=t.length-r;i?(i=Number(i),i>n&&(i=n)):i=n;let s=e.length;i>s/2&&(i=s/2);let o;for(o=0;o<i;++o){let a=parseInt(e.substr(o*2,2),16);if(Qr(a))return o;t[r+o]=a}return o}function Dl(t,e,r,i){return Jt(Ur(e,t.length-r),t,r,i)}function kl(t,e,r,i){return Jt(Jl(e),t,r,i)}function $l(t,e,r,i){return Jt(Cn(e),t,r,i)}function ql(t,e,r,i){return Jt(Xl(e,t.length-r),t,r,i)}d.prototype.write=function(e,r,i,n){if(r===void 0)n="utf8",i=this.length,r=0;else if(i===void 0&&typeof r=="string")n=r,i=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(i)?(i=i>>>0,n===void 0&&(n="utf8")):(n=i,i=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let s=this.length-r;if((i===void 0||i>s)&&(i=s),e.length>0&&(i<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return Ml(this,e,r,i);case"utf8":case"utf-8":return Dl(this,e,r,i);case"ascii":case"latin1":case"binary":return kl(this,e,r,i);case"base64":return $l(this,e,r,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ql(this,e,r,i);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}};d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ul(t,e,r){return e===0&&r===t.length?kr.fromByteArray(t):kr.fromByteArray(t.slice(e,r))}function Nn(t,e,r){r=Math.min(t.length,r);let i=[],n=e;for(;n<r;){let s=t[n],o=null,a=s>239?4:s>223?3:s>191?2:1;if(n+a<=r){let l,u,f,c;switch(a){case 1:s<128&&(o=s);break;case 2:l=t[n+1],(l&192)===128&&(c=(s&31)<<6|l&63,c>127&&(o=c));break;case 3:l=t[n+1],u=t[n+2],(l&192)===128&&(u&192)===128&&(c=(s&15)<<12|(l&63)<<6|u&63,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:l=t[n+1],u=t[n+2],f=t[n+3],(l&192)===128&&(u&192)===128&&(f&192)===128&&(c=(s&15)<<18|(l&63)<<12|(u&63)<<6|f&63,c>65535&&c<1114112&&(o=c))}}o===null?(o=65533,a=1):o>65535&&(o-=65536,i.push(o>>>10&1023|55296),o=56320|o&1023),i.push(o),n+=a}return Wl(i)}var En=4096;function Wl(t){let e=t.length;if(e<=En)return String.fromCharCode.apply(String,t);let r="",i=0;for(;i<e;)r+=String.fromCharCode.apply(String,t.slice(i,i+=En));return r}function Gl(t,e,r){let i="";r=Math.min(t.length,r);for(let n=e;n<r;++n)i+=String.fromCharCode(t[n]&127);return i}function Vl(t,e,r){let i="";r=Math.min(t.length,r);for(let n=e;n<r;++n)i+=String.fromCharCode(t[n]);return i}function Ql(t,e,r){let i=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>i)&&(r=i);let n="";for(let s=e;s<r;++s)n+=Zl[t[s]];return n}function Hl(t,e,r){let i=t.slice(e,r),n="";for(let s=0;s<i.length-1;s+=2)n+=String.fromCharCode(i[s]+i[s+1]*256);return n}d.prototype.slice=function(e,r){let i=this.length;e=~~e,r=r===void 0?i:~~r,e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),r<0?(r+=i,r<0&&(r=0)):r>i&&(r=i),r<e&&(r=e);let n=this.subarray(e,r);return Object.setPrototypeOf(n,d.prototype),n};function C(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}d.prototype.readUintLE=d.prototype.readUIntLE=function(e,r,i){e=e>>>0,r=r>>>0,i||C(e,r,this.length);let n=this[e],s=1,o=0;for(;++o<r&&(s*=256);)n+=this[e+o]*s;return n};d.prototype.readUintBE=d.prototype.readUIntBE=function(e,r,i){e=e>>>0,r=r>>>0,i||C(e,r,this.length);let n=this[e+--r],s=1;for(;r>0&&(s*=256);)n+=this[e+--r]*s;return n};d.prototype.readUint8=d.prototype.readUInt8=function(e,r){return e=e>>>0,r||C(e,1,this.length),this[e]};d.prototype.readUint16LE=d.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||C(e,2,this.length),this[e]|this[e+1]<<8};d.prototype.readUint16BE=d.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||C(e,2,this.length),this[e]<<8|this[e+1]};d.prototype.readUint32LE=d.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||C(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};d.prototype.readUint32BE=d.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||C(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};d.prototype.readBigUInt64LE=xe(function(e){e=e>>>0,et(e,"offset");let r=this[e],i=this[e+7];(r===void 0||i===void 0)&&xt(e,this.length-8);let n=r+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,s=this[++e]+this[++e]*2**8+this[++e]*2**16+i*2**24;return BigInt(n)+(BigInt(s)<<BigInt(32))});d.prototype.readBigUInt64BE=xe(function(e){e=e>>>0,et(e,"offset");let r=this[e],i=this[e+7];(r===void 0||i===void 0)&&xt(e,this.length-8);let n=r*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],s=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+i;return(BigInt(n)<<BigInt(32))+BigInt(s)});d.prototype.readIntLE=function(e,r,i){e=e>>>0,r=r>>>0,i||C(e,r,this.length);let n=this[e],s=1,o=0;for(;++o<r&&(s*=256);)n+=this[e+o]*s;return s*=128,n>=s&&(n-=Math.pow(2,8*r)),n};d.prototype.readIntBE=function(e,r,i){e=e>>>0,r=r>>>0,i||C(e,r,this.length);let n=r,s=1,o=this[e+--n];for(;n>0&&(s*=256);)o+=this[e+--n]*s;return s*=128,o>=s&&(o-=Math.pow(2,8*r)),o};d.prototype.readInt8=function(e,r){return e=e>>>0,r||C(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};d.prototype.readInt16LE=function(e,r){e=e>>>0,r||C(e,2,this.length);let i=this[e]|this[e+1]<<8;return i&32768?i|4294901760:i};d.prototype.readInt16BE=function(e,r){e=e>>>0,r||C(e,2,this.length);let i=this[e+1]|this[e]<<8;return i&32768?i|4294901760:i};d.prototype.readInt32LE=function(e,r){return e=e>>>0,r||C(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};d.prototype.readInt32BE=function(e,r){return e=e>>>0,r||C(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};d.prototype.readBigInt64LE=xe(function(e){e=e>>>0,et(e,"offset");let r=this[e],i=this[e+7];(r===void 0||i===void 0)&&xt(e,this.length-8);let n=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(i<<24);return(BigInt(n)<<BigInt(32))+BigInt(r+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)});d.prototype.readBigInt64BE=xe(function(e){e=e>>>0,et(e,"offset");let r=this[e],i=this[e+7];(r===void 0||i===void 0)&&xt(e,this.length-8);let n=(r<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(n)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+i)});d.prototype.readFloatLE=function(e,r){return e=e>>>0,r||C(e,4,this.length),Ze.read(this,e,!0,23,4)};d.prototype.readFloatBE=function(e,r){return e=e>>>0,r||C(e,4,this.length),Ze.read(this,e,!1,23,4)};d.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||C(e,8,this.length),Ze.read(this,e,!0,52,8)};d.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||C(e,8,this.length),Ze.read(this,e,!1,52,8)};function q(t,e,r,i,n,s){if(!d.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>n||e<s)throw new RangeError('"value" argument is out of bounds');if(r+i>t.length)throw new RangeError("Index out of range")}d.prototype.writeUintLE=d.prototype.writeUIntLE=function(e,r,i,n){if(e=+e,r=r>>>0,i=i>>>0,!n){let a=Math.pow(2,8*i)-1;q(this,e,r,i,a,0)}let s=1,o=0;for(this[r]=e&255;++o<i&&(s*=256);)this[r+o]=e/s&255;return r+i};d.prototype.writeUintBE=d.prototype.writeUIntBE=function(e,r,i,n){if(e=+e,r=r>>>0,i=i>>>0,!n){let a=Math.pow(2,8*i)-1;q(this,e,r,i,a,0)}let s=i-1,o=1;for(this[r+s]=e&255;--s>=0&&(o*=256);)this[r+s]=e/o&255;return r+i};d.prototype.writeUint8=d.prototype.writeUInt8=function(e,r,i){return e=+e,r=r>>>0,i||q(this,e,r,1,255,0),this[r]=e&255,r+1};d.prototype.writeUint16LE=d.prototype.writeUInt16LE=function(e,r,i){return e=+e,r=r>>>0,i||q(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};d.prototype.writeUint16BE=d.prototype.writeUInt16BE=function(e,r,i){return e=+e,r=r>>>0,i||q(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};d.prototype.writeUint32LE=d.prototype.writeUInt32LE=function(e,r,i){return e=+e,r=r>>>0,i||q(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};d.prototype.writeUint32BE=d.prototype.writeUInt32BE=function(e,r,i){return e=+e,r=r>>>0,i||q(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function vn(t,e,r,i,n){Fn(e,i,n,t,r,7);let s=Number(e&BigInt(4294967295));t[r++]=s,s=s>>8,t[r++]=s,s=s>>8,t[r++]=s,s=s>>8,t[r++]=s;let o=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=o,o=o>>8,t[r++]=o,o=o>>8,t[r++]=o,o=o>>8,t[r++]=o,r}function jn(t,e,r,i,n){Fn(e,i,n,t,r,7);let s=Number(e&BigInt(4294967295));t[r+7]=s,s=s>>8,t[r+6]=s,s=s>>8,t[r+5]=s,s=s>>8,t[r+4]=s;let o=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=o,o=o>>8,t[r+2]=o,o=o>>8,t[r+1]=o,o=o>>8,t[r]=o,r+8}d.prototype.writeBigUInt64LE=xe(function(e,r=0){return vn(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))});d.prototype.writeBigUInt64BE=xe(function(e,r=0){return jn(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))});d.prototype.writeIntLE=function(e,r,i,n){if(e=+e,r=r>>>0,!n){let l=Math.pow(2,8*i-1);q(this,e,r,i,l-1,-l)}let s=0,o=1,a=0;for(this[r]=e&255;++s<i&&(o*=256);)e<0&&a===0&&this[r+s-1]!==0&&(a=1),this[r+s]=(e/o>>0)-a&255;return r+i};d.prototype.writeIntBE=function(e,r,i,n){if(e=+e,r=r>>>0,!n){let l=Math.pow(2,8*i-1);q(this,e,r,i,l-1,-l)}let s=i-1,o=1,a=0;for(this[r+s]=e&255;--s>=0&&(o*=256);)e<0&&a===0&&this[r+s+1]!==0&&(a=1),this[r+s]=(e/o>>0)-a&255;return r+i};d.prototype.writeInt8=function(e,r,i){return e=+e,r=r>>>0,i||q(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};d.prototype.writeInt16LE=function(e,r,i){return e=+e,r=r>>>0,i||q(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};d.prototype.writeInt16BE=function(e,r,i){return e=+e,r=r>>>0,i||q(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};d.prototype.writeInt32LE=function(e,r,i){return e=+e,r=r>>>0,i||q(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};d.prototype.writeInt32BE=function(e,r,i){return e=+e,r=r>>>0,i||q(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};d.prototype.writeBigInt64LE=xe(function(e,r=0){return vn(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});d.prototype.writeBigInt64BE=xe(function(e,r=0){return jn(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ln(t,e,r,i,n,s){if(r+i>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Pn(t,e,r,i,n){return e=+e,r=r>>>0,n||Ln(t,e,r,4,34028234663852886e22,-34028234663852886e22),Ze.write(t,e,r,i,23,4),r+4}d.prototype.writeFloatLE=function(e,r,i){return Pn(this,e,r,!0,i)};d.prototype.writeFloatBE=function(e,r,i){return Pn(this,e,r,!1,i)};function Bn(t,e,r,i,n){return e=+e,r=r>>>0,n||Ln(t,e,r,8,17976931348623157e292,-17976931348623157e292),Ze.write(t,e,r,i,52,8),r+8}d.prototype.writeDoubleLE=function(e,r,i){return Bn(this,e,r,!0,i)};d.prototype.writeDoubleBE=function(e,r,i){return Bn(this,e,r,!1,i)};d.prototype.copy=function(e,r,i,n){if(!d.isBuffer(e))throw new TypeError("argument should be a Buffer");if(i||(i=0),!n&&n!==0&&(n=this.length),r>=e.length&&(r=e.length),r||(r=0),n>0&&n<i&&(n=i),n===i||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-r<n-i&&(n=e.length-r+i);let s=n-i;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,i,n):Uint8Array.prototype.set.call(e,this.subarray(i,n),r),s};d.prototype.fill=function(e,r,i,n){if(typeof e=="string"){if(typeof r=="string"?(n=r,r=0,i=this.length):typeof i=="string"&&(n=i,i=this.length),n!==void 0&&typeof n!="string")throw new TypeError("encoding must be a string");if(typeof n=="string"&&!d.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(e.length===1){let o=e.charCodeAt(0);(n==="utf8"&&o<128||n==="latin1")&&(e=o)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<i)throw new RangeError("Out of range index");if(i<=r)return this;r=r>>>0,i=i===void 0?this.length:i>>>0,e||(e=0);let s;if(typeof e=="number")for(s=r;s<i;++s)this[s]=e;else{let o=d.isBuffer(e)?e:d.from(e,n),a=o.length;if(a===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(s=0;s<i-r;++s)this[s+r]=o[s%a]}return this};var Xe={};function Vr(t,e,r){Xe[t]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(n){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:n,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}Vr("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);Vr("ERR_INVALID_ARG_TYPE",function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`},TypeError);Vr("ERR_OUT_OF_RANGE",function(t,e,r){let i=`The value of "${t}" is out of range.`,n=r;return Number.isInteger(r)&&Math.abs(r)>2**32?n=Sn(String(r)):typeof r=="bigint"&&(n=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(n=Sn(n)),n+="n"),i+=` It must be ${e}. Received ${n}`,i},RangeError);function Sn(t){let e="",r=t.length,i=t[0]==="-"?1:0;for(;r>=i+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function zl(t,e,r){et(e,"offset"),(t[e]===void 0||t[e+r]===void 0)&&xt(e,t.length-(r+1))}function Fn(t,e,r,i,n,s){if(t>r||t<e){let o=typeof e=="bigint"?"n":"",a;throw s>3?e===0||e===BigInt(0)?a=`>= 0${o} and < 2${o} ** ${(s+1)*8}${o}`:a=`>= -(2${o} ** ${(s+1)*8-1}${o}) and < 2 ** ${(s+1)*8-1}${o}`:a=`>= ${e}${o} and <= ${r}${o}`,new Xe.ERR_OUT_OF_RANGE("value",a,t)}zl(i,n,s)}function et(t,e){if(typeof t!="number")throw new Xe.ERR_INVALID_ARG_TYPE(e,"number",t)}function xt(t,e,r){throw Math.floor(t)!==t?(et(t,r),new Xe.ERR_OUT_OF_RANGE(r||"offset","an integer",t)):e<0?new Xe.ERR_BUFFER_OUT_OF_BOUNDS:new Xe.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${e}`,t)}var Kl=/[^+/0-9A-Za-z-_]/g;function Yl(t){if(t=t.split("=")[0],t=t.trim().replace(Kl,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function Ur(t,e){e=e||1/0;let r,i=t.length,n=null,s=[];for(let o=0;o<i;++o){if(r=t.charCodeAt(o),r>55295&&r<57344){if(!n){if(r>56319){(e-=3)>-1&&s.push(239,191,189);continue}else if(o+1===i){(e-=3)>-1&&s.push(239,191,189);continue}n=r;continue}if(r<56320){(e-=3)>-1&&s.push(239,191,189),n=r;continue}r=(n-55296<<10|r-56320)+65536}else n&&(e-=3)>-1&&s.push(239,191,189);if(n=null,r<128){if((e-=1)<0)break;s.push(r)}else if(r<2048){if((e-=2)<0)break;s.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;s.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return s}function Jl(t){let e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function Xl(t,e){let r,i,n,s=[];for(let o=0;o<t.length&&!((e-=2)<0);++o)r=t.charCodeAt(o),i=r>>8,n=r%256,s.push(n),s.push(i);return s}function Cn(t){return kr.toByteArray(Yl(t))}function Jt(t,e,r,i){let n;for(n=0;n<i&&!(n+r>=e.length||n>=t.length);++n)e[n+r]=t[n];return n}function J(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function Qr(t){return t!==t}var Zl=(function(){let t="0123456789abcdef",e=new Array(256);for(let r=0;r<16;++r){let i=r*16;for(let n=0;n<16;++n)e[i+n]=t[r]+t[n]}return e})();function xe(t){return typeof BigInt>"u"?eu:t}function eu(){throw new Error("BigInt not supported")}});var N=S((g_,Zn)=>{"use strict";var Jr=class extends Error{constructor(e){if(!Array.isArray(e))throw new TypeError(`Expected input to be an Array, got ${typeof e}`);let r="";for(let i=0;i<e.length;i++)r+=` ${e[i].stack} `;super(r),this.name="AggregateError",this.errors=e}};Zn.exports={AggregateError:Jr,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},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(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.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(t,e,r){return t.set(e,r)},Boolean,Uint8Array}});var Xr=S((y_,es)=>{"use strict";es.exports={format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,i]){let n=e.shift();return i==="f"?n.toFixed(6):i==="j"?JSON.stringify(n):i==="s"&&typeof n=="object"?`${n.constructor!==Object?n.constructor.name:""} {}`.trim():n.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}});var M=S((w_,is)=>{"use strict";var{format:wu,inspect:er}=Xr(),{AggregateError:mu}=N(),xu=globalThis.AggregateError||mu,Eu=Symbol("kIsNodeError"),Su=["string","function","number","object","Function","Object","boolean","bigint","symbol"],Iu=/^([A-Z][a-z0-9]*)+$/,Ru="__node_internal_",tr={};function ke(t,e){if(!t)throw new tr.ERR_INTERNAL_ASSERTION(e)}function ts(t){let e="",r=t.length,i=t[0]==="-"?1:0;for(;r>=i+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function Tu(t,e,r){if(typeof e=="function")return ke(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let i=(e.match(/%[dfijoOs]/g)||[]).length;return ke(i===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),r.length===0?e:wu(e,...r)}function O(t,e,r){r||(r=Error);class i extends r{constructor(...s){super(Tu(t,e,s))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(i.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),i.prototype.code=t,i.prototype[Eu]=!0,tr[t]=i}function rs(t){let e=Ru+t.name;return Object.defineProperty(t,"name",{value:e}),t}function Au(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new xu([e,t],e.message);return r.code=e.code,r}return t||e}var Zr=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new tr.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};O("ERR_ASSERTION","%s",Error);O("ERR_INVALID_ARG_TYPE",(t,e,r)=>{ke(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let i="The ";t.endsWith(" argument")?i+=`${t} `:i+=`"${t}" ${t.includes(".")?"property":"argument"} `,i+="must be ";let n=[],s=[],o=[];for(let l of e)ke(typeof l=="string","All expected entries have to be of type string"),Su.includes(l)?n.push(l.toLowerCase()):Iu.test(l)?s.push(l):(ke(l!=="object",'The value "object" should be written as "Object"'),o.push(l));if(s.length>0){let l=n.indexOf("object");l!==-1&&(n.splice(n,l,1),s.push("Object"))}if(n.length>0){switch(n.length){case 1:i+=`of type ${n[0]}`;break;case 2:i+=`one of type ${n[0]} or ${n[1]}`;break;default:{let l=n.pop();i+=`one of type ${n.join(", ")}, or ${l}`}}(s.length>0||o.length>0)&&(i+=" or ")}if(s.length>0){switch(s.length){case 1:i+=`an instance of ${s[0]}`;break;case 2:i+=`an instance of ${s[0]} or ${s[1]}`;break;default:{let l=s.pop();i+=`an instance of ${s.join(", ")}, or ${l}`}}o.length>0&&(i+=" or ")}switch(o.length){case 0:break;case 1:o[0].toLowerCase()!==o[0]&&(i+="an "),i+=`${o[0]}`;break;case 2:i+=`one of ${o[0]} or ${o[1]}`;break;default:{let l=o.pop();i+=`one of ${o.join(", ")}, or ${l}`}}if(r==null)i+=`. Received ${r}`;else if(typeof r=="function"&&r.name)i+=`. Received function ${r.name}`;else if(typeof r=="object"){var a;if((a=r.constructor)!==null&&a!==void 0&&a.name)i+=`. Received an instance of ${r.constructor.name}`;else{let l=er(r,{depth:-1});i+=`. Received ${l}`}}else{let l=er(r,{colors:!1});l.length>25&&(l=`${l.slice(0,25)}...`),i+=`. Received type ${typeof r} (${l})`}return i},TypeError);O("ERR_INVALID_ARG_VALUE",(t,e,r="is invalid")=>{let i=er(e);return i.length>128&&(i=i.slice(0,128)+"..."),`The ${t.includes(".")?"property":"argument"} '${t}' ${r}. Received ${i}`},TypeError);O("ERR_INVALID_RETURN_VALUE",(t,e,r)=>{var i;let n=r!=null&&(i=r.constructor)!==null&&i!==void 0&&i.name?`instance of ${r.constructor.name}`:`type ${typeof r}`;return`Expected ${t} to be returned from the "${e}" function but got ${n}.`},TypeError);O("ERR_MISSING_ARGS",(...t)=>{ke(t.length>0,"At least one arg needs to be specified");let e,r=t.length;switch(t=(Array.isArray(t)?t:[t]).map(i=>`"${i}"`).join(" or "),r){case 1:e+=`The ${t[0]} argument`;break;case 2:e+=`The ${t[0]} and ${t[1]} arguments`;break;default:{let i=t.pop();e+=`The ${t.join(", ")}, and ${i} arguments`}break}return`${e} must be specified`},TypeError);O("ERR_OUT_OF_RANGE",(t,e,r)=>{ke(e,'Missing "range" argument');let i;if(Number.isInteger(r)&&Math.abs(r)>2**32)i=ts(String(r));else if(typeof r=="bigint"){i=String(r);let n=BigInt(2)**BigInt(32);(r>n||r<-n)&&(i=ts(i)),i+="n"}else i=er(r);return`The value of "${t}" is out of range. It must be ${e}. Received ${i}`},RangeError);O("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);O("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);O("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);O("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);O("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);O("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);O("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);O("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);O("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);O("ERR_STREAM_WRITE_AFTER_END","write after end",Error);O("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);is.exports={AbortError:Zr,aggregateTwoErrors:rs(Au),hideStackFrames:rs,codes:tr}});var ot=S((m_,rr)=>{"use strict";var{AbortController:ns,AbortSignal:Nu}=typeof self<"u"?self:typeof window<"u"?window:void 0;rr.exports=ns;rr.exports.AbortSignal=Nu;rr.exports.default=ns});var vt=S((x_,ei)=>{"use strict";var at=typeof Reflect=="object"?Reflect:null,ss=at&&typeof at.apply=="function"?at.apply:function(e,r,i){return Function.prototype.apply.call(e,r,i)},ir;at&&typeof at.ownKeys=="function"?ir=at.ownKeys:Object.getOwnPropertySymbols?ir=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:ir=function(e){return Object.getOwnPropertyNames(e)};function vu(t){console&&console.warn&&console.warn(t)}var as=Number.isNaN||function(e){return e!==e};function I(){I.init.call(this)}ei.exports=I;ei.exports.once=Bu;I.EventEmitter=I;I.prototype._events=void 0;I.prototype._eventsCount=0;I.prototype._maxListeners=void 0;var os=10;function nr(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}Object.defineProperty(I,"defaultMaxListeners",{enumerable:!0,get:function(){return os},set:function(t){if(typeof t!="number"||t<0||as(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");os=t}});I.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};I.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||as(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function ls(t){return t._maxListeners===void 0?I.defaultMaxListeners:t._maxListeners}I.prototype.getMaxListeners=function(){return ls(this)};I.prototype.emit=function(e){for(var r=[],i=1;i<arguments.length;i++)r.push(arguments[i]);var n=e==="error",s=this._events;if(s!==void 0)n=n&&s.error===void 0;else if(!n)return!1;if(n){var o;if(r.length>0&&(o=r[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var l=s[e];if(l===void 0)return!1;if(typeof l=="function")ss(l,this,r);else for(var u=l.length,f=hs(l,u),i=0;i<u;++i)ss(f[i],this,r);return!0};function us(t,e,r,i){var n,s,o;if(nr(r),s=t._events,s===void 0?(s=t._events=Object.create(null),t._eventsCount=0):(s.newListener!==void 0&&(t.emit("newListener",e,r.listener?r.listener:r),s=t._events),o=s[e]),o===void 0)o=s[e]=r,++t._eventsCount;else if(typeof o=="function"?o=s[e]=i?[r,o]:[o,r]:i?o.unshift(r):o.push(r),n=ls(t),n>0&&o.length>n&&!o.warned){o.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=t,a.type=e,a.count=o.length,vu(a)}return t}I.prototype.addListener=function(e,r){return us(this,e,r,!1)};I.prototype.on=I.prototype.addListener;I.prototype.prependListener=function(e,r){return us(this,e,r,!0)};function ju(){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 fs(t,e,r){var i={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},n=ju.bind(i);return n.listener=r,i.wrapFn=n,n}I.prototype.once=function(e,r){return nr(r),this.on(e,fs(this,e,r)),this};I.prototype.prependOnceListener=function(e,r){return nr(r),this.prependListener(e,fs(this,e,r)),this};I.prototype.removeListener=function(e,r){var i,n,s,o,a;if(nr(r),n=this._events,n===void 0)return this;if(i=n[e],i===void 0)return this;if(i===r||i.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,i.listener||r));else if(typeof i!="function"){for(s=-1,o=i.length-1;o>=0;o--)if(i[o]===r||i[o].listener===r){a=i[o].listener,s=o;break}if(s<0)return this;s===0?i.shift():Lu(i,s),i.length===1&&(n[e]=i[0]),n.removeListener!==void 0&&this.emit("removeListener",e,a||r)}return this};I.prototype.off=I.prototype.removeListener;I.prototype.removeAllListeners=function(e){var r,i,n;if(i=this._events,i===void 0)return this;if(i.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):i[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete i[e]),this;if(arguments.length===0){var s=Object.keys(i),o;for(n=0;n<s.length;++n)o=s[n],o!=="removeListener"&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(r=i[e],typeof r=="function")this.removeListener(e,r);else if(r!==void 0)for(n=r.length-1;n>=0;n--)this.removeListener(e,r[n]);return this};function cs(t,e,r){var i=t._events;if(i===void 0)return[];var n=i[e];return n===void 0?[]:typeof n=="function"?r?[n.listener||n]:[n]:r?Pu(n):hs(n,n.length)}I.prototype.listeners=function(e){return cs(this,e,!0)};I.prototype.rawListeners=function(e){return cs(this,e,!1)};I.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):ds.call(t,e)};I.prototype.listenerCount=ds;function ds(t){var e=this._events;if(e!==void 0){var r=e[t];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}I.prototype.eventNames=function(){return this._eventsCount>0?ir(this._events):[]};function hs(t,e){for(var r=new Array(e),i=0;i<e;++i)r[i]=t[i];return r}function Lu(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}function Pu(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}function Bu(t,e){return new Promise(function(r,i){function n(o){t.removeListener(e,s),i(o)}function s(){typeof t.removeListener=="function"&&t.removeListener("error",n),r([].slice.call(arguments))}ps(t,e,s,{once:!0}),e!=="error"&&Fu(t,n,{once:!0})})}function Fu(t,e,r){typeof t.on=="function"&&ps(t,"error",e,r)}function ps(t,e,r,i){if(typeof t.on=="function")i.once?t.once(e,r):t.on(e,r);else if(typeof t.addEventListener=="function")t.addEventListener(e,function n(s){i.once&&t.removeEventListener(e,n),r(s)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t)}});var k=S((E_,ri)=>{"use strict";var Cu=X(),{format:Ou,inspect:Mu}=Xr(),{codes:{ERR_INVALID_ARG_TYPE:ti}}=M(),{kResistStopPropagation:Du,AggregateError:ku,SymbolDispose:$u}=N(),qu=globalThis.AbortSignal||ot().AbortSignal,Uu=globalThis.AbortController||ot().AbortController,Wu=Object.getPrototypeOf(async function(){}).constructor,_s=globalThis.Blob||Cu.Blob,Gu=typeof _s<"u"?function(e){return e instanceof _s}:function(e){return!1},bs=(t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new ti(e,"AbortSignal",t)},Vu=(t,e)=>{if(typeof t!="function")throw new ti(e,"Function",t)};ri.exports={AggregateError:ku,kEmptyObject:Object.freeze({}),once(t){let e=!1;return function(...r){e||(e=!0,t.apply(this,r))}},createDeferredPromise:function(){let t,e;return{promise:new Promise((i,n)=>{t=i,e=n}),resolve:t,reject:e}},promisify(t){return new Promise((e,r)=>{t((i,...n)=>i?r(i):e(...n))})},debuglog(){return function(){}},format:Ou,inspect:Mu,types:{isAsyncFunction(t){return t instanceof Wu},isArrayBufferView(t){return ArrayBuffer.isView(t)}},isBlob:Gu,deprecate(t,e){return t},addAbortListener:vt().addAbortListener||function(e,r){if(e===void 0)throw new ti("signal","AbortSignal",e);bs(e,"signal"),Vu(r,"listener");let i;return e.aborted?queueMicrotask(()=>r()):(e.addEventListener("abort",r,{__proto__:null,once:!0,[Du]:!0}),i=()=>{e.removeEventListener("abort",r)}),{__proto__:null,[$u](){var n;(n=i)===null||n===void 0||n()}}},AbortSignalAny:qu.any||function(e){if(e.length===1)return e[0];let r=new Uu,i=()=>r.abort();return e.forEach(n=>{bs(n,"signals"),n.addEventListener("abort",i,{once:!0})}),r.signal.addEventListener("abort",()=>{e.forEach(n=>n.removeEventListener("abort",i))},{once:!0}),r.signal}};ri.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var ut=S((S_,Ts)=>{"use strict";var{ArrayIsArray:ni,ArrayPrototypeIncludes:ms,ArrayPrototypeJoin:xs,ArrayPrototypeMap:Qu,NumberIsInteger:si,NumberIsNaN:Hu,NumberMAX_SAFE_INTEGER:zu,NumberMIN_SAFE_INTEGER:Ku,NumberParseInt:Yu,ObjectPrototypeHasOwnProperty:Ju,RegExpPrototypeExec:Es,String:Xu,StringPrototypeToUpperCase:Zu,StringPrototypeTrim:ef}=N(),{hideStackFrames:Q,codes:{ERR_SOCKET_BAD_PORT:tf,ERR_INVALID_ARG_TYPE:D,ERR_INVALID_ARG_VALUE:lt,ERR_OUT_OF_RANGE:$e,ERR_UNKNOWN_SIGNAL:gs}}=M(),{normalizeEncoding:rf}=k(),{isAsyncFunction:nf,isArrayBufferView:sf}=k().types,ys={};function of(t){return t===(t|0)}function af(t){return t===t>>>0}var lf=/^[0-7]+$/,uf="must be a 32-bit unsigned integer or an octal string";function ff(t,e,r){if(typeof t>"u"&&(t=r),typeof t=="string"){if(Es(lf,t)===null)throw new lt(e,t,uf);t=Yu(t,8)}return Ss(t,e),t}var cf=Q((t,e,r=Ku,i=zu)=>{if(typeof t!="number")throw new D(e,"number",t);if(!si(t))throw new $e(e,"an integer",t);if(t<r||t>i)throw new $e(e,`>= ${r} && <= ${i}`,t)}),df=Q((t,e,r=-2147483648,i=2147483647)=>{if(typeof t!="number")throw new D(e,"number",t);if(!si(t))throw new $e(e,"an integer",t);if(t<r||t>i)throw new $e(e,`>= ${r} && <= ${i}`,t)}),Ss=Q((t,e,r=!1)=>{if(typeof t!="number")throw new D(e,"number",t);if(!si(t))throw new $e(e,"an integer",t);let i=r?1:0,n=4294967295;if(t<i||t>n)throw new $e(e,`>= ${i} && <= ${n}`,t)});function oi(t,e){if(typeof t!="string")throw new D(e,"string",t)}function hf(t,e,r=void 0,i){if(typeof t!="number")throw new D(e,"number",t);if(r!=null&&t<r||i!=null&&t>i||(r!=null||i!=null)&&Hu(t))throw new $e(e,`${r!=null?`>= ${r}`:""}${r!=null&&i!=null?" && ":""}${i!=null?`<= ${i}`:""}`,t)}var pf=Q((t,e,r)=>{if(!ms(r,t)){let n="must be one of: "+xs(Qu(r,s=>typeof s=="string"?`'${s}'`:Xu(s)),", ");throw new lt(e,t,n)}});function Is(t,e){if(typeof t!="boolean")throw new D(e,"boolean",t)}function ii(t,e,r){return t==null||!Ju(t,e)?r:t[e]}var _f=Q((t,e,r=null)=>{let i=ii(r,"allowArray",!1),n=ii(r,"allowFunction",!1);if(!ii(r,"nullable",!1)&&t===null||!i&&ni(t)||typeof t!="object"&&(!n||typeof t!="function"))throw new D(e,"Object",t)}),bf=Q((t,e)=>{if(t!=null&&typeof t!="object"&&typeof t!="function")throw new D(e,"a dictionary",t)}),sr=Q((t,e,r=0)=>{if(!ni(t))throw new D(e,"Array",t);if(t.length<r){let i=`must be longer than ${r}`;throw new lt(e,t,i)}});function gf(t,e){sr(t,e);for(let r=0;r<t.length;r++)oi(t[r],`${e}[${r}]`)}function yf(t,e){sr(t,e);for(let r=0;r<t.length;r++)Is(t[r],`${e}[${r}]`)}function wf(t,e){sr(t,e);for(let r=0;r<t.length;r++){let i=t[r],n=`${e}[${r}]`;if(i==null)throw new D(n,"AbortSignal",i);Rs(i,n)}}function mf(t,e="signal"){if(oi(t,e),ys[t]===void 0)throw ys[Zu(t)]!==void 0?new gs(t+" (signals must use all capital letters)"):new gs(t)}var xf=Q((t,e="buffer")=>{if(!sf(t))throw new D(e,["Buffer","TypedArray","DataView"],t)});function Ef(t,e){let r=rf(e),i=t.length;if(r==="hex"&&i%2!==0)throw new lt("encoding",e,`is invalid for data of length ${i}`)}function Sf(t,e="Port",r=!0){if(typeof t!="number"&&typeof t!="string"||typeof t=="string"&&ef(t).length===0||+t!==+t>>>0||t>65535||t===0&&!r)throw new tf(e,t,r);return t|0}var Rs=Q((t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new D(e,"AbortSignal",t)}),If=Q((t,e)=>{if(typeof t!="function")throw new D(e,"Function",t)}),Rf=Q((t,e)=>{if(typeof t!="function"||nf(t))throw new D(e,"Function",t)}),Tf=Q((t,e)=>{if(t!==void 0)throw new D(e,"undefined",t)});function Af(t,e,r){if(!ms(r,t))throw new D(e,`('${xs(r,"|")}')`,t)}var Nf=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function ws(t,e){if(typeof t>"u"||!Es(Nf,t))throw new lt(e,t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function vf(t){if(typeof t=="string")return ws(t,"hints"),t;if(ni(t)){let e=t.length,r="";if(e===0)return r;for(let i=0;i<e;i++){let n=t[i];ws(n,"hints"),r+=n,i!==e-1&&(r+=", ")}return r}throw new lt("hints",t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}Ts.exports={isInt32:of,isUint32:af,parseFileMode:ff,validateArray:sr,validateStringArray:gf,validateBooleanArray:yf,validateAbortSignalArray:wf,validateBoolean:Is,validateBuffer:xf,validateDictionary:bf,validateEncoding:Ef,validateFunction:If,validateInt32:df,validateInteger:cf,validateNumber:hf,validateObject:_f,validateOneOf:pf,validatePlainFunction:Rf,validatePort:Sf,validateSignalName:mf,validateString:oi,validateUint32:Ss,validateUndefined:Tf,validateUnion:Af,validateAbortSignal:Rs,validateLinkHeaderValue:vf}});var Re=S((I_,js)=>{var j=js.exports={},ee,te;function ai(){throw new Error("setTimeout has not been defined")}function li(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?ee=setTimeout:ee=ai}catch{ee=ai}try{typeof clearTimeout=="function"?te=clearTimeout:te=li}catch{te=li}})();function As(t){if(ee===setTimeout)return setTimeout(t,0);if((ee===ai||!ee)&&setTimeout)return ee=setTimeout,setTimeout(t,0);try{return ee(t,0)}catch{try{return ee.call(null,t,0)}catch{return ee.call(this,t,0)}}}function jf(t){if(te===clearTimeout)return clearTimeout(t);if((te===li||!te)&&clearTimeout)return te=clearTimeout,clearTimeout(t);try{return te(t)}catch{try{return te.call(null,t)}catch{return te.call(this,t)}}}var pe=[],ft=!1,qe,or=-1;function Lf(){!ft||!qe||(ft=!1,qe.length?pe=qe.concat(pe):or=-1,pe.length&&Ns())}function Ns(){if(!ft){var t=As(Lf);ft=!0;for(var e=pe.length;e;){for(qe=pe,pe=[];++or<e;)qe&&qe[or].run();or=-1,e=pe.length}qe=null,ft=!1,jf(t)}}j.n