@nocobase/plugin-backup-restore 1.9.45 → 1.9.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,15 +10,15 @@
10
10
  module.exports = {
11
11
  "@ant-design/icons": "5.6.1",
12
12
  "@formily/antd-v5": "1.2.3",
13
- "@nocobase/client": "1.9.45",
13
+ "@nocobase/client": "1.9.47",
14
14
  "antd": "5.24.2",
15
15
  "file-saver": "2.0.5",
16
16
  "react": "18.2.0",
17
- "@nocobase/server": "1.9.45",
18
- "@nocobase/utils": "1.9.45",
19
- "@nocobase/database": "1.9.45",
17
+ "@nocobase/server": "1.9.47",
18
+ "@nocobase/utils": "1.9.47",
19
+ "@nocobase/database": "1.9.47",
20
20
  "dayjs": "1.11.13",
21
21
  "lodash": "4.17.21",
22
22
  "react-i18next": "11.18.6",
23
- "@nocobase/actions": "1.9.45"
23
+ "@nocobase/actions": "1.9.47"
24
24
  };
@@ -1 +1 @@
1
- {"name":"@hapi/topo","description":"Topological sorting with grouping support","version":"6.0.2","repository":"git://github.com/hapijs/topo","main":"lib/index.js","types":"lib/index.d.ts","files":["lib"],"keywords":["topological","sort","toposort","topsort"],"eslintConfig":{"extends":["plugin:@hapi/module"]},"dependencies":{"@hapi/hoek":"^11.0.2"},"devDependencies":{"@hapi/code":"^9.0.3","@hapi/eslint-plugin":"*","@hapi/lab":"^25.1.2","@types/node":"^17.0.31","typescript":"~4.6.4"},"scripts":{"test":"lab -a @hapi/code -t 100 -L -Y","test-cov-html":"lab -a @hapi/code -t 100 -L -r html -o coverage.html"},"license":"BSD-3-Clause","_lastModified":"2026-02-09T15:04:15.942Z"}
1
+ {"name":"@hapi/topo","description":"Topological sorting with grouping support","version":"6.0.2","repository":"git://github.com/hapijs/topo","main":"lib/index.js","types":"lib/index.d.ts","files":["lib"],"keywords":["topological","sort","toposort","topsort"],"eslintConfig":{"extends":["plugin:@hapi/module"]},"dependencies":{"@hapi/hoek":"^11.0.2"},"devDependencies":{"@hapi/code":"^9.0.3","@hapi/eslint-plugin":"*","@hapi/lab":"^25.1.2","@types/node":"^17.0.31","typescript":"~4.6.4"},"scripts":{"test":"lab -a @hapi/code -t 100 -L -Y","test-cov-html":"lab -a @hapi/code -t 100 -L -r html -o coverage.html"},"license":"BSD-3-Clause","_lastModified":"2026-02-13T09:37:14.707Z"}
@@ -1 +1 @@
1
- {"name":"archiver","version":"5.3.2","description":"a streaming interface for archive generation","homepage":"https://github.com/archiverjs/node-archiver","author":{"name":"Chris Talkington","url":"http://christalkington.com/"},"repository":{"type":"git","url":"https://github.com/archiverjs/node-archiver.git"},"bugs":{"url":"https://github.com/archiverjs/node-archiver/issues"},"license":"MIT","main":"index.js","files":["index.js","lib"],"engines":{"node":">= 10"},"scripts":{"test":"mocha --reporter dot","bench":"node benchmark/simple/pack-zip.js"},"dependencies":{"archiver-utils":"^2.1.0","async":"^3.2.4","buffer-crc32":"^0.2.1","readable-stream":"^3.6.0","readdir-glob":"^1.1.2","tar-stream":"^2.2.0","zip-stream":"^4.1.0"},"devDependencies":{"archiver-jsdoc-theme":"^1.1.3","chai":"^4.3.7","jsdoc":"^3.6.4","mkdirp":"^2.1.5","mocha":"^9.0.2","rimraf":"^4.3.1","stream-bench":"^0.1.2","tar":"^6.1.13","yauzl":"^2.9.0"},"keywords":["archive","archiver","stream","zip","tar"],"publishConfig":{"registry":"https://registry.npmjs.org/"},"_lastModified":"2026-02-09T15:04:14.081Z"}
1
+ {"name":"archiver","version":"5.3.2","description":"a streaming interface for archive generation","homepage":"https://github.com/archiverjs/node-archiver","author":{"name":"Chris Talkington","url":"http://christalkington.com/"},"repository":{"type":"git","url":"https://github.com/archiverjs/node-archiver.git"},"bugs":{"url":"https://github.com/archiverjs/node-archiver/issues"},"license":"MIT","main":"index.js","files":["index.js","lib"],"engines":{"node":">= 10"},"scripts":{"test":"mocha --reporter dot","bench":"node benchmark/simple/pack-zip.js"},"dependencies":{"archiver-utils":"^2.1.0","async":"^3.2.4","buffer-crc32":"^0.2.1","readable-stream":"^3.6.0","readdir-glob":"^1.1.2","tar-stream":"^2.2.0","zip-stream":"^4.1.0"},"devDependencies":{"archiver-jsdoc-theme":"^1.1.3","chai":"^4.3.7","jsdoc":"^3.6.4","mkdirp":"^2.1.5","mocha":"^9.0.2","rimraf":"^4.3.1","stream-bench":"^0.1.2","tar":"^6.1.13","yauzl":"^2.9.0"},"keywords":["archive","archiver","stream","zip","tar"],"publishConfig":{"registry":"https://registry.npmjs.org/"},"_lastModified":"2026-02-13T09:37:12.652Z"}
@@ -1,4 +1,4 @@
1
- (function(){var e={6726:function(e){function allocUnsafe(e){if(typeof e!=="number"){throw new TypeError('"size" argument must be a number')}if(e<0){throw new RangeError('"size" argument must not be negative')}if(Buffer.allocUnsafe){return Buffer.allocUnsafe(e)}else{return new Buffer(e)}}e.exports=allocUnsafe},6615:function(e,t,r){var i=r(2852);var n=r(6726);e.exports=function alloc(e,t,r){if(typeof e!=="number"){throw new TypeError('"size" argument must be a number')}if(e<0){throw new RangeError('"size" argument must not be negative')}if(Buffer.alloc){return Buffer.alloc(e,t,r)}var o=n(e);if(e===0){return o}if(t===undefined){return i(o,0)}if(typeof r!=="string"){r=undefined}return i(o,t,r)}},4794:function(e,t,r){var i=r(4300).Buffer;var n=[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];if(typeof Int32Array!=="undefined"){n=new Int32Array(n)}function ensureBuffer(e){if(i.isBuffer(e)){return e}var t=typeof i.alloc==="function"&&typeof i.from==="function";if(typeof e==="number"){return t?i.alloc(e):new i(e)}else if(typeof e==="string"){return t?i.from(e):new i(e)}else{throw new Error("input must be buffer, number, or string, received "+typeof e)}}function bufferizeInt(e){var t=ensureBuffer(4);t.writeInt32BE(e,0);return t}function _crc32(e,t){e=ensureBuffer(e);if(i.isBuffer(t)){t=t.readUInt32BE(0)}var r=~~t^-1;for(var o=0;o<e.length;o++){r=n[(r^e[o])&255]^r>>>8}return r^-1}function crc32(){return bufferizeInt(_crc32.apply(null,arguments))}crc32.signed=function(){return _crc32.apply(null,arguments)};crc32.unsigned=function(){return _crc32.apply(null,arguments)>>>0};e.exports=crc32},2852:function(e){var t=function(){try{if(!Buffer.isEncoding("latin1")){return false}var e=Buffer.alloc?Buffer.alloc(4):new Buffer(4);e.fill("ab","ucs2");return e.toString("hex")==="61006200"}catch(e){return false}}();function isSingleByte(e){return e.length===1&&e.charCodeAt(0)<256}function fillWithNumber(e,t,r,i){if(r<0||i>e.length){throw new RangeError("Out of range index")}r=r>>>0;i=i===undefined?e.length:i>>>0;if(i>r){e.fill(t,r,i)}return e}function fillWithBuffer(e,t,r,i){if(r<0||i>e.length){throw new RangeError("Out of range index")}if(i<=r){return e}r=r>>>0;i=i===undefined?e.length:i>>>0;var n=r;var o=t.length;while(n<=i-o){t.copy(e,n);n+=o}if(n!==i){t.copy(e,n,0,i-n)}return e}function fill(e,r,i,n,o){if(t){return e.fill(r,i,n,o)}if(typeof r==="number"){return fillWithNumber(e,r,i,n)}if(typeof r==="string"){if(typeof i==="string"){o=i;i=0;n=e.length}else if(typeof n==="string"){o=n;n=e.length}if(o!==undefined&&typeof o!=="string"){throw new TypeError("encoding must be a string")}if(o==="latin1"){o="binary"}if(typeof o==="string"&&!Buffer.isEncoding(o)){throw new TypeError("Unknown encoding: "+o)}if(r===""){return fillWithNumber(e,0,i,n)}if(isSingleByte(r)){return fillWithNumber(e,r.charCodeAt(0),i,n)}r=new Buffer(r,o)}if(Buffer.isBuffer(r)){return fillWithBuffer(e,r,i,n)}return fillWithNumber(e,0,i,n)}e.exports=fill},5898:function(e,t,r){function isArray(e){if(Array.isArray){return Array.isArray(e)}return objectToString(e)==="[object Array]"}t.isArray=isArray;function isBoolean(e){return typeof e==="boolean"}t.isBoolean=isBoolean;function isNull(e){return e===null}t.isNull=isNull;function isNullOrUndefined(e){return e==null}t.isNullOrUndefined=isNullOrUndefined;function isNumber(e){return typeof e==="number"}t.isNumber=isNumber;function isString(e){return typeof e==="string"}t.isString=isString;function isSymbol(e){return typeof e==="symbol"}t.isSymbol=isSymbol;function isUndefined(e){return e===void 0}t.isUndefined=isUndefined;function isRegExp(e){return objectToString(e)==="[object RegExp]"}t.isRegExp=isRegExp;function isObject(e){return typeof e==="object"&&e!==null}t.isObject=isObject;function isDate(e){return objectToString(e)==="[object Date]"}t.isDate=isDate;function isError(e){return objectToString(e)==="[object Error]"||e instanceof Error}t.isError=isError;function isFunction(e){return typeof e==="function"}t.isFunction=isFunction;function isPrimitive(e){return e===null||typeof e==="boolean"||typeof e==="number"||typeof e==="string"||typeof e==="symbol"||typeof e==="undefined"}t.isPrimitive=isPrimitive;t.isBuffer=r(4300).Buffer.isBuffer;function objectToString(e){return Object.prototype.toString.call(e)}},3235:function(e,t,r){"use strict";const i=r(8300);const n=r(1554);const o=r(2283);e.exports=()=>e=>{if(!Buffer.isBuffer(e)&&!n(e)){return Promise.reject(new TypeError(`Expected a Buffer or Stream, got ${typeof e}`))}if(Buffer.isBuffer(e)&&(!i(e)||i(e).ext!=="tar")){return Promise.resolve([])}const t=o.extract();const r=[];t.on("entry",((e,t,i)=>{const n=[];t.on("data",(e=>n.push(e)));t.on("end",(()=>{const t={data:Buffer.concat(n),mode:e.mode,mtime:e.mtime,path:e.name,type:e.type};if(e.type==="symlink"||e.type==="link"){t.linkname=e.linkname}r.push(t);i()}))}));const a=new Promise(((i,n)=>{if(!Buffer.isBuffer(e)){e.on("error",n)}t.on("finish",(()=>i(r)));t.on("error",n)}));t.then=a.then.bind(a);t.catch=a.catch.bind(a);if(Buffer.isBuffer(e)){t.end(e)}else{e.pipe(t)}return t}},8300:function(e){"use strict";e.exports=e=>{const t=new Uint8Array(e);if(!(t&&t.length>1)){return null}const check=(e,r)=>{r=Object.assign({offset:0},r);for(let i=0;i<e.length;i++){if(e[i]!==t[i+r.offset]){return false}}return true};if(check([255,216,255])){return{ext:"jpg",mime:"image/jpeg"}}if(check([137,80,78,71,13,10,26,10])){return{ext:"png",mime:"image/png"}}if(check([71,73,70])){return{ext:"gif",mime:"image/gif"}}if(check([87,69,66,80],{offset:8})){return{ext:"webp",mime:"image/webp"}}if(check([70,76,73,70])){return{ext:"flif",mime:"image/flif"}}if((check([73,73,42,0])||check([77,77,0,42]))&&check([67,82],{offset:8})){return{ext:"cr2",mime:"image/x-canon-cr2"}}if(check([73,73,42,0])||check([77,77,0,42])){return{ext:"tif",mime:"image/tiff"}}if(check([66,77])){return{ext:"bmp",mime:"image/bmp"}}if(check([73,73,188])){return{ext:"jxr",mime:"image/vnd.ms-photo"}}if(check([56,66,80,83])){return{ext:"psd",mime:"image/vnd.adobe.photoshop"}}if(check([80,75,3,4])&&check([109,105,109,101,116,121,112,101,97,112,112,108,105,99,97,116,105,111,110,47,101,112,117,98,43,122,105,112],{offset:30})){return{ext:"epub",mime:"application/epub+zip"}}if(check([80,75,3,4])&&check([77,69,84,65,45,73,78,70,47,109,111,122,105,108,108,97,46,114,115,97],{offset:30})){return{ext:"xpi",mime:"application/x-xpinstall"}}if(check([80,75])&&(t[2]===3||t[2]===5||t[2]===7)&&(t[3]===4||t[3]===6||t[3]===8)){return{ext:"zip",mime:"application/zip"}}if(check([117,115,116,97,114],{offset:257})){return{ext:"tar",mime:"application/x-tar"}}if(check([82,97,114,33,26,7])&&(t[6]===0||t[6]===1)){return{ext:"rar",mime:"application/x-rar-compressed"}}if(check([31,139,8])){return{ext:"gz",mime:"application/gzip"}}if(check([66,90,104])){return{ext:"bz2",mime:"application/x-bzip2"}}if(check([55,122,188,175,39,28])){return{ext:"7z",mime:"application/x-7z-compressed"}}if(check([120,1])){return{ext:"dmg",mime:"application/x-apple-diskimage"}}if(check([0,0,0])&&(t[3]===24||t[3]===32)&&check([102,116,121,112],{offset:4})||check([51,103,112,53])||check([0,0,0,28,102,116,121,112,109,112,52,50])&&check([109,112,52,49,109,112,52,50,105,115,111,109],{offset:16})||check([0,0,0,28,102,116,121,112,105,115,111,109])||check([0,0,0,28,102,116,121,112,109,112,52,50,0,0,0,0])){return{ext:"mp4",mime:"video/mp4"}}if(check([0,0,0,28,102,116,121,112,77,52,86])){return{ext:"m4v",mime:"video/x-m4v"}}if(check([77,84,104,100])){return{ext:"mid",mime:"audio/midi"}}if(check([26,69,223,163])){const e=t.subarray(4,4+4096);const r=e.findIndex(((e,t,r)=>r[t]===66&&r[t+1]===130));if(r>=0){const t=r+3;const findDocType=r=>Array.from(r).every(((r,i)=>e[t+i]===r.charCodeAt(0)));if(findDocType("matroska")){return{ext:"mkv",mime:"video/x-matroska"}}if(findDocType("webm")){return{ext:"webm",mime:"video/webm"}}}}if(check([0,0,0,20,102,116,121,112,113,116,32,32])||check([102,114,101,101],{offset:4})||check([102,116,121,112,113,116,32,32],{offset:4})||check([109,100,97,116],{offset:4})||check([119,105,100,101],{offset:4})){return{ext:"mov",mime:"video/quicktime"}}if(check([82,73,70,70])&&check([65,86,73],{offset:8})){return{ext:"avi",mime:"video/x-msvideo"}}if(check([48,38,178,117,142,102,207,17,166,217])){return{ext:"wmv",mime:"video/x-ms-wmv"}}if(check([0,0,1,186])){return{ext:"mpg",mime:"video/mpeg"}}if(check([73,68,51])||check([255,251])){return{ext:"mp3",mime:"audio/mpeg"}}if(check([102,116,121,112,77,52,65],{offset:4})||check([77,52,65,32])){return{ext:"m4a",mime:"audio/m4a"}}if(check([79,112,117,115,72,101,97,100],{offset:28})){return{ext:"opus",mime:"audio/opus"}}if(check([79,103,103,83])){return{ext:"ogg",mime:"audio/ogg"}}if(check([102,76,97,67])){return{ext:"flac",mime:"audio/x-flac"}}if(check([82,73,70,70])&&check([87,65,86,69],{offset:8})){return{ext:"wav",mime:"audio/x-wav"}}if(check([35,33,65,77,82,10])){return{ext:"amr",mime:"audio/amr"}}if(check([37,80,68,70])){return{ext:"pdf",mime:"application/pdf"}}if(check([77,90])){return{ext:"exe",mime:"application/x-msdownload"}}if((t[0]===67||t[0]===70)&&check([87,83],{offset:1})){return{ext:"swf",mime:"application/x-shockwave-flash"}}if(check([123,92,114,116,102])){return{ext:"rtf",mime:"application/rtf"}}if(check([0,97,115,109])){return{ext:"wasm",mime:"application/wasm"}}if(check([119,79,70,70])&&(check([0,1,0,0],{offset:4})||check([79,84,84,79],{offset:4}))){return{ext:"woff",mime:"font/woff"}}if(check([119,79,70,50])&&(check([0,1,0,0],{offset:4})||check([79,84,84,79],{offset:4}))){return{ext:"woff2",mime:"font/woff2"}}if(check([76,80],{offset:34})&&(check([0,0,1],{offset:8})||check([1,0,2],{offset:8})||check([2,0,2],{offset:8}))){return{ext:"eot",mime:"application/octet-stream"}}if(check([0,1,0,0,0])){return{ext:"ttf",mime:"font/ttf"}}if(check([79,84,84,79,0])){return{ext:"otf",mime:"font/otf"}}if(check([0,0,1,0])){return{ext:"ico",mime:"image/x-icon"}}if(check([70,76,86,1])){return{ext:"flv",mime:"video/x-flv"}}if(check([37,33])){return{ext:"ps",mime:"application/postscript"}}if(check([253,55,122,88,90,0])){return{ext:"xz",mime:"application/x-xz"}}if(check([83,81,76,105])){return{ext:"sqlite",mime:"application/x-sqlite3"}}if(check([78,69,83,26])){return{ext:"nes",mime:"application/x-nintendo-nes-rom"}}if(check([67,114,50,52])){return{ext:"crx",mime:"application/x-google-chrome-extension"}}if(check([77,83,67,70])||check([73,83,99,40])){return{ext:"cab",mime:"application/vnd.ms-cab-compressed"}}if(check([33,60,97,114,99,104,62,10,100,101,98,105,97,110,45,98,105,110,97,114,121])){return{ext:"deb",mime:"application/x-deb"}}if(check([33,60,97,114,99,104,62])){return{ext:"ar",mime:"application/x-unix-archive"}}if(check([237,171,238,219])){return{ext:"rpm",mime:"application/x-rpm"}}if(check([31,160])||check([31,157])){return{ext:"Z",mime:"application/x-compress"}}if(check([76,90,73,80])){return{ext:"lz",mime:"application/x-lzip"}}if(check([208,207,17,224,161,177,26,225])){return{ext:"msi",mime:"application/x-msi"}}if(check([6,14,43,52,2,5,1,1,13,1,2,1,1,2])){return{ext:"mxf",mime:"application/mxf"}}if(check([71],{offset:4})&&(check([71],{offset:192})||check([71],{offset:196}))){return{ext:"mts",mime:"video/mp2t"}}if(check([66,76,69,78,68,69,82])){return{ext:"blend",mime:"application/x-blender"}}if(check([66,80,71,251])){return{ext:"bpg",mime:"image/bpg"}}return null}},2454:function(e,t,r){"use strict";const i=r(3235);const n=r(8688);const o=r(1554);const a=r(9562);const s=r(3467);e.exports=()=>e=>{if(!Buffer.isBuffer(e)&&!o(e)){return Promise.reject(new TypeError(`Expected a Buffer or Stream, got ${typeof e}`))}if(Buffer.isBuffer(e)&&(!n(e)||n(e).ext!=="bz2")){return Promise.resolve([])}if(Buffer.isBuffer(e)){return i()(a.decode(e))}return i()(e.pipe(s()))}},8688:function(e){"use strict";const toBytes=e=>Array.from(e).map((e=>e.charCodeAt(0)));const t=toBytes("META-INF/mozilla.rsa");const r=toBytes("[Content_Types].xml");const i=toBytes("_rels/.rels");e.exports=e=>{const n=new Uint8Array(e);if(!(n&&n.length>1)){return null}const check=(e,t)=>{t=Object.assign({offset:0},t);for(let r=0;r<e.length;r++){if(t.mask){if(e[r]!==(t.mask[r]&n[r+t.offset])){return false}}else if(e[r]!==n[r+t.offset]){return false}}return true};if(check([255,216,255])){return{ext:"jpg",mime:"image/jpeg"}}if(check([137,80,78,71,13,10,26,10])){return{ext:"png",mime:"image/png"}}if(check([71,73,70])){return{ext:"gif",mime:"image/gif"}}if(check([87,69,66,80],{offset:8})){return{ext:"webp",mime:"image/webp"}}if(check([70,76,73,70])){return{ext:"flif",mime:"image/flif"}}if((check([73,73,42,0])||check([77,77,0,42]))&&check([67,82],{offset:8})){return{ext:"cr2",mime:"image/x-canon-cr2"}}if(check([73,73,42,0])||check([77,77,0,42])){return{ext:"tif",mime:"image/tiff"}}if(check([66,77])){return{ext:"bmp",mime:"image/bmp"}}if(check([73,73,188])){return{ext:"jxr",mime:"image/vnd.ms-photo"}}if(check([56,66,80,83])){return{ext:"psd",mime:"image/vnd.adobe.photoshop"}}if(check([80,75,3,4])){if(check([109,105,109,101,116,121,112,101,97,112,112,108,105,99,97,116,105,111,110,47,101,112,117,98,43,122,105,112],{offset:30})){return{ext:"epub",mime:"application/epub+zip"}}if(check(t,{offset:30})){return{ext:"xpi",mime:"application/x-xpinstall"}}if(check(r,{offset:30})||check(i,{offset:30})){const e=n.subarray(4,4+2e3);const nextZipHeaderIndex=e=>e.findIndex(((e,t,r)=>r[t]===80&&r[t+1]===75&&r[t+2]===3&&r[t+3]===4));const t=nextZipHeaderIndex(e);if(t!==-1){const e=n.subarray(t+8,t+8+1e3);const r=nextZipHeaderIndex(e);if(r!==-1){const e=8+t+r+30;if(check(toBytes("word/"),{offset:e})){return{ext:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"}}if(check(toBytes("ppt/"),{offset:e})){return{ext:"pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"}}if(check(toBytes("xl/"),{offset:e})){return{ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}}}}}}if(check([80,75])&&(n[2]===3||n[2]===5||n[2]===7)&&(n[3]===4||n[3]===6||n[3]===8)){return{ext:"zip",mime:"application/zip"}}if(check([117,115,116,97,114],{offset:257})){return{ext:"tar",mime:"application/x-tar"}}if(check([82,97,114,33,26,7])&&(n[6]===0||n[6]===1)){return{ext:"rar",mime:"application/x-rar-compressed"}}if(check([31,139,8])){return{ext:"gz",mime:"application/gzip"}}if(check([66,90,104])){return{ext:"bz2",mime:"application/x-bzip2"}}if(check([55,122,188,175,39,28])){return{ext:"7z",mime:"application/x-7z-compressed"}}if(check([120,1])){return{ext:"dmg",mime:"application/x-apple-diskimage"}}if(check([51,103,112,53])||check([0,0,0])&&check([102,116,121,112],{offset:4})&&(check([109,112,52,49],{offset:8})||check([109,112,52,50],{offset:8})||check([105,115,111,109],{offset:8})||check([105,115,111,50],{offset:8})||check([109,109,112,52],{offset:8})||check([77,52,86],{offset:8})||check([100,97,115,104],{offset:8}))){return{ext:"mp4",mime:"video/mp4"}}if(check([77,84,104,100])){return{ext:"mid",mime:"audio/midi"}}if(check([26,69,223,163])){const e=n.subarray(4,4+4096);const t=e.findIndex(((e,t,r)=>r[t]===66&&r[t+1]===130));if(t!==-1){const r=t+3;const findDocType=t=>Array.from(t).every(((t,i)=>e[r+i]===t.charCodeAt(0)));if(findDocType("matroska")){return{ext:"mkv",mime:"video/x-matroska"}}if(findDocType("webm")){return{ext:"webm",mime:"video/webm"}}}}if(check([0,0,0,20,102,116,121,112,113,116,32,32])||check([102,114,101,101],{offset:4})||check([102,116,121,112,113,116,32,32],{offset:4})||check([109,100,97,116],{offset:4})||check([119,105,100,101],{offset:4})){return{ext:"mov",mime:"video/quicktime"}}if(check([82,73,70,70])&&check([65,86,73],{offset:8})){return{ext:"avi",mime:"video/x-msvideo"}}if(check([48,38,178,117,142,102,207,17,166,217])){return{ext:"wmv",mime:"video/x-ms-wmv"}}if(check([0,0,1,186])){return{ext:"mpg",mime:"video/mpeg"}}for(let e=0;e<2&&e<n.length-16;e++){if(check([73,68,51],{offset:e})||check([255,226],{offset:e,mask:[255,226]})){return{ext:"mp3",mime:"audio/mpeg"}}}if(check([102,116,121,112,77,52,65],{offset:4})||check([77,52,65,32])){return{ext:"m4a",mime:"audio/m4a"}}if(check([79,112,117,115,72,101,97,100],{offset:28})){return{ext:"opus",mime:"audio/opus"}}if(check([79,103,103,83])){return{ext:"ogg",mime:"audio/ogg"}}if(check([102,76,97,67])){return{ext:"flac",mime:"audio/x-flac"}}if(check([82,73,70,70])&&check([87,65,86,69],{offset:8})){return{ext:"wav",mime:"audio/x-wav"}}if(check([35,33,65,77,82,10])){return{ext:"amr",mime:"audio/amr"}}if(check([37,80,68,70])){return{ext:"pdf",mime:"application/pdf"}}if(check([77,90])){return{ext:"exe",mime:"application/x-msdownload"}}if((n[0]===67||n[0]===70)&&check([87,83],{offset:1})){return{ext:"swf",mime:"application/x-shockwave-flash"}}if(check([123,92,114,116,102])){return{ext:"rtf",mime:"application/rtf"}}if(check([0,97,115,109])){return{ext:"wasm",mime:"application/wasm"}}if(check([119,79,70,70])&&(check([0,1,0,0],{offset:4})||check([79,84,84,79],{offset:4}))){return{ext:"woff",mime:"font/woff"}}if(check([119,79,70,50])&&(check([0,1,0,0],{offset:4})||check([79,84,84,79],{offset:4}))){return{ext:"woff2",mime:"font/woff2"}}if(check([76,80],{offset:34})&&(check([0,0,1],{offset:8})||check([1,0,2],{offset:8})||check([2,0,2],{offset:8}))){return{ext:"eot",mime:"application/octet-stream"}}if(check([0,1,0,0,0])){return{ext:"ttf",mime:"font/ttf"}}if(check([79,84,84,79,0])){return{ext:"otf",mime:"font/otf"}}if(check([0,0,1,0])){return{ext:"ico",mime:"image/x-icon"}}if(check([70,76,86,1])){return{ext:"flv",mime:"video/x-flv"}}if(check([37,33])){return{ext:"ps",mime:"application/postscript"}}if(check([253,55,122,88,90,0])){return{ext:"xz",mime:"application/x-xz"}}if(check([83,81,76,105])){return{ext:"sqlite",mime:"application/x-sqlite3"}}if(check([78,69,83,26])){return{ext:"nes",mime:"application/x-nintendo-nes-rom"}}if(check([67,114,50,52])){return{ext:"crx",mime:"application/x-google-chrome-extension"}}if(check([77,83,67,70])||check([73,83,99,40])){return{ext:"cab",mime:"application/vnd.ms-cab-compressed"}}if(check([33,60,97,114,99,104,62,10,100,101,98,105,97,110,45,98,105,110,97,114,121])){return{ext:"deb",mime:"application/x-deb"}}if(check([33,60,97,114,99,104,62])){return{ext:"ar",mime:"application/x-unix-archive"}}if(check([237,171,238,219])){return{ext:"rpm",mime:"application/x-rpm"}}if(check([31,160])||check([31,157])){return{ext:"Z",mime:"application/x-compress"}}if(check([76,90,73,80])){return{ext:"lz",mime:"application/x-lzip"}}if(check([208,207,17,224,161,177,26,225])){return{ext:"msi",mime:"application/x-msi"}}if(check([6,14,43,52,2,5,1,1,13,1,2,1,1,2])){return{ext:"mxf",mime:"application/mxf"}}if(check([71],{offset:4})&&(check([71],{offset:192})||check([71],{offset:196}))){return{ext:"mts",mime:"video/mp2t"}}if(check([66,76,69,78,68,69,82])){return{ext:"blend",mime:"application/x-blender"}}if(check([66,80,71,251])){return{ext:"bpg",mime:"image/bpg"}}return null}},7335:function(e,t,r){"use strict";const i=r(9796);const n=r(3235);const o=r(1608);const a=r(1554);e.exports=()=>e=>{if(!Buffer.isBuffer(e)&&!a(e)){return Promise.reject(new TypeError(`Expected a Buffer or Stream, got ${typeof e}`))}if(Buffer.isBuffer(e)&&(!o(e)||o(e).ext!=="gz")){return Promise.resolve([])}const t=i.createGunzip();const r=n()(t);if(Buffer.isBuffer(e)){t.end(e)}else{e.pipe(t)}return r}},1608:function(e){"use strict";e.exports=e=>{const t=new Uint8Array(e);if(!(t&&t.length>1)){return null}const check=(e,r)=>{r=Object.assign({offset:0},r);for(let i=0;i<e.length;i++){if(e[i]!==t[i+r.offset]){return false}}return true};if(check([255,216,255])){return{ext:"jpg",mime:"image/jpeg"}}if(check([137,80,78,71,13,10,26,10])){return{ext:"png",mime:"image/png"}}if(check([71,73,70])){return{ext:"gif",mime:"image/gif"}}if(check([87,69,66,80],{offset:8})){return{ext:"webp",mime:"image/webp"}}if(check([70,76,73,70])){return{ext:"flif",mime:"image/flif"}}if((check([73,73,42,0])||check([77,77,0,42]))&&check([67,82],{offset:8})){return{ext:"cr2",mime:"image/x-canon-cr2"}}if(check([73,73,42,0])||check([77,77,0,42])){return{ext:"tif",mime:"image/tiff"}}if(check([66,77])){return{ext:"bmp",mime:"image/bmp"}}if(check([73,73,188])){return{ext:"jxr",mime:"image/vnd.ms-photo"}}if(check([56,66,80,83])){return{ext:"psd",mime:"image/vnd.adobe.photoshop"}}if(check([80,75,3,4])&&check([109,105,109,101,116,121,112,101,97,112,112,108,105,99,97,116,105,111,110,47,101,112,117,98,43,122,105,112],{offset:30})){return{ext:"epub",mime:"application/epub+zip"}}if(check([80,75,3,4])&&check([77,69,84,65,45,73,78,70,47,109,111,122,105,108,108,97,46,114,115,97],{offset:30})){return{ext:"xpi",mime:"application/x-xpinstall"}}if(check([80,75])&&(t[2]===3||t[2]===5||t[2]===7)&&(t[3]===4||t[3]===6||t[3]===8)){return{ext:"zip",mime:"application/zip"}}if(check([117,115,116,97,114],{offset:257})){return{ext:"tar",mime:"application/x-tar"}}if(check([82,97,114,33,26,7])&&(t[6]===0||t[6]===1)){return{ext:"rar",mime:"application/x-rar-compressed"}}if(check([31,139,8])){return{ext:"gz",mime:"application/gzip"}}if(check([66,90,104])){return{ext:"bz2",mime:"application/x-bzip2"}}if(check([55,122,188,175,39,28])){return{ext:"7z",mime:"application/x-7z-compressed"}}if(check([120,1])){return{ext:"dmg",mime:"application/x-apple-diskimage"}}if(check([0,0,0])&&(t[3]===24||t[3]===32)&&check([102,116,121,112],{offset:4})||check([51,103,112,53])||check([0,0,0,28,102,116,121,112,109,112,52,50])&&check([109,112,52,49,109,112,52,50,105,115,111,109],{offset:16})||check([0,0,0,28,102,116,121,112,105,115,111,109])||check([0,0,0,28,102,116,121,112,109,112,52,50,0,0,0,0])){return{ext:"mp4",mime:"video/mp4"}}if(check([0,0,0,28,102,116,121,112,77,52,86])){return{ext:"m4v",mime:"video/x-m4v"}}if(check([77,84,104,100])){return{ext:"mid",mime:"audio/midi"}}if(check([26,69,223,163])){const e=t.subarray(4,4+4096);const r=e.findIndex(((e,t,r)=>r[t]===66&&r[t+1]===130));if(r>=0){const t=r+3;const findDocType=r=>Array.from(r).every(((r,i)=>e[t+i]===r.charCodeAt(0)));if(findDocType("matroska")){return{ext:"mkv",mime:"video/x-matroska"}}if(findDocType("webm")){return{ext:"webm",mime:"video/webm"}}}}if(check([0,0,0,20,102,116,121,112,113,116,32,32])||check([102,114,101,101],{offset:4})||check([102,116,121,112,113,116,32,32],{offset:4})||check([109,100,97,116],{offset:4})||check([119,105,100,101],{offset:4})){return{ext:"mov",mime:"video/quicktime"}}if(check([82,73,70,70])&&check([65,86,73],{offset:8})){return{ext:"avi",mime:"video/x-msvideo"}}if(check([48,38,178,117,142,102,207,17,166,217])){return{ext:"wmv",mime:"video/x-ms-wmv"}}if(check([0,0,1,186])){return{ext:"mpg",mime:"video/mpeg"}}if(check([73,68,51])||check([255,251])){return{ext:"mp3",mime:"audio/mpeg"}}if(check([102,116,121,112,77,52,65],{offset:4})||check([77,52,65,32])){return{ext:"m4a",mime:"audio/m4a"}}if(check([79,112,117,115,72,101,97,100],{offset:28})){return{ext:"opus",mime:"audio/opus"}}if(check([79,103,103,83])){return{ext:"ogg",mime:"audio/ogg"}}if(check([102,76,97,67])){return{ext:"flac",mime:"audio/x-flac"}}if(check([82,73,70,70])&&check([87,65,86,69],{offset:8})){return{ext:"wav",mime:"audio/x-wav"}}if(check([35,33,65,77,82,10])){return{ext:"amr",mime:"audio/amr"}}if(check([37,80,68,70])){return{ext:"pdf",mime:"application/pdf"}}if(check([77,90])){return{ext:"exe",mime:"application/x-msdownload"}}if((t[0]===67||t[0]===70)&&check([87,83],{offset:1})){return{ext:"swf",mime:"application/x-shockwave-flash"}}if(check([123,92,114,116,102])){return{ext:"rtf",mime:"application/rtf"}}if(check([0,97,115,109])){return{ext:"wasm",mime:"application/wasm"}}if(check([119,79,70,70])&&(check([0,1,0,0],{offset:4})||check([79,84,84,79],{offset:4}))){return{ext:"woff",mime:"font/woff"}}if(check([119,79,70,50])&&(check([0,1,0,0],{offset:4})||check([79,84,84,79],{offset:4}))){return{ext:"woff2",mime:"font/woff2"}}if(check([76,80],{offset:34})&&(check([0,0,1],{offset:8})||check([1,0,2],{offset:8})||check([2,0,2],{offset:8}))){return{ext:"eot",mime:"application/octet-stream"}}if(check([0,1,0,0,0])){return{ext:"ttf",mime:"font/ttf"}}if(check([79,84,84,79,0])){return{ext:"otf",mime:"font/otf"}}if(check([0,0,1,0])){return{ext:"ico",mime:"image/x-icon"}}if(check([70,76,86,1])){return{ext:"flv",mime:"video/x-flv"}}if(check([37,33])){return{ext:"ps",mime:"application/postscript"}}if(check([253,55,122,88,90,0])){return{ext:"xz",mime:"application/x-xz"}}if(check([83,81,76,105])){return{ext:"sqlite",mime:"application/x-sqlite3"}}if(check([78,69,83,26])){return{ext:"nes",mime:"application/x-nintendo-nes-rom"}}if(check([67,114,50,52])){return{ext:"crx",mime:"application/x-google-chrome-extension"}}if(check([77,83,67,70])||check([73,83,99,40])){return{ext:"cab",mime:"application/vnd.ms-cab-compressed"}}if(check([33,60,97,114,99,104,62,10,100,101,98,105,97,110,45,98,105,110,97,114,121])){return{ext:"deb",mime:"application/x-deb"}}if(check([33,60,97,114,99,104,62])){return{ext:"ar",mime:"application/x-unix-archive"}}if(check([237,171,238,219])){return{ext:"rpm",mime:"application/x-rpm"}}if(check([31,160])||check([31,157])){return{ext:"Z",mime:"application/x-compress"}}if(check([76,90,73,80])){return{ext:"lz",mime:"application/x-lzip"}}if(check([208,207,17,224,161,177,26,225])){return{ext:"msi",mime:"application/x-msi"}}if(check([6,14,43,52,2,5,1,1,13,1,2,1,1,2])){return{ext:"mxf",mime:"application/mxf"}}if(check([71],{offset:4})&&(check([71],{offset:192})||check([71],{offset:196}))){return{ext:"mts",mime:"video/mp2t"}}if(check([66,76,69,78,68,69,82])){return{ext:"blend",mime:"application/x-blender"}}if(check([66,80,71,251])){return{ext:"bpg",mime:"image/bpg"}}return null}},8396:function(e,t,r){"use strict";const i=r(7128);const n=r(8771);const o=r(4810);const a=r(8781);const getType=(e,t)=>{const r=61440;const i=16384;const n=40960;const o=e.versionMadeBy>>8;if((t&r)===n){return"symlink"}if((t&r)===i||o===0&&e.externalFileAttributes===16){return"directory"}return"file"};const extractEntry=(e,t)=>{const r={mode:e.externalFileAttributes>>16&65535,mtime:e.getLastModDate(),path:e.fileName};r.type=getType(e,r.mode);if(r.mode===0&&r.type==="directory"){r.mode=493}if(r.mode===0){r.mode=420}return o(t.openReadStream.bind(t))(e).then(n.buffer).then((e=>{r.data=e;if(r.type==="symlink"){r.linkname=e.toString()}return r})).catch((e=>{t.close();throw e}))};const extractFile=e=>new Promise(((t,r)=>{const i=[];e.readEntry();e.on("entry",(t=>{extractEntry(t,e).catch(r).then((t=>{i.push(t);e.readEntry()}))}));e.on("error",r);e.on("end",(()=>t(i)))}));e.exports=()=>e=>{if(!Buffer.isBuffer(e)){return Promise.reject(new TypeError(`Expected a Buffer, got ${typeof e}`))}if(!i(e)||i(e).ext!=="zip"){return Promise.resolve([])}return o(a.fromBuffer)(e,{lazyEntries:true}).then(extractFile)}},7420:function(e,t,r){var i=r(2781).PassThrough;var n=r(7426);e.exports=function(e){e=n({},e);var t=e.array;var r=e.encoding;var o=r==="buffer";var a=false;if(t){a=!(r||o)}else{r=r||"utf8"}if(o){r=null}var s=0;var u=[];var l=new i({objectMode:a});if(r){l.setEncoding(r)}l.on("data",(function(e){u.push(e);if(a){s=u.length}else{s+=e.length}}));l.getBufferedValue=function(){if(t){return u}return o?Buffer.concat(u,s):u.join("")};l.getBufferedLength=function(){return s};return l}},8771:function(e,t,r){"use strict";var i=r(5222);var n=r(7426);var o=r(7420);function getStream(e,t){if(!e){return i.reject(new Error("Expected a stream"))}t=n({maxBuffer:Infinity},t);var r=t.maxBuffer;var a;var s;var u=new i((function(i,n){a=o(t);e.once("error",error);e.pipe(a);a.on("data",(function(){if(a.getBufferedLength()>r){n(new Error("maxBuffer exceeded"))}}));a.once("error",error);a.on("end",i);s=function(){if(e.unpipe){e.unpipe(a)}};function error(e){if(e){e.bufferedData=a.getBufferedValue()}n(e)}}));u.then(s,s);return u.then((function(){return a.getBufferedValue()}))}e.exports=getStream;e.exports.buffer=function(e,t){return getStream(e,n({},t,{encoding:"buffer"}))};e.exports.array=function(e,t){return getStream(e,n({},t,{array:true}))}},9350:function(e,t,r){"use strict";const i=r(1017);const n=r(7758);const o=r(3235);const a=r(2454);const s=r(7335);const u=r(8396);const l=r(9126);const c=r(4810);const d=r(5723);const p=c(n);const runPlugins=(e,t)=>{if(t.plugins.length===0){return Promise.resolve([])}return Promise.all(t.plugins.map((r=>r(e,t)))).then((e=>e.reduce(((e,t)=>e.concat(t)))))};const safeMakeDir=(e,t)=>p.realpath(e).catch((r=>{const n=i.dirname(e);return safeMakeDir(n,t)})).then((r=>{if(r.indexOf(t)!==0){throw new Error("Refusing to create a directory outside the output path.")}return l(e).then(p.realpath)}));const preventWritingThroughSymlink=(e,t)=>p.readlink(e).catch((e=>null)).then((e=>{if(e){throw new Error("Refusing to write into a symlink")}return t}));const extractFile=(e,t,r)=>runPlugins(e,r).then((e=>{if(r.strip>0){e=e.map((e=>{e.path=d(e.path,r.strip);return e})).filter((e=>e.path!=="."))}if(typeof r.filter==="function"){e=e.filter(r.filter)}if(typeof r.map==="function"){e=e.map(r.map)}if(!t){return e}return Promise.all(e.map((e=>{const r=i.join(t,e.path);const n=e.mode&~process.umask();const o=new Date;if(e.type==="directory"){return l(t).then((e=>p.realpath(e))).then((e=>safeMakeDir(r,e))).then((()=>p.utimes(r,o,e.mtime))).then((()=>e))}return l(t).then((e=>p.realpath(e))).then((e=>safeMakeDir(i.dirname(r),e).then((()=>e)))).then((t=>{if(e.type==="file"){return preventWritingThroughSymlink(r,t)}return t})).then((e=>p.realpath(i.dirname(r)).then((t=>{if(t.indexOf(e)!==0){throw new Error("Refusing to write outside output directory: "+t)}})))).then((()=>{if(e.type==="link"){return p.link(e.linkname,r)}if(e.type==="symlink"&&process.platform==="win32"){return p.link(e.linkname,r)}if(e.type==="symlink"){return p.symlink(e.linkname,r)}return p.writeFile(r,e.data,{mode:n})})).then((()=>e.type==="file"&&p.utimes(r,o,e.mtime))).then((()=>e))})))}));e.exports=(e,t,r)=>{if(typeof e!=="string"&&!Buffer.isBuffer(e)){return Promise.reject(new TypeError("Input file required"))}if(typeof t==="object"){r=t;t=null}r=Object.assign({plugins:[o(),a(),s(),u()]},r);const i=typeof e==="string"?p.readFile(e):Promise.resolve(e);return i.then((e=>extractFile(e,t,r)))}},1205:function(e,t,r){var i=r(1223);var noop=function(){};var isRequest=function(e){return e.setHeader&&typeof e.abort==="function"};var isChildProcess=function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3};var eos=function(e,t,r){if(typeof t==="function")return eos(e,null,t);if(!t)t={};r=i(r||noop);var n=e._writableState;var o=e._readableState;var a=t.readable||t.readable!==false&&e.readable;var s=t.writable||t.writable!==false&&e.writable;var u=false;var onlegacyfinish=function(){if(!e.writable)onfinish()};var onfinish=function(){s=false;if(!a)r.call(e)};var onend=function(){a=false;if(!s)r.call(e)};var onexit=function(t){r.call(e,t?new Error("exited with error code: "+t):null)};var onerror=function(t){r.call(e,t)};var onclose=function(){process.nextTick(onclosenexttick)};var onclosenexttick=function(){if(u)return;if(a&&!(o&&(o.ended&&!o.destroyed)))return r.call(e,new Error("premature close"));if(s&&!(n&&(n.ended&&!n.destroyed)))return r.call(e,new Error("premature close"))};var onrequest=function(){e.req.on("finish",onfinish)};if(isRequest(e)){e.on("complete",onfinish);e.on("abort",onclose);if(e.req)onrequest();else e.on("request",onrequest)}else if(s&&!n){e.on("end",onlegacyfinish);e.on("close",onlegacyfinish)}if(isChildProcess(e))e.on("exit",onexit);e.on("end",onend);e.on("finish",onfinish);if(t.error!==false)e.on("error",onerror);e.on("close",onclose);return function(){u=true;e.removeListener("complete",onfinish);e.removeListener("abort",onclose);e.removeListener("request",onrequest);if(e.req)e.req.removeListener("finish",onfinish);e.removeListener("end",onlegacyfinish);e.removeListener("close",onlegacyfinish);e.removeListener("finish",onfinish);e.removeListener("exit",onexit);e.removeListener("end",onend);e.removeListener("error",onerror);e.removeListener("close",onclose)}};e.exports=eos},5010:function(e,t,r){var i=r(7147);var n=r(3837);var o=r(2781);var a=o.Readable;var s=o.Writable;var u=o.PassThrough;var l=r(4833);var c=r(2361).EventEmitter;t.createFromBuffer=createFromBuffer;t.createFromFd=createFromFd;t.BufferSlicer=BufferSlicer;t.FdSlicer=FdSlicer;n.inherits(FdSlicer,c);function FdSlicer(e,t){t=t||{};c.call(this);this.fd=e;this.pend=new l;this.pend.max=1;this.refCount=0;this.autoClose=!!t.autoClose}FdSlicer.prototype.read=function(e,t,r,n,o){var a=this;a.pend.go((function(s){i.read(a.fd,e,t,r,n,(function(e,t,r){s();o(e,t,r)}))}))};FdSlicer.prototype.write=function(e,t,r,n,o){var a=this;a.pend.go((function(s){i.write(a.fd,e,t,r,n,(function(e,t,r){s();o(e,t,r)}))}))};FdSlicer.prototype.createReadStream=function(e){return new ReadStream(this,e)};FdSlicer.prototype.createWriteStream=function(e){return new WriteStream(this,e)};FdSlicer.prototype.ref=function(){this.refCount+=1};FdSlicer.prototype.unref=function(){var e=this;e.refCount-=1;if(e.refCount>0)return;if(e.refCount<0)throw new Error("invalid unref");if(e.autoClose){i.close(e.fd,onCloseDone)}function onCloseDone(t){if(t){e.emit("error",t)}else{e.emit("close")}}};n.inherits(ReadStream,a);function ReadStream(e,t){t=t||{};a.call(this,t);this.context=e;this.context.ref();this.start=t.start||0;this.endOffset=t.end;this.pos=this.start;this.destroyed=false}ReadStream.prototype._read=function(e){var t=this;if(t.destroyed)return;var r=Math.min(t._readableState.highWaterMark,e);if(t.endOffset!=null){r=Math.min(r,t.endOffset-t.pos)}if(r<=0){t.destroyed=true;t.push(null);t.context.unref();return}t.context.pend.go((function(e){if(t.destroyed)return e();var n=new Buffer(r);i.read(t.context.fd,n,0,r,t.pos,(function(r,i){if(r){t.destroy(r)}else if(i===0){t.destroyed=true;t.push(null);t.context.unref()}else{t.pos+=i;t.push(n.slice(0,i))}e()}))}))};ReadStream.prototype.destroy=function(e){if(this.destroyed)return;e=e||new Error("stream destroyed");this.destroyed=true;this.emit("error",e);this.context.unref()};n.inherits(WriteStream,s);function WriteStream(e,t){t=t||{};s.call(this,t);this.context=e;this.context.ref();this.start=t.start||0;this.endOffset=t.end==null?Infinity:+t.end;this.bytesWritten=0;this.pos=this.start;this.destroyed=false;this.on("finish",this.destroy.bind(this))}WriteStream.prototype._write=function(e,t,r){var n=this;if(n.destroyed)return;if(n.pos+e.length>n.endOffset){var o=new Error("maximum file length exceeded");o.code="ETOOBIG";n.destroy();r(o);return}n.context.pend.go((function(t){if(n.destroyed)return t();i.write(n.context.fd,e,0,e.length,n.pos,(function(e,i){if(e){n.destroy();t();r(e)}else{n.bytesWritten+=i;n.pos+=i;n.emit("progress");t();r()}}))}))};WriteStream.prototype.destroy=function(){if(this.destroyed)return;this.destroyed=true;this.context.unref()};n.inherits(BufferSlicer,c);function BufferSlicer(e,t){c.call(this);t=t||{};this.refCount=0;this.buffer=e;this.maxChunkSize=t.maxChunkSize||Number.MAX_SAFE_INTEGER}BufferSlicer.prototype.read=function(e,t,r,i,n){var o=i+r;var a=o-this.buffer.length;var s=a>0?a:r;this.buffer.copy(e,t,i,o);setImmediate((function(){n(null,s)}))};BufferSlicer.prototype.write=function(e,t,r,i,n){e.copy(this.buffer,i,t,t+r);setImmediate((function(){n(null,r,e)}))};BufferSlicer.prototype.createReadStream=function(e){e=e||{};var t=new u(e);t.destroyed=false;t.start=e.start||0;t.endOffset=e.end;t.pos=t.endOffset||this.buffer.length;var r=this.buffer.slice(t.start,t.pos);var i=0;while(true){var n=i+this.maxChunkSize;if(n>=r.length){if(i<r.length){t.write(r.slice(i,r.length))}break}t.write(r.slice(i,n));i=n}t.end();t.destroy=function(){t.destroyed=true};return t};BufferSlicer.prototype.createWriteStream=function(e){var t=this;e=e||{};var r=new s(e);r.start=e.start||0;r.endOffset=e.end==null?this.buffer.length:+e.end;r.bytesWritten=0;r.pos=r.start;r.destroyed=false;r._write=function(e,i,n){if(r.destroyed)return;var o=r.pos+e.length;if(o>r.endOffset){var a=new Error("maximum file length exceeded");a.code="ETOOBIG";r.destroyed=true;n(a);return}e.copy(t.buffer,r.pos,0,e.length);r.bytesWritten+=e.length;r.pos=o;r.emit("progress");n()};r.destroy=function(){r.destroyed=true};return r};BufferSlicer.prototype.ref=function(){this.refCount+=1};BufferSlicer.prototype.unref=function(){this.refCount-=1;if(this.refCount<0){throw new Error("invalid unref")}};function createFromBuffer(e,t){return new BufferSlicer(e,t)}function createFromFd(e,t){return new FdSlicer(e,t)}},7128:function(e){"use strict";e.exports=function(e){if(!(e&&e.length>1)){return null}if(e[0]===255&&e[1]===216&&e[2]===255){return{ext:"jpg",mime:"image/jpeg"}}if(e[0]===137&&e[1]===80&&e[2]===78&&e[3]===71){return{ext:"png",mime:"image/png"}}if(e[0]===71&&e[1]===73&&e[2]===70){return{ext:"gif",mime:"image/gif"}}if(e[8]===87&&e[9]===69&&e[10]===66&&e[11]===80){return{ext:"webp",mime:"image/webp"}}if(e[0]===70&&e[1]===76&&e[2]===73&&e[3]===70){return{ext:"flif",mime:"image/flif"}}if((e[0]===73&&e[1]===73&&e[2]===42&&e[3]===0||e[0]===77&&e[1]===77&&e[2]===0&&e[3]===42)&&e[8]===67&&e[9]===82){return{ext:"cr2",mime:"image/x-canon-cr2"}}if(e[0]===73&&e[1]===73&&e[2]===42&&e[3]===0||e[0]===77&&e[1]===77&&e[2]===0&&e[3]===42){return{ext:"tif",mime:"image/tiff"}}if(e[0]===66&&e[1]===77){return{ext:"bmp",mime:"image/bmp"}}if(e[0]===73&&e[1]===73&&e[2]===188){return{ext:"jxr",mime:"image/vnd.ms-photo"}}if(e[0]===56&&e[1]===66&&e[2]===80&&e[3]===83){return{ext:"psd",mime:"image/vnd.adobe.photoshop"}}if(e[0]===80&&e[1]===75&&e[2]===3&&e[3]===4&&e[30]===109&&e[31]===105&&e[32]===109&&e[33]===101&&e[34]===116&&e[35]===121&&e[36]===112&&e[37]===101&&e[38]===97&&e[39]===112&&e[40]===112&&e[41]===108&&e[42]===105&&e[43]===99&&e[44]===97&&e[45]===116&&e[46]===105&&e[47]===111&&e[48]===110&&e[49]===47&&e[50]===101&&e[51]===112&&e[52]===117&&e[53]===98&&e[54]===43&&e[55]===122&&e[56]===105&&e[57]===112){return{ext:"epub",mime:"application/epub+zip"}}if(e[0]===80&&e[1]===75&&e[2]===3&&e[3]===4&&e[30]===77&&e[31]===69&&e[32]===84&&e[33]===65&&e[34]===45&&e[35]===73&&e[36]===78&&e[37]===70&&e[38]===47&&e[39]===109&&e[40]===111&&e[41]===122&&e[42]===105&&e[43]===108&&e[44]===108&&e[45]===97&&e[46]===46&&e[47]===114&&e[48]===115&&e[49]===97){return{ext:"xpi",mime:"application/x-xpinstall"}}if(e[0]===80&&e[1]===75&&(e[2]===3||e[2]===5||e[2]===7)&&(e[3]===4||e[3]===6||e[3]===8)){return{ext:"zip",mime:"application/zip"}}if(e[257]===117&&e[258]===115&&e[259]===116&&e[260]===97&&e[261]===114){return{ext:"tar",mime:"application/x-tar"}}if(e[0]===82&&e[1]===97&&e[2]===114&&e[3]===33&&e[4]===26&&e[5]===7&&(e[6]===0||e[6]===1)){return{ext:"rar",mime:"application/x-rar-compressed"}}if(e[0]===31&&e[1]===139&&e[2]===8){return{ext:"gz",mime:"application/gzip"}}if(e[0]===66&&e[1]===90&&e[2]===104){return{ext:"bz2",mime:"application/x-bzip2"}}if(e[0]===55&&e[1]===122&&e[2]===188&&e[3]===175&&e[4]===39&&e[5]===28){return{ext:"7z",mime:"application/x-7z-compressed"}}if(e[0]===120&&e[1]===1){return{ext:"dmg",mime:"application/x-apple-diskimage"}}if(e[0]===0&&e[1]===0&&e[2]===0&&(e[3]===24||e[3]===32)&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112||e[0]===51&&e[1]===103&&e[2]===112&&e[3]===53||e[0]===0&&e[1]===0&&e[2]===0&&e[3]===28&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112&&e[8]===109&&e[9]===112&&e[10]===52&&e[11]===50&&e[16]===109&&e[17]===112&&e[18]===52&&e[19]===49&&e[20]===109&&e[21]===112&&e[22]===52&&e[23]===50&&e[24]===105&&e[25]===115&&e[26]===111&&e[27]===109||e[0]===0&&e[1]===0&&e[2]===0&&e[3]===28&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112&&e[8]===105&&e[9]===115&&e[10]===111&&e[11]===109||e[0]===0&&e[1]===0&&e[2]===0&&e[3]===28&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112&&e[8]===109&&e[9]===112&&e[10]===52&&e[11]===50&&e[12]===0&&e[13]===0&&e[14]===0&&e[15]===0){return{ext:"mp4",mime:"video/mp4"}}if(e[0]===0&&e[1]===0&&e[2]===0&&e[3]===28&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112&&e[8]===77&&e[9]===52&&e[10]===86){return{ext:"m4v",mime:"video/x-m4v"}}if(e[0]===77&&e[1]===84&&e[2]===104&&e[3]===100){return{ext:"mid",mime:"audio/midi"}}if(e[31]===109&&e[32]===97&&e[33]===116&&e[34]===114&&e[35]===111&&e[36]===115&&e[37]===107&&e[38]===97){return{ext:"mkv",mime:"video/x-matroska"}}if(e[0]===26&&e[1]===69&&e[2]===223&&e[3]===163){return{ext:"webm",mime:"video/webm"}}if(e[0]===0&&e[1]===0&&e[2]===0&&e[3]===20&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112){return{ext:"mov",mime:"video/quicktime"}}if(e[0]===82&&e[1]===73&&e[2]===70&&e[3]===70&&e[8]===65&&e[9]===86&&e[10]===73){return{ext:"avi",mime:"video/x-msvideo"}}if(e[0]===48&&e[1]===38&&e[2]===178&&e[3]===117&&e[4]===142&&e[5]===102&&e[6]===207&&e[7]===17&&e[8]===166&&e[9]===217){return{ext:"wmv",mime:"video/x-ms-wmv"}}if(e[0]===0&&e[1]===0&&e[2]===1&&e[3].toString(16)[0]==="b"){return{ext:"mpg",mime:"video/mpeg"}}if(e[0]===73&&e[1]===68&&e[2]===51||e[0]===255&&e[1]===251){return{ext:"mp3",mime:"audio/mpeg"}}if(e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112&&e[8]===77&&e[9]===52&&e[10]===65||e[0]===77&&e[1]===52&&e[2]===65&&e[3]===32){return{ext:"m4a",mime:"audio/m4a"}}if(e[28]===79&&e[29]===112&&e[30]===117&&e[31]===115&&e[32]===72&&e[33]===101&&e[34]===97&&e[35]===100){return{ext:"opus",mime:"audio/opus"}}if(e[0]===79&&e[1]===103&&e[2]===103&&e[3]===83){return{ext:"ogg",mime:"audio/ogg"}}if(e[0]===102&&e[1]===76&&e[2]===97&&e[3]===67){return{ext:"flac",mime:"audio/x-flac"}}if(e[0]===82&&e[1]===73&&e[2]===70&&e[3]===70&&e[8]===87&&e[9]===65&&e[10]===86&&e[11]===69){return{ext:"wav",mime:"audio/x-wav"}}if(e[0]===35&&e[1]===33&&e[2]===65&&e[3]===77&&e[4]===82&&e[5]===10){return{ext:"amr",mime:"audio/amr"}}if(e[0]===37&&e[1]===80&&e[2]===68&&e[3]===70){return{ext:"pdf",mime:"application/pdf"}}if(e[0]===77&&e[1]===90){return{ext:"exe",mime:"application/x-msdownload"}}if((e[0]===67||e[0]===70)&&e[1]===87&&e[2]===83){return{ext:"swf",mime:"application/x-shockwave-flash"}}if(e[0]===123&&e[1]===92&&e[2]===114&&e[3]===116&&e[4]===102){return{ext:"rtf",mime:"application/rtf"}}if(e[0]===119&&e[1]===79&&e[2]===70&&e[3]===70&&(e[4]===0&&e[5]===1&&e[6]===0&&e[7]===0||e[4]===79&&e[5]===84&&e[6]===84&&e[7]===79)){return{ext:"woff",mime:"application/font-woff"}}if(e[0]===119&&e[1]===79&&e[2]===70&&e[3]===50&&(e[4]===0&&e[5]===1&&e[6]===0&&e[7]===0||e[4]===79&&e[5]===84&&e[6]===84&&e[7]===79)){return{ext:"woff2",mime:"application/font-woff"}}if(e[34]===76&&e[35]===80&&(e[8]===0&&e[9]===0&&e[10]===1||e[8]===1&&e[9]===0&&e[10]===2||e[8]===2&&e[9]===0&&e[10]===2)){return{ext:"eot",mime:"application/octet-stream"}}if(e[0]===0&&e[1]===1&&e[2]===0&&e[3]===0&&e[4]===0){return{ext:"ttf",mime:"application/font-sfnt"}}if(e[0]===79&&e[1]===84&&e[2]===84&&e[3]===79&&e[4]===0){return{ext:"otf",mime:"application/font-sfnt"}}if(e[0]===0&&e[1]===0&&e[2]===1&&e[3]===0){return{ext:"ico",mime:"image/x-icon"}}if(e[0]===70&&e[1]===76&&e[2]===86&&e[3]===1){return{ext:"flv",mime:"video/x-flv"}}if(e[0]===37&&e[1]===33){return{ext:"ps",mime:"application/postscript"}}if(e[0]===253&&e[1]===55&&e[2]===122&&e[3]===88&&e[4]===90&&e[5]===0){return{ext:"xz",mime:"application/x-xz"}}if(e[0]===83&&e[1]===81&&e[2]===76&&e[3]===105){return{ext:"sqlite",mime:"application/x-sqlite3"}}if(e[0]===78&&e[1]===69&&e[2]===83&&e[3]===26){return{ext:"nes",mime:"application/x-nintendo-nes-rom"}}if(e[0]===67&&e[1]===114&&e[2]===50&&e[3]===52){return{ext:"crx",mime:"application/x-google-chrome-extension"}}if(e[0]===77&&e[1]===83&&e[2]===67&&e[3]===70||e[0]===73&&e[1]===83&&e[2]===99&&e[3]===40){return{ext:"cab",mime:"application/vnd.ms-cab-compressed"}}if(e[0]===33&&e[1]===60&&e[2]===97&&e[3]===114&&e[4]===99&&e[5]===104&&e[6]===62&&e[7]===10&&e[8]===100&&e[9]===101&&e[10]===98&&e[11]===105&&e[12]===97&&e[13]===110&&e[14]===45&&e[15]===98&&e[16]===105&&e[17]===110&&e[18]===97&&e[19]===114&&e[20]===121){return{ext:"deb",mime:"application/x-deb"}}if(e[0]===33&&e[1]===60&&e[2]===97&&e[3]===114&&e[4]===99&&e[5]===104&&e[6]===62){return{ext:"ar",mime:"application/x-unix-archive"}}if(e[0]===237&&e[1]===171&&e[2]===238&&e[3]===219){return{ext:"rpm",mime:"application/x-rpm"}}if(e[0]===31&&e[1]===160||e[0]===31&&e[1]===157){return{ext:"Z",mime:"application/x-compress"}}if(e[0]===76&&e[1]===90&&e[2]===73&&e[3]===80){return{ext:"lz",mime:"application/x-lzip"}}if(e[0]===208&&e[1]===207&&e[2]===17&&e[3]===224&&e[4]===161&&e[5]===177&&e[6]===26&&e[7]===225){return{ext:"msi",mime:"application/x-msi"}}return null}},3186:function(e,t,r){e.exports=r(7147).constants||r(2057)},7356:function(e){"use strict";e.exports=clone;var t=Object.getPrototypeOf||function(e){return e.__proto__};function clone(e){if(e===null||typeof e!=="object")return e;if(e instanceof Object)var r={__proto__:t(e)};else var r=Object.create(null);Object.getOwnPropertyNames(e).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))}));return r}},7758:function(e,t,r){var i=r(7147);var n=r(263);var o=r(3086);var a=r(7356);var s=r(3837);var u;var l;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){u=Symbol.for("graceful-fs.queue");l=Symbol.for("graceful-fs.previous")}else{u="___graceful-fs.queue";l="___graceful-fs.previous"}function noop(){}function publishQueue(e,t){Object.defineProperty(e,u,{get:function(){return t}})}var c=noop;if(s.debuglog)c=s.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))c=function(){var e=s.format.apply(s,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: ");console.error(e)};if(!i[u]){var d=global[u]||[];publishQueue(i,d);i.close=function(e){function close(t,r){return e.call(i,t,(function(e){if(!e){resetQueue()}if(typeof r==="function")r.apply(this,arguments)}))}Object.defineProperty(close,l,{value:e});return close}(i.close);i.closeSync=function(e){function closeSync(t){e.apply(i,arguments);resetQueue()}Object.defineProperty(closeSync,l,{value:e});return closeSync}(i.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",(function(){c(i[u]);r(9491).equal(i[u].length,0)}))}}if(!global[u]){publishQueue(global,i[u])}e.exports=patch(a(i));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!i.__patched){e.exports=patch(i);i.__patched=true}function patch(e){n(e);e.gracefulify=patch;e.createReadStream=createReadStream;e.createWriteStream=createWriteStream;var t=e.readFile;e.readFile=readFile;function readFile(e,r,i){if(typeof r==="function")i=r,r=null;return go$readFile(e,r,i);function go$readFile(e,r,i,n){return t(e,r,(function(t){if(t&&(t.code==="EMFILE"||t.code==="ENFILE"))enqueue([go$readFile,[e,r,i],t,n||Date.now(),Date.now()]);else{if(typeof i==="function")i.apply(this,arguments)}}))}}var r=e.writeFile;e.writeFile=writeFile;function writeFile(e,t,i,n){if(typeof i==="function")n=i,i=null;return go$writeFile(e,t,i,n);function go$writeFile(e,t,i,n,o){return r(e,t,i,(function(r){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))enqueue([go$writeFile,[e,t,i,n],r,o||Date.now(),Date.now()]);else{if(typeof n==="function")n.apply(this,arguments)}}))}}var i=e.appendFile;if(i)e.appendFile=appendFile;function appendFile(e,t,r,n){if(typeof r==="function")n=r,r=null;return go$appendFile(e,t,r,n);function go$appendFile(e,t,r,n,o){return i(e,t,r,(function(i){if(i&&(i.code==="EMFILE"||i.code==="ENFILE"))enqueue([go$appendFile,[e,t,r,n],i,o||Date.now(),Date.now()]);else{if(typeof n==="function")n.apply(this,arguments)}}))}}var a=e.copyFile;if(a)e.copyFile=copyFile;function copyFile(e,t,r,i){if(typeof r==="function"){i=r;r=0}return go$copyFile(e,t,r,i);function go$copyFile(e,t,r,i,n){return a(e,t,r,(function(o){if(o&&(o.code==="EMFILE"||o.code==="ENFILE"))enqueue([go$copyFile,[e,t,r,i],o,n||Date.now(),Date.now()]);else{if(typeof i==="function")i.apply(this,arguments)}}))}}var s=e.readdir;e.readdir=readdir;var u=/^v[0-5]\./;function readdir(e,t,r){if(typeof t==="function")r=t,t=null;var i=u.test(process.version)?function go$readdir(e,t,r,i){return s(e,fs$readdirCallback(e,t,r,i))}:function go$readdir(e,t,r,i){return s(e,t,fs$readdirCallback(e,t,r,i))};return i(e,t,r);function fs$readdirCallback(e,t,r,n){return function(o,a){if(o&&(o.code==="EMFILE"||o.code==="ENFILE"))enqueue([i,[e,t,r],o,n||Date.now(),Date.now()]);else{if(a&&a.sort)a.sort();if(typeof r==="function")r.call(this,o,a)}}}}if(process.version.substr(0,4)==="v0.8"){var l=o(e);ReadStream=l.ReadStream;WriteStream=l.WriteStream}var c=e.ReadStream;if(c){ReadStream.prototype=Object.create(c.prototype);ReadStream.prototype.open=ReadStream$open}var d=e.WriteStream;if(d){WriteStream.prototype=Object.create(d.prototype);WriteStream.prototype.open=WriteStream$open}Object.defineProperty(e,"ReadStream",{get:function(){return ReadStream},set:function(e){ReadStream=e},enumerable:true,configurable:true});Object.defineProperty(e,"WriteStream",{get:function(){return WriteStream},set:function(e){WriteStream=e},enumerable:true,configurable:true});var p=ReadStream;Object.defineProperty(e,"FileReadStream",{get:function(){return p},set:function(e){p=e},enumerable:true,configurable:true});var h=WriteStream;Object.defineProperty(e,"FileWriteStream",{get:function(){return h},set:function(e){h=e},enumerable:true,configurable:true});function ReadStream(e,t){if(this instanceof ReadStream)return c.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var e=this;open(e.path,e.flags,e.mode,(function(t,r){if(t){if(e.autoClose)e.destroy();e.emit("error",t)}else{e.fd=r;e.emit("open",r);e.read()}}))}function WriteStream(e,t){if(this instanceof WriteStream)return d.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var e=this;open(e.path,e.flags,e.mode,(function(t,r){if(t){e.destroy();e.emit("error",t)}else{e.fd=r;e.emit("open",r)}}))}function createReadStream(t,r){return new e.ReadStream(t,r)}function createWriteStream(t,r){return new e.WriteStream(t,r)}var m=e.open;e.open=open;function open(e,t,r,i){if(typeof r==="function")i=r,r=null;return go$open(e,t,r,i);function go$open(e,t,r,i,n){return m(e,t,r,(function(o,a){if(o&&(o.code==="EMFILE"||o.code==="ENFILE"))enqueue([go$open,[e,t,r,i],o,n||Date.now(),Date.now()]);else{if(typeof i==="function")i.apply(this,arguments)}}))}}return e}function enqueue(e){c("ENQUEUE",e[0].name,e[1]);i[u].push(e);retry()}var p;function resetQueue(){var e=Date.now();for(var t=0;t<i[u].length;++t){if(i[u][t].length>2){i[u][t][3]=e;i[u][t][4]=e}}retry()}function retry(){clearTimeout(p);p=undefined;if(i[u].length===0)return;var e=i[u].shift();var t=e[0];var r=e[1];var n=e[2];var o=e[3];var a=e[4];if(o===undefined){c("RETRY",t.name,r);t.apply(null,r)}else if(Date.now()-o>=6e4){c("TIMEOUT",t.name,r);var s=r.pop();if(typeof s==="function")s.call(null,n)}else{var l=Date.now()-a;var d=Math.max(a-o,1);var h=Math.min(d*1.2,100);if(l>=h){c("RETRY",t.name,r);t.apply(null,r.concat([o]))}else{i[u].push(e)}}if(p===undefined){p=setTimeout(retry,0)}}},3086:function(e,t,r){var i=r(2781).Stream;e.exports=legacy;function legacy(e){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(t,r){if(!(this instanceof ReadStream))return new ReadStream(t,r);i.call(this);var n=this;this.path=t;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;r=r||{};var o=Object.keys(r);for(var a=0,s=o.length;a<s;a++){var u=o[a];this[u]=r[u]}if(this.encoding)this.setEncoding(this.encoding);if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.end===undefined){this.end=Infinity}else if("number"!==typeof this.end){throw TypeError("end must be a Number")}if(this.start>this.end){throw new Error("start must be <= end")}this.pos=this.start}if(this.fd!==null){process.nextTick((function(){n._read()}));return}e.open(this.path,this.flags,this.mode,(function(e,t){if(e){n.emit("error",e);n.readable=false;return}n.fd=t;n.emit("open",t);n._read()}))}function WriteStream(t,r){if(!(this instanceof WriteStream))return new WriteStream(t,r);i.call(this);this.path=t;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;r=r||{};var n=Object.keys(r);for(var o=0,a=n.length;o<a;o++){var s=n[o];this[s]=r[s]}if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.start<0){throw new Error("start must be >= zero")}this.pos=this.start}this.busy=false;this._queue=[];if(this.fd===null){this._open=e.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},263:function(e,t,r){var i=r(2057);var n=process.cwd;var o=null;var a=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!o)o=n.call(process);return o};try{process.cwd()}catch(e){}if(typeof process.chdir==="function"){var s=process.chdir;process.chdir=function(e){o=null;s.call(process,e)};if(Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,s)}e.exports=patch;function patch(e){if(i.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)){patchLchmod(e)}if(!e.lutimes){patchLutimes(e)}e.chown=chownFix(e.chown);e.fchown=chownFix(e.fchown);e.lchown=chownFix(e.lchown);e.chmod=chmodFix(e.chmod);e.fchmod=chmodFix(e.fchmod);e.lchmod=chmodFix(e.lchmod);e.chownSync=chownFixSync(e.chownSync);e.fchownSync=chownFixSync(e.fchownSync);e.lchownSync=chownFixSync(e.lchownSync);e.chmodSync=chmodFixSync(e.chmodSync);e.fchmodSync=chmodFixSync(e.fchmodSync);e.lchmodSync=chmodFixSync(e.lchmodSync);e.stat=statFix(e.stat);e.fstat=statFix(e.fstat);e.lstat=statFix(e.lstat);e.statSync=statFixSync(e.statSync);e.fstatSync=statFixSync(e.fstatSync);e.lstatSync=statFixSync(e.lstatSync);if(e.chmod&&!e.lchmod){e.lchmod=function(e,t,r){if(r)process.nextTick(r)};e.lchmodSync=function(){}}if(e.chown&&!e.lchown){e.lchown=function(e,t,r,i){if(i)process.nextTick(i)};e.lchownSync=function(){}}if(a==="win32"){e.rename=typeof e.rename!=="function"?e.rename:function(t){function rename(r,i,n){var o=Date.now();var a=0;t(r,i,(function CB(s){if(s&&(s.code==="EACCES"||s.code==="EPERM"||s.code==="EBUSY")&&Date.now()-o<6e4){setTimeout((function(){e.stat(i,(function(e,o){if(e&&e.code==="ENOENT")t(r,i,CB);else n(s)}))}),a);if(a<100)a+=10;return}if(n)n(s)}))}if(Object.setPrototypeOf)Object.setPrototypeOf(rename,t);return rename}(e.rename)}e.read=typeof e.read!=="function"?e.read:function(t){function read(r,i,n,o,a,s){var u;if(s&&typeof s==="function"){var l=0;u=function(c,d,p){if(c&&c.code==="EAGAIN"&&l<10){l++;return t.call(e,r,i,n,o,a,u)}s.apply(this,arguments)}}return t.call(e,r,i,n,o,a,u)}if(Object.setPrototypeOf)Object.setPrototypeOf(read,t);return read}(e.read);e.readSync=typeof e.readSync!=="function"?e.readSync:function(t){return function(r,i,n,o,a){var s=0;while(true){try{return t.call(e,r,i,n,o,a)}catch(e){if(e.code==="EAGAIN"&&s<10){s++;continue}throw e}}}}(e.readSync);function patchLchmod(e){e.lchmod=function(t,r,n){e.open(t,i.O_WRONLY|i.O_SYMLINK,r,(function(t,i){if(t){if(n)n(t);return}e.fchmod(i,r,(function(t){e.close(i,(function(e){if(n)n(t||e)}))}))}))};e.lchmodSync=function(t,r){var n=e.openSync(t,i.O_WRONLY|i.O_SYMLINK,r);var o=true;var a;try{a=e.fchmodSync(n,r);o=false}finally{if(o){try{e.closeSync(n)}catch(e){}}else{e.closeSync(n)}}return a}}function patchLutimes(e){if(i.hasOwnProperty("O_SYMLINK")&&e.futimes){e.lutimes=function(t,r,n,o){e.open(t,i.O_SYMLINK,(function(t,i){if(t){if(o)o(t);return}e.futimes(i,r,n,(function(t){e.close(i,(function(e){if(o)o(t||e)}))}))}))};e.lutimesSync=function(t,r,n){var o=e.openSync(t,i.O_SYMLINK);var a;var s=true;try{a=e.futimesSync(o,r,n);s=false}finally{if(s){try{e.closeSync(o)}catch(e){}}else{e.closeSync(o)}}return a}}else if(e.futimes){e.lutimes=function(e,t,r,i){if(i)process.nextTick(i)};e.lutimesSync=function(){}}}function chmodFix(t){if(!t)return t;return function(r,i,n){return t.call(e,r,i,(function(e){if(chownErOk(e))e=null;if(n)n.apply(this,arguments)}))}}function chmodFixSync(t){if(!t)return t;return function(r,i){try{return t.call(e,r,i)}catch(e){if(!chownErOk(e))throw e}}}function chownFix(t){if(!t)return t;return function(r,i,n,o){return t.call(e,r,i,n,(function(e){if(chownErOk(e))e=null;if(o)o.apply(this,arguments)}))}}function chownFixSync(t){if(!t)return t;return function(r,i,n){try{return t.call(e,r,i,n)}catch(e){if(!chownErOk(e))throw e}}}function statFix(t){if(!t)return t;return function(r,i,n){if(typeof i==="function"){n=i;i=null}function callback(e,t){if(t){if(t.uid<0)t.uid+=4294967296;if(t.gid<0)t.gid+=4294967296}if(n)n.apply(this,arguments)}return i?t.call(e,r,i,callback):t.call(e,r,callback)}}function statFixSync(t){if(!t)return t;return function(r,i){var n=i?t.call(e,r,i):t.call(e,r);if(n){if(n.uid<0)n.uid+=4294967296;if(n.gid<0)n.gid+=4294967296}return n}}function chownErOk(e){if(!e)return true;if(e.code==="ENOSYS")return true;var t=!process.getuid||process.getuid()!==0;if(t){if(e.code==="EINVAL"||e.code==="EPERM")return true}return false}}},4124:function(e,t,r){try{var i=r(3837);if(typeof i.inherits!=="function")throw"";e.exports=i.inherits}catch(t){e.exports=r(8544)}},8544:function(e){if(typeof Object.create==="function"){e.exports=function inherits(e,t){if(t){e.super_=t;e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}}}else{e.exports=function inherits(e,t){if(t){e.super_=t;var TempCtor=function(){};TempCtor.prototype=t.prototype;e.prototype=new TempCtor;e.prototype.constructor=e}}}},3316:function(e){"use strict";
1
+ (function(){var e={6726:function(e){function allocUnsafe(e){if(typeof e!=="number"){throw new TypeError('"size" argument must be a number')}if(e<0){throw new RangeError('"size" argument must not be negative')}if(Buffer.allocUnsafe){return Buffer.allocUnsafe(e)}else{return new Buffer(e)}}e.exports=allocUnsafe},6615:function(e,t,r){var i=r(2852);var n=r(6726);e.exports=function alloc(e,t,r){if(typeof e!=="number"){throw new TypeError('"size" argument must be a number')}if(e<0){throw new RangeError('"size" argument must not be negative')}if(Buffer.alloc){return Buffer.alloc(e,t,r)}var o=n(e);if(e===0){return o}if(t===undefined){return i(o,0)}if(typeof r!=="string"){r=undefined}return i(o,t,r)}},4794:function(e,t,r){var i=r(4300).Buffer;var n=[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];if(typeof Int32Array!=="undefined"){n=new Int32Array(n)}function ensureBuffer(e){if(i.isBuffer(e)){return e}var t=typeof i.alloc==="function"&&typeof i.from==="function";if(typeof e==="number"){return t?i.alloc(e):new i(e)}else if(typeof e==="string"){return t?i.from(e):new i(e)}else{throw new Error("input must be buffer, number, or string, received "+typeof e)}}function bufferizeInt(e){var t=ensureBuffer(4);t.writeInt32BE(e,0);return t}function _crc32(e,t){e=ensureBuffer(e);if(i.isBuffer(t)){t=t.readUInt32BE(0)}var r=~~t^-1;for(var o=0;o<e.length;o++){r=n[(r^e[o])&255]^r>>>8}return r^-1}function crc32(){return bufferizeInt(_crc32.apply(null,arguments))}crc32.signed=function(){return _crc32.apply(null,arguments)};crc32.unsigned=function(){return _crc32.apply(null,arguments)>>>0};e.exports=crc32},2852:function(e){var t=function(){try{if(!Buffer.isEncoding("latin1")){return false}var e=Buffer.alloc?Buffer.alloc(4):new Buffer(4);e.fill("ab","ucs2");return e.toString("hex")==="61006200"}catch(e){return false}}();function isSingleByte(e){return e.length===1&&e.charCodeAt(0)<256}function fillWithNumber(e,t,r,i){if(r<0||i>e.length){throw new RangeError("Out of range index")}r=r>>>0;i=i===undefined?e.length:i>>>0;if(i>r){e.fill(t,r,i)}return e}function fillWithBuffer(e,t,r,i){if(r<0||i>e.length){throw new RangeError("Out of range index")}if(i<=r){return e}r=r>>>0;i=i===undefined?e.length:i>>>0;var n=r;var o=t.length;while(n<=i-o){t.copy(e,n);n+=o}if(n!==i){t.copy(e,n,0,i-n)}return e}function fill(e,r,i,n,o){if(t){return e.fill(r,i,n,o)}if(typeof r==="number"){return fillWithNumber(e,r,i,n)}if(typeof r==="string"){if(typeof i==="string"){o=i;i=0;n=e.length}else if(typeof n==="string"){o=n;n=e.length}if(o!==undefined&&typeof o!=="string"){throw new TypeError("encoding must be a string")}if(o==="latin1"){o="binary"}if(typeof o==="string"&&!Buffer.isEncoding(o)){throw new TypeError("Unknown encoding: "+o)}if(r===""){return fillWithNumber(e,0,i,n)}if(isSingleByte(r)){return fillWithNumber(e,r.charCodeAt(0),i,n)}r=new Buffer(r,o)}if(Buffer.isBuffer(r)){return fillWithBuffer(e,r,i,n)}return fillWithNumber(e,0,i,n)}e.exports=fill},5898:function(e,t,r){function isArray(e){if(Array.isArray){return Array.isArray(e)}return objectToString(e)==="[object Array]"}t.isArray=isArray;function isBoolean(e){return typeof e==="boolean"}t.isBoolean=isBoolean;function isNull(e){return e===null}t.isNull=isNull;function isNullOrUndefined(e){return e==null}t.isNullOrUndefined=isNullOrUndefined;function isNumber(e){return typeof e==="number"}t.isNumber=isNumber;function isString(e){return typeof e==="string"}t.isString=isString;function isSymbol(e){return typeof e==="symbol"}t.isSymbol=isSymbol;function isUndefined(e){return e===void 0}t.isUndefined=isUndefined;function isRegExp(e){return objectToString(e)==="[object RegExp]"}t.isRegExp=isRegExp;function isObject(e){return typeof e==="object"&&e!==null}t.isObject=isObject;function isDate(e){return objectToString(e)==="[object Date]"}t.isDate=isDate;function isError(e){return objectToString(e)==="[object Error]"||e instanceof Error}t.isError=isError;function isFunction(e){return typeof e==="function"}t.isFunction=isFunction;function isPrimitive(e){return e===null||typeof e==="boolean"||typeof e==="number"||typeof e==="string"||typeof e==="symbol"||typeof e==="undefined"}t.isPrimitive=isPrimitive;t.isBuffer=r(4300).Buffer.isBuffer;function objectToString(e){return Object.prototype.toString.call(e)}},3235:function(e,t,r){"use strict";const i=r(8300);const n=r(1554);const o=r(2283);e.exports=()=>e=>{if(!Buffer.isBuffer(e)&&!n(e)){return Promise.reject(new TypeError(`Expected a Buffer or Stream, got ${typeof e}`))}if(Buffer.isBuffer(e)&&(!i(e)||i(e).ext!=="tar")){return Promise.resolve([])}const t=o.extract();const r=[];t.on("entry",((e,t,i)=>{const n=[];t.on("data",(e=>n.push(e)));t.on("end",(()=>{const t={data:Buffer.concat(n),mode:e.mode,mtime:e.mtime,path:e.name,type:e.type};if(e.type==="symlink"||e.type==="link"){t.linkname=e.linkname}r.push(t);i()}))}));const a=new Promise(((i,n)=>{if(!Buffer.isBuffer(e)){e.on("error",n)}t.on("finish",(()=>i(r)));t.on("error",n)}));t.then=a.then.bind(a);t.catch=a.catch.bind(a);if(Buffer.isBuffer(e)){t.end(e)}else{e.pipe(t)}return t}},8300:function(e){"use strict";e.exports=e=>{const t=new Uint8Array(e);if(!(t&&t.length>1)){return null}const check=(e,r)=>{r=Object.assign({offset:0},r);for(let i=0;i<e.length;i++){if(e[i]!==t[i+r.offset]){return false}}return true};if(check([255,216,255])){return{ext:"jpg",mime:"image/jpeg"}}if(check([137,80,78,71,13,10,26,10])){return{ext:"png",mime:"image/png"}}if(check([71,73,70])){return{ext:"gif",mime:"image/gif"}}if(check([87,69,66,80],{offset:8})){return{ext:"webp",mime:"image/webp"}}if(check([70,76,73,70])){return{ext:"flif",mime:"image/flif"}}if((check([73,73,42,0])||check([77,77,0,42]))&&check([67,82],{offset:8})){return{ext:"cr2",mime:"image/x-canon-cr2"}}if(check([73,73,42,0])||check([77,77,0,42])){return{ext:"tif",mime:"image/tiff"}}if(check([66,77])){return{ext:"bmp",mime:"image/bmp"}}if(check([73,73,188])){return{ext:"jxr",mime:"image/vnd.ms-photo"}}if(check([56,66,80,83])){return{ext:"psd",mime:"image/vnd.adobe.photoshop"}}if(check([80,75,3,4])&&check([109,105,109,101,116,121,112,101,97,112,112,108,105,99,97,116,105,111,110,47,101,112,117,98,43,122,105,112],{offset:30})){return{ext:"epub",mime:"application/epub+zip"}}if(check([80,75,3,4])&&check([77,69,84,65,45,73,78,70,47,109,111,122,105,108,108,97,46,114,115,97],{offset:30})){return{ext:"xpi",mime:"application/x-xpinstall"}}if(check([80,75])&&(t[2]===3||t[2]===5||t[2]===7)&&(t[3]===4||t[3]===6||t[3]===8)){return{ext:"zip",mime:"application/zip"}}if(check([117,115,116,97,114],{offset:257})){return{ext:"tar",mime:"application/x-tar"}}if(check([82,97,114,33,26,7])&&(t[6]===0||t[6]===1)){return{ext:"rar",mime:"application/x-rar-compressed"}}if(check([31,139,8])){return{ext:"gz",mime:"application/gzip"}}if(check([66,90,104])){return{ext:"bz2",mime:"application/x-bzip2"}}if(check([55,122,188,175,39,28])){return{ext:"7z",mime:"application/x-7z-compressed"}}if(check([120,1])){return{ext:"dmg",mime:"application/x-apple-diskimage"}}if(check([0,0,0])&&(t[3]===24||t[3]===32)&&check([102,116,121,112],{offset:4})||check([51,103,112,53])||check([0,0,0,28,102,116,121,112,109,112,52,50])&&check([109,112,52,49,109,112,52,50,105,115,111,109],{offset:16})||check([0,0,0,28,102,116,121,112,105,115,111,109])||check([0,0,0,28,102,116,121,112,109,112,52,50,0,0,0,0])){return{ext:"mp4",mime:"video/mp4"}}if(check([0,0,0,28,102,116,121,112,77,52,86])){return{ext:"m4v",mime:"video/x-m4v"}}if(check([77,84,104,100])){return{ext:"mid",mime:"audio/midi"}}if(check([26,69,223,163])){const e=t.subarray(4,4+4096);const r=e.findIndex(((e,t,r)=>r[t]===66&&r[t+1]===130));if(r>=0){const t=r+3;const findDocType=r=>Array.from(r).every(((r,i)=>e[t+i]===r.charCodeAt(0)));if(findDocType("matroska")){return{ext:"mkv",mime:"video/x-matroska"}}if(findDocType("webm")){return{ext:"webm",mime:"video/webm"}}}}if(check([0,0,0,20,102,116,121,112,113,116,32,32])||check([102,114,101,101],{offset:4})||check([102,116,121,112,113,116,32,32],{offset:4})||check([109,100,97,116],{offset:4})||check([119,105,100,101],{offset:4})){return{ext:"mov",mime:"video/quicktime"}}if(check([82,73,70,70])&&check([65,86,73],{offset:8})){return{ext:"avi",mime:"video/x-msvideo"}}if(check([48,38,178,117,142,102,207,17,166,217])){return{ext:"wmv",mime:"video/x-ms-wmv"}}if(check([0,0,1,186])){return{ext:"mpg",mime:"video/mpeg"}}if(check([73,68,51])||check([255,251])){return{ext:"mp3",mime:"audio/mpeg"}}if(check([102,116,121,112,77,52,65],{offset:4})||check([77,52,65,32])){return{ext:"m4a",mime:"audio/m4a"}}if(check([79,112,117,115,72,101,97,100],{offset:28})){return{ext:"opus",mime:"audio/opus"}}if(check([79,103,103,83])){return{ext:"ogg",mime:"audio/ogg"}}if(check([102,76,97,67])){return{ext:"flac",mime:"audio/x-flac"}}if(check([82,73,70,70])&&check([87,65,86,69],{offset:8})){return{ext:"wav",mime:"audio/x-wav"}}if(check([35,33,65,77,82,10])){return{ext:"amr",mime:"audio/amr"}}if(check([37,80,68,70])){return{ext:"pdf",mime:"application/pdf"}}if(check([77,90])){return{ext:"exe",mime:"application/x-msdownload"}}if((t[0]===67||t[0]===70)&&check([87,83],{offset:1})){return{ext:"swf",mime:"application/x-shockwave-flash"}}if(check([123,92,114,116,102])){return{ext:"rtf",mime:"application/rtf"}}if(check([0,97,115,109])){return{ext:"wasm",mime:"application/wasm"}}if(check([119,79,70,70])&&(check([0,1,0,0],{offset:4})||check([79,84,84,79],{offset:4}))){return{ext:"woff",mime:"font/woff"}}if(check([119,79,70,50])&&(check([0,1,0,0],{offset:4})||check([79,84,84,79],{offset:4}))){return{ext:"woff2",mime:"font/woff2"}}if(check([76,80],{offset:34})&&(check([0,0,1],{offset:8})||check([1,0,2],{offset:8})||check([2,0,2],{offset:8}))){return{ext:"eot",mime:"application/octet-stream"}}if(check([0,1,0,0,0])){return{ext:"ttf",mime:"font/ttf"}}if(check([79,84,84,79,0])){return{ext:"otf",mime:"font/otf"}}if(check([0,0,1,0])){return{ext:"ico",mime:"image/x-icon"}}if(check([70,76,86,1])){return{ext:"flv",mime:"video/x-flv"}}if(check([37,33])){return{ext:"ps",mime:"application/postscript"}}if(check([253,55,122,88,90,0])){return{ext:"xz",mime:"application/x-xz"}}if(check([83,81,76,105])){return{ext:"sqlite",mime:"application/x-sqlite3"}}if(check([78,69,83,26])){return{ext:"nes",mime:"application/x-nintendo-nes-rom"}}if(check([67,114,50,52])){return{ext:"crx",mime:"application/x-google-chrome-extension"}}if(check([77,83,67,70])||check([73,83,99,40])){return{ext:"cab",mime:"application/vnd.ms-cab-compressed"}}if(check([33,60,97,114,99,104,62,10,100,101,98,105,97,110,45,98,105,110,97,114,121])){return{ext:"deb",mime:"application/x-deb"}}if(check([33,60,97,114,99,104,62])){return{ext:"ar",mime:"application/x-unix-archive"}}if(check([237,171,238,219])){return{ext:"rpm",mime:"application/x-rpm"}}if(check([31,160])||check([31,157])){return{ext:"Z",mime:"application/x-compress"}}if(check([76,90,73,80])){return{ext:"lz",mime:"application/x-lzip"}}if(check([208,207,17,224,161,177,26,225])){return{ext:"msi",mime:"application/x-msi"}}if(check([6,14,43,52,2,5,1,1,13,1,2,1,1,2])){return{ext:"mxf",mime:"application/mxf"}}if(check([71],{offset:4})&&(check([71],{offset:192})||check([71],{offset:196}))){return{ext:"mts",mime:"video/mp2t"}}if(check([66,76,69,78,68,69,82])){return{ext:"blend",mime:"application/x-blender"}}if(check([66,80,71,251])){return{ext:"bpg",mime:"image/bpg"}}return null}},2454:function(e,t,r){"use strict";const i=r(3235);const n=r(8688);const o=r(1554);const a=r(9562);const s=r(3467);e.exports=()=>e=>{if(!Buffer.isBuffer(e)&&!o(e)){return Promise.reject(new TypeError(`Expected a Buffer or Stream, got ${typeof e}`))}if(Buffer.isBuffer(e)&&(!n(e)||n(e).ext!=="bz2")){return Promise.resolve([])}if(Buffer.isBuffer(e)){return i()(a.decode(e))}return i()(e.pipe(s()))}},8688:function(e){"use strict";const toBytes=e=>Array.from(e).map((e=>e.charCodeAt(0)));const t=toBytes("META-INF/mozilla.rsa");const r=toBytes("[Content_Types].xml");const i=toBytes("_rels/.rels");e.exports=e=>{const n=new Uint8Array(e);if(!(n&&n.length>1)){return null}const check=(e,t)=>{t=Object.assign({offset:0},t);for(let r=0;r<e.length;r++){if(t.mask){if(e[r]!==(t.mask[r]&n[r+t.offset])){return false}}else if(e[r]!==n[r+t.offset]){return false}}return true};if(check([255,216,255])){return{ext:"jpg",mime:"image/jpeg"}}if(check([137,80,78,71,13,10,26,10])){return{ext:"png",mime:"image/png"}}if(check([71,73,70])){return{ext:"gif",mime:"image/gif"}}if(check([87,69,66,80],{offset:8})){return{ext:"webp",mime:"image/webp"}}if(check([70,76,73,70])){return{ext:"flif",mime:"image/flif"}}if((check([73,73,42,0])||check([77,77,0,42]))&&check([67,82],{offset:8})){return{ext:"cr2",mime:"image/x-canon-cr2"}}if(check([73,73,42,0])||check([77,77,0,42])){return{ext:"tif",mime:"image/tiff"}}if(check([66,77])){return{ext:"bmp",mime:"image/bmp"}}if(check([73,73,188])){return{ext:"jxr",mime:"image/vnd.ms-photo"}}if(check([56,66,80,83])){return{ext:"psd",mime:"image/vnd.adobe.photoshop"}}if(check([80,75,3,4])){if(check([109,105,109,101,116,121,112,101,97,112,112,108,105,99,97,116,105,111,110,47,101,112,117,98,43,122,105,112],{offset:30})){return{ext:"epub",mime:"application/epub+zip"}}if(check(t,{offset:30})){return{ext:"xpi",mime:"application/x-xpinstall"}}if(check(r,{offset:30})||check(i,{offset:30})){const e=n.subarray(4,4+2e3);const nextZipHeaderIndex=e=>e.findIndex(((e,t,r)=>r[t]===80&&r[t+1]===75&&r[t+2]===3&&r[t+3]===4));const t=nextZipHeaderIndex(e);if(t!==-1){const e=n.subarray(t+8,t+8+1e3);const r=nextZipHeaderIndex(e);if(r!==-1){const e=8+t+r+30;if(check(toBytes("word/"),{offset:e})){return{ext:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"}}if(check(toBytes("ppt/"),{offset:e})){return{ext:"pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"}}if(check(toBytes("xl/"),{offset:e})){return{ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}}}}}}if(check([80,75])&&(n[2]===3||n[2]===5||n[2]===7)&&(n[3]===4||n[3]===6||n[3]===8)){return{ext:"zip",mime:"application/zip"}}if(check([117,115,116,97,114],{offset:257})){return{ext:"tar",mime:"application/x-tar"}}if(check([82,97,114,33,26,7])&&(n[6]===0||n[6]===1)){return{ext:"rar",mime:"application/x-rar-compressed"}}if(check([31,139,8])){return{ext:"gz",mime:"application/gzip"}}if(check([66,90,104])){return{ext:"bz2",mime:"application/x-bzip2"}}if(check([55,122,188,175,39,28])){return{ext:"7z",mime:"application/x-7z-compressed"}}if(check([120,1])){return{ext:"dmg",mime:"application/x-apple-diskimage"}}if(check([51,103,112,53])||check([0,0,0])&&check([102,116,121,112],{offset:4})&&(check([109,112,52,49],{offset:8})||check([109,112,52,50],{offset:8})||check([105,115,111,109],{offset:8})||check([105,115,111,50],{offset:8})||check([109,109,112,52],{offset:8})||check([77,52,86],{offset:8})||check([100,97,115,104],{offset:8}))){return{ext:"mp4",mime:"video/mp4"}}if(check([77,84,104,100])){return{ext:"mid",mime:"audio/midi"}}if(check([26,69,223,163])){const e=n.subarray(4,4+4096);const t=e.findIndex(((e,t,r)=>r[t]===66&&r[t+1]===130));if(t!==-1){const r=t+3;const findDocType=t=>Array.from(t).every(((t,i)=>e[r+i]===t.charCodeAt(0)));if(findDocType("matroska")){return{ext:"mkv",mime:"video/x-matroska"}}if(findDocType("webm")){return{ext:"webm",mime:"video/webm"}}}}if(check([0,0,0,20,102,116,121,112,113,116,32,32])||check([102,114,101,101],{offset:4})||check([102,116,121,112,113,116,32,32],{offset:4})||check([109,100,97,116],{offset:4})||check([119,105,100,101],{offset:4})){return{ext:"mov",mime:"video/quicktime"}}if(check([82,73,70,70])&&check([65,86,73],{offset:8})){return{ext:"avi",mime:"video/x-msvideo"}}if(check([48,38,178,117,142,102,207,17,166,217])){return{ext:"wmv",mime:"video/x-ms-wmv"}}if(check([0,0,1,186])){return{ext:"mpg",mime:"video/mpeg"}}for(let e=0;e<2&&e<n.length-16;e++){if(check([73,68,51],{offset:e})||check([255,226],{offset:e,mask:[255,226]})){return{ext:"mp3",mime:"audio/mpeg"}}}if(check([102,116,121,112,77,52,65],{offset:4})||check([77,52,65,32])){return{ext:"m4a",mime:"audio/m4a"}}if(check([79,112,117,115,72,101,97,100],{offset:28})){return{ext:"opus",mime:"audio/opus"}}if(check([79,103,103,83])){return{ext:"ogg",mime:"audio/ogg"}}if(check([102,76,97,67])){return{ext:"flac",mime:"audio/x-flac"}}if(check([82,73,70,70])&&check([87,65,86,69],{offset:8})){return{ext:"wav",mime:"audio/x-wav"}}if(check([35,33,65,77,82,10])){return{ext:"amr",mime:"audio/amr"}}if(check([37,80,68,70])){return{ext:"pdf",mime:"application/pdf"}}if(check([77,90])){return{ext:"exe",mime:"application/x-msdownload"}}if((n[0]===67||n[0]===70)&&check([87,83],{offset:1})){return{ext:"swf",mime:"application/x-shockwave-flash"}}if(check([123,92,114,116,102])){return{ext:"rtf",mime:"application/rtf"}}if(check([0,97,115,109])){return{ext:"wasm",mime:"application/wasm"}}if(check([119,79,70,70])&&(check([0,1,0,0],{offset:4})||check([79,84,84,79],{offset:4}))){return{ext:"woff",mime:"font/woff"}}if(check([119,79,70,50])&&(check([0,1,0,0],{offset:4})||check([79,84,84,79],{offset:4}))){return{ext:"woff2",mime:"font/woff2"}}if(check([76,80],{offset:34})&&(check([0,0,1],{offset:8})||check([1,0,2],{offset:8})||check([2,0,2],{offset:8}))){return{ext:"eot",mime:"application/octet-stream"}}if(check([0,1,0,0,0])){return{ext:"ttf",mime:"font/ttf"}}if(check([79,84,84,79,0])){return{ext:"otf",mime:"font/otf"}}if(check([0,0,1,0])){return{ext:"ico",mime:"image/x-icon"}}if(check([70,76,86,1])){return{ext:"flv",mime:"video/x-flv"}}if(check([37,33])){return{ext:"ps",mime:"application/postscript"}}if(check([253,55,122,88,90,0])){return{ext:"xz",mime:"application/x-xz"}}if(check([83,81,76,105])){return{ext:"sqlite",mime:"application/x-sqlite3"}}if(check([78,69,83,26])){return{ext:"nes",mime:"application/x-nintendo-nes-rom"}}if(check([67,114,50,52])){return{ext:"crx",mime:"application/x-google-chrome-extension"}}if(check([77,83,67,70])||check([73,83,99,40])){return{ext:"cab",mime:"application/vnd.ms-cab-compressed"}}if(check([33,60,97,114,99,104,62,10,100,101,98,105,97,110,45,98,105,110,97,114,121])){return{ext:"deb",mime:"application/x-deb"}}if(check([33,60,97,114,99,104,62])){return{ext:"ar",mime:"application/x-unix-archive"}}if(check([237,171,238,219])){return{ext:"rpm",mime:"application/x-rpm"}}if(check([31,160])||check([31,157])){return{ext:"Z",mime:"application/x-compress"}}if(check([76,90,73,80])){return{ext:"lz",mime:"application/x-lzip"}}if(check([208,207,17,224,161,177,26,225])){return{ext:"msi",mime:"application/x-msi"}}if(check([6,14,43,52,2,5,1,1,13,1,2,1,1,2])){return{ext:"mxf",mime:"application/mxf"}}if(check([71],{offset:4})&&(check([71],{offset:192})||check([71],{offset:196}))){return{ext:"mts",mime:"video/mp2t"}}if(check([66,76,69,78,68,69,82])){return{ext:"blend",mime:"application/x-blender"}}if(check([66,80,71,251])){return{ext:"bpg",mime:"image/bpg"}}return null}},7335:function(e,t,r){"use strict";const i=r(9796);const n=r(3235);const o=r(1608);const a=r(1554);e.exports=()=>e=>{if(!Buffer.isBuffer(e)&&!a(e)){return Promise.reject(new TypeError(`Expected a Buffer or Stream, got ${typeof e}`))}if(Buffer.isBuffer(e)&&(!o(e)||o(e).ext!=="gz")){return Promise.resolve([])}const t=i.createGunzip();const r=n()(t);if(Buffer.isBuffer(e)){t.end(e)}else{e.pipe(t)}return r}},1608:function(e){"use strict";e.exports=e=>{const t=new Uint8Array(e);if(!(t&&t.length>1)){return null}const check=(e,r)=>{r=Object.assign({offset:0},r);for(let i=0;i<e.length;i++){if(e[i]!==t[i+r.offset]){return false}}return true};if(check([255,216,255])){return{ext:"jpg",mime:"image/jpeg"}}if(check([137,80,78,71,13,10,26,10])){return{ext:"png",mime:"image/png"}}if(check([71,73,70])){return{ext:"gif",mime:"image/gif"}}if(check([87,69,66,80],{offset:8})){return{ext:"webp",mime:"image/webp"}}if(check([70,76,73,70])){return{ext:"flif",mime:"image/flif"}}if((check([73,73,42,0])||check([77,77,0,42]))&&check([67,82],{offset:8})){return{ext:"cr2",mime:"image/x-canon-cr2"}}if(check([73,73,42,0])||check([77,77,0,42])){return{ext:"tif",mime:"image/tiff"}}if(check([66,77])){return{ext:"bmp",mime:"image/bmp"}}if(check([73,73,188])){return{ext:"jxr",mime:"image/vnd.ms-photo"}}if(check([56,66,80,83])){return{ext:"psd",mime:"image/vnd.adobe.photoshop"}}if(check([80,75,3,4])&&check([109,105,109,101,116,121,112,101,97,112,112,108,105,99,97,116,105,111,110,47,101,112,117,98,43,122,105,112],{offset:30})){return{ext:"epub",mime:"application/epub+zip"}}if(check([80,75,3,4])&&check([77,69,84,65,45,73,78,70,47,109,111,122,105,108,108,97,46,114,115,97],{offset:30})){return{ext:"xpi",mime:"application/x-xpinstall"}}if(check([80,75])&&(t[2]===3||t[2]===5||t[2]===7)&&(t[3]===4||t[3]===6||t[3]===8)){return{ext:"zip",mime:"application/zip"}}if(check([117,115,116,97,114],{offset:257})){return{ext:"tar",mime:"application/x-tar"}}if(check([82,97,114,33,26,7])&&(t[6]===0||t[6]===1)){return{ext:"rar",mime:"application/x-rar-compressed"}}if(check([31,139,8])){return{ext:"gz",mime:"application/gzip"}}if(check([66,90,104])){return{ext:"bz2",mime:"application/x-bzip2"}}if(check([55,122,188,175,39,28])){return{ext:"7z",mime:"application/x-7z-compressed"}}if(check([120,1])){return{ext:"dmg",mime:"application/x-apple-diskimage"}}if(check([0,0,0])&&(t[3]===24||t[3]===32)&&check([102,116,121,112],{offset:4})||check([51,103,112,53])||check([0,0,0,28,102,116,121,112,109,112,52,50])&&check([109,112,52,49,109,112,52,50,105,115,111,109],{offset:16})||check([0,0,0,28,102,116,121,112,105,115,111,109])||check([0,0,0,28,102,116,121,112,109,112,52,50,0,0,0,0])){return{ext:"mp4",mime:"video/mp4"}}if(check([0,0,0,28,102,116,121,112,77,52,86])){return{ext:"m4v",mime:"video/x-m4v"}}if(check([77,84,104,100])){return{ext:"mid",mime:"audio/midi"}}if(check([26,69,223,163])){const e=t.subarray(4,4+4096);const r=e.findIndex(((e,t,r)=>r[t]===66&&r[t+1]===130));if(r>=0){const t=r+3;const findDocType=r=>Array.from(r).every(((r,i)=>e[t+i]===r.charCodeAt(0)));if(findDocType("matroska")){return{ext:"mkv",mime:"video/x-matroska"}}if(findDocType("webm")){return{ext:"webm",mime:"video/webm"}}}}if(check([0,0,0,20,102,116,121,112,113,116,32,32])||check([102,114,101,101],{offset:4})||check([102,116,121,112,113,116,32,32],{offset:4})||check([109,100,97,116],{offset:4})||check([119,105,100,101],{offset:4})){return{ext:"mov",mime:"video/quicktime"}}if(check([82,73,70,70])&&check([65,86,73],{offset:8})){return{ext:"avi",mime:"video/x-msvideo"}}if(check([48,38,178,117,142,102,207,17,166,217])){return{ext:"wmv",mime:"video/x-ms-wmv"}}if(check([0,0,1,186])){return{ext:"mpg",mime:"video/mpeg"}}if(check([73,68,51])||check([255,251])){return{ext:"mp3",mime:"audio/mpeg"}}if(check([102,116,121,112,77,52,65],{offset:4})||check([77,52,65,32])){return{ext:"m4a",mime:"audio/m4a"}}if(check([79,112,117,115,72,101,97,100],{offset:28})){return{ext:"opus",mime:"audio/opus"}}if(check([79,103,103,83])){return{ext:"ogg",mime:"audio/ogg"}}if(check([102,76,97,67])){return{ext:"flac",mime:"audio/x-flac"}}if(check([82,73,70,70])&&check([87,65,86,69],{offset:8})){return{ext:"wav",mime:"audio/x-wav"}}if(check([35,33,65,77,82,10])){return{ext:"amr",mime:"audio/amr"}}if(check([37,80,68,70])){return{ext:"pdf",mime:"application/pdf"}}if(check([77,90])){return{ext:"exe",mime:"application/x-msdownload"}}if((t[0]===67||t[0]===70)&&check([87,83],{offset:1})){return{ext:"swf",mime:"application/x-shockwave-flash"}}if(check([123,92,114,116,102])){return{ext:"rtf",mime:"application/rtf"}}if(check([0,97,115,109])){return{ext:"wasm",mime:"application/wasm"}}if(check([119,79,70,70])&&(check([0,1,0,0],{offset:4})||check([79,84,84,79],{offset:4}))){return{ext:"woff",mime:"font/woff"}}if(check([119,79,70,50])&&(check([0,1,0,0],{offset:4})||check([79,84,84,79],{offset:4}))){return{ext:"woff2",mime:"font/woff2"}}if(check([76,80],{offset:34})&&(check([0,0,1],{offset:8})||check([1,0,2],{offset:8})||check([2,0,2],{offset:8}))){return{ext:"eot",mime:"application/octet-stream"}}if(check([0,1,0,0,0])){return{ext:"ttf",mime:"font/ttf"}}if(check([79,84,84,79,0])){return{ext:"otf",mime:"font/otf"}}if(check([0,0,1,0])){return{ext:"ico",mime:"image/x-icon"}}if(check([70,76,86,1])){return{ext:"flv",mime:"video/x-flv"}}if(check([37,33])){return{ext:"ps",mime:"application/postscript"}}if(check([253,55,122,88,90,0])){return{ext:"xz",mime:"application/x-xz"}}if(check([83,81,76,105])){return{ext:"sqlite",mime:"application/x-sqlite3"}}if(check([78,69,83,26])){return{ext:"nes",mime:"application/x-nintendo-nes-rom"}}if(check([67,114,50,52])){return{ext:"crx",mime:"application/x-google-chrome-extension"}}if(check([77,83,67,70])||check([73,83,99,40])){return{ext:"cab",mime:"application/vnd.ms-cab-compressed"}}if(check([33,60,97,114,99,104,62,10,100,101,98,105,97,110,45,98,105,110,97,114,121])){return{ext:"deb",mime:"application/x-deb"}}if(check([33,60,97,114,99,104,62])){return{ext:"ar",mime:"application/x-unix-archive"}}if(check([237,171,238,219])){return{ext:"rpm",mime:"application/x-rpm"}}if(check([31,160])||check([31,157])){return{ext:"Z",mime:"application/x-compress"}}if(check([76,90,73,80])){return{ext:"lz",mime:"application/x-lzip"}}if(check([208,207,17,224,161,177,26,225])){return{ext:"msi",mime:"application/x-msi"}}if(check([6,14,43,52,2,5,1,1,13,1,2,1,1,2])){return{ext:"mxf",mime:"application/mxf"}}if(check([71],{offset:4})&&(check([71],{offset:192})||check([71],{offset:196}))){return{ext:"mts",mime:"video/mp2t"}}if(check([66,76,69,78,68,69,82])){return{ext:"blend",mime:"application/x-blender"}}if(check([66,80,71,251])){return{ext:"bpg",mime:"image/bpg"}}return null}},8396:function(e,t,r){"use strict";const i=r(7128);const n=r(8771);const o=r(126);const a=r(8781);const getType=(e,t)=>{const r=61440;const i=16384;const n=40960;const o=e.versionMadeBy>>8;if((t&r)===n){return"symlink"}if((t&r)===i||o===0&&e.externalFileAttributes===16){return"directory"}return"file"};const extractEntry=(e,t)=>{const r={mode:e.externalFileAttributes>>16&65535,mtime:e.getLastModDate(),path:e.fileName};r.type=getType(e,r.mode);if(r.mode===0&&r.type==="directory"){r.mode=493}if(r.mode===0){r.mode=420}return o(t.openReadStream.bind(t))(e).then(n.buffer).then((e=>{r.data=e;if(r.type==="symlink"){r.linkname=e.toString()}return r})).catch((e=>{t.close();throw e}))};const extractFile=e=>new Promise(((t,r)=>{const i=[];e.readEntry();e.on("entry",(t=>{extractEntry(t,e).catch(r).then((t=>{i.push(t);e.readEntry()}))}));e.on("error",r);e.on("end",(()=>t(i)))}));e.exports=()=>e=>{if(!Buffer.isBuffer(e)){return Promise.reject(new TypeError(`Expected a Buffer, got ${typeof e}`))}if(!i(e)||i(e).ext!=="zip"){return Promise.resolve([])}return o(a.fromBuffer)(e,{lazyEntries:true}).then(extractFile)}},7420:function(e,t,r){var i=r(2781).PassThrough;var n=r(7426);e.exports=function(e){e=n({},e);var t=e.array;var r=e.encoding;var o=r==="buffer";var a=false;if(t){a=!(r||o)}else{r=r||"utf8"}if(o){r=null}var s=0;var u=[];var l=new i({objectMode:a});if(r){l.setEncoding(r)}l.on("data",(function(e){u.push(e);if(a){s=u.length}else{s+=e.length}}));l.getBufferedValue=function(){if(t){return u}return o?Buffer.concat(u,s):u.join("")};l.getBufferedLength=function(){return s};return l}},8771:function(e,t,r){"use strict";var i=r(5222);var n=r(7426);var o=r(7420);function getStream(e,t){if(!e){return i.reject(new Error("Expected a stream"))}t=n({maxBuffer:Infinity},t);var r=t.maxBuffer;var a;var s;var u=new i((function(i,n){a=o(t);e.once("error",error);e.pipe(a);a.on("data",(function(){if(a.getBufferedLength()>r){n(new Error("maxBuffer exceeded"))}}));a.once("error",error);a.on("end",i);s=function(){if(e.unpipe){e.unpipe(a)}};function error(e){if(e){e.bufferedData=a.getBufferedValue()}n(e)}}));u.then(s,s);return u.then((function(){return a.getBufferedValue()}))}e.exports=getStream;e.exports.buffer=function(e,t){return getStream(e,n({},t,{encoding:"buffer"}))};e.exports.array=function(e,t){return getStream(e,n({},t,{array:true}))}},126:function(e){"use strict";var processFn=function(e,t,r){return function(){var i=this;var n=new Array(arguments.length);for(var o=0;o<arguments.length;o++){n[o]=arguments[o]}return new t((function(t,o){n.push((function(e,i){if(e){o(e)}else if(r.multiArgs){var n=new Array(arguments.length-1);for(var a=1;a<arguments.length;a++){n[a-1]=arguments[a]}t(n)}else{t(i)}}));e.apply(i,n)}))}};var t=e.exports=function(e,t,r){if(typeof t!=="function"){r=t;t=Promise}r=r||{};r.exclude=r.exclude||[/.+Sync$/];var filter=function(e){var match=function(t){return typeof t==="string"?e===t:t.test(e)};return r.include?r.include.some(match):!r.exclude.some(match)};var i=typeof e==="function"?function(){if(r.excludeMain){return e.apply(this,arguments)}return processFn(e,t,r).apply(this,arguments)}:{};return Object.keys(e).reduce((function(i,n){var o=e[n];i[n]=typeof o==="function"&&filter(n)?processFn(o,t,r):o;return i}),i)};t.all=t},9350:function(e,t,r){"use strict";const i=r(1017);const n=r(7758);const o=r(3235);const a=r(2454);const s=r(7335);const u=r(8396);const l=r(9126);const c=r(9205);const d=r(5723);const p=c(n);const runPlugins=(e,t)=>{if(t.plugins.length===0){return Promise.resolve([])}return Promise.all(t.plugins.map((r=>r(e,t)))).then((e=>e.reduce(((e,t)=>e.concat(t)))))};const safeMakeDir=(e,t)=>p.realpath(e).catch((r=>{const n=i.dirname(e);return safeMakeDir(n,t)})).then((r=>{if(r.indexOf(t)!==0){throw new Error("Refusing to create a directory outside the output path.")}return l(e).then(p.realpath)}));const preventWritingThroughSymlink=(e,t)=>p.readlink(e).catch((e=>null)).then((e=>{if(e){throw new Error("Refusing to write into a symlink")}return t}));const extractFile=(e,t,r)=>runPlugins(e,r).then((e=>{if(r.strip>0){e=e.map((e=>{e.path=d(e.path,r.strip);return e})).filter((e=>e.path!=="."))}if(typeof r.filter==="function"){e=e.filter(r.filter)}if(typeof r.map==="function"){e=e.map(r.map)}if(!t){return e}return Promise.all(e.map((e=>{const r=i.join(t,e.path);const n=e.mode&~process.umask();const o=new Date;if(e.type==="directory"){return l(t).then((e=>p.realpath(e))).then((e=>safeMakeDir(r,e))).then((()=>p.utimes(r,o,e.mtime))).then((()=>e))}return l(t).then((e=>p.realpath(e))).then((e=>safeMakeDir(i.dirname(r),e).then((()=>e)))).then((t=>{if(e.type==="file"){return preventWritingThroughSymlink(r,t)}return t})).then((e=>p.realpath(i.dirname(r)).then((t=>{if(t.indexOf(e)!==0){throw new Error("Refusing to write outside output directory: "+t)}})))).then((()=>{if(e.type==="link"){return p.link(e.linkname,r)}if(e.type==="symlink"&&process.platform==="win32"){return p.link(e.linkname,r)}if(e.type==="symlink"){return p.symlink(e.linkname,r)}return p.writeFile(r,e.data,{mode:n})})).then((()=>e.type==="file"&&p.utimes(r,o,e.mtime))).then((()=>e))})))}));e.exports=(e,t,r)=>{if(typeof e!=="string"&&!Buffer.isBuffer(e)){return Promise.reject(new TypeError("Input file required"))}if(typeof t==="object"){r=t;t=null}r=Object.assign({plugins:[o(),a(),s(),u()]},r);const i=typeof e==="string"?p.readFile(e):Promise.resolve(e);return i.then((e=>extractFile(e,t,r)))}},9205:function(e){"use strict";var processFn=function(e,t,r){return function(){var i=this;var n=new Array(arguments.length);for(var o=0;o<arguments.length;o++){n[o]=arguments[o]}return new t((function(t,o){n.push((function(e,i){if(e){o(e)}else if(r.multiArgs){var n=new Array(arguments.length-1);for(var a=1;a<arguments.length;a++){n[a-1]=arguments[a]}t(n)}else{t(i)}}));e.apply(i,n)}))}};var t=e.exports=function(e,t,r){if(typeof t!=="function"){r=t;t=Promise}r=r||{};r.exclude=r.exclude||[/.+Sync$/];var filter=function(e){var match=function(t){return typeof t==="string"?e===t:t.test(e)};return r.include?r.include.some(match):!r.exclude.some(match)};var i=typeof e==="function"?function(){if(r.excludeMain){return e.apply(this,arguments)}return processFn(e,t,r).apply(this,arguments)}:{};return Object.keys(e).reduce((function(i,n){var o=e[n];i[n]=typeof o==="function"&&filter(n)?processFn(o,t,r):o;return i}),i)};t.all=t},1205:function(e,t,r){var i=r(1223);var noop=function(){};var isRequest=function(e){return e.setHeader&&typeof e.abort==="function"};var isChildProcess=function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3};var eos=function(e,t,r){if(typeof t==="function")return eos(e,null,t);if(!t)t={};r=i(r||noop);var n=e._writableState;var o=e._readableState;var a=t.readable||t.readable!==false&&e.readable;var s=t.writable||t.writable!==false&&e.writable;var u=false;var onlegacyfinish=function(){if(!e.writable)onfinish()};var onfinish=function(){s=false;if(!a)r.call(e)};var onend=function(){a=false;if(!s)r.call(e)};var onexit=function(t){r.call(e,t?new Error("exited with error code: "+t):null)};var onerror=function(t){r.call(e,t)};var onclose=function(){process.nextTick(onclosenexttick)};var onclosenexttick=function(){if(u)return;if(a&&!(o&&(o.ended&&!o.destroyed)))return r.call(e,new Error("premature close"));if(s&&!(n&&(n.ended&&!n.destroyed)))return r.call(e,new Error("premature close"))};var onrequest=function(){e.req.on("finish",onfinish)};if(isRequest(e)){e.on("complete",onfinish);e.on("abort",onclose);if(e.req)onrequest();else e.on("request",onrequest)}else if(s&&!n){e.on("end",onlegacyfinish);e.on("close",onlegacyfinish)}if(isChildProcess(e))e.on("exit",onexit);e.on("end",onend);e.on("finish",onfinish);if(t.error!==false)e.on("error",onerror);e.on("close",onclose);return function(){u=true;e.removeListener("complete",onfinish);e.removeListener("abort",onclose);e.removeListener("request",onrequest);if(e.req)e.req.removeListener("finish",onfinish);e.removeListener("end",onlegacyfinish);e.removeListener("close",onlegacyfinish);e.removeListener("finish",onfinish);e.removeListener("exit",onexit);e.removeListener("end",onend);e.removeListener("error",onerror);e.removeListener("close",onclose)}};e.exports=eos},5010:function(e,t,r){var i=r(7147);var n=r(3837);var o=r(2781);var a=o.Readable;var s=o.Writable;var u=o.PassThrough;var l=r(4833);var c=r(2361).EventEmitter;t.createFromBuffer=createFromBuffer;t.createFromFd=createFromFd;t.BufferSlicer=BufferSlicer;t.FdSlicer=FdSlicer;n.inherits(FdSlicer,c);function FdSlicer(e,t){t=t||{};c.call(this);this.fd=e;this.pend=new l;this.pend.max=1;this.refCount=0;this.autoClose=!!t.autoClose}FdSlicer.prototype.read=function(e,t,r,n,o){var a=this;a.pend.go((function(s){i.read(a.fd,e,t,r,n,(function(e,t,r){s();o(e,t,r)}))}))};FdSlicer.prototype.write=function(e,t,r,n,o){var a=this;a.pend.go((function(s){i.write(a.fd,e,t,r,n,(function(e,t,r){s();o(e,t,r)}))}))};FdSlicer.prototype.createReadStream=function(e){return new ReadStream(this,e)};FdSlicer.prototype.createWriteStream=function(e){return new WriteStream(this,e)};FdSlicer.prototype.ref=function(){this.refCount+=1};FdSlicer.prototype.unref=function(){var e=this;e.refCount-=1;if(e.refCount>0)return;if(e.refCount<0)throw new Error("invalid unref");if(e.autoClose){i.close(e.fd,onCloseDone)}function onCloseDone(t){if(t){e.emit("error",t)}else{e.emit("close")}}};n.inherits(ReadStream,a);function ReadStream(e,t){t=t||{};a.call(this,t);this.context=e;this.context.ref();this.start=t.start||0;this.endOffset=t.end;this.pos=this.start;this.destroyed=false}ReadStream.prototype._read=function(e){var t=this;if(t.destroyed)return;var r=Math.min(t._readableState.highWaterMark,e);if(t.endOffset!=null){r=Math.min(r,t.endOffset-t.pos)}if(r<=0){t.destroyed=true;t.push(null);t.context.unref();return}t.context.pend.go((function(e){if(t.destroyed)return e();var n=new Buffer(r);i.read(t.context.fd,n,0,r,t.pos,(function(r,i){if(r){t.destroy(r)}else if(i===0){t.destroyed=true;t.push(null);t.context.unref()}else{t.pos+=i;t.push(n.slice(0,i))}e()}))}))};ReadStream.prototype.destroy=function(e){if(this.destroyed)return;e=e||new Error("stream destroyed");this.destroyed=true;this.emit("error",e);this.context.unref()};n.inherits(WriteStream,s);function WriteStream(e,t){t=t||{};s.call(this,t);this.context=e;this.context.ref();this.start=t.start||0;this.endOffset=t.end==null?Infinity:+t.end;this.bytesWritten=0;this.pos=this.start;this.destroyed=false;this.on("finish",this.destroy.bind(this))}WriteStream.prototype._write=function(e,t,r){var n=this;if(n.destroyed)return;if(n.pos+e.length>n.endOffset){var o=new Error("maximum file length exceeded");o.code="ETOOBIG";n.destroy();r(o);return}n.context.pend.go((function(t){if(n.destroyed)return t();i.write(n.context.fd,e,0,e.length,n.pos,(function(e,i){if(e){n.destroy();t();r(e)}else{n.bytesWritten+=i;n.pos+=i;n.emit("progress");t();r()}}))}))};WriteStream.prototype.destroy=function(){if(this.destroyed)return;this.destroyed=true;this.context.unref()};n.inherits(BufferSlicer,c);function BufferSlicer(e,t){c.call(this);t=t||{};this.refCount=0;this.buffer=e;this.maxChunkSize=t.maxChunkSize||Number.MAX_SAFE_INTEGER}BufferSlicer.prototype.read=function(e,t,r,i,n){var o=i+r;var a=o-this.buffer.length;var s=a>0?a:r;this.buffer.copy(e,t,i,o);setImmediate((function(){n(null,s)}))};BufferSlicer.prototype.write=function(e,t,r,i,n){e.copy(this.buffer,i,t,t+r);setImmediate((function(){n(null,r,e)}))};BufferSlicer.prototype.createReadStream=function(e){e=e||{};var t=new u(e);t.destroyed=false;t.start=e.start||0;t.endOffset=e.end;t.pos=t.endOffset||this.buffer.length;var r=this.buffer.slice(t.start,t.pos);var i=0;while(true){var n=i+this.maxChunkSize;if(n>=r.length){if(i<r.length){t.write(r.slice(i,r.length))}break}t.write(r.slice(i,n));i=n}t.end();t.destroy=function(){t.destroyed=true};return t};BufferSlicer.prototype.createWriteStream=function(e){var t=this;e=e||{};var r=new s(e);r.start=e.start||0;r.endOffset=e.end==null?this.buffer.length:+e.end;r.bytesWritten=0;r.pos=r.start;r.destroyed=false;r._write=function(e,i,n){if(r.destroyed)return;var o=r.pos+e.length;if(o>r.endOffset){var a=new Error("maximum file length exceeded");a.code="ETOOBIG";r.destroyed=true;n(a);return}e.copy(t.buffer,r.pos,0,e.length);r.bytesWritten+=e.length;r.pos=o;r.emit("progress");n()};r.destroy=function(){r.destroyed=true};return r};BufferSlicer.prototype.ref=function(){this.refCount+=1};BufferSlicer.prototype.unref=function(){this.refCount-=1;if(this.refCount<0){throw new Error("invalid unref")}};function createFromBuffer(e,t){return new BufferSlicer(e,t)}function createFromFd(e,t){return new FdSlicer(e,t)}},7128:function(e){"use strict";e.exports=function(e){if(!(e&&e.length>1)){return null}if(e[0]===255&&e[1]===216&&e[2]===255){return{ext:"jpg",mime:"image/jpeg"}}if(e[0]===137&&e[1]===80&&e[2]===78&&e[3]===71){return{ext:"png",mime:"image/png"}}if(e[0]===71&&e[1]===73&&e[2]===70){return{ext:"gif",mime:"image/gif"}}if(e[8]===87&&e[9]===69&&e[10]===66&&e[11]===80){return{ext:"webp",mime:"image/webp"}}if(e[0]===70&&e[1]===76&&e[2]===73&&e[3]===70){return{ext:"flif",mime:"image/flif"}}if((e[0]===73&&e[1]===73&&e[2]===42&&e[3]===0||e[0]===77&&e[1]===77&&e[2]===0&&e[3]===42)&&e[8]===67&&e[9]===82){return{ext:"cr2",mime:"image/x-canon-cr2"}}if(e[0]===73&&e[1]===73&&e[2]===42&&e[3]===0||e[0]===77&&e[1]===77&&e[2]===0&&e[3]===42){return{ext:"tif",mime:"image/tiff"}}if(e[0]===66&&e[1]===77){return{ext:"bmp",mime:"image/bmp"}}if(e[0]===73&&e[1]===73&&e[2]===188){return{ext:"jxr",mime:"image/vnd.ms-photo"}}if(e[0]===56&&e[1]===66&&e[2]===80&&e[3]===83){return{ext:"psd",mime:"image/vnd.adobe.photoshop"}}if(e[0]===80&&e[1]===75&&e[2]===3&&e[3]===4&&e[30]===109&&e[31]===105&&e[32]===109&&e[33]===101&&e[34]===116&&e[35]===121&&e[36]===112&&e[37]===101&&e[38]===97&&e[39]===112&&e[40]===112&&e[41]===108&&e[42]===105&&e[43]===99&&e[44]===97&&e[45]===116&&e[46]===105&&e[47]===111&&e[48]===110&&e[49]===47&&e[50]===101&&e[51]===112&&e[52]===117&&e[53]===98&&e[54]===43&&e[55]===122&&e[56]===105&&e[57]===112){return{ext:"epub",mime:"application/epub+zip"}}if(e[0]===80&&e[1]===75&&e[2]===3&&e[3]===4&&e[30]===77&&e[31]===69&&e[32]===84&&e[33]===65&&e[34]===45&&e[35]===73&&e[36]===78&&e[37]===70&&e[38]===47&&e[39]===109&&e[40]===111&&e[41]===122&&e[42]===105&&e[43]===108&&e[44]===108&&e[45]===97&&e[46]===46&&e[47]===114&&e[48]===115&&e[49]===97){return{ext:"xpi",mime:"application/x-xpinstall"}}if(e[0]===80&&e[1]===75&&(e[2]===3||e[2]===5||e[2]===7)&&(e[3]===4||e[3]===6||e[3]===8)){return{ext:"zip",mime:"application/zip"}}if(e[257]===117&&e[258]===115&&e[259]===116&&e[260]===97&&e[261]===114){return{ext:"tar",mime:"application/x-tar"}}if(e[0]===82&&e[1]===97&&e[2]===114&&e[3]===33&&e[4]===26&&e[5]===7&&(e[6]===0||e[6]===1)){return{ext:"rar",mime:"application/x-rar-compressed"}}if(e[0]===31&&e[1]===139&&e[2]===8){return{ext:"gz",mime:"application/gzip"}}if(e[0]===66&&e[1]===90&&e[2]===104){return{ext:"bz2",mime:"application/x-bzip2"}}if(e[0]===55&&e[1]===122&&e[2]===188&&e[3]===175&&e[4]===39&&e[5]===28){return{ext:"7z",mime:"application/x-7z-compressed"}}if(e[0]===120&&e[1]===1){return{ext:"dmg",mime:"application/x-apple-diskimage"}}if(e[0]===0&&e[1]===0&&e[2]===0&&(e[3]===24||e[3]===32)&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112||e[0]===51&&e[1]===103&&e[2]===112&&e[3]===53||e[0]===0&&e[1]===0&&e[2]===0&&e[3]===28&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112&&e[8]===109&&e[9]===112&&e[10]===52&&e[11]===50&&e[16]===109&&e[17]===112&&e[18]===52&&e[19]===49&&e[20]===109&&e[21]===112&&e[22]===52&&e[23]===50&&e[24]===105&&e[25]===115&&e[26]===111&&e[27]===109||e[0]===0&&e[1]===0&&e[2]===0&&e[3]===28&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112&&e[8]===105&&e[9]===115&&e[10]===111&&e[11]===109||e[0]===0&&e[1]===0&&e[2]===0&&e[3]===28&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112&&e[8]===109&&e[9]===112&&e[10]===52&&e[11]===50&&e[12]===0&&e[13]===0&&e[14]===0&&e[15]===0){return{ext:"mp4",mime:"video/mp4"}}if(e[0]===0&&e[1]===0&&e[2]===0&&e[3]===28&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112&&e[8]===77&&e[9]===52&&e[10]===86){return{ext:"m4v",mime:"video/x-m4v"}}if(e[0]===77&&e[1]===84&&e[2]===104&&e[3]===100){return{ext:"mid",mime:"audio/midi"}}if(e[31]===109&&e[32]===97&&e[33]===116&&e[34]===114&&e[35]===111&&e[36]===115&&e[37]===107&&e[38]===97){return{ext:"mkv",mime:"video/x-matroska"}}if(e[0]===26&&e[1]===69&&e[2]===223&&e[3]===163){return{ext:"webm",mime:"video/webm"}}if(e[0]===0&&e[1]===0&&e[2]===0&&e[3]===20&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112){return{ext:"mov",mime:"video/quicktime"}}if(e[0]===82&&e[1]===73&&e[2]===70&&e[3]===70&&e[8]===65&&e[9]===86&&e[10]===73){return{ext:"avi",mime:"video/x-msvideo"}}if(e[0]===48&&e[1]===38&&e[2]===178&&e[3]===117&&e[4]===142&&e[5]===102&&e[6]===207&&e[7]===17&&e[8]===166&&e[9]===217){return{ext:"wmv",mime:"video/x-ms-wmv"}}if(e[0]===0&&e[1]===0&&e[2]===1&&e[3].toString(16)[0]==="b"){return{ext:"mpg",mime:"video/mpeg"}}if(e[0]===73&&e[1]===68&&e[2]===51||e[0]===255&&e[1]===251){return{ext:"mp3",mime:"audio/mpeg"}}if(e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112&&e[8]===77&&e[9]===52&&e[10]===65||e[0]===77&&e[1]===52&&e[2]===65&&e[3]===32){return{ext:"m4a",mime:"audio/m4a"}}if(e[28]===79&&e[29]===112&&e[30]===117&&e[31]===115&&e[32]===72&&e[33]===101&&e[34]===97&&e[35]===100){return{ext:"opus",mime:"audio/opus"}}if(e[0]===79&&e[1]===103&&e[2]===103&&e[3]===83){return{ext:"ogg",mime:"audio/ogg"}}if(e[0]===102&&e[1]===76&&e[2]===97&&e[3]===67){return{ext:"flac",mime:"audio/x-flac"}}if(e[0]===82&&e[1]===73&&e[2]===70&&e[3]===70&&e[8]===87&&e[9]===65&&e[10]===86&&e[11]===69){return{ext:"wav",mime:"audio/x-wav"}}if(e[0]===35&&e[1]===33&&e[2]===65&&e[3]===77&&e[4]===82&&e[5]===10){return{ext:"amr",mime:"audio/amr"}}if(e[0]===37&&e[1]===80&&e[2]===68&&e[3]===70){return{ext:"pdf",mime:"application/pdf"}}if(e[0]===77&&e[1]===90){return{ext:"exe",mime:"application/x-msdownload"}}if((e[0]===67||e[0]===70)&&e[1]===87&&e[2]===83){return{ext:"swf",mime:"application/x-shockwave-flash"}}if(e[0]===123&&e[1]===92&&e[2]===114&&e[3]===116&&e[4]===102){return{ext:"rtf",mime:"application/rtf"}}if(e[0]===119&&e[1]===79&&e[2]===70&&e[3]===70&&(e[4]===0&&e[5]===1&&e[6]===0&&e[7]===0||e[4]===79&&e[5]===84&&e[6]===84&&e[7]===79)){return{ext:"woff",mime:"application/font-woff"}}if(e[0]===119&&e[1]===79&&e[2]===70&&e[3]===50&&(e[4]===0&&e[5]===1&&e[6]===0&&e[7]===0||e[4]===79&&e[5]===84&&e[6]===84&&e[7]===79)){return{ext:"woff2",mime:"application/font-woff"}}if(e[34]===76&&e[35]===80&&(e[8]===0&&e[9]===0&&e[10]===1||e[8]===1&&e[9]===0&&e[10]===2||e[8]===2&&e[9]===0&&e[10]===2)){return{ext:"eot",mime:"application/octet-stream"}}if(e[0]===0&&e[1]===1&&e[2]===0&&e[3]===0&&e[4]===0){return{ext:"ttf",mime:"application/font-sfnt"}}if(e[0]===79&&e[1]===84&&e[2]===84&&e[3]===79&&e[4]===0){return{ext:"otf",mime:"application/font-sfnt"}}if(e[0]===0&&e[1]===0&&e[2]===1&&e[3]===0){return{ext:"ico",mime:"image/x-icon"}}if(e[0]===70&&e[1]===76&&e[2]===86&&e[3]===1){return{ext:"flv",mime:"video/x-flv"}}if(e[0]===37&&e[1]===33){return{ext:"ps",mime:"application/postscript"}}if(e[0]===253&&e[1]===55&&e[2]===122&&e[3]===88&&e[4]===90&&e[5]===0){return{ext:"xz",mime:"application/x-xz"}}if(e[0]===83&&e[1]===81&&e[2]===76&&e[3]===105){return{ext:"sqlite",mime:"application/x-sqlite3"}}if(e[0]===78&&e[1]===69&&e[2]===83&&e[3]===26){return{ext:"nes",mime:"application/x-nintendo-nes-rom"}}if(e[0]===67&&e[1]===114&&e[2]===50&&e[3]===52){return{ext:"crx",mime:"application/x-google-chrome-extension"}}if(e[0]===77&&e[1]===83&&e[2]===67&&e[3]===70||e[0]===73&&e[1]===83&&e[2]===99&&e[3]===40){return{ext:"cab",mime:"application/vnd.ms-cab-compressed"}}if(e[0]===33&&e[1]===60&&e[2]===97&&e[3]===114&&e[4]===99&&e[5]===104&&e[6]===62&&e[7]===10&&e[8]===100&&e[9]===101&&e[10]===98&&e[11]===105&&e[12]===97&&e[13]===110&&e[14]===45&&e[15]===98&&e[16]===105&&e[17]===110&&e[18]===97&&e[19]===114&&e[20]===121){return{ext:"deb",mime:"application/x-deb"}}if(e[0]===33&&e[1]===60&&e[2]===97&&e[3]===114&&e[4]===99&&e[5]===104&&e[6]===62){return{ext:"ar",mime:"application/x-unix-archive"}}if(e[0]===237&&e[1]===171&&e[2]===238&&e[3]===219){return{ext:"rpm",mime:"application/x-rpm"}}if(e[0]===31&&e[1]===160||e[0]===31&&e[1]===157){return{ext:"Z",mime:"application/x-compress"}}if(e[0]===76&&e[1]===90&&e[2]===73&&e[3]===80){return{ext:"lz",mime:"application/x-lzip"}}if(e[0]===208&&e[1]===207&&e[2]===17&&e[3]===224&&e[4]===161&&e[5]===177&&e[6]===26&&e[7]===225){return{ext:"msi",mime:"application/x-msi"}}return null}},3186:function(e,t,r){e.exports=r(7147).constants||r(2057)},7356:function(e){"use strict";e.exports=clone;var t=Object.getPrototypeOf||function(e){return e.__proto__};function clone(e){if(e===null||typeof e!=="object")return e;if(e instanceof Object)var r={__proto__:t(e)};else var r=Object.create(null);Object.getOwnPropertyNames(e).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))}));return r}},7758:function(e,t,r){var i=r(7147);var n=r(263);var o=r(3086);var a=r(7356);var s=r(3837);var u;var l;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){u=Symbol.for("graceful-fs.queue");l=Symbol.for("graceful-fs.previous")}else{u="___graceful-fs.queue";l="___graceful-fs.previous"}function noop(){}function publishQueue(e,t){Object.defineProperty(e,u,{get:function(){return t}})}var c=noop;if(s.debuglog)c=s.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))c=function(){var e=s.format.apply(s,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: ");console.error(e)};if(!i[u]){var d=global[u]||[];publishQueue(i,d);i.close=function(e){function close(t,r){return e.call(i,t,(function(e){if(!e){resetQueue()}if(typeof r==="function")r.apply(this,arguments)}))}Object.defineProperty(close,l,{value:e});return close}(i.close);i.closeSync=function(e){function closeSync(t){e.apply(i,arguments);resetQueue()}Object.defineProperty(closeSync,l,{value:e});return closeSync}(i.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",(function(){c(i[u]);r(9491).equal(i[u].length,0)}))}}if(!global[u]){publishQueue(global,i[u])}e.exports=patch(a(i));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!i.__patched){e.exports=patch(i);i.__patched=true}function patch(e){n(e);e.gracefulify=patch;e.createReadStream=createReadStream;e.createWriteStream=createWriteStream;var t=e.readFile;e.readFile=readFile;function readFile(e,r,i){if(typeof r==="function")i=r,r=null;return go$readFile(e,r,i);function go$readFile(e,r,i,n){return t(e,r,(function(t){if(t&&(t.code==="EMFILE"||t.code==="ENFILE"))enqueue([go$readFile,[e,r,i],t,n||Date.now(),Date.now()]);else{if(typeof i==="function")i.apply(this,arguments)}}))}}var r=e.writeFile;e.writeFile=writeFile;function writeFile(e,t,i,n){if(typeof i==="function")n=i,i=null;return go$writeFile(e,t,i,n);function go$writeFile(e,t,i,n,o){return r(e,t,i,(function(r){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))enqueue([go$writeFile,[e,t,i,n],r,o||Date.now(),Date.now()]);else{if(typeof n==="function")n.apply(this,arguments)}}))}}var i=e.appendFile;if(i)e.appendFile=appendFile;function appendFile(e,t,r,n){if(typeof r==="function")n=r,r=null;return go$appendFile(e,t,r,n);function go$appendFile(e,t,r,n,o){return i(e,t,r,(function(i){if(i&&(i.code==="EMFILE"||i.code==="ENFILE"))enqueue([go$appendFile,[e,t,r,n],i,o||Date.now(),Date.now()]);else{if(typeof n==="function")n.apply(this,arguments)}}))}}var a=e.copyFile;if(a)e.copyFile=copyFile;function copyFile(e,t,r,i){if(typeof r==="function"){i=r;r=0}return go$copyFile(e,t,r,i);function go$copyFile(e,t,r,i,n){return a(e,t,r,(function(o){if(o&&(o.code==="EMFILE"||o.code==="ENFILE"))enqueue([go$copyFile,[e,t,r,i],o,n||Date.now(),Date.now()]);else{if(typeof i==="function")i.apply(this,arguments)}}))}}var s=e.readdir;e.readdir=readdir;var u=/^v[0-5]\./;function readdir(e,t,r){if(typeof t==="function")r=t,t=null;var i=u.test(process.version)?function go$readdir(e,t,r,i){return s(e,fs$readdirCallback(e,t,r,i))}:function go$readdir(e,t,r,i){return s(e,t,fs$readdirCallback(e,t,r,i))};return i(e,t,r);function fs$readdirCallback(e,t,r,n){return function(o,a){if(o&&(o.code==="EMFILE"||o.code==="ENFILE"))enqueue([i,[e,t,r],o,n||Date.now(),Date.now()]);else{if(a&&a.sort)a.sort();if(typeof r==="function")r.call(this,o,a)}}}}if(process.version.substr(0,4)==="v0.8"){var l=o(e);ReadStream=l.ReadStream;WriteStream=l.WriteStream}var c=e.ReadStream;if(c){ReadStream.prototype=Object.create(c.prototype);ReadStream.prototype.open=ReadStream$open}var d=e.WriteStream;if(d){WriteStream.prototype=Object.create(d.prototype);WriteStream.prototype.open=WriteStream$open}Object.defineProperty(e,"ReadStream",{get:function(){return ReadStream},set:function(e){ReadStream=e},enumerable:true,configurable:true});Object.defineProperty(e,"WriteStream",{get:function(){return WriteStream},set:function(e){WriteStream=e},enumerable:true,configurable:true});var p=ReadStream;Object.defineProperty(e,"FileReadStream",{get:function(){return p},set:function(e){p=e},enumerable:true,configurable:true});var h=WriteStream;Object.defineProperty(e,"FileWriteStream",{get:function(){return h},set:function(e){h=e},enumerable:true,configurable:true});function ReadStream(e,t){if(this instanceof ReadStream)return c.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var e=this;open(e.path,e.flags,e.mode,(function(t,r){if(t){if(e.autoClose)e.destroy();e.emit("error",t)}else{e.fd=r;e.emit("open",r);e.read()}}))}function WriteStream(e,t){if(this instanceof WriteStream)return d.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var e=this;open(e.path,e.flags,e.mode,(function(t,r){if(t){e.destroy();e.emit("error",t)}else{e.fd=r;e.emit("open",r)}}))}function createReadStream(t,r){return new e.ReadStream(t,r)}function createWriteStream(t,r){return new e.WriteStream(t,r)}var m=e.open;e.open=open;function open(e,t,r,i){if(typeof r==="function")i=r,r=null;return go$open(e,t,r,i);function go$open(e,t,r,i,n){return m(e,t,r,(function(o,a){if(o&&(o.code==="EMFILE"||o.code==="ENFILE"))enqueue([go$open,[e,t,r,i],o,n||Date.now(),Date.now()]);else{if(typeof i==="function")i.apply(this,arguments)}}))}}return e}function enqueue(e){c("ENQUEUE",e[0].name,e[1]);i[u].push(e);retry()}var p;function resetQueue(){var e=Date.now();for(var t=0;t<i[u].length;++t){if(i[u][t].length>2){i[u][t][3]=e;i[u][t][4]=e}}retry()}function retry(){clearTimeout(p);p=undefined;if(i[u].length===0)return;var e=i[u].shift();var t=e[0];var r=e[1];var n=e[2];var o=e[3];var a=e[4];if(o===undefined){c("RETRY",t.name,r);t.apply(null,r)}else if(Date.now()-o>=6e4){c("TIMEOUT",t.name,r);var s=r.pop();if(typeof s==="function")s.call(null,n)}else{var l=Date.now()-a;var d=Math.max(a-o,1);var h=Math.min(d*1.2,100);if(l>=h){c("RETRY",t.name,r);t.apply(null,r.concat([o]))}else{i[u].push(e)}}if(p===undefined){p=setTimeout(retry,0)}}},3086:function(e,t,r){var i=r(2781).Stream;e.exports=legacy;function legacy(e){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(t,r){if(!(this instanceof ReadStream))return new ReadStream(t,r);i.call(this);var n=this;this.path=t;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;r=r||{};var o=Object.keys(r);for(var a=0,s=o.length;a<s;a++){var u=o[a];this[u]=r[u]}if(this.encoding)this.setEncoding(this.encoding);if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.end===undefined){this.end=Infinity}else if("number"!==typeof this.end){throw TypeError("end must be a Number")}if(this.start>this.end){throw new Error("start must be <= end")}this.pos=this.start}if(this.fd!==null){process.nextTick((function(){n._read()}));return}e.open(this.path,this.flags,this.mode,(function(e,t){if(e){n.emit("error",e);n.readable=false;return}n.fd=t;n.emit("open",t);n._read()}))}function WriteStream(t,r){if(!(this instanceof WriteStream))return new WriteStream(t,r);i.call(this);this.path=t;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;r=r||{};var n=Object.keys(r);for(var o=0,a=n.length;o<a;o++){var s=n[o];this[s]=r[s]}if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.start<0){throw new Error("start must be >= zero")}this.pos=this.start}this.busy=false;this._queue=[];if(this.fd===null){this._open=e.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},263:function(e,t,r){var i=r(2057);var n=process.cwd;var o=null;var a=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!o)o=n.call(process);return o};try{process.cwd()}catch(e){}if(typeof process.chdir==="function"){var s=process.chdir;process.chdir=function(e){o=null;s.call(process,e)};if(Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,s)}e.exports=patch;function patch(e){if(i.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)){patchLchmod(e)}if(!e.lutimes){patchLutimes(e)}e.chown=chownFix(e.chown);e.fchown=chownFix(e.fchown);e.lchown=chownFix(e.lchown);e.chmod=chmodFix(e.chmod);e.fchmod=chmodFix(e.fchmod);e.lchmod=chmodFix(e.lchmod);e.chownSync=chownFixSync(e.chownSync);e.fchownSync=chownFixSync(e.fchownSync);e.lchownSync=chownFixSync(e.lchownSync);e.chmodSync=chmodFixSync(e.chmodSync);e.fchmodSync=chmodFixSync(e.fchmodSync);e.lchmodSync=chmodFixSync(e.lchmodSync);e.stat=statFix(e.stat);e.fstat=statFix(e.fstat);e.lstat=statFix(e.lstat);e.statSync=statFixSync(e.statSync);e.fstatSync=statFixSync(e.fstatSync);e.lstatSync=statFixSync(e.lstatSync);if(e.chmod&&!e.lchmod){e.lchmod=function(e,t,r){if(r)process.nextTick(r)};e.lchmodSync=function(){}}if(e.chown&&!e.lchown){e.lchown=function(e,t,r,i){if(i)process.nextTick(i)};e.lchownSync=function(){}}if(a==="win32"){e.rename=typeof e.rename!=="function"?e.rename:function(t){function rename(r,i,n){var o=Date.now();var a=0;t(r,i,(function CB(s){if(s&&(s.code==="EACCES"||s.code==="EPERM"||s.code==="EBUSY")&&Date.now()-o<6e4){setTimeout((function(){e.stat(i,(function(e,o){if(e&&e.code==="ENOENT")t(r,i,CB);else n(s)}))}),a);if(a<100)a+=10;return}if(n)n(s)}))}if(Object.setPrototypeOf)Object.setPrototypeOf(rename,t);return rename}(e.rename)}e.read=typeof e.read!=="function"?e.read:function(t){function read(r,i,n,o,a,s){var u;if(s&&typeof s==="function"){var l=0;u=function(c,d,p){if(c&&c.code==="EAGAIN"&&l<10){l++;return t.call(e,r,i,n,o,a,u)}s.apply(this,arguments)}}return t.call(e,r,i,n,o,a,u)}if(Object.setPrototypeOf)Object.setPrototypeOf(read,t);return read}(e.read);e.readSync=typeof e.readSync!=="function"?e.readSync:function(t){return function(r,i,n,o,a){var s=0;while(true){try{return t.call(e,r,i,n,o,a)}catch(e){if(e.code==="EAGAIN"&&s<10){s++;continue}throw e}}}}(e.readSync);function patchLchmod(e){e.lchmod=function(t,r,n){e.open(t,i.O_WRONLY|i.O_SYMLINK,r,(function(t,i){if(t){if(n)n(t);return}e.fchmod(i,r,(function(t){e.close(i,(function(e){if(n)n(t||e)}))}))}))};e.lchmodSync=function(t,r){var n=e.openSync(t,i.O_WRONLY|i.O_SYMLINK,r);var o=true;var a;try{a=e.fchmodSync(n,r);o=false}finally{if(o){try{e.closeSync(n)}catch(e){}}else{e.closeSync(n)}}return a}}function patchLutimes(e){if(i.hasOwnProperty("O_SYMLINK")&&e.futimes){e.lutimes=function(t,r,n,o){e.open(t,i.O_SYMLINK,(function(t,i){if(t){if(o)o(t);return}e.futimes(i,r,n,(function(t){e.close(i,(function(e){if(o)o(t||e)}))}))}))};e.lutimesSync=function(t,r,n){var o=e.openSync(t,i.O_SYMLINK);var a;var s=true;try{a=e.futimesSync(o,r,n);s=false}finally{if(s){try{e.closeSync(o)}catch(e){}}else{e.closeSync(o)}}return a}}else if(e.futimes){e.lutimes=function(e,t,r,i){if(i)process.nextTick(i)};e.lutimesSync=function(){}}}function chmodFix(t){if(!t)return t;return function(r,i,n){return t.call(e,r,i,(function(e){if(chownErOk(e))e=null;if(n)n.apply(this,arguments)}))}}function chmodFixSync(t){if(!t)return t;return function(r,i){try{return t.call(e,r,i)}catch(e){if(!chownErOk(e))throw e}}}function chownFix(t){if(!t)return t;return function(r,i,n,o){return t.call(e,r,i,n,(function(e){if(chownErOk(e))e=null;if(o)o.apply(this,arguments)}))}}function chownFixSync(t){if(!t)return t;return function(r,i,n){try{return t.call(e,r,i,n)}catch(e){if(!chownErOk(e))throw e}}}function statFix(t){if(!t)return t;return function(r,i,n){if(typeof i==="function"){n=i;i=null}function callback(e,t){if(t){if(t.uid<0)t.uid+=4294967296;if(t.gid<0)t.gid+=4294967296}if(n)n.apply(this,arguments)}return i?t.call(e,r,i,callback):t.call(e,r,callback)}}function statFixSync(t){if(!t)return t;return function(r,i){var n=i?t.call(e,r,i):t.call(e,r);if(n){if(n.uid<0)n.uid+=4294967296;if(n.gid<0)n.gid+=4294967296}return n}}function chownErOk(e){if(!e)return true;if(e.code==="ENOSYS")return true;var t=!process.getuid||process.getuid()!==0;if(t){if(e.code==="EINVAL"||e.code==="EPERM")return true}return false}}},4124:function(e,t,r){try{var i=r(3837);if(typeof i.inherits!=="function")throw"";e.exports=i.inherits}catch(t){e.exports=r(8544)}},8544:function(e){if(typeof Object.create==="function"){e.exports=function inherits(e,t){if(t){e.super_=t;e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}}}else{e.exports=function inherits(e,t){if(t){e.super_=t;var TempCtor=function(){};TempCtor.prototype=t.prototype;e.prototype=new TempCtor;e.prototype.constructor=e}}}},3316:function(e){"use strict";
2
2
  /*!
3
3
  * is-natural-number.js | MIT (c) Shinnosuke Watanabe
4
4
  * https://github.com/shinnn/is-natural-number.js
@@ -7,7 +7,7 @@
7
7
  object-assign
8
8
  (c) Sindre Sorhus
9
9
  @license MIT
10
- */var t=Object.getOwnPropertySymbols;var r=Object.prototype.hasOwnProperty;var i=Object.prototype.propertyIsEnumerable;function toObject(e){if(e===null||e===undefined){throw new TypeError("Object.assign cannot be called with null or undefined")}return Object(e)}function shouldUseNative(){try{if(!Object.assign){return false}var e=new String("abc");e[5]="de";if(Object.getOwnPropertyNames(e)[0]==="5"){return false}var t={};for(var r=0;r<10;r++){t["_"+String.fromCharCode(r)]=r}var i=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if(i.join("")!=="0123456789"){return false}var n={};"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e}));if(Object.keys(Object.assign({},n)).join("")!=="abcdefghijklmnopqrst"){return false}return true}catch(e){return false}}e.exports=shouldUseNative()?Object.assign:function(e,n){var o;var a=toObject(e);var s;for(var u=1;u<arguments.length;u++){o=Object(arguments[u]);for(var l in o){if(r.call(o,l)){a[l]=o[l]}}if(t){s=t(o);for(var c=0;c<s.length;c++){if(i.call(o,s[c])){a[s[c]]=o[s[c]]}}}}return a}},1223:function(e,t,r){var i=r(2940);e.exports=i(once);e.exports.strict=i(onceStrict);once.proto=once((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})}));function once(e){var f=function(){if(f.called)return f.value;f.called=true;return f.value=e.apply(this,arguments)};f.called=false;return f}function onceStrict(e){var f=function(){if(f.called)throw new Error(f.onceError);f.called=true;return f.value=e.apply(this,arguments)};var t=e.name||"Function wrapped with `once`";f.onceError=t+" shouldn't be called more than once";f.called=false;return f}},4833:function(e){e.exports=Pend;function Pend(){this.pending=0;this.max=Infinity;this.listeners=[];this.waiting=[];this.error=null}Pend.prototype.go=function(e){if(this.pending<this.max){pendGo(this,e)}else{this.waiting.push(e)}};Pend.prototype.wait=function(e){if(this.pending===0){e(this.error)}else{this.listeners.push(e)}};Pend.prototype.hold=function(){return pendHold(this)};function pendHold(e){e.pending+=1;var t=false;return onCb;function onCb(r){if(t)throw new Error("callback called twice");t=true;e.error=e.error||r;e.pending-=1;if(e.waiting.length>0&&e.pending<e.max){pendGo(e,e.waiting.shift())}else if(e.pending===0){var i=e.listeners;e.listeners=[];i.forEach(cbListener)}}function cbListener(t){t(e.error)}}function pendGo(e,t){t(pendHold(e))}},4810:function(e){"use strict";var processFn=function(e,t,r){return function(){var i=this;var n=new Array(arguments.length);for(var o=0;o<arguments.length;o++){n[o]=arguments[o]}return new t((function(t,o){n.push((function(e,i){if(e){o(e)}else if(r.multiArgs){var n=new Array(arguments.length-1);for(var a=1;a<arguments.length;a++){n[a-1]=arguments[a]}t(n)}else{t(i)}}));e.apply(i,n)}))}};var t=e.exports=function(e,t,r){if(typeof t!=="function"){r=t;t=Promise}r=r||{};r.exclude=r.exclude||[/.+Sync$/];var filter=function(e){var match=function(t){return typeof t==="string"?e===t:t.test(e)};return r.include?r.include.some(match):!r.exclude.some(match)};var i=typeof e==="function"?function(){if(r.excludeMain){return e.apply(this,arguments)}return processFn(e,t,r).apply(this,arguments)}:{};return Object.keys(e).reduce((function(i,n){var o=e[n];i[n]=typeof o==="function"&&filter(n)?processFn(o,t,r):o;return i}),i)};t.all=t},5222:function(e,t,r){"use strict";e.exports=typeof Promise==="function"?Promise:r(8058)},8058:function(e){"use strict";var t="pending";var r="settled";var i="fulfilled";var n="rejected";var NOOP=function(){};var o=typeof global!=="undefined"&&typeof global.process!=="undefined"&&typeof global.process.emit==="function";var a=typeof setImmediate==="undefined"?setTimeout:setImmediate;var s=[];var u;function asyncFlush(){for(var e=0;e<s.length;e++){s[e][0](s[e][1])}s=[];u=false}function asyncCall(e,t){s.push([e,t]);if(!u){u=true;a(asyncFlush,0)}}function invokeResolver(e,t){function resolvePromise(e){resolve(t,e)}function rejectPromise(e){reject(t,e)}try{e(resolvePromise,rejectPromise)}catch(e){rejectPromise(e)}}function invokeCallback(e){var t=e.owner;var r=t._state;var o=t._data;var a=e[r];var s=e.then;if(typeof a==="function"){r=i;try{o=a(o)}catch(e){reject(s,e)}}if(!handleThenable(s,o)){if(r===i){resolve(s,o)}if(r===n){reject(s,o)}}}function handleThenable(e,t){var r;try{if(e===t){throw new TypeError("A promises callback cannot return that same promise.")}if(t&&(typeof t==="function"||typeof t==="object")){var i=t.then;if(typeof i==="function"){i.call(t,(function(i){if(!r){r=true;if(t===i){fulfill(e,i)}else{resolve(e,i)}}}),(function(t){if(!r){r=true;reject(e,t)}}));return true}}}catch(t){if(!r){reject(e,t)}return true}return false}function resolve(e,t){if(e===t||!handleThenable(e,t)){fulfill(e,t)}}function fulfill(e,i){if(e._state===t){e._state=r;e._data=i;asyncCall(publishFulfillment,e)}}function reject(e,i){if(e._state===t){e._state=r;e._data=i;asyncCall(publishRejection,e)}}function publish(e){e._then=e._then.forEach(invokeCallback)}function publishFulfillment(e){e._state=i;publish(e)}function publishRejection(e){e._state=n;publish(e);if(!e._handled&&o){global.process.emit("unhandledRejection",e._data,e)}}function notifyRejectionHandled(e){global.process.emit("rejectionHandled",e)}function Promise(e){if(typeof e!=="function"){throw new TypeError("Promise resolver "+e+" is not a function")}if(this instanceof Promise===false){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}this._then=[];invokeResolver(e,this)}Promise.prototype={constructor:Promise,_state:t,_then:null,_data:undefined,_handled:false,then:function(e,t){var r={owner:this,then:new this.constructor(NOOP),fulfilled:e,rejected:t};if((t||e)&&!this._handled){this._handled=true;if(this._state===n&&o){asyncCall(notifyRejectionHandled,this)}}if(this._state===i||this._state===n){asyncCall(invokeCallback,r)}else{this._then.push(r)}return r.then},catch:function(e){return this.then(null,e)}};Promise.all=function(e){if(!Array.isArray(e)){throw new TypeError("You must pass an array to Promise.all().")}return new Promise((function(t,r){var i=[];var n=0;function resolver(e){n++;return function(r){i[e]=r;if(!--n){t(i)}}}for(var o=0,a;o<e.length;o++){a=e[o];if(a&&typeof a.then==="function"){a.then(resolver(o),r)}else{i[o]=a}}if(!n){t(i)}}))};Promise.race=function(e){if(!Array.isArray(e)){throw new TypeError("You must pass an array to Promise.race().")}return new Promise((function(t,r){for(var i=0,n;i<e.length;i++){n=e[i];if(n&&typeof n.then==="function"){n.then(t,r)}else{t(n)}}}))};Promise.resolve=function(e){if(e&&typeof e==="object"&&e.constructor===Promise){return e}return new Promise((function(t){t(e)}))};Promise.reject=function(e){return new Promise((function(t,r){r(e)}))};e.exports=Promise},7810:function(e){"use strict";if(typeof process==="undefined"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0){e.exports={nextTick:nextTick}}else{e.exports=process}function nextTick(e,t,r,i){if(typeof e!=="function"){throw new TypeError('"callback" argument must be a function')}var n=arguments.length;var o,a;switch(n){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick((function afterTickOne(){e.call(null,t)}));case 3:return process.nextTick((function afterTickTwo(){e.call(null,t,r)}));case 4:return process.nextTick((function afterTickThree(){e.call(null,t,r,i)}));default:o=new Array(n-1);a=0;while(a<o.length){o[a++]=arguments[a]}return process.nextTick((function afterTick(){e.apply(null,o)}))}}},3874:function(e,t,r){e.exports=r(1642).Duplex},1359:function(e,t,r){"use strict";var i=r(7810);var n=Object.keys||function(e){var t=[];for(var r in e){t.push(r)}return t};e.exports=Duplex;var o=Object.create(r(5898));o.inherits=r(4124);var a=r(1433);var s=r(6993);o.inherits(Duplex,a);{var u=n(s.prototype);for(var l=0;l<u.length;l++){var c=u[l];if(!Duplex.prototype[c])Duplex.prototype[c]=s.prototype[c]}}function Duplex(e){if(!(this instanceof Duplex))return new Duplex(e);a.call(this,e);s.call(this,e);if(e&&e.readable===false)this.readable=false;if(e&&e.writable===false)this.writable=false;this.allowHalfOpen=true;if(e&&e.allowHalfOpen===false)this.allowHalfOpen=false;this.once("end",onend)}Object.defineProperty(Duplex.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});function onend(){if(this.allowHalfOpen||this._writableState.ended)return;i.nextTick(onEndNT,this)}function onEndNT(e){e.end()}Object.defineProperty(Duplex.prototype,"destroyed",{get:function(){if(this._readableState===undefined||this._writableState===undefined){return false}return this._readableState.destroyed&&this._writableState.destroyed},set:function(e){if(this._readableState===undefined||this._writableState===undefined){return}this._readableState.destroyed=e;this._writableState.destroyed=e}});Duplex.prototype._destroy=function(e,t){this.push(null);this.end();i.nextTick(t,e)}},1542:function(e,t,r){"use strict";e.exports=PassThrough;var i=r(4415);var n=Object.create(r(5898));n.inherits=r(4124);n.inherits(PassThrough,i);function PassThrough(e){if(!(this instanceof PassThrough))return new PassThrough(e);i.call(this,e)}PassThrough.prototype._transform=function(e,t,r){r(null,e)}},1433:function(e,t,r){"use strict";var i=r(7810);e.exports=Readable;var n=r(2873);var o;Readable.ReadableState=ReadableState;var a=r(2361).EventEmitter;var EElistenerCount=function(e,t){return e.listeners(t).length};var s=r(2387);var u=r(110).Buffer;var l=(typeof global!=="undefined"?global:typeof window!=="undefined"?window:typeof self!=="undefined"?self:{}).Uint8Array||function(){};function _uint8ArrayToBuffer(e){return u.from(e)}function _isUint8Array(e){return u.isBuffer(e)||e instanceof l}var c=Object.create(r(5898));c.inherits=r(4124);var d=r(3837);var p=void 0;if(d&&d.debuglog){p=d.debuglog("stream")}else{p=function(){}}var h=r(7053);var m=r(7049);var y;c.inherits(Readable,s);var v=["error","close","destroy","pause","resume"];function prependListener(e,t,r){if(typeof e.prependListener==="function")return e.prependListener(t,r);if(!e._events||!e._events[t])e.on(t,r);else if(n(e._events[t]))e._events[t].unshift(r);else e._events[t]=[r,e._events[t]]}function ReadableState(e,t){o=o||r(1359);e=e||{};var i=t instanceof o;this.objectMode=!!e.objectMode;if(i)this.objectMode=this.objectMode||!!e.readableObjectMode;var n=e.highWaterMark;var a=e.readableHighWaterMark;var s=this.objectMode?16:16*1024;if(n||n===0)this.highWaterMark=n;else if(i&&(a||a===0))this.highWaterMark=a;else this.highWaterMark=s;this.highWaterMark=Math.floor(this.highWaterMark);this.buffer=new h;this.length=0;this.pipes=null;this.pipesCount=0;this.flowing=null;this.ended=false;this.endEmitted=false;this.reading=false;this.sync=true;this.needReadable=false;this.emittedReadable=false;this.readableListening=false;this.resumeScheduled=false;this.destroyed=false;this.defaultEncoding=e.defaultEncoding||"utf8";this.awaitDrain=0;this.readingMore=false;this.decoder=null;this.encoding=null;if(e.encoding){if(!y)y=r(8536).s;this.decoder=new y(e.encoding);this.encoding=e.encoding}}function Readable(e){o=o||r(1359);if(!(this instanceof Readable))return new Readable(e);this._readableState=new ReadableState(e,this);this.readable=true;if(e){if(typeof e.read==="function")this._read=e.read;if(typeof e.destroy==="function")this._destroy=e.destroy}s.call(this)}Object.defineProperty(Readable.prototype,"destroyed",{get:function(){if(this._readableState===undefined){return false}return this._readableState.destroyed},set:function(e){if(!this._readableState){return}this._readableState.destroyed=e}});Readable.prototype.destroy=m.destroy;Readable.prototype._undestroy=m.undestroy;Readable.prototype._destroy=function(e,t){this.push(null);t(e)};Readable.prototype.push=function(e,t){var r=this._readableState;var i;if(!r.objectMode){if(typeof e==="string"){t=t||r.defaultEncoding;if(t!==r.encoding){e=u.from(e,t);t=""}i=true}}else{i=true}return readableAddChunk(this,e,t,false,i)};Readable.prototype.unshift=function(e){return readableAddChunk(this,e,null,true,false)};function readableAddChunk(e,t,r,i,n){var o=e._readableState;if(t===null){o.reading=false;onEofChunk(e,o)}else{var a;if(!n)a=chunkInvalid(o,t);if(a){e.emit("error",a)}else if(o.objectMode||t&&t.length>0){if(typeof t!=="string"&&!o.objectMode&&Object.getPrototypeOf(t)!==u.prototype){t=_uint8ArrayToBuffer(t)}if(i){if(o.endEmitted)e.emit("error",new Error("stream.unshift() after end event"));else addChunk(e,o,t,true)}else if(o.ended){e.emit("error",new Error("stream.push() after EOF"))}else{o.reading=false;if(o.decoder&&!r){t=o.decoder.write(t);if(o.objectMode||t.length!==0)addChunk(e,o,t,false);else maybeReadMore(e,o)}else{addChunk(e,o,t,false)}}}else if(!i){o.reading=false}}return needMoreData(o)}function addChunk(e,t,r,i){if(t.flowing&&t.length===0&&!t.sync){e.emit("data",r);e.read(0)}else{t.length+=t.objectMode?1:r.length;if(i)t.buffer.unshift(r);else t.buffer.push(r);if(t.needReadable)emitReadable(e)}maybeReadMore(e,t)}function chunkInvalid(e,t){var r;if(!_isUint8Array(t)&&typeof t!=="string"&&t!==undefined&&!e.objectMode){r=new TypeError("Invalid non-string/buffer chunk")}return r}function needMoreData(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}Readable.prototype.isPaused=function(){return this._readableState.flowing===false};Readable.prototype.setEncoding=function(e){if(!y)y=r(8536).s;this._readableState.decoder=new y(e);this._readableState.encoding=e;return this};var g=8388608;function computeNewHighWaterMark(e){if(e>=g){e=g}else{e--;e|=e>>>1;e|=e>>>2;e|=e>>>4;e|=e>>>8;e|=e>>>16;e++}return e}function howMuchToRead(e,t){if(e<=0||t.length===0&&t.ended)return 0;if(t.objectMode)return 1;if(e!==e){if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length}if(e>t.highWaterMark)t.highWaterMark=computeNewHighWaterMark(e);if(e<=t.length)return e;if(!t.ended){t.needReadable=true;return 0}return t.length}Readable.prototype.read=function(e){p("read",e);e=parseInt(e,10);var t=this._readableState;var r=e;if(e!==0)t.emittedReadable=false;if(e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended)){p("read: emitReadable",t.length,t.ended);if(t.length===0&&t.ended)endReadable(this);else emitReadable(this);return null}e=howMuchToRead(e,t);if(e===0&&t.ended){if(t.length===0)endReadable(this);return null}var i=t.needReadable;p("need readable",i);if(t.length===0||t.length-e<t.highWaterMark){i=true;p("length less than watermark",i)}if(t.ended||t.reading){i=false;p("reading or ended",i)}else if(i){p("do read");t.reading=true;t.sync=true;if(t.length===0)t.needReadable=true;this._read(t.highWaterMark);t.sync=false;if(!t.reading)e=howMuchToRead(r,t)}var n;if(e>0)n=fromList(e,t);else n=null;if(n===null){t.needReadable=true;e=0}else{t.length-=e}if(t.length===0){if(!t.ended)t.needReadable=true;if(r!==e&&t.ended)endReadable(this)}if(n!==null)this.emit("data",n);return n};function onEofChunk(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();if(r&&r.length){t.buffer.push(r);t.length+=t.objectMode?1:r.length}}t.ended=true;emitReadable(e)}function emitReadable(e){var t=e._readableState;t.needReadable=false;if(!t.emittedReadable){p("emitReadable",t.flowing);t.emittedReadable=true;if(t.sync)i.nextTick(emitReadable_,e);else emitReadable_(e)}}function emitReadable_(e){p("emit readable");e.emit("readable");flow(e)}function maybeReadMore(e,t){if(!t.readingMore){t.readingMore=true;i.nextTick(maybeReadMore_,e,t)}}function maybeReadMore_(e,t){var r=t.length;while(!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark){p("maybeReadMore read 0");e.read(0);if(r===t.length)break;else r=t.length}t.readingMore=false}Readable.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))};Readable.prototype.pipe=function(e,t){var r=this;var n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e);break}n.pipesCount+=1;p("pipe count=%d opts=%j",n.pipesCount,t);var o=(!t||t.end!==false)&&e!==process.stdout&&e!==process.stderr;var a=o?onend:unpipe;if(n.endEmitted)i.nextTick(a);else r.once("end",a);e.on("unpipe",onunpipe);function onunpipe(e,t){p("onunpipe");if(e===r){if(t&&t.hasUnpiped===false){t.hasUnpiped=true;cleanup()}}}function onend(){p("onend");e.end()}var s=pipeOnDrain(r);e.on("drain",s);var u=false;function cleanup(){p("cleanup");e.removeListener("close",onclose);e.removeListener("finish",onfinish);e.removeListener("drain",s);e.removeListener("error",onerror);e.removeListener("unpipe",onunpipe);r.removeListener("end",onend);r.removeListener("end",unpipe);r.removeListener("data",ondata);u=true;if(n.awaitDrain&&(!e._writableState||e._writableState.needDrain))s()}var l=false;r.on("data",ondata);function ondata(t){p("ondata");l=false;var i=e.write(t);if(false===i&&!l){if((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&indexOf(n.pipes,e)!==-1)&&!u){p("false write response, pause",n.awaitDrain);n.awaitDrain++;l=true}r.pause()}}function onerror(t){p("onerror",t);unpipe();e.removeListener("error",onerror);if(EElistenerCount(e,"error")===0)e.emit("error",t)}prependListener(e,"error",onerror);function onclose(){e.removeListener("finish",onfinish);unpipe()}e.once("close",onclose);function onfinish(){p("onfinish");e.removeListener("close",onclose);unpipe()}e.once("finish",onfinish);function unpipe(){p("unpipe");r.unpipe(e)}e.emit("pipe",r);if(!n.flowing){p("pipe resume");r.resume()}return e};function pipeOnDrain(e){return function(){var t=e._readableState;p("pipeOnDrain",t.awaitDrain);if(t.awaitDrain)t.awaitDrain--;if(t.awaitDrain===0&&EElistenerCount(e,"data")){t.flowing=true;flow(e)}}}Readable.prototype.unpipe=function(e){var t=this._readableState;var r={hasUnpiped:false};if(t.pipesCount===0)return this;if(t.pipesCount===1){if(e&&e!==t.pipes)return this;if(!e)e=t.pipes;t.pipes=null;t.pipesCount=0;t.flowing=false;if(e)e.emit("unpipe",this,r);return this}if(!e){var i=t.pipes;var n=t.pipesCount;t.pipes=null;t.pipesCount=0;t.flowing=false;for(var o=0;o<n;o++){i[o].emit("unpipe",this,{hasUnpiped:false})}return this}var a=indexOf(t.pipes,e);if(a===-1)return this;t.pipes.splice(a,1);t.pipesCount-=1;if(t.pipesCount===1)t.pipes=t.pipes[0];e.emit("unpipe",this,r);return this};Readable.prototype.on=function(e,t){var r=s.prototype.on.call(this,e,t);if(e==="data"){if(this._readableState.flowing!==false)this.resume()}else if(e==="readable"){var n=this._readableState;if(!n.endEmitted&&!n.readableListening){n.readableListening=n.needReadable=true;n.emittedReadable=false;if(!n.reading){i.nextTick(nReadingNextTick,this)}else if(n.length){emitReadable(this)}}}return r};Readable.prototype.addListener=Readable.prototype.on;function nReadingNextTick(e){p("readable nexttick read 0");e.read(0)}Readable.prototype.resume=function(){var e=this._readableState;if(!e.flowing){p("resume");e.flowing=true;resume(this,e)}return this};function resume(e,t){if(!t.resumeScheduled){t.resumeScheduled=true;i.nextTick(resume_,e,t)}}function resume_(e,t){if(!t.reading){p("resume read 0");e.read(0)}t.resumeScheduled=false;t.awaitDrain=0;e.emit("resume");flow(e);if(t.flowing&&!t.reading)e.read(0)}Readable.prototype.pause=function(){p("call pause flowing=%j",this._readableState.flowing);if(false!==this._readableState.flowing){p("pause");this._readableState.flowing=false;this.emit("pause")}return this};function flow(e){var t=e._readableState;p("flow",t.flowing);while(t.flowing&&e.read()!==null){}}Readable.prototype.wrap=function(e){var t=this;var r=this._readableState;var i=false;e.on("end",(function(){p("wrapped end");if(r.decoder&&!r.ended){var e=r.decoder.end();if(e&&e.length)t.push(e)}t.push(null)}));e.on("data",(function(n){p("wrapped data");if(r.decoder)n=r.decoder.write(n);if(r.objectMode&&(n===null||n===undefined))return;else if(!r.objectMode&&(!n||!n.length))return;var o=t.push(n);if(!o){i=true;e.pause()}}));for(var n in e){if(this[n]===undefined&&typeof e[n]==="function"){this[n]=function(t){return function(){return e[t].apply(e,arguments)}}(n)}}for(var o=0;o<v.length;o++){e.on(v[o],this.emit.bind(this,v[o]))}this._read=function(t){p("wrapped _read",t);if(i){i=false;e.resume()}};return this};Object.defineProperty(Readable.prototype,"readableHighWaterMark",{enumerable:false,get:function(){return this._readableState.highWaterMark}});Readable._fromList=fromList;function fromList(e,t){if(t.length===0)return null;var r;if(t.objectMode)r=t.buffer.shift();else if(!e||e>=t.length){if(t.decoder)r=t.buffer.join("");else if(t.buffer.length===1)r=t.buffer.head.data;else r=t.buffer.concat(t.length);t.buffer.clear()}else{r=fromListPartial(e,t.buffer,t.decoder)}return r}function fromListPartial(e,t,r){var i;if(e<t.head.data.length){i=t.head.data.slice(0,e);t.head.data=t.head.data.slice(e)}else if(e===t.head.data.length){i=t.shift()}else{i=r?copyFromBufferString(e,t):copyFromBuffer(e,t)}return i}function copyFromBufferString(e,t){var r=t.head;var i=1;var n=r.data;e-=n.length;while(r=r.next){var o=r.data;var a=e>o.length?o.length:e;if(a===o.length)n+=o;else n+=o.slice(0,e);e-=a;if(e===0){if(a===o.length){++i;if(r.next)t.head=r.next;else t.head=t.tail=null}else{t.head=r;r.data=o.slice(a)}break}++i}t.length-=i;return n}function copyFromBuffer(e,t){var r=u.allocUnsafe(e);var i=t.head;var n=1;i.data.copy(r);e-=i.data.length;while(i=i.next){var o=i.data;var a=e>o.length?o.length:e;o.copy(r,r.length-e,0,a);e-=a;if(e===0){if(a===o.length){++n;if(i.next)t.head=i.next;else t.head=t.tail=null}else{t.head=i;i.data=o.slice(a)}break}++n}t.length-=n;return r}function endReadable(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');if(!t.endEmitted){t.ended=true;i.nextTick(endReadableNT,t,e)}}function endReadableNT(e,t){if(!e.endEmitted&&e.length===0){e.endEmitted=true;t.readable=false;t.emit("end")}}function indexOf(e,t){for(var r=0,i=e.length;r<i;r++){if(e[r]===t)return r}return-1}},4415:function(e,t,r){"use strict";e.exports=Transform;var i=r(1359);var n=Object.create(r(5898));n.inherits=r(4124);n.inherits(Transform,i);function afterTransform(e,t){var r=this._transformState;r.transforming=false;var i=r.writecb;if(!i){return this.emit("error",new Error("write callback called multiple times"))}r.writechunk=null;r.writecb=null;if(t!=null)this.push(t);i(e);var n=this._readableState;n.reading=false;if(n.needReadable||n.length<n.highWaterMark){this._read(n.highWaterMark)}}function Transform(e){if(!(this instanceof Transform))return new Transform(e);i.call(this,e);this._transformState={afterTransform:afterTransform.bind(this),needTransform:false,transforming:false,writecb:null,writechunk:null,writeencoding:null};this._readableState.needReadable=true;this._readableState.sync=false;if(e){if(typeof e.transform==="function")this._transform=e.transform;if(typeof e.flush==="function")this._flush=e.flush}this.on("prefinish",prefinish)}function prefinish(){var e=this;if(typeof this._flush==="function"){this._flush((function(t,r){done(e,t,r)}))}else{done(this,null,null)}}Transform.prototype.push=function(e,t){this._transformState.needTransform=false;return i.prototype.push.call(this,e,t)};Transform.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")};Transform.prototype._write=function(e,t,r){var i=this._transformState;i.writecb=r;i.writechunk=e;i.writeencoding=t;if(!i.transforming){var n=this._readableState;if(i.needTransform||n.needReadable||n.length<n.highWaterMark)this._read(n.highWaterMark)}};Transform.prototype._read=function(e){var t=this._transformState;if(t.writechunk!==null&&t.writecb&&!t.transforming){t.transforming=true;this._transform(t.writechunk,t.writeencoding,t.afterTransform)}else{t.needTransform=true}};Transform.prototype._destroy=function(e,t){var r=this;i.prototype._destroy.call(this,e,(function(e){t(e);r.emit("close")}))};function done(e,t,r){if(t)return e.emit("error",t);if(r!=null)e.push(r);if(e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}},6993:function(e,t,r){"use strict";var i=r(7810);e.exports=Writable;function WriteReq(e,t,r){this.chunk=e;this.encoding=t;this.callback=r;this.next=null}function CorkedRequest(e){var t=this;this.next=null;this.entry=null;this.finish=function(){onCorkedFinish(t,e)}}var n=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:i.nextTick;var o;Writable.WritableState=WritableState;var a=Object.create(r(5898));a.inherits=r(4124);var s={deprecate:r(5278)};var u=r(2387);var l=r(110).Buffer;var c=(typeof global!=="undefined"?global:typeof window!=="undefined"?window:typeof self!=="undefined"?self:{}).Uint8Array||function(){};function _uint8ArrayToBuffer(e){return l.from(e)}function _isUint8Array(e){return l.isBuffer(e)||e instanceof c}var d=r(7049);a.inherits(Writable,u);function nop(){}function WritableState(e,t){o=o||r(1359);e=e||{};var i=t instanceof o;this.objectMode=!!e.objectMode;if(i)this.objectMode=this.objectMode||!!e.writableObjectMode;var n=e.highWaterMark;var a=e.writableHighWaterMark;var s=this.objectMode?16:16*1024;if(n||n===0)this.highWaterMark=n;else if(i&&(a||a===0))this.highWaterMark=a;else this.highWaterMark=s;this.highWaterMark=Math.floor(this.highWaterMark);this.finalCalled=false;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;this.destroyed=false;var u=e.decodeStrings===false;this.decodeStrings=!u;this.defaultEncoding=e.defaultEncoding||"utf8";this.length=0;this.writing=false;this.corked=0;this.sync=true;this.bufferProcessing=false;this.onwrite=function(e){onwrite(t,e)};this.writecb=null;this.writelen=0;this.bufferedRequest=null;this.lastBufferedRequest=null;this.pendingcb=0;this.prefinished=false;this.errorEmitted=false;this.bufferedRequestCount=0;this.corkedRequestsFree=new CorkedRequest(this)}WritableState.prototype.getBuffer=function getBuffer(){var e=this.bufferedRequest;var t=[];while(e){t.push(e);e=e.next}return t};(function(){try{Object.defineProperty(WritableState.prototype,"buffer",{get:s.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer "+"instead.","DEP0003")})}catch(e){}})();var p;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function"){p=Function.prototype[Symbol.hasInstance];Object.defineProperty(Writable,Symbol.hasInstance,{value:function(e){if(p.call(this,e))return true;if(this!==Writable)return false;return e&&e._writableState instanceof WritableState}})}else{p=function(e){return e instanceof this}}function Writable(e){o=o||r(1359);if(!p.call(Writable,this)&&!(this instanceof o)){return new Writable(e)}this._writableState=new WritableState(e,this);this.writable=true;if(e){if(typeof e.write==="function")this._write=e.write;if(typeof e.writev==="function")this._writev=e.writev;if(typeof e.destroy==="function")this._destroy=e.destroy;if(typeof e.final==="function")this._final=e.final}u.call(this)}Writable.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function writeAfterEnd(e,t){var r=new Error("write after end");e.emit("error",r);i.nextTick(t,r)}function validChunk(e,t,r,n){var o=true;var a=false;if(r===null){a=new TypeError("May not write null values to stream")}else if(typeof r!=="string"&&r!==undefined&&!t.objectMode){a=new TypeError("Invalid non-string/buffer chunk")}if(a){e.emit("error",a);i.nextTick(n,a);o=false}return o}Writable.prototype.write=function(e,t,r){var i=this._writableState;var n=false;var o=!i.objectMode&&_isUint8Array(e);if(o&&!l.isBuffer(e)){e=_uint8ArrayToBuffer(e)}if(typeof t==="function"){r=t;t=null}if(o)t="buffer";else if(!t)t=i.defaultEncoding;if(typeof r!=="function")r=nop;if(i.ended)writeAfterEnd(this,r);else if(o||validChunk(this,i,e,r)){i.pendingcb++;n=writeOrBuffer(this,i,o,e,t,r)}return n};Writable.prototype.cork=function(){var e=this._writableState;e.corked++};Writable.prototype.uncork=function(){var e=this._writableState;if(e.corked){e.corked--;if(!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest)clearBuffer(this,e)}};Writable.prototype.setDefaultEncoding=function setDefaultEncoding(e){if(typeof e==="string")e=e.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);this._writableState.defaultEncoding=e;return this};function decodeChunk(e,t,r){if(!e.objectMode&&e.decodeStrings!==false&&typeof t==="string"){t=l.from(t,r)}return t}Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});function writeOrBuffer(e,t,r,i,n,o){if(!r){var a=decodeChunk(t,i,n);if(i!==a){r=true;n="buffer";i=a}}var s=t.objectMode?1:i.length;t.length+=s;var u=t.length<t.highWaterMark;if(!u)t.needDrain=true;if(t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:o,next:null};if(l){l.next=t.lastBufferedRequest}else{t.bufferedRequest=t.lastBufferedRequest}t.bufferedRequestCount+=1}else{doWrite(e,t,false,s,i,n,o)}return u}function doWrite(e,t,r,i,n,o,a){t.writelen=i;t.writecb=a;t.writing=true;t.sync=true;if(r)e._writev(n,t.onwrite);else e._write(n,o,t.onwrite);t.sync=false}function onwriteError(e,t,r,n,o){--t.pendingcb;if(r){i.nextTick(o,n);i.nextTick(finishMaybe,e,t);e._writableState.errorEmitted=true;e.emit("error",n)}else{o(n);e._writableState.errorEmitted=true;e.emit("error",n);finishMaybe(e,t)}}function onwriteStateUpdate(e){e.writing=false;e.writecb=null;e.length-=e.writelen;e.writelen=0}function onwrite(e,t){var r=e._writableState;var i=r.sync;var o=r.writecb;onwriteStateUpdate(r);if(t)onwriteError(e,r,i,t,o);else{var a=needFinish(r);if(!a&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest){clearBuffer(e,r)}if(i){n(afterWrite,e,r,a,o)}else{afterWrite(e,r,a,o)}}}function afterWrite(e,t,r,i){if(!r)onwriteDrain(e,t);t.pendingcb--;i();finishMaybe(e,t)}function onwriteDrain(e,t){if(t.length===0&&t.needDrain){t.needDrain=false;e.emit("drain")}}function clearBuffer(e,t){t.bufferProcessing=true;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount;var n=new Array(i);var o=t.corkedRequestsFree;o.entry=r;var a=0;var s=true;while(r){n[a]=r;if(!r.isBuf)s=false;r=r.next;a+=1}n.allBuffers=s;doWrite(e,t,true,t.length,n,"",o.finish);t.pendingcb++;t.lastBufferedRequest=null;if(o.next){t.corkedRequestsFree=o.next;o.next=null}else{t.corkedRequestsFree=new CorkedRequest(t)}t.bufferedRequestCount=0}else{while(r){var u=r.chunk;var l=r.encoding;var c=r.callback;var d=t.objectMode?1:u.length;doWrite(e,t,false,d,u,l,c);r=r.next;t.bufferedRequestCount--;if(t.writing){break}}if(r===null)t.lastBufferedRequest=null}t.bufferedRequest=r;t.bufferProcessing=false}Writable.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))};Writable.prototype._writev=null;Writable.prototype.end=function(e,t,r){var i=this._writableState;if(typeof e==="function"){r=e;e=null;t=null}else if(typeof t==="function"){r=t;t=null}if(e!==null&&e!==undefined)this.write(e,t);if(i.corked){i.corked=1;this.uncork()}if(!i.ending)endWritable(this,i,r)};function needFinish(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function callFinal(e,t){e._final((function(r){t.pendingcb--;if(r){e.emit("error",r)}t.prefinished=true;e.emit("prefinish");finishMaybe(e,t)}))}function prefinish(e,t){if(!t.prefinished&&!t.finalCalled){if(typeof e._final==="function"){t.pendingcb++;t.finalCalled=true;i.nextTick(callFinal,e,t)}else{t.prefinished=true;e.emit("prefinish")}}}function finishMaybe(e,t){var r=needFinish(t);if(r){prefinish(e,t);if(t.pendingcb===0){t.finished=true;e.emit("finish")}}return r}function endWritable(e,t,r){t.ending=true;finishMaybe(e,t);if(r){if(t.finished)i.nextTick(r);else e.once("finish",r)}t.ended=true;e.writable=false}function onCorkedFinish(e,t,r){var i=e.entry;e.entry=null;while(i){var n=i.callback;t.pendingcb--;n(r);i=i.next}t.corkedRequestsFree.next=e}Object.defineProperty(Writable.prototype,"destroyed",{get:function(){if(this._writableState===undefined){return false}return this._writableState.destroyed},set:function(e){if(!this._writableState){return}this._writableState.destroyed=e}});Writable.prototype.destroy=d.destroy;Writable.prototype._undestroy=d.undestroy;Writable.prototype._destroy=function(e,t){this.end();t(e)}},7053:function(e,t,r){"use strict";function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var i=r(110).Buffer;var n=r(3837);function copyBuffer(e,t,r){e.copy(t,r)}e.exports=function(){function BufferList(){_classCallCheck(this,BufferList);this.head=null;this.tail=null;this.length=0}BufferList.prototype.push=function push(e){var t={data:e,next:null};if(this.length>0)this.tail.next=t;else this.head=t;this.tail=t;++this.length};BufferList.prototype.unshift=function unshift(e){var t={data:e,next:this.head};if(this.length===0)this.tail=t;this.head=t;++this.length};BufferList.prototype.shift=function shift(){if(this.length===0)return;var e=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;--this.length;return e};BufferList.prototype.clear=function clear(){this.head=this.tail=null;this.length=0};BufferList.prototype.join=function join(e){if(this.length===0)return"";var t=this.head;var r=""+t.data;while(t=t.next){r+=e+t.data}return r};BufferList.prototype.concat=function concat(e){if(this.length===0)return i.alloc(0);var t=i.allocUnsafe(e>>>0);var r=this.head;var n=0;while(r){copyBuffer(r.data,t,n);n+=r.data.length;r=r.next}return t};return BufferList}();if(n&&n.inspect&&n.inspect.custom){e.exports.prototype[n.inspect.custom]=function(){var e=n.inspect({length:this.length});return this.constructor.name+" "+e}}},7049:function(e,t,r){"use strict";var i=r(7810);function destroy(e,t){var r=this;var n=this._readableState&&this._readableState.destroyed;var o=this._writableState&&this._writableState.destroyed;if(n||o){if(t){t(e)}else if(e){if(!this._writableState){i.nextTick(emitErrorNT,this,e)}else if(!this._writableState.errorEmitted){this._writableState.errorEmitted=true;i.nextTick(emitErrorNT,this,e)}}return this}if(this._readableState){this._readableState.destroyed=true}if(this._writableState){this._writableState.destroyed=true}this._destroy(e||null,(function(e){if(!t&&e){if(!r._writableState){i.nextTick(emitErrorNT,r,e)}else if(!r._writableState.errorEmitted){r._writableState.errorEmitted=true;i.nextTick(emitErrorNT,r,e)}}else if(t){t(e)}}));return this}function undestroy(){if(this._readableState){this._readableState.destroyed=false;this._readableState.reading=false;this._readableState.ended=false;this._readableState.endEmitted=false}if(this._writableState){this._writableState.destroyed=false;this._writableState.ended=false;this._writableState.ending=false;this._writableState.finalCalled=false;this._writableState.prefinished=false;this._writableState.finished=false;this._writableState.errorEmitted=false}}function emitErrorNT(e,t){e.emit("error",t)}e.exports={destroy:destroy,undestroy:undestroy}},2387:function(e,t,r){e.exports=r(2781)},2873:function(e){var t={}.toString;e.exports=Array.isArray||function(e){return t.call(e)=="[object Array]"}},110:function(e,t,r){var i=r(4300);var n=i.Buffer;function copyProps(e,t){for(var r in e){t[r]=e[r]}}if(n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow){e.exports=i}else{copyProps(i,t);t.Buffer=SafeBuffer}function SafeBuffer(e,t,r){return n(e,t,r)}copyProps(n,SafeBuffer);SafeBuffer.from=function(e,t,r){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return n(e,t,r)};SafeBuffer.alloc=function(e,t,r){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var i=n(e);if(t!==undefined){if(typeof r==="string"){i.fill(t,r)}else{i.fill(t)}}else{i.fill(0)}return i};SafeBuffer.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return n(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return i.SlowBuffer(e)}},8536:function(e,t,r){"use strict";var i=r(110).Buffer;var n=i.isEncoding||function(e){e=""+e;switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return true;default:return false}};function _normalizeEncoding(e){if(!e)return"utf8";var t;while(true){switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase();t=true}}}function normalizeEncoding(e){var t=_normalizeEncoding(e);if(typeof t!=="string"&&(i.isEncoding===n||!n(e)))throw new Error("Unknown encoding: "+e);return t||e}t.s=StringDecoder;function StringDecoder(e){this.encoding=normalizeEncoding(e);var t;switch(this.encoding){case"utf16le":this.text=utf16Text;this.end=utf16End;t=4;break;case"utf8":this.fillLast=utf8FillLast;t=4;break;case"base64":this.text=base64Text;this.end=base64End;t=3;break;default:this.write=simpleWrite;this.end=simpleEnd;return}this.lastNeed=0;this.lastTotal=0;this.lastChar=i.allocUnsafe(t)}StringDecoder.prototype.write=function(e){if(e.length===0)return"";var t;var r;if(this.lastNeed){t=this.fillLast(e);if(t===undefined)return"";r=this.lastNeed;this.lastNeed=0}else{r=0}if(r<e.length)return t?t+this.text(e,r):this.text(e,r);return t||""};StringDecoder.prototype.end=utf8End;StringDecoder.prototype.text=utf8Text;StringDecoder.prototype.fillLast=function(e){if(this.lastNeed<=e.length){e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length);this.lastNeed-=e.length};function utf8CheckByte(e){if(e<=127)return 0;else if(e>>5===6)return 2;else if(e>>4===14)return 3;else if(e>>3===30)return 4;return e>>6===2?-1:-2}function utf8CheckIncomplete(e,t,r){var i=t.length-1;if(i<r)return 0;var n=utf8CheckByte(t[i]);if(n>=0){if(n>0)e.lastNeed=n-1;return n}if(--i<r||n===-2)return 0;n=utf8CheckByte(t[i]);if(n>=0){if(n>0)e.lastNeed=n-2;return n}if(--i<r||n===-2)return 0;n=utf8CheckByte(t[i]);if(n>=0){if(n>0){if(n===2)n=0;else e.lastNeed=n-3}return n}return 0}function utf8CheckExtraBytes(e,t,r){if((t[0]&192)!==128){e.lastNeed=0;return"�"}if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128){e.lastNeed=1;return"�"}if(e.lastNeed>2&&t.length>2){if((t[2]&192)!==128){e.lastNeed=2;return"�"}}}}function utf8FillLast(e){var t=this.lastTotal-this.lastNeed;var r=utf8CheckExtraBytes(this,e,t);if(r!==undefined)return r;if(this.lastNeed<=e.length){e.copy(this.lastChar,t,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,t,0,e.length);this.lastNeed-=e.length}function utf8Text(e,t){var r=utf8CheckIncomplete(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);e.copy(this.lastChar,0,i);return e.toString("utf8",t,i)}function utf8End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+"�";return t}function utf16Text(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319){this.lastNeed=2;this.lastTotal=4;this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1];return r.slice(0,-1)}}return r}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=e[e.length-1];return e.toString("utf16le",t,e.length-1)}function utf16End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function base64Text(e,t){var r=(e.length-t)%3;if(r===0)return e.toString("base64",t);this.lastNeed=3-r;this.lastTotal=3;if(r===1){this.lastChar[0]=e[e.length-1]}else{this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1]}return e.toString("base64",t,e.length-r)}function base64End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+this.lastChar.toString("base64",0,3-this.lastNeed);return t}function simpleWrite(e){return e.toString(this.encoding)}function simpleEnd(e){return e&&e.length?this.write(e):""}},1642:function(e,t,r){var i=r(2781);if(process.env.READABLE_STREAM==="disable"&&i){e.exports=i;t=e.exports=i.Readable;t.Readable=i.Readable;t.Writable=i.Writable;t.Duplex=i.Duplex;t.Transform=i.Transform;t.PassThrough=i.PassThrough;t.Stream=i}else{t=e.exports=r(1433);t.Stream=i||t;t.Readable=t;t.Writable=r(6993);t.Duplex=r(1359);t.Transform=r(4415);t.PassThrough=r(1542)}},1867:function(e,t,r){
10
+ */var t=Object.getOwnPropertySymbols;var r=Object.prototype.hasOwnProperty;var i=Object.prototype.propertyIsEnumerable;function toObject(e){if(e===null||e===undefined){throw new TypeError("Object.assign cannot be called with null or undefined")}return Object(e)}function shouldUseNative(){try{if(!Object.assign){return false}var e=new String("abc");e[5]="de";if(Object.getOwnPropertyNames(e)[0]==="5"){return false}var t={};for(var r=0;r<10;r++){t["_"+String.fromCharCode(r)]=r}var i=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if(i.join("")!=="0123456789"){return false}var n={};"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e}));if(Object.keys(Object.assign({},n)).join("")!=="abcdefghijklmnopqrst"){return false}return true}catch(e){return false}}e.exports=shouldUseNative()?Object.assign:function(e,n){var o;var a=toObject(e);var s;for(var u=1;u<arguments.length;u++){o=Object(arguments[u]);for(var l in o){if(r.call(o,l)){a[l]=o[l]}}if(t){s=t(o);for(var c=0;c<s.length;c++){if(i.call(o,s[c])){a[s[c]]=o[s[c]]}}}}return a}},1223:function(e,t,r){var i=r(2940);e.exports=i(once);e.exports.strict=i(onceStrict);once.proto=once((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})}));function once(e){var f=function(){if(f.called)return f.value;f.called=true;return f.value=e.apply(this,arguments)};f.called=false;return f}function onceStrict(e){var f=function(){if(f.called)throw new Error(f.onceError);f.called=true;return f.value=e.apply(this,arguments)};var t=e.name||"Function wrapped with `once`";f.onceError=t+" shouldn't be called more than once";f.called=false;return f}},4833:function(e){e.exports=Pend;function Pend(){this.pending=0;this.max=Infinity;this.listeners=[];this.waiting=[];this.error=null}Pend.prototype.go=function(e){if(this.pending<this.max){pendGo(this,e)}else{this.waiting.push(e)}};Pend.prototype.wait=function(e){if(this.pending===0){e(this.error)}else{this.listeners.push(e)}};Pend.prototype.hold=function(){return pendHold(this)};function pendHold(e){e.pending+=1;var t=false;return onCb;function onCb(r){if(t)throw new Error("callback called twice");t=true;e.error=e.error||r;e.pending-=1;if(e.waiting.length>0&&e.pending<e.max){pendGo(e,e.waiting.shift())}else if(e.pending===0){var i=e.listeners;e.listeners=[];i.forEach(cbListener)}}function cbListener(t){t(e.error)}}function pendGo(e,t){t(pendHold(e))}},5222:function(e,t,r){"use strict";e.exports=typeof Promise==="function"?Promise:r(8058)},8058:function(e){"use strict";var t="pending";var r="settled";var i="fulfilled";var n="rejected";var NOOP=function(){};var o=typeof global!=="undefined"&&typeof global.process!=="undefined"&&typeof global.process.emit==="function";var a=typeof setImmediate==="undefined"?setTimeout:setImmediate;var s=[];var u;function asyncFlush(){for(var e=0;e<s.length;e++){s[e][0](s[e][1])}s=[];u=false}function asyncCall(e,t){s.push([e,t]);if(!u){u=true;a(asyncFlush,0)}}function invokeResolver(e,t){function resolvePromise(e){resolve(t,e)}function rejectPromise(e){reject(t,e)}try{e(resolvePromise,rejectPromise)}catch(e){rejectPromise(e)}}function invokeCallback(e){var t=e.owner;var r=t._state;var o=t._data;var a=e[r];var s=e.then;if(typeof a==="function"){r=i;try{o=a(o)}catch(e){reject(s,e)}}if(!handleThenable(s,o)){if(r===i){resolve(s,o)}if(r===n){reject(s,o)}}}function handleThenable(e,t){var r;try{if(e===t){throw new TypeError("A promises callback cannot return that same promise.")}if(t&&(typeof t==="function"||typeof t==="object")){var i=t.then;if(typeof i==="function"){i.call(t,(function(i){if(!r){r=true;if(t===i){fulfill(e,i)}else{resolve(e,i)}}}),(function(t){if(!r){r=true;reject(e,t)}}));return true}}}catch(t){if(!r){reject(e,t)}return true}return false}function resolve(e,t){if(e===t||!handleThenable(e,t)){fulfill(e,t)}}function fulfill(e,i){if(e._state===t){e._state=r;e._data=i;asyncCall(publishFulfillment,e)}}function reject(e,i){if(e._state===t){e._state=r;e._data=i;asyncCall(publishRejection,e)}}function publish(e){e._then=e._then.forEach(invokeCallback)}function publishFulfillment(e){e._state=i;publish(e)}function publishRejection(e){e._state=n;publish(e);if(!e._handled&&o){global.process.emit("unhandledRejection",e._data,e)}}function notifyRejectionHandled(e){global.process.emit("rejectionHandled",e)}function Promise(e){if(typeof e!=="function"){throw new TypeError("Promise resolver "+e+" is not a function")}if(this instanceof Promise===false){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}this._then=[];invokeResolver(e,this)}Promise.prototype={constructor:Promise,_state:t,_then:null,_data:undefined,_handled:false,then:function(e,t){var r={owner:this,then:new this.constructor(NOOP),fulfilled:e,rejected:t};if((t||e)&&!this._handled){this._handled=true;if(this._state===n&&o){asyncCall(notifyRejectionHandled,this)}}if(this._state===i||this._state===n){asyncCall(invokeCallback,r)}else{this._then.push(r)}return r.then},catch:function(e){return this.then(null,e)}};Promise.all=function(e){if(!Array.isArray(e)){throw new TypeError("You must pass an array to Promise.all().")}return new Promise((function(t,r){var i=[];var n=0;function resolver(e){n++;return function(r){i[e]=r;if(!--n){t(i)}}}for(var o=0,a;o<e.length;o++){a=e[o];if(a&&typeof a.then==="function"){a.then(resolver(o),r)}else{i[o]=a}}if(!n){t(i)}}))};Promise.race=function(e){if(!Array.isArray(e)){throw new TypeError("You must pass an array to Promise.race().")}return new Promise((function(t,r){for(var i=0,n;i<e.length;i++){n=e[i];if(n&&typeof n.then==="function"){n.then(t,r)}else{t(n)}}}))};Promise.resolve=function(e){if(e&&typeof e==="object"&&e.constructor===Promise){return e}return new Promise((function(t){t(e)}))};Promise.reject=function(e){return new Promise((function(t,r){r(e)}))};e.exports=Promise},7810:function(e){"use strict";if(typeof process==="undefined"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0){e.exports={nextTick:nextTick}}else{e.exports=process}function nextTick(e,t,r,i){if(typeof e!=="function"){throw new TypeError('"callback" argument must be a function')}var n=arguments.length;var o,a;switch(n){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick((function afterTickOne(){e.call(null,t)}));case 3:return process.nextTick((function afterTickTwo(){e.call(null,t,r)}));case 4:return process.nextTick((function afterTickThree(){e.call(null,t,r,i)}));default:o=new Array(n-1);a=0;while(a<o.length){o[a++]=arguments[a]}return process.nextTick((function afterTick(){e.apply(null,o)}))}}},3874:function(e,t,r){e.exports=r(1642).Duplex},1359:function(e,t,r){"use strict";var i=r(7810);var n=Object.keys||function(e){var t=[];for(var r in e){t.push(r)}return t};e.exports=Duplex;var o=Object.create(r(5898));o.inherits=r(4124);var a=r(1433);var s=r(6993);o.inherits(Duplex,a);{var u=n(s.prototype);for(var l=0;l<u.length;l++){var c=u[l];if(!Duplex.prototype[c])Duplex.prototype[c]=s.prototype[c]}}function Duplex(e){if(!(this instanceof Duplex))return new Duplex(e);a.call(this,e);s.call(this,e);if(e&&e.readable===false)this.readable=false;if(e&&e.writable===false)this.writable=false;this.allowHalfOpen=true;if(e&&e.allowHalfOpen===false)this.allowHalfOpen=false;this.once("end",onend)}Object.defineProperty(Duplex.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});function onend(){if(this.allowHalfOpen||this._writableState.ended)return;i.nextTick(onEndNT,this)}function onEndNT(e){e.end()}Object.defineProperty(Duplex.prototype,"destroyed",{get:function(){if(this._readableState===undefined||this._writableState===undefined){return false}return this._readableState.destroyed&&this._writableState.destroyed},set:function(e){if(this._readableState===undefined||this._writableState===undefined){return}this._readableState.destroyed=e;this._writableState.destroyed=e}});Duplex.prototype._destroy=function(e,t){this.push(null);this.end();i.nextTick(t,e)}},1542:function(e,t,r){"use strict";e.exports=PassThrough;var i=r(4415);var n=Object.create(r(5898));n.inherits=r(4124);n.inherits(PassThrough,i);function PassThrough(e){if(!(this instanceof PassThrough))return new PassThrough(e);i.call(this,e)}PassThrough.prototype._transform=function(e,t,r){r(null,e)}},1433:function(e,t,r){"use strict";var i=r(7810);e.exports=Readable;var n=r(2873);var o;Readable.ReadableState=ReadableState;var a=r(2361).EventEmitter;var EElistenerCount=function(e,t){return e.listeners(t).length};var s=r(2387);var u=r(110).Buffer;var l=(typeof global!=="undefined"?global:typeof window!=="undefined"?window:typeof self!=="undefined"?self:{}).Uint8Array||function(){};function _uint8ArrayToBuffer(e){return u.from(e)}function _isUint8Array(e){return u.isBuffer(e)||e instanceof l}var c=Object.create(r(5898));c.inherits=r(4124);var d=r(3837);var p=void 0;if(d&&d.debuglog){p=d.debuglog("stream")}else{p=function(){}}var h=r(7053);var m=r(7049);var y;c.inherits(Readable,s);var v=["error","close","destroy","pause","resume"];function prependListener(e,t,r){if(typeof e.prependListener==="function")return e.prependListener(t,r);if(!e._events||!e._events[t])e.on(t,r);else if(n(e._events[t]))e._events[t].unshift(r);else e._events[t]=[r,e._events[t]]}function ReadableState(e,t){o=o||r(1359);e=e||{};var i=t instanceof o;this.objectMode=!!e.objectMode;if(i)this.objectMode=this.objectMode||!!e.readableObjectMode;var n=e.highWaterMark;var a=e.readableHighWaterMark;var s=this.objectMode?16:16*1024;if(n||n===0)this.highWaterMark=n;else if(i&&(a||a===0))this.highWaterMark=a;else this.highWaterMark=s;this.highWaterMark=Math.floor(this.highWaterMark);this.buffer=new h;this.length=0;this.pipes=null;this.pipesCount=0;this.flowing=null;this.ended=false;this.endEmitted=false;this.reading=false;this.sync=true;this.needReadable=false;this.emittedReadable=false;this.readableListening=false;this.resumeScheduled=false;this.destroyed=false;this.defaultEncoding=e.defaultEncoding||"utf8";this.awaitDrain=0;this.readingMore=false;this.decoder=null;this.encoding=null;if(e.encoding){if(!y)y=r(8536).s;this.decoder=new y(e.encoding);this.encoding=e.encoding}}function Readable(e){o=o||r(1359);if(!(this instanceof Readable))return new Readable(e);this._readableState=new ReadableState(e,this);this.readable=true;if(e){if(typeof e.read==="function")this._read=e.read;if(typeof e.destroy==="function")this._destroy=e.destroy}s.call(this)}Object.defineProperty(Readable.prototype,"destroyed",{get:function(){if(this._readableState===undefined){return false}return this._readableState.destroyed},set:function(e){if(!this._readableState){return}this._readableState.destroyed=e}});Readable.prototype.destroy=m.destroy;Readable.prototype._undestroy=m.undestroy;Readable.prototype._destroy=function(e,t){this.push(null);t(e)};Readable.prototype.push=function(e,t){var r=this._readableState;var i;if(!r.objectMode){if(typeof e==="string"){t=t||r.defaultEncoding;if(t!==r.encoding){e=u.from(e,t);t=""}i=true}}else{i=true}return readableAddChunk(this,e,t,false,i)};Readable.prototype.unshift=function(e){return readableAddChunk(this,e,null,true,false)};function readableAddChunk(e,t,r,i,n){var o=e._readableState;if(t===null){o.reading=false;onEofChunk(e,o)}else{var a;if(!n)a=chunkInvalid(o,t);if(a){e.emit("error",a)}else if(o.objectMode||t&&t.length>0){if(typeof t!=="string"&&!o.objectMode&&Object.getPrototypeOf(t)!==u.prototype){t=_uint8ArrayToBuffer(t)}if(i){if(o.endEmitted)e.emit("error",new Error("stream.unshift() after end event"));else addChunk(e,o,t,true)}else if(o.ended){e.emit("error",new Error("stream.push() after EOF"))}else{o.reading=false;if(o.decoder&&!r){t=o.decoder.write(t);if(o.objectMode||t.length!==0)addChunk(e,o,t,false);else maybeReadMore(e,o)}else{addChunk(e,o,t,false)}}}else if(!i){o.reading=false}}return needMoreData(o)}function addChunk(e,t,r,i){if(t.flowing&&t.length===0&&!t.sync){e.emit("data",r);e.read(0)}else{t.length+=t.objectMode?1:r.length;if(i)t.buffer.unshift(r);else t.buffer.push(r);if(t.needReadable)emitReadable(e)}maybeReadMore(e,t)}function chunkInvalid(e,t){var r;if(!_isUint8Array(t)&&typeof t!=="string"&&t!==undefined&&!e.objectMode){r=new TypeError("Invalid non-string/buffer chunk")}return r}function needMoreData(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}Readable.prototype.isPaused=function(){return this._readableState.flowing===false};Readable.prototype.setEncoding=function(e){if(!y)y=r(8536).s;this._readableState.decoder=new y(e);this._readableState.encoding=e;return this};var g=8388608;function computeNewHighWaterMark(e){if(e>=g){e=g}else{e--;e|=e>>>1;e|=e>>>2;e|=e>>>4;e|=e>>>8;e|=e>>>16;e++}return e}function howMuchToRead(e,t){if(e<=0||t.length===0&&t.ended)return 0;if(t.objectMode)return 1;if(e!==e){if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length}if(e>t.highWaterMark)t.highWaterMark=computeNewHighWaterMark(e);if(e<=t.length)return e;if(!t.ended){t.needReadable=true;return 0}return t.length}Readable.prototype.read=function(e){p("read",e);e=parseInt(e,10);var t=this._readableState;var r=e;if(e!==0)t.emittedReadable=false;if(e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended)){p("read: emitReadable",t.length,t.ended);if(t.length===0&&t.ended)endReadable(this);else emitReadable(this);return null}e=howMuchToRead(e,t);if(e===0&&t.ended){if(t.length===0)endReadable(this);return null}var i=t.needReadable;p("need readable",i);if(t.length===0||t.length-e<t.highWaterMark){i=true;p("length less than watermark",i)}if(t.ended||t.reading){i=false;p("reading or ended",i)}else if(i){p("do read");t.reading=true;t.sync=true;if(t.length===0)t.needReadable=true;this._read(t.highWaterMark);t.sync=false;if(!t.reading)e=howMuchToRead(r,t)}var n;if(e>0)n=fromList(e,t);else n=null;if(n===null){t.needReadable=true;e=0}else{t.length-=e}if(t.length===0){if(!t.ended)t.needReadable=true;if(r!==e&&t.ended)endReadable(this)}if(n!==null)this.emit("data",n);return n};function onEofChunk(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();if(r&&r.length){t.buffer.push(r);t.length+=t.objectMode?1:r.length}}t.ended=true;emitReadable(e)}function emitReadable(e){var t=e._readableState;t.needReadable=false;if(!t.emittedReadable){p("emitReadable",t.flowing);t.emittedReadable=true;if(t.sync)i.nextTick(emitReadable_,e);else emitReadable_(e)}}function emitReadable_(e){p("emit readable");e.emit("readable");flow(e)}function maybeReadMore(e,t){if(!t.readingMore){t.readingMore=true;i.nextTick(maybeReadMore_,e,t)}}function maybeReadMore_(e,t){var r=t.length;while(!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark){p("maybeReadMore read 0");e.read(0);if(r===t.length)break;else r=t.length}t.readingMore=false}Readable.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))};Readable.prototype.pipe=function(e,t){var r=this;var n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e);break}n.pipesCount+=1;p("pipe count=%d opts=%j",n.pipesCount,t);var o=(!t||t.end!==false)&&e!==process.stdout&&e!==process.stderr;var a=o?onend:unpipe;if(n.endEmitted)i.nextTick(a);else r.once("end",a);e.on("unpipe",onunpipe);function onunpipe(e,t){p("onunpipe");if(e===r){if(t&&t.hasUnpiped===false){t.hasUnpiped=true;cleanup()}}}function onend(){p("onend");e.end()}var s=pipeOnDrain(r);e.on("drain",s);var u=false;function cleanup(){p("cleanup");e.removeListener("close",onclose);e.removeListener("finish",onfinish);e.removeListener("drain",s);e.removeListener("error",onerror);e.removeListener("unpipe",onunpipe);r.removeListener("end",onend);r.removeListener("end",unpipe);r.removeListener("data",ondata);u=true;if(n.awaitDrain&&(!e._writableState||e._writableState.needDrain))s()}var l=false;r.on("data",ondata);function ondata(t){p("ondata");l=false;var i=e.write(t);if(false===i&&!l){if((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&indexOf(n.pipes,e)!==-1)&&!u){p("false write response, pause",n.awaitDrain);n.awaitDrain++;l=true}r.pause()}}function onerror(t){p("onerror",t);unpipe();e.removeListener("error",onerror);if(EElistenerCount(e,"error")===0)e.emit("error",t)}prependListener(e,"error",onerror);function onclose(){e.removeListener("finish",onfinish);unpipe()}e.once("close",onclose);function onfinish(){p("onfinish");e.removeListener("close",onclose);unpipe()}e.once("finish",onfinish);function unpipe(){p("unpipe");r.unpipe(e)}e.emit("pipe",r);if(!n.flowing){p("pipe resume");r.resume()}return e};function pipeOnDrain(e){return function(){var t=e._readableState;p("pipeOnDrain",t.awaitDrain);if(t.awaitDrain)t.awaitDrain--;if(t.awaitDrain===0&&EElistenerCount(e,"data")){t.flowing=true;flow(e)}}}Readable.prototype.unpipe=function(e){var t=this._readableState;var r={hasUnpiped:false};if(t.pipesCount===0)return this;if(t.pipesCount===1){if(e&&e!==t.pipes)return this;if(!e)e=t.pipes;t.pipes=null;t.pipesCount=0;t.flowing=false;if(e)e.emit("unpipe",this,r);return this}if(!e){var i=t.pipes;var n=t.pipesCount;t.pipes=null;t.pipesCount=0;t.flowing=false;for(var o=0;o<n;o++){i[o].emit("unpipe",this,{hasUnpiped:false})}return this}var a=indexOf(t.pipes,e);if(a===-1)return this;t.pipes.splice(a,1);t.pipesCount-=1;if(t.pipesCount===1)t.pipes=t.pipes[0];e.emit("unpipe",this,r);return this};Readable.prototype.on=function(e,t){var r=s.prototype.on.call(this,e,t);if(e==="data"){if(this._readableState.flowing!==false)this.resume()}else if(e==="readable"){var n=this._readableState;if(!n.endEmitted&&!n.readableListening){n.readableListening=n.needReadable=true;n.emittedReadable=false;if(!n.reading){i.nextTick(nReadingNextTick,this)}else if(n.length){emitReadable(this)}}}return r};Readable.prototype.addListener=Readable.prototype.on;function nReadingNextTick(e){p("readable nexttick read 0");e.read(0)}Readable.prototype.resume=function(){var e=this._readableState;if(!e.flowing){p("resume");e.flowing=true;resume(this,e)}return this};function resume(e,t){if(!t.resumeScheduled){t.resumeScheduled=true;i.nextTick(resume_,e,t)}}function resume_(e,t){if(!t.reading){p("resume read 0");e.read(0)}t.resumeScheduled=false;t.awaitDrain=0;e.emit("resume");flow(e);if(t.flowing&&!t.reading)e.read(0)}Readable.prototype.pause=function(){p("call pause flowing=%j",this._readableState.flowing);if(false!==this._readableState.flowing){p("pause");this._readableState.flowing=false;this.emit("pause")}return this};function flow(e){var t=e._readableState;p("flow",t.flowing);while(t.flowing&&e.read()!==null){}}Readable.prototype.wrap=function(e){var t=this;var r=this._readableState;var i=false;e.on("end",(function(){p("wrapped end");if(r.decoder&&!r.ended){var e=r.decoder.end();if(e&&e.length)t.push(e)}t.push(null)}));e.on("data",(function(n){p("wrapped data");if(r.decoder)n=r.decoder.write(n);if(r.objectMode&&(n===null||n===undefined))return;else if(!r.objectMode&&(!n||!n.length))return;var o=t.push(n);if(!o){i=true;e.pause()}}));for(var n in e){if(this[n]===undefined&&typeof e[n]==="function"){this[n]=function(t){return function(){return e[t].apply(e,arguments)}}(n)}}for(var o=0;o<v.length;o++){e.on(v[o],this.emit.bind(this,v[o]))}this._read=function(t){p("wrapped _read",t);if(i){i=false;e.resume()}};return this};Object.defineProperty(Readable.prototype,"readableHighWaterMark",{enumerable:false,get:function(){return this._readableState.highWaterMark}});Readable._fromList=fromList;function fromList(e,t){if(t.length===0)return null;var r;if(t.objectMode)r=t.buffer.shift();else if(!e||e>=t.length){if(t.decoder)r=t.buffer.join("");else if(t.buffer.length===1)r=t.buffer.head.data;else r=t.buffer.concat(t.length);t.buffer.clear()}else{r=fromListPartial(e,t.buffer,t.decoder)}return r}function fromListPartial(e,t,r){var i;if(e<t.head.data.length){i=t.head.data.slice(0,e);t.head.data=t.head.data.slice(e)}else if(e===t.head.data.length){i=t.shift()}else{i=r?copyFromBufferString(e,t):copyFromBuffer(e,t)}return i}function copyFromBufferString(e,t){var r=t.head;var i=1;var n=r.data;e-=n.length;while(r=r.next){var o=r.data;var a=e>o.length?o.length:e;if(a===o.length)n+=o;else n+=o.slice(0,e);e-=a;if(e===0){if(a===o.length){++i;if(r.next)t.head=r.next;else t.head=t.tail=null}else{t.head=r;r.data=o.slice(a)}break}++i}t.length-=i;return n}function copyFromBuffer(e,t){var r=u.allocUnsafe(e);var i=t.head;var n=1;i.data.copy(r);e-=i.data.length;while(i=i.next){var o=i.data;var a=e>o.length?o.length:e;o.copy(r,r.length-e,0,a);e-=a;if(e===0){if(a===o.length){++n;if(i.next)t.head=i.next;else t.head=t.tail=null}else{t.head=i;i.data=o.slice(a)}break}++n}t.length-=n;return r}function endReadable(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');if(!t.endEmitted){t.ended=true;i.nextTick(endReadableNT,t,e)}}function endReadableNT(e,t){if(!e.endEmitted&&e.length===0){e.endEmitted=true;t.readable=false;t.emit("end")}}function indexOf(e,t){for(var r=0,i=e.length;r<i;r++){if(e[r]===t)return r}return-1}},4415:function(e,t,r){"use strict";e.exports=Transform;var i=r(1359);var n=Object.create(r(5898));n.inherits=r(4124);n.inherits(Transform,i);function afterTransform(e,t){var r=this._transformState;r.transforming=false;var i=r.writecb;if(!i){return this.emit("error",new Error("write callback called multiple times"))}r.writechunk=null;r.writecb=null;if(t!=null)this.push(t);i(e);var n=this._readableState;n.reading=false;if(n.needReadable||n.length<n.highWaterMark){this._read(n.highWaterMark)}}function Transform(e){if(!(this instanceof Transform))return new Transform(e);i.call(this,e);this._transformState={afterTransform:afterTransform.bind(this),needTransform:false,transforming:false,writecb:null,writechunk:null,writeencoding:null};this._readableState.needReadable=true;this._readableState.sync=false;if(e){if(typeof e.transform==="function")this._transform=e.transform;if(typeof e.flush==="function")this._flush=e.flush}this.on("prefinish",prefinish)}function prefinish(){var e=this;if(typeof this._flush==="function"){this._flush((function(t,r){done(e,t,r)}))}else{done(this,null,null)}}Transform.prototype.push=function(e,t){this._transformState.needTransform=false;return i.prototype.push.call(this,e,t)};Transform.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")};Transform.prototype._write=function(e,t,r){var i=this._transformState;i.writecb=r;i.writechunk=e;i.writeencoding=t;if(!i.transforming){var n=this._readableState;if(i.needTransform||n.needReadable||n.length<n.highWaterMark)this._read(n.highWaterMark)}};Transform.prototype._read=function(e){var t=this._transformState;if(t.writechunk!==null&&t.writecb&&!t.transforming){t.transforming=true;this._transform(t.writechunk,t.writeencoding,t.afterTransform)}else{t.needTransform=true}};Transform.prototype._destroy=function(e,t){var r=this;i.prototype._destroy.call(this,e,(function(e){t(e);r.emit("close")}))};function done(e,t,r){if(t)return e.emit("error",t);if(r!=null)e.push(r);if(e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}},6993:function(e,t,r){"use strict";var i=r(7810);e.exports=Writable;function WriteReq(e,t,r){this.chunk=e;this.encoding=t;this.callback=r;this.next=null}function CorkedRequest(e){var t=this;this.next=null;this.entry=null;this.finish=function(){onCorkedFinish(t,e)}}var n=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:i.nextTick;var o;Writable.WritableState=WritableState;var a=Object.create(r(5898));a.inherits=r(4124);var s={deprecate:r(5278)};var u=r(2387);var l=r(110).Buffer;var c=(typeof global!=="undefined"?global:typeof window!=="undefined"?window:typeof self!=="undefined"?self:{}).Uint8Array||function(){};function _uint8ArrayToBuffer(e){return l.from(e)}function _isUint8Array(e){return l.isBuffer(e)||e instanceof c}var d=r(7049);a.inherits(Writable,u);function nop(){}function WritableState(e,t){o=o||r(1359);e=e||{};var i=t instanceof o;this.objectMode=!!e.objectMode;if(i)this.objectMode=this.objectMode||!!e.writableObjectMode;var n=e.highWaterMark;var a=e.writableHighWaterMark;var s=this.objectMode?16:16*1024;if(n||n===0)this.highWaterMark=n;else if(i&&(a||a===0))this.highWaterMark=a;else this.highWaterMark=s;this.highWaterMark=Math.floor(this.highWaterMark);this.finalCalled=false;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;this.destroyed=false;var u=e.decodeStrings===false;this.decodeStrings=!u;this.defaultEncoding=e.defaultEncoding||"utf8";this.length=0;this.writing=false;this.corked=0;this.sync=true;this.bufferProcessing=false;this.onwrite=function(e){onwrite(t,e)};this.writecb=null;this.writelen=0;this.bufferedRequest=null;this.lastBufferedRequest=null;this.pendingcb=0;this.prefinished=false;this.errorEmitted=false;this.bufferedRequestCount=0;this.corkedRequestsFree=new CorkedRequest(this)}WritableState.prototype.getBuffer=function getBuffer(){var e=this.bufferedRequest;var t=[];while(e){t.push(e);e=e.next}return t};(function(){try{Object.defineProperty(WritableState.prototype,"buffer",{get:s.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer "+"instead.","DEP0003")})}catch(e){}})();var p;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function"){p=Function.prototype[Symbol.hasInstance];Object.defineProperty(Writable,Symbol.hasInstance,{value:function(e){if(p.call(this,e))return true;if(this!==Writable)return false;return e&&e._writableState instanceof WritableState}})}else{p=function(e){return e instanceof this}}function Writable(e){o=o||r(1359);if(!p.call(Writable,this)&&!(this instanceof o)){return new Writable(e)}this._writableState=new WritableState(e,this);this.writable=true;if(e){if(typeof e.write==="function")this._write=e.write;if(typeof e.writev==="function")this._writev=e.writev;if(typeof e.destroy==="function")this._destroy=e.destroy;if(typeof e.final==="function")this._final=e.final}u.call(this)}Writable.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function writeAfterEnd(e,t){var r=new Error("write after end");e.emit("error",r);i.nextTick(t,r)}function validChunk(e,t,r,n){var o=true;var a=false;if(r===null){a=new TypeError("May not write null values to stream")}else if(typeof r!=="string"&&r!==undefined&&!t.objectMode){a=new TypeError("Invalid non-string/buffer chunk")}if(a){e.emit("error",a);i.nextTick(n,a);o=false}return o}Writable.prototype.write=function(e,t,r){var i=this._writableState;var n=false;var o=!i.objectMode&&_isUint8Array(e);if(o&&!l.isBuffer(e)){e=_uint8ArrayToBuffer(e)}if(typeof t==="function"){r=t;t=null}if(o)t="buffer";else if(!t)t=i.defaultEncoding;if(typeof r!=="function")r=nop;if(i.ended)writeAfterEnd(this,r);else if(o||validChunk(this,i,e,r)){i.pendingcb++;n=writeOrBuffer(this,i,o,e,t,r)}return n};Writable.prototype.cork=function(){var e=this._writableState;e.corked++};Writable.prototype.uncork=function(){var e=this._writableState;if(e.corked){e.corked--;if(!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest)clearBuffer(this,e)}};Writable.prototype.setDefaultEncoding=function setDefaultEncoding(e){if(typeof e==="string")e=e.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);this._writableState.defaultEncoding=e;return this};function decodeChunk(e,t,r){if(!e.objectMode&&e.decodeStrings!==false&&typeof t==="string"){t=l.from(t,r)}return t}Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});function writeOrBuffer(e,t,r,i,n,o){if(!r){var a=decodeChunk(t,i,n);if(i!==a){r=true;n="buffer";i=a}}var s=t.objectMode?1:i.length;t.length+=s;var u=t.length<t.highWaterMark;if(!u)t.needDrain=true;if(t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:o,next:null};if(l){l.next=t.lastBufferedRequest}else{t.bufferedRequest=t.lastBufferedRequest}t.bufferedRequestCount+=1}else{doWrite(e,t,false,s,i,n,o)}return u}function doWrite(e,t,r,i,n,o,a){t.writelen=i;t.writecb=a;t.writing=true;t.sync=true;if(r)e._writev(n,t.onwrite);else e._write(n,o,t.onwrite);t.sync=false}function onwriteError(e,t,r,n,o){--t.pendingcb;if(r){i.nextTick(o,n);i.nextTick(finishMaybe,e,t);e._writableState.errorEmitted=true;e.emit("error",n)}else{o(n);e._writableState.errorEmitted=true;e.emit("error",n);finishMaybe(e,t)}}function onwriteStateUpdate(e){e.writing=false;e.writecb=null;e.length-=e.writelen;e.writelen=0}function onwrite(e,t){var r=e._writableState;var i=r.sync;var o=r.writecb;onwriteStateUpdate(r);if(t)onwriteError(e,r,i,t,o);else{var a=needFinish(r);if(!a&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest){clearBuffer(e,r)}if(i){n(afterWrite,e,r,a,o)}else{afterWrite(e,r,a,o)}}}function afterWrite(e,t,r,i){if(!r)onwriteDrain(e,t);t.pendingcb--;i();finishMaybe(e,t)}function onwriteDrain(e,t){if(t.length===0&&t.needDrain){t.needDrain=false;e.emit("drain")}}function clearBuffer(e,t){t.bufferProcessing=true;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount;var n=new Array(i);var o=t.corkedRequestsFree;o.entry=r;var a=0;var s=true;while(r){n[a]=r;if(!r.isBuf)s=false;r=r.next;a+=1}n.allBuffers=s;doWrite(e,t,true,t.length,n,"",o.finish);t.pendingcb++;t.lastBufferedRequest=null;if(o.next){t.corkedRequestsFree=o.next;o.next=null}else{t.corkedRequestsFree=new CorkedRequest(t)}t.bufferedRequestCount=0}else{while(r){var u=r.chunk;var l=r.encoding;var c=r.callback;var d=t.objectMode?1:u.length;doWrite(e,t,false,d,u,l,c);r=r.next;t.bufferedRequestCount--;if(t.writing){break}}if(r===null)t.lastBufferedRequest=null}t.bufferedRequest=r;t.bufferProcessing=false}Writable.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))};Writable.prototype._writev=null;Writable.prototype.end=function(e,t,r){var i=this._writableState;if(typeof e==="function"){r=e;e=null;t=null}else if(typeof t==="function"){r=t;t=null}if(e!==null&&e!==undefined)this.write(e,t);if(i.corked){i.corked=1;this.uncork()}if(!i.ending)endWritable(this,i,r)};function needFinish(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function callFinal(e,t){e._final((function(r){t.pendingcb--;if(r){e.emit("error",r)}t.prefinished=true;e.emit("prefinish");finishMaybe(e,t)}))}function prefinish(e,t){if(!t.prefinished&&!t.finalCalled){if(typeof e._final==="function"){t.pendingcb++;t.finalCalled=true;i.nextTick(callFinal,e,t)}else{t.prefinished=true;e.emit("prefinish")}}}function finishMaybe(e,t){var r=needFinish(t);if(r){prefinish(e,t);if(t.pendingcb===0){t.finished=true;e.emit("finish")}}return r}function endWritable(e,t,r){t.ending=true;finishMaybe(e,t);if(r){if(t.finished)i.nextTick(r);else e.once("finish",r)}t.ended=true;e.writable=false}function onCorkedFinish(e,t,r){var i=e.entry;e.entry=null;while(i){var n=i.callback;t.pendingcb--;n(r);i=i.next}t.corkedRequestsFree.next=e}Object.defineProperty(Writable.prototype,"destroyed",{get:function(){if(this._writableState===undefined){return false}return this._writableState.destroyed},set:function(e){if(!this._writableState){return}this._writableState.destroyed=e}});Writable.prototype.destroy=d.destroy;Writable.prototype._undestroy=d.undestroy;Writable.prototype._destroy=function(e,t){this.end();t(e)}},7053:function(e,t,r){"use strict";function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var i=r(110).Buffer;var n=r(3837);function copyBuffer(e,t,r){e.copy(t,r)}e.exports=function(){function BufferList(){_classCallCheck(this,BufferList);this.head=null;this.tail=null;this.length=0}BufferList.prototype.push=function push(e){var t={data:e,next:null};if(this.length>0)this.tail.next=t;else this.head=t;this.tail=t;++this.length};BufferList.prototype.unshift=function unshift(e){var t={data:e,next:this.head};if(this.length===0)this.tail=t;this.head=t;++this.length};BufferList.prototype.shift=function shift(){if(this.length===0)return;var e=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;--this.length;return e};BufferList.prototype.clear=function clear(){this.head=this.tail=null;this.length=0};BufferList.prototype.join=function join(e){if(this.length===0)return"";var t=this.head;var r=""+t.data;while(t=t.next){r+=e+t.data}return r};BufferList.prototype.concat=function concat(e){if(this.length===0)return i.alloc(0);var t=i.allocUnsafe(e>>>0);var r=this.head;var n=0;while(r){copyBuffer(r.data,t,n);n+=r.data.length;r=r.next}return t};return BufferList}();if(n&&n.inspect&&n.inspect.custom){e.exports.prototype[n.inspect.custom]=function(){var e=n.inspect({length:this.length});return this.constructor.name+" "+e}}},7049:function(e,t,r){"use strict";var i=r(7810);function destroy(e,t){var r=this;var n=this._readableState&&this._readableState.destroyed;var o=this._writableState&&this._writableState.destroyed;if(n||o){if(t){t(e)}else if(e){if(!this._writableState){i.nextTick(emitErrorNT,this,e)}else if(!this._writableState.errorEmitted){this._writableState.errorEmitted=true;i.nextTick(emitErrorNT,this,e)}}return this}if(this._readableState){this._readableState.destroyed=true}if(this._writableState){this._writableState.destroyed=true}this._destroy(e||null,(function(e){if(!t&&e){if(!r._writableState){i.nextTick(emitErrorNT,r,e)}else if(!r._writableState.errorEmitted){r._writableState.errorEmitted=true;i.nextTick(emitErrorNT,r,e)}}else if(t){t(e)}}));return this}function undestroy(){if(this._readableState){this._readableState.destroyed=false;this._readableState.reading=false;this._readableState.ended=false;this._readableState.endEmitted=false}if(this._writableState){this._writableState.destroyed=false;this._writableState.ended=false;this._writableState.ending=false;this._writableState.finalCalled=false;this._writableState.prefinished=false;this._writableState.finished=false;this._writableState.errorEmitted=false}}function emitErrorNT(e,t){e.emit("error",t)}e.exports={destroy:destroy,undestroy:undestroy}},2387:function(e,t,r){e.exports=r(2781)},2873:function(e){var t={}.toString;e.exports=Array.isArray||function(e){return t.call(e)=="[object Array]"}},110:function(e,t,r){var i=r(4300);var n=i.Buffer;function copyProps(e,t){for(var r in e){t[r]=e[r]}}if(n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow){e.exports=i}else{copyProps(i,t);t.Buffer=SafeBuffer}function SafeBuffer(e,t,r){return n(e,t,r)}copyProps(n,SafeBuffer);SafeBuffer.from=function(e,t,r){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return n(e,t,r)};SafeBuffer.alloc=function(e,t,r){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var i=n(e);if(t!==undefined){if(typeof r==="string"){i.fill(t,r)}else{i.fill(t)}}else{i.fill(0)}return i};SafeBuffer.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return n(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return i.SlowBuffer(e)}},8536:function(e,t,r){"use strict";var i=r(110).Buffer;var n=i.isEncoding||function(e){e=""+e;switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return true;default:return false}};function _normalizeEncoding(e){if(!e)return"utf8";var t;while(true){switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase();t=true}}}function normalizeEncoding(e){var t=_normalizeEncoding(e);if(typeof t!=="string"&&(i.isEncoding===n||!n(e)))throw new Error("Unknown encoding: "+e);return t||e}t.s=StringDecoder;function StringDecoder(e){this.encoding=normalizeEncoding(e);var t;switch(this.encoding){case"utf16le":this.text=utf16Text;this.end=utf16End;t=4;break;case"utf8":this.fillLast=utf8FillLast;t=4;break;case"base64":this.text=base64Text;this.end=base64End;t=3;break;default:this.write=simpleWrite;this.end=simpleEnd;return}this.lastNeed=0;this.lastTotal=0;this.lastChar=i.allocUnsafe(t)}StringDecoder.prototype.write=function(e){if(e.length===0)return"";var t;var r;if(this.lastNeed){t=this.fillLast(e);if(t===undefined)return"";r=this.lastNeed;this.lastNeed=0}else{r=0}if(r<e.length)return t?t+this.text(e,r):this.text(e,r);return t||""};StringDecoder.prototype.end=utf8End;StringDecoder.prototype.text=utf8Text;StringDecoder.prototype.fillLast=function(e){if(this.lastNeed<=e.length){e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length);this.lastNeed-=e.length};function utf8CheckByte(e){if(e<=127)return 0;else if(e>>5===6)return 2;else if(e>>4===14)return 3;else if(e>>3===30)return 4;return e>>6===2?-1:-2}function utf8CheckIncomplete(e,t,r){var i=t.length-1;if(i<r)return 0;var n=utf8CheckByte(t[i]);if(n>=0){if(n>0)e.lastNeed=n-1;return n}if(--i<r||n===-2)return 0;n=utf8CheckByte(t[i]);if(n>=0){if(n>0)e.lastNeed=n-2;return n}if(--i<r||n===-2)return 0;n=utf8CheckByte(t[i]);if(n>=0){if(n>0){if(n===2)n=0;else e.lastNeed=n-3}return n}return 0}function utf8CheckExtraBytes(e,t,r){if((t[0]&192)!==128){e.lastNeed=0;return"�"}if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128){e.lastNeed=1;return"�"}if(e.lastNeed>2&&t.length>2){if((t[2]&192)!==128){e.lastNeed=2;return"�"}}}}function utf8FillLast(e){var t=this.lastTotal-this.lastNeed;var r=utf8CheckExtraBytes(this,e,t);if(r!==undefined)return r;if(this.lastNeed<=e.length){e.copy(this.lastChar,t,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,t,0,e.length);this.lastNeed-=e.length}function utf8Text(e,t){var r=utf8CheckIncomplete(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);e.copy(this.lastChar,0,i);return e.toString("utf8",t,i)}function utf8End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+"�";return t}function utf16Text(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319){this.lastNeed=2;this.lastTotal=4;this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1];return r.slice(0,-1)}}return r}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=e[e.length-1];return e.toString("utf16le",t,e.length-1)}function utf16End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function base64Text(e,t){var r=(e.length-t)%3;if(r===0)return e.toString("base64",t);this.lastNeed=3-r;this.lastTotal=3;if(r===1){this.lastChar[0]=e[e.length-1]}else{this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1]}return e.toString("base64",t,e.length-r)}function base64End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+this.lastChar.toString("base64",0,3-this.lastNeed);return t}function simpleWrite(e){return e.toString(this.encoding)}function simpleEnd(e){return e&&e.length?this.write(e):""}},1642:function(e,t,r){var i=r(2781);if(process.env.READABLE_STREAM==="disable"&&i){e.exports=i;t=e.exports=i.Readable;t.Readable=i.Readable;t.Writable=i.Writable;t.Duplex=i.Duplex;t.Transform=i.Transform;t.PassThrough=i.PassThrough;t.Stream=i}else{t=e.exports=r(1433);t.Stream=i||t;t.Readable=t;t.Writable=r(6993);t.Duplex=r(1359);t.Transform=r(4415);t.PassThrough=r(1542)}},1867:function(e,t,r){
11
11
  /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
12
12
  var i=r(4300);var n=i.Buffer;function copyProps(e,t){for(var r in e){t[r]=e[r]}}if(n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow){e.exports=i}else{copyProps(i,t);t.Buffer=SafeBuffer}function SafeBuffer(e,t,r){return n(e,t,r)}SafeBuffer.prototype=Object.create(n.prototype);copyProps(n,SafeBuffer);SafeBuffer.from=function(e,t,r){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return n(e,t,r)};SafeBuffer.alloc=function(e,t,r){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var i=n(e);if(t!==undefined){if(typeof r==="string"){i.fill(t,r)}else{i.fill(t)}}else{i.fill(0)}return i};SafeBuffer.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return n(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return i.SlowBuffer(e)}},8982:function(e){var t=[0,1,3,7,15,31,63,127,255];var BitReader=function(e){this.stream=e;this.bitOffset=0;this.curByte=0;this.hasByte=false};BitReader.prototype._ensureByte=function(){if(!this.hasByte){this.curByte=this.stream.readByte();this.hasByte=true}};BitReader.prototype.read=function(e){var r=0;while(e>0){this._ensureByte();var i=8-this.bitOffset;if(e>=i){r<<=i;r|=t[i]&this.curByte;this.hasByte=false;this.bitOffset=0;e-=i}else{r<<=e;var n=i-e;r|=(this.curByte&t[e]<<n)>>n;this.bitOffset+=e;e=0}}return r};BitReader.prototype.seek=function(e){var t=e%8;var r=(e-t)/8;this.bitOffset=t;this.stream.seek(r);this.hasByte=false};BitReader.prototype.pi=function(){var e=new Buffer(6),t;for(t=0;t<e.length;t++){e[t]=this.read(8)}return e.toString("hex")};e.exports=BitReader},9343:function(e){e.exports=function(){var e=new Uint32Array([0,79764919,159529838,222504665,319059676,398814059,445009330,507990021,638119352,583659535,797628118,726387553,890018660,835552979,1015980042,944750013,1276238704,1221641927,1167319070,1095957929,1595256236,1540665371,1452775106,1381403509,1780037320,1859660671,1671105958,1733955601,2031960084,2111593891,1889500026,1952343757,2552477408,2632100695,2443283854,2506133561,2334638140,2414271883,2191915858,2254759653,3190512472,3135915759,3081330742,3009969537,2905550212,2850959411,2762807018,2691435357,3560074640,3505614887,3719321342,3648080713,3342211916,3287746299,3467911202,3396681109,4063920168,4143685023,4223187782,4286162673,3779000052,3858754371,3904687514,3967668269,881225847,809987520,1023691545,969234094,662832811,591600412,771767749,717299826,311336399,374308984,453813921,533576470,25881363,88864420,134795389,214552010,2023205639,2086057648,1897238633,1976864222,1804852699,1867694188,1645340341,1724971778,1587496639,1516133128,1461550545,1406951526,1302016099,1230646740,1142491917,1087903418,2896545431,2825181984,2770861561,2716262478,3215044683,3143675388,3055782693,3001194130,2326604591,2389456536,2200899649,2280525302,2578013683,2640855108,2418763421,2498394922,3769900519,3832873040,3912640137,3992402750,4088425275,4151408268,4197601365,4277358050,3334271071,3263032808,3476998961,3422541446,3585640067,3514407732,3694837229,3640369242,1762451694,1842216281,1619975040,1682949687,2047383090,2127137669,1938468188,2001449195,1325665622,1271206113,1183200824,1111960463,1543535498,1489069629,1434599652,1363369299,622672798,568075817,748617968,677256519,907627842,853037301,1067152940,995781531,51762726,131386257,177728840,240578815,269590778,349224269,429104020,491947555,4046411278,4126034873,4172115296,4234965207,3794477266,3874110821,3953728444,4016571915,3609705398,3555108353,3735388376,3664026991,3290680682,3236090077,3449943556,3378572211,3174993278,3120533705,3032266256,2961025959,2923101090,2868635157,2813903052,2742672763,2604032198,2683796849,2461293480,2524268063,2284983834,2364738477,2175806836,2238787779,1569362073,1498123566,1409854455,1355396672,1317987909,1246755826,1192025387,1137557660,2072149281,2135122070,1912620623,1992383480,1753615357,1816598090,1627664531,1707420964,295390185,358241886,404320391,483945776,43990325,106832002,186451547,266083308,932423249,861060070,1041341759,986742920,613929101,542559546,756411363,701822548,3316196985,3244833742,3425377559,3370778784,3601682597,3530312978,3744426955,3689838204,3819031489,3881883254,3928223919,4007849240,4037393693,4100235434,4180117107,4259748804,2310601993,2373574846,2151335527,2231098320,2596047829,2659030626,2470359227,2550115596,2947551409,2876312838,2788305887,2733848168,3165939309,3094707162,3040238851,2985771188]);var CRC32=function(){var t=4294967295;this.getCRC=function(){return~t>>>0};this.updateCRC=function(r){t=t<<8^e[(t>>>24^r)&255]};this.updateCRCRun=function(r,i){while(i-- >0){t=t<<8^e[(t>>>24^r)&255]}}};return CRC32}()},9562:function(e,t,r){var i=r(8982);var n=r(4290);var o=r(9343);var a=r(6507);var s=20;var u=258;var l=0;var c=1;var d=2;var p=6;var h=50;var m="314159265359";var y="177245385090";var mtf=function(e,t){var r=e[t],i;for(i=t;i>0;i--){e[i]=e[i-1]}e[0]=r;return r};var v={OK:0,LAST_BLOCK:-1,NOT_BZIP_DATA:-2,UNEXPECTED_INPUT_EOF:-3,UNEXPECTED_OUTPUT_EOF:-4,DATA_ERROR:-5,OUT_OF_MEMORY:-6,OBSOLETE_INPUT:-7,END_OF_BLOCK:-8};var g={};g[v.LAST_BLOCK]="Bad file checksum";g[v.NOT_BZIP_DATA]="Not bzip data";g[v.UNEXPECTED_INPUT_EOF]="Unexpected input EOF";g[v.UNEXPECTED_OUTPUT_EOF]="Unexpected output EOF";g[v.DATA_ERROR]="Data error";g[v.OUT_OF_MEMORY]="Out of memory";g[v.OBSOLETE_INPUT]="Obsolete (pre 0.9.5) bzip format not supported.";var _throw=function(e,t){var r=g[e]||"unknown error";if(t){r+=": "+t}var i=new TypeError(r);i.errorCode=e;throw i};var Bunzip=function(e,t){this.writePos=this.writeCurrent=this.writeCount=0;this._start_bunzip(e,t)};Bunzip.prototype._init_block=function(){var e=this._get_next_block();if(!e){this.writeCount=-1;return false}this.blockCRC=new o;return true};Bunzip.prototype._start_bunzip=function(e,t){var r=new Buffer(4);if(e.read(r,0,4)!==4||String.fromCharCode(r[0],r[1],r[2])!=="BZh")_throw(v.NOT_BZIP_DATA,"bad magic");var n=r[3]-48;if(n<1||n>9)_throw(v.NOT_BZIP_DATA,"level out of range");this.reader=new i(e);this.dbufSize=1e5*n;this.nextoutput=0;this.outputStream=t;this.streamCRC=0};Bunzip.prototype._get_next_block=function(){var e,t,r;var i=this.reader;var n=i.pi();if(n===y){return false}if(n!==m)_throw(v.NOT_BZIP_DATA);this.targetBlockCRC=i.read(32)>>>0;this.streamCRC=(this.targetBlockCRC^(this.streamCRC<<1|this.streamCRC>>>31))>>>0;if(i.read(1))_throw(v.OBSOLETE_INPUT);var o=i.read(24);if(o>this.dbufSize)_throw(v.DATA_ERROR,"initial position out of bounds");var a=i.read(16);var g=new Buffer(256),b=0;for(e=0;e<16;e++){if(a&1<<15-e){var w=e*16;r=i.read(16);for(t=0;t<16;t++)if(r&1<<15-t)g[b++]=w+t}}var x=i.read(3);if(x<d||x>p)_throw(v.DATA_ERROR);var _=i.read(15);if(_===0)_throw(v.DATA_ERROR);var E=new Buffer(256);for(e=0;e<x;e++)E[e]=e;var S=new Buffer(_);for(e=0;e<_;e++){for(t=0;i.read(1);t++)if(t>=x)_throw(v.DATA_ERROR);S[e]=mtf(E,t)}var k=b+2;var B=[],R;for(t=0;t<x;t++){var C=new Buffer(k),T=new Uint16Array(s+1);a=i.read(5);for(e=0;e<k;e++){for(;;){if(a<1||a>s)_throw(v.DATA_ERROR);if(!i.read(1))break;if(!i.read(1))a++;else a--}C[e]=a}var O,A;O=A=C[0];for(e=1;e<k;e++){if(C[e]>A)A=C[e];else if(C[e]<O)O=C[e]}R={};B.push(R);R.permute=new Uint16Array(u);R.limit=new Uint32Array(s+2);R.base=new Uint32Array(s+1);R.minLen=O;R.maxLen=A;var L=0;for(e=O;e<=A;e++){T[e]=R.limit[e]=0;for(a=0;a<k;a++)if(C[a]===e)R.permute[L++]=a}for(e=0;e<k;e++)T[C[e]]++;L=a=0;for(e=O;e<A;e++){L+=T[e];R.limit[e]=L-1;L<<=1;a+=T[e];R.base[e+1]=L-a}R.limit[A+1]=Number.MAX_VALUE;R.limit[A]=L+T[A]-1;R.base[O]=0}var z=new Uint32Array(256);for(e=0;e<256;e++)E[e]=e;var F=0,j=0,P=0,N;var I=this.dbuf=new Uint32Array(this.dbufSize);k=0;for(;;){if(!k--){k=h-1;if(P>=_){_throw(v.DATA_ERROR)}R=B[S[P++]]}e=R.minLen;t=i.read(e);for(;;e++){if(e>R.maxLen){_throw(v.DATA_ERROR)}if(t<=R.limit[e])break;t=t<<1|i.read(1)}t-=R.base[e];if(t<0||t>=u){_throw(v.DATA_ERROR)}var M=R.permute[t];if(M===l||M===c){if(!F){F=1;a=0}if(M===l)a+=F;else a+=2*F;F<<=1;continue}if(F){F=0;if(j+a>this.dbufSize){_throw(v.DATA_ERROR)}N=g[E[0]];z[N]+=a;while(a--)I[j++]=N}if(M>b)break;if(j>=this.dbufSize){_throw(v.DATA_ERROR)}e=M-1;N=mtf(E,e);N=g[N];z[N]++;I[j++]=N}if(o<0||o>=j){_throw(v.DATA_ERROR)}t=0;for(e=0;e<256;e++){r=t+z[e];z[e]=t;t=r}for(e=0;e<j;e++){N=I[e]&255;I[z[N]]|=e<<8;z[N]++}var U=0,D=0,W=0;if(j){U=I[o];D=U&255;U>>=8;W=-1}this.writePos=U;this.writeCurrent=D;this.writeCount=j;this.writeRun=W;return true};Bunzip.prototype._read_bunzip=function(e,t){var r,i,n;if(this.writeCount<0){return 0}var o=0;var a=this.dbuf,s=this.writePos,u=this.writeCurrent;var l=this.writeCount,c=this.outputsize;var d=this.writeRun;while(l){l--;i=u;s=a[s];u=s&255;s>>=8;if(d++===3){r=u;n=i;u=-1}else{r=1;n=u}this.blockCRC.updateCRCRun(n,r);while(r--){this.outputStream.writeByte(n);this.nextoutput++}if(u!=i)d=0}this.writeCount=l;if(this.blockCRC.getCRC()!==this.targetBlockCRC){_throw(v.DATA_ERROR,"Bad block CRC "+"(got "+this.blockCRC.getCRC().toString(16)+" expected "+this.targetBlockCRC.toString(16)+")")}return this.nextoutput};var coerceInputStream=function(e){if("readByte"in e){return e}var t=new n;t.pos=0;t.readByte=function(){return e[this.pos++]};t.seek=function(e){this.pos=e};t.eof=function(){return this.pos>=e.length};return t};var coerceOutputStream=function(e){var t=new n;var r=true;if(e){if(typeof e==="number"){t.buffer=new Buffer(e);r=false}else if("writeByte"in e){return e}else{t.buffer=e;r=false}}else{t.buffer=new Buffer(16384)}t.pos=0;t.writeByte=function(e){if(r&&this.pos>=this.buffer.length){var t=new Buffer(this.buffer.length*2);this.buffer.copy(t);this.buffer=t}this.buffer[this.pos++]=e};t.getBuffer=function(){if(this.pos!==this.buffer.length){if(!r)throw new TypeError("outputsize does not match decoded input");var e=new Buffer(this.pos);this.buffer.copy(e,0,0,this.pos);this.buffer=e}return this.buffer};t._coerced=true;return t};Bunzip.Err=v;Bunzip.decode=function(e,t,r){var i=coerceInputStream(e);var n=coerceOutputStream(t);var o=new Bunzip(i,n);while(true){if("eof"in i&&i.eof())break;if(o._init_block()){o._read_bunzip()}else{var a=o.reader.read(32)>>>0;if(a!==o.streamCRC){_throw(v.DATA_ERROR,"Bad stream CRC "+"(got "+o.streamCRC.toString(16)+" expected "+a.toString(16)+")")}if(r&&"eof"in i&&!i.eof()){o._start_bunzip(i,n)}else break}}if("getBuffer"in n)return n.getBuffer()};Bunzip.decodeBlock=function(e,t,r){var i=coerceInputStream(e);var n=coerceOutputStream(r);var a=new Bunzip(i,n);a.reader.seek(t);var s=a._get_next_block();if(s){a.blockCRC=new o;a.writeCopies=0;a._read_bunzip()}if("getBuffer"in n)return n.getBuffer()};Bunzip.table=function(e,t,r){var i=new n;i.delegate=coerceInputStream(e);i.pos=0;i.readByte=function(){this.pos++;return this.delegate.readByte()};if(i.delegate.eof){i.eof=i.delegate.eof.bind(i.delegate)}var o=new n;o.pos=0;o.writeByte=function(){this.pos++};var a=new Bunzip(i,o);var s=a.dbufSize;while(true){if("eof"in i&&i.eof())break;var u=i.pos*8+a.reader.bitOffset;if(a.reader.hasByte){u-=8}if(a._init_block()){var l=o.pos;a._read_bunzip();t(u,o.pos-l)}else{var c=a.reader.read(32);if(r&&"eof"in i&&!i.eof()){a._start_bunzip(i,o);console.assert(a.dbufSize===s,"shouldn't change block size within multistream file")}else break}}};Bunzip.Stream=n;Bunzip.version=a.version;Bunzip.license=a.license;e.exports=Bunzip},4290:function(e){var Stream=function(){};Stream.prototype.readByte=function(){throw new Error("abstract method readByte() not implemented")};Stream.prototype.read=function(e,t,r){var i=0;while(i<r){var n=this.readByte();if(n<0){return i===0?-1:i}e[t++]=n;i++}return i};Stream.prototype.seek=function(e){throw new Error("abstract method seek() not implemented")};Stream.prototype.writeByte=function(e){throw new Error("abstract method readByte() not implemented")};Stream.prototype.write=function(e,t,r){var i;for(i=0;i<r;i++){this.writeByte(e[t++])}return r};Stream.prototype.flush=function(){};e.exports=Stream},5723:function(e,t,r){"use strict";
13
13
  /*!
@@ -0,0 +1,68 @@
1
+ 'use strict';
2
+
3
+ var processFn = function (fn, P, opts) {
4
+ return function () {
5
+ var that = this;
6
+ var args = new Array(arguments.length);
7
+
8
+ for (var i = 0; i < arguments.length; i++) {
9
+ args[i] = arguments[i];
10
+ }
11
+
12
+ return new P(function (resolve, reject) {
13
+ args.push(function (err, result) {
14
+ if (err) {
15
+ reject(err);
16
+ } else if (opts.multiArgs) {
17
+ var results = new Array(arguments.length - 1);
18
+
19
+ for (var i = 1; i < arguments.length; i++) {
20
+ results[i - 1] = arguments[i];
21
+ }
22
+
23
+ resolve(results);
24
+ } else {
25
+ resolve(result);
26
+ }
27
+ });
28
+
29
+ fn.apply(that, args);
30
+ });
31
+ };
32
+ };
33
+
34
+ var pify = module.exports = function (obj, P, opts) {
35
+ if (typeof P !== 'function') {
36
+ opts = P;
37
+ P = Promise;
38
+ }
39
+
40
+ opts = opts || {};
41
+ opts.exclude = opts.exclude || [/.+Sync$/];
42
+
43
+ var filter = function (key) {
44
+ var match = function (pattern) {
45
+ return typeof pattern === 'string' ? key === pattern : pattern.test(key);
46
+ };
47
+
48
+ return opts.include ? opts.include.some(match) : !opts.exclude.some(match);
49
+ };
50
+
51
+ var ret = typeof obj === 'function' ? function () {
52
+ if (opts.excludeMain) {
53
+ return obj.apply(this, arguments);
54
+ }
55
+
56
+ return processFn(obj, P, opts).apply(this, arguments);
57
+ } : {};
58
+
59
+ return Object.keys(obj).reduce(function (ret, key) {
60
+ var x = obj[key];
61
+
62
+ ret[key] = typeof x === 'function' && filter(key) ? processFn(x, P, opts) : x;
63
+
64
+ return ret;
65
+ }, ret);
66
+ };
67
+
68
+ pify.all = pify;
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,48 @@
1
+ {
2
+ "name": "pify",
3
+ "version": "2.3.0",
4
+ "description": "Promisify a callback-style function",
5
+ "license": "MIT",
6
+ "repository": "sindresorhus/pify",
7
+ "author": {
8
+ "name": "Sindre Sorhus",
9
+ "email": "sindresorhus@gmail.com",
10
+ "url": "sindresorhus.com"
11
+ },
12
+ "engines": {
13
+ "node": ">=0.10.0"
14
+ },
15
+ "scripts": {
16
+ "test": "xo && ava && npm run optimization-test",
17
+ "optimization-test": "node --allow-natives-syntax optimization-test.js"
18
+ },
19
+ "files": [
20
+ "index.js"
21
+ ],
22
+ "keywords": [
23
+ "promise",
24
+ "promises",
25
+ "promisify",
26
+ "denodify",
27
+ "denodeify",
28
+ "callback",
29
+ "cb",
30
+ "node",
31
+ "then",
32
+ "thenify",
33
+ "convert",
34
+ "transform",
35
+ "wrap",
36
+ "wrapper",
37
+ "bind",
38
+ "to",
39
+ "async",
40
+ "es2015"
41
+ ],
42
+ "devDependencies": {
43
+ "ava": "*",
44
+ "pinkie-promise": "^1.0.0",
45
+ "v8-natives": "0.0.2",
46
+ "xo": "*"
47
+ }
48
+ }
@@ -1 +1 @@
1
- {"name":"decompress","version":"4.2.1","description":"Extracting archives made easy","license":"MIT","repository":"kevva/decompress","author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"github.com/kevva"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["bz2","bzip2","decompress","extract","tar","tar.bz","tar.gz","zip","unzip"],"dependencies":{"decompress-tar":"^4.0.0","decompress-tarbz2":"^4.0.0","decompress-targz":"^4.0.0","decompress-unzip":"^4.0.1","graceful-fs":"^4.1.10","make-dir":"^1.0.0","pify":"^2.3.0","strip-dirs":"^2.0.0"},"devDependencies":{"ava":"*","esm":"^3.2.25","is-jpg":"^1.0.0","path-exists":"^3.0.0","pify":"^2.3.0","rimraf":"^3.0.2","xo":"*"},"ava":{"require":["esm"]},"xo":{"rules":{"promise/prefer-await-to-then":"off"}},"_lastModified":"2026-02-09T15:04:15.738Z"}
1
+ {"name":"decompress","version":"4.2.1","description":"Extracting archives made easy","license":"MIT","repository":"kevva/decompress","author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"github.com/kevva"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["bz2","bzip2","decompress","extract","tar","tar.bz","tar.gz","zip","unzip"],"dependencies":{"decompress-tar":"^4.0.0","decompress-tarbz2":"^4.0.0","decompress-targz":"^4.0.0","decompress-unzip":"^4.0.1","graceful-fs":"^4.1.10","make-dir":"^1.0.0","pify":"^2.3.0","strip-dirs":"^2.0.0"},"devDependencies":{"ava":"*","esm":"^3.2.25","is-jpg":"^1.0.0","path-exists":"^3.0.0","pify":"^2.3.0","rimraf":"^3.0.2","xo":"*"},"ava":{"require":["esm"]},"xo":{"rules":{"promise/prefer-await-to-then":"off"}},"_lastModified":"2026-02-13T09:37:14.504Z"}
@@ -1 +1 @@
1
- {"name":"fs-extra","version":"9.1.0","description":"fs-extra contains methods that aren't included in the vanilla Node.js fs package. Such as recursive mkdir, copy, and remove.","engines":{"node":">=10"},"homepage":"https://github.com/jprichardson/node-fs-extra","repository":{"type":"git","url":"https://github.com/jprichardson/node-fs-extra"},"keywords":["fs","file","file system","copy","directory","extra","mkdirp","mkdir","mkdirs","recursive","json","read","write","extra","delete","remove","touch","create","text","output","move","promise"],"author":"JP Richardson <jprichardson@gmail.com>","license":"MIT","dependencies":{"at-least-node":"^1.0.0","graceful-fs":"^4.2.0","jsonfile":"^6.0.1","universalify":"^2.0.0"},"devDependencies":{"coveralls":"^3.0.0","klaw":"^2.1.1","klaw-sync":"^3.0.2","minimist":"^1.1.1","mocha":"^5.0.5","nyc":"^15.0.0","proxyquire":"^2.0.1","read-dir-files":"^0.1.1","standard":"^14.1.0"},"main":"./lib/index.js","files":["lib/","!lib/**/__tests__/"],"scripts":{"full-ci":"npm run lint && npm run coverage","coverage":"nyc -r lcovonly npm run unit","coveralls":"coveralls < coverage/lcov.info","lint":"standard","test-find":"find ./lib/**/__tests__ -name *.test.js | xargs mocha","test":"npm run lint && npm run unit","unit":"node test.js"},"_lastModified":"2026-02-09T15:04:14.406Z"}
1
+ {"name":"fs-extra","version":"9.1.0","description":"fs-extra contains methods that aren't included in the vanilla Node.js fs package. Such as recursive mkdir, copy, and remove.","engines":{"node":">=10"},"homepage":"https://github.com/jprichardson/node-fs-extra","repository":{"type":"git","url":"https://github.com/jprichardson/node-fs-extra"},"keywords":["fs","file","file system","copy","directory","extra","mkdirp","mkdir","mkdirs","recursive","json","read","write","extra","delete","remove","touch","create","text","output","move","promise"],"author":"JP Richardson <jprichardson@gmail.com>","license":"MIT","dependencies":{"at-least-node":"^1.0.0","graceful-fs":"^4.2.0","jsonfile":"^6.0.1","universalify":"^2.0.0"},"devDependencies":{"coveralls":"^3.0.0","klaw":"^2.1.1","klaw-sync":"^3.0.2","minimist":"^1.1.1","mocha":"^5.0.5","nyc":"^15.0.0","proxyquire":"^2.0.1","read-dir-files":"^0.1.1","standard":"^14.1.0"},"main":"./lib/index.js","files":["lib/","!lib/**/__tests__/"],"scripts":{"full-ci":"npm run lint && npm run coverage","coverage":"nyc -r lcovonly npm run unit","coveralls":"coveralls < coverage/lcov.info","lint":"standard","test-find":"find ./lib/**/__tests__ -name *.test.js | xargs mocha","test":"npm run lint && npm run unit","unit":"node test.js"},"_lastModified":"2026-02-13T09:37:13.180Z"}
@@ -1 +1 @@
1
- {"name":"moment","version":"2.29.4","description":"Parse, validate, manipulate, and display dates","homepage":"https://momentjs.com","author":"Iskren Ivov Chernev <iskren.chernev@gmail.com> (https://github.com/ichernev)","contributors":["Tim Wood <washwithcare@gmail.com> (http://timwoodcreates.com/)","Rocky Meza (http://rockymeza.com)","Matt Johnson <mj1856@hotmail.com> (http://codeofmatt.com)","Isaac Cambron <isaac@isaaccambron.com> (http://isaaccambron.com)","Andre Polykanine <andre@oire.org> (https://github.com/oire)"],"keywords":["moment","date","time","parse","format","validate","i18n","l10n","ender"],"main":"./moment.js","jsnext:main":"./dist/moment.js","typings":"./moment.d.ts","typesVersions":{">=3.1":{"*":["ts3.1-typings/*"]}},"engines":{"node":"*"},"repository":{"type":"git","url":"https://github.com/moment/moment.git"},"bugs":{"url":"https://github.com/moment/moment/issues"},"license":"MIT","devDependencies":{"benchmark":"latest","coveralls":"latest","cross-env":"^6.0.3","es6-promise":"latest","eslint":"~6","grunt":"latest","grunt-benchmark":"latest","grunt-cli":"latest","grunt-contrib-clean":"latest","grunt-contrib-concat":"latest","grunt-contrib-copy":"latest","grunt-contrib-uglify":"latest","grunt-contrib-watch":"latest","grunt-env":"latest","grunt-exec":"latest","grunt-karma":"latest","grunt-nuget":"latest","grunt-string-replace":"latest","karma":"latest","karma-chrome-launcher":"latest","karma-firefox-launcher":"latest","karma-qunit":"latest","karma-sauce-launcher":"4.1.4","load-grunt-tasks":"latest","lodash":">=4.17.19","node-qunit":"latest","nyc":"latest","prettier":"latest","qunit":"^2.10.0","rollup":"2.17.1","typescript":"^1.8.10","typescript3":"npm:typescript@^3.1.6","uglify-js":"latest"},"ender":"./ender.js","dojoBuild":"package.js","jspm":{"files":["moment.js","moment.d.ts","locale"],"map":{"moment":"./moment"},"buildConfig":{"uglify":true}},"scripts":{"ts3.1-typescript-test":"cross-env node_modules/typescript3/bin/tsc --project ts3.1-typing-tests","typescript-test":"cross-env node_modules/typescript/bin/tsc --project typing-tests","test":"grunt test","eslint":"eslint Gruntfile.js tasks src","prettier-check":"prettier --check Gruntfile.js tasks src","prettier-fmt":"prettier --write Gruntfile.js tasks src","coverage":"nyc npm test && nyc report","coveralls":"nyc npm test && nyc report --reporter=text-lcov | coveralls"},"spm":{"main":"moment.js","output":["locale/*.js"]},"_lastModified":"2026-02-09T15:04:14.954Z"}
1
+ {"name":"moment","version":"2.29.4","description":"Parse, validate, manipulate, and display dates","homepage":"https://momentjs.com","author":"Iskren Ivov Chernev <iskren.chernev@gmail.com> (https://github.com/ichernev)","contributors":["Tim Wood <washwithcare@gmail.com> (http://timwoodcreates.com/)","Rocky Meza (http://rockymeza.com)","Matt Johnson <mj1856@hotmail.com> (http://codeofmatt.com)","Isaac Cambron <isaac@isaaccambron.com> (http://isaaccambron.com)","Andre Polykanine <andre@oire.org> (https://github.com/oire)"],"keywords":["moment","date","time","parse","format","validate","i18n","l10n","ender"],"main":"./moment.js","jsnext:main":"./dist/moment.js","typings":"./moment.d.ts","typesVersions":{">=3.1":{"*":["ts3.1-typings/*"]}},"engines":{"node":"*"},"repository":{"type":"git","url":"https://github.com/moment/moment.git"},"bugs":{"url":"https://github.com/moment/moment/issues"},"license":"MIT","devDependencies":{"benchmark":"latest","coveralls":"latest","cross-env":"^6.0.3","es6-promise":"latest","eslint":"~6","grunt":"latest","grunt-benchmark":"latest","grunt-cli":"latest","grunt-contrib-clean":"latest","grunt-contrib-concat":"latest","grunt-contrib-copy":"latest","grunt-contrib-uglify":"latest","grunt-contrib-watch":"latest","grunt-env":"latest","grunt-exec":"latest","grunt-karma":"latest","grunt-nuget":"latest","grunt-string-replace":"latest","karma":"latest","karma-chrome-launcher":"latest","karma-firefox-launcher":"latest","karma-qunit":"latest","karma-sauce-launcher":"4.1.4","load-grunt-tasks":"latest","lodash":">=4.17.19","node-qunit":"latest","nyc":"latest","prettier":"latest","qunit":"^2.10.0","rollup":"2.17.1","typescript":"^1.8.10","typescript3":"npm:typescript@^3.1.6","uglify-js":"latest"},"ender":"./ender.js","dojoBuild":"package.js","jspm":{"files":["moment.js","moment.d.ts","locale"],"map":{"moment":"./moment"},"buildConfig":{"uglify":true}},"scripts":{"ts3.1-typescript-test":"cross-env node_modules/typescript3/bin/tsc --project ts3.1-typing-tests","typescript-test":"cross-env node_modules/typescript/bin/tsc --project typing-tests","test":"grunt test","eslint":"eslint Gruntfile.js tasks src","prettier-check":"prettier --check Gruntfile.js tasks src","prettier-fmt":"prettier --write Gruntfile.js tasks src","coverage":"nyc npm test && nyc report","coveralls":"nyc npm test && nyc report --reporter=text-lcov | coveralls"},"spm":{"main":"moment.js","output":["locale/*.js"]},"_lastModified":"2026-02-13T09:37:13.739Z"}
@@ -1 +1 @@
1
- {"name":"semver","version":"7.7.1","description":"The semantic version parser used by npm.","main":"index.js","scripts":{"test":"tap","snap":"tap","lint":"npm run eslint","postlint":"template-oss-check","lintfix":"npm run eslint -- --fix","posttest":"npm run lint","template-oss-apply":"template-oss-apply --force","eslint":"eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\""},"devDependencies":{"@npmcli/eslint-config":"^5.0.0","@npmcli/template-oss":"4.23.4","benchmark":"^2.1.4","tap":"^16.0.0"},"license":"ISC","repository":{"type":"git","url":"git+https://github.com/npm/node-semver.git"},"bin":{"semver":"bin/semver.js"},"files":["bin/","lib/","classes/","functions/","internal/","ranges/","index.js","preload.js","range.bnf"],"tap":{"timeout":30,"coverage-map":"map.js","nyc-arg":["--exclude","tap-snapshots/**"]},"engines":{"node":">=10"},"author":"GitHub Inc.","templateOSS":{"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten.","version":"4.23.4","engines":">=10","distPaths":["classes/","functions/","internal/","ranges/","index.js","preload.js","range.bnf"],"allowPaths":["/classes/","/functions/","/internal/","/ranges/","/index.js","/preload.js","/range.bnf","/benchmarks"],"publish":"true"},"_lastModified":"2026-02-09T15:04:16.223Z"}
1
+ {"name":"semver","version":"7.7.1","description":"The semantic version parser used by npm.","main":"index.js","scripts":{"test":"tap","snap":"tap","lint":"npm run eslint","postlint":"template-oss-check","lintfix":"npm run eslint -- --fix","posttest":"npm run lint","template-oss-apply":"template-oss-apply --force","eslint":"eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\""},"devDependencies":{"@npmcli/eslint-config":"^5.0.0","@npmcli/template-oss":"4.23.4","benchmark":"^2.1.4","tap":"^16.0.0"},"license":"ISC","repository":{"type":"git","url":"git+https://github.com/npm/node-semver.git"},"bin":{"semver":"bin/semver.js"},"files":["bin/","lib/","classes/","functions/","internal/","ranges/","index.js","preload.js","range.bnf"],"tap":{"timeout":30,"coverage-map":"map.js","nyc-arg":["--exclude","tap-snapshots/**"]},"engines":{"node":">=10"},"author":"GitHub Inc.","templateOSS":{"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten.","version":"4.23.4","engines":">=10","distPaths":["classes/","functions/","internal/","ranges/","index.js","preload.js","range.bnf"],"allowPaths":["/classes/","/functions/","/internal/","/ranges/","/index.js","/preload.js","/range.bnf","/benchmarks"],"publish":"true"},"_lastModified":"2026-02-13T09:37:14.988Z"}
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "description": "Backup and restore applications for scenarios such as application replication, migration, and upgrades.",
7
7
  "description.ru-RU": "Резервное копирование и восстановление приложений для задач репликации, миграции и обновления.",
8
8
  "description.zh-CN": "备份和还原应用,可用于应用的复制、迁移、升级等场景。",
9
- "version": "1.9.45",
9
+ "version": "1.9.47",
10
10
  "license": "AGPL-3.0",
11
11
  "main": "./dist/server/index.js",
12
12
  "homepage": "https://docs.nocobase.com/handbook/backup-restore",
@@ -44,5 +44,5 @@
44
44
  "keywords": [
45
45
  "System management"
46
46
  ],
47
- "gitHead": "8342b68c6802281d0394ff90519efc35adefd92d"
47
+ "gitHead": "bc3787003d581cc1453444de53d23c7c41b862d8"
48
48
  }