@nocobase/plugin-backup-restore 1.6.20 → 1.6.22

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.
Files changed (159) hide show
  1. package/dist/client/d0c15e9119b8e3d3.js +10 -0
  2. package/dist/client/index.js +1 -1
  3. package/dist/externalVersion.js +5 -5
  4. package/dist/node_modules/@hapi/topo/package.json +1 -1
  5. package/dist/node_modules/archiver/index.js +2 -2
  6. package/dist/node_modules/archiver/node_modules/async/all.js +119 -0
  7. package/dist/node_modules/archiver/node_modules/async/allLimit.js +46 -0
  8. package/dist/node_modules/archiver/node_modules/async/allSeries.js +45 -0
  9. package/dist/node_modules/archiver/node_modules/async/any.js +122 -0
  10. package/dist/node_modules/archiver/node_modules/async/anyLimit.js +47 -0
  11. package/dist/node_modules/archiver/node_modules/async/anySeries.js +46 -0
  12. package/dist/node_modules/archiver/node_modules/async/apply.js +11 -0
  13. package/dist/node_modules/archiver/node_modules/async/applyEach.js +57 -0
  14. package/dist/node_modules/archiver/node_modules/async/applyEachSeries.js +37 -0
  15. package/dist/node_modules/archiver/node_modules/async/asyncify.js +118 -0
  16. package/dist/node_modules/archiver/node_modules/async/auto.js +333 -0
  17. package/dist/node_modules/archiver/node_modules/async/autoInject.js +182 -0
  18. package/dist/node_modules/archiver/node_modules/async/bower.json +17 -0
  19. package/dist/node_modules/archiver/node_modules/async/cargo.js +63 -0
  20. package/dist/node_modules/archiver/node_modules/async/cargoQueue.js +71 -0
  21. package/dist/node_modules/archiver/node_modules/async/compose.js +55 -0
  22. package/dist/node_modules/archiver/node_modules/async/concat.js +115 -0
  23. package/dist/node_modules/archiver/node_modules/async/concatLimit.js +60 -0
  24. package/dist/node_modules/archiver/node_modules/async/concatSeries.js +41 -0
  25. package/dist/node_modules/archiver/node_modules/async/constant.js +14 -0
  26. package/dist/node_modules/archiver/node_modules/async/detect.js +96 -0
  27. package/dist/node_modules/archiver/node_modules/async/detectLimit.js +48 -0
  28. package/dist/node_modules/archiver/node_modules/async/detectSeries.js +47 -0
  29. package/dist/node_modules/archiver/node_modules/async/dir.js +43 -0
  30. package/dist/node_modules/archiver/node_modules/async/dist/async.js +6062 -0
  31. package/dist/node_modules/archiver/node_modules/async/dist/async.min.js +1 -0
  32. package/dist/node_modules/archiver/node_modules/async/doDuring.js +68 -0
  33. package/dist/node_modules/archiver/node_modules/async/doUntil.js +46 -0
  34. package/dist/node_modules/archiver/node_modules/async/doWhilst.js +68 -0
  35. package/dist/node_modules/archiver/node_modules/async/during.js +78 -0
  36. package/dist/node_modules/archiver/node_modules/async/each.js +129 -0
  37. package/dist/node_modules/archiver/node_modules/async/eachLimit.js +50 -0
  38. package/dist/node_modules/archiver/node_modules/async/eachOf.js +185 -0
  39. package/dist/node_modules/archiver/node_modules/async/eachOfLimit.js +47 -0
  40. package/dist/node_modules/archiver/node_modules/async/eachOfSeries.js +39 -0
  41. package/dist/node_modules/archiver/node_modules/async/eachSeries.js +44 -0
  42. package/dist/node_modules/archiver/node_modules/async/ensureAsync.js +67 -0
  43. package/dist/node_modules/archiver/node_modules/async/every.js +119 -0
  44. package/dist/node_modules/archiver/node_modules/async/everyLimit.js +46 -0
  45. package/dist/node_modules/archiver/node_modules/async/everySeries.js +45 -0
  46. package/dist/node_modules/archiver/node_modules/async/filter.js +93 -0
  47. package/dist/node_modules/archiver/node_modules/async/filterLimit.js +45 -0
  48. package/dist/node_modules/archiver/node_modules/async/filterSeries.js +43 -0
  49. package/dist/node_modules/archiver/node_modules/async/find.js +96 -0
  50. package/dist/node_modules/archiver/node_modules/async/findLimit.js +48 -0
  51. package/dist/node_modules/archiver/node_modules/async/findSeries.js +47 -0
  52. package/dist/node_modules/archiver/node_modules/async/flatMap.js +115 -0
  53. package/dist/node_modules/archiver/node_modules/async/flatMapLimit.js +60 -0
  54. package/dist/node_modules/archiver/node_modules/async/flatMapSeries.js +41 -0
  55. package/dist/node_modules/archiver/node_modules/async/foldl.js +153 -0
  56. package/dist/node_modules/archiver/node_modules/async/foldr.js +41 -0
  57. package/dist/node_modules/archiver/node_modules/async/forEach.js +129 -0
  58. package/dist/node_modules/archiver/node_modules/async/forEachLimit.js +50 -0
  59. package/dist/node_modules/archiver/node_modules/async/forEachOf.js +185 -0
  60. package/dist/node_modules/archiver/node_modules/async/forEachOfLimit.js +47 -0
  61. package/dist/node_modules/archiver/node_modules/async/forEachOfSeries.js +39 -0
  62. package/dist/node_modules/archiver/node_modules/async/forEachSeries.js +44 -0
  63. package/dist/node_modules/archiver/node_modules/async/forever.js +68 -0
  64. package/dist/node_modules/archiver/node_modules/async/groupBy.js +108 -0
  65. package/dist/node_modules/archiver/node_modules/async/groupByLimit.js +71 -0
  66. package/dist/node_modules/archiver/node_modules/async/groupBySeries.js +36 -0
  67. package/dist/node_modules/archiver/node_modules/async/index.js +588 -0
  68. package/dist/node_modules/archiver/node_modules/async/inject.js +153 -0
  69. package/dist/node_modules/archiver/node_modules/async/internal/DoublyLinkedList.js +92 -0
  70. package/dist/node_modules/archiver/node_modules/async/internal/Heap.js +120 -0
  71. package/dist/node_modules/archiver/node_modules/async/internal/applyEach.js +29 -0
  72. package/dist/node_modules/archiver/node_modules/async/internal/asyncEachOfLimit.js +75 -0
  73. package/dist/node_modules/archiver/node_modules/async/internal/awaitify.js +28 -0
  74. package/dist/node_modules/archiver/node_modules/async/internal/breakLoop.js +10 -0
  75. package/dist/node_modules/archiver/node_modules/async/internal/consoleFunc.js +31 -0
  76. package/dist/node_modules/archiver/node_modules/async/internal/createTester.js +40 -0
  77. package/dist/node_modules/archiver/node_modules/async/internal/eachOfLimit.js +90 -0
  78. package/dist/node_modules/archiver/node_modules/async/internal/filter.js +55 -0
  79. package/dist/node_modules/archiver/node_modules/async/internal/getIterator.js +11 -0
  80. package/dist/node_modules/archiver/node_modules/async/internal/initialParams.js +14 -0
  81. package/dist/node_modules/archiver/node_modules/async/internal/isArrayLike.js +10 -0
  82. package/dist/node_modules/archiver/node_modules/async/internal/iterator.js +57 -0
  83. package/dist/node_modules/archiver/node_modules/async/internal/map.js +30 -0
  84. package/dist/node_modules/archiver/node_modules/async/internal/once.js +17 -0
  85. package/dist/node_modules/archiver/node_modules/async/internal/onlyOnce.js +15 -0
  86. package/dist/node_modules/archiver/node_modules/async/internal/parallel.js +34 -0
  87. package/dist/node_modules/archiver/node_modules/async/internal/promiseCallback.js +23 -0
  88. package/dist/node_modules/archiver/node_modules/async/internal/queue.js +294 -0
  89. package/dist/node_modules/archiver/node_modules/async/internal/range.js +14 -0
  90. package/dist/node_modules/archiver/node_modules/async/internal/reject.js +26 -0
  91. package/dist/node_modules/archiver/node_modules/async/internal/setImmediate.js +34 -0
  92. package/dist/node_modules/archiver/node_modules/async/internal/withoutIndex.js +10 -0
  93. package/dist/node_modules/archiver/node_modules/async/internal/wrapAsync.js +34 -0
  94. package/dist/node_modules/archiver/node_modules/async/log.js +41 -0
  95. package/dist/node_modules/archiver/node_modules/async/map.js +142 -0
  96. package/dist/node_modules/archiver/node_modules/async/mapLimit.js +45 -0
  97. package/dist/node_modules/archiver/node_modules/async/mapSeries.js +44 -0
  98. package/dist/node_modules/archiver/node_modules/async/mapValues.js +152 -0
  99. package/dist/node_modules/archiver/node_modules/async/mapValuesLimit.js +61 -0
  100. package/dist/node_modules/archiver/node_modules/async/mapValuesSeries.js +37 -0
  101. package/dist/node_modules/archiver/node_modules/async/memoize.js +91 -0
  102. package/dist/node_modules/archiver/node_modules/async/nextTick.js +52 -0
  103. package/dist/node_modules/archiver/node_modules/async/package.json +75 -0
  104. package/dist/node_modules/archiver/node_modules/async/parallel.js +180 -0
  105. package/dist/node_modules/archiver/node_modules/async/parallelLimit.js +41 -0
  106. package/dist/node_modules/archiver/node_modules/async/priorityQueue.js +60 -0
  107. package/dist/node_modules/archiver/node_modules/async/queue.js +24 -0
  108. package/dist/node_modules/archiver/node_modules/async/race.js +67 -0
  109. package/dist/node_modules/archiver/node_modules/async/reduce.js +153 -0
  110. package/dist/node_modules/archiver/node_modules/async/reduceRight.js +41 -0
  111. package/dist/node_modules/archiver/node_modules/async/reflect.js +78 -0
  112. package/dist/node_modules/archiver/node_modules/async/reflectAll.js +93 -0
  113. package/dist/node_modules/archiver/node_modules/async/reject.js +87 -0
  114. package/dist/node_modules/archiver/node_modules/async/rejectLimit.js +45 -0
  115. package/dist/node_modules/archiver/node_modules/async/rejectSeries.js +43 -0
  116. package/dist/node_modules/archiver/node_modules/async/retry.js +159 -0
  117. package/dist/node_modules/archiver/node_modules/async/retryable.js +77 -0
  118. package/dist/node_modules/archiver/node_modules/async/select.js +93 -0
  119. package/dist/node_modules/archiver/node_modules/async/selectLimit.js +45 -0
  120. package/dist/node_modules/archiver/node_modules/async/selectSeries.js +43 -0
  121. package/dist/node_modules/archiver/node_modules/async/seq.js +79 -0
  122. package/dist/node_modules/archiver/node_modules/async/series.js +186 -0
  123. package/dist/node_modules/archiver/node_modules/async/setImmediate.js +45 -0
  124. package/dist/node_modules/archiver/node_modules/async/some.js +122 -0
  125. package/dist/node_modules/archiver/node_modules/async/someLimit.js +47 -0
  126. package/dist/node_modules/archiver/node_modules/async/someSeries.js +46 -0
  127. package/dist/node_modules/archiver/node_modules/async/sortBy.js +190 -0
  128. package/dist/node_modules/archiver/node_modules/async/timeout.js +89 -0
  129. package/dist/node_modules/archiver/node_modules/async/times.js +50 -0
  130. package/dist/node_modules/archiver/node_modules/async/timesLimit.js +43 -0
  131. package/dist/node_modules/archiver/node_modules/async/timesSeries.js +32 -0
  132. package/dist/node_modules/archiver/node_modules/async/transform.js +173 -0
  133. package/dist/node_modules/archiver/node_modules/async/tryEach.js +78 -0
  134. package/dist/node_modules/archiver/node_modules/async/unmemoize.js +25 -0
  135. package/dist/node_modules/archiver/node_modules/async/until.js +61 -0
  136. package/dist/node_modules/archiver/node_modules/async/waterfall.js +105 -0
  137. package/dist/node_modules/archiver/node_modules/async/whilst.js +78 -0
  138. package/dist/node_modules/archiver/node_modules/async/wrapSync.js +118 -0
  139. package/dist/node_modules/archiver/package.json +1 -1
  140. package/dist/node_modules/decompress/index.js +2 -2
  141. package/dist/node_modules/decompress/package.json +1 -1
  142. package/dist/node_modules/mkdirp/package.json +1 -1
  143. package/dist/node_modules/moment/package.json +1 -1
  144. package/dist/node_modules/semver/bin/semver.js +7 -15
  145. package/dist/node_modules/semver/classes/range.js +28 -13
  146. package/dist/node_modules/semver/classes/semver.js +23 -7
  147. package/dist/node_modules/semver/functions/diff.js +5 -12
  148. package/dist/node_modules/semver/index.js +1 -1
  149. package/dist/node_modules/semver/internal/lrucache.js +40 -0
  150. package/dist/node_modules/semver/internal/re.js +2 -0
  151. package/dist/node_modules/semver/package.json +1 -1
  152. package/package.json +4 -4
  153. package/dist/client/04e68bac2ed0170d.js +0 -10
  154. package/dist/node_modules/decompress/node_modules/make-dir/index.js +0 -85
  155. package/dist/node_modules/decompress/node_modules/make-dir/license +0 -9
  156. package/dist/node_modules/decompress/node_modules/make-dir/node_modules/pify/index.js +0 -84
  157. package/dist/node_modules/decompress/node_modules/make-dir/node_modules/pify/license +0 -9
  158. package/dist/node_modules/decompress/node_modules/make-dir/node_modules/pify/package.json +0 -51
  159. package/dist/node_modules/decompress/node_modules/make-dir/package.json +0 -54
