@terbiumos/tfs
Version:
The drop in Filer replacement you have been waiting for. Completely Typed and Built with TypeScript
1 lines • 79.4 kB
JavaScript
(()=>{var t={350:function(t,e){"use strict";e.byteLength=function(t){var e=u(t),r=e[0],n=e[1];return(r+n)*3/4-n},e.toByteArray=function(t){var e,r,o=u(t),s=o[0],f=o[1],a=new i((s+f)*3/4-f),l=0,h=f>0?s-4:s;for(r=0;r<h;r+=4)e=n[t.charCodeAt(r)]<<18|n[t.charCodeAt(r+1)]<<12|n[t.charCodeAt(r+2)]<<6|n[t.charCodeAt(r+3)],a[l++]=e>>16&255,a[l++]=e>>8&255,a[l++]=255&e;return 2===f&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,a[l++]=255&e),1===f&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,a[l++]=e>>8&255,a[l++]=255&e),a},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],s=0,f=n-i;s<f;s+=16383)o.push(function(t,e,n){for(var i,o=[],s=e;s<n;s+=3)i=(t[s]<<16&0xff0000)+(t[s+1]<<8&65280)+(255&t[s+2]),o.push(r[i>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}(t,s,s+16383>f?f:s+16383));return 1===i?o.push(r[(e=t[n-1])>>2]+r[e<<4&63]+"=="):2===i&&o.push(r[(e=(t[n-2]<<8)+t[n-1])>>10]+r[e>>4&63]+r[e<<2&63]+"="),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,f=o.length;s<f;++s)r[s]=o[s],n[o.charCodeAt(s)]=s;function u(t){var e=t.length;if(e%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");-1===r&&(r=e);var n=r===e?0:4-r%4;return[r,n]}n[45]=62,n[95]=63},686:function(t,e,r){"use strict";let n=r(350),i=r(947),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(t){if(t>0x7fffffff)throw RangeError('The value "'+t+'" is invalid for option "size"');let e=new Uint8Array(t);return Object.setPrototypeOf(e,f.prototype),e}function f(t,e,r){if("number"==typeof t){if("string"==typeof e)throw TypeError('The "string" argument must be of type string. Received type number');return l(t)}return u(t,e,r)}function u(t,e,r){if("string"==typeof t){var n=t,i=e;if(("string"!=typeof i||""===i)&&(i="utf8"),!f.isEncoding(i))throw TypeError("Unknown encoding: "+i);let r=0|y(n,i),o=s(r),u=o.write(n,i);return u!==r&&(o=o.slice(0,u)),o}if(ArrayBuffer.isView(t)){var o=t;if(j(o,Uint8Array)){let t=new Uint8Array(o);return c(t.buffer,t.byteOffset,t.byteLength)}return h(o)}if(null==t)throw 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)||"undefined"!=typeof SharedArrayBuffer&&(j(t,SharedArrayBuffer)||t&&j(t.buffer,SharedArrayBuffer)))return c(t,e,r);if("number"==typeof t)throw TypeError('The "value" argument must not be of type number. Received type number');let u=t.valueOf&&t.valueOf();if(null!=u&&u!==t)return f.from(u,e,r);let a=function(t){if(f.isBuffer(t)){let e=0|p(t.length),r=s(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!=typeof t.length||function(t){return t!=t}(t.length)?s(0):h(t):"Buffer"===t.type&&Array.isArray(t.data)?h(t.data):void 0}(t);if(a)return a;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return f.from(t[Symbol.toPrimitive]("string"),e,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function a(t){if("number"!=typeof t)throw TypeError('"size" argument must be of type number');if(t<0)throw RangeError('The value "'+t+'" is invalid for option "size"')}function l(t){return a(t),s(t<0?0:0|p(t))}function h(t){let e=t.length<0?0:0|p(t.length),r=s(e);for(let n=0;n<e;n+=1)r[n]=255&t[n];return r}function c(t,e,r){let n;if(e<0||t.byteLength<e)throw RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),f.prototype),n}function p(t){if(t>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function y(t,e){if(f.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||j(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);let r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return U(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return C(t).length;default:if(i)return n?-1:U(t).length;e=(""+e).toLowerCase(),i=!0}}function g(t,e,r){let i=!1;if((void 0===e||e<0)&&(e=0),e>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(e>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,e,r){let n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);let i="";for(let n=e;n<r;++n)i+=L[t[n]];return i}(this,e,r);case"utf8":case"utf-8":return v(this,e,r);case"ascii":return function(t,e,r){let n="";r=Math.min(t.length,r);for(let i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}(this,e,r);case"latin1":case"binary":return function(t,e,r){let n="";r=Math.min(t.length,r);for(let i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}(this,e,r);case"base64":var o,s,f;return o=this,s=e,f=r,0===s&&f===o.length?n.fromByteArray(o):n.fromByteArray(o.slice(s,f));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(t,e,r){let n=t.slice(e,r),i="";for(let t=0;t<n.length-1;t+=2)i+=String.fromCharCode(n[t]+256*n[t+1]);return i}(this,e,r);default:if(i)throw TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function d(t,e,r){let n=t[e];t[e]=t[r],t[r]=n}function m(t,e,r,n,i){var o;if(0===t.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(o=r*=1)!=o&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length)if(i)return -1;else r=t.length-1;else if(r<0)if(!i)return -1;else r=0;if("string"==typeof e&&(e=f.from(e,n)),f.isBuffer(e))return 0===e.length?-1:b(t,e,r,n,i);if("number"==typeof e){if(e&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(t,e,r);else return Uint8Array.prototype.lastIndexOf.call(t,e,r);return b(t,[e],r,n,i)}throw TypeError("val must be string, number or Buffer")}function b(t,e,r,n,i){let o,s=1,f=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return -1;s=2,f/=2,u/=2,r/=2}function a(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){let n=-1;for(o=r;o<f;o++)if(a(t,o)===a(e,-1===n?0:o-n)){if(-1===n&&(n=o),o-n+1===u)return n*s}else -1!==n&&(o-=o-n),n=-1}else for(r+u>f&&(r=f-u),o=r;o>=0;o--){let r=!0;for(let n=0;n<u;n++)if(a(t,o+n)!==a(e,n)){r=!1;break}if(r)return o}return -1}function v(t,e,r){r=Math.min(t.length,r);let n=[],i=e;for(;i<r;){let e=t[i],o=null,s=e>239?4:e>223?3:e>191?2:1;if(i+s<=r){let r,n,f,u;switch(s){case 1:e<128&&(o=e);break;case 2:(192&(r=t[i+1]))==128&&(u=(31&e)<<6|63&r)>127&&(o=u);break;case 3:r=t[i+1],n=t[i+2],(192&r)==128&&(192&n)==128&&(u=(15&e)<<12|(63&r)<<6|63&n)>2047&&(u<55296||u>57343)&&(o=u);break;case 4:r=t[i+1],n=t[i+2],f=t[i+3],(192&r)==128&&(192&n)==128&&(192&f)==128&&(u=(15&e)<<18|(63&r)<<12|(63&n)<<6|63&f)>65535&&u<1114112&&(o=u)}}null===o?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=s}var o=n;let s=o.length;if(s<=4096)return String.fromCharCode.apply(String,o);let f="",u=0;for(;u<s;)f+=String.fromCharCode.apply(String,o.slice(u,u+=4096));return f}function w(t,e,r){if(t%1!=0||t<0)throw RangeError("offset is not uint");if(t+e>r)throw RangeError("Trying to access beyond buffer length")}function E(t,e,r,n,i,o){if(!f.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw RangeError('"value" argument is out of bounds');if(r+n>t.length)throw RangeError("Index out of range")}function O(t,e,r,n,i){T(e,n,i,t,r,7);let o=Number(e&BigInt(0xffffffff));t[r++]=o,o>>=8,t[r++]=o,o>>=8,t[r++]=o,o>>=8,t[r++]=o;let s=Number(e>>BigInt(32)&BigInt(0xffffffff));return t[r++]=s,s>>=8,t[r++]=s,s>>=8,t[r++]=s,s>>=8,t[r++]=s,r}function A(t,e,r,n,i){T(e,n,i,t,r,7);let o=Number(e&BigInt(0xffffffff));t[r+7]=o,o>>=8,t[r+6]=o,o>>=8,t[r+5]=o,o>>=8,t[r+4]=o;let s=Number(e>>BigInt(32)&BigInt(0xffffffff));return t[r+3]=s,s>>=8,t[r+2]=s,s>>=8,t[r+1]=s,s>>=8,t[r]=s,r+8}function S(t,e,r,n,i,o){if(r+n>t.length||r<0)throw RangeError("Index out of range")}function B(t,e,r,n,o){return e*=1,r>>>=0,o||S(t,e,r,4,34028234663852886e22,-34028234663852886e22),i.write(t,e,r,n,23,4),r+4}function x(t,e,r,n,o){return e*=1,r>>>=0,o||S(t,e,r,8,17976931348623157e292,-17976931348623157e292),i.write(t,e,r,n,52,8),r+8}e.Buffer=f,e.SlowBuffer=function(t){return+t!=t&&(t=0),f.alloc(+t)},e.INSPECT_MAX_BYTES=50,e.kMaxLength=0x7fffffff,f.TYPED_ARRAY_SUPPORT=function(){try{let t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),f.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||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(f.prototype,"parent",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.buffer}}),Object.defineProperty(f.prototype,"offset",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.byteOffset}}),f.poolSize=8192,f.from=function(t,e,r){return u(t,e,r)},Object.setPrototypeOf(f.prototype,Uint8Array.prototype),Object.setPrototypeOf(f,Uint8Array),f.alloc=function(t,e,r){return(a(t),t<=0)?s(t):void 0!==e?"string"==typeof r?s(t).fill(e,r):s(t).fill(e):s(t)},f.allocUnsafe=function(t){return l(t)},f.allocUnsafeSlow=function(t){return l(t)},f.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==f.prototype},f.compare=function(t,e){if(j(t,Uint8Array)&&(t=f.from(t,t.offset,t.byteLength)),j(e,Uint8Array)&&(e=f.from(e,e.offset,e.byteLength)),!f.isBuffer(t)||!f.isBuffer(e))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let r=t.length,n=e.length;for(let i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:+(n<r)},f.isEncoding=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}},f.concat=function(t,e){let r;if(!Array.isArray(t))throw TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return f.alloc(0);if(void 0===e)for(r=0,e=0;r<t.length;++r)e+=t[r].length;let n=f.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){let e=t[r];if(j(e,Uint8Array))i+e.length>n.length?(f.isBuffer(e)||(e=f.from(e)),e.copy(n,i)):Uint8Array.prototype.set.call(n,e,i);else if(f.isBuffer(e))e.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=e.length}return n},f.byteLength=y,f.prototype._isBuffer=!0,f.prototype.swap16=function(){let t=this.length;if(t%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<t;e+=2)d(this,e,e+1);return this},f.prototype.swap32=function(){let t=this.length;if(t%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t;e+=4)d(this,e,e+3),d(this,e+1,e+2);return this},f.prototype.swap64=function(){let t=this.length;if(t%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<t;e+=8)d(this,e,e+7),d(this,e+1,e+6),d(this,e+2,e+5),d(this,e+3,e+4);return this},f.prototype.toString=function(){let t=this.length;return 0===t?"":0==arguments.length?v(this,0,t):g.apply(this,arguments)},f.prototype.toLocaleString=f.prototype.toString,f.prototype.equals=function(t){if(!f.isBuffer(t))throw TypeError("Argument must be a Buffer");return this===t||0===f.compare(this,t)},f.prototype.inspect=function(){let t="",r=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},o&&(f.prototype[o]=f.prototype.inspect),f.prototype.compare=function(t,e,r,n,i){if(j(t,Uint8Array)&&(t=f.from(t,t.offset,t.byteLength)),!f.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return -1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,i>>>=0,this===t)return 0;let o=i-n,s=r-e,u=Math.min(o,s),a=this.slice(n,i),l=t.slice(e,r);for(let t=0;t<u;++t)if(a[t]!==l[t]){o=a[t],s=l[t];break}return o<s?-1:+(s<o)},f.prototype.includes=function(t,e,r){return -1!==this.indexOf(t,e,r)},f.prototype.indexOf=function(t,e,r){return m(this,t,e,r,!0)},f.prototype.lastIndexOf=function(t,e,r){return m(this,t,e,r,!1)},f.prototype.write=function(t,e,r,n){var i,o,s,f,u,a,l,h;if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else if(isFinite(e))e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let c=this.length-e;if((void 0===r||r>c)&&(r=c),t.length>0&&(r<0||e<0)||e>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let p=!1;for(;;)switch(n){case"hex":return function(t,e,r,n){let i;r=Number(r)||0;let o=t.length-r;n?(n=Number(n))>o&&(n=o):n=o;let s=e.length;for(n>s/2&&(n=s/2),i=0;i<n;++i){var f;let n=parseInt(e.substr(2*i,2),16);if((f=n)!=f)break;t[r+i]=n}return i}(this,t,e,r);case"utf8":case"utf-8":return i=e,o=r,D(U(t,this.length-i),this,i,o);case"ascii":case"latin1":case"binary":return s=e,f=r,D(function(t){let e=[];for(let r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(t),this,s,f);case"base64":return u=e,a=r,D(C(t),this,u,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return l=e,h=r,D(function(t,e){let r,n,i=[];for(let o=0;o<t.length&&!((e-=2)<0);++o)n=(r=t.charCodeAt(o))>>8,i.push(r%256),i.push(n);return i}(t,this.length-l),this,l,h);default:if(p)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},f.prototype.slice=function(t,e){let r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);let n=this.subarray(t,e);return Object.setPrototypeOf(n,f.prototype),n},f.prototype.readUintLE=f.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||w(t,e,this.length);let n=this[t],i=1,o=0;for(;++o<e&&(i*=256);)n+=this[t+o]*i;return n},f.prototype.readUintBE=f.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||w(t,e,this.length);let n=this[t+--e],i=1;for(;e>0&&(i*=256);)n+=this[t+--e]*i;return n},f.prototype.readUint8=f.prototype.readUInt8=function(t,e){return t>>>=0,e||w(t,1,this.length),this[t]},f.prototype.readUint16LE=f.prototype.readUInt16LE=function(t,e){return t>>>=0,e||w(t,2,this.length),this[t]|this[t+1]<<8},f.prototype.readUint16BE=f.prototype.readUInt16BE=function(t,e){return t>>>=0,e||w(t,2,this.length),this[t]<<8|this[t+1]},f.prototype.readUint32LE=f.prototype.readUInt32LE=function(t,e){return t>>>=0,e||w(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+0x1000000*this[t+3]},f.prototype.readUint32BE=f.prototype.readUInt32BE=function(t,e){return t>>>=0,e||w(t,4,this.length),0x1000000*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},f.prototype.readBigUInt64LE=F(function(t){M(t>>>=0,"offset");let e=this[t],r=this[t+7];(void 0===e||void 0===r)&&k(t,this.length-8);let n=e+256*this[++t]+65536*this[++t]+0x1000000*this[++t],i=this[++t]+256*this[++t]+65536*this[++t]+0x1000000*r;return BigInt(n)+(BigInt(i)<<BigInt(32))}),f.prototype.readBigUInt64BE=F(function(t){M(t>>>=0,"offset");let e=this[t],r=this[t+7];(void 0===e||void 0===r)&&k(t,this.length-8);let n=0x1000000*e+65536*this[++t]+256*this[++t]+this[++t],i=0x1000000*this[++t]+65536*this[++t]+256*this[++t]+r;return(BigInt(n)<<BigInt(32))+BigInt(i)}),f.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||w(t,e,this.length);let n=this[t],i=1,o=0;for(;++o<e&&(i*=256);)n+=this[t+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},f.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||w(t,e,this.length);let n=e,i=1,o=this[t+--n];for(;n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},f.prototype.readInt8=function(t,e){return(t>>>=0,e||w(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},f.prototype.readInt16LE=function(t,e){t>>>=0,e||w(t,2,this.length);let r=this[t]|this[t+1]<<8;return 32768&r?0xffff0000|r:r},f.prototype.readInt16BE=function(t,e){t>>>=0,e||w(t,2,this.length);let r=this[t+1]|this[t]<<8;return 32768&r?0xffff0000|r:r},f.prototype.readInt32LE=function(t,e){return t>>>=0,e||w(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},f.prototype.readInt32BE=function(t,e){return t>>>=0,e||w(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},f.prototype.readBigInt64LE=F(function(t){M(t>>>=0,"offset");let e=this[t],r=this[t+7];return(void 0===e||void 0===r)&&k(t,this.length-8),(BigInt(this[t+4]+256*this[t+5]+65536*this[t+6]+(r<<24))<<BigInt(32))+BigInt(e+256*this[++t]+65536*this[++t]+0x1000000*this[++t])}),f.prototype.readBigInt64BE=F(function(t){M(t>>>=0,"offset");let e=this[t],r=this[t+7];return(void 0===e||void 0===r)&&k(t,this.length-8),(BigInt((e<<24)+65536*this[++t]+256*this[++t]+this[++t])<<BigInt(32))+BigInt(0x1000000*this[++t]+65536*this[++t]+256*this[++t]+r)}),f.prototype.readFloatLE=function(t,e){return t>>>=0,e||w(t,4,this.length),i.read(this,t,!0,23,4)},f.prototype.readFloatBE=function(t,e){return t>>>=0,e||w(t,4,this.length),i.read(this,t,!1,23,4)},f.prototype.readDoubleLE=function(t,e){return t>>>=0,e||w(t,8,this.length),i.read(this,t,!0,52,8)},f.prototype.readDoubleBE=function(t,e){return t>>>=0,e||w(t,8,this.length),i.read(this,t,!1,52,8)},f.prototype.writeUintLE=f.prototype.writeUIntLE=function(t,e,r,n){if(t*=1,e>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;E(this,t,e,r,n,0)}let i=1,o=0;for(this[e]=255&t;++o<r&&(i*=256);)this[e+o]=t/i&255;return e+r},f.prototype.writeUintBE=f.prototype.writeUIntBE=function(t,e,r,n){if(t*=1,e>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;E(this,t,e,r,n,0)}let i=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+r},f.prototype.writeUint8=f.prototype.writeUInt8=function(t,e,r){return t*=1,e>>>=0,r||E(this,t,e,1,255,0),this[e]=255&t,e+1},f.prototype.writeUint16LE=f.prototype.writeUInt16LE=function(t,e,r){return t*=1,e>>>=0,r||E(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},f.prototype.writeUint16BE=f.prototype.writeUInt16BE=function(t,e,r){return t*=1,e>>>=0,r||E(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},f.prototype.writeUint32LE=f.prototype.writeUInt32LE=function(t,e,r){return t*=1,e>>>=0,r||E(this,t,e,4,0xffffffff,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},f.prototype.writeUint32BE=f.prototype.writeUInt32BE=function(t,e,r){return t*=1,e>>>=0,r||E(this,t,e,4,0xffffffff,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},f.prototype.writeBigUInt64LE=F(function(t,e=0){return O(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),f.prototype.writeBigUInt64BE=F(function(t,e=0){return A(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),f.prototype.writeIntLE=function(t,e,r,n){if(t*=1,e>>>=0,!n){let n=Math.pow(2,8*r-1);E(this,t,e,r,n-1,-n)}let i=0,o=1,s=0;for(this[e]=255&t;++i<r&&(o*=256);)t<0&&0===s&&0!==this[e+i-1]&&(s=1),this[e+i]=(t/o|0)-s&255;return e+r},f.prototype.writeIntBE=function(t,e,r,n){if(t*=1,e>>>=0,!n){let n=Math.pow(2,8*r-1);E(this,t,e,r,n-1,-n)}let i=r-1,o=1,s=0;for(this[e+i]=255&t;--i>=0&&(o*=256);)t<0&&0===s&&0!==this[e+i+1]&&(s=1),this[e+i]=(t/o|0)-s&255;return e+r},f.prototype.writeInt8=function(t,e,r){return t*=1,e>>>=0,r||E(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},f.prototype.writeInt16LE=function(t,e,r){return t*=1,e>>>=0,r||E(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},f.prototype.writeInt16BE=function(t,e,r){return t*=1,e>>>=0,r||E(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},f.prototype.writeInt32LE=function(t,e,r){return t*=1,e>>>=0,r||E(this,t,e,4,0x7fffffff,-0x80000000),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},f.prototype.writeInt32BE=function(t,e,r){return t*=1,e>>>=0,r||E(this,t,e,4,0x7fffffff,-0x80000000),t<0&&(t=0xffffffff+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},f.prototype.writeBigInt64LE=F(function(t,e=0){return O(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),f.prototype.writeBigInt64BE=F(function(t,e=0){return A(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),f.prototype.writeFloatLE=function(t,e,r){return B(this,t,e,!0,r)},f.prototype.writeFloatBE=function(t,e,r){return B(this,t,e,!1,r)},f.prototype.writeDoubleLE=function(t,e,r){return x(this,t,e,!0,r)},f.prototype.writeDoubleBE=function(t,e,r){return x(this,t,e,!1,r)},f.prototype.copy=function(t,e,r,n){if(!f.isBuffer(t))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r||0===t.length||0===this.length)return 0;if(e<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);let i=n-r;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,r,n):Uint8Array.prototype.set.call(t,this.subarray(r,n),e),i},f.prototype.fill=function(t,e,r,n){let i;if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!f.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===t.length){let e=t.charCodeAt(0);("utf8"===n&&e<128||"latin1"===n)&&(t=e)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw RangeError("Out of range index");if(r<=e)return this;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i<r;++i)this[i]=t;else{let o=f.isBuffer(t)?t:f.from(t,n),s=o.length;if(0===s)throw TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<r-e;++i)this[i+e]=o[i%s]}return this};let I={};function P(t,e,r){I[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(t){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:t,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}function R(t){let e="",r=t.length,n=+("-"===t[0]);for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function T(t,e,r,n,i,o){if(t>r||t<e){let n,i="bigint"==typeof e?"n":"";throw n=o>3?0===e||e===BigInt(0)?`>= 0${i} and < 2${i} ** ${(o+1)*8}${i}`:`>= -(2${i} ** ${(o+1)*8-1}${i}) and < 2 ** ${(o+1)*8-1}${i}`:`>= ${e}${i} and <= ${r}${i}`,new I.ERR_OUT_OF_RANGE("value",n,t)}M(i,"offset"),(void 0===n[i]||void 0===n[i+o])&&k(i,n.length-(o+1))}function M(t,e){if("number"!=typeof t)throw new I.ERR_INVALID_ARG_TYPE(e,"number",t)}function k(t,e,r){if(Math.floor(t)!==t)throw M(t,r),new I.ERR_OUT_OF_RANGE(r||"offset","an integer",t);if(e<0)throw new I.ERR_BUFFER_OUT_OF_BOUNDS;throw new I.ERR_OUT_OF_RANGE(r||"offset",`>= ${+!!r} and <= ${e}`,t)}P("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),P("ERR_INVALID_ARG_TYPE",function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`},TypeError),P("ERR_OUT_OF_RANGE",function(t,e,r){let n=`The value of "${t}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>0x100000000?i=R(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=R(i)),i+="n"),n+=` It must be ${e}. Received ${i}`},RangeError);let N=/[^+/0-9A-Za-z-_]/g;function U(t,e){let r;e=e||1/0;let n=t.length,i=null,o=[];for(let s=0;s<n;++s){if((r=t.charCodeAt(s))>55295&&r<57344){if(!i){if(r>56319||s+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function C(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(N,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function D(t,e,r,n){let i;for(i=0;i<n&&!(i+r>=e.length)&&!(i>=t.length);++i)e[i+r]=t[i];return i}function j(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}let L=function(){let t="0123456789abcdef",e=Array(256);for(let r=0;r<16;++r){let n=16*r;for(let i=0;i<16;++i)e[n+i]=t[r]+t[i]}return e}();function F(t){return"undefined"==typeof BigInt?$:t}function $(){throw Error("BigInt not supported")}},947:function(t,e){e.read=function(t,e,r,n,i){var o,s,f=8*i-n-1,u=(1<<f)-1,a=u>>1,l=-7,h=r?i-1:0,c=r?-1:1,p=t[e+h];for(h+=c,o=p&(1<<-l)-1,p>>=-l,l+=f;l>0;o=256*o+t[e+h],h+=c,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=n;l>0;s=256*s+t[e+h],h+=c,l-=8);if(0===o)o=1-a;else{if(o===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,n),o-=a}return(p?-1:1)*s*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var s,f,u,a=8*o-i-1,l=(1<<a)-1,h=l>>1,c=5960464477539062e-23*(23===i),p=n?0:o-1,y=n?1:-1,g=+(e<0||0===e&&1/e<0);for(isNaN(e=Math.abs(e))||e===1/0?(f=+!!isNaN(e),s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),s+h>=1?e+=c/u:e+=c*Math.pow(2,1-h),e*u>=2&&(s++,u/=2),s+h>=l?(f=0,s=l):s+h>=1?(f=(e*u-1)*Math.pow(2,i),s+=h):(f=e*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;t[r+p]=255&f,p+=y,f/=256,i-=8);for(s=s<<i|f,a+=i;a>0;t[r+p]=255&s,p+=y,s/=256,a-=8);t[r+p-y]|=128*g}}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var o=e[n]={exports:{}};return t[n](o,o.exports,r),o.exports}r.rv=()=>"1.5.7",r.ruid="bundler=rspack@1.5.7",(()=>{"use strict";var t,e=r(686),n=((t={}).EACCES="permission denied",t.EBADF="bad file descriptor",t.EBUSY="resource busy or locked",t.EINVAL="invalid argument",t.ENOTDIR="not a directory",t.EISDIR="illegal operation on a directory",t.ENOENT="no such file or directory",t.EEXIST="file already exists",t.EPERM="operation not permitted",t.ELOOP="too many symbolic links encountered",t.ENOTEMPTY="directory not empty",t.EIO="i/o error",t.ENOSPC="no space left on device",t.UNKNOWN="unknown error",t),i={EACCES:13,EBADF:9,EBUSY:16,EINVAL:22,ENOTDIR:20,EISDIR:21,ENOENT:34,EEXIST:17,EPERM:1,ELOOP:40,ENOTEMPTY:39,EIO:5,ENOSPC:28,UNKNOWN:-1};function o(t,e,r){return"UNKNOWN"===t&&r?{name:"UNKNOWN",code:r,errno:-1,message:n[t],path:e}:{name:t,code:t,errno:i[t],message:n[t],path:e}}function s(t,e){if(t&&"NotFoundError"===t.name)return o("ENOENT",e);if(t&&"TypeMismatchError"===t.name)return o("EISDIR",e);if(t&&"NoModificationAllowedError"===t.name)return o("EPERM",e);if(t&&"QuotaExceededError"===t.name)return o("ENOSPC",e);if(t&&"SecurityError"===t.name)return o("EACCES",e);else if(t&&"InvalidModificationError"===t.name)return o("EEXIST",e);else if(t&&"NotReadableError"===t.name)return o("EIO",e);else if(t&&"DirectoryNotEmptyError"===t.name)return o("ENOTEMPTY",e);else if(t&&"PathExistsError"===t.name)return o("EEXIST",e);else if(t&&"noFD"===t.name)return o("EBADF",e);else return o("UNKNOWN",e,t&&t.message)}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function u(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function a(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return f(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return f(t,e)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var l=function(){var t;function e(){if(!(this instanceof e))throw TypeError("Cannot call a class as a function");u(this,"sep","/"),u(this,"delimiter",":")}return t=[{key:"normalizePath",value:function(t,e){if(e&&(this.sep=e),!t)return this.sep;t.startsWith("/")||(t=this.sep+"/"+t);var r=t.split("/").filter(Boolean),n=[],i=!0,o=!1,s=void 0;try{for(var f,u=r[Symbol.iterator]();!(i=(f=u.next()).done);i=!0){var a=f.value;"."!==a&&""!==a&&(".."===a?n.length>0&&n.pop():n.push(a))}}catch(t){o=!0,s=t}finally{try{i||null==u.return||u.return()}finally{if(o)throw s}}var l="/"+n.join("/");return"//"===l&&(l="/"),l}},{key:"basename",value:function(t,e){var r=t.split("/").pop()||"";return e&&r.endsWith(e)?r.slice(0,-e.length)||"/":""===r?"/":r}},{key:"normalize",value:function(t){var e=this.normalizePath(t);return"/"===e?"/":this.removeTrailing(e)}},{key:"isNull",value:function(t){return -1!==(""+t).indexOf("\0")}},{key:"addTrailing",value:function(t){return t.replace(/\/*$/,"/")}},{key:"removeTrailing",value:function(t){return""===(t=t.replace(/\/*$/,""))?"/":t}},{key:"join",value:function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.filter(Boolean).map(function(t,e){return 0===e?t.replace(/\/+$/,""):t.replace(/^\/+|\/+$/g,"")}).join(this.sep)}},{key:"dirname",value:function(t){if(!t||"/"===t)return"/";var e=t.split("/").filter(Boolean);return e.pop(),"/"+e.join("/")}},{key:"extname",value:function(t){var e=t.split("/").pop()||"",r=e.lastIndexOf(".");return r>0?e.slice(r):""}},{key:"isAbsolute",value:function(t){return t.startsWith("/")}},{key:"relative",value:function(t,e){for(var r=this.normalizePath(t).split("/").filter(Boolean),n=this.normalizePath(e).split("/").filter(Boolean),i=0;i<r.length&&i<n.length&&r[i]===n[i];)i++;var o=r.slice(i).map(function(){return".."}),s=n.slice(i);return a(o).concat(a(s)).join("/")||"."}},{key:"resolve",value:function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];var n="",i=!0,o=!1,s=void 0;try{for(var f,u=e[Symbol.iterator]();!(i=(f=u.next()).done);i=!0){var a=f.value;n=this.isAbsolute(a)?a:this.join(n,a)}}catch(t){o=!0,s=t}finally{try{i||null==u.return||u.return()}finally{if(o)throw s}}return this.normalize(n)}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(e.prototype,t),e}();let h=(t,e,r)=>{let n=t instanceof RegExp?c(t,r):t,i=e instanceof RegExp?c(e,r):e,o=null!==n&&null!=i&&p(n,i,r);return o&&{start:o[0],end:o[1],pre:r.slice(0,o[0]),body:r.slice(o[0]+n.length,o[1]),post:r.slice(o[1]+i.length)}},c=(t,e)=>{let r=e.match(t);return r?r[0]:null},p=(t,e,r)=>{let n,i,o,s,f,u=r.indexOf(t),a=r.indexOf(e,u+1),l=u;if(u>=0&&a>0){if(t===e)return[u,a];for(n=[],o=r.length;l>=0&&!f;){if(l===u)n.push(l),u=r.indexOf(t,l+1);else if(1===n.length){let t=n.pop();void 0!==t&&(f=[t,a])}else void 0!==(i=n.pop())&&i<o&&(o=i,s=a),a=r.indexOf(e,l+1);l=u<a&&u>=0?u:a}n.length&&void 0!==s&&(f=[o,s])}return f},y="\0SLASH"+Math.random()+"\0",g="\0OPEN"+Math.random()+"\0",d="\0CLOSE"+Math.random()+"\0",m="\0COMMA"+Math.random()+"\0",b="\0PERIOD"+Math.random()+"\0",v=RegExp(y,"g"),w=RegExp(g,"g"),E=RegExp(d,"g"),O=RegExp(m,"g"),A=RegExp(b,"g"),S=/\\\\/g,B=/\\{/g,x=/\\}/g,I=/\\,/g,P=/\\./g;function R(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}function T(t){return t.replace(v,"\\").replace(w,"{").replace(E,"}").replace(O,",").replace(A,".")}function M(t){return"{"+t+"}"}function k(t){return/^-?0\d/.test(t)}function N(t,e){return t<=e}function U(t,e){return t>=e}let C=t=>{if("string"!=typeof t)throw TypeError("invalid pattern");if(t.length>65536)throw TypeError("pattern is too long")},D={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},j=t=>t.replace(/[[\]\\-]/g,"\\$&"),L=(t,e)=>{if("["!==t.charAt(e))throw Error("not in a brace expression");let r=[],n=[],i=e+1,o=!1,s=!1,f=!1,u=!1,a=e,l="";t:for(;i<t.length;){let h=t.charAt(i);if(("!"===h||"^"===h)&&i===e+1){u=!0,i++;continue}if("]"===h&&o&&!f){a=i+1;break}if(o=!0,"\\"===h&&!f){f=!0,i++;continue}if("["===h&&!f){for(let[o,[f,u,a]]of Object.entries(D))if(t.startsWith(o,i)){if(l)return["$.",!1,t.length-e,!0];i+=o.length,a?n.push(f):r.push(f),s=s||u;continue t}}if(f=!1,l){h>l?r.push(j(l)+"-"+j(h)):h===l&&r.push(j(h)),l="",i++;continue}if(t.startsWith("-]",i+1)){r.push(j(h+"-")),i+=2;continue}if(t.startsWith("-",i+1)){l=h,i+=2;continue}r.push(j(h)),i++}if(a<i)return["",!1,0,!1];if(!r.length&&!n.length)return["$.",!1,t.length-e,!0];if(0===n.length&&1===r.length&&/^\\?.$/.test(r[0])&&!u)return[(2===r[0].length?r[0].slice(-1):r[0]).replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),!1,a-e,!1];let h="["+(u?"^":"")+r.join("")+"]",c="["+(u?"":"^")+n.join("")+"]";return[r.length&&n.length?"("+h+"|"+c+")":r.length?h:c,s,a-e,!0]},F=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),$=new Set(["!","?","+","*","@"]),z=t=>$.has(t),_="(?!\\.)",W=new Set(["[","."]),Y=new Set(["..","."]),G=new Set("().*{}+?[]^$\\!"),H=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),V="[^/]",X=V+"*?",Z=V+"+?";class K{type;#t;#e;#r=!1;#n=[];#i;#o;#s;#f=!1;#u;#a;#l=!1;constructor(t,e,r={}){this.type=t,t&&(this.#e=!0),this.#i=e,this.#t=this.#i?this.#i.#t:this,this.#u=this.#t===this?r:this.#t.#u,this.#s=this.#t===this?[]:this.#t.#s,"!"!==t||this.#t.#f||this.#s.push(this),this.#o=this.#i?this.#i.#n.length:0}get hasMagic(){if(void 0!==this.#e)return this.#e;for(let t of this.#n)if("string"!=typeof t&&(t.type||t.hasMagic))return this.#e=!0;return this.#e}toString(){return void 0!==this.#a?this.#a:this.type?this.#a=this.type+"("+this.#n.map(t=>String(t)).join("|")+")":this.#a=this.#n.map(t=>String(t)).join("")}#h(){let t;if(this!==this.#t)throw Error("should only call on root");if(this.#f)return this;for(this.toString(),this.#f=!0;t=this.#s.pop();){if("!"!==t.type)continue;let e=t,r=e.#i;for(;r;){for(let n=e.#o+1;!r.type&&n<r.#n.length;n++)for(let e of t.#n){if("string"==typeof e)throw Error("string part in extglob AST??");e.copyIn(r.#n[n])}r=(e=r).#i}}return this}push(...t){for(let e of t)if(""!==e){if("string"!=typeof e&&!(e instanceof K&&e.#i===this))throw Error("invalid part: "+e);this.#n.push(e)}}toJSON(){let t=null===this.type?this.#n.slice().map(t=>"string"==typeof t?t:t.toJSON()):[this.type,...this.#n.map(t=>t.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===this.#t||this.#t.#f&&this.#i?.type==="!")&&t.push({}),t}isStart(){if(this.#t===this)return!0;if(!this.#i?.isStart())return!1;if(0===this.#o)return!0;let t=this.#i;for(let e=0;e<this.#o;e++){let r=t.#n[e];if(!(r instanceof K&&"!"===r.type))return!1}return!0}isEnd(){if(this.#t===this||this.#i?.type==="!")return!0;if(!this.#i?.isEnd())return!1;if(!this.type)return this.#i?.isEnd();let t=this.#i?this.#i.#n.length:0;return this.#o===t-1}copyIn(t){"string"==typeof t?this.push(t):this.push(t.clone(this))}clone(t){let e=new K(this.type,t);for(let t of this.#n)e.copyIn(t);return e}static #c(t,e,r,n){let i=!1,o=!1,s=-1,f=!1;if(null===e.type){let u=r,a="";for(;u<t.length;){let r=t.charAt(u++);if(i||"\\"===r){i=!i,a+=r;continue}if(o){u===s+1?("^"===r||"!"===r)&&(f=!0):"]"!==r||u===s+2&&f||(o=!1),a+=r;continue}if("["===r){o=!0,s=u,f=!1,a+=r;continue}if(!n.noext&&z(r)&&"("===t.charAt(u)){e.push(a),a="";let i=new K(r,e);u=K.#c(t,i,u,n),e.push(i);continue}a+=r}return e.push(a),u}let u=r+1,a=new K(null,e),l=[],h="";for(;u<t.length;){let r=t.charAt(u++);if(i||"\\"===r){i=!i,h+=r;continue}if(o){u===s+1?("^"===r||"!"===r)&&(f=!0):"]"!==r||u===s+2&&f||(o=!1),h+=r;continue}if("["===r){o=!0,s=u,f=!1,h+=r;continue}if(z(r)&&"("===t.charAt(u)){a.push(h),h="";let e=new K(r,a);a.push(e),u=K.#c(t,e,u,n);continue}if("|"===r){a.push(h),h="",l.push(a),a=new K(null,e);continue}if(")"===r)return""===h&&0===e.#n.length&&(e.#l=!0),a.push(h),h="",e.push(...l,a),u;h+=r}return e.type=null,e.#e=void 0,e.#n=[t.substring(r-1)],u}static fromGlob(t,e={}){let r=new K(null,void 0,e);return K.#c(t,r,0,e),r}toMMPattern(){if(this!==this.#t)return this.#t.toMMPattern();let t=this.toString(),[e,r,n,i]=this.toRegExpSource();return n||this.#e||this.#u.nocase&&!this.#u.nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()?Object.assign(RegExp(`^${e}$`,(this.#u.nocase?"i":"")+(i?"u":"")),{_src:e,_glob:t}):r}get options(){return this.#u}toRegExpSource(t){let e=t??!!this.#u.dot;if(this.#t===this&&this.#h(),!this.type){let r=this.isStart()&&this.isEnd(),n=this.#n.map(e=>{let[n,i,o,s]="string"==typeof e?K.#p(e,this.#e,r):e.toRegExpSource(t);return this.#e=this.#e||o,this.#r=this.#r||s,n}).join(""),i="";if(this.isStart()&&"string"==typeof this.#n[0]&&!(1===this.#n.length&&Y.has(this.#n[0]))){let r=e&&W.has(n.charAt(0))||n.startsWith("\\.")&&W.has(n.charAt(2))||n.startsWith("\\.\\.")&&W.has(n.charAt(4)),o=!e&&!t&&W.has(n.charAt(0));i=r?"(?!(?:^|/)\\.\\.?(?:$|/))":o?_:""}let o="";return this.isEnd()&&this.#t.#f&&this.#i?.type==="!"&&(o="(?:$|\\/)"),[i+n+o,F(n),this.#e=!!this.#e,this.#r]}let r="*"===this.type||"+"===this.type,n="!"===this.type?"(?:(?!(?:":"(?:",i=this.#y(e);if(this.isStart()&&this.isEnd()&&!i&&"!"!==this.type){let t=this.toString();return this.#n=[t],this.type=null,this.#e=void 0,[t,F(this.toString()),!1,!1]}let o=!r||t||e||!_?"":this.#y(!0);o===i&&(o=""),o&&(i=`(?:${i})(?:${o})*?`);return["!"===this.type&&this.#l?(this.isStart()&&!e?_:"")+Z:n+i+("!"===this.type?"))"+(!this.isStart()||e||t?"":_)+X+")":"@"===this.type?")":"?"===this.type?")?":"+"===this.type&&o?")":"*"===this.type&&o?")?":`)${this.type}`),F(i),this.#e=!!this.#e,this.#r]}#y(t){return this.#n.map(e=>{if("string"==typeof e)throw Error("string type in extglob ast??");let[r,n,i,o]=e.toRegExpSource(t);return this.#r=this.#r||o,r}).filter(t=>!(this.isStart()&&this.isEnd())||!!t).join("|")}static #p(t,e,r=!1){let n=!1,i="",o=!1;for(let s=0;s<t.length;s++){let f=t.charAt(s);if(n){n=!1,i+=(G.has(f)?"\\":"")+f;continue}if("\\"===f){s===t.length-1?i+="\\\\":n=!0;continue}if("["===f){let[r,n,f,u]=L(t,s);if(f){i+=r,o=o||n,s+=f-1,e=e||u;continue}}if("*"===f){r&&"*"===t?i+=Z:i+=X,e=!0;continue}if("?"===f){i+=V,e=!0;continue}i+=H(f)}return[i,F(t),!!e,o]}}let J=(t,e,r={})=>(C(e),(!!r.nocomment||"#"!==e.charAt(0))&&new tg(e,r).match(t)),q=/^\*+([^+@!?\*\[\(]*)$/,Q=/^\*+\.\*+$/,tt=t=>!t.startsWith(".")&&t.includes("."),te=t=>"."!==t&&".."!==t&&t.includes("."),tr=/^\.\*+$/,tn=t=>"."!==t&&".."!==t&&t.startsWith("."),ti=/^\*+$/,to=t=>0!==t.length&&!t.startsWith("."),ts=t=>0!==t.length&&"."!==t&&".."!==t,tf=/^\?+([^+@!?\*\[\(]*)?$/,tu=([t])=>{let e=t.length;return t=>t.length===e&&!t.startsWith(".")},ta=([t])=>{let e=t.length;return t=>t.length===e&&"."!==t&&".."!==t},tl="object"==typeof process&&process?"object"==typeof process.env&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix";J.sep="win32"===tl?"\\":"/";let th=Symbol("globstar **");J.GLOBSTAR=th;J.filter=(t,e={})=>r=>J(r,t,e);let tc=(t,e={})=>Object.assign({},t,e);J.defaults=t=>{if(!t||"object"!=typeof t||!Object.keys(t).length)return J;let e=J;return Object.assign((r,n,i={})=>e(r,n,tc(t,i)),{Minimatch:class extends e.Minimatch{constructor(e,r={}){super(e,tc(t,r))}static defaults(r){return e.defaults(tc(t,r)).Minimatch}},AST:class extends e.AST{constructor(e,r,n={}){super(e,r,tc(t,n))}static fromGlob(r,n={}){return e.AST.fromGlob(r,tc(t,n))}},unescape:(r,n={})=>e.unescape(r,tc(t,n)),escape:(r,n={})=>e.escape(r,tc(t,n)),filter:(r,n={})=>e.filter(r,tc(t,n)),defaults:r=>e.defaults(tc(t,r)),makeRe:(r,n={})=>e.makeRe(r,tc(t,n)),braceExpand:(r,n={})=>e.braceExpand(r,tc(t,n)),match:(r,n,i={})=>e.match(r,n,tc(t,i)),sep:e.sep,GLOBSTAR:th})};let tp=(t,e={})=>{if(C(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t))return[t];var r=t;return r?("{}"===r.slice(0,2)&&(r="\\{\\}"+r.slice(2)),(function t(e,r){let n=[],i=h("{","}",e);if(!i)return[e];let o=i.pre,s=i.post.length?t(i.post,!1):[""];if(/\$$/.test(i.pre))for(let t=0;t<s.length;t++){let e=o+"{"+i.body+"}"+s[t];n.push(e)}else{let f,u,a=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),l=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),c=a||l,p=i.body.indexOf(",")>=0;if(!c&&!p)return i.post.match(/,(?!,).*\}/)?t(e=i.pre+"{"+i.body+d+i.post):[e];if(c)f=i.body.split(/\.\./);else if(1===(f=function t(e){if(!e)return[""];let r=[],n=h("{","}",e);if(!n)return e.split(",");let{pre:i,body:o,post:s}=n,f=i.split(",");f[f.length-1]+="{"+o+"}";let u=t(s);return s.length&&(f[f.length-1]+=u.shift(),f.push.apply(f,u)),r.push.apply(r,f),r}(i.body)).length&&void 0!==f[0]&&1===(f=t(f[0],!1).map(M)).length)return s.map(t=>i.pre+f[0]+t);if(c&&void 0!==f[0]&&void 0!==f[1]){let t=R(f[0]),e=R(f[1]),r=Math.max(f[0].length,f[1].length),n=3===f.length&&void 0!==f[2]?Math.abs(R(f[2])):1,i=N;e<t&&(n*=-1,i=U);let o=f.some(k);u=[];for(let s=t;i(s,e);s+=n){let t;if(l)"\\"===(t=String.fromCharCode(s))&&(t="");else if(t=String(s),o){let e=r-t.length;if(e>0){let r=Array(e+1).join("0");t=s<0?"-"+r+t.slice(1):r+t}}u.push(t)}}else{u=[];for(let e=0;e<f.length;e++)u.push.apply(u,t(f[e],!1))}for(let t=0;t<u.length;t++)for(let e=0;e<s.length;e++){let i=o+u[t]+s[e];(!r||c||i)&&n.push(i)}}return n})(r.replace(S,y).replace(B,g).replace(x,d).replace(I,m).replace(P,b),!0).map(T)):[]};J.braceExpand=tp,J.makeRe=(t,e={})=>new tg(t,e).makeRe(),J.match=(t,e,r={})=>{let n=new tg(e,r);return t=t.filter(t=>n.match(t)),n.options.nonull&&!t.length&&t.push(e),t};let ty=/[?*]|[+@!]\(.*?\)|\[|\]/;class tg{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(t,e={}){C(t),e=e||{},this.options=e,this.pattern=t,this.platform=e.platform||tl,this.isWindows="win32"===this.platform,this.windowsPathsNoEscape=!!e.windowsPathsNoEscape||!1===e.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!e.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!e.nonegate,this.comment=!1,this.empty=!1,this.partial=!!e.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=void 0!==e.windowsNoMagicRoot?e.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let t of this.set)for(let e of t)if("string"!=typeof e)return!0;return!1}debug(){}make(){let t=this.pattern,e=this.options;if(!e.nocomment&&"#"===t.charAt(0)){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],e.debug&&(this.debug=(...t)=>console.error(...t)),this.debug(this.pattern,this.globSet);let r=this.globSet.map(t=>this.slashSplit(t));this.globParts=this.preprocess(r),this.debug(this.pattern,this.globParts);let n=this.globParts.map((t,e,r)=>{if(this.isWindows&&this.windowsNoMagicRoot){let e=""===t[0]&&""===t[1]&&("?"===t[2]||!ty.test(t[2]))&&!ty.test(t[3]),r=/^[a-z]:/i.test(t[0]);if(e)return[...t.slice(0,4),...t.slice(4).map(t=>this.parse(t))];if(r)return[t[0],...t.slice(1).map(t=>this.parse(t))]}return t.map(t=>this.parse(t))});if(this.debug(this.pattern,n),this.set=n.filter(t=>-1===t.indexOf(!1)),this.isWindows)for(let t=0;t<this.set.length;t++){let e=this.set[t];""===e[0]&&""===e[1]&&"?"===this.globParts[t][2]&&"string"==typeof e[3]&&/^[a-z]:$/i.test(e[3])&&(e[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let e=0;e<t.length;e++)for(let r=0;r<t[e].length;r++)"**"===t[e][r]&&(t[e][r]="*");let{optimizationLevel:e=1}=this.options;return e>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):t=e>=1?this.levelOneOptimize(t):this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(t=>{let e=-1;for(;-1!==(e=t.indexOf("**",e+1));){let r=e;for(;"**"===t[r+1];)r++;r!==e&&t.splice(e,r-e)}return t})}levelOneOptimize(t){return t.map(t=>0===(t=t.reduce((t,e)=>{let r=t[t.length-1];return"**"===e&&"**"===r||(".."===e&&r&&".."!==r&&"."!==r&&"**"!==r?t.pop():t.push(e)),t},[])).length?[""]:t)}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let e=!1;do{if(e=!1,!this.preserveMultipleSlashes){for(let r=1;r<t.length-1;r++){let n=t[r];(1!==r||""!==n||""!==t[0])&&("."===n||""===n)&&(e=!0,t.splice(r,1),r--)}"."===t[0]&&2===t.length&&("."===t[1]||""===t[1])&&(e=!0,t.pop())}let r=0;for(;-1!==(r=t.indexOf("..",r+1));){let n=t[r-1];n&&"."!==n&&".."!==n&&"**"!==n&&(e=!0,t.splice(r-1,2),r-=2)}}while(e);return 0===t.length?[""]:t}firstPhasePreProcess(t){let e=!1;do for(let r of(e=!1,t)){let n=-1;for(;-1!==(n=r.indexOf("**",n+1));){let i=n;for(;"**"===r[i+1];)i++;i>n&&r.splice(n+1,i-n);let o=r[n+1],s=r[n+2],f=r[n+3];if(".."!==o||!s||"."===s||".."===s||!f||"."===f||".."===f)continue;e=!0,r.splice(n,1);let u=r.slice(0);u[n]="**",t.push(u),n--}if(!this.preserveMultipleSlashes){for(let t=1;t<r.length-1;t++){let n=r[t];(1!==t||""!==n||""!==r[0])&&("."===n||""===n)&&(e=!0,r.splice(t,1),t--)}"."===r[0]&&2===r.length&&("."===r[1]||""===r[1])&&(e=!0,r.pop())}let i=0;for(;-1!==(i=r.indexOf("..",i+1));){let t=r[i-1];if(t&&"."!==t&&".."!==t&&"**"!==t){e=!0;let t=1===i&&"**"===r[i+1]?["."]:[];r.splice(i-1,2,...t),0===r.length&&r.push(""),i-=2}}}while(e);return t}secondPhasePreProcess(t){for(let e=0;e<t.length-1;e++)for(let r=e+1;r<t.length;r++){let n=this.partsMatch(t[e],t[r],!this.preserveMultipleSlashes);if(n){t[e]=[],t[r]=n;break}}return t.filter(t=>t.length)}partsMatch(t,e,r=!1){let n=0,i=0,o=[],s="";for(;n<t.length&&i<e.length;)if(t[n]===e[i])o.push("b"===s?e[i]:t[n]),n++,i++;else if(r&&"**"===t[n]&&e[i]===t[n+1])o.push(t[n]),n++;else if(r&&"**"===e[i]&&t[n]===e[i+1])o.push(e[i]),i++;else if("*"===t[n]&&e[i]&&(this.options.dot||!e[i].startsWith("."))&&"**"!==e[i]){if("b"===s)return!1;s="a",o.push(t[n]),n++,i++}else{if("*"!==e[i]||!t[n]||!this.options.dot&&t[n].startsWith(".")||"**"===t[n]||"a"===s)return!1;s="b",o.push(e[i]),n++,i++}return t.length===e.length&&o}parseNegate(){if(this.nonegate)return;let t=this.pattern,e=!1,r=0;for(let n=0;n<t.length&&"!"===t.charAt(n);n++)e=!e,r++;r&&(this.pattern=t.slice(r)),this.negate=e}matchOne(t,e,r=!1){let n=this.options;if(this.isWindows){let r="string"==typeof t[0]&&/^[a-z]:$/i.test(t[0]),n=!r&&""===t[0]&&""===t[1]&&"?"===t[2]&&/^[a-z]:$/i.test(t[3]),i="string"==typeof e[0]&&/^[a-z]:$/i.test(e[0]),o=!i&&""===e[0]&&""===e[1]&&"?"===e[2]&&"string"==typeof e[3]&&/^[a-z]:$/i.test(e[3]),s=n?3:r?0:void 0,f=o?3:i?0:void 0;if("number"==typeof s&&"number"==typeof f){let[r,n]=[t[s],e[f]];r.toLowerCase()===n.toLowerCase()&&(e[f]=r,f>s?e=e.slice(f):s>f&&(t=t.slice(s)))}}let{optimizationLevel:i=1}=this.options;i>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var o=0,s=0,f=t.length,u=e.length;o<f&&s<u;o++,s++){let i;this.debug("matchOne loop");var a=e[s],l=t[o];if(this.debug(e,a,l),!1===a)return!1;if(a===th){this.debug("GLOBSTAR",[e,a,l]);var h=o,c=s+1;if(c===u){for(this.debug("** at the end");o<f;o++)if("."===t[o]||".."===t[o]||!n.dot&&"."===t[o].charAt(0))return!1;return!0}for(;h<f;){var p=t[h];if(this.debug("\nglobstar while",t,h,e,c,p),this.matchOne(t.slice(h),e.slice(c),r))return this.debug("globstar found match!",h,f,p),!0;if("."===p||".."===p||!n.dot&&"."===p.charAt(0)){this.debug("dot detected!",t,h,e,c);break}this.debug("globstar swallow a segment, and continue"),h++}if(r&&(this.debug("\n>>> no match, partial?",t,h,e,c),h===f))return!0;return!1}if("string"==typeof a?(i=l===a,this.debug("string match",a,l,i)):(i=a.test(l),this.debug("pattern match",a,l,i)),!i)return!1}if(o===f&&s===u)return!0;if(o===f)return r;if(s===u)return o===f-1&&""===t[o];throw Error("wtf?")}braceExpand(){return tp(this.pattern,this.options)}parse(t){let e;C(t);let r=this.options;if("**"===t)return th;if(""===t)return"";let n=null;(e=t.match(ti))?n=r.dot?ts:to:(e=t.match(q))?n=(r.nocase?r.dot?t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)):t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)):r.dot?t=>e=>e.endsWith(t):t=>e=>!e.startsWith(".")&&e.endsWith(t))(e[1]):(e=t.match(tf))?n=(r.nocase?r.dot?([t,e=""])=>{let r=ta([t]);return e?(e=e.toLowerCase(),t=>r(t)&&t.toLowerCase().endsWith(e)):r}:([t,e=""])=>{let r=tu([t]);return e?(e=e.toLowerCase(),t=>r(t)&&t.toLowerCa