{ "version": 3, "sources": ["../node_modules/@wasmer/wasmfs/lib/index.esm.js"], "sourcesContent": ["/*\n *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n**************************************************************************** https://mths.be/punycode v1.4.1 by @mathias */\nfunction ba(a,b,c,d){return new (c||(c=Promise))(function(e,f){function g(a){try{k(d.next(a))}catch(n){f(n)}}function h(a){try{k(d[\"throw\"](a))}catch(n){f(n)}}function k(a){a.done?e(a.value):(new c(function(b){b(a.value)})).then(g,h)}k((d=d.apply(a,b||[])).next())})}\nfunction ca(a,b){function c(a){return function(b){return d([a,b])}}function d(c){if(f)throw new TypeError(\"Generator is already executing.\");for(;e;)try{if(f=1,g&&(h=c[0]&2?g[\"return\"]:c[0]?g[\"throw\"]||((h=g[\"return\"])&&h.call(g),0):g.next)&&!(h=h.call(g,c[1])).done)return h;if(g=0,h)c=[c[0]&2,h.value];switch(c[0]){case 0:case 1:h=c;break;case 4:return e.label++,{value:c[1],done:!1};case 5:e.label++;g=c[1];c=[0];continue;case 7:c=e.ops.pop();e.trys.pop();continue;default:if(!(h=e.trys,h=0h[0]&&c[1]=a.length&&(a=void 0);return{value:a&&a[c++],done:!a}}}}\nfunction ea(a,b){var c=\"function\"===typeof Symbol&&a[Symbol.iterator];if(!c)return a;a=c.call(a);var d,e=[];try{for(;(void 0===b||0a;++a)x[a]=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\"[a],y[\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\".charCodeAt(a)]=a;y[45]=62;y[95]=63}\nfunction qa(a,b,c){for(var d=[],e=b;e>18&63]+x[b>>12&63]+x[b>>6&63]+x[b&63]);return d.join(\"\")}function ra(a){oa||pa();for(var b=a.length,c=b%3,d=\"\",e=[],f=0,g=b-c;fg?g:f+16383));1===c?(a=a[b-1],d+=x[a>>2],d+=x[a<<4&63],d+=\"==\"):2===c&&(a=(a[b-2]<<8)+a[b-1],d+=x[a>>10],d+=x[a>>4&63],d+=x[a<<2&63],d+=\"=\");e.push(d);return e.join(\"\")}\nfunction sa(a,b,c,d,e){var f=8*e-d-1;var g=(1<>1,k=-7;e=c?e-1:0;var p=c?-1:1,n=a[b+e];e+=p;c=n&(1<<-k)-1;n>>=-k;for(k+=f;0>=-k;for(k+=d;0>1,n=23===e?Math.pow(2,-24)-Math.pow(2,-77):0;f=d?0:f-1;var q=d?1:-1,B=0>b||0===b&&0>1/b?1:0;b=Math.abs(b);isNaN(b)||Infinity===b?(b=isNaN(b)?1:0,d=k):(d=Math.floor(Math.log(b)/Math.LN2),1>b*(g=Math.pow(2,-d))&&(d--,g*=2),b=1<=d+p?b+n/g:b+n*Math.pow(2,1-p),2<=b*g&&(d++,g/=2),d+p>=k?(b=0,d=k):1<=d+p?(b=(b*g-1)*Math.pow(2,e),d+=p):(b=b*Math.pow(2,p-1)*Math.pow(2,e),d=0));for(;8<=e;a[c+f]=b&255,f+=q,b/=256,e-=8);d=d<c||b.byteLengtha)throw new RangeError('\"size\" argument must not be negative');}z.alloc=function(a,b,c){Ga(a);a=0>=a?Aa(null,a):void 0!==b?\"string\"===typeof c?Aa(null,a).fill(b,c):Aa(null,a).fill(b):Aa(null,a);return a};function Ba(a,b){Ga(b);a=Aa(a,0>b?0:Ma(b)|0);if(!z.TYPED_ARRAY_SUPPORT)for(var c=0;cb.length?0:Ma(b.length)|0;a=Aa(a,c);for(var d=0;d=(z.TYPED_ARRAY_SUPPORT?2147483647:1073741823))throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+(z.TYPED_ARRAY_SUPPORT?2147483647:1073741823).toString(16)+\" bytes\");return a|0}z.isBuffer=Na;function A(a){return!(null==a||!a._isBuffer)}\nz.compare=function(a,b){if(!A(a)||!A(b))throw new TypeError(\"Arguments must be Buffers\");if(a===b)return 0;for(var c=a.length,d=b.length,e=0,f=Math.min(c,d);e>>1;case \"base64\":return Pa(a).length;\ndefault:if(d)return Oa(a).length;b=(\"\"+b).toLowerCase();d=!0}}z.byteLength=Ea;\nfunction Qa(a,b,c){var d=!1;if(void 0===b||0>b)b=0;if(b>this.length)return\"\";if(void 0===c||c>this.length)c=this.length;if(0>=c)return\"\";c>>>=0;b>>>=0;if(c<=b)return\"\";for(a||(a=\"utf8\");;)switch(a){case \"hex\":a=b;b=c;c=this.length;if(!a||0>a)a=0;if(!b||0>b||b>c)b=c;d=\"\";for(c=a;cd?\"0\"+d.toString(16):d.toString(16),d=a+d;return d;case \"utf8\":case \"utf-8\":return Ra(this,b,c);case \"ascii\":a=\"\";for(c=Math.min(this.length,c);b\"};\nz.prototype.compare=function(a,b,c,d,e){if(!A(a))throw new TypeError(\"Argument must be a Buffer\");void 0===b&&(b=0);void 0===c&&(c=a?a.length:0);void 0===d&&(d=0);void 0===e&&(e=this.length);if(0>b||c>a.length||0>d||e>this.length)throw new RangeError(\"out of range index\");if(d>=e&&b>=c)return 0;if(d>=e)return-1;if(b>=c)return 1;b>>>=0;c>>>=0;d>>>=0;e>>>=0;if(this===a)return 0;var f=e-d,g=c-b,h=Math.min(f,g);d=this.slice(d,e);a=a.slice(b,c);for(b=0;bc&&(c=-2147483648);c=+c;isNaN(c)&&(c=e?0:a.length-1);0>c&&(c=a.length+c);if(c>=a.length){if(e)return-1;c=a.length-1}else if(0>c)if(e)c=0;else return-1;\"string\"===typeof b&&(b=z.from(b,d));if(A(b))return 0===b.length?-1:Ua(a,b,c,d,e);if(\"number\"===typeof b)return b&=255,z.TYPED_ARRAY_SUPPORT&&\"function\"===typeof Uint8Array.prototype.indexOf?e?Uint8Array.prototype.indexOf.call(a,b,c):\nUint8Array.prototype.lastIndexOf.call(a,b,c):Ua(a,[b],c,d,e);throw new TypeError(\"val must be string, number or Buffer\");}\nfunction Ua(a,b,c,d,e){function f(a,b){return 1===g?a[b]:a.readUInt16BE(b*g)}var g=1,h=a.length,k=b.length;if(void 0!==d&&(d=String(d).toLowerCase(),\"ucs2\"===d||\"ucs-2\"===d||\"utf16le\"===d||\"utf-16le\"===d)){if(2>a.length||2>b.length)return-1;g=2;h/=2;k/=2;c/=2}if(e)for(d=-1;ch&&(c=h-k);0<=c;c--){h=!0;for(d=0;de)c=e;if(0c||0>b)||b>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");d||(d=\"utf8\");for(e=!1;;)switch(d){case \"hex\":a:{b=\nNumber(b)||0;d=this.length-b;c?(c=Number(c),c>d&&(c=d)):c=d;d=a.length;if(0!==d%2)throw new TypeError(\"Invalid hex string\");c>d/2&&(c=d/2);for(d=0;d(e-=2));++g){var h=d.charCodeAt(g);a=h>>8;h%=256;f.push(h);f.push(a)}return Va(f,this,b,c);default:if(e)throw new TypeError(\"Unknown encoding: \"+d);d=(\"\"+d).toLowerCase();e=!0}};z.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};\nfunction Ra(a,b,c){c=Math.min(a.length,c);for(var d=[];be&&(f=e);break;case 2:var h=a[b+1];128===(h&192)&&(e=(e&31)<<6|h&63,127e||57343e&&(f=\ne))}null===f?(f=65533,g=1):65535>>10&1023|55296),f=56320|f&1023);d.push(f);b+=g}a=d.length;if(a<=ab)d=String.fromCharCode.apply(String,d);else{c=\"\";for(b=0;ba?(a+=c,0>a&&(a=0)):a>c&&(a=c);0>b?(b+=c,0>b&&(b=0)):b>c&&(b=c);ba)throw new RangeError(\"offset is not uint\");if(a+b>c)throw new RangeError(\"Trying to access beyond buffer length\");}\nz.prototype.readUIntLE=function(a,b,c){a|=0;b|=0;c||C(a,b,this.length);c=this[a];for(var d=1,e=0;++e=128*d&&(c-=Math.pow(2,8*b));return c};\nz.prototype.readIntBE=function(a,b,c){a|=0;b|=0;c||C(a,b,this.length);c=b;for(var d=1,e=this[a+--c];0=128*d&&(e-=Math.pow(2,8*b));return e};z.prototype.readInt8=function(a,b){b||C(a,1,this.length);return this[a]&128?-1*(255-this[a]+1):this[a]};z.prototype.readInt16LE=function(a,b){b||C(a,2,this.length);a=this[a]|this[a+1]<<8;return a&32768?a|4294901760:a};\nz.prototype.readInt16BE=function(a,b){b||C(a,2,this.length);a=this[a+1]|this[a]<<8;return a&32768?a|4294901760:a};z.prototype.readInt32LE=function(a,b){b||C(a,4,this.length);return this[a]|this[a+1]<<8|this[a+2]<<16|this[a+3]<<24};z.prototype.readInt32BE=function(a,b){b||C(a,4,this.length);return this[a]<<24|this[a+1]<<16|this[a+2]<<8|this[a+3]};z.prototype.readFloatLE=function(a,b){b||C(a,4,this.length);return sa(this,a,!0,23,4)};\nz.prototype.readFloatBE=function(a,b){b||C(a,4,this.length);return sa(this,a,!1,23,4)};z.prototype.readDoubleLE=function(a,b){b||C(a,8,this.length);return sa(this,a,!0,52,8)};z.prototype.readDoubleBE=function(a,b){b||C(a,8,this.length);return sa(this,a,!1,52,8)};function E(a,b,c,d,e,f){if(!A(a))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(b>e||ba.length)throw new RangeError(\"Index out of range\");}\nz.prototype.writeUIntLE=function(a,b,c,d){a=+a;b|=0;c|=0;d||E(this,a,b,c,Math.pow(2,8*c)-1,0);d=1;var e=0;for(this[b]=a&255;++eb&&(b=65535+b+1);for(var e=0,f=Math.min(a.length-c,2);e>>8*(d?e:1-e)}z.prototype.writeUInt16LE=function(a,b,c){a=+a;b|=0;c||E(this,a,b,2,65535,0);z.TYPED_ARRAY_SUPPORT?(this[b]=a&255,this[b+1]=a>>>8):bb(this,a,b,!0);return b+2};z.prototype.writeUInt16BE=function(a,b,c){a=+a;b|=0;c||E(this,a,b,2,65535,0);z.TYPED_ARRAY_SUPPORT?(this[b]=a>>>8,this[b+1]=a&255):bb(this,a,b,!1);return b+2};\nfunction cb(a,b,c,d){0>b&&(b=4294967295+b+1);for(var e=0,f=Math.min(a.length-c,4);e>>8*(d?e:3-e)&255}z.prototype.writeUInt32LE=function(a,b,c){a=+a;b|=0;c||E(this,a,b,4,4294967295,0);z.TYPED_ARRAY_SUPPORT?(this[b+3]=a>>>24,this[b+2]=a>>>16,this[b+1]=a>>>8,this[b]=a&255):cb(this,a,b,!0);return b+4};\nz.prototype.writeUInt32BE=function(a,b,c){a=+a;b|=0;c||E(this,a,b,4,4294967295,0);z.TYPED_ARRAY_SUPPORT?(this[b]=a>>>24,this[b+1]=a>>>16,this[b+2]=a>>>8,this[b+3]=a&255):cb(this,a,b,!1);return b+4};z.prototype.writeIntLE=function(a,b,c,d){a=+a;b|=0;d||(d=Math.pow(2,8*c-1),E(this,a,b,c,d-1,-d));d=0;var e=1,f=0;for(this[b]=a&255;++da&&0===f&&0!==this[b+d-1]&&(f=1),this[b+d]=(a/e>>0)-f&255;return b+c};\nz.prototype.writeIntBE=function(a,b,c,d){a=+a;b|=0;d||(d=Math.pow(2,8*c-1),E(this,a,b,c,d-1,-d));d=c-1;var e=1,f=0;for(this[b+d]=a&255;0<=--d&&(e*=256);)0>a&&0===f&&0!==this[b+d+1]&&(f=1),this[b+d]=(a/e>>0)-f&255;return b+c};z.prototype.writeInt8=function(a,b,c){a=+a;b|=0;c||E(this,a,b,1,127,-128);z.TYPED_ARRAY_SUPPORT||(a=Math.floor(a));0>a&&(a=255+a+1);this[b]=a&255;return b+1};\nz.prototype.writeInt16LE=function(a,b,c){a=+a;b|=0;c||E(this,a,b,2,32767,-32768);z.TYPED_ARRAY_SUPPORT?(this[b]=a&255,this[b+1]=a>>>8):bb(this,a,b,!0);return b+2};z.prototype.writeInt16BE=function(a,b,c){a=+a;b|=0;c||E(this,a,b,2,32767,-32768);z.TYPED_ARRAY_SUPPORT?(this[b]=a>>>8,this[b+1]=a&255):bb(this,a,b,!1);return b+2};\nz.prototype.writeInt32LE=function(a,b,c){a=+a;b|=0;c||E(this,a,b,4,2147483647,-2147483648);z.TYPED_ARRAY_SUPPORT?(this[b]=a&255,this[b+1]=a>>>8,this[b+2]=a>>>16,this[b+3]=a>>>24):cb(this,a,b,!0);return b+4};z.prototype.writeInt32BE=function(a,b,c){a=+a;b|=0;c||E(this,a,b,4,2147483647,-2147483648);0>a&&(a=4294967295+a+1);z.TYPED_ARRAY_SUPPORT?(this[b]=a>>>24,this[b+1]=a>>>16,this[b+2]=a>>>8,this[b+3]=a&255):cb(this,a,b,!1);return b+4};\nfunction db(a,b,c,d){if(c+d>a.length)throw new RangeError(\"Index out of range\");if(0>c)throw new RangeError(\"Index out of range\");}z.prototype.writeFloatLE=function(a,b,c){c||db(this,a,b,4);ta(this,a,b,!0,23,4);return b+4};z.prototype.writeFloatBE=function(a,b,c){c||db(this,a,b,4);ta(this,a,b,!1,23,4);return b+4};z.prototype.writeDoubleLE=function(a,b,c){c||db(this,a,b,8);ta(this,a,b,!0,52,8);return b+8};z.prototype.writeDoubleBE=function(a,b,c){c||db(this,a,b,8);ta(this,a,b,!1,52,8);return b+8};\nz.prototype.copy=function(a,b,c,d){c||(c=0);d||0===d||(d=this.length);b>=a.length&&(b=a.length);b||(b=0);0b)throw new RangeError(\"targetStart out of bounds\");if(0>c||c>=this.length)throw new RangeError(\"sourceStart out of bounds\");if(0>d)throw new RangeError(\"sourceEnd out of bounds\");d>this.length&&(d=this.length);a.length-be||\n!z.TYPED_ARRAY_SUPPORT)for(d=0;de&&(a=e)}if(void 0!==d&&\"string\"!==typeof d)throw new TypeError(\"encoding must be a string\");if(\"string\"===typeof d&&!z.isEncoding(d))throw new TypeError(\"Unknown encoding: \"+d);}else\"number\"===typeof a&&(a&=255);if(0>b||this.length>>=\n0;c=void 0===c?this.length:c>>>0;a||(a=0);if(\"number\"===typeof a)for(d=b;dc){if(!e){if(56319c){-1<(b-=3)&&f.push(239,191,189);e=c;continue}c=(e-55296<<10|c-56320)+65536}else e&&-1<(b-=3)&&f.push(239,191,189);e=null;if(128>c){if(0>--b)break;f.push(c)}else if(2048>c){if(0>(b-=2))break;f.push(c>>6|192,c&63|128)}else if(65536>c){if(0>(b-=3))break;\nf.push(c>>12|224,c>>6&63|128,c&63|128)}else if(1114112>c){if(0>(b-=4))break;f.push(c>>18|240,c>>12&63|128,c>>6&63|128,c&63|128)}else throw Error(\"Invalid code point\");}return f}function Wa(a){for(var b=[],c=0;ca.length)a=\"\";else for(;0!==a.length%4;)a+=\"=\";oa||pa();var b=a.length;if(0>16&255;d[f++]=g>>8&255;d[f++]=g&255}2===c?(g=y[a.charCodeAt(b)]<<2|\ny[a.charCodeAt(b+1)]>>4,d[f++]=g&255):1===c&&(g=y[a.charCodeAt(b)]<<10|y[a.charCodeAt(b+1)]<<4|y[a.charCodeAt(b+2)]>>2,d[f++]=g>>8&255,d[f++]=g&255);return d}function Va(a,b,c,d){for(var e=0;e=b.length||e>=a.length);++e)b[e+c]=a[e];return e}function Na(a){return null!=a&&(!!a._isBuffer||fb(a)||\"function\"===typeof a.readFloatLE&&\"function\"===typeof a.slice&&fb(a.slice(0,0)))}function fb(a){return!!a.constructor&&\"function\"===typeof a.constructor.isBuffer&&a.constructor.isBuffer(a)}\nvar gb=Object.freeze({__proto__:null,INSPECT_MAX_BYTES:50,kMaxLength:za,Buffer:z,SlowBuffer:function(a){+a!=a&&(a=0);return z.alloc(+a)},isBuffer:Na}),F=u(function(a,b){function c(a){for(var b=[],c=1;cb&&(c--,b+=1E9));return[c,b]},platform:\"browser\",release:{},config:{},uptime:function(){return(new Date-Bb)/1E3}},Db=\"function\"===typeof Object.create?function(a,b){a.super_=b;a.prototype=Object.create(b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}})}:function(a,b){function c(){}a.super_=b;c.prototype=b.prototype;a.prototype=new c;\na.prototype.constructor=a},Eb=/%[sdj%]/g;function Fb(a){if(!Gb(a)){for(var b=[],c=0;c=e)return a;switch(a){case \"%s\":return String(d[c++]);case \"%d\":return Number(d[c++]);case \"%j\":try{return JSON.stringify(d[c++])}catch(h){return\"[Circular]\"}default:return a}});for(var f=d[c];cc)return ac(b)?a.stylize(RegExp.prototype.toString.call(b),\"regexp\"):a.stylize(\"[Object]\",\"special\");a.seen.push(b);e=g?\ndc(a,b,c,f,e):e.map(function(d){return ec(a,b,c,f,d,g)});a.seen.pop();return fc(e,d,h)}function Ub(a,b){if(Jb(b))return a.stylize(\"undefined\",\"undefined\");if(Gb(b))return b=\"'\"+JSON.stringify(b).replace(/^\"|\"$/g,\"\").replace(/'/g,\"\\\\'\").replace(/\\\\\"/g,'\"')+\"'\",a.stylize(b,\"string\");if(gc(b))return a.stylize(\"\"+b,\"number\");if(Ob(b))return a.stylize(\"\"+b,\"boolean\");if(null===b)return a.stylize(\"null\",\"null\")}function Zb(a){return\"[\"+Error.prototype.toString.call(a)+\"]\"}\nfunction dc(a,b,c,d,e){for(var f=[],g=0,h=b.length;ga.seen.indexOf(b.value)?(h=null===c?Rb(a,b.value,null):Rb(a,b.value,c-1),-1a?\"0\"+a.toString(10):a.toString(10)}var jc=\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\".split(\" \");\nfunction kc(){var a=new Date,b=[ic(a.getHours()),ic(a.getMinutes()),ic(a.getSeconds())].join(\":\");return[a.getDate(),jc[a.getMonth()],b].join(\" \")}function Pb(a,b){if(!b||!Hb(b))return a;for(var c=Object.keys(b),d=c.length;d--;)a[c[d]]=b[c[d]];return a}\nvar lc={inherits:Db,_extend:Pb,log:function(){console.log(\"%s - %s\",kc(),Fb.apply(null,arguments))},isBuffer:function(a){return Na(a)},isPrimitive:hc,isFunction:Tb,isError:Vb,isDate:bc,isObject:Hb,isRegExp:ac,isUndefined:Jb,isSymbol:function(a){return\"symbol\"===typeof a},isString:Gb,isNumber:gc,isNullOrUndefined:function(a){return null==a},isNull:function(a){return null===a},isBoolean:Ob,isArray:cc,inspect:H,deprecate:Ib,format:Fb,debuglog:Mb};\nfunction mc(a,b){if(a===b)return 0;for(var c=a.length,d=b.length,e=0,f=Math.min(c,d);e 0 and < 65536\");e(\"ERR_SOCKET_BAD_TYPE\",\"Bad socket type specified. Valid types are: udp4, udp6\");\ne(\"ERR_SOCKET_CANNOT_SEND\",\"Unable to send data\");e(\"ERR_SOCKET_CLOSED\",\"Socket is closed\");e(\"ERR_SOCKET_DGRAM_NOT_RUNNING\",\"Not running\");e(\"ERR_STDERR_CLOSE\",\"process.stderr cannot be closed\");e(\"ERR_STDOUT_CLOSE\",\"process.stdout cannot be closed\");e(\"ERR_STREAM_WRAP\",\"Stream has StringDecoder set or is in objectMode\");e(\"ERR_TLS_CERT_ALTNAME_INVALID\",\"Hostname/IP does not match certificate's altnames: %s\");e(\"ERR_TLS_DH_PARAM_SIZE\",function(a){return\"DH parameter size \"+a+\" is less than 2048\"});\ne(\"ERR_TLS_HANDSHAKE_TIMEOUT\",\"TLS handshake timeout\");e(\"ERR_TLS_RENEGOTIATION_FAILED\",\"Failed to renegotiate\");e(\"ERR_TLS_REQUIRED_SERVER_NAME\",'\"servername\" is required parameter for Server.addContext');e(\"ERR_TLS_SESSION_ATTACK\",\"TSL session renegotiation attack detected\");e(\"ERR_TRANSFORM_ALREADY_TRANSFORMING\",\"Calling transform done when still transforming\");e(\"ERR_TRANSFORM_WITH_LENGTH_0\",\"Calling transform done when writableState.length != 0\");e(\"ERR_UNKNOWN_ENCODING\",\"Unknown encoding: %s\");\ne(\"ERR_UNKNOWN_SIGNAL\",\"Unknown signal: %s\");e(\"ERR_UNKNOWN_STDIN_TYPE\",\"Unknown stdin file type\");e(\"ERR_UNKNOWN_STREAM_TYPE\",\"Unknown stream file type\");e(\"ERR_V8BREAKITERATOR\",\"Full ICU data not installed. See https://github.com/nodejs/node/wiki/Intl\")});t(Pc);\nvar K=u(function(a,b){Object.defineProperty(b,\"__esModule\",{value:!0});b.ENCODING_UTF8=\"utf8\";b.assertEncoding=function(a){if(a&&!F.Buffer.isEncoding(a))throw new Pc.TypeError(\"ERR_INVALID_OPT_VALUE_ENCODING\",a);};b.strToEncoding=function(a,d){return d&&d!==b.ENCODING_UTF8?\"buffer\"===d?new F.Buffer(a):(new F.Buffer(a)).toString(d):a}});t(K);\nvar Qc=u(function(a,b){Object.defineProperty(b,\"__esModule\",{value:!0});var c=w.constants.S_IFMT,d=w.constants.S_IFDIR,e=w.constants.S_IFREG,f=w.constants.S_IFBLK,g=w.constants.S_IFCHR,h=w.constants.S_IFLNK,k=w.constants.S_IFIFO,p=w.constants.S_IFSOCK;a=function(){function a(){this.name=\"\";this.mode=0}a.build=function(b,c){var d=new a,e=b.getNode().mode;d.name=K.strToEncoding(b.getName(),c);d.mode=e;return d};a.prototype._checkModeProperty=function(a){return(this.mode&c)===a};a.prototype.isDirectory=\nfunction(){return this._checkModeProperty(d)};a.prototype.isFile=function(){return this._checkModeProperty(e)};a.prototype.isBlockDevice=function(){return this._checkModeProperty(f)};a.prototype.isCharacterDevice=function(){return this._checkModeProperty(g)};a.prototype.isSymbolicLink=function(){return this._checkModeProperty(h)};a.prototype.isFIFO=function(){return this._checkModeProperty(k)};a.prototype.isSocket=function(){return this._checkModeProperty(p)};return a}();b.Dirent=a;b.default=a});\nt(Qc);function Rc(a,b){for(var c=0,d=a.length-1;0<=d;d--){var e=a[d];\".\"===e?a.splice(d,1):\"..\"===e?(a.splice(d,1),c++):c&&(a.splice(d,1),c--)}if(b)for(;c--;c)a.unshift(\"..\");return a}var Sc=/^(\\/?|)([\\s\\S]*?)((?:\\.{1,2}|[^\\/]+?|)(\\.[^.\\/]*|))(?:[\\/]*)$/;\nfunction Tc(){for(var a=\"\",b=!1,c=arguments.length-1;-1<=c&&!b;c--){var d=0<=c?arguments[c]:\"/\";if(\"string\"!==typeof d)throw new TypeError(\"Arguments to path.resolve must be strings\");d&&(a=d+\"/\"+a,b=\"/\"===d.charAt(0))}a=Rc(Uc(a.split(\"/\"),function(a){return!!a}),!b).join(\"/\");return(b?\"/\":\"\")+a||\".\"}function Vc(a){var b=Wc(a),c=\"/\"===Xc(a,-1);(a=Rc(Uc(a.split(\"/\"),function(a){return!!a}),!b).join(\"/\"))||b||(a=\".\");a&&c&&(a+=\"/\");return(b?\"/\":\"\")+a}function Wc(a){return\"/\"===a.charAt(0)}\nfunction Yc(a,b){function c(a){for(var b=0;bc?[]:a.slice(b,c-b+1)}a=Tc(a).substr(1);b=Tc(b).substr(1);a=c(a.split(\"/\"));b=c(b.split(\"/\"));for(var d=Math.min(a.length,b.length),e=d,f=0;fb&&(b=a.length+b);return a.substr(b,c)},$c=u(function(a,b){Object.defineProperty(b,\"__esModule\",{value:!0});a=\"function\"===typeof setImmediate?setImmediate.bind(l):setTimeout.bind(l);b.default=a});t($c);\nvar L=u(function(a,b){function c(){var a=Cb||{};a.getuid||(a.getuid=function(){return 0});a.getgid||(a.getgid=function(){return 0});a.cwd||(a.cwd=function(){return\"/\"});a.nextTick||(a.nextTick=$c.default);a.emitWarning||(a.emitWarning=function(a,b){console.warn(\"\"+b+(b?\": \":\"\")+a)});a.env||(a.env={});return a}Object.defineProperty(b,\"__esModule\",{value:!0});b.createProcess=c;b.default=c()});t(L);function ad(){}ad.prototype=Object.create(null);function O(){O.init.call(this)}O.EventEmitter=O;\nO.usingDomains=!1;O.prototype.domain=void 0;O.prototype._events=void 0;O.prototype._maxListeners=void 0;O.defaultMaxListeners=10;O.init=function(){this.domain=null;this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new ad,this._eventsCount=0);this._maxListeners=this._maxListeners||void 0};O.prototype.setMaxListeners=function(a){if(\"number\"!==typeof a||0>a||isNaN(a))throw new TypeError('\"n\" argument must be a positive number');this._maxListeners=a;return this};\nO.prototype.getMaxListeners=function(){return void 0===this._maxListeners?O.defaultMaxListeners:this._maxListeners};\nO.prototype.emit=function(a){var b,c;var d=\"error\"===a;if(b=this._events)d=d&&null==b.error;else if(!d)return!1;var e=this.domain;if(d){b=arguments[1];if(e)b||(b=Error('Uncaught, unspecified \"error\" event')),b.domainEmitter=this,b.domain=e,b.domainThrown=!1,e.emit(\"error\",b);else{if(b instanceof Error)throw b;e=Error('Uncaught, unspecified \"error\" event. ('+b+\")\");e.context=b;throw e;}return!1}e=b[a];if(!e)return!1;b=\"function\"===typeof e;var f=arguments.length;switch(f){case 1:if(b)e.call(this);\nelse for(b=e.length,e=bd(e,b),d=0;dc&&(f.warned=!0,c=Error(\"Possible EventEmitter memory leak detected. \"+f.length+\n\" \"+b+\" listeners added. Use emitter.setMaxListeners() to increase limit\"),c.name=\"MaxListenersExceededWarning\",c.emitter=a,c.type=b,c.count=f.length,\"function\"===typeof console.warn?console.warn(c):console.log(c))):(e[b]=c,++a._eventsCount);return a}O.prototype.addListener=function(a,b){return cd(this,a,b,!1)};O.prototype.on=O.prototype.addListener;O.prototype.prependListener=function(a,b){return cd(this,a,b,!0)};\nfunction dd(a,b,c){function d(){a.removeListener(b,d);e||(e=!0,c.apply(a,arguments))}var e=!1;d.listener=c;return d}O.prototype.once=function(a,b){if(\"function\"!==typeof b)throw new TypeError('\"listener\" argument must be a function');this.on(a,dd(this,a,b));return this};O.prototype.prependOnceListener=function(a,b){if(\"function\"!==typeof b)throw new TypeError('\"listener\" argument must be a function');this.prependListener(a,dd(this,a,b));return this};\nO.prototype.removeListener=function(a,b){var c;if(\"function\"!==typeof b)throw new TypeError('\"listener\" argument must be a function');var d=this._events;if(!d)return this;var e=d[a];if(!e)return this;if(e===b||e.listener&&e.listener===b)0===--this._eventsCount?this._events=new ad:(delete d[a],d.removeListener&&this.emit(\"removeListener\",a,e.listener||b));else if(\"function\"!==typeof e){var f=-1;for(c=e.length;0\nf)return this;if(1===e.length){e[0]=void 0;if(0===--this._eventsCount)return this._events=new ad,this;delete d[a]}else{c=f+1;for(var h=e.length;cthis.buf.length){var e=F.bufferAllocUnsafe(d+c);this.buf.copy(e,0,0,this.buf.length);this.buf=e}a.copy(this.buf,d,b,b+c);this.touch();return c};b.prototype.read=function(a,b,c,d){void 0===b&&(b=0);void 0===c&&(c=a.byteLength);\nvoid 0===d&&(d=0);this.buf||(this.buf=F.bufferAllocUnsafe(0));c>a.byteLength&&(c=a.byteLength);c+d>this.buf.length&&(c=this.buf.length-d);this.buf.copy(a,b,d,d+c);return c};b.prototype.truncate=function(a){void 0===a&&(a=0);if(a)if(this.buf||(this.buf=F.bufferAllocUnsafe(0)),a<=this.buf.length)this.buf=this.buf.slice(0,a);else{var b=F.bufferAllocUnsafe(0);this.buf.copy(b);b.fill(0,a)}else this.buf=F.bufferAllocUnsafe(0);this.touch()};b.prototype.chmod=function(a){this.perm=a;this.mode=this.mode&-512|\na;this.touch()};b.prototype.chown=function(a,b){this.uid=a;this.gid=b;this.touch()};b.prototype.touch=function(){this.mtime=new Date;this.emit(\"change\",this)};b.prototype.canRead=function(a,b){void 0===a&&(a=L.default.getuid());void 0===b&&(b=L.default.getgid());return this.perm&4||b===this.gid&&this.perm&32||a===this.uid&&this.perm&256?!0:!1};b.prototype.canWrite=function(a,b){void 0===a&&(a=L.default.getuid());void 0===b&&(b=L.default.getgid());return this.perm&2||b===this.gid&&this.perm&16||a===\nthis.uid&&this.perm&128?!0:!1};b.prototype.del=function(){this.emit(\"delete\",this)};b.prototype.toJSON=function(){return{ino:this.ino,uid:this.uid,gid:this.gid,atime:this.atime.getTime(),mtime:this.mtime.getTime(),ctime:this.ctime.getTime(),perm:this.perm,mode:this.mode,nlink:this.nlink,symlink:this.symlink,data:this.getString()}};return b}(O.EventEmitter);b.Node=a;a=function(a){function d(b,c,d){var e=a.call(this)||this;e.children={};e.steps=[];e.ino=0;e.length=0;e.vol=b;e.parent=c;e.steps=c?c.steps.concat([d]):\n[d];return e}c(d,a);d.prototype.setNode=function(a){this.node=a;this.ino=a.ino};d.prototype.getNode=function(){return this.node};d.prototype.createChild=function(a,b){void 0===b&&(b=this.vol.createNode());var c=new d(this.vol,this,a);c.setNode(b);b.isDirectory();this.setChild(a,c);return c};d.prototype.setChild=function(a,b){void 0===b&&(b=new d(this.vol,this,a));this.children[a]=b;b.parent=this;this.length++;this.emit(\"child:add\",b,this);return b};d.prototype.deleteChild=function(a){delete this.children[a.getName()];\nthis.length--;this.emit(\"child:delete\",a,this)};d.prototype.getChild=function(a){if(Object.hasOwnProperty.call(this.children,a))return this.children[a]};d.prototype.getPath=function(){return this.steps.join(b.SEP)};d.prototype.getName=function(){return this.steps[this.steps.length-1]};d.prototype.walk=function(a,b,c){void 0===b&&(b=a.length);void 0===c&&(c=0);if(c>=a.length||c>=b)return this;var d=this.getChild(a[c]);return d?d.walk(a,b,c+1):null};d.prototype.toJSON=function(){return{steps:this.steps,\nino:this.ino,children:Object.keys(this.children)}};return d}(O.EventEmitter);b.Link=a;a=function(){function a(a,b,c,d){this.position=0;this.link=a;this.node=b;this.flags=c;this.fd=d}a.prototype.getString=function(){return this.node.getString()};a.prototype.setString=function(a){this.node.setString(a)};a.prototype.getBuffer=function(){return this.node.getBuffer()};a.prototype.setBuffer=function(a){this.node.setBuffer(a)};a.prototype.getSize=function(){return this.node.getSize()};a.prototype.truncate=\nfunction(a){this.node.truncate(a)};a.prototype.seekTo=function(a){this.position=a};a.prototype.stats=function(){return ka.default.build(this.node)};a.prototype.write=function(a,b,c,d){void 0===b&&(b=0);void 0===c&&(c=a.length);\"number\"!==typeof d&&(d=this.position);this.flags&h&&(d=this.getSize());a=this.node.write(a,b,c,d);this.position=d+a;return a};a.prototype.read=function(a,b,c,d){void 0===b&&(b=0);void 0===c&&(c=a.byteLength);\"number\"!==typeof d&&(d=this.position);a=this.node.read(a,b,c,d);\nthis.position=d+a;return a};a.prototype.chmod=function(a){this.node.chmod(a)};a.prototype.chown=function(a,b){this.node.chown(a,b)};return a}();b.File=a});t(fd);var gd=fd.Node,hd=u(function(a,b){Object.defineProperty(b,\"__esModule\",{value:!0});b.default=function(a,b,e){var c=setTimeout.apply(null,arguments);c&&\"object\"===typeof c&&\"function\"===typeof c.unref&&c.unref();return c}});t(hd);function id(){this.tail=this.head=null;this.length=0}\nid.prototype.push=function(a){a={data:a,next:null};0>>0);for(var b=this.head,c=0;b;)b.data.copy(a,c),c+=b.data.length,b=b.next;return a};\nvar jd=z.isEncoding||function(a){switch(a&&a.toLowerCase()){case \"hex\":case \"utf8\":case \"utf-8\":case \"ascii\":case \"binary\":case \"base64\":case \"ucs2\":case \"ucs-2\":case \"utf16le\":case \"utf-16le\":case \"raw\":return!0;default:return!1}};\nfunction kd(a){this.encoding=(a||\"utf8\").toLowerCase().replace(/[-_]/,\"\");if(a&&!jd(a))throw Error(\"Unknown encoding: \"+a);switch(this.encoding){case \"utf8\":this.surrogateSize=3;break;case \"ucs2\":case \"utf16le\":this.surrogateSize=2;this.detectIncompleteChar=ld;break;case \"base64\":this.surrogateSize=3;this.detectIncompleteChar=md;break;default:this.write=nd;return}this.charBuffer=new z(6);this.charLength=this.charReceived=0}\nkd.prototype.write=function(a){for(var b=\"\";this.charLength;){b=a.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:a.length;a.copy(this.charBuffer,this.charReceived,0,b);this.charReceived+=b;if(this.charReceived=c)this.charLength+=this.surrogateSize,b=\"\";else{this.charReceived=this.charLength=0;if(0===a.length)return b;\nbreak}}this.detectIncompleteChar(a);var d=a.length;this.charLength&&(a.copy(this.charBuffer,0,a.length-this.charReceived,d),d-=this.charReceived);b+=a.toString(this.encoding,0,d);d=b.length-1;c=b.charCodeAt(d);return 55296<=c&&56319>=c?(c=this.surrogateSize,this.charLength+=c,this.charReceived+=c,this.charBuffer.copy(this.charBuffer,c,0,c),a.copy(this.charBuffer,0,0,c),b.substring(0,d)):b};\nkd.prototype.detectIncompleteChar=function(a){for(var b=3<=a.length?3:a.length;0>5){this.charLength=2;break}if(2>=b&&14==c>>4){this.charLength=3;break}if(3>=b&&30==c>>3){this.charLength=4;break}}this.charReceived=b};kd.prototype.end=function(a){var b=\"\";a&&a.length&&(b=this.write(a));this.charReceived&&(a=this.encoding,b+=this.charBuffer.slice(0,this.charReceived).toString(a));return b};function nd(a){return a.toString(this.encoding)}\nfunction ld(a){this.charLength=(this.charReceived=a.length%2)?2:0}function md(a){this.charLength=(this.charReceived=a.length%3)?3:0}P.ReadableState=od;var Q=Mb(\"stream\");Db(P,O);function pd(a,b,c){if(\"function\"===typeof a.prependListener)return a.prependListener(b,c);if(a._events&&a._events[b])Array.isArray(a._events[b])?a._events[b].unshift(c):a._events[b]=[c,a._events[b]];else a.on(b,c)}\nfunction od(a,b){a=a||{};this.objectMode=!!a.objectMode;b instanceof V&&(this.objectMode=this.objectMode||!!a.readableObjectMode);b=a.highWaterMark;var c=this.objectMode?16:16384;this.highWaterMark=b||0===b?b:c;this.highWaterMark=~~this.highWaterMark;this.buffer=new id;this.length=0;this.pipes=null;this.pipesCount=0;this.flowing=null;this.reading=this.endEmitted=this.ended=!1;this.sync=!0;this.resumeScheduled=this.readableListening=this.emittedReadable=this.needReadable=!1;this.defaultEncoding=a.defaultEncoding||\n\"utf8\";this.ranOut=!1;this.awaitDrain=0;this.readingMore=!1;this.encoding=this.decoder=null;a.encoding&&(this.decoder=new kd(a.encoding),this.encoding=a.encoding)}function P(a){if(!(this instanceof P))return new P(a);this._readableState=new od(a,this);this.readable=!0;a&&\"function\"===typeof a.read&&(this._read=a.read);O.call(this)}\nP.prototype.push=function(a,b){var c=this._readableState;c.objectMode||\"string\"!==typeof a||(b=b||c.defaultEncoding,b!==c.encoding&&(a=z.from(a,b),b=\"\"));return qd(this,c,a,b,!1)};P.prototype.unshift=function(a){return qd(this,this._readableState,a,\"\",!0)};P.prototype.isPaused=function(){return!1===this._readableState.flowing};\nfunction qd(a,b,c,d,e){var f=c;var g=null;Na(f)||\"string\"===typeof f||null===f||void 0===f||b.objectMode||(g=new TypeError(\"Invalid non-string/buffer chunk\"));if(f=g)a.emit(\"error\",f);else if(null===c)b.reading=!1,b.ended||(b.decoder&&(c=b.decoder.end())&&c.length&&(b.buffer.push(c),b.length+=b.objectMode?1:c.length),b.ended=!0,rd(a));else if(b.objectMode||c&&0=a||0===b.length&&b.ended)return 0;if(b.objectMode)return 1;if(a!==a)return b.flowing&&b.length?b.buffer.head.data.length:b.length;if(a>b.highWaterMark){var c=a;8388608<=c?c=8388608:(c--,c|=c>>>1,c|=c>>>2,c|=c>>>4,c|=c>>>8,c|=c>>>16,c++);b.highWaterMark=c}return a<=b.length?a:b.ended?b.length:(b.needReadable=!0,0)}\nP.prototype.read=function(a){Q(\"read\",a);a=parseInt(a,10);var b=this._readableState,c=a;0!==a&&(b.emittedReadable=!1);if(0===a&&b.needReadable&&(b.length>=b.highWaterMark||b.ended))return Q(\"read: emitReadable\",b.length,b.ended),0===b.length&&b.ended?Jd(this):rd(this),null;a=td(a,b);if(0===a&&b.ended)return 0===b.length&&Jd(this),null;var d=b.needReadable;Q(\"need readable\",d);if(0===b.length||b.length-a=b.length)c=b.decoder?b.buffer.join(\"\"):1===b.buffer.length?b.buffer.head.data:b.buffer.concat(b.length),b.buffer.clear();else{c=b.buffer;b=b.decoder;if(af.length?f.length:a;e=g===f.length?e+f:e+f.slice(0,\na);a-=g;if(0===a){g===f.length?(++d,c.head=b.next?b.next:c.tail=null):(c.head=b,b.data=f.slice(g));break}++d}c.length-=d;c=e}else{b=z.allocUnsafe(a);d=c.head;e=1;d.data.copy(b);for(a-=d.data.length;d=d.next;){f=d.data;g=a>f.length?f.length:a;f.copy(b,b.length-a,0,g);a-=g;if(0===a){g===f.length?(++e,c.head=d.next?d.next:c.tail=null):(c.head=d,d.data=f.slice(g));break}++e}c.length-=e;c=b}b=c}c=b}return c}\nfunction Jd(a){var b=a._readableState;if(0arguments.length?a:ke.apply(null,[a].concat(je.call(arguments,2)))}},me=u(function(a,b){function c(a,b,c){void 0===c&&(c=function(a){return a});return function(){for(var e=[],f=0;f= 0x80 (not a basic code point)\",\"invalid-input\":\"Invalid input\"},qe=Math.floor,re=String.fromCharCode;\nfunction se(a,b){var c=a.split(\"@\"),d=\"\";1a)-((0!=b)<<5)}\nfunction ue(a){return se(a,function(a){if(ne.test(a)){var b;var d=[];var e=[];var f=0;for(b=a.length;f=g&&fn&&d.push(re(n))}for((f=b=d.length)&&d.push(\"-\");f=e&&nqe((2147483647-k)/B))throw new RangeError(pe.overflow);\nk+=(q-e)*B;e=q;for(g=0;g=p+26?26:q-p;if(m>1;for(k+=qe(k/p);455b&&(d=b);for(b=0;b\"` \\r\\n\\t'.split(\"\")),Ke=[\"'\"].concat(Je),Le=[\"%\",\"/\",\"?\",\";\",\"#\"].concat(Ke),Me=[\"/\",\"?\",\"#\"],Ne=255,Oe=/^[+a-z0-9A-Z_-]{0,63}$/,Pe=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Qe={javascript:!0,\"javascript:\":!0},Re={javascript:!0,\"javascript:\":!0},Se={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,\"http:\":!0,\"https:\":!0,\"ftp:\":!0,\"gopher:\":!0,\"file:\":!0};\nfunction Be(a,b,c){if(a&&Hb(a)&&a instanceof Z)return a;var d=new Z;d.parse(a,b,c);return d}Z.prototype.parse=function(a,b,c){return Te(this,a,b,c)};\nfunction Te(a,b,c,d){if(!Gb(b))throw new TypeError(\"Parameter 'url' must be a string, not \"+typeof b);var e=b.indexOf(\"?\");e=-1!==e&&eNe?\"\":a.hostname.toLowerCase();g||(a.hostname=ue(a.hostname));d=a.port?\":\"+a.port:\"\";a.host=(a.hostname||\"\")+d;\na.href+=a.host;g&&(a.hostname=a.hostname.substr(1,a.hostname.length-2),\"/\"!==e[0]&&(e=\"/\"+e))}if(!Qe[f])for(d=0,b=Ke.length;df.length&&f.unshift(\"\");b.pathname=f.join(\"/\")}b.search=a.search;b.query=a.query;b.host=a.host||\"\";b.auth=a.auth;b.hostname=a.hostname||a.host;b.port=a.port;if(b.pathname||b.search)b.path=(b.pathname||\"\")+(b.search||\"\");b.slashes=\nb.slashes||a.slashes;b.href=b.format();return b}c=b.pathname&&\"/\"===b.pathname.charAt(0);var g=a.host||a.pathname&&\"/\"===a.pathname.charAt(0),h=c=g||c||b.host&&a.pathname;d=b.pathname&&b.pathname.split(\"/\")||[];e=b.protocol&&!Se[b.protocol];f=a.pathname&&a.pathname.split(\"/\")||[];e&&(b.hostname=\"\",b.port=null,b.host&&(\"\"===d[0]?d[0]=b.host:d.unshift(b.host)),b.host=\"\",a.protocol&&(a.hostname=null,a.port=null,a.host&&(\"\"===f[0]?f[0]=a.host:f.unshift(a.host)),a.host=null),c=c&&(\"\"===f[0]||\"\"===d[0]));\nif(g)b.host=a.host||\"\"===a.host?a.host:b.host,b.hostname=a.hostname||\"\"===a.hostname?a.hostname:b.hostname,b.search=a.search,b.query=a.query,d=f;else if(f.length)d||(d=[]),d.pop(),d=d.concat(f),b.search=a.search,b.query=a.query;else if(null!=a.search){e&&(b.hostname=b.host=d.shift(),e=b.host&&0d)d=b;else{for(;c(b,d);)d--;d=b.substr(0,d+1)}return d.replace(/^([a-zA-Z]+:|\\.\\/)/,\"\")}return a}Object.defineProperty(b,\"__esModule\",{value:!0});b.unixify=d;b.correctPath=function(a){return d(a.replace(/^\\\\\\\\\\?\\\\.:\\\\/,\n\"\\\\\"))};var e=\"win32\"===Cb.platform});t(We);\nvar Xe=u(function(a,b){function c(a,b){void 0===b&&(b=L.default.cwd());return cf(b,a)}function d(a,b){return\"function\"===typeof a?[e(),a]:[e(a),q(b)]}function e(a){void 0===a&&(a={});return aa({},df,a)}function f(a){return\"number\"===typeof a?aa({},ud,{mode:a}):aa({},ud,a)}function g(a,b,c,d){void 0===b&&(b=\"\");void 0===c&&(c=\"\");void 0===d&&(d=\"\");var e=\"\";c&&(e=\" '\"+c+\"'\");d&&(e+=\" -> '\"+d+\"'\");switch(a){case \"ENOENT\":return\"ENOENT: no such file or directory, \"+b+e;case \"EBADF\":return\"EBADF: bad file descriptor, \"+\nb+e;case \"EINVAL\":return\"EINVAL: invalid argument, \"+b+e;case \"EPERM\":return\"EPERM: operation not permitted, \"+b+e;case \"EPROTO\":return\"EPROTO: protocol error, \"+b+e;case \"EEXIST\":return\"EEXIST: file already exists, \"+b+e;case \"ENOTDIR\":return\"ENOTDIR: not a directory, \"+b+e;case \"EISDIR\":return\"EISDIR: illegal operation on a directory, \"+b+e;case \"EACCES\":return\"EACCES: permission denied, \"+b+e;case \"ENOTEMPTY\":return\"ENOTEMPTY: directory not empty, \"+b+e;case \"EMFILE\":return\"EMFILE: too many open files, \"+\nb+e;case \"ENOSYS\":return\"ENOSYS: function not implemented, \"+b+e;default:return a+\": error occurred, \"+b+e}}function h(a,b,c,d,e){void 0===b&&(b=\"\");void 0===c&&(c=\"\");void 0===d&&(d=\"\");void 0===e&&(e=Error);b=new e(g(a,b,c,d));b.code=a;return b}function k(a){if(\"number\"===typeof a)return a;if(\"string\"===typeof a){var b=ua[a];if(\"undefined\"!==typeof b)return b}throw new Pc.TypeError(\"ERR_INVALID_OPT_VALUE\",\"flags\",a);}function p(a,b){if(b){var c=typeof b;switch(c){case \"string\":a=aa({},a,{encoding:b});\nbreak;case \"object\":a=aa({},a,b);break;default:throw TypeError(\"Expected options to be either an object or a string, but got \"+c+\" instead\");}}else return a;\"buffer\"!==a.encoding&&K.assertEncoding(a.encoding);return a}function n(a){return function(b){return p(a,b)}}function q(a){if(\"function\"!==typeof a)throw TypeError(fa.CB);return a}function B(a){return function(b,c){return\"function\"===typeof b?[a(),b]:[a(b),q(c)]}}function m(a){if(\"string\"!==typeof a&&!F.Buffer.isBuffer(a)){try{if(!(a instanceof\nFe.URL))throw new TypeError(fa.PATH_STR);}catch(Xa){throw new TypeError(fa.PATH_STR);}if(\"\"!==a.hostname)throw new Pc.TypeError(\"ERR_INVALID_FILE_URL_HOST\",L.default.platform);a=a.pathname;for(var b=0;b>>0!==a)throw TypeError(fa.FD);}function ha(a){if(\"string\"===typeof a&&+a==a)return+a;if(a instanceof Date)return a.getTime()/1E3;if(isFinite(a))return 0>a?Date.now()/1E3:a;throw Error(\"Cannot parse time: \"+a);}function Ha(a){if(\"number\"!==typeof a)throw TypeError(fa.UID);}function Ia(a){if(\"number\"!==typeof a)throw TypeError(fa.GID);}function ef(a){a.emit(\"stop\")}function T(a,b,c){if(!(this instanceof T))return new T(a,b,c);this._vol=\na;c=aa({},p(c,{}));void 0===c.highWaterMark&&(c.highWaterMark=65536);Y.Readable.call(this,c);this.path=m(b);this.fd=void 0===c.fd?null:c.fd;this.flags=void 0===c.flags?\"r\":c.flags;this.mode=void 0===c.mode?438:c.mode;this.start=c.start;this.end=c.end;this.autoClose=void 0===c.autoClose?!0:c.autoClose;this.pos=void 0;this.bytesRead=0;if(void 0!==this.start){if(\"number\"!==typeof this.start)throw new TypeError('\"start\" option must be a Number');if(void 0===this.end)this.end=Infinity;else if(\"number\"!==\ntypeof this.end)throw new TypeError('\"end\" option must be a Number');if(this.start>this.end)throw Error('\"start\" option must be <= \"end\" option');this.pos=this.start}\"number\"!==typeof this.fd&&this.open();this.on(\"end\",function(){this.autoClose&&this.destroy&&this.destroy()})}function ff(){this.close()}function R(a,b,c){if(!(this instanceof R))return new R(a,b,c);this._vol=a;c=aa({},p(c,{}));Y.Writable.call(this,c);this.path=m(b);this.fd=void 0===c.fd?null:c.fd;this.flags=void 0===c.flags?\"w\":c.flags;\nthis.mode=void 0===c.mode?438:c.mode;this.start=c.start;this.autoClose=void 0===c.autoClose?!0:!!c.autoClose;this.pos=void 0;this.bytesWritten=0;if(void 0!==this.start){if(\"number\"!==typeof this.start)throw new TypeError('\"start\" option must be a Number');if(0>this.start)throw Error('\"start\" must be >= zero');this.pos=this.start}c.encoding&&this.setDefaultEncoding(c.encoding);\"number\"!==typeof this.fd&&this.open();this.once(\"finish\",function(){this.autoClose&&this.close()})}var Ja=l&&l.__extends||\nfunction(){function a(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)}return function(b,c){function d(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),Xb=l&&l.__spreadArrays||function(){for(var a=0,b=0,c=arguments.length;b>>0!==a)throw TypeError(fa.FD);a=this.getFileByFd(a);if(!a)throw h(\"EBADF\",b);return a};a.prototype.getNodeByIdOrCreate=function(a,b,c){if(\"number\"===typeof a){a=this.getFileByFd(a);if(!a)throw Error(\"File nto found\");return a.node}var d=xa(a),e=this.getLink(d);if(e)return e.getNode();if(b&U&&(b=this.getLinkParent(d)))return e=\nthis.createLink(b,d[d.length-1],!1,c),e.getNode();throw h(\"ENOENT\",\"getNodeByIdOrCreate\",m(a));};a.prototype.wrapAsync=function(a,b,c){var d=this;q(c);$c.default(function(){try{c(null,a.apply(d,b))}catch(va){c(va)}})};a.prototype._toJSON=function(a,b,c){var d;void 0===a&&(a=this.root);void 0===b&&(b={});var e=!0,r=a.children;a.getNode().isFile()&&(r=(d={},d[a.getName()]=a.parent.getChild(a.getName()),d),a=a.parent);for(var D in r){e=!1;r=a.getChild(D);if(!r)throw Error(\"_toJSON: unexpected undefined\");\nd=r.getNode();d.isFile()?(r=r.getPath(),c&&(r=xd(c,r)),b[r]=d.getString()):d.isDirectory()&&this._toJSON(r,b,c)}a=a.getPath();c&&(a=xd(c,a));a&&e&&(b[a]=null);return b};a.prototype.toJSON=function(a,b,c){void 0===b&&(b={});void 0===c&&(c=!1);var d=[];if(a){a instanceof Array||(a=[a]);for(var e=0;e=this.maxFiles)throw h(\"EMFILE\",\"open\",a.getPath());var d=a;c&&(d=this.resolveSymlinks(a));if(!d)throw h(\"ENOENT\",\"open\",a.getPath());c=d.getNode();if(c.isDirectory()){if((b&(mb|na|Ka))!==mb)throw h(\"EISDIR\",\"open\",a.getPath());}else if(b&gf)throw h(\"ENOTDIR\",\"open\",a.getPath());if(!(b&Ka||c.canRead()))throw h(\"EACCES\",\"open\",a.getPath());a=new this.props.File(a,c,b,this.newFdNumber());this.fds[a.fd]=a;this.openFiles++;b&Za&&a.truncate();return a};\na.prototype.openFile=function(a,b,c,d){void 0===d&&(d=!0);var e=v(a),r=d?this.getResolvedLink(e):this.getLink(e);if(!r&&b&U){var D=this.getResolvedLink(e.slice(0,e.length-1));if(!D)throw h(\"ENOENT\",\"open\",S+e.join(S));b&U&&\"number\"===typeof c&&(r=this.createLink(D,e[e.length-1],!1,c))}if(r)return this.openLink(r,b,d);throw h(\"ENOENT\",\"open\",a);};a.prototype.openBase=function(a,b,c,d){void 0===d&&(d=!0);b=this.openFile(a,b,c,d);if(!b)throw h(\"ENOENT\",\"open\",a);return b.fd};a.prototype.openSync=function(a,\nb,c){void 0===c&&(c=438);c=M(c);a=m(a);b=k(b);return this.openBase(a,b,c)};a.prototype.open=function(a,b,c,d){var e=c;\"function\"===typeof c&&(e=438,d=c);c=M(e||438);a=m(a);b=k(b);this.wrapAsync(this.openBase,[a,b,c],d)};a.prototype.closeFile=function(a){this.fds[a.fd]&&(this.openFiles--,delete this.fds[a.fd],this.releasedFds.push(a.fd))};a.prototype.closeSync=function(a){Ya(a);a=this.getFileByFdOrThrow(a,\"close\");this.closeFile(a)};a.prototype.close=function(a,b){Ya(a);this.wrapAsync(this.closeSync,\n[a],b)};a.prototype.openFileOrGetById=function(a,b,c){if(\"number\"===typeof a){a=this.fds[a];if(!a)throw h(\"ENOENT\");return a}return this.openFile(m(a),b,c)};a.prototype.readBase=function(a,b,c,d,e){return this.getFileByFdOrThrow(a).read(b,Number(c),Number(d),e)};a.prototype.readSync=function(a,b,c,d,e){Ya(a);return this.readBase(a,b,c,d,e)};a.prototype.read=function(a,b,c,d,e,f){var r=this;q(f);if(0===d)return L.default.nextTick(function(){f&&f(null,0,b)});$c.default(function(){try{var D=r.readBase(a,\nb,c,d,e);f(null,D,b)}catch(pf){f(pf)}})};a.prototype.readFileBase=function(a,b,c){var d=\"number\"===typeof a&&a>>>0===a;if(!d){var e=m(a);e=v(e);if((e=this.getResolvedLink(e))&&e.getNode().isDirectory())throw h(\"EISDIR\",\"open\",e.getPath());a=this.openSync(a,b)}try{var r=$b(this.getFileByFdOrThrow(a).getBuffer(),c)}finally{d||this.closeSync(a)}return r};a.prototype.readFileSync=function(a,b){b=zd(b);var c=k(b.flag);return this.readFileBase(a,c,b.encoding)};a.prototype.readFile=function(a,b,c){c=B(zd)(b,\nc);b=c[0];c=c[1];var d=k(b.flag);this.wrapAsync(this.readFileBase,[a,d,b.encoding],c)};a.prototype.writeBase=function(a,b,c,d,e){return this.getFileByFdOrThrow(a,\"write\").write(b,c,d,e)};a.prototype.writeSync=function(a,b,c,d,e){Ya(a);var r=\"string\"!==typeof b;if(r){var D=(c||0)|0;var f=d;c=e}else var Xa=d;b=La(b,Xa);r?\"undefined\"===typeof f&&(f=b.length):(D=0,f=b.length);return this.writeBase(a,b,D,f,c)};a.prototype.write=function(a,b,c,d,e,f){var r=this;Ya(a);var D=typeof b,Xa=typeof c,g=typeof d,\nh=typeof e;if(\"string\"!==D)if(\"function\"===Xa)var k=c;else if(\"function\"===g){var lb=c|0;k=d}else if(\"function\"===h){lb=c|0;var m=d;k=e}else{lb=c|0;m=d;var n=e;k=f}else if(\"function\"===Xa)k=c;else if(\"function\"===g)n=c,k=d;else if(\"function\"===h){n=c;var va=d;k=e}var p=La(b,va);\"string\"!==D?\"undefined\"===typeof m&&(m=p.length):(lb=0,m=p.length);var v=q(k);$c.default(function(){try{var c=r.writeBase(a,p,lb,m,n);\"string\"!==D?v(null,c,p):v(null,c,b)}catch(qf){v(qf)}})};a.prototype.writeFileBase=function(a,\nb,c,d){var e=\"number\"===typeof a;a=e?a:this.openBase(m(a),c,d);d=0;var r=b.length;c=c&$a?void 0:0;try{for(;0=a.nlink&&this.deleteNode(a)};a.prototype.unlinkSync=function(a){a=m(a);this.unlinkBase(a)};a.prototype.unlink=function(a,b){a=m(a);this.wrapAsync(this.unlinkBase,[a],b)};a.prototype.symlinkBase=function(a,b){var c=v(b),d=this.getLinkParent(c);if(!d)throw h(\"ENOENT\",\"symlink\",a,b);c=c[c.length-1];if(d.getChild(c))throw h(\"EEXIST\",\"symlink\",a,b);b=d.createChild(c);b.getNode().makeSymlink(v(a));return b};a.prototype.symlinkSync=function(a,b){a=m(a);b=m(b);\nthis.symlinkBase(a,b)};a.prototype.symlink=function(a,b,c,d){c=q(\"function\"===typeof c?c:d);a=m(a);b=m(b);this.wrapAsync(this.symlinkBase,[a,b],c)};a.prototype.realpathBase=function(a,b){var c=v(a);c=this.getResolvedLink(c);if(!c)throw h(\"ENOENT\",\"realpath\",a);return K.strToEncoding(c.getPath(),b)};a.prototype.realpathSync=function(a,b){return this.realpathBase(m(a),Ed(b).encoding)};a.prototype.realpath=function(a,b,c){c=lf(b,c);b=c[0];c=c[1];a=m(a);this.wrapAsync(this.realpathBase,[a,b.encoding],\nc)};a.prototype.lstatBase=function(a,b){void 0===b&&(b=!1);var c=this.getLink(v(a));if(!c)throw h(\"ENOENT\",\"lstat\",a);return ka.default.build(c.getNode(),b)};a.prototype.lstatSync=function(a,b){return this.lstatBase(m(a),e(b).bigint)};a.prototype.lstat=function(a,b,c){c=d(b,c);b=c[0];c=c[1];this.wrapAsync(this.lstatBase,[m(a),b.bigint],c)};a.prototype.statBase=function(a,b){void 0===b&&(b=!1);var c=this.getResolvedLink(v(a));if(!c)throw h(\"ENOENT\",\"stat\",a);return ka.default.build(c.getNode(),b)};\na.prototype.statSync=function(a,b){return this.statBase(m(a),e(b).bigint)};a.prototype.stat=function(a,b,c){c=d(b,c);b=c[0];c=c[1];this.wrapAsync(this.statBase,[m(a),b.bigint],c)};a.prototype.fstatBase=function(a,b){void 0===b&&(b=!1);a=this.getFileByFd(a);if(!a)throw h(\"EBADF\",\"fstat\");return ka.default.build(a.node,b)};a.prototype.fstatSync=function(a,b){return this.fstatBase(a,e(b).bigint)};a.prototype.fstat=function(a,b,c){b=d(b,c);this.wrapAsync(this.fstatBase,[a,b[0].bigint],b[1])};a.prototype.renameBase=\nfunction(a,b){var c=this.getLink(v(a));if(!c)throw h(\"ENOENT\",\"rename\",a,b);var d=v(b),e=this.getLinkParent(d);if(!e)throw h(\"ENOENT\",\"rename\",a,b);(a=c.parent)&&a.deleteChild(c);c.steps=Xb(e.steps,[d[d.length-1]]);e.setChild(c.getName(),c)};a.prototype.renameSync=function(a,b){a=m(a);b=m(b);this.renameBase(a,b)};a.prototype.rename=function(a,b,c){a=m(a);b=m(b);this.wrapAsync(this.renameBase,[a,b],c)};a.prototype.existsBase=function(a){return!!this.statBase(a)};a.prototype.existsSync=function(a){try{return this.existsBase(m(a))}catch(D){return!1}};\na.prototype.exists=function(a,b){var c=this,d=m(a);if(\"function\"!==typeof b)throw Error(fa.CB);$c.default(function(){try{b(c.existsBase(d))}catch(va){b(!1)}})};a.prototype.accessBase=function(a){this.getLinkOrThrow(a,\"access\")};a.prototype.accessSync=function(a,b){void 0===b&&(b=wd);a=m(a);this.accessBase(a,b|0)};a.prototype.access=function(a,b,c){var d=wd;\"function\"!==typeof b&&(d=b|0,b=q(c));a=m(a);this.wrapAsync(this.accessBase,[a,d],b)};a.prototype.appendFileSync=function(a,b,c){void 0===c&&(c=\nCd);c=Dd(c);c.flag&&a>>>0!==a||(c.flag=\"a\");this.writeFileSync(a,b,c)};a.prototype.appendFile=function(a,b,c,d){d=kf(c,d);c=d[0];d=d[1];c.flag&&a>>>0!==a||(c.flag=\"a\");this.writeFile(a,b,c,d)};a.prototype.readdirBase=function(a,b){var c=v(a);c=this.getResolvedLink(c);if(!c)throw h(\"ENOENT\",\"readdir\",a);if(!c.getNode().isDirectory())throw h(\"ENOTDIR\",\"scandir\",a);if(b.withFileTypes){var d=[];for(e in c.children)(a=c.getChild(e))&&d.push(Qc.default.build(a,b.encoding));Yb||\"buffer\"===b.encoding||d.sort(function(a,\nb){return a.nameb.name?1:0});return d}var e=[];for(d in c.children)e.push(K.strToEncoding(d,b.encoding));Yb||\"buffer\"===b.encoding||e.sort();return e};a.prototype.readdirSync=function(a,b){b=Gd(b);a=m(a);return this.readdirBase(a,b)};a.prototype.readdir=function(a,b,c){c=mf(b,c);b=c[0];c=c[1];a=m(a);this.wrapAsync(this.readdirBase,[a,b],c)};a.prototype.readlinkBase=function(a,b){var c=this.getLinkOrThrow(a,\"readlink\").getNode();if(!c.isSymlink())throw h(\"EINVAL\",\"readlink\",a);a=\nS+c.symlink.join(S);return K.strToEncoding(a,b)};a.prototype.readlinkSync=function(a,b){b=ob(b);a=m(a);return this.readlinkBase(a,b.encoding)};a.prototype.readlink=function(a,b,c){c=yd(b,c);b=c[0];c=c[1];a=m(a);this.wrapAsync(this.readlinkBase,[a,b.encoding],c)};a.prototype.fsyncBase=function(a){this.getFileByFdOrThrow(a,\"fsync\")};a.prototype.fsyncSync=function(a){this.fsyncBase(a)};a.prototype.fsync=function(a,b){this.wrapAsync(this.fsyncBase,[a],b)};a.prototype.fdatasyncBase=function(a){this.getFileByFdOrThrow(a,\n\"fdatasync\")};a.prototype.fdatasyncSync=function(a){this.fdatasyncBase(a)};a.prototype.fdatasync=function(a,b){this.wrapAsync(this.fdatasyncBase,[a],b)};a.prototype.ftruncateBase=function(a,b){this.getFileByFdOrThrow(a,\"ftruncate\").truncate(b)};a.prototype.ftruncateSync=function(a,b){this.ftruncateBase(a,b)};a.prototype.ftruncate=function(a,b,c){var d=\"number\"===typeof b?b:0;b=q(\"number\"===typeof b?c:b);this.wrapAsync(this.ftruncateBase,[a,d],b)};a.prototype.truncateBase=function(a,b){a=this.openSync(a,\n\"r+\");try{this.ftruncateSync(a,b)}finally{this.closeSync(a)}};a.prototype.truncateSync=function(a,b){if(a>>>0===a)return this.ftruncateSync(a,b);this.truncateBase(a,b)};a.prototype.truncate=function(a,b,c){var d=\"number\"===typeof b?b:0;b=q(\"number\"===typeof b?c:b);if(a>>>0===a)return this.ftruncate(a,d,b);this.wrapAsync(this.truncateBase,[a,d],b)};a.prototype.futimesBase=function(a,b,c){a=this.getFileByFdOrThrow(a,\"futimes\").node;a.atime=new Date(1E3*b);a.mtime=new Date(1E3*c)};a.prototype.futimesSync=\nfunction(a,b,c){this.futimesBase(a,ha(b),ha(c))};a.prototype.futimes=function(a,b,c,d){this.wrapAsync(this.futimesBase,[a,ha(b),ha(c)],d)};a.prototype.utimesBase=function(a,b,c){a=this.openSync(a,\"r+\");try{this.futimesBase(a,b,c)}finally{this.closeSync(a)}};a.prototype.utimesSync=function(a,b,c){this.utimesBase(m(a),ha(b),ha(c))};a.prototype.utimes=function(a,b,c,d){this.wrapAsync(this.utimesBase,[m(a),ha(b),ha(c)],d)};a.prototype.mkdirBase=function(a,b){var c=v(a);if(!c.length)throw h(\"EISDIR\",\"mkdir\",\na);var d=this.getLinkParentAsDirOrThrow(a,\"mkdir\");c=c[c.length-1];if(d.getChild(c))throw h(\"EEXIST\",\"mkdir\",a);d.createChild(c,this.createNode(!0,b))};a.prototype.mkdirpBase=function(a,b){a=v(a);for(var c=this.root,d=0;dthis.prev.mtimeMs||a.nlink!==this.prev.nlink?!0:!1};b.prototype.start=function(a,b,c){void 0===b&&(b=!0);void 0===c&&(c=5007);this.filename=\nm(a);this.setTimeout=b?setTimeout:hd.default;this.interval=c;this.prev=this.vol.statSync(this.filename);this.loop()};b.prototype.stop=function(){clearTimeout(this.timeoutRef);L.default.nextTick(ef,this)};return b}(O.EventEmitter);b.StatWatcher=Hd;var N;lc.inherits(T,Y.Readable);b.ReadStream=T;T.prototype.open=function(){var a=this;this._vol.open(this.path,this.flags,this.mode,function(b,c){b?(a.autoClose&&a.destroy&&a.destroy(),a.emit(\"error\",b)):(a.fd=c,a.emit(\"open\",c),a.read())})};T.prototype._read=\nfunction(a){if(\"number\"!==typeof this.fd)return this.once(\"open\",function(){this._read(a)});if(!this.destroyed){if(!N||128>N.length-N.used)N=F.bufferAllocUnsafe(this._readableState.highWaterMark),N.used=0;var b=N,c=Math.min(N.length-N.used,a),d=N.used;void 0!==this.pos&&(c=Math.min(this.end-this.pos+1,c));if(0>=c)return this.push(null);var e=this;this._vol.read(this.fd,N,N.used,c,this.pos,function(a,c){a?(e.autoClose&&e.destroy&&e.destroy(),e.emit(\"error\",a)):(a=null,0