Home
last modified time | relevance | path

Searched refs:uid (Results 1 - 6 of 6) sorted by relevance

/interface/sdk_c/third_party/musl/ndk_musl_include/
H A Dstropts.h118 int uid; member
/interface/sdk_c/third_party/libuv/include/uv_ndk/
H A Duv.h1002 uv_uid_t uid; member
1011 * Set the child process' user id. The user id is supplied in the `uid` field
1122 unsigned long uid; member
1521 uv_uid_t uid,
1527 uv_uid_t uid,
1533 uv_uid_t uid,
/interface/sdk_c/third_party/libuv/include/uv/
H A Dunix.h367 uv_uid_t uid; \
/interface/sdk_c/third_party/musl/ndk_musl_include/sys/
H A Dsocket.h63 uid_t uid; member
/interface/sdk-js/build-tools/dts_parser/package/
H A DJS_API_OPTIMIZE_PLUGIN.js51 var n=r(45443),i=r(40920),a=function(e){if(!(this instanceof a))return new a(e);e=this.options=i.defaults(e,{comment:"",forceUTC:!1,namePrependSlash:!1,store:!1}),this.supports={directory:!0,symlink:!0},this.engine=new n(e)};a.prototype.append=function(e,t,r){this.engine.entry(e,t,r)},a.prototype.finalize=function(){this.engine.finalize()},a.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)},a.prototype.pipe=function(){return this.engine.pipe.apply(this.engine,arguments)},a.prototype.unpipe=function(){return this.engine.unpipe.apply(this.engine,arguments)},e.exports=a},7807:(e,t,r)=>{var n=r(14300).Buffer,i=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];function a(e){if(n.isBuffer(e))return e;var t="function"==typeof n.alloc&&"function"==typeof n.from;if("number"==typeof e)return t?n.alloc(e):new n(e);if("string"==typeof e)return t?n.from(e):new n(e);throw new Error("input must be buffer, number, or string, received "+typeof e)}function o(e,t){e=a(e),n.isBuffer(t)&&(t=t.readUInt32BE(0));for(var r=-1^~~t,o=0;o<e.length;o++)r=i[255&(r^e[o])]^r>>>8;return-1^r}function s(){return e=o.apply(null,arguments),(t=a(4)).writeInt32BE(e,0),t;var e,t}"undefined"!=typeof Int32Array&&(i=new Int32Array(i)),s.signed=function(){return o.apply(null,arguments)},s.unsigned=function(){return o.apply(null,arguments)>>>0},e.exports=s},51261:e=>{var t=e.exports=function(){};t.prototype.getName=function(){},t.prototype.getSize=function(){},t.prototype.getLastModifiedDate=function(){},t.prototype.isDirectory=function(){}},31166:(e,t,r)=>{var n=r(73837).inherits,i=r(11451).Transform,a=r(51261),o=r(68561),s=e.exports=function(e){if(!(this instanceof s))return new s(e);i.call(this,e),this.offset=0,this._archive={finish:!1,finished:!1,processing:!1}};n(s,i),s.prototype._appendBuffer=function(e,t,r){},s.prototype._appendStream=function(e,t,r){},s.prototype._emitErrorCallback=function(e){e&&this.emit("error",e)},s.prototype._finish=function(e){},s.prototype._normalizeEntry=function(e){},s.prototype._transform=function(e,t,r){r(null,e)},s.prototype.entry=function(e,t,r){if(t=t||null,"function"!=typeof r&&(r=this._emitErrorCallback.bind(this)),e instanceof a)if(this._archive.finish||this._archive.finished)r(new Error("unacceptable entry after finish"));else{if(!this._archive.processing){if(this._archive.processing=!0,this._normalizeEntry(e),this._entry=e,t=o.normalizeInputSource(t),Buffer.isBuffer(t))this._appendBuffer(e,t,r);else{if(!o.isStream(t))return this._archive.processing=!1,void r(new Error("input source must be valid Stream or Buffer instance"));this._appendStream(e,t,r)}return this}r(new Error("already processing an entry"))}else r(new Error("not a valid instance of ArchiveEntry"))},s.prototype.finish=function(){this._archive.processing?this._archive.finish=!0:this._finish()},s.prototype.getBytesWritten=function(){return this.offset},s.prototype.write=function(e,t){return e&&(this.offset+=e.length),i.prototype.write.call(this,e,t)}},87135:e=>{e.exports={WORD:4,DWORD:8,EMPTY:Buffer.alloc(0),SHORT:2,SHORT_MASK:65535,SHORT_SHIFT:16,SHORT_ZERO:Buffer.from(Array(2)),LONG:4,LONG_ZERO:Buffer.from(Array(4)),MIN_VERSION_INITIAL:10,MIN_VERSION_DATA_DESCRIPTOR:20,MIN_VERSION_ZIP64:45,VERSION_MADEBY:45,METHOD_STORED:0,METHOD_DEFLATED:8,PLATFORM_UNIX:3,PLATFORM_FAT:0,SIG_LFH:67324752,SIG_DD:134695760,SIG_CFH:33639248,SIG_EOCD:101010256,SIG_ZIP64_EOCD:101075792,SIG_ZIP64_EOCD_LOC:117853008,ZIP64_MAGIC_SHORT:65535,ZIP64_MAGIC:4294967295,ZIP64_EXTRA_ID:1,ZLIB_NO_COMPRESSION:0,ZLIB_BEST_SPEED:1,ZLIB_BEST_COMPRESSION:9,ZLIB_DEFAULT_COMPRESSION:-1,MODE_MASK:4095,DEFAULT_FILE_MODE:33188,DEFAULT_DIR_MODE:16877,EXT_FILE_ATTR_DIR:1106051088,EXT_FILE_ATTR_FILE:2175008800,S_IFMT:61440,S_IFIFO:4096,S_IFCHR:8192,S_IFDIR:16384,S_IFBLK:24576,S_IFREG:32768,S_IFLNK:40960,S_IFSOCK:49152,S_DOS_A:32,S_DOS_D:16,S_DOS_V:8,S_DOS_S:4,S_DOS_H:2,S_DOS_R:1}},54193:(e,t,r)=>{var n=r(93911),i=e.exports=function(){return this instanceof i?(this.descriptor=!1,this.encryption=!1,this.utf8=!1,this.numberOfShannonFanoTrees=0,this.strongEncryption=!1,this.slidingDictionarySize=0,this):new i};i.prototype.encode=function(){return n.getShortBytes((this.descriptor?8:0)|(this.utf8?2048:0)|(this.encryption?1:0)|(this.strongEncryption?64:0))},i.prototype.parse=function(e,t){var r=n.getShortBytesValue(e,t),a=new i;return a.useDataDescriptor(0!=(8&r)),a.useUTF8ForNames(0!=(2048&r)),a.useStrongEncryption(0!=(64&r)),a.useEncryption(0!=(1&r)),a.setSlidingDictionarySize(0!=(2&r)?8192:4096),a.setNumberOfShannonFanoTrees(0!=(4&r)?3:2),a},i.prototype.setNumberOfShannonFanoTrees=function(e){this.numberOfShannonFanoTrees=e},i.prototype.getNumberOfShannonFanoTrees=function(){return this.numberOfShannonFanoTrees},i.prototype.setSlidingDictionarySize=function(e){this.slidingDictionarySize=e},i.prototype.getSlidingDictionarySize=function(){return this.slidingDictionarySize},i.prototype.useDataDescriptor=function(e){this.descriptor=e},i.prototype.usesDataDescriptor=function(){return this.descriptor},i.prototype.useEncryption=function(e){this.encryption=e},i.prototype.usesEncryption=function(){return this.encryption},i.prototype.useStrongEncryption=function(e){this.strongEncryption=e},i.prototype.usesStrongEncryption=function(){return this.strongEncryption},i.prototype.useUTF8ForNames=function(e){this.utf8=e},i.prototype.usesUTF8ForNames=function(){return this.utf8}},14109:e=>{e.exports={PERM_MASK:4095,FILE_TYPE_FLAG:61440,LINK_FLAG:40960,FILE_FLAG:32768,DIR_FLAG:16384,DEFAULT_LINK_PERM:511,DEFAULT_DIR_PERM:493,DEFAULT_FILE_PERM:420}},93911:e=>{var t=e.exports={};t.dateToDos=function(e,t){var r=(t=t||!1)?e.getFullYear():e.getUTCFullYear();return r<1980?2162688:r>=2044?2141175677:r-1980<<25|(t?e.getMonth():e.getUTCMonth())+1<<21|(t?e.getDate():e.getUTCDate())<<16|(t?e.getHours():e.getUTCHours())<<11|(t?e.getMinutes():e.getUTCMinutes())<<5|(t?e.getSeconds():e.getUTCSeconds())/2},t.dosToDate=function(e){return new Date(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1)},t.fromDosTime=function(e){return t.dosToDate(e.readUInt32LE(0))},t.getEightBytes=function(e){var t=Buffer.alloc(8);return t.writeUInt32LE(e%4294967296,0),t.writeUInt32LE(e/4294967296|0,4),t},t.getShortBytes=function(e){var t=Buffer.alloc(2);return t.writeUInt16LE((65535&e)>>>0,0),t},t.getShortBytesValue=function(e,t){return e.readUInt16LE(t)},t.getLongBytes=function(e){var t=Buffer.alloc(4);return t.writeUInt32LE((4294967295&e)>>>0,0),t},t.getLongBytesValue=function(e,t){return e.readUInt32LE(t)},t.toDosTime=function(e){return t.getLongBytes(t.dateToDos(e))}},98483:(e,t,r)=>{var n=r(73837).inherits,i=r(13171),a=r(51261),o=r(54193),s=r(14109),c=r(87135),l=r(93911),u=e.exports=function(e){if(!(this instanceof u))return new u(e);a.call(this),this.platform=c.PLATFORM_FAT,this.method=-1,this.name=null,this.size=0,this.csize=0,this.gpb=new o,this.crc=0,this.time=-1,this.minver=c.MIN_VERSION_INITIAL,this.mode=-1,this.extra=null,this.exattr=0,this.inattr=0,this.comment=null,e&&this.setName(e)};n(u,a),u.prototype.getCentralDirectoryExtra=function(){return this.getExtra()},u.prototype.getComment=function(){return null!==this.comment?this.comment:""},u.prototype.getCompressedSize=function(){return this.csize},u.prototype.getCrc=function(){return this.crc},u.prototype.getExternalAttributes=function(){return this.exattr},u.prototype.getExtra=function(){return null!==this.extra?this.extra:c.EMPTY},u.prototype.getGeneralPurposeBit=function(){return this.gpb},u.prototype.getInternalAttributes=function(){return this.inattr},u.prototype.getLastModifiedDate=function(){return this.getTime()},u.prototype.getLocalFileDataExtra=function(){return this.getExtra()},u.prototype.getMethod=function(){return this.method},u.prototype.getName=function(){return this.name},u.prototype.getPlatform=function(){return this.platform},u.prototype.getSize=function(){return this.size},u.prototype.getTime=function(){return-1!==this.time?l.dosToDate(this.time):-1},u.prototype.getTimeDos=function(){return-1!==this.time?this.time:0},u.prototype.getUnixMode=function(){return this.platform!==c.PLATFORM_UNIX?0:this.getExternalAttributes()>>c.SHORT_SHIFT&c.SHORT_MASK},u.prototype.getVersionNeededToExtract=function(){return this.minver},u.prototype.setComment=function(e){Buffer.byteLength(e)!==e.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.comment=e},u.prototype.setCompressedSize=function(e){if(e<0)throw new Error("invalid entry compressed size");this.csize=e},u.prototype.setCrc=function(e){if(e<0)throw new Error("invalid entry crc32");this.crc=e},u.prototype.setExternalAttributes=function(e){this.exattr=e>>>0},u.prototype.setExtra=function(e){this.extra=e},u.prototype.setGeneralPurposeBit=function(e){if(!(e instanceof o))throw new Error("invalid entry GeneralPurposeBit");this.gpb=e},u.prototype.setInternalAttributes=function(e){this.inattr=e},u.prototype.setMethod=function(e){if(e<0)throw new Error("invalid entry compression method");this.method=e},u.prototype.setName=function(e,t=!1){e=i(e,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,""),t&&(e=`/${e}`),Buffer.byteLength(e)!==e.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.name=e},u.prototype.setPlatform=function(e){this.platform=e},u.prototype.setSize=function(e){if(e<0)throw new Error("invalid entry size");this.size=e},u.prototype.setTime=function(e,t){if(!(e instanceof Date))throw new Error("invalid entry time");this.time=l.dateToDos(e,t)},u.prototype.setUnixMode=function(e){var t=0;t|=(e|=this.isDirectory()?c.S_IFDIR:c.S_IFREG)<<c.SHORT_SHIFT|(this.isDirectory()?c.S_DOS_D:c.S_DOS_A),this.setExternalAttributes(t),this.mode=e&c.MODE_MASK,this.platform=c.PLATFORM_UNIX},u.prototype.setVersionNeededToExtract=function(e){this.minver=e},u.prototype.isDirectory=function(){return"/"===this.getName().slice(-1)},u.prototype.isUnixSymlink=function(){return(this.getUnixMode()&s.FILE_TYPE_FLAG)===s.LINK_FLAG},u.prototype.isZip64=function(){return this.csize>c.ZIP64_MAGIC||this.size>c.ZIP64_MAGIC}},68302:(e,t,r)=>{var n=r(73837).inherits,i=r(7807),{CRC32Stream:a}=r(40864),{DeflateCRC32Stream:o}=r(40864),s=r(31166),c=(r(98483),r(54193),r(87135)),l=(r(68561),r(93911)),u=e.exports=function(e){if(!(this instanceof u))return new u(e);e=this.options=this._defaults(e),s.call(this,e),this._entry=null,this._entries=[],this._archive={centralLength:0,centralOffset:0,comment:"",finish:!1,finished:!1,processing:!1,forceZip64:e.forceZip64,forceLocalTime:e.forceLocalTime}};n(u,s),u.prototype._afterAppend=function(e){this._entries.push(e),e.getGeneralPurposeBit().usesDataDescriptor()&&this._writeDataDescriptor(e),this._archive.processing=!1,this._entry=null,this._archive.finish&&!this._archive.finished&&this._finish()},u.prototype._appendBuffer=function(e,t,r){0===t.length&&e.setMethod(c.METHOD_STORED);var n=e.getMethod();return n===c.METHOD_STORED&&(e.setSize(t.length),e.setCompressedSize(t.length),e.setCrc(i.unsigned(t))),this._writeLocalFileHeader(e),n===c.METHOD_STORED?(this.write(t),this._afterAppend(e),void r(null,e)):n===c.METHOD_DEFLATED?void this._smartStream(e,r).end(t):void r(new Error("compression method "+n+" not implemented"))},u.prototype._appendStream=function(e,t,r){e.getGeneralPurposeBit().useDataDescriptor(!0),e.setVersionNeededToExtract(c.MIN_VERSION_DATA_DESCRIPTOR),this._writeLocalFileHeader(e);var n=this._smartStream(e,r);t.once("error",(function(e){n.emit("error",e),n.end()})),t.pipe(n)},u.prototype._defaults=function(e){return"object"!=typeof e&&(e={}),"object"!=typeof e.zlib&&(e.zlib={}),"number"!=typeof e.zlib.level&&(e.zlib.level=c.ZLIB_BEST_SPEED),e.forceZip64=!!e.forceZip64,e.forceLocalTime=!!e.forceLocalTime,e},u.prototype._finish=function(){this._archive.centralOffset=this.offset,this._entries.forEach(function(e){this._writeCentralFileHeader(e)}.bind(this)),this._archive.centralLength=this.offset-this._archive.centralOffset,this.isZip64()&&this._writeCentralDirectoryZip64(),this._writeCentralDirectoryEnd(),this._archive.processing=!1,this._archive.finish=!0,this._archive.finished=!0,this.end()},u.prototype._normalizeEntry=function(e){-1===e.getMethod()&&e.setMethod(c.METHOD_DEFLATED),e.getMethod()===c.METHOD_DEFLATED&&(e.getGeneralPurposeBit().useDataDescriptor(!0),e.setVersionNeededToExtract(c.MIN_VERSION_DATA_DESCRIPTOR)),-1===e.getTime()&&e.setTime(new Date,this._archive.forceLocalTime),e._offsets={file:0,data:0,contents:0}},u.prototype._smartStream=function(e,t){var r=e.getMethod()===c.METHOD_DEFLATED?new o(this.options.zlib):new a,n=null;return r.once("end",function(){var i=r.digest().readUInt32BE(0);e.setCrc(i),e.setSize(r.size()),e.setCompressedSize(r.size(!0)),this._afterAppend(e),t(n,e)}.bind(this)),r.once("error",(function(e){n=e})),r.pipe(this,{end:!1}),r},u.prototype._writeCentralDirectoryEnd=function(){var e=this._entries.length,t=this._archive.centralLength,r=this._archive.centralOffset;this.isZip64()&&(e=c.ZIP64_MAGIC_SHORT,t=c.ZIP64_MAGIC,r=c.ZIP64_MAGIC),this.write(l.getLongBytes(c.SIG_EOCD)),this.write(c.SHORT_ZERO),this.write(c.SHORT_ZERO),this.write(l.getShortBytes(e)),this.write(l.getShortBytes(e)),this.write(l.getLongBytes(t)),this.write(l.getLongBytes(r));var n=this.getComment(),i=Buffer.byteLength(n);this.write(l.getShortBytes(i)),this.write(n)},u.prototype._writeCentralDirectoryZip64=function(){this.write(l.getLongBytes(c.SIG_ZIP64_EOCD)),this.write(l.getEightBytes(44)),this.write(l.getShortBytes(c.MIN_VERSION_ZIP64)),this.write(l.getShortBytes(c.MIN_VERSION_ZIP64)),this.write(c.LONG_ZERO),this.write(c.LONG_ZERO),this.write(l.getEightBytes(this._entries.length)),this.write(l.getEightBytes(this._entries.length)),this.write(l.getEightBytes(this._archive.centralLength)),this.write(l.getEightBytes(this._archive.centralOffset)),this.write(l.getLongBytes(c.SIG_ZIP64_EOCD_LOC)),this.write(c.LONG_ZERO),this.write(l.getEightBytes(this._archive.centralOffset+this._archive.centralLength)),this.write(l.getLongBytes(1))},u.prototype._writeCentralFileHeader=function(e){var t=e.getGeneralPurposeBit(),r=e.getMethod(),n=e._offsets,i=e.getSize(),a=e.getCompressedSize();if(e.isZip64()||n.file>c.ZIP64_MAGIC){i=c.ZIP64_MAGIC,a=c.ZIP64_MAGIC,e.setVersionNeededToExtract(c.MIN_VERSION_ZIP64);var o=Buffer.concat([l.getShortBytes(c.ZIP64_EXTRA_ID),l.getShortBytes(24),l.getEightBytes(e.getSize()),l.getEightBytes(e.getCompressedSize()),l.getEightBytes(n.file)],28);e.setExtra(o)}this.write(l.getLongBytes(c.SIG_CFH)),this.write(l.getShortBytes(e.getPlatform()<<8|c.VERSION_MADEBY)),this.write(l.getShortBytes(e.getVersionNeededToExtract())),this.write(t.encode()),this.write(l.getShortBytes(r)),this.write(l.getLongBytes(e.getTimeDos())),this.write(l.getLongBytes(e.getCrc())),this.write(l.getLongBytes(a)),this.write(l.getLongBytes(i));var s=e.getName(),u=e.getComment(),d=e.getCentralDirectoryExtra();t.usesUTF8ForNames()&&(s=Buffer.from(s),u=Buffer.from(u)),this.write(l.getShortBytes(s.length)),this.write(l.getShortBytes(d.length)),this.write(l.getShortBytes(u.length)),this.write(c.SHORT_ZERO),this.write(l.getShortBytes(e.getInternalAttributes())),this.write(l.getLongBytes(e.getExternalAttributes())),n.file>c.ZIP64_MAGIC?this.write(l.getLongBytes(c.ZIP64_MAGIC)):this.write(l.getLongBytes(n.file)),this.write(s),this.write(d),this.write(u)},u.prototype._writeDataDescriptor=function(e){this.write(l.getLongBytes(c.SIG_DD)),this.write(l.getLongBytes(e.getCrc())),e.isZip64()?(this.write(l.getEightBytes(e.getCompressedSize())),this.write(l.getEightBytes(e.getSize()))):(this.write(l.getLongBytes(e.getCompressedSize())),this.write(l.getLongBytes(e.getSize())))},u.prototype._writeLocalFileHeader=function(e){var t=e.getGeneralPurposeBit(),r=e.getMethod(),n=e.getName(),i=e.getLocalFileDataExtra();e.isZip64()&&(t.useDataDescriptor(!0),e.setVersionNeededToExtract(c.MIN_VERSION_ZIP64)),t.usesUTF8ForNames()&&(n=Buffer.from(n)),e._offsets.file=this.offset,this.write(l.getLongBytes(c.SIG_LFH)),this.write(l.getShortBytes(e.getVersionNeededToExtract())),this.write(t.encode()),this.write(l.getShortBytes(r)),this.write(l.getLongBytes(e.getTimeDos())),e._offsets.data=this.offset,t.usesDataDescriptor()?(this.write(c.LONG_ZERO),this.write(c.LONG_ZERO),this.write(c.LONG_ZERO)):(this.write(l.getLongBytes(e.getCrc())),this.write(l.getLongBytes(e.getCompressedSize())),this.write(l.getLongBytes(e.getSize()))),this.write(l.getShortBytes(n.length)),this.write(l.getShortBytes(i.length)),this.write(n),this.write(i),e._offsets.contents=this.offset},u.prototype.getComment=function(e){return null!==this._archive.comment?this._archive.comment:""},u.prototype.isZip64=function(){return this._archive.forceZip64||this._entries.length>c.ZIP64_MAGIC_SHORT||this._archive.centralLength>c.ZIP64_MAGIC||this._archive.centralOffset>c.ZIP64_MAGIC},u.prototype.setComment=function(e){this._archive.comment=e}},56614:(e,t,r)=>{e.exports={ArchiveEntry:r(51261),ZipArchiveEntry:r(98483),ArchiveOutputStream:r(31166),ZipArchiveOutputStream:r(68302)}},68561:(e,t,r)=>{var n=r(12781).Stream,i=r(11451).PassThrough,a=e.exports={};a.isStream=function(e){return e instanceof n},a.normalizeInputSource=function(e){if(null===e)return Buffer.alloc(0);if("string"==typeof e)return Buffer.from(e);if(a.isStream(e)&&!e._readableState){var t=new i;return e.pipe(t),t}return e}},5625:(e,t,r)=>{"use strict";const{Transform:n}=r(11451),i=r(34606);e.exports=class extends n{constructor(e){super(e),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0}_transform(e,t,r){e&&(this.checksum=i.buf(e,this.checksum)>>>0,this.rawSize+=e.length),r(null,e)}digest(e){const t=Buffer.allocUnsafe(4);return t.writeUInt32BE(this.checksum>>>0,0),e?t.toString(e):t}hex(){return this.digest("hex").toUpperCase()}size(){return this.rawSize}}},72291:(e,t,r)=>{"use strict";const{DeflateRaw:n}=r(59796),i=r(34606);e.exports=class extends n{constructor(e){super(e),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0,this.compressedSize=0}push(e,t){return e&&(this.compressedSize+=e.length),super.push(e,t)}_transform(e,t,r){e&&(this.checksum=i.buf(e,this.checksum)>>>0,this.rawSize+=e.length),super._transform(e,t,r)}digest(e){const t=Buffer.allocUnsafe(4);return t.writeUInt32BE(this.checksum>>>0,0),e?t.toString(e):t}hex(){return this.digest("hex").toUpperCase()}size(e=!1){return e?this.compressedSize:this.rawSize}}},40864:(e,t,r)=>{"use strict";e.exports={CRC32Stream:r(5625),DeflateCRC32Stream:r(72291)}},84934:(e,t,r)=>{var n=r(73837),i=r(10022),a=r(26029),o=r(11451).Writable,s=r(11451).PassThrough,c=function(){},l=function(e){return(e&=511)&&512-e},u=function(e,t){this._parent=e,this.offset=t,s.call(this,{autoDestroy:!1})};n.inherits(u,s),u.prototype.destroy=function(e){this._parent.destroy(e)};var d=function(e){if(!(this instanceof d))return new d(e);o.call(this,e),e=e||{},this._offset=0,this._buffer=i(),this._missing=0,this._partial=!1,this._onparse=c,this._header=null,this._stream=null,this._overflow=null,this._cb=null,this._locked=!1,this._destroyed=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null;var t=this,r=t._buffer,n=function(){t._continue()},s=function(e){if(t._locked=!1,e)return t.destroy(e);t._stream||n()},p=function(){t._stream=null;var e=l(t._header.size);e?t._parse(e,f):t._parse(512,y),t._locked||n()},f=function(){t._buffer.consume(l(t._header.size)),t._parse(512,y),n()},m=function(){var e=t._header.size;t._paxGlobal=a.decodePax(r.slice(0,e)),r.consume(e),p()},g=function(){var e=t._header.size;t._pax=a.decodePax(r.slice(0,e)),t._paxGlobal&&(t._pax=Object.assign({},t._paxGlobal,t._pax)),r.consume(e),p()},_=function(){var n=t._header.size;this._gnuLongPath=a.decodeLongPath(r.slice(0,n),e.filenameEncoding),r.consume(n),p()},h=function(){var n=t._header.size;this._gnuLongLinkPath=a.decodeLongPath(r.slice(0,n),e.filenameEncoding),r.consume(n),p()},y=function(){var i,o=t._offset;try{i=t._header=a.decode(r.slice(0,512),e.filenameEncoding,e.allowUnknownFormat)}catch(e){t.emit("error",e)}return r.consume(512),i?"gnu-long-path"===i.type?(t._parse(i.size,_),void n()):"gnu-long-link-path"===i.type?(t._parse(i.size,h),void n()):"pax-global-header"===i.type?(t._parse(i.size,m),void n()):"pax-header"===i.type?(t._parse(i.size,g),void n()):(t._gnuLongPath&&(i.name=t._gnuLongPath,t._gnuLongPath=null),t._gnuLongLinkPath&&(i.linkname=t._gnuLongLinkPath,t._gnuLongLinkPath=null),t._pax&&(t._header=i=function(e,t){return t.path&&(e.name=t.path),t.linkpath&&(e.linkname=t.linkpath),t.size&&(e.size=parseInt(t.size,10)),e.pax=t,e}(i,t._pax),t._pax=null),t._locked=!0,i.size&&"directory"!==i.type?(t._stream=new u(t,o),t.emit("entry",i,t._stream,s),t._parse(i.size,p),void n()):(t._parse(512,y),void t.emit("entry",i,function(e,t){var r=new u(e,t);return r.end(),r}(t,o),s))):(t._parse(512,y),void n())};this._onheader=y,this._parse(512,y)};n.inherits(d,o),d.prototype.destroy=function(e){this._destroyed||(this._destroyed=!0,e&&this.emit("error",e),this.emit("close"),this._stream&&this._stream.emit("close"))},d.prototype._parse=function(e,t){this._destroyed||(this._offset+=e,this._missing=e,t===this._onheader&&(this._partial=!1),this._onparse=t)},d.prototype._continue=function(){if(!this._destroyed){var e=this._cb;this._cb=c,this._overflow?this._write(this._overflow,void 0,e):e()}},d.prototype._write=function(e,t,r){if(!this._destroyed){var n=this._stream,i=this._buffer,a=this._missing;if(e.length&&(this._partial=!0),e.length<a)return this._missing-=e.length,this._overflow=null,n?n.write(e,r):(i.append(e),r());this._cb=r,this._missing=0;var o=null;e.length>a&&(o=e.slice(a),e=e.slice(0,a)),n?n.end(e):i.append(e),this._overflow=o,this._onparse()}},d.prototype._final=function(e){if(this._partial)return this.destroy(new Error("Unexpected end of data"));e()},e.exports=d},26029:(e,t)=>{var r=Buffer.alloc,n="0".charCodeAt(0),i=Buffer.from("ustar\0","binary"),a=Buffer.from("00","binary"),o=Buffer.from("ustar ","binary"),s=Buffer.from(" \0","binary"),c=parseInt("7777",8),l=257,u=function(e,t,r,n){for(;r<n;r++)if(e[r]===t)return r;return n},d=function(e){for(var t=256,r=0;r<148;r++)t+=e[r];for(var n=156;n<512;n++)t+=e[n];return t},p=function(e,t){return(e=e.toString(8)).length>t?"7777777777777777777".slice(0,t)+" ":"0000000000000000000".slice(0,t-e.length)+e+" "};var f=function(e,t,r){if(128&(e=e.slice(t,t+r))[t=0])return function(e){var t;if(128===e[0])t=!0;else{if(255!==e[0])return null;t=!1}for(var r=[],n=e.length-1;n>0;n--){var i=e[n];t?r.push(i):r.push(255-i)}var a=0,o=r.length;for(n=0;n<o;n++)a+=r[n]*Math.pow(256,n);return t?a:-1*a}(e);for(;t<e.length&&32===e[t];)t++;for(var n=(i=u(e,32,t,e.length),a=e.length,o=e.length,"number"!=typeof i?o:(i=~~i)>=a?a:i>=0||(i+=a)>=0?i:0);t<n&&0===e[t];)t++;return n===t?0:parseInt(e.slice(t,n).toString(),8);var i,a,o},m=function(e,t,r,n){return e.slice(t,u(e,0,t,t+r)).toString(n)},g=function(e){var t=Buffer.byteLength(e),r=Math.floor(Math.log(t)/Math.log(10))+1;return t+r>=Math.pow(10,r)&&r++,t+r+e};t.decodeLongPath=function(e,t){return m(e,0,e.length,t)},t.encodePax=function(e){var t="";e.name&&(t+=g(" path="+e.name+"\n")),e.linkname&&(t+=g(" linkpath="+e.linkname+"\n"));var r=e.pax;if(r)for(var n in r)t+=g(" "+n+"="+r[n]+"\n");return Buffer.from(t)},t.decodePax=function(e){for(var t={};e.length;){for(var r=0;r<e.length&&32!==e[r];)r++;var n=parseInt(e.slice(0,r).toString(),10);if(!n)return t;var i=e.slice(r+1,n-1).toString(),a=i.indexOf("=");if(-1===a)return t;t[i.slice(0,a)]=i.slice(a+1),e=e.slice(n)}return t},t.encode=function(e){var t=r(512),o=e.name,s="";if(5===e.typeflag&&"/"!==o[o.length-1]&&(o+="/"),Buffer.byteLength(o)!==o.length)return null;for(;Buffer.byteLength(o)>100;){var u=o.indexOf("/");if(-1===u)return null;s+=s?"/"+o.slice(0,u):o.slice(0,u),o=o.slice(u+1)}return Buffer.byteLength(o)>100||Buffer.byteLength(s)>155||e.linkname&&Buffer.byteLength(e.linkname)>100?null:(t.write(o),t.write(p(e.mode&c,6),100),t.write(p(e.uid,6),108),t.write(p(e.gid,6),116),t.write(p(e.size,11),124),t.write(p(e.mtime.getTime()/1e3|0,11),136),t[156]=n+function(e){switch(e){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}(e.type),e.linkname&&t.write(e.linkname,157),i.copy(t,l),a.copy(t,263),e.uname&&t.write(e.uname,265),e.gname&&t.write(e.gname,297),t.write(p(e.devmajor||0,6),329),t.write(p(e.devminor||0,6),337),s&&t.write(s,345),t.write(p(d(t),6),148),t)},t.decode=function(e,t,r){var a=0===e[156]?0:e[156]-n,c=m(e,0,100,t),u=f(e,100,8),p=f(e,108,8),g=f(e,116,8),_=f(e,124,12),h=f(e,136,12),y=function(e){switch(e){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}(a),v=0===e[157]?null:m(e,157,100,t),b=m(e,265,32),k=m(e,297,32),x=f(e,329,8),E=f(e,337,8),S=d(e);if(256===S)return null;if(S!==f(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(0===i.compare(e,l,263))e[345]&&(c=m(e,345,155,t)+"/"+c);else if(0===o.compare(e,l,263)&&0===s.compare(e,263,265));else if(!r)throw new Error("Invalid tar header: unknown format.");return 0===a&&c&&"/"===c[c.length-1]&&(a=5),{name:c,mode:u,uid:p,gid:g,size:_,mtime:new Date(1e3*h),type:y,linkname:v,uname:b,gname:k,devmajor:x,devminor:E}}},60764:(e,t,r)=>{t.extract=r(84934),t.pack=r(25626)},25626:(e,t,r)=>{var n=r(17268),i=r(12840),a=r(94378),o=Buffer.alloc,s=r(11451).Readable,c=r(11451).Writable,l=r(71576).StringDecoder,u=r(26029),d=parseInt("755",8),p=parseInt("644",8),f=o(1024),m=function(){},g=function(e,t){(t&=511)&&e.push(f.slice(0,512-t))};var _=function(e){c.call(this),this.written=0,this._to=e,this._destroyed=!1};a(_,c),_.prototype._write=function(e,t,r){if(this.written+=e.length,this._to.push(e))return r();this._to._drain=r},_.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var h=function(){c.call(this),this.linkname="",this._decoder=new l("utf-8"),this._destroyed=!1};a(h,c),h.prototype._write=function(e,t,r){this.linkname+=this._decoder.write(e),r()},h.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var y=function(){c.call(this),this._destroyed=!1};a(y,c),y.prototype._write=function(e,t,r){r(new Error("No body allowed for this entry"))},y.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var v=function(e){if(!(this instanceof v))return new v(e);s.call(this,e),this._drain=m,this._finalized=!1,this._finalizing=!1,this._destroyed=!1,this._stream=null};a(v,s),v.prototype.entry=function(e,t,r){if(this._stream)throw new Error("already piping an entry");if(!this._finalized&&!this._destroyed){"function"==typeof t&&(r=t,t=null),r||(r=m);var a=this;if(e.size&&"symlink"!==e.type||(e.size=0),e.type||(e.type=function(e){switch(e&n.S_IFMT){case n.S_IFBLK:return"block-device";case n.S_IFCHR:return"character-device";case n.S_IFDIR:return"directory";case n.S_IFIFO:return"fifo";case n.S_IFLNK:return"symlink"}return"file"}(e.mode)),e.mode||(e.mode="directory"===e.type?d:p),e.uid||(e.uid=0),e.gid||(e.gid=0),e.mtime||(e.mtime=new Date),"string"==typeof t&&(t=Buffer.from(t)),Buffer.isBuffer(t)){e.size=t.length,this._encode(e);var o=this.push(t);return g(a,e.size),o?process.nextTick(r):this._drain=r,new y}if("symlink"===e.type&&!e.linkname){var s=new h;return i(s,(function(t){if(t)return a.destroy(),r(t);e.linkname=s.linkname,a._encode(e),r()})),s}if(this._encode(e),"file"!==e.type&&"contiguous-file"!==e.type)return process.nextTick(r),new y;var c=new _(this);return this._stream=c,i(c,(function(t){return a._stream=null,t?(a.destroy(),r(t)):c.written!==e.size?(a.destroy(),r(new Error("size mismatch"))):(g(a,e.size),a._finalizing&&a.finalize(),void r())})),c}},v.prototype.finalize=function(){this._stream?this._finalizing=!0:this._finalized||(this._finalized=!0,this.push(f),this.push(null))},v.prototype.destroy=function(e){this._destroyed||(this._destroyed=!0,e&&this.emit("error",e),this.emit("close"),this._stream&&this._stream.destroy&&this._stream.destroy())},v.prototype._encode=function(e){if(!e.pax){var t=u.encode(e);if(t)return void this.push(t)}this._encodePax(e)},v.prototype._encodePax=function(e){var t=u.encodePax({name:e.name,linkname:e.linkname,pax:e.pax}),r={name:"PaxHeader",mode:e.mode,uid:e.uid,gid:e.gid,size:t.length,mtime:e.mtime,type:"pax-header",linkname:e.linkname&&"PaxHeader",uname:e.uname,gname:e.gname,devmajor:e.devmajor,devminor:e.devminor};this.push(u.encode(r)),this.push(t),g(this,t.length),r.size=e.size,r.type=e.type,this.push(u.encode(r))},v.prototype._read=function(e){var t=this._drain;this._drain=m,t()},e.exports=v},45443:(e,t,r)=>{
59 var n=r(73837).inherits,i=r(56614).ZipArchiveOutputStream,a=r(56614).ZipArchiveEntry,o=r(95558),s=e.exports=function(e){if(!(this instanceof s))return new s(e);(e=this.options=e||{}).zlib=e.zlib||{},i.call(this,e),"number"==typeof e.level&&e.level>=0&&(e.zlib.level=e.level,delete e.level),e.forceZip64||"number"!=typeof e.zlib.level||0!==e.zlib.level||(e.store=!0),e.namePrependSlash=e.namePrependSlash||!1,e.comment&&e.comment.length>0&&this.setComment(e.comment)};n(s,i),s.prototype._normalizeFileData=function(e){var t="directory"===(e=o.defaults(e,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""})).type,r="symlink"===e.type;return e.name&&(e.name=o.sanitizePath(e.name),r||"/"!==e.name.slice(-1)?t&&(e.name+="/"):(t=!0,e.type="directory")),(t||r)&&(e.store=!0),e.date=o.dateify(e.date),e},s.prototype.entry=function(e,t,r){if("function"!=typeof r&&(r=this._emitErrorCallback.bind(this)),"file"===(t=this._normalizeFileData(t)).type||"directory"===t.type||"symlink"===t.type)if("string"==typeof t.name&&0!==t.name.length){if("symlink"!==t.type||"string"==typeof t.linkname){var n=new a(t.name);return n.setTime(t.date,this.options.forceLocalTime),t.namePrependSlash&&n.setName(t.name,!0),t.store&&n.setMethod(0),t.comment.length>0&&n.setComment(t.comment),"symlink"===t.type&&"number"!=typeof t.mode&&(t.mode=40960),"number"==typeof t.mode&&("symlink"===t.type&&(t.mode|=40960),n.setUnixMode(t.mode)),"symlink"===t.type&&"string"==typeof t.linkname&&(e=Buffer.from(t.linkname)),i.prototype.entry.call(this,n,e,r)}r(new Error("entry linkname must be a non-empty string value when type equals symlink"))}else r(new Error("entry name must be a non-empty string value"));else r(new Error(t.type+" entries not currently supported"))},s.prototype.finalize=function(){this.finish()}},22607:(e,t,r)=>{var n=r(20077),i=r(71017),a=r(5800),o=r(61478),s=r(96744),c=r(8146),l=r(12884),u=e.exports={},d=/[\/\\]/g;u.exists=function(){var e=i.join.apply(i,arguments);return n.existsSync(e)},u.expand=function(...e){var t=c(e[0])?e.shift():{},r=Array.isArray(e[0])?e[0]:e;if(0===r.length)return[];var u=function(e,t){var r=[];return a(e).forEach((function(e){var n=0===e.indexOf("!");n&&(e=e.slice(1));var i=t(e);r=n?o(r,i):s(r,i)})),r}(r,(function(e){return l.sync(e,t)}));return t.filter&&(u=u.filter((function(e){e=i.join(t.cwd||"",e);try{return"function"==typeof t.filter?t.filter(e):n.statSync(e)[t.filter]()}catch(e){return!1}}))),u},u.expandMapping=function(e,t,r){r=Object.assign({rename:function(e,t){return i.join(e||"",t)}},r);var n=[],a={};return u.expand(r,e).forEach((function(e){var o=e;r.flatten&&(o=i.basename(o)),r.ext&&(o=o.replace(/(\.[^\/]*)?$/,r.ext));var s=r.rename(t,o,r);r.cwd&&(e=i.join(r.cwd,e)),s=s.replace(d,"/"),e=e.replace(d,"/"),a[s]?a[s].src.push(e):(n.push({src:[e],dest:s}),a[s]=n[n.length-1])})),n},u.normalizeFilesArray=function(e){var t=[];return e.forEach((function(e){("src"in e||"dest"in e)&&t.push(e)})),0===t.length?[]:t=_(t).chain().forEach((function(e){"src"in e&&e.src&&(Array.isArray(e.src)?e.src=a(e.src):e.src=[e.src])})).map((function(e){var t=Object.assign({},e);if(delete t.src,delete t.dest,e.expand)return u.expandMapping(e.src,e.dest,t).map((function(t){var r=Object.assign({},e);return r.orig=Object.assign({},e),r.src=t.src,r.dest=t.dest,["expand","cwd","flatten","rename","ext"].forEach((function(e){delete r[e]})),r}));var r=Object.assign({},e);return r.orig=Object.assign({},e),"src"in r&&Object.defineProperty(r,"src",{enumerable:!0,get:function r(){var n;return"result"in r||(n=e.src,n=Array.isArray(n)?a(n):[n],r.result=u.expand(t,n)),r.result}}),"dest"in r&&(r.dest=e.dest),r})).flatten().value()}},95558:(e,t,r)=>{var n=r(20077),i=r(71017),a=r(84150),o=r(13171),s=r(55402),c=r(12781).Stream,l=r(11451).PassThrough,u=e.exports={};u.file=r(22607),u.collectStream=function(e,t){var r=[],n=0;e.on("error",t),e.on("data",(function(e){r.push(e),n+=e.length})),e.on("end",(function(){var e=Buffer.alloc(n),i=0;r.forEach((function(t){t.copy(e,i),i+=t.length})),t(null,e)}))},u.dateify=function(e){return(e=e||new Date)instanceof Date||(e="string"==typeof e?new Date(e):new Date),e},u.defaults=function(e,t,r){var n=arguments;return n[0]=n[0]||{},s(...n)},u.isStream=function(e){return e instanceof c},u.lazyReadStream=function(e){return new a.Readable((function(){return n.createReadStream(e)}))},u.normalizeInputSource=function(e){return null===e?Buffer.alloc(0):"string"==typeof e?Buffer.from(e):u.isStream(e)?e.pipe(new l):e},u.sanitizePath=function(e){return o(e,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"")},u.trailingSlashIt=function(e){return"/"!==e.slice(-1)?e+"/":e},u.unixifyPath=function(e){return o(e,!1).replace(/^\w+:/,"")},u.walkdir=function(e,t,r){var a=[];"function"==typeof t&&(r=t,t=e),n.readdir(e,(function(o,s){var c,l,d=0;if(o)return r(o);!function o(){if(!(c=s[d++]))return r(null,a);l=i.join(e,c),n.stat(l,(function(e,r){a.push({path:l,relative:i.relative(t,l).replace(/\\/g,"/"),stats:r}),r&&r.isDirectory()?u.walkdir(l,t,(function(e,t){t.forEach((function(e){a.push(e)})),o()})):o()}))}()}))}},77283:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CsvParserStream=t.ParserOptions=t.parseFile=t.parseStream=t.parseString=t.parse=t.FormatterOptions=t.CsvFormatterStream=t.writeToPath=t.writeToString=t.writeToBuffer=t.writeToStream=t.write=t.format=void 0;var n=r(47201);Object.defineProperty(t,"format",{enumerable:!0,get:function(){return n.format}}),Object.defineProperty(t,"write",{enumerable:!0,get:function(){return n.write}}),Object.defineProperty(t,"writeToStream",{enumerable:!0,get:function(){return n.writeToStream}}),Object.defineProperty(t,"writeToBuffer",{enumerable:!0,get:function(){return n.writeToBuffer}}),Object.defineProperty(t,"writeToString",{enumerable:!0,get:function(){return n.writeToString}}),Object.defineProperty(t,"writeToPath",{enumerable:!0,get:function(){return n.writeToPath}}),Object.defineProperty(t,"CsvFormatterStream",{enumerable:!0,get:function(){return n.CsvFormatterStream}}),Object.defineProperty(t,"FormatterOptions",{enumerable:!0,get:function(){return n.FormatterOptions}});var i=r(85455);Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return i.parse}}),Object.defineProperty(t,"parseString",{enumerable:!0,get:function(){return i.parseString}}),Object.defineProperty(t,"parseStream",{enumerable:!0,get:function(){return i.parseStream}}),Object.defineProperty(t,"parseFile",{enumerable:!0,get:function(){return i.parseFile}}),Object.defineProperty(t,"ParserOptions",{enumerable:!0,get:function(){return i.ParserOptions}}),Object.defineProperty(t,"CsvParserStream",{enumerable:!0,get:function(){return i.CsvParserStream}})},17268:(e,t,r)=>{e.exports=r(57147).constants||r(22057)},37334:(e,t,r)=>{e.exports=u,u.realpath=u,u.sync=d,u.realpathSync=d,u.monkeypatch=function(){n.realpath=u,n.realpathSync=d},u.unmonkeypatch=function(){n.realpath=i,n.realpathSync=a};var n=r(57147),i=n.realpath,a=n.realpathSync,o=process.version,s=/^v[0-5]\./.test(o),c=r(47059);function l(e){return e&&"realpath"===e.syscall&&("ELOOP"===e.code||"ENOMEM"===e.code||"ENAMETOOLONG"===e.code)}function u(e,t,r){if(s)return i(e,t,r);"function"==typeof t&&(r=t,t=null),i(e,t,(function(n,i){l(n)?c.realpath(e,t,r):r(n,i)}))}function d(e,t){if(s)return a(e,t);try{return a(e,t)}catch(r){if(l(r))return c.realpathSync(e,t);throw r}}},47059:(e,t,r)=>{var n=r(71017),i="win32"===process.platform,a=r(57147),o=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function s(e){return"function"==typeof e?e:function(){var e;if(o){var t=new Error;e=function(e){e&&(t.message=e.message,r(e=t))}}else e=r;return e;function r(e){if(e){if(process.throwDeprecation)throw e;if(!process.noDeprecation){var t="fs: missing callback "+(e.stack||e.message);process.traceDeprecation?console.trace(t):console.error(t)}}}}()}n.normalize;if(i)var c=/(.*?)(?:[\/\\]+|$)/g;else c=/(.*?)(?:[\/]+|$)/g;if(i)var l=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else l=/^[\/]*/;t.realpathSync=function(e,t){if(e=n.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return t[e];var r,o,s,u,d=e,p={},f={};function m(){var t=l.exec(e);r=t[0].length,o=t[0],s=t[0],u="",i&&!f[s]&&(a.lstatSync(s),f[s]=!0)}for(m();r<e.length;){c.lastIndex=r;var g=c.exec(e);if(u=o,o+=g[0],s=u+g[1],r=c.lastIndex,!(f[s]||t&&t[s]===s)){var _;if(t&&Object.prototype.hasOwnProperty.call(t,s))_=t[s];else{var h=a.lstatSync(s);if(!h.isSymbolicLink()){f[s]=!0,t&&(t[s]=s);continue}var y=null;if(!i){var v=h.dev.toString(32)+":"+h.ino.toString(32);p.hasOwnProperty(v)&&(y=p[v])}null===y&&(a.statSync(s),y=a.readlinkSync(s)),_=n.resolve(u,y),t&&(t[s]=_),i||(p[v]=y)}e=n.resolve(_,e.slice(r)),m()}}return t&&(t[d]=e),e},t.realpath=function(e,t,r){if("function"!=typeof r&&(r=s(t),t=null),e=n.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return process.nextTick(r.bind(null,null,t[e]));var o,u,d,p,f=e,m={},g={};function _(){var t=l.exec(e);o=t[0].length,u=t[0],d=t[0],p="",i&&!g[d]?a.lstat(d,(function(e){if(e)return r(e);g[d]=!0,h()})):process.nextTick(h)}function h(){if(o>=e.length)return t&&(t[f]=e),r(null,e);c.lastIndex=o;var n=c.exec(e);return p=u,u+=n[0],d=p+n[1],o=c.lastIndex,g[d]||t&&t[d]===d?process.nextTick(h):t&&Object.prototype.hasOwnProperty.call(t,d)?b(t[d]):a.lstat(d,y)}function y(e,n){if(e)return r(e);if(!n.isSymbolicLink())return g[d]=!0,t&&(t[d]=d),process.nextTick(h);if(!i){var o=n.dev.toString(32)+":"+n.ino.toString(32);if(m.hasOwnProperty(o))return v(null,m[o],d)}a.stat(d,(function(e){if(e)return r(e);a.readlink(d,(function(e,t){i||(m[o]=t),v(e,t)}))}))}function v(e,i,a){if(e)return r(e);var o=n.resolve(p,i);t&&(t[a]=o),b(o)}function b(t){e=n.resolve(t,e.slice(o)),_()}_()}},98052:(e,t,r)=>{r(95348),r(87937),t.Writer=r(80608),t.$B={Reader:r(49305),Writer:r(93589)},t.Lv={Reader:r(21831),Writer:r(26969)},t.rU={Reader:r(79716),Writer:r(33423)},t._S={Reader:r(63732),Writer:r(14955)},t.Lv.Reader,t.$B.Reader,t.rU.Reader,t._S.Reader,t.Writer.Dir=t.Lv.Writer,t.Writer.File=t.$B.Writer,t.Writer.Link=t.rU.Writer,t.Writer.Proxy=t._S.Writer,r(88818)},95348:(e,t,r)=>{e.exports=i;var n=r(12781).Stream;function i(){n.call(this)}function a(e,t,r){return e instanceof Error||(e=new Error(e)),e.code=e.code||t,e.path=e.path||r.path,e.fstream_type=e.fstream_type||r.type,e.fstream_path=e.fstream_path||r.path,r._path!==r.path&&(e.fstream_unc_path=e.fstream_unc_path||r._path),r.linkpath&&(e.fstream_linkpath=e.fstream_linkpath||r.linkpath),e.fstream_class=e.fstream_class||r.constructor.name,e.fstream_stack=e.fstream_stack||(new Error).stack.split(/\n/).slice(3).map((function(e){return e.replace(/^ {4}at /,"")})),e}r(94378)(i,n),i.prototype.on=function(e,t){return"ready"===e&&this.ready?process.nextTick(t.bind(this)):n.prototype.on.call(this,e,t),this},i.prototype.abort=function(){this._aborted=!0,this.emit("abort")},i.prototype.destroy=function(){},i.prototype.warn=function(e,t){var r=this,n=a(e,t,r);r.listeners("warn")?r.emit("warn",n):console.error("%s %s\npath = %s\nsyscall = %s\nfstream_type = %s\nfstream_path = %s\nfstream_unc_path = %s\nfstream_class = %s\nfstream_stack =\n%s\n",t||"UNKNOWN",n.stack,n.path,n.syscall,n.fstream_type,n.fstream_path,n.fstream_unc_path,n.fstream_class,n.fstream_stack.join("\n"))},i.prototype.info=function(e,t){this.emit("info",e,t)},i.prototype.error=function(e,t,r){var n=a(e,t,this);if(r)throw n;this.emit("error",n)}},88818:e=>{e.exports=function e(t){if(t._collected)return;if(t._paused)return t.on("resume",e.bind(null,t));t._collected=!0,t.pause(),t.on("data",n),t.on("end",n);var r=[];function n(e){"string"==typeof e&&(e=new Buffer(e)),Buffer.isBuffer(e)&&!e.length||r.push(e)}t.on("entry",a);var i=[];function a(t){e(t),i.push(t)}t.on("proxy",(function(e){e.pause()})),t.pipe=(o=t.pipe,function(e){var s=0;return function c(){var l=i[s++];if(!l)return t.removeListener("entry",a),t.removeListener("data",n),t.removeListener("end",n),t.pipe=o,e&&t.pipe(e),r.forEach((function(e){e?t.emit("data",e):t.emit("end")})),void t.resume();l.on("end",c),e?e.add(l):t.emit("entry",l)}(),e});var o}},21831:(e,t,r)=>{e.exports=c;var n=r(20077),i=r(94378),a=r(71017),o=r(87937),s=r(39491).ok;function c(e){var t=this;if(!(t instanceof c))throw new Error("DirReader must be called as constructor.");if("Directory"!==e.type||!e.Directory)throw new Error("Non-directory type "+e.type);t.entries=null,t._index=-1,t._paused=!1,t._length=-1,e.sort&&(this.sort=e.sort),o.call(this,e)}i(c,o),c.prototype._getEntries=function(){var e=this;e._gotEntries||(e._gotEntries=!0,n.readdir(e._path,(function(t,r){if(t)return e.error(t);function n(){e._length=e.entries.length,"function"==typeof e.sort&&(e.entries=e.entries.sort(e.sort.bind(e))),e._read()}e.entries=r,e.emit("entries",r),e._paused?e.once("resume",n):n()})))},c.prototype._read=function(){var e=this;if(!e.entries)return e._getEntries();if(!(e._paused||e._currentEntry||e._aborted))if(e._index++,e._index>=e.entries.length)e._ended||(e._ended=!0,e.emit("end"),e.emit("close"));else{var t=a.resolve(e._path,e.entries[e._index]);s(t!==e._path),s(e.entries[e._index]),e._currentEntry=t,n[e.props.follow?"stat":"lstat"](t,(function(r,n){if(r)return e.error(r);var i=e._proxy||e;n.path=t,n.basename=a.basename(t),n.dirname=a.dirname(t);var s=e.getChildProps.call(i,n);s.path=t,s.basename=a.basename(t),s.dirname=a.dirname(t);var c=o(s,n);e._currentEntry=c,c.on("pause",(function(t){e._paused||c._disowned||e.pause(t)})),c.on("resume",(function(t){e._paused&&!c._disowned&&e.resume(t)})),c.on("stat",(function(t){e.emit("_entryStat",c,t),c._aborted||(c._paused?c.once("resume",(function(){e.emit("entryStat",c,t)})):e.emit("entryStat",c,t))})),c.on("ready",(function t(){if(e._paused)return c.pause(e),e.once("resume",t);"Socket"===c.type?e.emit("socket",c):e.emitEntry(c)}));var l=!1;function u(){l||(l=!0,e.emit("childEnd",c),e.emit("entryEnd",c),e._currentEntry=null,e._paused||e._read())}c.on("close",u),c.on("disown",u),c.on("error",(function(t){c._swallowErrors?(e.warn(t),c.emit("end"),c.emit("close")):e.emit("error",t)})),["child","childEnd","warn"].forEach((function(t){c.on(t,e.emit.bind(e,t))}))}))}},c.prototype.disown=function(e){e.emit("beforeDisown"),e._disowned=!0,e.parent=e.root=null,e===this._currentEntry&&(this._currentEntry=null),e.emit("disown")},c.prototype.getChildProps=function(){return{depth:this.depth+1,root:this.root||this,parent:this,follow:this.follow,filter:this.filter,sort:this.props.sort,hardlinks:this.props.hardlinks}},c.prototype.pause=function(e){var t=this;t._paused||(e=e||t,t._paused=!0,t._currentEntry&&t._currentEntry.pause&&t._currentEntry.pause(e),t.emit("pause",e))},c.prototype.resume=function(e){var t=this;t._paused&&(e=e||t,t._paused=!1,t.emit("resume",e),t._paused||(t._currentEntry?t._currentEntry.resume&&t._currentEntry.resume(e):t._read()))},c.prototype.emitEntry=function(e){this.emit("entry",e),this.emit("child",e)}},26969:(e,t,r)=>{e.exports=c;var n=r(80608),i=r(94378),a=r(81890),o=r(71017),s=r(88818);function c(e){var t=this;t instanceof c||t.error("DirWriter must be called as constructor.",null,!0),"Directory"===e.type&&e.Directory||t.error("Non-directory type "+e.type+" "+JSON.stringify(e),null,!0),n.call(this,e)}i(c,n),c.prototype._create=function(){var e=this;a(e._path,n.dirmode,(function(t){if(t)return e.error(t);e.ready=!0,e.emit("ready"),e._process()}))},c.prototype.write=function(){return!0},c.prototype.end=function(){this._ended=!0,this._process()},c.prototype.add=function(e){var t=this;return s(e),!t.ready||t._currentEntry?(t._buffer.push(e),!1):t._ended?t.error("add after end"):(t._buffer.push(e),t._process(),0===this._buffer.length)},c.prototype._process=function(){var e=this;if(!e._processing){var t=e._buffer.shift();if(!t)return e.emit("drain"),void(e._ended&&e._finish());e._processing=!0,e.emit("entry",t);var r,i=t;do{if((r=i._path||i.path)===e.root._path||r===e._path||r&&0===r.indexOf(e._path))return e._processing=!1,t._collected&&t.pipe(),e._process();i=i.parent}while(i);var a={parent:e,root:e.root||e,type:t.type,depth:e.depth+1};r=t._path||t.path||t.props.path,t.parent&&(r=r.substr(t.parent._path.length+1)),a.path=o.join(e.path,o.join("/",r)),a.filter=e.filter,Object.keys(t.props).forEach((function(e){a.hasOwnProperty(e)||(a[e]=t.props[e])}));var s=e._currentChild=new n(a);s.on("ready",(function(){t.pipe(s),t.resume()})),s.on("error",(function(t){s._swallowErrors?(e.warn(t),s.emit("end"),s.emit("close")):e.emit("error",t)})),s.on("close",(function(){if(c)return;c=!0,e._currentChild=null,e._processing=!1,e._process()}));var c=!1}}},49305:(e,t,r)=>{e.exports=c;var n=r(20077),i=r(94378),a=r(87937),o={EOF:!0},s={CLOSE:!0};function c(e){var t=this;if(!(t instanceof c))throw new Error("FileReader must be called as constructor.");if(!("Link"===e.type&&e.Link||"File"===e.type&&e.File))throw new Error("Non-file type "+e.type);t._buffer=[],t._bytesEmitted=0,a.call(t,e)}i(c,a),c.prototype._getStream=function(){var e=this,t=e._stream=n.createReadStream(e._path,e.props);e.props.blksize&&(t.bufferSize=e.props.blksize),t.on("open",e.emit.bind(e,"open")),t.on("data",(function(t){e._bytesEmitted+=t.length,t.length&&(e._paused||e._buffer.length?(e._buffer.push(t),e._read()):e.emit("data",t))})),t.on("end",(function(){e._paused||e._buffer.length?(e._buffer.push(o),e._read()):e.emit("end"),e._bytesEmitted!==e.props.size&&e.error("Didn't get expected byte count\nexpect: "+e.props.size+"\nactual: "+e._bytesEmitted)})),t.on("close",(function(){e._paused||e._buffer.length?(e._buffer.push(s),e._read()):e.emit("close")})),t.on("error",(function(t){e.emit("error",t)})),e._read()},c.prototype._read=function(){var e=this;if(!e._paused){if(!e._stream)return e._getStream();if(e._buffer.length){for(var t=e._buffer,r=0,n=t.length;r<n;r++){var i=t[r];if(i===o?e.emit("end"):i===s?e.emit("close"):e.emit("data",i),e._paused)return void(e._buffer=t.slice(r))}e._buffer.length=0}}},c.prototype.pause=function(e){var t=this;t._paused||(e=e||t,t._paused=!0,t._stream&&t._stream.pause(),t.emit("pause",e))},c.prototype.resume=function(e){var t=this;t._paused&&(e=e||t,t.emit("resume",e),t._paused=!1,t._stream&&t._stream.resume(),t._read())}},93589:(e,t,r)=>{e.exports=s;var n=r(20077),i=r(80608),a=r(94378),o={};function s(e){var t=this;if(!(t instanceof s))throw new Error("FileWriter must be called as constructor.");if("File"!==e.type||!e.File)throw new Error("Non-file type "+e.type);t._buffer=[],t._bytesWritten=0,i.call(this,e)}a(s,i),s.prototype._create=function(){var e=this;if(!e._stream){var t={};e.props.flags&&(t.flags=e.props.flags),t.mode=i.filemode,e._old&&e._old.blksize&&(t.bufferSize=e._old.blksize),e._stream=n.createWriteStream(e._path,t),e._stream.on("open",(function(){e.ready=!0,e._buffer.forEach((function(t){t===o?e._stream.end():e._stream.write(t)})),e.emit("ready"),e.emit("drain")})),e._stream.on("error",(function(t){e.emit("error",t)})),e._stream.on("drain",(function(){e.emit("drain")})),e._stream.on("close",(function(){e._finish()}))}},s.prototype.write=function(e){var t=this;if(t._bytesWritten+=e.length,!t.ready){if(!Buffer.isBuffer(e)&&"string"!=typeof e)throw new Error("invalid write data");return t._buffer.push(e),!1}var r=t._stream.write(e);return!1===r&&t._stream._queue?t._stream._queue.length<=2:r},s.prototype.end=function(e){var t=this;return e&&t.write(e),t.ready?t._stream.end():(t._buffer.push(o),!1)},s.prototype._finish=function(){var e=this;"number"==typeof e.size&&e._bytesWritten!==e.size&&e.error("Did not get expected byte count.\nexpect: "+e.size+"\nactual: "+e._bytesWritten),i.prototype._finish.call(e)}},82152:e=>{e.exports=function(e){var t,r=["Directory","File","SymbolicLink","Link","BlockDevice","CharacterDevice","FIFO","Socket"];if(e.type&&-1!==r.indexOf(e.type))return e[e.type]=!0,e.type;for(var n=0,i=r.length;n<i;n++){var a=e[t=r[n]]||e["is"+t];if("function"==typeof a&&(a=a.call(e)),a)return e[t]=!0,e.type=t,t}return null}},79716:(e,t,r)=>{e.exports=o;var n=r(20077),i=r(94378),a=r(87937);function o(e){if(!(this instanceof o))throw new Error("LinkReader must be called as constructor.");if(!("Link"===e.type&&e.Link||"SymbolicLink"===e.type&&e.SymbolicLink))throw new Error("Non-link type "+e.type);a.call(this,e)}i(o,a),o.prototype._stat=function(e){var t=this;n.readlink(t._path,(function(r,n){if(r)return t.error(r);t.linkpath=t.props.linkpath=n,t.emit("linkpath",n),a.prototype._stat.call(t,e)}))},o.prototype._read=function(){var e=this;e._paused||e._ended||(e.emit("end"),e.emit("close"),e._ended=!0)}},33423:(e,t,r)=>{e.exports=c;var n=r(20077),i=r(80608),a=r(94378),o=r(71017),s=r(72899);function c(e){if(!(this instanceof c))throw new Error("LinkWriter must be called as constructor.");if(!("Link"===e.type&&e.Link||"SymbolicLink"===e.type&&e.SymbolicLink))throw new Error("Non-link type "+e.type);""===e.linkpath&&(e.linkpath="."),e.linkpath||this.error("Need linkpath property to create "+e.type),i.call(this,e)}function l(e,t,r){s(e._path,(function(i){if(i)return e.error(i);!function(e,t,r){n[r](t,e._path,(function(t){if(t){if("ENOENT"!==t.code&&"EACCES"!==t.code&&"EPERM"!==t.code||"win32"!==process.platform)return e.error(t);e.ready=!0,e.emit("ready"),e.emit("end"),e.emit("close"),e.end=e._finish=function(){}}u(e)}))}(e,t,r)}))}function u(e){e.ready=!0,e.emit("ready"),e._ended&&!e._finished&&e._finish()}a(c,i),c.prototype._create=function(){var e=this,t="Link"===e.type||"win32"===process.platform,r=t?"link":"symlink",i=t?o.resolve(e.dirname,e.linkpath):e.linkpath;if(t)return l(e,i,r);n.readlink(e._path,(function(t,n){if(n&&n===i)return u(e);l(e,i,r)}))},c.prototype.end=function(){this._ended=!0,this.ready&&(this._finished=!0,this._finish())}},63732:(e,t,r)=>{e.exports=s;var n=r(87937),i=r(82152),a=r(94378),o=r(20077);function s(e){var t=this;if(!(t instanceof s))throw new Error("ProxyReader must be called as constructor.");t.props=e,t._buffer=[],t.ready=!1,n.call(t,e)}a(s,n),s.prototype._stat=function(){var e=this,t=e.props,r=t.follow?"stat":"lstat";o[r](t.path,(function(r,a){var o;o=r||!a?"File":i(a),t[o]=!0,t.type=e.type=o,e._old=a,e._addProxy(n(t,a))}))},s.prototype._addProxy=function(e){var t=this;if(t._proxyTarget)return t.error("proxy already set");t._proxyTarget=e,e._proxy=t,["error","data","end","close","linkpath","entry","entryEnd","child","childEnd","warn","stat"].forEach((function(r){e.on(r,t.emit.bind(t,r))})),t.emit("proxy",e),e.on("ready",(function(){t.ready=!0,t.emit("ready")}));var r=t._buffer;t._buffer.length=0,r.forEach((function(t){e[t[0]].apply(e,t[1])}))},s.prototype.pause=function(){return!!this._proxyTarget&&this._proxyTarget.pause()},s.prototype.resume=function(){return!!this._proxyTarget&&this._proxyTarget.resume()}},14955:(e,t,r)=>{e.exports=c;var n=r(80608),i=r(82152),a=r(94378),o=r(88818),s=r(57147);function c(e){var t=this;if(!(t instanceof c))throw new Error("ProxyWriter must be called as constructor.");t.props=e,t._needDrain=!1,n.call(t,e)}a(c,n),c.prototype._stat=function(){var e=this,t=e.props,r=t.follow?"stat":"lstat";s[r](t.path,(function(r,a){var o;o=r||!a?"File":i(a),t[o]=!0,t.type=e.type=o,e._old=a,e._addProxy(n(t,a))}))},c.prototype._addProxy=function(e){var t=this;if(t._proxy)return t.error("proxy already set");t._proxy=e,["ready","error","close","pipe","drain","warn"].forEach((function(r){e.on(r,t.emit.bind(t,r))})),t.emit("proxy",e),t._buffer.forEach((function(t){e[t[0]].apply(e,t[1])})),t._buffer.length=0,t._needsDrain&&t.emit("drain")},c.prototype.add=function(e){return o(e),this._proxy?this._proxy.add(e):(this._buffer.push(["add",[e]]),this._needDrain=!0,!1)},c.prototype.write=function(e){return this._proxy?this._proxy.write(e):(this._buffer.push(["write",[e]]),this._needDrain=!0,!1)},c.prototype.end=function(e){return this._proxy?this._proxy.end(e):(this._buffer.push(["end",[e]]),!1)}},87937:(e,t,r)=>{e.exports=d;var n=r(20077),i=r(12781).Stream,a=r(94378),o=r(71017),s=r(82152),c=d.hardLinks={},l=r(95348);a(d,l);var u=r(79716);function d(e,t){var n,i,a=this;if(!(a instanceof d))return new d(e,t);switch("string"==typeof e&&(e={path:e}),e.type&&"function"==typeof e.type?i=n=e.type:(n=s(e),i=d),t&&!n&&(e[n=s(t)]=!0,e.type=n),n){case"Directory":i=r(21831);break;case"Link":case"File":i=r(49305);break;case"SymbolicLink":i=u;break;case"Socket":i=r(80012);break;case null:i=r(63732)}if(!(a instanceof i))return new i(e);l.call(a),e.path||a.error("Must provide a path",null,!0),a.readable=!0,a.writable=!1,a.type=n,a.props=e,a.depth=e.depth=e.depth||0,a.parent=e.parent||null,a.root=e.root||e.parent&&e.parent.root||a,a._path=a.path=o.resolve(e.path),"win32"===process.platform&&(a.path=a._path=a.path.replace(/\?/g,"_"),a._path.length>=260&&(a._swallowErrors=!0,a._path="\\\\?\\"+a.path.replace(/\//g,"\\"))),a.basename=e.basename=o.basename(a.path),a.dirname=e.dirname=o.dirname(a.path),e.parent=e.root=null,a.size=e.size,a.filter="function"==typeof e.filter?e.filter:null,"alpha"===e.sort&&(e.sort=p),a._stat(t)}function p(e,t){return e===t?0:e.toLowerCase()>t.toLowerCase()?1:e.toLowerCase()<t.toLowerCase()?-1:e>t?1:-1}d.prototype._stat=function(e){var t=this,r=t.props,i=r.follow?"stat":"lstat";function a(e,n){if(e)return t.error(e);if(Object.keys(n).forEach((function(e){r[e]=n[e]})),void 0!==t.size&&r.size!==t.size)return t.error("incorrect size");t.size=r.size;var i=s(r);if(!1!==r.hardlinks&&"Directory"!==i&&r.nlink&&r.nlink>1){var a=r.dev+":"+r.ino;c[a]!==t._path&&c[a]?(i=t.type=t.props.type="Link",t.Link=t.props.Link=!0,t.linkpath=t.props.linkpath=c[a],t._stat=t._read=u.prototype._read):c[a]=t._path}if(t.type&&t.type!==i&&t.error("Unexpected type: "+i),t.filter){var o=t._proxy||t;if(!t.filter.call(o,o,r))return void(t._disowned||(t.abort(),t.emit("end"),t.emit("close")))}var l=["_stat","stat","ready"],d=0;!function e(){if(t._aborted)return t.emit("end"),void t.emit("close");if(t._paused&&"Directory"!==t.type)t.once("resume",e);else{var n=l[d++];if(!n)return t._read();t.emit(n,r),e()}}()}e?process.nextTick(a.bind(null,null,e)):n[i](t._path,a)},d.prototype.pipe=function(e){var t=this;return"function"==typeof e.add&&t.on("entry",(function(r){!1===e.add(r)&&t.pause()})),i.prototype.pipe.apply(this,arguments)},d.prototype.pause=function(e){this._paused=!0,e=e||this,this.emit("pause",e),this._stream&&this._stream.pause(e)},d.prototype.resume=function(e){this._paused=!1,e=e||this,this.emit("resume",e),this._stream&&this._stream.resume(e),this._read()},d.prototype._read=function(){this.error("Cannot read unknown type: "+this.type)}},80012:(e,t,r)=>{e.exports=a;var n=r(94378),i=r(87937);function a(e){if(!(this instanceof a))throw new Error("SocketReader must be called as constructor.");if("Socket"!==e.type||!e.Socket)throw new Error("Non-socket type "+e.type);i.call(this,e)}n(a,i),a.prototype._read=function(){var e=this;e._paused||e._ended||(e.emit("end"),e.emit("close"),e._ended=!0)}},80608:(e,t,r)=>{e.exports=g;var n=r(20077),i=r(94378),a=r(72899),o=r(81890),s=r(71017),c="win32"===process.platform?0:process.umask(),l=r(82152),u=r(95348);i(g,u),g.dirmode=parseInt("0777",8)&~c,g.filemode=parseInt("0666",8)&~c;var d=r(26969),p=r(33423),f=r(93589),m=r(14955);function g(e,t){var r=this;"string"==typeof e&&(e={path:e});var n=g;switch(l(e)){case"Directory":n=d;break;case"File":n=f;break;case"Link":case"SymbolicLink":n=p;break;default:n=m}if(!(r instanceof n))return new n(e);u.call(r),e.path||r.error("Must provide a path",null,!0),r.type=e.type,r.props=e,r.depth=e.depth||0,r.clobber=!1!==e.clobber||e.clobber,r.parent=e.parent||null,r.root=e.root||e.parent&&e.parent.root||r,r._path=r.path=s.resolve(e.path),"win32"===process.platform&&(r.path=r._path=r.path.replace(/\?/g,"_"),r._path.length>=260&&(r._swallowErrors=!0,r._path="\\\\?\\"+r.path.replace(/\//g,"\\"))),r.basename=s.basename(e.path),r.dirname=s.dirname(e.path),r.linkpath=e.linkpath||null,e.parent=e.root=null,r.size=e.size,"string"==typeof e.mode&&(e.mode=parseInt(e.mode,8)),r.readable=!1,r.writable=!0,r._buffer=[],r.ready=!1,r.filter="function"==typeof e.filter?e.filter:null,r._stat(t)}function _(e){o(s.dirname(e._path),g.dirmode,(function(t,r){return t?e.error(t):(e._madeDir=r,e._create())}))}function h(e,t,r,i,a){var o=t.mode,s=t.follow||"SymbolicLink"!==e.type?"chmod":"lchmod";if(!n[s])return a();if("number"!=typeof o)return a();var c=r.mode&parseInt("0777",8);if((o&=parseInt("0777",8))===c)return a();n[s](i,o,a)}function y(e,t,r,i,a){if("win32"===process.platform)return a();if(!process.getuid||0!==process.getuid())return a();if("number"!=typeof t.uid&&"number"!=typeof t.gid)return a();if(r.uid===t.uid&&r.gid===t.gid)return a();var o=e.props.follow||"SymbolicLink"!==e.type?"chown":"lchown";if(!n[o])return a();"number"!=typeof t.uid
[all...]
H A DJS_API_CHECK.js51 var n=r(64253),i=r(5955),a=function(e){if(!(this instanceof a))return new a(e);e=this.options=i.defaults(e,{comment:"",forceUTC:!1,namePrependSlash:!1,store:!1}),this.supports={directory:!0,symlink:!0},this.engine=new n(e)};a.prototype.append=function(e,t,r){this.engine.entry(e,t,r)},a.prototype.finalize=function(){this.engine.finalize()},a.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)},a.prototype.pipe=function(){return this.engine.pipe.apply(this.engine,arguments)},a.prototype.unpipe=function(){return this.engine.unpipe.apply(this.engine,arguments)},e.exports=a},72127:(e,t,r)=>{var n=r(20181).Buffer,i=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];function a(e){if(n.isBuffer(e))return e;var t="function"==typeof n.alloc&&"function"==typeof n.from;if("number"==typeof e)return t?n.alloc(e):new n(e);if("string"==typeof e)return t?n.from(e):new n(e);throw new Error("input must be buffer, number, or string, received "+typeof e)}function o(e,t){e=a(e),n.isBuffer(t)&&(t=t.readUInt32BE(0));for(var r=~t,o=0;o<e.length;o++)r=i[255&(r^e[o])]^r>>>8;return~r}function s(){return e=o.apply(null,arguments),(t=a(4)).writeInt32BE(e,0),t;var e,t}"undefined"!=typeof Int32Array&&(i=new Int32Array(i)),s.signed=function(){return o.apply(null,arguments)},s.unsigned=function(){return o.apply(null,arguments)>>>0},e.exports=s},24345:e=>{var t=e.exports=function(){};t.prototype.getName=function(){},t.prototype.getSize=function(){},t.prototype.getLastModifiedDate=function(){},t.prototype.isDirectory=function(){}},42049:(e,t,r)=>{var n=r(39023).inherits,i=r(34198).Transform,a=r(24345),o=r(2305),s=e.exports=function(e){if(!(this instanceof s))return new s(e);i.call(this,e),this.offset=0,this._archive={finish:!1,finished:!1,processing:!1}};n(s,i),s.prototype._appendBuffer=function(e,t,r){},s.prototype._appendStream=function(e,t,r){},s.prototype._emitErrorCallback=function(e){e&&this.emit("error",e)},s.prototype._finish=function(e){},s.prototype._normalizeEntry=function(e){},s.prototype._transform=function(e,t,r){r(null,e)},s.prototype.entry=function(e,t,r){if(t=t||null,"function"!=typeof r&&(r=this._emitErrorCallback.bind(this)),e instanceof a)if(this._archive.finish||this._archive.finished)r(new Error("unacceptable entry after finish"));else{if(!this._archive.processing){if(this._archive.processing=!0,this._normalizeEntry(e),this._entry=e,t=o.normalizeInputSource(t),Buffer.isBuffer(t))this._appendBuffer(e,t,r);else{if(!o.isStream(t))return this._archive.processing=!1,void r(new Error("input source must be valid Stream or Buffer instance"));this._appendStream(e,t,r)}return this}r(new Error("already processing an entry"))}else r(new Error("not a valid instance of ArchiveEntry"))},s.prototype.finish=function(){this._archive.processing?this._archive.finish=!0:this._finish()},s.prototype.getBytesWritten=function(){return this.offset},s.prototype.write=function(e,t){return e&&(this.offset+=e.length),i.prototype.write.call(this,e,t)}},2251:e=>{e.exports={WORD:4,DWORD:8,EMPTY:Buffer.alloc(0),SHORT:2,SHORT_MASK:65535,SHORT_SHIFT:16,SHORT_ZERO:Buffer.from(Array(2)),LONG:4,LONG_ZERO:Buffer.from(Array(4)),MIN_VERSION_INITIAL:10,MIN_VERSION_DATA_DESCRIPTOR:20,MIN_VERSION_ZIP64:45,VERSION_MADEBY:45,METHOD_STORED:0,METHOD_DEFLATED:8,PLATFORM_UNIX:3,PLATFORM_FAT:0,SIG_LFH:67324752,SIG_DD:134695760,SIG_CFH:33639248,SIG_EOCD:101010256,SIG_ZIP64_EOCD:101075792,SIG_ZIP64_EOCD_LOC:117853008,ZIP64_MAGIC_SHORT:65535,ZIP64_MAGIC:4294967295,ZIP64_EXTRA_ID:1,ZLIB_NO_COMPRESSION:0,ZLIB_BEST_SPEED:1,ZLIB_BEST_COMPRESSION:9,ZLIB_DEFAULT_COMPRESSION:-1,MODE_MASK:4095,DEFAULT_FILE_MODE:33188,DEFAULT_DIR_MODE:16877,EXT_FILE_ATTR_DIR:1106051088,EXT_FILE_ATTR_FILE:2175008800,S_IFMT:61440,S_IFIFO:4096,S_IFCHR:8192,S_IFDIR:16384,S_IFBLK:24576,S_IFREG:32768,S_IFLNK:40960,S_IFSOCK:49152,S_DOS_A:32,S_DOS_D:16,S_DOS_V:8,S_DOS_S:4,S_DOS_H:2,S_DOS_R:1}},12415:(e,t,r)=>{var n=r(36612),i=e.exports=function(){return this instanceof i?(this.descriptor=!1,this.encryption=!1,this.utf8=!1,this.numberOfShannonFanoTrees=0,this.strongEncryption=!1,this.slidingDictionarySize=0,this):new i};i.prototype.encode=function(){return n.getShortBytes((this.descriptor?8:0)|(this.utf8?2048:0)|(this.encryption?1:0)|(this.strongEncryption?64:0))},i.prototype.parse=function(e,t){var r=n.getShortBytesValue(e,t),a=new i;return a.useDataDescriptor(!!(8&r)),a.useUTF8ForNames(!!(2048&r)),a.useStrongEncryption(!!(64&r)),a.useEncryption(!!(1&r)),a.setSlidingDictionarySize(2&r?8192:4096),a.setNumberOfShannonFanoTrees(4&r?3:2),a},i.prototype.setNumberOfShannonFanoTrees=function(e){this.numberOfShannonFanoTrees=e},i.prototype.getNumberOfShannonFanoTrees=function(){return this.numberOfShannonFanoTrees},i.prototype.setSlidingDictionarySize=function(e){this.slidingDictionarySize=e},i.prototype.getSlidingDictionarySize=function(){return this.slidingDictionarySize},i.prototype.useDataDescriptor=function(e){this.descriptor=e},i.prototype.usesDataDescriptor=function(){return this.descriptor},i.prototype.useEncryption=function(e){this.encryption=e},i.prototype.usesEncryption=function(){return this.encryption},i.prototype.useStrongEncryption=function(e){this.strongEncryption=e},i.prototype.usesStrongEncryption=function(){return this.strongEncryption},i.prototype.useUTF8ForNames=function(e){this.utf8=e},i.prototype.usesUTF8ForNames=function(){return this.utf8}},11277:e=>{e.exports={PERM_MASK:4095,FILE_TYPE_FLAG:61440,LINK_FLAG:40960,FILE_FLAG:32768,DIR_FLAG:16384,DEFAULT_LINK_PERM:511,DEFAULT_DIR_PERM:493,DEFAULT_FILE_PERM:420}},36612:e=>{var t=e.exports={};t.dateToDos=function(e,t){var r=(t=t||!1)?e.getFullYear():e.getUTCFullYear();return r<1980?2162688:r>=2044?2141175677:r-1980<<25|(t?e.getMonth():e.getUTCMonth())+1<<21|(t?e.getDate():e.getUTCDate())<<16|(t?e.getHours():e.getUTCHours())<<11|(t?e.getMinutes():e.getUTCMinutes())<<5|(t?e.getSeconds():e.getUTCSeconds())/2},t.dosToDate=function(e){return new Date(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1)},t.fromDosTime=function(e){return t.dosToDate(e.readUInt32LE(0))},t.getEightBytes=function(e){var t=Buffer.alloc(8);return t.writeUInt32LE(e%4294967296,0),t.writeUInt32LE(e/4294967296|0,4),t},t.getShortBytes=function(e){var t=Buffer.alloc(2);return t.writeUInt16LE((65535&e)>>>0,0),t},t.getShortBytesValue=function(e,t){return e.readUInt16LE(t)},t.getLongBytes=function(e){var t=Buffer.alloc(4);return t.writeUInt32LE((4294967295&e)>>>0,0),t},t.getLongBytesValue=function(e,t){return e.readUInt32LE(t)},t.toDosTime=function(e){return t.getLongBytes(t.dateToDos(e))}},74355:(e,t,r)=>{var n=r(39023).inherits,i=r(14100),a=r(24345),o=r(12415),s=r(11277),c=r(2251),l=r(36612),u=e.exports=function(e){if(!(this instanceof u))return new u(e);a.call(this),this.platform=c.PLATFORM_FAT,this.method=-1,this.name=null,this.size=0,this.csize=0,this.gpb=new o,this.crc=0,this.time=-1,this.minver=c.MIN_VERSION_INITIAL,this.mode=-1,this.extra=null,this.exattr=0,this.inattr=0,this.comment=null,e&&this.setName(e)};n(u,a),u.prototype.getCentralDirectoryExtra=function(){return this.getExtra()},u.prototype.getComment=function(){return null!==this.comment?this.comment:""},u.prototype.getCompressedSize=function(){return this.csize},u.prototype.getCrc=function(){return this.crc},u.prototype.getExternalAttributes=function(){return this.exattr},u.prototype.getExtra=function(){return null!==this.extra?this.extra:c.EMPTY},u.prototype.getGeneralPurposeBit=function(){return this.gpb},u.prototype.getInternalAttributes=function(){return this.inattr},u.prototype.getLastModifiedDate=function(){return this.getTime()},u.prototype.getLocalFileDataExtra=function(){return this.getExtra()},u.prototype.getMethod=function(){return this.method},u.prototype.getName=function(){return this.name},u.prototype.getPlatform=function(){return this.platform},u.prototype.getSize=function(){return this.size},u.prototype.getTime=function(){return-1!==this.time?l.dosToDate(this.time):-1},u.prototype.getTimeDos=function(){return-1!==this.time?this.time:0},u.prototype.getUnixMode=function(){return this.platform!==c.PLATFORM_UNIX?0:this.getExternalAttributes()>>c.SHORT_SHIFT&c.SHORT_MASK},u.prototype.getVersionNeededToExtract=function(){return this.minver},u.prototype.setComment=function(e){Buffer.byteLength(e)!==e.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.comment=e},u.prototype.setCompressedSize=function(e){if(e<0)throw new Error("invalid entry compressed size");this.csize=e},u.prototype.setCrc=function(e){if(e<0)throw new Error("invalid entry crc32");this.crc=e},u.prototype.setExternalAttributes=function(e){this.exattr=e>>>0},u.prototype.setExtra=function(e){this.extra=e},u.prototype.setGeneralPurposeBit=function(e){if(!(e instanceof o))throw new Error("invalid entry GeneralPurposeBit");this.gpb=e},u.prototype.setInternalAttributes=function(e){this.inattr=e},u.prototype.setMethod=function(e){if(e<0)throw new Error("invalid entry compression method");this.method=e},u.prototype.setName=function(e,t=!1){e=i(e,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,""),t&&(e=`/${e}`),Buffer.byteLength(e)!==e.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.name=e},u.prototype.setPlatform=function(e){this.platform=e},u.prototype.setSize=function(e){if(e<0)throw new Error("invalid entry size");this.size=e},u.prototype.setTime=function(e,t){if(!(e instanceof Date))throw new Error("invalid entry time");this.time=l.dateToDos(e,t)},u.prototype.setUnixMode=function(e){var t=0;t|=(e|=this.isDirectory()?c.S_IFDIR:c.S_IFREG)<<c.SHORT_SHIFT|(this.isDirectory()?c.S_DOS_D:c.S_DOS_A),this.setExternalAttributes(t),this.mode=e&c.MODE_MASK,this.platform=c.PLATFORM_UNIX},u.prototype.setVersionNeededToExtract=function(e){this.minver=e},u.prototype.isDirectory=function(){return"/"===this.getName().slice(-1)},u.prototype.isUnixSymlink=function(){return(this.getUnixMode()&s.FILE_TYPE_FLAG)===s.LINK_FLAG},u.prototype.isZip64=function(){return this.csize>c.ZIP64_MAGIC||this.size>c.ZIP64_MAGIC}},90116:(e,t,r)=>{var n=r(39023).inherits,i=r(72127),{CRC32Stream:a}=r(2229),{DeflateCRC32Stream:o}=r(2229),s=r(42049),c=(r(74355),r(12415),r(2251)),l=(r(2305),r(36612)),u=e.exports=function(e){if(!(this instanceof u))return new u(e);e=this.options=this._defaults(e),s.call(this,e),this._entry=null,this._entries=[],this._archive={centralLength:0,centralOffset:0,comment:"",finish:!1,finished:!1,processing:!1,forceZip64:e.forceZip64,forceLocalTime:e.forceLocalTime}};n(u,s),u.prototype._afterAppend=function(e){this._entries.push(e),e.getGeneralPurposeBit().usesDataDescriptor()&&this._writeDataDescriptor(e),this._archive.processing=!1,this._entry=null,this._archive.finish&&!this._archive.finished&&this._finish()},u.prototype._appendBuffer=function(e,t,r){0===t.length&&e.setMethod(c.METHOD_STORED);var n=e.getMethod();return n===c.METHOD_STORED&&(e.setSize(t.length),e.setCompressedSize(t.length),e.setCrc(i.unsigned(t))),this._writeLocalFileHeader(e),n===c.METHOD_STORED?(this.write(t),this._afterAppend(e),void r(null,e)):n===c.METHOD_DEFLATED?void this._smartStream(e,r).end(t):void r(new Error("compression method "+n+" not implemented"))},u.prototype._appendStream=function(e,t,r){e.getGeneralPurposeBit().useDataDescriptor(!0),e.setVersionNeededToExtract(c.MIN_VERSION_DATA_DESCRIPTOR),this._writeLocalFileHeader(e);var n=this._smartStream(e,r);t.once("error",(function(e){n.emit("error",e),n.end()})),t.pipe(n)},u.prototype._defaults=function(e){return"object"!=typeof e&&(e={}),"object"!=typeof e.zlib&&(e.zlib={}),"number"!=typeof e.zlib.level&&(e.zlib.level=c.ZLIB_BEST_SPEED),e.forceZip64=!!e.forceZip64,e.forceLocalTime=!!e.forceLocalTime,e},u.prototype._finish=function(){this._archive.centralOffset=this.offset,this._entries.forEach(function(e){this._writeCentralFileHeader(e)}.bind(this)),this._archive.centralLength=this.offset-this._archive.centralOffset,this.isZip64()&&this._writeCentralDirectoryZip64(),this._writeCentralDirectoryEnd(),this._archive.processing=!1,this._archive.finish=!0,this._archive.finished=!0,this.end()},u.prototype._normalizeEntry=function(e){-1===e.getMethod()&&e.setMethod(c.METHOD_DEFLATED),e.getMethod()===c.METHOD_DEFLATED&&(e.getGeneralPurposeBit().useDataDescriptor(!0),e.setVersionNeededToExtract(c.MIN_VERSION_DATA_DESCRIPTOR)),-1===e.getTime()&&e.setTime(new Date,this._archive.forceLocalTime),e._offsets={file:0,data:0,contents:0}},u.prototype._smartStream=function(e,t){var r=e.getMethod()===c.METHOD_DEFLATED?new o(this.options.zlib):new a,n=null;return r.once("end",function(){var i=r.digest().readUInt32BE(0);e.setCrc(i),e.setSize(r.size()),e.setCompressedSize(r.size(!0)),this._afterAppend(e),t(n,e)}.bind(this)),r.once("error",(function(e){n=e})),r.pipe(this,{end:!1}),r},u.prototype._writeCentralDirectoryEnd=function(){var e=this._entries.length,t=this._archive.centralLength,r=this._archive.centralOffset;this.isZip64()&&(e=c.ZIP64_MAGIC_SHORT,t=c.ZIP64_MAGIC,r=c.ZIP64_MAGIC),this.write(l.getLongBytes(c.SIG_EOCD)),this.write(c.SHORT_ZERO),this.write(c.SHORT_ZERO),this.write(l.getShortBytes(e)),this.write(l.getShortBytes(e)),this.write(l.getLongBytes(t)),this.write(l.getLongBytes(r));var n=this.getComment(),i=Buffer.byteLength(n);this.write(l.getShortBytes(i)),this.write(n)},u.prototype._writeCentralDirectoryZip64=function(){this.write(l.getLongBytes(c.SIG_ZIP64_EOCD)),this.write(l.getEightBytes(44)),this.write(l.getShortBytes(c.MIN_VERSION_ZIP64)),this.write(l.getShortBytes(c.MIN_VERSION_ZIP64)),this.write(c.LONG_ZERO),this.write(c.LONG_ZERO),this.write(l.getEightBytes(this._entries.length)),this.write(l.getEightBytes(this._entries.length)),this.write(l.getEightBytes(this._archive.centralLength)),this.write(l.getEightBytes(this._archive.centralOffset)),this.write(l.getLongBytes(c.SIG_ZIP64_EOCD_LOC)),this.write(c.LONG_ZERO),this.write(l.getEightBytes(this._archive.centralOffset+this._archive.centralLength)),this.write(l.getLongBytes(1))},u.prototype._writeCentralFileHeader=function(e){var t=e.getGeneralPurposeBit(),r=e.getMethod(),n=e._offsets,i=e.getSize(),a=e.getCompressedSize();if(e.isZip64()||n.file>c.ZIP64_MAGIC){i=c.ZIP64_MAGIC,a=c.ZIP64_MAGIC,e.setVersionNeededToExtract(c.MIN_VERSION_ZIP64);var o=Buffer.concat([l.getShortBytes(c.ZIP64_EXTRA_ID),l.getShortBytes(24),l.getEightBytes(e.getSize()),l.getEightBytes(e.getCompressedSize()),l.getEightBytes(n.file)],28);e.setExtra(o)}this.write(l.getLongBytes(c.SIG_CFH)),this.write(l.getShortBytes(e.getPlatform()<<8|c.VERSION_MADEBY)),this.write(l.getShortBytes(e.getVersionNeededToExtract())),this.write(t.encode()),this.write(l.getShortBytes(r)),this.write(l.getLongBytes(e.getTimeDos())),this.write(l.getLongBytes(e.getCrc())),this.write(l.getLongBytes(a)),this.write(l.getLongBytes(i));var s=e.getName(),u=e.getComment(),d=e.getCentralDirectoryExtra();t.usesUTF8ForNames()&&(s=Buffer.from(s),u=Buffer.from(u)),this.write(l.getShortBytes(s.length)),this.write(l.getShortBytes(d.length)),this.write(l.getShortBytes(u.length)),this.write(c.SHORT_ZERO),this.write(l.getShortBytes(e.getInternalAttributes())),this.write(l.getLongBytes(e.getExternalAttributes())),n.file>c.ZIP64_MAGIC?this.write(l.getLongBytes(c.ZIP64_MAGIC)):this.write(l.getLongBytes(n.file)),this.write(s),this.write(d),this.write(u)},u.prototype._writeDataDescriptor=function(e){this.write(l.getLongBytes(c.SIG_DD)),this.write(l.getLongBytes(e.getCrc())),e.isZip64()?(this.write(l.getEightBytes(e.getCompressedSize())),this.write(l.getEightBytes(e.getSize()))):(this.write(l.getLongBytes(e.getCompressedSize())),this.write(l.getLongBytes(e.getSize())))},u.prototype._writeLocalFileHeader=function(e){var t=e.getGeneralPurposeBit(),r=e.getMethod(),n=e.getName(),i=e.getLocalFileDataExtra();e.isZip64()&&(t.useDataDescriptor(!0),e.setVersionNeededToExtract(c.MIN_VERSION_ZIP64)),t.usesUTF8ForNames()&&(n=Buffer.from(n)),e._offsets.file=this.offset,this.write(l.getLongBytes(c.SIG_LFH)),this.write(l.getShortBytes(e.getVersionNeededToExtract())),this.write(t.encode()),this.write(l.getShortBytes(r)),this.write(l.getLongBytes(e.getTimeDos())),e._offsets.data=this.offset,t.usesDataDescriptor()?(this.write(c.LONG_ZERO),this.write(c.LONG_ZERO),this.write(c.LONG_ZERO)):(this.write(l.getLongBytes(e.getCrc())),this.write(l.getLongBytes(e.getCompressedSize())),this.write(l.getLongBytes(e.getSize()))),this.write(l.getShortBytes(n.length)),this.write(l.getShortBytes(i.length)),this.write(n),this.write(i),e._offsets.contents=this.offset},u.prototype.getComment=function(e){return null!==this._archive.comment?this._archive.comment:""},u.prototype.isZip64=function(){return this._archive.forceZip64||this._entries.length>c.ZIP64_MAGIC_SHORT||this._archive.centralLength>c.ZIP64_MAGIC||this._archive.centralOffset>c.ZIP64_MAGIC},u.prototype.setComment=function(e){this._archive.comment=e}},95305:(e,t,r)=>{e.exports={ArchiveEntry:r(24345),ZipArchiveEntry:r(74355),ArchiveOutputStream:r(42049),ZipArchiveOutputStream:r(90116)}},2305:(e,t,r)=>{var n=r(2203).Stream,i=r(34198).PassThrough,a=e.exports={};a.isStream=function(e){return e instanceof n},a.normalizeInputSource=function(e){if(null===e)return Buffer.alloc(0);if("string"==typeof e)return Buffer.from(e);if(a.isStream(e)&&!e._readableState){var t=new i;return e.pipe(t),t}return e}},96903:(e,t,r)=>{"use strict";const{Transform:n}=r(34198),i=r(52566);e.exports=class extends n{constructor(e){super(e),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0}_transform(e,t,r){e&&(this.checksum=i.buf(e,this.checksum)>>>0,this.rawSize+=e.length),r(null,e)}digest(e){const t=Buffer.allocUnsafe(4);return t.writeUInt32BE(this.checksum>>>0,0),e?t.toString(e):t}hex(){return this.digest("hex").toUpperCase()}size(){return this.rawSize}}},17853:(e,t,r)=>{"use strict";const{DeflateRaw:n}=r(43106),i=r(52566);e.exports=class extends n{constructor(e){super(e),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0,this.compressedSize=0}push(e,t){return e&&(this.compressedSize+=e.length),super.push(e,t)}_transform(e,t,r){e&&(this.checksum=i.buf(e,this.checksum)>>>0,this.rawSize+=e.length),super._transform(e,t,r)}digest(e){const t=Buffer.allocUnsafe(4);return t.writeUInt32BE(this.checksum>>>0,0),e?t.toString(e):t}hex(){return this.digest("hex").toUpperCase()}size(e=!1){return e?this.compressedSize:this.rawSize}}},2229:(e,t,r)=>{"use strict";e.exports={CRC32Stream:r(96903),DeflateCRC32Stream:r(17853)}},32:(e,t,r)=>{var n=r(39023),i=r(44829),a=r(24627),o=r(34198).Writable,s=r(34198).PassThrough,c=function(){},l=function(e){return(e&=511)&&512-e},u=function(e,t){this._parent=e,this.offset=t,s.call(this,{autoDestroy:!1})};n.inherits(u,s),u.prototype.destroy=function(e){this._parent.destroy(e)};var d=function(e){if(!(this instanceof d))return new d(e);o.call(this,e),e=e||{},this._offset=0,this._buffer=i(),this._missing=0,this._partial=!1,this._onparse=c,this._header=null,this._stream=null,this._overflow=null,this._cb=null,this._locked=!1,this._destroyed=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null;var t=this,r=t._buffer,n=function(){t._continue()},s=function(e){if(t._locked=!1,e)return t.destroy(e);t._stream||n()},p=function(){t._stream=null;var e=l(t._header.size);e?t._parse(e,f):t._parse(512,y),t._locked||n()},f=function(){t._buffer.consume(l(t._header.size)),t._parse(512,y),n()},m=function(){var e=t._header.size;t._paxGlobal=a.decodePax(r.slice(0,e)),r.consume(e),p()},g=function(){var e=t._header.size;t._pax=a.decodePax(r.slice(0,e)),t._paxGlobal&&(t._pax=Object.assign({},t._paxGlobal,t._pax)),r.consume(e),p()},_=function(){var n=t._header.size;this._gnuLongPath=a.decodeLongPath(r.slice(0,n),e.filenameEncoding),r.consume(n),p()},h=function(){var n=t._header.size;this._gnuLongLinkPath=a.decodeLongPath(r.slice(0,n),e.filenameEncoding),r.consume(n),p()},y=function(){var i,o=t._offset;try{i=t._header=a.decode(r.slice(0,512),e.filenameEncoding,e.allowUnknownFormat)}catch(e){t.emit("error",e)}return r.consume(512),i?"gnu-long-path"===i.type?(t._parse(i.size,_),void n()):"gnu-long-link-path"===i.type?(t._parse(i.size,h),void n()):"pax-global-header"===i.type?(t._parse(i.size,m),void n()):"pax-header"===i.type?(t._parse(i.size,g),void n()):(t._gnuLongPath&&(i.name=t._gnuLongPath,t._gnuLongPath=null),t._gnuLongLinkPath&&(i.linkname=t._gnuLongLinkPath,t._gnuLongLinkPath=null),t._pax&&(t._header=i=function(e,t){return t.path&&(e.name=t.path),t.linkpath&&(e.linkname=t.linkpath),t.size&&(e.size=parseInt(t.size,10)),e.pax=t,e}(i,t._pax),t._pax=null),t._locked=!0,i.size&&"directory"!==i.type?(t._stream=new u(t,o),t.emit("entry",i,t._stream,s),t._parse(i.size,p),void n()):(t._parse(512,y),void t.emit("entry",i,function(e,t){var r=new u(e,t);return r.end(),r}(t,o),s))):(t._parse(512,y),void n())};this._onheader=y,this._parse(512,y)};n.inherits(d,o),d.prototype.destroy=function(e){this._destroyed||(this._destroyed=!0,e&&this.emit("error",e),this.emit("close"),this._stream&&this._stream.emit("close"))},d.prototype._parse=function(e,t){this._destroyed||(this._offset+=e,this._missing=e,t===this._onheader&&(this._partial=!1),this._onparse=t)},d.prototype._continue=function(){if(!this._destroyed){var e=this._cb;this._cb=c,this._overflow?this._write(this._overflow,void 0,e):e()}},d.prototype._write=function(e,t,r){if(!this._destroyed){var n=this._stream,i=this._buffer,a=this._missing;if(e.length&&(this._partial=!0),e.length<a)return this._missing-=e.length,this._overflow=null,n?n.write(e,r):(i.append(e),r());this._cb=r,this._missing=0;var o=null;e.length>a&&(o=e.slice(a),e=e.slice(0,a)),n?n.end(e):i.append(e),this._overflow=o,this._onparse()}},d.prototype._final=function(e){if(this._partial)return this.destroy(new Error("Unexpected end of data"));e()},e.exports=d},24627:(e,t)=>{var r=Buffer.alloc,n="0".charCodeAt(0),i=Buffer.from("ustar\0","binary"),a=Buffer.from("00","binary"),o=Buffer.from("ustar ","binary"),s=Buffer.from(" \0","binary"),c=parseInt("7777",8),l=257,u=function(e,t,r,n){for(;r<n;r++)if(e[r]===t)return r;return n},d=function(e){for(var t=256,r=0;r<148;r++)t+=e[r];for(var n=156;n<512;n++)t+=e[n];return t},p=function(e,t){return(e=e.toString(8)).length>t?"7777777777777777777".slice(0,t)+" ":"0000000000000000000".slice(0,t-e.length)+e+" "};var f=function(e,t,r){if(128&(e=e.slice(t,t+r))[t=0])return function(e){var t;if(128===e[0])t=!0;else{if(255!==e[0])return null;t=!1}for(var r=[],n=e.length-1;n>0;n--){var i=e[n];t?r.push(i):r.push(255-i)}var a=0,o=r.length;for(n=0;n<o;n++)a+=r[n]*Math.pow(256,n);return t?a:-1*a}(e);for(;t<e.length&&32===e[t];)t++;for(var n=(i=u(e,32,t,e.length),a=e.length,o=e.length,"number"!=typeof i?o:(i=~~i)>=a?a:i>=0||(i+=a)>=0?i:0);t<n&&0===e[t];)t++;return n===t?0:parseInt(e.slice(t,n).toString(),8);var i,a,o},m=function(e,t,r,n){return e.slice(t,u(e,0,t,t+r)).toString(n)},g=function(e){var t=Buffer.byteLength(e),r=Math.floor(Math.log(t)/Math.log(10))+1;return t+r>=Math.pow(10,r)&&r++,t+r+e};t.decodeLongPath=function(e,t){return m(e,0,e.length,t)},t.encodePax=function(e){var t="";e.name&&(t+=g(" path="+e.name+"\n")),e.linkname&&(t+=g(" linkpath="+e.linkname+"\n"));var r=e.pax;if(r)for(var n in r)t+=g(" "+n+"="+r[n]+"\n");return Buffer.from(t)},t.decodePax=function(e){for(var t={};e.length;){for(var r=0;r<e.length&&32!==e[r];)r++;var n=parseInt(e.slice(0,r).toString(),10);if(!n)return t;var i=e.slice(r+1,n-1).toString(),a=i.indexOf("=");if(-1===a)return t;t[i.slice(0,a)]=i.slice(a+1),e=e.slice(n)}return t},t.encode=function(e){var t=r(512),o=e.name,s="";if(5===e.typeflag&&"/"!==o[o.length-1]&&(o+="/"),Buffer.byteLength(o)!==o.length)return null;for(;Buffer.byteLength(o)>100;){var u=o.indexOf("/");if(-1===u)return null;s+=s?"/"+o.slice(0,u):o.slice(0,u),o=o.slice(u+1)}return Buffer.byteLength(o)>100||Buffer.byteLength(s)>155||e.linkname&&Buffer.byteLength(e.linkname)>100?null:(t.write(o),t.write(p(e.mode&c,6),100),t.write(p(e.uid,6),108),t.write(p(e.gid,6),116),t.write(p(e.size,11),124),t.write(p(e.mtime.getTime()/1e3|0,11),136),t[156]=n+function(e){switch(e){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}(e.type),e.linkname&&t.write(e.linkname,157),i.copy(t,l),a.copy(t,263),e.uname&&t.write(e.uname,265),e.gname&&t.write(e.gname,297),t.write(p(e.devmajor||0,6),329),t.write(p(e.devminor||0,6),337),s&&t.write(s,345),t.write(p(d(t),6),148),t)},t.decode=function(e,t,r){var a=0===e[156]?0:e[156]-n,c=m(e,0,100,t),u=f(e,100,8),p=f(e,108,8),g=f(e,116,8),_=f(e,124,12),h=f(e,136,12),y=function(e){switch(e){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}(a),v=0===e[157]?null:m(e,157,100,t),b=m(e,265,32),k=m(e,297,32),x=f(e,329,8),E=f(e,337,8),S=d(e);if(256===S)return null;if(S!==f(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(0===i.compare(e,l,263))e[345]&&(c=m(e,345,155,t)+"/"+c);else if(0===o.compare(e,l,263)&&0===s.compare(e,263,265));else if(!r)throw new Error("Invalid tar header: unknown format.");return 0===a&&c&&"/"===c[c.length-1]&&(a=5),{name:c,mode:u,uid:p,gid:g,size:_,mtime:new Date(1e3*h),type:y,linkname:v,uname:b,gname:k,devmajor:x,devminor:E}}},42797:(e,t,r)=>{t.extract=r(32),t.pack=r(56620)},56620:(e,t,r)=>{var n=r(72170),i=r(26611),a=r(72017),o=Buffer.alloc,s=r(34198).Readable,c=r(34198).Writable,l=r(13193).StringDecoder,u=r(24627),d=parseInt("755",8),p=parseInt("644",8),f=o(1024),m=function(){},g=function(e,t){(t&=511)&&e.push(f.slice(0,512-t))};var _=function(e){c.call(this),this.written=0,this._to=e,this._destroyed=!1};a(_,c),_.prototype._write=function(e,t,r){if(this.written+=e.length,this._to.push(e))return r();this._to._drain=r},_.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var h=function(){c.call(this),this.linkname="",this._decoder=new l("utf-8"),this._destroyed=!1};a(h,c),h.prototype._write=function(e,t,r){this.linkname+=this._decoder.write(e),r()},h.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var y=function(){c.call(this),this._destroyed=!1};a(y,c),y.prototype._write=function(e,t,r){r(new Error("No body allowed for this entry"))},y.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var v=function(e){if(!(this instanceof v))return new v(e);s.call(this,e),this._drain=m,this._finalized=!1,this._finalizing=!1,this._destroyed=!1,this._stream=null};a(v,s),v.prototype.entry=function(e,t,r){if(this._stream)throw new Error("already piping an entry");if(!this._finalized&&!this._destroyed){"function"==typeof t&&(r=t,t=null),r||(r=m);var a=this;if(e.size&&"symlink"!==e.type||(e.size=0),e.type||(e.type=function(e){switch(e&n.S_IFMT){case n.S_IFBLK:return"block-device";case n.S_IFCHR:return"character-device";case n.S_IFDIR:return"directory";case n.S_IFIFO:return"fifo";case n.S_IFLNK:return"symlink"}return"file"}(e.mode)),e.mode||(e.mode="directory"===e.type?d:p),e.uid||(e.uid=0),e.gid||(e.gid=0),e.mtime||(e.mtime=new Date),"string"==typeof t&&(t=Buffer.from(t)),Buffer.isBuffer(t)){e.size=t.length,this._encode(e);var o=this.push(t);return g(a,e.size),o?process.nextTick(r):this._drain=r,new y}if("symlink"===e.type&&!e.linkname){var s=new h;return i(s,(function(t){if(t)return a.destroy(),r(t);e.linkname=s.linkname,a._encode(e),r()})),s}if(this._encode(e),"file"!==e.type&&"contiguous-file"!==e.type)return process.nextTick(r),new y;var c=new _(this);return this._stream=c,i(c,(function(t){return a._stream=null,t?(a.destroy(),r(t)):c.written!==e.size?(a.destroy(),r(new Error("size mismatch"))):(g(a,e.size),a._finalizing&&a.finalize(),void r())})),c}},v.prototype.finalize=function(){this._stream?this._finalizing=!0:this._finalized||(this._finalized=!0,this.push(f),this.push(null))},v.prototype.destroy=function(e){this._destroyed||(this._destroyed=!0,e&&this.emit("error",e),this.emit("close"),this._stream&&this._stream.destroy&&this._stream.destroy())},v.prototype._encode=function(e){if(!e.pax){var t=u.encode(e);if(t)return void this.push(t)}this._encodePax(e)},v.prototype._encodePax=function(e){var t=u.encodePax({name:e.name,linkname:e.linkname,pax:e.pax}),r={name:"PaxHeader",mode:e.mode,uid:e.uid,gid:e.gid,size:t.length,mtime:e.mtime,type:"pax-header",linkname:e.linkname&&"PaxHeader",uname:e.uname,gname:e.gname,devmajor:e.devmajor,devminor:e.devminor};this.push(u.encode(r)),this.push(t),g(this,t.length),r.size=e.size,r.type=e.type,this.push(u.encode(r))},v.prototype._read=function(e){var t=this._drain;this._drain=m,t()},e.exports=v},64253:(e,t,r)=>{
59 var n=r(39023).inherits,i=r(95305).ZipArchiveOutputStream,a=r(95305).ZipArchiveEntry,o=r(43029),s=e.exports=function(e){if(!(this instanceof s))return new s(e);(e=this.options=e||{}).zlib=e.zlib||{},i.call(this,e),"number"==typeof e.level&&e.level>=0&&(e.zlib.level=e.level,delete e.level),e.forceZip64||"number"!=typeof e.zlib.level||0!==e.zlib.level||(e.store=!0),e.namePrependSlash=e.namePrependSlash||!1,e.comment&&e.comment.length>0&&this.setComment(e.comment)};n(s,i),s.prototype._normalizeFileData=function(e){var t="directory"===(e=o.defaults(e,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""})).type,r="symlink"===e.type;return e.name&&(e.name=o.sanitizePath(e.name),r||"/"!==e.name.slice(-1)?t&&(e.name+="/"):(t=!0,e.type="directory")),(t||r)&&(e.store=!0),e.date=o.dateify(e.date),e},s.prototype.entry=function(e,t,r){if("function"!=typeof r&&(r=this._emitErrorCallback.bind(this)),"file"===(t=this._normalizeFileData(t)).type||"directory"===t.type||"symlink"===t.type)if("string"==typeof t.name&&0!==t.name.length){if("symlink"!==t.type||"string"==typeof t.linkname){var n=new a(t.name);return n.setTime(t.date,this.options.forceLocalTime),t.namePrependSlash&&n.setName(t.name,!0),t.store&&n.setMethod(0),t.comment.length>0&&n.setComment(t.comment),"symlink"===t.type&&"number"!=typeof t.mode&&(t.mode=40960),"number"==typeof t.mode&&("symlink"===t.type&&(t.mode|=40960),n.setUnixMode(t.mode)),"symlink"===t.type&&"string"==typeof t.linkname&&(e=Buffer.from(t.linkname)),i.prototype.entry.call(this,n,e,r)}r(new Error("entry linkname must be a non-empty string value when type equals symlink"))}else r(new Error("entry name must be a non-empty string value"));else r(new Error(t.type+" entries not currently supported"))},s.prototype.finalize=function(){this.finish()}},81695:(e,t,r)=>{var n=r(63735),i=r(16928),a=r(16308),o=r(40209),s=r(9897),c=r(79001),l=r(53577),u=e.exports={},d=/[\/\\]/g;u.exists=function(){var e=i.join.apply(i,arguments);return n.existsSync(e)},u.expand=function(...e){var t=c(e[0])?e.shift():{},r=Array.isArray(e[0])?e[0]:e;if(0===r.length)return[];var u=function(e,t){var r=[];return a(e).forEach((function(e){var n=0===e.indexOf("!");n&&(e=e.slice(1));var i=t(e);r=n?o(r,i):s(r,i)})),r}(r,(function(e){return l.sync(e,t)}));return t.filter&&(u=u.filter((function(e){e=i.join(t.cwd||"",e);try{return"function"==typeof t.filter?t.filter(e):n.statSync(e)[t.filter]()}catch(e){return!1}}))),u},u.expandMapping=function(e,t,r){r=Object.assign({rename:function(e,t){return i.join(e||"",t)}},r);var n=[],a={};return u.expand(r,e).forEach((function(e){var o=e;r.flatten&&(o=i.basename(o)),r.ext&&(o=o.replace(/(\.[^\/]*)?$/,r.ext));var s=r.rename(t,o,r);r.cwd&&(e=i.join(r.cwd,e)),s=s.replace(d,"/"),e=e.replace(d,"/"),a[s]?a[s].src.push(e):(n.push({src:[e],dest:s}),a[s]=n[n.length-1])})),n},u.normalizeFilesArray=function(e){var t=[];return e.forEach((function(e){("src"in e||"dest"in e)&&t.push(e)})),0===t.length?[]:t=_(t).chain().forEach((function(e){"src"in e&&e.src&&(Array.isArray(e.src)?e.src=a(e.src):e.src=[e.src])})).map((function(e){var t=Object.assign({},e);if(delete t.src,delete t.dest,e.expand)return u.expandMapping(e.src,e.dest,t).map((function(t){var r=Object.assign({},e);return r.orig=Object.assign({},e),r.src=t.src,r.dest=t.dest,["expand","cwd","flatten","rename","ext"].forEach((function(e){delete r[e]})),r}));var r=Object.assign({},e);return r.orig=Object.assign({},e),"src"in r&&Object.defineProperty(r,"src",{enumerable:!0,get:function r(){var n;return"result"in r||(n=e.src,n=Array.isArray(n)?a(n):[n],r.result=u.expand(t,n)),r.result}}),"dest"in r&&(r.dest=e.dest),r})).flatten().value()}},43029:(e,t,r)=>{var n=r(63735),i=r(16928),a=r(85),o=r(14100),s=r(71676),c=r(2203).Stream,l=r(34198).PassThrough,u=e.exports={};u.file=r(81695),u.collectStream=function(e,t){var r=[],n=0;e.on("error",t),e.on("data",(function(e){r.push(e),n+=e.length})),e.on("end",(function(){var e=Buffer.alloc(n),i=0;r.forEach((function(t){t.copy(e,i),i+=t.length})),t(null,e)}))},u.dateify=function(e){return(e=e||new Date)instanceof Date||(e="string"==typeof e?new Date(e):new Date),e},u.defaults=function(e,t,r){var n=arguments;return n[0]=n[0]||{},s(...n)},u.isStream=function(e){return e instanceof c},u.lazyReadStream=function(e){return new a.Readable((function(){return n.createReadStream(e)}))},u.normalizeInputSource=function(e){return null===e?Buffer.alloc(0):"string"==typeof e?Buffer.from(e):u.isStream(e)?e.pipe(new l):e},u.sanitizePath=function(e){return o(e,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"")},u.trailingSlashIt=function(e){return"/"!==e.slice(-1)?e+"/":e},u.unixifyPath=function(e){return o(e,!1).replace(/^\w+:/,"")},u.walkdir=function(e,t,r){var a=[];"function"==typeof t&&(r=t,t=e),n.readdir(e,(function(o,s){var c,l,d=0;if(o)return r(o);!function o(){if(!(c=s[d++]))return r(null,a);l=i.join(e,c),n.stat(l,(function(e,r){a.push({path:l,relative:i.relative(t,l).replace(/\\/g,"/"),stats:r}),r&&r.isDirectory()?u.walkdir(l,t,(function(e,t){t.forEach((function(e){a.push(e)})),o()})):o()}))}()}))}},67808:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CsvParserStream=t.ParserOptions=t.parseFile=t.parseStream=t.parseString=t.parse=t.FormatterOptions=t.CsvFormatterStream=t.writeToPath=t.writeToString=t.writeToBuffer=t.writeToStream=t.write=t.format=void 0;var n=r(1696);Object.defineProperty(t,"format",{enumerable:!0,get:function(){return n.format}}),Object.defineProperty(t,"write",{enumerable:!0,get:function(){return n.write}}),Object.defineProperty(t,"writeToStream",{enumerable:!0,get:function(){return n.writeToStream}}),Object.defineProperty(t,"writeToBuffer",{enumerable:!0,get:function(){return n.writeToBuffer}}),Object.defineProperty(t,"writeToString",{enumerable:!0,get:function(){return n.writeToString}}),Object.defineProperty(t,"writeToPath",{enumerable:!0,get:function(){return n.writeToPath}}),Object.defineProperty(t,"CsvFormatterStream",{enumerable:!0,get:function(){return n.CsvFormatterStream}}),Object.defineProperty(t,"FormatterOptions",{enumerable:!0,get:function(){return n.FormatterOptions}});var i=r(77190);Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return i.parse}}),Object.defineProperty(t,"parseString",{enumerable:!0,get:function(){return i.parseString}}),Object.defineProperty(t,"parseStream",{enumerable:!0,get:function(){return i.parseStream}}),Object.defineProperty(t,"parseFile",{enumerable:!0,get:function(){return i.parseFile}}),Object.defineProperty(t,"ParserOptions",{enumerable:!0,get:function(){return i.ParserOptions}}),Object.defineProperty(t,"CsvParserStream",{enumerable:!0,get:function(){return i.CsvParserStream}})},72170:(e,t,r)=>{e.exports=r(79896).constants||r(49140)},61455:(e,t,r)=>{e.exports=u,u.realpath=u,u.sync=d,u.realpathSync=d,u.monkeypatch=function(){n.realpath=u,n.realpathSync=d},u.unmonkeypatch=function(){n.realpath=i,n.realpathSync=a};var n=r(79896),i=n.realpath,a=n.realpathSync,o=process.version,s=/^v[0-5]\./.test(o),c=r(46674);function l(e){return e&&"realpath"===e.syscall&&("ELOOP"===e.code||"ENOMEM"===e.code||"ENAMETOOLONG"===e.code)}function u(e,t,r){if(s)return i(e,t,r);"function"==typeof t&&(r=t,t=null),i(e,t,(function(n,i){l(n)?c.realpath(e,t,r):r(n,i)}))}function d(e,t){if(s)return a(e,t);try{return a(e,t)}catch(r){if(l(r))return c.realpathSync(e,t);throw r}}},46674:(e,t,r)=>{var n=r(16928),i="win32"===process.platform,a=r(79896),o=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function s(e){return"function"==typeof e?e:function(){var e;if(o){var t=new Error;e=function(e){e&&(t.message=e.message,r(e=t))}}else e=r;return e;function r(e){if(e){if(process.throwDeprecation)throw e;if(!process.noDeprecation){var t="fs: missing callback "+(e.stack||e.message);process.traceDeprecation?console.trace(t):console.error(t)}}}}()}n.normalize;if(i)var c=/(.*?)(?:[\/\\]+|$)/g;else c=/(.*?)(?:[\/]+|$)/g;if(i)var l=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else l=/^[\/]*/;t.realpathSync=function(e,t){if(e=n.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return t[e];var r,o,s,u,d=e,p={},f={};function m(){var t=l.exec(e);r=t[0].length,o=t[0],s=t[0],u="",i&&!f[s]&&(a.lstatSync(s),f[s]=!0)}for(m();r<e.length;){c.lastIndex=r;var g=c.exec(e);if(u=o,o+=g[0],s=u+g[1],r=c.lastIndex,!(f[s]||t&&t[s]===s)){var _;if(t&&Object.prototype.hasOwnProperty.call(t,s))_=t[s];else{var h=a.lstatSync(s);if(!h.isSymbolicLink()){f[s]=!0,t&&(t[s]=s);continue}var y=null;if(!i){var v=h.dev.toString(32)+":"+h.ino.toString(32);p.hasOwnProperty(v)&&(y=p[v])}null===y&&(a.statSync(s),y=a.readlinkSync(s)),_=n.resolve(u,y),t&&(t[s]=_),i||(p[v]=y)}e=n.resolve(_,e.slice(r)),m()}}return t&&(t[d]=e),e},t.realpath=function(e,t,r){if("function"!=typeof r&&(r=s(t),t=null),e=n.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return process.nextTick(r.bind(null,null,t[e]));var o,u,d,p,f=e,m={},g={};function _(){var t=l.exec(e);o=t[0].length,u=t[0],d=t[0],p="",i&&!g[d]?a.lstat(d,(function(e){if(e)return r(e);g[d]=!0,h()})):process.nextTick(h)}function h(){if(o>=e.length)return t&&(t[f]=e),r(null,e);c.lastIndex=o;var n=c.exec(e);return p=u,u+=n[0],d=p+n[1],o=c.lastIndex,g[d]||t&&t[d]===d?process.nextTick(h):t&&Object.prototype.hasOwnProperty.call(t,d)?b(t[d]):a.lstat(d,y)}function y(e,n){if(e)return r(e);if(!n.isSymbolicLink())return g[d]=!0,t&&(t[d]=d),process.nextTick(h);if(!i){var o=n.dev.toString(32)+":"+n.ino.toString(32);if(m.hasOwnProperty(o))return v(null,m[o],d)}a.stat(d,(function(e){if(e)return r(e);a.readlink(d,(function(e,t){i||(m[o]=t),v(e,t)}))}))}function v(e,i,a){if(e)return r(e);var o=n.resolve(p,i);t&&(t[a]=o),b(o)}function b(t){e=n.resolve(t,e.slice(o)),_()}_()}},41723:(e,t,r)=>{r(40983),r(13942),t.Writer=r(89510),t.ZH={Reader:r(64315),Writer:r(37291)},t.ig={Reader:r(61468),Writer:r(75064)},t.N_={Reader:r(65657),Writer:r(55509)},t.by={Reader:r(58349),Writer:r(67225)},t.ig.Reader,t.ZH.Reader,t.N_.Reader,t.by.Reader,t.Writer.Dir=t.ig.Writer,t.Writer.File=t.ZH.Writer,t.Writer.Link=t.N_.Writer,t.Writer.Proxy=t.by.Writer,r(65243)},40983:(e,t,r)=>{e.exports=i;var n=r(2203).Stream;function i(){n.call(this)}function a(e,t,r){return e instanceof Error||(e=new Error(e)),e.code=e.code||t,e.path=e.path||r.path,e.fstream_type=e.fstream_type||r.type,e.fstream_path=e.fstream_path||r.path,r._path!==r.path&&(e.fstream_unc_path=e.fstream_unc_path||r._path),r.linkpath&&(e.fstream_linkpath=e.fstream_linkpath||r.linkpath),e.fstream_class=e.fstream_class||r.constructor.name,e.fstream_stack=e.fstream_stack||(new Error).stack.split(/\n/).slice(3).map((function(e){return e.replace(/^ {4}at /,"")})),e}r(72017)(i,n),i.prototype.on=function(e,t){return"ready"===e&&this.ready?process.nextTick(t.bind(this)):n.prototype.on.call(this,e,t),this},i.prototype.abort=function(){this._aborted=!0,this.emit("abort")},i.prototype.destroy=function(){},i.prototype.warn=function(e,t){var r=this,n=a(e,t,r);r.listeners("warn")?r.emit("warn",n):console.error("%s %s\npath = %s\nsyscall = %s\nfstream_type = %s\nfstream_path = %s\nfstream_unc_path = %s\nfstream_class = %s\nfstream_stack =\n%s\n",t||"UNKNOWN",n.stack,n.path,n.syscall,n.fstream_type,n.fstream_path,n.fstream_unc_path,n.fstream_class,n.fstream_stack.join("\n"))},i.prototype.info=function(e,t){this.emit("info",e,t)},i.prototype.error=function(e,t,r){var n=a(e,t,this);if(r)throw n;this.emit("error",n)}},65243:e=>{e.exports=function e(t){if(t._collected)return;if(t._paused)return t.on("resume",e.bind(null,t));t._collected=!0,t.pause(),t.on("data",n),t.on("end",n);var r=[];function n(e){"string"==typeof e&&(e=new Buffer(e)),Buffer.isBuffer(e)&&!e.length||r.push(e)}t.on("entry",a);var i=[];function a(t){e(t),i.push(t)}t.on("proxy",(function(e){e.pause()})),t.pipe=(o=t.pipe,function(e){var s=0;return function c(){var l=i[s++];if(!l)return t.removeListener("entry",a),t.removeListener("data",n),t.removeListener("end",n),t.pipe=o,e&&t.pipe(e),r.forEach((function(e){e?t.emit("data",e):t.emit("end")})),void t.resume();l.on("end",c),e?e.add(l):t.emit("entry",l)}(),e});var o}},61468:(e,t,r)=>{e.exports=c;var n=r(63735),i=r(72017),a=r(16928),o=r(13942),s=r(42613).ok;function c(e){var t=this;if(!(t instanceof c))throw new Error("DirReader must be called as constructor.");if("Directory"!==e.type||!e.Directory)throw new Error("Non-directory type "+e.type);t.entries=null,t._index=-1,t._paused=!1,t._length=-1,e.sort&&(this.sort=e.sort),o.call(this,e)}i(c,o),c.prototype._getEntries=function(){var e=this;e._gotEntries||(e._gotEntries=!0,n.readdir(e._path,(function(t,r){if(t)return e.error(t);function n(){e._length=e.entries.length,"function"==typeof e.sort&&(e.entries=e.entries.sort(e.sort.bind(e))),e._read()}e.entries=r,e.emit("entries",r),e._paused?e.once("resume",n):n()})))},c.prototype._read=function(){var e=this;if(!e.entries)return e._getEntries();if(!(e._paused||e._currentEntry||e._aborted))if(e._index++,e._index>=e.entries.length)e._ended||(e._ended=!0,e.emit("end"),e.emit("close"));else{var t=a.resolve(e._path,e.entries[e._index]);s(t!==e._path),s(e.entries[e._index]),e._currentEntry=t,n[e.props.follow?"stat":"lstat"](t,(function(r,n){if(r)return e.error(r);var i=e._proxy||e;n.path=t,n.basename=a.basename(t),n.dirname=a.dirname(t);var s=e.getChildProps.call(i,n);s.path=t,s.basename=a.basename(t),s.dirname=a.dirname(t);var c=o(s,n);e._currentEntry=c,c.on("pause",(function(t){e._paused||c._disowned||e.pause(t)})),c.on("resume",(function(t){e._paused&&!c._disowned&&e.resume(t)})),c.on("stat",(function(t){e.emit("_entryStat",c,t),c._aborted||(c._paused?c.once("resume",(function(){e.emit("entryStat",c,t)})):e.emit("entryStat",c,t))})),c.on("ready",(function t(){if(e._paused)return c.pause(e),e.once("resume",t);"Socket"===c.type?e.emit("socket",c):e.emitEntry(c)}));var l=!1;function u(){l||(l=!0,e.emit("childEnd",c),e.emit("entryEnd",c),e._currentEntry=null,e._paused||e._read())}c.on("close",u),c.on("disown",u),c.on("error",(function(t){c._swallowErrors?(e.warn(t),c.emit("end"),c.emit("close")):e.emit("error",t)})),["child","childEnd","warn"].forEach((function(t){c.on(t,e.emit.bind(e,t))}))}))}},c.prototype.disown=function(e){e.emit("beforeDisown"),e._disowned=!0,e.parent=e.root=null,e===this._currentEntry&&(this._currentEntry=null),e.emit("disown")},c.prototype.getChildProps=function(){return{depth:this.depth+1,root:this.root||this,parent:this,follow:this.follow,filter:this.filter,sort:this.props.sort,hardlinks:this.props.hardlinks}},c.prototype.pause=function(e){var t=this;t._paused||(e=e||t,t._paused=!0,t._currentEntry&&t._currentEntry.pause&&t._currentEntry.pause(e),t.emit("pause",e))},c.prototype.resume=function(e){var t=this;t._paused&&(e=e||t,t._paused=!1,t.emit("resume",e),t._paused||(t._currentEntry?t._currentEntry.resume&&t._currentEntry.resume(e):t._read()))},c.prototype.emitEntry=function(e){this.emit("entry",e),this.emit("child",e)}},75064:(e,t,r)=>{e.exports=c;var n=r(89510),i=r(72017),a=r(43480),o=r(16928),s=r(65243);function c(e){var t=this;t instanceof c||t.error("DirWriter must be called as constructor.",null,!0),"Directory"===e.type&&e.Directory||t.error("Non-directory type "+e.type+" "+JSON.stringify(e),null,!0),n.call(this,e)}i(c,n),c.prototype._create=function(){var e=this;a(e._path,n.dirmode,(function(t){if(t)return e.error(t);e.ready=!0,e.emit("ready"),e._process()}))},c.prototype.write=function(){return!0},c.prototype.end=function(){this._ended=!0,this._process()},c.prototype.add=function(e){var t=this;return s(e),!t.ready||t._currentEntry?(t._buffer.push(e),!1):t._ended?t.error("add after end"):(t._buffer.push(e),t._process(),0===this._buffer.length)},c.prototype._process=function(){var e=this;if(!e._processing){var t=e._buffer.shift();if(!t)return e.emit("drain"),void(e._ended&&e._finish());e._processing=!0,e.emit("entry",t);var r,i=t;do{if((r=i._path||i.path)===e.root._path||r===e._path||r&&0===r.indexOf(e._path))return e._processing=!1,t._collected&&t.pipe(),e._process();i=i.parent}while(i);var a={parent:e,root:e.root||e,type:t.type,depth:e.depth+1};r=t._path||t.path||t.props.path,t.parent&&(r=r.substr(t.parent._path.length+1)),a.path=o.join(e.path,o.join("/",r)),a.filter=e.filter,Object.keys(t.props).forEach((function(e){a.hasOwnProperty(e)||(a[e]=t.props[e])}));var s=e._currentChild=new n(a);s.on("ready",(function(){t.pipe(s),t.resume()})),s.on("error",(function(t){s._swallowErrors?(e.warn(t),s.emit("end"),s.emit("close")):e.emit("error",t)})),s.on("close",(function(){if(c)return;c=!0,e._currentChild=null,e._processing=!1,e._process()}));var c=!1}}},64315:(e,t,r)=>{e.exports=c;var n=r(63735),i=r(72017),a=r(13942),o={EOF:!0},s={CLOSE:!0};function c(e){var t=this;if(!(t instanceof c))throw new Error("FileReader must be called as constructor.");if(!("Link"===e.type&&e.Link||"File"===e.type&&e.File))throw new Error("Non-file type "+e.type);t._buffer=[],t._bytesEmitted=0,a.call(t,e)}i(c,a),c.prototype._getStream=function(){var e=this,t=e._stream=n.createReadStream(e._path,e.props);e.props.blksize&&(t.bufferSize=e.props.blksize),t.on("open",e.emit.bind(e,"open")),t.on("data",(function(t){e._bytesEmitted+=t.length,t.length&&(e._paused||e._buffer.length?(e._buffer.push(t),e._read()):e.emit("data",t))})),t.on("end",(function(){e._paused||e._buffer.length?(e._buffer.push(o),e._read()):e.emit("end"),e._bytesEmitted!==e.props.size&&e.error("Didn't get expected byte count\nexpect: "+e.props.size+"\nactual: "+e._bytesEmitted)})),t.on("close",(function(){e._paused||e._buffer.length?(e._buffer.push(s),e._read()):e.emit("close")})),t.on("error",(function(t){e.emit("error",t)})),e._read()},c.prototype._read=function(){var e=this;if(!e._paused){if(!e._stream)return e._getStream();if(e._buffer.length){for(var t=e._buffer,r=0,n=t.length;r<n;r++){var i=t[r];if(i===o?e.emit("end"):i===s?e.emit("close"):e.emit("data",i),e._paused)return void(e._buffer=t.slice(r))}e._buffer.length=0}}},c.prototype.pause=function(e){var t=this;t._paused||(e=e||t,t._paused=!0,t._stream&&t._stream.pause(),t.emit("pause",e))},c.prototype.resume=function(e){var t=this;t._paused&&(e=e||t,t.emit("resume",e),t._paused=!1,t._stream&&t._stream.resume(),t._read())}},37291:(e,t,r)=>{e.exports=s;var n=r(63735),i=r(89510),a=r(72017),o={};function s(e){var t=this;if(!(t instanceof s))throw new Error("FileWriter must be called as constructor.");if("File"!==e.type||!e.File)throw new Error("Non-file type "+e.type);t._buffer=[],t._bytesWritten=0,i.call(this,e)}a(s,i),s.prototype._create=function(){var e=this;if(!e._stream){var t={};e.props.flags&&(t.flags=e.props.flags),t.mode=i.filemode,e._old&&e._old.blksize&&(t.bufferSize=e._old.blksize),e._stream=n.createWriteStream(e._path,t),e._stream.on("open",(function(){e.ready=!0,e._buffer.forEach((function(t){t===o?e._stream.end():e._stream.write(t)})),e.emit("ready"),e.emit("drain")})),e._stream.on("error",(function(t){e.emit("error",t)})),e._stream.on("drain",(function(){e.emit("drain")})),e._stream.on("close",(function(){e._finish()}))}},s.prototype.write=function(e){var t=this;if(t._bytesWritten+=e.length,!t.ready){if(!Buffer.isBuffer(e)&&"string"!=typeof e)throw new Error("invalid write data");return t._buffer.push(e),!1}var r=t._stream.write(e);return!1===r&&t._stream._queue?t._stream._queue.length<=2:r},s.prototype.end=function(e){var t=this;return e&&t.write(e),t.ready?t._stream.end():(t._buffer.push(o),!1)},s.prototype._finish=function(){var e=this;"number"==typeof e.size&&e._bytesWritten!==e.size&&e.error("Did not get expected byte count.\nexpect: "+e.size+"\nactual: "+e._bytesWritten),i.prototype._finish.call(e)}},54186:e=>{e.exports=function(e){var t,r=["Directory","File","SymbolicLink","Link","BlockDevice","CharacterDevice","FIFO","Socket"];if(e.type&&-1!==r.indexOf(e.type))return e[e.type]=!0,e.type;for(var n=0,i=r.length;n<i;n++){var a=e[t=r[n]]||e["is"+t];if("function"==typeof a&&(a=a.call(e)),a)return e[t]=!0,e.type=t,t}return null}},65657:(e,t,r)=>{e.exports=o;var n=r(63735),i=r(72017),a=r(13942);function o(e){if(!(this instanceof o))throw new Error("LinkReader must be called as constructor.");if(!("Link"===e.type&&e.Link||"SymbolicLink"===e.type&&e.SymbolicLink))throw new Error("Non-link type "+e.type);a.call(this,e)}i(o,a),o.prototype._stat=function(e){var t=this;n.readlink(t._path,(function(r,n){if(r)return t.error(r);t.linkpath=t.props.linkpath=n,t.emit("linkpath",n),a.prototype._stat.call(t,e)}))},o.prototype._read=function(){var e=this;e._paused||e._ended||(e.emit("end"),e.emit("close"),e._ended=!0)}},55509:(e,t,r)=>{e.exports=c;var n=r(63735),i=r(89510),a=r(72017),o=r(16928),s=r(4239);function c(e){if(!(this instanceof c))throw new Error("LinkWriter must be called as constructor.");if(!("Link"===e.type&&e.Link||"SymbolicLink"===e.type&&e.SymbolicLink))throw new Error("Non-link type "+e.type);""===e.linkpath&&(e.linkpath="."),e.linkpath||this.error("Need linkpath property to create "+e.type),i.call(this,e)}function l(e,t,r){s(e._path,(function(i){if(i)return e.error(i);!function(e,t,r){n[r](t,e._path,(function(t){if(t){if("ENOENT"!==t.code&&"EACCES"!==t.code&&"EPERM"!==t.code||"win32"!==process.platform)return e.error(t);e.ready=!0,e.emit("ready"),e.emit("end"),e.emit("close"),e.end=e._finish=function(){}}u(e)}))}(e,t,r)}))}function u(e){e.ready=!0,e.emit("ready"),e._ended&&!e._finished&&e._finish()}a(c,i),c.prototype._create=function(){var e=this,t="Link"===e.type||"win32"===process.platform,r=t?"link":"symlink",i=t?o.resolve(e.dirname,e.linkpath):e.linkpath;if(t)return l(e,i,r);n.readlink(e._path,(function(t,n){if(n&&n===i)return u(e);l(e,i,r)}))},c.prototype.end=function(){this._ended=!0,this.ready&&(this._finished=!0,this._finish())}},58349:(e,t,r)=>{e.exports=s;var n=r(13942),i=r(54186),a=r(72017),o=r(63735);function s(e){var t=this;if(!(t instanceof s))throw new Error("ProxyReader must be called as constructor.");t.props=e,t._buffer=[],t.ready=!1,n.call(t,e)}a(s,n),s.prototype._stat=function(){var e=this,t=e.props,r=t.follow?"stat":"lstat";o[r](t.path,(function(r,a){var o;o=r||!a?"File":i(a),t[o]=!0,t.type=e.type=o,e._old=a,e._addProxy(n(t,a))}))},s.prototype._addProxy=function(e){var t=this;if(t._proxyTarget)return t.error("proxy already set");t._proxyTarget=e,e._proxy=t,["error","data","end","close","linkpath","entry","entryEnd","child","childEnd","warn","stat"].forEach((function(r){e.on(r,t.emit.bind(t,r))})),t.emit("proxy",e),e.on("ready",(function(){t.ready=!0,t.emit("ready")}));var r=t._buffer;t._buffer.length=0,r.forEach((function(t){e[t[0]].apply(e,t[1])}))},s.prototype.pause=function(){return!!this._proxyTarget&&this._proxyTarget.pause()},s.prototype.resume=function(){return!!this._proxyTarget&&this._proxyTarget.resume()}},67225:(e,t,r)=>{e.exports=c;var n=r(89510),i=r(54186),a=r(72017),o=r(65243),s=r(79896);function c(e){var t=this;if(!(t instanceof c))throw new Error("ProxyWriter must be called as constructor.");t.props=e,t._needDrain=!1,n.call(t,e)}a(c,n),c.prototype._stat=function(){var e=this,t=e.props,r=t.follow?"stat":"lstat";s[r](t.path,(function(r,a){var o;o=r||!a?"File":i(a),t[o]=!0,t.type=e.type=o,e._old=a,e._addProxy(n(t,a))}))},c.prototype._addProxy=function(e){var t=this;if(t._proxy)return t.error("proxy already set");t._proxy=e,["ready","error","close","pipe","drain","warn"].forEach((function(r){e.on(r,t.emit.bind(t,r))})),t.emit("proxy",e),t._buffer.forEach((function(t){e[t[0]].apply(e,t[1])})),t._buffer.length=0,t._needsDrain&&t.emit("drain")},c.prototype.add=function(e){return o(e),this._proxy?this._proxy.add(e):(this._buffer.push(["add",[e]]),this._needDrain=!0,!1)},c.prototype.write=function(e){return this._proxy?this._proxy.write(e):(this._buffer.push(["write",[e]]),this._needDrain=!0,!1)},c.prototype.end=function(e){return this._proxy?this._proxy.end(e):(this._buffer.push(["end",[e]]),!1)}},13942:(e,t,r)=>{e.exports=d;var n=r(63735),i=r(2203).Stream,a=r(72017),o=r(16928),s=r(54186),c=d.hardLinks={},l=r(40983);a(d,l);var u=r(65657);function d(e,t){var n,i,a=this;if(!(a instanceof d))return new d(e,t);switch("string"==typeof e&&(e={path:e}),e.type&&"function"==typeof e.type?i=n=e.type:(n=s(e),i=d),t&&!n&&(e[n=s(t)]=!0,e.type=n),n){case"Directory":i=r(61468);break;case"Link":case"File":i=r(64315);break;case"SymbolicLink":i=u;break;case"Socket":i=r(36206);break;case null:i=r(58349)}if(!(a instanceof i))return new i(e);l.call(a),e.path||a.error("Must provide a path",null,!0),a.readable=!0,a.writable=!1,a.type=n,a.props=e,a.depth=e.depth=e.depth||0,a.parent=e.parent||null,a.root=e.root||e.parent&&e.parent.root||a,a._path=a.path=o.resolve(e.path),"win32"===process.platform&&(a.path=a._path=a.path.replace(/\?/g,"_"),a._path.length>=260&&(a._swallowErrors=!0,a._path="\\\\?\\"+a.path.replace(/\//g,"\\"))),a.basename=e.basename=o.basename(a.path),a.dirname=e.dirname=o.dirname(a.path),e.parent=e.root=null,a.size=e.size,a.filter="function"==typeof e.filter?e.filter:null,"alpha"===e.sort&&(e.sort=p),a._stat(t)}function p(e,t){return e===t?0:e.toLowerCase()>t.toLowerCase()?1:e.toLowerCase()<t.toLowerCase()?-1:e>t?1:-1}d.prototype._stat=function(e){var t=this,r=t.props,i=r.follow?"stat":"lstat";function a(e,n){if(e)return t.error(e);if(Object.keys(n).forEach((function(e){r[e]=n[e]})),void 0!==t.size&&r.size!==t.size)return t.error("incorrect size");t.size=r.size;var i=s(r);if(!1!==r.hardlinks&&"Directory"!==i&&r.nlink&&r.nlink>1){var a=r.dev+":"+r.ino;c[a]!==t._path&&c[a]?(i=t.type=t.props.type="Link",t.Link=t.props.Link=!0,t.linkpath=t.props.linkpath=c[a],t._stat=t._read=u.prototype._read):c[a]=t._path}if(t.type&&t.type!==i&&t.error("Unexpected type: "+i),t.filter){var o=t._proxy||t;if(!t.filter.call(o,o,r))return void(t._disowned||(t.abort(),t.emit("end"),t.emit("close")))}var l=["_stat","stat","ready"],d=0;!function e(){if(t._aborted)return t.emit("end"),void t.emit("close");if(t._paused&&"Directory"!==t.type)t.once("resume",e);else{var n=l[d++];if(!n)return t._read();t.emit(n,r),e()}}()}e?process.nextTick(a.bind(null,null,e)):n[i](t._path,a)},d.prototype.pipe=function(e){var t=this;return"function"==typeof e.add&&t.on("entry",(function(r){!1===e.add(r)&&t.pause()})),i.prototype.pipe.apply(this,arguments)},d.prototype.pause=function(e){this._paused=!0,e=e||this,this.emit("pause",e),this._stream&&this._stream.pause(e)},d.prototype.resume=function(e){this._paused=!1,e=e||this,this.emit("resume",e),this._stream&&this._stream.resume(e),this._read()},d.prototype._read=function(){this.error("Cannot read unknown type: "+this.type)}},36206:(e,t,r)=>{e.exports=a;var n=r(72017),i=r(13942);function a(e){if(!(this instanceof a))throw new Error("SocketReader must be called as constructor.");if("Socket"!==e.type||!e.Socket)throw new Error("Non-socket type "+e.type);i.call(this,e)}n(a,i),a.prototype._read=function(){var e=this;e._paused||e._ended||(e.emit("end"),e.emit("close"),e._ended=!0)}},89510:(e,t,r)=>{e.exports=g;var n=r(63735),i=r(72017),a=r(4239),o=r(43480),s=r(16928),c="win32"===process.platform?0:process.umask(),l=r(54186),u=r(40983);i(g,u),g.dirmode=parseInt("0777",8)&~c,g.filemode=parseInt("0666",8)&~c;var d=r(75064),p=r(55509),f=r(37291),m=r(67225);function g(e,t){var r=this;"string"==typeof e&&(e={path:e});var n=g;switch(l(e)){case"Directory":n=d;break;case"File":n=f;break;case"Link":case"SymbolicLink":n=p;break;default:n=m}if(!(r instanceof n))return new n(e);u.call(r),e.path||r.error("Must provide a path",null,!0),r.type=e.type,r.props=e,r.depth=e.depth||0,r.clobber=!1!==e.clobber||e.clobber,r.parent=e.parent||null,r.root=e.root||e.parent&&e.parent.root||r,r._path=r.path=s.resolve(e.path),"win32"===process.platform&&(r.path=r._path=r.path.replace(/\?/g,"_"),r._path.length>=260&&(r._swallowErrors=!0,r._path="\\\\?\\"+r.path.replace(/\//g,"\\"))),r.basename=s.basename(e.path),r.dirname=s.dirname(e.path),r.linkpath=e.linkpath||null,e.parent=e.root=null,r.size=e.size,"string"==typeof e.mode&&(e.mode=parseInt(e.mode,8)),r.readable=!1,r.writable=!0,r._buffer=[],r.ready=!1,r.filter="function"==typeof e.filter?e.filter:null,r._stat(t)}function _(e){o(s.dirname(e._path),g.dirmode,(function(t,r){return t?e.error(t):(e._madeDir=r,e._create())}))}function h(e,t,r,i,a){var o=t.mode,s=t.follow||"SymbolicLink"!==e.type?"chmod":"lchmod";if(!n[s])return a();if("number"!=typeof o)return a();var c=r.mode&parseInt("0777",8);if((o&=parseInt("0777",8))===c)return a();n[s](i,o,a)}function y(e,t,r,i,a){if("win32"===process.platform)return a();if(!process.getuid||0!==process.getuid())return a();if("number"!=typeof t.uid&&"number"!=typeof t.gid)return a();if(r.uid===t.uid&&r.gid===t.gid)return a();var o=e.props.follow||"SymbolicLink"!==e.type?"chown":"lchown";if(!n[o])return a();"number"!=typeof t.uid
[all...]

Completed in 46 milliseconds