@@ -1,8 +1,8 @@
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(8923);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)))}},8923:function(e,t,r){"use strict";const i=r(7147);const n=r(1017);const o=r(17);const a={mode:511&~process.umask(),fs:i};const checkPath=e=>{if(process.platform==="win32"){const t=/[<>:"|?*]/.test(e.replace(n.parse(e).root,""));if(t){const t=new Error(`Path contains invalid characters: ${e}`);t.code="EINVAL";throw t}}};e.exports=(e,t)=>Promise.resolve().then((()=>{checkPath(e);t=Object.assign({},a,t);const r=o(t.fs.mkdir);const i=o(t.fs.stat);const make=e=>r(e,t.mode).then((()=>e)).catch((t=>{if(t.code==="ENOENT"){if(t.message.includes("null bytes")||n.dirname(e)===e){throw t}return make(n.dirname(e)).then((()=>make(e)))}return i(e).then((t=>t.isDirectory()?e:Promise.reject())).catch((()=>{throw t}))}));return make(n.resolve(e))}));e.exports.sync=(e,t)=>{checkPath(e);t=Object.assign({},a,t);const make=e=>{try{t.fs.mkdirSync(e,t.mode)}catch(r){if(r.code==="ENOENT"){if(r.message.includes("null bytes")||n.dirname(e)===e){throw r}make(n.dirname(e));return make(e)}try{if(!t.fs.statSync(e).isDirectory()){throw new Error("The path is not a directory")}}catch(e){throw r}}return e};return make(n.resolve(e))}},17:function(e){"use strict";const processFn=(e,t)=>function(){const r=t.promiseModule;const i=new Array(arguments.length);for(let e=0;e<arguments.length;e++){i[e]=arguments[e]}return new r(((r,n)=>{if(t.errorFirst){i.push((function(e,i){if(t.multiArgs){const t=new Array(arguments.length-1);for(let e=1;e<arguments.length;e++){t[e-1]=arguments[e]}if(e){t.unshift(e);n(t)}else{r(t)}}else if(e){n(e)}else{r(i)}}))}else{i.push((function(e){if(t.multiArgs){const e=new Array(arguments.length-1);for(let t=0;t<arguments.length;t++){e[t]=arguments[t]}r(e)}else{r(e)}}))}e.apply(this,i)}))};e.exports=(e,t)=>{t=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:true,promiseModule:Promise},t);const filter=e=>{const match=t=>typeof t==="string"?e===t:t.test(e);return t.include?t.include.some(match):!t.exclude.some(match)};let r;if(typeof e==="function"){r=function(){if(t.excludeMain){return e.apply(this,arguments)}return processFn(e,t).apply(this,arguments)}}else{r=Object.create(Object.getPrototypeOf(e))}for(const i in e){const n=e[i];r[i]=typeof n==="function"&&filter(i)?processFn(n,t):n}return 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(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";
2
2
  /*!
3
3
  * is-natural-number.js | MIT (c) Shinnosuke Watanabe
4
4
  * https://github.com/shinnn/is-natural-number.js
5
- */e.exports=function isNaturalNumber(e,t){if(t){if(typeof t!=="object"){throw new TypeError(String(t)+" is not an object. Expected an object that has boolean `includeZero` property.")}if("includeZero"in t){if(typeof t.includeZero!=="boolean"){throw new TypeError(String(t.includeZero)+" is neither true nor false. `includeZero` option must be a Boolean value.")}if(t.includeZero&&e===0){return true}}}return Number.isSafeInteger(e)&&e>=1}},1554:function(e){"use strict";var t=e.exports=function(e){return e!==null&&typeof e==="object"&&typeof e.pipe==="function"};t.writable=function(e){return t(e)&&e.writable!==false&&typeof e._write==="function"&&typeof e._writableState==="object"};t.readable=function(e){return t(e)&&e.readable!==false&&typeof e._read==="function"&&typeof e._readableState==="object"};t.duplex=function(e){return t.writable(e)&&t.readable(e)};t.transform=function(e){return t.duplex(e)&&typeof e._transform==="function"&&typeof e._transformState==="object"}},7426:function(e){"use strict";
5
+ */e.exports=function isNaturalNumber(e,t){if(t){if(typeof t!=="object"){throw new TypeError(String(t)+" is not an object. Expected an object that has boolean `includeZero` property.")}if("includeZero"in t){if(typeof t.includeZero!=="boolean"){throw new TypeError(String(t.includeZero)+" is neither true nor false. `includeZero` option must be a Boolean value.")}if(t.includeZero&&e===0){return true}}}return Number.isSafeInteger(e)&&e>=1}},1554:function(e){"use strict";var t=e.exports=function(e){return e!==null&&typeof e==="object"&&typeof e.pipe==="function"};t.writable=function(e){return t(e)&&e.writable!==false&&typeof e._write==="function"&&typeof e._writableState==="object"};t.readable=function(e){return t(e)&&e.readable!==false&&typeof e._read==="function"&&typeof e._readableState==="object"};t.duplex=function(e){return t.writable(e)&&t.readable(e)};t.transform=function(e){return t.duplex(e)&&typeof e._transform==="function"&&typeof e._transformState==="object"}},9126:function(e,t,r){"use strict";const i=r(7147);const n=r(1017);const o=r(6250);const a={mode:511&~process.umask(),fs:i};const checkPath=e=>{if(process.platform==="win32"){const t=/[<>:"|?*]/.test(e.replace(n.parse(e).root,""));if(t){const t=new Error(`Path contains invalid characters: ${e}`);t.code="EINVAL";throw t}}};e.exports=(e,t)=>Promise.resolve().then((()=>{checkPath(e);t=Object.assign({},a,t);const r=o(t.fs.mkdir);const i=o(t.fs.stat);const make=e=>r(e,t.mode).then((()=>e)).catch((t=>{if(t.code==="ENOENT"){if(t.message.includes("null bytes")||n.dirname(e)===e){throw t}return make(n.dirname(e)).then((()=>make(e)))}return i(e).then((t=>t.isDirectory()?e:Promise.reject())).catch((()=>{throw t}))}));return make(n.resolve(e))}));e.exports.sync=(e,t)=>{checkPath(e);t=Object.assign({},a,t);const make=e=>{try{t.fs.mkdirSync(e,t.mode)}catch(r){if(r.code==="ENOENT"){if(r.message.includes("null bytes")||n.dirname(e)===e){throw r}make(n.dirname(e));return make(e)}try{if(!t.fs.statSync(e).isDirectory()){throw new Error("The path is not a directory")}}catch(e){throw r}}return e};return make(n.resolve(e))}},6250:function(e){"use strict";const processFn=(e,t)=>function(){const r=t.promiseModule;const i=new Array(arguments.length);for(let e=0;e<arguments.length;e++){i[e]=arguments[e]}return new r(((r,n)=>{if(t.errorFirst){i.push((function(e,i){if(t.multiArgs){const t=new Array(arguments.length-1);for(let e=1;e<arguments.length;e++){t[e-1]=arguments[e]}if(e){t.unshift(e);n(t)}else{r(t)}}else if(e){n(e)}else{r(i)}}))}else{i.push((function(e){if(t.multiArgs){const e=new Array(arguments.length-1);for(let t=0;t<arguments.length;t++){e[t]=arguments[t]}r(e)}else{r(e)}}))}e.apply(this,i)}))};e.exports=(e,t)=>{t=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:true,promiseModule:Promise},t);const filter=e=>{const match=t=>typeof t==="string"?e===t:t.test(e);return t.include?t.include.some(match):!t.exclude.some(match)};let r;if(typeof e==="function"){r=function(){if(t.excludeMain){return e.apply(this,arguments)}return processFn(e,t).apply(this,arguments)}}else{r=Object.create(Object.getPrototypeOf(e))}for(const i in e){const n=e[i];r[i]=typeof n==="function"&&filter(i)?processFn(n,t):n}return r}},7426:function(e){"use strict";
6
6
  /*
7
7
  object-assign
8
8
  (c) Sindre Sorhus
@@ -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":"2025-04-14T15:51:17.677Z"}
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":"2025-04-22T09:54:24.285Z"}
@@ -1 +1 @@
1
- {"name":"mkdirp","description":"Recursively mkdir, like `mkdir -p`","version":"1.0.4","main":"index.js","keywords":["mkdir","directory","make dir","make","dir","recursive","native"],"repository":{"type":"git","url":"https://github.com/isaacs/node-mkdirp.git"},"scripts":{"test":"tap","snap":"tap","preversion":"npm test","postversion":"npm publish","postpublish":"git push origin --follow-tags"},"tap":{"check-coverage":true,"coverage-map":"map.js"},"devDependencies":{"require-inject":"^1.4.4","tap":"^14.10.7"},"bin":"bin/cmd.js","license":"MIT","engines":{"node":">=10"},"files":["bin","lib","index.js"],"_lastModified":"2025-04-14T15:51:16.438Z"}
1
+ {"name":"mkdirp","description":"Recursively mkdir, like `mkdir -p`","version":"1.0.4","main":"index.js","keywords":["mkdir","directory","make dir","make","dir","recursive","native"],"repository":{"type":"git","url":"https://github.com/isaacs/node-mkdirp.git"},"scripts":{"test":"tap","snap":"tap","preversion":"npm test","postversion":"npm publish","postpublish":"git push origin --follow-tags"},"tap":{"check-coverage":true,"coverage-map":"map.js"},"devDependencies":{"require-inject":"^1.4.4","tap":"^14.10.7"},"bin":"bin/cmd.js","license":"MIT","engines":{"node":">=10"},"files":["bin","lib","index.js"],"_lastModified":"2025-04-22T09:54:23.051Z"}
@@ -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":"2025-04-14T15:51:16.944Z"}
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":"2025-04-22T09:54:23.567Z"}
@@ -61,6 +61,7 @@ const main = () => {
61
61
  switch (argv[0]) {
62
62
  case 'major': case 'minor': case 'patch': case 'prerelease':
63
63
  case 'premajor': case 'preminor': case 'prepatch':
64
+ case 'release':
64
65
  inc = argv.shift()
65
66
  break
66
67
  default:
@@ -119,7 +120,11 @@ const main = () => {
119
120
  return fail()
120
121
  }
121
122
  }
122
- return success(versions)
123
+ versions
124
+ .sort((a, b) => semver[reverse ? 'rcompare' : 'compare'](a, b, options))
125
+ .map(v => semver.clean(v, options))
126
+ .map(v => inc ? semver.inc(v, inc, options, identifier, identifierBase) : v)
127
+ .forEach(v => console.log(v))
123
128
  }
124
129
 
125
130
  const failInc = () => {
@@ -129,19 +134,6 @@ const failInc = () => {
129
134
 
130
135
  const fail = () => process.exit(1)
131
136
 
132
- const success = () => {
133
- const compare = reverse ? 'rcompare' : 'compare'
134
- versions.sort((a, b) => {
135
- return semver[compare](a, b, options)
136
- }).map((v) => {
137
- return semver.clean(v, options)
138
- }).map((v) => {
139
- return inc ? semver.inc(v, inc, options, identifier, identifierBase) : v
140
- }).forEach((v, i, _) => {
141
- console.log(v)
142
- })
143
- }
144
-
145
137
  const help = () => console.log(
146
138
  `SemVer ${version}
147
139
 
@@ -158,7 +150,7 @@ Options:
158
150
  -i --increment [<level>]
159
151
  Increment a version by the specified level. Level can
160
152
  be one of: major, minor, patch, premajor, preminor,
161
- prepatch, or prerelease. Default level is 'patch'.
153
+ prepatch, prerelease, or release. Default level is 'patch'.
162
154
  Only one version may be specified.
163
155
 
164
156
  --preid <identifier>
@@ -1,3 +1,5 @@
1
+ const SPACE_CHARACTERS = /\s+/g
2
+
1
3
  // hoisted class for cyclic dependency
2
4
  class Range {
3
5
  constructor (range, options) {
@@ -18,7 +20,7 @@ class Range {
18
20
  // just put it in the set and return
19
21
  this.raw = range.value
20
22
  this.set = [[range]]
21
- this.format()
23
+ this.formatted = undefined
22
24
  return this
23
25
  }
24
26
 
@@ -29,10 +31,7 @@ class Range {
29
31
  // First reduce all whitespace as much as possible so we do not have to rely
30
32
  // on potentially slow regexes like \s*. This is then stored and used for
31
33
  // future error messages as well.
32
- this.raw = range
33
- .trim()
34
- .split(/\s+/)
35
- .join(' ')
34
+ this.raw = range.trim().replace(SPACE_CHARACTERS, ' ')
36
35
 
37
36
  // First, split on ||
38
37
  this.set = this.raw
@@ -66,14 +65,29 @@ class Range {
66
65
  }
67
66
  }
68
67
 
69
- this.format()
68
+ this.formatted = undefined
69
+ }
70
+
71
+ get range () {
72
+ if (this.formatted === undefined) {
73
+ this.formatted = ''
74
+ for (let i = 0; i < this.set.length; i++) {
75
+ if (i > 0) {
76
+ this.formatted += '||'
77
+ }
78
+ const comps = this.set[i]
79
+ for (let k = 0; k < comps.length; k++) {
80
+ if (k > 0) {
81
+ this.formatted += ' '
82
+ }
83
+ this.formatted += comps[k].toString().trim()
84
+ }
85
+ }
86
+ }
87
+ return this.formatted
70
88
  }
71
89
 
72
90
  format () {
73
- this.range = this.set
74
- .map((comps) => comps.join(' ').trim())
75
- .join('||')
76
- .trim()
77
91
  return this.range
78
92
  }
79
93
 
@@ -198,8 +212,8 @@ class Range {
198
212
 
199
213
  module.exports = Range
200
214
 
201
- const LRU = require('lru-cache')
202
- const cache = new LRU({ max: 1000 })
215
+ const LRU = require('../internal/lrucache')
216
+ const cache = new LRU()
203
217
 
204
218
  const parseOptions = require('../internal/parse-options')
205
219
  const Comparator = require('./comparator')
@@ -470,9 +484,10 @@ const replaceGTE0 = (comp, options) => {
470
484
  // 1.2 - 3.4.5 => >=1.2.0 <=3.4.5
471
485
  // 1.2.3 - 3.4 => >=1.2.0 <3.5.0-0 Any 3.4.x will do
472
486
  // 1.2 - 3.4 => >=1.2.0 <3.5.0-0
487
+ // TODO build?
473
488
  const hyphenReplace = incPr => ($0,
474
489
  from, fM, fm, fp, fpr, fb,
475
- to, tM, tm, tp, tpr, tb) => {
490
+ to, tM, tm, tp, tpr) => {
476
491
  if (isX(fM)) {
477
492
  from = ''
478
493
  } else if (isX(fm)) {
@@ -1,6 +1,6 @@
1
1
  const debug = require('../internal/debug')
2
2
  const { MAX_LENGTH, MAX_SAFE_INTEGER } = require('../internal/constants')
3
- const { safeRe: re, t } = require('../internal/re')
3
+ const { safeRe: re, safeSrc: src, t } = require('../internal/re')
4
4
 
5
5
  const parseOptions = require('../internal/parse-options')
6
6
  const { compareIdentifiers } = require('../internal/identifiers')
@@ -10,7 +10,7 @@ class SemVer {
10
10
 
11
11
  if (version instanceof SemVer) {
12
12
  if (version.loose === !!options.loose &&
13
- version.includePrerelease === !!options.includePrerelease) {
13
+ version.includePrerelease === !!options.includePrerelease) {
14
14
  return version
15
15
  } else {
16
16
  version = version.version
@@ -158,7 +158,7 @@ class SemVer {
158
158
  do {
159
159
  const a = this.build[i]
160
160
  const b = other.build[i]
161
- debug('prerelease compare', i, a, b)
161
+ debug('build compare', i, a, b)
162
162
  if (a === undefined && b === undefined) {
163
163
  return 0
164
164
  } else if (b === undefined) {
@@ -176,6 +176,20 @@ class SemVer {
176
176
  // preminor will bump the version up to the next minor release, and immediately
177
177
  // down to pre-release. premajor and prepatch work the same way.
178
178
  inc (release, identifier, identifierBase) {
179
+ if (release.startsWith('pre')) {
180
+ if (!identifier && identifierBase === false) {
181
+ throw new Error('invalid increment argument: identifier is empty')
182
+ }
183
+ // Avoid an invalid semver results
184
+ if (identifier) {
185
+ const r = new RegExp(`^${this.options.loose ? src[t.PRERELEASELOOSE] : src[t.PRERELEASE]}$`)
186
+ const match = `-${identifier}`.match(r)
187
+ if (!match || match[1] !== identifier) {
188
+ throw new Error(`invalid identifier: ${identifier}`)
189
+ }
190
+ }
191
+ }
192
+
179
193
  switch (release) {
180
194
  case 'premajor':
181
195
  this.prerelease.length = 0
@@ -206,6 +220,12 @@ class SemVer {
206
220
  }
207
221
  this.inc('pre', identifier, identifierBase)
208
222
  break
223
+ case 'release':
224
+ if (this.prerelease.length === 0) {
225
+ throw new Error(`version ${this.raw} is not a prerelease`)
226
+ }
227
+ this.prerelease.length = 0
228
+ break
209
229
 
210
230
  case 'major':
211
231
  // If this is a pre-major version, bump up to the same major version.
@@ -249,10 +269,6 @@ class SemVer {
249
269
  case 'pre': {
250
270
  const base = Number(identifierBase) ? 1 : 0
251
271
 
252
- if (!identifier && identifierBase === false) {
253
- throw new Error('invalid increment argument: identifier is empty')
254
- }
255
-
256
272
  if (this.prerelease.length === 0) {
257
273
  this.prerelease = [base]
258
274
  } else {