From c26eb6c9b0606a6b3655ea7d63d401457c354537 Mon Sep 17 00:00:00 2001 From: ozelot379 Date: Fri, 5 Jul 2019 20:05:09 +0200 Subject: [PATCH] First try to convert horse textures (Is very tricky and may buggy) --- .npmignore | 3 +- CHANGELOG.md | 4 + README.md | 2 +- dist/cli.js | 22 +-- dist/index.js | 12 +- package.json | 2 +- src/Converter/ColorizeOverlayConverter.js | 48 ++--- src/Converter/ConvertFactory.js | 2 + src/Converter/HorseConverter.js | 226 ++++++++++++++++++++++ 9 files changed, 277 insertions(+), 44 deletions(-) create mode 100644 src/Converter/HorseConverter.js diff --git a/.npmignore b/.npmignore index 11f8229..f57c112 100644 --- a/.npmignore +++ b/.npmignore @@ -4,4 +4,5 @@ node_modules output src tests -tmp \ No newline at end of file +tmp +webpack.config.js \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 2557b2c..867e8ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## [1.1.0] +- First try to convert horse textures (Is very tricky and may buggy) +- Note some more origin colors in `ColorizeOverlayConverter` + ## [1.0.12] - Replaced zip libraries diff --git a/README.md b/README.md index e5a8d23..6254eb2 100644 --- a/README.md +++ b/README.md @@ -90,7 +90,7 @@ ConvertMinecraftJavaTextureToBedrock(input, output/*, "options"*/).then((outputP Example is the [CLI script](./src/cli.js) ## Know issues -- Horse textures (Seems to convert also entities/horse2 to entities/horse) +- Convert horse textures is very tricky and may buggy # Extras diff --git a/dist/cli.js b/dist/cli.js index 9314006..62431b5 100644 --- a/dist/cli.js +++ b/dist/cli.js @@ -1,5 +1,5 @@ #!/usr/bin/env node -!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(global,function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=305)}([function(t,e,n){"use strict";function r(t){if(void 0===t)return!1;if("function"!=typeof t)throw new TypeError("Callback must be a function");return!0}function i(t,e){if("string"==typeof t&&(t=new Error(t)),"function"==typeof e)return e.call(this,t);throw t}function o(t,e,n,r,i,o){e=Math.round(e),n=Math.round(n),r=Math.round(r),i=Math.round(i);for(var a=n;ar.promises})},function(t,e){t.exports=require("util")},function(t,e){t.exports=require("buffer")},function(t,e){t.exports=require("fs")},function(t,e,n){var r=n(5),i=n(135),o=n(136),a=n(137),s=[],c=n(3);var u,l,p=function(){};function f(t){i(t),t.gracefulify=f,t.FileReadStream=p,t.FileWriteStream=g,t.createReadStream=function(t,e){return new p(t,e)},t.createWriteStream=function(t,e){return new g(t,e)};var e=t.readFile;t.readFile=function(t,n,r){"function"==typeof n&&(r=n,n=null);return function t(n,r,i){return e(n,r,function(e){!e||"EMFILE"!==e.code&&"ENFILE"!==e.code?("function"==typeof i&&i.apply(this,arguments),d()):h([t,[n,r,i]])})}(t,n,r)};var n=t.writeFile;t.writeFile=function(t,e,r,i){"function"==typeof r&&(i=r,r=null);return function t(e,r,i,o){return n(e,r,i,function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?("function"==typeof o&&o.apply(this,arguments),d()):h([t,[e,r,i,o]])})}(t,e,r,i)};var r=t.appendFile;r&&(t.appendFile=function(t,e,n,i){"function"==typeof n&&(i=n,n=null);return function t(e,n,i,o){return r(e,n,i,function(r){!r||"EMFILE"!==r.code&&"ENFILE"!==r.code?("function"==typeof o&&o.apply(this,arguments),d()):h([t,[e,n,i,o]])})}(t,e,n,i)});var a=t.readdir;function s(e){return a.apply(t,e)}if(t.readdir=function(t,e,n){var r=[t];"function"!=typeof e?r.push(e):n=e;return r.push(function(t,e){e&&e.sort&&e.sort(),!t||"EMFILE"!==t.code&&"ENFILE"!==t.code?("function"==typeof n&&n.apply(this,arguments),d()):h([s,[r]])}),s(r)},"v0.8"===process.version.substr(0,4)){var c=o(t);p=c.ReadStream,g=c.WriteStream}var u=t.ReadStream;u&&(p.prototype=Object.create(u.prototype),p.prototype.open=function(){var t=this;_(t.path,t.flags,t.mode,function(e,n){e?(t.autoClose&&t.destroy(),t.emit("error",e)):(t.fd=n,t.emit("open",n),t.read())})});var l=t.WriteStream;function p(t,e){return this instanceof p?(u.apply(this,arguments),this):p.apply(Object.create(p.prototype),arguments)}function g(t,e){return this instanceof g?(l.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}l&&(g.prototype=Object.create(l.prototype),g.prototype.open=function(){var t=this;_(t.path,t.flags,t.mode,function(e,n){e?(t.destroy(),t.emit("error",e)):(t.fd=n,t.emit("open",n))})}),t.ReadStream=p,t.WriteStream=g;var m=t.open;function _(t,e,n,r){return"function"==typeof n&&(r=n,n=null),function t(e,n,r,i){return m(e,n,r,function(o,a){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?("function"==typeof i&&i.apply(this,arguments),d()):h([t,[e,n,r,i]])})}(t,e,n,r)}return t.open=_,t}function h(t){p("ENQUEUE",t[0].name,t[1]),s.push(t)}function d(){var t=s.shift();t&&(p("RETRY",t[0].name,t[1]),t[0].apply(null,t[1]))}c.debuglog?p=c.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(p=function(){var t=c.format.apply(c,arguments);t="GFS4: "+t.split(/\n/).join("\nGFS4: "),console.error(t)}),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){p(s),n(20).equal(s.length,0)}),t.exports=f(a(r)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!r.__patched&&(t.exports=f(r),r.__patched=!0),t.exports.close=(u=r.close,function(t,e){return u.call(r,t,function(t){t||d(),"function"==typeof e&&e.apply(this,arguments)})}),t.exports.closeSync=(l=r.closeSync,function(t){var e=l.apply(r,arguments);return d(),e}),/\bgraceful-fs\b/.test(r.closeSync.toString())||(r.closeSync=t.exports.closeSync,r.close=t.exports.close)},function(t,e){t.exports=require("stream")},function(t,e,n){"use strict";e.fromCallback=function(t){return Object.defineProperty(function(){if("function"!=typeof arguments[arguments.length-1])return new Promise((e,n)=>{arguments[arguments.length]=(t,r)=>{if(t)return n(t);e(r)},arguments.length++,t.apply(this,arguments)});t.apply(this,arguments)},"name",{value:t.name})},e.fromPromise=function(t){return Object.defineProperty(function(){const e=arguments[arguments.length-1];if("function"!=typeof e)return t.apply(this,arguments);t.apply(this,arguments).then(t=>e(null,t),e)},"name",{value:t.name})}},function(t,e,n){(function(){var e,r,i,o,a,s,c,u,l,p,f,h,d={}.hasOwnProperty;h=n(15),f=h.isObject,p=h.isFunction,l=h.isEmpty,a=null,e=null,r=null,i=null,o=null,c=null,u=null,s=null,t.exports=function(){function t(t){this.parent=t,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.children=[],a||(a=n(31),e=n(32),r=n(33),i=n(34),o=n(35),c=n(40),u=n(41),s=n(42))}return t.prototype.element=function(t,e,n){var r,i,o,a,s,c,u,h,g,m;if(c=null,null==e&&(e={}),e=e.valueOf(),f(e)||(n=(g=[e,n])[0],e=g[1]),null!=t&&(t=t.valueOf()),Array.isArray(t))for(o=0,u=t.length;o!0).catch(()=>!1)}),pathExistsSync:i.existsSync}},function(t,e,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function i(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)i(n,r)&&(t[r]=n[r])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var o={arraySet:function(t,e,n,r,i){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+r),i);else for(var o=0;on&&s>0?(a+=t.common.lineHeight,o=i[s]+" "):o=c}return a}n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i})},function(t,e){t.exports=require("events")},function(t,e,n){try{var r=n(3);if("function"!=typeof r.inherits)throw"";t.exports=r.inherits}catch(e){t.exports=n(225)}},function(t,e,n){"use strict";var r=n(43),i=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=p;var o=n(23);o.inherits=n(18);var a=n(97),s=n(100);o.inherits(p,a);for(var c=i(s.prototype),u=0;u1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}if(t=B(t,360),e=B(e,100),n=B(n,100),0===e)r=i=o=n;else{var s=n<.5?n*(1+e):n+e-n*e,c=2*n-s;r=a(c,s,t+1/3),i=a(c,s,t),o=a(c,s,t-1/3)}return{r:255*r,g:255*i,b:255*o}}(t.h,r,c),p=!0,f="hsl"),t.hasOwnProperty("a")&&(n=t.a));var h,d,g;return n=P(n),{ok:p,format:t.format||f,r:u(255,l(e.r,0)),g:u(255,l(e.g,0)),b:u(255,l(e.b,0)),a:n}}(t);this._originalInput=t,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=c(100*this._a)/100,this._format=e.format||n.format,this._gradientType=e.gradientType,this._r<1&&(this._r=c(this._r)),this._g<1&&(this._g=c(this._g)),this._b<1&&(this._b=c(this._b)),this._ok=n.ok,this._tc_id=s++}function h(t,e,n){t=B(t,255),e=B(e,255),n=B(n,255);var r,i,o=l(t,e,n),a=u(t,e,n),s=(o+a)/2;if(o==a)r=i=0;else{var c=o-a;switch(i=s>.5?c/(2-o-a):c/(o+a),o){case t:r=(e-n)/c+(e>1)+720)%360;--e;)r.h=(r.h+i)%360,o.push(f(r));return o}function A(t,e){e=e||6;for(var n=f(t).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/e;e--;)a.push(f({h:r,s:i,v:o})),o=(o+s)%1;return a}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,n,r=this.toRgb();return t=r.r/255,e=r.g/255,n=r.b/255,.2126*(t<=.03928?t/12.92:i.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:i.pow((e+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:i.pow((n+.055)/1.055,2.4))},setAlpha:function(t){return this._a=P(t),this._roundA=c(100*this._a)/100,this},toHsv:function(){var t=d(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=d(this._r,this._g,this._b),e=c(360*t.h),n=c(100*t.s),r=c(100*t.v);return 1==this._a?"hsv("+e+", "+n+"%, "+r+"%)":"hsva("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var t=h(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=h(this._r,this._g,this._b),e=c(360*t.h),n=c(100*t.s),r=c(100*t.l);return 1==this._a?"hsl("+e+", "+n+"%, "+r+"%)":"hsla("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(t){return g(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,n,r,i){var o=[L(c(t).toString(16)),L(c(e).toString(16)),L(c(n).toString(16)),L(N(r))];if(i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:c(this._r),g:c(this._g),b:c(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+c(this._r)+", "+c(this._g)+", "+c(this._b)+")":"rgba("+c(this._r)+", "+c(this._g)+", "+c(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:c(100*B(this._r,255))+"%",g:c(100*B(this._g,255))+"%",b:c(100*B(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+c(100*B(this._r,255))+"%, "+c(100*B(this._g,255))+"%, "+c(100*B(this._b,255))+"%)":"rgba("+c(100*B(this._r,255))+"%, "+c(100*B(this._g,255))+"%, "+c(100*B(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(T[g(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+m(this._r,this._g,this._b,this._a),n=e,r=this._gradientType?"GradientType = 1, ":"";if(t){var i=f(t);n="#"+m(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+e+",endColorstr="+n+")"},toString:function(t){var e=!!t;t=t||this._format;var n=!1,r=this._a<1&&this._a>=0;return e||!r||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(n=this.toRgbString()),"prgb"===t&&(n=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(n=this.toHexString()),"hex3"===t&&(n=this.toHexString(!0)),"hex4"===t&&(n=this.toHex8String(!0)),"hex8"===t&&(n=this.toHex8String()),"name"===t&&(n=this.toName()),"hsl"===t&&(n=this.toHslString()),"hsv"===t&&(n=this.toHsvString()),n||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return f(this.toString())},_applyModification:function(t,e){var n=t.apply(null,[this].concat([].slice.call(e)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(v,arguments)},brighten:function(){return this._applyModification(x,arguments)},darken:function(){return this._applyModification(w,arguments)},desaturate:function(){return this._applyModification(_,arguments)},saturate:function(){return this._applyModification(b,arguments)},greyscale:function(){return this._applyModification(y,arguments)},spin:function(){return this._applyModification(k,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(C,arguments)},complement:function(){return this._applyCombination(E,arguments)},monochromatic:function(){return this._applyCombination(A,arguments)},splitcomplement:function(){return this._applyCombination(O,arguments)},triad:function(){return this._applyCombination(D,arguments)},tetrad:function(){return this._applyCombination(S,arguments)}},f.fromRatio=function(t,e){if("object"==typeof t){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]="a"===r?t[r]:M(t[r]));t=n}return f(t,e)},f.equals=function(t,e){return!(!t||!e)&&f(t).toRgbString()==f(e).toRgbString()},f.random=function(){return f.fromRatio({r:p(),g:p(),b:p()})},f.mix=function(t,e,n){n=0===n?0:n||50;var r=f(t).toRgb(),i=f(e).toRgb(),o=n/100;return f({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a})},f.readability=function(t,e){var n=f(t),r=f(e);return(i.max(n.getLuminance(),r.getLuminance())+.05)/(i.min(n.getLuminance(),r.getLuminance())+.05)},f.isReadable=function(t,e,n){var r,i,o=f.readability(t,e);switch(i=!1,(r=function(t){var e,n;e=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(t.size||"small").toLowerCase(),"AA"!==e&&"AAA"!==e&&(e="AA");"small"!==n&&"large"!==n&&(n="small");return{level:e,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":i=o>=4.5;break;case"AAlarge":i=o>=3;break;case"AAAsmall":i=o>=7}return i},f.mostReadable=function(t,e,n){var r,i,o,a,s=null,c=0;i=(n=n||{}).includeFallbackColors,o=n.level,a=n.size;for(var u=0;uc&&(c=r,s=f(e[u]));return f.isReadable(t,s,{level:o,size:a})||!i?s:(n.includeFallbackColors=!1,f.mostReadable(t,["#fff","#000"],n))};var I=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},T=f.hexNames=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}(I);function P(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function B(t,e){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var n=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=u(e,l(0,parseFloat(t))),n&&(t=parseInt(t*e,10)/100),i.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function F(t){return u(1,l(0,t))}function j(t){return parseInt(t,16)}function L(t){return 1==t.length?"0"+t:""+t}function M(t){return t<=1&&(t=100*t+"%"),t}function N(t){return i.round(255*parseFloat(t)).toString(16)}function z(t){return j(t)/255}var R,U,G,H=(U="[\\s|\\(]+("+(R="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+R+")[,|\\s]+("+R+")\\s*\\)?",G="[\\s|\\(]+("+R+")[,|\\s]+("+R+")[,|\\s]+("+R+")[,|\\s]+("+R+")\\s*\\)?",{CSS_UNIT:new RegExp(R),rgb:new RegExp("rgb"+U),rgba:new RegExp("rgba"+G),hsl:new RegExp("hsl"+U),hsla:new RegExp("hsla"+G),hsv:new RegExp("hsv"+U),hsva:new RegExp("hsva"+G),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function $(t){return!!H.CSS_UNIT.exec(t)}t.exports?t.exports=f:void 0===(r=function(){return f}.call(e,n,e,t))||(t.exports=r)}(Math)},function(t,e,n){var r=n(160);function i(t,e){var n=new r(t,e);return function(t){return n.convert(t)}}i.BIN="01",i.OCT="01234567",i.DEC="0123456789",i.HEX="0123456789abcdef",t.exports=i},function(t,e){function n(t,e){this.size=this.size||t,this.smallerSize=this.smallerSize||e,function(t){for(var e=1;el?"1":"0";return p};var i=[];t.exports=n},function(t,e,n){!function(){var e={};function r(){"undefined"==typeof process&&console.log.apply(console,arguments)}t.exports=e,function(t,e){var n,i,o;n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function t(t){this.message="JPEG error: "+t}return t.prototype=Error(),t.prototype.name="JpegError",t.constructor=t}(),o=function(){function t(t,e){this.message=t,this.g=e}return t.prototype=Error(),t.prototype.name="DNLMarkerError",t.constructor=t}(),function(){function e(){this.M=null,this.B=-1}function r(t,e){for(var n,r,i=0,o=[],a=16;0>--A&1;if(255===(C=t[e++])){var n=t[e++];if(n){if(220===n&&D){e+=2;var a=t[e++]<<8|t[e++];if(0>>7}function g(t){for(;;){if("number"==typeof(t=t[d()]))return t;if("object"!==(void 0===t?"undefined":n(t)))throw new i("invalid huffman sequence")}}function m(t){for(var e=0;0=1<>=4,0===i){if(15>r){I=m(r)+(1<t.a[n]?-1:1;switch(T){case 0:if(n=15&(o=g(t.o)),o>>=4,0===n)15>o?(I=m(o)+(1<n;){var r=g(t.o),i=15&r;if(r>>=4,0===i){if(15>r)break;n+=16}else n+=r,t.a[e+u[n]]=_(i),n++}},F=0,j=1===P?a[0].c*a[0].l:S*r.O;F=M)throw new i("marker was not found");if(!(65488<=M&&65495>=M))break;e+=2}return(M=c(t,e))&&M.f&&((0,_util.warn)("decodeScan - unexpected Scan data, current marker is: "+M.f),e=M.offset),e-O}function s(t,e){for(var n=e.c,r=e.l,o=new Int16Array(64),a=0;af;f+=8){var h=p[c+f],d=p[c+f+1],g=p[c+f+2],m=p[c+f+3],_=p[c+f+4],b=p[c+f+5],y=p[c+f+6],v=p[c+f+7];if(h*=l[f],0==(d|g|m|_|b|y|v))h=5793*h+512>>10,u[f]=h,u[f+1]=h,u[f+2]=h,u[f+3]=h,u[f+4]=h,u[f+5]=h,u[f+6]=h,u[f+7]=h;else{d*=l[f+1],g*=l[f+2],m*=l[f+3],_*=l[f+4],b*=l[f+5];var x=5793*h+128>>8,w=5793*_+128>>8,k=g,E=y*=l[f+6];w=(x=x+w+1>>1)-w,h=3784*k+1567*E+128>>8,k=1567*k-3784*E+128>>8,b=(_=(_=2896*(d-(v*=l[f+7]))+128>>8)+(b<<=4)+1>>1)-b,m=(v=(v=2896*(d+v)+128>>8)+(m<<=4)+1>>1)-m,E=(x=x+(E=h)+1>>1)-E,k=(w=w+k+1>>1)-k,h=2276*_+3406*v+2048>>12,_=3406*_-2276*v+2048>>12,v=h,h=799*m+4017*b+2048>>12,m=4017*m-799*b+2048>>12,b=h,u[f]=x+v,u[f+7]=x-v,u[f+1]=w+b,u[f+6]=w-b,u[f+2]=k+m,u[f+5]=k-m,u[f+3]=E+_,u[f+4]=E-_}}for(l=0;8>l;++l)h=u[l],0==((d=u[l+8])|(g=u[l+16])|(m=u[l+24])|(_=u[l+32])|(b=u[l+40])|(y=u[l+48])|(v=u[l+56]))?(h=-2040>(h=5793*h+8192>>14)?0:2024<=h?255:h+2056>>4,p[c+l]=h,p[c+l+8]=h,p[c+l+16]=h,p[c+l+24]=h,p[c+l+32]=h,p[c+l+40]=h,p[c+l+48]=h,p[c+l+56]=h):(x=5793*h+2048>>12,w=5793*_+2048>>12,h=3784*(k=g)+1567*(E=y)+2048>>12,k=1567*k-3784*E+2048>>12,E=h,b=(_=(_=2896*(d-v)+2048>>12)+b+1>>1)-b,m=(v=(v=2896*(d+v)+2048>>12)+m+1>>1)-m,h=2276*_+3406*v+2048>>12,_=3406*_-2276*v+2048>>12,v=h,h=799*m+4017*b+2048>>12,m=4017*m-799*b+2048>>12,d=(w=(w=(x=4112+(x+w+1>>1))-w)+k+1>>1)+(b=h),y=w-b,b=(k=w-k)-m,h=16>(h=(x=x+E+1>>1)+v)?0:4080<=h?255:h>>4,d=16>d?0:4080<=d?255:d>>4,g=16>(g=k+m)?0:4080<=g?255:g>>4,m=16>(m=(E=x-E)+_)?0:4080<=m?255:m>>4,_=16>(_=E-_)?0:4080<=_?255:_>>4,b=16>b?0:4080<=b?255:b>>4,y=16>y?0:4080<=y?255:y>>4,v=16>(v=x-v)?0:4080<=v?255:v>>4,p[c+l]=h,p[c+l+8]=d,p[c+l+16]=g,p[c+l+24]=m,p[c+l+32]=_,p[c+l+40]=b,p[c+l+48]=y,p[c+l+56]=v)}return e.a}function c(t,e){var n=2=r)return null;var i=t[e]<<8|t[e+1];if(65472<=i&&65534>=i)return{f:null,F:i,offset:e};for(var o=t[n]<<8|t[n+1];!(65472<=o&&65534>=o);){if(++n>=r)return null;o=t[n]<<8|t[n+1]}return{f:i.toString(16),F:o,offset:n}}var u=new Uint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]);e.prototype={parse:function(t){function e(){var e=t[h]<<8|t[h+1];return h+=2,e}function n(){var n=e(),r=c(t,n=h+n-2,h);return r&&r.f&&((0,_util.warn)("readDataBlock - incorrect length, current marker is: "+r.f),n=r.offset),n=t.subarray(h,n),h+=n.length,n}function l(t){for(var e=Math.ceil(t.v/8/t.s),n=Math.ceil(t.g/8/t.u),r=0;r>4)for(y=0;64>y;y++)w[v=u[y]]=t[h++];else{if(1!=x>>4)throw new i("DQT - invalid table spec");for(y=0;64>y;y++)w[v=u[y]]=e()}p[15&x]=w}break;case 65472:case 65473:case 65474:if(k)throw new i("Only single frame JPEGs supported");e();var k={};for(k.X=65473===b,k.S=65474===b,k.precision=t[h++],b=e(),k.g=f||b,k.v=e(),k.b=[],k.C={},y=t[h++],b=w=x=0;b>4,D=15&t[h+1];xy;y++,h++)E+=w[y]=t[h];for(D=new Uint8Array(E),y=0;y>4?_:m)[15&x]=r(w,D)}break;case 65501:e();var S=e();break;case 65498:for(y=1==++g&&!f,e(),x=t[h++],v=[],b=0;b>4],O.o=m[15&w],v.push(O)}b=t[h++],x=t[h++],w=t[h++];try{var C=a(t,h,k,v,S,b,x,w>>4,15&w,y);h+=C}catch(e){if(e instanceof o)return(0,_util.warn)('Attempting to re-parse JPEG image using "scanLines" parameter found in DNL marker (0xFFDC) segment.'),this.parse(t,{N:e.g});throw e}break;case 65500:h+=4;break;case 65535:255!==t[h]&&h--;break;default:if(255===t[h-3]&&192<=t[h-2]&&254>=t[h-2])h-=3;else{if(!(y=c(t,h-2))||!y.f)throw new i("unknown marker "+b.toString(16));(0,_util.warn)("JpegImage.parse - unexpected data, current marker is: "+y.f),h=y.offset}}b=e()}for(this.width=k.v,this.height=k.g,this.A=d,this.b=[],b=0;b>8)+o[i+1];return c},w:function(){return this.A?!!this.A.W:3===this.i?0!==this.B:1===this.B},I:function(t){for(var e,n,r,i=0,o=t.length;i>>3)]),null==h&&(h=s.t325);var d=new Uint8Array(s.height*(p>>>3)),g=0;if(null!=s.t322){for(var m=s.t322[0],_=s.t323[0],b=Math.floor((s.width+m-1)/m),y=Math.floor((s.height+_-1)/_),v=new Uint8Array(0|Math.ceil(m*_*l/8)),x=0;x>>8;else{if(12!=d)throw new Error("unsupported bit depth "+d);for(p=0;p>>4,o[a++]=255&(g[p]<<4|g[p+1]>>>8),o[a++]=255&g[p+1]}}else{var _=new t.JpegDecoder;_.parse(u);var b=_.getData(_.width,_.height);for(p=0;p1),!f){if(255==e[n]&&216==e[n+1])return{jpegOffset:n};if(null!=h&&(255==e[n+d]&&216==e[n+d+1]?l=n+d:r("JPEGInterchangeFormat does not point to SOI"),null==g?r("JPEGInterchangeFormatLength field is missing"):(d>=p||d+m<=p)&&r("JPEGInterchangeFormatLength field value is invalid"),null!=l))return{jpegOffset:l}}if(null!=b&&(y=b[0],v=b[1]),null!=h&&null!=g)if(m>=2&&d+m<=p){for(o=255==e[n+d+m-2]&&216==e[n+d+m-1]?new Uint8Array(m-2):new Uint8Array(m),s=0;s offset to first strip or tile");if(null==o){var k=0,E=[];E[k++]=255,E[k++]=216;var D=t.t519;if(null==D)throw new Error("JPEGQTables tag is missing");for(s=0;s>>8,E[k++]=255&O,E[k++]=s|u<<4,c=0;c<16;c++)E[k++]=e[n+S[s]+c];for(c=0;c>>8&255,E[k++]=255&t.height,E[k++]=t.width>>>8&255,E[k++]=255&t.width,E[k++]=x,1==x)E[k++]=1,E[k++]=17,E[k++]=0;else for(s=0;s<3;s++)E[k++]=s+1,E[k++]=0!=s?17:(15&y)<<4|15&v,E[k++]=s;null!=w&&0!=w[0]&&(E[k++]=255,E[k++]=221,E[k++]=0,E[k++]=4,E[k++]=w[0]>>>8&255,E[k++]=255&w[0]),o=new Uint8Array(E)}var C=-1;for(s=0;s>>8&255,o[I++]=255&t.height,o[I++]=t.width>>>8&255,o[I++]=255&t.width,o[I++]=x,1==x)o[I++]=1,o[I++]=17,o[I++]=0;else for(s=0;s<3;s++)o[I++]=s+1,o[I++]=0!=s?17:(15&y)<<4|15&v,o[I++]=s}if(255==e[p]&&218==e[p+1]){var T=e[p+2]<<8|e[p+3];for((a=new Uint8Array(T+2))[0]=e[p],a[1]=e[p+1],a[2]=e[p+2],a[3]=e[p+3],s=0;s>>8&255,u[l.sofPosition+6]=255&e.height,u[l.sofPosition+7]=e.width>>>8&255,u[l.sofPosition+8]=255&e.width,255==n[r]&&n[r+1]==SOS||(u.set(l.sosMarker,bufoff),bufoff+=sosMarker.length),h=0;h=0&&c<128)for(var u=0;u=-127&&c<0){for(u=0;u<1-c;u++)a[i]=o[e],i++;e++}}},t.decode._decodeThunder=function(t,e,n,r,i){for(var o=[0,1,0,-1],a=[0,1,2,3,0,-3,-2,-1],s=e+n,c=2*i,u=0;e>>6,f=63&l;if(e++,3==p&&(u=15&f,r[c>>>1]|=u<<4*(1-c&1),c++),0==p)for(var h=0;h>>1]|=u<<4*(1-c&1),c++;if(2==p)for(h=0;h<2;h++){4!=(d=f>>>3*(1-h)&7)&&(u+=a[d],r[c>>>1]|=u<<4*(1-c&1),c++)}if(1==p)for(h=0;h<3;h++){var d;2!=(d=f>>>2*(2-h)&3)&&(u+=o[d],r[c>>>1]|=u<<4*(1-c&1),c++)}}},t.decode._dmap={1:0,"011":1,"000011":2,"0000011":3,"010":-1,"000010":-2,"0000010":-3},t.decode._lens=function(){var t=function(t,e,n,r){for(var i=0;i>>3>>3]>>>7-(7&u)&1),2==s&&(E=e[u>>>3]>>>(7&u)&1),u++,p+=E,"H"==x){if(null!=c._lens[y][p]){var D=c._lens[y][p];p="",l+=D,D<64&&(c._addNtimes(f,l,y),g+=l,y=1-y,l=0,0==--w&&(x=""))}}else"0001"==p&&(p="",c._addNtimes(f,b-g,y),g=b),"001"==p&&(p="",x="H",w=2),null!=c._dmap[p]&&(m=_+c._dmap[p],c._addNtimes(f,m-g,y),g=m,p="",y=1-y);f.length==a&&""==x&&(c._writeBits(f,i,8*o+v*k),y=0,v++,g=0,h=c._makeDiff(f),f=[])}},t.decode._findDiff=function(t,e,n){for(var r=0;r=e&&t[r+1]==n)return t[r]},t.decode._makeDiff=function(t){var e=[];1==t[0]&&e.push(0,1);for(var n=1;n>>3>>3]>>>7-(7&u)&1),2==s&&(D=e[u>>>3]>>>(7&u)&1),u++,p+=D,k){if(null!=c._lens[y][p]){var S=c._lens[y][p];p="",l+=S,S<64&&(c._addNtimes(f,l,y),y=1-y,l=0)}}else if("H"==x){if(null!=c._lens[y][p]){S=c._lens[y][p];p="",l+=S,S<64&&(c._addNtimes(f,l,y),g+=l,y=1-y,l=0,0==--w&&(x=""))}}else"0001"==p&&(p="",c._addNtimes(f,b-g,y),g=b),"001"==p&&(p="",x="H",w=2),null!=c._dmap[p]&&(m=_+c._dmap[p],c._addNtimes(f,m-g,y),g=m,p="",y=1-y);p.endsWith("000000000001")&&(v>=0&&c._writeBits(f,i,8*o+v*E),1==s&&(k=1==(e[u>>>3]>>>7-(7&u)&1)),2==s&&(k=1==(e[u>>>3]>>>(7&u)&1)),u++,null==c._decodeG3.allow2D&&(c._decodeG3.allow2D=k),c._decodeG3.allow2D||(k=!0,u--),p="",y=0,v++,g=0,h=c._makeDiff(f),f=[])}f.length==a&&c._writeBits(f,i,8*o+v*E)},t.decode._addNtimes=function(t,e,n){for(var r=0;r>>3]|=t[r]<<7-(n+r&7)},t.decode._decodeLZW=function(e,n,r,i){if(null==t.decode._lzwTab){for(var o=new Uint32Array(65535),a=new Uint16Array(65535),s=new Uint8Array(2e6),c=0;c<256;c++)s[c<<2]=c,o[c]=c<<2,a[c]=1;t.decode._lzwTab=[o,a,s]}for(var u=t.decode._copyData,l=t.decode._lzwTab[0],p=t.decode._lzwTab[1],f=(s=t.decode._lzwTab[2],258),h=1032,d=9,g=n<<3,m=0,_=0;m=(e[g>>>3]<<16|e[g+8>>>3]<<8|e[g+16>>>3])>>24-(7&g)-d&(1<>>3]<<16|e[g+8>>>3]<<8|e[g+16>>>3])>>24-(7&g)-d&(1<=f)l[f]=h,s[l[f]]=b[0],p[f]=1,h=h+1+3&-4,f++;else l[f]=h,u(s,l[_],s,h,v=p[_]),s[h+v]=s[b],v++,p[f]=v,f++,h=h+v+3&-4;f+1==1<=f)l[f]=h,p[f]=0,f++;else l[f]=h,u(s,l[_],s,h,v=p[_]),s[h+v]=s[h],v++,p[f]=v,f++,u(s,h,r,i,v),i+=v,h=h+v+3&-4;f+1==1<4&&(e.writeUint(n,r,a),d=a),2==l&&e.writeASCII(n,d,p),3==l)for(var g=0;g4&&(a+=h+=1&h),r+=4}return[r,a]},t.toRGBA8=function(t){var e=t.width,n=t.height,i=e*n,o=4*i,a=t.data,s=new Uint8Array(4*i),c=t.t262[0],u=t.t258?Math.min(32,t.t258[0]):1,l=t.isLE?1:0;if(0==c)for(var p=Math.ceil(u*e/8),f=0;f>3)]>>7-(7&g)&1;s[m]=s[m+1]=s[m+2]=255*(1-_),s[m+3]=255}if(4==u)for(g=0;g>1)]>>4-4*(1&g)&15;s[m]=s[m+1]=s[m+2]=17*(15-_),s[m+3]=255}if(8==u)for(g=0;g>3)]>>7-(7&g)&1;s[m]=s[m+1]=s[m+2]=255*_,s[m+3]=255}if(2==u)for(g=0;g>2)]>>6-2*(3&g)&3;s[m]=s[m+1]=s[m+2]=85*_,s[m+3]=255}if(8==u)for(g=0;g0)for(g=0;g>8,s[m+1]=y[256+v]>>8,s[m+2]=y[512+v]>>8,s[m+3]=255}}else if(5==c){var x,w=(x=t.t258?t.t258.length:4)>4?1:0;for(g=0;g>8&255,t[e+1]=255&n},writeUint:function(t,e,n){t[e]=n>>24&255,t[e+1]=n>>16&255,t[e+2]=n>>8&255,t[e+3]=n>>0&255},writeASCII:function(t,e,n){for(var r=0;ro)return!0;if(u===o){if(l>a)return!0;if(l===a&&p>=s)return!0}return!1}function h(t,e){const n=i.resolve(t).split(i.sep).filter(t=>t),r=i.resolve(e).split(i.sep).filter(t=>t);return n.reduce((t,e,n)=>t&&r[n]===e,!0)}function d(t,e,n){return`Cannot ${n} '${t}' to a subdirectory of itself, '${e}'.`}t.exports={checkPaths:function(t,e,n,i){!function(t,e,n){f()?r.stat(t,{bigint:!0},(t,i)=>{if(t)return n(t);r.stat(e,{bigint:!0},(t,e)=>t?"ENOENT"===t.code?n(null,{srcStat:i,destStat:null}):n(t):n(null,{srcStat:i,destStat:e}))}):r.stat(t,(t,i)=>{if(t)return n(t);r.stat(e,(t,e)=>t?"ENOENT"===t.code?n(null,{srcStat:i,destStat:null}):n(t):n(null,{srcStat:i,destStat:e}))})}(t,e,(r,o)=>{if(r)return i(r);const{srcStat:a,destStat:s}=o;return s&&s.ino&&s.dev&&s.ino===a.ino&&s.dev===a.dev?i(new Error("Source and destination must not be the same.")):a.isDirectory()&&h(t,e)?i(new Error(d(t,e,n))):i(null,{srcStat:a,destStat:s})})},checkPathsSync:function(t,e,n){const{srcStat:i,destStat:o}=function(t,e){let n,i;n=f()?r.statSync(t,{bigint:!0}):r.statSync(t);try{i=f()?r.statSync(e,{bigint:!0}):r.statSync(e)}catch(t){if("ENOENT"===t.code)return{srcStat:n,destStat:null};throw t}return{srcStat:n,destStat:i}}(t,e);if(o&&o.ino&&o.dev&&o.ino===i.ino&&o.dev===i.dev)throw new Error("Source and destination must not be the same.");if(i.isDirectory()&&h(t,e))throw new Error(d(t,e,n));return{srcStat:i,destStat:o}},checkParentPaths:function t(e,n,o,a,s){const c=i.resolve(i.dirname(e)),u=i.resolve(i.dirname(o));if(u===c||u===i.parse(u).root)return s();f()?r.stat(u,{bigint:!0},(r,i)=>r?"ENOENT"===r.code?s():s(r):i.ino&&i.dev&&i.ino===n.ino&&i.dev===n.dev?s(new Error(d(e,o,a))):t(e,n,u,a,s)):r.stat(u,(r,i)=>r?"ENOENT"===r.code?s():s(r):i.ino&&i.dev&&i.ino===n.ino&&i.dev===n.dev?s(new Error(d(e,o,a))):t(e,n,u,a,s))},checkParentPathsSync:function t(e,n,o,a){const s=i.resolve(i.dirname(e)),c=i.resolve(i.dirname(o));if(c===s||c===i.parse(c).root)return;let u;try{u=f()?r.statSync(c,{bigint:!0}):r.statSync(c)}catch(t){if("ENOENT"===t.code)return;throw t}if(u.ino&&u.dev&&u.ino===n.ino&&u.dev===n.dev)throw new Error(d(e,o,a));return t(e,n,c,a)},isSrcSubdir:h}},function(t,e,n){"use strict";const r=n(8).fromCallback,i=n(144);t.exports={remove:r(i),removeSync:i.sync}},function(t,e,n){(function(){var e,r,i,o,a,s={}.hasOwnProperty;a=n(15),o=a.isObject,i=a.isFunction,r=n(9),e=n(89),t.exports=function(t){function n(t,e,r){if(n.__super__.constructor.call(this,t),null==e)throw new Error("Missing element name");this.name=this.stringify.eleName(e),this.attributes={},null!=r&&this.attribute(r),t.isDocument&&(this.isRoot=!0,this.documentObject=t,t.rootObject=this)}return function(t,e){for(var n in e)s.call(e,n)&&(t[n]=e[n]);function r(){this.constructor=t}r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype}(n,r),n.prototype.clone=function(){var t,e,n,r;for(e in(n=Object.create(this)).isRoot&&(n.documentObject=null),n.attributes={},r=this.attributes)s.call(r,e)&&(t=r[e],n.attributes[e]=t.clone());return n.children=[],this.children.forEach(function(t){var e;return(e=t.clone()).parent=n,n.children.push(e)}),n},n.prototype.attribute=function(t,n){var r,a;if(null!=t&&(t=t.valueOf()),o(t))for(r in t)s.call(t,r)&&(a=t[r],this.attribute(r,a));else i(n)&&(n=n.apply()),this.options.skipNullAttributes&&null==n||(this.attributes[t]=new e(this,t,n));return this},n.prototype.removeAttribute=function(t){var e,n,r;if(null==t)throw new Error("Missing attribute name");if(t=t.valueOf(),Array.isArray(t))for(n=0,r=t.length;nr.promises})},function(t,e){t.exports=require("util")},function(t,e){t.exports=require("buffer")},function(t,e){t.exports=require("fs")},function(t,e,n){var r=n(5),i=n(135),o=n(136),s=n(137),a=[],c=n(3);var u,l,p=function(){};function f(t){i(t),t.gracefulify=f,t.FileReadStream=p,t.FileWriteStream=g,t.createReadStream=function(t,e){return new p(t,e)},t.createWriteStream=function(t,e){return new g(t,e)};var e=t.readFile;t.readFile=function(t,n,r){"function"==typeof n&&(r=n,n=null);return function t(n,r,i){return e(n,r,function(e){!e||"EMFILE"!==e.code&&"ENFILE"!==e.code?("function"==typeof i&&i.apply(this,arguments),d()):h([t,[n,r,i]])})}(t,n,r)};var n=t.writeFile;t.writeFile=function(t,e,r,i){"function"==typeof r&&(i=r,r=null);return function t(e,r,i,o){return n(e,r,i,function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?("function"==typeof o&&o.apply(this,arguments),d()):h([t,[e,r,i,o]])})}(t,e,r,i)};var r=t.appendFile;r&&(t.appendFile=function(t,e,n,i){"function"==typeof n&&(i=n,n=null);return function t(e,n,i,o){return r(e,n,i,function(r){!r||"EMFILE"!==r.code&&"ENFILE"!==r.code?("function"==typeof o&&o.apply(this,arguments),d()):h([t,[e,n,i,o]])})}(t,e,n,i)});var s=t.readdir;function a(e){return s.apply(t,e)}if(t.readdir=function(t,e,n){var r=[t];"function"!=typeof e?r.push(e):n=e;return r.push(function(t,e){e&&e.sort&&e.sort(),!t||"EMFILE"!==t.code&&"ENFILE"!==t.code?("function"==typeof n&&n.apply(this,arguments),d()):h([a,[r]])}),a(r)},"v0.8"===process.version.substr(0,4)){var c=o(t);p=c.ReadStream,g=c.WriteStream}var u=t.ReadStream;u&&(p.prototype=Object.create(u.prototype),p.prototype.open=function(){var t=this;_(t.path,t.flags,t.mode,function(e,n){e?(t.autoClose&&t.destroy(),t.emit("error",e)):(t.fd=n,t.emit("open",n),t.read())})});var l=t.WriteStream;function p(t,e){return this instanceof p?(u.apply(this,arguments),this):p.apply(Object.create(p.prototype),arguments)}function g(t,e){return this instanceof g?(l.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}l&&(g.prototype=Object.create(l.prototype),g.prototype.open=function(){var t=this;_(t.path,t.flags,t.mode,function(e,n){e?(t.destroy(),t.emit("error",e)):(t.fd=n,t.emit("open",n))})}),t.ReadStream=p,t.WriteStream=g;var m=t.open;function _(t,e,n,r){return"function"==typeof n&&(r=n,n=null),function t(e,n,r,i){return m(e,n,r,function(o,s){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?("function"==typeof i&&i.apply(this,arguments),d()):h([t,[e,n,r,i]])})}(t,e,n,r)}return t.open=_,t}function h(t){p("ENQUEUE",t[0].name,t[1]),a.push(t)}function d(){var t=a.shift();t&&(p("RETRY",t[0].name,t[1]),t[0].apply(null,t[1]))}c.debuglog?p=c.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(p=function(){var t=c.format.apply(c,arguments);t="GFS4: "+t.split(/\n/).join("\nGFS4: "),console.error(t)}),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){p(a),n(20).equal(a.length,0)}),t.exports=f(s(r)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!r.__patched&&(t.exports=f(r),r.__patched=!0),t.exports.close=(u=r.close,function(t,e){return u.call(r,t,function(t){t||d(),"function"==typeof e&&e.apply(this,arguments)})}),t.exports.closeSync=(l=r.closeSync,function(t){var e=l.apply(r,arguments);return d(),e}),/\bgraceful-fs\b/.test(r.closeSync.toString())||(r.closeSync=t.exports.closeSync,r.close=t.exports.close)},function(t,e){t.exports=require("stream")},function(t,e,n){"use strict";e.fromCallback=function(t){return Object.defineProperty(function(){if("function"!=typeof arguments[arguments.length-1])return new Promise((e,n)=>{arguments[arguments.length]=(t,r)=>{if(t)return n(t);e(r)},arguments.length++,t.apply(this,arguments)});t.apply(this,arguments)},"name",{value:t.name})},e.fromPromise=function(t){return Object.defineProperty(function(){const e=arguments[arguments.length-1];if("function"!=typeof e)return t.apply(this,arguments);t.apply(this,arguments).then(t=>e(null,t),e)},"name",{value:t.name})}},function(t,e,n){(function(){var e,r,i,o,s,a,c,u,l,p,f,h,d={}.hasOwnProperty;h=n(15),f=h.isObject,p=h.isFunction,l=h.isEmpty,s=null,e=null,r=null,i=null,o=null,c=null,u=null,a=null,t.exports=function(){function t(t){this.parent=t,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.children=[],s||(s=n(31),e=n(32),r=n(33),i=n(34),o=n(35),c=n(40),u=n(41),a=n(42))}return t.prototype.element=function(t,e,n){var r,i,o,s,a,c,u,h,g,m;if(c=null,null==e&&(e={}),e=e.valueOf(),f(e)||(n=(g=[e,n])[0],e=g[1]),null!=t&&(t=t.valueOf()),Array.isArray(t))for(o=0,u=t.length;o!0).catch(()=>!1)}),pathExistsSync:i.existsSync}},function(t,e,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function i(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)i(n,r)&&(t[r]=n[r])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var o={arraySet:function(t,e,n,r,i){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+r),i);else for(var o=0;on&&a>0?(s+=t.common.lineHeight,o=i[a]+" "):o=c}return s}n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i})},function(t,e){t.exports=require("events")},function(t,e,n){try{var r=n(3);if("function"!=typeof r.inherits)throw"";t.exports=r.inherits}catch(e){t.exports=n(225)}},function(t,e,n){"use strict";var r=n(43),i=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=p;var o=n(23);o.inherits=n(18);var s=n(97),a=n(100);o.inherits(p,s);for(var c=i(a.prototype),u=0;u1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}if(t=B(t,360),e=B(e,100),n=B(n,100),0===e)r=i=o=n;else{var a=n<.5?n*(1+e):n+e-n*e,c=2*n-a;r=s(c,a,t+1/3),i=s(c,a,t),o=s(c,a,t-1/3)}return{r:255*r,g:255*i,b:255*o}}(t.h,r,c),p=!0,f="hsl"),t.hasOwnProperty("a")&&(n=t.a));var h,d,g;return n=P(n),{ok:p,format:t.format||f,r:u(255,l(e.r,0)),g:u(255,l(e.g,0)),b:u(255,l(e.b,0)),a:n}}(t);this._originalInput=t,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=c(100*this._a)/100,this._format=e.format||n.format,this._gradientType=e.gradientType,this._r<1&&(this._r=c(this._r)),this._g<1&&(this._g=c(this._g)),this._b<1&&(this._b=c(this._b)),this._ok=n.ok,this._tc_id=a++}function h(t,e,n){t=B(t,255),e=B(e,255),n=B(n,255);var r,i,o=l(t,e,n),s=u(t,e,n),a=(o+s)/2;if(o==s)r=i=0;else{var c=o-s;switch(i=a>.5?c/(2-o-s):c/(o+s),o){case t:r=(e-n)/c+(e>1)+720)%360;--e;)r.h=(r.h+i)%360,o.push(f(r));return o}function A(t,e){e=e||6;for(var n=f(t).toHsv(),r=n.h,i=n.s,o=n.v,s=[],a=1/e;e--;)s.push(f({h:r,s:i,v:o})),o=(o+a)%1;return s}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,n,r=this.toRgb();return t=r.r/255,e=r.g/255,n=r.b/255,.2126*(t<=.03928?t/12.92:i.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:i.pow((e+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:i.pow((n+.055)/1.055,2.4))},setAlpha:function(t){return this._a=P(t),this._roundA=c(100*this._a)/100,this},toHsv:function(){var t=d(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=d(this._r,this._g,this._b),e=c(360*t.h),n=c(100*t.s),r=c(100*t.v);return 1==this._a?"hsv("+e+", "+n+"%, "+r+"%)":"hsva("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var t=h(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=h(this._r,this._g,this._b),e=c(360*t.h),n=c(100*t.s),r=c(100*t.l);return 1==this._a?"hsl("+e+", "+n+"%, "+r+"%)":"hsla("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(t){return g(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,n,r,i){var o=[L(c(t).toString(16)),L(c(e).toString(16)),L(c(n).toString(16)),L(N(r))];if(i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:c(this._r),g:c(this._g),b:c(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+c(this._r)+", "+c(this._g)+", "+c(this._b)+")":"rgba("+c(this._r)+", "+c(this._g)+", "+c(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:c(100*B(this._r,255))+"%",g:c(100*B(this._g,255))+"%",b:c(100*B(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+c(100*B(this._r,255))+"%, "+c(100*B(this._g,255))+"%, "+c(100*B(this._b,255))+"%)":"rgba("+c(100*B(this._r,255))+"%, "+c(100*B(this._g,255))+"%, "+c(100*B(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(T[g(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+m(this._r,this._g,this._b,this._a),n=e,r=this._gradientType?"GradientType = 1, ":"";if(t){var i=f(t);n="#"+m(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+e+",endColorstr="+n+")"},toString:function(t){var e=!!t;t=t||this._format;var n=!1,r=this._a<1&&this._a>=0;return e||!r||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(n=this.toRgbString()),"prgb"===t&&(n=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(n=this.toHexString()),"hex3"===t&&(n=this.toHexString(!0)),"hex4"===t&&(n=this.toHex8String(!0)),"hex8"===t&&(n=this.toHex8String()),"name"===t&&(n=this.toName()),"hsl"===t&&(n=this.toHslString()),"hsv"===t&&(n=this.toHsvString()),n||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return f(this.toString())},_applyModification:function(t,e){var n=t.apply(null,[this].concat([].slice.call(e)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(v,arguments)},brighten:function(){return this._applyModification(x,arguments)},darken:function(){return this._applyModification(w,arguments)},desaturate:function(){return this._applyModification(_,arguments)},saturate:function(){return this._applyModification(b,arguments)},greyscale:function(){return this._applyModification(y,arguments)},spin:function(){return this._applyModification(k,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(C,arguments)},complement:function(){return this._applyCombination(E,arguments)},monochromatic:function(){return this._applyCombination(A,arguments)},splitcomplement:function(){return this._applyCombination(O,arguments)},triad:function(){return this._applyCombination(D,arguments)},tetrad:function(){return this._applyCombination(S,arguments)}},f.fromRatio=function(t,e){if("object"==typeof t){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]="a"===r?t[r]:M(t[r]));t=n}return f(t,e)},f.equals=function(t,e){return!(!t||!e)&&f(t).toRgbString()==f(e).toRgbString()},f.random=function(){return f.fromRatio({r:p(),g:p(),b:p()})},f.mix=function(t,e,n){n=0===n?0:n||50;var r=f(t).toRgb(),i=f(e).toRgb(),o=n/100;return f({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a})},f.readability=function(t,e){var n=f(t),r=f(e);return(i.max(n.getLuminance(),r.getLuminance())+.05)/(i.min(n.getLuminance(),r.getLuminance())+.05)},f.isReadable=function(t,e,n){var r,i,o=f.readability(t,e);switch(i=!1,(r=function(t){var e,n;e=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(t.size||"small").toLowerCase(),"AA"!==e&&"AAA"!==e&&(e="AA");"small"!==n&&"large"!==n&&(n="small");return{level:e,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":i=o>=4.5;break;case"AAlarge":i=o>=3;break;case"AAAsmall":i=o>=7}return i},f.mostReadable=function(t,e,n){var r,i,o,s,a=null,c=0;i=(n=n||{}).includeFallbackColors,o=n.level,s=n.size;for(var u=0;uc&&(c=r,a=f(e[u]));return f.isReadable(t,a,{level:o,size:s})||!i?a:(n.includeFallbackColors=!1,f.mostReadable(t,["#fff","#000"],n))};var I=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},T=f.hexNames=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}(I);function P(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function B(t,e){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var n=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=u(e,l(0,parseFloat(t))),n&&(t=parseInt(t*e,10)/100),i.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function F(t){return u(1,l(0,t))}function j(t){return parseInt(t,16)}function L(t){return 1==t.length?"0"+t:""+t}function M(t){return t<=1&&(t=100*t+"%"),t}function N(t){return i.round(255*parseFloat(t)).toString(16)}function z(t){return j(t)/255}var R,U,G,H=(U="[\\s|\\(]+("+(R="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+R+")[,|\\s]+("+R+")\\s*\\)?",G="[\\s|\\(]+("+R+")[,|\\s]+("+R+")[,|\\s]+("+R+")[,|\\s]+("+R+")\\s*\\)?",{CSS_UNIT:new RegExp(R),rgb:new RegExp("rgb"+U),rgba:new RegExp("rgba"+G),hsl:new RegExp("hsl"+U),hsla:new RegExp("hsla"+G),hsv:new RegExp("hsv"+U),hsva:new RegExp("hsva"+G),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function $(t){return!!H.CSS_UNIT.exec(t)}t.exports?t.exports=f:void 0===(r=function(){return f}.call(e,n,e,t))||(t.exports=r)}(Math)},function(t,e,n){var r=n(160);function i(t,e){var n=new r(t,e);return function(t){return n.convert(t)}}i.BIN="01",i.OCT="01234567",i.DEC="0123456789",i.HEX="0123456789abcdef",t.exports=i},function(t,e){function n(t,e){this.size=this.size||t,this.smallerSize=this.smallerSize||e,function(t){for(var e=1;el?"1":"0";return p};var i=[];t.exports=n},function(t,e,n){!function(){var e={};function r(){"undefined"==typeof process&&console.log.apply(console,arguments)}t.exports=e,function(t,e){var n,i,o;n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function t(t){this.message="JPEG error: "+t}return t.prototype=Error(),t.prototype.name="JpegError",t.constructor=t}(),o=function(){function t(t,e){this.message=t,this.g=e}return t.prototype=Error(),t.prototype.name="DNLMarkerError",t.constructor=t}(),function(){function e(){this.M=null,this.B=-1}function r(t,e){for(var n,r,i=0,o=[],s=16;0>--A&1;if(255===(C=t[e++])){var n=t[e++];if(n){if(220===n&&D){e+=2;var s=t[e++]<<8|t[e++];if(0>>7}function g(t){for(;;){if("number"==typeof(t=t[d()]))return t;if("object"!==(void 0===t?"undefined":n(t)))throw new i("invalid huffman sequence")}}function m(t){for(var e=0;0=1<>=4,0===i){if(15>r){I=m(r)+(1<t.a[n]?-1:1;switch(T){case 0:if(n=15&(o=g(t.o)),o>>=4,0===n)15>o?(I=m(o)+(1<n;){var r=g(t.o),i=15&r;if(r>>=4,0===i){if(15>r)break;n+=16}else n+=r,t.a[e+u[n]]=_(i),n++}},F=0,j=1===P?s[0].c*s[0].l:S*r.O;F=M)throw new i("marker was not found");if(!(65488<=M&&65495>=M))break;e+=2}return(M=c(t,e))&&M.f&&((0,_util.warn)("decodeScan - unexpected Scan data, current marker is: "+M.f),e=M.offset),e-O}function a(t,e){for(var n=e.c,r=e.l,o=new Int16Array(64),s=0;sf;f+=8){var h=p[c+f],d=p[c+f+1],g=p[c+f+2],m=p[c+f+3],_=p[c+f+4],b=p[c+f+5],y=p[c+f+6],v=p[c+f+7];if(h*=l[f],0==(d|g|m|_|b|y|v))h=5793*h+512>>10,u[f]=h,u[f+1]=h,u[f+2]=h,u[f+3]=h,u[f+4]=h,u[f+5]=h,u[f+6]=h,u[f+7]=h;else{d*=l[f+1],g*=l[f+2],m*=l[f+3],_*=l[f+4],b*=l[f+5];var x=5793*h+128>>8,w=5793*_+128>>8,k=g,E=y*=l[f+6];w=(x=x+w+1>>1)-w,h=3784*k+1567*E+128>>8,k=1567*k-3784*E+128>>8,b=(_=(_=2896*(d-(v*=l[f+7]))+128>>8)+(b<<=4)+1>>1)-b,m=(v=(v=2896*(d+v)+128>>8)+(m<<=4)+1>>1)-m,E=(x=x+(E=h)+1>>1)-E,k=(w=w+k+1>>1)-k,h=2276*_+3406*v+2048>>12,_=3406*_-2276*v+2048>>12,v=h,h=799*m+4017*b+2048>>12,m=4017*m-799*b+2048>>12,b=h,u[f]=x+v,u[f+7]=x-v,u[f+1]=w+b,u[f+6]=w-b,u[f+2]=k+m,u[f+5]=k-m,u[f+3]=E+_,u[f+4]=E-_}}for(l=0;8>l;++l)h=u[l],0==((d=u[l+8])|(g=u[l+16])|(m=u[l+24])|(_=u[l+32])|(b=u[l+40])|(y=u[l+48])|(v=u[l+56]))?(h=-2040>(h=5793*h+8192>>14)?0:2024<=h?255:h+2056>>4,p[c+l]=h,p[c+l+8]=h,p[c+l+16]=h,p[c+l+24]=h,p[c+l+32]=h,p[c+l+40]=h,p[c+l+48]=h,p[c+l+56]=h):(x=5793*h+2048>>12,w=5793*_+2048>>12,h=3784*(k=g)+1567*(E=y)+2048>>12,k=1567*k-3784*E+2048>>12,E=h,b=(_=(_=2896*(d-v)+2048>>12)+b+1>>1)-b,m=(v=(v=2896*(d+v)+2048>>12)+m+1>>1)-m,h=2276*_+3406*v+2048>>12,_=3406*_-2276*v+2048>>12,v=h,h=799*m+4017*b+2048>>12,m=4017*m-799*b+2048>>12,d=(w=(w=(x=4112+(x+w+1>>1))-w)+k+1>>1)+(b=h),y=w-b,b=(k=w-k)-m,h=16>(h=(x=x+E+1>>1)+v)?0:4080<=h?255:h>>4,d=16>d?0:4080<=d?255:d>>4,g=16>(g=k+m)?0:4080<=g?255:g>>4,m=16>(m=(E=x-E)+_)?0:4080<=m?255:m>>4,_=16>(_=E-_)?0:4080<=_?255:_>>4,b=16>b?0:4080<=b?255:b>>4,y=16>y?0:4080<=y?255:y>>4,v=16>(v=x-v)?0:4080<=v?255:v>>4,p[c+l]=h,p[c+l+8]=d,p[c+l+16]=g,p[c+l+24]=m,p[c+l+32]=_,p[c+l+40]=b,p[c+l+48]=y,p[c+l+56]=v)}return e.a}function c(t,e){var n=2=r)return null;var i=t[e]<<8|t[e+1];if(65472<=i&&65534>=i)return{f:null,F:i,offset:e};for(var o=t[n]<<8|t[n+1];!(65472<=o&&65534>=o);){if(++n>=r)return null;o=t[n]<<8|t[n+1]}return{f:i.toString(16),F:o,offset:n}}var u=new Uint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]);e.prototype={parse:function(t){function e(){var e=t[h]<<8|t[h+1];return h+=2,e}function n(){var n=e(),r=c(t,n=h+n-2,h);return r&&r.f&&((0,_util.warn)("readDataBlock - incorrect length, current marker is: "+r.f),n=r.offset),n=t.subarray(h,n),h+=n.length,n}function l(t){for(var e=Math.ceil(t.v/8/t.s),n=Math.ceil(t.g/8/t.u),r=0;r>4)for(y=0;64>y;y++)w[v=u[y]]=t[h++];else{if(1!=x>>4)throw new i("DQT - invalid table spec");for(y=0;64>y;y++)w[v=u[y]]=e()}p[15&x]=w}break;case 65472:case 65473:case 65474:if(k)throw new i("Only single frame JPEGs supported");e();var k={};for(k.X=65473===b,k.S=65474===b,k.precision=t[h++],b=e(),k.g=f||b,k.v=e(),k.b=[],k.C={},y=t[h++],b=w=x=0;b>4,D=15&t[h+1];xy;y++,h++)E+=w[y]=t[h];for(D=new Uint8Array(E),y=0;y>4?_:m)[15&x]=r(w,D)}break;case 65501:e();var S=e();break;case 65498:for(y=1==++g&&!f,e(),x=t[h++],v=[],b=0;b>4],O.o=m[15&w],v.push(O)}b=t[h++],x=t[h++],w=t[h++];try{var C=s(t,h,k,v,S,b,x,w>>4,15&w,y);h+=C}catch(e){if(e instanceof o)return(0,_util.warn)('Attempting to re-parse JPEG image using "scanLines" parameter found in DNL marker (0xFFDC) segment.'),this.parse(t,{N:e.g});throw e}break;case 65500:h+=4;break;case 65535:255!==t[h]&&h--;break;default:if(255===t[h-3]&&192<=t[h-2]&&254>=t[h-2])h-=3;else{if(!(y=c(t,h-2))||!y.f)throw new i("unknown marker "+b.toString(16));(0,_util.warn)("JpegImage.parse - unexpected data, current marker is: "+y.f),h=y.offset}}b=e()}for(this.width=k.v,this.height=k.g,this.A=d,this.b=[],b=0;b>8)+o[i+1];return c},w:function(){return this.A?!!this.A.W:3===this.i?0!==this.B:1===this.B},I:function(t){for(var e,n,r,i=0,o=t.length;i>>3)]),null==h&&(h=a.t325);var d=new Uint8Array(a.height*(p>>>3)),g=0;if(null!=a.t322){for(var m=a.t322[0],_=a.t323[0],b=Math.floor((a.width+m-1)/m),y=Math.floor((a.height+_-1)/_),v=new Uint8Array(0|Math.ceil(m*_*l/8)),x=0;x>>8;else{if(12!=d)throw new Error("unsupported bit depth "+d);for(p=0;p>>4,o[s++]=255&(g[p]<<4|g[p+1]>>>8),o[s++]=255&g[p+1]}}else{var _=new t.JpegDecoder;_.parse(u);var b=_.getData(_.width,_.height);for(p=0;p1),!f){if(255==e[n]&&216==e[n+1])return{jpegOffset:n};if(null!=h&&(255==e[n+d]&&216==e[n+d+1]?l=n+d:r("JPEGInterchangeFormat does not point to SOI"),null==g?r("JPEGInterchangeFormatLength field is missing"):(d>=p||d+m<=p)&&r("JPEGInterchangeFormatLength field value is invalid"),null!=l))return{jpegOffset:l}}if(null!=b&&(y=b[0],v=b[1]),null!=h&&null!=g)if(m>=2&&d+m<=p){for(o=255==e[n+d+m-2]&&216==e[n+d+m-1]?new Uint8Array(m-2):new Uint8Array(m),a=0;a offset to first strip or tile");if(null==o){var k=0,E=[];E[k++]=255,E[k++]=216;var D=t.t519;if(null==D)throw new Error("JPEGQTables tag is missing");for(a=0;a>>8,E[k++]=255&O,E[k++]=a|u<<4,c=0;c<16;c++)E[k++]=e[n+S[a]+c];for(c=0;c>>8&255,E[k++]=255&t.height,E[k++]=t.width>>>8&255,E[k++]=255&t.width,E[k++]=x,1==x)E[k++]=1,E[k++]=17,E[k++]=0;else for(a=0;a<3;a++)E[k++]=a+1,E[k++]=0!=a?17:(15&y)<<4|15&v,E[k++]=a;null!=w&&0!=w[0]&&(E[k++]=255,E[k++]=221,E[k++]=0,E[k++]=4,E[k++]=w[0]>>>8&255,E[k++]=255&w[0]),o=new Uint8Array(E)}var C=-1;for(a=0;a>>8&255,o[I++]=255&t.height,o[I++]=t.width>>>8&255,o[I++]=255&t.width,o[I++]=x,1==x)o[I++]=1,o[I++]=17,o[I++]=0;else for(a=0;a<3;a++)o[I++]=a+1,o[I++]=0!=a?17:(15&y)<<4|15&v,o[I++]=a}if(255==e[p]&&218==e[p+1]){var T=e[p+2]<<8|e[p+3];for((s=new Uint8Array(T+2))[0]=e[p],s[1]=e[p+1],s[2]=e[p+2],s[3]=e[p+3],a=0;a>>8&255,u[l.sofPosition+6]=255&e.height,u[l.sofPosition+7]=e.width>>>8&255,u[l.sofPosition+8]=255&e.width,255==n[r]&&n[r+1]==SOS||(u.set(l.sosMarker,bufoff),bufoff+=sosMarker.length),h=0;h=0&&c<128)for(var u=0;u=-127&&c<0){for(u=0;u<1-c;u++)s[i]=o[e],i++;e++}}},t.decode._decodeThunder=function(t,e,n,r,i){for(var o=[0,1,0,-1],s=[0,1,2,3,0,-3,-2,-1],a=e+n,c=2*i,u=0;e>>6,f=63&l;if(e++,3==p&&(u=15&f,r[c>>>1]|=u<<4*(1-c&1),c++),0==p)for(var h=0;h>>1]|=u<<4*(1-c&1),c++;if(2==p)for(h=0;h<2;h++){4!=(d=f>>>3*(1-h)&7)&&(u+=s[d],r[c>>>1]|=u<<4*(1-c&1),c++)}if(1==p)for(h=0;h<3;h++){var d;2!=(d=f>>>2*(2-h)&3)&&(u+=o[d],r[c>>>1]|=u<<4*(1-c&1),c++)}}},t.decode._dmap={1:0,"011":1,"000011":2,"0000011":3,"010":-1,"000010":-2,"0000010":-3},t.decode._lens=function(){var t=function(t,e,n,r){for(var i=0;i>>3>>3]>>>7-(7&u)&1),2==a&&(E=e[u>>>3]>>>(7&u)&1),u++,p+=E,"H"==x){if(null!=c._lens[y][p]){var D=c._lens[y][p];p="",l+=D,D<64&&(c._addNtimes(f,l,y),g+=l,y=1-y,l=0,0==--w&&(x=""))}}else"0001"==p&&(p="",c._addNtimes(f,b-g,y),g=b),"001"==p&&(p="",x="H",w=2),null!=c._dmap[p]&&(m=_+c._dmap[p],c._addNtimes(f,m-g,y),g=m,p="",y=1-y);f.length==s&&""==x&&(c._writeBits(f,i,8*o+v*k),y=0,v++,g=0,h=c._makeDiff(f),f=[])}},t.decode._findDiff=function(t,e,n){for(var r=0;r=e&&t[r+1]==n)return t[r]},t.decode._makeDiff=function(t){var e=[];1==t[0]&&e.push(0,1);for(var n=1;n>>3>>3]>>>7-(7&u)&1),2==a&&(D=e[u>>>3]>>>(7&u)&1),u++,p+=D,k){if(null!=c._lens[y][p]){var S=c._lens[y][p];p="",l+=S,S<64&&(c._addNtimes(f,l,y),y=1-y,l=0)}}else if("H"==x){if(null!=c._lens[y][p]){S=c._lens[y][p];p="",l+=S,S<64&&(c._addNtimes(f,l,y),g+=l,y=1-y,l=0,0==--w&&(x=""))}}else"0001"==p&&(p="",c._addNtimes(f,b-g,y),g=b),"001"==p&&(p="",x="H",w=2),null!=c._dmap[p]&&(m=_+c._dmap[p],c._addNtimes(f,m-g,y),g=m,p="",y=1-y);p.endsWith("000000000001")&&(v>=0&&c._writeBits(f,i,8*o+v*E),1==a&&(k=1==(e[u>>>3]>>>7-(7&u)&1)),2==a&&(k=1==(e[u>>>3]>>>(7&u)&1)),u++,null==c._decodeG3.allow2D&&(c._decodeG3.allow2D=k),c._decodeG3.allow2D||(k=!0,u--),p="",y=0,v++,g=0,h=c._makeDiff(f),f=[])}f.length==s&&c._writeBits(f,i,8*o+v*E)},t.decode._addNtimes=function(t,e,n){for(var r=0;r>>3]|=t[r]<<7-(n+r&7)},t.decode._decodeLZW=function(e,n,r,i){if(null==t.decode._lzwTab){for(var o=new Uint32Array(65535),s=new Uint16Array(65535),a=new Uint8Array(2e6),c=0;c<256;c++)a[c<<2]=c,o[c]=c<<2,s[c]=1;t.decode._lzwTab=[o,s,a]}for(var u=t.decode._copyData,l=t.decode._lzwTab[0],p=t.decode._lzwTab[1],f=(a=t.decode._lzwTab[2],258),h=1032,d=9,g=n<<3,m=0,_=0;m=(e[g>>>3]<<16|e[g+8>>>3]<<8|e[g+16>>>3])>>24-(7&g)-d&(1<>>3]<<16|e[g+8>>>3]<<8|e[g+16>>>3])>>24-(7&g)-d&(1<=f)l[f]=h,a[l[f]]=b[0],p[f]=1,h=h+1+3&-4,f++;else l[f]=h,u(a,l[_],a,h,v=p[_]),a[h+v]=a[b],v++,p[f]=v,f++,h=h+v+3&-4;f+1==1<=f)l[f]=h,p[f]=0,f++;else l[f]=h,u(a,l[_],a,h,v=p[_]),a[h+v]=a[h],v++,p[f]=v,f++,u(a,h,r,i,v),i+=v,h=h+v+3&-4;f+1==1<4&&(e.writeUint(n,r,s),d=s),2==l&&e.writeASCII(n,d,p),3==l)for(var g=0;g4&&(s+=h+=1&h),r+=4}return[r,s]},t.toRGBA8=function(t){var e=t.width,n=t.height,i=e*n,o=4*i,s=t.data,a=new Uint8Array(4*i),c=t.t262[0],u=t.t258?Math.min(32,t.t258[0]):1,l=t.isLE?1:0;if(0==c)for(var p=Math.ceil(u*e/8),f=0;f>3)]>>7-(7&g)&1;a[m]=a[m+1]=a[m+2]=255*(1-_),a[m+3]=255}if(4==u)for(g=0;g>1)]>>4-4*(1&g)&15;a[m]=a[m+1]=a[m+2]=17*(15-_),a[m+3]=255}if(8==u)for(g=0;g>3)]>>7-(7&g)&1;a[m]=a[m+1]=a[m+2]=255*_,a[m+3]=255}if(2==u)for(g=0;g>2)]>>6-2*(3&g)&3;a[m]=a[m+1]=a[m+2]=85*_,a[m+3]=255}if(8==u)for(g=0;g0)for(g=0;g>8,a[m+1]=y[256+v]>>8,a[m+2]=y[512+v]>>8,a[m+3]=255}}else if(5==c){var x,w=(x=t.t258?t.t258.length:4)>4?1:0;for(g=0;g>8&255,t[e+1]=255&n},writeUint:function(t,e,n){t[e]=n>>24&255,t[e+1]=n>>16&255,t[e+2]=n>>8&255,t[e+3]=n>>0&255},writeASCII:function(t,e,n){for(var r=0;ro)return!0;if(u===o){if(l>s)return!0;if(l===s&&p>=a)return!0}return!1}function h(t,e){const n=i.resolve(t).split(i.sep).filter(t=>t),r=i.resolve(e).split(i.sep).filter(t=>t);return n.reduce((t,e,n)=>t&&r[n]===e,!0)}function d(t,e,n){return`Cannot ${n} '${t}' to a subdirectory of itself, '${e}'.`}t.exports={checkPaths:function(t,e,n,i){!function(t,e,n){f()?r.stat(t,{bigint:!0},(t,i)=>{if(t)return n(t);r.stat(e,{bigint:!0},(t,e)=>t?"ENOENT"===t.code?n(null,{srcStat:i,destStat:null}):n(t):n(null,{srcStat:i,destStat:e}))}):r.stat(t,(t,i)=>{if(t)return n(t);r.stat(e,(t,e)=>t?"ENOENT"===t.code?n(null,{srcStat:i,destStat:null}):n(t):n(null,{srcStat:i,destStat:e}))})}(t,e,(r,o)=>{if(r)return i(r);const{srcStat:s,destStat:a}=o;return a&&a.ino&&a.dev&&a.ino===s.ino&&a.dev===s.dev?i(new Error("Source and destination must not be the same.")):s.isDirectory()&&h(t,e)?i(new Error(d(t,e,n))):i(null,{srcStat:s,destStat:a})})},checkPathsSync:function(t,e,n){const{srcStat:i,destStat:o}=function(t,e){let n,i;n=f()?r.statSync(t,{bigint:!0}):r.statSync(t);try{i=f()?r.statSync(e,{bigint:!0}):r.statSync(e)}catch(t){if("ENOENT"===t.code)return{srcStat:n,destStat:null};throw t}return{srcStat:n,destStat:i}}(t,e);if(o&&o.ino&&o.dev&&o.ino===i.ino&&o.dev===i.dev)throw new Error("Source and destination must not be the same.");if(i.isDirectory()&&h(t,e))throw new Error(d(t,e,n));return{srcStat:i,destStat:o}},checkParentPaths:function t(e,n,o,s,a){const c=i.resolve(i.dirname(e)),u=i.resolve(i.dirname(o));if(u===c||u===i.parse(u).root)return a();f()?r.stat(u,{bigint:!0},(r,i)=>r?"ENOENT"===r.code?a():a(r):i.ino&&i.dev&&i.ino===n.ino&&i.dev===n.dev?a(new Error(d(e,o,s))):t(e,n,u,s,a)):r.stat(u,(r,i)=>r?"ENOENT"===r.code?a():a(r):i.ino&&i.dev&&i.ino===n.ino&&i.dev===n.dev?a(new Error(d(e,o,s))):t(e,n,u,s,a))},checkParentPathsSync:function t(e,n,o,s){const a=i.resolve(i.dirname(e)),c=i.resolve(i.dirname(o));if(c===a||c===i.parse(c).root)return;let u;try{u=f()?r.statSync(c,{bigint:!0}):r.statSync(c)}catch(t){if("ENOENT"===t.code)return;throw t}if(u.ino&&u.dev&&u.ino===n.ino&&u.dev===n.dev)throw new Error(d(e,o,s));return t(e,n,c,s)},isSrcSubdir:h}},function(t,e,n){"use strict";const r=n(8).fromCallback,i=n(144);t.exports={remove:r(i),removeSync:i.sync}},function(t,e,n){(function(){var e,r,i,o,s,a={}.hasOwnProperty;s=n(15),o=s.isObject,i=s.isFunction,r=n(9),e=n(89),t.exports=function(t){function n(t,e,r){if(n.__super__.constructor.call(this,t),null==e)throw new Error("Missing element name");this.name=this.stringify.eleName(e),this.attributes={},null!=r&&this.attribute(r),t.isDocument&&(this.isRoot=!0,this.documentObject=t,t.rootObject=this)}return function(t,e){for(var n in e)a.call(e,n)&&(t[n]=e[n]);function r(){this.constructor=t}r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype}(n,r),n.prototype.clone=function(){var t,e,n,r;for(e in(n=Object.create(this)).isRoot&&(n.documentObject=null),n.attributes={},r=this.attributes)a.call(r,e)&&(t=r[e],n.attributes[e]=t.clone());return n.children=[],this.children.forEach(function(t){var e;return(e=t.clone()).parent=n,n.children.push(e)}),n},n.prototype.attribute=function(t,n){var r,s;if(null!=t&&(t=t.valueOf()),o(t))for(r in t)a.call(t,r)&&(s=t[r],this.attribute(r,s));else i(n)&&(n=n.apply()),this.options.skipNullAttributes&&null==n||(this.attributes[t]=new e(this,t,n));return this},n.prototype.removeAttribute=function(t){var e,n,r;if(null==t)throw new Error("Missing attribute name");if(t=t.valueOf(),Array.isArray(t))for(n=0,r=t.length;n3?p-3:0),h=3;h=t.length||e<0?t:t.slice(0,e).concat(t.slice(e+1))}function _(t,e,n){if(t[e]===n)return t;for(var r=t.length,i=Array(r),o=0;o6?a-6:0),c=6;c6?a-6:0),c=6;c7?c-7:0),p=7;p=0||(o[l]=t[l])}return o}function O(t,e,n,r,i,o){for(var a=arguments.length,s=Array(a>6?a-6:0),c=6;c0&&this.height>0?new Buffer(4*this.width*this.height):null,t.fill&&this.data&&this.data.fill(0),this.gamma=0,this.readable=this.writable=!0,this._parser=new o(t),this._parser.on("error",this.emit.bind(this,"error")),this._parser.on("close",this._handleClose.bind(this)),this._parser.on("metadata",this._metadata.bind(this)),this._parser.on("gamma",this._gamma.bind(this)),this._parser.on("parsed",function(t){this.data=t,this.emit("parsed",t)}.bind(this)),this._packer=new a(t),this._packer.on("data",this.emit.bind(this,"data")),this._packer.on("end",this.emit.bind(this,"end")),this._parser.on("close",this._handleClose.bind(this)),this._packer.on("error",this.emit.bind(this,"error"))};r.inherits(c,i),c.sync=s,c.prototype.pack=function(){return this.data&&this.data.length?(process.nextTick(function(){this._packer.pack(this.data,this.width,this.height,this.gamma)}.bind(this)),this):(this.emit("error","No data provided"),this)},c.prototype.parse=function(t,e){var n,r;e&&(n=function(t){this.removeListener("error",r),this.data=t,e(null,this)}.bind(this),r=function(t){this.removeListener("parsed",n),e(t,null)}.bind(this),this.once("parsed",n),this.once("error",r));return this.end(t),this},c.prototype.write=function(t){return this._parser.write(t),!0},c.prototype.end=function(t){this._parser.end(t)},c.prototype._metadata=function(t){this.width=t.width,this.height=t.height,this.emit("metadata",t)},c.prototype._gamma=function(t){this.gamma=t},c.prototype._handleClose=function(){this._parser.writable||this._packer.readable||this.emit("close")},c.bitblt=function(t,e,n,r,i,o,a,s){if(r|=0,i|=0,o|=0,a|=0,s|=0,(n|=0)>t.width||r>t.height||n+i>t.width||r+o>t.height)throw new Error("bitblt reading outside image");if(a>e.width||s>e.height||a+i>e.width||s+o>e.height)throw new Error("bitblt writing outside image");for(var c=0;c"+this.newline},n.prototype.comment=function(t,e){return this.space(e)+"\x3c!-- "+t.text+" --\x3e"+this.newline},n.prototype.declaration=function(t,e){var n;return n=this.space(e),n+='",n+=this.newline},n.prototype.docType=function(t,n){var c,u,l,f,h;if(n||(n=0),f=this.space(n),f+="0){for(f+=" [",f+=this.newline,u=0,l=(h=t.children).length;u",f+=this.newline},n.prototype.element=function(t,n){var i,o,a,s,c,u,d,m,_,b,y,v,x;for(d in n||(n=0),x=!1,this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),m="",m+=(v=this.space(n))+"<"+t.name,_=t.attributes)g.call(_,d)&&(i=_[d],m+=this.attribute(i));if(0===t.children.length||t.children.every(function(t){return""===t.value}))this.allowEmpty?m+=">"+this.newline:m+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&1===t.children.length&&null!=t.children[0].value)m+=">",m+=t.children[0].value,m+=""+this.newline;else{if(this.dontprettytextnodes)for(a=0,c=(b=t.children).length;a"+this.newline,s=0,u=(y=t.children).length;s"+this.newline}return m},n.prototype.processingInstruction=function(t,e){var n;return n=this.space(e)+""+this.newline},n.prototype.raw=function(t,e){return this.space(e)+t.value+this.newline},n.prototype.text=function(t,e){return this.space(e)+t.value+this.newline},n.prototype.dtdAttList=function(t,e){var n;return n=this.space(e)+""+this.newline},n.prototype.dtdElement=function(t,e){return this.space(e)+""+this.newline},n.prototype.dtdEntity=function(t,e){var n;return n=this.space(e)+""+this.newline},n.prototype.dtdNotation=function(t,e){var n;return n=this.space(e)+""+this.newline},n.prototype.openNode=function(t,e){var n,r,i,o;if(e||(e=0),t instanceof l){for(r in i=this.space(e)+"<"+t.name,o=t.attributes)g.call(o,r)&&(n=o[r],i+=this.attribute(n));return i+=(t.children?">":"/>")+this.newline}return i=this.space(e)+"")+this.newline},n.prototype.closeNode=function(t,e){switch(e||(e=0),!1){case!(t instanceof l):return this.space(e)+""+this.newline;case!(t instanceof u):return this.space(e)+"]>"+this.newline}},n}()}).call(this)},function(t,e,n){"use strict";const r=n(95),i=n(47),o=n(96);t.exports=()=>t=>{if(!Buffer.isBuffer(t)&&!i(t))return Promise.reject(new TypeError(`Expected a Buffer or Stream, got ${typeof t}`));if(Buffer.isBuffer(t)&&(!r(t)||"tar"!==r(t).ext))return Promise.resolve([]);const e=o.extract(),n=[];e.on("entry",(t,e,r)=>{const i=[];e.on("data",t=>i.push(t)),e.on("end",()=>{const e={data:Buffer.concat(i),mode:t.mode,mtime:t.mtime,path:t.name,type:t.type};"symlink"!==t.type&&"link"!==t.type||(e.linkname=t.linkname),n.push(e),r()})});const a=new Promise((r,i)=>{Buffer.isBuffer(t)||t.on("error",i),e.on("finish",()=>r(n)),e.on("error",i)});return e.then=a.then.bind(a),e.catch=a.catch.bind(a),Buffer.isBuffer(t)?e.end(t):t.pipe(e),e}},function(t,e,n){var r=n(4).Buffer,i=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];function o(t){if(r.isBuffer(t))return t;var e="function"==typeof r.alloc&&"function"==typeof r.from;if("number"==typeof t)return e?r.alloc(t):new r(t);if("string"==typeof t)return e?r.from(t):new r(t);throw new Error("input must be buffer, number, or string, received "+typeof t)}function a(t,e){t=o(t),r.isBuffer(e)&&(e=e.readUInt32BE(0));for(var n=-1^~~e,a=0;a>>8;return-1^n}function s(){return t=a.apply(null,arguments),(e=o(4)).writeInt32BE(t,0),e;var t,e}"undefined"!=typeof Int32Array&&(i=new Int32Array(i)),s.signed=function(){return a.apply(null,arguments)},s.unsigned=function(){return a.apply(null,arguments)>>>0},t.exports=s},function(t,e,n){t.exports=y;var r=n(5),i=n(109),o=n(56),a=(o.Minimatch,n(18)),s=n(17).EventEmitter,c=n(1),u=n(20),l=n(57),p=n(265),f=n(110),h=(f.alphasort,f.alphasorti,f.setopts),d=f.ownProp,g=n(266),m=(n(3),f.childrenIgnored),_=f.isIgnored,b=n(48);function y(t,e,n){if("function"==typeof e&&(n=e,e={}),e||(e={}),e.sync){if(n)throw new TypeError("callback provided to sync glob");return p(t,e)}return new x(t,e,n)}y.sync=p;var v=y.GlobSync=p.GlobSync;function x(t,e,n){if("function"==typeof e&&(n=e,e=null),e&&e.sync){if(n)throw new TypeError("callback provided to sync glob");return new v(t,e)}if(!(this instanceof x))return new x(t,e,n);h(this,t,e),this._didRealPath=!1;var r=this.minimatch.set.length;this.matches=new Array(r),"function"==typeof n&&(n=b(n),this.on("error",n),this.on("end",function(t){n(null,t)}));var i=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(0===r)return s();for(var o=!0,a=0;a1)return!0;for(var i=0;ithis.maxLength)return e();if(!this.stat&&d(this.cache,n)){var o=this.cache[n];if(Array.isArray(o)&&(o="DIR"),!i||"DIR"===o)return e(null,o);if(i&&"FILE"===o)return e()}var a=this.statCache[n];if(void 0!==a){if(!1===a)return e(null,a);var s=a.isDirectory()?"DIR":"FILE";return i&&"FILE"===s?e():e(null,s,a)}var c=this,u=g("stat\0"+n,function(i,o){if(o&&o.isSymbolicLink())return r.stat(n,function(r,i){r?c._stat2(t,n,null,o,e):c._stat2(t,n,r,i,e)});c._stat2(t,n,i,o,e)});u&&r.lstat(n,u)},x.prototype._stat2=function(t,e,n,r,i){if(n&&("ENOENT"===n.code||"ENOTDIR"===n.code))return this.statCache[e]=!1,i();var o="/"===t.slice(-1);if(this.statCache[e]=r,"/"===e.slice(-1)&&r&&!r.isDirectory())return i(null,!1,r);var a=!0;return r&&(a=r.isDirectory()?"DIR":"FILE"),this.cache[e]=this.cache[e]||a,o&&"FILE"===a?i():i(null,a,r)}},function(t,e,n){t.exports=d,d.Minimatch=g;var r={sep:"/"};try{r=n(1)}catch(t){}var i=d.GLOBSTAR=g.GLOBSTAR={},o=n(262),a={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},s="[^/]",c=s+"*?",u="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",l="(?:(?!(?:\\/|^)\\.).)*?",p="().*{}+?[]^$\\!".split("").reduce(function(t,e){return t[e]=!0,t},{});var f=/\/+/;function h(t,e){t=t||{},e=e||{};var n={};return Object.keys(e).forEach(function(t){n[t]=e[t]}),Object.keys(t).forEach(function(e){n[e]=t[e]}),n}function d(t,e,n){if("string"!=typeof e)throw new TypeError("glob pattern string required");return n||(n={}),!(!n.nocomment&&"#"===e.charAt(0))&&(""===e.trim()?""===t:new g(e,n).match(t))}function g(t,e){if(!(this instanceof g))return new g(t,e);if("string"!=typeof t)throw new TypeError("glob pattern string required");e||(e={}),t=t.trim(),"/"!==r.sep&&(t=t.split(r.sep).join("/")),this.options=e,this.set=[],this.pattern=t,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function m(t,e){if(e||(e=this instanceof g?this.options:{}),void 0===(t=void 0===t?this.pattern:t))throw new TypeError("undefined pattern");return e.nobrace||!t.match(/\{.*\}/)?[t]:o(t)}d.filter=function(t,e){return e=e||{},function(n,r,i){return d(n,t,e)}},d.defaults=function(t){if(!t||!Object.keys(t).length)return d;var e=d,n=function(n,r,i){return e.minimatch(n,r,h(t,i))};return n.Minimatch=function(n,r){return new e.Minimatch(n,h(t,r))},n},g.defaults=function(t){return t&&Object.keys(t).length?d.defaults(t).Minimatch:g},g.prototype.debug=function(){},g.prototype.make=function(){if(this._made)return;var t=this.pattern,e=this.options;if(!e.nocomment&&"#"===t.charAt(0))return void(this.comment=!0);if(!t)return void(this.empty=!0);this.parseNegate();var n=this.globSet=this.braceExpand();e.debug&&(this.debug=console.error);this.debug(this.pattern,n),n=this.globParts=n.map(function(t){return t.split(f)}),this.debug(this.pattern,n),n=n.map(function(t,e,n){return t.map(this.parse,this)},this),this.debug(this.pattern,n),n=n.filter(function(t){return-1===t.indexOf(!1)}),this.debug(this.pattern,n),this.set=n},g.prototype.parseNegate=function(){var t=this.pattern,e=!1,n=this.options,r=0;if(n.nonegate)return;for(var i=0,o=t.length;i65536)throw new TypeError("pattern is too long");var n=this.options;if(!n.noglobstar&&"**"===t)return i;if(""===t)return"";var r,o="",u=!!n.nocase,l=!1,f=[],h=[],d=!1,g=-1,m=-1,b="."===t.charAt(0)?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",y=this;function v(){if(r){switch(r){case"*":o+=c,u=!0;break;case"?":o+=s,u=!0;break;default:o+="\\"+r}y.debug("clearStateChar %j %j",r,o),r=!1}}for(var x,w=0,k=t.length;w-1;I--){var T=h[I],P=o.slice(0,T.reStart),B=o.slice(T.reStart,T.reEnd-8),F=o.slice(T.reEnd-8,T.reEnd),j=o.slice(T.reEnd);F+=j;var L=P.split("(").length-1,M=j;for(w=0;w=0&&!(i=t[o]);o--);for(o=0;o>> no match, partial?",t,f,e,h),f!==s))}if("string"==typeof l?(u=r.nocase?p.toLowerCase()===l.toLowerCase():p===l,this.debug("string match",l,p,u)):(u=p.match(l),this.debug("pattern match",l,p,u)),!u)return!1}if(o===s&&a===c)return!0;if(o===s)return n;if(a===c)return o===s-1&&""===t[o];throw new Error("wtf?")}},function(t,e,n){"use strict";function r(t){return"/"===t.charAt(0)}function i(t){var e=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(t),n=e[1]||"",r=Boolean(n&&":"!==n.charAt(1));return Boolean(e[2]||r)}t.exports="win32"===process.platform?i:r,t.exports.posix=r,t.exports.win32=i},function(t,e){var n=t.exports=function(){};n.prototype.getName=function(){},n.prototype.getSize=function(){},n.prototype.getLastModifiedDate=function(){},n.prototype.isDirectory=function(){}},function(t,e){var n=t.exports={};n.dateToDos=function(t,e){var n=(e=e||!1)?t.getFullYear():t.getUTCFullYear();return n<1980?2162688:n>=2044?2141175677:n-1980<<25|(e?t.getMonth():t.getUTCMonth())+1<<21|(e?t.getDate():t.getUTCDate())<<16|(e?t.getHours():t.getUTCHours())<<11|(e?t.getMinutes():t.getUTCMinutes())<<5|(e?t.getSeconds():t.getUTCSeconds())/2},n.dosToDate=function(t){return new Date(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1)},n.fromDosTime=function(t){return n.dosToDate(t.readUInt32LE())},n.getEightBytes=function(t){var e=new Buffer(8);return e.writeUInt32LE(t%4294967296,0),e.writeUInt32LE(t/4294967296|0,4),e},n.getShortBytes=function(t){var e=new Buffer(2);return e.writeUInt16LE((65535&t)>>>0,0),e},n.getShortBytesValue=function(t,e){return t.readUInt16LE(e)},n.getLongBytes=function(t){var e=new Buffer(4);return e.writeUInt32LE((4294967295&t)>>>0,0),e},n.getLongBytesValue=function(t,e){return t.readUInt32LE(e)},n.toDosTime=function(t){return n.getLongBytes(n.dateToDos(t))}},function(t){t.exports={name:"@ozelot379/convert-minecraft-java-texture-to-bedrock",productName:"ConvertMinecraftJavaTextureToBedrock",version:"1.0.12",description:"Convert Minecraft Java texture packs to Minecraft Bedrock texture packs",keywords:["Minecraft","Texture","Pack","Convert","Java","Bedrock"],author:"ozelot379",license:"GPL-3.0-only",repository:{type:"git",url:"git+https://github.com/ozelot379/ConvertMinecraftJavaTextureToBedrock.git"},bugs:{url:"https://github.com/ozelot379/ConvertMinecraftJavaTextureToBedrock/issues"},homepage:"https://github.com/ozelot379/ConvertMinecraftJavaTextureToBedrock#readme",dependencies:{},devDependencies:{decompress:"latest","fs-extra":"latest",jimp:"latest",mocha:"latest",tga:"latest",uuid:"latest",webpack:"latest","webpack-cli":"latest",yargs:"latest","zip-a-folder":"latest"},engines:{node:">=10.0.0"},main:"dist/index.js",bin:{ConvertMinecraftJavaTextureToBedrock:"dist/cli.js"},scripts:{build:"webpack",cli:"node dist/cli.js",debug:"webpack --mode=development && node dist/cli.js",test:"webpack --mode=development && mocha tests"}}},function(t,e,n){var r=n(171),i=n(172);t.exports={encode:r,decode:i}},function(t,e,n){var r=n(183),i=n(184);t.exports={encode:r,decode:i}},function(t,e){t.exports={nearestNeighbor:function(t,e){for(var n=t.width,r=t.height,i=e.width,o=e.height,a=t.data,s=e.data,c=0;c0?i[k-4]:2*i[k]-i[k+4],D=i[k],S=i[k+4],O=b0?d[M-4*p]:2*d[M]-d[M+4*p],z=d[M],R=d[M+4*p],U=P1)for(var H=0;H"function"==typeof i[t]);Object.keys(i).forEach(t=>{"promises"!==t&&(e[t]=i[t])}),o.forEach(t=>{e[t]=r(i[t])}),e.exists=function(t,e){return"function"==typeof e?i.exists(t,e):new Promise(e=>i.exists(t,e))},e.read=function(t,e,n,r,o,a){return"function"==typeof a?i.read(t,e,n,r,o,a):new Promise((a,s)=>{i.read(t,e,n,r,o,(t,e,n)=>{if(t)return s(t);a({bytesRead:e,buffer:n})})})},e.write=function(t,e,...n){return"function"==typeof n[n.length-1]?i.write(t,e,...n):new Promise((r,o)=>{i.write(t,e,...n,(t,e,n)=>{if(t)return o(t);r({bytesWritten:e,buffer:n})})})},"function"==typeof i.realpath.native&&(e.realpath.native=r(i.realpath.native))},function(t,e){t.exports=require("constants")},function(t,e,n){"use strict";t.exports={copySync:n(138)}},function(t,e,n){"use strict";const r=n(1);function i(t){return(t=r.normalize(r.resolve(t)).split(r.sep)).length>0?t[0]:null}const o=/[<>:"|?*]/;t.exports={getRootPath:i,invalidWin32Path:function(t){const e=i(t);return t=t.replace(e,""),o.test(t)}}},function(t,e,n){"use strict";const r=n(6),i=n(44),o=n(1);t.exports={hasMillisRes:function(t){let e=o.join("millis-test"+Date.now().toString()+Math.random().toString().slice(2));e=o.join(i.tmpdir(),e);const n=new Date(1435410243862);r.writeFile(e,"https://github.com/jprichardson/node-fs-extra/pull/141",i=>{if(i)return t(i);r.open(e,"r+",(i,o)=>{if(i)return t(i);r.futimes(o,n,n,n=>{if(n)return t(n);r.close(o,n=>{if(n)return t(n);r.stat(e,(e,n)=>{if(e)return t(e);t(null,n.mtime>1435410243e3)})})})})})},hasMillisResSync:function(){let t=o.join("millis-test-sync"+Date.now().toString()+Math.random().toString().slice(2));t=o.join(i.tmpdir(),t);const e=new Date(1435410243862);r.writeFileSync(t,"https://github.com/jprichardson/node-fs-extra/pull/141");const n=r.openSync(t,"r+");return r.futimesSync(n,e,e),r.closeSync(n),r.statSync(t).mtime>1435410243e3},timeRemoveMillis:function(t){if("number"==typeof t)return 1e3*Math.floor(t/1e3);if(t instanceof Date)return new Date(1e3*Math.floor(t.getTime()/1e3));throw new Error("fs-extra: timeRemoveMillis() unknown parameter type")},utimesMillis:function(t,e,n,i){r.open(t,"r+",(t,o)=>{if(t)return i(t);r.futimes(o,e,n,t=>{r.close(o,e=>{i&&i(t||e)})})})},utimesMillisSync:function(t,e,n){const i=r.openSync(t,"r+");return r.futimesSync(i,e,n),r.closeSync(i)}}},function(t,e,n){"use strict";const r=n(8).fromCallback;t.exports={copy:r(n(142))}},function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=n(161),o=n(162),a=n(72),s=n(163),c=n(12),u=n(3),l=function(t,e){if("string"!=typeof t&&!t.hasOwnProperty("url"))throw new Error("Missing url option from options for request method.");var n="object"===(void 0===t?"undefined":r(t))?a.parse(t.url):a.parse(t),u={hostname:n.hostname,port:n.port||("http:"===n.protocol.toLowerCase()?80:443),path:n.path,method:"GET",headers:{},auth:n.auth||null,parse:"none",stream:!1};if("object"===(void 0===t?"undefined":r(t))&&(u=Object.assign(u,t)),u.port=Number(u.port),u.hasOwnProperty("timeout")&&delete u.timeout,!0===u.compressed&&(u.headers["accept-encoding"]="gzip, deflate"),t.hasOwnProperty("form")){if("object"!==r(t.form))throw new Error("phin 'form' option must be of type Object if present.");var l=s.stringify(t.form);u.headers["Content-Type"]="application/x-www-form-urlencoded",u.headers["Content-Length"]=Buffer.byteLength(l),t.data=l}var p=void 0,f=function(t){var n=t;!0===u.compressed&&("gzip"===t.headers["content-encoding"]?n=t.pipe(c.createGunzip()):"deflate"===t.headers["content-encoding"]&&(n=t.pipe(c.createInflate()))),!0===u.stream?(t.stream=n,e&&e(null,t)):(t.body=new Buffer([]),n.on("data",function(e){t.body=Buffer.concat([t.body,e])}),n.on("end",function(){if(e){if("json"===u.parse)try{t.body=JSON.parse(t.body.toString())}catch(n){return void e("Invalid JSON received.",t)}e(null,t)}}))};switch(n.protocol.toLowerCase()){case"http:":p=i.request(u,f);break;case"https:":p=o.request(u,f);break;default:return void(e&&e(new Error("Invalid / unknown URL protocol. Expected HTTP or HTTPS."),null))}if("number"==typeof t.timeout&&p.setTimeout(t.timeout,function(){p.abort(),e&&e(new Error("Timeout has been reached."),null),e=null}),p.on("error",function(t){e&&e(t,null)}),t.hasOwnProperty("data")){var h=t.data;if(!(t.data instanceof Buffer)&&"object"===r(t.data))if("application/x-www-form-urlencoded"===(u.headers["content-type"]||u.headers["Content-Type"]))h=s.stringify(t.data);else try{h=JSON.stringify(t.data)}catch(t){e&&e(new Error("Couldn't stringify object. (Likely due to a circular reference.)"),null)}p.write(h)}p.end()};l.promisified=function(t,e){return new Promise(function(e,n){l(t,function(t,r){t?n(t):e(r)})})},u.promisify&&(l[u.promisify.custom]=l.promisified),t.exports=l},function(t,e){t.exports=require("url")},function(t,e){function n(t,e){switch(t){case 1:return e.nextUInt8();case 3:return e.nextUInt16();case 4:return e.nextUInt32();case 5:return[e.nextUInt32(),e.nextUInt32()];case 6:return e.nextInt8();case 8:return e.nextUInt16();case 9:return e.nextUInt32();case 10:return[e.nextInt32(),e.nextInt32()];case 11:return e.nextFloat();case 12:return e.nextDouble();default:throw new Error("Invalid format while decoding: "+t)}}function r(t,e){var r,i,o=e.nextUInt16(),a=e.nextUInt16(),s=function(t){switch(t){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}}(a),c=e.nextUInt32(),u=s*c;if(u>4&&(e=t.openWithOffset(e.nextUInt32())),2===a){var l=(r=e.nextString(c)).indexOf("\0");-1!==l&&(r=r.substr(0,l))}else if(7===a)r=e.nextBuffer(c);else if(0!==a)for(r=[],i=0;i0&&(this._paused=!1,this.emit("drain"))}.bind(this))},o.prototype.write=function(t,e){return this.writable?(n=Buffer.isBuffer(t)?t:new Buffer(t,e||this._encoding),this._buffers.push(n),this._buffered+=n.length,this._process(),this._reads&&0===this._reads.length&&(this._paused=!0),this.writable&&!this._paused):(this.emit("error",new Error("Stream not writable")),!1);var n},o.prototype.end=function(t,e){t&&this.write(t,e),this.writable=!1,this._buffers&&(0===this._buffers.length?this._end():(this._buffers.push(null),this._process()))},o.prototype.destroySoon=o.prototype.end,o.prototype._end=function(){this._reads.length>0&&this.emit("error",new Error("Unexpected end of input")),this.destroy()},o.prototype.destroy=function(){this._buffers&&(this.writable=!1,this._reads=null,this._buffers=null,this.emit("close"))},o.prototype._processReadAllowingLess=function(t){this._reads.shift();var e=this._buffers[0];e.length>t.length?(this._buffered-=t.length,this._buffers[0]=e.slice(t.length),t.func.call(this,e.slice(0,t.length))):(this._buffered-=e.length,this._buffers.shift(),t.func.call(this,e))},o.prototype._processRead=function(t){this._reads.shift();for(var e=0,n=0,r=new Buffer(t.length);e0&&this._buffers.splice(0,n),this._buffered-=t.length,t.func.call(this,r)},o.prototype._process=function(){try{for(;this._buffered>0&&this._reads&&this._reads.length>0;){var t=this._reads[0];if(t.allowLess)this._processReadAllowingLess(t);else{if(!(this._buffered>=t.length))break;this._processRead(t)}}this._buffers&&!this.writable&&this._end()}catch(t){this.emit("error",t)}}},function(t,e,n){"use strict";var r=n(76),i=n(77);function o(t,e,n){var r=t*e;return 8!==n&&(r=Math.ceil(r/(8/n))),r}var a=t.exports=function(t,e){var n=t.width,i=t.height,a=t.interlace,s=t.bpp,c=t.depth;if(this.read=e.read,this.write=e.write,this.complete=e.complete,this._imageIndex=0,this._images=[],a)for(var u=r.getImagePasses(n,i),l=0;li?e[o-r]:0;e[o]=a+s}},a.prototype._unFilterType2=function(t,e,n){for(var r=this._lastLine,i=0;ii?e[a-r]:0,l=Math.floor((u+c)/2);e[a]=s+l}},a.prototype._unFilterType4=function(t,e,n){for(var r=this._xComparison,o=r-1,a=this._lastLine,s=0;so?e[s-r]:0,p=s>o&&a?a[s-r]:0,f=i(l,u,p);e[s]=c+f}},a.prototype._reverseFilterLine=function(t){var e,n=t[0],r=this._images[this._imageIndex],i=r.byteWidth;if(0===n)e=t.slice(1,i+1);else switch(e=new Buffer(i),n){case 1:this._unFilterType1(t,e,i);break;case 2:this._unFilterType2(t,e,i);break;case 3:this._unFilterType3(t,e,i);break;case 4:this._unFilterType4(t,e,i);break;default:throw new Error("Unrecognised filter type - "+n)}this.write(e),r.lineIndex++,r.lineIndex>=r.height?(this._lastLine=null,this._imageIndex++,r=this._images[this._imageIndex]):this._lastLine=e,r?this.read(r.byteWidth+1,this._reverseFilterLine.bind(this)):(this._lastLine=null,this.complete())}},function(t,e,n){"use strict";var r=[{x:[0],y:[0]},{x:[4],y:[0]},{x:[0,4],y:[4]},{x:[2,6],y:[0,4]},{x:[0,2,4,6],y:[2,6]},{x:[1,3,5,7],y:[0,2,4,6]},{x:[0,1,2,3,4,5,6,7],y:[1,3,5,7]}];e.getImagePasses=function(t,e){for(var n=[],i=t%8,o=e%8,a=(t-i)/8,s=(e-o)/8,c=0;c0&&p>0&&n.push({width:l,height:p,index:c})}return n},e.getInterlaceIterator=function(t){return function(e,n,i){var o=e%r[i].x.length,a=(e-o)/r[i].x.length*8+r[i].x[o],s=n%r[i].y.length;return 4*a+((n-s)/r[i].y.length*8+r[i].y[s])*t*4}}},function(t,e,n){"use strict";t.exports=function(t,e,n){var r=t+e-n,i=Math.abs(r-t),o=Math.abs(r-e),a=Math.abs(r-n);return i<=o&&i<=a?t:o<=a?e:n}},function(t,e,n){"use strict";var r=n(21),i=n(79),o=t.exports=function(t,e){this._options=t,t.checkCRC=!1!==t.checkCRC,this._hasIHDR=!1,this._hasIEND=!1,this._emittedHeadersFinished=!1,this._palette=[],this._colorType=0,this._chunks={},this._chunks[r.TYPE_IHDR]=this._handleIHDR.bind(this),this._chunks[r.TYPE_IEND]=this._handleIEND.bind(this),this._chunks[r.TYPE_IDAT]=this._handleIDAT.bind(this),this._chunks[r.TYPE_PLTE]=this._handlePLTE.bind(this),this._chunks[r.TYPE_tRNS]=this._handleTRNS.bind(this),this._chunks[r.TYPE_gAMA]=this._handleGAMA.bind(this),this.read=e.read,this.error=e.error,this.metadata=e.metadata,this.gamma=e.gamma,this.transColor=e.transColor,this.palette=e.palette,this.parsed=e.parsed,this.inflateData=e.inflateData,this.finished=e.finished,this.simpleTransparency=e.simpleTransparency,this.headersFinished=e.headersFinished||function(){}};o.prototype.start=function(){this.read(r.PNG_SIGNATURE.length,this._parseSignature.bind(this))},o.prototype._parseSignature=function(t){for(var e=r.PNG_SIGNATURE,n=0;nthis._palette.length)return void this.error(new Error("More transparent colors than palette size"));for(var e=0;e0?this._handleIDAT(n):this._handleChunkEnd()},o.prototype._handleIEND=function(t){this.read(t,this._parseIEND.bind(this))},o.prototype._parseIEND=function(t){this._crc.write(t),this._hasIEND=!0,this._handleChunkEnd(),this.finished&&this.finished()}},function(t,e,n){"use strict";var r=[];!function(){for(var t=0;t<256;t++){for(var e=t,n=0;n<8;n++)1&e?e=3988292384^e>>>1:e>>>=1;r[t]=e}}();var i=t.exports=function(){this._crc=-1};i.prototype.write=function(t){for(var e=0;e>>8;return!0},i.prototype.crc32=function(){return-1^this._crc},i.crc32=function(t){for(var e=-1,n=0;n>>8;return-1^e}},function(t,e,n){"use strict";var r=n(76),i=[function(){},function(t,e,n,r){if(r===e.length)throw new Error("Ran out of data");var i=e[r];t[n]=i,t[n+1]=i,t[n+2]=i,t[n+3]=255},function(t,e,n,r){if(r+1>=e.length)throw new Error("Ran out of data");var i=e[r];t[n]=i,t[n+1]=i,t[n+2]=i,t[n+3]=e[r+1]},function(t,e,n,r){if(r+2>=e.length)throw new Error("Ran out of data");t[n]=e[r],t[n+1]=e[r+1],t[n+2]=e[r+2],t[n+3]=255},function(t,e,n,r){if(r+3>=e.length)throw new Error("Ran out of data");t[n]=e[r],t[n+1]=e[r+1],t[n+2]=e[r+2],t[n+3]=e[r+3]}],o=[function(){},function(t,e,n,r){var i=e[0];t[n]=i,t[n+1]=i,t[n+2]=i,t[n+3]=r},function(t,e,n){var r=e[0];t[n]=r,t[n+1]=r,t[n+2]=r,t[n+3]=e[1]},function(t,e,n,r){t[n]=e[0],t[n+1]=e[1],t[n+2]=e[2],t[n+3]=r},function(t,e,n){t[n]=e[0],t[n+1]=e[1],t[n+2]=e[2],t[n+3]=e[3]}];function a(t,e,n,r,o,a){for(var s=t.width,c=t.height,u=t.index,l=0;l>4,n.push(p,l);break;case 2:c=3&f,u=f>>2&3,l=f>>4&3,p=f>>6&3,n.push(p,l,u,c);break;case 1:i=1&f,o=f>>1&1,a=f>>2&1,s=f>>3&1,c=f>>4&1,u=f>>5&1,l=f>>6&1,p=f>>7&1,n.push(p,l,u,c,s,a,o,i)}}return{get:function(t){for(;n.length0&&this._buffer.length;){var t=this._reads[0];if(!this._buffer.length||!(this._buffer.length>=t.length||t.allowLess))break;this._reads.shift();var e=this._buffer;this._buffer=e.slice(t.length),t.func.call(this,e.slice(0,t.length))}return this._reads.length>0?new Error("There are some read requests waitng on finished stream"):this._buffer.length>0?new Error("unrecognised content at end of stream"):void 0}},function(t,e,n){"use strict";t.exports=function(t,e,n,r){for(var i=65535&t|0,o=t>>>16&65535|0,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{o=o+(i=i+e[r++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16|0}},function(t,e,n){"use strict";var r=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();t.exports=function(t,e,n,i){var o=r,a=i+n;t^=-1;for(var s=i;s>>8^o[255&(t^e[s])];return-1^t}},function(t,e,n){"use strict";var r=n(14),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(t){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){o=!1}for(var a=new r.Buf8(256),s=0;s<256;s++)a[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;function c(t,e){if(e<65534&&(t.subarray&&o||!t.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(t,e));for(var n="",a=0;a>>6,e[a++]=128|63&n):n<65536?(e[a++]=224|n>>>12,e[a++]=128|n>>>6&63,e[a++]=128|63&n):(e[a++]=240|n>>>18,e[a++]=128|n>>>12&63,e[a++]=128|n>>>6&63,e[a++]=128|63&n);return e},e.buf2binstring=function(t){return c(t,t.length)},e.binstring2buf=function(t){for(var e=new r.Buf8(t.length),n=0,i=e.length;n4)u[r++]=65533,n+=o-1;else{for(i&=2===o?31:3===o?15:7;o>1&&n1?u[r++]=65533:i<65536?u[r++]=i:(i-=65536,u[r++]=55296|i>>10&1023,u[r++]=56320|1023&i)}return c(u,r)},e.utf8border=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;n>=0&&128==(192&t[n]);)n--;return n<0?e:0===n?e:n+a[t[n]]>e?n:e}},function(t,e,n){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},function(t,e,n){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},function(t,e){(function(){t.exports=function(){function t(t,e,n){if(this.options=t.options,this.stringify=t.stringify,null==e)throw new Error("Missing attribute name of element "+t.name);if(null==n)throw new Error("Missing attribute value for attribute "+e+" of element "+t.name);this.name=this.stringify.attName(e),this.value=this.stringify.attValue(n)}return t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(t){return this.options.writer.set(t).attribute(this)},t}()}).call(this)},function(t,e){(function(){var e=function(t,e){return function(){return t.apply(e,arguments)}},n={}.hasOwnProperty;t.exports=function(){function t(t){var r,i,o;for(r in this.assertLegalChar=e(this.assertLegalChar,this),t||(t={}),this.noDoubleEncoding=t.noDoubleEncoding,i=t.stringify||{})n.call(i,r)&&(o=i[r],this[r]=o)}return t.prototype.eleName=function(t){return t=""+t||"",this.assertLegalChar(t)},t.prototype.eleText=function(t){return t=""+t||"",this.assertLegalChar(this.elEscape(t))},t.prototype.cdata=function(t){return t=(t=""+t||"").replace("]]>","]]]]>"),this.assertLegalChar(t)},t.prototype.comment=function(t){if((t=""+t||"").match(/--/))throw new Error("Comment text cannot contain double-hypen: "+t);return this.assertLegalChar(t)},t.prototype.raw=function(t){return""+t||""},t.prototype.attName=function(t){return""+t||""},t.prototype.attValue=function(t){return t=""+t||"",this.attEscape(t)},t.prototype.insTarget=function(t){return""+t||""},t.prototype.insValue=function(t){if((t=""+t||"").match(/\?>/))throw new Error("Invalid processing instruction value: "+t);return t},t.prototype.xmlVersion=function(t){if(!(t=""+t||"").match(/1\.[0-9]+/))throw new Error("Invalid version number: "+t);return t},t.prototype.xmlEncoding=function(t){if(!(t=""+t||"").match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+t);return t},t.prototype.xmlStandalone=function(t){return t?"yes":"no"},t.prototype.dtdPubID=function(t){return""+t||""},t.prototype.dtdSysID=function(t){return""+t||""},t.prototype.dtdElementValue=function(t){return""+t||""},t.prototype.dtdAttType=function(t){return""+t||""},t.prototype.dtdAttDefault=function(t){return null!=t?""+t||"":t},t.prototype.dtdEntityValue=function(t){return""+t||""},t.prototype.dtdNData=function(t){return""+t||""},t.prototype.convertAttKey="@",t.prototype.convertPIKey="?",t.prototype.convertTextKey="#text",t.prototype.convertCDataKey="#cdata",t.prototype.convertCommentKey="#comment",t.prototype.convertRawKey="#raw",t.prototype.assertLegalChar=function(t){var e;if(e=t.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/))throw new Error("Invalid character in string: "+t+" at index "+e.index);return t},t.prototype.elEscape=function(t){var e;return e=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,t.replace(e,"&").replace(//g,">").replace(/\r/g," ")},t.prototype.attEscape=function(t){var e;return e=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,t.replace(e,"&").replace(/0?new Array(e).join(this.indent):""},t}()}).call(this)},function(t,e){t.exports=require("string_decoder")},function(t,e){(function(){"use strict";var t;t=new RegExp(/(?!xmlns)^.*:/),e.normalize=function(t){return t.toLowerCase()},e.firstCharLowerCase=function(t){return t.charAt(0).toLowerCase()+t.slice(1)},e.stripPrefix=function(e){return e.replace(t,"")},e.parseNumbers=function(t){return isNaN(t)||(t=t%1==0?parseInt(t,10):parseFloat(t)),t},e.parseBooleans=function(t){return/^(?:true|false)$/i.test(t)&&(t="true"===t.toLowerCase()),t}}).call(this)},function(t,e,n){var r;function i(t){function n(){if(n.enabled){var t=n,i=+new Date,o=i-(r||i);t.diff=o,t.prev=r,t.curr=i,r=i;for(var a=new Array(arguments.length),s=0;s{const e=new Uint8Array(t);if(!(e&&e.length>1))return null;const n=(t,n)=>{n=Object.assign({offset:0},n);for(let r=0;r66===n[e]&&130===n[e+1]);if(n>=0){const e=n+3,r=n=>Array.from(n).every((n,r)=>t[e+r]===n.charCodeAt(0));if(r("matroska"))return{ext:"mkv",mime:"video/x-matroska"};if(r("webm"))return{ext:"webm",mime:"video/webm"}}}return n([0,0,0,20,102,116,121,112,113,116,32,32])||n([102,114,101,101],{offset:4})||n([102,116,121,112,113,116,32,32],{offset:4})||n([109,100,97,116],{offset:4})||n([119,105,100,101],{offset:4})?{ext:"mov",mime:"video/quicktime"}:n([82,73,70,70])&&n([65,86,73],{offset:8})?{ext:"avi",mime:"video/x-msvideo"}:n([48,38,178,117,142,102,207,17,166,217])?{ext:"wmv",mime:"video/x-ms-wmv"}:n([0,0,1,186])?{ext:"mpg",mime:"video/mpeg"}:n([73,68,51])||n([255,251])?{ext:"mp3",mime:"audio/mpeg"}:n([102,116,121,112,77,52,65],{offset:4})||n([77,52,65,32])?{ext:"m4a",mime:"audio/m4a"}:n([79,112,117,115,72,101,97,100],{offset:28})?{ext:"opus",mime:"audio/opus"}:n([79,103,103,83])?{ext:"ogg",mime:"audio/ogg"}:n([102,76,97,67])?{ext:"flac",mime:"audio/x-flac"}:n([82,73,70,70])&&n([87,65,86,69],{offset:8})?{ext:"wav",mime:"audio/x-wav"}:n([35,33,65,77,82,10])?{ext:"amr",mime:"audio/amr"}:n([37,80,68,70])?{ext:"pdf",mime:"application/pdf"}:n([77,90])?{ext:"exe",mime:"application/x-msdownload"}:67!==e[0]&&70!==e[0]||!n([87,83],{offset:1})?n([123,92,114,116,102])?{ext:"rtf",mime:"application/rtf"}:n([0,97,115,109])?{ext:"wasm",mime:"application/wasm"}:n([119,79,70,70])&&(n([0,1,0,0],{offset:4})||n([79,84,84,79],{offset:4}))?{ext:"woff",mime:"font/woff"}:n([119,79,70,50])&&(n([0,1,0,0],{offset:4})||n([79,84,84,79],{offset:4}))?{ext:"woff2",mime:"font/woff2"}:n([76,80],{offset:34})&&(n([0,0,1],{offset:8})||n([1,0,2],{offset:8})||n([2,0,2],{offset:8}))?{ext:"eot",mime:"application/octet-stream"}:n([0,1,0,0,0])?{ext:"ttf",mime:"font/ttf"}:n([79,84,84,79,0])?{ext:"otf",mime:"font/otf"}:n([0,0,1,0])?{ext:"ico",mime:"image/x-icon"}:n([70,76,86,1])?{ext:"flv",mime:"video/x-flv"}:n([37,33])?{ext:"ps",mime:"application/postscript"}:n([253,55,122,88,90,0])?{ext:"xz",mime:"application/x-xz"}:n([83,81,76,105])?{ext:"sqlite",mime:"application/x-sqlite3"}:n([78,69,83,26])?{ext:"nes",mime:"application/x-nintendo-nes-rom"}:n([67,114,50,52])?{ext:"crx",mime:"application/x-google-chrome-extension"}:n([77,83,67,70])||n([73,83,99,40])?{ext:"cab",mime:"application/vnd.ms-cab-compressed"}:n([33,60,97,114,99,104,62,10,100,101,98,105,97,110,45,98,105,110,97,114,121])?{ext:"deb",mime:"application/x-deb"}:n([33,60,97,114,99,104,62])?{ext:"ar",mime:"application/x-unix-archive"}:n([237,171,238,219])?{ext:"rpm",mime:"application/x-rpm"}:n([31,160])||n([31,157])?{ext:"Z",mime:"application/x-compress"}:n([76,90,73,80])?{ext:"lz",mime:"application/x-lzip"}:n([208,207,17,224,161,177,26,225])?{ext:"msi",mime:"application/x-msi"}:n([6,14,43,52,2,5,1,1,13,1,2,1,1,2])?{ext:"mxf",mime:"application/mxf"}:n([71],{offset:4})&&(n([71],{offset:192})||n([71],{offset:196}))?{ext:"mts",mime:"video/mp2t"}:n([66,76,69,78,68,69,82])?{ext:"blend",mime:"application/x-blender"}:n([66,80,71,251])?{ext:"bpg",mime:"image/bpg"}:null:{ext:"swf",mime:"application/x-shockwave-flash"}}},function(t,e,n){e.extract=n(221),e.pack=n(232)},function(t,e,n){"use strict";var r=n(43);t.exports=b;var i,o=n(224);b.ReadableState=_;n(17).EventEmitter;var a=function(t,e){return t.listeners(e).length},s=n(98),c=n(22).Buffer,u=global.Uint8Array||function(){};var l=n(23);l.inherits=n(18);var p=n(3),f=void 0;f=p&&p.debuglog?p.debuglog("stream"):function(){};var h,d=n(226),g=n(99);l.inherits(b,s);var m=["error","close","destroy","pause","resume"];function _(t,e){t=t||{};var r=e instanceof(i=i||n(19));this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var o=t.highWaterMark,a=t.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:r&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(h||(h=n(101).StringDecoder),this.decoder=new h(t.encoding),this.encoding=t.encoding)}function b(t){if(i=i||n(19),!(this instanceof b))return new b(t);this._readableState=new _(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),s.call(this)}function y(t,e,n,r,i){var o,a=t._readableState;null===e?(a.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,k(t)}(t,a)):(i||(o=function(t,e){var n;r=e,c.isBuffer(r)||r instanceof u||"string"==typeof e||void 0===e||t.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(a,e)),o?t.emit("error",o):a.objectMode||e&&e.length>0?("string"==typeof e||a.objectMode||Object.getPrototypeOf(e)===c.prototype||(e=function(t){return c.from(t)}(e)),r?a.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):v(t,a,e,!0):a.ended?t.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(e=a.decoder.write(e),a.objectMode||0!==e.length?v(t,a,e,!1):D(t,a)):v(t,a,e,!1))):r||(a.reading=!1));return function(t){return!t.ended&&(t.needReadable||t.lengthe.highWaterMark&&(e.highWaterMark=function(t){return t>=x?t=x:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function k(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(f("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?r.nextTick(E,t):E(t))}function E(t){f("emit readable"),t.emit("readable"),A(t)}function D(t,e){e.readingMore||(e.readingMore=!0,r.nextTick(S,t,e))}function S(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=function(t,e,n){var r;to.length?o.length:t;if(a===o.length?i+=o:i+=o.slice(0,t),0===(t-=a)){a===o.length?(++r,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(a));break}++r}return e.length-=r,i}(t,e):function(t,e){var n=c.allocUnsafe(t),r=e.head,i=1;r.data.copy(n),t-=r.data.length;for(;r=r.next;){var o=r.data,a=t>o.length?o.length:t;if(o.copy(n,n.length-t,0,a),0===(t-=a)){a===o.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(a));break}++i}return e.length-=i,n}(t,e);return r}(t,e.buffer,e.decoder),n);var n}function T(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,r.nextTick(P,e,t))}function P(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function B(t,e){for(var n=0,r=t.length;n=e.highWaterMark||e.ended))return f("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?T(this):k(this),null;if(0===(t=w(t,e))&&e.ended)return 0===e.length&&T(this),null;var r,i=e.needReadable;return f("need readable",i),(0===e.length||e.length-t0?I(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&T(this)),null!==r&&this.emit("data",r),r},b.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(t,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t)}i.pipesCount+=1,f("pipe count=%d opts=%j",i.pipesCount,e);var s=(!e||!1!==e.end)&&t!==process.stdout&&t!==process.stderr?u:b;function c(e,r){f("onunpipe"),e===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,f("cleanup"),t.removeListener("close",m),t.removeListener("finish",_),t.removeListener("drain",l),t.removeListener("error",g),t.removeListener("unpipe",c),n.removeListener("end",u),n.removeListener("end",b),n.removeListener("data",d),p=!0,!i.awaitDrain||t._writableState&&!t._writableState.needDrain||l())}function u(){f("onend"),t.end()}i.endEmitted?r.nextTick(s):n.once("end",s),t.on("unpipe",c);var l=function(t){return function(){var e=t._readableState;f("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&a(t,"data")&&(e.flowing=!0,A(t))}}(n);t.on("drain",l);var p=!1;var h=!1;function d(e){f("ondata"),h=!1,!1!==t.write(e)||h||((1===i.pipesCount&&i.pipes===t||i.pipesCount>1&&-1!==B(i.pipes,t))&&!p&&(f("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,h=!0),n.pause())}function g(e){f("onerror",e),b(),t.removeListener("error",g),0===a(t,"error")&&t.emit("error",e)}function m(){t.removeListener("finish",_),b()}function _(){f("onfinish"),t.removeListener("close",m),b()}function b(){f("unpipe"),n.unpipe(t)}return n.on("data",d),function(t,e,n){if("function"==typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?o(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(t,"error",g),t.once("close",m),t.once("finish",_),t.emit("pipe",n),i.flowing||(f("pipe resume"),n.resume()),t},b.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n),this);if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o-1?setImmediate:r.nextTick;m.WritableState=g;var s=n(23);s.inherits=n(18);var c={deprecate:n(227)},u=n(98),l=n(22).Buffer,p=global.Uint8Array||function(){};var f,h=n(99);function d(){}function g(t,e){o=o||n(19),t=t||{};var s=e instanceof o;this.objectMode=!!t.objectMode,s&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var c=t.highWaterMark,u=t.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=c||0===c?c:s&&(u||0===u)?u:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var p=!1===t.decodeStrings;this.decodeStrings=!p,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var n=t._writableState,i=n.sync,o=n.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(n),e)!function(t,e,n,i,o){--e.pendingcb,n?(r.nextTick(o,i),r.nextTick(w,t,e),t._writableState.errorEmitted=!0,t.emit("error",i)):(o(i),t._writableState.errorEmitted=!0,t.emit("error",i),w(t,e))}(t,n,i,e,o);else{var s=v(n);s||n.corked||n.bufferProcessing||!n.bufferedRequest||y(t,n),i?a(b,t,n,s,o):b(t,n,s,o)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function m(t){if(o=o||n(19),!(f.call(m,this)||this instanceof o))return new m(t);this._writableState=new g(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),u.call(this)}function _(t,e,n,r,i,o,a){e.writelen=r,e.writecb=a,e.writing=!0,e.sync=!0,n?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function b(t,e,n,r){n||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,r(),w(t,e)}function y(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var r=e.bufferedRequestCount,o=new Array(r),a=e.corkedRequestsFree;a.entry=n;for(var s=0,c=!0;n;)o[s]=n,n.isBuf||(c=!1),n=n.next,s+=1;o.allBuffers=c,_(t,e,!0,e.length,o,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new i(e),e.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,l=n.encoding,p=n.callback;if(_(t,e,!1,e.objectMode?1:u.length,u,l,p),n=n.next,e.bufferedRequestCount--,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}function v(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function x(t,e){t._final(function(n){e.pendingcb--,n&&t.emit("error",n),e.prefinished=!0,t.emit("prefinish"),w(t,e)})}function w(t,e){var n=v(e);return n&&(!function(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,r.nextTick(x,t,e)):(e.prefinished=!0,t.emit("prefinish")))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),n}s.inherits(m,u),g.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(g.prototype,"buffer",{get:c.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(f=Function.prototype[Symbol.hasInstance],Object.defineProperty(m,Symbol.hasInstance,{value:function(t){return!!f.call(this,t)||this===m&&(t&&t._writableState instanceof g)}})):f=function(t){return t instanceof this},m.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},m.prototype.write=function(t,e,n){var i,o=this._writableState,a=!1,s=!o.objectMode&&(i=t,l.isBuffer(i)||i instanceof p);return s&&!l.isBuffer(t)&&(t=function(t){return l.from(t)}(t)),"function"==typeof e&&(n=e,e=null),s?e="buffer":e||(e=o.defaultEncoding),"function"!=typeof n&&(n=d),o.ended?function(t,e){var n=new Error("write after end");t.emit("error",n),r.nextTick(e,n)}(this,n):(s||function(t,e,n,i){var o=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||e.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(t.emit("error",a),r.nextTick(i,a),o=!1),o}(this,o,t,n))&&(o.pendingcb++,a=function(t,e,n,r,i,o){if(!n){var a=function(t,e,n){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=l.from(e,n));return e}(e,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=e.objectMode?1:r.length;e.length+=s;var c=e.length-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),m.prototype._write=function(t,e,n){n(new Error("_write() is not implemented"))},m.prototype._writev=null,m.prototype.end=function(t,e,n){var i=this._writableState;"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!=t&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||function(t,e,n){e.ending=!0,w(t,e),n&&(e.finished?r.nextTick(n):t.once("finish",n));e.ended=!0,t.writable=!1}(this,i,n)},Object.defineProperty(m.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),m.prototype.destroy=h.destroy,m.prototype._undestroy=h.undestroy,m.prototype._destroy=function(t,e){this.end(),e(t)}},function(t,e,n){"use strict";var r=n(22).Buffer,i=r.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(r.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=c,this.end=u,e=4;break;case"utf8":this.fillLast=s,e=4;break;case"base64":this.text=l,this.end=p,e=3;break;default:return this.write=f,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(e)}function a(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function s(t){var e=this.lastTotal-this.lastNeed,n=function(t,e,n){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function c(t,e){if((t.length-e)%2==0){var n=t.toString("utf16le",e);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function u(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function l(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function p(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function f(t){return t.toString(this.encoding)}function h(t){return t&&t.length?this.write(t):""}e.StringDecoder=o,o.prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0)return i>0&&(t.lastNeed=i-1),i;if(--r=0)return i>0&&(t.lastNeed=i-2),i;if(--r=0)return i>0&&(2===i?i=0:t.lastNeed=i-3),i;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var r=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",e,r)},o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},function(t,e,n){"use strict";t.exports=a;var r=n(19),i=n(23);function o(t,e){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=e&&this.push(e),r(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.lengthe?"7777777777777777777".slice(0,e)+" ":"0000000000000000000".slice(0,e-t.length)+t+" "};var l=function(t,e,n){if(128&(t=t.slice(e,e+n))[e=0])return function(t){var e;if(128===t[0])e=!0;else{if(255!==t[0])return null;e=!1}for(var n=!1,r=[],i=t.length-1;i>0;i--){var o=t[i];e?r.push(o):n&&0===o?r.push(0):n?(n=!1,r.push(256-o)):r.push(255-o)}var a=0,s=r.length;for(i=0;i=o?o:i>=0?i:(i+=o)>=0?i:0);e=Math.pow(10,n)&&n++,e+n+t};e.decodeLongPath=function(t,e){return p(t,0,t.length,e)},e.encodePax=function(t){var e="";t.name&&(e+=f(" path="+t.name+"\n")),t.linkname&&(e+=f(" linkpath="+t.linkname+"\n"));var n=t.pax;if(n)for(var i in n)e+=f(" "+i+"="+n[i]+"\n");return r(e)},e.decodePax=function(t){for(var e={};t.length;){for(var n=0;n100;){var s=n.indexOf("/");if(-1===s)return null;r+=r?"/"+n.slice(0,s):n.slice(0,s),n=n.slice(s+1)}return Buffer.byteLength(n)>100||Buffer.byteLength(r)>155?null:t.linkname&&Buffer.byteLength(t.linkname)>100?null:(e.write(n),e.write(u(t.mode&a,6),100),e.write(u(t.uid,6),108),e.write(u(t.gid,6),116),e.write(u(t.size,11),124),e.write(u(t.mtime.getTime()/1e3|0,11),136),e[156]=o+function(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}(t.type),t.linkname&&e.write(t.linkname,157),e.write("ustar\x0000",257),t.uname&&e.write(t.uname,265),t.gname&&e.write(t.gname,297),e.write(u(t.devmajor||0,6),329),e.write(u(t.devminor||0,6),337),r&&e.write(r,345),e.write(u(c(e),6),148),e)},e.decode=function(t,e){var n=0===t[156]?0:t[156]-o,r=p(t,0,100,e),i=l(t,100,8),a=l(t,108,8),s=l(t,116,8),u=l(t,124,12),f=l(t,136,12),h=function(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}(n),d=0===t[157]?null:p(t,157,100,e),g=p(t,265,32),m=p(t,297,32),_=l(t,329,8),b=l(t,337,8);t[345]&&(r=p(t,345,155,e)+"/"+r),0===n&&r&&"/"===r[r.length-1]&&(n=5);var y=c(t);if(256===y)return null;if(y!==l(t,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");return{name:r,mode:i,uid:a,gid:s,size:u,mtime:new Date(1e3*f),type:h,linkname:d,uname:g,gname:m,devmajor:_,devminor:b}}},function(t,e){t.exports=function(t,e){if(Buffer.isBuffer(t))return t;if("string"==typeof t)return n(t,e);if(Array.isArray(t))return n(t);throw new Error("Input should be a buffer or a string")};var n=Buffer.from&&Buffer.from!==Uint8Array.from?Buffer.from:function(t,e){return new Buffer(t,e)}},function(t,e,n){var r=n(230),i=n(231);t.exports=function(t,e,n){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative');if(Buffer.alloc)return Buffer.alloc(t,e,n);var o=i(t);return 0===t?o:void 0===e?r(o,0):("string"!=typeof n&&(n=void 0),r(o,e,n))}},function(t,e){t.exports=function t(e,n){if(e&&n)return t(e)(n);if("function"!=typeof e)throw new TypeError("need wrapper function");Object.keys(e).forEach(function(t){r[t]=e[t]});return r;function r(){for(var t=new Array(arguments.length),n=0;n3?p-3:0),h=3;h=t.length||e<0?t:t.slice(0,e).concat(t.slice(e+1))}function _(t,e,n){if(t[e]===n)return t;for(var r=t.length,i=Array(r),o=0;o6?s-6:0),c=6;c6?s-6:0),c=6;c7?c-7:0),p=7;p=0||(o[l]=t[l])}return o}function O(t,e,n,r,i,o){for(var s=arguments.length,a=Array(s>6?s-6:0),c=6;c0&&this.height>0?new Buffer(4*this.width*this.height):null,t.fill&&this.data&&this.data.fill(0),this.gamma=0,this.readable=this.writable=!0,this._parser=new o(t),this._parser.on("error",this.emit.bind(this,"error")),this._parser.on("close",this._handleClose.bind(this)),this._parser.on("metadata",this._metadata.bind(this)),this._parser.on("gamma",this._gamma.bind(this)),this._parser.on("parsed",function(t){this.data=t,this.emit("parsed",t)}.bind(this)),this._packer=new s(t),this._packer.on("data",this.emit.bind(this,"data")),this._packer.on("end",this.emit.bind(this,"end")),this._parser.on("close",this._handleClose.bind(this)),this._packer.on("error",this.emit.bind(this,"error"))};r.inherits(c,i),c.sync=a,c.prototype.pack=function(){return this.data&&this.data.length?(process.nextTick(function(){this._packer.pack(this.data,this.width,this.height,this.gamma)}.bind(this)),this):(this.emit("error","No data provided"),this)},c.prototype.parse=function(t,e){var n,r;e&&(n=function(t){this.removeListener("error",r),this.data=t,e(null,this)}.bind(this),r=function(t){this.removeListener("parsed",n),e(t,null)}.bind(this),this.once("parsed",n),this.once("error",r));return this.end(t),this},c.prototype.write=function(t){return this._parser.write(t),!0},c.prototype.end=function(t){this._parser.end(t)},c.prototype._metadata=function(t){this.width=t.width,this.height=t.height,this.emit("metadata",t)},c.prototype._gamma=function(t){this.gamma=t},c.prototype._handleClose=function(){this._parser.writable||this._packer.readable||this.emit("close")},c.bitblt=function(t,e,n,r,i,o,s,a){if(r|=0,i|=0,o|=0,s|=0,a|=0,(n|=0)>t.width||r>t.height||n+i>t.width||r+o>t.height)throw new Error("bitblt reading outside image");if(s>e.width||a>e.height||s+i>e.width||a+o>e.height)throw new Error("bitblt writing outside image");for(var c=0;c"+this.newline},n.prototype.comment=function(t,e){return this.space(e)+"\x3c!-- "+t.text+" --\x3e"+this.newline},n.prototype.declaration=function(t,e){var n;return n=this.space(e),n+='",n+=this.newline},n.prototype.docType=function(t,n){var c,u,l,f,h;if(n||(n=0),f=this.space(n),f+="0){for(f+=" [",f+=this.newline,u=0,l=(h=t.children).length;u",f+=this.newline},n.prototype.element=function(t,n){var i,o,s,a,c,u,d,m,_,b,y,v,x;for(d in n||(n=0),x=!1,this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),m="",m+=(v=this.space(n))+"<"+t.name,_=t.attributes)g.call(_,d)&&(i=_[d],m+=this.attribute(i));if(0===t.children.length||t.children.every(function(t){return""===t.value}))this.allowEmpty?m+=">"+this.newline:m+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&1===t.children.length&&null!=t.children[0].value)m+=">",m+=t.children[0].value,m+=""+this.newline;else{if(this.dontprettytextnodes)for(s=0,c=(b=t.children).length;s"+this.newline,a=0,u=(y=t.children).length;a"+this.newline}return m},n.prototype.processingInstruction=function(t,e){var n;return n=this.space(e)+""+this.newline},n.prototype.raw=function(t,e){return this.space(e)+t.value+this.newline},n.prototype.text=function(t,e){return this.space(e)+t.value+this.newline},n.prototype.dtdAttList=function(t,e){var n;return n=this.space(e)+""+this.newline},n.prototype.dtdElement=function(t,e){return this.space(e)+""+this.newline},n.prototype.dtdEntity=function(t,e){var n;return n=this.space(e)+""+this.newline},n.prototype.dtdNotation=function(t,e){var n;return n=this.space(e)+""+this.newline},n.prototype.openNode=function(t,e){var n,r,i,o;if(e||(e=0),t instanceof l){for(r in i=this.space(e)+"<"+t.name,o=t.attributes)g.call(o,r)&&(n=o[r],i+=this.attribute(n));return i+=(t.children?">":"/>")+this.newline}return i=this.space(e)+"")+this.newline},n.prototype.closeNode=function(t,e){switch(e||(e=0),!1){case!(t instanceof l):return this.space(e)+""+this.newline;case!(t instanceof u):return this.space(e)+"]>"+this.newline}},n}()}).call(this)},function(t,e,n){"use strict";const r=n(95),i=n(47),o=n(96);t.exports=()=>t=>{if(!Buffer.isBuffer(t)&&!i(t))return Promise.reject(new TypeError(`Expected a Buffer or Stream, got ${typeof t}`));if(Buffer.isBuffer(t)&&(!r(t)||"tar"!==r(t).ext))return Promise.resolve([]);const e=o.extract(),n=[];e.on("entry",(t,e,r)=>{const i=[];e.on("data",t=>i.push(t)),e.on("end",()=>{const e={data:Buffer.concat(i),mode:t.mode,mtime:t.mtime,path:t.name,type:t.type};"symlink"!==t.type&&"link"!==t.type||(e.linkname=t.linkname),n.push(e),r()})});const s=new Promise((r,i)=>{Buffer.isBuffer(t)||t.on("error",i),e.on("finish",()=>r(n)),e.on("error",i)});return e.then=s.then.bind(s),e.catch=s.catch.bind(s),Buffer.isBuffer(t)?e.end(t):t.pipe(e),e}},function(t,e,n){var r=n(4).Buffer,i=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];function o(t){if(r.isBuffer(t))return t;var e="function"==typeof r.alloc&&"function"==typeof r.from;if("number"==typeof t)return e?r.alloc(t):new r(t);if("string"==typeof t)return e?r.from(t):new r(t);throw new Error("input must be buffer, number, or string, received "+typeof t)}function s(t,e){t=o(t),r.isBuffer(e)&&(e=e.readUInt32BE(0));for(var n=-1^~~e,s=0;s>>8;return-1^n}function a(){return t=s.apply(null,arguments),(e=o(4)).writeInt32BE(t,0),e;var t,e}"undefined"!=typeof Int32Array&&(i=new Int32Array(i)),a.signed=function(){return s.apply(null,arguments)},a.unsigned=function(){return s.apply(null,arguments)>>>0},t.exports=a},function(t,e,n){t.exports=y;var r=n(5),i=n(109),o=n(56),s=(o.Minimatch,n(18)),a=n(17).EventEmitter,c=n(1),u=n(20),l=n(57),p=n(265),f=n(110),h=(f.alphasort,f.alphasorti,f.setopts),d=f.ownProp,g=n(266),m=(n(3),f.childrenIgnored),_=f.isIgnored,b=n(48);function y(t,e,n){if("function"==typeof e&&(n=e,e={}),e||(e={}),e.sync){if(n)throw new TypeError("callback provided to sync glob");return p(t,e)}return new x(t,e,n)}y.sync=p;var v=y.GlobSync=p.GlobSync;function x(t,e,n){if("function"==typeof e&&(n=e,e=null),e&&e.sync){if(n)throw new TypeError("callback provided to sync glob");return new v(t,e)}if(!(this instanceof x))return new x(t,e,n);h(this,t,e),this._didRealPath=!1;var r=this.minimatch.set.length;this.matches=new Array(r),"function"==typeof n&&(n=b(n),this.on("error",n),this.on("end",function(t){n(null,t)}));var i=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(0===r)return a();for(var o=!0,s=0;s1)return!0;for(var i=0;ithis.maxLength)return e();if(!this.stat&&d(this.cache,n)){var o=this.cache[n];if(Array.isArray(o)&&(o="DIR"),!i||"DIR"===o)return e(null,o);if(i&&"FILE"===o)return e()}var s=this.statCache[n];if(void 0!==s){if(!1===s)return e(null,s);var a=s.isDirectory()?"DIR":"FILE";return i&&"FILE"===a?e():e(null,a,s)}var c=this,u=g("stat\0"+n,function(i,o){if(o&&o.isSymbolicLink())return r.stat(n,function(r,i){r?c._stat2(t,n,null,o,e):c._stat2(t,n,r,i,e)});c._stat2(t,n,i,o,e)});u&&r.lstat(n,u)},x.prototype._stat2=function(t,e,n,r,i){if(n&&("ENOENT"===n.code||"ENOTDIR"===n.code))return this.statCache[e]=!1,i();var o="/"===t.slice(-1);if(this.statCache[e]=r,"/"===e.slice(-1)&&r&&!r.isDirectory())return i(null,!1,r);var s=!0;return r&&(s=r.isDirectory()?"DIR":"FILE"),this.cache[e]=this.cache[e]||s,o&&"FILE"===s?i():i(null,s,r)}},function(t,e,n){t.exports=d,d.Minimatch=g;var r={sep:"/"};try{r=n(1)}catch(t){}var i=d.GLOBSTAR=g.GLOBSTAR={},o=n(262),s={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},a="[^/]",c=a+"*?",u="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",l="(?:(?!(?:\\/|^)\\.).)*?",p="().*{}+?[]^$\\!".split("").reduce(function(t,e){return t[e]=!0,t},{});var f=/\/+/;function h(t,e){t=t||{},e=e||{};var n={};return Object.keys(e).forEach(function(t){n[t]=e[t]}),Object.keys(t).forEach(function(e){n[e]=t[e]}),n}function d(t,e,n){if("string"!=typeof e)throw new TypeError("glob pattern string required");return n||(n={}),!(!n.nocomment&&"#"===e.charAt(0))&&(""===e.trim()?""===t:new g(e,n).match(t))}function g(t,e){if(!(this instanceof g))return new g(t,e);if("string"!=typeof t)throw new TypeError("glob pattern string required");e||(e={}),t=t.trim(),"/"!==r.sep&&(t=t.split(r.sep).join("/")),this.options=e,this.set=[],this.pattern=t,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function m(t,e){if(e||(e=this instanceof g?this.options:{}),void 0===(t=void 0===t?this.pattern:t))throw new TypeError("undefined pattern");return e.nobrace||!t.match(/\{.*\}/)?[t]:o(t)}d.filter=function(t,e){return e=e||{},function(n,r,i){return d(n,t,e)}},d.defaults=function(t){if(!t||!Object.keys(t).length)return d;var e=d,n=function(n,r,i){return e.minimatch(n,r,h(t,i))};return n.Minimatch=function(n,r){return new e.Minimatch(n,h(t,r))},n},g.defaults=function(t){return t&&Object.keys(t).length?d.defaults(t).Minimatch:g},g.prototype.debug=function(){},g.prototype.make=function(){if(this._made)return;var t=this.pattern,e=this.options;if(!e.nocomment&&"#"===t.charAt(0))return void(this.comment=!0);if(!t)return void(this.empty=!0);this.parseNegate();var n=this.globSet=this.braceExpand();e.debug&&(this.debug=console.error);this.debug(this.pattern,n),n=this.globParts=n.map(function(t){return t.split(f)}),this.debug(this.pattern,n),n=n.map(function(t,e,n){return t.map(this.parse,this)},this),this.debug(this.pattern,n),n=n.filter(function(t){return-1===t.indexOf(!1)}),this.debug(this.pattern,n),this.set=n},g.prototype.parseNegate=function(){var t=this.pattern,e=!1,n=this.options,r=0;if(n.nonegate)return;for(var i=0,o=t.length;i65536)throw new TypeError("pattern is too long");var n=this.options;if(!n.noglobstar&&"**"===t)return i;if(""===t)return"";var r,o="",u=!!n.nocase,l=!1,f=[],h=[],d=!1,g=-1,m=-1,b="."===t.charAt(0)?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",y=this;function v(){if(r){switch(r){case"*":o+=c,u=!0;break;case"?":o+=a,u=!0;break;default:o+="\\"+r}y.debug("clearStateChar %j %j",r,o),r=!1}}for(var x,w=0,k=t.length;w-1;I--){var T=h[I],P=o.slice(0,T.reStart),B=o.slice(T.reStart,T.reEnd-8),F=o.slice(T.reEnd-8,T.reEnd),j=o.slice(T.reEnd);F+=j;var L=P.split("(").length-1,M=j;for(w=0;w=0&&!(i=t[o]);o--);for(o=0;o>> no match, partial?",t,f,e,h),f!==a))}if("string"==typeof l?(u=r.nocase?p.toLowerCase()===l.toLowerCase():p===l,this.debug("string match",l,p,u)):(u=p.match(l),this.debug("pattern match",l,p,u)),!u)return!1}if(o===a&&s===c)return!0;if(o===a)return n;if(s===c)return o===a-1&&""===t[o];throw new Error("wtf?")}},function(t,e,n){"use strict";function r(t){return"/"===t.charAt(0)}function i(t){var e=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(t),n=e[1]||"",r=Boolean(n&&":"!==n.charAt(1));return Boolean(e[2]||r)}t.exports="win32"===process.platform?i:r,t.exports.posix=r,t.exports.win32=i},function(t,e){var n=t.exports=function(){};n.prototype.getName=function(){},n.prototype.getSize=function(){},n.prototype.getLastModifiedDate=function(){},n.prototype.isDirectory=function(){}},function(t,e){var n=t.exports={};n.dateToDos=function(t,e){var n=(e=e||!1)?t.getFullYear():t.getUTCFullYear();return n<1980?2162688:n>=2044?2141175677:n-1980<<25|(e?t.getMonth():t.getUTCMonth())+1<<21|(e?t.getDate():t.getUTCDate())<<16|(e?t.getHours():t.getUTCHours())<<11|(e?t.getMinutes():t.getUTCMinutes())<<5|(e?t.getSeconds():t.getUTCSeconds())/2},n.dosToDate=function(t){return new Date(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1)},n.fromDosTime=function(t){return n.dosToDate(t.readUInt32LE())},n.getEightBytes=function(t){var e=new Buffer(8);return e.writeUInt32LE(t%4294967296,0),e.writeUInt32LE(t/4294967296|0,4),e},n.getShortBytes=function(t){var e=new Buffer(2);return e.writeUInt16LE((65535&t)>>>0,0),e},n.getShortBytesValue=function(t,e){return t.readUInt16LE(e)},n.getLongBytes=function(t){var e=new Buffer(4);return e.writeUInt32LE((4294967295&t)>>>0,0),e},n.getLongBytesValue=function(t,e){return t.readUInt32LE(e)},n.toDosTime=function(t){return n.getLongBytes(n.dateToDos(t))}},function(t){t.exports={name:"@ozelot379/convert-minecraft-java-texture-to-bedrock",productName:"ConvertMinecraftJavaTextureToBedrock",version:"1.1.0",description:"Convert Minecraft Java texture packs to Minecraft Bedrock texture packs",keywords:["Minecraft","Texture","Pack","Convert","Java","Bedrock"],author:"ozelot379",license:"GPL-3.0-only",repository:{type:"git",url:"git+https://github.com/ozelot379/ConvertMinecraftJavaTextureToBedrock.git"},bugs:{url:"https://github.com/ozelot379/ConvertMinecraftJavaTextureToBedrock/issues"},homepage:"https://github.com/ozelot379/ConvertMinecraftJavaTextureToBedrock#readme",dependencies:{},devDependencies:{decompress:"latest","fs-extra":"latest",jimp:"latest",mocha:"latest",tga:"latest",uuid:"latest",webpack:"latest","webpack-cli":"latest",yargs:"latest","zip-a-folder":"latest"},engines:{node:">=10.0.0"},main:"dist/index.js",bin:{ConvertMinecraftJavaTextureToBedrock:"dist/cli.js"},scripts:{build:"webpack",cli:"node dist/cli.js",debug:"webpack --mode=development && node dist/cli.js",test:"webpack --mode=development && mocha tests"}}},function(t,e,n){var r=n(171),i=n(172);t.exports={encode:r,decode:i}},function(t,e,n){var r=n(183),i=n(184);t.exports={encode:r,decode:i}},function(t,e){t.exports={nearestNeighbor:function(t,e){for(var n=t.width,r=t.height,i=e.width,o=e.height,s=t.data,a=e.data,c=0;c0?i[k-4]:2*i[k]-i[k+4],D=i[k],S=i[k+4],O=b0?d[M-4*p]:2*d[M]-d[M+4*p],z=d[M],R=d[M+4*p],U=P1)for(var H=0;H"function"==typeof i[t]);Object.keys(i).forEach(t=>{"promises"!==t&&(e[t]=i[t])}),o.forEach(t=>{e[t]=r(i[t])}),e.exists=function(t,e){return"function"==typeof e?i.exists(t,e):new Promise(e=>i.exists(t,e))},e.read=function(t,e,n,r,o,s){return"function"==typeof s?i.read(t,e,n,r,o,s):new Promise((s,a)=>{i.read(t,e,n,r,o,(t,e,n)=>{if(t)return a(t);s({bytesRead:e,buffer:n})})})},e.write=function(t,e,...n){return"function"==typeof n[n.length-1]?i.write(t,e,...n):new Promise((r,o)=>{i.write(t,e,...n,(t,e,n)=>{if(t)return o(t);r({bytesWritten:e,buffer:n})})})},"function"==typeof i.realpath.native&&(e.realpath.native=r(i.realpath.native))},function(t,e){t.exports=require("constants")},function(t,e,n){"use strict";t.exports={copySync:n(138)}},function(t,e,n){"use strict";const r=n(1);function i(t){return(t=r.normalize(r.resolve(t)).split(r.sep)).length>0?t[0]:null}const o=/[<>:"|?*]/;t.exports={getRootPath:i,invalidWin32Path:function(t){const e=i(t);return t=t.replace(e,""),o.test(t)}}},function(t,e,n){"use strict";const r=n(6),i=n(44),o=n(1);t.exports={hasMillisRes:function(t){let e=o.join("millis-test"+Date.now().toString()+Math.random().toString().slice(2));e=o.join(i.tmpdir(),e);const n=new Date(1435410243862);r.writeFile(e,"https://github.com/jprichardson/node-fs-extra/pull/141",i=>{if(i)return t(i);r.open(e,"r+",(i,o)=>{if(i)return t(i);r.futimes(o,n,n,n=>{if(n)return t(n);r.close(o,n=>{if(n)return t(n);r.stat(e,(e,n)=>{if(e)return t(e);t(null,n.mtime>1435410243e3)})})})})})},hasMillisResSync:function(){let t=o.join("millis-test-sync"+Date.now().toString()+Math.random().toString().slice(2));t=o.join(i.tmpdir(),t);const e=new Date(1435410243862);r.writeFileSync(t,"https://github.com/jprichardson/node-fs-extra/pull/141");const n=r.openSync(t,"r+");return r.futimesSync(n,e,e),r.closeSync(n),r.statSync(t).mtime>1435410243e3},timeRemoveMillis:function(t){if("number"==typeof t)return 1e3*Math.floor(t/1e3);if(t instanceof Date)return new Date(1e3*Math.floor(t.getTime()/1e3));throw new Error("fs-extra: timeRemoveMillis() unknown parameter type")},utimesMillis:function(t,e,n,i){r.open(t,"r+",(t,o)=>{if(t)return i(t);r.futimes(o,e,n,t=>{r.close(o,e=>{i&&i(t||e)})})})},utimesMillisSync:function(t,e,n){const i=r.openSync(t,"r+");return r.futimesSync(i,e,n),r.closeSync(i)}}},function(t,e,n){"use strict";const r=n(8).fromCallback;t.exports={copy:r(n(142))}},function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=n(161),o=n(162),s=n(72),a=n(163),c=n(12),u=n(3),l=function(t,e){if("string"!=typeof t&&!t.hasOwnProperty("url"))throw new Error("Missing url option from options for request method.");var n="object"===(void 0===t?"undefined":r(t))?s.parse(t.url):s.parse(t),u={hostname:n.hostname,port:n.port||("http:"===n.protocol.toLowerCase()?80:443),path:n.path,method:"GET",headers:{},auth:n.auth||null,parse:"none",stream:!1};if("object"===(void 0===t?"undefined":r(t))&&(u=Object.assign(u,t)),u.port=Number(u.port),u.hasOwnProperty("timeout")&&delete u.timeout,!0===u.compressed&&(u.headers["accept-encoding"]="gzip, deflate"),t.hasOwnProperty("form")){if("object"!==r(t.form))throw new Error("phin 'form' option must be of type Object if present.");var l=a.stringify(t.form);u.headers["Content-Type"]="application/x-www-form-urlencoded",u.headers["Content-Length"]=Buffer.byteLength(l),t.data=l}var p=void 0,f=function(t){var n=t;!0===u.compressed&&("gzip"===t.headers["content-encoding"]?n=t.pipe(c.createGunzip()):"deflate"===t.headers["content-encoding"]&&(n=t.pipe(c.createInflate()))),!0===u.stream?(t.stream=n,e&&e(null,t)):(t.body=new Buffer([]),n.on("data",function(e){t.body=Buffer.concat([t.body,e])}),n.on("end",function(){if(e){if("json"===u.parse)try{t.body=JSON.parse(t.body.toString())}catch(n){return void e("Invalid JSON received.",t)}e(null,t)}}))};switch(n.protocol.toLowerCase()){case"http:":p=i.request(u,f);break;case"https:":p=o.request(u,f);break;default:return void(e&&e(new Error("Invalid / unknown URL protocol. Expected HTTP or HTTPS."),null))}if("number"==typeof t.timeout&&p.setTimeout(t.timeout,function(){p.abort(),e&&e(new Error("Timeout has been reached."),null),e=null}),p.on("error",function(t){e&&e(t,null)}),t.hasOwnProperty("data")){var h=t.data;if(!(t.data instanceof Buffer)&&"object"===r(t.data))if("application/x-www-form-urlencoded"===(u.headers["content-type"]||u.headers["Content-Type"]))h=a.stringify(t.data);else try{h=JSON.stringify(t.data)}catch(t){e&&e(new Error("Couldn't stringify object. (Likely due to a circular reference.)"),null)}p.write(h)}p.end()};l.promisified=function(t,e){return new Promise(function(e,n){l(t,function(t,r){t?n(t):e(r)})})},u.promisify&&(l[u.promisify.custom]=l.promisified),t.exports=l},function(t,e){t.exports=require("url")},function(t,e){function n(t,e){switch(t){case 1:return e.nextUInt8();case 3:return e.nextUInt16();case 4:return e.nextUInt32();case 5:return[e.nextUInt32(),e.nextUInt32()];case 6:return e.nextInt8();case 8:return e.nextUInt16();case 9:return e.nextUInt32();case 10:return[e.nextInt32(),e.nextInt32()];case 11:return e.nextFloat();case 12:return e.nextDouble();default:throw new Error("Invalid format while decoding: "+t)}}function r(t,e){var r,i,o=e.nextUInt16(),s=e.nextUInt16(),a=function(t){switch(t){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}}(s),c=e.nextUInt32(),u=a*c;if(u>4&&(e=t.openWithOffset(e.nextUInt32())),2===s){var l=(r=e.nextString(c)).indexOf("\0");-1!==l&&(r=r.substr(0,l))}else if(7===s)r=e.nextBuffer(c);else if(0!==s)for(r=[],i=0;i0&&(this._paused=!1,this.emit("drain"))}.bind(this))},o.prototype.write=function(t,e){return this.writable?(n=Buffer.isBuffer(t)?t:new Buffer(t,e||this._encoding),this._buffers.push(n),this._buffered+=n.length,this._process(),this._reads&&0===this._reads.length&&(this._paused=!0),this.writable&&!this._paused):(this.emit("error",new Error("Stream not writable")),!1);var n},o.prototype.end=function(t,e){t&&this.write(t,e),this.writable=!1,this._buffers&&(0===this._buffers.length?this._end():(this._buffers.push(null),this._process()))},o.prototype.destroySoon=o.prototype.end,o.prototype._end=function(){this._reads.length>0&&this.emit("error",new Error("Unexpected end of input")),this.destroy()},o.prototype.destroy=function(){this._buffers&&(this.writable=!1,this._reads=null,this._buffers=null,this.emit("close"))},o.prototype._processReadAllowingLess=function(t){this._reads.shift();var e=this._buffers[0];e.length>t.length?(this._buffered-=t.length,this._buffers[0]=e.slice(t.length),t.func.call(this,e.slice(0,t.length))):(this._buffered-=e.length,this._buffers.shift(),t.func.call(this,e))},o.prototype._processRead=function(t){this._reads.shift();for(var e=0,n=0,r=new Buffer(t.length);e0&&this._buffers.splice(0,n),this._buffered-=t.length,t.func.call(this,r)},o.prototype._process=function(){try{for(;this._buffered>0&&this._reads&&this._reads.length>0;){var t=this._reads[0];if(t.allowLess)this._processReadAllowingLess(t);else{if(!(this._buffered>=t.length))break;this._processRead(t)}}this._buffers&&!this.writable&&this._end()}catch(t){this.emit("error",t)}}},function(t,e,n){"use strict";var r=n(76),i=n(77);function o(t,e,n){var r=t*e;return 8!==n&&(r=Math.ceil(r/(8/n))),r}var s=t.exports=function(t,e){var n=t.width,i=t.height,s=t.interlace,a=t.bpp,c=t.depth;if(this.read=e.read,this.write=e.write,this.complete=e.complete,this._imageIndex=0,this._images=[],s)for(var u=r.getImagePasses(n,i),l=0;li?e[o-r]:0;e[o]=s+a}},s.prototype._unFilterType2=function(t,e,n){for(var r=this._lastLine,i=0;ii?e[s-r]:0,l=Math.floor((u+c)/2);e[s]=a+l}},s.prototype._unFilterType4=function(t,e,n){for(var r=this._xComparison,o=r-1,s=this._lastLine,a=0;ao?e[a-r]:0,p=a>o&&s?s[a-r]:0,f=i(l,u,p);e[a]=c+f}},s.prototype._reverseFilterLine=function(t){var e,n=t[0],r=this._images[this._imageIndex],i=r.byteWidth;if(0===n)e=t.slice(1,i+1);else switch(e=new Buffer(i),n){case 1:this._unFilterType1(t,e,i);break;case 2:this._unFilterType2(t,e,i);break;case 3:this._unFilterType3(t,e,i);break;case 4:this._unFilterType4(t,e,i);break;default:throw new Error("Unrecognised filter type - "+n)}this.write(e),r.lineIndex++,r.lineIndex>=r.height?(this._lastLine=null,this._imageIndex++,r=this._images[this._imageIndex]):this._lastLine=e,r?this.read(r.byteWidth+1,this._reverseFilterLine.bind(this)):(this._lastLine=null,this.complete())}},function(t,e,n){"use strict";var r=[{x:[0],y:[0]},{x:[4],y:[0]},{x:[0,4],y:[4]},{x:[2,6],y:[0,4]},{x:[0,2,4,6],y:[2,6]},{x:[1,3,5,7],y:[0,2,4,6]},{x:[0,1,2,3,4,5,6,7],y:[1,3,5,7]}];e.getImagePasses=function(t,e){for(var n=[],i=t%8,o=e%8,s=(t-i)/8,a=(e-o)/8,c=0;c0&&p>0&&n.push({width:l,height:p,index:c})}return n},e.getInterlaceIterator=function(t){return function(e,n,i){var o=e%r[i].x.length,s=(e-o)/r[i].x.length*8+r[i].x[o],a=n%r[i].y.length;return 4*s+((n-a)/r[i].y.length*8+r[i].y[a])*t*4}}},function(t,e,n){"use strict";t.exports=function(t,e,n){var r=t+e-n,i=Math.abs(r-t),o=Math.abs(r-e),s=Math.abs(r-n);return i<=o&&i<=s?t:o<=s?e:n}},function(t,e,n){"use strict";var r=n(21),i=n(79),o=t.exports=function(t,e){this._options=t,t.checkCRC=!1!==t.checkCRC,this._hasIHDR=!1,this._hasIEND=!1,this._emittedHeadersFinished=!1,this._palette=[],this._colorType=0,this._chunks={},this._chunks[r.TYPE_IHDR]=this._handleIHDR.bind(this),this._chunks[r.TYPE_IEND]=this._handleIEND.bind(this),this._chunks[r.TYPE_IDAT]=this._handleIDAT.bind(this),this._chunks[r.TYPE_PLTE]=this._handlePLTE.bind(this),this._chunks[r.TYPE_tRNS]=this._handleTRNS.bind(this),this._chunks[r.TYPE_gAMA]=this._handleGAMA.bind(this),this.read=e.read,this.error=e.error,this.metadata=e.metadata,this.gamma=e.gamma,this.transColor=e.transColor,this.palette=e.palette,this.parsed=e.parsed,this.inflateData=e.inflateData,this.finished=e.finished,this.simpleTransparency=e.simpleTransparency,this.headersFinished=e.headersFinished||function(){}};o.prototype.start=function(){this.read(r.PNG_SIGNATURE.length,this._parseSignature.bind(this))},o.prototype._parseSignature=function(t){for(var e=r.PNG_SIGNATURE,n=0;nthis._palette.length)return void this.error(new Error("More transparent colors than palette size"));for(var e=0;e0?this._handleIDAT(n):this._handleChunkEnd()},o.prototype._handleIEND=function(t){this.read(t,this._parseIEND.bind(this))},o.prototype._parseIEND=function(t){this._crc.write(t),this._hasIEND=!0,this._handleChunkEnd(),this.finished&&this.finished()}},function(t,e,n){"use strict";var r=[];!function(){for(var t=0;t<256;t++){for(var e=t,n=0;n<8;n++)1&e?e=3988292384^e>>>1:e>>>=1;r[t]=e}}();var i=t.exports=function(){this._crc=-1};i.prototype.write=function(t){for(var e=0;e>>8;return!0},i.prototype.crc32=function(){return-1^this._crc},i.crc32=function(t){for(var e=-1,n=0;n>>8;return-1^e}},function(t,e,n){"use strict";var r=n(76),i=[function(){},function(t,e,n,r){if(r===e.length)throw new Error("Ran out of data");var i=e[r];t[n]=i,t[n+1]=i,t[n+2]=i,t[n+3]=255},function(t,e,n,r){if(r+1>=e.length)throw new Error("Ran out of data");var i=e[r];t[n]=i,t[n+1]=i,t[n+2]=i,t[n+3]=e[r+1]},function(t,e,n,r){if(r+2>=e.length)throw new Error("Ran out of data");t[n]=e[r],t[n+1]=e[r+1],t[n+2]=e[r+2],t[n+3]=255},function(t,e,n,r){if(r+3>=e.length)throw new Error("Ran out of data");t[n]=e[r],t[n+1]=e[r+1],t[n+2]=e[r+2],t[n+3]=e[r+3]}],o=[function(){},function(t,e,n,r){var i=e[0];t[n]=i,t[n+1]=i,t[n+2]=i,t[n+3]=r},function(t,e,n){var r=e[0];t[n]=r,t[n+1]=r,t[n+2]=r,t[n+3]=e[1]},function(t,e,n,r){t[n]=e[0],t[n+1]=e[1],t[n+2]=e[2],t[n+3]=r},function(t,e,n){t[n]=e[0],t[n+1]=e[1],t[n+2]=e[2],t[n+3]=e[3]}];function s(t,e,n,r,o,s){for(var a=t.width,c=t.height,u=t.index,l=0;l>4,n.push(p,l);break;case 2:c=3&f,u=f>>2&3,l=f>>4&3,p=f>>6&3,n.push(p,l,u,c);break;case 1:i=1&f,o=f>>1&1,s=f>>2&1,a=f>>3&1,c=f>>4&1,u=f>>5&1,l=f>>6&1,p=f>>7&1,n.push(p,l,u,c,a,s,o,i)}}return{get:function(t){for(;n.length0&&this._buffer.length;){var t=this._reads[0];if(!this._buffer.length||!(this._buffer.length>=t.length||t.allowLess))break;this._reads.shift();var e=this._buffer;this._buffer=e.slice(t.length),t.func.call(this,e.slice(0,t.length))}return this._reads.length>0?new Error("There are some read requests waitng on finished stream"):this._buffer.length>0?new Error("unrecognised content at end of stream"):void 0}},function(t,e,n){"use strict";t.exports=function(t,e,n,r){for(var i=65535&t|0,o=t>>>16&65535|0,s=0;0!==n;){n-=s=n>2e3?2e3:n;do{o=o+(i=i+e[r++]|0)|0}while(--s);i%=65521,o%=65521}return i|o<<16|0}},function(t,e,n){"use strict";var r=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();t.exports=function(t,e,n,i){var o=r,s=i+n;t^=-1;for(var a=i;a>>8^o[255&(t^e[a])];return-1^t}},function(t,e,n){"use strict";var r=n(14),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(t){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){o=!1}for(var s=new r.Buf8(256),a=0;a<256;a++)s[a]=a>=252?6:a>=248?5:a>=240?4:a>=224?3:a>=192?2:1;function c(t,e){if(e<65534&&(t.subarray&&o||!t.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(t,e));for(var n="",s=0;s>>6,e[s++]=128|63&n):n<65536?(e[s++]=224|n>>>12,e[s++]=128|n>>>6&63,e[s++]=128|63&n):(e[s++]=240|n>>>18,e[s++]=128|n>>>12&63,e[s++]=128|n>>>6&63,e[s++]=128|63&n);return e},e.buf2binstring=function(t){return c(t,t.length)},e.binstring2buf=function(t){for(var e=new r.Buf8(t.length),n=0,i=e.length;n4)u[r++]=65533,n+=o-1;else{for(i&=2===o?31:3===o?15:7;o>1&&n1?u[r++]=65533:i<65536?u[r++]=i:(i-=65536,u[r++]=55296|i>>10&1023,u[r++]=56320|1023&i)}return c(u,r)},e.utf8border=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;n>=0&&128==(192&t[n]);)n--;return n<0?e:0===n?e:n+s[t[n]]>e?n:e}},function(t,e,n){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},function(t,e,n){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},function(t,e){(function(){t.exports=function(){function t(t,e,n){if(this.options=t.options,this.stringify=t.stringify,null==e)throw new Error("Missing attribute name of element "+t.name);if(null==n)throw new Error("Missing attribute value for attribute "+e+" of element "+t.name);this.name=this.stringify.attName(e),this.value=this.stringify.attValue(n)}return t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(t){return this.options.writer.set(t).attribute(this)},t}()}).call(this)},function(t,e){(function(){var e=function(t,e){return function(){return t.apply(e,arguments)}},n={}.hasOwnProperty;t.exports=function(){function t(t){var r,i,o;for(r in this.assertLegalChar=e(this.assertLegalChar,this),t||(t={}),this.noDoubleEncoding=t.noDoubleEncoding,i=t.stringify||{})n.call(i,r)&&(o=i[r],this[r]=o)}return t.prototype.eleName=function(t){return t=""+t||"",this.assertLegalChar(t)},t.prototype.eleText=function(t){return t=""+t||"",this.assertLegalChar(this.elEscape(t))},t.prototype.cdata=function(t){return t=(t=""+t||"").replace("]]>","]]]]>"),this.assertLegalChar(t)},t.prototype.comment=function(t){if((t=""+t||"").match(/--/))throw new Error("Comment text cannot contain double-hypen: "+t);return this.assertLegalChar(t)},t.prototype.raw=function(t){return""+t||""},t.prototype.attName=function(t){return""+t||""},t.prototype.attValue=function(t){return t=""+t||"",this.attEscape(t)},t.prototype.insTarget=function(t){return""+t||""},t.prototype.insValue=function(t){if((t=""+t||"").match(/\?>/))throw new Error("Invalid processing instruction value: "+t);return t},t.prototype.xmlVersion=function(t){if(!(t=""+t||"").match(/1\.[0-9]+/))throw new Error("Invalid version number: "+t);return t},t.prototype.xmlEncoding=function(t){if(!(t=""+t||"").match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+t);return t},t.prototype.xmlStandalone=function(t){return t?"yes":"no"},t.prototype.dtdPubID=function(t){return""+t||""},t.prototype.dtdSysID=function(t){return""+t||""},t.prototype.dtdElementValue=function(t){return""+t||""},t.prototype.dtdAttType=function(t){return""+t||""},t.prototype.dtdAttDefault=function(t){return null!=t?""+t||"":t},t.prototype.dtdEntityValue=function(t){return""+t||""},t.prototype.dtdNData=function(t){return""+t||""},t.prototype.convertAttKey="@",t.prototype.convertPIKey="?",t.prototype.convertTextKey="#text",t.prototype.convertCDataKey="#cdata",t.prototype.convertCommentKey="#comment",t.prototype.convertRawKey="#raw",t.prototype.assertLegalChar=function(t){var e;if(e=t.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/))throw new Error("Invalid character in string: "+t+" at index "+e.index);return t},t.prototype.elEscape=function(t){var e;return e=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,t.replace(e,"&").replace(//g,">").replace(/\r/g," ")},t.prototype.attEscape=function(t){var e;return e=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,t.replace(e,"&").replace(/0?new Array(e).join(this.indent):""},t}()}).call(this)},function(t,e){t.exports=require("string_decoder")},function(t,e){(function(){"use strict";var t;t=new RegExp(/(?!xmlns)^.*:/),e.normalize=function(t){return t.toLowerCase()},e.firstCharLowerCase=function(t){return t.charAt(0).toLowerCase()+t.slice(1)},e.stripPrefix=function(e){return e.replace(t,"")},e.parseNumbers=function(t){return isNaN(t)||(t=t%1==0?parseInt(t,10):parseFloat(t)),t},e.parseBooleans=function(t){return/^(?:true|false)$/i.test(t)&&(t="true"===t.toLowerCase()),t}}).call(this)},function(t,e,n){var r;function i(t){function n(){if(n.enabled){var t=n,i=+new Date,o=i-(r||i);t.diff=o,t.prev=r,t.curr=i,r=i;for(var s=new Array(arguments.length),a=0;a{const e=new Uint8Array(t);if(!(e&&e.length>1))return null;const n=(t,n)=>{n=Object.assign({offset:0},n);for(let r=0;r66===n[e]&&130===n[e+1]);if(n>=0){const e=n+3,r=n=>Array.from(n).every((n,r)=>t[e+r]===n.charCodeAt(0));if(r("matroska"))return{ext:"mkv",mime:"video/x-matroska"};if(r("webm"))return{ext:"webm",mime:"video/webm"}}}return n([0,0,0,20,102,116,121,112,113,116,32,32])||n([102,114,101,101],{offset:4})||n([102,116,121,112,113,116,32,32],{offset:4})||n([109,100,97,116],{offset:4})||n([119,105,100,101],{offset:4})?{ext:"mov",mime:"video/quicktime"}:n([82,73,70,70])&&n([65,86,73],{offset:8})?{ext:"avi",mime:"video/x-msvideo"}:n([48,38,178,117,142,102,207,17,166,217])?{ext:"wmv",mime:"video/x-ms-wmv"}:n([0,0,1,186])?{ext:"mpg",mime:"video/mpeg"}:n([73,68,51])||n([255,251])?{ext:"mp3",mime:"audio/mpeg"}:n([102,116,121,112,77,52,65],{offset:4})||n([77,52,65,32])?{ext:"m4a",mime:"audio/m4a"}:n([79,112,117,115,72,101,97,100],{offset:28})?{ext:"opus",mime:"audio/opus"}:n([79,103,103,83])?{ext:"ogg",mime:"audio/ogg"}:n([102,76,97,67])?{ext:"flac",mime:"audio/x-flac"}:n([82,73,70,70])&&n([87,65,86,69],{offset:8})?{ext:"wav",mime:"audio/x-wav"}:n([35,33,65,77,82,10])?{ext:"amr",mime:"audio/amr"}:n([37,80,68,70])?{ext:"pdf",mime:"application/pdf"}:n([77,90])?{ext:"exe",mime:"application/x-msdownload"}:67!==e[0]&&70!==e[0]||!n([87,83],{offset:1})?n([123,92,114,116,102])?{ext:"rtf",mime:"application/rtf"}:n([0,97,115,109])?{ext:"wasm",mime:"application/wasm"}:n([119,79,70,70])&&(n([0,1,0,0],{offset:4})||n([79,84,84,79],{offset:4}))?{ext:"woff",mime:"font/woff"}:n([119,79,70,50])&&(n([0,1,0,0],{offset:4})||n([79,84,84,79],{offset:4}))?{ext:"woff2",mime:"font/woff2"}:n([76,80],{offset:34})&&(n([0,0,1],{offset:8})||n([1,0,2],{offset:8})||n([2,0,2],{offset:8}))?{ext:"eot",mime:"application/octet-stream"}:n([0,1,0,0,0])?{ext:"ttf",mime:"font/ttf"}:n([79,84,84,79,0])?{ext:"otf",mime:"font/otf"}:n([0,0,1,0])?{ext:"ico",mime:"image/x-icon"}:n([70,76,86,1])?{ext:"flv",mime:"video/x-flv"}:n([37,33])?{ext:"ps",mime:"application/postscript"}:n([253,55,122,88,90,0])?{ext:"xz",mime:"application/x-xz"}:n([83,81,76,105])?{ext:"sqlite",mime:"application/x-sqlite3"}:n([78,69,83,26])?{ext:"nes",mime:"application/x-nintendo-nes-rom"}:n([67,114,50,52])?{ext:"crx",mime:"application/x-google-chrome-extension"}:n([77,83,67,70])||n([73,83,99,40])?{ext:"cab",mime:"application/vnd.ms-cab-compressed"}:n([33,60,97,114,99,104,62,10,100,101,98,105,97,110,45,98,105,110,97,114,121])?{ext:"deb",mime:"application/x-deb"}:n([33,60,97,114,99,104,62])?{ext:"ar",mime:"application/x-unix-archive"}:n([237,171,238,219])?{ext:"rpm",mime:"application/x-rpm"}:n([31,160])||n([31,157])?{ext:"Z",mime:"application/x-compress"}:n([76,90,73,80])?{ext:"lz",mime:"application/x-lzip"}:n([208,207,17,224,161,177,26,225])?{ext:"msi",mime:"application/x-msi"}:n([6,14,43,52,2,5,1,1,13,1,2,1,1,2])?{ext:"mxf",mime:"application/mxf"}:n([71],{offset:4})&&(n([71],{offset:192})||n([71],{offset:196}))?{ext:"mts",mime:"video/mp2t"}:n([66,76,69,78,68,69,82])?{ext:"blend",mime:"application/x-blender"}:n([66,80,71,251])?{ext:"bpg",mime:"image/bpg"}:null:{ext:"swf",mime:"application/x-shockwave-flash"}}},function(t,e,n){e.extract=n(221),e.pack=n(232)},function(t,e,n){"use strict";var r=n(43);t.exports=b;var i,o=n(224);b.ReadableState=_;n(17).EventEmitter;var s=function(t,e){return t.listeners(e).length},a=n(98),c=n(22).Buffer,u=global.Uint8Array||function(){};var l=n(23);l.inherits=n(18);var p=n(3),f=void 0;f=p&&p.debuglog?p.debuglog("stream"):function(){};var h,d=n(226),g=n(99);l.inherits(b,a);var m=["error","close","destroy","pause","resume"];function _(t,e){t=t||{};var r=e instanceof(i=i||n(19));this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var o=t.highWaterMark,s=t.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:r&&(s||0===s)?s:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(h||(h=n(101).StringDecoder),this.decoder=new h(t.encoding),this.encoding=t.encoding)}function b(t){if(i=i||n(19),!(this instanceof b))return new b(t);this._readableState=new _(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),a.call(this)}function y(t,e,n,r,i){var o,s=t._readableState;null===e?(s.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,k(t)}(t,s)):(i||(o=function(t,e){var n;r=e,c.isBuffer(r)||r instanceof u||"string"==typeof e||void 0===e||t.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(s,e)),o?t.emit("error",o):s.objectMode||e&&e.length>0?("string"==typeof e||s.objectMode||Object.getPrototypeOf(e)===c.prototype||(e=function(t){return c.from(t)}(e)),r?s.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):v(t,s,e,!0):s.ended?t.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!n?(e=s.decoder.write(e),s.objectMode||0!==e.length?v(t,s,e,!1):D(t,s)):v(t,s,e,!1))):r||(s.reading=!1));return function(t){return!t.ended&&(t.needReadable||t.lengthe.highWaterMark&&(e.highWaterMark=function(t){return t>=x?t=x:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function k(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(f("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?r.nextTick(E,t):E(t))}function E(t){f("emit readable"),t.emit("readable"),A(t)}function D(t,e){e.readingMore||(e.readingMore=!0,r.nextTick(S,t,e))}function S(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=function(t,e,n){var r;to.length?o.length:t;if(s===o.length?i+=o:i+=o.slice(0,t),0===(t-=s)){s===o.length?(++r,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(s));break}++r}return e.length-=r,i}(t,e):function(t,e){var n=c.allocUnsafe(t),r=e.head,i=1;r.data.copy(n),t-=r.data.length;for(;r=r.next;){var o=r.data,s=t>o.length?o.length:t;if(o.copy(n,n.length-t,0,s),0===(t-=s)){s===o.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(s));break}++i}return e.length-=i,n}(t,e);return r}(t,e.buffer,e.decoder),n);var n}function T(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,r.nextTick(P,e,t))}function P(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function B(t,e){for(var n=0,r=t.length;n=e.highWaterMark||e.ended))return f("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?T(this):k(this),null;if(0===(t=w(t,e))&&e.ended)return 0===e.length&&T(this),null;var r,i=e.needReadable;return f("need readable",i),(0===e.length||e.length-t0?I(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&T(this)),null!==r&&this.emit("data",r),r},b.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(t,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t)}i.pipesCount+=1,f("pipe count=%d opts=%j",i.pipesCount,e);var a=(!e||!1!==e.end)&&t!==process.stdout&&t!==process.stderr?u:b;function c(e,r){f("onunpipe"),e===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,f("cleanup"),t.removeListener("close",m),t.removeListener("finish",_),t.removeListener("drain",l),t.removeListener("error",g),t.removeListener("unpipe",c),n.removeListener("end",u),n.removeListener("end",b),n.removeListener("data",d),p=!0,!i.awaitDrain||t._writableState&&!t._writableState.needDrain||l())}function u(){f("onend"),t.end()}i.endEmitted?r.nextTick(a):n.once("end",a),t.on("unpipe",c);var l=function(t){return function(){var e=t._readableState;f("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&s(t,"data")&&(e.flowing=!0,A(t))}}(n);t.on("drain",l);var p=!1;var h=!1;function d(e){f("ondata"),h=!1,!1!==t.write(e)||h||((1===i.pipesCount&&i.pipes===t||i.pipesCount>1&&-1!==B(i.pipes,t))&&!p&&(f("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,h=!0),n.pause())}function g(e){f("onerror",e),b(),t.removeListener("error",g),0===s(t,"error")&&t.emit("error",e)}function m(){t.removeListener("finish",_),b()}function _(){f("onfinish"),t.removeListener("close",m),b()}function b(){f("unpipe"),n.unpipe(t)}return n.on("data",d),function(t,e,n){if("function"==typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?o(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(t,"error",g),t.once("close",m),t.once("finish",_),t.emit("pipe",n),i.flowing||(f("pipe resume"),n.resume()),t},b.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n),this);if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o-1?setImmediate:r.nextTick;m.WritableState=g;var a=n(23);a.inherits=n(18);var c={deprecate:n(227)},u=n(98),l=n(22).Buffer,p=global.Uint8Array||function(){};var f,h=n(99);function d(){}function g(t,e){o=o||n(19),t=t||{};var a=e instanceof o;this.objectMode=!!t.objectMode,a&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var c=t.highWaterMark,u=t.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=c||0===c?c:a&&(u||0===u)?u:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var p=!1===t.decodeStrings;this.decodeStrings=!p,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var n=t._writableState,i=n.sync,o=n.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(n),e)!function(t,e,n,i,o){--e.pendingcb,n?(r.nextTick(o,i),r.nextTick(w,t,e),t._writableState.errorEmitted=!0,t.emit("error",i)):(o(i),t._writableState.errorEmitted=!0,t.emit("error",i),w(t,e))}(t,n,i,e,o);else{var a=v(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||y(t,n),i?s(b,t,n,a,o):b(t,n,a,o)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function m(t){if(o=o||n(19),!(f.call(m,this)||this instanceof o))return new m(t);this._writableState=new g(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),u.call(this)}function _(t,e,n,r,i,o,s){e.writelen=r,e.writecb=s,e.writing=!0,e.sync=!0,n?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function b(t,e,n,r){n||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,r(),w(t,e)}function y(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var r=e.bufferedRequestCount,o=new Array(r),s=e.corkedRequestsFree;s.entry=n;for(var a=0,c=!0;n;)o[a]=n,n.isBuf||(c=!1),n=n.next,a+=1;o.allBuffers=c,_(t,e,!0,e.length,o,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new i(e),e.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,l=n.encoding,p=n.callback;if(_(t,e,!1,e.objectMode?1:u.length,u,l,p),n=n.next,e.bufferedRequestCount--,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}function v(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function x(t,e){t._final(function(n){e.pendingcb--,n&&t.emit("error",n),e.prefinished=!0,t.emit("prefinish"),w(t,e)})}function w(t,e){var n=v(e);return n&&(!function(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,r.nextTick(x,t,e)):(e.prefinished=!0,t.emit("prefinish")))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),n}a.inherits(m,u),g.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(g.prototype,"buffer",{get:c.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(f=Function.prototype[Symbol.hasInstance],Object.defineProperty(m,Symbol.hasInstance,{value:function(t){return!!f.call(this,t)||this===m&&(t&&t._writableState instanceof g)}})):f=function(t){return t instanceof this},m.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},m.prototype.write=function(t,e,n){var i,o=this._writableState,s=!1,a=!o.objectMode&&(i=t,l.isBuffer(i)||i instanceof p);return a&&!l.isBuffer(t)&&(t=function(t){return l.from(t)}(t)),"function"==typeof e&&(n=e,e=null),a?e="buffer":e||(e=o.defaultEncoding),"function"!=typeof n&&(n=d),o.ended?function(t,e){var n=new Error("write after end");t.emit("error",n),r.nextTick(e,n)}(this,n):(a||function(t,e,n,i){var o=!0,s=!1;return null===n?s=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||e.objectMode||(s=new TypeError("Invalid non-string/buffer chunk")),s&&(t.emit("error",s),r.nextTick(i,s),o=!1),o}(this,o,t,n))&&(o.pendingcb++,s=function(t,e,n,r,i,o){if(!n){var s=function(t,e,n){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=l.from(e,n));return e}(e,r,i);r!==s&&(n=!0,i="buffer",r=s)}var a=e.objectMode?1:r.length;e.length+=a;var c=e.length-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),m.prototype._write=function(t,e,n){n(new Error("_write() is not implemented"))},m.prototype._writev=null,m.prototype.end=function(t,e,n){var i=this._writableState;"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!=t&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||function(t,e,n){e.ending=!0,w(t,e),n&&(e.finished?r.nextTick(n):t.once("finish",n));e.ended=!0,t.writable=!1}(this,i,n)},Object.defineProperty(m.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),m.prototype.destroy=h.destroy,m.prototype._undestroy=h.undestroy,m.prototype._destroy=function(t,e){this.end(),e(t)}},function(t,e,n){"use strict";var r=n(22).Buffer,i=r.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(r.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=c,this.end=u,e=4;break;case"utf8":this.fillLast=a,e=4;break;case"base64":this.text=l,this.end=p,e=3;break;default:return this.write=f,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(e)}function s(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function a(t){var e=this.lastTotal-this.lastNeed,n=function(t,e,n){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function c(t,e){if((t.length-e)%2==0){var n=t.toString("utf16le",e);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function u(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function l(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function p(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function f(t){return t.toString(this.encoding)}function h(t){return t&&t.length?this.write(t):""}e.StringDecoder=o,o.prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0)return i>0&&(t.lastNeed=i-1),i;if(--r=0)return i>0&&(t.lastNeed=i-2),i;if(--r=0)return i>0&&(2===i?i=0:t.lastNeed=i-3),i;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var r=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",e,r)},o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},function(t,e,n){"use strict";t.exports=s;var r=n(19),i=n(23);function o(t,e){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=e&&this.push(e),r(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.lengthe?"7777777777777777777".slice(0,e)+" ":"0000000000000000000".slice(0,e-t.length)+t+" "};var l=function(t,e,n){if(128&(t=t.slice(e,e+n))[e=0])return function(t){var e;if(128===t[0])e=!0;else{if(255!==t[0])return null;e=!1}for(var n=!1,r=[],i=t.length-1;i>0;i--){var o=t[i];e?r.push(o):n&&0===o?r.push(0):n?(n=!1,r.push(256-o)):r.push(255-o)}var s=0,a=r.length;for(i=0;i=o?o:i>=0?i:(i+=o)>=0?i:0);e=Math.pow(10,n)&&n++,e+n+t};e.decodeLongPath=function(t,e){return p(t,0,t.length,e)},e.encodePax=function(t){var e="";t.name&&(e+=f(" path="+t.name+"\n")),t.linkname&&(e+=f(" linkpath="+t.linkname+"\n"));var n=t.pax;if(n)for(var i in n)e+=f(" "+i+"="+n[i]+"\n");return r(e)},e.decodePax=function(t){for(var e={};t.length;){for(var n=0;n100;){var a=n.indexOf("/");if(-1===a)return null;r+=r?"/"+n.slice(0,a):n.slice(0,a),n=n.slice(a+1)}return Buffer.byteLength(n)>100||Buffer.byteLength(r)>155?null:t.linkname&&Buffer.byteLength(t.linkname)>100?null:(e.write(n),e.write(u(t.mode&s,6),100),e.write(u(t.uid,6),108),e.write(u(t.gid,6),116),e.write(u(t.size,11),124),e.write(u(t.mtime.getTime()/1e3|0,11),136),e[156]=o+function(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}(t.type),t.linkname&&e.write(t.linkname,157),e.write("ustar\x0000",257),t.uname&&e.write(t.uname,265),t.gname&&e.write(t.gname,297),e.write(u(t.devmajor||0,6),329),e.write(u(t.devminor||0,6),337),r&&e.write(r,345),e.write(u(c(e),6),148),e)},e.decode=function(t,e){var n=0===t[156]?0:t[156]-o,r=p(t,0,100,e),i=l(t,100,8),s=l(t,108,8),a=l(t,116,8),u=l(t,124,12),f=l(t,136,12),h=function(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}(n),d=0===t[157]?null:p(t,157,100,e),g=p(t,265,32),m=p(t,297,32),_=l(t,329,8),b=l(t,337,8);t[345]&&(r=p(t,345,155,e)+"/"+r),0===n&&r&&"/"===r[r.length-1]&&(n=5);var y=c(t);if(256===y)return null;if(y!==l(t,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");return{name:r,mode:i,uid:s,gid:a,size:u,mtime:new Date(1e3*f),type:h,linkname:d,uname:g,gname:m,devmajor:_,devminor:b}}},function(t,e){t.exports=function(t,e){if(Buffer.isBuffer(t))return t;if("string"==typeof t)return n(t,e);if(Array.isArray(t))return n(t);throw new Error("Input should be a buffer or a string")};var n=Buffer.from&&Buffer.from!==Uint8Array.from?Buffer.from:function(t,e){return new Buffer(t,e)}},function(t,e,n){var r=n(230),i=n(231);t.exports=function(t,e,n){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative');if(Buffer.alloc)return Buffer.alloc(t,e,n);var o=i(t);return 0===t?o:void 0===e?r(o,0):("string"!=typeof n&&(n=void 0),r(o,e,n))}},function(t,e){t.exports=function t(e,n){if(e&&n)return t(e)(n);if("function"!=typeof e)throw new TypeError("need wrapper function");Object.keys(e).forEach(function(t){r[t]=e[t]});return r;function r(){for(var t=new Array(arguments.length),n=0;n-1&&t%1==0&&t-1&&t%1==0&&t<=n}(t.length)&&!function(t){var e=w(t)?l.call(t):"";return e==i||e==o}(t)}function w(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}var k,E=(k=function(t,e,n,r){!function(t,e,n,r){n||(n={});for(var i=-1,o=e.length;++i1?e[r-1]:void 0,o=r>2?e[2]:void 0;for(i=k.length>3&&"function"==typeof i?(r--,i):void 0,o&&function(t,e,n){if(!w(n))return!1;var r=typeof e;return!!("number"==r?x(n)&&b(e,n.length):"string"==r&&e in n)&&y(n[e],t)}(e[0],e[1],o)&&(i=r<3?void 0:i,r=1),t=Object(t);++n>c.SHORT_SHIFT&c.SHORT_MASK},l.prototype.getVersionNeededToExtract=function(){return this.minver},l.prototype.setComment=function(t){Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.comment=t},l.prototype.setCompressedSize=function(t){if(t<0)throw new Error("invalid entry compressed size");this.csize=t},l.prototype.setCrc=function(t){if(t<0)throw new Error("invalid entry crc32");this.crc=t},l.prototype.setExternalAttributes=function(t){this.exattr=t>>>0},l.prototype.setExtra=function(t){this.extra=t},l.prototype.setGeneralPurposeBit=function(t){if(!(t instanceof a))throw new Error("invalid entry GeneralPurposeBit");this.gpb=t},l.prototype.setInternalAttributes=function(t){this.inattr=t},l.prototype.setMethod=function(t){if(t<0)throw new Error("invalid entry compression method");this.method=t},l.prototype.setName=function(t){t=i(t,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,""),Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.name=t},l.prototype.setPlatform=function(t){this.platform=t},l.prototype.setSize=function(t){if(t<0)throw new Error("invalid entry size");this.size=t},l.prototype.setTime=function(t,e){if(!(t instanceof Date))throw new Error("invalid entry time");this.time=u.dateToDos(t,e)},l.prototype.setUnixMode=function(t){var e=0;e|=(t|=this.isDirectory()?c.S_IFDIR:c.S_IFREG)<c.ZIP64_MAGIC||this.size>c.ZIP64_MAGIC}},function(t,e,n){var r=n(59),i=t.exports=function(){return this instanceof i?(this.descriptor=!1,this.encryption=!1,this.utf8=!1,this.numberOfShannonFanoTrees=0,this.strongEncryption=!1,this.slidingDictionarySize=0,this):new i};i.prototype.encode=function(){return r.getShortBytes((this.descriptor?8:0)|(this.utf8?2048:0)|(this.encryption?1:0)|(this.strongEncryption?64:0))},i.prototype.parse=function(t,e){var n=r.getShortBytesValue(t,e),o=new i;return o.useDataDescriptor(0!=(8&n)),o.useUTF8ForNames(0!=(2048&n)),o.useStrongEncryption(0!=(64&n)),o.useEncryption(0!=(1&n)),o.setSlidingDictionarySize(0!=(2&n)?8192:4096),o.setNumberOfShannonFanoTrees(0!=(4&n)?3:2),o},i.prototype.setNumberOfShannonFanoTrees=function(t){this.numberOfShannonFanoTrees=t},i.prototype.getNumberOfShannonFanoTrees=function(){return this.numberOfShannonFanoTrees},i.prototype.setSlidingDictionarySize=function(t){this.slidingDictionarySize=t},i.prototype.getSlidingDictionarySize=function(){return this.slidingDictionarySize},i.prototype.useDataDescriptor=function(t){this.descriptor=t},i.prototype.usesDataDescriptor=function(){return this.descriptor},i.prototype.useEncryption=function(t){this.encryption=t},i.prototype.usesEncryption=function(){return this.encryption},i.prototype.useStrongEncryption=function(t){this.strongEncryption=t},i.prototype.usesStrongEncryption=function(){return this.strongEncryption},i.prototype.useUTF8ForNames=function(t){this.utf8=t},i.prototype.usesUTF8ForNames=function(){return this.utf8}},function(t,e){t.exports={WORD:4,DWORD:8,EMPTY:new Buffer(0),SHORT:2,SHORT_MASK:65535,SHORT_SHIFT:16,SHORT_ZERO:new Buffer(Array(2)),LONG:4,LONG_ZERO:new Buffer(Array(4)),MIN_VERSION_INITIAL:10,MIN_VERSION_DATA_DESCRIPTOR:20,MIN_VERSION_ZIP64:45,VERSION_MADEBY:45,METHOD_STORED:0,METHOD_DEFLATED:8,PLATFORM_UNIX:3,PLATFORM_FAT:0,SIG_LFH:67324752,SIG_DD:134695760,SIG_CFH:33639248,SIG_EOCD:101010256,SIG_ZIP64_EOCD:101075792,SIG_ZIP64_EOCD_LOC:117853008,ZIP64_MAGIC_SHORT:65535,ZIP64_MAGIC:4294967295,ZIP64_EXTRA_ID:1,ZLIB_NO_COMPRESSION:0,ZLIB_BEST_SPEED:1,ZLIB_BEST_COMPRESSION:9,ZLIB_DEFAULT_COMPRESSION:-1,MODE_MASK:4095,DEFAULT_FILE_MODE:33188,DEFAULT_DIR_MODE:16877,EXT_FILE_ATTR_DIR:1106051088,EXT_FILE_ATTR_FILE:2175008800,S_IFMT:61440,S_IFIFO:4096,S_IFCHR:8192,S_IFDIR:16384,S_IFBLK:24576,S_IFREG:32768,S_IFLNK:40960,S_IFSOCK:49152,S_DOS_A:32,S_DOS_D:16,S_DOS_V:8,S_DOS_S:4,S_DOS_H:2,S_DOS_R:1}},function(t,e,n){var r=n(3).inherits,i=n(11).Transform,o=n(58),a=n(117),s=t.exports=function(t){if(!(this instanceof s))return new s(t);i.call(this,t),this.offset=0,this._archive={finish:!1,finished:!1,processing:!1}};r(s,i),s.prototype._appendBuffer=function(t,e,n){},s.prototype._appendStream=function(t,e,n){},s.prototype._emitErrorCallback=function(t){t&&this.emit("error",t)},s.prototype._finish=function(t){},s.prototype._normalizeEntry=function(t){},s.prototype._transform=function(t,e,n){n(null,t)},s.prototype.entry=function(t,e,n){if(e=e||null,"function"!=typeof n&&(n=this._emitErrorCallback.bind(this)),t instanceof o)if(this._archive.finish||this._archive.finished)n(new Error("unacceptable entry after finish"));else{if(!this._archive.processing){if(this._archive.processing=!0,this._normalizeEntry(t),this._entry=t,e=a.normalizeInputSource(e),Buffer.isBuffer(e))this._appendBuffer(t,e,n);else{if(!a.isStream(e))return this._archive.processing=!1,void n(new Error("input source must be valid Stream or Buffer instance"));this._appendStream(t,e,n)}return this}n(new Error("already processing an entry"))}else n(new Error("not a valid instance of ArchiveEntry"))},s.prototype.finish=function(){this._archive.processing?this._archive.finish=!0:this._finish()},s.prototype.getBytesWritten=function(){return this.offset},s.prototype.write=function(t,e){return t&&(this.offset+=t.length),i.prototype.write.call(this,t,e)}},function(t,e,n){var r=n(7).Stream,i=n(11).PassThrough,o=t.exports={};o.isStream=function(t){return t instanceof r},o.normalizeInputSource=function(t){if(null===t)return new Buffer(0);if("string"==typeof t)return new Buffer(t);if(o.isStream(t)&&!t._readableState){var e=new i;return t.pipe(e),e}return t}},function(t,e,n){"use strict";n.r(e);var r=n(4);var i=r.Buffer.from&&r.Buffer.alloc&&r.Buffer.allocUnsafe&&r.Buffer.allocUnsafeSlow?r.Buffer.from:t=>new r.Buffer(t),o=function(t,e){const n=(t,n)=>e(t,n)>>>0;return n.signed=e,n.unsigned=n,n.model=t,n};var a=o("crc1",function(t,e){r.Buffer.isBuffer(t)||(t=i(t));let n=~~e,o=0;for(let e=0;e>8)}return n});let h=[0,4129,8258,12387,16516,20645,24774,28903,33032,37161,41290,45419,49548,53677,57806,61935,4657,528,12915,8786,21173,17044,29431,25302,37689,33560,45947,41818,54205,50076,62463,58334,9314,13379,1056,5121,25830,29895,17572,21637,42346,46411,34088,38153,58862,62927,50604,54669,13907,9842,5649,1584,30423,26358,22165,18100,46939,42874,38681,34616,63455,59390,55197,51132,18628,22757,26758,30887,2112,6241,10242,14371,51660,55789,59790,63919,35144,39273,43274,47403,23285,19156,31415,27286,6769,2640,14899,10770,56317,52188,64447,60318,39801,35672,47931,43802,27814,31879,19684,23749,11298,15363,3168,7233,60846,64911,52716,56781,44330,48395,36200,40265,32407,28342,24277,20212,15891,11826,7761,3696,65439,61374,57309,53244,48923,44858,40793,36728,37256,33193,45514,41451,53516,49453,61774,57711,4224,161,12482,8419,20484,16421,28742,24679,33721,37784,41979,46042,49981,54044,58239,62302,689,4752,8947,13010,16949,21012,25207,29270,46570,42443,38312,34185,62830,58703,54572,50445,13538,9411,5280,1153,29798,25671,21540,17413,42971,47098,34713,38840,59231,63358,50973,55100,9939,14066,1681,5808,26199,30326,17941,22068,55628,51565,63758,59695,39368,35305,47498,43435,22596,18533,30726,26663,6336,2273,14466,10403,52093,56156,60223,64286,35833,39896,43963,48026,19061,23124,27191,31254,2801,6864,10931,14994,64814,60687,56684,52557,48554,44427,40424,36297,31782,27655,23652,19525,15522,11395,7392,3265,61215,65342,53085,57212,44955,49082,36825,40952,28183,32310,20053,24180,11923,16050,3793,7920];"undefined"!=typeof Int32Array&&(h=new Int32Array(h));var d=o("ccitt",function(t,e){r.Buffer.isBuffer(t)||(t=i(t));let n=void 0!==e?~~e:65535;for(let e=0;e>8^r)]^n<<8)}return n});let g=[0,49345,49537,320,49921,960,640,49729,50689,1728,1920,51009,1280,50625,50305,1088,52225,3264,3456,52545,3840,53185,52865,3648,2560,51905,52097,2880,51457,2496,2176,51265,55297,6336,6528,55617,6912,56257,55937,6720,7680,57025,57217,8e3,56577,7616,7296,56385,5120,54465,54657,5440,55041,6080,5760,54849,53761,4800,4992,54081,4352,53697,53377,4160,61441,12480,12672,61761,13056,62401,62081,12864,13824,63169,63361,14144,62721,13760,13440,62529,15360,64705,64897,15680,65281,16320,16e3,65089,64001,15040,15232,64321,14592,63937,63617,14400,10240,59585,59777,10560,60161,11200,10880,59969,60929,11968,12160,61249,11520,60865,60545,11328,58369,9408,9600,58689,9984,59329,59009,9792,8704,58049,58241,9024,57601,8640,8320,57409,40961,24768,24960,41281,25344,41921,41601,25152,26112,42689,42881,26432,42241,26048,25728,42049,27648,44225,44417,27968,44801,28608,28288,44609,43521,27328,27520,43841,26880,43457,43137,26688,30720,47297,47489,31040,47873,31680,31360,47681,48641,32448,32640,48961,32e3,48577,48257,31808,46081,29888,30080,46401,30464,47041,46721,30272,29184,45761,45953,29504,45313,29120,28800,45121,20480,37057,37249,20800,37633,21440,21120,37441,38401,22208,22400,38721,21760,38337,38017,21568,39937,23744,23936,40257,24320,40897,40577,24128,23040,39617,39809,23360,39169,22976,22656,38977,34817,18624,18816,35137,19200,35777,35457,19008,19968,36545,36737,20288,36097,19904,19584,35905,17408,33985,34177,17728,34561,18368,18048,34369,33281,17088,17280,33601,16640,33217,32897,16448];"undefined"!=typeof Int32Array&&(g=new Int32Array(g));var m=o("crc-16-modbus",function(t,e){r.Buffer.isBuffer(t)||(t=i(t));let n=void 0!==e?~~e:65535;for(let e=0;e>8)}return n});var _=o("xmodem",function(t,e){r.Buffer.isBuffer(t)||(t=i(t));let n=void 0!==e?~~e:0;for(let e=0;e>>8&255;r^=255&t[e],n=n<<8&65535,n^=r^=r>>>4,n^=r=r<<5&65535,n^=r=r<<7&65535}return n});let b=[0,4489,8978,12955,17956,22445,25910,29887,35912,40385,44890,48851,51820,56293,59774,63735,4225,264,13203,8730,22181,18220,30135,25662,40137,36160,49115,44626,56045,52068,63999,59510,8450,12427,528,5017,26406,30383,17460,21949,44362,48323,36440,40913,60270,64231,51324,55797,12675,8202,4753,792,30631,26158,21685,17724,48587,44098,40665,36688,64495,60006,55549,51572,16900,21389,24854,28831,1056,5545,10034,14011,52812,57285,60766,64727,34920,39393,43898,47859,21125,17164,29079,24606,5281,1320,14259,9786,57037,53060,64991,60502,39145,35168,48123,43634,25350,29327,16404,20893,9506,13483,1584,6073,61262,65223,52316,56789,43370,47331,35448,39921,29575,25102,20629,16668,13731,9258,5809,1848,65487,60998,56541,52564,47595,43106,39673,35696,33800,38273,42778,46739,49708,54181,57662,61623,2112,6601,11090,15067,20068,24557,28022,31999,38025,34048,47003,42514,53933,49956,61887,57398,6337,2376,15315,10842,24293,20332,32247,27774,42250,46211,34328,38801,58158,62119,49212,53685,10562,14539,2640,7129,28518,32495,19572,24061,46475,41986,38553,34576,62383,57894,53437,49460,14787,10314,6865,2904,32743,28270,23797,19836,50700,55173,58654,62615,32808,37281,41786,45747,19012,23501,26966,30943,3168,7657,12146,16123,54925,50948,62879,58390,37033,33056,46011,41522,23237,19276,31191,26718,7393,3432,16371,11898,59150,63111,50204,54677,41258,45219,33336,37809,27462,31439,18516,23005,11618,15595,3696,8185,63375,58886,54429,50452,45483,40994,37561,33584,31687,27214,22741,18780,15843,11370,7921,3960];"undefined"!=typeof Int32Array&&(b=new Int32Array(b));var y=o("kermit",function(t,e){r.Buffer.isBuffer(t)||(t=i(t));let n=void 0!==e?~~e:0;for(let e=0;e>8)}return n});let v=[0,8801531,9098509,825846,9692897,1419802,1651692,10452759,10584377,2608578,2839604,11344079,3303384,11807523,12104405,4128302,12930697,4391538,5217156,13227903,5679208,13690003,14450021,5910942,6606768,14844747,15604413,6837830,16197969,7431594,8256604,16494759,840169,9084178,8783076,18463,10434312,1670131,1434117,9678590,11358416,2825259,2590173,10602790,4109873,12122826,11821884,3289031,13213536,5231515,4409965,12912278,5929345,14431610,13675660,5693559,6823513,15618722,14863188,6588335,16513208,8238147,7417269,16212302,1680338,10481449,9664223,1391140,9061683,788936,36926,8838341,12067563,4091408,3340262,11844381,2868234,11372785,10555655,2579964,14478683,5939616,5650518,13661357,5180346,13190977,12967607,4428364,8219746,16457881,16234863,7468436,15633027,6866552,6578062,14816117,1405499,9649856,10463030,1698765,8819930,55329,803287,9047340,11858690,3325945,4072975,12086004,2561507,10574104,11387118,2853909,13647026,5664841,5958079,14460228,4446803,12949160,13176670,5194661,7454091,16249200,16476294,8201341,14834538,6559633,6852199,15647388,3360676,11864927,12161705,4185682,10527045,2551230,2782280,11286707,9619101,1346150,1577872,10379115,73852,8875143,9172337,899466,16124205,7357910,8182816,16421083,6680524,14918455,15678145,6911546,5736468,13747439,14507289,5968354,12873461,4334094,5159928,13170435,4167245,12180150,11879232,3346363,11301036,2767959,2532769,10545498,10360692,1596303,1360505,9604738,913813,9157998,8856728,92259,16439492,8164415,7343561,16138546,6897189,15692510,14936872,6662099,5986813,14488838,13733104,5750795,13156124,5174247,4352529,12855018,2810998,11315341,10498427,2522496,12124823,4148844,3397530,11901793,9135439,862644,110658,8912057,1606574,10407765,9590435,1317464,15706879,6940164,6651890,14889737,8145950,16384229,16161043,7394792,5123014,13133629,12910283,4370992,14535975,5997020,5707818,13718737,2504095,10516836,11329682,2796649,11916158,3383173,4130419,12143240,8893606,129117,876971,9121104,1331783,9576124,10389322,1625009,14908182,6633453,6925851,15721184,7380471,16175372,16402682,8127489,4389423,12891860,13119266,5137369,13704398,5722165,6015427,14517560];"undefined"!=typeof Int32Array&&(v=new Int32Array(v));var x=o("crc-24",function(t,e){r.Buffer.isBuffer(t)||(t=i(t));let n=void 0!==e?~~e:11994318;for(let e=0;e>16^r)]^n<<8)}return n});let w=[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];"undefined"!=typeof Int32Array&&(w=new Int32Array(w));var k=o("crc-32",function(t,e){r.Buffer.isBuffer(t)||(t=i(t));let n=0===e?0:-1^~~e;for(let e=0;e>>8}return-1^n});let E=[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];"undefined"!=typeof Int32Array&&(E=new Int32Array(E));var D=o("jam",function(t,e=-1){r.Buffer.isBuffer(t)||(t=i(t));let n=0===e?0:~~e;for(let e=0;e>>8}return n});n.d(e,"crc1",function(){return a}),n.d(e,"crc8",function(){return c}),n.d(e,"crc81wire",function(){return l}),n.d(e,"crc16",function(){return f}),n.d(e,"crc16ccitt",function(){return d}),n.d(e,"crc16modbus",function(){return m}),n.d(e,"crc16xmodem",function(){return _}),n.d(e,"crc16kermit",function(){return y}),n.d(e,"crc24",function(){return x}),n.d(e,"crc32",function(){return k}),n.d(e,"crcjam",function(){return D});e.default={crc1:a,crc8:c,crc81wire:l,crc16:f,crc16ccitt:d,crc16modbus:m,crc16xmodem:_,crc16kermit:y,crc24:x,crc32:k,crcjam:D}},function(t,e,n){var r=n(1),i=n(5),o=parseInt("0777",8);function a(t,e,n,s){"function"==typeof e?(n=e,e={}):e&&"object"==typeof e||(e={mode:e});var c=e.mode,u=e.fs||i;void 0===c&&(c=o&~process.umask()),s||(s=null);var l=n||function(){};t=r.resolve(t),u.mkdir(t,c,function(n){if(!n)return l(null,s=s||t);switch(n.code){case"ENOENT":a(r.dirname(t),e,function(n,r){n?l(n,r):a(t,e,l,r)});break;default:u.stat(t,function(t,e){t||!e.isDirectory()?l(n,s):l(null,s)})}})}t.exports=a.mkdirp=a.mkdirP=a,a.sync=function t(e,n,a){n&&"object"==typeof n||(n={mode:n});var s=n.mode,c=n.fs||i;void 0===s&&(s=o&~process.umask()),a||(a=null),e=r.resolve(e);try{c.mkdirSync(e,s),a=a||e}catch(i){switch(i.code){case"ENOENT":a=t(r.dirname(e),n,a),t(e,n,a);break;default:var u;try{u=c.statSync(e)}catch(t){throw i}if(!u.isDirectory())throw i}}return a}},function(t,e,n){"use strict";function r(t,e,n,o,a,s){for(var c,u,l,p,f=Math.max(e-1,0),h=Math.max(n-1,0),d=Math.min(e+1,o-1),g=Math.min(n+1,a-1),m=4*(n*o+e),_=0,b=0,y=0,v=0,x=0,w=f;w<=d;w++)for(var k=h;k<=g;k++)if(w!==e||k!==n){var E=i(t,t,m,4*(k*o+w),!0);if(0===E?_++:E<0?y++:E>0&&b++,_>2)return!1;s&&(Ex&&(x=E,l=w,p=k))}return!s||0!==y&&0!==b&&(!r(t,c,u,o,a)&&!r(s,c,u,o,a)||!r(t,l,p,o,a)&&!r(s,l,p,o,a))}function i(t,e,n,r,i){var u=t[n+3]/255,l=e[r+3]/255,p=c(t[n+0],u),f=c(t[n+1],u),h=c(t[n+2],u),d=c(e[r+0],l),g=c(e[r+1],l),m=c(e[r+2],l),_=o(p,f,h)-o(d,g,m);if(i)return _;var b=a(p,f,h)-a(d,g,m),y=s(p,f,h)-s(d,g,m);return.5053*_*_+.299*b*b+.1957*y*y}function o(t,e,n){return.29889531*t+.58662247*e+.11448223*n}function a(t,e,n){return.59597799*t-.2741761*e-.32180189*n}function s(t,e,n){return.21147017*t-.52261711*e+.31114694*n}function c(t,e){return 255+(t-255)*e}function u(t,e,n,r,i){t[e+0]=n,t[e+1]=r,t[e+2]=i,t[e+3]=255}t.exports=function(t,e,n,a,s,l){l||(l={});for(var p=void 0===l.threshold?.1:l.threshold,f=35215*p*p,h=0,d=0;df)l.includeAA||!r(t,g,d,a,s,e)&&!r(e,g,d,a,s,t)?(n&&u(n,m,255,0,0),h++):n&&u(n,m,255,255,0);else if(n){var b=c((x=void 0,w=void 0,k=void 0,E=void 0,x=(y=t)[(v=m)+3]/255,w=c(y[v+0],x),k=c(y[v+1],x),E=c(y[v+2],x),o(w,k,E)),.1);u(n,m,b,b,b)}}var y,v,x,w,k,E;return h}},function(t,e,n){function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(){return(i=Object.assign||function(t){for(var e=1;e[...t].map(t=>t.charCodeAt(0)),i=r("META-INF/mozilla.rsa"),o=r("[Content_Types].xml"),a=r("_rels/.rels");t.exports=t=>{const e=t instanceof Uint8Array?t:new Uint8Array(t);if(!(e&&e.length>1))return null;const n=(t,n)=>{n=Object.assign({offset:0},n);for(let r=0;rn(r(t),e);if(n([255,216,255]))return{ext:"jpg",mime:"image/jpeg"};if(n([137,80,78,71,13,10,26,10]))return{ext:"png",mime:"image/png"};if(n([71,73,70]))return{ext:"gif",mime:"image/gif"};if(n([87,69,66,80],{offset:8}))return{ext:"webp",mime:"image/webp"};if(n([70,76,73,70]))return{ext:"flif",mime:"image/flif"};if((n([73,73,42,0])||n([77,77,0,42]))&&n([67,82],{offset:8}))return{ext:"cr2",mime:"image/x-canon-cr2"};if(n([73,73,42,0])||n([77,77,0,42]))return{ext:"tif",mime:"image/tiff"};if(n([66,77]))return{ext:"bmp",mime:"image/bmp"};if(n([73,73,188]))return{ext:"jxr",mime:"image/vnd.ms-photo"};if(n([56,66,80,83]))return{ext:"psd",mime:"image/vnd.adobe.photoshop"};if(n([80,75,3,4])){if(n([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(n(i,{offset:30}))return{ext:"xpi",mime:"application/x-xpinstall"};if(s("mimetypeapplication/vnd.oasis.opendocument.text",{offset:30}))return{ext:"odt",mime:"application/vnd.oasis.opendocument.text"};if(s("mimetypeapplication/vnd.oasis.opendocument.spreadsheet",{offset:30}))return{ext:"ods",mime:"application/vnd.oasis.opendocument.spreadsheet"};if(s("mimetypeapplication/vnd.oasis.opendocument.presentation",{offset:30}))return{ext:"odp",mime:"application/vnd.oasis.opendocument.presentation"};const t=(t,e=0)=>t.findIndex((t,n,r)=>n>=e&&80===r[n]&&75===r[n+1]&&3===r[n+2]&&4===r[n+3]);let r=0,c=!1,u=null;do{const i=r+30;if(c||(c=n(o,{offset:i})||n(a,{offset:i})),u||(s("word/",{offset:i})?u={ext:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"}:s("ppt/",{offset:i})?u={ext:"pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"}:s("xl/",{offset:i})&&(u={ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"})),c&&u)return u;r=t(e,i)}while(r>=0);if(u)return u}if(n([80,75])&&(3===e[2]||5===e[2]||7===e[2])&&(4===e[3]||6===e[3]||8===e[3]))return{ext:"zip",mime:"application/zip"};if(n([117,115,116,97,114],{offset:257}))return{ext:"tar",mime:"application/x-tar"};if(n([82,97,114,33,26,7])&&(0===e[6]||1===e[6]))return{ext:"rar",mime:"application/x-rar-compressed"};if(n([31,139,8]))return{ext:"gz",mime:"application/gzip"};if(n([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(n([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(n([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(n([51,103,112,53])||n([0,0,0])&&n([102,116,121,112],{offset:4})&&(n([109,112,52,49],{offset:8})||n([109,112,52,50],{offset:8})||n([105,115,111,109],{offset:8})||n([105,115,111,50],{offset:8})||n([109,109,112,52],{offset:8})||n([77,52,86],{offset:8})||n([100,97,115,104],{offset:8})))return{ext:"mp4",mime:"video/mp4"};if(n([77,84,104,100]))return{ext:"mid",mime:"audio/midi"};if(n([26,69,223,163])){const t=e.subarray(4,4100),n=t.findIndex((t,e,n)=>66===n[e]&&130===n[e+1]);if(-1!==n){const e=n+3,r=n=>[...n].every((n,r)=>t[e+r]===n.charCodeAt(0));if(r("matroska"))return{ext:"mkv",mime:"video/x-matroska"};if(r("webm"))return{ext:"webm",mime:"video/webm"}}}if(n([0,0,0,20,102,116,121,112,113,116,32,32])||n([102,114,101,101],{offset:4})||n([102,116,121,112,113,116,32,32],{offset:4})||n([109,100,97,116],{offset:4})||n([119,105,100,101],{offset:4}))return{ext:"mov",mime:"video/quicktime"};if(n([82,73,70,70])){if(n([65,86,73],{offset:8}))return{ext:"avi",mime:"video/vnd.avi"};if(n([87,65,86,69],{offset:8}))return{ext:"wav",mime:"audio/vnd.wave"};if(n([81,76,67,77],{offset:8}))return{ext:"qcp",mime:"audio/qcelp"}}if(n([48,38,178,117,142,102,207,17,166,217]))return{ext:"wmv",mime:"video/x-ms-wmv"};if(n([0,0,1,186])||n([0,0,1,179]))return{ext:"mpg",mime:"video/mpeg"};if(n([102,116,121,112,51,103],{offset:4}))return{ext:"3gp",mime:"video/3gpp"};for(let t=0;t<2&&t>=c,l-=c,m!==o){if(m===a)break;for(var _=mo;)y=d[y]>>8,++b;var v=y;if(f+b+(_!==m?1:0)>r)return void console.log("Warning, gif stream longer than expected.");n[f++]=v;var x=f+=b;for(_!==m&&(n[f++]=v),y=_;b--;)y=d[y],n[--x]=255&y,y>>=8;null!==g&&s<4096&&(d[s++]=g<<8|v,s>=u+1&&c<12&&(++c,u=u<<1|1)),g=m}else s=a+1,u=(1<<(c=i+1))-1,g=null}return f!==r&&console.log("Warning, gif stream shorter than expected."),n}try{e.GifWriter=function(t,e,n,r){var i=0,o=void 0===(r=void 0===r?{}:r).loop?null:r.loop,a=void 0===r.palette?null:r.palette;if(e<=0||n<=0||e>65535||n>65535)throw new Error("Width/Height invalid.");function s(t){var e=t.length;if(e<2||e>256||e&e-1)throw new Error("Invalid code/color length, must be power of 2 and 2 .. 256.");return e}t[i++]=71,t[i++]=73,t[i++]=70,t[i++]=56,t[i++]=57,t[i++]=97;var c=0,u=0;if(null!==a){for(var l=s(a);l>>=1;)++c;if(l=1<=l)throw new Error("Background index out of range.");if(0===u)throw new Error("Background index explicitly passed as 0.")}}if(t[i++]=255&e,t[i++]=e>>8&255,t[i++]=255&n,t[i++]=n>>8&255,t[i++]=(null!==a?128:0)|c,t[i++]=u,t[i++]=0,null!==a)for(var p=0,f=a.length;p>16&255,t[i++]=h>>8&255,t[i++]=255&h}if(null!==o){if(o<0||o>65535)throw new Error("Loop count invalid.");t[i++]=33,t[i++]=255,t[i++]=11,t[i++]=78,t[i++]=69,t[i++]=84,t[i++]=83,t[i++]=67,t[i++]=65,t[i++]=80,t[i++]=69,t[i++]=50,t[i++]=46,t[i++]=48,t[i++]=3,t[i++]=1,t[i++]=255&o,t[i++]=o>>8&255,t[i++]=0}var d=!1;this.addFrame=function(e,n,r,o,c,u){if(!0===d&&(--i,d=!1),u=void 0===u?{}:u,e<0||n<0||e>65535||n>65535)throw new Error("x/y invalid.");if(r<=0||o<=0||r>65535||o>65535)throw new Error("Width/Height invalid.");if(c.length>=1;)++h;f=1<3)throw new Error("Disposal out of range.");var _=!1,b=0;if(void 0!==u.transparent&&null!==u.transparent&&(_=!0,(b=u.transparent)<0||b>=f))throw new Error("Transparent color index.");if((0!==m||_||0!==g)&&(t[i++]=33,t[i++]=249,t[i++]=4,t[i++]=m<<2|(!0===_?1:0),t[i++]=255&g,t[i++]=g>>8&255,t[i++]=b,t[i++]=0),t[i++]=44,t[i++]=255&e,t[i++]=e>>8&255,t[i++]=255&n,t[i++]=n>>8&255,t[i++]=255&r,t[i++]=r>>8&255,t[i++]=255&o,t[i++]=o>>8&255,t[i++]=!0===l?128|h-1:0,!0===l)for(var y=0,v=p.length;y>16&255,t[i++]=x>>8&255,t[i++]=255&x}return i=function(t,e,n,r){t[e++]=n;var i=e++,o=1<=n;)t[e++]=255&p,p>>=8,l-=8,e===i+256&&(t[i]=255,i=e++)}function h(t){p|=t<=8;)t[e++]=255&p,p>>=8,l-=8,e===i+256&&(t[i]=255,i=e++);4096===c?(h(o),c=s+1,u=n+1,g={}):(c>=1<>7,s=1<<1+(7&o);t[e++],t[e++];var c=null,u=null;a&&(c=e,u=s,e+=3*s);var l=!0,p=[],f=0,h=null,d=0,g=null;for(this.width=n,this.height=i;l&&e=0))throw Error("Invalid block size");if(0===C)break;e+=C}break;case 249:if(4!==t[e++]||0!==t[e+4])throw new Error("Invalid graphics extension block.");var m=t[e++];f=t[e++]|t[e++]<<8,h=t[e++],0==(1&m)&&(h=null),d=m>>2&7,e++;break;case 254:for(;;){if(!((C=t[e++])>=0))throw Error("Invalid block size");if(0===C)break;e+=C}break;default:throw new Error("Unknown graphic control label: 0x"+t[e-1].toString(16))}break;case 44:var _=t[e++]|t[e++]<<8,b=t[e++]|t[e++]<<8,y=t[e++]|t[e++]<<8,v=t[e++]|t[e++]<<8,x=t[e++],w=x>>6&1,k=1<<1+(7&x),E=c,D=u,S=!1;x>>7&&(S=!0,E=e,D=k,e+=3*k);var O=e;for(e++;;){var C;if(!((C=t[e++])>=0))throw Error("Invalid block size");if(0===C)break;e+=C}p.push({x:_,y:b,width:y,height:v,has_local_palette:S,palette_offset:E,palette_size:D,data_offset:O,data_length:e-O,transparent_index:h,interlaced:!!w,delay:f,disposal:d});break;case 59:l=!1;break;default:throw new Error("Unknown gif block: 0x"+t[e-1].toString(16))}this.numFrames=function(){return p.length},this.loopCount=function(){return g},this.frameInfo=function(t){if(t<0||t>=p.length)throw new Error("Frame index out of range.");return p[t]},this.decodeAndBlitFrameBGRA=function(e,i){var o=this.frameInfo(e),a=o.width*o.height,s=new Uint8Array(a);r(t,o.data_offset,s,a);var c=o.palette_offset,u=o.transparent_index;null===u&&(u=256);var l=o.width,p=n-l,f=l,h=4*(o.y*n+o.x),d=4*((o.y+o.height)*n+o.x),g=h,m=4*p;!0===o.interlaced&&(m+=4*n*7);for(var _=8,b=0,y=s.length;b=d&&(m=4*p+4*n*(_-1),g=h+(l+p)*(_<<1),_>>=1)),v===u)g+=4;else{var x=t[c+3*v],w=t[c+3*v+1],k=t[c+3*v+2];i[g++]=k,i[g++]=w,i[g++]=x,i[g++]=255}--f}},this.decodeAndBlitFrameRGBA=function(e,i){var o=this.frameInfo(e),a=o.width*o.height,s=new Uint8Array(a);r(t,o.data_offset,s,a);var c=o.palette_offset,u=o.transparent_index;null===u&&(u=256);var l=o.width,p=n-l,f=l,h=4*(o.y*n+o.x),d=4*((o.y+o.height)*n+o.x),g=h,m=4*p;!0===o.interlaced&&(m+=4*n*7);for(var _=8,b=0,y=s.length;b=d&&(m=4*p+4*n*(_-1),g=h+(l+p)*(_<<1),_>>=1)),v===u)g+=4;else{var x=t[c+3*v],w=t[c+3*v+1],k=t[c+3*v+2];i[g++]=x,i[g++]=w,i[g++]=k,i[g++]=255}--f}}}}catch(t){}},function(t,e){function n(t,e,n,r,i,o,a){this.widthOriginal=Math.abs(Math.floor(t)||0),this.heightOriginal=Math.abs(Math.floor(e)||0),this.targetWidth=Math.abs(Math.floor(n)||0),this.targetHeight=Math.abs(Math.floor(r)||0),this.colorChannels=i?4:3,this.interpolationPass=Boolean(o),this.resizeCallback="function"==typeof a?a:function(){},this.targetWidthMultipliedByChannels=this.targetWidth*this.colorChannels,this.originalWidthMultipliedByChannels=this.widthOriginal*this.colorChannels,this.originalHeightMultipliedByChannels=this.heightOriginal*this.colorChannels,this.widthPassResultSize=this.targetWidthMultipliedByChannels*this.heightOriginal,this.finalResultSize=this.targetWidthMultipliedByChannels*this.targetHeight,this.initialize()}n.prototype.initialize=function(){if(!(this.widthOriginal>0&&this.heightOriginal>0&&this.targetWidth>0&&this.targetHeight>0))throw new Error("Invalid settings specified for the resizer.");this.configurePasses()},n.prototype.configurePasses=function(){this.widthOriginal===this.targetWidth?this.resizeWidth=this.bypassResizer:(this.ratioWeightWidthPass=this.widthOriginal/this.targetWidth,this.ratioWeightWidthPass<1&&this.interpolationPass?(this.initializeFirstPassBuffers(!0),this.resizeWidth=4===this.colorChannels?this.resizeWidthInterpolatedRGBA:this.resizeWidthInterpolatedRGB):(this.initializeFirstPassBuffers(!1),this.resizeWidth=4===this.colorChannels?this.resizeWidthRGBA:this.resizeWidthRGB)),this.heightOriginal===this.targetHeight?this.resizeHeight=this.bypassResizer:(this.ratioWeightHeightPass=this.heightOriginal/this.targetHeight,this.ratioWeightHeightPass<1&&this.interpolationPass?(this.initializeSecondPassBuffers(!0),this.resizeHeight=this.resizeHeightInterpolated):(this.initializeSecondPassBuffers(!1),this.resizeHeight=4===this.colorChannels?this.resizeHeightRGBA:this.resizeHeightRGB))},n.prototype._resizeWidthInterpolatedRGBChannels=function(t,e){var n,r,i=e?4:3,o=this.ratioWeightWidthPass,a=this.widthBuffer,s=0,c=0,u=0,l=0,p=0;for(n=0;s<1/3;n+=i,s+=o)for(c=n,u=0;c=p)){h+=l;break}h=f+=n,l-=p}while(l>0&&f=c)){l+=s;break}l=u=h,s-=c}while(s>0&&u3&&(this.outputWidthWorkBenchOpaquePixelsCount=this.generateFloat64Buffer(this.heightOriginal)))},n.prototype.initializeSecondPassBuffers=function(t){this.heightBuffer=this.generateUint8Buffer(this.finalResultSize),t||(this.outputHeightWorkBench=this.generateFloatBuffer(this.targetWidthMultipliedByChannels),this.colorChannels>3&&(this.outputHeightWorkBenchOpaquePixelsCount=this.generateFloat64Buffer(this.targetWidth)))},n.prototype.generateFloatBuffer=function(t){try{return new Float32Array(t)}catch(t){return[]}},n.prototype.generateFloat64Buffer=function(t){try{return new Float64Array(t)}catch(t){return[]}},n.prototype.generateUint8Buffer=function(t){try{return new Uint8Array(t)}catch(t){return[]}},t.exports=n},function(t,e,n){"use strict";(function(t){var r=n(1),i=n.n(r),o=n(127),a=n.n(o),s=n(0),c=n(16);function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e0&&i.height>0){var o=e.pages[i.page];t.blit(o,n+i.xoffset,r+i.yoffset,i.x,i.y,i.width,i.height)}return t}var f=process.env.DIRNAME||"".concat(t,"/../");e.a=function(){return{constants:{measureText:c.a,measureTextHeight:c.b,FONT_SANS_8_BLACK:i.a.join(f,"fonts/open-sans/open-sans-8-black/open-sans-8-black.fnt"),FONT_SANS_10_BLACK:i.a.join(f,"fonts/open-sans/open-sans-10-black/open-sans-10-black.fnt"),FONT_SANS_12_BLACK:i.a.join(f,"fonts/open-sans/open-sans-12-black/open-sans-12-black.fnt"),FONT_SANS_14_BLACK:i.a.join(f,"fonts/open-sans/open-sans-14-black/open-sans-14-black.fnt"),FONT_SANS_16_BLACK:i.a.join(f,"fonts/open-sans/open-sans-16-black/open-sans-16-black.fnt"),FONT_SANS_32_BLACK:i.a.join(f,"fonts/open-sans/open-sans-32-black/open-sans-32-black.fnt"),FONT_SANS_64_BLACK:i.a.join(f,"fonts/open-sans/open-sans-64-black/open-sans-64-black.fnt"),FONT_SANS_128_BLACK:i.a.join(f,"fonts/open-sans/open-sans-128-black/open-sans-128-black.fnt"),FONT_SANS_8_WHITE:i.a.join(f,"fonts/open-sans/open-sans-8-white/open-sans-8-white.fnt"),FONT_SANS_16_WHITE:i.a.join(f,"fonts/open-sans/open-sans-16-white/open-sans-16-white.fnt"),FONT_SANS_32_WHITE:i.a.join(f,"fonts/open-sans/open-sans-32-white/open-sans-32-white.fnt"),FONT_SANS_64_WHITE:i.a.join(f,"fonts/open-sans/open-sans-64-white/open-sans-64-white.fnt"),FONT_SANS_128_WHITE:i.a.join(f,"fonts/open-sans/open-sans-128-white/open-sans-128-white.fnt"),loadFont:function(t,e){var n=this;return"string"!=typeof t?s.c.call(this,"file must be a string",e):new Promise(function(r,o){e=e||function(t,e){t?o(t):r(e)},a()(t,function(r,o){var a={},c={};if(r)return s.c.call(n,r,e);for(var u=0;ua&&(a=s),o.push(e)):(i.push(o),o=[e])}),i.push(o),{lines:i,longestLine:a}}(t,r,i),_=m.lines,b=m.longestLine;return _.forEach(function(r){var o=r.join(" "),a=function(t,e,n,r,i){return i===t.HORIZONTAL_ALIGN_LEFT?0:i===t.HORIZONTAL_ALIGN_CENTER?(r-Object(c.a)(e,n))/2:r-Object(c.a)(e,n)}(d.constructor,t,o,i,f);(function(t,e,n,r,i){for(var o=0;o>2,a=(31&t[e])<<3,s=128&t[e+1]):console.error("cant transform to Pixel"),this.pixels[n]=i,this.pixels[n+1]=o,this.pixels[n+2]=a,this.pixels[n+3]=s}readPixels(){r("readPixels");var t=this.header,e=(t.bytesPerPixel,t.width*t.height),n=new Uint8Array(this.buffer);this.pixels=new Uint8Array(4*e);for(var i=18,o=0;o((t,e)=>0===e.plugins.length?Promise.resolve([]):Promise.all(e.plugins.map(n=>n(t,e))).then(t=>t.reduce((t,e)=>t.concat(e))))(t,n).then(t=>(n.strip>0&&(t=t.map(t=>(t.path=p(t.path,n.strip),t)).filter(t=>"."!==t.path)),"function"==typeof n.filter&&(t=t.filter(n.filter)),"function"==typeof n.map&&(t=t.map(n.map)),e?Promise.all(t.map(t=>{const n=r.join(e,t.path),i=t.mode&~process.umask(),o=new Date;return"directory"===t.type?u(n).then(()=>f.utimes(n,o,t.mtime)).then(()=>t):u(r.dirname(n)).then(()=>"link"===t.type?f.link(t.linkname,n):"symlink"===t.type&&"win32"===process.platform?f.link(t.linkname,n):"symlink"===t.type?f.symlink(t.linkname,n):f.writeFile(n,t.data,{mode:i})).then(()=>"file"===t.type&&f.utimes(n,o,t.mtime)).then(()=>t)})):t));t.exports=(t,e,n)=>{if("string"!=typeof t&&!Buffer.isBuffer(t))return Promise.reject(new TypeError("Input file required"));return"object"==typeof e&&(n=e,e=null),n=Object.assign({plugins:[o(),a(),s(),c()]},n),("string"==typeof t?f.readFile(t):Promise.resolve(t)).then(t=>h(t,e,n))}},function(t,e,n){"use strict";var r=n(5),i=n(259),o=n(1);class a{static async zip(t,e){return new Promise((n,r)=>{a.zipFolder(t,e,t=>{t&&r(t),n()})})}static zipFolder(t,e,n){r.access(t,r.constants.F_OK,a=>{if(a)return n(a);r.access(o.dirname(e),r.constants.F_OK,o=>{if(o)return n(o);var a=r.createWriteStream(e),s=i("zip");a.on("close",function(){n()}),s.pipe(a),s.directory(t,!1),s.finalize()})})}}t.exports=a},function(t,e,n){var r=n(48),i=function(){},o=function(t,e,n){if("function"==typeof e)return o(t,null,e);e||(e={}),n=r(n||i);var a=t._writableState,s=t._readableState,c=e.readable||!1!==e.readable&&t.readable,u=e.writable||!1!==e.writable&&t.writable,l=function(){t.writable||p()},p=function(){u=!1,c||n.call(t)},f=function(){c=!1,u||n.call(t)},h=function(e){n.call(t,e?new Error("exited with error code: "+e):null)},d=function(e){n.call(t,e)},g=function(){return(!c||s&&s.ended)&&(!u||a&&a.ended)?void 0:n.call(t,new Error("premature close"))},m=function(){t.req.on("finish",p)};return!function(t){return t.setHeader&&"function"==typeof t.abort}(t)?u&&!a&&(t.on("end",l),t.on("close",l)):(t.on("complete",p),t.on("abort",g),t.req?m():t.on("request",m)),function(t){return t.stdio&&Array.isArray(t.stdio)&&3===t.stdio.length}(t)&&t.on("exit",h),t.on("end",f),t.on("finish",p),!1!==e.error&&t.on("error",d),t.on("close",g),function(){t.removeListener("complete",p),t.removeListener("abort",g),t.removeListener("request",m),t.req&&t.req.removeListener("finish",p),t.removeListener("end",l),t.removeListener("close",l),t.removeListener("finish",p),t.removeListener("exit",h),t.removeListener("end",f),t.removeListener("error",d),t.removeListener("close",g)}};t.exports=o},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){"use strict";function r(t){this.name="YError",this.message=t||"yargs error",Error.captureStackTrace(this,r)}r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,t.exports=r},function(t,e,n){"use strict";n.r(e);var r={};n.r(r),n.d(r,"AUTO",function(){return N}),n.d(r,"HORIZONTAL_ALIGN_LEFT",function(){return z}),n.d(r,"HORIZONTAL_ALIGN_CENTER",function(){return R}),n.d(r,"HORIZONTAL_ALIGN_RIGHT",function(){return U}),n.d(r,"VERTICAL_ALIGN_TOP",function(){return G}),n.d(r,"VERTICAL_ALIGN_MIDDLE",function(){return H}),n.d(r,"VERTICAL_ALIGN_BOTTOM",function(){return $}),n.d(r,"BLEND_SOURCE_OVER",function(){return q}),n.d(r,"BLEND_DESTINATION_OVER",function(){return W}),n.d(r,"BLEND_MULTIPLY",function(){return V}),n.d(r,"BLEND_SCREEN",function(){return Y}),n.d(r,"BLEND_OVERLAY",function(){return Z}),n.d(r,"BLEND_DARKEN",function(){return X}),n.d(r,"BLEND_LIGHTEN",function(){return Q}),n.d(r,"BLEND_HARDLIGHT",function(){return J}),n.d(r,"BLEND_DIFFERENCE",function(){return K}),n.d(r,"BLEND_EXCLUSION",function(){return tt}),n.d(r,"EDGE_EXTEND",function(){return et}),n.d(r,"EDGE_WRAP",function(){return nt}),n.d(r,"EDGE_CROP",function(){return rt});var i={};n.r(i),n.d(i,"srcOver",function(){return it}),n.d(i,"dstOver",function(){return ot}),n.d(i,"multiply",function(){return at}),n.d(i,"screen",function(){return st}),n.d(i,"overlay",function(){return ct}),n.d(i,"darken",function(){return ut}),n.d(i,"lighten",function(){return lt}),n.d(i,"hardLight",function(){return pt}),n.d(i,"difference",function(){return ft}),n.d(i,"exclusion",function(){return ht});var o=class extends Error{};var a=class extends o{};class s{constructor(t,e){if(this.constructor===s)throw new a("Can't instantiate abstract class!");this.path=t,this.temp=e}async input(){}async name(){}}var c=s;var u=class extends o{};class l{constructor(t,e,n=[]){if(this.constructor===l)throw new u("Can't instantiate abstract class!");this.path=t,this.input=e,this.data=n}async convert(){}async*getData(){}}var p=l,f=n(2),h=n.n(f),d=n(1),g=n.n(d);var m=class extends o{};class _{static fromPath(t,e){return g.a.join(e,t)}static log(t){_.verbose&&console.log(t)}static setVerbose(t=!0){_.verbose=t}static toPath(t,e,n){return t.startsWith("./")?g.a.join(g.a.dirname(e),t.substr(2)):g.a.join(n,t)}constructor(){throw new m("Can't instantiate this class!")}}_.verbose=!0;var b=_;var y=class extends p{async convert(){for await(const t of this.getData()){const e=b.fromPath(t,this.path);h.a.existsSync(e)&&(b.log(`Delete ${t}`),await h.a.remove(e))}return[]}async*getData(){const t=["assets","textures/blocks/conduit.png","textures/entity/conduit/break_particle.png","textures/blocks/dried_kelp_bottom.png","textures/blocks/water_overlay.png","textures/entity/cat/cat_collar.png","textures/entity/wolf/wolf_collar.png","bedrock_textures"];for(const e of t)yield e}};var v=class extends y{async*getData(){for(const t of this.data)yield t}},x=n(5),w=n.n(x),k=n(17),E=n.n(k),D=n(0),S=n(26),O=n.n(S),C=n(119),A=n.n(C),I=n(120),T=n.n(I),P=n(25),B=n.n(P),F=n(27),j=n.n(F),L=n(121),M=n.n(L),N=-1,z=1,R=2,U=4,G=8,H=16,$=32,q="srcOver",W="dstOver",V="multiply",Y="screen",Z="overlay",X="darken",Q="lighten",J="hardLight",K="difference",tt="exclusion",et=1,nt=2,rt=3;function it(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a;return{r:(t.r*t.a+e.r*e.a*(1-t.a))/r,g:(t.g*t.a+e.g*e.a*(1-t.a))/r,b:(t.b*t.a+e.b*e.a*(1-t.a))/r,a:r}}function ot(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a;return{r:(e.r*e.a+t.r*t.a*(1-e.a))/r,g:(e.g*e.a+t.g*t.a*(1-e.a))/r,b:(e.b*e.a+t.b*t.a*(1-e.a))/r,a:r}}function at(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,c=e.g*e.a,u=e.b*e.a;return{r:(i*s+i*(1-e.a)+s*(1-t.a))/r,g:(o*c+o*(1-e.a)+c*(1-t.a))/r,b:(a*u+a*(1-e.a)+u*(1-t.a))/r,a:r}}function st(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,c=e.g*e.a,u=e.b*e.a;return{r:(i*e.a+s*t.a-i*s+i*(1-e.a)+s*(1-t.a))/r,g:(o*e.a+c*t.a-o*c+o*(1-e.a)+c*(1-t.a))/r,b:(a*e.a+u*t.a-a*u+a*(1-e.a)+u*(1-t.a))/r,a:r}}function ct(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,c=e.g*e.a,u=e.b*e.a;return{r:(2*s<=e.a?2*i*s+i*(1-e.a)+s*(1-t.a):i*(1+e.a)+s*(1+t.a)-2*s*i-e.a*t.a)/r,g:(2*c<=e.a?2*o*c+o*(1-e.a)+c*(1-t.a):o*(1+e.a)+c*(1+t.a)-2*c*o-e.a*t.a)/r,b:(2*u<=e.a?2*a*u+a*(1-e.a)+u*(1-t.a):a*(1+e.a)+u*(1+t.a)-2*u*a-e.a*t.a)/r,a:r}}function ut(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,c=e.g*e.a,u=e.b*e.a;return{r:(Math.min(i*e.a,s*t.a)+i*(1-e.a)+s*(1-t.a))/r,g:(Math.min(o*e.a,c*t.a)+o*(1-e.a)+c*(1-t.a))/r,b:(Math.min(a*e.a,u*t.a)+a*(1-e.a)+u*(1-t.a))/r,a:r}}function lt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,c=e.g*e.a,u=e.b*e.a;return{r:(Math.max(i*e.a,s*t.a)+i*(1-e.a)+s*(1-t.a))/r,g:(Math.max(o*e.a,c*t.a)+o*(1-e.a)+c*(1-t.a))/r,b:(Math.max(a*e.a,u*t.a)+a*(1-e.a)+u*(1-t.a))/r,a:r}}function pt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,c=e.g*e.a,u=e.b*e.a;return{r:(2*i<=t.a?2*i*s+i*(1-e.a)+s*(1-t.a):i*(1+e.a)+s*(1+t.a)-2*s*i-e.a*t.a)/r,g:(2*o<=t.a?2*o*c+o*(1-e.a)+c*(1-t.a):o*(1+e.a)+c*(1+t.a)-2*c*o-e.a*t.a)/r,b:(2*a<=t.a?2*a*u+a*(1-e.a)+u*(1-t.a):a*(1+e.a)+u*(1+t.a)-2*u*a-e.a*t.a)/r,a:r}}function ft(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,c=e.g*e.a,u=e.b*e.a;return{r:(i+s-2*Math.min(i*e.a,s*t.a))/r,g:(o+c-2*Math.min(o*e.a,c*t.a))/r,b:(a+u-2*Math.min(a*e.a,u*t.a))/r,a:r}}function ht(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,c=e.g*e.a,u=e.b*e.a;return{r:(i*e.a+s*t.a-2*i*s+i*(1-e.a)+s*(1-t.a))/r,g:(o*e.a+c*t.a-2*o*c+o*(1-e.a)+c*(1-t.a))/r,b:(a*e.a+u*t.a-2*a*u+a*(1-e.a)+u*(1-t.a))/r,a:r}}var dt=function(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i"));this._originalMime=r.toLowerCase();try{var i=this.getMIME();if(!this.constructor.decoders[i])return D.c.call(this,"Unsupported MIME type: "+i,n);this.bitmap=this.constructor.decoders[i](t)}catch(t){return n.call(this,t,this)}try{this._exif=xt.a.create(t).parse(),function(t){var e=t._exif;if(e&&e.tags&&e.tags.Orientation)switch(t._exif.tags.Orientation){case 1:break;case 2:t.mirror(!0,!1);break;case 3:t.rotate(180,!1);break;case 4:t.mirror(!1,!0);break;case 5:t.rotate(-90,!1).mirror(!0,!1);break;case 6:t.rotate(-90,!1);break;case 7:t.rotate(90,!1).mirror(!0,!1);break;case 8:t.rotate(-270,!1)}}(this)}catch(t){}return n.call(this,null,this),this}function kt(t,e){if(t===N&&(t=this.getMIME()),"string"!=typeof t)return D.c.call(this,"mime must be a string",e);if("function"!=typeof e)return D.c.call(this,"cb must be a function",e);var n,r;if(t=t.toLowerCase(),this._rgba&&this.constructor.hasAlpha[t]?this.bitmap.data=Buffer.from(this.bitmap.data):this.bitmap.data=(n=this.constructor,r=this,new n(r.bitmap.width,r.bitmap.height,r._background).composite(r,0,0).bitmap).data,this.constructor.encoders[t]){var i=this.constructor.encoders[t](this);e.call(this,null,i)}else e.call(this,"Unsupported MIME type: "+t);return this}function Et(t){return dt(kt,this,t)}function Dt(t,e,n){return(Dt=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&It(i,n.prototype),i}).apply(null,arguments)}function St(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Ot(t,e){for(var n=0;n (HTTP: "+r.statusCode+")";return new Error(o)})}var Rt,Ut={data:null,width:null,height:null},Gt=function(t){function e(){for(var t,n=arguments.length,r=new Array(n),i=0;i-1&&(r[0]=function(t){for(var e=Buffer.alloc(t.byteLength),n=new Uint8Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:{};n=Object.assign(n,{methodName:t,eventName:e}),this.emit("any",n),t&&this.emit(t,n),this.emit(e,n)}},{key:"emitError",value:function(t,e){this.emitMulti(t,"error",e)}},{key:"getHeight",value:function(){return this.bitmap.height}},{key:"getWidth",value:function(){return this.bitmap.width}},{key:"inspect",value:function(){return""}},{key:"toString",value:function(){return"[object Jimp]"}},{key:"getMIME",value:function(){return this._originalMime||e.MIME_PNG}},{key:"getExtension",value:function(){var t=this.getMIME();return(gt[t.toLowerCase()]||[])[0]}},{key:"write",value:function(t,e){var n=this;if(!w.a||!w.a.createWriteStream)throw new Error("Cant access the filesystem. You can use the getBase64 method.");if("string"!=typeof t)return D.c.call(this,"path must be a string",e);if(void 0===e&&(e=Nt),"function"!=typeof e)return D.c.call(this,"cb must be a function",e);var r=_t(t)||this.getMIME(),i=g.a.parse(t);return i.dir&&A.a.sync(i.dir),this.getBuffer(r,function(r,i){if(r)return D.c.call(n,r,e);var o=w.a.createWriteStream(t);o.on("open",function(){o.write(i),o.end()}).on("error",function(t){return D.c.call(n,t,e)}),o.on("finish",function(){e.call(n,null,n)})}),this}},{key:"getBase64",value:function(t,n){return t===e.AUTO&&(t=this.getMIME()),"string"!=typeof t?D.c.call(this,"mime must be a string",n):"function"!=typeof n?D.c.call(this,"cb must be a function",n):(this.getBuffer(t,function(e,r){if(e)return D.c.call(this,e,n);var i="data:"+t+";base64,"+r.toString("base64");n.call(this,null,i)}),this)}},{key:"hash",value:function(t,e){if("function"==typeof(t=t||64)&&(e=t,t=64),"number"!=typeof t)return D.c.call(this,"base must be a number",e);if(t<2||t>64)return D.c.call(this,"base must be a number between 2 and 64",e);var n=this.pHash();for(n=O()(O.a.BIN,Ft.slice(0,t))(n);n.length=this.bitmap.width&&(o=this.bitmap.width-1),n<0&&(a=0),n>=this.bitmap.height&&(a=this.bitmap.height-1)),r===e.EDGE_WRAP&&(t<0&&(o=this.bitmap.width+t),t>=this.bitmap.width&&(o=t%this.bitmap.width),n<0&&(o=this.bitmap.height+n),n>=this.bitmap.height&&(a=n%this.bitmap.height));var s=this.bitmap.width*a+o<<2;return(o<0||o>=this.bitmap.width)&&(s=-1),(a<0||a>=this.bitmap.height)&&(s=-1),Object(D.a)(i)&&i.call(this,null,s),s}},{key:"getPixelColor",value:function(t,e,n){if("number"!=typeof t||"number"!=typeof e)return D.c.call(this,"x and y must be numbers",n);t=Math.round(t),e=Math.round(e);var r=this.getPixelIndex(t,e),i=this.bitmap.data.readUInt32BE(r);return Object(D.a)(n)&&n.call(this,null,i),i}},{key:"setPixelColor",value:function(t,e,n,r){if("number"!=typeof t||"number"!=typeof e||"number"!=typeof n)return D.c.call(this,"hex, x and y must be numbers",r);e=Math.round(e),n=Math.round(n);var i=this.getPixelIndex(e,n);return this.bitmap.data.writeUInt32BE(t,i),Object(D.a)(r)&&r.call(this,null,this),this}},{key:"hasAlpha",value:function(){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:Gt;Object.entries(t).forEach(function(t){var n=St(t,2),r=n[0],i=n[1];e[r]=i})}function $t(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Gt;Object.entries(t).forEach(function(t){var n=St(t,2),r=n[0],i=n[1];e.prototype[r]=i})}function qt(t,e,n){var r="before-"+e,i=e.replace(/e$/,"")+"ed";Gt.prototype[t]=function(){for(var e,o=arguments.length,a=new Array(o),s=0;s3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4?arguments[4]:void 0;if("function"==typeof r&&(o=r,r={}),!(t instanceof this.constructor))return D.c.call(this,"The source must be a Jimp image",o);if("number"!=typeof e||"number"!=typeof n)return D.c.call(this,"x and y must be numbers",o);var a=r,s=a.mode,c=a.opacitySource,u=a.opacityDest;s||(s=q),("number"!=typeof c||c<0||c>1)&&(c=1),("number"!=typeof u||u<0||u>1)&&(u=1);var l=i[s];e=Math.round(e),n=Math.round(n);var p=this;return 1!==u&&p.opacity(u),t.scanQuiet(0,0,t.bitmap.width,t.bitmap.height,function(t,r,i){var o=p.getPixelIndex(e+t,n+r,rt),a=l({r:this.bitmap.data[i+0]/255,g:this.bitmap.data[i+1]/255,b:this.bitmap.data[i+2]/255,a:this.bitmap.data[i+3]/255},{r:p.bitmap.data[o+0]/255,g:p.bitmap.data[o+1]/255,b:p.bitmap.data[o+2]/255,a:p.bitmap.data[o+3]/255},c);p.bitmap.data[o+0]=this.constructor.limit255(255*a.r),p.bitmap.data[o+1]=this.constructor.limit255(255*a.g),p.bitmap.data[o+2]=this.constructor.limit255(255*a.b),p.bitmap.data[o+3]=this.constructor.limit255(255*a.a)}),Object(D.a)(o)&&o.call(this,null,this),this}}),Gt.__extraConstructors=[],Gt.appendConstructorOption=function(t,e,n){Gt.__extraConstructors.push({name:t,test:e,run:n})},Gt.read=function(){for(var t=arguments.length,e=new Array(t),n=0;n255)return D.c.call(this,"r must be between 0 and 255",i);if((e<0||e>255)&&D.c.call(this,"g must be between 0 and 255",i),n<0||n>255)return D.c.call(this,"b must be between 0 and 255",i);if(r<0||r>255)return D.c.call(this,"a must be between 0 and 255",i);t=Math.round(t),n=Math.round(n),e=Math.round(e),r=Math.round(r);var o=t*Math.pow(256,3)+e*Math.pow(256,2)+n*Math.pow(256,1)+r*Math.pow(256,0);return Object(D.a)(i)&&i.call(this,null,o),o},Gt.intToRGBA=function(t,e){if("number"!=typeof t)return D.c.call(this,"i must be a number",e);var n={};return n.r=Math.floor(t/Math.pow(256,3)),n.g=Math.floor((t-n.r*Math.pow(256,3))/Math.pow(256,2)),n.b=Math.floor((t-n.r*Math.pow(256,3)-n.g*Math.pow(256,2))/Math.pow(256,1)),n.a=Math.floor((t-n.r*Math.pow(256,3)-n.g*Math.pow(256,2)-n.b*Math.pow(256,1))/Math.pow(256,0)),Object(D.a)(e)&&e.call(this,null,n),n},Gt.cssColorToHex=function(t){return"number"==typeof(t=t||0)?Number(t):parseInt(B()(t).toHex8(),16)},Gt.limit255=function(t){return t=Math.max(t,0),t=Math.min(t,255)},Gt.diff=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.1;if(!(t instanceof Gt&&e instanceof Gt))return D.c.call(this,"img1 and img2 must be an Jimp images");var r=t.bitmap,i=e.bitmap;if(r.width===i.width&&r.height===i.height||(r.width*r.height>i.width*i.height?t=t.cloneQuiet().resize(i.width,i.height):e=e.cloneQuiet().resize(r.width,r.height)),"number"!=typeof n||n<0||n>1)return D.c.call(this,"threshold must be a number between 0 and 1");var o=new Gt(r.width,r.height,4294967295),a=T()(r.data,i.data,o.bitmap.data,o.bitmap.width,o.bitmap.height,{threshold:n});return{percent:a/(o.bitmap.width*o.bitmap.height),image:o}},Gt.distance=function(t,e){var n=new j.a,r=n.getHash(t),i=n.getHash(e);return n.distance(r,i)},Gt.compareHashes=function(t,e){return(new j.a).distance(t,e)},Gt.colorDiff=function(t,e){var n=function(t){return Math.pow(t,2)},r=Math.max;return 0===t.a||t.a||(t.a=255),0===e.a||e.a||(e.a=255),(r(n(t.r-e.r),n(t.r-e.r-t.a+e.a))+r(n(t.g-e.g),n(t.g-e.g-t.a+e.a))+r(n(t.b-e.b),n(t.b-e.b-t.a+e.a)))/195075},qt("clone","clone",function(t){var e=new Gt(this);return Object(D.a)(t)&&t.call(e,null,e),e}),Wt("background",function(t,e){return"number"!=typeof t?D.c.call(this,"hex must be a hexadecimal rgba value",e):(this._background=t,Object(D.a)(e)&&e.call(this,null,this),this)}),Wt("scan",function(t,e,n,r,i,o){if("number"!=typeof t||"number"!=typeof e)return D.c.call(this,"x and y must be numbers",o);if("number"!=typeof n||"number"!=typeof r)return D.c.call(this,"w and h must be numbers",o);if("function"!=typeof i)return D.c.call(this,"f must be a function",o);var a=Object(D.b)(this,t,e,n,r,i);return Object(D.a)(o)&&o.call(this,null,a),a}),"BROWSER"===process.env.ENVIRONMENT)&&("undefined"!=typeof window&&"object"===("undefined"==typeof window?"undefined":Bt(window))&&(Rt=window),"undefined"!=typeof self&&"object"===("undefined"==typeof self?"undefined":Bt(self))&&(Rt=self),Rt.Jimp=Gt,Rt.Buffer=Buffer);var Vt=Gt;function Yt(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e2&&void 0!==arguments[2]?arguments[2]:50;return{r:(e.r-t.r)*(n/100)+t.r,g:(e.g-t.g)*(n/100)+t.g,b:(e.b-t.b)*(n/100)+t.b}}function Se(t,e){var n=this;return t&&Array.isArray(t)?(t=t.map(function(t){return"xor"!==t.apply&&"mix"!==t.apply||(t.params[0]=B()(t.params[0]).toRgb()),t}),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(r,i,o){var a={r:n.bitmap.data[o],g:n.bitmap.data[o+1],b:n.bitmap.data[o+2]},s=function(t,e){return n.constructor.limit255(a[t]+e)};t.forEach(function(t){if("mix"===t.apply)a=De(a,t.params[0],t.params[1]);else if("tint"===t.apply)a=De(a,{r:255,g:255,b:255},t.params[0]);else if("shade"===t.apply)a=De(a,{r:0,g:0,b:0},t.params[0]);else if("xor"===t.apply)a={r:a.r^t.params[0].r,g:a.g^t.params[0].g,b:a.b^t.params[0].b};else if("red"===t.apply)a.r=s("r",t.params[0]);else if("green"===t.apply)a.g=s("g",t.params[0]);else if("blue"===t.apply)a.b=s("b",t.params[0]);else{var r;if("hue"===t.apply&&(t.apply="spin"),!(a=B()(a))[t.apply])return D.c.call(n,"action "+t.apply+" not supported",e);a=(r=a)[t.apply].apply(r,xe(t.params)).toRgb()}}),n.bitmap.data[o]=a.r,n.bitmap.data[o+1]=a.g,n.bitmap.data[o+2]=a.b}),Object(D.a)(e)&&e.call(this,null,this),this):D.c.call(this,"actions must be an array",e)}var Oe=n(126),Ce=[1,57,41,21,203,34,97,73,227,91,149,62,105,45,39,137,241,107,3,173,39,71,65,238,219,101,187,87,81,151,141,133,249,117,221,209,197,187,177,169,5,153,73,139,133,127,243,233,223,107,103,99,191,23,177,171,165,159,77,149,9,139,135,131,253,245,119,231,224,109,211,103,25,195,189,23,45,175,171,83,81,79,155,151,147,9,141,137,67,131,129,251,123,30,235,115,113,221,217,53,13,51,50,49,193,189,185,91,179,175,43,169,83,163,5,79,155,19,75,147,145,143,35,69,17,67,33,65,255,251,247,243,239,59,29,229,113,111,219,27,213,105,207,51,201,199,49,193,191,47,93,183,181,179,11,87,43,85,167,165,163,161,159,157,155,77,19,75,37,73,145,143,141,35,138,137,135,67,33,131,129,255,63,250,247,61,121,239,237,117,29,229,227,225,111,55,109,216,213,211,209,207,205,203,201,199,197,195,193,48,190,47,93,185,183,181,179,178,176,175,173,171,85,21,167,165,41,163,161,5,79,157,78,154,153,19,75,149,74,147,73,144,143,71,141,140,139,137,17,135,134,133,66,131,65,129,1],Ae=[0,9,10,10,14,12,14,14,16,15,16,15,16,15,15,17,18,17,12,18,16,17,17,19,19,18,19,18,18,19,19,19,20,19,20,20,20,20,20,20,15,20,19,20,20,20,21,21,21,20,20,20,21,18,21,21,21,21,20,21,17,21,21,21,22,22,21,22,22,21,22,21,19,22,22,19,20,22,22,21,21,21,22,22,22,18,22,22,21,22,22,23,22,20,23,22,22,23,23,21,19,21,21,21,23,23,23,22,23,23,21,23,22,23,18,22,23,20,22,23,23,23,21,22,20,22,21,22,24,24,24,24,24,22,21,24,23,23,24,21,24,23,24,22,24,24,22,24,24,22,23,24,24,24,20,23,22,23,24,24,24,24,24,24,24,23,21,23,22,23,24,24,24,22,24,24,24,23,22,24,24,25,23,25,25,23,24,25,25,24,22,25,25,25,24,23,24,25,25,25,25,25,25,25,25,25,25,25,25,23,25,23,24,25,25,25,25,25,25,25,25,25,24,22,25,25,23,25,25,20,24,25,24,25,25,22,24,25,24,25,24,25,25,24,25,25,25,25,22,25,25,25,24,25,24,25,18];function Ie(t){return(Ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Te=function(t,e,n){return 255*(t-e)/(n-e)},Pe=function(t){return[t.findIndex(function(t){return t>0}),255-t.slice().reverse().findIndex(function(t){return t>0})]};function Be(t,e,n){if("boolean"!=typeof t||"boolean"!=typeof e)return D.c.call(this,"horizontal and vertical must be Booleans",n);if(t&&e)return this.rotate(180,!0,n);var r=Buffer.alloc(this.bitmap.data.length);return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(n,i,o){var a=t?this.bitmap.width-1-n:n,s=e?this.bitmap.height-1-i:i,c=this.bitmap.width*s+a<<2,u=this.bitmap.data.readUInt32BE(o);r.writeUInt32BE(u,c)}),this.bitmap.data=Buffer.from(r),Object(D.a)(n)&&n.call(this,null,this),this}function Fe(t){return(Fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function je(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e=0&&p>=0&&c-s>0&&u-p>0){var f=l.getPixelIndex(s,p),h={r:this.bitmap.data[a],g:this.bitmap.data[a+1],b:this.bitmap.data[a+2],a:this.bitmap.data[a+3]},d={r:l.bitmap.data[f],g:l.bitmap.data[f+1],b:l.bitmap.data[f+2],a:l.bitmap.data[f+3]};l.bitmap.data[f]=(h.a*(h.r-d.r)-d.r+255>>8)+d.r,l.bitmap.data[f+1]=(h.a*(h.g-d.g)-d.g+255>>8)+d.g,l.bitmap.data[f+2]=(h.a*(h.b-d.b)-d.b+255>>8)+d.b,l.bitmap.data[f+3]=this.constructor.limit255(d.a+h.a)}}),Object(D.a)(s)&&s.call(this,null,this),this}}},function(){return{rotate:function(t,e,n){return null==e&&(e=!0),"function"==typeof e&&void 0===n&&(n=e,e=!0),"number"!=typeof t?D.c.call(this,"deg must be a number",n):"boolean"!=typeof e&&"string"!=typeof e?D.c.call(this,"mode must be a boolean or a string",n):(function(t,e){var n=(t%=360)*Math.PI/180,r=Math.cos(n),i=Math.sin(n),o=this.bitmap.width,a=this.bitmap.height;if(!0===e||"string"==typeof e){(o=Math.ceil(Math.abs(this.bitmap.width*r)+Math.abs(this.bitmap.height*i))+1)%2!=0&&o++,(a=Math.ceil(Math.abs(this.bitmap.width*i)+Math.abs(this.bitmap.height*r))+1)%2!=0&&a++;var s=this.cloneQuiet();this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,n){this.bitmap.data.writeUInt32BE(this._background,n)});var c=Math.max(o,a,this.bitmap.width,this.bitmap.height);this.resize(c,c,e),this.blit(s,this.bitmap.width/2-s.bitmap.width/2,this.bitmap.height/2-s.bitmap.height/2)}var u=this.bitmap.width,l=this.bitmap.height,p=Buffer.alloc(this.bitmap.data.length);function f(t,e){return function(n,r){return{x:n+t,y:r+e}}}for(var h=f(-u/2,-l/2),d=f(u/2+.5,l/2+.5),g=1;g<=l;g++)for(var m=1;m<=u;m++){var _=h(m,g),b=d(r*_.x-i*_.y,r*_.y+i*_.x),y=u*(g-1)+m-1<<2;if(b.x>=0&&b.x=0&&b.y1?D.c.call(this,"val must be a number between -1 and +1",e):(this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(e,n,r){t<0?(this.bitmap.data[r]=this.bitmap.data[r]*(1+t),this.bitmap.data[r+1]=this.bitmap.data[r+1]*(1+t),this.bitmap.data[r+2]=this.bitmap.data[r+2]*(1+t)):(this.bitmap.data[r]=this.bitmap.data[r]+(255-this.bitmap.data[r])*t,this.bitmap.data[r+1]=this.bitmap.data[r+1]+(255-this.bitmap.data[r+1])*t,this.bitmap.data[r+2]=this.bitmap.data[r+2]+(255-this.bitmap.data[r+2])*t)}),Object(D.a)(e)&&e.call(this,null,this),this)},contrast:function(t,e){if("number"!=typeof t)return D.c.call(this,"val must be numbers",e);if(t<-1||t>1)return D.c.call(this,"val must be a number between -1 and +1",e);var n=(t+1)/(1-t);function r(t){return(t=Math.floor(n*(t-127)+127))<0?0:t>255?255:t}return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,n){this.bitmap.data[n]=r(this.bitmap.data[n]),this.bitmap.data[n+1]=r(this.bitmap.data[n+1]),this.bitmap.data[n+2]=r(this.bitmap.data[n+2])}),Object(D.a)(e)&&e.call(this,null,this),this},posterize:function(t,e){return"number"!=typeof t?D.c.call(this,"n must be numbers",e):(t<2&&(t=2),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(e,n,r){this.bitmap.data[r]=Math.floor(this.bitmap.data[r]/255*(t-1))/(t-1)*255,this.bitmap.data[r+1]=Math.floor(this.bitmap.data[r+1]/255*(t-1))/(t-1)*255,this.bitmap.data[r+2]=Math.floor(this.bitmap.data[r+2]/255*(t-1))/(t-1)*255}),Object(D.a)(e)&&e.call(this,null,this),this)},greyscale:Ee,grayscale:Ee,opacity:function(t,e){return"number"!=typeof t?D.c.call(this,"f must be a number",e):t<0||t>1?D.c.call(this,"f must be a number from 0 to 1",e):(this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(e,n,r){var i=this.bitmap.data[r+3]*t;this.bitmap.data[r+3]=i}),Object(D.a)(e)&&e.call(this,null,this),this)},sepia:function(t){return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,n){var r=this.bitmap.data[n],i=this.bitmap.data[n+1],o=this.bitmap.data[n+2];o=.272*(r=.393*r+.769*i+.189*o)+.534*(i=.349*r+.686*i+.168*o)+.131*o,this.bitmap.data[n]=r<255?r:255,this.bitmap.data[n+1]=i<255?i:255,this.bitmap.data[n+2]=o<255?o:255}),Object(D.a)(t)&&t.call(this,null,this),this},fade:function(t,e){return"number"!=typeof t?D.c.call(this,"f must be a number",e):t<0||t>1?D.c.call(this,"f must be a number from 0 to 1",e):(this.opacity(1-t),Object(D.a)(e)&&e.call(this,null,this),this)},convolution:function(t,e,n){"function"==typeof e&&void 0===n&&(n=e,e=null),e||(e=this.constructor.EDGE_EXTEND);var r,i,o,a,s,c,u,l,p,f,h=Buffer.from(this.bitmap.data),d=t.length,g=t[0].length,m=Math.floor(d/2),_=Math.floor(g/2),b=-m,y=-_;return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(n,d,g){a=0,o=0,i=0;for(var v=b;v<=m;v++)for(var x=y;x<=_;x++)l=n+x,p=d+v,r=t[v+m][x+_],-1===(f=this.getPixelIndex(l,p,e))?(u=0,c=0,s=0):(s=this.bitmap.data[f+0],c=this.bitmap.data[f+1],u=this.bitmap.data[f+2]),i+=r*s,o+=r*c,a+=r*u;i<0&&(i=0),o<0&&(o=0),a<0&&(a=0),i>255&&(i=255),o>255&&(o=255),a>255&&(a=255),h[g+0]=i,h[g+1]=o,h[g+2]=a}),this.bitmap.data=h,Object(D.a)(n)&&n.call(this,null,this),this},opaque:function(t){return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,n){this.bitmap.data[n+3]=255}),Object(D.a)(t)&&t.call(this,null,this),this},pixelate:function(t,e,n,r,i,o){if("function"==typeof e)o=e,i=null,r=null,n=null,e=null;else{if("number"!=typeof t)return D.c.call(this,"size must be a number",o);if(ke(e)&&"number"!=typeof e)return D.c.call(this,"x must be a number",o);if(ke(n)&&"number"!=typeof n)return D.c.call(this,"y must be a number",o);if(ke(r)&&"number"!=typeof r)return D.c.call(this,"w must be a number",o);if(ke(i)&&"number"!=typeof i)return D.c.call(this,"h must be a number",o)}var a=[[1/16,.125,1/16],[.125,.25,.125],[1/16,.125,1/16]];e=e||0,n=n||0,r=ke(r)?r:this.bitmap.width-e,i=ke(i)?i:this.bitmap.height-n;var s=this.cloneQuiet();return this.scanQuiet(e,n,r,i,function(e,n,r){e=t*Math.floor(e/t),n=t*Math.floor(n/t);var i=we(s,a,e,n);this.bitmap.data[r]=i[0],this.bitmap.data[r+1]=i[1],this.bitmap.data[r+2]=i[2]}),Object(D.a)(o)&&o.call(this,null,this),this},convolute:function(t,e,n,r,i,o){if(!Array.isArray(t))return D.c.call(this,"the kernel must be an array",o);if("function"==typeof e)o=e,e=null,n=null,r=null,i=null;else{if(ke(e)&&"number"!=typeof e)return D.c.call(this,"x must be a number",o);if(ke(n)&&"number"!=typeof n)return D.c.call(this,"y must be a number",o);if(ke(r)&&"number"!=typeof r)return D.c.call(this,"w must be a number",o);if(ke(i)&&"number"!=typeof i)return D.c.call(this,"h must be a number",o)}var a=(t.length-1)/2;e=ke(e)?e:a,n=ke(n)?n:a,r=ke(r)?r:this.bitmap.width-e,i=ke(i)?i:this.bitmap.height-n;var s=this.cloneQuiet();return this.scanQuiet(e,n,r,i,function(e,n,r){var i=we(s,t,e,n);this.bitmap.data[r]=this.constructor.limit255(i[0]),this.bitmap.data[r+1]=this.constructor.limit255(i[1]),this.bitmap.data[r+2]=this.constructor.limit255(i[2])}),Object(D.a)(o)&&o.call(this,null,this),this},color:Se,colour:Se}},Oe.a,function(){return{blur:function(t,e){if("number"!=typeof t)return D.c.call(this,"r must be a number",e);if(t<1)return D.c.call(this,"r must be greater than 0",e);for(var n,r,i,o,a,s,c,u,l,p,f,h,d,g,m=this.bitmap.width-1,_=this.bitmap.height-1,b=t+1,y=Ce[t],v=Ae[t],x=[],w=[],k=[],E=[],S=[],O=[],C=2;C-- >0;){for(h=0,d=0,s=0;sm?m:c)<<2),n+=this.bitmap.data[u++],r+=this.bitmap.data[u++],i+=this.bitmap.data[u++],o+=this.bitmap.data[u];for(a=0;a0?u<<2:0),l=d+S[a],p=d+O[a],n+=this.bitmap.data[l++]-this.bitmap.data[p++],r+=this.bitmap.data[l++]-this.bitmap.data[p++],i+=this.bitmap.data[l++]-this.bitmap.data[p++],o+=this.bitmap.data[l]-this.bitmap.data[p],h++;d+=this.bitmap.width<<2}for(a=0;a_?0:this.bitmap.width],r+=w[f],i+=k[f],o+=E[f];for(h=a<<2,s=0;s>>v,this.bitmap.data[h+3]=g,g>255&&(this.bitmap.data[h+3]=255),g>0?(g=255/g,this.bitmap.data[h]=(n*y>>>v)*g,this.bitmap.data[h+1]=(r*y>>>v)*g,this.bitmap.data[h+2]=(i*y>>>v)*g):(this.bitmap.data[h+2]=0,this.bitmap.data[h+1]=0,this.bitmap.data[h]=0),0===a&&(S[s]=((u=s+b)<_?u:_)*this.bitmap.width,O[s]=(u=s-t)>0?u*this.bitmap.width:0),l=a+S[s],p=a+O[s],n+=x[l]-x[p],r+=w[l]-w[p],i+=k[l]-k[p],o+=E[l]-E[p],h+=this.bitmap.width<<2}}return Object(D.a)(e)&&e.call(this,null,this),this}}},function(t){return t("crop",function(t,e,n,r,i){if("number"!=typeof t||"number"!=typeof e)return D.c.call(this,"x and y must be numbers",i);if("number"!=typeof n||"number"!=typeof r)return D.c.call(this,"w and h must be numbers",i);if(t=Math.round(t),e=Math.round(e),n=Math.round(n),r=Math.round(r),0===t&&n===this.bitmap.width){var o=n*e+t<<2,a=o+r*n<<3;this.bitmap.data=this.bitmap.data.slice(o,a)}else{var s=Buffer.allocUnsafe(n*r*4),c=0;this.scanQuiet(t,e,n,r,function(t,e,n){var r=this.bitmap.data.readUInt32BE(n,!0);s.writeUInt32BE(r,c,!0),c+=4}),this.bitmap.data=s}return this.bitmap.width=n,this.bitmap.height=r,Object(D.a)(i)&&i.call(this,null,this),this}),{class:{autocrop:function(){for(var t,e=this.bitmap.width,n=this.bitmap.height,r=1,i=0,o=2e-4,a=!0,s=!1,c=0,u=arguments.length;co)break t}h++}p=this.getPixelColor(e,0);t:for(var x=0;xo)break t}d++}p=this.getPixelColor(0,n);t:for(var S=n-1;S>=h+r;S--){for(var O=e-d-1;O>=0;O--){var C=this.getPixelColor(O,S),A=this.constructor.intToRGBA(C);if(this.constructor.colorDiff(f,A)>o)break t}g++}p=this.getPixelColor(e,n);t:for(var I=e-1;I>=0+d+r;I--){for(var T=n-1;T>=0+h;T--){var P=this.getPixelColor(I,T),B=this.constructor.intToRGBA(P);if(this.constructor.colorDiff(f,B)>o)break t}m++}if(m-=i,d-=i,h-=i,g-=i,s){var F=Math.min(d,m),j=Math.min(h,g);m=F,d=F,h=j,g=j}var L=e-(m+d),M=n-(g+h);return m=m>=0?m:0,d=d>=0?d:0,h=h>=0?h:0,g=g>=0?g:0,(a?0!==d&&0!==h&&0!==m&&0!==g:0!==d||0!==h||0!==m||0!==g)&&this.crop(d,h,L,M),Object(D.a)(t)&&t.call(this,null,this),this}}}},function(){return{normalize:function(t){var e=function(){var t={r:new Array(256).fill(0),g:new Array(256).fill(0),b:new Array(256).fill(0)};return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(e,n,r){t.r[this.bitmap.data[r+0]]++,t.g[this.bitmap.data[r+1]]++,t.b[this.bitmap.data[r+2]]++}),t}.call(this),n={r:Pe(e.r),g:Pe(e.g),b:Pe(e.b)};return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,r){var i=this.bitmap.data[r+0],o=this.bitmap.data[r+1],a=this.bitmap.data[r+2];this.bitmap.data[r+0]=Te(i,n.r[0],n.r[1]),this.bitmap.data[r+1]=Te(o,n.g[0],n.g[1]),this.bitmap.data[r+2]=Te(a,n.b[0],n.b[1])}),Object(D.a)(t)&&t.call(this,null,this),this}}},function(){return{invert:function(t){return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,n){this.bitmap.data[n]=255-this.bitmap.data[n],this.bitmap.data[n+1]=255-this.bitmap.data[n+1],this.bitmap.data[n+2]=255-this.bitmap.data[n+2]}),Object(D.a)(t)&&t.call(this,null,this),this}}},function(){return{gaussian:function(t,e){if("number"!=typeof t)return D.c.call(this,"r must be a number",e);if(t<1)return D.c.call(this,"r must be greater than 0",e);for(var n=Math.ceil(2.57*t),r=2*n+1,i=t*t*2,o=i*Math.PI,a=[],s=0;s1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0;if(!(t instanceof this.constructor))return D.c.call(this,"The source must be a Jimp image",r);if("number"!=typeof e||"number"!=typeof n)return D.c.call(this,"x and y must be numbers",r);e=Math.round(e),n=Math.round(n);var i=this.bitmap.width,o=this.bitmap.height,a=this;return t.scanQuiet(0,0,t.bitmap.width,t.bitmap.height,function(t,r,s){var c=e+t,u=n+r;if(c>=0&&u>=0&&cthis.bitmap.width/this.bitmap.height?e/this.bitmap.height:t/this.bitmap.width;return this.scale(i,n),Object(D.a)(r)&&r.call(this,null,this),this}}},function(){return{displace:function(t,e,n){if("object"!==Fe(t)||t.constructor!==this.constructor)return D.c.call(this,"The source must be a Jimp image",n);if("number"!=typeof e)return D.c.call(this,"factor must be a number",n);var r=this.cloneQuiet();return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(n,i,o){var a=t.bitmap.data[o]/256*e;a=Math.round(a);var s=this.getPixelIndex(n+a,i);this.bitmap.data[s]=r.bitmap.data[o],this.bitmap.data[s+1]=r.bitmap.data[o+1],this.bitmap.data[s+2]=r.bitmap.data[o+2]}),Object(D.a)(n)&&n.call(this,null,this),this}}},function(){return{contain:function(t,e,n,r,i){if("number"!=typeof t||"number"!=typeof e)return D.c.call(this,"w and h must be numbers",i);"string"==typeof n&&("function"==typeof r&&void 0===i&&(i=r),r=n,n=null),"function"==typeof n&&(void 0===i&&(i=n),r=null,n=null),"function"==typeof r&&void 0===i&&(i=r,r=null);var o=7&(n=n||this.constructor.HORIZONTAL_ALIGN_CENTER|this.constructor.VERTICAL_ALIGN_MIDDLE),a=n>>3;if((0===o||o&o-1)&&(0===a||a&a-1))return D.c.call(this,"only use one flag per alignment direction",i);var s=o>>1,c=a>>1,u=t/e>this.bitmap.width/this.bitmap.height?e/this.bitmap.height:t/this.bitmap.width,l=this.cloneQuiet().scale(u,r);return this.resize(t,e,r),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,n){this.bitmap.data.writeUInt32BE(this._background,n)}),this.blit(l,(this.bitmap.width-l.bitmap.width)/2*s,(this.bitmap.height-l.bitmap.height)/2*c),Object(D.a)(i)&&i.call(this,null,this),this}}},function(){return{cover:function(t,e,n,r,i){if("number"!=typeof t||"number"!=typeof e)return D.c.call(this,"w and h must be numbers",i);n&&"function"==typeof n&&void 0===i?(i=n,n=null,r=null):"function"==typeof r&&void 0===i&&(i=r,r=null);var o=7&(n=n||this.constructor.HORIZONTAL_ALIGN_CENTER|this.constructor.VERTICAL_ALIGN_MIDDLE),a=n>>3;if((0===o||o&o-1)&&(0===a||a&a-1))return D.c.call(this,"only use one flag per alignment direction",i);var s=o>>1,c=a>>1,u=t/e>this.bitmap.width/this.bitmap.height?t/this.bitmap.width:e/this.bitmap.height;return this.scale(u,r),this.crop((this.bitmap.width-t)/2*s,(this.bitmap.height-e)/2*c,t,e),Object(D.a)(i)&&i.call(this,null,this),this}}}],Me=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Vt,n={hasAlpha:{},encoders:{},decoders:{},class:{},constants:{}};function r(t){Object.entries(t).forEach(function(t){var e=Qt(t,2),r=e[0],i=e[1];n[r]=Zt({},n[r],i)})}return t.types&&(t.types.forEach(function(t){var e=t();Array.isArray(e.mime)?mt.apply(void 0,Yt(e.mime)):Object.entries(e.mime).forEach(function(t){return mt.apply(void 0,Yt(t))}),delete e.mime,r(e)}),e.decoders=Zt({},e.decoders,n.decoders),e.encoders=Zt({},e.encoders,n.encoders),e.hasAlpha=Zt({},e.hasAlpha,n.hasAlpha)),t.plugins&&t.plugins.forEach(function(t){var e=t(Wt)||{};e.class||e.constants?r(e):r({class:e})}),$t(n.class,e),Ht(n.constants,e),Vt}({types:[function(){return Object(Jt.mergeDeep)({mime:ee({},"image/jpeg",["jpeg","jpg","jpe"]),constants:{MIME_JPEG:"image/jpeg"},decoders:ee({},"image/jpeg",te.a.decode),encoders:ee({},"image/jpeg",function(t){return te.a.encode(t.bitmap,t._quality).data}),class:{_quality:100,quality:function(t,e){return"number"!=typeof t?D.c.call(this,"n must be a number",e):t<0||t>100?D.c.call(this,"n must be a number 0 - 100",e):(this._quality=Math.round(t),Object(D.a)(e)&&e.call(this,null,this),this)}}},{mime:re({},"image/png",["png"]),constants:{MIME_PNG:"image/png",PNG_FILTER_AUTO:-1,PNG_FILTER_NONE:0,PNG_FILTER_SUB:1,PNG_FILTER_UP:2,PNG_FILTER_AVERAGE:3,PNG_FILTER_PATH:4},hasAlpha:re({},"image/png",!0),decoders:re({},"image/png",ne.PNG.sync.read),encoders:re({},"image/png",function(t){var e=new ne.PNG({width:t.bitmap.width,height:t.bitmap.height});return e.data=t.bitmap.data,ne.PNG.sync.write(e,{width:t.bitmap.width,height:t.bitmap.height,deflateLevel:t._deflateLevel,deflateStrategy:t._deflateStrategy,filterType:t._filterType,colorType:"number"==typeof t._colorType?t._colorType:t._rgba?6:2,inputHasAlpha:t._rgba})}),class:{_deflateLevel:9,_deflateStrategy:3,_filterType:-1,_colorType:null,deflateLevel:function(t,e){return"number"!=typeof t?D.c.call(this,"l must be a number",e):t<0||t>9?D.c.call(this,"l must be a number 0 - 9",e):(this._deflateLevel=Math.round(t),Object(D.a)(e)&&e.call(this,null,this),this)},deflateStrategy:function(t,e){return"number"!=typeof t?D.c.call(this,"s must be a number",e):t<0||t>3?D.c.call(this,"s must be a number 0 - 3",e):(this._deflateStrategy=Math.round(t),Object(D.a)(e)&&e.call(this,null,this),this)},filterType:function(t,e){return"number"!=typeof t?D.c.call(this,"n must be a number",e):t<-1||t>4?D.c.call(this,"n must be -1 (auto) or a number 0 - 4",e):(this._filterType=Math.round(t),Object(D.a)(e)&&e.call(this,null,this),this)},colorType:function(t,e){return"number"!=typeof t?D.c.call(this,"s must be a number",e):0!==t&&2!==t&&4!==t&&6!==t?D.c.call(this,"s must be a number 0, 2, 4, 6.",e):(this._colorType=Math.round(t),Object(D.a)(e)&&e.call(this,null,this),this)}}},{mime:ae({},"image/bmp",["bmp"]),constants:{MIME_BMP:"image/bmp",MIME_X_MS_BMP:"image/x-ms-bmp"},decoders:(t={},ae(t,"image/bmp",se),ae(t,"image/x-ms-bmp",se),t),encoders:(e={},ae(e,"image/bmp",ce),ae(e,"image/x-ms-bmp",ce),e)},{mime:pe({},"image/tiff",["tiff","tif"]),constants:{MIME_TIFF:"image/tiff"},decoders:pe({},"image/tiff",function(t){var e=le.a.decode(t),n=e[0];le.a.decodeImages(t,e);var r=le.a.toRGBA8(n);return{data:Buffer.from(r),width:n.t256[0],height:n.t257[0]}}),encoders:pe({},"image/tiff",function(t){var e=le.a.encodeImage(t.bitmap.data,t.bitmap.width,t.bitmap.height);return Buffer.from(e)})},{mime:de({},"image/gif",["gif"]),constants:{MIME_GIF:"image/gif"},decoders:de({},"image/gif",function(t){var e=new he.a.GifReader(t),n=Buffer.alloc(e.width*e.height*4);return e.decodeAndBlitFrameRGBA(0,n),{data:n,width:e.width,height:e.height}})});var t,e}],plugins:[function(t){var e=Le.map(function(e){var n=e(t)||{};return n.class||n.constants||(n={class:n}),n});return Jt.mergeDeep.apply(void 0,je(e))}]});var Ne=class extends p{async convert(){const t=[];for await(const[e,n,r]of this.getData()){const i=b.fromPath(e,this.path),o=b.toPath(r,i,this.path);let a=null;for(let i=0;i<=n;i++){const o=e+(i.toString().padStart(2,"0")+".png"),s=b.fromPath(o,this.path);if(h.a.existsSync(s)){const e=await Me.read(s);null===a&&(b.log(`Create atlas ${r}`),a=await Me.create(e.getWidth(),e.getHeight()*(n+1))),a.composite(e,0,e.getHeight()*i),t.push(o)}}null!==a&&await a.writeAsync(o)}return[[v,t]]}async*getData(){const t=[["textures/items/clock_",63,"./watch_atlas.png"],["textures/items/compass_",31,"./compass_atlas.png"]];for(const e of t)yield e}};var ze=class extends p{async convert(){for await(const t of this.getData()){const e=b.fromPath(t,this.path);if(h.a.existsSync(e)){b.log(`Convert bed ${t}`);const n=await Me.read(e),r=n.getWidth()/64,i=await Me.create(n.getWidth(),n.getHeight());i.composite(n.clone().crop(0,0,44*r,22*r),0,0),i.composite(n.clone().crop(0,28*r,44*r,16*r),0,22*r),i.composite(n.clone().crop(22*r,22*r,16*r,6*r),22*r,0),i.composite(n.clone().crop(50*r,0,12*r,12*r),0,38*r),i.composite(n.clone().crop(50*r,12*r,12*r,12*r),12*r,38*r),await i.writeAsync(e)}}return[]}async*getData(){const t=["textures/entity/bed/black.png","textures/entity/bed/blue.png","textures/entity/bed/brown.png","textures/entity/bed/cyan.png","textures/entity/bed/gray.png","textures/entity/bed/green.png","textures/entity/bed/light_blue.png","textures/entity/bed/lime.png","textures/entity/bed/magenta.png","textures/entity/bed/orange.png","textures/entity/bed/pink.png","textures/entity/bed/purple.png","textures/entity/bed/red.png","textures/entity/bed/silver.png","textures/entity/bed/white.png","textures/entity/bed/yellow.png"];for(const e of t)yield e}};var Re=class extends p{async convert(){for await(const[t,e]of this.getData()){const n=b.fromPath(t,this.path),r=b.toPath(e,"",this.path);if(h.a.existsSync(n)){b.log(`Create chest front ${e}`);const t=await Me.read(n),i=t.getWidth()/64,o=await Me.create(14*i,14*i);o.composite(t.clone().crop(14*i,14*i,14*i,5*i),0,0),o.composite(t.clone().crop(14*i,34*i,14*i,9*i),0,5*i),o.composite(t.clone().crop(i,i,2*i,4*i),6*i,3*i),await o.writeAsync(r)}}return[]}async*getData(){const t=[["textures/entity/chest/normal.png","textures/blocks/chest_front.png"],["textures/entity/chest/trapped.png","textures/blocks/trapped_chest_front.png"],["textures/entity/chest/ender.png","textures/blocks/ender_chest_front.png"]];for(const e of t)yield e}};var Ue=class extends p{async convert(){for await(const[t,e]of this.getData()){const n=b.fromPath(t,this.path),r=b.toPath(e,"",this.path);if(h.a.existsSync(n)){b.log(`Create chest side ${e}`);const t=await Me.read(n),i=t.getWidth()/64,o=await Me.create(14*i,14*i);o.composite(t.clone().crop(28*i,14*i,14*i,5*i),0,0),o.composite(t.clone().crop(28*i,34*i,14*i,9*i),0,5*i),await o.writeAsync(r)}}return[]}async*getData(){const t=[["textures/entity/chest/normal.png","textures/blocks/chest_side.png"],["textures/entity/chest/ender.png","textures/blocks/ender_chest_side.png"]];for(const e of t)yield e}};var Ge=class extends p{async convert(){const t=[];for await(const[e,n]of this.getData()){const r=b.toPath(n,"",this.path);let i=null;for(const[r,o,a]of e){const e=b.fromPath(r,this.path);if(h.a.existsSync(e)){const t=await Me.read(e);null===i&&(b.log(`Colorize and overlay ${n}`),i=await Me.create(t.getWidth(),t.getHeight())),Array.isArray(o)&&o.length>=3&&t.scan(0,0,t.getWidth(),t.getHeight(),(e,n,r)=>{t.bitmap.data[r]=t.bitmap.data[r]/255*o[0],t.bitmap.data[r+1]=t.bitmap.data[r+1]/255*o[1],t.bitmap.data[r+2]=t.bitmap.data[r+2]/255*o[2]}),i.composite(t,0,0)}a&&t.push(r)}null!==i&&await i.writeAsync(r)}return[[v,t]]}async*getData(){const t=[[[["textures/models/armor/leather_1.png",[167,105,67]]],"textures/models/armor/cloth_1.png"],[[["textures/models/armor/leather_2.png",[167,105,67]]],"textures/models/armor/cloth_2.png"],[[["textures/blocks/double_plant_fern_top.png",[79,156,37]]],"textures/blocks/double_plant_fern_carried.png"],[[["textures/blocks/double_plant_grass_top.png",[79,156,37]]],"textures/blocks/double_plant_grass_carried.png"],[[["textures/blocks/fern.png",[79,156,37]]],"textures/blocks/fern_carried.png"],[[["textures/blocks/grass_top.png",[120,182,66]]],"textures/blocks/grass_carried.png"],[[["textures/blocks/leaves_acacia.png",[68,177,8]]],"textures/blocks/leaves_acacia_carried.png"],[[["textures/blocks/leaves_big_oak.png",[68,177,8]]],"textures/blocks/leaves_big_oak_carried.png"],[[["textures/blocks/leaves_birch.png",[108,151,71]]],"textures/blocks/leaves_birch_carried.png"],[[["textures/blocks/leaves_jungle.png",[70,176,37]]],"textures/blocks/leaves_jungle_carried.png"],[[["textures/blocks/leaves_oak.png",[68,177,8]]],"textures/blocks/leaves_oak_carried.png"],[[["textures/blocks/leaves_spruce.png",[98,146,98]]],"textures/blocks/leaves_spruce_carried.png"],[[["textures/blocks/tallgrass.png",[79,156,37]]],"textures/blocks/tallgrass_carried.png"],[[["textures/blocks/waterlily.png",[30,128,48]]],"textures/blocks/carried_waterlily.png"],[[["textures/blocks/water_flow_grey.png",[86,132,254]]],"textures/blocks/water_flow.png"],[[["textures/blocks/water_still_grey.png",[161,161,161]]],"textures/blocks/cauldron_water.png"],[[["textures/blocks/water_still_grey.png",[86,132,254]]],"textures/blocks/water_still.png"],[[["textures/blocks/vine.png",[30,128,48]]],"textures/blocks/vine_carried.png"],[[["textures/items/potion_overlay.png",[88,148,255]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering.png"],[[["textures/items/potion_overlay.png",[232,58,56]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_damageBoost.png"],[[["textures/items/potion_overlay.png",[255,244,92]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_fireResistance.png"],[[["textures/items/potion_overlay.png",[106,16,14]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_harm.png"],[[["textures/items/potion_overlay.png",[255,58,56]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_heal.png"],[[["textures/items/potion_overlay.png",[202,208,232]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_invisibility.png"],[[["textures/items/potion_overlay.png",[54,255,120]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_jump.png"],[[["textures/items/potion_overlay.png",[242,255,202]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_luck.png"],[[["textures/items/potion_overlay.png",[142,172,204]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_moveSlowdown.png"],[[["textures/items/potion_overlay.png",[196,255,255]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_moveSpeed.png"],[[["textures/items/potion_overlay.png",[50,50,255]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_nightVision.png"],[[["textures/items/potion_overlay.png",[124,232,78]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_poison.png"],[[["textures/items/potion_overlay.png",[255,146,255]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_regeneration.png"],[[["textures/items/potion_overlay.png",[255,255,255]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_slowFall.png"],[[["textures/items/potion_overlay.png",[186,144,156]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_turtleMaster.png"],[[["textures/items/potion_overlay.png",[72,130,242]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_waterBreathing.png"],[[["textures/items/potion_overlay.png",[114,122,114]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_weakness.png"],[[["textures/items/potion_overlay.png",[84,66,62]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_wither.png"],[[["textures/items/map_filled.png"],["textures/items/map_filled_markings.png",[82,76,68]]],"textures/items/map_mansion.png"],[[["textures/items/map_filled.png"],["textures/items/map_filled_markings.png",[67,124,111]]],"textures/items/map_monument.png"],[[["textures/items/map_filled.png"],["textures/items/map_filled_markings.png",[103,90,173]]],"textures/items/map_nautilus.png"],[[["textures/items/map_filled.png"],["textures/items/map_filled_markings.png",[131,131,131],!0]],"textures/items/map_filled.png"],[[["textures/items/potion_overlay.png",[58,130,255]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_absorption.png"],[[["textures/items/potion_overlay.png",[50,50,56]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_blindness.png"],[[["textures/items/potion_overlay.png",[134,46,118]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_confusion.png"],[[["textures/items/potion_overlay.png",[232,58,56]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_damageBoost.png"],[[["textures/items/potion_overlay.png",[118,104,36]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_digSlowdown.png"],[[["textures/items/potion_overlay.png",[255,255,106]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_digSpeed.png"],[[["textures/items/potion_overlay.png",[88,148,255]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_drinkable.png"],[[["textures/items/potion_overlay.png",[255,244,92]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_fireResistance.png"],[[["textures/items/potion_overlay.png",[106,16,14]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_harm.png"],[[["textures/items/potion_overlay.png",[255,58,56]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_heal.png"],[[["textures/items/potion_overlay.png",[255,198,56]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_healthBoost.png"],[[["textures/items/potion_overlay.png",[140,186,132]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_hunger.png"],[[["textures/items/potion_overlay.png",[202,208,232]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_invisibility.png"],[[["textures/items/potion_overlay.png",[54,255,120]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_jump.png"],[[["textures/items/potion_overlay.png",[54,255,120]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_levitation.png"],[[["textures/items/potion_overlay.png",[142,172,204]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_moveSlowdown.png"],[[["textures/items/potion_overlay.png",[196,255,255]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_moveSpeed.png"],[[["textures/items/potion_overlay.png",[50,50,255]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_nightVision.png"],[[["textures/items/potion_overlay.png",[124,232,78]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_poison.png"],[[["textures/items/potion_overlay.png",[255,146,255]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_regeneration.png"],[[["textures/items/potion_overlay.png",[242,110,92]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_resistance.png"],[[["textures/items/potion_overlay.png",[255,58,56]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_saturation.png"],[[["textures/items/potion_overlay.png",[255,255,255]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_slowFall.png"],[[["textures/items/potion_overlay.png",[186,144,156]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_turtleMaster.png"],[[["textures/items/potion_overlay.png",[72,130,242]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_waterBreathing.png"],[[["textures/items/potion_overlay.png",[114,112,114]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_weakness.png"],[[["textures/items/potion_overlay.png",[84,66,62]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_wither.png"],[[["textures/blocks/redstone_dust_cross.png"],["textures/blocks/redstone_dust_overlay.png"]],"textures/blocks/redstone_dust_cross.png"],[[["textures/blocks/redstone_dust_line.png"],["textures/blocks/redstone_dust_overlay.png",null,!0]],"textures/blocks/redstone_dust_line.png"],[[["textures/entity/pig/pig.png"],["textures/entity/saddle.png"]],"textures/entity/pig/pig_saddle.png"],[[["textures/items/potion_overlay.png",[88,184,255]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash.png"],[[["textures/items/potion_overlay.png",[58,130,255]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_absorption.png"],[[["textures/items/potion_overlay.png",[50,50,56]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_blindness.png"],[[["textures/items/potion_overlay.png",[134,46,118]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_confusion.png"],[[["textures/items/potion_overlay.png",[232,58,56]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_damageBoost.png"],[[["textures/items/potion_overlay.png",[118,104,36]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_digSlowdown.png"],[[["textures/items/potion_overlay.png",[255,255,106]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_digSpeed.png"],[[["textures/items/potion_overlay.png",[255,255,184]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_fireResistance.png"],[[["textures/items/potion_overlay.png",[212,32,28]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_harm.png"],[[["textures/items/potion_overlay.png",[255,116,112]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_heal.png"],[[["textures/items/potion_overlay.png",[255,198,56]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_healthBoost.png"],[[["textures/items/potion_overlay.png",[140,186,132]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_hunger.png"],[[["textures/items/potion_overlay.png",[202,208,232]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_invisibility.png"],[[["textures/items/potion_overlay.png",[54,255,120]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_jump.png"],[[["textures/items/potion_overlay.png",[54,255,120]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_levitation.png"],[[["textures/items/potion_overlay.png",[142,172,204]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_moveSlowdown.png"],[[["textures/items/potion_overlay.png",[196,255,255]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_moveSpeed.png"],[[["textures/items/potion_overlay.png",[50,50,255]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_nightVision.png"],[[["textures/items/potion_overlay.png",[124,232,78]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_poison.png"],[[["textures/items/potion_overlay.png",[255,146,255]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_regeneration.png"],[[["textures/items/potion_overlay.png",[242,110,92]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_resistance.png"],[[["textures/items/potion_overlay.png",[255,58,56]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_saturation.png"],[[["textures/items/potion_overlay.png",[255,255,255]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_slowFall.png"],[[["textures/items/potion_overlay.png",[186,144,156]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_turtleMaster.png"],[[["textures/items/potion_overlay.png",[72,130,242]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_waterBreathing.png"],[[["textures/items/potion_overlay.png",[114,122,114]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_weakness.png"],[[["textures/items/potion_overlay.png",[84,66,62]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_wither.png"],[[["textures/items/spawn_egg.png",[65,53,41]],["textures/items/spawn_egg_overlay.png",[13,13,13]]],"textures/items/egg_bat.png"],[[["textures/items/spawn_egg.png",[211,153,1]],["textures/items/spawn_egg_overlay.png",[226,220,112]]],"textures/items/egg_blaze.png"],[[["textures/items/spawn_egg.png",[239,200,142]],["textures/items/spawn_egg_overlay.png",[135,101,74]]],"textures/items/egg_cat.png"],[[["textures/items/spawn_egg.png",[10,57,67]],["textures/items/spawn_egg_overlay.png",[149,12,12]]],"textures/items/egg_cave_spider.png"],[[["textures/items/spawn_egg.png",[138,138,138]],["textures/items/spawn_egg_overlay.png",[226,0,0]]],"textures/items/egg_chicken.png"],[[["textures/items/spawn_egg.png",[205,90,18]],["textures/items/spawn_egg_overlay.png",[226,221,212]]],"textures/items/egg_clownfish.png"],[[["textures/items/spawn_egg.png",[166,143,91]],["textures/items/spawn_egg_overlay.png",[203,174,123]]],"textures/items/egg_cod.png"],[[["textures/items/spawn_egg.png",[58,46,33]],["textures/items/spawn_egg_overlay.png",[143,143,143]]],"textures/items/egg_cow.png"],[[["textures/items/spawn_egg.png",[11,143,9]],["textures/items/spawn_egg_overlay.png",[0,0,0]]],"textures/items/egg_creeper.png"],[[["textures/items/spawn_egg.png",[29,51,66]],["textures/items/spawn_egg_overlay.png",[221,221,221]]],"textures/items/egg_dolphin.png"],[[["textures/items/spawn_egg.png",[71,59,49]],["textures/items/spawn_egg_overlay.png",[119,104,90]]],"textures/items/egg_donkey.png"],[[["textures/items/spawn_egg.png",[123,207,185]],["textures/items/spawn_egg_overlay.png",[107,138,90]]],"textures/items/egg_drowned.png"],[[["textures/items/spawn_egg.png",[177,175,160]],["textures/items/spawn_egg_overlay.png",[103,105,130]]],"textures/items/egg_elderguardian.png"],[[["textures/items/spawn_egg.png",[19,19,19]],["textures/items/spawn_egg_overlay.png",[19,19,19]]],"textures/items/egg_enderman.png"],[[["textures/items/spawn_egg.png",[19,19,19]],["textures/items/spawn_egg_overlay.png",[97,97,97]]],"textures/items/egg_endermite.png"],[[["textures/items/spawn_egg.png",[128,133,133]],["textures/items/spawn_egg_overlay.png",[27,25,23]]],"textures/items/egg_evoker.png"],[[["textures/items/spawn_egg.png",[166,143,91]],["textures/items/spawn_egg_overlay.png",[203,174,123]]],"textures/items/egg_fish.png"],[[["textures/items/spawn_egg.png",[214,214,214]],["textures/items/spawn_egg_overlay.png",[167,167,167]]],"textures/items/egg_ghast.png"],[[["textures/items/spawn_egg.png",[77,112,98]],["textures/items/spawn_egg_overlay.png",[214,111,43]]],"textures/items/egg_guardian.png"],[[["textures/items/spawn_egg.png",[165,136,107]],["textures/items/spawn_egg_overlay.png",[211,203,0]]],"textures/items/egg_horse.png"],[[["textures/items/spawn_egg.png",[102,99,83]],["textures/items/spawn_egg_overlay.png",[197,191,127]]],"textures/items/egg_husk.png"],[[["textures/items/spawn_egg.png",[45,0,0]],["textures/items/spawn_egg_overlay.png",[223,223,0]]],"textures/items/egg_lava_slime.png"],[[["textures/items/spawn_egg.png",[165,136,107]],["textures/items/spawn_egg_overlay.png",[136,84,57]]],"textures/items/egg_llama.png"],[[["textures/items/spawn_egg.png"],["textures/items/spawn_egg_overlay.png"]],"textures/items/egg_mask.png"],[[["textures/items/spawn_egg.png",[23,2,0]],["textures/items/spawn_egg_overlay.png",[72,45,26]]],"textures/items/egg_mule.png"],[[["textures/items/spawn_egg.png",[137,13,14]],["textures/items/spawn_egg_overlay.png",[162,162,162]]],"textures/items/egg_mushroomcow.png"],[[["textures/items/spawn_egg.png"],["textures/items/spawn_egg_overlay.png"]],"textures/items/egg_null.png"],[[["textures/items/spawn_egg.png",[205,191,107]],["textures/items/spawn_egg_overlay.png",[76,60,46]]],"textures/items/egg_ocelot.png"],[[["textures/items/spawn_egg.png",[217,217,215]],["textures/items/spawn_egg_overlay.png",[19,19,25]]],"textures/items/egg_panda.png"],[[["textures/items/spawn_egg.png",[11,143,9]],["textures/items/spawn_egg_overlay.png",[226,0,0]]],"textures/items/egg_parrot.png"],[[["textures/items/spawn_egg.png",[58,70,119]],["textures/items/spawn_egg_overlay.png",[121,226,0]]],"textures/items/egg_phantom.png"],[[["textures/items/spawn_egg.png",[206,142,139]],["textures/items/spawn_egg_overlay.png",[194,88,84]]],"textures/items/egg_pig.png"],[[["textures/items/spawn_egg.png",[201,126,126]],["textures/items/spawn_egg_overlay.png",[67,100,36]]],"textures/items/egg_pigzombie.png"],[[["textures/items/spawn_egg.png",[208,208,208]],["textures/items/spawn_egg_overlay.png",[132,132,128]]],"textures/items/egg_polarbear.png"],[[["textures/items/spawn_egg.png",[211,153,1]],["textures/items/spawn_egg_overlay.png",[49,173,214]]],"textures/items/egg_pufferfish.png"],[[["textures/items/spawn_egg.png",[131,82,55]],["textures/items/spawn_egg_overlay.png",[102,64,43]]],"textures/items/egg_rabbit.png"],[[["textures/items/spawn_egg.png",[137,13,14]],["textures/items/spawn_egg_overlay.png",[12,117,103]]],"textures/items/egg_salmon.png"],[[["textures/items/spawn_egg.png",[198,198,198]],["textures/items/spawn_egg_overlay.png",[226,160,160]]],"textures/items/egg_sheep.png"],[[["textures/items/spawn_egg.png",[127,88,127]],["textures/items/spawn_egg_overlay.png",[68,50,73]]],"textures/items/egg_shulker.png"],[[["textures/items/spawn_egg.png",[94,94,94]],["textures/items/spawn_egg_overlay.png",[43,43,43]]],"textures/items/egg_silverfish.png"],[[["textures/items/spawn_egg.png",[166,166,166]],["textures/items/spawn_egg_overlay.png",[65,65,65]]],"textures/items/egg_skeleton.png"],[[["textures/items/spawn_egg.png",[89,89,89]],["textures/items/spawn_egg_overlay.png",[203,203,191]]],"textures/items/egg_skeletonhorse.png"],[[["textures/items/spawn_egg.png",[70,137,53]],["textures/items/spawn_egg_overlay.png",[112,169,97]]],"textures/items/egg_slime.png"],[[["textures/items/spawn_egg.png",[45,39,33]],["textures/items/spawn_egg_overlay.png",[149,12,12]]],"textures/items/egg_spider.png"],[[["textures/items/spawn_egg.png",[29,51,66]],["textures/items/spawn_egg_overlay.png",[99,121,136]]],"textures/items/egg_squid.png"],[[["textures/items/spawn_egg.png",[82,100,101]],["textures/items/spawn_egg_overlay.png",[193,206,205]]],"textures/items/egg_stray.png"],[[["textures/items/spawn_egg.png",[198,198,198]],["textures/items/spawn_egg_overlay.png",[0,155,155]]],"textures/items/egg_turtle.png"],[[["textures/items/spawn_egg.png",[105,124,141]],["textures/items/spawn_egg_overlay.png",[206,210,214]]],"textures/items/egg_vex.png"],[[["textures/items/spawn_egg.png",[74,52,44]],["textures/items/spawn_egg_overlay.png",[167,123,101]]],"textures/items/egg_villager.png"],[[["textures/items/spawn_egg.png",[128,133,133]],["textures/items/spawn_egg_overlay.png",[35,83,86]]],"textures/items/egg_vindicator.png"],[[["textures/items/spawn_egg.png",[55,84,130]],["textures/items/spawn_egg_overlay.png",[204,142,41]]],"textures/items/egg_wanderingtrader.png"],[[["textures/items/spawn_egg.png",[45,0,0]],["textures/items/spawn_egg_overlay.png",[72,142,55]]],"textures/items/egg_witch.png"],[[["textures/items/spawn_egg.png",[17,17,17]],["textures/items/spawn_egg_overlay.png",[63,68,68]]],"textures/items/egg_wither.png"],[[["textures/items/spawn_egg.png",[185,181,181]],["textures/items/spawn_egg_overlay.png",[183,155,133]]],"textures/items/egg_wolf.png"],[[["textures/items/spawn_egg.png",[0,150,150]],["textures/items/spawn_egg_overlay.png",[107,138,90]]],"textures/items/egg_zombie.png"],[[["textures/items/spawn_egg.png",[36,77,47]],["textures/items/spawn_egg_overlay.png",[117,184,113]]],"textures/items/egg_zombiehorse.png"],[[["textures/items/spawn_egg.png",[74,52,44]],["textures/items/spawn_egg_overlay.png",[107,138,90]]],"textures/items/egg_zombievillager.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png"]],"textures/items/tipped_arrow.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[214,144,54]]],"textures/items/tipped_arrow_fireres.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[65,10,9]]],"textures/items/tipped_arrow_harm.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[232,34,33]]],"textures/items/tipped_arrow_healing.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[123,127,141]]],"textures/items/tipped_arrow_invisibility.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[33,247,74]]],"textures/items/tipped_arrow_leaping.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[49,148,0]]],"textures/items/tipped_arrow_luck.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[30,30,156]]],"textures/items/tipped_arrow_nightvision.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[74,138,46]]],"textures/items/tipped_arrow_poison.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[192,86,161]]],"textures/items/tipped_arrow_regen.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[87,105,125]]],"textures/items/tipped_arrow_slow.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[247,232,202]]],"textures/items/tipped_arrow_slowfalling.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[142,35,34]]],"textures/items/tipped_arrow_strength.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[116,164,186]]],"textures/items/tipped_arrow_swift.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[113,88,96]]],"textures/items/tipped_arrow_turtlemaster.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[45,79,148]]],"textures/items/tipped_arrow_waterbreathing.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[70,75,70]]],"textures/items/tipped_arrow_weakness.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[50,39,36]]],"textures/items/tipped_arrow_wither.png"]];for(const e of t)yield e}};var He=class extends p{async convert(){for await(const[t,e]of this.getData()){const n=b.fromPath(t,this.path),r=b.toPath(e,n,this.path);h.a.existsSync(n)&&(b.log(`Copy ${t} to ${e}`),await h.a.copy(n,r))}return[]}async*getData(){const t=[["textures/entity/cat/redtabby.png","./red.png"],["textures/entity/cat/siamesecat.png","./siamese.png"],["textures/entity/cat/tuxedo.png","./blackcat.png"],["textures/blocks/command_block_back_mipmap.png","./command_block.png"],["textures/blocks/fire_0.png","textures/flame_atlas.png"],["textures/blocks/kelp_a.tga","./kelp_b.tga"],["textures/blocks/kelp_a.tga","./kelp_c.tga"],["textures/blocks/kelp_a.tga","./kelp_d.tga"],["textures/blocks/kelp_top.tga","./kelp_top_bulb.tga"],["textures/blocks/lever.png","textures/items/lever.png"],["textures/entity/llama/llama_creamy.png","./llama.png"],["textures/items/skull_banner_pattern.png","./banner_pattern.png"],["textures/ui/sign.png","textures/gui/sign.png"],["textures/entity/creeper/creeper.png","textures/entity/skulls/creeper.png"],["textures/entity/skeleton/skeleton.png","textures/entity/skulls/skeleton.png"],["textures/entity/skeleton/wither_skeleton.png","textures/entity/skulls/wither_skeleton.png"],["textures/entity/zombie/zombie.png","textures/entity/skulls/zombie.png"],["textures/blocks/brick.png","textures/ui/icon_recipe_construction.png"],["textures/blocks/grass_side_carried.png","textures/ui/icon_recipe_nature.png"],["textures/items/bed_red.png","textures/ui/icon_recipe_item.png"],["textures/items/diamond_sword.png","textures/ui/icon_recipe_equipment.png"],["bedrock_textures","./textures"]];for(const e of t)yield e}};var $e=class extends p{async convert(){const t=[];for await(const[e,n,r]of this.getData()){const i=b.fromPath(e,this.path),o=b.toPath(n,i,this.path),a=b.toPath(r,i,this.path);if(h.a.existsSync(i)&&h.a.existsSync(o)){b.log("Convert drowned");const t=await Me.read(i),e=await Me.read(o),n=t.getWidth()/64;t.composite(e.clone().crop(0,0,32*n,16*n),32*n,0),t.composite(e.clone().crop(0,16*n,64*n,16*n),0,32*n),t.composite(e.clone().crop(16*n,48*n,16*n,16*n),0,48*n),t.composite(e.clone().crop(32*n,48*n,16*n,16*n),48*n,48*n),await t.writeAsync(a)}t.push(n)}return[[v,t]]}async*getData(){yield["textures/entity/zombie/drowned.png","textures/entity/zombie/drowned_outer_layer.png","./drowned.png"]}};var qe=class extends p{async convert(){for await(const[t,e]of this.getData()){const n=b.fromPath(t,this.path),r=b.toPath(e,n,this.path);if(h.a.existsSync(n)){b.log("Convert fishhook");const t=await Me.read(n),e=t.getWidth()/8,i=await Me.create(24*e,3*e);i.composite(t.clone().crop(3*e,e,3*e,e),0,0),i.composite(t.clone().crop(3*e,e,e,e),0,e),i.composite(t.clone().crop(2*e,6*e,e,e),e,e),i.composite(t.clone().crop(3*e,e,e,e),2*e,e),i.composite(t.clone().crop(3*e,e,3*e,e),0,2*e),i.composite(t.clone().crop(3*e,e,3*e,e),3*e,0),i.composite(t.clone().crop(3*e,e,e,e),3*e,e),i.composite(t.clone().crop(2*e,6*e,e,e),4*e,e),i.composite(t.clone().crop(3*e,e,e,e),5*e,e),i.composite(t.clone().crop(3*e,e,3*e,e),3*e,2*e),i.composite(t.clone().crop(3*e,e,3*e,3*e),6*e,0),i.composite(t.clone().crop(3*e,e,3*e,3*e),9*e,0),i.composite(t.clone().crop(3*e,e,3*e,3*e),12*e,0),i.composite(t.clone().crop(3*e,e,3*e,3*e),15*e,0),i.composite(t.clone().crop(2*e,5*e,3*e,3*e),18*e,0),i.composite(t.clone().crop(2*e,6*e,e,e),22*e,2*e),await i.writeAsync(r)}}return[]}async*getData(){yield["textures/entity/fishhook.png","./fishhook.png"]}},We=n(64),Ve=n.n(We);var Ye=class extends p{async convert(){const t=[];for await(const[e,n,r,i]of this.getData()){b.log(`Create metadata ${n}`);const o=b.fromPath(e,this.path),a=b.toPath(n,o,this.path),s=b.toPath(r,o,this.path);let c="";h.a.existsSync(s)?(c=await h.a.readFile(s,"utf8"),t.push(r)):c=Ve()();const u=b.toPath(i,o,this.path);let l="";h.a.existsSync(u)?(l=await h.a.readFile(u,"utf8"),t.push(i)):l=Ve()();const p=JSON.parse(await h.a.readFile(o,"utf8")),f={format_version:1,header:{description:p.pack.description,name:await this.input.name(),platform_locked:!1,uuid:c,version:[0,0,1]},modules:[{description:p.pack.description,type:"resources",uuid:l,version:[0,0,1]}]};await h.a.writeFile(a,JSON.stringify(f,null,2),"utf8"),t.push(e)}return[[v,t]]}async*getData(){yield["pack.mcmeta","./manifest.json","bedrock_uuid_header","bedrock_uuid_module"]}};var Ze=class extends p{async convert(){for await(const[t,e]of this.getData()){const n=b.fromPath(t,this.path),r=b.toPath(e,n,this.path);if(h.a.existsSync(n)){b.log(`Create opaque ${e}`);const t=await Me.read(n),i=await Me.create(t.getWidth(),t.getHeight(),"#000000");i.composite(t,0,0),await i.writeAsync(r)}}return[]}async*getData(){const t=[["textures/blocks/leaves_acacia.png","./leaves_acacia_opaque.png"],["textures/blocks/leaves_big_oak.png","./leaves_big_oak_opaque.png"],["textures/blocks/leaves_birch.png","./leaves_birch_opaque.png"],["textures/blocks/leaves_jungle.png","./leaves_jungle_opaque.png"],["textures/blocks/leaves_oak.png","./leaves_oak_opaque.png"],["textures/blocks/leaves_spruce.png","./leaves_spruce_opaque.png"]];for(const e of t)yield e}};var Xe=class extends p{async convert(){const t=[];for await(const[e,n,r,i,o]of this.getData()){const a=b.fromPath(e,this.path),s=b.toPath(n,a,this.path),c=b.toPath(r,a,this.path);if(h.a.existsSync(a)&&h.a.existsSync(s)){b.log(`Create translated overlay ${r}`);const t=await Me.read(a),e=await Me.read(s);t.scan(0,0,t.getWidth(),t.getHeight(),(n,r,o)=>{(i?255===e.bitmap.data[o+3]:0===t.bitmap.data[o+3])&&(t.bitmap.data[o]=e.bitmap.data[o],t.bitmap.data[o+1]=e.bitmap.data[o+1],t.bitmap.data[o+2]=e.bitmap.data[o+2],t.bitmap.data[o+3]=Math.min(1,e.bitmap.data[o+3]))}),await t.writeAsync(c)}o||t.push(b.toPath(n,e,""))}return[[v,t]]}async*getData(){const t=[["textures/entity/cat/graytabby_tame.png","./allblackcat.png","./allblackcat_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./britishshorthair.png","./britishshorthair_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./calico.png","./calico_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./jellie.png","./jellie_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./ocelot.png","./ocelot_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./persian.png","./persian_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./ragdoll.png","./ragdoll_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./redtabby.png","./redtabby_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./siamesecat.png","./siamesecat_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./tabby.png","./tabby_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./tuxedo.png","./tuxedo_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./white.png","./white_tame.png",!1,!0],["textures/entity/enderman/enderman.png","./enderman_eyes.png","./enderman.png",!0],["textures/items/fireworks_charge.png","./firework_star.png","./fireworks_charge.png",!1],["textures/blocks/grass_side.png","./grass_side_carried.png","./grass_side.png",!1,!0],["textures/items/leather_boots.png","./leather_boots_overlay.png","./leather_boots.png",!0],["textures/items/leather_chestplate.png","./leather_chestplate_overlay.png","./leather_chestplate.png",!0],["textures/items/leather_helmet.png","./leather_helmet_overlay.png","./leather_helmet.png",!0],["textures/items/leather_leggings.png","./leather_leggings_overlay.png","./leather_leggings.png",!0],["textures/models/armor/leather_1.png","./leather_1_overlay.png","./leather_1.png",!0],["textures/models/armor/leather_2.png","./leather_2_overlay.png","./leather_2.png",!0],["textures/entity/phantom.png","./phantom_eyes.png","./phantom.png",!0],["textures/entity/spider/cave_spider.png","textures/entity/spider_eyes.png","./cave_spider.png",!0,!0],["textures/entity/spider/spider.png","textures/entity/spider_eyes.png","./spider.png",!0],["textures/entity/wolf/wolf_collar.png","./wolf_tame.png","./wolf_tame.png",!1,!0]];for(const e of t)yield e}};var Qe=class extends p{async convert(){for await(const[t,e,n,r]of this.getData()){const i=b.fromPath(t,this.path),o=b.fromPath(e,this.path),a=b.fromPath(n,this.path),s=b.toPath(r,"",this.path);if(h.a.existsSync(i)&&h.a.existsSync(o)&&h.a.existsSync(a)){b.log(`Create piston arm ${r}`);const t=await Me.read(i),e=await Me.read(o),n=await Me.read(a),c=t.getWidth()/16,u=await Me.create(128*c,32*c);u.composite(t,16*c,0),u.composite(e,32*c,0),n.crop(0,0,n.getWidth(),4*c),u.composite(n,0,16*c),u.composite(n,16*c,16*c),u.composite(n,32*c,16*c),u.composite(n,48*c,16*c);const l=n.clone().rotate(-90).crop(1,0,n.getHeight(),8*c);u.composite(l,64*c,4*c),u.composite(l,68*c,4*c),u.composite(l,72*c,4*c),u.composite(l,76*c,4*c);const p=l.clone().crop(0,l.getHeight()-c,l.getWidth(),c),f=n.clone().crop(7*c,0,c,n.getHeight()),h=l.clone().crop(0,2*c,l.getWidth(),4*c);u.composite(p,70*c,18*c),u.composite(p,74*c,18*c),u.composite(p,78*c,18*c),u.composite(f,70*c,19*c),u.composite(f,75*c,19*c),u.composite(f,76*c,19*c),u.composite(f,81*c,19*c),u.composite(p,70*c,23*c),u.composite(p,74*c,23*c),u.composite(p,78*c,23*c),u.composite(p,64*c,24*c),u.composite(p,68*c,24*c),u.composite(p,72*c,24*c),u.composite(p,76*c,24*c),u.composite(p,80*c,24*c),u.composite(p,84*c,24*c),u.composite(f,64*c,25*c),u.composite(f,64*c,29*c),u.composite(f,69*c,25*c),u.composite(f,69*c,29*c),u.composite(f,70*c,25*c),u.composite(f,70*c,29*c),u.composite(f,75*c,25*c),u.composite(f,75*c,29*c),u.composite(f,76*c,25*c),u.composite(f,76*c,29*c),u.composite(f,81*c,25*c),u.composite(f,81*c,29*c),u.composite(f,82*c,25*c),u.composite(f,82*c,29*c),u.composite(f,87*c,25*c),u.composite(f,87*c,29*c),u.composite(h,65*c,25*c),u.composite(h,65*c,29*c),u.composite(h,71*c,25*c),u.composite(h,71*c,29*c),u.composite(h,77*c,25*c),u.composite(h,77*c,29*c),u.composite(h,83*c,25*c),u.composite(h,83*c,29*c),await u.writeAsync(s)}}return[]}async*getData(){const t=[["textures/blocks/piston_top_normal.png","textures/blocks/piston_top_normal.png","textures/blocks/piston_side.png","textures/entity/pistonarm/pistonArm.png"],["textures/blocks/piston_top_sticky.png","textures/blocks/piston_top_normal.png","textures/blocks/piston_side.png","textures/entity/pistonarm/pistonArmSticky.png"]];for(const e of t)yield e}};var Je=class extends p{async convert(){for await(const[t,e,n,r,i,o,a,s]of this.getData()){const c=b.fromPath(t,this.path),u=b.toPath(a,c,this.path);if(h.a.existsSync(c)){b.log(`Create placeholder ${a}`);let t=await Me.read(c);const l=t.getWidth()/o;if(t.crop(e*l,n*l,r*l,i*l),!s){const e=Math.max(r,i);t=(await Me.create(e*l,e*l)).composite(t,(e*l-r*l)/2,(e*l-i*l)/2)}await t.writeAsync(u)}}return[]}async*getData(){const t=[["textures/entity/bed/red.png",2,6,14,14,64,"textures/blocks/bed_head_top.png"],["textures/entity/bed/red.png",0,6,6,14,64,"textures/blocks/bed_head_side.png"],["textures/entity/bed/red.png",6,0,14,6,64,"textures/blocks/bed_head_end.png"],["textures/entity/bed/red.png",2,20,14,14,64,"textures/blocks/bed_feet_top.png"],["textures/entity/bed/red.png",22,0,14,6,64,"textures/blocks/bed_feet_end.png"],["textures/entity/bed/red.png",0,20,6,14,64,"textures/blocks/bed_feet_side.png"],["textures/entity/bed/black.png",6,6,16,32,64,"textures/items/bed_black.png"],["textures/entity/bed/blue.png",6,6,16,32,64,"textures/items/bed_blue.png"],["textures/entity/bed/brown.png",6,6,16,32,64,"textures/items/bed_brown.png"],["textures/entity/bed/cyan.png",6,6,16,32,64,"textures/items/bed_cyan.png"],["textures/entity/bed/gray.png",6,6,16,32,64,"textures/items/bed_gray.png"],["textures/entity/bed/green.png",6,6,16,32,64,"textures/items/bed_green.png"],["textures/entity/bed/light_blue.png",6,6,16,32,64,"textures/items/bed_light_blue.png"],["textures/entity/bed/lime.png",6,6,16,32,64,"textures/items/bed_lime.png"],["textures/entity/bed/magenta.png",6,6,16,32,64,"textures/items/bed_magenta.png"],["textures/entity/bed/orange.png",6,6,16,32,64,"textures/items/bed_orange.png"],["textures/entity/bed/pink.png",6,6,16,32,64,"textures/items/bed_pink.png"],["textures/entity/bed/purple.png",6,6,16,32,64,"textures/items/bed_purple.png"],["textures/entity/bed/red.png",6,6,16,32,64,"textures/items/bed_red.png"],["textures/entity/bed/silver.png",6,6,16,32,64,"textures/items/bed_silver.png"],["textures/entity/bed/white.png",6,6,16,32,64,"textures/items/bed_white.png"],["textures/entity/bed/yellow.png",6,6,16,32,64,"textures/items/bed_yellow.png"],["textures/entity/chest/normal.png",14,0,14,14,64,"textures/blocks/chest_top.png"],["textures/entity/chest/ender.png",14,0,14,14,64,"textures/blocks/ender_chest_top.png"],["textures/blocks/chain_command_block_back.png",0,0,16,16,16,"./chain_command_block_back_mipmap.png"],["textures/blocks/chain_command_block_conditional.png",0,0,16,16,16,"./chain_command_block_conditional_mipmap.png"],["textures/blocks/chain_command_block_front.png",0,0,16,16,16,"./chain_command_block_front_mipmap.png"],["textures/blocks/chain_command_block_side.png",0,0,16,16,16,"./chain_command_block_side_mipmap.png"],["textures/blocks/command_block_back.png",0,0,16,16,16,"./command_block_back_mipmap.png"],["textures/blocks/command_block_conditional.png",0,0,16,16,16,"./command_block_conditional_mipmap.png"],["textures/blocks/command_block_front.png",0,0,16,16,16,"./command_block_front_mipmap.png"],["textures/blocks/command_block_side.png",0,0,16,16,16,"./command_block_side_mipmap.png"],["textures/blocks/repeating_command_block_back.png",0,0,16,16,16,"./repeating_command_block_back_mipmap.png"],["textures/blocks/repeating_command_block_conditional.png",0,0,16,16,16,"./repeating_command_block_conditional_mipmap.png"],["textures/blocks/repeating_command_block_front.png",0,0,16,16,16,"./repeating_command_block_front_mipmap.png"],["textures/blocks/repeating_command_block_side.png",0,0,16,16,16,"./repeating_command_block_side_mipmap.png"],["textures/items/compass_atlas.png",0,0,16,16,16,"./compass_item.png"],["textures/items/watch_atlas.png",0,0,16,16,16,"./clock_item.png"],["textures/entity/sign_acacia.png",2,2,24,12,64,"textures/ui/sign_acacia.png",!0],["textures/entity/sign_birch.png",2,2,24,12,64,"textures/ui/sign_birch.png",!0],["textures/entity/sign_darkoak.png",2,2,24,12,64,"textures/ui/sign_darkoak.png",!0],["textures/entity/sign_jungle.png",2,2,24,12,64,"textures/ui/sign_jungle.png",!0],["textures/entity/sign.png",2,2,24,12,64,"textures/ui/sign.png",!0],["textures/entity/sign_spruce.png",2,2,24,12,64,"textures/ui/sign_spruce.png",!0],["textures/blocks/cauldron_water.png",0,0,16,16,16,"./cauldron_water_placeholder.png"],["textures/blocks/fire_0.png",0,0,16,16,16,"./fire_0_placeholder.png"],["textures/blocks/fire_1.png",0,0,16,16,16,"./fire_1_placeholder.png"],["textures/blocks/lava_still.png",0,0,16,16,16,"./lava_placeholder.png"],["textures/blocks/portal.png",0,0,16,16,16,"./portal_placeholder.png"],["textures/blocks/water_still.png",0,0,16,16,16,"./water_placeholder.png"],["textures/entity/pig/pigzombie.png",0,0,64,32,64,"./pigzombie.png",!0],["textures/entity/zombie/husk.png",0,0,64,32,64,"./husk.png",!0],["textures/entity/zombie/zombie.png",0,0,64,32,64,"./zombie.png",!0]];for(const e of t)yield e}},Ke=n(128),tn=n.n(Ke);async function en(...t){for(const e of t)nn.push(e)}const nn=[[Ye,[]],[class extends p{async convert(){for await(const[t,e]of this.getData()){const n=b.fromPath(t,this.path),r=b.toPath(e,n,this.path);h.a.existsSync(n)&&(b.log(`Rename ${t} to ${e}`),h.a.existsSync(g.a.dirname(r))||await h.a.mkdir(g.a.dirname(r)),await h.a.rename(n,r))}return[]}async*getData(){const t=[["pack.png","./pack_icon.png"],["assets/minecraft/textures","textures"],["textures/block","./blocks"],["textures/item","./items"],["textures/blocks/andesite.png","./stone_andesite.png"],["textures/blocks/polished_andesite.png","./stone_andesite_smooth.png"],["textures/blocks/anvil.png","./anvil_base.png"],["textures/blocks/anvil_top.png","./anvil_top_damaged_0.png"],["textures/blocks/chipped_anvil_top.png","./anvil_top_damaged_1.png"],["textures/blocks/damaged_anvil_top.png","./anvil_top_damaged_2.png"],["textures/items/golden_apple.png","./apple_golden.png"],["textures/entity/armorstand/wood.png","textures/entity/armor_stand.png"],["textures/entity/elytra.png","textures/models/armor/elytra.png"],["textures/items/golden_axe.png","./gold_axe.png"],["textures/items/golden_boots.png","./gold_boots.png"],["textures/items/golden_chestplate.png","./gold_chestplate.png"],["textures/items/golden_helmet.png","./gold_helmet.png"],["textures/items/golden_hoe.png","./gold_hoe.png"],["textures/items/golden_horse_armor.png","./gold_horse_armor.png"],["textures/items/golden_leggings.png","./gold_leggings.png"],["textures/items/golden_pickaxe.png","./gold_pickaxe.png"],["textures/items/golden_shovel.png","./gold_shovel.png"],["textures/items/golden_sword.png","./gold_sword.png"],["textures/items/wooden_axe.png","./wood_axe.png"],["textures/items/wooden_hoe.png","./wood_hoe.png"],["textures/items/wooden_pickaxe.png","./wood_pickaxe.png"],["textures/items/wooden_shovel.png","./wood_shovel.png"],["textures/items/wooden_sword.png","./wood_sword.png"],["textures/models/armor/chainmail_layer_1.png","./chain_1.png"],["textures/models/armor/chainmail_layer_2.png","./chain_2.png"],["textures/models/armor/diamond_layer_1.png","./diamond_1.png"],["textures/models/armor/diamond_layer_2.png","./diamond_2.png"],["textures/models/armor/gold_layer_1.png","./gold_1.png"],["textures/models/armor/gold_layer_2.png","./gold_2.png"],["textures/models/armor/iron_layer_1.png","./iron_1.png"],["textures/models/armor/iron_layer_2.png","./iron_2.png"],["textures/models/armor/leather_layer_1.png","./leather_1.png"],["textures/models/armor/leather_layer_1_overlay.png","./leather_1_overlay.png"],["textures/models/armor/leather_layer_2.png","./leather_2.png"],["textures/models/armor/leather_layer_2_overlay.png","./leather_2_overlay.png"],["textures/models/armor/turtle_layer_1.png","./turtle_1.png"],["textures/entity/arrow.png","./arrows.png"],["textures/blocks/bamboo_large_leaves.png","./bamboo_leaf.png"],["textures/blocks/bamboo_small_leaves.png","./bamboo_small_leaf.png"],["textures/blocks/bamboo_stage0.png","./bamboo_sapling.png"],["textures/blocks/bamboo_stalk.png","./bamboo_stem.png"],["textures/items/barrier.png","textures/blocks/barrier.png"],["textures/entity/bear/polarbear.png","textures/entity/polarbear.png"],["textures/entity/bed/light_gray.png","./silver.png"],["textures/blocks/beetroots_stage0.png","./beetroots_stage_0.png"],["textures/blocks/beetroots_stage1.png","./beetroots_stage_1.png"],["textures/blocks/beetroots_stage2.png","./beetroots_stage_2.png"],["textures/blocks/beetroots_stage3.png","./beetroots_stage_3.png"],["textures/entity/bell/bell_body.png","./bell.png"],["textures/items/bell.png","./villagebell.png"],["textures/entity/boat/acacia.png","./boat_acacia.png"],["textures/entity/boat/birch.png","./boat_birch.png"],["textures/entity/boat/dark_oak.png","./boat_darkoak.png"],["textures/entity/boat/jungle.png","./boat_jungle.png"],["textures/entity/boat/oak.png","./boat_oak.png"],["textures/entity/boat/spruce.png","./boat_spruce.png"],["textures/items/acacia_boat.png","./boat_acacia.png"],["textures/items/birch_boat.png","./boat_birch.png"],["textures/items/dark_oak_boat.png","./boat_darkoak.png"],["textures/items/jungle_boat.png","./boat_jungle.png"],["textures/items/oak_boat.png","./boat_oak.png"],["textures/items/spruce_boat.png","./boat_spruce.png"],["textures/items/bone_meal.png","./dye_powder_white.png"],["textures/items/book.png","./book_normal.png"],["textures/items/enchanted_book.png","./book_enchanted.png"],["textures/items/knowledge_book.png","./book_knowledge.png"],["textures/items/writable_book.png","./book_writable.png"],["textures/items/written_book.png","./book_written.png"],["textures/items/bow.png","./bow_standby.png"],["textures/blocks/bricks.png","./brick.png"],["textures/items/bucket.png","./bucket_empty.png"],["textures/items/cod_bucket.png","./bucket_cod.png"],["textures/items/lava_bucket.png","./bucket_lava.png"],["textures/items/milk_bucket.png","./bucket_milk.png"],["textures/items/pufferfish_bucket.png","./bucket_pufferfish.png"],["textures/items/salmon_bucket.png","./bucket_salmon.png"],["textures/items/tropical_fish_bucket.png","./bucket_tropical.png"],["textures/items/water_bucket.png","./bucket_water.png"],["textures/blocks/campfire_fire.png","./campfire.png"],["textures/blocks/carrots_stage0.png","./carrots_stage_0.png"],["textures/blocks/carrots_stage1.png","./carrots_stage_1.png"],["textures/blocks/carrots_stage2.png","./carrots_stage_2.png"],["textures/blocks/carrots_stage3.png","./carrots_stage_3.png"],["textures/items/golden_carrot.png","./carrot_golden.png"],["textures/entity/cat/all_black.png","./allblackcat.png"],["textures/entity/cat/black.png","./tuxedo.png"],["textures/entity/cat/british_shorthair.png","./britishshorthair.png"],["textures/entity/cat/cat_collar.png","./graytabby_tame.png"],["textures/entity/cat/red.png","./redtabby.png"],["textures/entity/cat/siamese.png","./siamesecat.png"],["textures/entity/chest/normal_double.png","./double_normal.png"],["textures/items/popped_chorus_fruit.png","./chorus_fruit_popped.png"],["textures/blocks/mossy_cobblestone.png","./cobblestone_mossy.png"],["textures/blocks/cobweb.png","./web.png"],["textures/blocks/cocoa_stage0.png","./cocoa_stage_0.png"],["textures/blocks/cocoa_stage1.png","./cocoa_stage_1.png"],["textures/blocks/cocoa_stage2.png","./cocoa_stage_2.png"],["textures/items/cocoa_beans.png","./dye_powder_brown.png"],["textures/blocks/comparator.png","./comparator_off.png"],["textures/blocks/composter_compost.png","./compost.png"],["textures/blocks/composter_ready.png","./compost_ready.png"],["textures/blocks/black_concrete.png","./concrete_black.png"],["textures/blocks/blue_concrete.png","./concrete_blue.png"],["textures/blocks/brown_concrete.png","./concrete_brown.png"],["textures/blocks/cyan_concrete.png","./concrete_cyan.png"],["textures/blocks/gray_concrete.png","./concrete_gray.png"],["textures/blocks/green_concrete.png","./concrete_green.png"],["textures/blocks/light_blue_concrete.png","./concrete_light_blue.png"],["textures/blocks/light_gray_concrete.png","./concrete_silver.png"],["textures/blocks/lime_concrete.png","./concrete_lime.png"],["textures/blocks/magenta_concrete.png","./concrete_magenta.png"],["textures/blocks/orange_concrete.png","./concrete_orange.png"],["textures/blocks/pink_concrete.png","./concrete_pink.png"],["textures/blocks/purple_concrete.png","./concrete_purple.png"],["textures/blocks/red_concrete.png","./concrete_red.png"],["textures/blocks/white_concrete.png","./concrete_white.png"],["textures/blocks/yellow_concrete.png","./concrete_yellow.png"],["textures/blocks/black_concrete_powder.png","./concrete_powder_black.png"],["textures/blocks/blue_concrete_powder.png","./concrete_powder_blue.png"],["textures/blocks/brown_concrete_powder.png","./concrete_powder_brown.png"],["textures/blocks/cyan_concrete_powder.png","./concrete_powder_cyan.png"],["textures/blocks/gray_concrete_powder.png","./concrete_powder_gray.png"],["textures/blocks/green_concrete_powder.png","./concrete_powder_green.png"],["textures/blocks/light_blue_concrete_powder.png","./concrete_powder_light_blue.png"],["textures/blocks/light_gray_concrete_powder.png","./concrete_powder_silver.png"],["textures/blocks/lime_concrete_powder.png","./concrete_powder_lime.png"],["textures/blocks/magenta_concrete_powder.png","./concrete_powder_magenta.png"],["textures/blocks/orange_concrete_powder.png","./concrete_powder_orange.png"],["textures/blocks/pink_concrete_powder.png","./concrete_powder_pink.png"],["textures/blocks/purple_concrete_powder.png","./concrete_powder_purple.png"],["textures/blocks/red_concrete_powder.png","./concrete_powder_red.png"],["textures/blocks/white_concrete_powder.png","./concrete_powder_white.png"],["textures/blocks/yellow_concrete_powder.png","./concrete_powder_yellow.png"],["textures/entity/conduit/base.png","textures/blocks/conduit_base.png"],["textures/entity/conduit/cage.png","textures/blocks/conduit_cage.png"],["textures/entity/conduit/closed_eye.png","textures/blocks/conduit_closed.png"],["textures/entity/conduit/open_eye.png","textures/blocks/conduit_open.png"],["textures/entity/conduit/wind.png","textures/blocks/conduit_wind_horizontal.png"],["textures/entity/conduit/wind_vertical.png","textures/blocks/conduit_wind_vertical.png"],["textures/items/heart_of_the_sea.png","./heartofthesea_closed.png"],["textures/blocks/brain_coral.png","./coral_plant_pink.png"],["textures/blocks/bubble_coral.png","./coral_plant_purple.png"],["textures/blocks/fire_coral.png","./coral_plant_red.png"],["textures/blocks/horn_coral.png","./coral_plant_yellow.png"],["textures/blocks/tube_coral.png","./coral_plant_blue.png"],["textures/blocks/brain_coral_block.png","./coral_pink.png"],["textures/blocks/bubble_coral_block.png","./coral_purple.png"],["textures/blocks/fire_coral_block.png","./coral_red.png"],["textures/blocks/horn_coral_block.png","./coral_yellow.png"],["textures/blocks/tube_coral_block.png","./coral_blue.png"],["textures/blocks/brain_coral_fan.png","./coral_fan_pink.png"],["textures/blocks/bubble_coral_fan.png","./coral_fan_purple.png"],["textures/blocks/fire_coral_fan.png","./coral_fan_red.png"],["textures/blocks/horn_coral_fan.png","./coral_fan_yellow.png"],["textures/blocks/tube_coral_fan.png","./coral_fan_blue.png"],["textures/blocks/dead_brain_coral_block.png","./coral_pink_dead.png"],["textures/blocks/dead_bubble_coral_block.png","./coral_purple_dead.png"],["textures/blocks/dead_fire_coral_block.png","./coral_red_dead.png"],["textures/blocks/dead_horn_coral_block.png","./coral_yellow_dead.png"],["textures/blocks/dead_tube_coral_block.png","./coral_blue_dead.png"],["textures/blocks/dead_brain_coral_fan.png","./coral_fan_pink_dead.png"],["textures/blocks/dead_bubble_coral_fan.png","./coral_fan_purple_dead.png"],["textures/blocks/dead_fire_coral_fan.png","./coral_fan_red_dead.png"],["textures/blocks/dead_horn_coral_fan.png","./coral_fan_yellow_dead.png"],["textures/blocks/dead_tube_coral_fan.png","./coral_fan_blue_dead.png"],["textures/entity/cow/red_mooshroom.png","./mooshroom.png"],["textures/blocks/dead_bush.png","./deadbush.png"],["textures/blocks/destroy_stage_0.png","textures/environment/destroy_stage_0.png"],["textures/blocks/destroy_stage_1.png","textures/environment/destroy_stage_1.png"],["textures/blocks/destroy_stage_2.png","textures/environment/destroy_stage_2.png"],["textures/blocks/destroy_stage_3.png","textures/environment/destroy_stage_3.png"],["textures/blocks/destroy_stage_4.png","textures/environment/destroy_stage_4.png"],["textures/blocks/destroy_stage_5.png","textures/environment/destroy_stage_5.png"],["textures/blocks/destroy_stage_6.png","textures/environment/destroy_stage_6.png"],["textures/blocks/destroy_stage_7.png","textures/environment/destroy_stage_7.png"],["textures/blocks/destroy_stage_8.png","textures/environment/destroy_stage_8.png"],["textures/blocks/destroy_stage_9.png","textures/environment/destroy_stage_9.png"],["textures/blocks/diorite.png","./stone_diorite.png"],["textures/blocks/polished_diorite.png","./stone_diorite_smooth.png"],["textures/blocks/dispenser_front.png","./dispenser_front_horizontal.png"],["textures/blocks/acacia_door_bottom.png","./door_acacia_lower.png"],["textures/blocks/birch_door_bottom.png","./door_birch_lower.png"],["textures/blocks/dark_oak_door_bottom.png","./door_dark_oak_lower.png"],["textures/blocks/iron_door_bottom.png","./door_iron_lower.png"],["textures/blocks/jungle_door_bottom.png","./door_jungle_lower.png"],["textures/blocks/oak_door_bottom.png","./door_wood_lower.png"],["textures/blocks/spruce_door_bottom.png","./door_spruce_lower.png"],["textures/blocks/acacia_door_top.png","./door_acacia_upper.png"],["textures/blocks/birch_door_top.png","./door_birch_upper.png"],["textures/blocks/dark_oak_door_top.png","./door_dark_oak_upper.png"],["textures/blocks/iron_door_top.png","./door_iron_upper.png"],["textures/blocks/jungle_door_top.png","./door_jungle_upper.png"],["textures/blocks/oak_door_top.png","./door_wood_upper.png"],["textures/blocks/spruce_door_top.png","./door_spruce_upper.png"],["textures/items/acacia_door.png","./door_acacia.png"],["textures/items/birch_door.png","./door_birch.png"],["textures/items/dark_oak_door.png","./door_dark_oak.png"],["textures/items/iron_door.png","./door_iron.png"],["textures/items/jungle_door.png","./door_jungle.png"],["textures/items/oak_door.png","./door_wood.png"],["textures/items/spruce_door.png","./door_spruce.png"],["textures/entity/enderdragon","./dragon"],["textures/entity/dragon/dragon_fireball.png","textures/items/dragon_fireball.png"],["textures/items/dragon_breath.png","./dragons_breath.png"],["textures/items/fire_charge.png","./fireball.png"],["textures/blocks/dropper_front.png","./dropper_front_horizontal.png"],["textures/items/black_dye.png","./dye_powder_black_new.png"],["textures/items/blue_dye.png","./dye_powder_blue_new.png"],["textures/items/brown_dye.png","./dye_powder_brown_new.png"],["textures/items/cyan_dye.png","./dye_powder_cyan.png"],["textures/items/gray_dye.png","./dye_powder_gray.png"],["textures/items/green_dye.png","./dye_powder_green.png"],["textures/items/light_blue_dye.png","./dye_powder_light_blue.png"],["textures/items/light_gray_dye.png","./dye_powder_silver.png"],["textures/items/lime_dye.png","./dye_powder_lime.png"],["textures/items/magenta_dye.png","./dye_powder_magenta.png"],["textures/items/orange_dye.png","./dye_powder_orange.png"],["textures/items/pink_dye.png","./dye_powder_pink.png"],["textures/items/purple_dye.png","./dye_powder_purple.png"],["textures/items/red_dye.png","./dye_powder_red.png"],["textures/items/white_dye.png","./dye_powder_white_new.png"],["textures/items/yellow_dye.png","./dye_powder_yellow.png"],["textures/entity/end_crystal","./endercrystal"],["textures/entity/endercrystal/end_crystal.png","./endercrystal.png"],["textures/entity/endercrystal/end_crystal_beam.png","./endercrystal_beam.png"],["textures/blocks/end_portal_frame_eye.png","./endframe_eye.png"],["textures/blocks/end_portal_frame_side.png","./endframe_side.png"],["textures/blocks/end_portal_frame_top.png","./endframe_top.png"],["textures/blocks/end_stone_bricks.png","./end_bricks.png"],["textures/blocks/farmland.png","./farmland_dry.png"],["textures/blocks/farmland_moist.png","./farmland_wet.png"],["textures/blocks/large_fern_bottom.png","./double_plant_fern_bottom.png"],["textures/blocks/large_fern_top.png","./double_plant_fern_top.png"],["textures/items/firework_rocket.png","./fireworks.png"],["textures/items/firework_star_overlay.png","./fireworks_charge.png"],["textures/entity/fishing_hook.png","./fishhook.png"],["textures/items/cod.png","./fish_raw.png"],["textures/items/cooked_cod.png","./fish_cooked.png"],["textures/items/cooked_salmon.png","./fish_salmon_cooked.png"],["textures/items/fishing_rod.png","./fishing_rod_uncast.png"],["textures/items/pufferfish.png","./fish_pufferfish_raw.png"],["textures/items/salmon.png","./fish_salmon_raw.png"],["textures/items/tropical_fish.png","./fish_clownfish_raw.png"],["textures/items/beef.png","./beef_raw.png"],["textures/items/chicken.png","./chicken_raw.png"],["textures/items/cooked_beef.png","./beef_cooked.png"],["textures/items/cooked_chicken.png","./chicken_cooked.png"],["textures/items/cooked_mutton.png","./mutton_cooked.png"],["textures/items/cooked_porkchop.png","./porkchop_cooked.png"],["textures/items/mutton.png","./mutton_raw.png"],["textures/items/porkchop.png","./porkchop_raw.png"],["textures/blocks/fletching_table_front.png","./fletcher_table_side2.png"],["textures/blocks/fletching_table_side.png","./fletcher_table_side1.png"],["textures/blocks/fletching_table_top.png","./fletcher_table_top.png"],["textures/blocks/allium.png","./flower_allium.png"],["textures/blocks/azure_bluet.png","./flower_houstonia.png"],["textures/blocks/blue_orchid.png","./flower_blue_orchid.png"],["textures/blocks/cornflower.png","./flower_cornflower.png"],["textures/blocks/dandelion.png","./flower_dandelion.png"],["textures/blocks/lilac_bottom.png","./double_plant_syringa_bottom.png"],["textures/blocks/lilac_top.png","./double_plant_syringa_top.png"],["textures/blocks/lily_of_the_valley.png","./flower_lily_of_the_valley.png"],["textures/blocks/orange_tulip.png","./flower_tulip_orange.png"],["textures/blocks/poppy.png","./flower_rose.png"],["textures/blocks/oxeye_daisy.png","./flower_oxeye_daisy.png"],["textures/blocks/peony_bottom.png","./double_plant_paeonia_bottom.png"],["textures/blocks/peony_top.png","./double_plant_paeonia_top.png"],["textures/blocks/pink_tulip.png","./flower_tulip_pink.png"],["textures/blocks/red_tulip.png","./flower_tulip_red.png"],["textures/blocks/rose_bush_bottom.png","./double_plant_rose_bottom.png"],["textures/blocks/rose_bush_top.png","./double_plant_rose_top.png"],["textures/blocks/sunflower_back.png","./double_plant_sunflower_back.png"],["textures/blocks/sunflower_bottom.png","./double_plant_sunflower_bottom.png"],["textures/blocks/sunflower_front.png","./double_plant_sunflower_front.png"],["textures/blocks/sunflower_top.png","./double_plant_sunflower_top.png"],["textures/blocks/white_tulip.png","./flower_tulip_white.png"],["textures/blocks/wither_rose.png","./flower_wither_rose.png"],["textures/blocks/blast_furnace_front.png","./blast_furnace_front_off.png"],["textures/blocks/furnace_front.png","./furnace_front_off.png"],["textures/blocks/smoker_front.png","./smoker_front_off.png"],["textures/blocks/black_stained_glass.png","./glass_black.png"],["textures/blocks/blue_stained_glass.png","./glass_blue.png"],["textures/blocks/brown_stained_glass.png","./glass_brown.png"],["textures/blocks/cyan_stained_glass.png","./glass_cyan.png"],["textures/blocks/gray_stained_glass.png","./glass_gray.png"],["textures/blocks/green_stained_glass.png","./glass_green.png"],["textures/blocks/light_blue_stained_glass.png","./glass_light_blue.png"],["textures/blocks/light_gray_stained_glass.png","./glass_silver.png"],["textures/blocks/lime_stained_glass.png","./glass_lime.png"],["textures/blocks/magenta_stained_glass.png","./glass_magenta.png"],["textures/blocks/orange_stained_glass.png","./glass_orange.png"],["textures/blocks/pink_stained_glass.png","./glass_pink.png"],["textures/blocks/purple_stained_glass.png","./glass_purple.png"],["textures/blocks/red_stained_glass.png","./glass_red.png"],["textures/blocks/white_stained_glass.png","./glass_white.png"],["textures/blocks/yellow_stained_glass.png","./glass_yellow.png"],["textures/blocks/black_stained_glass_pane_top.png","./glass_pane_top_black.png"],["textures/blocks/blue_stained_glass_pane_top.png","./glass_pane_top_blue.png"],["textures/blocks/brown_stained_glass_pane_top.png","./glass_pane_top_brown.png"],["textures/blocks/cyan_stained_glass_pane_top.png","./glass_pane_top_cyan.png"],["textures/blocks/gray_stained_glass_pane_top.png","./glass_pane_top_gray.png"],["textures/blocks/green_stained_glass_pane_top.png","./glass_pane_top_green.png"],["textures/blocks/light_blue_stained_glass_pane_top.png","./glass_pane_top_light_blue.png"],["textures/blocks/light_gray_stained_glass_pane_top.png","./glass_pane_top_silver.png"],["textures/blocks/lime_stained_glass_pane_top.png","./glass_pane_top_lime.png"],["textures/blocks/magenta_stained_glass_pane_top.png","./glass_pane_top_magenta.png"],["textures/blocks/orange_stained_glass_pane_top.png","./glass_pane_top_orange.png"],["textures/blocks/pink_stained_glass_pane_top.png","./glass_pane_top_pink.png"],["textures/blocks/purple_stained_glass_pane_top.png","./glass_pane_top_purple.png"],["textures/blocks/red_stained_glass_pane_top.png","./glass_pane_top_red.png"],["textures/blocks/white_stained_glass_pane_top.png","./glass_pane_top_white.png"],["textures/blocks/yellow_stained_glass_pane_top.png","./glass_pane_top_yellow.png"],["textures/blocks/black_glazed_terracotta.png","./glazed_terracotta_black.png"],["textures/blocks/blue_glazed_terracotta.png","./glazed_terracotta_blue.png"],["textures/blocks/brown_glazed_terracotta.png","./glazed_terracotta_brown.png"],["textures/blocks/cyan_glazed_terracotta.png","./glazed_terracotta_cyan.png"],["textures/blocks/gray_glazed_terracotta.png","./glazed_terracotta_gray.png"],["textures/blocks/green_glazed_terracotta.png","./glazed_terracotta_green.png"],["textures/blocks/light_blue_glazed_terracotta.png","./glazed_terracotta_light_blue.png"],["textures/blocks/light_gray_glazed_terracotta.png","./glazed_terracotta_silver.png"],["textures/blocks/lime_glazed_terracotta.png","./glazed_terracotta_lime.png"],["textures/blocks/magenta_glazed_terracotta.png","./glazed_terracotta_magenta.png"],["textures/blocks/orange_glazed_terracotta.png","./glazed_terracotta_orange.png"],["textures/blocks/pink_glazed_terracotta.png","./glazed_terracotta_pink.png"],["textures/blocks/purple_glazed_terracotta.png","./glazed_terracotta_purple.png"],["textures/blocks/red_glazed_terracotta.png","./glazed_terracotta_red.png"],["textures/blocks/white_glazed_terracotta.png","./glazed_terracotta_white.png"],["textures/blocks/yellow_glazed_terracotta.png","./glazed_terracotta_yellow.png"],["textures/blocks/granite.png","./stone_granite.png"],["textures/blocks/polished_granite.png","./stone_granite_smooth.png"],["textures/blocks/grass.png","./tallgrass.png"],["textures/blocks/grass_block_side.png","./grass_side_carried.png"],["textures/blocks/grass_block_side_overlay.png","./grass_side.png"],["textures/blocks/grass_block_snow.png","./grass_side_snowed.png"],["textures/blocks/grass_block_top.png","./grass_top.png"],["textures/blocks/tall_grass_bottom.png","./double_plant_grass_bottom.png"],["textures/blocks/tall_grass_top.png","./double_plant_grass_top.png"],["textures/entity/horse","./horse2"],["textures/blocks/packed_ice.png","./ice_packed.png"],["textures/entity/illager/evoker_fangs.png","./fangs.png"],["textures/entity/illager/pillager.png","textures/entity/pillager.png"],["textures/entity/illager/vex.png","textures/entity/vex/vex.png"],["textures/entity/illager/vex_charging.png","textures/entity/vex/vex_charging.png"],["textures/entity/illager/vindicator.png","textures/entity/vindicator.png"],["textures/items/ink_sac.png","./dye_powder_black.png"],["textures/blocks/item_frame.png","./itemframe_background.png"],["textures/blocks/jigsaw_bottom.png","./jigsaw_back.png"],["textures/blocks/jigsaw_top.png","./jigsaw_front.png"],["textures/blocks/dried_kelp_side.png","./dried_kelp_side_a.png"],["textures/blocks/kelp.png","./kelp_top.png"],["textures/blocks/kelp_plant.png","./kelp_a.png"],["textures/items/lapis_lazuli.png","./dye_powder_blue.png"],["textures/blocks/acacia_leaves.png","./leaves_acacia.png"],["textures/blocks/birch_leaves.png","./leaves_birch.png"],["textures/blocks/dark_oak_leaves.png","./leaves_big_oak.png"],["textures/blocks/jungle_leaves.png","./leaves_jungle.png"],["textures/blocks/oak_leaves.png","./leaves_oak.png"],["textures/blocks/spruce_leaves.png","./leaves_spruce.png"],["textures/blocks/lily_pad.png","./waterlily.png"],["textures/entity/llama/brown.png","./llama_brown.png"],["textures/entity/llama/creamy.png","./llama_creamy.png"],["textures/entity/llama/gray.png","./llama_gray.png"],["textures/entity/llama/white.png","./llama_white.png"],["textures/entity/llama/decor/black.png","./decor_black.png"],["textures/entity/llama/decor/blue.png","./decor_blue.png"],["textures/entity/llama/decor/brown.png","./decor_brown.png"],["textures/entity/llama/decor/cyan.png","./decor_cyan.png"],["textures/entity/llama/decor/gray.png","./decor_gray.png"],["textures/entity/llama/decor/green.png","./decor_green.png"],["textures/entity/llama/decor/light_blue.png","./decor_light_blue.png"],["textures/entity/llama/decor/light_gray.png","./decor_silver.png"],["textures/entity/llama/decor/lime.png","./decor_lime.png"],["textures/entity/llama/decor/magenta.png","./decor_magenta.png"],["textures/entity/llama/decor/orange.png","./decor_orange.png"],["textures/entity/llama/decor/pink.png","./decor_pink.png"],["textures/entity/llama/decor/purple.png","./decor_purple.png"],["textures/entity/llama/decor/red.png","./decor_red.png"],["textures/entity/llama/decor/trader_llama.png","./trader_llama_decor.png"],["textures/entity/llama/decor/white.png","./decor_white.png"],["textures/entity/llama/decor/yellow.png","./decor_yellow.png"],["textures/blocks/acacia_log.png","./log_acacia.png"],["textures/blocks/birch_log.png","./log_birch.png"],["textures/blocks/dark_oak_log.png","./log_big_oak.png"],["textures/blocks/jungle_log.png","./log_jungle.png"],["textures/blocks/oak_log.png","./log_oak.png"],["textures/blocks/spruce_log.png","./log_spruce.png"],["textures/blocks/acacia_log_top.png","./log_acacia_top.png"],["textures/blocks/birch_log_top.png","./log_birch_top.png"],["textures/blocks/dark_oak_log_top.png","./log_big_oak_top.png"],["textures/blocks/jungle_log_top.png","./log_jungle_top.png"],["textures/blocks/oak_log_top.png","./log_oak_top.png"],["textures/blocks/spruce_log_top.png","./log_spruce_top.png"],["textures/items/filled_map.png","./map_filled.png"],["textures/items/filled_map_markings.png","./map_filled_markings.png"],["textures/items/map.png","./map_empty.png"],["textures/blocks/attached_melon_stem.png","./melon_stem_connected.png"],["textures/blocks/melon_stem.png","./melon_stem_disconnected.png"],["textures/items/glistering_melon_slice.png","./melon_speckled.png"],["textures/items/melon_slice.png","./melon.png"],["textures/items/chest_minecart.png","./minecart_chest.png"],["textures/items/command_block_minecart.png","./minecart_command_block.png"],["textures/items/furnace_minecart.png","./minecart_furnace.png"],["textures/items/hopper_minecart.png","./minecart_hopper.png"],["textures/items/minecart.png","./minecart_normal.png"],["textures/items/tnt_minecart.png","./minecart_tnt.png"],["textures/blocks/brown_mushroom.png","./mushroom_brown.png"],["textures/blocks/red_mushroom.png","./mushroom_red.png"],["textures/blocks/brown_mushroom_block.png","./mushroom_block_skin_brown.png"],["textures/blocks/red_mushroom_block.png","./mushroom_block_skin_red.png"],["textures/blocks/mushroom_stem.png","./mushroom_block_skin_stem.png"],["textures/items/music_disc_11.png","./record_11.png"],["textures/items/music_disc_13.png","./record_13.png"],["textures/items/music_disc_blocks.png","./record_blocks.png"],["textures/items/music_disc_cat.png","./record_cat.png"],["textures/items/music_disc_chirp.png","./record_chirp.png"],["textures/items/music_disc_far.png","./record_far.png"],["textures/items/music_disc_mall.png","./record_mall.png"],["textures/items/music_disc_mellohi.png","./record_mellohi.png"],["textures/items/music_disc_stal.png","./record_stal.png"],["textures/items/music_disc_strad.png","./record_strad.png"],["textures/items/music_disc_wait.png","./record_wait.png"],["textures/items/music_disc_ward.png","./record_ward.png"],["textures/blocks/nether_bricks.png","./nether_brick.png"],["textures/blocks/red_nether_bricks.png","./red_nether_brick.png"],["textures/items/nether_brick.png","./netherbrick.png"],["textures/blocks/nether_portal.png","./portal.png"],["textures/blocks/nether_wart_stage0.png","./nether_wart_stage_0.png"],["textures/blocks/nether_wart_stage1.png","./nether_wart_stage_1.png"],["textures/blocks/nether_wart_stage2.png","./nether_wart_stage_2.png"],["textures/blocks/note_block.png","./noteblock.png"],["textures/items/nautilus_shell.png","./nautilus.png"],["textures/blocks/observer_back_on.png","./observer_back_lit.png"],["textures/entity/panda/aggressive_panda.png","./panda_aggressive.png"],["textures/entity/panda/brown_panda.png","./panda_brown.png"],["textures/entity/panda/lazy_panda.png","./panda_lazy.png"],["textures/entity/panda/playful_panda.png","./panda_playful.png"],["textures/entity/panda/weak_panda.png","./panda_sneezy.png"],["textures/entity/panda/worried_panda.png","./panda_worried.png"],["textures/blocks/piston_top.png","./piston_top_normal.png"],["textures/blocks/acacia_planks.png","./planks_acacia.png"],["textures/blocks/birch_planks.png","./planks_birch.png"],["textures/blocks/dark_oak_planks.png","./planks_big_oak.png"],["textures/blocks/jungle_planks.png","./planks_jungle.png"],["textures/blocks/oak_planks.png","./planks_oak.png"],["textures/blocks/spruce_planks.png","./planks_spruce.png"],["textures/blocks/podzol_side.png","./dirt_podzol_side.png"],["textures/blocks/podzol_top.png","./dirt_podzol_top.png"],["textures/blocks/potatoes_stage0.png","./potatoes_stage_0.png"],["textures/blocks/potatoes_stage1.png","./potatoes_stage_1.png"],["textures/blocks/potatoes_stage2.png","./potatoes_stage_2.png"],["textures/blocks/potatoes_stage3.png","./potatoes_stage_3.png"],["textures/items/baked_potato.png","./potato_baked.png"],["textures/items/poisonous_potato.png","./potato_poisonous.png"],["textures/items/lingering_potion.png","./potion_bottle_lingering_empty.png"],["textures/items/potion.png","./potion_bottle_empty.png"],["textures/items/splash_potion.png","./potion_bottle_splash_empty.png"],["textures/blocks/dark_prismarine.png","./prismarine_dark.png"],["textures/blocks/prismarine.png","./prismarine_rough.png"],["textures/blocks/attached_pumpkin_stem.png","./pumpkin_stem_connected.png"],["textures/blocks/carved_pumpkin.png","./pumpkin_face_off.png"],["textures/blocks/jack_o_lantern.png","./pumpkin_face_on.png"],["textures/blocks/pumpkin_stem.png","./pumpkin_stem_disconnected.png"],["textures/blocks/chiseled_quartz_block.png","./quartz_block_chiseled.png"],["textures/blocks/chiseled_quartz_block_top.png","./quartz_block_chiseled_top.png"],["textures/blocks/nether_quartz_ore.png","./quartz_ore.png"],["textures/blocks/quartz_pillar.png","./quartz_block_lines.png"],["textures/blocks/quartz_pillar_top.png","./quartz_block_lines_top.png"],["textures/entity/rabbit/black.png","./blackrabbit.png"],["textures/items/cooked_rabbit.png","./rabbit_cooked.png"],["textures/items/rabbit.png","./rabbit_raw.png"],["textures/blocks/activator_rail.png","./rail_activator.png"],["textures/blocks/activator_rail_on.png","./rail_activator_powered.png"],["textures/blocks/detector_rail.png","./rail_detector.png"],["textures/blocks/detector_rail_on.png","./rail_detector_powered.png"],["textures/blocks/powered_rail.png","./rail_golden.png"],["textures/blocks/powered_rail_on.png","./rail_golden_powered.png"],["textures/blocks/rail.png","./rail_normal.png"],["textures/blocks/rail_corner.png","./rail_normal_turned.png"],["textures/blocks/chiseled_red_sandstone.png","./red_sandstone_carved.png"],["textures/blocks/cut_red_sandstone.png","./red_sandstone_smooth.png"],["textures/blocks/red_sandstone.png","./red_sandstone_normal.png"],["textures/items/redstone.png","./redstone_dust.png"],["textures/blocks/redstone_lamp.png","./redstone_lamp_off.png"],["textures/blocks/repeater.png","./repeater_off.png"],["textures/entity/pig/pig_saddle.png","textures/entity/saddle.png"],["textures/blocks/chiseled_sandstone.png","./sandstone_carved.png"],["textures/blocks/cut_sandstone.png","./sandstone_smooth.png"],["textures/blocks/sandstone.png","./sandstone_normal.png"],["textures/blocks/acacia_sapling.png","./sapling_acacia.png"],["textures/blocks/birch_sapling.png","./sapling_birch.png"],["textures/blocks/dark_oak_sapling.png","./sapling_roofed_oak.png"],["textures/blocks/jungle_sapling.png","./sapling_jungle.png"],["textures/blocks/oak_sapling.png","./sapling_oak.png"],["textures/blocks/spruce_sapling.png","./sapling_spruce.png"],["textures/blocks/tall_seagrass_top.png","./seagrass_doubletall_top_a.png"],["textures/blocks/tall_seagrass_bottom.png","./seagrass_doubletall_bottom_a.png"],["textures/items/seagrass.png","textures/blocks/seagrass_carried.png"],["textures/items/beetroot_seeds.png","./seeds_beetroot.png"],["textures/items/melon_seeds.png","./seeds_melon.png"],["textures/items/pumpkin_seeds.png","./seeds_pumpkin.png"],["textures/items/wheat_seeds.png","./seeds_wheat.png"],["textures/entity/shield_base_nopattern.png","./shield.png"],["textures/blocks/black_shulker_box.png","./shulker_top_black.png"],["textures/blocks/blue_shulker_box.png","./shulker_top_blue.png"],["textures/blocks/brown_shulker_box.png","./shulker_top_brown.png"],["textures/blocks/cyan_shulker_box.png","./shulker_top_cyan.png"],["textures/blocks/gray_shulker_box.png","./shulker_top_gray.png"],["textures/blocks/green_shulker_box.png","./shulker_top_green.png"],["textures/blocks/light_blue_shulker_box.png","./shulker_top_light_blue.png"],["textures/blocks/light_gray_shulker_box.png","./shulker_top_silver.png"],["textures/blocks/lime_shulker_box.png","./shulker_top_lime.png"],["textures/blocks/magenta_shulker_box.png","./shulker_top_magenta.png"],["textures/blocks/orange_shulker_box.png","./shulker_top_orange.png"],["textures/blocks/pink_shulker_box.png","./shulker_top_pink.png"],["textures/blocks/purple_shulker_box.png","./shulker_top_purple.png"],["textures/blocks/red_shulker_box.png","./shulker_top_red.png"],["textures/blocks/shulker_box.png","./shulker_top_undyed.png"],["textures/blocks/white_shulker_box.png","./shulker_top_white.png"],["textures/blocks/yellow_shulker_box.png","./shulker_top_yellow.png"],["textures/entity/shulker/shulker.png","./shulker_undyed.png"],["textures/entity/shulker/shulker_black.png","./shulker_black.png"],["textures/entity/shulker/shulker_blue.png","./shulker_blue.png"],["textures/entity/shulker/shulker_brown.png","./shulker_brown.png"],["textures/entity/shulker/shulker_cyan.png","./shulker_cyan.png"],["textures/entity/shulker/shulker_gray.png","./shulker_gray.png"],["textures/entity/shulker/shulker_green.png","./shulker_green.png"],["textures/entity/shulker/shulker_light_blue.png","./shulker_light_blue.png"],["textures/entity/shulker/shulker_light_gray.png","./shulker_silver.png"],["textures/entity/shulker/shulker_lime.png","./shulker_lime.png"],["textures/entity/shulker/shulker_magenta.png","./shulker_magenta.png"],["textures/entity/shulker/shulker_orange.png","./shulker_orange.png"],["textures/entity/shulker/shulker_pink.png","./shulker_pink.png"],["textures/entity/shulker/shulker_purple.png","./shulker_purple.png"],["textures/entity/shulker/shulker_red.png","./shulker_red.png"],["textures/entity/shulker/shulker_white.png","./shulker_white.png"],["textures/entity/shulker/shulker_yellow.png","./shulker_yellow.png"],["textures/entity/signs/acacia.png","textures/entity/sign_acacia.png"],["textures/entity/signs/birch.png","textures/entity/sign_birch.png"],["textures/entity/signs/dark_oak.png","textures/entity/sign_darkoak.png"],["textures/entity/signs/jungle.png","textures/entity/sign_jungle.png"],["textures/entity/signs/oak.png","textures/entity/sign.png"],["textures/entity/signs/spruce.png","textures/entity/sign_spruce.png"],["textures/items/acacia_sign.png","./sign_acacia.png"],["textures/items/birch_sign.png","./sign_birch.png"],["textures/items/dark_oak_sign.png","./sign_darkoak.png"],["textures/items/jungle_sign.png","./sign_jungle.png"],["textures/items/oak_sign.png","./sign.png"],["textures/items/spruce_sign.png","./sign_spruce.png"],["textures/blocks/slime_block.png","./slime.png"],["textures/items/slime_ball.png","./slimeball.png"],["textures/blocks/smooth_stone.png","./stone_slab_top.png"],["textures/blocks/smooth_stone_slab_side.png","./stone_slab_side.png"],["textures/blocks/spawner.png","./mob_spawner.png"],["textures/items/fermented_spider_eye.png","./spider_eye_fermented.png"],["textures/blocks/wet_sponge.png","./sponge_wet.png"],["textures/blocks/chiseled_stone_bricks.png","./stonebrick_carved.png"],["textures/blocks/cracked_stone_bricks.png","./stonebrick_cracked.png"],["textures/blocks/mossy_stone_bricks.png","./stonebrick_mossy.png"],["textures/blocks/stone_bricks.png","./stonebrick.png"],["textures/blocks/stonecutter_bottom.png","./stonecutter2_bottom.png"],["textures/blocks/stonecutter_saw.png","./stonecutter2_saw.png"],["textures/blocks/stonecutter_side.png","./stonecutter2_side.png"],["textures/blocks/stonecutter_top.png","./stonecutter2_top.png"],["textures/items/structure_void.png","textures/blocks/structure_void.png"],["textures/blocks/sugar_cane.png","./reeds.png"],["textures/items/sugar_cane.png","./reeds.png"],["textures/blocks/black_terracotta.png","./hardened_clay_stained_black.png"],["textures/blocks/blue_terracotta.png","./hardened_clay_stained_blue.png"],["textures/blocks/brown_terracotta.png","./hardened_clay_stained_brown.png"],["textures/blocks/cyan_terracotta.png","./hardened_clay_stained_cyan.png"],["textures/blocks/gray_terracotta.png","./hardened_clay_stained_gray.png"],["textures/blocks/green_terracotta.png","./hardened_clay_stained_green.png"],["textures/blocks/light_blue_terracotta.png","./hardened_clay_stained_light_blue.png"],["textures/blocks/light_gray_terracotta.png","./hardened_clay_stained_silver.png"],["textures/blocks/lime_terracotta.png","./hardened_clay_stained_lime.png"],["textures/blocks/magenta_terracotta.png","./hardened_clay_stained_magenta.png"],["textures/blocks/orange_terracotta.png","./hardened_clay_stained_orange.png"],["textures/blocks/pink_terracotta.png","./hardened_clay_stained_pink.png"],["textures/blocks/purple_terracotta.png","./hardened_clay_stained_purple.png"],["textures/blocks/red_terracotta.png","./hardened_clay_stained_red.png"],["textures/blocks/terracotta.png","./hardened_clay.png"],["textures/blocks/white_terracotta.png","./hardened_clay_stained_white.png"],["textures/blocks/yellow_terracotta.png","./hardened_clay_stained_yellow.png"],["textures/blocks/redstone_torch.png","./redstone_torch_on.png"],["textures/blocks/torch.png","./torch_on.png"],["textures/items/totem_of_undying.png","./totem.png"],["textures/blocks/oak_trapdoor.png","./trapdoor.png"],["textures/blocks/tripwire.png","./trip_wire.png"],["textures/blocks/tripwire_hook.png","./trip_wire_source.png"],["textures/blocks/turtle_egg.png","./turtle_egg_not_cracked.png"],["textures/entity/turtle/big_sea_turtle.png","textures/entity/sea_turtle.png"],["textures/items/scute.png","./turtle_shell_piece.png"],["textures/entity/villager","./villager2"],["textures/entity/villager2/profession","./professions"],["textures/entity/villager2/profession_level","./levels"],["textures/entity/villager2/type","./biomes"],["textures/entity/villager2/biomes/desert.png","./biome_desert.png"],["textures/entity/villager2/biomes/jungle.png","./biome_jungle.png"],["textures/entity/villager2/biomes/plains.png","./biome_plains.png"],["textures/entity/villager2/biomes/savanna.png","./biome_savanna.png"],["textures/entity/villager2/biomes/snow.png","./biome_snow.png"],["textures/entity/villager2/biomes/swamp.png","./biome_swamp.png"],["textures/entity/villager2/biomes/taiga.png","./biome_taiga.png"],["textures/entity/villager2/levels/diamond.png","./level_diamond.png"],["textures/entity/villager2/levels/emerald.png","./level_emerald.png"],["textures/entity/villager2/levels/gold.png","./level_gold.png"],["textures/entity/villager2/levels/iron.png","./level_iron.png"],["textures/entity/villager2/levels/stone.png","./level_stone.png"],["textures/entity/villager2/professions/mason.png","./stonemason.png"],["textures/blocks/water_flow.png","./water_flow_grey.png"],["textures/blocks/water_still.png","./water_still_grey.png"],["textures/blocks/wheat_stage0.png","./wheat_stage_0.png"],["textures/blocks/wheat_stage1.png","./wheat_stage_1.png"],["textures/blocks/wheat_stage2.png","./wheat_stage_2.png"],["textures/blocks/wheat_stage3.png","./wheat_stage_3.png"],["textures/blocks/wheat_stage4.png","./wheat_stage_4.png"],["textures/blocks/wheat_stage5.png","./wheat_stage_5.png"],["textures/blocks/wheat_stage6.png","./wheat_stage_6.png"],["textures/blocks/wheat_stage7.png","./wheat_stage_7.png"],["textures/entity/wither","./wither_boss"],["textures/blocks/black_wool.png","./wool_colored_black.png"],["textures/blocks/blue_wool.png","./wool_colored_blue.png"],["textures/blocks/brown_wool.png","./wool_colored_brown.png"],["textures/blocks/cyan_wool.png","./wool_colored_cyan.png"],["textures/blocks/gray_wool.png","./wool_colored_gray.png"],["textures/blocks/green_wool.png","./wool_colored_green.png"],["textures/blocks/light_blue_wool.png","./wool_colored_light_blue.png"],["textures/blocks/light_gray_wool.png","./wool_colored_silver.png"],["textures/blocks/lime_wool.png","./wool_colored_lime.png"],["textures/blocks/magenta_wool.png","./wool_colored_magenta.png"],["textures/blocks/orange_wool.png","./wool_colored_orange.png"],["textures/blocks/pink_wool.png","./wool_colored_pink.png"],["textures/blocks/purple_wool.png","./wool_colored_purple.png"],["textures/blocks/red_wool.png","./wool_colored_red.png"],["textures/blocks/white_wool.png","./wool_colored_white.png"],["textures/blocks/yellow_wool.png","./wool_colored_yellow.png"],["textures/entity/zombie_pigman.png","./pig/pigzombie.png"],["textures/entity/zombie_villager","./zombie_villager2"],["textures/entity/zombie_villager2/profession","./professions"],["textures/entity/zombie_villager2/profession_level","./levels"],["textures/entity/zombie_villager2/type","./biomes"],["textures/entity/zombie_villager2/zombie_villager.png","./zombie-villager.png"],["textures/entity/zombie_villager2/biomes/desert.png","./biome-desert-zombie.png"],["textures/entity/zombie_villager2/biomes/jungle.png","./biome-jungle-zombie.png"],["textures/entity/zombie_villager2/biomes/plains.png","./biome-plains-zombie.png"],["textures/entity/zombie_villager2/biomes/savanna.png","./biome-savanna-zombie.png"],["textures/entity/zombie_villager2/biomes/snow.png","./biome-snow-zombie.png"],["textures/entity/zombie_villager2/biomes/swamp.png","./biome-swamp-zombie.png"],["textures/entity/zombie_villager2/biomes/taiga.png","./biome-taiga-zombie.png"],["textures/entity/zombie_villager2/levels/diamond.png","./level_diamond.png"],["textures/entity/zombie_villager2/levels/emerald.png","./level_emerald.png"],["textures/entity/zombie_villager2/levels/gold.png","./level_gold.png"],["textures/entity/zombie_villager2/levels/iron.png","./level_iron.png"],["textures/entity/zombie_villager2/levels/stone.png","./level_stone.png"],["textures/entity/zombie_villager2/professions/mason.png","./stonemason.png"]];for(const e of t)yield e}},[]],[Ne,[]],[ze,[]],[Re,[]],[Ue,[]],[$e,[]],[qe,[]],[Qe,[]],[class extends p{async convert(){const t=[];for await(const[e,n,r,i,o]of this.getData()){const a=b.fromPath(e,this.path),s=b.fromPath(n,this.path),c=b.fromPath(r,this.path),u=b.toPath(i,s,this.path),l=b.toPath(o,s,this.path);if(h.a.existsSync(a)&&h.a.existsSync(s)&&h.a.existsSync(c)){b.log("Convert redstone dust");const t=await Me.read(s);t.rotate(90).crop(0,0,t.getWidth()-2,t.getHeight()-2),await t.writeAsync(l),t.composite(await Me.read(c),0,0),t.composite(await Me.read(a),0,0),await t.writeAsync(u)}t.push(e),t.push(n),t.push(r)}return[[v,t]]}async*getData(){yield["textures/blocks/redstone_dust_dot.png","textures/blocks/redstone_dust_line0.png","textures/blocks/redstone_dust_line1.png","./redstone_dust_cross.png","./redstone_dust_line.png"]}},[]],[class extends p{async convert(){const t=[];for await(const[e,n]of this.getData()){const r=b.fromPath(e,this.path),i=b.fromPath(n,this.path);if(h.a.existsSync(r)&&h.a.existsSync(i)){b.log("Convert sheep");const t=await Me.read(r),e=await Me.read(i),n=await Me.create(t.getWidth(),t.getHeight()+e.getHeight());n.composite(t,0,0),n.composite(e,0,t.getHeight()),n.scan(0,0,n.getWidth(),t.getHeight(),(t,e,r)=>{255===n.bitmap.data[r+3]&&(n.bitmap.data[r+3]=1)}),await n.writeAsync(r)}t.push(n)}return[[v,t]]}async*getData(){yield["textures/entity/sheep/sheep.png","textures/entity/sheep/sheep_fur.png"]}},[]],[class extends p{async convert(){for await(const t of this.getData()){const e=b.fromPath(t,this.path);if(h.a.existsSync(e)){b.log(`Convert villager ${t}`);const n=await Me.read(e);n.scan(0,0,n.getWidth(),n.getHeight(),(t,e,r)=>{0===n.bitmap.data[r+3]&&(n.bitmap.data[r]=255,n.bitmap.data[r+1]=255,n.bitmap.data[r+2]=255,n.bitmap.data[r+3]=0)}),await n.writeAsync(e)}}return[]}async*getData(){const t=["textures/entity/villager2/professions/armorer.png","textures/entity/villager2/professions/butcher.png","textures/entity/villager2/professions/cartographer.png","textures/entity/villager2/professions/cleric.png","textures/entity/villager2/professions/farmer.png","textures/entity/villager2/professions/fisherman.png","textures/entity/villager2/professions/fletcher.png","textures/entity/villager2/professions/leatherworker.png","textures/entity/villager2/professions/librarian.png","textures/entity/villager2/professions/nitwit.png","textures/entity/villager2/professions/shepherd.png","textures/entity/villager2/professions/stonemason.png","textures/entity/villager2/professions/toolsmith.png","textures/entity/villager2/professions/unskilled.png","textures/entity/villager2/professions/weaponsmith.png","textures/entity/zombie_villager2/professions/armorer.png","textures/entity/zombie_villager2/professions/butcher.png","textures/entity/zombie_villager2/professions/cartographer.png","textures/entity/zombie_villager2/professions/cleric.png","textures/entity/zombie_villager2/professions/farmer.png","textures/entity/zombie_villager2/professions/fisherman.png","textures/entity/zombie_villager2/professions/fletcher.png","textures/entity/zombie_villager2/professions/leatherworker.png","textures/entity/zombie_villager2/professions/librarian.png","textures/entity/zombie_villager2/professions/nitwit.png","textures/entity/zombie_villager2/professions/shepherd.png","textures/entity/zombie_villager2/professions/stonemason.png","textures/entity/zombie_villager2/professions/toolsmith.png","textures/entity/zombie_villager2/professions/weaponsmith.png"];for(const e of t)yield e}},[]],[Ze,[]],[Xe,[]],[Ge,[]],[Je,[]],[class extends p{async convert(){for await(const[t,e]of this.getData()){const n=b.fromPath(t,this.path),r=b.toPath(e,n,this.path);if(h.a.existsSync(n)){b.log(`Create side rotate ${e}`);const t=await Me.read(n);t.flip(!0,!1),await t.writeAsync(r)}}return[]}async*getData(){const t=[["textures/blocks/dried_kelp_side_a.png","./dried_kelp_side_b.png"],["textures/blocks/seagrass_doubletall_top_a.png","./seagrass_doubletall_top_b.png"],["textures/blocks/seagrass_doubletall_bottom_a.png","./seagrass_doubletall_bottom_b.png"]];for(const e of t)yield e}},[]],[class extends p{async convert(){const t=[];for await(const[e,n,r]of this.getData()){const i=b.fromPath(e,this.path),o=b.toPath(n,i,this.path);if(h.a.existsSync(i)){b.log(`Create tga ${n}`);const a=await Me.read(i),s=tn.a.createTgaBuffer(a.getWidth(),a.getHeight(),a.bitmap.data);await h.a.writeFile(o,s),r||t.push(e)}}return[[v,t]]}async*getData(){const t=[["textures/blocks/cactus_bottom.png","./cactus_bottom.tga"],["textures/blocks/cactus_side.png","./cactus_side.tga"],["textures/blocks/cactus_top.png","./cactus_top.tga"],["textures/blocks/double_plant_fern_bottom.png","./double_plant_fern_bottom.tga"],["textures/blocks/double_plant_fern_top.png","./double_plant_fern_top.tga"],["textures/blocks/double_plant_grass_bottom.png","./double_plant_grass_bottom.tga"],["textures/blocks/double_plant_grass_top.png","./double_plant_grass_top.tga"],["textures/blocks/double_plant_syringa_bottom.png","./double_plant_syringa_bottom.tga"],["textures/blocks/double_plant_syringa_top.png","./double_plant_syringa_top.tga"],["textures/blocks/fern.png","./fern.tga"],["textures/blocks/fern_carried.png","./fern_carried.tga"],["textures/blocks/grass_side.png","./grass_side.tga"],["textures/blocks/grass_side_snowed.png","./grass_side_snowed.tga",!0],["textures/blocks/grindstone_pivot.png","./grindstone_pivot.tga"],["textures/blocks/grindstone_round.png","./grindstone_round.tga"],["textures/blocks/grindstone_side.png","./grindstone_side.tga"],["textures/blocks/kelp_a.png","./kelp_a.tga"],["textures/blocks/kelp_b.png","./kelp_b.tga"],["textures/blocks/kelp_c.png","./kelp_c.tga"],["textures/blocks/kelp_d.png","./kelp_d.tga"],["textures/blocks/kelp_top.png","./kelp_top.tga"],["textures/blocks/kelp_top_bulb.png","./kelp_top_bulb.tga"],["textures/blocks/leaves_acacia.png","./leaves_acacia.tga"],["textures/blocks/leaves_acacia_carried.png","./leaves_acacia_carried.tga"],["textures/blocks/leaves_big_oak.png","./leaves_big_oak.tga"],["textures/blocks/leaves_big_oak_carried.png","./leaves_big_oak_carried.tga"],["textures/blocks/leaves_birch.png","./leaves_birch.tga"],["textures/blocks/leaves_birch_carried.png","./leaves_birch_carried.tga"],["textures/blocks/leaves_jungle.png","./leaves_jungle.tga"],["textures/blocks/leaves_jungle_carried.png","./leaves_jungle_carried.tga"],["textures/blocks/leaves_oak.png","./leaves_oak.tga"],["textures/blocks/leaves_oak_carried.png","./leaves_oak_carried.tga"],["textures/blocks/leaves_spruce.png","./leaves_spruce.tga"],["textures/blocks/leaves_spruce_carried.png","./leaves_spruce_carried.tga"],["textures/blocks/reeds.png","./reeds.tga"],["textures/blocks/scaffolding_bottom.png","./scaffolding_bottom.tga"],["textures/blocks/scaffolding_side.png","./scaffolding_side.tga"],["textures/blocks/scaffolding_top.png","./scaffolding_top.tga"],["textures/blocks/seagrass_doubletall_bottom_a.png","./seagrass_doubletall_bottom_a.tga"],["textures/blocks/seagrass_doubletall_bottom_b.png","./seagrass_doubletall_bottom_b.tga"],["textures/blocks/seagrass_doubletall_top_a.png","./seagrass_doubletall_top_a.tga"],["textures/blocks/seagrass_doubletall_top_b.png","./seagrass_doubletall_top_b.tga"],["textures/blocks/stonecutter2_saw.png","./stonecutter2_saw.tga"],["textures/blocks/tallgrass.png","./tallgrass.tga",!0],["textures/blocks/tallgrass_carried.png","./tallgrass_carried.tga"],["textures/entity/blaze.png","./blaze.tga"],["textures/entity/phantom.png","./phantom.tga"],["textures/entity/banner/banner.png","./banner.tga"],["textures/entity/banner/banner_pattern_illager.png","./banner_pattern_illager.tga"],["textures/entity/cat/allblackcat_tame.png","./allblackcat_tame.tga"],["textures/entity/cat/britishshorthair_tame.png","./britishshorthair_tame.tga"],["textures/entity/cat/calico_tame.png","./calico_tame.tga"],["textures/entity/cat/graytabby_tame.png","./graytabby_tame.tga"],["textures/entity/cat/jellie_tame.png","./jellie_tame.tga"],["textures/entity/cat/ocelot_tame.png","./ocelot_tame.tga"],["textures/entity/cat/persian_tame.png","./persian_tame.tga"],["textures/entity/cat/ragdoll_tame.png","./ragdoll_tame.tga"],["textures/entity/cat/redtabby_tame.png","./redtabby_tame.tga"],["textures/entity/cat/siamesecat_tame.png","./siamesecat_tame.tga"],["textures/entity/cat/tabby_tame.png","./tabby_tame.tga"],["textures/entity/cat/tuxedo_tame.png","./tuxedo_tame.tga"],["textures/entity/cat/white_tame.png","./white_tame.tga"],["textures/entity/dragon/dragon.png","./dragon.tga"],["textures/entity/enderman/enderman.png","./enderman.tga"],["textures/entity/ghast/ghast_shooting.png","./ghast_shooting.tga"],["textures/entity/horse2/armor/horse_armor_leather.png","./horse_armor_leather.tga"],["textures/entity/sheep/sheep.png","./sheep.tga"],["textures/entity/slime/magmacube.png","./magmacube.tga"],["textures/entity/spider/cave_spider.png","./cave_spider.tga"],["textures/entity/spider/spider.png","./spider.tga"],["textures/entity/villager2/professions/armorer.png","./armorer.tga"],["textures/entity/villager2/professions/butcher.png","./butcher.tga"],["textures/entity/villager2/professions/cartographer.png","./cartographer.tga"],["textures/entity/villager2/professions/cleric.png","./cleric.tga"],["textures/entity/villager2/professions/farmer.png","./farmer.tga"],["textures/entity/villager2/professions/fisherman.png","./fisherman.tga"],["textures/entity/villager2/professions/fletcher.png","./fletcher.tga"],["textures/entity/villager2/professions/leatherworker.png","./leatherworker.tga"],["textures/entity/villager2/professions/librarian.png","./librarian.tga"],["textures/entity/villager2/professions/nitwit.png","./nitwit.tga"],["textures/entity/villager2/professions/shepherd.png","./shepherd.tga"],["textures/entity/villager2/professions/stonemason.png","./stonemason.tga"],["textures/entity/villager2/professions/toolsmith.png","./toolsmith.tga"],["textures/entity/villager2/professions/unskilled.png","./unskilled.tga"],["textures/entity/villager2/professions/weaponsmith.png","./weaponsmith.tga"],["textures/entity/wolf/wolf_tame.png","./wolf_tame.tga"],["textures/entity/zombie/drowned.png","./drowned.tga"],["textures/entity/zombie_villager2/professions/armorer.png","./armorer.tga"],["textures/entity/zombie_villager2/professions/butcher.png","./butcher.tga"],["textures/entity/zombie_villager2/professions/cartographer.png","./cartographer.tga"],["textures/entity/zombie_villager2/professions/cleric.png","./cleric.tga"],["textures/entity/zombie_villager2/professions/farmer.png","./farmer.tga"],["textures/entity/zombie_villager2/professions/fisherman.png","./fisherman.tga"],["textures/entity/zombie_villager2/professions/fletcher.png","./fletcher.tga"],["textures/entity/zombie_villager2/professions/leatherworker.png","./leatherworker.tga"],["textures/entity/zombie_villager2/professions/librarian.png","./librarian.tga"],["textures/entity/zombie_villager2/professions/nitwit.png","./nitwit.tga"],["textures/entity/zombie_villager2/professions/shepherd.png","./shepherd.tga"],["textures/entity/zombie_villager2/professions/stonemason.png","./stonemason.tga"],["textures/entity/zombie_villager2/professions/toolsmith.png","./toolsmith.tga"],["textures/entity/zombie_villager2/professions/weaponsmith.png","./weaponsmith.tga"],["textures/items/fireworks_charge.png","./fireworks_charge.tga"],["textures/items/leather_boots.png","./leather_boots.tga"],["textures/items/leather_helmet.png","./leather_helmet.tga"],["textures/items/leather_horse_armor.png","./leather_horse_armor.tga"],["textures/items/leather_leggings.png","./leather_leggings.tga"],["textures/models/armor/leather_1.png","./leather_1.tga"],["textures/models/armor/leather_2.png","./leather_2.tga"]];for(const e of t)yield e}},[]],[He,[]],[y,[]]];var rn=class extends c{async input(){b.log(`Copy folder ${this.path} to ${this.temp}`),await h.a.copy(this.path,this.temp)}async name(){return g.a.basename(this.path)}},on=n(129),an=n.n(on);var sn=class extends c{async input(){b.log(`Extract ${this.path} to ${this.temp}`),await an()(this.path,this.temp)}async name(){return g.a.parse(this.path).name}};var cn=function(t,e){if(!h.a.existsSync(t))throw new a(`The input ${t} does not exists!`);switch(g.a.extname(t).toLowerCase().substr(1)){case"zip":return new sn(t,e);default:return new rn(t,e)}};var un=class extends o{};class ln{constructor(t,e){if(this.constructor===ln)throw new un("Can't instantiate abstract class!");this.path=t,this.temp=e}async getPath(){return this.path}async output(){}}var pn=ln;var fn=class extends pn{async output(){b.log(`Move ${this.temp} to ${this.path}`),await h.a.rename(this.temp,this.path)}},hn=n(130);var dn=class extends pn{async output(){b.log(`Pack ${this.temp} to ${this.path}`),await Object(hn.zip)(this.temp,this.path),b.log(`Clean ${this.temp}`),await h.a.remove(this.temp)}};var gn=function(t,e){if(h.a.existsSync(t))throw new un(`The output ${t} exists already!`);switch(g.a.extname(t).toLowerCase().substr(1)){case"mcpack":case"zip":return new dn(t,e);default:return new fn(t,e)}},mn=n(44),_n=n.n(mn),bn=n(60);var yn=class extends o{};var vn=async function(t=_n.a.tmpdir()){if(b.log("Init temp folder"),!h.a.existsSync(t))throw new yn(`The temp ${t} does not exists!`);return t=b.fromPath(bn.productName,t),await h.a.remove(t),await h.a.mkdirs(t),t};e.default=async function(t,e,n={}){b.setVerbose(n.verbose);const r=await vn(n.temp),i=cn(t,r),o=gn(e,r);await i.input();for await(const t of async function*(t,e){for(const[n,r]of nn)yield new n(t,e,r)}(r,i))await en(...await t.convert());return await o.output(),await o.getPath()}},function(t,e,n){var r=n(66),i=process.cwd,o=null,a=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return o||(o=i.call(process)),o};try{process.cwd()}catch(t){}var s=process.chdir;process.chdir=function(t){o=null,s.call(process,t)},t.exports=function(t){r.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(t){t.lchmod=function(e,n,i){t.open(e,r.O_WRONLY|r.O_SYMLINK,n,function(e,r){e?i&&i(e):t.fchmod(r,n,function(e){t.close(r,function(t){i&&i(e||t)})})})},t.lchmodSync=function(e,n){var i,o=t.openSync(e,r.O_WRONLY|r.O_SYMLINK,n),a=!0;try{i=t.fchmodSync(o,n),a=!1}finally{if(a)try{t.closeSync(o)}catch(t){}else t.closeSync(o)}return i}}(t);t.lutimes||function(t){r.hasOwnProperty("O_SYMLINK")?(t.lutimes=function(e,n,i,o){t.open(e,r.O_SYMLINK,function(e,r){e?o&&o(e):t.futimes(r,n,i,function(e){t.close(r,function(t){o&&o(e||t)})})})},t.lutimesSync=function(e,n,i){var o,a=t.openSync(e,r.O_SYMLINK),s=!0;try{o=t.futimesSync(a,n,i),s=!1}finally{if(s)try{t.closeSync(a)}catch(t){}else t.closeSync(a)}return o}):(t.lutimes=function(t,e,n,r){r&&process.nextTick(r)},t.lutimesSync=function(){})}(t);t.chown=o(t.chown),t.fchown=o(t.fchown),t.lchown=o(t.lchown),t.chmod=n(t.chmod),t.fchmod=n(t.fchmod),t.lchmod=n(t.lchmod),t.chownSync=s(t.chownSync),t.fchownSync=s(t.fchownSync),t.lchownSync=s(t.lchownSync),t.chmodSync=i(t.chmodSync),t.fchmodSync=i(t.fchmodSync),t.lchmodSync=i(t.lchmodSync),t.stat=c(t.stat),t.fstat=c(t.fstat),t.lstat=c(t.lstat),t.statSync=u(t.statSync),t.fstatSync=u(t.fstatSync),t.lstatSync=u(t.lstatSync),t.lchmod||(t.lchmod=function(t,e,n){n&&process.nextTick(n)},t.lchmodSync=function(){});t.lchown||(t.lchown=function(t,e,n,r){r&&process.nextTick(r)},t.lchownSync=function(){});"win32"===a&&(t.rename=(e=t.rename,function(n,r,i){var o=Date.now(),a=0;e(n,r,function s(c){if(c&&("EACCES"===c.code||"EPERM"===c.code)&&Date.now()-o<6e4)return setTimeout(function(){t.stat(r,function(t,o){t&&"ENOENT"===t.code?e(n,r,s):i(c)})},a),void(a<100&&(a+=10));i&&i(c)})}));var e;function n(e){return e?function(n,r,i){return e.call(t,n,r,function(t){l(t)&&(t=null),i&&i.apply(this,arguments)})}:e}function i(e){return e?function(n,r){try{return e.call(t,n,r)}catch(t){if(!l(t))throw t}}:e}function o(e){return e?function(n,r,i,o){return e.call(t,n,r,i,function(t){l(t)&&(t=null),o&&o.apply(this,arguments)})}:e}function s(e){return e?function(n,r,i){try{return e.call(t,n,r,i)}catch(t){if(!l(t))throw t}}:e}function c(e){return e?function(n,r,i){function o(t,e){e&&(e.uid<0&&(e.uid+=4294967296),e.gid<0&&(e.gid+=4294967296)),i&&i.apply(this,arguments)}return"function"==typeof r&&(i=r,r=null),r?e.call(t,n,r,o):e.call(t,n,o)}:e}function u(e){return e?function(n,r){var i=r?e.call(t,n,r):e.call(t,n);return i.uid<0&&(i.uid+=4294967296),i.gid<0&&(i.gid+=4294967296),i}:e}function l(t){if(!t)return!0;if("ENOSYS"===t.code)return!0;var e=!process.getuid||0!==process.getuid();return!(!e||"EINVAL"!==t.code&&"EPERM"!==t.code)}t.read=(f=t.read,function(e,n,r,i,o,a){var s;if(a&&"function"==typeof a){var c=0;s=function(u,l,p){if(u&&"EAGAIN"===u.code&&c<10)return c++,f.call(t,e,n,r,i,o,s);a.apply(this,arguments)}}return f.call(t,e,n,r,i,o,s)}),t.readSync=(p=t.readSync,function(e,n,r,i,o){for(var a=0;;)try{return p.call(t,e,n,r,i,o)}catch(t){if("EAGAIN"===t.code&&a<10){a++;continue}throw t}});var p;var f}},function(t,e,n){var r=n(7).Stream;t.exports=function(t){return{ReadStream:function e(n,i){if(!(this instanceof e))return new e(n,i);r.call(this);var o=this;this.path=n;this.fd=null;this.readable=!0;this.paused=!1;this.flags="r";this.mode=438;this.bufferSize=65536;i=i||{};var a=Object.keys(i);for(var s=0,c=a.length;sthis.end)throw new Error("start must be <= end");this.pos=this.start}if(null!==this.fd)return void process.nextTick(function(){o._read()});t.open(this.path,this.flags,this.mode,function(t,e){if(t)return o.emit("error",t),void(o.readable=!1);o.fd=e,o.emit("open",e),o._read()})},WriteStream:function e(n,i){if(!(this instanceof e))return new e(n,i);r.call(this);this.path=n;this.fd=null;this.writable=!0;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;i=i||{};var o=Object.keys(i);for(var a=0,s=o.length;a= zero");this.pos=this.start}this.busy=!1;this._queue=[];null===this.fd&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}},function(t,e,n){"use strict";t.exports=function(t){if(null===t||"object"!=typeof t)return t;if(t instanceof Object)var e={__proto__:t.__proto__};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}},function(t,e,n){"use strict";const r=n(6),i=n(1),o=n(10).mkdirsSync,a=n(69).utimesMillisSync,s=n(29);function c(t,e,n,o){if(!o.filter||o.filter(e,n))return function(t,e,n,o){const a=(o.dereference?r.statSync:r.lstatSync)(e);if(a.isDirectory())return function(t,e,n,i,o){if(!e)return function(t,e,n,i){return r.mkdirSync(n),l(e,n,i),r.chmodSync(n,t.mode)}(t,n,i,o);if(e&&!e.isDirectory())throw new Error(`Cannot overwrite non-directory '${i}' with directory '${n}'.`);return l(n,i,o)}(a,t,e,n,o);if(a.isFile()||a.isCharacterDevice()||a.isBlockDevice())return function(t,e,n,i,o){return e?function(t,e,n,i){if(i.overwrite)return r.unlinkSync(n),u(t,e,n,i);if(i.errorOnExist)throw new Error(`'${n}' already exists`)}(t,n,i,o):u(t,n,i,o)}(a,t,e,n,o);if(a.isSymbolicLink())return function(t,e,n,o){let a=r.readlinkSync(e);o.dereference&&(a=i.resolve(process.cwd(),a));if(t){let t;try{t=r.readlinkSync(n)}catch(t){if("EINVAL"===t.code||"UNKNOWN"===t.code)return r.symlinkSync(a,n);throw t}if(o.dereference&&(t=i.resolve(process.cwd(),t)),s.isSrcSubdir(a,t))throw new Error(`Cannot copy '${a}' to a subdirectory of itself, '${t}'.`);if(r.statSync(n).isDirectory()&&s.isSrcSubdir(t,a))throw new Error(`Cannot overwrite '${t}' with '${a}'.`);return function(t,e){return r.unlinkSync(e),r.symlinkSync(t,e)}(a,n)}return r.symlinkSync(a,n)}(t,e,n,o)}(t,e,n,o)}function u(t,e,i,o){return"function"==typeof r.copyFileSync?(r.copyFileSync(e,i),r.chmodSync(i,t.mode),o.preserveTimestamps?a(i,t.atime,t.mtime):void 0):function(t,e,i,o){const a=n(141)(65536),s=r.openSync(e,"r"),c=r.openSync(i,"w",t.mode);let u=0;for(;u(function(t,e,n,r){const o=i.join(e,t),a=i.join(n,t),{destStat:u}=s.checkPathsSync(o,a,"copy");return c(u,o,a,r)})(r,t,e,n))}t.exports=function(t,e,n){"function"==typeof n&&(n={filter:n}),(n=n||{}).clobber=!("clobber"in n&&!n.clobber),n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&"ia32"===process.arch&&console.warn("fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269");const{srcStat:a,destStat:u}=s.checkPathsSync(t,e,"copy");return s.checkParentPathsSync(t,a,e,"copy"),function(t,e,n,a){if(a.filter&&!a.filter(e,n))return;const s=i.dirname(n);return r.existsSync(s)||o(s),c(t,e,n,a)}(u,t,e,n)}},function(t,e,n){"use strict";const r=n(6),i=n(1),o=n(68).invalidWin32Path,a=parseInt("0777",8);t.exports=function t(e,n,s,c){if("function"==typeof n?(s=n,n={}):n&&"object"==typeof n||(n={mode:n}),"win32"===process.platform&&o(e)){const t=new Error(e+" contains invalid WIN32 path characters.");return t.code="EINVAL",s(t)}let u=n.mode;const l=n.fs||r;void 0===u&&(u=a&~process.umask()),c||(c=null),s=s||function(){},e=i.resolve(e),l.mkdir(e,u,r=>{if(!r)return s(null,c=c||e);switch(r.code){case"ENOENT":if(i.dirname(e)===e)return s(r);t(i.dirname(e),n,(r,i)=>{r?s(r,i):t(e,n,s,i)});break;default:l.stat(e,(t,e)=>{t||!e.isDirectory()?s(r,c):s(null,c)})}})}},function(t,e,n){"use strict";const r=n(6),i=n(1),o=n(68).invalidWin32Path,a=parseInt("0777",8);t.exports=function t(e,n,s){n&&"object"==typeof n||(n={mode:n});let c=n.mode;const u=n.fs||r;if("win32"===process.platform&&o(e)){const t=new Error(e+" contains invalid WIN32 path characters.");throw t.code="EINVAL",t}void 0===c&&(c=a&~process.umask()),s||(s=null),e=i.resolve(e);try{u.mkdirSync(e,c),s=s||e}catch(r){if("ENOENT"===r.code){if(i.dirname(e)===e)throw r;s=t(i.dirname(e),n,s),t(e,n,s)}else{let t;try{t=u.statSync(e)}catch(t){throw r}if(!t.isDirectory())throw r}}return s}},function(t,e,n){"use strict";t.exports=function(t){if("function"==typeof Buffer.allocUnsafe)try{return Buffer.allocUnsafe(t)}catch(e){return new Buffer(t)}return new Buffer(t)}},function(t,e,n){"use strict";const r=n(6),i=n(1),o=n(10).mkdirs,a=n(13).pathExists,s=n(69).utimesMillis,c=n(29);function u(t,e,n,r,s){const c=i.dirname(n);a(c,(i,a)=>i?s(i):a?p(t,e,n,r,s):void o(c,i=>i?s(i):p(t,e,n,r,s)))}function l(t,e,n,r,i,o){Promise.resolve(i.filter(n,r)).then(a=>a?t(e,n,r,i,o):o(),t=>o(t))}function p(t,e,n,r,i){return r.filter?l(f,t,e,n,r,i):f(t,e,n,r,i)}function f(t,e,n,i,o){(i.dereference?r.stat:r.lstat)(e,(a,s)=>a?o(a):s.isDirectory()?function(t,e,n,i,o,a){if(!e)return function(t,e,n,i,o){r.mkdir(n,a=>{if(a)return o(a);g(e,n,i,e=>e?o(e):r.chmod(n,t.mode,o))})}(t,n,i,o,a);if(e&&!e.isDirectory())return a(new Error(`Cannot overwrite non-directory '${i}' with directory '${n}'.`));return g(n,i,o,a)}(s,t,e,n,i,o):s.isFile()||s.isCharacterDevice()||s.isBlockDevice()?function(t,e,n,i,o,a){return e?function(t,e,n,i,o){if(!i.overwrite)return i.errorOnExist?o(new Error(`'${n}' already exists`)):o();r.unlink(n,r=>r?o(r):h(t,e,n,i,o))}(t,n,i,o,a):h(t,n,i,o,a)}(s,t,e,n,i,o):s.isSymbolicLink()?_(t,e,n,i,o):void 0)}function h(t,e,n,i,o){return"function"==typeof r.copyFile?r.copyFile(e,n,e=>e?o(e):d(t,n,i,o)):function(t,e,n,i,o){const a=r.createReadStream(e);a.on("error",t=>o(t)).once("open",()=>{const e=r.createWriteStream(n,{mode:t.mode});e.on("error",t=>o(t)).on("open",()=>a.pipe(e)).once("close",()=>d(t,n,i,o))})}(t,e,n,i,o)}function d(t,e,n,i){r.chmod(e,t.mode,r=>r?i(r):n.preserveTimestamps?s(e,t.atime,t.mtime,i):i())}function g(t,e,n,i){r.readdir(t,(r,o)=>r?i(r):m(o,t,e,n,i))}function m(t,e,n,r,o){const a=t.pop();return a?function(t,e,n,r,o,a){const s=i.join(n,e),u=i.join(r,e);c.checkPaths(s,u,"copy",(e,i)=>{if(e)return a(e);const{destStat:c}=i;p(c,s,u,o,e=>e?a(e):m(t,n,r,o,a))})}(t,a,e,n,r,o):o()}function _(t,e,n,o,a){r.readlink(e,(e,s)=>e?a(e):(o.dereference&&(s=i.resolve(process.cwd(),s)),t?void r.readlink(n,(e,u)=>e?"EINVAL"===e.code||"UNKNOWN"===e.code?r.symlink(s,n,a):a(e):(o.dereference&&(u=i.resolve(process.cwd(),u)),c.isSrcSubdir(s,u)?a(new Error(`Cannot copy '${s}' to a subdirectory of itself, '${u}'.`)):t.isDirectory()&&c.isSrcSubdir(u,s)?a(new Error(`Cannot overwrite '${u}' with '${s}'.`)):function(t,e,n){r.unlink(e,i=>i?n(i):r.symlink(t,e,n))}(s,n,a))):r.symlink(s,n,a)))}t.exports=function(t,e,n,r){"function"!=typeof n||r?"function"==typeof n&&(n={filter:n}):(r=n,n={}),r=r||function(){},(n=n||{}).clobber=!("clobber"in n&&!n.clobber),n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&"ia32"===process.arch&&console.warn("fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269"),c.checkPaths(t,e,"copy",(i,o)=>{if(i)return r(i);const{srcStat:a,destStat:s}=o;c.checkParentPaths(t,a,e,"copy",i=>i?r(i):n.filter?l(u,s,t,e,n,r):u(s,t,e,n,r))})}},function(t,e,n){"use strict";const r=n(8).fromCallback,i=n(6),o=n(1),a=n(10),s=n(30),c=r(function(t,e){e=e||function(){},i.readdir(t,(n,r)=>{if(n)return a.mkdirs(t,e);r=r.map(e=>o.join(t,e)),function t(){const n=r.pop();if(!n)return e();s.remove(n,n=>{if(n)return e(n);t()})}()})});function u(t){let e;try{e=i.readdirSync(t)}catch(e){return a.mkdirsSync(t)}e.forEach(e=>{e=o.join(t,e),s.removeSync(e)})}t.exports={emptyDirSync:u,emptydirSync:u,emptyDir:c,emptydir:c}},function(t,e,n){"use strict";const r=n(6),i=n(1),o=n(20),a="win32"===process.platform;function s(t){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(e=>{t[e]=t[e]||r[e],t[e+="Sync"]=t[e]||r[e]}),t.maxBusyTries=t.maxBusyTries||3}function c(t,e,n){let r=0;"function"==typeof e&&(n=e,e={}),o(t,"rimraf: missing path"),o.strictEqual(typeof t,"string","rimraf: path should be a string"),o.strictEqual(typeof n,"function","rimraf: callback function required"),o(e,"rimraf: invalid options argument provided"),o.strictEqual(typeof e,"object","rimraf: options should be object"),s(e),u(t,e,function i(o){if(o){if(("EBUSY"===o.code||"ENOTEMPTY"===o.code||"EPERM"===o.code)&&ru(t,e,i),100*r)}"ENOENT"===o.code&&(o=null)}n(o)})}function u(t,e,n){o(t),o(e),o("function"==typeof n),e.lstat(t,(r,i)=>r&&"ENOENT"===r.code?n(null):r&&"EPERM"===r.code&&a?l(t,e,r,n):i&&i.isDirectory()?f(t,e,r,n):void e.unlink(t,r=>{if(r){if("ENOENT"===r.code)return n(null);if("EPERM"===r.code)return a?l(t,e,r,n):f(t,e,r,n);if("EISDIR"===r.code)return f(t,e,r,n)}return n(r)}))}function l(t,e,n,r){o(t),o(e),o("function"==typeof r),n&&o(n instanceof Error),e.chmod(t,438,i=>{i?r("ENOENT"===i.code?null:n):e.stat(t,(i,o)=>{i?r("ENOENT"===i.code?null:n):o.isDirectory()?f(t,e,n,r):e.unlink(t,r)})})}function p(t,e,n){let r;o(t),o(e),n&&o(n instanceof Error);try{e.chmodSync(t,438)}catch(t){if("ENOENT"===t.code)return;throw n}try{r=e.statSync(t)}catch(t){if("ENOENT"===t.code)return;throw n}r.isDirectory()?d(t,e,n):e.unlinkSync(t)}function f(t,e,n,r){o(t),o(e),n&&o(n instanceof Error),o("function"==typeof r),e.rmdir(t,a=>{!a||"ENOTEMPTY"!==a.code&&"EEXIST"!==a.code&&"EPERM"!==a.code?a&&"ENOTDIR"===a.code?r(n):r(a):function(t,e,n){o(t),o(e),o("function"==typeof n),e.readdir(t,(r,o)=>{if(r)return n(r);let a,s=o.length;if(0===s)return e.rmdir(t,n);o.forEach(r=>{c(i.join(t,r),e,r=>{if(!a)return r?n(a=r):void(0==--s&&e.rmdir(t,n))})})})}(t,e,r)})}function h(t,e){let n;s(e=e||{}),o(t,"rimraf: missing path"),o.strictEqual(typeof t,"string","rimraf: path should be a string"),o(e,"rimraf: missing options"),o.strictEqual(typeof e,"object","rimraf: options should be object");try{n=e.lstatSync(t)}catch(n){if("ENOENT"===n.code)return;"EPERM"===n.code&&a&&p(t,e,n)}try{n&&n.isDirectory()?d(t,e,null):e.unlinkSync(t)}catch(n){if("ENOENT"===n.code)return;if("EPERM"===n.code)return a?p(t,e,n):d(t,e,n);if("EISDIR"!==n.code)throw n;d(t,e,n)}}function d(t,e,n){o(t),o(e),n&&o(n instanceof Error);try{e.rmdirSync(t)}catch(r){if("ENOTDIR"===r.code)throw n;if("ENOTEMPTY"===r.code||"EEXIST"===r.code||"EPERM"===r.code)!function(t,e){if(o(t),o(e),e.readdirSync(t).forEach(n=>h(i.join(t,n),e)),!a){const n=e.rmdirSync(t,e);return n}{const n=Date.now();do{try{const n=e.rmdirSync(t,e);return n}catch(t){}}while(Date.now()-n<500)}}(t,e);else if("ENOENT"!==r.code)throw r}}t.exports=c,c.sync=h},function(t,e,n){"use strict";const r=n(146),i=n(147),o=n(148);t.exports={createFile:r.createFile,createFileSync:r.createFileSync,ensureFile:r.createFile,ensureFileSync:r.createFileSync,createLink:i.createLink,createLinkSync:i.createLinkSync,ensureLink:i.createLink,ensureLinkSync:i.createLinkSync,createSymlink:o.createSymlink,createSymlinkSync:o.createSymlinkSync,ensureSymlink:o.createSymlink,ensureSymlinkSync:o.createSymlinkSync}},function(t,e,n){"use strict";const r=n(8).fromCallback,i=n(1),o=n(6),a=n(10),s=n(13).pathExists;t.exports={createFile:r(function(t,e){function n(){o.writeFile(t,"",t=>{if(t)return e(t);e()})}o.stat(t,(r,o)=>{if(!r&&o.isFile())return e();const c=i.dirname(t);s(c,(t,r)=>t?e(t):r?n():void a.mkdirs(c,t=>{if(t)return e(t);n()}))})}),createFileSync:function(t){let e;try{e=o.statSync(t)}catch(t){}if(e&&e.isFile())return;const n=i.dirname(t);o.existsSync(n)||a.mkdirsSync(n),o.writeFileSync(t,"")}}},function(t,e,n){"use strict";const r=n(8).fromCallback,i=n(1),o=n(6),a=n(10),s=n(13).pathExists;t.exports={createLink:r(function(t,e,n){function r(t,e){o.link(t,e,t=>{if(t)return n(t);n(null)})}s(e,(c,u)=>c?n(c):u?n(null):void o.lstat(t,o=>{if(o)return o.message=o.message.replace("lstat","ensureLink"),n(o);const c=i.dirname(e);s(c,(i,o)=>i?n(i):o?r(t,e):void a.mkdirs(c,i=>{if(i)return n(i);r(t,e)}))}))}),createLinkSync:function(t,e){if(o.existsSync(e))return;try{o.lstatSync(t)}catch(t){throw t.message=t.message.replace("lstat","ensureLink"),t}const n=i.dirname(e);return o.existsSync(n)?o.linkSync(t,e):(a.mkdirsSync(n),o.linkSync(t,e))}}},function(t,e,n){"use strict";const r=n(8).fromCallback,i=n(1),o=n(6),a=n(10),s=a.mkdirs,c=a.mkdirsSync,u=n(149),l=u.symlinkPaths,p=u.symlinkPathsSync,f=n(150),h=f.symlinkType,d=f.symlinkTypeSync,g=n(13).pathExists;t.exports={createSymlink:r(function(t,e,n,r){r="function"==typeof n?n:r,n="function"!=typeof n&&n,g(e,(a,c)=>a?r(a):c?r(null):void l(t,e,(a,c)=>{if(a)return r(a);t=c.toDst,h(c.toCwd,n,(n,a)=>{if(n)return r(n);const c=i.dirname(e);g(c,(n,i)=>n?r(n):i?o.symlink(t,e,a,r):void s(c,n=>{if(n)return r(n);o.symlink(t,e,a,r)}))})}))}),createSymlinkSync:function(t,e,n){if(o.existsSync(e))return;const r=p(t,e);t=r.toDst,n=d(r.toCwd,n);const a=i.dirname(e);return o.existsSync(a)?o.symlinkSync(t,e,n):(c(a),o.symlinkSync(t,e,n))}}},function(t,e,n){"use strict";const r=n(1),i=n(6),o=n(13).pathExists;t.exports={symlinkPaths:function(t,e,n){if(r.isAbsolute(t))return i.lstat(t,e=>e?(e.message=e.message.replace("lstat","ensureSymlink"),n(e)):n(null,{toCwd:t,toDst:t}));{const a=r.dirname(e),s=r.join(a,t);return o(s,(e,o)=>e?n(e):o?n(null,{toCwd:s,toDst:t}):i.lstat(t,e=>e?(e.message=e.message.replace("lstat","ensureSymlink"),n(e)):n(null,{toCwd:t,toDst:r.relative(a,t)})))}},symlinkPathsSync:function(t,e){let n;if(r.isAbsolute(t)){if(!(n=i.existsSync(t)))throw new Error("absolute srcpath does not exist");return{toCwd:t,toDst:t}}{const o=r.dirname(e),a=r.join(o,t);if(n=i.existsSync(a))return{toCwd:a,toDst:t};if(!(n=i.existsSync(t)))throw new Error("relative srcpath does not exist");return{toCwd:t,toDst:r.relative(o,t)}}}}},function(t,e,n){"use strict";const r=n(6);t.exports={symlinkType:function(t,e,n){if(n="function"==typeof e?e:n,e="function"!=typeof e&&e)return n(null,e);r.lstat(t,(t,r)=>{if(t)return n(null,"file");e=r&&r.isDirectory()?"dir":"file",n(null,e)})},symlinkTypeSync:function(t,e){let n;if(e)return e;try{n=r.lstatSync(t)}catch(t){return"file"}return n&&n.isDirectory()?"dir":"file"}}},function(t,e,n){"use strict";const r=n(8).fromCallback,i=n(49);i.outputJson=r(n(153)),i.outputJsonSync=n(154),i.outputJSON=i.outputJson,i.outputJSONSync=i.outputJsonSync,i.writeJSON=i.writeJson,i.writeJSONSync=i.writeJsonSync,i.readJSON=i.readJson,i.readJSONSync=i.readJsonSync,t.exports=i},function(t,e,n){var r;try{r=n(6)}catch(t){r=n(5)}function i(t,e){var n,r="\n";return"object"==typeof e&&null!==e&&(e.spaces&&(n=e.spaces),e.EOL&&(r=e.EOL)),JSON.stringify(t,e?e.replacer:null,n).replace(/\n/g,r)+r}function o(t){return Buffer.isBuffer(t)&&(t=t.toString("utf8")),t=t.replace(/^\uFEFF/,"")}var a={readFile:function(t,e,n){null==n&&(n=e,e={}),"string"==typeof e&&(e={encoding:e});var i=(e=e||{}).fs||r,a=!0;"throws"in e&&(a=e.throws),i.readFile(t,e,function(r,i){if(r)return n(r);var s;i=o(i);try{s=JSON.parse(i,e?e.reviver:null)}catch(e){return a?(e.message=t+": "+e.message,n(e)):n(null,null)}n(null,s)})},readFileSync:function(t,e){"string"==typeof(e=e||{})&&(e={encoding:e});var n=e.fs||r,i=!0;"throws"in e&&(i=e.throws);try{var a=n.readFileSync(t,e);return a=o(a),JSON.parse(a,e.reviver)}catch(e){if(i)throw e.message=t+": "+e.message,e;return null}},writeFile:function(t,e,n,o){null==o&&(o=n,n={});var a=(n=n||{}).fs||r,s="";try{s=i(e,n)}catch(t){return void(o&&o(t,null))}a.writeFile(t,s,n,o)},writeFileSync:function(t,e,n){var o=(n=n||{}).fs||r,a=i(e,n);return o.writeFileSync(t,a,n)}};t.exports=a},function(t,e,n){"use strict";const r=n(1),i=n(10),o=n(13).pathExists,a=n(49);t.exports=function(t,e,n,s){"function"==typeof n&&(s=n,n={});const c=r.dirname(t);o(c,(r,o)=>r?s(r):o?a.writeJson(t,e,n,s):void i.mkdirs(c,r=>{if(r)return s(r);a.writeJson(t,e,n,s)}))}},function(t,e,n){"use strict";const r=n(6),i=n(1),o=n(10),a=n(49);t.exports=function(t,e,n){const s=i.dirname(t);r.existsSync(s)||o.mkdirsSync(s),a.writeJsonSync(t,e,n)}},function(t,e,n){"use strict";t.exports={moveSync:n(156)}},function(t,e,n){"use strict";const r=n(6),i=n(1),o=n(67).copySync,a=n(30).removeSync,s=n(10).mkdirpSync,c=n(29);function u(t,e,n){try{r.renameSync(t,e)}catch(r){if("EXDEV"!==r.code)throw r;return function(t,e,n){return o(t,e,{overwrite:n,errorOnExist:!0}),a(t)}(t,e,n)}}t.exports=function(t,e,n){const o=(n=n||{}).overwrite||n.clobber||!1,{srcStat:l}=c.checkPathsSync(t,e,"move");return c.checkParentPathsSync(t,l,e,"move"),s(i.dirname(e)),function(t,e,n){if(n)return a(e),u(t,e,n);if(r.existsSync(e))throw new Error("dest already exists.");return u(t,e,n)}(t,e,o)}},function(t,e,n){"use strict";const r=n(8).fromCallback;t.exports={move:r(n(158))}},function(t,e,n){"use strict";const r=n(6),i=n(1),o=n(70).copy,a=n(30).remove,s=n(10).mkdirp,c=n(13).pathExists,u=n(29);function l(t,e,n,i){r.rename(t,e,r=>r?"EXDEV"!==r.code?i(r):function(t,e,n,r){o(t,e,{overwrite:n,errorOnExist:!0},e=>e?r(e):a(t,r))}(t,e,n,i):i())}t.exports=function(t,e,n,r){"function"==typeof n&&(r=n,n={});const o=n.overwrite||n.clobber||!1;u.checkPaths(t,e,"move",(n,p)=>{if(n)return r(n);const{srcStat:f}=p;u.checkParentPaths(t,f,e,"move",n=>{if(n)return r(n);s(i.dirname(e),n=>n?r(n):function(t,e,n,r){if(n)return a(e,i=>i?r(i):l(t,e,n,r));c(e,(i,o)=>i?r(i):o?r(new Error("dest already exists.")):l(t,e,n,r))}(t,e,o,r))})})}},function(t,e,n){"use strict";const r=n(8).fromCallback,i=n(6),o=n(1),a=n(10),s=n(13).pathExists;t.exports={outputFile:r(function(t,e,n,r){"function"==typeof n&&(r=n,n="utf8");const c=o.dirname(t);s(c,(o,s)=>o?r(o):s?i.writeFile(t,e,n,r):void a.mkdirs(c,o=>{if(o)return r(o);i.writeFile(t,e,n,r)}))}),outputFileSync:function(t,...e){const n=o.dirname(t);if(i.existsSync(n))return i.writeFileSync(t,...e);a.mkdirsSync(n),i.writeFileSync(t,...e)}}},function(t,e,n){"use strict";function r(t,e){if(!(t&&e&&t.length&&e.length))throw new Error("Bad alphabet");this.srcAlphabet=t,this.dstAlphabet=e}r.prototype.convert=function(t){var e,n,r,i={},o=this.srcAlphabet.length,a=this.dstAlphabet.length,s=t.length,c="string"==typeof t?"":[];if(!this.isValid(t))throw new Error('Number "'+t+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return t;for(e=0;e=a?(i[r++]=parseInt(n/a,10),n%=a):r>0&&(i[r++]=0);s=r,c=this.dstAlphabet.slice(n,n+1).concat(c)}while(0!==r);return c},r.prototype.isValid=function(t){for(var e=0;e0&&218!==r;){if(255!==t.nextUInt8())throw new Error("Invalid JPEG section offset");n=(r=t.nextUInt8())>=208&&r<=217||218===r?0:t.nextUInt16()-2,e(r,t.branch(0,n)),t.skip(n)}},getSizeFromSOFSection:function(t){return t.skip(1),{height:t.nextUInt16(),width:t.nextUInt16()}},getSectionName:function(t){var e,n;switch(t){case 216:e="SOI";break;case 196:e="DHT";break;case 219:e="DQT";break;case 221:e="DRI";break;case 218:e="SOS";break;case 254:e="COM";break;case 217:e="EOI";break;default:t>=224&&t<=239?(e="APP",n=t-224):t>=192&&t<=207&&196!==t&&200!==t&&204!==t?(e="SOF",n=t-192):t>=208&&t<=215&&(e="RST",n=t-208)}var r={name:e};return"number"==typeof n&&(r.index=n),r}}},function(t,e,n){var r=n(73),i=n(167),o=[{section:r.GPSIFD,type:2,name:"GPSLatitude",refType:1,refName:"GPSLatitudeRef",posVal:"N"},{section:r.GPSIFD,type:4,name:"GPSLongitude",refType:3,refName:"GPSLongitudeRef",posVal:"E"}],a=[{section:r.SubIFD,type:306,name:"ModifyDate"},{section:r.SubIFD,type:36867,name:"DateTimeOriginal"},{section:r.SubIFD,type:36868,name:"CreateDate"},{section:r.SubIFD,type:306,name:"ModifyDate"}];t.exports={castDegreeValues:function(t,e){o.forEach(function(n){var r=t(n);if(r){var i=t({section:n.section,type:n.refType,name:n.refName})===n.posVal?1:-1,o=(r[0]+r[1]/60+r[2]/3600)*i;e(n,o)}})},castDateValues:function(t,e){a.forEach(function(n){var r=t(n);if(r){var o=i.parseExifDate(r);void 0!==o&&e(n,o)}})},simplifyValue:function(t,e){return Array.isArray(t)&&1===(t=t.map(function(t){return 10===e||5===e?t[0]/t[1]:t})).length&&(t=t[0]),t}}},function(t,e){function n(t){return parseInt(t,10)}var r=3600,i=60;function o(t,e){t=t.map(n),e=e.map(n);var r=t[0],i=t[1]-1,o=t[2],a=e[0],s=e[1],c=e[2];return Date.UTC(r,i,o,a,s,c,0)/1e3}function a(t){var e=t.substr(0,10).split("-"),a=t.substr(11,8).split(":"),s=t.substr(19,6).split(":").map(n),c=s[0]*r+s[1]*i,u=o(e,a);if("number"==typeof(u-=c)&&!isNaN(u))return u}function s(t){var e=t.split(" "),n=o(e[0].split(":"),e[1].split(":"));if("number"==typeof n&&!isNaN(n))return n}t.exports={parseDateWithSpecFormat:s,parseDateWithTimezoneFormat:a,parseExifDate:function(t){var e=19===t.length&&":"===t.charAt(4);return 25===t.length&&"T"===t.charAt(10)?a(t):e?s(t):void 0}}},function(t,e){t.exports={exif:{1:"InteropIndex",2:"InteropVersion",11:"ProcessingSoftware",254:"SubfileType",255:"OldSubfileType",256:"ImageWidth",257:"ImageHeight",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",263:"Thresholding",264:"CellWidth",265:"CellLength",266:"FillOrder",269:"DocumentName",270:"ImageDescription",271:"Make",272:"Model",273:"StripOffsets",274:"Orientation",277:"SamplesPerPixel",278:"RowsPerStrip",279:"StripByteCounts",280:"MinSampleValue",281:"MaxSampleValue",282:"XResolution",283:"YResolution",284:"PlanarConfiguration",285:"PageName",286:"XPosition",287:"YPosition",288:"FreeOffsets",289:"FreeByteCounts",290:"GrayResponseUnit",291:"GrayResponseCurve",292:"T4Options",293:"T6Options",296:"ResolutionUnit",297:"PageNumber",300:"ColorResponseUnit",301:"TransferFunction",305:"Software",306:"ModifyDate",315:"Artist",316:"HostComputer",317:"Predictor",318:"WhitePoint",319:"PrimaryChromaticities",320:"ColorMap",321:"HalftoneHints",322:"TileWidth",323:"TileLength",324:"TileOffsets",325:"TileByteCounts",326:"BadFaxLines",327:"CleanFaxData",328:"ConsecutiveBadFaxLines",330:"SubIFD",332:"InkSet",333:"InkNames",334:"NumberofInks",336:"DotRange",337:"TargetPrinter",338:"ExtraSamples",339:"SampleFormat",340:"SMinSampleValue",341:"SMaxSampleValue",342:"TransferRange",343:"ClipPath",344:"XClipPathUnits",345:"YClipPathUnits",346:"Indexed",347:"JPEGTables",351:"OPIProxy",400:"GlobalParametersIFD",401:"ProfileType",402:"FaxProfile",403:"CodingMethods",404:"VersionYear",405:"ModeNumber",433:"Decode",434:"DefaultImageColor",435:"T82Options",437:"JPEGTables",512:"JPEGProc",513:"ThumbnailOffset",514:"ThumbnailLength",515:"JPEGRestartInterval",517:"JPEGLosslessPredictors",518:"JPEGPointTransforms",519:"JPEGQTables",520:"JPEGDCTables",521:"JPEGACTables",529:"YCbCrCoefficients",530:"YCbCrSubSampling",531:"YCbCrPositioning",532:"ReferenceBlackWhite",559:"StripRowCounts",700:"ApplicationNotes",999:"USPTOMiscellaneous",4096:"RelatedImageFileFormat",4097:"RelatedImageWidth",4098:"RelatedImageHeight",18246:"Rating",18247:"XP_DIP_XML",18248:"StitchInfo",18249:"RatingPercent",32781:"ImageID",32931:"WangTag1",32932:"WangAnnotation",32933:"WangTag3",32934:"WangTag4",32995:"Matteing",32996:"DataType",32997:"ImageDepth",32998:"TileDepth",33405:"Model2",33421:"CFARepeatPatternDim",33422:"CFAPattern2",33423:"BatteryLevel",33424:"KodakIFD",33432:"Copyright",33434:"ExposureTime",33437:"FNumber",33445:"MDFileTag",33446:"MDScalePixel",33447:"MDColorTable",33448:"MDLabName",33449:"MDSampleInfo",33450:"MDPrepDate",33451:"MDPrepTime",33452:"MDFileUnits",33550:"PixelScale",33589:"AdventScale",33590:"AdventRevision",33628:"UIC1Tag",33629:"UIC2Tag",33630:"UIC3Tag",33631:"UIC4Tag",33723:"IPTC-NAA",33918:"IntergraphPacketData",33919:"IntergraphFlagRegisters",33920:"IntergraphMatrix",33921:"INGRReserved",33922:"ModelTiePoint",34016:"Site",34017:"ColorSequence",34018:"IT8Header",34019:"RasterPadding",34020:"BitsPerRunLength",34021:"BitsPerExtendedRunLength",34022:"ColorTable",34023:"ImageColorIndicator",34024:"BackgroundColorIndicator",34025:"ImageColorValue",34026:"BackgroundColorValue",34027:"PixelIntensityRange",34028:"TransparencyIndicator",34029:"ColorCharacterization",34030:"HCUsage",34031:"TrapIndicator",34032:"CMYKEquivalent",34118:"SEMInfo",34152:"AFCP_IPTC",34232:"PixelMagicJBIGOptions",34264:"ModelTransform",34306:"WB_GRGBLevels",34310:"LeafData",34377:"PhotoshopSettings",34665:"ExifOffset",34675:"ICC_Profile",34687:"TIFF_FXExtensions",34688:"MultiProfiles",34689:"SharedData",34690:"T88Options",34732:"ImageLayer",34735:"GeoTiffDirectory",34736:"GeoTiffDoubleParams",34737:"GeoTiffAsciiParams",34850:"ExposureProgram",34852:"SpectralSensitivity",34853:"GPSInfo",34855:"ISO",34856:"Opto-ElectricConvFactor",34857:"Interlace",34858:"TimeZoneOffset",34859:"SelfTimerMode",34864:"SensitivityType",34865:"StandardOutputSensitivity",34866:"RecommendedExposureIndex",34867:"ISOSpeed",34868:"ISOSpeedLatitudeyyy",34869:"ISOSpeedLatitudezzz",34908:"FaxRecvParams",34909:"FaxSubAddress",34910:"FaxRecvTime",34954:"LeafSubIFD",36864:"ExifVersion",36867:"DateTimeOriginal",36868:"CreateDate",37121:"ComponentsConfiguration",37122:"CompressedBitsPerPixel",37377:"ShutterSpeedValue",37378:"ApertureValue",37379:"BrightnessValue",37380:"ExposureCompensation",37381:"MaxApertureValue",37382:"SubjectDistance",37383:"MeteringMode",37384:"LightSource",37385:"Flash",37386:"FocalLength",37387:"FlashEnergy",37388:"SpatialFrequencyResponse",37389:"Noise",37390:"FocalPlaneXResolution",37391:"FocalPlaneYResolution",37392:"FocalPlaneResolutionUnit",37393:"ImageNumber",37394:"SecurityClassification",37395:"ImageHistory",37396:"SubjectArea",37397:"ExposureIndex",37398:"TIFF-EPStandardID",37399:"SensingMethod",37434:"CIP3DataFile",37435:"CIP3Sheet",37436:"CIP3Side",37439:"StoNits",37500:"MakerNote",37510:"UserComment",37520:"SubSecTime",37521:"SubSecTimeOriginal",37522:"SubSecTimeDigitized",37679:"MSDocumentText",37680:"MSPropertySetStorage",37681:"MSDocumentTextPosition",37724:"ImageSourceData",40091:"XPTitle",40092:"XPComment",40093:"XPAuthor",40094:"XPKeywords",40095:"XPSubject",40960:"FlashpixVersion",40961:"ColorSpace",40962:"ExifImageWidth",40963:"ExifImageHeight",40964:"RelatedSoundFile",40965:"InteropOffset",41483:"FlashEnergy",41484:"SpatialFrequencyResponse",41485:"Noise",41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:"FocalPlaneResolutionUnit",41489:"ImageNumber",41490:"SecurityClassification",41491:"ImageHistory",41492:"SubjectLocation",41493:"ExposureIndex",41494:"TIFF-EPStandardID",41495:"SensingMethod",41728:"FileSource",41729:"SceneType",41730:"CFAPattern",41985:"CustomRendered",41986:"ExposureMode",41987:"WhiteBalance",41988:"DigitalZoomRatio",41989:"FocalLengthIn35mmFormat",41990:"SceneCaptureType",41991:"GainControl",41992:"Contrast",41993:"Saturation",41994:"Sharpness",41995:"DeviceSettingDescription",41996:"SubjectDistanceRange",42016:"ImageUniqueID",42032:"OwnerName",42033:"SerialNumber",42034:"LensInfo",42035:"LensMake",42036:"LensModel",42037:"LensSerialNumber",42112:"GDALMetadata",42113:"GDALNoData",42240:"Gamma",44992:"ExpandSoftware",44993:"ExpandLens",44994:"ExpandFilm",44995:"ExpandFilterLens",44996:"ExpandScanner",44997:"ExpandFlashLamp",48129:"PixelFormat",48130:"Transformation",48131:"Uncompressed",48132:"ImageType",48256:"ImageWidth",48257:"ImageHeight",48258:"WidthResolution",48259:"HeightResolution",48320:"ImageOffset",48321:"ImageByteCount",48322:"AlphaOffset",48323:"AlphaByteCount",48324:"ImageDataDiscard",48325:"AlphaDataDiscard",50215:"OceScanjobDesc",50216:"OceApplicationSelector",50217:"OceIDNumber",50218:"OceImageLogic",50255:"Annotations",50341:"PrintIM",50560:"USPTOOriginalContentType",50706:"DNGVersion",50707:"DNGBackwardVersion",50708:"UniqueCameraModel",50709:"LocalizedCameraModel",50710:"CFAPlaneColor",50711:"CFALayout",50712:"LinearizationTable",50713:"BlackLevelRepeatDim",50714:"BlackLevel",50715:"BlackLevelDeltaH",50716:"BlackLevelDeltaV",50717:"WhiteLevel",50718:"DefaultScale",50719:"DefaultCropOrigin",50720:"DefaultCropSize",50721:"ColorMatrix1",50722:"ColorMatrix2",50723:"CameraCalibration1",50724:"CameraCalibration2",50725:"ReductionMatrix1",50726:"ReductionMatrix2",50727:"AnalogBalance",50728:"AsShotNeutral",50729:"AsShotWhiteXY",50730:"BaselineExposure",50731:"BaselineNoise",50732:"BaselineSharpness",50733:"BayerGreenSplit",50734:"LinearResponseLimit",50735:"CameraSerialNumber",50736:"DNGLensInfo",50737:"ChromaBlurRadius",50738:"AntiAliasStrength",50739:"ShadowScale",50740:"DNGPrivateData",50741:"MakerNoteSafety",50752:"RawImageSegmentation",50778:"CalibrationIlluminant1",50779:"CalibrationIlluminant2",50780:"BestQualityScale",50781:"RawDataUniqueID",50784:"AliasLayerMetadata",50827:"OriginalRawFileName",50828:"OriginalRawFileData",50829:"ActiveArea",50830:"MaskedAreas",50831:"AsShotICCProfile",50832:"AsShotPreProfileMatrix",50833:"CurrentICCProfile",50834:"CurrentPreProfileMatrix",50879:"ColorimetricReference",50898:"PanasonicTitle",50899:"PanasonicTitle2",50931:"CameraCalibrationSig",50932:"ProfileCalibrationSig",50933:"ProfileIFD",50934:"AsShotProfileName",50935:"NoiseReductionApplied",50936:"ProfileName",50937:"ProfileHueSatMapDims",50938:"ProfileHueSatMapData1",50939:"ProfileHueSatMapData2",50940:"ProfileToneCurve",50941:"ProfileEmbedPolicy",50942:"ProfileCopyright",50964:"ForwardMatrix1",50965:"ForwardMatrix2",50966:"PreviewApplicationName",50967:"PreviewApplicationVersion",50968:"PreviewSettingsName",50969:"PreviewSettingsDigest",50970:"PreviewColorSpace",50971:"PreviewDateTime",50972:"RawImageDigest",50973:"OriginalRawFileDigest",50974:"SubTileBlockSize",50975:"RowInterleaveFactor",50981:"ProfileLookTableDims",50982:"ProfileLookTableData",51008:"OpcodeList1",51009:"OpcodeList2",51022:"OpcodeList3",51041:"NoiseProfile",51043:"TimeCodes",51044:"FrameRate",51058:"TStop",51081:"ReelName",51089:"OriginalDefaultFinalSize",51090:"OriginalBestQualitySize",51091:"OriginalDefaultCropSize",51105:"CameraLabel",51107:"ProfileHueSatMapEncoding",51108:"ProfileLookTableEncoding",51109:"BaselineExposureOffset",51110:"DefaultBlackRender",51111:"NewRawImageDigest",51112:"RawToPreviewGain",51125:"DefaultUserCrop",59932:"Padding",59933:"OffsetSchema",65000:"OwnerName",65001:"SerialNumber",65002:"Lens",65024:"KDC_IFD",65100:"RawFile",65101:"Converter",65102:"WhiteBalance",65105:"Exposure",65106:"Shadows",65107:"Brightness",65108:"Contrast",65109:"Saturation",65110:"Sharpness",65111:"Smoothness",65112:"MoireFilter"},gps:{0:"GPSVersionID",1:"GPSLatitudeRef",2:"GPSLatitude",3:"GPSLongitudeRef",4:"GPSLongitude",5:"GPSAltitudeRef",6:"GPSAltitude",7:"GPSTimeStamp",8:"GPSSatellites",9:"GPSStatus",10:"GPSMeasureMode",11:"GPSDOP",12:"GPSSpeedRef",13:"GPSSpeed",14:"GPSTrackRef",15:"GPSTrack",16:"GPSImgDirectionRef",17:"GPSImgDirection",18:"GPSMapDatum",19:"GPSDestLatitudeRef",20:"GPSDestLatitude",21:"GPSDestLongitudeRef",22:"GPSDestLongitude",23:"GPSDestBearingRef",24:"GPSDestBearing",25:"GPSDestDistanceRef",26:"GPSDestDistance",27:"GPSProcessingMethod",28:"GPSAreaInformation",29:"GPSDateStamp",30:"GPSDifferential",31:"GPSHPositioningError"}}},function(t,e){function n(t,e,n,r,i,o){this.global=i,e=e||0,n=n||t.byteLength-e,this.arrayBuffer=t.slice(e,e+n),this.view=new i.DataView(this.arrayBuffer,0,this.arrayBuffer.byteLength),this.setBigEndian(r),this.offset=0,this.parentOffset=(o||0)+e}n.prototype={setBigEndian:function(t){this.littleEndian=!t},nextUInt8:function(){var t=this.view.getUint8(this.offset);return this.offset+=1,t},nextInt8:function(){var t=this.view.getInt8(this.offset);return this.offset+=1,t},nextUInt16:function(){var t=this.view.getUint16(this.offset,this.littleEndian);return this.offset+=2,t},nextUInt32:function(){var t=this.view.getUint32(this.offset,this.littleEndian);return this.offset+=4,t},nextInt16:function(){var t=this.view.getInt16(this.offset,this.littleEndian);return this.offset+=2,t},nextInt32:function(){var t=this.view.getInt32(this.offset,this.littleEndian);return this.offset+=4,t},nextFloat:function(){var t=this.view.getFloat32(this.offset,this.littleEndian);return this.offset+=4,t},nextDouble:function(){var t=this.view.getFloat64(this.offset,this.littleEndian);return this.offset+=8,t},nextBuffer:function(t){var e=this.arrayBuffer.slice(this.offset,this.offset+t);return this.offset+=t,e},remainingLength:function(){return this.arrayBuffer.byteLength-this.offset},nextString:function(t){var e=this.arrayBuffer.slice(this.offset,this.offset+t);return e=String.fromCharCode.apply(null,new this.global.Uint8Array(e)),this.offset+=t,e},mark:function(){var t=this;return{openWithOffset:function(e){return e=(e||0)+this.offset,new n(t.arrayBuffer,e,t.arrayBuffer.byteLength-e,!t.littleEndian,t.global,t.parentOffset)},offset:this.offset,getParentOffset:function(){return t.parentOffset}}},offsetFrom:function(t){return this.parentOffset+this.offset-(t.offset+t.getParentOffset())},skip:function(t){this.offset+=t},branch:function(t,e){return e="number"==typeof e?e:this.arrayBuffer.byteLength-(this.offset+t),new n(this.arrayBuffer,this.offset+t,e,!this.littleEndian,this.global,this.parentOffset)}},t.exports=n},function(t,e){function n(t,e,n,r){this.buffer=t,this.offset=e||0,n="number"==typeof n?n:t.length,this.endPosition=this.offset+n,this.setBigEndian(r)}n.prototype={setBigEndian:function(t){this.bigEndian=!!t},nextUInt8:function(){var t=this.buffer.readUInt8(this.offset);return this.offset+=1,t},nextInt8:function(){var t=this.buffer.readInt8(this.offset);return this.offset+=1,t},nextUInt16:function(){var t=this.bigEndian?this.buffer.readUInt16BE(this.offset):this.buffer.readUInt16LE(this.offset);return this.offset+=2,t},nextUInt32:function(){var t=this.bigEndian?this.buffer.readUInt32BE(this.offset):this.buffer.readUInt32LE(this.offset);return this.offset+=4,t},nextInt16:function(){var t=this.bigEndian?this.buffer.readInt16BE(this.offset):this.buffer.readInt16LE(this.offset);return this.offset+=2,t},nextInt32:function(){var t=this.bigEndian?this.buffer.readInt32BE(this.offset):this.buffer.readInt32LE(this.offset);return this.offset+=4,t},nextFloat:function(){var t=this.bigEndian?this.buffer.readFloatBE(this.offset):this.buffer.readFloatLE(this.offset);return this.offset+=4,t},nextDouble:function(){var t=this.bigEndian?this.buffer.readDoubleBE(this.offset):this.buffer.readDoubleLE(this.offset);return this.offset+=8,t},nextBuffer:function(t){var e=this.buffer.slice(this.offset,this.offset+t);return this.offset+=t,e},remainingLength:function(){return this.endPosition-this.offset},nextString:function(t){var e=this.buffer.toString("utf8",this.offset,this.offset+t);return this.offset+=t,e},mark:function(){var t=this;return{openWithOffset:function(e){return e=(e||0)+this.offset,new n(t.buffer,e,t.endPosition-e,t.bigEndian)},offset:this.offset}},offsetFrom:function(t){return this.offset-t.offset},skip:function(t){this.offset+=t},branch:function(t,e){return e="number"==typeof e?e:this.endPosition-(this.offset+t),new n(this.buffer,this.offset+t,e,this.bigEndian)}},t.exports=n},function(t,e){function n(t){Math.round;var e,n,r,i,o,a=Math.floor,s=new Array(64),c=new Array(64),u=new Array(64),l=new Array(64),p=new Array(65535),f=new Array(65535),h=new Array(64),d=new Array(64),g=[],m=0,_=7,b=new Array(64),y=new Array(64),v=new Array(64),x=new Array(256),w=new Array(2048),k=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],E=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],D=[0,1,2,3,4,5,6,7,8,9,10,11],S=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],O=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],C=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],A=[0,1,2,3,4,5,6,7,8,9,10,11],I=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],T=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function P(t,e){for(var n=0,r=0,i=new Array,o=1;o<=16;o++){for(var a=1;a<=t[o];a++)i[e[r]]=[],i[e[r]][0]=n,i[e[r]][1]=o,r++,n++;n*=2}return i}function B(t){for(var e=t[0],n=t[1]-1;n>=0;)e&1<>8&255),F(255&t)}function L(t,e,n,r,i){for(var o,a=i[0],s=i[240],c=function(t,e){var n,r,i,o,a,s,c,u,l,p,f=0;for(l=0;l<8;++l){n=t[f],r=t[f+1],i=t[f+2],o=t[f+3],a=t[f+4],s=t[f+5],c=t[f+6];var d=n+(u=t[f+7]),g=n-u,m=r+c,_=r-c,b=i+s,y=i-s,v=o+a,x=o-a,w=d+v,k=d-v,E=m+b,D=m-b;t[f]=w+E,t[f+4]=w-E;var S=.707106781*(D+k);t[f+2]=k+S,t[f+6]=k-S;var O=.382683433*((w=x+y)-(D=_+g)),C=.5411961*w+O,A=1.306562965*D+O,I=.707106781*(E=y+_),T=g+I,P=g-I;t[f+5]=P+C,t[f+3]=P-C,t[f+1]=T+A,t[f+7]=T-A,f+=8}for(f=0,l=0;l<8;++l){n=t[f],r=t[f+8],i=t[f+16],o=t[f+24],a=t[f+32],s=t[f+40],c=t[f+48];var B=n+(u=t[f+56]),F=n-u,j=r+c,L=r-c,M=i+s,N=i-s,z=o+a,R=o-a,U=B+z,G=B-z,H=j+M,$=j-M;t[f]=U+H,t[f+32]=U-H;var q=.707106781*($+G);t[f+16]=G+q,t[f+48]=G-q;var W=.382683433*((U=R+N)-($=L+F)),V=.5411961*U+W,Y=1.306562965*$+W,Z=.707106781*(H=N+L),X=F+Z,Q=F-Z;t[f+40]=Q+V,t[f+24]=Q-V,t[f+8]=X+Y,t[f+56]=X-Y,f++}for(l=0;l<64;++l)p=t[l]*e[l],h[l]=p>0?p+.5|0:p-.5|0;return h}(t,e),u=0;u<64;++u)d[k[u]]=c[u];var l=d[0]-n;n=d[0],0==l?B(r[0]):(B(r[f[o=32767+l]]),B(p[o]));for(var g=63;g>0&&0==d[g];g--);if(0==g)return B(a),n;for(var m,_=1;_<=g;){for(var b=_;0==d[_]&&_<=g;++_);var y=_-b;if(y>=16){m=y>>4;for(var v=1;v<=m;++v)B(s);y&=15}o=32767+d[_],B(i[(y<<4)+f[o]]),B(p[o]),_++}return 63!=g&&B(a),n}function M(t){if(t<=0&&(t=1),t>100&&(t=100),o!=t){(function(t){for(var e=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],n=0;n<64;n++){var r=a((e[n]*t+50)/100);r<1?r=1:r>255&&(r=255),s[k[n]]=r}for(var i=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],o=0;o<64;o++){var p=a((i[o]*t+50)/100);p<1?p=1:p>255&&(p=255),c[k[o]]=p}for(var f=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],h=0,d=0;d<8;d++)for(var g=0;g<8;g++)u[h]=1/(s[k[h]]*f[d]*f[g]*8),l[h]=1/(c[k[h]]*f[d]*f[g]*8),h++})(t<50?Math.floor(5e3/t):Math.floor(200-2*t)),o=t}}this.encode=function(t,o){(new Date).getTime();o&&M(o),g=new Array,m=0,_=7,j(65496),j(65504),j(16),F(74),F(70),F(73),F(70),F(0),F(1),F(1),F(0),j(1),j(1),F(0),F(0),function(){j(65499),j(132),F(0);for(var t=0;t<64;t++)F(s[t]);F(1);for(var e=0;e<64;e++)F(c[e])}(),function(t,e){j(65472),j(17),F(8),j(e),j(t),F(3),F(1),F(17),F(0),F(2),F(17),F(1),F(3),F(17),F(1)}(t.width,t.height),function(){j(65476),j(418),F(0);for(var t=0;t<16;t++)F(E[t+1]);for(var e=0;e<=11;e++)F(D[e]);F(16);for(var n=0;n<16;n++)F(S[n+1]);for(var r=0;r<=161;r++)F(O[r]);F(1);for(var i=0;i<16;i++)F(C[i+1]);for(var o=0;o<=11;o++)F(A[o]);F(17);for(var a=0;a<16;a++)F(I[a+1]);for(var s=0;s<=161;s++)F(T[s])}(),j(65498),j(12),F(3),F(1),F(0),F(2),F(17),F(3),F(17),F(0),F(63),F(0);var a=0,p=0,f=0;m=0,_=7,this.encode.displayName="_encode_";for(var h,d,x,k,P,N,z,R,U,G=t.data,H=t.width,$=t.height,q=4*H,W=0;W<$;){for(h=0;h>3)*q+(z=4*(7&U)),W+R>=$&&(N-=q*(W+1+R-$)),h+z>=q&&(N-=h+z-q+4),d=G[N++],x=G[N++],k=G[N++],b[U]=(w[d]+w[x+256>>0]+w[k+512>>0]>>16)-128,y[U]=(w[d+768>>0]+w[x+1024>>0]+w[k+1280>>0]>>16)-128,v[U]=(w[d+1280>>0]+w[x+1536>>0]+w[k+1792>>0]>>16)-128;a=L(b,u,a,e,r),p=L(y,l,p,n,i),f=L(v,l,f,n,i),h+=32}W+=8}if(_>=0){var V=[];V[1]=_+1,V[0]=(1<<_+1)-1,B(V)}return j(65497),new Buffer(g)},function(){(new Date).getTime();t||(t=50),function(){for(var t=String.fromCharCode,e=0;e<256;e++)x[e]=t(e)}(),e=P(E,D),n=P(C,A),r=P(S,O),i=P(I,T),function(){for(var t=1,e=2,n=1;n<=15;n++){for(var r=t;r>0]=38470*t,w[t+512>>0]=7471*t+32768,w[t+768>>0]=-11059*t,w[t+1024>>0]=-21709*t,w[t+1280>>0]=32768*t+8421375,w[t+1536>>0]=-27439*t,w[t+1792>>0]=-5329*t}(),M(t),(new Date).getTime()}()}t.exports=function(t,e){void 0===e&&(e=50);return{data:new n(e).encode(t,e),width:t.width,height:t.height}}},function(t,e){var n=function(){"use strict";var t=new Int32Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),e=4017,n=799,r=3406,i=2276,o=1567,a=3784,s=5793,c=2896;function u(){}function l(t,e){for(var n,r,i=0,o=[],a=16;a>0&&!t[a-1];)a--;o.push({children:[],index:0});var s,c=o[0];for(n=0;n0;)c=o.pop();for(c.index++,o.push(c);o.length<=n;)o.push(s={children:[],index:0}),c.children[c.index]=s.children,c=s;i++}n+10)return h>>--d&1;if(255==(h=e[n++])){var t=e[n++];if(t)throw new Error("unexpected marker: "+(h<<8|t).toString(16))}return d=7,h>>>7}function m(t){for(var e,n=t;null!==(e=g());){if("number"==typeof(n=n[e]))return n;if("object"!=typeof n)throw new Error("invalid huffman sequence")}return null}function _(t){for(var e=0;t>0;){var n=g();if(null===n)return;e=e<<1|n,t--}return e}function b(t){var e=_(t);return e>=1<0)y--;else for(var r=a,i=s;r<=i;){var o=m(e.huffmanTableAC),c=15&o,l=o>>4;if(0!==c)n[t[r+=l]]=b(c)*(1<>4,0===f)o<15?(y=_(o)+(1<>4;if(0!==s)n[t[o+=c]]=b(s),o++;else{if(c<15)break;o+=16}}};var T,P,B,F,j=0;for(P=1==I?i[0].blocksPerLine*i[0].blocksPerColumn:l*r.mcusPerColumn,o||(o=P);j=65488&&T<=65495))break;n+=2}return n-f}function f(t,u){var l,p,f=[],h=u.blocksPerLine,d=u.blocksPerColumn,g=h<<3,m=new Int32Array(64),_=new Uint8Array(64);function b(t,l,p){var f,h,d,g,m,_,b,y,v,x,w=u.quantizationTable,k=p;for(x=0;x<64;x++)k[x]=t[x]*w[x];for(x=0;x<8;++x){var E=8*x;0!=k[1+E]||0!=k[2+E]||0!=k[3+E]||0!=k[4+E]||0!=k[5+E]||0!=k[6+E]||0!=k[7+E]?(f=s*k[0+E]+128>>8,h=s*k[4+E]+128>>8,d=k[2+E],g=k[6+E],m=c*(k[1+E]-k[7+E])+128>>8,y=c*(k[1+E]+k[7+E])+128>>8,_=k[3+E]<<4,b=k[5+E]<<4,v=f-h+1>>1,f=f+h+1>>1,h=v,v=d*a+g*o+128>>8,d=d*o-g*a+128>>8,g=v,v=m-b+1>>1,m=m+b+1>>1,b=v,v=y+_+1>>1,_=y-_+1>>1,y=v,v=f-g+1>>1,f=f+g+1>>1,g=v,v=h-d+1>>1,h=h+d+1>>1,d=v,v=m*i+y*r+2048>>12,m=m*r-y*i+2048>>12,y=v,v=_*n+b*e+2048>>12,_=_*e-b*n+2048>>12,b=v,k[0+E]=f+y,k[7+E]=f-y,k[1+E]=h+b,k[6+E]=h-b,k[2+E]=d+_,k[5+E]=d-_,k[3+E]=g+m,k[4+E]=g-m):(v=s*k[0+E]+512>>10,k[0+E]=v,k[1+E]=v,k[2+E]=v,k[3+E]=v,k[4+E]=v,k[5+E]=v,k[6+E]=v,k[7+E]=v)}for(x=0;x<8;++x){var D=x;0!=k[8+D]||0!=k[16+D]||0!=k[24+D]||0!=k[32+D]||0!=k[40+D]||0!=k[48+D]||0!=k[56+D]?(f=s*k[0+D]+2048>>12,h=s*k[32+D]+2048>>12,d=k[16+D],g=k[48+D],m=c*(k[8+D]-k[56+D])+2048>>12,y=c*(k[8+D]+k[56+D])+2048>>12,_=k[24+D],b=k[40+D],v=f-h+1>>1,f=f+h+1>>1,h=v,v=d*a+g*o+2048>>12,d=d*o-g*a+2048>>12,g=v,v=m-b+1>>1,m=m+b+1>>1,b=v,v=y+_+1>>1,_=y-_+1>>1,y=v,v=f-g+1>>1,f=f+g+1>>1,g=v,v=h-d+1>>1,h=h+d+1>>1,d=v,v=m*i+y*r+2048>>12,m=m*r-y*i+2048>>12,y=v,v=_*n+b*e+2048>>12,_=_*e-b*n+2048>>12,b=v,k[0+D]=f+y,k[56+D]=f-y,k[8+D]=h+b,k[48+D]=h-b,k[16+D]=d+_,k[40+D]=d-_,k[24+D]=g+m,k[32+D]=g-m):(v=s*p[x+0]+8192>>14,k[0+D]=v,k[8+D]=v,k[16+D]=v,k[24+D]=v,k[32+D]=v,k[40+D]=v,k[48+D]=v,k[56+D]=v)}for(x=0;x<64;++x){var S=128+(k[x]+8>>4);l[x]=S<0?0:S>255?255:S}}for(var y=0;y255?255:t}return u.prototype={load:function(t){var e=new XMLHttpRequest;e.open("GET",t,!0),e.responseType="arraybuffer",e.onload=function(){var t=new Uint8Array(e.response||e.mozResponseArrayBuffer);this.parse(t),this.onload&&this.onload()}.bind(this),e.send(null)},parse:function(e){var n=0;e.length;function r(){var t=e[n]<<8|e[n+1];return n+=2,t}function i(){var t=r(),i=e.subarray(n,n+t-2);return n+=i.length,i}function o(t){var e,n,r=0,i=0;for(n in t.components)t.components.hasOwnProperty(n)&&(r<(e=t.components[n]).h&&(r=e.h),i>4==0)for(U=0;U<64;U++){x[t[U]]=e[n++]}else{if(v>>4!=1)throw new Error("DQT: invalid table spec");for(U=0;U<64;U++){x[t[U]]=r()}}h[15&v]=x}break;case 65472:case 65473:case 65474:r(),(a={}).extended=65473===_,a.progressive=65474===_,a.precision=e[n++],a.scanLines=r(),a.samplesPerLine=r(),a.components={},a.componentsOrder=[];var w,k=e[n++];for(z=0;z>4,D=15&e[n+1],S=e[n+2];a.componentsOrder.push(w),a.components[w]={h:E,v:D,quantizationIdx:S},n+=3}o(a),d.push(a);break;case 65476:var O=r();for(z=2;z>4==0?m:g)[15&C]=l(A,T)}break;case 65501:r(),s=r();break;case 65498:r();var P=e[n++],B=[];for(z=0;z>4],G.huffmanTableAC=g[15&F],B.push(G)}var j=e[n++],L=e[n++],M=e[n++],N=p(e,n,a,B,s,j,L,M>>4,15&M);n+=N;break;case 65535:255!==e[n]&&n--;break;default:if(255==e[n-3]&&e[n-2]>=192&&e[n-2]<=254){n-=3;break}throw new Error("unknown JPEG marker "+_.toString(16))}_=r()}if(1!=d.length)throw new Error("only single frame JPEGs supported");for(var z=0;z>3))*this._bitmapInfo.height,n=Math.max(e,i.Z_MIN_CHUNK);this._inflate=i.createInflate({chunkSize:n});var r=e,o=this.emit.bind(this,"error");this._inflate.on("error",function(t){r&&o(t)}),this._filter.on("complete",this._complete.bind(this));var a=this._filter.write.bind(this._filter);this._inflate.on("data",function(t){r&&(t.length>r&&(t=t.slice(0,r)),r-=t.length,a(t))}),this._inflate.on("end",this._filter.end.bind(this._filter))}this._inflate.write(t)},l.prototype._handleMetaData=function(t){this._metaData=t,this._bitmapInfo=Object.create(t),this._filter=new a(this._bitmapInfo)},l.prototype._handleTransColor=function(t){this._bitmapInfo.transColor=t},l.prototype._handlePalette=function(t){this._bitmapInfo.palette=t},l.prototype._simpleTransparency=function(){this._metaData.alpha=!0},l.prototype._headersFinished=function(){this.emit("metadata",this._metaData)},l.prototype._finished=function(){this.errord||(this._inflate?this._inflate.end():this.emit("error","No Inflate block"),this.destroySoon())},l.prototype._complete=function(t){if(!this.errord){try{var e=c.dataToBitMap(t,this._bitmapInfo),n=u(e,this._bitmapInfo);e=null}catch(t){return void this._handleError(t)}this.emit("parsed",n)}}},function(t,e,n){"use strict";var r=n(3),i=n(74),o=n(75),a=t.exports=function(t){i.call(this);var e=[],n=this;this._filter=new o(t,{read:this.read.bind(this),write:function(t){e.push(t)},complete:function(){n.emit("complete",Buffer.concat(e))}}),this._filter.start()};r.inherits(a,i)},function(t,e,n){"use strict";var r=n(3),i=n(7),o=n(21),a=n(82),s=t.exports=function(t){i.call(this);var e=t||{};this._packer=new a(e),this._deflate=this._packer.createDeflate(),this.readable=!0};r.inherits(s,i),s.prototype.pack=function(t,e,n,r){this.emit("data",new Buffer(o.PNG_SIGNATURE)),this.emit("data",this._packer.packIHDR(e,n)),r&&this.emit("data",this._packer.packGAMA(r));var i=this._packer.filterData(t,e,n);this._deflate.on("error",this.emit.bind(this,"error")),this._deflate.on("data",function(t){this.emit("data",this._packer.packIDAT(t))}.bind(this)),this._deflate.on("end",function(){this.emit("data",this._packer.packIEND()),this.emit("end")}.bind(this)),this._deflate.end(i)}},function(t,e,n){"use strict";var r=n(21);t.exports=function(t,e,n,i){var o,a=-1!==[r.COLORTYPE_COLOR_ALPHA,r.COLORTYPE_ALPHA].indexOf(i.colorType);if(i.colorType===i.inputColorType){var s=(o=new ArrayBuffer(2),new DataView(o).setInt16(0,256,!0),256!==new Int16Array(o)[0]);if(8===i.bitDepth||16===i.bitDepth&&s)return t}var c=16!==i.bitDepth?t:new Uint16Array(t.buffer),u=255,l=r.COLORTYPE_TO_BPP_MAP[i.inputColorType];4!==l||i.inputHasAlpha||(l=3);var p=r.COLORTYPE_TO_BPP_MAP[i.colorType];16===i.bitDepth&&(u=65535,p*=2);var f=new Buffer(e*n*p),h=0,d=0,g=i.bgColor||{};function m(){var t,e,n,o=u;switch(i.inputColorType){case r.COLORTYPE_COLOR_ALPHA:o=c[h+3],t=c[h],e=c[h+1],n=c[h+2];break;case r.COLORTYPE_COLOR:t=c[h],e=c[h+1],n=c[h+2];break;case r.COLORTYPE_ALPHA:o=c[h+1],e=t=c[h],n=t;break;case r.COLORTYPE_GRAYSCALE:e=t=c[h],n=t;break;default:throw new Error("input color type:"+i.inputColorType+" is not supported at present")}return i.inputHasAlpha&&(a||(o/=u,t=Math.min(Math.max(Math.round((1-o)*g.red+o*t),0),u),e=Math.min(Math.max(Math.round((1-o)*g.green+o*e),0),u),n=Math.min(Math.max(Math.round((1-o)*g.blue+o*n),0),u))),{red:t,green:e,blue:n,alpha:o}}void 0===g.red&&(g.red=u),void 0===g.green&&(g.green=u),void 0===g.blue&&(g.blue=u);for(var _=0;_=o?t[e+a-o]:0,c=t[e+a]-s;r[i+a]=c}},2:function(t,e,n,r,i){for(var o=0;o0?t[e+o-n]:0,s=t[e+o]-a;r[i+o]=s}},3:function(t,e,n,r,i,o){for(var a=0;a=o?t[e+a-o]:0,c=e>0?t[e+a-n]:0,u=t[e+a]-(s+c>>1);r[i+a]=u}},4:function(t,e,n,i,o,a){for(var s=0;s=a?t[e+s-a]:0,u=e>0?t[e+s-n]:0,l=e>0&&s>=a?t[e+s-(n+a)]:0,p=t[e+s]-r(c,u,l);i[o+s]=p}}},o={0:function(t,e,n){for(var r=0,i=e+n,o=e;o=r?t[e+o-r]:0,s=t[e+o]-a;i+=Math.abs(s)}return i},2:function(t,e,n){for(var r=0,i=e+n,o=e;o0?t[o-n]:0,s=t[o]-a;r+=Math.abs(s)}return r},3:function(t,e,n,r){for(var i=0,o=0;o=r?t[e+o-r]:0,s=e>0?t[e+o-n]:0,c=t[e+o]-(a+s>>1);i+=Math.abs(c)}return i},4:function(t,e,n,i){for(var o=0,a=0;a=i?t[e+a-i]:0,c=e>0?t[e+a-n]:0,u=e>0&&a>=i?t[e+a-(n+i)]:0,l=t[e+a]-r(s,c,u);o+=Math.abs(l)}return o}};t.exports=function(t,e,n,r,a){var s;if("filterType"in r&&-1!==r.filterType){if("number"!=typeof r.filterType)throw new Error("unrecognised filter types");s=[r.filterType]}else s=[0,1,2,3,4];16===r.bitDepth&&(a*=2);for(var c=e*a,u=0,l=0,p=new Buffer((c+1)*n),f=s[0],h=0;h1)for(var d=1/0,g=0;g>3))*p.height;g=o(m,{chunkSize:_,maxLength:_})}if(m=null,!g||!g.length)throw new Error("bad png - invalid inflate data response");var b=s.process(g,p);m=null;var y=u.dataToBitMap(b,p);b=null;var v=l(y,p);return p.data=v,p.gamma=f||0,p}},function(t,e,n){"use strict";var r=n(20).ok,i=n(12),o=n(3),a=n(4).kMaxLength;function s(t){if(!(this instanceof s))return new s(t);t&&t.chunkSize=0,"have should not go down"),n>0){var i=s._buffer.slice(s._offset,s._offset+n);if(s._offset+=n,i.length>p&&(i=i.slice(0,p)),h.push(i),d+=i.length,0===(p-=i.length))return!1}return(0===e||s._offset>=s._chunkSize)&&(l=s._chunkSize,s._offset=0,s._buffer=Buffer.allocUnsafe(s._chunkSize)),0===e&&(f+=u-t,u=t,!0)}}this.on("error",function(t){o=t}),r(this._handle,"zlib binding closed");do{var m=this._handle.writeSync(e,t,f,u,this._buffer,this._offset,l);m=m||this._writeState}while(!this._hadError&&g(m[0],m[1]));if(this._hadError)throw o;if(d>=a)throw c(this),new RangeError("Cannot create final Buffer. It would be larger than 0x"+a.toString(16)+" bytes");var _=Buffer.concat(h,d);return c(this),_},o.inherits(s,i.Inflate),t.exports=e=u,e.Inflate=s,e.createInflate=function(t){return new s(t)},e.inflateSync=u},function(t,e,n){"use strict";var r=n(83),i=n(75);e.process=function(t,e){var n=[],o=new r(t);return new i(e,{read:o.read.bind(o),write:function(t){n.push(t)},complete:function(){}}).start(),o.process(),Buffer.concat(n)}},function(t,e,n){"use strict";var r=!0,i=n(12);i.deflateSync||(r=!1);var o=n(21),a=n(82);t.exports=function(t,e){if(!r)throw new Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");var n=new a(e||{}),s=[];s.push(new Buffer(o.PNG_SIGNATURE)),s.push(n.packIHDR(t.width,t.height)),t.gamma&&s.push(n.packGAMA(t.gamma));var c=n.filterData(t.data,t.width,t.height),u=i.deflateSync(c,n.getDeflateOptions());if(c=null,!u||!u.length)throw new Error("bad png - invalid compressed data response");return s.push(n.packIDAT(u)),s.push(n.packIEND()),Buffer.concat(s)}},function(t,e){function n(t){this.buffer=t.data,this.width=t.width,this.height=t.height,this.extraBytes=this.width%4,this.rgbSize=this.height*(3*this.width+this.extraBytes),this.headerInfoSize=40,this.data=[],this.flag="BM",this.reserved=0,this.offset=54,this.fileSize=this.rgbSize+this.offset,this.planes=1,this.bitPP=24,this.compress=0,this.hr=0,this.vr=0,this.colors=0,this.importantColors=0}n.prototype.encode=function(){var t=new Buffer(this.offset+this.rgbSize);this.pos=0,t.write(this.flag,this.pos,2),this.pos+=2,t.writeUInt32LE(this.fileSize,this.pos),this.pos+=4,t.writeUInt32LE(this.reserved,this.pos),this.pos+=4,t.writeUInt32LE(this.offset,this.pos),this.pos+=4,t.writeUInt32LE(this.headerInfoSize,this.pos),this.pos+=4,t.writeUInt32LE(this.width,this.pos),this.pos+=4,t.writeInt32LE(-this.height,this.pos),this.pos+=4,t.writeUInt16LE(this.planes,this.pos),this.pos+=2,t.writeUInt16LE(this.bitPP,this.pos),this.pos+=2,t.writeUInt32LE(this.compress,this.pos),this.pos+=4,t.writeUInt32LE(this.rgbSize,this.pos),this.pos+=4,t.writeUInt32LE(this.hr,this.pos),this.pos+=4,t.writeUInt32LE(this.vr,this.pos),this.pos+=4,t.writeUInt32LE(this.colors,this.pos),this.pos+=4,t.writeUInt32LE(this.importantColors,this.pos),this.pos+=4;for(var e=0,n=3*this.width+this.extraBytes,r=0;r0){var a=this.pos+r*n+3*this.width;t.fill(0,a,a+this.extraBytes)}}return t},t.exports=function(t,e){return void 0===e&&(e=100),{data:new n(t).encode(),width:t.width,height:t.height}}},function(t,e){function n(t,e){if(this.pos=0,this.buffer=t,this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=this.buffer.toString("utf-8",0,this.pos+=2),"BM"!=this.flag)throw new Error("Invalid BMP File");this.parseHeader(),this.parseRGBA()}n.prototype.parseHeader=function(){if(this.fileSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.reserved=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.offset=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.headerSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.width=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.height=this.buffer.readInt32LE(this.pos),this.pos+=4,this.planes=this.buffer.readUInt16LE(this.pos),this.pos+=2,this.bitPP=this.buffer.readUInt16LE(this.pos),this.pos+=2,this.compress=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.rawSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.hr=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.vr=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.colors=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.importantColors=this.buffer.readUInt32LE(this.pos),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=0===this.colors?1<=0?this.height-1:-this.height;for(n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i>7-s&1];this.data[a+4*s]=0,this.data[a+4*s+1]=c.blue,this.data[a+4*s+2]=c.green,this.data[a+4*s+3]=c.red}0!=e&&(this.pos+=4-e)}},n.prototype.bit4=function(){if(2==this.compress){this.data.fill(255);for(var t=0,e=this.bottom_up?this.height-1:0,n=!1;t>4),1&c&&c+1>1&1)&&this.pos++}}else for(c=0;c>4),n=!n}function u(e){var n=this.palette[e];this.data[t]=0,this.data[t+1]=n.blue,this.data[t+2]=n.green,this.data[t+3]=n.red,t+=4}}else{var l=Math.ceil(this.width/2),p=l%4;for(a=this.height-1;a>=0;a--){var f=this.bottom_up?a:this.height-1-a;for(o=0;o>4,d=15&i,g=this.palette[h];if(this.data[t]=0,this.data[t+1]=g.blue,this.data[t+2]=g.green,this.data[t+3]=g.red,2*o+1>=this.width)break;g=this.palette[d],this.data[t+4]=0,this.data[t+4+1]=g.blue,this.data[t+4+2]=g.green,this.data[t+4+3]=g.red}0!=p&&(this.pos+=4-p)}}},n.prototype.bit8=function(){if(1==this.compress){this.data.fill(255);for(var t=0,e=this.bottom_up?this.height-1:0;t=0;o--){var l=this.bottom_up?o:this.height-1-o;for(i=0;i=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i>5&e)/e*255|0,c=(o>>10&e)/e*255|0,u=o>>15?255:0,l=r*this.width*4+4*i;this.data[l]=u,this.data[l+1]=a,this.data[l+2]=s,this.data[l+3]=c}this.pos+=t}},n.prototype.bit16=function(){var t=this.width%2*2;this.maskRed=31744,this.maskGreen=992,this.maskBlue=31,this.mask0=0,3==this.compress&&(this.maskRed=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.maskGreen=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.maskBlue=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.mask0=this.buffer.readUInt32LE(this.pos),this.pos+=4);for(var e=[0,0,0],n=0;n<16;n++)this.maskRed>>n&1&&e[0]++,this.maskGreen>>n&1&&e[1]++,this.maskBlue>>n&1&&e[2]++;e[1]+=e[0],e[2]+=e[1],e[0]=8-e[0],e[1]-=8,e[2]-=8;for(var r=this.height-1;r>=0;r--){for(var i=this.bottom_up?r:this.height-1-r,o=0;o>e[1],u=(a&this.maskRed)>>e[2],l=i*this.width*4+4*o;this.data[l]=0,this.data[l+1]=s,this.data[l+2]=c,this.data[l+3]=u}this.pos+=t}},n.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,n=0;n=0;t--)for(var e=this.bottom_up?t:this.height-1-t,n=0;n=0;t--)for(e=this.bottom_up?t:this.height-1-t,n=0;n0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(n!==u)throw new Error(a[n]);if(e.header&&r.deflateSetHeader(this.strm,e.header),e.dictionary){var d;if(d="string"==typeof e.dictionary?o.string2buf(e.dictionary):"[object ArrayBuffer]"===c.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(n=r.deflateSetDictionary(this.strm,d))!==u)throw new Error(a[n]);this._dict_set=!0}}function d(t,e){var n=new h(e);if(n.push(t,!0),n.err)throw n.msg||a[n.err];return n.result}h.prototype.push=function(t,e){var n,a,s=this.strm,l=this.options.chunkSize;if(this.ended)return!1;a=e===~~e?e:!0===e?4:0,"string"==typeof t?s.input=o.string2buf(t):"[object ArrayBuffer]"===c.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(l),s.next_out=0,s.avail_out=l),1!==(n=r.deflate(s,a))&&n!==u)return this.onEnd(n),this.ended=!0,!1;0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(o.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((s.avail_in>0||0===s.avail_out)&&1!==n);return 4===a?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===u):2!==a||(this.onEnd(u),s.avail_out=0,!0)},h.prototype.onData=function(t){this.chunks.push(t)},h.prototype.onEnd=function(t){t===u&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Deflate=h,e.deflate=d,e.deflateRaw=function(t,e){return(e=e||{}).raw=!0,d(t,e)},e.gzip=function(t,e){return(e=e||{}).gzip=!0,d(t,e)}},function(t,e,n){"use strict";var r,i=n(14),o=n(188),a=n(84),s=n(85),c=n(50),u=0,l=1,p=3,f=4,h=5,d=0,g=1,m=-2,_=-3,b=-5,y=-1,v=1,x=2,w=3,k=4,E=0,D=2,S=8,O=9,C=15,A=8,I=286,T=30,P=19,B=2*I+1,F=15,j=3,L=258,M=L+j+1,N=32,z=42,R=69,U=73,G=91,H=103,$=113,q=666,W=1,V=2,Y=3,Z=4,X=3;function Q(t,e){return t.msg=c[e],e}function J(t){return(t<<1)-(t>4?9:0)}function K(t){for(var e=t.length;--e>=0;)t[e]=0}function tt(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(i.arraySet(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function et(t,e){o._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,tt(t.strm)}function nt(t,e){t.pending_buf[t.pending++]=e}function rt(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function it(t,e){var n,r,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,c=t.strstart>t.w_size-M?t.strstart-(t.w_size-M):0,u=t.window,l=t.w_mask,p=t.prev,f=t.strstart+L,h=u[o+a-1],d=u[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(u[(n=e)+a]===d&&u[n+a-1]===h&&u[n]===u[o]&&u[++n]===u[o+1]){o+=2,n++;do{}while(u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&oa){if(t.match_start=e,a=r,r>=s)break;h=u[o+a-1],d=u[o+a]}}}while((e=p[e&l])>c&&0!=--i);return a<=t.lookahead?a:t.lookahead}function ot(t){var e,n,r,o,c,u,l,p,f,h,d=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-M)){i.arraySet(t.window,t.window,d,d,0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=n=t.hash_size;do{r=t.head[--e],t.head[e]=r>=d?r-d:0}while(--n);e=n=d;do{r=t.prev[--e],t.prev[e]=r>=d?r-d:0}while(--n);o+=d}if(0===t.strm.avail_in)break;if(u=t.strm,l=t.window,p=t.strstart+t.lookahead,f=o,h=void 0,(h=u.avail_in)>f&&(h=f),n=0===h?0:(u.avail_in-=h,i.arraySet(l,u.input,u.next_in,h,p),1===u.state.wrap?u.adler=a(u.adler,l,h,p):2===u.state.wrap&&(u.adler=s(u.adler,l,h,p)),u.next_in+=h,u.total_in+=h,h),t.lookahead+=n,t.lookahead+t.insert>=j)for(c=t.strstart-t.insert,t.ins_h=t.window[c],t.ins_h=(t.ins_h<=j&&(t.ins_h=(t.ins_h<=j)if(r=o._tr_tally(t,t.strstart-t.match_start,t.match_length-j),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=j){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<=j&&(t.ins_h=(t.ins_h<4096)&&(t.match_length=j-1)),t.prev_length>=j&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-j,r=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-j),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<15&&(s=2,r-=16),o<1||o>O||n!==S||r<8||r>15||e<0||e>9||a<0||a>k)return Q(t,m);8===r&&(r=9);var c=new ut;return t.state=c,c.strm=t,c.wrap=s,c.gzhead=null,c.w_bits=r,c.w_size=1<t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(ot(t),0===t.lookahead&&e===u)return W;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var r=t.block_start+n;if((0===t.strstart||t.strstart>=r)&&(t.lookahead=t.strstart-r,t.strstart=r,et(t,!1),0===t.strm.avail_out))return W;if(t.strstart-t.block_start>=t.w_size-M&&(et(t,!1),0===t.strm.avail_out))return W}return t.insert=0,e===f?(et(t,!0),0===t.strm.avail_out?Y:Z):(t.strstart>t.block_start&&(et(t,!1),t.strm.avail_out),W)}),new ct(4,4,8,4,at),new ct(4,5,16,8,at),new ct(4,6,32,32,at),new ct(4,4,16,16,st),new ct(8,16,32,32,st),new ct(8,16,128,128,st),new ct(8,32,128,256,st),new ct(32,128,258,1024,st),new ct(32,258,258,4096,st)],e.deflateInit=function(t,e){return ft(t,e,S,C,A,E)},e.deflateInit2=ft,e.deflateReset=pt,e.deflateResetKeep=lt,e.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?m:(t.state.gzhead=e,d):m},e.deflate=function(t,e){var n,i,a,c;if(!t||!t.state||e>h||e<0)return t?Q(t,m):m;if(i=t.state,!t.output||!t.input&&0!==t.avail_in||i.status===q&&e!==f)return Q(t,0===t.avail_out?b:m);if(i.strm=t,n=i.last_flush,i.last_flush=e,i.status===z)if(2===i.wrap)t.adler=0,nt(i,31),nt(i,139),nt(i,8),i.gzhead?(nt(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),nt(i,255&i.gzhead.time),nt(i,i.gzhead.time>>8&255),nt(i,i.gzhead.time>>16&255),nt(i,i.gzhead.time>>24&255),nt(i,9===i.level?2:i.strategy>=x||i.level<2?4:0),nt(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(nt(i,255&i.gzhead.extra.length),nt(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=s(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=R):(nt(i,0),nt(i,0),nt(i,0),nt(i,0),nt(i,0),nt(i,9===i.level?2:i.strategy>=x||i.level<2?4:0),nt(i,X),i.status=$);else{var _=S+(i.w_bits-8<<4)<<8;_|=(i.strategy>=x||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(_|=N),_+=31-_%31,i.status=$,rt(i,_),0!==i.strstart&&(rt(i,t.adler>>>16),rt(i,65535&t.adler)),t.adler=1}if(i.status===R)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),tt(t),a=i.pending,i.pending!==i.pending_buf_size));)nt(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=U)}else i.status=U;if(i.status===U)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),tt(t),a=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindexa&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===c&&(i.gzindex=0,i.status=G)}else i.status=G;if(i.status===G)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),tt(t),a=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindexa&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===c&&(i.status=H)}else i.status=H;if(i.status===H&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&tt(t),i.pending+2<=i.pending_buf_size&&(nt(i,255&t.adler),nt(i,t.adler>>8&255),t.adler=0,i.status=$)):i.status=$),0!==i.pending){if(tt(t),0===t.avail_out)return i.last_flush=-1,d}else if(0===t.avail_in&&J(e)<=J(n)&&e!==f)return Q(t,b);if(i.status===q&&0!==t.avail_in)return Q(t,b);if(0!==t.avail_in||0!==i.lookahead||e!==u&&i.status!==q){var y=i.strategy===x?function(t,e){for(var n;;){if(0===t.lookahead&&(ot(t),0===t.lookahead)){if(e===u)return W;break}if(t.match_length=0,n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(et(t,!1),0===t.strm.avail_out))return W}return t.insert=0,e===f?(et(t,!0),0===t.strm.avail_out?Y:Z):t.last_lit&&(et(t,!1),0===t.strm.avail_out)?W:V}(i,e):i.strategy===w?function(t,e){for(var n,r,i,a,s=t.window;;){if(t.lookahead<=L){if(ot(t),t.lookahead<=L&&e===u)return W;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=j&&t.strstart>0&&(r=s[i=t.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){a=t.strstart+L;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&it.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=j?(n=o._tr_tally(t,1,t.match_length-j),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(et(t,!1),0===t.strm.avail_out))return W}return t.insert=0,e===f?(et(t,!0),0===t.strm.avail_out?Y:Z):t.last_lit&&(et(t,!1),0===t.strm.avail_out)?W:V}(i,e):r[i.level].func(i,e);if(y!==Y&&y!==Z||(i.status=q),y===W||y===Y)return 0===t.avail_out&&(i.last_flush=-1),d;if(y===V&&(e===l?o._tr_align(i):e!==h&&(o._tr_stored_block(i,0,0,!1),e===p&&(K(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),tt(t),0===t.avail_out))return i.last_flush=-1,d}return e!==f?d:i.wrap<=0?g:(2===i.wrap?(nt(i,255&t.adler),nt(i,t.adler>>8&255),nt(i,t.adler>>16&255),nt(i,t.adler>>24&255),nt(i,255&t.total_in),nt(i,t.total_in>>8&255),nt(i,t.total_in>>16&255),nt(i,t.total_in>>24&255)):(rt(i,t.adler>>>16),rt(i,65535&t.adler)),tt(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?d:g)},e.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==z&&e!==R&&e!==U&&e!==G&&e!==H&&e!==$&&e!==q?Q(t,m):(t.state=null,e===$?Q(t,_):d):m},e.deflateSetDictionary=function(t,e){var n,r,o,s,c,u,l,p,f=e.length;if(!t||!t.state)return m;if(2===(s=(n=t.state).wrap)||1===s&&n.status!==z||n.lookahead)return m;for(1===s&&(t.adler=a(t.adler,e,f,0)),n.wrap=0,f>=n.w_size&&(0===s&&(K(n.head),n.strstart=0,n.block_start=0,n.insert=0),p=new i.Buf8(n.w_size),i.arraySet(p,e,f-n.w_size,n.w_size,0),e=p,f=n.w_size),c=t.avail_in,u=t.next_in,l=t.input,t.avail_in=f,t.next_in=0,t.input=e,ot(n);n.lookahead>=j;){r=n.strstart,o=n.lookahead-(j-1);do{n.ins_h=(n.ins_h<=0;)t[e]=0}var u=0,l=1,p=2,f=29,h=256,d=h+1+f,g=30,m=19,_=2*d+1,b=15,y=16,v=7,x=256,w=16,k=17,E=18,D=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],S=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],O=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],C=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],A=new Array(2*(d+2));c(A);var I=new Array(2*g);c(I);var T=new Array(512);c(T);var P=new Array(256);c(P);var B=new Array(f);c(B);var F,j,L,M=new Array(g);function N(t,e,n,r,i){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=t&&t.length}function z(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function R(t){return t<256?T[t]:T[256+(t>>>7)]}function U(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function G(t,e,n){t.bi_valid>y-n?(t.bi_buf|=e<>y-t.bi_valid,t.bi_valid+=n-y):(t.bi_buf|=e<>>=1,n<<=1}while(--e>0);return n>>>1}function q(t,e,n){var r,i,o=new Array(b+1),a=0;for(r=1;r<=b;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=$(o[s]++,s))}}function W(t){var e;for(e=0;e8?U(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function Y(t,e,n,r){var i=2*e,o=2*n;return t[i]>1;n>=1;n--)Z(t,o,n);i=c;do{n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],Z(t,o,1),r=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=r,o[2*i]=o[2*n]+o[2*r],t.depth[i]=(t.depth[n]>=t.depth[r]?t.depth[n]:t.depth[r])+1,o[2*n+1]=o[2*r+1]=i,t.heap[1]=i++,Z(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var n,r,i,o,a,s,c=e.dyn_tree,u=e.max_code,l=e.stat_desc.static_tree,p=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,h=e.stat_desc.extra_base,d=e.stat_desc.max_length,g=0;for(o=0;o<=b;o++)t.bl_count[o]=0;for(c[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<_;n++)(o=c[2*c[2*(r=t.heap[n])+1]+1]+1)>d&&(o=d,g++),c[2*r+1]=o,r>u||(t.bl_count[o]++,a=0,r>=h&&(a=f[r-h]),s=c[2*r],t.opt_len+=s*(o+a),p&&(t.static_len+=s*(l[2*r+1]+a)));if(0!==g){do{for(o=d-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[d]--,g-=2}while(g>0);for(o=d;0!==o;o--)for(r=t.bl_count[o];0!==r;)(i=t.heap[--n])>u||(c[2*i+1]!==o&&(t.opt_len+=(o-c[2*i+1])*c[2*i],c[2*i+1]=o),r--)}}(t,e),q(o,u,t.bl_count)}function J(t,e,n){var r,i,o=-1,a=e[1],s=0,c=7,u=4;for(0===a&&(c=138,u=3),e[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=e[2*(r+1)+1],++s>=7;r0?(t.strm.data_type===s&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return o;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return a;for(e=32;e=3&&0===t.bl_tree[2*C[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),c=t.opt_len+3+7>>>3,(u=t.static_len+3+7>>>3)<=c&&(c=u)):c=u=n+5,n+4<=c&&-1!==e?et(t,e,n,r):t.strategy===i||u===c?(G(t,(l<<1)+(r?1:0),3),X(t,A,I)):(G(t,(p<<1)+(r?1:0),3),function(t,e,n,r){var i;for(G(t,e-257,5),G(t,n-1,5),G(t,r-4,4),i=0;i>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(P[n]+h+1)]++,t.dyn_dtree[2*R(e)]++),t.last_lit===t.lit_bufsize-1},e._tr_align=function(t){G(t,l<<1,3),H(t,x,A),function(t){16===t.bi_valid?(U(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},function(t,e,n){"use strict";var r=n(190),i=n(14),o=n(86),a=n(88),s=n(50),c=n(87),u=n(193),l=Object.prototype.toString;function p(t){if(!(this instanceof p))return new p(t);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,e.windowBits);if(n!==a.Z_OK)throw new Error(s[n]);if(this.header=new u,r.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=o.string2buf(e.dictionary):"[object ArrayBuffer]"===l.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(n=r.inflateSetDictionary(this.strm,e.dictionary))!==a.Z_OK))throw new Error(s[n])}function f(t,e){var n=new p(e);if(n.push(t,!0),n.err)throw n.msg||s[n.err];return n.result}p.prototype.push=function(t,e){var n,s,c,u,p,f=this.strm,h=this.options.chunkSize,d=this.options.dictionary,g=!1;if(this.ended)return!1;s=e===~~e?e:!0===e?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof t?f.input=o.binstring2buf(t):"[object ArrayBuffer]"===l.call(t)?f.input=new Uint8Array(t):f.input=t,f.next_in=0,f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new i.Buf8(h),f.next_out=0,f.avail_out=h),(n=r.inflate(f,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&d&&(n=r.inflateSetDictionary(this.strm,d)),n===a.Z_BUF_ERROR&&!0===g&&(n=a.Z_OK,g=!1),n!==a.Z_STREAM_END&&n!==a.Z_OK)return this.onEnd(n),this.ended=!0,!1;f.next_out&&(0!==f.avail_out&&n!==a.Z_STREAM_END&&(0!==f.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(c=o.utf8border(f.output,f.next_out),u=f.next_out-c,p=o.buf2string(f.output,c),f.next_out=u,f.avail_out=h-u,u&&i.arraySet(f.output,f.output,c,u,0),this.onData(p)):this.onData(i.shrinkBuf(f.output,f.next_out)))),0===f.avail_in&&0===f.avail_out&&(g=!0)}while((f.avail_in>0||0===f.avail_out)&&n!==a.Z_STREAM_END);return n===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),f.avail_out=0,!0)},p.prototype.onData=function(t){this.chunks.push(t)},p.prototype.onEnd=function(t){t===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Inflate=p,e.inflate=f,e.inflateRaw=function(t,e){return(e=e||{}).raw=!0,f(t,e)},e.ungzip=f},function(t,e,n){"use strict";var r=n(14),i=n(84),o=n(85),a=n(191),s=n(192),c=0,u=1,l=2,p=4,f=5,h=6,d=0,g=1,m=2,_=-2,b=-3,y=-4,v=-5,x=8,w=1,k=2,E=3,D=4,S=5,O=6,C=7,A=8,I=9,T=10,P=11,B=12,F=13,j=14,L=15,M=16,N=17,z=18,R=19,U=20,G=21,H=22,$=23,q=24,W=25,V=26,Y=27,Z=28,X=29,Q=30,J=31,K=32,tt=852,et=592,nt=15;function rt(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function it(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function ot(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=w,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new r.Buf32(tt),e.distcode=e.distdyn=new r.Buf32(et),e.sane=1,e.back=-1,d):_}function at(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,ot(t)):_}function st(t,e){var n,r;return t&&t.state?(r=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?_:(null!==r.window&&r.wbits!==e&&(r.window=null),r.wrap=n,r.wbits=e,at(t))):_}function ct(t,e){var n,r;return t?(r=new it,t.state=r,r.window=null,(n=st(t,e))!==d&&(t.state=null),n):_}var ut,lt,pt=!0;function ft(t){if(pt){var e;for(ut=new r.Buf32(512),lt=new r.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(s(u,t.lens,0,288,ut,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;s(l,t.lens,0,32,lt,0,t.work,{bits:5}),pt=!1}t.lencode=ut,t.lenbits=9,t.distcode=lt,t.distbits=5}function ht(t,e,n,i){var o,a=t.state;return null===a.window&&(a.wsize=1<=a.wsize?(r.arraySet(a.window,e,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((o=a.wsize-a.wnext)>i&&(o=i),r.arraySet(a.window,e,n-i,o,a.wnext),(i-=o)?(r.arraySet(a.window,e,n-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave>>8&255,n.check=o(n.check,Ot,2,0),st=0,ct=0,n.mode=k;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&st)<<8)+(st>>8))%31){t.msg="incorrect header check",n.mode=Q;break}if((15&st)!==x){t.msg="unknown compression method",n.mode=Q;break}if(ct-=4,wt=8+(15&(st>>>=4)),0===n.wbits)n.wbits=wt;else if(wt>n.wbits){t.msg="invalid window size",n.mode=Q;break}n.dmax=1<>8&1),512&n.flags&&(Ot[0]=255&st,Ot[1]=st>>>8&255,n.check=o(n.check,Ot,2,0)),st=0,ct=0,n.mode=E;case E:for(;ct<32;){if(0===ot)break t;ot--,st+=tt[nt++]<>>8&255,Ot[2]=st>>>16&255,Ot[3]=st>>>24&255,n.check=o(n.check,Ot,4,0)),st=0,ct=0,n.mode=D;case D:for(;ct<16;){if(0===ot)break t;ot--,st+=tt[nt++]<>8),512&n.flags&&(Ot[0]=255&st,Ot[1]=st>>>8&255,n.check=o(n.check,Ot,2,0)),st=0,ct=0,n.mode=S;case S:if(1024&n.flags){for(;ct<16;){if(0===ot)break t;ot--,st+=tt[nt++]<>>8&255,n.check=o(n.check,Ot,2,0)),st=0,ct=0}else n.head&&(n.head.extra=null);n.mode=O;case O:if(1024&n.flags&&((pt=n.length)>ot&&(pt=ot),pt&&(n.head&&(wt=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,tt,nt,pt,wt)),512&n.flags&&(n.check=o(n.check,tt,pt,nt)),ot-=pt,nt+=pt,n.length-=pt),n.length))break t;n.length=0,n.mode=C;case C:if(2048&n.flags){if(0===ot)break t;pt=0;do{wt=tt[nt+pt++],n.head&&wt&&n.length<65536&&(n.head.name+=String.fromCharCode(wt))}while(wt&&pt>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=B;break;case T:for(;ct<32;){if(0===ot)break t;ot--,st+=tt[nt++]<>>=7&ct,ct-=7&ct,n.mode=Y;break}for(;ct<3;){if(0===ot)break t;ot--,st+=tt[nt++]<>>=1)){case 0:n.mode=j;break;case 1:if(ft(n),n.mode=U,e===h){st>>>=2,ct-=2;break t}break;case 2:n.mode=N;break;case 3:t.msg="invalid block type",n.mode=Q}st>>>=2,ct-=2;break;case j:for(st>>>=7&ct,ct-=7&ct;ct<32;){if(0===ot)break t;ot--,st+=tt[nt++]<>>16^65535)){t.msg="invalid stored block lengths",n.mode=Q;break}if(n.length=65535&st,st=0,ct=0,n.mode=L,e===h)break t;case L:n.mode=M;case M:if(pt=n.length){if(pt>ot&&(pt=ot),pt>at&&(pt=at),0===pt)break t;r.arraySet(et,tt,nt,pt,it),ot-=pt,nt+=pt,at-=pt,it+=pt,n.length-=pt;break}n.mode=B;break;case N:for(;ct<14;){if(0===ot)break t;ot--,st+=tt[nt++]<>>=5,ct-=5,n.ndist=1+(31&st),st>>>=5,ct-=5,n.ncode=4+(15&st),st>>>=4,ct-=4,n.nlen>286||n.ndist>30){t.msg="too many length or distance symbols",n.mode=Q;break}n.have=0,n.mode=z;case z:for(;n.have>>=3,ct-=3}for(;n.have<19;)n.lens[Ct[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,Et={bits:n.lenbits},kt=s(c,n.lens,0,19,n.lencode,0,n.work,Et),n.lenbits=Et.bits,kt){t.msg="invalid code lengths set",n.mode=Q;break}n.have=0,n.mode=R;case R:for(;n.have>>16&255,bt=65535&St,!((mt=St>>>24)<=ct);){if(0===ot)break t;ot--,st+=tt[nt++]<>>=mt,ct-=mt,n.lens[n.have++]=bt;else{if(16===bt){for(Dt=mt+2;ct>>=mt,ct-=mt,0===n.have){t.msg="invalid bit length repeat",n.mode=Q;break}wt=n.lens[n.have-1],pt=3+(3&st),st>>>=2,ct-=2}else if(17===bt){for(Dt=mt+3;ct>>=mt)),st>>>=3,ct-=3}else{for(Dt=mt+7;ct>>=mt)),st>>>=7,ct-=7}if(n.have+pt>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=Q;break}for(;pt--;)n.lens[n.have++]=wt}}if(n.mode===Q)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=Q;break}if(n.lenbits=9,Et={bits:n.lenbits},kt=s(u,n.lens,0,n.nlen,n.lencode,0,n.work,Et),n.lenbits=Et.bits,kt){t.msg="invalid literal/lengths set",n.mode=Q;break}if(n.distbits=6,n.distcode=n.distdyn,Et={bits:n.distbits},kt=s(l,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,Et),n.distbits=Et.bits,kt){t.msg="invalid distances set",n.mode=Q;break}if(n.mode=U,e===h)break t;case U:n.mode=G;case G:if(ot>=6&&at>=258){t.next_out=it,t.avail_out=at,t.next_in=nt,t.avail_in=ot,n.hold=st,n.bits=ct,a(t,lt),it=t.next_out,et=t.output,at=t.avail_out,nt=t.next_in,tt=t.input,ot=t.avail_in,st=n.hold,ct=n.bits,n.mode===B&&(n.back=-1);break}for(n.back=0;_t=(St=n.lencode[st&(1<>>16&255,bt=65535&St,!((mt=St>>>24)<=ct);){if(0===ot)break t;ot--,st+=tt[nt++]<>yt)])>>>16&255,bt=65535&St,!(yt+(mt=St>>>24)<=ct);){if(0===ot)break t;ot--,st+=tt[nt++]<>>=yt,ct-=yt,n.back+=yt}if(st>>>=mt,ct-=mt,n.back+=mt,n.length=bt,0===_t){n.mode=V;break}if(32&_t){n.back=-1,n.mode=B;break}if(64&_t){t.msg="invalid literal/length code",n.mode=Q;break}n.extra=15&_t,n.mode=H;case H:if(n.extra){for(Dt=n.extra;ct>>=n.extra,ct-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=$;case $:for(;_t=(St=n.distcode[st&(1<>>16&255,bt=65535&St,!((mt=St>>>24)<=ct);){if(0===ot)break t;ot--,st+=tt[nt++]<>yt)])>>>16&255,bt=65535&St,!(yt+(mt=St>>>24)<=ct);){if(0===ot)break t;ot--,st+=tt[nt++]<>>=yt,ct-=yt,n.back+=yt}if(st>>>=mt,ct-=mt,n.back+=mt,64&_t){t.msg="invalid distance code",n.mode=Q;break}n.offset=bt,n.extra=15&_t,n.mode=q;case q:if(n.extra){for(Dt=n.extra;ct>>=n.extra,ct-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=Q;break}n.mode=W;case W:if(0===at)break t;if(pt=lt-at,n.offset>pt){if((pt=n.offset-pt)>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=Q;break}pt>n.wnext?(pt-=n.wnext,dt=n.wsize-pt):dt=n.wnext-pt,pt>n.length&&(pt=n.length),gt=n.window}else gt=et,dt=it-n.offset,pt=n.length;pt>at&&(pt=at),at-=pt,n.length-=pt;do{et[it++]=gt[dt++]}while(--pt);0===n.length&&(n.mode=G);break;case V:if(0===at)break t;et[it++]=n.length,at--,n.mode=G;break;case Y:if(n.wrap){for(;ct<32;){if(0===ot)break t;ot--,st|=tt[nt++]<>>=v=y>>>24,d-=v,0===(v=y>>>16&255))S[o++]=65535&y;else{if(!(16&v)){if(0==(64&v)){y=g[(65535&y)+(h&(1<>>=v,d-=v),d<15&&(h+=D[r++]<>>=v=y>>>24,d-=v,!(16&(v=y>>>16&255))){if(0==(64&v)){y=m[(65535&y)+(h&(1<c){t.msg="invalid distance too far back",n.mode=30;break t}if(h>>>=v,d-=v,w>(v=o-a)){if((v=w-v)>l&&n.sane){t.msg="invalid distance too far back",n.mode=30;break t}if(k=0,E=f,0===p){if(k+=u-v,v2;)S[o++]=E[k++],S[o++]=E[k++],S[o++]=E[k++],x-=3;x&&(S[o++]=E[k++],x>1&&(S[o++]=E[k++]))}else{k=o-w;do{S[o++]=S[k++],S[o++]=S[k++],S[o++]=S[k++],x-=3}while(x>2);x&&(S[o++]=S[k++],x>1&&(S[o++]=S[k++]))}break}}break}}while(r>3,h&=(1<<(d-=x<<3))-1,t.next_in=r,t.next_out=o,t.avail_in=r=1&&0===j[S];S--);if(O>S&&(O=S),0===S)return u[l++]=20971520,u[l++]=20971520,f.bits=1,0;for(D=1;D0&&(0===t||1!==S))return-1;for(L[1]=0,k=1;k<15;k++)L[k+1]=L[k]+j[k];for(E=0;E852||2===t&&T>592)return 1;for(;;){y=k-A,p[E]b?(v=M[N+p[E]],x=B[F+p[E]]):(v=96,x=0),h=1<>A)+(d-=h)]=y<<24|v<<16|x|0}while(0!==d);for(h=1<>=1;if(0!==h?(P&=h-1,P+=h):P=0,E++,0==--j[k]){if(k===S)break;k=e[n+p[E]]}if(k>O&&(P&m)!==g){for(0===A&&(A=O),_+=D,I=1<<(C=k-A);C+A852||2===t&&T>592)return 1;u[g=P&m]=O<<24|C<<16|_-l|0}}return 0!==P&&(u[_+P]=k-A<<24|64<<16|0),f.bits=O,0}},function(t,e,n){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},function(t,e){function n(t,e){if(!(t=t.replace(/\t+/g," ").trim()))return null;var n=t.indexOf(" ");if(-1===n)throw new Error("no named row at line "+e);var i=t.substring(0,n);t=(t=(t=(t=t.substring(n+1)).replace(/letter=[\'\"]\S+[\'\"]/gi,"")).split("=")).map(function(t){return t.trim().match(/(".*?"|[^"\s]+)+(?=\s*|\s*$)/g)});for(var o=[],a=0;a root";n=n.font,e.common=i(n.common[0].$),e.info=i(n.info[0].$);for(var r=0;r=0||t.indexOf(">")>=0||t.indexOf("<")>=0)},a=function(t){return""},i=function(t){return t.replace("]]>","]]]]>")},e.Builder=function(){function e(t){var e,n,i;for(e in this.options={},n=r[.2])s.call(n,e)&&(i=n[e],this.options[e]=i);for(e in t)s.call(t,e)&&(i=t[e],this.options[e]=i)}return e.prototype.buildObject=function(e){var n,i,c,u,l,p;return n=this.options.attrkey,i=this.options.charkey,1===Object.keys(e).length&&this.options.rootName===r[.2].rootName?e=e[l=Object.keys(e)[0]]:l=this.options.rootName,p=this,c=function(t,e){var r,u,l,f,h,d;if("object"!=typeof e)p.options.cdata&&o(e)?t.raw(a(e)):t.txt(e);else if(Array.isArray(e)){for(f in e)if(s.call(e,f))for(h in u=e[f])l=u[h],t=c(t.ele(h),l).up()}else for(h in e)if(s.call(e,h))if(u=e[h],h===n){if("object"==typeof u)for(r in u)d=u[r],t=t.att(r,d)}else if(h===i)t=p.options.cdata&&o(u)?t.raw(a(u)):t.txt(u);else if(Array.isArray(u))for(f in u)s.call(u,f)&&(t="string"==typeof(l=u[f])?p.options.cdata&&o(l)?t.ele(h).raw(a(l)).up():t.ele(h,l).up():c(t.ele(h),l).up());else"object"==typeof u?t=c(t.ele(h),u).up():"string"==typeof u&&p.options.cdata&&o(u)?t=t.ele(h).raw(a(u)).up():(null==u&&(u=""),t=t.ele(h,u.toString()).up());return t},u=t.create(l,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),c(u,e).end(this.options.renderOpts)},e}()}).call(this)},function(t,e,n){(function(){var e,r,i,o,a,s,c;c=n(15),a=c.assign,s=c.isFunction,e=n(199),r=n(200),o=n(52),i=n(201),t.exports.create=function(t,n,r,i){var o,s;if(null==t)throw new Error("Root element needs a name");return i=a({},n,r,i),s=(o=new e(i)).element(t),i.headless||(o.declaration(i),null==i.pubID&&null==i.sysID||o.doctype(i)),s},t.exports.begin=function(t,n,i){var o;return s(t)&&(n=(o=[t,n])[0],i=o[1],t={}),n?new r(t,n,i):new e(t)},t.exports.stringWriter=function(t){return new o(t)},t.exports.streamWriter=function(t,e){return new i(t,e)}}).call(this)},function(t,e,n){(function(){var e,r,i,o,a={}.hasOwnProperty;o=n(15).isPlainObject,e=n(9),i=n(90),r=n(52),t.exports=function(t){function n(t){n.__super__.constructor.call(this,null),t||(t={}),t.writer||(t.writer=new r),this.options=t,this.stringify=new i(t),this.isDocument=!0}return function(t,e){for(var n in e)a.call(e,n)&&(t[n]=e[n]);function r(){this.constructor=t}r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype}(n,e),n.prototype.end=function(t){var e;return t?o(t)&&(e=t,t=this.options.writer.set(e)):t=this.options.writer,t.document(this)},n.prototype.toString=function(t){return this.options.writer.set(t).document(this)},n}()}).call(this)},function(t,e,n){(function(){var e,r,i,o,a,s,c,u,l,p,f,h,d,g,m,_,b,y,v,x={}.hasOwnProperty;v=n(15),b=v.isObject,_=v.isFunction,y=v.isPlainObject,p=n(31),r=n(32),i=n(33),h=n(40),m=n(41),f=n(42),u=n(34),l=n(35),o=n(36),s=n(37),a=n(38),c=n(39),e=n(89),g=n(90),d=n(52),t.exports=function(){function t(t,e,n){var r;t||(t={}),t.writer?y(t.writer)&&(r=t.writer,t.writer=new d(r)):t.writer=new d(t),this.options=t,this.writer=t.writer,this.stringify=new g(t),this.onDataCallback=e||function(){},this.onEndCallback=n||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return t.prototype.node=function(t,e,n){var r;if(null==t)throw new Error("Missing node name");if(this.root&&-1===this.currentLevel)throw new Error("Document can only have one root node");return this.openCurrent(),t=t.valueOf(),null==e&&(e={}),e=e.valueOf(),b(e)||(n=(r=[e,n])[0],e=r[1]),this.currentNode=new p(this,t,e),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,null!=n&&this.text(n),this},t.prototype.element=function(t,e,n){return this.currentNode&&this.currentNode instanceof l?this.dtdElement.apply(this,arguments):this.node(t,e,n)},t.prototype.attribute=function(t,n){var r,i;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode");if(null!=t&&(t=t.valueOf()),b(t))for(r in t)x.call(t,r)&&(i=t[r],this.attribute(r,i));else _(n)&&(n=n.apply()),this.options.skipNullAttributes&&null==n||(this.currentNode.attributes[t]=new e(this,t,n));return this},t.prototype.text=function(t){var e;return this.openCurrent(),e=new m(this,t),this.onData(this.writer.text(e,this.currentLevel+1)),this},t.prototype.cdata=function(t){var e;return this.openCurrent(),e=new r(this,t),this.onData(this.writer.cdata(e,this.currentLevel+1)),this},t.prototype.comment=function(t){var e;return this.openCurrent(),e=new i(this,t),this.onData(this.writer.comment(e,this.currentLevel+1)),this},t.prototype.raw=function(t){var e;return this.openCurrent(),e=new h(this,t),this.onData(this.writer.raw(e,this.currentLevel+1)),this},t.prototype.instruction=function(t,e){var n,r,i,o,a;if(this.openCurrent(),null!=t&&(t=t.valueOf()),null!=e&&(e=e.valueOf()),Array.isArray(t))for(n=0,o=t.length;n=0;)this.up();return this.onEnd()},t.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},t.prototype.openNode=function(t){if(!t.isOpen)return!this.root&&0===this.currentLevel&&t instanceof p&&(this.root=t),this.onData(this.writer.openNode(t,this.currentLevel)),t.isOpen=!0},t.prototype.closeNode=function(t){if(!t.isClosed)return this.onData(this.writer.closeNode(t,this.currentLevel)),t.isClosed=!0},t.prototype.onData=function(t){return this.documentStarted=!0,this.onDataCallback(t)},t.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},t.prototype.ele=function(){return this.element.apply(this,arguments)},t.prototype.nod=function(t,e,n){return this.node(t,e,n)},t.prototype.txt=function(t){return this.text(t)},t.prototype.dat=function(t){return this.cdata(t)},t.prototype.com=function(t){return this.comment(t)},t.prototype.ins=function(t,e){return this.instruction(t,e)},t.prototype.dec=function(t,e,n){return this.declaration(t,e,n)},t.prototype.dtd=function(t,e,n){return this.doctype(t,e,n)},t.prototype.e=function(t,e,n){return this.element(t,e,n)},t.prototype.n=function(t,e,n){return this.node(t,e,n)},t.prototype.t=function(t){return this.text(t)},t.prototype.d=function(t){return this.cdata(t)},t.prototype.c=function(t){return this.comment(t)},t.prototype.r=function(t){return this.raw(t)},t.prototype.i=function(t,e){return this.instruction(t,e)},t.prototype.att=function(){return this.currentNode&&this.currentNode instanceof l?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},t.prototype.a=function(){return this.currentNode&&this.currentNode instanceof l?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},t.prototype.ent=function(t,e){return this.entity(t,e)},t.prototype.pent=function(t,e){return this.pEntity(t,e)},t.prototype.not=function(t,e){return this.notation(t,e)},t}()}).call(this)},function(t,e,n){(function(){var e,r,i,o,a,s,c,u,l,p,f,h,d,g={}.hasOwnProperty;c=n(34),u=n(35),e=n(32),r=n(33),l=n(31),f=n(40),h=n(41),p=n(42),i=n(36),o=n(38),a=n(37),s=n(39),d=n(91),t.exports=function(t){function n(t,e){n.__super__.constructor.call(this,e),this.stream=t}return function(t,e){for(var n in e)g.call(e,n)&&(t[n]=e[n]);function r(){this.constructor=t}r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype}(n,d),n.prototype.document=function(t){var e,n,i,o,a,s,l,f;for(n=0,o=(s=t.children).length;n"+this.endline(t))},n.prototype.comment=function(t,e){return this.stream.write(this.space(e)+"\x3c!-- "+t.text+" --\x3e"+this.endline(t))},n.prototype.declaration=function(t,e){return this.stream.write(this.space(e)),this.stream.write('"),this.stream.write(this.endline(t))},n.prototype.docType=function(t,n){var c,u,l,f;if(n||(n=0),this.stream.write(this.space(n)),this.stream.write("0){for(this.stream.write(" ["),this.stream.write(this.endline(t)),u=0,l=(f=t.children).length;u"),this.stream.write(this.endline(t))},n.prototype.element=function(t,n){var i,o,a,s,c,u,d,m;for(c in n||(n=0),m=this.space(n),this.stream.write(m+"<"+t.name),u=t.attributes)g.call(u,c)&&(i=u[c],this.attribute(i));if(0===t.children.length||t.children.every(function(t){return""===t.value}))this.allowEmpty?this.stream.write(">"):this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&1===t.children.length&&null!=t.children[0].value)this.stream.write(">"),this.stream.write(t.children[0].value),this.stream.write("");else{for(this.stream.write(">"+this.newline),a=0,s=(d=t.children).length;a")}return this.stream.write(this.endline(t))},n.prototype.processingInstruction=function(t,e){return this.stream.write(this.space(e)+""+this.endline(t))},n.prototype.raw=function(t,e){return this.stream.write(this.space(e)+t.value+this.endline(t))},n.prototype.text=function(t,e){return this.stream.write(this.space(e)+t.value+this.endline(t))},n.prototype.dtdAttList=function(t,e){return this.stream.write(this.space(e)+""+this.endline(t))},n.prototype.dtdElement=function(t,e){return this.stream.write(this.space(e)+""+this.endline(t))},n.prototype.dtdEntity=function(t,e){return this.stream.write(this.space(e)+""+this.endline(t))},n.prototype.dtdNotation=function(t,e){return this.stream.write(this.space(e)+""+this.endline(t))},n.prototype.endline=function(t){return t.isLastRootNode?"":this.newline},n}()}).call(this)},function(t,e,n){(function(){"use strict";var t,r,i,o,a,s,c,u,l=function(t,e){return function(){return t.apply(e,arguments)}},p={}.hasOwnProperty;c=n(203),i=n(17),t=n(204),s=n(93),u=n(205).setImmediate,r=n(51).defaults,o=function(t){return"object"==typeof t&&null!=t&&0===Object.keys(t).length},a=function(t,e,n){var r,i;for(r=0,i=t.length;r0&&(c[t.options.childkey]=l),l=c;return r.length>0?t.assignOrPush(d,u,l):(t.options.explicitRoot&&(h=l,(l={})[u]=h),t.resultObject=l,t.saxParser.ended=!0,t.emit("end",t.resultObject))}}(this),n=function(t){return function(n){var i,o;if(o=r[r.length-1])return o[e]+=n,t.options.explicitChildren&&t.options.preserveChildrenOrder&&t.options.charsAsChildren&&(t.options.includeWhiteChars||""!==n.replace(/\\n/g,"").trim())&&(o[t.options.childkey]=o[t.options.childkey]||[],(i={"#name":"__text__"})[e]=n,t.options.normalize&&(i[e]=i[e].replace(/\s{2,}/g," ").trim()),o[t.options.childkey].push(i)),o}}(this),this.saxParser.ontext=n,this.saxParser.oncdata=function(t){var e;if(e=n(t))return e.cdata=!0}},f.prototype.parseString=function(e,n){var r;null!=n&&"function"==typeof n&&(this.on("end",function(t){return this.reset(),n(null,t)}),this.on("error",function(t){return this.reset(),n(t)}));try{return""===(e=e.toString()).trim()?(this.emit("end",null),!0):(e=t.stripBOM(e),this.options.async?(this.remaining=e,u(this.processAsync),this.saxParser):this.saxParser.write(e).close())}catch(t){if(r=t,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",r),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw r}},f}(),e.parseString=function(t,n,r){var i,o;return null!=r?("function"==typeof r&&(i=r),"object"==typeof n&&(o=n)):("function"==typeof n&&(i=n),o={}),new e.Parser(o).parseString(t,i)}}).call(this)},function(t,e,n){!function(t){t.parser=function(t,e){return new i(t,e)},t.SAXParser=i,t.SAXStream=a,t.createStream=function(t,e){return new a(t,e)},t.MAX_BUFFER_LENGTH=65536;var e,r=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function i(e,n){if(!(this instanceof i))return new i(e,n);!function(t){for(var e=0,n=r.length;e"===i?(O(this,"onsgmldeclaration",this.sgmlDecl),this.sgmlDecl="",this.state=E.TEXT):_(i)?(this.state=E.SGML_DECL_QUOTED,this.sgmlDecl+=i):this.sgmlDecl+=i;continue;case E.SGML_DECL_QUOTED:i===this.q&&(this.state=E.SGML_DECL,this.q=""),this.sgmlDecl+=i;continue;case E.DOCTYPE:">"===i?(this.state=E.TEXT,O(this,"ondoctype",this.doctype),this.doctype=!0):(this.doctype+=i,"["===i?this.state=E.DOCTYPE_DTD:_(i)&&(this.state=E.DOCTYPE_QUOTED,this.q=i));continue;case E.DOCTYPE_QUOTED:this.doctype+=i,i===this.q&&(this.q="",this.state=E.DOCTYPE);continue;case E.DOCTYPE_DTD:this.doctype+=i,"]"===i?this.state=E.DOCTYPE:_(i)&&(this.state=E.DOCTYPE_DTD_QUOTED,this.q=i);continue;case E.DOCTYPE_DTD_QUOTED:this.doctype+=i,i===this.q&&(this.state=E.DOCTYPE_DTD,this.q="");continue;case E.COMMENT:"-"===i?this.state=E.COMMENT_ENDING:this.comment+=i;continue;case E.COMMENT_ENDING:"-"===i?(this.state=E.COMMENT_ENDED,this.comment=A(this.opt,this.comment),this.comment&&O(this,"oncomment",this.comment),this.comment=""):(this.comment+="-"+i,this.state=E.COMMENT);continue;case E.COMMENT_ENDED:">"!==i?(P(this,"Malformed comment"),this.comment+="--"+i,this.state=E.COMMENT):this.state=E.TEXT;continue;case E.CDATA:"]"===i?this.state=E.CDATA_ENDING:this.cdata+=i;continue;case E.CDATA_ENDING:"]"===i?this.state=E.CDATA_ENDING_2:(this.cdata+="]"+i,this.state=E.CDATA);continue;case E.CDATA_ENDING_2:">"===i?(this.cdata&&O(this,"oncdata",this.cdata),O(this,"onclosecdata"),this.cdata="",this.state=E.TEXT):"]"===i?this.cdata+="]":(this.cdata+="]]"+i,this.state=E.CDATA);continue;case E.PROC_INST:"?"===i?this.state=E.PROC_INST_ENDING:m(i)?this.state=E.PROC_INST_BODY:this.procInstName+=i;continue;case E.PROC_INST_BODY:if(!this.procInstBody&&m(i))continue;"?"===i?this.state=E.PROC_INST_ENDING:this.procInstBody+=i;continue;case E.PROC_INST_ENDING:">"===i?(O(this,"onprocessinginstruction",{name:this.procInstName,body:this.procInstBody}),this.procInstName=this.procInstBody="",this.state=E.TEXT):(this.procInstBody+="?"+i,this.state=E.PROC_INST_BODY);continue;case E.OPEN_TAG:y(h,i)?this.tagName+=i:(B(this),">"===i?L(this):"/"===i?this.state=E.OPEN_TAG_SLASH:(m(i)||P(this,"Invalid character in tag name"),this.state=E.ATTRIB));continue;case E.OPEN_TAG_SLASH:">"===i?(L(this,!0),M(this)):(P(this,"Forward-slash in opening tag not followed by >"),this.state=E.ATTRIB);continue;case E.ATTRIB:if(m(i))continue;">"===i?L(this):"/"===i?this.state=E.OPEN_TAG_SLASH:y(f,i)?(this.attribName=i,this.attribValue="",this.state=E.ATTRIB_NAME):P(this,"Invalid attribute name");continue;case E.ATTRIB_NAME:"="===i?this.state=E.ATTRIB_VALUE:">"===i?(P(this,"Attribute without value"),this.attribValue=this.attribName,j(this),L(this)):m(i)?this.state=E.ATTRIB_NAME_SAW_WHITE:y(h,i)?this.attribName+=i:P(this,"Invalid attribute name");continue;case E.ATTRIB_NAME_SAW_WHITE:if("="===i)this.state=E.ATTRIB_VALUE;else{if(m(i))continue;P(this,"Attribute without value"),this.tag.attributes[this.attribName]="",this.attribValue="",O(this,"onattribute",{name:this.attribName,value:""}),this.attribName="",">"===i?L(this):y(f,i)?(this.attribName=i,this.state=E.ATTRIB_NAME):(P(this,"Invalid attribute name"),this.state=E.ATTRIB)}continue;case E.ATTRIB_VALUE:if(m(i))continue;_(i)?(this.q=i,this.state=E.ATTRIB_VALUE_QUOTED):(P(this,"Unquoted attribute value"),this.state=E.ATTRIB_VALUE_UNQUOTED,this.attribValue=i);continue;case E.ATTRIB_VALUE_QUOTED:if(i!==this.q){"&"===i?this.state=E.ATTRIB_VALUE_ENTITY_Q:this.attribValue+=i;continue}j(this),this.q="",this.state=E.ATTRIB_VALUE_CLOSED;continue;case E.ATTRIB_VALUE_CLOSED:m(i)?this.state=E.ATTRIB:">"===i?L(this):"/"===i?this.state=E.OPEN_TAG_SLASH:y(f,i)?(P(this,"No whitespace between attributes"),this.attribName=i,this.attribValue="",this.state=E.ATTRIB_NAME):P(this,"Invalid attribute name");continue;case E.ATTRIB_VALUE_UNQUOTED:if(!b(i)){"&"===i?this.state=E.ATTRIB_VALUE_ENTITY_U:this.attribValue+=i;continue}j(this),">"===i?L(this):this.state=E.ATTRIB;continue;case E.CLOSE_TAG:if(this.tagName)">"===i?M(this):y(h,i)?this.tagName+=i:this.script?(this.script+=""===i?M(this):P(this,"Invalid characters in closing tag");continue;case E.TEXT_ENTITY:case E.ATTRIB_VALUE_ENTITY_Q:case E.ATTRIB_VALUE_ENTITY_U:var u,l;switch(this.state){case E.TEXT_ENTITY:u=E.TEXT,l="textNode";break;case E.ATTRIB_VALUE_ENTITY_Q:u=E.ATTRIB_VALUE_QUOTED,l="attribValue";break;case E.ATTRIB_VALUE_ENTITY_U:u=E.ATTRIB_VALUE_UNQUOTED,l="attribValue"}";"===i?(this[l]+=N(this),this.entity="",this.state=u):y(this.entity.length?g:d,i)?this.entity+=i:(P(this,"Invalid character in entity name"),this[l]+="&"+this.entity+i,this.entity="",this.state=u);continue;default:throw new Error(this,"Unknown state: "+this.state)}this.position>=this.bufferCheckPosition&&function(e){for(var n=Math.max(t.MAX_BUFFER_LENGTH,10),i=0,o=0,a=r.length;on)switch(r[o]){case"textNode":C(e);break;case"cdata":O(e,"oncdata",e.cdata),e.cdata="";break;case"script":O(e,"onscript",e.script),e.script="";break;default:I(e,"Max buffer length exceeded: "+r[o])}i=Math.max(i,s)}var c=t.MAX_BUFFER_LENGTH-i;e.bufferCheckPosition=c+e.position}(this);return this} -/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){var t;C(t=this),""!==t.cdata&&(O(t,"oncdata",t.cdata),t.cdata=""),""!==t.script&&(O(t,"onscript",t.script),t.script="")}};try{e=n(7).Stream}catch(t){e=function(){}}var o=t.EVENTS.filter(function(t){return"error"!==t&&"end"!==t});function a(t,n){if(!(this instanceof a))return new a(t,n);e.apply(this),this._parser=new i(t,n),this.writable=!0,this.readable=!0;var r=this;this._parser.onend=function(){r.emit("end")},this._parser.onerror=function(t){r.emit("error",t),r._parser.error=null},this._decoder=null,o.forEach(function(t){Object.defineProperty(r,"on"+t,{get:function(){return r._parser["on"+t]},set:function(e){if(!e)return r.removeAllListeners(t),r._parser["on"+t]=e,e;r.on(t,e)},enumerable:!0,configurable:!1})})}a.prototype=Object.create(e.prototype,{constructor:{value:a}}),a.prototype.write=function(t){if("function"==typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(t)){if(!this._decoder){var e=n(92).StringDecoder;this._decoder=new e("utf8")}t=this._decoder.write(t)}return this._parser.write(t.toString()),this.emit("data",t),!0},a.prototype.end=function(t){return t&&t.length&&this.write(t),this._parser.end(),!0},a.prototype.on=function(t,n){var r=this;return r._parser["on"+t]||-1===o.indexOf(t)||(r._parser["on"+t]=function(){var e=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);e.splice(0,0,t),r.emit.apply(r,e)}),e.prototype.on.call(r,t,n)};var s="[CDATA[",c="DOCTYPE",u="http://www.w3.org/XML/1998/namespace",l="http://www.w3.org/2000/xmlns/",p={xml:u,xmlns:l},f=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,h=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,d=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,g=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function m(t){return" "===t||"\n"===t||"\r"===t||"\t"===t}function _(t){return'"'===t||"'"===t}function b(t){return">"===t||m(t)}function y(t,e){return t.test(e)}function v(t,e){return!y(t,e)}var x,w,k,E=0;for(var D in t.STATE={BEGIN:E++,BEGIN_WHITESPACE:E++,TEXT:E++,TEXT_ENTITY:E++,OPEN_WAKA:E++,SGML_DECL:E++,SGML_DECL_QUOTED:E++,DOCTYPE:E++,DOCTYPE_QUOTED:E++,DOCTYPE_DTD:E++,DOCTYPE_DTD_QUOTED:E++,COMMENT_STARTING:E++,COMMENT:E++,COMMENT_ENDING:E++,COMMENT_ENDED:E++,CDATA:E++,CDATA_ENDING:E++,CDATA_ENDING_2:E++,PROC_INST:E++,PROC_INST_BODY:E++,PROC_INST_ENDING:E++,OPEN_TAG:E++,OPEN_TAG_SLASH:E++,ATTRIB:E++,ATTRIB_NAME:E++,ATTRIB_NAME_SAW_WHITE:E++,ATTRIB_VALUE:E++,ATTRIB_VALUE_QUOTED:E++,ATTRIB_VALUE_CLOSED:E++,ATTRIB_VALUE_UNQUOTED:E++,ATTRIB_VALUE_ENTITY_Q:E++,ATTRIB_VALUE_ENTITY_U:E++,CLOSE_TAG:E++,CLOSE_TAG_SAW_WHITE:E++,SCRIPT:E++,SCRIPT_ENDING:E++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach(function(e){var n=t.ENTITIES[e],r="number"==typeof n?String.fromCharCode(n):n;t.ENTITIES[e]=r}),t.STATE)t.STATE[t.STATE[D]]=D;function S(t,e,n){t[e]&&t[e](n)}function O(t,e,n){t.textNode&&C(t),S(t,e,n)}function C(t){t.textNode=A(t.opt,t.textNode),t.textNode&&S(t,"ontext",t.textNode),t.textNode=""}function A(t,e){return t.trim&&(e=e.trim()),t.normalize&&(e=e.replace(/\s+/g," ")),e}function I(t,e){return C(t),t.trackPosition&&(e+="\nLine: "+t.line+"\nColumn: "+t.column+"\nChar: "+t.c),e=new Error(e),t.error=e,S(t,"onerror",e),t}function T(t){return t.sawRoot&&!t.closedRoot&&P(t,"Unclosed root tag"),t.state!==E.BEGIN&&t.state!==E.BEGIN_WHITESPACE&&t.state!==E.TEXT&&I(t,"Unexpected end"),C(t),t.c="",t.closed=!0,S(t,"onend"),i.call(t,t.strict,t.opt),t}function P(t,e){if("object"!=typeof t||!(t instanceof i))throw new Error("bad call to strictFail");t.strict&&I(t,e)}function B(t){t.strict||(t.tagName=t.tagName[t.looseCase]());var e=t.tags[t.tags.length-1]||t,n=t.tag={name:t.tagName,attributes:{}};t.opt.xmlns&&(n.ns=e.ns),t.attribList.length=0,O(t,"onopentagstart",n)}function F(t,e){var n=t.indexOf(":")<0?["",t]:t.split(":"),r=n[0],i=n[1];return e&&"xmlns"===t&&(r="xmlns",i=""),{prefix:r,local:i}}function j(t){if(t.strict||(t.attribName=t.attribName[t.looseCase]()),-1!==t.attribList.indexOf(t.attribName)||t.tag.attributes.hasOwnProperty(t.attribName))t.attribName=t.attribValue="";else{if(t.opt.xmlns){var e=F(t.attribName,!0),n=e.prefix,r=e.local;if("xmlns"===n)if("xml"===r&&t.attribValue!==u)P(t,"xml: prefix must be bound to "+u+"\nActual: "+t.attribValue);else if("xmlns"===r&&t.attribValue!==l)P(t,"xmlns: prefix must be bound to "+l+"\nActual: "+t.attribValue);else{var i=t.tag,o=t.tags[t.tags.length-1]||t;i.ns===o.ns&&(i.ns=Object.create(o.ns)),i.ns[r]=t.attribValue}t.attribList.push([t.attribName,t.attribValue])}else t.tag.attributes[t.attribName]=t.attribValue,O(t,"onattribute",{name:t.attribName,value:t.attribValue});t.attribName=t.attribValue=""}}function L(t,e){if(t.opt.xmlns){var n=t.tag,r=F(t.tagName);n.prefix=r.prefix,n.local=r.local,n.uri=n.ns[r.prefix]||"",n.prefix&&!n.uri&&(P(t,"Unbound namespace prefix: "+JSON.stringify(t.tagName)),n.uri=r.prefix);var i=t.tags[t.tags.length-1]||t;n.ns&&i.ns!==n.ns&&Object.keys(n.ns).forEach(function(e){O(t,"onopennamespace",{prefix:e,uri:n.ns[e]})});for(var o=0,a=t.attribList.length;o",t.tagName="",void(t.state=E.SCRIPT);O(t,"onscript",t.script),t.script=""}var e=t.tags.length,n=t.tagName;t.strict||(n=n[t.looseCase]());for(var r=n;e--;){if(t.tags[e].name===r)break;P(t,"Unexpected close tag")}if(e<0)return P(t,"Unmatched closing tag: "+t.tagName),t.textNode+="",void(t.state=E.TEXT);t.tagName=n;for(var i=t.tags.length;i-- >e;){var o=t.tag=t.tags.pop();t.tagName=t.tag.name,O(t,"onclosetag",t.tagName);var a={};for(var s in o.ns)a[s]=o.ns[s];var c=t.tags[t.tags.length-1]||t;t.opt.xmlns&&o.ns!==c.ns&&Object.keys(o.ns).forEach(function(e){var n=o.ns[e];O(t,"onclosenamespace",{prefix:e,uri:n})})}0===e&&(t.closedRoot=!0),t.tagName=t.attribValue=t.attribName="",t.attribList.length=0,t.state=E.TEXT}function N(t){var e,n=t.entity,r=n.toLowerCase(),i="";return t.ENTITIES[n]?t.ENTITIES[n]:t.ENTITIES[r]?t.ENTITIES[r]:("#"===(n=r).charAt(0)&&("x"===n.charAt(1)?(n=n.slice(2),i=(e=parseInt(n,16)).toString(16)):(n=n.slice(1),i=(e=parseInt(n,10)).toString(10))),n=n.replace(/^0+/,""),isNaN(e)||i.toLowerCase()!==n?(P(t,"Invalid character entity"),"&"+t.entity+";"):String.fromCodePoint(e))}function z(t,e){"<"===e?(t.state=E.OPEN_WAKA,t.startTagPosition=t.position):m(e)||(P(t,"Non-whitespace before first tag."),t.textNode=e,t.state=E.TEXT)}function R(t,e){var n="";return e1114111||w(s)!==s)throw RangeError("Invalid code point: "+s);s<=65535?r.push(s):(t=55296+((s-=65536)>>10),e=s%1024+56320,r.push(t,e)),(i+1===o||r.length>n)&&(a+=x.apply(null,r),r.length=0)}return a},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:k,configurable:!0,writable:!0}):String.fromCodePoint=k)}(e)},function(t,e){(function(){"use strict";e.stripBOM=function(t){return"\ufeff"===t[0]?t.substring(1):t}}).call(this)},function(t,e){t.exports=require("timers")},function(t,e){t.exports=function(t){for(var e in"chasrset"in t&&(t.charset=t.chasrset,delete t.chasrset),t)"face"!==e&&"charset"!==e&&(t[e]="padding"===e||"spacing"===e?t[e].split(",").map(function(t){return parseInt(t,10)}):parseInt(t[e],10));return t}},function(t,e){var n=[66,77,70];function r(t,e,n){if(n>e.length-1)return 0;var r=e.readUInt8(n++),o=e.readInt32LE(n);switch(n+=4,r){case 1:t.info=function(t,e){var n={};n.size=t.readInt16LE(e);var r=t.readUInt8(e+2);n.smooth=r>>7&1,n.unicode=r>>6&1,n.italic=r>>5&1,n.bold=r>>4&1,r>>3&1&&(n.fixedHeight=1);return n.charset=t.readUInt8(e+3)||"",n.stretchH=t.readUInt16LE(e+4),n.aa=t.readUInt8(e+6),n.padding=[t.readInt8(e+7),t.readInt8(e+8),t.readInt8(e+9),t.readInt8(e+10)],n.spacing=[t.readInt8(e+11),t.readInt8(e+12)],n.outline=t.readUInt8(e+13),n.face=function(t,e){return i(t,e).toString("utf8")}(t,e+14),n}(e,n);break;case 2:t.common=function(t,e){var n={};n.lineHeight=t.readUInt16LE(e),n.base=t.readUInt16LE(e+2),n.scaleW=t.readUInt16LE(e+4),n.scaleH=t.readUInt16LE(e+6),n.pages=t.readUInt16LE(e+8);t.readUInt8(e+10);return n.packed=0,n.alphaChnl=t.readUInt8(e+11),n.redChnl=t.readUInt8(e+12),n.greenChnl=t.readUInt8(e+13),n.blueChnl=t.readUInt8(e+14),n}(e,n);break;case 3:t.pages=function(t,e,n){for(var r=[],o=i(t,e),a=o.length+1,s=n/a,c=0;c3)throw new Error("Only supports BMFont Binary v3 (BMFont App v1.10)");for(var i={kernings:[],chars:[]},o=0;o<5;o++)e+=r(i,t,e);return i}},function(t,e,n){n(1);var r=n(5);function i(){this.types=Object.create(null),this.extensions=Object.create(null)}i.prototype.define=function(t){for(var e in t){for(var n=t[e],r=0;r4&&r(t.slice(0,4),i)}},function(t,e,n){var r=n(4).Buffer;t.exports=function(t,e){if(r.isBuffer(t)&&r.isBuffer(e)){if("function"==typeof t.equals)return t.equals(e);if(t.length!==e.length)return!1;for(var n=0;n=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},e.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),e.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],e.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},e.enable(r())},function(t,e){var n=1e3,r=60*n,i=60*r,o=24*i,a=365.25*o;function s(t,e,n){if(!(t0)return function(t){if((t=String(t)).length>100)return;var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(!e)return;var s=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return s*a;case"days":case"day":case"d":return s*o;case"hours":case"hour":case"hrs":case"hr":case"h":return s*i;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(t);if("number"===u&&!1===isNaN(t))return e.long?s(c=t,o,"day")||s(c,i,"hour")||s(c,r,"minute")||s(c,n,"second")||c+" ms":function(t){if(t>=o)return Math.round(t/o)+"d";if(t>=i)return Math.round(t/i)+"h";if(t>=r)return Math.round(t/r)+"m";if(t>=n)return Math.round(t/n)+"s";return t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},function(t,e,n){var r=n(219),i=n(3);(e=t.exports=n(94)).init=function(t){t.inspectOpts={};for(var n=Object.keys(e.inspectOpts),r=0;ro&&(a=t.slice(o),t=t.slice(0,o)),r?r.end(t):i.append(t),this._overflow=a,this._onparse()}},f.prototype._final=function(t){if(this._partial)return this.destroy(new Error("Unexpected end of data"));t()},t.exports=f},function(t,e,n){var r=n(223),i=n(3),o=n(22).Buffer;function a(t){if(!(this instanceof a))return new a(t);if(this._bufs=[],this.length=0,"function"==typeof t){this._callback=t;var e=function(t){this._callback&&(this._callback(t),this._callback=null)}.bind(this);this.on("pipe",function(t){t.on("error",e)}),this.on("unpipe",function(t){t.removeListener("error",e)})}else this.append(t);r.call(this)}i.inherits(a,r),a.prototype._offset=function(t){var e,n=0,r=0;if(0===t)return[0,0];for(;rthis.length)&&(r=this.length),n>=this.length)return t||o.alloc(0);if(r<=0)return t||o.alloc(0);var i,a,s=!!t,c=this._offset(n),u=r-n,l=u,p=s&&e||0,f=c[1];if(0===n&&r==this.length){if(!s)return 1===this._bufs.length?this._bufs[0]:o.concat(this._bufs,this.length);for(a=0;a(i=this._bufs[a].length-f))){this._bufs[a].copy(t,p,f,f+l);break}this._bufs[a].copy(t,p,f),p+=i,l-=i,f&&(f=0)}return t},a.prototype.shallowSlice=function(t,e){t=t||0,e=e||this.length,t<0&&(t+=this.length),e<0&&(e+=this.length);var n=this._offset(t),r=this._offset(e),i=this._bufs.slice(n[0],r[0]+1);return 0==r[1]?i.pop():i[i.length-1]=i[i.length-1].slice(0,r[1]),0!=n[1]&&(i[0]=i[0].slice(n[1])),new a(i)},a.prototype.toString=function(t,e,n){return this.slice(e,n).toString(t)},a.prototype.consume=function(t){for(;this._bufs.length;){if(!(t>=this._bufs[0].length)){this._bufs[0]=this._bufs[0].slice(t),this.length-=t;break}t-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift()}return this},a.prototype.duplicate=function(){for(var t=0,e=new a;t0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n},t.prototype.concat=function(t){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var e,n,i,o=r.allocUnsafe(t>>>0),a=this.head,s=0;a;)e=a.data,n=o,i=s,e.copy(n,i),s+=a.data.length,a=a.next;return o},t}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var t=i.inspect({length:this.length});return this.constructor.name+" "+t})},function(t,e,n){t.exports=n(3).deprecate},function(t,e,n){"use strict";t.exports=o;var r=n(102),i=n(23);function o(t){if(!(this instanceof o))return new o(t);r.call(this,t)}i.inherits=n(18),i.inherits(o,r),o.prototype._transform=function(t,e,n){n(null,t)}},function(t,e){t.exports=function(){for(var t={},e=0;et.length)throw new RangeError("Out of range index");return n>>>=0,(r=void 0===r?t.length:r>>>0)>n&&t.fill(e,n,r),t}t.exports=function(t,e,i,o,a){if(n)return t.fill(e,i,o,a);if("number"==typeof e)return r(t,e,i,o);if("string"==typeof e){if("string"==typeof i?(a=i,i=0,o=t.length):"string"==typeof o&&(a=o,o=t.length),void 0!==a&&"string"!=typeof a)throw new TypeError("encoding must be a string");if("latin1"===a&&(a="binary"),"string"==typeof a&&!Buffer.isEncoding(a))throw new TypeError("Unknown encoding: "+a);if(""===e)return r(t,0,i,o);if(function(t){return 1===t.length&&t.charCodeAt(0)<256}(e))return r(t,e.charCodeAt(0),i,o);e=new Buffer(e,a)}return Buffer.isBuffer(e)?function(t,e,n,r){if(n<0||r>t.length)throw new RangeError("Out of range index");if(r<=n)return t;n>>>=0,r=void 0===r?t.length:r>>>0;for(var i=n,o=e.length;i<=r-o;)e.copy(t,i),i+=o;return i!==r&&e.copy(t,i,0,r-i),t}(t,e,i,o):r(t,0,i,o)}},function(t,e){t.exports=function(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative');return Buffer.allocUnsafe?Buffer.allocUnsafe(t):new Buffer(t)}},function(t,e,n){var r=n(233),i=n(131),o=n(3),a=n(105),s=n(104),c=n(11).Readable,u=n(11).Writable,l=n(92).StringDecoder,p=n(103),f=parseInt("755",8),h=parseInt("644",8),d=a(1024),g=function(){},m=function(t,e){(e&=511)&&t.push(d.slice(0,512-e))};var _=function(t){u.call(this),this.written=0,this._to=t,this._destroyed=!1};o.inherits(_,u),_.prototype._write=function(t,e,n){if(this.written+=t.length,this._to.push(t))return n();this._to._drain=n},_.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var b=function(){u.call(this),this.linkname="",this._decoder=new l("utf-8"),this._destroyed=!1};o.inherits(b,u),b.prototype._write=function(t,e,n){this.linkname+=this._decoder.write(t),n()},b.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var y=function(){u.call(this),this._destroyed=!1};o.inherits(y,u),y.prototype._write=function(t,e,n){n(new Error("No body allowed for this entry"))},y.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var v=function(t){if(!(this instanceof v))return new v(t);c.call(this,t),this._drain=g,this._finalized=!1,this._finalizing=!1,this._destroyed=!1,this._stream=null};o.inherits(v,c),v.prototype.entry=function(t,e,n){if(this._stream)throw new Error("already piping an entry");if(!this._finalized&&!this._destroyed){"function"==typeof e&&(n=e,e=null),n||(n=g);var o=this;if(t.size&&"symlink"!==t.type||(t.size=0),t.type||(t.type=function(t){switch(t&r.S_IFMT){case r.S_IFBLK:return"block-device";case r.S_IFCHR:return"character-device";case r.S_IFDIR:return"directory";case r.S_IFIFO:return"fifo";case r.S_IFLNK:return"symlink"}return"file"}(t.mode)),t.mode||(t.mode="directory"===t.type?f:h),t.uid||(t.uid=0),t.gid||(t.gid=0),t.mtime||(t.mtime=new Date),"string"==typeof e&&(e=s(e)),Buffer.isBuffer(e))return t.size=e.length,this._encode(t),this.push(e),m(o,t.size),process.nextTick(n),new y;if("symlink"===t.type&&!t.linkname){var a=new b;return i(a,function(e){if(e)return o.destroy(),n(e);t.linkname=a.linkname,o._encode(t),n()}),a}if(this._encode(t),"file"!==t.type&&"contiguous-file"!==t.type)return process.nextTick(n),new y;var c=new _(this);return this._stream=c,i(c,function(e){return o._stream=null,e?(o.destroy(),n(e)):c.written!==t.size?(o.destroy(),n(new Error("size mismatch"))):(m(o,t.size),o._finalizing&&o.finalize(),void n())}),c}},v.prototype.finalize=function(){this._stream?this._finalizing=!0:this._finalized||(this._finalized=!0,this.push(d),this.push(null))},v.prototype.destroy=function(t){this._destroyed||(this._destroyed=!0,t&&this.emit("error",t),this.emit("close"),this._stream&&this._stream.destroy&&this._stream.destroy())},v.prototype._encode=function(t){if(!t.pax){var e=p.encode(t);if(e)return void this.push(e)}this._encodePax(t)},v.prototype._encodePax=function(t){var e=p.encodePax({name:t.name,linkname:t.linkname,pax:t.pax}),n={name:"PaxHeader",mode:t.mode,uid:t.uid,gid:t.gid,size:e.length,mtime:t.mtime,type:"pax-header",linkname:t.linkname&&"PaxHeader",uname:t.uname,gname:t.gname,devmajor:t.devmajor,devminor:t.devminor};this.push(p.encode(n)),this.push(e),m(this,e.length),n.size=t.size,n.type=t.type,this.push(p.encode(n))},v.prototype._read=function(t){var e=this._drain;this._drain=g,e()},t.exports=v},function(t,e,n){t.exports=n(5).constants||n(66)},function(t,e,n){"use strict";const r=n(53),i=n(235),o=n(47),a=n(236),s=n(241);t.exports=()=>t=>Buffer.isBuffer(t)||o(t)?!Buffer.isBuffer(t)||i(t)&&"bz2"===i(t).ext?Buffer.isBuffer(t)?r()(a.decode(t)):r()(t.pipe(s())):Promise.resolve([]):Promise.reject(new TypeError(`Expected a Buffer or Stream, got ${typeof t}`))},function(t,e,n){"use strict";const r=t=>Array.from(t).map(t=>t.charCodeAt(0)),i=r("META-INF/mozilla.rsa"),o=r("[Content_Types].xml"),a=r("_rels/.rels");t.exports=t=>{const e=new Uint8Array(t);if(!(e&&e.length>1))return null;const n=(t,n)=>{n=Object.assign({offset:0},n);for(let r=0;rt.findIndex((t,e,n)=>80===n[e]&&75===n[e+1]&&3===n[e+2]&&4===n[e+3]),i=t(e.subarray(4,2004));if(-1!==i){const o=t(e.subarray(i+8,i+8+1e3));if(-1!==o){const t=8+i+o+30;if(n(r("word/"),{offset:t}))return{ext:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"};if(n(r("ppt/"),{offset:t}))return{ext:"pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"};if(n(r("xl/"),{offset:t}))return{ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}}}}}if(n([80,75])&&(3===e[2]||5===e[2]||7===e[2])&&(4===e[3]||6===e[3]||8===e[3]))return{ext:"zip",mime:"application/zip"};if(n([117,115,116,97,114],{offset:257}))return{ext:"tar",mime:"application/x-tar"};if(n([82,97,114,33,26,7])&&(0===e[6]||1===e[6]))return{ext:"rar",mime:"application/x-rar-compressed"};if(n([31,139,8]))return{ext:"gz",mime:"application/gzip"};if(n([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(n([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(n([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(n([51,103,112,53])||n([0,0,0])&&n([102,116,121,112],{offset:4})&&(n([109,112,52,49],{offset:8})||n([109,112,52,50],{offset:8})||n([105,115,111,109],{offset:8})||n([105,115,111,50],{offset:8})||n([109,109,112,52],{offset:8})||n([77,52,86],{offset:8})||n([100,97,115,104],{offset:8})))return{ext:"mp4",mime:"video/mp4"};if(n([77,84,104,100]))return{ext:"mid",mime:"audio/midi"};if(n([26,69,223,163])){const t=e.subarray(4,4100),n=t.findIndex((t,e,n)=>66===n[e]&&130===n[e+1]);if(-1!==n){const e=n+3,r=n=>Array.from(n).every((n,r)=>t[e+r]===n.charCodeAt(0));if(r("matroska"))return{ext:"mkv",mime:"video/x-matroska"};if(r("webm"))return{ext:"webm",mime:"video/webm"}}}if(n([0,0,0,20,102,116,121,112,113,116,32,32])||n([102,114,101,101],{offset:4})||n([102,116,121,112,113,116,32,32],{offset:4})||n([109,100,97,116],{offset:4})||n([119,105,100,101],{offset:4}))return{ext:"mov",mime:"video/quicktime"};if(n([82,73,70,70])&&n([65,86,73],{offset:8}))return{ext:"avi",mime:"video/x-msvideo"};if(n([48,38,178,117,142,102,207,17,166,217]))return{ext:"wmv",mime:"video/x-ms-wmv"};if(n([0,0,1,186]))return{ext:"mpg",mime:"video/mpeg"};for(let t=0;t<2&&t0;n--)t[n]=t[n-1];return t[0]=r,r},c={OK:0,LAST_BLOCK:-1,NOT_BZIP_DATA:-2,UNEXPECTED_INPUT_EOF:-3,UNEXPECTED_OUTPUT_EOF:-4,DATA_ERROR:-5,OUT_OF_MEMORY:-6,OBSOLETE_INPUT:-7,END_OF_BLOCK:-8},u={};u[c.LAST_BLOCK]="Bad file checksum",u[c.NOT_BZIP_DATA]="Not bzip data",u[c.UNEXPECTED_INPUT_EOF]="Unexpected input EOF",u[c.UNEXPECTED_OUTPUT_EOF]="Unexpected output EOF",u[c.DATA_ERROR]="Data error",u[c.OUT_OF_MEMORY]="Out of memory",u[c.OBSOLETE_INPUT]="Obsolete (pre 0.9.5) bzip format not supported.";var l=function(t,e){var n=u[t]||"unknown error";e&&(n+=": "+e);var r=new TypeError(n);throw r.errorCode=t,r},p=function(t,e){this.writePos=this.writeCurrent=this.writeCount=0,this._start_bunzip(t,e)};p.prototype._init_block=function(){return this._get_next_block()?(this.blockCRC=new o,!0):(this.writeCount=-1,!1)},p.prototype._start_bunzip=function(t,e){var n=new Buffer(4);4===t.read(n,0,4)&&"BZh"===String.fromCharCode(n[0],n[1],n[2])||l(c.NOT_BZIP_DATA,"bad magic");var i=n[3]-48;(i<1||i>9)&&l(c.NOT_BZIP_DATA,"level out of range"),this.reader=new r(t),this.dbufSize=1e5*i,this.nextoutput=0,this.outputStream=e,this.streamCRC=0},p.prototype._get_next_block=function(){var t,e,n,r=this.reader,i=r.pi();if("177245385090"===i)return!1;"314159265359"!==i&&l(c.NOT_BZIP_DATA),this.targetBlockCRC=r.read(32)>>>0,this.streamCRC=(this.targetBlockCRC^(this.streamCRC<<1|this.streamCRC>>>31))>>>0,r.read(1)&&l(c.OBSOLETE_INPUT);var o=r.read(24);o>this.dbufSize&&l(c.DATA_ERROR,"initial position out of bounds");var a=r.read(16),u=new Buffer(256),p=0;for(t=0;t<16;t++)if(a&1<<15-t){var f=16*t;for(n=r.read(16),e=0;e<16;e++)n&1<<15-e&&(u[p++]=f+e)}var h=r.read(3);(h<2||h>6)&&l(c.DATA_ERROR);var d=r.read(15);0===d&&l(c.DATA_ERROR);var g=new Buffer(256);for(t=0;t=h&&l(c.DATA_ERROR);m[t]=s(g,e)}var _,b=p+2,y=[];for(e=0;e20)&&l(c.DATA_ERROR),r.read(1);)r.read(1)?a--:a++;w[t]=a}for(v=x=w[0],t=1;tx?x=w[t]:w[t]=d&&l(c.DATA_ERROR),_=y[m[A++]]),t=_.minLen,e=r.read(t);t>_.maxLen&&l(c.DATA_ERROR),!(e<=_.limit[t]);t++)e=e<<1|r.read(1);((e-=_.base[t])<0||e>=258)&&l(c.DATA_ERROR);var T=_.permute[e];if(0!==T&&1!==T){if(O)for(O=0,C+a>this.dbufSize&&l(c.DATA_ERROR),D[S=u[g[0]]]+=a;a--;)I[C++]=S;if(T>p)break;C>=this.dbufSize&&l(c.DATA_ERROR),D[S=u[S=s(g,t=T-1)]]++,I[C++]=S}else O||(O=1,a=0),a+=0===T?O:2*O,O<<=1}for((o<0||o>=C)&&l(c.DATA_ERROR),e=0,t=0;t<256;t++)n=e+D[t],D[t]=e,e=n;for(t=0;t>=8,F=-1),this.writePos=P,this.writeCurrent=B,this.writeCount=C,this.writeRun=F,!0},p.prototype._read_bunzip=function(t,e){var n,r,i;if(this.writeCount<0)return 0;for(var o=this.dbuf,a=this.writePos,s=this.writeCurrent,u=this.writeCount,p=(this.outputsize,this.writeRun);u;){for(u--,r=s,s=255&(a=o[a]),a>>=8,3==p++?(n=s,i=r,s=-1):(n=1,i=s),this.blockCRC.updateCRCRun(i,n);n--;)this.outputStream.writeByte(i),this.nextoutput++;s!=r&&(p=0)}return this.writeCount=u,this.blockCRC.getCRC()!==this.targetBlockCRC&&l(c.DATA_ERROR,"Bad block CRC (got "+this.blockCRC.getCRC().toString(16)+" expected "+this.targetBlockCRC.toString(16)+")"),this.nextoutput};var f=function(t){if("readByte"in t)return t;var e=new i;return e.pos=0,e.readByte=function(){return t[this.pos++]},e.seek=function(t){this.pos=t},e.eof=function(){return this.pos>=t.length},e},h=function(t){var e=new i,n=!0;if(t)if("number"==typeof t)e.buffer=new Buffer(t),n=!1;else{if("writeByte"in t)return t;e.buffer=t,n=!1}else e.buffer=new Buffer(16384);return e.pos=0,e.writeByte=function(t){if(n&&this.pos>=this.buffer.length){var e=new Buffer(2*this.buffer.length);this.buffer.copy(e),this.buffer=e}this.buffer[this.pos++]=t},e.getBuffer=function(){if(this.pos!==this.buffer.length){if(!n)throw new TypeError("outputsize does not match decoded input");var t=new Buffer(this.pos);this.buffer.copy(t,0,0,this.pos),this.buffer=t}return this.buffer},e._coerced=!0,e};p.Err=c,p.decode=function(t,e,n){for(var r=f(t),i=h(e),o=new p(r,i);!("eof"in r&&r.eof());)if(o._init_block())o._read_bunzip();else{var a=o.reader.read(32)>>>0;if(a!==o.streamCRC&&l(c.DATA_ERROR,"Bad stream CRC (got "+o.streamCRC.toString(16)+" expected "+a.toString(16)+")"),!(n&&"eof"in r)||r.eof())break;o._start_bunzip(r,i)}if("getBuffer"in i)return i.getBuffer()},p.decodeBlock=function(t,e,n){var r=f(t),i=h(n),a=new p(r,i);if(a.reader.seek(e),a._get_next_block()&&(a.blockCRC=new o,a.writeCopies=0,a._read_bunzip()),"getBuffer"in i)return i.getBuffer()},p.table=function(t,e,n){var r=new i;r.delegate=f(t),r.pos=0,r.readByte=function(){return this.pos++,this.delegate.readByte()},r.delegate.eof&&(r.eof=r.delegate.eof.bind(r.delegate));var o=new i;o.pos=0,o.writeByte=function(){this.pos++};for(var a=new p(r,o),s=a.dbufSize;!("eof"in r&&r.eof());){var c=8*r.pos+a.reader.bitOffset;if(a.reader.hasByte&&(c-=8),a._init_block()){var u=o.pos;a._read_bunzip(),e(c,o.pos-u)}else{a.reader.read(32);if(!(n&&"eof"in r)||r.eof())break;a._start_bunzip(r,o),console.assert(a.dbufSize===s,"shouldn't change block size within multistream file")}}},p.Stream=i,p.version=a.version,p.license=a.license,t.exports=p},function(t,e){var n=[0,1,3,7,15,31,63,127,255],r=function(t){this.stream=t,this.bitOffset=0,this.curByte=0,this.hasByte=!1};r.prototype._ensureByte=function(){this.hasByte||(this.curByte=this.stream.readByte(),this.hasByte=!0)},r.prototype.read=function(t){for(var e=0;t>0;){this._ensureByte();var r=8-this.bitOffset;if(t>=r)e<<=r,e|=n[r]&this.curByte,this.hasByte=!1,this.bitOffset=0,t-=r;else{e<<=t;var i=r-t;e|=(this.curByte&n[t]<>i,this.bitOffset+=t,t=0}}return e},r.prototype.seek=function(t){var e=t%8,n=(t-e)/8;this.bitOffset=e,this.stream.seek(n),this.hasByte=!1},r.prototype.pi=function(){var t,e=new Buffer(6);for(t=0;t>>0},this.updateCRC=function(e){t=t<<8^n[255&(t>>>24^e)]},this.updateCRCRun=function(e,r){for(;r-- >0;)t=t<<8^n[255&(t>>>24^e)]}})},function(t){t.exports={name:"seek-bzip",version:"1.0.5",contributors:["C. Scott Ananian (http://cscott.net)","Eli Skeggs","Kevin Kwok","Rob Landley (http://landley.net)"],description:"a pure-JavaScript Node.JS module for random-access decoding bzip2 data",main:"./lib/index.js",repository:{type:"git",url:"https://github.com/cscott/seek-bzip.git"},license:"MIT",bin:{"seek-bunzip":"./bin/seek-bunzip","seek-table":"./bin/seek-bzip-table"},directories:{test:"test"},dependencies:{commander:"~2.8.1"},devDependencies:{fibers:"~1.0.6",mocha:"~2.2.5"},scripts:{test:"mocha"}}},function(t,e,n){var r=n(242),i=n(243),o=n(244);t.exports=function(){var t=[],e=0,n=0,a=!1,s=null,c=null;function u(t){if(!a)try{return function(t){if(n){var e=1e5*n,r=new Int32Array(e),o=[];return null===(c=i.decompress(s,function(t){o.push(t)},r,e,c))?(n=0,!1):(t(Buffer.from(o)),!0)}return n=i.header(s),!0}(function(e){t.queue(e),null!==e&&e.length})}catch(e){return t.emit("error",e),a=!0,!1}}return r(function(r){for(t.push(r),e+=r.length,null===s&&(s=o(function(){return t.shift()}));!a&&e-s.bytesRead+1>=(25e3+1e5*n||4);)u(this)},function(t){for(;!a&&e>s.bytesRead;)u(this);a||(null!==c&&stream.emit("error",new Error("input stream ended prematurely")),this.queue(null))})}},function(t,e,n){var r=n(7);function i(t,e,n){t=t||function(t){this.queue(t)},e=e||function(){this.queue(null)};var i=!1,o=!1,a=[],s=!1,c=new r;function u(){for(;a.length&&!c.paused;){var t=a.shift();if(null===t)return c.emit("end");c.emit("data",t)}}function l(){c.writable=!1,e.call(c),!c.readable&&c.autoDestroy&&c.destroy()}return c.readable=c.writable=!0,c.paused=!1,c.autoDestroy=!(n&&!1===n.autoDestroy),c.write=function(e){return t.call(this,e),!c.paused},c.queue=c.push=function(t){return s?c:(null===t&&(s=!0),a.push(t),u(),c)},c.on("end",function(){c.readable=!1,!c.writable&&c.autoDestroy&&process.nextTick(function(){c.destroy()})}),c.end=function(t){if(!i)return i=!0,arguments.length&&c.write(t),l(),c},c.destroy=function(){if(!o)return o=!0,i=!0,a.length=0,c.writable=c.readable=!1,c.emit("close"),c},c.pause=function(){if(!c.paused)return c.paused=!0,c},c.resume=function(){return c.paused&&(c.paused=!1,c.emit("resume")),u(),c.paused||c.emit("drain"),c},c}t.exports=i,i.through=i},function(t,e){function n(t){this.name="Bzip2Error",this.message=t,this.stack=(new Error).stack}n.prototype=new Error;var r=function(t){throw new n(t)},i={};i.Bzip2Error=n,i.crcTable=[0,79764919,159529838,222504665,319059676,398814059,445009330,507990021,638119352,583659535,797628118,726387553,890018660,835552979,1015980042,944750013,1276238704,1221641927,1167319070,1095957929,1595256236,1540665371,1452775106,1381403509,1780037320,1859660671,1671105958,1733955601,2031960084,2111593891,1889500026,1952343757,2552477408,2632100695,2443283854,2506133561,2334638140,2414271883,2191915858,2254759653,3190512472,3135915759,3081330742,3009969537,2905550212,2850959411,2762807018,2691435357,3560074640,3505614887,3719321342,3648080713,3342211916,3287746299,3467911202,3396681109,4063920168,4143685023,4223187782,4286162673,3779000052,3858754371,3904687514,3967668269,881225847,809987520,1023691545,969234094,662832811,591600412,771767749,717299826,311336399,374308984,453813921,533576470,25881363,88864420,134795389,214552010,2023205639,2086057648,1897238633,1976864222,1804852699,1867694188,1645340341,1724971778,1587496639,1516133128,1461550545,1406951526,1302016099,1230646740,1142491917,1087903418,2896545431,2825181984,2770861561,2716262478,3215044683,3143675388,3055782693,3001194130,2326604591,2389456536,2200899649,2280525302,2578013683,2640855108,2418763421,2498394922,3769900519,3832873040,3912640137,3992402750,4088425275,4151408268,4197601365,4277358050,3334271071,3263032808,3476998961,3422541446,3585640067,3514407732,3694837229,3640369242,1762451694,1842216281,1619975040,1682949687,2047383090,2127137669,1938468188,2001449195,1325665622,1271206113,1183200824,1111960463,1543535498,1489069629,1434599652,1363369299,622672798,568075817,748617968,677256519,907627842,853037301,1067152940,995781531,51762726,131386257,177728840,240578815,269590778,349224269,429104020,491947555,4046411278,4126034873,4172115296,4234965207,3794477266,3874110821,3953728444,4016571915,3609705398,3555108353,3735388376,3664026991,3290680682,3236090077,3449943556,3378572211,3174993278,3120533705,3032266256,2961025959,2923101090,2868635157,2813903052,2742672763,2604032198,2683796849,2461293480,2524268063,2284983834,2364738477,2175806836,2238787779,1569362073,1498123566,1409854455,1355396672,1317987909,1246755826,1192025387,1137557660,2072149281,2135122070,1912620623,1992383480,1753615357,1816598090,1627664531,1707420964,295390185,358241886,404320391,483945776,43990325,106832002,186451547,266083308,932423249,861060070,1041341759,986742920,613929101,542559546,756411363,701822548,3316196985,3244833742,3425377559,3370778784,3601682597,3530312978,3744426955,3689838204,3819031489,3881883254,3928223919,4007849240,4037393693,4100235434,4180117107,4259748804,2310601993,2373574846,2151335527,2231098320,2596047829,2659030626,2470359227,2550115596,2947551409,2876312838,2788305887,2733848168,3165939309,3094707162,3040238851,2985771188],i.array=function(t){var e=0,n=0,r=[0,1,3,7,15,31,63,127,255];return function(i){for(var o=0;i>0;){var a=8-e;i>=a?(o<<=a,o|=r[a]&t[n++],e=0,i-=a):(o<<=i,o|=(t[n]&r[i]<<8-i-e)>>8-i-e,e+=i,i=0)}return o}},i.simple=function(t,e){var n=i.array(t),r=!1,o=1e5*i.header(n),a=new Int32Array(o);do{r=i.decompress(n,e,a,o)}while(!r)},i.header=function(t){this.byteCount=new Int32Array(256),this.symToByte=new Uint8Array(256),this.mtfSymbol=new Int32Array(256),this.selectors=new Uint8Array(32768),4348520!=t(24)&&r("No magic number found");var e=t(8)-48;return(e<1||e>9)&&r("Not a BZIP archive"),e},i.decompress=function(t,e,n,i,o){for(var a=-1,s="",c=0;c<6;c++)s+=t(8).toString(16);if("177245385090"==s)return(0|t(32))!==o&&r("Error in bzip2: crc32 do not match"),t(null),null;"314159265359"!=s&&r("eek not valid bzip data");var u=0|t(32);t(1)&&r("unsupported obsolete version");var l=t(24);l>i&&r("Initial position larger than buffer size");var p=t(16),f=0;for(c=0;c<16;c++)if(p&1<<15-c){var h=t(16);for(m=0;m<16;m++)h&1<<15-m&&(this.symToByte[f++]=16*c+m)}var d=t(3);(d<2||d>6)&&r("another error");var g=t(15);0==g&&r("meh");for(c=0;c=d&&r("whoops another error");var _=this.mtfSymbol[m];for(h=m-1;h>=0;h--)this.mtfSymbol[h+1]=this.mtfSymbol[h];this.mtfSymbol[0]=_,this.selectors[c]=_}var b,y,v,x,w=f+2,k=[],E=new Uint8Array(258),D=new Uint16Array(21);for(m=0;m20)&&r("I gave up a while ago on writing error messages"),t(1);)t(1)?p--:p++;E[c]=p}var S,O;S=O=E[0];for(c=1;cO?O=E[c]:E[c]=g&&r("meow i'm a kitty, that's an error"),C=(b=k[this.selectors[x++]]).base.subarray(1),A=b.limit.subarray(1)),m=t(c=b.minLen);c>b.maxLen&&r("rawr i'm a dinosaur"),!(m<=A[c]);)c++,m=m<<1|t(1);((m-=C[c])<0||m>=258)&&r("moo i'm a cow");var T=b.permute[m];if(0!=T&&1!=T){if(y)for(y=0,v+p>i&&r("Boom."),_=this.symToByte[this.mtfSymbol[0]],this.byteCount[_]+=p;p--;)n[v++]=_;if(T>f)break;v>=i&&r("I can't think of anything. Error"),c=T-1,_=this.mtfSymbol[c];for(h=c-1;h>=0;h--)this.mtfSymbol[h+1]=this.mtfSymbol[h];this.mtfSymbol[0]=_,_=this.symToByte[_],this.byteCount[_]++,n[v++]=_}else y||(y=1,p=0),p+=0==T?y:2*y,y<<=1}(l<0||l>=v)&&r("I'm a monkey and I'm throwing something at someone, namely you");for(m=0,c=0;c<256;c++)h=m+this.byteCount[c],this.byteCount[c]=m,m=h;for(c=0;c>=8,M=-1),v=v;v;){for(v--,B=L,L=255&(j=n[j]),j>>=8,3==M++?(P=L,F=B,L=-1):(P=1,F=L);P--;)a=4294967295&(a<<8^this.crcTable[255&(a>>24^F)]),e(F);L!=B&&(M=0)}return(0|(a=(-1^a)>>>0))!=(0|u)&&r("Error in bzip2: crc32 do not match"),null===o&&(o=0),o=4294967295&(a^(o<<1|o>>>31))},t.exports=i},function(t,e){var n=[0,1,3,7,15,31,63,127,255];t.exports=function(t){var e=0,r=0,i=t(),o=function(a){if(null===a&&0!=e)return e=0,void r++;for(var s=0;a>0;){r>=i.length&&(r=0,i=t());var c=8-e;0===e&&a>0&&o.bytesRead++,a>=c?(s<<=c,s|=n[c]&i[r++],e=0,a-=c):(s<<=a,s|=(i[r]&n[a]<<8-a-e)>>8-a-e,e+=a,a=0)}return s};return o.bytesRead=0,o}},function(t,e,n){"use strict";const r=n(12),i=n(53),o=n(95),a=n(47);t.exports=()=>t=>{if(!Buffer.isBuffer(t)&&!a(t))return Promise.reject(new TypeError(`Expected a Buffer or Stream, got ${typeof t}`));if(Buffer.isBuffer(t)&&(!o(t)||"gz"!==o(t).ext))return Promise.resolve([]);const e=r.createGunzip(),n=i()(e);return Buffer.isBuffer(t)?e.end(t):t.pipe(e),n}},function(t,e,n){"use strict";const r=n(247),i=n(248),o=n(108),a=n(252),s=t=>new Promise((e,n)=>{const r=[];t.readEntry(),t.on("entry",e=>{((t,e)=>{const n={mode:t.externalFileAttributes>>16&65535,mtime:t.getLastModDate(),path:t.fileName};return n.type=((t,e)=>{const n=t.versionMadeBy>>8;return 40960==(61440&e)?"symlink":16384==(61440&e)||0===n&&16===t.externalFileAttributes?"directory":"file"})(t,n.mode),0===n.mode&&"directory"===n.type&&(n.mode=493),0===n.mode&&(n.mode=420),o(e.openReadStream.bind(e))(t).then(i.buffer).then(t=>(n.data=t,"symlink"===n.type&&(n.linkname=t.toString()),n)).catch(t=>{throw e.close(),t})})(e,t).catch(n).then(e=>{r.push(e),t.readEntry()})}),t.on("error",n),t.on("end",()=>e(r))});t.exports=()=>t=>Buffer.isBuffer(t)?r(t)&&"zip"===r(t).ext?o(a.fromBuffer)(t,{lazyEntries:!0}).then(s):Promise.resolve([]):Promise.reject(new TypeError(`Expected a Buffer, got ${typeof t}`))},function(t,e,n){"use strict";t.exports=function(t){return t&&t.length>1?255===t[0]&&216===t[1]&&255===t[2]?{ext:"jpg",mime:"image/jpeg"}:137===t[0]&&80===t[1]&&78===t[2]&&71===t[3]?{ext:"png",mime:"image/png"}:71===t[0]&&73===t[1]&&70===t[2]?{ext:"gif",mime:"image/gif"}:87===t[8]&&69===t[9]&&66===t[10]&&80===t[11]?{ext:"webp",mime:"image/webp"}:70===t[0]&&76===t[1]&&73===t[2]&&70===t[3]?{ext:"flif",mime:"image/flif"}:(73===t[0]&&73===t[1]&&42===t[2]&&0===t[3]||77===t[0]&&77===t[1]&&0===t[2]&&42===t[3])&&67===t[8]&&82===t[9]?{ext:"cr2",mime:"image/x-canon-cr2"}:73===t[0]&&73===t[1]&&42===t[2]&&0===t[3]||77===t[0]&&77===t[1]&&0===t[2]&&42===t[3]?{ext:"tif",mime:"image/tiff"}:66===t[0]&&77===t[1]?{ext:"bmp",mime:"image/bmp"}:73===t[0]&&73===t[1]&&188===t[2]?{ext:"jxr",mime:"image/vnd.ms-photo"}:56===t[0]&&66===t[1]&&80===t[2]&&83===t[3]?{ext:"psd",mime:"image/vnd.adobe.photoshop"}:80===t[0]&&75===t[1]&&3===t[2]&&4===t[3]&&109===t[30]&&105===t[31]&&109===t[32]&&101===t[33]&&116===t[34]&&121===t[35]&&112===t[36]&&101===t[37]&&97===t[38]&&112===t[39]&&112===t[40]&&108===t[41]&&105===t[42]&&99===t[43]&&97===t[44]&&116===t[45]&&105===t[46]&&111===t[47]&&110===t[48]&&47===t[49]&&101===t[50]&&112===t[51]&&117===t[52]&&98===t[53]&&43===t[54]&&122===t[55]&&105===t[56]&&112===t[57]?{ext:"epub",mime:"application/epub+zip"}:80===t[0]&&75===t[1]&&3===t[2]&&4===t[3]&&77===t[30]&&69===t[31]&&84===t[32]&&65===t[33]&&45===t[34]&&73===t[35]&&78===t[36]&&70===t[37]&&47===t[38]&&109===t[39]&&111===t[40]&&122===t[41]&&105===t[42]&&108===t[43]&&108===t[44]&&97===t[45]&&46===t[46]&&114===t[47]&&115===t[48]&&97===t[49]?{ext:"xpi",mime:"application/x-xpinstall"}:80!==t[0]||75!==t[1]||3!==t[2]&&5!==t[2]&&7!==t[2]||4!==t[3]&&6!==t[3]&&8!==t[3]?117===t[257]&&115===t[258]&&116===t[259]&&97===t[260]&&114===t[261]?{ext:"tar",mime:"application/x-tar"}:82!==t[0]||97!==t[1]||114!==t[2]||33!==t[3]||26!==t[4]||7!==t[5]||0!==t[6]&&1!==t[6]?31===t[0]&&139===t[1]&&8===t[2]?{ext:"gz",mime:"application/gzip"}:66===t[0]&&90===t[1]&&104===t[2]?{ext:"bz2",mime:"application/x-bzip2"}:55===t[0]&&122===t[1]&&188===t[2]&&175===t[3]&&39===t[4]&&28===t[5]?{ext:"7z",mime:"application/x-7z-compressed"}:120===t[0]&&1===t[1]?{ext:"dmg",mime:"application/x-apple-diskimage"}:0===t[0]&&0===t[1]&&0===t[2]&&(24===t[3]||32===t[3])&&102===t[4]&&116===t[5]&&121===t[6]&&112===t[7]||51===t[0]&&103===t[1]&&112===t[2]&&53===t[3]||0===t[0]&&0===t[1]&&0===t[2]&&28===t[3]&&102===t[4]&&116===t[5]&&121===t[6]&&112===t[7]&&109===t[8]&&112===t[9]&&52===t[10]&&50===t[11]&&109===t[16]&&112===t[17]&&52===t[18]&&49===t[19]&&109===t[20]&&112===t[21]&&52===t[22]&&50===t[23]&&105===t[24]&&115===t[25]&&111===t[26]&&109===t[27]||0===t[0]&&0===t[1]&&0===t[2]&&28===t[3]&&102===t[4]&&116===t[5]&&121===t[6]&&112===t[7]&&105===t[8]&&115===t[9]&&111===t[10]&&109===t[11]||0===t[0]&&0===t[1]&&0===t[2]&&28===t[3]&&102===t[4]&&116===t[5]&&121===t[6]&&112===t[7]&&109===t[8]&&112===t[9]&&52===t[10]&&50===t[11]&&0===t[12]&&0===t[13]&&0===t[14]&&0===t[15]?{ext:"mp4",mime:"video/mp4"}:0===t[0]&&0===t[1]&&0===t[2]&&28===t[3]&&102===t[4]&&116===t[5]&&121===t[6]&&112===t[7]&&77===t[8]&&52===t[9]&&86===t[10]?{ext:"m4v",mime:"video/x-m4v"}:77===t[0]&&84===t[1]&&104===t[2]&&100===t[3]?{ext:"mid",mime:"audio/midi"}:109===t[31]&&97===t[32]&&116===t[33]&&114===t[34]&&111===t[35]&&115===t[36]&&107===t[37]&&97===t[38]?{ext:"mkv",mime:"video/x-matroska"}:26===t[0]&&69===t[1]&&223===t[2]&&163===t[3]?{ext:"webm",mime:"video/webm"}:0===t[0]&&0===t[1]&&0===t[2]&&20===t[3]&&102===t[4]&&116===t[5]&&121===t[6]&&112===t[7]?{ext:"mov",mime:"video/quicktime"}:82===t[0]&&73===t[1]&&70===t[2]&&70===t[3]&&65===t[8]&&86===t[9]&&73===t[10]?{ext:"avi",mime:"video/x-msvideo"}:48===t[0]&&38===t[1]&&178===t[2]&&117===t[3]&&142===t[4]&&102===t[5]&&207===t[6]&&17===t[7]&&166===t[8]&&217===t[9]?{ext:"wmv",mime:"video/x-ms-wmv"}:0===t[0]&&0===t[1]&&1===t[2]&&"b"===t[3].toString(16)[0]?{ext:"mpg",mime:"video/mpeg"}:73===t[0]&&68===t[1]&&51===t[2]||255===t[0]&&251===t[1]?{ext:"mp3",mime:"audio/mpeg"}:102===t[4]&&116===t[5]&&121===t[6]&&112===t[7]&&77===t[8]&&52===t[9]&&65===t[10]||77===t[0]&&52===t[1]&&65===t[2]&&32===t[3]?{ext:"m4a",mime:"audio/m4a"}:79===t[28]&&112===t[29]&&117===t[30]&&115===t[31]&&72===t[32]&&101===t[33]&&97===t[34]&&100===t[35]?{ext:"opus",mime:"audio/opus"}:79===t[0]&&103===t[1]&&103===t[2]&&83===t[3]?{ext:"ogg",mime:"audio/ogg"}:102===t[0]&&76===t[1]&&97===t[2]&&67===t[3]?{ext:"flac",mime:"audio/x-flac"}:82===t[0]&&73===t[1]&&70===t[2]&&70===t[3]&&87===t[8]&&65===t[9]&&86===t[10]&&69===t[11]?{ext:"wav",mime:"audio/x-wav"}:35===t[0]&&33===t[1]&&65===t[2]&&77===t[3]&&82===t[4]&&10===t[5]?{ext:"amr",mime:"audio/amr"}:37===t[0]&&80===t[1]&&68===t[2]&&70===t[3]?{ext:"pdf",mime:"application/pdf"}:77===t[0]&&90===t[1]?{ext:"exe",mime:"application/x-msdownload"}:67!==t[0]&&70!==t[0]||87!==t[1]||83!==t[2]?123===t[0]&&92===t[1]&&114===t[2]&&116===t[3]&&102===t[4]?{ext:"rtf",mime:"application/rtf"}:119===t[0]&&79===t[1]&&70===t[2]&&70===t[3]&&(0===t[4]&&1===t[5]&&0===t[6]&&0===t[7]||79===t[4]&&84===t[5]&&84===t[6]&&79===t[7])?{ext:"woff",mime:"application/font-woff"}:119===t[0]&&79===t[1]&&70===t[2]&&50===t[3]&&(0===t[4]&&1===t[5]&&0===t[6]&&0===t[7]||79===t[4]&&84===t[5]&&84===t[6]&&79===t[7])?{ext:"woff2",mime:"application/font-woff"}:76===t[34]&&80===t[35]&&(0===t[8]&&0===t[9]&&1===t[10]||1===t[8]&&0===t[9]&&2===t[10]||2===t[8]&&0===t[9]&&2===t[10])?{ext:"eot",mime:"application/octet-stream"}:0===t[0]&&1===t[1]&&0===t[2]&&0===t[3]&&0===t[4]?{ext:"ttf",mime:"application/font-sfnt"}:79===t[0]&&84===t[1]&&84===t[2]&&79===t[3]&&0===t[4]?{ext:"otf",mime:"application/font-sfnt"}:0===t[0]&&0===t[1]&&1===t[2]&&0===t[3]?{ext:"ico",mime:"image/x-icon"}:70===t[0]&&76===t[1]&&86===t[2]&&1===t[3]?{ext:"flv",mime:"video/x-flv"}:37===t[0]&&33===t[1]?{ext:"ps",mime:"application/postscript"}:253===t[0]&&55===t[1]&&122===t[2]&&88===t[3]&&90===t[4]&&0===t[5]?{ext:"xz",mime:"application/x-xz"}:83===t[0]&&81===t[1]&&76===t[2]&&105===t[3]?{ext:"sqlite",mime:"application/x-sqlite3"}:78===t[0]&&69===t[1]&&83===t[2]&&26===t[3]?{ext:"nes",mime:"application/x-nintendo-nes-rom"}:67===t[0]&&114===t[1]&&50===t[2]&&52===t[3]?{ext:"crx",mime:"application/x-google-chrome-extension"}:77===t[0]&&83===t[1]&&67===t[2]&&70===t[3]||73===t[0]&&83===t[1]&&99===t[2]&&40===t[3]?{ext:"cab",mime:"application/vnd.ms-cab-compressed"}:33===t[0]&&60===t[1]&&97===t[2]&&114===t[3]&&99===t[4]&&104===t[5]&&62===t[6]&&10===t[7]&&100===t[8]&&101===t[9]&&98===t[10]&&105===t[11]&&97===t[12]&&110===t[13]&&45===t[14]&&98===t[15]&&105===t[16]&&110===t[17]&&97===t[18]&&114===t[19]&&121===t[20]?{ext:"deb",mime:"application/x-deb"}:33===t[0]&&60===t[1]&&97===t[2]&&114===t[3]&&99===t[4]&&104===t[5]&&62===t[6]?{ext:"ar",mime:"application/x-unix-archive"}:237===t[0]&&171===t[1]&&238===t[2]&&219===t[3]?{ext:"rpm",mime:"application/x-rpm"}:31===t[0]&&160===t[1]||31===t[0]&&157===t[1]?{ext:"Z",mime:"application/x-compress"}:76===t[0]&&90===t[1]&&73===t[2]&&80===t[3]?{ext:"lz",mime:"application/x-lzip"}:208===t[0]&&207===t[1]&&17===t[2]&&224===t[3]&&161===t[4]&&177===t[5]&&26===t[6]&&225===t[7]?{ext:"msi",mime:"application/x-msi"}:null:{ext:"swf",mime:"application/x-shockwave-flash"}:{ext:"rar",mime:"application/x-rar-compressed"}:{ext:"zip",mime:"application/zip"}:null}},function(t,e,n){"use strict";var r=n(249),i=n(107),o=n(251);function a(t,e){if(!t)return r.reject(new Error("Expected a stream"));var n,a,s=(e=i({maxBuffer:1/0},e)).maxBuffer,c=new r(function(r,i){function c(t){t&&(t.bufferedData=n.getBufferedValue()),i(t)}n=o(e),t.once("error",c),t.pipe(n),n.on("data",function(){n.getBufferedLength()>s&&i(new Error("maxBuffer exceeded"))}),n.once("error",c),n.on("end",r),a=function(){t.unpipe&&t.unpipe(n)}});return c.then(a,a),c.then(function(){return n.getBufferedValue()})}t.exports=a,t.exports.buffer=function(t,e){return a(t,i({},e,{encoding:"buffer"}))},t.exports.array=function(t,e){return a(t,i({},e,{array:!0}))}},function(t,e,n){"use strict";t.exports="function"==typeof Promise?Promise:n(250)},function(t,e,n){"use strict";var r,i="pending",o="settled",a="fulfilled",s="rejected",c=function(){},u="undefined"!=typeof global&&void 0!==global.process&&"function"==typeof global.process.emit,l="undefined"==typeof setImmediate?setTimeout:setImmediate,p=[];function f(){for(var t=0;tNumber.MAX_SAFE_INTEGER)throw new Error("zip file too large. only file sizes up to 2^52 are supported due to JavaScript's Number type being an IEEE 754 double.");t.ref();var o=Math.min(65557,e),a=E(o),s=e-a.length;v(t,a,0,o,s,function(c){if(c)return r(c);for(var u=o-22;u>=0;u-=1)if(101010256===a.readUInt32LE(u)){var l=a.slice(u),p=l.readUInt16LE(4);if(0!==p)return r(new Error("multi-disk zip files are not supported: found disk number: "+p));var f=l.readUInt16LE(10),h=l.readUInt32LE(16),g=l.readUInt16LE(20),m=l.length-22;if(g!==m)return r(new Error("invalid comment length. expected: "+m+". found: "+g));var _=i?S(l,22,l.length,!1):l.slice(22);if(65535!==f&&4294967295!==h)return r(null,new d(t,h,e,f,_,n.autoClose,n.lazyEntries,i,n.validateEntrySizes,n.strictFileNames));var b=E(20),y=s+u-b.length;return void v(t,b,0,b.length,y,function(o){if(o)return r(o);if(117853008!==b.readUInt32LE(0))return r(new Error("invalid zip64 end of central directory locator signature"));var a=O(b,8),s=E(56);v(t,s,0,s.length,a,function(o){return o?r(o):101075792!==s.readUInt32LE(0)?r(new Error("invalid zip64 end of central directory record signature")):(f=O(s,32),h=O(s,48),r(null,new d(t,h,e,f,_,n.autoClose,n.lazyEntries,i,n.validateEntrySizes,n.strictFileNames)))})})}r(new Error("end of central directory record signature not found"))})}function d(t,e,n,r,i,o,a,s,u,l){var p=this;c.call(p),p.reader=t,p.reader.on("error",function(t){m(p,t)}),p.reader.once("close",function(){p.emit("close")}),p.readEntryCursor=e,p.fileSize=n,p.entryCount=r,p.comment=i,p.entriesRead=0,p.autoClose=!!o,p.lazyEntries=!!a,p.decodeStrings=!!s,p.validateEntrySizes=!!u,p.strictFileNames=!!l,p.isOpen=!0,p.emittedError=!1,p.lazyEntries||p._readEntry()}function g(t,e){t.autoClose&&t.close(),m(t,e)}function m(t,e){t.emittedError||(t.emittedError=!0,t.emit("error",e))}function _(){}function b(t,e){return new Date(1980+(t>>9&127),(t>>5&15)-1,31&t,e>>11&31,e>>5&63,2*(31&e),0)}function y(t){return-1!==t.indexOf("\\")?"invalid characters in fileName: "+t:/^[a-zA-Z]:/.test(t)||/^\//.test(t)?"absolute path: "+t:-1!==t.split("/").indexOf("..")?"invalid relative path: "+t:null}function v(t,e,n,r,i,o){if(0===r)return setImmediate(function(){o(null,E(0))});t.read(e,n,r,i,function(t,e){return t?o(t):es.length)return g(t,new Error("extra field length exceeds extra field buffer size"));var h=E(l);s.copy(h,0,p,f),r.extraFields.push({id:u,data:h}),c=f}if(r.fileComment=t.decodeStrings?S(e,o,o+r.fileCommentLength,i):e.slice(o,o+r.fileCommentLength),r.comment=r.fileComment,t.readEntryCursor+=e.length,t.entriesRead+=1,4294967295===r.uncompressedSize||4294967295===r.compressedSize||4294967295===r.relativeOffsetOfLocalHeader){var d=null;for(c=0;cd.length)return g(t,new Error("zip64 extended information extra field does not include uncompressed size"));r.uncompressedSize=O(d,m),m+=8}if(4294967295===r.compressedSize){if(m+8>d.length)return g(t,new Error("zip64 extended information extra field does not include compressed size"));r.compressedSize=O(d,m),m+=8}if(4294967295===r.relativeOffsetOfLocalHeader){if(m+8>d.length)return g(t,new Error("zip64 extended information extra field does not include relative header offset"));r.relativeOffsetOfLocalHeader=O(d,m),m+=8}}if(t.decodeStrings)for(c=0;ct.compressedSize)throw new Error("options.start > entry.compressedSize")}if(null!=e.end){if((a=e.end)<0)throw new Error("options.end < 0");if(a>t.compressedSize)throw new Error("options.end > entry.compressedSize");if(ar.fileSize)return n(new Error("file data overflows file bounds: "+d+" + "+t.compressedSize+" > "+r.fileSize));var m=r.reader.createReadStream({start:d+o,end:d+a}),_=m;if(l){var b=!1,y=i.createInflateRaw();m.on("error",function(t){setImmediate(function(){b||y.emit("error",t)})}),m.pipe(y),r.validateEntrySizes?(_=new x(t.uncompressedSize),y.on("error",function(t){setImmediate(function(){b||_.emit("error",t)})}),y.pipe(_)):_=y,_.destroy=function(){b=!0,y!==_&&y.unpipe(_),m.unpipe(y),m.destroy()}}n(null,_)}finally{r.reader.unref()}})},_.prototype.getLastModDate=function(){return b(this.lastModFileDate,this.lastModFileTime)},_.prototype.isEncrypted=function(){return 0!=(1&this.generalPurposeBitFlag)},_.prototype.isCompressed=function(){return 8===this.compressionMethod},s.inherits(x,u),x.prototype._transform=function(t,e,n){if(this.actualByteCount+=t.length,this.actualByteCount>this.expectedByteCount){var r="too many bytes in the stream. expected "+this.expectedByteCount+". got at least "+this.actualByteCount;return n(new Error(r))}n(null,t)},x.prototype._flush=function(t){if(this.actualByteCount0)){if(t.refCount<0)throw new Error("invalid unref");t.close(function(e){if(e)return t.emit("error",e);t.emit("close")})}},w.prototype.createReadStream=function(t){var e=t.start,n=t.end;if(e===n){var r=new l;return setImmediate(function(){r.end()}),r}var i=this._readStreamForRange(e,n),o=!1,a=new k(this);i.on("error",function(t){setImmediate(function(){o||a.emit("error",t)})}),a.destroy=function(){i.unpipe(a),a.unref(),i.destroy()};var s=new x(n-e);return a.on("error",function(t){setImmediate(function(){o||s.emit("error",t)})}),s.destroy=function(){o=!0,a.unpipe(s),a.destroy()},i.pipe(a).pipe(s)},w.prototype._readStreamForRange=function(t,e){throw new Error("not implemented")},w.prototype.read=function(t,e,n,r,i){var o=this.createReadStream({start:r,end:r+n}),a=new p,s=0;a._write=function(n,r,i){n.copy(t,e+s,0,n.length),s+=n.length,i()},a.on("finish",i),o.on("error",function(t){i(t)}),o.pipe(a)},w.prototype.close=function(t){setImmediate(t)},s.inherits(k,l),k.prototype._flush=function(t){this.unref(),t()},k.prototype.unref=function(t){this.unreffedYet||(this.unreffedYet=!0,this.context.unref())};var E,D="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ";function S(t,e,n,r){if(r)return t.toString("utf8",e,n);for(var i="",o=e;o0)){if(t.refCount<0)throw new Error("invalid unref");t.autoClose&&r.close(t.fd,function(e){e?t.emit("error",e):t.emit("close")})}},i.inherits(f,a),f.prototype._read=function(t){var e=this;if(!e.destroyed){var n=Math.min(e._readableState.highWaterMark,t);if(null!=e.endOffset&&(n=Math.min(n,e.endOffset-e.pos)),n<=0)return e.destroyed=!0,e.push(null),void e.context.unref();e.context.pend.go(function(t){if(e.destroyed)return t();var i=new Buffer(n);r.read(e.context.fd,i,0,n,e.pos,function(n,r){n?e.destroy(n):0===r?(e.destroyed=!0,e.push(null),e.context.unref()):(e.pos+=r,e.push(i.slice(0,r))),t()})})}},f.prototype.destroy=function(t){this.destroyed||(t=t||new Error("stream destroyed"),this.destroyed=!0,this.emit("error",t),this.context.unref())},i.inherits(h,s),h.prototype._write=function(t,e,n){var i=this;if(!i.destroyed){if(i.pos+t.length>i.endOffset){var o=new Error("maximum file length exceeded");return o.code="ETOOBIG",i.destroy(),void n(o)}i.context.pend.go(function(e){if(i.destroyed)return e();r.write(i.context.fd,t,0,t.length,i.pos,function(t,r){t?(i.destroy(),e(),n(t)):(i.bytesWritten+=r,i.pos+=r,i.emit("progress"),e(),n())})})}},h.prototype.destroy=function(){this.destroyed||(this.destroyed=!0,this.context.unref())},i.inherits(d,l),d.prototype.read=function(t,e,n,r,i){var o=r+n,a=o-this.buffer.length,s=a>0?a:n;this.buffer.copy(t,e,r,o),setImmediate(function(){i(null,s)})},d.prototype.write=function(t,e,n,r,i){t.copy(this.buffer,r,e,e+n),setImmediate(function(){i(null,n,t)})},d.prototype.createReadStream=function(t){var e=new c(t=t||{});e.destroyed=!1,e.start=t.start||0,e.endOffset=t.end,e.pos=e.endOffset||this.buffer.length;for(var n=this.buffer.slice(e.start,e.pos),r=0;;){var i=r+this.maxChunkSize;if(i>=n.length){rn.endOffset){var a=new Error("maximum file length exceeded");return a.code="ETOOBIG",n.destroyed=!0,void i(a)}t.copy(e.buffer,n.pos,0,t.length),n.bytesWritten+=t.length,n.pos=o,n.emit("progress"),i()}},n.destroy=function(){n.destroyed=!0},n},d.prototype.ref=function(){this.refCount+=1},d.prototype.unref=function(){if(this.refCount-=1,this.refCount<0)throw new Error("invalid unref")}},function(t,e){function n(){this.pending=0,this.max=1/0,this.listeners=[],this.waiting=[],this.error=null}function r(t){t.pending+=1;var e=!1;return function(r){if(e)throw new Error("callback called twice");if(e=!0,t.error=t.error||r,t.pending-=1,t.waiting.length>0&&t.pending{if("win32"===process.platform){if(/[<>:"|?*]/.test(t.replace(i.parse(t).root,""))){const e=new Error(`Path contains invalid characters: ${t}`);throw e.code="EINVAL",e}}};t.exports=(t,e)=>Promise.resolve().then(()=>{s(t),e=Object.assign({},a,e);const n=o(e.fs.mkdir),r=o(e.fs.stat),c=t=>n(t,e.mode).then(()=>t).catch(e=>{if("ENOENT"===e.code){if(e.message.includes("null bytes")||i.dirname(t)===t)throw e;return c(i.dirname(t)).then(()=>c(t))}return r(t).then(e=>e.isDirectory()?t:Promise.reject()).catch(()=>{throw e})});return c(i.resolve(t))}),t.exports.sync=(t,e)=>{s(t),e=Object.assign({},a,e);const n=t=>{try{e.fs.mkdirSync(t,e.mode)}catch(r){if("ENOENT"===r.code){if(r.message.includes("null bytes")||i.dirname(t)===t)throw r;return n(i.dirname(t)),n(t)}try{if(!e.fs.statSync(t).isDirectory())throw new Error("The path is not a directory")}catch(t){throw r}}return t};return n(i.resolve(t))}},function(t,e,n){"use strict";const r=(t,e)=>(function(){const n=e.promiseModule,r=new Array(arguments.length);for(let t=0;t{e.errorFirst?r.push(function(t,r){if(e.multiArgs){const e=new Array(arguments.length-1);for(let t=1;t{e=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},e);const n=t=>{const n=e=>"string"==typeof e?t===e:e.test(t);return e.include?e.include.some(n):!e.exclude.some(n)};let i;i="function"==typeof t?function(){return e.excludeMain?t.apply(this,arguments):r(t,e).apply(this,arguments)}:Object.create(Object.getPrototypeOf(t));for(const o in t){const a=t[o];i[o]="function"==typeof a&&n(o)?r(a,e):a}return i}},function(t,e,n){"use strict"; +*/var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function s(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,a,c=s(t),u=1;u-1&&t%1==0&&t-1&&t%1==0&&t<=n}(t.length)&&!function(t){var e=w(t)?l.call(t):"";return e==i||e==o}(t)}function w(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}var k,E=(k=function(t,e,n,r){!function(t,e,n,r){n||(n={});for(var i=-1,o=e.length;++i1?e[r-1]:void 0,o=r>2?e[2]:void 0;for(i=k.length>3&&"function"==typeof i?(r--,i):void 0,o&&function(t,e,n){if(!w(n))return!1;var r=typeof e;return!!("number"==r?x(n)&&b(e,n.length):"string"==r&&e in n)&&y(n[e],t)}(e[0],e[1],o)&&(i=r<3?void 0:i,r=1),t=Object(t);++n>c.SHORT_SHIFT&c.SHORT_MASK},l.prototype.getVersionNeededToExtract=function(){return this.minver},l.prototype.setComment=function(t){Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.comment=t},l.prototype.setCompressedSize=function(t){if(t<0)throw new Error("invalid entry compressed size");this.csize=t},l.prototype.setCrc=function(t){if(t<0)throw new Error("invalid entry crc32");this.crc=t},l.prototype.setExternalAttributes=function(t){this.exattr=t>>>0},l.prototype.setExtra=function(t){this.extra=t},l.prototype.setGeneralPurposeBit=function(t){if(!(t instanceof s))throw new Error("invalid entry GeneralPurposeBit");this.gpb=t},l.prototype.setInternalAttributes=function(t){this.inattr=t},l.prototype.setMethod=function(t){if(t<0)throw new Error("invalid entry compression method");this.method=t},l.prototype.setName=function(t){t=i(t,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,""),Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.name=t},l.prototype.setPlatform=function(t){this.platform=t},l.prototype.setSize=function(t){if(t<0)throw new Error("invalid entry size");this.size=t},l.prototype.setTime=function(t,e){if(!(t instanceof Date))throw new Error("invalid entry time");this.time=u.dateToDos(t,e)},l.prototype.setUnixMode=function(t){var e=0;e|=(t|=this.isDirectory()?c.S_IFDIR:c.S_IFREG)<c.ZIP64_MAGIC||this.size>c.ZIP64_MAGIC}},function(t,e,n){var r=n(59),i=t.exports=function(){return this instanceof i?(this.descriptor=!1,this.encryption=!1,this.utf8=!1,this.numberOfShannonFanoTrees=0,this.strongEncryption=!1,this.slidingDictionarySize=0,this):new i};i.prototype.encode=function(){return r.getShortBytes((this.descriptor?8:0)|(this.utf8?2048:0)|(this.encryption?1:0)|(this.strongEncryption?64:0))},i.prototype.parse=function(t,e){var n=r.getShortBytesValue(t,e),o=new i;return o.useDataDescriptor(0!=(8&n)),o.useUTF8ForNames(0!=(2048&n)),o.useStrongEncryption(0!=(64&n)),o.useEncryption(0!=(1&n)),o.setSlidingDictionarySize(0!=(2&n)?8192:4096),o.setNumberOfShannonFanoTrees(0!=(4&n)?3:2),o},i.prototype.setNumberOfShannonFanoTrees=function(t){this.numberOfShannonFanoTrees=t},i.prototype.getNumberOfShannonFanoTrees=function(){return this.numberOfShannonFanoTrees},i.prototype.setSlidingDictionarySize=function(t){this.slidingDictionarySize=t},i.prototype.getSlidingDictionarySize=function(){return this.slidingDictionarySize},i.prototype.useDataDescriptor=function(t){this.descriptor=t},i.prototype.usesDataDescriptor=function(){return this.descriptor},i.prototype.useEncryption=function(t){this.encryption=t},i.prototype.usesEncryption=function(){return this.encryption},i.prototype.useStrongEncryption=function(t){this.strongEncryption=t},i.prototype.usesStrongEncryption=function(){return this.strongEncryption},i.prototype.useUTF8ForNames=function(t){this.utf8=t},i.prototype.usesUTF8ForNames=function(){return this.utf8}},function(t,e){t.exports={WORD:4,DWORD:8,EMPTY:new Buffer(0),SHORT:2,SHORT_MASK:65535,SHORT_SHIFT:16,SHORT_ZERO:new Buffer(Array(2)),LONG:4,LONG_ZERO:new Buffer(Array(4)),MIN_VERSION_INITIAL:10,MIN_VERSION_DATA_DESCRIPTOR:20,MIN_VERSION_ZIP64:45,VERSION_MADEBY:45,METHOD_STORED:0,METHOD_DEFLATED:8,PLATFORM_UNIX:3,PLATFORM_FAT:0,SIG_LFH:67324752,SIG_DD:134695760,SIG_CFH:33639248,SIG_EOCD:101010256,SIG_ZIP64_EOCD:101075792,SIG_ZIP64_EOCD_LOC:117853008,ZIP64_MAGIC_SHORT:65535,ZIP64_MAGIC:4294967295,ZIP64_EXTRA_ID:1,ZLIB_NO_COMPRESSION:0,ZLIB_BEST_SPEED:1,ZLIB_BEST_COMPRESSION:9,ZLIB_DEFAULT_COMPRESSION:-1,MODE_MASK:4095,DEFAULT_FILE_MODE:33188,DEFAULT_DIR_MODE:16877,EXT_FILE_ATTR_DIR:1106051088,EXT_FILE_ATTR_FILE:2175008800,S_IFMT:61440,S_IFIFO:4096,S_IFCHR:8192,S_IFDIR:16384,S_IFBLK:24576,S_IFREG:32768,S_IFLNK:40960,S_IFSOCK:49152,S_DOS_A:32,S_DOS_D:16,S_DOS_V:8,S_DOS_S:4,S_DOS_H:2,S_DOS_R:1}},function(t,e,n){var r=n(3).inherits,i=n(11).Transform,o=n(58),s=n(117),a=t.exports=function(t){if(!(this instanceof a))return new a(t);i.call(this,t),this.offset=0,this._archive={finish:!1,finished:!1,processing:!1}};r(a,i),a.prototype._appendBuffer=function(t,e,n){},a.prototype._appendStream=function(t,e,n){},a.prototype._emitErrorCallback=function(t){t&&this.emit("error",t)},a.prototype._finish=function(t){},a.prototype._normalizeEntry=function(t){},a.prototype._transform=function(t,e,n){n(null,t)},a.prototype.entry=function(t,e,n){if(e=e||null,"function"!=typeof n&&(n=this._emitErrorCallback.bind(this)),t instanceof o)if(this._archive.finish||this._archive.finished)n(new Error("unacceptable entry after finish"));else{if(!this._archive.processing){if(this._archive.processing=!0,this._normalizeEntry(t),this._entry=t,e=s.normalizeInputSource(e),Buffer.isBuffer(e))this._appendBuffer(t,e,n);else{if(!s.isStream(e))return this._archive.processing=!1,void n(new Error("input source must be valid Stream or Buffer instance"));this._appendStream(t,e,n)}return this}n(new Error("already processing an entry"))}else n(new Error("not a valid instance of ArchiveEntry"))},a.prototype.finish=function(){this._archive.processing?this._archive.finish=!0:this._finish()},a.prototype.getBytesWritten=function(){return this.offset},a.prototype.write=function(t,e){return t&&(this.offset+=t.length),i.prototype.write.call(this,t,e)}},function(t,e,n){var r=n(7).Stream,i=n(11).PassThrough,o=t.exports={};o.isStream=function(t){return t instanceof r},o.normalizeInputSource=function(t){if(null===t)return new Buffer(0);if("string"==typeof t)return new Buffer(t);if(o.isStream(t)&&!t._readableState){var e=new i;return t.pipe(e),e}return t}},function(t,e,n){"use strict";n.r(e);var r=n(4);var i=r.Buffer.from&&r.Buffer.alloc&&r.Buffer.allocUnsafe&&r.Buffer.allocUnsafeSlow?r.Buffer.from:t=>new r.Buffer(t),o=function(t,e){const n=(t,n)=>e(t,n)>>>0;return n.signed=e,n.unsigned=n,n.model=t,n};var s=o("crc1",function(t,e){r.Buffer.isBuffer(t)||(t=i(t));let n=~~e,o=0;for(let e=0;e>8)}return n});let h=[0,4129,8258,12387,16516,20645,24774,28903,33032,37161,41290,45419,49548,53677,57806,61935,4657,528,12915,8786,21173,17044,29431,25302,37689,33560,45947,41818,54205,50076,62463,58334,9314,13379,1056,5121,25830,29895,17572,21637,42346,46411,34088,38153,58862,62927,50604,54669,13907,9842,5649,1584,30423,26358,22165,18100,46939,42874,38681,34616,63455,59390,55197,51132,18628,22757,26758,30887,2112,6241,10242,14371,51660,55789,59790,63919,35144,39273,43274,47403,23285,19156,31415,27286,6769,2640,14899,10770,56317,52188,64447,60318,39801,35672,47931,43802,27814,31879,19684,23749,11298,15363,3168,7233,60846,64911,52716,56781,44330,48395,36200,40265,32407,28342,24277,20212,15891,11826,7761,3696,65439,61374,57309,53244,48923,44858,40793,36728,37256,33193,45514,41451,53516,49453,61774,57711,4224,161,12482,8419,20484,16421,28742,24679,33721,37784,41979,46042,49981,54044,58239,62302,689,4752,8947,13010,16949,21012,25207,29270,46570,42443,38312,34185,62830,58703,54572,50445,13538,9411,5280,1153,29798,25671,21540,17413,42971,47098,34713,38840,59231,63358,50973,55100,9939,14066,1681,5808,26199,30326,17941,22068,55628,51565,63758,59695,39368,35305,47498,43435,22596,18533,30726,26663,6336,2273,14466,10403,52093,56156,60223,64286,35833,39896,43963,48026,19061,23124,27191,31254,2801,6864,10931,14994,64814,60687,56684,52557,48554,44427,40424,36297,31782,27655,23652,19525,15522,11395,7392,3265,61215,65342,53085,57212,44955,49082,36825,40952,28183,32310,20053,24180,11923,16050,3793,7920];"undefined"!=typeof Int32Array&&(h=new Int32Array(h));var d=o("ccitt",function(t,e){r.Buffer.isBuffer(t)||(t=i(t));let n=void 0!==e?~~e:65535;for(let e=0;e>8^r)]^n<<8)}return n});let g=[0,49345,49537,320,49921,960,640,49729,50689,1728,1920,51009,1280,50625,50305,1088,52225,3264,3456,52545,3840,53185,52865,3648,2560,51905,52097,2880,51457,2496,2176,51265,55297,6336,6528,55617,6912,56257,55937,6720,7680,57025,57217,8e3,56577,7616,7296,56385,5120,54465,54657,5440,55041,6080,5760,54849,53761,4800,4992,54081,4352,53697,53377,4160,61441,12480,12672,61761,13056,62401,62081,12864,13824,63169,63361,14144,62721,13760,13440,62529,15360,64705,64897,15680,65281,16320,16e3,65089,64001,15040,15232,64321,14592,63937,63617,14400,10240,59585,59777,10560,60161,11200,10880,59969,60929,11968,12160,61249,11520,60865,60545,11328,58369,9408,9600,58689,9984,59329,59009,9792,8704,58049,58241,9024,57601,8640,8320,57409,40961,24768,24960,41281,25344,41921,41601,25152,26112,42689,42881,26432,42241,26048,25728,42049,27648,44225,44417,27968,44801,28608,28288,44609,43521,27328,27520,43841,26880,43457,43137,26688,30720,47297,47489,31040,47873,31680,31360,47681,48641,32448,32640,48961,32e3,48577,48257,31808,46081,29888,30080,46401,30464,47041,46721,30272,29184,45761,45953,29504,45313,29120,28800,45121,20480,37057,37249,20800,37633,21440,21120,37441,38401,22208,22400,38721,21760,38337,38017,21568,39937,23744,23936,40257,24320,40897,40577,24128,23040,39617,39809,23360,39169,22976,22656,38977,34817,18624,18816,35137,19200,35777,35457,19008,19968,36545,36737,20288,36097,19904,19584,35905,17408,33985,34177,17728,34561,18368,18048,34369,33281,17088,17280,33601,16640,33217,32897,16448];"undefined"!=typeof Int32Array&&(g=new Int32Array(g));var m=o("crc-16-modbus",function(t,e){r.Buffer.isBuffer(t)||(t=i(t));let n=void 0!==e?~~e:65535;for(let e=0;e>8)}return n});var _=o("xmodem",function(t,e){r.Buffer.isBuffer(t)||(t=i(t));let n=void 0!==e?~~e:0;for(let e=0;e>>8&255;r^=255&t[e],n=n<<8&65535,n^=r^=r>>>4,n^=r=r<<5&65535,n^=r=r<<7&65535}return n});let b=[0,4489,8978,12955,17956,22445,25910,29887,35912,40385,44890,48851,51820,56293,59774,63735,4225,264,13203,8730,22181,18220,30135,25662,40137,36160,49115,44626,56045,52068,63999,59510,8450,12427,528,5017,26406,30383,17460,21949,44362,48323,36440,40913,60270,64231,51324,55797,12675,8202,4753,792,30631,26158,21685,17724,48587,44098,40665,36688,64495,60006,55549,51572,16900,21389,24854,28831,1056,5545,10034,14011,52812,57285,60766,64727,34920,39393,43898,47859,21125,17164,29079,24606,5281,1320,14259,9786,57037,53060,64991,60502,39145,35168,48123,43634,25350,29327,16404,20893,9506,13483,1584,6073,61262,65223,52316,56789,43370,47331,35448,39921,29575,25102,20629,16668,13731,9258,5809,1848,65487,60998,56541,52564,47595,43106,39673,35696,33800,38273,42778,46739,49708,54181,57662,61623,2112,6601,11090,15067,20068,24557,28022,31999,38025,34048,47003,42514,53933,49956,61887,57398,6337,2376,15315,10842,24293,20332,32247,27774,42250,46211,34328,38801,58158,62119,49212,53685,10562,14539,2640,7129,28518,32495,19572,24061,46475,41986,38553,34576,62383,57894,53437,49460,14787,10314,6865,2904,32743,28270,23797,19836,50700,55173,58654,62615,32808,37281,41786,45747,19012,23501,26966,30943,3168,7657,12146,16123,54925,50948,62879,58390,37033,33056,46011,41522,23237,19276,31191,26718,7393,3432,16371,11898,59150,63111,50204,54677,41258,45219,33336,37809,27462,31439,18516,23005,11618,15595,3696,8185,63375,58886,54429,50452,45483,40994,37561,33584,31687,27214,22741,18780,15843,11370,7921,3960];"undefined"!=typeof Int32Array&&(b=new Int32Array(b));var y=o("kermit",function(t,e){r.Buffer.isBuffer(t)||(t=i(t));let n=void 0!==e?~~e:0;for(let e=0;e>8)}return n});let v=[0,8801531,9098509,825846,9692897,1419802,1651692,10452759,10584377,2608578,2839604,11344079,3303384,11807523,12104405,4128302,12930697,4391538,5217156,13227903,5679208,13690003,14450021,5910942,6606768,14844747,15604413,6837830,16197969,7431594,8256604,16494759,840169,9084178,8783076,18463,10434312,1670131,1434117,9678590,11358416,2825259,2590173,10602790,4109873,12122826,11821884,3289031,13213536,5231515,4409965,12912278,5929345,14431610,13675660,5693559,6823513,15618722,14863188,6588335,16513208,8238147,7417269,16212302,1680338,10481449,9664223,1391140,9061683,788936,36926,8838341,12067563,4091408,3340262,11844381,2868234,11372785,10555655,2579964,14478683,5939616,5650518,13661357,5180346,13190977,12967607,4428364,8219746,16457881,16234863,7468436,15633027,6866552,6578062,14816117,1405499,9649856,10463030,1698765,8819930,55329,803287,9047340,11858690,3325945,4072975,12086004,2561507,10574104,11387118,2853909,13647026,5664841,5958079,14460228,4446803,12949160,13176670,5194661,7454091,16249200,16476294,8201341,14834538,6559633,6852199,15647388,3360676,11864927,12161705,4185682,10527045,2551230,2782280,11286707,9619101,1346150,1577872,10379115,73852,8875143,9172337,899466,16124205,7357910,8182816,16421083,6680524,14918455,15678145,6911546,5736468,13747439,14507289,5968354,12873461,4334094,5159928,13170435,4167245,12180150,11879232,3346363,11301036,2767959,2532769,10545498,10360692,1596303,1360505,9604738,913813,9157998,8856728,92259,16439492,8164415,7343561,16138546,6897189,15692510,14936872,6662099,5986813,14488838,13733104,5750795,13156124,5174247,4352529,12855018,2810998,11315341,10498427,2522496,12124823,4148844,3397530,11901793,9135439,862644,110658,8912057,1606574,10407765,9590435,1317464,15706879,6940164,6651890,14889737,8145950,16384229,16161043,7394792,5123014,13133629,12910283,4370992,14535975,5997020,5707818,13718737,2504095,10516836,11329682,2796649,11916158,3383173,4130419,12143240,8893606,129117,876971,9121104,1331783,9576124,10389322,1625009,14908182,6633453,6925851,15721184,7380471,16175372,16402682,8127489,4389423,12891860,13119266,5137369,13704398,5722165,6015427,14517560];"undefined"!=typeof Int32Array&&(v=new Int32Array(v));var x=o("crc-24",function(t,e){r.Buffer.isBuffer(t)||(t=i(t));let n=void 0!==e?~~e:11994318;for(let e=0;e>16^r)]^n<<8)}return n});let w=[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];"undefined"!=typeof Int32Array&&(w=new Int32Array(w));var k=o("crc-32",function(t,e){r.Buffer.isBuffer(t)||(t=i(t));let n=0===e?0:-1^~~e;for(let e=0;e>>8}return-1^n});let E=[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];"undefined"!=typeof Int32Array&&(E=new Int32Array(E));var D=o("jam",function(t,e=-1){r.Buffer.isBuffer(t)||(t=i(t));let n=0===e?0:~~e;for(let e=0;e>>8}return n});n.d(e,"crc1",function(){return s}),n.d(e,"crc8",function(){return c}),n.d(e,"crc81wire",function(){return l}),n.d(e,"crc16",function(){return f}),n.d(e,"crc16ccitt",function(){return d}),n.d(e,"crc16modbus",function(){return m}),n.d(e,"crc16xmodem",function(){return _}),n.d(e,"crc16kermit",function(){return y}),n.d(e,"crc24",function(){return x}),n.d(e,"crc32",function(){return k}),n.d(e,"crcjam",function(){return D});e.default={crc1:s,crc8:c,crc81wire:l,crc16:f,crc16ccitt:d,crc16modbus:m,crc16xmodem:_,crc16kermit:y,crc24:x,crc32:k,crcjam:D}},function(t,e,n){var r=n(1),i=n(5),o=parseInt("0777",8);function s(t,e,n,a){"function"==typeof e?(n=e,e={}):e&&"object"==typeof e||(e={mode:e});var c=e.mode,u=e.fs||i;void 0===c&&(c=o&~process.umask()),a||(a=null);var l=n||function(){};t=r.resolve(t),u.mkdir(t,c,function(n){if(!n)return l(null,a=a||t);switch(n.code){case"ENOENT":s(r.dirname(t),e,function(n,r){n?l(n,r):s(t,e,l,r)});break;default:u.stat(t,function(t,e){t||!e.isDirectory()?l(n,a):l(null,a)})}})}t.exports=s.mkdirp=s.mkdirP=s,s.sync=function t(e,n,s){n&&"object"==typeof n||(n={mode:n});var a=n.mode,c=n.fs||i;void 0===a&&(a=o&~process.umask()),s||(s=null),e=r.resolve(e);try{c.mkdirSync(e,a),s=s||e}catch(i){switch(i.code){case"ENOENT":s=t(r.dirname(e),n,s),t(e,n,s);break;default:var u;try{u=c.statSync(e)}catch(t){throw i}if(!u.isDirectory())throw i}}return s}},function(t,e,n){"use strict";function r(t,e,n,o,s,a){for(var c,u,l,p,f=Math.max(e-1,0),h=Math.max(n-1,0),d=Math.min(e+1,o-1),g=Math.min(n+1,s-1),m=4*(n*o+e),_=0,b=0,y=0,v=0,x=0,w=f;w<=d;w++)for(var k=h;k<=g;k++)if(w!==e||k!==n){var E=i(t,t,m,4*(k*o+w),!0);if(0===E?_++:E<0?y++:E>0&&b++,_>2)return!1;a&&(Ex&&(x=E,l=w,p=k))}return!a||0!==y&&0!==b&&(!r(t,c,u,o,s)&&!r(a,c,u,o,s)||!r(t,l,p,o,s)&&!r(a,l,p,o,s))}function i(t,e,n,r,i){var u=t[n+3]/255,l=e[r+3]/255,p=c(t[n+0],u),f=c(t[n+1],u),h=c(t[n+2],u),d=c(e[r+0],l),g=c(e[r+1],l),m=c(e[r+2],l),_=o(p,f,h)-o(d,g,m);if(i)return _;var b=s(p,f,h)-s(d,g,m),y=a(p,f,h)-a(d,g,m);return.5053*_*_+.299*b*b+.1957*y*y}function o(t,e,n){return.29889531*t+.58662247*e+.11448223*n}function s(t,e,n){return.59597799*t-.2741761*e-.32180189*n}function a(t,e,n){return.21147017*t-.52261711*e+.31114694*n}function c(t,e){return 255+(t-255)*e}function u(t,e,n,r,i){t[e+0]=n,t[e+1]=r,t[e+2]=i,t[e+3]=255}t.exports=function(t,e,n,s,a,l){l||(l={});for(var p=void 0===l.threshold?.1:l.threshold,f=35215*p*p,h=0,d=0;df)l.includeAA||!r(t,g,d,s,a,e)&&!r(e,g,d,s,a,t)?(n&&u(n,m,255,0,0),h++):n&&u(n,m,255,255,0);else if(n){var b=c((x=void 0,w=void 0,k=void 0,E=void 0,x=(y=t)[(v=m)+3]/255,w=c(y[v+0],x),k=c(y[v+1],x),E=c(y[v+2],x),o(w,k,E)),.1);u(n,m,b,b,b)}}var y,v,x,w,k,E;return h}},function(t,e,n){function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(){return(i=Object.assign||function(t){for(var e=1;e[...t].map(t=>t.charCodeAt(0)),i=r("META-INF/mozilla.rsa"),o=r("[Content_Types].xml"),s=r("_rels/.rels");t.exports=t=>{const e=t instanceof Uint8Array?t:new Uint8Array(t);if(!(e&&e.length>1))return null;const n=(t,n)=>{n=Object.assign({offset:0},n);for(let r=0;rn(r(t),e);if(n([255,216,255]))return{ext:"jpg",mime:"image/jpeg"};if(n([137,80,78,71,13,10,26,10]))return{ext:"png",mime:"image/png"};if(n([71,73,70]))return{ext:"gif",mime:"image/gif"};if(n([87,69,66,80],{offset:8}))return{ext:"webp",mime:"image/webp"};if(n([70,76,73,70]))return{ext:"flif",mime:"image/flif"};if((n([73,73,42,0])||n([77,77,0,42]))&&n([67,82],{offset:8}))return{ext:"cr2",mime:"image/x-canon-cr2"};if(n([73,73,42,0])||n([77,77,0,42]))return{ext:"tif",mime:"image/tiff"};if(n([66,77]))return{ext:"bmp",mime:"image/bmp"};if(n([73,73,188]))return{ext:"jxr",mime:"image/vnd.ms-photo"};if(n([56,66,80,83]))return{ext:"psd",mime:"image/vnd.adobe.photoshop"};if(n([80,75,3,4])){if(n([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(n(i,{offset:30}))return{ext:"xpi",mime:"application/x-xpinstall"};if(a("mimetypeapplication/vnd.oasis.opendocument.text",{offset:30}))return{ext:"odt",mime:"application/vnd.oasis.opendocument.text"};if(a("mimetypeapplication/vnd.oasis.opendocument.spreadsheet",{offset:30}))return{ext:"ods",mime:"application/vnd.oasis.opendocument.spreadsheet"};if(a("mimetypeapplication/vnd.oasis.opendocument.presentation",{offset:30}))return{ext:"odp",mime:"application/vnd.oasis.opendocument.presentation"};const t=(t,e=0)=>t.findIndex((t,n,r)=>n>=e&&80===r[n]&&75===r[n+1]&&3===r[n+2]&&4===r[n+3]);let r=0,c=!1,u=null;do{const i=r+30;if(c||(c=n(o,{offset:i})||n(s,{offset:i})),u||(a("word/",{offset:i})?u={ext:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"}:a("ppt/",{offset:i})?u={ext:"pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"}:a("xl/",{offset:i})&&(u={ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"})),c&&u)return u;r=t(e,i)}while(r>=0);if(u)return u}if(n([80,75])&&(3===e[2]||5===e[2]||7===e[2])&&(4===e[3]||6===e[3]||8===e[3]))return{ext:"zip",mime:"application/zip"};if(n([117,115,116,97,114],{offset:257}))return{ext:"tar",mime:"application/x-tar"};if(n([82,97,114,33,26,7])&&(0===e[6]||1===e[6]))return{ext:"rar",mime:"application/x-rar-compressed"};if(n([31,139,8]))return{ext:"gz",mime:"application/gzip"};if(n([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(n([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(n([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(n([51,103,112,53])||n([0,0,0])&&n([102,116,121,112],{offset:4})&&(n([109,112,52,49],{offset:8})||n([109,112,52,50],{offset:8})||n([105,115,111,109],{offset:8})||n([105,115,111,50],{offset:8})||n([109,109,112,52],{offset:8})||n([77,52,86],{offset:8})||n([100,97,115,104],{offset:8})))return{ext:"mp4",mime:"video/mp4"};if(n([77,84,104,100]))return{ext:"mid",mime:"audio/midi"};if(n([26,69,223,163])){const t=e.subarray(4,4100),n=t.findIndex((t,e,n)=>66===n[e]&&130===n[e+1]);if(-1!==n){const e=n+3,r=n=>[...n].every((n,r)=>t[e+r]===n.charCodeAt(0));if(r("matroska"))return{ext:"mkv",mime:"video/x-matroska"};if(r("webm"))return{ext:"webm",mime:"video/webm"}}}if(n([0,0,0,20,102,116,121,112,113,116,32,32])||n([102,114,101,101],{offset:4})||n([102,116,121,112,113,116,32,32],{offset:4})||n([109,100,97,116],{offset:4})||n([119,105,100,101],{offset:4}))return{ext:"mov",mime:"video/quicktime"};if(n([82,73,70,70])){if(n([65,86,73],{offset:8}))return{ext:"avi",mime:"video/vnd.avi"};if(n([87,65,86,69],{offset:8}))return{ext:"wav",mime:"audio/vnd.wave"};if(n([81,76,67,77],{offset:8}))return{ext:"qcp",mime:"audio/qcelp"}}if(n([48,38,178,117,142,102,207,17,166,217]))return{ext:"wmv",mime:"video/x-ms-wmv"};if(n([0,0,1,186])||n([0,0,1,179]))return{ext:"mpg",mime:"video/mpeg"};if(n([102,116,121,112,51,103],{offset:4}))return{ext:"3gp",mime:"video/3gpp"};for(let t=0;t<2&&t>=c,l-=c,m!==o){if(m===s)break;for(var _=mo;)y=d[y]>>8,++b;var v=y;if(f+b+(_!==m?1:0)>r)return void console.log("Warning, gif stream longer than expected.");n[f++]=v;var x=f+=b;for(_!==m&&(n[f++]=v),y=_;b--;)y=d[y],n[--x]=255&y,y>>=8;null!==g&&a<4096&&(d[a++]=g<<8|v,a>=u+1&&c<12&&(++c,u=u<<1|1)),g=m}else a=s+1,u=(1<<(c=i+1))-1,g=null}return f!==r&&console.log("Warning, gif stream shorter than expected."),n}try{e.GifWriter=function(t,e,n,r){var i=0,o=void 0===(r=void 0===r?{}:r).loop?null:r.loop,s=void 0===r.palette?null:r.palette;if(e<=0||n<=0||e>65535||n>65535)throw new Error("Width/Height invalid.");function a(t){var e=t.length;if(e<2||e>256||e&e-1)throw new Error("Invalid code/color length, must be power of 2 and 2 .. 256.");return e}t[i++]=71,t[i++]=73,t[i++]=70,t[i++]=56,t[i++]=57,t[i++]=97;var c=0,u=0;if(null!==s){for(var l=a(s);l>>=1;)++c;if(l=1<=l)throw new Error("Background index out of range.");if(0===u)throw new Error("Background index explicitly passed as 0.")}}if(t[i++]=255&e,t[i++]=e>>8&255,t[i++]=255&n,t[i++]=n>>8&255,t[i++]=(null!==s?128:0)|c,t[i++]=u,t[i++]=0,null!==s)for(var p=0,f=s.length;p>16&255,t[i++]=h>>8&255,t[i++]=255&h}if(null!==o){if(o<0||o>65535)throw new Error("Loop count invalid.");t[i++]=33,t[i++]=255,t[i++]=11,t[i++]=78,t[i++]=69,t[i++]=84,t[i++]=83,t[i++]=67,t[i++]=65,t[i++]=80,t[i++]=69,t[i++]=50,t[i++]=46,t[i++]=48,t[i++]=3,t[i++]=1,t[i++]=255&o,t[i++]=o>>8&255,t[i++]=0}var d=!1;this.addFrame=function(e,n,r,o,c,u){if(!0===d&&(--i,d=!1),u=void 0===u?{}:u,e<0||n<0||e>65535||n>65535)throw new Error("x/y invalid.");if(r<=0||o<=0||r>65535||o>65535)throw new Error("Width/Height invalid.");if(c.length>=1;)++h;f=1<3)throw new Error("Disposal out of range.");var _=!1,b=0;if(void 0!==u.transparent&&null!==u.transparent&&(_=!0,(b=u.transparent)<0||b>=f))throw new Error("Transparent color index.");if((0!==m||_||0!==g)&&(t[i++]=33,t[i++]=249,t[i++]=4,t[i++]=m<<2|(!0===_?1:0),t[i++]=255&g,t[i++]=g>>8&255,t[i++]=b,t[i++]=0),t[i++]=44,t[i++]=255&e,t[i++]=e>>8&255,t[i++]=255&n,t[i++]=n>>8&255,t[i++]=255&r,t[i++]=r>>8&255,t[i++]=255&o,t[i++]=o>>8&255,t[i++]=!0===l?128|h-1:0,!0===l)for(var y=0,v=p.length;y>16&255,t[i++]=x>>8&255,t[i++]=255&x}return i=function(t,e,n,r){t[e++]=n;var i=e++,o=1<=n;)t[e++]=255&p,p>>=8,l-=8,e===i+256&&(t[i]=255,i=e++)}function h(t){p|=t<=8;)t[e++]=255&p,p>>=8,l-=8,e===i+256&&(t[i]=255,i=e++);4096===c?(h(o),c=a+1,u=n+1,g={}):(c>=1<>7,a=1<<1+(7&o);t[e++],t[e++];var c=null,u=null;s&&(c=e,u=a,e+=3*a);var l=!0,p=[],f=0,h=null,d=0,g=null;for(this.width=n,this.height=i;l&&e=0))throw Error("Invalid block size");if(0===C)break;e+=C}break;case 249:if(4!==t[e++]||0!==t[e+4])throw new Error("Invalid graphics extension block.");var m=t[e++];f=t[e++]|t[e++]<<8,h=t[e++],0==(1&m)&&(h=null),d=m>>2&7,e++;break;case 254:for(;;){if(!((C=t[e++])>=0))throw Error("Invalid block size");if(0===C)break;e+=C}break;default:throw new Error("Unknown graphic control label: 0x"+t[e-1].toString(16))}break;case 44:var _=t[e++]|t[e++]<<8,b=t[e++]|t[e++]<<8,y=t[e++]|t[e++]<<8,v=t[e++]|t[e++]<<8,x=t[e++],w=x>>6&1,k=1<<1+(7&x),E=c,D=u,S=!1;x>>7&&(S=!0,E=e,D=k,e+=3*k);var O=e;for(e++;;){var C;if(!((C=t[e++])>=0))throw Error("Invalid block size");if(0===C)break;e+=C}p.push({x:_,y:b,width:y,height:v,has_local_palette:S,palette_offset:E,palette_size:D,data_offset:O,data_length:e-O,transparent_index:h,interlaced:!!w,delay:f,disposal:d});break;case 59:l=!1;break;default:throw new Error("Unknown gif block: 0x"+t[e-1].toString(16))}this.numFrames=function(){return p.length},this.loopCount=function(){return g},this.frameInfo=function(t){if(t<0||t>=p.length)throw new Error("Frame index out of range.");return p[t]},this.decodeAndBlitFrameBGRA=function(e,i){var o=this.frameInfo(e),s=o.width*o.height,a=new Uint8Array(s);r(t,o.data_offset,a,s);var c=o.palette_offset,u=o.transparent_index;null===u&&(u=256);var l=o.width,p=n-l,f=l,h=4*(o.y*n+o.x),d=4*((o.y+o.height)*n+o.x),g=h,m=4*p;!0===o.interlaced&&(m+=4*n*7);for(var _=8,b=0,y=a.length;b=d&&(m=4*p+4*n*(_-1),g=h+(l+p)*(_<<1),_>>=1)),v===u)g+=4;else{var x=t[c+3*v],w=t[c+3*v+1],k=t[c+3*v+2];i[g++]=k,i[g++]=w,i[g++]=x,i[g++]=255}--f}},this.decodeAndBlitFrameRGBA=function(e,i){var o=this.frameInfo(e),s=o.width*o.height,a=new Uint8Array(s);r(t,o.data_offset,a,s);var c=o.palette_offset,u=o.transparent_index;null===u&&(u=256);var l=o.width,p=n-l,f=l,h=4*(o.y*n+o.x),d=4*((o.y+o.height)*n+o.x),g=h,m=4*p;!0===o.interlaced&&(m+=4*n*7);for(var _=8,b=0,y=a.length;b=d&&(m=4*p+4*n*(_-1),g=h+(l+p)*(_<<1),_>>=1)),v===u)g+=4;else{var x=t[c+3*v],w=t[c+3*v+1],k=t[c+3*v+2];i[g++]=x,i[g++]=w,i[g++]=k,i[g++]=255}--f}}}}catch(t){}},function(t,e){function n(t,e,n,r,i,o,s){this.widthOriginal=Math.abs(Math.floor(t)||0),this.heightOriginal=Math.abs(Math.floor(e)||0),this.targetWidth=Math.abs(Math.floor(n)||0),this.targetHeight=Math.abs(Math.floor(r)||0),this.colorChannels=i?4:3,this.interpolationPass=Boolean(o),this.resizeCallback="function"==typeof s?s:function(){},this.targetWidthMultipliedByChannels=this.targetWidth*this.colorChannels,this.originalWidthMultipliedByChannels=this.widthOriginal*this.colorChannels,this.originalHeightMultipliedByChannels=this.heightOriginal*this.colorChannels,this.widthPassResultSize=this.targetWidthMultipliedByChannels*this.heightOriginal,this.finalResultSize=this.targetWidthMultipliedByChannels*this.targetHeight,this.initialize()}n.prototype.initialize=function(){if(!(this.widthOriginal>0&&this.heightOriginal>0&&this.targetWidth>0&&this.targetHeight>0))throw new Error("Invalid settings specified for the resizer.");this.configurePasses()},n.prototype.configurePasses=function(){this.widthOriginal===this.targetWidth?this.resizeWidth=this.bypassResizer:(this.ratioWeightWidthPass=this.widthOriginal/this.targetWidth,this.ratioWeightWidthPass<1&&this.interpolationPass?(this.initializeFirstPassBuffers(!0),this.resizeWidth=4===this.colorChannels?this.resizeWidthInterpolatedRGBA:this.resizeWidthInterpolatedRGB):(this.initializeFirstPassBuffers(!1),this.resizeWidth=4===this.colorChannels?this.resizeWidthRGBA:this.resizeWidthRGB)),this.heightOriginal===this.targetHeight?this.resizeHeight=this.bypassResizer:(this.ratioWeightHeightPass=this.heightOriginal/this.targetHeight,this.ratioWeightHeightPass<1&&this.interpolationPass?(this.initializeSecondPassBuffers(!0),this.resizeHeight=this.resizeHeightInterpolated):(this.initializeSecondPassBuffers(!1),this.resizeHeight=4===this.colorChannels?this.resizeHeightRGBA:this.resizeHeightRGB))},n.prototype._resizeWidthInterpolatedRGBChannels=function(t,e){var n,r,i=e?4:3,o=this.ratioWeightWidthPass,s=this.widthBuffer,a=0,c=0,u=0,l=0,p=0;for(n=0;a<1/3;n+=i,a+=o)for(c=n,u=0;c=p)){h+=l;break}h=f+=n,l-=p}while(l>0&&f=c)){l+=a;break}l=u=h,a-=c}while(a>0&&u3&&(this.outputWidthWorkBenchOpaquePixelsCount=this.generateFloat64Buffer(this.heightOriginal)))},n.prototype.initializeSecondPassBuffers=function(t){this.heightBuffer=this.generateUint8Buffer(this.finalResultSize),t||(this.outputHeightWorkBench=this.generateFloatBuffer(this.targetWidthMultipliedByChannels),this.colorChannels>3&&(this.outputHeightWorkBenchOpaquePixelsCount=this.generateFloat64Buffer(this.targetWidth)))},n.prototype.generateFloatBuffer=function(t){try{return new Float32Array(t)}catch(t){return[]}},n.prototype.generateFloat64Buffer=function(t){try{return new Float64Array(t)}catch(t){return[]}},n.prototype.generateUint8Buffer=function(t){try{return new Uint8Array(t)}catch(t){return[]}},t.exports=n},function(t,e,n){"use strict";(function(t){var r=n(1),i=n.n(r),o=n(127),s=n.n(o),a=n(0),c=n(16);function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e0&&i.height>0){var o=e.pages[i.page];t.blit(o,n+i.xoffset,r+i.yoffset,i.x,i.y,i.width,i.height)}return t}var f=process.env.DIRNAME||"".concat(t,"/../");e.a=function(){return{constants:{measureText:c.a,measureTextHeight:c.b,FONT_SANS_8_BLACK:i.a.join(f,"fonts/open-sans/open-sans-8-black/open-sans-8-black.fnt"),FONT_SANS_10_BLACK:i.a.join(f,"fonts/open-sans/open-sans-10-black/open-sans-10-black.fnt"),FONT_SANS_12_BLACK:i.a.join(f,"fonts/open-sans/open-sans-12-black/open-sans-12-black.fnt"),FONT_SANS_14_BLACK:i.a.join(f,"fonts/open-sans/open-sans-14-black/open-sans-14-black.fnt"),FONT_SANS_16_BLACK:i.a.join(f,"fonts/open-sans/open-sans-16-black/open-sans-16-black.fnt"),FONT_SANS_32_BLACK:i.a.join(f,"fonts/open-sans/open-sans-32-black/open-sans-32-black.fnt"),FONT_SANS_64_BLACK:i.a.join(f,"fonts/open-sans/open-sans-64-black/open-sans-64-black.fnt"),FONT_SANS_128_BLACK:i.a.join(f,"fonts/open-sans/open-sans-128-black/open-sans-128-black.fnt"),FONT_SANS_8_WHITE:i.a.join(f,"fonts/open-sans/open-sans-8-white/open-sans-8-white.fnt"),FONT_SANS_16_WHITE:i.a.join(f,"fonts/open-sans/open-sans-16-white/open-sans-16-white.fnt"),FONT_SANS_32_WHITE:i.a.join(f,"fonts/open-sans/open-sans-32-white/open-sans-32-white.fnt"),FONT_SANS_64_WHITE:i.a.join(f,"fonts/open-sans/open-sans-64-white/open-sans-64-white.fnt"),FONT_SANS_128_WHITE:i.a.join(f,"fonts/open-sans/open-sans-128-white/open-sans-128-white.fnt"),loadFont:function(t,e){var n=this;return"string"!=typeof t?a.c.call(this,"file must be a string",e):new Promise(function(r,o){e=e||function(t,e){t?o(t):r(e)},s()(t,function(r,o){var s={},c={};if(r)return a.c.call(n,r,e);for(var u=0;us&&(s=a),o.push(e)):(i.push(o),o=[e])}),i.push(o),{lines:i,longestLine:s}}(t,r,i),_=m.lines,b=m.longestLine;return _.forEach(function(r){var o=r.join(" "),s=function(t,e,n,r,i){return i===t.HORIZONTAL_ALIGN_LEFT?0:i===t.HORIZONTAL_ALIGN_CENTER?(r-Object(c.a)(e,n))/2:r-Object(c.a)(e,n)}(d.constructor,t,o,i,f);(function(t,e,n,r,i){for(var o=0;o>2,s=(31&t[e])<<3,a=128&t[e+1]):console.error("cant transform to Pixel"),this.pixels[n]=i,this.pixels[n+1]=o,this.pixels[n+2]=s,this.pixels[n+3]=a}readPixels(){r("readPixels");var t=this.header,e=(t.bytesPerPixel,t.width*t.height),n=new Uint8Array(this.buffer);this.pixels=new Uint8Array(4*e);for(var i=18,o=0;o((t,e)=>0===e.plugins.length?Promise.resolve([]):Promise.all(e.plugins.map(n=>n(t,e))).then(t=>t.reduce((t,e)=>t.concat(e))))(t,n).then(t=>(n.strip>0&&(t=t.map(t=>(t.path=p(t.path,n.strip),t)).filter(t=>"."!==t.path)),"function"==typeof n.filter&&(t=t.filter(n.filter)),"function"==typeof n.map&&(t=t.map(n.map)),e?Promise.all(t.map(t=>{const n=r.join(e,t.path),i=t.mode&~process.umask(),o=new Date;return"directory"===t.type?u(n).then(()=>f.utimes(n,o,t.mtime)).then(()=>t):u(r.dirname(n)).then(()=>"link"===t.type?f.link(t.linkname,n):"symlink"===t.type&&"win32"===process.platform?f.link(t.linkname,n):"symlink"===t.type?f.symlink(t.linkname,n):f.writeFile(n,t.data,{mode:i})).then(()=>"file"===t.type&&f.utimes(n,o,t.mtime)).then(()=>t)})):t));t.exports=(t,e,n)=>{if("string"!=typeof t&&!Buffer.isBuffer(t))return Promise.reject(new TypeError("Input file required"));return"object"==typeof e&&(n=e,e=null),n=Object.assign({plugins:[o(),s(),a(),c()]},n),("string"==typeof t?f.readFile(t):Promise.resolve(t)).then(t=>h(t,e,n))}},function(t,e,n){"use strict";var r=n(5),i=n(259),o=n(1);class s{static async zip(t,e){return new Promise((n,r)=>{s.zipFolder(t,e,t=>{t&&r(t),n()})})}static zipFolder(t,e,n){r.access(t,r.constants.F_OK,s=>{if(s)return n(s);r.access(o.dirname(e),r.constants.F_OK,o=>{if(o)return n(o);var s=r.createWriteStream(e),a=i("zip");s.on("close",function(){n()}),a.pipe(s),a.directory(t,!1),a.finalize()})})}}t.exports=s},function(t,e,n){var r=n(48),i=function(){},o=function(t,e,n){if("function"==typeof e)return o(t,null,e);e||(e={}),n=r(n||i);var s=t._writableState,a=t._readableState,c=e.readable||!1!==e.readable&&t.readable,u=e.writable||!1!==e.writable&&t.writable,l=function(){t.writable||p()},p=function(){u=!1,c||n.call(t)},f=function(){c=!1,u||n.call(t)},h=function(e){n.call(t,e?new Error("exited with error code: "+e):null)},d=function(e){n.call(t,e)},g=function(){return(!c||a&&a.ended)&&(!u||s&&s.ended)?void 0:n.call(t,new Error("premature close"))},m=function(){t.req.on("finish",p)};return!function(t){return t.setHeader&&"function"==typeof t.abort}(t)?u&&!s&&(t.on("end",l),t.on("close",l)):(t.on("complete",p),t.on("abort",g),t.req?m():t.on("request",m)),function(t){return t.stdio&&Array.isArray(t.stdio)&&3===t.stdio.length}(t)&&t.on("exit",h),t.on("end",f),t.on("finish",p),!1!==e.error&&t.on("error",d),t.on("close",g),function(){t.removeListener("complete",p),t.removeListener("abort",g),t.removeListener("request",m),t.req&&t.req.removeListener("finish",p),t.removeListener("end",l),t.removeListener("close",l),t.removeListener("finish",p),t.removeListener("exit",h),t.removeListener("end",f),t.removeListener("error",d),t.removeListener("close",g)}};t.exports=o},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){"use strict";function r(t){this.name="YError",this.message=t||"yargs error",Error.captureStackTrace(this,r)}r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,t.exports=r},function(t,e,n){"use strict";n.r(e);var r={};n.r(r),n.d(r,"AUTO",function(){return N}),n.d(r,"HORIZONTAL_ALIGN_LEFT",function(){return z}),n.d(r,"HORIZONTAL_ALIGN_CENTER",function(){return R}),n.d(r,"HORIZONTAL_ALIGN_RIGHT",function(){return U}),n.d(r,"VERTICAL_ALIGN_TOP",function(){return G}),n.d(r,"VERTICAL_ALIGN_MIDDLE",function(){return H}),n.d(r,"VERTICAL_ALIGN_BOTTOM",function(){return $}),n.d(r,"BLEND_SOURCE_OVER",function(){return W}),n.d(r,"BLEND_DESTINATION_OVER",function(){return q}),n.d(r,"BLEND_MULTIPLY",function(){return V}),n.d(r,"BLEND_SCREEN",function(){return Y}),n.d(r,"BLEND_OVERLAY",function(){return Z}),n.d(r,"BLEND_DARKEN",function(){return X}),n.d(r,"BLEND_LIGHTEN",function(){return Q}),n.d(r,"BLEND_HARDLIGHT",function(){return J}),n.d(r,"BLEND_DIFFERENCE",function(){return K}),n.d(r,"BLEND_EXCLUSION",function(){return tt}),n.d(r,"EDGE_EXTEND",function(){return et}),n.d(r,"EDGE_WRAP",function(){return nt}),n.d(r,"EDGE_CROP",function(){return rt});var i={};n.r(i),n.d(i,"srcOver",function(){return it}),n.d(i,"dstOver",function(){return ot}),n.d(i,"multiply",function(){return st}),n.d(i,"screen",function(){return at}),n.d(i,"overlay",function(){return ct}),n.d(i,"darken",function(){return ut}),n.d(i,"lighten",function(){return lt}),n.d(i,"hardLight",function(){return pt}),n.d(i,"difference",function(){return ft}),n.d(i,"exclusion",function(){return ht});var o=class extends Error{};var s=class extends o{};class a{constructor(t,e){if(this.constructor===a)throw new s("Can't instantiate abstract class!");this.path=t,this.temp=e}async input(){}async name(){}}var c=a;var u=class extends o{};class l{constructor(t,e,n=[]){if(this.constructor===l)throw new u("Can't instantiate abstract class!");this.path=t,this.input=e,this.data=n}async convert(){}async*getData(){}}var p=l,f=n(2),h=n.n(f),d=n(1),g=n.n(d);var m=class extends o{};class _{static fromPath(t,e){return g.a.join(e,t)}static log(t){_.verbose&&console.log(t)}static setVerbose(t=!0){_.verbose=t}static toPath(t,e,n){return t.startsWith("./")?g.a.join(g.a.dirname(e),t.substr(2)):g.a.join(n,t)}constructor(){throw new m("Can't instantiate this class!")}}_.verbose=!0;var b=_;var y=class extends p{async convert(){for await(const t of this.getData()){const e=b.fromPath(t,this.path);h.a.existsSync(e)&&(b.log(`Delete ${t}`),await h.a.remove(e))}return[]}async*getData(){const t=["assets","textures/blocks/conduit.png","textures/entity/conduit/break_particle.png","textures/blocks/dried_kelp_bottom.png","textures/blocks/water_overlay.png","textures/entity/cat/cat_collar.png","textures/entity/wolf/wolf_collar.png","bedrock_textures"];for(const e of t)yield e}};var v=class extends y{async*getData(){for(const t of this.data)yield t}},x=n(5),w=n.n(x),k=n(17),E=n.n(k),D=n(0),S=n(26),O=n.n(S),C=n(119),A=n.n(C),I=n(120),T=n.n(I),P=n(25),B=n.n(P),F=n(27),j=n.n(F),L=n(121),M=n.n(L),N=-1,z=1,R=2,U=4,G=8,H=16,$=32,W="srcOver",q="dstOver",V="multiply",Y="screen",Z="overlay",X="darken",Q="lighten",J="hardLight",K="difference",tt="exclusion",et=1,nt=2,rt=3;function it(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a;return{r:(t.r*t.a+e.r*e.a*(1-t.a))/r,g:(t.g*t.a+e.g*e.a*(1-t.a))/r,b:(t.b*t.a+e.b*e.a*(1-t.a))/r,a:r}}function ot(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a;return{r:(e.r*e.a+t.r*t.a*(1-e.a))/r,g:(e.g*e.a+t.g*t.a*(1-e.a))/r,b:(e.b*e.a+t.b*t.a*(1-e.a))/r,a:r}}function st(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,s=t.b*t.a,a=e.r*e.a,c=e.g*e.a,u=e.b*e.a;return{r:(i*a+i*(1-e.a)+a*(1-t.a))/r,g:(o*c+o*(1-e.a)+c*(1-t.a))/r,b:(s*u+s*(1-e.a)+u*(1-t.a))/r,a:r}}function at(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,s=t.b*t.a,a=e.r*e.a,c=e.g*e.a,u=e.b*e.a;return{r:(i*e.a+a*t.a-i*a+i*(1-e.a)+a*(1-t.a))/r,g:(o*e.a+c*t.a-o*c+o*(1-e.a)+c*(1-t.a))/r,b:(s*e.a+u*t.a-s*u+s*(1-e.a)+u*(1-t.a))/r,a:r}}function ct(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,s=t.b*t.a,a=e.r*e.a,c=e.g*e.a,u=e.b*e.a;return{r:(2*a<=e.a?2*i*a+i*(1-e.a)+a*(1-t.a):i*(1+e.a)+a*(1+t.a)-2*a*i-e.a*t.a)/r,g:(2*c<=e.a?2*o*c+o*(1-e.a)+c*(1-t.a):o*(1+e.a)+c*(1+t.a)-2*c*o-e.a*t.a)/r,b:(2*u<=e.a?2*s*u+s*(1-e.a)+u*(1-t.a):s*(1+e.a)+u*(1+t.a)-2*u*s-e.a*t.a)/r,a:r}}function ut(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,s=t.b*t.a,a=e.r*e.a,c=e.g*e.a,u=e.b*e.a;return{r:(Math.min(i*e.a,a*t.a)+i*(1-e.a)+a*(1-t.a))/r,g:(Math.min(o*e.a,c*t.a)+o*(1-e.a)+c*(1-t.a))/r,b:(Math.min(s*e.a,u*t.a)+s*(1-e.a)+u*(1-t.a))/r,a:r}}function lt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,s=t.b*t.a,a=e.r*e.a,c=e.g*e.a,u=e.b*e.a;return{r:(Math.max(i*e.a,a*t.a)+i*(1-e.a)+a*(1-t.a))/r,g:(Math.max(o*e.a,c*t.a)+o*(1-e.a)+c*(1-t.a))/r,b:(Math.max(s*e.a,u*t.a)+s*(1-e.a)+u*(1-t.a))/r,a:r}}function pt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,s=t.b*t.a,a=e.r*e.a,c=e.g*e.a,u=e.b*e.a;return{r:(2*i<=t.a?2*i*a+i*(1-e.a)+a*(1-t.a):i*(1+e.a)+a*(1+t.a)-2*a*i-e.a*t.a)/r,g:(2*o<=t.a?2*o*c+o*(1-e.a)+c*(1-t.a):o*(1+e.a)+c*(1+t.a)-2*c*o-e.a*t.a)/r,b:(2*s<=t.a?2*s*u+s*(1-e.a)+u*(1-t.a):s*(1+e.a)+u*(1+t.a)-2*u*s-e.a*t.a)/r,a:r}}function ft(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,s=t.b*t.a,a=e.r*e.a,c=e.g*e.a,u=e.b*e.a;return{r:(i+a-2*Math.min(i*e.a,a*t.a))/r,g:(o+c-2*Math.min(o*e.a,c*t.a))/r,b:(s+u-2*Math.min(s*e.a,u*t.a))/r,a:r}}function ht(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,s=t.b*t.a,a=e.r*e.a,c=e.g*e.a,u=e.b*e.a;return{r:(i*e.a+a*t.a-2*i*a+i*(1-e.a)+a*(1-t.a))/r,g:(o*e.a+c*t.a-2*o*c+o*(1-e.a)+c*(1-t.a))/r,b:(s*e.a+u*t.a-2*s*u+s*(1-e.a)+u*(1-t.a))/r,a:r}}var dt=function(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i"));this._originalMime=r.toLowerCase();try{var i=this.getMIME();if(!this.constructor.decoders[i])return D.c.call(this,"Unsupported MIME type: "+i,n);this.bitmap=this.constructor.decoders[i](t)}catch(t){return n.call(this,t,this)}try{this._exif=xt.a.create(t).parse(),function(t){var e=t._exif;if(e&&e.tags&&e.tags.Orientation)switch(t._exif.tags.Orientation){case 1:break;case 2:t.mirror(!0,!1);break;case 3:t.rotate(180,!1);break;case 4:t.mirror(!1,!0);break;case 5:t.rotate(-90,!1).mirror(!0,!1);break;case 6:t.rotate(-90,!1);break;case 7:t.rotate(90,!1).mirror(!0,!1);break;case 8:t.rotate(-270,!1)}}(this)}catch(t){}return n.call(this,null,this),this}function kt(t,e){if(t===N&&(t=this.getMIME()),"string"!=typeof t)return D.c.call(this,"mime must be a string",e);if("function"!=typeof e)return D.c.call(this,"cb must be a function",e);var n,r;if(t=t.toLowerCase(),this._rgba&&this.constructor.hasAlpha[t]?this.bitmap.data=Buffer.from(this.bitmap.data):this.bitmap.data=(n=this.constructor,r=this,new n(r.bitmap.width,r.bitmap.height,r._background).composite(r,0,0).bitmap).data,this.constructor.encoders[t]){var i=this.constructor.encoders[t](this);e.call(this,null,i)}else e.call(this,"Unsupported MIME type: "+t);return this}function Et(t){return dt(kt,this,t)}function Dt(t,e,n){return(Dt=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&It(i,n.prototype),i}).apply(null,arguments)}function St(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Ot(t,e){for(var n=0;n (HTTP: "+r.statusCode+")";return new Error(o)})}var Rt,Ut={data:null,width:null,height:null},Gt=function(t){function e(){for(var t,n=arguments.length,r=new Array(n),i=0;i-1&&(r[0]=function(t){for(var e=Buffer.alloc(t.byteLength),n=new Uint8Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:{};n=Object.assign(n,{methodName:t,eventName:e}),this.emit("any",n),t&&this.emit(t,n),this.emit(e,n)}},{key:"emitError",value:function(t,e){this.emitMulti(t,"error",e)}},{key:"getHeight",value:function(){return this.bitmap.height}},{key:"getWidth",value:function(){return this.bitmap.width}},{key:"inspect",value:function(){return""}},{key:"toString",value:function(){return"[object Jimp]"}},{key:"getMIME",value:function(){return this._originalMime||e.MIME_PNG}},{key:"getExtension",value:function(){var t=this.getMIME();return(gt[t.toLowerCase()]||[])[0]}},{key:"write",value:function(t,e){var n=this;if(!w.a||!w.a.createWriteStream)throw new Error("Cant access the filesystem. You can use the getBase64 method.");if("string"!=typeof t)return D.c.call(this,"path must be a string",e);if(void 0===e&&(e=Nt),"function"!=typeof e)return D.c.call(this,"cb must be a function",e);var r=_t(t)||this.getMIME(),i=g.a.parse(t);return i.dir&&A.a.sync(i.dir),this.getBuffer(r,function(r,i){if(r)return D.c.call(n,r,e);var o=w.a.createWriteStream(t);o.on("open",function(){o.write(i),o.end()}).on("error",function(t){return D.c.call(n,t,e)}),o.on("finish",function(){e.call(n,null,n)})}),this}},{key:"getBase64",value:function(t,n){return t===e.AUTO&&(t=this.getMIME()),"string"!=typeof t?D.c.call(this,"mime must be a string",n):"function"!=typeof n?D.c.call(this,"cb must be a function",n):(this.getBuffer(t,function(e,r){if(e)return D.c.call(this,e,n);var i="data:"+t+";base64,"+r.toString("base64");n.call(this,null,i)}),this)}},{key:"hash",value:function(t,e){if("function"==typeof(t=t||64)&&(e=t,t=64),"number"!=typeof t)return D.c.call(this,"base must be a number",e);if(t<2||t>64)return D.c.call(this,"base must be a number between 2 and 64",e);var n=this.pHash();for(n=O()(O.a.BIN,Ft.slice(0,t))(n);n.length=this.bitmap.width&&(o=this.bitmap.width-1),n<0&&(s=0),n>=this.bitmap.height&&(s=this.bitmap.height-1)),r===e.EDGE_WRAP&&(t<0&&(o=this.bitmap.width+t),t>=this.bitmap.width&&(o=t%this.bitmap.width),n<0&&(o=this.bitmap.height+n),n>=this.bitmap.height&&(s=n%this.bitmap.height));var a=this.bitmap.width*s+o<<2;return(o<0||o>=this.bitmap.width)&&(a=-1),(s<0||s>=this.bitmap.height)&&(a=-1),Object(D.a)(i)&&i.call(this,null,a),a}},{key:"getPixelColor",value:function(t,e,n){if("number"!=typeof t||"number"!=typeof e)return D.c.call(this,"x and y must be numbers",n);t=Math.round(t),e=Math.round(e);var r=this.getPixelIndex(t,e),i=this.bitmap.data.readUInt32BE(r);return Object(D.a)(n)&&n.call(this,null,i),i}},{key:"setPixelColor",value:function(t,e,n,r){if("number"!=typeof t||"number"!=typeof e||"number"!=typeof n)return D.c.call(this,"hex, x and y must be numbers",r);e=Math.round(e),n=Math.round(n);var i=this.getPixelIndex(e,n);return this.bitmap.data.writeUInt32BE(t,i),Object(D.a)(r)&&r.call(this,null,this),this}},{key:"hasAlpha",value:function(){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:Gt;Object.entries(t).forEach(function(t){var n=St(t,2),r=n[0],i=n[1];e[r]=i})}function $t(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Gt;Object.entries(t).forEach(function(t){var n=St(t,2),r=n[0],i=n[1];e.prototype[r]=i})}function Wt(t,e,n){var r="before-"+e,i=e.replace(/e$/,"")+"ed";Gt.prototype[t]=function(){for(var e,o=arguments.length,s=new Array(o),a=0;a3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4?arguments[4]:void 0;if("function"==typeof r&&(o=r,r={}),!(t instanceof this.constructor))return D.c.call(this,"The source must be a Jimp image",o);if("number"!=typeof e||"number"!=typeof n)return D.c.call(this,"x and y must be numbers",o);var s=r,a=s.mode,c=s.opacitySource,u=s.opacityDest;a||(a=W),("number"!=typeof c||c<0||c>1)&&(c=1),("number"!=typeof u||u<0||u>1)&&(u=1);var l=i[a];e=Math.round(e),n=Math.round(n);var p=this;return 1!==u&&p.opacity(u),t.scanQuiet(0,0,t.bitmap.width,t.bitmap.height,function(t,r,i){var o=p.getPixelIndex(e+t,n+r,rt),s=l({r:this.bitmap.data[i+0]/255,g:this.bitmap.data[i+1]/255,b:this.bitmap.data[i+2]/255,a:this.bitmap.data[i+3]/255},{r:p.bitmap.data[o+0]/255,g:p.bitmap.data[o+1]/255,b:p.bitmap.data[o+2]/255,a:p.bitmap.data[o+3]/255},c);p.bitmap.data[o+0]=this.constructor.limit255(255*s.r),p.bitmap.data[o+1]=this.constructor.limit255(255*s.g),p.bitmap.data[o+2]=this.constructor.limit255(255*s.b),p.bitmap.data[o+3]=this.constructor.limit255(255*s.a)}),Object(D.a)(o)&&o.call(this,null,this),this}}),Gt.__extraConstructors=[],Gt.appendConstructorOption=function(t,e,n){Gt.__extraConstructors.push({name:t,test:e,run:n})},Gt.read=function(){for(var t=arguments.length,e=new Array(t),n=0;n255)return D.c.call(this,"r must be between 0 and 255",i);if((e<0||e>255)&&D.c.call(this,"g must be between 0 and 255",i),n<0||n>255)return D.c.call(this,"b must be between 0 and 255",i);if(r<0||r>255)return D.c.call(this,"a must be between 0 and 255",i);t=Math.round(t),n=Math.round(n),e=Math.round(e),r=Math.round(r);var o=t*Math.pow(256,3)+e*Math.pow(256,2)+n*Math.pow(256,1)+r*Math.pow(256,0);return Object(D.a)(i)&&i.call(this,null,o),o},Gt.intToRGBA=function(t,e){if("number"!=typeof t)return D.c.call(this,"i must be a number",e);var n={};return n.r=Math.floor(t/Math.pow(256,3)),n.g=Math.floor((t-n.r*Math.pow(256,3))/Math.pow(256,2)),n.b=Math.floor((t-n.r*Math.pow(256,3)-n.g*Math.pow(256,2))/Math.pow(256,1)),n.a=Math.floor((t-n.r*Math.pow(256,3)-n.g*Math.pow(256,2)-n.b*Math.pow(256,1))/Math.pow(256,0)),Object(D.a)(e)&&e.call(this,null,n),n},Gt.cssColorToHex=function(t){return"number"==typeof(t=t||0)?Number(t):parseInt(B()(t).toHex8(),16)},Gt.limit255=function(t){return t=Math.max(t,0),t=Math.min(t,255)},Gt.diff=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.1;if(!(t instanceof Gt&&e instanceof Gt))return D.c.call(this,"img1 and img2 must be an Jimp images");var r=t.bitmap,i=e.bitmap;if(r.width===i.width&&r.height===i.height||(r.width*r.height>i.width*i.height?t=t.cloneQuiet().resize(i.width,i.height):e=e.cloneQuiet().resize(r.width,r.height)),"number"!=typeof n||n<0||n>1)return D.c.call(this,"threshold must be a number between 0 and 1");var o=new Gt(r.width,r.height,4294967295),s=T()(r.data,i.data,o.bitmap.data,o.bitmap.width,o.bitmap.height,{threshold:n});return{percent:s/(o.bitmap.width*o.bitmap.height),image:o}},Gt.distance=function(t,e){var n=new j.a,r=n.getHash(t),i=n.getHash(e);return n.distance(r,i)},Gt.compareHashes=function(t,e){return(new j.a).distance(t,e)},Gt.colorDiff=function(t,e){var n=function(t){return Math.pow(t,2)},r=Math.max;return 0===t.a||t.a||(t.a=255),0===e.a||e.a||(e.a=255),(r(n(t.r-e.r),n(t.r-e.r-t.a+e.a))+r(n(t.g-e.g),n(t.g-e.g-t.a+e.a))+r(n(t.b-e.b),n(t.b-e.b-t.a+e.a)))/195075},Wt("clone","clone",function(t){var e=new Gt(this);return Object(D.a)(t)&&t.call(e,null,e),e}),qt("background",function(t,e){return"number"!=typeof t?D.c.call(this,"hex must be a hexadecimal rgba value",e):(this._background=t,Object(D.a)(e)&&e.call(this,null,this),this)}),qt("scan",function(t,e,n,r,i,o){if("number"!=typeof t||"number"!=typeof e)return D.c.call(this,"x and y must be numbers",o);if("number"!=typeof n||"number"!=typeof r)return D.c.call(this,"w and h must be numbers",o);if("function"!=typeof i)return D.c.call(this,"f must be a function",o);var s=Object(D.b)(this,t,e,n,r,i);return Object(D.a)(o)&&o.call(this,null,s),s}),"BROWSER"===process.env.ENVIRONMENT)&&("undefined"!=typeof window&&"object"===("undefined"==typeof window?"undefined":Bt(window))&&(Rt=window),"undefined"!=typeof self&&"object"===("undefined"==typeof self?"undefined":Bt(self))&&(Rt=self),Rt.Jimp=Gt,Rt.Buffer=Buffer);var Vt=Gt;function Yt(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e2&&void 0!==arguments[2]?arguments[2]:50;return{r:(e.r-t.r)*(n/100)+t.r,g:(e.g-t.g)*(n/100)+t.g,b:(e.b-t.b)*(n/100)+t.b}}function Se(t,e){var n=this;return t&&Array.isArray(t)?(t=t.map(function(t){return"xor"!==t.apply&&"mix"!==t.apply||(t.params[0]=B()(t.params[0]).toRgb()),t}),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(r,i,o){var s={r:n.bitmap.data[o],g:n.bitmap.data[o+1],b:n.bitmap.data[o+2]},a=function(t,e){return n.constructor.limit255(s[t]+e)};t.forEach(function(t){if("mix"===t.apply)s=De(s,t.params[0],t.params[1]);else if("tint"===t.apply)s=De(s,{r:255,g:255,b:255},t.params[0]);else if("shade"===t.apply)s=De(s,{r:0,g:0,b:0},t.params[0]);else if("xor"===t.apply)s={r:s.r^t.params[0].r,g:s.g^t.params[0].g,b:s.b^t.params[0].b};else if("red"===t.apply)s.r=a("r",t.params[0]);else if("green"===t.apply)s.g=a("g",t.params[0]);else if("blue"===t.apply)s.b=a("b",t.params[0]);else{var r;if("hue"===t.apply&&(t.apply="spin"),!(s=B()(s))[t.apply])return D.c.call(n,"action "+t.apply+" not supported",e);s=(r=s)[t.apply].apply(r,xe(t.params)).toRgb()}}),n.bitmap.data[o]=s.r,n.bitmap.data[o+1]=s.g,n.bitmap.data[o+2]=s.b}),Object(D.a)(e)&&e.call(this,null,this),this):D.c.call(this,"actions must be an array",e)}var Oe=n(126),Ce=[1,57,41,21,203,34,97,73,227,91,149,62,105,45,39,137,241,107,3,173,39,71,65,238,219,101,187,87,81,151,141,133,249,117,221,209,197,187,177,169,5,153,73,139,133,127,243,233,223,107,103,99,191,23,177,171,165,159,77,149,9,139,135,131,253,245,119,231,224,109,211,103,25,195,189,23,45,175,171,83,81,79,155,151,147,9,141,137,67,131,129,251,123,30,235,115,113,221,217,53,13,51,50,49,193,189,185,91,179,175,43,169,83,163,5,79,155,19,75,147,145,143,35,69,17,67,33,65,255,251,247,243,239,59,29,229,113,111,219,27,213,105,207,51,201,199,49,193,191,47,93,183,181,179,11,87,43,85,167,165,163,161,159,157,155,77,19,75,37,73,145,143,141,35,138,137,135,67,33,131,129,255,63,250,247,61,121,239,237,117,29,229,227,225,111,55,109,216,213,211,209,207,205,203,201,199,197,195,193,48,190,47,93,185,183,181,179,178,176,175,173,171,85,21,167,165,41,163,161,5,79,157,78,154,153,19,75,149,74,147,73,144,143,71,141,140,139,137,17,135,134,133,66,131,65,129,1],Ae=[0,9,10,10,14,12,14,14,16,15,16,15,16,15,15,17,18,17,12,18,16,17,17,19,19,18,19,18,18,19,19,19,20,19,20,20,20,20,20,20,15,20,19,20,20,20,21,21,21,20,20,20,21,18,21,21,21,21,20,21,17,21,21,21,22,22,21,22,22,21,22,21,19,22,22,19,20,22,22,21,21,21,22,22,22,18,22,22,21,22,22,23,22,20,23,22,22,23,23,21,19,21,21,21,23,23,23,22,23,23,21,23,22,23,18,22,23,20,22,23,23,23,21,22,20,22,21,22,24,24,24,24,24,22,21,24,23,23,24,21,24,23,24,22,24,24,22,24,24,22,23,24,24,24,20,23,22,23,24,24,24,24,24,24,24,23,21,23,22,23,24,24,24,22,24,24,24,23,22,24,24,25,23,25,25,23,24,25,25,24,22,25,25,25,24,23,24,25,25,25,25,25,25,25,25,25,25,25,25,23,25,23,24,25,25,25,25,25,25,25,25,25,24,22,25,25,23,25,25,20,24,25,24,25,25,22,24,25,24,25,24,25,25,24,25,25,25,25,22,25,25,25,24,25,24,25,18];function Ie(t){return(Ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Te=function(t,e,n){return 255*(t-e)/(n-e)},Pe=function(t){return[t.findIndex(function(t){return t>0}),255-t.slice().reverse().findIndex(function(t){return t>0})]};function Be(t,e,n){if("boolean"!=typeof t||"boolean"!=typeof e)return D.c.call(this,"horizontal and vertical must be Booleans",n);if(t&&e)return this.rotate(180,!0,n);var r=Buffer.alloc(this.bitmap.data.length);return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(n,i,o){var s=t?this.bitmap.width-1-n:n,a=e?this.bitmap.height-1-i:i,c=this.bitmap.width*a+s<<2,u=this.bitmap.data.readUInt32BE(o);r.writeUInt32BE(u,c)}),this.bitmap.data=Buffer.from(r),Object(D.a)(n)&&n.call(this,null,this),this}function Fe(t){return(Fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function je(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e=0&&p>=0&&c-a>0&&u-p>0){var f=l.getPixelIndex(a,p),h={r:this.bitmap.data[s],g:this.bitmap.data[s+1],b:this.bitmap.data[s+2],a:this.bitmap.data[s+3]},d={r:l.bitmap.data[f],g:l.bitmap.data[f+1],b:l.bitmap.data[f+2],a:l.bitmap.data[f+3]};l.bitmap.data[f]=(h.a*(h.r-d.r)-d.r+255>>8)+d.r,l.bitmap.data[f+1]=(h.a*(h.g-d.g)-d.g+255>>8)+d.g,l.bitmap.data[f+2]=(h.a*(h.b-d.b)-d.b+255>>8)+d.b,l.bitmap.data[f+3]=this.constructor.limit255(d.a+h.a)}}),Object(D.a)(a)&&a.call(this,null,this),this}}},function(){return{rotate:function(t,e,n){return null==e&&(e=!0),"function"==typeof e&&void 0===n&&(n=e,e=!0),"number"!=typeof t?D.c.call(this,"deg must be a number",n):"boolean"!=typeof e&&"string"!=typeof e?D.c.call(this,"mode must be a boolean or a string",n):(function(t,e){var n=(t%=360)*Math.PI/180,r=Math.cos(n),i=Math.sin(n),o=this.bitmap.width,s=this.bitmap.height;if(!0===e||"string"==typeof e){(o=Math.ceil(Math.abs(this.bitmap.width*r)+Math.abs(this.bitmap.height*i))+1)%2!=0&&o++,(s=Math.ceil(Math.abs(this.bitmap.width*i)+Math.abs(this.bitmap.height*r))+1)%2!=0&&s++;var a=this.cloneQuiet();this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,n){this.bitmap.data.writeUInt32BE(this._background,n)});var c=Math.max(o,s,this.bitmap.width,this.bitmap.height);this.resize(c,c,e),this.blit(a,this.bitmap.width/2-a.bitmap.width/2,this.bitmap.height/2-a.bitmap.height/2)}var u=this.bitmap.width,l=this.bitmap.height,p=Buffer.alloc(this.bitmap.data.length);function f(t,e){return function(n,r){return{x:n+t,y:r+e}}}for(var h=f(-u/2,-l/2),d=f(u/2+.5,l/2+.5),g=1;g<=l;g++)for(var m=1;m<=u;m++){var _=h(m,g),b=d(r*_.x-i*_.y,r*_.y+i*_.x),y=u*(g-1)+m-1<<2;if(b.x>=0&&b.x=0&&b.y1?D.c.call(this,"val must be a number between -1 and +1",e):(this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(e,n,r){t<0?(this.bitmap.data[r]=this.bitmap.data[r]*(1+t),this.bitmap.data[r+1]=this.bitmap.data[r+1]*(1+t),this.bitmap.data[r+2]=this.bitmap.data[r+2]*(1+t)):(this.bitmap.data[r]=this.bitmap.data[r]+(255-this.bitmap.data[r])*t,this.bitmap.data[r+1]=this.bitmap.data[r+1]+(255-this.bitmap.data[r+1])*t,this.bitmap.data[r+2]=this.bitmap.data[r+2]+(255-this.bitmap.data[r+2])*t)}),Object(D.a)(e)&&e.call(this,null,this),this)},contrast:function(t,e){if("number"!=typeof t)return D.c.call(this,"val must be numbers",e);if(t<-1||t>1)return D.c.call(this,"val must be a number between -1 and +1",e);var n=(t+1)/(1-t);function r(t){return(t=Math.floor(n*(t-127)+127))<0?0:t>255?255:t}return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,n){this.bitmap.data[n]=r(this.bitmap.data[n]),this.bitmap.data[n+1]=r(this.bitmap.data[n+1]),this.bitmap.data[n+2]=r(this.bitmap.data[n+2])}),Object(D.a)(e)&&e.call(this,null,this),this},posterize:function(t,e){return"number"!=typeof t?D.c.call(this,"n must be numbers",e):(t<2&&(t=2),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(e,n,r){this.bitmap.data[r]=Math.floor(this.bitmap.data[r]/255*(t-1))/(t-1)*255,this.bitmap.data[r+1]=Math.floor(this.bitmap.data[r+1]/255*(t-1))/(t-1)*255,this.bitmap.data[r+2]=Math.floor(this.bitmap.data[r+2]/255*(t-1))/(t-1)*255}),Object(D.a)(e)&&e.call(this,null,this),this)},greyscale:Ee,grayscale:Ee,opacity:function(t,e){return"number"!=typeof t?D.c.call(this,"f must be a number",e):t<0||t>1?D.c.call(this,"f must be a number from 0 to 1",e):(this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(e,n,r){var i=this.bitmap.data[r+3]*t;this.bitmap.data[r+3]=i}),Object(D.a)(e)&&e.call(this,null,this),this)},sepia:function(t){return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,n){var r=this.bitmap.data[n],i=this.bitmap.data[n+1],o=this.bitmap.data[n+2];o=.272*(r=.393*r+.769*i+.189*o)+.534*(i=.349*r+.686*i+.168*o)+.131*o,this.bitmap.data[n]=r<255?r:255,this.bitmap.data[n+1]=i<255?i:255,this.bitmap.data[n+2]=o<255?o:255}),Object(D.a)(t)&&t.call(this,null,this),this},fade:function(t,e){return"number"!=typeof t?D.c.call(this,"f must be a number",e):t<0||t>1?D.c.call(this,"f must be a number from 0 to 1",e):(this.opacity(1-t),Object(D.a)(e)&&e.call(this,null,this),this)},convolution:function(t,e,n){"function"==typeof e&&void 0===n&&(n=e,e=null),e||(e=this.constructor.EDGE_EXTEND);var r,i,o,s,a,c,u,l,p,f,h=Buffer.from(this.bitmap.data),d=t.length,g=t[0].length,m=Math.floor(d/2),_=Math.floor(g/2),b=-m,y=-_;return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(n,d,g){s=0,o=0,i=0;for(var v=b;v<=m;v++)for(var x=y;x<=_;x++)l=n+x,p=d+v,r=t[v+m][x+_],-1===(f=this.getPixelIndex(l,p,e))?(u=0,c=0,a=0):(a=this.bitmap.data[f+0],c=this.bitmap.data[f+1],u=this.bitmap.data[f+2]),i+=r*a,o+=r*c,s+=r*u;i<0&&(i=0),o<0&&(o=0),s<0&&(s=0),i>255&&(i=255),o>255&&(o=255),s>255&&(s=255),h[g+0]=i,h[g+1]=o,h[g+2]=s}),this.bitmap.data=h,Object(D.a)(n)&&n.call(this,null,this),this},opaque:function(t){return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,n){this.bitmap.data[n+3]=255}),Object(D.a)(t)&&t.call(this,null,this),this},pixelate:function(t,e,n,r,i,o){if("function"==typeof e)o=e,i=null,r=null,n=null,e=null;else{if("number"!=typeof t)return D.c.call(this,"size must be a number",o);if(ke(e)&&"number"!=typeof e)return D.c.call(this,"x must be a number",o);if(ke(n)&&"number"!=typeof n)return D.c.call(this,"y must be a number",o);if(ke(r)&&"number"!=typeof r)return D.c.call(this,"w must be a number",o);if(ke(i)&&"number"!=typeof i)return D.c.call(this,"h must be a number",o)}var s=[[1/16,.125,1/16],[.125,.25,.125],[1/16,.125,1/16]];e=e||0,n=n||0,r=ke(r)?r:this.bitmap.width-e,i=ke(i)?i:this.bitmap.height-n;var a=this.cloneQuiet();return this.scanQuiet(e,n,r,i,function(e,n,r){e=t*Math.floor(e/t),n=t*Math.floor(n/t);var i=we(a,s,e,n);this.bitmap.data[r]=i[0],this.bitmap.data[r+1]=i[1],this.bitmap.data[r+2]=i[2]}),Object(D.a)(o)&&o.call(this,null,this),this},convolute:function(t,e,n,r,i,o){if(!Array.isArray(t))return D.c.call(this,"the kernel must be an array",o);if("function"==typeof e)o=e,e=null,n=null,r=null,i=null;else{if(ke(e)&&"number"!=typeof e)return D.c.call(this,"x must be a number",o);if(ke(n)&&"number"!=typeof n)return D.c.call(this,"y must be a number",o);if(ke(r)&&"number"!=typeof r)return D.c.call(this,"w must be a number",o);if(ke(i)&&"number"!=typeof i)return D.c.call(this,"h must be a number",o)}var s=(t.length-1)/2;e=ke(e)?e:s,n=ke(n)?n:s,r=ke(r)?r:this.bitmap.width-e,i=ke(i)?i:this.bitmap.height-n;var a=this.cloneQuiet();return this.scanQuiet(e,n,r,i,function(e,n,r){var i=we(a,t,e,n);this.bitmap.data[r]=this.constructor.limit255(i[0]),this.bitmap.data[r+1]=this.constructor.limit255(i[1]),this.bitmap.data[r+2]=this.constructor.limit255(i[2])}),Object(D.a)(o)&&o.call(this,null,this),this},color:Se,colour:Se}},Oe.a,function(){return{blur:function(t,e){if("number"!=typeof t)return D.c.call(this,"r must be a number",e);if(t<1)return D.c.call(this,"r must be greater than 0",e);for(var n,r,i,o,s,a,c,u,l,p,f,h,d,g,m=this.bitmap.width-1,_=this.bitmap.height-1,b=t+1,y=Ce[t],v=Ae[t],x=[],w=[],k=[],E=[],S=[],O=[],C=2;C-- >0;){for(h=0,d=0,a=0;am?m:c)<<2),n+=this.bitmap.data[u++],r+=this.bitmap.data[u++],i+=this.bitmap.data[u++],o+=this.bitmap.data[u];for(s=0;s0?u<<2:0),l=d+S[s],p=d+O[s],n+=this.bitmap.data[l++]-this.bitmap.data[p++],r+=this.bitmap.data[l++]-this.bitmap.data[p++],i+=this.bitmap.data[l++]-this.bitmap.data[p++],o+=this.bitmap.data[l]-this.bitmap.data[p],h++;d+=this.bitmap.width<<2}for(s=0;s_?0:this.bitmap.width],r+=w[f],i+=k[f],o+=E[f];for(h=s<<2,a=0;a>>v,this.bitmap.data[h+3]=g,g>255&&(this.bitmap.data[h+3]=255),g>0?(g=255/g,this.bitmap.data[h]=(n*y>>>v)*g,this.bitmap.data[h+1]=(r*y>>>v)*g,this.bitmap.data[h+2]=(i*y>>>v)*g):(this.bitmap.data[h+2]=0,this.bitmap.data[h+1]=0,this.bitmap.data[h]=0),0===s&&(S[a]=((u=a+b)<_?u:_)*this.bitmap.width,O[a]=(u=a-t)>0?u*this.bitmap.width:0),l=s+S[a],p=s+O[a],n+=x[l]-x[p],r+=w[l]-w[p],i+=k[l]-k[p],o+=E[l]-E[p],h+=this.bitmap.width<<2}}return Object(D.a)(e)&&e.call(this,null,this),this}}},function(t){return t("crop",function(t,e,n,r,i){if("number"!=typeof t||"number"!=typeof e)return D.c.call(this,"x and y must be numbers",i);if("number"!=typeof n||"number"!=typeof r)return D.c.call(this,"w and h must be numbers",i);if(t=Math.round(t),e=Math.round(e),n=Math.round(n),r=Math.round(r),0===t&&n===this.bitmap.width){var o=n*e+t<<2,s=o+r*n<<3;this.bitmap.data=this.bitmap.data.slice(o,s)}else{var a=Buffer.allocUnsafe(n*r*4),c=0;this.scanQuiet(t,e,n,r,function(t,e,n){var r=this.bitmap.data.readUInt32BE(n,!0);a.writeUInt32BE(r,c,!0),c+=4}),this.bitmap.data=a}return this.bitmap.width=n,this.bitmap.height=r,Object(D.a)(i)&&i.call(this,null,this),this}),{class:{autocrop:function(){for(var t,e=this.bitmap.width,n=this.bitmap.height,r=1,i=0,o=2e-4,s=!0,a=!1,c=0,u=arguments.length;co)break t}h++}p=this.getPixelColor(e,0);t:for(var x=0;xo)break t}d++}p=this.getPixelColor(0,n);t:for(var S=n-1;S>=h+r;S--){for(var O=e-d-1;O>=0;O--){var C=this.getPixelColor(O,S),A=this.constructor.intToRGBA(C);if(this.constructor.colorDiff(f,A)>o)break t}g++}p=this.getPixelColor(e,n);t:for(var I=e-1;I>=0+d+r;I--){for(var T=n-1;T>=0+h;T--){var P=this.getPixelColor(I,T),B=this.constructor.intToRGBA(P);if(this.constructor.colorDiff(f,B)>o)break t}m++}if(m-=i,d-=i,h-=i,g-=i,a){var F=Math.min(d,m),j=Math.min(h,g);m=F,d=F,h=j,g=j}var L=e-(m+d),M=n-(g+h);return m=m>=0?m:0,d=d>=0?d:0,h=h>=0?h:0,g=g>=0?g:0,(s?0!==d&&0!==h&&0!==m&&0!==g:0!==d||0!==h||0!==m||0!==g)&&this.crop(d,h,L,M),Object(D.a)(t)&&t.call(this,null,this),this}}}},function(){return{normalize:function(t){var e=function(){var t={r:new Array(256).fill(0),g:new Array(256).fill(0),b:new Array(256).fill(0)};return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(e,n,r){t.r[this.bitmap.data[r+0]]++,t.g[this.bitmap.data[r+1]]++,t.b[this.bitmap.data[r+2]]++}),t}.call(this),n={r:Pe(e.r),g:Pe(e.g),b:Pe(e.b)};return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,r){var i=this.bitmap.data[r+0],o=this.bitmap.data[r+1],s=this.bitmap.data[r+2];this.bitmap.data[r+0]=Te(i,n.r[0],n.r[1]),this.bitmap.data[r+1]=Te(o,n.g[0],n.g[1]),this.bitmap.data[r+2]=Te(s,n.b[0],n.b[1])}),Object(D.a)(t)&&t.call(this,null,this),this}}},function(){return{invert:function(t){return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,n){this.bitmap.data[n]=255-this.bitmap.data[n],this.bitmap.data[n+1]=255-this.bitmap.data[n+1],this.bitmap.data[n+2]=255-this.bitmap.data[n+2]}),Object(D.a)(t)&&t.call(this,null,this),this}}},function(){return{gaussian:function(t,e){if("number"!=typeof t)return D.c.call(this,"r must be a number",e);if(t<1)return D.c.call(this,"r must be greater than 0",e);for(var n=Math.ceil(2.57*t),r=2*n+1,i=t*t*2,o=i*Math.PI,s=[],a=0;a1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0;if(!(t instanceof this.constructor))return D.c.call(this,"The source must be a Jimp image",r);if("number"!=typeof e||"number"!=typeof n)return D.c.call(this,"x and y must be numbers",r);e=Math.round(e),n=Math.round(n);var i=this.bitmap.width,o=this.bitmap.height,s=this;return t.scanQuiet(0,0,t.bitmap.width,t.bitmap.height,function(t,r,a){var c=e+t,u=n+r;if(c>=0&&u>=0&&cthis.bitmap.width/this.bitmap.height?e/this.bitmap.height:t/this.bitmap.width;return this.scale(i,n),Object(D.a)(r)&&r.call(this,null,this),this}}},function(){return{displace:function(t,e,n){if("object"!==Fe(t)||t.constructor!==this.constructor)return D.c.call(this,"The source must be a Jimp image",n);if("number"!=typeof e)return D.c.call(this,"factor must be a number",n);var r=this.cloneQuiet();return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(n,i,o){var s=t.bitmap.data[o]/256*e;s=Math.round(s);var a=this.getPixelIndex(n+s,i);this.bitmap.data[a]=r.bitmap.data[o],this.bitmap.data[a+1]=r.bitmap.data[o+1],this.bitmap.data[a+2]=r.bitmap.data[o+2]}),Object(D.a)(n)&&n.call(this,null,this),this}}},function(){return{contain:function(t,e,n,r,i){if("number"!=typeof t||"number"!=typeof e)return D.c.call(this,"w and h must be numbers",i);"string"==typeof n&&("function"==typeof r&&void 0===i&&(i=r),r=n,n=null),"function"==typeof n&&(void 0===i&&(i=n),r=null,n=null),"function"==typeof r&&void 0===i&&(i=r,r=null);var o=7&(n=n||this.constructor.HORIZONTAL_ALIGN_CENTER|this.constructor.VERTICAL_ALIGN_MIDDLE),s=n>>3;if((0===o||o&o-1)&&(0===s||s&s-1))return D.c.call(this,"only use one flag per alignment direction",i);var a=o>>1,c=s>>1,u=t/e>this.bitmap.width/this.bitmap.height?e/this.bitmap.height:t/this.bitmap.width,l=this.cloneQuiet().scale(u,r);return this.resize(t,e,r),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,n){this.bitmap.data.writeUInt32BE(this._background,n)}),this.blit(l,(this.bitmap.width-l.bitmap.width)/2*a,(this.bitmap.height-l.bitmap.height)/2*c),Object(D.a)(i)&&i.call(this,null,this),this}}},function(){return{cover:function(t,e,n,r,i){if("number"!=typeof t||"number"!=typeof e)return D.c.call(this,"w and h must be numbers",i);n&&"function"==typeof n&&void 0===i?(i=n,n=null,r=null):"function"==typeof r&&void 0===i&&(i=r,r=null);var o=7&(n=n||this.constructor.HORIZONTAL_ALIGN_CENTER|this.constructor.VERTICAL_ALIGN_MIDDLE),s=n>>3;if((0===o||o&o-1)&&(0===s||s&s-1))return D.c.call(this,"only use one flag per alignment direction",i);var a=o>>1,c=s>>1,u=t/e>this.bitmap.width/this.bitmap.height?t/this.bitmap.width:e/this.bitmap.height;return this.scale(u,r),this.crop((this.bitmap.width-t)/2*a,(this.bitmap.height-e)/2*c,t,e),Object(D.a)(i)&&i.call(this,null,this),this}}}],Me=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Vt,n={hasAlpha:{},encoders:{},decoders:{},class:{},constants:{}};function r(t){Object.entries(t).forEach(function(t){var e=Qt(t,2),r=e[0],i=e[1];n[r]=Zt({},n[r],i)})}return t.types&&(t.types.forEach(function(t){var e=t();Array.isArray(e.mime)?mt.apply(void 0,Yt(e.mime)):Object.entries(e.mime).forEach(function(t){return mt.apply(void 0,Yt(t))}),delete e.mime,r(e)}),e.decoders=Zt({},e.decoders,n.decoders),e.encoders=Zt({},e.encoders,n.encoders),e.hasAlpha=Zt({},e.hasAlpha,n.hasAlpha)),t.plugins&&t.plugins.forEach(function(t){var e=t(qt)||{};e.class||e.constants?r(e):r({class:e})}),$t(n.class,e),Ht(n.constants,e),Vt}({types:[function(){return Object(Jt.mergeDeep)({mime:ee({},"image/jpeg",["jpeg","jpg","jpe"]),constants:{MIME_JPEG:"image/jpeg"},decoders:ee({},"image/jpeg",te.a.decode),encoders:ee({},"image/jpeg",function(t){return te.a.encode(t.bitmap,t._quality).data}),class:{_quality:100,quality:function(t,e){return"number"!=typeof t?D.c.call(this,"n must be a number",e):t<0||t>100?D.c.call(this,"n must be a number 0 - 100",e):(this._quality=Math.round(t),Object(D.a)(e)&&e.call(this,null,this),this)}}},{mime:re({},"image/png",["png"]),constants:{MIME_PNG:"image/png",PNG_FILTER_AUTO:-1,PNG_FILTER_NONE:0,PNG_FILTER_SUB:1,PNG_FILTER_UP:2,PNG_FILTER_AVERAGE:3,PNG_FILTER_PATH:4},hasAlpha:re({},"image/png",!0),decoders:re({},"image/png",ne.PNG.sync.read),encoders:re({},"image/png",function(t){var e=new ne.PNG({width:t.bitmap.width,height:t.bitmap.height});return e.data=t.bitmap.data,ne.PNG.sync.write(e,{width:t.bitmap.width,height:t.bitmap.height,deflateLevel:t._deflateLevel,deflateStrategy:t._deflateStrategy,filterType:t._filterType,colorType:"number"==typeof t._colorType?t._colorType:t._rgba?6:2,inputHasAlpha:t._rgba})}),class:{_deflateLevel:9,_deflateStrategy:3,_filterType:-1,_colorType:null,deflateLevel:function(t,e){return"number"!=typeof t?D.c.call(this,"l must be a number",e):t<0||t>9?D.c.call(this,"l must be a number 0 - 9",e):(this._deflateLevel=Math.round(t),Object(D.a)(e)&&e.call(this,null,this),this)},deflateStrategy:function(t,e){return"number"!=typeof t?D.c.call(this,"s must be a number",e):t<0||t>3?D.c.call(this,"s must be a number 0 - 3",e):(this._deflateStrategy=Math.round(t),Object(D.a)(e)&&e.call(this,null,this),this)},filterType:function(t,e){return"number"!=typeof t?D.c.call(this,"n must be a number",e):t<-1||t>4?D.c.call(this,"n must be -1 (auto) or a number 0 - 4",e):(this._filterType=Math.round(t),Object(D.a)(e)&&e.call(this,null,this),this)},colorType:function(t,e){return"number"!=typeof t?D.c.call(this,"s must be a number",e):0!==t&&2!==t&&4!==t&&6!==t?D.c.call(this,"s must be a number 0, 2, 4, 6.",e):(this._colorType=Math.round(t),Object(D.a)(e)&&e.call(this,null,this),this)}}},{mime:se({},"image/bmp",["bmp"]),constants:{MIME_BMP:"image/bmp",MIME_X_MS_BMP:"image/x-ms-bmp"},decoders:(t={},se(t,"image/bmp",ae),se(t,"image/x-ms-bmp",ae),t),encoders:(e={},se(e,"image/bmp",ce),se(e,"image/x-ms-bmp",ce),e)},{mime:pe({},"image/tiff",["tiff","tif"]),constants:{MIME_TIFF:"image/tiff"},decoders:pe({},"image/tiff",function(t){var e=le.a.decode(t),n=e[0];le.a.decodeImages(t,e);var r=le.a.toRGBA8(n);return{data:Buffer.from(r),width:n.t256[0],height:n.t257[0]}}),encoders:pe({},"image/tiff",function(t){var e=le.a.encodeImage(t.bitmap.data,t.bitmap.width,t.bitmap.height);return Buffer.from(e)})},{mime:de({},"image/gif",["gif"]),constants:{MIME_GIF:"image/gif"},decoders:de({},"image/gif",function(t){var e=new he.a.GifReader(t),n=Buffer.alloc(e.width*e.height*4);return e.decodeAndBlitFrameRGBA(0,n),{data:n,width:e.width,height:e.height}})});var t,e}],plugins:[function(t){var e=Le.map(function(e){var n=e(t)||{};return n.class||n.constants||(n={class:n}),n});return Jt.mergeDeep.apply(void 0,je(e))}]});var Ne=class extends p{async convert(){const t=[];for await(const[e,n,r]of this.getData()){const i=b.fromPath(e,this.path),o=b.toPath(r,i,this.path);let s=null;for(let i=0;i<=n;i++){const o=e+(i.toString().padStart(2,"0")+".png"),a=b.fromPath(o,this.path);if(h.a.existsSync(a)){const e=await Me.read(a);null===s&&(b.log(`Create atlas ${r}`),s=await Me.create(e.getWidth(),e.getHeight()*(n+1))),s.composite(e,0,e.getHeight()*i),t.push(o)}}null!==s&&await s.writeAsync(o)}return[[v,t]]}async*getData(){const t=[["textures/items/clock_",63,"./watch_atlas.png"],["textures/items/compass_",31,"./compass_atlas.png"]];for(const e of t)yield e}};var ze=class extends p{async convert(){for await(const t of this.getData()){const e=b.fromPath(t,this.path);if(h.a.existsSync(e)){b.log(`Convert bed ${t}`);const n=await Me.read(e),r=n.getWidth()/64,i=await Me.create(n.getWidth(),n.getHeight());i.composite(n.clone().crop(0,0,44*r,22*r),0,0),i.composite(n.clone().crop(0,28*r,44*r,16*r),0,22*r),i.composite(n.clone().crop(22*r,22*r,16*r,6*r),22*r,0),i.composite(n.clone().crop(50*r,0,12*r,12*r),0,38*r),i.composite(n.clone().crop(50*r,12*r,12*r,12*r),12*r,38*r),await i.writeAsync(e)}}return[]}async*getData(){const t=["textures/entity/bed/black.png","textures/entity/bed/blue.png","textures/entity/bed/brown.png","textures/entity/bed/cyan.png","textures/entity/bed/gray.png","textures/entity/bed/green.png","textures/entity/bed/light_blue.png","textures/entity/bed/lime.png","textures/entity/bed/magenta.png","textures/entity/bed/orange.png","textures/entity/bed/pink.png","textures/entity/bed/purple.png","textures/entity/bed/red.png","textures/entity/bed/silver.png","textures/entity/bed/white.png","textures/entity/bed/yellow.png"];for(const e of t)yield e}};var Re=class extends p{async convert(){for await(const[t,e]of this.getData()){const n=b.fromPath(t,this.path),r=b.toPath(e,"",this.path);if(h.a.existsSync(n)){b.log(`Create chest front ${e}`);const t=await Me.read(n),i=t.getWidth()/64,o=await Me.create(14*i,14*i);o.composite(t.clone().crop(14*i,14*i,14*i,5*i),0,0),o.composite(t.clone().crop(14*i,34*i,14*i,9*i),0,5*i),o.composite(t.clone().crop(i,i,2*i,4*i),6*i,3*i),await o.writeAsync(r)}}return[]}async*getData(){const t=[["textures/entity/chest/normal.png","textures/blocks/chest_front.png"],["textures/entity/chest/trapped.png","textures/blocks/trapped_chest_front.png"],["textures/entity/chest/ender.png","textures/blocks/ender_chest_front.png"]];for(const e of t)yield e}};var Ue=class extends p{async convert(){for await(const[t,e]of this.getData()){const n=b.fromPath(t,this.path),r=b.toPath(e,"",this.path);if(h.a.existsSync(n)){b.log(`Create chest side ${e}`);const t=await Me.read(n),i=t.getWidth()/64,o=await Me.create(14*i,14*i);o.composite(t.clone().crop(28*i,14*i,14*i,5*i),0,0),o.composite(t.clone().crop(28*i,34*i,14*i,9*i),0,5*i),await o.writeAsync(r)}}return[]}async*getData(){const t=[["textures/entity/chest/normal.png","textures/blocks/chest_side.png"],["textures/entity/chest/ender.png","textures/blocks/ender_chest_side.png"]];for(const e of t)yield e}};var Ge=class extends p{async convert(){const t=[];for await(const[e,n]of this.getData()){const r=b.toPath(n,"",this.path);let i=null;for(const[r,o,s]of e){const e=b.fromPath(r,this.path);if(h.a.existsSync(e)){const t=await Me.read(e);null===i&&(b.log(`Colorize and overlay ${n}`),i=await Me.create(t.getWidth(),t.getHeight())),Array.isArray(o)&&o.length>=3&&t.scan(0,0,t.getWidth(),t.getHeight(),(e,n,r)=>{t.bitmap.data[r]=t.bitmap.data[r]/255*o[0],t.bitmap.data[r+1]=t.bitmap.data[r+1]/255*o[1],t.bitmap.data[r+2]=t.bitmap.data[r+2]/255*o[2]}),i.composite(t,0,0)}s&&t.push(r)}null!==i&&await i.writeAsync(r)}return[[v,t]]}async*getData(){const t=[[[["textures/models/armor/leather_1.png",[167,105,67]]],"textures/models/armor/cloth_1.png"],[[["textures/models/armor/leather_2.png",[167,105,67]]],"textures/models/armor/cloth_2.png"],[[["textures/blocks/double_plant_fern_top.png",[80,121,43]]],"textures/blocks/double_plant_fern_carried.png"],[[["textures/blocks/double_plant_grass_top.png",[80,121,43]]],"textures/blocks/double_plant_grass_carried.png"],[[["textures/blocks/fern.png",[50,81,44]]],"textures/blocks/fern_carried.png"],[[["textures/blocks/grass_top.png",[78,119,42]]],"textures/blocks/grass_carried.png"],[[["textures/blocks/leaves_acacia.png",[42,106,9]]],"textures/blocks/leaves_acacia_carried.png"],[[["textures/blocks/leaves_big_oak.png",[34,90,9]]],"textures/blocks/leaves_big_oak_carried.png"],[[["textures/blocks/leaves_birch.png",[71,92,46]]],"textures/blocks/leaves_birch_carried.png"],[[["textures/blocks/leaves_jungle.png",[42,107,9]]],"textures/blocks/leaves_jungle_carried.png"],[[["textures/blocks/leaves_oak.png",[23,63,3]]],"textures/blocks/leaves_oak_carried.png"],[[["textures/blocks/leaves_spruce.png",[58,92,58]]],"textures/blocks/leaves_spruce_carried.png"],[[["textures/blocks/tallgrass.png",[81,123,44]]],"textures/blocks/tallgrass_carried.png"],[[["textures/blocks/waterlily.png",[67,102,36]]],"textures/blocks/carried_waterlily.png"],[[["textures/blocks/water_flow_grey.png",[86,132,254]]],"textures/blocks/water_flow.png"],[[["textures/blocks/water_still_grey.png",[215,215,215]]],"textures/blocks/cauldron_water.png"],[[["textures/blocks/water_still_grey.png",[86,132,254]]],"textures/blocks/water_still.png"],[[["textures/blocks/vine.png",[80,121,43]]],"textures/blocks/vine_carried.png"],[[["textures/items/potion_overlay.png",[88,148,255]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering.png"],[[["textures/items/potion_overlay.png",[232,58,56]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_damageBoost.png"],[[["textures/items/potion_overlay.png",[255,244,92]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_fireResistance.png"],[[["textures/items/potion_overlay.png",[106,16,14]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_harm.png"],[[["textures/items/potion_overlay.png",[255,58,56]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_heal.png"],[[["textures/items/potion_overlay.png",[202,208,232]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_invisibility.png"],[[["textures/items/potion_overlay.png",[54,255,120]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_jump.png"],[[["textures/items/potion_overlay.png",[242,255,202]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_luck.png"],[[["textures/items/potion_overlay.png",[142,172,204]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_moveSlowdown.png"],[[["textures/items/potion_overlay.png",[196,255,255]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_moveSpeed.png"],[[["textures/items/potion_overlay.png",[50,50,255]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_nightVision.png"],[[["textures/items/potion_overlay.png",[124,232,78]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_poison.png"],[[["textures/items/potion_overlay.png",[255,146,255]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_regeneration.png"],[[["textures/items/potion_overlay.png",[255,255,255]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_slowFall.png"],[[["textures/items/potion_overlay.png",[186,144,156]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_turtleMaster.png"],[[["textures/items/potion_overlay.png",[72,130,242]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_waterBreathing.png"],[[["textures/items/potion_overlay.png",[114,122,114]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_weakness.png"],[[["textures/items/potion_overlay.png",[84,66,62]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_wither.png"],[[["textures/items/map_filled.png"],["textures/items/map_filled_markings.png",[82,76,68]]],"textures/items/map_mansion.png"],[[["textures/items/map_filled.png"],["textures/items/map_filled_markings.png",[67,124,111]]],"textures/items/map_monument.png"],[[["textures/items/map_filled.png"],["textures/items/map_filled_markings.png",[103,90,173]]],"textures/items/map_nautilus.png"],[[["textures/items/map_filled.png"],["textures/items/map_filled_markings.png",[131,131,131],!0]],"textures/items/map_filled.png"],[[["textures/items/potion_overlay.png",[58,130,255]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_absorption.png"],[[["textures/items/potion_overlay.png",[50,50,56]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_blindness.png"],[[["textures/items/potion_overlay.png",[134,46,118]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_confusion.png"],[[["textures/items/potion_overlay.png",[232,58,56]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_damageBoost.png"],[[["textures/items/potion_overlay.png",[118,104,36]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_digSlowdown.png"],[[["textures/items/potion_overlay.png",[255,255,106]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_digSpeed.png"],[[["textures/items/potion_overlay.png",[88,148,255]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_drinkable.png"],[[["textures/items/potion_overlay.png",[255,244,92]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_fireResistance.png"],[[["textures/items/potion_overlay.png",[106,16,14]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_harm.png"],[[["textures/items/potion_overlay.png",[255,58,56]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_heal.png"],[[["textures/items/potion_overlay.png",[255,198,56]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_healthBoost.png"],[[["textures/items/potion_overlay.png",[140,186,132]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_hunger.png"],[[["textures/items/potion_overlay.png",[202,208,232]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_invisibility.png"],[[["textures/items/potion_overlay.png",[54,255,120]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_jump.png"],[[["textures/items/potion_overlay.png",[54,255,120]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_levitation.png"],[[["textures/items/potion_overlay.png",[142,172,204]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_moveSlowdown.png"],[[["textures/items/potion_overlay.png",[196,255,255]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_moveSpeed.png"],[[["textures/items/potion_overlay.png",[50,50,255]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_nightVision.png"],[[["textures/items/potion_overlay.png",[124,232,78]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_poison.png"],[[["textures/items/potion_overlay.png",[255,146,255]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_regeneration.png"],[[["textures/items/potion_overlay.png",[242,110,92]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_resistance.png"],[[["textures/items/potion_overlay.png",[255,58,56]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_saturation.png"],[[["textures/items/potion_overlay.png",[255,255,255]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_slowFall.png"],[[["textures/items/potion_overlay.png",[186,144,156]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_turtleMaster.png"],[[["textures/items/potion_overlay.png",[72,130,242]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_waterBreathing.png"],[[["textures/items/potion_overlay.png",[114,112,114]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_weakness.png"],[[["textures/items/potion_overlay.png",[84,66,62]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_wither.png"],[[["textures/blocks/redstone_dust_cross.png"],["textures/blocks/redstone_dust_overlay.png"]],"textures/blocks/redstone_dust_cross.png"],[[["textures/blocks/redstone_dust_line.png"],["textures/blocks/redstone_dust_overlay.png",null,!0]],"textures/blocks/redstone_dust_line.png"],[[["textures/entity/pig/pig.png"],["textures/entity/saddle.png"]],"textures/entity/pig/pig_saddle.png"],[[["textures/items/potion_overlay.png",[88,184,255]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash.png"],[[["textures/items/potion_overlay.png",[58,130,255]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_absorption.png"],[[["textures/items/potion_overlay.png",[50,50,56]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_blindness.png"],[[["textures/items/potion_overlay.png",[134,46,118]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_confusion.png"],[[["textures/items/potion_overlay.png",[232,58,56]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_damageBoost.png"],[[["textures/items/potion_overlay.png",[118,104,36]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_digSlowdown.png"],[[["textures/items/potion_overlay.png",[255,255,106]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_digSpeed.png"],[[["textures/items/potion_overlay.png",[255,255,184]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_fireResistance.png"],[[["textures/items/potion_overlay.png",[212,32,28]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_harm.png"],[[["textures/items/potion_overlay.png",[255,116,112]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_heal.png"],[[["textures/items/potion_overlay.png",[255,198,56]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_healthBoost.png"],[[["textures/items/potion_overlay.png",[140,186,132]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_hunger.png"],[[["textures/items/potion_overlay.png",[202,208,232]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_invisibility.png"],[[["textures/items/potion_overlay.png",[54,255,120]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_jump.png"],[[["textures/items/potion_overlay.png",[54,255,120]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_levitation.png"],[[["textures/items/potion_overlay.png",[142,172,204]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_moveSlowdown.png"],[[["textures/items/potion_overlay.png",[196,255,255]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_moveSpeed.png"],[[["textures/items/potion_overlay.png",[50,50,255]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_nightVision.png"],[[["textures/items/potion_overlay.png",[124,232,78]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_poison.png"],[[["textures/items/potion_overlay.png",[255,146,255]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_regeneration.png"],[[["textures/items/potion_overlay.png",[242,110,92]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_resistance.png"],[[["textures/items/potion_overlay.png",[255,58,56]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_saturation.png"],[[["textures/items/potion_overlay.png",[255,255,255]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_slowFall.png"],[[["textures/items/potion_overlay.png",[186,144,156]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_turtleMaster.png"],[[["textures/items/potion_overlay.png",[72,130,242]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_waterBreathing.png"],[[["textures/items/potion_overlay.png",[114,122,114]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_weakness.png"],[[["textures/items/potion_overlay.png",[84,66,62]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_wither.png"],[[["textures/items/spawn_egg.png",[65,53,41]],["textures/items/spawn_egg_overlay.png",[13,13,13]]],"textures/items/egg_bat.png"],[[["textures/items/spawn_egg.png",[211,153,1]],["textures/items/spawn_egg_overlay.png",[226,220,112]]],"textures/items/egg_blaze.png"],[[["textures/items/spawn_egg.png",[239,200,142]],["textures/items/spawn_egg_overlay.png",[135,101,74]]],"textures/items/egg_cat.png"],[[["textures/items/spawn_egg.png",[10,57,67]],["textures/items/spawn_egg_overlay.png",[149,12,12]]],"textures/items/egg_cave_spider.png"],[[["textures/items/spawn_egg.png",[138,138,138]],["textures/items/spawn_egg_overlay.png",[226,0,0]]],"textures/items/egg_chicken.png"],[[["textures/items/spawn_egg.png",[205,90,18]],["textures/items/spawn_egg_overlay.png",[226,221,212]]],"textures/items/egg_clownfish.png"],[[["textures/items/spawn_egg.png",[166,143,91]],["textures/items/spawn_egg_overlay.png",[203,174,123]]],"textures/items/egg_cod.png"],[[["textures/items/spawn_egg.png",[58,46,33]],["textures/items/spawn_egg_overlay.png",[143,143,143]]],"textures/items/egg_cow.png"],[[["textures/items/spawn_egg.png",[11,143,9]],["textures/items/spawn_egg_overlay.png",[0,0,0]]],"textures/items/egg_creeper.png"],[[["textures/items/spawn_egg.png",[29,51,66]],["textures/items/spawn_egg_overlay.png",[221,221,221]]],"textures/items/egg_dolphin.png"],[[["textures/items/spawn_egg.png",[71,59,49]],["textures/items/spawn_egg_overlay.png",[119,104,90]]],"textures/items/egg_donkey.png"],[[["textures/items/spawn_egg.png",[123,207,185]],["textures/items/spawn_egg_overlay.png",[107,138,90]]],"textures/items/egg_drowned.png"],[[["textures/items/spawn_egg.png",[177,175,160]],["textures/items/spawn_egg_overlay.png",[103,105,130]]],"textures/items/egg_elderguardian.png"],[[["textures/items/spawn_egg.png",[19,19,19]],["textures/items/spawn_egg_overlay.png",[19,19,19]]],"textures/items/egg_enderman.png"],[[["textures/items/spawn_egg.png",[19,19,19]],["textures/items/spawn_egg_overlay.png",[97,97,97]]],"textures/items/egg_endermite.png"],[[["textures/items/spawn_egg.png",[128,133,133]],["textures/items/spawn_egg_overlay.png",[27,25,23]]],"textures/items/egg_evoker.png"],[[["textures/items/spawn_egg.png",[166,143,91]],["textures/items/spawn_egg_overlay.png",[203,174,123]]],"textures/items/egg_fish.png"],[[["textures/items/spawn_egg.png",[214,214,214]],["textures/items/spawn_egg_overlay.png",[167,167,167]]],"textures/items/egg_ghast.png"],[[["textures/items/spawn_egg.png",[77,112,98]],["textures/items/spawn_egg_overlay.png",[214,111,43]]],"textures/items/egg_guardian.png"],[[["textures/items/spawn_egg.png",[165,136,107]],["textures/items/spawn_egg_overlay.png",[211,203,0]]],"textures/items/egg_horse.png"],[[["textures/items/spawn_egg.png",[102,99,83]],["textures/items/spawn_egg_overlay.png",[197,191,127]]],"textures/items/egg_husk.png"],[[["textures/items/spawn_egg.png",[45,0,0]],["textures/items/spawn_egg_overlay.png",[223,223,0]]],"textures/items/egg_lava_slime.png"],[[["textures/items/spawn_egg.png",[165,136,107]],["textures/items/spawn_egg_overlay.png",[136,84,57]]],"textures/items/egg_llama.png"],[[["textures/items/spawn_egg.png"],["textures/items/spawn_egg_overlay.png"]],"textures/items/egg_mask.png"],[[["textures/items/spawn_egg.png",[23,2,0]],["textures/items/spawn_egg_overlay.png",[72,45,26]]],"textures/items/egg_mule.png"],[[["textures/items/spawn_egg.png",[137,13,14]],["textures/items/spawn_egg_overlay.png",[162,162,162]]],"textures/items/egg_mushroomcow.png"],[[["textures/items/spawn_egg.png"],["textures/items/spawn_egg_overlay.png"]],"textures/items/egg_null.png"],[[["textures/items/spawn_egg.png",[205,191,107]],["textures/items/spawn_egg_overlay.png",[76,60,46]]],"textures/items/egg_ocelot.png"],[[["textures/items/spawn_egg.png",[217,217,215]],["textures/items/spawn_egg_overlay.png",[19,19,25]]],"textures/items/egg_panda.png"],[[["textures/items/spawn_egg.png",[11,143,9]],["textures/items/spawn_egg_overlay.png",[226,0,0]]],"textures/items/egg_parrot.png"],[[["textures/items/spawn_egg.png",[58,70,119]],["textures/items/spawn_egg_overlay.png",[121,226,0]]],"textures/items/egg_phantom.png"],[[["textures/items/spawn_egg.png",[206,142,139]],["textures/items/spawn_egg_overlay.png",[194,88,84]]],"textures/items/egg_pig.png"],[[["textures/items/spawn_egg.png",[201,126,126]],["textures/items/spawn_egg_overlay.png",[67,100,36]]],"textures/items/egg_pigzombie.png"],[[["textures/items/spawn_egg.png",[208,208,208]],["textures/items/spawn_egg_overlay.png",[132,132,128]]],"textures/items/egg_polarbear.png"],[[["textures/items/spawn_egg.png",[211,153,1]],["textures/items/spawn_egg_overlay.png",[49,173,214]]],"textures/items/egg_pufferfish.png"],[[["textures/items/spawn_egg.png",[131,82,55]],["textures/items/spawn_egg_overlay.png",[102,64,43]]],"textures/items/egg_rabbit.png"],[[["textures/items/spawn_egg.png",[137,13,14]],["textures/items/spawn_egg_overlay.png",[12,117,103]]],"textures/items/egg_salmon.png"],[[["textures/items/spawn_egg.png",[198,198,198]],["textures/items/spawn_egg_overlay.png",[226,160,160]]],"textures/items/egg_sheep.png"],[[["textures/items/spawn_egg.png",[127,88,127]],["textures/items/spawn_egg_overlay.png",[68,50,73]]],"textures/items/egg_shulker.png"],[[["textures/items/spawn_egg.png",[94,94,94]],["textures/items/spawn_egg_overlay.png",[43,43,43]]],"textures/items/egg_silverfish.png"],[[["textures/items/spawn_egg.png",[166,166,166]],["textures/items/spawn_egg_overlay.png",[65,65,65]]],"textures/items/egg_skeleton.png"],[[["textures/items/spawn_egg.png",[89,89,89]],["textures/items/spawn_egg_overlay.png",[203,203,191]]],"textures/items/egg_skeletonhorse.png"],[[["textures/items/spawn_egg.png",[70,137,53]],["textures/items/spawn_egg_overlay.png",[112,169,97]]],"textures/items/egg_slime.png"],[[["textures/items/spawn_egg.png",[45,39,33]],["textures/items/spawn_egg_overlay.png",[149,12,12]]],"textures/items/egg_spider.png"],[[["textures/items/spawn_egg.png",[29,51,66]],["textures/items/spawn_egg_overlay.png",[99,121,136]]],"textures/items/egg_squid.png"],[[["textures/items/spawn_egg.png",[82,100,101]],["textures/items/spawn_egg_overlay.png",[193,206,205]]],"textures/items/egg_stray.png"],[[["textures/items/spawn_egg.png",[198,198,198]],["textures/items/spawn_egg_overlay.png",[0,155,155]]],"textures/items/egg_turtle.png"],[[["textures/items/spawn_egg.png",[105,124,141]],["textures/items/spawn_egg_overlay.png",[206,210,214]]],"textures/items/egg_vex.png"],[[["textures/items/spawn_egg.png",[74,52,44]],["textures/items/spawn_egg_overlay.png",[167,123,101]]],"textures/items/egg_villager.png"],[[["textures/items/spawn_egg.png",[128,133,133]],["textures/items/spawn_egg_overlay.png",[35,83,86]]],"textures/items/egg_vindicator.png"],[[["textures/items/spawn_egg.png",[55,84,130]],["textures/items/spawn_egg_overlay.png",[204,142,41]]],"textures/items/egg_wanderingtrader.png"],[[["textures/items/spawn_egg.png",[45,0,0]],["textures/items/spawn_egg_overlay.png",[72,142,55]]],"textures/items/egg_witch.png"],[[["textures/items/spawn_egg.png",[17,17,17]],["textures/items/spawn_egg_overlay.png",[63,68,68]]],"textures/items/egg_wither.png"],[[["textures/items/spawn_egg.png",[185,181,181]],["textures/items/spawn_egg_overlay.png",[183,155,133]]],"textures/items/egg_wolf.png"],[[["textures/items/spawn_egg.png",[0,150,150]],["textures/items/spawn_egg_overlay.png",[107,138,90]]],"textures/items/egg_zombie.png"],[[["textures/items/spawn_egg.png",[36,77,47]],["textures/items/spawn_egg_overlay.png",[117,184,113]]],"textures/items/egg_zombiehorse.png"],[[["textures/items/spawn_egg.png",[74,52,44]],["textures/items/spawn_egg_overlay.png",[107,138,90]]],"textures/items/egg_zombievillager.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png"]],"textures/items/tipped_arrow.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[214,144,54]]],"textures/items/tipped_arrow_fireres.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[65,10,9]]],"textures/items/tipped_arrow_harm.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[232,34,33]]],"textures/items/tipped_arrow_healing.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[123,127,141]]],"textures/items/tipped_arrow_invisibility.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[33,247,74]]],"textures/items/tipped_arrow_leaping.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[49,148,0]]],"textures/items/tipped_arrow_luck.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[30,30,156]]],"textures/items/tipped_arrow_nightvision.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[74,138,46]]],"textures/items/tipped_arrow_poison.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[192,86,161]]],"textures/items/tipped_arrow_regen.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[87,105,125]]],"textures/items/tipped_arrow_slow.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[247,232,202]]],"textures/items/tipped_arrow_slowfalling.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[142,35,34]]],"textures/items/tipped_arrow_strength.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[116,164,186]]],"textures/items/tipped_arrow_swift.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[113,88,96]]],"textures/items/tipped_arrow_turtlemaster.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[45,79,148]]],"textures/items/tipped_arrow_waterbreathing.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[70,75,70]]],"textures/items/tipped_arrow_weakness.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[50,39,36]]],"textures/items/tipped_arrow_wither.png"]];for(const e of t)yield e}};var He=class extends p{async convert(){for await(const[t,e]of this.getData()){const n=b.fromPath(t,this.path),r=b.toPath(e,n,this.path);h.a.existsSync(n)&&(b.log(`Copy ${t} to ${e}`),await h.a.copy(n,r))}return[]}async*getData(){const t=[["textures/entity/cat/redtabby.png","./red.png"],["textures/entity/cat/siamesecat.png","./siamese.png"],["textures/entity/cat/tuxedo.png","./blackcat.png"],["textures/blocks/command_block_back_mipmap.png","./command_block.png"],["textures/blocks/fire_0.png","textures/flame_atlas.png"],["textures/blocks/kelp_a.tga","./kelp_b.tga"],["textures/blocks/kelp_a.tga","./kelp_c.tga"],["textures/blocks/kelp_a.tga","./kelp_d.tga"],["textures/blocks/kelp_top.tga","./kelp_top_bulb.tga"],["textures/blocks/lever.png","textures/items/lever.png"],["textures/entity/llama/llama_creamy.png","./llama.png"],["textures/items/skull_banner_pattern.png","./banner_pattern.png"],["textures/ui/sign.png","textures/gui/sign.png"],["textures/entity/creeper/creeper.png","textures/entity/skulls/creeper.png"],["textures/entity/skeleton/skeleton.png","textures/entity/skulls/skeleton.png"],["textures/entity/skeleton/wither_skeleton.png","textures/entity/skulls/wither_skeleton.png"],["textures/entity/zombie/zombie.png","textures/entity/skulls/zombie.png"],["textures/blocks/brick.png","textures/ui/icon_recipe_construction.png"],["textures/blocks/grass_side_carried.png","textures/ui/icon_recipe_nature.png"],["textures/items/bed_red.png","textures/ui/icon_recipe_item.png"],["textures/items/diamond_sword.png","textures/ui/icon_recipe_equipment.png"],["bedrock_textures","./textures"]];for(const e of t)yield e}};var $e=class extends p{async convert(){const t=[];for await(const[e,n,r]of this.getData()){const i=b.fromPath(e,this.path),o=b.toPath(n,i,this.path),s=b.toPath(r,i,this.path);if(h.a.existsSync(i)&&h.a.existsSync(o)){b.log("Convert drowned");const t=await Me.read(i),e=await Me.read(o),n=t.getWidth()/64;t.composite(e.clone().crop(0,0,32*n,16*n),32*n,0),t.composite(e.clone().crop(0,16*n,64*n,16*n),0,32*n),t.composite(e.clone().crop(16*n,48*n,16*n,16*n),0,48*n),t.composite(e.clone().crop(32*n,48*n,16*n,16*n),48*n,48*n),await t.writeAsync(s)}t.push(n)}return[[v,t]]}async*getData(){yield["textures/entity/zombie/drowned.png","textures/entity/zombie/drowned_outer_layer.png","./drowned.png"]}};var We=class extends p{async convert(){for await(const[t,e]of this.getData()){const n=b.fromPath(t,this.path),r=b.toPath(e,n,this.path);if(h.a.existsSync(n)){b.log("Convert fishhook");const t=await Me.read(n),e=t.getWidth()/8,i=await Me.create(24*e,3*e);i.composite(t.clone().crop(3*e,e,3*e,e),0,0),i.composite(t.clone().crop(3*e,e,e,e),0,e),i.composite(t.clone().crop(2*e,6*e,e,e),e,e),i.composite(t.clone().crop(3*e,e,e,e),2*e,e),i.composite(t.clone().crop(3*e,e,3*e,e),0,2*e),i.composite(t.clone().crop(3*e,e,3*e,e),3*e,0),i.composite(t.clone().crop(3*e,e,e,e),3*e,e),i.composite(t.clone().crop(2*e,6*e,e,e),4*e,e),i.composite(t.clone().crop(3*e,e,e,e),5*e,e),i.composite(t.clone().crop(3*e,e,3*e,e),3*e,2*e),i.composite(t.clone().crop(3*e,e,3*e,3*e),6*e,0),i.composite(t.clone().crop(3*e,e,3*e,3*e),9*e,0),i.composite(t.clone().crop(3*e,e,3*e,3*e),12*e,0),i.composite(t.clone().crop(3*e,e,3*e,3*e),15*e,0),i.composite(t.clone().crop(2*e,5*e,3*e,3*e),18*e,0),i.composite(t.clone().crop(2*e,6*e,e,e),22*e,2*e),await i.writeAsync(r)}}return[]}async*getData(){yield["textures/entity/fishhook.png","./fishhook.png"]}};var qe=class extends p{async convert(){for await(const[t,e]of this.getData()){const n=b.fromPath(t,this.path),r=b.toPath(e,n,this.path);if(h.a.existsSync(n)){b.log(`Convert horse ${e}`);const t=await Me.read(n),i=t.getWidth()/64,o=await Me.create(2*t.getWidth(),2*t.getWidth());o.composite(t.clone().crop(26*i,21*i,22*i,11*i),0,34*i),o.composite(t.clone().crop(26*i,21*i,22*i,11*i),0,47*i),o.composite(t.clone().crop(29*i,5*i,6*i,4*i),74*i,0),o.composite(t.clone().crop(29*i,5*i,6*i,4*i),74*i,4*i),o.composite(t.clone().crop(29*i,5*i,6*i,4*i),74*i,13*i),o.composite(t.clone().crop(31*i,5*i,i,i),81*i,26*i),o.composite(t.clone().crop(31*i,5*i,i,i),87*i,26*i),o.composite(t.clone().crop(31*i,5*i,i,i),101*i,26*i),o.composite(t.clone().crop(31*i,5*i,i,i),107*i,26*i),o.composite(t.clone().crop(35*i,0,10*i,9*i),88*i,0),o.composite(t.clone().crop(35*i,0,10*i,9*i),98*i,0),o.composite(t.clone().crop(26*i,9*i,9*i,2*i),82*i,9*i),o.composite(t.clone().crop(26*i,9*i,7*i,2*i),91*i,9*i),o.composite(t.clone().crop(26*i,9*i,6*i,2*i),108*i,9*i),o.composite(t.clone().crop(26*i,9*i,8*i,i),80*i,8*i),o.composite(t.clone().crop(26*i,9*i,8*i,i),108*i,8*i),o.composite(t.clone().crop(26*i,9*i,9*i,i),80*i,11*i),o.composite(t.clone().crop(26*i,9*i,9*i,i),89*i,11*i),o.composite(t.clone().crop(26*i,9*i,2*i,i),98*i,11*i),o.composite(t.clone().crop(26*i,9*i,9*i,i),106*i,11*i),o.composite(t.clone().crop(26*i,9*i,i,i),115*i,11*i),o.composite(t.clone().crop(26*i,9*i,9*i,i),92*i,13*i),o.composite(t.clone().crop(26*i,9*i,i,i),101*i,13*i),o.composite(t.clone().crop(26*i,9*i,9*i,i),92*i,19*i),o.composite(t.clone().crop(26*i,9*i,i,i),101*i,19*i),o.composite(t.clone().crop(26*i,9*i,2*i,i),71*i,0),o.composite(t.clone().crop(35*i,0,4*i,6*i),70*i,i),o.composite(t.clone().crop(26*i,9*i,2*i,i),81*i,0),o.composite(t.clone().crop(35*i,0,4*i,6*i),80*i,i),o.composite(t.clone().crop(26*i,9*i,3*i,i),60*i,22*i),o.composite(t.clone().crop(26*i,9*i,8*i,i),63*i,23*i),o.composite(t.clone().crop(26*i,9*i,3*i,i),71*i,22*i),o.composite(t.clone().crop(26*i,9*i,2*i,i),74*i,21*i),o.composite(t.clone().crop(26*i,9*i,3*i,i),60*i,27*i),o.composite(t.clone().crop(26*i,9*i,8*i,i),63*i,28*i),o.composite(t.clone().crop(26*i,9*i,3*i,i),71*i,27*i),o.composite(t.clone().crop(26*i,9*i,2*i,i),74*i,26*i),o.composite(t.clone().crop(26*i,9*i,i,2*i),81*i,24*i),o.composite(t.clone().crop(26*i,9*i,i,2*i),81*i,27*i),o.composite(t.clone().crop(26*i,9*i,5*i,i),82*i,26*i),o.composite(t.clone().crop(26*i,9*i,i,2*i),87*i,24*i),o.composite(t.clone().crop(26*i,9*i,i,2*i),87*i,27*i),o.composite(t.clone().crop(26*i,9*i,i,2*i),101*i,24*i),o.composite(t.clone().crop(26*i,9*i,i,2*i),101*i,27*i),o.composite(t.clone().crop(26*i,9*i,5*i,i),102*i,26*i),o.composite(t.clone().crop(26*i,9*i,i,2*i),107*i,24*i),o.composite(t.clone().crop(26*i,9*i,i,2*i),107*i,27*i),o.composite(t.clone().crop(0,54*i,i,10*i),0,58*i),o.composite(t.clone().crop(0,54*i,i,10*i),i,58*i),o.composite(t.clone().crop(0,54*i,64*i,10*i),2*i,58*i),o.composite(t.clone().crop(62*i,54*i,i,10*i),66*i,58*i),o.composite(t.clone().crop(62*i,54*i,i,10*i),67*i,58*i),o.composite(t.clone().crop(22*i,32*i,20*i,i),24*i,34*i),o.composite(t.clone().crop(22*i,32*i,20*i,22*i),24*i,35*i),o.composite(t.clone().crop(22*i,53*i,20*i,i),24*i,57*i),o.composite(t.clone().crop(0,35*i,22*i,i),i,12*i),o.composite(t.clone().crop(0,35*i,22*i,i),i,13*i),o.composite(t.clone().crop(0,35*i,22*i,19*i),i,14*i),o.composite(t.clone().crop(15*i,42*i,7*i,i),16*i,20*i),o.composite(t.clone().crop(0,42*i,7*i,i),i,20*i),o.composite(t.clone().crop(0,53*i,22*i,i),i,33*i),o.composite(o.clone().crop(i,20*i,i,14*i),0,20*i),o.composite(o.clone().crop(22*i,20*i,i,14*i),23*i,20*i),o.composite(t.clone().crop(48*i,25*i,14*i,8*i),44*i,33*i),o.composite(t.clone().crop(48*i,25*i,14*i,8*i),60*i,33*i),o.composite(t.clone().crop(48*i,25*i,16*i,8*i),79*i,34*i),o.composite(t.clone().crop(48*i,32*i,16*i,i),79*i,42*i),o.composite(o.clone().crop(79*i,34*i,i,9*i),78*i,34*i),o.composite(o.clone().crop(94*i,34*i,i,9*i),95*i,34*i),o.composite(o.clone().crop(78*i,34*i,18*i,9*i),96*i,34*i),o.composite(t.clone().crop(52*i,21*i,8*i,4*i),48*i,51*i),o.composite(t.clone().crop(52*i,21*i,8*i,4*i),64*i,51*i),o.composite(t.clone().crop(52*i,21*i,8*i,4*i),82*i,51*i),o.composite(t.clone().crop(52*i,21*i,8*i,4*i),100*i,51*i),o.composite(t.clone().crop(48*i,33*i,16*i,3*i),44*i,55*i),o.composite(t.clone().crop(48*i,33*i,16*i,3*i),60*i,55*i),o.composite(t.clone().crop(48*i,33*i,16*i,3*i),78*i,55*i),o.composite(t.clone().crop(48*i,33*i,16*i,3*i),96*i,55*i),o.composite(t.clone().crop(0,12*i,6*i,8*i),0,12*i),o.composite(t.clone().crop(7*i,13*i,10*i,8*i),7*i,0),o.composite(t.clone().crop(0,20*i,9*i,5*i),0,7*i),o.composite(t.clone().crop(10*i,20*i,14*i,5*i),9*i,7*i),o.composite(t.clone().crop(25*i,20*i,i,5*i),23*i,7*i),o.composite(t.clone().crop(0,25*i,18*i,i),25*i,18*i),o.composite(t.clone().crop(0,25*i,18*i,8*i),25*i,19*i),o.composite(t.clone().crop(0,25*i,i,8*i),24*i,19*i),o.composite(t.clone().crop(0,25*i,i,8*i),43*i,19*i),o.composite(t.clone().crop(0,25*i,18*i,5*i),24*i,27*i),o.composite(t.clone().crop(0,33*i,18*i,2*i),24*i,32*i),o.composite(t.clone().crop(48*i,25*i,6*i,4*i),48*i,29*i),o.composite(t.clone().crop(48*i,25*i,6*i,4*i),64*i,29*i),o.composite(o.clone().crop(78*i,34*i,8*i,5*i),83*i,29*i),o.composite(o.clone().crop(78*i,34*i,8*i,5*i),101*i,29*i),o.composite(t.clone().crop(48*i,25*i,6*i,3*i),47*i,41*i),o.composite(t.clone().crop(48*i,25*i,6*i,3*i),63*i,41*i),o.composite(t.clone().crop(48*i,25*i,6*i,3*i),81*i,43*i),o.composite(t.clone().crop(48*i,25*i,6*i,3*i),99*i,43*i),o.composite(t.clone().crop(48*i,25*i,6*i,5*i),44*i,44*i),o.composite(t.clone().crop(48*i,25*i,6*i,5*i),50*i,44*i),o.composite(t.clone().crop(48*i,25*i,6*i,5*i),60*i,44*i),o.composite(t.clone().crop(48*i,25*i,6*i,5*i),66*i,44*i),o.composite(t.clone().crop(48*i,25*i,6*i,5*i),78*i,46*i),o.composite(t.clone().crop(48*i,25*i,6*i,5*i),84*i,46*i),o.composite(t.clone().crop(48*i,25*i,6*i,5*i),96*i,46*i),o.composite(t.clone().crop(48*i,25*i,6*i,5*i),102*i,46*i),o.composite(t.clone().crop(48*i,25*i,4*i,3*i),47*i,0),o.composite(o.clone().crop(78*i,34*i,i,2*i),44*i,3*i),o.composite(o.clone().crop(78*i,34*i,8*i,2*i),45*i,3*i),o.composite(o.clone().crop(85*i,34*i,i,2*i),53*i,3*i),o.composite(t.clone().crop(42*i,40*i,6*i,7*i),45*i,7*i),o.composite(t.clone().crop(42*i,40*i,10*i,4*i),38*i,14*i),o.composite(t.clone().crop(42*i,40*i,10*i,4*i),48*i,14*i),o.composite(t.clone().crop(42*i,40*i,6*i,5*i),31*i,5*i),o.composite(t.clone().crop(42*i,40*i,13*i,4*i),26*i,10*i),o.composite(t.clone().crop(43*i,52*i,2*i,2*i),39*i,11*i),o.composite(t.clone().crop(43*i,52*i,2*i,2*i).flip(!0,!1),24*i,11*i),o.composite(t.clone().crop(43*i,52*i,2*i,2*i).flip(!0,!1).flip(!1,!0),31*i,3*i),o.composite(t.clone().crop(43*i,52*i,2*i,2*i).flip(!0,!1).flip(!1,!0),34*i,3*i),o.composite(t.clone().crop(19*i,16*i,6*i,4*i),0,0),await o.writeAsync(r)}}return[]}async*getData(){const t=[["textures/entity/horse2/donkey.png","textures/entity/horse/donkey.png"],["textures/entity/horse2/horse_black.png","textures/entity/horse/horse_black.png"],["textures/entity/horse2/horse_brown.png","textures/entity/horse/horse_brown.png"],["textures/entity/horse2/horse_chestnut.png","textures/entity/horse/horse_chestnut.png"],["textures/entity/horse2/horse_creamy.png","textures/entity/horse/horse_creamy.png"],["textures/entity/horse2/horse_darkbrown.png","textures/entity/horse/horse_darkbrown.png"],["textures/entity/horse2/horse_gray.png","textures/entity/horse/horse_gray.png"],["textures/entity/horse2/horse_skeleton.png","textures/entity/horse/horse_skeleton.png"],["textures/entity/horse2/horse_white.png","textures/entity/horse/horse_white.png"],["textures/entity/horse2/horse_zombie.png","textures/entity/horse/horse_zombie.png"],["textures/entity/horse2/mule.png","textures/entity/horse/mule.png"],["textures/entity/horse2/horse_markings_blackdots.png","textures/entity/horse/horse_markings_blackdots.png"],["textures/entity/horse2/horse_markings_white.png","textures/entity/horse/horse_markings_white.png"],["textures/entity/horse2/horse_markings_whitedots.png","textures/entity/horse/horse_markings_whitedots.png"],["textures/entity/horse2/horse_markings_whitefield.png","textures/entity/horse/horse_markings_whitefield.png"],["textures/entity/horse2/armor/horse_armor_diamond.png","textures/entity/horse/armor/horse_armor_diamond.png"],["textures/entity/horse2/armor/horse_armor_gold.png","textures/entity/horse/armor/horse_armor_gold.png"],["textures/entity/horse2/armor/horse_armor_iron.png","textures/entity/horse/armor/horse_armor_iron.png"],["textures/entity/horse2/armor/horse_armor_leather.png","textures/entity/horse/armor/horse_armor_leather.png"]];for(const e of t)yield e}},Ve=n(64),Ye=n.n(Ve);var Ze=class extends p{async convert(){const t=[];for await(const[e,n,r,i]of this.getData()){b.log(`Create metadata ${n}`);const o=b.fromPath(e,this.path),s=b.toPath(n,o,this.path),a=b.toPath(r,o,this.path);let c="";h.a.existsSync(a)?(c=await h.a.readFile(a,"utf8"),t.push(r)):c=Ye()();const u=b.toPath(i,o,this.path);let l="";h.a.existsSync(u)?(l=await h.a.readFile(u,"utf8"),t.push(i)):l=Ye()();const p=JSON.parse(await h.a.readFile(o,"utf8")),f={format_version:1,header:{description:p.pack.description,name:await this.input.name(),platform_locked:!1,uuid:c,version:[0,0,1]},modules:[{description:p.pack.description,type:"resources",uuid:l,version:[0,0,1]}]};await h.a.writeFile(s,JSON.stringify(f,null,2),"utf8"),t.push(e)}return[[v,t]]}async*getData(){yield["pack.mcmeta","./manifest.json","bedrock_uuid_header","bedrock_uuid_module"]}};var Xe=class extends p{async convert(){for await(const[t,e]of this.getData()){const n=b.fromPath(t,this.path),r=b.toPath(e,n,this.path);if(h.a.existsSync(n)){b.log(`Create opaque ${e}`);const t=await Me.read(n),i=await Me.create(t.getWidth(),t.getHeight(),"#000000");i.composite(t,0,0),await i.writeAsync(r)}}return[]}async*getData(){const t=[["textures/blocks/leaves_acacia.png","./leaves_acacia_opaque.png"],["textures/blocks/leaves_big_oak.png","./leaves_big_oak_opaque.png"],["textures/blocks/leaves_birch.png","./leaves_birch_opaque.png"],["textures/blocks/leaves_jungle.png","./leaves_jungle_opaque.png"],["textures/blocks/leaves_oak.png","./leaves_oak_opaque.png"],["textures/blocks/leaves_spruce.png","./leaves_spruce_opaque.png"]];for(const e of t)yield e}};var Qe=class extends p{async convert(){const t=[];for await(const[e,n,r,i,o]of this.getData()){const s=b.fromPath(e,this.path),a=b.toPath(n,s,this.path),c=b.toPath(r,s,this.path);if(h.a.existsSync(s)&&h.a.existsSync(a)){b.log(`Create translated overlay ${r}`);const t=await Me.read(s),e=await Me.read(a);t.scan(0,0,t.getWidth(),t.getHeight(),(n,r,o)=>{(i?255===e.bitmap.data[o+3]:0===t.bitmap.data[o+3])&&(t.bitmap.data[o]=e.bitmap.data[o],t.bitmap.data[o+1]=e.bitmap.data[o+1],t.bitmap.data[o+2]=e.bitmap.data[o+2],t.bitmap.data[o+3]=Math.min(1,e.bitmap.data[o+3]))}),await t.writeAsync(c)}o||t.push(b.toPath(n,e,""))}return[[v,t]]}async*getData(){const t=[["textures/entity/cat/graytabby_tame.png","./allblackcat.png","./allblackcat_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./britishshorthair.png","./britishshorthair_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./calico.png","./calico_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./jellie.png","./jellie_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./ocelot.png","./ocelot_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./persian.png","./persian_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./ragdoll.png","./ragdoll_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./redtabby.png","./redtabby_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./siamesecat.png","./siamesecat_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./tabby.png","./tabby_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./tuxedo.png","./tuxedo_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./white.png","./white_tame.png",!1,!0],["textures/entity/enderman/enderman.png","./enderman_eyes.png","./enderman.png",!0],["textures/items/fireworks_charge.png","./firework_star.png","./fireworks_charge.png",!1],["textures/blocks/grass_side.png","./grass_side_carried.png","./grass_side.png",!1,!0],["textures/items/leather_boots.png","./leather_boots_overlay.png","./leather_boots.png",!0],["textures/items/leather_chestplate.png","./leather_chestplate_overlay.png","./leather_chestplate.png",!0],["textures/items/leather_helmet.png","./leather_helmet_overlay.png","./leather_helmet.png",!0],["textures/items/leather_leggings.png","./leather_leggings_overlay.png","./leather_leggings.png",!0],["textures/models/armor/leather_1.png","./leather_1_overlay.png","./leather_1.png",!0],["textures/models/armor/leather_2.png","./leather_2_overlay.png","./leather_2.png",!0],["textures/entity/phantom.png","./phantom_eyes.png","./phantom.png",!0],["textures/entity/spider/cave_spider.png","textures/entity/spider_eyes.png","./cave_spider.png",!0,!0],["textures/entity/spider/spider.png","textures/entity/spider_eyes.png","./spider.png",!0],["textures/entity/wolf/wolf_collar.png","./wolf_tame.png","./wolf_tame.png",!1,!0]];for(const e of t)yield e}};var Je=class extends p{async convert(){for await(const[t,e,n,r]of this.getData()){const i=b.fromPath(t,this.path),o=b.fromPath(e,this.path),s=b.fromPath(n,this.path),a=b.toPath(r,"",this.path);if(h.a.existsSync(i)&&h.a.existsSync(o)&&h.a.existsSync(s)){b.log(`Create piston arm ${r}`);const t=await Me.read(i),e=await Me.read(o),n=await Me.read(s),c=t.getWidth()/16,u=await Me.create(128*c,32*c);u.composite(t,16*c,0),u.composite(e,32*c,0),n.crop(0,0,n.getWidth(),4*c),u.composite(n,0,16*c),u.composite(n,16*c,16*c),u.composite(n,32*c,16*c),u.composite(n,48*c,16*c);const l=n.clone().rotate(-90).crop(1,0,n.getHeight(),8*c);u.composite(l,64*c,4*c),u.composite(l,68*c,4*c),u.composite(l,72*c,4*c),u.composite(l,76*c,4*c);const p=l.clone().crop(0,l.getHeight()-c,l.getWidth(),c),f=n.clone().crop(7*c,0,c,n.getHeight()),h=l.clone().crop(0,2*c,l.getWidth(),4*c);u.composite(p,70*c,18*c),u.composite(p,74*c,18*c),u.composite(p,78*c,18*c),u.composite(f,70*c,19*c),u.composite(f,75*c,19*c),u.composite(f,76*c,19*c),u.composite(f,81*c,19*c),u.composite(p,70*c,23*c),u.composite(p,74*c,23*c),u.composite(p,78*c,23*c),u.composite(p,64*c,24*c),u.composite(p,68*c,24*c),u.composite(p,72*c,24*c),u.composite(p,76*c,24*c),u.composite(p,80*c,24*c),u.composite(p,84*c,24*c),u.composite(f,64*c,25*c),u.composite(f,64*c,29*c),u.composite(f,69*c,25*c),u.composite(f,69*c,29*c),u.composite(f,70*c,25*c),u.composite(f,70*c,29*c),u.composite(f,75*c,25*c),u.composite(f,75*c,29*c),u.composite(f,76*c,25*c),u.composite(f,76*c,29*c),u.composite(f,81*c,25*c),u.composite(f,81*c,29*c),u.composite(f,82*c,25*c),u.composite(f,82*c,29*c),u.composite(f,87*c,25*c),u.composite(f,87*c,29*c),u.composite(h,65*c,25*c),u.composite(h,65*c,29*c),u.composite(h,71*c,25*c),u.composite(h,71*c,29*c),u.composite(h,77*c,25*c),u.composite(h,77*c,29*c),u.composite(h,83*c,25*c),u.composite(h,83*c,29*c),await u.writeAsync(a)}}return[]}async*getData(){const t=[["textures/blocks/piston_top_normal.png","textures/blocks/piston_top_normal.png","textures/blocks/piston_side.png","textures/entity/pistonarm/pistonArm.png"],["textures/blocks/piston_top_sticky.png","textures/blocks/piston_top_normal.png","textures/blocks/piston_side.png","textures/entity/pistonarm/pistonArmSticky.png"]];for(const e of t)yield e}};var Ke=class extends p{async convert(){for await(const[t,e,n,r,i,o,s,a]of this.getData()){const c=b.fromPath(t,this.path),u=b.toPath(s,c,this.path);if(h.a.existsSync(c)){b.log(`Create placeholder ${s}`);let t=await Me.read(c);const l=t.getWidth()/o;if(t.crop(e*l,n*l,r*l,i*l),!a){const e=Math.max(r,i);t=(await Me.create(e*l,e*l)).composite(t,(e*l-r*l)/2,(e*l-i*l)/2)}await t.writeAsync(u)}}return[]}async*getData(){const t=[["textures/entity/bed/red.png",2,6,14,14,64,"textures/blocks/bed_head_top.png"],["textures/entity/bed/red.png",0,6,6,14,64,"textures/blocks/bed_head_side.png"],["textures/entity/bed/red.png",6,0,14,6,64,"textures/blocks/bed_head_end.png"],["textures/entity/bed/red.png",2,20,14,14,64,"textures/blocks/bed_feet_top.png"],["textures/entity/bed/red.png",22,0,14,6,64,"textures/blocks/bed_feet_end.png"],["textures/entity/bed/red.png",0,20,6,14,64,"textures/blocks/bed_feet_side.png"],["textures/entity/bed/black.png",6,6,16,32,64,"textures/items/bed_black.png"],["textures/entity/bed/blue.png",6,6,16,32,64,"textures/items/bed_blue.png"],["textures/entity/bed/brown.png",6,6,16,32,64,"textures/items/bed_brown.png"],["textures/entity/bed/cyan.png",6,6,16,32,64,"textures/items/bed_cyan.png"],["textures/entity/bed/gray.png",6,6,16,32,64,"textures/items/bed_gray.png"],["textures/entity/bed/green.png",6,6,16,32,64,"textures/items/bed_green.png"],["textures/entity/bed/light_blue.png",6,6,16,32,64,"textures/items/bed_light_blue.png"],["textures/entity/bed/lime.png",6,6,16,32,64,"textures/items/bed_lime.png"],["textures/entity/bed/magenta.png",6,6,16,32,64,"textures/items/bed_magenta.png"],["textures/entity/bed/orange.png",6,6,16,32,64,"textures/items/bed_orange.png"],["textures/entity/bed/pink.png",6,6,16,32,64,"textures/items/bed_pink.png"],["textures/entity/bed/purple.png",6,6,16,32,64,"textures/items/bed_purple.png"],["textures/entity/bed/red.png",6,6,16,32,64,"textures/items/bed_red.png"],["textures/entity/bed/silver.png",6,6,16,32,64,"textures/items/bed_silver.png"],["textures/entity/bed/white.png",6,6,16,32,64,"textures/items/bed_white.png"],["textures/entity/bed/yellow.png",6,6,16,32,64,"textures/items/bed_yellow.png"],["textures/entity/chest/normal.png",14,0,14,14,64,"textures/blocks/chest_top.png"],["textures/entity/chest/ender.png",14,0,14,14,64,"textures/blocks/ender_chest_top.png"],["textures/blocks/chain_command_block_back.png",0,0,16,16,16,"./chain_command_block_back_mipmap.png"],["textures/blocks/chain_command_block_conditional.png",0,0,16,16,16,"./chain_command_block_conditional_mipmap.png"],["textures/blocks/chain_command_block_front.png",0,0,16,16,16,"./chain_command_block_front_mipmap.png"],["textures/blocks/chain_command_block_side.png",0,0,16,16,16,"./chain_command_block_side_mipmap.png"],["textures/blocks/command_block_back.png",0,0,16,16,16,"./command_block_back_mipmap.png"],["textures/blocks/command_block_conditional.png",0,0,16,16,16,"./command_block_conditional_mipmap.png"],["textures/blocks/command_block_front.png",0,0,16,16,16,"./command_block_front_mipmap.png"],["textures/blocks/command_block_side.png",0,0,16,16,16,"./command_block_side_mipmap.png"],["textures/blocks/repeating_command_block_back.png",0,0,16,16,16,"./repeating_command_block_back_mipmap.png"],["textures/blocks/repeating_command_block_conditional.png",0,0,16,16,16,"./repeating_command_block_conditional_mipmap.png"],["textures/blocks/repeating_command_block_front.png",0,0,16,16,16,"./repeating_command_block_front_mipmap.png"],["textures/blocks/repeating_command_block_side.png",0,0,16,16,16,"./repeating_command_block_side_mipmap.png"],["textures/items/compass_atlas.png",0,0,16,16,16,"./compass_item.png"],["textures/items/watch_atlas.png",0,0,16,16,16,"./clock_item.png"],["textures/entity/sign_acacia.png",2,2,24,12,64,"textures/ui/sign_acacia.png",!0],["textures/entity/sign_birch.png",2,2,24,12,64,"textures/ui/sign_birch.png",!0],["textures/entity/sign_darkoak.png",2,2,24,12,64,"textures/ui/sign_darkoak.png",!0],["textures/entity/sign_jungle.png",2,2,24,12,64,"textures/ui/sign_jungle.png",!0],["textures/entity/sign.png",2,2,24,12,64,"textures/ui/sign.png",!0],["textures/entity/sign_spruce.png",2,2,24,12,64,"textures/ui/sign_spruce.png",!0],["textures/blocks/cauldron_water.png",0,0,16,16,16,"./cauldron_water_placeholder.png"],["textures/blocks/fire_0.png",0,0,16,16,16,"./fire_0_placeholder.png"],["textures/blocks/fire_1.png",0,0,16,16,16,"./fire_1_placeholder.png"],["textures/blocks/lava_still.png",0,0,16,16,16,"./lava_placeholder.png"],["textures/blocks/portal.png",0,0,16,16,16,"./portal_placeholder.png"],["textures/blocks/water_still.png",0,0,16,16,16,"./water_placeholder.png"],["textures/entity/pig/pigzombie.png",0,0,64,32,64,"./pigzombie.png",!0],["textures/entity/zombie/husk.png",0,0,64,32,64,"./husk.png",!0],["textures/entity/zombie/zombie.png",0,0,64,32,64,"./zombie.png",!0]];for(const e of t)yield e}},tn=n(128),en=n.n(tn);async function nn(...t){for(const e of t)rn.push(e)}const rn=[[Ze,[]],[class extends p{async convert(){for await(const[t,e]of this.getData()){const n=b.fromPath(t,this.path),r=b.toPath(e,n,this.path);h.a.existsSync(n)&&(b.log(`Rename ${t} to ${e}`),h.a.existsSync(g.a.dirname(r))||await h.a.mkdir(g.a.dirname(r)),await h.a.rename(n,r))}return[]}async*getData(){const t=[["pack.png","./pack_icon.png"],["assets/minecraft/textures","textures"],["textures/block","./blocks"],["textures/item","./items"],["textures/blocks/andesite.png","./stone_andesite.png"],["textures/blocks/polished_andesite.png","./stone_andesite_smooth.png"],["textures/blocks/anvil.png","./anvil_base.png"],["textures/blocks/anvil_top.png","./anvil_top_damaged_0.png"],["textures/blocks/chipped_anvil_top.png","./anvil_top_damaged_1.png"],["textures/blocks/damaged_anvil_top.png","./anvil_top_damaged_2.png"],["textures/items/golden_apple.png","./apple_golden.png"],["textures/entity/armorstand/wood.png","textures/entity/armor_stand.png"],["textures/entity/elytra.png","textures/models/armor/elytra.png"],["textures/items/golden_axe.png","./gold_axe.png"],["textures/items/golden_boots.png","./gold_boots.png"],["textures/items/golden_chestplate.png","./gold_chestplate.png"],["textures/items/golden_helmet.png","./gold_helmet.png"],["textures/items/golden_hoe.png","./gold_hoe.png"],["textures/items/golden_horse_armor.png","./gold_horse_armor.png"],["textures/items/golden_leggings.png","./gold_leggings.png"],["textures/items/golden_pickaxe.png","./gold_pickaxe.png"],["textures/items/golden_shovel.png","./gold_shovel.png"],["textures/items/golden_sword.png","./gold_sword.png"],["textures/items/wooden_axe.png","./wood_axe.png"],["textures/items/wooden_hoe.png","./wood_hoe.png"],["textures/items/wooden_pickaxe.png","./wood_pickaxe.png"],["textures/items/wooden_shovel.png","./wood_shovel.png"],["textures/items/wooden_sword.png","./wood_sword.png"],["textures/models/armor/chainmail_layer_1.png","./chain_1.png"],["textures/models/armor/chainmail_layer_2.png","./chain_2.png"],["textures/models/armor/diamond_layer_1.png","./diamond_1.png"],["textures/models/armor/diamond_layer_2.png","./diamond_2.png"],["textures/models/armor/gold_layer_1.png","./gold_1.png"],["textures/models/armor/gold_layer_2.png","./gold_2.png"],["textures/models/armor/iron_layer_1.png","./iron_1.png"],["textures/models/armor/iron_layer_2.png","./iron_2.png"],["textures/models/armor/leather_layer_1.png","./leather_1.png"],["textures/models/armor/leather_layer_1_overlay.png","./leather_1_overlay.png"],["textures/models/armor/leather_layer_2.png","./leather_2.png"],["textures/models/armor/leather_layer_2_overlay.png","./leather_2_overlay.png"],["textures/models/armor/turtle_layer_1.png","./turtle_1.png"],["textures/entity/arrow.png","./arrows.png"],["textures/blocks/bamboo_large_leaves.png","./bamboo_leaf.png"],["textures/blocks/bamboo_small_leaves.png","./bamboo_small_leaf.png"],["textures/blocks/bamboo_stage0.png","./bamboo_sapling.png"],["textures/blocks/bamboo_stalk.png","./bamboo_stem.png"],["textures/items/barrier.png","textures/blocks/barrier.png"],["textures/entity/bear/polarbear.png","textures/entity/polarbear.png"],["textures/entity/bed/light_gray.png","./silver.png"],["textures/blocks/beetroots_stage0.png","./beetroots_stage_0.png"],["textures/blocks/beetroots_stage1.png","./beetroots_stage_1.png"],["textures/blocks/beetroots_stage2.png","./beetroots_stage_2.png"],["textures/blocks/beetroots_stage3.png","./beetroots_stage_3.png"],["textures/entity/bell/bell_body.png","./bell.png"],["textures/items/bell.png","./villagebell.png"],["textures/entity/boat/acacia.png","./boat_acacia.png"],["textures/entity/boat/birch.png","./boat_birch.png"],["textures/entity/boat/dark_oak.png","./boat_darkoak.png"],["textures/entity/boat/jungle.png","./boat_jungle.png"],["textures/entity/boat/oak.png","./boat_oak.png"],["textures/entity/boat/spruce.png","./boat_spruce.png"],["textures/items/acacia_boat.png","./boat_acacia.png"],["textures/items/birch_boat.png","./boat_birch.png"],["textures/items/dark_oak_boat.png","./boat_darkoak.png"],["textures/items/jungle_boat.png","./boat_jungle.png"],["textures/items/oak_boat.png","./boat_oak.png"],["textures/items/spruce_boat.png","./boat_spruce.png"],["textures/items/bone_meal.png","./dye_powder_white.png"],["textures/items/book.png","./book_normal.png"],["textures/items/enchanted_book.png","./book_enchanted.png"],["textures/items/knowledge_book.png","./book_knowledge.png"],["textures/items/writable_book.png","./book_writable.png"],["textures/items/written_book.png","./book_written.png"],["textures/items/bow.png","./bow_standby.png"],["textures/blocks/bricks.png","./brick.png"],["textures/items/bucket.png","./bucket_empty.png"],["textures/items/cod_bucket.png","./bucket_cod.png"],["textures/items/lava_bucket.png","./bucket_lava.png"],["textures/items/milk_bucket.png","./bucket_milk.png"],["textures/items/pufferfish_bucket.png","./bucket_pufferfish.png"],["textures/items/salmon_bucket.png","./bucket_salmon.png"],["textures/items/tropical_fish_bucket.png","./bucket_tropical.png"],["textures/items/water_bucket.png","./bucket_water.png"],["textures/blocks/campfire_fire.png","./campfire.png"],["textures/blocks/carrots_stage0.png","./carrots_stage_0.png"],["textures/blocks/carrots_stage1.png","./carrots_stage_1.png"],["textures/blocks/carrots_stage2.png","./carrots_stage_2.png"],["textures/blocks/carrots_stage3.png","./carrots_stage_3.png"],["textures/items/golden_carrot.png","./carrot_golden.png"],["textures/entity/cat/all_black.png","./allblackcat.png"],["textures/entity/cat/black.png","./tuxedo.png"],["textures/entity/cat/british_shorthair.png","./britishshorthair.png"],["textures/entity/cat/cat_collar.png","./graytabby_tame.png"],["textures/entity/cat/red.png","./redtabby.png"],["textures/entity/cat/siamese.png","./siamesecat.png"],["textures/entity/chest/normal_double.png","./double_normal.png"],["textures/items/popped_chorus_fruit.png","./chorus_fruit_popped.png"],["textures/blocks/mossy_cobblestone.png","./cobblestone_mossy.png"],["textures/blocks/cobweb.png","./web.png"],["textures/blocks/cocoa_stage0.png","./cocoa_stage_0.png"],["textures/blocks/cocoa_stage1.png","./cocoa_stage_1.png"],["textures/blocks/cocoa_stage2.png","./cocoa_stage_2.png"],["textures/items/cocoa_beans.png","./dye_powder_brown.png"],["textures/blocks/comparator.png","./comparator_off.png"],["textures/blocks/composter_compost.png","./compost.png"],["textures/blocks/composter_ready.png","./compost_ready.png"],["textures/blocks/black_concrete.png","./concrete_black.png"],["textures/blocks/blue_concrete.png","./concrete_blue.png"],["textures/blocks/brown_concrete.png","./concrete_brown.png"],["textures/blocks/cyan_concrete.png","./concrete_cyan.png"],["textures/blocks/gray_concrete.png","./concrete_gray.png"],["textures/blocks/green_concrete.png","./concrete_green.png"],["textures/blocks/light_blue_concrete.png","./concrete_light_blue.png"],["textures/blocks/light_gray_concrete.png","./concrete_silver.png"],["textures/blocks/lime_concrete.png","./concrete_lime.png"],["textures/blocks/magenta_concrete.png","./concrete_magenta.png"],["textures/blocks/orange_concrete.png","./concrete_orange.png"],["textures/blocks/pink_concrete.png","./concrete_pink.png"],["textures/blocks/purple_concrete.png","./concrete_purple.png"],["textures/blocks/red_concrete.png","./concrete_red.png"],["textures/blocks/white_concrete.png","./concrete_white.png"],["textures/blocks/yellow_concrete.png","./concrete_yellow.png"],["textures/blocks/black_concrete_powder.png","./concrete_powder_black.png"],["textures/blocks/blue_concrete_powder.png","./concrete_powder_blue.png"],["textures/blocks/brown_concrete_powder.png","./concrete_powder_brown.png"],["textures/blocks/cyan_concrete_powder.png","./concrete_powder_cyan.png"],["textures/blocks/gray_concrete_powder.png","./concrete_powder_gray.png"],["textures/blocks/green_concrete_powder.png","./concrete_powder_green.png"],["textures/blocks/light_blue_concrete_powder.png","./concrete_powder_light_blue.png"],["textures/blocks/light_gray_concrete_powder.png","./concrete_powder_silver.png"],["textures/blocks/lime_concrete_powder.png","./concrete_powder_lime.png"],["textures/blocks/magenta_concrete_powder.png","./concrete_powder_magenta.png"],["textures/blocks/orange_concrete_powder.png","./concrete_powder_orange.png"],["textures/blocks/pink_concrete_powder.png","./concrete_powder_pink.png"],["textures/blocks/purple_concrete_powder.png","./concrete_powder_purple.png"],["textures/blocks/red_concrete_powder.png","./concrete_powder_red.png"],["textures/blocks/white_concrete_powder.png","./concrete_powder_white.png"],["textures/blocks/yellow_concrete_powder.png","./concrete_powder_yellow.png"],["textures/entity/conduit/base.png","textures/blocks/conduit_base.png"],["textures/entity/conduit/cage.png","textures/blocks/conduit_cage.png"],["textures/entity/conduit/closed_eye.png","textures/blocks/conduit_closed.png"],["textures/entity/conduit/open_eye.png","textures/blocks/conduit_open.png"],["textures/entity/conduit/wind.png","textures/blocks/conduit_wind_horizontal.png"],["textures/entity/conduit/wind_vertical.png","textures/blocks/conduit_wind_vertical.png"],["textures/items/heart_of_the_sea.png","./heartofthesea_closed.png"],["textures/blocks/brain_coral.png","./coral_plant_pink.png"],["textures/blocks/bubble_coral.png","./coral_plant_purple.png"],["textures/blocks/fire_coral.png","./coral_plant_red.png"],["textures/blocks/horn_coral.png","./coral_plant_yellow.png"],["textures/blocks/tube_coral.png","./coral_plant_blue.png"],["textures/blocks/brain_coral_block.png","./coral_pink.png"],["textures/blocks/bubble_coral_block.png","./coral_purple.png"],["textures/blocks/fire_coral_block.png","./coral_red.png"],["textures/blocks/horn_coral_block.png","./coral_yellow.png"],["textures/blocks/tube_coral_block.png","./coral_blue.png"],["textures/blocks/brain_coral_fan.png","./coral_fan_pink.png"],["textures/blocks/bubble_coral_fan.png","./coral_fan_purple.png"],["textures/blocks/fire_coral_fan.png","./coral_fan_red.png"],["textures/blocks/horn_coral_fan.png","./coral_fan_yellow.png"],["textures/blocks/tube_coral_fan.png","./coral_fan_blue.png"],["textures/blocks/dead_brain_coral_block.png","./coral_pink_dead.png"],["textures/blocks/dead_bubble_coral_block.png","./coral_purple_dead.png"],["textures/blocks/dead_fire_coral_block.png","./coral_red_dead.png"],["textures/blocks/dead_horn_coral_block.png","./coral_yellow_dead.png"],["textures/blocks/dead_tube_coral_block.png","./coral_blue_dead.png"],["textures/blocks/dead_brain_coral_fan.png","./coral_fan_pink_dead.png"],["textures/blocks/dead_bubble_coral_fan.png","./coral_fan_purple_dead.png"],["textures/blocks/dead_fire_coral_fan.png","./coral_fan_red_dead.png"],["textures/blocks/dead_horn_coral_fan.png","./coral_fan_yellow_dead.png"],["textures/blocks/dead_tube_coral_fan.png","./coral_fan_blue_dead.png"],["textures/entity/cow/red_mooshroom.png","./mooshroom.png"],["textures/blocks/dead_bush.png","./deadbush.png"],["textures/blocks/destroy_stage_0.png","textures/environment/destroy_stage_0.png"],["textures/blocks/destroy_stage_1.png","textures/environment/destroy_stage_1.png"],["textures/blocks/destroy_stage_2.png","textures/environment/destroy_stage_2.png"],["textures/blocks/destroy_stage_3.png","textures/environment/destroy_stage_3.png"],["textures/blocks/destroy_stage_4.png","textures/environment/destroy_stage_4.png"],["textures/blocks/destroy_stage_5.png","textures/environment/destroy_stage_5.png"],["textures/blocks/destroy_stage_6.png","textures/environment/destroy_stage_6.png"],["textures/blocks/destroy_stage_7.png","textures/environment/destroy_stage_7.png"],["textures/blocks/destroy_stage_8.png","textures/environment/destroy_stage_8.png"],["textures/blocks/destroy_stage_9.png","textures/environment/destroy_stage_9.png"],["textures/blocks/diorite.png","./stone_diorite.png"],["textures/blocks/polished_diorite.png","./stone_diorite_smooth.png"],["textures/blocks/dispenser_front.png","./dispenser_front_horizontal.png"],["textures/blocks/acacia_door_bottom.png","./door_acacia_lower.png"],["textures/blocks/birch_door_bottom.png","./door_birch_lower.png"],["textures/blocks/dark_oak_door_bottom.png","./door_dark_oak_lower.png"],["textures/blocks/iron_door_bottom.png","./door_iron_lower.png"],["textures/blocks/jungle_door_bottom.png","./door_jungle_lower.png"],["textures/blocks/oak_door_bottom.png","./door_wood_lower.png"],["textures/blocks/spruce_door_bottom.png","./door_spruce_lower.png"],["textures/blocks/acacia_door_top.png","./door_acacia_upper.png"],["textures/blocks/birch_door_top.png","./door_birch_upper.png"],["textures/blocks/dark_oak_door_top.png","./door_dark_oak_upper.png"],["textures/blocks/iron_door_top.png","./door_iron_upper.png"],["textures/blocks/jungle_door_top.png","./door_jungle_upper.png"],["textures/blocks/oak_door_top.png","./door_wood_upper.png"],["textures/blocks/spruce_door_top.png","./door_spruce_upper.png"],["textures/items/acacia_door.png","./door_acacia.png"],["textures/items/birch_door.png","./door_birch.png"],["textures/items/dark_oak_door.png","./door_dark_oak.png"],["textures/items/iron_door.png","./door_iron.png"],["textures/items/jungle_door.png","./door_jungle.png"],["textures/items/oak_door.png","./door_wood.png"],["textures/items/spruce_door.png","./door_spruce.png"],["textures/entity/enderdragon","./dragon"],["textures/entity/dragon/dragon_fireball.png","textures/items/dragon_fireball.png"],["textures/items/dragon_breath.png","./dragons_breath.png"],["textures/items/fire_charge.png","./fireball.png"],["textures/blocks/dropper_front.png","./dropper_front_horizontal.png"],["textures/items/black_dye.png","./dye_powder_black_new.png"],["textures/items/blue_dye.png","./dye_powder_blue_new.png"],["textures/items/brown_dye.png","./dye_powder_brown_new.png"],["textures/items/cyan_dye.png","./dye_powder_cyan.png"],["textures/items/gray_dye.png","./dye_powder_gray.png"],["textures/items/green_dye.png","./dye_powder_green.png"],["textures/items/light_blue_dye.png","./dye_powder_light_blue.png"],["textures/items/light_gray_dye.png","./dye_powder_silver.png"],["textures/items/lime_dye.png","./dye_powder_lime.png"],["textures/items/magenta_dye.png","./dye_powder_magenta.png"],["textures/items/orange_dye.png","./dye_powder_orange.png"],["textures/items/pink_dye.png","./dye_powder_pink.png"],["textures/items/purple_dye.png","./dye_powder_purple.png"],["textures/items/red_dye.png","./dye_powder_red.png"],["textures/items/white_dye.png","./dye_powder_white_new.png"],["textures/items/yellow_dye.png","./dye_powder_yellow.png"],["textures/entity/end_crystal","./endercrystal"],["textures/entity/endercrystal/end_crystal.png","./endercrystal.png"],["textures/entity/endercrystal/end_crystal_beam.png","./endercrystal_beam.png"],["textures/blocks/end_portal_frame_eye.png","./endframe_eye.png"],["textures/blocks/end_portal_frame_side.png","./endframe_side.png"],["textures/blocks/end_portal_frame_top.png","./endframe_top.png"],["textures/blocks/end_stone_bricks.png","./end_bricks.png"],["textures/blocks/farmland.png","./farmland_dry.png"],["textures/blocks/farmland_moist.png","./farmland_wet.png"],["textures/blocks/large_fern_bottom.png","./double_plant_fern_bottom.png"],["textures/blocks/large_fern_top.png","./double_plant_fern_top.png"],["textures/items/firework_rocket.png","./fireworks.png"],["textures/items/firework_star_overlay.png","./fireworks_charge.png"],["textures/entity/fishing_hook.png","./fishhook.png"],["textures/items/cod.png","./fish_raw.png"],["textures/items/cooked_cod.png","./fish_cooked.png"],["textures/items/cooked_salmon.png","./fish_salmon_cooked.png"],["textures/items/fishing_rod.png","./fishing_rod_uncast.png"],["textures/items/pufferfish.png","./fish_pufferfish_raw.png"],["textures/items/salmon.png","./fish_salmon_raw.png"],["textures/items/tropical_fish.png","./fish_clownfish_raw.png"],["textures/items/beef.png","./beef_raw.png"],["textures/items/chicken.png","./chicken_raw.png"],["textures/items/cooked_beef.png","./beef_cooked.png"],["textures/items/cooked_chicken.png","./chicken_cooked.png"],["textures/items/cooked_mutton.png","./mutton_cooked.png"],["textures/items/cooked_porkchop.png","./porkchop_cooked.png"],["textures/items/mutton.png","./mutton_raw.png"],["textures/items/porkchop.png","./porkchop_raw.png"],["textures/blocks/fletching_table_front.png","./fletcher_table_side2.png"],["textures/blocks/fletching_table_side.png","./fletcher_table_side1.png"],["textures/blocks/fletching_table_top.png","./fletcher_table_top.png"],["textures/blocks/allium.png","./flower_allium.png"],["textures/blocks/azure_bluet.png","./flower_houstonia.png"],["textures/blocks/blue_orchid.png","./flower_blue_orchid.png"],["textures/blocks/cornflower.png","./flower_cornflower.png"],["textures/blocks/dandelion.png","./flower_dandelion.png"],["textures/blocks/lilac_bottom.png","./double_plant_syringa_bottom.png"],["textures/blocks/lilac_top.png","./double_plant_syringa_top.png"],["textures/blocks/lily_of_the_valley.png","./flower_lily_of_the_valley.png"],["textures/blocks/orange_tulip.png","./flower_tulip_orange.png"],["textures/blocks/poppy.png","./flower_rose.png"],["textures/blocks/oxeye_daisy.png","./flower_oxeye_daisy.png"],["textures/blocks/peony_bottom.png","./double_plant_paeonia_bottom.png"],["textures/blocks/peony_top.png","./double_plant_paeonia_top.png"],["textures/blocks/pink_tulip.png","./flower_tulip_pink.png"],["textures/blocks/red_tulip.png","./flower_tulip_red.png"],["textures/blocks/rose_bush_bottom.png","./double_plant_rose_bottom.png"],["textures/blocks/rose_bush_top.png","./double_plant_rose_top.png"],["textures/blocks/sunflower_back.png","./double_plant_sunflower_back.png"],["textures/blocks/sunflower_bottom.png","./double_plant_sunflower_bottom.png"],["textures/blocks/sunflower_front.png","./double_plant_sunflower_front.png"],["textures/blocks/sunflower_top.png","./double_plant_sunflower_top.png"],["textures/blocks/white_tulip.png","./flower_tulip_white.png"],["textures/blocks/wither_rose.png","./flower_wither_rose.png"],["textures/blocks/blast_furnace_front.png","./blast_furnace_front_off.png"],["textures/blocks/furnace_front.png","./furnace_front_off.png"],["textures/blocks/smoker_front.png","./smoker_front_off.png"],["textures/blocks/black_stained_glass.png","./glass_black.png"],["textures/blocks/blue_stained_glass.png","./glass_blue.png"],["textures/blocks/brown_stained_glass.png","./glass_brown.png"],["textures/blocks/cyan_stained_glass.png","./glass_cyan.png"],["textures/blocks/gray_stained_glass.png","./glass_gray.png"],["textures/blocks/green_stained_glass.png","./glass_green.png"],["textures/blocks/light_blue_stained_glass.png","./glass_light_blue.png"],["textures/blocks/light_gray_stained_glass.png","./glass_silver.png"],["textures/blocks/lime_stained_glass.png","./glass_lime.png"],["textures/blocks/magenta_stained_glass.png","./glass_magenta.png"],["textures/blocks/orange_stained_glass.png","./glass_orange.png"],["textures/blocks/pink_stained_glass.png","./glass_pink.png"],["textures/blocks/purple_stained_glass.png","./glass_purple.png"],["textures/blocks/red_stained_glass.png","./glass_red.png"],["textures/blocks/white_stained_glass.png","./glass_white.png"],["textures/blocks/yellow_stained_glass.png","./glass_yellow.png"],["textures/blocks/black_stained_glass_pane_top.png","./glass_pane_top_black.png"],["textures/blocks/blue_stained_glass_pane_top.png","./glass_pane_top_blue.png"],["textures/blocks/brown_stained_glass_pane_top.png","./glass_pane_top_brown.png"],["textures/blocks/cyan_stained_glass_pane_top.png","./glass_pane_top_cyan.png"],["textures/blocks/gray_stained_glass_pane_top.png","./glass_pane_top_gray.png"],["textures/blocks/green_stained_glass_pane_top.png","./glass_pane_top_green.png"],["textures/blocks/light_blue_stained_glass_pane_top.png","./glass_pane_top_light_blue.png"],["textures/blocks/light_gray_stained_glass_pane_top.png","./glass_pane_top_silver.png"],["textures/blocks/lime_stained_glass_pane_top.png","./glass_pane_top_lime.png"],["textures/blocks/magenta_stained_glass_pane_top.png","./glass_pane_top_magenta.png"],["textures/blocks/orange_stained_glass_pane_top.png","./glass_pane_top_orange.png"],["textures/blocks/pink_stained_glass_pane_top.png","./glass_pane_top_pink.png"],["textures/blocks/purple_stained_glass_pane_top.png","./glass_pane_top_purple.png"],["textures/blocks/red_stained_glass_pane_top.png","./glass_pane_top_red.png"],["textures/blocks/white_stained_glass_pane_top.png","./glass_pane_top_white.png"],["textures/blocks/yellow_stained_glass_pane_top.png","./glass_pane_top_yellow.png"],["textures/blocks/black_glazed_terracotta.png","./glazed_terracotta_black.png"],["textures/blocks/blue_glazed_terracotta.png","./glazed_terracotta_blue.png"],["textures/blocks/brown_glazed_terracotta.png","./glazed_terracotta_brown.png"],["textures/blocks/cyan_glazed_terracotta.png","./glazed_terracotta_cyan.png"],["textures/blocks/gray_glazed_terracotta.png","./glazed_terracotta_gray.png"],["textures/blocks/green_glazed_terracotta.png","./glazed_terracotta_green.png"],["textures/blocks/light_blue_glazed_terracotta.png","./glazed_terracotta_light_blue.png"],["textures/blocks/light_gray_glazed_terracotta.png","./glazed_terracotta_silver.png"],["textures/blocks/lime_glazed_terracotta.png","./glazed_terracotta_lime.png"],["textures/blocks/magenta_glazed_terracotta.png","./glazed_terracotta_magenta.png"],["textures/blocks/orange_glazed_terracotta.png","./glazed_terracotta_orange.png"],["textures/blocks/pink_glazed_terracotta.png","./glazed_terracotta_pink.png"],["textures/blocks/purple_glazed_terracotta.png","./glazed_terracotta_purple.png"],["textures/blocks/red_glazed_terracotta.png","./glazed_terracotta_red.png"],["textures/blocks/white_glazed_terracotta.png","./glazed_terracotta_white.png"],["textures/blocks/yellow_glazed_terracotta.png","./glazed_terracotta_yellow.png"],["textures/blocks/granite.png","./stone_granite.png"],["textures/blocks/polished_granite.png","./stone_granite_smooth.png"],["textures/blocks/grass.png","./tallgrass.png"],["textures/blocks/grass_block_side.png","./grass_side_carried.png"],["textures/blocks/grass_block_side_overlay.png","./grass_side.png"],["textures/blocks/grass_block_snow.png","./grass_side_snowed.png"],["textures/blocks/grass_block_top.png","./grass_top.png"],["textures/blocks/tall_grass_bottom.png","./double_plant_grass_bottom.png"],["textures/blocks/tall_grass_top.png","./double_plant_grass_top.png"],["textures/entity/horse","./horse2"],["textures/blocks/packed_ice.png","./ice_packed.png"],["textures/entity/illager/evoker_fangs.png","./fangs.png"],["textures/entity/illager/pillager.png","textures/entity/pillager.png"],["textures/entity/illager/vex.png","textures/entity/vex/vex.png"],["textures/entity/illager/vex_charging.png","textures/entity/vex/vex_charging.png"],["textures/entity/illager/vindicator.png","textures/entity/vindicator.png"],["textures/items/ink_sac.png","./dye_powder_black.png"],["textures/blocks/item_frame.png","./itemframe_background.png"],["textures/blocks/jigsaw_bottom.png","./jigsaw_back.png"],["textures/blocks/jigsaw_top.png","./jigsaw_front.png"],["textures/blocks/dried_kelp_side.png","./dried_kelp_side_a.png"],["textures/blocks/kelp.png","./kelp_top.png"],["textures/blocks/kelp_plant.png","./kelp_a.png"],["textures/items/lapis_lazuli.png","./dye_powder_blue.png"],["textures/blocks/acacia_leaves.png","./leaves_acacia.png"],["textures/blocks/birch_leaves.png","./leaves_birch.png"],["textures/blocks/dark_oak_leaves.png","./leaves_big_oak.png"],["textures/blocks/jungle_leaves.png","./leaves_jungle.png"],["textures/blocks/oak_leaves.png","./leaves_oak.png"],["textures/blocks/spruce_leaves.png","./leaves_spruce.png"],["textures/blocks/lily_pad.png","./waterlily.png"],["textures/entity/llama/brown.png","./llama_brown.png"],["textures/entity/llama/creamy.png","./llama_creamy.png"],["textures/entity/llama/gray.png","./llama_gray.png"],["textures/entity/llama/white.png","./llama_white.png"],["textures/entity/llama/decor/black.png","./decor_black.png"],["textures/entity/llama/decor/blue.png","./decor_blue.png"],["textures/entity/llama/decor/brown.png","./decor_brown.png"],["textures/entity/llama/decor/cyan.png","./decor_cyan.png"],["textures/entity/llama/decor/gray.png","./decor_gray.png"],["textures/entity/llama/decor/green.png","./decor_green.png"],["textures/entity/llama/decor/light_blue.png","./decor_light_blue.png"],["textures/entity/llama/decor/light_gray.png","./decor_silver.png"],["textures/entity/llama/decor/lime.png","./decor_lime.png"],["textures/entity/llama/decor/magenta.png","./decor_magenta.png"],["textures/entity/llama/decor/orange.png","./decor_orange.png"],["textures/entity/llama/decor/pink.png","./decor_pink.png"],["textures/entity/llama/decor/purple.png","./decor_purple.png"],["textures/entity/llama/decor/red.png","./decor_red.png"],["textures/entity/llama/decor/trader_llama.png","./trader_llama_decor.png"],["textures/entity/llama/decor/white.png","./decor_white.png"],["textures/entity/llama/decor/yellow.png","./decor_yellow.png"],["textures/blocks/acacia_log.png","./log_acacia.png"],["textures/blocks/birch_log.png","./log_birch.png"],["textures/blocks/dark_oak_log.png","./log_big_oak.png"],["textures/blocks/jungle_log.png","./log_jungle.png"],["textures/blocks/oak_log.png","./log_oak.png"],["textures/blocks/spruce_log.png","./log_spruce.png"],["textures/blocks/acacia_log_top.png","./log_acacia_top.png"],["textures/blocks/birch_log_top.png","./log_birch_top.png"],["textures/blocks/dark_oak_log_top.png","./log_big_oak_top.png"],["textures/blocks/jungle_log_top.png","./log_jungle_top.png"],["textures/blocks/oak_log_top.png","./log_oak_top.png"],["textures/blocks/spruce_log_top.png","./log_spruce_top.png"],["textures/items/filled_map.png","./map_filled.png"],["textures/items/filled_map_markings.png","./map_filled_markings.png"],["textures/items/map.png","./map_empty.png"],["textures/blocks/attached_melon_stem.png","./melon_stem_connected.png"],["textures/blocks/melon_stem.png","./melon_stem_disconnected.png"],["textures/items/glistering_melon_slice.png","./melon_speckled.png"],["textures/items/melon_slice.png","./melon.png"],["textures/items/chest_minecart.png","./minecart_chest.png"],["textures/items/command_block_minecart.png","./minecart_command_block.png"],["textures/items/furnace_minecart.png","./minecart_furnace.png"],["textures/items/hopper_minecart.png","./minecart_hopper.png"],["textures/items/minecart.png","./minecart_normal.png"],["textures/items/tnt_minecart.png","./minecart_tnt.png"],["textures/blocks/brown_mushroom.png","./mushroom_brown.png"],["textures/blocks/red_mushroom.png","./mushroom_red.png"],["textures/blocks/brown_mushroom_block.png","./mushroom_block_skin_brown.png"],["textures/blocks/red_mushroom_block.png","./mushroom_block_skin_red.png"],["textures/blocks/mushroom_stem.png","./mushroom_block_skin_stem.png"],["textures/items/music_disc_11.png","./record_11.png"],["textures/items/music_disc_13.png","./record_13.png"],["textures/items/music_disc_blocks.png","./record_blocks.png"],["textures/items/music_disc_cat.png","./record_cat.png"],["textures/items/music_disc_chirp.png","./record_chirp.png"],["textures/items/music_disc_far.png","./record_far.png"],["textures/items/music_disc_mall.png","./record_mall.png"],["textures/items/music_disc_mellohi.png","./record_mellohi.png"],["textures/items/music_disc_stal.png","./record_stal.png"],["textures/items/music_disc_strad.png","./record_strad.png"],["textures/items/music_disc_wait.png","./record_wait.png"],["textures/items/music_disc_ward.png","./record_ward.png"],["textures/blocks/nether_bricks.png","./nether_brick.png"],["textures/blocks/red_nether_bricks.png","./red_nether_brick.png"],["textures/items/nether_brick.png","./netherbrick.png"],["textures/blocks/nether_portal.png","./portal.png"],["textures/blocks/nether_wart_stage0.png","./nether_wart_stage_0.png"],["textures/blocks/nether_wart_stage1.png","./nether_wart_stage_1.png"],["textures/blocks/nether_wart_stage2.png","./nether_wart_stage_2.png"],["textures/blocks/note_block.png","./noteblock.png"],["textures/items/nautilus_shell.png","./nautilus.png"],["textures/blocks/observer_back_on.png","./observer_back_lit.png"],["textures/entity/panda/aggressive_panda.png","./panda_aggressive.png"],["textures/entity/panda/brown_panda.png","./panda_brown.png"],["textures/entity/panda/lazy_panda.png","./panda_lazy.png"],["textures/entity/panda/playful_panda.png","./panda_playful.png"],["textures/entity/panda/weak_panda.png","./panda_sneezy.png"],["textures/entity/panda/worried_panda.png","./panda_worried.png"],["textures/blocks/piston_top.png","./piston_top_normal.png"],["textures/blocks/acacia_planks.png","./planks_acacia.png"],["textures/blocks/birch_planks.png","./planks_birch.png"],["textures/blocks/dark_oak_planks.png","./planks_big_oak.png"],["textures/blocks/jungle_planks.png","./planks_jungle.png"],["textures/blocks/oak_planks.png","./planks_oak.png"],["textures/blocks/spruce_planks.png","./planks_spruce.png"],["textures/blocks/podzol_side.png","./dirt_podzol_side.png"],["textures/blocks/podzol_top.png","./dirt_podzol_top.png"],["textures/blocks/potatoes_stage0.png","./potatoes_stage_0.png"],["textures/blocks/potatoes_stage1.png","./potatoes_stage_1.png"],["textures/blocks/potatoes_stage2.png","./potatoes_stage_2.png"],["textures/blocks/potatoes_stage3.png","./potatoes_stage_3.png"],["textures/items/baked_potato.png","./potato_baked.png"],["textures/items/poisonous_potato.png","./potato_poisonous.png"],["textures/items/lingering_potion.png","./potion_bottle_lingering_empty.png"],["textures/items/potion.png","./potion_bottle_empty.png"],["textures/items/splash_potion.png","./potion_bottle_splash_empty.png"],["textures/blocks/dark_prismarine.png","./prismarine_dark.png"],["textures/blocks/prismarine.png","./prismarine_rough.png"],["textures/blocks/attached_pumpkin_stem.png","./pumpkin_stem_connected.png"],["textures/blocks/carved_pumpkin.png","./pumpkin_face_off.png"],["textures/blocks/jack_o_lantern.png","./pumpkin_face_on.png"],["textures/blocks/pumpkin_stem.png","./pumpkin_stem_disconnected.png"],["textures/blocks/chiseled_quartz_block.png","./quartz_block_chiseled.png"],["textures/blocks/chiseled_quartz_block_top.png","./quartz_block_chiseled_top.png"],["textures/blocks/nether_quartz_ore.png","./quartz_ore.png"],["textures/blocks/quartz_pillar.png","./quartz_block_lines.png"],["textures/blocks/quartz_pillar_top.png","./quartz_block_lines_top.png"],["textures/entity/rabbit/black.png","./blackrabbit.png"],["textures/items/cooked_rabbit.png","./rabbit_cooked.png"],["textures/items/rabbit.png","./rabbit_raw.png"],["textures/blocks/activator_rail.png","./rail_activator.png"],["textures/blocks/activator_rail_on.png","./rail_activator_powered.png"],["textures/blocks/detector_rail.png","./rail_detector.png"],["textures/blocks/detector_rail_on.png","./rail_detector_powered.png"],["textures/blocks/powered_rail.png","./rail_golden.png"],["textures/blocks/powered_rail_on.png","./rail_golden_powered.png"],["textures/blocks/rail.png","./rail_normal.png"],["textures/blocks/rail_corner.png","./rail_normal_turned.png"],["textures/blocks/chiseled_red_sandstone.png","./red_sandstone_carved.png"],["textures/blocks/cut_red_sandstone.png","./red_sandstone_smooth.png"],["textures/blocks/red_sandstone.png","./red_sandstone_normal.png"],["textures/items/redstone.png","./redstone_dust.png"],["textures/blocks/redstone_lamp.png","./redstone_lamp_off.png"],["textures/blocks/repeater.png","./repeater_off.png"],["textures/entity/pig/pig_saddle.png","textures/entity/saddle.png"],["textures/blocks/chiseled_sandstone.png","./sandstone_carved.png"],["textures/blocks/cut_sandstone.png","./sandstone_smooth.png"],["textures/blocks/sandstone.png","./sandstone_normal.png"],["textures/blocks/acacia_sapling.png","./sapling_acacia.png"],["textures/blocks/birch_sapling.png","./sapling_birch.png"],["textures/blocks/dark_oak_sapling.png","./sapling_roofed_oak.png"],["textures/blocks/jungle_sapling.png","./sapling_jungle.png"],["textures/blocks/oak_sapling.png","./sapling_oak.png"],["textures/blocks/spruce_sapling.png","./sapling_spruce.png"],["textures/blocks/tall_seagrass_top.png","./seagrass_doubletall_top_a.png"],["textures/blocks/tall_seagrass_bottom.png","./seagrass_doubletall_bottom_a.png"],["textures/items/seagrass.png","textures/blocks/seagrass_carried.png"],["textures/items/beetroot_seeds.png","./seeds_beetroot.png"],["textures/items/melon_seeds.png","./seeds_melon.png"],["textures/items/pumpkin_seeds.png","./seeds_pumpkin.png"],["textures/items/wheat_seeds.png","./seeds_wheat.png"],["textures/entity/shield_base_nopattern.png","./shield.png"],["textures/blocks/black_shulker_box.png","./shulker_top_black.png"],["textures/blocks/blue_shulker_box.png","./shulker_top_blue.png"],["textures/blocks/brown_shulker_box.png","./shulker_top_brown.png"],["textures/blocks/cyan_shulker_box.png","./shulker_top_cyan.png"],["textures/blocks/gray_shulker_box.png","./shulker_top_gray.png"],["textures/blocks/green_shulker_box.png","./shulker_top_green.png"],["textures/blocks/light_blue_shulker_box.png","./shulker_top_light_blue.png"],["textures/blocks/light_gray_shulker_box.png","./shulker_top_silver.png"],["textures/blocks/lime_shulker_box.png","./shulker_top_lime.png"],["textures/blocks/magenta_shulker_box.png","./shulker_top_magenta.png"],["textures/blocks/orange_shulker_box.png","./shulker_top_orange.png"],["textures/blocks/pink_shulker_box.png","./shulker_top_pink.png"],["textures/blocks/purple_shulker_box.png","./shulker_top_purple.png"],["textures/blocks/red_shulker_box.png","./shulker_top_red.png"],["textures/blocks/shulker_box.png","./shulker_top_undyed.png"],["textures/blocks/white_shulker_box.png","./shulker_top_white.png"],["textures/blocks/yellow_shulker_box.png","./shulker_top_yellow.png"],["textures/entity/shulker/shulker.png","./shulker_undyed.png"],["textures/entity/shulker/shulker_black.png","./shulker_black.png"],["textures/entity/shulker/shulker_blue.png","./shulker_blue.png"],["textures/entity/shulker/shulker_brown.png","./shulker_brown.png"],["textures/entity/shulker/shulker_cyan.png","./shulker_cyan.png"],["textures/entity/shulker/shulker_gray.png","./shulker_gray.png"],["textures/entity/shulker/shulker_green.png","./shulker_green.png"],["textures/entity/shulker/shulker_light_blue.png","./shulker_light_blue.png"],["textures/entity/shulker/shulker_light_gray.png","./shulker_silver.png"],["textures/entity/shulker/shulker_lime.png","./shulker_lime.png"],["textures/entity/shulker/shulker_magenta.png","./shulker_magenta.png"],["textures/entity/shulker/shulker_orange.png","./shulker_orange.png"],["textures/entity/shulker/shulker_pink.png","./shulker_pink.png"],["textures/entity/shulker/shulker_purple.png","./shulker_purple.png"],["textures/entity/shulker/shulker_red.png","./shulker_red.png"],["textures/entity/shulker/shulker_white.png","./shulker_white.png"],["textures/entity/shulker/shulker_yellow.png","./shulker_yellow.png"],["textures/entity/signs/acacia.png","textures/entity/sign_acacia.png"],["textures/entity/signs/birch.png","textures/entity/sign_birch.png"],["textures/entity/signs/dark_oak.png","textures/entity/sign_darkoak.png"],["textures/entity/signs/jungle.png","textures/entity/sign_jungle.png"],["textures/entity/signs/oak.png","textures/entity/sign.png"],["textures/entity/signs/spruce.png","textures/entity/sign_spruce.png"],["textures/items/acacia_sign.png","./sign_acacia.png"],["textures/items/birch_sign.png","./sign_birch.png"],["textures/items/dark_oak_sign.png","./sign_darkoak.png"],["textures/items/jungle_sign.png","./sign_jungle.png"],["textures/items/oak_sign.png","./sign.png"],["textures/items/spruce_sign.png","./sign_spruce.png"],["textures/blocks/slime_block.png","./slime.png"],["textures/items/slime_ball.png","./slimeball.png"],["textures/blocks/smooth_stone.png","./stone_slab_top.png"],["textures/blocks/smooth_stone_slab_side.png","./stone_slab_side.png"],["textures/blocks/spawner.png","./mob_spawner.png"],["textures/items/fermented_spider_eye.png","./spider_eye_fermented.png"],["textures/blocks/wet_sponge.png","./sponge_wet.png"],["textures/blocks/chiseled_stone_bricks.png","./stonebrick_carved.png"],["textures/blocks/cracked_stone_bricks.png","./stonebrick_cracked.png"],["textures/blocks/mossy_stone_bricks.png","./stonebrick_mossy.png"],["textures/blocks/stone_bricks.png","./stonebrick.png"],["textures/blocks/stonecutter_bottom.png","./stonecutter2_bottom.png"],["textures/blocks/stonecutter_saw.png","./stonecutter2_saw.png"],["textures/blocks/stonecutter_side.png","./stonecutter2_side.png"],["textures/blocks/stonecutter_top.png","./stonecutter2_top.png"],["textures/items/structure_void.png","textures/blocks/structure_void.png"],["textures/blocks/sugar_cane.png","./reeds.png"],["textures/items/sugar_cane.png","./reeds.png"],["textures/blocks/black_terracotta.png","./hardened_clay_stained_black.png"],["textures/blocks/blue_terracotta.png","./hardened_clay_stained_blue.png"],["textures/blocks/brown_terracotta.png","./hardened_clay_stained_brown.png"],["textures/blocks/cyan_terracotta.png","./hardened_clay_stained_cyan.png"],["textures/blocks/gray_terracotta.png","./hardened_clay_stained_gray.png"],["textures/blocks/green_terracotta.png","./hardened_clay_stained_green.png"],["textures/blocks/light_blue_terracotta.png","./hardened_clay_stained_light_blue.png"],["textures/blocks/light_gray_terracotta.png","./hardened_clay_stained_silver.png"],["textures/blocks/lime_terracotta.png","./hardened_clay_stained_lime.png"],["textures/blocks/magenta_terracotta.png","./hardened_clay_stained_magenta.png"],["textures/blocks/orange_terracotta.png","./hardened_clay_stained_orange.png"],["textures/blocks/pink_terracotta.png","./hardened_clay_stained_pink.png"],["textures/blocks/purple_terracotta.png","./hardened_clay_stained_purple.png"],["textures/blocks/red_terracotta.png","./hardened_clay_stained_red.png"],["textures/blocks/terracotta.png","./hardened_clay.png"],["textures/blocks/white_terracotta.png","./hardened_clay_stained_white.png"],["textures/blocks/yellow_terracotta.png","./hardened_clay_stained_yellow.png"],["textures/blocks/redstone_torch.png","./redstone_torch_on.png"],["textures/blocks/torch.png","./torch_on.png"],["textures/items/totem_of_undying.png","./totem.png"],["textures/blocks/oak_trapdoor.png","./trapdoor.png"],["textures/blocks/tripwire.png","./trip_wire.png"],["textures/blocks/tripwire_hook.png","./trip_wire_source.png"],["textures/blocks/turtle_egg.png","./turtle_egg_not_cracked.png"],["textures/entity/turtle/big_sea_turtle.png","textures/entity/sea_turtle.png"],["textures/items/scute.png","./turtle_shell_piece.png"],["textures/entity/villager","./villager2"],["textures/entity/villager2/profession","./professions"],["textures/entity/villager2/profession_level","./levels"],["textures/entity/villager2/type","./biomes"],["textures/entity/villager2/biomes/desert.png","./biome_desert.png"],["textures/entity/villager2/biomes/jungle.png","./biome_jungle.png"],["textures/entity/villager2/biomes/plains.png","./biome_plains.png"],["textures/entity/villager2/biomes/savanna.png","./biome_savanna.png"],["textures/entity/villager2/biomes/snow.png","./biome_snow.png"],["textures/entity/villager2/biomes/swamp.png","./biome_swamp.png"],["textures/entity/villager2/biomes/taiga.png","./biome_taiga.png"],["textures/entity/villager2/levels/diamond.png","./level_diamond.png"],["textures/entity/villager2/levels/emerald.png","./level_emerald.png"],["textures/entity/villager2/levels/gold.png","./level_gold.png"],["textures/entity/villager2/levels/iron.png","./level_iron.png"],["textures/entity/villager2/levels/stone.png","./level_stone.png"],["textures/entity/villager2/professions/mason.png","./stonemason.png"],["textures/blocks/water_flow.png","./water_flow_grey.png"],["textures/blocks/water_still.png","./water_still_grey.png"],["textures/blocks/wheat_stage0.png","./wheat_stage_0.png"],["textures/blocks/wheat_stage1.png","./wheat_stage_1.png"],["textures/blocks/wheat_stage2.png","./wheat_stage_2.png"],["textures/blocks/wheat_stage3.png","./wheat_stage_3.png"],["textures/blocks/wheat_stage4.png","./wheat_stage_4.png"],["textures/blocks/wheat_stage5.png","./wheat_stage_5.png"],["textures/blocks/wheat_stage6.png","./wheat_stage_6.png"],["textures/blocks/wheat_stage7.png","./wheat_stage_7.png"],["textures/entity/wither","./wither_boss"],["textures/blocks/black_wool.png","./wool_colored_black.png"],["textures/blocks/blue_wool.png","./wool_colored_blue.png"],["textures/blocks/brown_wool.png","./wool_colored_brown.png"],["textures/blocks/cyan_wool.png","./wool_colored_cyan.png"],["textures/blocks/gray_wool.png","./wool_colored_gray.png"],["textures/blocks/green_wool.png","./wool_colored_green.png"],["textures/blocks/light_blue_wool.png","./wool_colored_light_blue.png"],["textures/blocks/light_gray_wool.png","./wool_colored_silver.png"],["textures/blocks/lime_wool.png","./wool_colored_lime.png"],["textures/blocks/magenta_wool.png","./wool_colored_magenta.png"],["textures/blocks/orange_wool.png","./wool_colored_orange.png"],["textures/blocks/pink_wool.png","./wool_colored_pink.png"],["textures/blocks/purple_wool.png","./wool_colored_purple.png"],["textures/blocks/red_wool.png","./wool_colored_red.png"],["textures/blocks/white_wool.png","./wool_colored_white.png"],["textures/blocks/yellow_wool.png","./wool_colored_yellow.png"],["textures/entity/zombie_pigman.png","./pig/pigzombie.png"],["textures/entity/zombie_villager","./zombie_villager2"],["textures/entity/zombie_villager2/profession","./professions"],["textures/entity/zombie_villager2/profession_level","./levels"],["textures/entity/zombie_villager2/type","./biomes"],["textures/entity/zombie_villager2/zombie_villager.png","./zombie-villager.png"],["textures/entity/zombie_villager2/biomes/desert.png","./biome-desert-zombie.png"],["textures/entity/zombie_villager2/biomes/jungle.png","./biome-jungle-zombie.png"],["textures/entity/zombie_villager2/biomes/plains.png","./biome-plains-zombie.png"],["textures/entity/zombie_villager2/biomes/savanna.png","./biome-savanna-zombie.png"],["textures/entity/zombie_villager2/biomes/snow.png","./biome-snow-zombie.png"],["textures/entity/zombie_villager2/biomes/swamp.png","./biome-swamp-zombie.png"],["textures/entity/zombie_villager2/biomes/taiga.png","./biome-taiga-zombie.png"],["textures/entity/zombie_villager2/levels/diamond.png","./level_diamond.png"],["textures/entity/zombie_villager2/levels/emerald.png","./level_emerald.png"],["textures/entity/zombie_villager2/levels/gold.png","./level_gold.png"],["textures/entity/zombie_villager2/levels/iron.png","./level_iron.png"],["textures/entity/zombie_villager2/levels/stone.png","./level_stone.png"],["textures/entity/zombie_villager2/professions/mason.png","./stonemason.png"]];for(const e of t)yield e}},[]],[Ne,[]],[ze,[]],[Re,[]],[Ue,[]],[$e,[]],[We,[]],[qe,[]],[Je,[]],[class extends p{async convert(){const t=[];for await(const[e,n,r,i,o]of this.getData()){const s=b.fromPath(e,this.path),a=b.fromPath(n,this.path),c=b.fromPath(r,this.path),u=b.toPath(i,a,this.path),l=b.toPath(o,a,this.path);if(h.a.existsSync(s)&&h.a.existsSync(a)&&h.a.existsSync(c)){b.log("Convert redstone dust");const t=await Me.read(a);t.rotate(90).crop(0,0,t.getWidth()-2,t.getHeight()-2),await t.writeAsync(l),t.composite(await Me.read(c),0,0),t.composite(await Me.read(s),0,0),await t.writeAsync(u)}t.push(e),t.push(n),t.push(r)}return[[v,t]]}async*getData(){yield["textures/blocks/redstone_dust_dot.png","textures/blocks/redstone_dust_line0.png","textures/blocks/redstone_dust_line1.png","./redstone_dust_cross.png","./redstone_dust_line.png"]}},[]],[class extends p{async convert(){const t=[];for await(const[e,n]of this.getData()){const r=b.fromPath(e,this.path),i=b.fromPath(n,this.path);if(h.a.existsSync(r)&&h.a.existsSync(i)){b.log("Convert sheep");const t=await Me.read(r),e=await Me.read(i),n=await Me.create(t.getWidth(),t.getHeight()+e.getHeight());n.composite(t,0,0),n.composite(e,0,t.getHeight()),n.scan(0,0,n.getWidth(),t.getHeight(),(t,e,r)=>{255===n.bitmap.data[r+3]&&(n.bitmap.data[r+3]=1)}),await n.writeAsync(r)}t.push(n)}return[[v,t]]}async*getData(){yield["textures/entity/sheep/sheep.png","textures/entity/sheep/sheep_fur.png"]}},[]],[class extends p{async convert(){for await(const t of this.getData()){const e=b.fromPath(t,this.path);if(h.a.existsSync(e)){b.log(`Convert villager ${t}`);const n=await Me.read(e);n.scan(0,0,n.getWidth(),n.getHeight(),(t,e,r)=>{0===n.bitmap.data[r+3]&&(n.bitmap.data[r]=255,n.bitmap.data[r+1]=255,n.bitmap.data[r+2]=255,n.bitmap.data[r+3]=0)}),await n.writeAsync(e)}}return[]}async*getData(){const t=["textures/entity/villager2/professions/armorer.png","textures/entity/villager2/professions/butcher.png","textures/entity/villager2/professions/cartographer.png","textures/entity/villager2/professions/cleric.png","textures/entity/villager2/professions/farmer.png","textures/entity/villager2/professions/fisherman.png","textures/entity/villager2/professions/fletcher.png","textures/entity/villager2/professions/leatherworker.png","textures/entity/villager2/professions/librarian.png","textures/entity/villager2/professions/nitwit.png","textures/entity/villager2/professions/shepherd.png","textures/entity/villager2/professions/stonemason.png","textures/entity/villager2/professions/toolsmith.png","textures/entity/villager2/professions/unskilled.png","textures/entity/villager2/professions/weaponsmith.png","textures/entity/zombie_villager2/professions/armorer.png","textures/entity/zombie_villager2/professions/butcher.png","textures/entity/zombie_villager2/professions/cartographer.png","textures/entity/zombie_villager2/professions/cleric.png","textures/entity/zombie_villager2/professions/farmer.png","textures/entity/zombie_villager2/professions/fisherman.png","textures/entity/zombie_villager2/professions/fletcher.png","textures/entity/zombie_villager2/professions/leatherworker.png","textures/entity/zombie_villager2/professions/librarian.png","textures/entity/zombie_villager2/professions/nitwit.png","textures/entity/zombie_villager2/professions/shepherd.png","textures/entity/zombie_villager2/professions/stonemason.png","textures/entity/zombie_villager2/professions/toolsmith.png","textures/entity/zombie_villager2/professions/weaponsmith.png"];for(const e of t)yield e}},[]],[Xe,[]],[Qe,[]],[Ge,[]],[Ke,[]],[class extends p{async convert(){for await(const[t,e]of this.getData()){const n=b.fromPath(t,this.path),r=b.toPath(e,n,this.path);if(h.a.existsSync(n)){b.log(`Create side rotate ${e}`);const t=await Me.read(n);t.flip(!0,!1),await t.writeAsync(r)}}return[]}async*getData(){const t=[["textures/blocks/dried_kelp_side_a.png","./dried_kelp_side_b.png"],["textures/blocks/seagrass_doubletall_top_a.png","./seagrass_doubletall_top_b.png"],["textures/blocks/seagrass_doubletall_bottom_a.png","./seagrass_doubletall_bottom_b.png"]];for(const e of t)yield e}},[]],[class extends p{async convert(){const t=[];for await(const[e,n,r]of this.getData()){const i=b.fromPath(e,this.path),o=b.toPath(n,i,this.path);if(h.a.existsSync(i)){b.log(`Create tga ${n}`);const s=await Me.read(i),a=en.a.createTgaBuffer(s.getWidth(),s.getHeight(),s.bitmap.data);await h.a.writeFile(o,a),r||t.push(e)}}return[[v,t]]}async*getData(){const t=[["textures/blocks/cactus_bottom.png","./cactus_bottom.tga"],["textures/blocks/cactus_side.png","./cactus_side.tga"],["textures/blocks/cactus_top.png","./cactus_top.tga"],["textures/blocks/double_plant_fern_bottom.png","./double_plant_fern_bottom.tga"],["textures/blocks/double_plant_fern_top.png","./double_plant_fern_top.tga"],["textures/blocks/double_plant_grass_bottom.png","./double_plant_grass_bottom.tga"],["textures/blocks/double_plant_grass_top.png","./double_plant_grass_top.tga"],["textures/blocks/double_plant_syringa_bottom.png","./double_plant_syringa_bottom.tga"],["textures/blocks/double_plant_syringa_top.png","./double_plant_syringa_top.tga"],["textures/blocks/fern.png","./fern.tga"],["textures/blocks/fern_carried.png","./fern_carried.tga"],["textures/blocks/grass_side.png","./grass_side.tga"],["textures/blocks/grass_side_snowed.png","./grass_side_snowed.tga",!0],["textures/blocks/grindstone_pivot.png","./grindstone_pivot.tga"],["textures/blocks/grindstone_round.png","./grindstone_round.tga"],["textures/blocks/grindstone_side.png","./grindstone_side.tga"],["textures/blocks/kelp_a.png","./kelp_a.tga"],["textures/blocks/kelp_b.png","./kelp_b.tga"],["textures/blocks/kelp_c.png","./kelp_c.tga"],["textures/blocks/kelp_d.png","./kelp_d.tga"],["textures/blocks/kelp_top.png","./kelp_top.tga"],["textures/blocks/kelp_top_bulb.png","./kelp_top_bulb.tga"],["textures/blocks/leaves_acacia.png","./leaves_acacia.tga"],["textures/blocks/leaves_acacia_carried.png","./leaves_acacia_carried.tga"],["textures/blocks/leaves_big_oak.png","./leaves_big_oak.tga"],["textures/blocks/leaves_big_oak_carried.png","./leaves_big_oak_carried.tga"],["textures/blocks/leaves_birch.png","./leaves_birch.tga"],["textures/blocks/leaves_birch_carried.png","./leaves_birch_carried.tga"],["textures/blocks/leaves_jungle.png","./leaves_jungle.tga"],["textures/blocks/leaves_jungle_carried.png","./leaves_jungle_carried.tga"],["textures/blocks/leaves_oak.png","./leaves_oak.tga"],["textures/blocks/leaves_oak_carried.png","./leaves_oak_carried.tga"],["textures/blocks/leaves_spruce.png","./leaves_spruce.tga"],["textures/blocks/leaves_spruce_carried.png","./leaves_spruce_carried.tga"],["textures/blocks/reeds.png","./reeds.tga"],["textures/blocks/scaffolding_bottom.png","./scaffolding_bottom.tga"],["textures/blocks/scaffolding_side.png","./scaffolding_side.tga"],["textures/blocks/scaffolding_top.png","./scaffolding_top.tga"],["textures/blocks/seagrass_doubletall_bottom_a.png","./seagrass_doubletall_bottom_a.tga"],["textures/blocks/seagrass_doubletall_bottom_b.png","./seagrass_doubletall_bottom_b.tga"],["textures/blocks/seagrass_doubletall_top_a.png","./seagrass_doubletall_top_a.tga"],["textures/blocks/seagrass_doubletall_top_b.png","./seagrass_doubletall_top_b.tga"],["textures/blocks/stonecutter2_saw.png","./stonecutter2_saw.tga"],["textures/blocks/tallgrass.png","./tallgrass.tga",!0],["textures/blocks/tallgrass_carried.png","./tallgrass_carried.tga"],["textures/entity/blaze.png","./blaze.tga"],["textures/entity/phantom.png","./phantom.tga"],["textures/entity/banner/banner.png","./banner.tga"],["textures/entity/banner/banner_pattern_illager.png","./banner_pattern_illager.tga"],["textures/entity/cat/allblackcat_tame.png","./allblackcat_tame.tga"],["textures/entity/cat/britishshorthair_tame.png","./britishshorthair_tame.tga"],["textures/entity/cat/calico_tame.png","./calico_tame.tga"],["textures/entity/cat/graytabby_tame.png","./graytabby_tame.tga"],["textures/entity/cat/jellie_tame.png","./jellie_tame.tga"],["textures/entity/cat/ocelot_tame.png","./ocelot_tame.tga"],["textures/entity/cat/persian_tame.png","./persian_tame.tga"],["textures/entity/cat/ragdoll_tame.png","./ragdoll_tame.tga"],["textures/entity/cat/redtabby_tame.png","./redtabby_tame.tga"],["textures/entity/cat/siamesecat_tame.png","./siamesecat_tame.tga"],["textures/entity/cat/tabby_tame.png","./tabby_tame.tga"],["textures/entity/cat/tuxedo_tame.png","./tuxedo_tame.tga"],["textures/entity/cat/white_tame.png","./white_tame.tga"],["textures/entity/dragon/dragon.png","./dragon.tga"],["textures/entity/enderman/enderman.png","./enderman.tga"],["textures/entity/ghast/ghast_shooting.png","./ghast_shooting.tga"],["textures/entity/horse2/armor/horse_armor_leather.png","./horse_armor_leather.tga"],["textures/entity/sheep/sheep.png","./sheep.tga"],["textures/entity/slime/magmacube.png","./magmacube.tga"],["textures/entity/spider/cave_spider.png","./cave_spider.tga"],["textures/entity/spider/spider.png","./spider.tga"],["textures/entity/villager2/professions/armorer.png","./armorer.tga"],["textures/entity/villager2/professions/butcher.png","./butcher.tga"],["textures/entity/villager2/professions/cartographer.png","./cartographer.tga"],["textures/entity/villager2/professions/cleric.png","./cleric.tga"],["textures/entity/villager2/professions/farmer.png","./farmer.tga"],["textures/entity/villager2/professions/fisherman.png","./fisherman.tga"],["textures/entity/villager2/professions/fletcher.png","./fletcher.tga"],["textures/entity/villager2/professions/leatherworker.png","./leatherworker.tga"],["textures/entity/villager2/professions/librarian.png","./librarian.tga"],["textures/entity/villager2/professions/nitwit.png","./nitwit.tga"],["textures/entity/villager2/professions/shepherd.png","./shepherd.tga"],["textures/entity/villager2/professions/stonemason.png","./stonemason.tga"],["textures/entity/villager2/professions/toolsmith.png","./toolsmith.tga"],["textures/entity/villager2/professions/unskilled.png","./unskilled.tga"],["textures/entity/villager2/professions/weaponsmith.png","./weaponsmith.tga"],["textures/entity/wolf/wolf_tame.png","./wolf_tame.tga"],["textures/entity/zombie/drowned.png","./drowned.tga"],["textures/entity/zombie_villager2/professions/armorer.png","./armorer.tga"],["textures/entity/zombie_villager2/professions/butcher.png","./butcher.tga"],["textures/entity/zombie_villager2/professions/cartographer.png","./cartographer.tga"],["textures/entity/zombie_villager2/professions/cleric.png","./cleric.tga"],["textures/entity/zombie_villager2/professions/farmer.png","./farmer.tga"],["textures/entity/zombie_villager2/professions/fisherman.png","./fisherman.tga"],["textures/entity/zombie_villager2/professions/fletcher.png","./fletcher.tga"],["textures/entity/zombie_villager2/professions/leatherworker.png","./leatherworker.tga"],["textures/entity/zombie_villager2/professions/librarian.png","./librarian.tga"],["textures/entity/zombie_villager2/professions/nitwit.png","./nitwit.tga"],["textures/entity/zombie_villager2/professions/shepherd.png","./shepherd.tga"],["textures/entity/zombie_villager2/professions/stonemason.png","./stonemason.tga"],["textures/entity/zombie_villager2/professions/toolsmith.png","./toolsmith.tga"],["textures/entity/zombie_villager2/professions/weaponsmith.png","./weaponsmith.tga"],["textures/items/fireworks_charge.png","./fireworks_charge.tga"],["textures/items/leather_boots.png","./leather_boots.tga"],["textures/items/leather_helmet.png","./leather_helmet.tga"],["textures/items/leather_horse_armor.png","./leather_horse_armor.tga"],["textures/items/leather_leggings.png","./leather_leggings.tga"],["textures/models/armor/leather_1.png","./leather_1.tga"],["textures/models/armor/leather_2.png","./leather_2.tga"]];for(const e of t)yield e}},[]],[He,[]],[y,[]]];var on=class extends c{async input(){b.log(`Copy folder ${this.path} to ${this.temp}`),await h.a.copy(this.path,this.temp)}async name(){return g.a.basename(this.path)}},sn=n(129),an=n.n(sn);var cn=class extends c{async input(){b.log(`Extract ${this.path} to ${this.temp}`),await an()(this.path,this.temp)}async name(){return g.a.parse(this.path).name}};var un=function(t,e){if(!h.a.existsSync(t))throw new s(`The input ${t} does not exists!`);switch(g.a.extname(t).toLowerCase().substr(1)){case"zip":return new cn(t,e);default:return new on(t,e)}};var ln=class extends o{};class pn{constructor(t,e){if(this.constructor===pn)throw new ln("Can't instantiate abstract class!");this.path=t,this.temp=e}async getPath(){return this.path}async output(){}}var fn=pn;var hn=class extends fn{async output(){b.log(`Move ${this.temp} to ${this.path}`),await h.a.rename(this.temp,this.path)}},dn=n(130);var gn=class extends fn{async output(){b.log(`Pack ${this.temp} to ${this.path}`),await Object(dn.zip)(this.temp,this.path),b.log(`Clean ${this.temp}`),await h.a.remove(this.temp)}};var mn=function(t,e){if(h.a.existsSync(t))throw new ln(`The output ${t} exists already!`);switch(g.a.extname(t).toLowerCase().substr(1)){case"mcpack":case"zip":return new gn(t,e);default:return new hn(t,e)}},_n=n(44),bn=n.n(_n),yn=n(60);var vn=class extends o{};var xn=async function(t=bn.a.tmpdir()){if(b.log("Init temp folder"),!h.a.existsSync(t))throw new vn(`The temp ${t} does not exists!`);return t=b.fromPath(yn.productName,t),await h.a.remove(t),await h.a.mkdirs(t),t};e.default=async function(t,e,n={}){b.setVerbose(n.verbose);const r=await xn(n.temp),i=un(t,r),o=mn(e,r);await i.input();for await(const t of async function*(t,e){for(const[n,r]of rn)yield new n(t,e,r)}(r,i))await nn(...await t.convert());return await o.output(),await o.getPath()}},function(t,e,n){var r=n(66),i=process.cwd,o=null,s=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return o||(o=i.call(process)),o};try{process.cwd()}catch(t){}var a=process.chdir;process.chdir=function(t){o=null,a.call(process,t)},t.exports=function(t){r.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(t){t.lchmod=function(e,n,i){t.open(e,r.O_WRONLY|r.O_SYMLINK,n,function(e,r){e?i&&i(e):t.fchmod(r,n,function(e){t.close(r,function(t){i&&i(e||t)})})})},t.lchmodSync=function(e,n){var i,o=t.openSync(e,r.O_WRONLY|r.O_SYMLINK,n),s=!0;try{i=t.fchmodSync(o,n),s=!1}finally{if(s)try{t.closeSync(o)}catch(t){}else t.closeSync(o)}return i}}(t);t.lutimes||function(t){r.hasOwnProperty("O_SYMLINK")?(t.lutimes=function(e,n,i,o){t.open(e,r.O_SYMLINK,function(e,r){e?o&&o(e):t.futimes(r,n,i,function(e){t.close(r,function(t){o&&o(e||t)})})})},t.lutimesSync=function(e,n,i){var o,s=t.openSync(e,r.O_SYMLINK),a=!0;try{o=t.futimesSync(s,n,i),a=!1}finally{if(a)try{t.closeSync(s)}catch(t){}else t.closeSync(s)}return o}):(t.lutimes=function(t,e,n,r){r&&process.nextTick(r)},t.lutimesSync=function(){})}(t);t.chown=o(t.chown),t.fchown=o(t.fchown),t.lchown=o(t.lchown),t.chmod=n(t.chmod),t.fchmod=n(t.fchmod),t.lchmod=n(t.lchmod),t.chownSync=a(t.chownSync),t.fchownSync=a(t.fchownSync),t.lchownSync=a(t.lchownSync),t.chmodSync=i(t.chmodSync),t.fchmodSync=i(t.fchmodSync),t.lchmodSync=i(t.lchmodSync),t.stat=c(t.stat),t.fstat=c(t.fstat),t.lstat=c(t.lstat),t.statSync=u(t.statSync),t.fstatSync=u(t.fstatSync),t.lstatSync=u(t.lstatSync),t.lchmod||(t.lchmod=function(t,e,n){n&&process.nextTick(n)},t.lchmodSync=function(){});t.lchown||(t.lchown=function(t,e,n,r){r&&process.nextTick(r)},t.lchownSync=function(){});"win32"===s&&(t.rename=(e=t.rename,function(n,r,i){var o=Date.now(),s=0;e(n,r,function a(c){if(c&&("EACCES"===c.code||"EPERM"===c.code)&&Date.now()-o<6e4)return setTimeout(function(){t.stat(r,function(t,o){t&&"ENOENT"===t.code?e(n,r,a):i(c)})},s),void(s<100&&(s+=10));i&&i(c)})}));var e;function n(e){return e?function(n,r,i){return e.call(t,n,r,function(t){l(t)&&(t=null),i&&i.apply(this,arguments)})}:e}function i(e){return e?function(n,r){try{return e.call(t,n,r)}catch(t){if(!l(t))throw t}}:e}function o(e){return e?function(n,r,i,o){return e.call(t,n,r,i,function(t){l(t)&&(t=null),o&&o.apply(this,arguments)})}:e}function a(e){return e?function(n,r,i){try{return e.call(t,n,r,i)}catch(t){if(!l(t))throw t}}:e}function c(e){return e?function(n,r,i){function o(t,e){e&&(e.uid<0&&(e.uid+=4294967296),e.gid<0&&(e.gid+=4294967296)),i&&i.apply(this,arguments)}return"function"==typeof r&&(i=r,r=null),r?e.call(t,n,r,o):e.call(t,n,o)}:e}function u(e){return e?function(n,r){var i=r?e.call(t,n,r):e.call(t,n);return i.uid<0&&(i.uid+=4294967296),i.gid<0&&(i.gid+=4294967296),i}:e}function l(t){if(!t)return!0;if("ENOSYS"===t.code)return!0;var e=!process.getuid||0!==process.getuid();return!(!e||"EINVAL"!==t.code&&"EPERM"!==t.code)}t.read=(f=t.read,function(e,n,r,i,o,s){var a;if(s&&"function"==typeof s){var c=0;a=function(u,l,p){if(u&&"EAGAIN"===u.code&&c<10)return c++,f.call(t,e,n,r,i,o,a);s.apply(this,arguments)}}return f.call(t,e,n,r,i,o,a)}),t.readSync=(p=t.readSync,function(e,n,r,i,o){for(var s=0;;)try{return p.call(t,e,n,r,i,o)}catch(t){if("EAGAIN"===t.code&&s<10){s++;continue}throw t}});var p;var f}},function(t,e,n){var r=n(7).Stream;t.exports=function(t){return{ReadStream:function e(n,i){if(!(this instanceof e))return new e(n,i);r.call(this);var o=this;this.path=n;this.fd=null;this.readable=!0;this.paused=!1;this.flags="r";this.mode=438;this.bufferSize=65536;i=i||{};var s=Object.keys(i);for(var a=0,c=s.length;athis.end)throw new Error("start must be <= end");this.pos=this.start}if(null!==this.fd)return void process.nextTick(function(){o._read()});t.open(this.path,this.flags,this.mode,function(t,e){if(t)return o.emit("error",t),void(o.readable=!1);o.fd=e,o.emit("open",e),o._read()})},WriteStream:function e(n,i){if(!(this instanceof e))return new e(n,i);r.call(this);this.path=n;this.fd=null;this.writable=!0;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;i=i||{};var o=Object.keys(i);for(var s=0,a=o.length;s= zero");this.pos=this.start}this.busy=!1;this._queue=[];null===this.fd&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}},function(t,e,n){"use strict";t.exports=function(t){if(null===t||"object"!=typeof t)return t;if(t instanceof Object)var e={__proto__:t.__proto__};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}},function(t,e,n){"use strict";const r=n(6),i=n(1),o=n(10).mkdirsSync,s=n(69).utimesMillisSync,a=n(29);function c(t,e,n,o){if(!o.filter||o.filter(e,n))return function(t,e,n,o){const s=(o.dereference?r.statSync:r.lstatSync)(e);if(s.isDirectory())return function(t,e,n,i,o){if(!e)return function(t,e,n,i){return r.mkdirSync(n),l(e,n,i),r.chmodSync(n,t.mode)}(t,n,i,o);if(e&&!e.isDirectory())throw new Error(`Cannot overwrite non-directory '${i}' with directory '${n}'.`);return l(n,i,o)}(s,t,e,n,o);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return function(t,e,n,i,o){return e?function(t,e,n,i){if(i.overwrite)return r.unlinkSync(n),u(t,e,n,i);if(i.errorOnExist)throw new Error(`'${n}' already exists`)}(t,n,i,o):u(t,n,i,o)}(s,t,e,n,o);if(s.isSymbolicLink())return function(t,e,n,o){let s=r.readlinkSync(e);o.dereference&&(s=i.resolve(process.cwd(),s));if(t){let t;try{t=r.readlinkSync(n)}catch(t){if("EINVAL"===t.code||"UNKNOWN"===t.code)return r.symlinkSync(s,n);throw t}if(o.dereference&&(t=i.resolve(process.cwd(),t)),a.isSrcSubdir(s,t))throw new Error(`Cannot copy '${s}' to a subdirectory of itself, '${t}'.`);if(r.statSync(n).isDirectory()&&a.isSrcSubdir(t,s))throw new Error(`Cannot overwrite '${t}' with '${s}'.`);return function(t,e){return r.unlinkSync(e),r.symlinkSync(t,e)}(s,n)}return r.symlinkSync(s,n)}(t,e,n,o)}(t,e,n,o)}function u(t,e,i,o){return"function"==typeof r.copyFileSync?(r.copyFileSync(e,i),r.chmodSync(i,t.mode),o.preserveTimestamps?s(i,t.atime,t.mtime):void 0):function(t,e,i,o){const s=n(141)(65536),a=r.openSync(e,"r"),c=r.openSync(i,"w",t.mode);let u=0;for(;u(function(t,e,n,r){const o=i.join(e,t),s=i.join(n,t),{destStat:u}=a.checkPathsSync(o,s,"copy");return c(u,o,s,r)})(r,t,e,n))}t.exports=function(t,e,n){"function"==typeof n&&(n={filter:n}),(n=n||{}).clobber=!("clobber"in n&&!n.clobber),n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&"ia32"===process.arch&&console.warn("fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269");const{srcStat:s,destStat:u}=a.checkPathsSync(t,e,"copy");return a.checkParentPathsSync(t,s,e,"copy"),function(t,e,n,s){if(s.filter&&!s.filter(e,n))return;const a=i.dirname(n);return r.existsSync(a)||o(a),c(t,e,n,s)}(u,t,e,n)}},function(t,e,n){"use strict";const r=n(6),i=n(1),o=n(68).invalidWin32Path,s=parseInt("0777",8);t.exports=function t(e,n,a,c){if("function"==typeof n?(a=n,n={}):n&&"object"==typeof n||(n={mode:n}),"win32"===process.platform&&o(e)){const t=new Error(e+" contains invalid WIN32 path characters.");return t.code="EINVAL",a(t)}let u=n.mode;const l=n.fs||r;void 0===u&&(u=s&~process.umask()),c||(c=null),a=a||function(){},e=i.resolve(e),l.mkdir(e,u,r=>{if(!r)return a(null,c=c||e);switch(r.code){case"ENOENT":if(i.dirname(e)===e)return a(r);t(i.dirname(e),n,(r,i)=>{r?a(r,i):t(e,n,a,i)});break;default:l.stat(e,(t,e)=>{t||!e.isDirectory()?a(r,c):a(null,c)})}})}},function(t,e,n){"use strict";const r=n(6),i=n(1),o=n(68).invalidWin32Path,s=parseInt("0777",8);t.exports=function t(e,n,a){n&&"object"==typeof n||(n={mode:n});let c=n.mode;const u=n.fs||r;if("win32"===process.platform&&o(e)){const t=new Error(e+" contains invalid WIN32 path characters.");throw t.code="EINVAL",t}void 0===c&&(c=s&~process.umask()),a||(a=null),e=i.resolve(e);try{u.mkdirSync(e,c),a=a||e}catch(r){if("ENOENT"===r.code){if(i.dirname(e)===e)throw r;a=t(i.dirname(e),n,a),t(e,n,a)}else{let t;try{t=u.statSync(e)}catch(t){throw r}if(!t.isDirectory())throw r}}return a}},function(t,e,n){"use strict";t.exports=function(t){if("function"==typeof Buffer.allocUnsafe)try{return Buffer.allocUnsafe(t)}catch(e){return new Buffer(t)}return new Buffer(t)}},function(t,e,n){"use strict";const r=n(6),i=n(1),o=n(10).mkdirs,s=n(13).pathExists,a=n(69).utimesMillis,c=n(29);function u(t,e,n,r,a){const c=i.dirname(n);s(c,(i,s)=>i?a(i):s?p(t,e,n,r,a):void o(c,i=>i?a(i):p(t,e,n,r,a)))}function l(t,e,n,r,i,o){Promise.resolve(i.filter(n,r)).then(s=>s?t(e,n,r,i,o):o(),t=>o(t))}function p(t,e,n,r,i){return r.filter?l(f,t,e,n,r,i):f(t,e,n,r,i)}function f(t,e,n,i,o){(i.dereference?r.stat:r.lstat)(e,(s,a)=>s?o(s):a.isDirectory()?function(t,e,n,i,o,s){if(!e)return function(t,e,n,i,o){r.mkdir(n,s=>{if(s)return o(s);g(e,n,i,e=>e?o(e):r.chmod(n,t.mode,o))})}(t,n,i,o,s);if(e&&!e.isDirectory())return s(new Error(`Cannot overwrite non-directory '${i}' with directory '${n}'.`));return g(n,i,o,s)}(a,t,e,n,i,o):a.isFile()||a.isCharacterDevice()||a.isBlockDevice()?function(t,e,n,i,o,s){return e?function(t,e,n,i,o){if(!i.overwrite)return i.errorOnExist?o(new Error(`'${n}' already exists`)):o();r.unlink(n,r=>r?o(r):h(t,e,n,i,o))}(t,n,i,o,s):h(t,n,i,o,s)}(a,t,e,n,i,o):a.isSymbolicLink()?_(t,e,n,i,o):void 0)}function h(t,e,n,i,o){return"function"==typeof r.copyFile?r.copyFile(e,n,e=>e?o(e):d(t,n,i,o)):function(t,e,n,i,o){const s=r.createReadStream(e);s.on("error",t=>o(t)).once("open",()=>{const e=r.createWriteStream(n,{mode:t.mode});e.on("error",t=>o(t)).on("open",()=>s.pipe(e)).once("close",()=>d(t,n,i,o))})}(t,e,n,i,o)}function d(t,e,n,i){r.chmod(e,t.mode,r=>r?i(r):n.preserveTimestamps?a(e,t.atime,t.mtime,i):i())}function g(t,e,n,i){r.readdir(t,(r,o)=>r?i(r):m(o,t,e,n,i))}function m(t,e,n,r,o){const s=t.pop();return s?function(t,e,n,r,o,s){const a=i.join(n,e),u=i.join(r,e);c.checkPaths(a,u,"copy",(e,i)=>{if(e)return s(e);const{destStat:c}=i;p(c,a,u,o,e=>e?s(e):m(t,n,r,o,s))})}(t,s,e,n,r,o):o()}function _(t,e,n,o,s){r.readlink(e,(e,a)=>e?s(e):(o.dereference&&(a=i.resolve(process.cwd(),a)),t?void r.readlink(n,(e,u)=>e?"EINVAL"===e.code||"UNKNOWN"===e.code?r.symlink(a,n,s):s(e):(o.dereference&&(u=i.resolve(process.cwd(),u)),c.isSrcSubdir(a,u)?s(new Error(`Cannot copy '${a}' to a subdirectory of itself, '${u}'.`)):t.isDirectory()&&c.isSrcSubdir(u,a)?s(new Error(`Cannot overwrite '${u}' with '${a}'.`)):function(t,e,n){r.unlink(e,i=>i?n(i):r.symlink(t,e,n))}(a,n,s))):r.symlink(a,n,s)))}t.exports=function(t,e,n,r){"function"!=typeof n||r?"function"==typeof n&&(n={filter:n}):(r=n,n={}),r=r||function(){},(n=n||{}).clobber=!("clobber"in n&&!n.clobber),n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&"ia32"===process.arch&&console.warn("fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269"),c.checkPaths(t,e,"copy",(i,o)=>{if(i)return r(i);const{srcStat:s,destStat:a}=o;c.checkParentPaths(t,s,e,"copy",i=>i?r(i):n.filter?l(u,a,t,e,n,r):u(a,t,e,n,r))})}},function(t,e,n){"use strict";const r=n(8).fromCallback,i=n(6),o=n(1),s=n(10),a=n(30),c=r(function(t,e){e=e||function(){},i.readdir(t,(n,r)=>{if(n)return s.mkdirs(t,e);r=r.map(e=>o.join(t,e)),function t(){const n=r.pop();if(!n)return e();a.remove(n,n=>{if(n)return e(n);t()})}()})});function u(t){let e;try{e=i.readdirSync(t)}catch(e){return s.mkdirsSync(t)}e.forEach(e=>{e=o.join(t,e),a.removeSync(e)})}t.exports={emptyDirSync:u,emptydirSync:u,emptyDir:c,emptydir:c}},function(t,e,n){"use strict";const r=n(6),i=n(1),o=n(20),s="win32"===process.platform;function a(t){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(e=>{t[e]=t[e]||r[e],t[e+="Sync"]=t[e]||r[e]}),t.maxBusyTries=t.maxBusyTries||3}function c(t,e,n){let r=0;"function"==typeof e&&(n=e,e={}),o(t,"rimraf: missing path"),o.strictEqual(typeof t,"string","rimraf: path should be a string"),o.strictEqual(typeof n,"function","rimraf: callback function required"),o(e,"rimraf: invalid options argument provided"),o.strictEqual(typeof e,"object","rimraf: options should be object"),a(e),u(t,e,function i(o){if(o){if(("EBUSY"===o.code||"ENOTEMPTY"===o.code||"EPERM"===o.code)&&ru(t,e,i),100*r)}"ENOENT"===o.code&&(o=null)}n(o)})}function u(t,e,n){o(t),o(e),o("function"==typeof n),e.lstat(t,(r,i)=>r&&"ENOENT"===r.code?n(null):r&&"EPERM"===r.code&&s?l(t,e,r,n):i&&i.isDirectory()?f(t,e,r,n):void e.unlink(t,r=>{if(r){if("ENOENT"===r.code)return n(null);if("EPERM"===r.code)return s?l(t,e,r,n):f(t,e,r,n);if("EISDIR"===r.code)return f(t,e,r,n)}return n(r)}))}function l(t,e,n,r){o(t),o(e),o("function"==typeof r),n&&o(n instanceof Error),e.chmod(t,438,i=>{i?r("ENOENT"===i.code?null:n):e.stat(t,(i,o)=>{i?r("ENOENT"===i.code?null:n):o.isDirectory()?f(t,e,n,r):e.unlink(t,r)})})}function p(t,e,n){let r;o(t),o(e),n&&o(n instanceof Error);try{e.chmodSync(t,438)}catch(t){if("ENOENT"===t.code)return;throw n}try{r=e.statSync(t)}catch(t){if("ENOENT"===t.code)return;throw n}r.isDirectory()?d(t,e,n):e.unlinkSync(t)}function f(t,e,n,r){o(t),o(e),n&&o(n instanceof Error),o("function"==typeof r),e.rmdir(t,s=>{!s||"ENOTEMPTY"!==s.code&&"EEXIST"!==s.code&&"EPERM"!==s.code?s&&"ENOTDIR"===s.code?r(n):r(s):function(t,e,n){o(t),o(e),o("function"==typeof n),e.readdir(t,(r,o)=>{if(r)return n(r);let s,a=o.length;if(0===a)return e.rmdir(t,n);o.forEach(r=>{c(i.join(t,r),e,r=>{if(!s)return r?n(s=r):void(0==--a&&e.rmdir(t,n))})})})}(t,e,r)})}function h(t,e){let n;a(e=e||{}),o(t,"rimraf: missing path"),o.strictEqual(typeof t,"string","rimraf: path should be a string"),o(e,"rimraf: missing options"),o.strictEqual(typeof e,"object","rimraf: options should be object");try{n=e.lstatSync(t)}catch(n){if("ENOENT"===n.code)return;"EPERM"===n.code&&s&&p(t,e,n)}try{n&&n.isDirectory()?d(t,e,null):e.unlinkSync(t)}catch(n){if("ENOENT"===n.code)return;if("EPERM"===n.code)return s?p(t,e,n):d(t,e,n);if("EISDIR"!==n.code)throw n;d(t,e,n)}}function d(t,e,n){o(t),o(e),n&&o(n instanceof Error);try{e.rmdirSync(t)}catch(r){if("ENOTDIR"===r.code)throw n;if("ENOTEMPTY"===r.code||"EEXIST"===r.code||"EPERM"===r.code)!function(t,e){if(o(t),o(e),e.readdirSync(t).forEach(n=>h(i.join(t,n),e)),!s){const n=e.rmdirSync(t,e);return n}{const n=Date.now();do{try{const n=e.rmdirSync(t,e);return n}catch(t){}}while(Date.now()-n<500)}}(t,e);else if("ENOENT"!==r.code)throw r}}t.exports=c,c.sync=h},function(t,e,n){"use strict";const r=n(146),i=n(147),o=n(148);t.exports={createFile:r.createFile,createFileSync:r.createFileSync,ensureFile:r.createFile,ensureFileSync:r.createFileSync,createLink:i.createLink,createLinkSync:i.createLinkSync,ensureLink:i.createLink,ensureLinkSync:i.createLinkSync,createSymlink:o.createSymlink,createSymlinkSync:o.createSymlinkSync,ensureSymlink:o.createSymlink,ensureSymlinkSync:o.createSymlinkSync}},function(t,e,n){"use strict";const r=n(8).fromCallback,i=n(1),o=n(6),s=n(10),a=n(13).pathExists;t.exports={createFile:r(function(t,e){function n(){o.writeFile(t,"",t=>{if(t)return e(t);e()})}o.stat(t,(r,o)=>{if(!r&&o.isFile())return e();const c=i.dirname(t);a(c,(t,r)=>t?e(t):r?n():void s.mkdirs(c,t=>{if(t)return e(t);n()}))})}),createFileSync:function(t){let e;try{e=o.statSync(t)}catch(t){}if(e&&e.isFile())return;const n=i.dirname(t);o.existsSync(n)||s.mkdirsSync(n),o.writeFileSync(t,"")}}},function(t,e,n){"use strict";const r=n(8).fromCallback,i=n(1),o=n(6),s=n(10),a=n(13).pathExists;t.exports={createLink:r(function(t,e,n){function r(t,e){o.link(t,e,t=>{if(t)return n(t);n(null)})}a(e,(c,u)=>c?n(c):u?n(null):void o.lstat(t,o=>{if(o)return o.message=o.message.replace("lstat","ensureLink"),n(o);const c=i.dirname(e);a(c,(i,o)=>i?n(i):o?r(t,e):void s.mkdirs(c,i=>{if(i)return n(i);r(t,e)}))}))}),createLinkSync:function(t,e){if(o.existsSync(e))return;try{o.lstatSync(t)}catch(t){throw t.message=t.message.replace("lstat","ensureLink"),t}const n=i.dirname(e);return o.existsSync(n)?o.linkSync(t,e):(s.mkdirsSync(n),o.linkSync(t,e))}}},function(t,e,n){"use strict";const r=n(8).fromCallback,i=n(1),o=n(6),s=n(10),a=s.mkdirs,c=s.mkdirsSync,u=n(149),l=u.symlinkPaths,p=u.symlinkPathsSync,f=n(150),h=f.symlinkType,d=f.symlinkTypeSync,g=n(13).pathExists;t.exports={createSymlink:r(function(t,e,n,r){r="function"==typeof n?n:r,n="function"!=typeof n&&n,g(e,(s,c)=>s?r(s):c?r(null):void l(t,e,(s,c)=>{if(s)return r(s);t=c.toDst,h(c.toCwd,n,(n,s)=>{if(n)return r(n);const c=i.dirname(e);g(c,(n,i)=>n?r(n):i?o.symlink(t,e,s,r):void a(c,n=>{if(n)return r(n);o.symlink(t,e,s,r)}))})}))}),createSymlinkSync:function(t,e,n){if(o.existsSync(e))return;const r=p(t,e);t=r.toDst,n=d(r.toCwd,n);const s=i.dirname(e);return o.existsSync(s)?o.symlinkSync(t,e,n):(c(s),o.symlinkSync(t,e,n))}}},function(t,e,n){"use strict";const r=n(1),i=n(6),o=n(13).pathExists;t.exports={symlinkPaths:function(t,e,n){if(r.isAbsolute(t))return i.lstat(t,e=>e?(e.message=e.message.replace("lstat","ensureSymlink"),n(e)):n(null,{toCwd:t,toDst:t}));{const s=r.dirname(e),a=r.join(s,t);return o(a,(e,o)=>e?n(e):o?n(null,{toCwd:a,toDst:t}):i.lstat(t,e=>e?(e.message=e.message.replace("lstat","ensureSymlink"),n(e)):n(null,{toCwd:t,toDst:r.relative(s,t)})))}},symlinkPathsSync:function(t,e){let n;if(r.isAbsolute(t)){if(!(n=i.existsSync(t)))throw new Error("absolute srcpath does not exist");return{toCwd:t,toDst:t}}{const o=r.dirname(e),s=r.join(o,t);if(n=i.existsSync(s))return{toCwd:s,toDst:t};if(!(n=i.existsSync(t)))throw new Error("relative srcpath does not exist");return{toCwd:t,toDst:r.relative(o,t)}}}}},function(t,e,n){"use strict";const r=n(6);t.exports={symlinkType:function(t,e,n){if(n="function"==typeof e?e:n,e="function"!=typeof e&&e)return n(null,e);r.lstat(t,(t,r)=>{if(t)return n(null,"file");e=r&&r.isDirectory()?"dir":"file",n(null,e)})},symlinkTypeSync:function(t,e){let n;if(e)return e;try{n=r.lstatSync(t)}catch(t){return"file"}return n&&n.isDirectory()?"dir":"file"}}},function(t,e,n){"use strict";const r=n(8).fromCallback,i=n(49);i.outputJson=r(n(153)),i.outputJsonSync=n(154),i.outputJSON=i.outputJson,i.outputJSONSync=i.outputJsonSync,i.writeJSON=i.writeJson,i.writeJSONSync=i.writeJsonSync,i.readJSON=i.readJson,i.readJSONSync=i.readJsonSync,t.exports=i},function(t,e,n){var r;try{r=n(6)}catch(t){r=n(5)}function i(t,e){var n,r="\n";return"object"==typeof e&&null!==e&&(e.spaces&&(n=e.spaces),e.EOL&&(r=e.EOL)),JSON.stringify(t,e?e.replacer:null,n).replace(/\n/g,r)+r}function o(t){return Buffer.isBuffer(t)&&(t=t.toString("utf8")),t=t.replace(/^\uFEFF/,"")}var s={readFile:function(t,e,n){null==n&&(n=e,e={}),"string"==typeof e&&(e={encoding:e});var i=(e=e||{}).fs||r,s=!0;"throws"in e&&(s=e.throws),i.readFile(t,e,function(r,i){if(r)return n(r);var a;i=o(i);try{a=JSON.parse(i,e?e.reviver:null)}catch(e){return s?(e.message=t+": "+e.message,n(e)):n(null,null)}n(null,a)})},readFileSync:function(t,e){"string"==typeof(e=e||{})&&(e={encoding:e});var n=e.fs||r,i=!0;"throws"in e&&(i=e.throws);try{var s=n.readFileSync(t,e);return s=o(s),JSON.parse(s,e.reviver)}catch(e){if(i)throw e.message=t+": "+e.message,e;return null}},writeFile:function(t,e,n,o){null==o&&(o=n,n={});var s=(n=n||{}).fs||r,a="";try{a=i(e,n)}catch(t){return void(o&&o(t,null))}s.writeFile(t,a,n,o)},writeFileSync:function(t,e,n){var o=(n=n||{}).fs||r,s=i(e,n);return o.writeFileSync(t,s,n)}};t.exports=s},function(t,e,n){"use strict";const r=n(1),i=n(10),o=n(13).pathExists,s=n(49);t.exports=function(t,e,n,a){"function"==typeof n&&(a=n,n={});const c=r.dirname(t);o(c,(r,o)=>r?a(r):o?s.writeJson(t,e,n,a):void i.mkdirs(c,r=>{if(r)return a(r);s.writeJson(t,e,n,a)}))}},function(t,e,n){"use strict";const r=n(6),i=n(1),o=n(10),s=n(49);t.exports=function(t,e,n){const a=i.dirname(t);r.existsSync(a)||o.mkdirsSync(a),s.writeJsonSync(t,e,n)}},function(t,e,n){"use strict";t.exports={moveSync:n(156)}},function(t,e,n){"use strict";const r=n(6),i=n(1),o=n(67).copySync,s=n(30).removeSync,a=n(10).mkdirpSync,c=n(29);function u(t,e,n){try{r.renameSync(t,e)}catch(r){if("EXDEV"!==r.code)throw r;return function(t,e,n){return o(t,e,{overwrite:n,errorOnExist:!0}),s(t)}(t,e,n)}}t.exports=function(t,e,n){const o=(n=n||{}).overwrite||n.clobber||!1,{srcStat:l}=c.checkPathsSync(t,e,"move");return c.checkParentPathsSync(t,l,e,"move"),a(i.dirname(e)),function(t,e,n){if(n)return s(e),u(t,e,n);if(r.existsSync(e))throw new Error("dest already exists.");return u(t,e,n)}(t,e,o)}},function(t,e,n){"use strict";const r=n(8).fromCallback;t.exports={move:r(n(158))}},function(t,e,n){"use strict";const r=n(6),i=n(1),o=n(70).copy,s=n(30).remove,a=n(10).mkdirp,c=n(13).pathExists,u=n(29);function l(t,e,n,i){r.rename(t,e,r=>r?"EXDEV"!==r.code?i(r):function(t,e,n,r){o(t,e,{overwrite:n,errorOnExist:!0},e=>e?r(e):s(t,r))}(t,e,n,i):i())}t.exports=function(t,e,n,r){"function"==typeof n&&(r=n,n={});const o=n.overwrite||n.clobber||!1;u.checkPaths(t,e,"move",(n,p)=>{if(n)return r(n);const{srcStat:f}=p;u.checkParentPaths(t,f,e,"move",n=>{if(n)return r(n);a(i.dirname(e),n=>n?r(n):function(t,e,n,r){if(n)return s(e,i=>i?r(i):l(t,e,n,r));c(e,(i,o)=>i?r(i):o?r(new Error("dest already exists.")):l(t,e,n,r))}(t,e,o,r))})})}},function(t,e,n){"use strict";const r=n(8).fromCallback,i=n(6),o=n(1),s=n(10),a=n(13).pathExists;t.exports={outputFile:r(function(t,e,n,r){"function"==typeof n&&(r=n,n="utf8");const c=o.dirname(t);a(c,(o,a)=>o?r(o):a?i.writeFile(t,e,n,r):void s.mkdirs(c,o=>{if(o)return r(o);i.writeFile(t,e,n,r)}))}),outputFileSync:function(t,...e){const n=o.dirname(t);if(i.existsSync(n))return i.writeFileSync(t,...e);s.mkdirsSync(n),i.writeFileSync(t,...e)}}},function(t,e,n){"use strict";function r(t,e){if(!(t&&e&&t.length&&e.length))throw new Error("Bad alphabet");this.srcAlphabet=t,this.dstAlphabet=e}r.prototype.convert=function(t){var e,n,r,i={},o=this.srcAlphabet.length,s=this.dstAlphabet.length,a=t.length,c="string"==typeof t?"":[];if(!this.isValid(t))throw new Error('Number "'+t+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return t;for(e=0;e=s?(i[r++]=parseInt(n/s,10),n%=s):r>0&&(i[r++]=0);a=r,c=this.dstAlphabet.slice(n,n+1).concat(c)}while(0!==r);return c},r.prototype.isValid=function(t){for(var e=0;e0&&218!==r;){if(255!==t.nextUInt8())throw new Error("Invalid JPEG section offset");n=(r=t.nextUInt8())>=208&&r<=217||218===r?0:t.nextUInt16()-2,e(r,t.branch(0,n)),t.skip(n)}},getSizeFromSOFSection:function(t){return t.skip(1),{height:t.nextUInt16(),width:t.nextUInt16()}},getSectionName:function(t){var e,n;switch(t){case 216:e="SOI";break;case 196:e="DHT";break;case 219:e="DQT";break;case 221:e="DRI";break;case 218:e="SOS";break;case 254:e="COM";break;case 217:e="EOI";break;default:t>=224&&t<=239?(e="APP",n=t-224):t>=192&&t<=207&&196!==t&&200!==t&&204!==t?(e="SOF",n=t-192):t>=208&&t<=215&&(e="RST",n=t-208)}var r={name:e};return"number"==typeof n&&(r.index=n),r}}},function(t,e,n){var r=n(73),i=n(167),o=[{section:r.GPSIFD,type:2,name:"GPSLatitude",refType:1,refName:"GPSLatitudeRef",posVal:"N"},{section:r.GPSIFD,type:4,name:"GPSLongitude",refType:3,refName:"GPSLongitudeRef",posVal:"E"}],s=[{section:r.SubIFD,type:306,name:"ModifyDate"},{section:r.SubIFD,type:36867,name:"DateTimeOriginal"},{section:r.SubIFD,type:36868,name:"CreateDate"},{section:r.SubIFD,type:306,name:"ModifyDate"}];t.exports={castDegreeValues:function(t,e){o.forEach(function(n){var r=t(n);if(r){var i=t({section:n.section,type:n.refType,name:n.refName})===n.posVal?1:-1,o=(r[0]+r[1]/60+r[2]/3600)*i;e(n,o)}})},castDateValues:function(t,e){s.forEach(function(n){var r=t(n);if(r){var o=i.parseExifDate(r);void 0!==o&&e(n,o)}})},simplifyValue:function(t,e){return Array.isArray(t)&&1===(t=t.map(function(t){return 10===e||5===e?t[0]/t[1]:t})).length&&(t=t[0]),t}}},function(t,e){function n(t){return parseInt(t,10)}var r=3600,i=60;function o(t,e){t=t.map(n),e=e.map(n);var r=t[0],i=t[1]-1,o=t[2],s=e[0],a=e[1],c=e[2];return Date.UTC(r,i,o,s,a,c,0)/1e3}function s(t){var e=t.substr(0,10).split("-"),s=t.substr(11,8).split(":"),a=t.substr(19,6).split(":").map(n),c=a[0]*r+a[1]*i,u=o(e,s);if("number"==typeof(u-=c)&&!isNaN(u))return u}function a(t){var e=t.split(" "),n=o(e[0].split(":"),e[1].split(":"));if("number"==typeof n&&!isNaN(n))return n}t.exports={parseDateWithSpecFormat:a,parseDateWithTimezoneFormat:s,parseExifDate:function(t){var e=19===t.length&&":"===t.charAt(4);return 25===t.length&&"T"===t.charAt(10)?s(t):e?a(t):void 0}}},function(t,e){t.exports={exif:{1:"InteropIndex",2:"InteropVersion",11:"ProcessingSoftware",254:"SubfileType",255:"OldSubfileType",256:"ImageWidth",257:"ImageHeight",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",263:"Thresholding",264:"CellWidth",265:"CellLength",266:"FillOrder",269:"DocumentName",270:"ImageDescription",271:"Make",272:"Model",273:"StripOffsets",274:"Orientation",277:"SamplesPerPixel",278:"RowsPerStrip",279:"StripByteCounts",280:"MinSampleValue",281:"MaxSampleValue",282:"XResolution",283:"YResolution",284:"PlanarConfiguration",285:"PageName",286:"XPosition",287:"YPosition",288:"FreeOffsets",289:"FreeByteCounts",290:"GrayResponseUnit",291:"GrayResponseCurve",292:"T4Options",293:"T6Options",296:"ResolutionUnit",297:"PageNumber",300:"ColorResponseUnit",301:"TransferFunction",305:"Software",306:"ModifyDate",315:"Artist",316:"HostComputer",317:"Predictor",318:"WhitePoint",319:"PrimaryChromaticities",320:"ColorMap",321:"HalftoneHints",322:"TileWidth",323:"TileLength",324:"TileOffsets",325:"TileByteCounts",326:"BadFaxLines",327:"CleanFaxData",328:"ConsecutiveBadFaxLines",330:"SubIFD",332:"InkSet",333:"InkNames",334:"NumberofInks",336:"DotRange",337:"TargetPrinter",338:"ExtraSamples",339:"SampleFormat",340:"SMinSampleValue",341:"SMaxSampleValue",342:"TransferRange",343:"ClipPath",344:"XClipPathUnits",345:"YClipPathUnits",346:"Indexed",347:"JPEGTables",351:"OPIProxy",400:"GlobalParametersIFD",401:"ProfileType",402:"FaxProfile",403:"CodingMethods",404:"VersionYear",405:"ModeNumber",433:"Decode",434:"DefaultImageColor",435:"T82Options",437:"JPEGTables",512:"JPEGProc",513:"ThumbnailOffset",514:"ThumbnailLength",515:"JPEGRestartInterval",517:"JPEGLosslessPredictors",518:"JPEGPointTransforms",519:"JPEGQTables",520:"JPEGDCTables",521:"JPEGACTables",529:"YCbCrCoefficients",530:"YCbCrSubSampling",531:"YCbCrPositioning",532:"ReferenceBlackWhite",559:"StripRowCounts",700:"ApplicationNotes",999:"USPTOMiscellaneous",4096:"RelatedImageFileFormat",4097:"RelatedImageWidth",4098:"RelatedImageHeight",18246:"Rating",18247:"XP_DIP_XML",18248:"StitchInfo",18249:"RatingPercent",32781:"ImageID",32931:"WangTag1",32932:"WangAnnotation",32933:"WangTag3",32934:"WangTag4",32995:"Matteing",32996:"DataType",32997:"ImageDepth",32998:"TileDepth",33405:"Model2",33421:"CFARepeatPatternDim",33422:"CFAPattern2",33423:"BatteryLevel",33424:"KodakIFD",33432:"Copyright",33434:"ExposureTime",33437:"FNumber",33445:"MDFileTag",33446:"MDScalePixel",33447:"MDColorTable",33448:"MDLabName",33449:"MDSampleInfo",33450:"MDPrepDate",33451:"MDPrepTime",33452:"MDFileUnits",33550:"PixelScale",33589:"AdventScale",33590:"AdventRevision",33628:"UIC1Tag",33629:"UIC2Tag",33630:"UIC3Tag",33631:"UIC4Tag",33723:"IPTC-NAA",33918:"IntergraphPacketData",33919:"IntergraphFlagRegisters",33920:"IntergraphMatrix",33921:"INGRReserved",33922:"ModelTiePoint",34016:"Site",34017:"ColorSequence",34018:"IT8Header",34019:"RasterPadding",34020:"BitsPerRunLength",34021:"BitsPerExtendedRunLength",34022:"ColorTable",34023:"ImageColorIndicator",34024:"BackgroundColorIndicator",34025:"ImageColorValue",34026:"BackgroundColorValue",34027:"PixelIntensityRange",34028:"TransparencyIndicator",34029:"ColorCharacterization",34030:"HCUsage",34031:"TrapIndicator",34032:"CMYKEquivalent",34118:"SEMInfo",34152:"AFCP_IPTC",34232:"PixelMagicJBIGOptions",34264:"ModelTransform",34306:"WB_GRGBLevels",34310:"LeafData",34377:"PhotoshopSettings",34665:"ExifOffset",34675:"ICC_Profile",34687:"TIFF_FXExtensions",34688:"MultiProfiles",34689:"SharedData",34690:"T88Options",34732:"ImageLayer",34735:"GeoTiffDirectory",34736:"GeoTiffDoubleParams",34737:"GeoTiffAsciiParams",34850:"ExposureProgram",34852:"SpectralSensitivity",34853:"GPSInfo",34855:"ISO",34856:"Opto-ElectricConvFactor",34857:"Interlace",34858:"TimeZoneOffset",34859:"SelfTimerMode",34864:"SensitivityType",34865:"StandardOutputSensitivity",34866:"RecommendedExposureIndex",34867:"ISOSpeed",34868:"ISOSpeedLatitudeyyy",34869:"ISOSpeedLatitudezzz",34908:"FaxRecvParams",34909:"FaxSubAddress",34910:"FaxRecvTime",34954:"LeafSubIFD",36864:"ExifVersion",36867:"DateTimeOriginal",36868:"CreateDate",37121:"ComponentsConfiguration",37122:"CompressedBitsPerPixel",37377:"ShutterSpeedValue",37378:"ApertureValue",37379:"BrightnessValue",37380:"ExposureCompensation",37381:"MaxApertureValue",37382:"SubjectDistance",37383:"MeteringMode",37384:"LightSource",37385:"Flash",37386:"FocalLength",37387:"FlashEnergy",37388:"SpatialFrequencyResponse",37389:"Noise",37390:"FocalPlaneXResolution",37391:"FocalPlaneYResolution",37392:"FocalPlaneResolutionUnit",37393:"ImageNumber",37394:"SecurityClassification",37395:"ImageHistory",37396:"SubjectArea",37397:"ExposureIndex",37398:"TIFF-EPStandardID",37399:"SensingMethod",37434:"CIP3DataFile",37435:"CIP3Sheet",37436:"CIP3Side",37439:"StoNits",37500:"MakerNote",37510:"UserComment",37520:"SubSecTime",37521:"SubSecTimeOriginal",37522:"SubSecTimeDigitized",37679:"MSDocumentText",37680:"MSPropertySetStorage",37681:"MSDocumentTextPosition",37724:"ImageSourceData",40091:"XPTitle",40092:"XPComment",40093:"XPAuthor",40094:"XPKeywords",40095:"XPSubject",40960:"FlashpixVersion",40961:"ColorSpace",40962:"ExifImageWidth",40963:"ExifImageHeight",40964:"RelatedSoundFile",40965:"InteropOffset",41483:"FlashEnergy",41484:"SpatialFrequencyResponse",41485:"Noise",41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:"FocalPlaneResolutionUnit",41489:"ImageNumber",41490:"SecurityClassification",41491:"ImageHistory",41492:"SubjectLocation",41493:"ExposureIndex",41494:"TIFF-EPStandardID",41495:"SensingMethod",41728:"FileSource",41729:"SceneType",41730:"CFAPattern",41985:"CustomRendered",41986:"ExposureMode",41987:"WhiteBalance",41988:"DigitalZoomRatio",41989:"FocalLengthIn35mmFormat",41990:"SceneCaptureType",41991:"GainControl",41992:"Contrast",41993:"Saturation",41994:"Sharpness",41995:"DeviceSettingDescription",41996:"SubjectDistanceRange",42016:"ImageUniqueID",42032:"OwnerName",42033:"SerialNumber",42034:"LensInfo",42035:"LensMake",42036:"LensModel",42037:"LensSerialNumber",42112:"GDALMetadata",42113:"GDALNoData",42240:"Gamma",44992:"ExpandSoftware",44993:"ExpandLens",44994:"ExpandFilm",44995:"ExpandFilterLens",44996:"ExpandScanner",44997:"ExpandFlashLamp",48129:"PixelFormat",48130:"Transformation",48131:"Uncompressed",48132:"ImageType",48256:"ImageWidth",48257:"ImageHeight",48258:"WidthResolution",48259:"HeightResolution",48320:"ImageOffset",48321:"ImageByteCount",48322:"AlphaOffset",48323:"AlphaByteCount",48324:"ImageDataDiscard",48325:"AlphaDataDiscard",50215:"OceScanjobDesc",50216:"OceApplicationSelector",50217:"OceIDNumber",50218:"OceImageLogic",50255:"Annotations",50341:"PrintIM",50560:"USPTOOriginalContentType",50706:"DNGVersion",50707:"DNGBackwardVersion",50708:"UniqueCameraModel",50709:"LocalizedCameraModel",50710:"CFAPlaneColor",50711:"CFALayout",50712:"LinearizationTable",50713:"BlackLevelRepeatDim",50714:"BlackLevel",50715:"BlackLevelDeltaH",50716:"BlackLevelDeltaV",50717:"WhiteLevel",50718:"DefaultScale",50719:"DefaultCropOrigin",50720:"DefaultCropSize",50721:"ColorMatrix1",50722:"ColorMatrix2",50723:"CameraCalibration1",50724:"CameraCalibration2",50725:"ReductionMatrix1",50726:"ReductionMatrix2",50727:"AnalogBalance",50728:"AsShotNeutral",50729:"AsShotWhiteXY",50730:"BaselineExposure",50731:"BaselineNoise",50732:"BaselineSharpness",50733:"BayerGreenSplit",50734:"LinearResponseLimit",50735:"CameraSerialNumber",50736:"DNGLensInfo",50737:"ChromaBlurRadius",50738:"AntiAliasStrength",50739:"ShadowScale",50740:"DNGPrivateData",50741:"MakerNoteSafety",50752:"RawImageSegmentation",50778:"CalibrationIlluminant1",50779:"CalibrationIlluminant2",50780:"BestQualityScale",50781:"RawDataUniqueID",50784:"AliasLayerMetadata",50827:"OriginalRawFileName",50828:"OriginalRawFileData",50829:"ActiveArea",50830:"MaskedAreas",50831:"AsShotICCProfile",50832:"AsShotPreProfileMatrix",50833:"CurrentICCProfile",50834:"CurrentPreProfileMatrix",50879:"ColorimetricReference",50898:"PanasonicTitle",50899:"PanasonicTitle2",50931:"CameraCalibrationSig",50932:"ProfileCalibrationSig",50933:"ProfileIFD",50934:"AsShotProfileName",50935:"NoiseReductionApplied",50936:"ProfileName",50937:"ProfileHueSatMapDims",50938:"ProfileHueSatMapData1",50939:"ProfileHueSatMapData2",50940:"ProfileToneCurve",50941:"ProfileEmbedPolicy",50942:"ProfileCopyright",50964:"ForwardMatrix1",50965:"ForwardMatrix2",50966:"PreviewApplicationName",50967:"PreviewApplicationVersion",50968:"PreviewSettingsName",50969:"PreviewSettingsDigest",50970:"PreviewColorSpace",50971:"PreviewDateTime",50972:"RawImageDigest",50973:"OriginalRawFileDigest",50974:"SubTileBlockSize",50975:"RowInterleaveFactor",50981:"ProfileLookTableDims",50982:"ProfileLookTableData",51008:"OpcodeList1",51009:"OpcodeList2",51022:"OpcodeList3",51041:"NoiseProfile",51043:"TimeCodes",51044:"FrameRate",51058:"TStop",51081:"ReelName",51089:"OriginalDefaultFinalSize",51090:"OriginalBestQualitySize",51091:"OriginalDefaultCropSize",51105:"CameraLabel",51107:"ProfileHueSatMapEncoding",51108:"ProfileLookTableEncoding",51109:"BaselineExposureOffset",51110:"DefaultBlackRender",51111:"NewRawImageDigest",51112:"RawToPreviewGain",51125:"DefaultUserCrop",59932:"Padding",59933:"OffsetSchema",65000:"OwnerName",65001:"SerialNumber",65002:"Lens",65024:"KDC_IFD",65100:"RawFile",65101:"Converter",65102:"WhiteBalance",65105:"Exposure",65106:"Shadows",65107:"Brightness",65108:"Contrast",65109:"Saturation",65110:"Sharpness",65111:"Smoothness",65112:"MoireFilter"},gps:{0:"GPSVersionID",1:"GPSLatitudeRef",2:"GPSLatitude",3:"GPSLongitudeRef",4:"GPSLongitude",5:"GPSAltitudeRef",6:"GPSAltitude",7:"GPSTimeStamp",8:"GPSSatellites",9:"GPSStatus",10:"GPSMeasureMode",11:"GPSDOP",12:"GPSSpeedRef",13:"GPSSpeed",14:"GPSTrackRef",15:"GPSTrack",16:"GPSImgDirectionRef",17:"GPSImgDirection",18:"GPSMapDatum",19:"GPSDestLatitudeRef",20:"GPSDestLatitude",21:"GPSDestLongitudeRef",22:"GPSDestLongitude",23:"GPSDestBearingRef",24:"GPSDestBearing",25:"GPSDestDistanceRef",26:"GPSDestDistance",27:"GPSProcessingMethod",28:"GPSAreaInformation",29:"GPSDateStamp",30:"GPSDifferential",31:"GPSHPositioningError"}}},function(t,e){function n(t,e,n,r,i,o){this.global=i,e=e||0,n=n||t.byteLength-e,this.arrayBuffer=t.slice(e,e+n),this.view=new i.DataView(this.arrayBuffer,0,this.arrayBuffer.byteLength),this.setBigEndian(r),this.offset=0,this.parentOffset=(o||0)+e}n.prototype={setBigEndian:function(t){this.littleEndian=!t},nextUInt8:function(){var t=this.view.getUint8(this.offset);return this.offset+=1,t},nextInt8:function(){var t=this.view.getInt8(this.offset);return this.offset+=1,t},nextUInt16:function(){var t=this.view.getUint16(this.offset,this.littleEndian);return this.offset+=2,t},nextUInt32:function(){var t=this.view.getUint32(this.offset,this.littleEndian);return this.offset+=4,t},nextInt16:function(){var t=this.view.getInt16(this.offset,this.littleEndian);return this.offset+=2,t},nextInt32:function(){var t=this.view.getInt32(this.offset,this.littleEndian);return this.offset+=4,t},nextFloat:function(){var t=this.view.getFloat32(this.offset,this.littleEndian);return this.offset+=4,t},nextDouble:function(){var t=this.view.getFloat64(this.offset,this.littleEndian);return this.offset+=8,t},nextBuffer:function(t){var e=this.arrayBuffer.slice(this.offset,this.offset+t);return this.offset+=t,e},remainingLength:function(){return this.arrayBuffer.byteLength-this.offset},nextString:function(t){var e=this.arrayBuffer.slice(this.offset,this.offset+t);return e=String.fromCharCode.apply(null,new this.global.Uint8Array(e)),this.offset+=t,e},mark:function(){var t=this;return{openWithOffset:function(e){return e=(e||0)+this.offset,new n(t.arrayBuffer,e,t.arrayBuffer.byteLength-e,!t.littleEndian,t.global,t.parentOffset)},offset:this.offset,getParentOffset:function(){return t.parentOffset}}},offsetFrom:function(t){return this.parentOffset+this.offset-(t.offset+t.getParentOffset())},skip:function(t){this.offset+=t},branch:function(t,e){return e="number"==typeof e?e:this.arrayBuffer.byteLength-(this.offset+t),new n(this.arrayBuffer,this.offset+t,e,!this.littleEndian,this.global,this.parentOffset)}},t.exports=n},function(t,e){function n(t,e,n,r){this.buffer=t,this.offset=e||0,n="number"==typeof n?n:t.length,this.endPosition=this.offset+n,this.setBigEndian(r)}n.prototype={setBigEndian:function(t){this.bigEndian=!!t},nextUInt8:function(){var t=this.buffer.readUInt8(this.offset);return this.offset+=1,t},nextInt8:function(){var t=this.buffer.readInt8(this.offset);return this.offset+=1,t},nextUInt16:function(){var t=this.bigEndian?this.buffer.readUInt16BE(this.offset):this.buffer.readUInt16LE(this.offset);return this.offset+=2,t},nextUInt32:function(){var t=this.bigEndian?this.buffer.readUInt32BE(this.offset):this.buffer.readUInt32LE(this.offset);return this.offset+=4,t},nextInt16:function(){var t=this.bigEndian?this.buffer.readInt16BE(this.offset):this.buffer.readInt16LE(this.offset);return this.offset+=2,t},nextInt32:function(){var t=this.bigEndian?this.buffer.readInt32BE(this.offset):this.buffer.readInt32LE(this.offset);return this.offset+=4,t},nextFloat:function(){var t=this.bigEndian?this.buffer.readFloatBE(this.offset):this.buffer.readFloatLE(this.offset);return this.offset+=4,t},nextDouble:function(){var t=this.bigEndian?this.buffer.readDoubleBE(this.offset):this.buffer.readDoubleLE(this.offset);return this.offset+=8,t},nextBuffer:function(t){var e=this.buffer.slice(this.offset,this.offset+t);return this.offset+=t,e},remainingLength:function(){return this.endPosition-this.offset},nextString:function(t){var e=this.buffer.toString("utf8",this.offset,this.offset+t);return this.offset+=t,e},mark:function(){var t=this;return{openWithOffset:function(e){return e=(e||0)+this.offset,new n(t.buffer,e,t.endPosition-e,t.bigEndian)},offset:this.offset}},offsetFrom:function(t){return this.offset-t.offset},skip:function(t){this.offset+=t},branch:function(t,e){return e="number"==typeof e?e:this.endPosition-(this.offset+t),new n(this.buffer,this.offset+t,e,this.bigEndian)}},t.exports=n},function(t,e){function n(t){Math.round;var e,n,r,i,o,s=Math.floor,a=new Array(64),c=new Array(64),u=new Array(64),l=new Array(64),p=new Array(65535),f=new Array(65535),h=new Array(64),d=new Array(64),g=[],m=0,_=7,b=new Array(64),y=new Array(64),v=new Array(64),x=new Array(256),w=new Array(2048),k=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],E=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],D=[0,1,2,3,4,5,6,7,8,9,10,11],S=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],O=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],C=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],A=[0,1,2,3,4,5,6,7,8,9,10,11],I=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],T=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function P(t,e){for(var n=0,r=0,i=new Array,o=1;o<=16;o++){for(var s=1;s<=t[o];s++)i[e[r]]=[],i[e[r]][0]=n,i[e[r]][1]=o,r++,n++;n*=2}return i}function B(t){for(var e=t[0],n=t[1]-1;n>=0;)e&1<>8&255),F(255&t)}function L(t,e,n,r,i){for(var o,s=i[0],a=i[240],c=function(t,e){var n,r,i,o,s,a,c,u,l,p,f=0;for(l=0;l<8;++l){n=t[f],r=t[f+1],i=t[f+2],o=t[f+3],s=t[f+4],a=t[f+5],c=t[f+6];var d=n+(u=t[f+7]),g=n-u,m=r+c,_=r-c,b=i+a,y=i-a,v=o+s,x=o-s,w=d+v,k=d-v,E=m+b,D=m-b;t[f]=w+E,t[f+4]=w-E;var S=.707106781*(D+k);t[f+2]=k+S,t[f+6]=k-S;var O=.382683433*((w=x+y)-(D=_+g)),C=.5411961*w+O,A=1.306562965*D+O,I=.707106781*(E=y+_),T=g+I,P=g-I;t[f+5]=P+C,t[f+3]=P-C,t[f+1]=T+A,t[f+7]=T-A,f+=8}for(f=0,l=0;l<8;++l){n=t[f],r=t[f+8],i=t[f+16],o=t[f+24],s=t[f+32],a=t[f+40],c=t[f+48];var B=n+(u=t[f+56]),F=n-u,j=r+c,L=r-c,M=i+a,N=i-a,z=o+s,R=o-s,U=B+z,G=B-z,H=j+M,$=j-M;t[f]=U+H,t[f+32]=U-H;var W=.707106781*($+G);t[f+16]=G+W,t[f+48]=G-W;var q=.382683433*((U=R+N)-($=L+F)),V=.5411961*U+q,Y=1.306562965*$+q,Z=.707106781*(H=N+L),X=F+Z,Q=F-Z;t[f+40]=Q+V,t[f+24]=Q-V,t[f+8]=X+Y,t[f+56]=X-Y,f++}for(l=0;l<64;++l)p=t[l]*e[l],h[l]=p>0?p+.5|0:p-.5|0;return h}(t,e),u=0;u<64;++u)d[k[u]]=c[u];var l=d[0]-n;n=d[0],0==l?B(r[0]):(B(r[f[o=32767+l]]),B(p[o]));for(var g=63;g>0&&0==d[g];g--);if(0==g)return B(s),n;for(var m,_=1;_<=g;){for(var b=_;0==d[_]&&_<=g;++_);var y=_-b;if(y>=16){m=y>>4;for(var v=1;v<=m;++v)B(a);y&=15}o=32767+d[_],B(i[(y<<4)+f[o]]),B(p[o]),_++}return 63!=g&&B(s),n}function M(t){if(t<=0&&(t=1),t>100&&(t=100),o!=t){(function(t){for(var e=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],n=0;n<64;n++){var r=s((e[n]*t+50)/100);r<1?r=1:r>255&&(r=255),a[k[n]]=r}for(var i=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],o=0;o<64;o++){var p=s((i[o]*t+50)/100);p<1?p=1:p>255&&(p=255),c[k[o]]=p}for(var f=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],h=0,d=0;d<8;d++)for(var g=0;g<8;g++)u[h]=1/(a[k[h]]*f[d]*f[g]*8),l[h]=1/(c[k[h]]*f[d]*f[g]*8),h++})(t<50?Math.floor(5e3/t):Math.floor(200-2*t)),o=t}}this.encode=function(t,o){(new Date).getTime();o&&M(o),g=new Array,m=0,_=7,j(65496),j(65504),j(16),F(74),F(70),F(73),F(70),F(0),F(1),F(1),F(0),j(1),j(1),F(0),F(0),function(){j(65499),j(132),F(0);for(var t=0;t<64;t++)F(a[t]);F(1);for(var e=0;e<64;e++)F(c[e])}(),function(t,e){j(65472),j(17),F(8),j(e),j(t),F(3),F(1),F(17),F(0),F(2),F(17),F(1),F(3),F(17),F(1)}(t.width,t.height),function(){j(65476),j(418),F(0);for(var t=0;t<16;t++)F(E[t+1]);for(var e=0;e<=11;e++)F(D[e]);F(16);for(var n=0;n<16;n++)F(S[n+1]);for(var r=0;r<=161;r++)F(O[r]);F(1);for(var i=0;i<16;i++)F(C[i+1]);for(var o=0;o<=11;o++)F(A[o]);F(17);for(var s=0;s<16;s++)F(I[s+1]);for(var a=0;a<=161;a++)F(T[a])}(),j(65498),j(12),F(3),F(1),F(0),F(2),F(17),F(3),F(17),F(0),F(63),F(0);var s=0,p=0,f=0;m=0,_=7,this.encode.displayName="_encode_";for(var h,d,x,k,P,N,z,R,U,G=t.data,H=t.width,$=t.height,W=4*H,q=0;q<$;){for(h=0;h>3)*W+(z=4*(7&U)),q+R>=$&&(N-=W*(q+1+R-$)),h+z>=W&&(N-=h+z-W+4),d=G[N++],x=G[N++],k=G[N++],b[U]=(w[d]+w[x+256>>0]+w[k+512>>0]>>16)-128,y[U]=(w[d+768>>0]+w[x+1024>>0]+w[k+1280>>0]>>16)-128,v[U]=(w[d+1280>>0]+w[x+1536>>0]+w[k+1792>>0]>>16)-128;s=L(b,u,s,e,r),p=L(y,l,p,n,i),f=L(v,l,f,n,i),h+=32}q+=8}if(_>=0){var V=[];V[1]=_+1,V[0]=(1<<_+1)-1,B(V)}return j(65497),new Buffer(g)},function(){(new Date).getTime();t||(t=50),function(){for(var t=String.fromCharCode,e=0;e<256;e++)x[e]=t(e)}(),e=P(E,D),n=P(C,A),r=P(S,O),i=P(I,T),function(){for(var t=1,e=2,n=1;n<=15;n++){for(var r=t;r>0]=38470*t,w[t+512>>0]=7471*t+32768,w[t+768>>0]=-11059*t,w[t+1024>>0]=-21709*t,w[t+1280>>0]=32768*t+8421375,w[t+1536>>0]=-27439*t,w[t+1792>>0]=-5329*t}(),M(t),(new Date).getTime()}()}t.exports=function(t,e){void 0===e&&(e=50);return{data:new n(e).encode(t,e),width:t.width,height:t.height}}},function(t,e){var n=function(){"use strict";var t=new Int32Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),e=4017,n=799,r=3406,i=2276,o=1567,s=3784,a=5793,c=2896;function u(){}function l(t,e){for(var n,r,i=0,o=[],s=16;s>0&&!t[s-1];)s--;o.push({children:[],index:0});var a,c=o[0];for(n=0;n0;)c=o.pop();for(c.index++,o.push(c);o.length<=n;)o.push(a={children:[],index:0}),c.children[c.index]=a.children,c=a;i++}n+10)return h>>--d&1;if(255==(h=e[n++])){var t=e[n++];if(t)throw new Error("unexpected marker: "+(h<<8|t).toString(16))}return d=7,h>>>7}function m(t){for(var e,n=t;null!==(e=g());){if("number"==typeof(n=n[e]))return n;if("object"!=typeof n)throw new Error("invalid huffman sequence")}return null}function _(t){for(var e=0;t>0;){var n=g();if(null===n)return;e=e<<1|n,t--}return e}function b(t){var e=_(t);return e>=1<0)y--;else for(var r=s,i=a;r<=i;){var o=m(e.huffmanTableAC),c=15&o,l=o>>4;if(0!==c)n[t[r+=l]]=b(c)*(1<>4,0===f)o<15?(y=_(o)+(1<>4;if(0!==a)n[t[o+=c]]=b(a),o++;else{if(c<15)break;o+=16}}};var T,P,B,F,j=0;for(P=1==I?i[0].blocksPerLine*i[0].blocksPerColumn:l*r.mcusPerColumn,o||(o=P);j=65488&&T<=65495))break;n+=2}return n-f}function f(t,u){var l,p,f=[],h=u.blocksPerLine,d=u.blocksPerColumn,g=h<<3,m=new Int32Array(64),_=new Uint8Array(64);function b(t,l,p){var f,h,d,g,m,_,b,y,v,x,w=u.quantizationTable,k=p;for(x=0;x<64;x++)k[x]=t[x]*w[x];for(x=0;x<8;++x){var E=8*x;0!=k[1+E]||0!=k[2+E]||0!=k[3+E]||0!=k[4+E]||0!=k[5+E]||0!=k[6+E]||0!=k[7+E]?(f=a*k[0+E]+128>>8,h=a*k[4+E]+128>>8,d=k[2+E],g=k[6+E],m=c*(k[1+E]-k[7+E])+128>>8,y=c*(k[1+E]+k[7+E])+128>>8,_=k[3+E]<<4,b=k[5+E]<<4,v=f-h+1>>1,f=f+h+1>>1,h=v,v=d*s+g*o+128>>8,d=d*o-g*s+128>>8,g=v,v=m-b+1>>1,m=m+b+1>>1,b=v,v=y+_+1>>1,_=y-_+1>>1,y=v,v=f-g+1>>1,f=f+g+1>>1,g=v,v=h-d+1>>1,h=h+d+1>>1,d=v,v=m*i+y*r+2048>>12,m=m*r-y*i+2048>>12,y=v,v=_*n+b*e+2048>>12,_=_*e-b*n+2048>>12,b=v,k[0+E]=f+y,k[7+E]=f-y,k[1+E]=h+b,k[6+E]=h-b,k[2+E]=d+_,k[5+E]=d-_,k[3+E]=g+m,k[4+E]=g-m):(v=a*k[0+E]+512>>10,k[0+E]=v,k[1+E]=v,k[2+E]=v,k[3+E]=v,k[4+E]=v,k[5+E]=v,k[6+E]=v,k[7+E]=v)}for(x=0;x<8;++x){var D=x;0!=k[8+D]||0!=k[16+D]||0!=k[24+D]||0!=k[32+D]||0!=k[40+D]||0!=k[48+D]||0!=k[56+D]?(f=a*k[0+D]+2048>>12,h=a*k[32+D]+2048>>12,d=k[16+D],g=k[48+D],m=c*(k[8+D]-k[56+D])+2048>>12,y=c*(k[8+D]+k[56+D])+2048>>12,_=k[24+D],b=k[40+D],v=f-h+1>>1,f=f+h+1>>1,h=v,v=d*s+g*o+2048>>12,d=d*o-g*s+2048>>12,g=v,v=m-b+1>>1,m=m+b+1>>1,b=v,v=y+_+1>>1,_=y-_+1>>1,y=v,v=f-g+1>>1,f=f+g+1>>1,g=v,v=h-d+1>>1,h=h+d+1>>1,d=v,v=m*i+y*r+2048>>12,m=m*r-y*i+2048>>12,y=v,v=_*n+b*e+2048>>12,_=_*e-b*n+2048>>12,b=v,k[0+D]=f+y,k[56+D]=f-y,k[8+D]=h+b,k[48+D]=h-b,k[16+D]=d+_,k[40+D]=d-_,k[24+D]=g+m,k[32+D]=g-m):(v=a*p[x+0]+8192>>14,k[0+D]=v,k[8+D]=v,k[16+D]=v,k[24+D]=v,k[32+D]=v,k[40+D]=v,k[48+D]=v,k[56+D]=v)}for(x=0;x<64;++x){var S=128+(k[x]+8>>4);l[x]=S<0?0:S>255?255:S}}for(var y=0;y255?255:t}return u.prototype={load:function(t){var e=new XMLHttpRequest;e.open("GET",t,!0),e.responseType="arraybuffer",e.onload=function(){var t=new Uint8Array(e.response||e.mozResponseArrayBuffer);this.parse(t),this.onload&&this.onload()}.bind(this),e.send(null)},parse:function(e){var n=0;e.length;function r(){var t=e[n]<<8|e[n+1];return n+=2,t}function i(){var t=r(),i=e.subarray(n,n+t-2);return n+=i.length,i}function o(t){var e,n,r=0,i=0;for(n in t.components)t.components.hasOwnProperty(n)&&(r<(e=t.components[n]).h&&(r=e.h),i>4==0)for(U=0;U<64;U++){x[t[U]]=e[n++]}else{if(v>>4!=1)throw new Error("DQT: invalid table spec");for(U=0;U<64;U++){x[t[U]]=r()}}h[15&v]=x}break;case 65472:case 65473:case 65474:r(),(s={}).extended=65473===_,s.progressive=65474===_,s.precision=e[n++],s.scanLines=r(),s.samplesPerLine=r(),s.components={},s.componentsOrder=[];var w,k=e[n++];for(z=0;z>4,D=15&e[n+1],S=e[n+2];s.componentsOrder.push(w),s.components[w]={h:E,v:D,quantizationIdx:S},n+=3}o(s),d.push(s);break;case 65476:var O=r();for(z=2;z>4==0?m:g)[15&C]=l(A,T)}break;case 65501:r(),a=r();break;case 65498:r();var P=e[n++],B=[];for(z=0;z>4],G.huffmanTableAC=g[15&F],B.push(G)}var j=e[n++],L=e[n++],M=e[n++],N=p(e,n,s,B,a,j,L,M>>4,15&M);n+=N;break;case 65535:255!==e[n]&&n--;break;default:if(255==e[n-3]&&e[n-2]>=192&&e[n-2]<=254){n-=3;break}throw new Error("unknown JPEG marker "+_.toString(16))}_=r()}if(1!=d.length)throw new Error("only single frame JPEGs supported");for(var z=0;z>3))*this._bitmapInfo.height,n=Math.max(e,i.Z_MIN_CHUNK);this._inflate=i.createInflate({chunkSize:n});var r=e,o=this.emit.bind(this,"error");this._inflate.on("error",function(t){r&&o(t)}),this._filter.on("complete",this._complete.bind(this));var s=this._filter.write.bind(this._filter);this._inflate.on("data",function(t){r&&(t.length>r&&(t=t.slice(0,r)),r-=t.length,s(t))}),this._inflate.on("end",this._filter.end.bind(this._filter))}this._inflate.write(t)},l.prototype._handleMetaData=function(t){this._metaData=t,this._bitmapInfo=Object.create(t),this._filter=new s(this._bitmapInfo)},l.prototype._handleTransColor=function(t){this._bitmapInfo.transColor=t},l.prototype._handlePalette=function(t){this._bitmapInfo.palette=t},l.prototype._simpleTransparency=function(){this._metaData.alpha=!0},l.prototype._headersFinished=function(){this.emit("metadata",this._metaData)},l.prototype._finished=function(){this.errord||(this._inflate?this._inflate.end():this.emit("error","No Inflate block"),this.destroySoon())},l.prototype._complete=function(t){if(!this.errord){try{var e=c.dataToBitMap(t,this._bitmapInfo),n=u(e,this._bitmapInfo);e=null}catch(t){return void this._handleError(t)}this.emit("parsed",n)}}},function(t,e,n){"use strict";var r=n(3),i=n(74),o=n(75),s=t.exports=function(t){i.call(this);var e=[],n=this;this._filter=new o(t,{read:this.read.bind(this),write:function(t){e.push(t)},complete:function(){n.emit("complete",Buffer.concat(e))}}),this._filter.start()};r.inherits(s,i)},function(t,e,n){"use strict";var r=n(3),i=n(7),o=n(21),s=n(82),a=t.exports=function(t){i.call(this);var e=t||{};this._packer=new s(e),this._deflate=this._packer.createDeflate(),this.readable=!0};r.inherits(a,i),a.prototype.pack=function(t,e,n,r){this.emit("data",new Buffer(o.PNG_SIGNATURE)),this.emit("data",this._packer.packIHDR(e,n)),r&&this.emit("data",this._packer.packGAMA(r));var i=this._packer.filterData(t,e,n);this._deflate.on("error",this.emit.bind(this,"error")),this._deflate.on("data",function(t){this.emit("data",this._packer.packIDAT(t))}.bind(this)),this._deflate.on("end",function(){this.emit("data",this._packer.packIEND()),this.emit("end")}.bind(this)),this._deflate.end(i)}},function(t,e,n){"use strict";var r=n(21);t.exports=function(t,e,n,i){var o,s=-1!==[r.COLORTYPE_COLOR_ALPHA,r.COLORTYPE_ALPHA].indexOf(i.colorType);if(i.colorType===i.inputColorType){var a=(o=new ArrayBuffer(2),new DataView(o).setInt16(0,256,!0),256!==new Int16Array(o)[0]);if(8===i.bitDepth||16===i.bitDepth&&a)return t}var c=16!==i.bitDepth?t:new Uint16Array(t.buffer),u=255,l=r.COLORTYPE_TO_BPP_MAP[i.inputColorType];4!==l||i.inputHasAlpha||(l=3);var p=r.COLORTYPE_TO_BPP_MAP[i.colorType];16===i.bitDepth&&(u=65535,p*=2);var f=new Buffer(e*n*p),h=0,d=0,g=i.bgColor||{};function m(){var t,e,n,o=u;switch(i.inputColorType){case r.COLORTYPE_COLOR_ALPHA:o=c[h+3],t=c[h],e=c[h+1],n=c[h+2];break;case r.COLORTYPE_COLOR:t=c[h],e=c[h+1],n=c[h+2];break;case r.COLORTYPE_ALPHA:o=c[h+1],e=t=c[h],n=t;break;case r.COLORTYPE_GRAYSCALE:e=t=c[h],n=t;break;default:throw new Error("input color type:"+i.inputColorType+" is not supported at present")}return i.inputHasAlpha&&(s||(o/=u,t=Math.min(Math.max(Math.round((1-o)*g.red+o*t),0),u),e=Math.min(Math.max(Math.round((1-o)*g.green+o*e),0),u),n=Math.min(Math.max(Math.round((1-o)*g.blue+o*n),0),u))),{red:t,green:e,blue:n,alpha:o}}void 0===g.red&&(g.red=u),void 0===g.green&&(g.green=u),void 0===g.blue&&(g.blue=u);for(var _=0;_=o?t[e+s-o]:0,c=t[e+s]-a;r[i+s]=c}},2:function(t,e,n,r,i){for(var o=0;o0?t[e+o-n]:0,a=t[e+o]-s;r[i+o]=a}},3:function(t,e,n,r,i,o){for(var s=0;s=o?t[e+s-o]:0,c=e>0?t[e+s-n]:0,u=t[e+s]-(a+c>>1);r[i+s]=u}},4:function(t,e,n,i,o,s){for(var a=0;a=s?t[e+a-s]:0,u=e>0?t[e+a-n]:0,l=e>0&&a>=s?t[e+a-(n+s)]:0,p=t[e+a]-r(c,u,l);i[o+a]=p}}},o={0:function(t,e,n){for(var r=0,i=e+n,o=e;o=r?t[e+o-r]:0,a=t[e+o]-s;i+=Math.abs(a)}return i},2:function(t,e,n){for(var r=0,i=e+n,o=e;o0?t[o-n]:0,a=t[o]-s;r+=Math.abs(a)}return r},3:function(t,e,n,r){for(var i=0,o=0;o=r?t[e+o-r]:0,a=e>0?t[e+o-n]:0,c=t[e+o]-(s+a>>1);i+=Math.abs(c)}return i},4:function(t,e,n,i){for(var o=0,s=0;s=i?t[e+s-i]:0,c=e>0?t[e+s-n]:0,u=e>0&&s>=i?t[e+s-(n+i)]:0,l=t[e+s]-r(a,c,u);o+=Math.abs(l)}return o}};t.exports=function(t,e,n,r,s){var a;if("filterType"in r&&-1!==r.filterType){if("number"!=typeof r.filterType)throw new Error("unrecognised filter types");a=[r.filterType]}else a=[0,1,2,3,4];16===r.bitDepth&&(s*=2);for(var c=e*s,u=0,l=0,p=new Buffer((c+1)*n),f=a[0],h=0;h1)for(var d=1/0,g=0;g>3))*p.height;g=o(m,{chunkSize:_,maxLength:_})}if(m=null,!g||!g.length)throw new Error("bad png - invalid inflate data response");var b=a.process(g,p);m=null;var y=u.dataToBitMap(b,p);b=null;var v=l(y,p);return p.data=v,p.gamma=f||0,p}},function(t,e,n){"use strict";var r=n(20).ok,i=n(12),o=n(3),s=n(4).kMaxLength;function a(t){if(!(this instanceof a))return new a(t);t&&t.chunkSize=0,"have should not go down"),n>0){var i=a._buffer.slice(a._offset,a._offset+n);if(a._offset+=n,i.length>p&&(i=i.slice(0,p)),h.push(i),d+=i.length,0===(p-=i.length))return!1}return(0===e||a._offset>=a._chunkSize)&&(l=a._chunkSize,a._offset=0,a._buffer=Buffer.allocUnsafe(a._chunkSize)),0===e&&(f+=u-t,u=t,!0)}}this.on("error",function(t){o=t}),r(this._handle,"zlib binding closed");do{var m=this._handle.writeSync(e,t,f,u,this._buffer,this._offset,l);m=m||this._writeState}while(!this._hadError&&g(m[0],m[1]));if(this._hadError)throw o;if(d>=s)throw c(this),new RangeError("Cannot create final Buffer. It would be larger than 0x"+s.toString(16)+" bytes");var _=Buffer.concat(h,d);return c(this),_},o.inherits(a,i.Inflate),t.exports=e=u,e.Inflate=a,e.createInflate=function(t){return new a(t)},e.inflateSync=u},function(t,e,n){"use strict";var r=n(83),i=n(75);e.process=function(t,e){var n=[],o=new r(t);return new i(e,{read:o.read.bind(o),write:function(t){n.push(t)},complete:function(){}}).start(),o.process(),Buffer.concat(n)}},function(t,e,n){"use strict";var r=!0,i=n(12);i.deflateSync||(r=!1);var o=n(21),s=n(82);t.exports=function(t,e){if(!r)throw new Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");var n=new s(e||{}),a=[];a.push(new Buffer(o.PNG_SIGNATURE)),a.push(n.packIHDR(t.width,t.height)),t.gamma&&a.push(n.packGAMA(t.gamma));var c=n.filterData(t.data,t.width,t.height),u=i.deflateSync(c,n.getDeflateOptions());if(c=null,!u||!u.length)throw new Error("bad png - invalid compressed data response");return a.push(n.packIDAT(u)),a.push(n.packIEND()),Buffer.concat(a)}},function(t,e){function n(t){this.buffer=t.data,this.width=t.width,this.height=t.height,this.extraBytes=this.width%4,this.rgbSize=this.height*(3*this.width+this.extraBytes),this.headerInfoSize=40,this.data=[],this.flag="BM",this.reserved=0,this.offset=54,this.fileSize=this.rgbSize+this.offset,this.planes=1,this.bitPP=24,this.compress=0,this.hr=0,this.vr=0,this.colors=0,this.importantColors=0}n.prototype.encode=function(){var t=new Buffer(this.offset+this.rgbSize);this.pos=0,t.write(this.flag,this.pos,2),this.pos+=2,t.writeUInt32LE(this.fileSize,this.pos),this.pos+=4,t.writeUInt32LE(this.reserved,this.pos),this.pos+=4,t.writeUInt32LE(this.offset,this.pos),this.pos+=4,t.writeUInt32LE(this.headerInfoSize,this.pos),this.pos+=4,t.writeUInt32LE(this.width,this.pos),this.pos+=4,t.writeInt32LE(-this.height,this.pos),this.pos+=4,t.writeUInt16LE(this.planes,this.pos),this.pos+=2,t.writeUInt16LE(this.bitPP,this.pos),this.pos+=2,t.writeUInt32LE(this.compress,this.pos),this.pos+=4,t.writeUInt32LE(this.rgbSize,this.pos),this.pos+=4,t.writeUInt32LE(this.hr,this.pos),this.pos+=4,t.writeUInt32LE(this.vr,this.pos),this.pos+=4,t.writeUInt32LE(this.colors,this.pos),this.pos+=4,t.writeUInt32LE(this.importantColors,this.pos),this.pos+=4;for(var e=0,n=3*this.width+this.extraBytes,r=0;r0){var s=this.pos+r*n+3*this.width;t.fill(0,s,s+this.extraBytes)}}return t},t.exports=function(t,e){return void 0===e&&(e=100),{data:new n(t).encode(),width:t.width,height:t.height}}},function(t,e){function n(t,e){if(this.pos=0,this.buffer=t,this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=this.buffer.toString("utf-8",0,this.pos+=2),"BM"!=this.flag)throw new Error("Invalid BMP File");this.parseHeader(),this.parseRGBA()}n.prototype.parseHeader=function(){if(this.fileSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.reserved=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.offset=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.headerSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.width=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.height=this.buffer.readInt32LE(this.pos),this.pos+=4,this.planes=this.buffer.readUInt16LE(this.pos),this.pos+=2,this.bitPP=this.buffer.readUInt16LE(this.pos),this.pos+=2,this.compress=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.rawSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.hr=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.vr=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.colors=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.importantColors=this.buffer.readUInt32LE(this.pos),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=0===this.colors?1<=0?this.height-1:-this.height;for(n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i>7-a&1];this.data[s+4*a]=0,this.data[s+4*a+1]=c.blue,this.data[s+4*a+2]=c.green,this.data[s+4*a+3]=c.red}0!=e&&(this.pos+=4-e)}},n.prototype.bit4=function(){if(2==this.compress){this.data.fill(255);for(var t=0,e=this.bottom_up?this.height-1:0,n=!1;t>4),1&c&&c+1>1&1)&&this.pos++}}else for(c=0;c>4),n=!n}function u(e){var n=this.palette[e];this.data[t]=0,this.data[t+1]=n.blue,this.data[t+2]=n.green,this.data[t+3]=n.red,t+=4}}else{var l=Math.ceil(this.width/2),p=l%4;for(s=this.height-1;s>=0;s--){var f=this.bottom_up?s:this.height-1-s;for(o=0;o>4,d=15&i,g=this.palette[h];if(this.data[t]=0,this.data[t+1]=g.blue,this.data[t+2]=g.green,this.data[t+3]=g.red,2*o+1>=this.width)break;g=this.palette[d],this.data[t+4]=0,this.data[t+4+1]=g.blue,this.data[t+4+2]=g.green,this.data[t+4+3]=g.red}0!=p&&(this.pos+=4-p)}}},n.prototype.bit8=function(){if(1==this.compress){this.data.fill(255);for(var t=0,e=this.bottom_up?this.height-1:0;t=0;o--){var l=this.bottom_up?o:this.height-1-o;for(i=0;i=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i>5&e)/e*255|0,c=(o>>10&e)/e*255|0,u=o>>15?255:0,l=r*this.width*4+4*i;this.data[l]=u,this.data[l+1]=s,this.data[l+2]=a,this.data[l+3]=c}this.pos+=t}},n.prototype.bit16=function(){var t=this.width%2*2;this.maskRed=31744,this.maskGreen=992,this.maskBlue=31,this.mask0=0,3==this.compress&&(this.maskRed=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.maskGreen=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.maskBlue=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.mask0=this.buffer.readUInt32LE(this.pos),this.pos+=4);for(var e=[0,0,0],n=0;n<16;n++)this.maskRed>>n&1&&e[0]++,this.maskGreen>>n&1&&e[1]++,this.maskBlue>>n&1&&e[2]++;e[1]+=e[0],e[2]+=e[1],e[0]=8-e[0],e[1]-=8,e[2]-=8;for(var r=this.height-1;r>=0;r--){for(var i=this.bottom_up?r:this.height-1-r,o=0;o>e[1],u=(s&this.maskRed)>>e[2],l=i*this.width*4+4*o;this.data[l]=0,this.data[l+1]=a,this.data[l+2]=c,this.data[l+3]=u}this.pos+=t}},n.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,n=0;n=0;t--)for(var e=this.bottom_up?t:this.height-1-t,n=0;n=0;t--)for(e=this.bottom_up?t:this.height-1-t,n=0;n0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(n!==u)throw new Error(s[n]);if(e.header&&r.deflateSetHeader(this.strm,e.header),e.dictionary){var d;if(d="string"==typeof e.dictionary?o.string2buf(e.dictionary):"[object ArrayBuffer]"===c.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(n=r.deflateSetDictionary(this.strm,d))!==u)throw new Error(s[n]);this._dict_set=!0}}function d(t,e){var n=new h(e);if(n.push(t,!0),n.err)throw n.msg||s[n.err];return n.result}h.prototype.push=function(t,e){var n,s,a=this.strm,l=this.options.chunkSize;if(this.ended)return!1;s=e===~~e?e:!0===e?4:0,"string"==typeof t?a.input=o.string2buf(t):"[object ArrayBuffer]"===c.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;do{if(0===a.avail_out&&(a.output=new i.Buf8(l),a.next_out=0,a.avail_out=l),1!==(n=r.deflate(a,s))&&n!==u)return this.onEnd(n),this.ended=!0,!1;0!==a.avail_out&&(0!==a.avail_in||4!==s&&2!==s)||("string"===this.options.to?this.onData(o.buf2binstring(i.shrinkBuf(a.output,a.next_out))):this.onData(i.shrinkBuf(a.output,a.next_out)))}while((a.avail_in>0||0===a.avail_out)&&1!==n);return 4===s?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===u):2!==s||(this.onEnd(u),a.avail_out=0,!0)},h.prototype.onData=function(t){this.chunks.push(t)},h.prototype.onEnd=function(t){t===u&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Deflate=h,e.deflate=d,e.deflateRaw=function(t,e){return(e=e||{}).raw=!0,d(t,e)},e.gzip=function(t,e){return(e=e||{}).gzip=!0,d(t,e)}},function(t,e,n){"use strict";var r,i=n(14),o=n(188),s=n(84),a=n(85),c=n(50),u=0,l=1,p=3,f=4,h=5,d=0,g=1,m=-2,_=-3,b=-5,y=-1,v=1,x=2,w=3,k=4,E=0,D=2,S=8,O=9,C=15,A=8,I=286,T=30,P=19,B=2*I+1,F=15,j=3,L=258,M=L+j+1,N=32,z=42,R=69,U=73,G=91,H=103,$=113,W=666,q=1,V=2,Y=3,Z=4,X=3;function Q(t,e){return t.msg=c[e],e}function J(t){return(t<<1)-(t>4?9:0)}function K(t){for(var e=t.length;--e>=0;)t[e]=0}function tt(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(i.arraySet(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function et(t,e){o._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,tt(t.strm)}function nt(t,e){t.pending_buf[t.pending++]=e}function rt(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function it(t,e){var n,r,i=t.max_chain_length,o=t.strstart,s=t.prev_length,a=t.nice_match,c=t.strstart>t.w_size-M?t.strstart-(t.w_size-M):0,u=t.window,l=t.w_mask,p=t.prev,f=t.strstart+L,h=u[o+s-1],d=u[o+s];t.prev_length>=t.good_match&&(i>>=2),a>t.lookahead&&(a=t.lookahead);do{if(u[(n=e)+s]===d&&u[n+s-1]===h&&u[n]===u[o]&&u[++n]===u[o+1]){o+=2,n++;do{}while(u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&os){if(t.match_start=e,s=r,r>=a)break;h=u[o+s-1],d=u[o+s]}}}while((e=p[e&l])>c&&0!=--i);return s<=t.lookahead?s:t.lookahead}function ot(t){var e,n,r,o,c,u,l,p,f,h,d=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-M)){i.arraySet(t.window,t.window,d,d,0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=n=t.hash_size;do{r=t.head[--e],t.head[e]=r>=d?r-d:0}while(--n);e=n=d;do{r=t.prev[--e],t.prev[e]=r>=d?r-d:0}while(--n);o+=d}if(0===t.strm.avail_in)break;if(u=t.strm,l=t.window,p=t.strstart+t.lookahead,f=o,h=void 0,(h=u.avail_in)>f&&(h=f),n=0===h?0:(u.avail_in-=h,i.arraySet(l,u.input,u.next_in,h,p),1===u.state.wrap?u.adler=s(u.adler,l,h,p):2===u.state.wrap&&(u.adler=a(u.adler,l,h,p)),u.next_in+=h,u.total_in+=h,h),t.lookahead+=n,t.lookahead+t.insert>=j)for(c=t.strstart-t.insert,t.ins_h=t.window[c],t.ins_h=(t.ins_h<=j&&(t.ins_h=(t.ins_h<=j)if(r=o._tr_tally(t,t.strstart-t.match_start,t.match_length-j),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=j){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<=j&&(t.ins_h=(t.ins_h<4096)&&(t.match_length=j-1)),t.prev_length>=j&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-j,r=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-j),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<15&&(a=2,r-=16),o<1||o>O||n!==S||r<8||r>15||e<0||e>9||s<0||s>k)return Q(t,m);8===r&&(r=9);var c=new ut;return t.state=c,c.strm=t,c.wrap=a,c.gzhead=null,c.w_bits=r,c.w_size=1<t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(ot(t),0===t.lookahead&&e===u)return q;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var r=t.block_start+n;if((0===t.strstart||t.strstart>=r)&&(t.lookahead=t.strstart-r,t.strstart=r,et(t,!1),0===t.strm.avail_out))return q;if(t.strstart-t.block_start>=t.w_size-M&&(et(t,!1),0===t.strm.avail_out))return q}return t.insert=0,e===f?(et(t,!0),0===t.strm.avail_out?Y:Z):(t.strstart>t.block_start&&(et(t,!1),t.strm.avail_out),q)}),new ct(4,4,8,4,st),new ct(4,5,16,8,st),new ct(4,6,32,32,st),new ct(4,4,16,16,at),new ct(8,16,32,32,at),new ct(8,16,128,128,at),new ct(8,32,128,256,at),new ct(32,128,258,1024,at),new ct(32,258,258,4096,at)],e.deflateInit=function(t,e){return ft(t,e,S,C,A,E)},e.deflateInit2=ft,e.deflateReset=pt,e.deflateResetKeep=lt,e.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?m:(t.state.gzhead=e,d):m},e.deflate=function(t,e){var n,i,s,c;if(!t||!t.state||e>h||e<0)return t?Q(t,m):m;if(i=t.state,!t.output||!t.input&&0!==t.avail_in||i.status===W&&e!==f)return Q(t,0===t.avail_out?b:m);if(i.strm=t,n=i.last_flush,i.last_flush=e,i.status===z)if(2===i.wrap)t.adler=0,nt(i,31),nt(i,139),nt(i,8),i.gzhead?(nt(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),nt(i,255&i.gzhead.time),nt(i,i.gzhead.time>>8&255),nt(i,i.gzhead.time>>16&255),nt(i,i.gzhead.time>>24&255),nt(i,9===i.level?2:i.strategy>=x||i.level<2?4:0),nt(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(nt(i,255&i.gzhead.extra.length),nt(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=a(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=R):(nt(i,0),nt(i,0),nt(i,0),nt(i,0),nt(i,0),nt(i,9===i.level?2:i.strategy>=x||i.level<2?4:0),nt(i,X),i.status=$);else{var _=S+(i.w_bits-8<<4)<<8;_|=(i.strategy>=x||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(_|=N),_+=31-_%31,i.status=$,rt(i,_),0!==i.strstart&&(rt(i,t.adler>>>16),rt(i,65535&t.adler)),t.adler=1}if(i.status===R)if(i.gzhead.extra){for(s=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>s&&(t.adler=a(t.adler,i.pending_buf,i.pending-s,s)),tt(t),s=i.pending,i.pending!==i.pending_buf_size));)nt(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>s&&(t.adler=a(t.adler,i.pending_buf,i.pending-s,s)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=U)}else i.status=U;if(i.status===U)if(i.gzhead.name){s=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>s&&(t.adler=a(t.adler,i.pending_buf,i.pending-s,s)),tt(t),s=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindexs&&(t.adler=a(t.adler,i.pending_buf,i.pending-s,s)),0===c&&(i.gzindex=0,i.status=G)}else i.status=G;if(i.status===G)if(i.gzhead.comment){s=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>s&&(t.adler=a(t.adler,i.pending_buf,i.pending-s,s)),tt(t),s=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindexs&&(t.adler=a(t.adler,i.pending_buf,i.pending-s,s)),0===c&&(i.status=H)}else i.status=H;if(i.status===H&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&tt(t),i.pending+2<=i.pending_buf_size&&(nt(i,255&t.adler),nt(i,t.adler>>8&255),t.adler=0,i.status=$)):i.status=$),0!==i.pending){if(tt(t),0===t.avail_out)return i.last_flush=-1,d}else if(0===t.avail_in&&J(e)<=J(n)&&e!==f)return Q(t,b);if(i.status===W&&0!==t.avail_in)return Q(t,b);if(0!==t.avail_in||0!==i.lookahead||e!==u&&i.status!==W){var y=i.strategy===x?function(t,e){for(var n;;){if(0===t.lookahead&&(ot(t),0===t.lookahead)){if(e===u)return q;break}if(t.match_length=0,n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(et(t,!1),0===t.strm.avail_out))return q}return t.insert=0,e===f?(et(t,!0),0===t.strm.avail_out?Y:Z):t.last_lit&&(et(t,!1),0===t.strm.avail_out)?q:V}(i,e):i.strategy===w?function(t,e){for(var n,r,i,s,a=t.window;;){if(t.lookahead<=L){if(ot(t),t.lookahead<=L&&e===u)return q;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=j&&t.strstart>0&&(r=a[i=t.strstart-1])===a[++i]&&r===a[++i]&&r===a[++i]){s=t.strstart+L;do{}while(r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&it.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=j?(n=o._tr_tally(t,1,t.match_length-j),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(et(t,!1),0===t.strm.avail_out))return q}return t.insert=0,e===f?(et(t,!0),0===t.strm.avail_out?Y:Z):t.last_lit&&(et(t,!1),0===t.strm.avail_out)?q:V}(i,e):r[i.level].func(i,e);if(y!==Y&&y!==Z||(i.status=W),y===q||y===Y)return 0===t.avail_out&&(i.last_flush=-1),d;if(y===V&&(e===l?o._tr_align(i):e!==h&&(o._tr_stored_block(i,0,0,!1),e===p&&(K(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),tt(t),0===t.avail_out))return i.last_flush=-1,d}return e!==f?d:i.wrap<=0?g:(2===i.wrap?(nt(i,255&t.adler),nt(i,t.adler>>8&255),nt(i,t.adler>>16&255),nt(i,t.adler>>24&255),nt(i,255&t.total_in),nt(i,t.total_in>>8&255),nt(i,t.total_in>>16&255),nt(i,t.total_in>>24&255)):(rt(i,t.adler>>>16),rt(i,65535&t.adler)),tt(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?d:g)},e.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==z&&e!==R&&e!==U&&e!==G&&e!==H&&e!==$&&e!==W?Q(t,m):(t.state=null,e===$?Q(t,_):d):m},e.deflateSetDictionary=function(t,e){var n,r,o,a,c,u,l,p,f=e.length;if(!t||!t.state)return m;if(2===(a=(n=t.state).wrap)||1===a&&n.status!==z||n.lookahead)return m;for(1===a&&(t.adler=s(t.adler,e,f,0)),n.wrap=0,f>=n.w_size&&(0===a&&(K(n.head),n.strstart=0,n.block_start=0,n.insert=0),p=new i.Buf8(n.w_size),i.arraySet(p,e,f-n.w_size,n.w_size,0),e=p,f=n.w_size),c=t.avail_in,u=t.next_in,l=t.input,t.avail_in=f,t.next_in=0,t.input=e,ot(n);n.lookahead>=j;){r=n.strstart,o=n.lookahead-(j-1);do{n.ins_h=(n.ins_h<=0;)t[e]=0}var u=0,l=1,p=2,f=29,h=256,d=h+1+f,g=30,m=19,_=2*d+1,b=15,y=16,v=7,x=256,w=16,k=17,E=18,D=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],S=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],O=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],C=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],A=new Array(2*(d+2));c(A);var I=new Array(2*g);c(I);var T=new Array(512);c(T);var P=new Array(256);c(P);var B=new Array(f);c(B);var F,j,L,M=new Array(g);function N(t,e,n,r,i){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=t&&t.length}function z(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function R(t){return t<256?T[t]:T[256+(t>>>7)]}function U(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function G(t,e,n){t.bi_valid>y-n?(t.bi_buf|=e<>y-t.bi_valid,t.bi_valid+=n-y):(t.bi_buf|=e<>>=1,n<<=1}while(--e>0);return n>>>1}function W(t,e,n){var r,i,o=new Array(b+1),s=0;for(r=1;r<=b;r++)o[r]=s=s+n[r-1]<<1;for(i=0;i<=e;i++){var a=t[2*i+1];0!==a&&(t[2*i]=$(o[a]++,a))}}function q(t){var e;for(e=0;e8?U(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function Y(t,e,n,r){var i=2*e,o=2*n;return t[i]>1;n>=1;n--)Z(t,o,n);i=c;do{n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],Z(t,o,1),r=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=r,o[2*i]=o[2*n]+o[2*r],t.depth[i]=(t.depth[n]>=t.depth[r]?t.depth[n]:t.depth[r])+1,o[2*n+1]=o[2*r+1]=i,t.heap[1]=i++,Z(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var n,r,i,o,s,a,c=e.dyn_tree,u=e.max_code,l=e.stat_desc.static_tree,p=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,h=e.stat_desc.extra_base,d=e.stat_desc.max_length,g=0;for(o=0;o<=b;o++)t.bl_count[o]=0;for(c[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<_;n++)(o=c[2*c[2*(r=t.heap[n])+1]+1]+1)>d&&(o=d,g++),c[2*r+1]=o,r>u||(t.bl_count[o]++,s=0,r>=h&&(s=f[r-h]),a=c[2*r],t.opt_len+=a*(o+s),p&&(t.static_len+=a*(l[2*r+1]+s)));if(0!==g){do{for(o=d-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[d]--,g-=2}while(g>0);for(o=d;0!==o;o--)for(r=t.bl_count[o];0!==r;)(i=t.heap[--n])>u||(c[2*i+1]!==o&&(t.opt_len+=(o-c[2*i+1])*c[2*i],c[2*i+1]=o),r--)}}(t,e),W(o,u,t.bl_count)}function J(t,e,n){var r,i,o=-1,s=e[1],a=0,c=7,u=4;for(0===s&&(c=138,u=3),e[2*(n+1)+1]=65535,r=0;r<=n;r++)i=s,s=e[2*(r+1)+1],++a>=7;r0?(t.strm.data_type===a&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return o;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return s;for(e=32;e=3&&0===t.bl_tree[2*C[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),c=t.opt_len+3+7>>>3,(u=t.static_len+3+7>>>3)<=c&&(c=u)):c=u=n+5,n+4<=c&&-1!==e?et(t,e,n,r):t.strategy===i||u===c?(G(t,(l<<1)+(r?1:0),3),X(t,A,I)):(G(t,(p<<1)+(r?1:0),3),function(t,e,n,r){var i;for(G(t,e-257,5),G(t,n-1,5),G(t,r-4,4),i=0;i>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(P[n]+h+1)]++,t.dyn_dtree[2*R(e)]++),t.last_lit===t.lit_bufsize-1},e._tr_align=function(t){G(t,l<<1,3),H(t,x,A),function(t){16===t.bi_valid?(U(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},function(t,e,n){"use strict";var r=n(190),i=n(14),o=n(86),s=n(88),a=n(50),c=n(87),u=n(193),l=Object.prototype.toString;function p(t){if(!(this instanceof p))return new p(t);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,e.windowBits);if(n!==s.Z_OK)throw new Error(a[n]);if(this.header=new u,r.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=o.string2buf(e.dictionary):"[object ArrayBuffer]"===l.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(n=r.inflateSetDictionary(this.strm,e.dictionary))!==s.Z_OK))throw new Error(a[n])}function f(t,e){var n=new p(e);if(n.push(t,!0),n.err)throw n.msg||a[n.err];return n.result}p.prototype.push=function(t,e){var n,a,c,u,p,f=this.strm,h=this.options.chunkSize,d=this.options.dictionary,g=!1;if(this.ended)return!1;a=e===~~e?e:!0===e?s.Z_FINISH:s.Z_NO_FLUSH,"string"==typeof t?f.input=o.binstring2buf(t):"[object ArrayBuffer]"===l.call(t)?f.input=new Uint8Array(t):f.input=t,f.next_in=0,f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new i.Buf8(h),f.next_out=0,f.avail_out=h),(n=r.inflate(f,s.Z_NO_FLUSH))===s.Z_NEED_DICT&&d&&(n=r.inflateSetDictionary(this.strm,d)),n===s.Z_BUF_ERROR&&!0===g&&(n=s.Z_OK,g=!1),n!==s.Z_STREAM_END&&n!==s.Z_OK)return this.onEnd(n),this.ended=!0,!1;f.next_out&&(0!==f.avail_out&&n!==s.Z_STREAM_END&&(0!==f.avail_in||a!==s.Z_FINISH&&a!==s.Z_SYNC_FLUSH)||("string"===this.options.to?(c=o.utf8border(f.output,f.next_out),u=f.next_out-c,p=o.buf2string(f.output,c),f.next_out=u,f.avail_out=h-u,u&&i.arraySet(f.output,f.output,c,u,0),this.onData(p)):this.onData(i.shrinkBuf(f.output,f.next_out)))),0===f.avail_in&&0===f.avail_out&&(g=!0)}while((f.avail_in>0||0===f.avail_out)&&n!==s.Z_STREAM_END);return n===s.Z_STREAM_END&&(a=s.Z_FINISH),a===s.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===s.Z_OK):a!==s.Z_SYNC_FLUSH||(this.onEnd(s.Z_OK),f.avail_out=0,!0)},p.prototype.onData=function(t){this.chunks.push(t)},p.prototype.onEnd=function(t){t===s.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Inflate=p,e.inflate=f,e.inflateRaw=function(t,e){return(e=e||{}).raw=!0,f(t,e)},e.ungzip=f},function(t,e,n){"use strict";var r=n(14),i=n(84),o=n(85),s=n(191),a=n(192),c=0,u=1,l=2,p=4,f=5,h=6,d=0,g=1,m=2,_=-2,b=-3,y=-4,v=-5,x=8,w=1,k=2,E=3,D=4,S=5,O=6,C=7,A=8,I=9,T=10,P=11,B=12,F=13,j=14,L=15,M=16,N=17,z=18,R=19,U=20,G=21,H=22,$=23,W=24,q=25,V=26,Y=27,Z=28,X=29,Q=30,J=31,K=32,tt=852,et=592,nt=15;function rt(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function it(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function ot(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=w,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new r.Buf32(tt),e.distcode=e.distdyn=new r.Buf32(et),e.sane=1,e.back=-1,d):_}function st(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,ot(t)):_}function at(t,e){var n,r;return t&&t.state?(r=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?_:(null!==r.window&&r.wbits!==e&&(r.window=null),r.wrap=n,r.wbits=e,st(t))):_}function ct(t,e){var n,r;return t?(r=new it,t.state=r,r.window=null,(n=at(t,e))!==d&&(t.state=null),n):_}var ut,lt,pt=!0;function ft(t){if(pt){var e;for(ut=new r.Buf32(512),lt=new r.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(a(u,t.lens,0,288,ut,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;a(l,t.lens,0,32,lt,0,t.work,{bits:5}),pt=!1}t.lencode=ut,t.lenbits=9,t.distcode=lt,t.distbits=5}function ht(t,e,n,i){var o,s=t.state;return null===s.window&&(s.wsize=1<=s.wsize?(r.arraySet(s.window,e,n-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):((o=s.wsize-s.wnext)>i&&(o=i),r.arraySet(s.window,e,n-i,o,s.wnext),(i-=o)?(r.arraySet(s.window,e,n-i,i,0),s.wnext=i,s.whave=s.wsize):(s.wnext+=o,s.wnext===s.wsize&&(s.wnext=0),s.whave>>8&255,n.check=o(n.check,Ot,2,0),at=0,ct=0,n.mode=k;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&at)<<8)+(at>>8))%31){t.msg="incorrect header check",n.mode=Q;break}if((15&at)!==x){t.msg="unknown compression method",n.mode=Q;break}if(ct-=4,wt=8+(15&(at>>>=4)),0===n.wbits)n.wbits=wt;else if(wt>n.wbits){t.msg="invalid window size",n.mode=Q;break}n.dmax=1<>8&1),512&n.flags&&(Ot[0]=255&at,Ot[1]=at>>>8&255,n.check=o(n.check,Ot,2,0)),at=0,ct=0,n.mode=E;case E:for(;ct<32;){if(0===ot)break t;ot--,at+=tt[nt++]<>>8&255,Ot[2]=at>>>16&255,Ot[3]=at>>>24&255,n.check=o(n.check,Ot,4,0)),at=0,ct=0,n.mode=D;case D:for(;ct<16;){if(0===ot)break t;ot--,at+=tt[nt++]<>8),512&n.flags&&(Ot[0]=255&at,Ot[1]=at>>>8&255,n.check=o(n.check,Ot,2,0)),at=0,ct=0,n.mode=S;case S:if(1024&n.flags){for(;ct<16;){if(0===ot)break t;ot--,at+=tt[nt++]<>>8&255,n.check=o(n.check,Ot,2,0)),at=0,ct=0}else n.head&&(n.head.extra=null);n.mode=O;case O:if(1024&n.flags&&((pt=n.length)>ot&&(pt=ot),pt&&(n.head&&(wt=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,tt,nt,pt,wt)),512&n.flags&&(n.check=o(n.check,tt,pt,nt)),ot-=pt,nt+=pt,n.length-=pt),n.length))break t;n.length=0,n.mode=C;case C:if(2048&n.flags){if(0===ot)break t;pt=0;do{wt=tt[nt+pt++],n.head&&wt&&n.length<65536&&(n.head.name+=String.fromCharCode(wt))}while(wt&&pt>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=B;break;case T:for(;ct<32;){if(0===ot)break t;ot--,at+=tt[nt++]<>>=7&ct,ct-=7&ct,n.mode=Y;break}for(;ct<3;){if(0===ot)break t;ot--,at+=tt[nt++]<>>=1)){case 0:n.mode=j;break;case 1:if(ft(n),n.mode=U,e===h){at>>>=2,ct-=2;break t}break;case 2:n.mode=N;break;case 3:t.msg="invalid block type",n.mode=Q}at>>>=2,ct-=2;break;case j:for(at>>>=7&ct,ct-=7&ct;ct<32;){if(0===ot)break t;ot--,at+=tt[nt++]<>>16^65535)){t.msg="invalid stored block lengths",n.mode=Q;break}if(n.length=65535&at,at=0,ct=0,n.mode=L,e===h)break t;case L:n.mode=M;case M:if(pt=n.length){if(pt>ot&&(pt=ot),pt>st&&(pt=st),0===pt)break t;r.arraySet(et,tt,nt,pt,it),ot-=pt,nt+=pt,st-=pt,it+=pt,n.length-=pt;break}n.mode=B;break;case N:for(;ct<14;){if(0===ot)break t;ot--,at+=tt[nt++]<>>=5,ct-=5,n.ndist=1+(31&at),at>>>=5,ct-=5,n.ncode=4+(15&at),at>>>=4,ct-=4,n.nlen>286||n.ndist>30){t.msg="too many length or distance symbols",n.mode=Q;break}n.have=0,n.mode=z;case z:for(;n.have>>=3,ct-=3}for(;n.have<19;)n.lens[Ct[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,Et={bits:n.lenbits},kt=a(c,n.lens,0,19,n.lencode,0,n.work,Et),n.lenbits=Et.bits,kt){t.msg="invalid code lengths set",n.mode=Q;break}n.have=0,n.mode=R;case R:for(;n.have>>16&255,bt=65535&St,!((mt=St>>>24)<=ct);){if(0===ot)break t;ot--,at+=tt[nt++]<>>=mt,ct-=mt,n.lens[n.have++]=bt;else{if(16===bt){for(Dt=mt+2;ct>>=mt,ct-=mt,0===n.have){t.msg="invalid bit length repeat",n.mode=Q;break}wt=n.lens[n.have-1],pt=3+(3&at),at>>>=2,ct-=2}else if(17===bt){for(Dt=mt+3;ct>>=mt)),at>>>=3,ct-=3}else{for(Dt=mt+7;ct>>=mt)),at>>>=7,ct-=7}if(n.have+pt>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=Q;break}for(;pt--;)n.lens[n.have++]=wt}}if(n.mode===Q)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=Q;break}if(n.lenbits=9,Et={bits:n.lenbits},kt=a(u,n.lens,0,n.nlen,n.lencode,0,n.work,Et),n.lenbits=Et.bits,kt){t.msg="invalid literal/lengths set",n.mode=Q;break}if(n.distbits=6,n.distcode=n.distdyn,Et={bits:n.distbits},kt=a(l,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,Et),n.distbits=Et.bits,kt){t.msg="invalid distances set",n.mode=Q;break}if(n.mode=U,e===h)break t;case U:n.mode=G;case G:if(ot>=6&&st>=258){t.next_out=it,t.avail_out=st,t.next_in=nt,t.avail_in=ot,n.hold=at,n.bits=ct,s(t,lt),it=t.next_out,et=t.output,st=t.avail_out,nt=t.next_in,tt=t.input,ot=t.avail_in,at=n.hold,ct=n.bits,n.mode===B&&(n.back=-1);break}for(n.back=0;_t=(St=n.lencode[at&(1<>>16&255,bt=65535&St,!((mt=St>>>24)<=ct);){if(0===ot)break t;ot--,at+=tt[nt++]<>yt)])>>>16&255,bt=65535&St,!(yt+(mt=St>>>24)<=ct);){if(0===ot)break t;ot--,at+=tt[nt++]<>>=yt,ct-=yt,n.back+=yt}if(at>>>=mt,ct-=mt,n.back+=mt,n.length=bt,0===_t){n.mode=V;break}if(32&_t){n.back=-1,n.mode=B;break}if(64&_t){t.msg="invalid literal/length code",n.mode=Q;break}n.extra=15&_t,n.mode=H;case H:if(n.extra){for(Dt=n.extra;ct>>=n.extra,ct-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=$;case $:for(;_t=(St=n.distcode[at&(1<>>16&255,bt=65535&St,!((mt=St>>>24)<=ct);){if(0===ot)break t;ot--,at+=tt[nt++]<>yt)])>>>16&255,bt=65535&St,!(yt+(mt=St>>>24)<=ct);){if(0===ot)break t;ot--,at+=tt[nt++]<>>=yt,ct-=yt,n.back+=yt}if(at>>>=mt,ct-=mt,n.back+=mt,64&_t){t.msg="invalid distance code",n.mode=Q;break}n.offset=bt,n.extra=15&_t,n.mode=W;case W:if(n.extra){for(Dt=n.extra;ct>>=n.extra,ct-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=Q;break}n.mode=q;case q:if(0===st)break t;if(pt=lt-st,n.offset>pt){if((pt=n.offset-pt)>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=Q;break}pt>n.wnext?(pt-=n.wnext,dt=n.wsize-pt):dt=n.wnext-pt,pt>n.length&&(pt=n.length),gt=n.window}else gt=et,dt=it-n.offset,pt=n.length;pt>st&&(pt=st),st-=pt,n.length-=pt;do{et[it++]=gt[dt++]}while(--pt);0===n.length&&(n.mode=G);break;case V:if(0===st)break t;et[it++]=n.length,st--,n.mode=G;break;case Y:if(n.wrap){for(;ct<32;){if(0===ot)break t;ot--,at|=tt[nt++]<>>=v=y>>>24,d-=v,0===(v=y>>>16&255))S[o++]=65535&y;else{if(!(16&v)){if(0==(64&v)){y=g[(65535&y)+(h&(1<>>=v,d-=v),d<15&&(h+=D[r++]<>>=v=y>>>24,d-=v,!(16&(v=y>>>16&255))){if(0==(64&v)){y=m[(65535&y)+(h&(1<c){t.msg="invalid distance too far back",n.mode=30;break t}if(h>>>=v,d-=v,w>(v=o-s)){if((v=w-v)>l&&n.sane){t.msg="invalid distance too far back",n.mode=30;break t}if(k=0,E=f,0===p){if(k+=u-v,v2;)S[o++]=E[k++],S[o++]=E[k++],S[o++]=E[k++],x-=3;x&&(S[o++]=E[k++],x>1&&(S[o++]=E[k++]))}else{k=o-w;do{S[o++]=S[k++],S[o++]=S[k++],S[o++]=S[k++],x-=3}while(x>2);x&&(S[o++]=S[k++],x>1&&(S[o++]=S[k++]))}break}}break}}while(r>3,h&=(1<<(d-=x<<3))-1,t.next_in=r,t.next_out=o,t.avail_in=r=1&&0===j[S];S--);if(O>S&&(O=S),0===S)return u[l++]=20971520,u[l++]=20971520,f.bits=1,0;for(D=1;D0&&(0===t||1!==S))return-1;for(L[1]=0,k=1;k<15;k++)L[k+1]=L[k]+j[k];for(E=0;E852||2===t&&T>592)return 1;for(;;){y=k-A,p[E]b?(v=M[N+p[E]],x=B[F+p[E]]):(v=96,x=0),h=1<>A)+(d-=h)]=y<<24|v<<16|x|0}while(0!==d);for(h=1<>=1;if(0!==h?(P&=h-1,P+=h):P=0,E++,0==--j[k]){if(k===S)break;k=e[n+p[E]]}if(k>O&&(P&m)!==g){for(0===A&&(A=O),_+=D,I=1<<(C=k-A);C+A852||2===t&&T>592)return 1;u[g=P&m]=O<<24|C<<16|_-l|0}}return 0!==P&&(u[_+P]=k-A<<24|64<<16|0),f.bits=O,0}},function(t,e,n){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},function(t,e){function n(t,e){if(!(t=t.replace(/\t+/g," ").trim()))return null;var n=t.indexOf(" ");if(-1===n)throw new Error("no named row at line "+e);var i=t.substring(0,n);t=(t=(t=(t=t.substring(n+1)).replace(/letter=[\'\"]\S+[\'\"]/gi,"")).split("=")).map(function(t){return t.trim().match(/(".*?"|[^"\s]+)+(?=\s*|\s*$)/g)});for(var o=[],s=0;s root";n=n.font,e.common=i(n.common[0].$),e.info=i(n.info[0].$);for(var r=0;r=0||t.indexOf(">")>=0||t.indexOf("<")>=0)},s=function(t){return""},i=function(t){return t.replace("]]>","]]]]>")},e.Builder=function(){function e(t){var e,n,i;for(e in this.options={},n=r[.2])a.call(n,e)&&(i=n[e],this.options[e]=i);for(e in t)a.call(t,e)&&(i=t[e],this.options[e]=i)}return e.prototype.buildObject=function(e){var n,i,c,u,l,p;return n=this.options.attrkey,i=this.options.charkey,1===Object.keys(e).length&&this.options.rootName===r[.2].rootName?e=e[l=Object.keys(e)[0]]:l=this.options.rootName,p=this,c=function(t,e){var r,u,l,f,h,d;if("object"!=typeof e)p.options.cdata&&o(e)?t.raw(s(e)):t.txt(e);else if(Array.isArray(e)){for(f in e)if(a.call(e,f))for(h in u=e[f])l=u[h],t=c(t.ele(h),l).up()}else for(h in e)if(a.call(e,h))if(u=e[h],h===n){if("object"==typeof u)for(r in u)d=u[r],t=t.att(r,d)}else if(h===i)t=p.options.cdata&&o(u)?t.raw(s(u)):t.txt(u);else if(Array.isArray(u))for(f in u)a.call(u,f)&&(t="string"==typeof(l=u[f])?p.options.cdata&&o(l)?t.ele(h).raw(s(l)).up():t.ele(h,l).up():c(t.ele(h),l).up());else"object"==typeof u?t=c(t.ele(h),u).up():"string"==typeof u&&p.options.cdata&&o(u)?t=t.ele(h).raw(s(u)).up():(null==u&&(u=""),t=t.ele(h,u.toString()).up());return t},u=t.create(l,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),c(u,e).end(this.options.renderOpts)},e}()}).call(this)},function(t,e,n){(function(){var e,r,i,o,s,a,c;c=n(15),s=c.assign,a=c.isFunction,e=n(199),r=n(200),o=n(52),i=n(201),t.exports.create=function(t,n,r,i){var o,a;if(null==t)throw new Error("Root element needs a name");return i=s({},n,r,i),a=(o=new e(i)).element(t),i.headless||(o.declaration(i),null==i.pubID&&null==i.sysID||o.doctype(i)),a},t.exports.begin=function(t,n,i){var o;return a(t)&&(n=(o=[t,n])[0],i=o[1],t={}),n?new r(t,n,i):new e(t)},t.exports.stringWriter=function(t){return new o(t)},t.exports.streamWriter=function(t,e){return new i(t,e)}}).call(this)},function(t,e,n){(function(){var e,r,i,o,s={}.hasOwnProperty;o=n(15).isPlainObject,e=n(9),i=n(90),r=n(52),t.exports=function(t){function n(t){n.__super__.constructor.call(this,null),t||(t={}),t.writer||(t.writer=new r),this.options=t,this.stringify=new i(t),this.isDocument=!0}return function(t,e){for(var n in e)s.call(e,n)&&(t[n]=e[n]);function r(){this.constructor=t}r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype}(n,e),n.prototype.end=function(t){var e;return t?o(t)&&(e=t,t=this.options.writer.set(e)):t=this.options.writer,t.document(this)},n.prototype.toString=function(t){return this.options.writer.set(t).document(this)},n}()}).call(this)},function(t,e,n){(function(){var e,r,i,o,s,a,c,u,l,p,f,h,d,g,m,_,b,y,v,x={}.hasOwnProperty;v=n(15),b=v.isObject,_=v.isFunction,y=v.isPlainObject,p=n(31),r=n(32),i=n(33),h=n(40),m=n(41),f=n(42),u=n(34),l=n(35),o=n(36),a=n(37),s=n(38),c=n(39),e=n(89),g=n(90),d=n(52),t.exports=function(){function t(t,e,n){var r;t||(t={}),t.writer?y(t.writer)&&(r=t.writer,t.writer=new d(r)):t.writer=new d(t),this.options=t,this.writer=t.writer,this.stringify=new g(t),this.onDataCallback=e||function(){},this.onEndCallback=n||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return t.prototype.node=function(t,e,n){var r;if(null==t)throw new Error("Missing node name");if(this.root&&-1===this.currentLevel)throw new Error("Document can only have one root node");return this.openCurrent(),t=t.valueOf(),null==e&&(e={}),e=e.valueOf(),b(e)||(n=(r=[e,n])[0],e=r[1]),this.currentNode=new p(this,t,e),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,null!=n&&this.text(n),this},t.prototype.element=function(t,e,n){return this.currentNode&&this.currentNode instanceof l?this.dtdElement.apply(this,arguments):this.node(t,e,n)},t.prototype.attribute=function(t,n){var r,i;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode");if(null!=t&&(t=t.valueOf()),b(t))for(r in t)x.call(t,r)&&(i=t[r],this.attribute(r,i));else _(n)&&(n=n.apply()),this.options.skipNullAttributes&&null==n||(this.currentNode.attributes[t]=new e(this,t,n));return this},t.prototype.text=function(t){var e;return this.openCurrent(),e=new m(this,t),this.onData(this.writer.text(e,this.currentLevel+1)),this},t.prototype.cdata=function(t){var e;return this.openCurrent(),e=new r(this,t),this.onData(this.writer.cdata(e,this.currentLevel+1)),this},t.prototype.comment=function(t){var e;return this.openCurrent(),e=new i(this,t),this.onData(this.writer.comment(e,this.currentLevel+1)),this},t.prototype.raw=function(t){var e;return this.openCurrent(),e=new h(this,t),this.onData(this.writer.raw(e,this.currentLevel+1)),this},t.prototype.instruction=function(t,e){var n,r,i,o,s;if(this.openCurrent(),null!=t&&(t=t.valueOf()),null!=e&&(e=e.valueOf()),Array.isArray(t))for(n=0,o=t.length;n=0;)this.up();return this.onEnd()},t.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},t.prototype.openNode=function(t){if(!t.isOpen)return!this.root&&0===this.currentLevel&&t instanceof p&&(this.root=t),this.onData(this.writer.openNode(t,this.currentLevel)),t.isOpen=!0},t.prototype.closeNode=function(t){if(!t.isClosed)return this.onData(this.writer.closeNode(t,this.currentLevel)),t.isClosed=!0},t.prototype.onData=function(t){return this.documentStarted=!0,this.onDataCallback(t)},t.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},t.prototype.ele=function(){return this.element.apply(this,arguments)},t.prototype.nod=function(t,e,n){return this.node(t,e,n)},t.prototype.txt=function(t){return this.text(t)},t.prototype.dat=function(t){return this.cdata(t)},t.prototype.com=function(t){return this.comment(t)},t.prototype.ins=function(t,e){return this.instruction(t,e)},t.prototype.dec=function(t,e,n){return this.declaration(t,e,n)},t.prototype.dtd=function(t,e,n){return this.doctype(t,e,n)},t.prototype.e=function(t,e,n){return this.element(t,e,n)},t.prototype.n=function(t,e,n){return this.node(t,e,n)},t.prototype.t=function(t){return this.text(t)},t.prototype.d=function(t){return this.cdata(t)},t.prototype.c=function(t){return this.comment(t)},t.prototype.r=function(t){return this.raw(t)},t.prototype.i=function(t,e){return this.instruction(t,e)},t.prototype.att=function(){return this.currentNode&&this.currentNode instanceof l?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},t.prototype.a=function(){return this.currentNode&&this.currentNode instanceof l?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},t.prototype.ent=function(t,e){return this.entity(t,e)},t.prototype.pent=function(t,e){return this.pEntity(t,e)},t.prototype.not=function(t,e){return this.notation(t,e)},t}()}).call(this)},function(t,e,n){(function(){var e,r,i,o,s,a,c,u,l,p,f,h,d,g={}.hasOwnProperty;c=n(34),u=n(35),e=n(32),r=n(33),l=n(31),f=n(40),h=n(41),p=n(42),i=n(36),o=n(38),s=n(37),a=n(39),d=n(91),t.exports=function(t){function n(t,e){n.__super__.constructor.call(this,e),this.stream=t}return function(t,e){for(var n in e)g.call(e,n)&&(t[n]=e[n]);function r(){this.constructor=t}r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype}(n,d),n.prototype.document=function(t){var e,n,i,o,s,a,l,f;for(n=0,o=(a=t.children).length;n"+this.endline(t))},n.prototype.comment=function(t,e){return this.stream.write(this.space(e)+"\x3c!-- "+t.text+" --\x3e"+this.endline(t))},n.prototype.declaration=function(t,e){return this.stream.write(this.space(e)),this.stream.write('"),this.stream.write(this.endline(t))},n.prototype.docType=function(t,n){var c,u,l,f;if(n||(n=0),this.stream.write(this.space(n)),this.stream.write("0){for(this.stream.write(" ["),this.stream.write(this.endline(t)),u=0,l=(f=t.children).length;u"),this.stream.write(this.endline(t))},n.prototype.element=function(t,n){var i,o,s,a,c,u,d,m;for(c in n||(n=0),m=this.space(n),this.stream.write(m+"<"+t.name),u=t.attributes)g.call(u,c)&&(i=u[c],this.attribute(i));if(0===t.children.length||t.children.every(function(t){return""===t.value}))this.allowEmpty?this.stream.write(">"):this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&1===t.children.length&&null!=t.children[0].value)this.stream.write(">"),this.stream.write(t.children[0].value),this.stream.write("");else{for(this.stream.write(">"+this.newline),s=0,a=(d=t.children).length;s")}return this.stream.write(this.endline(t))},n.prototype.processingInstruction=function(t,e){return this.stream.write(this.space(e)+""+this.endline(t))},n.prototype.raw=function(t,e){return this.stream.write(this.space(e)+t.value+this.endline(t))},n.prototype.text=function(t,e){return this.stream.write(this.space(e)+t.value+this.endline(t))},n.prototype.dtdAttList=function(t,e){return this.stream.write(this.space(e)+""+this.endline(t))},n.prototype.dtdElement=function(t,e){return this.stream.write(this.space(e)+""+this.endline(t))},n.prototype.dtdEntity=function(t,e){return this.stream.write(this.space(e)+""+this.endline(t))},n.prototype.dtdNotation=function(t,e){return this.stream.write(this.space(e)+""+this.endline(t))},n.prototype.endline=function(t){return t.isLastRootNode?"":this.newline},n}()}).call(this)},function(t,e,n){(function(){"use strict";var t,r,i,o,s,a,c,u,l=function(t,e){return function(){return t.apply(e,arguments)}},p={}.hasOwnProperty;c=n(203),i=n(17),t=n(204),a=n(93),u=n(205).setImmediate,r=n(51).defaults,o=function(t){return"object"==typeof t&&null!=t&&0===Object.keys(t).length},s=function(t,e,n){var r,i;for(r=0,i=t.length;r0&&(c[t.options.childkey]=l),l=c;return r.length>0?t.assignOrPush(d,u,l):(t.options.explicitRoot&&(h=l,(l={})[u]=h),t.resultObject=l,t.saxParser.ended=!0,t.emit("end",t.resultObject))}}(this),n=function(t){return function(n){var i,o;if(o=r[r.length-1])return o[e]+=n,t.options.explicitChildren&&t.options.preserveChildrenOrder&&t.options.charsAsChildren&&(t.options.includeWhiteChars||""!==n.replace(/\\n/g,"").trim())&&(o[t.options.childkey]=o[t.options.childkey]||[],(i={"#name":"__text__"})[e]=n,t.options.normalize&&(i[e]=i[e].replace(/\s{2,}/g," ").trim()),o[t.options.childkey].push(i)),o}}(this),this.saxParser.ontext=n,this.saxParser.oncdata=function(t){var e;if(e=n(t))return e.cdata=!0}},f.prototype.parseString=function(e,n){var r;null!=n&&"function"==typeof n&&(this.on("end",function(t){return this.reset(),n(null,t)}),this.on("error",function(t){return this.reset(),n(t)}));try{return""===(e=e.toString()).trim()?(this.emit("end",null),!0):(e=t.stripBOM(e),this.options.async?(this.remaining=e,u(this.processAsync),this.saxParser):this.saxParser.write(e).close())}catch(t){if(r=t,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",r),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw r}},f}(),e.parseString=function(t,n,r){var i,o;return null!=r?("function"==typeof r&&(i=r),"object"==typeof n&&(o=n)):("function"==typeof n&&(i=n),o={}),new e.Parser(o).parseString(t,i)}}).call(this)},function(t,e,n){!function(t){t.parser=function(t,e){return new i(t,e)},t.SAXParser=i,t.SAXStream=s,t.createStream=function(t,e){return new s(t,e)},t.MAX_BUFFER_LENGTH=65536;var e,r=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function i(e,n){if(!(this instanceof i))return new i(e,n);!function(t){for(var e=0,n=r.length;e"===i?(O(this,"onsgmldeclaration",this.sgmlDecl),this.sgmlDecl="",this.state=E.TEXT):_(i)?(this.state=E.SGML_DECL_QUOTED,this.sgmlDecl+=i):this.sgmlDecl+=i;continue;case E.SGML_DECL_QUOTED:i===this.q&&(this.state=E.SGML_DECL,this.q=""),this.sgmlDecl+=i;continue;case E.DOCTYPE:">"===i?(this.state=E.TEXT,O(this,"ondoctype",this.doctype),this.doctype=!0):(this.doctype+=i,"["===i?this.state=E.DOCTYPE_DTD:_(i)&&(this.state=E.DOCTYPE_QUOTED,this.q=i));continue;case E.DOCTYPE_QUOTED:this.doctype+=i,i===this.q&&(this.q="",this.state=E.DOCTYPE);continue;case E.DOCTYPE_DTD:this.doctype+=i,"]"===i?this.state=E.DOCTYPE:_(i)&&(this.state=E.DOCTYPE_DTD_QUOTED,this.q=i);continue;case E.DOCTYPE_DTD_QUOTED:this.doctype+=i,i===this.q&&(this.state=E.DOCTYPE_DTD,this.q="");continue;case E.COMMENT:"-"===i?this.state=E.COMMENT_ENDING:this.comment+=i;continue;case E.COMMENT_ENDING:"-"===i?(this.state=E.COMMENT_ENDED,this.comment=A(this.opt,this.comment),this.comment&&O(this,"oncomment",this.comment),this.comment=""):(this.comment+="-"+i,this.state=E.COMMENT);continue;case E.COMMENT_ENDED:">"!==i?(P(this,"Malformed comment"),this.comment+="--"+i,this.state=E.COMMENT):this.state=E.TEXT;continue;case E.CDATA:"]"===i?this.state=E.CDATA_ENDING:this.cdata+=i;continue;case E.CDATA_ENDING:"]"===i?this.state=E.CDATA_ENDING_2:(this.cdata+="]"+i,this.state=E.CDATA);continue;case E.CDATA_ENDING_2:">"===i?(this.cdata&&O(this,"oncdata",this.cdata),O(this,"onclosecdata"),this.cdata="",this.state=E.TEXT):"]"===i?this.cdata+="]":(this.cdata+="]]"+i,this.state=E.CDATA);continue;case E.PROC_INST:"?"===i?this.state=E.PROC_INST_ENDING:m(i)?this.state=E.PROC_INST_BODY:this.procInstName+=i;continue;case E.PROC_INST_BODY:if(!this.procInstBody&&m(i))continue;"?"===i?this.state=E.PROC_INST_ENDING:this.procInstBody+=i;continue;case E.PROC_INST_ENDING:">"===i?(O(this,"onprocessinginstruction",{name:this.procInstName,body:this.procInstBody}),this.procInstName=this.procInstBody="",this.state=E.TEXT):(this.procInstBody+="?"+i,this.state=E.PROC_INST_BODY);continue;case E.OPEN_TAG:y(h,i)?this.tagName+=i:(B(this),">"===i?L(this):"/"===i?this.state=E.OPEN_TAG_SLASH:(m(i)||P(this,"Invalid character in tag name"),this.state=E.ATTRIB));continue;case E.OPEN_TAG_SLASH:">"===i?(L(this,!0),M(this)):(P(this,"Forward-slash in opening tag not followed by >"),this.state=E.ATTRIB);continue;case E.ATTRIB:if(m(i))continue;">"===i?L(this):"/"===i?this.state=E.OPEN_TAG_SLASH:y(f,i)?(this.attribName=i,this.attribValue="",this.state=E.ATTRIB_NAME):P(this,"Invalid attribute name");continue;case E.ATTRIB_NAME:"="===i?this.state=E.ATTRIB_VALUE:">"===i?(P(this,"Attribute without value"),this.attribValue=this.attribName,j(this),L(this)):m(i)?this.state=E.ATTRIB_NAME_SAW_WHITE:y(h,i)?this.attribName+=i:P(this,"Invalid attribute name");continue;case E.ATTRIB_NAME_SAW_WHITE:if("="===i)this.state=E.ATTRIB_VALUE;else{if(m(i))continue;P(this,"Attribute without value"),this.tag.attributes[this.attribName]="",this.attribValue="",O(this,"onattribute",{name:this.attribName,value:""}),this.attribName="",">"===i?L(this):y(f,i)?(this.attribName=i,this.state=E.ATTRIB_NAME):(P(this,"Invalid attribute name"),this.state=E.ATTRIB)}continue;case E.ATTRIB_VALUE:if(m(i))continue;_(i)?(this.q=i,this.state=E.ATTRIB_VALUE_QUOTED):(P(this,"Unquoted attribute value"),this.state=E.ATTRIB_VALUE_UNQUOTED,this.attribValue=i);continue;case E.ATTRIB_VALUE_QUOTED:if(i!==this.q){"&"===i?this.state=E.ATTRIB_VALUE_ENTITY_Q:this.attribValue+=i;continue}j(this),this.q="",this.state=E.ATTRIB_VALUE_CLOSED;continue;case E.ATTRIB_VALUE_CLOSED:m(i)?this.state=E.ATTRIB:">"===i?L(this):"/"===i?this.state=E.OPEN_TAG_SLASH:y(f,i)?(P(this,"No whitespace between attributes"),this.attribName=i,this.attribValue="",this.state=E.ATTRIB_NAME):P(this,"Invalid attribute name");continue;case E.ATTRIB_VALUE_UNQUOTED:if(!b(i)){"&"===i?this.state=E.ATTRIB_VALUE_ENTITY_U:this.attribValue+=i;continue}j(this),">"===i?L(this):this.state=E.ATTRIB;continue;case E.CLOSE_TAG:if(this.tagName)">"===i?M(this):y(h,i)?this.tagName+=i:this.script?(this.script+=""===i?M(this):P(this,"Invalid characters in closing tag");continue;case E.TEXT_ENTITY:case E.ATTRIB_VALUE_ENTITY_Q:case E.ATTRIB_VALUE_ENTITY_U:var u,l;switch(this.state){case E.TEXT_ENTITY:u=E.TEXT,l="textNode";break;case E.ATTRIB_VALUE_ENTITY_Q:u=E.ATTRIB_VALUE_QUOTED,l="attribValue";break;case E.ATTRIB_VALUE_ENTITY_U:u=E.ATTRIB_VALUE_UNQUOTED,l="attribValue"}";"===i?(this[l]+=N(this),this.entity="",this.state=u):y(this.entity.length?g:d,i)?this.entity+=i:(P(this,"Invalid character in entity name"),this[l]+="&"+this.entity+i,this.entity="",this.state=u);continue;default:throw new Error(this,"Unknown state: "+this.state)}this.position>=this.bufferCheckPosition&&function(e){for(var n=Math.max(t.MAX_BUFFER_LENGTH,10),i=0,o=0,s=r.length;on)switch(r[o]){case"textNode":C(e);break;case"cdata":O(e,"oncdata",e.cdata),e.cdata="";break;case"script":O(e,"onscript",e.script),e.script="";break;default:I(e,"Max buffer length exceeded: "+r[o])}i=Math.max(i,a)}var c=t.MAX_BUFFER_LENGTH-i;e.bufferCheckPosition=c+e.position}(this);return this} +/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){var t;C(t=this),""!==t.cdata&&(O(t,"oncdata",t.cdata),t.cdata=""),""!==t.script&&(O(t,"onscript",t.script),t.script="")}};try{e=n(7).Stream}catch(t){e=function(){}}var o=t.EVENTS.filter(function(t){return"error"!==t&&"end"!==t});function s(t,n){if(!(this instanceof s))return new s(t,n);e.apply(this),this._parser=new i(t,n),this.writable=!0,this.readable=!0;var r=this;this._parser.onend=function(){r.emit("end")},this._parser.onerror=function(t){r.emit("error",t),r._parser.error=null},this._decoder=null,o.forEach(function(t){Object.defineProperty(r,"on"+t,{get:function(){return r._parser["on"+t]},set:function(e){if(!e)return r.removeAllListeners(t),r._parser["on"+t]=e,e;r.on(t,e)},enumerable:!0,configurable:!1})})}s.prototype=Object.create(e.prototype,{constructor:{value:s}}),s.prototype.write=function(t){if("function"==typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(t)){if(!this._decoder){var e=n(92).StringDecoder;this._decoder=new e("utf8")}t=this._decoder.write(t)}return this._parser.write(t.toString()),this.emit("data",t),!0},s.prototype.end=function(t){return t&&t.length&&this.write(t),this._parser.end(),!0},s.prototype.on=function(t,n){var r=this;return r._parser["on"+t]||-1===o.indexOf(t)||(r._parser["on"+t]=function(){var e=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);e.splice(0,0,t),r.emit.apply(r,e)}),e.prototype.on.call(r,t,n)};var a="[CDATA[",c="DOCTYPE",u="http://www.w3.org/XML/1998/namespace",l="http://www.w3.org/2000/xmlns/",p={xml:u,xmlns:l},f=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,h=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,d=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,g=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function m(t){return" "===t||"\n"===t||"\r"===t||"\t"===t}function _(t){return'"'===t||"'"===t}function b(t){return">"===t||m(t)}function y(t,e){return t.test(e)}function v(t,e){return!y(t,e)}var x,w,k,E=0;for(var D in t.STATE={BEGIN:E++,BEGIN_WHITESPACE:E++,TEXT:E++,TEXT_ENTITY:E++,OPEN_WAKA:E++,SGML_DECL:E++,SGML_DECL_QUOTED:E++,DOCTYPE:E++,DOCTYPE_QUOTED:E++,DOCTYPE_DTD:E++,DOCTYPE_DTD_QUOTED:E++,COMMENT_STARTING:E++,COMMENT:E++,COMMENT_ENDING:E++,COMMENT_ENDED:E++,CDATA:E++,CDATA_ENDING:E++,CDATA_ENDING_2:E++,PROC_INST:E++,PROC_INST_BODY:E++,PROC_INST_ENDING:E++,OPEN_TAG:E++,OPEN_TAG_SLASH:E++,ATTRIB:E++,ATTRIB_NAME:E++,ATTRIB_NAME_SAW_WHITE:E++,ATTRIB_VALUE:E++,ATTRIB_VALUE_QUOTED:E++,ATTRIB_VALUE_CLOSED:E++,ATTRIB_VALUE_UNQUOTED:E++,ATTRIB_VALUE_ENTITY_Q:E++,ATTRIB_VALUE_ENTITY_U:E++,CLOSE_TAG:E++,CLOSE_TAG_SAW_WHITE:E++,SCRIPT:E++,SCRIPT_ENDING:E++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach(function(e){var n=t.ENTITIES[e],r="number"==typeof n?String.fromCharCode(n):n;t.ENTITIES[e]=r}),t.STATE)t.STATE[t.STATE[D]]=D;function S(t,e,n){t[e]&&t[e](n)}function O(t,e,n){t.textNode&&C(t),S(t,e,n)}function C(t){t.textNode=A(t.opt,t.textNode),t.textNode&&S(t,"ontext",t.textNode),t.textNode=""}function A(t,e){return t.trim&&(e=e.trim()),t.normalize&&(e=e.replace(/\s+/g," ")),e}function I(t,e){return C(t),t.trackPosition&&(e+="\nLine: "+t.line+"\nColumn: "+t.column+"\nChar: "+t.c),e=new Error(e),t.error=e,S(t,"onerror",e),t}function T(t){return t.sawRoot&&!t.closedRoot&&P(t,"Unclosed root tag"),t.state!==E.BEGIN&&t.state!==E.BEGIN_WHITESPACE&&t.state!==E.TEXT&&I(t,"Unexpected end"),C(t),t.c="",t.closed=!0,S(t,"onend"),i.call(t,t.strict,t.opt),t}function P(t,e){if("object"!=typeof t||!(t instanceof i))throw new Error("bad call to strictFail");t.strict&&I(t,e)}function B(t){t.strict||(t.tagName=t.tagName[t.looseCase]());var e=t.tags[t.tags.length-1]||t,n=t.tag={name:t.tagName,attributes:{}};t.opt.xmlns&&(n.ns=e.ns),t.attribList.length=0,O(t,"onopentagstart",n)}function F(t,e){var n=t.indexOf(":")<0?["",t]:t.split(":"),r=n[0],i=n[1];return e&&"xmlns"===t&&(r="xmlns",i=""),{prefix:r,local:i}}function j(t){if(t.strict||(t.attribName=t.attribName[t.looseCase]()),-1!==t.attribList.indexOf(t.attribName)||t.tag.attributes.hasOwnProperty(t.attribName))t.attribName=t.attribValue="";else{if(t.opt.xmlns){var e=F(t.attribName,!0),n=e.prefix,r=e.local;if("xmlns"===n)if("xml"===r&&t.attribValue!==u)P(t,"xml: prefix must be bound to "+u+"\nActual: "+t.attribValue);else if("xmlns"===r&&t.attribValue!==l)P(t,"xmlns: prefix must be bound to "+l+"\nActual: "+t.attribValue);else{var i=t.tag,o=t.tags[t.tags.length-1]||t;i.ns===o.ns&&(i.ns=Object.create(o.ns)),i.ns[r]=t.attribValue}t.attribList.push([t.attribName,t.attribValue])}else t.tag.attributes[t.attribName]=t.attribValue,O(t,"onattribute",{name:t.attribName,value:t.attribValue});t.attribName=t.attribValue=""}}function L(t,e){if(t.opt.xmlns){var n=t.tag,r=F(t.tagName);n.prefix=r.prefix,n.local=r.local,n.uri=n.ns[r.prefix]||"",n.prefix&&!n.uri&&(P(t,"Unbound namespace prefix: "+JSON.stringify(t.tagName)),n.uri=r.prefix);var i=t.tags[t.tags.length-1]||t;n.ns&&i.ns!==n.ns&&Object.keys(n.ns).forEach(function(e){O(t,"onopennamespace",{prefix:e,uri:n.ns[e]})});for(var o=0,s=t.attribList.length;o",t.tagName="",void(t.state=E.SCRIPT);O(t,"onscript",t.script),t.script=""}var e=t.tags.length,n=t.tagName;t.strict||(n=n[t.looseCase]());for(var r=n;e--;){if(t.tags[e].name===r)break;P(t,"Unexpected close tag")}if(e<0)return P(t,"Unmatched closing tag: "+t.tagName),t.textNode+="",void(t.state=E.TEXT);t.tagName=n;for(var i=t.tags.length;i-- >e;){var o=t.tag=t.tags.pop();t.tagName=t.tag.name,O(t,"onclosetag",t.tagName);var s={};for(var a in o.ns)s[a]=o.ns[a];var c=t.tags[t.tags.length-1]||t;t.opt.xmlns&&o.ns!==c.ns&&Object.keys(o.ns).forEach(function(e){var n=o.ns[e];O(t,"onclosenamespace",{prefix:e,uri:n})})}0===e&&(t.closedRoot=!0),t.tagName=t.attribValue=t.attribName="",t.attribList.length=0,t.state=E.TEXT}function N(t){var e,n=t.entity,r=n.toLowerCase(),i="";return t.ENTITIES[n]?t.ENTITIES[n]:t.ENTITIES[r]?t.ENTITIES[r]:("#"===(n=r).charAt(0)&&("x"===n.charAt(1)?(n=n.slice(2),i=(e=parseInt(n,16)).toString(16)):(n=n.slice(1),i=(e=parseInt(n,10)).toString(10))),n=n.replace(/^0+/,""),isNaN(e)||i.toLowerCase()!==n?(P(t,"Invalid character entity"),"&"+t.entity+";"):String.fromCodePoint(e))}function z(t,e){"<"===e?(t.state=E.OPEN_WAKA,t.startTagPosition=t.position):m(e)||(P(t,"Non-whitespace before first tag."),t.textNode=e,t.state=E.TEXT)}function R(t,e){var n="";return e1114111||w(a)!==a)throw RangeError("Invalid code point: "+a);a<=65535?r.push(a):(t=55296+((a-=65536)>>10),e=a%1024+56320,r.push(t,e)),(i+1===o||r.length>n)&&(s+=x.apply(null,r),r.length=0)}return s},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:k,configurable:!0,writable:!0}):String.fromCodePoint=k)}(e)},function(t,e){(function(){"use strict";e.stripBOM=function(t){return"\ufeff"===t[0]?t.substring(1):t}}).call(this)},function(t,e){t.exports=require("timers")},function(t,e){t.exports=function(t){for(var e in"chasrset"in t&&(t.charset=t.chasrset,delete t.chasrset),t)"face"!==e&&"charset"!==e&&(t[e]="padding"===e||"spacing"===e?t[e].split(",").map(function(t){return parseInt(t,10)}):parseInt(t[e],10));return t}},function(t,e){var n=[66,77,70];function r(t,e,n){if(n>e.length-1)return 0;var r=e.readUInt8(n++),o=e.readInt32LE(n);switch(n+=4,r){case 1:t.info=function(t,e){var n={};n.size=t.readInt16LE(e);var r=t.readUInt8(e+2);n.smooth=r>>7&1,n.unicode=r>>6&1,n.italic=r>>5&1,n.bold=r>>4&1,r>>3&1&&(n.fixedHeight=1);return n.charset=t.readUInt8(e+3)||"",n.stretchH=t.readUInt16LE(e+4),n.aa=t.readUInt8(e+6),n.padding=[t.readInt8(e+7),t.readInt8(e+8),t.readInt8(e+9),t.readInt8(e+10)],n.spacing=[t.readInt8(e+11),t.readInt8(e+12)],n.outline=t.readUInt8(e+13),n.face=function(t,e){return i(t,e).toString("utf8")}(t,e+14),n}(e,n);break;case 2:t.common=function(t,e){var n={};n.lineHeight=t.readUInt16LE(e),n.base=t.readUInt16LE(e+2),n.scaleW=t.readUInt16LE(e+4),n.scaleH=t.readUInt16LE(e+6),n.pages=t.readUInt16LE(e+8);t.readUInt8(e+10);return n.packed=0,n.alphaChnl=t.readUInt8(e+11),n.redChnl=t.readUInt8(e+12),n.greenChnl=t.readUInt8(e+13),n.blueChnl=t.readUInt8(e+14),n}(e,n);break;case 3:t.pages=function(t,e,n){for(var r=[],o=i(t,e),s=o.length+1,a=n/s,c=0;c3)throw new Error("Only supports BMFont Binary v3 (BMFont App v1.10)");for(var i={kernings:[],chars:[]},o=0;o<5;o++)e+=r(i,t,e);return i}},function(t,e,n){n(1);var r=n(5);function i(){this.types=Object.create(null),this.extensions=Object.create(null)}i.prototype.define=function(t){for(var e in t){for(var n=t[e],r=0;r4&&r(t.slice(0,4),i)}},function(t,e,n){var r=n(4).Buffer;t.exports=function(t,e){if(r.isBuffer(t)&&r.isBuffer(e)){if("function"==typeof t.equals)return t.equals(e);if(t.length!==e.length)return!1;for(var n=0;n=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},e.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),e.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],e.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},e.enable(r())},function(t,e){var n=1e3,r=60*n,i=60*r,o=24*i,s=365.25*o;function a(t,e,n){if(!(t0)return function(t){if((t=String(t)).length>100)return;var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(!e)return;var a=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return a*s;case"days":case"day":case"d":return a*o;case"hours":case"hour":case"hrs":case"hr":case"h":return a*i;case"minutes":case"minute":case"mins":case"min":case"m":return a*r;case"seconds":case"second":case"secs":case"sec":case"s":return a*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}(t);if("number"===u&&!1===isNaN(t))return e.long?a(c=t,o,"day")||a(c,i,"hour")||a(c,r,"minute")||a(c,n,"second")||c+" ms":function(t){if(t>=o)return Math.round(t/o)+"d";if(t>=i)return Math.round(t/i)+"h";if(t>=r)return Math.round(t/r)+"m";if(t>=n)return Math.round(t/n)+"s";return t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},function(t,e,n){var r=n(219),i=n(3);(e=t.exports=n(94)).init=function(t){t.inspectOpts={};for(var n=Object.keys(e.inspectOpts),r=0;ro&&(s=t.slice(o),t=t.slice(0,o)),r?r.end(t):i.append(t),this._overflow=s,this._onparse()}},f.prototype._final=function(t){if(this._partial)return this.destroy(new Error("Unexpected end of data"));t()},t.exports=f},function(t,e,n){var r=n(223),i=n(3),o=n(22).Buffer;function s(t){if(!(this instanceof s))return new s(t);if(this._bufs=[],this.length=0,"function"==typeof t){this._callback=t;var e=function(t){this._callback&&(this._callback(t),this._callback=null)}.bind(this);this.on("pipe",function(t){t.on("error",e)}),this.on("unpipe",function(t){t.removeListener("error",e)})}else this.append(t);r.call(this)}i.inherits(s,r),s.prototype._offset=function(t){var e,n=0,r=0;if(0===t)return[0,0];for(;rthis.length)&&(r=this.length),n>=this.length)return t||o.alloc(0);if(r<=0)return t||o.alloc(0);var i,s,a=!!t,c=this._offset(n),u=r-n,l=u,p=a&&e||0,f=c[1];if(0===n&&r==this.length){if(!a)return 1===this._bufs.length?this._bufs[0]:o.concat(this._bufs,this.length);for(s=0;s(i=this._bufs[s].length-f))){this._bufs[s].copy(t,p,f,f+l);break}this._bufs[s].copy(t,p,f),p+=i,l-=i,f&&(f=0)}return t},s.prototype.shallowSlice=function(t,e){t=t||0,e=e||this.length,t<0&&(t+=this.length),e<0&&(e+=this.length);var n=this._offset(t),r=this._offset(e),i=this._bufs.slice(n[0],r[0]+1);return 0==r[1]?i.pop():i[i.length-1]=i[i.length-1].slice(0,r[1]),0!=n[1]&&(i[0]=i[0].slice(n[1])),new s(i)},s.prototype.toString=function(t,e,n){return this.slice(e,n).toString(t)},s.prototype.consume=function(t){for(;this._bufs.length;){if(!(t>=this._bufs[0].length)){this._bufs[0]=this._bufs[0].slice(t),this.length-=t;break}t-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift()}return this},s.prototype.duplicate=function(){for(var t=0,e=new s;t0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n},t.prototype.concat=function(t){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var e,n,i,o=r.allocUnsafe(t>>>0),s=this.head,a=0;s;)e=s.data,n=o,i=a,e.copy(n,i),a+=s.data.length,s=s.next;return o},t}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var t=i.inspect({length:this.length});return this.constructor.name+" "+t})},function(t,e,n){t.exports=n(3).deprecate},function(t,e,n){"use strict";t.exports=o;var r=n(102),i=n(23);function o(t){if(!(this instanceof o))return new o(t);r.call(this,t)}i.inherits=n(18),i.inherits(o,r),o.prototype._transform=function(t,e,n){n(null,t)}},function(t,e){t.exports=function(){for(var t={},e=0;et.length)throw new RangeError("Out of range index");return n>>>=0,(r=void 0===r?t.length:r>>>0)>n&&t.fill(e,n,r),t}t.exports=function(t,e,i,o,s){if(n)return t.fill(e,i,o,s);if("number"==typeof e)return r(t,e,i,o);if("string"==typeof e){if("string"==typeof i?(s=i,i=0,o=t.length):"string"==typeof o&&(s=o,o=t.length),void 0!==s&&"string"!=typeof s)throw new TypeError("encoding must be a string");if("latin1"===s&&(s="binary"),"string"==typeof s&&!Buffer.isEncoding(s))throw new TypeError("Unknown encoding: "+s);if(""===e)return r(t,0,i,o);if(function(t){return 1===t.length&&t.charCodeAt(0)<256}(e))return r(t,e.charCodeAt(0),i,o);e=new Buffer(e,s)}return Buffer.isBuffer(e)?function(t,e,n,r){if(n<0||r>t.length)throw new RangeError("Out of range index");if(r<=n)return t;n>>>=0,r=void 0===r?t.length:r>>>0;for(var i=n,o=e.length;i<=r-o;)e.copy(t,i),i+=o;return i!==r&&e.copy(t,i,0,r-i),t}(t,e,i,o):r(t,0,i,o)}},function(t,e){t.exports=function(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative');return Buffer.allocUnsafe?Buffer.allocUnsafe(t):new Buffer(t)}},function(t,e,n){var r=n(233),i=n(131),o=n(3),s=n(105),a=n(104),c=n(11).Readable,u=n(11).Writable,l=n(92).StringDecoder,p=n(103),f=parseInt("755",8),h=parseInt("644",8),d=s(1024),g=function(){},m=function(t,e){(e&=511)&&t.push(d.slice(0,512-e))};var _=function(t){u.call(this),this.written=0,this._to=t,this._destroyed=!1};o.inherits(_,u),_.prototype._write=function(t,e,n){if(this.written+=t.length,this._to.push(t))return n();this._to._drain=n},_.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var b=function(){u.call(this),this.linkname="",this._decoder=new l("utf-8"),this._destroyed=!1};o.inherits(b,u),b.prototype._write=function(t,e,n){this.linkname+=this._decoder.write(t),n()},b.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var y=function(){u.call(this),this._destroyed=!1};o.inherits(y,u),y.prototype._write=function(t,e,n){n(new Error("No body allowed for this entry"))},y.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var v=function(t){if(!(this instanceof v))return new v(t);c.call(this,t),this._drain=g,this._finalized=!1,this._finalizing=!1,this._destroyed=!1,this._stream=null};o.inherits(v,c),v.prototype.entry=function(t,e,n){if(this._stream)throw new Error("already piping an entry");if(!this._finalized&&!this._destroyed){"function"==typeof e&&(n=e,e=null),n||(n=g);var o=this;if(t.size&&"symlink"!==t.type||(t.size=0),t.type||(t.type=function(t){switch(t&r.S_IFMT){case r.S_IFBLK:return"block-device";case r.S_IFCHR:return"character-device";case r.S_IFDIR:return"directory";case r.S_IFIFO:return"fifo";case r.S_IFLNK:return"symlink"}return"file"}(t.mode)),t.mode||(t.mode="directory"===t.type?f:h),t.uid||(t.uid=0),t.gid||(t.gid=0),t.mtime||(t.mtime=new Date),"string"==typeof e&&(e=a(e)),Buffer.isBuffer(e))return t.size=e.length,this._encode(t),this.push(e),m(o,t.size),process.nextTick(n),new y;if("symlink"===t.type&&!t.linkname){var s=new b;return i(s,function(e){if(e)return o.destroy(),n(e);t.linkname=s.linkname,o._encode(t),n()}),s}if(this._encode(t),"file"!==t.type&&"contiguous-file"!==t.type)return process.nextTick(n),new y;var c=new _(this);return this._stream=c,i(c,function(e){return o._stream=null,e?(o.destroy(),n(e)):c.written!==t.size?(o.destroy(),n(new Error("size mismatch"))):(m(o,t.size),o._finalizing&&o.finalize(),void n())}),c}},v.prototype.finalize=function(){this._stream?this._finalizing=!0:this._finalized||(this._finalized=!0,this.push(d),this.push(null))},v.prototype.destroy=function(t){this._destroyed||(this._destroyed=!0,t&&this.emit("error",t),this.emit("close"),this._stream&&this._stream.destroy&&this._stream.destroy())},v.prototype._encode=function(t){if(!t.pax){var e=p.encode(t);if(e)return void this.push(e)}this._encodePax(t)},v.prototype._encodePax=function(t){var e=p.encodePax({name:t.name,linkname:t.linkname,pax:t.pax}),n={name:"PaxHeader",mode:t.mode,uid:t.uid,gid:t.gid,size:e.length,mtime:t.mtime,type:"pax-header",linkname:t.linkname&&"PaxHeader",uname:t.uname,gname:t.gname,devmajor:t.devmajor,devminor:t.devminor};this.push(p.encode(n)),this.push(e),m(this,e.length),n.size=t.size,n.type=t.type,this.push(p.encode(n))},v.prototype._read=function(t){var e=this._drain;this._drain=g,e()},t.exports=v},function(t,e,n){t.exports=n(5).constants||n(66)},function(t,e,n){"use strict";const r=n(53),i=n(235),o=n(47),s=n(236),a=n(241);t.exports=()=>t=>Buffer.isBuffer(t)||o(t)?!Buffer.isBuffer(t)||i(t)&&"bz2"===i(t).ext?Buffer.isBuffer(t)?r()(s.decode(t)):r()(t.pipe(a())):Promise.resolve([]):Promise.reject(new TypeError(`Expected a Buffer or Stream, got ${typeof t}`))},function(t,e,n){"use strict";const r=t=>Array.from(t).map(t=>t.charCodeAt(0)),i=r("META-INF/mozilla.rsa"),o=r("[Content_Types].xml"),s=r("_rels/.rels");t.exports=t=>{const e=new Uint8Array(t);if(!(e&&e.length>1))return null;const n=(t,n)=>{n=Object.assign({offset:0},n);for(let r=0;rt.findIndex((t,e,n)=>80===n[e]&&75===n[e+1]&&3===n[e+2]&&4===n[e+3]),i=t(e.subarray(4,2004));if(-1!==i){const o=t(e.subarray(i+8,i+8+1e3));if(-1!==o){const t=8+i+o+30;if(n(r("word/"),{offset:t}))return{ext:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"};if(n(r("ppt/"),{offset:t}))return{ext:"pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"};if(n(r("xl/"),{offset:t}))return{ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}}}}}if(n([80,75])&&(3===e[2]||5===e[2]||7===e[2])&&(4===e[3]||6===e[3]||8===e[3]))return{ext:"zip",mime:"application/zip"};if(n([117,115,116,97,114],{offset:257}))return{ext:"tar",mime:"application/x-tar"};if(n([82,97,114,33,26,7])&&(0===e[6]||1===e[6]))return{ext:"rar",mime:"application/x-rar-compressed"};if(n([31,139,8]))return{ext:"gz",mime:"application/gzip"};if(n([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(n([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(n([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(n([51,103,112,53])||n([0,0,0])&&n([102,116,121,112],{offset:4})&&(n([109,112,52,49],{offset:8})||n([109,112,52,50],{offset:8})||n([105,115,111,109],{offset:8})||n([105,115,111,50],{offset:8})||n([109,109,112,52],{offset:8})||n([77,52,86],{offset:8})||n([100,97,115,104],{offset:8})))return{ext:"mp4",mime:"video/mp4"};if(n([77,84,104,100]))return{ext:"mid",mime:"audio/midi"};if(n([26,69,223,163])){const t=e.subarray(4,4100),n=t.findIndex((t,e,n)=>66===n[e]&&130===n[e+1]);if(-1!==n){const e=n+3,r=n=>Array.from(n).every((n,r)=>t[e+r]===n.charCodeAt(0));if(r("matroska"))return{ext:"mkv",mime:"video/x-matroska"};if(r("webm"))return{ext:"webm",mime:"video/webm"}}}if(n([0,0,0,20,102,116,121,112,113,116,32,32])||n([102,114,101,101],{offset:4})||n([102,116,121,112,113,116,32,32],{offset:4})||n([109,100,97,116],{offset:4})||n([119,105,100,101],{offset:4}))return{ext:"mov",mime:"video/quicktime"};if(n([82,73,70,70])&&n([65,86,73],{offset:8}))return{ext:"avi",mime:"video/x-msvideo"};if(n([48,38,178,117,142,102,207,17,166,217]))return{ext:"wmv",mime:"video/x-ms-wmv"};if(n([0,0,1,186]))return{ext:"mpg",mime:"video/mpeg"};for(let t=0;t<2&&t0;n--)t[n]=t[n-1];return t[0]=r,r},c={OK:0,LAST_BLOCK:-1,NOT_BZIP_DATA:-2,UNEXPECTED_INPUT_EOF:-3,UNEXPECTED_OUTPUT_EOF:-4,DATA_ERROR:-5,OUT_OF_MEMORY:-6,OBSOLETE_INPUT:-7,END_OF_BLOCK:-8},u={};u[c.LAST_BLOCK]="Bad file checksum",u[c.NOT_BZIP_DATA]="Not bzip data",u[c.UNEXPECTED_INPUT_EOF]="Unexpected input EOF",u[c.UNEXPECTED_OUTPUT_EOF]="Unexpected output EOF",u[c.DATA_ERROR]="Data error",u[c.OUT_OF_MEMORY]="Out of memory",u[c.OBSOLETE_INPUT]="Obsolete (pre 0.9.5) bzip format not supported.";var l=function(t,e){var n=u[t]||"unknown error";e&&(n+=": "+e);var r=new TypeError(n);throw r.errorCode=t,r},p=function(t,e){this.writePos=this.writeCurrent=this.writeCount=0,this._start_bunzip(t,e)};p.prototype._init_block=function(){return this._get_next_block()?(this.blockCRC=new o,!0):(this.writeCount=-1,!1)},p.prototype._start_bunzip=function(t,e){var n=new Buffer(4);4===t.read(n,0,4)&&"BZh"===String.fromCharCode(n[0],n[1],n[2])||l(c.NOT_BZIP_DATA,"bad magic");var i=n[3]-48;(i<1||i>9)&&l(c.NOT_BZIP_DATA,"level out of range"),this.reader=new r(t),this.dbufSize=1e5*i,this.nextoutput=0,this.outputStream=e,this.streamCRC=0},p.prototype._get_next_block=function(){var t,e,n,r=this.reader,i=r.pi();if("177245385090"===i)return!1;"314159265359"!==i&&l(c.NOT_BZIP_DATA),this.targetBlockCRC=r.read(32)>>>0,this.streamCRC=(this.targetBlockCRC^(this.streamCRC<<1|this.streamCRC>>>31))>>>0,r.read(1)&&l(c.OBSOLETE_INPUT);var o=r.read(24);o>this.dbufSize&&l(c.DATA_ERROR,"initial position out of bounds");var s=r.read(16),u=new Buffer(256),p=0;for(t=0;t<16;t++)if(s&1<<15-t){var f=16*t;for(n=r.read(16),e=0;e<16;e++)n&1<<15-e&&(u[p++]=f+e)}var h=r.read(3);(h<2||h>6)&&l(c.DATA_ERROR);var d=r.read(15);0===d&&l(c.DATA_ERROR);var g=new Buffer(256);for(t=0;t=h&&l(c.DATA_ERROR);m[t]=a(g,e)}var _,b=p+2,y=[];for(e=0;e20)&&l(c.DATA_ERROR),r.read(1);)r.read(1)?s--:s++;w[t]=s}for(v=x=w[0],t=1;tx?x=w[t]:w[t]=d&&l(c.DATA_ERROR),_=y[m[A++]]),t=_.minLen,e=r.read(t);t>_.maxLen&&l(c.DATA_ERROR),!(e<=_.limit[t]);t++)e=e<<1|r.read(1);((e-=_.base[t])<0||e>=258)&&l(c.DATA_ERROR);var T=_.permute[e];if(0!==T&&1!==T){if(O)for(O=0,C+s>this.dbufSize&&l(c.DATA_ERROR),D[S=u[g[0]]]+=s;s--;)I[C++]=S;if(T>p)break;C>=this.dbufSize&&l(c.DATA_ERROR),D[S=u[S=a(g,t=T-1)]]++,I[C++]=S}else O||(O=1,s=0),s+=0===T?O:2*O,O<<=1}for((o<0||o>=C)&&l(c.DATA_ERROR),e=0,t=0;t<256;t++)n=e+D[t],D[t]=e,e=n;for(t=0;t>=8,F=-1),this.writePos=P,this.writeCurrent=B,this.writeCount=C,this.writeRun=F,!0},p.prototype._read_bunzip=function(t,e){var n,r,i;if(this.writeCount<0)return 0;for(var o=this.dbuf,s=this.writePos,a=this.writeCurrent,u=this.writeCount,p=(this.outputsize,this.writeRun);u;){for(u--,r=a,a=255&(s=o[s]),s>>=8,3==p++?(n=a,i=r,a=-1):(n=1,i=a),this.blockCRC.updateCRCRun(i,n);n--;)this.outputStream.writeByte(i),this.nextoutput++;a!=r&&(p=0)}return this.writeCount=u,this.blockCRC.getCRC()!==this.targetBlockCRC&&l(c.DATA_ERROR,"Bad block CRC (got "+this.blockCRC.getCRC().toString(16)+" expected "+this.targetBlockCRC.toString(16)+")"),this.nextoutput};var f=function(t){if("readByte"in t)return t;var e=new i;return e.pos=0,e.readByte=function(){return t[this.pos++]},e.seek=function(t){this.pos=t},e.eof=function(){return this.pos>=t.length},e},h=function(t){var e=new i,n=!0;if(t)if("number"==typeof t)e.buffer=new Buffer(t),n=!1;else{if("writeByte"in t)return t;e.buffer=t,n=!1}else e.buffer=new Buffer(16384);return e.pos=0,e.writeByte=function(t){if(n&&this.pos>=this.buffer.length){var e=new Buffer(2*this.buffer.length);this.buffer.copy(e),this.buffer=e}this.buffer[this.pos++]=t},e.getBuffer=function(){if(this.pos!==this.buffer.length){if(!n)throw new TypeError("outputsize does not match decoded input");var t=new Buffer(this.pos);this.buffer.copy(t,0,0,this.pos),this.buffer=t}return this.buffer},e._coerced=!0,e};p.Err=c,p.decode=function(t,e,n){for(var r=f(t),i=h(e),o=new p(r,i);!("eof"in r&&r.eof());)if(o._init_block())o._read_bunzip();else{var s=o.reader.read(32)>>>0;if(s!==o.streamCRC&&l(c.DATA_ERROR,"Bad stream CRC (got "+o.streamCRC.toString(16)+" expected "+s.toString(16)+")"),!(n&&"eof"in r)||r.eof())break;o._start_bunzip(r,i)}if("getBuffer"in i)return i.getBuffer()},p.decodeBlock=function(t,e,n){var r=f(t),i=h(n),s=new p(r,i);if(s.reader.seek(e),s._get_next_block()&&(s.blockCRC=new o,s.writeCopies=0,s._read_bunzip()),"getBuffer"in i)return i.getBuffer()},p.table=function(t,e,n){var r=new i;r.delegate=f(t),r.pos=0,r.readByte=function(){return this.pos++,this.delegate.readByte()},r.delegate.eof&&(r.eof=r.delegate.eof.bind(r.delegate));var o=new i;o.pos=0,o.writeByte=function(){this.pos++};for(var s=new p(r,o),a=s.dbufSize;!("eof"in r&&r.eof());){var c=8*r.pos+s.reader.bitOffset;if(s.reader.hasByte&&(c-=8),s._init_block()){var u=o.pos;s._read_bunzip(),e(c,o.pos-u)}else{s.reader.read(32);if(!(n&&"eof"in r)||r.eof())break;s._start_bunzip(r,o),console.assert(s.dbufSize===a,"shouldn't change block size within multistream file")}}},p.Stream=i,p.version=s.version,p.license=s.license,t.exports=p},function(t,e){var n=[0,1,3,7,15,31,63,127,255],r=function(t){this.stream=t,this.bitOffset=0,this.curByte=0,this.hasByte=!1};r.prototype._ensureByte=function(){this.hasByte||(this.curByte=this.stream.readByte(),this.hasByte=!0)},r.prototype.read=function(t){for(var e=0;t>0;){this._ensureByte();var r=8-this.bitOffset;if(t>=r)e<<=r,e|=n[r]&this.curByte,this.hasByte=!1,this.bitOffset=0,t-=r;else{e<<=t;var i=r-t;e|=(this.curByte&n[t]<>i,this.bitOffset+=t,t=0}}return e},r.prototype.seek=function(t){var e=t%8,n=(t-e)/8;this.bitOffset=e,this.stream.seek(n),this.hasByte=!1},r.prototype.pi=function(){var t,e=new Buffer(6);for(t=0;t>>0},this.updateCRC=function(e){t=t<<8^n[255&(t>>>24^e)]},this.updateCRCRun=function(e,r){for(;r-- >0;)t=t<<8^n[255&(t>>>24^e)]}})},function(t){t.exports={name:"seek-bzip",version:"1.0.5",contributors:["C. Scott Ananian (http://cscott.net)","Eli Skeggs","Kevin Kwok","Rob Landley (http://landley.net)"],description:"a pure-JavaScript Node.JS module for random-access decoding bzip2 data",main:"./lib/index.js",repository:{type:"git",url:"https://github.com/cscott/seek-bzip.git"},license:"MIT",bin:{"seek-bunzip":"./bin/seek-bunzip","seek-table":"./bin/seek-bzip-table"},directories:{test:"test"},dependencies:{commander:"~2.8.1"},devDependencies:{fibers:"~1.0.6",mocha:"~2.2.5"},scripts:{test:"mocha"}}},function(t,e,n){var r=n(242),i=n(243),o=n(244);t.exports=function(){var t=[],e=0,n=0,s=!1,a=null,c=null;function u(t){if(!s)try{return function(t){if(n){var e=1e5*n,r=new Int32Array(e),o=[];return null===(c=i.decompress(a,function(t){o.push(t)},r,e,c))?(n=0,!1):(t(Buffer.from(o)),!0)}return n=i.header(a),!0}(function(e){t.queue(e),null!==e&&e.length})}catch(e){return t.emit("error",e),s=!0,!1}}return r(function(r){for(t.push(r),e+=r.length,null===a&&(a=o(function(){return t.shift()}));!s&&e-a.bytesRead+1>=(25e3+1e5*n||4);)u(this)},function(t){for(;!s&&e>a.bytesRead;)u(this);s||(null!==c&&stream.emit("error",new Error("input stream ended prematurely")),this.queue(null))})}},function(t,e,n){var r=n(7);function i(t,e,n){t=t||function(t){this.queue(t)},e=e||function(){this.queue(null)};var i=!1,o=!1,s=[],a=!1,c=new r;function u(){for(;s.length&&!c.paused;){var t=s.shift();if(null===t)return c.emit("end");c.emit("data",t)}}function l(){c.writable=!1,e.call(c),!c.readable&&c.autoDestroy&&c.destroy()}return c.readable=c.writable=!0,c.paused=!1,c.autoDestroy=!(n&&!1===n.autoDestroy),c.write=function(e){return t.call(this,e),!c.paused},c.queue=c.push=function(t){return a?c:(null===t&&(a=!0),s.push(t),u(),c)},c.on("end",function(){c.readable=!1,!c.writable&&c.autoDestroy&&process.nextTick(function(){c.destroy()})}),c.end=function(t){if(!i)return i=!0,arguments.length&&c.write(t),l(),c},c.destroy=function(){if(!o)return o=!0,i=!0,s.length=0,c.writable=c.readable=!1,c.emit("close"),c},c.pause=function(){if(!c.paused)return c.paused=!0,c},c.resume=function(){return c.paused&&(c.paused=!1,c.emit("resume")),u(),c.paused||c.emit("drain"),c},c}t.exports=i,i.through=i},function(t,e){function n(t){this.name="Bzip2Error",this.message=t,this.stack=(new Error).stack}n.prototype=new Error;var r=function(t){throw new n(t)},i={};i.Bzip2Error=n,i.crcTable=[0,79764919,159529838,222504665,319059676,398814059,445009330,507990021,638119352,583659535,797628118,726387553,890018660,835552979,1015980042,944750013,1276238704,1221641927,1167319070,1095957929,1595256236,1540665371,1452775106,1381403509,1780037320,1859660671,1671105958,1733955601,2031960084,2111593891,1889500026,1952343757,2552477408,2632100695,2443283854,2506133561,2334638140,2414271883,2191915858,2254759653,3190512472,3135915759,3081330742,3009969537,2905550212,2850959411,2762807018,2691435357,3560074640,3505614887,3719321342,3648080713,3342211916,3287746299,3467911202,3396681109,4063920168,4143685023,4223187782,4286162673,3779000052,3858754371,3904687514,3967668269,881225847,809987520,1023691545,969234094,662832811,591600412,771767749,717299826,311336399,374308984,453813921,533576470,25881363,88864420,134795389,214552010,2023205639,2086057648,1897238633,1976864222,1804852699,1867694188,1645340341,1724971778,1587496639,1516133128,1461550545,1406951526,1302016099,1230646740,1142491917,1087903418,2896545431,2825181984,2770861561,2716262478,3215044683,3143675388,3055782693,3001194130,2326604591,2389456536,2200899649,2280525302,2578013683,2640855108,2418763421,2498394922,3769900519,3832873040,3912640137,3992402750,4088425275,4151408268,4197601365,4277358050,3334271071,3263032808,3476998961,3422541446,3585640067,3514407732,3694837229,3640369242,1762451694,1842216281,1619975040,1682949687,2047383090,2127137669,1938468188,2001449195,1325665622,1271206113,1183200824,1111960463,1543535498,1489069629,1434599652,1363369299,622672798,568075817,748617968,677256519,907627842,853037301,1067152940,995781531,51762726,131386257,177728840,240578815,269590778,349224269,429104020,491947555,4046411278,4126034873,4172115296,4234965207,3794477266,3874110821,3953728444,4016571915,3609705398,3555108353,3735388376,3664026991,3290680682,3236090077,3449943556,3378572211,3174993278,3120533705,3032266256,2961025959,2923101090,2868635157,2813903052,2742672763,2604032198,2683796849,2461293480,2524268063,2284983834,2364738477,2175806836,2238787779,1569362073,1498123566,1409854455,1355396672,1317987909,1246755826,1192025387,1137557660,2072149281,2135122070,1912620623,1992383480,1753615357,1816598090,1627664531,1707420964,295390185,358241886,404320391,483945776,43990325,106832002,186451547,266083308,932423249,861060070,1041341759,986742920,613929101,542559546,756411363,701822548,3316196985,3244833742,3425377559,3370778784,3601682597,3530312978,3744426955,3689838204,3819031489,3881883254,3928223919,4007849240,4037393693,4100235434,4180117107,4259748804,2310601993,2373574846,2151335527,2231098320,2596047829,2659030626,2470359227,2550115596,2947551409,2876312838,2788305887,2733848168,3165939309,3094707162,3040238851,2985771188],i.array=function(t){var e=0,n=0,r=[0,1,3,7,15,31,63,127,255];return function(i){for(var o=0;i>0;){var s=8-e;i>=s?(o<<=s,o|=r[s]&t[n++],e=0,i-=s):(o<<=i,o|=(t[n]&r[i]<<8-i-e)>>8-i-e,e+=i,i=0)}return o}},i.simple=function(t,e){var n=i.array(t),r=!1,o=1e5*i.header(n),s=new Int32Array(o);do{r=i.decompress(n,e,s,o)}while(!r)},i.header=function(t){this.byteCount=new Int32Array(256),this.symToByte=new Uint8Array(256),this.mtfSymbol=new Int32Array(256),this.selectors=new Uint8Array(32768),4348520!=t(24)&&r("No magic number found");var e=t(8)-48;return(e<1||e>9)&&r("Not a BZIP archive"),e},i.decompress=function(t,e,n,i,o){for(var s=-1,a="",c=0;c<6;c++)a+=t(8).toString(16);if("177245385090"==a)return(0|t(32))!==o&&r("Error in bzip2: crc32 do not match"),t(null),null;"314159265359"!=a&&r("eek not valid bzip data");var u=0|t(32);t(1)&&r("unsupported obsolete version");var l=t(24);l>i&&r("Initial position larger than buffer size");var p=t(16),f=0;for(c=0;c<16;c++)if(p&1<<15-c){var h=t(16);for(m=0;m<16;m++)h&1<<15-m&&(this.symToByte[f++]=16*c+m)}var d=t(3);(d<2||d>6)&&r("another error");var g=t(15);0==g&&r("meh");for(c=0;c=d&&r("whoops another error");var _=this.mtfSymbol[m];for(h=m-1;h>=0;h--)this.mtfSymbol[h+1]=this.mtfSymbol[h];this.mtfSymbol[0]=_,this.selectors[c]=_}var b,y,v,x,w=f+2,k=[],E=new Uint8Array(258),D=new Uint16Array(21);for(m=0;m20)&&r("I gave up a while ago on writing error messages"),t(1);)t(1)?p--:p++;E[c]=p}var S,O;S=O=E[0];for(c=1;cO?O=E[c]:E[c]=g&&r("meow i'm a kitty, that's an error"),C=(b=k[this.selectors[x++]]).base.subarray(1),A=b.limit.subarray(1)),m=t(c=b.minLen);c>b.maxLen&&r("rawr i'm a dinosaur"),!(m<=A[c]);)c++,m=m<<1|t(1);((m-=C[c])<0||m>=258)&&r("moo i'm a cow");var T=b.permute[m];if(0!=T&&1!=T){if(y)for(y=0,v+p>i&&r("Boom."),_=this.symToByte[this.mtfSymbol[0]],this.byteCount[_]+=p;p--;)n[v++]=_;if(T>f)break;v>=i&&r("I can't think of anything. Error"),c=T-1,_=this.mtfSymbol[c];for(h=c-1;h>=0;h--)this.mtfSymbol[h+1]=this.mtfSymbol[h];this.mtfSymbol[0]=_,_=this.symToByte[_],this.byteCount[_]++,n[v++]=_}else y||(y=1,p=0),p+=0==T?y:2*y,y<<=1}(l<0||l>=v)&&r("I'm a monkey and I'm throwing something at someone, namely you");for(m=0,c=0;c<256;c++)h=m+this.byteCount[c],this.byteCount[c]=m,m=h;for(c=0;c>=8,M=-1),v=v;v;){for(v--,B=L,L=255&(j=n[j]),j>>=8,3==M++?(P=L,F=B,L=-1):(P=1,F=L);P--;)s=4294967295&(s<<8^this.crcTable[255&(s>>24^F)]),e(F);L!=B&&(M=0)}return(0|(s=(-1^s)>>>0))!=(0|u)&&r("Error in bzip2: crc32 do not match"),null===o&&(o=0),o=4294967295&(s^(o<<1|o>>>31))},t.exports=i},function(t,e){var n=[0,1,3,7,15,31,63,127,255];t.exports=function(t){var e=0,r=0,i=t(),o=function(s){if(null===s&&0!=e)return e=0,void r++;for(var a=0;s>0;){r>=i.length&&(r=0,i=t());var c=8-e;0===e&&s>0&&o.bytesRead++,s>=c?(a<<=c,a|=n[c]&i[r++],e=0,s-=c):(a<<=s,a|=(i[r]&n[s]<<8-s-e)>>8-s-e,e+=s,s=0)}return a};return o.bytesRead=0,o}},function(t,e,n){"use strict";const r=n(12),i=n(53),o=n(95),s=n(47);t.exports=()=>t=>{if(!Buffer.isBuffer(t)&&!s(t))return Promise.reject(new TypeError(`Expected a Buffer or Stream, got ${typeof t}`));if(Buffer.isBuffer(t)&&(!o(t)||"gz"!==o(t).ext))return Promise.resolve([]);const e=r.createGunzip(),n=i()(e);return Buffer.isBuffer(t)?e.end(t):t.pipe(e),n}},function(t,e,n){"use strict";const r=n(247),i=n(248),o=n(108),s=n(252),a=t=>new Promise((e,n)=>{const r=[];t.readEntry(),t.on("entry",e=>{((t,e)=>{const n={mode:t.externalFileAttributes>>16&65535,mtime:t.getLastModDate(),path:t.fileName};return n.type=((t,e)=>{const n=t.versionMadeBy>>8;return 40960==(61440&e)?"symlink":16384==(61440&e)||0===n&&16===t.externalFileAttributes?"directory":"file"})(t,n.mode),0===n.mode&&"directory"===n.type&&(n.mode=493),0===n.mode&&(n.mode=420),o(e.openReadStream.bind(e))(t).then(i.buffer).then(t=>(n.data=t,"symlink"===n.type&&(n.linkname=t.toString()),n)).catch(t=>{throw e.close(),t})})(e,t).catch(n).then(e=>{r.push(e),t.readEntry()})}),t.on("error",n),t.on("end",()=>e(r))});t.exports=()=>t=>Buffer.isBuffer(t)?r(t)&&"zip"===r(t).ext?o(s.fromBuffer)(t,{lazyEntries:!0}).then(a):Promise.resolve([]):Promise.reject(new TypeError(`Expected a Buffer, got ${typeof t}`))},function(t,e,n){"use strict";t.exports=function(t){return t&&t.length>1?255===t[0]&&216===t[1]&&255===t[2]?{ext:"jpg",mime:"image/jpeg"}:137===t[0]&&80===t[1]&&78===t[2]&&71===t[3]?{ext:"png",mime:"image/png"}:71===t[0]&&73===t[1]&&70===t[2]?{ext:"gif",mime:"image/gif"}:87===t[8]&&69===t[9]&&66===t[10]&&80===t[11]?{ext:"webp",mime:"image/webp"}:70===t[0]&&76===t[1]&&73===t[2]&&70===t[3]?{ext:"flif",mime:"image/flif"}:(73===t[0]&&73===t[1]&&42===t[2]&&0===t[3]||77===t[0]&&77===t[1]&&0===t[2]&&42===t[3])&&67===t[8]&&82===t[9]?{ext:"cr2",mime:"image/x-canon-cr2"}:73===t[0]&&73===t[1]&&42===t[2]&&0===t[3]||77===t[0]&&77===t[1]&&0===t[2]&&42===t[3]?{ext:"tif",mime:"image/tiff"}:66===t[0]&&77===t[1]?{ext:"bmp",mime:"image/bmp"}:73===t[0]&&73===t[1]&&188===t[2]?{ext:"jxr",mime:"image/vnd.ms-photo"}:56===t[0]&&66===t[1]&&80===t[2]&&83===t[3]?{ext:"psd",mime:"image/vnd.adobe.photoshop"}:80===t[0]&&75===t[1]&&3===t[2]&&4===t[3]&&109===t[30]&&105===t[31]&&109===t[32]&&101===t[33]&&116===t[34]&&121===t[35]&&112===t[36]&&101===t[37]&&97===t[38]&&112===t[39]&&112===t[40]&&108===t[41]&&105===t[42]&&99===t[43]&&97===t[44]&&116===t[45]&&105===t[46]&&111===t[47]&&110===t[48]&&47===t[49]&&101===t[50]&&112===t[51]&&117===t[52]&&98===t[53]&&43===t[54]&&122===t[55]&&105===t[56]&&112===t[57]?{ext:"epub",mime:"application/epub+zip"}:80===t[0]&&75===t[1]&&3===t[2]&&4===t[3]&&77===t[30]&&69===t[31]&&84===t[32]&&65===t[33]&&45===t[34]&&73===t[35]&&78===t[36]&&70===t[37]&&47===t[38]&&109===t[39]&&111===t[40]&&122===t[41]&&105===t[42]&&108===t[43]&&108===t[44]&&97===t[45]&&46===t[46]&&114===t[47]&&115===t[48]&&97===t[49]?{ext:"xpi",mime:"application/x-xpinstall"}:80!==t[0]||75!==t[1]||3!==t[2]&&5!==t[2]&&7!==t[2]||4!==t[3]&&6!==t[3]&&8!==t[3]?117===t[257]&&115===t[258]&&116===t[259]&&97===t[260]&&114===t[261]?{ext:"tar",mime:"application/x-tar"}:82!==t[0]||97!==t[1]||114!==t[2]||33!==t[3]||26!==t[4]||7!==t[5]||0!==t[6]&&1!==t[6]?31===t[0]&&139===t[1]&&8===t[2]?{ext:"gz",mime:"application/gzip"}:66===t[0]&&90===t[1]&&104===t[2]?{ext:"bz2",mime:"application/x-bzip2"}:55===t[0]&&122===t[1]&&188===t[2]&&175===t[3]&&39===t[4]&&28===t[5]?{ext:"7z",mime:"application/x-7z-compressed"}:120===t[0]&&1===t[1]?{ext:"dmg",mime:"application/x-apple-diskimage"}:0===t[0]&&0===t[1]&&0===t[2]&&(24===t[3]||32===t[3])&&102===t[4]&&116===t[5]&&121===t[6]&&112===t[7]||51===t[0]&&103===t[1]&&112===t[2]&&53===t[3]||0===t[0]&&0===t[1]&&0===t[2]&&28===t[3]&&102===t[4]&&116===t[5]&&121===t[6]&&112===t[7]&&109===t[8]&&112===t[9]&&52===t[10]&&50===t[11]&&109===t[16]&&112===t[17]&&52===t[18]&&49===t[19]&&109===t[20]&&112===t[21]&&52===t[22]&&50===t[23]&&105===t[24]&&115===t[25]&&111===t[26]&&109===t[27]||0===t[0]&&0===t[1]&&0===t[2]&&28===t[3]&&102===t[4]&&116===t[5]&&121===t[6]&&112===t[7]&&105===t[8]&&115===t[9]&&111===t[10]&&109===t[11]||0===t[0]&&0===t[1]&&0===t[2]&&28===t[3]&&102===t[4]&&116===t[5]&&121===t[6]&&112===t[7]&&109===t[8]&&112===t[9]&&52===t[10]&&50===t[11]&&0===t[12]&&0===t[13]&&0===t[14]&&0===t[15]?{ext:"mp4",mime:"video/mp4"}:0===t[0]&&0===t[1]&&0===t[2]&&28===t[3]&&102===t[4]&&116===t[5]&&121===t[6]&&112===t[7]&&77===t[8]&&52===t[9]&&86===t[10]?{ext:"m4v",mime:"video/x-m4v"}:77===t[0]&&84===t[1]&&104===t[2]&&100===t[3]?{ext:"mid",mime:"audio/midi"}:109===t[31]&&97===t[32]&&116===t[33]&&114===t[34]&&111===t[35]&&115===t[36]&&107===t[37]&&97===t[38]?{ext:"mkv",mime:"video/x-matroska"}:26===t[0]&&69===t[1]&&223===t[2]&&163===t[3]?{ext:"webm",mime:"video/webm"}:0===t[0]&&0===t[1]&&0===t[2]&&20===t[3]&&102===t[4]&&116===t[5]&&121===t[6]&&112===t[7]?{ext:"mov",mime:"video/quicktime"}:82===t[0]&&73===t[1]&&70===t[2]&&70===t[3]&&65===t[8]&&86===t[9]&&73===t[10]?{ext:"avi",mime:"video/x-msvideo"}:48===t[0]&&38===t[1]&&178===t[2]&&117===t[3]&&142===t[4]&&102===t[5]&&207===t[6]&&17===t[7]&&166===t[8]&&217===t[9]?{ext:"wmv",mime:"video/x-ms-wmv"}:0===t[0]&&0===t[1]&&1===t[2]&&"b"===t[3].toString(16)[0]?{ext:"mpg",mime:"video/mpeg"}:73===t[0]&&68===t[1]&&51===t[2]||255===t[0]&&251===t[1]?{ext:"mp3",mime:"audio/mpeg"}:102===t[4]&&116===t[5]&&121===t[6]&&112===t[7]&&77===t[8]&&52===t[9]&&65===t[10]||77===t[0]&&52===t[1]&&65===t[2]&&32===t[3]?{ext:"m4a",mime:"audio/m4a"}:79===t[28]&&112===t[29]&&117===t[30]&&115===t[31]&&72===t[32]&&101===t[33]&&97===t[34]&&100===t[35]?{ext:"opus",mime:"audio/opus"}:79===t[0]&&103===t[1]&&103===t[2]&&83===t[3]?{ext:"ogg",mime:"audio/ogg"}:102===t[0]&&76===t[1]&&97===t[2]&&67===t[3]?{ext:"flac",mime:"audio/x-flac"}:82===t[0]&&73===t[1]&&70===t[2]&&70===t[3]&&87===t[8]&&65===t[9]&&86===t[10]&&69===t[11]?{ext:"wav",mime:"audio/x-wav"}:35===t[0]&&33===t[1]&&65===t[2]&&77===t[3]&&82===t[4]&&10===t[5]?{ext:"amr",mime:"audio/amr"}:37===t[0]&&80===t[1]&&68===t[2]&&70===t[3]?{ext:"pdf",mime:"application/pdf"}:77===t[0]&&90===t[1]?{ext:"exe",mime:"application/x-msdownload"}:67!==t[0]&&70!==t[0]||87!==t[1]||83!==t[2]?123===t[0]&&92===t[1]&&114===t[2]&&116===t[3]&&102===t[4]?{ext:"rtf",mime:"application/rtf"}:119===t[0]&&79===t[1]&&70===t[2]&&70===t[3]&&(0===t[4]&&1===t[5]&&0===t[6]&&0===t[7]||79===t[4]&&84===t[5]&&84===t[6]&&79===t[7])?{ext:"woff",mime:"application/font-woff"}:119===t[0]&&79===t[1]&&70===t[2]&&50===t[3]&&(0===t[4]&&1===t[5]&&0===t[6]&&0===t[7]||79===t[4]&&84===t[5]&&84===t[6]&&79===t[7])?{ext:"woff2",mime:"application/font-woff"}:76===t[34]&&80===t[35]&&(0===t[8]&&0===t[9]&&1===t[10]||1===t[8]&&0===t[9]&&2===t[10]||2===t[8]&&0===t[9]&&2===t[10])?{ext:"eot",mime:"application/octet-stream"}:0===t[0]&&1===t[1]&&0===t[2]&&0===t[3]&&0===t[4]?{ext:"ttf",mime:"application/font-sfnt"}:79===t[0]&&84===t[1]&&84===t[2]&&79===t[3]&&0===t[4]?{ext:"otf",mime:"application/font-sfnt"}:0===t[0]&&0===t[1]&&1===t[2]&&0===t[3]?{ext:"ico",mime:"image/x-icon"}:70===t[0]&&76===t[1]&&86===t[2]&&1===t[3]?{ext:"flv",mime:"video/x-flv"}:37===t[0]&&33===t[1]?{ext:"ps",mime:"application/postscript"}:253===t[0]&&55===t[1]&&122===t[2]&&88===t[3]&&90===t[4]&&0===t[5]?{ext:"xz",mime:"application/x-xz"}:83===t[0]&&81===t[1]&&76===t[2]&&105===t[3]?{ext:"sqlite",mime:"application/x-sqlite3"}:78===t[0]&&69===t[1]&&83===t[2]&&26===t[3]?{ext:"nes",mime:"application/x-nintendo-nes-rom"}:67===t[0]&&114===t[1]&&50===t[2]&&52===t[3]?{ext:"crx",mime:"application/x-google-chrome-extension"}:77===t[0]&&83===t[1]&&67===t[2]&&70===t[3]||73===t[0]&&83===t[1]&&99===t[2]&&40===t[3]?{ext:"cab",mime:"application/vnd.ms-cab-compressed"}:33===t[0]&&60===t[1]&&97===t[2]&&114===t[3]&&99===t[4]&&104===t[5]&&62===t[6]&&10===t[7]&&100===t[8]&&101===t[9]&&98===t[10]&&105===t[11]&&97===t[12]&&110===t[13]&&45===t[14]&&98===t[15]&&105===t[16]&&110===t[17]&&97===t[18]&&114===t[19]&&121===t[20]?{ext:"deb",mime:"application/x-deb"}:33===t[0]&&60===t[1]&&97===t[2]&&114===t[3]&&99===t[4]&&104===t[5]&&62===t[6]?{ext:"ar",mime:"application/x-unix-archive"}:237===t[0]&&171===t[1]&&238===t[2]&&219===t[3]?{ext:"rpm",mime:"application/x-rpm"}:31===t[0]&&160===t[1]||31===t[0]&&157===t[1]?{ext:"Z",mime:"application/x-compress"}:76===t[0]&&90===t[1]&&73===t[2]&&80===t[3]?{ext:"lz",mime:"application/x-lzip"}:208===t[0]&&207===t[1]&&17===t[2]&&224===t[3]&&161===t[4]&&177===t[5]&&26===t[6]&&225===t[7]?{ext:"msi",mime:"application/x-msi"}:null:{ext:"swf",mime:"application/x-shockwave-flash"}:{ext:"rar",mime:"application/x-rar-compressed"}:{ext:"zip",mime:"application/zip"}:null}},function(t,e,n){"use strict";var r=n(249),i=n(107),o=n(251);function s(t,e){if(!t)return r.reject(new Error("Expected a stream"));var n,s,a=(e=i({maxBuffer:1/0},e)).maxBuffer,c=new r(function(r,i){function c(t){t&&(t.bufferedData=n.getBufferedValue()),i(t)}n=o(e),t.once("error",c),t.pipe(n),n.on("data",function(){n.getBufferedLength()>a&&i(new Error("maxBuffer exceeded"))}),n.once("error",c),n.on("end",r),s=function(){t.unpipe&&t.unpipe(n)}});return c.then(s,s),c.then(function(){return n.getBufferedValue()})}t.exports=s,t.exports.buffer=function(t,e){return s(t,i({},e,{encoding:"buffer"}))},t.exports.array=function(t,e){return s(t,i({},e,{array:!0}))}},function(t,e,n){"use strict";t.exports="function"==typeof Promise?Promise:n(250)},function(t,e,n){"use strict";var r,i="pending",o="settled",s="fulfilled",a="rejected",c=function(){},u="undefined"!=typeof global&&void 0!==global.process&&"function"==typeof global.process.emit,l="undefined"==typeof setImmediate?setTimeout:setImmediate,p=[];function f(){for(var t=0;tNumber.MAX_SAFE_INTEGER)throw new Error("zip file too large. only file sizes up to 2^52 are supported due to JavaScript's Number type being an IEEE 754 double.");t.ref();var o=Math.min(65557,e),s=E(o),a=e-s.length;v(t,s,0,o,a,function(c){if(c)return r(c);for(var u=o-22;u>=0;u-=1)if(101010256===s.readUInt32LE(u)){var l=s.slice(u),p=l.readUInt16LE(4);if(0!==p)return r(new Error("multi-disk zip files are not supported: found disk number: "+p));var f=l.readUInt16LE(10),h=l.readUInt32LE(16),g=l.readUInt16LE(20),m=l.length-22;if(g!==m)return r(new Error("invalid comment length. expected: "+m+". found: "+g));var _=i?S(l,22,l.length,!1):l.slice(22);if(65535!==f&&4294967295!==h)return r(null,new d(t,h,e,f,_,n.autoClose,n.lazyEntries,i,n.validateEntrySizes,n.strictFileNames));var b=E(20),y=a+u-b.length;return void v(t,b,0,b.length,y,function(o){if(o)return r(o);if(117853008!==b.readUInt32LE(0))return r(new Error("invalid zip64 end of central directory locator signature"));var s=O(b,8),a=E(56);v(t,a,0,a.length,s,function(o){return o?r(o):101075792!==a.readUInt32LE(0)?r(new Error("invalid zip64 end of central directory record signature")):(f=O(a,32),h=O(a,48),r(null,new d(t,h,e,f,_,n.autoClose,n.lazyEntries,i,n.validateEntrySizes,n.strictFileNames)))})})}r(new Error("end of central directory record signature not found"))})}function d(t,e,n,r,i,o,s,a,u,l){var p=this;c.call(p),p.reader=t,p.reader.on("error",function(t){m(p,t)}),p.reader.once("close",function(){p.emit("close")}),p.readEntryCursor=e,p.fileSize=n,p.entryCount=r,p.comment=i,p.entriesRead=0,p.autoClose=!!o,p.lazyEntries=!!s,p.decodeStrings=!!a,p.validateEntrySizes=!!u,p.strictFileNames=!!l,p.isOpen=!0,p.emittedError=!1,p.lazyEntries||p._readEntry()}function g(t,e){t.autoClose&&t.close(),m(t,e)}function m(t,e){t.emittedError||(t.emittedError=!0,t.emit("error",e))}function _(){}function b(t,e){return new Date(1980+(t>>9&127),(t>>5&15)-1,31&t,e>>11&31,e>>5&63,2*(31&e),0)}function y(t){return-1!==t.indexOf("\\")?"invalid characters in fileName: "+t:/^[a-zA-Z]:/.test(t)||/^\//.test(t)?"absolute path: "+t:-1!==t.split("/").indexOf("..")?"invalid relative path: "+t:null}function v(t,e,n,r,i,o){if(0===r)return setImmediate(function(){o(null,E(0))});t.read(e,n,r,i,function(t,e){return t?o(t):ea.length)return g(t,new Error("extra field length exceeds extra field buffer size"));var h=E(l);a.copy(h,0,p,f),r.extraFields.push({id:u,data:h}),c=f}if(r.fileComment=t.decodeStrings?S(e,o,o+r.fileCommentLength,i):e.slice(o,o+r.fileCommentLength),r.comment=r.fileComment,t.readEntryCursor+=e.length,t.entriesRead+=1,4294967295===r.uncompressedSize||4294967295===r.compressedSize||4294967295===r.relativeOffsetOfLocalHeader){var d=null;for(c=0;cd.length)return g(t,new Error("zip64 extended information extra field does not include uncompressed size"));r.uncompressedSize=O(d,m),m+=8}if(4294967295===r.compressedSize){if(m+8>d.length)return g(t,new Error("zip64 extended information extra field does not include compressed size"));r.compressedSize=O(d,m),m+=8}if(4294967295===r.relativeOffsetOfLocalHeader){if(m+8>d.length)return g(t,new Error("zip64 extended information extra field does not include relative header offset"));r.relativeOffsetOfLocalHeader=O(d,m),m+=8}}if(t.decodeStrings)for(c=0;ct.compressedSize)throw new Error("options.start > entry.compressedSize")}if(null!=e.end){if((s=e.end)<0)throw new Error("options.end < 0");if(s>t.compressedSize)throw new Error("options.end > entry.compressedSize");if(sr.fileSize)return n(new Error("file data overflows file bounds: "+d+" + "+t.compressedSize+" > "+r.fileSize));var m=r.reader.createReadStream({start:d+o,end:d+s}),_=m;if(l){var b=!1,y=i.createInflateRaw();m.on("error",function(t){setImmediate(function(){b||y.emit("error",t)})}),m.pipe(y),r.validateEntrySizes?(_=new x(t.uncompressedSize),y.on("error",function(t){setImmediate(function(){b||_.emit("error",t)})}),y.pipe(_)):_=y,_.destroy=function(){b=!0,y!==_&&y.unpipe(_),m.unpipe(y),m.destroy()}}n(null,_)}finally{r.reader.unref()}})},_.prototype.getLastModDate=function(){return b(this.lastModFileDate,this.lastModFileTime)},_.prototype.isEncrypted=function(){return 0!=(1&this.generalPurposeBitFlag)},_.prototype.isCompressed=function(){return 8===this.compressionMethod},a.inherits(x,u),x.prototype._transform=function(t,e,n){if(this.actualByteCount+=t.length,this.actualByteCount>this.expectedByteCount){var r="too many bytes in the stream. expected "+this.expectedByteCount+". got at least "+this.actualByteCount;return n(new Error(r))}n(null,t)},x.prototype._flush=function(t){if(this.actualByteCount0)){if(t.refCount<0)throw new Error("invalid unref");t.close(function(e){if(e)return t.emit("error",e);t.emit("close")})}},w.prototype.createReadStream=function(t){var e=t.start,n=t.end;if(e===n){var r=new l;return setImmediate(function(){r.end()}),r}var i=this._readStreamForRange(e,n),o=!1,s=new k(this);i.on("error",function(t){setImmediate(function(){o||s.emit("error",t)})}),s.destroy=function(){i.unpipe(s),s.unref(),i.destroy()};var a=new x(n-e);return s.on("error",function(t){setImmediate(function(){o||a.emit("error",t)})}),a.destroy=function(){o=!0,s.unpipe(a),s.destroy()},i.pipe(s).pipe(a)},w.prototype._readStreamForRange=function(t,e){throw new Error("not implemented")},w.prototype.read=function(t,e,n,r,i){var o=this.createReadStream({start:r,end:r+n}),s=new p,a=0;s._write=function(n,r,i){n.copy(t,e+a,0,n.length),a+=n.length,i()},s.on("finish",i),o.on("error",function(t){i(t)}),o.pipe(s)},w.prototype.close=function(t){setImmediate(t)},a.inherits(k,l),k.prototype._flush=function(t){this.unref(),t()},k.prototype.unref=function(t){this.unreffedYet||(this.unreffedYet=!0,this.context.unref())};var E,D="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ";function S(t,e,n,r){if(r)return t.toString("utf8",e,n);for(var i="",o=e;o0)){if(t.refCount<0)throw new Error("invalid unref");t.autoClose&&r.close(t.fd,function(e){e?t.emit("error",e):t.emit("close")})}},i.inherits(f,s),f.prototype._read=function(t){var e=this;if(!e.destroyed){var n=Math.min(e._readableState.highWaterMark,t);if(null!=e.endOffset&&(n=Math.min(n,e.endOffset-e.pos)),n<=0)return e.destroyed=!0,e.push(null),void e.context.unref();e.context.pend.go(function(t){if(e.destroyed)return t();var i=new Buffer(n);r.read(e.context.fd,i,0,n,e.pos,function(n,r){n?e.destroy(n):0===r?(e.destroyed=!0,e.push(null),e.context.unref()):(e.pos+=r,e.push(i.slice(0,r))),t()})})}},f.prototype.destroy=function(t){this.destroyed||(t=t||new Error("stream destroyed"),this.destroyed=!0,this.emit("error",t),this.context.unref())},i.inherits(h,a),h.prototype._write=function(t,e,n){var i=this;if(!i.destroyed){if(i.pos+t.length>i.endOffset){var o=new Error("maximum file length exceeded");return o.code="ETOOBIG",i.destroy(),void n(o)}i.context.pend.go(function(e){if(i.destroyed)return e();r.write(i.context.fd,t,0,t.length,i.pos,function(t,r){t?(i.destroy(),e(),n(t)):(i.bytesWritten+=r,i.pos+=r,i.emit("progress"),e(),n())})})}},h.prototype.destroy=function(){this.destroyed||(this.destroyed=!0,this.context.unref())},i.inherits(d,l),d.prototype.read=function(t,e,n,r,i){var o=r+n,s=o-this.buffer.length,a=s>0?s:n;this.buffer.copy(t,e,r,o),setImmediate(function(){i(null,a)})},d.prototype.write=function(t,e,n,r,i){t.copy(this.buffer,r,e,e+n),setImmediate(function(){i(null,n,t)})},d.prototype.createReadStream=function(t){var e=new c(t=t||{});e.destroyed=!1,e.start=t.start||0,e.endOffset=t.end,e.pos=e.endOffset||this.buffer.length;for(var n=this.buffer.slice(e.start,e.pos),r=0;;){var i=r+this.maxChunkSize;if(i>=n.length){rn.endOffset){var s=new Error("maximum file length exceeded");return s.code="ETOOBIG",n.destroyed=!0,void i(s)}t.copy(e.buffer,n.pos,0,t.length),n.bytesWritten+=t.length,n.pos=o,n.emit("progress"),i()}},n.destroy=function(){n.destroyed=!0},n},d.prototype.ref=function(){this.refCount+=1},d.prototype.unref=function(){if(this.refCount-=1,this.refCount<0)throw new Error("invalid unref")}},function(t,e){function n(){this.pending=0,this.max=1/0,this.listeners=[],this.waiting=[],this.error=null}function r(t){t.pending+=1;var e=!1;return function(r){if(e)throw new Error("callback called twice");if(e=!0,t.error=t.error||r,t.pending-=1,t.waiting.length>0&&t.pending{if("win32"===process.platform){if(/[<>:"|?*]/.test(t.replace(i.parse(t).root,""))){const e=new Error(`Path contains invalid characters: ${t}`);throw e.code="EINVAL",e}}};t.exports=(t,e)=>Promise.resolve().then(()=>{a(t),e=Object.assign({},s,e);const n=o(e.fs.mkdir),r=o(e.fs.stat),c=t=>n(t,e.mode).then(()=>t).catch(e=>{if("ENOENT"===e.code){if(e.message.includes("null bytes")||i.dirname(t)===t)throw e;return c(i.dirname(t)).then(()=>c(t))}return r(t).then(e=>e.isDirectory()?t:Promise.reject()).catch(()=>{throw e})});return c(i.resolve(t))}),t.exports.sync=(t,e)=>{a(t),e=Object.assign({},s,e);const n=t=>{try{e.fs.mkdirSync(t,e.mode)}catch(r){if("ENOENT"===r.code){if(r.message.includes("null bytes")||i.dirname(t)===t)throw r;return n(i.dirname(t)),n(t)}try{if(!e.fs.statSync(t).isDirectory())throw new Error("The path is not a directory")}catch(t){throw r}}return t};return n(i.resolve(t))}},function(t,e,n){"use strict";const r=(t,e)=>(function(){const n=e.promiseModule,r=new Array(arguments.length);for(let t=0;t{e.errorFirst?r.push(function(t,r){if(e.multiArgs){const e=new Array(arguments.length-1);for(let t=1;t{e=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},e);const n=t=>{const n=e=>"string"==typeof e?t===e:e.test(t);return e.include?e.include.some(n):!e.exclude.some(n)};let i;i="function"==typeof t?function(){return e.excludeMain?t.apply(this,arguments):r(t,e).apply(this,arguments)}:Object.create(Object.getPrototypeOf(t));for(const o in t){const s=t[o];i[o]="function"==typeof s&&n(o)?r(s,e):s}return i}},function(t,e,n){"use strict"; /*! * strip-dirs | MIT (c) Shinnosuke Watanabe * https://github.com/shinnn/node-strip-dirs -*/const r=n(1),i=n(3),o=n(258);t.exports=function(t,e,n){if("string"!=typeof t)throw new TypeError(i.inspect(t)+" is not a string. First argument to strip-dirs must be a path string.");if(r.posix.isAbsolute(t)||r.win32.isAbsolute(t))throw new Error(`${t} is an absolute path. strip-dirs requires a relative path.`);if(!o(e,{includeZero:!0}))throw new Error("The Second argument of strip-dirs must be a natural number or 0, but received "+i.inspect(e)+".");if(n){if("object"!=typeof n)throw new TypeError(i.inspect(n)+" is not an object. Expected an object with a boolean `disallowOverflow` property.");if(Array.isArray(n))throw new TypeError(i.inspect(n)+" is an array. Expected an object with a boolean `disallowOverflow` property.");if("disallowOverflow"in n&&"boolean"!=typeof n.disallowOverflow)throw new TypeError(i.inspect(n.disallowOverflow)+" is neither true nor false. `disallowOverflow` option must be a Boolean value.")}else n={disallowOverflow:!1};const a=r.normalize(t).split(r.sep);if(a.length>1&&"."===a[0]&&a.shift(),e>a.length-1){if(n.disallowOverflow)throw new RangeError("Cannot strip more directories than there are.");e=a.length-1}return r.join.apply(null,a.slice(e))}},function(t,e,n){"use strict"; +*/const r=n(1),i=n(3),o=n(258);t.exports=function(t,e,n){if("string"!=typeof t)throw new TypeError(i.inspect(t)+" is not a string. First argument to strip-dirs must be a path string.");if(r.posix.isAbsolute(t)||r.win32.isAbsolute(t))throw new Error(`${t} is an absolute path. strip-dirs requires a relative path.`);if(!o(e,{includeZero:!0}))throw new Error("The Second argument of strip-dirs must be a natural number or 0, but received "+i.inspect(e)+".");if(n){if("object"!=typeof n)throw new TypeError(i.inspect(n)+" is not an object. Expected an object with a boolean `disallowOverflow` property.");if(Array.isArray(n))throw new TypeError(i.inspect(n)+" is an array. Expected an object with a boolean `disallowOverflow` property.");if("disallowOverflow"in n&&"boolean"!=typeof n.disallowOverflow)throw new TypeError(i.inspect(n.disallowOverflow)+" is neither true nor false. `disallowOverflow` option must be a Boolean value.")}else n={disallowOverflow:!1};const s=r.normalize(t).split(r.sep);if(s.length>1&&"."===s[0]&&s.shift(),e>s.length-1){if(n.disallowOverflow)throw new RangeError("Cannot strip more directories than there are.");e=s.length-1}return r.join.apply(null,s.slice(e))}},function(t,e,n){"use strict"; /*! * is-natural-number.js | MIT (c) Shinnosuke Watanabe * https://github.com/shinnn/is-natural-number.js @@ -38,14 +38,14 @@ var r=n(260),i={},o=function(t,e){return o.create(t,e)};o.create=function(t,e){i * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE} * @copyright (c) 2012-2014 Chris Talkington, contributors. */ -var r=n(5),i=n(55),o=n(267),a=n(1),s=n(24),c=n(3).inherits,u=n(278),l=n(11).Transform,p="win32"===process.platform,f=function(t,e){if(!(this instanceof f))return new f(t,e);"string"!=typeof t&&(e=t,t="zip"),e=this.options=s.defaults(e,{highWaterMark:1048576,statConcurrency:4}),l.call(this,e),this._format=!1,this._module=!1,this._pending=0,this._pointer=0,this._entriesCount=0,this._entriesProcessedCount=0,this._fsEntriesTotalBytes=0,this._fsEntriesProcessedBytes=0,this._queue=o.queue(this._onQueueTask.bind(this),1),this._queue.drain=this._onQueueDrain.bind(this),this._statQueue=o.queue(this._onStatQueueTask.bind(this),e.statConcurrency),this._state={aborted:!1,finalize:!1,finalizing:!1,finalized:!1,modulePiped:!1},this._streams=[]};c(f,l),f.prototype._abort=function(){this._state.aborted=!0,this._queue.kill(),this._statQueue.kill(),this._queue.idle()&&this._shutdown()},f.prototype._append=function(t,e){var n={source:null,filepath:t};(e=e||{}).name||(e.name=t),e.sourcePath=t,n.data=e,this._entriesCount++,e.stats&&e.stats instanceof r.Stats?(n=this._updateQueueTaskWithStats(n,e.stats))&&(e.stats.size&&(this._fsEntriesTotalBytes+=e.stats.size),this._queue.push(n)):this._statQueue.push(n)},f.prototype._finalize=function(){this._state.finalizing||this._state.finalized||this._state.aborted||(this._state.finalizing=!0,this._moduleFinalize(),this._state.finalizing=!1,this._state.finalized=!0)},f.prototype._maybeFinalize=function(){return!(this._state.finalizing||this._state.finalized||this._state.aborted)&&(!!(this._state.finalize&&0===this._pending&&this._queue.idle()&&this._statQueue.idle())&&(this._finalize(),!0))},f.prototype._moduleAppend=function(t,e,n){this._state.aborted?n():this._module.append(t,e,function(t){if(this._task=null,this._state.aborted)this._shutdown();else{if(t)return this.emit("error",t),void setImmediate(n);this.emit("entry",e),this._entriesProcessedCount++,e.stats&&e.stats.size&&(this._fsEntriesProcessedBytes+=e.stats.size),this.emit("progress",{entries:{total:this._entriesCount,processed:this._entriesProcessedCount},fs:{totalBytes:this._fsEntriesTotalBytes,processedBytes:this._fsEntriesProcessedBytes}}),setImmediate(n)}}.bind(this))},f.prototype._moduleFinalize=function(){"function"==typeof this._module.finalize?this._module.finalize():"function"==typeof this._module.end?this._module.end():this.emit("error",new u("NOENDMETHOD"))},f.prototype._modulePipe=function(){this._module.on("error",this._onModuleError.bind(this)),this._module.pipe(this),this._state.modulePiped=!0},f.prototype._moduleSupports=function(t){return!(!this._module.supports||!this._module.supports[t])&&this._module.supports[t]},f.prototype._moduleUnpipe=function(){this._module.unpipe(this),this._state.modulePiped=!1},f.prototype._normalizeEntryData=function(t,e){t=s.defaults(t,{type:"file",name:null,date:null,mode:null,prefix:null,sourcePath:null,stats:!1}),e&&!1===t.stats&&(t.stats=e);var n="directory"===t.type;return t.name&&("string"==typeof t.prefix&&""!==t.prefix&&(t.name=t.prefix+"/"+t.name,t.prefix=null),t.name=s.sanitizePath(t.name),"symlink"!==t.type&&"/"===t.name.slice(-1)?(n=!0,t.type="directory"):n&&(t.name+="/")),"number"==typeof t.mode?t.mode&=p?511:4095:t.stats&&null===t.mode?(t.mode=p?511&t.stats.mode:4095&t.stats.mode,p&&n&&(t.mode=493)):null===t.mode&&(t.mode=n?493:420),t.stats&&null===t.date?t.date=t.stats.mtime:t.date=s.dateify(t.date),t},f.prototype._onModuleError=function(t){this.emit("error",t)},f.prototype._onQueueDrain=function(){this._state.finalizing||this._state.finalized||this._state.aborted||this._state.finalize&&0===this._pending&&this._queue.idle()&&this._statQueue.idle()&&this._finalize()},f.prototype._onQueueTask=function(t,e){this._state.finalizing||this._state.finalized||this._state.aborted?e():(this._task=t,this._moduleAppend(t.source,t.data,e))},f.prototype._onStatQueueTask=function(t,e){this._state.finalizing||this._state.finalized||this._state.aborted?e():r.lstat(t.filepath,function(n,r){if(this._state.aborted)setImmediate(e);else{if(n)return this._entriesCount--,this.emit("warning",n),void setImmediate(e);(t=this._updateQueueTaskWithStats(t,r))&&(r.size&&(this._fsEntriesTotalBytes+=r.size),this._queue.push(t)),setImmediate(e)}}.bind(this))},f.prototype._shutdown=function(){this._moduleUnpipe(),this.end()},f.prototype._transform=function(t,e,n){t&&(this._pointer+=t.length),n(null,t)},f.prototype._updateQueueTaskWithStats=function(t,e){if(e.isFile())t.data.type="file",t.data.sourceType="stream",t.source=s.lazyReadStream(t.filepath);else if(e.isDirectory()&&this._moduleSupports("directory"))t.data.name=s.trailingSlashIt(t.data.name),t.data.type="directory",t.data.sourcePath=s.trailingSlashIt(t.filepath),t.data.sourceType="buffer",t.source=Buffer.concat([]);else{if(!e.isSymbolicLink()||!this._moduleSupports("symlink"))return e.isDirectory()?this.emit("warning",new u("DIRECTORYNOTSUPPORTED",t.data)):e.isSymbolicLink()?this.emit("warning",new u("SYMLINKNOTSUPPORTED",t.data)):this.emit("warning",new u("ENTRYNOTSUPPORTED",t.data)),null;var n=r.readlinkSync(t.filepath),i=a.dirname(t.filepath);t.data.type="symlink",t.data.linkname=a.relative(i,a.resolve(i,n)),t.data.sourceType="buffer",t.source=Buffer.concat([])}return t.data=this._normalizeEntryData(t.data,e),t},f.prototype.abort=function(){return this._state.aborted||this._state.finalized?this:(this._abort(),this)},f.prototype.append=function(t,e){if(this._state.finalize||this._state.aborted)return this.emit("error",new u("QUEUECLOSED")),this;if("string"!=typeof(e=this._normalizeEntryData(e)).name||0===e.name.length)return this.emit("error",new u("ENTRYNAMEREQUIRED")),this;if("directory"===e.type&&!this._moduleSupports("directory"))return this.emit("error",new u("DIRECTORYNOTSUPPORTED",{name:e.name})),this;if(t=s.normalizeInputSource(t),Buffer.isBuffer(t))e.sourceType="buffer";else{if(!s.isStream(t))return this.emit("error",new u("INPUTSTEAMBUFFERREQUIRED",{name:e.name})),this;e.sourceType="stream"}return this._entriesCount++,this._queue.push({data:e,source:t}),this},f.prototype.directory=function(t,e,n){if(this._state.finalize||this._state.aborted)return this.emit("error",new u("QUEUECLOSED")),this;if("string"!=typeof t||0===t.length)return this.emit("error",new u("DIRECTORYDIRPATHREQUIRED")),this;this._pending++,!1===e?e="":"string"!=typeof e&&(e=t);var r=!1;"function"==typeof n?(r=n,n={}):"object"!=typeof n&&(n={});var o=i("**",{stat:!1,dot:!0,cwd:t});return o.on("error",function(t){this.emit("error",t)}.bind(this)),o.on("match",function(i){var a=!1,s=Object.assign({},n);s.name=i,s.prefix=e,i=o._makeAbs(i);try{if(r)if(!1===(s=r(s)))a=!0;else if("object"!=typeof s)throw new u("DIRECTORYFUNCTIONINVALIDDATA",{dirpath:t})}catch(t){return void this.emit("error",t)}a||this._append(i,s)}.bind(this)),o.on("end",function(){this._pending--,this._maybeFinalize()}.bind(this)),this},f.prototype.file=function(t,e){return this._state.finalize||this._state.aborted?(this.emit("error",new u("QUEUECLOSED")),this):"string"!=typeof t||0===t.length?(this.emit("error",new u("FILEFILEPATHREQUIRED")),this):(this._append(t,e),this)},f.prototype.glob=function(t,e,n){this._pending++,e=s.defaults(e,{stat:!1});var r=i(t,e);return r.on("error",function(t){this.emit("error",t)}.bind(this)),r.on("match",function(t){var i=Object.assign({},n);e.cwd&&(i.name=t,t=r._makeAbs(t)),this._append(t,i)}.bind(this)),r.on("end",function(){this._pending--,this._maybeFinalize()}.bind(this)),this},f.prototype.finalize=function(){if(this._state.aborted)return this.emit("error",new u("ABORTED")),this;if(this._state.finalize)return this.emit("error",new u("FINALIZING")),this;this._state.finalize=!0,0===this._pending&&this._queue.idle()&&this._statQueue.idle()&&this._finalize();var t=this;return new Promise(function(e,n){var r;t._module.on("end",function(){r||e()}),t._module.on("error",function(t){r=!0,n(t)})})},f.prototype.setFormat=function(t){return this._format?(this.emit("error",new u("FORMATSET")),this):(this._format=t,this)},f.prototype.setModule=function(t){return this._state.aborted?(this.emit("error",new u("ABORTED")),this):this._state.module?(this.emit("error",new u("MODULESET")),this):(this._module=t,this._modulePipe(),this)},f.prototype.symlink=function(t,e){if(this._state.finalize||this._state.aborted)return this.emit("error",new u("QUEUECLOSED")),this;if("string"!=typeof t||0===t.length)return this.emit("error",new u("SYMLINKFILEPATHREQUIRED")),this;if("string"!=typeof e||0===e.length)return this.emit("error",new u("SYMLINKTARGETREQUIRED",{filepath:t})),this;if(!this._moduleSupports("symlink"))return this.emit("error",new u("SYMLINKNOTSUPPORTED",{filepath:t})),this;var n={type:"symlink"};return n.name=t.replace(/\\/g,"/"),n.linkname=e.replace(/\\/g,"/"),n.sourceType="buffer",this._entriesCount++,this._queue.push({data:n,source:Buffer.concat([])}),this},f.prototype.pointer=function(){return this._pointer},f.prototype.use=function(t){return this._streams.push(t),this},t.exports=f},function(t,e,n){var r=n(1),i="win32"===process.platform,o=n(5),a=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function s(t){return"function"==typeof t?t:function(){var t;if(a){var e=new Error;t=function(t){t&&(e.message=t.message,n(t=e))}}else t=n;return t;function n(t){if(t){if(process.throwDeprecation)throw t;if(!process.noDeprecation){var e="fs: missing callback "+(t.stack||t.message);process.traceDeprecation?console.trace(e):console.error(e)}}}}()}r.normalize;if(i)var c=/(.*?)(?:[\/\\]+|$)/g;else c=/(.*?)(?:[\/]+|$)/g;if(i)var u=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else u=/^[\/]*/;e.realpathSync=function(t,e){if(t=r.resolve(t),e&&Object.prototype.hasOwnProperty.call(e,t))return e[t];var n,a,s,l,p=t,f={},h={};function d(){var e=u.exec(t);n=e[0].length,a=e[0],s=e[0],l="",i&&!h[s]&&(o.lstatSync(s),h[s]=!0)}for(d();n=t.length)return e&&(e[h]=t),n(null,t);c.lastIndex=a;var r=c.exec(t);return f=l,l+=r[0],p=f+r[1],a=c.lastIndex,g[p]||e&&e[p]===p?process.nextTick(_):e&&Object.prototype.hasOwnProperty.call(e,p)?v(e[p]):o.lstat(p,b)}function b(t,r){if(t)return n(t);if(!r.isSymbolicLink())return g[p]=!0,e&&(e[p]=p),process.nextTick(_);if(!i){var a=r.dev.toString(32)+":"+r.ino.toString(32);if(d.hasOwnProperty(a))return y(null,d[a],p)}o.stat(p,function(t){if(t)return n(t);o.readlink(p,function(t,e){i||(d[a]=e),y(t,e)})})}function y(t,i,o){if(t)return n(t);var a=r.resolve(f,i);e&&(e[o]=a),v(a)}function v(e){t=r.resolve(e,t.slice(a)),m()}m()}},function(t,e,n){var r=n(263),i=n(264);t.exports=function(t){if(!t)return[];"{}"===t.substr(0,2)&&(t="\\{\\}"+t.substr(2));return function t(e,n){var o=[];var a=i("{","}",e);if(!a||/\$$/.test(a.pre))return[e];var c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(a.body);var u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(a.body);var p=c||u;var m=a.body.indexOf(",")>=0;if(!p&&!m)return a.post.match(/,.*\}/)?(e=a.pre+"{"+a.body+s+a.post,t(e)):[e];var _;if(p)_=a.body.split(/\.\./);else if(1===(_=function t(e){if(!e)return[""];var n=[];var r=i("{","}",e);if(!r)return e.split(",");var o=r.pre;var a=r.body;var s=r.post;var c=o.split(",");c[c.length-1]+="{"+a+"}";var u=t(s);s.length&&(c[c.length-1]+=u.shift(),c.push.apply(c,u));n.push.apply(n,c);return n}(a.body)).length&&1===(_=t(_[0],!1).map(f)).length){var b=a.post.length?t(a.post,!1):[""];return b.map(function(t){return a.pre+_[0]+t})}var y=a.pre;var b=a.post.length?t(a.post,!1):[""];var v;if(p){var x=l(_[0]),w=l(_[1]),k=Math.max(_[0].length,_[1].length),E=3==_.length?Math.abs(l(_[2])):1,D=d,S=w0){var T=new Array(I+1).join("0");A=C<0?"-"+T+A.slice(1):T+A}}v.push(A)}}else v=r(_,function(e){return t(e,!1)});for(var P=0;P=e}},function(t,e){t.exports=function(t,e){for(var r=[],i=0;i=0&&u>0){for(r=[],o=n.length;l>=0&&!s;)l==c?(r.push(l),c=n.indexOf(t,l+1)):1==r.length?s=[r.pop(),u]:((i=r.pop())=0?c:u;r.length&&(s=[o,a])}return s}t.exports=r,r.range=o},function(t,e,n){t.exports=d,d.GlobSync=g;var r=n(5),i=n(109),o=n(56),a=(o.Minimatch,n(55).Glob,n(3),n(1)),s=n(20),c=n(57),u=n(110),l=(u.alphasort,u.alphasorti,u.setopts),p=u.ownProp,f=u.childrenIgnored,h=u.isIgnored;function d(t,e){if("function"==typeof e||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");return new g(t,e).found}function g(t,e){if(!t)throw new Error("must provide pattern");if("function"==typeof e||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof g))return new g(t,e);if(l(this,t,e),this.noprocess)return this;var n=this.minimatch.set.length;this.matches=new Array(n);for(var r=0;rthis.maxLength)return!1;if(!this.stat&&p(this.cache,e)){var i=this.cache[e];if(Array.isArray(i)&&(i="DIR"),!n||"DIR"===i)return i;if(n&&"FILE"===i)return!1}var o=this.statCache[e];if(!o){var a;try{a=r.lstatSync(e)}catch(t){if(t&&("ENOENT"===t.code||"ENOTDIR"===t.code))return this.statCache[e]=!1,!1}if(a&&a.isSymbolicLink())try{o=r.statSync(e)}catch(t){o=a}else o=a}this.statCache[e]=o;i=!0;return o&&(i=o.isDirectory()?"DIR":"FILE"),this.cache[e]=this.cache[e]||i,(!n||"FILE"!==i)&&i},g.prototype._mark=function(t){return u.mark(this,t)},g.prototype._makeAbs=function(t){return u.makeAbs(this,t)}},function(t,e,n){var r=n(106),i=Object.create(null),o=n(48);function a(t){for(var e=t.length,n=[],r=0;rr?(n.splice(0,r),process.nextTick(function(){e.apply(null,o)})):delete i[t]}})}(t))})},function(t,e,n){(function(t){(function(e){"use strict";function n(t,e){e|=0;for(var n=Math.max(t.length-e,0),r=Array(n),i=0;i-1&&t%1==0&&t<=j}function M(t){return null!=t&&L(t.length)&&!function(t){if(!o(t))return!1;var e=I(t);return e==P||e==B||e==T||e==F}(t)}var N={};function z(){}function R(t){return function(){if(null!==t){var e=t;t=null,e.apply(this,arguments)}}}var U="function"==typeof Symbol&&Symbol.iterator,G=function(t){return U&&t[U]&&t[U]()};function H(t){return null!=t&&"object"==typeof t}var $="[object Arguments]";function q(t){return H(t)&&I(t)==$}var W=Object.prototype,V=W.hasOwnProperty,Y=W.propertyIsEnumerable,Z=q(function(){return arguments}())?q:function(t){return H(t)&&V.call(t,"callee")&&!Y.call(t,"callee")},X=Array.isArray,Q="object"==typeof e&&e&&!e.nodeType&&e,J=Q&&"object"==typeof t&&t&&!t.nodeType&&t,K=J&&J.exports===Q?v.Buffer:void 0,tt=(K?K.isBuffer:void 0)||function(){return!1},et=9007199254740991,nt=/^(?:0|[1-9]\d*)$/;function rt(t,e){var n=typeof t;return!!(e=null==e?et:e)&&("number"==n||"symbol"!=n&&nt.test(t))&&t>-1&&t%1==0&&t2&&(i=n(arguments,1)),e){var u={};Nt(o,function(t,e){u[e]=t}),u[t]=i,s=!0,c=Object.create(null),r(e,u)}else o[t]=i,d(t)});a++;var u=m(e[e.length-1]);e.length>1?u(o,i):u(i)}(t,e)})}function h(){if(0===u.length&&0===a)return r(null,o);for(;u.length&&a=0&&n.push(r)}),n}Nt(t,function(e,n){if(!X(e))return f(n,[e]),void l.push(n);var r=e.slice(0,e.length-1),i=r.length;if(0===i)return f(n,e),void l.push(n);p[n]=i,jt(r,function(o){if(!t[o])throw new Error("async.auto task `"+n+"` has a non-existent dependency `"+o+"` in "+r.join(", "));!function(t,e){var n=c[t];n||(n=c[t]=[]);n.push(e)}(o,function(){0===--i&&f(n,e)})})}),function(){var t,e=0;for(;l.length;)t=l.pop(),e++,jt(g(t),function(t){0==--p[t]&&l.push(t)});if(e!==i)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}(),h()};function Gt(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n=r?t:function(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r-1;);return n}(i,o),function(t,e){for(var n=t.length;n--&&Rt(e,t[n],0)>-1;);return n}(i,o)+1).join("")}var ue=/^(?:async\s+)?(function)?\s*[^\(]*\(\s*([^\)]*)\)/m,le=/,/,pe=/(=.+)?(\s*)$/,fe=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm;function he(t,e){var n={};Nt(t,function(t,e){var r,i=g(t),o=!i&&1===t.length||i&&0===t.length;if(X(t))r=t.slice(0,-1),t=t[t.length-1],n[e]=r.concat(r.length>0?a:t);else if(o)n[e]=t;else{if(r=function(t){return t=(t=(t=(t=t.toString().replace(fe,"")).match(ue)[2].replace(" ",""))?t.split(le):[]).map(function(t){return ce(t.replace(pe,""))})}(t),0===t.length&&!i&&0===r.length)throw new Error("autoInject task functions require explicit parameters.");i||r.pop(),n[e]=r.concat(a)}function a(e,n){var i=Gt(r,function(t){return e[t]});i.push(n),m(t).apply(null,i)}}),Ut(n,e)}function de(){this.head=this.tail=null,this.length=0}function ge(t,e){t.length=1,t.head=t.tail=e}function me(t,e,n){if(null==e)e=1;else if(0===e)throw new Error("Concurrency must not be zero");var r=m(t),i=0,o=[],a=!1;function s(t,e,n){if(null!=n&&"function"!=typeof n)throw new Error("task callback must be a function");if(p.started=!0,X(t)||(t=[t]),0===t.length&&p.idle())return l(function(){p.drain()});for(var r=0,i=t.length;r0&&o.splice(s,1),a.callback.apply(a,arguments),null!=e&&p.error(e,a.data)}i<=p.concurrency-p.buffer&&p.unsaturated(),p.idle()&&p.drain(),p.process()}}var u=!1,p={_tasks:new de,concurrency:e,payload:n,saturated:z,unsaturated:z,buffer:e/4,empty:z,drain:z,error:z,started:!1,paused:!1,push:function(t,e){s(t,!1,e)},kill:function(){p.drain=z,p._tasks.empty()},unshift:function(t,e){s(t,!0,e)},remove:function(t){p._tasks.remove(t)},process:function(){if(!u){for(u=!0;!p.paused&&i2&&(o=n(arguments,1)),i[e]=o,r(t)})},function(t){r(t,i)})}function dn(t,e){hn(St,t,e)}function gn(t,e,n){hn(xt(e),t,n)}var mn=function(t,e){var n=m(t);return me(function(t,e){n(t[0],e)},e,1)},_n=function(t,e){var n=mn(t,e);return n.push=function(t,e,r){if(null==r&&(r=z),"function"!=typeof r)throw new Error("task callback must be a function");if(n.started=!0,X(t)||(t=[t]),0===t.length)return l(function(){n.drain()});e=e||0;for(var i=n._tasks.head;i&&e>=i.priority;)i=i.next;for(var o=0,a=t.length;or?1:0}At(t,function(t,e){r(t,function(n,r){if(n)return e(n);e(null,{value:t,criteria:r})})},function(t,e){if(t)return n(t);n(null,Gt(e.sort(i),Ye("value")))})}function Fn(t,e,n){var r=m(t);return i(function(i,o){var a,s=!1;i.push(function(){s||(o.apply(null,arguments),clearTimeout(a))}),a=setTimeout(function(){var e=t.name||"anonymous",r=new Error('Callback function "'+e+'" timed out.');r.code="ETIMEDOUT",n&&(r.info=n),s=!0,o(r)},e),r.apply(null,i)})}var jn=Math.ceil,Ln=Math.max;function Mn(t,e,n,r){var i=m(n);Pt(function(t,e,n,r){for(var i=-1,o=Ln(jn((e-t)/(n||1)),0),a=Array(o);o--;)a[r?o:++i]=t,t+=n;return a}(0,t,1),e,i,r)}var Nn=kt(Mn,1/0),zn=kt(Mn,1);function Rn(t,e,n,r){arguments.length<=3&&(r=n,n=e,e=X(t)?[]:{}),r=R(r||z);var i=m(n);St(t,function(t,n,r){i(e,t,n,r)},function(t){r(t,e)})}function Un(t,e){var r,i=null;e=e||z,Ge(t,function(t,e){m(t)(function(t,o){r=arguments.length>2?n(arguments,1):o,i=t,e(!t)})},function(){e(i,r)})}function Gn(t){return function(){return(t.unmemoized||t).apply(null,arguments)}}function Hn(t,e,r){r=vt(r||z);var i=m(e);if(!t())return r(null);var o=function(e){if(e)return r(e);if(t())return i(o);var a=n(arguments,1);r.apply(null,[null].concat(a))};i(o)}function $n(t,e,n){Hn(function(){return!t.apply(this,arguments)},e,n)}var qn=function(t,e){if(e=R(e||z),!X(t))return e(new Error("First argument to waterfall must be an array of functions"));if(!t.length)return e();var r=0;function i(e){var n=m(t[r++]);e.push(vt(o)),n.apply(null,e)}function o(o){if(o||r===t.length)return e.apply(null,arguments);i(n(arguments,1))}i([])},Wn={apply:r,applyEach:It,applyEachSeries:Ft,asyncify:p,auto:Ut,autoInject:he,cargo:_e,compose:xe,concat:Ee,concatLimit:ke,concatSeries:De,constant:Se,detect:Ie,detectLimit:Te,detectSeries:Pe,dir:Fe,doDuring:je,doUntil:Me,doWhilst:Le,during:Ne,each:Re,eachLimit:Ue,eachOf:St,eachOfLimit:wt,eachOfSeries:be,eachSeries:Ge,ensureAsync:He,every:qe,everyLimit:We,everySeries:Ve,filter:Je,filterLimit:Ke,filterSeries:tn,forever:en,groupBy:rn,groupByLimit:nn,groupBySeries:on,log:an,map:At,mapLimit:Pt,mapSeries:Bt,mapValues:cn,mapValuesLimit:sn,mapValuesSeries:un,memoize:pn,nextTick:fn,parallel:dn,parallelLimit:gn,priorityQueue:_n,queue:mn,race:bn,reduce:ye,reduceRight:yn,reflect:vn,reflectAll:xn,reject:kn,rejectLimit:En,rejectSeries:Dn,retry:On,retryable:Cn,seq:ve,series:An,setImmediate:l,some:In,someLimit:Tn,someSeries:Pn,sortBy:Bn,timeout:Fn,times:Nn,timesLimit:Mn,timesSeries:zn,transform:Rn,tryEach:Un,unmemoize:Gn,until:$n,waterfall:qn,whilst:Hn,all:qe,allLimit:We,allSeries:Ve,any:In,anyLimit:Tn,anySeries:Pn,find:Ie,findLimit:Te,findSeries:Pe,forEach:Re,forEachSeries:Ge,forEachLimit:Ue,forEachOf:St,forEachOfSeries:be,forEachOfLimit:wt,inject:ye,foldl:ye,foldr:yn,select:Je,selectLimit:Ke,selectSeries:tn,wrapSync:p};e.default=Wn,e.apply=r,e.applyEach=It,e.applyEachSeries=Ft,e.asyncify=p,e.auto=Ut,e.autoInject=he,e.cargo=_e,e.compose=xe,e.concat=Ee,e.concatLimit=ke,e.concatSeries=De,e.constant=Se,e.detect=Ie,e.detectLimit=Te,e.detectSeries=Pe,e.dir=Fe,e.doDuring=je,e.doUntil=Me,e.doWhilst=Le,e.during=Ne,e.each=Re,e.eachLimit=Ue,e.eachOf=St,e.eachOfLimit=wt,e.eachOfSeries=be,e.eachSeries=Ge,e.ensureAsync=He,e.every=qe,e.everyLimit=We,e.everySeries=Ve,e.filter=Je,e.filterLimit=Ke,e.filterSeries=tn,e.forever=en,e.groupBy=rn,e.groupByLimit=nn,e.groupBySeries=on,e.log=an,e.map=At,e.mapLimit=Pt,e.mapSeries=Bt,e.mapValues=cn,e.mapValuesLimit=sn,e.mapValuesSeries=un,e.memoize=pn,e.nextTick=fn,e.parallel=dn,e.parallelLimit=gn,e.priorityQueue=_n,e.queue=mn,e.race=bn,e.reduce=ye,e.reduceRight=yn,e.reflect=vn,e.reflectAll=xn,e.reject=kn,e.rejectLimit=En,e.rejectSeries=Dn,e.retry=On,e.retryable=Cn,e.seq=ve,e.series=An,e.setImmediate=l,e.some=In,e.someLimit=Tn,e.someSeries=Pn,e.sortBy=Bn,e.timeout=Fn,e.times=Nn,e.timesLimit=Mn,e.timesSeries=zn,e.transform=Rn,e.tryEach=Un,e.unmemoize=Gn,e.until=$n,e.waterfall=qn,e.whilst=Hn,e.all=qe,e.allLimit=We,e.allSeries=Ve,e.any=In,e.anyLimit=Tn,e.anySeries=Pn,e.find=Ie,e.findLimit=Te,e.findSeries=Pe,e.forEach=Re,e.forEachSeries=Ge,e.forEachLimit=Ue,e.forEachOf=St,e.forEachOfSeries=be,e.forEachOfLimit=wt,e.inject=ye,e.foldl=ye,e.foldr=yn,e.select=Je,e.selectLimit=Ke,e.selectSeries=tn,e.wrapSync=p,Object.defineProperty(e,"__esModule",{value:!0})})(e)}).call(this,n(132)(t))},function(t,e,n){var r=n(3),i=n(269);function o(t,e,n){t[e]=function(){return delete t[e],n.apply(this,arguments),this[e].apply(this,arguments)}}function a(t,e){if(!(this instanceof a))return new a(t,e);i.call(this,e),o(this,"_read",function(){var n=t.call(this,e),r=this.emit.bind(this,"error");n.on("error",r),n.pipe(this)}),this.emit("readable")}function s(t,e){if(!(this instanceof s))return new s(t,e);i.call(this,e),o(this,"_write",function(){var n=t.call(this,e),r=this.emit.bind(this,"error");n.on("error",r),this.pipe(n)}),this.emit("writable")}t.exports={Readable:a,Writable:s},r.inherits(a,i),r.inherits(s,i)},function(t,e,n){t.exports=n(11).PassThrough},function(t,e){ +var r=n(5),i=n(55),o=n(267),s=n(1),a=n(24),c=n(3).inherits,u=n(278),l=n(11).Transform,p="win32"===process.platform,f=function(t,e){if(!(this instanceof f))return new f(t,e);"string"!=typeof t&&(e=t,t="zip"),e=this.options=a.defaults(e,{highWaterMark:1048576,statConcurrency:4}),l.call(this,e),this._format=!1,this._module=!1,this._pending=0,this._pointer=0,this._entriesCount=0,this._entriesProcessedCount=0,this._fsEntriesTotalBytes=0,this._fsEntriesProcessedBytes=0,this._queue=o.queue(this._onQueueTask.bind(this),1),this._queue.drain=this._onQueueDrain.bind(this),this._statQueue=o.queue(this._onStatQueueTask.bind(this),e.statConcurrency),this._state={aborted:!1,finalize:!1,finalizing:!1,finalized:!1,modulePiped:!1},this._streams=[]};c(f,l),f.prototype._abort=function(){this._state.aborted=!0,this._queue.kill(),this._statQueue.kill(),this._queue.idle()&&this._shutdown()},f.prototype._append=function(t,e){var n={source:null,filepath:t};(e=e||{}).name||(e.name=t),e.sourcePath=t,n.data=e,this._entriesCount++,e.stats&&e.stats instanceof r.Stats?(n=this._updateQueueTaskWithStats(n,e.stats))&&(e.stats.size&&(this._fsEntriesTotalBytes+=e.stats.size),this._queue.push(n)):this._statQueue.push(n)},f.prototype._finalize=function(){this._state.finalizing||this._state.finalized||this._state.aborted||(this._state.finalizing=!0,this._moduleFinalize(),this._state.finalizing=!1,this._state.finalized=!0)},f.prototype._maybeFinalize=function(){return!(this._state.finalizing||this._state.finalized||this._state.aborted)&&(!!(this._state.finalize&&0===this._pending&&this._queue.idle()&&this._statQueue.idle())&&(this._finalize(),!0))},f.prototype._moduleAppend=function(t,e,n){this._state.aborted?n():this._module.append(t,e,function(t){if(this._task=null,this._state.aborted)this._shutdown();else{if(t)return this.emit("error",t),void setImmediate(n);this.emit("entry",e),this._entriesProcessedCount++,e.stats&&e.stats.size&&(this._fsEntriesProcessedBytes+=e.stats.size),this.emit("progress",{entries:{total:this._entriesCount,processed:this._entriesProcessedCount},fs:{totalBytes:this._fsEntriesTotalBytes,processedBytes:this._fsEntriesProcessedBytes}}),setImmediate(n)}}.bind(this))},f.prototype._moduleFinalize=function(){"function"==typeof this._module.finalize?this._module.finalize():"function"==typeof this._module.end?this._module.end():this.emit("error",new u("NOENDMETHOD"))},f.prototype._modulePipe=function(){this._module.on("error",this._onModuleError.bind(this)),this._module.pipe(this),this._state.modulePiped=!0},f.prototype._moduleSupports=function(t){return!(!this._module.supports||!this._module.supports[t])&&this._module.supports[t]},f.prototype._moduleUnpipe=function(){this._module.unpipe(this),this._state.modulePiped=!1},f.prototype._normalizeEntryData=function(t,e){t=a.defaults(t,{type:"file",name:null,date:null,mode:null,prefix:null,sourcePath:null,stats:!1}),e&&!1===t.stats&&(t.stats=e);var n="directory"===t.type;return t.name&&("string"==typeof t.prefix&&""!==t.prefix&&(t.name=t.prefix+"/"+t.name,t.prefix=null),t.name=a.sanitizePath(t.name),"symlink"!==t.type&&"/"===t.name.slice(-1)?(n=!0,t.type="directory"):n&&(t.name+="/")),"number"==typeof t.mode?t.mode&=p?511:4095:t.stats&&null===t.mode?(t.mode=p?511&t.stats.mode:4095&t.stats.mode,p&&n&&(t.mode=493)):null===t.mode&&(t.mode=n?493:420),t.stats&&null===t.date?t.date=t.stats.mtime:t.date=a.dateify(t.date),t},f.prototype._onModuleError=function(t){this.emit("error",t)},f.prototype._onQueueDrain=function(){this._state.finalizing||this._state.finalized||this._state.aborted||this._state.finalize&&0===this._pending&&this._queue.idle()&&this._statQueue.idle()&&this._finalize()},f.prototype._onQueueTask=function(t,e){this._state.finalizing||this._state.finalized||this._state.aborted?e():(this._task=t,this._moduleAppend(t.source,t.data,e))},f.prototype._onStatQueueTask=function(t,e){this._state.finalizing||this._state.finalized||this._state.aborted?e():r.lstat(t.filepath,function(n,r){if(this._state.aborted)setImmediate(e);else{if(n)return this._entriesCount--,this.emit("warning",n),void setImmediate(e);(t=this._updateQueueTaskWithStats(t,r))&&(r.size&&(this._fsEntriesTotalBytes+=r.size),this._queue.push(t)),setImmediate(e)}}.bind(this))},f.prototype._shutdown=function(){this._moduleUnpipe(),this.end()},f.prototype._transform=function(t,e,n){t&&(this._pointer+=t.length),n(null,t)},f.prototype._updateQueueTaskWithStats=function(t,e){if(e.isFile())t.data.type="file",t.data.sourceType="stream",t.source=a.lazyReadStream(t.filepath);else if(e.isDirectory()&&this._moduleSupports("directory"))t.data.name=a.trailingSlashIt(t.data.name),t.data.type="directory",t.data.sourcePath=a.trailingSlashIt(t.filepath),t.data.sourceType="buffer",t.source=Buffer.concat([]);else{if(!e.isSymbolicLink()||!this._moduleSupports("symlink"))return e.isDirectory()?this.emit("warning",new u("DIRECTORYNOTSUPPORTED",t.data)):e.isSymbolicLink()?this.emit("warning",new u("SYMLINKNOTSUPPORTED",t.data)):this.emit("warning",new u("ENTRYNOTSUPPORTED",t.data)),null;var n=r.readlinkSync(t.filepath),i=s.dirname(t.filepath);t.data.type="symlink",t.data.linkname=s.relative(i,s.resolve(i,n)),t.data.sourceType="buffer",t.source=Buffer.concat([])}return t.data=this._normalizeEntryData(t.data,e),t},f.prototype.abort=function(){return this._state.aborted||this._state.finalized?this:(this._abort(),this)},f.prototype.append=function(t,e){if(this._state.finalize||this._state.aborted)return this.emit("error",new u("QUEUECLOSED")),this;if("string"!=typeof(e=this._normalizeEntryData(e)).name||0===e.name.length)return this.emit("error",new u("ENTRYNAMEREQUIRED")),this;if("directory"===e.type&&!this._moduleSupports("directory"))return this.emit("error",new u("DIRECTORYNOTSUPPORTED",{name:e.name})),this;if(t=a.normalizeInputSource(t),Buffer.isBuffer(t))e.sourceType="buffer";else{if(!a.isStream(t))return this.emit("error",new u("INPUTSTEAMBUFFERREQUIRED",{name:e.name})),this;e.sourceType="stream"}return this._entriesCount++,this._queue.push({data:e,source:t}),this},f.prototype.directory=function(t,e,n){if(this._state.finalize||this._state.aborted)return this.emit("error",new u("QUEUECLOSED")),this;if("string"!=typeof t||0===t.length)return this.emit("error",new u("DIRECTORYDIRPATHREQUIRED")),this;this._pending++,!1===e?e="":"string"!=typeof e&&(e=t);var r=!1;"function"==typeof n?(r=n,n={}):"object"!=typeof n&&(n={});var o=i("**",{stat:!1,dot:!0,cwd:t});return o.on("error",function(t){this.emit("error",t)}.bind(this)),o.on("match",function(i){var s=!1,a=Object.assign({},n);a.name=i,a.prefix=e,i=o._makeAbs(i);try{if(r)if(!1===(a=r(a)))s=!0;else if("object"!=typeof a)throw new u("DIRECTORYFUNCTIONINVALIDDATA",{dirpath:t})}catch(t){return void this.emit("error",t)}s||this._append(i,a)}.bind(this)),o.on("end",function(){this._pending--,this._maybeFinalize()}.bind(this)),this},f.prototype.file=function(t,e){return this._state.finalize||this._state.aborted?(this.emit("error",new u("QUEUECLOSED")),this):"string"!=typeof t||0===t.length?(this.emit("error",new u("FILEFILEPATHREQUIRED")),this):(this._append(t,e),this)},f.prototype.glob=function(t,e,n){this._pending++,e=a.defaults(e,{stat:!1});var r=i(t,e);return r.on("error",function(t){this.emit("error",t)}.bind(this)),r.on("match",function(t){var i=Object.assign({},n);e.cwd&&(i.name=t,t=r._makeAbs(t)),this._append(t,i)}.bind(this)),r.on("end",function(){this._pending--,this._maybeFinalize()}.bind(this)),this},f.prototype.finalize=function(){if(this._state.aborted)return this.emit("error",new u("ABORTED")),this;if(this._state.finalize)return this.emit("error",new u("FINALIZING")),this;this._state.finalize=!0,0===this._pending&&this._queue.idle()&&this._statQueue.idle()&&this._finalize();var t=this;return new Promise(function(e,n){var r;t._module.on("end",function(){r||e()}),t._module.on("error",function(t){r=!0,n(t)})})},f.prototype.setFormat=function(t){return this._format?(this.emit("error",new u("FORMATSET")),this):(this._format=t,this)},f.prototype.setModule=function(t){return this._state.aborted?(this.emit("error",new u("ABORTED")),this):this._state.module?(this.emit("error",new u("MODULESET")),this):(this._module=t,this._modulePipe(),this)},f.prototype.symlink=function(t,e){if(this._state.finalize||this._state.aborted)return this.emit("error",new u("QUEUECLOSED")),this;if("string"!=typeof t||0===t.length)return this.emit("error",new u("SYMLINKFILEPATHREQUIRED")),this;if("string"!=typeof e||0===e.length)return this.emit("error",new u("SYMLINKTARGETREQUIRED",{filepath:t})),this;if(!this._moduleSupports("symlink"))return this.emit("error",new u("SYMLINKNOTSUPPORTED",{filepath:t})),this;var n={type:"symlink"};return n.name=t.replace(/\\/g,"/"),n.linkname=e.replace(/\\/g,"/"),n.sourceType="buffer",this._entriesCount++,this._queue.push({data:n,source:Buffer.concat([])}),this},f.prototype.pointer=function(){return this._pointer},f.prototype.use=function(t){return this._streams.push(t),this},t.exports=f},function(t,e,n){var r=n(1),i="win32"===process.platform,o=n(5),s=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function a(t){return"function"==typeof t?t:function(){var t;if(s){var e=new Error;t=function(t){t&&(e.message=t.message,n(t=e))}}else t=n;return t;function n(t){if(t){if(process.throwDeprecation)throw t;if(!process.noDeprecation){var e="fs: missing callback "+(t.stack||t.message);process.traceDeprecation?console.trace(e):console.error(e)}}}}()}r.normalize;if(i)var c=/(.*?)(?:[\/\\]+|$)/g;else c=/(.*?)(?:[\/]+|$)/g;if(i)var u=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else u=/^[\/]*/;e.realpathSync=function(t,e){if(t=r.resolve(t),e&&Object.prototype.hasOwnProperty.call(e,t))return e[t];var n,s,a,l,p=t,f={},h={};function d(){var e=u.exec(t);n=e[0].length,s=e[0],a=e[0],l="",i&&!h[a]&&(o.lstatSync(a),h[a]=!0)}for(d();n=t.length)return e&&(e[h]=t),n(null,t);c.lastIndex=s;var r=c.exec(t);return f=l,l+=r[0],p=f+r[1],s=c.lastIndex,g[p]||e&&e[p]===p?process.nextTick(_):e&&Object.prototype.hasOwnProperty.call(e,p)?v(e[p]):o.lstat(p,b)}function b(t,r){if(t)return n(t);if(!r.isSymbolicLink())return g[p]=!0,e&&(e[p]=p),process.nextTick(_);if(!i){var s=r.dev.toString(32)+":"+r.ino.toString(32);if(d.hasOwnProperty(s))return y(null,d[s],p)}o.stat(p,function(t){if(t)return n(t);o.readlink(p,function(t,e){i||(d[s]=e),y(t,e)})})}function y(t,i,o){if(t)return n(t);var s=r.resolve(f,i);e&&(e[o]=s),v(s)}function v(e){t=r.resolve(e,t.slice(s)),m()}m()}},function(t,e,n){var r=n(263),i=n(264);t.exports=function(t){if(!t)return[];"{}"===t.substr(0,2)&&(t="\\{\\}"+t.substr(2));return function t(e,n){var o=[];var s=i("{","}",e);if(!s||/\$$/.test(s.pre))return[e];var c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body);var u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body);var p=c||u;var m=s.body.indexOf(",")>=0;if(!p&&!m)return s.post.match(/,.*\}/)?(e=s.pre+"{"+s.body+a+s.post,t(e)):[e];var _;if(p)_=s.body.split(/\.\./);else if(1===(_=function t(e){if(!e)return[""];var n=[];var r=i("{","}",e);if(!r)return e.split(",");var o=r.pre;var s=r.body;var a=r.post;var c=o.split(",");c[c.length-1]+="{"+s+"}";var u=t(a);a.length&&(c[c.length-1]+=u.shift(),c.push.apply(c,u));n.push.apply(n,c);return n}(s.body)).length&&1===(_=t(_[0],!1).map(f)).length){var b=s.post.length?t(s.post,!1):[""];return b.map(function(t){return s.pre+_[0]+t})}var y=s.pre;var b=s.post.length?t(s.post,!1):[""];var v;if(p){var x=l(_[0]),w=l(_[1]),k=Math.max(_[0].length,_[1].length),E=3==_.length?Math.abs(l(_[2])):1,D=d,S=w0){var T=new Array(I+1).join("0");A=C<0?"-"+T+A.slice(1):T+A}}v.push(A)}}else v=r(_,function(e){return t(e,!1)});for(var P=0;P=e}},function(t,e){t.exports=function(t,e){for(var r=[],i=0;i=0&&u>0){for(r=[],o=n.length;l>=0&&!a;)l==c?(r.push(l),c=n.indexOf(t,l+1)):1==r.length?a=[r.pop(),u]:((i=r.pop())=0?c:u;r.length&&(a=[o,s])}return a}t.exports=r,r.range=o},function(t,e,n){t.exports=d,d.GlobSync=g;var r=n(5),i=n(109),o=n(56),s=(o.Minimatch,n(55).Glob,n(3),n(1)),a=n(20),c=n(57),u=n(110),l=(u.alphasort,u.alphasorti,u.setopts),p=u.ownProp,f=u.childrenIgnored,h=u.isIgnored;function d(t,e){if("function"==typeof e||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");return new g(t,e).found}function g(t,e){if(!t)throw new Error("must provide pattern");if("function"==typeof e||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof g))return new g(t,e);if(l(this,t,e),this.noprocess)return this;var n=this.minimatch.set.length;this.matches=new Array(n);for(var r=0;rthis.maxLength)return!1;if(!this.stat&&p(this.cache,e)){var i=this.cache[e];if(Array.isArray(i)&&(i="DIR"),!n||"DIR"===i)return i;if(n&&"FILE"===i)return!1}var o=this.statCache[e];if(!o){var s;try{s=r.lstatSync(e)}catch(t){if(t&&("ENOENT"===t.code||"ENOTDIR"===t.code))return this.statCache[e]=!1,!1}if(s&&s.isSymbolicLink())try{o=r.statSync(e)}catch(t){o=s}else o=s}this.statCache[e]=o;i=!0;return o&&(i=o.isDirectory()?"DIR":"FILE"),this.cache[e]=this.cache[e]||i,(!n||"FILE"!==i)&&i},g.prototype._mark=function(t){return u.mark(this,t)},g.prototype._makeAbs=function(t){return u.makeAbs(this,t)}},function(t,e,n){var r=n(106),i=Object.create(null),o=n(48);function s(t){for(var e=t.length,n=[],r=0;rr?(n.splice(0,r),process.nextTick(function(){e.apply(null,o)})):delete i[t]}})}(t))})},function(t,e,n){(function(t){(function(e){"use strict";function n(t,e){e|=0;for(var n=Math.max(t.length-e,0),r=Array(n),i=0;i-1&&t%1==0&&t<=j}function M(t){return null!=t&&L(t.length)&&!function(t){if(!o(t))return!1;var e=I(t);return e==P||e==B||e==T||e==F}(t)}var N={};function z(){}function R(t){return function(){if(null!==t){var e=t;t=null,e.apply(this,arguments)}}}var U="function"==typeof Symbol&&Symbol.iterator,G=function(t){return U&&t[U]&&t[U]()};function H(t){return null!=t&&"object"==typeof t}var $="[object Arguments]";function W(t){return H(t)&&I(t)==$}var q=Object.prototype,V=q.hasOwnProperty,Y=q.propertyIsEnumerable,Z=W(function(){return arguments}())?W:function(t){return H(t)&&V.call(t,"callee")&&!Y.call(t,"callee")},X=Array.isArray,Q="object"==typeof e&&e&&!e.nodeType&&e,J=Q&&"object"==typeof t&&t&&!t.nodeType&&t,K=J&&J.exports===Q?v.Buffer:void 0,tt=(K?K.isBuffer:void 0)||function(){return!1},et=9007199254740991,nt=/^(?:0|[1-9]\d*)$/;function rt(t,e){var n=typeof t;return!!(e=null==e?et:e)&&("number"==n||"symbol"!=n&&nt.test(t))&&t>-1&&t%1==0&&t2&&(i=n(arguments,1)),e){var u={};Nt(o,function(t,e){u[e]=t}),u[t]=i,a=!0,c=Object.create(null),r(e,u)}else o[t]=i,d(t)});s++;var u=m(e[e.length-1]);e.length>1?u(o,i):u(i)}(t,e)})}function h(){if(0===u.length&&0===s)return r(null,o);for(;u.length&&s=0&&n.push(r)}),n}Nt(t,function(e,n){if(!X(e))return f(n,[e]),void l.push(n);var r=e.slice(0,e.length-1),i=r.length;if(0===i)return f(n,e),void l.push(n);p[n]=i,jt(r,function(o){if(!t[o])throw new Error("async.auto task `"+n+"` has a non-existent dependency `"+o+"` in "+r.join(", "));!function(t,e){var n=c[t];n||(n=c[t]=[]);n.push(e)}(o,function(){0===--i&&f(n,e)})})}),function(){var t,e=0;for(;l.length;)t=l.pop(),e++,jt(g(t),function(t){0==--p[t]&&l.push(t)});if(e!==i)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}(),h()};function Gt(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n=r?t:function(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r-1;);return n}(i,o),function(t,e){for(var n=t.length;n--&&Rt(e,t[n],0)>-1;);return n}(i,o)+1).join("")}var ue=/^(?:async\s+)?(function)?\s*[^\(]*\(\s*([^\)]*)\)/m,le=/,/,pe=/(=.+)?(\s*)$/,fe=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm;function he(t,e){var n={};Nt(t,function(t,e){var r,i=g(t),o=!i&&1===t.length||i&&0===t.length;if(X(t))r=t.slice(0,-1),t=t[t.length-1],n[e]=r.concat(r.length>0?s:t);else if(o)n[e]=t;else{if(r=function(t){return t=(t=(t=(t=t.toString().replace(fe,"")).match(ue)[2].replace(" ",""))?t.split(le):[]).map(function(t){return ce(t.replace(pe,""))})}(t),0===t.length&&!i&&0===r.length)throw new Error("autoInject task functions require explicit parameters.");i||r.pop(),n[e]=r.concat(s)}function s(e,n){var i=Gt(r,function(t){return e[t]});i.push(n),m(t).apply(null,i)}}),Ut(n,e)}function de(){this.head=this.tail=null,this.length=0}function ge(t,e){t.length=1,t.head=t.tail=e}function me(t,e,n){if(null==e)e=1;else if(0===e)throw new Error("Concurrency must not be zero");var r=m(t),i=0,o=[],s=!1;function a(t,e,n){if(null!=n&&"function"!=typeof n)throw new Error("task callback must be a function");if(p.started=!0,X(t)||(t=[t]),0===t.length&&p.idle())return l(function(){p.drain()});for(var r=0,i=t.length;r0&&o.splice(a,1),s.callback.apply(s,arguments),null!=e&&p.error(e,s.data)}i<=p.concurrency-p.buffer&&p.unsaturated(),p.idle()&&p.drain(),p.process()}}var u=!1,p={_tasks:new de,concurrency:e,payload:n,saturated:z,unsaturated:z,buffer:e/4,empty:z,drain:z,error:z,started:!1,paused:!1,push:function(t,e){a(t,!1,e)},kill:function(){p.drain=z,p._tasks.empty()},unshift:function(t,e){a(t,!0,e)},remove:function(t){p._tasks.remove(t)},process:function(){if(!u){for(u=!0;!p.paused&&i2&&(o=n(arguments,1)),i[e]=o,r(t)})},function(t){r(t,i)})}function dn(t,e){hn(St,t,e)}function gn(t,e,n){hn(xt(e),t,n)}var mn=function(t,e){var n=m(t);return me(function(t,e){n(t[0],e)},e,1)},_n=function(t,e){var n=mn(t,e);return n.push=function(t,e,r){if(null==r&&(r=z),"function"!=typeof r)throw new Error("task callback must be a function");if(n.started=!0,X(t)||(t=[t]),0===t.length)return l(function(){n.drain()});e=e||0;for(var i=n._tasks.head;i&&e>=i.priority;)i=i.next;for(var o=0,s=t.length;or?1:0}At(t,function(t,e){r(t,function(n,r){if(n)return e(n);e(null,{value:t,criteria:r})})},function(t,e){if(t)return n(t);n(null,Gt(e.sort(i),Ye("value")))})}function Fn(t,e,n){var r=m(t);return i(function(i,o){var s,a=!1;i.push(function(){a||(o.apply(null,arguments),clearTimeout(s))}),s=setTimeout(function(){var e=t.name||"anonymous",r=new Error('Callback function "'+e+'" timed out.');r.code="ETIMEDOUT",n&&(r.info=n),a=!0,o(r)},e),r.apply(null,i)})}var jn=Math.ceil,Ln=Math.max;function Mn(t,e,n,r){var i=m(n);Pt(function(t,e,n,r){for(var i=-1,o=Ln(jn((e-t)/(n||1)),0),s=Array(o);o--;)s[r?o:++i]=t,t+=n;return s}(0,t,1),e,i,r)}var Nn=kt(Mn,1/0),zn=kt(Mn,1);function Rn(t,e,n,r){arguments.length<=3&&(r=n,n=e,e=X(t)?[]:{}),r=R(r||z);var i=m(n);St(t,function(t,n,r){i(e,t,n,r)},function(t){r(t,e)})}function Un(t,e){var r,i=null;e=e||z,Ge(t,function(t,e){m(t)(function(t,o){r=arguments.length>2?n(arguments,1):o,i=t,e(!t)})},function(){e(i,r)})}function Gn(t){return function(){return(t.unmemoized||t).apply(null,arguments)}}function Hn(t,e,r){r=vt(r||z);var i=m(e);if(!t())return r(null);var o=function(e){if(e)return r(e);if(t())return i(o);var s=n(arguments,1);r.apply(null,[null].concat(s))};i(o)}function $n(t,e,n){Hn(function(){return!t.apply(this,arguments)},e,n)}var Wn=function(t,e){if(e=R(e||z),!X(t))return e(new Error("First argument to waterfall must be an array of functions"));if(!t.length)return e();var r=0;function i(e){var n=m(t[r++]);e.push(vt(o)),n.apply(null,e)}function o(o){if(o||r===t.length)return e.apply(null,arguments);i(n(arguments,1))}i([])},qn={apply:r,applyEach:It,applyEachSeries:Ft,asyncify:p,auto:Ut,autoInject:he,cargo:_e,compose:xe,concat:Ee,concatLimit:ke,concatSeries:De,constant:Se,detect:Ie,detectLimit:Te,detectSeries:Pe,dir:Fe,doDuring:je,doUntil:Me,doWhilst:Le,during:Ne,each:Re,eachLimit:Ue,eachOf:St,eachOfLimit:wt,eachOfSeries:be,eachSeries:Ge,ensureAsync:He,every:We,everyLimit:qe,everySeries:Ve,filter:Je,filterLimit:Ke,filterSeries:tn,forever:en,groupBy:rn,groupByLimit:nn,groupBySeries:on,log:sn,map:At,mapLimit:Pt,mapSeries:Bt,mapValues:cn,mapValuesLimit:an,mapValuesSeries:un,memoize:pn,nextTick:fn,parallel:dn,parallelLimit:gn,priorityQueue:_n,queue:mn,race:bn,reduce:ye,reduceRight:yn,reflect:vn,reflectAll:xn,reject:kn,rejectLimit:En,rejectSeries:Dn,retry:On,retryable:Cn,seq:ve,series:An,setImmediate:l,some:In,someLimit:Tn,someSeries:Pn,sortBy:Bn,timeout:Fn,times:Nn,timesLimit:Mn,timesSeries:zn,transform:Rn,tryEach:Un,unmemoize:Gn,until:$n,waterfall:Wn,whilst:Hn,all:We,allLimit:qe,allSeries:Ve,any:In,anyLimit:Tn,anySeries:Pn,find:Ie,findLimit:Te,findSeries:Pe,forEach:Re,forEachSeries:Ge,forEachLimit:Ue,forEachOf:St,forEachOfSeries:be,forEachOfLimit:wt,inject:ye,foldl:ye,foldr:yn,select:Je,selectLimit:Ke,selectSeries:tn,wrapSync:p};e.default=qn,e.apply=r,e.applyEach=It,e.applyEachSeries=Ft,e.asyncify=p,e.auto=Ut,e.autoInject=he,e.cargo=_e,e.compose=xe,e.concat=Ee,e.concatLimit=ke,e.concatSeries=De,e.constant=Se,e.detect=Ie,e.detectLimit=Te,e.detectSeries=Pe,e.dir=Fe,e.doDuring=je,e.doUntil=Me,e.doWhilst=Le,e.during=Ne,e.each=Re,e.eachLimit=Ue,e.eachOf=St,e.eachOfLimit=wt,e.eachOfSeries=be,e.eachSeries=Ge,e.ensureAsync=He,e.every=We,e.everyLimit=qe,e.everySeries=Ve,e.filter=Je,e.filterLimit=Ke,e.filterSeries=tn,e.forever=en,e.groupBy=rn,e.groupByLimit=nn,e.groupBySeries=on,e.log=sn,e.map=At,e.mapLimit=Pt,e.mapSeries=Bt,e.mapValues=cn,e.mapValuesLimit=an,e.mapValuesSeries=un,e.memoize=pn,e.nextTick=fn,e.parallel=dn,e.parallelLimit=gn,e.priorityQueue=_n,e.queue=mn,e.race=bn,e.reduce=ye,e.reduceRight=yn,e.reflect=vn,e.reflectAll=xn,e.reject=kn,e.rejectLimit=En,e.rejectSeries=Dn,e.retry=On,e.retryable=Cn,e.seq=ve,e.series=An,e.setImmediate=l,e.some=In,e.someLimit=Tn,e.someSeries=Pn,e.sortBy=Bn,e.timeout=Fn,e.times=Nn,e.timesLimit=Mn,e.timesSeries=zn,e.transform=Rn,e.tryEach=Un,e.unmemoize=Gn,e.until=$n,e.waterfall=Wn,e.whilst=Hn,e.all=We,e.allLimit=qe,e.allSeries=Ve,e.any=In,e.anyLimit=Tn,e.anySeries=Pn,e.find=Ie,e.findLimit=Te,e.findSeries=Pe,e.forEach=Re,e.forEachSeries=Ge,e.forEachLimit=Ue,e.forEachOf=St,e.forEachOfSeries=be,e.forEachOfLimit=wt,e.inject=ye,e.foldl=ye,e.foldr=yn,e.select=Je,e.selectLimit=Ke,e.selectSeries=tn,e.wrapSync=p,Object.defineProperty(e,"__esModule",{value:!0})})(e)}).call(this,n(132)(t))},function(t,e,n){var r=n(3),i=n(269);function o(t,e,n){t[e]=function(){return delete t[e],n.apply(this,arguments),this[e].apply(this,arguments)}}function s(t,e){if(!(this instanceof s))return new s(t,e);i.call(this,e),o(this,"_read",function(){var n=t.call(this,e),r=this.emit.bind(this,"error");n.on("error",r),n.pipe(this)}),this.emit("readable")}function a(t,e){if(!(this instanceof a))return new a(t,e);i.call(this,e),o(this,"_write",function(){var n=t.call(this,e),r=this.emit.bind(this,"error");n.on("error",r),this.pipe(n)}),this.emit("writable")}t.exports={Readable:s,Writable:a},r.inherits(s,i),r.inherits(a,i)},function(t,e,n){t.exports=n(11).PassThrough},function(t,e){ /*! * normalize-path * * Copyright (c) 2014-2018, Jon Schlinkert. * Released under the MIT License. */ -t.exports=function(t,e){if("string"!=typeof t)throw new TypeError("expected path to be a string");if("\\"===t||"/"===t)return"/";var n=t.length;if(n<=1)return t;var r="";if(n>4&&"\\"===t[3]){var i=t[2];"?"!==i&&"."!==i||"\\\\"!==t.slice(0,2)||(t=t.slice(2),r="//")}var o=t.split(/[\/\\]+/);return!1!==e&&""===o[o.length-1]&&o.pop(),r+o.join("/")}},function(t,e,n){var r=n(6),i=n(1),o={flatten:n(272),difference:n(273),union:n(274),toArray:n(275),isPlainObject:n(276),defaults:n(111),extend:n(277)},a=n(55),s=t.exports={},c=/[\/\\]/g,u=function(t,e){var n=[];return o.flatten(t).forEach(function(t){var r=0===t.indexOf("!");r&&(t=t.slice(1));var i=e(t);n=r?o.difference(n,i):o.union(n,i)}),n};s.exists=function(){var t=i.join.apply(i,arguments);return r.existsSync(t)},s.expand=function(){var t=o.toArray(arguments),e=o.isPlainObject(t[0])?t.shift():{},n=Array.isArray(t[0])?t[0]:t;if(0===n.length)return[];var s=u(n,function(t){return a.sync(t,e)});return e.filter&&(s=s.filter(function(t){t=i.join(e.cwd||"",t);try{return"function"==typeof e.filter?e.filter(t):r.statSync(t)[e.filter]()}catch(t){return!1}})),s},s.expandMapping=function(t,e,n){n=o.defaults({},n,{rename:function(t,e){return i.join(t||"",e)}});var r=[],a={};return s.expand(n,t).forEach(function(t){var o=t;n.flatten&&(o=i.basename(o)),n.ext&&(o=o.replace(/(\.[^\/]*)?$/,n.ext));var s=n.rename(e,o,n);n.cwd&&(t=i.join(n.cwd,t)),s=s.replace(c,"/"),t=t.replace(c,"/"),a[s]?a[s].src.push(t):(r.push({src:[t],dest:s}),a[s]=r[r.length-1])}),r},s.normalizeFilesArray=function(t){var e=[];return t.forEach(function(t){("src"in t||"dest"in t)&&e.push(t)}),0===e.length?[]:e=o(e).chain().forEach(function(t){"src"in t&&t.src&&(Array.isArray(t.src)?t.src=o.flatten(t.src):t.src=[t.src])}).map(function(t){var e=o.extend({},t);if(delete e.src,delete e.dest,t.expand)return s.expandMapping(t.src,t.dest,e).map(function(e){var n=o.extend({},t);return n.orig=o.extend({},t),n.src=e.src,n.dest=e.dest,["expand","cwd","flatten","rename","ext"].forEach(function(t){delete n[t]}),n});var n=o.extend({},t);return n.orig=o.extend({},t),"src"in n&&Object.defineProperty(n,"src",{enumerable:!0,get:function n(){var r;return"result"in n||(r=t.src,r=Array.isArray(r)?o.flatten(r):[r],n.result=s.expand(e,r)),n.result}}),"dest"in n&&(n.dest=t.dest),n}).flatten().value()}},function(t,e){var n=9007199254740991,r="[object Arguments]",i="[object Function]",o="[object GeneratorFunction]",a="object"==typeof global&&global&&global.Object===Object&&global,s="object"==typeof self&&self&&self.Object===Object&&self,c=a||s||Function("return this")();function u(t,e){for(var n=-1,r=e.length,i=t.length;++n-1&&t%1==0&&t<=n}(t.length)&&!function(t){var e=function(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}(t)?f.call(t):"";return e==i||e==o}(t)}(t)}(t)&&p.call(t,"callee")&&(!d.call(t,"callee")||f.call(t)==r)}(t)||!!(g&&t&&t[g])}var _=Array.isArray;t.exports=function(t){return t&&t.length?function t(e,n,r,i,o){var a=-1,s=e.length;for(r||(r=m),o||(o=[]);++a0&&r(c)?n>1?t(c,n-1,r,i,o):u(o,c):i||(o[o.length]=c)}return o}(t,1):[]}},function(t,e){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",a="[object Function]",s="[object GeneratorFunction]",c=/^\[object .+?Constructor\]$/,u="object"==typeof global&&global&&global.Object===Object&&global,l="object"==typeof self&&self&&self.Object===Object&&self,p=u||l||Function("return this")();function f(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function h(t,e){return!!(t?t.length:0)&&function(t,e,n){if(e!=e)return function(t,e,n,r){var i=t.length,o=n+(r?1:-1);for(;r?o--:++o-1}function d(t,e,n){for(var r=-1,i=t?t.length:0;++r=n&&(s=_,c=!1,e=new N(e));t:for(;++a-1},L.prototype.set=function(t,e){var n=this.__data__,r=z(n,t);return r<0?n.push([t,e]):n[r][1]=e,this},M.prototype.clear=function(){this.__data__={hash:new j,map:new(B||L),string:new j}},M.prototype.delete=function(t){return G(this,t).delete(t)},M.prototype.get=function(t){return G(this,t).get(t)},M.prototype.has=function(t){return G(this,t).has(t)},M.prototype.set=function(t,e){return G(this,t).set(t,e),this},N.prototype.add=N.prototype.push=function(t){return this.__data__.set(t,r),this},N.prototype.has=function(t){return this.__data__.has(t)};var q,W,V=(q=function(t,e){return X(t)?R(t,function t(e,n,r,i,o){var a=-1,s=e.length;for(r||(r=$),o||(o=[]);++a0&&r(c)?n>1?t(c,n-1,r,i,o):g(o,c):i||(o[o.length]=c)}return o}(e,1,X,!0)):[]},W=P(void 0===W?q.length-1:W,0),function(){for(var t=arguments,e=-1,n=P(t.length-W,0),r=Array(n);++e-1&&t%1==0&&t<=i}(t.length)&&!Q(t)}function X(t){return function(t){return!!t&&"object"==typeof t}(t)&&Z(t)}function Q(t){var e=J(t)?S.call(t):"";return e==a||e==s}function J(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}t.exports=V},function(t,e){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",a="[object Function]",s="[object GeneratorFunction]",c=/^\[object .+?Constructor\]$/,u="object"==typeof global&&global&&global.Object===Object&&global,l="object"==typeof self&&self&&self.Object===Object&&self,p=u||l||Function("return this")();function f(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function h(t,e){return!!(t?t.length:0)&&function(t,e,n){if(e!=e)return function(t,e,n,r){var i=t.length,o=n+(r?1:-1);for(;r?o--:++o-1}function d(t,e,n){for(var r=-1,i=t?t.length:0;++r-1},N.prototype.set=function(t,e){var n=this.__data__,r=U(n,t);return r<0?n.push([t,e]):n[r][1]=e,this},z.prototype.clear=function(){this.__data__={hash:new M,map:new(F||N),string:new M}},z.prototype.delete=function(t){return $(this,t).delete(t)},z.prototype.get=function(t){return $(this,t).get(t)},z.prototype.has=function(t){return $(this,t).has(t)},z.prototype.set=function(t,e){return $(this,t).set(t,e),this},R.prototype.add=R.prototype.push=function(t){return this.__data__.set(t,r),this},R.prototype.has=function(t){return this.__data__.has(t)};var H=j&&1/b(new j([,-0]))[1]==1/0?function(t){return new j(t)}:function(){};function $(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function q(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return G(n)?n:void 0}function W(t){return X(t)||function(t){return J(t)&&S.call(t,"callee")&&(!I.call(t,"callee")||O.call(t)==o)}(t)||!!(P&&t&&t[P])}var V,Y,Z=(V=function(t){return function(t,e,r){var i=-1,o=h,a=t.length,s=!0,c=[],u=c;if(r)s=!1,o=d;else if(a>=n){var l=e?null:H(t);if(l)return b(l);s=!1,o=_,u=new R}else u=e?[]:c;t:for(;++i0&&r(c)?n>1?t(c,n-1,r,i,o):g(o,c):i||(o[o.length]=c)}return o}(t,1,J,!0))},Y=B(void 0===Y?V.length-1:Y,0),function(){for(var t=arguments,e=-1,n=B(t.length-Y,0),r=Array(n);++e-1&&t%1==0&&t<=i}(t.length)&&!K(t)}function J(t){return function(t){return!!t&&"object"==typeof t}(t)&&Q(t)}function K(t){var e=tt(t)?O.call(t):"";return e==a||e==s}function tt(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}t.exports=Z},function(t,e){var n=9007199254740991,r="[object Arguments]",i="[object Function]",o="[object GeneratorFunction]",a="[object Map]",s="[object Set]",c="[object String]",u=/^\[object .+?Constructor\]$/,l=/^(?:0|[1-9]\d*)$/,p="[\\ud800-\\udfff]",f="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",h="\\ud83c[\\udffb-\\udfff]",d="[^\\ud800-\\udfff]",g="(?:\\ud83c[\\udde6-\\uddff]){2}",m="[\\ud800-\\udbff][\\udc00-\\udfff]",_="(?:"+f+"|"+h+")"+"?",b="[\\ufe0e\\ufe0f]?"+_+("(?:\\u200d(?:"+[d,g,m].join("|")+")[\\ufe0e\\ufe0f]?"+_+")*"),y="(?:"+[d+f+"?",f,g,m,p].join("|")+")",v=RegExp(h+"(?="+h+")|"+y+b,"g"),x=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),w="object"==typeof global&&global&&global.Object===Object&&global,k="object"==typeof self&&self&&self.Object===Object&&self,E=w||k||Function("return this")();function D(t,e){return function(t,e){for(var n=-1,r=t?t.length:0,i=Array(r);++n-1&&t%1==0&&t-1&&t%1==0&&t<=n}(t.length)&&!ut(t)}function ut(t){var e=lt(t)?N.call(t):"";return e==i||e==o}function lt(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function pt(t){return!!t&&"object"==typeof t}function ft(t){return t?D(t,function(t){return ct(t)?tt(t):nt(t)}(t)):[]}t.exports=function(t){if(!t)return[];if(ct(t))return function(t){return"string"==typeof t||!st(t)&&pt(t)&&N.call(t)==c}(t)?C(t):function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n-1&&t%1==0&&t-1&&t%1==0&&t<=n}(t.length)&&!function(t){var e=E(t)?f.call(t):"";return e==i||e==o}(t)}function E(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}var D,S=(D=function(t,e){if(m||v(e)||k(e))!function(t,e,n,r){n||(n={});for(var i=-1,o=e.length;++i1?e[r-1]:void 0,o=r>2?e[2]:void 0;for(i=D.length>3&&"function"==typeof i?(r--,i):void 0,o&&function(t,e,n){if(!E(n))return!1;var r=typeof e;return!!("number"==r?k(n)&&y(e,n.length):"string"==r&&e in n)&&x(n[e],t)}(e[0],e[1],o)&&(i=r<3?void 0:i,r=1),t=Object(t);++n4&&"\\"===t[3]){var i=t[2];"?"!==i&&"."!==i||"\\\\"!==t.slice(0,2)||(t=t.slice(2),r="//")}var o=t.split(/[\/\\]+/);return!1!==e&&""===o[o.length-1]&&o.pop(),r+o.join("/")}},function(t,e,n){var r=n(6),i=n(1),o={flatten:n(272),difference:n(273),union:n(274),toArray:n(275),isPlainObject:n(276),defaults:n(111),extend:n(277)},s=n(55),a=t.exports={},c=/[\/\\]/g,u=function(t,e){var n=[];return o.flatten(t).forEach(function(t){var r=0===t.indexOf("!");r&&(t=t.slice(1));var i=e(t);n=r?o.difference(n,i):o.union(n,i)}),n};a.exists=function(){var t=i.join.apply(i,arguments);return r.existsSync(t)},a.expand=function(){var t=o.toArray(arguments),e=o.isPlainObject(t[0])?t.shift():{},n=Array.isArray(t[0])?t[0]:t;if(0===n.length)return[];var a=u(n,function(t){return s.sync(t,e)});return e.filter&&(a=a.filter(function(t){t=i.join(e.cwd||"",t);try{return"function"==typeof e.filter?e.filter(t):r.statSync(t)[e.filter]()}catch(t){return!1}})),a},a.expandMapping=function(t,e,n){n=o.defaults({},n,{rename:function(t,e){return i.join(t||"",e)}});var r=[],s={};return a.expand(n,t).forEach(function(t){var o=t;n.flatten&&(o=i.basename(o)),n.ext&&(o=o.replace(/(\.[^\/]*)?$/,n.ext));var a=n.rename(e,o,n);n.cwd&&(t=i.join(n.cwd,t)),a=a.replace(c,"/"),t=t.replace(c,"/"),s[a]?s[a].src.push(t):(r.push({src:[t],dest:a}),s[a]=r[r.length-1])}),r},a.normalizeFilesArray=function(t){var e=[];return t.forEach(function(t){("src"in t||"dest"in t)&&e.push(t)}),0===e.length?[]:e=o(e).chain().forEach(function(t){"src"in t&&t.src&&(Array.isArray(t.src)?t.src=o.flatten(t.src):t.src=[t.src])}).map(function(t){var e=o.extend({},t);if(delete e.src,delete e.dest,t.expand)return a.expandMapping(t.src,t.dest,e).map(function(e){var n=o.extend({},t);return n.orig=o.extend({},t),n.src=e.src,n.dest=e.dest,["expand","cwd","flatten","rename","ext"].forEach(function(t){delete n[t]}),n});var n=o.extend({},t);return n.orig=o.extend({},t),"src"in n&&Object.defineProperty(n,"src",{enumerable:!0,get:function n(){var r;return"result"in n||(r=t.src,r=Array.isArray(r)?o.flatten(r):[r],n.result=a.expand(e,r)),n.result}}),"dest"in n&&(n.dest=t.dest),n}).flatten().value()}},function(t,e){var n=9007199254740991,r="[object Arguments]",i="[object Function]",o="[object GeneratorFunction]",s="object"==typeof global&&global&&global.Object===Object&&global,a="object"==typeof self&&self&&self.Object===Object&&self,c=s||a||Function("return this")();function u(t,e){for(var n=-1,r=e.length,i=t.length;++n-1&&t%1==0&&t<=n}(t.length)&&!function(t){var e=function(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}(t)?f.call(t):"";return e==i||e==o}(t)}(t)}(t)&&p.call(t,"callee")&&(!d.call(t,"callee")||f.call(t)==r)}(t)||!!(g&&t&&t[g])}var _=Array.isArray;t.exports=function(t){return t&&t.length?function t(e,n,r,i,o){var s=-1,a=e.length;for(r||(r=m),o||(o=[]);++s0&&r(c)?n>1?t(c,n-1,r,i,o):u(o,c):i||(o[o.length]=c)}return o}(t,1):[]}},function(t,e){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",s="[object Function]",a="[object GeneratorFunction]",c=/^\[object .+?Constructor\]$/,u="object"==typeof global&&global&&global.Object===Object&&global,l="object"==typeof self&&self&&self.Object===Object&&self,p=u||l||Function("return this")();function f(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function h(t,e){return!!(t?t.length:0)&&function(t,e,n){if(e!=e)return function(t,e,n,r){var i=t.length,o=n+(r?1:-1);for(;r?o--:++o-1}function d(t,e,n){for(var r=-1,i=t?t.length:0;++r=n&&(a=_,c=!1,e=new N(e));t:for(;++s-1},L.prototype.set=function(t,e){var n=this.__data__,r=z(n,t);return r<0?n.push([t,e]):n[r][1]=e,this},M.prototype.clear=function(){this.__data__={hash:new j,map:new(B||L),string:new j}},M.prototype.delete=function(t){return G(this,t).delete(t)},M.prototype.get=function(t){return G(this,t).get(t)},M.prototype.has=function(t){return G(this,t).has(t)},M.prototype.set=function(t,e){return G(this,t).set(t,e),this},N.prototype.add=N.prototype.push=function(t){return this.__data__.set(t,r),this},N.prototype.has=function(t){return this.__data__.has(t)};var W,q,V=(W=function(t,e){return X(t)?R(t,function t(e,n,r,i,o){var s=-1,a=e.length;for(r||(r=$),o||(o=[]);++s0&&r(c)?n>1?t(c,n-1,r,i,o):g(o,c):i||(o[o.length]=c)}return o}(e,1,X,!0)):[]},q=P(void 0===q?W.length-1:q,0),function(){for(var t=arguments,e=-1,n=P(t.length-q,0),r=Array(n);++e-1&&t%1==0&&t<=i}(t.length)&&!Q(t)}function X(t){return function(t){return!!t&&"object"==typeof t}(t)&&Z(t)}function Q(t){var e=J(t)?S.call(t):"";return e==s||e==a}function J(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}t.exports=V},function(t,e){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",s="[object Function]",a="[object GeneratorFunction]",c=/^\[object .+?Constructor\]$/,u="object"==typeof global&&global&&global.Object===Object&&global,l="object"==typeof self&&self&&self.Object===Object&&self,p=u||l||Function("return this")();function f(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function h(t,e){return!!(t?t.length:0)&&function(t,e,n){if(e!=e)return function(t,e,n,r){var i=t.length,o=n+(r?1:-1);for(;r?o--:++o-1}function d(t,e,n){for(var r=-1,i=t?t.length:0;++r-1},N.prototype.set=function(t,e){var n=this.__data__,r=U(n,t);return r<0?n.push([t,e]):n[r][1]=e,this},z.prototype.clear=function(){this.__data__={hash:new M,map:new(F||N),string:new M}},z.prototype.delete=function(t){return $(this,t).delete(t)},z.prototype.get=function(t){return $(this,t).get(t)},z.prototype.has=function(t){return $(this,t).has(t)},z.prototype.set=function(t,e){return $(this,t).set(t,e),this},R.prototype.add=R.prototype.push=function(t){return this.__data__.set(t,r),this},R.prototype.has=function(t){return this.__data__.has(t)};var H=j&&1/b(new j([,-0]))[1]==1/0?function(t){return new j(t)}:function(){};function $(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function W(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return G(n)?n:void 0}function q(t){return X(t)||function(t){return J(t)&&S.call(t,"callee")&&(!I.call(t,"callee")||O.call(t)==o)}(t)||!!(P&&t&&t[P])}var V,Y,Z=(V=function(t){return function(t,e,r){var i=-1,o=h,s=t.length,a=!0,c=[],u=c;if(r)a=!1,o=d;else if(s>=n){var l=e?null:H(t);if(l)return b(l);a=!1,o=_,u=new R}else u=e?[]:c;t:for(;++i0&&r(c)?n>1?t(c,n-1,r,i,o):g(o,c):i||(o[o.length]=c)}return o}(t,1,J,!0))},Y=B(void 0===Y?V.length-1:Y,0),function(){for(var t=arguments,e=-1,n=B(t.length-Y,0),r=Array(n);++e-1&&t%1==0&&t<=i}(t.length)&&!K(t)}function J(t){return function(t){return!!t&&"object"==typeof t}(t)&&Q(t)}function K(t){var e=tt(t)?O.call(t):"";return e==s||e==a}function tt(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}t.exports=Z},function(t,e){var n=9007199254740991,r="[object Arguments]",i="[object Function]",o="[object GeneratorFunction]",s="[object Map]",a="[object Set]",c="[object String]",u=/^\[object .+?Constructor\]$/,l=/^(?:0|[1-9]\d*)$/,p="[\\ud800-\\udfff]",f="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",h="\\ud83c[\\udffb-\\udfff]",d="[^\\ud800-\\udfff]",g="(?:\\ud83c[\\udde6-\\uddff]){2}",m="[\\ud800-\\udbff][\\udc00-\\udfff]",_="(?:"+f+"|"+h+")"+"?",b="[\\ufe0e\\ufe0f]?"+_+("(?:\\u200d(?:"+[d,g,m].join("|")+")[\\ufe0e\\ufe0f]?"+_+")*"),y="(?:"+[d+f+"?",f,g,m,p].join("|")+")",v=RegExp(h+"(?="+h+")|"+y+b,"g"),x=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),w="object"==typeof global&&global&&global.Object===Object&&global,k="object"==typeof self&&self&&self.Object===Object&&self,E=w||k||Function("return this")();function D(t,e){return function(t,e){for(var n=-1,r=t?t.length:0,i=Array(r);++n-1&&t%1==0&&t-1&&t%1==0&&t<=n}(t.length)&&!ut(t)}function ut(t){var e=lt(t)?N.call(t):"";return e==i||e==o}function lt(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function pt(t){return!!t&&"object"==typeof t}function ft(t){return t?D(t,function(t){return ct(t)?tt(t):nt(t)}(t)):[]}t.exports=function(t){if(!t)return[];if(ct(t))return function(t){return"string"==typeof t||!at(t)&&pt(t)&&N.call(t)==c}(t)?C(t):function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n-1&&t%1==0&&t-1&&t%1==0&&t<=n}(t.length)&&!function(t){var e=E(t)?f.call(t):"";return e==i||e==o}(t)}function E(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}var D,S=(D=function(t,e){if(m||v(e)||k(e))!function(t,e,n,r){n||(n={});for(var i=-1,o=e.length;++i1?e[r-1]:void 0,o=r>2?e[2]:void 0;for(i=D.length>3&&"function"==typeof i?(r--,i):void 0,o&&function(t,e,n){if(!E(n))return!1;var r=typeof e;return!!("number"==r?k(n)&&y(e,n.length):"string"==r&&e in n)&&x(n[e],t)}(e[0],e[1],o)&&(i=r<3?void 0:i,r=1),t=Object(t);++n=0&&(t.zlib.level=t.level,delete t.level),"number"==typeof t.zlib.level&&0===t.zlib.level&&(t.store=!0),t.comment&&t.comment.length>0&&this.setComment(t.comment)};r(s,i),s.prototype._normalizeFileData=function(t){var e="directory"===(t=a.defaults(t,{type:"file",name:null,linkname:null,date:null,mode:null,store:this.options.store,comment:""})).type,n="symlink"===t.type;return t.name&&(t.name=a.sanitizePath(t.name),n||"/"!==t.name.slice(-1)?e&&(t.name+="/"):(e=!0,t.type="directory")),(e||n)&&(t.store=!0),t.date=a.dateify(t.date),t},s.prototype.entry=function(t,e,n){if("function"!=typeof n&&(n=this._emitErrorCallback.bind(this)),"file"===(e=this._normalizeFileData(e)).type||"directory"===e.type||"symlink"===e.type)if("string"==typeof e.name&&0!==e.name.length){if("symlink"!==e.type||"string"==typeof e.linkname){var r=new o(e.name);return r.setTime(e.date,this.options.forceLocalTime),e.store&&r.setMethod(0),e.comment.length>0&&r.setComment(e.comment),"symlink"===e.type&&"number"!=typeof e.mode&&(e.mode=40960),"number"==typeof e.mode&&("symlink"===e.type&&(e.mode|=40960),r.setUnixMode(e.mode)),"symlink"===e.type&&"string"==typeof e.linkname&&(t=new Buffer(e.linkname)),i.prototype.entry.call(this,r,t,n)}n(new Error("entry linkname must be a non-empty string value when type equals symlink"))}else n(new Error("entry name must be a non-empty string value"));else n(new Error(e.type+" entries not currently supported"))},s.prototype.finalize=function(){this.finish()}},function(t,e,n){ +var r=n(3).inherits,i=n(112).ZipArchiveOutputStream,o=n(112).ZipArchiveEntry,s=n(24),a=t.exports=function(t){if(!(this instanceof a))return new a(t);(t=this.options=t||{}).zlib=t.zlib||{},i.call(this,t),"number"==typeof t.level&&t.level>=0&&(t.zlib.level=t.level,delete t.level),"number"==typeof t.zlib.level&&0===t.zlib.level&&(t.store=!0),t.comment&&t.comment.length>0&&this.setComment(t.comment)};r(a,i),a.prototype._normalizeFileData=function(t){var e="directory"===(t=s.defaults(t,{type:"file",name:null,linkname:null,date:null,mode:null,store:this.options.store,comment:""})).type,n="symlink"===t.type;return t.name&&(t.name=s.sanitizePath(t.name),n||"/"!==t.name.slice(-1)?e&&(t.name+="/"):(e=!0,t.type="directory")),(e||n)&&(t.store=!0),t.date=s.dateify(t.date),t},a.prototype.entry=function(t,e,n){if("function"!=typeof n&&(n=this._emitErrorCallback.bind(this)),"file"===(e=this._normalizeFileData(e)).type||"directory"===e.type||"symlink"===e.type)if("string"==typeof e.name&&0!==e.name.length){if("symlink"!==e.type||"string"==typeof e.linkname){var r=new o(e.name);return r.setTime(e.date,this.options.forceLocalTime),e.store&&r.setMethod(0),e.comment.length>0&&r.setComment(e.comment),"symlink"===e.type&&"number"!=typeof e.mode&&(e.mode=40960),"number"==typeof e.mode&&("symlink"===e.type&&(e.mode|=40960),r.setUnixMode(e.mode)),"symlink"===e.type&&"string"==typeof e.linkname&&(t=new Buffer(e.linkname)),i.prototype.entry.call(this,r,t,n)}n(new Error("entry linkname must be a non-empty string value when type equals symlink"))}else n(new Error("entry name must be a non-empty string value"));else n(new Error(e.type+" entries not currently supported"))},a.prototype.finalize=function(){this.finish()}},function(t,e,n){ /*! * normalize-path * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. */ -var r=n(282);t.exports=function(t,e){if("string"!=typeof t)throw new TypeError("expected a string");return t=t.replace(/[\\\/]+/g,"/"),!1!==e&&(t=r(t)),t}},function(t,e){var n="win32"===process.platform;function r(t,e){var r=t[e];return e>0&&("/"===r||n&&"\\"===r)}t.exports=function(t){var e=t.length-1;if(e<2)return t;for(;r(t,e);)e--;return t.substr(0,e+1)}},function(t,e){t.exports={PERM_MASK:4095,FILE_TYPE_FLAG:61440,LINK_FLAG:40960,FILE_FLAG:32768,DIR_FLAG:16384,DEFAULT_LINK_PERM:511,DEFAULT_DIR_PERM:493,DEFAULT_FILE_PERM:420}},function(t,e,n){var r=n(3).inherits,i=n(54),o=n(285),a=o.DeflateCRC32Stream,s=n(116),c=(n(113),n(114),n(115)),u=(n(117),n(59)),l=t.exports=function(t){if(!(this instanceof l))return new l(t);t=this.options=this._defaults(t),s.call(this,t),this._entry=null,this._entries=[],this._archive={centralLength:0,centralOffset:0,comment:"",finish:!1,finished:!1,processing:!1,forceZip64:t.forceZip64,forceLocalTime:t.forceLocalTime}};r(l,s),l.prototype._afterAppend=function(t){this._entries.push(t),t.getGeneralPurposeBit().usesDataDescriptor()&&this._writeDataDescriptor(t),this._archive.processing=!1,this._entry=null,this._archive.finish&&!this._archive.finished&&this._finish()},l.prototype._appendBuffer=function(t,e,n){0===e.length&&t.setMethod(c.METHOD_STORED);var r=t.getMethod();return r===c.METHOD_STORED&&(t.setSize(e.length),t.setCompressedSize(e.length),t.setCrc(i.unsigned(e))),this._writeLocalFileHeader(t),r===c.METHOD_STORED?(this.write(e),this._afterAppend(t),void n(null,t)):r===c.METHOD_DEFLATED?void this._smartStream(t,n).end(e):void n(new Error("compression method "+r+" not implemented"))},l.prototype._appendStream=function(t,e,n){t.getGeneralPurposeBit().useDataDescriptor(!0),t.setVersionNeededToExtract(c.MIN_VERSION_DATA_DESCRIPTOR),this._writeLocalFileHeader(t);var r=this._smartStream(t,n);e.once("error",function(t){r.emit("error",t),r.end()}),e.pipe(r)},l.prototype._defaults=function(t){return"object"!=typeof t&&(t={}),"object"!=typeof t.zlib&&(t.zlib={}),"number"!=typeof t.zlib.level&&(t.zlib.level=c.ZLIB_BEST_SPEED),t.forceZip64=!!t.forceZip64,t.forceLocalTime=!!t.forceLocalTime,t},l.prototype._finish=function(){this._archive.centralOffset=this.offset,this._entries.forEach(function(t){this._writeCentralFileHeader(t)}.bind(this)),this._archive.centralLength=this.offset-this._archive.centralOffset,this.isZip64()&&this._writeCentralDirectoryZip64(),this._writeCentralDirectoryEnd(),this._archive.processing=!1,this._archive.finish=!0,this._archive.finished=!0,this.end()},l.prototype._normalizeEntry=function(t){-1===t.getMethod()&&t.setMethod(c.METHOD_DEFLATED),t.getMethod()===c.METHOD_DEFLATED&&(t.getGeneralPurposeBit().useDataDescriptor(!0),t.setVersionNeededToExtract(c.MIN_VERSION_DATA_DESCRIPTOR)),-1===t.getTime()&&t.setTime(new Date,this._archive.forceLocalTime),t._offsets={file:0,data:0,contents:0}},l.prototype._smartStream=function(t,e){var n=t.getMethod()===c.METHOD_DEFLATED?new a(this.options.zlib):new o,r=null;return n.once("end",function(){var i=n.digest().readUInt32BE(0);t.setCrc(i),t.setSize(n.size()),t.setCompressedSize(n.size(!0)),this._afterAppend(t),e(r,t)}.bind(this)),n.once("error",function(t){r=t}),n.pipe(this,{end:!1}),n},l.prototype._writeCentralDirectoryEnd=function(){var t=this._entries.length,e=this._archive.centralLength,n=this._archive.centralOffset;this.isZip64()&&(t=c.ZIP64_MAGIC_SHORT,e=c.ZIP64_MAGIC,n=c.ZIP64_MAGIC),this.write(u.getLongBytes(c.SIG_EOCD)),this.write(c.SHORT_ZERO),this.write(c.SHORT_ZERO),this.write(u.getShortBytes(t)),this.write(u.getShortBytes(t)),this.write(u.getLongBytes(e)),this.write(u.getLongBytes(n));var r=this.getComment(),i=Buffer.byteLength(r);this.write(u.getShortBytes(i)),this.write(r)},l.prototype._writeCentralDirectoryZip64=function(){this.write(u.getLongBytes(c.SIG_ZIP64_EOCD)),this.write(u.getEightBytes(44)),this.write(u.getShortBytes(c.MIN_VERSION_ZIP64)),this.write(u.getShortBytes(c.MIN_VERSION_ZIP64)),this.write(c.LONG_ZERO),this.write(c.LONG_ZERO),this.write(u.getEightBytes(this._entries.length)),this.write(u.getEightBytes(this._entries.length)),this.write(u.getEightBytes(this._archive.centralLength)),this.write(u.getEightBytes(this._archive.centralOffset)),this.write(u.getLongBytes(c.SIG_ZIP64_EOCD_LOC)),this.write(c.LONG_ZERO),this.write(u.getEightBytes(this._archive.centralOffset+this._archive.centralLength)),this.write(u.getLongBytes(1))},l.prototype._writeCentralFileHeader=function(t){var e=t.getGeneralPurposeBit(),n=t.getMethod(),r=t._offsets,i=t.getSize(),o=t.getCompressedSize();if(t.isZip64()||r.file>c.ZIP64_MAGIC){i=c.ZIP64_MAGIC,o=c.ZIP64_MAGIC,t.setVersionNeededToExtract(c.MIN_VERSION_ZIP64);var a=Buffer.concat([u.getShortBytes(c.ZIP64_EXTRA_ID),u.getShortBytes(24),u.getEightBytes(t.getSize()),u.getEightBytes(t.getCompressedSize()),u.getEightBytes(r.file)],28);t.setExtra(a)}this.write(u.getLongBytes(c.SIG_CFH)),this.write(u.getShortBytes(t.getPlatform()<<8|c.VERSION_MADEBY)),this.write(u.getShortBytes(t.getVersionNeededToExtract())),this.write(e.encode()),this.write(u.getShortBytes(n)),this.write(u.getLongBytes(t.getTimeDos())),this.write(u.getLongBytes(t.getCrc())),this.write(u.getLongBytes(o)),this.write(u.getLongBytes(i));var s=t.getName(),l=t.getComment(),p=t.getCentralDirectoryExtra();e.usesUTF8ForNames()&&(s=new Buffer(s),l=new Buffer(l)),this.write(u.getShortBytes(s.length)),this.write(u.getShortBytes(p.length)),this.write(u.getShortBytes(l.length)),this.write(c.SHORT_ZERO),this.write(u.getShortBytes(t.getInternalAttributes())),this.write(u.getLongBytes(t.getExternalAttributes())),r.file>c.ZIP64_MAGIC?this.write(u.getLongBytes(c.ZIP64_MAGIC)):this.write(u.getLongBytes(r.file)),this.write(s),this.write(p),this.write(l)},l.prototype._writeDataDescriptor=function(t){this.write(u.getLongBytes(c.SIG_DD)),this.write(u.getLongBytes(t.getCrc())),t.isZip64()?(this.write(u.getEightBytes(t.getCompressedSize())),this.write(u.getEightBytes(t.getSize()))):(this.write(u.getLongBytes(t.getCompressedSize())),this.write(u.getLongBytes(t.getSize())))},l.prototype._writeLocalFileHeader=function(t){var e=t.getGeneralPurposeBit(),n=t.getMethod(),r=t.getName(),i=t.getLocalFileDataExtra();t.isZip64()&&(e.useDataDescriptor(!0),t.setVersionNeededToExtract(c.MIN_VERSION_ZIP64)),e.usesUTF8ForNames()&&(r=new Buffer(r)),t._offsets.file=this.offset,this.write(u.getLongBytes(c.SIG_LFH)),this.write(u.getShortBytes(t.getVersionNeededToExtract())),this.write(e.encode()),this.write(u.getShortBytes(n)),this.write(u.getLongBytes(t.getTimeDos())),t._offsets.data=this.offset,e.usesDataDescriptor()?(this.write(c.LONG_ZERO),this.write(c.LONG_ZERO),this.write(c.LONG_ZERO)):(this.write(u.getLongBytes(t.getCrc())),this.write(u.getLongBytes(t.getCompressedSize())),this.write(u.getLongBytes(t.getSize()))),this.write(u.getShortBytes(r.length)),this.write(u.getShortBytes(i.length)),this.write(r),this.write(i),t._offsets.contents=this.offset},l.prototype.getComment=function(t){return null!==this._archive.comment?this._archive.comment:""},l.prototype.isZip64=function(){return this._archive.forceZip64||this._entries.length>c.ZIP64_MAGIC_SHORT||this._archive.centralLength>c.ZIP64_MAGIC||this._archive.centralOffset>c.ZIP64_MAGIC},l.prototype.setComment=function(t){this._archive.comment=t}},function(t,e,n){(e=t.exports=n(286)).CRC32Stream=e,e.DeflateCRC32Stream=n(287)},function(t,e,n){var r=n(3).inherits,i=n(11).Transform,o=n(118).crc32,a=t.exports=function(t){i.call(this,t),this.checksum=new Buffer(4),this.checksum.writeInt32BE(0,0),this.rawSize=0};r(a,i),a.prototype._transform=function(t,e,n){t&&(this.checksum=o(t,this.checksum),this.rawSize+=t.length),n(null,t)},a.prototype.digest=function(t){var e=new Buffer(4);return e.writeUInt32BE(this.checksum>>>0,0),t?e.toString(t):e},a.prototype.hex=function(){return this.digest("hex").toUpperCase()},a.prototype.size=function(){return this.rawSize}},function(t,e,n){var r=n(12),i=n(3).inherits,o=n(118).crc32,a=t.exports=function(t){r.DeflateRaw.call(this,t),this.checksum=new Buffer(4),this.checksum.writeInt32BE(0,0),this.rawSize=0,this.compressedSize=0,"function"!=typeof r.DeflateRaw.prototype.push&&this.on("data",function(t){t&&(this.compressedSize+=t.length)})};i(a,r.DeflateRaw),a.prototype.push=function(t,e){return t&&(this.compressedSize+=t.length),r.DeflateRaw.prototype.push.call(this,t,e)},a.prototype.write=function(t,e,n){return t&&(this.checksum=o(t,this.checksum),this.rawSize+=t.length),r.DeflateRaw.prototype.write.call(this,t,e,n)},a.prototype.digest=function(t){var e=new Buffer(4);return e.writeUInt32BE(this.checksum>>>0,0),t?e.toString(t):e},a.prototype.hex=function(){return this.digest("hex").toUpperCase()},a.prototype.size=function(t){return(t=t||!1)?this.compressedSize:this.rawSize}},function(t,e,n){ +var r=n(282);t.exports=function(t,e){if("string"!=typeof t)throw new TypeError("expected a string");return t=t.replace(/[\\\/]+/g,"/"),!1!==e&&(t=r(t)),t}},function(t,e){var n="win32"===process.platform;function r(t,e){var r=t[e];return e>0&&("/"===r||n&&"\\"===r)}t.exports=function(t){var e=t.length-1;if(e<2)return t;for(;r(t,e);)e--;return t.substr(0,e+1)}},function(t,e){t.exports={PERM_MASK:4095,FILE_TYPE_FLAG:61440,LINK_FLAG:40960,FILE_FLAG:32768,DIR_FLAG:16384,DEFAULT_LINK_PERM:511,DEFAULT_DIR_PERM:493,DEFAULT_FILE_PERM:420}},function(t,e,n){var r=n(3).inherits,i=n(54),o=n(285),s=o.DeflateCRC32Stream,a=n(116),c=(n(113),n(114),n(115)),u=(n(117),n(59)),l=t.exports=function(t){if(!(this instanceof l))return new l(t);t=this.options=this._defaults(t),a.call(this,t),this._entry=null,this._entries=[],this._archive={centralLength:0,centralOffset:0,comment:"",finish:!1,finished:!1,processing:!1,forceZip64:t.forceZip64,forceLocalTime:t.forceLocalTime}};r(l,a),l.prototype._afterAppend=function(t){this._entries.push(t),t.getGeneralPurposeBit().usesDataDescriptor()&&this._writeDataDescriptor(t),this._archive.processing=!1,this._entry=null,this._archive.finish&&!this._archive.finished&&this._finish()},l.prototype._appendBuffer=function(t,e,n){0===e.length&&t.setMethod(c.METHOD_STORED);var r=t.getMethod();return r===c.METHOD_STORED&&(t.setSize(e.length),t.setCompressedSize(e.length),t.setCrc(i.unsigned(e))),this._writeLocalFileHeader(t),r===c.METHOD_STORED?(this.write(e),this._afterAppend(t),void n(null,t)):r===c.METHOD_DEFLATED?void this._smartStream(t,n).end(e):void n(new Error("compression method "+r+" not implemented"))},l.prototype._appendStream=function(t,e,n){t.getGeneralPurposeBit().useDataDescriptor(!0),t.setVersionNeededToExtract(c.MIN_VERSION_DATA_DESCRIPTOR),this._writeLocalFileHeader(t);var r=this._smartStream(t,n);e.once("error",function(t){r.emit("error",t),r.end()}),e.pipe(r)},l.prototype._defaults=function(t){return"object"!=typeof t&&(t={}),"object"!=typeof t.zlib&&(t.zlib={}),"number"!=typeof t.zlib.level&&(t.zlib.level=c.ZLIB_BEST_SPEED),t.forceZip64=!!t.forceZip64,t.forceLocalTime=!!t.forceLocalTime,t},l.prototype._finish=function(){this._archive.centralOffset=this.offset,this._entries.forEach(function(t){this._writeCentralFileHeader(t)}.bind(this)),this._archive.centralLength=this.offset-this._archive.centralOffset,this.isZip64()&&this._writeCentralDirectoryZip64(),this._writeCentralDirectoryEnd(),this._archive.processing=!1,this._archive.finish=!0,this._archive.finished=!0,this.end()},l.prototype._normalizeEntry=function(t){-1===t.getMethod()&&t.setMethod(c.METHOD_DEFLATED),t.getMethod()===c.METHOD_DEFLATED&&(t.getGeneralPurposeBit().useDataDescriptor(!0),t.setVersionNeededToExtract(c.MIN_VERSION_DATA_DESCRIPTOR)),-1===t.getTime()&&t.setTime(new Date,this._archive.forceLocalTime),t._offsets={file:0,data:0,contents:0}},l.prototype._smartStream=function(t,e){var n=t.getMethod()===c.METHOD_DEFLATED?new s(this.options.zlib):new o,r=null;return n.once("end",function(){var i=n.digest().readUInt32BE(0);t.setCrc(i),t.setSize(n.size()),t.setCompressedSize(n.size(!0)),this._afterAppend(t),e(r,t)}.bind(this)),n.once("error",function(t){r=t}),n.pipe(this,{end:!1}),n},l.prototype._writeCentralDirectoryEnd=function(){var t=this._entries.length,e=this._archive.centralLength,n=this._archive.centralOffset;this.isZip64()&&(t=c.ZIP64_MAGIC_SHORT,e=c.ZIP64_MAGIC,n=c.ZIP64_MAGIC),this.write(u.getLongBytes(c.SIG_EOCD)),this.write(c.SHORT_ZERO),this.write(c.SHORT_ZERO),this.write(u.getShortBytes(t)),this.write(u.getShortBytes(t)),this.write(u.getLongBytes(e)),this.write(u.getLongBytes(n));var r=this.getComment(),i=Buffer.byteLength(r);this.write(u.getShortBytes(i)),this.write(r)},l.prototype._writeCentralDirectoryZip64=function(){this.write(u.getLongBytes(c.SIG_ZIP64_EOCD)),this.write(u.getEightBytes(44)),this.write(u.getShortBytes(c.MIN_VERSION_ZIP64)),this.write(u.getShortBytes(c.MIN_VERSION_ZIP64)),this.write(c.LONG_ZERO),this.write(c.LONG_ZERO),this.write(u.getEightBytes(this._entries.length)),this.write(u.getEightBytes(this._entries.length)),this.write(u.getEightBytes(this._archive.centralLength)),this.write(u.getEightBytes(this._archive.centralOffset)),this.write(u.getLongBytes(c.SIG_ZIP64_EOCD_LOC)),this.write(c.LONG_ZERO),this.write(u.getEightBytes(this._archive.centralOffset+this._archive.centralLength)),this.write(u.getLongBytes(1))},l.prototype._writeCentralFileHeader=function(t){var e=t.getGeneralPurposeBit(),n=t.getMethod(),r=t._offsets,i=t.getSize(),o=t.getCompressedSize();if(t.isZip64()||r.file>c.ZIP64_MAGIC){i=c.ZIP64_MAGIC,o=c.ZIP64_MAGIC,t.setVersionNeededToExtract(c.MIN_VERSION_ZIP64);var s=Buffer.concat([u.getShortBytes(c.ZIP64_EXTRA_ID),u.getShortBytes(24),u.getEightBytes(t.getSize()),u.getEightBytes(t.getCompressedSize()),u.getEightBytes(r.file)],28);t.setExtra(s)}this.write(u.getLongBytes(c.SIG_CFH)),this.write(u.getShortBytes(t.getPlatform()<<8|c.VERSION_MADEBY)),this.write(u.getShortBytes(t.getVersionNeededToExtract())),this.write(e.encode()),this.write(u.getShortBytes(n)),this.write(u.getLongBytes(t.getTimeDos())),this.write(u.getLongBytes(t.getCrc())),this.write(u.getLongBytes(o)),this.write(u.getLongBytes(i));var a=t.getName(),l=t.getComment(),p=t.getCentralDirectoryExtra();e.usesUTF8ForNames()&&(a=new Buffer(a),l=new Buffer(l)),this.write(u.getShortBytes(a.length)),this.write(u.getShortBytes(p.length)),this.write(u.getShortBytes(l.length)),this.write(c.SHORT_ZERO),this.write(u.getShortBytes(t.getInternalAttributes())),this.write(u.getLongBytes(t.getExternalAttributes())),r.file>c.ZIP64_MAGIC?this.write(u.getLongBytes(c.ZIP64_MAGIC)):this.write(u.getLongBytes(r.file)),this.write(a),this.write(p),this.write(l)},l.prototype._writeDataDescriptor=function(t){this.write(u.getLongBytes(c.SIG_DD)),this.write(u.getLongBytes(t.getCrc())),t.isZip64()?(this.write(u.getEightBytes(t.getCompressedSize())),this.write(u.getEightBytes(t.getSize()))):(this.write(u.getLongBytes(t.getCompressedSize())),this.write(u.getLongBytes(t.getSize())))},l.prototype._writeLocalFileHeader=function(t){var e=t.getGeneralPurposeBit(),n=t.getMethod(),r=t.getName(),i=t.getLocalFileDataExtra();t.isZip64()&&(e.useDataDescriptor(!0),t.setVersionNeededToExtract(c.MIN_VERSION_ZIP64)),e.usesUTF8ForNames()&&(r=new Buffer(r)),t._offsets.file=this.offset,this.write(u.getLongBytes(c.SIG_LFH)),this.write(u.getShortBytes(t.getVersionNeededToExtract())),this.write(e.encode()),this.write(u.getShortBytes(n)),this.write(u.getLongBytes(t.getTimeDos())),t._offsets.data=this.offset,e.usesDataDescriptor()?(this.write(c.LONG_ZERO),this.write(c.LONG_ZERO),this.write(c.LONG_ZERO)):(this.write(u.getLongBytes(t.getCrc())),this.write(u.getLongBytes(t.getCompressedSize())),this.write(u.getLongBytes(t.getSize()))),this.write(u.getShortBytes(r.length)),this.write(u.getShortBytes(i.length)),this.write(r),this.write(i),t._offsets.contents=this.offset},l.prototype.getComment=function(t){return null!==this._archive.comment?this._archive.comment:""},l.prototype.isZip64=function(){return this._archive.forceZip64||this._entries.length>c.ZIP64_MAGIC_SHORT||this._archive.centralLength>c.ZIP64_MAGIC||this._archive.centralOffset>c.ZIP64_MAGIC},l.prototype.setComment=function(t){this._archive.comment=t}},function(t,e,n){(e=t.exports=n(286)).CRC32Stream=e,e.DeflateCRC32Stream=n(287)},function(t,e,n){var r=n(3).inherits,i=n(11).Transform,o=n(118).crc32,s=t.exports=function(t){i.call(this,t),this.checksum=new Buffer(4),this.checksum.writeInt32BE(0,0),this.rawSize=0};r(s,i),s.prototype._transform=function(t,e,n){t&&(this.checksum=o(t,this.checksum),this.rawSize+=t.length),n(null,t)},s.prototype.digest=function(t){var e=new Buffer(4);return e.writeUInt32BE(this.checksum>>>0,0),t?e.toString(t):e},s.prototype.hex=function(){return this.digest("hex").toUpperCase()},s.prototype.size=function(){return this.rawSize}},function(t,e,n){var r=n(12),i=n(3).inherits,o=n(118).crc32,s=t.exports=function(t){r.DeflateRaw.call(this,t),this.checksum=new Buffer(4),this.checksum.writeInt32BE(0,0),this.rawSize=0,this.compressedSize=0,"function"!=typeof r.DeflateRaw.prototype.push&&this.on("data",function(t){t&&(this.compressedSize+=t.length)})};i(s,r.DeflateRaw),s.prototype.push=function(t,e){return t&&(this.compressedSize+=t.length),r.DeflateRaw.prototype.push.call(this,t,e)},s.prototype.write=function(t,e,n){return t&&(this.checksum=o(t,this.checksum),this.rawSize+=t.length),r.DeflateRaw.prototype.write.call(this,t,e,n)},s.prototype.digest=function(t){var e=new Buffer(4);return e.writeUInt32BE(this.checksum>>>0,0),t?e.toString(t):e},s.prototype.hex=function(){return this.digest("hex").toUpperCase()},s.prototype.size=function(t){return(t=t||!1)?this.compressedSize:this.rawSize}},function(t,e,n){ /** * TAR Format Plugin * @@ -84,7 +84,7 @@ var r=n(282);t.exports=function(t,e){if("string"!=typeof t)throw new TypeError(" * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE} * @copyright (c) 2012-2014 Chris Talkington, contributors. */ -var r=n(12),i=n(96),o=n(24),a=function(t){if(!(this instanceof a))return new a(t);"object"!=typeof(t=this.options=o.defaults(t,{gzip:!1})).gzipOptions&&(t.gzipOptions={}),this.supports={directory:!0,symlink:!0},this.engine=i.pack(t),this.compressor=!1,t.gzip&&(this.compressor=r.createGzip(t.gzipOptions),this.compressor.on("error",this._onCompressorError.bind(this)))};a.prototype._onCompressorError=function(t){this.engine.emit("error",t)},a.prototype.append=function(t,e,n){var r=this;function i(t,i){t?n(t):r.engine.entry(e,i,function(t){n(t,e)})}if(e.mtime=e.date,"buffer"===e.sourceType)i(null,t);else if("stream"===e.sourceType&&e.stats){e.size=e.stats.size;var a=r.engine.entry(e,function(t){n(t,e)});t.pipe(a)}else"stream"===e.sourceType&&o.collectStream(t,i)},a.prototype.finalize=function(){this.engine.finalize()},a.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)},a.prototype.pipe=function(t,e){return this.compressor?this.engine.pipe.apply(this.engine,[this.compressor]).pipe(t,e):this.engine.pipe.apply(this.engine,arguments)},a.prototype.unpipe=function(){return this.compressor?this.compressor.unpipe.apply(this.compressor,arguments):this.engine.unpipe.apply(this.engine,arguments)},t.exports=a},function(t,e,n){ +var r=n(12),i=n(96),o=n(24),s=function(t){if(!(this instanceof s))return new s(t);"object"!=typeof(t=this.options=o.defaults(t,{gzip:!1})).gzipOptions&&(t.gzipOptions={}),this.supports={directory:!0,symlink:!0},this.engine=i.pack(t),this.compressor=!1,t.gzip&&(this.compressor=r.createGzip(t.gzipOptions),this.compressor.on("error",this._onCompressorError.bind(this)))};s.prototype._onCompressorError=function(t){this.engine.emit("error",t)},s.prototype.append=function(t,e,n){var r=this;function i(t,i){t?n(t):r.engine.entry(e,i,function(t){n(t,e)})}if(e.mtime=e.date,"buffer"===e.sourceType)i(null,t);else if("stream"===e.sourceType&&e.stats){e.size=e.stats.size;var s=r.engine.entry(e,function(t){n(t,e)});t.pipe(s)}else"stream"===e.sourceType&&o.collectStream(t,i)},s.prototype.finalize=function(){this.engine.finalize()},s.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)},s.prototype.pipe=function(t,e){return this.compressor?this.engine.pipe.apply(this.engine,[this.compressor]).pipe(t,e):this.engine.pipe.apply(this.engine,arguments)},s.prototype.unpipe=function(){return this.compressor?this.compressor.unpipe.apply(this.compressor,arguments):this.engine.unpipe.apply(this.engine,arguments)},t.exports=s},function(t,e,n){ /** * JSON Format Plugin * @@ -92,4 +92,4 @@ var r=n(12),i=n(96),o=n(24),a=function(t){if(!(this instanceof a))return new a(t * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE} * @copyright (c) 2012-2014 Chris Talkington, contributors. */ -var r=n(3).inherits,i=n(11).Transform,o=n(54),a=n(24),s=function(t){if(!(this instanceof s))return new s(t);t=this.options=a.defaults(t,{}),i.call(this,t),this.supports={directory:!0,symlink:!0},this.files=[]};r(s,i),s.prototype._transform=function(t,e,n){n(null,t)},s.prototype._writeStringified=function(){var t=JSON.stringify(this.files);this.write(t)},s.prototype.append=function(t,e,n){var r=this;function i(t,i){t?n(t):(e.size=i.length||0,e.crc32=o.unsigned(i),r.files.push(e),n(null,e))}e.crc32=0,"buffer"===e.sourceType?i(null,t):"stream"===e.sourceType&&a.collectStream(t,i)},s.prototype.finalize=function(){this._writeStringified(),this.end()},t.exports=s},function(t,e,n){"use strict";t.exports=function(t,e,n){try{let o=0,c={demanded:[],optional:[]};"object"==typeof t?(n=e,e=t):c=r.parseCommand(`cmd ${t}`);const u=[].slice.call(e);for(;u.length&&void 0===u[u.length-1];)u.pop();if((n=n||u.length)l)throw new i(`Too many arguments provided. Expected max ${l} but received ${n}.`);c.demanded.forEach(t=>{const e=u.shift(),n=a(e),r=t.cmd.filter(t=>t===n||"*"===t);0===r.length&&s(n,t.cmd,o,!1),o+=1}),c.optional.forEach(t=>{if(0===u.length)return;const e=u.shift(),n=a(e),r=t.cmd.filter(t=>t===n||"*"===t);0===r.length&&s(n,t.cmd,o,!0),o+=1})}catch(t){console.warn(t.stack)}};const r=n(294)(),i=n(133),o=["first","second","third","fourth","fifth","sixth"];function a(t){return Array.isArray(t)?"array":null===t?"null":typeof t}function s(t,e,n,r){throw new i(`Invalid ${o[n]||"manyith"} argument. Expected ${e.join(" or ")} but received ${t}.`)}},function(t,e,n){"use strict";const r=n(317),i=n(319),o=n(320)();t.exports=t=>{if("string"!=typeof(t=t.replace(o," "))||0===t.length)return 0;t=r(t);let e=0;for(let n=0;n=127&&r<=159||(r>=768&&r<=879||(r>65535&&n++,e+=i(r)?2:1))}return e}},function(t,e,n){"use strict";t.exports=function(t,e){const n={};return e=e||((t,e)=>!0),Object.keys(t||{}).forEach(r=>{e(r,t[r])&&(n[r]=t[r])}),n}},function(t,e){function n(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id=293},function(t,e,n){"use strict";const r=n(3).inspect,i=n(295),{applyMiddleware:o,commandMiddlewareFactory:a}=n(296),s=n(1),c=n(297),u=/(^\*)|(^\$0)/;t.exports=function(t,e,l,p){const f={};let h,d,g={},m={};function _(t){return!t.getUsageInstance().getUsageDisabled()&&0===t.getUsageInstance().getUsage().length}function b(t,e){const n=u.test(e.original)?e.original.replace(u,"").trim():e.original,r=t.filter(t=>!u.test(t));return r.push(n),`$0 ${r.join(" ")}`}function y(t,e,n,r){const i=t.cmd[0];t.variadic?n[i]=e._.splice(0).map(String):e._.length&&(n[i]=[String(e._.shift())])}function v(e,n,r){const i=Object.assign({},t.getOptions());i.default=Object.assign(r.default,i.default),i.alias=Object.assign(r.alias,i.alias),i.array=i.array.concat(r.array),delete i.config;const o=[];if(Object.keys(n).forEach(t=>{n[t].map(e=>{o.push(`--${t}`),o.push(e)})}),!o.length)return;const a=c.detailed(o,i);if(a.error)t.getUsageInstance().fail(a.error.message,a.error);else{const t=Object.keys(n);Object.keys(n).forEach(e=>{[].push.apply(t,a.aliases[e])}),Object.keys(a.argv).forEach(r=>{-1!==t.indexOf(r)&&(n[r]||(n[r]=a.argv[r]),e[r]=a.argv[r])})}}return p=p||[],f.addHandler=function(t,i,o,c,l){let p=[];const d=a(l);if(c=c||(()=>{}),Array.isArray(t))p=t.slice(1),t=t[0];else if("object"==typeof t){let e=Array.isArray(t.command)||"string"==typeof t.command?t.command:function(t){const e=n(312)(t);if(!e)throw new Error(`No command name given for module: ${r(t)}`);return i=e.filename,s.basename(i,s.extname(i));var i}(t);return t.aliases&&(e=[].concat(e).concat(t.aliases)),void f.addHandler(e,function(t){for(let e,n=["describe","description","desc"],r=0,i=n.length;rf.parseCommand(t).cmd);let b=!1;const y=[_.cmd].concat(p).filter(t=>!u.test(t)||(b=!0,!1));0===y.length&&b&&y.push("$0"),b&&(_.cmd=y[0],p=y.slice(1),t=t.replace(u,_.cmd)),p.forEach(t=>{m[t]=_.cmd}),!1!==i&&e.command(t,i,b,p),g[_.cmd]={original:t,description:i,handler:c,builder:o||{},middlewares:d||[],demanded:_.demanded,optional:_.optional},b&&(h=g[_.cmd])},f.addDirectory=function(t,e,r,i,o){"boolean"!=typeof(o=o||{}).recurse&&(o.recurse=!1),Array.isArray(o.extensions)||(o.extensions=["js"]);const a="function"==typeof o.visit?o.visit:t=>t;o.visit=function(t,n,r){const i=a(t,n,r);if(i){if(~e.files.indexOf(n))return i;e.files.push(n),f.addHandler(i)}return i},n(311)({require:r,filename:i},t,o)},f.parseCommand=function(t){const e=t.replace(/\s{2,}/g," ").split(/\s+(?![^[]*]|[^<]*>)/),n=/\.*[\][<>]/g,r={cmd:e.shift().replace(n,""),demanded:[],optional:[]};return e.forEach((t,i)=>{let o=!1;t=t.replace(/\s/g,""),/\.+[\]>]/.test(t)&&i===e.length-1&&(o=!0),/^\[/.test(t)?r.optional.push({cmd:t.replace(n,"").split("|"),variadic:o}):r.demanded.push({cmd:t.replace(n,"").split("|"),variadic:o})}),r},f.getCommands=()=>Object.keys(g).concat(Object.keys(m)),f.getCommandHandlers=()=>g,f.hasDefaultCommand=()=>!!h,f.runCommand=function(t,e,n,r){let a=n.aliases;const s=g[t]||g[m[t]]||h,c=e.getContext();let u=c.files.length;const d=c.commands.slice();let x=n.argv,w=null,k={};t&&(c.commands.push(t),c.fullCommands.push(s.original)),"function"==typeof s.builder?(w=s.builder(e.reset(n.aliases)),!1===e.parsed?(_(e)&&e.getUsageInstance().usage(b(d,s),s.description),x=w?w._parseArgs(null,null,!0,r):e._parseArgs(null,null,!0,r)):x=e.parsed.argv,a=w&&!1===e.parsed?w.parsed.aliases:e.parsed.aliases):"object"==typeof s.builder&&(_(w=e.reset(n.aliases))&&w.getUsageInstance().usage(b(d,s),s.description),Object.keys(s.builder).forEach(t=>{w.option(t,s.builder[t])}),x=w._parseArgs(null,null,!0,r),a=w.parsed.aliases),e._hasOutput()||(k=function(t,e,n,r){e._=e._.slice(n.commands.length);const i=t.demanded.slice(0),o=t.optional.slice(0),a={};l.positionalCount(i.length,e._.length);for(;i.length;){const t=i.shift();y(t,e,a)}for(;o.length;){const t=o.shift();y(t,e,a)}return e._=n.commands.concat(e._),v(e,a,f.cmdToParseOptions(t.original)),a}(s,x,c));const E=p.slice(0).concat(s.middlewares||[]);if(o(x,e,E,!0),e._hasOutput()||e._runValidation(x,a,k,e.parsed.error),s.handler&&!e._hasOutput()){e._setHasOutput(),x=o(x,e,E,!1);const t=i(x)?x.then(t=>s.handler(t)):s.handler(x);i(t)&&t.catch(t=>e.getUsageInstance().fail(null,t))}return t&&(c.commands.pop(),c.fullCommands.pop()),(u=c.files.length-u)>0&&c.files.splice(-1*u,u),x},f.runDefaultBuilderOn=function(t){if(_(t)){const e=u.test(h.original)?h.original:h.original.replace(/^[^[\]<>]*/,"$0 ");t.getUsageInstance().usage(e,h.description)}const e=h.builder;"function"==typeof e?e(t):Object.keys(e).forEach(n=>{t.option(n,e[n])})},f.cmdToParseOptions=function(t){const e={array:[],default:{},alias:{},demand:{}},n=f.parseCommand(t);return n.demanded.forEach(t=>{const n=t.cmd.slice(0),r=n.shift();t.variadic&&(e.array.push(r),e.default[r]=[]),n.forEach(t=>{e.alias[r]=t}),e.demand[r]=!0}),n.optional.forEach(t=>{const n=t.cmd.slice(0),r=n.shift();t.variadic&&(e.array.push(r),e.default[r]=[]),n.forEach(t=>{e.alias[r]=t})}),e},f.reset=()=>(g={},m={},h=void 0,f),f.freeze=()=>{(d={}).handlers=g,d.aliasMap=m,d.defaultCommand=h},f.unfreeze=()=>{g=d.handlers,m=d.aliasMap,h=d.defaultCommand,d=void 0},f}},function(t,e){t.exports=function(t){return t instanceof Promise}},function(t,e,n){"use strict";t.exports={applyMiddleware:function(t,e,n,i){const o=new Error("middleware cannot return a promise when applyBeforeValidation is true");return n.reduce((n,a)=>{if(a.applyBeforeValidation!==i&&!r(n))return n;if(r(n))return n.then(t=>Promise.all([t,a(t,e)])).then(([t,e])=>Object.assign(t,e));{const s=a(t,e);if(i&&r(s))throw o;return r(s)?s.then(t=>Object.assign(n,t)):Object.assign(n,s)}},t)},commandMiddlewareFactory:function(t){return t?t.map(t=>(t.applyBeforeValidation=!1,t)):[]},globalMiddlewareFactory:function(t,e){return function(n,r=!1){if(i(" [boolean]",[n,r],arguments.length),Array.isArray(n)){for(let t=0;t1&&/[A-Z]/.test(e)&&l["camel-case-expansion"]){var n=i(e,"-");n!==t&&-1===y.aliases[t].indexOf(n)&&(y.aliases[t].push(n),m[n]=!0)}}),y.aliases[t].forEach(function(e){y.aliases[e]=[t].concat(y.aliases[t].filter(function(t){return e!==t}))}))})})}(e.key,c,e.default,y.arrays),Object.keys(p).forEach(function(t){(y.aliases[t]||[]).forEach(function(e){p[e]=p[t]})});var w={_:[]};Object.keys(y.bools).forEach(function(t){Object.prototype.hasOwnProperty.call(p,t)&&(j(t,p[t]),function(t){[].concat(y.aliases[t]||[],t).forEach(function(t){y.defaulted[t]=!0})}(t))});for(var k=[],E=0;EE+1?(t.splice(E+1,0,C[2]),E=F(E,C[1],t)):j(C[1],C[2]);else if(T.match(x)&&l["boolean-negation"])j(S=T.match(x)[1],!1);else if(T.match(/^--.+/)||!l["short-option-groups"]&&T.match(/^-[^-]+/))H(S=T.match(/^--?(.+)/)[1],y.nargs)?E=B(E,S,t):H(S,y.arrays)&&t.length>E+1?E=F(E,S,t):void 0===(A=0===y.nargs[S]?void 0:t[E+1])||A.match(/^-/)&&!A.match(v)||H(S,y.bools)||H(S,y.counts)?/^(true|false)$/.test(A)?(j(S,A),E++):j(S,$(S)):(j(S,A),E++);else if(T.match(/^-.\..+=/))j((C=T.match(/^-([^=]+)=([\s\S]*)$/))[1],C[2]);else if(T.match(/^-.\..+/))A=t[E+1],S=T.match(/^-(.\..+)/)[1],void 0===A||A.match(/^-/)||H(S,y.bools)||H(S,y.counts)?j(S,$(S)):(j(S,A),E++);else if(T.match(/^-[^-]+/)&&!T.match(v)){O=T.slice(1,-1).split(""),D=!1;for(var P=0;PE+1?(t.splice(E+1,0,I),E=F(E,S,t)):j(S,I),D=!0;break}if("-"!==A){if(/[A-Za-z]/.test(O[P])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(A)){j(O[P],A),D=!0;break}if(O[P+1]&&O[P+1].match(/\W/)){j(O[P],A),D=!0;break}j(O[P],$(O[P]))}else j(O[P],A)}S=T.slice(-1)[0],D||"-"===S||(H(S,y.nargs)?E=B(E,S,t):H(S,y.arrays)&&t.length>E+1?E=F(E,S,t):void 0===(A=t[E+1])||/^(-|--)[^-]/.test(A)&&!A.match(v)||H(S,y.bools)||H(S,y.counts)?/^(true|false)$/.test(A)?(j(S,A),E++):j(S,$(S)):(j(S,A),E++))}else{if("--"===T){k=t.slice(E+1);break}if(l["halt-at-non-option"]){k=t.slice(E);break}w._.push(M("_",T))}}function B(t,e,n){var r;const i=H(e,y.nargs);var o=0;for(r=t+1;r0,a=t+1;a1&&l["dot-notation"]&&(y.aliases[a[0]]||[]).forEach(function(t){t=t.split(".");var e=[].concat(a);e.shift(),t=t.concat(e),G(w,t,i)}),H(t,y.normalize)&&!H(t,y.arrays))&&[t].concat(y.aliases[t]||[]).forEach(function(t){w.__defineSetter__(t,function(t){e=o.normalize(t)}),w.__defineGetter__(t,function(){return"string"==typeof e?o.normalize(e):e})})}function L(t,e){"string"!=typeof e||"'"!==e[0]&&'"'!==e[0]||e[e.length-1]!==e[0]||(e=e.substring(1,e.length-1)),(H(t,y.bools)||H(t,y.counts))&&"string"==typeof e&&(e="true"===e);var n=M(t,e);return H(t,y.counts)&&(W(n)||"boolean"==typeof n)&&(n=u),H(t,y.normalize)&&H(t,y.arrays)&&(n=Array.isArray(e)?e.map(o.normalize):o.normalize(e)),n}function M(t,e){if(!H(t,y.strings)&&!H(t,y.coercions)){(null!=(n=e)&&("number"==typeof n||!!/^0x[0-9a-f]+$/i.test(n)||!(n.length>1&&"0"===n[0])&&/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(n))&&l["parse-numbers"]&&Number.isSafeInteger(Math.floor(e))||!W(e)&&H(t,y.numbers))&&(e=Number(e))}var n;return e}function N(t,e){Object.keys(t).forEach(function(n){var r=t[n],i=e?e+"."+n:n;"object"==typeof r&&null!==r&&!Array.isArray(r)&&l["dot-notation"]?N(r,i):(!U(w,i.split("."))||y.defaulted[i]||y.arrays[i]&&l["combine-arrays"])&&j(i,r)})}function z(t,e){if(void 0!==h){var n="string"==typeof h?h:"";Object.keys(process.env).forEach(function(i){if(""===n||0===i.lastIndexOf(n,0)){var o=i.split("__").map(function(t,e){return 0===e&&(t=t.substring(n.length)),r(t)});!(e&&y.configs[o.join(".")]||!e)||U(t,o)&&!y.defaulted[o.join(".")]||j(o.join("."),process.env[i])}})}}function R(t,e,n){Object.keys(n).forEach(function(r){U(t,r.split("."))||(G(t,r.split("."),n[r]),(e[r]||[]).forEach(function(e){U(t,e.split("."))||G(t,e.split("."),n[r])}))})}function U(t,e){var n=t;l["dot-notation"]||(e=[e.join(".")]),e.slice(0,-1).forEach(function(t){n=n[t]||{}});var r=e[e.length-1];return"object"==typeof n&&r in n}function G(t,e,n){var r=t;l["dot-notation"]||(e=[e.join(".")]),e.slice(0,-1).forEach(function(t,e){"object"==typeof r&&void 0===r[t]&&(r[t]={}),"object"!=typeof r[t]||Array.isArray(r[t])?(Array.isArray(r[t])?r[t].push({}):r[t]=[r[t],{}],r=r[t][r[t].length-1]):r=r[t]});var i=e[e.length-1],o=H(e.join("."),y.arrays),a=Array.isArray(n),s=l["duplicate-arguments-array"];!s&&H(i,y.nargs)&&(s=!0,(!W(r[i])&&1===y.nargs[i]||Array.isArray(r[i])&&r[i].length===y.nargs[i])&&(r[i]=void 0)),n===u?r[i]=u(r[i]):Array.isArray(r[i])?s&&o&&a?r[i]=l["flatten-duplicate-arrays"]?r[i].concat(n):(Array.isArray(r[i][0])?r[i]:[r[i]]).concat([n]):s||Boolean(o)!==Boolean(a)?r[i]=r[i].concat([n]):r[i]=n:void 0===r[i]&&o?r[i]=a?n:[n]:s&&!(void 0===r[i]||H(i,y.bools)||H(e.join("."),y.bools)||H(i,y.counts))?r[i]=[r[i],n]:r[i]=n}function H(t,e){var n=!1;return[].concat(y.aliases[t]||[],t).forEach(function(t){e[t]&&(n=e[t])}),n}function $(t){return!H(t,y.bools)&&!H(t,y.counts)&&`${t}`in p?p[t]:q(function(t){var e="boolean";H(t,y.strings)?e="string":H(t,y.numbers)?e="number":H(t,y.arrays)&&(e="array");return e}(t))}function q(t){return{boolean:!0,string:"",number:void 0,array:[]}[t]}function W(t){return void 0===t}return z(w,!0),z(w,!1),function(t){var e={};R(e,y.aliases,p),Object.keys(y.configs).forEach(function(r){var i=t[r]||e[r];if(i)try{var a=null,s=o.resolve(process.cwd(),i);if("function"==typeof y.configs[r]){try{a=y.configs[r](s)}catch(t){a=t}if(a instanceof Error)return void(b=a)}else a=n(310)(s);N(a)}catch(e){t[r]&&(b=Error(_("Invalid JSON config file: %s",i)))}})}(w),function(){if(void 0===f)return;f.forEach(function(t){N(t)})}(),R(w,y.aliases,p),function(t){var e,n={};Object.keys(t).forEach(function(r){if(!n.hasOwnProperty(r)&&"function"==typeof(e=H(r,y.coercions)))try{var i=e(t[r]);[].concat(y.aliases[r]||[],r).forEach(e=>{n[e]=t[e]=i})}catch(t){b=t}})}(w),l["set-placeholder-key"]&&function(t){y.keys.forEach(e=>{~e.indexOf(".")||void 0===t[e]&&(t[e]=void 0)})}(w),Object.keys(y.counts).forEach(function(t){U(w,t.split("."))||j(t,0)}),d&&k.length&&(w[g]=[]),k.forEach(function(t){w[g].push(t)}),l["camel-case-expansion"]&&l["strip-dashed"]&&Object.keys(w).filter(t=>"--"!==t&&t.includes("-")).forEach(t=>{delete w[t]}),l["strip-aliased"]&&[].concat(...Object.keys(c).map(t=>c[t])).forEach(t=>{l["camel-case-expansion"]&&delete w[t.split(".").map(t=>r(t)).join(".")],delete w[t]}),{argv:w,error:b,aliases:y.aliases,newAliases:m,configuration:l}}function u(t){return void 0!==t?t+1:1}function l(t,e){return c(t.slice(),e).argv}l.detailed=function(t,e){return c(t.slice(),e)},t.exports=l},function(t,e){t.exports=function(t){[process.stdout,process.stderr].forEach(function(e){e._handle&&e.isTTY&&"function"==typeof e._handle.setBlocking&&e._handle.setBlocking(t)})}},function(t,e,n){"use strict";const r=n(322),i=t=>"string"==typeof t?t.replace(r(),""):t;t.exports=i,t.exports.default=i},function(t,e,n){var r=n(326),i={};for(var o in r)r.hasOwnProperty(o)&&(i[r[o]]=o);var a=t.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var s in a)if(a.hasOwnProperty(s)){if(!("channels"in a[s]))throw new Error("missing channels property: "+s);if(!("labels"in a[s]))throw new Error("missing channel labels property: "+s);if(a[s].labels.length!==a[s].channels)throw new Error("channel and label counts mismatch: "+s);var c=a[s].channels,u=a[s].labels;delete a[s].channels,delete a[s].labels,Object.defineProperty(a[s],"channels",{value:c}),Object.defineProperty(a[s],"labels",{value:u})}a.rgb.hsl=function(t){var e,n,r=t[0]/255,i=t[1]/255,o=t[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),c=s-a;return s===a?e=0:r===s?e=(i-o)/c:i===s?e=2+(o-r)/c:o===s&&(e=4+(r-i)/c),(e=Math.min(60*e,360))<0&&(e+=360),n=(a+s)/2,[e,100*(s===a?0:n<=.5?c/(s+a):c/(2-s-a)),100*n]},a.rgb.hsv=function(t){var e,n,r,i,o,a=t[0]/255,s=t[1]/255,c=t[2]/255,u=Math.max(a,s,c),l=u-Math.min(a,s,c),p=function(t){return(u-t)/6/l+.5};return 0===l?i=o=0:(o=l/u,e=p(a),n=p(s),r=p(c),a===u?i=r-n:s===u?i=1/3+e-r:c===u&&(i=2/3+n-e),i<0?i+=1:i>1&&(i-=1)),[360*i,100*o,100*u]},a.rgb.hwb=function(t){var e=t[0],n=t[1],r=t[2];return[a.rgb.hsl(t)[0],100*(1/255*Math.min(e,Math.min(n,r))),100*(r=1-1/255*Math.max(e,Math.max(n,r)))]},a.rgb.cmyk=function(t){var e,n=t[0]/255,r=t[1]/255,i=t[2]/255;return[100*((1-n-(e=Math.min(1-n,1-r,1-i)))/(1-e)||0),100*((1-r-e)/(1-e)||0),100*((1-i-e)/(1-e)||0),100*e]},a.rgb.keyword=function(t){var e=i[t];if(e)return e;var n,o,a,s=1/0;for(var c in r)if(r.hasOwnProperty(c)){var u=r[c],l=(o=t,a=u,Math.pow(o[0]-a[0],2)+Math.pow(o[1]-a[1],2)+Math.pow(o[2]-a[2],2));l.04045?Math.pow((e+.055)/1.055,2.4):e/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*e+.7152*n+.0722*r),100*(.0193*e+.1192*n+.9505*r)]},a.rgb.lab=function(t){var e=a.rgb.xyz(t),n=e[0],r=e[1],i=e[2];return r/=100,i/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},a.hsl.rgb=function(t){var e,n,r,i,o,a=t[0]/360,s=t[1]/100,c=t[2]/100;if(0===s)return[o=255*c,o,o];e=2*c-(n=c<.5?c*(1+s):c+s-c*s),i=[0,0,0];for(var u=0;u<3;u++)(r=a+1/3*-(u-1))<0&&r++,r>1&&r--,o=6*r<1?e+6*(n-e)*r:2*r<1?n:3*r<2?e+(n-e)*(2/3-r)*6:e,i[u]=255*o;return i},a.hsl.hsv=function(t){var e=t[0],n=t[1]/100,r=t[2]/100,i=n,o=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,i*=o<=1?o:2-o,[e,100*(0===r?2*i/(o+i):2*n/(r+n)),100*((r+n)/2)]},a.hsv.rgb=function(t){var e=t[0]/60,n=t[1]/100,r=t[2]/100,i=Math.floor(e)%6,o=e-Math.floor(e),a=255*r*(1-n),s=255*r*(1-n*o),c=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,c,a];case 1:return[s,r,a];case 2:return[a,r,c];case 3:return[a,s,r];case 4:return[c,a,r];case 5:return[r,a,s]}},a.hsv.hsl=function(t){var e,n,r,i=t[0],o=t[1]/100,a=t[2]/100,s=Math.max(a,.01);return r=(2-o)*a,n=o*s,[i,100*(n=(n/=(e=(2-o)*s)<=1?e:2-e)||0),100*(r/=2)]},a.hwb.rgb=function(t){var e,n,r,i,o,a,s,c=t[0]/360,u=t[1]/100,l=t[2]/100,p=u+l;switch(p>1&&(u/=p,l/=p),r=6*c-(e=Math.floor(6*c)),0!=(1&e)&&(r=1-r),i=u+r*((n=1-l)-u),e){default:case 6:case 0:o=n,a=i,s=u;break;case 1:o=i,a=n,s=u;break;case 2:o=u,a=n,s=i;break;case 3:o=u,a=i,s=n;break;case 4:o=i,a=u,s=n;break;case 5:o=n,a=u,s=i}return[255*o,255*a,255*s]},a.cmyk.rgb=function(t){var e=t[0]/100,n=t[1]/100,r=t[2]/100,i=t[3]/100;return[255*(1-Math.min(1,e*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},a.xyz.rgb=function(t){var e,n,r,i=t[0]/100,o=t[1]/100,a=t[2]/100;return n=-.9689*i+1.8758*o+.0415*a,r=.0557*i+-.204*o+1.057*a,e=(e=3.2406*i+-1.5372*o+-.4986*a)>.0031308?1.055*Math.pow(e,1/2.4)-.055:12.92*e,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(e=Math.min(Math.max(0,e),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},a.xyz.lab=function(t){var e=t[0],n=t[1],r=t[2];return n/=100,r/=108.883,e=(e/=95.047)>.008856?Math.pow(e,1/3):7.787*e+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(e-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},a.lab.xyz=function(t){var e,n,r,i=t[0];e=t[1]/500+(n=(i+16)/116),r=n-t[2]/200;var o=Math.pow(n,3),a=Math.pow(e,3),s=Math.pow(r,3);return n=o>.008856?o:(n-16/116)/7.787,e=a>.008856?a:(e-16/116)/7.787,r=s>.008856?s:(r-16/116)/7.787,[e*=95.047,n*=100,r*=108.883]},a.lab.lch=function(t){var e,n=t[0],r=t[1],i=t[2];return(e=360*Math.atan2(i,r)/2/Math.PI)<0&&(e+=360),[n,Math.sqrt(r*r+i*i),e]},a.lch.lab=function(t){var e,n=t[0],r=t[1];return e=t[2]/360*2*Math.PI,[n,r*Math.cos(e),r*Math.sin(e)]},a.rgb.ansi16=function(t){var e=t[0],n=t[1],r=t[2],i=1 in arguments?arguments[1]:a.rgb.hsv(t)[2];if(0===(i=Math.round(i/50)))return 30;var o=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(e/255));return 2===i&&(o+=60),o},a.hsv.ansi16=function(t){return a.rgb.ansi16(a.hsv.rgb(t),t[2])},a.rgb.ansi256=function(t){var e=t[0],n=t[1],r=t[2];return e===n&&n===r?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},a.ansi16.rgb=function(t){var e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),[e=e/10.5*255,e,e];var n=.5*(1+~~(t>50));return[(1&e)*n*255,(e>>1&1)*n*255,(e>>2&1)*n*255]},a.ansi256.rgb=function(t){if(t>=232){var e=10*(t-232)+8;return[e,e,e]}var n;return t-=16,[Math.floor(t/36)/5*255,Math.floor((n=t%36)/6)/5*255,n%6/5*255]},a.rgb.hex=function(t){var e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},a.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var n=e[0];3===e[0].length&&(n=n.split("").map(function(t){return t+t}).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},a.rgb.hcg=function(t){var e,n=t[0]/255,r=t[1]/255,i=t[2]/255,o=Math.max(Math.max(n,r),i),a=Math.min(Math.min(n,r),i),s=o-a;return e=s<=0?0:o===n?(r-i)/s%6:o===r?2+(i-n)/s:4+(n-r)/s+4,e/=6,[360*(e%=1),100*s,100*(s<1?a/(1-s):0)]},a.hsl.hcg=function(t){var e=t[1]/100,n=t[2]/100,r=1,i=0;return(r=n<.5?2*e*n:2*e*(1-n))<1&&(i=(n-.5*r)/(1-r)),[t[0],100*r,100*i]},a.hsv.hcg=function(t){var e=t[1]/100,n=t[2]/100,r=e*n,i=0;return r<1&&(i=(n-r)/(1-r)),[t[0],100*r,100*i]},a.hcg.rgb=function(t){var e=t[0]/360,n=t[1]/100,r=t[2]/100;if(0===n)return[255*r,255*r,255*r];var i,o=[0,0,0],a=e%1*6,s=a%1,c=1-s;switch(Math.floor(a)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=c,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=c,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=c}return i=(1-n)*r,[255*(n*o[0]+i),255*(n*o[1]+i),255*(n*o[2]+i)]},a.hcg.hsv=function(t){var e=t[1]/100,n=e+t[2]/100*(1-e),r=0;return n>0&&(r=e/n),[t[0],100*r,100*n]},a.hcg.hsl=function(t){var e=t[1]/100,n=t[2]/100*(1-e)+.5*e,r=0;return n>0&&n<.5?r=e/(2*n):n>=.5&&n<1&&(r=e/(2*(1-n))),[t[0],100*r,100*n]},a.hcg.hwb=function(t){var e=t[1]/100,n=e+t[2]/100*(1-e);return[t[0],100*(n-e),100*(1-n)]},a.hwb.hcg=function(t){var e=t[1]/100,n=1-t[2]/100,r=n-e,i=0;return r<1&&(i=(n-r)/(1-r)),[t[0],100*r,100*i]},a.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},a.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},a.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},a.gray.hsl=a.gray.hsv=function(t){return[0,0,t[0]]},a.gray.hwb=function(t){return[0,100,t[0]]},a.gray.cmyk=function(t){return[0,0,0,t[0]]},a.gray.lab=function(t){return[t[0],0,0]},a.gray.hex=function(t){var e=255&Math.round(t[0]/100*255),n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n},a.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}},function(t,e){function n(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id=301},function(t,e){t.exports=require("child_process")},function(t,e,n){"use strict";t.exports=t=>{const e=(t=t||{}).env||process.env;return"win32"!==(t.platform||process.platform)?"PATH":Object.keys(e).find(t=>"PATH"===t.toUpperCase())||"Path"}},function(t,e,n){"use strict";const r=n(306);function i(t,e){const o=r(t,e,n(293));var a;return a=o,Object.keys(a).forEach(t=>{"argv"===t?i.__defineGetter__(t,a.__lookupGetter__(t)):i[t]="function"==typeof a[t]?a[t].bind(a):a[t]}),o}i(process.argv.slice(2)),t.exports=i},function(t,e,n){"use strict";n.r(e);var r=n(134),i=n(44),o=n.n(i),a=n(60),s=n(304),c=n.n(s);(async()=>{const t=c()(process.argv).options({i:{alias:"input",demand:!0,describe:"Input",type:"string"},o:{alias:"output",demand:!0,describe:"Output",type:"string"},t:{alias:"temp",default:o.a.tmpdir(),describe:"Temp directory",type:"string"},l:{alias:"verbose",default:!0,describe:"Verbose log",type:"boolean"}}).help("help").alias("h","help").version("version",a.version).alias("v","version").argv;return await Object(r.default)(t.input,t.output,{temp:t.temp,verbose:t.verbose})})().then(t=>{console.log(`Output: ${t}`)}).catch(t=>{console.error(t.message)})},function(t,e,n){"use strict";(function(e){const r=n(290),i=n(5),o=n(294),a=n(313),s=n(297),c=n(1),u=n(315),l=n(328),p=n(330),f=n(292),h=n(298),d=n(331),{globalMiddlewareFactory:g}=n(296),m=n(133);function _(t,e){return c.relative(t,e)}(t.exports=function(t,b,y){t=t||[];const v={};let x=null,w=null,k={},E=[],D="",S={},O=null,C=null;const A=p({directory:c.resolve(e,"./locales"),updateFiles:!1});v.middleware=g(E,v),b||(b=process.cwd());v.scriptName=function(t){return v.$0=t,v},/\b(node|iojs|electron)(\.exe)?$/.test(process.argv[0])?v.$0=process.argv.slice(1,2):v.$0=process.argv.slice(0,1);v.$0=v.$0.map((t,e)=>{const n=_(b,t);return t.match(/^(\/|([a-zA-Z]:)?\\)/)&&n.length{T[t].push(e)})}function L(t,e,n,r,i){if(Array.isArray(r)){const e={};r.forEach(t=>{e[t]=i}),t(e)}else"object"==typeof r?Object.keys(r).forEach(e=>{t(e,r[e])}):T[n][r]=e?(T[n][r]||[]).concat(i):i}function M(t){Object.keys(T).forEach(e=>{const n=T[e];Array.isArray(n)?~n.indexOf(t)&&n.splice(n.indexOf(t),1):"object"==typeof n&&delete n[t]}),delete O.getDescriptions()[t]}v.getContext=()=>I,v.resetOptions=v.reset=function(t){I.resets++,t=t||{},T=T||{};const e={};e.local=T.local?T.local:[],e.configObjects=T.configObjects?T.configObjects:[];const n={};e.local.forEach(e=>{n[e]=!0,(t[e]||[]).forEach(t=>{n[t]=!0})}),S=Object.keys(k).reduce((t,e)=>{const r=k[e].filter(t=>!(t in n));return r.length>0&&(t[e]=r),t},{}),k={};return["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"].forEach(t=>{e[t]=(T[t]||[]).filter(t=>!n[t])}),["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","coerce"].forEach(t=>{e[t]=f(T[t],(t,e)=>!n[t])}),e.envPrefix=T.envPrefix,T=e,O=O?O.reset(n):u(v,A),C=C?C.reset(n):l(v,O,A),x=x?x.reset():o(v,O,C,E),w||(w=a(v,O,x)),Y=null,D="",Q=null,X=!1,v.parsed=!1,v},v.resetOptions(),v.boolean=function(t){return r("",[t],arguments.length),j("boolean",t),v},v.array=function(t){return r("",[t],arguments.length),j("array",t),v},v.number=function(t){return r("",[t],arguments.length),j("number",t),v},v.normalize=function(t){return r("",[t],arguments.length),j("normalize",t),v},v.count=function(t){return r("",[t],arguments.length),j("count",t),v},v.string=function(t){return r("",[t],arguments.length),j("string",t),v},v.requiresArg=function(t){return r("",[t],arguments.length),L(v.nargs,!1,"narg",t,1),v},v.skipValidation=function(t){return r("",[t],arguments.length),j("skipValidation",t),v},v.nargs=function(t,e){return r(" [number]",[t,e],arguments.length),L(v.nargs,!1,"narg",t,e),v},v.choices=function(t,e){return r(" [string|array]",[t,e],arguments.length),L(v.choices,!0,"choices",t,e),v},v.alias=function(t,e){return r(" [string|array]",[t,e],arguments.length),L(v.alias,!0,"alias",t,e),v},v.default=v.defaults=function(t,e,n){return r(" [*] [string]",[t,e,n],arguments.length),n&&(T.defaultDescription[t]=n),"function"==typeof e&&(T.defaultDescription[t]||(T.defaultDescription[t]=O.functionDescription(e)),e=e.call()),L(v.default,!1,"default",t,e),v},v.describe=function(t,e){return r(" [string]",[t,e],arguments.length),L(v.describe,!1,"key",t,!0),O.describe(t,e),v},v.demandOption=function(t,e){return r(" [string]",[t,e],arguments.length),L(v.demandOption,!1,"demandedOptions",t,e),v},v.coerce=function(t,e){return r(" [function]",[t,e],arguments.length),L(v.coerce,!1,"coerce",t,e),v},v.config=function(t,e,n){return r("[object|string] [string|function] [function]",[t,e,n],arguments.length),"object"==typeof t?(t=d(t,b),T.configObjects=(T.configObjects||[]).concat(t),v):("function"==typeof e&&(n=e,e=null),t=t||"config",v.describe(t,e||O.deferY18nLookup("Path to JSON config file")),(Array.isArray(t)?t:[t]).forEach(t=>{T.config[t]=n||!0}),v)},v.example=function(t,e){return r(" [string]",[t,e],arguments.length),O.example(t,e),v},v.command=function(t,e,n,i,o){return r(" [string|boolean] [function|object] [function] [array]",[t,e,n,i,o],arguments.length),x.addHandler(t,e,n,i,o),v},v.commandDir=function(t,e){r(" [object]",[t,e],arguments.length);const i=y||n(293);return x.addDirectory(t,v.getContext(),i,n(332)(),e),v},v.demand=v.required=v.require=function(t,e,n){return Array.isArray(e)?(e.forEach(t=>{v.demandOption(t,n)}),e=1/0):"number"!=typeof e&&(n=e,e=1/0),"number"==typeof t?v.demandCommand(t,e,n,n):Array.isArray(t)?t.forEach(t=>{v.demandOption(t,n)}):"string"==typeof n?v.demandOption(t,n):!0!==n&&void 0!==n||v.demandOption(t),v},v.demandCommand=function(t,e,n,i){return r("[number] [number|string] [string|null|undefined] [string|null|undefined]",[t,e,n,i],arguments.length),void 0===t&&(t=1),"number"!=typeof e&&(n=e,e=1/0),v.global("_",!1),T.demandedCommands._={min:t,max:e,minMsg:n,maxMsg:i},v},v.getDemandedOptions=()=>(r([],0),T.demandedOptions),v.getDemandedCommands=()=>(r([],0),T.demandedCommands),v.implies=function(t,e){return r(" [number|string|array]",[t,e],arguments.length),C.implies(t,e),v},v.conflicts=function(t,e){return r(" [string|array]",[t,e],arguments.length),C.conflicts(t,e),v},v.usage=function(t,e,n,i){if(r(" [string|boolean] [function|object] [function]",[t,e,n,i],arguments.length),void 0!==e){if((t||"").match(/^\$0( |$)/))return v.command(t,e,n,i);throw new m(".usage() description must start with $0 if being used as alias for .command()")}return O.usage(t),v},v.epilogue=v.epilog=function(t){return r("",[t],arguments.length),O.epilog(t),v},v.fail=function(t){return r("",[t],arguments.length),O.failFn(t),v},v.check=function(t,e){return r(" [boolean]",[t,e],arguments.length),C.check(t,!1!==e),v},v.global=function(t,e){return r(" [boolean]",[t,e],arguments.length),t=[].concat(t),!1!==e?T.local=T.local.filter(e=>-1===t.indexOf(e)):t.forEach(t=>{-1===T.local.indexOf(t)&&T.local.push(t)}),v},v.pkgConf=function(t,e){r(" [string]",[t,e],arguments.length);let n=null;const i=z(e||b);return i[t]&&"object"==typeof i[t]&&(n=d(i[t],e||b),T.configObjects=(T.configObjects||[]).concat(n)),v};const N={};function z(t){const e=t||"*";if(N[e])return N[e];const r=n(333);let o={};try{let e=t||n(339)(y||n(293));!t&&c.extname(e)&&(e=c.dirname(e));const a=r.sync("package.json",{cwd:e});o=JSON.parse(i.readFileSync(a))}catch(t){}return N[e]=o||{},N[e]}let R=null,U=null;v.parse=function(e,n,i){if(r("[string|array] [function|boolean|object] [function]",[e,n,i],arguments.length),void 0===e)return v._parseArgs(t);"object"==typeof n&&(U=n,n=i),"function"==typeof n&&(R=n,n=null),n||(t=e),B(),R&&(V=!1);const o=v._parseArgs(e,n);return R&&R(Q,o,D),F(),o},v._getParseContext=()=>U||{},v._hasParseCallback=()=>!!R,v.option=v.options=function(t,e){if(r(" [object]",[t,e],arguments.length),"object"==typeof t)Object.keys(t).forEach(e=>{v.options(e,t[e])});else{"object"!=typeof e&&(e={}),T.key[t]=!0,e.alias&&v.alias(t,e.alias);const n=e.demand||e.required||e.require;n&&v.demand(t,n),e.demandOption&&v.demandOption(t,"string"==typeof e.demandOption?e.demandOption:void 0),"conflicts"in e&&v.conflicts(t,e.conflicts),"default"in e&&v.default(t,e.default),"implies"in e&&v.implies(t,e.implies),"nargs"in e&&v.nargs(t,e.nargs),e.config&&v.config(t,e.configParser),e.normalize&&v.normalize(t),"choices"in e&&v.choices(t,e.choices),"coerce"in e&&v.coerce(t,e.coerce),"group"in e&&v.group(t,e.group),(e.boolean||"boolean"===e.type)&&(v.boolean(t),e.alias&&v.boolean(e.alias)),(e.array||"array"===e.type)&&(v.array(t),e.alias&&v.array(e.alias)),(e.number||"number"===e.type)&&(v.number(t),e.alias&&v.number(e.alias)),(e.string||"string"===e.type)&&(v.string(t),e.alias&&v.string(e.alias)),(e.count||"count"===e.type)&&v.count(t),"boolean"==typeof e.global&&v.global(t,e.global),e.defaultDescription&&(T.defaultDescription[t]=e.defaultDescription),e.skipValidation&&v.skipValidation(t);const r=e.describe||e.description||e.desc;v.describe(t,r),e.hidden&&v.hide(t),e.requiresArg&&v.requiresArg(t)}return v},v.getOptions=()=>T,v.positional=function(t,e){if(r(" ",[t,e],arguments.length),0===I.resets)throw new m(".positional() can only be called in a command's builder function");const n=["default","implies","normalize","choices","conflicts","coerce","type","describe","desc","description","alias"];e=f(e,(t,e)=>{let r=-1!==n.indexOf(t);return"type"===t&&-1===["string","number","boolean"].indexOf(e)&&(r=!1),r});const i=I.fullCommands[I.fullCommands.length-1],o=i?x.cmdToParseOptions(i):{array:[],alias:{},default:{},demand:{}};return Object.keys(o).forEach(n=>{Array.isArray(o[n])?-1!==o[n].indexOf(t)&&(e[n]=!0):!o[n][t]||n in e||(e[n]=o[n][t])}),v.group(t,O.getPositionalGroupName()),v.option(t,e)},v.group=function(t,e){r(" ",[t,e],arguments.length);const n=S[e]||k[e];S[e]&&delete S[e];const i={};return k[e]=(n||[]).concat(t).filter(t=>!i[t]&&(i[t]=!0)),v},v.getGroups=()=>Object.assign({},k,S),v.env=function(t){return r("[string|boolean]",[t],arguments.length),T.envPrefix=!1===t?void 0:t||"",v},v.wrap=function(t){return r("",[t],arguments.length),O.wrap(t),v};let G=!1;v.strict=function(t){return r("[boolean]",[t],arguments.length),G=!1!==t,v},v.getStrict=()=>G;let H={};v.parserConfiguration=function(t){return r("",[t],arguments.length),H=t,v},v.getParserConfiguration=()=>H,v.showHelp=function(e){return r("[string|function]",[e],arguments.length),v.parsed||v._parseArgs(t),x.hasDefaultCommand()&&(I.resets++,x.runDefaultBuilderOn(v,!0)),O.showHelp(e),v};let $=null;function q(){const t=z();return t.version||"unknown"}v.version=function(t,e,n){const i="version";if(r("[boolean|string] [string] [string]",[t,e,n],arguments.length),$&&(M($),O.version(void 0),$=null),0===arguments.length)n=q(),t=i;else if(1===arguments.length){if(!1===t)return v;n=t,t=i}else 2===arguments.length&&(n=e,e=null);return $="string"==typeof t?t:i,e=e||O.deferY18nLookup("Show version number"),O.version(n||void 0),v.boolean($),v.describe($,e),v};let W=null;v.addHelpOpt=v.help=function(t,e){const n="help";return r("[string|boolean] [string]",[t,e],arguments.length),W&&(M(W),W=null),1===arguments.length&&!1===t?v:(W="string"==typeof t?t:n,v.boolean(W),v.describe(W,e||O.deferY18nLookup("Show help")),v)};T.showHiddenOpt="show-hidden",v.addShowHiddenOpt=v.showHidden=function(t,e){if(r("[string|boolean] [string]",[t,e],arguments.length),1===arguments.length&&!1===t)return v;const n="string"==typeof t?t:"show-hidden";return v.boolean(n),v.describe(n,e||O.deferY18nLookup("Show hidden options")),T.showHiddenOpt=n,v},v.hide=function(t){return r("",[t],arguments.length),T.hiddenOptions.push(t),v},v.showHelpOnFail=function(t,e){return r("[boolean|string] [string]",[t,e],arguments.length),O.showHelpOnFail(t,e),v};var V=!0;v.exitProcess=function(t){return r("[boolean]",[t],arguments.length),"boolean"!=typeof t&&(t=!0),V=t,v},v.getExitProcess=()=>V;var Y=null;v.completion=function(t,e,n){return r("[string] [string|boolean|function] [function]",[t,e,n],arguments.length),"function"==typeof e&&(n=e,e=null),Y=t||"completion",e||!1===e||(e="generate completion script"),v.command(Y,e),n&&w.registerFunction(n),v},v.showCompletionScript=function(t){return r("[string]",[t],arguments.length),t=t||v.$0,J.log(w.generateCompletionScript(t,Y)),v},v.getCompletion=function(t,e){r(" ",[t,e],arguments.length),w.getCompletion(t,e)},v.locale=function(t){return r("[string]",[t],arguments.length),0===arguments.length?(tt(),A.getLocale()):(Z=!1,A.setLocale(t),v)},v.updateStrings=v.updateLocale=function(t){return r("",[t],arguments.length),Z=!1,A.updateLocale(t),v};let Z=!0;v.detectLocale=function(t){return r("",[t],arguments.length),Z=t,v},v.getDetectLocale=()=>Z;var X=!1,Q=null;v.exit=(t,e)=>{X=!0,Q=e,V&&process.exit(t)};const J={log(){const t=[];for(let e=0;eJ,v._hasOutput=()=>X,v._setHasOutput=()=>{X=!0},v.recommendCommands=function(t){return r("[boolean]",[t],arguments.length),K="boolean"!=typeof t||t,v},v.getUsageInstance=()=>O,v.getValidationInstance=()=>C,v.getCommandInstance=()=>x,v.terminalWidth=()=>(r([],0),void 0!==process.stdout.columns?process.stdout.columns:null),Object.defineProperty(v,"argv",{get:()=>v._parseArgs(t),enumerable:!0}),v._parseArgs=function(e,n,r,i){let o=!!r;e=e||t,T.__=A.__,T.configuration=v.getParserConfiguration();let a=z().yargs;a&&(console.warn("Configuring yargs through package.json is deprecated and will be removed in the next major release, please use the JS API instead."),T.configuration=Object.assign({},a,T.configuration));const c=s.detailed(e,T);let u=c.argv;U&&(u=Object.assign({},u,U));const l=c.aliases;u.$0=v.$0,v.parsed=c;try{if(tt(),n)return u;W&&~[W].concat(l[W]||[]).filter(t=>t.length>1).indexOf(u._[u._.length-1])&&(u._.pop(),u[W]=!0);const t=x.getCommands(),r=w.completionKey in u,a=u[W]||r,s=a&&(t.length>1||"$0"!==t[0]);if(u._.length){if(t.length){let e;for(let n,r=i||0;void 0!==u._[r];r++){if(n=String(u._[r]),~t.indexOf(n)&&n!==Y)return x.runCommand(n,v,c,r+1);if(!e&&n!==Y){e=n;break}}if(x.hasDefaultCommand()&&!s)return x.runCommand(null,v,c);K&&e&&!a&&C.recommendCommands(e,t)}Y&&~u._.indexOf(Y)&&!r&&(V&&h(!0),v.showCompletionScript(),v.exit(0))}else if(x.hasDefaultCommand()&&!s)return x.runCommand(null,v,c);if(r){V&&h(!0);const t=e.slice(e.indexOf(`--${w.completionKey}`)+1);return w.getCompletion(t,t=>{(t||[]).forEach(t=>{J.log(t)}),v.exit(0)}),u}if(X||Object.keys(u).forEach(t=>{t===W&&u[t]?(V&&h(!0),o=!0,v.showHelp("log"),v.exit(0)):t===$&&u[t]&&(V&&h(!0),o=!0,O.showVersion(),v.exit(0))}),!o&&T.skipValidation.length>0&&(o=Object.keys(u).some(t=>T.skipValidation.indexOf(t)>=0&&!0===u[t])),!o){if(c.error)throw new m(c.error.message);r||v._runValidation(u,l,{},c.error)}}catch(t){if(!(t instanceof m))throw t;O.fail(t.message,t)}return u},v._runValidation=function(t,e,n,r){if(r)throw new m(r.message||r);C.nonOptionCount(t),C.requiredArguments(t),G&&C.unknownArguments(t,e,n),C.customChecks(t,e),C.limitedChoices(t),C.implications(t),C.conflicting(t)},v.help(),v.version(),v}).rebase=_}).call(this,"/")},function(t,e,n){"use strict";const r=(t,e)=>{if("string"!=typeof t&&!Array.isArray(t))throw new TypeError("Expected the input to be `string | string[]`");e=Object.assign({pascalCase:!1},e);return 0===(t=Array.isArray(t)?t.map(t=>t.trim()).filter(t=>t.length).join("-"):t.trim()).length?"":1===t.length?e.pascalCase?t.toUpperCase():t.toLowerCase():(t!==t.toLowerCase()&&(t=(t=>{let e=!1,n=!1,r=!1;for(let i=0;ie.pascalCase?t.charAt(0).toUpperCase()+t.slice(1):t)(t=t.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(t,e)=>e.toUpperCase()).replace(/\d+(\w|$)/g,t=>t.toUpperCase())))};t.exports=r,t.exports.default=r},function(t,e,n){"use strict";t.exports=function(t,e){if("string"!=typeof t)throw new TypeError("Expected a string");return e=void 0===e?"_":e,t.replace(/([a-z\d])([A-Z])/g,"$1"+e+"$2").replace(/([A-Z]+)([A-Z][a-z\d]+)/g,"$1"+e+"$2").toLowerCase()}},function(t,e){t.exports=function(t){if(Array.isArray(t))return t.map(t=>"string"!=typeof t?t+"":t);t=t.trim();for(var e=0,n=null,r=null,i=null,o=[],a=0;a{process.nextTick(()=>{r(t)})}).catch(t=>{process.nextTick(()=>{throw t})}):r(t)}return s(c,u,t=>{r(t)})}const f=i.getCommandHandlers();for(let e=0,r=n.length;e{const e=i.parseCommand(t[0]).cmd;if(-1===n.indexOf(e))if(a){const n=t[1]||"";o.push(e.replace(/:/g,"\\:")+":"+n)}else o.push(e)}),c.match(/^-/)||""===c&&0===o.length){const r=e.getDescriptions();Object.keys(t.getOptions().key).forEach(t=>{if([t].concat(l[t]||[]).every(t=>-1===n.indexOf(`--${t}`)))if(a){const e=r[t]||"";o.push(`--${t.replace(/:/g,"\\:")}:${e.replace("__yargsString__:","")}`)}else o.push(`--${t}`)})}r(o)},o.generateCompletionScript=function(t,e){const i=n(314);let o=a?i.completionZshTemplate:i.completionShTemplate;const s=r.basename(t);return t.match(/\.js$/)&&(t=`./${t}`),(o=(o=o.replace(/{{app_name}}/g,s)).replace(/{{completion_command}}/g,e)).replace(/{{app_path}}/g,t)};let s=null;return o.registerFunction=t=>{s=t},o}},function(t,e){e.completionShTemplate='###-begin-{{app_name}}-completions-###\n#\n# yargs command completion script\n#\n# Installation: {{app_path}} {{completion_command}} >> ~/.bashrc\n# or {{app_path}} {{completion_command}} >> ~/.bash_profile on OSX.\n#\n_yargs_completions()\n{\n local cur_word args type_list\n\n cur_word="${COMP_WORDS[COMP_CWORD]}"\n args=("${COMP_WORDS[@]}")\n\n # ask yargs to generate completions.\n type_list=$({{app_path}} --get-yargs-completions "${args[@]}")\n\n COMPREPLY=( $(compgen -W "${type_list}" -- ${cur_word}) )\n\n # if no match was found, fall back to filename completion\n if [ ${#COMPREPLY[@]} -eq 0 ]; then\n COMPREPLY=()\n fi\n\n return 0\n}\ncomplete -o default -F _yargs_completions {{app_name}}\n###-end-{{app_name}}-completions-###\n',e.completionZshTemplate='###-begin-{{app_name}}-completions-###\n#\n# yargs command completion script\n#\n# Installation: {{app_path}} {{completion_command}} >> ~/.zshrc\n# or {{app_path}} {{completion_command}} >> ~/.zsh_profile on OSX.\n#\n_{{app_name}}_yargs_completions()\n{\n local reply\n local si=$IFS\n IFS=$\'\n\' reply=($(COMP_CWORD="$((CURRENT-1))" COMP_LINE="$BUFFER" COMP_POINT="$CURSOR" {{app_path}} --get-yargs-completions "${words[@]}"))\n IFS=$si\n _describe \'values\' reply\n}\ncompdef _{{app_name}}_yargs_completions {{app_name}}\n###-end-{{app_name}}-completions-###\n'},function(t,e,n){"use strict";const r=n(316),i=n(291),o=n(292),a=n(1),s=n(298),c=n(133);t.exports=function(t,e){const u=e.__,l={},p=[];l.failFn=function(t){p.push(t)};let f=null,h=!0;l.showHelpOnFail=function(t,e){return"string"==typeof t?(e=t,t=!0):void 0===t&&(t=!0),f=e,h=t,l};let d=!1;l.fail=function(e,n){const r=t._getLoggerInstance();if(!p.length){if(t.getExitProcess()&&s(!0),d||(d=!0,h&&(t.showHelp("error"),r.error()),(e||n)&&r.error(e||n),f&&((e||n)&&r.error(""),r.error(f))),n=n||new c(e),t.getExitProcess())return t.exit(1);if(t._hasParseCallback())return t.exit(1,n);throw n}for(let t=p.length-1;t>=0;--t)p[t](e,n,l)};let g=[],m=!1;l.usage=(t,e)=>null===t?(m=!0,void(g=[])):(m=!1,g.push([t,e||""]),l),l.getUsage=()=>g,l.getUsageDisabled=()=>m,l.getPositionalGroupName=()=>u("Positionals:");let _=[];l.example=(t,e)=>{_.push([t,e||""])};let b=[];l.command=function(t,e,n,r){n&&(b=b.map(t=>(t[2]=!1,t))),b.push([t,e||"",n,r])},l.getCommands=()=>b;let y,v={};l.describe=function(t,e){"object"==typeof t?Object.keys(t).forEach(e=>{l.describe(e,t[e])}):v[t]=e},l.getDescriptions=()=>v,l.epilog=t=>{y=t};let x,w=!1;function k(){return w||(x="object"==typeof process&&process.stdout&&process.stdout.columns?Math.min(80,process.stdout.columns):80,w=!0),x}l.wrap=t=>{w=!0,x=t};l.deferY18nLookup=t=>"__yargsString__:"+t;const E="Options:";function D(t,e,n){let r=0;return Array.isArray(t)||(t=Object.keys(t).map(e=>[t[e]])),t.forEach(t=>{r=Math.max(i(n?`${n} ${t[0]}`:t[0]),r)}),e&&(r=Math.min(r,parseInt(.5*e,10))),r}function S(e){return t.getOptions().hiddenOptions.indexOf(e)<0||t.parsed.argv[t.getOptions().showHiddenOpt]}function O(t,e){let n=`[${u("default:")} `;if(void 0===t&&!e)return null;if(e)n+=e;else switch(typeof t){case"string":n+=`"${t}"`;break;case"object":n+=JSON.stringify(t);break;default:n+=t}return`${n}]`}l.help=function(){!function(){const e=t.getDemandedOptions(),n=t.getOptions();(Object.keys(n.alias)||[]).forEach(r=>{n.alias[r].forEach(i=>{v[i]&&l.describe(r,v[i]),i in e&&t.demandOption(r,e[i]),~n.boolean.indexOf(i)&&t.boolean(r),~n.count.indexOf(i)&&t.count(r),~n.string.indexOf(i)&&t.string(r),~n.normalize.indexOf(i)&&t.normalize(r),~n.array.indexOf(i)&&t.array(r),~n.number.indexOf(i)&&t.number(r)})})}();const e=a.basename(t.$0),r=t.getDemandedOptions(),i=t.getDemandedCommands(),o=t.getGroups(),s=t.getOptions();let c=[];c=(c=(c=(c=(c=c.concat(Object.keys(v))).concat(Object.keys(r))).concat(Object.keys(i))).concat(Object.keys(s.default))).filter(S),c=Object.keys(c.reduce((t,e)=>("_"!==e&&(t[e]=!0),t),{}));const p=k(),f=n(321)({width:p,wrap:!!p});if(!m)if(g.length)g.forEach(t=>{f.div(`${t[0].replace(/\$0/g,e)}`),t[1]&&f.div({text:`${t[1]}`,padding:[1,0,0,0]})}),f.div();else if(b.length){let t=null;t=i._?`${e} <${u("command")}>\n`:`${e} [${u("command")}]\n`,f.div(`${t}`)}if(b.length){f.div(u("Commands:"));const n=t.getContext(),r=n.commands.length?`${n.commands.join(" ")} `:"";!0===t.getParserConfiguration()["sort-commands"]&&(b=b.sort((t,e)=>t[0].localeCompare(e[0]))),b.forEach(t=>{const n=`${e} ${r}${t[0].replace(/^\$0 ?/,"")}`;f.span({text:n,padding:[0,2,0,2],width:D(b,p,`${e}${r}`)+4},{text:t[1]});const i=[];t[2]&&i.push(`[${u("default:").slice(0,-1)}]`),t[3]&&t[3].length&&i.push(`[${u("aliases:")} ${t[3].join(", ")}]`),i.length?f.div({text:i.join(" "),padding:[0,0,0,2],align:"right"}):f.div()}),f.div()}const h=(Object.keys(s.alias)||[]).concat(Object.keys(t.parsed.newAliases)||[]);if(c=c.filter(e=>!t.parsed.newAliases[e]&&h.every(t=>-1===(s.alias[t]||[]).indexOf(e))),o[E]||(o[E]=[]),function(t,e,n){let r=[],i=null;Object.keys(n).forEach(t=>{r=r.concat(n[t])}),t.forEach(t=>{(i=[t].concat(e[t])).some(t=>-1!==r.indexOf(t))||n[E].push(t)})}(c,s.alias,o),Object.keys(o).forEach(t=>{if(!o[t].length)return;const e=o[t].filter(S).map(t=>{if(~h.indexOf(t))return t;for(let e,n=0;void 0!==(e=h[n]);n++)if(~(s.alias[e]||[]).indexOf(t))return e;return t});if(e.length<1)return;f.div(u(t));const n=e.reduce((e,n)=>(e[n]=[n].concat(s.alias[n]||[]).map(e=>t===l.getPositionalGroupName()?e:(e.length>1?"--":"-")+e).join(", "),e),{});e.forEach(t=>{const e=n[t];let i=v[t]||"",o=null;~i.lastIndexOf("__yargsString__:")&&(i=u(i.substring("__yargsString__:".length))),~s.boolean.indexOf(t)&&(o=`[${u("boolean")}]`),~s.count.indexOf(t)&&(o=`[${u("count")}]`),~s.string.indexOf(t)&&(o=`[${u("string")}]`),~s.normalize.indexOf(t)&&(o=`[${u("string")}]`),~s.array.indexOf(t)&&(o=`[${u("array")}]`),~s.number.indexOf(t)&&(o=`[${u("number")}]`);const a=[o,t in r?`[${u("required")}]`:null,s.choices&&s.choices[t]?`[${u("choices:")} ${l.stringifiedValues(s.choices[t])}]`:null,O(s.default[t],s.defaultDescription[t])].filter(Boolean).join(" ");f.span({text:e,padding:[0,2,0,2],width:D(n,p)+4},i),a?f.div({text:a,padding:[0,0,0,2],align:"right"}):f.div()}),f.div()}),_.length&&(f.div(u("Examples:")),_.forEach(t=>{t[0]=t[0].replace(/\$0/g,e)}),_.forEach(t=>{""===t[1]?f.div({text:t[0],padding:[0,2,0,2]}):f.div({text:t[0],padding:[0,2,0,2],width:D(_,p)+4},{text:t[1]})}),f.div()),y){const t=y.replace(/\$0/g,e);f.div(`${t}\n`)}return f.toString().replace(/\s*$/,"")},l.showHelp=e=>{const n=t._getLoggerInstance();e||(e="error"),("function"==typeof e?e:n[e])(l.help())},l.functionDescription=t=>{return["(",t.name?r(t.name,"-"):u("generated-value"),")"].join("")},l.stringifiedValues=function(t,e){let n="";const r=e||", ",i=[].concat(t);return t&&i.length?(i.forEach(t=>{n.length&&(n+=r),n+=JSON.stringify(t)}),n):n};let C,A=null;return l.version=t=>{A=t},l.showVersion=()=>{t._getLoggerInstance().log(A)},l.reset=function(t){return f=null,d=!1,g=[],m=!1,y=void 0,_=[],b=[],v=o(v,(e,n)=>!t[e]),l},l.freeze=function(){(C={}).failMessage=f,C.failureOutput=d,C.usages=g,C.usageDisabled=m,C.epilog=y,C.examples=_,C.commands=b,C.descriptions=v},l.unfreeze=function(){f=C.failMessage,d=C.failureOutput,g=C.usages,m=C.usageDisabled,y=C.epilog,_=C.examples,b=C.commands,v=C.descriptions,C=void 0},l}},function(t,e,n){"use strict";t.exports=(t,e)=>(e=void 0===e?"_":e,t.replace(/([a-z\d])([A-Z])/g,`$1${e}$2`).replace(/([A-Z]+)([A-Z][a-z\d]+)/g,`$1${e}$2`).toLowerCase())},function(t,e,n){"use strict";const r=n(318),i=t=>"string"==typeof t?t.replace(r(),""):t;t.exports=i,t.exports.default=i},function(t,e,n){"use strict";t.exports=t=>{t=Object.assign({onlyFirst:!1},t);const e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t.onlyFirst?void 0:"g")}},function(t,e,n){"use strict";t.exports=t=>!Number.isNaN(t)&&(t>=4352&&(t<=4447||9001===t||9002===t||11904<=t&&t<=12871&&12351!==t||12880<=t&&t<=19903||19968<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65131||65281<=t&&t<=65376||65504<=t&&t<=65510||110592<=t&&t<=110593||127488<=t&&t<=127569||131072<=t&&t<=262141))},function(t,e,n){"use strict";t.exports=function(){return/\uD83C\uDFF4(?:\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74)\uDB40\uDC7F|\u200D\u2620\uFE0F)|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3]))|\uD83D\uDC69\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83D\uDC69\u200D[\u2695\u2696\u2708])\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC68(?:\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3])|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF9]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD70\uDD73-\uDD76\uDD7A\uDD7C-\uDDA2\uDDB0-\uDDB9\uDDC0-\uDDC2\uDDD0-\uDDFF])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF9]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD70\uDD73-\uDD76\uDD7A\uDD7C-\uDDA2\uDDB0-\uDDB9\uDDC0-\uDDC2\uDDD0-\uDDFF])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDD1-\uDDDD])/g}},function(t,e,n){var r=n(291),i=n(299),o=n(323),a={right:function(t,e){t=t.trim();var n="",i=r(t);i1&&r(n[0])>i&&(i=Math.min(Math.floor(.5*e.width),r(n[0])))}),n.forEach(function(t){var n=t.split("\t");e.div.apply(e,n.map(function(t,r){return{text:t.trim(),padding:e._measurePadding(t),width:0===r&&n.length>1?i:void 0}}))}),this.rows[this.rows.length-1]},u.prototype._colFromString=function(t){return{text:t,padding:this._measurePadding(t)}},u.prototype._measurePadding=function(t){var e=i(t);return[0,e.match(/\s*$/)[0].length,0,e.match(/^\s*/)[0].length]},u.prototype.toString=function(){var t=this,e=[];return t.rows.forEach(function(n,r){t.rowToString(n,e)}),(e=e.filter(function(t){return!t.hidden})).map(function(t){return t.text}).join("\n")},u.prototype.rowToString=function(t,e){var n,i,o,u,p=this,f=this._rasterize(t),h="";return f.forEach(function(f,d){h="",f.forEach(function(f,g){i="",o=t[g].width,u=p._negatePadding(t[g]),i+=f;for(var m=0;m0&&(h=p._renderInline(h,e[e.length-1]))}),e.push({text:h.replace(/ +$/,""),span:t.span})}),e},u.prototype._renderInline=function(t,e){var n=t.match(/^ */)[0].length,i=e.text,o=r(i.trimRight());return e.span?this.wrap?n{t=Object.assign({onlyFirst:!1},t);const e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t.onlyFirst?void 0:"g")}},function(t,e,n){"use strict";const r=n(291),i=n(299),o=n(324),a=new Set(["","›"]),s=t=>`${a.values().next().value}[${t}m`,c=(t,e,n)=>{const o=[...e];let s=!1,c=r(i(t[t.length-1]));for(const[e,i]of o.entries()){const u=r(i);if(c+u<=n?t[t.length-1]+=i:(t.push(i),c=0),a.has(i))s=!0;else if(s&&"m"===i){s=!1;continue}s||(c+=u)===n&&e0&&t.length>1&&(t[t.length-2]+=t.pop())},u=t=>{const e=t.split(" ");let n=e.length;for(;n>0&&!(r(e[n-1])>0);)n--;return n===e.length?t:e.slice(0,n).join(" ")+e.slice(n).join("")},l=(t,e,n={})=>{if(!1!==n.trim&&""===t.trim())return"";let i,l="",p="";const f=(t=>t.split(" ").map(t=>r(t)))(t);let h=[""];for(const[i,o]of t.split(" ").entries()){!1!==n.trim&&(h[h.length-1]=h[h.length-1].trimLeft());let t=r(h[h.length-1]);if(0!==i&&(t>=e&&(!1===n.wordWrap||!1===n.trim)&&(h.push(""),t=0),(t>0||!1===n.trim)&&(h[h.length-1]+=" ",t++)),n.hard&&f[i]>e){const n=e-t,r=1+Math.floor((f[i]-n-1)/e);Math.floor((f[i]-1)/e)e&&t>0&&f[i]>0){if(!1===n.wordWrap&&te&&!1===n.wordWrap?c(h,o,e):h[h.length-1]+=o}}!1!==n.trim&&(h=h.map(u)),l=h.join("\n");for(const[t,e]of[...l].entries()){if(p+=e,a.has(e)){const e=parseFloat(/\d[^m]*/.exec(l.slice(t,t+4)));i=39===e?null:e}const n=o.codes.get(Number(i));i&&n&&("\n"===l[t+1]?p+=s(n):"\n"===e&&(p+=s(i)))}return p};t.exports=(t,e,n)=>String(t).normalize().split("\n").map(t=>l(t,e,n)).join("\n")},function(t,e,n){"use strict";(function(t){const e=n(325),r=(t,n)=>(function(){const r=t.apply(e,arguments);return`[${r+n}m`}),i=(t,n)=>(function(){const r=t.apply(e,arguments);return`[${38+n};5;${r}m`}),o=(t,n)=>(function(){const r=t.apply(e,arguments);return`[${38+n};2;${r[0]};${r[1]};${r[2]}m`});Object.defineProperty(t,"exports",{enumerable:!0,get:function(){const t=new Map,n={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};n.color.grey=n.color.gray;for(const e of Object.keys(n)){const r=n[e];for(const e of Object.keys(r)){const i=r[e];n[e]={open:`[${i[0]}m`,close:`[${i[1]}m`},r[e]=n[e],t.set(i[0],i[1])}Object.defineProperty(n,e,{value:r,enumerable:!1}),Object.defineProperty(n,"codes",{value:t,enumerable:!1})}const a=t=>t,s=(t,e,n)=>[t,e,n];n.color.close="",n.bgColor.close="",n.color.ansi={ansi:r(a,0)},n.color.ansi256={ansi256:i(a,0)},n.color.ansi16m={rgb:o(s,0)},n.bgColor.ansi={ansi:r(a,10)},n.bgColor.ansi256={ansi256:i(a,10)},n.bgColor.ansi16m={rgb:o(s,10)};for(let t of Object.keys(e)){if("object"!=typeof e[t])continue;const a=e[t];"ansi16"===t&&(t="ansi"),"ansi16"in a&&(n.color.ansi[t]=r(a.ansi16,0),n.bgColor.ansi[t]=r(a.ansi16,10)),"ansi256"in a&&(n.color.ansi256[t]=i(a.ansi256,0),n.bgColor.ansi256[t]=i(a.ansi256,10)),"rgb"in a&&(n.color.ansi16m[t]=o(a.rgb,0),n.bgColor.ansi16m[t]=o(a.rgb,10))}return n}})}).call(this,n(132)(t))},function(t,e,n){var r=n(300),i=n(327),o={};Object.keys(r).forEach(function(t){o[t]={},Object.defineProperty(o[t],"channels",{value:r[t].channels}),Object.defineProperty(o[t],"labels",{value:r[t].labels});var e=i(t);Object.keys(e).forEach(function(n){var r=e[n];o[t][n]=function(t){var e=function(e){if(null==e)return e;arguments.length>1&&(e=Array.prototype.slice.call(arguments));var n=t(e);if("object"==typeof n)for(var r=n.length,i=0;i1&&(e=Array.prototype.slice.call(arguments)),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}(r)})}),t.exports=o},function(t,e,n){"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},function(t,e,n){var r=n(300);function i(t){var e=function(){for(var t={},e=Object.keys(r),n=e.length,i=0;ir._.max)&&(ir._.max&&(void 0!==r._.maxMsg?e.fail(r._.maxMsg?r._.maxMsg.replace(/\$0/g,i).replace(/\$1/,r._.max):null):e.fail(s("Too many non-option arguments: got %s, maximum of %s",i,r._.max))))},positionalCount:function(t,n){n{n.hasOwnProperty(t)&&void 0!==n[t]||((i=i||{})[t]=r[t])}),i){const t=[];Object.keys(i).forEach(e=>{const n=i[e];n&&t.indexOf(n)<0&&t.push(n)});const n=t.length?`\n${t.join("\n")}`:"";e.fail(c("Missing required argument: %s","Missing required arguments: %s",Object.keys(i).length,Object.keys(i).join(", ")+n))}},unknownArguments:function(n,r,i){const a=t.getCommandInstance().getCommands(),s=[],u=t.getContext();Object.keys(n).forEach(e=>{-1!==o.indexOf(e)||i.hasOwnProperty(e)||t._getParseContext().hasOwnProperty(e)||r.hasOwnProperty(e)||s.push(e)}),a.length>0&&n._.slice(u.commands.length).forEach(t=>{-1===a.indexOf(t)&&s.push(t)}),s.length>0&&e.fail(c("Unknown argument: %s","Unknown arguments: %s",s.length,s.join(", ")))},limitedChoices:function(n){const r=t.getOptions(),i={};if(!Object.keys(r.choices).length)return;Object.keys(n).forEach(t=>{-1===o.indexOf(t)&&r.choices.hasOwnProperty(t)&&[].concat(n[t]).forEach(e=>{-1===r.choices[t].indexOf(e)&&void 0!==e&&(i[t]=(i[t]||[]).concat(e))})});const a=Object.keys(i);if(!a.length)return;let c=s("Invalid values:");a.forEach(t=>{c+=`\n ${s("Argument: %s, Given: %s, Choices: %s",t,e.stringifiedValues(i[t]),e.stringifiedValues(r.choices[t]))}`}),e.fail(c)}};let l=[];u.check=function(t,e){l.push({func:t,global:e})},u.customChecks=function(t,n){for(let r,i=0;void 0!==(r=l[i]);i++){const i=r.func;let o=null;try{o=i(t,n)}catch(t){e.fail(t.message?t.message:t,t);continue}o?("string"==typeof o||o instanceof Error)&&e.fail(o.toString(),o):e.fail(s("Argument check failed: %s",i.toString()))}};let p={};u.implies=function(e,n){r(" [array|number|string]",[e,n],arguments.length),"object"==typeof e?Object.keys(e).forEach(t=>{u.implies(t,e[t])}):(t.global(e),p[e]||(p[e]=[]),Array.isArray(n)?n.forEach(t=>u.implies(e,t)):p[e].push(n))},u.getImplied=function(){return p},u.implications=function(t){const n=[];if(Object.keys(p).forEach(e=>{const r=e;(p[e]||[]).forEach(e=>{let i,o=r;const a=e;i=Number(o),"number"==typeof(o=isNaN(i)?o:i)?o=t._.length>=o:o.match(/^--no-.+/)?(o=o.match(/^--no-(.+)/)[1],o=!t[o]):o=t[o],i=Number(e),"number"==typeof(e=isNaN(i)?e:i)?e=t._.length>=e:e.match(/^--no-.+/)?(e=e.match(/^--no-(.+)/)[1],e=!t[e]):e=t[e],o&&!e&&n.push(` ${r} -> ${a}`)})}),n.length){let t=`${s("Implications failed:")}\n`;n.forEach(e=>{t+=e}),e.fail(t)}};let f,h={};return u.conflicts=function(e,n){r(" [array|string]",[e,n],arguments.length),"object"==typeof e?Object.keys(e).forEach(t=>{u.conflicts(t,e[t])}):(t.global(e),h[e]||(h[e]=[]),Array.isArray(n)?n.forEach(t=>u.conflicts(e,t)):h[e].push(n))},u.getConflicting=()=>h,u.conflicting=function(t){Object.keys(t).forEach(n=>{h[n]&&h[n].forEach(r=>{r&&void 0!==t[n]&&void 0!==t[r]&&e.fail(s("Arguments %s and %s are mutually exclusive",n,r))})})},u.recommendCommands=function(t,r){const i=n(329);r=r.sort((t,e)=>e.length-t.length);let o=null,a=1/0;for(let e,n=0;void 0!==(e=r[n]);n++){const n=i(t,e);n<=3&&n!t[e]),h=i(h,(e,n)=>!t[e]),l=l.filter(t=>t.global),u},u.freeze=function(){(f={}).implied=p,f.checks=l,f.conflicting=h},u.unfreeze=function(){p=f.implied,l=f.checks,h=f.conflicting,f=void 0},u}},function(t,e,n){"use strict";t.exports=function(t,e){if(0===t.length)return e.length;if(0===e.length)return t.length;const n=[];let r,i;for(r=0;r<=e.length;r++)n[r]=[r];for(i=0;i<=t.length;i++)n[0][i]=i;for(r=1;r<=e.length;r++)for(i=1;i<=t.length;i++)e.charAt(r-1)===t.charAt(i-1)?n[r][i]=n[r-1][i-1]:n[r][i]=Math.min(n[r-1][i-1]+1,Math.min(n[r][i-1]+1,n[r-1][i]+1));return n[e.length][t.length]}},function(t,e,n){var r=n(5),i=n(1),o=n(3);function a(t){t=t||{},this.directory=t.directory||"./locales",this.updateFiles="boolean"!=typeof t.updateFiles||t.updateFiles,this.locale=t.locale||"en",this.fallbackToLanguage="boolean"!=typeof t.fallbackToLanguage||t.fallbackToLanguage,this.cache={},this.writeQueue=[]}a.prototype.__=function(){if("string"!=typeof arguments[0])return this._taggedLiteral.apply(this,arguments);var t=Array.prototype.slice.call(arguments),e=t.shift(),n=function(){};return"function"==typeof t[t.length-1]&&(n=t.pop()),n=n||function(){},this.cache[this.locale]||this._readLocaleFile(),!this.cache[this.locale][e]&&this.updateFiles?(this.cache[this.locale][e]=e,this._enqueueWrite([this.directory,this.locale,n])):n(),o.format.apply(o,[this.cache[this.locale][e]||e].concat(t))},a.prototype._taggedLiteral=function(t){var e=arguments,n="";return t.forEach(function(t,r){var i=e[r+1];n+=t,void 0!==i&&(n+="%s")}),this.__.apply(null,[n].concat([].slice.call(arguments,1)))},a.prototype._enqueueWrite=function(t){this.writeQueue.push(t),1===this.writeQueue.length&&this._processWriteQueue()},a.prototype._processWriteQueue=function(){var t=this,e=this.writeQueue[0],n=e[0],i=e[1],o=e[2],a=this._resolveLocaleFile(n,i),s=JSON.stringify(this.cache[i],null,2);r.writeFile(a,s,"utf-8",function(e){t.writeQueue.shift(),t.writeQueue.length>0&&t._processWriteQueue(),o(e)})},a.prototype._readLocaleFile=function(){var t={},e=this._resolveLocaleFile(this.directory,this.locale);try{t=JSON.parse(r.readFileSync(e,"utf-8"))}catch(n){if(n instanceof SyntaxError&&(n.message="syntax error in "+e),"ENOENT"!==n.code)throw n;t={}}this.cache[this.locale]=t},a.prototype._resolveLocaleFile=function(t,e){var n=i.resolve(t,"./",e+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~e.lastIndexOf("_")){var r=i.resolve(t,"./",e.split("_")[0]+".json");this._fileExistsSync(r)&&(n=r)}return n},a.prototype._fileExistsSync=function(t){try{return r.statSync(t).isFile()}catch(t){return!1}},a.prototype.__n=function(){var t=Array.prototype.slice.call(arguments),e=t.shift(),n=t.shift(),r=t.shift(),i=function(){};"function"==typeof t[t.length-1]&&(i=t.pop()),this.cache[this.locale]||this._readLocaleFile();var a=1===r?e:n;this.cache[this.locale][e]&&(a=this.cache[this.locale][e][1===r?"one":"other"]),!this.cache[this.locale][e]&&this.updateFiles?(this.cache[this.locale][e]={one:e,other:n},this._enqueueWrite([this.directory,this.locale,i])):i();var s=[a];return~a.indexOf("%d")&&s.push(r),o.format.apply(o,s.concat(t))},a.prototype.setLocale=function(t){this.locale=t},a.prototype.getLocale=function(){return this.locale},a.prototype.updateLocale=function(t){for(var e in this.cache[this.locale]||this._readLocaleFile(),t)this.cache[this.locale][e]=t[e]},t.exports=function(t){var e=new a(t);for(var n in e)"function"==typeof e[n]&&(e[n]=e[n].bind(e));return e}},function(t,e,n){"use strict";const r=n(5),i=n(1),o=n(133);let a=[];t.exports=function t(e,s){let c={};if(e.hasOwnProperty("extends")){if("string"!=typeof e.extends)return c;const u=/\.json|\..*rc$/.test(e.extends);let l=null;if(u)l=function(t,e){return i.resolve(t,e)}(s,e.extends);else try{l=n(301).resolve(e.extends)}catch(t){}if(!l&&!u)return e;!function(t){if(a.indexOf(t)>-1)throw new o(`Circular extended configurations: '${t}'.`)}(l),a.push(l),c=u?JSON.parse(r.readFileSync(l,"utf8")):n(301)(e.extends),delete e.extends,c=t(c,i.dirname(l))}return a=[],Object.assign({},c,e)}},function(t,e,n){"use strict";t.exports=function(t){if(void 0===t&&(t=2),t>=Error.stackTraceLimit)throw new TypeError("getCallerFile(position) requires position be less then Error.stackTraceLimit but position was: `"+t+"` and Error.stackTraceLimit was: `"+Error.stackTraceLimit+"`");var e=Error.prepareStackTrace;Error.prepareStackTrace=function(t,e){return e};var n=(new Error).stack;if(Error.prepareStackTrace=e,null!==n&&"object"==typeof n)return n[t]?n[t].getFileName():void 0}},function(t,e,n){"use strict";const r=n(1),i=n(334);t.exports=(t,e={})=>{const n=r.resolve(e.cwd||""),{root:o}=r.parse(n),a=[].concat(t);return new Promise(t=>{!function e(n){i(a,{cwd:n}).then(i=>{i?t(r.join(n,i)):n===o?t(null):e(r.dirname(n))})}(n)})},t.exports.sync=(t,e={})=>{let n=r.resolve(e.cwd||"");const{root:o}=r.parse(n),a=[].concat(t);for(;;){const t=i.sync(a,{cwd:n});if(t)return r.join(n,t);if(n===o)return null;n=r.dirname(n)}}},function(t,e,n){"use strict";const r=n(1),i=n(335),o=n(336);t.exports=(t,e)=>(e=Object.assign({cwd:process.cwd()},e),o(t,t=>i(r.resolve(e.cwd,t)),e)),t.exports.sync=(t,e)=>{e=Object.assign({cwd:process.cwd()},e);for(const n of t)if(i.sync(r.resolve(e.cwd,n)))return n}},function(t,e,n){"use strict";const r=n(5);t.exports=t=>new Promise(e=>{r.access(t,t=>{e(!t)})}),t.exports.sync=t=>{try{return r.accessSync(t),!0}catch(t){return!1}}},function(t,e,n){"use strict";const r=n(337);class i extends Error{constructor(t){super(),this.value=t}}const o=(t,e)=>Promise.resolve(t).then(e),a=t=>Promise.all(t).then(t=>!0===t[1]&&Promise.reject(new i(t[0])));t.exports=(t,e,n)=>{n=Object.assign({concurrency:1/0,preserveOrder:!0},n);const s=r(n.concurrency),c=[...t].map(t=>[t,s(o,t,e)]),u=r(n.preserveOrder?1:1/0);return Promise.all(c.map(t=>u(a,t))).then(()=>{}).catch(t=>t instanceof i?t.value:Promise.reject(t))}},function(t,e,n){"use strict";const r=n(338),i=t=>{if(t<1)throw new TypeError("Expected `concurrency` to be a number from 1 and up");const e=[];let n=0;const i=()=>{n--,e.length>0&&e.shift()()},o=(t,e,...o)=>{n++;const a=r(t,...o);e(a),a.then(i,i)},a=(r,...i)=>new Promise(a=>((r,i,...a)=>{nn},pendingCount:{get:()=>e.length}}),a};t.exports=i,t.exports.default=i},function(t,e,n){"use strict";const r=(t,...e)=>new Promise(n=>{n(t(...e))});t.exports=r,t.exports.default=r},function(t,e,n){t.exports=function(t){var e=(t=t||n(340)).main;return e&&function(t){return/\\iisnode\\/.test(t.filename)}(e)?function(t){return t.children.length?t.children[0].filename:t.filename}(e):e?e.filename:process.cwd()}},function(t,e){function n(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id=340},function(t,e,n){"use strict";const r=n(342),i=n(367),o=n(370),a={spawn:!0},s="en_US";function c(t=process.env){return t.LC_ALL||t.LC_MESSAGES||t.LANG||t.LANGUAGE}function u(t){return c(t.split("\n").reduce((t,e)=>{const[n,r]=e.split("=");return t[n]=r.replace(/^"|"$/g,""),t},{}))}function l(t){return t&&t.replace(/[.:].*/,"")}function p(t,e=""){return e.includes(t)?t:s}function f(){return p(r.sync("defaults",["read","-globalDomain","AppleLocale"]).stdout,r.sync("locale",["-a"]).stdout)}function h(){return"darwin"===process.platform?Promise.all([r.stdout("defaults",["read","-globalDomain","AppleLocale"]),r.stdout("locale",["-a"])]).then(t=>p(t[0],t[1])):r.stdout("locale").then(t=>l(u(t)))}t.exports=o((t=a)=>{const e=c();let n;return(n=e||!1===t.spawn?Promise.resolve(l(e)):"win32"===process.platform?r.stdout("wmic",["os","get","locale"]).then(t=>{const e=parseInt(t.replace("Locale",""),16);return i.from(e)}):h()).then(t=>t||s).catch(()=>s)}),t.exports.sync=o((t=a)=>{const e=c();let n;if(e||!1===t.spawn)n=l(e);else try{n="win32"===process.platform?function(){const{stdout:t}=r.sync("wmic",["os","get","locale"]),e=parseInt(t.replace("Locale",""),16);return i.from(e)}():"darwin"===process.platform?f():l(u(r.sync("locale").stdout))}catch(t){}return n||s})},function(t,e,n){"use strict";const r=n(1),i=n(302),o=n(343),a=n(357),s=n(358),c=n(47),u=n(359),l=n(362),p=n(363),f=n(365),h=n(366),d=1e7;function g(t,e,n){let i;return(n=Object.assign({extendEnv:!0,env:{}},n)).extendEnv&&(n.env=Object.assign({},process.env,n.env)),!0===n.__winShell?(delete n.__winShell,i={command:t,args:e,options:n,file:t,original:{cmd:t,args:e}}):i=o._parse(t,e,n),(n=Object.assign({maxBuffer:d,buffer:!0,stripEof:!0,preferLocal:!0,localDir:i.options.cwd||process.cwd(),encoding:"utf8",reject:!0,cleanup:!0},i.options)).stdio=h(n),n.preferLocal&&(n.env=s.env(Object.assign({},n,{cwd:n.localDir}))),n.detached&&(n.cleanup=!1),"win32"===process.platform&&"cmd.exe"===r.basename(i.command)&&i.args.unshift("/q"),{cmd:i.command,args:i.args,opts:n,parsed:i}}function m(t,e){return e&&t.stripEof&&(e=a(e)),e}function _(t,e,n){let r="/bin/sh",i=["-c",e];return n=Object.assign({},n),"win32"===process.platform&&(n.__winShell=!0,r=process.env.comspec||"cmd.exe",i=["/s","/c",`"${e}"`],n.windowsVerbatimArguments=!0),n.shell&&(r=n.shell,delete n.shell),t(r,i,n)}function b(t,e,{encoding:n,buffer:r,maxBuffer:i}){if(!t[e])return null;let o;return(o=r?n?u(t[e],{encoding:n,maxBuffer:i}):u.buffer(t[e],{maxBuffer:i}):new Promise((n,r)=>{t[e].once("end",n).once("error",r)})).catch(t=>{throw t.stream=e,t.message=`${e} ${t.message}`,t})}function y(t,e){const{stdout:n,stderr:r}=t;let i=t.error;const{code:o,signal:a}=t,{parsed:s,joinedCmd:c}=e,u=e.timedOut||!1;if(!i){let t="";Array.isArray(s.opts.stdio)?("inherit"!==s.opts.stdio[2]&&(t+=t.length>0?r:`\n${r}`),"inherit"!==s.opts.stdio[1]&&(t+=`\n${n}`)):"inherit"!==s.opts.stdio&&(t=`\n${r}${n}`),(i=new Error(`Command failed: ${c}${t}`)).code=o<0?f(o):o}return i.stdout=n,i.stderr=r,i.failed=!0,i.signal=a||null,i.cmd=c,i.timedOut=u,i}function v(t,e){let n=t;return Array.isArray(e)&&e.length>0&&(n+=" "+e.join(" ")),n}t.exports=(t,e,n)=>{const r=g(t,e,n),{encoding:a,buffer:s,maxBuffer:u}=r.opts,f=v(t,e);let h,d;try{h=i.spawn(r.cmd,r.args,r.opts)}catch(t){return Promise.reject(t)}r.opts.cleanup&&(d=p(()=>{h.kill()}));let _=null,x=!1;const w=()=>{_&&(clearTimeout(_),_=null),d&&d()};r.opts.timeout>0&&(_=setTimeout(()=>{_=null,x=!0,h.kill(r.opts.killSignal)},r.opts.timeout));const k=new Promise(t=>{h.on("exit",(e,n)=>{w(),t({code:e,signal:n})}),h.on("error",e=>{w(),t({error:e})}),h.stdin&&h.stdin.on("error",e=>{w(),t({error:e})})});function E(){h.stdout&&h.stdout.destroy(),h.stderr&&h.stderr.destroy()}const D=()=>l(Promise.all([k,b(h,"stdout",{encoding:a,buffer:s,maxBuffer:u}),b(h,"stderr",{encoding:a,buffer:s,maxBuffer:u})]).then(t=>{const e=t[0];if(e.stdout=t[1],e.stderr=t[2],e.error||0!==e.code||null!==e.signal){const t=y(e,{joinedCmd:f,parsed:r,timedOut:x});if(t.killed=t.killed||h.killed,!r.opts.reject)return t;throw t}return{stdout:m(r.opts,e.stdout),stderr:m(r.opts,e.stderr),code:0,failed:!1,killed:!1,signal:null,cmd:f,timedOut:!1}}),E);return o._enoent.hookChildProcess(h,r.parsed),function(t,e){null!=e&&(c(e)?e.pipe(t.stdin):t.stdin.end(e))}(h,r.opts.input),h.then=(t,e)=>D().then(t,e),h.catch=t=>D().catch(t),h},t.exports.stdout=(...e)=>t.exports(...e).then(t=>t.stdout),t.exports.stderr=(...e)=>t.exports(...e).then(t=>t.stderr),t.exports.shell=(e,n)=>_(t.exports,e,n),t.exports.sync=(t,e,n)=>{const r=g(t,e,n),o=v(t,e);if(c(r.opts.input))throw new TypeError("The `input` option cannot be a stream in sync mode");const a=i.spawnSync(r.cmd,r.args,r.opts);if(a.code=a.status,a.error||0!==a.status||null!==a.signal){const t=y(a,{joinedCmd:o,parsed:r});if(!r.opts.reject)return t;throw t}return{stdout:m(r.opts,a.stdout),stderr:m(r.opts,a.stderr),code:0,failed:!1,signal:null,cmd:o,timedOut:!1}},t.exports.shellSync=(e,n)=>_(t.exports.sync,e,n)},function(t,e,n){"use strict";const r=n(302),i=n(344),o=n(356);function a(t,e,n){const a=i(t,e,n),s=r.spawn(a.command,a.args,a.options);return o.hookChildProcess(s,a),s}t.exports=a,t.exports.spawn=a,t.exports.sync=function(t,e,n){const a=i(t,e,n),s=r.spawnSync(a.command,a.args,a.options);return s.error=s.error||o.verifyENOENTSync(s.status,a),s},t.exports._parse=i,t.exports._enoent=o},function(t,e,n){"use strict";const r=n(1),i=n(345),o=n(346),a=n(351),s=n(352),c=n(355),u="win32"===process.platform,l=/\.(?:com|exe)$/i,p=/node_modules[\\\/].bin[\\\/][^\\\/]+\.cmd$/i,f=i(()=>c.satisfies(process.version,"^4.8.0 || ^5.7.0 || >= 6.0.0",!0))||!1;function h(t){if(!u)return t;const e=function(t){t.file=o(t);const e=t.file&&s(t.file);return e?(t.args.unshift(t.file),t.command=e,o(t)):t.file}(t),n=!l.test(e);if(t.options.forceShell||n){const n=p.test(e);t.command=r.normalize(t.command),t.command=a.command(t.command),t.args=t.args.map(t=>a.argument(t,n));const i=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${i}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}t.exports=function(t,e,n){e&&!Array.isArray(e)&&(n=e,e=null);const r={command:t,args:e=e?e.slice(0):[],options:n=Object.assign({},n),file:void 0,original:{command:t,args:e}};return n.shell?function(t){if(f)return t;const e=[t.command].concat(t.args).join(" ");return u?(t.command="string"==typeof t.options.shell?t.options.shell:process.env.comspec||"cmd.exe",t.args=["/d","/s","/c",`"${e}"`],t.options.windowsVerbatimArguments=!0):("string"==typeof t.options.shell?t.command=t.options.shell:"android"===process.platform?t.command="/system/bin/sh":t.command="/bin/sh",t.args=["-c",e]),t}(r):h(r)}},function(t,e,n){"use strict";t.exports=function(t){try{return t()}catch(t){}}},function(t,e,n){"use strict";const r=n(1),i=n(347),o=n(303)();function a(t,e){const n=process.cwd(),a=null!=t.options.cwd;if(a)try{process.chdir(t.options.cwd)}catch(t){}let s;try{s=i.sync(t.command,{path:(t.options.env||process.env)[o],pathExt:e?r.delimiter:void 0})}catch(t){}finally{process.chdir(n)}return s&&(s=r.resolve(a?t.options.cwd:"",s)),s}t.exports=function(t){return a(t)||a(t,!0)}},function(t,e,n){t.exports=u,u.sync=function(t,e){for(var n=c(t,e=e||{}),r=n.env,o=n.ext,u=n.extExe,l=[],p=0,f=r.length;p&|;, *?])/g;t.exports.command=function(t){return t=t.replace(r,"^$1")},t.exports.argument=function(t,e){return t=(t=`"${t=(t=(t=`${t}`).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(r,"^$1"),e&&(t=t.replace(r,"^$1")),t}},function(t,e,n){"use strict";const r=n(5),i=n(353);t.exports=function(t){let e,n;Buffer.alloc?e=Buffer.alloc(150):(e=new Buffer(150)).fill(0);try{n=r.openSync(t,"r"),r.readSync(n,e,0,150,0),r.closeSync(n)}catch(t){}return i(e.toString())}},function(t,e,n){"use strict";var r=n(354);t.exports=function(t){var e=t.match(r);if(!e)return null;var n=e[0].replace(/#! ?/,"").split(" "),i=n[0].split("/").pop(),o=n[1];return"env"===i?o:i+(o?" "+o:"")}},function(t,e,n){"use strict";t.exports=/^#!.*/},function(t,e){var n;e=t.exports=V,n="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var t=Array.prototype.slice.call(arguments,0);t.unshift("SEMVER"),console.log.apply(console,t)}:function(){},e.SEMVER_SPEC_VERSION="2.0.0";var r=256,i=Number.MAX_SAFE_INTEGER||9007199254740991,o=e.re=[],a=e.src=[],s=0,c=s++;a[c]="0|[1-9]\\d*";var u=s++;a[u]="[0-9]+";var l=s++;a[l]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var p=s++;a[p]="("+a[c]+")\\.("+a[c]+")\\.("+a[c]+")";var f=s++;a[f]="("+a[u]+")\\.("+a[u]+")\\.("+a[u]+")";var h=s++;a[h]="(?:"+a[c]+"|"+a[l]+")";var d=s++;a[d]="(?:"+a[u]+"|"+a[l]+")";var g=s++;a[g]="(?:-("+a[h]+"(?:\\."+a[h]+")*))";var m=s++;a[m]="(?:-?("+a[d]+"(?:\\."+a[d]+")*))";var _=s++;a[_]="[0-9A-Za-z-]+";var b=s++;a[b]="(?:\\+("+a[_]+"(?:\\."+a[_]+")*))";var y=s++,v="v?"+a[p]+a[g]+"?"+a[b]+"?";a[y]="^"+v+"$";var x="[v=\\s]*"+a[f]+a[m]+"?"+a[b]+"?",w=s++;a[w]="^"+x+"$";var k=s++;a[k]="((?:<|>)?=?)";var E=s++;a[E]=a[u]+"|x|X|\\*";var D=s++;a[D]=a[c]+"|x|X|\\*";var S=s++;a[S]="[v=\\s]*("+a[D]+")(?:\\.("+a[D]+")(?:\\.("+a[D]+")(?:"+a[g]+")?"+a[b]+"?)?)?";var O=s++;a[O]="[v=\\s]*("+a[E]+")(?:\\.("+a[E]+")(?:\\.("+a[E]+")(?:"+a[m]+")?"+a[b]+"?)?)?";var C=s++;a[C]="^"+a[k]+"\\s*"+a[S]+"$";var A=s++;a[A]="^"+a[k]+"\\s*"+a[O]+"$";var I=s++;a[I]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var T=s++;a[T]="(?:~>?)";var P=s++;a[P]="(\\s*)"+a[T]+"\\s+",o[P]=new RegExp(a[P],"g");var B=s++;a[B]="^"+a[T]+a[S]+"$";var F=s++;a[F]="^"+a[T]+a[O]+"$";var j=s++;a[j]="(?:\\^)";var L=s++;a[L]="(\\s*)"+a[j]+"\\s+",o[L]=new RegExp(a[L],"g");var M=s++;a[M]="^"+a[j]+a[S]+"$";var N=s++;a[N]="^"+a[j]+a[O]+"$";var z=s++;a[z]="^"+a[k]+"\\s*("+x+")$|^$";var R=s++;a[R]="^"+a[k]+"\\s*("+v+")$|^$";var U=s++;a[U]="(\\s*)"+a[k]+"\\s*("+x+"|"+a[S]+")",o[U]=new RegExp(a[U],"g");var G=s++;a[G]="^\\s*("+a[S]+")\\s+-\\s+("+a[S]+")\\s*$";var H=s++;a[H]="^\\s*("+a[O]+")\\s+-\\s+("+a[O]+")\\s*$";var $=s++;a[$]="(<|>)?=?\\s*\\*";for(var q=0;q<35;q++)n(q,a[q]),o[q]||(o[q]=new RegExp(a[q]));function W(t,e){if(e&&"object"==typeof e||(e={loose:!!e,includePrerelease:!1}),t instanceof V)return t;if("string"!=typeof t)return null;if(t.length>r)return null;if(!(e.loose?o[w]:o[y]).test(t))return null;try{return new V(t,e)}catch(t){return null}}function V(t,e){if(e&&"object"==typeof e||(e={loose:!!e,includePrerelease:!1}),t instanceof V){if(t.loose===e.loose)return t;t=t.version}else if("string"!=typeof t)throw new TypeError("Invalid Version: "+t);if(t.length>r)throw new TypeError("version is longer than "+r+" characters");if(!(this instanceof V))return new V(t,e);n("SemVer",t,e),this.options=e,this.loose=!!e.loose;var a=t.trim().match(e.loose?o[w]:o[y]);if(!a)throw new TypeError("Invalid Version: "+t);if(this.raw=t,this.major=+a[1],this.minor=+a[2],this.patch=+a[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");a[4]?this.prerelease=a[4].split(".").map(function(t){if(/^[0-9]+$/.test(t)){var e=+t;if(e>=0&&e=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}e&&(this.prerelease[0]===e?isNaN(this.prerelease[1])&&(this.prerelease=[e,0]):this.prerelease=[e,0]);break;default:throw new Error("invalid increment argument: "+t)}return this.format(),this.raw=this.version,this},e.inc=function(t,e,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new V(t,n).inc(e,r).version}catch(t){return null}},e.diff=function(t,e){if(K(t,e))return null;var n=W(t),r=W(e),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var a in n)if(("major"===a||"minor"===a||"patch"===a)&&n[a]!==r[a])return i+a;return o},e.compareIdentifiers=Z;var Y=/^[0-9]+$/;function Z(t,e){var n=Y.test(t),r=Y.test(e);return n&&r&&(t=+t,e=+e),t===e?0:n&&!r?-1:r&&!n?1:t0}function J(t,e,n){return X(t,e,n)<0}function K(t,e,n){return 0===X(t,e,n)}function tt(t,e,n){return 0!==X(t,e,n)}function et(t,e,n){return X(t,e,n)>=0}function nt(t,e,n){return X(t,e,n)<=0}function rt(t,e,n,r){switch(e){case"===":return"object"==typeof t&&(t=t.version),"object"==typeof n&&(n=n.version),t===n;case"!==":return"object"==typeof t&&(t=t.version),"object"==typeof n&&(n=n.version),t!==n;case"":case"=":case"==":return K(t,n,r);case"!=":return tt(t,n,r);case">":return Q(t,n,r);case">=":return et(t,n,r);case"<":return J(t,n,r);case"<=":return nt(t,n,r);default:throw new TypeError("Invalid operator: "+e)}}function it(t,e){if(e&&"object"==typeof e||(e={loose:!!e,includePrerelease:!1}),t instanceof it){if(t.loose===!!e.loose)return t;t=t.value}if(!(this instanceof it))return new it(t,e);n("comparator",t,e),this.options=e,this.loose=!!e.loose,this.parse(t),this.semver===ot?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}e.rcompareIdentifiers=function(t,e){return Z(e,t)},e.major=function(t,e){return new V(t,e).major},e.minor=function(t,e){return new V(t,e).minor},e.patch=function(t,e){return new V(t,e).patch},e.compare=X,e.compareLoose=function(t,e){return X(t,e,!0)},e.rcompare=function(t,e,n){return X(e,t,n)},e.sort=function(t,n){return t.sort(function(t,r){return e.compare(t,r,n)})},e.rsort=function(t,n){return t.sort(function(t,r){return e.rcompare(t,r,n)})},e.gt=Q,e.lt=J,e.eq=K,e.neq=tt,e.gte=et,e.lte=nt,e.cmp=rt,e.Comparator=it;var ot={};function at(t,e){if(e&&"object"==typeof e||(e={loose:!!e,includePrerelease:!1}),t instanceof at)return t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease?t:new at(t.raw,e);if(t instanceof it)return new at(t.value,e);if(!(this instanceof at))return new at(t,e);if(this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease,this.raw=t,this.set=t.split(/\s*\|\|\s*/).map(function(t){return this.parseRange(t.trim())},this).filter(function(t){return t.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+t);this.format()}function st(t){return!t||"x"===t.toLowerCase()||"*"===t}function ct(t,e,n,r,i,o,a,s,c,u,l,p,f){return((e=st(n)?"":st(r)?">="+n+".0.0":st(i)?">="+n+"."+r+".0":">="+e)+" "+(s=st(c)?"":st(u)?"<"+(+c+1)+".0.0":st(l)?"<"+c+"."+(+u+1)+".0":p?"<="+c+"."+u+"."+l+"-"+p:"<="+s)).trim()}function ut(t,e,r){for(var i=0;i0){var o=t[i].semver;if(o.major===e.major&&o.minor===e.minor&&o.patch===e.patch)return!0}return!1}return!0}function lt(t,e,n){try{e=new at(e,n)}catch(t){return!1}return e.test(t)}function pt(t,e,n,r){var i,o,a,s,c;switch(t=new V(t,r),e=new at(e,r),n){case">":i=Q,o=nt,a=J,s=">",c=">=";break;case"<":i=J,o=et,a=Q,s="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(lt(t,e,r))return!1;for(var u=0;u=0.0.0")),p=p||t,f=f||t,i(t.semver,p.semver,r)?p=t:a(t.semver,f.semver,r)&&(f=t)}),p.operator===s||p.operator===c)return!1;if((!f.operator||f.operator===s)&&o(t,f.semver))return!1;if(f.operator===c&&a(t,f.semver))return!1}return!0}it.prototype.parse=function(t){var e=this.options.loose?o[z]:o[R],n=t.match(e);if(!n)throw new TypeError("Invalid comparator: "+t);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new V(n[2],this.options.loose):this.semver=ot},it.prototype.toString=function(){return this.value},it.prototype.test=function(t){return n("Comparator.test",t,this.options.loose),this.semver===ot||("string"==typeof t&&(t=new V(t,this.options)),rt(t,this.operator,this.semver,this.options))},it.prototype.intersects=function(t,e){if(!(t instanceof it))throw new TypeError("a Comparator is required");var n;if(e&&"object"==typeof e||(e={loose:!!e,includePrerelease:!1}),""===this.operator)return n=new at(t.value,e),lt(this.value,n,e);if(""===t.operator)return n=new at(this.value,e),lt(t.semver,n,e);var r=!(">="!==this.operator&&">"!==this.operator||">="!==t.operator&&">"!==t.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==t.operator&&"<"!==t.operator),o=this.semver.version===t.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==t.operator&&"<="!==t.operator),s=rt(this.semver,"<",t.semver,e)&&(">="===this.operator||">"===this.operator)&&("<="===t.operator||"<"===t.operator),c=rt(this.semver,">",t.semver,e)&&("<="===this.operator||"<"===this.operator)&&(">="===t.operator||">"===t.operator);return r||i||o&&a||s||c},e.Range=at,at.prototype.format=function(){return this.range=this.set.map(function(t){return t.join(" ").trim()}).join("||").trim(),this.range},at.prototype.toString=function(){return this.range},at.prototype.parseRange=function(t){var e=this.options.loose;t=t.trim();var r=e?o[H]:o[G];t=t.replace(r,ct),n("hyphen replace",t),t=t.replace(o[U],"$1$2$3"),n("comparator trim",t,o[U]),t=(t=(t=t.replace(o[P],"$1~")).replace(o[L],"$1^")).split(/\s+/).join(" ");var i=e?o[z]:o[R],a=t.split(" ").map(function(t){return function(t,e){return n("comp",t,e),t=function(t,e){return t.trim().split(/\s+/).map(function(t){return function(t,e){n("caret",t,e);var r=e.loose?o[N]:o[M];return t.replace(r,function(e,r,i,o,a){var s;return n("caret",t,e,r,i,o,a),st(r)?s="":st(i)?s=">="+r+".0.0 <"+(+r+1)+".0.0":st(o)?s="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":a?(n("replaceCaret pr",a),s="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+a+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+a+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+a+" <"+(+r+1)+".0.0"):(n("no pr"),s="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",s),s})}(t,e)}).join(" ")}(t,e),n("caret",t),t=function(t,e){return t.trim().split(/\s+/).map(function(t){return function(t,e){var r=e.loose?o[F]:o[B];return t.replace(r,function(e,r,i,o,a){var s;return n("tilde",t,e,r,i,o,a),st(r)?s="":st(i)?s=">="+r+".0.0 <"+(+r+1)+".0.0":st(o)?s=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":a?(n("replaceTilde pr",a),s=">="+r+"."+i+"."+o+"-"+a+" <"+r+"."+(+i+1)+".0"):s=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",s),s})}(t,e)}).join(" ")}(t,e),n("tildes",t),t=function(t,e){return n("replaceXRanges",t,e),t.split(/\s+/).map(function(t){return function(t,e){t=t.trim();var r=e.loose?o[A]:o[C];return t.replace(r,function(e,r,i,o,a,s){n("xRange",t,e,r,i,o,a,s);var c=st(i),u=c||st(o),l=u||st(a),p=l;return"="===r&&p&&(r=""),c?e=">"===r||"<"===r?"<0.0.0":"*":r&&p?(u&&(o=0),a=0,">"===r?(r=">=",u?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):"<="===r&&(r="<",u?i=+i+1:o=+o+1),e=r+i+"."+o+"."+a):u?e=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(e=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",e),e})}(t,e)}).join(" ")}(t,e),n("xrange",t),t=function(t,e){return n("replaceStars",t,e),t.trim().replace(o[$],"")}(t,e),n("stars",t),t}(t,this.options)},this).join(" ").split(/\s+/);return this.options.loose&&(a=a.filter(function(t){return!!t.match(i)})),a=a.map(function(t){return new it(t,this.options)},this)},at.prototype.intersects=function(t,e){if(!(t instanceof at))throw new TypeError("a Range is required");return this.set.some(function(n){return n.every(function(n){return t.set.some(function(t){return t.every(function(t){return n.intersects(t,e)})})})})},e.toComparators=function(t,e){return new at(t,e).set.map(function(t){return t.map(function(t){return t.value}).join(" ").trim().split(" ")})},at.prototype.test=function(t){if(!t)return!1;"string"==typeof t&&(t=new V(t,this.options));for(var e=0;e":0===e.prerelease.length?e.patch++:e.prerelease.push(0),e.raw=e.format();case"":case">=":n&&!Q(n,e)||(n=e);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+t.operator)}})}if(n&&t.test(n))return n;return null},e.validRange=function(t,e){try{return new at(t,e).range||"*"}catch(t){return null}},e.ltr=function(t,e,n){return pt(t,e,"<",n)},e.gtr=function(t,e,n){return pt(t,e,">",n)},e.outside=pt,e.prerelease=function(t,e){var n=W(t,e);return n&&n.prerelease.length?n.prerelease:null},e.intersects=function(t,e,n){return t=new at(t,n),e=new at(e,n),t.intersects(e)},e.coerce=function(t){if(t instanceof V)return t;if("string"!=typeof t)return null;var e=t.match(o[I]);if(null==e)return null;return W(e[1]+"."+(e[2]||"0")+"."+(e[3]||"0"))}},function(t,e,n){"use strict";const r="win32"===process.platform;function i(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function o(t,e){return r&&1===t&&!e.file?i(e.original,"spawn"):null}t.exports={hookChildProcess:function(t,e){if(!r)return;const n=t.emit;t.emit=function(r,i){if("exit"===r){const r=o(i,e);if(r)return n.call(t,"error",r)}return n.apply(t,arguments)}},verifyENOENT:o,verifyENOENTSync:function(t,e){return r&&1===t&&!e.file?i(e.original,"spawnSync"):null},notFoundError:i}},function(t,e,n){"use strict";t.exports=function(t){var e="string"==typeof t?"\n":"\n".charCodeAt(),n="string"==typeof t?"\r":"\r".charCodeAt();return t[t.length-1]===e&&(t=t.slice(0,t.length-1)),t[t.length-1]===n&&(t=t.slice(0,t.length-1)),t}},function(t,e,n){"use strict";const r=n(1),i=n(303);t.exports=t=>{let e;t=Object.assign({cwd:process.cwd(),path:process.env[i()]},t);let n=r.resolve(t.cwd);const o=[];for(;e!==n;)o.push(r.join(n,"node_modules/.bin")),e=n,n=r.resolve(n,"..");return o.push(r.dirname(process.execPath)),o.concat(t.path).join(r.delimiter)},t.exports.env=e=>{e=Object.assign({env:process.env},e);const n=Object.assign({},e.env),r=i({env:n});return e.path=n[r],n[r]=t.exports(e),n}},function(t,e,n){"use strict";const r=n(360),i=n(361);class o extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}function a(t,e){if(!t)return Promise.reject(new Error("Expected a stream"));e=Object.assign({maxBuffer:1/0},e);const{maxBuffer:n}=e;let a;return new Promise((s,c)=>{const u=t=>{t&&(t.bufferedData=a.getBufferedValue()),c(t)};(a=r(t,i(e),t=>{t?u(t):s()})).on("data",()=>{a.getBufferedLength()>n&&u(new o)})}).then(()=>a.getBufferedValue())}t.exports=a,t.exports.buffer=(t,e)=>a(t,Object.assign({},e,{encoding:"buffer"})),t.exports.array=(t,e)=>a(t,Object.assign({},e,{array:!0})),t.exports.MaxBufferError=o},function(t,e,n){var r=n(48),i=n(131),o=n(5),a=function(){},s=/^v?\.0/.test(process.version),c=function(t){return"function"==typeof t},u=function(t,e,n,u){u=r(u);var l=!1;t.on("close",function(){l=!0}),i(t,{readable:e,writable:n},function(t){if(t)return u(t);l=!0,u()});var p=!1;return function(e){if(!l&&!p)return p=!0,function(t){return!!s&&!!o&&(t instanceof(o.ReadStream||a)||t instanceof(o.WriteStream||a))&&c(t.close)}(t)?t.close(a):function(t){return t.setHeader&&c(t.abort)}(t)?t.abort():c(t.destroy)?t.destroy():void u(e||new Error("stream was destroyed"))}},l=function(t){t()},p=function(t,e){return t.pipe(e)};t.exports=function(){var t,e=Array.prototype.slice.call(arguments),n=c(e[e.length-1]||a)&&e.pop()||a;if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Error("pump requires two streams per minimum");var r=e.map(function(i,o){var a=o0,function(e){t||(t=e),e&&r.forEach(l),a||(r.forEach(l),n(t))})});return e.reduce(p)}},function(t,e,n){"use strict";const{PassThrough:r}=n(7);t.exports=t=>{t=Object.assign({},t);const{array:e}=t;let{encoding:n}=t;const i="buffer"===n;let o=!1;e?o=!(n||i):n=n||"utf8",i&&(n=null);let a=0;const s=[],c=new r({objectMode:o});return n&&c.setEncoding(n),c.on("data",t=>{s.push(t),o?a=s.length:a+=t.length}),c.getBufferedValue=()=>e?s:i?Buffer.concat(s,a):s.join(""),c.getBufferedLength=()=>a,c}},function(t,e,n){"use strict";t.exports=(t,e)=>(e=e||(()=>{}),t.then(t=>new Promise(t=>{t(e())}).then(()=>t),t=>new Promise(t=>{t(e())}).then(()=>{throw t})))},function(t,e,n){var r,i=n(20),o=n(364),a=n(17);function s(){l&&(l=!1,o.forEach(function(t){try{process.removeListener(t,u[t])}catch(t){}}),process.emit=d,process.reallyExit=f,r.count-=1)}function c(t,e,n){r.emitted[t]||(r.emitted[t]=!0,r.emit(t,e,n))}"function"!=typeof a&&(a=a.EventEmitter),process.__signal_exit_emitter__?r=process.__signal_exit_emitter__:((r=process.__signal_exit_emitter__=new a).count=0,r.emitted={}),r.infinite||(r.setMaxListeners(1/0),r.infinite=!0),t.exports=function(t,e){i.equal(typeof t,"function","a callback must be provided for exit handler"),!1===l&&p();var n="exit";e&&e.alwaysLast&&(n="afterexit");return r.on(n,t),function(){r.removeListener(n,t),0===r.listeners("exit").length&&0===r.listeners("afterexit").length&&s()}},t.exports.unload=s;var u={};o.forEach(function(t){u[t]=function(){process.listeners(t).length===r.count&&(s(),c("exit",null,t),c("afterexit",null,t),process.kill(process.pid,t))}}),t.exports.signals=function(){return o},t.exports.load=p;var l=!1;function p(){l||(l=!0,r.count+=1,o=o.filter(function(t){try{return process.on(t,u[t]),!0}catch(t){return!1}}),process.emit=g,process.reallyExit=h)}var f=process.reallyExit;function h(t){process.exitCode=t||0,c("exit",process.exitCode,null),c("afterexit",process.exitCode,null),f.call(process,process.exitCode)}var d=process.emit;function g(t,e){if("exit"===t){void 0!==e&&(process.exitCode=e);var n=d.apply(this,arguments);return c("exit",process.exitCode,null),c("afterexit",process.exitCode,null),n}return d.apply(this,arguments)}},function(t,e){t.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&t.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&t.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")},function(t,e,n){"use strict";const r=n(3);let i;if("function"==typeof r.getSystemErrorName)t.exports=r.getSystemErrorName;else{try{if("function"!=typeof(i=process.binding("uv")).errname)throw new TypeError("uv.errname is not a function")}catch(t){console.error("execa/lib/errname: unable to establish process.binding('uv')",t),i=null}t.exports=t=>o(i,t)}function o(t,e){if(t)return t.errname(e);if(!(e<0))throw new Error("err >= 0");return`Unknown system error ${e}`}t.exports.__test__=o},function(t,e,n){"use strict";const r=["stdin","stdout","stderr"];t.exports=t=>{if(!t)return null;if(t.stdio&&(t=>r.some(e=>Boolean(t[e])))(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${r.map(t=>`\`${t}\``).join(", ")}`);if("string"==typeof t.stdio)return t.stdio;const e=t.stdio||[];if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);const n=[],i=Math.max(e.length,r.length);for(let o=0;o{if("number"!=typeof t)throw new TypeError("Expected a number");return o[t]},e.to=t=>{if("string"!=typeof t)throw new TypeError("Expected a string");return i[t]},e.all=i},function(t,e,n){"use strict";t.exports=t=>{if("object"!=typeof t)throw new TypeError("Expected an object");const e={};for(const n of Object.keys(t)){e[t[n]]=n}return e}},function(t){t.exports={af_ZA:1078,am_ET:1118,ar_AE:14337,ar_BH:15361,ar_DZ:5121,ar_EG:3073,ar_IQ:2049,ar_JO:11265,ar_KW:13313,ar_LB:12289,ar_LY:4097,ar_MA:6145,ar_OM:8193,ar_QA:16385,ar_SA:1025,ar_SY:10241,ar_TN:7169,ar_YE:9217,arn_CL:1146,as_IN:1101,az_AZ:2092,ba_RU:1133,be_BY:1059,bg_BG:1026,bn_IN:1093,bo_BT:2129,bo_CN:1105,br_FR:1150,bs_BA:8218,ca_ES:1027,co_FR:1155,cs_CZ:1029,cy_GB:1106,da_DK:1030,de_AT:3079,de_CH:2055,de_DE:1031,de_LI:5127,de_LU:4103,div_MV:1125,dsb_DE:2094,el_GR:1032,en_AU:3081,en_BZ:10249,en_CA:4105,en_CB:9225,en_GB:2057,en_IE:6153,en_IN:18441,en_JA:8201,en_MY:17417,en_NZ:5129,en_PH:13321,en_TT:11273,en_US:1033,en_ZA:7177,en_ZW:12297,es_AR:11274,es_BO:16394,es_CL:13322,es_CO:9226,es_CR:5130,es_DO:7178,es_EC:12298,es_ES:3082,es_GT:4106,es_HN:18442,es_MX:2058,es_NI:19466,es_PA:6154,es_PE:10250,es_PR:20490,es_PY:15370,es_SV:17418,es_UR:14346,es_US:21514,es_VE:8202,et_EE:1061,eu_ES:1069,fa_IR:1065,fi_FI:1035,fil_PH:1124,fo_FO:1080,fr_BE:2060,fr_CA:3084,fr_CH:4108,fr_FR:1036,fr_LU:5132,fr_MC:6156,fy_NL:1122,ga_IE:2108,gbz_AF:1164,gl_ES:1110,gsw_FR:1156,gu_IN:1095,ha_NG:1128,he_IL:1037,hi_IN:1081,hr_BA:4122,hr_HR:1050,hu_HU:1038,hy_AM:1067,id_ID:1057,ii_CN:1144,is_IS:1039,it_CH:2064,it_IT:1040,iu_CA:2141,ja_JP:1041,ka_GE:1079,kh_KH:1107,kk_KZ:1087,kl_GL:1135,kn_IN:1099,ko_KR:1042,kok_IN:1111,ky_KG:1088,lb_LU:1134,lo_LA:1108,lt_LT:1063,lv_LV:1062,mi_NZ:1153,mk_MK:1071,ml_IN:1100,mn_CN:2128,mn_MN:1104,moh_CA:1148,mr_IN:1102,ms_BN:2110,ms_MY:1086,mt_MT:1082,my_MM:1109,nb_NO:1044,ne_NP:1121,nl_BE:2067,nl_NL:1043,nn_NO:2068,ns_ZA:1132,oc_FR:1154,or_IN:1096,pa_IN:1094,pl_PL:1045,ps_AF:1123,pt_BR:1046,pt_PT:2070,qut_GT:1158,quz_BO:1131,quz_EC:2155,quz_PE:3179,rm_CH:1047,ro_RO:1048,ru_RU:1049,rw_RW:1159,sa_IN:1103,sah_RU:1157,se_FI:3131,se_NO:1083,se_SE:2107,si_LK:1115,sk_SK:1051,sl_SI:1060,sma_NO:6203,sma_SE:7227,smj_NO:4155,smj_SE:5179,smn_FI:9275,sms_FI:8251,sq_AL:1052,sr_BA:7194,sr_SP:3098,sv_FI:2077,sv_SE:1053,sw_KE:1089,syr_SY:1114,ta_IN:1097,te_IN:1098,tg_TJ:1064,th_TH:1054,tk_TM:1090,tmz_DZ:2143,tn_ZA:1074,tr_TR:1055,tt_RU:1092,ug_CN:1152,uk_UA:1058,ur_IN:2080,ur_PK:1056,uz_UZ:2115,vi_VN:1066,wen_DE:1070,wo_SN:1160,xh_ZA:1076,yo_NG:1130,zh_CHS:4,zh_CHT:31748,zh_CN:2052,zh_HK:3076,zh_MO:5124,zh_SG:4100,zh_TW:1028,zu_ZA:1077}},function(t,e,n){"use strict";const r=n(371),i=n(372),o=n(373),a=new WeakMap,s=(...t)=>{if(0===t.length)return"__defaultKey";if(1===t.length){const[e]=t;if(null==e||"function"!=typeof e&&"object"!=typeof e)return e}return JSON.stringify(t)},c=(t,e)=>{"number"==typeof(e=Object.assign({cacheKey:s,cache:new Map,cachePromiseRejection:!1},e)).maxAge&&o(e.cache);const{cache:n}=e;e.maxAge=e.maxAge||0;const c=function(...r){const o=e.cacheKey(...r);if(n.has(o))return n.get(o).data;const a=t.call(this,...r);return((t,r)=>{n.set(t,{data:r,maxAge:Date.now()+e.maxAge})})(o,a),i(a)&&!1===e.cachePromiseRejection&&a.catch(()=>n.delete(o)),a};try{r(c,t)}catch(t){}return a.set(c,e.cache),c};t.exports=c,t.exports.default=c,t.exports.clear=t=>{const e=a.get(t);e&&"function"==typeof e.clear&&e.clear()}},function(t,e,n){"use strict";const r=(t,e)=>{for(const n of Reflect.ownKeys(e))Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n));return t};t.exports=r,t.exports.default=r},function(t,e,n){"use strict";const r=t=>t instanceof Promise||null!==t&&"object"==typeof t&&"function"==typeof t.then&&"function"==typeof t.catch;t.exports=r,t.exports.default=r},function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){t.done?i(t.value):new n(function(e){e(t.value)}).then(a,s)}c((r=r.apply(t,e||[])).next())})},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(374));function a(t,e="maxAge"){let n,i,a;const s=()=>r(this,void 0,void 0,function*(){if(void 0!==n)return;const s=s=>r(this,void 0,void 0,function*(){a=o.default();const r=s[1][e]-Date.now();return r<=0?(t.delete(s[0]),void a.resolve()):(n=s[0],"function"==typeof(i=setTimeout(()=>{t.delete(s[0]),a&&a.resolve()},r)).unref&&i.unref(),a.promise)});try{for(const e of t)yield s(e)}catch(t){}n=void 0}),c=t.set.bind(t);return t.set=(e,r)=>{t.has(e)&&t.delete(e);const o=c(e,r);return n&&n===e&&(n=void 0,void 0!==i&&(clearTimeout(i),i=void 0),void 0!==a&&(a.reject(void 0),a=void 0)),s(),o},s(),t}e.default=a,t.exports=a,t.exports.default=a},function(t,e,n){"use strict";t.exports=()=>{const t={};return t.promise=new Promise((e,n)=>{t.resolve=e,t.reject=n}),t}}])}); \ No newline at end of file +var r=n(3).inherits,i=n(11).Transform,o=n(54),s=n(24),a=function(t){if(!(this instanceof a))return new a(t);t=this.options=s.defaults(t,{}),i.call(this,t),this.supports={directory:!0,symlink:!0},this.files=[]};r(a,i),a.prototype._transform=function(t,e,n){n(null,t)},a.prototype._writeStringified=function(){var t=JSON.stringify(this.files);this.write(t)},a.prototype.append=function(t,e,n){var r=this;function i(t,i){t?n(t):(e.size=i.length||0,e.crc32=o.unsigned(i),r.files.push(e),n(null,e))}e.crc32=0,"buffer"===e.sourceType?i(null,t):"stream"===e.sourceType&&s.collectStream(t,i)},a.prototype.finalize=function(){this._writeStringified(),this.end()},t.exports=a},function(t,e,n){"use strict";t.exports=function(t,e,n){try{let o=0,c={demanded:[],optional:[]};"object"==typeof t?(n=e,e=t):c=r.parseCommand(`cmd ${t}`);const u=[].slice.call(e);for(;u.length&&void 0===u[u.length-1];)u.pop();if((n=n||u.length)l)throw new i(`Too many arguments provided. Expected max ${l} but received ${n}.`);c.demanded.forEach(t=>{const e=u.shift(),n=s(e),r=t.cmd.filter(t=>t===n||"*"===t);0===r.length&&a(n,t.cmd,o,!1),o+=1}),c.optional.forEach(t=>{if(0===u.length)return;const e=u.shift(),n=s(e),r=t.cmd.filter(t=>t===n||"*"===t);0===r.length&&a(n,t.cmd,o,!0),o+=1})}catch(t){console.warn(t.stack)}};const r=n(294)(),i=n(133),o=["first","second","third","fourth","fifth","sixth"];function s(t){return Array.isArray(t)?"array":null===t?"null":typeof t}function a(t,e,n,r){throw new i(`Invalid ${o[n]||"manyith"} argument. Expected ${e.join(" or ")} but received ${t}.`)}},function(t,e,n){"use strict";const r=n(317),i=n(319),o=n(320)();t.exports=t=>{if("string"!=typeof(t=t.replace(o," "))||0===t.length)return 0;t=r(t);let e=0;for(let n=0;n=127&&r<=159||(r>=768&&r<=879||(r>65535&&n++,e+=i(r)?2:1))}return e}},function(t,e,n){"use strict";t.exports=function(t,e){const n={};return e=e||((t,e)=>!0),Object.keys(t||{}).forEach(r=>{e(r,t[r])&&(n[r]=t[r])}),n}},function(t,e){function n(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id=293},function(t,e,n){"use strict";const r=n(3).inspect,i=n(295),{applyMiddleware:o,commandMiddlewareFactory:s}=n(296),a=n(1),c=n(297),u=/(^\*)|(^\$0)/;t.exports=function(t,e,l,p){const f={};let h,d,g={},m={};function _(t){return!t.getUsageInstance().getUsageDisabled()&&0===t.getUsageInstance().getUsage().length}function b(t,e){const n=u.test(e.original)?e.original.replace(u,"").trim():e.original,r=t.filter(t=>!u.test(t));return r.push(n),`$0 ${r.join(" ")}`}function y(t,e,n,r){const i=t.cmd[0];t.variadic?n[i]=e._.splice(0).map(String):e._.length&&(n[i]=[String(e._.shift())])}function v(e,n,r){const i=Object.assign({},t.getOptions());i.default=Object.assign(r.default,i.default),i.alias=Object.assign(r.alias,i.alias),i.array=i.array.concat(r.array),delete i.config;const o=[];if(Object.keys(n).forEach(t=>{n[t].map(e=>{o.push(`--${t}`),o.push(e)})}),!o.length)return;const s=c.detailed(o,i);if(s.error)t.getUsageInstance().fail(s.error.message,s.error);else{const t=Object.keys(n);Object.keys(n).forEach(e=>{[].push.apply(t,s.aliases[e])}),Object.keys(s.argv).forEach(r=>{-1!==t.indexOf(r)&&(n[r]||(n[r]=s.argv[r]),e[r]=s.argv[r])})}}return p=p||[],f.addHandler=function(t,i,o,c,l){let p=[];const d=s(l);if(c=c||(()=>{}),Array.isArray(t))p=t.slice(1),t=t[0];else if("object"==typeof t){let e=Array.isArray(t.command)||"string"==typeof t.command?t.command:function(t){const e=n(312)(t);if(!e)throw new Error(`No command name given for module: ${r(t)}`);return i=e.filename,a.basename(i,a.extname(i));var i}(t);return t.aliases&&(e=[].concat(e).concat(t.aliases)),void f.addHandler(e,function(t){for(let e,n=["describe","description","desc"],r=0,i=n.length;rf.parseCommand(t).cmd);let b=!1;const y=[_.cmd].concat(p).filter(t=>!u.test(t)||(b=!0,!1));0===y.length&&b&&y.push("$0"),b&&(_.cmd=y[0],p=y.slice(1),t=t.replace(u,_.cmd)),p.forEach(t=>{m[t]=_.cmd}),!1!==i&&e.command(t,i,b,p),g[_.cmd]={original:t,description:i,handler:c,builder:o||{},middlewares:d||[],demanded:_.demanded,optional:_.optional},b&&(h=g[_.cmd])},f.addDirectory=function(t,e,r,i,o){"boolean"!=typeof(o=o||{}).recurse&&(o.recurse=!1),Array.isArray(o.extensions)||(o.extensions=["js"]);const s="function"==typeof o.visit?o.visit:t=>t;o.visit=function(t,n,r){const i=s(t,n,r);if(i){if(~e.files.indexOf(n))return i;e.files.push(n),f.addHandler(i)}return i},n(311)({require:r,filename:i},t,o)},f.parseCommand=function(t){const e=t.replace(/\s{2,}/g," ").split(/\s+(?![^[]*]|[^<]*>)/),n=/\.*[\][<>]/g,r={cmd:e.shift().replace(n,""),demanded:[],optional:[]};return e.forEach((t,i)=>{let o=!1;t=t.replace(/\s/g,""),/\.+[\]>]/.test(t)&&i===e.length-1&&(o=!0),/^\[/.test(t)?r.optional.push({cmd:t.replace(n,"").split("|"),variadic:o}):r.demanded.push({cmd:t.replace(n,"").split("|"),variadic:o})}),r},f.getCommands=()=>Object.keys(g).concat(Object.keys(m)),f.getCommandHandlers=()=>g,f.hasDefaultCommand=()=>!!h,f.runCommand=function(t,e,n,r){let s=n.aliases;const a=g[t]||g[m[t]]||h,c=e.getContext();let u=c.files.length;const d=c.commands.slice();let x=n.argv,w=null,k={};t&&(c.commands.push(t),c.fullCommands.push(a.original)),"function"==typeof a.builder?(w=a.builder(e.reset(n.aliases)),!1===e.parsed?(_(e)&&e.getUsageInstance().usage(b(d,a),a.description),x=w?w._parseArgs(null,null,!0,r):e._parseArgs(null,null,!0,r)):x=e.parsed.argv,s=w&&!1===e.parsed?w.parsed.aliases:e.parsed.aliases):"object"==typeof a.builder&&(_(w=e.reset(n.aliases))&&w.getUsageInstance().usage(b(d,a),a.description),Object.keys(a.builder).forEach(t=>{w.option(t,a.builder[t])}),x=w._parseArgs(null,null,!0,r),s=w.parsed.aliases),e._hasOutput()||(k=function(t,e,n,r){e._=e._.slice(n.commands.length);const i=t.demanded.slice(0),o=t.optional.slice(0),s={};l.positionalCount(i.length,e._.length);for(;i.length;){const t=i.shift();y(t,e,s)}for(;o.length;){const t=o.shift();y(t,e,s)}return e._=n.commands.concat(e._),v(e,s,f.cmdToParseOptions(t.original)),s}(a,x,c));const E=p.slice(0).concat(a.middlewares||[]);if(o(x,e,E,!0),e._hasOutput()||e._runValidation(x,s,k,e.parsed.error),a.handler&&!e._hasOutput()){e._setHasOutput(),x=o(x,e,E,!1);const t=i(x)?x.then(t=>a.handler(t)):a.handler(x);i(t)&&t.catch(t=>e.getUsageInstance().fail(null,t))}return t&&(c.commands.pop(),c.fullCommands.pop()),(u=c.files.length-u)>0&&c.files.splice(-1*u,u),x},f.runDefaultBuilderOn=function(t){if(_(t)){const e=u.test(h.original)?h.original:h.original.replace(/^[^[\]<>]*/,"$0 ");t.getUsageInstance().usage(e,h.description)}const e=h.builder;"function"==typeof e?e(t):Object.keys(e).forEach(n=>{t.option(n,e[n])})},f.cmdToParseOptions=function(t){const e={array:[],default:{},alias:{},demand:{}},n=f.parseCommand(t);return n.demanded.forEach(t=>{const n=t.cmd.slice(0),r=n.shift();t.variadic&&(e.array.push(r),e.default[r]=[]),n.forEach(t=>{e.alias[r]=t}),e.demand[r]=!0}),n.optional.forEach(t=>{const n=t.cmd.slice(0),r=n.shift();t.variadic&&(e.array.push(r),e.default[r]=[]),n.forEach(t=>{e.alias[r]=t})}),e},f.reset=()=>(g={},m={},h=void 0,f),f.freeze=()=>{(d={}).handlers=g,d.aliasMap=m,d.defaultCommand=h},f.unfreeze=()=>{g=d.handlers,m=d.aliasMap,h=d.defaultCommand,d=void 0},f}},function(t,e){t.exports=function(t){return t instanceof Promise}},function(t,e,n){"use strict";t.exports={applyMiddleware:function(t,e,n,i){const o=new Error("middleware cannot return a promise when applyBeforeValidation is true");return n.reduce((n,s)=>{if(s.applyBeforeValidation!==i&&!r(n))return n;if(r(n))return n.then(t=>Promise.all([t,s(t,e)])).then(([t,e])=>Object.assign(t,e));{const a=s(t,e);if(i&&r(a))throw o;return r(a)?a.then(t=>Object.assign(n,t)):Object.assign(n,a)}},t)},commandMiddlewareFactory:function(t){return t?t.map(t=>(t.applyBeforeValidation=!1,t)):[]},globalMiddlewareFactory:function(t,e){return function(n,r=!1){if(i(" [boolean]",[n,r],arguments.length),Array.isArray(n)){for(let t=0;t1&&/[A-Z]/.test(e)&&l["camel-case-expansion"]){var n=i(e,"-");n!==t&&-1===y.aliases[t].indexOf(n)&&(y.aliases[t].push(n),m[n]=!0)}}),y.aliases[t].forEach(function(e){y.aliases[e]=[t].concat(y.aliases[t].filter(function(t){return e!==t}))}))})})}(e.key,c,e.default,y.arrays),Object.keys(p).forEach(function(t){(y.aliases[t]||[]).forEach(function(e){p[e]=p[t]})});var w={_:[]};Object.keys(y.bools).forEach(function(t){Object.prototype.hasOwnProperty.call(p,t)&&(j(t,p[t]),function(t){[].concat(y.aliases[t]||[],t).forEach(function(t){y.defaulted[t]=!0})}(t))});for(var k=[],E=0;EE+1?(t.splice(E+1,0,C[2]),E=F(E,C[1],t)):j(C[1],C[2]);else if(T.match(x)&&l["boolean-negation"])j(S=T.match(x)[1],!1);else if(T.match(/^--.+/)||!l["short-option-groups"]&&T.match(/^-[^-]+/))H(S=T.match(/^--?(.+)/)[1],y.nargs)?E=B(E,S,t):H(S,y.arrays)&&t.length>E+1?E=F(E,S,t):void 0===(A=0===y.nargs[S]?void 0:t[E+1])||A.match(/^-/)&&!A.match(v)||H(S,y.bools)||H(S,y.counts)?/^(true|false)$/.test(A)?(j(S,A),E++):j(S,$(S)):(j(S,A),E++);else if(T.match(/^-.\..+=/))j((C=T.match(/^-([^=]+)=([\s\S]*)$/))[1],C[2]);else if(T.match(/^-.\..+/))A=t[E+1],S=T.match(/^-(.\..+)/)[1],void 0===A||A.match(/^-/)||H(S,y.bools)||H(S,y.counts)?j(S,$(S)):(j(S,A),E++);else if(T.match(/^-[^-]+/)&&!T.match(v)){O=T.slice(1,-1).split(""),D=!1;for(var P=0;PE+1?(t.splice(E+1,0,I),E=F(E,S,t)):j(S,I),D=!0;break}if("-"!==A){if(/[A-Za-z]/.test(O[P])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(A)){j(O[P],A),D=!0;break}if(O[P+1]&&O[P+1].match(/\W/)){j(O[P],A),D=!0;break}j(O[P],$(O[P]))}else j(O[P],A)}S=T.slice(-1)[0],D||"-"===S||(H(S,y.nargs)?E=B(E,S,t):H(S,y.arrays)&&t.length>E+1?E=F(E,S,t):void 0===(A=t[E+1])||/^(-|--)[^-]/.test(A)&&!A.match(v)||H(S,y.bools)||H(S,y.counts)?/^(true|false)$/.test(A)?(j(S,A),E++):j(S,$(S)):(j(S,A),E++))}else{if("--"===T){k=t.slice(E+1);break}if(l["halt-at-non-option"]){k=t.slice(E);break}w._.push(M("_",T))}}function B(t,e,n){var r;const i=H(e,y.nargs);var o=0;for(r=t+1;r0,s=t+1;s1&&l["dot-notation"]&&(y.aliases[s[0]]||[]).forEach(function(t){t=t.split(".");var e=[].concat(s);e.shift(),t=t.concat(e),G(w,t,i)}),H(t,y.normalize)&&!H(t,y.arrays))&&[t].concat(y.aliases[t]||[]).forEach(function(t){w.__defineSetter__(t,function(t){e=o.normalize(t)}),w.__defineGetter__(t,function(){return"string"==typeof e?o.normalize(e):e})})}function L(t,e){"string"!=typeof e||"'"!==e[0]&&'"'!==e[0]||e[e.length-1]!==e[0]||(e=e.substring(1,e.length-1)),(H(t,y.bools)||H(t,y.counts))&&"string"==typeof e&&(e="true"===e);var n=M(t,e);return H(t,y.counts)&&(q(n)||"boolean"==typeof n)&&(n=u),H(t,y.normalize)&&H(t,y.arrays)&&(n=Array.isArray(e)?e.map(o.normalize):o.normalize(e)),n}function M(t,e){if(!H(t,y.strings)&&!H(t,y.coercions)){(null!=(n=e)&&("number"==typeof n||!!/^0x[0-9a-f]+$/i.test(n)||!(n.length>1&&"0"===n[0])&&/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(n))&&l["parse-numbers"]&&Number.isSafeInteger(Math.floor(e))||!q(e)&&H(t,y.numbers))&&(e=Number(e))}var n;return e}function N(t,e){Object.keys(t).forEach(function(n){var r=t[n],i=e?e+"."+n:n;"object"==typeof r&&null!==r&&!Array.isArray(r)&&l["dot-notation"]?N(r,i):(!U(w,i.split("."))||y.defaulted[i]||y.arrays[i]&&l["combine-arrays"])&&j(i,r)})}function z(t,e){if(void 0!==h){var n="string"==typeof h?h:"";Object.keys(process.env).forEach(function(i){if(""===n||0===i.lastIndexOf(n,0)){var o=i.split("__").map(function(t,e){return 0===e&&(t=t.substring(n.length)),r(t)});!(e&&y.configs[o.join(".")]||!e)||U(t,o)&&!y.defaulted[o.join(".")]||j(o.join("."),process.env[i])}})}}function R(t,e,n){Object.keys(n).forEach(function(r){U(t,r.split("."))||(G(t,r.split("."),n[r]),(e[r]||[]).forEach(function(e){U(t,e.split("."))||G(t,e.split("."),n[r])}))})}function U(t,e){var n=t;l["dot-notation"]||(e=[e.join(".")]),e.slice(0,-1).forEach(function(t){n=n[t]||{}});var r=e[e.length-1];return"object"==typeof n&&r in n}function G(t,e,n){var r=t;l["dot-notation"]||(e=[e.join(".")]),e.slice(0,-1).forEach(function(t,e){"object"==typeof r&&void 0===r[t]&&(r[t]={}),"object"!=typeof r[t]||Array.isArray(r[t])?(Array.isArray(r[t])?r[t].push({}):r[t]=[r[t],{}],r=r[t][r[t].length-1]):r=r[t]});var i=e[e.length-1],o=H(e.join("."),y.arrays),s=Array.isArray(n),a=l["duplicate-arguments-array"];!a&&H(i,y.nargs)&&(a=!0,(!q(r[i])&&1===y.nargs[i]||Array.isArray(r[i])&&r[i].length===y.nargs[i])&&(r[i]=void 0)),n===u?r[i]=u(r[i]):Array.isArray(r[i])?a&&o&&s?r[i]=l["flatten-duplicate-arrays"]?r[i].concat(n):(Array.isArray(r[i][0])?r[i]:[r[i]]).concat([n]):a||Boolean(o)!==Boolean(s)?r[i]=r[i].concat([n]):r[i]=n:void 0===r[i]&&o?r[i]=s?n:[n]:a&&!(void 0===r[i]||H(i,y.bools)||H(e.join("."),y.bools)||H(i,y.counts))?r[i]=[r[i],n]:r[i]=n}function H(t,e){var n=!1;return[].concat(y.aliases[t]||[],t).forEach(function(t){e[t]&&(n=e[t])}),n}function $(t){return!H(t,y.bools)&&!H(t,y.counts)&&`${t}`in p?p[t]:W(function(t){var e="boolean";H(t,y.strings)?e="string":H(t,y.numbers)?e="number":H(t,y.arrays)&&(e="array");return e}(t))}function W(t){return{boolean:!0,string:"",number:void 0,array:[]}[t]}function q(t){return void 0===t}return z(w,!0),z(w,!1),function(t){var e={};R(e,y.aliases,p),Object.keys(y.configs).forEach(function(r){var i=t[r]||e[r];if(i)try{var s=null,a=o.resolve(process.cwd(),i);if("function"==typeof y.configs[r]){try{s=y.configs[r](a)}catch(t){s=t}if(s instanceof Error)return void(b=s)}else s=n(310)(a);N(s)}catch(e){t[r]&&(b=Error(_("Invalid JSON config file: %s",i)))}})}(w),function(){if(void 0===f)return;f.forEach(function(t){N(t)})}(),R(w,y.aliases,p),function(t){var e,n={};Object.keys(t).forEach(function(r){if(!n.hasOwnProperty(r)&&"function"==typeof(e=H(r,y.coercions)))try{var i=e(t[r]);[].concat(y.aliases[r]||[],r).forEach(e=>{n[e]=t[e]=i})}catch(t){b=t}})}(w),l["set-placeholder-key"]&&function(t){y.keys.forEach(e=>{~e.indexOf(".")||void 0===t[e]&&(t[e]=void 0)})}(w),Object.keys(y.counts).forEach(function(t){U(w,t.split("."))||j(t,0)}),d&&k.length&&(w[g]=[]),k.forEach(function(t){w[g].push(t)}),l["camel-case-expansion"]&&l["strip-dashed"]&&Object.keys(w).filter(t=>"--"!==t&&t.includes("-")).forEach(t=>{delete w[t]}),l["strip-aliased"]&&[].concat(...Object.keys(c).map(t=>c[t])).forEach(t=>{l["camel-case-expansion"]&&delete w[t.split(".").map(t=>r(t)).join(".")],delete w[t]}),{argv:w,error:b,aliases:y.aliases,newAliases:m,configuration:l}}function u(t){return void 0!==t?t+1:1}function l(t,e){return c(t.slice(),e).argv}l.detailed=function(t,e){return c(t.slice(),e)},t.exports=l},function(t,e){t.exports=function(t){[process.stdout,process.stderr].forEach(function(e){e._handle&&e.isTTY&&"function"==typeof e._handle.setBlocking&&e._handle.setBlocking(t)})}},function(t,e,n){"use strict";const r=n(322),i=t=>"string"==typeof t?t.replace(r(),""):t;t.exports=i,t.exports.default=i},function(t,e,n){var r=n(326),i={};for(var o in r)r.hasOwnProperty(o)&&(i[r[o]]=o);var s=t.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var a in s)if(s.hasOwnProperty(a)){if(!("channels"in s[a]))throw new Error("missing channels property: "+a);if(!("labels"in s[a]))throw new Error("missing channel labels property: "+a);if(s[a].labels.length!==s[a].channels)throw new Error("channel and label counts mismatch: "+a);var c=s[a].channels,u=s[a].labels;delete s[a].channels,delete s[a].labels,Object.defineProperty(s[a],"channels",{value:c}),Object.defineProperty(s[a],"labels",{value:u})}s.rgb.hsl=function(t){var e,n,r=t[0]/255,i=t[1]/255,o=t[2]/255,s=Math.min(r,i,o),a=Math.max(r,i,o),c=a-s;return a===s?e=0:r===a?e=(i-o)/c:i===a?e=2+(o-r)/c:o===a&&(e=4+(r-i)/c),(e=Math.min(60*e,360))<0&&(e+=360),n=(s+a)/2,[e,100*(a===s?0:n<=.5?c/(a+s):c/(2-a-s)),100*n]},s.rgb.hsv=function(t){var e,n,r,i,o,s=t[0]/255,a=t[1]/255,c=t[2]/255,u=Math.max(s,a,c),l=u-Math.min(s,a,c),p=function(t){return(u-t)/6/l+.5};return 0===l?i=o=0:(o=l/u,e=p(s),n=p(a),r=p(c),s===u?i=r-n:a===u?i=1/3+e-r:c===u&&(i=2/3+n-e),i<0?i+=1:i>1&&(i-=1)),[360*i,100*o,100*u]},s.rgb.hwb=function(t){var e=t[0],n=t[1],r=t[2];return[s.rgb.hsl(t)[0],100*(1/255*Math.min(e,Math.min(n,r))),100*(r=1-1/255*Math.max(e,Math.max(n,r)))]},s.rgb.cmyk=function(t){var e,n=t[0]/255,r=t[1]/255,i=t[2]/255;return[100*((1-n-(e=Math.min(1-n,1-r,1-i)))/(1-e)||0),100*((1-r-e)/(1-e)||0),100*((1-i-e)/(1-e)||0),100*e]},s.rgb.keyword=function(t){var e=i[t];if(e)return e;var n,o,s,a=1/0;for(var c in r)if(r.hasOwnProperty(c)){var u=r[c],l=(o=t,s=u,Math.pow(o[0]-s[0],2)+Math.pow(o[1]-s[1],2)+Math.pow(o[2]-s[2],2));l.04045?Math.pow((e+.055)/1.055,2.4):e/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*e+.7152*n+.0722*r),100*(.0193*e+.1192*n+.9505*r)]},s.rgb.lab=function(t){var e=s.rgb.xyz(t),n=e[0],r=e[1],i=e[2];return r/=100,i/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},s.hsl.rgb=function(t){var e,n,r,i,o,s=t[0]/360,a=t[1]/100,c=t[2]/100;if(0===a)return[o=255*c,o,o];e=2*c-(n=c<.5?c*(1+a):c+a-c*a),i=[0,0,0];for(var u=0;u<3;u++)(r=s+1/3*-(u-1))<0&&r++,r>1&&r--,o=6*r<1?e+6*(n-e)*r:2*r<1?n:3*r<2?e+(n-e)*(2/3-r)*6:e,i[u]=255*o;return i},s.hsl.hsv=function(t){var e=t[0],n=t[1]/100,r=t[2]/100,i=n,o=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,i*=o<=1?o:2-o,[e,100*(0===r?2*i/(o+i):2*n/(r+n)),100*((r+n)/2)]},s.hsv.rgb=function(t){var e=t[0]/60,n=t[1]/100,r=t[2]/100,i=Math.floor(e)%6,o=e-Math.floor(e),s=255*r*(1-n),a=255*r*(1-n*o),c=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,c,s];case 1:return[a,r,s];case 2:return[s,r,c];case 3:return[s,a,r];case 4:return[c,s,r];case 5:return[r,s,a]}},s.hsv.hsl=function(t){var e,n,r,i=t[0],o=t[1]/100,s=t[2]/100,a=Math.max(s,.01);return r=(2-o)*s,n=o*a,[i,100*(n=(n/=(e=(2-o)*a)<=1?e:2-e)||0),100*(r/=2)]},s.hwb.rgb=function(t){var e,n,r,i,o,s,a,c=t[0]/360,u=t[1]/100,l=t[2]/100,p=u+l;switch(p>1&&(u/=p,l/=p),r=6*c-(e=Math.floor(6*c)),0!=(1&e)&&(r=1-r),i=u+r*((n=1-l)-u),e){default:case 6:case 0:o=n,s=i,a=u;break;case 1:o=i,s=n,a=u;break;case 2:o=u,s=n,a=i;break;case 3:o=u,s=i,a=n;break;case 4:o=i,s=u,a=n;break;case 5:o=n,s=u,a=i}return[255*o,255*s,255*a]},s.cmyk.rgb=function(t){var e=t[0]/100,n=t[1]/100,r=t[2]/100,i=t[3]/100;return[255*(1-Math.min(1,e*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},s.xyz.rgb=function(t){var e,n,r,i=t[0]/100,o=t[1]/100,s=t[2]/100;return n=-.9689*i+1.8758*o+.0415*s,r=.0557*i+-.204*o+1.057*s,e=(e=3.2406*i+-1.5372*o+-.4986*s)>.0031308?1.055*Math.pow(e,1/2.4)-.055:12.92*e,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(e=Math.min(Math.max(0,e),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},s.xyz.lab=function(t){var e=t[0],n=t[1],r=t[2];return n/=100,r/=108.883,e=(e/=95.047)>.008856?Math.pow(e,1/3):7.787*e+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(e-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},s.lab.xyz=function(t){var e,n,r,i=t[0];e=t[1]/500+(n=(i+16)/116),r=n-t[2]/200;var o=Math.pow(n,3),s=Math.pow(e,3),a=Math.pow(r,3);return n=o>.008856?o:(n-16/116)/7.787,e=s>.008856?s:(e-16/116)/7.787,r=a>.008856?a:(r-16/116)/7.787,[e*=95.047,n*=100,r*=108.883]},s.lab.lch=function(t){var e,n=t[0],r=t[1],i=t[2];return(e=360*Math.atan2(i,r)/2/Math.PI)<0&&(e+=360),[n,Math.sqrt(r*r+i*i),e]},s.lch.lab=function(t){var e,n=t[0],r=t[1];return e=t[2]/360*2*Math.PI,[n,r*Math.cos(e),r*Math.sin(e)]},s.rgb.ansi16=function(t){var e=t[0],n=t[1],r=t[2],i=1 in arguments?arguments[1]:s.rgb.hsv(t)[2];if(0===(i=Math.round(i/50)))return 30;var o=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(e/255));return 2===i&&(o+=60),o},s.hsv.ansi16=function(t){return s.rgb.ansi16(s.hsv.rgb(t),t[2])},s.rgb.ansi256=function(t){var e=t[0],n=t[1],r=t[2];return e===n&&n===r?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},s.ansi16.rgb=function(t){var e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),[e=e/10.5*255,e,e];var n=.5*(1+~~(t>50));return[(1&e)*n*255,(e>>1&1)*n*255,(e>>2&1)*n*255]},s.ansi256.rgb=function(t){if(t>=232){var e=10*(t-232)+8;return[e,e,e]}var n;return t-=16,[Math.floor(t/36)/5*255,Math.floor((n=t%36)/6)/5*255,n%6/5*255]},s.rgb.hex=function(t){var e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},s.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var n=e[0];3===e[0].length&&(n=n.split("").map(function(t){return t+t}).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},s.rgb.hcg=function(t){var e,n=t[0]/255,r=t[1]/255,i=t[2]/255,o=Math.max(Math.max(n,r),i),s=Math.min(Math.min(n,r),i),a=o-s;return e=a<=0?0:o===n?(r-i)/a%6:o===r?2+(i-n)/a:4+(n-r)/a+4,e/=6,[360*(e%=1),100*a,100*(a<1?s/(1-a):0)]},s.hsl.hcg=function(t){var e=t[1]/100,n=t[2]/100,r=1,i=0;return(r=n<.5?2*e*n:2*e*(1-n))<1&&(i=(n-.5*r)/(1-r)),[t[0],100*r,100*i]},s.hsv.hcg=function(t){var e=t[1]/100,n=t[2]/100,r=e*n,i=0;return r<1&&(i=(n-r)/(1-r)),[t[0],100*r,100*i]},s.hcg.rgb=function(t){var e=t[0]/360,n=t[1]/100,r=t[2]/100;if(0===n)return[255*r,255*r,255*r];var i,o=[0,0,0],s=e%1*6,a=s%1,c=1-a;switch(Math.floor(s)){case 0:o[0]=1,o[1]=a,o[2]=0;break;case 1:o[0]=c,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=a;break;case 3:o[0]=0,o[1]=c,o[2]=1;break;case 4:o[0]=a,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=c}return i=(1-n)*r,[255*(n*o[0]+i),255*(n*o[1]+i),255*(n*o[2]+i)]},s.hcg.hsv=function(t){var e=t[1]/100,n=e+t[2]/100*(1-e),r=0;return n>0&&(r=e/n),[t[0],100*r,100*n]},s.hcg.hsl=function(t){var e=t[1]/100,n=t[2]/100*(1-e)+.5*e,r=0;return n>0&&n<.5?r=e/(2*n):n>=.5&&n<1&&(r=e/(2*(1-n))),[t[0],100*r,100*n]},s.hcg.hwb=function(t){var e=t[1]/100,n=e+t[2]/100*(1-e);return[t[0],100*(n-e),100*(1-n)]},s.hwb.hcg=function(t){var e=t[1]/100,n=1-t[2]/100,r=n-e,i=0;return r<1&&(i=(n-r)/(1-r)),[t[0],100*r,100*i]},s.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},s.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},s.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},s.gray.hsl=s.gray.hsv=function(t){return[0,0,t[0]]},s.gray.hwb=function(t){return[0,100,t[0]]},s.gray.cmyk=function(t){return[0,0,0,t[0]]},s.gray.lab=function(t){return[t[0],0,0]},s.gray.hex=function(t){var e=255&Math.round(t[0]/100*255),n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n},s.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}},function(t,e){function n(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id=301},function(t,e){t.exports=require("child_process")},function(t,e,n){"use strict";t.exports=t=>{const e=(t=t||{}).env||process.env;return"win32"!==(t.platform||process.platform)?"PATH":Object.keys(e).find(t=>"PATH"===t.toUpperCase())||"Path"}},function(t,e,n){"use strict";const r=n(306);function i(t,e){const o=r(t,e,n(293));var s;return s=o,Object.keys(s).forEach(t=>{"argv"===t?i.__defineGetter__(t,s.__lookupGetter__(t)):i[t]="function"==typeof s[t]?s[t].bind(s):s[t]}),o}i(process.argv.slice(2)),t.exports=i},function(t,e,n){"use strict";n.r(e);var r=n(134),i=n(44),o=n.n(i),s=n(60),a=n(304),c=n.n(a);(async()=>{const t=c()(process.argv).options({i:{alias:"input",demand:!0,describe:"Input",type:"string"},o:{alias:"output",demand:!0,describe:"Output",type:"string"},t:{alias:"temp",default:o.a.tmpdir(),describe:"Temp directory",type:"string"},l:{alias:"verbose",default:!0,describe:"Verbose log",type:"boolean"}}).help("help").alias("h","help").version("version",s.version).alias("v","version").argv;return await Object(r.default)(t.input,t.output,{temp:t.temp,verbose:t.verbose})})().then(t=>{console.log(`Output: ${t}`)}).catch(t=>{console.error(t.message)})},function(t,e,n){"use strict";(function(e){const r=n(290),i=n(5),o=n(294),s=n(313),a=n(297),c=n(1),u=n(315),l=n(328),p=n(330),f=n(292),h=n(298),d=n(331),{globalMiddlewareFactory:g}=n(296),m=n(133);function _(t,e){return c.relative(t,e)}(t.exports=function(t,b,y){t=t||[];const v={};let x=null,w=null,k={},E=[],D="",S={},O=null,C=null;const A=p({directory:c.resolve(e,"./locales"),updateFiles:!1});v.middleware=g(E,v),b||(b=process.cwd());v.scriptName=function(t){return v.$0=t,v},/\b(node|iojs|electron)(\.exe)?$/.test(process.argv[0])?v.$0=process.argv.slice(1,2):v.$0=process.argv.slice(0,1);v.$0=v.$0.map((t,e)=>{const n=_(b,t);return t.match(/^(\/|([a-zA-Z]:)?\\)/)&&n.length{T[t].push(e)})}function L(t,e,n,r,i){if(Array.isArray(r)){const e={};r.forEach(t=>{e[t]=i}),t(e)}else"object"==typeof r?Object.keys(r).forEach(e=>{t(e,r[e])}):T[n][r]=e?(T[n][r]||[]).concat(i):i}function M(t){Object.keys(T).forEach(e=>{const n=T[e];Array.isArray(n)?~n.indexOf(t)&&n.splice(n.indexOf(t),1):"object"==typeof n&&delete n[t]}),delete O.getDescriptions()[t]}v.getContext=()=>I,v.resetOptions=v.reset=function(t){I.resets++,t=t||{},T=T||{};const e={};e.local=T.local?T.local:[],e.configObjects=T.configObjects?T.configObjects:[];const n={};e.local.forEach(e=>{n[e]=!0,(t[e]||[]).forEach(t=>{n[t]=!0})}),S=Object.keys(k).reduce((t,e)=>{const r=k[e].filter(t=>!(t in n));return r.length>0&&(t[e]=r),t},{}),k={};return["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"].forEach(t=>{e[t]=(T[t]||[]).filter(t=>!n[t])}),["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","coerce"].forEach(t=>{e[t]=f(T[t],(t,e)=>!n[t])}),e.envPrefix=T.envPrefix,T=e,O=O?O.reset(n):u(v,A),C=C?C.reset(n):l(v,O,A),x=x?x.reset():o(v,O,C,E),w||(w=s(v,O,x)),Y=null,D="",Q=null,X=!1,v.parsed=!1,v},v.resetOptions(),v.boolean=function(t){return r("",[t],arguments.length),j("boolean",t),v},v.array=function(t){return r("",[t],arguments.length),j("array",t),v},v.number=function(t){return r("",[t],arguments.length),j("number",t),v},v.normalize=function(t){return r("",[t],arguments.length),j("normalize",t),v},v.count=function(t){return r("",[t],arguments.length),j("count",t),v},v.string=function(t){return r("",[t],arguments.length),j("string",t),v},v.requiresArg=function(t){return r("",[t],arguments.length),L(v.nargs,!1,"narg",t,1),v},v.skipValidation=function(t){return r("",[t],arguments.length),j("skipValidation",t),v},v.nargs=function(t,e){return r(" [number]",[t,e],arguments.length),L(v.nargs,!1,"narg",t,e),v},v.choices=function(t,e){return r(" [string|array]",[t,e],arguments.length),L(v.choices,!0,"choices",t,e),v},v.alias=function(t,e){return r(" [string|array]",[t,e],arguments.length),L(v.alias,!0,"alias",t,e),v},v.default=v.defaults=function(t,e,n){return r(" [*] [string]",[t,e,n],arguments.length),n&&(T.defaultDescription[t]=n),"function"==typeof e&&(T.defaultDescription[t]||(T.defaultDescription[t]=O.functionDescription(e)),e=e.call()),L(v.default,!1,"default",t,e),v},v.describe=function(t,e){return r(" [string]",[t,e],arguments.length),L(v.describe,!1,"key",t,!0),O.describe(t,e),v},v.demandOption=function(t,e){return r(" [string]",[t,e],arguments.length),L(v.demandOption,!1,"demandedOptions",t,e),v},v.coerce=function(t,e){return r(" [function]",[t,e],arguments.length),L(v.coerce,!1,"coerce",t,e),v},v.config=function(t,e,n){return r("[object|string] [string|function] [function]",[t,e,n],arguments.length),"object"==typeof t?(t=d(t,b),T.configObjects=(T.configObjects||[]).concat(t),v):("function"==typeof e&&(n=e,e=null),t=t||"config",v.describe(t,e||O.deferY18nLookup("Path to JSON config file")),(Array.isArray(t)?t:[t]).forEach(t=>{T.config[t]=n||!0}),v)},v.example=function(t,e){return r(" [string]",[t,e],arguments.length),O.example(t,e),v},v.command=function(t,e,n,i,o){return r(" [string|boolean] [function|object] [function] [array]",[t,e,n,i,o],arguments.length),x.addHandler(t,e,n,i,o),v},v.commandDir=function(t,e){r(" [object]",[t,e],arguments.length);const i=y||n(293);return x.addDirectory(t,v.getContext(),i,n(332)(),e),v},v.demand=v.required=v.require=function(t,e,n){return Array.isArray(e)?(e.forEach(t=>{v.demandOption(t,n)}),e=1/0):"number"!=typeof e&&(n=e,e=1/0),"number"==typeof t?v.demandCommand(t,e,n,n):Array.isArray(t)?t.forEach(t=>{v.demandOption(t,n)}):"string"==typeof n?v.demandOption(t,n):!0!==n&&void 0!==n||v.demandOption(t),v},v.demandCommand=function(t,e,n,i){return r("[number] [number|string] [string|null|undefined] [string|null|undefined]",[t,e,n,i],arguments.length),void 0===t&&(t=1),"number"!=typeof e&&(n=e,e=1/0),v.global("_",!1),T.demandedCommands._={min:t,max:e,minMsg:n,maxMsg:i},v},v.getDemandedOptions=()=>(r([],0),T.demandedOptions),v.getDemandedCommands=()=>(r([],0),T.demandedCommands),v.implies=function(t,e){return r(" [number|string|array]",[t,e],arguments.length),C.implies(t,e),v},v.conflicts=function(t,e){return r(" [string|array]",[t,e],arguments.length),C.conflicts(t,e),v},v.usage=function(t,e,n,i){if(r(" [string|boolean] [function|object] [function]",[t,e,n,i],arguments.length),void 0!==e){if((t||"").match(/^\$0( |$)/))return v.command(t,e,n,i);throw new m(".usage() description must start with $0 if being used as alias for .command()")}return O.usage(t),v},v.epilogue=v.epilog=function(t){return r("",[t],arguments.length),O.epilog(t),v},v.fail=function(t){return r("",[t],arguments.length),O.failFn(t),v},v.check=function(t,e){return r(" [boolean]",[t,e],arguments.length),C.check(t,!1!==e),v},v.global=function(t,e){return r(" [boolean]",[t,e],arguments.length),t=[].concat(t),!1!==e?T.local=T.local.filter(e=>-1===t.indexOf(e)):t.forEach(t=>{-1===T.local.indexOf(t)&&T.local.push(t)}),v},v.pkgConf=function(t,e){r(" [string]",[t,e],arguments.length);let n=null;const i=z(e||b);return i[t]&&"object"==typeof i[t]&&(n=d(i[t],e||b),T.configObjects=(T.configObjects||[]).concat(n)),v};const N={};function z(t){const e=t||"*";if(N[e])return N[e];const r=n(333);let o={};try{let e=t||n(339)(y||n(293));!t&&c.extname(e)&&(e=c.dirname(e));const s=r.sync("package.json",{cwd:e});o=JSON.parse(i.readFileSync(s))}catch(t){}return N[e]=o||{},N[e]}let R=null,U=null;v.parse=function(e,n,i){if(r("[string|array] [function|boolean|object] [function]",[e,n,i],arguments.length),void 0===e)return v._parseArgs(t);"object"==typeof n&&(U=n,n=i),"function"==typeof n&&(R=n,n=null),n||(t=e),B(),R&&(V=!1);const o=v._parseArgs(e,n);return R&&R(Q,o,D),F(),o},v._getParseContext=()=>U||{},v._hasParseCallback=()=>!!R,v.option=v.options=function(t,e){if(r(" [object]",[t,e],arguments.length),"object"==typeof t)Object.keys(t).forEach(e=>{v.options(e,t[e])});else{"object"!=typeof e&&(e={}),T.key[t]=!0,e.alias&&v.alias(t,e.alias);const n=e.demand||e.required||e.require;n&&v.demand(t,n),e.demandOption&&v.demandOption(t,"string"==typeof e.demandOption?e.demandOption:void 0),"conflicts"in e&&v.conflicts(t,e.conflicts),"default"in e&&v.default(t,e.default),"implies"in e&&v.implies(t,e.implies),"nargs"in e&&v.nargs(t,e.nargs),e.config&&v.config(t,e.configParser),e.normalize&&v.normalize(t),"choices"in e&&v.choices(t,e.choices),"coerce"in e&&v.coerce(t,e.coerce),"group"in e&&v.group(t,e.group),(e.boolean||"boolean"===e.type)&&(v.boolean(t),e.alias&&v.boolean(e.alias)),(e.array||"array"===e.type)&&(v.array(t),e.alias&&v.array(e.alias)),(e.number||"number"===e.type)&&(v.number(t),e.alias&&v.number(e.alias)),(e.string||"string"===e.type)&&(v.string(t),e.alias&&v.string(e.alias)),(e.count||"count"===e.type)&&v.count(t),"boolean"==typeof e.global&&v.global(t,e.global),e.defaultDescription&&(T.defaultDescription[t]=e.defaultDescription),e.skipValidation&&v.skipValidation(t);const r=e.describe||e.description||e.desc;v.describe(t,r),e.hidden&&v.hide(t),e.requiresArg&&v.requiresArg(t)}return v},v.getOptions=()=>T,v.positional=function(t,e){if(r(" ",[t,e],arguments.length),0===I.resets)throw new m(".positional() can only be called in a command's builder function");const n=["default","implies","normalize","choices","conflicts","coerce","type","describe","desc","description","alias"];e=f(e,(t,e)=>{let r=-1!==n.indexOf(t);return"type"===t&&-1===["string","number","boolean"].indexOf(e)&&(r=!1),r});const i=I.fullCommands[I.fullCommands.length-1],o=i?x.cmdToParseOptions(i):{array:[],alias:{},default:{},demand:{}};return Object.keys(o).forEach(n=>{Array.isArray(o[n])?-1!==o[n].indexOf(t)&&(e[n]=!0):!o[n][t]||n in e||(e[n]=o[n][t])}),v.group(t,O.getPositionalGroupName()),v.option(t,e)},v.group=function(t,e){r(" ",[t,e],arguments.length);const n=S[e]||k[e];S[e]&&delete S[e];const i={};return k[e]=(n||[]).concat(t).filter(t=>!i[t]&&(i[t]=!0)),v},v.getGroups=()=>Object.assign({},k,S),v.env=function(t){return r("[string|boolean]",[t],arguments.length),T.envPrefix=!1===t?void 0:t||"",v},v.wrap=function(t){return r("",[t],arguments.length),O.wrap(t),v};let G=!1;v.strict=function(t){return r("[boolean]",[t],arguments.length),G=!1!==t,v},v.getStrict=()=>G;let H={};v.parserConfiguration=function(t){return r("",[t],arguments.length),H=t,v},v.getParserConfiguration=()=>H,v.showHelp=function(e){return r("[string|function]",[e],arguments.length),v.parsed||v._parseArgs(t),x.hasDefaultCommand()&&(I.resets++,x.runDefaultBuilderOn(v,!0)),O.showHelp(e),v};let $=null;function W(){const t=z();return t.version||"unknown"}v.version=function(t,e,n){const i="version";if(r("[boolean|string] [string] [string]",[t,e,n],arguments.length),$&&(M($),O.version(void 0),$=null),0===arguments.length)n=W(),t=i;else if(1===arguments.length){if(!1===t)return v;n=t,t=i}else 2===arguments.length&&(n=e,e=null);return $="string"==typeof t?t:i,e=e||O.deferY18nLookup("Show version number"),O.version(n||void 0),v.boolean($),v.describe($,e),v};let q=null;v.addHelpOpt=v.help=function(t,e){const n="help";return r("[string|boolean] [string]",[t,e],arguments.length),q&&(M(q),q=null),1===arguments.length&&!1===t?v:(q="string"==typeof t?t:n,v.boolean(q),v.describe(q,e||O.deferY18nLookup("Show help")),v)};T.showHiddenOpt="show-hidden",v.addShowHiddenOpt=v.showHidden=function(t,e){if(r("[string|boolean] [string]",[t,e],arguments.length),1===arguments.length&&!1===t)return v;const n="string"==typeof t?t:"show-hidden";return v.boolean(n),v.describe(n,e||O.deferY18nLookup("Show hidden options")),T.showHiddenOpt=n,v},v.hide=function(t){return r("",[t],arguments.length),T.hiddenOptions.push(t),v},v.showHelpOnFail=function(t,e){return r("[boolean|string] [string]",[t,e],arguments.length),O.showHelpOnFail(t,e),v};var V=!0;v.exitProcess=function(t){return r("[boolean]",[t],arguments.length),"boolean"!=typeof t&&(t=!0),V=t,v},v.getExitProcess=()=>V;var Y=null;v.completion=function(t,e,n){return r("[string] [string|boolean|function] [function]",[t,e,n],arguments.length),"function"==typeof e&&(n=e,e=null),Y=t||"completion",e||!1===e||(e="generate completion script"),v.command(Y,e),n&&w.registerFunction(n),v},v.showCompletionScript=function(t){return r("[string]",[t],arguments.length),t=t||v.$0,J.log(w.generateCompletionScript(t,Y)),v},v.getCompletion=function(t,e){r(" ",[t,e],arguments.length),w.getCompletion(t,e)},v.locale=function(t){return r("[string]",[t],arguments.length),0===arguments.length?(tt(),A.getLocale()):(Z=!1,A.setLocale(t),v)},v.updateStrings=v.updateLocale=function(t){return r("",[t],arguments.length),Z=!1,A.updateLocale(t),v};let Z=!0;v.detectLocale=function(t){return r("",[t],arguments.length),Z=t,v},v.getDetectLocale=()=>Z;var X=!1,Q=null;v.exit=(t,e)=>{X=!0,Q=e,V&&process.exit(t)};const J={log(){const t=[];for(let e=0;eJ,v._hasOutput=()=>X,v._setHasOutput=()=>{X=!0},v.recommendCommands=function(t){return r("[boolean]",[t],arguments.length),K="boolean"!=typeof t||t,v},v.getUsageInstance=()=>O,v.getValidationInstance=()=>C,v.getCommandInstance=()=>x,v.terminalWidth=()=>(r([],0),void 0!==process.stdout.columns?process.stdout.columns:null),Object.defineProperty(v,"argv",{get:()=>v._parseArgs(t),enumerable:!0}),v._parseArgs=function(e,n,r,i){let o=!!r;e=e||t,T.__=A.__,T.configuration=v.getParserConfiguration();let s=z().yargs;s&&(console.warn("Configuring yargs through package.json is deprecated and will be removed in the next major release, please use the JS API instead."),T.configuration=Object.assign({},s,T.configuration));const c=a.detailed(e,T);let u=c.argv;U&&(u=Object.assign({},u,U));const l=c.aliases;u.$0=v.$0,v.parsed=c;try{if(tt(),n)return u;q&&~[q].concat(l[q]||[]).filter(t=>t.length>1).indexOf(u._[u._.length-1])&&(u._.pop(),u[q]=!0);const t=x.getCommands(),r=w.completionKey in u,s=u[q]||r,a=s&&(t.length>1||"$0"!==t[0]);if(u._.length){if(t.length){let e;for(let n,r=i||0;void 0!==u._[r];r++){if(n=String(u._[r]),~t.indexOf(n)&&n!==Y)return x.runCommand(n,v,c,r+1);if(!e&&n!==Y){e=n;break}}if(x.hasDefaultCommand()&&!a)return x.runCommand(null,v,c);K&&e&&!s&&C.recommendCommands(e,t)}Y&&~u._.indexOf(Y)&&!r&&(V&&h(!0),v.showCompletionScript(),v.exit(0))}else if(x.hasDefaultCommand()&&!a)return x.runCommand(null,v,c);if(r){V&&h(!0);const t=e.slice(e.indexOf(`--${w.completionKey}`)+1);return w.getCompletion(t,t=>{(t||[]).forEach(t=>{J.log(t)}),v.exit(0)}),u}if(X||Object.keys(u).forEach(t=>{t===q&&u[t]?(V&&h(!0),o=!0,v.showHelp("log"),v.exit(0)):t===$&&u[t]&&(V&&h(!0),o=!0,O.showVersion(),v.exit(0))}),!o&&T.skipValidation.length>0&&(o=Object.keys(u).some(t=>T.skipValidation.indexOf(t)>=0&&!0===u[t])),!o){if(c.error)throw new m(c.error.message);r||v._runValidation(u,l,{},c.error)}}catch(t){if(!(t instanceof m))throw t;O.fail(t.message,t)}return u},v._runValidation=function(t,e,n,r){if(r)throw new m(r.message||r);C.nonOptionCount(t),C.requiredArguments(t),G&&C.unknownArguments(t,e,n),C.customChecks(t,e),C.limitedChoices(t),C.implications(t),C.conflicting(t)},v.help(),v.version(),v}).rebase=_}).call(this,"/")},function(t,e,n){"use strict";const r=(t,e)=>{if("string"!=typeof t&&!Array.isArray(t))throw new TypeError("Expected the input to be `string | string[]`");e=Object.assign({pascalCase:!1},e);return 0===(t=Array.isArray(t)?t.map(t=>t.trim()).filter(t=>t.length).join("-"):t.trim()).length?"":1===t.length?e.pascalCase?t.toUpperCase():t.toLowerCase():(t!==t.toLowerCase()&&(t=(t=>{let e=!1,n=!1,r=!1;for(let i=0;ie.pascalCase?t.charAt(0).toUpperCase()+t.slice(1):t)(t=t.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(t,e)=>e.toUpperCase()).replace(/\d+(\w|$)/g,t=>t.toUpperCase())))};t.exports=r,t.exports.default=r},function(t,e,n){"use strict";t.exports=function(t,e){if("string"!=typeof t)throw new TypeError("Expected a string");return e=void 0===e?"_":e,t.replace(/([a-z\d])([A-Z])/g,"$1"+e+"$2").replace(/([A-Z]+)([A-Z][a-z\d]+)/g,"$1"+e+"$2").toLowerCase()}},function(t,e){t.exports=function(t){if(Array.isArray(t))return t.map(t=>"string"!=typeof t?t+"":t);t=t.trim();for(var e=0,n=null,r=null,i=null,o=[],s=0;s{process.nextTick(()=>{r(t)})}).catch(t=>{process.nextTick(()=>{throw t})}):r(t)}return a(c,u,t=>{r(t)})}const f=i.getCommandHandlers();for(let e=0,r=n.length;e{const e=i.parseCommand(t[0]).cmd;if(-1===n.indexOf(e))if(s){const n=t[1]||"";o.push(e.replace(/:/g,"\\:")+":"+n)}else o.push(e)}),c.match(/^-/)||""===c&&0===o.length){const r=e.getDescriptions();Object.keys(t.getOptions().key).forEach(t=>{if([t].concat(l[t]||[]).every(t=>-1===n.indexOf(`--${t}`)))if(s){const e=r[t]||"";o.push(`--${t.replace(/:/g,"\\:")}:${e.replace("__yargsString__:","")}`)}else o.push(`--${t}`)})}r(o)},o.generateCompletionScript=function(t,e){const i=n(314);let o=s?i.completionZshTemplate:i.completionShTemplate;const a=r.basename(t);return t.match(/\.js$/)&&(t=`./${t}`),(o=(o=o.replace(/{{app_name}}/g,a)).replace(/{{completion_command}}/g,e)).replace(/{{app_path}}/g,t)};let a=null;return o.registerFunction=t=>{a=t},o}},function(t,e){e.completionShTemplate='###-begin-{{app_name}}-completions-###\n#\n# yargs command completion script\n#\n# Installation: {{app_path}} {{completion_command}} >> ~/.bashrc\n# or {{app_path}} {{completion_command}} >> ~/.bash_profile on OSX.\n#\n_yargs_completions()\n{\n local cur_word args type_list\n\n cur_word="${COMP_WORDS[COMP_CWORD]}"\n args=("${COMP_WORDS[@]}")\n\n # ask yargs to generate completions.\n type_list=$({{app_path}} --get-yargs-completions "${args[@]}")\n\n COMPREPLY=( $(compgen -W "${type_list}" -- ${cur_word}) )\n\n # if no match was found, fall back to filename completion\n if [ ${#COMPREPLY[@]} -eq 0 ]; then\n COMPREPLY=()\n fi\n\n return 0\n}\ncomplete -o default -F _yargs_completions {{app_name}}\n###-end-{{app_name}}-completions-###\n',e.completionZshTemplate='###-begin-{{app_name}}-completions-###\n#\n# yargs command completion script\n#\n# Installation: {{app_path}} {{completion_command}} >> ~/.zshrc\n# or {{app_path}} {{completion_command}} >> ~/.zsh_profile on OSX.\n#\n_{{app_name}}_yargs_completions()\n{\n local reply\n local si=$IFS\n IFS=$\'\n\' reply=($(COMP_CWORD="$((CURRENT-1))" COMP_LINE="$BUFFER" COMP_POINT="$CURSOR" {{app_path}} --get-yargs-completions "${words[@]}"))\n IFS=$si\n _describe \'values\' reply\n}\ncompdef _{{app_name}}_yargs_completions {{app_name}}\n###-end-{{app_name}}-completions-###\n'},function(t,e,n){"use strict";const r=n(316),i=n(291),o=n(292),s=n(1),a=n(298),c=n(133);t.exports=function(t,e){const u=e.__,l={},p=[];l.failFn=function(t){p.push(t)};let f=null,h=!0;l.showHelpOnFail=function(t,e){return"string"==typeof t?(e=t,t=!0):void 0===t&&(t=!0),f=e,h=t,l};let d=!1;l.fail=function(e,n){const r=t._getLoggerInstance();if(!p.length){if(t.getExitProcess()&&a(!0),d||(d=!0,h&&(t.showHelp("error"),r.error()),(e||n)&&r.error(e||n),f&&((e||n)&&r.error(""),r.error(f))),n=n||new c(e),t.getExitProcess())return t.exit(1);if(t._hasParseCallback())return t.exit(1,n);throw n}for(let t=p.length-1;t>=0;--t)p[t](e,n,l)};let g=[],m=!1;l.usage=(t,e)=>null===t?(m=!0,void(g=[])):(m=!1,g.push([t,e||""]),l),l.getUsage=()=>g,l.getUsageDisabled=()=>m,l.getPositionalGroupName=()=>u("Positionals:");let _=[];l.example=(t,e)=>{_.push([t,e||""])};let b=[];l.command=function(t,e,n,r){n&&(b=b.map(t=>(t[2]=!1,t))),b.push([t,e||"",n,r])},l.getCommands=()=>b;let y,v={};l.describe=function(t,e){"object"==typeof t?Object.keys(t).forEach(e=>{l.describe(e,t[e])}):v[t]=e},l.getDescriptions=()=>v,l.epilog=t=>{y=t};let x,w=!1;function k(){return w||(x="object"==typeof process&&process.stdout&&process.stdout.columns?Math.min(80,process.stdout.columns):80,w=!0),x}l.wrap=t=>{w=!0,x=t};l.deferY18nLookup=t=>"__yargsString__:"+t;const E="Options:";function D(t,e,n){let r=0;return Array.isArray(t)||(t=Object.keys(t).map(e=>[t[e]])),t.forEach(t=>{r=Math.max(i(n?`${n} ${t[0]}`:t[0]),r)}),e&&(r=Math.min(r,parseInt(.5*e,10))),r}function S(e){return t.getOptions().hiddenOptions.indexOf(e)<0||t.parsed.argv[t.getOptions().showHiddenOpt]}function O(t,e){let n=`[${u("default:")} `;if(void 0===t&&!e)return null;if(e)n+=e;else switch(typeof t){case"string":n+=`"${t}"`;break;case"object":n+=JSON.stringify(t);break;default:n+=t}return`${n}]`}l.help=function(){!function(){const e=t.getDemandedOptions(),n=t.getOptions();(Object.keys(n.alias)||[]).forEach(r=>{n.alias[r].forEach(i=>{v[i]&&l.describe(r,v[i]),i in e&&t.demandOption(r,e[i]),~n.boolean.indexOf(i)&&t.boolean(r),~n.count.indexOf(i)&&t.count(r),~n.string.indexOf(i)&&t.string(r),~n.normalize.indexOf(i)&&t.normalize(r),~n.array.indexOf(i)&&t.array(r),~n.number.indexOf(i)&&t.number(r)})})}();const e=s.basename(t.$0),r=t.getDemandedOptions(),i=t.getDemandedCommands(),o=t.getGroups(),a=t.getOptions();let c=[];c=(c=(c=(c=(c=c.concat(Object.keys(v))).concat(Object.keys(r))).concat(Object.keys(i))).concat(Object.keys(a.default))).filter(S),c=Object.keys(c.reduce((t,e)=>("_"!==e&&(t[e]=!0),t),{}));const p=k(),f=n(321)({width:p,wrap:!!p});if(!m)if(g.length)g.forEach(t=>{f.div(`${t[0].replace(/\$0/g,e)}`),t[1]&&f.div({text:`${t[1]}`,padding:[1,0,0,0]})}),f.div();else if(b.length){let t=null;t=i._?`${e} <${u("command")}>\n`:`${e} [${u("command")}]\n`,f.div(`${t}`)}if(b.length){f.div(u("Commands:"));const n=t.getContext(),r=n.commands.length?`${n.commands.join(" ")} `:"";!0===t.getParserConfiguration()["sort-commands"]&&(b=b.sort((t,e)=>t[0].localeCompare(e[0]))),b.forEach(t=>{const n=`${e} ${r}${t[0].replace(/^\$0 ?/,"")}`;f.span({text:n,padding:[0,2,0,2],width:D(b,p,`${e}${r}`)+4},{text:t[1]});const i=[];t[2]&&i.push(`[${u("default:").slice(0,-1)}]`),t[3]&&t[3].length&&i.push(`[${u("aliases:")} ${t[3].join(", ")}]`),i.length?f.div({text:i.join(" "),padding:[0,0,0,2],align:"right"}):f.div()}),f.div()}const h=(Object.keys(a.alias)||[]).concat(Object.keys(t.parsed.newAliases)||[]);if(c=c.filter(e=>!t.parsed.newAliases[e]&&h.every(t=>-1===(a.alias[t]||[]).indexOf(e))),o[E]||(o[E]=[]),function(t,e,n){let r=[],i=null;Object.keys(n).forEach(t=>{r=r.concat(n[t])}),t.forEach(t=>{(i=[t].concat(e[t])).some(t=>-1!==r.indexOf(t))||n[E].push(t)})}(c,a.alias,o),Object.keys(o).forEach(t=>{if(!o[t].length)return;const e=o[t].filter(S).map(t=>{if(~h.indexOf(t))return t;for(let e,n=0;void 0!==(e=h[n]);n++)if(~(a.alias[e]||[]).indexOf(t))return e;return t});if(e.length<1)return;f.div(u(t));const n=e.reduce((e,n)=>(e[n]=[n].concat(a.alias[n]||[]).map(e=>t===l.getPositionalGroupName()?e:(e.length>1?"--":"-")+e).join(", "),e),{});e.forEach(t=>{const e=n[t];let i=v[t]||"",o=null;~i.lastIndexOf("__yargsString__:")&&(i=u(i.substring("__yargsString__:".length))),~a.boolean.indexOf(t)&&(o=`[${u("boolean")}]`),~a.count.indexOf(t)&&(o=`[${u("count")}]`),~a.string.indexOf(t)&&(o=`[${u("string")}]`),~a.normalize.indexOf(t)&&(o=`[${u("string")}]`),~a.array.indexOf(t)&&(o=`[${u("array")}]`),~a.number.indexOf(t)&&(o=`[${u("number")}]`);const s=[o,t in r?`[${u("required")}]`:null,a.choices&&a.choices[t]?`[${u("choices:")} ${l.stringifiedValues(a.choices[t])}]`:null,O(a.default[t],a.defaultDescription[t])].filter(Boolean).join(" ");f.span({text:e,padding:[0,2,0,2],width:D(n,p)+4},i),s?f.div({text:s,padding:[0,0,0,2],align:"right"}):f.div()}),f.div()}),_.length&&(f.div(u("Examples:")),_.forEach(t=>{t[0]=t[0].replace(/\$0/g,e)}),_.forEach(t=>{""===t[1]?f.div({text:t[0],padding:[0,2,0,2]}):f.div({text:t[0],padding:[0,2,0,2],width:D(_,p)+4},{text:t[1]})}),f.div()),y){const t=y.replace(/\$0/g,e);f.div(`${t}\n`)}return f.toString().replace(/\s*$/,"")},l.showHelp=e=>{const n=t._getLoggerInstance();e||(e="error"),("function"==typeof e?e:n[e])(l.help())},l.functionDescription=t=>{return["(",t.name?r(t.name,"-"):u("generated-value"),")"].join("")},l.stringifiedValues=function(t,e){let n="";const r=e||", ",i=[].concat(t);return t&&i.length?(i.forEach(t=>{n.length&&(n+=r),n+=JSON.stringify(t)}),n):n};let C,A=null;return l.version=t=>{A=t},l.showVersion=()=>{t._getLoggerInstance().log(A)},l.reset=function(t){return f=null,d=!1,g=[],m=!1,y=void 0,_=[],b=[],v=o(v,(e,n)=>!t[e]),l},l.freeze=function(){(C={}).failMessage=f,C.failureOutput=d,C.usages=g,C.usageDisabled=m,C.epilog=y,C.examples=_,C.commands=b,C.descriptions=v},l.unfreeze=function(){f=C.failMessage,d=C.failureOutput,g=C.usages,m=C.usageDisabled,y=C.epilog,_=C.examples,b=C.commands,v=C.descriptions,C=void 0},l}},function(t,e,n){"use strict";t.exports=(t,e)=>(e=void 0===e?"_":e,t.replace(/([a-z\d])([A-Z])/g,`$1${e}$2`).replace(/([A-Z]+)([A-Z][a-z\d]+)/g,`$1${e}$2`).toLowerCase())},function(t,e,n){"use strict";const r=n(318),i=t=>"string"==typeof t?t.replace(r(),""):t;t.exports=i,t.exports.default=i},function(t,e,n){"use strict";t.exports=t=>{t=Object.assign({onlyFirst:!1},t);const e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t.onlyFirst?void 0:"g")}},function(t,e,n){"use strict";t.exports=t=>!Number.isNaN(t)&&(t>=4352&&(t<=4447||9001===t||9002===t||11904<=t&&t<=12871&&12351!==t||12880<=t&&t<=19903||19968<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65131||65281<=t&&t<=65376||65504<=t&&t<=65510||110592<=t&&t<=110593||127488<=t&&t<=127569||131072<=t&&t<=262141))},function(t,e,n){"use strict";t.exports=function(){return/\uD83C\uDFF4(?:\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74)\uDB40\uDC7F|\u200D\u2620\uFE0F)|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3]))|\uD83D\uDC69\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83D\uDC69\u200D[\u2695\u2696\u2708])\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC68(?:\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3])|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF9]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD70\uDD73-\uDD76\uDD7A\uDD7C-\uDDA2\uDDB0-\uDDB9\uDDC0-\uDDC2\uDDD0-\uDDFF])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF9]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD70\uDD73-\uDD76\uDD7A\uDD7C-\uDDA2\uDDB0-\uDDB9\uDDC0-\uDDC2\uDDD0-\uDDFF])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDD1-\uDDDD])/g}},function(t,e,n){var r=n(291),i=n(299),o=n(323),s={right:function(t,e){t=t.trim();var n="",i=r(t);i1&&r(n[0])>i&&(i=Math.min(Math.floor(.5*e.width),r(n[0])))}),n.forEach(function(t){var n=t.split("\t");e.div.apply(e,n.map(function(t,r){return{text:t.trim(),padding:e._measurePadding(t),width:0===r&&n.length>1?i:void 0}}))}),this.rows[this.rows.length-1]},u.prototype._colFromString=function(t){return{text:t,padding:this._measurePadding(t)}},u.prototype._measurePadding=function(t){var e=i(t);return[0,e.match(/\s*$/)[0].length,0,e.match(/^\s*/)[0].length]},u.prototype.toString=function(){var t=this,e=[];return t.rows.forEach(function(n,r){t.rowToString(n,e)}),(e=e.filter(function(t){return!t.hidden})).map(function(t){return t.text}).join("\n")},u.prototype.rowToString=function(t,e){var n,i,o,u,p=this,f=this._rasterize(t),h="";return f.forEach(function(f,d){h="",f.forEach(function(f,g){i="",o=t[g].width,u=p._negatePadding(t[g]),i+=f;for(var m=0;m0&&(h=p._renderInline(h,e[e.length-1]))}),e.push({text:h.replace(/ +$/,""),span:t.span})}),e},u.prototype._renderInline=function(t,e){var n=t.match(/^ */)[0].length,i=e.text,o=r(i.trimRight());return e.span?this.wrap?n{t=Object.assign({onlyFirst:!1},t);const e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t.onlyFirst?void 0:"g")}},function(t,e,n){"use strict";const r=n(291),i=n(299),o=n(324),s=new Set(["","›"]),a=t=>`${s.values().next().value}[${t}m`,c=(t,e,n)=>{const o=[...e];let a=!1,c=r(i(t[t.length-1]));for(const[e,i]of o.entries()){const u=r(i);if(c+u<=n?t[t.length-1]+=i:(t.push(i),c=0),s.has(i))a=!0;else if(a&&"m"===i){a=!1;continue}a||(c+=u)===n&&e0&&t.length>1&&(t[t.length-2]+=t.pop())},u=t=>{const e=t.split(" ");let n=e.length;for(;n>0&&!(r(e[n-1])>0);)n--;return n===e.length?t:e.slice(0,n).join(" ")+e.slice(n).join("")},l=(t,e,n={})=>{if(!1!==n.trim&&""===t.trim())return"";let i,l="",p="";const f=(t=>t.split(" ").map(t=>r(t)))(t);let h=[""];for(const[i,o]of t.split(" ").entries()){!1!==n.trim&&(h[h.length-1]=h[h.length-1].trimLeft());let t=r(h[h.length-1]);if(0!==i&&(t>=e&&(!1===n.wordWrap||!1===n.trim)&&(h.push(""),t=0),(t>0||!1===n.trim)&&(h[h.length-1]+=" ",t++)),n.hard&&f[i]>e){const n=e-t,r=1+Math.floor((f[i]-n-1)/e);Math.floor((f[i]-1)/e)e&&t>0&&f[i]>0){if(!1===n.wordWrap&&te&&!1===n.wordWrap?c(h,o,e):h[h.length-1]+=o}}!1!==n.trim&&(h=h.map(u)),l=h.join("\n");for(const[t,e]of[...l].entries()){if(p+=e,s.has(e)){const e=parseFloat(/\d[^m]*/.exec(l.slice(t,t+4)));i=39===e?null:e}const n=o.codes.get(Number(i));i&&n&&("\n"===l[t+1]?p+=a(n):"\n"===e&&(p+=a(i)))}return p};t.exports=(t,e,n)=>String(t).normalize().split("\n").map(t=>l(t,e,n)).join("\n")},function(t,e,n){"use strict";(function(t){const e=n(325),r=(t,n)=>(function(){const r=t.apply(e,arguments);return`[${r+n}m`}),i=(t,n)=>(function(){const r=t.apply(e,arguments);return`[${38+n};5;${r}m`}),o=(t,n)=>(function(){const r=t.apply(e,arguments);return`[${38+n};2;${r[0]};${r[1]};${r[2]}m`});Object.defineProperty(t,"exports",{enumerable:!0,get:function(){const t=new Map,n={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};n.color.grey=n.color.gray;for(const e of Object.keys(n)){const r=n[e];for(const e of Object.keys(r)){const i=r[e];n[e]={open:`[${i[0]}m`,close:`[${i[1]}m`},r[e]=n[e],t.set(i[0],i[1])}Object.defineProperty(n,e,{value:r,enumerable:!1}),Object.defineProperty(n,"codes",{value:t,enumerable:!1})}const s=t=>t,a=(t,e,n)=>[t,e,n];n.color.close="",n.bgColor.close="",n.color.ansi={ansi:r(s,0)},n.color.ansi256={ansi256:i(s,0)},n.color.ansi16m={rgb:o(a,0)},n.bgColor.ansi={ansi:r(s,10)},n.bgColor.ansi256={ansi256:i(s,10)},n.bgColor.ansi16m={rgb:o(a,10)};for(let t of Object.keys(e)){if("object"!=typeof e[t])continue;const s=e[t];"ansi16"===t&&(t="ansi"),"ansi16"in s&&(n.color.ansi[t]=r(s.ansi16,0),n.bgColor.ansi[t]=r(s.ansi16,10)),"ansi256"in s&&(n.color.ansi256[t]=i(s.ansi256,0),n.bgColor.ansi256[t]=i(s.ansi256,10)),"rgb"in s&&(n.color.ansi16m[t]=o(s.rgb,0),n.bgColor.ansi16m[t]=o(s.rgb,10))}return n}})}).call(this,n(132)(t))},function(t,e,n){var r=n(300),i=n(327),o={};Object.keys(r).forEach(function(t){o[t]={},Object.defineProperty(o[t],"channels",{value:r[t].channels}),Object.defineProperty(o[t],"labels",{value:r[t].labels});var e=i(t);Object.keys(e).forEach(function(n){var r=e[n];o[t][n]=function(t){var e=function(e){if(null==e)return e;arguments.length>1&&(e=Array.prototype.slice.call(arguments));var n=t(e);if("object"==typeof n)for(var r=n.length,i=0;i1&&(e=Array.prototype.slice.call(arguments)),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}(r)})}),t.exports=o},function(t,e,n){"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},function(t,e,n){var r=n(300);function i(t){var e=function(){for(var t={},e=Object.keys(r),n=e.length,i=0;ir._.max)&&(ir._.max&&(void 0!==r._.maxMsg?e.fail(r._.maxMsg?r._.maxMsg.replace(/\$0/g,i).replace(/\$1/,r._.max):null):e.fail(a("Too many non-option arguments: got %s, maximum of %s",i,r._.max))))},positionalCount:function(t,n){n{n.hasOwnProperty(t)&&void 0!==n[t]||((i=i||{})[t]=r[t])}),i){const t=[];Object.keys(i).forEach(e=>{const n=i[e];n&&t.indexOf(n)<0&&t.push(n)});const n=t.length?`\n${t.join("\n")}`:"";e.fail(c("Missing required argument: %s","Missing required arguments: %s",Object.keys(i).length,Object.keys(i).join(", ")+n))}},unknownArguments:function(n,r,i){const s=t.getCommandInstance().getCommands(),a=[],u=t.getContext();Object.keys(n).forEach(e=>{-1!==o.indexOf(e)||i.hasOwnProperty(e)||t._getParseContext().hasOwnProperty(e)||r.hasOwnProperty(e)||a.push(e)}),s.length>0&&n._.slice(u.commands.length).forEach(t=>{-1===s.indexOf(t)&&a.push(t)}),a.length>0&&e.fail(c("Unknown argument: %s","Unknown arguments: %s",a.length,a.join(", ")))},limitedChoices:function(n){const r=t.getOptions(),i={};if(!Object.keys(r.choices).length)return;Object.keys(n).forEach(t=>{-1===o.indexOf(t)&&r.choices.hasOwnProperty(t)&&[].concat(n[t]).forEach(e=>{-1===r.choices[t].indexOf(e)&&void 0!==e&&(i[t]=(i[t]||[]).concat(e))})});const s=Object.keys(i);if(!s.length)return;let c=a("Invalid values:");s.forEach(t=>{c+=`\n ${a("Argument: %s, Given: %s, Choices: %s",t,e.stringifiedValues(i[t]),e.stringifiedValues(r.choices[t]))}`}),e.fail(c)}};let l=[];u.check=function(t,e){l.push({func:t,global:e})},u.customChecks=function(t,n){for(let r,i=0;void 0!==(r=l[i]);i++){const i=r.func;let o=null;try{o=i(t,n)}catch(t){e.fail(t.message?t.message:t,t);continue}o?("string"==typeof o||o instanceof Error)&&e.fail(o.toString(),o):e.fail(a("Argument check failed: %s",i.toString()))}};let p={};u.implies=function(e,n){r(" [array|number|string]",[e,n],arguments.length),"object"==typeof e?Object.keys(e).forEach(t=>{u.implies(t,e[t])}):(t.global(e),p[e]||(p[e]=[]),Array.isArray(n)?n.forEach(t=>u.implies(e,t)):p[e].push(n))},u.getImplied=function(){return p},u.implications=function(t){const n=[];if(Object.keys(p).forEach(e=>{const r=e;(p[e]||[]).forEach(e=>{let i,o=r;const s=e;i=Number(o),"number"==typeof(o=isNaN(i)?o:i)?o=t._.length>=o:o.match(/^--no-.+/)?(o=o.match(/^--no-(.+)/)[1],o=!t[o]):o=t[o],i=Number(e),"number"==typeof(e=isNaN(i)?e:i)?e=t._.length>=e:e.match(/^--no-.+/)?(e=e.match(/^--no-(.+)/)[1],e=!t[e]):e=t[e],o&&!e&&n.push(` ${r} -> ${s}`)})}),n.length){let t=`${a("Implications failed:")}\n`;n.forEach(e=>{t+=e}),e.fail(t)}};let f,h={};return u.conflicts=function(e,n){r(" [array|string]",[e,n],arguments.length),"object"==typeof e?Object.keys(e).forEach(t=>{u.conflicts(t,e[t])}):(t.global(e),h[e]||(h[e]=[]),Array.isArray(n)?n.forEach(t=>u.conflicts(e,t)):h[e].push(n))},u.getConflicting=()=>h,u.conflicting=function(t){Object.keys(t).forEach(n=>{h[n]&&h[n].forEach(r=>{r&&void 0!==t[n]&&void 0!==t[r]&&e.fail(a("Arguments %s and %s are mutually exclusive",n,r))})})},u.recommendCommands=function(t,r){const i=n(329);r=r.sort((t,e)=>e.length-t.length);let o=null,s=1/0;for(let e,n=0;void 0!==(e=r[n]);n++){const n=i(t,e);n<=3&&n!t[e]),h=i(h,(e,n)=>!t[e]),l=l.filter(t=>t.global),u},u.freeze=function(){(f={}).implied=p,f.checks=l,f.conflicting=h},u.unfreeze=function(){p=f.implied,l=f.checks,h=f.conflicting,f=void 0},u}},function(t,e,n){"use strict";t.exports=function(t,e){if(0===t.length)return e.length;if(0===e.length)return t.length;const n=[];let r,i;for(r=0;r<=e.length;r++)n[r]=[r];for(i=0;i<=t.length;i++)n[0][i]=i;for(r=1;r<=e.length;r++)for(i=1;i<=t.length;i++)e.charAt(r-1)===t.charAt(i-1)?n[r][i]=n[r-1][i-1]:n[r][i]=Math.min(n[r-1][i-1]+1,Math.min(n[r][i-1]+1,n[r-1][i]+1));return n[e.length][t.length]}},function(t,e,n){var r=n(5),i=n(1),o=n(3);function s(t){t=t||{},this.directory=t.directory||"./locales",this.updateFiles="boolean"!=typeof t.updateFiles||t.updateFiles,this.locale=t.locale||"en",this.fallbackToLanguage="boolean"!=typeof t.fallbackToLanguage||t.fallbackToLanguage,this.cache={},this.writeQueue=[]}s.prototype.__=function(){if("string"!=typeof arguments[0])return this._taggedLiteral.apply(this,arguments);var t=Array.prototype.slice.call(arguments),e=t.shift(),n=function(){};return"function"==typeof t[t.length-1]&&(n=t.pop()),n=n||function(){},this.cache[this.locale]||this._readLocaleFile(),!this.cache[this.locale][e]&&this.updateFiles?(this.cache[this.locale][e]=e,this._enqueueWrite([this.directory,this.locale,n])):n(),o.format.apply(o,[this.cache[this.locale][e]||e].concat(t))},s.prototype._taggedLiteral=function(t){var e=arguments,n="";return t.forEach(function(t,r){var i=e[r+1];n+=t,void 0!==i&&(n+="%s")}),this.__.apply(null,[n].concat([].slice.call(arguments,1)))},s.prototype._enqueueWrite=function(t){this.writeQueue.push(t),1===this.writeQueue.length&&this._processWriteQueue()},s.prototype._processWriteQueue=function(){var t=this,e=this.writeQueue[0],n=e[0],i=e[1],o=e[2],s=this._resolveLocaleFile(n,i),a=JSON.stringify(this.cache[i],null,2);r.writeFile(s,a,"utf-8",function(e){t.writeQueue.shift(),t.writeQueue.length>0&&t._processWriteQueue(),o(e)})},s.prototype._readLocaleFile=function(){var t={},e=this._resolveLocaleFile(this.directory,this.locale);try{t=JSON.parse(r.readFileSync(e,"utf-8"))}catch(n){if(n instanceof SyntaxError&&(n.message="syntax error in "+e),"ENOENT"!==n.code)throw n;t={}}this.cache[this.locale]=t},s.prototype._resolveLocaleFile=function(t,e){var n=i.resolve(t,"./",e+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~e.lastIndexOf("_")){var r=i.resolve(t,"./",e.split("_")[0]+".json");this._fileExistsSync(r)&&(n=r)}return n},s.prototype._fileExistsSync=function(t){try{return r.statSync(t).isFile()}catch(t){return!1}},s.prototype.__n=function(){var t=Array.prototype.slice.call(arguments),e=t.shift(),n=t.shift(),r=t.shift(),i=function(){};"function"==typeof t[t.length-1]&&(i=t.pop()),this.cache[this.locale]||this._readLocaleFile();var s=1===r?e:n;this.cache[this.locale][e]&&(s=this.cache[this.locale][e][1===r?"one":"other"]),!this.cache[this.locale][e]&&this.updateFiles?(this.cache[this.locale][e]={one:e,other:n},this._enqueueWrite([this.directory,this.locale,i])):i();var a=[s];return~s.indexOf("%d")&&a.push(r),o.format.apply(o,a.concat(t))},s.prototype.setLocale=function(t){this.locale=t},s.prototype.getLocale=function(){return this.locale},s.prototype.updateLocale=function(t){for(var e in this.cache[this.locale]||this._readLocaleFile(),t)this.cache[this.locale][e]=t[e]},t.exports=function(t){var e=new s(t);for(var n in e)"function"==typeof e[n]&&(e[n]=e[n].bind(e));return e}},function(t,e,n){"use strict";const r=n(5),i=n(1),o=n(133);let s=[];t.exports=function t(e,a){let c={};if(e.hasOwnProperty("extends")){if("string"!=typeof e.extends)return c;const u=/\.json|\..*rc$/.test(e.extends);let l=null;if(u)l=function(t,e){return i.resolve(t,e)}(a,e.extends);else try{l=n(301).resolve(e.extends)}catch(t){}if(!l&&!u)return e;!function(t){if(s.indexOf(t)>-1)throw new o(`Circular extended configurations: '${t}'.`)}(l),s.push(l),c=u?JSON.parse(r.readFileSync(l,"utf8")):n(301)(e.extends),delete e.extends,c=t(c,i.dirname(l))}return s=[],Object.assign({},c,e)}},function(t,e,n){"use strict";t.exports=function(t){if(void 0===t&&(t=2),t>=Error.stackTraceLimit)throw new TypeError("getCallerFile(position) requires position be less then Error.stackTraceLimit but position was: `"+t+"` and Error.stackTraceLimit was: `"+Error.stackTraceLimit+"`");var e=Error.prepareStackTrace;Error.prepareStackTrace=function(t,e){return e};var n=(new Error).stack;if(Error.prepareStackTrace=e,null!==n&&"object"==typeof n)return n[t]?n[t].getFileName():void 0}},function(t,e,n){"use strict";const r=n(1),i=n(334);t.exports=(t,e={})=>{const n=r.resolve(e.cwd||""),{root:o}=r.parse(n),s=[].concat(t);return new Promise(t=>{!function e(n){i(s,{cwd:n}).then(i=>{i?t(r.join(n,i)):n===o?t(null):e(r.dirname(n))})}(n)})},t.exports.sync=(t,e={})=>{let n=r.resolve(e.cwd||"");const{root:o}=r.parse(n),s=[].concat(t);for(;;){const t=i.sync(s,{cwd:n});if(t)return r.join(n,t);if(n===o)return null;n=r.dirname(n)}}},function(t,e,n){"use strict";const r=n(1),i=n(335),o=n(336);t.exports=(t,e)=>(e=Object.assign({cwd:process.cwd()},e),o(t,t=>i(r.resolve(e.cwd,t)),e)),t.exports.sync=(t,e)=>{e=Object.assign({cwd:process.cwd()},e);for(const n of t)if(i.sync(r.resolve(e.cwd,n)))return n}},function(t,e,n){"use strict";const r=n(5);t.exports=t=>new Promise(e=>{r.access(t,t=>{e(!t)})}),t.exports.sync=t=>{try{return r.accessSync(t),!0}catch(t){return!1}}},function(t,e,n){"use strict";const r=n(337);class i extends Error{constructor(t){super(),this.value=t}}const o=(t,e)=>Promise.resolve(t).then(e),s=t=>Promise.all(t).then(t=>!0===t[1]&&Promise.reject(new i(t[0])));t.exports=(t,e,n)=>{n=Object.assign({concurrency:1/0,preserveOrder:!0},n);const a=r(n.concurrency),c=[...t].map(t=>[t,a(o,t,e)]),u=r(n.preserveOrder?1:1/0);return Promise.all(c.map(t=>u(s,t))).then(()=>{}).catch(t=>t instanceof i?t.value:Promise.reject(t))}},function(t,e,n){"use strict";const r=n(338),i=t=>{if(t<1)throw new TypeError("Expected `concurrency` to be a number from 1 and up");const e=[];let n=0;const i=()=>{n--,e.length>0&&e.shift()()},o=(t,e,...o)=>{n++;const s=r(t,...o);e(s),s.then(i,i)},s=(r,...i)=>new Promise(s=>((r,i,...s)=>{nn},pendingCount:{get:()=>e.length}}),s};t.exports=i,t.exports.default=i},function(t,e,n){"use strict";const r=(t,...e)=>new Promise(n=>{n(t(...e))});t.exports=r,t.exports.default=r},function(t,e,n){t.exports=function(t){var e=(t=t||n(340)).main;return e&&function(t){return/\\iisnode\\/.test(t.filename)}(e)?function(t){return t.children.length?t.children[0].filename:t.filename}(e):e?e.filename:process.cwd()}},function(t,e){function n(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id=340},function(t,e,n){"use strict";const r=n(342),i=n(367),o=n(370),s={spawn:!0},a="en_US";function c(t=process.env){return t.LC_ALL||t.LC_MESSAGES||t.LANG||t.LANGUAGE}function u(t){return c(t.split("\n").reduce((t,e)=>{const[n,r]=e.split("=");return t[n]=r.replace(/^"|"$/g,""),t},{}))}function l(t){return t&&t.replace(/[.:].*/,"")}function p(t,e=""){return e.includes(t)?t:a}function f(){return p(r.sync("defaults",["read","-globalDomain","AppleLocale"]).stdout,r.sync("locale",["-a"]).stdout)}function h(){return"darwin"===process.platform?Promise.all([r.stdout("defaults",["read","-globalDomain","AppleLocale"]),r.stdout("locale",["-a"])]).then(t=>p(t[0],t[1])):r.stdout("locale").then(t=>l(u(t)))}t.exports=o((t=s)=>{const e=c();let n;return(n=e||!1===t.spawn?Promise.resolve(l(e)):"win32"===process.platform?r.stdout("wmic",["os","get","locale"]).then(t=>{const e=parseInt(t.replace("Locale",""),16);return i.from(e)}):h()).then(t=>t||a).catch(()=>a)}),t.exports.sync=o((t=s)=>{const e=c();let n;if(e||!1===t.spawn)n=l(e);else try{n="win32"===process.platform?function(){const{stdout:t}=r.sync("wmic",["os","get","locale"]),e=parseInt(t.replace("Locale",""),16);return i.from(e)}():"darwin"===process.platform?f():l(u(r.sync("locale").stdout))}catch(t){}return n||a})},function(t,e,n){"use strict";const r=n(1),i=n(302),o=n(343),s=n(357),a=n(358),c=n(47),u=n(359),l=n(362),p=n(363),f=n(365),h=n(366),d=1e7;function g(t,e,n){let i;return(n=Object.assign({extendEnv:!0,env:{}},n)).extendEnv&&(n.env=Object.assign({},process.env,n.env)),!0===n.__winShell?(delete n.__winShell,i={command:t,args:e,options:n,file:t,original:{cmd:t,args:e}}):i=o._parse(t,e,n),(n=Object.assign({maxBuffer:d,buffer:!0,stripEof:!0,preferLocal:!0,localDir:i.options.cwd||process.cwd(),encoding:"utf8",reject:!0,cleanup:!0},i.options)).stdio=h(n),n.preferLocal&&(n.env=a.env(Object.assign({},n,{cwd:n.localDir}))),n.detached&&(n.cleanup=!1),"win32"===process.platform&&"cmd.exe"===r.basename(i.command)&&i.args.unshift("/q"),{cmd:i.command,args:i.args,opts:n,parsed:i}}function m(t,e){return e&&t.stripEof&&(e=s(e)),e}function _(t,e,n){let r="/bin/sh",i=["-c",e];return n=Object.assign({},n),"win32"===process.platform&&(n.__winShell=!0,r=process.env.comspec||"cmd.exe",i=["/s","/c",`"${e}"`],n.windowsVerbatimArguments=!0),n.shell&&(r=n.shell,delete n.shell),t(r,i,n)}function b(t,e,{encoding:n,buffer:r,maxBuffer:i}){if(!t[e])return null;let o;return(o=r?n?u(t[e],{encoding:n,maxBuffer:i}):u.buffer(t[e],{maxBuffer:i}):new Promise((n,r)=>{t[e].once("end",n).once("error",r)})).catch(t=>{throw t.stream=e,t.message=`${e} ${t.message}`,t})}function y(t,e){const{stdout:n,stderr:r}=t;let i=t.error;const{code:o,signal:s}=t,{parsed:a,joinedCmd:c}=e,u=e.timedOut||!1;if(!i){let t="";Array.isArray(a.opts.stdio)?("inherit"!==a.opts.stdio[2]&&(t+=t.length>0?r:`\n${r}`),"inherit"!==a.opts.stdio[1]&&(t+=`\n${n}`)):"inherit"!==a.opts.stdio&&(t=`\n${r}${n}`),(i=new Error(`Command failed: ${c}${t}`)).code=o<0?f(o):o}return i.stdout=n,i.stderr=r,i.failed=!0,i.signal=s||null,i.cmd=c,i.timedOut=u,i}function v(t,e){let n=t;return Array.isArray(e)&&e.length>0&&(n+=" "+e.join(" ")),n}t.exports=(t,e,n)=>{const r=g(t,e,n),{encoding:s,buffer:a,maxBuffer:u}=r.opts,f=v(t,e);let h,d;try{h=i.spawn(r.cmd,r.args,r.opts)}catch(t){return Promise.reject(t)}r.opts.cleanup&&(d=p(()=>{h.kill()}));let _=null,x=!1;const w=()=>{_&&(clearTimeout(_),_=null),d&&d()};r.opts.timeout>0&&(_=setTimeout(()=>{_=null,x=!0,h.kill(r.opts.killSignal)},r.opts.timeout));const k=new Promise(t=>{h.on("exit",(e,n)=>{w(),t({code:e,signal:n})}),h.on("error",e=>{w(),t({error:e})}),h.stdin&&h.stdin.on("error",e=>{w(),t({error:e})})});function E(){h.stdout&&h.stdout.destroy(),h.stderr&&h.stderr.destroy()}const D=()=>l(Promise.all([k,b(h,"stdout",{encoding:s,buffer:a,maxBuffer:u}),b(h,"stderr",{encoding:s,buffer:a,maxBuffer:u})]).then(t=>{const e=t[0];if(e.stdout=t[1],e.stderr=t[2],e.error||0!==e.code||null!==e.signal){const t=y(e,{joinedCmd:f,parsed:r,timedOut:x});if(t.killed=t.killed||h.killed,!r.opts.reject)return t;throw t}return{stdout:m(r.opts,e.stdout),stderr:m(r.opts,e.stderr),code:0,failed:!1,killed:!1,signal:null,cmd:f,timedOut:!1}}),E);return o._enoent.hookChildProcess(h,r.parsed),function(t,e){null!=e&&(c(e)?e.pipe(t.stdin):t.stdin.end(e))}(h,r.opts.input),h.then=(t,e)=>D().then(t,e),h.catch=t=>D().catch(t),h},t.exports.stdout=(...e)=>t.exports(...e).then(t=>t.stdout),t.exports.stderr=(...e)=>t.exports(...e).then(t=>t.stderr),t.exports.shell=(e,n)=>_(t.exports,e,n),t.exports.sync=(t,e,n)=>{const r=g(t,e,n),o=v(t,e);if(c(r.opts.input))throw new TypeError("The `input` option cannot be a stream in sync mode");const s=i.spawnSync(r.cmd,r.args,r.opts);if(s.code=s.status,s.error||0!==s.status||null!==s.signal){const t=y(s,{joinedCmd:o,parsed:r});if(!r.opts.reject)return t;throw t}return{stdout:m(r.opts,s.stdout),stderr:m(r.opts,s.stderr),code:0,failed:!1,signal:null,cmd:o,timedOut:!1}},t.exports.shellSync=(e,n)=>_(t.exports.sync,e,n)},function(t,e,n){"use strict";const r=n(302),i=n(344),o=n(356);function s(t,e,n){const s=i(t,e,n),a=r.spawn(s.command,s.args,s.options);return o.hookChildProcess(a,s),a}t.exports=s,t.exports.spawn=s,t.exports.sync=function(t,e,n){const s=i(t,e,n),a=r.spawnSync(s.command,s.args,s.options);return a.error=a.error||o.verifyENOENTSync(a.status,s),a},t.exports._parse=i,t.exports._enoent=o},function(t,e,n){"use strict";const r=n(1),i=n(345),o=n(346),s=n(351),a=n(352),c=n(355),u="win32"===process.platform,l=/\.(?:com|exe)$/i,p=/node_modules[\\\/].bin[\\\/][^\\\/]+\.cmd$/i,f=i(()=>c.satisfies(process.version,"^4.8.0 || ^5.7.0 || >= 6.0.0",!0))||!1;function h(t){if(!u)return t;const e=function(t){t.file=o(t);const e=t.file&&a(t.file);return e?(t.args.unshift(t.file),t.command=e,o(t)):t.file}(t),n=!l.test(e);if(t.options.forceShell||n){const n=p.test(e);t.command=r.normalize(t.command),t.command=s.command(t.command),t.args=t.args.map(t=>s.argument(t,n));const i=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${i}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}t.exports=function(t,e,n){e&&!Array.isArray(e)&&(n=e,e=null);const r={command:t,args:e=e?e.slice(0):[],options:n=Object.assign({},n),file:void 0,original:{command:t,args:e}};return n.shell?function(t){if(f)return t;const e=[t.command].concat(t.args).join(" ");return u?(t.command="string"==typeof t.options.shell?t.options.shell:process.env.comspec||"cmd.exe",t.args=["/d","/s","/c",`"${e}"`],t.options.windowsVerbatimArguments=!0):("string"==typeof t.options.shell?t.command=t.options.shell:"android"===process.platform?t.command="/system/bin/sh":t.command="/bin/sh",t.args=["-c",e]),t}(r):h(r)}},function(t,e,n){"use strict";t.exports=function(t){try{return t()}catch(t){}}},function(t,e,n){"use strict";const r=n(1),i=n(347),o=n(303)();function s(t,e){const n=process.cwd(),s=null!=t.options.cwd;if(s)try{process.chdir(t.options.cwd)}catch(t){}let a;try{a=i.sync(t.command,{path:(t.options.env||process.env)[o],pathExt:e?r.delimiter:void 0})}catch(t){}finally{process.chdir(n)}return a&&(a=r.resolve(s?t.options.cwd:"",a)),a}t.exports=function(t){return s(t)||s(t,!0)}},function(t,e,n){t.exports=u,u.sync=function(t,e){for(var n=c(t,e=e||{}),r=n.env,o=n.ext,u=n.extExe,l=[],p=0,f=r.length;p&|;, *?])/g;t.exports.command=function(t){return t=t.replace(r,"^$1")},t.exports.argument=function(t,e){return t=(t=`"${t=(t=(t=`${t}`).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(r,"^$1"),e&&(t=t.replace(r,"^$1")),t}},function(t,e,n){"use strict";const r=n(5),i=n(353);t.exports=function(t){let e,n;Buffer.alloc?e=Buffer.alloc(150):(e=new Buffer(150)).fill(0);try{n=r.openSync(t,"r"),r.readSync(n,e,0,150,0),r.closeSync(n)}catch(t){}return i(e.toString())}},function(t,e,n){"use strict";var r=n(354);t.exports=function(t){var e=t.match(r);if(!e)return null;var n=e[0].replace(/#! ?/,"").split(" "),i=n[0].split("/").pop(),o=n[1];return"env"===i?o:i+(o?" "+o:"")}},function(t,e,n){"use strict";t.exports=/^#!.*/},function(t,e){var n;e=t.exports=V,n="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var t=Array.prototype.slice.call(arguments,0);t.unshift("SEMVER"),console.log.apply(console,t)}:function(){},e.SEMVER_SPEC_VERSION="2.0.0";var r=256,i=Number.MAX_SAFE_INTEGER||9007199254740991,o=e.re=[],s=e.src=[],a=0,c=a++;s[c]="0|[1-9]\\d*";var u=a++;s[u]="[0-9]+";var l=a++;s[l]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var p=a++;s[p]="("+s[c]+")\\.("+s[c]+")\\.("+s[c]+")";var f=a++;s[f]="("+s[u]+")\\.("+s[u]+")\\.("+s[u]+")";var h=a++;s[h]="(?:"+s[c]+"|"+s[l]+")";var d=a++;s[d]="(?:"+s[u]+"|"+s[l]+")";var g=a++;s[g]="(?:-("+s[h]+"(?:\\."+s[h]+")*))";var m=a++;s[m]="(?:-?("+s[d]+"(?:\\."+s[d]+")*))";var _=a++;s[_]="[0-9A-Za-z-]+";var b=a++;s[b]="(?:\\+("+s[_]+"(?:\\."+s[_]+")*))";var y=a++,v="v?"+s[p]+s[g]+"?"+s[b]+"?";s[y]="^"+v+"$";var x="[v=\\s]*"+s[f]+s[m]+"?"+s[b]+"?",w=a++;s[w]="^"+x+"$";var k=a++;s[k]="((?:<|>)?=?)";var E=a++;s[E]=s[u]+"|x|X|\\*";var D=a++;s[D]=s[c]+"|x|X|\\*";var S=a++;s[S]="[v=\\s]*("+s[D]+")(?:\\.("+s[D]+")(?:\\.("+s[D]+")(?:"+s[g]+")?"+s[b]+"?)?)?";var O=a++;s[O]="[v=\\s]*("+s[E]+")(?:\\.("+s[E]+")(?:\\.("+s[E]+")(?:"+s[m]+")?"+s[b]+"?)?)?";var C=a++;s[C]="^"+s[k]+"\\s*"+s[S]+"$";var A=a++;s[A]="^"+s[k]+"\\s*"+s[O]+"$";var I=a++;s[I]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var T=a++;s[T]="(?:~>?)";var P=a++;s[P]="(\\s*)"+s[T]+"\\s+",o[P]=new RegExp(s[P],"g");var B=a++;s[B]="^"+s[T]+s[S]+"$";var F=a++;s[F]="^"+s[T]+s[O]+"$";var j=a++;s[j]="(?:\\^)";var L=a++;s[L]="(\\s*)"+s[j]+"\\s+",o[L]=new RegExp(s[L],"g");var M=a++;s[M]="^"+s[j]+s[S]+"$";var N=a++;s[N]="^"+s[j]+s[O]+"$";var z=a++;s[z]="^"+s[k]+"\\s*("+x+")$|^$";var R=a++;s[R]="^"+s[k]+"\\s*("+v+")$|^$";var U=a++;s[U]="(\\s*)"+s[k]+"\\s*("+x+"|"+s[S]+")",o[U]=new RegExp(s[U],"g");var G=a++;s[G]="^\\s*("+s[S]+")\\s+-\\s+("+s[S]+")\\s*$";var H=a++;s[H]="^\\s*("+s[O]+")\\s+-\\s+("+s[O]+")\\s*$";var $=a++;s[$]="(<|>)?=?\\s*\\*";for(var W=0;W<35;W++)n(W,s[W]),o[W]||(o[W]=new RegExp(s[W]));function q(t,e){if(e&&"object"==typeof e||(e={loose:!!e,includePrerelease:!1}),t instanceof V)return t;if("string"!=typeof t)return null;if(t.length>r)return null;if(!(e.loose?o[w]:o[y]).test(t))return null;try{return new V(t,e)}catch(t){return null}}function V(t,e){if(e&&"object"==typeof e||(e={loose:!!e,includePrerelease:!1}),t instanceof V){if(t.loose===e.loose)return t;t=t.version}else if("string"!=typeof t)throw new TypeError("Invalid Version: "+t);if(t.length>r)throw new TypeError("version is longer than "+r+" characters");if(!(this instanceof V))return new V(t,e);n("SemVer",t,e),this.options=e,this.loose=!!e.loose;var s=t.trim().match(e.loose?o[w]:o[y]);if(!s)throw new TypeError("Invalid Version: "+t);if(this.raw=t,this.major=+s[1],this.minor=+s[2],this.patch=+s[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");s[4]?this.prerelease=s[4].split(".").map(function(t){if(/^[0-9]+$/.test(t)){var e=+t;if(e>=0&&e=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}e&&(this.prerelease[0]===e?isNaN(this.prerelease[1])&&(this.prerelease=[e,0]):this.prerelease=[e,0]);break;default:throw new Error("invalid increment argument: "+t)}return this.format(),this.raw=this.version,this},e.inc=function(t,e,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new V(t,n).inc(e,r).version}catch(t){return null}},e.diff=function(t,e){if(K(t,e))return null;var n=q(t),r=q(e),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},e.compareIdentifiers=Z;var Y=/^[0-9]+$/;function Z(t,e){var n=Y.test(t),r=Y.test(e);return n&&r&&(t=+t,e=+e),t===e?0:n&&!r?-1:r&&!n?1:t0}function J(t,e,n){return X(t,e,n)<0}function K(t,e,n){return 0===X(t,e,n)}function tt(t,e,n){return 0!==X(t,e,n)}function et(t,e,n){return X(t,e,n)>=0}function nt(t,e,n){return X(t,e,n)<=0}function rt(t,e,n,r){switch(e){case"===":return"object"==typeof t&&(t=t.version),"object"==typeof n&&(n=n.version),t===n;case"!==":return"object"==typeof t&&(t=t.version),"object"==typeof n&&(n=n.version),t!==n;case"":case"=":case"==":return K(t,n,r);case"!=":return tt(t,n,r);case">":return Q(t,n,r);case">=":return et(t,n,r);case"<":return J(t,n,r);case"<=":return nt(t,n,r);default:throw new TypeError("Invalid operator: "+e)}}function it(t,e){if(e&&"object"==typeof e||(e={loose:!!e,includePrerelease:!1}),t instanceof it){if(t.loose===!!e.loose)return t;t=t.value}if(!(this instanceof it))return new it(t,e);n("comparator",t,e),this.options=e,this.loose=!!e.loose,this.parse(t),this.semver===ot?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}e.rcompareIdentifiers=function(t,e){return Z(e,t)},e.major=function(t,e){return new V(t,e).major},e.minor=function(t,e){return new V(t,e).minor},e.patch=function(t,e){return new V(t,e).patch},e.compare=X,e.compareLoose=function(t,e){return X(t,e,!0)},e.rcompare=function(t,e,n){return X(e,t,n)},e.sort=function(t,n){return t.sort(function(t,r){return e.compare(t,r,n)})},e.rsort=function(t,n){return t.sort(function(t,r){return e.rcompare(t,r,n)})},e.gt=Q,e.lt=J,e.eq=K,e.neq=tt,e.gte=et,e.lte=nt,e.cmp=rt,e.Comparator=it;var ot={};function st(t,e){if(e&&"object"==typeof e||(e={loose:!!e,includePrerelease:!1}),t instanceof st)return t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease?t:new st(t.raw,e);if(t instanceof it)return new st(t.value,e);if(!(this instanceof st))return new st(t,e);if(this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease,this.raw=t,this.set=t.split(/\s*\|\|\s*/).map(function(t){return this.parseRange(t.trim())},this).filter(function(t){return t.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+t);this.format()}function at(t){return!t||"x"===t.toLowerCase()||"*"===t}function ct(t,e,n,r,i,o,s,a,c,u,l,p,f){return((e=at(n)?"":at(r)?">="+n+".0.0":at(i)?">="+n+"."+r+".0":">="+e)+" "+(a=at(c)?"":at(u)?"<"+(+c+1)+".0.0":at(l)?"<"+c+"."+(+u+1)+".0":p?"<="+c+"."+u+"."+l+"-"+p:"<="+a)).trim()}function ut(t,e,r){for(var i=0;i0){var o=t[i].semver;if(o.major===e.major&&o.minor===e.minor&&o.patch===e.patch)return!0}return!1}return!0}function lt(t,e,n){try{e=new st(e,n)}catch(t){return!1}return e.test(t)}function pt(t,e,n,r){var i,o,s,a,c;switch(t=new V(t,r),e=new st(e,r),n){case">":i=Q,o=nt,s=J,a=">",c=">=";break;case"<":i=J,o=et,s=Q,a="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(lt(t,e,r))return!1;for(var u=0;u=0.0.0")),p=p||t,f=f||t,i(t.semver,p.semver,r)?p=t:s(t.semver,f.semver,r)&&(f=t)}),p.operator===a||p.operator===c)return!1;if((!f.operator||f.operator===a)&&o(t,f.semver))return!1;if(f.operator===c&&s(t,f.semver))return!1}return!0}it.prototype.parse=function(t){var e=this.options.loose?o[z]:o[R],n=t.match(e);if(!n)throw new TypeError("Invalid comparator: "+t);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new V(n[2],this.options.loose):this.semver=ot},it.prototype.toString=function(){return this.value},it.prototype.test=function(t){return n("Comparator.test",t,this.options.loose),this.semver===ot||("string"==typeof t&&(t=new V(t,this.options)),rt(t,this.operator,this.semver,this.options))},it.prototype.intersects=function(t,e){if(!(t instanceof it))throw new TypeError("a Comparator is required");var n;if(e&&"object"==typeof e||(e={loose:!!e,includePrerelease:!1}),""===this.operator)return n=new st(t.value,e),lt(this.value,n,e);if(""===t.operator)return n=new st(this.value,e),lt(t.semver,n,e);var r=!(">="!==this.operator&&">"!==this.operator||">="!==t.operator&&">"!==t.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==t.operator&&"<"!==t.operator),o=this.semver.version===t.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==t.operator&&"<="!==t.operator),a=rt(this.semver,"<",t.semver,e)&&(">="===this.operator||">"===this.operator)&&("<="===t.operator||"<"===t.operator),c=rt(this.semver,">",t.semver,e)&&("<="===this.operator||"<"===this.operator)&&(">="===t.operator||">"===t.operator);return r||i||o&&s||a||c},e.Range=st,st.prototype.format=function(){return this.range=this.set.map(function(t){return t.join(" ").trim()}).join("||").trim(),this.range},st.prototype.toString=function(){return this.range},st.prototype.parseRange=function(t){var e=this.options.loose;t=t.trim();var r=e?o[H]:o[G];t=t.replace(r,ct),n("hyphen replace",t),t=t.replace(o[U],"$1$2$3"),n("comparator trim",t,o[U]),t=(t=(t=t.replace(o[P],"$1~")).replace(o[L],"$1^")).split(/\s+/).join(" ");var i=e?o[z]:o[R],s=t.split(" ").map(function(t){return function(t,e){return n("comp",t,e),t=function(t,e){return t.trim().split(/\s+/).map(function(t){return function(t,e){n("caret",t,e);var r=e.loose?o[N]:o[M];return t.replace(r,function(e,r,i,o,s){var a;return n("caret",t,e,r,i,o,s),at(r)?a="":at(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":at(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a})}(t,e)}).join(" ")}(t,e),n("caret",t),t=function(t,e){return t.trim().split(/\s+/).map(function(t){return function(t,e){var r=e.loose?o[F]:o[B];return t.replace(r,function(e,r,i,o,s){var a;return n("tilde",t,e,r,i,o,s),at(r)?a="":at(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":at(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a})}(t,e)}).join(" ")}(t,e),n("tildes",t),t=function(t,e){return n("replaceXRanges",t,e),t.split(/\s+/).map(function(t){return function(t,e){t=t.trim();var r=e.loose?o[A]:o[C];return t.replace(r,function(e,r,i,o,s,a){n("xRange",t,e,r,i,o,s,a);var c=at(i),u=c||at(o),l=u||at(s),p=l;return"="===r&&p&&(r=""),c?e=">"===r||"<"===r?"<0.0.0":"*":r&&p?(u&&(o=0),s=0,">"===r?(r=">=",u?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",u?i=+i+1:o=+o+1),e=r+i+"."+o+"."+s):u?e=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(e=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",e),e})}(t,e)}).join(" ")}(t,e),n("xrange",t),t=function(t,e){return n("replaceStars",t,e),t.trim().replace(o[$],"")}(t,e),n("stars",t),t}(t,this.options)},this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter(function(t){return!!t.match(i)})),s=s.map(function(t){return new it(t,this.options)},this)},st.prototype.intersects=function(t,e){if(!(t instanceof st))throw new TypeError("a Range is required");return this.set.some(function(n){return n.every(function(n){return t.set.some(function(t){return t.every(function(t){return n.intersects(t,e)})})})})},e.toComparators=function(t,e){return new st(t,e).set.map(function(t){return t.map(function(t){return t.value}).join(" ").trim().split(" ")})},st.prototype.test=function(t){if(!t)return!1;"string"==typeof t&&(t=new V(t,this.options));for(var e=0;e":0===e.prerelease.length?e.patch++:e.prerelease.push(0),e.raw=e.format();case"":case">=":n&&!Q(n,e)||(n=e);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+t.operator)}})}if(n&&t.test(n))return n;return null},e.validRange=function(t,e){try{return new st(t,e).range||"*"}catch(t){return null}},e.ltr=function(t,e,n){return pt(t,e,"<",n)},e.gtr=function(t,e,n){return pt(t,e,">",n)},e.outside=pt,e.prerelease=function(t,e){var n=q(t,e);return n&&n.prerelease.length?n.prerelease:null},e.intersects=function(t,e,n){return t=new st(t,n),e=new st(e,n),t.intersects(e)},e.coerce=function(t){if(t instanceof V)return t;if("string"!=typeof t)return null;var e=t.match(o[I]);if(null==e)return null;return q(e[1]+"."+(e[2]||"0")+"."+(e[3]||"0"))}},function(t,e,n){"use strict";const r="win32"===process.platform;function i(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function o(t,e){return r&&1===t&&!e.file?i(e.original,"spawn"):null}t.exports={hookChildProcess:function(t,e){if(!r)return;const n=t.emit;t.emit=function(r,i){if("exit"===r){const r=o(i,e);if(r)return n.call(t,"error",r)}return n.apply(t,arguments)}},verifyENOENT:o,verifyENOENTSync:function(t,e){return r&&1===t&&!e.file?i(e.original,"spawnSync"):null},notFoundError:i}},function(t,e,n){"use strict";t.exports=function(t){var e="string"==typeof t?"\n":"\n".charCodeAt(),n="string"==typeof t?"\r":"\r".charCodeAt();return t[t.length-1]===e&&(t=t.slice(0,t.length-1)),t[t.length-1]===n&&(t=t.slice(0,t.length-1)),t}},function(t,e,n){"use strict";const r=n(1),i=n(303);t.exports=t=>{let e;t=Object.assign({cwd:process.cwd(),path:process.env[i()]},t);let n=r.resolve(t.cwd);const o=[];for(;e!==n;)o.push(r.join(n,"node_modules/.bin")),e=n,n=r.resolve(n,"..");return o.push(r.dirname(process.execPath)),o.concat(t.path).join(r.delimiter)},t.exports.env=e=>{e=Object.assign({env:process.env},e);const n=Object.assign({},e.env),r=i({env:n});return e.path=n[r],n[r]=t.exports(e),n}},function(t,e,n){"use strict";const r=n(360),i=n(361);class o extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}function s(t,e){if(!t)return Promise.reject(new Error("Expected a stream"));e=Object.assign({maxBuffer:1/0},e);const{maxBuffer:n}=e;let s;return new Promise((a,c)=>{const u=t=>{t&&(t.bufferedData=s.getBufferedValue()),c(t)};(s=r(t,i(e),t=>{t?u(t):a()})).on("data",()=>{s.getBufferedLength()>n&&u(new o)})}).then(()=>s.getBufferedValue())}t.exports=s,t.exports.buffer=(t,e)=>s(t,Object.assign({},e,{encoding:"buffer"})),t.exports.array=(t,e)=>s(t,Object.assign({},e,{array:!0})),t.exports.MaxBufferError=o},function(t,e,n){var r=n(48),i=n(131),o=n(5),s=function(){},a=/^v?\.0/.test(process.version),c=function(t){return"function"==typeof t},u=function(t,e,n,u){u=r(u);var l=!1;t.on("close",function(){l=!0}),i(t,{readable:e,writable:n},function(t){if(t)return u(t);l=!0,u()});var p=!1;return function(e){if(!l&&!p)return p=!0,function(t){return!!a&&!!o&&(t instanceof(o.ReadStream||s)||t instanceof(o.WriteStream||s))&&c(t.close)}(t)?t.close(s):function(t){return t.setHeader&&c(t.abort)}(t)?t.abort():c(t.destroy)?t.destroy():void u(e||new Error("stream was destroyed"))}},l=function(t){t()},p=function(t,e){return t.pipe(e)};t.exports=function(){var t,e=Array.prototype.slice.call(arguments),n=c(e[e.length-1]||s)&&e.pop()||s;if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Error("pump requires two streams per minimum");var r=e.map(function(i,o){var s=o0,function(e){t||(t=e),e&&r.forEach(l),s||(r.forEach(l),n(t))})});return e.reduce(p)}},function(t,e,n){"use strict";const{PassThrough:r}=n(7);t.exports=t=>{t=Object.assign({},t);const{array:e}=t;let{encoding:n}=t;const i="buffer"===n;let o=!1;e?o=!(n||i):n=n||"utf8",i&&(n=null);let s=0;const a=[],c=new r({objectMode:o});return n&&c.setEncoding(n),c.on("data",t=>{a.push(t),o?s=a.length:s+=t.length}),c.getBufferedValue=()=>e?a:i?Buffer.concat(a,s):a.join(""),c.getBufferedLength=()=>s,c}},function(t,e,n){"use strict";t.exports=(t,e)=>(e=e||(()=>{}),t.then(t=>new Promise(t=>{t(e())}).then(()=>t),t=>new Promise(t=>{t(e())}).then(()=>{throw t})))},function(t,e,n){var r,i=n(20),o=n(364),s=n(17);function a(){l&&(l=!1,o.forEach(function(t){try{process.removeListener(t,u[t])}catch(t){}}),process.emit=d,process.reallyExit=f,r.count-=1)}function c(t,e,n){r.emitted[t]||(r.emitted[t]=!0,r.emit(t,e,n))}"function"!=typeof s&&(s=s.EventEmitter),process.__signal_exit_emitter__?r=process.__signal_exit_emitter__:((r=process.__signal_exit_emitter__=new s).count=0,r.emitted={}),r.infinite||(r.setMaxListeners(1/0),r.infinite=!0),t.exports=function(t,e){i.equal(typeof t,"function","a callback must be provided for exit handler"),!1===l&&p();var n="exit";e&&e.alwaysLast&&(n="afterexit");return r.on(n,t),function(){r.removeListener(n,t),0===r.listeners("exit").length&&0===r.listeners("afterexit").length&&a()}},t.exports.unload=a;var u={};o.forEach(function(t){u[t]=function(){process.listeners(t).length===r.count&&(a(),c("exit",null,t),c("afterexit",null,t),process.kill(process.pid,t))}}),t.exports.signals=function(){return o},t.exports.load=p;var l=!1;function p(){l||(l=!0,r.count+=1,o=o.filter(function(t){try{return process.on(t,u[t]),!0}catch(t){return!1}}),process.emit=g,process.reallyExit=h)}var f=process.reallyExit;function h(t){process.exitCode=t||0,c("exit",process.exitCode,null),c("afterexit",process.exitCode,null),f.call(process,process.exitCode)}var d=process.emit;function g(t,e){if("exit"===t){void 0!==e&&(process.exitCode=e);var n=d.apply(this,arguments);return c("exit",process.exitCode,null),c("afterexit",process.exitCode,null),n}return d.apply(this,arguments)}},function(t,e){t.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&t.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&t.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")},function(t,e,n){"use strict";const r=n(3);let i;if("function"==typeof r.getSystemErrorName)t.exports=r.getSystemErrorName;else{try{if("function"!=typeof(i=process.binding("uv")).errname)throw new TypeError("uv.errname is not a function")}catch(t){console.error("execa/lib/errname: unable to establish process.binding('uv')",t),i=null}t.exports=t=>o(i,t)}function o(t,e){if(t)return t.errname(e);if(!(e<0))throw new Error("err >= 0");return`Unknown system error ${e}`}t.exports.__test__=o},function(t,e,n){"use strict";const r=["stdin","stdout","stderr"];t.exports=t=>{if(!t)return null;if(t.stdio&&(t=>r.some(e=>Boolean(t[e])))(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${r.map(t=>`\`${t}\``).join(", ")}`);if("string"==typeof t.stdio)return t.stdio;const e=t.stdio||[];if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);const n=[],i=Math.max(e.length,r.length);for(let o=0;o{if("number"!=typeof t)throw new TypeError("Expected a number");return o[t]},e.to=t=>{if("string"!=typeof t)throw new TypeError("Expected a string");return i[t]},e.all=i},function(t,e,n){"use strict";t.exports=t=>{if("object"!=typeof t)throw new TypeError("Expected an object");const e={};for(const n of Object.keys(t)){e[t[n]]=n}return e}},function(t){t.exports={af_ZA:1078,am_ET:1118,ar_AE:14337,ar_BH:15361,ar_DZ:5121,ar_EG:3073,ar_IQ:2049,ar_JO:11265,ar_KW:13313,ar_LB:12289,ar_LY:4097,ar_MA:6145,ar_OM:8193,ar_QA:16385,ar_SA:1025,ar_SY:10241,ar_TN:7169,ar_YE:9217,arn_CL:1146,as_IN:1101,az_AZ:2092,ba_RU:1133,be_BY:1059,bg_BG:1026,bn_IN:1093,bo_BT:2129,bo_CN:1105,br_FR:1150,bs_BA:8218,ca_ES:1027,co_FR:1155,cs_CZ:1029,cy_GB:1106,da_DK:1030,de_AT:3079,de_CH:2055,de_DE:1031,de_LI:5127,de_LU:4103,div_MV:1125,dsb_DE:2094,el_GR:1032,en_AU:3081,en_BZ:10249,en_CA:4105,en_CB:9225,en_GB:2057,en_IE:6153,en_IN:18441,en_JA:8201,en_MY:17417,en_NZ:5129,en_PH:13321,en_TT:11273,en_US:1033,en_ZA:7177,en_ZW:12297,es_AR:11274,es_BO:16394,es_CL:13322,es_CO:9226,es_CR:5130,es_DO:7178,es_EC:12298,es_ES:3082,es_GT:4106,es_HN:18442,es_MX:2058,es_NI:19466,es_PA:6154,es_PE:10250,es_PR:20490,es_PY:15370,es_SV:17418,es_UR:14346,es_US:21514,es_VE:8202,et_EE:1061,eu_ES:1069,fa_IR:1065,fi_FI:1035,fil_PH:1124,fo_FO:1080,fr_BE:2060,fr_CA:3084,fr_CH:4108,fr_FR:1036,fr_LU:5132,fr_MC:6156,fy_NL:1122,ga_IE:2108,gbz_AF:1164,gl_ES:1110,gsw_FR:1156,gu_IN:1095,ha_NG:1128,he_IL:1037,hi_IN:1081,hr_BA:4122,hr_HR:1050,hu_HU:1038,hy_AM:1067,id_ID:1057,ii_CN:1144,is_IS:1039,it_CH:2064,it_IT:1040,iu_CA:2141,ja_JP:1041,ka_GE:1079,kh_KH:1107,kk_KZ:1087,kl_GL:1135,kn_IN:1099,ko_KR:1042,kok_IN:1111,ky_KG:1088,lb_LU:1134,lo_LA:1108,lt_LT:1063,lv_LV:1062,mi_NZ:1153,mk_MK:1071,ml_IN:1100,mn_CN:2128,mn_MN:1104,moh_CA:1148,mr_IN:1102,ms_BN:2110,ms_MY:1086,mt_MT:1082,my_MM:1109,nb_NO:1044,ne_NP:1121,nl_BE:2067,nl_NL:1043,nn_NO:2068,ns_ZA:1132,oc_FR:1154,or_IN:1096,pa_IN:1094,pl_PL:1045,ps_AF:1123,pt_BR:1046,pt_PT:2070,qut_GT:1158,quz_BO:1131,quz_EC:2155,quz_PE:3179,rm_CH:1047,ro_RO:1048,ru_RU:1049,rw_RW:1159,sa_IN:1103,sah_RU:1157,se_FI:3131,se_NO:1083,se_SE:2107,si_LK:1115,sk_SK:1051,sl_SI:1060,sma_NO:6203,sma_SE:7227,smj_NO:4155,smj_SE:5179,smn_FI:9275,sms_FI:8251,sq_AL:1052,sr_BA:7194,sr_SP:3098,sv_FI:2077,sv_SE:1053,sw_KE:1089,syr_SY:1114,ta_IN:1097,te_IN:1098,tg_TJ:1064,th_TH:1054,tk_TM:1090,tmz_DZ:2143,tn_ZA:1074,tr_TR:1055,tt_RU:1092,ug_CN:1152,uk_UA:1058,ur_IN:2080,ur_PK:1056,uz_UZ:2115,vi_VN:1066,wen_DE:1070,wo_SN:1160,xh_ZA:1076,yo_NG:1130,zh_CHS:4,zh_CHT:31748,zh_CN:2052,zh_HK:3076,zh_MO:5124,zh_SG:4100,zh_TW:1028,zu_ZA:1077}},function(t,e,n){"use strict";const r=n(371),i=n(372),o=n(373),s=new WeakMap,a=(...t)=>{if(0===t.length)return"__defaultKey";if(1===t.length){const[e]=t;if(null==e||"function"!=typeof e&&"object"!=typeof e)return e}return JSON.stringify(t)},c=(t,e)=>{"number"==typeof(e=Object.assign({cacheKey:a,cache:new Map,cachePromiseRejection:!1},e)).maxAge&&o(e.cache);const{cache:n}=e;e.maxAge=e.maxAge||0;const c=function(...r){const o=e.cacheKey(...r);if(n.has(o))return n.get(o).data;const s=t.call(this,...r);return((t,r)=>{n.set(t,{data:r,maxAge:Date.now()+e.maxAge})})(o,s),i(s)&&!1===e.cachePromiseRejection&&s.catch(()=>n.delete(o)),s};try{r(c,t)}catch(t){}return s.set(c,e.cache),c};t.exports=c,t.exports.default=c,t.exports.clear=t=>{const e=s.get(t);e&&"function"==typeof e.clear&&e.clear()}},function(t,e,n){"use strict";const r=(t,e)=>{for(const n of Reflect.ownKeys(e))Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n));return t};t.exports=r,t.exports.default=r},function(t,e,n){"use strict";const r=t=>t instanceof Promise||null!==t&&"object"==typeof t&&"function"==typeof t.then&&"function"==typeof t.catch;t.exports=r,t.exports.default=r},function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){t.done?i(t.value):new n(function(e){e(t.value)}).then(s,a)}c((r=r.apply(t,e||[])).next())})},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(374));function s(t,e="maxAge"){let n,i,s;const a=()=>r(this,void 0,void 0,function*(){if(void 0!==n)return;const a=a=>r(this,void 0,void 0,function*(){s=o.default();const r=a[1][e]-Date.now();return r<=0?(t.delete(a[0]),void s.resolve()):(n=a[0],"function"==typeof(i=setTimeout(()=>{t.delete(a[0]),s&&s.resolve()},r)).unref&&i.unref(),s.promise)});try{for(const e of t)yield a(e)}catch(t){}n=void 0}),c=t.set.bind(t);return t.set=(e,r)=>{t.has(e)&&t.delete(e);const o=c(e,r);return n&&n===e&&(n=void 0,void 0!==i&&(clearTimeout(i),i=void 0),void 0!==s&&(s.reject(void 0),s=void 0)),a(),o},a(),t}e.default=s,t.exports=s,t.exports.default=s},function(t,e,n){"use strict";t.exports=()=>{const t={};return t.promise=new Promise((e,n)=>{t.resolve=e,t.reject=n}),t}}])}); \ No newline at end of file diff --git a/dist/index.js b/dist/index.js index 0d70820..ab4ba26 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,4 +1,4 @@ -!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(global,function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=134)}([function(t,e,n){"use strict";function r(t){if(void 0===t)return!1;if("function"!=typeof t)throw new TypeError("Callback must be a function");return!0}function i(t,e){if("string"==typeof t&&(t=new Error(t)),"function"==typeof e)return e.call(this,t);throw t}function o(t,e,n,r,i,o){e=Math.round(e),n=Math.round(n),r=Math.round(r),i=Math.round(i);for(var a=n;ar.promises})},function(t,e){t.exports=require("util")},function(t,e){t.exports=require("buffer")},function(t,e){t.exports=require("fs")},function(t,e,n){var r=n(5),i=n(135),o=n(136),a=n(137),s=[],c=n(3);var l,u,p=function(){};function f(t){i(t),t.gracefulify=f,t.FileReadStream=p,t.FileWriteStream=g,t.createReadStream=function(t,e){return new p(t,e)},t.createWriteStream=function(t,e){return new g(t,e)};var e=t.readFile;t.readFile=function(t,n,r){"function"==typeof n&&(r=n,n=null);return function t(n,r,i){return e(n,r,function(e){!e||"EMFILE"!==e.code&&"ENFILE"!==e.code?("function"==typeof i&&i.apply(this,arguments),d()):h([t,[n,r,i]])})}(t,n,r)};var n=t.writeFile;t.writeFile=function(t,e,r,i){"function"==typeof r&&(i=r,r=null);return function t(e,r,i,o){return n(e,r,i,function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?("function"==typeof o&&o.apply(this,arguments),d()):h([t,[e,r,i,o]])})}(t,e,r,i)};var r=t.appendFile;r&&(t.appendFile=function(t,e,n,i){"function"==typeof n&&(i=n,n=null);return function t(e,n,i,o){return r(e,n,i,function(r){!r||"EMFILE"!==r.code&&"ENFILE"!==r.code?("function"==typeof o&&o.apply(this,arguments),d()):h([t,[e,n,i,o]])})}(t,e,n,i)});var a=t.readdir;function s(e){return a.apply(t,e)}if(t.readdir=function(t,e,n){var r=[t];"function"!=typeof e?r.push(e):n=e;return r.push(function(t,e){e&&e.sort&&e.sort(),!t||"EMFILE"!==t.code&&"ENFILE"!==t.code?("function"==typeof n&&n.apply(this,arguments),d()):h([s,[r]])}),s(r)},"v0.8"===process.version.substr(0,4)){var c=o(t);p=c.ReadStream,g=c.WriteStream}var l=t.ReadStream;l&&(p.prototype=Object.create(l.prototype),p.prototype.open=function(){var t=this;_(t.path,t.flags,t.mode,function(e,n){e?(t.autoClose&&t.destroy(),t.emit("error",e)):(t.fd=n,t.emit("open",n),t.read())})});var u=t.WriteStream;function p(t,e){return this instanceof p?(l.apply(this,arguments),this):p.apply(Object.create(p.prototype),arguments)}function g(t,e){return this instanceof g?(u.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}u&&(g.prototype=Object.create(u.prototype),g.prototype.open=function(){var t=this;_(t.path,t.flags,t.mode,function(e,n){e?(t.destroy(),t.emit("error",e)):(t.fd=n,t.emit("open",n))})}),t.ReadStream=p,t.WriteStream=g;var m=t.open;function _(t,e,n,r){return"function"==typeof n&&(r=n,n=null),function t(e,n,r,i){return m(e,n,r,function(o,a){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?("function"==typeof i&&i.apply(this,arguments),d()):h([t,[e,n,r,i]])})}(t,e,n,r)}return t.open=_,t}function h(t){p("ENQUEUE",t[0].name,t[1]),s.push(t)}function d(){var t=s.shift();t&&(p("RETRY",t[0].name,t[1]),t[0].apply(null,t[1]))}c.debuglog?p=c.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(p=function(){var t=c.format.apply(c,arguments);t="GFS4: "+t.split(/\n/).join("\nGFS4: "),console.error(t)}),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){p(s),n(20).equal(s.length,0)}),t.exports=f(a(r)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!r.__patched&&(t.exports=f(r),r.__patched=!0),t.exports.close=(l=r.close,function(t,e){return l.call(r,t,function(t){t||d(),"function"==typeof e&&e.apply(this,arguments)})}),t.exports.closeSync=(u=r.closeSync,function(t){var e=u.apply(r,arguments);return d(),e}),/\bgraceful-fs\b/.test(r.closeSync.toString())||(r.closeSync=t.exports.closeSync,r.close=t.exports.close)},function(t,e){t.exports=require("stream")},function(t,e,n){"use strict";e.fromCallback=function(t){return Object.defineProperty(function(){if("function"!=typeof arguments[arguments.length-1])return new Promise((e,n)=>{arguments[arguments.length]=(t,r)=>{if(t)return n(t);e(r)},arguments.length++,t.apply(this,arguments)});t.apply(this,arguments)},"name",{value:t.name})},e.fromPromise=function(t){return Object.defineProperty(function(){const e=arguments[arguments.length-1];if("function"!=typeof e)return t.apply(this,arguments);t.apply(this,arguments).then(t=>e(null,t),e)},"name",{value:t.name})}},function(t,e,n){(function(){var e,r,i,o,a,s,c,l,u,p,f,h,d={}.hasOwnProperty;h=n(15),f=h.isObject,p=h.isFunction,u=h.isEmpty,a=null,e=null,r=null,i=null,o=null,c=null,l=null,s=null,t.exports=function(){function t(t){this.parent=t,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.children=[],a||(a=n(31),e=n(32),r=n(33),i=n(34),o=n(35),c=n(40),l=n(41),s=n(42))}return t.prototype.element=function(t,e,n){var r,i,o,a,s,c,l,h,g,m;if(c=null,null==e&&(e={}),e=e.valueOf(),f(e)||(n=(g=[e,n])[0],e=g[1]),null!=t&&(t=t.valueOf()),Array.isArray(t))for(o=0,l=t.length;o!0).catch(()=>!1)}),pathExistsSync:i.existsSync}},function(t,e,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function i(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)i(n,r)&&(t[r]=n[r])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var o={arraySet:function(t,e,n,r,i){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+r),i);else for(var o=0;on&&s>0?(a+=t.common.lineHeight,o=i[s]+" "):o=c}return a}n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i})},function(t,e){t.exports=require("events")},function(t,e,n){try{var r=n(3);if("function"!=typeof r.inherits)throw"";t.exports=r.inherits}catch(e){t.exports=n(225)}},function(t,e,n){"use strict";var r=n(43),i=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=p;var o=n(23);o.inherits=n(18);var a=n(97),s=n(100);o.inherits(p,a);for(var c=i(s.prototype),l=0;l1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}if(t=B(t,360),e=B(e,100),n=B(n,100),0===e)r=i=o=n;else{var s=n<.5?n*(1+e):n+e-n*e,c=2*n-s;r=a(c,s,t+1/3),i=a(c,s,t),o=a(c,s,t-1/3)}return{r:255*r,g:255*i,b:255*o}}(t.h,r,c),p=!0,f="hsl"),t.hasOwnProperty("a")&&(n=t.a));var h,d,g;return n=D(n),{ok:p,format:t.format||f,r:l(255,u(e.r,0)),g:l(255,u(e.g,0)),b:l(255,u(e.b,0)),a:n}}(t);this._originalInput=t,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=c(100*this._a)/100,this._format=e.format||n.format,this._gradientType=e.gradientType,this._r<1&&(this._r=c(this._r)),this._g<1&&(this._g=c(this._g)),this._b<1&&(this._b=c(this._b)),this._ok=n.ok,this._tc_id=s++}function h(t,e,n){t=B(t,255),e=B(e,255),n=B(n,255);var r,i,o=u(t,e,n),a=l(t,e,n),s=(o+a)/2;if(o==a)r=i=0;else{var c=o-a;switch(i=s>.5?c/(2-o-a):c/(o+a),o){case t:r=(e-n)/c+(e>1)+720)%360;--e;)r.h=(r.h+i)%360,o.push(f(r));return o}function A(t,e){e=e||6;for(var n=f(t).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/e;e--;)a.push(f({h:r,s:i,v:o})),o=(o+s)%1;return a}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,n,r=this.toRgb();return t=r.r/255,e=r.g/255,n=r.b/255,.2126*(t<=.03928?t/12.92:i.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:i.pow((e+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:i.pow((n+.055)/1.055,2.4))},setAlpha:function(t){return this._a=D(t),this._roundA=c(100*this._a)/100,this},toHsv:function(){var t=d(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=d(this._r,this._g,this._b),e=c(360*t.h),n=c(100*t.s),r=c(100*t.v);return 1==this._a?"hsv("+e+", "+n+"%, "+r+"%)":"hsva("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var t=h(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=h(this._r,this._g,this._b),e=c(360*t.h),n=c(100*t.s),r=c(100*t.l);return 1==this._a?"hsl("+e+", "+n+"%, "+r+"%)":"hsla("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(t){return g(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,n,r,i){var o=[M(c(t).toString(16)),M(c(e).toString(16)),M(c(n).toString(16)),M(R(r))];if(i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:c(this._r),g:c(this._g),b:c(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+c(this._r)+", "+c(this._g)+", "+c(this._b)+")":"rgba("+c(this._r)+", "+c(this._g)+", "+c(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:c(100*B(this._r,255))+"%",g:c(100*B(this._g,255))+"%",b:c(100*B(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+c(100*B(this._r,255))+"%, "+c(100*B(this._g,255))+"%, "+c(100*B(this._b,255))+"%)":"rgba("+c(100*B(this._r,255))+"%, "+c(100*B(this._g,255))+"%, "+c(100*B(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(P[g(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+m(this._r,this._g,this._b,this._a),n=e,r=this._gradientType?"GradientType = 1, ":"";if(t){var i=f(t);n="#"+m(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+e+",endColorstr="+n+")"},toString:function(t){var e=!!t;t=t||this._format;var n=!1,r=this._a<1&&this._a>=0;return e||!r||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(n=this.toRgbString()),"prgb"===t&&(n=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(n=this.toHexString()),"hex3"===t&&(n=this.toHexString(!0)),"hex4"===t&&(n=this.toHex8String(!0)),"hex8"===t&&(n=this.toHex8String()),"name"===t&&(n=this.toName()),"hsl"===t&&(n=this.toHslString()),"hsv"===t&&(n=this.toHsvString()),n||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return f(this.toString())},_applyModification:function(t,e){var n=t.apply(null,[this].concat([].slice.call(e)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(v,arguments)},brighten:function(){return this._applyModification(x,arguments)},darken:function(){return this._applyModification(w,arguments)},desaturate:function(){return this._applyModification(_,arguments)},saturate:function(){return this._applyModification(b,arguments)},greyscale:function(){return this._applyModification(y,arguments)},spin:function(){return this._applyModification(k,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(O,arguments)},complement:function(){return this._applyCombination(E,arguments)},monochromatic:function(){return this._applyCombination(A,arguments)},splitcomplement:function(){return this._applyCombination(T,arguments)},triad:function(){return this._applyCombination(S,arguments)},tetrad:function(){return this._applyCombination(I,arguments)}},f.fromRatio=function(t,e){if("object"==typeof t){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]="a"===r?t[r]:z(t[r]));t=n}return f(t,e)},f.equals=function(t,e){return!(!t||!e)&&f(t).toRgbString()==f(e).toRgbString()},f.random=function(){return f.fromRatio({r:p(),g:p(),b:p()})},f.mix=function(t,e,n){n=0===n?0:n||50;var r=f(t).toRgb(),i=f(e).toRgb(),o=n/100;return f({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a})},f.readability=function(t,e){var n=f(t),r=f(e);return(i.max(n.getLuminance(),r.getLuminance())+.05)/(i.min(n.getLuminance(),r.getLuminance())+.05)},f.isReadable=function(t,e,n){var r,i,o=f.readability(t,e);switch(i=!1,(r=function(t){var e,n;e=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(t.size||"small").toLowerCase(),"AA"!==e&&"AAA"!==e&&(e="AA");"small"!==n&&"large"!==n&&(n="small");return{level:e,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":i=o>=4.5;break;case"AAlarge":i=o>=3;break;case"AAAsmall":i=o>=7}return i},f.mostReadable=function(t,e,n){var r,i,o,a,s=null,c=0;i=(n=n||{}).includeFallbackColors,o=n.level,a=n.size;for(var l=0;lc&&(c=r,s=f(e[l]));return f.isReadable(t,s,{level:o,size:a})||!i?s:(n.includeFallbackColors=!1,f.mostReadable(t,["#fff","#000"],n))};var C=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},P=f.hexNames=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}(C);function D(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function B(t,e){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var n=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=l(e,u(0,parseFloat(t))),n&&(t=parseInt(t*e,10)/100),i.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function L(t){return l(1,u(0,t))}function N(t){return parseInt(t,16)}function M(t){return 1==t.length?"0"+t:""+t}function z(t){return t<=1&&(t=100*t+"%"),t}function R(t){return i.round(255*parseFloat(t)).toString(16)}function j(t){return N(t)/255}var F,U,G,H=(U="[\\s|\\(]+("+(F="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+F+")[,|\\s]+("+F+")\\s*\\)?",G="[\\s|\\(]+("+F+")[,|\\s]+("+F+")[,|\\s]+("+F+")[,|\\s]+("+F+")\\s*\\)?",{CSS_UNIT:new RegExp(F),rgb:new RegExp("rgb"+U),rgba:new RegExp("rgba"+G),hsl:new RegExp("hsl"+U),hsla:new RegExp("hsla"+G),hsv:new RegExp("hsv"+U),hsva:new RegExp("hsva"+G),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function W(t){return!!H.CSS_UNIT.exec(t)}t.exports?t.exports=f:void 0===(r=function(){return f}.call(e,n,e,t))||(t.exports=r)}(Math)},function(t,e,n){var r=n(160);function i(t,e){var n=new r(t,e);return function(t){return n.convert(t)}}i.BIN="01",i.OCT="01234567",i.DEC="0123456789",i.HEX="0123456789abcdef",t.exports=i},function(t,e){function n(t,e){this.size=this.size||t,this.smallerSize=this.smallerSize||e,function(t){for(var e=1;eu?"1":"0";return p};var i=[];t.exports=n},function(t,e,n){!function(){var e={};function r(){"undefined"==typeof process&&console.log.apply(console,arguments)}t.exports=e,function(t,e){var n,i,o;n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function t(t){this.message="JPEG error: "+t}return t.prototype=Error(),t.prototype.name="JpegError",t.constructor=t}(),o=function(){function t(t,e){this.message=t,this.g=e}return t.prototype=Error(),t.prototype.name="DNLMarkerError",t.constructor=t}(),function(){function e(){this.M=null,this.B=-1}function r(t,e){for(var n,r,i=0,o=[],a=16;0>--A&1;if(255===(O=t[e++])){var n=t[e++];if(n){if(220===n&&S){e+=2;var a=t[e++]<<8|t[e++];if(0>>7}function g(t){for(;;){if("number"==typeof(t=t[d()]))return t;if("object"!==(void 0===t?"undefined":n(t)))throw new i("invalid huffman sequence")}}function m(t){for(var e=0;0=1<>=4,0===i){if(15>r){C=m(r)+(1<t.a[n]?-1:1;switch(P){case 0:if(n=15&(o=g(t.o)),o>>=4,0===n)15>o?(C=m(o)+(1<n;){var r=g(t.o),i=15&r;if(r>>=4,0===i){if(15>r)break;n+=16}else n+=r,t.a[e+l[n]]=_(i),n++}},L=0,N=1===D?a[0].c*a[0].l:I*r.O;L=z)throw new i("marker was not found");if(!(65488<=z&&65495>=z))break;e+=2}return(z=c(t,e))&&z.f&&((0,_util.warn)("decodeScan - unexpected Scan data, current marker is: "+z.f),e=z.offset),e-T}function s(t,e){for(var n=e.c,r=e.l,o=new Int16Array(64),a=0;af;f+=8){var h=p[c+f],d=p[c+f+1],g=p[c+f+2],m=p[c+f+3],_=p[c+f+4],b=p[c+f+5],y=p[c+f+6],v=p[c+f+7];if(h*=u[f],0==(d|g|m|_|b|y|v))h=5793*h+512>>10,l[f]=h,l[f+1]=h,l[f+2]=h,l[f+3]=h,l[f+4]=h,l[f+5]=h,l[f+6]=h,l[f+7]=h;else{d*=u[f+1],g*=u[f+2],m*=u[f+3],_*=u[f+4],b*=u[f+5];var x=5793*h+128>>8,w=5793*_+128>>8,k=g,E=y*=u[f+6];w=(x=x+w+1>>1)-w,h=3784*k+1567*E+128>>8,k=1567*k-3784*E+128>>8,b=(_=(_=2896*(d-(v*=u[f+7]))+128>>8)+(b<<=4)+1>>1)-b,m=(v=(v=2896*(d+v)+128>>8)+(m<<=4)+1>>1)-m,E=(x=x+(E=h)+1>>1)-E,k=(w=w+k+1>>1)-k,h=2276*_+3406*v+2048>>12,_=3406*_-2276*v+2048>>12,v=h,h=799*m+4017*b+2048>>12,m=4017*m-799*b+2048>>12,b=h,l[f]=x+v,l[f+7]=x-v,l[f+1]=w+b,l[f+6]=w-b,l[f+2]=k+m,l[f+5]=k-m,l[f+3]=E+_,l[f+4]=E-_}}for(u=0;8>u;++u)h=l[u],0==((d=l[u+8])|(g=l[u+16])|(m=l[u+24])|(_=l[u+32])|(b=l[u+40])|(y=l[u+48])|(v=l[u+56]))?(h=-2040>(h=5793*h+8192>>14)?0:2024<=h?255:h+2056>>4,p[c+u]=h,p[c+u+8]=h,p[c+u+16]=h,p[c+u+24]=h,p[c+u+32]=h,p[c+u+40]=h,p[c+u+48]=h,p[c+u+56]=h):(x=5793*h+2048>>12,w=5793*_+2048>>12,h=3784*(k=g)+1567*(E=y)+2048>>12,k=1567*k-3784*E+2048>>12,E=h,b=(_=(_=2896*(d-v)+2048>>12)+b+1>>1)-b,m=(v=(v=2896*(d+v)+2048>>12)+m+1>>1)-m,h=2276*_+3406*v+2048>>12,_=3406*_-2276*v+2048>>12,v=h,h=799*m+4017*b+2048>>12,m=4017*m-799*b+2048>>12,d=(w=(w=(x=4112+(x+w+1>>1))-w)+k+1>>1)+(b=h),y=w-b,b=(k=w-k)-m,h=16>(h=(x=x+E+1>>1)+v)?0:4080<=h?255:h>>4,d=16>d?0:4080<=d?255:d>>4,g=16>(g=k+m)?0:4080<=g?255:g>>4,m=16>(m=(E=x-E)+_)?0:4080<=m?255:m>>4,_=16>(_=E-_)?0:4080<=_?255:_>>4,b=16>b?0:4080<=b?255:b>>4,y=16>y?0:4080<=y?255:y>>4,v=16>(v=x-v)?0:4080<=v?255:v>>4,p[c+u]=h,p[c+u+8]=d,p[c+u+16]=g,p[c+u+24]=m,p[c+u+32]=_,p[c+u+40]=b,p[c+u+48]=y,p[c+u+56]=v)}return e.a}function c(t,e){var n=2=r)return null;var i=t[e]<<8|t[e+1];if(65472<=i&&65534>=i)return{f:null,F:i,offset:e};for(var o=t[n]<<8|t[n+1];!(65472<=o&&65534>=o);){if(++n>=r)return null;o=t[n]<<8|t[n+1]}return{f:i.toString(16),F:o,offset:n}}var l=new Uint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]);e.prototype={parse:function(t){function e(){var e=t[h]<<8|t[h+1];return h+=2,e}function n(){var n=e(),r=c(t,n=h+n-2,h);return r&&r.f&&((0,_util.warn)("readDataBlock - incorrect length, current marker is: "+r.f),n=r.offset),n=t.subarray(h,n),h+=n.length,n}function u(t){for(var e=Math.ceil(t.v/8/t.s),n=Math.ceil(t.g/8/t.u),r=0;r>4)for(y=0;64>y;y++)w[v=l[y]]=t[h++];else{if(1!=x>>4)throw new i("DQT - invalid table spec");for(y=0;64>y;y++)w[v=l[y]]=e()}p[15&x]=w}break;case 65472:case 65473:case 65474:if(k)throw new i("Only single frame JPEGs supported");e();var k={};for(k.X=65473===b,k.S=65474===b,k.precision=t[h++],b=e(),k.g=f||b,k.v=e(),k.b=[],k.C={},y=t[h++],b=w=x=0;b>4,S=15&t[h+1];xy;y++,h++)E+=w[y]=t[h];for(S=new Uint8Array(E),y=0;y>4?_:m)[15&x]=r(w,S)}break;case 65501:e();var I=e();break;case 65498:for(y=1==++g&&!f,e(),x=t[h++],v=[],b=0;b>4],T.o=m[15&w],v.push(T)}b=t[h++],x=t[h++],w=t[h++];try{var O=a(t,h,k,v,I,b,x,w>>4,15&w,y);h+=O}catch(e){if(e instanceof o)return(0,_util.warn)('Attempting to re-parse JPEG image using "scanLines" parameter found in DNL marker (0xFFDC) segment.'),this.parse(t,{N:e.g});throw e}break;case 65500:h+=4;break;case 65535:255!==t[h]&&h--;break;default:if(255===t[h-3]&&192<=t[h-2]&&254>=t[h-2])h-=3;else{if(!(y=c(t,h-2))||!y.f)throw new i("unknown marker "+b.toString(16));(0,_util.warn)("JpegImage.parse - unexpected data, current marker is: "+y.f),h=y.offset}}b=e()}for(this.width=k.v,this.height=k.g,this.A=d,this.b=[],b=0;b>8)+o[i+1];return c},w:function(){return this.A?!!this.A.W:3===this.i?0!==this.B:1===this.B},I:function(t){for(var e,n,r,i=0,o=t.length;i>>3)]),null==h&&(h=s.t325);var d=new Uint8Array(s.height*(p>>>3)),g=0;if(null!=s.t322){for(var m=s.t322[0],_=s.t323[0],b=Math.floor((s.width+m-1)/m),y=Math.floor((s.height+_-1)/_),v=new Uint8Array(0|Math.ceil(m*_*u/8)),x=0;x>>8;else{if(12!=d)throw new Error("unsupported bit depth "+d);for(p=0;p>>4,o[a++]=255&(g[p]<<4|g[p+1]>>>8),o[a++]=255&g[p+1]}}else{var _=new t.JpegDecoder;_.parse(l);var b=_.getData(_.width,_.height);for(p=0;p1),!f){if(255==e[n]&&216==e[n+1])return{jpegOffset:n};if(null!=h&&(255==e[n+d]&&216==e[n+d+1]?u=n+d:r("JPEGInterchangeFormat does not point to SOI"),null==g?r("JPEGInterchangeFormatLength field is missing"):(d>=p||d+m<=p)&&r("JPEGInterchangeFormatLength field value is invalid"),null!=u))return{jpegOffset:u}}if(null!=b&&(y=b[0],v=b[1]),null!=h&&null!=g)if(m>=2&&d+m<=p){for(o=255==e[n+d+m-2]&&216==e[n+d+m-1]?new Uint8Array(m-2):new Uint8Array(m),s=0;s offset to first strip or tile");if(null==o){var k=0,E=[];E[k++]=255,E[k++]=216;var S=t.t519;if(null==S)throw new Error("JPEGQTables tag is missing");for(s=0;s>>8,E[k++]=255&T,E[k++]=s|l<<4,c=0;c<16;c++)E[k++]=e[n+I[s]+c];for(c=0;c>>8&255,E[k++]=255&t.height,E[k++]=t.width>>>8&255,E[k++]=255&t.width,E[k++]=x,1==x)E[k++]=1,E[k++]=17,E[k++]=0;else for(s=0;s<3;s++)E[k++]=s+1,E[k++]=0!=s?17:(15&y)<<4|15&v,E[k++]=s;null!=w&&0!=w[0]&&(E[k++]=255,E[k++]=221,E[k++]=0,E[k++]=4,E[k++]=w[0]>>>8&255,E[k++]=255&w[0]),o=new Uint8Array(E)}var O=-1;for(s=0;s>>8&255,o[C++]=255&t.height,o[C++]=t.width>>>8&255,o[C++]=255&t.width,o[C++]=x,1==x)o[C++]=1,o[C++]=17,o[C++]=0;else for(s=0;s<3;s++)o[C++]=s+1,o[C++]=0!=s?17:(15&y)<<4|15&v,o[C++]=s}if(255==e[p]&&218==e[p+1]){var P=e[p+2]<<8|e[p+3];for((a=new Uint8Array(P+2))[0]=e[p],a[1]=e[p+1],a[2]=e[p+2],a[3]=e[p+3],s=0;s>>8&255,l[u.sofPosition+6]=255&e.height,l[u.sofPosition+7]=e.width>>>8&255,l[u.sofPosition+8]=255&e.width,255==n[r]&&n[r+1]==SOS||(l.set(u.sosMarker,bufoff),bufoff+=sosMarker.length),h=0;h=0&&c<128)for(var l=0;l=-127&&c<0){for(l=0;l<1-c;l++)a[i]=o[e],i++;e++}}},t.decode._decodeThunder=function(t,e,n,r,i){for(var o=[0,1,0,-1],a=[0,1,2,3,0,-3,-2,-1],s=e+n,c=2*i,l=0;e>>6,f=63&u;if(e++,3==p&&(l=15&f,r[c>>>1]|=l<<4*(1-c&1),c++),0==p)for(var h=0;h>>1]|=l<<4*(1-c&1),c++;if(2==p)for(h=0;h<2;h++){4!=(d=f>>>3*(1-h)&7)&&(l+=a[d],r[c>>>1]|=l<<4*(1-c&1),c++)}if(1==p)for(h=0;h<3;h++){var d;2!=(d=f>>>2*(2-h)&3)&&(l+=o[d],r[c>>>1]|=l<<4*(1-c&1),c++)}}},t.decode._dmap={1:0,"011":1,"000011":2,"0000011":3,"010":-1,"000010":-2,"0000010":-3},t.decode._lens=function(){var t=function(t,e,n,r){for(var i=0;i>>3>>3]>>>7-(7&l)&1),2==s&&(E=e[l>>>3]>>>(7&l)&1),l++,p+=E,"H"==x){if(null!=c._lens[y][p]){var S=c._lens[y][p];p="",u+=S,S<64&&(c._addNtimes(f,u,y),g+=u,y=1-y,u=0,0==--w&&(x=""))}}else"0001"==p&&(p="",c._addNtimes(f,b-g,y),g=b),"001"==p&&(p="",x="H",w=2),null!=c._dmap[p]&&(m=_+c._dmap[p],c._addNtimes(f,m-g,y),g=m,p="",y=1-y);f.length==a&&""==x&&(c._writeBits(f,i,8*o+v*k),y=0,v++,g=0,h=c._makeDiff(f),f=[])}},t.decode._findDiff=function(t,e,n){for(var r=0;r=e&&t[r+1]==n)return t[r]},t.decode._makeDiff=function(t){var e=[];1==t[0]&&e.push(0,1);for(var n=1;n>>3>>3]>>>7-(7&l)&1),2==s&&(S=e[l>>>3]>>>(7&l)&1),l++,p+=S,k){if(null!=c._lens[y][p]){var I=c._lens[y][p];p="",u+=I,I<64&&(c._addNtimes(f,u,y),y=1-y,u=0)}}else if("H"==x){if(null!=c._lens[y][p]){I=c._lens[y][p];p="",u+=I,I<64&&(c._addNtimes(f,u,y),g+=u,y=1-y,u=0,0==--w&&(x=""))}}else"0001"==p&&(p="",c._addNtimes(f,b-g,y),g=b),"001"==p&&(p="",x="H",w=2),null!=c._dmap[p]&&(m=_+c._dmap[p],c._addNtimes(f,m-g,y),g=m,p="",y=1-y);p.endsWith("000000000001")&&(v>=0&&c._writeBits(f,i,8*o+v*E),1==s&&(k=1==(e[l>>>3]>>>7-(7&l)&1)),2==s&&(k=1==(e[l>>>3]>>>(7&l)&1)),l++,null==c._decodeG3.allow2D&&(c._decodeG3.allow2D=k),c._decodeG3.allow2D||(k=!0,l--),p="",y=0,v++,g=0,h=c._makeDiff(f),f=[])}f.length==a&&c._writeBits(f,i,8*o+v*E)},t.decode._addNtimes=function(t,e,n){for(var r=0;r>>3]|=t[r]<<7-(n+r&7)},t.decode._decodeLZW=function(e,n,r,i){if(null==t.decode._lzwTab){for(var o=new Uint32Array(65535),a=new Uint16Array(65535),s=new Uint8Array(2e6),c=0;c<256;c++)s[c<<2]=c,o[c]=c<<2,a[c]=1;t.decode._lzwTab=[o,a,s]}for(var l=t.decode._copyData,u=t.decode._lzwTab[0],p=t.decode._lzwTab[1],f=(s=t.decode._lzwTab[2],258),h=1032,d=9,g=n<<3,m=0,_=0;m=(e[g>>>3]<<16|e[g+8>>>3]<<8|e[g+16>>>3])>>24-(7&g)-d&(1<>>3]<<16|e[g+8>>>3]<<8|e[g+16>>>3])>>24-(7&g)-d&(1<=f)u[f]=h,s[u[f]]=b[0],p[f]=1,h=h+1+3&-4,f++;else u[f]=h,l(s,u[_],s,h,v=p[_]),s[h+v]=s[b],v++,p[f]=v,f++,h=h+v+3&-4;f+1==1<=f)u[f]=h,p[f]=0,f++;else u[f]=h,l(s,u[_],s,h,v=p[_]),s[h+v]=s[h],v++,p[f]=v,f++,l(s,h,r,i,v),i+=v,h=h+v+3&-4;f+1==1<4&&(e.writeUint(n,r,a),d=a),2==u&&e.writeASCII(n,d,p),3==u)for(var g=0;g4&&(a+=h+=1&h),r+=4}return[r,a]},t.toRGBA8=function(t){var e=t.width,n=t.height,i=e*n,o=4*i,a=t.data,s=new Uint8Array(4*i),c=t.t262[0],l=t.t258?Math.min(32,t.t258[0]):1,u=t.isLE?1:0;if(0==c)for(var p=Math.ceil(l*e/8),f=0;f>3)]>>7-(7&g)&1;s[m]=s[m+1]=s[m+2]=255*(1-_),s[m+3]=255}if(4==l)for(g=0;g>1)]>>4-4*(1&g)&15;s[m]=s[m+1]=s[m+2]=17*(15-_),s[m+3]=255}if(8==l)for(g=0;g>3)]>>7-(7&g)&1;s[m]=s[m+1]=s[m+2]=255*_,s[m+3]=255}if(2==l)for(g=0;g>2)]>>6-2*(3&g)&3;s[m]=s[m+1]=s[m+2]=85*_,s[m+3]=255}if(8==l)for(g=0;g0)for(g=0;g>8,s[m+1]=y[256+v]>>8,s[m+2]=y[512+v]>>8,s[m+3]=255}}else if(5==c){var x,w=(x=t.t258?t.t258.length:4)>4?1:0;for(g=0;g>8&255,t[e+1]=255&n},writeUint:function(t,e,n){t[e]=n>>24&255,t[e+1]=n>>16&255,t[e+2]=n>>8&255,t[e+3]=n>>0&255},writeASCII:function(t,e,n){for(var r=0;ro)return!0;if(l===o){if(u>a)return!0;if(u===a&&p>=s)return!0}return!1}function h(t,e){const n=i.resolve(t).split(i.sep).filter(t=>t),r=i.resolve(e).split(i.sep).filter(t=>t);return n.reduce((t,e,n)=>t&&r[n]===e,!0)}function d(t,e,n){return`Cannot ${n} '${t}' to a subdirectory of itself, '${e}'.`}t.exports={checkPaths:function(t,e,n,i){!function(t,e,n){f()?r.stat(t,{bigint:!0},(t,i)=>{if(t)return n(t);r.stat(e,{bigint:!0},(t,e)=>t?"ENOENT"===t.code?n(null,{srcStat:i,destStat:null}):n(t):n(null,{srcStat:i,destStat:e}))}):r.stat(t,(t,i)=>{if(t)return n(t);r.stat(e,(t,e)=>t?"ENOENT"===t.code?n(null,{srcStat:i,destStat:null}):n(t):n(null,{srcStat:i,destStat:e}))})}(t,e,(r,o)=>{if(r)return i(r);const{srcStat:a,destStat:s}=o;return s&&s.ino&&s.dev&&s.ino===a.ino&&s.dev===a.dev?i(new Error("Source and destination must not be the same.")):a.isDirectory()&&h(t,e)?i(new Error(d(t,e,n))):i(null,{srcStat:a,destStat:s})})},checkPathsSync:function(t,e,n){const{srcStat:i,destStat:o}=function(t,e){let n,i;n=f()?r.statSync(t,{bigint:!0}):r.statSync(t);try{i=f()?r.statSync(e,{bigint:!0}):r.statSync(e)}catch(t){if("ENOENT"===t.code)return{srcStat:n,destStat:null};throw t}return{srcStat:n,destStat:i}}(t,e);if(o&&o.ino&&o.dev&&o.ino===i.ino&&o.dev===i.dev)throw new Error("Source and destination must not be the same.");if(i.isDirectory()&&h(t,e))throw new Error(d(t,e,n));return{srcStat:i,destStat:o}},checkParentPaths:function t(e,n,o,a,s){const c=i.resolve(i.dirname(e)),l=i.resolve(i.dirname(o));if(l===c||l===i.parse(l).root)return s();f()?r.stat(l,{bigint:!0},(r,i)=>r?"ENOENT"===r.code?s():s(r):i.ino&&i.dev&&i.ino===n.ino&&i.dev===n.dev?s(new Error(d(e,o,a))):t(e,n,l,a,s)):r.stat(l,(r,i)=>r?"ENOENT"===r.code?s():s(r):i.ino&&i.dev&&i.ino===n.ino&&i.dev===n.dev?s(new Error(d(e,o,a))):t(e,n,l,a,s))},checkParentPathsSync:function t(e,n,o,a){const s=i.resolve(i.dirname(e)),c=i.resolve(i.dirname(o));if(c===s||c===i.parse(c).root)return;let l;try{l=f()?r.statSync(c,{bigint:!0}):r.statSync(c)}catch(t){if("ENOENT"===t.code)return;throw t}if(l.ino&&l.dev&&l.ino===n.ino&&l.dev===n.dev)throw new Error(d(e,o,a));return t(e,n,c,a)},isSrcSubdir:h}},function(t,e,n){"use strict";const r=n(8).fromCallback,i=n(144);t.exports={remove:r(i),removeSync:i.sync}},function(t,e,n){(function(){var e,r,i,o,a,s={}.hasOwnProperty;a=n(15),o=a.isObject,i=a.isFunction,r=n(9),e=n(89),t.exports=function(t){function n(t,e,r){if(n.__super__.constructor.call(this,t),null==e)throw new Error("Missing element name");this.name=this.stringify.eleName(e),this.attributes={},null!=r&&this.attribute(r),t.isDocument&&(this.isRoot=!0,this.documentObject=t,t.rootObject=this)}return function(t,e){for(var n in e)s.call(e,n)&&(t[n]=e[n]);function r(){this.constructor=t}r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype}(n,r),n.prototype.clone=function(){var t,e,n,r;for(e in(n=Object.create(this)).isRoot&&(n.documentObject=null),n.attributes={},r=this.attributes)s.call(r,e)&&(t=r[e],n.attributes[e]=t.clone());return n.children=[],this.children.forEach(function(t){var e;return(e=t.clone()).parent=n,n.children.push(e)}),n},n.prototype.attribute=function(t,n){var r,a;if(null!=t&&(t=t.valueOf()),o(t))for(r in t)s.call(t,r)&&(a=t[r],this.attribute(r,a));else i(n)&&(n=n.apply()),this.options.skipNullAttributes&&null==n||(this.attributes[t]=new e(this,t,n));return this},n.prototype.removeAttribute=function(t){var e,n,r;if(null==t)throw new Error("Missing attribute name");if(t=t.valueOf(),Array.isArray(t))for(n=0,r=t.length;nr.promises})},function(t,e){t.exports=require("util")},function(t,e){t.exports=require("buffer")},function(t,e){t.exports=require("fs")},function(t,e,n){var r=n(5),i=n(135),o=n(136),a=n(137),s=[],c=n(3);var l,u,p=function(){};function f(t){i(t),t.gracefulify=f,t.FileReadStream=p,t.FileWriteStream=g,t.createReadStream=function(t,e){return new p(t,e)},t.createWriteStream=function(t,e){return new g(t,e)};var e=t.readFile;t.readFile=function(t,n,r){"function"==typeof n&&(r=n,n=null);return function t(n,r,i){return e(n,r,function(e){!e||"EMFILE"!==e.code&&"ENFILE"!==e.code?("function"==typeof i&&i.apply(this,arguments),d()):h([t,[n,r,i]])})}(t,n,r)};var n=t.writeFile;t.writeFile=function(t,e,r,i){"function"==typeof r&&(i=r,r=null);return function t(e,r,i,o){return n(e,r,i,function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?("function"==typeof o&&o.apply(this,arguments),d()):h([t,[e,r,i,o]])})}(t,e,r,i)};var r=t.appendFile;r&&(t.appendFile=function(t,e,n,i){"function"==typeof n&&(i=n,n=null);return function t(e,n,i,o){return r(e,n,i,function(r){!r||"EMFILE"!==r.code&&"ENFILE"!==r.code?("function"==typeof o&&o.apply(this,arguments),d()):h([t,[e,n,i,o]])})}(t,e,n,i)});var a=t.readdir;function s(e){return a.apply(t,e)}if(t.readdir=function(t,e,n){var r=[t];"function"!=typeof e?r.push(e):n=e;return r.push(function(t,e){e&&e.sort&&e.sort(),!t||"EMFILE"!==t.code&&"ENFILE"!==t.code?("function"==typeof n&&n.apply(this,arguments),d()):h([s,[r]])}),s(r)},"v0.8"===process.version.substr(0,4)){var c=o(t);p=c.ReadStream,g=c.WriteStream}var l=t.ReadStream;l&&(p.prototype=Object.create(l.prototype),p.prototype.open=function(){var t=this;_(t.path,t.flags,t.mode,function(e,n){e?(t.autoClose&&t.destroy(),t.emit("error",e)):(t.fd=n,t.emit("open",n),t.read())})});var u=t.WriteStream;function p(t,e){return this instanceof p?(l.apply(this,arguments),this):p.apply(Object.create(p.prototype),arguments)}function g(t,e){return this instanceof g?(u.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}u&&(g.prototype=Object.create(u.prototype),g.prototype.open=function(){var t=this;_(t.path,t.flags,t.mode,function(e,n){e?(t.destroy(),t.emit("error",e)):(t.fd=n,t.emit("open",n))})}),t.ReadStream=p,t.WriteStream=g;var m=t.open;function _(t,e,n,r){return"function"==typeof n&&(r=n,n=null),function t(e,n,r,i){return m(e,n,r,function(o,a){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?("function"==typeof i&&i.apply(this,arguments),d()):h([t,[e,n,r,i]])})}(t,e,n,r)}return t.open=_,t}function h(t){p("ENQUEUE",t[0].name,t[1]),s.push(t)}function d(){var t=s.shift();t&&(p("RETRY",t[0].name,t[1]),t[0].apply(null,t[1]))}c.debuglog?p=c.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(p=function(){var t=c.format.apply(c,arguments);t="GFS4: "+t.split(/\n/).join("\nGFS4: "),console.error(t)}),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){p(s),n(20).equal(s.length,0)}),t.exports=f(a(r)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!r.__patched&&(t.exports=f(r),r.__patched=!0),t.exports.close=(l=r.close,function(t,e){return l.call(r,t,function(t){t||d(),"function"==typeof e&&e.apply(this,arguments)})}),t.exports.closeSync=(u=r.closeSync,function(t){var e=u.apply(r,arguments);return d(),e}),/\bgraceful-fs\b/.test(r.closeSync.toString())||(r.closeSync=t.exports.closeSync,r.close=t.exports.close)},function(t,e){t.exports=require("stream")},function(t,e,n){"use strict";e.fromCallback=function(t){return Object.defineProperty(function(){if("function"!=typeof arguments[arguments.length-1])return new Promise((e,n)=>{arguments[arguments.length]=(t,r)=>{if(t)return n(t);e(r)},arguments.length++,t.apply(this,arguments)});t.apply(this,arguments)},"name",{value:t.name})},e.fromPromise=function(t){return Object.defineProperty(function(){const e=arguments[arguments.length-1];if("function"!=typeof e)return t.apply(this,arguments);t.apply(this,arguments).then(t=>e(null,t),e)},"name",{value:t.name})}},function(t,e,n){(function(){var e,r,i,o,a,s,c,l,u,p,f,h,d={}.hasOwnProperty;h=n(15),f=h.isObject,p=h.isFunction,u=h.isEmpty,a=null,e=null,r=null,i=null,o=null,c=null,l=null,s=null,t.exports=function(){function t(t){this.parent=t,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.children=[],a||(a=n(31),e=n(32),r=n(33),i=n(34),o=n(35),c=n(40),l=n(41),s=n(42))}return t.prototype.element=function(t,e,n){var r,i,o,a,s,c,l,h,g,m;if(c=null,null==e&&(e={}),e=e.valueOf(),f(e)||(n=(g=[e,n])[0],e=g[1]),null!=t&&(t=t.valueOf()),Array.isArray(t))for(o=0,l=t.length;o!0).catch(()=>!1)}),pathExistsSync:i.existsSync}},function(t,e,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function i(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)i(n,r)&&(t[r]=n[r])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var o={arraySet:function(t,e,n,r,i){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+r),i);else for(var o=0;on&&s>0?(a+=t.common.lineHeight,o=i[s]+" "):o=c}return a}n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i})},function(t,e){t.exports=require("events")},function(t,e,n){try{var r=n(3);if("function"!=typeof r.inherits)throw"";t.exports=r.inherits}catch(e){t.exports=n(225)}},function(t,e,n){"use strict";var r=n(43),i=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=p;var o=n(23);o.inherits=n(18);var a=n(97),s=n(100);o.inherits(p,a);for(var c=i(s.prototype),l=0;l1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}if(t=B(t,360),e=B(e,100),n=B(n,100),0===e)r=i=o=n;else{var s=n<.5?n*(1+e):n+e-n*e,c=2*n-s;r=a(c,s,t+1/3),i=a(c,s,t),o=a(c,s,t-1/3)}return{r:255*r,g:255*i,b:255*o}}(t.h,r,c),p=!0,f="hsl"),t.hasOwnProperty("a")&&(n=t.a));var h,d,g;return n=D(n),{ok:p,format:t.format||f,r:l(255,u(e.r,0)),g:l(255,u(e.g,0)),b:l(255,u(e.b,0)),a:n}}(t);this._originalInput=t,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=c(100*this._a)/100,this._format=e.format||n.format,this._gradientType=e.gradientType,this._r<1&&(this._r=c(this._r)),this._g<1&&(this._g=c(this._g)),this._b<1&&(this._b=c(this._b)),this._ok=n.ok,this._tc_id=s++}function h(t,e,n){t=B(t,255),e=B(e,255),n=B(n,255);var r,i,o=u(t,e,n),a=l(t,e,n),s=(o+a)/2;if(o==a)r=i=0;else{var c=o-a;switch(i=s>.5?c/(2-o-a):c/(o+a),o){case t:r=(e-n)/c+(e>1)+720)%360;--e;)r.h=(r.h+i)%360,o.push(f(r));return o}function A(t,e){e=e||6;for(var n=f(t).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/e;e--;)a.push(f({h:r,s:i,v:o})),o=(o+s)%1;return a}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,n,r=this.toRgb();return t=r.r/255,e=r.g/255,n=r.b/255,.2126*(t<=.03928?t/12.92:i.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:i.pow((e+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:i.pow((n+.055)/1.055,2.4))},setAlpha:function(t){return this._a=D(t),this._roundA=c(100*this._a)/100,this},toHsv:function(){var t=d(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=d(this._r,this._g,this._b),e=c(360*t.h),n=c(100*t.s),r=c(100*t.v);return 1==this._a?"hsv("+e+", "+n+"%, "+r+"%)":"hsva("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var t=h(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=h(this._r,this._g,this._b),e=c(360*t.h),n=c(100*t.s),r=c(100*t.l);return 1==this._a?"hsl("+e+", "+n+"%, "+r+"%)":"hsla("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(t){return g(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,n,r,i){var o=[z(c(t).toString(16)),z(c(e).toString(16)),z(c(n).toString(16)),z(R(r))];if(i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:c(this._r),g:c(this._g),b:c(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+c(this._r)+", "+c(this._g)+", "+c(this._b)+")":"rgba("+c(this._r)+", "+c(this._g)+", "+c(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:c(100*B(this._r,255))+"%",g:c(100*B(this._g,255))+"%",b:c(100*B(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+c(100*B(this._r,255))+"%, "+c(100*B(this._g,255))+"%, "+c(100*B(this._b,255))+"%)":"rgba("+c(100*B(this._r,255))+"%, "+c(100*B(this._g,255))+"%, "+c(100*B(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(P[g(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+m(this._r,this._g,this._b,this._a),n=e,r=this._gradientType?"GradientType = 1, ":"";if(t){var i=f(t);n="#"+m(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+e+",endColorstr="+n+")"},toString:function(t){var e=!!t;t=t||this._format;var n=!1,r=this._a<1&&this._a>=0;return e||!r||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(n=this.toRgbString()),"prgb"===t&&(n=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(n=this.toHexString()),"hex3"===t&&(n=this.toHexString(!0)),"hex4"===t&&(n=this.toHex8String(!0)),"hex8"===t&&(n=this.toHex8String()),"name"===t&&(n=this.toName()),"hsl"===t&&(n=this.toHslString()),"hsv"===t&&(n=this.toHsvString()),n||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return f(this.toString())},_applyModification:function(t,e){var n=t.apply(null,[this].concat([].slice.call(e)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(v,arguments)},brighten:function(){return this._applyModification(x,arguments)},darken:function(){return this._applyModification(w,arguments)},desaturate:function(){return this._applyModification(_,arguments)},saturate:function(){return this._applyModification(b,arguments)},greyscale:function(){return this._applyModification(y,arguments)},spin:function(){return this._applyModification(k,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(O,arguments)},complement:function(){return this._applyCombination(E,arguments)},monochromatic:function(){return this._applyCombination(A,arguments)},splitcomplement:function(){return this._applyCombination(T,arguments)},triad:function(){return this._applyCombination(S,arguments)},tetrad:function(){return this._applyCombination(I,arguments)}},f.fromRatio=function(t,e){if("object"==typeof t){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]="a"===r?t[r]:M(t[r]));t=n}return f(t,e)},f.equals=function(t,e){return!(!t||!e)&&f(t).toRgbString()==f(e).toRgbString()},f.random=function(){return f.fromRatio({r:p(),g:p(),b:p()})},f.mix=function(t,e,n){n=0===n?0:n||50;var r=f(t).toRgb(),i=f(e).toRgb(),o=n/100;return f({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a})},f.readability=function(t,e){var n=f(t),r=f(e);return(i.max(n.getLuminance(),r.getLuminance())+.05)/(i.min(n.getLuminance(),r.getLuminance())+.05)},f.isReadable=function(t,e,n){var r,i,o=f.readability(t,e);switch(i=!1,(r=function(t){var e,n;e=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(t.size||"small").toLowerCase(),"AA"!==e&&"AAA"!==e&&(e="AA");"small"!==n&&"large"!==n&&(n="small");return{level:e,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":i=o>=4.5;break;case"AAlarge":i=o>=3;break;case"AAAsmall":i=o>=7}return i},f.mostReadable=function(t,e,n){var r,i,o,a,s=null,c=0;i=(n=n||{}).includeFallbackColors,o=n.level,a=n.size;for(var l=0;lc&&(c=r,s=f(e[l]));return f.isReadable(t,s,{level:o,size:a})||!i?s:(n.includeFallbackColors=!1,f.mostReadable(t,["#fff","#000"],n))};var C=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},P=f.hexNames=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}(C);function D(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function B(t,e){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var n=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=l(e,u(0,parseFloat(t))),n&&(t=parseInt(t*e,10)/100),i.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function L(t){return l(1,u(0,t))}function N(t){return parseInt(t,16)}function z(t){return 1==t.length?"0"+t:""+t}function M(t){return t<=1&&(t=100*t+"%"),t}function R(t){return i.round(255*parseFloat(t)).toString(16)}function j(t){return N(t)/255}var F,U,G,H=(U="[\\s|\\(]+("+(F="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+F+")[,|\\s]+("+F+")\\s*\\)?",G="[\\s|\\(]+("+F+")[,|\\s]+("+F+")[,|\\s]+("+F+")[,|\\s]+("+F+")\\s*\\)?",{CSS_UNIT:new RegExp(F),rgb:new RegExp("rgb"+U),rgba:new RegExp("rgba"+G),hsl:new RegExp("hsl"+U),hsla:new RegExp("hsla"+G),hsv:new RegExp("hsv"+U),hsva:new RegExp("hsva"+G),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function W(t){return!!H.CSS_UNIT.exec(t)}t.exports?t.exports=f:void 0===(r=function(){return f}.call(e,n,e,t))||(t.exports=r)}(Math)},function(t,e,n){var r=n(160);function i(t,e){var n=new r(t,e);return function(t){return n.convert(t)}}i.BIN="01",i.OCT="01234567",i.DEC="0123456789",i.HEX="0123456789abcdef",t.exports=i},function(t,e){function n(t,e){this.size=this.size||t,this.smallerSize=this.smallerSize||e,function(t){for(var e=1;eu?"1":"0";return p};var i=[];t.exports=n},function(t,e,n){!function(){var e={};function r(){"undefined"==typeof process&&console.log.apply(console,arguments)}t.exports=e,function(t,e){var n,i,o;n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function t(t){this.message="JPEG error: "+t}return t.prototype=Error(),t.prototype.name="JpegError",t.constructor=t}(),o=function(){function t(t,e){this.message=t,this.g=e}return t.prototype=Error(),t.prototype.name="DNLMarkerError",t.constructor=t}(),function(){function e(){this.M=null,this.B=-1}function r(t,e){for(var n,r,i=0,o=[],a=16;0>--A&1;if(255===(O=t[e++])){var n=t[e++];if(n){if(220===n&&S){e+=2;var a=t[e++]<<8|t[e++];if(0>>7}function g(t){for(;;){if("number"==typeof(t=t[d()]))return t;if("object"!==(void 0===t?"undefined":n(t)))throw new i("invalid huffman sequence")}}function m(t){for(var e=0;0=1<>=4,0===i){if(15>r){C=m(r)+(1<t.a[n]?-1:1;switch(P){case 0:if(n=15&(o=g(t.o)),o>>=4,0===n)15>o?(C=m(o)+(1<n;){var r=g(t.o),i=15&r;if(r>>=4,0===i){if(15>r)break;n+=16}else n+=r,t.a[e+l[n]]=_(i),n++}},L=0,N=1===D?a[0].c*a[0].l:I*r.O;L=M)throw new i("marker was not found");if(!(65488<=M&&65495>=M))break;e+=2}return(M=c(t,e))&&M.f&&((0,_util.warn)("decodeScan - unexpected Scan data, current marker is: "+M.f),e=M.offset),e-T}function s(t,e){for(var n=e.c,r=e.l,o=new Int16Array(64),a=0;af;f+=8){var h=p[c+f],d=p[c+f+1],g=p[c+f+2],m=p[c+f+3],_=p[c+f+4],b=p[c+f+5],y=p[c+f+6],v=p[c+f+7];if(h*=u[f],0==(d|g|m|_|b|y|v))h=5793*h+512>>10,l[f]=h,l[f+1]=h,l[f+2]=h,l[f+3]=h,l[f+4]=h,l[f+5]=h,l[f+6]=h,l[f+7]=h;else{d*=u[f+1],g*=u[f+2],m*=u[f+3],_*=u[f+4],b*=u[f+5];var x=5793*h+128>>8,w=5793*_+128>>8,k=g,E=y*=u[f+6];w=(x=x+w+1>>1)-w,h=3784*k+1567*E+128>>8,k=1567*k-3784*E+128>>8,b=(_=(_=2896*(d-(v*=u[f+7]))+128>>8)+(b<<=4)+1>>1)-b,m=(v=(v=2896*(d+v)+128>>8)+(m<<=4)+1>>1)-m,E=(x=x+(E=h)+1>>1)-E,k=(w=w+k+1>>1)-k,h=2276*_+3406*v+2048>>12,_=3406*_-2276*v+2048>>12,v=h,h=799*m+4017*b+2048>>12,m=4017*m-799*b+2048>>12,b=h,l[f]=x+v,l[f+7]=x-v,l[f+1]=w+b,l[f+6]=w-b,l[f+2]=k+m,l[f+5]=k-m,l[f+3]=E+_,l[f+4]=E-_}}for(u=0;8>u;++u)h=l[u],0==((d=l[u+8])|(g=l[u+16])|(m=l[u+24])|(_=l[u+32])|(b=l[u+40])|(y=l[u+48])|(v=l[u+56]))?(h=-2040>(h=5793*h+8192>>14)?0:2024<=h?255:h+2056>>4,p[c+u]=h,p[c+u+8]=h,p[c+u+16]=h,p[c+u+24]=h,p[c+u+32]=h,p[c+u+40]=h,p[c+u+48]=h,p[c+u+56]=h):(x=5793*h+2048>>12,w=5793*_+2048>>12,h=3784*(k=g)+1567*(E=y)+2048>>12,k=1567*k-3784*E+2048>>12,E=h,b=(_=(_=2896*(d-v)+2048>>12)+b+1>>1)-b,m=(v=(v=2896*(d+v)+2048>>12)+m+1>>1)-m,h=2276*_+3406*v+2048>>12,_=3406*_-2276*v+2048>>12,v=h,h=799*m+4017*b+2048>>12,m=4017*m-799*b+2048>>12,d=(w=(w=(x=4112+(x+w+1>>1))-w)+k+1>>1)+(b=h),y=w-b,b=(k=w-k)-m,h=16>(h=(x=x+E+1>>1)+v)?0:4080<=h?255:h>>4,d=16>d?0:4080<=d?255:d>>4,g=16>(g=k+m)?0:4080<=g?255:g>>4,m=16>(m=(E=x-E)+_)?0:4080<=m?255:m>>4,_=16>(_=E-_)?0:4080<=_?255:_>>4,b=16>b?0:4080<=b?255:b>>4,y=16>y?0:4080<=y?255:y>>4,v=16>(v=x-v)?0:4080<=v?255:v>>4,p[c+u]=h,p[c+u+8]=d,p[c+u+16]=g,p[c+u+24]=m,p[c+u+32]=_,p[c+u+40]=b,p[c+u+48]=y,p[c+u+56]=v)}return e.a}function c(t,e){var n=2=r)return null;var i=t[e]<<8|t[e+1];if(65472<=i&&65534>=i)return{f:null,F:i,offset:e};for(var o=t[n]<<8|t[n+1];!(65472<=o&&65534>=o);){if(++n>=r)return null;o=t[n]<<8|t[n+1]}return{f:i.toString(16),F:o,offset:n}}var l=new Uint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]);e.prototype={parse:function(t){function e(){var e=t[h]<<8|t[h+1];return h+=2,e}function n(){var n=e(),r=c(t,n=h+n-2,h);return r&&r.f&&((0,_util.warn)("readDataBlock - incorrect length, current marker is: "+r.f),n=r.offset),n=t.subarray(h,n),h+=n.length,n}function u(t){for(var e=Math.ceil(t.v/8/t.s),n=Math.ceil(t.g/8/t.u),r=0;r>4)for(y=0;64>y;y++)w[v=l[y]]=t[h++];else{if(1!=x>>4)throw new i("DQT - invalid table spec");for(y=0;64>y;y++)w[v=l[y]]=e()}p[15&x]=w}break;case 65472:case 65473:case 65474:if(k)throw new i("Only single frame JPEGs supported");e();var k={};for(k.X=65473===b,k.S=65474===b,k.precision=t[h++],b=e(),k.g=f||b,k.v=e(),k.b=[],k.C={},y=t[h++],b=w=x=0;b>4,S=15&t[h+1];xy;y++,h++)E+=w[y]=t[h];for(S=new Uint8Array(E),y=0;y>4?_:m)[15&x]=r(w,S)}break;case 65501:e();var I=e();break;case 65498:for(y=1==++g&&!f,e(),x=t[h++],v=[],b=0;b>4],T.o=m[15&w],v.push(T)}b=t[h++],x=t[h++],w=t[h++];try{var O=a(t,h,k,v,I,b,x,w>>4,15&w,y);h+=O}catch(e){if(e instanceof o)return(0,_util.warn)('Attempting to re-parse JPEG image using "scanLines" parameter found in DNL marker (0xFFDC) segment.'),this.parse(t,{N:e.g});throw e}break;case 65500:h+=4;break;case 65535:255!==t[h]&&h--;break;default:if(255===t[h-3]&&192<=t[h-2]&&254>=t[h-2])h-=3;else{if(!(y=c(t,h-2))||!y.f)throw new i("unknown marker "+b.toString(16));(0,_util.warn)("JpegImage.parse - unexpected data, current marker is: "+y.f),h=y.offset}}b=e()}for(this.width=k.v,this.height=k.g,this.A=d,this.b=[],b=0;b>8)+o[i+1];return c},w:function(){return this.A?!!this.A.W:3===this.i?0!==this.B:1===this.B},I:function(t){for(var e,n,r,i=0,o=t.length;i>>3)]),null==h&&(h=s.t325);var d=new Uint8Array(s.height*(p>>>3)),g=0;if(null!=s.t322){for(var m=s.t322[0],_=s.t323[0],b=Math.floor((s.width+m-1)/m),y=Math.floor((s.height+_-1)/_),v=new Uint8Array(0|Math.ceil(m*_*u/8)),x=0;x>>8;else{if(12!=d)throw new Error("unsupported bit depth "+d);for(p=0;p>>4,o[a++]=255&(g[p]<<4|g[p+1]>>>8),o[a++]=255&g[p+1]}}else{var _=new t.JpegDecoder;_.parse(l);var b=_.getData(_.width,_.height);for(p=0;p1),!f){if(255==e[n]&&216==e[n+1])return{jpegOffset:n};if(null!=h&&(255==e[n+d]&&216==e[n+d+1]?u=n+d:r("JPEGInterchangeFormat does not point to SOI"),null==g?r("JPEGInterchangeFormatLength field is missing"):(d>=p||d+m<=p)&&r("JPEGInterchangeFormatLength field value is invalid"),null!=u))return{jpegOffset:u}}if(null!=b&&(y=b[0],v=b[1]),null!=h&&null!=g)if(m>=2&&d+m<=p){for(o=255==e[n+d+m-2]&&216==e[n+d+m-1]?new Uint8Array(m-2):new Uint8Array(m),s=0;s offset to first strip or tile");if(null==o){var k=0,E=[];E[k++]=255,E[k++]=216;var S=t.t519;if(null==S)throw new Error("JPEGQTables tag is missing");for(s=0;s>>8,E[k++]=255&T,E[k++]=s|l<<4,c=0;c<16;c++)E[k++]=e[n+I[s]+c];for(c=0;c>>8&255,E[k++]=255&t.height,E[k++]=t.width>>>8&255,E[k++]=255&t.width,E[k++]=x,1==x)E[k++]=1,E[k++]=17,E[k++]=0;else for(s=0;s<3;s++)E[k++]=s+1,E[k++]=0!=s?17:(15&y)<<4|15&v,E[k++]=s;null!=w&&0!=w[0]&&(E[k++]=255,E[k++]=221,E[k++]=0,E[k++]=4,E[k++]=w[0]>>>8&255,E[k++]=255&w[0]),o=new Uint8Array(E)}var O=-1;for(s=0;s>>8&255,o[C++]=255&t.height,o[C++]=t.width>>>8&255,o[C++]=255&t.width,o[C++]=x,1==x)o[C++]=1,o[C++]=17,o[C++]=0;else for(s=0;s<3;s++)o[C++]=s+1,o[C++]=0!=s?17:(15&y)<<4|15&v,o[C++]=s}if(255==e[p]&&218==e[p+1]){var P=e[p+2]<<8|e[p+3];for((a=new Uint8Array(P+2))[0]=e[p],a[1]=e[p+1],a[2]=e[p+2],a[3]=e[p+3],s=0;s>>8&255,l[u.sofPosition+6]=255&e.height,l[u.sofPosition+7]=e.width>>>8&255,l[u.sofPosition+8]=255&e.width,255==n[r]&&n[r+1]==SOS||(l.set(u.sosMarker,bufoff),bufoff+=sosMarker.length),h=0;h=0&&c<128)for(var l=0;l=-127&&c<0){for(l=0;l<1-c;l++)a[i]=o[e],i++;e++}}},t.decode._decodeThunder=function(t,e,n,r,i){for(var o=[0,1,0,-1],a=[0,1,2,3,0,-3,-2,-1],s=e+n,c=2*i,l=0;e>>6,f=63&u;if(e++,3==p&&(l=15&f,r[c>>>1]|=l<<4*(1-c&1),c++),0==p)for(var h=0;h>>1]|=l<<4*(1-c&1),c++;if(2==p)for(h=0;h<2;h++){4!=(d=f>>>3*(1-h)&7)&&(l+=a[d],r[c>>>1]|=l<<4*(1-c&1),c++)}if(1==p)for(h=0;h<3;h++){var d;2!=(d=f>>>2*(2-h)&3)&&(l+=o[d],r[c>>>1]|=l<<4*(1-c&1),c++)}}},t.decode._dmap={1:0,"011":1,"000011":2,"0000011":3,"010":-1,"000010":-2,"0000010":-3},t.decode._lens=function(){var t=function(t,e,n,r){for(var i=0;i>>3>>3]>>>7-(7&l)&1),2==s&&(E=e[l>>>3]>>>(7&l)&1),l++,p+=E,"H"==x){if(null!=c._lens[y][p]){var S=c._lens[y][p];p="",u+=S,S<64&&(c._addNtimes(f,u,y),g+=u,y=1-y,u=0,0==--w&&(x=""))}}else"0001"==p&&(p="",c._addNtimes(f,b-g,y),g=b),"001"==p&&(p="",x="H",w=2),null!=c._dmap[p]&&(m=_+c._dmap[p],c._addNtimes(f,m-g,y),g=m,p="",y=1-y);f.length==a&&""==x&&(c._writeBits(f,i,8*o+v*k),y=0,v++,g=0,h=c._makeDiff(f),f=[])}},t.decode._findDiff=function(t,e,n){for(var r=0;r=e&&t[r+1]==n)return t[r]},t.decode._makeDiff=function(t){var e=[];1==t[0]&&e.push(0,1);for(var n=1;n>>3>>3]>>>7-(7&l)&1),2==s&&(S=e[l>>>3]>>>(7&l)&1),l++,p+=S,k){if(null!=c._lens[y][p]){var I=c._lens[y][p];p="",u+=I,I<64&&(c._addNtimes(f,u,y),y=1-y,u=0)}}else if("H"==x){if(null!=c._lens[y][p]){I=c._lens[y][p];p="",u+=I,I<64&&(c._addNtimes(f,u,y),g+=u,y=1-y,u=0,0==--w&&(x=""))}}else"0001"==p&&(p="",c._addNtimes(f,b-g,y),g=b),"001"==p&&(p="",x="H",w=2),null!=c._dmap[p]&&(m=_+c._dmap[p],c._addNtimes(f,m-g,y),g=m,p="",y=1-y);p.endsWith("000000000001")&&(v>=0&&c._writeBits(f,i,8*o+v*E),1==s&&(k=1==(e[l>>>3]>>>7-(7&l)&1)),2==s&&(k=1==(e[l>>>3]>>>(7&l)&1)),l++,null==c._decodeG3.allow2D&&(c._decodeG3.allow2D=k),c._decodeG3.allow2D||(k=!0,l--),p="",y=0,v++,g=0,h=c._makeDiff(f),f=[])}f.length==a&&c._writeBits(f,i,8*o+v*E)},t.decode._addNtimes=function(t,e,n){for(var r=0;r>>3]|=t[r]<<7-(n+r&7)},t.decode._decodeLZW=function(e,n,r,i){if(null==t.decode._lzwTab){for(var o=new Uint32Array(65535),a=new Uint16Array(65535),s=new Uint8Array(2e6),c=0;c<256;c++)s[c<<2]=c,o[c]=c<<2,a[c]=1;t.decode._lzwTab=[o,a,s]}for(var l=t.decode._copyData,u=t.decode._lzwTab[0],p=t.decode._lzwTab[1],f=(s=t.decode._lzwTab[2],258),h=1032,d=9,g=n<<3,m=0,_=0;m=(e[g>>>3]<<16|e[g+8>>>3]<<8|e[g+16>>>3])>>24-(7&g)-d&(1<>>3]<<16|e[g+8>>>3]<<8|e[g+16>>>3])>>24-(7&g)-d&(1<=f)u[f]=h,s[u[f]]=b[0],p[f]=1,h=h+1+3&-4,f++;else u[f]=h,l(s,u[_],s,h,v=p[_]),s[h+v]=s[b],v++,p[f]=v,f++,h=h+v+3&-4;f+1==1<=f)u[f]=h,p[f]=0,f++;else u[f]=h,l(s,u[_],s,h,v=p[_]),s[h+v]=s[h],v++,p[f]=v,f++,l(s,h,r,i,v),i+=v,h=h+v+3&-4;f+1==1<4&&(e.writeUint(n,r,a),d=a),2==u&&e.writeASCII(n,d,p),3==u)for(var g=0;g4&&(a+=h+=1&h),r+=4}return[r,a]},t.toRGBA8=function(t){var e=t.width,n=t.height,i=e*n,o=4*i,a=t.data,s=new Uint8Array(4*i),c=t.t262[0],l=t.t258?Math.min(32,t.t258[0]):1,u=t.isLE?1:0;if(0==c)for(var p=Math.ceil(l*e/8),f=0;f>3)]>>7-(7&g)&1;s[m]=s[m+1]=s[m+2]=255*(1-_),s[m+3]=255}if(4==l)for(g=0;g>1)]>>4-4*(1&g)&15;s[m]=s[m+1]=s[m+2]=17*(15-_),s[m+3]=255}if(8==l)for(g=0;g>3)]>>7-(7&g)&1;s[m]=s[m+1]=s[m+2]=255*_,s[m+3]=255}if(2==l)for(g=0;g>2)]>>6-2*(3&g)&3;s[m]=s[m+1]=s[m+2]=85*_,s[m+3]=255}if(8==l)for(g=0;g0)for(g=0;g>8,s[m+1]=y[256+v]>>8,s[m+2]=y[512+v]>>8,s[m+3]=255}}else if(5==c){var x,w=(x=t.t258?t.t258.length:4)>4?1:0;for(g=0;g>8&255,t[e+1]=255&n},writeUint:function(t,e,n){t[e]=n>>24&255,t[e+1]=n>>16&255,t[e+2]=n>>8&255,t[e+3]=n>>0&255},writeASCII:function(t,e,n){for(var r=0;ro)return!0;if(l===o){if(u>a)return!0;if(u===a&&p>=s)return!0}return!1}function h(t,e){const n=i.resolve(t).split(i.sep).filter(t=>t),r=i.resolve(e).split(i.sep).filter(t=>t);return n.reduce((t,e,n)=>t&&r[n]===e,!0)}function d(t,e,n){return`Cannot ${n} '${t}' to a subdirectory of itself, '${e}'.`}t.exports={checkPaths:function(t,e,n,i){!function(t,e,n){f()?r.stat(t,{bigint:!0},(t,i)=>{if(t)return n(t);r.stat(e,{bigint:!0},(t,e)=>t?"ENOENT"===t.code?n(null,{srcStat:i,destStat:null}):n(t):n(null,{srcStat:i,destStat:e}))}):r.stat(t,(t,i)=>{if(t)return n(t);r.stat(e,(t,e)=>t?"ENOENT"===t.code?n(null,{srcStat:i,destStat:null}):n(t):n(null,{srcStat:i,destStat:e}))})}(t,e,(r,o)=>{if(r)return i(r);const{srcStat:a,destStat:s}=o;return s&&s.ino&&s.dev&&s.ino===a.ino&&s.dev===a.dev?i(new Error("Source and destination must not be the same.")):a.isDirectory()&&h(t,e)?i(new Error(d(t,e,n))):i(null,{srcStat:a,destStat:s})})},checkPathsSync:function(t,e,n){const{srcStat:i,destStat:o}=function(t,e){let n,i;n=f()?r.statSync(t,{bigint:!0}):r.statSync(t);try{i=f()?r.statSync(e,{bigint:!0}):r.statSync(e)}catch(t){if("ENOENT"===t.code)return{srcStat:n,destStat:null};throw t}return{srcStat:n,destStat:i}}(t,e);if(o&&o.ino&&o.dev&&o.ino===i.ino&&o.dev===i.dev)throw new Error("Source and destination must not be the same.");if(i.isDirectory()&&h(t,e))throw new Error(d(t,e,n));return{srcStat:i,destStat:o}},checkParentPaths:function t(e,n,o,a,s){const c=i.resolve(i.dirname(e)),l=i.resolve(i.dirname(o));if(l===c||l===i.parse(l).root)return s();f()?r.stat(l,{bigint:!0},(r,i)=>r?"ENOENT"===r.code?s():s(r):i.ino&&i.dev&&i.ino===n.ino&&i.dev===n.dev?s(new Error(d(e,o,a))):t(e,n,l,a,s)):r.stat(l,(r,i)=>r?"ENOENT"===r.code?s():s(r):i.ino&&i.dev&&i.ino===n.ino&&i.dev===n.dev?s(new Error(d(e,o,a))):t(e,n,l,a,s))},checkParentPathsSync:function t(e,n,o,a){const s=i.resolve(i.dirname(e)),c=i.resolve(i.dirname(o));if(c===s||c===i.parse(c).root)return;let l;try{l=f()?r.statSync(c,{bigint:!0}):r.statSync(c)}catch(t){if("ENOENT"===t.code)return;throw t}if(l.ino&&l.dev&&l.ino===n.ino&&l.dev===n.dev)throw new Error(d(e,o,a));return t(e,n,c,a)},isSrcSubdir:h}},function(t,e,n){"use strict";const r=n(8).fromCallback,i=n(144);t.exports={remove:r(i),removeSync:i.sync}},function(t,e,n){(function(){var e,r,i,o,a,s={}.hasOwnProperty;a=n(15),o=a.isObject,i=a.isFunction,r=n(9),e=n(89),t.exports=function(t){function n(t,e,r){if(n.__super__.constructor.call(this,t),null==e)throw new Error("Missing element name");this.name=this.stringify.eleName(e),this.attributes={},null!=r&&this.attribute(r),t.isDocument&&(this.isRoot=!0,this.documentObject=t,t.rootObject=this)}return function(t,e){for(var n in e)s.call(e,n)&&(t[n]=e[n]);function r(){this.constructor=t}r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype}(n,r),n.prototype.clone=function(){var t,e,n,r;for(e in(n=Object.create(this)).isRoot&&(n.documentObject=null),n.attributes={},r=this.attributes)s.call(r,e)&&(t=r[e],n.attributes[e]=t.clone());return n.children=[],this.children.forEach(function(t){var e;return(e=t.clone()).parent=n,n.children.push(e)}),n},n.prototype.attribute=function(t,n){var r,a;if(null!=t&&(t=t.valueOf()),o(t))for(r in t)s.call(t,r)&&(a=t[r],this.attribute(r,a));else i(n)&&(n=n.apply()),this.options.skipNullAttributes&&null==n||(this.attributes[t]=new e(this,t,n));return this},n.prototype.removeAttribute=function(t){var e,n,r;if(null==t)throw new Error("Missing attribute name");if(t=t.valueOf(),Array.isArray(t))for(n=0,r=t.length;n3?p-3:0),h=3;h=t.length||e<0?t:t.slice(0,e).concat(t.slice(e+1))}function _(t,e,n){if(t[e]===n)return t;for(var r=t.length,i=Array(r),o=0;o6?a-6:0),c=6;c6?a-6:0),c=6;c7?c-7:0),p=7;p=0||(o[u]=t[u])}return o}function T(t,e,n,r,i,o){for(var a=arguments.length,s=Array(a>6?a-6:0),c=6;c0&&this.height>0?new Buffer(4*this.width*this.height):null,t.fill&&this.data&&this.data.fill(0),this.gamma=0,this.readable=this.writable=!0,this._parser=new o(t),this._parser.on("error",this.emit.bind(this,"error")),this._parser.on("close",this._handleClose.bind(this)),this._parser.on("metadata",this._metadata.bind(this)),this._parser.on("gamma",this._gamma.bind(this)),this._parser.on("parsed",function(t){this.data=t,this.emit("parsed",t)}.bind(this)),this._packer=new a(t),this._packer.on("data",this.emit.bind(this,"data")),this._packer.on("end",this.emit.bind(this,"end")),this._parser.on("close",this._handleClose.bind(this)),this._packer.on("error",this.emit.bind(this,"error"))};r.inherits(c,i),c.sync=s,c.prototype.pack=function(){return this.data&&this.data.length?(process.nextTick(function(){this._packer.pack(this.data,this.width,this.height,this.gamma)}.bind(this)),this):(this.emit("error","No data provided"),this)},c.prototype.parse=function(t,e){var n,r;e&&(n=function(t){this.removeListener("error",r),this.data=t,e(null,this)}.bind(this),r=function(t){this.removeListener("parsed",n),e(t,null)}.bind(this),this.once("parsed",n),this.once("error",r));return this.end(t),this},c.prototype.write=function(t){return this._parser.write(t),!0},c.prototype.end=function(t){this._parser.end(t)},c.prototype._metadata=function(t){this.width=t.width,this.height=t.height,this.emit("metadata",t)},c.prototype._gamma=function(t){this.gamma=t},c.prototype._handleClose=function(){this._parser.writable||this._packer.readable||this.emit("close")},c.bitblt=function(t,e,n,r,i,o,a,s){if(r|=0,i|=0,o|=0,a|=0,s|=0,(n|=0)>t.width||r>t.height||n+i>t.width||r+o>t.height)throw new Error("bitblt reading outside image");if(a>e.width||s>e.height||a+i>e.width||s+o>e.height)throw new Error("bitblt writing outside image");for(var c=0;c"+this.newline},n.prototype.comment=function(t,e){return this.space(e)+"\x3c!-- "+t.text+" --\x3e"+this.newline},n.prototype.declaration=function(t,e){var n;return n=this.space(e),n+='",n+=this.newline},n.prototype.docType=function(t,n){var c,l,u,f,h;if(n||(n=0),f=this.space(n),f+="0){for(f+=" [",f+=this.newline,l=0,u=(h=t.children).length;l",f+=this.newline},n.prototype.element=function(t,n){var i,o,a,s,c,l,d,m,_,b,y,v,x;for(d in n||(n=0),x=!1,this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),m="",m+=(v=this.space(n))+"<"+t.name,_=t.attributes)g.call(_,d)&&(i=_[d],m+=this.attribute(i));if(0===t.children.length||t.children.every(function(t){return""===t.value}))this.allowEmpty?m+=">"+this.newline:m+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&1===t.children.length&&null!=t.children[0].value)m+=">",m+=t.children[0].value,m+=""+this.newline;else{if(this.dontprettytextnodes)for(a=0,c=(b=t.children).length;a"+this.newline,s=0,l=(y=t.children).length;s"+this.newline}return m},n.prototype.processingInstruction=function(t,e){var n;return n=this.space(e)+""+this.newline},n.prototype.raw=function(t,e){return this.space(e)+t.value+this.newline},n.prototype.text=function(t,e){return this.space(e)+t.value+this.newline},n.prototype.dtdAttList=function(t,e){var n;return n=this.space(e)+""+this.newline},n.prototype.dtdElement=function(t,e){return this.space(e)+""+this.newline},n.prototype.dtdEntity=function(t,e){var n;return n=this.space(e)+""+this.newline},n.prototype.dtdNotation=function(t,e){var n;return n=this.space(e)+""+this.newline},n.prototype.openNode=function(t,e){var n,r,i,o;if(e||(e=0),t instanceof u){for(r in i=this.space(e)+"<"+t.name,o=t.attributes)g.call(o,r)&&(n=o[r],i+=this.attribute(n));return i+=(t.children?">":"/>")+this.newline}return i=this.space(e)+"")+this.newline},n.prototype.closeNode=function(t,e){switch(e||(e=0),!1){case!(t instanceof u):return this.space(e)+""+this.newline;case!(t instanceof l):return this.space(e)+"]>"+this.newline}},n}()}).call(this)},function(t,e,n){"use strict";const r=n(95),i=n(47),o=n(96);t.exports=()=>t=>{if(!Buffer.isBuffer(t)&&!i(t))return Promise.reject(new TypeError(`Expected a Buffer or Stream, got ${typeof t}`));if(Buffer.isBuffer(t)&&(!r(t)||"tar"!==r(t).ext))return Promise.resolve([]);const e=o.extract(),n=[];e.on("entry",(t,e,r)=>{const i=[];e.on("data",t=>i.push(t)),e.on("end",()=>{const e={data:Buffer.concat(i),mode:t.mode,mtime:t.mtime,path:t.name,type:t.type};"symlink"!==t.type&&"link"!==t.type||(e.linkname=t.linkname),n.push(e),r()})});const a=new Promise((r,i)=>{Buffer.isBuffer(t)||t.on("error",i),e.on("finish",()=>r(n)),e.on("error",i)});return e.then=a.then.bind(a),e.catch=a.catch.bind(a),Buffer.isBuffer(t)?e.end(t):t.pipe(e),e}},function(t,e,n){var r=n(4).Buffer,i=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];function o(t){if(r.isBuffer(t))return t;var e="function"==typeof r.alloc&&"function"==typeof r.from;if("number"==typeof t)return e?r.alloc(t):new r(t);if("string"==typeof t)return e?r.from(t):new r(t);throw new Error("input must be buffer, number, or string, received "+typeof t)}function a(t,e){t=o(t),r.isBuffer(e)&&(e=e.readUInt32BE(0));for(var n=-1^~~e,a=0;a>>8;return-1^n}function s(){return t=a.apply(null,arguments),(e=o(4)).writeInt32BE(t,0),e;var t,e}"undefined"!=typeof Int32Array&&(i=new Int32Array(i)),s.signed=function(){return a.apply(null,arguments)},s.unsigned=function(){return a.apply(null,arguments)>>>0},t.exports=s},function(t,e,n){t.exports=y;var r=n(5),i=n(109),o=n(56),a=(o.Minimatch,n(18)),s=n(17).EventEmitter,c=n(1),l=n(20),u=n(57),p=n(265),f=n(110),h=(f.alphasort,f.alphasorti,f.setopts),d=f.ownProp,g=n(266),m=(n(3),f.childrenIgnored),_=f.isIgnored,b=n(48);function y(t,e,n){if("function"==typeof e&&(n=e,e={}),e||(e={}),e.sync){if(n)throw new TypeError("callback provided to sync glob");return p(t,e)}return new x(t,e,n)}y.sync=p;var v=y.GlobSync=p.GlobSync;function x(t,e,n){if("function"==typeof e&&(n=e,e=null),e&&e.sync){if(n)throw new TypeError("callback provided to sync glob");return new v(t,e)}if(!(this instanceof x))return new x(t,e,n);h(this,t,e),this._didRealPath=!1;var r=this.minimatch.set.length;this.matches=new Array(r),"function"==typeof n&&(n=b(n),this.on("error",n),this.on("end",function(t){n(null,t)}));var i=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(0===r)return s();for(var o=!0,a=0;a1)return!0;for(var i=0;ithis.maxLength)return e();if(!this.stat&&d(this.cache,n)){var o=this.cache[n];if(Array.isArray(o)&&(o="DIR"),!i||"DIR"===o)return e(null,o);if(i&&"FILE"===o)return e()}var a=this.statCache[n];if(void 0!==a){if(!1===a)return e(null,a);var s=a.isDirectory()?"DIR":"FILE";return i&&"FILE"===s?e():e(null,s,a)}var c=this,l=g("stat\0"+n,function(i,o){if(o&&o.isSymbolicLink())return r.stat(n,function(r,i){r?c._stat2(t,n,null,o,e):c._stat2(t,n,r,i,e)});c._stat2(t,n,i,o,e)});l&&r.lstat(n,l)},x.prototype._stat2=function(t,e,n,r,i){if(n&&("ENOENT"===n.code||"ENOTDIR"===n.code))return this.statCache[e]=!1,i();var o="/"===t.slice(-1);if(this.statCache[e]=r,"/"===e.slice(-1)&&r&&!r.isDirectory())return i(null,!1,r);var a=!0;return r&&(a=r.isDirectory()?"DIR":"FILE"),this.cache[e]=this.cache[e]||a,o&&"FILE"===a?i():i(null,a,r)}},function(t,e,n){t.exports=d,d.Minimatch=g;var r={sep:"/"};try{r=n(1)}catch(t){}var i=d.GLOBSTAR=g.GLOBSTAR={},o=n(262),a={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},s="[^/]",c=s+"*?",l="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",u="(?:(?!(?:\\/|^)\\.).)*?",p="().*{}+?[]^$\\!".split("").reduce(function(t,e){return t[e]=!0,t},{});var f=/\/+/;function h(t,e){t=t||{},e=e||{};var n={};return Object.keys(e).forEach(function(t){n[t]=e[t]}),Object.keys(t).forEach(function(e){n[e]=t[e]}),n}function d(t,e,n){if("string"!=typeof e)throw new TypeError("glob pattern string required");return n||(n={}),!(!n.nocomment&&"#"===e.charAt(0))&&(""===e.trim()?""===t:new g(e,n).match(t))}function g(t,e){if(!(this instanceof g))return new g(t,e);if("string"!=typeof t)throw new TypeError("glob pattern string required");e||(e={}),t=t.trim(),"/"!==r.sep&&(t=t.split(r.sep).join("/")),this.options=e,this.set=[],this.pattern=t,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function m(t,e){if(e||(e=this instanceof g?this.options:{}),void 0===(t=void 0===t?this.pattern:t))throw new TypeError("undefined pattern");return e.nobrace||!t.match(/\{.*\}/)?[t]:o(t)}d.filter=function(t,e){return e=e||{},function(n,r,i){return d(n,t,e)}},d.defaults=function(t){if(!t||!Object.keys(t).length)return d;var e=d,n=function(n,r,i){return e.minimatch(n,r,h(t,i))};return n.Minimatch=function(n,r){return new e.Minimatch(n,h(t,r))},n},g.defaults=function(t){return t&&Object.keys(t).length?d.defaults(t).Minimatch:g},g.prototype.debug=function(){},g.prototype.make=function(){if(this._made)return;var t=this.pattern,e=this.options;if(!e.nocomment&&"#"===t.charAt(0))return void(this.comment=!0);if(!t)return void(this.empty=!0);this.parseNegate();var n=this.globSet=this.braceExpand();e.debug&&(this.debug=console.error);this.debug(this.pattern,n),n=this.globParts=n.map(function(t){return t.split(f)}),this.debug(this.pattern,n),n=n.map(function(t,e,n){return t.map(this.parse,this)},this),this.debug(this.pattern,n),n=n.filter(function(t){return-1===t.indexOf(!1)}),this.debug(this.pattern,n),this.set=n},g.prototype.parseNegate=function(){var t=this.pattern,e=!1,n=this.options,r=0;if(n.nonegate)return;for(var i=0,o=t.length;i65536)throw new TypeError("pattern is too long");var n=this.options;if(!n.noglobstar&&"**"===t)return i;if(""===t)return"";var r,o="",l=!!n.nocase,u=!1,f=[],h=[],d=!1,g=-1,m=-1,b="."===t.charAt(0)?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",y=this;function v(){if(r){switch(r){case"*":o+=c,l=!0;break;case"?":o+=s,l=!0;break;default:o+="\\"+r}y.debug("clearStateChar %j %j",r,o),r=!1}}for(var x,w=0,k=t.length;w-1;C--){var P=h[C],D=o.slice(0,P.reStart),B=o.slice(P.reStart,P.reEnd-8),L=o.slice(P.reEnd-8,P.reEnd),N=o.slice(P.reEnd);L+=N;var M=D.split("(").length-1,z=N;for(w=0;w=0&&!(i=t[o]);o--);for(o=0;o>> no match, partial?",t,f,e,h),f!==s))}if("string"==typeof u?(l=r.nocase?p.toLowerCase()===u.toLowerCase():p===u,this.debug("string match",u,p,l)):(l=p.match(u),this.debug("pattern match",u,p,l)),!l)return!1}if(o===s&&a===c)return!0;if(o===s)return n;if(a===c)return o===s-1&&""===t[o];throw new Error("wtf?")}},function(t,e,n){"use strict";function r(t){return"/"===t.charAt(0)}function i(t){var e=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(t),n=e[1]||"",r=Boolean(n&&":"!==n.charAt(1));return Boolean(e[2]||r)}t.exports="win32"===process.platform?i:r,t.exports.posix=r,t.exports.win32=i},function(t,e){var n=t.exports=function(){};n.prototype.getName=function(){},n.prototype.getSize=function(){},n.prototype.getLastModifiedDate=function(){},n.prototype.isDirectory=function(){}},function(t,e){var n=t.exports={};n.dateToDos=function(t,e){var n=(e=e||!1)?t.getFullYear():t.getUTCFullYear();return n<1980?2162688:n>=2044?2141175677:n-1980<<25|(e?t.getMonth():t.getUTCMonth())+1<<21|(e?t.getDate():t.getUTCDate())<<16|(e?t.getHours():t.getUTCHours())<<11|(e?t.getMinutes():t.getUTCMinutes())<<5|(e?t.getSeconds():t.getUTCSeconds())/2},n.dosToDate=function(t){return new Date(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1)},n.fromDosTime=function(t){return n.dosToDate(t.readUInt32LE())},n.getEightBytes=function(t){var e=new Buffer(8);return e.writeUInt32LE(t%4294967296,0),e.writeUInt32LE(t/4294967296|0,4),e},n.getShortBytes=function(t){var e=new Buffer(2);return e.writeUInt16LE((65535&t)>>>0,0),e},n.getShortBytesValue=function(t,e){return t.readUInt16LE(e)},n.getLongBytes=function(t){var e=new Buffer(4);return e.writeUInt32LE((4294967295&t)>>>0,0),e},n.getLongBytesValue=function(t,e){return t.readUInt32LE(e)},n.toDosTime=function(t){return n.getLongBytes(n.dateToDos(t))}},function(t){t.exports={name:"@ozelot379/convert-minecraft-java-texture-to-bedrock",productName:"ConvertMinecraftJavaTextureToBedrock",version:"1.0.12",description:"Convert Minecraft Java texture packs to Minecraft Bedrock texture packs",keywords:["Minecraft","Texture","Pack","Convert","Java","Bedrock"],author:"ozelot379",license:"GPL-3.0-only",repository:{type:"git",url:"git+https://github.com/ozelot379/ConvertMinecraftJavaTextureToBedrock.git"},bugs:{url:"https://github.com/ozelot379/ConvertMinecraftJavaTextureToBedrock/issues"},homepage:"https://github.com/ozelot379/ConvertMinecraftJavaTextureToBedrock#readme",dependencies:{},devDependencies:{decompress:"latest","fs-extra":"latest",jimp:"latest",mocha:"latest",tga:"latest",uuid:"latest",webpack:"latest","webpack-cli":"latest",yargs:"latest","zip-a-folder":"latest"},engines:{node:">=10.0.0"},main:"dist/index.js",bin:{ConvertMinecraftJavaTextureToBedrock:"dist/cli.js"},scripts:{build:"webpack",cli:"node dist/cli.js",debug:"webpack --mode=development && node dist/cli.js",test:"webpack --mode=development && mocha tests"}}},function(t,e,n){var r=n(171),i=n(172);t.exports={encode:r,decode:i}},function(t,e,n){var r=n(183),i=n(184);t.exports={encode:r,decode:i}},function(t,e){t.exports={nearestNeighbor:function(t,e){for(var n=t.width,r=t.height,i=e.width,o=e.height,a=t.data,s=e.data,c=0;c0?i[k-4]:2*i[k]-i[k+4],S=i[k],I=i[k+4],T=b0?d[z-4*p]:2*d[z]-d[z+4*p],j=d[z],F=d[z+4*p],U=D1)for(var H=0;H"function"==typeof i[t]);Object.keys(i).forEach(t=>{"promises"!==t&&(e[t]=i[t])}),o.forEach(t=>{e[t]=r(i[t])}),e.exists=function(t,e){return"function"==typeof e?i.exists(t,e):new Promise(e=>i.exists(t,e))},e.read=function(t,e,n,r,o,a){return"function"==typeof a?i.read(t,e,n,r,o,a):new Promise((a,s)=>{i.read(t,e,n,r,o,(t,e,n)=>{if(t)return s(t);a({bytesRead:e,buffer:n})})})},e.write=function(t,e,...n){return"function"==typeof n[n.length-1]?i.write(t,e,...n):new Promise((r,o)=>{i.write(t,e,...n,(t,e,n)=>{if(t)return o(t);r({bytesWritten:e,buffer:n})})})},"function"==typeof i.realpath.native&&(e.realpath.native=r(i.realpath.native))},function(t,e){t.exports=require("constants")},function(t,e,n){"use strict";t.exports={copySync:n(138)}},function(t,e,n){"use strict";const r=n(1);function i(t){return(t=r.normalize(r.resolve(t)).split(r.sep)).length>0?t[0]:null}const o=/[<>:"|?*]/;t.exports={getRootPath:i,invalidWin32Path:function(t){const e=i(t);return t=t.replace(e,""),o.test(t)}}},function(t,e,n){"use strict";const r=n(6),i=n(44),o=n(1);t.exports={hasMillisRes:function(t){let e=o.join("millis-test"+Date.now().toString()+Math.random().toString().slice(2));e=o.join(i.tmpdir(),e);const n=new Date(1435410243862);r.writeFile(e,"https://github.com/jprichardson/node-fs-extra/pull/141",i=>{if(i)return t(i);r.open(e,"r+",(i,o)=>{if(i)return t(i);r.futimes(o,n,n,n=>{if(n)return t(n);r.close(o,n=>{if(n)return t(n);r.stat(e,(e,n)=>{if(e)return t(e);t(null,n.mtime>1435410243e3)})})})})})},hasMillisResSync:function(){let t=o.join("millis-test-sync"+Date.now().toString()+Math.random().toString().slice(2));t=o.join(i.tmpdir(),t);const e=new Date(1435410243862);r.writeFileSync(t,"https://github.com/jprichardson/node-fs-extra/pull/141");const n=r.openSync(t,"r+");return r.futimesSync(n,e,e),r.closeSync(n),r.statSync(t).mtime>1435410243e3},timeRemoveMillis:function(t){if("number"==typeof t)return 1e3*Math.floor(t/1e3);if(t instanceof Date)return new Date(1e3*Math.floor(t.getTime()/1e3));throw new Error("fs-extra: timeRemoveMillis() unknown parameter type")},utimesMillis:function(t,e,n,i){r.open(t,"r+",(t,o)=>{if(t)return i(t);r.futimes(o,e,n,t=>{r.close(o,e=>{i&&i(t||e)})})})},utimesMillisSync:function(t,e,n){const i=r.openSync(t,"r+");return r.futimesSync(i,e,n),r.closeSync(i)}}},function(t,e,n){"use strict";const r=n(8).fromCallback;t.exports={copy:r(n(142))}},function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=n(161),o=n(162),a=n(72),s=n(163),c=n(12),l=n(3),u=function(t,e){if("string"!=typeof t&&!t.hasOwnProperty("url"))throw new Error("Missing url option from options for request method.");var n="object"===(void 0===t?"undefined":r(t))?a.parse(t.url):a.parse(t),l={hostname:n.hostname,port:n.port||("http:"===n.protocol.toLowerCase()?80:443),path:n.path,method:"GET",headers:{},auth:n.auth||null,parse:"none",stream:!1};if("object"===(void 0===t?"undefined":r(t))&&(l=Object.assign(l,t)),l.port=Number(l.port),l.hasOwnProperty("timeout")&&delete l.timeout,!0===l.compressed&&(l.headers["accept-encoding"]="gzip, deflate"),t.hasOwnProperty("form")){if("object"!==r(t.form))throw new Error("phin 'form' option must be of type Object if present.");var u=s.stringify(t.form);l.headers["Content-Type"]="application/x-www-form-urlencoded",l.headers["Content-Length"]=Buffer.byteLength(u),t.data=u}var p=void 0,f=function(t){var n=t;!0===l.compressed&&("gzip"===t.headers["content-encoding"]?n=t.pipe(c.createGunzip()):"deflate"===t.headers["content-encoding"]&&(n=t.pipe(c.createInflate()))),!0===l.stream?(t.stream=n,e&&e(null,t)):(t.body=new Buffer([]),n.on("data",function(e){t.body=Buffer.concat([t.body,e])}),n.on("end",function(){if(e){if("json"===l.parse)try{t.body=JSON.parse(t.body.toString())}catch(n){return void e("Invalid JSON received.",t)}e(null,t)}}))};switch(n.protocol.toLowerCase()){case"http:":p=i.request(l,f);break;case"https:":p=o.request(l,f);break;default:return void(e&&e(new Error("Invalid / unknown URL protocol. Expected HTTP or HTTPS."),null))}if("number"==typeof t.timeout&&p.setTimeout(t.timeout,function(){p.abort(),e&&e(new Error("Timeout has been reached."),null),e=null}),p.on("error",function(t){e&&e(t,null)}),t.hasOwnProperty("data")){var h=t.data;if(!(t.data instanceof Buffer)&&"object"===r(t.data))if("application/x-www-form-urlencoded"===(l.headers["content-type"]||l.headers["Content-Type"]))h=s.stringify(t.data);else try{h=JSON.stringify(t.data)}catch(t){e&&e(new Error("Couldn't stringify object. (Likely due to a circular reference.)"),null)}p.write(h)}p.end()};u.promisified=function(t,e){return new Promise(function(e,n){u(t,function(t,r){t?n(t):e(r)})})},l.promisify&&(u[l.promisify.custom]=u.promisified),t.exports=u},function(t,e){t.exports=require("url")},function(t,e){function n(t,e){switch(t){case 1:return e.nextUInt8();case 3:return e.nextUInt16();case 4:return e.nextUInt32();case 5:return[e.nextUInt32(),e.nextUInt32()];case 6:return e.nextInt8();case 8:return e.nextUInt16();case 9:return e.nextUInt32();case 10:return[e.nextInt32(),e.nextInt32()];case 11:return e.nextFloat();case 12:return e.nextDouble();default:throw new Error("Invalid format while decoding: "+t)}}function r(t,e){var r,i,o=e.nextUInt16(),a=e.nextUInt16(),s=function(t){switch(t){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}}(a),c=e.nextUInt32(),l=s*c;if(l>4&&(e=t.openWithOffset(e.nextUInt32())),2===a){var u=(r=e.nextString(c)).indexOf("\0");-1!==u&&(r=r.substr(0,u))}else if(7===a)r=e.nextBuffer(c);else if(0!==a)for(r=[],i=0;i0&&(this._paused=!1,this.emit("drain"))}.bind(this))},o.prototype.write=function(t,e){return this.writable?(n=Buffer.isBuffer(t)?t:new Buffer(t,e||this._encoding),this._buffers.push(n),this._buffered+=n.length,this._process(),this._reads&&0===this._reads.length&&(this._paused=!0),this.writable&&!this._paused):(this.emit("error",new Error("Stream not writable")),!1);var n},o.prototype.end=function(t,e){t&&this.write(t,e),this.writable=!1,this._buffers&&(0===this._buffers.length?this._end():(this._buffers.push(null),this._process()))},o.prototype.destroySoon=o.prototype.end,o.prototype._end=function(){this._reads.length>0&&this.emit("error",new Error("Unexpected end of input")),this.destroy()},o.prototype.destroy=function(){this._buffers&&(this.writable=!1,this._reads=null,this._buffers=null,this.emit("close"))},o.prototype._processReadAllowingLess=function(t){this._reads.shift();var e=this._buffers[0];e.length>t.length?(this._buffered-=t.length,this._buffers[0]=e.slice(t.length),t.func.call(this,e.slice(0,t.length))):(this._buffered-=e.length,this._buffers.shift(),t.func.call(this,e))},o.prototype._processRead=function(t){this._reads.shift();for(var e=0,n=0,r=new Buffer(t.length);e0&&this._buffers.splice(0,n),this._buffered-=t.length,t.func.call(this,r)},o.prototype._process=function(){try{for(;this._buffered>0&&this._reads&&this._reads.length>0;){var t=this._reads[0];if(t.allowLess)this._processReadAllowingLess(t);else{if(!(this._buffered>=t.length))break;this._processRead(t)}}this._buffers&&!this.writable&&this._end()}catch(t){this.emit("error",t)}}},function(t,e,n){"use strict";var r=n(76),i=n(77);function o(t,e,n){var r=t*e;return 8!==n&&(r=Math.ceil(r/(8/n))),r}var a=t.exports=function(t,e){var n=t.width,i=t.height,a=t.interlace,s=t.bpp,c=t.depth;if(this.read=e.read,this.write=e.write,this.complete=e.complete,this._imageIndex=0,this._images=[],a)for(var l=r.getImagePasses(n,i),u=0;ui?e[o-r]:0;e[o]=a+s}},a.prototype._unFilterType2=function(t,e,n){for(var r=this._lastLine,i=0;ii?e[a-r]:0,u=Math.floor((l+c)/2);e[a]=s+u}},a.prototype._unFilterType4=function(t,e,n){for(var r=this._xComparison,o=r-1,a=this._lastLine,s=0;so?e[s-r]:0,p=s>o&&a?a[s-r]:0,f=i(u,l,p);e[s]=c+f}},a.prototype._reverseFilterLine=function(t){var e,n=t[0],r=this._images[this._imageIndex],i=r.byteWidth;if(0===n)e=t.slice(1,i+1);else switch(e=new Buffer(i),n){case 1:this._unFilterType1(t,e,i);break;case 2:this._unFilterType2(t,e,i);break;case 3:this._unFilterType3(t,e,i);break;case 4:this._unFilterType4(t,e,i);break;default:throw new Error("Unrecognised filter type - "+n)}this.write(e),r.lineIndex++,r.lineIndex>=r.height?(this._lastLine=null,this._imageIndex++,r=this._images[this._imageIndex]):this._lastLine=e,r?this.read(r.byteWidth+1,this._reverseFilterLine.bind(this)):(this._lastLine=null,this.complete())}},function(t,e,n){"use strict";var r=[{x:[0],y:[0]},{x:[4],y:[0]},{x:[0,4],y:[4]},{x:[2,6],y:[0,4]},{x:[0,2,4,6],y:[2,6]},{x:[1,3,5,7],y:[0,2,4,6]},{x:[0,1,2,3,4,5,6,7],y:[1,3,5,7]}];e.getImagePasses=function(t,e){for(var n=[],i=t%8,o=e%8,a=(t-i)/8,s=(e-o)/8,c=0;c0&&p>0&&n.push({width:u,height:p,index:c})}return n},e.getInterlaceIterator=function(t){return function(e,n,i){var o=e%r[i].x.length,a=(e-o)/r[i].x.length*8+r[i].x[o],s=n%r[i].y.length;return 4*a+((n-s)/r[i].y.length*8+r[i].y[s])*t*4}}},function(t,e,n){"use strict";t.exports=function(t,e,n){var r=t+e-n,i=Math.abs(r-t),o=Math.abs(r-e),a=Math.abs(r-n);return i<=o&&i<=a?t:o<=a?e:n}},function(t,e,n){"use strict";var r=n(21),i=n(79),o=t.exports=function(t,e){this._options=t,t.checkCRC=!1!==t.checkCRC,this._hasIHDR=!1,this._hasIEND=!1,this._emittedHeadersFinished=!1,this._palette=[],this._colorType=0,this._chunks={},this._chunks[r.TYPE_IHDR]=this._handleIHDR.bind(this),this._chunks[r.TYPE_IEND]=this._handleIEND.bind(this),this._chunks[r.TYPE_IDAT]=this._handleIDAT.bind(this),this._chunks[r.TYPE_PLTE]=this._handlePLTE.bind(this),this._chunks[r.TYPE_tRNS]=this._handleTRNS.bind(this),this._chunks[r.TYPE_gAMA]=this._handleGAMA.bind(this),this.read=e.read,this.error=e.error,this.metadata=e.metadata,this.gamma=e.gamma,this.transColor=e.transColor,this.palette=e.palette,this.parsed=e.parsed,this.inflateData=e.inflateData,this.finished=e.finished,this.simpleTransparency=e.simpleTransparency,this.headersFinished=e.headersFinished||function(){}};o.prototype.start=function(){this.read(r.PNG_SIGNATURE.length,this._parseSignature.bind(this))},o.prototype._parseSignature=function(t){for(var e=r.PNG_SIGNATURE,n=0;nthis._palette.length)return void this.error(new Error("More transparent colors than palette size"));for(var e=0;e0?this._handleIDAT(n):this._handleChunkEnd()},o.prototype._handleIEND=function(t){this.read(t,this._parseIEND.bind(this))},o.prototype._parseIEND=function(t){this._crc.write(t),this._hasIEND=!0,this._handleChunkEnd(),this.finished&&this.finished()}},function(t,e,n){"use strict";var r=[];!function(){for(var t=0;t<256;t++){for(var e=t,n=0;n<8;n++)1&e?e=3988292384^e>>>1:e>>>=1;r[t]=e}}();var i=t.exports=function(){this._crc=-1};i.prototype.write=function(t){for(var e=0;e>>8;return!0},i.prototype.crc32=function(){return-1^this._crc},i.crc32=function(t){for(var e=-1,n=0;n>>8;return-1^e}},function(t,e,n){"use strict";var r=n(76),i=[function(){},function(t,e,n,r){if(r===e.length)throw new Error("Ran out of data");var i=e[r];t[n]=i,t[n+1]=i,t[n+2]=i,t[n+3]=255},function(t,e,n,r){if(r+1>=e.length)throw new Error("Ran out of data");var i=e[r];t[n]=i,t[n+1]=i,t[n+2]=i,t[n+3]=e[r+1]},function(t,e,n,r){if(r+2>=e.length)throw new Error("Ran out of data");t[n]=e[r],t[n+1]=e[r+1],t[n+2]=e[r+2],t[n+3]=255},function(t,e,n,r){if(r+3>=e.length)throw new Error("Ran out of data");t[n]=e[r],t[n+1]=e[r+1],t[n+2]=e[r+2],t[n+3]=e[r+3]}],o=[function(){},function(t,e,n,r){var i=e[0];t[n]=i,t[n+1]=i,t[n+2]=i,t[n+3]=r},function(t,e,n){var r=e[0];t[n]=r,t[n+1]=r,t[n+2]=r,t[n+3]=e[1]},function(t,e,n,r){t[n]=e[0],t[n+1]=e[1],t[n+2]=e[2],t[n+3]=r},function(t,e,n){t[n]=e[0],t[n+1]=e[1],t[n+2]=e[2],t[n+3]=e[3]}];function a(t,e,n,r,o,a){for(var s=t.width,c=t.height,l=t.index,u=0;u>4,n.push(p,u);break;case 2:c=3&f,l=f>>2&3,u=f>>4&3,p=f>>6&3,n.push(p,u,l,c);break;case 1:i=1&f,o=f>>1&1,a=f>>2&1,s=f>>3&1,c=f>>4&1,l=f>>5&1,u=f>>6&1,p=f>>7&1,n.push(p,u,l,c,s,a,o,i)}}return{get:function(t){for(;n.length0&&this._buffer.length;){var t=this._reads[0];if(!this._buffer.length||!(this._buffer.length>=t.length||t.allowLess))break;this._reads.shift();var e=this._buffer;this._buffer=e.slice(t.length),t.func.call(this,e.slice(0,t.length))}return this._reads.length>0?new Error("There are some read requests waitng on finished stream"):this._buffer.length>0?new Error("unrecognised content at end of stream"):void 0}},function(t,e,n){"use strict";t.exports=function(t,e,n,r){for(var i=65535&t|0,o=t>>>16&65535|0,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{o=o+(i=i+e[r++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16|0}},function(t,e,n){"use strict";var r=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();t.exports=function(t,e,n,i){var o=r,a=i+n;t^=-1;for(var s=i;s>>8^o[255&(t^e[s])];return-1^t}},function(t,e,n){"use strict";var r=n(14),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(t){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){o=!1}for(var a=new r.Buf8(256),s=0;s<256;s++)a[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;function c(t,e){if(e<65534&&(t.subarray&&o||!t.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(t,e));for(var n="",a=0;a>>6,e[a++]=128|63&n):n<65536?(e[a++]=224|n>>>12,e[a++]=128|n>>>6&63,e[a++]=128|63&n):(e[a++]=240|n>>>18,e[a++]=128|n>>>12&63,e[a++]=128|n>>>6&63,e[a++]=128|63&n);return e},e.buf2binstring=function(t){return c(t,t.length)},e.binstring2buf=function(t){for(var e=new r.Buf8(t.length),n=0,i=e.length;n4)l[r++]=65533,n+=o-1;else{for(i&=2===o?31:3===o?15:7;o>1&&n1?l[r++]=65533:i<65536?l[r++]=i:(i-=65536,l[r++]=55296|i>>10&1023,l[r++]=56320|1023&i)}return c(l,r)},e.utf8border=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;n>=0&&128==(192&t[n]);)n--;return n<0?e:0===n?e:n+a[t[n]]>e?n:e}},function(t,e,n){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},function(t,e,n){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},function(t,e){(function(){t.exports=function(){function t(t,e,n){if(this.options=t.options,this.stringify=t.stringify,null==e)throw new Error("Missing attribute name of element "+t.name);if(null==n)throw new Error("Missing attribute value for attribute "+e+" of element "+t.name);this.name=this.stringify.attName(e),this.value=this.stringify.attValue(n)}return t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(t){return this.options.writer.set(t).attribute(this)},t}()}).call(this)},function(t,e){(function(){var e=function(t,e){return function(){return t.apply(e,arguments)}},n={}.hasOwnProperty;t.exports=function(){function t(t){var r,i,o;for(r in this.assertLegalChar=e(this.assertLegalChar,this),t||(t={}),this.noDoubleEncoding=t.noDoubleEncoding,i=t.stringify||{})n.call(i,r)&&(o=i[r],this[r]=o)}return t.prototype.eleName=function(t){return t=""+t||"",this.assertLegalChar(t)},t.prototype.eleText=function(t){return t=""+t||"",this.assertLegalChar(this.elEscape(t))},t.prototype.cdata=function(t){return t=(t=""+t||"").replace("]]>","]]]]>"),this.assertLegalChar(t)},t.prototype.comment=function(t){if((t=""+t||"").match(/--/))throw new Error("Comment text cannot contain double-hypen: "+t);return this.assertLegalChar(t)},t.prototype.raw=function(t){return""+t||""},t.prototype.attName=function(t){return""+t||""},t.prototype.attValue=function(t){return t=""+t||"",this.attEscape(t)},t.prototype.insTarget=function(t){return""+t||""},t.prototype.insValue=function(t){if((t=""+t||"").match(/\?>/))throw new Error("Invalid processing instruction value: "+t);return t},t.prototype.xmlVersion=function(t){if(!(t=""+t||"").match(/1\.[0-9]+/))throw new Error("Invalid version number: "+t);return t},t.prototype.xmlEncoding=function(t){if(!(t=""+t||"").match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+t);return t},t.prototype.xmlStandalone=function(t){return t?"yes":"no"},t.prototype.dtdPubID=function(t){return""+t||""},t.prototype.dtdSysID=function(t){return""+t||""},t.prototype.dtdElementValue=function(t){return""+t||""},t.prototype.dtdAttType=function(t){return""+t||""},t.prototype.dtdAttDefault=function(t){return null!=t?""+t||"":t},t.prototype.dtdEntityValue=function(t){return""+t||""},t.prototype.dtdNData=function(t){return""+t||""},t.prototype.convertAttKey="@",t.prototype.convertPIKey="?",t.prototype.convertTextKey="#text",t.prototype.convertCDataKey="#cdata",t.prototype.convertCommentKey="#comment",t.prototype.convertRawKey="#raw",t.prototype.assertLegalChar=function(t){var e;if(e=t.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/))throw new Error("Invalid character in string: "+t+" at index "+e.index);return t},t.prototype.elEscape=function(t){var e;return e=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,t.replace(e,"&").replace(//g,">").replace(/\r/g," ")},t.prototype.attEscape=function(t){var e;return e=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,t.replace(e,"&").replace(/0?new Array(e).join(this.indent):""},t}()}).call(this)},function(t,e){t.exports=require("string_decoder")},function(t,e){(function(){"use strict";var t;t=new RegExp(/(?!xmlns)^.*:/),e.normalize=function(t){return t.toLowerCase()},e.firstCharLowerCase=function(t){return t.charAt(0).toLowerCase()+t.slice(1)},e.stripPrefix=function(e){return e.replace(t,"")},e.parseNumbers=function(t){return isNaN(t)||(t=t%1==0?parseInt(t,10):parseFloat(t)),t},e.parseBooleans=function(t){return/^(?:true|false)$/i.test(t)&&(t="true"===t.toLowerCase()),t}}).call(this)},function(t,e,n){var r;function i(t){function n(){if(n.enabled){var t=n,i=+new Date,o=i-(r||i);t.diff=o,t.prev=r,t.curr=i,r=i;for(var a=new Array(arguments.length),s=0;s{const e=new Uint8Array(t);if(!(e&&e.length>1))return null;const n=(t,n)=>{n=Object.assign({offset:0},n);for(let r=0;r66===n[e]&&130===n[e+1]);if(n>=0){const e=n+3,r=n=>Array.from(n).every((n,r)=>t[e+r]===n.charCodeAt(0));if(r("matroska"))return{ext:"mkv",mime:"video/x-matroska"};if(r("webm"))return{ext:"webm",mime:"video/webm"}}}return n([0,0,0,20,102,116,121,112,113,116,32,32])||n([102,114,101,101],{offset:4})||n([102,116,121,112,113,116,32,32],{offset:4})||n([109,100,97,116],{offset:4})||n([119,105,100,101],{offset:4})?{ext:"mov",mime:"video/quicktime"}:n([82,73,70,70])&&n([65,86,73],{offset:8})?{ext:"avi",mime:"video/x-msvideo"}:n([48,38,178,117,142,102,207,17,166,217])?{ext:"wmv",mime:"video/x-ms-wmv"}:n([0,0,1,186])?{ext:"mpg",mime:"video/mpeg"}:n([73,68,51])||n([255,251])?{ext:"mp3",mime:"audio/mpeg"}:n([102,116,121,112,77,52,65],{offset:4})||n([77,52,65,32])?{ext:"m4a",mime:"audio/m4a"}:n([79,112,117,115,72,101,97,100],{offset:28})?{ext:"opus",mime:"audio/opus"}:n([79,103,103,83])?{ext:"ogg",mime:"audio/ogg"}:n([102,76,97,67])?{ext:"flac",mime:"audio/x-flac"}:n([82,73,70,70])&&n([87,65,86,69],{offset:8})?{ext:"wav",mime:"audio/x-wav"}:n([35,33,65,77,82,10])?{ext:"amr",mime:"audio/amr"}:n([37,80,68,70])?{ext:"pdf",mime:"application/pdf"}:n([77,90])?{ext:"exe",mime:"application/x-msdownload"}:67!==e[0]&&70!==e[0]||!n([87,83],{offset:1})?n([123,92,114,116,102])?{ext:"rtf",mime:"application/rtf"}:n([0,97,115,109])?{ext:"wasm",mime:"application/wasm"}:n([119,79,70,70])&&(n([0,1,0,0],{offset:4})||n([79,84,84,79],{offset:4}))?{ext:"woff",mime:"font/woff"}:n([119,79,70,50])&&(n([0,1,0,0],{offset:4})||n([79,84,84,79],{offset:4}))?{ext:"woff2",mime:"font/woff2"}:n([76,80],{offset:34})&&(n([0,0,1],{offset:8})||n([1,0,2],{offset:8})||n([2,0,2],{offset:8}))?{ext:"eot",mime:"application/octet-stream"}:n([0,1,0,0,0])?{ext:"ttf",mime:"font/ttf"}:n([79,84,84,79,0])?{ext:"otf",mime:"font/otf"}:n([0,0,1,0])?{ext:"ico",mime:"image/x-icon"}:n([70,76,86,1])?{ext:"flv",mime:"video/x-flv"}:n([37,33])?{ext:"ps",mime:"application/postscript"}:n([253,55,122,88,90,0])?{ext:"xz",mime:"application/x-xz"}:n([83,81,76,105])?{ext:"sqlite",mime:"application/x-sqlite3"}:n([78,69,83,26])?{ext:"nes",mime:"application/x-nintendo-nes-rom"}:n([67,114,50,52])?{ext:"crx",mime:"application/x-google-chrome-extension"}:n([77,83,67,70])||n([73,83,99,40])?{ext:"cab",mime:"application/vnd.ms-cab-compressed"}:n([33,60,97,114,99,104,62,10,100,101,98,105,97,110,45,98,105,110,97,114,121])?{ext:"deb",mime:"application/x-deb"}:n([33,60,97,114,99,104,62])?{ext:"ar",mime:"application/x-unix-archive"}:n([237,171,238,219])?{ext:"rpm",mime:"application/x-rpm"}:n([31,160])||n([31,157])?{ext:"Z",mime:"application/x-compress"}:n([76,90,73,80])?{ext:"lz",mime:"application/x-lzip"}:n([208,207,17,224,161,177,26,225])?{ext:"msi",mime:"application/x-msi"}:n([6,14,43,52,2,5,1,1,13,1,2,1,1,2])?{ext:"mxf",mime:"application/mxf"}:n([71],{offset:4})&&(n([71],{offset:192})||n([71],{offset:196}))?{ext:"mts",mime:"video/mp2t"}:n([66,76,69,78,68,69,82])?{ext:"blend",mime:"application/x-blender"}:n([66,80,71,251])?{ext:"bpg",mime:"image/bpg"}:null:{ext:"swf",mime:"application/x-shockwave-flash"}}},function(t,e,n){e.extract=n(221),e.pack=n(232)},function(t,e,n){"use strict";var r=n(43);t.exports=b;var i,o=n(224);b.ReadableState=_;n(17).EventEmitter;var a=function(t,e){return t.listeners(e).length},s=n(98),c=n(22).Buffer,l=global.Uint8Array||function(){};var u=n(23);u.inherits=n(18);var p=n(3),f=void 0;f=p&&p.debuglog?p.debuglog("stream"):function(){};var h,d=n(226),g=n(99);u.inherits(b,s);var m=["error","close","destroy","pause","resume"];function _(t,e){t=t||{};var r=e instanceof(i=i||n(19));this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var o=t.highWaterMark,a=t.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:r&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(h||(h=n(101).StringDecoder),this.decoder=new h(t.encoding),this.encoding=t.encoding)}function b(t){if(i=i||n(19),!(this instanceof b))return new b(t);this._readableState=new _(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),s.call(this)}function y(t,e,n,r,i){var o,a=t._readableState;null===e?(a.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,k(t)}(t,a)):(i||(o=function(t,e){var n;r=e,c.isBuffer(r)||r instanceof l||"string"==typeof e||void 0===e||t.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(a,e)),o?t.emit("error",o):a.objectMode||e&&e.length>0?("string"==typeof e||a.objectMode||Object.getPrototypeOf(e)===c.prototype||(e=function(t){return c.from(t)}(e)),r?a.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):v(t,a,e,!0):a.ended?t.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(e=a.decoder.write(e),a.objectMode||0!==e.length?v(t,a,e,!1):S(t,a)):v(t,a,e,!1))):r||(a.reading=!1));return function(t){return!t.ended&&(t.needReadable||t.lengthe.highWaterMark&&(e.highWaterMark=function(t){return t>=x?t=x:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function k(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(f("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?r.nextTick(E,t):E(t))}function E(t){f("emit readable"),t.emit("readable"),A(t)}function S(t,e){e.readingMore||(e.readingMore=!0,r.nextTick(I,t,e))}function I(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=function(t,e,n){var r;to.length?o.length:t;if(a===o.length?i+=o:i+=o.slice(0,t),0===(t-=a)){a===o.length?(++r,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(a));break}++r}return e.length-=r,i}(t,e):function(t,e){var n=c.allocUnsafe(t),r=e.head,i=1;r.data.copy(n),t-=r.data.length;for(;r=r.next;){var o=r.data,a=t>o.length?o.length:t;if(o.copy(n,n.length-t,0,a),0===(t-=a)){a===o.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(a));break}++i}return e.length-=i,n}(t,e);return r}(t,e.buffer,e.decoder),n);var n}function P(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,r.nextTick(D,e,t))}function D(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function B(t,e){for(var n=0,r=t.length;n=e.highWaterMark||e.ended))return f("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?P(this):k(this),null;if(0===(t=w(t,e))&&e.ended)return 0===e.length&&P(this),null;var r,i=e.needReadable;return f("need readable",i),(0===e.length||e.length-t0?C(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&P(this)),null!==r&&this.emit("data",r),r},b.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(t,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t)}i.pipesCount+=1,f("pipe count=%d opts=%j",i.pipesCount,e);var s=(!e||!1!==e.end)&&t!==process.stdout&&t!==process.stderr?l:b;function c(e,r){f("onunpipe"),e===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,f("cleanup"),t.removeListener("close",m),t.removeListener("finish",_),t.removeListener("drain",u),t.removeListener("error",g),t.removeListener("unpipe",c),n.removeListener("end",l),n.removeListener("end",b),n.removeListener("data",d),p=!0,!i.awaitDrain||t._writableState&&!t._writableState.needDrain||u())}function l(){f("onend"),t.end()}i.endEmitted?r.nextTick(s):n.once("end",s),t.on("unpipe",c);var u=function(t){return function(){var e=t._readableState;f("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&a(t,"data")&&(e.flowing=!0,A(t))}}(n);t.on("drain",u);var p=!1;var h=!1;function d(e){f("ondata"),h=!1,!1!==t.write(e)||h||((1===i.pipesCount&&i.pipes===t||i.pipesCount>1&&-1!==B(i.pipes,t))&&!p&&(f("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,h=!0),n.pause())}function g(e){f("onerror",e),b(),t.removeListener("error",g),0===a(t,"error")&&t.emit("error",e)}function m(){t.removeListener("finish",_),b()}function _(){f("onfinish"),t.removeListener("close",m),b()}function b(){f("unpipe"),n.unpipe(t)}return n.on("data",d),function(t,e,n){if("function"==typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?o(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(t,"error",g),t.once("close",m),t.once("finish",_),t.emit("pipe",n),i.flowing||(f("pipe resume"),n.resume()),t},b.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n),this);if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o-1?setImmediate:r.nextTick;m.WritableState=g;var s=n(23);s.inherits=n(18);var c={deprecate:n(227)},l=n(98),u=n(22).Buffer,p=global.Uint8Array||function(){};var f,h=n(99);function d(){}function g(t,e){o=o||n(19),t=t||{};var s=e instanceof o;this.objectMode=!!t.objectMode,s&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var c=t.highWaterMark,l=t.writableHighWaterMark,u=this.objectMode?16:16384;this.highWaterMark=c||0===c?c:s&&(l||0===l)?l:u,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var p=!1===t.decodeStrings;this.decodeStrings=!p,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var n=t._writableState,i=n.sync,o=n.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(n),e)!function(t,e,n,i,o){--e.pendingcb,n?(r.nextTick(o,i),r.nextTick(w,t,e),t._writableState.errorEmitted=!0,t.emit("error",i)):(o(i),t._writableState.errorEmitted=!0,t.emit("error",i),w(t,e))}(t,n,i,e,o);else{var s=v(n);s||n.corked||n.bufferProcessing||!n.bufferedRequest||y(t,n),i?a(b,t,n,s,o):b(t,n,s,o)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function m(t){if(o=o||n(19),!(f.call(m,this)||this instanceof o))return new m(t);this._writableState=new g(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),l.call(this)}function _(t,e,n,r,i,o,a){e.writelen=r,e.writecb=a,e.writing=!0,e.sync=!0,n?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function b(t,e,n,r){n||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,r(),w(t,e)}function y(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var r=e.bufferedRequestCount,o=new Array(r),a=e.corkedRequestsFree;a.entry=n;for(var s=0,c=!0;n;)o[s]=n,n.isBuf||(c=!1),n=n.next,s+=1;o.allBuffers=c,_(t,e,!0,e.length,o,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new i(e),e.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,u=n.encoding,p=n.callback;if(_(t,e,!1,e.objectMode?1:l.length,l,u,p),n=n.next,e.bufferedRequestCount--,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}function v(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function x(t,e){t._final(function(n){e.pendingcb--,n&&t.emit("error",n),e.prefinished=!0,t.emit("prefinish"),w(t,e)})}function w(t,e){var n=v(e);return n&&(!function(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,r.nextTick(x,t,e)):(e.prefinished=!0,t.emit("prefinish")))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),n}s.inherits(m,l),g.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(g.prototype,"buffer",{get:c.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(f=Function.prototype[Symbol.hasInstance],Object.defineProperty(m,Symbol.hasInstance,{value:function(t){return!!f.call(this,t)||this===m&&(t&&t._writableState instanceof g)}})):f=function(t){return t instanceof this},m.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},m.prototype.write=function(t,e,n){var i,o=this._writableState,a=!1,s=!o.objectMode&&(i=t,u.isBuffer(i)||i instanceof p);return s&&!u.isBuffer(t)&&(t=function(t){return u.from(t)}(t)),"function"==typeof e&&(n=e,e=null),s?e="buffer":e||(e=o.defaultEncoding),"function"!=typeof n&&(n=d),o.ended?function(t,e){var n=new Error("write after end");t.emit("error",n),r.nextTick(e,n)}(this,n):(s||function(t,e,n,i){var o=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||e.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(t.emit("error",a),r.nextTick(i,a),o=!1),o}(this,o,t,n))&&(o.pendingcb++,a=function(t,e,n,r,i,o){if(!n){var a=function(t,e,n){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=u.from(e,n));return e}(e,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=e.objectMode?1:r.length;e.length+=s;var c=e.length-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),m.prototype._write=function(t,e,n){n(new Error("_write() is not implemented"))},m.prototype._writev=null,m.prototype.end=function(t,e,n){var i=this._writableState;"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!=t&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||function(t,e,n){e.ending=!0,w(t,e),n&&(e.finished?r.nextTick(n):t.once("finish",n));e.ended=!0,t.writable=!1}(this,i,n)},Object.defineProperty(m.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),m.prototype.destroy=h.destroy,m.prototype._undestroy=h.undestroy,m.prototype._destroy=function(t,e){this.end(),e(t)}},function(t,e,n){"use strict";var r=n(22).Buffer,i=r.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(r.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=c,this.end=l,e=4;break;case"utf8":this.fillLast=s,e=4;break;case"base64":this.text=u,this.end=p,e=3;break;default:return this.write=f,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(e)}function a(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function s(t){var e=this.lastTotal-this.lastNeed,n=function(t,e,n){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function c(t,e){if((t.length-e)%2==0){var n=t.toString("utf16le",e);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function l(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function u(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function p(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function f(t){return t.toString(this.encoding)}function h(t){return t&&t.length?this.write(t):""}e.StringDecoder=o,o.prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0)return i>0&&(t.lastNeed=i-1),i;if(--r=0)return i>0&&(t.lastNeed=i-2),i;if(--r=0)return i>0&&(2===i?i=0:t.lastNeed=i-3),i;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var r=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",e,r)},o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},function(t,e,n){"use strict";t.exports=a;var r=n(19),i=n(23);function o(t,e){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=e&&this.push(e),r(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.lengthe?"7777777777777777777".slice(0,e)+" ":"0000000000000000000".slice(0,e-t.length)+t+" "};var u=function(t,e,n){if(128&(t=t.slice(e,e+n))[e=0])return function(t){var e;if(128===t[0])e=!0;else{if(255!==t[0])return null;e=!1}for(var n=!1,r=[],i=t.length-1;i>0;i--){var o=t[i];e?r.push(o):n&&0===o?r.push(0):n?(n=!1,r.push(256-o)):r.push(255-o)}var a=0,s=r.length;for(i=0;i=o?o:i>=0?i:(i+=o)>=0?i:0);e=Math.pow(10,n)&&n++,e+n+t};e.decodeLongPath=function(t,e){return p(t,0,t.length,e)},e.encodePax=function(t){var e="";t.name&&(e+=f(" path="+t.name+"\n")),t.linkname&&(e+=f(" linkpath="+t.linkname+"\n"));var n=t.pax;if(n)for(var i in n)e+=f(" "+i+"="+n[i]+"\n");return r(e)},e.decodePax=function(t){for(var e={};t.length;){for(var n=0;n100;){var s=n.indexOf("/");if(-1===s)return null;r+=r?"/"+n.slice(0,s):n.slice(0,s),n=n.slice(s+1)}return Buffer.byteLength(n)>100||Buffer.byteLength(r)>155?null:t.linkname&&Buffer.byteLength(t.linkname)>100?null:(e.write(n),e.write(l(t.mode&a,6),100),e.write(l(t.uid,6),108),e.write(l(t.gid,6),116),e.write(l(t.size,11),124),e.write(l(t.mtime.getTime()/1e3|0,11),136),e[156]=o+function(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}(t.type),t.linkname&&e.write(t.linkname,157),e.write("ustar\x0000",257),t.uname&&e.write(t.uname,265),t.gname&&e.write(t.gname,297),e.write(l(t.devmajor||0,6),329),e.write(l(t.devminor||0,6),337),r&&e.write(r,345),e.write(l(c(e),6),148),e)},e.decode=function(t,e){var n=0===t[156]?0:t[156]-o,r=p(t,0,100,e),i=u(t,100,8),a=u(t,108,8),s=u(t,116,8),l=u(t,124,12),f=u(t,136,12),h=function(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}(n),d=0===t[157]?null:p(t,157,100,e),g=p(t,265,32),m=p(t,297,32),_=u(t,329,8),b=u(t,337,8);t[345]&&(r=p(t,345,155,e)+"/"+r),0===n&&r&&"/"===r[r.length-1]&&(n=5);var y=c(t);if(256===y)return null;if(y!==u(t,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");return{name:r,mode:i,uid:a,gid:s,size:l,mtime:new Date(1e3*f),type:h,linkname:d,uname:g,gname:m,devmajor:_,devminor:b}}},function(t,e){t.exports=function(t,e){if(Buffer.isBuffer(t))return t;if("string"==typeof t)return n(t,e);if(Array.isArray(t))return n(t);throw new Error("Input should be a buffer or a string")};var n=Buffer.from&&Buffer.from!==Uint8Array.from?Buffer.from:function(t,e){return new Buffer(t,e)}},function(t,e,n){var r=n(230),i=n(231);t.exports=function(t,e,n){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative');if(Buffer.alloc)return Buffer.alloc(t,e,n);var o=i(t);return 0===t?o:void 0===e?r(o,0):("string"!=typeof n&&(n=void 0),r(o,e,n))}},function(t,e){t.exports=function t(e,n){if(e&&n)return t(e)(n);if("function"!=typeof e)throw new TypeError("need wrapper function");Object.keys(e).forEach(function(t){r[t]=e[t]});return r;function r(){for(var t=new Array(arguments.length),n=0;n3?p-3:0),h=3;h=t.length||e<0?t:t.slice(0,e).concat(t.slice(e+1))}function _(t,e,n){if(t[e]===n)return t;for(var r=t.length,i=Array(r),o=0;o6?a-6:0),c=6;c6?a-6:0),c=6;c7?c-7:0),p=7;p=0||(o[u]=t[u])}return o}function T(t,e,n,r,i,o){for(var a=arguments.length,s=Array(a>6?a-6:0),c=6;c0&&this.height>0?new Buffer(4*this.width*this.height):null,t.fill&&this.data&&this.data.fill(0),this.gamma=0,this.readable=this.writable=!0,this._parser=new o(t),this._parser.on("error",this.emit.bind(this,"error")),this._parser.on("close",this._handleClose.bind(this)),this._parser.on("metadata",this._metadata.bind(this)),this._parser.on("gamma",this._gamma.bind(this)),this._parser.on("parsed",function(t){this.data=t,this.emit("parsed",t)}.bind(this)),this._packer=new a(t),this._packer.on("data",this.emit.bind(this,"data")),this._packer.on("end",this.emit.bind(this,"end")),this._parser.on("close",this._handleClose.bind(this)),this._packer.on("error",this.emit.bind(this,"error"))};r.inherits(c,i),c.sync=s,c.prototype.pack=function(){return this.data&&this.data.length?(process.nextTick(function(){this._packer.pack(this.data,this.width,this.height,this.gamma)}.bind(this)),this):(this.emit("error","No data provided"),this)},c.prototype.parse=function(t,e){var n,r;e&&(n=function(t){this.removeListener("error",r),this.data=t,e(null,this)}.bind(this),r=function(t){this.removeListener("parsed",n),e(t,null)}.bind(this),this.once("parsed",n),this.once("error",r));return this.end(t),this},c.prototype.write=function(t){return this._parser.write(t),!0},c.prototype.end=function(t){this._parser.end(t)},c.prototype._metadata=function(t){this.width=t.width,this.height=t.height,this.emit("metadata",t)},c.prototype._gamma=function(t){this.gamma=t},c.prototype._handleClose=function(){this._parser.writable||this._packer.readable||this.emit("close")},c.bitblt=function(t,e,n,r,i,o,a,s){if(r|=0,i|=0,o|=0,a|=0,s|=0,(n|=0)>t.width||r>t.height||n+i>t.width||r+o>t.height)throw new Error("bitblt reading outside image");if(a>e.width||s>e.height||a+i>e.width||s+o>e.height)throw new Error("bitblt writing outside image");for(var c=0;c"+this.newline},n.prototype.comment=function(t,e){return this.space(e)+"\x3c!-- "+t.text+" --\x3e"+this.newline},n.prototype.declaration=function(t,e){var n;return n=this.space(e),n+='",n+=this.newline},n.prototype.docType=function(t,n){var c,l,u,f,h;if(n||(n=0),f=this.space(n),f+="0){for(f+=" [",f+=this.newline,l=0,u=(h=t.children).length;l",f+=this.newline},n.prototype.element=function(t,n){var i,o,a,s,c,l,d,m,_,b,y,v,x;for(d in n||(n=0),x=!1,this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),m="",m+=(v=this.space(n))+"<"+t.name,_=t.attributes)g.call(_,d)&&(i=_[d],m+=this.attribute(i));if(0===t.children.length||t.children.every(function(t){return""===t.value}))this.allowEmpty?m+=">"+this.newline:m+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&1===t.children.length&&null!=t.children[0].value)m+=">",m+=t.children[0].value,m+=""+this.newline;else{if(this.dontprettytextnodes)for(a=0,c=(b=t.children).length;a"+this.newline,s=0,l=(y=t.children).length;s"+this.newline}return m},n.prototype.processingInstruction=function(t,e){var n;return n=this.space(e)+""+this.newline},n.prototype.raw=function(t,e){return this.space(e)+t.value+this.newline},n.prototype.text=function(t,e){return this.space(e)+t.value+this.newline},n.prototype.dtdAttList=function(t,e){var n;return n=this.space(e)+""+this.newline},n.prototype.dtdElement=function(t,e){return this.space(e)+""+this.newline},n.prototype.dtdEntity=function(t,e){var n;return n=this.space(e)+""+this.newline},n.prototype.dtdNotation=function(t,e){var n;return n=this.space(e)+""+this.newline},n.prototype.openNode=function(t,e){var n,r,i,o;if(e||(e=0),t instanceof u){for(r in i=this.space(e)+"<"+t.name,o=t.attributes)g.call(o,r)&&(n=o[r],i+=this.attribute(n));return i+=(t.children?">":"/>")+this.newline}return i=this.space(e)+"")+this.newline},n.prototype.closeNode=function(t,e){switch(e||(e=0),!1){case!(t instanceof u):return this.space(e)+""+this.newline;case!(t instanceof l):return this.space(e)+"]>"+this.newline}},n}()}).call(this)},function(t,e,n){"use strict";const r=n(95),i=n(47),o=n(96);t.exports=()=>t=>{if(!Buffer.isBuffer(t)&&!i(t))return Promise.reject(new TypeError(`Expected a Buffer or Stream, got ${typeof t}`));if(Buffer.isBuffer(t)&&(!r(t)||"tar"!==r(t).ext))return Promise.resolve([]);const e=o.extract(),n=[];e.on("entry",(t,e,r)=>{const i=[];e.on("data",t=>i.push(t)),e.on("end",()=>{const e={data:Buffer.concat(i),mode:t.mode,mtime:t.mtime,path:t.name,type:t.type};"symlink"!==t.type&&"link"!==t.type||(e.linkname=t.linkname),n.push(e),r()})});const a=new Promise((r,i)=>{Buffer.isBuffer(t)||t.on("error",i),e.on("finish",()=>r(n)),e.on("error",i)});return e.then=a.then.bind(a),e.catch=a.catch.bind(a),Buffer.isBuffer(t)?e.end(t):t.pipe(e),e}},function(t,e,n){var r=n(4).Buffer,i=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];function o(t){if(r.isBuffer(t))return t;var e="function"==typeof r.alloc&&"function"==typeof r.from;if("number"==typeof t)return e?r.alloc(t):new r(t);if("string"==typeof t)return e?r.from(t):new r(t);throw new Error("input must be buffer, number, or string, received "+typeof t)}function a(t,e){t=o(t),r.isBuffer(e)&&(e=e.readUInt32BE(0));for(var n=-1^~~e,a=0;a>>8;return-1^n}function s(){return t=a.apply(null,arguments),(e=o(4)).writeInt32BE(t,0),e;var t,e}"undefined"!=typeof Int32Array&&(i=new Int32Array(i)),s.signed=function(){return a.apply(null,arguments)},s.unsigned=function(){return a.apply(null,arguments)>>>0},t.exports=s},function(t,e,n){t.exports=y;var r=n(5),i=n(109),o=n(56),a=(o.Minimatch,n(18)),s=n(17).EventEmitter,c=n(1),l=n(20),u=n(57),p=n(265),f=n(110),h=(f.alphasort,f.alphasorti,f.setopts),d=f.ownProp,g=n(266),m=(n(3),f.childrenIgnored),_=f.isIgnored,b=n(48);function y(t,e,n){if("function"==typeof e&&(n=e,e={}),e||(e={}),e.sync){if(n)throw new TypeError("callback provided to sync glob");return p(t,e)}return new x(t,e,n)}y.sync=p;var v=y.GlobSync=p.GlobSync;function x(t,e,n){if("function"==typeof e&&(n=e,e=null),e&&e.sync){if(n)throw new TypeError("callback provided to sync glob");return new v(t,e)}if(!(this instanceof x))return new x(t,e,n);h(this,t,e),this._didRealPath=!1;var r=this.minimatch.set.length;this.matches=new Array(r),"function"==typeof n&&(n=b(n),this.on("error",n),this.on("end",function(t){n(null,t)}));var i=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(0===r)return s();for(var o=!0,a=0;a1)return!0;for(var i=0;ithis.maxLength)return e();if(!this.stat&&d(this.cache,n)){var o=this.cache[n];if(Array.isArray(o)&&(o="DIR"),!i||"DIR"===o)return e(null,o);if(i&&"FILE"===o)return e()}var a=this.statCache[n];if(void 0!==a){if(!1===a)return e(null,a);var s=a.isDirectory()?"DIR":"FILE";return i&&"FILE"===s?e():e(null,s,a)}var c=this,l=g("stat\0"+n,function(i,o){if(o&&o.isSymbolicLink())return r.stat(n,function(r,i){r?c._stat2(t,n,null,o,e):c._stat2(t,n,r,i,e)});c._stat2(t,n,i,o,e)});l&&r.lstat(n,l)},x.prototype._stat2=function(t,e,n,r,i){if(n&&("ENOENT"===n.code||"ENOTDIR"===n.code))return this.statCache[e]=!1,i();var o="/"===t.slice(-1);if(this.statCache[e]=r,"/"===e.slice(-1)&&r&&!r.isDirectory())return i(null,!1,r);var a=!0;return r&&(a=r.isDirectory()?"DIR":"FILE"),this.cache[e]=this.cache[e]||a,o&&"FILE"===a?i():i(null,a,r)}},function(t,e,n){t.exports=d,d.Minimatch=g;var r={sep:"/"};try{r=n(1)}catch(t){}var i=d.GLOBSTAR=g.GLOBSTAR={},o=n(262),a={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},s="[^/]",c=s+"*?",l="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",u="(?:(?!(?:\\/|^)\\.).)*?",p="().*{}+?[]^$\\!".split("").reduce(function(t,e){return t[e]=!0,t},{});var f=/\/+/;function h(t,e){t=t||{},e=e||{};var n={};return Object.keys(e).forEach(function(t){n[t]=e[t]}),Object.keys(t).forEach(function(e){n[e]=t[e]}),n}function d(t,e,n){if("string"!=typeof e)throw new TypeError("glob pattern string required");return n||(n={}),!(!n.nocomment&&"#"===e.charAt(0))&&(""===e.trim()?""===t:new g(e,n).match(t))}function g(t,e){if(!(this instanceof g))return new g(t,e);if("string"!=typeof t)throw new TypeError("glob pattern string required");e||(e={}),t=t.trim(),"/"!==r.sep&&(t=t.split(r.sep).join("/")),this.options=e,this.set=[],this.pattern=t,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function m(t,e){if(e||(e=this instanceof g?this.options:{}),void 0===(t=void 0===t?this.pattern:t))throw new TypeError("undefined pattern");return e.nobrace||!t.match(/\{.*\}/)?[t]:o(t)}d.filter=function(t,e){return e=e||{},function(n,r,i){return d(n,t,e)}},d.defaults=function(t){if(!t||!Object.keys(t).length)return d;var e=d,n=function(n,r,i){return e.minimatch(n,r,h(t,i))};return n.Minimatch=function(n,r){return new e.Minimatch(n,h(t,r))},n},g.defaults=function(t){return t&&Object.keys(t).length?d.defaults(t).Minimatch:g},g.prototype.debug=function(){},g.prototype.make=function(){if(this._made)return;var t=this.pattern,e=this.options;if(!e.nocomment&&"#"===t.charAt(0))return void(this.comment=!0);if(!t)return void(this.empty=!0);this.parseNegate();var n=this.globSet=this.braceExpand();e.debug&&(this.debug=console.error);this.debug(this.pattern,n),n=this.globParts=n.map(function(t){return t.split(f)}),this.debug(this.pattern,n),n=n.map(function(t,e,n){return t.map(this.parse,this)},this),this.debug(this.pattern,n),n=n.filter(function(t){return-1===t.indexOf(!1)}),this.debug(this.pattern,n),this.set=n},g.prototype.parseNegate=function(){var t=this.pattern,e=!1,n=this.options,r=0;if(n.nonegate)return;for(var i=0,o=t.length;i65536)throw new TypeError("pattern is too long");var n=this.options;if(!n.noglobstar&&"**"===t)return i;if(""===t)return"";var r,o="",l=!!n.nocase,u=!1,f=[],h=[],d=!1,g=-1,m=-1,b="."===t.charAt(0)?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",y=this;function v(){if(r){switch(r){case"*":o+=c,l=!0;break;case"?":o+=s,l=!0;break;default:o+="\\"+r}y.debug("clearStateChar %j %j",r,o),r=!1}}for(var x,w=0,k=t.length;w-1;C--){var P=h[C],D=o.slice(0,P.reStart),B=o.slice(P.reStart,P.reEnd-8),L=o.slice(P.reEnd-8,P.reEnd),N=o.slice(P.reEnd);L+=N;var z=D.split("(").length-1,M=N;for(w=0;w=0&&!(i=t[o]);o--);for(o=0;o>> no match, partial?",t,f,e,h),f!==s))}if("string"==typeof u?(l=r.nocase?p.toLowerCase()===u.toLowerCase():p===u,this.debug("string match",u,p,l)):(l=p.match(u),this.debug("pattern match",u,p,l)),!l)return!1}if(o===s&&a===c)return!0;if(o===s)return n;if(a===c)return o===s-1&&""===t[o];throw new Error("wtf?")}},function(t,e,n){"use strict";function r(t){return"/"===t.charAt(0)}function i(t){var e=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(t),n=e[1]||"",r=Boolean(n&&":"!==n.charAt(1));return Boolean(e[2]||r)}t.exports="win32"===process.platform?i:r,t.exports.posix=r,t.exports.win32=i},function(t,e){var n=t.exports=function(){};n.prototype.getName=function(){},n.prototype.getSize=function(){},n.prototype.getLastModifiedDate=function(){},n.prototype.isDirectory=function(){}},function(t,e){var n=t.exports={};n.dateToDos=function(t,e){var n=(e=e||!1)?t.getFullYear():t.getUTCFullYear();return n<1980?2162688:n>=2044?2141175677:n-1980<<25|(e?t.getMonth():t.getUTCMonth())+1<<21|(e?t.getDate():t.getUTCDate())<<16|(e?t.getHours():t.getUTCHours())<<11|(e?t.getMinutes():t.getUTCMinutes())<<5|(e?t.getSeconds():t.getUTCSeconds())/2},n.dosToDate=function(t){return new Date(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1)},n.fromDosTime=function(t){return n.dosToDate(t.readUInt32LE())},n.getEightBytes=function(t){var e=new Buffer(8);return e.writeUInt32LE(t%4294967296,0),e.writeUInt32LE(t/4294967296|0,4),e},n.getShortBytes=function(t){var e=new Buffer(2);return e.writeUInt16LE((65535&t)>>>0,0),e},n.getShortBytesValue=function(t,e){return t.readUInt16LE(e)},n.getLongBytes=function(t){var e=new Buffer(4);return e.writeUInt32LE((4294967295&t)>>>0,0),e},n.getLongBytesValue=function(t,e){return t.readUInt32LE(e)},n.toDosTime=function(t){return n.getLongBytes(n.dateToDos(t))}},function(t){t.exports={name:"@ozelot379/convert-minecraft-java-texture-to-bedrock",productName:"ConvertMinecraftJavaTextureToBedrock",version:"1.1.0",description:"Convert Minecraft Java texture packs to Minecraft Bedrock texture packs",keywords:["Minecraft","Texture","Pack","Convert","Java","Bedrock"],author:"ozelot379",license:"GPL-3.0-only",repository:{type:"git",url:"git+https://github.com/ozelot379/ConvertMinecraftJavaTextureToBedrock.git"},bugs:{url:"https://github.com/ozelot379/ConvertMinecraftJavaTextureToBedrock/issues"},homepage:"https://github.com/ozelot379/ConvertMinecraftJavaTextureToBedrock#readme",dependencies:{},devDependencies:{decompress:"latest","fs-extra":"latest",jimp:"latest",mocha:"latest",tga:"latest",uuid:"latest",webpack:"latest","webpack-cli":"latest",yargs:"latest","zip-a-folder":"latest"},engines:{node:">=10.0.0"},main:"dist/index.js",bin:{ConvertMinecraftJavaTextureToBedrock:"dist/cli.js"},scripts:{build:"webpack",cli:"node dist/cli.js",debug:"webpack --mode=development && node dist/cli.js",test:"webpack --mode=development && mocha tests"}}},function(t,e,n){var r=n(171),i=n(172);t.exports={encode:r,decode:i}},function(t,e,n){var r=n(183),i=n(184);t.exports={encode:r,decode:i}},function(t,e){t.exports={nearestNeighbor:function(t,e){for(var n=t.width,r=t.height,i=e.width,o=e.height,a=t.data,s=e.data,c=0;c0?i[k-4]:2*i[k]-i[k+4],S=i[k],I=i[k+4],T=b0?d[M-4*p]:2*d[M]-d[M+4*p],j=d[M],F=d[M+4*p],U=D1)for(var H=0;H"function"==typeof i[t]);Object.keys(i).forEach(t=>{"promises"!==t&&(e[t]=i[t])}),o.forEach(t=>{e[t]=r(i[t])}),e.exists=function(t,e){return"function"==typeof e?i.exists(t,e):new Promise(e=>i.exists(t,e))},e.read=function(t,e,n,r,o,a){return"function"==typeof a?i.read(t,e,n,r,o,a):new Promise((a,s)=>{i.read(t,e,n,r,o,(t,e,n)=>{if(t)return s(t);a({bytesRead:e,buffer:n})})})},e.write=function(t,e,...n){return"function"==typeof n[n.length-1]?i.write(t,e,...n):new Promise((r,o)=>{i.write(t,e,...n,(t,e,n)=>{if(t)return o(t);r({bytesWritten:e,buffer:n})})})},"function"==typeof i.realpath.native&&(e.realpath.native=r(i.realpath.native))},function(t,e){t.exports=require("constants")},function(t,e,n){"use strict";t.exports={copySync:n(138)}},function(t,e,n){"use strict";const r=n(1);function i(t){return(t=r.normalize(r.resolve(t)).split(r.sep)).length>0?t[0]:null}const o=/[<>:"|?*]/;t.exports={getRootPath:i,invalidWin32Path:function(t){const e=i(t);return t=t.replace(e,""),o.test(t)}}},function(t,e,n){"use strict";const r=n(6),i=n(44),o=n(1);t.exports={hasMillisRes:function(t){let e=o.join("millis-test"+Date.now().toString()+Math.random().toString().slice(2));e=o.join(i.tmpdir(),e);const n=new Date(1435410243862);r.writeFile(e,"https://github.com/jprichardson/node-fs-extra/pull/141",i=>{if(i)return t(i);r.open(e,"r+",(i,o)=>{if(i)return t(i);r.futimes(o,n,n,n=>{if(n)return t(n);r.close(o,n=>{if(n)return t(n);r.stat(e,(e,n)=>{if(e)return t(e);t(null,n.mtime>1435410243e3)})})})})})},hasMillisResSync:function(){let t=o.join("millis-test-sync"+Date.now().toString()+Math.random().toString().slice(2));t=o.join(i.tmpdir(),t);const e=new Date(1435410243862);r.writeFileSync(t,"https://github.com/jprichardson/node-fs-extra/pull/141");const n=r.openSync(t,"r+");return r.futimesSync(n,e,e),r.closeSync(n),r.statSync(t).mtime>1435410243e3},timeRemoveMillis:function(t){if("number"==typeof t)return 1e3*Math.floor(t/1e3);if(t instanceof Date)return new Date(1e3*Math.floor(t.getTime()/1e3));throw new Error("fs-extra: timeRemoveMillis() unknown parameter type")},utimesMillis:function(t,e,n,i){r.open(t,"r+",(t,o)=>{if(t)return i(t);r.futimes(o,e,n,t=>{r.close(o,e=>{i&&i(t||e)})})})},utimesMillisSync:function(t,e,n){const i=r.openSync(t,"r+");return r.futimesSync(i,e,n),r.closeSync(i)}}},function(t,e,n){"use strict";const r=n(8).fromCallback;t.exports={copy:r(n(142))}},function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=n(161),o=n(162),a=n(72),s=n(163),c=n(12),l=n(3),u=function(t,e){if("string"!=typeof t&&!t.hasOwnProperty("url"))throw new Error("Missing url option from options for request method.");var n="object"===(void 0===t?"undefined":r(t))?a.parse(t.url):a.parse(t),l={hostname:n.hostname,port:n.port||("http:"===n.protocol.toLowerCase()?80:443),path:n.path,method:"GET",headers:{},auth:n.auth||null,parse:"none",stream:!1};if("object"===(void 0===t?"undefined":r(t))&&(l=Object.assign(l,t)),l.port=Number(l.port),l.hasOwnProperty("timeout")&&delete l.timeout,!0===l.compressed&&(l.headers["accept-encoding"]="gzip, deflate"),t.hasOwnProperty("form")){if("object"!==r(t.form))throw new Error("phin 'form' option must be of type Object if present.");var u=s.stringify(t.form);l.headers["Content-Type"]="application/x-www-form-urlencoded",l.headers["Content-Length"]=Buffer.byteLength(u),t.data=u}var p=void 0,f=function(t){var n=t;!0===l.compressed&&("gzip"===t.headers["content-encoding"]?n=t.pipe(c.createGunzip()):"deflate"===t.headers["content-encoding"]&&(n=t.pipe(c.createInflate()))),!0===l.stream?(t.stream=n,e&&e(null,t)):(t.body=new Buffer([]),n.on("data",function(e){t.body=Buffer.concat([t.body,e])}),n.on("end",function(){if(e){if("json"===l.parse)try{t.body=JSON.parse(t.body.toString())}catch(n){return void e("Invalid JSON received.",t)}e(null,t)}}))};switch(n.protocol.toLowerCase()){case"http:":p=i.request(l,f);break;case"https:":p=o.request(l,f);break;default:return void(e&&e(new Error("Invalid / unknown URL protocol. Expected HTTP or HTTPS."),null))}if("number"==typeof t.timeout&&p.setTimeout(t.timeout,function(){p.abort(),e&&e(new Error("Timeout has been reached."),null),e=null}),p.on("error",function(t){e&&e(t,null)}),t.hasOwnProperty("data")){var h=t.data;if(!(t.data instanceof Buffer)&&"object"===r(t.data))if("application/x-www-form-urlencoded"===(l.headers["content-type"]||l.headers["Content-Type"]))h=s.stringify(t.data);else try{h=JSON.stringify(t.data)}catch(t){e&&e(new Error("Couldn't stringify object. (Likely due to a circular reference.)"),null)}p.write(h)}p.end()};u.promisified=function(t,e){return new Promise(function(e,n){u(t,function(t,r){t?n(t):e(r)})})},l.promisify&&(u[l.promisify.custom]=u.promisified),t.exports=u},function(t,e){t.exports=require("url")},function(t,e){function n(t,e){switch(t){case 1:return e.nextUInt8();case 3:return e.nextUInt16();case 4:return e.nextUInt32();case 5:return[e.nextUInt32(),e.nextUInt32()];case 6:return e.nextInt8();case 8:return e.nextUInt16();case 9:return e.nextUInt32();case 10:return[e.nextInt32(),e.nextInt32()];case 11:return e.nextFloat();case 12:return e.nextDouble();default:throw new Error("Invalid format while decoding: "+t)}}function r(t,e){var r,i,o=e.nextUInt16(),a=e.nextUInt16(),s=function(t){switch(t){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}}(a),c=e.nextUInt32(),l=s*c;if(l>4&&(e=t.openWithOffset(e.nextUInt32())),2===a){var u=(r=e.nextString(c)).indexOf("\0");-1!==u&&(r=r.substr(0,u))}else if(7===a)r=e.nextBuffer(c);else if(0!==a)for(r=[],i=0;i0&&(this._paused=!1,this.emit("drain"))}.bind(this))},o.prototype.write=function(t,e){return this.writable?(n=Buffer.isBuffer(t)?t:new Buffer(t,e||this._encoding),this._buffers.push(n),this._buffered+=n.length,this._process(),this._reads&&0===this._reads.length&&(this._paused=!0),this.writable&&!this._paused):(this.emit("error",new Error("Stream not writable")),!1);var n},o.prototype.end=function(t,e){t&&this.write(t,e),this.writable=!1,this._buffers&&(0===this._buffers.length?this._end():(this._buffers.push(null),this._process()))},o.prototype.destroySoon=o.prototype.end,o.prototype._end=function(){this._reads.length>0&&this.emit("error",new Error("Unexpected end of input")),this.destroy()},o.prototype.destroy=function(){this._buffers&&(this.writable=!1,this._reads=null,this._buffers=null,this.emit("close"))},o.prototype._processReadAllowingLess=function(t){this._reads.shift();var e=this._buffers[0];e.length>t.length?(this._buffered-=t.length,this._buffers[0]=e.slice(t.length),t.func.call(this,e.slice(0,t.length))):(this._buffered-=e.length,this._buffers.shift(),t.func.call(this,e))},o.prototype._processRead=function(t){this._reads.shift();for(var e=0,n=0,r=new Buffer(t.length);e0&&this._buffers.splice(0,n),this._buffered-=t.length,t.func.call(this,r)},o.prototype._process=function(){try{for(;this._buffered>0&&this._reads&&this._reads.length>0;){var t=this._reads[0];if(t.allowLess)this._processReadAllowingLess(t);else{if(!(this._buffered>=t.length))break;this._processRead(t)}}this._buffers&&!this.writable&&this._end()}catch(t){this.emit("error",t)}}},function(t,e,n){"use strict";var r=n(76),i=n(77);function o(t,e,n){var r=t*e;return 8!==n&&(r=Math.ceil(r/(8/n))),r}var a=t.exports=function(t,e){var n=t.width,i=t.height,a=t.interlace,s=t.bpp,c=t.depth;if(this.read=e.read,this.write=e.write,this.complete=e.complete,this._imageIndex=0,this._images=[],a)for(var l=r.getImagePasses(n,i),u=0;ui?e[o-r]:0;e[o]=a+s}},a.prototype._unFilterType2=function(t,e,n){for(var r=this._lastLine,i=0;ii?e[a-r]:0,u=Math.floor((l+c)/2);e[a]=s+u}},a.prototype._unFilterType4=function(t,e,n){for(var r=this._xComparison,o=r-1,a=this._lastLine,s=0;so?e[s-r]:0,p=s>o&&a?a[s-r]:0,f=i(u,l,p);e[s]=c+f}},a.prototype._reverseFilterLine=function(t){var e,n=t[0],r=this._images[this._imageIndex],i=r.byteWidth;if(0===n)e=t.slice(1,i+1);else switch(e=new Buffer(i),n){case 1:this._unFilterType1(t,e,i);break;case 2:this._unFilterType2(t,e,i);break;case 3:this._unFilterType3(t,e,i);break;case 4:this._unFilterType4(t,e,i);break;default:throw new Error("Unrecognised filter type - "+n)}this.write(e),r.lineIndex++,r.lineIndex>=r.height?(this._lastLine=null,this._imageIndex++,r=this._images[this._imageIndex]):this._lastLine=e,r?this.read(r.byteWidth+1,this._reverseFilterLine.bind(this)):(this._lastLine=null,this.complete())}},function(t,e,n){"use strict";var r=[{x:[0],y:[0]},{x:[4],y:[0]},{x:[0,4],y:[4]},{x:[2,6],y:[0,4]},{x:[0,2,4,6],y:[2,6]},{x:[1,3,5,7],y:[0,2,4,6]},{x:[0,1,2,3,4,5,6,7],y:[1,3,5,7]}];e.getImagePasses=function(t,e){for(var n=[],i=t%8,o=e%8,a=(t-i)/8,s=(e-o)/8,c=0;c0&&p>0&&n.push({width:u,height:p,index:c})}return n},e.getInterlaceIterator=function(t){return function(e,n,i){var o=e%r[i].x.length,a=(e-o)/r[i].x.length*8+r[i].x[o],s=n%r[i].y.length;return 4*a+((n-s)/r[i].y.length*8+r[i].y[s])*t*4}}},function(t,e,n){"use strict";t.exports=function(t,e,n){var r=t+e-n,i=Math.abs(r-t),o=Math.abs(r-e),a=Math.abs(r-n);return i<=o&&i<=a?t:o<=a?e:n}},function(t,e,n){"use strict";var r=n(21),i=n(79),o=t.exports=function(t,e){this._options=t,t.checkCRC=!1!==t.checkCRC,this._hasIHDR=!1,this._hasIEND=!1,this._emittedHeadersFinished=!1,this._palette=[],this._colorType=0,this._chunks={},this._chunks[r.TYPE_IHDR]=this._handleIHDR.bind(this),this._chunks[r.TYPE_IEND]=this._handleIEND.bind(this),this._chunks[r.TYPE_IDAT]=this._handleIDAT.bind(this),this._chunks[r.TYPE_PLTE]=this._handlePLTE.bind(this),this._chunks[r.TYPE_tRNS]=this._handleTRNS.bind(this),this._chunks[r.TYPE_gAMA]=this._handleGAMA.bind(this),this.read=e.read,this.error=e.error,this.metadata=e.metadata,this.gamma=e.gamma,this.transColor=e.transColor,this.palette=e.palette,this.parsed=e.parsed,this.inflateData=e.inflateData,this.finished=e.finished,this.simpleTransparency=e.simpleTransparency,this.headersFinished=e.headersFinished||function(){}};o.prototype.start=function(){this.read(r.PNG_SIGNATURE.length,this._parseSignature.bind(this))},o.prototype._parseSignature=function(t){for(var e=r.PNG_SIGNATURE,n=0;nthis._palette.length)return void this.error(new Error("More transparent colors than palette size"));for(var e=0;e0?this._handleIDAT(n):this._handleChunkEnd()},o.prototype._handleIEND=function(t){this.read(t,this._parseIEND.bind(this))},o.prototype._parseIEND=function(t){this._crc.write(t),this._hasIEND=!0,this._handleChunkEnd(),this.finished&&this.finished()}},function(t,e,n){"use strict";var r=[];!function(){for(var t=0;t<256;t++){for(var e=t,n=0;n<8;n++)1&e?e=3988292384^e>>>1:e>>>=1;r[t]=e}}();var i=t.exports=function(){this._crc=-1};i.prototype.write=function(t){for(var e=0;e>>8;return!0},i.prototype.crc32=function(){return-1^this._crc},i.crc32=function(t){for(var e=-1,n=0;n>>8;return-1^e}},function(t,e,n){"use strict";var r=n(76),i=[function(){},function(t,e,n,r){if(r===e.length)throw new Error("Ran out of data");var i=e[r];t[n]=i,t[n+1]=i,t[n+2]=i,t[n+3]=255},function(t,e,n,r){if(r+1>=e.length)throw new Error("Ran out of data");var i=e[r];t[n]=i,t[n+1]=i,t[n+2]=i,t[n+3]=e[r+1]},function(t,e,n,r){if(r+2>=e.length)throw new Error("Ran out of data");t[n]=e[r],t[n+1]=e[r+1],t[n+2]=e[r+2],t[n+3]=255},function(t,e,n,r){if(r+3>=e.length)throw new Error("Ran out of data");t[n]=e[r],t[n+1]=e[r+1],t[n+2]=e[r+2],t[n+3]=e[r+3]}],o=[function(){},function(t,e,n,r){var i=e[0];t[n]=i,t[n+1]=i,t[n+2]=i,t[n+3]=r},function(t,e,n){var r=e[0];t[n]=r,t[n+1]=r,t[n+2]=r,t[n+3]=e[1]},function(t,e,n,r){t[n]=e[0],t[n+1]=e[1],t[n+2]=e[2],t[n+3]=r},function(t,e,n){t[n]=e[0],t[n+1]=e[1],t[n+2]=e[2],t[n+3]=e[3]}];function a(t,e,n,r,o,a){for(var s=t.width,c=t.height,l=t.index,u=0;u>4,n.push(p,u);break;case 2:c=3&f,l=f>>2&3,u=f>>4&3,p=f>>6&3,n.push(p,u,l,c);break;case 1:i=1&f,o=f>>1&1,a=f>>2&1,s=f>>3&1,c=f>>4&1,l=f>>5&1,u=f>>6&1,p=f>>7&1,n.push(p,u,l,c,s,a,o,i)}}return{get:function(t){for(;n.length0&&this._buffer.length;){var t=this._reads[0];if(!this._buffer.length||!(this._buffer.length>=t.length||t.allowLess))break;this._reads.shift();var e=this._buffer;this._buffer=e.slice(t.length),t.func.call(this,e.slice(0,t.length))}return this._reads.length>0?new Error("There are some read requests waitng on finished stream"):this._buffer.length>0?new Error("unrecognised content at end of stream"):void 0}},function(t,e,n){"use strict";t.exports=function(t,e,n,r){for(var i=65535&t|0,o=t>>>16&65535|0,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{o=o+(i=i+e[r++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16|0}},function(t,e,n){"use strict";var r=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();t.exports=function(t,e,n,i){var o=r,a=i+n;t^=-1;for(var s=i;s>>8^o[255&(t^e[s])];return-1^t}},function(t,e,n){"use strict";var r=n(14),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(t){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){o=!1}for(var a=new r.Buf8(256),s=0;s<256;s++)a[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;function c(t,e){if(e<65534&&(t.subarray&&o||!t.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(t,e));for(var n="",a=0;a>>6,e[a++]=128|63&n):n<65536?(e[a++]=224|n>>>12,e[a++]=128|n>>>6&63,e[a++]=128|63&n):(e[a++]=240|n>>>18,e[a++]=128|n>>>12&63,e[a++]=128|n>>>6&63,e[a++]=128|63&n);return e},e.buf2binstring=function(t){return c(t,t.length)},e.binstring2buf=function(t){for(var e=new r.Buf8(t.length),n=0,i=e.length;n4)l[r++]=65533,n+=o-1;else{for(i&=2===o?31:3===o?15:7;o>1&&n1?l[r++]=65533:i<65536?l[r++]=i:(i-=65536,l[r++]=55296|i>>10&1023,l[r++]=56320|1023&i)}return c(l,r)},e.utf8border=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;n>=0&&128==(192&t[n]);)n--;return n<0?e:0===n?e:n+a[t[n]]>e?n:e}},function(t,e,n){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},function(t,e,n){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},function(t,e){(function(){t.exports=function(){function t(t,e,n){if(this.options=t.options,this.stringify=t.stringify,null==e)throw new Error("Missing attribute name of element "+t.name);if(null==n)throw new Error("Missing attribute value for attribute "+e+" of element "+t.name);this.name=this.stringify.attName(e),this.value=this.stringify.attValue(n)}return t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(t){return this.options.writer.set(t).attribute(this)},t}()}).call(this)},function(t,e){(function(){var e=function(t,e){return function(){return t.apply(e,arguments)}},n={}.hasOwnProperty;t.exports=function(){function t(t){var r,i,o;for(r in this.assertLegalChar=e(this.assertLegalChar,this),t||(t={}),this.noDoubleEncoding=t.noDoubleEncoding,i=t.stringify||{})n.call(i,r)&&(o=i[r],this[r]=o)}return t.prototype.eleName=function(t){return t=""+t||"",this.assertLegalChar(t)},t.prototype.eleText=function(t){return t=""+t||"",this.assertLegalChar(this.elEscape(t))},t.prototype.cdata=function(t){return t=(t=""+t||"").replace("]]>","]]]]>"),this.assertLegalChar(t)},t.prototype.comment=function(t){if((t=""+t||"").match(/--/))throw new Error("Comment text cannot contain double-hypen: "+t);return this.assertLegalChar(t)},t.prototype.raw=function(t){return""+t||""},t.prototype.attName=function(t){return""+t||""},t.prototype.attValue=function(t){return t=""+t||"",this.attEscape(t)},t.prototype.insTarget=function(t){return""+t||""},t.prototype.insValue=function(t){if((t=""+t||"").match(/\?>/))throw new Error("Invalid processing instruction value: "+t);return t},t.prototype.xmlVersion=function(t){if(!(t=""+t||"").match(/1\.[0-9]+/))throw new Error("Invalid version number: "+t);return t},t.prototype.xmlEncoding=function(t){if(!(t=""+t||"").match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+t);return t},t.prototype.xmlStandalone=function(t){return t?"yes":"no"},t.prototype.dtdPubID=function(t){return""+t||""},t.prototype.dtdSysID=function(t){return""+t||""},t.prototype.dtdElementValue=function(t){return""+t||""},t.prototype.dtdAttType=function(t){return""+t||""},t.prototype.dtdAttDefault=function(t){return null!=t?""+t||"":t},t.prototype.dtdEntityValue=function(t){return""+t||""},t.prototype.dtdNData=function(t){return""+t||""},t.prototype.convertAttKey="@",t.prototype.convertPIKey="?",t.prototype.convertTextKey="#text",t.prototype.convertCDataKey="#cdata",t.prototype.convertCommentKey="#comment",t.prototype.convertRawKey="#raw",t.prototype.assertLegalChar=function(t){var e;if(e=t.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/))throw new Error("Invalid character in string: "+t+" at index "+e.index);return t},t.prototype.elEscape=function(t){var e;return e=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,t.replace(e,"&").replace(//g,">").replace(/\r/g," ")},t.prototype.attEscape=function(t){var e;return e=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,t.replace(e,"&").replace(/0?new Array(e).join(this.indent):""},t}()}).call(this)},function(t,e){t.exports=require("string_decoder")},function(t,e){(function(){"use strict";var t;t=new RegExp(/(?!xmlns)^.*:/),e.normalize=function(t){return t.toLowerCase()},e.firstCharLowerCase=function(t){return t.charAt(0).toLowerCase()+t.slice(1)},e.stripPrefix=function(e){return e.replace(t,"")},e.parseNumbers=function(t){return isNaN(t)||(t=t%1==0?parseInt(t,10):parseFloat(t)),t},e.parseBooleans=function(t){return/^(?:true|false)$/i.test(t)&&(t="true"===t.toLowerCase()),t}}).call(this)},function(t,e,n){var r;function i(t){function n(){if(n.enabled){var t=n,i=+new Date,o=i-(r||i);t.diff=o,t.prev=r,t.curr=i,r=i;for(var a=new Array(arguments.length),s=0;s{const e=new Uint8Array(t);if(!(e&&e.length>1))return null;const n=(t,n)=>{n=Object.assign({offset:0},n);for(let r=0;r66===n[e]&&130===n[e+1]);if(n>=0){const e=n+3,r=n=>Array.from(n).every((n,r)=>t[e+r]===n.charCodeAt(0));if(r("matroska"))return{ext:"mkv",mime:"video/x-matroska"};if(r("webm"))return{ext:"webm",mime:"video/webm"}}}return n([0,0,0,20,102,116,121,112,113,116,32,32])||n([102,114,101,101],{offset:4})||n([102,116,121,112,113,116,32,32],{offset:4})||n([109,100,97,116],{offset:4})||n([119,105,100,101],{offset:4})?{ext:"mov",mime:"video/quicktime"}:n([82,73,70,70])&&n([65,86,73],{offset:8})?{ext:"avi",mime:"video/x-msvideo"}:n([48,38,178,117,142,102,207,17,166,217])?{ext:"wmv",mime:"video/x-ms-wmv"}:n([0,0,1,186])?{ext:"mpg",mime:"video/mpeg"}:n([73,68,51])||n([255,251])?{ext:"mp3",mime:"audio/mpeg"}:n([102,116,121,112,77,52,65],{offset:4})||n([77,52,65,32])?{ext:"m4a",mime:"audio/m4a"}:n([79,112,117,115,72,101,97,100],{offset:28})?{ext:"opus",mime:"audio/opus"}:n([79,103,103,83])?{ext:"ogg",mime:"audio/ogg"}:n([102,76,97,67])?{ext:"flac",mime:"audio/x-flac"}:n([82,73,70,70])&&n([87,65,86,69],{offset:8})?{ext:"wav",mime:"audio/x-wav"}:n([35,33,65,77,82,10])?{ext:"amr",mime:"audio/amr"}:n([37,80,68,70])?{ext:"pdf",mime:"application/pdf"}:n([77,90])?{ext:"exe",mime:"application/x-msdownload"}:67!==e[0]&&70!==e[0]||!n([87,83],{offset:1})?n([123,92,114,116,102])?{ext:"rtf",mime:"application/rtf"}:n([0,97,115,109])?{ext:"wasm",mime:"application/wasm"}:n([119,79,70,70])&&(n([0,1,0,0],{offset:4})||n([79,84,84,79],{offset:4}))?{ext:"woff",mime:"font/woff"}:n([119,79,70,50])&&(n([0,1,0,0],{offset:4})||n([79,84,84,79],{offset:4}))?{ext:"woff2",mime:"font/woff2"}:n([76,80],{offset:34})&&(n([0,0,1],{offset:8})||n([1,0,2],{offset:8})||n([2,0,2],{offset:8}))?{ext:"eot",mime:"application/octet-stream"}:n([0,1,0,0,0])?{ext:"ttf",mime:"font/ttf"}:n([79,84,84,79,0])?{ext:"otf",mime:"font/otf"}:n([0,0,1,0])?{ext:"ico",mime:"image/x-icon"}:n([70,76,86,1])?{ext:"flv",mime:"video/x-flv"}:n([37,33])?{ext:"ps",mime:"application/postscript"}:n([253,55,122,88,90,0])?{ext:"xz",mime:"application/x-xz"}:n([83,81,76,105])?{ext:"sqlite",mime:"application/x-sqlite3"}:n([78,69,83,26])?{ext:"nes",mime:"application/x-nintendo-nes-rom"}:n([67,114,50,52])?{ext:"crx",mime:"application/x-google-chrome-extension"}:n([77,83,67,70])||n([73,83,99,40])?{ext:"cab",mime:"application/vnd.ms-cab-compressed"}:n([33,60,97,114,99,104,62,10,100,101,98,105,97,110,45,98,105,110,97,114,121])?{ext:"deb",mime:"application/x-deb"}:n([33,60,97,114,99,104,62])?{ext:"ar",mime:"application/x-unix-archive"}:n([237,171,238,219])?{ext:"rpm",mime:"application/x-rpm"}:n([31,160])||n([31,157])?{ext:"Z",mime:"application/x-compress"}:n([76,90,73,80])?{ext:"lz",mime:"application/x-lzip"}:n([208,207,17,224,161,177,26,225])?{ext:"msi",mime:"application/x-msi"}:n([6,14,43,52,2,5,1,1,13,1,2,1,1,2])?{ext:"mxf",mime:"application/mxf"}:n([71],{offset:4})&&(n([71],{offset:192})||n([71],{offset:196}))?{ext:"mts",mime:"video/mp2t"}:n([66,76,69,78,68,69,82])?{ext:"blend",mime:"application/x-blender"}:n([66,80,71,251])?{ext:"bpg",mime:"image/bpg"}:null:{ext:"swf",mime:"application/x-shockwave-flash"}}},function(t,e,n){e.extract=n(221),e.pack=n(232)},function(t,e,n){"use strict";var r=n(43);t.exports=b;var i,o=n(224);b.ReadableState=_;n(17).EventEmitter;var a=function(t,e){return t.listeners(e).length},s=n(98),c=n(22).Buffer,l=global.Uint8Array||function(){};var u=n(23);u.inherits=n(18);var p=n(3),f=void 0;f=p&&p.debuglog?p.debuglog("stream"):function(){};var h,d=n(226),g=n(99);u.inherits(b,s);var m=["error","close","destroy","pause","resume"];function _(t,e){t=t||{};var r=e instanceof(i=i||n(19));this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var o=t.highWaterMark,a=t.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:r&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(h||(h=n(101).StringDecoder),this.decoder=new h(t.encoding),this.encoding=t.encoding)}function b(t){if(i=i||n(19),!(this instanceof b))return new b(t);this._readableState=new _(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),s.call(this)}function y(t,e,n,r,i){var o,a=t._readableState;null===e?(a.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,k(t)}(t,a)):(i||(o=function(t,e){var n;r=e,c.isBuffer(r)||r instanceof l||"string"==typeof e||void 0===e||t.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(a,e)),o?t.emit("error",o):a.objectMode||e&&e.length>0?("string"==typeof e||a.objectMode||Object.getPrototypeOf(e)===c.prototype||(e=function(t){return c.from(t)}(e)),r?a.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):v(t,a,e,!0):a.ended?t.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(e=a.decoder.write(e),a.objectMode||0!==e.length?v(t,a,e,!1):S(t,a)):v(t,a,e,!1))):r||(a.reading=!1));return function(t){return!t.ended&&(t.needReadable||t.lengthe.highWaterMark&&(e.highWaterMark=function(t){return t>=x?t=x:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function k(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(f("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?r.nextTick(E,t):E(t))}function E(t){f("emit readable"),t.emit("readable"),A(t)}function S(t,e){e.readingMore||(e.readingMore=!0,r.nextTick(I,t,e))}function I(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=function(t,e,n){var r;to.length?o.length:t;if(a===o.length?i+=o:i+=o.slice(0,t),0===(t-=a)){a===o.length?(++r,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(a));break}++r}return e.length-=r,i}(t,e):function(t,e){var n=c.allocUnsafe(t),r=e.head,i=1;r.data.copy(n),t-=r.data.length;for(;r=r.next;){var o=r.data,a=t>o.length?o.length:t;if(o.copy(n,n.length-t,0,a),0===(t-=a)){a===o.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(a));break}++i}return e.length-=i,n}(t,e);return r}(t,e.buffer,e.decoder),n);var n}function P(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,r.nextTick(D,e,t))}function D(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function B(t,e){for(var n=0,r=t.length;n=e.highWaterMark||e.ended))return f("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?P(this):k(this),null;if(0===(t=w(t,e))&&e.ended)return 0===e.length&&P(this),null;var r,i=e.needReadable;return f("need readable",i),(0===e.length||e.length-t0?C(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&P(this)),null!==r&&this.emit("data",r),r},b.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(t,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t)}i.pipesCount+=1,f("pipe count=%d opts=%j",i.pipesCount,e);var s=(!e||!1!==e.end)&&t!==process.stdout&&t!==process.stderr?l:b;function c(e,r){f("onunpipe"),e===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,f("cleanup"),t.removeListener("close",m),t.removeListener("finish",_),t.removeListener("drain",u),t.removeListener("error",g),t.removeListener("unpipe",c),n.removeListener("end",l),n.removeListener("end",b),n.removeListener("data",d),p=!0,!i.awaitDrain||t._writableState&&!t._writableState.needDrain||u())}function l(){f("onend"),t.end()}i.endEmitted?r.nextTick(s):n.once("end",s),t.on("unpipe",c);var u=function(t){return function(){var e=t._readableState;f("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&a(t,"data")&&(e.flowing=!0,A(t))}}(n);t.on("drain",u);var p=!1;var h=!1;function d(e){f("ondata"),h=!1,!1!==t.write(e)||h||((1===i.pipesCount&&i.pipes===t||i.pipesCount>1&&-1!==B(i.pipes,t))&&!p&&(f("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,h=!0),n.pause())}function g(e){f("onerror",e),b(),t.removeListener("error",g),0===a(t,"error")&&t.emit("error",e)}function m(){t.removeListener("finish",_),b()}function _(){f("onfinish"),t.removeListener("close",m),b()}function b(){f("unpipe"),n.unpipe(t)}return n.on("data",d),function(t,e,n){if("function"==typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?o(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(t,"error",g),t.once("close",m),t.once("finish",_),t.emit("pipe",n),i.flowing||(f("pipe resume"),n.resume()),t},b.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n),this);if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o-1?setImmediate:r.nextTick;m.WritableState=g;var s=n(23);s.inherits=n(18);var c={deprecate:n(227)},l=n(98),u=n(22).Buffer,p=global.Uint8Array||function(){};var f,h=n(99);function d(){}function g(t,e){o=o||n(19),t=t||{};var s=e instanceof o;this.objectMode=!!t.objectMode,s&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var c=t.highWaterMark,l=t.writableHighWaterMark,u=this.objectMode?16:16384;this.highWaterMark=c||0===c?c:s&&(l||0===l)?l:u,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var p=!1===t.decodeStrings;this.decodeStrings=!p,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var n=t._writableState,i=n.sync,o=n.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(n),e)!function(t,e,n,i,o){--e.pendingcb,n?(r.nextTick(o,i),r.nextTick(w,t,e),t._writableState.errorEmitted=!0,t.emit("error",i)):(o(i),t._writableState.errorEmitted=!0,t.emit("error",i),w(t,e))}(t,n,i,e,o);else{var s=v(n);s||n.corked||n.bufferProcessing||!n.bufferedRequest||y(t,n),i?a(b,t,n,s,o):b(t,n,s,o)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function m(t){if(o=o||n(19),!(f.call(m,this)||this instanceof o))return new m(t);this._writableState=new g(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),l.call(this)}function _(t,e,n,r,i,o,a){e.writelen=r,e.writecb=a,e.writing=!0,e.sync=!0,n?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function b(t,e,n,r){n||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,r(),w(t,e)}function y(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var r=e.bufferedRequestCount,o=new Array(r),a=e.corkedRequestsFree;a.entry=n;for(var s=0,c=!0;n;)o[s]=n,n.isBuf||(c=!1),n=n.next,s+=1;o.allBuffers=c,_(t,e,!0,e.length,o,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new i(e),e.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,u=n.encoding,p=n.callback;if(_(t,e,!1,e.objectMode?1:l.length,l,u,p),n=n.next,e.bufferedRequestCount--,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}function v(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function x(t,e){t._final(function(n){e.pendingcb--,n&&t.emit("error",n),e.prefinished=!0,t.emit("prefinish"),w(t,e)})}function w(t,e){var n=v(e);return n&&(!function(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,r.nextTick(x,t,e)):(e.prefinished=!0,t.emit("prefinish")))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),n}s.inherits(m,l),g.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(g.prototype,"buffer",{get:c.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(f=Function.prototype[Symbol.hasInstance],Object.defineProperty(m,Symbol.hasInstance,{value:function(t){return!!f.call(this,t)||this===m&&(t&&t._writableState instanceof g)}})):f=function(t){return t instanceof this},m.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},m.prototype.write=function(t,e,n){var i,o=this._writableState,a=!1,s=!o.objectMode&&(i=t,u.isBuffer(i)||i instanceof p);return s&&!u.isBuffer(t)&&(t=function(t){return u.from(t)}(t)),"function"==typeof e&&(n=e,e=null),s?e="buffer":e||(e=o.defaultEncoding),"function"!=typeof n&&(n=d),o.ended?function(t,e){var n=new Error("write after end");t.emit("error",n),r.nextTick(e,n)}(this,n):(s||function(t,e,n,i){var o=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||e.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(t.emit("error",a),r.nextTick(i,a),o=!1),o}(this,o,t,n))&&(o.pendingcb++,a=function(t,e,n,r,i,o){if(!n){var a=function(t,e,n){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=u.from(e,n));return e}(e,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=e.objectMode?1:r.length;e.length+=s;var c=e.length-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),m.prototype._write=function(t,e,n){n(new Error("_write() is not implemented"))},m.prototype._writev=null,m.prototype.end=function(t,e,n){var i=this._writableState;"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!=t&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||function(t,e,n){e.ending=!0,w(t,e),n&&(e.finished?r.nextTick(n):t.once("finish",n));e.ended=!0,t.writable=!1}(this,i,n)},Object.defineProperty(m.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),m.prototype.destroy=h.destroy,m.prototype._undestroy=h.undestroy,m.prototype._destroy=function(t,e){this.end(),e(t)}},function(t,e,n){"use strict";var r=n(22).Buffer,i=r.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(r.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=c,this.end=l,e=4;break;case"utf8":this.fillLast=s,e=4;break;case"base64":this.text=u,this.end=p,e=3;break;default:return this.write=f,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(e)}function a(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function s(t){var e=this.lastTotal-this.lastNeed,n=function(t,e,n){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function c(t,e){if((t.length-e)%2==0){var n=t.toString("utf16le",e);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function l(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function u(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function p(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function f(t){return t.toString(this.encoding)}function h(t){return t&&t.length?this.write(t):""}e.StringDecoder=o,o.prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0)return i>0&&(t.lastNeed=i-1),i;if(--r=0)return i>0&&(t.lastNeed=i-2),i;if(--r=0)return i>0&&(2===i?i=0:t.lastNeed=i-3),i;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var r=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",e,r)},o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},function(t,e,n){"use strict";t.exports=a;var r=n(19),i=n(23);function o(t,e){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=e&&this.push(e),r(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.lengthe?"7777777777777777777".slice(0,e)+" ":"0000000000000000000".slice(0,e-t.length)+t+" "};var u=function(t,e,n){if(128&(t=t.slice(e,e+n))[e=0])return function(t){var e;if(128===t[0])e=!0;else{if(255!==t[0])return null;e=!1}for(var n=!1,r=[],i=t.length-1;i>0;i--){var o=t[i];e?r.push(o):n&&0===o?r.push(0):n?(n=!1,r.push(256-o)):r.push(255-o)}var a=0,s=r.length;for(i=0;i=o?o:i>=0?i:(i+=o)>=0?i:0);e=Math.pow(10,n)&&n++,e+n+t};e.decodeLongPath=function(t,e){return p(t,0,t.length,e)},e.encodePax=function(t){var e="";t.name&&(e+=f(" path="+t.name+"\n")),t.linkname&&(e+=f(" linkpath="+t.linkname+"\n"));var n=t.pax;if(n)for(var i in n)e+=f(" "+i+"="+n[i]+"\n");return r(e)},e.decodePax=function(t){for(var e={};t.length;){for(var n=0;n100;){var s=n.indexOf("/");if(-1===s)return null;r+=r?"/"+n.slice(0,s):n.slice(0,s),n=n.slice(s+1)}return Buffer.byteLength(n)>100||Buffer.byteLength(r)>155?null:t.linkname&&Buffer.byteLength(t.linkname)>100?null:(e.write(n),e.write(l(t.mode&a,6),100),e.write(l(t.uid,6),108),e.write(l(t.gid,6),116),e.write(l(t.size,11),124),e.write(l(t.mtime.getTime()/1e3|0,11),136),e[156]=o+function(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}(t.type),t.linkname&&e.write(t.linkname,157),e.write("ustar\x0000",257),t.uname&&e.write(t.uname,265),t.gname&&e.write(t.gname,297),e.write(l(t.devmajor||0,6),329),e.write(l(t.devminor||0,6),337),r&&e.write(r,345),e.write(l(c(e),6),148),e)},e.decode=function(t,e){var n=0===t[156]?0:t[156]-o,r=p(t,0,100,e),i=u(t,100,8),a=u(t,108,8),s=u(t,116,8),l=u(t,124,12),f=u(t,136,12),h=function(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}(n),d=0===t[157]?null:p(t,157,100,e),g=p(t,265,32),m=p(t,297,32),_=u(t,329,8),b=u(t,337,8);t[345]&&(r=p(t,345,155,e)+"/"+r),0===n&&r&&"/"===r[r.length-1]&&(n=5);var y=c(t);if(256===y)return null;if(y!==u(t,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");return{name:r,mode:i,uid:a,gid:s,size:l,mtime:new Date(1e3*f),type:h,linkname:d,uname:g,gname:m,devmajor:_,devminor:b}}},function(t,e){t.exports=function(t,e){if(Buffer.isBuffer(t))return t;if("string"==typeof t)return n(t,e);if(Array.isArray(t))return n(t);throw new Error("Input should be a buffer or a string")};var n=Buffer.from&&Buffer.from!==Uint8Array.from?Buffer.from:function(t,e){return new Buffer(t,e)}},function(t,e,n){var r=n(230),i=n(231);t.exports=function(t,e,n){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative');if(Buffer.alloc)return Buffer.alloc(t,e,n);var o=i(t);return 0===t?o:void 0===e?r(o,0):("string"!=typeof n&&(n=void 0),r(o,e,n))}},function(t,e){t.exports=function t(e,n){if(e&&n)return t(e)(n);if("function"!=typeof e)throw new TypeError("need wrapper function");Object.keys(e).forEach(function(t){r[t]=e[t]});return r;function r(){for(var t=new Array(arguments.length),n=0;n-1&&t%1==0&&t-1&&t%1==0&&t<=n}(t.length)&&!function(t){var e=w(t)?u.call(t):"";return e==i||e==o}(t)}function w(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}var k,E=(k=function(t,e,n,r){!function(t,e,n,r){n||(n={});for(var i=-1,o=e.length;++i1?e[r-1]:void 0,o=r>2?e[2]:void 0;for(i=k.length>3&&"function"==typeof i?(r--,i):void 0,o&&function(t,e,n){if(!w(n))return!1;var r=typeof e;return!!("number"==r?x(n)&&b(e,n.length):"string"==r&&e in n)&&y(n[e],t)}(e[0],e[1],o)&&(i=r<3?void 0:i,r=1),t=Object(t);++n>c.SHORT_SHIFT&c.SHORT_MASK},u.prototype.getVersionNeededToExtract=function(){return this.minver},u.prototype.setComment=function(t){Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.comment=t},u.prototype.setCompressedSize=function(t){if(t<0)throw new Error("invalid entry compressed size");this.csize=t},u.prototype.setCrc=function(t){if(t<0)throw new Error("invalid entry crc32");this.crc=t},u.prototype.setExternalAttributes=function(t){this.exattr=t>>>0},u.prototype.setExtra=function(t){this.extra=t},u.prototype.setGeneralPurposeBit=function(t){if(!(t instanceof a))throw new Error("invalid entry GeneralPurposeBit");this.gpb=t},u.prototype.setInternalAttributes=function(t){this.inattr=t},u.prototype.setMethod=function(t){if(t<0)throw new Error("invalid entry compression method");this.method=t},u.prototype.setName=function(t){t=i(t,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,""),Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.name=t},u.prototype.setPlatform=function(t){this.platform=t},u.prototype.setSize=function(t){if(t<0)throw new Error("invalid entry size");this.size=t},u.prototype.setTime=function(t,e){if(!(t instanceof Date))throw new Error("invalid entry time");this.time=l.dateToDos(t,e)},u.prototype.setUnixMode=function(t){var e=0;e|=(t|=this.isDirectory()?c.S_IFDIR:c.S_IFREG)<c.ZIP64_MAGIC||this.size>c.ZIP64_MAGIC}},function(t,e,n){var r=n(59),i=t.exports=function(){return this instanceof i?(this.descriptor=!1,this.encryption=!1,this.utf8=!1,this.numberOfShannonFanoTrees=0,this.strongEncryption=!1,this.slidingDictionarySize=0,this):new i};i.prototype.encode=function(){return r.getShortBytes((this.descriptor?8:0)|(this.utf8?2048:0)|(this.encryption?1:0)|(this.strongEncryption?64:0))},i.prototype.parse=function(t,e){var n=r.getShortBytesValue(t,e),o=new i;return o.useDataDescriptor(0!=(8&n)),o.useUTF8ForNames(0!=(2048&n)),o.useStrongEncryption(0!=(64&n)),o.useEncryption(0!=(1&n)),o.setSlidingDictionarySize(0!=(2&n)?8192:4096),o.setNumberOfShannonFanoTrees(0!=(4&n)?3:2),o},i.prototype.setNumberOfShannonFanoTrees=function(t){this.numberOfShannonFanoTrees=t},i.prototype.getNumberOfShannonFanoTrees=function(){return this.numberOfShannonFanoTrees},i.prototype.setSlidingDictionarySize=function(t){this.slidingDictionarySize=t},i.prototype.getSlidingDictionarySize=function(){return this.slidingDictionarySize},i.prototype.useDataDescriptor=function(t){this.descriptor=t},i.prototype.usesDataDescriptor=function(){return this.descriptor},i.prototype.useEncryption=function(t){this.encryption=t},i.prototype.usesEncryption=function(){return this.encryption},i.prototype.useStrongEncryption=function(t){this.strongEncryption=t},i.prototype.usesStrongEncryption=function(){return this.strongEncryption},i.prototype.useUTF8ForNames=function(t){this.utf8=t},i.prototype.usesUTF8ForNames=function(){return this.utf8}},function(t,e){t.exports={WORD:4,DWORD:8,EMPTY:new Buffer(0),SHORT:2,SHORT_MASK:65535,SHORT_SHIFT:16,SHORT_ZERO:new Buffer(Array(2)),LONG:4,LONG_ZERO:new Buffer(Array(4)),MIN_VERSION_INITIAL:10,MIN_VERSION_DATA_DESCRIPTOR:20,MIN_VERSION_ZIP64:45,VERSION_MADEBY:45,METHOD_STORED:0,METHOD_DEFLATED:8,PLATFORM_UNIX:3,PLATFORM_FAT:0,SIG_LFH:67324752,SIG_DD:134695760,SIG_CFH:33639248,SIG_EOCD:101010256,SIG_ZIP64_EOCD:101075792,SIG_ZIP64_EOCD_LOC:117853008,ZIP64_MAGIC_SHORT:65535,ZIP64_MAGIC:4294967295,ZIP64_EXTRA_ID:1,ZLIB_NO_COMPRESSION:0,ZLIB_BEST_SPEED:1,ZLIB_BEST_COMPRESSION:9,ZLIB_DEFAULT_COMPRESSION:-1,MODE_MASK:4095,DEFAULT_FILE_MODE:33188,DEFAULT_DIR_MODE:16877,EXT_FILE_ATTR_DIR:1106051088,EXT_FILE_ATTR_FILE:2175008800,S_IFMT:61440,S_IFIFO:4096,S_IFCHR:8192,S_IFDIR:16384,S_IFBLK:24576,S_IFREG:32768,S_IFLNK:40960,S_IFSOCK:49152,S_DOS_A:32,S_DOS_D:16,S_DOS_V:8,S_DOS_S:4,S_DOS_H:2,S_DOS_R:1}},function(t,e,n){var r=n(3).inherits,i=n(11).Transform,o=n(58),a=n(117),s=t.exports=function(t){if(!(this instanceof s))return new s(t);i.call(this,t),this.offset=0,this._archive={finish:!1,finished:!1,processing:!1}};r(s,i),s.prototype._appendBuffer=function(t,e,n){},s.prototype._appendStream=function(t,e,n){},s.prototype._emitErrorCallback=function(t){t&&this.emit("error",t)},s.prototype._finish=function(t){},s.prototype._normalizeEntry=function(t){},s.prototype._transform=function(t,e,n){n(null,t)},s.prototype.entry=function(t,e,n){if(e=e||null,"function"!=typeof n&&(n=this._emitErrorCallback.bind(this)),t instanceof o)if(this._archive.finish||this._archive.finished)n(new Error("unacceptable entry after finish"));else{if(!this._archive.processing){if(this._archive.processing=!0,this._normalizeEntry(t),this._entry=t,e=a.normalizeInputSource(e),Buffer.isBuffer(e))this._appendBuffer(t,e,n);else{if(!a.isStream(e))return this._archive.processing=!1,void n(new Error("input source must be valid Stream or Buffer instance"));this._appendStream(t,e,n)}return this}n(new Error("already processing an entry"))}else n(new Error("not a valid instance of ArchiveEntry"))},s.prototype.finish=function(){this._archive.processing?this._archive.finish=!0:this._finish()},s.prototype.getBytesWritten=function(){return this.offset},s.prototype.write=function(t,e){return t&&(this.offset+=t.length),i.prototype.write.call(this,t,e)}},function(t,e,n){var r=n(7).Stream,i=n(11).PassThrough,o=t.exports={};o.isStream=function(t){return t instanceof r},o.normalizeInputSource=function(t){if(null===t)return new Buffer(0);if("string"==typeof t)return new Buffer(t);if(o.isStream(t)&&!t._readableState){var e=new i;return t.pipe(e),e}return t}},function(t,e,n){"use strict";n.r(e);var r=n(4);var i=r.Buffer.from&&r.Buffer.alloc&&r.Buffer.allocUnsafe&&r.Buffer.allocUnsafeSlow?r.Buffer.from:t=>new r.Buffer(t),o=function(t,e){const n=(t,n)=>e(t,n)>>>0;return n.signed=e,n.unsigned=n,n.model=t,n};var a=o("crc1",function(t,e){r.Buffer.isBuffer(t)||(t=i(t));let n=~~e,o=0;for(let e=0;e>8)}return n});let h=[0,4129,8258,12387,16516,20645,24774,28903,33032,37161,41290,45419,49548,53677,57806,61935,4657,528,12915,8786,21173,17044,29431,25302,37689,33560,45947,41818,54205,50076,62463,58334,9314,13379,1056,5121,25830,29895,17572,21637,42346,46411,34088,38153,58862,62927,50604,54669,13907,9842,5649,1584,30423,26358,22165,18100,46939,42874,38681,34616,63455,59390,55197,51132,18628,22757,26758,30887,2112,6241,10242,14371,51660,55789,59790,63919,35144,39273,43274,47403,23285,19156,31415,27286,6769,2640,14899,10770,56317,52188,64447,60318,39801,35672,47931,43802,27814,31879,19684,23749,11298,15363,3168,7233,60846,64911,52716,56781,44330,48395,36200,40265,32407,28342,24277,20212,15891,11826,7761,3696,65439,61374,57309,53244,48923,44858,40793,36728,37256,33193,45514,41451,53516,49453,61774,57711,4224,161,12482,8419,20484,16421,28742,24679,33721,37784,41979,46042,49981,54044,58239,62302,689,4752,8947,13010,16949,21012,25207,29270,46570,42443,38312,34185,62830,58703,54572,50445,13538,9411,5280,1153,29798,25671,21540,17413,42971,47098,34713,38840,59231,63358,50973,55100,9939,14066,1681,5808,26199,30326,17941,22068,55628,51565,63758,59695,39368,35305,47498,43435,22596,18533,30726,26663,6336,2273,14466,10403,52093,56156,60223,64286,35833,39896,43963,48026,19061,23124,27191,31254,2801,6864,10931,14994,64814,60687,56684,52557,48554,44427,40424,36297,31782,27655,23652,19525,15522,11395,7392,3265,61215,65342,53085,57212,44955,49082,36825,40952,28183,32310,20053,24180,11923,16050,3793,7920];"undefined"!=typeof Int32Array&&(h=new Int32Array(h));var d=o("ccitt",function(t,e){r.Buffer.isBuffer(t)||(t=i(t));let n=void 0!==e?~~e:65535;for(let e=0;e>8^r)]^n<<8)}return n});let g=[0,49345,49537,320,49921,960,640,49729,50689,1728,1920,51009,1280,50625,50305,1088,52225,3264,3456,52545,3840,53185,52865,3648,2560,51905,52097,2880,51457,2496,2176,51265,55297,6336,6528,55617,6912,56257,55937,6720,7680,57025,57217,8e3,56577,7616,7296,56385,5120,54465,54657,5440,55041,6080,5760,54849,53761,4800,4992,54081,4352,53697,53377,4160,61441,12480,12672,61761,13056,62401,62081,12864,13824,63169,63361,14144,62721,13760,13440,62529,15360,64705,64897,15680,65281,16320,16e3,65089,64001,15040,15232,64321,14592,63937,63617,14400,10240,59585,59777,10560,60161,11200,10880,59969,60929,11968,12160,61249,11520,60865,60545,11328,58369,9408,9600,58689,9984,59329,59009,9792,8704,58049,58241,9024,57601,8640,8320,57409,40961,24768,24960,41281,25344,41921,41601,25152,26112,42689,42881,26432,42241,26048,25728,42049,27648,44225,44417,27968,44801,28608,28288,44609,43521,27328,27520,43841,26880,43457,43137,26688,30720,47297,47489,31040,47873,31680,31360,47681,48641,32448,32640,48961,32e3,48577,48257,31808,46081,29888,30080,46401,30464,47041,46721,30272,29184,45761,45953,29504,45313,29120,28800,45121,20480,37057,37249,20800,37633,21440,21120,37441,38401,22208,22400,38721,21760,38337,38017,21568,39937,23744,23936,40257,24320,40897,40577,24128,23040,39617,39809,23360,39169,22976,22656,38977,34817,18624,18816,35137,19200,35777,35457,19008,19968,36545,36737,20288,36097,19904,19584,35905,17408,33985,34177,17728,34561,18368,18048,34369,33281,17088,17280,33601,16640,33217,32897,16448];"undefined"!=typeof Int32Array&&(g=new Int32Array(g));var m=o("crc-16-modbus",function(t,e){r.Buffer.isBuffer(t)||(t=i(t));let n=void 0!==e?~~e:65535;for(let e=0;e>8)}return n});var _=o("xmodem",function(t,e){r.Buffer.isBuffer(t)||(t=i(t));let n=void 0!==e?~~e:0;for(let e=0;e>>8&255;r^=255&t[e],n=n<<8&65535,n^=r^=r>>>4,n^=r=r<<5&65535,n^=r=r<<7&65535}return n});let b=[0,4489,8978,12955,17956,22445,25910,29887,35912,40385,44890,48851,51820,56293,59774,63735,4225,264,13203,8730,22181,18220,30135,25662,40137,36160,49115,44626,56045,52068,63999,59510,8450,12427,528,5017,26406,30383,17460,21949,44362,48323,36440,40913,60270,64231,51324,55797,12675,8202,4753,792,30631,26158,21685,17724,48587,44098,40665,36688,64495,60006,55549,51572,16900,21389,24854,28831,1056,5545,10034,14011,52812,57285,60766,64727,34920,39393,43898,47859,21125,17164,29079,24606,5281,1320,14259,9786,57037,53060,64991,60502,39145,35168,48123,43634,25350,29327,16404,20893,9506,13483,1584,6073,61262,65223,52316,56789,43370,47331,35448,39921,29575,25102,20629,16668,13731,9258,5809,1848,65487,60998,56541,52564,47595,43106,39673,35696,33800,38273,42778,46739,49708,54181,57662,61623,2112,6601,11090,15067,20068,24557,28022,31999,38025,34048,47003,42514,53933,49956,61887,57398,6337,2376,15315,10842,24293,20332,32247,27774,42250,46211,34328,38801,58158,62119,49212,53685,10562,14539,2640,7129,28518,32495,19572,24061,46475,41986,38553,34576,62383,57894,53437,49460,14787,10314,6865,2904,32743,28270,23797,19836,50700,55173,58654,62615,32808,37281,41786,45747,19012,23501,26966,30943,3168,7657,12146,16123,54925,50948,62879,58390,37033,33056,46011,41522,23237,19276,31191,26718,7393,3432,16371,11898,59150,63111,50204,54677,41258,45219,33336,37809,27462,31439,18516,23005,11618,15595,3696,8185,63375,58886,54429,50452,45483,40994,37561,33584,31687,27214,22741,18780,15843,11370,7921,3960];"undefined"!=typeof Int32Array&&(b=new Int32Array(b));var y=o("kermit",function(t,e){r.Buffer.isBuffer(t)||(t=i(t));let n=void 0!==e?~~e:0;for(let e=0;e>8)}return n});let v=[0,8801531,9098509,825846,9692897,1419802,1651692,10452759,10584377,2608578,2839604,11344079,3303384,11807523,12104405,4128302,12930697,4391538,5217156,13227903,5679208,13690003,14450021,5910942,6606768,14844747,15604413,6837830,16197969,7431594,8256604,16494759,840169,9084178,8783076,18463,10434312,1670131,1434117,9678590,11358416,2825259,2590173,10602790,4109873,12122826,11821884,3289031,13213536,5231515,4409965,12912278,5929345,14431610,13675660,5693559,6823513,15618722,14863188,6588335,16513208,8238147,7417269,16212302,1680338,10481449,9664223,1391140,9061683,788936,36926,8838341,12067563,4091408,3340262,11844381,2868234,11372785,10555655,2579964,14478683,5939616,5650518,13661357,5180346,13190977,12967607,4428364,8219746,16457881,16234863,7468436,15633027,6866552,6578062,14816117,1405499,9649856,10463030,1698765,8819930,55329,803287,9047340,11858690,3325945,4072975,12086004,2561507,10574104,11387118,2853909,13647026,5664841,5958079,14460228,4446803,12949160,13176670,5194661,7454091,16249200,16476294,8201341,14834538,6559633,6852199,15647388,3360676,11864927,12161705,4185682,10527045,2551230,2782280,11286707,9619101,1346150,1577872,10379115,73852,8875143,9172337,899466,16124205,7357910,8182816,16421083,6680524,14918455,15678145,6911546,5736468,13747439,14507289,5968354,12873461,4334094,5159928,13170435,4167245,12180150,11879232,3346363,11301036,2767959,2532769,10545498,10360692,1596303,1360505,9604738,913813,9157998,8856728,92259,16439492,8164415,7343561,16138546,6897189,15692510,14936872,6662099,5986813,14488838,13733104,5750795,13156124,5174247,4352529,12855018,2810998,11315341,10498427,2522496,12124823,4148844,3397530,11901793,9135439,862644,110658,8912057,1606574,10407765,9590435,1317464,15706879,6940164,6651890,14889737,8145950,16384229,16161043,7394792,5123014,13133629,12910283,4370992,14535975,5997020,5707818,13718737,2504095,10516836,11329682,2796649,11916158,3383173,4130419,12143240,8893606,129117,876971,9121104,1331783,9576124,10389322,1625009,14908182,6633453,6925851,15721184,7380471,16175372,16402682,8127489,4389423,12891860,13119266,5137369,13704398,5722165,6015427,14517560];"undefined"!=typeof Int32Array&&(v=new Int32Array(v));var x=o("crc-24",function(t,e){r.Buffer.isBuffer(t)||(t=i(t));let n=void 0!==e?~~e:11994318;for(let e=0;e>16^r)]^n<<8)}return n});let w=[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];"undefined"!=typeof Int32Array&&(w=new Int32Array(w));var k=o("crc-32",function(t,e){r.Buffer.isBuffer(t)||(t=i(t));let n=0===e?0:-1^~~e;for(let e=0;e>>8}return-1^n});let E=[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];"undefined"!=typeof Int32Array&&(E=new Int32Array(E));var S=o("jam",function(t,e=-1){r.Buffer.isBuffer(t)||(t=i(t));let n=0===e?0:~~e;for(let e=0;e>>8}return n});n.d(e,"crc1",function(){return a}),n.d(e,"crc8",function(){return c}),n.d(e,"crc81wire",function(){return u}),n.d(e,"crc16",function(){return f}),n.d(e,"crc16ccitt",function(){return d}),n.d(e,"crc16modbus",function(){return m}),n.d(e,"crc16xmodem",function(){return _}),n.d(e,"crc16kermit",function(){return y}),n.d(e,"crc24",function(){return x}),n.d(e,"crc32",function(){return k}),n.d(e,"crcjam",function(){return S});e.default={crc1:a,crc8:c,crc81wire:u,crc16:f,crc16ccitt:d,crc16modbus:m,crc16xmodem:_,crc16kermit:y,crc24:x,crc32:k,crcjam:S}},function(t,e,n){var r=n(1),i=n(5),o=parseInt("0777",8);function a(t,e,n,s){"function"==typeof e?(n=e,e={}):e&&"object"==typeof e||(e={mode:e});var c=e.mode,l=e.fs||i;void 0===c&&(c=o&~process.umask()),s||(s=null);var u=n||function(){};t=r.resolve(t),l.mkdir(t,c,function(n){if(!n)return u(null,s=s||t);switch(n.code){case"ENOENT":a(r.dirname(t),e,function(n,r){n?u(n,r):a(t,e,u,r)});break;default:l.stat(t,function(t,e){t||!e.isDirectory()?u(n,s):u(null,s)})}})}t.exports=a.mkdirp=a.mkdirP=a,a.sync=function t(e,n,a){n&&"object"==typeof n||(n={mode:n});var s=n.mode,c=n.fs||i;void 0===s&&(s=o&~process.umask()),a||(a=null),e=r.resolve(e);try{c.mkdirSync(e,s),a=a||e}catch(i){switch(i.code){case"ENOENT":a=t(r.dirname(e),n,a),t(e,n,a);break;default:var l;try{l=c.statSync(e)}catch(t){throw i}if(!l.isDirectory())throw i}}return a}},function(t,e,n){"use strict";function r(t,e,n,o,a,s){for(var c,l,u,p,f=Math.max(e-1,0),h=Math.max(n-1,0),d=Math.min(e+1,o-1),g=Math.min(n+1,a-1),m=4*(n*o+e),_=0,b=0,y=0,v=0,x=0,w=f;w<=d;w++)for(var k=h;k<=g;k++)if(w!==e||k!==n){var E=i(t,t,m,4*(k*o+w),!0);if(0===E?_++:E<0?y++:E>0&&b++,_>2)return!1;s&&(Ex&&(x=E,u=w,p=k))}return!s||0!==y&&0!==b&&(!r(t,c,l,o,a)&&!r(s,c,l,o,a)||!r(t,u,p,o,a)&&!r(s,u,p,o,a))}function i(t,e,n,r,i){var l=t[n+3]/255,u=e[r+3]/255,p=c(t[n+0],l),f=c(t[n+1],l),h=c(t[n+2],l),d=c(e[r+0],u),g=c(e[r+1],u),m=c(e[r+2],u),_=o(p,f,h)-o(d,g,m);if(i)return _;var b=a(p,f,h)-a(d,g,m),y=s(p,f,h)-s(d,g,m);return.5053*_*_+.299*b*b+.1957*y*y}function o(t,e,n){return.29889531*t+.58662247*e+.11448223*n}function a(t,e,n){return.59597799*t-.2741761*e-.32180189*n}function s(t,e,n){return.21147017*t-.52261711*e+.31114694*n}function c(t,e){return 255+(t-255)*e}function l(t,e,n,r,i){t[e+0]=n,t[e+1]=r,t[e+2]=i,t[e+3]=255}t.exports=function(t,e,n,a,s,u){u||(u={});for(var p=void 0===u.threshold?.1:u.threshold,f=35215*p*p,h=0,d=0;df)u.includeAA||!r(t,g,d,a,s,e)&&!r(e,g,d,a,s,t)?(n&&l(n,m,255,0,0),h++):n&&l(n,m,255,255,0);else if(n){var b=c((x=void 0,w=void 0,k=void 0,E=void 0,x=(y=t)[(v=m)+3]/255,w=c(y[v+0],x),k=c(y[v+1],x),E=c(y[v+2],x),o(w,k,E)),.1);l(n,m,b,b,b)}}var y,v,x,w,k,E;return h}},function(t,e,n){function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(){return(i=Object.assign||function(t){for(var e=1;e[...t].map(t=>t.charCodeAt(0)),i=r("META-INF/mozilla.rsa"),o=r("[Content_Types].xml"),a=r("_rels/.rels");t.exports=t=>{const e=t instanceof Uint8Array?t:new Uint8Array(t);if(!(e&&e.length>1))return null;const n=(t,n)=>{n=Object.assign({offset:0},n);for(let r=0;rn(r(t),e);if(n([255,216,255]))return{ext:"jpg",mime:"image/jpeg"};if(n([137,80,78,71,13,10,26,10]))return{ext:"png",mime:"image/png"};if(n([71,73,70]))return{ext:"gif",mime:"image/gif"};if(n([87,69,66,80],{offset:8}))return{ext:"webp",mime:"image/webp"};if(n([70,76,73,70]))return{ext:"flif",mime:"image/flif"};if((n([73,73,42,0])||n([77,77,0,42]))&&n([67,82],{offset:8}))return{ext:"cr2",mime:"image/x-canon-cr2"};if(n([73,73,42,0])||n([77,77,0,42]))return{ext:"tif",mime:"image/tiff"};if(n([66,77]))return{ext:"bmp",mime:"image/bmp"};if(n([73,73,188]))return{ext:"jxr",mime:"image/vnd.ms-photo"};if(n([56,66,80,83]))return{ext:"psd",mime:"image/vnd.adobe.photoshop"};if(n([80,75,3,4])){if(n([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(n(i,{offset:30}))return{ext:"xpi",mime:"application/x-xpinstall"};if(s("mimetypeapplication/vnd.oasis.opendocument.text",{offset:30}))return{ext:"odt",mime:"application/vnd.oasis.opendocument.text"};if(s("mimetypeapplication/vnd.oasis.opendocument.spreadsheet",{offset:30}))return{ext:"ods",mime:"application/vnd.oasis.opendocument.spreadsheet"};if(s("mimetypeapplication/vnd.oasis.opendocument.presentation",{offset:30}))return{ext:"odp",mime:"application/vnd.oasis.opendocument.presentation"};const t=(t,e=0)=>t.findIndex((t,n,r)=>n>=e&&80===r[n]&&75===r[n+1]&&3===r[n+2]&&4===r[n+3]);let r=0,c=!1,l=null;do{const i=r+30;if(c||(c=n(o,{offset:i})||n(a,{offset:i})),l||(s("word/",{offset:i})?l={ext:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"}:s("ppt/",{offset:i})?l={ext:"pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"}:s("xl/",{offset:i})&&(l={ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"})),c&&l)return l;r=t(e,i)}while(r>=0);if(l)return l}if(n([80,75])&&(3===e[2]||5===e[2]||7===e[2])&&(4===e[3]||6===e[3]||8===e[3]))return{ext:"zip",mime:"application/zip"};if(n([117,115,116,97,114],{offset:257}))return{ext:"tar",mime:"application/x-tar"};if(n([82,97,114,33,26,7])&&(0===e[6]||1===e[6]))return{ext:"rar",mime:"application/x-rar-compressed"};if(n([31,139,8]))return{ext:"gz",mime:"application/gzip"};if(n([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(n([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(n([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(n([51,103,112,53])||n([0,0,0])&&n([102,116,121,112],{offset:4})&&(n([109,112,52,49],{offset:8})||n([109,112,52,50],{offset:8})||n([105,115,111,109],{offset:8})||n([105,115,111,50],{offset:8})||n([109,109,112,52],{offset:8})||n([77,52,86],{offset:8})||n([100,97,115,104],{offset:8})))return{ext:"mp4",mime:"video/mp4"};if(n([77,84,104,100]))return{ext:"mid",mime:"audio/midi"};if(n([26,69,223,163])){const t=e.subarray(4,4100),n=t.findIndex((t,e,n)=>66===n[e]&&130===n[e+1]);if(-1!==n){const e=n+3,r=n=>[...n].every((n,r)=>t[e+r]===n.charCodeAt(0));if(r("matroska"))return{ext:"mkv",mime:"video/x-matroska"};if(r("webm"))return{ext:"webm",mime:"video/webm"}}}if(n([0,0,0,20,102,116,121,112,113,116,32,32])||n([102,114,101,101],{offset:4})||n([102,116,121,112,113,116,32,32],{offset:4})||n([109,100,97,116],{offset:4})||n([119,105,100,101],{offset:4}))return{ext:"mov",mime:"video/quicktime"};if(n([82,73,70,70])){if(n([65,86,73],{offset:8}))return{ext:"avi",mime:"video/vnd.avi"};if(n([87,65,86,69],{offset:8}))return{ext:"wav",mime:"audio/vnd.wave"};if(n([81,76,67,77],{offset:8}))return{ext:"qcp",mime:"audio/qcelp"}}if(n([48,38,178,117,142,102,207,17,166,217]))return{ext:"wmv",mime:"video/x-ms-wmv"};if(n([0,0,1,186])||n([0,0,1,179]))return{ext:"mpg",mime:"video/mpeg"};if(n([102,116,121,112,51,103],{offset:4}))return{ext:"3gp",mime:"video/3gpp"};for(let t=0;t<2&&t>=c,u-=c,m!==o){if(m===a)break;for(var _=mo;)y=d[y]>>8,++b;var v=y;if(f+b+(_!==m?1:0)>r)return void console.log("Warning, gif stream longer than expected.");n[f++]=v;var x=f+=b;for(_!==m&&(n[f++]=v),y=_;b--;)y=d[y],n[--x]=255&y,y>>=8;null!==g&&s<4096&&(d[s++]=g<<8|v,s>=l+1&&c<12&&(++c,l=l<<1|1)),g=m}else s=a+1,l=(1<<(c=i+1))-1,g=null}return f!==r&&console.log("Warning, gif stream shorter than expected."),n}try{e.GifWriter=function(t,e,n,r){var i=0,o=void 0===(r=void 0===r?{}:r).loop?null:r.loop,a=void 0===r.palette?null:r.palette;if(e<=0||n<=0||e>65535||n>65535)throw new Error("Width/Height invalid.");function s(t){var e=t.length;if(e<2||e>256||e&e-1)throw new Error("Invalid code/color length, must be power of 2 and 2 .. 256.");return e}t[i++]=71,t[i++]=73,t[i++]=70,t[i++]=56,t[i++]=57,t[i++]=97;var c=0,l=0;if(null!==a){for(var u=s(a);u>>=1;)++c;if(u=1<=u)throw new Error("Background index out of range.");if(0===l)throw new Error("Background index explicitly passed as 0.")}}if(t[i++]=255&e,t[i++]=e>>8&255,t[i++]=255&n,t[i++]=n>>8&255,t[i++]=(null!==a?128:0)|c,t[i++]=l,t[i++]=0,null!==a)for(var p=0,f=a.length;p>16&255,t[i++]=h>>8&255,t[i++]=255&h}if(null!==o){if(o<0||o>65535)throw new Error("Loop count invalid.");t[i++]=33,t[i++]=255,t[i++]=11,t[i++]=78,t[i++]=69,t[i++]=84,t[i++]=83,t[i++]=67,t[i++]=65,t[i++]=80,t[i++]=69,t[i++]=50,t[i++]=46,t[i++]=48,t[i++]=3,t[i++]=1,t[i++]=255&o,t[i++]=o>>8&255,t[i++]=0}var d=!1;this.addFrame=function(e,n,r,o,c,l){if(!0===d&&(--i,d=!1),l=void 0===l?{}:l,e<0||n<0||e>65535||n>65535)throw new Error("x/y invalid.");if(r<=0||o<=0||r>65535||o>65535)throw new Error("Width/Height invalid.");if(c.length>=1;)++h;f=1<3)throw new Error("Disposal out of range.");var _=!1,b=0;if(void 0!==l.transparent&&null!==l.transparent&&(_=!0,(b=l.transparent)<0||b>=f))throw new Error("Transparent color index.");if((0!==m||_||0!==g)&&(t[i++]=33,t[i++]=249,t[i++]=4,t[i++]=m<<2|(!0===_?1:0),t[i++]=255&g,t[i++]=g>>8&255,t[i++]=b,t[i++]=0),t[i++]=44,t[i++]=255&e,t[i++]=e>>8&255,t[i++]=255&n,t[i++]=n>>8&255,t[i++]=255&r,t[i++]=r>>8&255,t[i++]=255&o,t[i++]=o>>8&255,t[i++]=!0===u?128|h-1:0,!0===u)for(var y=0,v=p.length;y>16&255,t[i++]=x>>8&255,t[i++]=255&x}return i=function(t,e,n,r){t[e++]=n;var i=e++,o=1<=n;)t[e++]=255&p,p>>=8,u-=8,e===i+256&&(t[i]=255,i=e++)}function h(t){p|=t<=8;)t[e++]=255&p,p>>=8,u-=8,e===i+256&&(t[i]=255,i=e++);4096===c?(h(o),c=s+1,l=n+1,g={}):(c>=1<>7,s=1<<1+(7&o);t[e++],t[e++];var c=null,l=null;a&&(c=e,l=s,e+=3*s);var u=!0,p=[],f=0,h=null,d=0,g=null;for(this.width=n,this.height=i;u&&e=0))throw Error("Invalid block size");if(0===O)break;e+=O}break;case 249:if(4!==t[e++]||0!==t[e+4])throw new Error("Invalid graphics extension block.");var m=t[e++];f=t[e++]|t[e++]<<8,h=t[e++],0==(1&m)&&(h=null),d=m>>2&7,e++;break;case 254:for(;;){if(!((O=t[e++])>=0))throw Error("Invalid block size");if(0===O)break;e+=O}break;default:throw new Error("Unknown graphic control label: 0x"+t[e-1].toString(16))}break;case 44:var _=t[e++]|t[e++]<<8,b=t[e++]|t[e++]<<8,y=t[e++]|t[e++]<<8,v=t[e++]|t[e++]<<8,x=t[e++],w=x>>6&1,k=1<<1+(7&x),E=c,S=l,I=!1;x>>7&&(I=!0,E=e,S=k,e+=3*k);var T=e;for(e++;;){var O;if(!((O=t[e++])>=0))throw Error("Invalid block size");if(0===O)break;e+=O}p.push({x:_,y:b,width:y,height:v,has_local_palette:I,palette_offset:E,palette_size:S,data_offset:T,data_length:e-T,transparent_index:h,interlaced:!!w,delay:f,disposal:d});break;case 59:u=!1;break;default:throw new Error("Unknown gif block: 0x"+t[e-1].toString(16))}this.numFrames=function(){return p.length},this.loopCount=function(){return g},this.frameInfo=function(t){if(t<0||t>=p.length)throw new Error("Frame index out of range.");return p[t]},this.decodeAndBlitFrameBGRA=function(e,i){var o=this.frameInfo(e),a=o.width*o.height,s=new Uint8Array(a);r(t,o.data_offset,s,a);var c=o.palette_offset,l=o.transparent_index;null===l&&(l=256);var u=o.width,p=n-u,f=u,h=4*(o.y*n+o.x),d=4*((o.y+o.height)*n+o.x),g=h,m=4*p;!0===o.interlaced&&(m+=4*n*7);for(var _=8,b=0,y=s.length;b=d&&(m=4*p+4*n*(_-1),g=h+(u+p)*(_<<1),_>>=1)),v===l)g+=4;else{var x=t[c+3*v],w=t[c+3*v+1],k=t[c+3*v+2];i[g++]=k,i[g++]=w,i[g++]=x,i[g++]=255}--f}},this.decodeAndBlitFrameRGBA=function(e,i){var o=this.frameInfo(e),a=o.width*o.height,s=new Uint8Array(a);r(t,o.data_offset,s,a);var c=o.palette_offset,l=o.transparent_index;null===l&&(l=256);var u=o.width,p=n-u,f=u,h=4*(o.y*n+o.x),d=4*((o.y+o.height)*n+o.x),g=h,m=4*p;!0===o.interlaced&&(m+=4*n*7);for(var _=8,b=0,y=s.length;b=d&&(m=4*p+4*n*(_-1),g=h+(u+p)*(_<<1),_>>=1)),v===l)g+=4;else{var x=t[c+3*v],w=t[c+3*v+1],k=t[c+3*v+2];i[g++]=x,i[g++]=w,i[g++]=k,i[g++]=255}--f}}}}catch(t){}},function(t,e){function n(t,e,n,r,i,o,a){this.widthOriginal=Math.abs(Math.floor(t)||0),this.heightOriginal=Math.abs(Math.floor(e)||0),this.targetWidth=Math.abs(Math.floor(n)||0),this.targetHeight=Math.abs(Math.floor(r)||0),this.colorChannels=i?4:3,this.interpolationPass=Boolean(o),this.resizeCallback="function"==typeof a?a:function(){},this.targetWidthMultipliedByChannels=this.targetWidth*this.colorChannels,this.originalWidthMultipliedByChannels=this.widthOriginal*this.colorChannels,this.originalHeightMultipliedByChannels=this.heightOriginal*this.colorChannels,this.widthPassResultSize=this.targetWidthMultipliedByChannels*this.heightOriginal,this.finalResultSize=this.targetWidthMultipliedByChannels*this.targetHeight,this.initialize()}n.prototype.initialize=function(){if(!(this.widthOriginal>0&&this.heightOriginal>0&&this.targetWidth>0&&this.targetHeight>0))throw new Error("Invalid settings specified for the resizer.");this.configurePasses()},n.prototype.configurePasses=function(){this.widthOriginal===this.targetWidth?this.resizeWidth=this.bypassResizer:(this.ratioWeightWidthPass=this.widthOriginal/this.targetWidth,this.ratioWeightWidthPass<1&&this.interpolationPass?(this.initializeFirstPassBuffers(!0),this.resizeWidth=4===this.colorChannels?this.resizeWidthInterpolatedRGBA:this.resizeWidthInterpolatedRGB):(this.initializeFirstPassBuffers(!1),this.resizeWidth=4===this.colorChannels?this.resizeWidthRGBA:this.resizeWidthRGB)),this.heightOriginal===this.targetHeight?this.resizeHeight=this.bypassResizer:(this.ratioWeightHeightPass=this.heightOriginal/this.targetHeight,this.ratioWeightHeightPass<1&&this.interpolationPass?(this.initializeSecondPassBuffers(!0),this.resizeHeight=this.resizeHeightInterpolated):(this.initializeSecondPassBuffers(!1),this.resizeHeight=4===this.colorChannels?this.resizeHeightRGBA:this.resizeHeightRGB))},n.prototype._resizeWidthInterpolatedRGBChannels=function(t,e){var n,r,i=e?4:3,o=this.ratioWeightWidthPass,a=this.widthBuffer,s=0,c=0,l=0,u=0,p=0;for(n=0;s<1/3;n+=i,s+=o)for(c=n,l=0;c=p)){h+=u;break}h=f+=n,u-=p}while(u>0&&f=c)){u+=s;break}u=l=h,s-=c}while(s>0&&l3&&(this.outputWidthWorkBenchOpaquePixelsCount=this.generateFloat64Buffer(this.heightOriginal)))},n.prototype.initializeSecondPassBuffers=function(t){this.heightBuffer=this.generateUint8Buffer(this.finalResultSize),t||(this.outputHeightWorkBench=this.generateFloatBuffer(this.targetWidthMultipliedByChannels),this.colorChannels>3&&(this.outputHeightWorkBenchOpaquePixelsCount=this.generateFloat64Buffer(this.targetWidth)))},n.prototype.generateFloatBuffer=function(t){try{return new Float32Array(t)}catch(t){return[]}},n.prototype.generateFloat64Buffer=function(t){try{return new Float64Array(t)}catch(t){return[]}},n.prototype.generateUint8Buffer=function(t){try{return new Uint8Array(t)}catch(t){return[]}},t.exports=n},function(t,e,n){"use strict";(function(t){var r=n(1),i=n.n(r),o=n(127),a=n.n(o),s=n(0),c=n(16);function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e0&&i.height>0){var o=e.pages[i.page];t.blit(o,n+i.xoffset,r+i.yoffset,i.x,i.y,i.width,i.height)}return t}var f=process.env.DIRNAME||"".concat(t,"/../");e.a=function(){return{constants:{measureText:c.a,measureTextHeight:c.b,FONT_SANS_8_BLACK:i.a.join(f,"fonts/open-sans/open-sans-8-black/open-sans-8-black.fnt"),FONT_SANS_10_BLACK:i.a.join(f,"fonts/open-sans/open-sans-10-black/open-sans-10-black.fnt"),FONT_SANS_12_BLACK:i.a.join(f,"fonts/open-sans/open-sans-12-black/open-sans-12-black.fnt"),FONT_SANS_14_BLACK:i.a.join(f,"fonts/open-sans/open-sans-14-black/open-sans-14-black.fnt"),FONT_SANS_16_BLACK:i.a.join(f,"fonts/open-sans/open-sans-16-black/open-sans-16-black.fnt"),FONT_SANS_32_BLACK:i.a.join(f,"fonts/open-sans/open-sans-32-black/open-sans-32-black.fnt"),FONT_SANS_64_BLACK:i.a.join(f,"fonts/open-sans/open-sans-64-black/open-sans-64-black.fnt"),FONT_SANS_128_BLACK:i.a.join(f,"fonts/open-sans/open-sans-128-black/open-sans-128-black.fnt"),FONT_SANS_8_WHITE:i.a.join(f,"fonts/open-sans/open-sans-8-white/open-sans-8-white.fnt"),FONT_SANS_16_WHITE:i.a.join(f,"fonts/open-sans/open-sans-16-white/open-sans-16-white.fnt"),FONT_SANS_32_WHITE:i.a.join(f,"fonts/open-sans/open-sans-32-white/open-sans-32-white.fnt"),FONT_SANS_64_WHITE:i.a.join(f,"fonts/open-sans/open-sans-64-white/open-sans-64-white.fnt"),FONT_SANS_128_WHITE:i.a.join(f,"fonts/open-sans/open-sans-128-white/open-sans-128-white.fnt"),loadFont:function(t,e){var n=this;return"string"!=typeof t?s.c.call(this,"file must be a string",e):new Promise(function(r,o){e=e||function(t,e){t?o(t):r(e)},a()(t,function(r,o){var a={},c={};if(r)return s.c.call(n,r,e);for(var l=0;la&&(a=s),o.push(e)):(i.push(o),o=[e])}),i.push(o),{lines:i,longestLine:a}}(t,r,i),_=m.lines,b=m.longestLine;return _.forEach(function(r){var o=r.join(" "),a=function(t,e,n,r,i){return i===t.HORIZONTAL_ALIGN_LEFT?0:i===t.HORIZONTAL_ALIGN_CENTER?(r-Object(c.a)(e,n))/2:r-Object(c.a)(e,n)}(d.constructor,t,o,i,f);(function(t,e,n,r,i){for(var o=0;o>2,a=(31&t[e])<<3,s=128&t[e+1]):console.error("cant transform to Pixel"),this.pixels[n]=i,this.pixels[n+1]=o,this.pixels[n+2]=a,this.pixels[n+3]=s}readPixels(){r("readPixels");var t=this.header,e=(t.bytesPerPixel,t.width*t.height),n=new Uint8Array(this.buffer);this.pixels=new Uint8Array(4*e);for(var i=18,o=0;o((t,e)=>0===e.plugins.length?Promise.resolve([]):Promise.all(e.plugins.map(n=>n(t,e))).then(t=>t.reduce((t,e)=>t.concat(e))))(t,n).then(t=>(n.strip>0&&(t=t.map(t=>(t.path=p(t.path,n.strip),t)).filter(t=>"."!==t.path)),"function"==typeof n.filter&&(t=t.filter(n.filter)),"function"==typeof n.map&&(t=t.map(n.map)),e?Promise.all(t.map(t=>{const n=r.join(e,t.path),i=t.mode&~process.umask(),o=new Date;return"directory"===t.type?l(n).then(()=>f.utimes(n,o,t.mtime)).then(()=>t):l(r.dirname(n)).then(()=>"link"===t.type?f.link(t.linkname,n):"symlink"===t.type&&"win32"===process.platform?f.link(t.linkname,n):"symlink"===t.type?f.symlink(t.linkname,n):f.writeFile(n,t.data,{mode:i})).then(()=>"file"===t.type&&f.utimes(n,o,t.mtime)).then(()=>t)})):t));t.exports=(t,e,n)=>{if("string"!=typeof t&&!Buffer.isBuffer(t))return Promise.reject(new TypeError("Input file required"));return"object"==typeof e&&(n=e,e=null),n=Object.assign({plugins:[o(),a(),s(),c()]},n),("string"==typeof t?f.readFile(t):Promise.resolve(t)).then(t=>h(t,e,n))}},function(t,e,n){"use strict";var r=n(5),i=n(259),o=n(1);class a{static async zip(t,e){return new Promise((n,r)=>{a.zipFolder(t,e,t=>{t&&r(t),n()})})}static zipFolder(t,e,n){r.access(t,r.constants.F_OK,a=>{if(a)return n(a);r.access(o.dirname(e),r.constants.F_OK,o=>{if(o)return n(o);var a=r.createWriteStream(e),s=i("zip");a.on("close",function(){n()}),s.pipe(a),s.directory(t,!1),s.finalize()})})}}t.exports=a},function(t,e,n){var r=n(48),i=function(){},o=function(t,e,n){if("function"==typeof e)return o(t,null,e);e||(e={}),n=r(n||i);var a=t._writableState,s=t._readableState,c=e.readable||!1!==e.readable&&t.readable,l=e.writable||!1!==e.writable&&t.writable,u=function(){t.writable||p()},p=function(){l=!1,c||n.call(t)},f=function(){c=!1,l||n.call(t)},h=function(e){n.call(t,e?new Error("exited with error code: "+e):null)},d=function(e){n.call(t,e)},g=function(){return(!c||s&&s.ended)&&(!l||a&&a.ended)?void 0:n.call(t,new Error("premature close"))},m=function(){t.req.on("finish",p)};return!function(t){return t.setHeader&&"function"==typeof t.abort}(t)?l&&!a&&(t.on("end",u),t.on("close",u)):(t.on("complete",p),t.on("abort",g),t.req?m():t.on("request",m)),function(t){return t.stdio&&Array.isArray(t.stdio)&&3===t.stdio.length}(t)&&t.on("exit",h),t.on("end",f),t.on("finish",p),!1!==e.error&&t.on("error",d),t.on("close",g),function(){t.removeListener("complete",p),t.removeListener("abort",g),t.removeListener("request",m),t.req&&t.req.removeListener("finish",p),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",p),t.removeListener("exit",h),t.removeListener("end",f),t.removeListener("error",d),t.removeListener("close",g)}};t.exports=o},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},,function(t,e,n){"use strict";n.r(e);var r={};n.r(r),n.d(r,"AUTO",function(){return R}),n.d(r,"HORIZONTAL_ALIGN_LEFT",function(){return j}),n.d(r,"HORIZONTAL_ALIGN_CENTER",function(){return F}),n.d(r,"HORIZONTAL_ALIGN_RIGHT",function(){return U}),n.d(r,"VERTICAL_ALIGN_TOP",function(){return G}),n.d(r,"VERTICAL_ALIGN_MIDDLE",function(){return H}),n.d(r,"VERTICAL_ALIGN_BOTTOM",function(){return W}),n.d(r,"BLEND_SOURCE_OVER",function(){return q}),n.d(r,"BLEND_DESTINATION_OVER",function(){return Y}),n.d(r,"BLEND_MULTIPLY",function(){return V}),n.d(r,"BLEND_SCREEN",function(){return Z}),n.d(r,"BLEND_OVERLAY",function(){return $}),n.d(r,"BLEND_DARKEN",function(){return X}),n.d(r,"BLEND_LIGHTEN",function(){return Q}),n.d(r,"BLEND_HARDLIGHT",function(){return J}),n.d(r,"BLEND_DIFFERENCE",function(){return K}),n.d(r,"BLEND_EXCLUSION",function(){return tt}),n.d(r,"EDGE_EXTEND",function(){return et}),n.d(r,"EDGE_WRAP",function(){return nt}),n.d(r,"EDGE_CROP",function(){return rt});var i={};n.r(i),n.d(i,"srcOver",function(){return it}),n.d(i,"dstOver",function(){return ot}),n.d(i,"multiply",function(){return at}),n.d(i,"screen",function(){return st}),n.d(i,"overlay",function(){return ct}),n.d(i,"darken",function(){return lt}),n.d(i,"lighten",function(){return ut}),n.d(i,"hardLight",function(){return pt}),n.d(i,"difference",function(){return ft}),n.d(i,"exclusion",function(){return ht});var o=class extends Error{};var a=class extends o{};class s{constructor(t,e){if(this.constructor===s)throw new a("Can't instantiate abstract class!");this.path=t,this.temp=e}async input(){}async name(){}}var c=s;var l=class extends o{};class u{constructor(t,e,n=[]){if(this.constructor===u)throw new l("Can't instantiate abstract class!");this.path=t,this.input=e,this.data=n}async convert(){}async*getData(){}}var p=u,f=n(2),h=n.n(f),d=n(1),g=n.n(d);var m=class extends o{};class _{static fromPath(t,e){return g.a.join(e,t)}static log(t){_.verbose&&console.log(t)}static setVerbose(t=!0){_.verbose=t}static toPath(t,e,n){return t.startsWith("./")?g.a.join(g.a.dirname(e),t.substr(2)):g.a.join(n,t)}constructor(){throw new m("Can't instantiate this class!")}}_.verbose=!0;var b=_;var y=class extends p{async convert(){for await(const t of this.getData()){const e=b.fromPath(t,this.path);h.a.existsSync(e)&&(b.log(`Delete ${t}`),await h.a.remove(e))}return[]}async*getData(){const t=["assets","textures/blocks/conduit.png","textures/entity/conduit/break_particle.png","textures/blocks/dried_kelp_bottom.png","textures/blocks/water_overlay.png","textures/entity/cat/cat_collar.png","textures/entity/wolf/wolf_collar.png","bedrock_textures"];for(const e of t)yield e}};var v=class extends y{async*getData(){for(const t of this.data)yield t}},x=n(5),w=n.n(x),k=n(17),E=n.n(k),S=n(0),I=n(26),T=n.n(I),O=n(119),A=n.n(O),C=n(120),P=n.n(C),D=n(25),B=n.n(D),L=n(27),N=n.n(L),M=n(121),z=n.n(M),R=-1,j=1,F=2,U=4,G=8,H=16,W=32,q="srcOver",Y="dstOver",V="multiply",Z="screen",$="overlay",X="darken",Q="lighten",J="hardLight",K="difference",tt="exclusion",et=1,nt=2,rt=3;function it(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a;return{r:(t.r*t.a+e.r*e.a*(1-t.a))/r,g:(t.g*t.a+e.g*e.a*(1-t.a))/r,b:(t.b*t.a+e.b*e.a*(1-t.a))/r,a:r}}function ot(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a;return{r:(e.r*e.a+t.r*t.a*(1-e.a))/r,g:(e.g*e.a+t.g*t.a*(1-e.a))/r,b:(e.b*e.a+t.b*t.a*(1-e.a))/r,a:r}}function at(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,c=e.g*e.a,l=e.b*e.a;return{r:(i*s+i*(1-e.a)+s*(1-t.a))/r,g:(o*c+o*(1-e.a)+c*(1-t.a))/r,b:(a*l+a*(1-e.a)+l*(1-t.a))/r,a:r}}function st(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,c=e.g*e.a,l=e.b*e.a;return{r:(i*e.a+s*t.a-i*s+i*(1-e.a)+s*(1-t.a))/r,g:(o*e.a+c*t.a-o*c+o*(1-e.a)+c*(1-t.a))/r,b:(a*e.a+l*t.a-a*l+a*(1-e.a)+l*(1-t.a))/r,a:r}}function ct(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,c=e.g*e.a,l=e.b*e.a;return{r:(2*s<=e.a?2*i*s+i*(1-e.a)+s*(1-t.a):i*(1+e.a)+s*(1+t.a)-2*s*i-e.a*t.a)/r,g:(2*c<=e.a?2*o*c+o*(1-e.a)+c*(1-t.a):o*(1+e.a)+c*(1+t.a)-2*c*o-e.a*t.a)/r,b:(2*l<=e.a?2*a*l+a*(1-e.a)+l*(1-t.a):a*(1+e.a)+l*(1+t.a)-2*l*a-e.a*t.a)/r,a:r}}function lt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,c=e.g*e.a,l=e.b*e.a;return{r:(Math.min(i*e.a,s*t.a)+i*(1-e.a)+s*(1-t.a))/r,g:(Math.min(o*e.a,c*t.a)+o*(1-e.a)+c*(1-t.a))/r,b:(Math.min(a*e.a,l*t.a)+a*(1-e.a)+l*(1-t.a))/r,a:r}}function ut(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,c=e.g*e.a,l=e.b*e.a;return{r:(Math.max(i*e.a,s*t.a)+i*(1-e.a)+s*(1-t.a))/r,g:(Math.max(o*e.a,c*t.a)+o*(1-e.a)+c*(1-t.a))/r,b:(Math.max(a*e.a,l*t.a)+a*(1-e.a)+l*(1-t.a))/r,a:r}}function pt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,c=e.g*e.a,l=e.b*e.a;return{r:(2*i<=t.a?2*i*s+i*(1-e.a)+s*(1-t.a):i*(1+e.a)+s*(1+t.a)-2*s*i-e.a*t.a)/r,g:(2*o<=t.a?2*o*c+o*(1-e.a)+c*(1-t.a):o*(1+e.a)+c*(1+t.a)-2*c*o-e.a*t.a)/r,b:(2*a<=t.a?2*a*l+a*(1-e.a)+l*(1-t.a):a*(1+e.a)+l*(1+t.a)-2*l*a-e.a*t.a)/r,a:r}}function ft(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,c=e.g*e.a,l=e.b*e.a;return{r:(i+s-2*Math.min(i*e.a,s*t.a))/r,g:(o+c-2*Math.min(o*e.a,c*t.a))/r,b:(a+l-2*Math.min(a*e.a,l*t.a))/r,a:r}}function ht(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,c=e.g*e.a,l=e.b*e.a;return{r:(i*e.a+s*t.a-2*i*s+i*(1-e.a)+s*(1-t.a))/r,g:(o*e.a+c*t.a-2*o*c+o*(1-e.a)+c*(1-t.a))/r,b:(a*e.a+l*t.a-2*a*l+a*(1-e.a)+l*(1-t.a))/r,a:r}}var dt=function(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i"));this._originalMime=r.toLowerCase();try{var i=this.getMIME();if(!this.constructor.decoders[i])return S.c.call(this,"Unsupported MIME type: "+i,n);this.bitmap=this.constructor.decoders[i](t)}catch(t){return n.call(this,t,this)}try{this._exif=xt.a.create(t).parse(),function(t){var e=t._exif;if(e&&e.tags&&e.tags.Orientation)switch(t._exif.tags.Orientation){case 1:break;case 2:t.mirror(!0,!1);break;case 3:t.rotate(180,!1);break;case 4:t.mirror(!1,!0);break;case 5:t.rotate(-90,!1).mirror(!0,!1);break;case 6:t.rotate(-90,!1);break;case 7:t.rotate(90,!1).mirror(!0,!1);break;case 8:t.rotate(-270,!1)}}(this)}catch(t){}return n.call(this,null,this),this}function kt(t,e){if(t===R&&(t=this.getMIME()),"string"!=typeof t)return S.c.call(this,"mime must be a string",e);if("function"!=typeof e)return S.c.call(this,"cb must be a function",e);var n,r;if(t=t.toLowerCase(),this._rgba&&this.constructor.hasAlpha[t]?this.bitmap.data=Buffer.from(this.bitmap.data):this.bitmap.data=(n=this.constructor,r=this,new n(r.bitmap.width,r.bitmap.height,r._background).composite(r,0,0).bitmap).data,this.constructor.encoders[t]){var i=this.constructor.encoders[t](this);e.call(this,null,i)}else e.call(this,"Unsupported MIME type: "+t);return this}function Et(t){return dt(kt,this,t)}function St(t,e,n){return(St=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&Ct(i,n.prototype),i}).apply(null,arguments)}function It(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Tt(t,e){for(var n=0;n (HTTP: "+r.statusCode+")";return new Error(o)})}var Ft,Ut={data:null,width:null,height:null},Gt=function(t){function e(){for(var t,n=arguments.length,r=new Array(n),i=0;i-1&&(r[0]=function(t){for(var e=Buffer.alloc(t.byteLength),n=new Uint8Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:{};n=Object.assign(n,{methodName:t,eventName:e}),this.emit("any",n),t&&this.emit(t,n),this.emit(e,n)}},{key:"emitError",value:function(t,e){this.emitMulti(t,"error",e)}},{key:"getHeight",value:function(){return this.bitmap.height}},{key:"getWidth",value:function(){return this.bitmap.width}},{key:"inspect",value:function(){return""}},{key:"toString",value:function(){return"[object Jimp]"}},{key:"getMIME",value:function(){return this._originalMime||e.MIME_PNG}},{key:"getExtension",value:function(){var t=this.getMIME();return(gt[t.toLowerCase()]||[])[0]}},{key:"write",value:function(t,e){var n=this;if(!w.a||!w.a.createWriteStream)throw new Error("Cant access the filesystem. You can use the getBase64 method.");if("string"!=typeof t)return S.c.call(this,"path must be a string",e);if(void 0===e&&(e=Rt),"function"!=typeof e)return S.c.call(this,"cb must be a function",e);var r=_t(t)||this.getMIME(),i=g.a.parse(t);return i.dir&&A.a.sync(i.dir),this.getBuffer(r,function(r,i){if(r)return S.c.call(n,r,e);var o=w.a.createWriteStream(t);o.on("open",function(){o.write(i),o.end()}).on("error",function(t){return S.c.call(n,t,e)}),o.on("finish",function(){e.call(n,null,n)})}),this}},{key:"getBase64",value:function(t,n){return t===e.AUTO&&(t=this.getMIME()),"string"!=typeof t?S.c.call(this,"mime must be a string",n):"function"!=typeof n?S.c.call(this,"cb must be a function",n):(this.getBuffer(t,function(e,r){if(e)return S.c.call(this,e,n);var i="data:"+t+";base64,"+r.toString("base64");n.call(this,null,i)}),this)}},{key:"hash",value:function(t,e){if("function"==typeof(t=t||64)&&(e=t,t=64),"number"!=typeof t)return S.c.call(this,"base must be a number",e);if(t<2||t>64)return S.c.call(this,"base must be a number between 2 and 64",e);var n=this.pHash();for(n=T()(T.a.BIN,Lt.slice(0,t))(n);n.length=this.bitmap.width&&(o=this.bitmap.width-1),n<0&&(a=0),n>=this.bitmap.height&&(a=this.bitmap.height-1)),r===e.EDGE_WRAP&&(t<0&&(o=this.bitmap.width+t),t>=this.bitmap.width&&(o=t%this.bitmap.width),n<0&&(o=this.bitmap.height+n),n>=this.bitmap.height&&(a=n%this.bitmap.height));var s=this.bitmap.width*a+o<<2;return(o<0||o>=this.bitmap.width)&&(s=-1),(a<0||a>=this.bitmap.height)&&(s=-1),Object(S.a)(i)&&i.call(this,null,s),s}},{key:"getPixelColor",value:function(t,e,n){if("number"!=typeof t||"number"!=typeof e)return S.c.call(this,"x and y must be numbers",n);t=Math.round(t),e=Math.round(e);var r=this.getPixelIndex(t,e),i=this.bitmap.data.readUInt32BE(r);return Object(S.a)(n)&&n.call(this,null,i),i}},{key:"setPixelColor",value:function(t,e,n,r){if("number"!=typeof t||"number"!=typeof e||"number"!=typeof n)return S.c.call(this,"hex, x and y must be numbers",r);e=Math.round(e),n=Math.round(n);var i=this.getPixelIndex(e,n);return this.bitmap.data.writeUInt32BE(t,i),Object(S.a)(r)&&r.call(this,null,this),this}},{key:"hasAlpha",value:function(){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:Gt;Object.entries(t).forEach(function(t){var n=It(t,2),r=n[0],i=n[1];e[r]=i})}function Wt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Gt;Object.entries(t).forEach(function(t){var n=It(t,2),r=n[0],i=n[1];e.prototype[r]=i})}function qt(t,e,n){var r="before-"+e,i=e.replace(/e$/,"")+"ed";Gt.prototype[t]=function(){for(var e,o=arguments.length,a=new Array(o),s=0;s3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4?arguments[4]:void 0;if("function"==typeof r&&(o=r,r={}),!(t instanceof this.constructor))return S.c.call(this,"The source must be a Jimp image",o);if("number"!=typeof e||"number"!=typeof n)return S.c.call(this,"x and y must be numbers",o);var a=r,s=a.mode,c=a.opacitySource,l=a.opacityDest;s||(s=q),("number"!=typeof c||c<0||c>1)&&(c=1),("number"!=typeof l||l<0||l>1)&&(l=1);var u=i[s];e=Math.round(e),n=Math.round(n);var p=this;return 1!==l&&p.opacity(l),t.scanQuiet(0,0,t.bitmap.width,t.bitmap.height,function(t,r,i){var o=p.getPixelIndex(e+t,n+r,rt),a=u({r:this.bitmap.data[i+0]/255,g:this.bitmap.data[i+1]/255,b:this.bitmap.data[i+2]/255,a:this.bitmap.data[i+3]/255},{r:p.bitmap.data[o+0]/255,g:p.bitmap.data[o+1]/255,b:p.bitmap.data[o+2]/255,a:p.bitmap.data[o+3]/255},c);p.bitmap.data[o+0]=this.constructor.limit255(255*a.r),p.bitmap.data[o+1]=this.constructor.limit255(255*a.g),p.bitmap.data[o+2]=this.constructor.limit255(255*a.b),p.bitmap.data[o+3]=this.constructor.limit255(255*a.a)}),Object(S.a)(o)&&o.call(this,null,this),this}}),Gt.__extraConstructors=[],Gt.appendConstructorOption=function(t,e,n){Gt.__extraConstructors.push({name:t,test:e,run:n})},Gt.read=function(){for(var t=arguments.length,e=new Array(t),n=0;n255)return S.c.call(this,"r must be between 0 and 255",i);if((e<0||e>255)&&S.c.call(this,"g must be between 0 and 255",i),n<0||n>255)return S.c.call(this,"b must be between 0 and 255",i);if(r<0||r>255)return S.c.call(this,"a must be between 0 and 255",i);t=Math.round(t),n=Math.round(n),e=Math.round(e),r=Math.round(r);var o=t*Math.pow(256,3)+e*Math.pow(256,2)+n*Math.pow(256,1)+r*Math.pow(256,0);return Object(S.a)(i)&&i.call(this,null,o),o},Gt.intToRGBA=function(t,e){if("number"!=typeof t)return S.c.call(this,"i must be a number",e);var n={};return n.r=Math.floor(t/Math.pow(256,3)),n.g=Math.floor((t-n.r*Math.pow(256,3))/Math.pow(256,2)),n.b=Math.floor((t-n.r*Math.pow(256,3)-n.g*Math.pow(256,2))/Math.pow(256,1)),n.a=Math.floor((t-n.r*Math.pow(256,3)-n.g*Math.pow(256,2)-n.b*Math.pow(256,1))/Math.pow(256,0)),Object(S.a)(e)&&e.call(this,null,n),n},Gt.cssColorToHex=function(t){return"number"==typeof(t=t||0)?Number(t):parseInt(B()(t).toHex8(),16)},Gt.limit255=function(t){return t=Math.max(t,0),t=Math.min(t,255)},Gt.diff=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.1;if(!(t instanceof Gt&&e instanceof Gt))return S.c.call(this,"img1 and img2 must be an Jimp images");var r=t.bitmap,i=e.bitmap;if(r.width===i.width&&r.height===i.height||(r.width*r.height>i.width*i.height?t=t.cloneQuiet().resize(i.width,i.height):e=e.cloneQuiet().resize(r.width,r.height)),"number"!=typeof n||n<0||n>1)return S.c.call(this,"threshold must be a number between 0 and 1");var o=new Gt(r.width,r.height,4294967295),a=P()(r.data,i.data,o.bitmap.data,o.bitmap.width,o.bitmap.height,{threshold:n});return{percent:a/(o.bitmap.width*o.bitmap.height),image:o}},Gt.distance=function(t,e){var n=new N.a,r=n.getHash(t),i=n.getHash(e);return n.distance(r,i)},Gt.compareHashes=function(t,e){return(new N.a).distance(t,e)},Gt.colorDiff=function(t,e){var n=function(t){return Math.pow(t,2)},r=Math.max;return 0===t.a||t.a||(t.a=255),0===e.a||e.a||(e.a=255),(r(n(t.r-e.r),n(t.r-e.r-t.a+e.a))+r(n(t.g-e.g),n(t.g-e.g-t.a+e.a))+r(n(t.b-e.b),n(t.b-e.b-t.a+e.a)))/195075},qt("clone","clone",function(t){var e=new Gt(this);return Object(S.a)(t)&&t.call(e,null,e),e}),Yt("background",function(t,e){return"number"!=typeof t?S.c.call(this,"hex must be a hexadecimal rgba value",e):(this._background=t,Object(S.a)(e)&&e.call(this,null,this),this)}),Yt("scan",function(t,e,n,r,i,o){if("number"!=typeof t||"number"!=typeof e)return S.c.call(this,"x and y must be numbers",o);if("number"!=typeof n||"number"!=typeof r)return S.c.call(this,"w and h must be numbers",o);if("function"!=typeof i)return S.c.call(this,"f must be a function",o);var a=Object(S.b)(this,t,e,n,r,i);return Object(S.a)(o)&&o.call(this,null,a),a}),"BROWSER"===process.env.ENVIRONMENT)&&("undefined"!=typeof window&&"object"===("undefined"==typeof window?"undefined":Bt(window))&&(Ft=window),"undefined"!=typeof self&&"object"===("undefined"==typeof self?"undefined":Bt(self))&&(Ft=self),Ft.Jimp=Gt,Ft.Buffer=Buffer);var Vt=Gt;function Zt(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e2&&void 0!==arguments[2]?arguments[2]:50;return{r:(e.r-t.r)*(n/100)+t.r,g:(e.g-t.g)*(n/100)+t.g,b:(e.b-t.b)*(n/100)+t.b}}function Ie(t,e){var n=this;return t&&Array.isArray(t)?(t=t.map(function(t){return"xor"!==t.apply&&"mix"!==t.apply||(t.params[0]=B()(t.params[0]).toRgb()),t}),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(r,i,o){var a={r:n.bitmap.data[o],g:n.bitmap.data[o+1],b:n.bitmap.data[o+2]},s=function(t,e){return n.constructor.limit255(a[t]+e)};t.forEach(function(t){if("mix"===t.apply)a=Se(a,t.params[0],t.params[1]);else if("tint"===t.apply)a=Se(a,{r:255,g:255,b:255},t.params[0]);else if("shade"===t.apply)a=Se(a,{r:0,g:0,b:0},t.params[0]);else if("xor"===t.apply)a={r:a.r^t.params[0].r,g:a.g^t.params[0].g,b:a.b^t.params[0].b};else if("red"===t.apply)a.r=s("r",t.params[0]);else if("green"===t.apply)a.g=s("g",t.params[0]);else if("blue"===t.apply)a.b=s("b",t.params[0]);else{var r;if("hue"===t.apply&&(t.apply="spin"),!(a=B()(a))[t.apply])return S.c.call(n,"action "+t.apply+" not supported",e);a=(r=a)[t.apply].apply(r,xe(t.params)).toRgb()}}),n.bitmap.data[o]=a.r,n.bitmap.data[o+1]=a.g,n.bitmap.data[o+2]=a.b}),Object(S.a)(e)&&e.call(this,null,this),this):S.c.call(this,"actions must be an array",e)}var Te=n(126),Oe=[1,57,41,21,203,34,97,73,227,91,149,62,105,45,39,137,241,107,3,173,39,71,65,238,219,101,187,87,81,151,141,133,249,117,221,209,197,187,177,169,5,153,73,139,133,127,243,233,223,107,103,99,191,23,177,171,165,159,77,149,9,139,135,131,253,245,119,231,224,109,211,103,25,195,189,23,45,175,171,83,81,79,155,151,147,9,141,137,67,131,129,251,123,30,235,115,113,221,217,53,13,51,50,49,193,189,185,91,179,175,43,169,83,163,5,79,155,19,75,147,145,143,35,69,17,67,33,65,255,251,247,243,239,59,29,229,113,111,219,27,213,105,207,51,201,199,49,193,191,47,93,183,181,179,11,87,43,85,167,165,163,161,159,157,155,77,19,75,37,73,145,143,141,35,138,137,135,67,33,131,129,255,63,250,247,61,121,239,237,117,29,229,227,225,111,55,109,216,213,211,209,207,205,203,201,199,197,195,193,48,190,47,93,185,183,181,179,178,176,175,173,171,85,21,167,165,41,163,161,5,79,157,78,154,153,19,75,149,74,147,73,144,143,71,141,140,139,137,17,135,134,133,66,131,65,129,1],Ae=[0,9,10,10,14,12,14,14,16,15,16,15,16,15,15,17,18,17,12,18,16,17,17,19,19,18,19,18,18,19,19,19,20,19,20,20,20,20,20,20,15,20,19,20,20,20,21,21,21,20,20,20,21,18,21,21,21,21,20,21,17,21,21,21,22,22,21,22,22,21,22,21,19,22,22,19,20,22,22,21,21,21,22,22,22,18,22,22,21,22,22,23,22,20,23,22,22,23,23,21,19,21,21,21,23,23,23,22,23,23,21,23,22,23,18,22,23,20,22,23,23,23,21,22,20,22,21,22,24,24,24,24,24,22,21,24,23,23,24,21,24,23,24,22,24,24,22,24,24,22,23,24,24,24,20,23,22,23,24,24,24,24,24,24,24,23,21,23,22,23,24,24,24,22,24,24,24,23,22,24,24,25,23,25,25,23,24,25,25,24,22,25,25,25,24,23,24,25,25,25,25,25,25,25,25,25,25,25,25,23,25,23,24,25,25,25,25,25,25,25,25,25,24,22,25,25,23,25,25,20,24,25,24,25,25,22,24,25,24,25,24,25,25,24,25,25,25,25,22,25,25,25,24,25,24,25,18];function Ce(t){return(Ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Pe=function(t,e,n){return 255*(t-e)/(n-e)},De=function(t){return[t.findIndex(function(t){return t>0}),255-t.slice().reverse().findIndex(function(t){return t>0})]};function Be(t,e,n){if("boolean"!=typeof t||"boolean"!=typeof e)return S.c.call(this,"horizontal and vertical must be Booleans",n);if(t&&e)return this.rotate(180,!0,n);var r=Buffer.alloc(this.bitmap.data.length);return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(n,i,o){var a=t?this.bitmap.width-1-n:n,s=e?this.bitmap.height-1-i:i,c=this.bitmap.width*s+a<<2,l=this.bitmap.data.readUInt32BE(o);r.writeUInt32BE(l,c)}),this.bitmap.data=Buffer.from(r),Object(S.a)(n)&&n.call(this,null,this),this}function Le(t){return(Le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ne(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e=0&&p>=0&&c-s>0&&l-p>0){var f=u.getPixelIndex(s,p),h={r:this.bitmap.data[a],g:this.bitmap.data[a+1],b:this.bitmap.data[a+2],a:this.bitmap.data[a+3]},d={r:u.bitmap.data[f],g:u.bitmap.data[f+1],b:u.bitmap.data[f+2],a:u.bitmap.data[f+3]};u.bitmap.data[f]=(h.a*(h.r-d.r)-d.r+255>>8)+d.r,u.bitmap.data[f+1]=(h.a*(h.g-d.g)-d.g+255>>8)+d.g,u.bitmap.data[f+2]=(h.a*(h.b-d.b)-d.b+255>>8)+d.b,u.bitmap.data[f+3]=this.constructor.limit255(d.a+h.a)}}),Object(S.a)(s)&&s.call(this,null,this),this}}},function(){return{rotate:function(t,e,n){return null==e&&(e=!0),"function"==typeof e&&void 0===n&&(n=e,e=!0),"number"!=typeof t?S.c.call(this,"deg must be a number",n):"boolean"!=typeof e&&"string"!=typeof e?S.c.call(this,"mode must be a boolean or a string",n):(function(t,e){var n=(t%=360)*Math.PI/180,r=Math.cos(n),i=Math.sin(n),o=this.bitmap.width,a=this.bitmap.height;if(!0===e||"string"==typeof e){(o=Math.ceil(Math.abs(this.bitmap.width*r)+Math.abs(this.bitmap.height*i))+1)%2!=0&&o++,(a=Math.ceil(Math.abs(this.bitmap.width*i)+Math.abs(this.bitmap.height*r))+1)%2!=0&&a++;var s=this.cloneQuiet();this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,n){this.bitmap.data.writeUInt32BE(this._background,n)});var c=Math.max(o,a,this.bitmap.width,this.bitmap.height);this.resize(c,c,e),this.blit(s,this.bitmap.width/2-s.bitmap.width/2,this.bitmap.height/2-s.bitmap.height/2)}var l=this.bitmap.width,u=this.bitmap.height,p=Buffer.alloc(this.bitmap.data.length);function f(t,e){return function(n,r){return{x:n+t,y:r+e}}}for(var h=f(-l/2,-u/2),d=f(l/2+.5,u/2+.5),g=1;g<=u;g++)for(var m=1;m<=l;m++){var _=h(m,g),b=d(r*_.x-i*_.y,r*_.y+i*_.x),y=l*(g-1)+m-1<<2;if(b.x>=0&&b.x=0&&b.y1?S.c.call(this,"val must be a number between -1 and +1",e):(this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(e,n,r){t<0?(this.bitmap.data[r]=this.bitmap.data[r]*(1+t),this.bitmap.data[r+1]=this.bitmap.data[r+1]*(1+t),this.bitmap.data[r+2]=this.bitmap.data[r+2]*(1+t)):(this.bitmap.data[r]=this.bitmap.data[r]+(255-this.bitmap.data[r])*t,this.bitmap.data[r+1]=this.bitmap.data[r+1]+(255-this.bitmap.data[r+1])*t,this.bitmap.data[r+2]=this.bitmap.data[r+2]+(255-this.bitmap.data[r+2])*t)}),Object(S.a)(e)&&e.call(this,null,this),this)},contrast:function(t,e){if("number"!=typeof t)return S.c.call(this,"val must be numbers",e);if(t<-1||t>1)return S.c.call(this,"val must be a number between -1 and +1",e);var n=(t+1)/(1-t);function r(t){return(t=Math.floor(n*(t-127)+127))<0?0:t>255?255:t}return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,n){this.bitmap.data[n]=r(this.bitmap.data[n]),this.bitmap.data[n+1]=r(this.bitmap.data[n+1]),this.bitmap.data[n+2]=r(this.bitmap.data[n+2])}),Object(S.a)(e)&&e.call(this,null,this),this},posterize:function(t,e){return"number"!=typeof t?S.c.call(this,"n must be numbers",e):(t<2&&(t=2),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(e,n,r){this.bitmap.data[r]=Math.floor(this.bitmap.data[r]/255*(t-1))/(t-1)*255,this.bitmap.data[r+1]=Math.floor(this.bitmap.data[r+1]/255*(t-1))/(t-1)*255,this.bitmap.data[r+2]=Math.floor(this.bitmap.data[r+2]/255*(t-1))/(t-1)*255}),Object(S.a)(e)&&e.call(this,null,this),this)},greyscale:Ee,grayscale:Ee,opacity:function(t,e){return"number"!=typeof t?S.c.call(this,"f must be a number",e):t<0||t>1?S.c.call(this,"f must be a number from 0 to 1",e):(this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(e,n,r){var i=this.bitmap.data[r+3]*t;this.bitmap.data[r+3]=i}),Object(S.a)(e)&&e.call(this,null,this),this)},sepia:function(t){return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,n){var r=this.bitmap.data[n],i=this.bitmap.data[n+1],o=this.bitmap.data[n+2];o=.272*(r=.393*r+.769*i+.189*o)+.534*(i=.349*r+.686*i+.168*o)+.131*o,this.bitmap.data[n]=r<255?r:255,this.bitmap.data[n+1]=i<255?i:255,this.bitmap.data[n+2]=o<255?o:255}),Object(S.a)(t)&&t.call(this,null,this),this},fade:function(t,e){return"number"!=typeof t?S.c.call(this,"f must be a number",e):t<0||t>1?S.c.call(this,"f must be a number from 0 to 1",e):(this.opacity(1-t),Object(S.a)(e)&&e.call(this,null,this),this)},convolution:function(t,e,n){"function"==typeof e&&void 0===n&&(n=e,e=null),e||(e=this.constructor.EDGE_EXTEND);var r,i,o,a,s,c,l,u,p,f,h=Buffer.from(this.bitmap.data),d=t.length,g=t[0].length,m=Math.floor(d/2),_=Math.floor(g/2),b=-m,y=-_;return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(n,d,g){a=0,o=0,i=0;for(var v=b;v<=m;v++)for(var x=y;x<=_;x++)u=n+x,p=d+v,r=t[v+m][x+_],-1===(f=this.getPixelIndex(u,p,e))?(l=0,c=0,s=0):(s=this.bitmap.data[f+0],c=this.bitmap.data[f+1],l=this.bitmap.data[f+2]),i+=r*s,o+=r*c,a+=r*l;i<0&&(i=0),o<0&&(o=0),a<0&&(a=0),i>255&&(i=255),o>255&&(o=255),a>255&&(a=255),h[g+0]=i,h[g+1]=o,h[g+2]=a}),this.bitmap.data=h,Object(S.a)(n)&&n.call(this,null,this),this},opaque:function(t){return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,n){this.bitmap.data[n+3]=255}),Object(S.a)(t)&&t.call(this,null,this),this},pixelate:function(t,e,n,r,i,o){if("function"==typeof e)o=e,i=null,r=null,n=null,e=null;else{if("number"!=typeof t)return S.c.call(this,"size must be a number",o);if(ke(e)&&"number"!=typeof e)return S.c.call(this,"x must be a number",o);if(ke(n)&&"number"!=typeof n)return S.c.call(this,"y must be a number",o);if(ke(r)&&"number"!=typeof r)return S.c.call(this,"w must be a number",o);if(ke(i)&&"number"!=typeof i)return S.c.call(this,"h must be a number",o)}var a=[[1/16,.125,1/16],[.125,.25,.125],[1/16,.125,1/16]];e=e||0,n=n||0,r=ke(r)?r:this.bitmap.width-e,i=ke(i)?i:this.bitmap.height-n;var s=this.cloneQuiet();return this.scanQuiet(e,n,r,i,function(e,n,r){e=t*Math.floor(e/t),n=t*Math.floor(n/t);var i=we(s,a,e,n);this.bitmap.data[r]=i[0],this.bitmap.data[r+1]=i[1],this.bitmap.data[r+2]=i[2]}),Object(S.a)(o)&&o.call(this,null,this),this},convolute:function(t,e,n,r,i,o){if(!Array.isArray(t))return S.c.call(this,"the kernel must be an array",o);if("function"==typeof e)o=e,e=null,n=null,r=null,i=null;else{if(ke(e)&&"number"!=typeof e)return S.c.call(this,"x must be a number",o);if(ke(n)&&"number"!=typeof n)return S.c.call(this,"y must be a number",o);if(ke(r)&&"number"!=typeof r)return S.c.call(this,"w must be a number",o);if(ke(i)&&"number"!=typeof i)return S.c.call(this,"h must be a number",o)}var a=(t.length-1)/2;e=ke(e)?e:a,n=ke(n)?n:a,r=ke(r)?r:this.bitmap.width-e,i=ke(i)?i:this.bitmap.height-n;var s=this.cloneQuiet();return this.scanQuiet(e,n,r,i,function(e,n,r){var i=we(s,t,e,n);this.bitmap.data[r]=this.constructor.limit255(i[0]),this.bitmap.data[r+1]=this.constructor.limit255(i[1]),this.bitmap.data[r+2]=this.constructor.limit255(i[2])}),Object(S.a)(o)&&o.call(this,null,this),this},color:Ie,colour:Ie}},Te.a,function(){return{blur:function(t,e){if("number"!=typeof t)return S.c.call(this,"r must be a number",e);if(t<1)return S.c.call(this,"r must be greater than 0",e);for(var n,r,i,o,a,s,c,l,u,p,f,h,d,g,m=this.bitmap.width-1,_=this.bitmap.height-1,b=t+1,y=Oe[t],v=Ae[t],x=[],w=[],k=[],E=[],I=[],T=[],O=2;O-- >0;){for(h=0,d=0,s=0;sm?m:c)<<2),n+=this.bitmap.data[l++],r+=this.bitmap.data[l++],i+=this.bitmap.data[l++],o+=this.bitmap.data[l];for(a=0;a0?l<<2:0),u=d+I[a],p=d+T[a],n+=this.bitmap.data[u++]-this.bitmap.data[p++],r+=this.bitmap.data[u++]-this.bitmap.data[p++],i+=this.bitmap.data[u++]-this.bitmap.data[p++],o+=this.bitmap.data[u]-this.bitmap.data[p],h++;d+=this.bitmap.width<<2}for(a=0;a_?0:this.bitmap.width],r+=w[f],i+=k[f],o+=E[f];for(h=a<<2,s=0;s>>v,this.bitmap.data[h+3]=g,g>255&&(this.bitmap.data[h+3]=255),g>0?(g=255/g,this.bitmap.data[h]=(n*y>>>v)*g,this.bitmap.data[h+1]=(r*y>>>v)*g,this.bitmap.data[h+2]=(i*y>>>v)*g):(this.bitmap.data[h+2]=0,this.bitmap.data[h+1]=0,this.bitmap.data[h]=0),0===a&&(I[s]=((l=s+b)<_?l:_)*this.bitmap.width,T[s]=(l=s-t)>0?l*this.bitmap.width:0),u=a+I[s],p=a+T[s],n+=x[u]-x[p],r+=w[u]-w[p],i+=k[u]-k[p],o+=E[u]-E[p],h+=this.bitmap.width<<2}}return Object(S.a)(e)&&e.call(this,null,this),this}}},function(t){return t("crop",function(t,e,n,r,i){if("number"!=typeof t||"number"!=typeof e)return S.c.call(this,"x and y must be numbers",i);if("number"!=typeof n||"number"!=typeof r)return S.c.call(this,"w and h must be numbers",i);if(t=Math.round(t),e=Math.round(e),n=Math.round(n),r=Math.round(r),0===t&&n===this.bitmap.width){var o=n*e+t<<2,a=o+r*n<<3;this.bitmap.data=this.bitmap.data.slice(o,a)}else{var s=Buffer.allocUnsafe(n*r*4),c=0;this.scanQuiet(t,e,n,r,function(t,e,n){var r=this.bitmap.data.readUInt32BE(n,!0);s.writeUInt32BE(r,c,!0),c+=4}),this.bitmap.data=s}return this.bitmap.width=n,this.bitmap.height=r,Object(S.a)(i)&&i.call(this,null,this),this}),{class:{autocrop:function(){for(var t,e=this.bitmap.width,n=this.bitmap.height,r=1,i=0,o=2e-4,a=!0,s=!1,c=0,l=arguments.length;co)break t}h++}p=this.getPixelColor(e,0);t:for(var x=0;xo)break t}d++}p=this.getPixelColor(0,n);t:for(var I=n-1;I>=h+r;I--){for(var T=e-d-1;T>=0;T--){var O=this.getPixelColor(T,I),A=this.constructor.intToRGBA(O);if(this.constructor.colorDiff(f,A)>o)break t}g++}p=this.getPixelColor(e,n);t:for(var C=e-1;C>=0+d+r;C--){for(var P=n-1;P>=0+h;P--){var D=this.getPixelColor(C,P),B=this.constructor.intToRGBA(D);if(this.constructor.colorDiff(f,B)>o)break t}m++}if(m-=i,d-=i,h-=i,g-=i,s){var L=Math.min(d,m),N=Math.min(h,g);m=L,d=L,h=N,g=N}var M=e-(m+d),z=n-(g+h);return m=m>=0?m:0,d=d>=0?d:0,h=h>=0?h:0,g=g>=0?g:0,(a?0!==d&&0!==h&&0!==m&&0!==g:0!==d||0!==h||0!==m||0!==g)&&this.crop(d,h,M,z),Object(S.a)(t)&&t.call(this,null,this),this}}}},function(){return{normalize:function(t){var e=function(){var t={r:new Array(256).fill(0),g:new Array(256).fill(0),b:new Array(256).fill(0)};return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(e,n,r){t.r[this.bitmap.data[r+0]]++,t.g[this.bitmap.data[r+1]]++,t.b[this.bitmap.data[r+2]]++}),t}.call(this),n={r:De(e.r),g:De(e.g),b:De(e.b)};return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,r){var i=this.bitmap.data[r+0],o=this.bitmap.data[r+1],a=this.bitmap.data[r+2];this.bitmap.data[r+0]=Pe(i,n.r[0],n.r[1]),this.bitmap.data[r+1]=Pe(o,n.g[0],n.g[1]),this.bitmap.data[r+2]=Pe(a,n.b[0],n.b[1])}),Object(S.a)(t)&&t.call(this,null,this),this}}},function(){return{invert:function(t){return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,n){this.bitmap.data[n]=255-this.bitmap.data[n],this.bitmap.data[n+1]=255-this.bitmap.data[n+1],this.bitmap.data[n+2]=255-this.bitmap.data[n+2]}),Object(S.a)(t)&&t.call(this,null,this),this}}},function(){return{gaussian:function(t,e){if("number"!=typeof t)return S.c.call(this,"r must be a number",e);if(t<1)return S.c.call(this,"r must be greater than 0",e);for(var n=Math.ceil(2.57*t),r=2*n+1,i=t*t*2,o=i*Math.PI,a=[],s=0;s1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0;if(!(t instanceof this.constructor))return S.c.call(this,"The source must be a Jimp image",r);if("number"!=typeof e||"number"!=typeof n)return S.c.call(this,"x and y must be numbers",r);e=Math.round(e),n=Math.round(n);var i=this.bitmap.width,o=this.bitmap.height,a=this;return t.scanQuiet(0,0,t.bitmap.width,t.bitmap.height,function(t,r,s){var c=e+t,l=n+r;if(c>=0&&l>=0&&cthis.bitmap.width/this.bitmap.height?e/this.bitmap.height:t/this.bitmap.width;return this.scale(i,n),Object(S.a)(r)&&r.call(this,null,this),this}}},function(){return{displace:function(t,e,n){if("object"!==Le(t)||t.constructor!==this.constructor)return S.c.call(this,"The source must be a Jimp image",n);if("number"!=typeof e)return S.c.call(this,"factor must be a number",n);var r=this.cloneQuiet();return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(n,i,o){var a=t.bitmap.data[o]/256*e;a=Math.round(a);var s=this.getPixelIndex(n+a,i);this.bitmap.data[s]=r.bitmap.data[o],this.bitmap.data[s+1]=r.bitmap.data[o+1],this.bitmap.data[s+2]=r.bitmap.data[o+2]}),Object(S.a)(n)&&n.call(this,null,this),this}}},function(){return{contain:function(t,e,n,r,i){if("number"!=typeof t||"number"!=typeof e)return S.c.call(this,"w and h must be numbers",i);"string"==typeof n&&("function"==typeof r&&void 0===i&&(i=r),r=n,n=null),"function"==typeof n&&(void 0===i&&(i=n),r=null,n=null),"function"==typeof r&&void 0===i&&(i=r,r=null);var o=7&(n=n||this.constructor.HORIZONTAL_ALIGN_CENTER|this.constructor.VERTICAL_ALIGN_MIDDLE),a=n>>3;if((0===o||o&o-1)&&(0===a||a&a-1))return S.c.call(this,"only use one flag per alignment direction",i);var s=o>>1,c=a>>1,l=t/e>this.bitmap.width/this.bitmap.height?e/this.bitmap.height:t/this.bitmap.width,u=this.cloneQuiet().scale(l,r);return this.resize(t,e,r),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,n){this.bitmap.data.writeUInt32BE(this._background,n)}),this.blit(u,(this.bitmap.width-u.bitmap.width)/2*s,(this.bitmap.height-u.bitmap.height)/2*c),Object(S.a)(i)&&i.call(this,null,this),this}}},function(){return{cover:function(t,e,n,r,i){if("number"!=typeof t||"number"!=typeof e)return S.c.call(this,"w and h must be numbers",i);n&&"function"==typeof n&&void 0===i?(i=n,n=null,r=null):"function"==typeof r&&void 0===i&&(i=r,r=null);var o=7&(n=n||this.constructor.HORIZONTAL_ALIGN_CENTER|this.constructor.VERTICAL_ALIGN_MIDDLE),a=n>>3;if((0===o||o&o-1)&&(0===a||a&a-1))return S.c.call(this,"only use one flag per alignment direction",i);var s=o>>1,c=a>>1,l=t/e>this.bitmap.width/this.bitmap.height?t/this.bitmap.width:e/this.bitmap.height;return this.scale(l,r),this.crop((this.bitmap.width-t)/2*s,(this.bitmap.height-e)/2*c,t,e),Object(S.a)(i)&&i.call(this,null,this),this}}}],ze=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Vt,n={hasAlpha:{},encoders:{},decoders:{},class:{},constants:{}};function r(t){Object.entries(t).forEach(function(t){var e=Qt(t,2),r=e[0],i=e[1];n[r]=$t({},n[r],i)})}return t.types&&(t.types.forEach(function(t){var e=t();Array.isArray(e.mime)?mt.apply(void 0,Zt(e.mime)):Object.entries(e.mime).forEach(function(t){return mt.apply(void 0,Zt(t))}),delete e.mime,r(e)}),e.decoders=$t({},e.decoders,n.decoders),e.encoders=$t({},e.encoders,n.encoders),e.hasAlpha=$t({},e.hasAlpha,n.hasAlpha)),t.plugins&&t.plugins.forEach(function(t){var e=t(Yt)||{};e.class||e.constants?r(e):r({class:e})}),Wt(n.class,e),Ht(n.constants,e),Vt}({types:[function(){return Object(Jt.mergeDeep)({mime:ee({},"image/jpeg",["jpeg","jpg","jpe"]),constants:{MIME_JPEG:"image/jpeg"},decoders:ee({},"image/jpeg",te.a.decode),encoders:ee({},"image/jpeg",function(t){return te.a.encode(t.bitmap,t._quality).data}),class:{_quality:100,quality:function(t,e){return"number"!=typeof t?S.c.call(this,"n must be a number",e):t<0||t>100?S.c.call(this,"n must be a number 0 - 100",e):(this._quality=Math.round(t),Object(S.a)(e)&&e.call(this,null,this),this)}}},{mime:re({},"image/png",["png"]),constants:{MIME_PNG:"image/png",PNG_FILTER_AUTO:-1,PNG_FILTER_NONE:0,PNG_FILTER_SUB:1,PNG_FILTER_UP:2,PNG_FILTER_AVERAGE:3,PNG_FILTER_PATH:4},hasAlpha:re({},"image/png",!0),decoders:re({},"image/png",ne.PNG.sync.read),encoders:re({},"image/png",function(t){var e=new ne.PNG({width:t.bitmap.width,height:t.bitmap.height});return e.data=t.bitmap.data,ne.PNG.sync.write(e,{width:t.bitmap.width,height:t.bitmap.height,deflateLevel:t._deflateLevel,deflateStrategy:t._deflateStrategy,filterType:t._filterType,colorType:"number"==typeof t._colorType?t._colorType:t._rgba?6:2,inputHasAlpha:t._rgba})}),class:{_deflateLevel:9,_deflateStrategy:3,_filterType:-1,_colorType:null,deflateLevel:function(t,e){return"number"!=typeof t?S.c.call(this,"l must be a number",e):t<0||t>9?S.c.call(this,"l must be a number 0 - 9",e):(this._deflateLevel=Math.round(t),Object(S.a)(e)&&e.call(this,null,this),this)},deflateStrategy:function(t,e){return"number"!=typeof t?S.c.call(this,"s must be a number",e):t<0||t>3?S.c.call(this,"s must be a number 0 - 3",e):(this._deflateStrategy=Math.round(t),Object(S.a)(e)&&e.call(this,null,this),this)},filterType:function(t,e){return"number"!=typeof t?S.c.call(this,"n must be a number",e):t<-1||t>4?S.c.call(this,"n must be -1 (auto) or a number 0 - 4",e):(this._filterType=Math.round(t),Object(S.a)(e)&&e.call(this,null,this),this)},colorType:function(t,e){return"number"!=typeof t?S.c.call(this,"s must be a number",e):0!==t&&2!==t&&4!==t&&6!==t?S.c.call(this,"s must be a number 0, 2, 4, 6.",e):(this._colorType=Math.round(t),Object(S.a)(e)&&e.call(this,null,this),this)}}},{mime:ae({},"image/bmp",["bmp"]),constants:{MIME_BMP:"image/bmp",MIME_X_MS_BMP:"image/x-ms-bmp"},decoders:(t={},ae(t,"image/bmp",se),ae(t,"image/x-ms-bmp",se),t),encoders:(e={},ae(e,"image/bmp",ce),ae(e,"image/x-ms-bmp",ce),e)},{mime:pe({},"image/tiff",["tiff","tif"]),constants:{MIME_TIFF:"image/tiff"},decoders:pe({},"image/tiff",function(t){var e=ue.a.decode(t),n=e[0];ue.a.decodeImages(t,e);var r=ue.a.toRGBA8(n);return{data:Buffer.from(r),width:n.t256[0],height:n.t257[0]}}),encoders:pe({},"image/tiff",function(t){var e=ue.a.encodeImage(t.bitmap.data,t.bitmap.width,t.bitmap.height);return Buffer.from(e)})},{mime:de({},"image/gif",["gif"]),constants:{MIME_GIF:"image/gif"},decoders:de({},"image/gif",function(t){var e=new he.a.GifReader(t),n=Buffer.alloc(e.width*e.height*4);return e.decodeAndBlitFrameRGBA(0,n),{data:n,width:e.width,height:e.height}})});var t,e}],plugins:[function(t){var e=Me.map(function(e){var n=e(t)||{};return n.class||n.constants||(n={class:n}),n});return Jt.mergeDeep.apply(void 0,Ne(e))}]});var Re=class extends p{async convert(){const t=[];for await(const[e,n,r]of this.getData()){const i=b.fromPath(e,this.path),o=b.toPath(r,i,this.path);let a=null;for(let i=0;i<=n;i++){const o=e+(i.toString().padStart(2,"0")+".png"),s=b.fromPath(o,this.path);if(h.a.existsSync(s)){const e=await ze.read(s);null===a&&(b.log(`Create atlas ${r}`),a=await ze.create(e.getWidth(),e.getHeight()*(n+1))),a.composite(e,0,e.getHeight()*i),t.push(o)}}null!==a&&await a.writeAsync(o)}return[[v,t]]}async*getData(){const t=[["textures/items/clock_",63,"./watch_atlas.png"],["textures/items/compass_",31,"./compass_atlas.png"]];for(const e of t)yield e}};var je=class extends p{async convert(){for await(const t of this.getData()){const e=b.fromPath(t,this.path);if(h.a.existsSync(e)){b.log(`Convert bed ${t}`);const n=await ze.read(e),r=n.getWidth()/64,i=await ze.create(n.getWidth(),n.getHeight());i.composite(n.clone().crop(0,0,44*r,22*r),0,0),i.composite(n.clone().crop(0,28*r,44*r,16*r),0,22*r),i.composite(n.clone().crop(22*r,22*r,16*r,6*r),22*r,0),i.composite(n.clone().crop(50*r,0,12*r,12*r),0,38*r),i.composite(n.clone().crop(50*r,12*r,12*r,12*r),12*r,38*r),await i.writeAsync(e)}}return[]}async*getData(){const t=["textures/entity/bed/black.png","textures/entity/bed/blue.png","textures/entity/bed/brown.png","textures/entity/bed/cyan.png","textures/entity/bed/gray.png","textures/entity/bed/green.png","textures/entity/bed/light_blue.png","textures/entity/bed/lime.png","textures/entity/bed/magenta.png","textures/entity/bed/orange.png","textures/entity/bed/pink.png","textures/entity/bed/purple.png","textures/entity/bed/red.png","textures/entity/bed/silver.png","textures/entity/bed/white.png","textures/entity/bed/yellow.png"];for(const e of t)yield e}};var Fe=class extends p{async convert(){for await(const[t,e]of this.getData()){const n=b.fromPath(t,this.path),r=b.toPath(e,"",this.path);if(h.a.existsSync(n)){b.log(`Create chest front ${e}`);const t=await ze.read(n),i=t.getWidth()/64,o=await ze.create(14*i,14*i);o.composite(t.clone().crop(14*i,14*i,14*i,5*i),0,0),o.composite(t.clone().crop(14*i,34*i,14*i,9*i),0,5*i),o.composite(t.clone().crop(i,i,2*i,4*i),6*i,3*i),await o.writeAsync(r)}}return[]}async*getData(){const t=[["textures/entity/chest/normal.png","textures/blocks/chest_front.png"],["textures/entity/chest/trapped.png","textures/blocks/trapped_chest_front.png"],["textures/entity/chest/ender.png","textures/blocks/ender_chest_front.png"]];for(const e of t)yield e}};var Ue=class extends p{async convert(){for await(const[t,e]of this.getData()){const n=b.fromPath(t,this.path),r=b.toPath(e,"",this.path);if(h.a.existsSync(n)){b.log(`Create chest side ${e}`);const t=await ze.read(n),i=t.getWidth()/64,o=await ze.create(14*i,14*i);o.composite(t.clone().crop(28*i,14*i,14*i,5*i),0,0),o.composite(t.clone().crop(28*i,34*i,14*i,9*i),0,5*i),await o.writeAsync(r)}}return[]}async*getData(){const t=[["textures/entity/chest/normal.png","textures/blocks/chest_side.png"],["textures/entity/chest/ender.png","textures/blocks/ender_chest_side.png"]];for(const e of t)yield e}};var Ge=class extends p{async convert(){const t=[];for await(const[e,n]of this.getData()){const r=b.toPath(n,"",this.path);let i=null;for(const[r,o,a]of e){const e=b.fromPath(r,this.path);if(h.a.existsSync(e)){const t=await ze.read(e);null===i&&(b.log(`Colorize and overlay ${n}`),i=await ze.create(t.getWidth(),t.getHeight())),Array.isArray(o)&&o.length>=3&&t.scan(0,0,t.getWidth(),t.getHeight(),(e,n,r)=>{t.bitmap.data[r]=t.bitmap.data[r]/255*o[0],t.bitmap.data[r+1]=t.bitmap.data[r+1]/255*o[1],t.bitmap.data[r+2]=t.bitmap.data[r+2]/255*o[2]}),i.composite(t,0,0)}a&&t.push(r)}null!==i&&await i.writeAsync(r)}return[[v,t]]}async*getData(){const t=[[[["textures/models/armor/leather_1.png",[167,105,67]]],"textures/models/armor/cloth_1.png"],[[["textures/models/armor/leather_2.png",[167,105,67]]],"textures/models/armor/cloth_2.png"],[[["textures/blocks/double_plant_fern_top.png",[79,156,37]]],"textures/blocks/double_plant_fern_carried.png"],[[["textures/blocks/double_plant_grass_top.png",[79,156,37]]],"textures/blocks/double_plant_grass_carried.png"],[[["textures/blocks/fern.png",[79,156,37]]],"textures/blocks/fern_carried.png"],[[["textures/blocks/grass_top.png",[120,182,66]]],"textures/blocks/grass_carried.png"],[[["textures/blocks/leaves_acacia.png",[68,177,8]]],"textures/blocks/leaves_acacia_carried.png"],[[["textures/blocks/leaves_big_oak.png",[68,177,8]]],"textures/blocks/leaves_big_oak_carried.png"],[[["textures/blocks/leaves_birch.png",[108,151,71]]],"textures/blocks/leaves_birch_carried.png"],[[["textures/blocks/leaves_jungle.png",[70,176,37]]],"textures/blocks/leaves_jungle_carried.png"],[[["textures/blocks/leaves_oak.png",[68,177,8]]],"textures/blocks/leaves_oak_carried.png"],[[["textures/blocks/leaves_spruce.png",[98,146,98]]],"textures/blocks/leaves_spruce_carried.png"],[[["textures/blocks/tallgrass.png",[79,156,37]]],"textures/blocks/tallgrass_carried.png"],[[["textures/blocks/waterlily.png",[30,128,48]]],"textures/blocks/carried_waterlily.png"],[[["textures/blocks/water_flow_grey.png",[86,132,254]]],"textures/blocks/water_flow.png"],[[["textures/blocks/water_still_grey.png",[161,161,161]]],"textures/blocks/cauldron_water.png"],[[["textures/blocks/water_still_grey.png",[86,132,254]]],"textures/blocks/water_still.png"],[[["textures/blocks/vine.png",[30,128,48]]],"textures/blocks/vine_carried.png"],[[["textures/items/potion_overlay.png",[88,148,255]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering.png"],[[["textures/items/potion_overlay.png",[232,58,56]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_damageBoost.png"],[[["textures/items/potion_overlay.png",[255,244,92]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_fireResistance.png"],[[["textures/items/potion_overlay.png",[106,16,14]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_harm.png"],[[["textures/items/potion_overlay.png",[255,58,56]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_heal.png"],[[["textures/items/potion_overlay.png",[202,208,232]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_invisibility.png"],[[["textures/items/potion_overlay.png",[54,255,120]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_jump.png"],[[["textures/items/potion_overlay.png",[242,255,202]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_luck.png"],[[["textures/items/potion_overlay.png",[142,172,204]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_moveSlowdown.png"],[[["textures/items/potion_overlay.png",[196,255,255]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_moveSpeed.png"],[[["textures/items/potion_overlay.png",[50,50,255]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_nightVision.png"],[[["textures/items/potion_overlay.png",[124,232,78]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_poison.png"],[[["textures/items/potion_overlay.png",[255,146,255]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_regeneration.png"],[[["textures/items/potion_overlay.png",[255,255,255]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_slowFall.png"],[[["textures/items/potion_overlay.png",[186,144,156]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_turtleMaster.png"],[[["textures/items/potion_overlay.png",[72,130,242]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_waterBreathing.png"],[[["textures/items/potion_overlay.png",[114,122,114]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_weakness.png"],[[["textures/items/potion_overlay.png",[84,66,62]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_wither.png"],[[["textures/items/map_filled.png"],["textures/items/map_filled_markings.png",[82,76,68]]],"textures/items/map_mansion.png"],[[["textures/items/map_filled.png"],["textures/items/map_filled_markings.png",[67,124,111]]],"textures/items/map_monument.png"],[[["textures/items/map_filled.png"],["textures/items/map_filled_markings.png",[103,90,173]]],"textures/items/map_nautilus.png"],[[["textures/items/map_filled.png"],["textures/items/map_filled_markings.png",[131,131,131],!0]],"textures/items/map_filled.png"],[[["textures/items/potion_overlay.png",[58,130,255]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_absorption.png"],[[["textures/items/potion_overlay.png",[50,50,56]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_blindness.png"],[[["textures/items/potion_overlay.png",[134,46,118]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_confusion.png"],[[["textures/items/potion_overlay.png",[232,58,56]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_damageBoost.png"],[[["textures/items/potion_overlay.png",[118,104,36]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_digSlowdown.png"],[[["textures/items/potion_overlay.png",[255,255,106]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_digSpeed.png"],[[["textures/items/potion_overlay.png",[88,148,255]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_drinkable.png"],[[["textures/items/potion_overlay.png",[255,244,92]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_fireResistance.png"],[[["textures/items/potion_overlay.png",[106,16,14]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_harm.png"],[[["textures/items/potion_overlay.png",[255,58,56]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_heal.png"],[[["textures/items/potion_overlay.png",[255,198,56]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_healthBoost.png"],[[["textures/items/potion_overlay.png",[140,186,132]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_hunger.png"],[[["textures/items/potion_overlay.png",[202,208,232]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_invisibility.png"],[[["textures/items/potion_overlay.png",[54,255,120]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_jump.png"],[[["textures/items/potion_overlay.png",[54,255,120]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_levitation.png"],[[["textures/items/potion_overlay.png",[142,172,204]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_moveSlowdown.png"],[[["textures/items/potion_overlay.png",[196,255,255]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_moveSpeed.png"],[[["textures/items/potion_overlay.png",[50,50,255]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_nightVision.png"],[[["textures/items/potion_overlay.png",[124,232,78]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_poison.png"],[[["textures/items/potion_overlay.png",[255,146,255]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_regeneration.png"],[[["textures/items/potion_overlay.png",[242,110,92]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_resistance.png"],[[["textures/items/potion_overlay.png",[255,58,56]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_saturation.png"],[[["textures/items/potion_overlay.png",[255,255,255]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_slowFall.png"],[[["textures/items/potion_overlay.png",[186,144,156]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_turtleMaster.png"],[[["textures/items/potion_overlay.png",[72,130,242]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_waterBreathing.png"],[[["textures/items/potion_overlay.png",[114,112,114]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_weakness.png"],[[["textures/items/potion_overlay.png",[84,66,62]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_wither.png"],[[["textures/blocks/redstone_dust_cross.png"],["textures/blocks/redstone_dust_overlay.png"]],"textures/blocks/redstone_dust_cross.png"],[[["textures/blocks/redstone_dust_line.png"],["textures/blocks/redstone_dust_overlay.png",null,!0]],"textures/blocks/redstone_dust_line.png"],[[["textures/entity/pig/pig.png"],["textures/entity/saddle.png"]],"textures/entity/pig/pig_saddle.png"],[[["textures/items/potion_overlay.png",[88,184,255]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash.png"],[[["textures/items/potion_overlay.png",[58,130,255]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_absorption.png"],[[["textures/items/potion_overlay.png",[50,50,56]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_blindness.png"],[[["textures/items/potion_overlay.png",[134,46,118]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_confusion.png"],[[["textures/items/potion_overlay.png",[232,58,56]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_damageBoost.png"],[[["textures/items/potion_overlay.png",[118,104,36]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_digSlowdown.png"],[[["textures/items/potion_overlay.png",[255,255,106]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_digSpeed.png"],[[["textures/items/potion_overlay.png",[255,255,184]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_fireResistance.png"],[[["textures/items/potion_overlay.png",[212,32,28]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_harm.png"],[[["textures/items/potion_overlay.png",[255,116,112]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_heal.png"],[[["textures/items/potion_overlay.png",[255,198,56]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_healthBoost.png"],[[["textures/items/potion_overlay.png",[140,186,132]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_hunger.png"],[[["textures/items/potion_overlay.png",[202,208,232]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_invisibility.png"],[[["textures/items/potion_overlay.png",[54,255,120]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_jump.png"],[[["textures/items/potion_overlay.png",[54,255,120]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_levitation.png"],[[["textures/items/potion_overlay.png",[142,172,204]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_moveSlowdown.png"],[[["textures/items/potion_overlay.png",[196,255,255]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_moveSpeed.png"],[[["textures/items/potion_overlay.png",[50,50,255]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_nightVision.png"],[[["textures/items/potion_overlay.png",[124,232,78]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_poison.png"],[[["textures/items/potion_overlay.png",[255,146,255]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_regeneration.png"],[[["textures/items/potion_overlay.png",[242,110,92]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_resistance.png"],[[["textures/items/potion_overlay.png",[255,58,56]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_saturation.png"],[[["textures/items/potion_overlay.png",[255,255,255]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_slowFall.png"],[[["textures/items/potion_overlay.png",[186,144,156]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_turtleMaster.png"],[[["textures/items/potion_overlay.png",[72,130,242]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_waterBreathing.png"],[[["textures/items/potion_overlay.png",[114,122,114]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_weakness.png"],[[["textures/items/potion_overlay.png",[84,66,62]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_wither.png"],[[["textures/items/spawn_egg.png",[65,53,41]],["textures/items/spawn_egg_overlay.png",[13,13,13]]],"textures/items/egg_bat.png"],[[["textures/items/spawn_egg.png",[211,153,1]],["textures/items/spawn_egg_overlay.png",[226,220,112]]],"textures/items/egg_blaze.png"],[[["textures/items/spawn_egg.png",[239,200,142]],["textures/items/spawn_egg_overlay.png",[135,101,74]]],"textures/items/egg_cat.png"],[[["textures/items/spawn_egg.png",[10,57,67]],["textures/items/spawn_egg_overlay.png",[149,12,12]]],"textures/items/egg_cave_spider.png"],[[["textures/items/spawn_egg.png",[138,138,138]],["textures/items/spawn_egg_overlay.png",[226,0,0]]],"textures/items/egg_chicken.png"],[[["textures/items/spawn_egg.png",[205,90,18]],["textures/items/spawn_egg_overlay.png",[226,221,212]]],"textures/items/egg_clownfish.png"],[[["textures/items/spawn_egg.png",[166,143,91]],["textures/items/spawn_egg_overlay.png",[203,174,123]]],"textures/items/egg_cod.png"],[[["textures/items/spawn_egg.png",[58,46,33]],["textures/items/spawn_egg_overlay.png",[143,143,143]]],"textures/items/egg_cow.png"],[[["textures/items/spawn_egg.png",[11,143,9]],["textures/items/spawn_egg_overlay.png",[0,0,0]]],"textures/items/egg_creeper.png"],[[["textures/items/spawn_egg.png",[29,51,66]],["textures/items/spawn_egg_overlay.png",[221,221,221]]],"textures/items/egg_dolphin.png"],[[["textures/items/spawn_egg.png",[71,59,49]],["textures/items/spawn_egg_overlay.png",[119,104,90]]],"textures/items/egg_donkey.png"],[[["textures/items/spawn_egg.png",[123,207,185]],["textures/items/spawn_egg_overlay.png",[107,138,90]]],"textures/items/egg_drowned.png"],[[["textures/items/spawn_egg.png",[177,175,160]],["textures/items/spawn_egg_overlay.png",[103,105,130]]],"textures/items/egg_elderguardian.png"],[[["textures/items/spawn_egg.png",[19,19,19]],["textures/items/spawn_egg_overlay.png",[19,19,19]]],"textures/items/egg_enderman.png"],[[["textures/items/spawn_egg.png",[19,19,19]],["textures/items/spawn_egg_overlay.png",[97,97,97]]],"textures/items/egg_endermite.png"],[[["textures/items/spawn_egg.png",[128,133,133]],["textures/items/spawn_egg_overlay.png",[27,25,23]]],"textures/items/egg_evoker.png"],[[["textures/items/spawn_egg.png",[166,143,91]],["textures/items/spawn_egg_overlay.png",[203,174,123]]],"textures/items/egg_fish.png"],[[["textures/items/spawn_egg.png",[214,214,214]],["textures/items/spawn_egg_overlay.png",[167,167,167]]],"textures/items/egg_ghast.png"],[[["textures/items/spawn_egg.png",[77,112,98]],["textures/items/spawn_egg_overlay.png",[214,111,43]]],"textures/items/egg_guardian.png"],[[["textures/items/spawn_egg.png",[165,136,107]],["textures/items/spawn_egg_overlay.png",[211,203,0]]],"textures/items/egg_horse.png"],[[["textures/items/spawn_egg.png",[102,99,83]],["textures/items/spawn_egg_overlay.png",[197,191,127]]],"textures/items/egg_husk.png"],[[["textures/items/spawn_egg.png",[45,0,0]],["textures/items/spawn_egg_overlay.png",[223,223,0]]],"textures/items/egg_lava_slime.png"],[[["textures/items/spawn_egg.png",[165,136,107]],["textures/items/spawn_egg_overlay.png",[136,84,57]]],"textures/items/egg_llama.png"],[[["textures/items/spawn_egg.png"],["textures/items/spawn_egg_overlay.png"]],"textures/items/egg_mask.png"],[[["textures/items/spawn_egg.png",[23,2,0]],["textures/items/spawn_egg_overlay.png",[72,45,26]]],"textures/items/egg_mule.png"],[[["textures/items/spawn_egg.png",[137,13,14]],["textures/items/spawn_egg_overlay.png",[162,162,162]]],"textures/items/egg_mushroomcow.png"],[[["textures/items/spawn_egg.png"],["textures/items/spawn_egg_overlay.png"]],"textures/items/egg_null.png"],[[["textures/items/spawn_egg.png",[205,191,107]],["textures/items/spawn_egg_overlay.png",[76,60,46]]],"textures/items/egg_ocelot.png"],[[["textures/items/spawn_egg.png",[217,217,215]],["textures/items/spawn_egg_overlay.png",[19,19,25]]],"textures/items/egg_panda.png"],[[["textures/items/spawn_egg.png",[11,143,9]],["textures/items/spawn_egg_overlay.png",[226,0,0]]],"textures/items/egg_parrot.png"],[[["textures/items/spawn_egg.png",[58,70,119]],["textures/items/spawn_egg_overlay.png",[121,226,0]]],"textures/items/egg_phantom.png"],[[["textures/items/spawn_egg.png",[206,142,139]],["textures/items/spawn_egg_overlay.png",[194,88,84]]],"textures/items/egg_pig.png"],[[["textures/items/spawn_egg.png",[201,126,126]],["textures/items/spawn_egg_overlay.png",[67,100,36]]],"textures/items/egg_pigzombie.png"],[[["textures/items/spawn_egg.png",[208,208,208]],["textures/items/spawn_egg_overlay.png",[132,132,128]]],"textures/items/egg_polarbear.png"],[[["textures/items/spawn_egg.png",[211,153,1]],["textures/items/spawn_egg_overlay.png",[49,173,214]]],"textures/items/egg_pufferfish.png"],[[["textures/items/spawn_egg.png",[131,82,55]],["textures/items/spawn_egg_overlay.png",[102,64,43]]],"textures/items/egg_rabbit.png"],[[["textures/items/spawn_egg.png",[137,13,14]],["textures/items/spawn_egg_overlay.png",[12,117,103]]],"textures/items/egg_salmon.png"],[[["textures/items/spawn_egg.png",[198,198,198]],["textures/items/spawn_egg_overlay.png",[226,160,160]]],"textures/items/egg_sheep.png"],[[["textures/items/spawn_egg.png",[127,88,127]],["textures/items/spawn_egg_overlay.png",[68,50,73]]],"textures/items/egg_shulker.png"],[[["textures/items/spawn_egg.png",[94,94,94]],["textures/items/spawn_egg_overlay.png",[43,43,43]]],"textures/items/egg_silverfish.png"],[[["textures/items/spawn_egg.png",[166,166,166]],["textures/items/spawn_egg_overlay.png",[65,65,65]]],"textures/items/egg_skeleton.png"],[[["textures/items/spawn_egg.png",[89,89,89]],["textures/items/spawn_egg_overlay.png",[203,203,191]]],"textures/items/egg_skeletonhorse.png"],[[["textures/items/spawn_egg.png",[70,137,53]],["textures/items/spawn_egg_overlay.png",[112,169,97]]],"textures/items/egg_slime.png"],[[["textures/items/spawn_egg.png",[45,39,33]],["textures/items/spawn_egg_overlay.png",[149,12,12]]],"textures/items/egg_spider.png"],[[["textures/items/spawn_egg.png",[29,51,66]],["textures/items/spawn_egg_overlay.png",[99,121,136]]],"textures/items/egg_squid.png"],[[["textures/items/spawn_egg.png",[82,100,101]],["textures/items/spawn_egg_overlay.png",[193,206,205]]],"textures/items/egg_stray.png"],[[["textures/items/spawn_egg.png",[198,198,198]],["textures/items/spawn_egg_overlay.png",[0,155,155]]],"textures/items/egg_turtle.png"],[[["textures/items/spawn_egg.png",[105,124,141]],["textures/items/spawn_egg_overlay.png",[206,210,214]]],"textures/items/egg_vex.png"],[[["textures/items/spawn_egg.png",[74,52,44]],["textures/items/spawn_egg_overlay.png",[167,123,101]]],"textures/items/egg_villager.png"],[[["textures/items/spawn_egg.png",[128,133,133]],["textures/items/spawn_egg_overlay.png",[35,83,86]]],"textures/items/egg_vindicator.png"],[[["textures/items/spawn_egg.png",[55,84,130]],["textures/items/spawn_egg_overlay.png",[204,142,41]]],"textures/items/egg_wanderingtrader.png"],[[["textures/items/spawn_egg.png",[45,0,0]],["textures/items/spawn_egg_overlay.png",[72,142,55]]],"textures/items/egg_witch.png"],[[["textures/items/spawn_egg.png",[17,17,17]],["textures/items/spawn_egg_overlay.png",[63,68,68]]],"textures/items/egg_wither.png"],[[["textures/items/spawn_egg.png",[185,181,181]],["textures/items/spawn_egg_overlay.png",[183,155,133]]],"textures/items/egg_wolf.png"],[[["textures/items/spawn_egg.png",[0,150,150]],["textures/items/spawn_egg_overlay.png",[107,138,90]]],"textures/items/egg_zombie.png"],[[["textures/items/spawn_egg.png",[36,77,47]],["textures/items/spawn_egg_overlay.png",[117,184,113]]],"textures/items/egg_zombiehorse.png"],[[["textures/items/spawn_egg.png",[74,52,44]],["textures/items/spawn_egg_overlay.png",[107,138,90]]],"textures/items/egg_zombievillager.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png"]],"textures/items/tipped_arrow.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[214,144,54]]],"textures/items/tipped_arrow_fireres.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[65,10,9]]],"textures/items/tipped_arrow_harm.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[232,34,33]]],"textures/items/tipped_arrow_healing.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[123,127,141]]],"textures/items/tipped_arrow_invisibility.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[33,247,74]]],"textures/items/tipped_arrow_leaping.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[49,148,0]]],"textures/items/tipped_arrow_luck.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[30,30,156]]],"textures/items/tipped_arrow_nightvision.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[74,138,46]]],"textures/items/tipped_arrow_poison.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[192,86,161]]],"textures/items/tipped_arrow_regen.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[87,105,125]]],"textures/items/tipped_arrow_slow.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[247,232,202]]],"textures/items/tipped_arrow_slowfalling.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[142,35,34]]],"textures/items/tipped_arrow_strength.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[116,164,186]]],"textures/items/tipped_arrow_swift.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[113,88,96]]],"textures/items/tipped_arrow_turtlemaster.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[45,79,148]]],"textures/items/tipped_arrow_waterbreathing.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[70,75,70]]],"textures/items/tipped_arrow_weakness.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[50,39,36]]],"textures/items/tipped_arrow_wither.png"]];for(const e of t)yield e}};var He=class extends p{async convert(){for await(const[t,e]of this.getData()){const n=b.fromPath(t,this.path),r=b.toPath(e,n,this.path);h.a.existsSync(n)&&(b.log(`Copy ${t} to ${e}`),await h.a.copy(n,r))}return[]}async*getData(){const t=[["textures/entity/cat/redtabby.png","./red.png"],["textures/entity/cat/siamesecat.png","./siamese.png"],["textures/entity/cat/tuxedo.png","./blackcat.png"],["textures/blocks/command_block_back_mipmap.png","./command_block.png"],["textures/blocks/fire_0.png","textures/flame_atlas.png"],["textures/blocks/kelp_a.tga","./kelp_b.tga"],["textures/blocks/kelp_a.tga","./kelp_c.tga"],["textures/blocks/kelp_a.tga","./kelp_d.tga"],["textures/blocks/kelp_top.tga","./kelp_top_bulb.tga"],["textures/blocks/lever.png","textures/items/lever.png"],["textures/entity/llama/llama_creamy.png","./llama.png"],["textures/items/skull_banner_pattern.png","./banner_pattern.png"],["textures/ui/sign.png","textures/gui/sign.png"],["textures/entity/creeper/creeper.png","textures/entity/skulls/creeper.png"],["textures/entity/skeleton/skeleton.png","textures/entity/skulls/skeleton.png"],["textures/entity/skeleton/wither_skeleton.png","textures/entity/skulls/wither_skeleton.png"],["textures/entity/zombie/zombie.png","textures/entity/skulls/zombie.png"],["textures/blocks/brick.png","textures/ui/icon_recipe_construction.png"],["textures/blocks/grass_side_carried.png","textures/ui/icon_recipe_nature.png"],["textures/items/bed_red.png","textures/ui/icon_recipe_item.png"],["textures/items/diamond_sword.png","textures/ui/icon_recipe_equipment.png"],["bedrock_textures","./textures"]];for(const e of t)yield e}};var We=class extends p{async convert(){const t=[];for await(const[e,n,r]of this.getData()){const i=b.fromPath(e,this.path),o=b.toPath(n,i,this.path),a=b.toPath(r,i,this.path);if(h.a.existsSync(i)&&h.a.existsSync(o)){b.log("Convert drowned");const t=await ze.read(i),e=await ze.read(o),n=t.getWidth()/64;t.composite(e.clone().crop(0,0,32*n,16*n),32*n,0),t.composite(e.clone().crop(0,16*n,64*n,16*n),0,32*n),t.composite(e.clone().crop(16*n,48*n,16*n,16*n),0,48*n),t.composite(e.clone().crop(32*n,48*n,16*n,16*n),48*n,48*n),await t.writeAsync(a)}t.push(n)}return[[v,t]]}async*getData(){yield["textures/entity/zombie/drowned.png","textures/entity/zombie/drowned_outer_layer.png","./drowned.png"]}};var qe=class extends p{async convert(){for await(const[t,e]of this.getData()){const n=b.fromPath(t,this.path),r=b.toPath(e,n,this.path);if(h.a.existsSync(n)){b.log("Convert fishhook");const t=await ze.read(n),e=t.getWidth()/8,i=await ze.create(24*e,3*e);i.composite(t.clone().crop(3*e,e,3*e,e),0,0),i.composite(t.clone().crop(3*e,e,e,e),0,e),i.composite(t.clone().crop(2*e,6*e,e,e),e,e),i.composite(t.clone().crop(3*e,e,e,e),2*e,e),i.composite(t.clone().crop(3*e,e,3*e,e),0,2*e),i.composite(t.clone().crop(3*e,e,3*e,e),3*e,0),i.composite(t.clone().crop(3*e,e,e,e),3*e,e),i.composite(t.clone().crop(2*e,6*e,e,e),4*e,e),i.composite(t.clone().crop(3*e,e,e,e),5*e,e),i.composite(t.clone().crop(3*e,e,3*e,e),3*e,2*e),i.composite(t.clone().crop(3*e,e,3*e,3*e),6*e,0),i.composite(t.clone().crop(3*e,e,3*e,3*e),9*e,0),i.composite(t.clone().crop(3*e,e,3*e,3*e),12*e,0),i.composite(t.clone().crop(3*e,e,3*e,3*e),15*e,0),i.composite(t.clone().crop(2*e,5*e,3*e,3*e),18*e,0),i.composite(t.clone().crop(2*e,6*e,e,e),22*e,2*e),await i.writeAsync(r)}}return[]}async*getData(){yield["textures/entity/fishhook.png","./fishhook.png"]}},Ye=n(64),Ve=n.n(Ye);var Ze=class extends p{async convert(){const t=[];for await(const[e,n,r,i]of this.getData()){b.log(`Create metadata ${n}`);const o=b.fromPath(e,this.path),a=b.toPath(n,o,this.path),s=b.toPath(r,o,this.path);let c="";h.a.existsSync(s)?(c=await h.a.readFile(s,"utf8"),t.push(r)):c=Ve()();const l=b.toPath(i,o,this.path);let u="";h.a.existsSync(l)?(u=await h.a.readFile(l,"utf8"),t.push(i)):u=Ve()();const p=JSON.parse(await h.a.readFile(o,"utf8")),f={format_version:1,header:{description:p.pack.description,name:await this.input.name(),platform_locked:!1,uuid:c,version:[0,0,1]},modules:[{description:p.pack.description,type:"resources",uuid:u,version:[0,0,1]}]};await h.a.writeFile(a,JSON.stringify(f,null,2),"utf8"),t.push(e)}return[[v,t]]}async*getData(){yield["pack.mcmeta","./manifest.json","bedrock_uuid_header","bedrock_uuid_module"]}};var $e=class extends p{async convert(){for await(const[t,e]of this.getData()){const n=b.fromPath(t,this.path),r=b.toPath(e,n,this.path);if(h.a.existsSync(n)){b.log(`Create opaque ${e}`);const t=await ze.read(n),i=await ze.create(t.getWidth(),t.getHeight(),"#000000");i.composite(t,0,0),await i.writeAsync(r)}}return[]}async*getData(){const t=[["textures/blocks/leaves_acacia.png","./leaves_acacia_opaque.png"],["textures/blocks/leaves_big_oak.png","./leaves_big_oak_opaque.png"],["textures/blocks/leaves_birch.png","./leaves_birch_opaque.png"],["textures/blocks/leaves_jungle.png","./leaves_jungle_opaque.png"],["textures/blocks/leaves_oak.png","./leaves_oak_opaque.png"],["textures/blocks/leaves_spruce.png","./leaves_spruce_opaque.png"]];for(const e of t)yield e}};var Xe=class extends p{async convert(){const t=[];for await(const[e,n,r,i,o]of this.getData()){const a=b.fromPath(e,this.path),s=b.toPath(n,a,this.path),c=b.toPath(r,a,this.path);if(h.a.existsSync(a)&&h.a.existsSync(s)){b.log(`Create translated overlay ${r}`);const t=await ze.read(a),e=await ze.read(s);t.scan(0,0,t.getWidth(),t.getHeight(),(n,r,o)=>{(i?255===e.bitmap.data[o+3]:0===t.bitmap.data[o+3])&&(t.bitmap.data[o]=e.bitmap.data[o],t.bitmap.data[o+1]=e.bitmap.data[o+1],t.bitmap.data[o+2]=e.bitmap.data[o+2],t.bitmap.data[o+3]=Math.min(1,e.bitmap.data[o+3]))}),await t.writeAsync(c)}o||t.push(b.toPath(n,e,""))}return[[v,t]]}async*getData(){const t=[["textures/entity/cat/graytabby_tame.png","./allblackcat.png","./allblackcat_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./britishshorthair.png","./britishshorthair_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./calico.png","./calico_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./jellie.png","./jellie_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./ocelot.png","./ocelot_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./persian.png","./persian_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./ragdoll.png","./ragdoll_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./redtabby.png","./redtabby_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./siamesecat.png","./siamesecat_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./tabby.png","./tabby_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./tuxedo.png","./tuxedo_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./white.png","./white_tame.png",!1,!0],["textures/entity/enderman/enderman.png","./enderman_eyes.png","./enderman.png",!0],["textures/items/fireworks_charge.png","./firework_star.png","./fireworks_charge.png",!1],["textures/blocks/grass_side.png","./grass_side_carried.png","./grass_side.png",!1,!0],["textures/items/leather_boots.png","./leather_boots_overlay.png","./leather_boots.png",!0],["textures/items/leather_chestplate.png","./leather_chestplate_overlay.png","./leather_chestplate.png",!0],["textures/items/leather_helmet.png","./leather_helmet_overlay.png","./leather_helmet.png",!0],["textures/items/leather_leggings.png","./leather_leggings_overlay.png","./leather_leggings.png",!0],["textures/models/armor/leather_1.png","./leather_1_overlay.png","./leather_1.png",!0],["textures/models/armor/leather_2.png","./leather_2_overlay.png","./leather_2.png",!0],["textures/entity/phantom.png","./phantom_eyes.png","./phantom.png",!0],["textures/entity/spider/cave_spider.png","textures/entity/spider_eyes.png","./cave_spider.png",!0,!0],["textures/entity/spider/spider.png","textures/entity/spider_eyes.png","./spider.png",!0],["textures/entity/wolf/wolf_collar.png","./wolf_tame.png","./wolf_tame.png",!1,!0]];for(const e of t)yield e}};var Qe=class extends p{async convert(){for await(const[t,e,n,r]of this.getData()){const i=b.fromPath(t,this.path),o=b.fromPath(e,this.path),a=b.fromPath(n,this.path),s=b.toPath(r,"",this.path);if(h.a.existsSync(i)&&h.a.existsSync(o)&&h.a.existsSync(a)){b.log(`Create piston arm ${r}`);const t=await ze.read(i),e=await ze.read(o),n=await ze.read(a),c=t.getWidth()/16,l=await ze.create(128*c,32*c);l.composite(t,16*c,0),l.composite(e,32*c,0),n.crop(0,0,n.getWidth(),4*c),l.composite(n,0,16*c),l.composite(n,16*c,16*c),l.composite(n,32*c,16*c),l.composite(n,48*c,16*c);const u=n.clone().rotate(-90).crop(1,0,n.getHeight(),8*c);l.composite(u,64*c,4*c),l.composite(u,68*c,4*c),l.composite(u,72*c,4*c),l.composite(u,76*c,4*c);const p=u.clone().crop(0,u.getHeight()-c,u.getWidth(),c),f=n.clone().crop(7*c,0,c,n.getHeight()),h=u.clone().crop(0,2*c,u.getWidth(),4*c);l.composite(p,70*c,18*c),l.composite(p,74*c,18*c),l.composite(p,78*c,18*c),l.composite(f,70*c,19*c),l.composite(f,75*c,19*c),l.composite(f,76*c,19*c),l.composite(f,81*c,19*c),l.composite(p,70*c,23*c),l.composite(p,74*c,23*c),l.composite(p,78*c,23*c),l.composite(p,64*c,24*c),l.composite(p,68*c,24*c),l.composite(p,72*c,24*c),l.composite(p,76*c,24*c),l.composite(p,80*c,24*c),l.composite(p,84*c,24*c),l.composite(f,64*c,25*c),l.composite(f,64*c,29*c),l.composite(f,69*c,25*c),l.composite(f,69*c,29*c),l.composite(f,70*c,25*c),l.composite(f,70*c,29*c),l.composite(f,75*c,25*c),l.composite(f,75*c,29*c),l.composite(f,76*c,25*c),l.composite(f,76*c,29*c),l.composite(f,81*c,25*c),l.composite(f,81*c,29*c),l.composite(f,82*c,25*c),l.composite(f,82*c,29*c),l.composite(f,87*c,25*c),l.composite(f,87*c,29*c),l.composite(h,65*c,25*c),l.composite(h,65*c,29*c),l.composite(h,71*c,25*c),l.composite(h,71*c,29*c),l.composite(h,77*c,25*c),l.composite(h,77*c,29*c),l.composite(h,83*c,25*c),l.composite(h,83*c,29*c),await l.writeAsync(s)}}return[]}async*getData(){const t=[["textures/blocks/piston_top_normal.png","textures/blocks/piston_top_normal.png","textures/blocks/piston_side.png","textures/entity/pistonarm/pistonArm.png"],["textures/blocks/piston_top_sticky.png","textures/blocks/piston_top_normal.png","textures/blocks/piston_side.png","textures/entity/pistonarm/pistonArmSticky.png"]];for(const e of t)yield e}};var Je=class extends p{async convert(){for await(const[t,e,n,r,i,o,a,s]of this.getData()){const c=b.fromPath(t,this.path),l=b.toPath(a,c,this.path);if(h.a.existsSync(c)){b.log(`Create placeholder ${a}`);let t=await ze.read(c);const u=t.getWidth()/o;if(t.crop(e*u,n*u,r*u,i*u),!s){const e=Math.max(r,i);t=(await ze.create(e*u,e*u)).composite(t,(e*u-r*u)/2,(e*u-i*u)/2)}await t.writeAsync(l)}}return[]}async*getData(){const t=[["textures/entity/bed/red.png",2,6,14,14,64,"textures/blocks/bed_head_top.png"],["textures/entity/bed/red.png",0,6,6,14,64,"textures/blocks/bed_head_side.png"],["textures/entity/bed/red.png",6,0,14,6,64,"textures/blocks/bed_head_end.png"],["textures/entity/bed/red.png",2,20,14,14,64,"textures/blocks/bed_feet_top.png"],["textures/entity/bed/red.png",22,0,14,6,64,"textures/blocks/bed_feet_end.png"],["textures/entity/bed/red.png",0,20,6,14,64,"textures/blocks/bed_feet_side.png"],["textures/entity/bed/black.png",6,6,16,32,64,"textures/items/bed_black.png"],["textures/entity/bed/blue.png",6,6,16,32,64,"textures/items/bed_blue.png"],["textures/entity/bed/brown.png",6,6,16,32,64,"textures/items/bed_brown.png"],["textures/entity/bed/cyan.png",6,6,16,32,64,"textures/items/bed_cyan.png"],["textures/entity/bed/gray.png",6,6,16,32,64,"textures/items/bed_gray.png"],["textures/entity/bed/green.png",6,6,16,32,64,"textures/items/bed_green.png"],["textures/entity/bed/light_blue.png",6,6,16,32,64,"textures/items/bed_light_blue.png"],["textures/entity/bed/lime.png",6,6,16,32,64,"textures/items/bed_lime.png"],["textures/entity/bed/magenta.png",6,6,16,32,64,"textures/items/bed_magenta.png"],["textures/entity/bed/orange.png",6,6,16,32,64,"textures/items/bed_orange.png"],["textures/entity/bed/pink.png",6,6,16,32,64,"textures/items/bed_pink.png"],["textures/entity/bed/purple.png",6,6,16,32,64,"textures/items/bed_purple.png"],["textures/entity/bed/red.png",6,6,16,32,64,"textures/items/bed_red.png"],["textures/entity/bed/silver.png",6,6,16,32,64,"textures/items/bed_silver.png"],["textures/entity/bed/white.png",6,6,16,32,64,"textures/items/bed_white.png"],["textures/entity/bed/yellow.png",6,6,16,32,64,"textures/items/bed_yellow.png"],["textures/entity/chest/normal.png",14,0,14,14,64,"textures/blocks/chest_top.png"],["textures/entity/chest/ender.png",14,0,14,14,64,"textures/blocks/ender_chest_top.png"],["textures/blocks/chain_command_block_back.png",0,0,16,16,16,"./chain_command_block_back_mipmap.png"],["textures/blocks/chain_command_block_conditional.png",0,0,16,16,16,"./chain_command_block_conditional_mipmap.png"],["textures/blocks/chain_command_block_front.png",0,0,16,16,16,"./chain_command_block_front_mipmap.png"],["textures/blocks/chain_command_block_side.png",0,0,16,16,16,"./chain_command_block_side_mipmap.png"],["textures/blocks/command_block_back.png",0,0,16,16,16,"./command_block_back_mipmap.png"],["textures/blocks/command_block_conditional.png",0,0,16,16,16,"./command_block_conditional_mipmap.png"],["textures/blocks/command_block_front.png",0,0,16,16,16,"./command_block_front_mipmap.png"],["textures/blocks/command_block_side.png",0,0,16,16,16,"./command_block_side_mipmap.png"],["textures/blocks/repeating_command_block_back.png",0,0,16,16,16,"./repeating_command_block_back_mipmap.png"],["textures/blocks/repeating_command_block_conditional.png",0,0,16,16,16,"./repeating_command_block_conditional_mipmap.png"],["textures/blocks/repeating_command_block_front.png",0,0,16,16,16,"./repeating_command_block_front_mipmap.png"],["textures/blocks/repeating_command_block_side.png",0,0,16,16,16,"./repeating_command_block_side_mipmap.png"],["textures/items/compass_atlas.png",0,0,16,16,16,"./compass_item.png"],["textures/items/watch_atlas.png",0,0,16,16,16,"./clock_item.png"],["textures/entity/sign_acacia.png",2,2,24,12,64,"textures/ui/sign_acacia.png",!0],["textures/entity/sign_birch.png",2,2,24,12,64,"textures/ui/sign_birch.png",!0],["textures/entity/sign_darkoak.png",2,2,24,12,64,"textures/ui/sign_darkoak.png",!0],["textures/entity/sign_jungle.png",2,2,24,12,64,"textures/ui/sign_jungle.png",!0],["textures/entity/sign.png",2,2,24,12,64,"textures/ui/sign.png",!0],["textures/entity/sign_spruce.png",2,2,24,12,64,"textures/ui/sign_spruce.png",!0],["textures/blocks/cauldron_water.png",0,0,16,16,16,"./cauldron_water_placeholder.png"],["textures/blocks/fire_0.png",0,0,16,16,16,"./fire_0_placeholder.png"],["textures/blocks/fire_1.png",0,0,16,16,16,"./fire_1_placeholder.png"],["textures/blocks/lava_still.png",0,0,16,16,16,"./lava_placeholder.png"],["textures/blocks/portal.png",0,0,16,16,16,"./portal_placeholder.png"],["textures/blocks/water_still.png",0,0,16,16,16,"./water_placeholder.png"],["textures/entity/pig/pigzombie.png",0,0,64,32,64,"./pigzombie.png",!0],["textures/entity/zombie/husk.png",0,0,64,32,64,"./husk.png",!0],["textures/entity/zombie/zombie.png",0,0,64,32,64,"./zombie.png",!0]];for(const e of t)yield e}},Ke=n(128),tn=n.n(Ke);async function en(...t){for(const e of t)nn.push(e)}const nn=[[Ze,[]],[class extends p{async convert(){for await(const[t,e]of this.getData()){const n=b.fromPath(t,this.path),r=b.toPath(e,n,this.path);h.a.existsSync(n)&&(b.log(`Rename ${t} to ${e}`),h.a.existsSync(g.a.dirname(r))||await h.a.mkdir(g.a.dirname(r)),await h.a.rename(n,r))}return[]}async*getData(){const t=[["pack.png","./pack_icon.png"],["assets/minecraft/textures","textures"],["textures/block","./blocks"],["textures/item","./items"],["textures/blocks/andesite.png","./stone_andesite.png"],["textures/blocks/polished_andesite.png","./stone_andesite_smooth.png"],["textures/blocks/anvil.png","./anvil_base.png"],["textures/blocks/anvil_top.png","./anvil_top_damaged_0.png"],["textures/blocks/chipped_anvil_top.png","./anvil_top_damaged_1.png"],["textures/blocks/damaged_anvil_top.png","./anvil_top_damaged_2.png"],["textures/items/golden_apple.png","./apple_golden.png"],["textures/entity/armorstand/wood.png","textures/entity/armor_stand.png"],["textures/entity/elytra.png","textures/models/armor/elytra.png"],["textures/items/golden_axe.png","./gold_axe.png"],["textures/items/golden_boots.png","./gold_boots.png"],["textures/items/golden_chestplate.png","./gold_chestplate.png"],["textures/items/golden_helmet.png","./gold_helmet.png"],["textures/items/golden_hoe.png","./gold_hoe.png"],["textures/items/golden_horse_armor.png","./gold_horse_armor.png"],["textures/items/golden_leggings.png","./gold_leggings.png"],["textures/items/golden_pickaxe.png","./gold_pickaxe.png"],["textures/items/golden_shovel.png","./gold_shovel.png"],["textures/items/golden_sword.png","./gold_sword.png"],["textures/items/wooden_axe.png","./wood_axe.png"],["textures/items/wooden_hoe.png","./wood_hoe.png"],["textures/items/wooden_pickaxe.png","./wood_pickaxe.png"],["textures/items/wooden_shovel.png","./wood_shovel.png"],["textures/items/wooden_sword.png","./wood_sword.png"],["textures/models/armor/chainmail_layer_1.png","./chain_1.png"],["textures/models/armor/chainmail_layer_2.png","./chain_2.png"],["textures/models/armor/diamond_layer_1.png","./diamond_1.png"],["textures/models/armor/diamond_layer_2.png","./diamond_2.png"],["textures/models/armor/gold_layer_1.png","./gold_1.png"],["textures/models/armor/gold_layer_2.png","./gold_2.png"],["textures/models/armor/iron_layer_1.png","./iron_1.png"],["textures/models/armor/iron_layer_2.png","./iron_2.png"],["textures/models/armor/leather_layer_1.png","./leather_1.png"],["textures/models/armor/leather_layer_1_overlay.png","./leather_1_overlay.png"],["textures/models/armor/leather_layer_2.png","./leather_2.png"],["textures/models/armor/leather_layer_2_overlay.png","./leather_2_overlay.png"],["textures/models/armor/turtle_layer_1.png","./turtle_1.png"],["textures/entity/arrow.png","./arrows.png"],["textures/blocks/bamboo_large_leaves.png","./bamboo_leaf.png"],["textures/blocks/bamboo_small_leaves.png","./bamboo_small_leaf.png"],["textures/blocks/bamboo_stage0.png","./bamboo_sapling.png"],["textures/blocks/bamboo_stalk.png","./bamboo_stem.png"],["textures/items/barrier.png","textures/blocks/barrier.png"],["textures/entity/bear/polarbear.png","textures/entity/polarbear.png"],["textures/entity/bed/light_gray.png","./silver.png"],["textures/blocks/beetroots_stage0.png","./beetroots_stage_0.png"],["textures/blocks/beetroots_stage1.png","./beetroots_stage_1.png"],["textures/blocks/beetroots_stage2.png","./beetroots_stage_2.png"],["textures/blocks/beetroots_stage3.png","./beetroots_stage_3.png"],["textures/entity/bell/bell_body.png","./bell.png"],["textures/items/bell.png","./villagebell.png"],["textures/entity/boat/acacia.png","./boat_acacia.png"],["textures/entity/boat/birch.png","./boat_birch.png"],["textures/entity/boat/dark_oak.png","./boat_darkoak.png"],["textures/entity/boat/jungle.png","./boat_jungle.png"],["textures/entity/boat/oak.png","./boat_oak.png"],["textures/entity/boat/spruce.png","./boat_spruce.png"],["textures/items/acacia_boat.png","./boat_acacia.png"],["textures/items/birch_boat.png","./boat_birch.png"],["textures/items/dark_oak_boat.png","./boat_darkoak.png"],["textures/items/jungle_boat.png","./boat_jungle.png"],["textures/items/oak_boat.png","./boat_oak.png"],["textures/items/spruce_boat.png","./boat_spruce.png"],["textures/items/bone_meal.png","./dye_powder_white.png"],["textures/items/book.png","./book_normal.png"],["textures/items/enchanted_book.png","./book_enchanted.png"],["textures/items/knowledge_book.png","./book_knowledge.png"],["textures/items/writable_book.png","./book_writable.png"],["textures/items/written_book.png","./book_written.png"],["textures/items/bow.png","./bow_standby.png"],["textures/blocks/bricks.png","./brick.png"],["textures/items/bucket.png","./bucket_empty.png"],["textures/items/cod_bucket.png","./bucket_cod.png"],["textures/items/lava_bucket.png","./bucket_lava.png"],["textures/items/milk_bucket.png","./bucket_milk.png"],["textures/items/pufferfish_bucket.png","./bucket_pufferfish.png"],["textures/items/salmon_bucket.png","./bucket_salmon.png"],["textures/items/tropical_fish_bucket.png","./bucket_tropical.png"],["textures/items/water_bucket.png","./bucket_water.png"],["textures/blocks/campfire_fire.png","./campfire.png"],["textures/blocks/carrots_stage0.png","./carrots_stage_0.png"],["textures/blocks/carrots_stage1.png","./carrots_stage_1.png"],["textures/blocks/carrots_stage2.png","./carrots_stage_2.png"],["textures/blocks/carrots_stage3.png","./carrots_stage_3.png"],["textures/items/golden_carrot.png","./carrot_golden.png"],["textures/entity/cat/all_black.png","./allblackcat.png"],["textures/entity/cat/black.png","./tuxedo.png"],["textures/entity/cat/british_shorthair.png","./britishshorthair.png"],["textures/entity/cat/cat_collar.png","./graytabby_tame.png"],["textures/entity/cat/red.png","./redtabby.png"],["textures/entity/cat/siamese.png","./siamesecat.png"],["textures/entity/chest/normal_double.png","./double_normal.png"],["textures/items/popped_chorus_fruit.png","./chorus_fruit_popped.png"],["textures/blocks/mossy_cobblestone.png","./cobblestone_mossy.png"],["textures/blocks/cobweb.png","./web.png"],["textures/blocks/cocoa_stage0.png","./cocoa_stage_0.png"],["textures/blocks/cocoa_stage1.png","./cocoa_stage_1.png"],["textures/blocks/cocoa_stage2.png","./cocoa_stage_2.png"],["textures/items/cocoa_beans.png","./dye_powder_brown.png"],["textures/blocks/comparator.png","./comparator_off.png"],["textures/blocks/composter_compost.png","./compost.png"],["textures/blocks/composter_ready.png","./compost_ready.png"],["textures/blocks/black_concrete.png","./concrete_black.png"],["textures/blocks/blue_concrete.png","./concrete_blue.png"],["textures/blocks/brown_concrete.png","./concrete_brown.png"],["textures/blocks/cyan_concrete.png","./concrete_cyan.png"],["textures/blocks/gray_concrete.png","./concrete_gray.png"],["textures/blocks/green_concrete.png","./concrete_green.png"],["textures/blocks/light_blue_concrete.png","./concrete_light_blue.png"],["textures/blocks/light_gray_concrete.png","./concrete_silver.png"],["textures/blocks/lime_concrete.png","./concrete_lime.png"],["textures/blocks/magenta_concrete.png","./concrete_magenta.png"],["textures/blocks/orange_concrete.png","./concrete_orange.png"],["textures/blocks/pink_concrete.png","./concrete_pink.png"],["textures/blocks/purple_concrete.png","./concrete_purple.png"],["textures/blocks/red_concrete.png","./concrete_red.png"],["textures/blocks/white_concrete.png","./concrete_white.png"],["textures/blocks/yellow_concrete.png","./concrete_yellow.png"],["textures/blocks/black_concrete_powder.png","./concrete_powder_black.png"],["textures/blocks/blue_concrete_powder.png","./concrete_powder_blue.png"],["textures/blocks/brown_concrete_powder.png","./concrete_powder_brown.png"],["textures/blocks/cyan_concrete_powder.png","./concrete_powder_cyan.png"],["textures/blocks/gray_concrete_powder.png","./concrete_powder_gray.png"],["textures/blocks/green_concrete_powder.png","./concrete_powder_green.png"],["textures/blocks/light_blue_concrete_powder.png","./concrete_powder_light_blue.png"],["textures/blocks/light_gray_concrete_powder.png","./concrete_powder_silver.png"],["textures/blocks/lime_concrete_powder.png","./concrete_powder_lime.png"],["textures/blocks/magenta_concrete_powder.png","./concrete_powder_magenta.png"],["textures/blocks/orange_concrete_powder.png","./concrete_powder_orange.png"],["textures/blocks/pink_concrete_powder.png","./concrete_powder_pink.png"],["textures/blocks/purple_concrete_powder.png","./concrete_powder_purple.png"],["textures/blocks/red_concrete_powder.png","./concrete_powder_red.png"],["textures/blocks/white_concrete_powder.png","./concrete_powder_white.png"],["textures/blocks/yellow_concrete_powder.png","./concrete_powder_yellow.png"],["textures/entity/conduit/base.png","textures/blocks/conduit_base.png"],["textures/entity/conduit/cage.png","textures/blocks/conduit_cage.png"],["textures/entity/conduit/closed_eye.png","textures/blocks/conduit_closed.png"],["textures/entity/conduit/open_eye.png","textures/blocks/conduit_open.png"],["textures/entity/conduit/wind.png","textures/blocks/conduit_wind_horizontal.png"],["textures/entity/conduit/wind_vertical.png","textures/blocks/conduit_wind_vertical.png"],["textures/items/heart_of_the_sea.png","./heartofthesea_closed.png"],["textures/blocks/brain_coral.png","./coral_plant_pink.png"],["textures/blocks/bubble_coral.png","./coral_plant_purple.png"],["textures/blocks/fire_coral.png","./coral_plant_red.png"],["textures/blocks/horn_coral.png","./coral_plant_yellow.png"],["textures/blocks/tube_coral.png","./coral_plant_blue.png"],["textures/blocks/brain_coral_block.png","./coral_pink.png"],["textures/blocks/bubble_coral_block.png","./coral_purple.png"],["textures/blocks/fire_coral_block.png","./coral_red.png"],["textures/blocks/horn_coral_block.png","./coral_yellow.png"],["textures/blocks/tube_coral_block.png","./coral_blue.png"],["textures/blocks/brain_coral_fan.png","./coral_fan_pink.png"],["textures/blocks/bubble_coral_fan.png","./coral_fan_purple.png"],["textures/blocks/fire_coral_fan.png","./coral_fan_red.png"],["textures/blocks/horn_coral_fan.png","./coral_fan_yellow.png"],["textures/blocks/tube_coral_fan.png","./coral_fan_blue.png"],["textures/blocks/dead_brain_coral_block.png","./coral_pink_dead.png"],["textures/blocks/dead_bubble_coral_block.png","./coral_purple_dead.png"],["textures/blocks/dead_fire_coral_block.png","./coral_red_dead.png"],["textures/blocks/dead_horn_coral_block.png","./coral_yellow_dead.png"],["textures/blocks/dead_tube_coral_block.png","./coral_blue_dead.png"],["textures/blocks/dead_brain_coral_fan.png","./coral_fan_pink_dead.png"],["textures/blocks/dead_bubble_coral_fan.png","./coral_fan_purple_dead.png"],["textures/blocks/dead_fire_coral_fan.png","./coral_fan_red_dead.png"],["textures/blocks/dead_horn_coral_fan.png","./coral_fan_yellow_dead.png"],["textures/blocks/dead_tube_coral_fan.png","./coral_fan_blue_dead.png"],["textures/entity/cow/red_mooshroom.png","./mooshroom.png"],["textures/blocks/dead_bush.png","./deadbush.png"],["textures/blocks/destroy_stage_0.png","textures/environment/destroy_stage_0.png"],["textures/blocks/destroy_stage_1.png","textures/environment/destroy_stage_1.png"],["textures/blocks/destroy_stage_2.png","textures/environment/destroy_stage_2.png"],["textures/blocks/destroy_stage_3.png","textures/environment/destroy_stage_3.png"],["textures/blocks/destroy_stage_4.png","textures/environment/destroy_stage_4.png"],["textures/blocks/destroy_stage_5.png","textures/environment/destroy_stage_5.png"],["textures/blocks/destroy_stage_6.png","textures/environment/destroy_stage_6.png"],["textures/blocks/destroy_stage_7.png","textures/environment/destroy_stage_7.png"],["textures/blocks/destroy_stage_8.png","textures/environment/destroy_stage_8.png"],["textures/blocks/destroy_stage_9.png","textures/environment/destroy_stage_9.png"],["textures/blocks/diorite.png","./stone_diorite.png"],["textures/blocks/polished_diorite.png","./stone_diorite_smooth.png"],["textures/blocks/dispenser_front.png","./dispenser_front_horizontal.png"],["textures/blocks/acacia_door_bottom.png","./door_acacia_lower.png"],["textures/blocks/birch_door_bottom.png","./door_birch_lower.png"],["textures/blocks/dark_oak_door_bottom.png","./door_dark_oak_lower.png"],["textures/blocks/iron_door_bottom.png","./door_iron_lower.png"],["textures/blocks/jungle_door_bottom.png","./door_jungle_lower.png"],["textures/blocks/oak_door_bottom.png","./door_wood_lower.png"],["textures/blocks/spruce_door_bottom.png","./door_spruce_lower.png"],["textures/blocks/acacia_door_top.png","./door_acacia_upper.png"],["textures/blocks/birch_door_top.png","./door_birch_upper.png"],["textures/blocks/dark_oak_door_top.png","./door_dark_oak_upper.png"],["textures/blocks/iron_door_top.png","./door_iron_upper.png"],["textures/blocks/jungle_door_top.png","./door_jungle_upper.png"],["textures/blocks/oak_door_top.png","./door_wood_upper.png"],["textures/blocks/spruce_door_top.png","./door_spruce_upper.png"],["textures/items/acacia_door.png","./door_acacia.png"],["textures/items/birch_door.png","./door_birch.png"],["textures/items/dark_oak_door.png","./door_dark_oak.png"],["textures/items/iron_door.png","./door_iron.png"],["textures/items/jungle_door.png","./door_jungle.png"],["textures/items/oak_door.png","./door_wood.png"],["textures/items/spruce_door.png","./door_spruce.png"],["textures/entity/enderdragon","./dragon"],["textures/entity/dragon/dragon_fireball.png","textures/items/dragon_fireball.png"],["textures/items/dragon_breath.png","./dragons_breath.png"],["textures/items/fire_charge.png","./fireball.png"],["textures/blocks/dropper_front.png","./dropper_front_horizontal.png"],["textures/items/black_dye.png","./dye_powder_black_new.png"],["textures/items/blue_dye.png","./dye_powder_blue_new.png"],["textures/items/brown_dye.png","./dye_powder_brown_new.png"],["textures/items/cyan_dye.png","./dye_powder_cyan.png"],["textures/items/gray_dye.png","./dye_powder_gray.png"],["textures/items/green_dye.png","./dye_powder_green.png"],["textures/items/light_blue_dye.png","./dye_powder_light_blue.png"],["textures/items/light_gray_dye.png","./dye_powder_silver.png"],["textures/items/lime_dye.png","./dye_powder_lime.png"],["textures/items/magenta_dye.png","./dye_powder_magenta.png"],["textures/items/orange_dye.png","./dye_powder_orange.png"],["textures/items/pink_dye.png","./dye_powder_pink.png"],["textures/items/purple_dye.png","./dye_powder_purple.png"],["textures/items/red_dye.png","./dye_powder_red.png"],["textures/items/white_dye.png","./dye_powder_white_new.png"],["textures/items/yellow_dye.png","./dye_powder_yellow.png"],["textures/entity/end_crystal","./endercrystal"],["textures/entity/endercrystal/end_crystal.png","./endercrystal.png"],["textures/entity/endercrystal/end_crystal_beam.png","./endercrystal_beam.png"],["textures/blocks/end_portal_frame_eye.png","./endframe_eye.png"],["textures/blocks/end_portal_frame_side.png","./endframe_side.png"],["textures/blocks/end_portal_frame_top.png","./endframe_top.png"],["textures/blocks/end_stone_bricks.png","./end_bricks.png"],["textures/blocks/farmland.png","./farmland_dry.png"],["textures/blocks/farmland_moist.png","./farmland_wet.png"],["textures/blocks/large_fern_bottom.png","./double_plant_fern_bottom.png"],["textures/blocks/large_fern_top.png","./double_plant_fern_top.png"],["textures/items/firework_rocket.png","./fireworks.png"],["textures/items/firework_star_overlay.png","./fireworks_charge.png"],["textures/entity/fishing_hook.png","./fishhook.png"],["textures/items/cod.png","./fish_raw.png"],["textures/items/cooked_cod.png","./fish_cooked.png"],["textures/items/cooked_salmon.png","./fish_salmon_cooked.png"],["textures/items/fishing_rod.png","./fishing_rod_uncast.png"],["textures/items/pufferfish.png","./fish_pufferfish_raw.png"],["textures/items/salmon.png","./fish_salmon_raw.png"],["textures/items/tropical_fish.png","./fish_clownfish_raw.png"],["textures/items/beef.png","./beef_raw.png"],["textures/items/chicken.png","./chicken_raw.png"],["textures/items/cooked_beef.png","./beef_cooked.png"],["textures/items/cooked_chicken.png","./chicken_cooked.png"],["textures/items/cooked_mutton.png","./mutton_cooked.png"],["textures/items/cooked_porkchop.png","./porkchop_cooked.png"],["textures/items/mutton.png","./mutton_raw.png"],["textures/items/porkchop.png","./porkchop_raw.png"],["textures/blocks/fletching_table_front.png","./fletcher_table_side2.png"],["textures/blocks/fletching_table_side.png","./fletcher_table_side1.png"],["textures/blocks/fletching_table_top.png","./fletcher_table_top.png"],["textures/blocks/allium.png","./flower_allium.png"],["textures/blocks/azure_bluet.png","./flower_houstonia.png"],["textures/blocks/blue_orchid.png","./flower_blue_orchid.png"],["textures/blocks/cornflower.png","./flower_cornflower.png"],["textures/blocks/dandelion.png","./flower_dandelion.png"],["textures/blocks/lilac_bottom.png","./double_plant_syringa_bottom.png"],["textures/blocks/lilac_top.png","./double_plant_syringa_top.png"],["textures/blocks/lily_of_the_valley.png","./flower_lily_of_the_valley.png"],["textures/blocks/orange_tulip.png","./flower_tulip_orange.png"],["textures/blocks/poppy.png","./flower_rose.png"],["textures/blocks/oxeye_daisy.png","./flower_oxeye_daisy.png"],["textures/blocks/peony_bottom.png","./double_plant_paeonia_bottom.png"],["textures/blocks/peony_top.png","./double_plant_paeonia_top.png"],["textures/blocks/pink_tulip.png","./flower_tulip_pink.png"],["textures/blocks/red_tulip.png","./flower_tulip_red.png"],["textures/blocks/rose_bush_bottom.png","./double_plant_rose_bottom.png"],["textures/blocks/rose_bush_top.png","./double_plant_rose_top.png"],["textures/blocks/sunflower_back.png","./double_plant_sunflower_back.png"],["textures/blocks/sunflower_bottom.png","./double_plant_sunflower_bottom.png"],["textures/blocks/sunflower_front.png","./double_plant_sunflower_front.png"],["textures/blocks/sunflower_top.png","./double_plant_sunflower_top.png"],["textures/blocks/white_tulip.png","./flower_tulip_white.png"],["textures/blocks/wither_rose.png","./flower_wither_rose.png"],["textures/blocks/blast_furnace_front.png","./blast_furnace_front_off.png"],["textures/blocks/furnace_front.png","./furnace_front_off.png"],["textures/blocks/smoker_front.png","./smoker_front_off.png"],["textures/blocks/black_stained_glass.png","./glass_black.png"],["textures/blocks/blue_stained_glass.png","./glass_blue.png"],["textures/blocks/brown_stained_glass.png","./glass_brown.png"],["textures/blocks/cyan_stained_glass.png","./glass_cyan.png"],["textures/blocks/gray_stained_glass.png","./glass_gray.png"],["textures/blocks/green_stained_glass.png","./glass_green.png"],["textures/blocks/light_blue_stained_glass.png","./glass_light_blue.png"],["textures/blocks/light_gray_stained_glass.png","./glass_silver.png"],["textures/blocks/lime_stained_glass.png","./glass_lime.png"],["textures/blocks/magenta_stained_glass.png","./glass_magenta.png"],["textures/blocks/orange_stained_glass.png","./glass_orange.png"],["textures/blocks/pink_stained_glass.png","./glass_pink.png"],["textures/blocks/purple_stained_glass.png","./glass_purple.png"],["textures/blocks/red_stained_glass.png","./glass_red.png"],["textures/blocks/white_stained_glass.png","./glass_white.png"],["textures/blocks/yellow_stained_glass.png","./glass_yellow.png"],["textures/blocks/black_stained_glass_pane_top.png","./glass_pane_top_black.png"],["textures/blocks/blue_stained_glass_pane_top.png","./glass_pane_top_blue.png"],["textures/blocks/brown_stained_glass_pane_top.png","./glass_pane_top_brown.png"],["textures/blocks/cyan_stained_glass_pane_top.png","./glass_pane_top_cyan.png"],["textures/blocks/gray_stained_glass_pane_top.png","./glass_pane_top_gray.png"],["textures/blocks/green_stained_glass_pane_top.png","./glass_pane_top_green.png"],["textures/blocks/light_blue_stained_glass_pane_top.png","./glass_pane_top_light_blue.png"],["textures/blocks/light_gray_stained_glass_pane_top.png","./glass_pane_top_silver.png"],["textures/blocks/lime_stained_glass_pane_top.png","./glass_pane_top_lime.png"],["textures/blocks/magenta_stained_glass_pane_top.png","./glass_pane_top_magenta.png"],["textures/blocks/orange_stained_glass_pane_top.png","./glass_pane_top_orange.png"],["textures/blocks/pink_stained_glass_pane_top.png","./glass_pane_top_pink.png"],["textures/blocks/purple_stained_glass_pane_top.png","./glass_pane_top_purple.png"],["textures/blocks/red_stained_glass_pane_top.png","./glass_pane_top_red.png"],["textures/blocks/white_stained_glass_pane_top.png","./glass_pane_top_white.png"],["textures/blocks/yellow_stained_glass_pane_top.png","./glass_pane_top_yellow.png"],["textures/blocks/black_glazed_terracotta.png","./glazed_terracotta_black.png"],["textures/blocks/blue_glazed_terracotta.png","./glazed_terracotta_blue.png"],["textures/blocks/brown_glazed_terracotta.png","./glazed_terracotta_brown.png"],["textures/blocks/cyan_glazed_terracotta.png","./glazed_terracotta_cyan.png"],["textures/blocks/gray_glazed_terracotta.png","./glazed_terracotta_gray.png"],["textures/blocks/green_glazed_terracotta.png","./glazed_terracotta_green.png"],["textures/blocks/light_blue_glazed_terracotta.png","./glazed_terracotta_light_blue.png"],["textures/blocks/light_gray_glazed_terracotta.png","./glazed_terracotta_silver.png"],["textures/blocks/lime_glazed_terracotta.png","./glazed_terracotta_lime.png"],["textures/blocks/magenta_glazed_terracotta.png","./glazed_terracotta_magenta.png"],["textures/blocks/orange_glazed_terracotta.png","./glazed_terracotta_orange.png"],["textures/blocks/pink_glazed_terracotta.png","./glazed_terracotta_pink.png"],["textures/blocks/purple_glazed_terracotta.png","./glazed_terracotta_purple.png"],["textures/blocks/red_glazed_terracotta.png","./glazed_terracotta_red.png"],["textures/blocks/white_glazed_terracotta.png","./glazed_terracotta_white.png"],["textures/blocks/yellow_glazed_terracotta.png","./glazed_terracotta_yellow.png"],["textures/blocks/granite.png","./stone_granite.png"],["textures/blocks/polished_granite.png","./stone_granite_smooth.png"],["textures/blocks/grass.png","./tallgrass.png"],["textures/blocks/grass_block_side.png","./grass_side_carried.png"],["textures/blocks/grass_block_side_overlay.png","./grass_side.png"],["textures/blocks/grass_block_snow.png","./grass_side_snowed.png"],["textures/blocks/grass_block_top.png","./grass_top.png"],["textures/blocks/tall_grass_bottom.png","./double_plant_grass_bottom.png"],["textures/blocks/tall_grass_top.png","./double_plant_grass_top.png"],["textures/entity/horse","./horse2"],["textures/blocks/packed_ice.png","./ice_packed.png"],["textures/entity/illager/evoker_fangs.png","./fangs.png"],["textures/entity/illager/pillager.png","textures/entity/pillager.png"],["textures/entity/illager/vex.png","textures/entity/vex/vex.png"],["textures/entity/illager/vex_charging.png","textures/entity/vex/vex_charging.png"],["textures/entity/illager/vindicator.png","textures/entity/vindicator.png"],["textures/items/ink_sac.png","./dye_powder_black.png"],["textures/blocks/item_frame.png","./itemframe_background.png"],["textures/blocks/jigsaw_bottom.png","./jigsaw_back.png"],["textures/blocks/jigsaw_top.png","./jigsaw_front.png"],["textures/blocks/dried_kelp_side.png","./dried_kelp_side_a.png"],["textures/blocks/kelp.png","./kelp_top.png"],["textures/blocks/kelp_plant.png","./kelp_a.png"],["textures/items/lapis_lazuli.png","./dye_powder_blue.png"],["textures/blocks/acacia_leaves.png","./leaves_acacia.png"],["textures/blocks/birch_leaves.png","./leaves_birch.png"],["textures/blocks/dark_oak_leaves.png","./leaves_big_oak.png"],["textures/blocks/jungle_leaves.png","./leaves_jungle.png"],["textures/blocks/oak_leaves.png","./leaves_oak.png"],["textures/blocks/spruce_leaves.png","./leaves_spruce.png"],["textures/blocks/lily_pad.png","./waterlily.png"],["textures/entity/llama/brown.png","./llama_brown.png"],["textures/entity/llama/creamy.png","./llama_creamy.png"],["textures/entity/llama/gray.png","./llama_gray.png"],["textures/entity/llama/white.png","./llama_white.png"],["textures/entity/llama/decor/black.png","./decor_black.png"],["textures/entity/llama/decor/blue.png","./decor_blue.png"],["textures/entity/llama/decor/brown.png","./decor_brown.png"],["textures/entity/llama/decor/cyan.png","./decor_cyan.png"],["textures/entity/llama/decor/gray.png","./decor_gray.png"],["textures/entity/llama/decor/green.png","./decor_green.png"],["textures/entity/llama/decor/light_blue.png","./decor_light_blue.png"],["textures/entity/llama/decor/light_gray.png","./decor_silver.png"],["textures/entity/llama/decor/lime.png","./decor_lime.png"],["textures/entity/llama/decor/magenta.png","./decor_magenta.png"],["textures/entity/llama/decor/orange.png","./decor_orange.png"],["textures/entity/llama/decor/pink.png","./decor_pink.png"],["textures/entity/llama/decor/purple.png","./decor_purple.png"],["textures/entity/llama/decor/red.png","./decor_red.png"],["textures/entity/llama/decor/trader_llama.png","./trader_llama_decor.png"],["textures/entity/llama/decor/white.png","./decor_white.png"],["textures/entity/llama/decor/yellow.png","./decor_yellow.png"],["textures/blocks/acacia_log.png","./log_acacia.png"],["textures/blocks/birch_log.png","./log_birch.png"],["textures/blocks/dark_oak_log.png","./log_big_oak.png"],["textures/blocks/jungle_log.png","./log_jungle.png"],["textures/blocks/oak_log.png","./log_oak.png"],["textures/blocks/spruce_log.png","./log_spruce.png"],["textures/blocks/acacia_log_top.png","./log_acacia_top.png"],["textures/blocks/birch_log_top.png","./log_birch_top.png"],["textures/blocks/dark_oak_log_top.png","./log_big_oak_top.png"],["textures/blocks/jungle_log_top.png","./log_jungle_top.png"],["textures/blocks/oak_log_top.png","./log_oak_top.png"],["textures/blocks/spruce_log_top.png","./log_spruce_top.png"],["textures/items/filled_map.png","./map_filled.png"],["textures/items/filled_map_markings.png","./map_filled_markings.png"],["textures/items/map.png","./map_empty.png"],["textures/blocks/attached_melon_stem.png","./melon_stem_connected.png"],["textures/blocks/melon_stem.png","./melon_stem_disconnected.png"],["textures/items/glistering_melon_slice.png","./melon_speckled.png"],["textures/items/melon_slice.png","./melon.png"],["textures/items/chest_minecart.png","./minecart_chest.png"],["textures/items/command_block_minecart.png","./minecart_command_block.png"],["textures/items/furnace_minecart.png","./minecart_furnace.png"],["textures/items/hopper_minecart.png","./minecart_hopper.png"],["textures/items/minecart.png","./minecart_normal.png"],["textures/items/tnt_minecart.png","./minecart_tnt.png"],["textures/blocks/brown_mushroom.png","./mushroom_brown.png"],["textures/blocks/red_mushroom.png","./mushroom_red.png"],["textures/blocks/brown_mushroom_block.png","./mushroom_block_skin_brown.png"],["textures/blocks/red_mushroom_block.png","./mushroom_block_skin_red.png"],["textures/blocks/mushroom_stem.png","./mushroom_block_skin_stem.png"],["textures/items/music_disc_11.png","./record_11.png"],["textures/items/music_disc_13.png","./record_13.png"],["textures/items/music_disc_blocks.png","./record_blocks.png"],["textures/items/music_disc_cat.png","./record_cat.png"],["textures/items/music_disc_chirp.png","./record_chirp.png"],["textures/items/music_disc_far.png","./record_far.png"],["textures/items/music_disc_mall.png","./record_mall.png"],["textures/items/music_disc_mellohi.png","./record_mellohi.png"],["textures/items/music_disc_stal.png","./record_stal.png"],["textures/items/music_disc_strad.png","./record_strad.png"],["textures/items/music_disc_wait.png","./record_wait.png"],["textures/items/music_disc_ward.png","./record_ward.png"],["textures/blocks/nether_bricks.png","./nether_brick.png"],["textures/blocks/red_nether_bricks.png","./red_nether_brick.png"],["textures/items/nether_brick.png","./netherbrick.png"],["textures/blocks/nether_portal.png","./portal.png"],["textures/blocks/nether_wart_stage0.png","./nether_wart_stage_0.png"],["textures/blocks/nether_wart_stage1.png","./nether_wart_stage_1.png"],["textures/blocks/nether_wart_stage2.png","./nether_wart_stage_2.png"],["textures/blocks/note_block.png","./noteblock.png"],["textures/items/nautilus_shell.png","./nautilus.png"],["textures/blocks/observer_back_on.png","./observer_back_lit.png"],["textures/entity/panda/aggressive_panda.png","./panda_aggressive.png"],["textures/entity/panda/brown_panda.png","./panda_brown.png"],["textures/entity/panda/lazy_panda.png","./panda_lazy.png"],["textures/entity/panda/playful_panda.png","./panda_playful.png"],["textures/entity/panda/weak_panda.png","./panda_sneezy.png"],["textures/entity/panda/worried_panda.png","./panda_worried.png"],["textures/blocks/piston_top.png","./piston_top_normal.png"],["textures/blocks/acacia_planks.png","./planks_acacia.png"],["textures/blocks/birch_planks.png","./planks_birch.png"],["textures/blocks/dark_oak_planks.png","./planks_big_oak.png"],["textures/blocks/jungle_planks.png","./planks_jungle.png"],["textures/blocks/oak_planks.png","./planks_oak.png"],["textures/blocks/spruce_planks.png","./planks_spruce.png"],["textures/blocks/podzol_side.png","./dirt_podzol_side.png"],["textures/blocks/podzol_top.png","./dirt_podzol_top.png"],["textures/blocks/potatoes_stage0.png","./potatoes_stage_0.png"],["textures/blocks/potatoes_stage1.png","./potatoes_stage_1.png"],["textures/blocks/potatoes_stage2.png","./potatoes_stage_2.png"],["textures/blocks/potatoes_stage3.png","./potatoes_stage_3.png"],["textures/items/baked_potato.png","./potato_baked.png"],["textures/items/poisonous_potato.png","./potato_poisonous.png"],["textures/items/lingering_potion.png","./potion_bottle_lingering_empty.png"],["textures/items/potion.png","./potion_bottle_empty.png"],["textures/items/splash_potion.png","./potion_bottle_splash_empty.png"],["textures/blocks/dark_prismarine.png","./prismarine_dark.png"],["textures/blocks/prismarine.png","./prismarine_rough.png"],["textures/blocks/attached_pumpkin_stem.png","./pumpkin_stem_connected.png"],["textures/blocks/carved_pumpkin.png","./pumpkin_face_off.png"],["textures/blocks/jack_o_lantern.png","./pumpkin_face_on.png"],["textures/blocks/pumpkin_stem.png","./pumpkin_stem_disconnected.png"],["textures/blocks/chiseled_quartz_block.png","./quartz_block_chiseled.png"],["textures/blocks/chiseled_quartz_block_top.png","./quartz_block_chiseled_top.png"],["textures/blocks/nether_quartz_ore.png","./quartz_ore.png"],["textures/blocks/quartz_pillar.png","./quartz_block_lines.png"],["textures/blocks/quartz_pillar_top.png","./quartz_block_lines_top.png"],["textures/entity/rabbit/black.png","./blackrabbit.png"],["textures/items/cooked_rabbit.png","./rabbit_cooked.png"],["textures/items/rabbit.png","./rabbit_raw.png"],["textures/blocks/activator_rail.png","./rail_activator.png"],["textures/blocks/activator_rail_on.png","./rail_activator_powered.png"],["textures/blocks/detector_rail.png","./rail_detector.png"],["textures/blocks/detector_rail_on.png","./rail_detector_powered.png"],["textures/blocks/powered_rail.png","./rail_golden.png"],["textures/blocks/powered_rail_on.png","./rail_golden_powered.png"],["textures/blocks/rail.png","./rail_normal.png"],["textures/blocks/rail_corner.png","./rail_normal_turned.png"],["textures/blocks/chiseled_red_sandstone.png","./red_sandstone_carved.png"],["textures/blocks/cut_red_sandstone.png","./red_sandstone_smooth.png"],["textures/blocks/red_sandstone.png","./red_sandstone_normal.png"],["textures/items/redstone.png","./redstone_dust.png"],["textures/blocks/redstone_lamp.png","./redstone_lamp_off.png"],["textures/blocks/repeater.png","./repeater_off.png"],["textures/entity/pig/pig_saddle.png","textures/entity/saddle.png"],["textures/blocks/chiseled_sandstone.png","./sandstone_carved.png"],["textures/blocks/cut_sandstone.png","./sandstone_smooth.png"],["textures/blocks/sandstone.png","./sandstone_normal.png"],["textures/blocks/acacia_sapling.png","./sapling_acacia.png"],["textures/blocks/birch_sapling.png","./sapling_birch.png"],["textures/blocks/dark_oak_sapling.png","./sapling_roofed_oak.png"],["textures/blocks/jungle_sapling.png","./sapling_jungle.png"],["textures/blocks/oak_sapling.png","./sapling_oak.png"],["textures/blocks/spruce_sapling.png","./sapling_spruce.png"],["textures/blocks/tall_seagrass_top.png","./seagrass_doubletall_top_a.png"],["textures/blocks/tall_seagrass_bottom.png","./seagrass_doubletall_bottom_a.png"],["textures/items/seagrass.png","textures/blocks/seagrass_carried.png"],["textures/items/beetroot_seeds.png","./seeds_beetroot.png"],["textures/items/melon_seeds.png","./seeds_melon.png"],["textures/items/pumpkin_seeds.png","./seeds_pumpkin.png"],["textures/items/wheat_seeds.png","./seeds_wheat.png"],["textures/entity/shield_base_nopattern.png","./shield.png"],["textures/blocks/black_shulker_box.png","./shulker_top_black.png"],["textures/blocks/blue_shulker_box.png","./shulker_top_blue.png"],["textures/blocks/brown_shulker_box.png","./shulker_top_brown.png"],["textures/blocks/cyan_shulker_box.png","./shulker_top_cyan.png"],["textures/blocks/gray_shulker_box.png","./shulker_top_gray.png"],["textures/blocks/green_shulker_box.png","./shulker_top_green.png"],["textures/blocks/light_blue_shulker_box.png","./shulker_top_light_blue.png"],["textures/blocks/light_gray_shulker_box.png","./shulker_top_silver.png"],["textures/blocks/lime_shulker_box.png","./shulker_top_lime.png"],["textures/blocks/magenta_shulker_box.png","./shulker_top_magenta.png"],["textures/blocks/orange_shulker_box.png","./shulker_top_orange.png"],["textures/blocks/pink_shulker_box.png","./shulker_top_pink.png"],["textures/blocks/purple_shulker_box.png","./shulker_top_purple.png"],["textures/blocks/red_shulker_box.png","./shulker_top_red.png"],["textures/blocks/shulker_box.png","./shulker_top_undyed.png"],["textures/blocks/white_shulker_box.png","./shulker_top_white.png"],["textures/blocks/yellow_shulker_box.png","./shulker_top_yellow.png"],["textures/entity/shulker/shulker.png","./shulker_undyed.png"],["textures/entity/shulker/shulker_black.png","./shulker_black.png"],["textures/entity/shulker/shulker_blue.png","./shulker_blue.png"],["textures/entity/shulker/shulker_brown.png","./shulker_brown.png"],["textures/entity/shulker/shulker_cyan.png","./shulker_cyan.png"],["textures/entity/shulker/shulker_gray.png","./shulker_gray.png"],["textures/entity/shulker/shulker_green.png","./shulker_green.png"],["textures/entity/shulker/shulker_light_blue.png","./shulker_light_blue.png"],["textures/entity/shulker/shulker_light_gray.png","./shulker_silver.png"],["textures/entity/shulker/shulker_lime.png","./shulker_lime.png"],["textures/entity/shulker/shulker_magenta.png","./shulker_magenta.png"],["textures/entity/shulker/shulker_orange.png","./shulker_orange.png"],["textures/entity/shulker/shulker_pink.png","./shulker_pink.png"],["textures/entity/shulker/shulker_purple.png","./shulker_purple.png"],["textures/entity/shulker/shulker_red.png","./shulker_red.png"],["textures/entity/shulker/shulker_white.png","./shulker_white.png"],["textures/entity/shulker/shulker_yellow.png","./shulker_yellow.png"],["textures/entity/signs/acacia.png","textures/entity/sign_acacia.png"],["textures/entity/signs/birch.png","textures/entity/sign_birch.png"],["textures/entity/signs/dark_oak.png","textures/entity/sign_darkoak.png"],["textures/entity/signs/jungle.png","textures/entity/sign_jungle.png"],["textures/entity/signs/oak.png","textures/entity/sign.png"],["textures/entity/signs/spruce.png","textures/entity/sign_spruce.png"],["textures/items/acacia_sign.png","./sign_acacia.png"],["textures/items/birch_sign.png","./sign_birch.png"],["textures/items/dark_oak_sign.png","./sign_darkoak.png"],["textures/items/jungle_sign.png","./sign_jungle.png"],["textures/items/oak_sign.png","./sign.png"],["textures/items/spruce_sign.png","./sign_spruce.png"],["textures/blocks/slime_block.png","./slime.png"],["textures/items/slime_ball.png","./slimeball.png"],["textures/blocks/smooth_stone.png","./stone_slab_top.png"],["textures/blocks/smooth_stone_slab_side.png","./stone_slab_side.png"],["textures/blocks/spawner.png","./mob_spawner.png"],["textures/items/fermented_spider_eye.png","./spider_eye_fermented.png"],["textures/blocks/wet_sponge.png","./sponge_wet.png"],["textures/blocks/chiseled_stone_bricks.png","./stonebrick_carved.png"],["textures/blocks/cracked_stone_bricks.png","./stonebrick_cracked.png"],["textures/blocks/mossy_stone_bricks.png","./stonebrick_mossy.png"],["textures/blocks/stone_bricks.png","./stonebrick.png"],["textures/blocks/stonecutter_bottom.png","./stonecutter2_bottom.png"],["textures/blocks/stonecutter_saw.png","./stonecutter2_saw.png"],["textures/blocks/stonecutter_side.png","./stonecutter2_side.png"],["textures/blocks/stonecutter_top.png","./stonecutter2_top.png"],["textures/items/structure_void.png","textures/blocks/structure_void.png"],["textures/blocks/sugar_cane.png","./reeds.png"],["textures/items/sugar_cane.png","./reeds.png"],["textures/blocks/black_terracotta.png","./hardened_clay_stained_black.png"],["textures/blocks/blue_terracotta.png","./hardened_clay_stained_blue.png"],["textures/blocks/brown_terracotta.png","./hardened_clay_stained_brown.png"],["textures/blocks/cyan_terracotta.png","./hardened_clay_stained_cyan.png"],["textures/blocks/gray_terracotta.png","./hardened_clay_stained_gray.png"],["textures/blocks/green_terracotta.png","./hardened_clay_stained_green.png"],["textures/blocks/light_blue_terracotta.png","./hardened_clay_stained_light_blue.png"],["textures/blocks/light_gray_terracotta.png","./hardened_clay_stained_silver.png"],["textures/blocks/lime_terracotta.png","./hardened_clay_stained_lime.png"],["textures/blocks/magenta_terracotta.png","./hardened_clay_stained_magenta.png"],["textures/blocks/orange_terracotta.png","./hardened_clay_stained_orange.png"],["textures/blocks/pink_terracotta.png","./hardened_clay_stained_pink.png"],["textures/blocks/purple_terracotta.png","./hardened_clay_stained_purple.png"],["textures/blocks/red_terracotta.png","./hardened_clay_stained_red.png"],["textures/blocks/terracotta.png","./hardened_clay.png"],["textures/blocks/white_terracotta.png","./hardened_clay_stained_white.png"],["textures/blocks/yellow_terracotta.png","./hardened_clay_stained_yellow.png"],["textures/blocks/redstone_torch.png","./redstone_torch_on.png"],["textures/blocks/torch.png","./torch_on.png"],["textures/items/totem_of_undying.png","./totem.png"],["textures/blocks/oak_trapdoor.png","./trapdoor.png"],["textures/blocks/tripwire.png","./trip_wire.png"],["textures/blocks/tripwire_hook.png","./trip_wire_source.png"],["textures/blocks/turtle_egg.png","./turtle_egg_not_cracked.png"],["textures/entity/turtle/big_sea_turtle.png","textures/entity/sea_turtle.png"],["textures/items/scute.png","./turtle_shell_piece.png"],["textures/entity/villager","./villager2"],["textures/entity/villager2/profession","./professions"],["textures/entity/villager2/profession_level","./levels"],["textures/entity/villager2/type","./biomes"],["textures/entity/villager2/biomes/desert.png","./biome_desert.png"],["textures/entity/villager2/biomes/jungle.png","./biome_jungle.png"],["textures/entity/villager2/biomes/plains.png","./biome_plains.png"],["textures/entity/villager2/biomes/savanna.png","./biome_savanna.png"],["textures/entity/villager2/biomes/snow.png","./biome_snow.png"],["textures/entity/villager2/biomes/swamp.png","./biome_swamp.png"],["textures/entity/villager2/biomes/taiga.png","./biome_taiga.png"],["textures/entity/villager2/levels/diamond.png","./level_diamond.png"],["textures/entity/villager2/levels/emerald.png","./level_emerald.png"],["textures/entity/villager2/levels/gold.png","./level_gold.png"],["textures/entity/villager2/levels/iron.png","./level_iron.png"],["textures/entity/villager2/levels/stone.png","./level_stone.png"],["textures/entity/villager2/professions/mason.png","./stonemason.png"],["textures/blocks/water_flow.png","./water_flow_grey.png"],["textures/blocks/water_still.png","./water_still_grey.png"],["textures/blocks/wheat_stage0.png","./wheat_stage_0.png"],["textures/blocks/wheat_stage1.png","./wheat_stage_1.png"],["textures/blocks/wheat_stage2.png","./wheat_stage_2.png"],["textures/blocks/wheat_stage3.png","./wheat_stage_3.png"],["textures/blocks/wheat_stage4.png","./wheat_stage_4.png"],["textures/blocks/wheat_stage5.png","./wheat_stage_5.png"],["textures/blocks/wheat_stage6.png","./wheat_stage_6.png"],["textures/blocks/wheat_stage7.png","./wheat_stage_7.png"],["textures/entity/wither","./wither_boss"],["textures/blocks/black_wool.png","./wool_colored_black.png"],["textures/blocks/blue_wool.png","./wool_colored_blue.png"],["textures/blocks/brown_wool.png","./wool_colored_brown.png"],["textures/blocks/cyan_wool.png","./wool_colored_cyan.png"],["textures/blocks/gray_wool.png","./wool_colored_gray.png"],["textures/blocks/green_wool.png","./wool_colored_green.png"],["textures/blocks/light_blue_wool.png","./wool_colored_light_blue.png"],["textures/blocks/light_gray_wool.png","./wool_colored_silver.png"],["textures/blocks/lime_wool.png","./wool_colored_lime.png"],["textures/blocks/magenta_wool.png","./wool_colored_magenta.png"],["textures/blocks/orange_wool.png","./wool_colored_orange.png"],["textures/blocks/pink_wool.png","./wool_colored_pink.png"],["textures/blocks/purple_wool.png","./wool_colored_purple.png"],["textures/blocks/red_wool.png","./wool_colored_red.png"],["textures/blocks/white_wool.png","./wool_colored_white.png"],["textures/blocks/yellow_wool.png","./wool_colored_yellow.png"],["textures/entity/zombie_pigman.png","./pig/pigzombie.png"],["textures/entity/zombie_villager","./zombie_villager2"],["textures/entity/zombie_villager2/profession","./professions"],["textures/entity/zombie_villager2/profession_level","./levels"],["textures/entity/zombie_villager2/type","./biomes"],["textures/entity/zombie_villager2/zombie_villager.png","./zombie-villager.png"],["textures/entity/zombie_villager2/biomes/desert.png","./biome-desert-zombie.png"],["textures/entity/zombie_villager2/biomes/jungle.png","./biome-jungle-zombie.png"],["textures/entity/zombie_villager2/biomes/plains.png","./biome-plains-zombie.png"],["textures/entity/zombie_villager2/biomes/savanna.png","./biome-savanna-zombie.png"],["textures/entity/zombie_villager2/biomes/snow.png","./biome-snow-zombie.png"],["textures/entity/zombie_villager2/biomes/swamp.png","./biome-swamp-zombie.png"],["textures/entity/zombie_villager2/biomes/taiga.png","./biome-taiga-zombie.png"],["textures/entity/zombie_villager2/levels/diamond.png","./level_diamond.png"],["textures/entity/zombie_villager2/levels/emerald.png","./level_emerald.png"],["textures/entity/zombie_villager2/levels/gold.png","./level_gold.png"],["textures/entity/zombie_villager2/levels/iron.png","./level_iron.png"],["textures/entity/zombie_villager2/levels/stone.png","./level_stone.png"],["textures/entity/zombie_villager2/professions/mason.png","./stonemason.png"]];for(const e of t)yield e}},[]],[Re,[]],[je,[]],[Fe,[]],[Ue,[]],[We,[]],[qe,[]],[Qe,[]],[class extends p{async convert(){const t=[];for await(const[e,n,r,i,o]of this.getData()){const a=b.fromPath(e,this.path),s=b.fromPath(n,this.path),c=b.fromPath(r,this.path),l=b.toPath(i,s,this.path),u=b.toPath(o,s,this.path);if(h.a.existsSync(a)&&h.a.existsSync(s)&&h.a.existsSync(c)){b.log("Convert redstone dust");const t=await ze.read(s);t.rotate(90).crop(0,0,t.getWidth()-2,t.getHeight()-2),await t.writeAsync(u),t.composite(await ze.read(c),0,0),t.composite(await ze.read(a),0,0),await t.writeAsync(l)}t.push(e),t.push(n),t.push(r)}return[[v,t]]}async*getData(){yield["textures/blocks/redstone_dust_dot.png","textures/blocks/redstone_dust_line0.png","textures/blocks/redstone_dust_line1.png","./redstone_dust_cross.png","./redstone_dust_line.png"]}},[]],[class extends p{async convert(){const t=[];for await(const[e,n]of this.getData()){const r=b.fromPath(e,this.path),i=b.fromPath(n,this.path);if(h.a.existsSync(r)&&h.a.existsSync(i)){b.log("Convert sheep");const t=await ze.read(r),e=await ze.read(i),n=await ze.create(t.getWidth(),t.getHeight()+e.getHeight());n.composite(t,0,0),n.composite(e,0,t.getHeight()),n.scan(0,0,n.getWidth(),t.getHeight(),(t,e,r)=>{255===n.bitmap.data[r+3]&&(n.bitmap.data[r+3]=1)}),await n.writeAsync(r)}t.push(n)}return[[v,t]]}async*getData(){yield["textures/entity/sheep/sheep.png","textures/entity/sheep/sheep_fur.png"]}},[]],[class extends p{async convert(){for await(const t of this.getData()){const e=b.fromPath(t,this.path);if(h.a.existsSync(e)){b.log(`Convert villager ${t}`);const n=await ze.read(e);n.scan(0,0,n.getWidth(),n.getHeight(),(t,e,r)=>{0===n.bitmap.data[r+3]&&(n.bitmap.data[r]=255,n.bitmap.data[r+1]=255,n.bitmap.data[r+2]=255,n.bitmap.data[r+3]=0)}),await n.writeAsync(e)}}return[]}async*getData(){const t=["textures/entity/villager2/professions/armorer.png","textures/entity/villager2/professions/butcher.png","textures/entity/villager2/professions/cartographer.png","textures/entity/villager2/professions/cleric.png","textures/entity/villager2/professions/farmer.png","textures/entity/villager2/professions/fisherman.png","textures/entity/villager2/professions/fletcher.png","textures/entity/villager2/professions/leatherworker.png","textures/entity/villager2/professions/librarian.png","textures/entity/villager2/professions/nitwit.png","textures/entity/villager2/professions/shepherd.png","textures/entity/villager2/professions/stonemason.png","textures/entity/villager2/professions/toolsmith.png","textures/entity/villager2/professions/unskilled.png","textures/entity/villager2/professions/weaponsmith.png","textures/entity/zombie_villager2/professions/armorer.png","textures/entity/zombie_villager2/professions/butcher.png","textures/entity/zombie_villager2/professions/cartographer.png","textures/entity/zombie_villager2/professions/cleric.png","textures/entity/zombie_villager2/professions/farmer.png","textures/entity/zombie_villager2/professions/fisherman.png","textures/entity/zombie_villager2/professions/fletcher.png","textures/entity/zombie_villager2/professions/leatherworker.png","textures/entity/zombie_villager2/professions/librarian.png","textures/entity/zombie_villager2/professions/nitwit.png","textures/entity/zombie_villager2/professions/shepherd.png","textures/entity/zombie_villager2/professions/stonemason.png","textures/entity/zombie_villager2/professions/toolsmith.png","textures/entity/zombie_villager2/professions/weaponsmith.png"];for(const e of t)yield e}},[]],[$e,[]],[Xe,[]],[Ge,[]],[Je,[]],[class extends p{async convert(){for await(const[t,e]of this.getData()){const n=b.fromPath(t,this.path),r=b.toPath(e,n,this.path);if(h.a.existsSync(n)){b.log(`Create side rotate ${e}`);const t=await ze.read(n);t.flip(!0,!1),await t.writeAsync(r)}}return[]}async*getData(){const t=[["textures/blocks/dried_kelp_side_a.png","./dried_kelp_side_b.png"],["textures/blocks/seagrass_doubletall_top_a.png","./seagrass_doubletall_top_b.png"],["textures/blocks/seagrass_doubletall_bottom_a.png","./seagrass_doubletall_bottom_b.png"]];for(const e of t)yield e}},[]],[class extends p{async convert(){const t=[];for await(const[e,n,r]of this.getData()){const i=b.fromPath(e,this.path),o=b.toPath(n,i,this.path);if(h.a.existsSync(i)){b.log(`Create tga ${n}`);const a=await ze.read(i),s=tn.a.createTgaBuffer(a.getWidth(),a.getHeight(),a.bitmap.data);await h.a.writeFile(o,s),r||t.push(e)}}return[[v,t]]}async*getData(){const t=[["textures/blocks/cactus_bottom.png","./cactus_bottom.tga"],["textures/blocks/cactus_side.png","./cactus_side.tga"],["textures/blocks/cactus_top.png","./cactus_top.tga"],["textures/blocks/double_plant_fern_bottom.png","./double_plant_fern_bottom.tga"],["textures/blocks/double_plant_fern_top.png","./double_plant_fern_top.tga"],["textures/blocks/double_plant_grass_bottom.png","./double_plant_grass_bottom.tga"],["textures/blocks/double_plant_grass_top.png","./double_plant_grass_top.tga"],["textures/blocks/double_plant_syringa_bottom.png","./double_plant_syringa_bottom.tga"],["textures/blocks/double_plant_syringa_top.png","./double_plant_syringa_top.tga"],["textures/blocks/fern.png","./fern.tga"],["textures/blocks/fern_carried.png","./fern_carried.tga"],["textures/blocks/grass_side.png","./grass_side.tga"],["textures/blocks/grass_side_snowed.png","./grass_side_snowed.tga",!0],["textures/blocks/grindstone_pivot.png","./grindstone_pivot.tga"],["textures/blocks/grindstone_round.png","./grindstone_round.tga"],["textures/blocks/grindstone_side.png","./grindstone_side.tga"],["textures/blocks/kelp_a.png","./kelp_a.tga"],["textures/blocks/kelp_b.png","./kelp_b.tga"],["textures/blocks/kelp_c.png","./kelp_c.tga"],["textures/blocks/kelp_d.png","./kelp_d.tga"],["textures/blocks/kelp_top.png","./kelp_top.tga"],["textures/blocks/kelp_top_bulb.png","./kelp_top_bulb.tga"],["textures/blocks/leaves_acacia.png","./leaves_acacia.tga"],["textures/blocks/leaves_acacia_carried.png","./leaves_acacia_carried.tga"],["textures/blocks/leaves_big_oak.png","./leaves_big_oak.tga"],["textures/blocks/leaves_big_oak_carried.png","./leaves_big_oak_carried.tga"],["textures/blocks/leaves_birch.png","./leaves_birch.tga"],["textures/blocks/leaves_birch_carried.png","./leaves_birch_carried.tga"],["textures/blocks/leaves_jungle.png","./leaves_jungle.tga"],["textures/blocks/leaves_jungle_carried.png","./leaves_jungle_carried.tga"],["textures/blocks/leaves_oak.png","./leaves_oak.tga"],["textures/blocks/leaves_oak_carried.png","./leaves_oak_carried.tga"],["textures/blocks/leaves_spruce.png","./leaves_spruce.tga"],["textures/blocks/leaves_spruce_carried.png","./leaves_spruce_carried.tga"],["textures/blocks/reeds.png","./reeds.tga"],["textures/blocks/scaffolding_bottom.png","./scaffolding_bottom.tga"],["textures/blocks/scaffolding_side.png","./scaffolding_side.tga"],["textures/blocks/scaffolding_top.png","./scaffolding_top.tga"],["textures/blocks/seagrass_doubletall_bottom_a.png","./seagrass_doubletall_bottom_a.tga"],["textures/blocks/seagrass_doubletall_bottom_b.png","./seagrass_doubletall_bottom_b.tga"],["textures/blocks/seagrass_doubletall_top_a.png","./seagrass_doubletall_top_a.tga"],["textures/blocks/seagrass_doubletall_top_b.png","./seagrass_doubletall_top_b.tga"],["textures/blocks/stonecutter2_saw.png","./stonecutter2_saw.tga"],["textures/blocks/tallgrass.png","./tallgrass.tga",!0],["textures/blocks/tallgrass_carried.png","./tallgrass_carried.tga"],["textures/entity/blaze.png","./blaze.tga"],["textures/entity/phantom.png","./phantom.tga"],["textures/entity/banner/banner.png","./banner.tga"],["textures/entity/banner/banner_pattern_illager.png","./banner_pattern_illager.tga"],["textures/entity/cat/allblackcat_tame.png","./allblackcat_tame.tga"],["textures/entity/cat/britishshorthair_tame.png","./britishshorthair_tame.tga"],["textures/entity/cat/calico_tame.png","./calico_tame.tga"],["textures/entity/cat/graytabby_tame.png","./graytabby_tame.tga"],["textures/entity/cat/jellie_tame.png","./jellie_tame.tga"],["textures/entity/cat/ocelot_tame.png","./ocelot_tame.tga"],["textures/entity/cat/persian_tame.png","./persian_tame.tga"],["textures/entity/cat/ragdoll_tame.png","./ragdoll_tame.tga"],["textures/entity/cat/redtabby_tame.png","./redtabby_tame.tga"],["textures/entity/cat/siamesecat_tame.png","./siamesecat_tame.tga"],["textures/entity/cat/tabby_tame.png","./tabby_tame.tga"],["textures/entity/cat/tuxedo_tame.png","./tuxedo_tame.tga"],["textures/entity/cat/white_tame.png","./white_tame.tga"],["textures/entity/dragon/dragon.png","./dragon.tga"],["textures/entity/enderman/enderman.png","./enderman.tga"],["textures/entity/ghast/ghast_shooting.png","./ghast_shooting.tga"],["textures/entity/horse2/armor/horse_armor_leather.png","./horse_armor_leather.tga"],["textures/entity/sheep/sheep.png","./sheep.tga"],["textures/entity/slime/magmacube.png","./magmacube.tga"],["textures/entity/spider/cave_spider.png","./cave_spider.tga"],["textures/entity/spider/spider.png","./spider.tga"],["textures/entity/villager2/professions/armorer.png","./armorer.tga"],["textures/entity/villager2/professions/butcher.png","./butcher.tga"],["textures/entity/villager2/professions/cartographer.png","./cartographer.tga"],["textures/entity/villager2/professions/cleric.png","./cleric.tga"],["textures/entity/villager2/professions/farmer.png","./farmer.tga"],["textures/entity/villager2/professions/fisherman.png","./fisherman.tga"],["textures/entity/villager2/professions/fletcher.png","./fletcher.tga"],["textures/entity/villager2/professions/leatherworker.png","./leatherworker.tga"],["textures/entity/villager2/professions/librarian.png","./librarian.tga"],["textures/entity/villager2/professions/nitwit.png","./nitwit.tga"],["textures/entity/villager2/professions/shepherd.png","./shepherd.tga"],["textures/entity/villager2/professions/stonemason.png","./stonemason.tga"],["textures/entity/villager2/professions/toolsmith.png","./toolsmith.tga"],["textures/entity/villager2/professions/unskilled.png","./unskilled.tga"],["textures/entity/villager2/professions/weaponsmith.png","./weaponsmith.tga"],["textures/entity/wolf/wolf_tame.png","./wolf_tame.tga"],["textures/entity/zombie/drowned.png","./drowned.tga"],["textures/entity/zombie_villager2/professions/armorer.png","./armorer.tga"],["textures/entity/zombie_villager2/professions/butcher.png","./butcher.tga"],["textures/entity/zombie_villager2/professions/cartographer.png","./cartographer.tga"],["textures/entity/zombie_villager2/professions/cleric.png","./cleric.tga"],["textures/entity/zombie_villager2/professions/farmer.png","./farmer.tga"],["textures/entity/zombie_villager2/professions/fisherman.png","./fisherman.tga"],["textures/entity/zombie_villager2/professions/fletcher.png","./fletcher.tga"],["textures/entity/zombie_villager2/professions/leatherworker.png","./leatherworker.tga"],["textures/entity/zombie_villager2/professions/librarian.png","./librarian.tga"],["textures/entity/zombie_villager2/professions/nitwit.png","./nitwit.tga"],["textures/entity/zombie_villager2/professions/shepherd.png","./shepherd.tga"],["textures/entity/zombie_villager2/professions/stonemason.png","./stonemason.tga"],["textures/entity/zombie_villager2/professions/toolsmith.png","./toolsmith.tga"],["textures/entity/zombie_villager2/professions/weaponsmith.png","./weaponsmith.tga"],["textures/items/fireworks_charge.png","./fireworks_charge.tga"],["textures/items/leather_boots.png","./leather_boots.tga"],["textures/items/leather_helmet.png","./leather_helmet.tga"],["textures/items/leather_horse_armor.png","./leather_horse_armor.tga"],["textures/items/leather_leggings.png","./leather_leggings.tga"],["textures/models/armor/leather_1.png","./leather_1.tga"],["textures/models/armor/leather_2.png","./leather_2.tga"]];for(const e of t)yield e}},[]],[He,[]],[y,[]]];var rn=class extends c{async input(){b.log(`Copy folder ${this.path} to ${this.temp}`),await h.a.copy(this.path,this.temp)}async name(){return g.a.basename(this.path)}},on=n(129),an=n.n(on);var sn=class extends c{async input(){b.log(`Extract ${this.path} to ${this.temp}`),await an()(this.path,this.temp)}async name(){return g.a.parse(this.path).name}};var cn=function(t,e){if(!h.a.existsSync(t))throw new a(`The input ${t} does not exists!`);switch(g.a.extname(t).toLowerCase().substr(1)){case"zip":return new sn(t,e);default:return new rn(t,e)}};var ln=class extends o{};class un{constructor(t,e){if(this.constructor===un)throw new ln("Can't instantiate abstract class!");this.path=t,this.temp=e}async getPath(){return this.path}async output(){}}var pn=un;var fn=class extends pn{async output(){b.log(`Move ${this.temp} to ${this.path}`),await h.a.rename(this.temp,this.path)}},hn=n(130);var dn=class extends pn{async output(){b.log(`Pack ${this.temp} to ${this.path}`),await Object(hn.zip)(this.temp,this.path),b.log(`Clean ${this.temp}`),await h.a.remove(this.temp)}};var gn=function(t,e){if(h.a.existsSync(t))throw new ln(`The output ${t} exists already!`);switch(g.a.extname(t).toLowerCase().substr(1)){case"mcpack":case"zip":return new dn(t,e);default:return new fn(t,e)}},mn=n(44),_n=n.n(mn),bn=n(60);var yn=class extends o{};var vn=async function(t=_n.a.tmpdir()){if(b.log("Init temp folder"),!h.a.existsSync(t))throw new yn(`The temp ${t} does not exists!`);return t=b.fromPath(bn.productName,t),await h.a.remove(t),await h.a.mkdirs(t),t};e.default=async function(t,e,n={}){b.setVerbose(n.verbose);const r=await vn(n.temp),i=cn(t,r),o=gn(e,r);await i.input();for await(const t of async function*(t,e){for(const[n,r]of nn)yield new n(t,e,r)}(r,i))await en(...await t.convert());return await o.output(),await o.getPath()}},function(t,e,n){var r=n(66),i=process.cwd,o=null,a=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return o||(o=i.call(process)),o};try{process.cwd()}catch(t){}var s=process.chdir;process.chdir=function(t){o=null,s.call(process,t)},t.exports=function(t){r.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(t){t.lchmod=function(e,n,i){t.open(e,r.O_WRONLY|r.O_SYMLINK,n,function(e,r){e?i&&i(e):t.fchmod(r,n,function(e){t.close(r,function(t){i&&i(e||t)})})})},t.lchmodSync=function(e,n){var i,o=t.openSync(e,r.O_WRONLY|r.O_SYMLINK,n),a=!0;try{i=t.fchmodSync(o,n),a=!1}finally{if(a)try{t.closeSync(o)}catch(t){}else t.closeSync(o)}return i}}(t);t.lutimes||function(t){r.hasOwnProperty("O_SYMLINK")?(t.lutimes=function(e,n,i,o){t.open(e,r.O_SYMLINK,function(e,r){e?o&&o(e):t.futimes(r,n,i,function(e){t.close(r,function(t){o&&o(e||t)})})})},t.lutimesSync=function(e,n,i){var o,a=t.openSync(e,r.O_SYMLINK),s=!0;try{o=t.futimesSync(a,n,i),s=!1}finally{if(s)try{t.closeSync(a)}catch(t){}else t.closeSync(a)}return o}):(t.lutimes=function(t,e,n,r){r&&process.nextTick(r)},t.lutimesSync=function(){})}(t);t.chown=o(t.chown),t.fchown=o(t.fchown),t.lchown=o(t.lchown),t.chmod=n(t.chmod),t.fchmod=n(t.fchmod),t.lchmod=n(t.lchmod),t.chownSync=s(t.chownSync),t.fchownSync=s(t.fchownSync),t.lchownSync=s(t.lchownSync),t.chmodSync=i(t.chmodSync),t.fchmodSync=i(t.fchmodSync),t.lchmodSync=i(t.lchmodSync),t.stat=c(t.stat),t.fstat=c(t.fstat),t.lstat=c(t.lstat),t.statSync=l(t.statSync),t.fstatSync=l(t.fstatSync),t.lstatSync=l(t.lstatSync),t.lchmod||(t.lchmod=function(t,e,n){n&&process.nextTick(n)},t.lchmodSync=function(){});t.lchown||(t.lchown=function(t,e,n,r){r&&process.nextTick(r)},t.lchownSync=function(){});"win32"===a&&(t.rename=(e=t.rename,function(n,r,i){var o=Date.now(),a=0;e(n,r,function s(c){if(c&&("EACCES"===c.code||"EPERM"===c.code)&&Date.now()-o<6e4)return setTimeout(function(){t.stat(r,function(t,o){t&&"ENOENT"===t.code?e(n,r,s):i(c)})},a),void(a<100&&(a+=10));i&&i(c)})}));var e;function n(e){return e?function(n,r,i){return e.call(t,n,r,function(t){u(t)&&(t=null),i&&i.apply(this,arguments)})}:e}function i(e){return e?function(n,r){try{return e.call(t,n,r)}catch(t){if(!u(t))throw t}}:e}function o(e){return e?function(n,r,i,o){return e.call(t,n,r,i,function(t){u(t)&&(t=null),o&&o.apply(this,arguments)})}:e}function s(e){return e?function(n,r,i){try{return e.call(t,n,r,i)}catch(t){if(!u(t))throw t}}:e}function c(e){return e?function(n,r,i){function o(t,e){e&&(e.uid<0&&(e.uid+=4294967296),e.gid<0&&(e.gid+=4294967296)),i&&i.apply(this,arguments)}return"function"==typeof r&&(i=r,r=null),r?e.call(t,n,r,o):e.call(t,n,o)}:e}function l(e){return e?function(n,r){var i=r?e.call(t,n,r):e.call(t,n);return i.uid<0&&(i.uid+=4294967296),i.gid<0&&(i.gid+=4294967296),i}:e}function u(t){if(!t)return!0;if("ENOSYS"===t.code)return!0;var e=!process.getuid||0!==process.getuid();return!(!e||"EINVAL"!==t.code&&"EPERM"!==t.code)}t.read=(f=t.read,function(e,n,r,i,o,a){var s;if(a&&"function"==typeof a){var c=0;s=function(l,u,p){if(l&&"EAGAIN"===l.code&&c<10)return c++,f.call(t,e,n,r,i,o,s);a.apply(this,arguments)}}return f.call(t,e,n,r,i,o,s)}),t.readSync=(p=t.readSync,function(e,n,r,i,o){for(var a=0;;)try{return p.call(t,e,n,r,i,o)}catch(t){if("EAGAIN"===t.code&&a<10){a++;continue}throw t}});var p;var f}},function(t,e,n){var r=n(7).Stream;t.exports=function(t){return{ReadStream:function e(n,i){if(!(this instanceof e))return new e(n,i);r.call(this);var o=this;this.path=n;this.fd=null;this.readable=!0;this.paused=!1;this.flags="r";this.mode=438;this.bufferSize=65536;i=i||{};var a=Object.keys(i);for(var s=0,c=a.length;sthis.end)throw new Error("start must be <= end");this.pos=this.start}if(null!==this.fd)return void process.nextTick(function(){o._read()});t.open(this.path,this.flags,this.mode,function(t,e){if(t)return o.emit("error",t),void(o.readable=!1);o.fd=e,o.emit("open",e),o._read()})},WriteStream:function e(n,i){if(!(this instanceof e))return new e(n,i);r.call(this);this.path=n;this.fd=null;this.writable=!0;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;i=i||{};var o=Object.keys(i);for(var a=0,s=o.length;a= zero");this.pos=this.start}this.busy=!1;this._queue=[];null===this.fd&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}},function(t,e,n){"use strict";t.exports=function(t){if(null===t||"object"!=typeof t)return t;if(t instanceof Object)var e={__proto__:t.__proto__};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}},function(t,e,n){"use strict";const r=n(6),i=n(1),o=n(10).mkdirsSync,a=n(69).utimesMillisSync,s=n(29);function c(t,e,n,o){if(!o.filter||o.filter(e,n))return function(t,e,n,o){const a=(o.dereference?r.statSync:r.lstatSync)(e);if(a.isDirectory())return function(t,e,n,i,o){if(!e)return function(t,e,n,i){return r.mkdirSync(n),u(e,n,i),r.chmodSync(n,t.mode)}(t,n,i,o);if(e&&!e.isDirectory())throw new Error(`Cannot overwrite non-directory '${i}' with directory '${n}'.`);return u(n,i,o)}(a,t,e,n,o);if(a.isFile()||a.isCharacterDevice()||a.isBlockDevice())return function(t,e,n,i,o){return e?function(t,e,n,i){if(i.overwrite)return r.unlinkSync(n),l(t,e,n,i);if(i.errorOnExist)throw new Error(`'${n}' already exists`)}(t,n,i,o):l(t,n,i,o)}(a,t,e,n,o);if(a.isSymbolicLink())return function(t,e,n,o){let a=r.readlinkSync(e);o.dereference&&(a=i.resolve(process.cwd(),a));if(t){let t;try{t=r.readlinkSync(n)}catch(t){if("EINVAL"===t.code||"UNKNOWN"===t.code)return r.symlinkSync(a,n);throw t}if(o.dereference&&(t=i.resolve(process.cwd(),t)),s.isSrcSubdir(a,t))throw new Error(`Cannot copy '${a}' to a subdirectory of itself, '${t}'.`);if(r.statSync(n).isDirectory()&&s.isSrcSubdir(t,a))throw new Error(`Cannot overwrite '${t}' with '${a}'.`);return function(t,e){return r.unlinkSync(e),r.symlinkSync(t,e)}(a,n)}return r.symlinkSync(a,n)}(t,e,n,o)}(t,e,n,o)}function l(t,e,i,o){return"function"==typeof r.copyFileSync?(r.copyFileSync(e,i),r.chmodSync(i,t.mode),o.preserveTimestamps?a(i,t.atime,t.mtime):void 0):function(t,e,i,o){const a=n(141)(65536),s=r.openSync(e,"r"),c=r.openSync(i,"w",t.mode);let l=0;for(;l(function(t,e,n,r){const o=i.join(e,t),a=i.join(n,t),{destStat:l}=s.checkPathsSync(o,a,"copy");return c(l,o,a,r)})(r,t,e,n))}t.exports=function(t,e,n){"function"==typeof n&&(n={filter:n}),(n=n||{}).clobber=!("clobber"in n&&!n.clobber),n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&"ia32"===process.arch&&console.warn("fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269");const{srcStat:a,destStat:l}=s.checkPathsSync(t,e,"copy");return s.checkParentPathsSync(t,a,e,"copy"),function(t,e,n,a){if(a.filter&&!a.filter(e,n))return;const s=i.dirname(n);return r.existsSync(s)||o(s),c(t,e,n,a)}(l,t,e,n)}},function(t,e,n){"use strict";const r=n(6),i=n(1),o=n(68).invalidWin32Path,a=parseInt("0777",8);t.exports=function t(e,n,s,c){if("function"==typeof n?(s=n,n={}):n&&"object"==typeof n||(n={mode:n}),"win32"===process.platform&&o(e)){const t=new Error(e+" contains invalid WIN32 path characters.");return t.code="EINVAL",s(t)}let l=n.mode;const u=n.fs||r;void 0===l&&(l=a&~process.umask()),c||(c=null),s=s||function(){},e=i.resolve(e),u.mkdir(e,l,r=>{if(!r)return s(null,c=c||e);switch(r.code){case"ENOENT":if(i.dirname(e)===e)return s(r);t(i.dirname(e),n,(r,i)=>{r?s(r,i):t(e,n,s,i)});break;default:u.stat(e,(t,e)=>{t||!e.isDirectory()?s(r,c):s(null,c)})}})}},function(t,e,n){"use strict";const r=n(6),i=n(1),o=n(68).invalidWin32Path,a=parseInt("0777",8);t.exports=function t(e,n,s){n&&"object"==typeof n||(n={mode:n});let c=n.mode;const l=n.fs||r;if("win32"===process.platform&&o(e)){const t=new Error(e+" contains invalid WIN32 path characters.");throw t.code="EINVAL",t}void 0===c&&(c=a&~process.umask()),s||(s=null),e=i.resolve(e);try{l.mkdirSync(e,c),s=s||e}catch(r){if("ENOENT"===r.code){if(i.dirname(e)===e)throw r;s=t(i.dirname(e),n,s),t(e,n,s)}else{let t;try{t=l.statSync(e)}catch(t){throw r}if(!t.isDirectory())throw r}}return s}},function(t,e,n){"use strict";t.exports=function(t){if("function"==typeof Buffer.allocUnsafe)try{return Buffer.allocUnsafe(t)}catch(e){return new Buffer(t)}return new Buffer(t)}},function(t,e,n){"use strict";const r=n(6),i=n(1),o=n(10).mkdirs,a=n(13).pathExists,s=n(69).utimesMillis,c=n(29);function l(t,e,n,r,s){const c=i.dirname(n);a(c,(i,a)=>i?s(i):a?p(t,e,n,r,s):void o(c,i=>i?s(i):p(t,e,n,r,s)))}function u(t,e,n,r,i,o){Promise.resolve(i.filter(n,r)).then(a=>a?t(e,n,r,i,o):o(),t=>o(t))}function p(t,e,n,r,i){return r.filter?u(f,t,e,n,r,i):f(t,e,n,r,i)}function f(t,e,n,i,o){(i.dereference?r.stat:r.lstat)(e,(a,s)=>a?o(a):s.isDirectory()?function(t,e,n,i,o,a){if(!e)return function(t,e,n,i,o){r.mkdir(n,a=>{if(a)return o(a);g(e,n,i,e=>e?o(e):r.chmod(n,t.mode,o))})}(t,n,i,o,a);if(e&&!e.isDirectory())return a(new Error(`Cannot overwrite non-directory '${i}' with directory '${n}'.`));return g(n,i,o,a)}(s,t,e,n,i,o):s.isFile()||s.isCharacterDevice()||s.isBlockDevice()?function(t,e,n,i,o,a){return e?function(t,e,n,i,o){if(!i.overwrite)return i.errorOnExist?o(new Error(`'${n}' already exists`)):o();r.unlink(n,r=>r?o(r):h(t,e,n,i,o))}(t,n,i,o,a):h(t,n,i,o,a)}(s,t,e,n,i,o):s.isSymbolicLink()?_(t,e,n,i,o):void 0)}function h(t,e,n,i,o){return"function"==typeof r.copyFile?r.copyFile(e,n,e=>e?o(e):d(t,n,i,o)):function(t,e,n,i,o){const a=r.createReadStream(e);a.on("error",t=>o(t)).once("open",()=>{const e=r.createWriteStream(n,{mode:t.mode});e.on("error",t=>o(t)).on("open",()=>a.pipe(e)).once("close",()=>d(t,n,i,o))})}(t,e,n,i,o)}function d(t,e,n,i){r.chmod(e,t.mode,r=>r?i(r):n.preserveTimestamps?s(e,t.atime,t.mtime,i):i())}function g(t,e,n,i){r.readdir(t,(r,o)=>r?i(r):m(o,t,e,n,i))}function m(t,e,n,r,o){const a=t.pop();return a?function(t,e,n,r,o,a){const s=i.join(n,e),l=i.join(r,e);c.checkPaths(s,l,"copy",(e,i)=>{if(e)return a(e);const{destStat:c}=i;p(c,s,l,o,e=>e?a(e):m(t,n,r,o,a))})}(t,a,e,n,r,o):o()}function _(t,e,n,o,a){r.readlink(e,(e,s)=>e?a(e):(o.dereference&&(s=i.resolve(process.cwd(),s)),t?void r.readlink(n,(e,l)=>e?"EINVAL"===e.code||"UNKNOWN"===e.code?r.symlink(s,n,a):a(e):(o.dereference&&(l=i.resolve(process.cwd(),l)),c.isSrcSubdir(s,l)?a(new Error(`Cannot copy '${s}' to a subdirectory of itself, '${l}'.`)):t.isDirectory()&&c.isSrcSubdir(l,s)?a(new Error(`Cannot overwrite '${l}' with '${s}'.`)):function(t,e,n){r.unlink(e,i=>i?n(i):r.symlink(t,e,n))}(s,n,a))):r.symlink(s,n,a)))}t.exports=function(t,e,n,r){"function"!=typeof n||r?"function"==typeof n&&(n={filter:n}):(r=n,n={}),r=r||function(){},(n=n||{}).clobber=!("clobber"in n&&!n.clobber),n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&"ia32"===process.arch&&console.warn("fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269"),c.checkPaths(t,e,"copy",(i,o)=>{if(i)return r(i);const{srcStat:a,destStat:s}=o;c.checkParentPaths(t,a,e,"copy",i=>i?r(i):n.filter?u(l,s,t,e,n,r):l(s,t,e,n,r))})}},function(t,e,n){"use strict";const r=n(8).fromCallback,i=n(6),o=n(1),a=n(10),s=n(30),c=r(function(t,e){e=e||function(){},i.readdir(t,(n,r)=>{if(n)return a.mkdirs(t,e);r=r.map(e=>o.join(t,e)),function t(){const n=r.pop();if(!n)return e();s.remove(n,n=>{if(n)return e(n);t()})}()})});function l(t){let e;try{e=i.readdirSync(t)}catch(e){return a.mkdirsSync(t)}e.forEach(e=>{e=o.join(t,e),s.removeSync(e)})}t.exports={emptyDirSync:l,emptydirSync:l,emptyDir:c,emptydir:c}},function(t,e,n){"use strict";const r=n(6),i=n(1),o=n(20),a="win32"===process.platform;function s(t){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(e=>{t[e]=t[e]||r[e],t[e+="Sync"]=t[e]||r[e]}),t.maxBusyTries=t.maxBusyTries||3}function c(t,e,n){let r=0;"function"==typeof e&&(n=e,e={}),o(t,"rimraf: missing path"),o.strictEqual(typeof t,"string","rimraf: path should be a string"),o.strictEqual(typeof n,"function","rimraf: callback function required"),o(e,"rimraf: invalid options argument provided"),o.strictEqual(typeof e,"object","rimraf: options should be object"),s(e),l(t,e,function i(o){if(o){if(("EBUSY"===o.code||"ENOTEMPTY"===o.code||"EPERM"===o.code)&&rl(t,e,i),100*r)}"ENOENT"===o.code&&(o=null)}n(o)})}function l(t,e,n){o(t),o(e),o("function"==typeof n),e.lstat(t,(r,i)=>r&&"ENOENT"===r.code?n(null):r&&"EPERM"===r.code&&a?u(t,e,r,n):i&&i.isDirectory()?f(t,e,r,n):void e.unlink(t,r=>{if(r){if("ENOENT"===r.code)return n(null);if("EPERM"===r.code)return a?u(t,e,r,n):f(t,e,r,n);if("EISDIR"===r.code)return f(t,e,r,n)}return n(r)}))}function u(t,e,n,r){o(t),o(e),o("function"==typeof r),n&&o(n instanceof Error),e.chmod(t,438,i=>{i?r("ENOENT"===i.code?null:n):e.stat(t,(i,o)=>{i?r("ENOENT"===i.code?null:n):o.isDirectory()?f(t,e,n,r):e.unlink(t,r)})})}function p(t,e,n){let r;o(t),o(e),n&&o(n instanceof Error);try{e.chmodSync(t,438)}catch(t){if("ENOENT"===t.code)return;throw n}try{r=e.statSync(t)}catch(t){if("ENOENT"===t.code)return;throw n}r.isDirectory()?d(t,e,n):e.unlinkSync(t)}function f(t,e,n,r){o(t),o(e),n&&o(n instanceof Error),o("function"==typeof r),e.rmdir(t,a=>{!a||"ENOTEMPTY"!==a.code&&"EEXIST"!==a.code&&"EPERM"!==a.code?a&&"ENOTDIR"===a.code?r(n):r(a):function(t,e,n){o(t),o(e),o("function"==typeof n),e.readdir(t,(r,o)=>{if(r)return n(r);let a,s=o.length;if(0===s)return e.rmdir(t,n);o.forEach(r=>{c(i.join(t,r),e,r=>{if(!a)return r?n(a=r):void(0==--s&&e.rmdir(t,n))})})})}(t,e,r)})}function h(t,e){let n;s(e=e||{}),o(t,"rimraf: missing path"),o.strictEqual(typeof t,"string","rimraf: path should be a string"),o(e,"rimraf: missing options"),o.strictEqual(typeof e,"object","rimraf: options should be object");try{n=e.lstatSync(t)}catch(n){if("ENOENT"===n.code)return;"EPERM"===n.code&&a&&p(t,e,n)}try{n&&n.isDirectory()?d(t,e,null):e.unlinkSync(t)}catch(n){if("ENOENT"===n.code)return;if("EPERM"===n.code)return a?p(t,e,n):d(t,e,n);if("EISDIR"!==n.code)throw n;d(t,e,n)}}function d(t,e,n){o(t),o(e),n&&o(n instanceof Error);try{e.rmdirSync(t)}catch(r){if("ENOTDIR"===r.code)throw n;if("ENOTEMPTY"===r.code||"EEXIST"===r.code||"EPERM"===r.code)!function(t,e){if(o(t),o(e),e.readdirSync(t).forEach(n=>h(i.join(t,n),e)),!a){const n=e.rmdirSync(t,e);return n}{const n=Date.now();do{try{const n=e.rmdirSync(t,e);return n}catch(t){}}while(Date.now()-n<500)}}(t,e);else if("ENOENT"!==r.code)throw r}}t.exports=c,c.sync=h},function(t,e,n){"use strict";const r=n(146),i=n(147),o=n(148);t.exports={createFile:r.createFile,createFileSync:r.createFileSync,ensureFile:r.createFile,ensureFileSync:r.createFileSync,createLink:i.createLink,createLinkSync:i.createLinkSync,ensureLink:i.createLink,ensureLinkSync:i.createLinkSync,createSymlink:o.createSymlink,createSymlinkSync:o.createSymlinkSync,ensureSymlink:o.createSymlink,ensureSymlinkSync:o.createSymlinkSync}},function(t,e,n){"use strict";const r=n(8).fromCallback,i=n(1),o=n(6),a=n(10),s=n(13).pathExists;t.exports={createFile:r(function(t,e){function n(){o.writeFile(t,"",t=>{if(t)return e(t);e()})}o.stat(t,(r,o)=>{if(!r&&o.isFile())return e();const c=i.dirname(t);s(c,(t,r)=>t?e(t):r?n():void a.mkdirs(c,t=>{if(t)return e(t);n()}))})}),createFileSync:function(t){let e;try{e=o.statSync(t)}catch(t){}if(e&&e.isFile())return;const n=i.dirname(t);o.existsSync(n)||a.mkdirsSync(n),o.writeFileSync(t,"")}}},function(t,e,n){"use strict";const r=n(8).fromCallback,i=n(1),o=n(6),a=n(10),s=n(13).pathExists;t.exports={createLink:r(function(t,e,n){function r(t,e){o.link(t,e,t=>{if(t)return n(t);n(null)})}s(e,(c,l)=>c?n(c):l?n(null):void o.lstat(t,o=>{if(o)return o.message=o.message.replace("lstat","ensureLink"),n(o);const c=i.dirname(e);s(c,(i,o)=>i?n(i):o?r(t,e):void a.mkdirs(c,i=>{if(i)return n(i);r(t,e)}))}))}),createLinkSync:function(t,e){if(o.existsSync(e))return;try{o.lstatSync(t)}catch(t){throw t.message=t.message.replace("lstat","ensureLink"),t}const n=i.dirname(e);return o.existsSync(n)?o.linkSync(t,e):(a.mkdirsSync(n),o.linkSync(t,e))}}},function(t,e,n){"use strict";const r=n(8).fromCallback,i=n(1),o=n(6),a=n(10),s=a.mkdirs,c=a.mkdirsSync,l=n(149),u=l.symlinkPaths,p=l.symlinkPathsSync,f=n(150),h=f.symlinkType,d=f.symlinkTypeSync,g=n(13).pathExists;t.exports={createSymlink:r(function(t,e,n,r){r="function"==typeof n?n:r,n="function"!=typeof n&&n,g(e,(a,c)=>a?r(a):c?r(null):void u(t,e,(a,c)=>{if(a)return r(a);t=c.toDst,h(c.toCwd,n,(n,a)=>{if(n)return r(n);const c=i.dirname(e);g(c,(n,i)=>n?r(n):i?o.symlink(t,e,a,r):void s(c,n=>{if(n)return r(n);o.symlink(t,e,a,r)}))})}))}),createSymlinkSync:function(t,e,n){if(o.existsSync(e))return;const r=p(t,e);t=r.toDst,n=d(r.toCwd,n);const a=i.dirname(e);return o.existsSync(a)?o.symlinkSync(t,e,n):(c(a),o.symlinkSync(t,e,n))}}},function(t,e,n){"use strict";const r=n(1),i=n(6),o=n(13).pathExists;t.exports={symlinkPaths:function(t,e,n){if(r.isAbsolute(t))return i.lstat(t,e=>e?(e.message=e.message.replace("lstat","ensureSymlink"),n(e)):n(null,{toCwd:t,toDst:t}));{const a=r.dirname(e),s=r.join(a,t);return o(s,(e,o)=>e?n(e):o?n(null,{toCwd:s,toDst:t}):i.lstat(t,e=>e?(e.message=e.message.replace("lstat","ensureSymlink"),n(e)):n(null,{toCwd:t,toDst:r.relative(a,t)})))}},symlinkPathsSync:function(t,e){let n;if(r.isAbsolute(t)){if(!(n=i.existsSync(t)))throw new Error("absolute srcpath does not exist");return{toCwd:t,toDst:t}}{const o=r.dirname(e),a=r.join(o,t);if(n=i.existsSync(a))return{toCwd:a,toDst:t};if(!(n=i.existsSync(t)))throw new Error("relative srcpath does not exist");return{toCwd:t,toDst:r.relative(o,t)}}}}},function(t,e,n){"use strict";const r=n(6);t.exports={symlinkType:function(t,e,n){if(n="function"==typeof e?e:n,e="function"!=typeof e&&e)return n(null,e);r.lstat(t,(t,r)=>{if(t)return n(null,"file");e=r&&r.isDirectory()?"dir":"file",n(null,e)})},symlinkTypeSync:function(t,e){let n;if(e)return e;try{n=r.lstatSync(t)}catch(t){return"file"}return n&&n.isDirectory()?"dir":"file"}}},function(t,e,n){"use strict";const r=n(8).fromCallback,i=n(49);i.outputJson=r(n(153)),i.outputJsonSync=n(154),i.outputJSON=i.outputJson,i.outputJSONSync=i.outputJsonSync,i.writeJSON=i.writeJson,i.writeJSONSync=i.writeJsonSync,i.readJSON=i.readJson,i.readJSONSync=i.readJsonSync,t.exports=i},function(t,e,n){var r;try{r=n(6)}catch(t){r=n(5)}function i(t,e){var n,r="\n";return"object"==typeof e&&null!==e&&(e.spaces&&(n=e.spaces),e.EOL&&(r=e.EOL)),JSON.stringify(t,e?e.replacer:null,n).replace(/\n/g,r)+r}function o(t){return Buffer.isBuffer(t)&&(t=t.toString("utf8")),t=t.replace(/^\uFEFF/,"")}var a={readFile:function(t,e,n){null==n&&(n=e,e={}),"string"==typeof e&&(e={encoding:e});var i=(e=e||{}).fs||r,a=!0;"throws"in e&&(a=e.throws),i.readFile(t,e,function(r,i){if(r)return n(r);var s;i=o(i);try{s=JSON.parse(i,e?e.reviver:null)}catch(e){return a?(e.message=t+": "+e.message,n(e)):n(null,null)}n(null,s)})},readFileSync:function(t,e){"string"==typeof(e=e||{})&&(e={encoding:e});var n=e.fs||r,i=!0;"throws"in e&&(i=e.throws);try{var a=n.readFileSync(t,e);return a=o(a),JSON.parse(a,e.reviver)}catch(e){if(i)throw e.message=t+": "+e.message,e;return null}},writeFile:function(t,e,n,o){null==o&&(o=n,n={});var a=(n=n||{}).fs||r,s="";try{s=i(e,n)}catch(t){return void(o&&o(t,null))}a.writeFile(t,s,n,o)},writeFileSync:function(t,e,n){var o=(n=n||{}).fs||r,a=i(e,n);return o.writeFileSync(t,a,n)}};t.exports=a},function(t,e,n){"use strict";const r=n(1),i=n(10),o=n(13).pathExists,a=n(49);t.exports=function(t,e,n,s){"function"==typeof n&&(s=n,n={});const c=r.dirname(t);o(c,(r,o)=>r?s(r):o?a.writeJson(t,e,n,s):void i.mkdirs(c,r=>{if(r)return s(r);a.writeJson(t,e,n,s)}))}},function(t,e,n){"use strict";const r=n(6),i=n(1),o=n(10),a=n(49);t.exports=function(t,e,n){const s=i.dirname(t);r.existsSync(s)||o.mkdirsSync(s),a.writeJsonSync(t,e,n)}},function(t,e,n){"use strict";t.exports={moveSync:n(156)}},function(t,e,n){"use strict";const r=n(6),i=n(1),o=n(67).copySync,a=n(30).removeSync,s=n(10).mkdirpSync,c=n(29);function l(t,e,n){try{r.renameSync(t,e)}catch(r){if("EXDEV"!==r.code)throw r;return function(t,e,n){return o(t,e,{overwrite:n,errorOnExist:!0}),a(t)}(t,e,n)}}t.exports=function(t,e,n){const o=(n=n||{}).overwrite||n.clobber||!1,{srcStat:u}=c.checkPathsSync(t,e,"move");return c.checkParentPathsSync(t,u,e,"move"),s(i.dirname(e)),function(t,e,n){if(n)return a(e),l(t,e,n);if(r.existsSync(e))throw new Error("dest already exists.");return l(t,e,n)}(t,e,o)}},function(t,e,n){"use strict";const r=n(8).fromCallback;t.exports={move:r(n(158))}},function(t,e,n){"use strict";const r=n(6),i=n(1),o=n(70).copy,a=n(30).remove,s=n(10).mkdirp,c=n(13).pathExists,l=n(29);function u(t,e,n,i){r.rename(t,e,r=>r?"EXDEV"!==r.code?i(r):function(t,e,n,r){o(t,e,{overwrite:n,errorOnExist:!0},e=>e?r(e):a(t,r))}(t,e,n,i):i())}t.exports=function(t,e,n,r){"function"==typeof n&&(r=n,n={});const o=n.overwrite||n.clobber||!1;l.checkPaths(t,e,"move",(n,p)=>{if(n)return r(n);const{srcStat:f}=p;l.checkParentPaths(t,f,e,"move",n=>{if(n)return r(n);s(i.dirname(e),n=>n?r(n):function(t,e,n,r){if(n)return a(e,i=>i?r(i):u(t,e,n,r));c(e,(i,o)=>i?r(i):o?r(new Error("dest already exists.")):u(t,e,n,r))}(t,e,o,r))})})}},function(t,e,n){"use strict";const r=n(8).fromCallback,i=n(6),o=n(1),a=n(10),s=n(13).pathExists;t.exports={outputFile:r(function(t,e,n,r){"function"==typeof n&&(r=n,n="utf8");const c=o.dirname(t);s(c,(o,s)=>o?r(o):s?i.writeFile(t,e,n,r):void a.mkdirs(c,o=>{if(o)return r(o);i.writeFile(t,e,n,r)}))}),outputFileSync:function(t,...e){const n=o.dirname(t);if(i.existsSync(n))return i.writeFileSync(t,...e);a.mkdirsSync(n),i.writeFileSync(t,...e)}}},function(t,e,n){"use strict";function r(t,e){if(!(t&&e&&t.length&&e.length))throw new Error("Bad alphabet");this.srcAlphabet=t,this.dstAlphabet=e}r.prototype.convert=function(t){var e,n,r,i={},o=this.srcAlphabet.length,a=this.dstAlphabet.length,s=t.length,c="string"==typeof t?"":[];if(!this.isValid(t))throw new Error('Number "'+t+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return t;for(e=0;e=a?(i[r++]=parseInt(n/a,10),n%=a):r>0&&(i[r++]=0);s=r,c=this.dstAlphabet.slice(n,n+1).concat(c)}while(0!==r);return c},r.prototype.isValid=function(t){for(var e=0;e0&&218!==r;){if(255!==t.nextUInt8())throw new Error("Invalid JPEG section offset");n=(r=t.nextUInt8())>=208&&r<=217||218===r?0:t.nextUInt16()-2,e(r,t.branch(0,n)),t.skip(n)}},getSizeFromSOFSection:function(t){return t.skip(1),{height:t.nextUInt16(),width:t.nextUInt16()}},getSectionName:function(t){var e,n;switch(t){case 216:e="SOI";break;case 196:e="DHT";break;case 219:e="DQT";break;case 221:e="DRI";break;case 218:e="SOS";break;case 254:e="COM";break;case 217:e="EOI";break;default:t>=224&&t<=239?(e="APP",n=t-224):t>=192&&t<=207&&196!==t&&200!==t&&204!==t?(e="SOF",n=t-192):t>=208&&t<=215&&(e="RST",n=t-208)}var r={name:e};return"number"==typeof n&&(r.index=n),r}}},function(t,e,n){var r=n(73),i=n(167),o=[{section:r.GPSIFD,type:2,name:"GPSLatitude",refType:1,refName:"GPSLatitudeRef",posVal:"N"},{section:r.GPSIFD,type:4,name:"GPSLongitude",refType:3,refName:"GPSLongitudeRef",posVal:"E"}],a=[{section:r.SubIFD,type:306,name:"ModifyDate"},{section:r.SubIFD,type:36867,name:"DateTimeOriginal"},{section:r.SubIFD,type:36868,name:"CreateDate"},{section:r.SubIFD,type:306,name:"ModifyDate"}];t.exports={castDegreeValues:function(t,e){o.forEach(function(n){var r=t(n);if(r){var i=t({section:n.section,type:n.refType,name:n.refName})===n.posVal?1:-1,o=(r[0]+r[1]/60+r[2]/3600)*i;e(n,o)}})},castDateValues:function(t,e){a.forEach(function(n){var r=t(n);if(r){var o=i.parseExifDate(r);void 0!==o&&e(n,o)}})},simplifyValue:function(t,e){return Array.isArray(t)&&1===(t=t.map(function(t){return 10===e||5===e?t[0]/t[1]:t})).length&&(t=t[0]),t}}},function(t,e){function n(t){return parseInt(t,10)}var r=3600,i=60;function o(t,e){t=t.map(n),e=e.map(n);var r=t[0],i=t[1]-1,o=t[2],a=e[0],s=e[1],c=e[2];return Date.UTC(r,i,o,a,s,c,0)/1e3}function a(t){var e=t.substr(0,10).split("-"),a=t.substr(11,8).split(":"),s=t.substr(19,6).split(":").map(n),c=s[0]*r+s[1]*i,l=o(e,a);if("number"==typeof(l-=c)&&!isNaN(l))return l}function s(t){var e=t.split(" "),n=o(e[0].split(":"),e[1].split(":"));if("number"==typeof n&&!isNaN(n))return n}t.exports={parseDateWithSpecFormat:s,parseDateWithTimezoneFormat:a,parseExifDate:function(t){var e=19===t.length&&":"===t.charAt(4);return 25===t.length&&"T"===t.charAt(10)?a(t):e?s(t):void 0}}},function(t,e){t.exports={exif:{1:"InteropIndex",2:"InteropVersion",11:"ProcessingSoftware",254:"SubfileType",255:"OldSubfileType",256:"ImageWidth",257:"ImageHeight",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",263:"Thresholding",264:"CellWidth",265:"CellLength",266:"FillOrder",269:"DocumentName",270:"ImageDescription",271:"Make",272:"Model",273:"StripOffsets",274:"Orientation",277:"SamplesPerPixel",278:"RowsPerStrip",279:"StripByteCounts",280:"MinSampleValue",281:"MaxSampleValue",282:"XResolution",283:"YResolution",284:"PlanarConfiguration",285:"PageName",286:"XPosition",287:"YPosition",288:"FreeOffsets",289:"FreeByteCounts",290:"GrayResponseUnit",291:"GrayResponseCurve",292:"T4Options",293:"T6Options",296:"ResolutionUnit",297:"PageNumber",300:"ColorResponseUnit",301:"TransferFunction",305:"Software",306:"ModifyDate",315:"Artist",316:"HostComputer",317:"Predictor",318:"WhitePoint",319:"PrimaryChromaticities",320:"ColorMap",321:"HalftoneHints",322:"TileWidth",323:"TileLength",324:"TileOffsets",325:"TileByteCounts",326:"BadFaxLines",327:"CleanFaxData",328:"ConsecutiveBadFaxLines",330:"SubIFD",332:"InkSet",333:"InkNames",334:"NumberofInks",336:"DotRange",337:"TargetPrinter",338:"ExtraSamples",339:"SampleFormat",340:"SMinSampleValue",341:"SMaxSampleValue",342:"TransferRange",343:"ClipPath",344:"XClipPathUnits",345:"YClipPathUnits",346:"Indexed",347:"JPEGTables",351:"OPIProxy",400:"GlobalParametersIFD",401:"ProfileType",402:"FaxProfile",403:"CodingMethods",404:"VersionYear",405:"ModeNumber",433:"Decode",434:"DefaultImageColor",435:"T82Options",437:"JPEGTables",512:"JPEGProc",513:"ThumbnailOffset",514:"ThumbnailLength",515:"JPEGRestartInterval",517:"JPEGLosslessPredictors",518:"JPEGPointTransforms",519:"JPEGQTables",520:"JPEGDCTables",521:"JPEGACTables",529:"YCbCrCoefficients",530:"YCbCrSubSampling",531:"YCbCrPositioning",532:"ReferenceBlackWhite",559:"StripRowCounts",700:"ApplicationNotes",999:"USPTOMiscellaneous",4096:"RelatedImageFileFormat",4097:"RelatedImageWidth",4098:"RelatedImageHeight",18246:"Rating",18247:"XP_DIP_XML",18248:"StitchInfo",18249:"RatingPercent",32781:"ImageID",32931:"WangTag1",32932:"WangAnnotation",32933:"WangTag3",32934:"WangTag4",32995:"Matteing",32996:"DataType",32997:"ImageDepth",32998:"TileDepth",33405:"Model2",33421:"CFARepeatPatternDim",33422:"CFAPattern2",33423:"BatteryLevel",33424:"KodakIFD",33432:"Copyright",33434:"ExposureTime",33437:"FNumber",33445:"MDFileTag",33446:"MDScalePixel",33447:"MDColorTable",33448:"MDLabName",33449:"MDSampleInfo",33450:"MDPrepDate",33451:"MDPrepTime",33452:"MDFileUnits",33550:"PixelScale",33589:"AdventScale",33590:"AdventRevision",33628:"UIC1Tag",33629:"UIC2Tag",33630:"UIC3Tag",33631:"UIC4Tag",33723:"IPTC-NAA",33918:"IntergraphPacketData",33919:"IntergraphFlagRegisters",33920:"IntergraphMatrix",33921:"INGRReserved",33922:"ModelTiePoint",34016:"Site",34017:"ColorSequence",34018:"IT8Header",34019:"RasterPadding",34020:"BitsPerRunLength",34021:"BitsPerExtendedRunLength",34022:"ColorTable",34023:"ImageColorIndicator",34024:"BackgroundColorIndicator",34025:"ImageColorValue",34026:"BackgroundColorValue",34027:"PixelIntensityRange",34028:"TransparencyIndicator",34029:"ColorCharacterization",34030:"HCUsage",34031:"TrapIndicator",34032:"CMYKEquivalent",34118:"SEMInfo",34152:"AFCP_IPTC",34232:"PixelMagicJBIGOptions",34264:"ModelTransform",34306:"WB_GRGBLevels",34310:"LeafData",34377:"PhotoshopSettings",34665:"ExifOffset",34675:"ICC_Profile",34687:"TIFF_FXExtensions",34688:"MultiProfiles",34689:"SharedData",34690:"T88Options",34732:"ImageLayer",34735:"GeoTiffDirectory",34736:"GeoTiffDoubleParams",34737:"GeoTiffAsciiParams",34850:"ExposureProgram",34852:"SpectralSensitivity",34853:"GPSInfo",34855:"ISO",34856:"Opto-ElectricConvFactor",34857:"Interlace",34858:"TimeZoneOffset",34859:"SelfTimerMode",34864:"SensitivityType",34865:"StandardOutputSensitivity",34866:"RecommendedExposureIndex",34867:"ISOSpeed",34868:"ISOSpeedLatitudeyyy",34869:"ISOSpeedLatitudezzz",34908:"FaxRecvParams",34909:"FaxSubAddress",34910:"FaxRecvTime",34954:"LeafSubIFD",36864:"ExifVersion",36867:"DateTimeOriginal",36868:"CreateDate",37121:"ComponentsConfiguration",37122:"CompressedBitsPerPixel",37377:"ShutterSpeedValue",37378:"ApertureValue",37379:"BrightnessValue",37380:"ExposureCompensation",37381:"MaxApertureValue",37382:"SubjectDistance",37383:"MeteringMode",37384:"LightSource",37385:"Flash",37386:"FocalLength",37387:"FlashEnergy",37388:"SpatialFrequencyResponse",37389:"Noise",37390:"FocalPlaneXResolution",37391:"FocalPlaneYResolution",37392:"FocalPlaneResolutionUnit",37393:"ImageNumber",37394:"SecurityClassification",37395:"ImageHistory",37396:"SubjectArea",37397:"ExposureIndex",37398:"TIFF-EPStandardID",37399:"SensingMethod",37434:"CIP3DataFile",37435:"CIP3Sheet",37436:"CIP3Side",37439:"StoNits",37500:"MakerNote",37510:"UserComment",37520:"SubSecTime",37521:"SubSecTimeOriginal",37522:"SubSecTimeDigitized",37679:"MSDocumentText",37680:"MSPropertySetStorage",37681:"MSDocumentTextPosition",37724:"ImageSourceData",40091:"XPTitle",40092:"XPComment",40093:"XPAuthor",40094:"XPKeywords",40095:"XPSubject",40960:"FlashpixVersion",40961:"ColorSpace",40962:"ExifImageWidth",40963:"ExifImageHeight",40964:"RelatedSoundFile",40965:"InteropOffset",41483:"FlashEnergy",41484:"SpatialFrequencyResponse",41485:"Noise",41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:"FocalPlaneResolutionUnit",41489:"ImageNumber",41490:"SecurityClassification",41491:"ImageHistory",41492:"SubjectLocation",41493:"ExposureIndex",41494:"TIFF-EPStandardID",41495:"SensingMethod",41728:"FileSource",41729:"SceneType",41730:"CFAPattern",41985:"CustomRendered",41986:"ExposureMode",41987:"WhiteBalance",41988:"DigitalZoomRatio",41989:"FocalLengthIn35mmFormat",41990:"SceneCaptureType",41991:"GainControl",41992:"Contrast",41993:"Saturation",41994:"Sharpness",41995:"DeviceSettingDescription",41996:"SubjectDistanceRange",42016:"ImageUniqueID",42032:"OwnerName",42033:"SerialNumber",42034:"LensInfo",42035:"LensMake",42036:"LensModel",42037:"LensSerialNumber",42112:"GDALMetadata",42113:"GDALNoData",42240:"Gamma",44992:"ExpandSoftware",44993:"ExpandLens",44994:"ExpandFilm",44995:"ExpandFilterLens",44996:"ExpandScanner",44997:"ExpandFlashLamp",48129:"PixelFormat",48130:"Transformation",48131:"Uncompressed",48132:"ImageType",48256:"ImageWidth",48257:"ImageHeight",48258:"WidthResolution",48259:"HeightResolution",48320:"ImageOffset",48321:"ImageByteCount",48322:"AlphaOffset",48323:"AlphaByteCount",48324:"ImageDataDiscard",48325:"AlphaDataDiscard",50215:"OceScanjobDesc",50216:"OceApplicationSelector",50217:"OceIDNumber",50218:"OceImageLogic",50255:"Annotations",50341:"PrintIM",50560:"USPTOOriginalContentType",50706:"DNGVersion",50707:"DNGBackwardVersion",50708:"UniqueCameraModel",50709:"LocalizedCameraModel",50710:"CFAPlaneColor",50711:"CFALayout",50712:"LinearizationTable",50713:"BlackLevelRepeatDim",50714:"BlackLevel",50715:"BlackLevelDeltaH",50716:"BlackLevelDeltaV",50717:"WhiteLevel",50718:"DefaultScale",50719:"DefaultCropOrigin",50720:"DefaultCropSize",50721:"ColorMatrix1",50722:"ColorMatrix2",50723:"CameraCalibration1",50724:"CameraCalibration2",50725:"ReductionMatrix1",50726:"ReductionMatrix2",50727:"AnalogBalance",50728:"AsShotNeutral",50729:"AsShotWhiteXY",50730:"BaselineExposure",50731:"BaselineNoise",50732:"BaselineSharpness",50733:"BayerGreenSplit",50734:"LinearResponseLimit",50735:"CameraSerialNumber",50736:"DNGLensInfo",50737:"ChromaBlurRadius",50738:"AntiAliasStrength",50739:"ShadowScale",50740:"DNGPrivateData",50741:"MakerNoteSafety",50752:"RawImageSegmentation",50778:"CalibrationIlluminant1",50779:"CalibrationIlluminant2",50780:"BestQualityScale",50781:"RawDataUniqueID",50784:"AliasLayerMetadata",50827:"OriginalRawFileName",50828:"OriginalRawFileData",50829:"ActiveArea",50830:"MaskedAreas",50831:"AsShotICCProfile",50832:"AsShotPreProfileMatrix",50833:"CurrentICCProfile",50834:"CurrentPreProfileMatrix",50879:"ColorimetricReference",50898:"PanasonicTitle",50899:"PanasonicTitle2",50931:"CameraCalibrationSig",50932:"ProfileCalibrationSig",50933:"ProfileIFD",50934:"AsShotProfileName",50935:"NoiseReductionApplied",50936:"ProfileName",50937:"ProfileHueSatMapDims",50938:"ProfileHueSatMapData1",50939:"ProfileHueSatMapData2",50940:"ProfileToneCurve",50941:"ProfileEmbedPolicy",50942:"ProfileCopyright",50964:"ForwardMatrix1",50965:"ForwardMatrix2",50966:"PreviewApplicationName",50967:"PreviewApplicationVersion",50968:"PreviewSettingsName",50969:"PreviewSettingsDigest",50970:"PreviewColorSpace",50971:"PreviewDateTime",50972:"RawImageDigest",50973:"OriginalRawFileDigest",50974:"SubTileBlockSize",50975:"RowInterleaveFactor",50981:"ProfileLookTableDims",50982:"ProfileLookTableData",51008:"OpcodeList1",51009:"OpcodeList2",51022:"OpcodeList3",51041:"NoiseProfile",51043:"TimeCodes",51044:"FrameRate",51058:"TStop",51081:"ReelName",51089:"OriginalDefaultFinalSize",51090:"OriginalBestQualitySize",51091:"OriginalDefaultCropSize",51105:"CameraLabel",51107:"ProfileHueSatMapEncoding",51108:"ProfileLookTableEncoding",51109:"BaselineExposureOffset",51110:"DefaultBlackRender",51111:"NewRawImageDigest",51112:"RawToPreviewGain",51125:"DefaultUserCrop",59932:"Padding",59933:"OffsetSchema",65000:"OwnerName",65001:"SerialNumber",65002:"Lens",65024:"KDC_IFD",65100:"RawFile",65101:"Converter",65102:"WhiteBalance",65105:"Exposure",65106:"Shadows",65107:"Brightness",65108:"Contrast",65109:"Saturation",65110:"Sharpness",65111:"Smoothness",65112:"MoireFilter"},gps:{0:"GPSVersionID",1:"GPSLatitudeRef",2:"GPSLatitude",3:"GPSLongitudeRef",4:"GPSLongitude",5:"GPSAltitudeRef",6:"GPSAltitude",7:"GPSTimeStamp",8:"GPSSatellites",9:"GPSStatus",10:"GPSMeasureMode",11:"GPSDOP",12:"GPSSpeedRef",13:"GPSSpeed",14:"GPSTrackRef",15:"GPSTrack",16:"GPSImgDirectionRef",17:"GPSImgDirection",18:"GPSMapDatum",19:"GPSDestLatitudeRef",20:"GPSDestLatitude",21:"GPSDestLongitudeRef",22:"GPSDestLongitude",23:"GPSDestBearingRef",24:"GPSDestBearing",25:"GPSDestDistanceRef",26:"GPSDestDistance",27:"GPSProcessingMethod",28:"GPSAreaInformation",29:"GPSDateStamp",30:"GPSDifferential",31:"GPSHPositioningError"}}},function(t,e){function n(t,e,n,r,i,o){this.global=i,e=e||0,n=n||t.byteLength-e,this.arrayBuffer=t.slice(e,e+n),this.view=new i.DataView(this.arrayBuffer,0,this.arrayBuffer.byteLength),this.setBigEndian(r),this.offset=0,this.parentOffset=(o||0)+e}n.prototype={setBigEndian:function(t){this.littleEndian=!t},nextUInt8:function(){var t=this.view.getUint8(this.offset);return this.offset+=1,t},nextInt8:function(){var t=this.view.getInt8(this.offset);return this.offset+=1,t},nextUInt16:function(){var t=this.view.getUint16(this.offset,this.littleEndian);return this.offset+=2,t},nextUInt32:function(){var t=this.view.getUint32(this.offset,this.littleEndian);return this.offset+=4,t},nextInt16:function(){var t=this.view.getInt16(this.offset,this.littleEndian);return this.offset+=2,t},nextInt32:function(){var t=this.view.getInt32(this.offset,this.littleEndian);return this.offset+=4,t},nextFloat:function(){var t=this.view.getFloat32(this.offset,this.littleEndian);return this.offset+=4,t},nextDouble:function(){var t=this.view.getFloat64(this.offset,this.littleEndian);return this.offset+=8,t},nextBuffer:function(t){var e=this.arrayBuffer.slice(this.offset,this.offset+t);return this.offset+=t,e},remainingLength:function(){return this.arrayBuffer.byteLength-this.offset},nextString:function(t){var e=this.arrayBuffer.slice(this.offset,this.offset+t);return e=String.fromCharCode.apply(null,new this.global.Uint8Array(e)),this.offset+=t,e},mark:function(){var t=this;return{openWithOffset:function(e){return e=(e||0)+this.offset,new n(t.arrayBuffer,e,t.arrayBuffer.byteLength-e,!t.littleEndian,t.global,t.parentOffset)},offset:this.offset,getParentOffset:function(){return t.parentOffset}}},offsetFrom:function(t){return this.parentOffset+this.offset-(t.offset+t.getParentOffset())},skip:function(t){this.offset+=t},branch:function(t,e){return e="number"==typeof e?e:this.arrayBuffer.byteLength-(this.offset+t),new n(this.arrayBuffer,this.offset+t,e,!this.littleEndian,this.global,this.parentOffset)}},t.exports=n},function(t,e){function n(t,e,n,r){this.buffer=t,this.offset=e||0,n="number"==typeof n?n:t.length,this.endPosition=this.offset+n,this.setBigEndian(r)}n.prototype={setBigEndian:function(t){this.bigEndian=!!t},nextUInt8:function(){var t=this.buffer.readUInt8(this.offset);return this.offset+=1,t},nextInt8:function(){var t=this.buffer.readInt8(this.offset);return this.offset+=1,t},nextUInt16:function(){var t=this.bigEndian?this.buffer.readUInt16BE(this.offset):this.buffer.readUInt16LE(this.offset);return this.offset+=2,t},nextUInt32:function(){var t=this.bigEndian?this.buffer.readUInt32BE(this.offset):this.buffer.readUInt32LE(this.offset);return this.offset+=4,t},nextInt16:function(){var t=this.bigEndian?this.buffer.readInt16BE(this.offset):this.buffer.readInt16LE(this.offset);return this.offset+=2,t},nextInt32:function(){var t=this.bigEndian?this.buffer.readInt32BE(this.offset):this.buffer.readInt32LE(this.offset);return this.offset+=4,t},nextFloat:function(){var t=this.bigEndian?this.buffer.readFloatBE(this.offset):this.buffer.readFloatLE(this.offset);return this.offset+=4,t},nextDouble:function(){var t=this.bigEndian?this.buffer.readDoubleBE(this.offset):this.buffer.readDoubleLE(this.offset);return this.offset+=8,t},nextBuffer:function(t){var e=this.buffer.slice(this.offset,this.offset+t);return this.offset+=t,e},remainingLength:function(){return this.endPosition-this.offset},nextString:function(t){var e=this.buffer.toString("utf8",this.offset,this.offset+t);return this.offset+=t,e},mark:function(){var t=this;return{openWithOffset:function(e){return e=(e||0)+this.offset,new n(t.buffer,e,t.endPosition-e,t.bigEndian)},offset:this.offset}},offsetFrom:function(t){return this.offset-t.offset},skip:function(t){this.offset+=t},branch:function(t,e){return e="number"==typeof e?e:this.endPosition-(this.offset+t),new n(this.buffer,this.offset+t,e,this.bigEndian)}},t.exports=n},function(t,e){function n(t){Math.round;var e,n,r,i,o,a=Math.floor,s=new Array(64),c=new Array(64),l=new Array(64),u=new Array(64),p=new Array(65535),f=new Array(65535),h=new Array(64),d=new Array(64),g=[],m=0,_=7,b=new Array(64),y=new Array(64),v=new Array(64),x=new Array(256),w=new Array(2048),k=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],E=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],S=[0,1,2,3,4,5,6,7,8,9,10,11],I=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],T=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],O=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],A=[0,1,2,3,4,5,6,7,8,9,10,11],C=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],P=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function D(t,e){for(var n=0,r=0,i=new Array,o=1;o<=16;o++){for(var a=1;a<=t[o];a++)i[e[r]]=[],i[e[r]][0]=n,i[e[r]][1]=o,r++,n++;n*=2}return i}function B(t){for(var e=t[0],n=t[1]-1;n>=0;)e&1<>8&255),L(255&t)}function M(t,e,n,r,i){for(var o,a=i[0],s=i[240],c=function(t,e){var n,r,i,o,a,s,c,l,u,p,f=0;for(u=0;u<8;++u){n=t[f],r=t[f+1],i=t[f+2],o=t[f+3],a=t[f+4],s=t[f+5],c=t[f+6];var d=n+(l=t[f+7]),g=n-l,m=r+c,_=r-c,b=i+s,y=i-s,v=o+a,x=o-a,w=d+v,k=d-v,E=m+b,S=m-b;t[f]=w+E,t[f+4]=w-E;var I=.707106781*(S+k);t[f+2]=k+I,t[f+6]=k-I;var T=.382683433*((w=x+y)-(S=_+g)),O=.5411961*w+T,A=1.306562965*S+T,C=.707106781*(E=y+_),P=g+C,D=g-C;t[f+5]=D+O,t[f+3]=D-O,t[f+1]=P+A,t[f+7]=P-A,f+=8}for(f=0,u=0;u<8;++u){n=t[f],r=t[f+8],i=t[f+16],o=t[f+24],a=t[f+32],s=t[f+40],c=t[f+48];var B=n+(l=t[f+56]),L=n-l,N=r+c,M=r-c,z=i+s,R=i-s,j=o+a,F=o-a,U=B+j,G=B-j,H=N+z,W=N-z;t[f]=U+H,t[f+32]=U-H;var q=.707106781*(W+G);t[f+16]=G+q,t[f+48]=G-q;var Y=.382683433*((U=F+R)-(W=M+L)),V=.5411961*U+Y,Z=1.306562965*W+Y,$=.707106781*(H=R+M),X=L+$,Q=L-$;t[f+40]=Q+V,t[f+24]=Q-V,t[f+8]=X+Z,t[f+56]=X-Z,f++}for(u=0;u<64;++u)p=t[u]*e[u],h[u]=p>0?p+.5|0:p-.5|0;return h}(t,e),l=0;l<64;++l)d[k[l]]=c[l];var u=d[0]-n;n=d[0],0==u?B(r[0]):(B(r[f[o=32767+u]]),B(p[o]));for(var g=63;g>0&&0==d[g];g--);if(0==g)return B(a),n;for(var m,_=1;_<=g;){for(var b=_;0==d[_]&&_<=g;++_);var y=_-b;if(y>=16){m=y>>4;for(var v=1;v<=m;++v)B(s);y&=15}o=32767+d[_],B(i[(y<<4)+f[o]]),B(p[o]),_++}return 63!=g&&B(a),n}function z(t){if(t<=0&&(t=1),t>100&&(t=100),o!=t){(function(t){for(var e=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],n=0;n<64;n++){var r=a((e[n]*t+50)/100);r<1?r=1:r>255&&(r=255),s[k[n]]=r}for(var i=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],o=0;o<64;o++){var p=a((i[o]*t+50)/100);p<1?p=1:p>255&&(p=255),c[k[o]]=p}for(var f=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],h=0,d=0;d<8;d++)for(var g=0;g<8;g++)l[h]=1/(s[k[h]]*f[d]*f[g]*8),u[h]=1/(c[k[h]]*f[d]*f[g]*8),h++})(t<50?Math.floor(5e3/t):Math.floor(200-2*t)),o=t}}this.encode=function(t,o){(new Date).getTime();o&&z(o),g=new Array,m=0,_=7,N(65496),N(65504),N(16),L(74),L(70),L(73),L(70),L(0),L(1),L(1),L(0),N(1),N(1),L(0),L(0),function(){N(65499),N(132),L(0);for(var t=0;t<64;t++)L(s[t]);L(1);for(var e=0;e<64;e++)L(c[e])}(),function(t,e){N(65472),N(17),L(8),N(e),N(t),L(3),L(1),L(17),L(0),L(2),L(17),L(1),L(3),L(17),L(1)}(t.width,t.height),function(){N(65476),N(418),L(0);for(var t=0;t<16;t++)L(E[t+1]);for(var e=0;e<=11;e++)L(S[e]);L(16);for(var n=0;n<16;n++)L(I[n+1]);for(var r=0;r<=161;r++)L(T[r]);L(1);for(var i=0;i<16;i++)L(O[i+1]);for(var o=0;o<=11;o++)L(A[o]);L(17);for(var a=0;a<16;a++)L(C[a+1]);for(var s=0;s<=161;s++)L(P[s])}(),N(65498),N(12),L(3),L(1),L(0),L(2),L(17),L(3),L(17),L(0),L(63),L(0);var a=0,p=0,f=0;m=0,_=7,this.encode.displayName="_encode_";for(var h,d,x,k,D,R,j,F,U,G=t.data,H=t.width,W=t.height,q=4*H,Y=0;Y>3)*q+(j=4*(7&U)),Y+F>=W&&(R-=q*(Y+1+F-W)),h+j>=q&&(R-=h+j-q+4),d=G[R++],x=G[R++],k=G[R++],b[U]=(w[d]+w[x+256>>0]+w[k+512>>0]>>16)-128,y[U]=(w[d+768>>0]+w[x+1024>>0]+w[k+1280>>0]>>16)-128,v[U]=(w[d+1280>>0]+w[x+1536>>0]+w[k+1792>>0]>>16)-128;a=M(b,l,a,e,r),p=M(y,u,p,n,i),f=M(v,u,f,n,i),h+=32}Y+=8}if(_>=0){var V=[];V[1]=_+1,V[0]=(1<<_+1)-1,B(V)}return N(65497),new Buffer(g)},function(){(new Date).getTime();t||(t=50),function(){for(var t=String.fromCharCode,e=0;e<256;e++)x[e]=t(e)}(),e=D(E,S),n=D(O,A),r=D(I,T),i=D(C,P),function(){for(var t=1,e=2,n=1;n<=15;n++){for(var r=t;r>0]=38470*t,w[t+512>>0]=7471*t+32768,w[t+768>>0]=-11059*t,w[t+1024>>0]=-21709*t,w[t+1280>>0]=32768*t+8421375,w[t+1536>>0]=-27439*t,w[t+1792>>0]=-5329*t}(),z(t),(new Date).getTime()}()}t.exports=function(t,e){void 0===e&&(e=50);return{data:new n(e).encode(t,e),width:t.width,height:t.height}}},function(t,e){var n=function(){"use strict";var t=new Int32Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),e=4017,n=799,r=3406,i=2276,o=1567,a=3784,s=5793,c=2896;function l(){}function u(t,e){for(var n,r,i=0,o=[],a=16;a>0&&!t[a-1];)a--;o.push({children:[],index:0});var s,c=o[0];for(n=0;n0;)c=o.pop();for(c.index++,o.push(c);o.length<=n;)o.push(s={children:[],index:0}),c.children[c.index]=s.children,c=s;i++}n+10)return h>>--d&1;if(255==(h=e[n++])){var t=e[n++];if(t)throw new Error("unexpected marker: "+(h<<8|t).toString(16))}return d=7,h>>>7}function m(t){for(var e,n=t;null!==(e=g());){if("number"==typeof(n=n[e]))return n;if("object"!=typeof n)throw new Error("invalid huffman sequence")}return null}function _(t){for(var e=0;t>0;){var n=g();if(null===n)return;e=e<<1|n,t--}return e}function b(t){var e=_(t);return e>=1<0)y--;else for(var r=a,i=s;r<=i;){var o=m(e.huffmanTableAC),c=15&o,u=o>>4;if(0!==c)n[t[r+=u]]=b(c)*(1<>4,0===f)o<15?(y=_(o)+(1<>4;if(0!==s)n[t[o+=c]]=b(s),o++;else{if(c<15)break;o+=16}}};var P,D,B,L,N=0;for(D=1==C?i[0].blocksPerLine*i[0].blocksPerColumn:u*r.mcusPerColumn,o||(o=D);N=65488&&P<=65495))break;n+=2}return n-f}function f(t,l){var u,p,f=[],h=l.blocksPerLine,d=l.blocksPerColumn,g=h<<3,m=new Int32Array(64),_=new Uint8Array(64);function b(t,u,p){var f,h,d,g,m,_,b,y,v,x,w=l.quantizationTable,k=p;for(x=0;x<64;x++)k[x]=t[x]*w[x];for(x=0;x<8;++x){var E=8*x;0!=k[1+E]||0!=k[2+E]||0!=k[3+E]||0!=k[4+E]||0!=k[5+E]||0!=k[6+E]||0!=k[7+E]?(f=s*k[0+E]+128>>8,h=s*k[4+E]+128>>8,d=k[2+E],g=k[6+E],m=c*(k[1+E]-k[7+E])+128>>8,y=c*(k[1+E]+k[7+E])+128>>8,_=k[3+E]<<4,b=k[5+E]<<4,v=f-h+1>>1,f=f+h+1>>1,h=v,v=d*a+g*o+128>>8,d=d*o-g*a+128>>8,g=v,v=m-b+1>>1,m=m+b+1>>1,b=v,v=y+_+1>>1,_=y-_+1>>1,y=v,v=f-g+1>>1,f=f+g+1>>1,g=v,v=h-d+1>>1,h=h+d+1>>1,d=v,v=m*i+y*r+2048>>12,m=m*r-y*i+2048>>12,y=v,v=_*n+b*e+2048>>12,_=_*e-b*n+2048>>12,b=v,k[0+E]=f+y,k[7+E]=f-y,k[1+E]=h+b,k[6+E]=h-b,k[2+E]=d+_,k[5+E]=d-_,k[3+E]=g+m,k[4+E]=g-m):(v=s*k[0+E]+512>>10,k[0+E]=v,k[1+E]=v,k[2+E]=v,k[3+E]=v,k[4+E]=v,k[5+E]=v,k[6+E]=v,k[7+E]=v)}for(x=0;x<8;++x){var S=x;0!=k[8+S]||0!=k[16+S]||0!=k[24+S]||0!=k[32+S]||0!=k[40+S]||0!=k[48+S]||0!=k[56+S]?(f=s*k[0+S]+2048>>12,h=s*k[32+S]+2048>>12,d=k[16+S],g=k[48+S],m=c*(k[8+S]-k[56+S])+2048>>12,y=c*(k[8+S]+k[56+S])+2048>>12,_=k[24+S],b=k[40+S],v=f-h+1>>1,f=f+h+1>>1,h=v,v=d*a+g*o+2048>>12,d=d*o-g*a+2048>>12,g=v,v=m-b+1>>1,m=m+b+1>>1,b=v,v=y+_+1>>1,_=y-_+1>>1,y=v,v=f-g+1>>1,f=f+g+1>>1,g=v,v=h-d+1>>1,h=h+d+1>>1,d=v,v=m*i+y*r+2048>>12,m=m*r-y*i+2048>>12,y=v,v=_*n+b*e+2048>>12,_=_*e-b*n+2048>>12,b=v,k[0+S]=f+y,k[56+S]=f-y,k[8+S]=h+b,k[48+S]=h-b,k[16+S]=d+_,k[40+S]=d-_,k[24+S]=g+m,k[32+S]=g-m):(v=s*p[x+0]+8192>>14,k[0+S]=v,k[8+S]=v,k[16+S]=v,k[24+S]=v,k[32+S]=v,k[40+S]=v,k[48+S]=v,k[56+S]=v)}for(x=0;x<64;++x){var I=128+(k[x]+8>>4);u[x]=I<0?0:I>255?255:I}}for(var y=0;y255?255:t}return l.prototype={load:function(t){var e=new XMLHttpRequest;e.open("GET",t,!0),e.responseType="arraybuffer",e.onload=function(){var t=new Uint8Array(e.response||e.mozResponseArrayBuffer);this.parse(t),this.onload&&this.onload()}.bind(this),e.send(null)},parse:function(e){var n=0;e.length;function r(){var t=e[n]<<8|e[n+1];return n+=2,t}function i(){var t=r(),i=e.subarray(n,n+t-2);return n+=i.length,i}function o(t){var e,n,r=0,i=0;for(n in t.components)t.components.hasOwnProperty(n)&&(r<(e=t.components[n]).h&&(r=e.h),i>4==0)for(U=0;U<64;U++){x[t[U]]=e[n++]}else{if(v>>4!=1)throw new Error("DQT: invalid table spec");for(U=0;U<64;U++){x[t[U]]=r()}}h[15&v]=x}break;case 65472:case 65473:case 65474:r(),(a={}).extended=65473===_,a.progressive=65474===_,a.precision=e[n++],a.scanLines=r(),a.samplesPerLine=r(),a.components={},a.componentsOrder=[];var w,k=e[n++];for(j=0;j>4,S=15&e[n+1],I=e[n+2];a.componentsOrder.push(w),a.components[w]={h:E,v:S,quantizationIdx:I},n+=3}o(a),d.push(a);break;case 65476:var T=r();for(j=2;j>4==0?m:g)[15&O]=u(A,P)}break;case 65501:r(),s=r();break;case 65498:r();var D=e[n++],B=[];for(j=0;j>4],G.huffmanTableAC=g[15&L],B.push(G)}var N=e[n++],M=e[n++],z=e[n++],R=p(e,n,a,B,s,N,M,z>>4,15&z);n+=R;break;case 65535:255!==e[n]&&n--;break;default:if(255==e[n-3]&&e[n-2]>=192&&e[n-2]<=254){n-=3;break}throw new Error("unknown JPEG marker "+_.toString(16))}_=r()}if(1!=d.length)throw new Error("only single frame JPEGs supported");for(var j=0;j>3))*this._bitmapInfo.height,n=Math.max(e,i.Z_MIN_CHUNK);this._inflate=i.createInflate({chunkSize:n});var r=e,o=this.emit.bind(this,"error");this._inflate.on("error",function(t){r&&o(t)}),this._filter.on("complete",this._complete.bind(this));var a=this._filter.write.bind(this._filter);this._inflate.on("data",function(t){r&&(t.length>r&&(t=t.slice(0,r)),r-=t.length,a(t))}),this._inflate.on("end",this._filter.end.bind(this._filter))}this._inflate.write(t)},u.prototype._handleMetaData=function(t){this._metaData=t,this._bitmapInfo=Object.create(t),this._filter=new a(this._bitmapInfo)},u.prototype._handleTransColor=function(t){this._bitmapInfo.transColor=t},u.prototype._handlePalette=function(t){this._bitmapInfo.palette=t},u.prototype._simpleTransparency=function(){this._metaData.alpha=!0},u.prototype._headersFinished=function(){this.emit("metadata",this._metaData)},u.prototype._finished=function(){this.errord||(this._inflate?this._inflate.end():this.emit("error","No Inflate block"),this.destroySoon())},u.prototype._complete=function(t){if(!this.errord){try{var e=c.dataToBitMap(t,this._bitmapInfo),n=l(e,this._bitmapInfo);e=null}catch(t){return void this._handleError(t)}this.emit("parsed",n)}}},function(t,e,n){"use strict";var r=n(3),i=n(74),o=n(75),a=t.exports=function(t){i.call(this);var e=[],n=this;this._filter=new o(t,{read:this.read.bind(this),write:function(t){e.push(t)},complete:function(){n.emit("complete",Buffer.concat(e))}}),this._filter.start()};r.inherits(a,i)},function(t,e,n){"use strict";var r=n(3),i=n(7),o=n(21),a=n(82),s=t.exports=function(t){i.call(this);var e=t||{};this._packer=new a(e),this._deflate=this._packer.createDeflate(),this.readable=!0};r.inherits(s,i),s.prototype.pack=function(t,e,n,r){this.emit("data",new Buffer(o.PNG_SIGNATURE)),this.emit("data",this._packer.packIHDR(e,n)),r&&this.emit("data",this._packer.packGAMA(r));var i=this._packer.filterData(t,e,n);this._deflate.on("error",this.emit.bind(this,"error")),this._deflate.on("data",function(t){this.emit("data",this._packer.packIDAT(t))}.bind(this)),this._deflate.on("end",function(){this.emit("data",this._packer.packIEND()),this.emit("end")}.bind(this)),this._deflate.end(i)}},function(t,e,n){"use strict";var r=n(21);t.exports=function(t,e,n,i){var o,a=-1!==[r.COLORTYPE_COLOR_ALPHA,r.COLORTYPE_ALPHA].indexOf(i.colorType);if(i.colorType===i.inputColorType){var s=(o=new ArrayBuffer(2),new DataView(o).setInt16(0,256,!0),256!==new Int16Array(o)[0]);if(8===i.bitDepth||16===i.bitDepth&&s)return t}var c=16!==i.bitDepth?t:new Uint16Array(t.buffer),l=255,u=r.COLORTYPE_TO_BPP_MAP[i.inputColorType];4!==u||i.inputHasAlpha||(u=3);var p=r.COLORTYPE_TO_BPP_MAP[i.colorType];16===i.bitDepth&&(l=65535,p*=2);var f=new Buffer(e*n*p),h=0,d=0,g=i.bgColor||{};function m(){var t,e,n,o=l;switch(i.inputColorType){case r.COLORTYPE_COLOR_ALPHA:o=c[h+3],t=c[h],e=c[h+1],n=c[h+2];break;case r.COLORTYPE_COLOR:t=c[h],e=c[h+1],n=c[h+2];break;case r.COLORTYPE_ALPHA:o=c[h+1],e=t=c[h],n=t;break;case r.COLORTYPE_GRAYSCALE:e=t=c[h],n=t;break;default:throw new Error("input color type:"+i.inputColorType+" is not supported at present")}return i.inputHasAlpha&&(a||(o/=l,t=Math.min(Math.max(Math.round((1-o)*g.red+o*t),0),l),e=Math.min(Math.max(Math.round((1-o)*g.green+o*e),0),l),n=Math.min(Math.max(Math.round((1-o)*g.blue+o*n),0),l))),{red:t,green:e,blue:n,alpha:o}}void 0===g.red&&(g.red=l),void 0===g.green&&(g.green=l),void 0===g.blue&&(g.blue=l);for(var _=0;_=o?t[e+a-o]:0,c=t[e+a]-s;r[i+a]=c}},2:function(t,e,n,r,i){for(var o=0;o0?t[e+o-n]:0,s=t[e+o]-a;r[i+o]=s}},3:function(t,e,n,r,i,o){for(var a=0;a=o?t[e+a-o]:0,c=e>0?t[e+a-n]:0,l=t[e+a]-(s+c>>1);r[i+a]=l}},4:function(t,e,n,i,o,a){for(var s=0;s=a?t[e+s-a]:0,l=e>0?t[e+s-n]:0,u=e>0&&s>=a?t[e+s-(n+a)]:0,p=t[e+s]-r(c,l,u);i[o+s]=p}}},o={0:function(t,e,n){for(var r=0,i=e+n,o=e;o=r?t[e+o-r]:0,s=t[e+o]-a;i+=Math.abs(s)}return i},2:function(t,e,n){for(var r=0,i=e+n,o=e;o0?t[o-n]:0,s=t[o]-a;r+=Math.abs(s)}return r},3:function(t,e,n,r){for(var i=0,o=0;o=r?t[e+o-r]:0,s=e>0?t[e+o-n]:0,c=t[e+o]-(a+s>>1);i+=Math.abs(c)}return i},4:function(t,e,n,i){for(var o=0,a=0;a=i?t[e+a-i]:0,c=e>0?t[e+a-n]:0,l=e>0&&a>=i?t[e+a-(n+i)]:0,u=t[e+a]-r(s,c,l);o+=Math.abs(u)}return o}};t.exports=function(t,e,n,r,a){var s;if("filterType"in r&&-1!==r.filterType){if("number"!=typeof r.filterType)throw new Error("unrecognised filter types");s=[r.filterType]}else s=[0,1,2,3,4];16===r.bitDepth&&(a*=2);for(var c=e*a,l=0,u=0,p=new Buffer((c+1)*n),f=s[0],h=0;h1)for(var d=1/0,g=0;g>3))*p.height;g=o(m,{chunkSize:_,maxLength:_})}if(m=null,!g||!g.length)throw new Error("bad png - invalid inflate data response");var b=s.process(g,p);m=null;var y=l.dataToBitMap(b,p);b=null;var v=u(y,p);return p.data=v,p.gamma=f||0,p}},function(t,e,n){"use strict";var r=n(20).ok,i=n(12),o=n(3),a=n(4).kMaxLength;function s(t){if(!(this instanceof s))return new s(t);t&&t.chunkSize=0,"have should not go down"),n>0){var i=s._buffer.slice(s._offset,s._offset+n);if(s._offset+=n,i.length>p&&(i=i.slice(0,p)),h.push(i),d+=i.length,0===(p-=i.length))return!1}return(0===e||s._offset>=s._chunkSize)&&(u=s._chunkSize,s._offset=0,s._buffer=Buffer.allocUnsafe(s._chunkSize)),0===e&&(f+=l-t,l=t,!0)}}this.on("error",function(t){o=t}),r(this._handle,"zlib binding closed");do{var m=this._handle.writeSync(e,t,f,l,this._buffer,this._offset,u);m=m||this._writeState}while(!this._hadError&&g(m[0],m[1]));if(this._hadError)throw o;if(d>=a)throw c(this),new RangeError("Cannot create final Buffer. It would be larger than 0x"+a.toString(16)+" bytes");var _=Buffer.concat(h,d);return c(this),_},o.inherits(s,i.Inflate),t.exports=e=l,e.Inflate=s,e.createInflate=function(t){return new s(t)},e.inflateSync=l},function(t,e,n){"use strict";var r=n(83),i=n(75);e.process=function(t,e){var n=[],o=new r(t);return new i(e,{read:o.read.bind(o),write:function(t){n.push(t)},complete:function(){}}).start(),o.process(),Buffer.concat(n)}},function(t,e,n){"use strict";var r=!0,i=n(12);i.deflateSync||(r=!1);var o=n(21),a=n(82);t.exports=function(t,e){if(!r)throw new Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");var n=new a(e||{}),s=[];s.push(new Buffer(o.PNG_SIGNATURE)),s.push(n.packIHDR(t.width,t.height)),t.gamma&&s.push(n.packGAMA(t.gamma));var c=n.filterData(t.data,t.width,t.height),l=i.deflateSync(c,n.getDeflateOptions());if(c=null,!l||!l.length)throw new Error("bad png - invalid compressed data response");return s.push(n.packIDAT(l)),s.push(n.packIEND()),Buffer.concat(s)}},function(t,e){function n(t){this.buffer=t.data,this.width=t.width,this.height=t.height,this.extraBytes=this.width%4,this.rgbSize=this.height*(3*this.width+this.extraBytes),this.headerInfoSize=40,this.data=[],this.flag="BM",this.reserved=0,this.offset=54,this.fileSize=this.rgbSize+this.offset,this.planes=1,this.bitPP=24,this.compress=0,this.hr=0,this.vr=0,this.colors=0,this.importantColors=0}n.prototype.encode=function(){var t=new Buffer(this.offset+this.rgbSize);this.pos=0,t.write(this.flag,this.pos,2),this.pos+=2,t.writeUInt32LE(this.fileSize,this.pos),this.pos+=4,t.writeUInt32LE(this.reserved,this.pos),this.pos+=4,t.writeUInt32LE(this.offset,this.pos),this.pos+=4,t.writeUInt32LE(this.headerInfoSize,this.pos),this.pos+=4,t.writeUInt32LE(this.width,this.pos),this.pos+=4,t.writeInt32LE(-this.height,this.pos),this.pos+=4,t.writeUInt16LE(this.planes,this.pos),this.pos+=2,t.writeUInt16LE(this.bitPP,this.pos),this.pos+=2,t.writeUInt32LE(this.compress,this.pos),this.pos+=4,t.writeUInt32LE(this.rgbSize,this.pos),this.pos+=4,t.writeUInt32LE(this.hr,this.pos),this.pos+=4,t.writeUInt32LE(this.vr,this.pos),this.pos+=4,t.writeUInt32LE(this.colors,this.pos),this.pos+=4,t.writeUInt32LE(this.importantColors,this.pos),this.pos+=4;for(var e=0,n=3*this.width+this.extraBytes,r=0;r0){var a=this.pos+r*n+3*this.width;t.fill(0,a,a+this.extraBytes)}}return t},t.exports=function(t,e){return void 0===e&&(e=100),{data:new n(t).encode(),width:t.width,height:t.height}}},function(t,e){function n(t,e){if(this.pos=0,this.buffer=t,this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=this.buffer.toString("utf-8",0,this.pos+=2),"BM"!=this.flag)throw new Error("Invalid BMP File");this.parseHeader(),this.parseRGBA()}n.prototype.parseHeader=function(){if(this.fileSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.reserved=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.offset=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.headerSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.width=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.height=this.buffer.readInt32LE(this.pos),this.pos+=4,this.planes=this.buffer.readUInt16LE(this.pos),this.pos+=2,this.bitPP=this.buffer.readUInt16LE(this.pos),this.pos+=2,this.compress=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.rawSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.hr=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.vr=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.colors=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.importantColors=this.buffer.readUInt32LE(this.pos),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=0===this.colors?1<=0?this.height-1:-this.height;for(n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i>7-s&1];this.data[a+4*s]=0,this.data[a+4*s+1]=c.blue,this.data[a+4*s+2]=c.green,this.data[a+4*s+3]=c.red}0!=e&&(this.pos+=4-e)}},n.prototype.bit4=function(){if(2==this.compress){this.data.fill(255);for(var t=0,e=this.bottom_up?this.height-1:0,n=!1;t>4),1&c&&c+1>1&1)&&this.pos++}}else for(c=0;c>4),n=!n}function l(e){var n=this.palette[e];this.data[t]=0,this.data[t+1]=n.blue,this.data[t+2]=n.green,this.data[t+3]=n.red,t+=4}}else{var u=Math.ceil(this.width/2),p=u%4;for(a=this.height-1;a>=0;a--){var f=this.bottom_up?a:this.height-1-a;for(o=0;o>4,d=15&i,g=this.palette[h];if(this.data[t]=0,this.data[t+1]=g.blue,this.data[t+2]=g.green,this.data[t+3]=g.red,2*o+1>=this.width)break;g=this.palette[d],this.data[t+4]=0,this.data[t+4+1]=g.blue,this.data[t+4+2]=g.green,this.data[t+4+3]=g.red}0!=p&&(this.pos+=4-p)}}},n.prototype.bit8=function(){if(1==this.compress){this.data.fill(255);for(var t=0,e=this.bottom_up?this.height-1:0;t=0;o--){var u=this.bottom_up?o:this.height-1-o;for(i=0;i=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i>5&e)/e*255|0,c=(o>>10&e)/e*255|0,l=o>>15?255:0,u=r*this.width*4+4*i;this.data[u]=l,this.data[u+1]=a,this.data[u+2]=s,this.data[u+3]=c}this.pos+=t}},n.prototype.bit16=function(){var t=this.width%2*2;this.maskRed=31744,this.maskGreen=992,this.maskBlue=31,this.mask0=0,3==this.compress&&(this.maskRed=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.maskGreen=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.maskBlue=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.mask0=this.buffer.readUInt32LE(this.pos),this.pos+=4);for(var e=[0,0,0],n=0;n<16;n++)this.maskRed>>n&1&&e[0]++,this.maskGreen>>n&1&&e[1]++,this.maskBlue>>n&1&&e[2]++;e[1]+=e[0],e[2]+=e[1],e[0]=8-e[0],e[1]-=8,e[2]-=8;for(var r=this.height-1;r>=0;r--){for(var i=this.bottom_up?r:this.height-1-r,o=0;o>e[1],l=(a&this.maskRed)>>e[2],u=i*this.width*4+4*o;this.data[u]=0,this.data[u+1]=s,this.data[u+2]=c,this.data[u+3]=l}this.pos+=t}},n.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,n=0;n=0;t--)for(var e=this.bottom_up?t:this.height-1-t,n=0;n=0;t--)for(e=this.bottom_up?t:this.height-1-t,n=0;n0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(n!==l)throw new Error(a[n]);if(e.header&&r.deflateSetHeader(this.strm,e.header),e.dictionary){var d;if(d="string"==typeof e.dictionary?o.string2buf(e.dictionary):"[object ArrayBuffer]"===c.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(n=r.deflateSetDictionary(this.strm,d))!==l)throw new Error(a[n]);this._dict_set=!0}}function d(t,e){var n=new h(e);if(n.push(t,!0),n.err)throw n.msg||a[n.err];return n.result}h.prototype.push=function(t,e){var n,a,s=this.strm,u=this.options.chunkSize;if(this.ended)return!1;a=e===~~e?e:!0===e?4:0,"string"==typeof t?s.input=o.string2buf(t):"[object ArrayBuffer]"===c.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(u),s.next_out=0,s.avail_out=u),1!==(n=r.deflate(s,a))&&n!==l)return this.onEnd(n),this.ended=!0,!1;0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(o.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((s.avail_in>0||0===s.avail_out)&&1!==n);return 4===a?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===l):2!==a||(this.onEnd(l),s.avail_out=0,!0)},h.prototype.onData=function(t){this.chunks.push(t)},h.prototype.onEnd=function(t){t===l&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Deflate=h,e.deflate=d,e.deflateRaw=function(t,e){return(e=e||{}).raw=!0,d(t,e)},e.gzip=function(t,e){return(e=e||{}).gzip=!0,d(t,e)}},function(t,e,n){"use strict";var r,i=n(14),o=n(188),a=n(84),s=n(85),c=n(50),l=0,u=1,p=3,f=4,h=5,d=0,g=1,m=-2,_=-3,b=-5,y=-1,v=1,x=2,w=3,k=4,E=0,S=2,I=8,T=9,O=15,A=8,C=286,P=30,D=19,B=2*C+1,L=15,N=3,M=258,z=M+N+1,R=32,j=42,F=69,U=73,G=91,H=103,W=113,q=666,Y=1,V=2,Z=3,$=4,X=3;function Q(t,e){return t.msg=c[e],e}function J(t){return(t<<1)-(t>4?9:0)}function K(t){for(var e=t.length;--e>=0;)t[e]=0}function tt(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(i.arraySet(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function et(t,e){o._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,tt(t.strm)}function nt(t,e){t.pending_buf[t.pending++]=e}function rt(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function it(t,e){var n,r,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,c=t.strstart>t.w_size-z?t.strstart-(t.w_size-z):0,l=t.window,u=t.w_mask,p=t.prev,f=t.strstart+M,h=l[o+a-1],d=l[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(l[(n=e)+a]===d&&l[n+a-1]===h&&l[n]===l[o]&&l[++n]===l[o+1]){o+=2,n++;do{}while(l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&oa){if(t.match_start=e,a=r,r>=s)break;h=l[o+a-1],d=l[o+a]}}}while((e=p[e&u])>c&&0!=--i);return a<=t.lookahead?a:t.lookahead}function ot(t){var e,n,r,o,c,l,u,p,f,h,d=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-z)){i.arraySet(t.window,t.window,d,d,0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=n=t.hash_size;do{r=t.head[--e],t.head[e]=r>=d?r-d:0}while(--n);e=n=d;do{r=t.prev[--e],t.prev[e]=r>=d?r-d:0}while(--n);o+=d}if(0===t.strm.avail_in)break;if(l=t.strm,u=t.window,p=t.strstart+t.lookahead,f=o,h=void 0,(h=l.avail_in)>f&&(h=f),n=0===h?0:(l.avail_in-=h,i.arraySet(u,l.input,l.next_in,h,p),1===l.state.wrap?l.adler=a(l.adler,u,h,p):2===l.state.wrap&&(l.adler=s(l.adler,u,h,p)),l.next_in+=h,l.total_in+=h,h),t.lookahead+=n,t.lookahead+t.insert>=N)for(c=t.strstart-t.insert,t.ins_h=t.window[c],t.ins_h=(t.ins_h<=N&&(t.ins_h=(t.ins_h<=N)if(r=o._tr_tally(t,t.strstart-t.match_start,t.match_length-N),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=N){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<=N&&(t.ins_h=(t.ins_h<4096)&&(t.match_length=N-1)),t.prev_length>=N&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-N,r=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-N),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<15&&(s=2,r-=16),o<1||o>T||n!==I||r<8||r>15||e<0||e>9||a<0||a>k)return Q(t,m);8===r&&(r=9);var c=new lt;return t.state=c,c.strm=t,c.wrap=s,c.gzhead=null,c.w_bits=r,c.w_size=1<t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(ot(t),0===t.lookahead&&e===l)return Y;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var r=t.block_start+n;if((0===t.strstart||t.strstart>=r)&&(t.lookahead=t.strstart-r,t.strstart=r,et(t,!1),0===t.strm.avail_out))return Y;if(t.strstart-t.block_start>=t.w_size-z&&(et(t,!1),0===t.strm.avail_out))return Y}return t.insert=0,e===f?(et(t,!0),0===t.strm.avail_out?Z:$):(t.strstart>t.block_start&&(et(t,!1),t.strm.avail_out),Y)}),new ct(4,4,8,4,at),new ct(4,5,16,8,at),new ct(4,6,32,32,at),new ct(4,4,16,16,st),new ct(8,16,32,32,st),new ct(8,16,128,128,st),new ct(8,32,128,256,st),new ct(32,128,258,1024,st),new ct(32,258,258,4096,st)],e.deflateInit=function(t,e){return ft(t,e,I,O,A,E)},e.deflateInit2=ft,e.deflateReset=pt,e.deflateResetKeep=ut,e.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?m:(t.state.gzhead=e,d):m},e.deflate=function(t,e){var n,i,a,c;if(!t||!t.state||e>h||e<0)return t?Q(t,m):m;if(i=t.state,!t.output||!t.input&&0!==t.avail_in||i.status===q&&e!==f)return Q(t,0===t.avail_out?b:m);if(i.strm=t,n=i.last_flush,i.last_flush=e,i.status===j)if(2===i.wrap)t.adler=0,nt(i,31),nt(i,139),nt(i,8),i.gzhead?(nt(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),nt(i,255&i.gzhead.time),nt(i,i.gzhead.time>>8&255),nt(i,i.gzhead.time>>16&255),nt(i,i.gzhead.time>>24&255),nt(i,9===i.level?2:i.strategy>=x||i.level<2?4:0),nt(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(nt(i,255&i.gzhead.extra.length),nt(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=s(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=F):(nt(i,0),nt(i,0),nt(i,0),nt(i,0),nt(i,0),nt(i,9===i.level?2:i.strategy>=x||i.level<2?4:0),nt(i,X),i.status=W);else{var _=I+(i.w_bits-8<<4)<<8;_|=(i.strategy>=x||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(_|=R),_+=31-_%31,i.status=W,rt(i,_),0!==i.strstart&&(rt(i,t.adler>>>16),rt(i,65535&t.adler)),t.adler=1}if(i.status===F)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),tt(t),a=i.pending,i.pending!==i.pending_buf_size));)nt(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=U)}else i.status=U;if(i.status===U)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),tt(t),a=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindexa&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===c&&(i.gzindex=0,i.status=G)}else i.status=G;if(i.status===G)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),tt(t),a=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindexa&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===c&&(i.status=H)}else i.status=H;if(i.status===H&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&tt(t),i.pending+2<=i.pending_buf_size&&(nt(i,255&t.adler),nt(i,t.adler>>8&255),t.adler=0,i.status=W)):i.status=W),0!==i.pending){if(tt(t),0===t.avail_out)return i.last_flush=-1,d}else if(0===t.avail_in&&J(e)<=J(n)&&e!==f)return Q(t,b);if(i.status===q&&0!==t.avail_in)return Q(t,b);if(0!==t.avail_in||0!==i.lookahead||e!==l&&i.status!==q){var y=i.strategy===x?function(t,e){for(var n;;){if(0===t.lookahead&&(ot(t),0===t.lookahead)){if(e===l)return Y;break}if(t.match_length=0,n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(et(t,!1),0===t.strm.avail_out))return Y}return t.insert=0,e===f?(et(t,!0),0===t.strm.avail_out?Z:$):t.last_lit&&(et(t,!1),0===t.strm.avail_out)?Y:V}(i,e):i.strategy===w?function(t,e){for(var n,r,i,a,s=t.window;;){if(t.lookahead<=M){if(ot(t),t.lookahead<=M&&e===l)return Y;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=N&&t.strstart>0&&(r=s[i=t.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){a=t.strstart+M;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&it.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=N?(n=o._tr_tally(t,1,t.match_length-N),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(et(t,!1),0===t.strm.avail_out))return Y}return t.insert=0,e===f?(et(t,!0),0===t.strm.avail_out?Z:$):t.last_lit&&(et(t,!1),0===t.strm.avail_out)?Y:V}(i,e):r[i.level].func(i,e);if(y!==Z&&y!==$||(i.status=q),y===Y||y===Z)return 0===t.avail_out&&(i.last_flush=-1),d;if(y===V&&(e===u?o._tr_align(i):e!==h&&(o._tr_stored_block(i,0,0,!1),e===p&&(K(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),tt(t),0===t.avail_out))return i.last_flush=-1,d}return e!==f?d:i.wrap<=0?g:(2===i.wrap?(nt(i,255&t.adler),nt(i,t.adler>>8&255),nt(i,t.adler>>16&255),nt(i,t.adler>>24&255),nt(i,255&t.total_in),nt(i,t.total_in>>8&255),nt(i,t.total_in>>16&255),nt(i,t.total_in>>24&255)):(rt(i,t.adler>>>16),rt(i,65535&t.adler)),tt(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?d:g)},e.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==j&&e!==F&&e!==U&&e!==G&&e!==H&&e!==W&&e!==q?Q(t,m):(t.state=null,e===W?Q(t,_):d):m},e.deflateSetDictionary=function(t,e){var n,r,o,s,c,l,u,p,f=e.length;if(!t||!t.state)return m;if(2===(s=(n=t.state).wrap)||1===s&&n.status!==j||n.lookahead)return m;for(1===s&&(t.adler=a(t.adler,e,f,0)),n.wrap=0,f>=n.w_size&&(0===s&&(K(n.head),n.strstart=0,n.block_start=0,n.insert=0),p=new i.Buf8(n.w_size),i.arraySet(p,e,f-n.w_size,n.w_size,0),e=p,f=n.w_size),c=t.avail_in,l=t.next_in,u=t.input,t.avail_in=f,t.next_in=0,t.input=e,ot(n);n.lookahead>=N;){r=n.strstart,o=n.lookahead-(N-1);do{n.ins_h=(n.ins_h<=0;)t[e]=0}var l=0,u=1,p=2,f=29,h=256,d=h+1+f,g=30,m=19,_=2*d+1,b=15,y=16,v=7,x=256,w=16,k=17,E=18,S=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],I=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],T=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],O=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],A=new Array(2*(d+2));c(A);var C=new Array(2*g);c(C);var P=new Array(512);c(P);var D=new Array(256);c(D);var B=new Array(f);c(B);var L,N,M,z=new Array(g);function R(t,e,n,r,i){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=t&&t.length}function j(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function F(t){return t<256?P[t]:P[256+(t>>>7)]}function U(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function G(t,e,n){t.bi_valid>y-n?(t.bi_buf|=e<>y-t.bi_valid,t.bi_valid+=n-y):(t.bi_buf|=e<>>=1,n<<=1}while(--e>0);return n>>>1}function q(t,e,n){var r,i,o=new Array(b+1),a=0;for(r=1;r<=b;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=W(o[s]++,s))}}function Y(t){var e;for(e=0;e8?U(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function Z(t,e,n,r){var i=2*e,o=2*n;return t[i]>1;n>=1;n--)$(t,o,n);i=c;do{n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],$(t,o,1),r=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=r,o[2*i]=o[2*n]+o[2*r],t.depth[i]=(t.depth[n]>=t.depth[r]?t.depth[n]:t.depth[r])+1,o[2*n+1]=o[2*r+1]=i,t.heap[1]=i++,$(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var n,r,i,o,a,s,c=e.dyn_tree,l=e.max_code,u=e.stat_desc.static_tree,p=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,h=e.stat_desc.extra_base,d=e.stat_desc.max_length,g=0;for(o=0;o<=b;o++)t.bl_count[o]=0;for(c[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<_;n++)(o=c[2*c[2*(r=t.heap[n])+1]+1]+1)>d&&(o=d,g++),c[2*r+1]=o,r>l||(t.bl_count[o]++,a=0,r>=h&&(a=f[r-h]),s=c[2*r],t.opt_len+=s*(o+a),p&&(t.static_len+=s*(u[2*r+1]+a)));if(0!==g){do{for(o=d-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[d]--,g-=2}while(g>0);for(o=d;0!==o;o--)for(r=t.bl_count[o];0!==r;)(i=t.heap[--n])>l||(c[2*i+1]!==o&&(t.opt_len+=(o-c[2*i+1])*c[2*i],c[2*i+1]=o),r--)}}(t,e),q(o,l,t.bl_count)}function J(t,e,n){var r,i,o=-1,a=e[1],s=0,c=7,l=4;for(0===a&&(c=138,l=3),e[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=e[2*(r+1)+1],++s>=7;r0?(t.strm.data_type===s&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return o;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return a;for(e=32;e=3&&0===t.bl_tree[2*O[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),c=t.opt_len+3+7>>>3,(l=t.static_len+3+7>>>3)<=c&&(c=l)):c=l=n+5,n+4<=c&&-1!==e?et(t,e,n,r):t.strategy===i||l===c?(G(t,(u<<1)+(r?1:0),3),X(t,A,C)):(G(t,(p<<1)+(r?1:0),3),function(t,e,n,r){var i;for(G(t,e-257,5),G(t,n-1,5),G(t,r-4,4),i=0;i>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(D[n]+h+1)]++,t.dyn_dtree[2*F(e)]++),t.last_lit===t.lit_bufsize-1},e._tr_align=function(t){G(t,u<<1,3),H(t,x,A),function(t){16===t.bi_valid?(U(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},function(t,e,n){"use strict";var r=n(190),i=n(14),o=n(86),a=n(88),s=n(50),c=n(87),l=n(193),u=Object.prototype.toString;function p(t){if(!(this instanceof p))return new p(t);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,e.windowBits);if(n!==a.Z_OK)throw new Error(s[n]);if(this.header=new l,r.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=o.string2buf(e.dictionary):"[object ArrayBuffer]"===u.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(n=r.inflateSetDictionary(this.strm,e.dictionary))!==a.Z_OK))throw new Error(s[n])}function f(t,e){var n=new p(e);if(n.push(t,!0),n.err)throw n.msg||s[n.err];return n.result}p.prototype.push=function(t,e){var n,s,c,l,p,f=this.strm,h=this.options.chunkSize,d=this.options.dictionary,g=!1;if(this.ended)return!1;s=e===~~e?e:!0===e?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof t?f.input=o.binstring2buf(t):"[object ArrayBuffer]"===u.call(t)?f.input=new Uint8Array(t):f.input=t,f.next_in=0,f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new i.Buf8(h),f.next_out=0,f.avail_out=h),(n=r.inflate(f,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&d&&(n=r.inflateSetDictionary(this.strm,d)),n===a.Z_BUF_ERROR&&!0===g&&(n=a.Z_OK,g=!1),n!==a.Z_STREAM_END&&n!==a.Z_OK)return this.onEnd(n),this.ended=!0,!1;f.next_out&&(0!==f.avail_out&&n!==a.Z_STREAM_END&&(0!==f.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(c=o.utf8border(f.output,f.next_out),l=f.next_out-c,p=o.buf2string(f.output,c),f.next_out=l,f.avail_out=h-l,l&&i.arraySet(f.output,f.output,c,l,0),this.onData(p)):this.onData(i.shrinkBuf(f.output,f.next_out)))),0===f.avail_in&&0===f.avail_out&&(g=!0)}while((f.avail_in>0||0===f.avail_out)&&n!==a.Z_STREAM_END);return n===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),f.avail_out=0,!0)},p.prototype.onData=function(t){this.chunks.push(t)},p.prototype.onEnd=function(t){t===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Inflate=p,e.inflate=f,e.inflateRaw=function(t,e){return(e=e||{}).raw=!0,f(t,e)},e.ungzip=f},function(t,e,n){"use strict";var r=n(14),i=n(84),o=n(85),a=n(191),s=n(192),c=0,l=1,u=2,p=4,f=5,h=6,d=0,g=1,m=2,_=-2,b=-3,y=-4,v=-5,x=8,w=1,k=2,E=3,S=4,I=5,T=6,O=7,A=8,C=9,P=10,D=11,B=12,L=13,N=14,M=15,z=16,R=17,j=18,F=19,U=20,G=21,H=22,W=23,q=24,Y=25,V=26,Z=27,$=28,X=29,Q=30,J=31,K=32,tt=852,et=592,nt=15;function rt(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function it(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function ot(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=w,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new r.Buf32(tt),e.distcode=e.distdyn=new r.Buf32(et),e.sane=1,e.back=-1,d):_}function at(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,ot(t)):_}function st(t,e){var n,r;return t&&t.state?(r=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?_:(null!==r.window&&r.wbits!==e&&(r.window=null),r.wrap=n,r.wbits=e,at(t))):_}function ct(t,e){var n,r;return t?(r=new it,t.state=r,r.window=null,(n=st(t,e))!==d&&(t.state=null),n):_}var lt,ut,pt=!0;function ft(t){if(pt){var e;for(lt=new r.Buf32(512),ut=new r.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(s(l,t.lens,0,288,lt,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;s(u,t.lens,0,32,ut,0,t.work,{bits:5}),pt=!1}t.lencode=lt,t.lenbits=9,t.distcode=ut,t.distbits=5}function ht(t,e,n,i){var o,a=t.state;return null===a.window&&(a.wsize=1<=a.wsize?(r.arraySet(a.window,e,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((o=a.wsize-a.wnext)>i&&(o=i),r.arraySet(a.window,e,n-i,o,a.wnext),(i-=o)?(r.arraySet(a.window,e,n-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave>>8&255,n.check=o(n.check,Tt,2,0),st=0,ct=0,n.mode=k;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&st)<<8)+(st>>8))%31){t.msg="incorrect header check",n.mode=Q;break}if((15&st)!==x){t.msg="unknown compression method",n.mode=Q;break}if(ct-=4,wt=8+(15&(st>>>=4)),0===n.wbits)n.wbits=wt;else if(wt>n.wbits){t.msg="invalid window size",n.mode=Q;break}n.dmax=1<>8&1),512&n.flags&&(Tt[0]=255&st,Tt[1]=st>>>8&255,n.check=o(n.check,Tt,2,0)),st=0,ct=0,n.mode=E;case E:for(;ct<32;){if(0===ot)break t;ot--,st+=tt[nt++]<>>8&255,Tt[2]=st>>>16&255,Tt[3]=st>>>24&255,n.check=o(n.check,Tt,4,0)),st=0,ct=0,n.mode=S;case S:for(;ct<16;){if(0===ot)break t;ot--,st+=tt[nt++]<>8),512&n.flags&&(Tt[0]=255&st,Tt[1]=st>>>8&255,n.check=o(n.check,Tt,2,0)),st=0,ct=0,n.mode=I;case I:if(1024&n.flags){for(;ct<16;){if(0===ot)break t;ot--,st+=tt[nt++]<>>8&255,n.check=o(n.check,Tt,2,0)),st=0,ct=0}else n.head&&(n.head.extra=null);n.mode=T;case T:if(1024&n.flags&&((pt=n.length)>ot&&(pt=ot),pt&&(n.head&&(wt=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,tt,nt,pt,wt)),512&n.flags&&(n.check=o(n.check,tt,pt,nt)),ot-=pt,nt+=pt,n.length-=pt),n.length))break t;n.length=0,n.mode=O;case O:if(2048&n.flags){if(0===ot)break t;pt=0;do{wt=tt[nt+pt++],n.head&&wt&&n.length<65536&&(n.head.name+=String.fromCharCode(wt))}while(wt&&pt>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=B;break;case P:for(;ct<32;){if(0===ot)break t;ot--,st+=tt[nt++]<>>=7&ct,ct-=7&ct,n.mode=Z;break}for(;ct<3;){if(0===ot)break t;ot--,st+=tt[nt++]<>>=1)){case 0:n.mode=N;break;case 1:if(ft(n),n.mode=U,e===h){st>>>=2,ct-=2;break t}break;case 2:n.mode=R;break;case 3:t.msg="invalid block type",n.mode=Q}st>>>=2,ct-=2;break;case N:for(st>>>=7&ct,ct-=7&ct;ct<32;){if(0===ot)break t;ot--,st+=tt[nt++]<>>16^65535)){t.msg="invalid stored block lengths",n.mode=Q;break}if(n.length=65535&st,st=0,ct=0,n.mode=M,e===h)break t;case M:n.mode=z;case z:if(pt=n.length){if(pt>ot&&(pt=ot),pt>at&&(pt=at),0===pt)break t;r.arraySet(et,tt,nt,pt,it),ot-=pt,nt+=pt,at-=pt,it+=pt,n.length-=pt;break}n.mode=B;break;case R:for(;ct<14;){if(0===ot)break t;ot--,st+=tt[nt++]<>>=5,ct-=5,n.ndist=1+(31&st),st>>>=5,ct-=5,n.ncode=4+(15&st),st>>>=4,ct-=4,n.nlen>286||n.ndist>30){t.msg="too many length or distance symbols",n.mode=Q;break}n.have=0,n.mode=j;case j:for(;n.have>>=3,ct-=3}for(;n.have<19;)n.lens[Ot[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,Et={bits:n.lenbits},kt=s(c,n.lens,0,19,n.lencode,0,n.work,Et),n.lenbits=Et.bits,kt){t.msg="invalid code lengths set",n.mode=Q;break}n.have=0,n.mode=F;case F:for(;n.have>>16&255,bt=65535&It,!((mt=It>>>24)<=ct);){if(0===ot)break t;ot--,st+=tt[nt++]<>>=mt,ct-=mt,n.lens[n.have++]=bt;else{if(16===bt){for(St=mt+2;ct>>=mt,ct-=mt,0===n.have){t.msg="invalid bit length repeat",n.mode=Q;break}wt=n.lens[n.have-1],pt=3+(3&st),st>>>=2,ct-=2}else if(17===bt){for(St=mt+3;ct>>=mt)),st>>>=3,ct-=3}else{for(St=mt+7;ct>>=mt)),st>>>=7,ct-=7}if(n.have+pt>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=Q;break}for(;pt--;)n.lens[n.have++]=wt}}if(n.mode===Q)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=Q;break}if(n.lenbits=9,Et={bits:n.lenbits},kt=s(l,n.lens,0,n.nlen,n.lencode,0,n.work,Et),n.lenbits=Et.bits,kt){t.msg="invalid literal/lengths set",n.mode=Q;break}if(n.distbits=6,n.distcode=n.distdyn,Et={bits:n.distbits},kt=s(u,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,Et),n.distbits=Et.bits,kt){t.msg="invalid distances set",n.mode=Q;break}if(n.mode=U,e===h)break t;case U:n.mode=G;case G:if(ot>=6&&at>=258){t.next_out=it,t.avail_out=at,t.next_in=nt,t.avail_in=ot,n.hold=st,n.bits=ct,a(t,ut),it=t.next_out,et=t.output,at=t.avail_out,nt=t.next_in,tt=t.input,ot=t.avail_in,st=n.hold,ct=n.bits,n.mode===B&&(n.back=-1);break}for(n.back=0;_t=(It=n.lencode[st&(1<>>16&255,bt=65535&It,!((mt=It>>>24)<=ct);){if(0===ot)break t;ot--,st+=tt[nt++]<>yt)])>>>16&255,bt=65535&It,!(yt+(mt=It>>>24)<=ct);){if(0===ot)break t;ot--,st+=tt[nt++]<>>=yt,ct-=yt,n.back+=yt}if(st>>>=mt,ct-=mt,n.back+=mt,n.length=bt,0===_t){n.mode=V;break}if(32&_t){n.back=-1,n.mode=B;break}if(64&_t){t.msg="invalid literal/length code",n.mode=Q;break}n.extra=15&_t,n.mode=H;case H:if(n.extra){for(St=n.extra;ct>>=n.extra,ct-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=W;case W:for(;_t=(It=n.distcode[st&(1<>>16&255,bt=65535&It,!((mt=It>>>24)<=ct);){if(0===ot)break t;ot--,st+=tt[nt++]<>yt)])>>>16&255,bt=65535&It,!(yt+(mt=It>>>24)<=ct);){if(0===ot)break t;ot--,st+=tt[nt++]<>>=yt,ct-=yt,n.back+=yt}if(st>>>=mt,ct-=mt,n.back+=mt,64&_t){t.msg="invalid distance code",n.mode=Q;break}n.offset=bt,n.extra=15&_t,n.mode=q;case q:if(n.extra){for(St=n.extra;ct>>=n.extra,ct-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=Q;break}n.mode=Y;case Y:if(0===at)break t;if(pt=ut-at,n.offset>pt){if((pt=n.offset-pt)>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=Q;break}pt>n.wnext?(pt-=n.wnext,dt=n.wsize-pt):dt=n.wnext-pt,pt>n.length&&(pt=n.length),gt=n.window}else gt=et,dt=it-n.offset,pt=n.length;pt>at&&(pt=at),at-=pt,n.length-=pt;do{et[it++]=gt[dt++]}while(--pt);0===n.length&&(n.mode=G);break;case V:if(0===at)break t;et[it++]=n.length,at--,n.mode=G;break;case Z:if(n.wrap){for(;ct<32;){if(0===ot)break t;ot--,st|=tt[nt++]<>>=v=y>>>24,d-=v,0===(v=y>>>16&255))I[o++]=65535&y;else{if(!(16&v)){if(0==(64&v)){y=g[(65535&y)+(h&(1<>>=v,d-=v),d<15&&(h+=S[r++]<>>=v=y>>>24,d-=v,!(16&(v=y>>>16&255))){if(0==(64&v)){y=m[(65535&y)+(h&(1<c){t.msg="invalid distance too far back",n.mode=30;break t}if(h>>>=v,d-=v,w>(v=o-a)){if((v=w-v)>u&&n.sane){t.msg="invalid distance too far back",n.mode=30;break t}if(k=0,E=f,0===p){if(k+=l-v,v2;)I[o++]=E[k++],I[o++]=E[k++],I[o++]=E[k++],x-=3;x&&(I[o++]=E[k++],x>1&&(I[o++]=E[k++]))}else{k=o-w;do{I[o++]=I[k++],I[o++]=I[k++],I[o++]=I[k++],x-=3}while(x>2);x&&(I[o++]=I[k++],x>1&&(I[o++]=I[k++]))}break}}break}}while(r>3,h&=(1<<(d-=x<<3))-1,t.next_in=r,t.next_out=o,t.avail_in=r=1&&0===N[I];I--);if(T>I&&(T=I),0===I)return l[u++]=20971520,l[u++]=20971520,f.bits=1,0;for(S=1;S0&&(0===t||1!==I))return-1;for(M[1]=0,k=1;k<15;k++)M[k+1]=M[k]+N[k];for(E=0;E852||2===t&&P>592)return 1;for(;;){y=k-A,p[E]b?(v=z[R+p[E]],x=B[L+p[E]]):(v=96,x=0),h=1<>A)+(d-=h)]=y<<24|v<<16|x|0}while(0!==d);for(h=1<>=1;if(0!==h?(D&=h-1,D+=h):D=0,E++,0==--N[k]){if(k===I)break;k=e[n+p[E]]}if(k>T&&(D&m)!==g){for(0===A&&(A=T),_+=S,C=1<<(O=k-A);O+A852||2===t&&P>592)return 1;l[g=D&m]=T<<24|O<<16|_-u|0}}return 0!==D&&(l[_+D]=k-A<<24|64<<16|0),f.bits=T,0}},function(t,e,n){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},function(t,e){function n(t,e){if(!(t=t.replace(/\t+/g," ").trim()))return null;var n=t.indexOf(" ");if(-1===n)throw new Error("no named row at line "+e);var i=t.substring(0,n);t=(t=(t=(t=t.substring(n+1)).replace(/letter=[\'\"]\S+[\'\"]/gi,"")).split("=")).map(function(t){return t.trim().match(/(".*?"|[^"\s]+)+(?=\s*|\s*$)/g)});for(var o=[],a=0;a root";n=n.font,e.common=i(n.common[0].$),e.info=i(n.info[0].$);for(var r=0;r=0||t.indexOf(">")>=0||t.indexOf("<")>=0)},a=function(t){return""},i=function(t){return t.replace("]]>","]]]]>")},e.Builder=function(){function e(t){var e,n,i;for(e in this.options={},n=r[.2])s.call(n,e)&&(i=n[e],this.options[e]=i);for(e in t)s.call(t,e)&&(i=t[e],this.options[e]=i)}return e.prototype.buildObject=function(e){var n,i,c,l,u,p;return n=this.options.attrkey,i=this.options.charkey,1===Object.keys(e).length&&this.options.rootName===r[.2].rootName?e=e[u=Object.keys(e)[0]]:u=this.options.rootName,p=this,c=function(t,e){var r,l,u,f,h,d;if("object"!=typeof e)p.options.cdata&&o(e)?t.raw(a(e)):t.txt(e);else if(Array.isArray(e)){for(f in e)if(s.call(e,f))for(h in l=e[f])u=l[h],t=c(t.ele(h),u).up()}else for(h in e)if(s.call(e,h))if(l=e[h],h===n){if("object"==typeof l)for(r in l)d=l[r],t=t.att(r,d)}else if(h===i)t=p.options.cdata&&o(l)?t.raw(a(l)):t.txt(l);else if(Array.isArray(l))for(f in l)s.call(l,f)&&(t="string"==typeof(u=l[f])?p.options.cdata&&o(u)?t.ele(h).raw(a(u)).up():t.ele(h,u).up():c(t.ele(h),u).up());else"object"==typeof l?t=c(t.ele(h),l).up():"string"==typeof l&&p.options.cdata&&o(l)?t=t.ele(h).raw(a(l)).up():(null==l&&(l=""),t=t.ele(h,l.toString()).up());return t},l=t.create(u,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),c(l,e).end(this.options.renderOpts)},e}()}).call(this)},function(t,e,n){(function(){var e,r,i,o,a,s,c;c=n(15),a=c.assign,s=c.isFunction,e=n(199),r=n(200),o=n(52),i=n(201),t.exports.create=function(t,n,r,i){var o,s;if(null==t)throw new Error("Root element needs a name");return i=a({},n,r,i),s=(o=new e(i)).element(t),i.headless||(o.declaration(i),null==i.pubID&&null==i.sysID||o.doctype(i)),s},t.exports.begin=function(t,n,i){var o;return s(t)&&(n=(o=[t,n])[0],i=o[1],t={}),n?new r(t,n,i):new e(t)},t.exports.stringWriter=function(t){return new o(t)},t.exports.streamWriter=function(t,e){return new i(t,e)}}).call(this)},function(t,e,n){(function(){var e,r,i,o,a={}.hasOwnProperty;o=n(15).isPlainObject,e=n(9),i=n(90),r=n(52),t.exports=function(t){function n(t){n.__super__.constructor.call(this,null),t||(t={}),t.writer||(t.writer=new r),this.options=t,this.stringify=new i(t),this.isDocument=!0}return function(t,e){for(var n in e)a.call(e,n)&&(t[n]=e[n]);function r(){this.constructor=t}r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype}(n,e),n.prototype.end=function(t){var e;return t?o(t)&&(e=t,t=this.options.writer.set(e)):t=this.options.writer,t.document(this)},n.prototype.toString=function(t){return this.options.writer.set(t).document(this)},n}()}).call(this)},function(t,e,n){(function(){var e,r,i,o,a,s,c,l,u,p,f,h,d,g,m,_,b,y,v,x={}.hasOwnProperty;v=n(15),b=v.isObject,_=v.isFunction,y=v.isPlainObject,p=n(31),r=n(32),i=n(33),h=n(40),m=n(41),f=n(42),l=n(34),u=n(35),o=n(36),s=n(37),a=n(38),c=n(39),e=n(89),g=n(90),d=n(52),t.exports=function(){function t(t,e,n){var r;t||(t={}),t.writer?y(t.writer)&&(r=t.writer,t.writer=new d(r)):t.writer=new d(t),this.options=t,this.writer=t.writer,this.stringify=new g(t),this.onDataCallback=e||function(){},this.onEndCallback=n||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return t.prototype.node=function(t,e,n){var r;if(null==t)throw new Error("Missing node name");if(this.root&&-1===this.currentLevel)throw new Error("Document can only have one root node");return this.openCurrent(),t=t.valueOf(),null==e&&(e={}),e=e.valueOf(),b(e)||(n=(r=[e,n])[0],e=r[1]),this.currentNode=new p(this,t,e),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,null!=n&&this.text(n),this},t.prototype.element=function(t,e,n){return this.currentNode&&this.currentNode instanceof u?this.dtdElement.apply(this,arguments):this.node(t,e,n)},t.prototype.attribute=function(t,n){var r,i;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode");if(null!=t&&(t=t.valueOf()),b(t))for(r in t)x.call(t,r)&&(i=t[r],this.attribute(r,i));else _(n)&&(n=n.apply()),this.options.skipNullAttributes&&null==n||(this.currentNode.attributes[t]=new e(this,t,n));return this},t.prototype.text=function(t){var e;return this.openCurrent(),e=new m(this,t),this.onData(this.writer.text(e,this.currentLevel+1)),this},t.prototype.cdata=function(t){var e;return this.openCurrent(),e=new r(this,t),this.onData(this.writer.cdata(e,this.currentLevel+1)),this},t.prototype.comment=function(t){var e;return this.openCurrent(),e=new i(this,t),this.onData(this.writer.comment(e,this.currentLevel+1)),this},t.prototype.raw=function(t){var e;return this.openCurrent(),e=new h(this,t),this.onData(this.writer.raw(e,this.currentLevel+1)),this},t.prototype.instruction=function(t,e){var n,r,i,o,a;if(this.openCurrent(),null!=t&&(t=t.valueOf()),null!=e&&(e=e.valueOf()),Array.isArray(t))for(n=0,o=t.length;n=0;)this.up();return this.onEnd()},t.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},t.prototype.openNode=function(t){if(!t.isOpen)return!this.root&&0===this.currentLevel&&t instanceof p&&(this.root=t),this.onData(this.writer.openNode(t,this.currentLevel)),t.isOpen=!0},t.prototype.closeNode=function(t){if(!t.isClosed)return this.onData(this.writer.closeNode(t,this.currentLevel)),t.isClosed=!0},t.prototype.onData=function(t){return this.documentStarted=!0,this.onDataCallback(t)},t.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},t.prototype.ele=function(){return this.element.apply(this,arguments)},t.prototype.nod=function(t,e,n){return this.node(t,e,n)},t.prototype.txt=function(t){return this.text(t)},t.prototype.dat=function(t){return this.cdata(t)},t.prototype.com=function(t){return this.comment(t)},t.prototype.ins=function(t,e){return this.instruction(t,e)},t.prototype.dec=function(t,e,n){return this.declaration(t,e,n)},t.prototype.dtd=function(t,e,n){return this.doctype(t,e,n)},t.prototype.e=function(t,e,n){return this.element(t,e,n)},t.prototype.n=function(t,e,n){return this.node(t,e,n)},t.prototype.t=function(t){return this.text(t)},t.prototype.d=function(t){return this.cdata(t)},t.prototype.c=function(t){return this.comment(t)},t.prototype.r=function(t){return this.raw(t)},t.prototype.i=function(t,e){return this.instruction(t,e)},t.prototype.att=function(){return this.currentNode&&this.currentNode instanceof u?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},t.prototype.a=function(){return this.currentNode&&this.currentNode instanceof u?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},t.prototype.ent=function(t,e){return this.entity(t,e)},t.prototype.pent=function(t,e){return this.pEntity(t,e)},t.prototype.not=function(t,e){return this.notation(t,e)},t}()}).call(this)},function(t,e,n){(function(){var e,r,i,o,a,s,c,l,u,p,f,h,d,g={}.hasOwnProperty;c=n(34),l=n(35),e=n(32),r=n(33),u=n(31),f=n(40),h=n(41),p=n(42),i=n(36),o=n(38),a=n(37),s=n(39),d=n(91),t.exports=function(t){function n(t,e){n.__super__.constructor.call(this,e),this.stream=t}return function(t,e){for(var n in e)g.call(e,n)&&(t[n]=e[n]);function r(){this.constructor=t}r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype}(n,d),n.prototype.document=function(t){var e,n,i,o,a,s,u,f;for(n=0,o=(s=t.children).length;n"+this.endline(t))},n.prototype.comment=function(t,e){return this.stream.write(this.space(e)+"\x3c!-- "+t.text+" --\x3e"+this.endline(t))},n.prototype.declaration=function(t,e){return this.stream.write(this.space(e)),this.stream.write('"),this.stream.write(this.endline(t))},n.prototype.docType=function(t,n){var c,l,u,f;if(n||(n=0),this.stream.write(this.space(n)),this.stream.write("0){for(this.stream.write(" ["),this.stream.write(this.endline(t)),l=0,u=(f=t.children).length;l"),this.stream.write(this.endline(t))},n.prototype.element=function(t,n){var i,o,a,s,c,l,d,m;for(c in n||(n=0),m=this.space(n),this.stream.write(m+"<"+t.name),l=t.attributes)g.call(l,c)&&(i=l[c],this.attribute(i));if(0===t.children.length||t.children.every(function(t){return""===t.value}))this.allowEmpty?this.stream.write(">"):this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&1===t.children.length&&null!=t.children[0].value)this.stream.write(">"),this.stream.write(t.children[0].value),this.stream.write("");else{for(this.stream.write(">"+this.newline),a=0,s=(d=t.children).length;a")}return this.stream.write(this.endline(t))},n.prototype.processingInstruction=function(t,e){return this.stream.write(this.space(e)+""+this.endline(t))},n.prototype.raw=function(t,e){return this.stream.write(this.space(e)+t.value+this.endline(t))},n.prototype.text=function(t,e){return this.stream.write(this.space(e)+t.value+this.endline(t))},n.prototype.dtdAttList=function(t,e){return this.stream.write(this.space(e)+""+this.endline(t))},n.prototype.dtdElement=function(t,e){return this.stream.write(this.space(e)+""+this.endline(t))},n.prototype.dtdEntity=function(t,e){return this.stream.write(this.space(e)+""+this.endline(t))},n.prototype.dtdNotation=function(t,e){return this.stream.write(this.space(e)+""+this.endline(t))},n.prototype.endline=function(t){return t.isLastRootNode?"":this.newline},n}()}).call(this)},function(t,e,n){(function(){"use strict";var t,r,i,o,a,s,c,l,u=function(t,e){return function(){return t.apply(e,arguments)}},p={}.hasOwnProperty;c=n(203),i=n(17),t=n(204),s=n(93),l=n(205).setImmediate,r=n(51).defaults,o=function(t){return"object"==typeof t&&null!=t&&0===Object.keys(t).length},a=function(t,e,n){var r,i;for(r=0,i=t.length;r0&&(c[t.options.childkey]=u),u=c;return r.length>0?t.assignOrPush(d,l,u):(t.options.explicitRoot&&(h=u,(u={})[l]=h),t.resultObject=u,t.saxParser.ended=!0,t.emit("end",t.resultObject))}}(this),n=function(t){return function(n){var i,o;if(o=r[r.length-1])return o[e]+=n,t.options.explicitChildren&&t.options.preserveChildrenOrder&&t.options.charsAsChildren&&(t.options.includeWhiteChars||""!==n.replace(/\\n/g,"").trim())&&(o[t.options.childkey]=o[t.options.childkey]||[],(i={"#name":"__text__"})[e]=n,t.options.normalize&&(i[e]=i[e].replace(/\s{2,}/g," ").trim()),o[t.options.childkey].push(i)),o}}(this),this.saxParser.ontext=n,this.saxParser.oncdata=function(t){var e;if(e=n(t))return e.cdata=!0}},f.prototype.parseString=function(e,n){var r;null!=n&&"function"==typeof n&&(this.on("end",function(t){return this.reset(),n(null,t)}),this.on("error",function(t){return this.reset(),n(t)}));try{return""===(e=e.toString()).trim()?(this.emit("end",null),!0):(e=t.stripBOM(e),this.options.async?(this.remaining=e,l(this.processAsync),this.saxParser):this.saxParser.write(e).close())}catch(t){if(r=t,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",r),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw r}},f}(),e.parseString=function(t,n,r){var i,o;return null!=r?("function"==typeof r&&(i=r),"object"==typeof n&&(o=n)):("function"==typeof n&&(i=n),o={}),new e.Parser(o).parseString(t,i)}}).call(this)},function(t,e,n){!function(t){t.parser=function(t,e){return new i(t,e)},t.SAXParser=i,t.SAXStream=a,t.createStream=function(t,e){return new a(t,e)},t.MAX_BUFFER_LENGTH=65536;var e,r=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function i(e,n){if(!(this instanceof i))return new i(e,n);!function(t){for(var e=0,n=r.length;e"===i?(T(this,"onsgmldeclaration",this.sgmlDecl),this.sgmlDecl="",this.state=E.TEXT):_(i)?(this.state=E.SGML_DECL_QUOTED,this.sgmlDecl+=i):this.sgmlDecl+=i;continue;case E.SGML_DECL_QUOTED:i===this.q&&(this.state=E.SGML_DECL,this.q=""),this.sgmlDecl+=i;continue;case E.DOCTYPE:">"===i?(this.state=E.TEXT,T(this,"ondoctype",this.doctype),this.doctype=!0):(this.doctype+=i,"["===i?this.state=E.DOCTYPE_DTD:_(i)&&(this.state=E.DOCTYPE_QUOTED,this.q=i));continue;case E.DOCTYPE_QUOTED:this.doctype+=i,i===this.q&&(this.q="",this.state=E.DOCTYPE);continue;case E.DOCTYPE_DTD:this.doctype+=i,"]"===i?this.state=E.DOCTYPE:_(i)&&(this.state=E.DOCTYPE_DTD_QUOTED,this.q=i);continue;case E.DOCTYPE_DTD_QUOTED:this.doctype+=i,i===this.q&&(this.state=E.DOCTYPE_DTD,this.q="");continue;case E.COMMENT:"-"===i?this.state=E.COMMENT_ENDING:this.comment+=i;continue;case E.COMMENT_ENDING:"-"===i?(this.state=E.COMMENT_ENDED,this.comment=A(this.opt,this.comment),this.comment&&T(this,"oncomment",this.comment),this.comment=""):(this.comment+="-"+i,this.state=E.COMMENT);continue;case E.COMMENT_ENDED:">"!==i?(D(this,"Malformed comment"),this.comment+="--"+i,this.state=E.COMMENT):this.state=E.TEXT;continue;case E.CDATA:"]"===i?this.state=E.CDATA_ENDING:this.cdata+=i;continue;case E.CDATA_ENDING:"]"===i?this.state=E.CDATA_ENDING_2:(this.cdata+="]"+i,this.state=E.CDATA);continue;case E.CDATA_ENDING_2:">"===i?(this.cdata&&T(this,"oncdata",this.cdata),T(this,"onclosecdata"),this.cdata="",this.state=E.TEXT):"]"===i?this.cdata+="]":(this.cdata+="]]"+i,this.state=E.CDATA);continue;case E.PROC_INST:"?"===i?this.state=E.PROC_INST_ENDING:m(i)?this.state=E.PROC_INST_BODY:this.procInstName+=i;continue;case E.PROC_INST_BODY:if(!this.procInstBody&&m(i))continue;"?"===i?this.state=E.PROC_INST_ENDING:this.procInstBody+=i;continue;case E.PROC_INST_ENDING:">"===i?(T(this,"onprocessinginstruction",{name:this.procInstName,body:this.procInstBody}),this.procInstName=this.procInstBody="",this.state=E.TEXT):(this.procInstBody+="?"+i,this.state=E.PROC_INST_BODY);continue;case E.OPEN_TAG:y(h,i)?this.tagName+=i:(B(this),">"===i?M(this):"/"===i?this.state=E.OPEN_TAG_SLASH:(m(i)||D(this,"Invalid character in tag name"),this.state=E.ATTRIB));continue;case E.OPEN_TAG_SLASH:">"===i?(M(this,!0),z(this)):(D(this,"Forward-slash in opening tag not followed by >"),this.state=E.ATTRIB);continue;case E.ATTRIB:if(m(i))continue;">"===i?M(this):"/"===i?this.state=E.OPEN_TAG_SLASH:y(f,i)?(this.attribName=i,this.attribValue="",this.state=E.ATTRIB_NAME):D(this,"Invalid attribute name");continue;case E.ATTRIB_NAME:"="===i?this.state=E.ATTRIB_VALUE:">"===i?(D(this,"Attribute without value"),this.attribValue=this.attribName,N(this),M(this)):m(i)?this.state=E.ATTRIB_NAME_SAW_WHITE:y(h,i)?this.attribName+=i:D(this,"Invalid attribute name");continue;case E.ATTRIB_NAME_SAW_WHITE:if("="===i)this.state=E.ATTRIB_VALUE;else{if(m(i))continue;D(this,"Attribute without value"),this.tag.attributes[this.attribName]="",this.attribValue="",T(this,"onattribute",{name:this.attribName,value:""}),this.attribName="",">"===i?M(this):y(f,i)?(this.attribName=i,this.state=E.ATTRIB_NAME):(D(this,"Invalid attribute name"),this.state=E.ATTRIB)}continue;case E.ATTRIB_VALUE:if(m(i))continue;_(i)?(this.q=i,this.state=E.ATTRIB_VALUE_QUOTED):(D(this,"Unquoted attribute value"),this.state=E.ATTRIB_VALUE_UNQUOTED,this.attribValue=i);continue;case E.ATTRIB_VALUE_QUOTED:if(i!==this.q){"&"===i?this.state=E.ATTRIB_VALUE_ENTITY_Q:this.attribValue+=i;continue}N(this),this.q="",this.state=E.ATTRIB_VALUE_CLOSED;continue;case E.ATTRIB_VALUE_CLOSED:m(i)?this.state=E.ATTRIB:">"===i?M(this):"/"===i?this.state=E.OPEN_TAG_SLASH:y(f,i)?(D(this,"No whitespace between attributes"),this.attribName=i,this.attribValue="",this.state=E.ATTRIB_NAME):D(this,"Invalid attribute name");continue;case E.ATTRIB_VALUE_UNQUOTED:if(!b(i)){"&"===i?this.state=E.ATTRIB_VALUE_ENTITY_U:this.attribValue+=i;continue}N(this),">"===i?M(this):this.state=E.ATTRIB;continue;case E.CLOSE_TAG:if(this.tagName)">"===i?z(this):y(h,i)?this.tagName+=i:this.script?(this.script+=""===i?z(this):D(this,"Invalid characters in closing tag");continue;case E.TEXT_ENTITY:case E.ATTRIB_VALUE_ENTITY_Q:case E.ATTRIB_VALUE_ENTITY_U:var l,u;switch(this.state){case E.TEXT_ENTITY:l=E.TEXT,u="textNode";break;case E.ATTRIB_VALUE_ENTITY_Q:l=E.ATTRIB_VALUE_QUOTED,u="attribValue";break;case E.ATTRIB_VALUE_ENTITY_U:l=E.ATTRIB_VALUE_UNQUOTED,u="attribValue"}";"===i?(this[u]+=R(this),this.entity="",this.state=l):y(this.entity.length?g:d,i)?this.entity+=i:(D(this,"Invalid character in entity name"),this[u]+="&"+this.entity+i,this.entity="",this.state=l);continue;default:throw new Error(this,"Unknown state: "+this.state)}this.position>=this.bufferCheckPosition&&function(e){for(var n=Math.max(t.MAX_BUFFER_LENGTH,10),i=0,o=0,a=r.length;on)switch(r[o]){case"textNode":O(e);break;case"cdata":T(e,"oncdata",e.cdata),e.cdata="";break;case"script":T(e,"onscript",e.script),e.script="";break;default:C(e,"Max buffer length exceeded: "+r[o])}i=Math.max(i,s)}var c=t.MAX_BUFFER_LENGTH-i;e.bufferCheckPosition=c+e.position}(this);return this} -/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){var t;O(t=this),""!==t.cdata&&(T(t,"oncdata",t.cdata),t.cdata=""),""!==t.script&&(T(t,"onscript",t.script),t.script="")}};try{e=n(7).Stream}catch(t){e=function(){}}var o=t.EVENTS.filter(function(t){return"error"!==t&&"end"!==t});function a(t,n){if(!(this instanceof a))return new a(t,n);e.apply(this),this._parser=new i(t,n),this.writable=!0,this.readable=!0;var r=this;this._parser.onend=function(){r.emit("end")},this._parser.onerror=function(t){r.emit("error",t),r._parser.error=null},this._decoder=null,o.forEach(function(t){Object.defineProperty(r,"on"+t,{get:function(){return r._parser["on"+t]},set:function(e){if(!e)return r.removeAllListeners(t),r._parser["on"+t]=e,e;r.on(t,e)},enumerable:!0,configurable:!1})})}a.prototype=Object.create(e.prototype,{constructor:{value:a}}),a.prototype.write=function(t){if("function"==typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(t)){if(!this._decoder){var e=n(92).StringDecoder;this._decoder=new e("utf8")}t=this._decoder.write(t)}return this._parser.write(t.toString()),this.emit("data",t),!0},a.prototype.end=function(t){return t&&t.length&&this.write(t),this._parser.end(),!0},a.prototype.on=function(t,n){var r=this;return r._parser["on"+t]||-1===o.indexOf(t)||(r._parser["on"+t]=function(){var e=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);e.splice(0,0,t),r.emit.apply(r,e)}),e.prototype.on.call(r,t,n)};var s="[CDATA[",c="DOCTYPE",l="http://www.w3.org/XML/1998/namespace",u="http://www.w3.org/2000/xmlns/",p={xml:l,xmlns:u},f=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,h=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,d=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,g=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function m(t){return" "===t||"\n"===t||"\r"===t||"\t"===t}function _(t){return'"'===t||"'"===t}function b(t){return">"===t||m(t)}function y(t,e){return t.test(e)}function v(t,e){return!y(t,e)}var x,w,k,E=0;for(var S in t.STATE={BEGIN:E++,BEGIN_WHITESPACE:E++,TEXT:E++,TEXT_ENTITY:E++,OPEN_WAKA:E++,SGML_DECL:E++,SGML_DECL_QUOTED:E++,DOCTYPE:E++,DOCTYPE_QUOTED:E++,DOCTYPE_DTD:E++,DOCTYPE_DTD_QUOTED:E++,COMMENT_STARTING:E++,COMMENT:E++,COMMENT_ENDING:E++,COMMENT_ENDED:E++,CDATA:E++,CDATA_ENDING:E++,CDATA_ENDING_2:E++,PROC_INST:E++,PROC_INST_BODY:E++,PROC_INST_ENDING:E++,OPEN_TAG:E++,OPEN_TAG_SLASH:E++,ATTRIB:E++,ATTRIB_NAME:E++,ATTRIB_NAME_SAW_WHITE:E++,ATTRIB_VALUE:E++,ATTRIB_VALUE_QUOTED:E++,ATTRIB_VALUE_CLOSED:E++,ATTRIB_VALUE_UNQUOTED:E++,ATTRIB_VALUE_ENTITY_Q:E++,ATTRIB_VALUE_ENTITY_U:E++,CLOSE_TAG:E++,CLOSE_TAG_SAW_WHITE:E++,SCRIPT:E++,SCRIPT_ENDING:E++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach(function(e){var n=t.ENTITIES[e],r="number"==typeof n?String.fromCharCode(n):n;t.ENTITIES[e]=r}),t.STATE)t.STATE[t.STATE[S]]=S;function I(t,e,n){t[e]&&t[e](n)}function T(t,e,n){t.textNode&&O(t),I(t,e,n)}function O(t){t.textNode=A(t.opt,t.textNode),t.textNode&&I(t,"ontext",t.textNode),t.textNode=""}function A(t,e){return t.trim&&(e=e.trim()),t.normalize&&(e=e.replace(/\s+/g," ")),e}function C(t,e){return O(t),t.trackPosition&&(e+="\nLine: "+t.line+"\nColumn: "+t.column+"\nChar: "+t.c),e=new Error(e),t.error=e,I(t,"onerror",e),t}function P(t){return t.sawRoot&&!t.closedRoot&&D(t,"Unclosed root tag"),t.state!==E.BEGIN&&t.state!==E.BEGIN_WHITESPACE&&t.state!==E.TEXT&&C(t,"Unexpected end"),O(t),t.c="",t.closed=!0,I(t,"onend"),i.call(t,t.strict,t.opt),t}function D(t,e){if("object"!=typeof t||!(t instanceof i))throw new Error("bad call to strictFail");t.strict&&C(t,e)}function B(t){t.strict||(t.tagName=t.tagName[t.looseCase]());var e=t.tags[t.tags.length-1]||t,n=t.tag={name:t.tagName,attributes:{}};t.opt.xmlns&&(n.ns=e.ns),t.attribList.length=0,T(t,"onopentagstart",n)}function L(t,e){var n=t.indexOf(":")<0?["",t]:t.split(":"),r=n[0],i=n[1];return e&&"xmlns"===t&&(r="xmlns",i=""),{prefix:r,local:i}}function N(t){if(t.strict||(t.attribName=t.attribName[t.looseCase]()),-1!==t.attribList.indexOf(t.attribName)||t.tag.attributes.hasOwnProperty(t.attribName))t.attribName=t.attribValue="";else{if(t.opt.xmlns){var e=L(t.attribName,!0),n=e.prefix,r=e.local;if("xmlns"===n)if("xml"===r&&t.attribValue!==l)D(t,"xml: prefix must be bound to "+l+"\nActual: "+t.attribValue);else if("xmlns"===r&&t.attribValue!==u)D(t,"xmlns: prefix must be bound to "+u+"\nActual: "+t.attribValue);else{var i=t.tag,o=t.tags[t.tags.length-1]||t;i.ns===o.ns&&(i.ns=Object.create(o.ns)),i.ns[r]=t.attribValue}t.attribList.push([t.attribName,t.attribValue])}else t.tag.attributes[t.attribName]=t.attribValue,T(t,"onattribute",{name:t.attribName,value:t.attribValue});t.attribName=t.attribValue=""}}function M(t,e){if(t.opt.xmlns){var n=t.tag,r=L(t.tagName);n.prefix=r.prefix,n.local=r.local,n.uri=n.ns[r.prefix]||"",n.prefix&&!n.uri&&(D(t,"Unbound namespace prefix: "+JSON.stringify(t.tagName)),n.uri=r.prefix);var i=t.tags[t.tags.length-1]||t;n.ns&&i.ns!==n.ns&&Object.keys(n.ns).forEach(function(e){T(t,"onopennamespace",{prefix:e,uri:n.ns[e]})});for(var o=0,a=t.attribList.length;o",t.tagName="",void(t.state=E.SCRIPT);T(t,"onscript",t.script),t.script=""}var e=t.tags.length,n=t.tagName;t.strict||(n=n[t.looseCase]());for(var r=n;e--;){if(t.tags[e].name===r)break;D(t,"Unexpected close tag")}if(e<0)return D(t,"Unmatched closing tag: "+t.tagName),t.textNode+="",void(t.state=E.TEXT);t.tagName=n;for(var i=t.tags.length;i-- >e;){var o=t.tag=t.tags.pop();t.tagName=t.tag.name,T(t,"onclosetag",t.tagName);var a={};for(var s in o.ns)a[s]=o.ns[s];var c=t.tags[t.tags.length-1]||t;t.opt.xmlns&&o.ns!==c.ns&&Object.keys(o.ns).forEach(function(e){var n=o.ns[e];T(t,"onclosenamespace",{prefix:e,uri:n})})}0===e&&(t.closedRoot=!0),t.tagName=t.attribValue=t.attribName="",t.attribList.length=0,t.state=E.TEXT}function R(t){var e,n=t.entity,r=n.toLowerCase(),i="";return t.ENTITIES[n]?t.ENTITIES[n]:t.ENTITIES[r]?t.ENTITIES[r]:("#"===(n=r).charAt(0)&&("x"===n.charAt(1)?(n=n.slice(2),i=(e=parseInt(n,16)).toString(16)):(n=n.slice(1),i=(e=parseInt(n,10)).toString(10))),n=n.replace(/^0+/,""),isNaN(e)||i.toLowerCase()!==n?(D(t,"Invalid character entity"),"&"+t.entity+";"):String.fromCodePoint(e))}function j(t,e){"<"===e?(t.state=E.OPEN_WAKA,t.startTagPosition=t.position):m(e)||(D(t,"Non-whitespace before first tag."),t.textNode=e,t.state=E.TEXT)}function F(t,e){var n="";return e1114111||w(s)!==s)throw RangeError("Invalid code point: "+s);s<=65535?r.push(s):(t=55296+((s-=65536)>>10),e=s%1024+56320,r.push(t,e)),(i+1===o||r.length>n)&&(a+=x.apply(null,r),r.length=0)}return a},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:k,configurable:!0,writable:!0}):String.fromCodePoint=k)}(e)},function(t,e){(function(){"use strict";e.stripBOM=function(t){return"\ufeff"===t[0]?t.substring(1):t}}).call(this)},function(t,e){t.exports=require("timers")},function(t,e){t.exports=function(t){for(var e in"chasrset"in t&&(t.charset=t.chasrset,delete t.chasrset),t)"face"!==e&&"charset"!==e&&(t[e]="padding"===e||"spacing"===e?t[e].split(",").map(function(t){return parseInt(t,10)}):parseInt(t[e],10));return t}},function(t,e){var n=[66,77,70];function r(t,e,n){if(n>e.length-1)return 0;var r=e.readUInt8(n++),o=e.readInt32LE(n);switch(n+=4,r){case 1:t.info=function(t,e){var n={};n.size=t.readInt16LE(e);var r=t.readUInt8(e+2);n.smooth=r>>7&1,n.unicode=r>>6&1,n.italic=r>>5&1,n.bold=r>>4&1,r>>3&1&&(n.fixedHeight=1);return n.charset=t.readUInt8(e+3)||"",n.stretchH=t.readUInt16LE(e+4),n.aa=t.readUInt8(e+6),n.padding=[t.readInt8(e+7),t.readInt8(e+8),t.readInt8(e+9),t.readInt8(e+10)],n.spacing=[t.readInt8(e+11),t.readInt8(e+12)],n.outline=t.readUInt8(e+13),n.face=function(t,e){return i(t,e).toString("utf8")}(t,e+14),n}(e,n);break;case 2:t.common=function(t,e){var n={};n.lineHeight=t.readUInt16LE(e),n.base=t.readUInt16LE(e+2),n.scaleW=t.readUInt16LE(e+4),n.scaleH=t.readUInt16LE(e+6),n.pages=t.readUInt16LE(e+8);t.readUInt8(e+10);return n.packed=0,n.alphaChnl=t.readUInt8(e+11),n.redChnl=t.readUInt8(e+12),n.greenChnl=t.readUInt8(e+13),n.blueChnl=t.readUInt8(e+14),n}(e,n);break;case 3:t.pages=function(t,e,n){for(var r=[],o=i(t,e),a=o.length+1,s=n/a,c=0;c3)throw new Error("Only supports BMFont Binary v3 (BMFont App v1.10)");for(var i={kernings:[],chars:[]},o=0;o<5;o++)e+=r(i,t,e);return i}},function(t,e,n){n(1);var r=n(5);function i(){this.types=Object.create(null),this.extensions=Object.create(null)}i.prototype.define=function(t){for(var e in t){for(var n=t[e],r=0;r4&&r(t.slice(0,4),i)}},function(t,e,n){var r=n(4).Buffer;t.exports=function(t,e){if(r.isBuffer(t)&&r.isBuffer(e)){if("function"==typeof t.equals)return t.equals(e);if(t.length!==e.length)return!1;for(var n=0;n=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},e.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),e.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],e.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},e.enable(r())},function(t,e){var n=1e3,r=60*n,i=60*r,o=24*i,a=365.25*o;function s(t,e,n){if(!(t0)return function(t){if((t=String(t)).length>100)return;var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(!e)return;var s=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return s*a;case"days":case"day":case"d":return s*o;case"hours":case"hour":case"hrs":case"hr":case"h":return s*i;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(t);if("number"===l&&!1===isNaN(t))return e.long?s(c=t,o,"day")||s(c,i,"hour")||s(c,r,"minute")||s(c,n,"second")||c+" ms":function(t){if(t>=o)return Math.round(t/o)+"d";if(t>=i)return Math.round(t/i)+"h";if(t>=r)return Math.round(t/r)+"m";if(t>=n)return Math.round(t/n)+"s";return t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},function(t,e,n){var r=n(219),i=n(3);(e=t.exports=n(94)).init=function(t){t.inspectOpts={};for(var n=Object.keys(e.inspectOpts),r=0;ro&&(a=t.slice(o),t=t.slice(0,o)),r?r.end(t):i.append(t),this._overflow=a,this._onparse()}},f.prototype._final=function(t){if(this._partial)return this.destroy(new Error("Unexpected end of data"));t()},t.exports=f},function(t,e,n){var r=n(223),i=n(3),o=n(22).Buffer;function a(t){if(!(this instanceof a))return new a(t);if(this._bufs=[],this.length=0,"function"==typeof t){this._callback=t;var e=function(t){this._callback&&(this._callback(t),this._callback=null)}.bind(this);this.on("pipe",function(t){t.on("error",e)}),this.on("unpipe",function(t){t.removeListener("error",e)})}else this.append(t);r.call(this)}i.inherits(a,r),a.prototype._offset=function(t){var e,n=0,r=0;if(0===t)return[0,0];for(;rthis.length)&&(r=this.length),n>=this.length)return t||o.alloc(0);if(r<=0)return t||o.alloc(0);var i,a,s=!!t,c=this._offset(n),l=r-n,u=l,p=s&&e||0,f=c[1];if(0===n&&r==this.length){if(!s)return 1===this._bufs.length?this._bufs[0]:o.concat(this._bufs,this.length);for(a=0;a(i=this._bufs[a].length-f))){this._bufs[a].copy(t,p,f,f+u);break}this._bufs[a].copy(t,p,f),p+=i,u-=i,f&&(f=0)}return t},a.prototype.shallowSlice=function(t,e){t=t||0,e=e||this.length,t<0&&(t+=this.length),e<0&&(e+=this.length);var n=this._offset(t),r=this._offset(e),i=this._bufs.slice(n[0],r[0]+1);return 0==r[1]?i.pop():i[i.length-1]=i[i.length-1].slice(0,r[1]),0!=n[1]&&(i[0]=i[0].slice(n[1])),new a(i)},a.prototype.toString=function(t,e,n){return this.slice(e,n).toString(t)},a.prototype.consume=function(t){for(;this._bufs.length;){if(!(t>=this._bufs[0].length)){this._bufs[0]=this._bufs[0].slice(t),this.length-=t;break}t-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift()}return this},a.prototype.duplicate=function(){for(var t=0,e=new a;t0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n},t.prototype.concat=function(t){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var e,n,i,o=r.allocUnsafe(t>>>0),a=this.head,s=0;a;)e=a.data,n=o,i=s,e.copy(n,i),s+=a.data.length,a=a.next;return o},t}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var t=i.inspect({length:this.length});return this.constructor.name+" "+t})},function(t,e,n){t.exports=n(3).deprecate},function(t,e,n){"use strict";t.exports=o;var r=n(102),i=n(23);function o(t){if(!(this instanceof o))return new o(t);r.call(this,t)}i.inherits=n(18),i.inherits(o,r),o.prototype._transform=function(t,e,n){n(null,t)}},function(t,e){t.exports=function(){for(var t={},e=0;et.length)throw new RangeError("Out of range index");return n>>>=0,(r=void 0===r?t.length:r>>>0)>n&&t.fill(e,n,r),t}t.exports=function(t,e,i,o,a){if(n)return t.fill(e,i,o,a);if("number"==typeof e)return r(t,e,i,o);if("string"==typeof e){if("string"==typeof i?(a=i,i=0,o=t.length):"string"==typeof o&&(a=o,o=t.length),void 0!==a&&"string"!=typeof a)throw new TypeError("encoding must be a string");if("latin1"===a&&(a="binary"),"string"==typeof a&&!Buffer.isEncoding(a))throw new TypeError("Unknown encoding: "+a);if(""===e)return r(t,0,i,o);if(function(t){return 1===t.length&&t.charCodeAt(0)<256}(e))return r(t,e.charCodeAt(0),i,o);e=new Buffer(e,a)}return Buffer.isBuffer(e)?function(t,e,n,r){if(n<0||r>t.length)throw new RangeError("Out of range index");if(r<=n)return t;n>>>=0,r=void 0===r?t.length:r>>>0;for(var i=n,o=e.length;i<=r-o;)e.copy(t,i),i+=o;return i!==r&&e.copy(t,i,0,r-i),t}(t,e,i,o):r(t,0,i,o)}},function(t,e){t.exports=function(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative');return Buffer.allocUnsafe?Buffer.allocUnsafe(t):new Buffer(t)}},function(t,e,n){var r=n(233),i=n(131),o=n(3),a=n(105),s=n(104),c=n(11).Readable,l=n(11).Writable,u=n(92).StringDecoder,p=n(103),f=parseInt("755",8),h=parseInt("644",8),d=a(1024),g=function(){},m=function(t,e){(e&=511)&&t.push(d.slice(0,512-e))};var _=function(t){l.call(this),this.written=0,this._to=t,this._destroyed=!1};o.inherits(_,l),_.prototype._write=function(t,e,n){if(this.written+=t.length,this._to.push(t))return n();this._to._drain=n},_.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var b=function(){l.call(this),this.linkname="",this._decoder=new u("utf-8"),this._destroyed=!1};o.inherits(b,l),b.prototype._write=function(t,e,n){this.linkname+=this._decoder.write(t),n()},b.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var y=function(){l.call(this),this._destroyed=!1};o.inherits(y,l),y.prototype._write=function(t,e,n){n(new Error("No body allowed for this entry"))},y.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var v=function(t){if(!(this instanceof v))return new v(t);c.call(this,t),this._drain=g,this._finalized=!1,this._finalizing=!1,this._destroyed=!1,this._stream=null};o.inherits(v,c),v.prototype.entry=function(t,e,n){if(this._stream)throw new Error("already piping an entry");if(!this._finalized&&!this._destroyed){"function"==typeof e&&(n=e,e=null),n||(n=g);var o=this;if(t.size&&"symlink"!==t.type||(t.size=0),t.type||(t.type=function(t){switch(t&r.S_IFMT){case r.S_IFBLK:return"block-device";case r.S_IFCHR:return"character-device";case r.S_IFDIR:return"directory";case r.S_IFIFO:return"fifo";case r.S_IFLNK:return"symlink"}return"file"}(t.mode)),t.mode||(t.mode="directory"===t.type?f:h),t.uid||(t.uid=0),t.gid||(t.gid=0),t.mtime||(t.mtime=new Date),"string"==typeof e&&(e=s(e)),Buffer.isBuffer(e))return t.size=e.length,this._encode(t),this.push(e),m(o,t.size),process.nextTick(n),new y;if("symlink"===t.type&&!t.linkname){var a=new b;return i(a,function(e){if(e)return o.destroy(),n(e);t.linkname=a.linkname,o._encode(t),n()}),a}if(this._encode(t),"file"!==t.type&&"contiguous-file"!==t.type)return process.nextTick(n),new y;var c=new _(this);return this._stream=c,i(c,function(e){return o._stream=null,e?(o.destroy(),n(e)):c.written!==t.size?(o.destroy(),n(new Error("size mismatch"))):(m(o,t.size),o._finalizing&&o.finalize(),void n())}),c}},v.prototype.finalize=function(){this._stream?this._finalizing=!0:this._finalized||(this._finalized=!0,this.push(d),this.push(null))},v.prototype.destroy=function(t){this._destroyed||(this._destroyed=!0,t&&this.emit("error",t),this.emit("close"),this._stream&&this._stream.destroy&&this._stream.destroy())},v.prototype._encode=function(t){if(!t.pax){var e=p.encode(t);if(e)return void this.push(e)}this._encodePax(t)},v.prototype._encodePax=function(t){var e=p.encodePax({name:t.name,linkname:t.linkname,pax:t.pax}),n={name:"PaxHeader",mode:t.mode,uid:t.uid,gid:t.gid,size:e.length,mtime:t.mtime,type:"pax-header",linkname:t.linkname&&"PaxHeader",uname:t.uname,gname:t.gname,devmajor:t.devmajor,devminor:t.devminor};this.push(p.encode(n)),this.push(e),m(this,e.length),n.size=t.size,n.type=t.type,this.push(p.encode(n))},v.prototype._read=function(t){var e=this._drain;this._drain=g,e()},t.exports=v},function(t,e,n){t.exports=n(5).constants||n(66)},function(t,e,n){"use strict";const r=n(53),i=n(235),o=n(47),a=n(236),s=n(241);t.exports=()=>t=>Buffer.isBuffer(t)||o(t)?!Buffer.isBuffer(t)||i(t)&&"bz2"===i(t).ext?Buffer.isBuffer(t)?r()(a.decode(t)):r()(t.pipe(s())):Promise.resolve([]):Promise.reject(new TypeError(`Expected a Buffer or Stream, got ${typeof t}`))},function(t,e,n){"use strict";const r=t=>Array.from(t).map(t=>t.charCodeAt(0)),i=r("META-INF/mozilla.rsa"),o=r("[Content_Types].xml"),a=r("_rels/.rels");t.exports=t=>{const e=new Uint8Array(t);if(!(e&&e.length>1))return null;const n=(t,n)=>{n=Object.assign({offset:0},n);for(let r=0;rt.findIndex((t,e,n)=>80===n[e]&&75===n[e+1]&&3===n[e+2]&&4===n[e+3]),i=t(e.subarray(4,2004));if(-1!==i){const o=t(e.subarray(i+8,i+8+1e3));if(-1!==o){const t=8+i+o+30;if(n(r("word/"),{offset:t}))return{ext:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"};if(n(r("ppt/"),{offset:t}))return{ext:"pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"};if(n(r("xl/"),{offset:t}))return{ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}}}}}if(n([80,75])&&(3===e[2]||5===e[2]||7===e[2])&&(4===e[3]||6===e[3]||8===e[3]))return{ext:"zip",mime:"application/zip"};if(n([117,115,116,97,114],{offset:257}))return{ext:"tar",mime:"application/x-tar"};if(n([82,97,114,33,26,7])&&(0===e[6]||1===e[6]))return{ext:"rar",mime:"application/x-rar-compressed"};if(n([31,139,8]))return{ext:"gz",mime:"application/gzip"};if(n([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(n([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(n([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(n([51,103,112,53])||n([0,0,0])&&n([102,116,121,112],{offset:4})&&(n([109,112,52,49],{offset:8})||n([109,112,52,50],{offset:8})||n([105,115,111,109],{offset:8})||n([105,115,111,50],{offset:8})||n([109,109,112,52],{offset:8})||n([77,52,86],{offset:8})||n([100,97,115,104],{offset:8})))return{ext:"mp4",mime:"video/mp4"};if(n([77,84,104,100]))return{ext:"mid",mime:"audio/midi"};if(n([26,69,223,163])){const t=e.subarray(4,4100),n=t.findIndex((t,e,n)=>66===n[e]&&130===n[e+1]);if(-1!==n){const e=n+3,r=n=>Array.from(n).every((n,r)=>t[e+r]===n.charCodeAt(0));if(r("matroska"))return{ext:"mkv",mime:"video/x-matroska"};if(r("webm"))return{ext:"webm",mime:"video/webm"}}}if(n([0,0,0,20,102,116,121,112,113,116,32,32])||n([102,114,101,101],{offset:4})||n([102,116,121,112,113,116,32,32],{offset:4})||n([109,100,97,116],{offset:4})||n([119,105,100,101],{offset:4}))return{ext:"mov",mime:"video/quicktime"};if(n([82,73,70,70])&&n([65,86,73],{offset:8}))return{ext:"avi",mime:"video/x-msvideo"};if(n([48,38,178,117,142,102,207,17,166,217]))return{ext:"wmv",mime:"video/x-ms-wmv"};if(n([0,0,1,186]))return{ext:"mpg",mime:"video/mpeg"};for(let t=0;t<2&&t0;n--)t[n]=t[n-1];return t[0]=r,r},c={OK:0,LAST_BLOCK:-1,NOT_BZIP_DATA:-2,UNEXPECTED_INPUT_EOF:-3,UNEXPECTED_OUTPUT_EOF:-4,DATA_ERROR:-5,OUT_OF_MEMORY:-6,OBSOLETE_INPUT:-7,END_OF_BLOCK:-8},l={};l[c.LAST_BLOCK]="Bad file checksum",l[c.NOT_BZIP_DATA]="Not bzip data",l[c.UNEXPECTED_INPUT_EOF]="Unexpected input EOF",l[c.UNEXPECTED_OUTPUT_EOF]="Unexpected output EOF",l[c.DATA_ERROR]="Data error",l[c.OUT_OF_MEMORY]="Out of memory",l[c.OBSOLETE_INPUT]="Obsolete (pre 0.9.5) bzip format not supported.";var u=function(t,e){var n=l[t]||"unknown error";e&&(n+=": "+e);var r=new TypeError(n);throw r.errorCode=t,r},p=function(t,e){this.writePos=this.writeCurrent=this.writeCount=0,this._start_bunzip(t,e)};p.prototype._init_block=function(){return this._get_next_block()?(this.blockCRC=new o,!0):(this.writeCount=-1,!1)},p.prototype._start_bunzip=function(t,e){var n=new Buffer(4);4===t.read(n,0,4)&&"BZh"===String.fromCharCode(n[0],n[1],n[2])||u(c.NOT_BZIP_DATA,"bad magic");var i=n[3]-48;(i<1||i>9)&&u(c.NOT_BZIP_DATA,"level out of range"),this.reader=new r(t),this.dbufSize=1e5*i,this.nextoutput=0,this.outputStream=e,this.streamCRC=0},p.prototype._get_next_block=function(){var t,e,n,r=this.reader,i=r.pi();if("177245385090"===i)return!1;"314159265359"!==i&&u(c.NOT_BZIP_DATA),this.targetBlockCRC=r.read(32)>>>0,this.streamCRC=(this.targetBlockCRC^(this.streamCRC<<1|this.streamCRC>>>31))>>>0,r.read(1)&&u(c.OBSOLETE_INPUT);var o=r.read(24);o>this.dbufSize&&u(c.DATA_ERROR,"initial position out of bounds");var a=r.read(16),l=new Buffer(256),p=0;for(t=0;t<16;t++)if(a&1<<15-t){var f=16*t;for(n=r.read(16),e=0;e<16;e++)n&1<<15-e&&(l[p++]=f+e)}var h=r.read(3);(h<2||h>6)&&u(c.DATA_ERROR);var d=r.read(15);0===d&&u(c.DATA_ERROR);var g=new Buffer(256);for(t=0;t=h&&u(c.DATA_ERROR);m[t]=s(g,e)}var _,b=p+2,y=[];for(e=0;e20)&&u(c.DATA_ERROR),r.read(1);)r.read(1)?a--:a++;w[t]=a}for(v=x=w[0],t=1;tx?x=w[t]:w[t]=d&&u(c.DATA_ERROR),_=y[m[A++]]),t=_.minLen,e=r.read(t);t>_.maxLen&&u(c.DATA_ERROR),!(e<=_.limit[t]);t++)e=e<<1|r.read(1);((e-=_.base[t])<0||e>=258)&&u(c.DATA_ERROR);var P=_.permute[e];if(0!==P&&1!==P){if(T)for(T=0,O+a>this.dbufSize&&u(c.DATA_ERROR),S[I=l[g[0]]]+=a;a--;)C[O++]=I;if(P>p)break;O>=this.dbufSize&&u(c.DATA_ERROR),S[I=l[I=s(g,t=P-1)]]++,C[O++]=I}else T||(T=1,a=0),a+=0===P?T:2*T,T<<=1}for((o<0||o>=O)&&u(c.DATA_ERROR),e=0,t=0;t<256;t++)n=e+S[t],S[t]=e,e=n;for(t=0;t>=8,L=-1),this.writePos=D,this.writeCurrent=B,this.writeCount=O,this.writeRun=L,!0},p.prototype._read_bunzip=function(t,e){var n,r,i;if(this.writeCount<0)return 0;for(var o=this.dbuf,a=this.writePos,s=this.writeCurrent,l=this.writeCount,p=(this.outputsize,this.writeRun);l;){for(l--,r=s,s=255&(a=o[a]),a>>=8,3==p++?(n=s,i=r,s=-1):(n=1,i=s),this.blockCRC.updateCRCRun(i,n);n--;)this.outputStream.writeByte(i),this.nextoutput++;s!=r&&(p=0)}return this.writeCount=l,this.blockCRC.getCRC()!==this.targetBlockCRC&&u(c.DATA_ERROR,"Bad block CRC (got "+this.blockCRC.getCRC().toString(16)+" expected "+this.targetBlockCRC.toString(16)+")"),this.nextoutput};var f=function(t){if("readByte"in t)return t;var e=new i;return e.pos=0,e.readByte=function(){return t[this.pos++]},e.seek=function(t){this.pos=t},e.eof=function(){return this.pos>=t.length},e},h=function(t){var e=new i,n=!0;if(t)if("number"==typeof t)e.buffer=new Buffer(t),n=!1;else{if("writeByte"in t)return t;e.buffer=t,n=!1}else e.buffer=new Buffer(16384);return e.pos=0,e.writeByte=function(t){if(n&&this.pos>=this.buffer.length){var e=new Buffer(2*this.buffer.length);this.buffer.copy(e),this.buffer=e}this.buffer[this.pos++]=t},e.getBuffer=function(){if(this.pos!==this.buffer.length){if(!n)throw new TypeError("outputsize does not match decoded input");var t=new Buffer(this.pos);this.buffer.copy(t,0,0,this.pos),this.buffer=t}return this.buffer},e._coerced=!0,e};p.Err=c,p.decode=function(t,e,n){for(var r=f(t),i=h(e),o=new p(r,i);!("eof"in r&&r.eof());)if(o._init_block())o._read_bunzip();else{var a=o.reader.read(32)>>>0;if(a!==o.streamCRC&&u(c.DATA_ERROR,"Bad stream CRC (got "+o.streamCRC.toString(16)+" expected "+a.toString(16)+")"),!(n&&"eof"in r)||r.eof())break;o._start_bunzip(r,i)}if("getBuffer"in i)return i.getBuffer()},p.decodeBlock=function(t,e,n){var r=f(t),i=h(n),a=new p(r,i);if(a.reader.seek(e),a._get_next_block()&&(a.blockCRC=new o,a.writeCopies=0,a._read_bunzip()),"getBuffer"in i)return i.getBuffer()},p.table=function(t,e,n){var r=new i;r.delegate=f(t),r.pos=0,r.readByte=function(){return this.pos++,this.delegate.readByte()},r.delegate.eof&&(r.eof=r.delegate.eof.bind(r.delegate));var o=new i;o.pos=0,o.writeByte=function(){this.pos++};for(var a=new p(r,o),s=a.dbufSize;!("eof"in r&&r.eof());){var c=8*r.pos+a.reader.bitOffset;if(a.reader.hasByte&&(c-=8),a._init_block()){var l=o.pos;a._read_bunzip(),e(c,o.pos-l)}else{a.reader.read(32);if(!(n&&"eof"in r)||r.eof())break;a._start_bunzip(r,o),console.assert(a.dbufSize===s,"shouldn't change block size within multistream file")}}},p.Stream=i,p.version=a.version,p.license=a.license,t.exports=p},function(t,e){var n=[0,1,3,7,15,31,63,127,255],r=function(t){this.stream=t,this.bitOffset=0,this.curByte=0,this.hasByte=!1};r.prototype._ensureByte=function(){this.hasByte||(this.curByte=this.stream.readByte(),this.hasByte=!0)},r.prototype.read=function(t){for(var e=0;t>0;){this._ensureByte();var r=8-this.bitOffset;if(t>=r)e<<=r,e|=n[r]&this.curByte,this.hasByte=!1,this.bitOffset=0,t-=r;else{e<<=t;var i=r-t;e|=(this.curByte&n[t]<>i,this.bitOffset+=t,t=0}}return e},r.prototype.seek=function(t){var e=t%8,n=(t-e)/8;this.bitOffset=e,this.stream.seek(n),this.hasByte=!1},r.prototype.pi=function(){var t,e=new Buffer(6);for(t=0;t>>0},this.updateCRC=function(e){t=t<<8^n[255&(t>>>24^e)]},this.updateCRCRun=function(e,r){for(;r-- >0;)t=t<<8^n[255&(t>>>24^e)]}})},function(t){t.exports={name:"seek-bzip",version:"1.0.5",contributors:["C. Scott Ananian (http://cscott.net)","Eli Skeggs","Kevin Kwok","Rob Landley (http://landley.net)"],description:"a pure-JavaScript Node.JS module for random-access decoding bzip2 data",main:"./lib/index.js",repository:{type:"git",url:"https://github.com/cscott/seek-bzip.git"},license:"MIT",bin:{"seek-bunzip":"./bin/seek-bunzip","seek-table":"./bin/seek-bzip-table"},directories:{test:"test"},dependencies:{commander:"~2.8.1"},devDependencies:{fibers:"~1.0.6",mocha:"~2.2.5"},scripts:{test:"mocha"}}},function(t,e,n){var r=n(242),i=n(243),o=n(244);t.exports=function(){var t=[],e=0,n=0,a=!1,s=null,c=null;function l(t){if(!a)try{return function(t){if(n){var e=1e5*n,r=new Int32Array(e),o=[];return null===(c=i.decompress(s,function(t){o.push(t)},r,e,c))?(n=0,!1):(t(Buffer.from(o)),!0)}return n=i.header(s),!0}(function(e){t.queue(e),null!==e&&e.length})}catch(e){return t.emit("error",e),a=!0,!1}}return r(function(r){for(t.push(r),e+=r.length,null===s&&(s=o(function(){return t.shift()}));!a&&e-s.bytesRead+1>=(25e3+1e5*n||4);)l(this)},function(t){for(;!a&&e>s.bytesRead;)l(this);a||(null!==c&&stream.emit("error",new Error("input stream ended prematurely")),this.queue(null))})}},function(t,e,n){var r=n(7);function i(t,e,n){t=t||function(t){this.queue(t)},e=e||function(){this.queue(null)};var i=!1,o=!1,a=[],s=!1,c=new r;function l(){for(;a.length&&!c.paused;){var t=a.shift();if(null===t)return c.emit("end");c.emit("data",t)}}function u(){c.writable=!1,e.call(c),!c.readable&&c.autoDestroy&&c.destroy()}return c.readable=c.writable=!0,c.paused=!1,c.autoDestroy=!(n&&!1===n.autoDestroy),c.write=function(e){return t.call(this,e),!c.paused},c.queue=c.push=function(t){return s?c:(null===t&&(s=!0),a.push(t),l(),c)},c.on("end",function(){c.readable=!1,!c.writable&&c.autoDestroy&&process.nextTick(function(){c.destroy()})}),c.end=function(t){if(!i)return i=!0,arguments.length&&c.write(t),u(),c},c.destroy=function(){if(!o)return o=!0,i=!0,a.length=0,c.writable=c.readable=!1,c.emit("close"),c},c.pause=function(){if(!c.paused)return c.paused=!0,c},c.resume=function(){return c.paused&&(c.paused=!1,c.emit("resume")),l(),c.paused||c.emit("drain"),c},c}t.exports=i,i.through=i},function(t,e){function n(t){this.name="Bzip2Error",this.message=t,this.stack=(new Error).stack}n.prototype=new Error;var r=function(t){throw new n(t)},i={};i.Bzip2Error=n,i.crcTable=[0,79764919,159529838,222504665,319059676,398814059,445009330,507990021,638119352,583659535,797628118,726387553,890018660,835552979,1015980042,944750013,1276238704,1221641927,1167319070,1095957929,1595256236,1540665371,1452775106,1381403509,1780037320,1859660671,1671105958,1733955601,2031960084,2111593891,1889500026,1952343757,2552477408,2632100695,2443283854,2506133561,2334638140,2414271883,2191915858,2254759653,3190512472,3135915759,3081330742,3009969537,2905550212,2850959411,2762807018,2691435357,3560074640,3505614887,3719321342,3648080713,3342211916,3287746299,3467911202,3396681109,4063920168,4143685023,4223187782,4286162673,3779000052,3858754371,3904687514,3967668269,881225847,809987520,1023691545,969234094,662832811,591600412,771767749,717299826,311336399,374308984,453813921,533576470,25881363,88864420,134795389,214552010,2023205639,2086057648,1897238633,1976864222,1804852699,1867694188,1645340341,1724971778,1587496639,1516133128,1461550545,1406951526,1302016099,1230646740,1142491917,1087903418,2896545431,2825181984,2770861561,2716262478,3215044683,3143675388,3055782693,3001194130,2326604591,2389456536,2200899649,2280525302,2578013683,2640855108,2418763421,2498394922,3769900519,3832873040,3912640137,3992402750,4088425275,4151408268,4197601365,4277358050,3334271071,3263032808,3476998961,3422541446,3585640067,3514407732,3694837229,3640369242,1762451694,1842216281,1619975040,1682949687,2047383090,2127137669,1938468188,2001449195,1325665622,1271206113,1183200824,1111960463,1543535498,1489069629,1434599652,1363369299,622672798,568075817,748617968,677256519,907627842,853037301,1067152940,995781531,51762726,131386257,177728840,240578815,269590778,349224269,429104020,491947555,4046411278,4126034873,4172115296,4234965207,3794477266,3874110821,3953728444,4016571915,3609705398,3555108353,3735388376,3664026991,3290680682,3236090077,3449943556,3378572211,3174993278,3120533705,3032266256,2961025959,2923101090,2868635157,2813903052,2742672763,2604032198,2683796849,2461293480,2524268063,2284983834,2364738477,2175806836,2238787779,1569362073,1498123566,1409854455,1355396672,1317987909,1246755826,1192025387,1137557660,2072149281,2135122070,1912620623,1992383480,1753615357,1816598090,1627664531,1707420964,295390185,358241886,404320391,483945776,43990325,106832002,186451547,266083308,932423249,861060070,1041341759,986742920,613929101,542559546,756411363,701822548,3316196985,3244833742,3425377559,3370778784,3601682597,3530312978,3744426955,3689838204,3819031489,3881883254,3928223919,4007849240,4037393693,4100235434,4180117107,4259748804,2310601993,2373574846,2151335527,2231098320,2596047829,2659030626,2470359227,2550115596,2947551409,2876312838,2788305887,2733848168,3165939309,3094707162,3040238851,2985771188],i.array=function(t){var e=0,n=0,r=[0,1,3,7,15,31,63,127,255];return function(i){for(var o=0;i>0;){var a=8-e;i>=a?(o<<=a,o|=r[a]&t[n++],e=0,i-=a):(o<<=i,o|=(t[n]&r[i]<<8-i-e)>>8-i-e,e+=i,i=0)}return o}},i.simple=function(t,e){var n=i.array(t),r=!1,o=1e5*i.header(n),a=new Int32Array(o);do{r=i.decompress(n,e,a,o)}while(!r)},i.header=function(t){this.byteCount=new Int32Array(256),this.symToByte=new Uint8Array(256),this.mtfSymbol=new Int32Array(256),this.selectors=new Uint8Array(32768),4348520!=t(24)&&r("No magic number found");var e=t(8)-48;return(e<1||e>9)&&r("Not a BZIP archive"),e},i.decompress=function(t,e,n,i,o){for(var a=-1,s="",c=0;c<6;c++)s+=t(8).toString(16);if("177245385090"==s)return(0|t(32))!==o&&r("Error in bzip2: crc32 do not match"),t(null),null;"314159265359"!=s&&r("eek not valid bzip data");var l=0|t(32);t(1)&&r("unsupported obsolete version");var u=t(24);u>i&&r("Initial position larger than buffer size");var p=t(16),f=0;for(c=0;c<16;c++)if(p&1<<15-c){var h=t(16);for(m=0;m<16;m++)h&1<<15-m&&(this.symToByte[f++]=16*c+m)}var d=t(3);(d<2||d>6)&&r("another error");var g=t(15);0==g&&r("meh");for(c=0;c=d&&r("whoops another error");var _=this.mtfSymbol[m];for(h=m-1;h>=0;h--)this.mtfSymbol[h+1]=this.mtfSymbol[h];this.mtfSymbol[0]=_,this.selectors[c]=_}var b,y,v,x,w=f+2,k=[],E=new Uint8Array(258),S=new Uint16Array(21);for(m=0;m20)&&r("I gave up a while ago on writing error messages"),t(1);)t(1)?p--:p++;E[c]=p}var I,T;I=T=E[0];for(c=1;cT?T=E[c]:E[c]=g&&r("meow i'm a kitty, that's an error"),O=(b=k[this.selectors[x++]]).base.subarray(1),A=b.limit.subarray(1)),m=t(c=b.minLen);c>b.maxLen&&r("rawr i'm a dinosaur"),!(m<=A[c]);)c++,m=m<<1|t(1);((m-=O[c])<0||m>=258)&&r("moo i'm a cow");var P=b.permute[m];if(0!=P&&1!=P){if(y)for(y=0,v+p>i&&r("Boom."),_=this.symToByte[this.mtfSymbol[0]],this.byteCount[_]+=p;p--;)n[v++]=_;if(P>f)break;v>=i&&r("I can't think of anything. Error"),c=P-1,_=this.mtfSymbol[c];for(h=c-1;h>=0;h--)this.mtfSymbol[h+1]=this.mtfSymbol[h];this.mtfSymbol[0]=_,_=this.symToByte[_],this.byteCount[_]++,n[v++]=_}else y||(y=1,p=0),p+=0==P?y:2*y,y<<=1}(u<0||u>=v)&&r("I'm a monkey and I'm throwing something at someone, namely you");for(m=0,c=0;c<256;c++)h=m+this.byteCount[c],this.byteCount[c]=m,m=h;for(c=0;c>=8,z=-1),v=v;v;){for(v--,B=M,M=255&(N=n[N]),N>>=8,3==z++?(D=M,L=B,M=-1):(D=1,L=M);D--;)a=4294967295&(a<<8^this.crcTable[255&(a>>24^L)]),e(L);M!=B&&(z=0)}return(0|(a=(-1^a)>>>0))!=(0|l)&&r("Error in bzip2: crc32 do not match"),null===o&&(o=0),o=4294967295&(a^(o<<1|o>>>31))},t.exports=i},function(t,e){var n=[0,1,3,7,15,31,63,127,255];t.exports=function(t){var e=0,r=0,i=t(),o=function(a){if(null===a&&0!=e)return e=0,void r++;for(var s=0;a>0;){r>=i.length&&(r=0,i=t());var c=8-e;0===e&&a>0&&o.bytesRead++,a>=c?(s<<=c,s|=n[c]&i[r++],e=0,a-=c):(s<<=a,s|=(i[r]&n[a]<<8-a-e)>>8-a-e,e+=a,a=0)}return s};return o.bytesRead=0,o}},function(t,e,n){"use strict";const r=n(12),i=n(53),o=n(95),a=n(47);t.exports=()=>t=>{if(!Buffer.isBuffer(t)&&!a(t))return Promise.reject(new TypeError(`Expected a Buffer or Stream, got ${typeof t}`));if(Buffer.isBuffer(t)&&(!o(t)||"gz"!==o(t).ext))return Promise.resolve([]);const e=r.createGunzip(),n=i()(e);return Buffer.isBuffer(t)?e.end(t):t.pipe(e),n}},function(t,e,n){"use strict";const r=n(247),i=n(248),o=n(108),a=n(252),s=t=>new Promise((e,n)=>{const r=[];t.readEntry(),t.on("entry",e=>{((t,e)=>{const n={mode:t.externalFileAttributes>>16&65535,mtime:t.getLastModDate(),path:t.fileName};return n.type=((t,e)=>{const n=t.versionMadeBy>>8;return 40960==(61440&e)?"symlink":16384==(61440&e)||0===n&&16===t.externalFileAttributes?"directory":"file"})(t,n.mode),0===n.mode&&"directory"===n.type&&(n.mode=493),0===n.mode&&(n.mode=420),o(e.openReadStream.bind(e))(t).then(i.buffer).then(t=>(n.data=t,"symlink"===n.type&&(n.linkname=t.toString()),n)).catch(t=>{throw e.close(),t})})(e,t).catch(n).then(e=>{r.push(e),t.readEntry()})}),t.on("error",n),t.on("end",()=>e(r))});t.exports=()=>t=>Buffer.isBuffer(t)?r(t)&&"zip"===r(t).ext?o(a.fromBuffer)(t,{lazyEntries:!0}).then(s):Promise.resolve([]):Promise.reject(new TypeError(`Expected a Buffer, got ${typeof t}`))},function(t,e,n){"use strict";t.exports=function(t){return t&&t.length>1?255===t[0]&&216===t[1]&&255===t[2]?{ext:"jpg",mime:"image/jpeg"}:137===t[0]&&80===t[1]&&78===t[2]&&71===t[3]?{ext:"png",mime:"image/png"}:71===t[0]&&73===t[1]&&70===t[2]?{ext:"gif",mime:"image/gif"}:87===t[8]&&69===t[9]&&66===t[10]&&80===t[11]?{ext:"webp",mime:"image/webp"}:70===t[0]&&76===t[1]&&73===t[2]&&70===t[3]?{ext:"flif",mime:"image/flif"}:(73===t[0]&&73===t[1]&&42===t[2]&&0===t[3]||77===t[0]&&77===t[1]&&0===t[2]&&42===t[3])&&67===t[8]&&82===t[9]?{ext:"cr2",mime:"image/x-canon-cr2"}:73===t[0]&&73===t[1]&&42===t[2]&&0===t[3]||77===t[0]&&77===t[1]&&0===t[2]&&42===t[3]?{ext:"tif",mime:"image/tiff"}:66===t[0]&&77===t[1]?{ext:"bmp",mime:"image/bmp"}:73===t[0]&&73===t[1]&&188===t[2]?{ext:"jxr",mime:"image/vnd.ms-photo"}:56===t[0]&&66===t[1]&&80===t[2]&&83===t[3]?{ext:"psd",mime:"image/vnd.adobe.photoshop"}:80===t[0]&&75===t[1]&&3===t[2]&&4===t[3]&&109===t[30]&&105===t[31]&&109===t[32]&&101===t[33]&&116===t[34]&&121===t[35]&&112===t[36]&&101===t[37]&&97===t[38]&&112===t[39]&&112===t[40]&&108===t[41]&&105===t[42]&&99===t[43]&&97===t[44]&&116===t[45]&&105===t[46]&&111===t[47]&&110===t[48]&&47===t[49]&&101===t[50]&&112===t[51]&&117===t[52]&&98===t[53]&&43===t[54]&&122===t[55]&&105===t[56]&&112===t[57]?{ext:"epub",mime:"application/epub+zip"}:80===t[0]&&75===t[1]&&3===t[2]&&4===t[3]&&77===t[30]&&69===t[31]&&84===t[32]&&65===t[33]&&45===t[34]&&73===t[35]&&78===t[36]&&70===t[37]&&47===t[38]&&109===t[39]&&111===t[40]&&122===t[41]&&105===t[42]&&108===t[43]&&108===t[44]&&97===t[45]&&46===t[46]&&114===t[47]&&115===t[48]&&97===t[49]?{ext:"xpi",mime:"application/x-xpinstall"}:80!==t[0]||75!==t[1]||3!==t[2]&&5!==t[2]&&7!==t[2]||4!==t[3]&&6!==t[3]&&8!==t[3]?117===t[257]&&115===t[258]&&116===t[259]&&97===t[260]&&114===t[261]?{ext:"tar",mime:"application/x-tar"}:82!==t[0]||97!==t[1]||114!==t[2]||33!==t[3]||26!==t[4]||7!==t[5]||0!==t[6]&&1!==t[6]?31===t[0]&&139===t[1]&&8===t[2]?{ext:"gz",mime:"application/gzip"}:66===t[0]&&90===t[1]&&104===t[2]?{ext:"bz2",mime:"application/x-bzip2"}:55===t[0]&&122===t[1]&&188===t[2]&&175===t[3]&&39===t[4]&&28===t[5]?{ext:"7z",mime:"application/x-7z-compressed"}:120===t[0]&&1===t[1]?{ext:"dmg",mime:"application/x-apple-diskimage"}:0===t[0]&&0===t[1]&&0===t[2]&&(24===t[3]||32===t[3])&&102===t[4]&&116===t[5]&&121===t[6]&&112===t[7]||51===t[0]&&103===t[1]&&112===t[2]&&53===t[3]||0===t[0]&&0===t[1]&&0===t[2]&&28===t[3]&&102===t[4]&&116===t[5]&&121===t[6]&&112===t[7]&&109===t[8]&&112===t[9]&&52===t[10]&&50===t[11]&&109===t[16]&&112===t[17]&&52===t[18]&&49===t[19]&&109===t[20]&&112===t[21]&&52===t[22]&&50===t[23]&&105===t[24]&&115===t[25]&&111===t[26]&&109===t[27]||0===t[0]&&0===t[1]&&0===t[2]&&28===t[3]&&102===t[4]&&116===t[5]&&121===t[6]&&112===t[7]&&105===t[8]&&115===t[9]&&111===t[10]&&109===t[11]||0===t[0]&&0===t[1]&&0===t[2]&&28===t[3]&&102===t[4]&&116===t[5]&&121===t[6]&&112===t[7]&&109===t[8]&&112===t[9]&&52===t[10]&&50===t[11]&&0===t[12]&&0===t[13]&&0===t[14]&&0===t[15]?{ext:"mp4",mime:"video/mp4"}:0===t[0]&&0===t[1]&&0===t[2]&&28===t[3]&&102===t[4]&&116===t[5]&&121===t[6]&&112===t[7]&&77===t[8]&&52===t[9]&&86===t[10]?{ext:"m4v",mime:"video/x-m4v"}:77===t[0]&&84===t[1]&&104===t[2]&&100===t[3]?{ext:"mid",mime:"audio/midi"}:109===t[31]&&97===t[32]&&116===t[33]&&114===t[34]&&111===t[35]&&115===t[36]&&107===t[37]&&97===t[38]?{ext:"mkv",mime:"video/x-matroska"}:26===t[0]&&69===t[1]&&223===t[2]&&163===t[3]?{ext:"webm",mime:"video/webm"}:0===t[0]&&0===t[1]&&0===t[2]&&20===t[3]&&102===t[4]&&116===t[5]&&121===t[6]&&112===t[7]?{ext:"mov",mime:"video/quicktime"}:82===t[0]&&73===t[1]&&70===t[2]&&70===t[3]&&65===t[8]&&86===t[9]&&73===t[10]?{ext:"avi",mime:"video/x-msvideo"}:48===t[0]&&38===t[1]&&178===t[2]&&117===t[3]&&142===t[4]&&102===t[5]&&207===t[6]&&17===t[7]&&166===t[8]&&217===t[9]?{ext:"wmv",mime:"video/x-ms-wmv"}:0===t[0]&&0===t[1]&&1===t[2]&&"b"===t[3].toString(16)[0]?{ext:"mpg",mime:"video/mpeg"}:73===t[0]&&68===t[1]&&51===t[2]||255===t[0]&&251===t[1]?{ext:"mp3",mime:"audio/mpeg"}:102===t[4]&&116===t[5]&&121===t[6]&&112===t[7]&&77===t[8]&&52===t[9]&&65===t[10]||77===t[0]&&52===t[1]&&65===t[2]&&32===t[3]?{ext:"m4a",mime:"audio/m4a"}:79===t[28]&&112===t[29]&&117===t[30]&&115===t[31]&&72===t[32]&&101===t[33]&&97===t[34]&&100===t[35]?{ext:"opus",mime:"audio/opus"}:79===t[0]&&103===t[1]&&103===t[2]&&83===t[3]?{ext:"ogg",mime:"audio/ogg"}:102===t[0]&&76===t[1]&&97===t[2]&&67===t[3]?{ext:"flac",mime:"audio/x-flac"}:82===t[0]&&73===t[1]&&70===t[2]&&70===t[3]&&87===t[8]&&65===t[9]&&86===t[10]&&69===t[11]?{ext:"wav",mime:"audio/x-wav"}:35===t[0]&&33===t[1]&&65===t[2]&&77===t[3]&&82===t[4]&&10===t[5]?{ext:"amr",mime:"audio/amr"}:37===t[0]&&80===t[1]&&68===t[2]&&70===t[3]?{ext:"pdf",mime:"application/pdf"}:77===t[0]&&90===t[1]?{ext:"exe",mime:"application/x-msdownload"}:67!==t[0]&&70!==t[0]||87!==t[1]||83!==t[2]?123===t[0]&&92===t[1]&&114===t[2]&&116===t[3]&&102===t[4]?{ext:"rtf",mime:"application/rtf"}:119===t[0]&&79===t[1]&&70===t[2]&&70===t[3]&&(0===t[4]&&1===t[5]&&0===t[6]&&0===t[7]||79===t[4]&&84===t[5]&&84===t[6]&&79===t[7])?{ext:"woff",mime:"application/font-woff"}:119===t[0]&&79===t[1]&&70===t[2]&&50===t[3]&&(0===t[4]&&1===t[5]&&0===t[6]&&0===t[7]||79===t[4]&&84===t[5]&&84===t[6]&&79===t[7])?{ext:"woff2",mime:"application/font-woff"}:76===t[34]&&80===t[35]&&(0===t[8]&&0===t[9]&&1===t[10]||1===t[8]&&0===t[9]&&2===t[10]||2===t[8]&&0===t[9]&&2===t[10])?{ext:"eot",mime:"application/octet-stream"}:0===t[0]&&1===t[1]&&0===t[2]&&0===t[3]&&0===t[4]?{ext:"ttf",mime:"application/font-sfnt"}:79===t[0]&&84===t[1]&&84===t[2]&&79===t[3]&&0===t[4]?{ext:"otf",mime:"application/font-sfnt"}:0===t[0]&&0===t[1]&&1===t[2]&&0===t[3]?{ext:"ico",mime:"image/x-icon"}:70===t[0]&&76===t[1]&&86===t[2]&&1===t[3]?{ext:"flv",mime:"video/x-flv"}:37===t[0]&&33===t[1]?{ext:"ps",mime:"application/postscript"}:253===t[0]&&55===t[1]&&122===t[2]&&88===t[3]&&90===t[4]&&0===t[5]?{ext:"xz",mime:"application/x-xz"}:83===t[0]&&81===t[1]&&76===t[2]&&105===t[3]?{ext:"sqlite",mime:"application/x-sqlite3"}:78===t[0]&&69===t[1]&&83===t[2]&&26===t[3]?{ext:"nes",mime:"application/x-nintendo-nes-rom"}:67===t[0]&&114===t[1]&&50===t[2]&&52===t[3]?{ext:"crx",mime:"application/x-google-chrome-extension"}:77===t[0]&&83===t[1]&&67===t[2]&&70===t[3]||73===t[0]&&83===t[1]&&99===t[2]&&40===t[3]?{ext:"cab",mime:"application/vnd.ms-cab-compressed"}:33===t[0]&&60===t[1]&&97===t[2]&&114===t[3]&&99===t[4]&&104===t[5]&&62===t[6]&&10===t[7]&&100===t[8]&&101===t[9]&&98===t[10]&&105===t[11]&&97===t[12]&&110===t[13]&&45===t[14]&&98===t[15]&&105===t[16]&&110===t[17]&&97===t[18]&&114===t[19]&&121===t[20]?{ext:"deb",mime:"application/x-deb"}:33===t[0]&&60===t[1]&&97===t[2]&&114===t[3]&&99===t[4]&&104===t[5]&&62===t[6]?{ext:"ar",mime:"application/x-unix-archive"}:237===t[0]&&171===t[1]&&238===t[2]&&219===t[3]?{ext:"rpm",mime:"application/x-rpm"}:31===t[0]&&160===t[1]||31===t[0]&&157===t[1]?{ext:"Z",mime:"application/x-compress"}:76===t[0]&&90===t[1]&&73===t[2]&&80===t[3]?{ext:"lz",mime:"application/x-lzip"}:208===t[0]&&207===t[1]&&17===t[2]&&224===t[3]&&161===t[4]&&177===t[5]&&26===t[6]&&225===t[7]?{ext:"msi",mime:"application/x-msi"}:null:{ext:"swf",mime:"application/x-shockwave-flash"}:{ext:"rar",mime:"application/x-rar-compressed"}:{ext:"zip",mime:"application/zip"}:null}},function(t,e,n){"use strict";var r=n(249),i=n(107),o=n(251);function a(t,e){if(!t)return r.reject(new Error("Expected a stream"));var n,a,s=(e=i({maxBuffer:1/0},e)).maxBuffer,c=new r(function(r,i){function c(t){t&&(t.bufferedData=n.getBufferedValue()),i(t)}n=o(e),t.once("error",c),t.pipe(n),n.on("data",function(){n.getBufferedLength()>s&&i(new Error("maxBuffer exceeded"))}),n.once("error",c),n.on("end",r),a=function(){t.unpipe&&t.unpipe(n)}});return c.then(a,a),c.then(function(){return n.getBufferedValue()})}t.exports=a,t.exports.buffer=function(t,e){return a(t,i({},e,{encoding:"buffer"}))},t.exports.array=function(t,e){return a(t,i({},e,{array:!0}))}},function(t,e,n){"use strict";t.exports="function"==typeof Promise?Promise:n(250)},function(t,e,n){"use strict";var r,i="pending",o="settled",a="fulfilled",s="rejected",c=function(){},l="undefined"!=typeof global&&void 0!==global.process&&"function"==typeof global.process.emit,u="undefined"==typeof setImmediate?setTimeout:setImmediate,p=[];function f(){for(var t=0;tNumber.MAX_SAFE_INTEGER)throw new Error("zip file too large. only file sizes up to 2^52 are supported due to JavaScript's Number type being an IEEE 754 double.");t.ref();var o=Math.min(65557,e),a=E(o),s=e-a.length;v(t,a,0,o,s,function(c){if(c)return r(c);for(var l=o-22;l>=0;l-=1)if(101010256===a.readUInt32LE(l)){var u=a.slice(l),p=u.readUInt16LE(4);if(0!==p)return r(new Error("multi-disk zip files are not supported: found disk number: "+p));var f=u.readUInt16LE(10),h=u.readUInt32LE(16),g=u.readUInt16LE(20),m=u.length-22;if(g!==m)return r(new Error("invalid comment length. expected: "+m+". found: "+g));var _=i?I(u,22,u.length,!1):u.slice(22);if(65535!==f&&4294967295!==h)return r(null,new d(t,h,e,f,_,n.autoClose,n.lazyEntries,i,n.validateEntrySizes,n.strictFileNames));var b=E(20),y=s+l-b.length;return void v(t,b,0,b.length,y,function(o){if(o)return r(o);if(117853008!==b.readUInt32LE(0))return r(new Error("invalid zip64 end of central directory locator signature"));var a=T(b,8),s=E(56);v(t,s,0,s.length,a,function(o){return o?r(o):101075792!==s.readUInt32LE(0)?r(new Error("invalid zip64 end of central directory record signature")):(f=T(s,32),h=T(s,48),r(null,new d(t,h,e,f,_,n.autoClose,n.lazyEntries,i,n.validateEntrySizes,n.strictFileNames)))})})}r(new Error("end of central directory record signature not found"))})}function d(t,e,n,r,i,o,a,s,l,u){var p=this;c.call(p),p.reader=t,p.reader.on("error",function(t){m(p,t)}),p.reader.once("close",function(){p.emit("close")}),p.readEntryCursor=e,p.fileSize=n,p.entryCount=r,p.comment=i,p.entriesRead=0,p.autoClose=!!o,p.lazyEntries=!!a,p.decodeStrings=!!s,p.validateEntrySizes=!!l,p.strictFileNames=!!u,p.isOpen=!0,p.emittedError=!1,p.lazyEntries||p._readEntry()}function g(t,e){t.autoClose&&t.close(),m(t,e)}function m(t,e){t.emittedError||(t.emittedError=!0,t.emit("error",e))}function _(){}function b(t,e){return new Date(1980+(t>>9&127),(t>>5&15)-1,31&t,e>>11&31,e>>5&63,2*(31&e),0)}function y(t){return-1!==t.indexOf("\\")?"invalid characters in fileName: "+t:/^[a-zA-Z]:/.test(t)||/^\//.test(t)?"absolute path: "+t:-1!==t.split("/").indexOf("..")?"invalid relative path: "+t:null}function v(t,e,n,r,i,o){if(0===r)return setImmediate(function(){o(null,E(0))});t.read(e,n,r,i,function(t,e){return t?o(t):es.length)return g(t,new Error("extra field length exceeds extra field buffer size"));var h=E(u);s.copy(h,0,p,f),r.extraFields.push({id:l,data:h}),c=f}if(r.fileComment=t.decodeStrings?I(e,o,o+r.fileCommentLength,i):e.slice(o,o+r.fileCommentLength),r.comment=r.fileComment,t.readEntryCursor+=e.length,t.entriesRead+=1,4294967295===r.uncompressedSize||4294967295===r.compressedSize||4294967295===r.relativeOffsetOfLocalHeader){var d=null;for(c=0;cd.length)return g(t,new Error("zip64 extended information extra field does not include uncompressed size"));r.uncompressedSize=T(d,m),m+=8}if(4294967295===r.compressedSize){if(m+8>d.length)return g(t,new Error("zip64 extended information extra field does not include compressed size"));r.compressedSize=T(d,m),m+=8}if(4294967295===r.relativeOffsetOfLocalHeader){if(m+8>d.length)return g(t,new Error("zip64 extended information extra field does not include relative header offset"));r.relativeOffsetOfLocalHeader=T(d,m),m+=8}}if(t.decodeStrings)for(c=0;ct.compressedSize)throw new Error("options.start > entry.compressedSize")}if(null!=e.end){if((a=e.end)<0)throw new Error("options.end < 0");if(a>t.compressedSize)throw new Error("options.end > entry.compressedSize");if(ar.fileSize)return n(new Error("file data overflows file bounds: "+d+" + "+t.compressedSize+" > "+r.fileSize));var m=r.reader.createReadStream({start:d+o,end:d+a}),_=m;if(u){var b=!1,y=i.createInflateRaw();m.on("error",function(t){setImmediate(function(){b||y.emit("error",t)})}),m.pipe(y),r.validateEntrySizes?(_=new x(t.uncompressedSize),y.on("error",function(t){setImmediate(function(){b||_.emit("error",t)})}),y.pipe(_)):_=y,_.destroy=function(){b=!0,y!==_&&y.unpipe(_),m.unpipe(y),m.destroy()}}n(null,_)}finally{r.reader.unref()}})},_.prototype.getLastModDate=function(){return b(this.lastModFileDate,this.lastModFileTime)},_.prototype.isEncrypted=function(){return 0!=(1&this.generalPurposeBitFlag)},_.prototype.isCompressed=function(){return 8===this.compressionMethod},s.inherits(x,l),x.prototype._transform=function(t,e,n){if(this.actualByteCount+=t.length,this.actualByteCount>this.expectedByteCount){var r="too many bytes in the stream. expected "+this.expectedByteCount+". got at least "+this.actualByteCount;return n(new Error(r))}n(null,t)},x.prototype._flush=function(t){if(this.actualByteCount0)){if(t.refCount<0)throw new Error("invalid unref");t.close(function(e){if(e)return t.emit("error",e);t.emit("close")})}},w.prototype.createReadStream=function(t){var e=t.start,n=t.end;if(e===n){var r=new u;return setImmediate(function(){r.end()}),r}var i=this._readStreamForRange(e,n),o=!1,a=new k(this);i.on("error",function(t){setImmediate(function(){o||a.emit("error",t)})}),a.destroy=function(){i.unpipe(a),a.unref(),i.destroy()};var s=new x(n-e);return a.on("error",function(t){setImmediate(function(){o||s.emit("error",t)})}),s.destroy=function(){o=!0,a.unpipe(s),a.destroy()},i.pipe(a).pipe(s)},w.prototype._readStreamForRange=function(t,e){throw new Error("not implemented")},w.prototype.read=function(t,e,n,r,i){var o=this.createReadStream({start:r,end:r+n}),a=new p,s=0;a._write=function(n,r,i){n.copy(t,e+s,0,n.length),s+=n.length,i()},a.on("finish",i),o.on("error",function(t){i(t)}),o.pipe(a)},w.prototype.close=function(t){setImmediate(t)},s.inherits(k,u),k.prototype._flush=function(t){this.unref(),t()},k.prototype.unref=function(t){this.unreffedYet||(this.unreffedYet=!0,this.context.unref())};var E,S="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ";function I(t,e,n,r){if(r)return t.toString("utf8",e,n);for(var i="",o=e;o0)){if(t.refCount<0)throw new Error("invalid unref");t.autoClose&&r.close(t.fd,function(e){e?t.emit("error",e):t.emit("close")})}},i.inherits(f,a),f.prototype._read=function(t){var e=this;if(!e.destroyed){var n=Math.min(e._readableState.highWaterMark,t);if(null!=e.endOffset&&(n=Math.min(n,e.endOffset-e.pos)),n<=0)return e.destroyed=!0,e.push(null),void e.context.unref();e.context.pend.go(function(t){if(e.destroyed)return t();var i=new Buffer(n);r.read(e.context.fd,i,0,n,e.pos,function(n,r){n?e.destroy(n):0===r?(e.destroyed=!0,e.push(null),e.context.unref()):(e.pos+=r,e.push(i.slice(0,r))),t()})})}},f.prototype.destroy=function(t){this.destroyed||(t=t||new Error("stream destroyed"),this.destroyed=!0,this.emit("error",t),this.context.unref())},i.inherits(h,s),h.prototype._write=function(t,e,n){var i=this;if(!i.destroyed){if(i.pos+t.length>i.endOffset){var o=new Error("maximum file length exceeded");return o.code="ETOOBIG",i.destroy(),void n(o)}i.context.pend.go(function(e){if(i.destroyed)return e();r.write(i.context.fd,t,0,t.length,i.pos,function(t,r){t?(i.destroy(),e(),n(t)):(i.bytesWritten+=r,i.pos+=r,i.emit("progress"),e(),n())})})}},h.prototype.destroy=function(){this.destroyed||(this.destroyed=!0,this.context.unref())},i.inherits(d,u),d.prototype.read=function(t,e,n,r,i){var o=r+n,a=o-this.buffer.length,s=a>0?a:n;this.buffer.copy(t,e,r,o),setImmediate(function(){i(null,s)})},d.prototype.write=function(t,e,n,r,i){t.copy(this.buffer,r,e,e+n),setImmediate(function(){i(null,n,t)})},d.prototype.createReadStream=function(t){var e=new c(t=t||{});e.destroyed=!1,e.start=t.start||0,e.endOffset=t.end,e.pos=e.endOffset||this.buffer.length;for(var n=this.buffer.slice(e.start,e.pos),r=0;;){var i=r+this.maxChunkSize;if(i>=n.length){rn.endOffset){var a=new Error("maximum file length exceeded");return a.code="ETOOBIG",n.destroyed=!0,void i(a)}t.copy(e.buffer,n.pos,0,t.length),n.bytesWritten+=t.length,n.pos=o,n.emit("progress"),i()}},n.destroy=function(){n.destroyed=!0},n},d.prototype.ref=function(){this.refCount+=1},d.prototype.unref=function(){if(this.refCount-=1,this.refCount<0)throw new Error("invalid unref")}},function(t,e){function n(){this.pending=0,this.max=1/0,this.listeners=[],this.waiting=[],this.error=null}function r(t){t.pending+=1;var e=!1;return function(r){if(e)throw new Error("callback called twice");if(e=!0,t.error=t.error||r,t.pending-=1,t.waiting.length>0&&t.pending{if("win32"===process.platform){if(/[<>:"|?*]/.test(t.replace(i.parse(t).root,""))){const e=new Error(`Path contains invalid characters: ${t}`);throw e.code="EINVAL",e}}};t.exports=(t,e)=>Promise.resolve().then(()=>{s(t),e=Object.assign({},a,e);const n=o(e.fs.mkdir),r=o(e.fs.stat),c=t=>n(t,e.mode).then(()=>t).catch(e=>{if("ENOENT"===e.code){if(e.message.includes("null bytes")||i.dirname(t)===t)throw e;return c(i.dirname(t)).then(()=>c(t))}return r(t).then(e=>e.isDirectory()?t:Promise.reject()).catch(()=>{throw e})});return c(i.resolve(t))}),t.exports.sync=(t,e)=>{s(t),e=Object.assign({},a,e);const n=t=>{try{e.fs.mkdirSync(t,e.mode)}catch(r){if("ENOENT"===r.code){if(r.message.includes("null bytes")||i.dirname(t)===t)throw r;return n(i.dirname(t)),n(t)}try{if(!e.fs.statSync(t).isDirectory())throw new Error("The path is not a directory")}catch(t){throw r}}return t};return n(i.resolve(t))}},function(t,e,n){"use strict";const r=(t,e)=>(function(){const n=e.promiseModule,r=new Array(arguments.length);for(let t=0;t{e.errorFirst?r.push(function(t,r){if(e.multiArgs){const e=new Array(arguments.length-1);for(let t=1;t{e=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},e);const n=t=>{const n=e=>"string"==typeof e?t===e:e.test(t);return e.include?e.include.some(n):!e.exclude.some(n)};let i;i="function"==typeof t?function(){return e.excludeMain?t.apply(this,arguments):r(t,e).apply(this,arguments)}:Object.create(Object.getPrototypeOf(t));for(const o in t){const a=t[o];i[o]="function"==typeof a&&n(o)?r(a,e):a}return i}},function(t,e,n){"use strict"; +*/var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,s,c=a(t),l=1;l-1&&t%1==0&&t-1&&t%1==0&&t<=n}(t.length)&&!function(t){var e=w(t)?u.call(t):"";return e==i||e==o}(t)}function w(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}var k,E=(k=function(t,e,n,r){!function(t,e,n,r){n||(n={});for(var i=-1,o=e.length;++i1?e[r-1]:void 0,o=r>2?e[2]:void 0;for(i=k.length>3&&"function"==typeof i?(r--,i):void 0,o&&function(t,e,n){if(!w(n))return!1;var r=typeof e;return!!("number"==r?x(n)&&b(e,n.length):"string"==r&&e in n)&&y(n[e],t)}(e[0],e[1],o)&&(i=r<3?void 0:i,r=1),t=Object(t);++n>c.SHORT_SHIFT&c.SHORT_MASK},u.prototype.getVersionNeededToExtract=function(){return this.minver},u.prototype.setComment=function(t){Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.comment=t},u.prototype.setCompressedSize=function(t){if(t<0)throw new Error("invalid entry compressed size");this.csize=t},u.prototype.setCrc=function(t){if(t<0)throw new Error("invalid entry crc32");this.crc=t},u.prototype.setExternalAttributes=function(t){this.exattr=t>>>0},u.prototype.setExtra=function(t){this.extra=t},u.prototype.setGeneralPurposeBit=function(t){if(!(t instanceof a))throw new Error("invalid entry GeneralPurposeBit");this.gpb=t},u.prototype.setInternalAttributes=function(t){this.inattr=t},u.prototype.setMethod=function(t){if(t<0)throw new Error("invalid entry compression method");this.method=t},u.prototype.setName=function(t){t=i(t,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,""),Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.name=t},u.prototype.setPlatform=function(t){this.platform=t},u.prototype.setSize=function(t){if(t<0)throw new Error("invalid entry size");this.size=t},u.prototype.setTime=function(t,e){if(!(t instanceof Date))throw new Error("invalid entry time");this.time=l.dateToDos(t,e)},u.prototype.setUnixMode=function(t){var e=0;e|=(t|=this.isDirectory()?c.S_IFDIR:c.S_IFREG)<c.ZIP64_MAGIC||this.size>c.ZIP64_MAGIC}},function(t,e,n){var r=n(59),i=t.exports=function(){return this instanceof i?(this.descriptor=!1,this.encryption=!1,this.utf8=!1,this.numberOfShannonFanoTrees=0,this.strongEncryption=!1,this.slidingDictionarySize=0,this):new i};i.prototype.encode=function(){return r.getShortBytes((this.descriptor?8:0)|(this.utf8?2048:0)|(this.encryption?1:0)|(this.strongEncryption?64:0))},i.prototype.parse=function(t,e){var n=r.getShortBytesValue(t,e),o=new i;return o.useDataDescriptor(0!=(8&n)),o.useUTF8ForNames(0!=(2048&n)),o.useStrongEncryption(0!=(64&n)),o.useEncryption(0!=(1&n)),o.setSlidingDictionarySize(0!=(2&n)?8192:4096),o.setNumberOfShannonFanoTrees(0!=(4&n)?3:2),o},i.prototype.setNumberOfShannonFanoTrees=function(t){this.numberOfShannonFanoTrees=t},i.prototype.getNumberOfShannonFanoTrees=function(){return this.numberOfShannonFanoTrees},i.prototype.setSlidingDictionarySize=function(t){this.slidingDictionarySize=t},i.prototype.getSlidingDictionarySize=function(){return this.slidingDictionarySize},i.prototype.useDataDescriptor=function(t){this.descriptor=t},i.prototype.usesDataDescriptor=function(){return this.descriptor},i.prototype.useEncryption=function(t){this.encryption=t},i.prototype.usesEncryption=function(){return this.encryption},i.prototype.useStrongEncryption=function(t){this.strongEncryption=t},i.prototype.usesStrongEncryption=function(){return this.strongEncryption},i.prototype.useUTF8ForNames=function(t){this.utf8=t},i.prototype.usesUTF8ForNames=function(){return this.utf8}},function(t,e){t.exports={WORD:4,DWORD:8,EMPTY:new Buffer(0),SHORT:2,SHORT_MASK:65535,SHORT_SHIFT:16,SHORT_ZERO:new Buffer(Array(2)),LONG:4,LONG_ZERO:new Buffer(Array(4)),MIN_VERSION_INITIAL:10,MIN_VERSION_DATA_DESCRIPTOR:20,MIN_VERSION_ZIP64:45,VERSION_MADEBY:45,METHOD_STORED:0,METHOD_DEFLATED:8,PLATFORM_UNIX:3,PLATFORM_FAT:0,SIG_LFH:67324752,SIG_DD:134695760,SIG_CFH:33639248,SIG_EOCD:101010256,SIG_ZIP64_EOCD:101075792,SIG_ZIP64_EOCD_LOC:117853008,ZIP64_MAGIC_SHORT:65535,ZIP64_MAGIC:4294967295,ZIP64_EXTRA_ID:1,ZLIB_NO_COMPRESSION:0,ZLIB_BEST_SPEED:1,ZLIB_BEST_COMPRESSION:9,ZLIB_DEFAULT_COMPRESSION:-1,MODE_MASK:4095,DEFAULT_FILE_MODE:33188,DEFAULT_DIR_MODE:16877,EXT_FILE_ATTR_DIR:1106051088,EXT_FILE_ATTR_FILE:2175008800,S_IFMT:61440,S_IFIFO:4096,S_IFCHR:8192,S_IFDIR:16384,S_IFBLK:24576,S_IFREG:32768,S_IFLNK:40960,S_IFSOCK:49152,S_DOS_A:32,S_DOS_D:16,S_DOS_V:8,S_DOS_S:4,S_DOS_H:2,S_DOS_R:1}},function(t,e,n){var r=n(3).inherits,i=n(11).Transform,o=n(58),a=n(117),s=t.exports=function(t){if(!(this instanceof s))return new s(t);i.call(this,t),this.offset=0,this._archive={finish:!1,finished:!1,processing:!1}};r(s,i),s.prototype._appendBuffer=function(t,e,n){},s.prototype._appendStream=function(t,e,n){},s.prototype._emitErrorCallback=function(t){t&&this.emit("error",t)},s.prototype._finish=function(t){},s.prototype._normalizeEntry=function(t){},s.prototype._transform=function(t,e,n){n(null,t)},s.prototype.entry=function(t,e,n){if(e=e||null,"function"!=typeof n&&(n=this._emitErrorCallback.bind(this)),t instanceof o)if(this._archive.finish||this._archive.finished)n(new Error("unacceptable entry after finish"));else{if(!this._archive.processing){if(this._archive.processing=!0,this._normalizeEntry(t),this._entry=t,e=a.normalizeInputSource(e),Buffer.isBuffer(e))this._appendBuffer(t,e,n);else{if(!a.isStream(e))return this._archive.processing=!1,void n(new Error("input source must be valid Stream or Buffer instance"));this._appendStream(t,e,n)}return this}n(new Error("already processing an entry"))}else n(new Error("not a valid instance of ArchiveEntry"))},s.prototype.finish=function(){this._archive.processing?this._archive.finish=!0:this._finish()},s.prototype.getBytesWritten=function(){return this.offset},s.prototype.write=function(t,e){return t&&(this.offset+=t.length),i.prototype.write.call(this,t,e)}},function(t,e,n){var r=n(7).Stream,i=n(11).PassThrough,o=t.exports={};o.isStream=function(t){return t instanceof r},o.normalizeInputSource=function(t){if(null===t)return new Buffer(0);if("string"==typeof t)return new Buffer(t);if(o.isStream(t)&&!t._readableState){var e=new i;return t.pipe(e),e}return t}},function(t,e,n){"use strict";n.r(e);var r=n(4);var i=r.Buffer.from&&r.Buffer.alloc&&r.Buffer.allocUnsafe&&r.Buffer.allocUnsafeSlow?r.Buffer.from:t=>new r.Buffer(t),o=function(t,e){const n=(t,n)=>e(t,n)>>>0;return n.signed=e,n.unsigned=n,n.model=t,n};var a=o("crc1",function(t,e){r.Buffer.isBuffer(t)||(t=i(t));let n=~~e,o=0;for(let e=0;e>8)}return n});let h=[0,4129,8258,12387,16516,20645,24774,28903,33032,37161,41290,45419,49548,53677,57806,61935,4657,528,12915,8786,21173,17044,29431,25302,37689,33560,45947,41818,54205,50076,62463,58334,9314,13379,1056,5121,25830,29895,17572,21637,42346,46411,34088,38153,58862,62927,50604,54669,13907,9842,5649,1584,30423,26358,22165,18100,46939,42874,38681,34616,63455,59390,55197,51132,18628,22757,26758,30887,2112,6241,10242,14371,51660,55789,59790,63919,35144,39273,43274,47403,23285,19156,31415,27286,6769,2640,14899,10770,56317,52188,64447,60318,39801,35672,47931,43802,27814,31879,19684,23749,11298,15363,3168,7233,60846,64911,52716,56781,44330,48395,36200,40265,32407,28342,24277,20212,15891,11826,7761,3696,65439,61374,57309,53244,48923,44858,40793,36728,37256,33193,45514,41451,53516,49453,61774,57711,4224,161,12482,8419,20484,16421,28742,24679,33721,37784,41979,46042,49981,54044,58239,62302,689,4752,8947,13010,16949,21012,25207,29270,46570,42443,38312,34185,62830,58703,54572,50445,13538,9411,5280,1153,29798,25671,21540,17413,42971,47098,34713,38840,59231,63358,50973,55100,9939,14066,1681,5808,26199,30326,17941,22068,55628,51565,63758,59695,39368,35305,47498,43435,22596,18533,30726,26663,6336,2273,14466,10403,52093,56156,60223,64286,35833,39896,43963,48026,19061,23124,27191,31254,2801,6864,10931,14994,64814,60687,56684,52557,48554,44427,40424,36297,31782,27655,23652,19525,15522,11395,7392,3265,61215,65342,53085,57212,44955,49082,36825,40952,28183,32310,20053,24180,11923,16050,3793,7920];"undefined"!=typeof Int32Array&&(h=new Int32Array(h));var d=o("ccitt",function(t,e){r.Buffer.isBuffer(t)||(t=i(t));let n=void 0!==e?~~e:65535;for(let e=0;e>8^r)]^n<<8)}return n});let g=[0,49345,49537,320,49921,960,640,49729,50689,1728,1920,51009,1280,50625,50305,1088,52225,3264,3456,52545,3840,53185,52865,3648,2560,51905,52097,2880,51457,2496,2176,51265,55297,6336,6528,55617,6912,56257,55937,6720,7680,57025,57217,8e3,56577,7616,7296,56385,5120,54465,54657,5440,55041,6080,5760,54849,53761,4800,4992,54081,4352,53697,53377,4160,61441,12480,12672,61761,13056,62401,62081,12864,13824,63169,63361,14144,62721,13760,13440,62529,15360,64705,64897,15680,65281,16320,16e3,65089,64001,15040,15232,64321,14592,63937,63617,14400,10240,59585,59777,10560,60161,11200,10880,59969,60929,11968,12160,61249,11520,60865,60545,11328,58369,9408,9600,58689,9984,59329,59009,9792,8704,58049,58241,9024,57601,8640,8320,57409,40961,24768,24960,41281,25344,41921,41601,25152,26112,42689,42881,26432,42241,26048,25728,42049,27648,44225,44417,27968,44801,28608,28288,44609,43521,27328,27520,43841,26880,43457,43137,26688,30720,47297,47489,31040,47873,31680,31360,47681,48641,32448,32640,48961,32e3,48577,48257,31808,46081,29888,30080,46401,30464,47041,46721,30272,29184,45761,45953,29504,45313,29120,28800,45121,20480,37057,37249,20800,37633,21440,21120,37441,38401,22208,22400,38721,21760,38337,38017,21568,39937,23744,23936,40257,24320,40897,40577,24128,23040,39617,39809,23360,39169,22976,22656,38977,34817,18624,18816,35137,19200,35777,35457,19008,19968,36545,36737,20288,36097,19904,19584,35905,17408,33985,34177,17728,34561,18368,18048,34369,33281,17088,17280,33601,16640,33217,32897,16448];"undefined"!=typeof Int32Array&&(g=new Int32Array(g));var m=o("crc-16-modbus",function(t,e){r.Buffer.isBuffer(t)||(t=i(t));let n=void 0!==e?~~e:65535;for(let e=0;e>8)}return n});var _=o("xmodem",function(t,e){r.Buffer.isBuffer(t)||(t=i(t));let n=void 0!==e?~~e:0;for(let e=0;e>>8&255;r^=255&t[e],n=n<<8&65535,n^=r^=r>>>4,n^=r=r<<5&65535,n^=r=r<<7&65535}return n});let b=[0,4489,8978,12955,17956,22445,25910,29887,35912,40385,44890,48851,51820,56293,59774,63735,4225,264,13203,8730,22181,18220,30135,25662,40137,36160,49115,44626,56045,52068,63999,59510,8450,12427,528,5017,26406,30383,17460,21949,44362,48323,36440,40913,60270,64231,51324,55797,12675,8202,4753,792,30631,26158,21685,17724,48587,44098,40665,36688,64495,60006,55549,51572,16900,21389,24854,28831,1056,5545,10034,14011,52812,57285,60766,64727,34920,39393,43898,47859,21125,17164,29079,24606,5281,1320,14259,9786,57037,53060,64991,60502,39145,35168,48123,43634,25350,29327,16404,20893,9506,13483,1584,6073,61262,65223,52316,56789,43370,47331,35448,39921,29575,25102,20629,16668,13731,9258,5809,1848,65487,60998,56541,52564,47595,43106,39673,35696,33800,38273,42778,46739,49708,54181,57662,61623,2112,6601,11090,15067,20068,24557,28022,31999,38025,34048,47003,42514,53933,49956,61887,57398,6337,2376,15315,10842,24293,20332,32247,27774,42250,46211,34328,38801,58158,62119,49212,53685,10562,14539,2640,7129,28518,32495,19572,24061,46475,41986,38553,34576,62383,57894,53437,49460,14787,10314,6865,2904,32743,28270,23797,19836,50700,55173,58654,62615,32808,37281,41786,45747,19012,23501,26966,30943,3168,7657,12146,16123,54925,50948,62879,58390,37033,33056,46011,41522,23237,19276,31191,26718,7393,3432,16371,11898,59150,63111,50204,54677,41258,45219,33336,37809,27462,31439,18516,23005,11618,15595,3696,8185,63375,58886,54429,50452,45483,40994,37561,33584,31687,27214,22741,18780,15843,11370,7921,3960];"undefined"!=typeof Int32Array&&(b=new Int32Array(b));var y=o("kermit",function(t,e){r.Buffer.isBuffer(t)||(t=i(t));let n=void 0!==e?~~e:0;for(let e=0;e>8)}return n});let v=[0,8801531,9098509,825846,9692897,1419802,1651692,10452759,10584377,2608578,2839604,11344079,3303384,11807523,12104405,4128302,12930697,4391538,5217156,13227903,5679208,13690003,14450021,5910942,6606768,14844747,15604413,6837830,16197969,7431594,8256604,16494759,840169,9084178,8783076,18463,10434312,1670131,1434117,9678590,11358416,2825259,2590173,10602790,4109873,12122826,11821884,3289031,13213536,5231515,4409965,12912278,5929345,14431610,13675660,5693559,6823513,15618722,14863188,6588335,16513208,8238147,7417269,16212302,1680338,10481449,9664223,1391140,9061683,788936,36926,8838341,12067563,4091408,3340262,11844381,2868234,11372785,10555655,2579964,14478683,5939616,5650518,13661357,5180346,13190977,12967607,4428364,8219746,16457881,16234863,7468436,15633027,6866552,6578062,14816117,1405499,9649856,10463030,1698765,8819930,55329,803287,9047340,11858690,3325945,4072975,12086004,2561507,10574104,11387118,2853909,13647026,5664841,5958079,14460228,4446803,12949160,13176670,5194661,7454091,16249200,16476294,8201341,14834538,6559633,6852199,15647388,3360676,11864927,12161705,4185682,10527045,2551230,2782280,11286707,9619101,1346150,1577872,10379115,73852,8875143,9172337,899466,16124205,7357910,8182816,16421083,6680524,14918455,15678145,6911546,5736468,13747439,14507289,5968354,12873461,4334094,5159928,13170435,4167245,12180150,11879232,3346363,11301036,2767959,2532769,10545498,10360692,1596303,1360505,9604738,913813,9157998,8856728,92259,16439492,8164415,7343561,16138546,6897189,15692510,14936872,6662099,5986813,14488838,13733104,5750795,13156124,5174247,4352529,12855018,2810998,11315341,10498427,2522496,12124823,4148844,3397530,11901793,9135439,862644,110658,8912057,1606574,10407765,9590435,1317464,15706879,6940164,6651890,14889737,8145950,16384229,16161043,7394792,5123014,13133629,12910283,4370992,14535975,5997020,5707818,13718737,2504095,10516836,11329682,2796649,11916158,3383173,4130419,12143240,8893606,129117,876971,9121104,1331783,9576124,10389322,1625009,14908182,6633453,6925851,15721184,7380471,16175372,16402682,8127489,4389423,12891860,13119266,5137369,13704398,5722165,6015427,14517560];"undefined"!=typeof Int32Array&&(v=new Int32Array(v));var x=o("crc-24",function(t,e){r.Buffer.isBuffer(t)||(t=i(t));let n=void 0!==e?~~e:11994318;for(let e=0;e>16^r)]^n<<8)}return n});let w=[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];"undefined"!=typeof Int32Array&&(w=new Int32Array(w));var k=o("crc-32",function(t,e){r.Buffer.isBuffer(t)||(t=i(t));let n=0===e?0:-1^~~e;for(let e=0;e>>8}return-1^n});let E=[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];"undefined"!=typeof Int32Array&&(E=new Int32Array(E));var S=o("jam",function(t,e=-1){r.Buffer.isBuffer(t)||(t=i(t));let n=0===e?0:~~e;for(let e=0;e>>8}return n});n.d(e,"crc1",function(){return a}),n.d(e,"crc8",function(){return c}),n.d(e,"crc81wire",function(){return u}),n.d(e,"crc16",function(){return f}),n.d(e,"crc16ccitt",function(){return d}),n.d(e,"crc16modbus",function(){return m}),n.d(e,"crc16xmodem",function(){return _}),n.d(e,"crc16kermit",function(){return y}),n.d(e,"crc24",function(){return x}),n.d(e,"crc32",function(){return k}),n.d(e,"crcjam",function(){return S});e.default={crc1:a,crc8:c,crc81wire:u,crc16:f,crc16ccitt:d,crc16modbus:m,crc16xmodem:_,crc16kermit:y,crc24:x,crc32:k,crcjam:S}},function(t,e,n){var r=n(1),i=n(5),o=parseInt("0777",8);function a(t,e,n,s){"function"==typeof e?(n=e,e={}):e&&"object"==typeof e||(e={mode:e});var c=e.mode,l=e.fs||i;void 0===c&&(c=o&~process.umask()),s||(s=null);var u=n||function(){};t=r.resolve(t),l.mkdir(t,c,function(n){if(!n)return u(null,s=s||t);switch(n.code){case"ENOENT":a(r.dirname(t),e,function(n,r){n?u(n,r):a(t,e,u,r)});break;default:l.stat(t,function(t,e){t||!e.isDirectory()?u(n,s):u(null,s)})}})}t.exports=a.mkdirp=a.mkdirP=a,a.sync=function t(e,n,a){n&&"object"==typeof n||(n={mode:n});var s=n.mode,c=n.fs||i;void 0===s&&(s=o&~process.umask()),a||(a=null),e=r.resolve(e);try{c.mkdirSync(e,s),a=a||e}catch(i){switch(i.code){case"ENOENT":a=t(r.dirname(e),n,a),t(e,n,a);break;default:var l;try{l=c.statSync(e)}catch(t){throw i}if(!l.isDirectory())throw i}}return a}},function(t,e,n){"use strict";function r(t,e,n,o,a,s){for(var c,l,u,p,f=Math.max(e-1,0),h=Math.max(n-1,0),d=Math.min(e+1,o-1),g=Math.min(n+1,a-1),m=4*(n*o+e),_=0,b=0,y=0,v=0,x=0,w=f;w<=d;w++)for(var k=h;k<=g;k++)if(w!==e||k!==n){var E=i(t,t,m,4*(k*o+w),!0);if(0===E?_++:E<0?y++:E>0&&b++,_>2)return!1;s&&(Ex&&(x=E,u=w,p=k))}return!s||0!==y&&0!==b&&(!r(t,c,l,o,a)&&!r(s,c,l,o,a)||!r(t,u,p,o,a)&&!r(s,u,p,o,a))}function i(t,e,n,r,i){var l=t[n+3]/255,u=e[r+3]/255,p=c(t[n+0],l),f=c(t[n+1],l),h=c(t[n+2],l),d=c(e[r+0],u),g=c(e[r+1],u),m=c(e[r+2],u),_=o(p,f,h)-o(d,g,m);if(i)return _;var b=a(p,f,h)-a(d,g,m),y=s(p,f,h)-s(d,g,m);return.5053*_*_+.299*b*b+.1957*y*y}function o(t,e,n){return.29889531*t+.58662247*e+.11448223*n}function a(t,e,n){return.59597799*t-.2741761*e-.32180189*n}function s(t,e,n){return.21147017*t-.52261711*e+.31114694*n}function c(t,e){return 255+(t-255)*e}function l(t,e,n,r,i){t[e+0]=n,t[e+1]=r,t[e+2]=i,t[e+3]=255}t.exports=function(t,e,n,a,s,u){u||(u={});for(var p=void 0===u.threshold?.1:u.threshold,f=35215*p*p,h=0,d=0;df)u.includeAA||!r(t,g,d,a,s,e)&&!r(e,g,d,a,s,t)?(n&&l(n,m,255,0,0),h++):n&&l(n,m,255,255,0);else if(n){var b=c((x=void 0,w=void 0,k=void 0,E=void 0,x=(y=t)[(v=m)+3]/255,w=c(y[v+0],x),k=c(y[v+1],x),E=c(y[v+2],x),o(w,k,E)),.1);l(n,m,b,b,b)}}var y,v,x,w,k,E;return h}},function(t,e,n){function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(){return(i=Object.assign||function(t){for(var e=1;e[...t].map(t=>t.charCodeAt(0)),i=r("META-INF/mozilla.rsa"),o=r("[Content_Types].xml"),a=r("_rels/.rels");t.exports=t=>{const e=t instanceof Uint8Array?t:new Uint8Array(t);if(!(e&&e.length>1))return null;const n=(t,n)=>{n=Object.assign({offset:0},n);for(let r=0;rn(r(t),e);if(n([255,216,255]))return{ext:"jpg",mime:"image/jpeg"};if(n([137,80,78,71,13,10,26,10]))return{ext:"png",mime:"image/png"};if(n([71,73,70]))return{ext:"gif",mime:"image/gif"};if(n([87,69,66,80],{offset:8}))return{ext:"webp",mime:"image/webp"};if(n([70,76,73,70]))return{ext:"flif",mime:"image/flif"};if((n([73,73,42,0])||n([77,77,0,42]))&&n([67,82],{offset:8}))return{ext:"cr2",mime:"image/x-canon-cr2"};if(n([73,73,42,0])||n([77,77,0,42]))return{ext:"tif",mime:"image/tiff"};if(n([66,77]))return{ext:"bmp",mime:"image/bmp"};if(n([73,73,188]))return{ext:"jxr",mime:"image/vnd.ms-photo"};if(n([56,66,80,83]))return{ext:"psd",mime:"image/vnd.adobe.photoshop"};if(n([80,75,3,4])){if(n([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(n(i,{offset:30}))return{ext:"xpi",mime:"application/x-xpinstall"};if(s("mimetypeapplication/vnd.oasis.opendocument.text",{offset:30}))return{ext:"odt",mime:"application/vnd.oasis.opendocument.text"};if(s("mimetypeapplication/vnd.oasis.opendocument.spreadsheet",{offset:30}))return{ext:"ods",mime:"application/vnd.oasis.opendocument.spreadsheet"};if(s("mimetypeapplication/vnd.oasis.opendocument.presentation",{offset:30}))return{ext:"odp",mime:"application/vnd.oasis.opendocument.presentation"};const t=(t,e=0)=>t.findIndex((t,n,r)=>n>=e&&80===r[n]&&75===r[n+1]&&3===r[n+2]&&4===r[n+3]);let r=0,c=!1,l=null;do{const i=r+30;if(c||(c=n(o,{offset:i})||n(a,{offset:i})),l||(s("word/",{offset:i})?l={ext:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"}:s("ppt/",{offset:i})?l={ext:"pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"}:s("xl/",{offset:i})&&(l={ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"})),c&&l)return l;r=t(e,i)}while(r>=0);if(l)return l}if(n([80,75])&&(3===e[2]||5===e[2]||7===e[2])&&(4===e[3]||6===e[3]||8===e[3]))return{ext:"zip",mime:"application/zip"};if(n([117,115,116,97,114],{offset:257}))return{ext:"tar",mime:"application/x-tar"};if(n([82,97,114,33,26,7])&&(0===e[6]||1===e[6]))return{ext:"rar",mime:"application/x-rar-compressed"};if(n([31,139,8]))return{ext:"gz",mime:"application/gzip"};if(n([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(n([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(n([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(n([51,103,112,53])||n([0,0,0])&&n([102,116,121,112],{offset:4})&&(n([109,112,52,49],{offset:8})||n([109,112,52,50],{offset:8})||n([105,115,111,109],{offset:8})||n([105,115,111,50],{offset:8})||n([109,109,112,52],{offset:8})||n([77,52,86],{offset:8})||n([100,97,115,104],{offset:8})))return{ext:"mp4",mime:"video/mp4"};if(n([77,84,104,100]))return{ext:"mid",mime:"audio/midi"};if(n([26,69,223,163])){const t=e.subarray(4,4100),n=t.findIndex((t,e,n)=>66===n[e]&&130===n[e+1]);if(-1!==n){const e=n+3,r=n=>[...n].every((n,r)=>t[e+r]===n.charCodeAt(0));if(r("matroska"))return{ext:"mkv",mime:"video/x-matroska"};if(r("webm"))return{ext:"webm",mime:"video/webm"}}}if(n([0,0,0,20,102,116,121,112,113,116,32,32])||n([102,114,101,101],{offset:4})||n([102,116,121,112,113,116,32,32],{offset:4})||n([109,100,97,116],{offset:4})||n([119,105,100,101],{offset:4}))return{ext:"mov",mime:"video/quicktime"};if(n([82,73,70,70])){if(n([65,86,73],{offset:8}))return{ext:"avi",mime:"video/vnd.avi"};if(n([87,65,86,69],{offset:8}))return{ext:"wav",mime:"audio/vnd.wave"};if(n([81,76,67,77],{offset:8}))return{ext:"qcp",mime:"audio/qcelp"}}if(n([48,38,178,117,142,102,207,17,166,217]))return{ext:"wmv",mime:"video/x-ms-wmv"};if(n([0,0,1,186])||n([0,0,1,179]))return{ext:"mpg",mime:"video/mpeg"};if(n([102,116,121,112,51,103],{offset:4}))return{ext:"3gp",mime:"video/3gpp"};for(let t=0;t<2&&t>=c,u-=c,m!==o){if(m===a)break;for(var _=mo;)y=d[y]>>8,++b;var v=y;if(f+b+(_!==m?1:0)>r)return void console.log("Warning, gif stream longer than expected.");n[f++]=v;var x=f+=b;for(_!==m&&(n[f++]=v),y=_;b--;)y=d[y],n[--x]=255&y,y>>=8;null!==g&&s<4096&&(d[s++]=g<<8|v,s>=l+1&&c<12&&(++c,l=l<<1|1)),g=m}else s=a+1,l=(1<<(c=i+1))-1,g=null}return f!==r&&console.log("Warning, gif stream shorter than expected."),n}try{e.GifWriter=function(t,e,n,r){var i=0,o=void 0===(r=void 0===r?{}:r).loop?null:r.loop,a=void 0===r.palette?null:r.palette;if(e<=0||n<=0||e>65535||n>65535)throw new Error("Width/Height invalid.");function s(t){var e=t.length;if(e<2||e>256||e&e-1)throw new Error("Invalid code/color length, must be power of 2 and 2 .. 256.");return e}t[i++]=71,t[i++]=73,t[i++]=70,t[i++]=56,t[i++]=57,t[i++]=97;var c=0,l=0;if(null!==a){for(var u=s(a);u>>=1;)++c;if(u=1<=u)throw new Error("Background index out of range.");if(0===l)throw new Error("Background index explicitly passed as 0.")}}if(t[i++]=255&e,t[i++]=e>>8&255,t[i++]=255&n,t[i++]=n>>8&255,t[i++]=(null!==a?128:0)|c,t[i++]=l,t[i++]=0,null!==a)for(var p=0,f=a.length;p>16&255,t[i++]=h>>8&255,t[i++]=255&h}if(null!==o){if(o<0||o>65535)throw new Error("Loop count invalid.");t[i++]=33,t[i++]=255,t[i++]=11,t[i++]=78,t[i++]=69,t[i++]=84,t[i++]=83,t[i++]=67,t[i++]=65,t[i++]=80,t[i++]=69,t[i++]=50,t[i++]=46,t[i++]=48,t[i++]=3,t[i++]=1,t[i++]=255&o,t[i++]=o>>8&255,t[i++]=0}var d=!1;this.addFrame=function(e,n,r,o,c,l){if(!0===d&&(--i,d=!1),l=void 0===l?{}:l,e<0||n<0||e>65535||n>65535)throw new Error("x/y invalid.");if(r<=0||o<=0||r>65535||o>65535)throw new Error("Width/Height invalid.");if(c.length>=1;)++h;f=1<3)throw new Error("Disposal out of range.");var _=!1,b=0;if(void 0!==l.transparent&&null!==l.transparent&&(_=!0,(b=l.transparent)<0||b>=f))throw new Error("Transparent color index.");if((0!==m||_||0!==g)&&(t[i++]=33,t[i++]=249,t[i++]=4,t[i++]=m<<2|(!0===_?1:0),t[i++]=255&g,t[i++]=g>>8&255,t[i++]=b,t[i++]=0),t[i++]=44,t[i++]=255&e,t[i++]=e>>8&255,t[i++]=255&n,t[i++]=n>>8&255,t[i++]=255&r,t[i++]=r>>8&255,t[i++]=255&o,t[i++]=o>>8&255,t[i++]=!0===u?128|h-1:0,!0===u)for(var y=0,v=p.length;y>16&255,t[i++]=x>>8&255,t[i++]=255&x}return i=function(t,e,n,r){t[e++]=n;var i=e++,o=1<=n;)t[e++]=255&p,p>>=8,u-=8,e===i+256&&(t[i]=255,i=e++)}function h(t){p|=t<=8;)t[e++]=255&p,p>>=8,u-=8,e===i+256&&(t[i]=255,i=e++);4096===c?(h(o),c=s+1,l=n+1,g={}):(c>=1<>7,s=1<<1+(7&o);t[e++],t[e++];var c=null,l=null;a&&(c=e,l=s,e+=3*s);var u=!0,p=[],f=0,h=null,d=0,g=null;for(this.width=n,this.height=i;u&&e=0))throw Error("Invalid block size");if(0===O)break;e+=O}break;case 249:if(4!==t[e++]||0!==t[e+4])throw new Error("Invalid graphics extension block.");var m=t[e++];f=t[e++]|t[e++]<<8,h=t[e++],0==(1&m)&&(h=null),d=m>>2&7,e++;break;case 254:for(;;){if(!((O=t[e++])>=0))throw Error("Invalid block size");if(0===O)break;e+=O}break;default:throw new Error("Unknown graphic control label: 0x"+t[e-1].toString(16))}break;case 44:var _=t[e++]|t[e++]<<8,b=t[e++]|t[e++]<<8,y=t[e++]|t[e++]<<8,v=t[e++]|t[e++]<<8,x=t[e++],w=x>>6&1,k=1<<1+(7&x),E=c,S=l,I=!1;x>>7&&(I=!0,E=e,S=k,e+=3*k);var T=e;for(e++;;){var O;if(!((O=t[e++])>=0))throw Error("Invalid block size");if(0===O)break;e+=O}p.push({x:_,y:b,width:y,height:v,has_local_palette:I,palette_offset:E,palette_size:S,data_offset:T,data_length:e-T,transparent_index:h,interlaced:!!w,delay:f,disposal:d});break;case 59:u=!1;break;default:throw new Error("Unknown gif block: 0x"+t[e-1].toString(16))}this.numFrames=function(){return p.length},this.loopCount=function(){return g},this.frameInfo=function(t){if(t<0||t>=p.length)throw new Error("Frame index out of range.");return p[t]},this.decodeAndBlitFrameBGRA=function(e,i){var o=this.frameInfo(e),a=o.width*o.height,s=new Uint8Array(a);r(t,o.data_offset,s,a);var c=o.palette_offset,l=o.transparent_index;null===l&&(l=256);var u=o.width,p=n-u,f=u,h=4*(o.y*n+o.x),d=4*((o.y+o.height)*n+o.x),g=h,m=4*p;!0===o.interlaced&&(m+=4*n*7);for(var _=8,b=0,y=s.length;b=d&&(m=4*p+4*n*(_-1),g=h+(u+p)*(_<<1),_>>=1)),v===l)g+=4;else{var x=t[c+3*v],w=t[c+3*v+1],k=t[c+3*v+2];i[g++]=k,i[g++]=w,i[g++]=x,i[g++]=255}--f}},this.decodeAndBlitFrameRGBA=function(e,i){var o=this.frameInfo(e),a=o.width*o.height,s=new Uint8Array(a);r(t,o.data_offset,s,a);var c=o.palette_offset,l=o.transparent_index;null===l&&(l=256);var u=o.width,p=n-u,f=u,h=4*(o.y*n+o.x),d=4*((o.y+o.height)*n+o.x),g=h,m=4*p;!0===o.interlaced&&(m+=4*n*7);for(var _=8,b=0,y=s.length;b=d&&(m=4*p+4*n*(_-1),g=h+(u+p)*(_<<1),_>>=1)),v===l)g+=4;else{var x=t[c+3*v],w=t[c+3*v+1],k=t[c+3*v+2];i[g++]=x,i[g++]=w,i[g++]=k,i[g++]=255}--f}}}}catch(t){}},function(t,e){function n(t,e,n,r,i,o,a){this.widthOriginal=Math.abs(Math.floor(t)||0),this.heightOriginal=Math.abs(Math.floor(e)||0),this.targetWidth=Math.abs(Math.floor(n)||0),this.targetHeight=Math.abs(Math.floor(r)||0),this.colorChannels=i?4:3,this.interpolationPass=Boolean(o),this.resizeCallback="function"==typeof a?a:function(){},this.targetWidthMultipliedByChannels=this.targetWidth*this.colorChannels,this.originalWidthMultipliedByChannels=this.widthOriginal*this.colorChannels,this.originalHeightMultipliedByChannels=this.heightOriginal*this.colorChannels,this.widthPassResultSize=this.targetWidthMultipliedByChannels*this.heightOriginal,this.finalResultSize=this.targetWidthMultipliedByChannels*this.targetHeight,this.initialize()}n.prototype.initialize=function(){if(!(this.widthOriginal>0&&this.heightOriginal>0&&this.targetWidth>0&&this.targetHeight>0))throw new Error("Invalid settings specified for the resizer.");this.configurePasses()},n.prototype.configurePasses=function(){this.widthOriginal===this.targetWidth?this.resizeWidth=this.bypassResizer:(this.ratioWeightWidthPass=this.widthOriginal/this.targetWidth,this.ratioWeightWidthPass<1&&this.interpolationPass?(this.initializeFirstPassBuffers(!0),this.resizeWidth=4===this.colorChannels?this.resizeWidthInterpolatedRGBA:this.resizeWidthInterpolatedRGB):(this.initializeFirstPassBuffers(!1),this.resizeWidth=4===this.colorChannels?this.resizeWidthRGBA:this.resizeWidthRGB)),this.heightOriginal===this.targetHeight?this.resizeHeight=this.bypassResizer:(this.ratioWeightHeightPass=this.heightOriginal/this.targetHeight,this.ratioWeightHeightPass<1&&this.interpolationPass?(this.initializeSecondPassBuffers(!0),this.resizeHeight=this.resizeHeightInterpolated):(this.initializeSecondPassBuffers(!1),this.resizeHeight=4===this.colorChannels?this.resizeHeightRGBA:this.resizeHeightRGB))},n.prototype._resizeWidthInterpolatedRGBChannels=function(t,e){var n,r,i=e?4:3,o=this.ratioWeightWidthPass,a=this.widthBuffer,s=0,c=0,l=0,u=0,p=0;for(n=0;s<1/3;n+=i,s+=o)for(c=n,l=0;c=p)){h+=u;break}h=f+=n,u-=p}while(u>0&&f=c)){u+=s;break}u=l=h,s-=c}while(s>0&&l3&&(this.outputWidthWorkBenchOpaquePixelsCount=this.generateFloat64Buffer(this.heightOriginal)))},n.prototype.initializeSecondPassBuffers=function(t){this.heightBuffer=this.generateUint8Buffer(this.finalResultSize),t||(this.outputHeightWorkBench=this.generateFloatBuffer(this.targetWidthMultipliedByChannels),this.colorChannels>3&&(this.outputHeightWorkBenchOpaquePixelsCount=this.generateFloat64Buffer(this.targetWidth)))},n.prototype.generateFloatBuffer=function(t){try{return new Float32Array(t)}catch(t){return[]}},n.prototype.generateFloat64Buffer=function(t){try{return new Float64Array(t)}catch(t){return[]}},n.prototype.generateUint8Buffer=function(t){try{return new Uint8Array(t)}catch(t){return[]}},t.exports=n},function(t,e,n){"use strict";(function(t){var r=n(1),i=n.n(r),o=n(127),a=n.n(o),s=n(0),c=n(16);function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e0&&i.height>0){var o=e.pages[i.page];t.blit(o,n+i.xoffset,r+i.yoffset,i.x,i.y,i.width,i.height)}return t}var f=process.env.DIRNAME||"".concat(t,"/../");e.a=function(){return{constants:{measureText:c.a,measureTextHeight:c.b,FONT_SANS_8_BLACK:i.a.join(f,"fonts/open-sans/open-sans-8-black/open-sans-8-black.fnt"),FONT_SANS_10_BLACK:i.a.join(f,"fonts/open-sans/open-sans-10-black/open-sans-10-black.fnt"),FONT_SANS_12_BLACK:i.a.join(f,"fonts/open-sans/open-sans-12-black/open-sans-12-black.fnt"),FONT_SANS_14_BLACK:i.a.join(f,"fonts/open-sans/open-sans-14-black/open-sans-14-black.fnt"),FONT_SANS_16_BLACK:i.a.join(f,"fonts/open-sans/open-sans-16-black/open-sans-16-black.fnt"),FONT_SANS_32_BLACK:i.a.join(f,"fonts/open-sans/open-sans-32-black/open-sans-32-black.fnt"),FONT_SANS_64_BLACK:i.a.join(f,"fonts/open-sans/open-sans-64-black/open-sans-64-black.fnt"),FONT_SANS_128_BLACK:i.a.join(f,"fonts/open-sans/open-sans-128-black/open-sans-128-black.fnt"),FONT_SANS_8_WHITE:i.a.join(f,"fonts/open-sans/open-sans-8-white/open-sans-8-white.fnt"),FONT_SANS_16_WHITE:i.a.join(f,"fonts/open-sans/open-sans-16-white/open-sans-16-white.fnt"),FONT_SANS_32_WHITE:i.a.join(f,"fonts/open-sans/open-sans-32-white/open-sans-32-white.fnt"),FONT_SANS_64_WHITE:i.a.join(f,"fonts/open-sans/open-sans-64-white/open-sans-64-white.fnt"),FONT_SANS_128_WHITE:i.a.join(f,"fonts/open-sans/open-sans-128-white/open-sans-128-white.fnt"),loadFont:function(t,e){var n=this;return"string"!=typeof t?s.c.call(this,"file must be a string",e):new Promise(function(r,o){e=e||function(t,e){t?o(t):r(e)},a()(t,function(r,o){var a={},c={};if(r)return s.c.call(n,r,e);for(var l=0;la&&(a=s),o.push(e)):(i.push(o),o=[e])}),i.push(o),{lines:i,longestLine:a}}(t,r,i),_=m.lines,b=m.longestLine;return _.forEach(function(r){var o=r.join(" "),a=function(t,e,n,r,i){return i===t.HORIZONTAL_ALIGN_LEFT?0:i===t.HORIZONTAL_ALIGN_CENTER?(r-Object(c.a)(e,n))/2:r-Object(c.a)(e,n)}(d.constructor,t,o,i,f);(function(t,e,n,r,i){for(var o=0;o>2,a=(31&t[e])<<3,s=128&t[e+1]):console.error("cant transform to Pixel"),this.pixels[n]=i,this.pixels[n+1]=o,this.pixels[n+2]=a,this.pixels[n+3]=s}readPixels(){r("readPixels");var t=this.header,e=(t.bytesPerPixel,t.width*t.height),n=new Uint8Array(this.buffer);this.pixels=new Uint8Array(4*e);for(var i=18,o=0;o((t,e)=>0===e.plugins.length?Promise.resolve([]):Promise.all(e.plugins.map(n=>n(t,e))).then(t=>t.reduce((t,e)=>t.concat(e))))(t,n).then(t=>(n.strip>0&&(t=t.map(t=>(t.path=p(t.path,n.strip),t)).filter(t=>"."!==t.path)),"function"==typeof n.filter&&(t=t.filter(n.filter)),"function"==typeof n.map&&(t=t.map(n.map)),e?Promise.all(t.map(t=>{const n=r.join(e,t.path),i=t.mode&~process.umask(),o=new Date;return"directory"===t.type?l(n).then(()=>f.utimes(n,o,t.mtime)).then(()=>t):l(r.dirname(n)).then(()=>"link"===t.type?f.link(t.linkname,n):"symlink"===t.type&&"win32"===process.platform?f.link(t.linkname,n):"symlink"===t.type?f.symlink(t.linkname,n):f.writeFile(n,t.data,{mode:i})).then(()=>"file"===t.type&&f.utimes(n,o,t.mtime)).then(()=>t)})):t));t.exports=(t,e,n)=>{if("string"!=typeof t&&!Buffer.isBuffer(t))return Promise.reject(new TypeError("Input file required"));return"object"==typeof e&&(n=e,e=null),n=Object.assign({plugins:[o(),a(),s(),c()]},n),("string"==typeof t?f.readFile(t):Promise.resolve(t)).then(t=>h(t,e,n))}},function(t,e,n){"use strict";var r=n(5),i=n(259),o=n(1);class a{static async zip(t,e){return new Promise((n,r)=>{a.zipFolder(t,e,t=>{t&&r(t),n()})})}static zipFolder(t,e,n){r.access(t,r.constants.F_OK,a=>{if(a)return n(a);r.access(o.dirname(e),r.constants.F_OK,o=>{if(o)return n(o);var a=r.createWriteStream(e),s=i("zip");a.on("close",function(){n()}),s.pipe(a),s.directory(t,!1),s.finalize()})})}}t.exports=a},function(t,e,n){var r=n(48),i=function(){},o=function(t,e,n){if("function"==typeof e)return o(t,null,e);e||(e={}),n=r(n||i);var a=t._writableState,s=t._readableState,c=e.readable||!1!==e.readable&&t.readable,l=e.writable||!1!==e.writable&&t.writable,u=function(){t.writable||p()},p=function(){l=!1,c||n.call(t)},f=function(){c=!1,l||n.call(t)},h=function(e){n.call(t,e?new Error("exited with error code: "+e):null)},d=function(e){n.call(t,e)},g=function(){return(!c||s&&s.ended)&&(!l||a&&a.ended)?void 0:n.call(t,new Error("premature close"))},m=function(){t.req.on("finish",p)};return!function(t){return t.setHeader&&"function"==typeof t.abort}(t)?l&&!a&&(t.on("end",u),t.on("close",u)):(t.on("complete",p),t.on("abort",g),t.req?m():t.on("request",m)),function(t){return t.stdio&&Array.isArray(t.stdio)&&3===t.stdio.length}(t)&&t.on("exit",h),t.on("end",f),t.on("finish",p),!1!==e.error&&t.on("error",d),t.on("close",g),function(){t.removeListener("complete",p),t.removeListener("abort",g),t.removeListener("request",m),t.req&&t.req.removeListener("finish",p),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",p),t.removeListener("exit",h),t.removeListener("end",f),t.removeListener("error",d),t.removeListener("close",g)}};t.exports=o},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},,function(t,e,n){"use strict";n.r(e);var r={};n.r(r),n.d(r,"AUTO",function(){return R}),n.d(r,"HORIZONTAL_ALIGN_LEFT",function(){return j}),n.d(r,"HORIZONTAL_ALIGN_CENTER",function(){return F}),n.d(r,"HORIZONTAL_ALIGN_RIGHT",function(){return U}),n.d(r,"VERTICAL_ALIGN_TOP",function(){return G}),n.d(r,"VERTICAL_ALIGN_MIDDLE",function(){return H}),n.d(r,"VERTICAL_ALIGN_BOTTOM",function(){return W}),n.d(r,"BLEND_SOURCE_OVER",function(){return q}),n.d(r,"BLEND_DESTINATION_OVER",function(){return Y}),n.d(r,"BLEND_MULTIPLY",function(){return V}),n.d(r,"BLEND_SCREEN",function(){return Z}),n.d(r,"BLEND_OVERLAY",function(){return $}),n.d(r,"BLEND_DARKEN",function(){return X}),n.d(r,"BLEND_LIGHTEN",function(){return Q}),n.d(r,"BLEND_HARDLIGHT",function(){return J}),n.d(r,"BLEND_DIFFERENCE",function(){return K}),n.d(r,"BLEND_EXCLUSION",function(){return tt}),n.d(r,"EDGE_EXTEND",function(){return et}),n.d(r,"EDGE_WRAP",function(){return nt}),n.d(r,"EDGE_CROP",function(){return rt});var i={};n.r(i),n.d(i,"srcOver",function(){return it}),n.d(i,"dstOver",function(){return ot}),n.d(i,"multiply",function(){return at}),n.d(i,"screen",function(){return st}),n.d(i,"overlay",function(){return ct}),n.d(i,"darken",function(){return lt}),n.d(i,"lighten",function(){return ut}),n.d(i,"hardLight",function(){return pt}),n.d(i,"difference",function(){return ft}),n.d(i,"exclusion",function(){return ht});var o=class extends Error{};var a=class extends o{};class s{constructor(t,e){if(this.constructor===s)throw new a("Can't instantiate abstract class!");this.path=t,this.temp=e}async input(){}async name(){}}var c=s;var l=class extends o{};class u{constructor(t,e,n=[]){if(this.constructor===u)throw new l("Can't instantiate abstract class!");this.path=t,this.input=e,this.data=n}async convert(){}async*getData(){}}var p=u,f=n(2),h=n.n(f),d=n(1),g=n.n(d);var m=class extends o{};class _{static fromPath(t,e){return g.a.join(e,t)}static log(t){_.verbose&&console.log(t)}static setVerbose(t=!0){_.verbose=t}static toPath(t,e,n){return t.startsWith("./")?g.a.join(g.a.dirname(e),t.substr(2)):g.a.join(n,t)}constructor(){throw new m("Can't instantiate this class!")}}_.verbose=!0;var b=_;var y=class extends p{async convert(){for await(const t of this.getData()){const e=b.fromPath(t,this.path);h.a.existsSync(e)&&(b.log(`Delete ${t}`),await h.a.remove(e))}return[]}async*getData(){const t=["assets","textures/blocks/conduit.png","textures/entity/conduit/break_particle.png","textures/blocks/dried_kelp_bottom.png","textures/blocks/water_overlay.png","textures/entity/cat/cat_collar.png","textures/entity/wolf/wolf_collar.png","bedrock_textures"];for(const e of t)yield e}};var v=class extends y{async*getData(){for(const t of this.data)yield t}},x=n(5),w=n.n(x),k=n(17),E=n.n(k),S=n(0),I=n(26),T=n.n(I),O=n(119),A=n.n(O),C=n(120),P=n.n(C),D=n(25),B=n.n(D),L=n(27),N=n.n(L),z=n(121),M=n.n(z),R=-1,j=1,F=2,U=4,G=8,H=16,W=32,q="srcOver",Y="dstOver",V="multiply",Z="screen",$="overlay",X="darken",Q="lighten",J="hardLight",K="difference",tt="exclusion",et=1,nt=2,rt=3;function it(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a;return{r:(t.r*t.a+e.r*e.a*(1-t.a))/r,g:(t.g*t.a+e.g*e.a*(1-t.a))/r,b:(t.b*t.a+e.b*e.a*(1-t.a))/r,a:r}}function ot(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a;return{r:(e.r*e.a+t.r*t.a*(1-e.a))/r,g:(e.g*e.a+t.g*t.a*(1-e.a))/r,b:(e.b*e.a+t.b*t.a*(1-e.a))/r,a:r}}function at(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,c=e.g*e.a,l=e.b*e.a;return{r:(i*s+i*(1-e.a)+s*(1-t.a))/r,g:(o*c+o*(1-e.a)+c*(1-t.a))/r,b:(a*l+a*(1-e.a)+l*(1-t.a))/r,a:r}}function st(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,c=e.g*e.a,l=e.b*e.a;return{r:(i*e.a+s*t.a-i*s+i*(1-e.a)+s*(1-t.a))/r,g:(o*e.a+c*t.a-o*c+o*(1-e.a)+c*(1-t.a))/r,b:(a*e.a+l*t.a-a*l+a*(1-e.a)+l*(1-t.a))/r,a:r}}function ct(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,c=e.g*e.a,l=e.b*e.a;return{r:(2*s<=e.a?2*i*s+i*(1-e.a)+s*(1-t.a):i*(1+e.a)+s*(1+t.a)-2*s*i-e.a*t.a)/r,g:(2*c<=e.a?2*o*c+o*(1-e.a)+c*(1-t.a):o*(1+e.a)+c*(1+t.a)-2*c*o-e.a*t.a)/r,b:(2*l<=e.a?2*a*l+a*(1-e.a)+l*(1-t.a):a*(1+e.a)+l*(1+t.a)-2*l*a-e.a*t.a)/r,a:r}}function lt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,c=e.g*e.a,l=e.b*e.a;return{r:(Math.min(i*e.a,s*t.a)+i*(1-e.a)+s*(1-t.a))/r,g:(Math.min(o*e.a,c*t.a)+o*(1-e.a)+c*(1-t.a))/r,b:(Math.min(a*e.a,l*t.a)+a*(1-e.a)+l*(1-t.a))/r,a:r}}function ut(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,c=e.g*e.a,l=e.b*e.a;return{r:(Math.max(i*e.a,s*t.a)+i*(1-e.a)+s*(1-t.a))/r,g:(Math.max(o*e.a,c*t.a)+o*(1-e.a)+c*(1-t.a))/r,b:(Math.max(a*e.a,l*t.a)+a*(1-e.a)+l*(1-t.a))/r,a:r}}function pt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,c=e.g*e.a,l=e.b*e.a;return{r:(2*i<=t.a?2*i*s+i*(1-e.a)+s*(1-t.a):i*(1+e.a)+s*(1+t.a)-2*s*i-e.a*t.a)/r,g:(2*o<=t.a?2*o*c+o*(1-e.a)+c*(1-t.a):o*(1+e.a)+c*(1+t.a)-2*c*o-e.a*t.a)/r,b:(2*a<=t.a?2*a*l+a*(1-e.a)+l*(1-t.a):a*(1+e.a)+l*(1+t.a)-2*l*a-e.a*t.a)/r,a:r}}function ft(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,c=e.g*e.a,l=e.b*e.a;return{r:(i+s-2*Math.min(i*e.a,s*t.a))/r,g:(o+c-2*Math.min(o*e.a,c*t.a))/r,b:(a+l-2*Math.min(a*e.a,l*t.a))/r,a:r}}function ht(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,c=e.g*e.a,l=e.b*e.a;return{r:(i*e.a+s*t.a-2*i*s+i*(1-e.a)+s*(1-t.a))/r,g:(o*e.a+c*t.a-2*o*c+o*(1-e.a)+c*(1-t.a))/r,b:(a*e.a+l*t.a-2*a*l+a*(1-e.a)+l*(1-t.a))/r,a:r}}var dt=function(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i"));this._originalMime=r.toLowerCase();try{var i=this.getMIME();if(!this.constructor.decoders[i])return S.c.call(this,"Unsupported MIME type: "+i,n);this.bitmap=this.constructor.decoders[i](t)}catch(t){return n.call(this,t,this)}try{this._exif=xt.a.create(t).parse(),function(t){var e=t._exif;if(e&&e.tags&&e.tags.Orientation)switch(t._exif.tags.Orientation){case 1:break;case 2:t.mirror(!0,!1);break;case 3:t.rotate(180,!1);break;case 4:t.mirror(!1,!0);break;case 5:t.rotate(-90,!1).mirror(!0,!1);break;case 6:t.rotate(-90,!1);break;case 7:t.rotate(90,!1).mirror(!0,!1);break;case 8:t.rotate(-270,!1)}}(this)}catch(t){}return n.call(this,null,this),this}function kt(t,e){if(t===R&&(t=this.getMIME()),"string"!=typeof t)return S.c.call(this,"mime must be a string",e);if("function"!=typeof e)return S.c.call(this,"cb must be a function",e);var n,r;if(t=t.toLowerCase(),this._rgba&&this.constructor.hasAlpha[t]?this.bitmap.data=Buffer.from(this.bitmap.data):this.bitmap.data=(n=this.constructor,r=this,new n(r.bitmap.width,r.bitmap.height,r._background).composite(r,0,0).bitmap).data,this.constructor.encoders[t]){var i=this.constructor.encoders[t](this);e.call(this,null,i)}else e.call(this,"Unsupported MIME type: "+t);return this}function Et(t){return dt(kt,this,t)}function St(t,e,n){return(St=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&Ct(i,n.prototype),i}).apply(null,arguments)}function It(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Tt(t,e){for(var n=0;n (HTTP: "+r.statusCode+")";return new Error(o)})}var Ft,Ut={data:null,width:null,height:null},Gt=function(t){function e(){for(var t,n=arguments.length,r=new Array(n),i=0;i-1&&(r[0]=function(t){for(var e=Buffer.alloc(t.byteLength),n=new Uint8Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:{};n=Object.assign(n,{methodName:t,eventName:e}),this.emit("any",n),t&&this.emit(t,n),this.emit(e,n)}},{key:"emitError",value:function(t,e){this.emitMulti(t,"error",e)}},{key:"getHeight",value:function(){return this.bitmap.height}},{key:"getWidth",value:function(){return this.bitmap.width}},{key:"inspect",value:function(){return""}},{key:"toString",value:function(){return"[object Jimp]"}},{key:"getMIME",value:function(){return this._originalMime||e.MIME_PNG}},{key:"getExtension",value:function(){var t=this.getMIME();return(gt[t.toLowerCase()]||[])[0]}},{key:"write",value:function(t,e){var n=this;if(!w.a||!w.a.createWriteStream)throw new Error("Cant access the filesystem. You can use the getBase64 method.");if("string"!=typeof t)return S.c.call(this,"path must be a string",e);if(void 0===e&&(e=Rt),"function"!=typeof e)return S.c.call(this,"cb must be a function",e);var r=_t(t)||this.getMIME(),i=g.a.parse(t);return i.dir&&A.a.sync(i.dir),this.getBuffer(r,function(r,i){if(r)return S.c.call(n,r,e);var o=w.a.createWriteStream(t);o.on("open",function(){o.write(i),o.end()}).on("error",function(t){return S.c.call(n,t,e)}),o.on("finish",function(){e.call(n,null,n)})}),this}},{key:"getBase64",value:function(t,n){return t===e.AUTO&&(t=this.getMIME()),"string"!=typeof t?S.c.call(this,"mime must be a string",n):"function"!=typeof n?S.c.call(this,"cb must be a function",n):(this.getBuffer(t,function(e,r){if(e)return S.c.call(this,e,n);var i="data:"+t+";base64,"+r.toString("base64");n.call(this,null,i)}),this)}},{key:"hash",value:function(t,e){if("function"==typeof(t=t||64)&&(e=t,t=64),"number"!=typeof t)return S.c.call(this,"base must be a number",e);if(t<2||t>64)return S.c.call(this,"base must be a number between 2 and 64",e);var n=this.pHash();for(n=T()(T.a.BIN,Lt.slice(0,t))(n);n.length=this.bitmap.width&&(o=this.bitmap.width-1),n<0&&(a=0),n>=this.bitmap.height&&(a=this.bitmap.height-1)),r===e.EDGE_WRAP&&(t<0&&(o=this.bitmap.width+t),t>=this.bitmap.width&&(o=t%this.bitmap.width),n<0&&(o=this.bitmap.height+n),n>=this.bitmap.height&&(a=n%this.bitmap.height));var s=this.bitmap.width*a+o<<2;return(o<0||o>=this.bitmap.width)&&(s=-1),(a<0||a>=this.bitmap.height)&&(s=-1),Object(S.a)(i)&&i.call(this,null,s),s}},{key:"getPixelColor",value:function(t,e,n){if("number"!=typeof t||"number"!=typeof e)return S.c.call(this,"x and y must be numbers",n);t=Math.round(t),e=Math.round(e);var r=this.getPixelIndex(t,e),i=this.bitmap.data.readUInt32BE(r);return Object(S.a)(n)&&n.call(this,null,i),i}},{key:"setPixelColor",value:function(t,e,n,r){if("number"!=typeof t||"number"!=typeof e||"number"!=typeof n)return S.c.call(this,"hex, x and y must be numbers",r);e=Math.round(e),n=Math.round(n);var i=this.getPixelIndex(e,n);return this.bitmap.data.writeUInt32BE(t,i),Object(S.a)(r)&&r.call(this,null,this),this}},{key:"hasAlpha",value:function(){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:Gt;Object.entries(t).forEach(function(t){var n=It(t,2),r=n[0],i=n[1];e[r]=i})}function Wt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Gt;Object.entries(t).forEach(function(t){var n=It(t,2),r=n[0],i=n[1];e.prototype[r]=i})}function qt(t,e,n){var r="before-"+e,i=e.replace(/e$/,"")+"ed";Gt.prototype[t]=function(){for(var e,o=arguments.length,a=new Array(o),s=0;s3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4?arguments[4]:void 0;if("function"==typeof r&&(o=r,r={}),!(t instanceof this.constructor))return S.c.call(this,"The source must be a Jimp image",o);if("number"!=typeof e||"number"!=typeof n)return S.c.call(this,"x and y must be numbers",o);var a=r,s=a.mode,c=a.opacitySource,l=a.opacityDest;s||(s=q),("number"!=typeof c||c<0||c>1)&&(c=1),("number"!=typeof l||l<0||l>1)&&(l=1);var u=i[s];e=Math.round(e),n=Math.round(n);var p=this;return 1!==l&&p.opacity(l),t.scanQuiet(0,0,t.bitmap.width,t.bitmap.height,function(t,r,i){var o=p.getPixelIndex(e+t,n+r,rt),a=u({r:this.bitmap.data[i+0]/255,g:this.bitmap.data[i+1]/255,b:this.bitmap.data[i+2]/255,a:this.bitmap.data[i+3]/255},{r:p.bitmap.data[o+0]/255,g:p.bitmap.data[o+1]/255,b:p.bitmap.data[o+2]/255,a:p.bitmap.data[o+3]/255},c);p.bitmap.data[o+0]=this.constructor.limit255(255*a.r),p.bitmap.data[o+1]=this.constructor.limit255(255*a.g),p.bitmap.data[o+2]=this.constructor.limit255(255*a.b),p.bitmap.data[o+3]=this.constructor.limit255(255*a.a)}),Object(S.a)(o)&&o.call(this,null,this),this}}),Gt.__extraConstructors=[],Gt.appendConstructorOption=function(t,e,n){Gt.__extraConstructors.push({name:t,test:e,run:n})},Gt.read=function(){for(var t=arguments.length,e=new Array(t),n=0;n255)return S.c.call(this,"r must be between 0 and 255",i);if((e<0||e>255)&&S.c.call(this,"g must be between 0 and 255",i),n<0||n>255)return S.c.call(this,"b must be between 0 and 255",i);if(r<0||r>255)return S.c.call(this,"a must be between 0 and 255",i);t=Math.round(t),n=Math.round(n),e=Math.round(e),r=Math.round(r);var o=t*Math.pow(256,3)+e*Math.pow(256,2)+n*Math.pow(256,1)+r*Math.pow(256,0);return Object(S.a)(i)&&i.call(this,null,o),o},Gt.intToRGBA=function(t,e){if("number"!=typeof t)return S.c.call(this,"i must be a number",e);var n={};return n.r=Math.floor(t/Math.pow(256,3)),n.g=Math.floor((t-n.r*Math.pow(256,3))/Math.pow(256,2)),n.b=Math.floor((t-n.r*Math.pow(256,3)-n.g*Math.pow(256,2))/Math.pow(256,1)),n.a=Math.floor((t-n.r*Math.pow(256,3)-n.g*Math.pow(256,2)-n.b*Math.pow(256,1))/Math.pow(256,0)),Object(S.a)(e)&&e.call(this,null,n),n},Gt.cssColorToHex=function(t){return"number"==typeof(t=t||0)?Number(t):parseInt(B()(t).toHex8(),16)},Gt.limit255=function(t){return t=Math.max(t,0),t=Math.min(t,255)},Gt.diff=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.1;if(!(t instanceof Gt&&e instanceof Gt))return S.c.call(this,"img1 and img2 must be an Jimp images");var r=t.bitmap,i=e.bitmap;if(r.width===i.width&&r.height===i.height||(r.width*r.height>i.width*i.height?t=t.cloneQuiet().resize(i.width,i.height):e=e.cloneQuiet().resize(r.width,r.height)),"number"!=typeof n||n<0||n>1)return S.c.call(this,"threshold must be a number between 0 and 1");var o=new Gt(r.width,r.height,4294967295),a=P()(r.data,i.data,o.bitmap.data,o.bitmap.width,o.bitmap.height,{threshold:n});return{percent:a/(o.bitmap.width*o.bitmap.height),image:o}},Gt.distance=function(t,e){var n=new N.a,r=n.getHash(t),i=n.getHash(e);return n.distance(r,i)},Gt.compareHashes=function(t,e){return(new N.a).distance(t,e)},Gt.colorDiff=function(t,e){var n=function(t){return Math.pow(t,2)},r=Math.max;return 0===t.a||t.a||(t.a=255),0===e.a||e.a||(e.a=255),(r(n(t.r-e.r),n(t.r-e.r-t.a+e.a))+r(n(t.g-e.g),n(t.g-e.g-t.a+e.a))+r(n(t.b-e.b),n(t.b-e.b-t.a+e.a)))/195075},qt("clone","clone",function(t){var e=new Gt(this);return Object(S.a)(t)&&t.call(e,null,e),e}),Yt("background",function(t,e){return"number"!=typeof t?S.c.call(this,"hex must be a hexadecimal rgba value",e):(this._background=t,Object(S.a)(e)&&e.call(this,null,this),this)}),Yt("scan",function(t,e,n,r,i,o){if("number"!=typeof t||"number"!=typeof e)return S.c.call(this,"x and y must be numbers",o);if("number"!=typeof n||"number"!=typeof r)return S.c.call(this,"w and h must be numbers",o);if("function"!=typeof i)return S.c.call(this,"f must be a function",o);var a=Object(S.b)(this,t,e,n,r,i);return Object(S.a)(o)&&o.call(this,null,a),a}),"BROWSER"===process.env.ENVIRONMENT)&&("undefined"!=typeof window&&"object"===("undefined"==typeof window?"undefined":Bt(window))&&(Ft=window),"undefined"!=typeof self&&"object"===("undefined"==typeof self?"undefined":Bt(self))&&(Ft=self),Ft.Jimp=Gt,Ft.Buffer=Buffer);var Vt=Gt;function Zt(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e2&&void 0!==arguments[2]?arguments[2]:50;return{r:(e.r-t.r)*(n/100)+t.r,g:(e.g-t.g)*(n/100)+t.g,b:(e.b-t.b)*(n/100)+t.b}}function Ie(t,e){var n=this;return t&&Array.isArray(t)?(t=t.map(function(t){return"xor"!==t.apply&&"mix"!==t.apply||(t.params[0]=B()(t.params[0]).toRgb()),t}),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(r,i,o){var a={r:n.bitmap.data[o],g:n.bitmap.data[o+1],b:n.bitmap.data[o+2]},s=function(t,e){return n.constructor.limit255(a[t]+e)};t.forEach(function(t){if("mix"===t.apply)a=Se(a,t.params[0],t.params[1]);else if("tint"===t.apply)a=Se(a,{r:255,g:255,b:255},t.params[0]);else if("shade"===t.apply)a=Se(a,{r:0,g:0,b:0},t.params[0]);else if("xor"===t.apply)a={r:a.r^t.params[0].r,g:a.g^t.params[0].g,b:a.b^t.params[0].b};else if("red"===t.apply)a.r=s("r",t.params[0]);else if("green"===t.apply)a.g=s("g",t.params[0]);else if("blue"===t.apply)a.b=s("b",t.params[0]);else{var r;if("hue"===t.apply&&(t.apply="spin"),!(a=B()(a))[t.apply])return S.c.call(n,"action "+t.apply+" not supported",e);a=(r=a)[t.apply].apply(r,xe(t.params)).toRgb()}}),n.bitmap.data[o]=a.r,n.bitmap.data[o+1]=a.g,n.bitmap.data[o+2]=a.b}),Object(S.a)(e)&&e.call(this,null,this),this):S.c.call(this,"actions must be an array",e)}var Te=n(126),Oe=[1,57,41,21,203,34,97,73,227,91,149,62,105,45,39,137,241,107,3,173,39,71,65,238,219,101,187,87,81,151,141,133,249,117,221,209,197,187,177,169,5,153,73,139,133,127,243,233,223,107,103,99,191,23,177,171,165,159,77,149,9,139,135,131,253,245,119,231,224,109,211,103,25,195,189,23,45,175,171,83,81,79,155,151,147,9,141,137,67,131,129,251,123,30,235,115,113,221,217,53,13,51,50,49,193,189,185,91,179,175,43,169,83,163,5,79,155,19,75,147,145,143,35,69,17,67,33,65,255,251,247,243,239,59,29,229,113,111,219,27,213,105,207,51,201,199,49,193,191,47,93,183,181,179,11,87,43,85,167,165,163,161,159,157,155,77,19,75,37,73,145,143,141,35,138,137,135,67,33,131,129,255,63,250,247,61,121,239,237,117,29,229,227,225,111,55,109,216,213,211,209,207,205,203,201,199,197,195,193,48,190,47,93,185,183,181,179,178,176,175,173,171,85,21,167,165,41,163,161,5,79,157,78,154,153,19,75,149,74,147,73,144,143,71,141,140,139,137,17,135,134,133,66,131,65,129,1],Ae=[0,9,10,10,14,12,14,14,16,15,16,15,16,15,15,17,18,17,12,18,16,17,17,19,19,18,19,18,18,19,19,19,20,19,20,20,20,20,20,20,15,20,19,20,20,20,21,21,21,20,20,20,21,18,21,21,21,21,20,21,17,21,21,21,22,22,21,22,22,21,22,21,19,22,22,19,20,22,22,21,21,21,22,22,22,18,22,22,21,22,22,23,22,20,23,22,22,23,23,21,19,21,21,21,23,23,23,22,23,23,21,23,22,23,18,22,23,20,22,23,23,23,21,22,20,22,21,22,24,24,24,24,24,22,21,24,23,23,24,21,24,23,24,22,24,24,22,24,24,22,23,24,24,24,20,23,22,23,24,24,24,24,24,24,24,23,21,23,22,23,24,24,24,22,24,24,24,23,22,24,24,25,23,25,25,23,24,25,25,24,22,25,25,25,24,23,24,25,25,25,25,25,25,25,25,25,25,25,25,23,25,23,24,25,25,25,25,25,25,25,25,25,24,22,25,25,23,25,25,20,24,25,24,25,25,22,24,25,24,25,24,25,25,24,25,25,25,25,22,25,25,25,24,25,24,25,18];function Ce(t){return(Ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Pe=function(t,e,n){return 255*(t-e)/(n-e)},De=function(t){return[t.findIndex(function(t){return t>0}),255-t.slice().reverse().findIndex(function(t){return t>0})]};function Be(t,e,n){if("boolean"!=typeof t||"boolean"!=typeof e)return S.c.call(this,"horizontal and vertical must be Booleans",n);if(t&&e)return this.rotate(180,!0,n);var r=Buffer.alloc(this.bitmap.data.length);return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(n,i,o){var a=t?this.bitmap.width-1-n:n,s=e?this.bitmap.height-1-i:i,c=this.bitmap.width*s+a<<2,l=this.bitmap.data.readUInt32BE(o);r.writeUInt32BE(l,c)}),this.bitmap.data=Buffer.from(r),Object(S.a)(n)&&n.call(this,null,this),this}function Le(t){return(Le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ne(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e=0&&p>=0&&c-s>0&&l-p>0){var f=u.getPixelIndex(s,p),h={r:this.bitmap.data[a],g:this.bitmap.data[a+1],b:this.bitmap.data[a+2],a:this.bitmap.data[a+3]},d={r:u.bitmap.data[f],g:u.bitmap.data[f+1],b:u.bitmap.data[f+2],a:u.bitmap.data[f+3]};u.bitmap.data[f]=(h.a*(h.r-d.r)-d.r+255>>8)+d.r,u.bitmap.data[f+1]=(h.a*(h.g-d.g)-d.g+255>>8)+d.g,u.bitmap.data[f+2]=(h.a*(h.b-d.b)-d.b+255>>8)+d.b,u.bitmap.data[f+3]=this.constructor.limit255(d.a+h.a)}}),Object(S.a)(s)&&s.call(this,null,this),this}}},function(){return{rotate:function(t,e,n){return null==e&&(e=!0),"function"==typeof e&&void 0===n&&(n=e,e=!0),"number"!=typeof t?S.c.call(this,"deg must be a number",n):"boolean"!=typeof e&&"string"!=typeof e?S.c.call(this,"mode must be a boolean or a string",n):(function(t,e){var n=(t%=360)*Math.PI/180,r=Math.cos(n),i=Math.sin(n),o=this.bitmap.width,a=this.bitmap.height;if(!0===e||"string"==typeof e){(o=Math.ceil(Math.abs(this.bitmap.width*r)+Math.abs(this.bitmap.height*i))+1)%2!=0&&o++,(a=Math.ceil(Math.abs(this.bitmap.width*i)+Math.abs(this.bitmap.height*r))+1)%2!=0&&a++;var s=this.cloneQuiet();this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,n){this.bitmap.data.writeUInt32BE(this._background,n)});var c=Math.max(o,a,this.bitmap.width,this.bitmap.height);this.resize(c,c,e),this.blit(s,this.bitmap.width/2-s.bitmap.width/2,this.bitmap.height/2-s.bitmap.height/2)}var l=this.bitmap.width,u=this.bitmap.height,p=Buffer.alloc(this.bitmap.data.length);function f(t,e){return function(n,r){return{x:n+t,y:r+e}}}for(var h=f(-l/2,-u/2),d=f(l/2+.5,u/2+.5),g=1;g<=u;g++)for(var m=1;m<=l;m++){var _=h(m,g),b=d(r*_.x-i*_.y,r*_.y+i*_.x),y=l*(g-1)+m-1<<2;if(b.x>=0&&b.x=0&&b.y1?S.c.call(this,"val must be a number between -1 and +1",e):(this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(e,n,r){t<0?(this.bitmap.data[r]=this.bitmap.data[r]*(1+t),this.bitmap.data[r+1]=this.bitmap.data[r+1]*(1+t),this.bitmap.data[r+2]=this.bitmap.data[r+2]*(1+t)):(this.bitmap.data[r]=this.bitmap.data[r]+(255-this.bitmap.data[r])*t,this.bitmap.data[r+1]=this.bitmap.data[r+1]+(255-this.bitmap.data[r+1])*t,this.bitmap.data[r+2]=this.bitmap.data[r+2]+(255-this.bitmap.data[r+2])*t)}),Object(S.a)(e)&&e.call(this,null,this),this)},contrast:function(t,e){if("number"!=typeof t)return S.c.call(this,"val must be numbers",e);if(t<-1||t>1)return S.c.call(this,"val must be a number between -1 and +1",e);var n=(t+1)/(1-t);function r(t){return(t=Math.floor(n*(t-127)+127))<0?0:t>255?255:t}return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,n){this.bitmap.data[n]=r(this.bitmap.data[n]),this.bitmap.data[n+1]=r(this.bitmap.data[n+1]),this.bitmap.data[n+2]=r(this.bitmap.data[n+2])}),Object(S.a)(e)&&e.call(this,null,this),this},posterize:function(t,e){return"number"!=typeof t?S.c.call(this,"n must be numbers",e):(t<2&&(t=2),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(e,n,r){this.bitmap.data[r]=Math.floor(this.bitmap.data[r]/255*(t-1))/(t-1)*255,this.bitmap.data[r+1]=Math.floor(this.bitmap.data[r+1]/255*(t-1))/(t-1)*255,this.bitmap.data[r+2]=Math.floor(this.bitmap.data[r+2]/255*(t-1))/(t-1)*255}),Object(S.a)(e)&&e.call(this,null,this),this)},greyscale:Ee,grayscale:Ee,opacity:function(t,e){return"number"!=typeof t?S.c.call(this,"f must be a number",e):t<0||t>1?S.c.call(this,"f must be a number from 0 to 1",e):(this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(e,n,r){var i=this.bitmap.data[r+3]*t;this.bitmap.data[r+3]=i}),Object(S.a)(e)&&e.call(this,null,this),this)},sepia:function(t){return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,n){var r=this.bitmap.data[n],i=this.bitmap.data[n+1],o=this.bitmap.data[n+2];o=.272*(r=.393*r+.769*i+.189*o)+.534*(i=.349*r+.686*i+.168*o)+.131*o,this.bitmap.data[n]=r<255?r:255,this.bitmap.data[n+1]=i<255?i:255,this.bitmap.data[n+2]=o<255?o:255}),Object(S.a)(t)&&t.call(this,null,this),this},fade:function(t,e){return"number"!=typeof t?S.c.call(this,"f must be a number",e):t<0||t>1?S.c.call(this,"f must be a number from 0 to 1",e):(this.opacity(1-t),Object(S.a)(e)&&e.call(this,null,this),this)},convolution:function(t,e,n){"function"==typeof e&&void 0===n&&(n=e,e=null),e||(e=this.constructor.EDGE_EXTEND);var r,i,o,a,s,c,l,u,p,f,h=Buffer.from(this.bitmap.data),d=t.length,g=t[0].length,m=Math.floor(d/2),_=Math.floor(g/2),b=-m,y=-_;return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(n,d,g){a=0,o=0,i=0;for(var v=b;v<=m;v++)for(var x=y;x<=_;x++)u=n+x,p=d+v,r=t[v+m][x+_],-1===(f=this.getPixelIndex(u,p,e))?(l=0,c=0,s=0):(s=this.bitmap.data[f+0],c=this.bitmap.data[f+1],l=this.bitmap.data[f+2]),i+=r*s,o+=r*c,a+=r*l;i<0&&(i=0),o<0&&(o=0),a<0&&(a=0),i>255&&(i=255),o>255&&(o=255),a>255&&(a=255),h[g+0]=i,h[g+1]=o,h[g+2]=a}),this.bitmap.data=h,Object(S.a)(n)&&n.call(this,null,this),this},opaque:function(t){return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,n){this.bitmap.data[n+3]=255}),Object(S.a)(t)&&t.call(this,null,this),this},pixelate:function(t,e,n,r,i,o){if("function"==typeof e)o=e,i=null,r=null,n=null,e=null;else{if("number"!=typeof t)return S.c.call(this,"size must be a number",o);if(ke(e)&&"number"!=typeof e)return S.c.call(this,"x must be a number",o);if(ke(n)&&"number"!=typeof n)return S.c.call(this,"y must be a number",o);if(ke(r)&&"number"!=typeof r)return S.c.call(this,"w must be a number",o);if(ke(i)&&"number"!=typeof i)return S.c.call(this,"h must be a number",o)}var a=[[1/16,.125,1/16],[.125,.25,.125],[1/16,.125,1/16]];e=e||0,n=n||0,r=ke(r)?r:this.bitmap.width-e,i=ke(i)?i:this.bitmap.height-n;var s=this.cloneQuiet();return this.scanQuiet(e,n,r,i,function(e,n,r){e=t*Math.floor(e/t),n=t*Math.floor(n/t);var i=we(s,a,e,n);this.bitmap.data[r]=i[0],this.bitmap.data[r+1]=i[1],this.bitmap.data[r+2]=i[2]}),Object(S.a)(o)&&o.call(this,null,this),this},convolute:function(t,e,n,r,i,o){if(!Array.isArray(t))return S.c.call(this,"the kernel must be an array",o);if("function"==typeof e)o=e,e=null,n=null,r=null,i=null;else{if(ke(e)&&"number"!=typeof e)return S.c.call(this,"x must be a number",o);if(ke(n)&&"number"!=typeof n)return S.c.call(this,"y must be a number",o);if(ke(r)&&"number"!=typeof r)return S.c.call(this,"w must be a number",o);if(ke(i)&&"number"!=typeof i)return S.c.call(this,"h must be a number",o)}var a=(t.length-1)/2;e=ke(e)?e:a,n=ke(n)?n:a,r=ke(r)?r:this.bitmap.width-e,i=ke(i)?i:this.bitmap.height-n;var s=this.cloneQuiet();return this.scanQuiet(e,n,r,i,function(e,n,r){var i=we(s,t,e,n);this.bitmap.data[r]=this.constructor.limit255(i[0]),this.bitmap.data[r+1]=this.constructor.limit255(i[1]),this.bitmap.data[r+2]=this.constructor.limit255(i[2])}),Object(S.a)(o)&&o.call(this,null,this),this},color:Ie,colour:Ie}},Te.a,function(){return{blur:function(t,e){if("number"!=typeof t)return S.c.call(this,"r must be a number",e);if(t<1)return S.c.call(this,"r must be greater than 0",e);for(var n,r,i,o,a,s,c,l,u,p,f,h,d,g,m=this.bitmap.width-1,_=this.bitmap.height-1,b=t+1,y=Oe[t],v=Ae[t],x=[],w=[],k=[],E=[],I=[],T=[],O=2;O-- >0;){for(h=0,d=0,s=0;sm?m:c)<<2),n+=this.bitmap.data[l++],r+=this.bitmap.data[l++],i+=this.bitmap.data[l++],o+=this.bitmap.data[l];for(a=0;a0?l<<2:0),u=d+I[a],p=d+T[a],n+=this.bitmap.data[u++]-this.bitmap.data[p++],r+=this.bitmap.data[u++]-this.bitmap.data[p++],i+=this.bitmap.data[u++]-this.bitmap.data[p++],o+=this.bitmap.data[u]-this.bitmap.data[p],h++;d+=this.bitmap.width<<2}for(a=0;a_?0:this.bitmap.width],r+=w[f],i+=k[f],o+=E[f];for(h=a<<2,s=0;s>>v,this.bitmap.data[h+3]=g,g>255&&(this.bitmap.data[h+3]=255),g>0?(g=255/g,this.bitmap.data[h]=(n*y>>>v)*g,this.bitmap.data[h+1]=(r*y>>>v)*g,this.bitmap.data[h+2]=(i*y>>>v)*g):(this.bitmap.data[h+2]=0,this.bitmap.data[h+1]=0,this.bitmap.data[h]=0),0===a&&(I[s]=((l=s+b)<_?l:_)*this.bitmap.width,T[s]=(l=s-t)>0?l*this.bitmap.width:0),u=a+I[s],p=a+T[s],n+=x[u]-x[p],r+=w[u]-w[p],i+=k[u]-k[p],o+=E[u]-E[p],h+=this.bitmap.width<<2}}return Object(S.a)(e)&&e.call(this,null,this),this}}},function(t){return t("crop",function(t,e,n,r,i){if("number"!=typeof t||"number"!=typeof e)return S.c.call(this,"x and y must be numbers",i);if("number"!=typeof n||"number"!=typeof r)return S.c.call(this,"w and h must be numbers",i);if(t=Math.round(t),e=Math.round(e),n=Math.round(n),r=Math.round(r),0===t&&n===this.bitmap.width){var o=n*e+t<<2,a=o+r*n<<3;this.bitmap.data=this.bitmap.data.slice(o,a)}else{var s=Buffer.allocUnsafe(n*r*4),c=0;this.scanQuiet(t,e,n,r,function(t,e,n){var r=this.bitmap.data.readUInt32BE(n,!0);s.writeUInt32BE(r,c,!0),c+=4}),this.bitmap.data=s}return this.bitmap.width=n,this.bitmap.height=r,Object(S.a)(i)&&i.call(this,null,this),this}),{class:{autocrop:function(){for(var t,e=this.bitmap.width,n=this.bitmap.height,r=1,i=0,o=2e-4,a=!0,s=!1,c=0,l=arguments.length;co)break t}h++}p=this.getPixelColor(e,0);t:for(var x=0;xo)break t}d++}p=this.getPixelColor(0,n);t:for(var I=n-1;I>=h+r;I--){for(var T=e-d-1;T>=0;T--){var O=this.getPixelColor(T,I),A=this.constructor.intToRGBA(O);if(this.constructor.colorDiff(f,A)>o)break t}g++}p=this.getPixelColor(e,n);t:for(var C=e-1;C>=0+d+r;C--){for(var P=n-1;P>=0+h;P--){var D=this.getPixelColor(C,P),B=this.constructor.intToRGBA(D);if(this.constructor.colorDiff(f,B)>o)break t}m++}if(m-=i,d-=i,h-=i,g-=i,s){var L=Math.min(d,m),N=Math.min(h,g);m=L,d=L,h=N,g=N}var z=e-(m+d),M=n-(g+h);return m=m>=0?m:0,d=d>=0?d:0,h=h>=0?h:0,g=g>=0?g:0,(a?0!==d&&0!==h&&0!==m&&0!==g:0!==d||0!==h||0!==m||0!==g)&&this.crop(d,h,z,M),Object(S.a)(t)&&t.call(this,null,this),this}}}},function(){return{normalize:function(t){var e=function(){var t={r:new Array(256).fill(0),g:new Array(256).fill(0),b:new Array(256).fill(0)};return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(e,n,r){t.r[this.bitmap.data[r+0]]++,t.g[this.bitmap.data[r+1]]++,t.b[this.bitmap.data[r+2]]++}),t}.call(this),n={r:De(e.r),g:De(e.g),b:De(e.b)};return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,r){var i=this.bitmap.data[r+0],o=this.bitmap.data[r+1],a=this.bitmap.data[r+2];this.bitmap.data[r+0]=Pe(i,n.r[0],n.r[1]),this.bitmap.data[r+1]=Pe(o,n.g[0],n.g[1]),this.bitmap.data[r+2]=Pe(a,n.b[0],n.b[1])}),Object(S.a)(t)&&t.call(this,null,this),this}}},function(){return{invert:function(t){return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,n){this.bitmap.data[n]=255-this.bitmap.data[n],this.bitmap.data[n+1]=255-this.bitmap.data[n+1],this.bitmap.data[n+2]=255-this.bitmap.data[n+2]}),Object(S.a)(t)&&t.call(this,null,this),this}}},function(){return{gaussian:function(t,e){if("number"!=typeof t)return S.c.call(this,"r must be a number",e);if(t<1)return S.c.call(this,"r must be greater than 0",e);for(var n=Math.ceil(2.57*t),r=2*n+1,i=t*t*2,o=i*Math.PI,a=[],s=0;s1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0;if(!(t instanceof this.constructor))return S.c.call(this,"The source must be a Jimp image",r);if("number"!=typeof e||"number"!=typeof n)return S.c.call(this,"x and y must be numbers",r);e=Math.round(e),n=Math.round(n);var i=this.bitmap.width,o=this.bitmap.height,a=this;return t.scanQuiet(0,0,t.bitmap.width,t.bitmap.height,function(t,r,s){var c=e+t,l=n+r;if(c>=0&&l>=0&&cthis.bitmap.width/this.bitmap.height?e/this.bitmap.height:t/this.bitmap.width;return this.scale(i,n),Object(S.a)(r)&&r.call(this,null,this),this}}},function(){return{displace:function(t,e,n){if("object"!==Le(t)||t.constructor!==this.constructor)return S.c.call(this,"The source must be a Jimp image",n);if("number"!=typeof e)return S.c.call(this,"factor must be a number",n);var r=this.cloneQuiet();return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(n,i,o){var a=t.bitmap.data[o]/256*e;a=Math.round(a);var s=this.getPixelIndex(n+a,i);this.bitmap.data[s]=r.bitmap.data[o],this.bitmap.data[s+1]=r.bitmap.data[o+1],this.bitmap.data[s+2]=r.bitmap.data[o+2]}),Object(S.a)(n)&&n.call(this,null,this),this}}},function(){return{contain:function(t,e,n,r,i){if("number"!=typeof t||"number"!=typeof e)return S.c.call(this,"w and h must be numbers",i);"string"==typeof n&&("function"==typeof r&&void 0===i&&(i=r),r=n,n=null),"function"==typeof n&&(void 0===i&&(i=n),r=null,n=null),"function"==typeof r&&void 0===i&&(i=r,r=null);var o=7&(n=n||this.constructor.HORIZONTAL_ALIGN_CENTER|this.constructor.VERTICAL_ALIGN_MIDDLE),a=n>>3;if((0===o||o&o-1)&&(0===a||a&a-1))return S.c.call(this,"only use one flag per alignment direction",i);var s=o>>1,c=a>>1,l=t/e>this.bitmap.width/this.bitmap.height?e/this.bitmap.height:t/this.bitmap.width,u=this.cloneQuiet().scale(l,r);return this.resize(t,e,r),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,n){this.bitmap.data.writeUInt32BE(this._background,n)}),this.blit(u,(this.bitmap.width-u.bitmap.width)/2*s,(this.bitmap.height-u.bitmap.height)/2*c),Object(S.a)(i)&&i.call(this,null,this),this}}},function(){return{cover:function(t,e,n,r,i){if("number"!=typeof t||"number"!=typeof e)return S.c.call(this,"w and h must be numbers",i);n&&"function"==typeof n&&void 0===i?(i=n,n=null,r=null):"function"==typeof r&&void 0===i&&(i=r,r=null);var o=7&(n=n||this.constructor.HORIZONTAL_ALIGN_CENTER|this.constructor.VERTICAL_ALIGN_MIDDLE),a=n>>3;if((0===o||o&o-1)&&(0===a||a&a-1))return S.c.call(this,"only use one flag per alignment direction",i);var s=o>>1,c=a>>1,l=t/e>this.bitmap.width/this.bitmap.height?t/this.bitmap.width:e/this.bitmap.height;return this.scale(l,r),this.crop((this.bitmap.width-t)/2*s,(this.bitmap.height-e)/2*c,t,e),Object(S.a)(i)&&i.call(this,null,this),this}}}],Me=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Vt,n={hasAlpha:{},encoders:{},decoders:{},class:{},constants:{}};function r(t){Object.entries(t).forEach(function(t){var e=Qt(t,2),r=e[0],i=e[1];n[r]=$t({},n[r],i)})}return t.types&&(t.types.forEach(function(t){var e=t();Array.isArray(e.mime)?mt.apply(void 0,Zt(e.mime)):Object.entries(e.mime).forEach(function(t){return mt.apply(void 0,Zt(t))}),delete e.mime,r(e)}),e.decoders=$t({},e.decoders,n.decoders),e.encoders=$t({},e.encoders,n.encoders),e.hasAlpha=$t({},e.hasAlpha,n.hasAlpha)),t.plugins&&t.plugins.forEach(function(t){var e=t(Yt)||{};e.class||e.constants?r(e):r({class:e})}),Wt(n.class,e),Ht(n.constants,e),Vt}({types:[function(){return Object(Jt.mergeDeep)({mime:ee({},"image/jpeg",["jpeg","jpg","jpe"]),constants:{MIME_JPEG:"image/jpeg"},decoders:ee({},"image/jpeg",te.a.decode),encoders:ee({},"image/jpeg",function(t){return te.a.encode(t.bitmap,t._quality).data}),class:{_quality:100,quality:function(t,e){return"number"!=typeof t?S.c.call(this,"n must be a number",e):t<0||t>100?S.c.call(this,"n must be a number 0 - 100",e):(this._quality=Math.round(t),Object(S.a)(e)&&e.call(this,null,this),this)}}},{mime:re({},"image/png",["png"]),constants:{MIME_PNG:"image/png",PNG_FILTER_AUTO:-1,PNG_FILTER_NONE:0,PNG_FILTER_SUB:1,PNG_FILTER_UP:2,PNG_FILTER_AVERAGE:3,PNG_FILTER_PATH:4},hasAlpha:re({},"image/png",!0),decoders:re({},"image/png",ne.PNG.sync.read),encoders:re({},"image/png",function(t){var e=new ne.PNG({width:t.bitmap.width,height:t.bitmap.height});return e.data=t.bitmap.data,ne.PNG.sync.write(e,{width:t.bitmap.width,height:t.bitmap.height,deflateLevel:t._deflateLevel,deflateStrategy:t._deflateStrategy,filterType:t._filterType,colorType:"number"==typeof t._colorType?t._colorType:t._rgba?6:2,inputHasAlpha:t._rgba})}),class:{_deflateLevel:9,_deflateStrategy:3,_filterType:-1,_colorType:null,deflateLevel:function(t,e){return"number"!=typeof t?S.c.call(this,"l must be a number",e):t<0||t>9?S.c.call(this,"l must be a number 0 - 9",e):(this._deflateLevel=Math.round(t),Object(S.a)(e)&&e.call(this,null,this),this)},deflateStrategy:function(t,e){return"number"!=typeof t?S.c.call(this,"s must be a number",e):t<0||t>3?S.c.call(this,"s must be a number 0 - 3",e):(this._deflateStrategy=Math.round(t),Object(S.a)(e)&&e.call(this,null,this),this)},filterType:function(t,e){return"number"!=typeof t?S.c.call(this,"n must be a number",e):t<-1||t>4?S.c.call(this,"n must be -1 (auto) or a number 0 - 4",e):(this._filterType=Math.round(t),Object(S.a)(e)&&e.call(this,null,this),this)},colorType:function(t,e){return"number"!=typeof t?S.c.call(this,"s must be a number",e):0!==t&&2!==t&&4!==t&&6!==t?S.c.call(this,"s must be a number 0, 2, 4, 6.",e):(this._colorType=Math.round(t),Object(S.a)(e)&&e.call(this,null,this),this)}}},{mime:ae({},"image/bmp",["bmp"]),constants:{MIME_BMP:"image/bmp",MIME_X_MS_BMP:"image/x-ms-bmp"},decoders:(t={},ae(t,"image/bmp",se),ae(t,"image/x-ms-bmp",se),t),encoders:(e={},ae(e,"image/bmp",ce),ae(e,"image/x-ms-bmp",ce),e)},{mime:pe({},"image/tiff",["tiff","tif"]),constants:{MIME_TIFF:"image/tiff"},decoders:pe({},"image/tiff",function(t){var e=ue.a.decode(t),n=e[0];ue.a.decodeImages(t,e);var r=ue.a.toRGBA8(n);return{data:Buffer.from(r),width:n.t256[0],height:n.t257[0]}}),encoders:pe({},"image/tiff",function(t){var e=ue.a.encodeImage(t.bitmap.data,t.bitmap.width,t.bitmap.height);return Buffer.from(e)})},{mime:de({},"image/gif",["gif"]),constants:{MIME_GIF:"image/gif"},decoders:de({},"image/gif",function(t){var e=new he.a.GifReader(t),n=Buffer.alloc(e.width*e.height*4);return e.decodeAndBlitFrameRGBA(0,n),{data:n,width:e.width,height:e.height}})});var t,e}],plugins:[function(t){var e=ze.map(function(e){var n=e(t)||{};return n.class||n.constants||(n={class:n}),n});return Jt.mergeDeep.apply(void 0,Ne(e))}]});var Re=class extends p{async convert(){const t=[];for await(const[e,n,r]of this.getData()){const i=b.fromPath(e,this.path),o=b.toPath(r,i,this.path);let a=null;for(let i=0;i<=n;i++){const o=e+(i.toString().padStart(2,"0")+".png"),s=b.fromPath(o,this.path);if(h.a.existsSync(s)){const e=await Me.read(s);null===a&&(b.log(`Create atlas ${r}`),a=await Me.create(e.getWidth(),e.getHeight()*(n+1))),a.composite(e,0,e.getHeight()*i),t.push(o)}}null!==a&&await a.writeAsync(o)}return[[v,t]]}async*getData(){const t=[["textures/items/clock_",63,"./watch_atlas.png"],["textures/items/compass_",31,"./compass_atlas.png"]];for(const e of t)yield e}};var je=class extends p{async convert(){for await(const t of this.getData()){const e=b.fromPath(t,this.path);if(h.a.existsSync(e)){b.log(`Convert bed ${t}`);const n=await Me.read(e),r=n.getWidth()/64,i=await Me.create(n.getWidth(),n.getHeight());i.composite(n.clone().crop(0,0,44*r,22*r),0,0),i.composite(n.clone().crop(0,28*r,44*r,16*r),0,22*r),i.composite(n.clone().crop(22*r,22*r,16*r,6*r),22*r,0),i.composite(n.clone().crop(50*r,0,12*r,12*r),0,38*r),i.composite(n.clone().crop(50*r,12*r,12*r,12*r),12*r,38*r),await i.writeAsync(e)}}return[]}async*getData(){const t=["textures/entity/bed/black.png","textures/entity/bed/blue.png","textures/entity/bed/brown.png","textures/entity/bed/cyan.png","textures/entity/bed/gray.png","textures/entity/bed/green.png","textures/entity/bed/light_blue.png","textures/entity/bed/lime.png","textures/entity/bed/magenta.png","textures/entity/bed/orange.png","textures/entity/bed/pink.png","textures/entity/bed/purple.png","textures/entity/bed/red.png","textures/entity/bed/silver.png","textures/entity/bed/white.png","textures/entity/bed/yellow.png"];for(const e of t)yield e}};var Fe=class extends p{async convert(){for await(const[t,e]of this.getData()){const n=b.fromPath(t,this.path),r=b.toPath(e,"",this.path);if(h.a.existsSync(n)){b.log(`Create chest front ${e}`);const t=await Me.read(n),i=t.getWidth()/64,o=await Me.create(14*i,14*i);o.composite(t.clone().crop(14*i,14*i,14*i,5*i),0,0),o.composite(t.clone().crop(14*i,34*i,14*i,9*i),0,5*i),o.composite(t.clone().crop(i,i,2*i,4*i),6*i,3*i),await o.writeAsync(r)}}return[]}async*getData(){const t=[["textures/entity/chest/normal.png","textures/blocks/chest_front.png"],["textures/entity/chest/trapped.png","textures/blocks/trapped_chest_front.png"],["textures/entity/chest/ender.png","textures/blocks/ender_chest_front.png"]];for(const e of t)yield e}};var Ue=class extends p{async convert(){for await(const[t,e]of this.getData()){const n=b.fromPath(t,this.path),r=b.toPath(e,"",this.path);if(h.a.existsSync(n)){b.log(`Create chest side ${e}`);const t=await Me.read(n),i=t.getWidth()/64,o=await Me.create(14*i,14*i);o.composite(t.clone().crop(28*i,14*i,14*i,5*i),0,0),o.composite(t.clone().crop(28*i,34*i,14*i,9*i),0,5*i),await o.writeAsync(r)}}return[]}async*getData(){const t=[["textures/entity/chest/normal.png","textures/blocks/chest_side.png"],["textures/entity/chest/ender.png","textures/blocks/ender_chest_side.png"]];for(const e of t)yield e}};var Ge=class extends p{async convert(){const t=[];for await(const[e,n]of this.getData()){const r=b.toPath(n,"",this.path);let i=null;for(const[r,o,a]of e){const e=b.fromPath(r,this.path);if(h.a.existsSync(e)){const t=await Me.read(e);null===i&&(b.log(`Colorize and overlay ${n}`),i=await Me.create(t.getWidth(),t.getHeight())),Array.isArray(o)&&o.length>=3&&t.scan(0,0,t.getWidth(),t.getHeight(),(e,n,r)=>{t.bitmap.data[r]=t.bitmap.data[r]/255*o[0],t.bitmap.data[r+1]=t.bitmap.data[r+1]/255*o[1],t.bitmap.data[r+2]=t.bitmap.data[r+2]/255*o[2]}),i.composite(t,0,0)}a&&t.push(r)}null!==i&&await i.writeAsync(r)}return[[v,t]]}async*getData(){const t=[[[["textures/models/armor/leather_1.png",[167,105,67]]],"textures/models/armor/cloth_1.png"],[[["textures/models/armor/leather_2.png",[167,105,67]]],"textures/models/armor/cloth_2.png"],[[["textures/blocks/double_plant_fern_top.png",[80,121,43]]],"textures/blocks/double_plant_fern_carried.png"],[[["textures/blocks/double_plant_grass_top.png",[80,121,43]]],"textures/blocks/double_plant_grass_carried.png"],[[["textures/blocks/fern.png",[50,81,44]]],"textures/blocks/fern_carried.png"],[[["textures/blocks/grass_top.png",[78,119,42]]],"textures/blocks/grass_carried.png"],[[["textures/blocks/leaves_acacia.png",[42,106,9]]],"textures/blocks/leaves_acacia_carried.png"],[[["textures/blocks/leaves_big_oak.png",[34,90,9]]],"textures/blocks/leaves_big_oak_carried.png"],[[["textures/blocks/leaves_birch.png",[71,92,46]]],"textures/blocks/leaves_birch_carried.png"],[[["textures/blocks/leaves_jungle.png",[42,107,9]]],"textures/blocks/leaves_jungle_carried.png"],[[["textures/blocks/leaves_oak.png",[23,63,3]]],"textures/blocks/leaves_oak_carried.png"],[[["textures/blocks/leaves_spruce.png",[58,92,58]]],"textures/blocks/leaves_spruce_carried.png"],[[["textures/blocks/tallgrass.png",[81,123,44]]],"textures/blocks/tallgrass_carried.png"],[[["textures/blocks/waterlily.png",[67,102,36]]],"textures/blocks/carried_waterlily.png"],[[["textures/blocks/water_flow_grey.png",[86,132,254]]],"textures/blocks/water_flow.png"],[[["textures/blocks/water_still_grey.png",[215,215,215]]],"textures/blocks/cauldron_water.png"],[[["textures/blocks/water_still_grey.png",[86,132,254]]],"textures/blocks/water_still.png"],[[["textures/blocks/vine.png",[80,121,43]]],"textures/blocks/vine_carried.png"],[[["textures/items/potion_overlay.png",[88,148,255]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering.png"],[[["textures/items/potion_overlay.png",[232,58,56]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_damageBoost.png"],[[["textures/items/potion_overlay.png",[255,244,92]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_fireResistance.png"],[[["textures/items/potion_overlay.png",[106,16,14]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_harm.png"],[[["textures/items/potion_overlay.png",[255,58,56]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_heal.png"],[[["textures/items/potion_overlay.png",[202,208,232]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_invisibility.png"],[[["textures/items/potion_overlay.png",[54,255,120]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_jump.png"],[[["textures/items/potion_overlay.png",[242,255,202]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_luck.png"],[[["textures/items/potion_overlay.png",[142,172,204]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_moveSlowdown.png"],[[["textures/items/potion_overlay.png",[196,255,255]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_moveSpeed.png"],[[["textures/items/potion_overlay.png",[50,50,255]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_nightVision.png"],[[["textures/items/potion_overlay.png",[124,232,78]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_poison.png"],[[["textures/items/potion_overlay.png",[255,146,255]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_regeneration.png"],[[["textures/items/potion_overlay.png",[255,255,255]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_slowFall.png"],[[["textures/items/potion_overlay.png",[186,144,156]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_turtleMaster.png"],[[["textures/items/potion_overlay.png",[72,130,242]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_waterBreathing.png"],[[["textures/items/potion_overlay.png",[114,122,114]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_weakness.png"],[[["textures/items/potion_overlay.png",[84,66,62]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_wither.png"],[[["textures/items/map_filled.png"],["textures/items/map_filled_markings.png",[82,76,68]]],"textures/items/map_mansion.png"],[[["textures/items/map_filled.png"],["textures/items/map_filled_markings.png",[67,124,111]]],"textures/items/map_monument.png"],[[["textures/items/map_filled.png"],["textures/items/map_filled_markings.png",[103,90,173]]],"textures/items/map_nautilus.png"],[[["textures/items/map_filled.png"],["textures/items/map_filled_markings.png",[131,131,131],!0]],"textures/items/map_filled.png"],[[["textures/items/potion_overlay.png",[58,130,255]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_absorption.png"],[[["textures/items/potion_overlay.png",[50,50,56]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_blindness.png"],[[["textures/items/potion_overlay.png",[134,46,118]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_confusion.png"],[[["textures/items/potion_overlay.png",[232,58,56]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_damageBoost.png"],[[["textures/items/potion_overlay.png",[118,104,36]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_digSlowdown.png"],[[["textures/items/potion_overlay.png",[255,255,106]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_digSpeed.png"],[[["textures/items/potion_overlay.png",[88,148,255]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_drinkable.png"],[[["textures/items/potion_overlay.png",[255,244,92]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_fireResistance.png"],[[["textures/items/potion_overlay.png",[106,16,14]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_harm.png"],[[["textures/items/potion_overlay.png",[255,58,56]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_heal.png"],[[["textures/items/potion_overlay.png",[255,198,56]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_healthBoost.png"],[[["textures/items/potion_overlay.png",[140,186,132]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_hunger.png"],[[["textures/items/potion_overlay.png",[202,208,232]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_invisibility.png"],[[["textures/items/potion_overlay.png",[54,255,120]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_jump.png"],[[["textures/items/potion_overlay.png",[54,255,120]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_levitation.png"],[[["textures/items/potion_overlay.png",[142,172,204]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_moveSlowdown.png"],[[["textures/items/potion_overlay.png",[196,255,255]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_moveSpeed.png"],[[["textures/items/potion_overlay.png",[50,50,255]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_nightVision.png"],[[["textures/items/potion_overlay.png",[124,232,78]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_poison.png"],[[["textures/items/potion_overlay.png",[255,146,255]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_regeneration.png"],[[["textures/items/potion_overlay.png",[242,110,92]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_resistance.png"],[[["textures/items/potion_overlay.png",[255,58,56]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_saturation.png"],[[["textures/items/potion_overlay.png",[255,255,255]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_slowFall.png"],[[["textures/items/potion_overlay.png",[186,144,156]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_turtleMaster.png"],[[["textures/items/potion_overlay.png",[72,130,242]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_waterBreathing.png"],[[["textures/items/potion_overlay.png",[114,112,114]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_weakness.png"],[[["textures/items/potion_overlay.png",[84,66,62]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_wither.png"],[[["textures/blocks/redstone_dust_cross.png"],["textures/blocks/redstone_dust_overlay.png"]],"textures/blocks/redstone_dust_cross.png"],[[["textures/blocks/redstone_dust_line.png"],["textures/blocks/redstone_dust_overlay.png",null,!0]],"textures/blocks/redstone_dust_line.png"],[[["textures/entity/pig/pig.png"],["textures/entity/saddle.png"]],"textures/entity/pig/pig_saddle.png"],[[["textures/items/potion_overlay.png",[88,184,255]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash.png"],[[["textures/items/potion_overlay.png",[58,130,255]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_absorption.png"],[[["textures/items/potion_overlay.png",[50,50,56]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_blindness.png"],[[["textures/items/potion_overlay.png",[134,46,118]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_confusion.png"],[[["textures/items/potion_overlay.png",[232,58,56]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_damageBoost.png"],[[["textures/items/potion_overlay.png",[118,104,36]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_digSlowdown.png"],[[["textures/items/potion_overlay.png",[255,255,106]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_digSpeed.png"],[[["textures/items/potion_overlay.png",[255,255,184]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_fireResistance.png"],[[["textures/items/potion_overlay.png",[212,32,28]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_harm.png"],[[["textures/items/potion_overlay.png",[255,116,112]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_heal.png"],[[["textures/items/potion_overlay.png",[255,198,56]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_healthBoost.png"],[[["textures/items/potion_overlay.png",[140,186,132]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_hunger.png"],[[["textures/items/potion_overlay.png",[202,208,232]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_invisibility.png"],[[["textures/items/potion_overlay.png",[54,255,120]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_jump.png"],[[["textures/items/potion_overlay.png",[54,255,120]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_levitation.png"],[[["textures/items/potion_overlay.png",[142,172,204]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_moveSlowdown.png"],[[["textures/items/potion_overlay.png",[196,255,255]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_moveSpeed.png"],[[["textures/items/potion_overlay.png",[50,50,255]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_nightVision.png"],[[["textures/items/potion_overlay.png",[124,232,78]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_poison.png"],[[["textures/items/potion_overlay.png",[255,146,255]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_regeneration.png"],[[["textures/items/potion_overlay.png",[242,110,92]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_resistance.png"],[[["textures/items/potion_overlay.png",[255,58,56]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_saturation.png"],[[["textures/items/potion_overlay.png",[255,255,255]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_slowFall.png"],[[["textures/items/potion_overlay.png",[186,144,156]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_turtleMaster.png"],[[["textures/items/potion_overlay.png",[72,130,242]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_waterBreathing.png"],[[["textures/items/potion_overlay.png",[114,122,114]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_weakness.png"],[[["textures/items/potion_overlay.png",[84,66,62]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_wither.png"],[[["textures/items/spawn_egg.png",[65,53,41]],["textures/items/spawn_egg_overlay.png",[13,13,13]]],"textures/items/egg_bat.png"],[[["textures/items/spawn_egg.png",[211,153,1]],["textures/items/spawn_egg_overlay.png",[226,220,112]]],"textures/items/egg_blaze.png"],[[["textures/items/spawn_egg.png",[239,200,142]],["textures/items/spawn_egg_overlay.png",[135,101,74]]],"textures/items/egg_cat.png"],[[["textures/items/spawn_egg.png",[10,57,67]],["textures/items/spawn_egg_overlay.png",[149,12,12]]],"textures/items/egg_cave_spider.png"],[[["textures/items/spawn_egg.png",[138,138,138]],["textures/items/spawn_egg_overlay.png",[226,0,0]]],"textures/items/egg_chicken.png"],[[["textures/items/spawn_egg.png",[205,90,18]],["textures/items/spawn_egg_overlay.png",[226,221,212]]],"textures/items/egg_clownfish.png"],[[["textures/items/spawn_egg.png",[166,143,91]],["textures/items/spawn_egg_overlay.png",[203,174,123]]],"textures/items/egg_cod.png"],[[["textures/items/spawn_egg.png",[58,46,33]],["textures/items/spawn_egg_overlay.png",[143,143,143]]],"textures/items/egg_cow.png"],[[["textures/items/spawn_egg.png",[11,143,9]],["textures/items/spawn_egg_overlay.png",[0,0,0]]],"textures/items/egg_creeper.png"],[[["textures/items/spawn_egg.png",[29,51,66]],["textures/items/spawn_egg_overlay.png",[221,221,221]]],"textures/items/egg_dolphin.png"],[[["textures/items/spawn_egg.png",[71,59,49]],["textures/items/spawn_egg_overlay.png",[119,104,90]]],"textures/items/egg_donkey.png"],[[["textures/items/spawn_egg.png",[123,207,185]],["textures/items/spawn_egg_overlay.png",[107,138,90]]],"textures/items/egg_drowned.png"],[[["textures/items/spawn_egg.png",[177,175,160]],["textures/items/spawn_egg_overlay.png",[103,105,130]]],"textures/items/egg_elderguardian.png"],[[["textures/items/spawn_egg.png",[19,19,19]],["textures/items/spawn_egg_overlay.png",[19,19,19]]],"textures/items/egg_enderman.png"],[[["textures/items/spawn_egg.png",[19,19,19]],["textures/items/spawn_egg_overlay.png",[97,97,97]]],"textures/items/egg_endermite.png"],[[["textures/items/spawn_egg.png",[128,133,133]],["textures/items/spawn_egg_overlay.png",[27,25,23]]],"textures/items/egg_evoker.png"],[[["textures/items/spawn_egg.png",[166,143,91]],["textures/items/spawn_egg_overlay.png",[203,174,123]]],"textures/items/egg_fish.png"],[[["textures/items/spawn_egg.png",[214,214,214]],["textures/items/spawn_egg_overlay.png",[167,167,167]]],"textures/items/egg_ghast.png"],[[["textures/items/spawn_egg.png",[77,112,98]],["textures/items/spawn_egg_overlay.png",[214,111,43]]],"textures/items/egg_guardian.png"],[[["textures/items/spawn_egg.png",[165,136,107]],["textures/items/spawn_egg_overlay.png",[211,203,0]]],"textures/items/egg_horse.png"],[[["textures/items/spawn_egg.png",[102,99,83]],["textures/items/spawn_egg_overlay.png",[197,191,127]]],"textures/items/egg_husk.png"],[[["textures/items/spawn_egg.png",[45,0,0]],["textures/items/spawn_egg_overlay.png",[223,223,0]]],"textures/items/egg_lava_slime.png"],[[["textures/items/spawn_egg.png",[165,136,107]],["textures/items/spawn_egg_overlay.png",[136,84,57]]],"textures/items/egg_llama.png"],[[["textures/items/spawn_egg.png"],["textures/items/spawn_egg_overlay.png"]],"textures/items/egg_mask.png"],[[["textures/items/spawn_egg.png",[23,2,0]],["textures/items/spawn_egg_overlay.png",[72,45,26]]],"textures/items/egg_mule.png"],[[["textures/items/spawn_egg.png",[137,13,14]],["textures/items/spawn_egg_overlay.png",[162,162,162]]],"textures/items/egg_mushroomcow.png"],[[["textures/items/spawn_egg.png"],["textures/items/spawn_egg_overlay.png"]],"textures/items/egg_null.png"],[[["textures/items/spawn_egg.png",[205,191,107]],["textures/items/spawn_egg_overlay.png",[76,60,46]]],"textures/items/egg_ocelot.png"],[[["textures/items/spawn_egg.png",[217,217,215]],["textures/items/spawn_egg_overlay.png",[19,19,25]]],"textures/items/egg_panda.png"],[[["textures/items/spawn_egg.png",[11,143,9]],["textures/items/spawn_egg_overlay.png",[226,0,0]]],"textures/items/egg_parrot.png"],[[["textures/items/spawn_egg.png",[58,70,119]],["textures/items/spawn_egg_overlay.png",[121,226,0]]],"textures/items/egg_phantom.png"],[[["textures/items/spawn_egg.png",[206,142,139]],["textures/items/spawn_egg_overlay.png",[194,88,84]]],"textures/items/egg_pig.png"],[[["textures/items/spawn_egg.png",[201,126,126]],["textures/items/spawn_egg_overlay.png",[67,100,36]]],"textures/items/egg_pigzombie.png"],[[["textures/items/spawn_egg.png",[208,208,208]],["textures/items/spawn_egg_overlay.png",[132,132,128]]],"textures/items/egg_polarbear.png"],[[["textures/items/spawn_egg.png",[211,153,1]],["textures/items/spawn_egg_overlay.png",[49,173,214]]],"textures/items/egg_pufferfish.png"],[[["textures/items/spawn_egg.png",[131,82,55]],["textures/items/spawn_egg_overlay.png",[102,64,43]]],"textures/items/egg_rabbit.png"],[[["textures/items/spawn_egg.png",[137,13,14]],["textures/items/spawn_egg_overlay.png",[12,117,103]]],"textures/items/egg_salmon.png"],[[["textures/items/spawn_egg.png",[198,198,198]],["textures/items/spawn_egg_overlay.png",[226,160,160]]],"textures/items/egg_sheep.png"],[[["textures/items/spawn_egg.png",[127,88,127]],["textures/items/spawn_egg_overlay.png",[68,50,73]]],"textures/items/egg_shulker.png"],[[["textures/items/spawn_egg.png",[94,94,94]],["textures/items/spawn_egg_overlay.png",[43,43,43]]],"textures/items/egg_silverfish.png"],[[["textures/items/spawn_egg.png",[166,166,166]],["textures/items/spawn_egg_overlay.png",[65,65,65]]],"textures/items/egg_skeleton.png"],[[["textures/items/spawn_egg.png",[89,89,89]],["textures/items/spawn_egg_overlay.png",[203,203,191]]],"textures/items/egg_skeletonhorse.png"],[[["textures/items/spawn_egg.png",[70,137,53]],["textures/items/spawn_egg_overlay.png",[112,169,97]]],"textures/items/egg_slime.png"],[[["textures/items/spawn_egg.png",[45,39,33]],["textures/items/spawn_egg_overlay.png",[149,12,12]]],"textures/items/egg_spider.png"],[[["textures/items/spawn_egg.png",[29,51,66]],["textures/items/spawn_egg_overlay.png",[99,121,136]]],"textures/items/egg_squid.png"],[[["textures/items/spawn_egg.png",[82,100,101]],["textures/items/spawn_egg_overlay.png",[193,206,205]]],"textures/items/egg_stray.png"],[[["textures/items/spawn_egg.png",[198,198,198]],["textures/items/spawn_egg_overlay.png",[0,155,155]]],"textures/items/egg_turtle.png"],[[["textures/items/spawn_egg.png",[105,124,141]],["textures/items/spawn_egg_overlay.png",[206,210,214]]],"textures/items/egg_vex.png"],[[["textures/items/spawn_egg.png",[74,52,44]],["textures/items/spawn_egg_overlay.png",[167,123,101]]],"textures/items/egg_villager.png"],[[["textures/items/spawn_egg.png",[128,133,133]],["textures/items/spawn_egg_overlay.png",[35,83,86]]],"textures/items/egg_vindicator.png"],[[["textures/items/spawn_egg.png",[55,84,130]],["textures/items/spawn_egg_overlay.png",[204,142,41]]],"textures/items/egg_wanderingtrader.png"],[[["textures/items/spawn_egg.png",[45,0,0]],["textures/items/spawn_egg_overlay.png",[72,142,55]]],"textures/items/egg_witch.png"],[[["textures/items/spawn_egg.png",[17,17,17]],["textures/items/spawn_egg_overlay.png",[63,68,68]]],"textures/items/egg_wither.png"],[[["textures/items/spawn_egg.png",[185,181,181]],["textures/items/spawn_egg_overlay.png",[183,155,133]]],"textures/items/egg_wolf.png"],[[["textures/items/spawn_egg.png",[0,150,150]],["textures/items/spawn_egg_overlay.png",[107,138,90]]],"textures/items/egg_zombie.png"],[[["textures/items/spawn_egg.png",[36,77,47]],["textures/items/spawn_egg_overlay.png",[117,184,113]]],"textures/items/egg_zombiehorse.png"],[[["textures/items/spawn_egg.png",[74,52,44]],["textures/items/spawn_egg_overlay.png",[107,138,90]]],"textures/items/egg_zombievillager.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png"]],"textures/items/tipped_arrow.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[214,144,54]]],"textures/items/tipped_arrow_fireres.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[65,10,9]]],"textures/items/tipped_arrow_harm.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[232,34,33]]],"textures/items/tipped_arrow_healing.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[123,127,141]]],"textures/items/tipped_arrow_invisibility.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[33,247,74]]],"textures/items/tipped_arrow_leaping.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[49,148,0]]],"textures/items/tipped_arrow_luck.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[30,30,156]]],"textures/items/tipped_arrow_nightvision.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[74,138,46]]],"textures/items/tipped_arrow_poison.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[192,86,161]]],"textures/items/tipped_arrow_regen.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[87,105,125]]],"textures/items/tipped_arrow_slow.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[247,232,202]]],"textures/items/tipped_arrow_slowfalling.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[142,35,34]]],"textures/items/tipped_arrow_strength.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[116,164,186]]],"textures/items/tipped_arrow_swift.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[113,88,96]]],"textures/items/tipped_arrow_turtlemaster.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[45,79,148]]],"textures/items/tipped_arrow_waterbreathing.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[70,75,70]]],"textures/items/tipped_arrow_weakness.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[50,39,36]]],"textures/items/tipped_arrow_wither.png"]];for(const e of t)yield e}};var He=class extends p{async convert(){for await(const[t,e]of this.getData()){const n=b.fromPath(t,this.path),r=b.toPath(e,n,this.path);h.a.existsSync(n)&&(b.log(`Copy ${t} to ${e}`),await h.a.copy(n,r))}return[]}async*getData(){const t=[["textures/entity/cat/redtabby.png","./red.png"],["textures/entity/cat/siamesecat.png","./siamese.png"],["textures/entity/cat/tuxedo.png","./blackcat.png"],["textures/blocks/command_block_back_mipmap.png","./command_block.png"],["textures/blocks/fire_0.png","textures/flame_atlas.png"],["textures/blocks/kelp_a.tga","./kelp_b.tga"],["textures/blocks/kelp_a.tga","./kelp_c.tga"],["textures/blocks/kelp_a.tga","./kelp_d.tga"],["textures/blocks/kelp_top.tga","./kelp_top_bulb.tga"],["textures/blocks/lever.png","textures/items/lever.png"],["textures/entity/llama/llama_creamy.png","./llama.png"],["textures/items/skull_banner_pattern.png","./banner_pattern.png"],["textures/ui/sign.png","textures/gui/sign.png"],["textures/entity/creeper/creeper.png","textures/entity/skulls/creeper.png"],["textures/entity/skeleton/skeleton.png","textures/entity/skulls/skeleton.png"],["textures/entity/skeleton/wither_skeleton.png","textures/entity/skulls/wither_skeleton.png"],["textures/entity/zombie/zombie.png","textures/entity/skulls/zombie.png"],["textures/blocks/brick.png","textures/ui/icon_recipe_construction.png"],["textures/blocks/grass_side_carried.png","textures/ui/icon_recipe_nature.png"],["textures/items/bed_red.png","textures/ui/icon_recipe_item.png"],["textures/items/diamond_sword.png","textures/ui/icon_recipe_equipment.png"],["bedrock_textures","./textures"]];for(const e of t)yield e}};var We=class extends p{async convert(){const t=[];for await(const[e,n,r]of this.getData()){const i=b.fromPath(e,this.path),o=b.toPath(n,i,this.path),a=b.toPath(r,i,this.path);if(h.a.existsSync(i)&&h.a.existsSync(o)){b.log("Convert drowned");const t=await Me.read(i),e=await Me.read(o),n=t.getWidth()/64;t.composite(e.clone().crop(0,0,32*n,16*n),32*n,0),t.composite(e.clone().crop(0,16*n,64*n,16*n),0,32*n),t.composite(e.clone().crop(16*n,48*n,16*n,16*n),0,48*n),t.composite(e.clone().crop(32*n,48*n,16*n,16*n),48*n,48*n),await t.writeAsync(a)}t.push(n)}return[[v,t]]}async*getData(){yield["textures/entity/zombie/drowned.png","textures/entity/zombie/drowned_outer_layer.png","./drowned.png"]}};var qe=class extends p{async convert(){for await(const[t,e]of this.getData()){const n=b.fromPath(t,this.path),r=b.toPath(e,n,this.path);if(h.a.existsSync(n)){b.log("Convert fishhook");const t=await Me.read(n),e=t.getWidth()/8,i=await Me.create(24*e,3*e);i.composite(t.clone().crop(3*e,e,3*e,e),0,0),i.composite(t.clone().crop(3*e,e,e,e),0,e),i.composite(t.clone().crop(2*e,6*e,e,e),e,e),i.composite(t.clone().crop(3*e,e,e,e),2*e,e),i.composite(t.clone().crop(3*e,e,3*e,e),0,2*e),i.composite(t.clone().crop(3*e,e,3*e,e),3*e,0),i.composite(t.clone().crop(3*e,e,e,e),3*e,e),i.composite(t.clone().crop(2*e,6*e,e,e),4*e,e),i.composite(t.clone().crop(3*e,e,e,e),5*e,e),i.composite(t.clone().crop(3*e,e,3*e,e),3*e,2*e),i.composite(t.clone().crop(3*e,e,3*e,3*e),6*e,0),i.composite(t.clone().crop(3*e,e,3*e,3*e),9*e,0),i.composite(t.clone().crop(3*e,e,3*e,3*e),12*e,0),i.composite(t.clone().crop(3*e,e,3*e,3*e),15*e,0),i.composite(t.clone().crop(2*e,5*e,3*e,3*e),18*e,0),i.composite(t.clone().crop(2*e,6*e,e,e),22*e,2*e),await i.writeAsync(r)}}return[]}async*getData(){yield["textures/entity/fishhook.png","./fishhook.png"]}};var Ye=class extends p{async convert(){for await(const[t,e]of this.getData()){const n=b.fromPath(t,this.path),r=b.toPath(e,n,this.path);if(h.a.existsSync(n)){b.log(`Convert horse ${e}`);const t=await Me.read(n),i=t.getWidth()/64,o=await Me.create(2*t.getWidth(),2*t.getWidth());o.composite(t.clone().crop(26*i,21*i,22*i,11*i),0,34*i),o.composite(t.clone().crop(26*i,21*i,22*i,11*i),0,47*i),o.composite(t.clone().crop(29*i,5*i,6*i,4*i),74*i,0),o.composite(t.clone().crop(29*i,5*i,6*i,4*i),74*i,4*i),o.composite(t.clone().crop(29*i,5*i,6*i,4*i),74*i,13*i),o.composite(t.clone().crop(31*i,5*i,i,i),81*i,26*i),o.composite(t.clone().crop(31*i,5*i,i,i),87*i,26*i),o.composite(t.clone().crop(31*i,5*i,i,i),101*i,26*i),o.composite(t.clone().crop(31*i,5*i,i,i),107*i,26*i),o.composite(t.clone().crop(35*i,0,10*i,9*i),88*i,0),o.composite(t.clone().crop(35*i,0,10*i,9*i),98*i,0),o.composite(t.clone().crop(26*i,9*i,9*i,2*i),82*i,9*i),o.composite(t.clone().crop(26*i,9*i,7*i,2*i),91*i,9*i),o.composite(t.clone().crop(26*i,9*i,6*i,2*i),108*i,9*i),o.composite(t.clone().crop(26*i,9*i,8*i,i),80*i,8*i),o.composite(t.clone().crop(26*i,9*i,8*i,i),108*i,8*i),o.composite(t.clone().crop(26*i,9*i,9*i,i),80*i,11*i),o.composite(t.clone().crop(26*i,9*i,9*i,i),89*i,11*i),o.composite(t.clone().crop(26*i,9*i,2*i,i),98*i,11*i),o.composite(t.clone().crop(26*i,9*i,9*i,i),106*i,11*i),o.composite(t.clone().crop(26*i,9*i,i,i),115*i,11*i),o.composite(t.clone().crop(26*i,9*i,9*i,i),92*i,13*i),o.composite(t.clone().crop(26*i,9*i,i,i),101*i,13*i),o.composite(t.clone().crop(26*i,9*i,9*i,i),92*i,19*i),o.composite(t.clone().crop(26*i,9*i,i,i),101*i,19*i),o.composite(t.clone().crop(26*i,9*i,2*i,i),71*i,0),o.composite(t.clone().crop(35*i,0,4*i,6*i),70*i,i),o.composite(t.clone().crop(26*i,9*i,2*i,i),81*i,0),o.composite(t.clone().crop(35*i,0,4*i,6*i),80*i,i),o.composite(t.clone().crop(26*i,9*i,3*i,i),60*i,22*i),o.composite(t.clone().crop(26*i,9*i,8*i,i),63*i,23*i),o.composite(t.clone().crop(26*i,9*i,3*i,i),71*i,22*i),o.composite(t.clone().crop(26*i,9*i,2*i,i),74*i,21*i),o.composite(t.clone().crop(26*i,9*i,3*i,i),60*i,27*i),o.composite(t.clone().crop(26*i,9*i,8*i,i),63*i,28*i),o.composite(t.clone().crop(26*i,9*i,3*i,i),71*i,27*i),o.composite(t.clone().crop(26*i,9*i,2*i,i),74*i,26*i),o.composite(t.clone().crop(26*i,9*i,i,2*i),81*i,24*i),o.composite(t.clone().crop(26*i,9*i,i,2*i),81*i,27*i),o.composite(t.clone().crop(26*i,9*i,5*i,i),82*i,26*i),o.composite(t.clone().crop(26*i,9*i,i,2*i),87*i,24*i),o.composite(t.clone().crop(26*i,9*i,i,2*i),87*i,27*i),o.composite(t.clone().crop(26*i,9*i,i,2*i),101*i,24*i),o.composite(t.clone().crop(26*i,9*i,i,2*i),101*i,27*i),o.composite(t.clone().crop(26*i,9*i,5*i,i),102*i,26*i),o.composite(t.clone().crop(26*i,9*i,i,2*i),107*i,24*i),o.composite(t.clone().crop(26*i,9*i,i,2*i),107*i,27*i),o.composite(t.clone().crop(0,54*i,i,10*i),0,58*i),o.composite(t.clone().crop(0,54*i,i,10*i),i,58*i),o.composite(t.clone().crop(0,54*i,64*i,10*i),2*i,58*i),o.composite(t.clone().crop(62*i,54*i,i,10*i),66*i,58*i),o.composite(t.clone().crop(62*i,54*i,i,10*i),67*i,58*i),o.composite(t.clone().crop(22*i,32*i,20*i,i),24*i,34*i),o.composite(t.clone().crop(22*i,32*i,20*i,22*i),24*i,35*i),o.composite(t.clone().crop(22*i,53*i,20*i,i),24*i,57*i),o.composite(t.clone().crop(0,35*i,22*i,i),i,12*i),o.composite(t.clone().crop(0,35*i,22*i,i),i,13*i),o.composite(t.clone().crop(0,35*i,22*i,19*i),i,14*i),o.composite(t.clone().crop(15*i,42*i,7*i,i),16*i,20*i),o.composite(t.clone().crop(0,42*i,7*i,i),i,20*i),o.composite(t.clone().crop(0,53*i,22*i,i),i,33*i),o.composite(o.clone().crop(i,20*i,i,14*i),0,20*i),o.composite(o.clone().crop(22*i,20*i,i,14*i),23*i,20*i),o.composite(t.clone().crop(48*i,25*i,14*i,8*i),44*i,33*i),o.composite(t.clone().crop(48*i,25*i,14*i,8*i),60*i,33*i),o.composite(t.clone().crop(48*i,25*i,16*i,8*i),79*i,34*i),o.composite(t.clone().crop(48*i,32*i,16*i,i),79*i,42*i),o.composite(o.clone().crop(79*i,34*i,i,9*i),78*i,34*i),o.composite(o.clone().crop(94*i,34*i,i,9*i),95*i,34*i),o.composite(o.clone().crop(78*i,34*i,18*i,9*i),96*i,34*i),o.composite(t.clone().crop(52*i,21*i,8*i,4*i),48*i,51*i),o.composite(t.clone().crop(52*i,21*i,8*i,4*i),64*i,51*i),o.composite(t.clone().crop(52*i,21*i,8*i,4*i),82*i,51*i),o.composite(t.clone().crop(52*i,21*i,8*i,4*i),100*i,51*i),o.composite(t.clone().crop(48*i,33*i,16*i,3*i),44*i,55*i),o.composite(t.clone().crop(48*i,33*i,16*i,3*i),60*i,55*i),o.composite(t.clone().crop(48*i,33*i,16*i,3*i),78*i,55*i),o.composite(t.clone().crop(48*i,33*i,16*i,3*i),96*i,55*i),o.composite(t.clone().crop(0,12*i,6*i,8*i),0,12*i),o.composite(t.clone().crop(7*i,13*i,10*i,8*i),7*i,0),o.composite(t.clone().crop(0,20*i,9*i,5*i),0,7*i),o.composite(t.clone().crop(10*i,20*i,14*i,5*i),9*i,7*i),o.composite(t.clone().crop(25*i,20*i,i,5*i),23*i,7*i),o.composite(t.clone().crop(0,25*i,18*i,i),25*i,18*i),o.composite(t.clone().crop(0,25*i,18*i,8*i),25*i,19*i),o.composite(t.clone().crop(0,25*i,i,8*i),24*i,19*i),o.composite(t.clone().crop(0,25*i,i,8*i),43*i,19*i),o.composite(t.clone().crop(0,25*i,18*i,5*i),24*i,27*i),o.composite(t.clone().crop(0,33*i,18*i,2*i),24*i,32*i),o.composite(t.clone().crop(48*i,25*i,6*i,4*i),48*i,29*i),o.composite(t.clone().crop(48*i,25*i,6*i,4*i),64*i,29*i),o.composite(o.clone().crop(78*i,34*i,8*i,5*i),83*i,29*i),o.composite(o.clone().crop(78*i,34*i,8*i,5*i),101*i,29*i),o.composite(t.clone().crop(48*i,25*i,6*i,3*i),47*i,41*i),o.composite(t.clone().crop(48*i,25*i,6*i,3*i),63*i,41*i),o.composite(t.clone().crop(48*i,25*i,6*i,3*i),81*i,43*i),o.composite(t.clone().crop(48*i,25*i,6*i,3*i),99*i,43*i),o.composite(t.clone().crop(48*i,25*i,6*i,5*i),44*i,44*i),o.composite(t.clone().crop(48*i,25*i,6*i,5*i),50*i,44*i),o.composite(t.clone().crop(48*i,25*i,6*i,5*i),60*i,44*i),o.composite(t.clone().crop(48*i,25*i,6*i,5*i),66*i,44*i),o.composite(t.clone().crop(48*i,25*i,6*i,5*i),78*i,46*i),o.composite(t.clone().crop(48*i,25*i,6*i,5*i),84*i,46*i),o.composite(t.clone().crop(48*i,25*i,6*i,5*i),96*i,46*i),o.composite(t.clone().crop(48*i,25*i,6*i,5*i),102*i,46*i),o.composite(t.clone().crop(48*i,25*i,4*i,3*i),47*i,0),o.composite(o.clone().crop(78*i,34*i,i,2*i),44*i,3*i),o.composite(o.clone().crop(78*i,34*i,8*i,2*i),45*i,3*i),o.composite(o.clone().crop(85*i,34*i,i,2*i),53*i,3*i),o.composite(t.clone().crop(42*i,40*i,6*i,7*i),45*i,7*i),o.composite(t.clone().crop(42*i,40*i,10*i,4*i),38*i,14*i),o.composite(t.clone().crop(42*i,40*i,10*i,4*i),48*i,14*i),o.composite(t.clone().crop(42*i,40*i,6*i,5*i),31*i,5*i),o.composite(t.clone().crop(42*i,40*i,13*i,4*i),26*i,10*i),o.composite(t.clone().crop(43*i,52*i,2*i,2*i),39*i,11*i),o.composite(t.clone().crop(43*i,52*i,2*i,2*i).flip(!0,!1),24*i,11*i),o.composite(t.clone().crop(43*i,52*i,2*i,2*i).flip(!0,!1).flip(!1,!0),31*i,3*i),o.composite(t.clone().crop(43*i,52*i,2*i,2*i).flip(!0,!1).flip(!1,!0),34*i,3*i),o.composite(t.clone().crop(19*i,16*i,6*i,4*i),0,0),await o.writeAsync(r)}}return[]}async*getData(){const t=[["textures/entity/horse2/donkey.png","textures/entity/horse/donkey.png"],["textures/entity/horse2/horse_black.png","textures/entity/horse/horse_black.png"],["textures/entity/horse2/horse_brown.png","textures/entity/horse/horse_brown.png"],["textures/entity/horse2/horse_chestnut.png","textures/entity/horse/horse_chestnut.png"],["textures/entity/horse2/horse_creamy.png","textures/entity/horse/horse_creamy.png"],["textures/entity/horse2/horse_darkbrown.png","textures/entity/horse/horse_darkbrown.png"],["textures/entity/horse2/horse_gray.png","textures/entity/horse/horse_gray.png"],["textures/entity/horse2/horse_skeleton.png","textures/entity/horse/horse_skeleton.png"],["textures/entity/horse2/horse_white.png","textures/entity/horse/horse_white.png"],["textures/entity/horse2/horse_zombie.png","textures/entity/horse/horse_zombie.png"],["textures/entity/horse2/mule.png","textures/entity/horse/mule.png"],["textures/entity/horse2/horse_markings_blackdots.png","textures/entity/horse/horse_markings_blackdots.png"],["textures/entity/horse2/horse_markings_white.png","textures/entity/horse/horse_markings_white.png"],["textures/entity/horse2/horse_markings_whitedots.png","textures/entity/horse/horse_markings_whitedots.png"],["textures/entity/horse2/horse_markings_whitefield.png","textures/entity/horse/horse_markings_whitefield.png"],["textures/entity/horse2/armor/horse_armor_diamond.png","textures/entity/horse/armor/horse_armor_diamond.png"],["textures/entity/horse2/armor/horse_armor_gold.png","textures/entity/horse/armor/horse_armor_gold.png"],["textures/entity/horse2/armor/horse_armor_iron.png","textures/entity/horse/armor/horse_armor_iron.png"],["textures/entity/horse2/armor/horse_armor_leather.png","textures/entity/horse/armor/horse_armor_leather.png"]];for(const e of t)yield e}},Ve=n(64),Ze=n.n(Ve);var $e=class extends p{async convert(){const t=[];for await(const[e,n,r,i]of this.getData()){b.log(`Create metadata ${n}`);const o=b.fromPath(e,this.path),a=b.toPath(n,o,this.path),s=b.toPath(r,o,this.path);let c="";h.a.existsSync(s)?(c=await h.a.readFile(s,"utf8"),t.push(r)):c=Ze()();const l=b.toPath(i,o,this.path);let u="";h.a.existsSync(l)?(u=await h.a.readFile(l,"utf8"),t.push(i)):u=Ze()();const p=JSON.parse(await h.a.readFile(o,"utf8")),f={format_version:1,header:{description:p.pack.description,name:await this.input.name(),platform_locked:!1,uuid:c,version:[0,0,1]},modules:[{description:p.pack.description,type:"resources",uuid:u,version:[0,0,1]}]};await h.a.writeFile(a,JSON.stringify(f,null,2),"utf8"),t.push(e)}return[[v,t]]}async*getData(){yield["pack.mcmeta","./manifest.json","bedrock_uuid_header","bedrock_uuid_module"]}};var Xe=class extends p{async convert(){for await(const[t,e]of this.getData()){const n=b.fromPath(t,this.path),r=b.toPath(e,n,this.path);if(h.a.existsSync(n)){b.log(`Create opaque ${e}`);const t=await Me.read(n),i=await Me.create(t.getWidth(),t.getHeight(),"#000000");i.composite(t,0,0),await i.writeAsync(r)}}return[]}async*getData(){const t=[["textures/blocks/leaves_acacia.png","./leaves_acacia_opaque.png"],["textures/blocks/leaves_big_oak.png","./leaves_big_oak_opaque.png"],["textures/blocks/leaves_birch.png","./leaves_birch_opaque.png"],["textures/blocks/leaves_jungle.png","./leaves_jungle_opaque.png"],["textures/blocks/leaves_oak.png","./leaves_oak_opaque.png"],["textures/blocks/leaves_spruce.png","./leaves_spruce_opaque.png"]];for(const e of t)yield e}};var Qe=class extends p{async convert(){const t=[];for await(const[e,n,r,i,o]of this.getData()){const a=b.fromPath(e,this.path),s=b.toPath(n,a,this.path),c=b.toPath(r,a,this.path);if(h.a.existsSync(a)&&h.a.existsSync(s)){b.log(`Create translated overlay ${r}`);const t=await Me.read(a),e=await Me.read(s);t.scan(0,0,t.getWidth(),t.getHeight(),(n,r,o)=>{(i?255===e.bitmap.data[o+3]:0===t.bitmap.data[o+3])&&(t.bitmap.data[o]=e.bitmap.data[o],t.bitmap.data[o+1]=e.bitmap.data[o+1],t.bitmap.data[o+2]=e.bitmap.data[o+2],t.bitmap.data[o+3]=Math.min(1,e.bitmap.data[o+3]))}),await t.writeAsync(c)}o||t.push(b.toPath(n,e,""))}return[[v,t]]}async*getData(){const t=[["textures/entity/cat/graytabby_tame.png","./allblackcat.png","./allblackcat_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./britishshorthair.png","./britishshorthair_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./calico.png","./calico_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./jellie.png","./jellie_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./ocelot.png","./ocelot_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./persian.png","./persian_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./ragdoll.png","./ragdoll_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./redtabby.png","./redtabby_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./siamesecat.png","./siamesecat_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./tabby.png","./tabby_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./tuxedo.png","./tuxedo_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./white.png","./white_tame.png",!1,!0],["textures/entity/enderman/enderman.png","./enderman_eyes.png","./enderman.png",!0],["textures/items/fireworks_charge.png","./firework_star.png","./fireworks_charge.png",!1],["textures/blocks/grass_side.png","./grass_side_carried.png","./grass_side.png",!1,!0],["textures/items/leather_boots.png","./leather_boots_overlay.png","./leather_boots.png",!0],["textures/items/leather_chestplate.png","./leather_chestplate_overlay.png","./leather_chestplate.png",!0],["textures/items/leather_helmet.png","./leather_helmet_overlay.png","./leather_helmet.png",!0],["textures/items/leather_leggings.png","./leather_leggings_overlay.png","./leather_leggings.png",!0],["textures/models/armor/leather_1.png","./leather_1_overlay.png","./leather_1.png",!0],["textures/models/armor/leather_2.png","./leather_2_overlay.png","./leather_2.png",!0],["textures/entity/phantom.png","./phantom_eyes.png","./phantom.png",!0],["textures/entity/spider/cave_spider.png","textures/entity/spider_eyes.png","./cave_spider.png",!0,!0],["textures/entity/spider/spider.png","textures/entity/spider_eyes.png","./spider.png",!0],["textures/entity/wolf/wolf_collar.png","./wolf_tame.png","./wolf_tame.png",!1,!0]];for(const e of t)yield e}};var Je=class extends p{async convert(){for await(const[t,e,n,r]of this.getData()){const i=b.fromPath(t,this.path),o=b.fromPath(e,this.path),a=b.fromPath(n,this.path),s=b.toPath(r,"",this.path);if(h.a.existsSync(i)&&h.a.existsSync(o)&&h.a.existsSync(a)){b.log(`Create piston arm ${r}`);const t=await Me.read(i),e=await Me.read(o),n=await Me.read(a),c=t.getWidth()/16,l=await Me.create(128*c,32*c);l.composite(t,16*c,0),l.composite(e,32*c,0),n.crop(0,0,n.getWidth(),4*c),l.composite(n,0,16*c),l.composite(n,16*c,16*c),l.composite(n,32*c,16*c),l.composite(n,48*c,16*c);const u=n.clone().rotate(-90).crop(1,0,n.getHeight(),8*c);l.composite(u,64*c,4*c),l.composite(u,68*c,4*c),l.composite(u,72*c,4*c),l.composite(u,76*c,4*c);const p=u.clone().crop(0,u.getHeight()-c,u.getWidth(),c),f=n.clone().crop(7*c,0,c,n.getHeight()),h=u.clone().crop(0,2*c,u.getWidth(),4*c);l.composite(p,70*c,18*c),l.composite(p,74*c,18*c),l.composite(p,78*c,18*c),l.composite(f,70*c,19*c),l.composite(f,75*c,19*c),l.composite(f,76*c,19*c),l.composite(f,81*c,19*c),l.composite(p,70*c,23*c),l.composite(p,74*c,23*c),l.composite(p,78*c,23*c),l.composite(p,64*c,24*c),l.composite(p,68*c,24*c),l.composite(p,72*c,24*c),l.composite(p,76*c,24*c),l.composite(p,80*c,24*c),l.composite(p,84*c,24*c),l.composite(f,64*c,25*c),l.composite(f,64*c,29*c),l.composite(f,69*c,25*c),l.composite(f,69*c,29*c),l.composite(f,70*c,25*c),l.composite(f,70*c,29*c),l.composite(f,75*c,25*c),l.composite(f,75*c,29*c),l.composite(f,76*c,25*c),l.composite(f,76*c,29*c),l.composite(f,81*c,25*c),l.composite(f,81*c,29*c),l.composite(f,82*c,25*c),l.composite(f,82*c,29*c),l.composite(f,87*c,25*c),l.composite(f,87*c,29*c),l.composite(h,65*c,25*c),l.composite(h,65*c,29*c),l.composite(h,71*c,25*c),l.composite(h,71*c,29*c),l.composite(h,77*c,25*c),l.composite(h,77*c,29*c),l.composite(h,83*c,25*c),l.composite(h,83*c,29*c),await l.writeAsync(s)}}return[]}async*getData(){const t=[["textures/blocks/piston_top_normal.png","textures/blocks/piston_top_normal.png","textures/blocks/piston_side.png","textures/entity/pistonarm/pistonArm.png"],["textures/blocks/piston_top_sticky.png","textures/blocks/piston_top_normal.png","textures/blocks/piston_side.png","textures/entity/pistonarm/pistonArmSticky.png"]];for(const e of t)yield e}};var Ke=class extends p{async convert(){for await(const[t,e,n,r,i,o,a,s]of this.getData()){const c=b.fromPath(t,this.path),l=b.toPath(a,c,this.path);if(h.a.existsSync(c)){b.log(`Create placeholder ${a}`);let t=await Me.read(c);const u=t.getWidth()/o;if(t.crop(e*u,n*u,r*u,i*u),!s){const e=Math.max(r,i);t=(await Me.create(e*u,e*u)).composite(t,(e*u-r*u)/2,(e*u-i*u)/2)}await t.writeAsync(l)}}return[]}async*getData(){const t=[["textures/entity/bed/red.png",2,6,14,14,64,"textures/blocks/bed_head_top.png"],["textures/entity/bed/red.png",0,6,6,14,64,"textures/blocks/bed_head_side.png"],["textures/entity/bed/red.png",6,0,14,6,64,"textures/blocks/bed_head_end.png"],["textures/entity/bed/red.png",2,20,14,14,64,"textures/blocks/bed_feet_top.png"],["textures/entity/bed/red.png",22,0,14,6,64,"textures/blocks/bed_feet_end.png"],["textures/entity/bed/red.png",0,20,6,14,64,"textures/blocks/bed_feet_side.png"],["textures/entity/bed/black.png",6,6,16,32,64,"textures/items/bed_black.png"],["textures/entity/bed/blue.png",6,6,16,32,64,"textures/items/bed_blue.png"],["textures/entity/bed/brown.png",6,6,16,32,64,"textures/items/bed_brown.png"],["textures/entity/bed/cyan.png",6,6,16,32,64,"textures/items/bed_cyan.png"],["textures/entity/bed/gray.png",6,6,16,32,64,"textures/items/bed_gray.png"],["textures/entity/bed/green.png",6,6,16,32,64,"textures/items/bed_green.png"],["textures/entity/bed/light_blue.png",6,6,16,32,64,"textures/items/bed_light_blue.png"],["textures/entity/bed/lime.png",6,6,16,32,64,"textures/items/bed_lime.png"],["textures/entity/bed/magenta.png",6,6,16,32,64,"textures/items/bed_magenta.png"],["textures/entity/bed/orange.png",6,6,16,32,64,"textures/items/bed_orange.png"],["textures/entity/bed/pink.png",6,6,16,32,64,"textures/items/bed_pink.png"],["textures/entity/bed/purple.png",6,6,16,32,64,"textures/items/bed_purple.png"],["textures/entity/bed/red.png",6,6,16,32,64,"textures/items/bed_red.png"],["textures/entity/bed/silver.png",6,6,16,32,64,"textures/items/bed_silver.png"],["textures/entity/bed/white.png",6,6,16,32,64,"textures/items/bed_white.png"],["textures/entity/bed/yellow.png",6,6,16,32,64,"textures/items/bed_yellow.png"],["textures/entity/chest/normal.png",14,0,14,14,64,"textures/blocks/chest_top.png"],["textures/entity/chest/ender.png",14,0,14,14,64,"textures/blocks/ender_chest_top.png"],["textures/blocks/chain_command_block_back.png",0,0,16,16,16,"./chain_command_block_back_mipmap.png"],["textures/blocks/chain_command_block_conditional.png",0,0,16,16,16,"./chain_command_block_conditional_mipmap.png"],["textures/blocks/chain_command_block_front.png",0,0,16,16,16,"./chain_command_block_front_mipmap.png"],["textures/blocks/chain_command_block_side.png",0,0,16,16,16,"./chain_command_block_side_mipmap.png"],["textures/blocks/command_block_back.png",0,0,16,16,16,"./command_block_back_mipmap.png"],["textures/blocks/command_block_conditional.png",0,0,16,16,16,"./command_block_conditional_mipmap.png"],["textures/blocks/command_block_front.png",0,0,16,16,16,"./command_block_front_mipmap.png"],["textures/blocks/command_block_side.png",0,0,16,16,16,"./command_block_side_mipmap.png"],["textures/blocks/repeating_command_block_back.png",0,0,16,16,16,"./repeating_command_block_back_mipmap.png"],["textures/blocks/repeating_command_block_conditional.png",0,0,16,16,16,"./repeating_command_block_conditional_mipmap.png"],["textures/blocks/repeating_command_block_front.png",0,0,16,16,16,"./repeating_command_block_front_mipmap.png"],["textures/blocks/repeating_command_block_side.png",0,0,16,16,16,"./repeating_command_block_side_mipmap.png"],["textures/items/compass_atlas.png",0,0,16,16,16,"./compass_item.png"],["textures/items/watch_atlas.png",0,0,16,16,16,"./clock_item.png"],["textures/entity/sign_acacia.png",2,2,24,12,64,"textures/ui/sign_acacia.png",!0],["textures/entity/sign_birch.png",2,2,24,12,64,"textures/ui/sign_birch.png",!0],["textures/entity/sign_darkoak.png",2,2,24,12,64,"textures/ui/sign_darkoak.png",!0],["textures/entity/sign_jungle.png",2,2,24,12,64,"textures/ui/sign_jungle.png",!0],["textures/entity/sign.png",2,2,24,12,64,"textures/ui/sign.png",!0],["textures/entity/sign_spruce.png",2,2,24,12,64,"textures/ui/sign_spruce.png",!0],["textures/blocks/cauldron_water.png",0,0,16,16,16,"./cauldron_water_placeholder.png"],["textures/blocks/fire_0.png",0,0,16,16,16,"./fire_0_placeholder.png"],["textures/blocks/fire_1.png",0,0,16,16,16,"./fire_1_placeholder.png"],["textures/blocks/lava_still.png",0,0,16,16,16,"./lava_placeholder.png"],["textures/blocks/portal.png",0,0,16,16,16,"./portal_placeholder.png"],["textures/blocks/water_still.png",0,0,16,16,16,"./water_placeholder.png"],["textures/entity/pig/pigzombie.png",0,0,64,32,64,"./pigzombie.png",!0],["textures/entity/zombie/husk.png",0,0,64,32,64,"./husk.png",!0],["textures/entity/zombie/zombie.png",0,0,64,32,64,"./zombie.png",!0]];for(const e of t)yield e}},tn=n(128),en=n.n(tn);async function nn(...t){for(const e of t)rn.push(e)}const rn=[[$e,[]],[class extends p{async convert(){for await(const[t,e]of this.getData()){const n=b.fromPath(t,this.path),r=b.toPath(e,n,this.path);h.a.existsSync(n)&&(b.log(`Rename ${t} to ${e}`),h.a.existsSync(g.a.dirname(r))||await h.a.mkdir(g.a.dirname(r)),await h.a.rename(n,r))}return[]}async*getData(){const t=[["pack.png","./pack_icon.png"],["assets/minecraft/textures","textures"],["textures/block","./blocks"],["textures/item","./items"],["textures/blocks/andesite.png","./stone_andesite.png"],["textures/blocks/polished_andesite.png","./stone_andesite_smooth.png"],["textures/blocks/anvil.png","./anvil_base.png"],["textures/blocks/anvil_top.png","./anvil_top_damaged_0.png"],["textures/blocks/chipped_anvil_top.png","./anvil_top_damaged_1.png"],["textures/blocks/damaged_anvil_top.png","./anvil_top_damaged_2.png"],["textures/items/golden_apple.png","./apple_golden.png"],["textures/entity/armorstand/wood.png","textures/entity/armor_stand.png"],["textures/entity/elytra.png","textures/models/armor/elytra.png"],["textures/items/golden_axe.png","./gold_axe.png"],["textures/items/golden_boots.png","./gold_boots.png"],["textures/items/golden_chestplate.png","./gold_chestplate.png"],["textures/items/golden_helmet.png","./gold_helmet.png"],["textures/items/golden_hoe.png","./gold_hoe.png"],["textures/items/golden_horse_armor.png","./gold_horse_armor.png"],["textures/items/golden_leggings.png","./gold_leggings.png"],["textures/items/golden_pickaxe.png","./gold_pickaxe.png"],["textures/items/golden_shovel.png","./gold_shovel.png"],["textures/items/golden_sword.png","./gold_sword.png"],["textures/items/wooden_axe.png","./wood_axe.png"],["textures/items/wooden_hoe.png","./wood_hoe.png"],["textures/items/wooden_pickaxe.png","./wood_pickaxe.png"],["textures/items/wooden_shovel.png","./wood_shovel.png"],["textures/items/wooden_sword.png","./wood_sword.png"],["textures/models/armor/chainmail_layer_1.png","./chain_1.png"],["textures/models/armor/chainmail_layer_2.png","./chain_2.png"],["textures/models/armor/diamond_layer_1.png","./diamond_1.png"],["textures/models/armor/diamond_layer_2.png","./diamond_2.png"],["textures/models/armor/gold_layer_1.png","./gold_1.png"],["textures/models/armor/gold_layer_2.png","./gold_2.png"],["textures/models/armor/iron_layer_1.png","./iron_1.png"],["textures/models/armor/iron_layer_2.png","./iron_2.png"],["textures/models/armor/leather_layer_1.png","./leather_1.png"],["textures/models/armor/leather_layer_1_overlay.png","./leather_1_overlay.png"],["textures/models/armor/leather_layer_2.png","./leather_2.png"],["textures/models/armor/leather_layer_2_overlay.png","./leather_2_overlay.png"],["textures/models/armor/turtle_layer_1.png","./turtle_1.png"],["textures/entity/arrow.png","./arrows.png"],["textures/blocks/bamboo_large_leaves.png","./bamboo_leaf.png"],["textures/blocks/bamboo_small_leaves.png","./bamboo_small_leaf.png"],["textures/blocks/bamboo_stage0.png","./bamboo_sapling.png"],["textures/blocks/bamboo_stalk.png","./bamboo_stem.png"],["textures/items/barrier.png","textures/blocks/barrier.png"],["textures/entity/bear/polarbear.png","textures/entity/polarbear.png"],["textures/entity/bed/light_gray.png","./silver.png"],["textures/blocks/beetroots_stage0.png","./beetroots_stage_0.png"],["textures/blocks/beetroots_stage1.png","./beetroots_stage_1.png"],["textures/blocks/beetroots_stage2.png","./beetroots_stage_2.png"],["textures/blocks/beetroots_stage3.png","./beetroots_stage_3.png"],["textures/entity/bell/bell_body.png","./bell.png"],["textures/items/bell.png","./villagebell.png"],["textures/entity/boat/acacia.png","./boat_acacia.png"],["textures/entity/boat/birch.png","./boat_birch.png"],["textures/entity/boat/dark_oak.png","./boat_darkoak.png"],["textures/entity/boat/jungle.png","./boat_jungle.png"],["textures/entity/boat/oak.png","./boat_oak.png"],["textures/entity/boat/spruce.png","./boat_spruce.png"],["textures/items/acacia_boat.png","./boat_acacia.png"],["textures/items/birch_boat.png","./boat_birch.png"],["textures/items/dark_oak_boat.png","./boat_darkoak.png"],["textures/items/jungle_boat.png","./boat_jungle.png"],["textures/items/oak_boat.png","./boat_oak.png"],["textures/items/spruce_boat.png","./boat_spruce.png"],["textures/items/bone_meal.png","./dye_powder_white.png"],["textures/items/book.png","./book_normal.png"],["textures/items/enchanted_book.png","./book_enchanted.png"],["textures/items/knowledge_book.png","./book_knowledge.png"],["textures/items/writable_book.png","./book_writable.png"],["textures/items/written_book.png","./book_written.png"],["textures/items/bow.png","./bow_standby.png"],["textures/blocks/bricks.png","./brick.png"],["textures/items/bucket.png","./bucket_empty.png"],["textures/items/cod_bucket.png","./bucket_cod.png"],["textures/items/lava_bucket.png","./bucket_lava.png"],["textures/items/milk_bucket.png","./bucket_milk.png"],["textures/items/pufferfish_bucket.png","./bucket_pufferfish.png"],["textures/items/salmon_bucket.png","./bucket_salmon.png"],["textures/items/tropical_fish_bucket.png","./bucket_tropical.png"],["textures/items/water_bucket.png","./bucket_water.png"],["textures/blocks/campfire_fire.png","./campfire.png"],["textures/blocks/carrots_stage0.png","./carrots_stage_0.png"],["textures/blocks/carrots_stage1.png","./carrots_stage_1.png"],["textures/blocks/carrots_stage2.png","./carrots_stage_2.png"],["textures/blocks/carrots_stage3.png","./carrots_stage_3.png"],["textures/items/golden_carrot.png","./carrot_golden.png"],["textures/entity/cat/all_black.png","./allblackcat.png"],["textures/entity/cat/black.png","./tuxedo.png"],["textures/entity/cat/british_shorthair.png","./britishshorthair.png"],["textures/entity/cat/cat_collar.png","./graytabby_tame.png"],["textures/entity/cat/red.png","./redtabby.png"],["textures/entity/cat/siamese.png","./siamesecat.png"],["textures/entity/chest/normal_double.png","./double_normal.png"],["textures/items/popped_chorus_fruit.png","./chorus_fruit_popped.png"],["textures/blocks/mossy_cobblestone.png","./cobblestone_mossy.png"],["textures/blocks/cobweb.png","./web.png"],["textures/blocks/cocoa_stage0.png","./cocoa_stage_0.png"],["textures/blocks/cocoa_stage1.png","./cocoa_stage_1.png"],["textures/blocks/cocoa_stage2.png","./cocoa_stage_2.png"],["textures/items/cocoa_beans.png","./dye_powder_brown.png"],["textures/blocks/comparator.png","./comparator_off.png"],["textures/blocks/composter_compost.png","./compost.png"],["textures/blocks/composter_ready.png","./compost_ready.png"],["textures/blocks/black_concrete.png","./concrete_black.png"],["textures/blocks/blue_concrete.png","./concrete_blue.png"],["textures/blocks/brown_concrete.png","./concrete_brown.png"],["textures/blocks/cyan_concrete.png","./concrete_cyan.png"],["textures/blocks/gray_concrete.png","./concrete_gray.png"],["textures/blocks/green_concrete.png","./concrete_green.png"],["textures/blocks/light_blue_concrete.png","./concrete_light_blue.png"],["textures/blocks/light_gray_concrete.png","./concrete_silver.png"],["textures/blocks/lime_concrete.png","./concrete_lime.png"],["textures/blocks/magenta_concrete.png","./concrete_magenta.png"],["textures/blocks/orange_concrete.png","./concrete_orange.png"],["textures/blocks/pink_concrete.png","./concrete_pink.png"],["textures/blocks/purple_concrete.png","./concrete_purple.png"],["textures/blocks/red_concrete.png","./concrete_red.png"],["textures/blocks/white_concrete.png","./concrete_white.png"],["textures/blocks/yellow_concrete.png","./concrete_yellow.png"],["textures/blocks/black_concrete_powder.png","./concrete_powder_black.png"],["textures/blocks/blue_concrete_powder.png","./concrete_powder_blue.png"],["textures/blocks/brown_concrete_powder.png","./concrete_powder_brown.png"],["textures/blocks/cyan_concrete_powder.png","./concrete_powder_cyan.png"],["textures/blocks/gray_concrete_powder.png","./concrete_powder_gray.png"],["textures/blocks/green_concrete_powder.png","./concrete_powder_green.png"],["textures/blocks/light_blue_concrete_powder.png","./concrete_powder_light_blue.png"],["textures/blocks/light_gray_concrete_powder.png","./concrete_powder_silver.png"],["textures/blocks/lime_concrete_powder.png","./concrete_powder_lime.png"],["textures/blocks/magenta_concrete_powder.png","./concrete_powder_magenta.png"],["textures/blocks/orange_concrete_powder.png","./concrete_powder_orange.png"],["textures/blocks/pink_concrete_powder.png","./concrete_powder_pink.png"],["textures/blocks/purple_concrete_powder.png","./concrete_powder_purple.png"],["textures/blocks/red_concrete_powder.png","./concrete_powder_red.png"],["textures/blocks/white_concrete_powder.png","./concrete_powder_white.png"],["textures/blocks/yellow_concrete_powder.png","./concrete_powder_yellow.png"],["textures/entity/conduit/base.png","textures/blocks/conduit_base.png"],["textures/entity/conduit/cage.png","textures/blocks/conduit_cage.png"],["textures/entity/conduit/closed_eye.png","textures/blocks/conduit_closed.png"],["textures/entity/conduit/open_eye.png","textures/blocks/conduit_open.png"],["textures/entity/conduit/wind.png","textures/blocks/conduit_wind_horizontal.png"],["textures/entity/conduit/wind_vertical.png","textures/blocks/conduit_wind_vertical.png"],["textures/items/heart_of_the_sea.png","./heartofthesea_closed.png"],["textures/blocks/brain_coral.png","./coral_plant_pink.png"],["textures/blocks/bubble_coral.png","./coral_plant_purple.png"],["textures/blocks/fire_coral.png","./coral_plant_red.png"],["textures/blocks/horn_coral.png","./coral_plant_yellow.png"],["textures/blocks/tube_coral.png","./coral_plant_blue.png"],["textures/blocks/brain_coral_block.png","./coral_pink.png"],["textures/blocks/bubble_coral_block.png","./coral_purple.png"],["textures/blocks/fire_coral_block.png","./coral_red.png"],["textures/blocks/horn_coral_block.png","./coral_yellow.png"],["textures/blocks/tube_coral_block.png","./coral_blue.png"],["textures/blocks/brain_coral_fan.png","./coral_fan_pink.png"],["textures/blocks/bubble_coral_fan.png","./coral_fan_purple.png"],["textures/blocks/fire_coral_fan.png","./coral_fan_red.png"],["textures/blocks/horn_coral_fan.png","./coral_fan_yellow.png"],["textures/blocks/tube_coral_fan.png","./coral_fan_blue.png"],["textures/blocks/dead_brain_coral_block.png","./coral_pink_dead.png"],["textures/blocks/dead_bubble_coral_block.png","./coral_purple_dead.png"],["textures/blocks/dead_fire_coral_block.png","./coral_red_dead.png"],["textures/blocks/dead_horn_coral_block.png","./coral_yellow_dead.png"],["textures/blocks/dead_tube_coral_block.png","./coral_blue_dead.png"],["textures/blocks/dead_brain_coral_fan.png","./coral_fan_pink_dead.png"],["textures/blocks/dead_bubble_coral_fan.png","./coral_fan_purple_dead.png"],["textures/blocks/dead_fire_coral_fan.png","./coral_fan_red_dead.png"],["textures/blocks/dead_horn_coral_fan.png","./coral_fan_yellow_dead.png"],["textures/blocks/dead_tube_coral_fan.png","./coral_fan_blue_dead.png"],["textures/entity/cow/red_mooshroom.png","./mooshroom.png"],["textures/blocks/dead_bush.png","./deadbush.png"],["textures/blocks/destroy_stage_0.png","textures/environment/destroy_stage_0.png"],["textures/blocks/destroy_stage_1.png","textures/environment/destroy_stage_1.png"],["textures/blocks/destroy_stage_2.png","textures/environment/destroy_stage_2.png"],["textures/blocks/destroy_stage_3.png","textures/environment/destroy_stage_3.png"],["textures/blocks/destroy_stage_4.png","textures/environment/destroy_stage_4.png"],["textures/blocks/destroy_stage_5.png","textures/environment/destroy_stage_5.png"],["textures/blocks/destroy_stage_6.png","textures/environment/destroy_stage_6.png"],["textures/blocks/destroy_stage_7.png","textures/environment/destroy_stage_7.png"],["textures/blocks/destroy_stage_8.png","textures/environment/destroy_stage_8.png"],["textures/blocks/destroy_stage_9.png","textures/environment/destroy_stage_9.png"],["textures/blocks/diorite.png","./stone_diorite.png"],["textures/blocks/polished_diorite.png","./stone_diorite_smooth.png"],["textures/blocks/dispenser_front.png","./dispenser_front_horizontal.png"],["textures/blocks/acacia_door_bottom.png","./door_acacia_lower.png"],["textures/blocks/birch_door_bottom.png","./door_birch_lower.png"],["textures/blocks/dark_oak_door_bottom.png","./door_dark_oak_lower.png"],["textures/blocks/iron_door_bottom.png","./door_iron_lower.png"],["textures/blocks/jungle_door_bottom.png","./door_jungle_lower.png"],["textures/blocks/oak_door_bottom.png","./door_wood_lower.png"],["textures/blocks/spruce_door_bottom.png","./door_spruce_lower.png"],["textures/blocks/acacia_door_top.png","./door_acacia_upper.png"],["textures/blocks/birch_door_top.png","./door_birch_upper.png"],["textures/blocks/dark_oak_door_top.png","./door_dark_oak_upper.png"],["textures/blocks/iron_door_top.png","./door_iron_upper.png"],["textures/blocks/jungle_door_top.png","./door_jungle_upper.png"],["textures/blocks/oak_door_top.png","./door_wood_upper.png"],["textures/blocks/spruce_door_top.png","./door_spruce_upper.png"],["textures/items/acacia_door.png","./door_acacia.png"],["textures/items/birch_door.png","./door_birch.png"],["textures/items/dark_oak_door.png","./door_dark_oak.png"],["textures/items/iron_door.png","./door_iron.png"],["textures/items/jungle_door.png","./door_jungle.png"],["textures/items/oak_door.png","./door_wood.png"],["textures/items/spruce_door.png","./door_spruce.png"],["textures/entity/enderdragon","./dragon"],["textures/entity/dragon/dragon_fireball.png","textures/items/dragon_fireball.png"],["textures/items/dragon_breath.png","./dragons_breath.png"],["textures/items/fire_charge.png","./fireball.png"],["textures/blocks/dropper_front.png","./dropper_front_horizontal.png"],["textures/items/black_dye.png","./dye_powder_black_new.png"],["textures/items/blue_dye.png","./dye_powder_blue_new.png"],["textures/items/brown_dye.png","./dye_powder_brown_new.png"],["textures/items/cyan_dye.png","./dye_powder_cyan.png"],["textures/items/gray_dye.png","./dye_powder_gray.png"],["textures/items/green_dye.png","./dye_powder_green.png"],["textures/items/light_blue_dye.png","./dye_powder_light_blue.png"],["textures/items/light_gray_dye.png","./dye_powder_silver.png"],["textures/items/lime_dye.png","./dye_powder_lime.png"],["textures/items/magenta_dye.png","./dye_powder_magenta.png"],["textures/items/orange_dye.png","./dye_powder_orange.png"],["textures/items/pink_dye.png","./dye_powder_pink.png"],["textures/items/purple_dye.png","./dye_powder_purple.png"],["textures/items/red_dye.png","./dye_powder_red.png"],["textures/items/white_dye.png","./dye_powder_white_new.png"],["textures/items/yellow_dye.png","./dye_powder_yellow.png"],["textures/entity/end_crystal","./endercrystal"],["textures/entity/endercrystal/end_crystal.png","./endercrystal.png"],["textures/entity/endercrystal/end_crystal_beam.png","./endercrystal_beam.png"],["textures/blocks/end_portal_frame_eye.png","./endframe_eye.png"],["textures/blocks/end_portal_frame_side.png","./endframe_side.png"],["textures/blocks/end_portal_frame_top.png","./endframe_top.png"],["textures/blocks/end_stone_bricks.png","./end_bricks.png"],["textures/blocks/farmland.png","./farmland_dry.png"],["textures/blocks/farmland_moist.png","./farmland_wet.png"],["textures/blocks/large_fern_bottom.png","./double_plant_fern_bottom.png"],["textures/blocks/large_fern_top.png","./double_plant_fern_top.png"],["textures/items/firework_rocket.png","./fireworks.png"],["textures/items/firework_star_overlay.png","./fireworks_charge.png"],["textures/entity/fishing_hook.png","./fishhook.png"],["textures/items/cod.png","./fish_raw.png"],["textures/items/cooked_cod.png","./fish_cooked.png"],["textures/items/cooked_salmon.png","./fish_salmon_cooked.png"],["textures/items/fishing_rod.png","./fishing_rod_uncast.png"],["textures/items/pufferfish.png","./fish_pufferfish_raw.png"],["textures/items/salmon.png","./fish_salmon_raw.png"],["textures/items/tropical_fish.png","./fish_clownfish_raw.png"],["textures/items/beef.png","./beef_raw.png"],["textures/items/chicken.png","./chicken_raw.png"],["textures/items/cooked_beef.png","./beef_cooked.png"],["textures/items/cooked_chicken.png","./chicken_cooked.png"],["textures/items/cooked_mutton.png","./mutton_cooked.png"],["textures/items/cooked_porkchop.png","./porkchop_cooked.png"],["textures/items/mutton.png","./mutton_raw.png"],["textures/items/porkchop.png","./porkchop_raw.png"],["textures/blocks/fletching_table_front.png","./fletcher_table_side2.png"],["textures/blocks/fletching_table_side.png","./fletcher_table_side1.png"],["textures/blocks/fletching_table_top.png","./fletcher_table_top.png"],["textures/blocks/allium.png","./flower_allium.png"],["textures/blocks/azure_bluet.png","./flower_houstonia.png"],["textures/blocks/blue_orchid.png","./flower_blue_orchid.png"],["textures/blocks/cornflower.png","./flower_cornflower.png"],["textures/blocks/dandelion.png","./flower_dandelion.png"],["textures/blocks/lilac_bottom.png","./double_plant_syringa_bottom.png"],["textures/blocks/lilac_top.png","./double_plant_syringa_top.png"],["textures/blocks/lily_of_the_valley.png","./flower_lily_of_the_valley.png"],["textures/blocks/orange_tulip.png","./flower_tulip_orange.png"],["textures/blocks/poppy.png","./flower_rose.png"],["textures/blocks/oxeye_daisy.png","./flower_oxeye_daisy.png"],["textures/blocks/peony_bottom.png","./double_plant_paeonia_bottom.png"],["textures/blocks/peony_top.png","./double_plant_paeonia_top.png"],["textures/blocks/pink_tulip.png","./flower_tulip_pink.png"],["textures/blocks/red_tulip.png","./flower_tulip_red.png"],["textures/blocks/rose_bush_bottom.png","./double_plant_rose_bottom.png"],["textures/blocks/rose_bush_top.png","./double_plant_rose_top.png"],["textures/blocks/sunflower_back.png","./double_plant_sunflower_back.png"],["textures/blocks/sunflower_bottom.png","./double_plant_sunflower_bottom.png"],["textures/blocks/sunflower_front.png","./double_plant_sunflower_front.png"],["textures/blocks/sunflower_top.png","./double_plant_sunflower_top.png"],["textures/blocks/white_tulip.png","./flower_tulip_white.png"],["textures/blocks/wither_rose.png","./flower_wither_rose.png"],["textures/blocks/blast_furnace_front.png","./blast_furnace_front_off.png"],["textures/blocks/furnace_front.png","./furnace_front_off.png"],["textures/blocks/smoker_front.png","./smoker_front_off.png"],["textures/blocks/black_stained_glass.png","./glass_black.png"],["textures/blocks/blue_stained_glass.png","./glass_blue.png"],["textures/blocks/brown_stained_glass.png","./glass_brown.png"],["textures/blocks/cyan_stained_glass.png","./glass_cyan.png"],["textures/blocks/gray_stained_glass.png","./glass_gray.png"],["textures/blocks/green_stained_glass.png","./glass_green.png"],["textures/blocks/light_blue_stained_glass.png","./glass_light_blue.png"],["textures/blocks/light_gray_stained_glass.png","./glass_silver.png"],["textures/blocks/lime_stained_glass.png","./glass_lime.png"],["textures/blocks/magenta_stained_glass.png","./glass_magenta.png"],["textures/blocks/orange_stained_glass.png","./glass_orange.png"],["textures/blocks/pink_stained_glass.png","./glass_pink.png"],["textures/blocks/purple_stained_glass.png","./glass_purple.png"],["textures/blocks/red_stained_glass.png","./glass_red.png"],["textures/blocks/white_stained_glass.png","./glass_white.png"],["textures/blocks/yellow_stained_glass.png","./glass_yellow.png"],["textures/blocks/black_stained_glass_pane_top.png","./glass_pane_top_black.png"],["textures/blocks/blue_stained_glass_pane_top.png","./glass_pane_top_blue.png"],["textures/blocks/brown_stained_glass_pane_top.png","./glass_pane_top_brown.png"],["textures/blocks/cyan_stained_glass_pane_top.png","./glass_pane_top_cyan.png"],["textures/blocks/gray_stained_glass_pane_top.png","./glass_pane_top_gray.png"],["textures/blocks/green_stained_glass_pane_top.png","./glass_pane_top_green.png"],["textures/blocks/light_blue_stained_glass_pane_top.png","./glass_pane_top_light_blue.png"],["textures/blocks/light_gray_stained_glass_pane_top.png","./glass_pane_top_silver.png"],["textures/blocks/lime_stained_glass_pane_top.png","./glass_pane_top_lime.png"],["textures/blocks/magenta_stained_glass_pane_top.png","./glass_pane_top_magenta.png"],["textures/blocks/orange_stained_glass_pane_top.png","./glass_pane_top_orange.png"],["textures/blocks/pink_stained_glass_pane_top.png","./glass_pane_top_pink.png"],["textures/blocks/purple_stained_glass_pane_top.png","./glass_pane_top_purple.png"],["textures/blocks/red_stained_glass_pane_top.png","./glass_pane_top_red.png"],["textures/blocks/white_stained_glass_pane_top.png","./glass_pane_top_white.png"],["textures/blocks/yellow_stained_glass_pane_top.png","./glass_pane_top_yellow.png"],["textures/blocks/black_glazed_terracotta.png","./glazed_terracotta_black.png"],["textures/blocks/blue_glazed_terracotta.png","./glazed_terracotta_blue.png"],["textures/blocks/brown_glazed_terracotta.png","./glazed_terracotta_brown.png"],["textures/blocks/cyan_glazed_terracotta.png","./glazed_terracotta_cyan.png"],["textures/blocks/gray_glazed_terracotta.png","./glazed_terracotta_gray.png"],["textures/blocks/green_glazed_terracotta.png","./glazed_terracotta_green.png"],["textures/blocks/light_blue_glazed_terracotta.png","./glazed_terracotta_light_blue.png"],["textures/blocks/light_gray_glazed_terracotta.png","./glazed_terracotta_silver.png"],["textures/blocks/lime_glazed_terracotta.png","./glazed_terracotta_lime.png"],["textures/blocks/magenta_glazed_terracotta.png","./glazed_terracotta_magenta.png"],["textures/blocks/orange_glazed_terracotta.png","./glazed_terracotta_orange.png"],["textures/blocks/pink_glazed_terracotta.png","./glazed_terracotta_pink.png"],["textures/blocks/purple_glazed_terracotta.png","./glazed_terracotta_purple.png"],["textures/blocks/red_glazed_terracotta.png","./glazed_terracotta_red.png"],["textures/blocks/white_glazed_terracotta.png","./glazed_terracotta_white.png"],["textures/blocks/yellow_glazed_terracotta.png","./glazed_terracotta_yellow.png"],["textures/blocks/granite.png","./stone_granite.png"],["textures/blocks/polished_granite.png","./stone_granite_smooth.png"],["textures/blocks/grass.png","./tallgrass.png"],["textures/blocks/grass_block_side.png","./grass_side_carried.png"],["textures/blocks/grass_block_side_overlay.png","./grass_side.png"],["textures/blocks/grass_block_snow.png","./grass_side_snowed.png"],["textures/blocks/grass_block_top.png","./grass_top.png"],["textures/blocks/tall_grass_bottom.png","./double_plant_grass_bottom.png"],["textures/blocks/tall_grass_top.png","./double_plant_grass_top.png"],["textures/entity/horse","./horse2"],["textures/blocks/packed_ice.png","./ice_packed.png"],["textures/entity/illager/evoker_fangs.png","./fangs.png"],["textures/entity/illager/pillager.png","textures/entity/pillager.png"],["textures/entity/illager/vex.png","textures/entity/vex/vex.png"],["textures/entity/illager/vex_charging.png","textures/entity/vex/vex_charging.png"],["textures/entity/illager/vindicator.png","textures/entity/vindicator.png"],["textures/items/ink_sac.png","./dye_powder_black.png"],["textures/blocks/item_frame.png","./itemframe_background.png"],["textures/blocks/jigsaw_bottom.png","./jigsaw_back.png"],["textures/blocks/jigsaw_top.png","./jigsaw_front.png"],["textures/blocks/dried_kelp_side.png","./dried_kelp_side_a.png"],["textures/blocks/kelp.png","./kelp_top.png"],["textures/blocks/kelp_plant.png","./kelp_a.png"],["textures/items/lapis_lazuli.png","./dye_powder_blue.png"],["textures/blocks/acacia_leaves.png","./leaves_acacia.png"],["textures/blocks/birch_leaves.png","./leaves_birch.png"],["textures/blocks/dark_oak_leaves.png","./leaves_big_oak.png"],["textures/blocks/jungle_leaves.png","./leaves_jungle.png"],["textures/blocks/oak_leaves.png","./leaves_oak.png"],["textures/blocks/spruce_leaves.png","./leaves_spruce.png"],["textures/blocks/lily_pad.png","./waterlily.png"],["textures/entity/llama/brown.png","./llama_brown.png"],["textures/entity/llama/creamy.png","./llama_creamy.png"],["textures/entity/llama/gray.png","./llama_gray.png"],["textures/entity/llama/white.png","./llama_white.png"],["textures/entity/llama/decor/black.png","./decor_black.png"],["textures/entity/llama/decor/blue.png","./decor_blue.png"],["textures/entity/llama/decor/brown.png","./decor_brown.png"],["textures/entity/llama/decor/cyan.png","./decor_cyan.png"],["textures/entity/llama/decor/gray.png","./decor_gray.png"],["textures/entity/llama/decor/green.png","./decor_green.png"],["textures/entity/llama/decor/light_blue.png","./decor_light_blue.png"],["textures/entity/llama/decor/light_gray.png","./decor_silver.png"],["textures/entity/llama/decor/lime.png","./decor_lime.png"],["textures/entity/llama/decor/magenta.png","./decor_magenta.png"],["textures/entity/llama/decor/orange.png","./decor_orange.png"],["textures/entity/llama/decor/pink.png","./decor_pink.png"],["textures/entity/llama/decor/purple.png","./decor_purple.png"],["textures/entity/llama/decor/red.png","./decor_red.png"],["textures/entity/llama/decor/trader_llama.png","./trader_llama_decor.png"],["textures/entity/llama/decor/white.png","./decor_white.png"],["textures/entity/llama/decor/yellow.png","./decor_yellow.png"],["textures/blocks/acacia_log.png","./log_acacia.png"],["textures/blocks/birch_log.png","./log_birch.png"],["textures/blocks/dark_oak_log.png","./log_big_oak.png"],["textures/blocks/jungle_log.png","./log_jungle.png"],["textures/blocks/oak_log.png","./log_oak.png"],["textures/blocks/spruce_log.png","./log_spruce.png"],["textures/blocks/acacia_log_top.png","./log_acacia_top.png"],["textures/blocks/birch_log_top.png","./log_birch_top.png"],["textures/blocks/dark_oak_log_top.png","./log_big_oak_top.png"],["textures/blocks/jungle_log_top.png","./log_jungle_top.png"],["textures/blocks/oak_log_top.png","./log_oak_top.png"],["textures/blocks/spruce_log_top.png","./log_spruce_top.png"],["textures/items/filled_map.png","./map_filled.png"],["textures/items/filled_map_markings.png","./map_filled_markings.png"],["textures/items/map.png","./map_empty.png"],["textures/blocks/attached_melon_stem.png","./melon_stem_connected.png"],["textures/blocks/melon_stem.png","./melon_stem_disconnected.png"],["textures/items/glistering_melon_slice.png","./melon_speckled.png"],["textures/items/melon_slice.png","./melon.png"],["textures/items/chest_minecart.png","./minecart_chest.png"],["textures/items/command_block_minecart.png","./minecart_command_block.png"],["textures/items/furnace_minecart.png","./minecart_furnace.png"],["textures/items/hopper_minecart.png","./minecart_hopper.png"],["textures/items/minecart.png","./minecart_normal.png"],["textures/items/tnt_minecart.png","./minecart_tnt.png"],["textures/blocks/brown_mushroom.png","./mushroom_brown.png"],["textures/blocks/red_mushroom.png","./mushroom_red.png"],["textures/blocks/brown_mushroom_block.png","./mushroom_block_skin_brown.png"],["textures/blocks/red_mushroom_block.png","./mushroom_block_skin_red.png"],["textures/blocks/mushroom_stem.png","./mushroom_block_skin_stem.png"],["textures/items/music_disc_11.png","./record_11.png"],["textures/items/music_disc_13.png","./record_13.png"],["textures/items/music_disc_blocks.png","./record_blocks.png"],["textures/items/music_disc_cat.png","./record_cat.png"],["textures/items/music_disc_chirp.png","./record_chirp.png"],["textures/items/music_disc_far.png","./record_far.png"],["textures/items/music_disc_mall.png","./record_mall.png"],["textures/items/music_disc_mellohi.png","./record_mellohi.png"],["textures/items/music_disc_stal.png","./record_stal.png"],["textures/items/music_disc_strad.png","./record_strad.png"],["textures/items/music_disc_wait.png","./record_wait.png"],["textures/items/music_disc_ward.png","./record_ward.png"],["textures/blocks/nether_bricks.png","./nether_brick.png"],["textures/blocks/red_nether_bricks.png","./red_nether_brick.png"],["textures/items/nether_brick.png","./netherbrick.png"],["textures/blocks/nether_portal.png","./portal.png"],["textures/blocks/nether_wart_stage0.png","./nether_wart_stage_0.png"],["textures/blocks/nether_wart_stage1.png","./nether_wart_stage_1.png"],["textures/blocks/nether_wart_stage2.png","./nether_wart_stage_2.png"],["textures/blocks/note_block.png","./noteblock.png"],["textures/items/nautilus_shell.png","./nautilus.png"],["textures/blocks/observer_back_on.png","./observer_back_lit.png"],["textures/entity/panda/aggressive_panda.png","./panda_aggressive.png"],["textures/entity/panda/brown_panda.png","./panda_brown.png"],["textures/entity/panda/lazy_panda.png","./panda_lazy.png"],["textures/entity/panda/playful_panda.png","./panda_playful.png"],["textures/entity/panda/weak_panda.png","./panda_sneezy.png"],["textures/entity/panda/worried_panda.png","./panda_worried.png"],["textures/blocks/piston_top.png","./piston_top_normal.png"],["textures/blocks/acacia_planks.png","./planks_acacia.png"],["textures/blocks/birch_planks.png","./planks_birch.png"],["textures/blocks/dark_oak_planks.png","./planks_big_oak.png"],["textures/blocks/jungle_planks.png","./planks_jungle.png"],["textures/blocks/oak_planks.png","./planks_oak.png"],["textures/blocks/spruce_planks.png","./planks_spruce.png"],["textures/blocks/podzol_side.png","./dirt_podzol_side.png"],["textures/blocks/podzol_top.png","./dirt_podzol_top.png"],["textures/blocks/potatoes_stage0.png","./potatoes_stage_0.png"],["textures/blocks/potatoes_stage1.png","./potatoes_stage_1.png"],["textures/blocks/potatoes_stage2.png","./potatoes_stage_2.png"],["textures/blocks/potatoes_stage3.png","./potatoes_stage_3.png"],["textures/items/baked_potato.png","./potato_baked.png"],["textures/items/poisonous_potato.png","./potato_poisonous.png"],["textures/items/lingering_potion.png","./potion_bottle_lingering_empty.png"],["textures/items/potion.png","./potion_bottle_empty.png"],["textures/items/splash_potion.png","./potion_bottle_splash_empty.png"],["textures/blocks/dark_prismarine.png","./prismarine_dark.png"],["textures/blocks/prismarine.png","./prismarine_rough.png"],["textures/blocks/attached_pumpkin_stem.png","./pumpkin_stem_connected.png"],["textures/blocks/carved_pumpkin.png","./pumpkin_face_off.png"],["textures/blocks/jack_o_lantern.png","./pumpkin_face_on.png"],["textures/blocks/pumpkin_stem.png","./pumpkin_stem_disconnected.png"],["textures/blocks/chiseled_quartz_block.png","./quartz_block_chiseled.png"],["textures/blocks/chiseled_quartz_block_top.png","./quartz_block_chiseled_top.png"],["textures/blocks/nether_quartz_ore.png","./quartz_ore.png"],["textures/blocks/quartz_pillar.png","./quartz_block_lines.png"],["textures/blocks/quartz_pillar_top.png","./quartz_block_lines_top.png"],["textures/entity/rabbit/black.png","./blackrabbit.png"],["textures/items/cooked_rabbit.png","./rabbit_cooked.png"],["textures/items/rabbit.png","./rabbit_raw.png"],["textures/blocks/activator_rail.png","./rail_activator.png"],["textures/blocks/activator_rail_on.png","./rail_activator_powered.png"],["textures/blocks/detector_rail.png","./rail_detector.png"],["textures/blocks/detector_rail_on.png","./rail_detector_powered.png"],["textures/blocks/powered_rail.png","./rail_golden.png"],["textures/blocks/powered_rail_on.png","./rail_golden_powered.png"],["textures/blocks/rail.png","./rail_normal.png"],["textures/blocks/rail_corner.png","./rail_normal_turned.png"],["textures/blocks/chiseled_red_sandstone.png","./red_sandstone_carved.png"],["textures/blocks/cut_red_sandstone.png","./red_sandstone_smooth.png"],["textures/blocks/red_sandstone.png","./red_sandstone_normal.png"],["textures/items/redstone.png","./redstone_dust.png"],["textures/blocks/redstone_lamp.png","./redstone_lamp_off.png"],["textures/blocks/repeater.png","./repeater_off.png"],["textures/entity/pig/pig_saddle.png","textures/entity/saddle.png"],["textures/blocks/chiseled_sandstone.png","./sandstone_carved.png"],["textures/blocks/cut_sandstone.png","./sandstone_smooth.png"],["textures/blocks/sandstone.png","./sandstone_normal.png"],["textures/blocks/acacia_sapling.png","./sapling_acacia.png"],["textures/blocks/birch_sapling.png","./sapling_birch.png"],["textures/blocks/dark_oak_sapling.png","./sapling_roofed_oak.png"],["textures/blocks/jungle_sapling.png","./sapling_jungle.png"],["textures/blocks/oak_sapling.png","./sapling_oak.png"],["textures/blocks/spruce_sapling.png","./sapling_spruce.png"],["textures/blocks/tall_seagrass_top.png","./seagrass_doubletall_top_a.png"],["textures/blocks/tall_seagrass_bottom.png","./seagrass_doubletall_bottom_a.png"],["textures/items/seagrass.png","textures/blocks/seagrass_carried.png"],["textures/items/beetroot_seeds.png","./seeds_beetroot.png"],["textures/items/melon_seeds.png","./seeds_melon.png"],["textures/items/pumpkin_seeds.png","./seeds_pumpkin.png"],["textures/items/wheat_seeds.png","./seeds_wheat.png"],["textures/entity/shield_base_nopattern.png","./shield.png"],["textures/blocks/black_shulker_box.png","./shulker_top_black.png"],["textures/blocks/blue_shulker_box.png","./shulker_top_blue.png"],["textures/blocks/brown_shulker_box.png","./shulker_top_brown.png"],["textures/blocks/cyan_shulker_box.png","./shulker_top_cyan.png"],["textures/blocks/gray_shulker_box.png","./shulker_top_gray.png"],["textures/blocks/green_shulker_box.png","./shulker_top_green.png"],["textures/blocks/light_blue_shulker_box.png","./shulker_top_light_blue.png"],["textures/blocks/light_gray_shulker_box.png","./shulker_top_silver.png"],["textures/blocks/lime_shulker_box.png","./shulker_top_lime.png"],["textures/blocks/magenta_shulker_box.png","./shulker_top_magenta.png"],["textures/blocks/orange_shulker_box.png","./shulker_top_orange.png"],["textures/blocks/pink_shulker_box.png","./shulker_top_pink.png"],["textures/blocks/purple_shulker_box.png","./shulker_top_purple.png"],["textures/blocks/red_shulker_box.png","./shulker_top_red.png"],["textures/blocks/shulker_box.png","./shulker_top_undyed.png"],["textures/blocks/white_shulker_box.png","./shulker_top_white.png"],["textures/blocks/yellow_shulker_box.png","./shulker_top_yellow.png"],["textures/entity/shulker/shulker.png","./shulker_undyed.png"],["textures/entity/shulker/shulker_black.png","./shulker_black.png"],["textures/entity/shulker/shulker_blue.png","./shulker_blue.png"],["textures/entity/shulker/shulker_brown.png","./shulker_brown.png"],["textures/entity/shulker/shulker_cyan.png","./shulker_cyan.png"],["textures/entity/shulker/shulker_gray.png","./shulker_gray.png"],["textures/entity/shulker/shulker_green.png","./shulker_green.png"],["textures/entity/shulker/shulker_light_blue.png","./shulker_light_blue.png"],["textures/entity/shulker/shulker_light_gray.png","./shulker_silver.png"],["textures/entity/shulker/shulker_lime.png","./shulker_lime.png"],["textures/entity/shulker/shulker_magenta.png","./shulker_magenta.png"],["textures/entity/shulker/shulker_orange.png","./shulker_orange.png"],["textures/entity/shulker/shulker_pink.png","./shulker_pink.png"],["textures/entity/shulker/shulker_purple.png","./shulker_purple.png"],["textures/entity/shulker/shulker_red.png","./shulker_red.png"],["textures/entity/shulker/shulker_white.png","./shulker_white.png"],["textures/entity/shulker/shulker_yellow.png","./shulker_yellow.png"],["textures/entity/signs/acacia.png","textures/entity/sign_acacia.png"],["textures/entity/signs/birch.png","textures/entity/sign_birch.png"],["textures/entity/signs/dark_oak.png","textures/entity/sign_darkoak.png"],["textures/entity/signs/jungle.png","textures/entity/sign_jungle.png"],["textures/entity/signs/oak.png","textures/entity/sign.png"],["textures/entity/signs/spruce.png","textures/entity/sign_spruce.png"],["textures/items/acacia_sign.png","./sign_acacia.png"],["textures/items/birch_sign.png","./sign_birch.png"],["textures/items/dark_oak_sign.png","./sign_darkoak.png"],["textures/items/jungle_sign.png","./sign_jungle.png"],["textures/items/oak_sign.png","./sign.png"],["textures/items/spruce_sign.png","./sign_spruce.png"],["textures/blocks/slime_block.png","./slime.png"],["textures/items/slime_ball.png","./slimeball.png"],["textures/blocks/smooth_stone.png","./stone_slab_top.png"],["textures/blocks/smooth_stone_slab_side.png","./stone_slab_side.png"],["textures/blocks/spawner.png","./mob_spawner.png"],["textures/items/fermented_spider_eye.png","./spider_eye_fermented.png"],["textures/blocks/wet_sponge.png","./sponge_wet.png"],["textures/blocks/chiseled_stone_bricks.png","./stonebrick_carved.png"],["textures/blocks/cracked_stone_bricks.png","./stonebrick_cracked.png"],["textures/blocks/mossy_stone_bricks.png","./stonebrick_mossy.png"],["textures/blocks/stone_bricks.png","./stonebrick.png"],["textures/blocks/stonecutter_bottom.png","./stonecutter2_bottom.png"],["textures/blocks/stonecutter_saw.png","./stonecutter2_saw.png"],["textures/blocks/stonecutter_side.png","./stonecutter2_side.png"],["textures/blocks/stonecutter_top.png","./stonecutter2_top.png"],["textures/items/structure_void.png","textures/blocks/structure_void.png"],["textures/blocks/sugar_cane.png","./reeds.png"],["textures/items/sugar_cane.png","./reeds.png"],["textures/blocks/black_terracotta.png","./hardened_clay_stained_black.png"],["textures/blocks/blue_terracotta.png","./hardened_clay_stained_blue.png"],["textures/blocks/brown_terracotta.png","./hardened_clay_stained_brown.png"],["textures/blocks/cyan_terracotta.png","./hardened_clay_stained_cyan.png"],["textures/blocks/gray_terracotta.png","./hardened_clay_stained_gray.png"],["textures/blocks/green_terracotta.png","./hardened_clay_stained_green.png"],["textures/blocks/light_blue_terracotta.png","./hardened_clay_stained_light_blue.png"],["textures/blocks/light_gray_terracotta.png","./hardened_clay_stained_silver.png"],["textures/blocks/lime_terracotta.png","./hardened_clay_stained_lime.png"],["textures/blocks/magenta_terracotta.png","./hardened_clay_stained_magenta.png"],["textures/blocks/orange_terracotta.png","./hardened_clay_stained_orange.png"],["textures/blocks/pink_terracotta.png","./hardened_clay_stained_pink.png"],["textures/blocks/purple_terracotta.png","./hardened_clay_stained_purple.png"],["textures/blocks/red_terracotta.png","./hardened_clay_stained_red.png"],["textures/blocks/terracotta.png","./hardened_clay.png"],["textures/blocks/white_terracotta.png","./hardened_clay_stained_white.png"],["textures/blocks/yellow_terracotta.png","./hardened_clay_stained_yellow.png"],["textures/blocks/redstone_torch.png","./redstone_torch_on.png"],["textures/blocks/torch.png","./torch_on.png"],["textures/items/totem_of_undying.png","./totem.png"],["textures/blocks/oak_trapdoor.png","./trapdoor.png"],["textures/blocks/tripwire.png","./trip_wire.png"],["textures/blocks/tripwire_hook.png","./trip_wire_source.png"],["textures/blocks/turtle_egg.png","./turtle_egg_not_cracked.png"],["textures/entity/turtle/big_sea_turtle.png","textures/entity/sea_turtle.png"],["textures/items/scute.png","./turtle_shell_piece.png"],["textures/entity/villager","./villager2"],["textures/entity/villager2/profession","./professions"],["textures/entity/villager2/profession_level","./levels"],["textures/entity/villager2/type","./biomes"],["textures/entity/villager2/biomes/desert.png","./biome_desert.png"],["textures/entity/villager2/biomes/jungle.png","./biome_jungle.png"],["textures/entity/villager2/biomes/plains.png","./biome_plains.png"],["textures/entity/villager2/biomes/savanna.png","./biome_savanna.png"],["textures/entity/villager2/biomes/snow.png","./biome_snow.png"],["textures/entity/villager2/biomes/swamp.png","./biome_swamp.png"],["textures/entity/villager2/biomes/taiga.png","./biome_taiga.png"],["textures/entity/villager2/levels/diamond.png","./level_diamond.png"],["textures/entity/villager2/levels/emerald.png","./level_emerald.png"],["textures/entity/villager2/levels/gold.png","./level_gold.png"],["textures/entity/villager2/levels/iron.png","./level_iron.png"],["textures/entity/villager2/levels/stone.png","./level_stone.png"],["textures/entity/villager2/professions/mason.png","./stonemason.png"],["textures/blocks/water_flow.png","./water_flow_grey.png"],["textures/blocks/water_still.png","./water_still_grey.png"],["textures/blocks/wheat_stage0.png","./wheat_stage_0.png"],["textures/blocks/wheat_stage1.png","./wheat_stage_1.png"],["textures/blocks/wheat_stage2.png","./wheat_stage_2.png"],["textures/blocks/wheat_stage3.png","./wheat_stage_3.png"],["textures/blocks/wheat_stage4.png","./wheat_stage_4.png"],["textures/blocks/wheat_stage5.png","./wheat_stage_5.png"],["textures/blocks/wheat_stage6.png","./wheat_stage_6.png"],["textures/blocks/wheat_stage7.png","./wheat_stage_7.png"],["textures/entity/wither","./wither_boss"],["textures/blocks/black_wool.png","./wool_colored_black.png"],["textures/blocks/blue_wool.png","./wool_colored_blue.png"],["textures/blocks/brown_wool.png","./wool_colored_brown.png"],["textures/blocks/cyan_wool.png","./wool_colored_cyan.png"],["textures/blocks/gray_wool.png","./wool_colored_gray.png"],["textures/blocks/green_wool.png","./wool_colored_green.png"],["textures/blocks/light_blue_wool.png","./wool_colored_light_blue.png"],["textures/blocks/light_gray_wool.png","./wool_colored_silver.png"],["textures/blocks/lime_wool.png","./wool_colored_lime.png"],["textures/blocks/magenta_wool.png","./wool_colored_magenta.png"],["textures/blocks/orange_wool.png","./wool_colored_orange.png"],["textures/blocks/pink_wool.png","./wool_colored_pink.png"],["textures/blocks/purple_wool.png","./wool_colored_purple.png"],["textures/blocks/red_wool.png","./wool_colored_red.png"],["textures/blocks/white_wool.png","./wool_colored_white.png"],["textures/blocks/yellow_wool.png","./wool_colored_yellow.png"],["textures/entity/zombie_pigman.png","./pig/pigzombie.png"],["textures/entity/zombie_villager","./zombie_villager2"],["textures/entity/zombie_villager2/profession","./professions"],["textures/entity/zombie_villager2/profession_level","./levels"],["textures/entity/zombie_villager2/type","./biomes"],["textures/entity/zombie_villager2/zombie_villager.png","./zombie-villager.png"],["textures/entity/zombie_villager2/biomes/desert.png","./biome-desert-zombie.png"],["textures/entity/zombie_villager2/biomes/jungle.png","./biome-jungle-zombie.png"],["textures/entity/zombie_villager2/biomes/plains.png","./biome-plains-zombie.png"],["textures/entity/zombie_villager2/biomes/savanna.png","./biome-savanna-zombie.png"],["textures/entity/zombie_villager2/biomes/snow.png","./biome-snow-zombie.png"],["textures/entity/zombie_villager2/biomes/swamp.png","./biome-swamp-zombie.png"],["textures/entity/zombie_villager2/biomes/taiga.png","./biome-taiga-zombie.png"],["textures/entity/zombie_villager2/levels/diamond.png","./level_diamond.png"],["textures/entity/zombie_villager2/levels/emerald.png","./level_emerald.png"],["textures/entity/zombie_villager2/levels/gold.png","./level_gold.png"],["textures/entity/zombie_villager2/levels/iron.png","./level_iron.png"],["textures/entity/zombie_villager2/levels/stone.png","./level_stone.png"],["textures/entity/zombie_villager2/professions/mason.png","./stonemason.png"]];for(const e of t)yield e}},[]],[Re,[]],[je,[]],[Fe,[]],[Ue,[]],[We,[]],[qe,[]],[Ye,[]],[Je,[]],[class extends p{async convert(){const t=[];for await(const[e,n,r,i,o]of this.getData()){const a=b.fromPath(e,this.path),s=b.fromPath(n,this.path),c=b.fromPath(r,this.path),l=b.toPath(i,s,this.path),u=b.toPath(o,s,this.path);if(h.a.existsSync(a)&&h.a.existsSync(s)&&h.a.existsSync(c)){b.log("Convert redstone dust");const t=await Me.read(s);t.rotate(90).crop(0,0,t.getWidth()-2,t.getHeight()-2),await t.writeAsync(u),t.composite(await Me.read(c),0,0),t.composite(await Me.read(a),0,0),await t.writeAsync(l)}t.push(e),t.push(n),t.push(r)}return[[v,t]]}async*getData(){yield["textures/blocks/redstone_dust_dot.png","textures/blocks/redstone_dust_line0.png","textures/blocks/redstone_dust_line1.png","./redstone_dust_cross.png","./redstone_dust_line.png"]}},[]],[class extends p{async convert(){const t=[];for await(const[e,n]of this.getData()){const r=b.fromPath(e,this.path),i=b.fromPath(n,this.path);if(h.a.existsSync(r)&&h.a.existsSync(i)){b.log("Convert sheep");const t=await Me.read(r),e=await Me.read(i),n=await Me.create(t.getWidth(),t.getHeight()+e.getHeight());n.composite(t,0,0),n.composite(e,0,t.getHeight()),n.scan(0,0,n.getWidth(),t.getHeight(),(t,e,r)=>{255===n.bitmap.data[r+3]&&(n.bitmap.data[r+3]=1)}),await n.writeAsync(r)}t.push(n)}return[[v,t]]}async*getData(){yield["textures/entity/sheep/sheep.png","textures/entity/sheep/sheep_fur.png"]}},[]],[class extends p{async convert(){for await(const t of this.getData()){const e=b.fromPath(t,this.path);if(h.a.existsSync(e)){b.log(`Convert villager ${t}`);const n=await Me.read(e);n.scan(0,0,n.getWidth(),n.getHeight(),(t,e,r)=>{0===n.bitmap.data[r+3]&&(n.bitmap.data[r]=255,n.bitmap.data[r+1]=255,n.bitmap.data[r+2]=255,n.bitmap.data[r+3]=0)}),await n.writeAsync(e)}}return[]}async*getData(){const t=["textures/entity/villager2/professions/armorer.png","textures/entity/villager2/professions/butcher.png","textures/entity/villager2/professions/cartographer.png","textures/entity/villager2/professions/cleric.png","textures/entity/villager2/professions/farmer.png","textures/entity/villager2/professions/fisherman.png","textures/entity/villager2/professions/fletcher.png","textures/entity/villager2/professions/leatherworker.png","textures/entity/villager2/professions/librarian.png","textures/entity/villager2/professions/nitwit.png","textures/entity/villager2/professions/shepherd.png","textures/entity/villager2/professions/stonemason.png","textures/entity/villager2/professions/toolsmith.png","textures/entity/villager2/professions/unskilled.png","textures/entity/villager2/professions/weaponsmith.png","textures/entity/zombie_villager2/professions/armorer.png","textures/entity/zombie_villager2/professions/butcher.png","textures/entity/zombie_villager2/professions/cartographer.png","textures/entity/zombie_villager2/professions/cleric.png","textures/entity/zombie_villager2/professions/farmer.png","textures/entity/zombie_villager2/professions/fisherman.png","textures/entity/zombie_villager2/professions/fletcher.png","textures/entity/zombie_villager2/professions/leatherworker.png","textures/entity/zombie_villager2/professions/librarian.png","textures/entity/zombie_villager2/professions/nitwit.png","textures/entity/zombie_villager2/professions/shepherd.png","textures/entity/zombie_villager2/professions/stonemason.png","textures/entity/zombie_villager2/professions/toolsmith.png","textures/entity/zombie_villager2/professions/weaponsmith.png"];for(const e of t)yield e}},[]],[Xe,[]],[Qe,[]],[Ge,[]],[Ke,[]],[class extends p{async convert(){for await(const[t,e]of this.getData()){const n=b.fromPath(t,this.path),r=b.toPath(e,n,this.path);if(h.a.existsSync(n)){b.log(`Create side rotate ${e}`);const t=await Me.read(n);t.flip(!0,!1),await t.writeAsync(r)}}return[]}async*getData(){const t=[["textures/blocks/dried_kelp_side_a.png","./dried_kelp_side_b.png"],["textures/blocks/seagrass_doubletall_top_a.png","./seagrass_doubletall_top_b.png"],["textures/blocks/seagrass_doubletall_bottom_a.png","./seagrass_doubletall_bottom_b.png"]];for(const e of t)yield e}},[]],[class extends p{async convert(){const t=[];for await(const[e,n,r]of this.getData()){const i=b.fromPath(e,this.path),o=b.toPath(n,i,this.path);if(h.a.existsSync(i)){b.log(`Create tga ${n}`);const a=await Me.read(i),s=en.a.createTgaBuffer(a.getWidth(),a.getHeight(),a.bitmap.data);await h.a.writeFile(o,s),r||t.push(e)}}return[[v,t]]}async*getData(){const t=[["textures/blocks/cactus_bottom.png","./cactus_bottom.tga"],["textures/blocks/cactus_side.png","./cactus_side.tga"],["textures/blocks/cactus_top.png","./cactus_top.tga"],["textures/blocks/double_plant_fern_bottom.png","./double_plant_fern_bottom.tga"],["textures/blocks/double_plant_fern_top.png","./double_plant_fern_top.tga"],["textures/blocks/double_plant_grass_bottom.png","./double_plant_grass_bottom.tga"],["textures/blocks/double_plant_grass_top.png","./double_plant_grass_top.tga"],["textures/blocks/double_plant_syringa_bottom.png","./double_plant_syringa_bottom.tga"],["textures/blocks/double_plant_syringa_top.png","./double_plant_syringa_top.tga"],["textures/blocks/fern.png","./fern.tga"],["textures/blocks/fern_carried.png","./fern_carried.tga"],["textures/blocks/grass_side.png","./grass_side.tga"],["textures/blocks/grass_side_snowed.png","./grass_side_snowed.tga",!0],["textures/blocks/grindstone_pivot.png","./grindstone_pivot.tga"],["textures/blocks/grindstone_round.png","./grindstone_round.tga"],["textures/blocks/grindstone_side.png","./grindstone_side.tga"],["textures/blocks/kelp_a.png","./kelp_a.tga"],["textures/blocks/kelp_b.png","./kelp_b.tga"],["textures/blocks/kelp_c.png","./kelp_c.tga"],["textures/blocks/kelp_d.png","./kelp_d.tga"],["textures/blocks/kelp_top.png","./kelp_top.tga"],["textures/blocks/kelp_top_bulb.png","./kelp_top_bulb.tga"],["textures/blocks/leaves_acacia.png","./leaves_acacia.tga"],["textures/blocks/leaves_acacia_carried.png","./leaves_acacia_carried.tga"],["textures/blocks/leaves_big_oak.png","./leaves_big_oak.tga"],["textures/blocks/leaves_big_oak_carried.png","./leaves_big_oak_carried.tga"],["textures/blocks/leaves_birch.png","./leaves_birch.tga"],["textures/blocks/leaves_birch_carried.png","./leaves_birch_carried.tga"],["textures/blocks/leaves_jungle.png","./leaves_jungle.tga"],["textures/blocks/leaves_jungle_carried.png","./leaves_jungle_carried.tga"],["textures/blocks/leaves_oak.png","./leaves_oak.tga"],["textures/blocks/leaves_oak_carried.png","./leaves_oak_carried.tga"],["textures/blocks/leaves_spruce.png","./leaves_spruce.tga"],["textures/blocks/leaves_spruce_carried.png","./leaves_spruce_carried.tga"],["textures/blocks/reeds.png","./reeds.tga"],["textures/blocks/scaffolding_bottom.png","./scaffolding_bottom.tga"],["textures/blocks/scaffolding_side.png","./scaffolding_side.tga"],["textures/blocks/scaffolding_top.png","./scaffolding_top.tga"],["textures/blocks/seagrass_doubletall_bottom_a.png","./seagrass_doubletall_bottom_a.tga"],["textures/blocks/seagrass_doubletall_bottom_b.png","./seagrass_doubletall_bottom_b.tga"],["textures/blocks/seagrass_doubletall_top_a.png","./seagrass_doubletall_top_a.tga"],["textures/blocks/seagrass_doubletall_top_b.png","./seagrass_doubletall_top_b.tga"],["textures/blocks/stonecutter2_saw.png","./stonecutter2_saw.tga"],["textures/blocks/tallgrass.png","./tallgrass.tga",!0],["textures/blocks/tallgrass_carried.png","./tallgrass_carried.tga"],["textures/entity/blaze.png","./blaze.tga"],["textures/entity/phantom.png","./phantom.tga"],["textures/entity/banner/banner.png","./banner.tga"],["textures/entity/banner/banner_pattern_illager.png","./banner_pattern_illager.tga"],["textures/entity/cat/allblackcat_tame.png","./allblackcat_tame.tga"],["textures/entity/cat/britishshorthair_tame.png","./britishshorthair_tame.tga"],["textures/entity/cat/calico_tame.png","./calico_tame.tga"],["textures/entity/cat/graytabby_tame.png","./graytabby_tame.tga"],["textures/entity/cat/jellie_tame.png","./jellie_tame.tga"],["textures/entity/cat/ocelot_tame.png","./ocelot_tame.tga"],["textures/entity/cat/persian_tame.png","./persian_tame.tga"],["textures/entity/cat/ragdoll_tame.png","./ragdoll_tame.tga"],["textures/entity/cat/redtabby_tame.png","./redtabby_tame.tga"],["textures/entity/cat/siamesecat_tame.png","./siamesecat_tame.tga"],["textures/entity/cat/tabby_tame.png","./tabby_tame.tga"],["textures/entity/cat/tuxedo_tame.png","./tuxedo_tame.tga"],["textures/entity/cat/white_tame.png","./white_tame.tga"],["textures/entity/dragon/dragon.png","./dragon.tga"],["textures/entity/enderman/enderman.png","./enderman.tga"],["textures/entity/ghast/ghast_shooting.png","./ghast_shooting.tga"],["textures/entity/horse2/armor/horse_armor_leather.png","./horse_armor_leather.tga"],["textures/entity/sheep/sheep.png","./sheep.tga"],["textures/entity/slime/magmacube.png","./magmacube.tga"],["textures/entity/spider/cave_spider.png","./cave_spider.tga"],["textures/entity/spider/spider.png","./spider.tga"],["textures/entity/villager2/professions/armorer.png","./armorer.tga"],["textures/entity/villager2/professions/butcher.png","./butcher.tga"],["textures/entity/villager2/professions/cartographer.png","./cartographer.tga"],["textures/entity/villager2/professions/cleric.png","./cleric.tga"],["textures/entity/villager2/professions/farmer.png","./farmer.tga"],["textures/entity/villager2/professions/fisherman.png","./fisherman.tga"],["textures/entity/villager2/professions/fletcher.png","./fletcher.tga"],["textures/entity/villager2/professions/leatherworker.png","./leatherworker.tga"],["textures/entity/villager2/professions/librarian.png","./librarian.tga"],["textures/entity/villager2/professions/nitwit.png","./nitwit.tga"],["textures/entity/villager2/professions/shepherd.png","./shepherd.tga"],["textures/entity/villager2/professions/stonemason.png","./stonemason.tga"],["textures/entity/villager2/professions/toolsmith.png","./toolsmith.tga"],["textures/entity/villager2/professions/unskilled.png","./unskilled.tga"],["textures/entity/villager2/professions/weaponsmith.png","./weaponsmith.tga"],["textures/entity/wolf/wolf_tame.png","./wolf_tame.tga"],["textures/entity/zombie/drowned.png","./drowned.tga"],["textures/entity/zombie_villager2/professions/armorer.png","./armorer.tga"],["textures/entity/zombie_villager2/professions/butcher.png","./butcher.tga"],["textures/entity/zombie_villager2/professions/cartographer.png","./cartographer.tga"],["textures/entity/zombie_villager2/professions/cleric.png","./cleric.tga"],["textures/entity/zombie_villager2/professions/farmer.png","./farmer.tga"],["textures/entity/zombie_villager2/professions/fisherman.png","./fisherman.tga"],["textures/entity/zombie_villager2/professions/fletcher.png","./fletcher.tga"],["textures/entity/zombie_villager2/professions/leatherworker.png","./leatherworker.tga"],["textures/entity/zombie_villager2/professions/librarian.png","./librarian.tga"],["textures/entity/zombie_villager2/professions/nitwit.png","./nitwit.tga"],["textures/entity/zombie_villager2/professions/shepherd.png","./shepherd.tga"],["textures/entity/zombie_villager2/professions/stonemason.png","./stonemason.tga"],["textures/entity/zombie_villager2/professions/toolsmith.png","./toolsmith.tga"],["textures/entity/zombie_villager2/professions/weaponsmith.png","./weaponsmith.tga"],["textures/items/fireworks_charge.png","./fireworks_charge.tga"],["textures/items/leather_boots.png","./leather_boots.tga"],["textures/items/leather_helmet.png","./leather_helmet.tga"],["textures/items/leather_horse_armor.png","./leather_horse_armor.tga"],["textures/items/leather_leggings.png","./leather_leggings.tga"],["textures/models/armor/leather_1.png","./leather_1.tga"],["textures/models/armor/leather_2.png","./leather_2.tga"]];for(const e of t)yield e}},[]],[He,[]],[y,[]]];var on=class extends c{async input(){b.log(`Copy folder ${this.path} to ${this.temp}`),await h.a.copy(this.path,this.temp)}async name(){return g.a.basename(this.path)}},an=n(129),sn=n.n(an);var cn=class extends c{async input(){b.log(`Extract ${this.path} to ${this.temp}`),await sn()(this.path,this.temp)}async name(){return g.a.parse(this.path).name}};var ln=function(t,e){if(!h.a.existsSync(t))throw new a(`The input ${t} does not exists!`);switch(g.a.extname(t).toLowerCase().substr(1)){case"zip":return new cn(t,e);default:return new on(t,e)}};var un=class extends o{};class pn{constructor(t,e){if(this.constructor===pn)throw new un("Can't instantiate abstract class!");this.path=t,this.temp=e}async getPath(){return this.path}async output(){}}var fn=pn;var hn=class extends fn{async output(){b.log(`Move ${this.temp} to ${this.path}`),await h.a.rename(this.temp,this.path)}},dn=n(130);var gn=class extends fn{async output(){b.log(`Pack ${this.temp} to ${this.path}`),await Object(dn.zip)(this.temp,this.path),b.log(`Clean ${this.temp}`),await h.a.remove(this.temp)}};var mn=function(t,e){if(h.a.existsSync(t))throw new un(`The output ${t} exists already!`);switch(g.a.extname(t).toLowerCase().substr(1)){case"mcpack":case"zip":return new gn(t,e);default:return new hn(t,e)}},_n=n(44),bn=n.n(_n),yn=n(60);var vn=class extends o{};var xn=async function(t=bn.a.tmpdir()){if(b.log("Init temp folder"),!h.a.existsSync(t))throw new vn(`The temp ${t} does not exists!`);return t=b.fromPath(yn.productName,t),await h.a.remove(t),await h.a.mkdirs(t),t};e.default=async function(t,e,n={}){b.setVerbose(n.verbose);const r=await xn(n.temp),i=ln(t,r),o=mn(e,r);await i.input();for await(const t of async function*(t,e){for(const[n,r]of rn)yield new n(t,e,r)}(r,i))await nn(...await t.convert());return await o.output(),await o.getPath()}},function(t,e,n){var r=n(66),i=process.cwd,o=null,a=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return o||(o=i.call(process)),o};try{process.cwd()}catch(t){}var s=process.chdir;process.chdir=function(t){o=null,s.call(process,t)},t.exports=function(t){r.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(t){t.lchmod=function(e,n,i){t.open(e,r.O_WRONLY|r.O_SYMLINK,n,function(e,r){e?i&&i(e):t.fchmod(r,n,function(e){t.close(r,function(t){i&&i(e||t)})})})},t.lchmodSync=function(e,n){var i,o=t.openSync(e,r.O_WRONLY|r.O_SYMLINK,n),a=!0;try{i=t.fchmodSync(o,n),a=!1}finally{if(a)try{t.closeSync(o)}catch(t){}else t.closeSync(o)}return i}}(t);t.lutimes||function(t){r.hasOwnProperty("O_SYMLINK")?(t.lutimes=function(e,n,i,o){t.open(e,r.O_SYMLINK,function(e,r){e?o&&o(e):t.futimes(r,n,i,function(e){t.close(r,function(t){o&&o(e||t)})})})},t.lutimesSync=function(e,n,i){var o,a=t.openSync(e,r.O_SYMLINK),s=!0;try{o=t.futimesSync(a,n,i),s=!1}finally{if(s)try{t.closeSync(a)}catch(t){}else t.closeSync(a)}return o}):(t.lutimes=function(t,e,n,r){r&&process.nextTick(r)},t.lutimesSync=function(){})}(t);t.chown=o(t.chown),t.fchown=o(t.fchown),t.lchown=o(t.lchown),t.chmod=n(t.chmod),t.fchmod=n(t.fchmod),t.lchmod=n(t.lchmod),t.chownSync=s(t.chownSync),t.fchownSync=s(t.fchownSync),t.lchownSync=s(t.lchownSync),t.chmodSync=i(t.chmodSync),t.fchmodSync=i(t.fchmodSync),t.lchmodSync=i(t.lchmodSync),t.stat=c(t.stat),t.fstat=c(t.fstat),t.lstat=c(t.lstat),t.statSync=l(t.statSync),t.fstatSync=l(t.fstatSync),t.lstatSync=l(t.lstatSync),t.lchmod||(t.lchmod=function(t,e,n){n&&process.nextTick(n)},t.lchmodSync=function(){});t.lchown||(t.lchown=function(t,e,n,r){r&&process.nextTick(r)},t.lchownSync=function(){});"win32"===a&&(t.rename=(e=t.rename,function(n,r,i){var o=Date.now(),a=0;e(n,r,function s(c){if(c&&("EACCES"===c.code||"EPERM"===c.code)&&Date.now()-o<6e4)return setTimeout(function(){t.stat(r,function(t,o){t&&"ENOENT"===t.code?e(n,r,s):i(c)})},a),void(a<100&&(a+=10));i&&i(c)})}));var e;function n(e){return e?function(n,r,i){return e.call(t,n,r,function(t){u(t)&&(t=null),i&&i.apply(this,arguments)})}:e}function i(e){return e?function(n,r){try{return e.call(t,n,r)}catch(t){if(!u(t))throw t}}:e}function o(e){return e?function(n,r,i,o){return e.call(t,n,r,i,function(t){u(t)&&(t=null),o&&o.apply(this,arguments)})}:e}function s(e){return e?function(n,r,i){try{return e.call(t,n,r,i)}catch(t){if(!u(t))throw t}}:e}function c(e){return e?function(n,r,i){function o(t,e){e&&(e.uid<0&&(e.uid+=4294967296),e.gid<0&&(e.gid+=4294967296)),i&&i.apply(this,arguments)}return"function"==typeof r&&(i=r,r=null),r?e.call(t,n,r,o):e.call(t,n,o)}:e}function l(e){return e?function(n,r){var i=r?e.call(t,n,r):e.call(t,n);return i.uid<0&&(i.uid+=4294967296),i.gid<0&&(i.gid+=4294967296),i}:e}function u(t){if(!t)return!0;if("ENOSYS"===t.code)return!0;var e=!process.getuid||0!==process.getuid();return!(!e||"EINVAL"!==t.code&&"EPERM"!==t.code)}t.read=(f=t.read,function(e,n,r,i,o,a){var s;if(a&&"function"==typeof a){var c=0;s=function(l,u,p){if(l&&"EAGAIN"===l.code&&c<10)return c++,f.call(t,e,n,r,i,o,s);a.apply(this,arguments)}}return f.call(t,e,n,r,i,o,s)}),t.readSync=(p=t.readSync,function(e,n,r,i,o){for(var a=0;;)try{return p.call(t,e,n,r,i,o)}catch(t){if("EAGAIN"===t.code&&a<10){a++;continue}throw t}});var p;var f}},function(t,e,n){var r=n(7).Stream;t.exports=function(t){return{ReadStream:function e(n,i){if(!(this instanceof e))return new e(n,i);r.call(this);var o=this;this.path=n;this.fd=null;this.readable=!0;this.paused=!1;this.flags="r";this.mode=438;this.bufferSize=65536;i=i||{};var a=Object.keys(i);for(var s=0,c=a.length;sthis.end)throw new Error("start must be <= end");this.pos=this.start}if(null!==this.fd)return void process.nextTick(function(){o._read()});t.open(this.path,this.flags,this.mode,function(t,e){if(t)return o.emit("error",t),void(o.readable=!1);o.fd=e,o.emit("open",e),o._read()})},WriteStream:function e(n,i){if(!(this instanceof e))return new e(n,i);r.call(this);this.path=n;this.fd=null;this.writable=!0;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;i=i||{};var o=Object.keys(i);for(var a=0,s=o.length;a= zero");this.pos=this.start}this.busy=!1;this._queue=[];null===this.fd&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}},function(t,e,n){"use strict";t.exports=function(t){if(null===t||"object"!=typeof t)return t;if(t instanceof Object)var e={__proto__:t.__proto__};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}},function(t,e,n){"use strict";const r=n(6),i=n(1),o=n(10).mkdirsSync,a=n(69).utimesMillisSync,s=n(29);function c(t,e,n,o){if(!o.filter||o.filter(e,n))return function(t,e,n,o){const a=(o.dereference?r.statSync:r.lstatSync)(e);if(a.isDirectory())return function(t,e,n,i,o){if(!e)return function(t,e,n,i){return r.mkdirSync(n),u(e,n,i),r.chmodSync(n,t.mode)}(t,n,i,o);if(e&&!e.isDirectory())throw new Error(`Cannot overwrite non-directory '${i}' with directory '${n}'.`);return u(n,i,o)}(a,t,e,n,o);if(a.isFile()||a.isCharacterDevice()||a.isBlockDevice())return function(t,e,n,i,o){return e?function(t,e,n,i){if(i.overwrite)return r.unlinkSync(n),l(t,e,n,i);if(i.errorOnExist)throw new Error(`'${n}' already exists`)}(t,n,i,o):l(t,n,i,o)}(a,t,e,n,o);if(a.isSymbolicLink())return function(t,e,n,o){let a=r.readlinkSync(e);o.dereference&&(a=i.resolve(process.cwd(),a));if(t){let t;try{t=r.readlinkSync(n)}catch(t){if("EINVAL"===t.code||"UNKNOWN"===t.code)return r.symlinkSync(a,n);throw t}if(o.dereference&&(t=i.resolve(process.cwd(),t)),s.isSrcSubdir(a,t))throw new Error(`Cannot copy '${a}' to a subdirectory of itself, '${t}'.`);if(r.statSync(n).isDirectory()&&s.isSrcSubdir(t,a))throw new Error(`Cannot overwrite '${t}' with '${a}'.`);return function(t,e){return r.unlinkSync(e),r.symlinkSync(t,e)}(a,n)}return r.symlinkSync(a,n)}(t,e,n,o)}(t,e,n,o)}function l(t,e,i,o){return"function"==typeof r.copyFileSync?(r.copyFileSync(e,i),r.chmodSync(i,t.mode),o.preserveTimestamps?a(i,t.atime,t.mtime):void 0):function(t,e,i,o){const a=n(141)(65536),s=r.openSync(e,"r"),c=r.openSync(i,"w",t.mode);let l=0;for(;l(function(t,e,n,r){const o=i.join(e,t),a=i.join(n,t),{destStat:l}=s.checkPathsSync(o,a,"copy");return c(l,o,a,r)})(r,t,e,n))}t.exports=function(t,e,n){"function"==typeof n&&(n={filter:n}),(n=n||{}).clobber=!("clobber"in n&&!n.clobber),n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&"ia32"===process.arch&&console.warn("fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269");const{srcStat:a,destStat:l}=s.checkPathsSync(t,e,"copy");return s.checkParentPathsSync(t,a,e,"copy"),function(t,e,n,a){if(a.filter&&!a.filter(e,n))return;const s=i.dirname(n);return r.existsSync(s)||o(s),c(t,e,n,a)}(l,t,e,n)}},function(t,e,n){"use strict";const r=n(6),i=n(1),o=n(68).invalidWin32Path,a=parseInt("0777",8);t.exports=function t(e,n,s,c){if("function"==typeof n?(s=n,n={}):n&&"object"==typeof n||(n={mode:n}),"win32"===process.platform&&o(e)){const t=new Error(e+" contains invalid WIN32 path characters.");return t.code="EINVAL",s(t)}let l=n.mode;const u=n.fs||r;void 0===l&&(l=a&~process.umask()),c||(c=null),s=s||function(){},e=i.resolve(e),u.mkdir(e,l,r=>{if(!r)return s(null,c=c||e);switch(r.code){case"ENOENT":if(i.dirname(e)===e)return s(r);t(i.dirname(e),n,(r,i)=>{r?s(r,i):t(e,n,s,i)});break;default:u.stat(e,(t,e)=>{t||!e.isDirectory()?s(r,c):s(null,c)})}})}},function(t,e,n){"use strict";const r=n(6),i=n(1),o=n(68).invalidWin32Path,a=parseInt("0777",8);t.exports=function t(e,n,s){n&&"object"==typeof n||(n={mode:n});let c=n.mode;const l=n.fs||r;if("win32"===process.platform&&o(e)){const t=new Error(e+" contains invalid WIN32 path characters.");throw t.code="EINVAL",t}void 0===c&&(c=a&~process.umask()),s||(s=null),e=i.resolve(e);try{l.mkdirSync(e,c),s=s||e}catch(r){if("ENOENT"===r.code){if(i.dirname(e)===e)throw r;s=t(i.dirname(e),n,s),t(e,n,s)}else{let t;try{t=l.statSync(e)}catch(t){throw r}if(!t.isDirectory())throw r}}return s}},function(t,e,n){"use strict";t.exports=function(t){if("function"==typeof Buffer.allocUnsafe)try{return Buffer.allocUnsafe(t)}catch(e){return new Buffer(t)}return new Buffer(t)}},function(t,e,n){"use strict";const r=n(6),i=n(1),o=n(10).mkdirs,a=n(13).pathExists,s=n(69).utimesMillis,c=n(29);function l(t,e,n,r,s){const c=i.dirname(n);a(c,(i,a)=>i?s(i):a?p(t,e,n,r,s):void o(c,i=>i?s(i):p(t,e,n,r,s)))}function u(t,e,n,r,i,o){Promise.resolve(i.filter(n,r)).then(a=>a?t(e,n,r,i,o):o(),t=>o(t))}function p(t,e,n,r,i){return r.filter?u(f,t,e,n,r,i):f(t,e,n,r,i)}function f(t,e,n,i,o){(i.dereference?r.stat:r.lstat)(e,(a,s)=>a?o(a):s.isDirectory()?function(t,e,n,i,o,a){if(!e)return function(t,e,n,i,o){r.mkdir(n,a=>{if(a)return o(a);g(e,n,i,e=>e?o(e):r.chmod(n,t.mode,o))})}(t,n,i,o,a);if(e&&!e.isDirectory())return a(new Error(`Cannot overwrite non-directory '${i}' with directory '${n}'.`));return g(n,i,o,a)}(s,t,e,n,i,o):s.isFile()||s.isCharacterDevice()||s.isBlockDevice()?function(t,e,n,i,o,a){return e?function(t,e,n,i,o){if(!i.overwrite)return i.errorOnExist?o(new Error(`'${n}' already exists`)):o();r.unlink(n,r=>r?o(r):h(t,e,n,i,o))}(t,n,i,o,a):h(t,n,i,o,a)}(s,t,e,n,i,o):s.isSymbolicLink()?_(t,e,n,i,o):void 0)}function h(t,e,n,i,o){return"function"==typeof r.copyFile?r.copyFile(e,n,e=>e?o(e):d(t,n,i,o)):function(t,e,n,i,o){const a=r.createReadStream(e);a.on("error",t=>o(t)).once("open",()=>{const e=r.createWriteStream(n,{mode:t.mode});e.on("error",t=>o(t)).on("open",()=>a.pipe(e)).once("close",()=>d(t,n,i,o))})}(t,e,n,i,o)}function d(t,e,n,i){r.chmod(e,t.mode,r=>r?i(r):n.preserveTimestamps?s(e,t.atime,t.mtime,i):i())}function g(t,e,n,i){r.readdir(t,(r,o)=>r?i(r):m(o,t,e,n,i))}function m(t,e,n,r,o){const a=t.pop();return a?function(t,e,n,r,o,a){const s=i.join(n,e),l=i.join(r,e);c.checkPaths(s,l,"copy",(e,i)=>{if(e)return a(e);const{destStat:c}=i;p(c,s,l,o,e=>e?a(e):m(t,n,r,o,a))})}(t,a,e,n,r,o):o()}function _(t,e,n,o,a){r.readlink(e,(e,s)=>e?a(e):(o.dereference&&(s=i.resolve(process.cwd(),s)),t?void r.readlink(n,(e,l)=>e?"EINVAL"===e.code||"UNKNOWN"===e.code?r.symlink(s,n,a):a(e):(o.dereference&&(l=i.resolve(process.cwd(),l)),c.isSrcSubdir(s,l)?a(new Error(`Cannot copy '${s}' to a subdirectory of itself, '${l}'.`)):t.isDirectory()&&c.isSrcSubdir(l,s)?a(new Error(`Cannot overwrite '${l}' with '${s}'.`)):function(t,e,n){r.unlink(e,i=>i?n(i):r.symlink(t,e,n))}(s,n,a))):r.symlink(s,n,a)))}t.exports=function(t,e,n,r){"function"!=typeof n||r?"function"==typeof n&&(n={filter:n}):(r=n,n={}),r=r||function(){},(n=n||{}).clobber=!("clobber"in n&&!n.clobber),n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&"ia32"===process.arch&&console.warn("fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269"),c.checkPaths(t,e,"copy",(i,o)=>{if(i)return r(i);const{srcStat:a,destStat:s}=o;c.checkParentPaths(t,a,e,"copy",i=>i?r(i):n.filter?u(l,s,t,e,n,r):l(s,t,e,n,r))})}},function(t,e,n){"use strict";const r=n(8).fromCallback,i=n(6),o=n(1),a=n(10),s=n(30),c=r(function(t,e){e=e||function(){},i.readdir(t,(n,r)=>{if(n)return a.mkdirs(t,e);r=r.map(e=>o.join(t,e)),function t(){const n=r.pop();if(!n)return e();s.remove(n,n=>{if(n)return e(n);t()})}()})});function l(t){let e;try{e=i.readdirSync(t)}catch(e){return a.mkdirsSync(t)}e.forEach(e=>{e=o.join(t,e),s.removeSync(e)})}t.exports={emptyDirSync:l,emptydirSync:l,emptyDir:c,emptydir:c}},function(t,e,n){"use strict";const r=n(6),i=n(1),o=n(20),a="win32"===process.platform;function s(t){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(e=>{t[e]=t[e]||r[e],t[e+="Sync"]=t[e]||r[e]}),t.maxBusyTries=t.maxBusyTries||3}function c(t,e,n){let r=0;"function"==typeof e&&(n=e,e={}),o(t,"rimraf: missing path"),o.strictEqual(typeof t,"string","rimraf: path should be a string"),o.strictEqual(typeof n,"function","rimraf: callback function required"),o(e,"rimraf: invalid options argument provided"),o.strictEqual(typeof e,"object","rimraf: options should be object"),s(e),l(t,e,function i(o){if(o){if(("EBUSY"===o.code||"ENOTEMPTY"===o.code||"EPERM"===o.code)&&rl(t,e,i),100*r)}"ENOENT"===o.code&&(o=null)}n(o)})}function l(t,e,n){o(t),o(e),o("function"==typeof n),e.lstat(t,(r,i)=>r&&"ENOENT"===r.code?n(null):r&&"EPERM"===r.code&&a?u(t,e,r,n):i&&i.isDirectory()?f(t,e,r,n):void e.unlink(t,r=>{if(r){if("ENOENT"===r.code)return n(null);if("EPERM"===r.code)return a?u(t,e,r,n):f(t,e,r,n);if("EISDIR"===r.code)return f(t,e,r,n)}return n(r)}))}function u(t,e,n,r){o(t),o(e),o("function"==typeof r),n&&o(n instanceof Error),e.chmod(t,438,i=>{i?r("ENOENT"===i.code?null:n):e.stat(t,(i,o)=>{i?r("ENOENT"===i.code?null:n):o.isDirectory()?f(t,e,n,r):e.unlink(t,r)})})}function p(t,e,n){let r;o(t),o(e),n&&o(n instanceof Error);try{e.chmodSync(t,438)}catch(t){if("ENOENT"===t.code)return;throw n}try{r=e.statSync(t)}catch(t){if("ENOENT"===t.code)return;throw n}r.isDirectory()?d(t,e,n):e.unlinkSync(t)}function f(t,e,n,r){o(t),o(e),n&&o(n instanceof Error),o("function"==typeof r),e.rmdir(t,a=>{!a||"ENOTEMPTY"!==a.code&&"EEXIST"!==a.code&&"EPERM"!==a.code?a&&"ENOTDIR"===a.code?r(n):r(a):function(t,e,n){o(t),o(e),o("function"==typeof n),e.readdir(t,(r,o)=>{if(r)return n(r);let a,s=o.length;if(0===s)return e.rmdir(t,n);o.forEach(r=>{c(i.join(t,r),e,r=>{if(!a)return r?n(a=r):void(0==--s&&e.rmdir(t,n))})})})}(t,e,r)})}function h(t,e){let n;s(e=e||{}),o(t,"rimraf: missing path"),o.strictEqual(typeof t,"string","rimraf: path should be a string"),o(e,"rimraf: missing options"),o.strictEqual(typeof e,"object","rimraf: options should be object");try{n=e.lstatSync(t)}catch(n){if("ENOENT"===n.code)return;"EPERM"===n.code&&a&&p(t,e,n)}try{n&&n.isDirectory()?d(t,e,null):e.unlinkSync(t)}catch(n){if("ENOENT"===n.code)return;if("EPERM"===n.code)return a?p(t,e,n):d(t,e,n);if("EISDIR"!==n.code)throw n;d(t,e,n)}}function d(t,e,n){o(t),o(e),n&&o(n instanceof Error);try{e.rmdirSync(t)}catch(r){if("ENOTDIR"===r.code)throw n;if("ENOTEMPTY"===r.code||"EEXIST"===r.code||"EPERM"===r.code)!function(t,e){if(o(t),o(e),e.readdirSync(t).forEach(n=>h(i.join(t,n),e)),!a){const n=e.rmdirSync(t,e);return n}{const n=Date.now();do{try{const n=e.rmdirSync(t,e);return n}catch(t){}}while(Date.now()-n<500)}}(t,e);else if("ENOENT"!==r.code)throw r}}t.exports=c,c.sync=h},function(t,e,n){"use strict";const r=n(146),i=n(147),o=n(148);t.exports={createFile:r.createFile,createFileSync:r.createFileSync,ensureFile:r.createFile,ensureFileSync:r.createFileSync,createLink:i.createLink,createLinkSync:i.createLinkSync,ensureLink:i.createLink,ensureLinkSync:i.createLinkSync,createSymlink:o.createSymlink,createSymlinkSync:o.createSymlinkSync,ensureSymlink:o.createSymlink,ensureSymlinkSync:o.createSymlinkSync}},function(t,e,n){"use strict";const r=n(8).fromCallback,i=n(1),o=n(6),a=n(10),s=n(13).pathExists;t.exports={createFile:r(function(t,e){function n(){o.writeFile(t,"",t=>{if(t)return e(t);e()})}o.stat(t,(r,o)=>{if(!r&&o.isFile())return e();const c=i.dirname(t);s(c,(t,r)=>t?e(t):r?n():void a.mkdirs(c,t=>{if(t)return e(t);n()}))})}),createFileSync:function(t){let e;try{e=o.statSync(t)}catch(t){}if(e&&e.isFile())return;const n=i.dirname(t);o.existsSync(n)||a.mkdirsSync(n),o.writeFileSync(t,"")}}},function(t,e,n){"use strict";const r=n(8).fromCallback,i=n(1),o=n(6),a=n(10),s=n(13).pathExists;t.exports={createLink:r(function(t,e,n){function r(t,e){o.link(t,e,t=>{if(t)return n(t);n(null)})}s(e,(c,l)=>c?n(c):l?n(null):void o.lstat(t,o=>{if(o)return o.message=o.message.replace("lstat","ensureLink"),n(o);const c=i.dirname(e);s(c,(i,o)=>i?n(i):o?r(t,e):void a.mkdirs(c,i=>{if(i)return n(i);r(t,e)}))}))}),createLinkSync:function(t,e){if(o.existsSync(e))return;try{o.lstatSync(t)}catch(t){throw t.message=t.message.replace("lstat","ensureLink"),t}const n=i.dirname(e);return o.existsSync(n)?o.linkSync(t,e):(a.mkdirsSync(n),o.linkSync(t,e))}}},function(t,e,n){"use strict";const r=n(8).fromCallback,i=n(1),o=n(6),a=n(10),s=a.mkdirs,c=a.mkdirsSync,l=n(149),u=l.symlinkPaths,p=l.symlinkPathsSync,f=n(150),h=f.symlinkType,d=f.symlinkTypeSync,g=n(13).pathExists;t.exports={createSymlink:r(function(t,e,n,r){r="function"==typeof n?n:r,n="function"!=typeof n&&n,g(e,(a,c)=>a?r(a):c?r(null):void u(t,e,(a,c)=>{if(a)return r(a);t=c.toDst,h(c.toCwd,n,(n,a)=>{if(n)return r(n);const c=i.dirname(e);g(c,(n,i)=>n?r(n):i?o.symlink(t,e,a,r):void s(c,n=>{if(n)return r(n);o.symlink(t,e,a,r)}))})}))}),createSymlinkSync:function(t,e,n){if(o.existsSync(e))return;const r=p(t,e);t=r.toDst,n=d(r.toCwd,n);const a=i.dirname(e);return o.existsSync(a)?o.symlinkSync(t,e,n):(c(a),o.symlinkSync(t,e,n))}}},function(t,e,n){"use strict";const r=n(1),i=n(6),o=n(13).pathExists;t.exports={symlinkPaths:function(t,e,n){if(r.isAbsolute(t))return i.lstat(t,e=>e?(e.message=e.message.replace("lstat","ensureSymlink"),n(e)):n(null,{toCwd:t,toDst:t}));{const a=r.dirname(e),s=r.join(a,t);return o(s,(e,o)=>e?n(e):o?n(null,{toCwd:s,toDst:t}):i.lstat(t,e=>e?(e.message=e.message.replace("lstat","ensureSymlink"),n(e)):n(null,{toCwd:t,toDst:r.relative(a,t)})))}},symlinkPathsSync:function(t,e){let n;if(r.isAbsolute(t)){if(!(n=i.existsSync(t)))throw new Error("absolute srcpath does not exist");return{toCwd:t,toDst:t}}{const o=r.dirname(e),a=r.join(o,t);if(n=i.existsSync(a))return{toCwd:a,toDst:t};if(!(n=i.existsSync(t)))throw new Error("relative srcpath does not exist");return{toCwd:t,toDst:r.relative(o,t)}}}}},function(t,e,n){"use strict";const r=n(6);t.exports={symlinkType:function(t,e,n){if(n="function"==typeof e?e:n,e="function"!=typeof e&&e)return n(null,e);r.lstat(t,(t,r)=>{if(t)return n(null,"file");e=r&&r.isDirectory()?"dir":"file",n(null,e)})},symlinkTypeSync:function(t,e){let n;if(e)return e;try{n=r.lstatSync(t)}catch(t){return"file"}return n&&n.isDirectory()?"dir":"file"}}},function(t,e,n){"use strict";const r=n(8).fromCallback,i=n(49);i.outputJson=r(n(153)),i.outputJsonSync=n(154),i.outputJSON=i.outputJson,i.outputJSONSync=i.outputJsonSync,i.writeJSON=i.writeJson,i.writeJSONSync=i.writeJsonSync,i.readJSON=i.readJson,i.readJSONSync=i.readJsonSync,t.exports=i},function(t,e,n){var r;try{r=n(6)}catch(t){r=n(5)}function i(t,e){var n,r="\n";return"object"==typeof e&&null!==e&&(e.spaces&&(n=e.spaces),e.EOL&&(r=e.EOL)),JSON.stringify(t,e?e.replacer:null,n).replace(/\n/g,r)+r}function o(t){return Buffer.isBuffer(t)&&(t=t.toString("utf8")),t=t.replace(/^\uFEFF/,"")}var a={readFile:function(t,e,n){null==n&&(n=e,e={}),"string"==typeof e&&(e={encoding:e});var i=(e=e||{}).fs||r,a=!0;"throws"in e&&(a=e.throws),i.readFile(t,e,function(r,i){if(r)return n(r);var s;i=o(i);try{s=JSON.parse(i,e?e.reviver:null)}catch(e){return a?(e.message=t+": "+e.message,n(e)):n(null,null)}n(null,s)})},readFileSync:function(t,e){"string"==typeof(e=e||{})&&(e={encoding:e});var n=e.fs||r,i=!0;"throws"in e&&(i=e.throws);try{var a=n.readFileSync(t,e);return a=o(a),JSON.parse(a,e.reviver)}catch(e){if(i)throw e.message=t+": "+e.message,e;return null}},writeFile:function(t,e,n,o){null==o&&(o=n,n={});var a=(n=n||{}).fs||r,s="";try{s=i(e,n)}catch(t){return void(o&&o(t,null))}a.writeFile(t,s,n,o)},writeFileSync:function(t,e,n){var o=(n=n||{}).fs||r,a=i(e,n);return o.writeFileSync(t,a,n)}};t.exports=a},function(t,e,n){"use strict";const r=n(1),i=n(10),o=n(13).pathExists,a=n(49);t.exports=function(t,e,n,s){"function"==typeof n&&(s=n,n={});const c=r.dirname(t);o(c,(r,o)=>r?s(r):o?a.writeJson(t,e,n,s):void i.mkdirs(c,r=>{if(r)return s(r);a.writeJson(t,e,n,s)}))}},function(t,e,n){"use strict";const r=n(6),i=n(1),o=n(10),a=n(49);t.exports=function(t,e,n){const s=i.dirname(t);r.existsSync(s)||o.mkdirsSync(s),a.writeJsonSync(t,e,n)}},function(t,e,n){"use strict";t.exports={moveSync:n(156)}},function(t,e,n){"use strict";const r=n(6),i=n(1),o=n(67).copySync,a=n(30).removeSync,s=n(10).mkdirpSync,c=n(29);function l(t,e,n){try{r.renameSync(t,e)}catch(r){if("EXDEV"!==r.code)throw r;return function(t,e,n){return o(t,e,{overwrite:n,errorOnExist:!0}),a(t)}(t,e,n)}}t.exports=function(t,e,n){const o=(n=n||{}).overwrite||n.clobber||!1,{srcStat:u}=c.checkPathsSync(t,e,"move");return c.checkParentPathsSync(t,u,e,"move"),s(i.dirname(e)),function(t,e,n){if(n)return a(e),l(t,e,n);if(r.existsSync(e))throw new Error("dest already exists.");return l(t,e,n)}(t,e,o)}},function(t,e,n){"use strict";const r=n(8).fromCallback;t.exports={move:r(n(158))}},function(t,e,n){"use strict";const r=n(6),i=n(1),o=n(70).copy,a=n(30).remove,s=n(10).mkdirp,c=n(13).pathExists,l=n(29);function u(t,e,n,i){r.rename(t,e,r=>r?"EXDEV"!==r.code?i(r):function(t,e,n,r){o(t,e,{overwrite:n,errorOnExist:!0},e=>e?r(e):a(t,r))}(t,e,n,i):i())}t.exports=function(t,e,n,r){"function"==typeof n&&(r=n,n={});const o=n.overwrite||n.clobber||!1;l.checkPaths(t,e,"move",(n,p)=>{if(n)return r(n);const{srcStat:f}=p;l.checkParentPaths(t,f,e,"move",n=>{if(n)return r(n);s(i.dirname(e),n=>n?r(n):function(t,e,n,r){if(n)return a(e,i=>i?r(i):u(t,e,n,r));c(e,(i,o)=>i?r(i):o?r(new Error("dest already exists.")):u(t,e,n,r))}(t,e,o,r))})})}},function(t,e,n){"use strict";const r=n(8).fromCallback,i=n(6),o=n(1),a=n(10),s=n(13).pathExists;t.exports={outputFile:r(function(t,e,n,r){"function"==typeof n&&(r=n,n="utf8");const c=o.dirname(t);s(c,(o,s)=>o?r(o):s?i.writeFile(t,e,n,r):void a.mkdirs(c,o=>{if(o)return r(o);i.writeFile(t,e,n,r)}))}),outputFileSync:function(t,...e){const n=o.dirname(t);if(i.existsSync(n))return i.writeFileSync(t,...e);a.mkdirsSync(n),i.writeFileSync(t,...e)}}},function(t,e,n){"use strict";function r(t,e){if(!(t&&e&&t.length&&e.length))throw new Error("Bad alphabet");this.srcAlphabet=t,this.dstAlphabet=e}r.prototype.convert=function(t){var e,n,r,i={},o=this.srcAlphabet.length,a=this.dstAlphabet.length,s=t.length,c="string"==typeof t?"":[];if(!this.isValid(t))throw new Error('Number "'+t+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return t;for(e=0;e=a?(i[r++]=parseInt(n/a,10),n%=a):r>0&&(i[r++]=0);s=r,c=this.dstAlphabet.slice(n,n+1).concat(c)}while(0!==r);return c},r.prototype.isValid=function(t){for(var e=0;e0&&218!==r;){if(255!==t.nextUInt8())throw new Error("Invalid JPEG section offset");n=(r=t.nextUInt8())>=208&&r<=217||218===r?0:t.nextUInt16()-2,e(r,t.branch(0,n)),t.skip(n)}},getSizeFromSOFSection:function(t){return t.skip(1),{height:t.nextUInt16(),width:t.nextUInt16()}},getSectionName:function(t){var e,n;switch(t){case 216:e="SOI";break;case 196:e="DHT";break;case 219:e="DQT";break;case 221:e="DRI";break;case 218:e="SOS";break;case 254:e="COM";break;case 217:e="EOI";break;default:t>=224&&t<=239?(e="APP",n=t-224):t>=192&&t<=207&&196!==t&&200!==t&&204!==t?(e="SOF",n=t-192):t>=208&&t<=215&&(e="RST",n=t-208)}var r={name:e};return"number"==typeof n&&(r.index=n),r}}},function(t,e,n){var r=n(73),i=n(167),o=[{section:r.GPSIFD,type:2,name:"GPSLatitude",refType:1,refName:"GPSLatitudeRef",posVal:"N"},{section:r.GPSIFD,type:4,name:"GPSLongitude",refType:3,refName:"GPSLongitudeRef",posVal:"E"}],a=[{section:r.SubIFD,type:306,name:"ModifyDate"},{section:r.SubIFD,type:36867,name:"DateTimeOriginal"},{section:r.SubIFD,type:36868,name:"CreateDate"},{section:r.SubIFD,type:306,name:"ModifyDate"}];t.exports={castDegreeValues:function(t,e){o.forEach(function(n){var r=t(n);if(r){var i=t({section:n.section,type:n.refType,name:n.refName})===n.posVal?1:-1,o=(r[0]+r[1]/60+r[2]/3600)*i;e(n,o)}})},castDateValues:function(t,e){a.forEach(function(n){var r=t(n);if(r){var o=i.parseExifDate(r);void 0!==o&&e(n,o)}})},simplifyValue:function(t,e){return Array.isArray(t)&&1===(t=t.map(function(t){return 10===e||5===e?t[0]/t[1]:t})).length&&(t=t[0]),t}}},function(t,e){function n(t){return parseInt(t,10)}var r=3600,i=60;function o(t,e){t=t.map(n),e=e.map(n);var r=t[0],i=t[1]-1,o=t[2],a=e[0],s=e[1],c=e[2];return Date.UTC(r,i,o,a,s,c,0)/1e3}function a(t){var e=t.substr(0,10).split("-"),a=t.substr(11,8).split(":"),s=t.substr(19,6).split(":").map(n),c=s[0]*r+s[1]*i,l=o(e,a);if("number"==typeof(l-=c)&&!isNaN(l))return l}function s(t){var e=t.split(" "),n=o(e[0].split(":"),e[1].split(":"));if("number"==typeof n&&!isNaN(n))return n}t.exports={parseDateWithSpecFormat:s,parseDateWithTimezoneFormat:a,parseExifDate:function(t){var e=19===t.length&&":"===t.charAt(4);return 25===t.length&&"T"===t.charAt(10)?a(t):e?s(t):void 0}}},function(t,e){t.exports={exif:{1:"InteropIndex",2:"InteropVersion",11:"ProcessingSoftware",254:"SubfileType",255:"OldSubfileType",256:"ImageWidth",257:"ImageHeight",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",263:"Thresholding",264:"CellWidth",265:"CellLength",266:"FillOrder",269:"DocumentName",270:"ImageDescription",271:"Make",272:"Model",273:"StripOffsets",274:"Orientation",277:"SamplesPerPixel",278:"RowsPerStrip",279:"StripByteCounts",280:"MinSampleValue",281:"MaxSampleValue",282:"XResolution",283:"YResolution",284:"PlanarConfiguration",285:"PageName",286:"XPosition",287:"YPosition",288:"FreeOffsets",289:"FreeByteCounts",290:"GrayResponseUnit",291:"GrayResponseCurve",292:"T4Options",293:"T6Options",296:"ResolutionUnit",297:"PageNumber",300:"ColorResponseUnit",301:"TransferFunction",305:"Software",306:"ModifyDate",315:"Artist",316:"HostComputer",317:"Predictor",318:"WhitePoint",319:"PrimaryChromaticities",320:"ColorMap",321:"HalftoneHints",322:"TileWidth",323:"TileLength",324:"TileOffsets",325:"TileByteCounts",326:"BadFaxLines",327:"CleanFaxData",328:"ConsecutiveBadFaxLines",330:"SubIFD",332:"InkSet",333:"InkNames",334:"NumberofInks",336:"DotRange",337:"TargetPrinter",338:"ExtraSamples",339:"SampleFormat",340:"SMinSampleValue",341:"SMaxSampleValue",342:"TransferRange",343:"ClipPath",344:"XClipPathUnits",345:"YClipPathUnits",346:"Indexed",347:"JPEGTables",351:"OPIProxy",400:"GlobalParametersIFD",401:"ProfileType",402:"FaxProfile",403:"CodingMethods",404:"VersionYear",405:"ModeNumber",433:"Decode",434:"DefaultImageColor",435:"T82Options",437:"JPEGTables",512:"JPEGProc",513:"ThumbnailOffset",514:"ThumbnailLength",515:"JPEGRestartInterval",517:"JPEGLosslessPredictors",518:"JPEGPointTransforms",519:"JPEGQTables",520:"JPEGDCTables",521:"JPEGACTables",529:"YCbCrCoefficients",530:"YCbCrSubSampling",531:"YCbCrPositioning",532:"ReferenceBlackWhite",559:"StripRowCounts",700:"ApplicationNotes",999:"USPTOMiscellaneous",4096:"RelatedImageFileFormat",4097:"RelatedImageWidth",4098:"RelatedImageHeight",18246:"Rating",18247:"XP_DIP_XML",18248:"StitchInfo",18249:"RatingPercent",32781:"ImageID",32931:"WangTag1",32932:"WangAnnotation",32933:"WangTag3",32934:"WangTag4",32995:"Matteing",32996:"DataType",32997:"ImageDepth",32998:"TileDepth",33405:"Model2",33421:"CFARepeatPatternDim",33422:"CFAPattern2",33423:"BatteryLevel",33424:"KodakIFD",33432:"Copyright",33434:"ExposureTime",33437:"FNumber",33445:"MDFileTag",33446:"MDScalePixel",33447:"MDColorTable",33448:"MDLabName",33449:"MDSampleInfo",33450:"MDPrepDate",33451:"MDPrepTime",33452:"MDFileUnits",33550:"PixelScale",33589:"AdventScale",33590:"AdventRevision",33628:"UIC1Tag",33629:"UIC2Tag",33630:"UIC3Tag",33631:"UIC4Tag",33723:"IPTC-NAA",33918:"IntergraphPacketData",33919:"IntergraphFlagRegisters",33920:"IntergraphMatrix",33921:"INGRReserved",33922:"ModelTiePoint",34016:"Site",34017:"ColorSequence",34018:"IT8Header",34019:"RasterPadding",34020:"BitsPerRunLength",34021:"BitsPerExtendedRunLength",34022:"ColorTable",34023:"ImageColorIndicator",34024:"BackgroundColorIndicator",34025:"ImageColorValue",34026:"BackgroundColorValue",34027:"PixelIntensityRange",34028:"TransparencyIndicator",34029:"ColorCharacterization",34030:"HCUsage",34031:"TrapIndicator",34032:"CMYKEquivalent",34118:"SEMInfo",34152:"AFCP_IPTC",34232:"PixelMagicJBIGOptions",34264:"ModelTransform",34306:"WB_GRGBLevels",34310:"LeafData",34377:"PhotoshopSettings",34665:"ExifOffset",34675:"ICC_Profile",34687:"TIFF_FXExtensions",34688:"MultiProfiles",34689:"SharedData",34690:"T88Options",34732:"ImageLayer",34735:"GeoTiffDirectory",34736:"GeoTiffDoubleParams",34737:"GeoTiffAsciiParams",34850:"ExposureProgram",34852:"SpectralSensitivity",34853:"GPSInfo",34855:"ISO",34856:"Opto-ElectricConvFactor",34857:"Interlace",34858:"TimeZoneOffset",34859:"SelfTimerMode",34864:"SensitivityType",34865:"StandardOutputSensitivity",34866:"RecommendedExposureIndex",34867:"ISOSpeed",34868:"ISOSpeedLatitudeyyy",34869:"ISOSpeedLatitudezzz",34908:"FaxRecvParams",34909:"FaxSubAddress",34910:"FaxRecvTime",34954:"LeafSubIFD",36864:"ExifVersion",36867:"DateTimeOriginal",36868:"CreateDate",37121:"ComponentsConfiguration",37122:"CompressedBitsPerPixel",37377:"ShutterSpeedValue",37378:"ApertureValue",37379:"BrightnessValue",37380:"ExposureCompensation",37381:"MaxApertureValue",37382:"SubjectDistance",37383:"MeteringMode",37384:"LightSource",37385:"Flash",37386:"FocalLength",37387:"FlashEnergy",37388:"SpatialFrequencyResponse",37389:"Noise",37390:"FocalPlaneXResolution",37391:"FocalPlaneYResolution",37392:"FocalPlaneResolutionUnit",37393:"ImageNumber",37394:"SecurityClassification",37395:"ImageHistory",37396:"SubjectArea",37397:"ExposureIndex",37398:"TIFF-EPStandardID",37399:"SensingMethod",37434:"CIP3DataFile",37435:"CIP3Sheet",37436:"CIP3Side",37439:"StoNits",37500:"MakerNote",37510:"UserComment",37520:"SubSecTime",37521:"SubSecTimeOriginal",37522:"SubSecTimeDigitized",37679:"MSDocumentText",37680:"MSPropertySetStorage",37681:"MSDocumentTextPosition",37724:"ImageSourceData",40091:"XPTitle",40092:"XPComment",40093:"XPAuthor",40094:"XPKeywords",40095:"XPSubject",40960:"FlashpixVersion",40961:"ColorSpace",40962:"ExifImageWidth",40963:"ExifImageHeight",40964:"RelatedSoundFile",40965:"InteropOffset",41483:"FlashEnergy",41484:"SpatialFrequencyResponse",41485:"Noise",41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:"FocalPlaneResolutionUnit",41489:"ImageNumber",41490:"SecurityClassification",41491:"ImageHistory",41492:"SubjectLocation",41493:"ExposureIndex",41494:"TIFF-EPStandardID",41495:"SensingMethod",41728:"FileSource",41729:"SceneType",41730:"CFAPattern",41985:"CustomRendered",41986:"ExposureMode",41987:"WhiteBalance",41988:"DigitalZoomRatio",41989:"FocalLengthIn35mmFormat",41990:"SceneCaptureType",41991:"GainControl",41992:"Contrast",41993:"Saturation",41994:"Sharpness",41995:"DeviceSettingDescription",41996:"SubjectDistanceRange",42016:"ImageUniqueID",42032:"OwnerName",42033:"SerialNumber",42034:"LensInfo",42035:"LensMake",42036:"LensModel",42037:"LensSerialNumber",42112:"GDALMetadata",42113:"GDALNoData",42240:"Gamma",44992:"ExpandSoftware",44993:"ExpandLens",44994:"ExpandFilm",44995:"ExpandFilterLens",44996:"ExpandScanner",44997:"ExpandFlashLamp",48129:"PixelFormat",48130:"Transformation",48131:"Uncompressed",48132:"ImageType",48256:"ImageWidth",48257:"ImageHeight",48258:"WidthResolution",48259:"HeightResolution",48320:"ImageOffset",48321:"ImageByteCount",48322:"AlphaOffset",48323:"AlphaByteCount",48324:"ImageDataDiscard",48325:"AlphaDataDiscard",50215:"OceScanjobDesc",50216:"OceApplicationSelector",50217:"OceIDNumber",50218:"OceImageLogic",50255:"Annotations",50341:"PrintIM",50560:"USPTOOriginalContentType",50706:"DNGVersion",50707:"DNGBackwardVersion",50708:"UniqueCameraModel",50709:"LocalizedCameraModel",50710:"CFAPlaneColor",50711:"CFALayout",50712:"LinearizationTable",50713:"BlackLevelRepeatDim",50714:"BlackLevel",50715:"BlackLevelDeltaH",50716:"BlackLevelDeltaV",50717:"WhiteLevel",50718:"DefaultScale",50719:"DefaultCropOrigin",50720:"DefaultCropSize",50721:"ColorMatrix1",50722:"ColorMatrix2",50723:"CameraCalibration1",50724:"CameraCalibration2",50725:"ReductionMatrix1",50726:"ReductionMatrix2",50727:"AnalogBalance",50728:"AsShotNeutral",50729:"AsShotWhiteXY",50730:"BaselineExposure",50731:"BaselineNoise",50732:"BaselineSharpness",50733:"BayerGreenSplit",50734:"LinearResponseLimit",50735:"CameraSerialNumber",50736:"DNGLensInfo",50737:"ChromaBlurRadius",50738:"AntiAliasStrength",50739:"ShadowScale",50740:"DNGPrivateData",50741:"MakerNoteSafety",50752:"RawImageSegmentation",50778:"CalibrationIlluminant1",50779:"CalibrationIlluminant2",50780:"BestQualityScale",50781:"RawDataUniqueID",50784:"AliasLayerMetadata",50827:"OriginalRawFileName",50828:"OriginalRawFileData",50829:"ActiveArea",50830:"MaskedAreas",50831:"AsShotICCProfile",50832:"AsShotPreProfileMatrix",50833:"CurrentICCProfile",50834:"CurrentPreProfileMatrix",50879:"ColorimetricReference",50898:"PanasonicTitle",50899:"PanasonicTitle2",50931:"CameraCalibrationSig",50932:"ProfileCalibrationSig",50933:"ProfileIFD",50934:"AsShotProfileName",50935:"NoiseReductionApplied",50936:"ProfileName",50937:"ProfileHueSatMapDims",50938:"ProfileHueSatMapData1",50939:"ProfileHueSatMapData2",50940:"ProfileToneCurve",50941:"ProfileEmbedPolicy",50942:"ProfileCopyright",50964:"ForwardMatrix1",50965:"ForwardMatrix2",50966:"PreviewApplicationName",50967:"PreviewApplicationVersion",50968:"PreviewSettingsName",50969:"PreviewSettingsDigest",50970:"PreviewColorSpace",50971:"PreviewDateTime",50972:"RawImageDigest",50973:"OriginalRawFileDigest",50974:"SubTileBlockSize",50975:"RowInterleaveFactor",50981:"ProfileLookTableDims",50982:"ProfileLookTableData",51008:"OpcodeList1",51009:"OpcodeList2",51022:"OpcodeList3",51041:"NoiseProfile",51043:"TimeCodes",51044:"FrameRate",51058:"TStop",51081:"ReelName",51089:"OriginalDefaultFinalSize",51090:"OriginalBestQualitySize",51091:"OriginalDefaultCropSize",51105:"CameraLabel",51107:"ProfileHueSatMapEncoding",51108:"ProfileLookTableEncoding",51109:"BaselineExposureOffset",51110:"DefaultBlackRender",51111:"NewRawImageDigest",51112:"RawToPreviewGain",51125:"DefaultUserCrop",59932:"Padding",59933:"OffsetSchema",65000:"OwnerName",65001:"SerialNumber",65002:"Lens",65024:"KDC_IFD",65100:"RawFile",65101:"Converter",65102:"WhiteBalance",65105:"Exposure",65106:"Shadows",65107:"Brightness",65108:"Contrast",65109:"Saturation",65110:"Sharpness",65111:"Smoothness",65112:"MoireFilter"},gps:{0:"GPSVersionID",1:"GPSLatitudeRef",2:"GPSLatitude",3:"GPSLongitudeRef",4:"GPSLongitude",5:"GPSAltitudeRef",6:"GPSAltitude",7:"GPSTimeStamp",8:"GPSSatellites",9:"GPSStatus",10:"GPSMeasureMode",11:"GPSDOP",12:"GPSSpeedRef",13:"GPSSpeed",14:"GPSTrackRef",15:"GPSTrack",16:"GPSImgDirectionRef",17:"GPSImgDirection",18:"GPSMapDatum",19:"GPSDestLatitudeRef",20:"GPSDestLatitude",21:"GPSDestLongitudeRef",22:"GPSDestLongitude",23:"GPSDestBearingRef",24:"GPSDestBearing",25:"GPSDestDistanceRef",26:"GPSDestDistance",27:"GPSProcessingMethod",28:"GPSAreaInformation",29:"GPSDateStamp",30:"GPSDifferential",31:"GPSHPositioningError"}}},function(t,e){function n(t,e,n,r,i,o){this.global=i,e=e||0,n=n||t.byteLength-e,this.arrayBuffer=t.slice(e,e+n),this.view=new i.DataView(this.arrayBuffer,0,this.arrayBuffer.byteLength),this.setBigEndian(r),this.offset=0,this.parentOffset=(o||0)+e}n.prototype={setBigEndian:function(t){this.littleEndian=!t},nextUInt8:function(){var t=this.view.getUint8(this.offset);return this.offset+=1,t},nextInt8:function(){var t=this.view.getInt8(this.offset);return this.offset+=1,t},nextUInt16:function(){var t=this.view.getUint16(this.offset,this.littleEndian);return this.offset+=2,t},nextUInt32:function(){var t=this.view.getUint32(this.offset,this.littleEndian);return this.offset+=4,t},nextInt16:function(){var t=this.view.getInt16(this.offset,this.littleEndian);return this.offset+=2,t},nextInt32:function(){var t=this.view.getInt32(this.offset,this.littleEndian);return this.offset+=4,t},nextFloat:function(){var t=this.view.getFloat32(this.offset,this.littleEndian);return this.offset+=4,t},nextDouble:function(){var t=this.view.getFloat64(this.offset,this.littleEndian);return this.offset+=8,t},nextBuffer:function(t){var e=this.arrayBuffer.slice(this.offset,this.offset+t);return this.offset+=t,e},remainingLength:function(){return this.arrayBuffer.byteLength-this.offset},nextString:function(t){var e=this.arrayBuffer.slice(this.offset,this.offset+t);return e=String.fromCharCode.apply(null,new this.global.Uint8Array(e)),this.offset+=t,e},mark:function(){var t=this;return{openWithOffset:function(e){return e=(e||0)+this.offset,new n(t.arrayBuffer,e,t.arrayBuffer.byteLength-e,!t.littleEndian,t.global,t.parentOffset)},offset:this.offset,getParentOffset:function(){return t.parentOffset}}},offsetFrom:function(t){return this.parentOffset+this.offset-(t.offset+t.getParentOffset())},skip:function(t){this.offset+=t},branch:function(t,e){return e="number"==typeof e?e:this.arrayBuffer.byteLength-(this.offset+t),new n(this.arrayBuffer,this.offset+t,e,!this.littleEndian,this.global,this.parentOffset)}},t.exports=n},function(t,e){function n(t,e,n,r){this.buffer=t,this.offset=e||0,n="number"==typeof n?n:t.length,this.endPosition=this.offset+n,this.setBigEndian(r)}n.prototype={setBigEndian:function(t){this.bigEndian=!!t},nextUInt8:function(){var t=this.buffer.readUInt8(this.offset);return this.offset+=1,t},nextInt8:function(){var t=this.buffer.readInt8(this.offset);return this.offset+=1,t},nextUInt16:function(){var t=this.bigEndian?this.buffer.readUInt16BE(this.offset):this.buffer.readUInt16LE(this.offset);return this.offset+=2,t},nextUInt32:function(){var t=this.bigEndian?this.buffer.readUInt32BE(this.offset):this.buffer.readUInt32LE(this.offset);return this.offset+=4,t},nextInt16:function(){var t=this.bigEndian?this.buffer.readInt16BE(this.offset):this.buffer.readInt16LE(this.offset);return this.offset+=2,t},nextInt32:function(){var t=this.bigEndian?this.buffer.readInt32BE(this.offset):this.buffer.readInt32LE(this.offset);return this.offset+=4,t},nextFloat:function(){var t=this.bigEndian?this.buffer.readFloatBE(this.offset):this.buffer.readFloatLE(this.offset);return this.offset+=4,t},nextDouble:function(){var t=this.bigEndian?this.buffer.readDoubleBE(this.offset):this.buffer.readDoubleLE(this.offset);return this.offset+=8,t},nextBuffer:function(t){var e=this.buffer.slice(this.offset,this.offset+t);return this.offset+=t,e},remainingLength:function(){return this.endPosition-this.offset},nextString:function(t){var e=this.buffer.toString("utf8",this.offset,this.offset+t);return this.offset+=t,e},mark:function(){var t=this;return{openWithOffset:function(e){return e=(e||0)+this.offset,new n(t.buffer,e,t.endPosition-e,t.bigEndian)},offset:this.offset}},offsetFrom:function(t){return this.offset-t.offset},skip:function(t){this.offset+=t},branch:function(t,e){return e="number"==typeof e?e:this.endPosition-(this.offset+t),new n(this.buffer,this.offset+t,e,this.bigEndian)}},t.exports=n},function(t,e){function n(t){Math.round;var e,n,r,i,o,a=Math.floor,s=new Array(64),c=new Array(64),l=new Array(64),u=new Array(64),p=new Array(65535),f=new Array(65535),h=new Array(64),d=new Array(64),g=[],m=0,_=7,b=new Array(64),y=new Array(64),v=new Array(64),x=new Array(256),w=new Array(2048),k=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],E=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],S=[0,1,2,3,4,5,6,7,8,9,10,11],I=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],T=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],O=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],A=[0,1,2,3,4,5,6,7,8,9,10,11],C=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],P=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function D(t,e){for(var n=0,r=0,i=new Array,o=1;o<=16;o++){for(var a=1;a<=t[o];a++)i[e[r]]=[],i[e[r]][0]=n,i[e[r]][1]=o,r++,n++;n*=2}return i}function B(t){for(var e=t[0],n=t[1]-1;n>=0;)e&1<>8&255),L(255&t)}function z(t,e,n,r,i){for(var o,a=i[0],s=i[240],c=function(t,e){var n,r,i,o,a,s,c,l,u,p,f=0;for(u=0;u<8;++u){n=t[f],r=t[f+1],i=t[f+2],o=t[f+3],a=t[f+4],s=t[f+5],c=t[f+6];var d=n+(l=t[f+7]),g=n-l,m=r+c,_=r-c,b=i+s,y=i-s,v=o+a,x=o-a,w=d+v,k=d-v,E=m+b,S=m-b;t[f]=w+E,t[f+4]=w-E;var I=.707106781*(S+k);t[f+2]=k+I,t[f+6]=k-I;var T=.382683433*((w=x+y)-(S=_+g)),O=.5411961*w+T,A=1.306562965*S+T,C=.707106781*(E=y+_),P=g+C,D=g-C;t[f+5]=D+O,t[f+3]=D-O,t[f+1]=P+A,t[f+7]=P-A,f+=8}for(f=0,u=0;u<8;++u){n=t[f],r=t[f+8],i=t[f+16],o=t[f+24],a=t[f+32],s=t[f+40],c=t[f+48];var B=n+(l=t[f+56]),L=n-l,N=r+c,z=r-c,M=i+s,R=i-s,j=o+a,F=o-a,U=B+j,G=B-j,H=N+M,W=N-M;t[f]=U+H,t[f+32]=U-H;var q=.707106781*(W+G);t[f+16]=G+q,t[f+48]=G-q;var Y=.382683433*((U=F+R)-(W=z+L)),V=.5411961*U+Y,Z=1.306562965*W+Y,$=.707106781*(H=R+z),X=L+$,Q=L-$;t[f+40]=Q+V,t[f+24]=Q-V,t[f+8]=X+Z,t[f+56]=X-Z,f++}for(u=0;u<64;++u)p=t[u]*e[u],h[u]=p>0?p+.5|0:p-.5|0;return h}(t,e),l=0;l<64;++l)d[k[l]]=c[l];var u=d[0]-n;n=d[0],0==u?B(r[0]):(B(r[f[o=32767+u]]),B(p[o]));for(var g=63;g>0&&0==d[g];g--);if(0==g)return B(a),n;for(var m,_=1;_<=g;){for(var b=_;0==d[_]&&_<=g;++_);var y=_-b;if(y>=16){m=y>>4;for(var v=1;v<=m;++v)B(s);y&=15}o=32767+d[_],B(i[(y<<4)+f[o]]),B(p[o]),_++}return 63!=g&&B(a),n}function M(t){if(t<=0&&(t=1),t>100&&(t=100),o!=t){(function(t){for(var e=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],n=0;n<64;n++){var r=a((e[n]*t+50)/100);r<1?r=1:r>255&&(r=255),s[k[n]]=r}for(var i=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],o=0;o<64;o++){var p=a((i[o]*t+50)/100);p<1?p=1:p>255&&(p=255),c[k[o]]=p}for(var f=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],h=0,d=0;d<8;d++)for(var g=0;g<8;g++)l[h]=1/(s[k[h]]*f[d]*f[g]*8),u[h]=1/(c[k[h]]*f[d]*f[g]*8),h++})(t<50?Math.floor(5e3/t):Math.floor(200-2*t)),o=t}}this.encode=function(t,o){(new Date).getTime();o&&M(o),g=new Array,m=0,_=7,N(65496),N(65504),N(16),L(74),L(70),L(73),L(70),L(0),L(1),L(1),L(0),N(1),N(1),L(0),L(0),function(){N(65499),N(132),L(0);for(var t=0;t<64;t++)L(s[t]);L(1);for(var e=0;e<64;e++)L(c[e])}(),function(t,e){N(65472),N(17),L(8),N(e),N(t),L(3),L(1),L(17),L(0),L(2),L(17),L(1),L(3),L(17),L(1)}(t.width,t.height),function(){N(65476),N(418),L(0);for(var t=0;t<16;t++)L(E[t+1]);for(var e=0;e<=11;e++)L(S[e]);L(16);for(var n=0;n<16;n++)L(I[n+1]);for(var r=0;r<=161;r++)L(T[r]);L(1);for(var i=0;i<16;i++)L(O[i+1]);for(var o=0;o<=11;o++)L(A[o]);L(17);for(var a=0;a<16;a++)L(C[a+1]);for(var s=0;s<=161;s++)L(P[s])}(),N(65498),N(12),L(3),L(1),L(0),L(2),L(17),L(3),L(17),L(0),L(63),L(0);var a=0,p=0,f=0;m=0,_=7,this.encode.displayName="_encode_";for(var h,d,x,k,D,R,j,F,U,G=t.data,H=t.width,W=t.height,q=4*H,Y=0;Y>3)*q+(j=4*(7&U)),Y+F>=W&&(R-=q*(Y+1+F-W)),h+j>=q&&(R-=h+j-q+4),d=G[R++],x=G[R++],k=G[R++],b[U]=(w[d]+w[x+256>>0]+w[k+512>>0]>>16)-128,y[U]=(w[d+768>>0]+w[x+1024>>0]+w[k+1280>>0]>>16)-128,v[U]=(w[d+1280>>0]+w[x+1536>>0]+w[k+1792>>0]>>16)-128;a=z(b,l,a,e,r),p=z(y,u,p,n,i),f=z(v,u,f,n,i),h+=32}Y+=8}if(_>=0){var V=[];V[1]=_+1,V[0]=(1<<_+1)-1,B(V)}return N(65497),new Buffer(g)},function(){(new Date).getTime();t||(t=50),function(){for(var t=String.fromCharCode,e=0;e<256;e++)x[e]=t(e)}(),e=D(E,S),n=D(O,A),r=D(I,T),i=D(C,P),function(){for(var t=1,e=2,n=1;n<=15;n++){for(var r=t;r>0]=38470*t,w[t+512>>0]=7471*t+32768,w[t+768>>0]=-11059*t,w[t+1024>>0]=-21709*t,w[t+1280>>0]=32768*t+8421375,w[t+1536>>0]=-27439*t,w[t+1792>>0]=-5329*t}(),M(t),(new Date).getTime()}()}t.exports=function(t,e){void 0===e&&(e=50);return{data:new n(e).encode(t,e),width:t.width,height:t.height}}},function(t,e){var n=function(){"use strict";var t=new Int32Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),e=4017,n=799,r=3406,i=2276,o=1567,a=3784,s=5793,c=2896;function l(){}function u(t,e){for(var n,r,i=0,o=[],a=16;a>0&&!t[a-1];)a--;o.push({children:[],index:0});var s,c=o[0];for(n=0;n0;)c=o.pop();for(c.index++,o.push(c);o.length<=n;)o.push(s={children:[],index:0}),c.children[c.index]=s.children,c=s;i++}n+10)return h>>--d&1;if(255==(h=e[n++])){var t=e[n++];if(t)throw new Error("unexpected marker: "+(h<<8|t).toString(16))}return d=7,h>>>7}function m(t){for(var e,n=t;null!==(e=g());){if("number"==typeof(n=n[e]))return n;if("object"!=typeof n)throw new Error("invalid huffman sequence")}return null}function _(t){for(var e=0;t>0;){var n=g();if(null===n)return;e=e<<1|n,t--}return e}function b(t){var e=_(t);return e>=1<0)y--;else for(var r=a,i=s;r<=i;){var o=m(e.huffmanTableAC),c=15&o,u=o>>4;if(0!==c)n[t[r+=u]]=b(c)*(1<>4,0===f)o<15?(y=_(o)+(1<>4;if(0!==s)n[t[o+=c]]=b(s),o++;else{if(c<15)break;o+=16}}};var P,D,B,L,N=0;for(D=1==C?i[0].blocksPerLine*i[0].blocksPerColumn:u*r.mcusPerColumn,o||(o=D);N=65488&&P<=65495))break;n+=2}return n-f}function f(t,l){var u,p,f=[],h=l.blocksPerLine,d=l.blocksPerColumn,g=h<<3,m=new Int32Array(64),_=new Uint8Array(64);function b(t,u,p){var f,h,d,g,m,_,b,y,v,x,w=l.quantizationTable,k=p;for(x=0;x<64;x++)k[x]=t[x]*w[x];for(x=0;x<8;++x){var E=8*x;0!=k[1+E]||0!=k[2+E]||0!=k[3+E]||0!=k[4+E]||0!=k[5+E]||0!=k[6+E]||0!=k[7+E]?(f=s*k[0+E]+128>>8,h=s*k[4+E]+128>>8,d=k[2+E],g=k[6+E],m=c*(k[1+E]-k[7+E])+128>>8,y=c*(k[1+E]+k[7+E])+128>>8,_=k[3+E]<<4,b=k[5+E]<<4,v=f-h+1>>1,f=f+h+1>>1,h=v,v=d*a+g*o+128>>8,d=d*o-g*a+128>>8,g=v,v=m-b+1>>1,m=m+b+1>>1,b=v,v=y+_+1>>1,_=y-_+1>>1,y=v,v=f-g+1>>1,f=f+g+1>>1,g=v,v=h-d+1>>1,h=h+d+1>>1,d=v,v=m*i+y*r+2048>>12,m=m*r-y*i+2048>>12,y=v,v=_*n+b*e+2048>>12,_=_*e-b*n+2048>>12,b=v,k[0+E]=f+y,k[7+E]=f-y,k[1+E]=h+b,k[6+E]=h-b,k[2+E]=d+_,k[5+E]=d-_,k[3+E]=g+m,k[4+E]=g-m):(v=s*k[0+E]+512>>10,k[0+E]=v,k[1+E]=v,k[2+E]=v,k[3+E]=v,k[4+E]=v,k[5+E]=v,k[6+E]=v,k[7+E]=v)}for(x=0;x<8;++x){var S=x;0!=k[8+S]||0!=k[16+S]||0!=k[24+S]||0!=k[32+S]||0!=k[40+S]||0!=k[48+S]||0!=k[56+S]?(f=s*k[0+S]+2048>>12,h=s*k[32+S]+2048>>12,d=k[16+S],g=k[48+S],m=c*(k[8+S]-k[56+S])+2048>>12,y=c*(k[8+S]+k[56+S])+2048>>12,_=k[24+S],b=k[40+S],v=f-h+1>>1,f=f+h+1>>1,h=v,v=d*a+g*o+2048>>12,d=d*o-g*a+2048>>12,g=v,v=m-b+1>>1,m=m+b+1>>1,b=v,v=y+_+1>>1,_=y-_+1>>1,y=v,v=f-g+1>>1,f=f+g+1>>1,g=v,v=h-d+1>>1,h=h+d+1>>1,d=v,v=m*i+y*r+2048>>12,m=m*r-y*i+2048>>12,y=v,v=_*n+b*e+2048>>12,_=_*e-b*n+2048>>12,b=v,k[0+S]=f+y,k[56+S]=f-y,k[8+S]=h+b,k[48+S]=h-b,k[16+S]=d+_,k[40+S]=d-_,k[24+S]=g+m,k[32+S]=g-m):(v=s*p[x+0]+8192>>14,k[0+S]=v,k[8+S]=v,k[16+S]=v,k[24+S]=v,k[32+S]=v,k[40+S]=v,k[48+S]=v,k[56+S]=v)}for(x=0;x<64;++x){var I=128+(k[x]+8>>4);u[x]=I<0?0:I>255?255:I}}for(var y=0;y255?255:t}return l.prototype={load:function(t){var e=new XMLHttpRequest;e.open("GET",t,!0),e.responseType="arraybuffer",e.onload=function(){var t=new Uint8Array(e.response||e.mozResponseArrayBuffer);this.parse(t),this.onload&&this.onload()}.bind(this),e.send(null)},parse:function(e){var n=0;e.length;function r(){var t=e[n]<<8|e[n+1];return n+=2,t}function i(){var t=r(),i=e.subarray(n,n+t-2);return n+=i.length,i}function o(t){var e,n,r=0,i=0;for(n in t.components)t.components.hasOwnProperty(n)&&(r<(e=t.components[n]).h&&(r=e.h),i>4==0)for(U=0;U<64;U++){x[t[U]]=e[n++]}else{if(v>>4!=1)throw new Error("DQT: invalid table spec");for(U=0;U<64;U++){x[t[U]]=r()}}h[15&v]=x}break;case 65472:case 65473:case 65474:r(),(a={}).extended=65473===_,a.progressive=65474===_,a.precision=e[n++],a.scanLines=r(),a.samplesPerLine=r(),a.components={},a.componentsOrder=[];var w,k=e[n++];for(j=0;j>4,S=15&e[n+1],I=e[n+2];a.componentsOrder.push(w),a.components[w]={h:E,v:S,quantizationIdx:I},n+=3}o(a),d.push(a);break;case 65476:var T=r();for(j=2;j>4==0?m:g)[15&O]=u(A,P)}break;case 65501:r(),s=r();break;case 65498:r();var D=e[n++],B=[];for(j=0;j>4],G.huffmanTableAC=g[15&L],B.push(G)}var N=e[n++],z=e[n++],M=e[n++],R=p(e,n,a,B,s,N,z,M>>4,15&M);n+=R;break;case 65535:255!==e[n]&&n--;break;default:if(255==e[n-3]&&e[n-2]>=192&&e[n-2]<=254){n-=3;break}throw new Error("unknown JPEG marker "+_.toString(16))}_=r()}if(1!=d.length)throw new Error("only single frame JPEGs supported");for(var j=0;j>3))*this._bitmapInfo.height,n=Math.max(e,i.Z_MIN_CHUNK);this._inflate=i.createInflate({chunkSize:n});var r=e,o=this.emit.bind(this,"error");this._inflate.on("error",function(t){r&&o(t)}),this._filter.on("complete",this._complete.bind(this));var a=this._filter.write.bind(this._filter);this._inflate.on("data",function(t){r&&(t.length>r&&(t=t.slice(0,r)),r-=t.length,a(t))}),this._inflate.on("end",this._filter.end.bind(this._filter))}this._inflate.write(t)},u.prototype._handleMetaData=function(t){this._metaData=t,this._bitmapInfo=Object.create(t),this._filter=new a(this._bitmapInfo)},u.prototype._handleTransColor=function(t){this._bitmapInfo.transColor=t},u.prototype._handlePalette=function(t){this._bitmapInfo.palette=t},u.prototype._simpleTransparency=function(){this._metaData.alpha=!0},u.prototype._headersFinished=function(){this.emit("metadata",this._metaData)},u.prototype._finished=function(){this.errord||(this._inflate?this._inflate.end():this.emit("error","No Inflate block"),this.destroySoon())},u.prototype._complete=function(t){if(!this.errord){try{var e=c.dataToBitMap(t,this._bitmapInfo),n=l(e,this._bitmapInfo);e=null}catch(t){return void this._handleError(t)}this.emit("parsed",n)}}},function(t,e,n){"use strict";var r=n(3),i=n(74),o=n(75),a=t.exports=function(t){i.call(this);var e=[],n=this;this._filter=new o(t,{read:this.read.bind(this),write:function(t){e.push(t)},complete:function(){n.emit("complete",Buffer.concat(e))}}),this._filter.start()};r.inherits(a,i)},function(t,e,n){"use strict";var r=n(3),i=n(7),o=n(21),a=n(82),s=t.exports=function(t){i.call(this);var e=t||{};this._packer=new a(e),this._deflate=this._packer.createDeflate(),this.readable=!0};r.inherits(s,i),s.prototype.pack=function(t,e,n,r){this.emit("data",new Buffer(o.PNG_SIGNATURE)),this.emit("data",this._packer.packIHDR(e,n)),r&&this.emit("data",this._packer.packGAMA(r));var i=this._packer.filterData(t,e,n);this._deflate.on("error",this.emit.bind(this,"error")),this._deflate.on("data",function(t){this.emit("data",this._packer.packIDAT(t))}.bind(this)),this._deflate.on("end",function(){this.emit("data",this._packer.packIEND()),this.emit("end")}.bind(this)),this._deflate.end(i)}},function(t,e,n){"use strict";var r=n(21);t.exports=function(t,e,n,i){var o,a=-1!==[r.COLORTYPE_COLOR_ALPHA,r.COLORTYPE_ALPHA].indexOf(i.colorType);if(i.colorType===i.inputColorType){var s=(o=new ArrayBuffer(2),new DataView(o).setInt16(0,256,!0),256!==new Int16Array(o)[0]);if(8===i.bitDepth||16===i.bitDepth&&s)return t}var c=16!==i.bitDepth?t:new Uint16Array(t.buffer),l=255,u=r.COLORTYPE_TO_BPP_MAP[i.inputColorType];4!==u||i.inputHasAlpha||(u=3);var p=r.COLORTYPE_TO_BPP_MAP[i.colorType];16===i.bitDepth&&(l=65535,p*=2);var f=new Buffer(e*n*p),h=0,d=0,g=i.bgColor||{};function m(){var t,e,n,o=l;switch(i.inputColorType){case r.COLORTYPE_COLOR_ALPHA:o=c[h+3],t=c[h],e=c[h+1],n=c[h+2];break;case r.COLORTYPE_COLOR:t=c[h],e=c[h+1],n=c[h+2];break;case r.COLORTYPE_ALPHA:o=c[h+1],e=t=c[h],n=t;break;case r.COLORTYPE_GRAYSCALE:e=t=c[h],n=t;break;default:throw new Error("input color type:"+i.inputColorType+" is not supported at present")}return i.inputHasAlpha&&(a||(o/=l,t=Math.min(Math.max(Math.round((1-o)*g.red+o*t),0),l),e=Math.min(Math.max(Math.round((1-o)*g.green+o*e),0),l),n=Math.min(Math.max(Math.round((1-o)*g.blue+o*n),0),l))),{red:t,green:e,blue:n,alpha:o}}void 0===g.red&&(g.red=l),void 0===g.green&&(g.green=l),void 0===g.blue&&(g.blue=l);for(var _=0;_=o?t[e+a-o]:0,c=t[e+a]-s;r[i+a]=c}},2:function(t,e,n,r,i){for(var o=0;o0?t[e+o-n]:0,s=t[e+o]-a;r[i+o]=s}},3:function(t,e,n,r,i,o){for(var a=0;a=o?t[e+a-o]:0,c=e>0?t[e+a-n]:0,l=t[e+a]-(s+c>>1);r[i+a]=l}},4:function(t,e,n,i,o,a){for(var s=0;s=a?t[e+s-a]:0,l=e>0?t[e+s-n]:0,u=e>0&&s>=a?t[e+s-(n+a)]:0,p=t[e+s]-r(c,l,u);i[o+s]=p}}},o={0:function(t,e,n){for(var r=0,i=e+n,o=e;o=r?t[e+o-r]:0,s=t[e+o]-a;i+=Math.abs(s)}return i},2:function(t,e,n){for(var r=0,i=e+n,o=e;o0?t[o-n]:0,s=t[o]-a;r+=Math.abs(s)}return r},3:function(t,e,n,r){for(var i=0,o=0;o=r?t[e+o-r]:0,s=e>0?t[e+o-n]:0,c=t[e+o]-(a+s>>1);i+=Math.abs(c)}return i},4:function(t,e,n,i){for(var o=0,a=0;a=i?t[e+a-i]:0,c=e>0?t[e+a-n]:0,l=e>0&&a>=i?t[e+a-(n+i)]:0,u=t[e+a]-r(s,c,l);o+=Math.abs(u)}return o}};t.exports=function(t,e,n,r,a){var s;if("filterType"in r&&-1!==r.filterType){if("number"!=typeof r.filterType)throw new Error("unrecognised filter types");s=[r.filterType]}else s=[0,1,2,3,4];16===r.bitDepth&&(a*=2);for(var c=e*a,l=0,u=0,p=new Buffer((c+1)*n),f=s[0],h=0;h1)for(var d=1/0,g=0;g>3))*p.height;g=o(m,{chunkSize:_,maxLength:_})}if(m=null,!g||!g.length)throw new Error("bad png - invalid inflate data response");var b=s.process(g,p);m=null;var y=l.dataToBitMap(b,p);b=null;var v=u(y,p);return p.data=v,p.gamma=f||0,p}},function(t,e,n){"use strict";var r=n(20).ok,i=n(12),o=n(3),a=n(4).kMaxLength;function s(t){if(!(this instanceof s))return new s(t);t&&t.chunkSize=0,"have should not go down"),n>0){var i=s._buffer.slice(s._offset,s._offset+n);if(s._offset+=n,i.length>p&&(i=i.slice(0,p)),h.push(i),d+=i.length,0===(p-=i.length))return!1}return(0===e||s._offset>=s._chunkSize)&&(u=s._chunkSize,s._offset=0,s._buffer=Buffer.allocUnsafe(s._chunkSize)),0===e&&(f+=l-t,l=t,!0)}}this.on("error",function(t){o=t}),r(this._handle,"zlib binding closed");do{var m=this._handle.writeSync(e,t,f,l,this._buffer,this._offset,u);m=m||this._writeState}while(!this._hadError&&g(m[0],m[1]));if(this._hadError)throw o;if(d>=a)throw c(this),new RangeError("Cannot create final Buffer. It would be larger than 0x"+a.toString(16)+" bytes");var _=Buffer.concat(h,d);return c(this),_},o.inherits(s,i.Inflate),t.exports=e=l,e.Inflate=s,e.createInflate=function(t){return new s(t)},e.inflateSync=l},function(t,e,n){"use strict";var r=n(83),i=n(75);e.process=function(t,e){var n=[],o=new r(t);return new i(e,{read:o.read.bind(o),write:function(t){n.push(t)},complete:function(){}}).start(),o.process(),Buffer.concat(n)}},function(t,e,n){"use strict";var r=!0,i=n(12);i.deflateSync||(r=!1);var o=n(21),a=n(82);t.exports=function(t,e){if(!r)throw new Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");var n=new a(e||{}),s=[];s.push(new Buffer(o.PNG_SIGNATURE)),s.push(n.packIHDR(t.width,t.height)),t.gamma&&s.push(n.packGAMA(t.gamma));var c=n.filterData(t.data,t.width,t.height),l=i.deflateSync(c,n.getDeflateOptions());if(c=null,!l||!l.length)throw new Error("bad png - invalid compressed data response");return s.push(n.packIDAT(l)),s.push(n.packIEND()),Buffer.concat(s)}},function(t,e){function n(t){this.buffer=t.data,this.width=t.width,this.height=t.height,this.extraBytes=this.width%4,this.rgbSize=this.height*(3*this.width+this.extraBytes),this.headerInfoSize=40,this.data=[],this.flag="BM",this.reserved=0,this.offset=54,this.fileSize=this.rgbSize+this.offset,this.planes=1,this.bitPP=24,this.compress=0,this.hr=0,this.vr=0,this.colors=0,this.importantColors=0}n.prototype.encode=function(){var t=new Buffer(this.offset+this.rgbSize);this.pos=0,t.write(this.flag,this.pos,2),this.pos+=2,t.writeUInt32LE(this.fileSize,this.pos),this.pos+=4,t.writeUInt32LE(this.reserved,this.pos),this.pos+=4,t.writeUInt32LE(this.offset,this.pos),this.pos+=4,t.writeUInt32LE(this.headerInfoSize,this.pos),this.pos+=4,t.writeUInt32LE(this.width,this.pos),this.pos+=4,t.writeInt32LE(-this.height,this.pos),this.pos+=4,t.writeUInt16LE(this.planes,this.pos),this.pos+=2,t.writeUInt16LE(this.bitPP,this.pos),this.pos+=2,t.writeUInt32LE(this.compress,this.pos),this.pos+=4,t.writeUInt32LE(this.rgbSize,this.pos),this.pos+=4,t.writeUInt32LE(this.hr,this.pos),this.pos+=4,t.writeUInt32LE(this.vr,this.pos),this.pos+=4,t.writeUInt32LE(this.colors,this.pos),this.pos+=4,t.writeUInt32LE(this.importantColors,this.pos),this.pos+=4;for(var e=0,n=3*this.width+this.extraBytes,r=0;r0){var a=this.pos+r*n+3*this.width;t.fill(0,a,a+this.extraBytes)}}return t},t.exports=function(t,e){return void 0===e&&(e=100),{data:new n(t).encode(),width:t.width,height:t.height}}},function(t,e){function n(t,e){if(this.pos=0,this.buffer=t,this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=this.buffer.toString("utf-8",0,this.pos+=2),"BM"!=this.flag)throw new Error("Invalid BMP File");this.parseHeader(),this.parseRGBA()}n.prototype.parseHeader=function(){if(this.fileSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.reserved=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.offset=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.headerSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.width=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.height=this.buffer.readInt32LE(this.pos),this.pos+=4,this.planes=this.buffer.readUInt16LE(this.pos),this.pos+=2,this.bitPP=this.buffer.readUInt16LE(this.pos),this.pos+=2,this.compress=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.rawSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.hr=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.vr=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.colors=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.importantColors=this.buffer.readUInt32LE(this.pos),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=0===this.colors?1<=0?this.height-1:-this.height;for(n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i>7-s&1];this.data[a+4*s]=0,this.data[a+4*s+1]=c.blue,this.data[a+4*s+2]=c.green,this.data[a+4*s+3]=c.red}0!=e&&(this.pos+=4-e)}},n.prototype.bit4=function(){if(2==this.compress){this.data.fill(255);for(var t=0,e=this.bottom_up?this.height-1:0,n=!1;t>4),1&c&&c+1>1&1)&&this.pos++}}else for(c=0;c>4),n=!n}function l(e){var n=this.palette[e];this.data[t]=0,this.data[t+1]=n.blue,this.data[t+2]=n.green,this.data[t+3]=n.red,t+=4}}else{var u=Math.ceil(this.width/2),p=u%4;for(a=this.height-1;a>=0;a--){var f=this.bottom_up?a:this.height-1-a;for(o=0;o>4,d=15&i,g=this.palette[h];if(this.data[t]=0,this.data[t+1]=g.blue,this.data[t+2]=g.green,this.data[t+3]=g.red,2*o+1>=this.width)break;g=this.palette[d],this.data[t+4]=0,this.data[t+4+1]=g.blue,this.data[t+4+2]=g.green,this.data[t+4+3]=g.red}0!=p&&(this.pos+=4-p)}}},n.prototype.bit8=function(){if(1==this.compress){this.data.fill(255);for(var t=0,e=this.bottom_up?this.height-1:0;t=0;o--){var u=this.bottom_up?o:this.height-1-o;for(i=0;i=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i>5&e)/e*255|0,c=(o>>10&e)/e*255|0,l=o>>15?255:0,u=r*this.width*4+4*i;this.data[u]=l,this.data[u+1]=a,this.data[u+2]=s,this.data[u+3]=c}this.pos+=t}},n.prototype.bit16=function(){var t=this.width%2*2;this.maskRed=31744,this.maskGreen=992,this.maskBlue=31,this.mask0=0,3==this.compress&&(this.maskRed=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.maskGreen=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.maskBlue=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.mask0=this.buffer.readUInt32LE(this.pos),this.pos+=4);for(var e=[0,0,0],n=0;n<16;n++)this.maskRed>>n&1&&e[0]++,this.maskGreen>>n&1&&e[1]++,this.maskBlue>>n&1&&e[2]++;e[1]+=e[0],e[2]+=e[1],e[0]=8-e[0],e[1]-=8,e[2]-=8;for(var r=this.height-1;r>=0;r--){for(var i=this.bottom_up?r:this.height-1-r,o=0;o>e[1],l=(a&this.maskRed)>>e[2],u=i*this.width*4+4*o;this.data[u]=0,this.data[u+1]=s,this.data[u+2]=c,this.data[u+3]=l}this.pos+=t}},n.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,n=0;n=0;t--)for(var e=this.bottom_up?t:this.height-1-t,n=0;n=0;t--)for(e=this.bottom_up?t:this.height-1-t,n=0;n0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(n!==l)throw new Error(a[n]);if(e.header&&r.deflateSetHeader(this.strm,e.header),e.dictionary){var d;if(d="string"==typeof e.dictionary?o.string2buf(e.dictionary):"[object ArrayBuffer]"===c.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(n=r.deflateSetDictionary(this.strm,d))!==l)throw new Error(a[n]);this._dict_set=!0}}function d(t,e){var n=new h(e);if(n.push(t,!0),n.err)throw n.msg||a[n.err];return n.result}h.prototype.push=function(t,e){var n,a,s=this.strm,u=this.options.chunkSize;if(this.ended)return!1;a=e===~~e?e:!0===e?4:0,"string"==typeof t?s.input=o.string2buf(t):"[object ArrayBuffer]"===c.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(u),s.next_out=0,s.avail_out=u),1!==(n=r.deflate(s,a))&&n!==l)return this.onEnd(n),this.ended=!0,!1;0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(o.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((s.avail_in>0||0===s.avail_out)&&1!==n);return 4===a?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===l):2!==a||(this.onEnd(l),s.avail_out=0,!0)},h.prototype.onData=function(t){this.chunks.push(t)},h.prototype.onEnd=function(t){t===l&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Deflate=h,e.deflate=d,e.deflateRaw=function(t,e){return(e=e||{}).raw=!0,d(t,e)},e.gzip=function(t,e){return(e=e||{}).gzip=!0,d(t,e)}},function(t,e,n){"use strict";var r,i=n(14),o=n(188),a=n(84),s=n(85),c=n(50),l=0,u=1,p=3,f=4,h=5,d=0,g=1,m=-2,_=-3,b=-5,y=-1,v=1,x=2,w=3,k=4,E=0,S=2,I=8,T=9,O=15,A=8,C=286,P=30,D=19,B=2*C+1,L=15,N=3,z=258,M=z+N+1,R=32,j=42,F=69,U=73,G=91,H=103,W=113,q=666,Y=1,V=2,Z=3,$=4,X=3;function Q(t,e){return t.msg=c[e],e}function J(t){return(t<<1)-(t>4?9:0)}function K(t){for(var e=t.length;--e>=0;)t[e]=0}function tt(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(i.arraySet(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function et(t,e){o._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,tt(t.strm)}function nt(t,e){t.pending_buf[t.pending++]=e}function rt(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function it(t,e){var n,r,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,c=t.strstart>t.w_size-M?t.strstart-(t.w_size-M):0,l=t.window,u=t.w_mask,p=t.prev,f=t.strstart+z,h=l[o+a-1],d=l[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(l[(n=e)+a]===d&&l[n+a-1]===h&&l[n]===l[o]&&l[++n]===l[o+1]){o+=2,n++;do{}while(l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&oa){if(t.match_start=e,a=r,r>=s)break;h=l[o+a-1],d=l[o+a]}}}while((e=p[e&u])>c&&0!=--i);return a<=t.lookahead?a:t.lookahead}function ot(t){var e,n,r,o,c,l,u,p,f,h,d=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-M)){i.arraySet(t.window,t.window,d,d,0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=n=t.hash_size;do{r=t.head[--e],t.head[e]=r>=d?r-d:0}while(--n);e=n=d;do{r=t.prev[--e],t.prev[e]=r>=d?r-d:0}while(--n);o+=d}if(0===t.strm.avail_in)break;if(l=t.strm,u=t.window,p=t.strstart+t.lookahead,f=o,h=void 0,(h=l.avail_in)>f&&(h=f),n=0===h?0:(l.avail_in-=h,i.arraySet(u,l.input,l.next_in,h,p),1===l.state.wrap?l.adler=a(l.adler,u,h,p):2===l.state.wrap&&(l.adler=s(l.adler,u,h,p)),l.next_in+=h,l.total_in+=h,h),t.lookahead+=n,t.lookahead+t.insert>=N)for(c=t.strstart-t.insert,t.ins_h=t.window[c],t.ins_h=(t.ins_h<=N&&(t.ins_h=(t.ins_h<=N)if(r=o._tr_tally(t,t.strstart-t.match_start,t.match_length-N),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=N){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<=N&&(t.ins_h=(t.ins_h<4096)&&(t.match_length=N-1)),t.prev_length>=N&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-N,r=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-N),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<15&&(s=2,r-=16),o<1||o>T||n!==I||r<8||r>15||e<0||e>9||a<0||a>k)return Q(t,m);8===r&&(r=9);var c=new lt;return t.state=c,c.strm=t,c.wrap=s,c.gzhead=null,c.w_bits=r,c.w_size=1<t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(ot(t),0===t.lookahead&&e===l)return Y;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var r=t.block_start+n;if((0===t.strstart||t.strstart>=r)&&(t.lookahead=t.strstart-r,t.strstart=r,et(t,!1),0===t.strm.avail_out))return Y;if(t.strstart-t.block_start>=t.w_size-M&&(et(t,!1),0===t.strm.avail_out))return Y}return t.insert=0,e===f?(et(t,!0),0===t.strm.avail_out?Z:$):(t.strstart>t.block_start&&(et(t,!1),t.strm.avail_out),Y)}),new ct(4,4,8,4,at),new ct(4,5,16,8,at),new ct(4,6,32,32,at),new ct(4,4,16,16,st),new ct(8,16,32,32,st),new ct(8,16,128,128,st),new ct(8,32,128,256,st),new ct(32,128,258,1024,st),new ct(32,258,258,4096,st)],e.deflateInit=function(t,e){return ft(t,e,I,O,A,E)},e.deflateInit2=ft,e.deflateReset=pt,e.deflateResetKeep=ut,e.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?m:(t.state.gzhead=e,d):m},e.deflate=function(t,e){var n,i,a,c;if(!t||!t.state||e>h||e<0)return t?Q(t,m):m;if(i=t.state,!t.output||!t.input&&0!==t.avail_in||i.status===q&&e!==f)return Q(t,0===t.avail_out?b:m);if(i.strm=t,n=i.last_flush,i.last_flush=e,i.status===j)if(2===i.wrap)t.adler=0,nt(i,31),nt(i,139),nt(i,8),i.gzhead?(nt(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),nt(i,255&i.gzhead.time),nt(i,i.gzhead.time>>8&255),nt(i,i.gzhead.time>>16&255),nt(i,i.gzhead.time>>24&255),nt(i,9===i.level?2:i.strategy>=x||i.level<2?4:0),nt(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(nt(i,255&i.gzhead.extra.length),nt(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=s(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=F):(nt(i,0),nt(i,0),nt(i,0),nt(i,0),nt(i,0),nt(i,9===i.level?2:i.strategy>=x||i.level<2?4:0),nt(i,X),i.status=W);else{var _=I+(i.w_bits-8<<4)<<8;_|=(i.strategy>=x||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(_|=R),_+=31-_%31,i.status=W,rt(i,_),0!==i.strstart&&(rt(i,t.adler>>>16),rt(i,65535&t.adler)),t.adler=1}if(i.status===F)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),tt(t),a=i.pending,i.pending!==i.pending_buf_size));)nt(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=U)}else i.status=U;if(i.status===U)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),tt(t),a=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindexa&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===c&&(i.gzindex=0,i.status=G)}else i.status=G;if(i.status===G)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),tt(t),a=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindexa&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===c&&(i.status=H)}else i.status=H;if(i.status===H&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&tt(t),i.pending+2<=i.pending_buf_size&&(nt(i,255&t.adler),nt(i,t.adler>>8&255),t.adler=0,i.status=W)):i.status=W),0!==i.pending){if(tt(t),0===t.avail_out)return i.last_flush=-1,d}else if(0===t.avail_in&&J(e)<=J(n)&&e!==f)return Q(t,b);if(i.status===q&&0!==t.avail_in)return Q(t,b);if(0!==t.avail_in||0!==i.lookahead||e!==l&&i.status!==q){var y=i.strategy===x?function(t,e){for(var n;;){if(0===t.lookahead&&(ot(t),0===t.lookahead)){if(e===l)return Y;break}if(t.match_length=0,n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(et(t,!1),0===t.strm.avail_out))return Y}return t.insert=0,e===f?(et(t,!0),0===t.strm.avail_out?Z:$):t.last_lit&&(et(t,!1),0===t.strm.avail_out)?Y:V}(i,e):i.strategy===w?function(t,e){for(var n,r,i,a,s=t.window;;){if(t.lookahead<=z){if(ot(t),t.lookahead<=z&&e===l)return Y;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=N&&t.strstart>0&&(r=s[i=t.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){a=t.strstart+z;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&it.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=N?(n=o._tr_tally(t,1,t.match_length-N),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(et(t,!1),0===t.strm.avail_out))return Y}return t.insert=0,e===f?(et(t,!0),0===t.strm.avail_out?Z:$):t.last_lit&&(et(t,!1),0===t.strm.avail_out)?Y:V}(i,e):r[i.level].func(i,e);if(y!==Z&&y!==$||(i.status=q),y===Y||y===Z)return 0===t.avail_out&&(i.last_flush=-1),d;if(y===V&&(e===u?o._tr_align(i):e!==h&&(o._tr_stored_block(i,0,0,!1),e===p&&(K(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),tt(t),0===t.avail_out))return i.last_flush=-1,d}return e!==f?d:i.wrap<=0?g:(2===i.wrap?(nt(i,255&t.adler),nt(i,t.adler>>8&255),nt(i,t.adler>>16&255),nt(i,t.adler>>24&255),nt(i,255&t.total_in),nt(i,t.total_in>>8&255),nt(i,t.total_in>>16&255),nt(i,t.total_in>>24&255)):(rt(i,t.adler>>>16),rt(i,65535&t.adler)),tt(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?d:g)},e.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==j&&e!==F&&e!==U&&e!==G&&e!==H&&e!==W&&e!==q?Q(t,m):(t.state=null,e===W?Q(t,_):d):m},e.deflateSetDictionary=function(t,e){var n,r,o,s,c,l,u,p,f=e.length;if(!t||!t.state)return m;if(2===(s=(n=t.state).wrap)||1===s&&n.status!==j||n.lookahead)return m;for(1===s&&(t.adler=a(t.adler,e,f,0)),n.wrap=0,f>=n.w_size&&(0===s&&(K(n.head),n.strstart=0,n.block_start=0,n.insert=0),p=new i.Buf8(n.w_size),i.arraySet(p,e,f-n.w_size,n.w_size,0),e=p,f=n.w_size),c=t.avail_in,l=t.next_in,u=t.input,t.avail_in=f,t.next_in=0,t.input=e,ot(n);n.lookahead>=N;){r=n.strstart,o=n.lookahead-(N-1);do{n.ins_h=(n.ins_h<=0;)t[e]=0}var l=0,u=1,p=2,f=29,h=256,d=h+1+f,g=30,m=19,_=2*d+1,b=15,y=16,v=7,x=256,w=16,k=17,E=18,S=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],I=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],T=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],O=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],A=new Array(2*(d+2));c(A);var C=new Array(2*g);c(C);var P=new Array(512);c(P);var D=new Array(256);c(D);var B=new Array(f);c(B);var L,N,z,M=new Array(g);function R(t,e,n,r,i){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=t&&t.length}function j(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function F(t){return t<256?P[t]:P[256+(t>>>7)]}function U(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function G(t,e,n){t.bi_valid>y-n?(t.bi_buf|=e<>y-t.bi_valid,t.bi_valid+=n-y):(t.bi_buf|=e<>>=1,n<<=1}while(--e>0);return n>>>1}function q(t,e,n){var r,i,o=new Array(b+1),a=0;for(r=1;r<=b;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=W(o[s]++,s))}}function Y(t){var e;for(e=0;e8?U(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function Z(t,e,n,r){var i=2*e,o=2*n;return t[i]>1;n>=1;n--)$(t,o,n);i=c;do{n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],$(t,o,1),r=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=r,o[2*i]=o[2*n]+o[2*r],t.depth[i]=(t.depth[n]>=t.depth[r]?t.depth[n]:t.depth[r])+1,o[2*n+1]=o[2*r+1]=i,t.heap[1]=i++,$(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var n,r,i,o,a,s,c=e.dyn_tree,l=e.max_code,u=e.stat_desc.static_tree,p=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,h=e.stat_desc.extra_base,d=e.stat_desc.max_length,g=0;for(o=0;o<=b;o++)t.bl_count[o]=0;for(c[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<_;n++)(o=c[2*c[2*(r=t.heap[n])+1]+1]+1)>d&&(o=d,g++),c[2*r+1]=o,r>l||(t.bl_count[o]++,a=0,r>=h&&(a=f[r-h]),s=c[2*r],t.opt_len+=s*(o+a),p&&(t.static_len+=s*(u[2*r+1]+a)));if(0!==g){do{for(o=d-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[d]--,g-=2}while(g>0);for(o=d;0!==o;o--)for(r=t.bl_count[o];0!==r;)(i=t.heap[--n])>l||(c[2*i+1]!==o&&(t.opt_len+=(o-c[2*i+1])*c[2*i],c[2*i+1]=o),r--)}}(t,e),q(o,l,t.bl_count)}function J(t,e,n){var r,i,o=-1,a=e[1],s=0,c=7,l=4;for(0===a&&(c=138,l=3),e[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=e[2*(r+1)+1],++s>=7;r0?(t.strm.data_type===s&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return o;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return a;for(e=32;e=3&&0===t.bl_tree[2*O[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),c=t.opt_len+3+7>>>3,(l=t.static_len+3+7>>>3)<=c&&(c=l)):c=l=n+5,n+4<=c&&-1!==e?et(t,e,n,r):t.strategy===i||l===c?(G(t,(u<<1)+(r?1:0),3),X(t,A,C)):(G(t,(p<<1)+(r?1:0),3),function(t,e,n,r){var i;for(G(t,e-257,5),G(t,n-1,5),G(t,r-4,4),i=0;i>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(D[n]+h+1)]++,t.dyn_dtree[2*F(e)]++),t.last_lit===t.lit_bufsize-1},e._tr_align=function(t){G(t,u<<1,3),H(t,x,A),function(t){16===t.bi_valid?(U(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},function(t,e,n){"use strict";var r=n(190),i=n(14),o=n(86),a=n(88),s=n(50),c=n(87),l=n(193),u=Object.prototype.toString;function p(t){if(!(this instanceof p))return new p(t);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,e.windowBits);if(n!==a.Z_OK)throw new Error(s[n]);if(this.header=new l,r.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=o.string2buf(e.dictionary):"[object ArrayBuffer]"===u.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(n=r.inflateSetDictionary(this.strm,e.dictionary))!==a.Z_OK))throw new Error(s[n])}function f(t,e){var n=new p(e);if(n.push(t,!0),n.err)throw n.msg||s[n.err];return n.result}p.prototype.push=function(t,e){var n,s,c,l,p,f=this.strm,h=this.options.chunkSize,d=this.options.dictionary,g=!1;if(this.ended)return!1;s=e===~~e?e:!0===e?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof t?f.input=o.binstring2buf(t):"[object ArrayBuffer]"===u.call(t)?f.input=new Uint8Array(t):f.input=t,f.next_in=0,f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new i.Buf8(h),f.next_out=0,f.avail_out=h),(n=r.inflate(f,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&d&&(n=r.inflateSetDictionary(this.strm,d)),n===a.Z_BUF_ERROR&&!0===g&&(n=a.Z_OK,g=!1),n!==a.Z_STREAM_END&&n!==a.Z_OK)return this.onEnd(n),this.ended=!0,!1;f.next_out&&(0!==f.avail_out&&n!==a.Z_STREAM_END&&(0!==f.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(c=o.utf8border(f.output,f.next_out),l=f.next_out-c,p=o.buf2string(f.output,c),f.next_out=l,f.avail_out=h-l,l&&i.arraySet(f.output,f.output,c,l,0),this.onData(p)):this.onData(i.shrinkBuf(f.output,f.next_out)))),0===f.avail_in&&0===f.avail_out&&(g=!0)}while((f.avail_in>0||0===f.avail_out)&&n!==a.Z_STREAM_END);return n===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),f.avail_out=0,!0)},p.prototype.onData=function(t){this.chunks.push(t)},p.prototype.onEnd=function(t){t===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Inflate=p,e.inflate=f,e.inflateRaw=function(t,e){return(e=e||{}).raw=!0,f(t,e)},e.ungzip=f},function(t,e,n){"use strict";var r=n(14),i=n(84),o=n(85),a=n(191),s=n(192),c=0,l=1,u=2,p=4,f=5,h=6,d=0,g=1,m=2,_=-2,b=-3,y=-4,v=-5,x=8,w=1,k=2,E=3,S=4,I=5,T=6,O=7,A=8,C=9,P=10,D=11,B=12,L=13,N=14,z=15,M=16,R=17,j=18,F=19,U=20,G=21,H=22,W=23,q=24,Y=25,V=26,Z=27,$=28,X=29,Q=30,J=31,K=32,tt=852,et=592,nt=15;function rt(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function it(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function ot(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=w,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new r.Buf32(tt),e.distcode=e.distdyn=new r.Buf32(et),e.sane=1,e.back=-1,d):_}function at(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,ot(t)):_}function st(t,e){var n,r;return t&&t.state?(r=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?_:(null!==r.window&&r.wbits!==e&&(r.window=null),r.wrap=n,r.wbits=e,at(t))):_}function ct(t,e){var n,r;return t?(r=new it,t.state=r,r.window=null,(n=st(t,e))!==d&&(t.state=null),n):_}var lt,ut,pt=!0;function ft(t){if(pt){var e;for(lt=new r.Buf32(512),ut=new r.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(s(l,t.lens,0,288,lt,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;s(u,t.lens,0,32,ut,0,t.work,{bits:5}),pt=!1}t.lencode=lt,t.lenbits=9,t.distcode=ut,t.distbits=5}function ht(t,e,n,i){var o,a=t.state;return null===a.window&&(a.wsize=1<=a.wsize?(r.arraySet(a.window,e,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((o=a.wsize-a.wnext)>i&&(o=i),r.arraySet(a.window,e,n-i,o,a.wnext),(i-=o)?(r.arraySet(a.window,e,n-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave>>8&255,n.check=o(n.check,Tt,2,0),st=0,ct=0,n.mode=k;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&st)<<8)+(st>>8))%31){t.msg="incorrect header check",n.mode=Q;break}if((15&st)!==x){t.msg="unknown compression method",n.mode=Q;break}if(ct-=4,wt=8+(15&(st>>>=4)),0===n.wbits)n.wbits=wt;else if(wt>n.wbits){t.msg="invalid window size",n.mode=Q;break}n.dmax=1<>8&1),512&n.flags&&(Tt[0]=255&st,Tt[1]=st>>>8&255,n.check=o(n.check,Tt,2,0)),st=0,ct=0,n.mode=E;case E:for(;ct<32;){if(0===ot)break t;ot--,st+=tt[nt++]<>>8&255,Tt[2]=st>>>16&255,Tt[3]=st>>>24&255,n.check=o(n.check,Tt,4,0)),st=0,ct=0,n.mode=S;case S:for(;ct<16;){if(0===ot)break t;ot--,st+=tt[nt++]<>8),512&n.flags&&(Tt[0]=255&st,Tt[1]=st>>>8&255,n.check=o(n.check,Tt,2,0)),st=0,ct=0,n.mode=I;case I:if(1024&n.flags){for(;ct<16;){if(0===ot)break t;ot--,st+=tt[nt++]<>>8&255,n.check=o(n.check,Tt,2,0)),st=0,ct=0}else n.head&&(n.head.extra=null);n.mode=T;case T:if(1024&n.flags&&((pt=n.length)>ot&&(pt=ot),pt&&(n.head&&(wt=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,tt,nt,pt,wt)),512&n.flags&&(n.check=o(n.check,tt,pt,nt)),ot-=pt,nt+=pt,n.length-=pt),n.length))break t;n.length=0,n.mode=O;case O:if(2048&n.flags){if(0===ot)break t;pt=0;do{wt=tt[nt+pt++],n.head&&wt&&n.length<65536&&(n.head.name+=String.fromCharCode(wt))}while(wt&&pt>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=B;break;case P:for(;ct<32;){if(0===ot)break t;ot--,st+=tt[nt++]<>>=7&ct,ct-=7&ct,n.mode=Z;break}for(;ct<3;){if(0===ot)break t;ot--,st+=tt[nt++]<>>=1)){case 0:n.mode=N;break;case 1:if(ft(n),n.mode=U,e===h){st>>>=2,ct-=2;break t}break;case 2:n.mode=R;break;case 3:t.msg="invalid block type",n.mode=Q}st>>>=2,ct-=2;break;case N:for(st>>>=7&ct,ct-=7&ct;ct<32;){if(0===ot)break t;ot--,st+=tt[nt++]<>>16^65535)){t.msg="invalid stored block lengths",n.mode=Q;break}if(n.length=65535&st,st=0,ct=0,n.mode=z,e===h)break t;case z:n.mode=M;case M:if(pt=n.length){if(pt>ot&&(pt=ot),pt>at&&(pt=at),0===pt)break t;r.arraySet(et,tt,nt,pt,it),ot-=pt,nt+=pt,at-=pt,it+=pt,n.length-=pt;break}n.mode=B;break;case R:for(;ct<14;){if(0===ot)break t;ot--,st+=tt[nt++]<>>=5,ct-=5,n.ndist=1+(31&st),st>>>=5,ct-=5,n.ncode=4+(15&st),st>>>=4,ct-=4,n.nlen>286||n.ndist>30){t.msg="too many length or distance symbols",n.mode=Q;break}n.have=0,n.mode=j;case j:for(;n.have>>=3,ct-=3}for(;n.have<19;)n.lens[Ot[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,Et={bits:n.lenbits},kt=s(c,n.lens,0,19,n.lencode,0,n.work,Et),n.lenbits=Et.bits,kt){t.msg="invalid code lengths set",n.mode=Q;break}n.have=0,n.mode=F;case F:for(;n.have>>16&255,bt=65535&It,!((mt=It>>>24)<=ct);){if(0===ot)break t;ot--,st+=tt[nt++]<>>=mt,ct-=mt,n.lens[n.have++]=bt;else{if(16===bt){for(St=mt+2;ct>>=mt,ct-=mt,0===n.have){t.msg="invalid bit length repeat",n.mode=Q;break}wt=n.lens[n.have-1],pt=3+(3&st),st>>>=2,ct-=2}else if(17===bt){for(St=mt+3;ct>>=mt)),st>>>=3,ct-=3}else{for(St=mt+7;ct>>=mt)),st>>>=7,ct-=7}if(n.have+pt>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=Q;break}for(;pt--;)n.lens[n.have++]=wt}}if(n.mode===Q)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=Q;break}if(n.lenbits=9,Et={bits:n.lenbits},kt=s(l,n.lens,0,n.nlen,n.lencode,0,n.work,Et),n.lenbits=Et.bits,kt){t.msg="invalid literal/lengths set",n.mode=Q;break}if(n.distbits=6,n.distcode=n.distdyn,Et={bits:n.distbits},kt=s(u,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,Et),n.distbits=Et.bits,kt){t.msg="invalid distances set",n.mode=Q;break}if(n.mode=U,e===h)break t;case U:n.mode=G;case G:if(ot>=6&&at>=258){t.next_out=it,t.avail_out=at,t.next_in=nt,t.avail_in=ot,n.hold=st,n.bits=ct,a(t,ut),it=t.next_out,et=t.output,at=t.avail_out,nt=t.next_in,tt=t.input,ot=t.avail_in,st=n.hold,ct=n.bits,n.mode===B&&(n.back=-1);break}for(n.back=0;_t=(It=n.lencode[st&(1<>>16&255,bt=65535&It,!((mt=It>>>24)<=ct);){if(0===ot)break t;ot--,st+=tt[nt++]<>yt)])>>>16&255,bt=65535&It,!(yt+(mt=It>>>24)<=ct);){if(0===ot)break t;ot--,st+=tt[nt++]<>>=yt,ct-=yt,n.back+=yt}if(st>>>=mt,ct-=mt,n.back+=mt,n.length=bt,0===_t){n.mode=V;break}if(32&_t){n.back=-1,n.mode=B;break}if(64&_t){t.msg="invalid literal/length code",n.mode=Q;break}n.extra=15&_t,n.mode=H;case H:if(n.extra){for(St=n.extra;ct>>=n.extra,ct-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=W;case W:for(;_t=(It=n.distcode[st&(1<>>16&255,bt=65535&It,!((mt=It>>>24)<=ct);){if(0===ot)break t;ot--,st+=tt[nt++]<>yt)])>>>16&255,bt=65535&It,!(yt+(mt=It>>>24)<=ct);){if(0===ot)break t;ot--,st+=tt[nt++]<>>=yt,ct-=yt,n.back+=yt}if(st>>>=mt,ct-=mt,n.back+=mt,64&_t){t.msg="invalid distance code",n.mode=Q;break}n.offset=bt,n.extra=15&_t,n.mode=q;case q:if(n.extra){for(St=n.extra;ct>>=n.extra,ct-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=Q;break}n.mode=Y;case Y:if(0===at)break t;if(pt=ut-at,n.offset>pt){if((pt=n.offset-pt)>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=Q;break}pt>n.wnext?(pt-=n.wnext,dt=n.wsize-pt):dt=n.wnext-pt,pt>n.length&&(pt=n.length),gt=n.window}else gt=et,dt=it-n.offset,pt=n.length;pt>at&&(pt=at),at-=pt,n.length-=pt;do{et[it++]=gt[dt++]}while(--pt);0===n.length&&(n.mode=G);break;case V:if(0===at)break t;et[it++]=n.length,at--,n.mode=G;break;case Z:if(n.wrap){for(;ct<32;){if(0===ot)break t;ot--,st|=tt[nt++]<>>=v=y>>>24,d-=v,0===(v=y>>>16&255))I[o++]=65535&y;else{if(!(16&v)){if(0==(64&v)){y=g[(65535&y)+(h&(1<>>=v,d-=v),d<15&&(h+=S[r++]<>>=v=y>>>24,d-=v,!(16&(v=y>>>16&255))){if(0==(64&v)){y=m[(65535&y)+(h&(1<c){t.msg="invalid distance too far back",n.mode=30;break t}if(h>>>=v,d-=v,w>(v=o-a)){if((v=w-v)>u&&n.sane){t.msg="invalid distance too far back",n.mode=30;break t}if(k=0,E=f,0===p){if(k+=l-v,v2;)I[o++]=E[k++],I[o++]=E[k++],I[o++]=E[k++],x-=3;x&&(I[o++]=E[k++],x>1&&(I[o++]=E[k++]))}else{k=o-w;do{I[o++]=I[k++],I[o++]=I[k++],I[o++]=I[k++],x-=3}while(x>2);x&&(I[o++]=I[k++],x>1&&(I[o++]=I[k++]))}break}}break}}while(r>3,h&=(1<<(d-=x<<3))-1,t.next_in=r,t.next_out=o,t.avail_in=r=1&&0===N[I];I--);if(T>I&&(T=I),0===I)return l[u++]=20971520,l[u++]=20971520,f.bits=1,0;for(S=1;S0&&(0===t||1!==I))return-1;for(z[1]=0,k=1;k<15;k++)z[k+1]=z[k]+N[k];for(E=0;E852||2===t&&P>592)return 1;for(;;){y=k-A,p[E]b?(v=M[R+p[E]],x=B[L+p[E]]):(v=96,x=0),h=1<>A)+(d-=h)]=y<<24|v<<16|x|0}while(0!==d);for(h=1<>=1;if(0!==h?(D&=h-1,D+=h):D=0,E++,0==--N[k]){if(k===I)break;k=e[n+p[E]]}if(k>T&&(D&m)!==g){for(0===A&&(A=T),_+=S,C=1<<(O=k-A);O+A852||2===t&&P>592)return 1;l[g=D&m]=T<<24|O<<16|_-u|0}}return 0!==D&&(l[_+D]=k-A<<24|64<<16|0),f.bits=T,0}},function(t,e,n){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},function(t,e){function n(t,e){if(!(t=t.replace(/\t+/g," ").trim()))return null;var n=t.indexOf(" ");if(-1===n)throw new Error("no named row at line "+e);var i=t.substring(0,n);t=(t=(t=(t=t.substring(n+1)).replace(/letter=[\'\"]\S+[\'\"]/gi,"")).split("=")).map(function(t){return t.trim().match(/(".*?"|[^"\s]+)+(?=\s*|\s*$)/g)});for(var o=[],a=0;a root";n=n.font,e.common=i(n.common[0].$),e.info=i(n.info[0].$);for(var r=0;r=0||t.indexOf(">")>=0||t.indexOf("<")>=0)},a=function(t){return""},i=function(t){return t.replace("]]>","]]]]>")},e.Builder=function(){function e(t){var e,n,i;for(e in this.options={},n=r[.2])s.call(n,e)&&(i=n[e],this.options[e]=i);for(e in t)s.call(t,e)&&(i=t[e],this.options[e]=i)}return e.prototype.buildObject=function(e){var n,i,c,l,u,p;return n=this.options.attrkey,i=this.options.charkey,1===Object.keys(e).length&&this.options.rootName===r[.2].rootName?e=e[u=Object.keys(e)[0]]:u=this.options.rootName,p=this,c=function(t,e){var r,l,u,f,h,d;if("object"!=typeof e)p.options.cdata&&o(e)?t.raw(a(e)):t.txt(e);else if(Array.isArray(e)){for(f in e)if(s.call(e,f))for(h in l=e[f])u=l[h],t=c(t.ele(h),u).up()}else for(h in e)if(s.call(e,h))if(l=e[h],h===n){if("object"==typeof l)for(r in l)d=l[r],t=t.att(r,d)}else if(h===i)t=p.options.cdata&&o(l)?t.raw(a(l)):t.txt(l);else if(Array.isArray(l))for(f in l)s.call(l,f)&&(t="string"==typeof(u=l[f])?p.options.cdata&&o(u)?t.ele(h).raw(a(u)).up():t.ele(h,u).up():c(t.ele(h),u).up());else"object"==typeof l?t=c(t.ele(h),l).up():"string"==typeof l&&p.options.cdata&&o(l)?t=t.ele(h).raw(a(l)).up():(null==l&&(l=""),t=t.ele(h,l.toString()).up());return t},l=t.create(u,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),c(l,e).end(this.options.renderOpts)},e}()}).call(this)},function(t,e,n){(function(){var e,r,i,o,a,s,c;c=n(15),a=c.assign,s=c.isFunction,e=n(199),r=n(200),o=n(52),i=n(201),t.exports.create=function(t,n,r,i){var o,s;if(null==t)throw new Error("Root element needs a name");return i=a({},n,r,i),s=(o=new e(i)).element(t),i.headless||(o.declaration(i),null==i.pubID&&null==i.sysID||o.doctype(i)),s},t.exports.begin=function(t,n,i){var o;return s(t)&&(n=(o=[t,n])[0],i=o[1],t={}),n?new r(t,n,i):new e(t)},t.exports.stringWriter=function(t){return new o(t)},t.exports.streamWriter=function(t,e){return new i(t,e)}}).call(this)},function(t,e,n){(function(){var e,r,i,o,a={}.hasOwnProperty;o=n(15).isPlainObject,e=n(9),i=n(90),r=n(52),t.exports=function(t){function n(t){n.__super__.constructor.call(this,null),t||(t={}),t.writer||(t.writer=new r),this.options=t,this.stringify=new i(t),this.isDocument=!0}return function(t,e){for(var n in e)a.call(e,n)&&(t[n]=e[n]);function r(){this.constructor=t}r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype}(n,e),n.prototype.end=function(t){var e;return t?o(t)&&(e=t,t=this.options.writer.set(e)):t=this.options.writer,t.document(this)},n.prototype.toString=function(t){return this.options.writer.set(t).document(this)},n}()}).call(this)},function(t,e,n){(function(){var e,r,i,o,a,s,c,l,u,p,f,h,d,g,m,_,b,y,v,x={}.hasOwnProperty;v=n(15),b=v.isObject,_=v.isFunction,y=v.isPlainObject,p=n(31),r=n(32),i=n(33),h=n(40),m=n(41),f=n(42),l=n(34),u=n(35),o=n(36),s=n(37),a=n(38),c=n(39),e=n(89),g=n(90),d=n(52),t.exports=function(){function t(t,e,n){var r;t||(t={}),t.writer?y(t.writer)&&(r=t.writer,t.writer=new d(r)):t.writer=new d(t),this.options=t,this.writer=t.writer,this.stringify=new g(t),this.onDataCallback=e||function(){},this.onEndCallback=n||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return t.prototype.node=function(t,e,n){var r;if(null==t)throw new Error("Missing node name");if(this.root&&-1===this.currentLevel)throw new Error("Document can only have one root node");return this.openCurrent(),t=t.valueOf(),null==e&&(e={}),e=e.valueOf(),b(e)||(n=(r=[e,n])[0],e=r[1]),this.currentNode=new p(this,t,e),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,null!=n&&this.text(n),this},t.prototype.element=function(t,e,n){return this.currentNode&&this.currentNode instanceof u?this.dtdElement.apply(this,arguments):this.node(t,e,n)},t.prototype.attribute=function(t,n){var r,i;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode");if(null!=t&&(t=t.valueOf()),b(t))for(r in t)x.call(t,r)&&(i=t[r],this.attribute(r,i));else _(n)&&(n=n.apply()),this.options.skipNullAttributes&&null==n||(this.currentNode.attributes[t]=new e(this,t,n));return this},t.prototype.text=function(t){var e;return this.openCurrent(),e=new m(this,t),this.onData(this.writer.text(e,this.currentLevel+1)),this},t.prototype.cdata=function(t){var e;return this.openCurrent(),e=new r(this,t),this.onData(this.writer.cdata(e,this.currentLevel+1)),this},t.prototype.comment=function(t){var e;return this.openCurrent(),e=new i(this,t),this.onData(this.writer.comment(e,this.currentLevel+1)),this},t.prototype.raw=function(t){var e;return this.openCurrent(),e=new h(this,t),this.onData(this.writer.raw(e,this.currentLevel+1)),this},t.prototype.instruction=function(t,e){var n,r,i,o,a;if(this.openCurrent(),null!=t&&(t=t.valueOf()),null!=e&&(e=e.valueOf()),Array.isArray(t))for(n=0,o=t.length;n=0;)this.up();return this.onEnd()},t.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},t.prototype.openNode=function(t){if(!t.isOpen)return!this.root&&0===this.currentLevel&&t instanceof p&&(this.root=t),this.onData(this.writer.openNode(t,this.currentLevel)),t.isOpen=!0},t.prototype.closeNode=function(t){if(!t.isClosed)return this.onData(this.writer.closeNode(t,this.currentLevel)),t.isClosed=!0},t.prototype.onData=function(t){return this.documentStarted=!0,this.onDataCallback(t)},t.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},t.prototype.ele=function(){return this.element.apply(this,arguments)},t.prototype.nod=function(t,e,n){return this.node(t,e,n)},t.prototype.txt=function(t){return this.text(t)},t.prototype.dat=function(t){return this.cdata(t)},t.prototype.com=function(t){return this.comment(t)},t.prototype.ins=function(t,e){return this.instruction(t,e)},t.prototype.dec=function(t,e,n){return this.declaration(t,e,n)},t.prototype.dtd=function(t,e,n){return this.doctype(t,e,n)},t.prototype.e=function(t,e,n){return this.element(t,e,n)},t.prototype.n=function(t,e,n){return this.node(t,e,n)},t.prototype.t=function(t){return this.text(t)},t.prototype.d=function(t){return this.cdata(t)},t.prototype.c=function(t){return this.comment(t)},t.prototype.r=function(t){return this.raw(t)},t.prototype.i=function(t,e){return this.instruction(t,e)},t.prototype.att=function(){return this.currentNode&&this.currentNode instanceof u?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},t.prototype.a=function(){return this.currentNode&&this.currentNode instanceof u?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},t.prototype.ent=function(t,e){return this.entity(t,e)},t.prototype.pent=function(t,e){return this.pEntity(t,e)},t.prototype.not=function(t,e){return this.notation(t,e)},t}()}).call(this)},function(t,e,n){(function(){var e,r,i,o,a,s,c,l,u,p,f,h,d,g={}.hasOwnProperty;c=n(34),l=n(35),e=n(32),r=n(33),u=n(31),f=n(40),h=n(41),p=n(42),i=n(36),o=n(38),a=n(37),s=n(39),d=n(91),t.exports=function(t){function n(t,e){n.__super__.constructor.call(this,e),this.stream=t}return function(t,e){for(var n in e)g.call(e,n)&&(t[n]=e[n]);function r(){this.constructor=t}r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype}(n,d),n.prototype.document=function(t){var e,n,i,o,a,s,u,f;for(n=0,o=(s=t.children).length;n"+this.endline(t))},n.prototype.comment=function(t,e){return this.stream.write(this.space(e)+"\x3c!-- "+t.text+" --\x3e"+this.endline(t))},n.prototype.declaration=function(t,e){return this.stream.write(this.space(e)),this.stream.write('"),this.stream.write(this.endline(t))},n.prototype.docType=function(t,n){var c,l,u,f;if(n||(n=0),this.stream.write(this.space(n)),this.stream.write("0){for(this.stream.write(" ["),this.stream.write(this.endline(t)),l=0,u=(f=t.children).length;l"),this.stream.write(this.endline(t))},n.prototype.element=function(t,n){var i,o,a,s,c,l,d,m;for(c in n||(n=0),m=this.space(n),this.stream.write(m+"<"+t.name),l=t.attributes)g.call(l,c)&&(i=l[c],this.attribute(i));if(0===t.children.length||t.children.every(function(t){return""===t.value}))this.allowEmpty?this.stream.write(">"):this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&1===t.children.length&&null!=t.children[0].value)this.stream.write(">"),this.stream.write(t.children[0].value),this.stream.write("");else{for(this.stream.write(">"+this.newline),a=0,s=(d=t.children).length;a")}return this.stream.write(this.endline(t))},n.prototype.processingInstruction=function(t,e){return this.stream.write(this.space(e)+""+this.endline(t))},n.prototype.raw=function(t,e){return this.stream.write(this.space(e)+t.value+this.endline(t))},n.prototype.text=function(t,e){return this.stream.write(this.space(e)+t.value+this.endline(t))},n.prototype.dtdAttList=function(t,e){return this.stream.write(this.space(e)+""+this.endline(t))},n.prototype.dtdElement=function(t,e){return this.stream.write(this.space(e)+""+this.endline(t))},n.prototype.dtdEntity=function(t,e){return this.stream.write(this.space(e)+""+this.endline(t))},n.prototype.dtdNotation=function(t,e){return this.stream.write(this.space(e)+""+this.endline(t))},n.prototype.endline=function(t){return t.isLastRootNode?"":this.newline},n}()}).call(this)},function(t,e,n){(function(){"use strict";var t,r,i,o,a,s,c,l,u=function(t,e){return function(){return t.apply(e,arguments)}},p={}.hasOwnProperty;c=n(203),i=n(17),t=n(204),s=n(93),l=n(205).setImmediate,r=n(51).defaults,o=function(t){return"object"==typeof t&&null!=t&&0===Object.keys(t).length},a=function(t,e,n){var r,i;for(r=0,i=t.length;r0&&(c[t.options.childkey]=u),u=c;return r.length>0?t.assignOrPush(d,l,u):(t.options.explicitRoot&&(h=u,(u={})[l]=h),t.resultObject=u,t.saxParser.ended=!0,t.emit("end",t.resultObject))}}(this),n=function(t){return function(n){var i,o;if(o=r[r.length-1])return o[e]+=n,t.options.explicitChildren&&t.options.preserveChildrenOrder&&t.options.charsAsChildren&&(t.options.includeWhiteChars||""!==n.replace(/\\n/g,"").trim())&&(o[t.options.childkey]=o[t.options.childkey]||[],(i={"#name":"__text__"})[e]=n,t.options.normalize&&(i[e]=i[e].replace(/\s{2,}/g," ").trim()),o[t.options.childkey].push(i)),o}}(this),this.saxParser.ontext=n,this.saxParser.oncdata=function(t){var e;if(e=n(t))return e.cdata=!0}},f.prototype.parseString=function(e,n){var r;null!=n&&"function"==typeof n&&(this.on("end",function(t){return this.reset(),n(null,t)}),this.on("error",function(t){return this.reset(),n(t)}));try{return""===(e=e.toString()).trim()?(this.emit("end",null),!0):(e=t.stripBOM(e),this.options.async?(this.remaining=e,l(this.processAsync),this.saxParser):this.saxParser.write(e).close())}catch(t){if(r=t,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",r),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw r}},f}(),e.parseString=function(t,n,r){var i,o;return null!=r?("function"==typeof r&&(i=r),"object"==typeof n&&(o=n)):("function"==typeof n&&(i=n),o={}),new e.Parser(o).parseString(t,i)}}).call(this)},function(t,e,n){!function(t){t.parser=function(t,e){return new i(t,e)},t.SAXParser=i,t.SAXStream=a,t.createStream=function(t,e){return new a(t,e)},t.MAX_BUFFER_LENGTH=65536;var e,r=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function i(e,n){if(!(this instanceof i))return new i(e,n);!function(t){for(var e=0,n=r.length;e"===i?(T(this,"onsgmldeclaration",this.sgmlDecl),this.sgmlDecl="",this.state=E.TEXT):_(i)?(this.state=E.SGML_DECL_QUOTED,this.sgmlDecl+=i):this.sgmlDecl+=i;continue;case E.SGML_DECL_QUOTED:i===this.q&&(this.state=E.SGML_DECL,this.q=""),this.sgmlDecl+=i;continue;case E.DOCTYPE:">"===i?(this.state=E.TEXT,T(this,"ondoctype",this.doctype),this.doctype=!0):(this.doctype+=i,"["===i?this.state=E.DOCTYPE_DTD:_(i)&&(this.state=E.DOCTYPE_QUOTED,this.q=i));continue;case E.DOCTYPE_QUOTED:this.doctype+=i,i===this.q&&(this.q="",this.state=E.DOCTYPE);continue;case E.DOCTYPE_DTD:this.doctype+=i,"]"===i?this.state=E.DOCTYPE:_(i)&&(this.state=E.DOCTYPE_DTD_QUOTED,this.q=i);continue;case E.DOCTYPE_DTD_QUOTED:this.doctype+=i,i===this.q&&(this.state=E.DOCTYPE_DTD,this.q="");continue;case E.COMMENT:"-"===i?this.state=E.COMMENT_ENDING:this.comment+=i;continue;case E.COMMENT_ENDING:"-"===i?(this.state=E.COMMENT_ENDED,this.comment=A(this.opt,this.comment),this.comment&&T(this,"oncomment",this.comment),this.comment=""):(this.comment+="-"+i,this.state=E.COMMENT);continue;case E.COMMENT_ENDED:">"!==i?(D(this,"Malformed comment"),this.comment+="--"+i,this.state=E.COMMENT):this.state=E.TEXT;continue;case E.CDATA:"]"===i?this.state=E.CDATA_ENDING:this.cdata+=i;continue;case E.CDATA_ENDING:"]"===i?this.state=E.CDATA_ENDING_2:(this.cdata+="]"+i,this.state=E.CDATA);continue;case E.CDATA_ENDING_2:">"===i?(this.cdata&&T(this,"oncdata",this.cdata),T(this,"onclosecdata"),this.cdata="",this.state=E.TEXT):"]"===i?this.cdata+="]":(this.cdata+="]]"+i,this.state=E.CDATA);continue;case E.PROC_INST:"?"===i?this.state=E.PROC_INST_ENDING:m(i)?this.state=E.PROC_INST_BODY:this.procInstName+=i;continue;case E.PROC_INST_BODY:if(!this.procInstBody&&m(i))continue;"?"===i?this.state=E.PROC_INST_ENDING:this.procInstBody+=i;continue;case E.PROC_INST_ENDING:">"===i?(T(this,"onprocessinginstruction",{name:this.procInstName,body:this.procInstBody}),this.procInstName=this.procInstBody="",this.state=E.TEXT):(this.procInstBody+="?"+i,this.state=E.PROC_INST_BODY);continue;case E.OPEN_TAG:y(h,i)?this.tagName+=i:(B(this),">"===i?z(this):"/"===i?this.state=E.OPEN_TAG_SLASH:(m(i)||D(this,"Invalid character in tag name"),this.state=E.ATTRIB));continue;case E.OPEN_TAG_SLASH:">"===i?(z(this,!0),M(this)):(D(this,"Forward-slash in opening tag not followed by >"),this.state=E.ATTRIB);continue;case E.ATTRIB:if(m(i))continue;">"===i?z(this):"/"===i?this.state=E.OPEN_TAG_SLASH:y(f,i)?(this.attribName=i,this.attribValue="",this.state=E.ATTRIB_NAME):D(this,"Invalid attribute name");continue;case E.ATTRIB_NAME:"="===i?this.state=E.ATTRIB_VALUE:">"===i?(D(this,"Attribute without value"),this.attribValue=this.attribName,N(this),z(this)):m(i)?this.state=E.ATTRIB_NAME_SAW_WHITE:y(h,i)?this.attribName+=i:D(this,"Invalid attribute name");continue;case E.ATTRIB_NAME_SAW_WHITE:if("="===i)this.state=E.ATTRIB_VALUE;else{if(m(i))continue;D(this,"Attribute without value"),this.tag.attributes[this.attribName]="",this.attribValue="",T(this,"onattribute",{name:this.attribName,value:""}),this.attribName="",">"===i?z(this):y(f,i)?(this.attribName=i,this.state=E.ATTRIB_NAME):(D(this,"Invalid attribute name"),this.state=E.ATTRIB)}continue;case E.ATTRIB_VALUE:if(m(i))continue;_(i)?(this.q=i,this.state=E.ATTRIB_VALUE_QUOTED):(D(this,"Unquoted attribute value"),this.state=E.ATTRIB_VALUE_UNQUOTED,this.attribValue=i);continue;case E.ATTRIB_VALUE_QUOTED:if(i!==this.q){"&"===i?this.state=E.ATTRIB_VALUE_ENTITY_Q:this.attribValue+=i;continue}N(this),this.q="",this.state=E.ATTRIB_VALUE_CLOSED;continue;case E.ATTRIB_VALUE_CLOSED:m(i)?this.state=E.ATTRIB:">"===i?z(this):"/"===i?this.state=E.OPEN_TAG_SLASH:y(f,i)?(D(this,"No whitespace between attributes"),this.attribName=i,this.attribValue="",this.state=E.ATTRIB_NAME):D(this,"Invalid attribute name");continue;case E.ATTRIB_VALUE_UNQUOTED:if(!b(i)){"&"===i?this.state=E.ATTRIB_VALUE_ENTITY_U:this.attribValue+=i;continue}N(this),">"===i?z(this):this.state=E.ATTRIB;continue;case E.CLOSE_TAG:if(this.tagName)">"===i?M(this):y(h,i)?this.tagName+=i:this.script?(this.script+=""===i?M(this):D(this,"Invalid characters in closing tag");continue;case E.TEXT_ENTITY:case E.ATTRIB_VALUE_ENTITY_Q:case E.ATTRIB_VALUE_ENTITY_U:var l,u;switch(this.state){case E.TEXT_ENTITY:l=E.TEXT,u="textNode";break;case E.ATTRIB_VALUE_ENTITY_Q:l=E.ATTRIB_VALUE_QUOTED,u="attribValue";break;case E.ATTRIB_VALUE_ENTITY_U:l=E.ATTRIB_VALUE_UNQUOTED,u="attribValue"}";"===i?(this[u]+=R(this),this.entity="",this.state=l):y(this.entity.length?g:d,i)?this.entity+=i:(D(this,"Invalid character in entity name"),this[u]+="&"+this.entity+i,this.entity="",this.state=l);continue;default:throw new Error(this,"Unknown state: "+this.state)}this.position>=this.bufferCheckPosition&&function(e){for(var n=Math.max(t.MAX_BUFFER_LENGTH,10),i=0,o=0,a=r.length;on)switch(r[o]){case"textNode":O(e);break;case"cdata":T(e,"oncdata",e.cdata),e.cdata="";break;case"script":T(e,"onscript",e.script),e.script="";break;default:C(e,"Max buffer length exceeded: "+r[o])}i=Math.max(i,s)}var c=t.MAX_BUFFER_LENGTH-i;e.bufferCheckPosition=c+e.position}(this);return this} +/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){var t;O(t=this),""!==t.cdata&&(T(t,"oncdata",t.cdata),t.cdata=""),""!==t.script&&(T(t,"onscript",t.script),t.script="")}};try{e=n(7).Stream}catch(t){e=function(){}}var o=t.EVENTS.filter(function(t){return"error"!==t&&"end"!==t});function a(t,n){if(!(this instanceof a))return new a(t,n);e.apply(this),this._parser=new i(t,n),this.writable=!0,this.readable=!0;var r=this;this._parser.onend=function(){r.emit("end")},this._parser.onerror=function(t){r.emit("error",t),r._parser.error=null},this._decoder=null,o.forEach(function(t){Object.defineProperty(r,"on"+t,{get:function(){return r._parser["on"+t]},set:function(e){if(!e)return r.removeAllListeners(t),r._parser["on"+t]=e,e;r.on(t,e)},enumerable:!0,configurable:!1})})}a.prototype=Object.create(e.prototype,{constructor:{value:a}}),a.prototype.write=function(t){if("function"==typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(t)){if(!this._decoder){var e=n(92).StringDecoder;this._decoder=new e("utf8")}t=this._decoder.write(t)}return this._parser.write(t.toString()),this.emit("data",t),!0},a.prototype.end=function(t){return t&&t.length&&this.write(t),this._parser.end(),!0},a.prototype.on=function(t,n){var r=this;return r._parser["on"+t]||-1===o.indexOf(t)||(r._parser["on"+t]=function(){var e=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);e.splice(0,0,t),r.emit.apply(r,e)}),e.prototype.on.call(r,t,n)};var s="[CDATA[",c="DOCTYPE",l="http://www.w3.org/XML/1998/namespace",u="http://www.w3.org/2000/xmlns/",p={xml:l,xmlns:u},f=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,h=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,d=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,g=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function m(t){return" "===t||"\n"===t||"\r"===t||"\t"===t}function _(t){return'"'===t||"'"===t}function b(t){return">"===t||m(t)}function y(t,e){return t.test(e)}function v(t,e){return!y(t,e)}var x,w,k,E=0;for(var S in t.STATE={BEGIN:E++,BEGIN_WHITESPACE:E++,TEXT:E++,TEXT_ENTITY:E++,OPEN_WAKA:E++,SGML_DECL:E++,SGML_DECL_QUOTED:E++,DOCTYPE:E++,DOCTYPE_QUOTED:E++,DOCTYPE_DTD:E++,DOCTYPE_DTD_QUOTED:E++,COMMENT_STARTING:E++,COMMENT:E++,COMMENT_ENDING:E++,COMMENT_ENDED:E++,CDATA:E++,CDATA_ENDING:E++,CDATA_ENDING_2:E++,PROC_INST:E++,PROC_INST_BODY:E++,PROC_INST_ENDING:E++,OPEN_TAG:E++,OPEN_TAG_SLASH:E++,ATTRIB:E++,ATTRIB_NAME:E++,ATTRIB_NAME_SAW_WHITE:E++,ATTRIB_VALUE:E++,ATTRIB_VALUE_QUOTED:E++,ATTRIB_VALUE_CLOSED:E++,ATTRIB_VALUE_UNQUOTED:E++,ATTRIB_VALUE_ENTITY_Q:E++,ATTRIB_VALUE_ENTITY_U:E++,CLOSE_TAG:E++,CLOSE_TAG_SAW_WHITE:E++,SCRIPT:E++,SCRIPT_ENDING:E++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach(function(e){var n=t.ENTITIES[e],r="number"==typeof n?String.fromCharCode(n):n;t.ENTITIES[e]=r}),t.STATE)t.STATE[t.STATE[S]]=S;function I(t,e,n){t[e]&&t[e](n)}function T(t,e,n){t.textNode&&O(t),I(t,e,n)}function O(t){t.textNode=A(t.opt,t.textNode),t.textNode&&I(t,"ontext",t.textNode),t.textNode=""}function A(t,e){return t.trim&&(e=e.trim()),t.normalize&&(e=e.replace(/\s+/g," ")),e}function C(t,e){return O(t),t.trackPosition&&(e+="\nLine: "+t.line+"\nColumn: "+t.column+"\nChar: "+t.c),e=new Error(e),t.error=e,I(t,"onerror",e),t}function P(t){return t.sawRoot&&!t.closedRoot&&D(t,"Unclosed root tag"),t.state!==E.BEGIN&&t.state!==E.BEGIN_WHITESPACE&&t.state!==E.TEXT&&C(t,"Unexpected end"),O(t),t.c="",t.closed=!0,I(t,"onend"),i.call(t,t.strict,t.opt),t}function D(t,e){if("object"!=typeof t||!(t instanceof i))throw new Error("bad call to strictFail");t.strict&&C(t,e)}function B(t){t.strict||(t.tagName=t.tagName[t.looseCase]());var e=t.tags[t.tags.length-1]||t,n=t.tag={name:t.tagName,attributes:{}};t.opt.xmlns&&(n.ns=e.ns),t.attribList.length=0,T(t,"onopentagstart",n)}function L(t,e){var n=t.indexOf(":")<0?["",t]:t.split(":"),r=n[0],i=n[1];return e&&"xmlns"===t&&(r="xmlns",i=""),{prefix:r,local:i}}function N(t){if(t.strict||(t.attribName=t.attribName[t.looseCase]()),-1!==t.attribList.indexOf(t.attribName)||t.tag.attributes.hasOwnProperty(t.attribName))t.attribName=t.attribValue="";else{if(t.opt.xmlns){var e=L(t.attribName,!0),n=e.prefix,r=e.local;if("xmlns"===n)if("xml"===r&&t.attribValue!==l)D(t,"xml: prefix must be bound to "+l+"\nActual: "+t.attribValue);else if("xmlns"===r&&t.attribValue!==u)D(t,"xmlns: prefix must be bound to "+u+"\nActual: "+t.attribValue);else{var i=t.tag,o=t.tags[t.tags.length-1]||t;i.ns===o.ns&&(i.ns=Object.create(o.ns)),i.ns[r]=t.attribValue}t.attribList.push([t.attribName,t.attribValue])}else t.tag.attributes[t.attribName]=t.attribValue,T(t,"onattribute",{name:t.attribName,value:t.attribValue});t.attribName=t.attribValue=""}}function z(t,e){if(t.opt.xmlns){var n=t.tag,r=L(t.tagName);n.prefix=r.prefix,n.local=r.local,n.uri=n.ns[r.prefix]||"",n.prefix&&!n.uri&&(D(t,"Unbound namespace prefix: "+JSON.stringify(t.tagName)),n.uri=r.prefix);var i=t.tags[t.tags.length-1]||t;n.ns&&i.ns!==n.ns&&Object.keys(n.ns).forEach(function(e){T(t,"onopennamespace",{prefix:e,uri:n.ns[e]})});for(var o=0,a=t.attribList.length;o",t.tagName="",void(t.state=E.SCRIPT);T(t,"onscript",t.script),t.script=""}var e=t.tags.length,n=t.tagName;t.strict||(n=n[t.looseCase]());for(var r=n;e--;){if(t.tags[e].name===r)break;D(t,"Unexpected close tag")}if(e<0)return D(t,"Unmatched closing tag: "+t.tagName),t.textNode+="",void(t.state=E.TEXT);t.tagName=n;for(var i=t.tags.length;i-- >e;){var o=t.tag=t.tags.pop();t.tagName=t.tag.name,T(t,"onclosetag",t.tagName);var a={};for(var s in o.ns)a[s]=o.ns[s];var c=t.tags[t.tags.length-1]||t;t.opt.xmlns&&o.ns!==c.ns&&Object.keys(o.ns).forEach(function(e){var n=o.ns[e];T(t,"onclosenamespace",{prefix:e,uri:n})})}0===e&&(t.closedRoot=!0),t.tagName=t.attribValue=t.attribName="",t.attribList.length=0,t.state=E.TEXT}function R(t){var e,n=t.entity,r=n.toLowerCase(),i="";return t.ENTITIES[n]?t.ENTITIES[n]:t.ENTITIES[r]?t.ENTITIES[r]:("#"===(n=r).charAt(0)&&("x"===n.charAt(1)?(n=n.slice(2),i=(e=parseInt(n,16)).toString(16)):(n=n.slice(1),i=(e=parseInt(n,10)).toString(10))),n=n.replace(/^0+/,""),isNaN(e)||i.toLowerCase()!==n?(D(t,"Invalid character entity"),"&"+t.entity+";"):String.fromCodePoint(e))}function j(t,e){"<"===e?(t.state=E.OPEN_WAKA,t.startTagPosition=t.position):m(e)||(D(t,"Non-whitespace before first tag."),t.textNode=e,t.state=E.TEXT)}function F(t,e){var n="";return e1114111||w(s)!==s)throw RangeError("Invalid code point: "+s);s<=65535?r.push(s):(t=55296+((s-=65536)>>10),e=s%1024+56320,r.push(t,e)),(i+1===o||r.length>n)&&(a+=x.apply(null,r),r.length=0)}return a},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:k,configurable:!0,writable:!0}):String.fromCodePoint=k)}(e)},function(t,e){(function(){"use strict";e.stripBOM=function(t){return"\ufeff"===t[0]?t.substring(1):t}}).call(this)},function(t,e){t.exports=require("timers")},function(t,e){t.exports=function(t){for(var e in"chasrset"in t&&(t.charset=t.chasrset,delete t.chasrset),t)"face"!==e&&"charset"!==e&&(t[e]="padding"===e||"spacing"===e?t[e].split(",").map(function(t){return parseInt(t,10)}):parseInt(t[e],10));return t}},function(t,e){var n=[66,77,70];function r(t,e,n){if(n>e.length-1)return 0;var r=e.readUInt8(n++),o=e.readInt32LE(n);switch(n+=4,r){case 1:t.info=function(t,e){var n={};n.size=t.readInt16LE(e);var r=t.readUInt8(e+2);n.smooth=r>>7&1,n.unicode=r>>6&1,n.italic=r>>5&1,n.bold=r>>4&1,r>>3&1&&(n.fixedHeight=1);return n.charset=t.readUInt8(e+3)||"",n.stretchH=t.readUInt16LE(e+4),n.aa=t.readUInt8(e+6),n.padding=[t.readInt8(e+7),t.readInt8(e+8),t.readInt8(e+9),t.readInt8(e+10)],n.spacing=[t.readInt8(e+11),t.readInt8(e+12)],n.outline=t.readUInt8(e+13),n.face=function(t,e){return i(t,e).toString("utf8")}(t,e+14),n}(e,n);break;case 2:t.common=function(t,e){var n={};n.lineHeight=t.readUInt16LE(e),n.base=t.readUInt16LE(e+2),n.scaleW=t.readUInt16LE(e+4),n.scaleH=t.readUInt16LE(e+6),n.pages=t.readUInt16LE(e+8);t.readUInt8(e+10);return n.packed=0,n.alphaChnl=t.readUInt8(e+11),n.redChnl=t.readUInt8(e+12),n.greenChnl=t.readUInt8(e+13),n.blueChnl=t.readUInt8(e+14),n}(e,n);break;case 3:t.pages=function(t,e,n){for(var r=[],o=i(t,e),a=o.length+1,s=n/a,c=0;c3)throw new Error("Only supports BMFont Binary v3 (BMFont App v1.10)");for(var i={kernings:[],chars:[]},o=0;o<5;o++)e+=r(i,t,e);return i}},function(t,e,n){n(1);var r=n(5);function i(){this.types=Object.create(null),this.extensions=Object.create(null)}i.prototype.define=function(t){for(var e in t){for(var n=t[e],r=0;r4&&r(t.slice(0,4),i)}},function(t,e,n){var r=n(4).Buffer;t.exports=function(t,e){if(r.isBuffer(t)&&r.isBuffer(e)){if("function"==typeof t.equals)return t.equals(e);if(t.length!==e.length)return!1;for(var n=0;n=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},e.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),e.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],e.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},e.enable(r())},function(t,e){var n=1e3,r=60*n,i=60*r,o=24*i,a=365.25*o;function s(t,e,n){if(!(t0)return function(t){if((t=String(t)).length>100)return;var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(!e)return;var s=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return s*a;case"days":case"day":case"d":return s*o;case"hours":case"hour":case"hrs":case"hr":case"h":return s*i;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(t);if("number"===l&&!1===isNaN(t))return e.long?s(c=t,o,"day")||s(c,i,"hour")||s(c,r,"minute")||s(c,n,"second")||c+" ms":function(t){if(t>=o)return Math.round(t/o)+"d";if(t>=i)return Math.round(t/i)+"h";if(t>=r)return Math.round(t/r)+"m";if(t>=n)return Math.round(t/n)+"s";return t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},function(t,e,n){var r=n(219),i=n(3);(e=t.exports=n(94)).init=function(t){t.inspectOpts={};for(var n=Object.keys(e.inspectOpts),r=0;ro&&(a=t.slice(o),t=t.slice(0,o)),r?r.end(t):i.append(t),this._overflow=a,this._onparse()}},f.prototype._final=function(t){if(this._partial)return this.destroy(new Error("Unexpected end of data"));t()},t.exports=f},function(t,e,n){var r=n(223),i=n(3),o=n(22).Buffer;function a(t){if(!(this instanceof a))return new a(t);if(this._bufs=[],this.length=0,"function"==typeof t){this._callback=t;var e=function(t){this._callback&&(this._callback(t),this._callback=null)}.bind(this);this.on("pipe",function(t){t.on("error",e)}),this.on("unpipe",function(t){t.removeListener("error",e)})}else this.append(t);r.call(this)}i.inherits(a,r),a.prototype._offset=function(t){var e,n=0,r=0;if(0===t)return[0,0];for(;rthis.length)&&(r=this.length),n>=this.length)return t||o.alloc(0);if(r<=0)return t||o.alloc(0);var i,a,s=!!t,c=this._offset(n),l=r-n,u=l,p=s&&e||0,f=c[1];if(0===n&&r==this.length){if(!s)return 1===this._bufs.length?this._bufs[0]:o.concat(this._bufs,this.length);for(a=0;a(i=this._bufs[a].length-f))){this._bufs[a].copy(t,p,f,f+u);break}this._bufs[a].copy(t,p,f),p+=i,u-=i,f&&(f=0)}return t},a.prototype.shallowSlice=function(t,e){t=t||0,e=e||this.length,t<0&&(t+=this.length),e<0&&(e+=this.length);var n=this._offset(t),r=this._offset(e),i=this._bufs.slice(n[0],r[0]+1);return 0==r[1]?i.pop():i[i.length-1]=i[i.length-1].slice(0,r[1]),0!=n[1]&&(i[0]=i[0].slice(n[1])),new a(i)},a.prototype.toString=function(t,e,n){return this.slice(e,n).toString(t)},a.prototype.consume=function(t){for(;this._bufs.length;){if(!(t>=this._bufs[0].length)){this._bufs[0]=this._bufs[0].slice(t),this.length-=t;break}t-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift()}return this},a.prototype.duplicate=function(){for(var t=0,e=new a;t0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n},t.prototype.concat=function(t){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var e,n,i,o=r.allocUnsafe(t>>>0),a=this.head,s=0;a;)e=a.data,n=o,i=s,e.copy(n,i),s+=a.data.length,a=a.next;return o},t}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var t=i.inspect({length:this.length});return this.constructor.name+" "+t})},function(t,e,n){t.exports=n(3).deprecate},function(t,e,n){"use strict";t.exports=o;var r=n(102),i=n(23);function o(t){if(!(this instanceof o))return new o(t);r.call(this,t)}i.inherits=n(18),i.inherits(o,r),o.prototype._transform=function(t,e,n){n(null,t)}},function(t,e){t.exports=function(){for(var t={},e=0;et.length)throw new RangeError("Out of range index");return n>>>=0,(r=void 0===r?t.length:r>>>0)>n&&t.fill(e,n,r),t}t.exports=function(t,e,i,o,a){if(n)return t.fill(e,i,o,a);if("number"==typeof e)return r(t,e,i,o);if("string"==typeof e){if("string"==typeof i?(a=i,i=0,o=t.length):"string"==typeof o&&(a=o,o=t.length),void 0!==a&&"string"!=typeof a)throw new TypeError("encoding must be a string");if("latin1"===a&&(a="binary"),"string"==typeof a&&!Buffer.isEncoding(a))throw new TypeError("Unknown encoding: "+a);if(""===e)return r(t,0,i,o);if(function(t){return 1===t.length&&t.charCodeAt(0)<256}(e))return r(t,e.charCodeAt(0),i,o);e=new Buffer(e,a)}return Buffer.isBuffer(e)?function(t,e,n,r){if(n<0||r>t.length)throw new RangeError("Out of range index");if(r<=n)return t;n>>>=0,r=void 0===r?t.length:r>>>0;for(var i=n,o=e.length;i<=r-o;)e.copy(t,i),i+=o;return i!==r&&e.copy(t,i,0,r-i),t}(t,e,i,o):r(t,0,i,o)}},function(t,e){t.exports=function(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative');return Buffer.allocUnsafe?Buffer.allocUnsafe(t):new Buffer(t)}},function(t,e,n){var r=n(233),i=n(131),o=n(3),a=n(105),s=n(104),c=n(11).Readable,l=n(11).Writable,u=n(92).StringDecoder,p=n(103),f=parseInt("755",8),h=parseInt("644",8),d=a(1024),g=function(){},m=function(t,e){(e&=511)&&t.push(d.slice(0,512-e))};var _=function(t){l.call(this),this.written=0,this._to=t,this._destroyed=!1};o.inherits(_,l),_.prototype._write=function(t,e,n){if(this.written+=t.length,this._to.push(t))return n();this._to._drain=n},_.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var b=function(){l.call(this),this.linkname="",this._decoder=new u("utf-8"),this._destroyed=!1};o.inherits(b,l),b.prototype._write=function(t,e,n){this.linkname+=this._decoder.write(t),n()},b.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var y=function(){l.call(this),this._destroyed=!1};o.inherits(y,l),y.prototype._write=function(t,e,n){n(new Error("No body allowed for this entry"))},y.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var v=function(t){if(!(this instanceof v))return new v(t);c.call(this,t),this._drain=g,this._finalized=!1,this._finalizing=!1,this._destroyed=!1,this._stream=null};o.inherits(v,c),v.prototype.entry=function(t,e,n){if(this._stream)throw new Error("already piping an entry");if(!this._finalized&&!this._destroyed){"function"==typeof e&&(n=e,e=null),n||(n=g);var o=this;if(t.size&&"symlink"!==t.type||(t.size=0),t.type||(t.type=function(t){switch(t&r.S_IFMT){case r.S_IFBLK:return"block-device";case r.S_IFCHR:return"character-device";case r.S_IFDIR:return"directory";case r.S_IFIFO:return"fifo";case r.S_IFLNK:return"symlink"}return"file"}(t.mode)),t.mode||(t.mode="directory"===t.type?f:h),t.uid||(t.uid=0),t.gid||(t.gid=0),t.mtime||(t.mtime=new Date),"string"==typeof e&&(e=s(e)),Buffer.isBuffer(e))return t.size=e.length,this._encode(t),this.push(e),m(o,t.size),process.nextTick(n),new y;if("symlink"===t.type&&!t.linkname){var a=new b;return i(a,function(e){if(e)return o.destroy(),n(e);t.linkname=a.linkname,o._encode(t),n()}),a}if(this._encode(t),"file"!==t.type&&"contiguous-file"!==t.type)return process.nextTick(n),new y;var c=new _(this);return this._stream=c,i(c,function(e){return o._stream=null,e?(o.destroy(),n(e)):c.written!==t.size?(o.destroy(),n(new Error("size mismatch"))):(m(o,t.size),o._finalizing&&o.finalize(),void n())}),c}},v.prototype.finalize=function(){this._stream?this._finalizing=!0:this._finalized||(this._finalized=!0,this.push(d),this.push(null))},v.prototype.destroy=function(t){this._destroyed||(this._destroyed=!0,t&&this.emit("error",t),this.emit("close"),this._stream&&this._stream.destroy&&this._stream.destroy())},v.prototype._encode=function(t){if(!t.pax){var e=p.encode(t);if(e)return void this.push(e)}this._encodePax(t)},v.prototype._encodePax=function(t){var e=p.encodePax({name:t.name,linkname:t.linkname,pax:t.pax}),n={name:"PaxHeader",mode:t.mode,uid:t.uid,gid:t.gid,size:e.length,mtime:t.mtime,type:"pax-header",linkname:t.linkname&&"PaxHeader",uname:t.uname,gname:t.gname,devmajor:t.devmajor,devminor:t.devminor};this.push(p.encode(n)),this.push(e),m(this,e.length),n.size=t.size,n.type=t.type,this.push(p.encode(n))},v.prototype._read=function(t){var e=this._drain;this._drain=g,e()},t.exports=v},function(t,e,n){t.exports=n(5).constants||n(66)},function(t,e,n){"use strict";const r=n(53),i=n(235),o=n(47),a=n(236),s=n(241);t.exports=()=>t=>Buffer.isBuffer(t)||o(t)?!Buffer.isBuffer(t)||i(t)&&"bz2"===i(t).ext?Buffer.isBuffer(t)?r()(a.decode(t)):r()(t.pipe(s())):Promise.resolve([]):Promise.reject(new TypeError(`Expected a Buffer or Stream, got ${typeof t}`))},function(t,e,n){"use strict";const r=t=>Array.from(t).map(t=>t.charCodeAt(0)),i=r("META-INF/mozilla.rsa"),o=r("[Content_Types].xml"),a=r("_rels/.rels");t.exports=t=>{const e=new Uint8Array(t);if(!(e&&e.length>1))return null;const n=(t,n)=>{n=Object.assign({offset:0},n);for(let r=0;rt.findIndex((t,e,n)=>80===n[e]&&75===n[e+1]&&3===n[e+2]&&4===n[e+3]),i=t(e.subarray(4,2004));if(-1!==i){const o=t(e.subarray(i+8,i+8+1e3));if(-1!==o){const t=8+i+o+30;if(n(r("word/"),{offset:t}))return{ext:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"};if(n(r("ppt/"),{offset:t}))return{ext:"pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"};if(n(r("xl/"),{offset:t}))return{ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}}}}}if(n([80,75])&&(3===e[2]||5===e[2]||7===e[2])&&(4===e[3]||6===e[3]||8===e[3]))return{ext:"zip",mime:"application/zip"};if(n([117,115,116,97,114],{offset:257}))return{ext:"tar",mime:"application/x-tar"};if(n([82,97,114,33,26,7])&&(0===e[6]||1===e[6]))return{ext:"rar",mime:"application/x-rar-compressed"};if(n([31,139,8]))return{ext:"gz",mime:"application/gzip"};if(n([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(n([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(n([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(n([51,103,112,53])||n([0,0,0])&&n([102,116,121,112],{offset:4})&&(n([109,112,52,49],{offset:8})||n([109,112,52,50],{offset:8})||n([105,115,111,109],{offset:8})||n([105,115,111,50],{offset:8})||n([109,109,112,52],{offset:8})||n([77,52,86],{offset:8})||n([100,97,115,104],{offset:8})))return{ext:"mp4",mime:"video/mp4"};if(n([77,84,104,100]))return{ext:"mid",mime:"audio/midi"};if(n([26,69,223,163])){const t=e.subarray(4,4100),n=t.findIndex((t,e,n)=>66===n[e]&&130===n[e+1]);if(-1!==n){const e=n+3,r=n=>Array.from(n).every((n,r)=>t[e+r]===n.charCodeAt(0));if(r("matroska"))return{ext:"mkv",mime:"video/x-matroska"};if(r("webm"))return{ext:"webm",mime:"video/webm"}}}if(n([0,0,0,20,102,116,121,112,113,116,32,32])||n([102,114,101,101],{offset:4})||n([102,116,121,112,113,116,32,32],{offset:4})||n([109,100,97,116],{offset:4})||n([119,105,100,101],{offset:4}))return{ext:"mov",mime:"video/quicktime"};if(n([82,73,70,70])&&n([65,86,73],{offset:8}))return{ext:"avi",mime:"video/x-msvideo"};if(n([48,38,178,117,142,102,207,17,166,217]))return{ext:"wmv",mime:"video/x-ms-wmv"};if(n([0,0,1,186]))return{ext:"mpg",mime:"video/mpeg"};for(let t=0;t<2&&t0;n--)t[n]=t[n-1];return t[0]=r,r},c={OK:0,LAST_BLOCK:-1,NOT_BZIP_DATA:-2,UNEXPECTED_INPUT_EOF:-3,UNEXPECTED_OUTPUT_EOF:-4,DATA_ERROR:-5,OUT_OF_MEMORY:-6,OBSOLETE_INPUT:-7,END_OF_BLOCK:-8},l={};l[c.LAST_BLOCK]="Bad file checksum",l[c.NOT_BZIP_DATA]="Not bzip data",l[c.UNEXPECTED_INPUT_EOF]="Unexpected input EOF",l[c.UNEXPECTED_OUTPUT_EOF]="Unexpected output EOF",l[c.DATA_ERROR]="Data error",l[c.OUT_OF_MEMORY]="Out of memory",l[c.OBSOLETE_INPUT]="Obsolete (pre 0.9.5) bzip format not supported.";var u=function(t,e){var n=l[t]||"unknown error";e&&(n+=": "+e);var r=new TypeError(n);throw r.errorCode=t,r},p=function(t,e){this.writePos=this.writeCurrent=this.writeCount=0,this._start_bunzip(t,e)};p.prototype._init_block=function(){return this._get_next_block()?(this.blockCRC=new o,!0):(this.writeCount=-1,!1)},p.prototype._start_bunzip=function(t,e){var n=new Buffer(4);4===t.read(n,0,4)&&"BZh"===String.fromCharCode(n[0],n[1],n[2])||u(c.NOT_BZIP_DATA,"bad magic");var i=n[3]-48;(i<1||i>9)&&u(c.NOT_BZIP_DATA,"level out of range"),this.reader=new r(t),this.dbufSize=1e5*i,this.nextoutput=0,this.outputStream=e,this.streamCRC=0},p.prototype._get_next_block=function(){var t,e,n,r=this.reader,i=r.pi();if("177245385090"===i)return!1;"314159265359"!==i&&u(c.NOT_BZIP_DATA),this.targetBlockCRC=r.read(32)>>>0,this.streamCRC=(this.targetBlockCRC^(this.streamCRC<<1|this.streamCRC>>>31))>>>0,r.read(1)&&u(c.OBSOLETE_INPUT);var o=r.read(24);o>this.dbufSize&&u(c.DATA_ERROR,"initial position out of bounds");var a=r.read(16),l=new Buffer(256),p=0;for(t=0;t<16;t++)if(a&1<<15-t){var f=16*t;for(n=r.read(16),e=0;e<16;e++)n&1<<15-e&&(l[p++]=f+e)}var h=r.read(3);(h<2||h>6)&&u(c.DATA_ERROR);var d=r.read(15);0===d&&u(c.DATA_ERROR);var g=new Buffer(256);for(t=0;t=h&&u(c.DATA_ERROR);m[t]=s(g,e)}var _,b=p+2,y=[];for(e=0;e20)&&u(c.DATA_ERROR),r.read(1);)r.read(1)?a--:a++;w[t]=a}for(v=x=w[0],t=1;tx?x=w[t]:w[t]=d&&u(c.DATA_ERROR),_=y[m[A++]]),t=_.minLen,e=r.read(t);t>_.maxLen&&u(c.DATA_ERROR),!(e<=_.limit[t]);t++)e=e<<1|r.read(1);((e-=_.base[t])<0||e>=258)&&u(c.DATA_ERROR);var P=_.permute[e];if(0!==P&&1!==P){if(T)for(T=0,O+a>this.dbufSize&&u(c.DATA_ERROR),S[I=l[g[0]]]+=a;a--;)C[O++]=I;if(P>p)break;O>=this.dbufSize&&u(c.DATA_ERROR),S[I=l[I=s(g,t=P-1)]]++,C[O++]=I}else T||(T=1,a=0),a+=0===P?T:2*T,T<<=1}for((o<0||o>=O)&&u(c.DATA_ERROR),e=0,t=0;t<256;t++)n=e+S[t],S[t]=e,e=n;for(t=0;t>=8,L=-1),this.writePos=D,this.writeCurrent=B,this.writeCount=O,this.writeRun=L,!0},p.prototype._read_bunzip=function(t,e){var n,r,i;if(this.writeCount<0)return 0;for(var o=this.dbuf,a=this.writePos,s=this.writeCurrent,l=this.writeCount,p=(this.outputsize,this.writeRun);l;){for(l--,r=s,s=255&(a=o[a]),a>>=8,3==p++?(n=s,i=r,s=-1):(n=1,i=s),this.blockCRC.updateCRCRun(i,n);n--;)this.outputStream.writeByte(i),this.nextoutput++;s!=r&&(p=0)}return this.writeCount=l,this.blockCRC.getCRC()!==this.targetBlockCRC&&u(c.DATA_ERROR,"Bad block CRC (got "+this.blockCRC.getCRC().toString(16)+" expected "+this.targetBlockCRC.toString(16)+")"),this.nextoutput};var f=function(t){if("readByte"in t)return t;var e=new i;return e.pos=0,e.readByte=function(){return t[this.pos++]},e.seek=function(t){this.pos=t},e.eof=function(){return this.pos>=t.length},e},h=function(t){var e=new i,n=!0;if(t)if("number"==typeof t)e.buffer=new Buffer(t),n=!1;else{if("writeByte"in t)return t;e.buffer=t,n=!1}else e.buffer=new Buffer(16384);return e.pos=0,e.writeByte=function(t){if(n&&this.pos>=this.buffer.length){var e=new Buffer(2*this.buffer.length);this.buffer.copy(e),this.buffer=e}this.buffer[this.pos++]=t},e.getBuffer=function(){if(this.pos!==this.buffer.length){if(!n)throw new TypeError("outputsize does not match decoded input");var t=new Buffer(this.pos);this.buffer.copy(t,0,0,this.pos),this.buffer=t}return this.buffer},e._coerced=!0,e};p.Err=c,p.decode=function(t,e,n){for(var r=f(t),i=h(e),o=new p(r,i);!("eof"in r&&r.eof());)if(o._init_block())o._read_bunzip();else{var a=o.reader.read(32)>>>0;if(a!==o.streamCRC&&u(c.DATA_ERROR,"Bad stream CRC (got "+o.streamCRC.toString(16)+" expected "+a.toString(16)+")"),!(n&&"eof"in r)||r.eof())break;o._start_bunzip(r,i)}if("getBuffer"in i)return i.getBuffer()},p.decodeBlock=function(t,e,n){var r=f(t),i=h(n),a=new p(r,i);if(a.reader.seek(e),a._get_next_block()&&(a.blockCRC=new o,a.writeCopies=0,a._read_bunzip()),"getBuffer"in i)return i.getBuffer()},p.table=function(t,e,n){var r=new i;r.delegate=f(t),r.pos=0,r.readByte=function(){return this.pos++,this.delegate.readByte()},r.delegate.eof&&(r.eof=r.delegate.eof.bind(r.delegate));var o=new i;o.pos=0,o.writeByte=function(){this.pos++};for(var a=new p(r,o),s=a.dbufSize;!("eof"in r&&r.eof());){var c=8*r.pos+a.reader.bitOffset;if(a.reader.hasByte&&(c-=8),a._init_block()){var l=o.pos;a._read_bunzip(),e(c,o.pos-l)}else{a.reader.read(32);if(!(n&&"eof"in r)||r.eof())break;a._start_bunzip(r,o),console.assert(a.dbufSize===s,"shouldn't change block size within multistream file")}}},p.Stream=i,p.version=a.version,p.license=a.license,t.exports=p},function(t,e){var n=[0,1,3,7,15,31,63,127,255],r=function(t){this.stream=t,this.bitOffset=0,this.curByte=0,this.hasByte=!1};r.prototype._ensureByte=function(){this.hasByte||(this.curByte=this.stream.readByte(),this.hasByte=!0)},r.prototype.read=function(t){for(var e=0;t>0;){this._ensureByte();var r=8-this.bitOffset;if(t>=r)e<<=r,e|=n[r]&this.curByte,this.hasByte=!1,this.bitOffset=0,t-=r;else{e<<=t;var i=r-t;e|=(this.curByte&n[t]<>i,this.bitOffset+=t,t=0}}return e},r.prototype.seek=function(t){var e=t%8,n=(t-e)/8;this.bitOffset=e,this.stream.seek(n),this.hasByte=!1},r.prototype.pi=function(){var t,e=new Buffer(6);for(t=0;t>>0},this.updateCRC=function(e){t=t<<8^n[255&(t>>>24^e)]},this.updateCRCRun=function(e,r){for(;r-- >0;)t=t<<8^n[255&(t>>>24^e)]}})},function(t){t.exports={name:"seek-bzip",version:"1.0.5",contributors:["C. Scott Ananian (http://cscott.net)","Eli Skeggs","Kevin Kwok","Rob Landley (http://landley.net)"],description:"a pure-JavaScript Node.JS module for random-access decoding bzip2 data",main:"./lib/index.js",repository:{type:"git",url:"https://github.com/cscott/seek-bzip.git"},license:"MIT",bin:{"seek-bunzip":"./bin/seek-bunzip","seek-table":"./bin/seek-bzip-table"},directories:{test:"test"},dependencies:{commander:"~2.8.1"},devDependencies:{fibers:"~1.0.6",mocha:"~2.2.5"},scripts:{test:"mocha"}}},function(t,e,n){var r=n(242),i=n(243),o=n(244);t.exports=function(){var t=[],e=0,n=0,a=!1,s=null,c=null;function l(t){if(!a)try{return function(t){if(n){var e=1e5*n,r=new Int32Array(e),o=[];return null===(c=i.decompress(s,function(t){o.push(t)},r,e,c))?(n=0,!1):(t(Buffer.from(o)),!0)}return n=i.header(s),!0}(function(e){t.queue(e),null!==e&&e.length})}catch(e){return t.emit("error",e),a=!0,!1}}return r(function(r){for(t.push(r),e+=r.length,null===s&&(s=o(function(){return t.shift()}));!a&&e-s.bytesRead+1>=(25e3+1e5*n||4);)l(this)},function(t){for(;!a&&e>s.bytesRead;)l(this);a||(null!==c&&stream.emit("error",new Error("input stream ended prematurely")),this.queue(null))})}},function(t,e,n){var r=n(7);function i(t,e,n){t=t||function(t){this.queue(t)},e=e||function(){this.queue(null)};var i=!1,o=!1,a=[],s=!1,c=new r;function l(){for(;a.length&&!c.paused;){var t=a.shift();if(null===t)return c.emit("end");c.emit("data",t)}}function u(){c.writable=!1,e.call(c),!c.readable&&c.autoDestroy&&c.destroy()}return c.readable=c.writable=!0,c.paused=!1,c.autoDestroy=!(n&&!1===n.autoDestroy),c.write=function(e){return t.call(this,e),!c.paused},c.queue=c.push=function(t){return s?c:(null===t&&(s=!0),a.push(t),l(),c)},c.on("end",function(){c.readable=!1,!c.writable&&c.autoDestroy&&process.nextTick(function(){c.destroy()})}),c.end=function(t){if(!i)return i=!0,arguments.length&&c.write(t),u(),c},c.destroy=function(){if(!o)return o=!0,i=!0,a.length=0,c.writable=c.readable=!1,c.emit("close"),c},c.pause=function(){if(!c.paused)return c.paused=!0,c},c.resume=function(){return c.paused&&(c.paused=!1,c.emit("resume")),l(),c.paused||c.emit("drain"),c},c}t.exports=i,i.through=i},function(t,e){function n(t){this.name="Bzip2Error",this.message=t,this.stack=(new Error).stack}n.prototype=new Error;var r=function(t){throw new n(t)},i={};i.Bzip2Error=n,i.crcTable=[0,79764919,159529838,222504665,319059676,398814059,445009330,507990021,638119352,583659535,797628118,726387553,890018660,835552979,1015980042,944750013,1276238704,1221641927,1167319070,1095957929,1595256236,1540665371,1452775106,1381403509,1780037320,1859660671,1671105958,1733955601,2031960084,2111593891,1889500026,1952343757,2552477408,2632100695,2443283854,2506133561,2334638140,2414271883,2191915858,2254759653,3190512472,3135915759,3081330742,3009969537,2905550212,2850959411,2762807018,2691435357,3560074640,3505614887,3719321342,3648080713,3342211916,3287746299,3467911202,3396681109,4063920168,4143685023,4223187782,4286162673,3779000052,3858754371,3904687514,3967668269,881225847,809987520,1023691545,969234094,662832811,591600412,771767749,717299826,311336399,374308984,453813921,533576470,25881363,88864420,134795389,214552010,2023205639,2086057648,1897238633,1976864222,1804852699,1867694188,1645340341,1724971778,1587496639,1516133128,1461550545,1406951526,1302016099,1230646740,1142491917,1087903418,2896545431,2825181984,2770861561,2716262478,3215044683,3143675388,3055782693,3001194130,2326604591,2389456536,2200899649,2280525302,2578013683,2640855108,2418763421,2498394922,3769900519,3832873040,3912640137,3992402750,4088425275,4151408268,4197601365,4277358050,3334271071,3263032808,3476998961,3422541446,3585640067,3514407732,3694837229,3640369242,1762451694,1842216281,1619975040,1682949687,2047383090,2127137669,1938468188,2001449195,1325665622,1271206113,1183200824,1111960463,1543535498,1489069629,1434599652,1363369299,622672798,568075817,748617968,677256519,907627842,853037301,1067152940,995781531,51762726,131386257,177728840,240578815,269590778,349224269,429104020,491947555,4046411278,4126034873,4172115296,4234965207,3794477266,3874110821,3953728444,4016571915,3609705398,3555108353,3735388376,3664026991,3290680682,3236090077,3449943556,3378572211,3174993278,3120533705,3032266256,2961025959,2923101090,2868635157,2813903052,2742672763,2604032198,2683796849,2461293480,2524268063,2284983834,2364738477,2175806836,2238787779,1569362073,1498123566,1409854455,1355396672,1317987909,1246755826,1192025387,1137557660,2072149281,2135122070,1912620623,1992383480,1753615357,1816598090,1627664531,1707420964,295390185,358241886,404320391,483945776,43990325,106832002,186451547,266083308,932423249,861060070,1041341759,986742920,613929101,542559546,756411363,701822548,3316196985,3244833742,3425377559,3370778784,3601682597,3530312978,3744426955,3689838204,3819031489,3881883254,3928223919,4007849240,4037393693,4100235434,4180117107,4259748804,2310601993,2373574846,2151335527,2231098320,2596047829,2659030626,2470359227,2550115596,2947551409,2876312838,2788305887,2733848168,3165939309,3094707162,3040238851,2985771188],i.array=function(t){var e=0,n=0,r=[0,1,3,7,15,31,63,127,255];return function(i){for(var o=0;i>0;){var a=8-e;i>=a?(o<<=a,o|=r[a]&t[n++],e=0,i-=a):(o<<=i,o|=(t[n]&r[i]<<8-i-e)>>8-i-e,e+=i,i=0)}return o}},i.simple=function(t,e){var n=i.array(t),r=!1,o=1e5*i.header(n),a=new Int32Array(o);do{r=i.decompress(n,e,a,o)}while(!r)},i.header=function(t){this.byteCount=new Int32Array(256),this.symToByte=new Uint8Array(256),this.mtfSymbol=new Int32Array(256),this.selectors=new Uint8Array(32768),4348520!=t(24)&&r("No magic number found");var e=t(8)-48;return(e<1||e>9)&&r("Not a BZIP archive"),e},i.decompress=function(t,e,n,i,o){for(var a=-1,s="",c=0;c<6;c++)s+=t(8).toString(16);if("177245385090"==s)return(0|t(32))!==o&&r("Error in bzip2: crc32 do not match"),t(null),null;"314159265359"!=s&&r("eek not valid bzip data");var l=0|t(32);t(1)&&r("unsupported obsolete version");var u=t(24);u>i&&r("Initial position larger than buffer size");var p=t(16),f=0;for(c=0;c<16;c++)if(p&1<<15-c){var h=t(16);for(m=0;m<16;m++)h&1<<15-m&&(this.symToByte[f++]=16*c+m)}var d=t(3);(d<2||d>6)&&r("another error");var g=t(15);0==g&&r("meh");for(c=0;c=d&&r("whoops another error");var _=this.mtfSymbol[m];for(h=m-1;h>=0;h--)this.mtfSymbol[h+1]=this.mtfSymbol[h];this.mtfSymbol[0]=_,this.selectors[c]=_}var b,y,v,x,w=f+2,k=[],E=new Uint8Array(258),S=new Uint16Array(21);for(m=0;m20)&&r("I gave up a while ago on writing error messages"),t(1);)t(1)?p--:p++;E[c]=p}var I,T;I=T=E[0];for(c=1;cT?T=E[c]:E[c]=g&&r("meow i'm a kitty, that's an error"),O=(b=k[this.selectors[x++]]).base.subarray(1),A=b.limit.subarray(1)),m=t(c=b.minLen);c>b.maxLen&&r("rawr i'm a dinosaur"),!(m<=A[c]);)c++,m=m<<1|t(1);((m-=O[c])<0||m>=258)&&r("moo i'm a cow");var P=b.permute[m];if(0!=P&&1!=P){if(y)for(y=0,v+p>i&&r("Boom."),_=this.symToByte[this.mtfSymbol[0]],this.byteCount[_]+=p;p--;)n[v++]=_;if(P>f)break;v>=i&&r("I can't think of anything. Error"),c=P-1,_=this.mtfSymbol[c];for(h=c-1;h>=0;h--)this.mtfSymbol[h+1]=this.mtfSymbol[h];this.mtfSymbol[0]=_,_=this.symToByte[_],this.byteCount[_]++,n[v++]=_}else y||(y=1,p=0),p+=0==P?y:2*y,y<<=1}(u<0||u>=v)&&r("I'm a monkey and I'm throwing something at someone, namely you");for(m=0,c=0;c<256;c++)h=m+this.byteCount[c],this.byteCount[c]=m,m=h;for(c=0;c>=8,M=-1),v=v;v;){for(v--,B=z,z=255&(N=n[N]),N>>=8,3==M++?(D=z,L=B,z=-1):(D=1,L=z);D--;)a=4294967295&(a<<8^this.crcTable[255&(a>>24^L)]),e(L);z!=B&&(M=0)}return(0|(a=(-1^a)>>>0))!=(0|l)&&r("Error in bzip2: crc32 do not match"),null===o&&(o=0),o=4294967295&(a^(o<<1|o>>>31))},t.exports=i},function(t,e){var n=[0,1,3,7,15,31,63,127,255];t.exports=function(t){var e=0,r=0,i=t(),o=function(a){if(null===a&&0!=e)return e=0,void r++;for(var s=0;a>0;){r>=i.length&&(r=0,i=t());var c=8-e;0===e&&a>0&&o.bytesRead++,a>=c?(s<<=c,s|=n[c]&i[r++],e=0,a-=c):(s<<=a,s|=(i[r]&n[a]<<8-a-e)>>8-a-e,e+=a,a=0)}return s};return o.bytesRead=0,o}},function(t,e,n){"use strict";const r=n(12),i=n(53),o=n(95),a=n(47);t.exports=()=>t=>{if(!Buffer.isBuffer(t)&&!a(t))return Promise.reject(new TypeError(`Expected a Buffer or Stream, got ${typeof t}`));if(Buffer.isBuffer(t)&&(!o(t)||"gz"!==o(t).ext))return Promise.resolve([]);const e=r.createGunzip(),n=i()(e);return Buffer.isBuffer(t)?e.end(t):t.pipe(e),n}},function(t,e,n){"use strict";const r=n(247),i=n(248),o=n(108),a=n(252),s=t=>new Promise((e,n)=>{const r=[];t.readEntry(),t.on("entry",e=>{((t,e)=>{const n={mode:t.externalFileAttributes>>16&65535,mtime:t.getLastModDate(),path:t.fileName};return n.type=((t,e)=>{const n=t.versionMadeBy>>8;return 40960==(61440&e)?"symlink":16384==(61440&e)||0===n&&16===t.externalFileAttributes?"directory":"file"})(t,n.mode),0===n.mode&&"directory"===n.type&&(n.mode=493),0===n.mode&&(n.mode=420),o(e.openReadStream.bind(e))(t).then(i.buffer).then(t=>(n.data=t,"symlink"===n.type&&(n.linkname=t.toString()),n)).catch(t=>{throw e.close(),t})})(e,t).catch(n).then(e=>{r.push(e),t.readEntry()})}),t.on("error",n),t.on("end",()=>e(r))});t.exports=()=>t=>Buffer.isBuffer(t)?r(t)&&"zip"===r(t).ext?o(a.fromBuffer)(t,{lazyEntries:!0}).then(s):Promise.resolve([]):Promise.reject(new TypeError(`Expected a Buffer, got ${typeof t}`))},function(t,e,n){"use strict";t.exports=function(t){return t&&t.length>1?255===t[0]&&216===t[1]&&255===t[2]?{ext:"jpg",mime:"image/jpeg"}:137===t[0]&&80===t[1]&&78===t[2]&&71===t[3]?{ext:"png",mime:"image/png"}:71===t[0]&&73===t[1]&&70===t[2]?{ext:"gif",mime:"image/gif"}:87===t[8]&&69===t[9]&&66===t[10]&&80===t[11]?{ext:"webp",mime:"image/webp"}:70===t[0]&&76===t[1]&&73===t[2]&&70===t[3]?{ext:"flif",mime:"image/flif"}:(73===t[0]&&73===t[1]&&42===t[2]&&0===t[3]||77===t[0]&&77===t[1]&&0===t[2]&&42===t[3])&&67===t[8]&&82===t[9]?{ext:"cr2",mime:"image/x-canon-cr2"}:73===t[0]&&73===t[1]&&42===t[2]&&0===t[3]||77===t[0]&&77===t[1]&&0===t[2]&&42===t[3]?{ext:"tif",mime:"image/tiff"}:66===t[0]&&77===t[1]?{ext:"bmp",mime:"image/bmp"}:73===t[0]&&73===t[1]&&188===t[2]?{ext:"jxr",mime:"image/vnd.ms-photo"}:56===t[0]&&66===t[1]&&80===t[2]&&83===t[3]?{ext:"psd",mime:"image/vnd.adobe.photoshop"}:80===t[0]&&75===t[1]&&3===t[2]&&4===t[3]&&109===t[30]&&105===t[31]&&109===t[32]&&101===t[33]&&116===t[34]&&121===t[35]&&112===t[36]&&101===t[37]&&97===t[38]&&112===t[39]&&112===t[40]&&108===t[41]&&105===t[42]&&99===t[43]&&97===t[44]&&116===t[45]&&105===t[46]&&111===t[47]&&110===t[48]&&47===t[49]&&101===t[50]&&112===t[51]&&117===t[52]&&98===t[53]&&43===t[54]&&122===t[55]&&105===t[56]&&112===t[57]?{ext:"epub",mime:"application/epub+zip"}:80===t[0]&&75===t[1]&&3===t[2]&&4===t[3]&&77===t[30]&&69===t[31]&&84===t[32]&&65===t[33]&&45===t[34]&&73===t[35]&&78===t[36]&&70===t[37]&&47===t[38]&&109===t[39]&&111===t[40]&&122===t[41]&&105===t[42]&&108===t[43]&&108===t[44]&&97===t[45]&&46===t[46]&&114===t[47]&&115===t[48]&&97===t[49]?{ext:"xpi",mime:"application/x-xpinstall"}:80!==t[0]||75!==t[1]||3!==t[2]&&5!==t[2]&&7!==t[2]||4!==t[3]&&6!==t[3]&&8!==t[3]?117===t[257]&&115===t[258]&&116===t[259]&&97===t[260]&&114===t[261]?{ext:"tar",mime:"application/x-tar"}:82!==t[0]||97!==t[1]||114!==t[2]||33!==t[3]||26!==t[4]||7!==t[5]||0!==t[6]&&1!==t[6]?31===t[0]&&139===t[1]&&8===t[2]?{ext:"gz",mime:"application/gzip"}:66===t[0]&&90===t[1]&&104===t[2]?{ext:"bz2",mime:"application/x-bzip2"}:55===t[0]&&122===t[1]&&188===t[2]&&175===t[3]&&39===t[4]&&28===t[5]?{ext:"7z",mime:"application/x-7z-compressed"}:120===t[0]&&1===t[1]?{ext:"dmg",mime:"application/x-apple-diskimage"}:0===t[0]&&0===t[1]&&0===t[2]&&(24===t[3]||32===t[3])&&102===t[4]&&116===t[5]&&121===t[6]&&112===t[7]||51===t[0]&&103===t[1]&&112===t[2]&&53===t[3]||0===t[0]&&0===t[1]&&0===t[2]&&28===t[3]&&102===t[4]&&116===t[5]&&121===t[6]&&112===t[7]&&109===t[8]&&112===t[9]&&52===t[10]&&50===t[11]&&109===t[16]&&112===t[17]&&52===t[18]&&49===t[19]&&109===t[20]&&112===t[21]&&52===t[22]&&50===t[23]&&105===t[24]&&115===t[25]&&111===t[26]&&109===t[27]||0===t[0]&&0===t[1]&&0===t[2]&&28===t[3]&&102===t[4]&&116===t[5]&&121===t[6]&&112===t[7]&&105===t[8]&&115===t[9]&&111===t[10]&&109===t[11]||0===t[0]&&0===t[1]&&0===t[2]&&28===t[3]&&102===t[4]&&116===t[5]&&121===t[6]&&112===t[7]&&109===t[8]&&112===t[9]&&52===t[10]&&50===t[11]&&0===t[12]&&0===t[13]&&0===t[14]&&0===t[15]?{ext:"mp4",mime:"video/mp4"}:0===t[0]&&0===t[1]&&0===t[2]&&28===t[3]&&102===t[4]&&116===t[5]&&121===t[6]&&112===t[7]&&77===t[8]&&52===t[9]&&86===t[10]?{ext:"m4v",mime:"video/x-m4v"}:77===t[0]&&84===t[1]&&104===t[2]&&100===t[3]?{ext:"mid",mime:"audio/midi"}:109===t[31]&&97===t[32]&&116===t[33]&&114===t[34]&&111===t[35]&&115===t[36]&&107===t[37]&&97===t[38]?{ext:"mkv",mime:"video/x-matroska"}:26===t[0]&&69===t[1]&&223===t[2]&&163===t[3]?{ext:"webm",mime:"video/webm"}:0===t[0]&&0===t[1]&&0===t[2]&&20===t[3]&&102===t[4]&&116===t[5]&&121===t[6]&&112===t[7]?{ext:"mov",mime:"video/quicktime"}:82===t[0]&&73===t[1]&&70===t[2]&&70===t[3]&&65===t[8]&&86===t[9]&&73===t[10]?{ext:"avi",mime:"video/x-msvideo"}:48===t[0]&&38===t[1]&&178===t[2]&&117===t[3]&&142===t[4]&&102===t[5]&&207===t[6]&&17===t[7]&&166===t[8]&&217===t[9]?{ext:"wmv",mime:"video/x-ms-wmv"}:0===t[0]&&0===t[1]&&1===t[2]&&"b"===t[3].toString(16)[0]?{ext:"mpg",mime:"video/mpeg"}:73===t[0]&&68===t[1]&&51===t[2]||255===t[0]&&251===t[1]?{ext:"mp3",mime:"audio/mpeg"}:102===t[4]&&116===t[5]&&121===t[6]&&112===t[7]&&77===t[8]&&52===t[9]&&65===t[10]||77===t[0]&&52===t[1]&&65===t[2]&&32===t[3]?{ext:"m4a",mime:"audio/m4a"}:79===t[28]&&112===t[29]&&117===t[30]&&115===t[31]&&72===t[32]&&101===t[33]&&97===t[34]&&100===t[35]?{ext:"opus",mime:"audio/opus"}:79===t[0]&&103===t[1]&&103===t[2]&&83===t[3]?{ext:"ogg",mime:"audio/ogg"}:102===t[0]&&76===t[1]&&97===t[2]&&67===t[3]?{ext:"flac",mime:"audio/x-flac"}:82===t[0]&&73===t[1]&&70===t[2]&&70===t[3]&&87===t[8]&&65===t[9]&&86===t[10]&&69===t[11]?{ext:"wav",mime:"audio/x-wav"}:35===t[0]&&33===t[1]&&65===t[2]&&77===t[3]&&82===t[4]&&10===t[5]?{ext:"amr",mime:"audio/amr"}:37===t[0]&&80===t[1]&&68===t[2]&&70===t[3]?{ext:"pdf",mime:"application/pdf"}:77===t[0]&&90===t[1]?{ext:"exe",mime:"application/x-msdownload"}:67!==t[0]&&70!==t[0]||87!==t[1]||83!==t[2]?123===t[0]&&92===t[1]&&114===t[2]&&116===t[3]&&102===t[4]?{ext:"rtf",mime:"application/rtf"}:119===t[0]&&79===t[1]&&70===t[2]&&70===t[3]&&(0===t[4]&&1===t[5]&&0===t[6]&&0===t[7]||79===t[4]&&84===t[5]&&84===t[6]&&79===t[7])?{ext:"woff",mime:"application/font-woff"}:119===t[0]&&79===t[1]&&70===t[2]&&50===t[3]&&(0===t[4]&&1===t[5]&&0===t[6]&&0===t[7]||79===t[4]&&84===t[5]&&84===t[6]&&79===t[7])?{ext:"woff2",mime:"application/font-woff"}:76===t[34]&&80===t[35]&&(0===t[8]&&0===t[9]&&1===t[10]||1===t[8]&&0===t[9]&&2===t[10]||2===t[8]&&0===t[9]&&2===t[10])?{ext:"eot",mime:"application/octet-stream"}:0===t[0]&&1===t[1]&&0===t[2]&&0===t[3]&&0===t[4]?{ext:"ttf",mime:"application/font-sfnt"}:79===t[0]&&84===t[1]&&84===t[2]&&79===t[3]&&0===t[4]?{ext:"otf",mime:"application/font-sfnt"}:0===t[0]&&0===t[1]&&1===t[2]&&0===t[3]?{ext:"ico",mime:"image/x-icon"}:70===t[0]&&76===t[1]&&86===t[2]&&1===t[3]?{ext:"flv",mime:"video/x-flv"}:37===t[0]&&33===t[1]?{ext:"ps",mime:"application/postscript"}:253===t[0]&&55===t[1]&&122===t[2]&&88===t[3]&&90===t[4]&&0===t[5]?{ext:"xz",mime:"application/x-xz"}:83===t[0]&&81===t[1]&&76===t[2]&&105===t[3]?{ext:"sqlite",mime:"application/x-sqlite3"}:78===t[0]&&69===t[1]&&83===t[2]&&26===t[3]?{ext:"nes",mime:"application/x-nintendo-nes-rom"}:67===t[0]&&114===t[1]&&50===t[2]&&52===t[3]?{ext:"crx",mime:"application/x-google-chrome-extension"}:77===t[0]&&83===t[1]&&67===t[2]&&70===t[3]||73===t[0]&&83===t[1]&&99===t[2]&&40===t[3]?{ext:"cab",mime:"application/vnd.ms-cab-compressed"}:33===t[0]&&60===t[1]&&97===t[2]&&114===t[3]&&99===t[4]&&104===t[5]&&62===t[6]&&10===t[7]&&100===t[8]&&101===t[9]&&98===t[10]&&105===t[11]&&97===t[12]&&110===t[13]&&45===t[14]&&98===t[15]&&105===t[16]&&110===t[17]&&97===t[18]&&114===t[19]&&121===t[20]?{ext:"deb",mime:"application/x-deb"}:33===t[0]&&60===t[1]&&97===t[2]&&114===t[3]&&99===t[4]&&104===t[5]&&62===t[6]?{ext:"ar",mime:"application/x-unix-archive"}:237===t[0]&&171===t[1]&&238===t[2]&&219===t[3]?{ext:"rpm",mime:"application/x-rpm"}:31===t[0]&&160===t[1]||31===t[0]&&157===t[1]?{ext:"Z",mime:"application/x-compress"}:76===t[0]&&90===t[1]&&73===t[2]&&80===t[3]?{ext:"lz",mime:"application/x-lzip"}:208===t[0]&&207===t[1]&&17===t[2]&&224===t[3]&&161===t[4]&&177===t[5]&&26===t[6]&&225===t[7]?{ext:"msi",mime:"application/x-msi"}:null:{ext:"swf",mime:"application/x-shockwave-flash"}:{ext:"rar",mime:"application/x-rar-compressed"}:{ext:"zip",mime:"application/zip"}:null}},function(t,e,n){"use strict";var r=n(249),i=n(107),o=n(251);function a(t,e){if(!t)return r.reject(new Error("Expected a stream"));var n,a,s=(e=i({maxBuffer:1/0},e)).maxBuffer,c=new r(function(r,i){function c(t){t&&(t.bufferedData=n.getBufferedValue()),i(t)}n=o(e),t.once("error",c),t.pipe(n),n.on("data",function(){n.getBufferedLength()>s&&i(new Error("maxBuffer exceeded"))}),n.once("error",c),n.on("end",r),a=function(){t.unpipe&&t.unpipe(n)}});return c.then(a,a),c.then(function(){return n.getBufferedValue()})}t.exports=a,t.exports.buffer=function(t,e){return a(t,i({},e,{encoding:"buffer"}))},t.exports.array=function(t,e){return a(t,i({},e,{array:!0}))}},function(t,e,n){"use strict";t.exports="function"==typeof Promise?Promise:n(250)},function(t,e,n){"use strict";var r,i="pending",o="settled",a="fulfilled",s="rejected",c=function(){},l="undefined"!=typeof global&&void 0!==global.process&&"function"==typeof global.process.emit,u="undefined"==typeof setImmediate?setTimeout:setImmediate,p=[];function f(){for(var t=0;tNumber.MAX_SAFE_INTEGER)throw new Error("zip file too large. only file sizes up to 2^52 are supported due to JavaScript's Number type being an IEEE 754 double.");t.ref();var o=Math.min(65557,e),a=E(o),s=e-a.length;v(t,a,0,o,s,function(c){if(c)return r(c);for(var l=o-22;l>=0;l-=1)if(101010256===a.readUInt32LE(l)){var u=a.slice(l),p=u.readUInt16LE(4);if(0!==p)return r(new Error("multi-disk zip files are not supported: found disk number: "+p));var f=u.readUInt16LE(10),h=u.readUInt32LE(16),g=u.readUInt16LE(20),m=u.length-22;if(g!==m)return r(new Error("invalid comment length. expected: "+m+". found: "+g));var _=i?I(u,22,u.length,!1):u.slice(22);if(65535!==f&&4294967295!==h)return r(null,new d(t,h,e,f,_,n.autoClose,n.lazyEntries,i,n.validateEntrySizes,n.strictFileNames));var b=E(20),y=s+l-b.length;return void v(t,b,0,b.length,y,function(o){if(o)return r(o);if(117853008!==b.readUInt32LE(0))return r(new Error("invalid zip64 end of central directory locator signature"));var a=T(b,8),s=E(56);v(t,s,0,s.length,a,function(o){return o?r(o):101075792!==s.readUInt32LE(0)?r(new Error("invalid zip64 end of central directory record signature")):(f=T(s,32),h=T(s,48),r(null,new d(t,h,e,f,_,n.autoClose,n.lazyEntries,i,n.validateEntrySizes,n.strictFileNames)))})})}r(new Error("end of central directory record signature not found"))})}function d(t,e,n,r,i,o,a,s,l,u){var p=this;c.call(p),p.reader=t,p.reader.on("error",function(t){m(p,t)}),p.reader.once("close",function(){p.emit("close")}),p.readEntryCursor=e,p.fileSize=n,p.entryCount=r,p.comment=i,p.entriesRead=0,p.autoClose=!!o,p.lazyEntries=!!a,p.decodeStrings=!!s,p.validateEntrySizes=!!l,p.strictFileNames=!!u,p.isOpen=!0,p.emittedError=!1,p.lazyEntries||p._readEntry()}function g(t,e){t.autoClose&&t.close(),m(t,e)}function m(t,e){t.emittedError||(t.emittedError=!0,t.emit("error",e))}function _(){}function b(t,e){return new Date(1980+(t>>9&127),(t>>5&15)-1,31&t,e>>11&31,e>>5&63,2*(31&e),0)}function y(t){return-1!==t.indexOf("\\")?"invalid characters in fileName: "+t:/^[a-zA-Z]:/.test(t)||/^\//.test(t)?"absolute path: "+t:-1!==t.split("/").indexOf("..")?"invalid relative path: "+t:null}function v(t,e,n,r,i,o){if(0===r)return setImmediate(function(){o(null,E(0))});t.read(e,n,r,i,function(t,e){return t?o(t):es.length)return g(t,new Error("extra field length exceeds extra field buffer size"));var h=E(u);s.copy(h,0,p,f),r.extraFields.push({id:l,data:h}),c=f}if(r.fileComment=t.decodeStrings?I(e,o,o+r.fileCommentLength,i):e.slice(o,o+r.fileCommentLength),r.comment=r.fileComment,t.readEntryCursor+=e.length,t.entriesRead+=1,4294967295===r.uncompressedSize||4294967295===r.compressedSize||4294967295===r.relativeOffsetOfLocalHeader){var d=null;for(c=0;cd.length)return g(t,new Error("zip64 extended information extra field does not include uncompressed size"));r.uncompressedSize=T(d,m),m+=8}if(4294967295===r.compressedSize){if(m+8>d.length)return g(t,new Error("zip64 extended information extra field does not include compressed size"));r.compressedSize=T(d,m),m+=8}if(4294967295===r.relativeOffsetOfLocalHeader){if(m+8>d.length)return g(t,new Error("zip64 extended information extra field does not include relative header offset"));r.relativeOffsetOfLocalHeader=T(d,m),m+=8}}if(t.decodeStrings)for(c=0;ct.compressedSize)throw new Error("options.start > entry.compressedSize")}if(null!=e.end){if((a=e.end)<0)throw new Error("options.end < 0");if(a>t.compressedSize)throw new Error("options.end > entry.compressedSize");if(ar.fileSize)return n(new Error("file data overflows file bounds: "+d+" + "+t.compressedSize+" > "+r.fileSize));var m=r.reader.createReadStream({start:d+o,end:d+a}),_=m;if(u){var b=!1,y=i.createInflateRaw();m.on("error",function(t){setImmediate(function(){b||y.emit("error",t)})}),m.pipe(y),r.validateEntrySizes?(_=new x(t.uncompressedSize),y.on("error",function(t){setImmediate(function(){b||_.emit("error",t)})}),y.pipe(_)):_=y,_.destroy=function(){b=!0,y!==_&&y.unpipe(_),m.unpipe(y),m.destroy()}}n(null,_)}finally{r.reader.unref()}})},_.prototype.getLastModDate=function(){return b(this.lastModFileDate,this.lastModFileTime)},_.prototype.isEncrypted=function(){return 0!=(1&this.generalPurposeBitFlag)},_.prototype.isCompressed=function(){return 8===this.compressionMethod},s.inherits(x,l),x.prototype._transform=function(t,e,n){if(this.actualByteCount+=t.length,this.actualByteCount>this.expectedByteCount){var r="too many bytes in the stream. expected "+this.expectedByteCount+". got at least "+this.actualByteCount;return n(new Error(r))}n(null,t)},x.prototype._flush=function(t){if(this.actualByteCount0)){if(t.refCount<0)throw new Error("invalid unref");t.close(function(e){if(e)return t.emit("error",e);t.emit("close")})}},w.prototype.createReadStream=function(t){var e=t.start,n=t.end;if(e===n){var r=new u;return setImmediate(function(){r.end()}),r}var i=this._readStreamForRange(e,n),o=!1,a=new k(this);i.on("error",function(t){setImmediate(function(){o||a.emit("error",t)})}),a.destroy=function(){i.unpipe(a),a.unref(),i.destroy()};var s=new x(n-e);return a.on("error",function(t){setImmediate(function(){o||s.emit("error",t)})}),s.destroy=function(){o=!0,a.unpipe(s),a.destroy()},i.pipe(a).pipe(s)},w.prototype._readStreamForRange=function(t,e){throw new Error("not implemented")},w.prototype.read=function(t,e,n,r,i){var o=this.createReadStream({start:r,end:r+n}),a=new p,s=0;a._write=function(n,r,i){n.copy(t,e+s,0,n.length),s+=n.length,i()},a.on("finish",i),o.on("error",function(t){i(t)}),o.pipe(a)},w.prototype.close=function(t){setImmediate(t)},s.inherits(k,u),k.prototype._flush=function(t){this.unref(),t()},k.prototype.unref=function(t){this.unreffedYet||(this.unreffedYet=!0,this.context.unref())};var E,S="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ";function I(t,e,n,r){if(r)return t.toString("utf8",e,n);for(var i="",o=e;o0)){if(t.refCount<0)throw new Error("invalid unref");t.autoClose&&r.close(t.fd,function(e){e?t.emit("error",e):t.emit("close")})}},i.inherits(f,a),f.prototype._read=function(t){var e=this;if(!e.destroyed){var n=Math.min(e._readableState.highWaterMark,t);if(null!=e.endOffset&&(n=Math.min(n,e.endOffset-e.pos)),n<=0)return e.destroyed=!0,e.push(null),void e.context.unref();e.context.pend.go(function(t){if(e.destroyed)return t();var i=new Buffer(n);r.read(e.context.fd,i,0,n,e.pos,function(n,r){n?e.destroy(n):0===r?(e.destroyed=!0,e.push(null),e.context.unref()):(e.pos+=r,e.push(i.slice(0,r))),t()})})}},f.prototype.destroy=function(t){this.destroyed||(t=t||new Error("stream destroyed"),this.destroyed=!0,this.emit("error",t),this.context.unref())},i.inherits(h,s),h.prototype._write=function(t,e,n){var i=this;if(!i.destroyed){if(i.pos+t.length>i.endOffset){var o=new Error("maximum file length exceeded");return o.code="ETOOBIG",i.destroy(),void n(o)}i.context.pend.go(function(e){if(i.destroyed)return e();r.write(i.context.fd,t,0,t.length,i.pos,function(t,r){t?(i.destroy(),e(),n(t)):(i.bytesWritten+=r,i.pos+=r,i.emit("progress"),e(),n())})})}},h.prototype.destroy=function(){this.destroyed||(this.destroyed=!0,this.context.unref())},i.inherits(d,u),d.prototype.read=function(t,e,n,r,i){var o=r+n,a=o-this.buffer.length,s=a>0?a:n;this.buffer.copy(t,e,r,o),setImmediate(function(){i(null,s)})},d.prototype.write=function(t,e,n,r,i){t.copy(this.buffer,r,e,e+n),setImmediate(function(){i(null,n,t)})},d.prototype.createReadStream=function(t){var e=new c(t=t||{});e.destroyed=!1,e.start=t.start||0,e.endOffset=t.end,e.pos=e.endOffset||this.buffer.length;for(var n=this.buffer.slice(e.start,e.pos),r=0;;){var i=r+this.maxChunkSize;if(i>=n.length){rn.endOffset){var a=new Error("maximum file length exceeded");return a.code="ETOOBIG",n.destroyed=!0,void i(a)}t.copy(e.buffer,n.pos,0,t.length),n.bytesWritten+=t.length,n.pos=o,n.emit("progress"),i()}},n.destroy=function(){n.destroyed=!0},n},d.prototype.ref=function(){this.refCount+=1},d.prototype.unref=function(){if(this.refCount-=1,this.refCount<0)throw new Error("invalid unref")}},function(t,e){function n(){this.pending=0,this.max=1/0,this.listeners=[],this.waiting=[],this.error=null}function r(t){t.pending+=1;var e=!1;return function(r){if(e)throw new Error("callback called twice");if(e=!0,t.error=t.error||r,t.pending-=1,t.waiting.length>0&&t.pending{if("win32"===process.platform){if(/[<>:"|?*]/.test(t.replace(i.parse(t).root,""))){const e=new Error(`Path contains invalid characters: ${t}`);throw e.code="EINVAL",e}}};t.exports=(t,e)=>Promise.resolve().then(()=>{s(t),e=Object.assign({},a,e);const n=o(e.fs.mkdir),r=o(e.fs.stat),c=t=>n(t,e.mode).then(()=>t).catch(e=>{if("ENOENT"===e.code){if(e.message.includes("null bytes")||i.dirname(t)===t)throw e;return c(i.dirname(t)).then(()=>c(t))}return r(t).then(e=>e.isDirectory()?t:Promise.reject()).catch(()=>{throw e})});return c(i.resolve(t))}),t.exports.sync=(t,e)=>{s(t),e=Object.assign({},a,e);const n=t=>{try{e.fs.mkdirSync(t,e.mode)}catch(r){if("ENOENT"===r.code){if(r.message.includes("null bytes")||i.dirname(t)===t)throw r;return n(i.dirname(t)),n(t)}try{if(!e.fs.statSync(t).isDirectory())throw new Error("The path is not a directory")}catch(t){throw r}}return t};return n(i.resolve(t))}},function(t,e,n){"use strict";const r=(t,e)=>(function(){const n=e.promiseModule,r=new Array(arguments.length);for(let t=0;t{e.errorFirst?r.push(function(t,r){if(e.multiArgs){const e=new Array(arguments.length-1);for(let t=1;t{e=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},e);const n=t=>{const n=e=>"string"==typeof e?t===e:e.test(t);return e.include?e.include.some(n):!e.exclude.some(n)};let i;i="function"==typeof t?function(){return e.excludeMain?t.apply(this,arguments):r(t,e).apply(this,arguments)}:Object.create(Object.getPrototypeOf(t));for(const o in t){const a=t[o];i[o]="function"==typeof a&&n(o)?r(a,e):a}return i}},function(t,e,n){"use strict"; /*! * strip-dirs | MIT (c) Shinnosuke Watanabe * https://github.com/shinnn/node-strip-dirs @@ -37,14 +37,14 @@ var r=n(260),i={},o=function(t,e){return o.create(t,e)};o.create=function(t,e){i * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE} * @copyright (c) 2012-2014 Chris Talkington, contributors. */ -var r=n(5),i=n(55),o=n(267),a=n(1),s=n(24),c=n(3).inherits,l=n(278),u=n(11).Transform,p="win32"===process.platform,f=function(t,e){if(!(this instanceof f))return new f(t,e);"string"!=typeof t&&(e=t,t="zip"),e=this.options=s.defaults(e,{highWaterMark:1048576,statConcurrency:4}),u.call(this,e),this._format=!1,this._module=!1,this._pending=0,this._pointer=0,this._entriesCount=0,this._entriesProcessedCount=0,this._fsEntriesTotalBytes=0,this._fsEntriesProcessedBytes=0,this._queue=o.queue(this._onQueueTask.bind(this),1),this._queue.drain=this._onQueueDrain.bind(this),this._statQueue=o.queue(this._onStatQueueTask.bind(this),e.statConcurrency),this._state={aborted:!1,finalize:!1,finalizing:!1,finalized:!1,modulePiped:!1},this._streams=[]};c(f,u),f.prototype._abort=function(){this._state.aborted=!0,this._queue.kill(),this._statQueue.kill(),this._queue.idle()&&this._shutdown()},f.prototype._append=function(t,e){var n={source:null,filepath:t};(e=e||{}).name||(e.name=t),e.sourcePath=t,n.data=e,this._entriesCount++,e.stats&&e.stats instanceof r.Stats?(n=this._updateQueueTaskWithStats(n,e.stats))&&(e.stats.size&&(this._fsEntriesTotalBytes+=e.stats.size),this._queue.push(n)):this._statQueue.push(n)},f.prototype._finalize=function(){this._state.finalizing||this._state.finalized||this._state.aborted||(this._state.finalizing=!0,this._moduleFinalize(),this._state.finalizing=!1,this._state.finalized=!0)},f.prototype._maybeFinalize=function(){return!(this._state.finalizing||this._state.finalized||this._state.aborted)&&(!!(this._state.finalize&&0===this._pending&&this._queue.idle()&&this._statQueue.idle())&&(this._finalize(),!0))},f.prototype._moduleAppend=function(t,e,n){this._state.aborted?n():this._module.append(t,e,function(t){if(this._task=null,this._state.aborted)this._shutdown();else{if(t)return this.emit("error",t),void setImmediate(n);this.emit("entry",e),this._entriesProcessedCount++,e.stats&&e.stats.size&&(this._fsEntriesProcessedBytes+=e.stats.size),this.emit("progress",{entries:{total:this._entriesCount,processed:this._entriesProcessedCount},fs:{totalBytes:this._fsEntriesTotalBytes,processedBytes:this._fsEntriesProcessedBytes}}),setImmediate(n)}}.bind(this))},f.prototype._moduleFinalize=function(){"function"==typeof this._module.finalize?this._module.finalize():"function"==typeof this._module.end?this._module.end():this.emit("error",new l("NOENDMETHOD"))},f.prototype._modulePipe=function(){this._module.on("error",this._onModuleError.bind(this)),this._module.pipe(this),this._state.modulePiped=!0},f.prototype._moduleSupports=function(t){return!(!this._module.supports||!this._module.supports[t])&&this._module.supports[t]},f.prototype._moduleUnpipe=function(){this._module.unpipe(this),this._state.modulePiped=!1},f.prototype._normalizeEntryData=function(t,e){t=s.defaults(t,{type:"file",name:null,date:null,mode:null,prefix:null,sourcePath:null,stats:!1}),e&&!1===t.stats&&(t.stats=e);var n="directory"===t.type;return t.name&&("string"==typeof t.prefix&&""!==t.prefix&&(t.name=t.prefix+"/"+t.name,t.prefix=null),t.name=s.sanitizePath(t.name),"symlink"!==t.type&&"/"===t.name.slice(-1)?(n=!0,t.type="directory"):n&&(t.name+="/")),"number"==typeof t.mode?t.mode&=p?511:4095:t.stats&&null===t.mode?(t.mode=p?511&t.stats.mode:4095&t.stats.mode,p&&n&&(t.mode=493)):null===t.mode&&(t.mode=n?493:420),t.stats&&null===t.date?t.date=t.stats.mtime:t.date=s.dateify(t.date),t},f.prototype._onModuleError=function(t){this.emit("error",t)},f.prototype._onQueueDrain=function(){this._state.finalizing||this._state.finalized||this._state.aborted||this._state.finalize&&0===this._pending&&this._queue.idle()&&this._statQueue.idle()&&this._finalize()},f.prototype._onQueueTask=function(t,e){this._state.finalizing||this._state.finalized||this._state.aborted?e():(this._task=t,this._moduleAppend(t.source,t.data,e))},f.prototype._onStatQueueTask=function(t,e){this._state.finalizing||this._state.finalized||this._state.aborted?e():r.lstat(t.filepath,function(n,r){if(this._state.aborted)setImmediate(e);else{if(n)return this._entriesCount--,this.emit("warning",n),void setImmediate(e);(t=this._updateQueueTaskWithStats(t,r))&&(r.size&&(this._fsEntriesTotalBytes+=r.size),this._queue.push(t)),setImmediate(e)}}.bind(this))},f.prototype._shutdown=function(){this._moduleUnpipe(),this.end()},f.prototype._transform=function(t,e,n){t&&(this._pointer+=t.length),n(null,t)},f.prototype._updateQueueTaskWithStats=function(t,e){if(e.isFile())t.data.type="file",t.data.sourceType="stream",t.source=s.lazyReadStream(t.filepath);else if(e.isDirectory()&&this._moduleSupports("directory"))t.data.name=s.trailingSlashIt(t.data.name),t.data.type="directory",t.data.sourcePath=s.trailingSlashIt(t.filepath),t.data.sourceType="buffer",t.source=Buffer.concat([]);else{if(!e.isSymbolicLink()||!this._moduleSupports("symlink"))return e.isDirectory()?this.emit("warning",new l("DIRECTORYNOTSUPPORTED",t.data)):e.isSymbolicLink()?this.emit("warning",new l("SYMLINKNOTSUPPORTED",t.data)):this.emit("warning",new l("ENTRYNOTSUPPORTED",t.data)),null;var n=r.readlinkSync(t.filepath),i=a.dirname(t.filepath);t.data.type="symlink",t.data.linkname=a.relative(i,a.resolve(i,n)),t.data.sourceType="buffer",t.source=Buffer.concat([])}return t.data=this._normalizeEntryData(t.data,e),t},f.prototype.abort=function(){return this._state.aborted||this._state.finalized?this:(this._abort(),this)},f.prototype.append=function(t,e){if(this._state.finalize||this._state.aborted)return this.emit("error",new l("QUEUECLOSED")),this;if("string"!=typeof(e=this._normalizeEntryData(e)).name||0===e.name.length)return this.emit("error",new l("ENTRYNAMEREQUIRED")),this;if("directory"===e.type&&!this._moduleSupports("directory"))return this.emit("error",new l("DIRECTORYNOTSUPPORTED",{name:e.name})),this;if(t=s.normalizeInputSource(t),Buffer.isBuffer(t))e.sourceType="buffer";else{if(!s.isStream(t))return this.emit("error",new l("INPUTSTEAMBUFFERREQUIRED",{name:e.name})),this;e.sourceType="stream"}return this._entriesCount++,this._queue.push({data:e,source:t}),this},f.prototype.directory=function(t,e,n){if(this._state.finalize||this._state.aborted)return this.emit("error",new l("QUEUECLOSED")),this;if("string"!=typeof t||0===t.length)return this.emit("error",new l("DIRECTORYDIRPATHREQUIRED")),this;this._pending++,!1===e?e="":"string"!=typeof e&&(e=t);var r=!1;"function"==typeof n?(r=n,n={}):"object"!=typeof n&&(n={});var o=i("**",{stat:!1,dot:!0,cwd:t});return o.on("error",function(t){this.emit("error",t)}.bind(this)),o.on("match",function(i){var a=!1,s=Object.assign({},n);s.name=i,s.prefix=e,i=o._makeAbs(i);try{if(r)if(!1===(s=r(s)))a=!0;else if("object"!=typeof s)throw new l("DIRECTORYFUNCTIONINVALIDDATA",{dirpath:t})}catch(t){return void this.emit("error",t)}a||this._append(i,s)}.bind(this)),o.on("end",function(){this._pending--,this._maybeFinalize()}.bind(this)),this},f.prototype.file=function(t,e){return this._state.finalize||this._state.aborted?(this.emit("error",new l("QUEUECLOSED")),this):"string"!=typeof t||0===t.length?(this.emit("error",new l("FILEFILEPATHREQUIRED")),this):(this._append(t,e),this)},f.prototype.glob=function(t,e,n){this._pending++,e=s.defaults(e,{stat:!1});var r=i(t,e);return r.on("error",function(t){this.emit("error",t)}.bind(this)),r.on("match",function(t){var i=Object.assign({},n);e.cwd&&(i.name=t,t=r._makeAbs(t)),this._append(t,i)}.bind(this)),r.on("end",function(){this._pending--,this._maybeFinalize()}.bind(this)),this},f.prototype.finalize=function(){if(this._state.aborted)return this.emit("error",new l("ABORTED")),this;if(this._state.finalize)return this.emit("error",new l("FINALIZING")),this;this._state.finalize=!0,0===this._pending&&this._queue.idle()&&this._statQueue.idle()&&this._finalize();var t=this;return new Promise(function(e,n){var r;t._module.on("end",function(){r||e()}),t._module.on("error",function(t){r=!0,n(t)})})},f.prototype.setFormat=function(t){return this._format?(this.emit("error",new l("FORMATSET")),this):(this._format=t,this)},f.prototype.setModule=function(t){return this._state.aborted?(this.emit("error",new l("ABORTED")),this):this._state.module?(this.emit("error",new l("MODULESET")),this):(this._module=t,this._modulePipe(),this)},f.prototype.symlink=function(t,e){if(this._state.finalize||this._state.aborted)return this.emit("error",new l("QUEUECLOSED")),this;if("string"!=typeof t||0===t.length)return this.emit("error",new l("SYMLINKFILEPATHREQUIRED")),this;if("string"!=typeof e||0===e.length)return this.emit("error",new l("SYMLINKTARGETREQUIRED",{filepath:t})),this;if(!this._moduleSupports("symlink"))return this.emit("error",new l("SYMLINKNOTSUPPORTED",{filepath:t})),this;var n={type:"symlink"};return n.name=t.replace(/\\/g,"/"),n.linkname=e.replace(/\\/g,"/"),n.sourceType="buffer",this._entriesCount++,this._queue.push({data:n,source:Buffer.concat([])}),this},f.prototype.pointer=function(){return this._pointer},f.prototype.use=function(t){return this._streams.push(t),this},t.exports=f},function(t,e,n){var r=n(1),i="win32"===process.platform,o=n(5),a=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function s(t){return"function"==typeof t?t:function(){var t;if(a){var e=new Error;t=function(t){t&&(e.message=t.message,n(t=e))}}else t=n;return t;function n(t){if(t){if(process.throwDeprecation)throw t;if(!process.noDeprecation){var e="fs: missing callback "+(t.stack||t.message);process.traceDeprecation?console.trace(e):console.error(e)}}}}()}r.normalize;if(i)var c=/(.*?)(?:[\/\\]+|$)/g;else c=/(.*?)(?:[\/]+|$)/g;if(i)var l=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else l=/^[\/]*/;e.realpathSync=function(t,e){if(t=r.resolve(t),e&&Object.prototype.hasOwnProperty.call(e,t))return e[t];var n,a,s,u,p=t,f={},h={};function d(){var e=l.exec(t);n=e[0].length,a=e[0],s=e[0],u="",i&&!h[s]&&(o.lstatSync(s),h[s]=!0)}for(d();n=t.length)return e&&(e[h]=t),n(null,t);c.lastIndex=a;var r=c.exec(t);return f=u,u+=r[0],p=f+r[1],a=c.lastIndex,g[p]||e&&e[p]===p?process.nextTick(_):e&&Object.prototype.hasOwnProperty.call(e,p)?v(e[p]):o.lstat(p,b)}function b(t,r){if(t)return n(t);if(!r.isSymbolicLink())return g[p]=!0,e&&(e[p]=p),process.nextTick(_);if(!i){var a=r.dev.toString(32)+":"+r.ino.toString(32);if(d.hasOwnProperty(a))return y(null,d[a],p)}o.stat(p,function(t){if(t)return n(t);o.readlink(p,function(t,e){i||(d[a]=e),y(t,e)})})}function y(t,i,o){if(t)return n(t);var a=r.resolve(f,i);e&&(e[o]=a),v(a)}function v(e){t=r.resolve(e,t.slice(a)),m()}m()}},function(t,e,n){var r=n(263),i=n(264);t.exports=function(t){if(!t)return[];"{}"===t.substr(0,2)&&(t="\\{\\}"+t.substr(2));return function t(e,n){var o=[];var a=i("{","}",e);if(!a||/\$$/.test(a.pre))return[e];var c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(a.body);var l=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(a.body);var p=c||l;var m=a.body.indexOf(",")>=0;if(!p&&!m)return a.post.match(/,.*\}/)?(e=a.pre+"{"+a.body+s+a.post,t(e)):[e];var _;if(p)_=a.body.split(/\.\./);else if(1===(_=function t(e){if(!e)return[""];var n=[];var r=i("{","}",e);if(!r)return e.split(",");var o=r.pre;var a=r.body;var s=r.post;var c=o.split(",");c[c.length-1]+="{"+a+"}";var l=t(s);s.length&&(c[c.length-1]+=l.shift(),c.push.apply(c,l));n.push.apply(n,c);return n}(a.body)).length&&1===(_=t(_[0],!1).map(f)).length){var b=a.post.length?t(a.post,!1):[""];return b.map(function(t){return a.pre+_[0]+t})}var y=a.pre;var b=a.post.length?t(a.post,!1):[""];var v;if(p){var x=u(_[0]),w=u(_[1]),k=Math.max(_[0].length,_[1].length),E=3==_.length?Math.abs(u(_[2])):1,S=d,I=w0){var P=new Array(C+1).join("0");A=O<0?"-"+P+A.slice(1):P+A}}v.push(A)}}else v=r(_,function(e){return t(e,!1)});for(var D=0;D=e}},function(t,e){t.exports=function(t,e){for(var r=[],i=0;i=0&&l>0){for(r=[],o=n.length;u>=0&&!s;)u==c?(r.push(u),c=n.indexOf(t,u+1)):1==r.length?s=[r.pop(),l]:((i=r.pop())=0?c:l;r.length&&(s=[o,a])}return s}t.exports=r,r.range=o},function(t,e,n){t.exports=d,d.GlobSync=g;var r=n(5),i=n(109),o=n(56),a=(o.Minimatch,n(55).Glob,n(3),n(1)),s=n(20),c=n(57),l=n(110),u=(l.alphasort,l.alphasorti,l.setopts),p=l.ownProp,f=l.childrenIgnored,h=l.isIgnored;function d(t,e){if("function"==typeof e||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");return new g(t,e).found}function g(t,e){if(!t)throw new Error("must provide pattern");if("function"==typeof e||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof g))return new g(t,e);if(u(this,t,e),this.noprocess)return this;var n=this.minimatch.set.length;this.matches=new Array(n);for(var r=0;rthis.maxLength)return!1;if(!this.stat&&p(this.cache,e)){var i=this.cache[e];if(Array.isArray(i)&&(i="DIR"),!n||"DIR"===i)return i;if(n&&"FILE"===i)return!1}var o=this.statCache[e];if(!o){var a;try{a=r.lstatSync(e)}catch(t){if(t&&("ENOENT"===t.code||"ENOTDIR"===t.code))return this.statCache[e]=!1,!1}if(a&&a.isSymbolicLink())try{o=r.statSync(e)}catch(t){o=a}else o=a}this.statCache[e]=o;i=!0;return o&&(i=o.isDirectory()?"DIR":"FILE"),this.cache[e]=this.cache[e]||i,(!n||"FILE"!==i)&&i},g.prototype._mark=function(t){return l.mark(this,t)},g.prototype._makeAbs=function(t){return l.makeAbs(this,t)}},function(t,e,n){var r=n(106),i=Object.create(null),o=n(48);function a(t){for(var e=t.length,n=[],r=0;rr?(n.splice(0,r),process.nextTick(function(){e.apply(null,o)})):delete i[t]}})}(t))})},function(t,e,n){(function(t){(function(e){"use strict";function n(t,e){e|=0;for(var n=Math.max(t.length-e,0),r=Array(n),i=0;i-1&&t%1==0&&t<=N}function z(t){return null!=t&&M(t.length)&&!function(t){if(!o(t))return!1;var e=C(t);return e==D||e==B||e==P||e==L}(t)}var R={};function j(){}function F(t){return function(){if(null!==t){var e=t;t=null,e.apply(this,arguments)}}}var U="function"==typeof Symbol&&Symbol.iterator,G=function(t){return U&&t[U]&&t[U]()};function H(t){return null!=t&&"object"==typeof t}var W="[object Arguments]";function q(t){return H(t)&&C(t)==W}var Y=Object.prototype,V=Y.hasOwnProperty,Z=Y.propertyIsEnumerable,$=q(function(){return arguments}())?q:function(t){return H(t)&&V.call(t,"callee")&&!Z.call(t,"callee")},X=Array.isArray,Q="object"==typeof e&&e&&!e.nodeType&&e,J=Q&&"object"==typeof t&&t&&!t.nodeType&&t,K=J&&J.exports===Q?v.Buffer:void 0,tt=(K?K.isBuffer:void 0)||function(){return!1},et=9007199254740991,nt=/^(?:0|[1-9]\d*)$/;function rt(t,e){var n=typeof t;return!!(e=null==e?et:e)&&("number"==n||"symbol"!=n&&nt.test(t))&&t>-1&&t%1==0&&t2&&(i=n(arguments,1)),e){var l={};Rt(o,function(t,e){l[e]=t}),l[t]=i,s=!0,c=Object.create(null),r(e,l)}else o[t]=i,d(t)});a++;var l=m(e[e.length-1]);e.length>1?l(o,i):l(i)}(t,e)})}function h(){if(0===l.length&&0===a)return r(null,o);for(;l.length&&a=0&&n.push(r)}),n}Rt(t,function(e,n){if(!X(e))return f(n,[e]),void u.push(n);var r=e.slice(0,e.length-1),i=r.length;if(0===i)return f(n,e),void u.push(n);p[n]=i,Nt(r,function(o){if(!t[o])throw new Error("async.auto task `"+n+"` has a non-existent dependency `"+o+"` in "+r.join(", "));!function(t,e){var n=c[t];n||(n=c[t]=[]);n.push(e)}(o,function(){0===--i&&f(n,e)})})}),function(){var t,e=0;for(;u.length;)t=u.pop(),e++,Nt(g(t),function(t){0==--p[t]&&u.push(t)});if(e!==i)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}(),h()};function Gt(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n=r?t:function(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r-1;);return n}(i,o),function(t,e){for(var n=t.length;n--&&Ft(e,t[n],0)>-1;);return n}(i,o)+1).join("")}var le=/^(?:async\s+)?(function)?\s*[^\(]*\(\s*([^\)]*)\)/m,ue=/,/,pe=/(=.+)?(\s*)$/,fe=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm;function he(t,e){var n={};Rt(t,function(t,e){var r,i=g(t),o=!i&&1===t.length||i&&0===t.length;if(X(t))r=t.slice(0,-1),t=t[t.length-1],n[e]=r.concat(r.length>0?a:t);else if(o)n[e]=t;else{if(r=function(t){return t=(t=(t=(t=t.toString().replace(fe,"")).match(le)[2].replace(" ",""))?t.split(ue):[]).map(function(t){return ce(t.replace(pe,""))})}(t),0===t.length&&!i&&0===r.length)throw new Error("autoInject task functions require explicit parameters.");i||r.pop(),n[e]=r.concat(a)}function a(e,n){var i=Gt(r,function(t){return e[t]});i.push(n),m(t).apply(null,i)}}),Ut(n,e)}function de(){this.head=this.tail=null,this.length=0}function ge(t,e){t.length=1,t.head=t.tail=e}function me(t,e,n){if(null==e)e=1;else if(0===e)throw new Error("Concurrency must not be zero");var r=m(t),i=0,o=[],a=!1;function s(t,e,n){if(null!=n&&"function"!=typeof n)throw new Error("task callback must be a function");if(p.started=!0,X(t)||(t=[t]),0===t.length&&p.idle())return u(function(){p.drain()});for(var r=0,i=t.length;r0&&o.splice(s,1),a.callback.apply(a,arguments),null!=e&&p.error(e,a.data)}i<=p.concurrency-p.buffer&&p.unsaturated(),p.idle()&&p.drain(),p.process()}}var l=!1,p={_tasks:new de,concurrency:e,payload:n,saturated:j,unsaturated:j,buffer:e/4,empty:j,drain:j,error:j,started:!1,paused:!1,push:function(t,e){s(t,!1,e)},kill:function(){p.drain=j,p._tasks.empty()},unshift:function(t,e){s(t,!0,e)},remove:function(t){p._tasks.remove(t)},process:function(){if(!l){for(l=!0;!p.paused&&i2&&(o=n(arguments,1)),i[e]=o,r(t)})},function(t){r(t,i)})}function dn(t,e){hn(It,t,e)}function gn(t,e,n){hn(xt(e),t,n)}var mn=function(t,e){var n=m(t);return me(function(t,e){n(t[0],e)},e,1)},_n=function(t,e){var n=mn(t,e);return n.push=function(t,e,r){if(null==r&&(r=j),"function"!=typeof r)throw new Error("task callback must be a function");if(n.started=!0,X(t)||(t=[t]),0===t.length)return u(function(){n.drain()});e=e||0;for(var i=n._tasks.head;i&&e>=i.priority;)i=i.next;for(var o=0,a=t.length;or?1:0}At(t,function(t,e){r(t,function(n,r){if(n)return e(n);e(null,{value:t,criteria:r})})},function(t,e){if(t)return n(t);n(null,Gt(e.sort(i),Ze("value")))})}function Ln(t,e,n){var r=m(t);return i(function(i,o){var a,s=!1;i.push(function(){s||(o.apply(null,arguments),clearTimeout(a))}),a=setTimeout(function(){var e=t.name||"anonymous",r=new Error('Callback function "'+e+'" timed out.');r.code="ETIMEDOUT",n&&(r.info=n),s=!0,o(r)},e),r.apply(null,i)})}var Nn=Math.ceil,Mn=Math.max;function zn(t,e,n,r){var i=m(n);Dt(function(t,e,n,r){for(var i=-1,o=Mn(Nn((e-t)/(n||1)),0),a=Array(o);o--;)a[r?o:++i]=t,t+=n;return a}(0,t,1),e,i,r)}var Rn=kt(zn,1/0),jn=kt(zn,1);function Fn(t,e,n,r){arguments.length<=3&&(r=n,n=e,e=X(t)?[]:{}),r=F(r||j);var i=m(n);It(t,function(t,n,r){i(e,t,n,r)},function(t){r(t,e)})}function Un(t,e){var r,i=null;e=e||j,Ge(t,function(t,e){m(t)(function(t,o){r=arguments.length>2?n(arguments,1):o,i=t,e(!t)})},function(){e(i,r)})}function Gn(t){return function(){return(t.unmemoized||t).apply(null,arguments)}}function Hn(t,e,r){r=vt(r||j);var i=m(e);if(!t())return r(null);var o=function(e){if(e)return r(e);if(t())return i(o);var a=n(arguments,1);r.apply(null,[null].concat(a))};i(o)}function Wn(t,e,n){Hn(function(){return!t.apply(this,arguments)},e,n)}var qn=function(t,e){if(e=F(e||j),!X(t))return e(new Error("First argument to waterfall must be an array of functions"));if(!t.length)return e();var r=0;function i(e){var n=m(t[r++]);e.push(vt(o)),n.apply(null,e)}function o(o){if(o||r===t.length)return e.apply(null,arguments);i(n(arguments,1))}i([])},Yn={apply:r,applyEach:Ct,applyEachSeries:Lt,asyncify:p,auto:Ut,autoInject:he,cargo:_e,compose:xe,concat:Ee,concatLimit:ke,concatSeries:Se,constant:Ie,detect:Ce,detectLimit:Pe,detectSeries:De,dir:Le,doDuring:Ne,doUntil:ze,doWhilst:Me,during:Re,each:Fe,eachLimit:Ue,eachOf:It,eachOfLimit:wt,eachOfSeries:be,eachSeries:Ge,ensureAsync:He,every:qe,everyLimit:Ye,everySeries:Ve,filter:Je,filterLimit:Ke,filterSeries:tn,forever:en,groupBy:rn,groupByLimit:nn,groupBySeries:on,log:an,map:At,mapLimit:Dt,mapSeries:Bt,mapValues:cn,mapValuesLimit:sn,mapValuesSeries:ln,memoize:pn,nextTick:fn,parallel:dn,parallelLimit:gn,priorityQueue:_n,queue:mn,race:bn,reduce:ye,reduceRight:yn,reflect:vn,reflectAll:xn,reject:kn,rejectLimit:En,rejectSeries:Sn,retry:Tn,retryable:On,seq:ve,series:An,setImmediate:u,some:Cn,someLimit:Pn,someSeries:Dn,sortBy:Bn,timeout:Ln,times:Rn,timesLimit:zn,timesSeries:jn,transform:Fn,tryEach:Un,unmemoize:Gn,until:Wn,waterfall:qn,whilst:Hn,all:qe,allLimit:Ye,allSeries:Ve,any:Cn,anyLimit:Pn,anySeries:Dn,find:Ce,findLimit:Pe,findSeries:De,forEach:Fe,forEachSeries:Ge,forEachLimit:Ue,forEachOf:It,forEachOfSeries:be,forEachOfLimit:wt,inject:ye,foldl:ye,foldr:yn,select:Je,selectLimit:Ke,selectSeries:tn,wrapSync:p};e.default=Yn,e.apply=r,e.applyEach=Ct,e.applyEachSeries=Lt,e.asyncify=p,e.auto=Ut,e.autoInject=he,e.cargo=_e,e.compose=xe,e.concat=Ee,e.concatLimit=ke,e.concatSeries=Se,e.constant=Ie,e.detect=Ce,e.detectLimit=Pe,e.detectSeries=De,e.dir=Le,e.doDuring=Ne,e.doUntil=ze,e.doWhilst=Me,e.during=Re,e.each=Fe,e.eachLimit=Ue,e.eachOf=It,e.eachOfLimit=wt,e.eachOfSeries=be,e.eachSeries=Ge,e.ensureAsync=He,e.every=qe,e.everyLimit=Ye,e.everySeries=Ve,e.filter=Je,e.filterLimit=Ke,e.filterSeries=tn,e.forever=en,e.groupBy=rn,e.groupByLimit=nn,e.groupBySeries=on,e.log=an,e.map=At,e.mapLimit=Dt,e.mapSeries=Bt,e.mapValues=cn,e.mapValuesLimit=sn,e.mapValuesSeries=ln,e.memoize=pn,e.nextTick=fn,e.parallel=dn,e.parallelLimit=gn,e.priorityQueue=_n,e.queue=mn,e.race=bn,e.reduce=ye,e.reduceRight=yn,e.reflect=vn,e.reflectAll=xn,e.reject=kn,e.rejectLimit=En,e.rejectSeries=Sn,e.retry=Tn,e.retryable=On,e.seq=ve,e.series=An,e.setImmediate=u,e.some=Cn,e.someLimit=Pn,e.someSeries=Dn,e.sortBy=Bn,e.timeout=Ln,e.times=Rn,e.timesLimit=zn,e.timesSeries=jn,e.transform=Fn,e.tryEach=Un,e.unmemoize=Gn,e.until=Wn,e.waterfall=qn,e.whilst=Hn,e.all=qe,e.allLimit=Ye,e.allSeries=Ve,e.any=Cn,e.anyLimit=Pn,e.anySeries=Dn,e.find=Ce,e.findLimit=Pe,e.findSeries=De,e.forEach=Fe,e.forEachSeries=Ge,e.forEachLimit=Ue,e.forEachOf=It,e.forEachOfSeries=be,e.forEachOfLimit=wt,e.inject=ye,e.foldl=ye,e.foldr=yn,e.select=Je,e.selectLimit=Ke,e.selectSeries=tn,e.wrapSync=p,Object.defineProperty(e,"__esModule",{value:!0})})(e)}).call(this,n(132)(t))},function(t,e,n){var r=n(3),i=n(269);function o(t,e,n){t[e]=function(){return delete t[e],n.apply(this,arguments),this[e].apply(this,arguments)}}function a(t,e){if(!(this instanceof a))return new a(t,e);i.call(this,e),o(this,"_read",function(){var n=t.call(this,e),r=this.emit.bind(this,"error");n.on("error",r),n.pipe(this)}),this.emit("readable")}function s(t,e){if(!(this instanceof s))return new s(t,e);i.call(this,e),o(this,"_write",function(){var n=t.call(this,e),r=this.emit.bind(this,"error");n.on("error",r),this.pipe(n)}),this.emit("writable")}t.exports={Readable:a,Writable:s},r.inherits(a,i),r.inherits(s,i)},function(t,e,n){t.exports=n(11).PassThrough},function(t,e){ +var r=n(5),i=n(55),o=n(267),a=n(1),s=n(24),c=n(3).inherits,l=n(278),u=n(11).Transform,p="win32"===process.platform,f=function(t,e){if(!(this instanceof f))return new f(t,e);"string"!=typeof t&&(e=t,t="zip"),e=this.options=s.defaults(e,{highWaterMark:1048576,statConcurrency:4}),u.call(this,e),this._format=!1,this._module=!1,this._pending=0,this._pointer=0,this._entriesCount=0,this._entriesProcessedCount=0,this._fsEntriesTotalBytes=0,this._fsEntriesProcessedBytes=0,this._queue=o.queue(this._onQueueTask.bind(this),1),this._queue.drain=this._onQueueDrain.bind(this),this._statQueue=o.queue(this._onStatQueueTask.bind(this),e.statConcurrency),this._state={aborted:!1,finalize:!1,finalizing:!1,finalized:!1,modulePiped:!1},this._streams=[]};c(f,u),f.prototype._abort=function(){this._state.aborted=!0,this._queue.kill(),this._statQueue.kill(),this._queue.idle()&&this._shutdown()},f.prototype._append=function(t,e){var n={source:null,filepath:t};(e=e||{}).name||(e.name=t),e.sourcePath=t,n.data=e,this._entriesCount++,e.stats&&e.stats instanceof r.Stats?(n=this._updateQueueTaskWithStats(n,e.stats))&&(e.stats.size&&(this._fsEntriesTotalBytes+=e.stats.size),this._queue.push(n)):this._statQueue.push(n)},f.prototype._finalize=function(){this._state.finalizing||this._state.finalized||this._state.aborted||(this._state.finalizing=!0,this._moduleFinalize(),this._state.finalizing=!1,this._state.finalized=!0)},f.prototype._maybeFinalize=function(){return!(this._state.finalizing||this._state.finalized||this._state.aborted)&&(!!(this._state.finalize&&0===this._pending&&this._queue.idle()&&this._statQueue.idle())&&(this._finalize(),!0))},f.prototype._moduleAppend=function(t,e,n){this._state.aborted?n():this._module.append(t,e,function(t){if(this._task=null,this._state.aborted)this._shutdown();else{if(t)return this.emit("error",t),void setImmediate(n);this.emit("entry",e),this._entriesProcessedCount++,e.stats&&e.stats.size&&(this._fsEntriesProcessedBytes+=e.stats.size),this.emit("progress",{entries:{total:this._entriesCount,processed:this._entriesProcessedCount},fs:{totalBytes:this._fsEntriesTotalBytes,processedBytes:this._fsEntriesProcessedBytes}}),setImmediate(n)}}.bind(this))},f.prototype._moduleFinalize=function(){"function"==typeof this._module.finalize?this._module.finalize():"function"==typeof this._module.end?this._module.end():this.emit("error",new l("NOENDMETHOD"))},f.prototype._modulePipe=function(){this._module.on("error",this._onModuleError.bind(this)),this._module.pipe(this),this._state.modulePiped=!0},f.prototype._moduleSupports=function(t){return!(!this._module.supports||!this._module.supports[t])&&this._module.supports[t]},f.prototype._moduleUnpipe=function(){this._module.unpipe(this),this._state.modulePiped=!1},f.prototype._normalizeEntryData=function(t,e){t=s.defaults(t,{type:"file",name:null,date:null,mode:null,prefix:null,sourcePath:null,stats:!1}),e&&!1===t.stats&&(t.stats=e);var n="directory"===t.type;return t.name&&("string"==typeof t.prefix&&""!==t.prefix&&(t.name=t.prefix+"/"+t.name,t.prefix=null),t.name=s.sanitizePath(t.name),"symlink"!==t.type&&"/"===t.name.slice(-1)?(n=!0,t.type="directory"):n&&(t.name+="/")),"number"==typeof t.mode?t.mode&=p?511:4095:t.stats&&null===t.mode?(t.mode=p?511&t.stats.mode:4095&t.stats.mode,p&&n&&(t.mode=493)):null===t.mode&&(t.mode=n?493:420),t.stats&&null===t.date?t.date=t.stats.mtime:t.date=s.dateify(t.date),t},f.prototype._onModuleError=function(t){this.emit("error",t)},f.prototype._onQueueDrain=function(){this._state.finalizing||this._state.finalized||this._state.aborted||this._state.finalize&&0===this._pending&&this._queue.idle()&&this._statQueue.idle()&&this._finalize()},f.prototype._onQueueTask=function(t,e){this._state.finalizing||this._state.finalized||this._state.aborted?e():(this._task=t,this._moduleAppend(t.source,t.data,e))},f.prototype._onStatQueueTask=function(t,e){this._state.finalizing||this._state.finalized||this._state.aborted?e():r.lstat(t.filepath,function(n,r){if(this._state.aborted)setImmediate(e);else{if(n)return this._entriesCount--,this.emit("warning",n),void setImmediate(e);(t=this._updateQueueTaskWithStats(t,r))&&(r.size&&(this._fsEntriesTotalBytes+=r.size),this._queue.push(t)),setImmediate(e)}}.bind(this))},f.prototype._shutdown=function(){this._moduleUnpipe(),this.end()},f.prototype._transform=function(t,e,n){t&&(this._pointer+=t.length),n(null,t)},f.prototype._updateQueueTaskWithStats=function(t,e){if(e.isFile())t.data.type="file",t.data.sourceType="stream",t.source=s.lazyReadStream(t.filepath);else if(e.isDirectory()&&this._moduleSupports("directory"))t.data.name=s.trailingSlashIt(t.data.name),t.data.type="directory",t.data.sourcePath=s.trailingSlashIt(t.filepath),t.data.sourceType="buffer",t.source=Buffer.concat([]);else{if(!e.isSymbolicLink()||!this._moduleSupports("symlink"))return e.isDirectory()?this.emit("warning",new l("DIRECTORYNOTSUPPORTED",t.data)):e.isSymbolicLink()?this.emit("warning",new l("SYMLINKNOTSUPPORTED",t.data)):this.emit("warning",new l("ENTRYNOTSUPPORTED",t.data)),null;var n=r.readlinkSync(t.filepath),i=a.dirname(t.filepath);t.data.type="symlink",t.data.linkname=a.relative(i,a.resolve(i,n)),t.data.sourceType="buffer",t.source=Buffer.concat([])}return t.data=this._normalizeEntryData(t.data,e),t},f.prototype.abort=function(){return this._state.aborted||this._state.finalized?this:(this._abort(),this)},f.prototype.append=function(t,e){if(this._state.finalize||this._state.aborted)return this.emit("error",new l("QUEUECLOSED")),this;if("string"!=typeof(e=this._normalizeEntryData(e)).name||0===e.name.length)return this.emit("error",new l("ENTRYNAMEREQUIRED")),this;if("directory"===e.type&&!this._moduleSupports("directory"))return this.emit("error",new l("DIRECTORYNOTSUPPORTED",{name:e.name})),this;if(t=s.normalizeInputSource(t),Buffer.isBuffer(t))e.sourceType="buffer";else{if(!s.isStream(t))return this.emit("error",new l("INPUTSTEAMBUFFERREQUIRED",{name:e.name})),this;e.sourceType="stream"}return this._entriesCount++,this._queue.push({data:e,source:t}),this},f.prototype.directory=function(t,e,n){if(this._state.finalize||this._state.aborted)return this.emit("error",new l("QUEUECLOSED")),this;if("string"!=typeof t||0===t.length)return this.emit("error",new l("DIRECTORYDIRPATHREQUIRED")),this;this._pending++,!1===e?e="":"string"!=typeof e&&(e=t);var r=!1;"function"==typeof n?(r=n,n={}):"object"!=typeof n&&(n={});var o=i("**",{stat:!1,dot:!0,cwd:t});return o.on("error",function(t){this.emit("error",t)}.bind(this)),o.on("match",function(i){var a=!1,s=Object.assign({},n);s.name=i,s.prefix=e,i=o._makeAbs(i);try{if(r)if(!1===(s=r(s)))a=!0;else if("object"!=typeof s)throw new l("DIRECTORYFUNCTIONINVALIDDATA",{dirpath:t})}catch(t){return void this.emit("error",t)}a||this._append(i,s)}.bind(this)),o.on("end",function(){this._pending--,this._maybeFinalize()}.bind(this)),this},f.prototype.file=function(t,e){return this._state.finalize||this._state.aborted?(this.emit("error",new l("QUEUECLOSED")),this):"string"!=typeof t||0===t.length?(this.emit("error",new l("FILEFILEPATHREQUIRED")),this):(this._append(t,e),this)},f.prototype.glob=function(t,e,n){this._pending++,e=s.defaults(e,{stat:!1});var r=i(t,e);return r.on("error",function(t){this.emit("error",t)}.bind(this)),r.on("match",function(t){var i=Object.assign({},n);e.cwd&&(i.name=t,t=r._makeAbs(t)),this._append(t,i)}.bind(this)),r.on("end",function(){this._pending--,this._maybeFinalize()}.bind(this)),this},f.prototype.finalize=function(){if(this._state.aborted)return this.emit("error",new l("ABORTED")),this;if(this._state.finalize)return this.emit("error",new l("FINALIZING")),this;this._state.finalize=!0,0===this._pending&&this._queue.idle()&&this._statQueue.idle()&&this._finalize();var t=this;return new Promise(function(e,n){var r;t._module.on("end",function(){r||e()}),t._module.on("error",function(t){r=!0,n(t)})})},f.prototype.setFormat=function(t){return this._format?(this.emit("error",new l("FORMATSET")),this):(this._format=t,this)},f.prototype.setModule=function(t){return this._state.aborted?(this.emit("error",new l("ABORTED")),this):this._state.module?(this.emit("error",new l("MODULESET")),this):(this._module=t,this._modulePipe(),this)},f.prototype.symlink=function(t,e){if(this._state.finalize||this._state.aborted)return this.emit("error",new l("QUEUECLOSED")),this;if("string"!=typeof t||0===t.length)return this.emit("error",new l("SYMLINKFILEPATHREQUIRED")),this;if("string"!=typeof e||0===e.length)return this.emit("error",new l("SYMLINKTARGETREQUIRED",{filepath:t})),this;if(!this._moduleSupports("symlink"))return this.emit("error",new l("SYMLINKNOTSUPPORTED",{filepath:t})),this;var n={type:"symlink"};return n.name=t.replace(/\\/g,"/"),n.linkname=e.replace(/\\/g,"/"),n.sourceType="buffer",this._entriesCount++,this._queue.push({data:n,source:Buffer.concat([])}),this},f.prototype.pointer=function(){return this._pointer},f.prototype.use=function(t){return this._streams.push(t),this},t.exports=f},function(t,e,n){var r=n(1),i="win32"===process.platform,o=n(5),a=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function s(t){return"function"==typeof t?t:function(){var t;if(a){var e=new Error;t=function(t){t&&(e.message=t.message,n(t=e))}}else t=n;return t;function n(t){if(t){if(process.throwDeprecation)throw t;if(!process.noDeprecation){var e="fs: missing callback "+(t.stack||t.message);process.traceDeprecation?console.trace(e):console.error(e)}}}}()}r.normalize;if(i)var c=/(.*?)(?:[\/\\]+|$)/g;else c=/(.*?)(?:[\/]+|$)/g;if(i)var l=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else l=/^[\/]*/;e.realpathSync=function(t,e){if(t=r.resolve(t),e&&Object.prototype.hasOwnProperty.call(e,t))return e[t];var n,a,s,u,p=t,f={},h={};function d(){var e=l.exec(t);n=e[0].length,a=e[0],s=e[0],u="",i&&!h[s]&&(o.lstatSync(s),h[s]=!0)}for(d();n=t.length)return e&&(e[h]=t),n(null,t);c.lastIndex=a;var r=c.exec(t);return f=u,u+=r[0],p=f+r[1],a=c.lastIndex,g[p]||e&&e[p]===p?process.nextTick(_):e&&Object.prototype.hasOwnProperty.call(e,p)?v(e[p]):o.lstat(p,b)}function b(t,r){if(t)return n(t);if(!r.isSymbolicLink())return g[p]=!0,e&&(e[p]=p),process.nextTick(_);if(!i){var a=r.dev.toString(32)+":"+r.ino.toString(32);if(d.hasOwnProperty(a))return y(null,d[a],p)}o.stat(p,function(t){if(t)return n(t);o.readlink(p,function(t,e){i||(d[a]=e),y(t,e)})})}function y(t,i,o){if(t)return n(t);var a=r.resolve(f,i);e&&(e[o]=a),v(a)}function v(e){t=r.resolve(e,t.slice(a)),m()}m()}},function(t,e,n){var r=n(263),i=n(264);t.exports=function(t){if(!t)return[];"{}"===t.substr(0,2)&&(t="\\{\\}"+t.substr(2));return function t(e,n){var o=[];var a=i("{","}",e);if(!a||/\$$/.test(a.pre))return[e];var c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(a.body);var l=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(a.body);var p=c||l;var m=a.body.indexOf(",")>=0;if(!p&&!m)return a.post.match(/,.*\}/)?(e=a.pre+"{"+a.body+s+a.post,t(e)):[e];var _;if(p)_=a.body.split(/\.\./);else if(1===(_=function t(e){if(!e)return[""];var n=[];var r=i("{","}",e);if(!r)return e.split(",");var o=r.pre;var a=r.body;var s=r.post;var c=o.split(",");c[c.length-1]+="{"+a+"}";var l=t(s);s.length&&(c[c.length-1]+=l.shift(),c.push.apply(c,l));n.push.apply(n,c);return n}(a.body)).length&&1===(_=t(_[0],!1).map(f)).length){var b=a.post.length?t(a.post,!1):[""];return b.map(function(t){return a.pre+_[0]+t})}var y=a.pre;var b=a.post.length?t(a.post,!1):[""];var v;if(p){var x=u(_[0]),w=u(_[1]),k=Math.max(_[0].length,_[1].length),E=3==_.length?Math.abs(u(_[2])):1,S=d,I=w0){var P=new Array(C+1).join("0");A=O<0?"-"+P+A.slice(1):P+A}}v.push(A)}}else v=r(_,function(e){return t(e,!1)});for(var D=0;D=e}},function(t,e){t.exports=function(t,e){for(var r=[],i=0;i=0&&l>0){for(r=[],o=n.length;u>=0&&!s;)u==c?(r.push(u),c=n.indexOf(t,u+1)):1==r.length?s=[r.pop(),l]:((i=r.pop())=0?c:l;r.length&&(s=[o,a])}return s}t.exports=r,r.range=o},function(t,e,n){t.exports=d,d.GlobSync=g;var r=n(5),i=n(109),o=n(56),a=(o.Minimatch,n(55).Glob,n(3),n(1)),s=n(20),c=n(57),l=n(110),u=(l.alphasort,l.alphasorti,l.setopts),p=l.ownProp,f=l.childrenIgnored,h=l.isIgnored;function d(t,e){if("function"==typeof e||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");return new g(t,e).found}function g(t,e){if(!t)throw new Error("must provide pattern");if("function"==typeof e||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof g))return new g(t,e);if(u(this,t,e),this.noprocess)return this;var n=this.minimatch.set.length;this.matches=new Array(n);for(var r=0;rthis.maxLength)return!1;if(!this.stat&&p(this.cache,e)){var i=this.cache[e];if(Array.isArray(i)&&(i="DIR"),!n||"DIR"===i)return i;if(n&&"FILE"===i)return!1}var o=this.statCache[e];if(!o){var a;try{a=r.lstatSync(e)}catch(t){if(t&&("ENOENT"===t.code||"ENOTDIR"===t.code))return this.statCache[e]=!1,!1}if(a&&a.isSymbolicLink())try{o=r.statSync(e)}catch(t){o=a}else o=a}this.statCache[e]=o;i=!0;return o&&(i=o.isDirectory()?"DIR":"FILE"),this.cache[e]=this.cache[e]||i,(!n||"FILE"!==i)&&i},g.prototype._mark=function(t){return l.mark(this,t)},g.prototype._makeAbs=function(t){return l.makeAbs(this,t)}},function(t,e,n){var r=n(106),i=Object.create(null),o=n(48);function a(t){for(var e=t.length,n=[],r=0;rr?(n.splice(0,r),process.nextTick(function(){e.apply(null,o)})):delete i[t]}})}(t))})},function(t,e,n){(function(t){(function(e){"use strict";function n(t,e){e|=0;for(var n=Math.max(t.length-e,0),r=Array(n),i=0;i-1&&t%1==0&&t<=N}function M(t){return null!=t&&z(t.length)&&!function(t){if(!o(t))return!1;var e=C(t);return e==D||e==B||e==P||e==L}(t)}var R={};function j(){}function F(t){return function(){if(null!==t){var e=t;t=null,e.apply(this,arguments)}}}var U="function"==typeof Symbol&&Symbol.iterator,G=function(t){return U&&t[U]&&t[U]()};function H(t){return null!=t&&"object"==typeof t}var W="[object Arguments]";function q(t){return H(t)&&C(t)==W}var Y=Object.prototype,V=Y.hasOwnProperty,Z=Y.propertyIsEnumerable,$=q(function(){return arguments}())?q:function(t){return H(t)&&V.call(t,"callee")&&!Z.call(t,"callee")},X=Array.isArray,Q="object"==typeof e&&e&&!e.nodeType&&e,J=Q&&"object"==typeof t&&t&&!t.nodeType&&t,K=J&&J.exports===Q?v.Buffer:void 0,tt=(K?K.isBuffer:void 0)||function(){return!1},et=9007199254740991,nt=/^(?:0|[1-9]\d*)$/;function rt(t,e){var n=typeof t;return!!(e=null==e?et:e)&&("number"==n||"symbol"!=n&&nt.test(t))&&t>-1&&t%1==0&&t2&&(i=n(arguments,1)),e){var l={};Rt(o,function(t,e){l[e]=t}),l[t]=i,s=!0,c=Object.create(null),r(e,l)}else o[t]=i,d(t)});a++;var l=m(e[e.length-1]);e.length>1?l(o,i):l(i)}(t,e)})}function h(){if(0===l.length&&0===a)return r(null,o);for(;l.length&&a=0&&n.push(r)}),n}Rt(t,function(e,n){if(!X(e))return f(n,[e]),void u.push(n);var r=e.slice(0,e.length-1),i=r.length;if(0===i)return f(n,e),void u.push(n);p[n]=i,Nt(r,function(o){if(!t[o])throw new Error("async.auto task `"+n+"` has a non-existent dependency `"+o+"` in "+r.join(", "));!function(t,e){var n=c[t];n||(n=c[t]=[]);n.push(e)}(o,function(){0===--i&&f(n,e)})})}),function(){var t,e=0;for(;u.length;)t=u.pop(),e++,Nt(g(t),function(t){0==--p[t]&&u.push(t)});if(e!==i)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}(),h()};function Gt(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n=r?t:function(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r-1;);return n}(i,o),function(t,e){for(var n=t.length;n--&&Ft(e,t[n],0)>-1;);return n}(i,o)+1).join("")}var le=/^(?:async\s+)?(function)?\s*[^\(]*\(\s*([^\)]*)\)/m,ue=/,/,pe=/(=.+)?(\s*)$/,fe=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm;function he(t,e){var n={};Rt(t,function(t,e){var r,i=g(t),o=!i&&1===t.length||i&&0===t.length;if(X(t))r=t.slice(0,-1),t=t[t.length-1],n[e]=r.concat(r.length>0?a:t);else if(o)n[e]=t;else{if(r=function(t){return t=(t=(t=(t=t.toString().replace(fe,"")).match(le)[2].replace(" ",""))?t.split(ue):[]).map(function(t){return ce(t.replace(pe,""))})}(t),0===t.length&&!i&&0===r.length)throw new Error("autoInject task functions require explicit parameters.");i||r.pop(),n[e]=r.concat(a)}function a(e,n){var i=Gt(r,function(t){return e[t]});i.push(n),m(t).apply(null,i)}}),Ut(n,e)}function de(){this.head=this.tail=null,this.length=0}function ge(t,e){t.length=1,t.head=t.tail=e}function me(t,e,n){if(null==e)e=1;else if(0===e)throw new Error("Concurrency must not be zero");var r=m(t),i=0,o=[],a=!1;function s(t,e,n){if(null!=n&&"function"!=typeof n)throw new Error("task callback must be a function");if(p.started=!0,X(t)||(t=[t]),0===t.length&&p.idle())return u(function(){p.drain()});for(var r=0,i=t.length;r0&&o.splice(s,1),a.callback.apply(a,arguments),null!=e&&p.error(e,a.data)}i<=p.concurrency-p.buffer&&p.unsaturated(),p.idle()&&p.drain(),p.process()}}var l=!1,p={_tasks:new de,concurrency:e,payload:n,saturated:j,unsaturated:j,buffer:e/4,empty:j,drain:j,error:j,started:!1,paused:!1,push:function(t,e){s(t,!1,e)},kill:function(){p.drain=j,p._tasks.empty()},unshift:function(t,e){s(t,!0,e)},remove:function(t){p._tasks.remove(t)},process:function(){if(!l){for(l=!0;!p.paused&&i2&&(o=n(arguments,1)),i[e]=o,r(t)})},function(t){r(t,i)})}function dn(t,e){hn(It,t,e)}function gn(t,e,n){hn(xt(e),t,n)}var mn=function(t,e){var n=m(t);return me(function(t,e){n(t[0],e)},e,1)},_n=function(t,e){var n=mn(t,e);return n.push=function(t,e,r){if(null==r&&(r=j),"function"!=typeof r)throw new Error("task callback must be a function");if(n.started=!0,X(t)||(t=[t]),0===t.length)return u(function(){n.drain()});e=e||0;for(var i=n._tasks.head;i&&e>=i.priority;)i=i.next;for(var o=0,a=t.length;or?1:0}At(t,function(t,e){r(t,function(n,r){if(n)return e(n);e(null,{value:t,criteria:r})})},function(t,e){if(t)return n(t);n(null,Gt(e.sort(i),Ze("value")))})}function Ln(t,e,n){var r=m(t);return i(function(i,o){var a,s=!1;i.push(function(){s||(o.apply(null,arguments),clearTimeout(a))}),a=setTimeout(function(){var e=t.name||"anonymous",r=new Error('Callback function "'+e+'" timed out.');r.code="ETIMEDOUT",n&&(r.info=n),s=!0,o(r)},e),r.apply(null,i)})}var Nn=Math.ceil,zn=Math.max;function Mn(t,e,n,r){var i=m(n);Dt(function(t,e,n,r){for(var i=-1,o=zn(Nn((e-t)/(n||1)),0),a=Array(o);o--;)a[r?o:++i]=t,t+=n;return a}(0,t,1),e,i,r)}var Rn=kt(Mn,1/0),jn=kt(Mn,1);function Fn(t,e,n,r){arguments.length<=3&&(r=n,n=e,e=X(t)?[]:{}),r=F(r||j);var i=m(n);It(t,function(t,n,r){i(e,t,n,r)},function(t){r(t,e)})}function Un(t,e){var r,i=null;e=e||j,Ge(t,function(t,e){m(t)(function(t,o){r=arguments.length>2?n(arguments,1):o,i=t,e(!t)})},function(){e(i,r)})}function Gn(t){return function(){return(t.unmemoized||t).apply(null,arguments)}}function Hn(t,e,r){r=vt(r||j);var i=m(e);if(!t())return r(null);var o=function(e){if(e)return r(e);if(t())return i(o);var a=n(arguments,1);r.apply(null,[null].concat(a))};i(o)}function Wn(t,e,n){Hn(function(){return!t.apply(this,arguments)},e,n)}var qn=function(t,e){if(e=F(e||j),!X(t))return e(new Error("First argument to waterfall must be an array of functions"));if(!t.length)return e();var r=0;function i(e){var n=m(t[r++]);e.push(vt(o)),n.apply(null,e)}function o(o){if(o||r===t.length)return e.apply(null,arguments);i(n(arguments,1))}i([])},Yn={apply:r,applyEach:Ct,applyEachSeries:Lt,asyncify:p,auto:Ut,autoInject:he,cargo:_e,compose:xe,concat:Ee,concatLimit:ke,concatSeries:Se,constant:Ie,detect:Ce,detectLimit:Pe,detectSeries:De,dir:Le,doDuring:Ne,doUntil:Me,doWhilst:ze,during:Re,each:Fe,eachLimit:Ue,eachOf:It,eachOfLimit:wt,eachOfSeries:be,eachSeries:Ge,ensureAsync:He,every:qe,everyLimit:Ye,everySeries:Ve,filter:Je,filterLimit:Ke,filterSeries:tn,forever:en,groupBy:rn,groupByLimit:nn,groupBySeries:on,log:an,map:At,mapLimit:Dt,mapSeries:Bt,mapValues:cn,mapValuesLimit:sn,mapValuesSeries:ln,memoize:pn,nextTick:fn,parallel:dn,parallelLimit:gn,priorityQueue:_n,queue:mn,race:bn,reduce:ye,reduceRight:yn,reflect:vn,reflectAll:xn,reject:kn,rejectLimit:En,rejectSeries:Sn,retry:Tn,retryable:On,seq:ve,series:An,setImmediate:u,some:Cn,someLimit:Pn,someSeries:Dn,sortBy:Bn,timeout:Ln,times:Rn,timesLimit:Mn,timesSeries:jn,transform:Fn,tryEach:Un,unmemoize:Gn,until:Wn,waterfall:qn,whilst:Hn,all:qe,allLimit:Ye,allSeries:Ve,any:Cn,anyLimit:Pn,anySeries:Dn,find:Ce,findLimit:Pe,findSeries:De,forEach:Fe,forEachSeries:Ge,forEachLimit:Ue,forEachOf:It,forEachOfSeries:be,forEachOfLimit:wt,inject:ye,foldl:ye,foldr:yn,select:Je,selectLimit:Ke,selectSeries:tn,wrapSync:p};e.default=Yn,e.apply=r,e.applyEach=Ct,e.applyEachSeries=Lt,e.asyncify=p,e.auto=Ut,e.autoInject=he,e.cargo=_e,e.compose=xe,e.concat=Ee,e.concatLimit=ke,e.concatSeries=Se,e.constant=Ie,e.detect=Ce,e.detectLimit=Pe,e.detectSeries=De,e.dir=Le,e.doDuring=Ne,e.doUntil=Me,e.doWhilst=ze,e.during=Re,e.each=Fe,e.eachLimit=Ue,e.eachOf=It,e.eachOfLimit=wt,e.eachOfSeries=be,e.eachSeries=Ge,e.ensureAsync=He,e.every=qe,e.everyLimit=Ye,e.everySeries=Ve,e.filter=Je,e.filterLimit=Ke,e.filterSeries=tn,e.forever=en,e.groupBy=rn,e.groupByLimit=nn,e.groupBySeries=on,e.log=an,e.map=At,e.mapLimit=Dt,e.mapSeries=Bt,e.mapValues=cn,e.mapValuesLimit=sn,e.mapValuesSeries=ln,e.memoize=pn,e.nextTick=fn,e.parallel=dn,e.parallelLimit=gn,e.priorityQueue=_n,e.queue=mn,e.race=bn,e.reduce=ye,e.reduceRight=yn,e.reflect=vn,e.reflectAll=xn,e.reject=kn,e.rejectLimit=En,e.rejectSeries=Sn,e.retry=Tn,e.retryable=On,e.seq=ve,e.series=An,e.setImmediate=u,e.some=Cn,e.someLimit=Pn,e.someSeries=Dn,e.sortBy=Bn,e.timeout=Ln,e.times=Rn,e.timesLimit=Mn,e.timesSeries=jn,e.transform=Fn,e.tryEach=Un,e.unmemoize=Gn,e.until=Wn,e.waterfall=qn,e.whilst=Hn,e.all=qe,e.allLimit=Ye,e.allSeries=Ve,e.any=Cn,e.anyLimit=Pn,e.anySeries=Dn,e.find=Ce,e.findLimit=Pe,e.findSeries=De,e.forEach=Fe,e.forEachSeries=Ge,e.forEachLimit=Ue,e.forEachOf=It,e.forEachOfSeries=be,e.forEachOfLimit=wt,e.inject=ye,e.foldl=ye,e.foldr=yn,e.select=Je,e.selectLimit=Ke,e.selectSeries=tn,e.wrapSync=p,Object.defineProperty(e,"__esModule",{value:!0})})(e)}).call(this,n(132)(t))},function(t,e,n){var r=n(3),i=n(269);function o(t,e,n){t[e]=function(){return delete t[e],n.apply(this,arguments),this[e].apply(this,arguments)}}function a(t,e){if(!(this instanceof a))return new a(t,e);i.call(this,e),o(this,"_read",function(){var n=t.call(this,e),r=this.emit.bind(this,"error");n.on("error",r),n.pipe(this)}),this.emit("readable")}function s(t,e){if(!(this instanceof s))return new s(t,e);i.call(this,e),o(this,"_write",function(){var n=t.call(this,e),r=this.emit.bind(this,"error");n.on("error",r),this.pipe(n)}),this.emit("writable")}t.exports={Readable:a,Writable:s},r.inherits(a,i),r.inherits(s,i)},function(t,e,n){t.exports=n(11).PassThrough},function(t,e){ /*! * normalize-path * * Copyright (c) 2014-2018, Jon Schlinkert. * Released under the MIT License. */ -t.exports=function(t,e){if("string"!=typeof t)throw new TypeError("expected path to be a string");if("\\"===t||"/"===t)return"/";var n=t.length;if(n<=1)return t;var r="";if(n>4&&"\\"===t[3]){var i=t[2];"?"!==i&&"."!==i||"\\\\"!==t.slice(0,2)||(t=t.slice(2),r="//")}var o=t.split(/[\/\\]+/);return!1!==e&&""===o[o.length-1]&&o.pop(),r+o.join("/")}},function(t,e,n){var r=n(6),i=n(1),o={flatten:n(272),difference:n(273),union:n(274),toArray:n(275),isPlainObject:n(276),defaults:n(111),extend:n(277)},a=n(55),s=t.exports={},c=/[\/\\]/g,l=function(t,e){var n=[];return o.flatten(t).forEach(function(t){var r=0===t.indexOf("!");r&&(t=t.slice(1));var i=e(t);n=r?o.difference(n,i):o.union(n,i)}),n};s.exists=function(){var t=i.join.apply(i,arguments);return r.existsSync(t)},s.expand=function(){var t=o.toArray(arguments),e=o.isPlainObject(t[0])?t.shift():{},n=Array.isArray(t[0])?t[0]:t;if(0===n.length)return[];var s=l(n,function(t){return a.sync(t,e)});return e.filter&&(s=s.filter(function(t){t=i.join(e.cwd||"",t);try{return"function"==typeof e.filter?e.filter(t):r.statSync(t)[e.filter]()}catch(t){return!1}})),s},s.expandMapping=function(t,e,n){n=o.defaults({},n,{rename:function(t,e){return i.join(t||"",e)}});var r=[],a={};return s.expand(n,t).forEach(function(t){var o=t;n.flatten&&(o=i.basename(o)),n.ext&&(o=o.replace(/(\.[^\/]*)?$/,n.ext));var s=n.rename(e,o,n);n.cwd&&(t=i.join(n.cwd,t)),s=s.replace(c,"/"),t=t.replace(c,"/"),a[s]?a[s].src.push(t):(r.push({src:[t],dest:s}),a[s]=r[r.length-1])}),r},s.normalizeFilesArray=function(t){var e=[];return t.forEach(function(t){("src"in t||"dest"in t)&&e.push(t)}),0===e.length?[]:e=o(e).chain().forEach(function(t){"src"in t&&t.src&&(Array.isArray(t.src)?t.src=o.flatten(t.src):t.src=[t.src])}).map(function(t){var e=o.extend({},t);if(delete e.src,delete e.dest,t.expand)return s.expandMapping(t.src,t.dest,e).map(function(e){var n=o.extend({},t);return n.orig=o.extend({},t),n.src=e.src,n.dest=e.dest,["expand","cwd","flatten","rename","ext"].forEach(function(t){delete n[t]}),n});var n=o.extend({},t);return n.orig=o.extend({},t),"src"in n&&Object.defineProperty(n,"src",{enumerable:!0,get:function n(){var r;return"result"in n||(r=t.src,r=Array.isArray(r)?o.flatten(r):[r],n.result=s.expand(e,r)),n.result}}),"dest"in n&&(n.dest=t.dest),n}).flatten().value()}},function(t,e){var n=9007199254740991,r="[object Arguments]",i="[object Function]",o="[object GeneratorFunction]",a="object"==typeof global&&global&&global.Object===Object&&global,s="object"==typeof self&&self&&self.Object===Object&&self,c=a||s||Function("return this")();function l(t,e){for(var n=-1,r=e.length,i=t.length;++n-1&&t%1==0&&t<=n}(t.length)&&!function(t){var e=function(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}(t)?f.call(t):"";return e==i||e==o}(t)}(t)}(t)&&p.call(t,"callee")&&(!d.call(t,"callee")||f.call(t)==r)}(t)||!!(g&&t&&t[g])}var _=Array.isArray;t.exports=function(t){return t&&t.length?function t(e,n,r,i,o){var a=-1,s=e.length;for(r||(r=m),o||(o=[]);++a0&&r(c)?n>1?t(c,n-1,r,i,o):l(o,c):i||(o[o.length]=c)}return o}(t,1):[]}},function(t,e){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",a="[object Function]",s="[object GeneratorFunction]",c=/^\[object .+?Constructor\]$/,l="object"==typeof global&&global&&global.Object===Object&&global,u="object"==typeof self&&self&&self.Object===Object&&self,p=l||u||Function("return this")();function f(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function h(t,e){return!!(t?t.length:0)&&function(t,e,n){if(e!=e)return function(t,e,n,r){var i=t.length,o=n+(r?1:-1);for(;r?o--:++o-1}function d(t,e,n){for(var r=-1,i=t?t.length:0;++r=n&&(s=_,c=!1,e=new R(e));t:for(;++a-1},M.prototype.set=function(t,e){var n=this.__data__,r=j(n,t);return r<0?n.push([t,e]):n[r][1]=e,this},z.prototype.clear=function(){this.__data__={hash:new N,map:new(B||M),string:new N}},z.prototype.delete=function(t){return G(this,t).delete(t)},z.prototype.get=function(t){return G(this,t).get(t)},z.prototype.has=function(t){return G(this,t).has(t)},z.prototype.set=function(t,e){return G(this,t).set(t,e),this},R.prototype.add=R.prototype.push=function(t){return this.__data__.set(t,r),this},R.prototype.has=function(t){return this.__data__.has(t)};var q,Y,V=(q=function(t,e){return X(t)?F(t,function t(e,n,r,i,o){var a=-1,s=e.length;for(r||(r=W),o||(o=[]);++a0&&r(c)?n>1?t(c,n-1,r,i,o):g(o,c):i||(o[o.length]=c)}return o}(e,1,X,!0)):[]},Y=D(void 0===Y?q.length-1:Y,0),function(){for(var t=arguments,e=-1,n=D(t.length-Y,0),r=Array(n);++e-1&&t%1==0&&t<=i}(t.length)&&!Q(t)}function X(t){return function(t){return!!t&&"object"==typeof t}(t)&&$(t)}function Q(t){var e=J(t)?I.call(t):"";return e==a||e==s}function J(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}t.exports=V},function(t,e){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",a="[object Function]",s="[object GeneratorFunction]",c=/^\[object .+?Constructor\]$/,l="object"==typeof global&&global&&global.Object===Object&&global,u="object"==typeof self&&self&&self.Object===Object&&self,p=l||u||Function("return this")();function f(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function h(t,e){return!!(t?t.length:0)&&function(t,e,n){if(e!=e)return function(t,e,n,r){var i=t.length,o=n+(r?1:-1);for(;r?o--:++o-1}function d(t,e,n){for(var r=-1,i=t?t.length:0;++r-1},R.prototype.set=function(t,e){var n=this.__data__,r=U(n,t);return r<0?n.push([t,e]):n[r][1]=e,this},j.prototype.clear=function(){this.__data__={hash:new z,map:new(L||R),string:new z}},j.prototype.delete=function(t){return W(this,t).delete(t)},j.prototype.get=function(t){return W(this,t).get(t)},j.prototype.has=function(t){return W(this,t).has(t)},j.prototype.set=function(t,e){return W(this,t).set(t,e),this},F.prototype.add=F.prototype.push=function(t){return this.__data__.set(t,r),this},F.prototype.has=function(t){return this.__data__.has(t)};var H=N&&1/b(new N([,-0]))[1]==1/0?function(t){return new N(t)}:function(){};function W(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function q(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return G(n)?n:void 0}function Y(t){return X(t)||function(t){return J(t)&&I.call(t,"callee")&&(!C.call(t,"callee")||T.call(t)==o)}(t)||!!(D&&t&&t[D])}var V,Z,$=(V=function(t){return function(t,e,r){var i=-1,o=h,a=t.length,s=!0,c=[],l=c;if(r)s=!1,o=d;else if(a>=n){var u=e?null:H(t);if(u)return b(u);s=!1,o=_,l=new F}else l=e?[]:c;t:for(;++i0&&r(c)?n>1?t(c,n-1,r,i,o):g(o,c):i||(o[o.length]=c)}return o}(t,1,J,!0))},Z=B(void 0===Z?V.length-1:Z,0),function(){for(var t=arguments,e=-1,n=B(t.length-Z,0),r=Array(n);++e-1&&t%1==0&&t<=i}(t.length)&&!K(t)}function J(t){return function(t){return!!t&&"object"==typeof t}(t)&&Q(t)}function K(t){var e=tt(t)?T.call(t):"";return e==a||e==s}function tt(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}t.exports=$},function(t,e){var n=9007199254740991,r="[object Arguments]",i="[object Function]",o="[object GeneratorFunction]",a="[object Map]",s="[object Set]",c="[object String]",l=/^\[object .+?Constructor\]$/,u=/^(?:0|[1-9]\d*)$/,p="[\\ud800-\\udfff]",f="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",h="\\ud83c[\\udffb-\\udfff]",d="[^\\ud800-\\udfff]",g="(?:\\ud83c[\\udde6-\\uddff]){2}",m="[\\ud800-\\udbff][\\udc00-\\udfff]",_="(?:"+f+"|"+h+")"+"?",b="[\\ufe0e\\ufe0f]?"+_+("(?:\\u200d(?:"+[d,g,m].join("|")+")[\\ufe0e\\ufe0f]?"+_+")*"),y="(?:"+[d+f+"?",f,g,m,p].join("|")+")",v=RegExp(h+"(?="+h+")|"+y+b,"g"),x=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),w="object"==typeof global&&global&&global.Object===Object&&global,k="object"==typeof self&&self&&self.Object===Object&&self,E=w||k||Function("return this")();function S(t,e){return function(t,e){for(var n=-1,r=t?t.length:0,i=Array(r);++n-1&&t%1==0&&t-1&&t%1==0&&t<=n}(t.length)&&!lt(t)}function lt(t){var e=ut(t)?R.call(t):"";return e==i||e==o}function ut(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function pt(t){return!!t&&"object"==typeof t}function ft(t){return t?S(t,function(t){return ct(t)?tt(t):nt(t)}(t)):[]}t.exports=function(t){if(!t)return[];if(ct(t))return function(t){return"string"==typeof t||!st(t)&&pt(t)&&R.call(t)==c}(t)?O(t):function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n-1&&t%1==0&&t-1&&t%1==0&&t<=n}(t.length)&&!function(t){var e=E(t)?f.call(t):"";return e==i||e==o}(t)}function E(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}var S,I=(S=function(t,e){if(m||v(e)||k(e))!function(t,e,n,r){n||(n={});for(var i=-1,o=e.length;++i1?e[r-1]:void 0,o=r>2?e[2]:void 0;for(i=S.length>3&&"function"==typeof i?(r--,i):void 0,o&&function(t,e,n){if(!E(n))return!1;var r=typeof e;return!!("number"==r?k(n)&&y(e,n.length):"string"==r&&e in n)&&x(n[e],t)}(e[0],e[1],o)&&(i=r<3?void 0:i,r=1),t=Object(t);++n4&&"\\"===t[3]){var i=t[2];"?"!==i&&"."!==i||"\\\\"!==t.slice(0,2)||(t=t.slice(2),r="//")}var o=t.split(/[\/\\]+/);return!1!==e&&""===o[o.length-1]&&o.pop(),r+o.join("/")}},function(t,e,n){var r=n(6),i=n(1),o={flatten:n(272),difference:n(273),union:n(274),toArray:n(275),isPlainObject:n(276),defaults:n(111),extend:n(277)},a=n(55),s=t.exports={},c=/[\/\\]/g,l=function(t,e){var n=[];return o.flatten(t).forEach(function(t){var r=0===t.indexOf("!");r&&(t=t.slice(1));var i=e(t);n=r?o.difference(n,i):o.union(n,i)}),n};s.exists=function(){var t=i.join.apply(i,arguments);return r.existsSync(t)},s.expand=function(){var t=o.toArray(arguments),e=o.isPlainObject(t[0])?t.shift():{},n=Array.isArray(t[0])?t[0]:t;if(0===n.length)return[];var s=l(n,function(t){return a.sync(t,e)});return e.filter&&(s=s.filter(function(t){t=i.join(e.cwd||"",t);try{return"function"==typeof e.filter?e.filter(t):r.statSync(t)[e.filter]()}catch(t){return!1}})),s},s.expandMapping=function(t,e,n){n=o.defaults({},n,{rename:function(t,e){return i.join(t||"",e)}});var r=[],a={};return s.expand(n,t).forEach(function(t){var o=t;n.flatten&&(o=i.basename(o)),n.ext&&(o=o.replace(/(\.[^\/]*)?$/,n.ext));var s=n.rename(e,o,n);n.cwd&&(t=i.join(n.cwd,t)),s=s.replace(c,"/"),t=t.replace(c,"/"),a[s]?a[s].src.push(t):(r.push({src:[t],dest:s}),a[s]=r[r.length-1])}),r},s.normalizeFilesArray=function(t){var e=[];return t.forEach(function(t){("src"in t||"dest"in t)&&e.push(t)}),0===e.length?[]:e=o(e).chain().forEach(function(t){"src"in t&&t.src&&(Array.isArray(t.src)?t.src=o.flatten(t.src):t.src=[t.src])}).map(function(t){var e=o.extend({},t);if(delete e.src,delete e.dest,t.expand)return s.expandMapping(t.src,t.dest,e).map(function(e){var n=o.extend({},t);return n.orig=o.extend({},t),n.src=e.src,n.dest=e.dest,["expand","cwd","flatten","rename","ext"].forEach(function(t){delete n[t]}),n});var n=o.extend({},t);return n.orig=o.extend({},t),"src"in n&&Object.defineProperty(n,"src",{enumerable:!0,get:function n(){var r;return"result"in n||(r=t.src,r=Array.isArray(r)?o.flatten(r):[r],n.result=s.expand(e,r)),n.result}}),"dest"in n&&(n.dest=t.dest),n}).flatten().value()}},function(t,e){var n=9007199254740991,r="[object Arguments]",i="[object Function]",o="[object GeneratorFunction]",a="object"==typeof global&&global&&global.Object===Object&&global,s="object"==typeof self&&self&&self.Object===Object&&self,c=a||s||Function("return this")();function l(t,e){for(var n=-1,r=e.length,i=t.length;++n-1&&t%1==0&&t<=n}(t.length)&&!function(t){var e=function(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}(t)?f.call(t):"";return e==i||e==o}(t)}(t)}(t)&&p.call(t,"callee")&&(!d.call(t,"callee")||f.call(t)==r)}(t)||!!(g&&t&&t[g])}var _=Array.isArray;t.exports=function(t){return t&&t.length?function t(e,n,r,i,o){var a=-1,s=e.length;for(r||(r=m),o||(o=[]);++a0&&r(c)?n>1?t(c,n-1,r,i,o):l(o,c):i||(o[o.length]=c)}return o}(t,1):[]}},function(t,e){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",a="[object Function]",s="[object GeneratorFunction]",c=/^\[object .+?Constructor\]$/,l="object"==typeof global&&global&&global.Object===Object&&global,u="object"==typeof self&&self&&self.Object===Object&&self,p=l||u||Function("return this")();function f(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function h(t,e){return!!(t?t.length:0)&&function(t,e,n){if(e!=e)return function(t,e,n,r){var i=t.length,o=n+(r?1:-1);for(;r?o--:++o-1}function d(t,e,n){for(var r=-1,i=t?t.length:0;++r=n&&(s=_,c=!1,e=new R(e));t:for(;++a-1},z.prototype.set=function(t,e){var n=this.__data__,r=j(n,t);return r<0?n.push([t,e]):n[r][1]=e,this},M.prototype.clear=function(){this.__data__={hash:new N,map:new(B||z),string:new N}},M.prototype.delete=function(t){return G(this,t).delete(t)},M.prototype.get=function(t){return G(this,t).get(t)},M.prototype.has=function(t){return G(this,t).has(t)},M.prototype.set=function(t,e){return G(this,t).set(t,e),this},R.prototype.add=R.prototype.push=function(t){return this.__data__.set(t,r),this},R.prototype.has=function(t){return this.__data__.has(t)};var q,Y,V=(q=function(t,e){return X(t)?F(t,function t(e,n,r,i,o){var a=-1,s=e.length;for(r||(r=W),o||(o=[]);++a0&&r(c)?n>1?t(c,n-1,r,i,o):g(o,c):i||(o[o.length]=c)}return o}(e,1,X,!0)):[]},Y=D(void 0===Y?q.length-1:Y,0),function(){for(var t=arguments,e=-1,n=D(t.length-Y,0),r=Array(n);++e-1&&t%1==0&&t<=i}(t.length)&&!Q(t)}function X(t){return function(t){return!!t&&"object"==typeof t}(t)&&$(t)}function Q(t){var e=J(t)?I.call(t):"";return e==a||e==s}function J(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}t.exports=V},function(t,e){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",a="[object Function]",s="[object GeneratorFunction]",c=/^\[object .+?Constructor\]$/,l="object"==typeof global&&global&&global.Object===Object&&global,u="object"==typeof self&&self&&self.Object===Object&&self,p=l||u||Function("return this")();function f(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function h(t,e){return!!(t?t.length:0)&&function(t,e,n){if(e!=e)return function(t,e,n,r){var i=t.length,o=n+(r?1:-1);for(;r?o--:++o-1}function d(t,e,n){for(var r=-1,i=t?t.length:0;++r-1},R.prototype.set=function(t,e){var n=this.__data__,r=U(n,t);return r<0?n.push([t,e]):n[r][1]=e,this},j.prototype.clear=function(){this.__data__={hash:new M,map:new(L||R),string:new M}},j.prototype.delete=function(t){return W(this,t).delete(t)},j.prototype.get=function(t){return W(this,t).get(t)},j.prototype.has=function(t){return W(this,t).has(t)},j.prototype.set=function(t,e){return W(this,t).set(t,e),this},F.prototype.add=F.prototype.push=function(t){return this.__data__.set(t,r),this},F.prototype.has=function(t){return this.__data__.has(t)};var H=N&&1/b(new N([,-0]))[1]==1/0?function(t){return new N(t)}:function(){};function W(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function q(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return G(n)?n:void 0}function Y(t){return X(t)||function(t){return J(t)&&I.call(t,"callee")&&(!C.call(t,"callee")||T.call(t)==o)}(t)||!!(D&&t&&t[D])}var V,Z,$=(V=function(t){return function(t,e,r){var i=-1,o=h,a=t.length,s=!0,c=[],l=c;if(r)s=!1,o=d;else if(a>=n){var u=e?null:H(t);if(u)return b(u);s=!1,o=_,l=new F}else l=e?[]:c;t:for(;++i0&&r(c)?n>1?t(c,n-1,r,i,o):g(o,c):i||(o[o.length]=c)}return o}(t,1,J,!0))},Z=B(void 0===Z?V.length-1:Z,0),function(){for(var t=arguments,e=-1,n=B(t.length-Z,0),r=Array(n);++e-1&&t%1==0&&t<=i}(t.length)&&!K(t)}function J(t){return function(t){return!!t&&"object"==typeof t}(t)&&Q(t)}function K(t){var e=tt(t)?T.call(t):"";return e==a||e==s}function tt(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}t.exports=$},function(t,e){var n=9007199254740991,r="[object Arguments]",i="[object Function]",o="[object GeneratorFunction]",a="[object Map]",s="[object Set]",c="[object String]",l=/^\[object .+?Constructor\]$/,u=/^(?:0|[1-9]\d*)$/,p="[\\ud800-\\udfff]",f="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",h="\\ud83c[\\udffb-\\udfff]",d="[^\\ud800-\\udfff]",g="(?:\\ud83c[\\udde6-\\uddff]){2}",m="[\\ud800-\\udbff][\\udc00-\\udfff]",_="(?:"+f+"|"+h+")"+"?",b="[\\ufe0e\\ufe0f]?"+_+("(?:\\u200d(?:"+[d,g,m].join("|")+")[\\ufe0e\\ufe0f]?"+_+")*"),y="(?:"+[d+f+"?",f,g,m,p].join("|")+")",v=RegExp(h+"(?="+h+")|"+y+b,"g"),x=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),w="object"==typeof global&&global&&global.Object===Object&&global,k="object"==typeof self&&self&&self.Object===Object&&self,E=w||k||Function("return this")();function S(t,e){return function(t,e){for(var n=-1,r=t?t.length:0,i=Array(r);++n-1&&t%1==0&&t-1&&t%1==0&&t<=n}(t.length)&&!lt(t)}function lt(t){var e=ut(t)?R.call(t):"";return e==i||e==o}function ut(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function pt(t){return!!t&&"object"==typeof t}function ft(t){return t?S(t,function(t){return ct(t)?tt(t):nt(t)}(t)):[]}t.exports=function(t){if(!t)return[];if(ct(t))return function(t){return"string"==typeof t||!st(t)&&pt(t)&&R.call(t)==c}(t)?O(t):function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n-1&&t%1==0&&t-1&&t%1==0&&t<=n}(t.length)&&!function(t){var e=E(t)?f.call(t):"";return e==i||e==o}(t)}function E(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}var S,I=(S=function(t,e){if(m||v(e)||k(e))!function(t,e,n,r){n||(n={});for(var i=-1,o=e.length;++i1?e[r-1]:void 0,o=r>2?e[2]:void 0;for(i=S.length>3&&"function"==typeof i?(r--,i):void 0,o&&function(t,e,n){if(!E(n))return!1;var r=typeof e;return!!("number"==r?k(n)&&y(e,n.length):"string"==r&&e in n)&&x(n[e],t)}(e[0],e[1],o)&&(i=r<3?void 0:i,r=1),t=Object(t);++n