(e,a)
| 1 | (function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var a;a="undefined"==typeof window?"undefined"==typeof global?"undefined"==typeof self?this:self:global:window,a.handwritten=e()}})(function(){var e=Number.isFinite,a=Math.atan2,t=Number.isInteger,o=Math.LN2,s=Math.log,l=String.prototype,u=String.fromCodePoint,d=Math.sin,X=Math.abs,m=String.fromCharCode,P=Math.exp,K=Math.ceil,g=Math.cos,p=Math.PI,h=Math.sqrt,A=Math.floor,v=Math.pow,C=Math.round,B=Math.max,_=Math.min,W;return function(){function s(l,e,r){function a(o,n){if(!e[o]){if(!l[o]){var i="function"==typeof require&&require;if(!n&&i)return i(o,!0);if(t)return t(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var u=e[o]={exports:{}};l[o][0].call(u.exports,function(e){var t=l[o][1][e];return a(t||e)},u,u.exports,s,l,e,r)}return e[o].exports}for(var t="function"==typeof require&&require,n=0;n<r.length;n++)a(r[n]);return a}return s}()({1:[function(e,a){a.exports=function(e,a){(null==a||a>e.length)&&(a=e.length);for(var t=0,r=Array(a);t<a;t++)r[t]=e[t];return r}},{}],2:[function(e,a){a.exports=function(e){if(Array.isArray(e))return e}},{}],3:[function(e,a){var t=e("./arrayLikeToArray");a.exports=function(e){if(Array.isArray(e))return t(e)}},{"./arrayLikeToArray":1}],4:[function(e,a){a.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},{}],5:[function(e,a){a.exports=function(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}},{}],6:[function(e,a){function t(){return a.exports=n()?t=Reflect.construct:t=function(e,t,n){var i=[null];i.push.apply(i,t);var a=Function.bind.apply(e,i),o=new a;return n&&r(o,n.prototype),o},t.apply(null,arguments)}var r=e("./setPrototypeOf"),n=e("./isNativeReflectConstruct");a.exports=t},{"./isNativeReflectConstruct":14,"./setPrototypeOf":20}],7:[function(e,a){function t(e,a){for(var t=0,r;t<a.length;t++)r=a[t],r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}a.exports=function(e,a,r){return a&&t(e.prototype,a),r&&t(e,r),e}},{}],8:[function(e,a){function t(e,a,t){return a in e?Object.defineProperty(e,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[a]=t,e}a.exports=t},{}],9:[function(e,a){function t(){return a.exports=t=Object.assign||function(e){for(var a=1,t;a<arguments.length;a++)for(var r in t=arguments[a],t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},t.apply(this,arguments)}a.exports=t},{}],10:[function(e,a){function t(e){return a.exports=t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},t(e)}a.exports=t},{}],11:[function(e,a){var t=e("./setPrototypeOf");a.exports=function(e,a){if("function"!=typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(a&&a.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),a&&t(e,a)}},{"./setPrototypeOf":20}],12:[function(e,a){a.exports=function(e){return e&&e.__esModule?e:{default:e}}},{}],13:[function(e,a){function t(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return t=function(){return e},e}function r(e){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var a=t();if(a&&a.has(e))return a.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var c=i?Object.getOwnPropertyDescriptor(e,o):null;c&&(c.get||c.set)?Object.defineProperty(r,o,c):r[o]=e[o]}return r["default"]=e,a&&a.set(e,r),r}var n=e("../helpers/typeof");a.exports=r},{"../helpers/typeof":23}],14:[function(e,a){a.exports=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(a){return!1}}},{}],15:[function(e,a){function t(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}a.exports=t},{}],16:[function(e,a){function t(e,a){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var t=[],r=!0,n=!1,i=void 0;try{for(var o=e[Symbol.iterator](),c;!(r=(c=o.next()).done)&&(t.push(c.value),!(a&&t.length===a));r=!0);}catch(e){n=!0,i=e}finally{try{r||null==o["return"]||o["return"]()}finally{if(n)throw i}}return t}}a.exports=t},{}],17:[function(e,a){a.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},{}],18:[function(e,a){a.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},{}],19:[function(e,a){var t=e("../helpers/typeof"),r=e("./assertThisInitialized");a.exports=function(e,a){return a&&("object"===t(a)||"function"==typeof a)?a:r(e)}},{"../helpers/typeof":23,"./assertThisInitialized":4}],20:[function(e,a){function t(e,r){return a.exports=t=Object.setPrototypeOf||function(e,a){return e.__proto__=a,e},t(e,r)}a.exports=t},{}],21:[function(e,a){var t=e("./arrayWithHoles"),r=e("./iterableToArrayLimit"),n=e("./unsupportedIterableToArray"),o=e("./nonIterableRest");a.exports=function(e,a){return t(e)||r(e,a)||n(e,a)||o()}},{"./arrayWithHoles":2,"./iterableToArrayLimit":16,"./nonIterableRest":17,"./unsupportedIterableToArray":24}],22:[function(e,a){var t=e("./arrayWithoutHoles"),r=e("./iterableToArray"),n=e("./unsupportedIterableToArray"),i=e("./nonIterableSpread");a.exports=function(e){return t(e)||r(e)||n(e)||i()}},{"./arrayWithoutHoles":3,"./iterableToArray":15,"./nonIterableSpread":18,"./unsupportedIterableToArray":24}],23:[function(e,a){function t(e){"@babel/helpers - typeof";return a.exports="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t=function(e){return typeof e}:t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}a.exports=t},{}],24:[function(e,a){var t=e("./arrayLikeToArray");a.exports=function(e,a){if(e){if("string"==typeof e)return t(e,a);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,a):void 0}}},{"./arrayLikeToArray":1}],25:[function(e,a){a.exports=e("regenerator-runtime")},{"regenerator-runtime":416}],26:[function(e,a,t){"use strict";function r(e){return(0,s.scan)(e,0,0,e.bitmap.width,e.bitmap.height,function(e,a,t){var r=this.bitmap.data[t+0],n=this.bitmap.data[t+1],i=this.bitmap.data[t+2],o=this.bitmap.data[t+3];this.bitmap.data[t+0]=o,this.bitmap.data[t+1]=i,this.bitmap.data[t+2]=n,this.bitmap.data[t+3]=r}).bitmap}function n(e){return(0,s.scan)({bitmap:e},0,0,e.width,e.height,function(a,t,r){var n=this.bitmap.data[r+0],i=this.bitmap.data[r+1],o=this.bitmap.data[r+2],c=this.bitmap.data[r+3];this.bitmap.data[r+0]=c,this.bitmap.data[r+1]=o,this.bitmap.data[r+2]=i,this.bitmap.data[r+3]=e.is_with_alpha?n:255}).bitmap}var i=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var o=i(e("@babel/runtime/helpers/defineProperty")),c=i(e("bmp-js")),s=e("@jimp/utils"),l="image/bmp",u="image/x-ms-bmp",d=function(e){return n(c["default"].decode(e))},X=function(e){return c["default"].encode(r(e)).data};t["default"]=function(){var e,a;return{mime:(0,o["default"])({},l,["bmp"]),constants:{MIME_BMP:l,MIME_X_MS_BMP:u},decoders:(e={},(0,o["default"])(e,l,d),(0,o["default"])(e,u,d),e),encoders:(a={},(0,o["default"])(a,l,X),(0,o["default"])(a,u,X),a)}},a.exports=t.default},{"@babel/runtime/helpers/defineProperty":8,"@babel/runtime/helpers/interopRequireDefault":12,"@jimp/utils":68,"bmp-js":98}],27:[function(e,a,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.srcOver=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:1;e.a*=n;var i=t.a+e.a-t.a*e.a,a=(e.r*e.a+t.r*t.a*(1-e.a))/i,r=(e.g*e.a+t.g*t.a*(1-e.a))/i,o=(e.b*e.a+t.b*t.a*(1-e.a))/i;return{r:a,g:r,b:o,a:i}},t.dstOver=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:1;e.a*=n;var i=t.a+e.a-t.a*e.a,a=(t.r*t.a+e.r*e.a*(1-t.a))/i,r=(t.g*t.a+e.g*e.a*(1-t.a))/i,o=(t.b*t.a+e.b*e.a*(1-t.a))/i;return{r:a,g:r,b:o,a:i}},t.multiply=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:1;e.a*=n;var i=t.a+e.a-t.a*e.a,a=e.r*e.a,o=e.g*e.a,c=e.b*e.a,s=t.r*t.a,l=t.g*t.a,u=t.b*t.a,d=(a*s+a*(1-t.a)+s*(1-e.a))/i,r=(o*l+o*(1-t.a)+l*(1-e.a))/i,X=(c*u+c*(1-t.a)+u*(1-e.a))/i;return{r:d,g:r,b:X,a:i}},t.add=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:1;e.a*=r;var n=t.a+e.a-t.a*e.a,a=e.r*e.a,i=e.g*e.a,o=e.b*e.a,c=t.r*t.a,s=t.g*t.a,l=t.b*t.a;return{r:(a+c)/n,g:(i+s)/n,b:(o+l)/n,a:n}},t.screen=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:1;e.a*=n;var i=t.a+e.a-t.a*e.a,a=e.r*e.a,o=e.g*e.a,c=e.b*e.a,s=t.r*t.a,l=t.g*t.a,u=t.b*t.a,d=(a*t.a+s*e.a-a*s+a*(1-t.a)+s*(1-e.a))/i,r=(o*t.a+l*e.a-o*l+o*(1-t.a)+l*(1-e.a))/i,X=(c*t.a+u*e.a-c*u+c*(1-t.a)+u*(1-e.a))/i;return{r:d,g:r,b:X,a:i}},t.overlay=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:1;e.a*=n;var i=t.a+e.a-t.a*e.a,a=e.r*e.a,o=e.g*e.a,c=e.b*e.a,s=t.r*t.a,l=t.g*t.a,u=t.b*t.a,d=(2*s<=t.a?2*a*s+a*(1-t.a)+s*(1-e.a):a*(1+t.a)+s*(1+e.a)-2*s*a-t.a*e.a)/i,r=(2*l<=t.a?2*o*l+o*(1-t.a)+l*(1-e.a):o*(1+t.a)+l*(1+e.a)-2*l*o-t.a*e.a)/i,X=(2*u<=t.a?2*c*u+c*(1-t.a)+u*(1-e.a):c*(1+t.a)+u*(1+e.a)-2*u*c-t.a*e.a)/i;return{r:d,g:r,b:X,a:i}},t.darken=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:1;e.a*=n;var i=t.a+e.a-t.a*e.a,a=e.r*e.a,o=e.g*e.a,c=e.b*e.a,s=t.r*t.a,l=t.g*t.a,u=t.b*t.a,d=(_(a*t.a,s*e.a)+a*(1-t.a)+s*(1-e.a))/i,r=(_(o*t.a,l*e.a)+o*(1-t.a)+l*(1-e.a))/i,X=(_(c*t.a,u*e.a)+c*(1-t.a)+u*(1-e.a))/i;return{r:d,g:r,b:X,a:i}},t.lighten=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:1;e.a*=n;var i=t.a+e.a-t.a*e.a,a=e.r*e.a,o=e.g*e.a,c=e.b*e.a,s=t.r*t.a,l=t.g*t.a,u=t.b*t.a,d=(B(a*t.a,s*e.a)+a*(1-t.a)+s*(1-e.a))/i,r=(B(o*t.a,l*e.a)+o*(1-t.a)+l*(1-e.a))/i,X=(B(c*t.a,u*e.a)+c*(1-t.a)+u*(1-e.a))/i;return{r:d,g:r,b:X,a:i}},t.hardLight=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:1;e.a*=n;var i=t.a+e.a-t.a*e.a,a=e.r*e.a,o=e.g*e.a,c=e.b*e.a,s=t.r*t.a,l=t.g*t.a,u=t.b*t.a,d=(2*a<=e.a?2*a*s+a*(1-t.a)+s*(1-e.a):a*(1+t.a)+s*(1+e.a)-2*s*a-t.a*e.a)/i,r=(2*o<=e.a?2*o*l+o*(1-t.a)+l*(1-e.a):o*(1+t.a)+l*(1+e.a)-2*l*o-t.a*e.a)/i,X=(2*c<=e.a?2*c*u+c*(1-t.a)+u*(1-e.a):c*(1+t.a)+u*(1+e.a)-2*u*c-t.a*e.a)/i;return{r:d,g:r,b:X,a:i}},t.difference=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:1;e.a*=n;var i=t.a+e.a-t.a*e.a,a=e.r*e.a,o=e.g*e.a,c=e.b*e.a,s=t.r*t.a,l=t.g*t.a,u=t.b*t.a,d=(a+s-2*_(a*t.a,s*e.a))/i,r=(o+l-2*_(o*t.a,l*e.a))/i,X=(c+u-2*_(c*t.a,u*e.a))/i;return{r:d,g:r,b:X,a:i}},t.exclusion=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:1;e.a*=n;var i=t.a+e.a-t.a*e.a,a=e.r*e.a,o=e.g*e.a,c=e.b*e.a,s=t.r*t.a,l=t.g*t.a,u=t.b*t.a,d=(a*t.a+s*e.a-2*a*s+a*(1-t.a)+s*(1-e.a))/i,r=(o*t.a+l*e.a-2*o*l+o*(1-t.a)+l*(1-e.a))/i,X=(c*t.a+u*e.a-2*c*u+c*(1-t.a)+u*(1-e.a))/i;return{r:d,g:r,b:X,a:i}}},{}],28:[function(e,a,t){"use strict";var r=e("@babel/runtime/helpers/interopRequireWildcard");Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e,a,t){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{},c=4<arguments.length?arguments[4]:void 0;if("function"==typeof r&&(c=r,r={}),!(e instanceof this.constructor))return n.throwError.call(this,"The source must be a Jimp image",c);if("number"!=typeof a||"number"!=typeof t)return n.throwError.call(this,"x and y must be numbers",c);var s=r,l=s.mode,u=s.opacitySource,d=s.opacityDest;l||(l=i.BLEND_SOURCE_OVER),("number"!=typeof u||0>u||1<u)&&(u=1),("number"!=typeof d||0>d||1<d)&&(d=1);var X=o[l];a=C(a),t=C(t);var m=this;return 1!==d&&m.opacity(d),e.scanQuiet(0,0,e.bitmap.width,e.bitmap.height,function(e,r,n){var o=m.getPixelIndex(a+e,t+r,i.EDGE_CROP),c=X({r:this.bitmap.data[n+0]/255,g:this.bitmap.data[n+1]/255,b:this.bitmap.data[n+2]/255,a:this.bitmap.data[n+3]/255},{r:m.bitmap.data[o+0]/255,g:m.bitmap.data[o+1]/255,b:m.bitmap.data[o+2]/255,a:m.bitmap.data[o+3]/255},u);m.bitmap.data[o+0]=this.constructor.limit255(255*c.r),m.bitmap.data[o+1]=this.constructor.limit255(255*c.g),m.bitmap.data[o+2]=this.constructor.limit255(255*c.b),m.bitmap.data[o+3]=this.constructor.limit255(255*c.a)}),(0,n.isNodePattern)(c)&&c.call(this,null,this),this};var n=e("@jimp/utils"),i=r(e("../constants")),o=r(e("./composite-modes"));a.exports=t.default},{"../constants":29,"./composite-modes":27,"@babel/runtime/helpers/interopRequireWildcard":13,"@jimp/utils":68}],29:[function(e,a,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EDGE_CROP=t.EDGE_WRAP=t.EDGE_EXTEND=t.BLEND_EXCLUSION=t.BLEND_DIFFERENCE=t.BLEND_HARDLIGHT=t.BLEND_LIGHTEN=t.BLEND_DARKEN=t.BLEND_OVERLAY=t.BLEND_SCREEN=t.BLEND_ADD=t.BLEND_MULTIPLY=t.BLEND_DESTINATION_OVER=t.BLEND_SOURCE_OVER=t.VERTICAL_ALIGN_BOTTOM=t.VERTICAL_ALIGN_MIDDLE=t.VERTICAL_ALIGN_TOP=t.HORIZONTAL_ALIGN_RIGHT=t.HORIZONTAL_ALIGN_CENTER=t.HORIZONTAL_ALIGN_LEFT=t.AUTO=void 0;t.AUTO=-1;t.HORIZONTAL_ALIGN_LEFT=1;t.HORIZONTAL_ALIGN_CENTER=2;t.HORIZONTAL_ALIGN_RIGHT=4;t.VERTICAL_ALIGN_TOP=8;t.VERTICAL_ALIGN_MIDDLE=16;t.VERTICAL_ALIGN_BOTTOM=32;t.BLEND_SOURCE_OVER="srcOver";t.BLEND_DESTINATION_OVER="dstOver";t.BLEND_MULTIPLY="multiply";t.BLEND_ADD="add";t.BLEND_SCREEN="screen";t.BLEND_OVERLAY="overlay";t.BLEND_DARKEN="darken";t.BLEND_LIGHTEN="lighten";t.BLEND_HARDLIGHT="hardLight";t.BLEND_DIFFERENCE="difference";t.BLEND_EXCLUSION="exclusion";t.EDGE_EXTEND=1;t.EDGE_WRAP=2;t.EDGE_CROP=3},{}],30:[function(e,a,t){(function(a,r){"use strict";function n(){}function o(e){return-1<Object.prototype.toString.call(e).toLowerCase().indexOf("arraybuffer")}function c(e){for(var a=r.alloc(e.byteLength),t=new Uint8Array(e),n=0;n<a.length;++n)a[n]=t[n];return a}function s(e,a){(0,M["default"])(e,function(t,n,i){if(t)return a(t);if("headers"in n&&"location"in n.headers)return e.url=n.headers.location,s(e,a);if("object"===(0,T["default"])(i)&&r.isBuffer(i))return a(null,i);var o="Could not load Buffer from <"+e.url+"> (HTTP: "+n.statusCode+")";return new Error(o)})}function l(e,a){w["default"]&&"function"==typeof w["default"].readFile&&!e.match(/^(http|ftp)s?:\/\/./)?w["default"].readFile(e,a):s({url:e},a)}function u(e){return e&&"object"===(0,T["default"])(e)&&"number"==typeof e.width&&"number"==typeof e.height&&(r.isBuffer(e.data)||e.data instanceof Uint8Array||"function"==typeof Uint8ClampedArray&&e.data instanceof Uint8ClampedArray)&&(e.data.length===4*(e.width*e.height)||e.data.length===3*(e.width*e.height))}function d(e){if(0!=e.length%3)throw new Error("Buffer length is incorrect");for(var a=r.allocUnsafe(4*(e.length/3)),t=0,n=0;n<e.length;n++)a[t]=e[n],0==(n+1)%3&&(a[++t]=255),t++;return a}function X(e){var a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:$;Object.entries(e).forEach(function(e){var t=(0,h["default"])(e,2),r=t[0],n=t[1];a[r]=n})}function m(e){var a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:$;Object.entries(e).forEach(function(e){var t=(0,h["default"])(e,2),r=t[0],n=t[1];a.prototype[r]=n})}function P(e,a,t){var r=a.replace(/e$/,"")+"ed";$.prototype[e]=function(){for(var n=arguments.length,i=Array(n),o=0,c;o<n;o++)i[o]=arguments[o];var s=i[t.length-1],l=this;"function"==typeof s?(c=function(){for(var a=arguments.length,t=Array(a),n=0;n<a;n++)t[n]=arguments[n];var i=t[0],o=t[1];i?l.emitError(e,i):l.emitMulti(e,r,(0,k["default"])({},e,o)),s.apply(this,t)},i[i.length-1]=c):c=!1,this.emitMulti(e,"before-"+a);var u;try{u=t.apply(this,i),c||this.emitMulti(e,r,(0,k["default"])({},e,u))}catch(a){a.methodName=e,this.emitError(e,a)}return u},$.prototype[e+"Quiet"]=t}function K(e,a){P(e,"change",a)}var g=e("@babel/runtime/helpers/interopRequireWildcard"),p=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(t,"__esModule",{value:!0}),t.addConstants=X,t.addJimpMethods=m,t.jimpEvMethod=P,t.jimpEvChange=K,Object.defineProperty(t,"addType",{enumerable:!0,get:function(){return j.addType}}),t["default"]=void 0;for(var f=p(e("@babel/runtime/helpers/construct")),h=p(e("@babel/runtime/helpers/slicedToArray")),y=p(e("@babel/runtime/helpers/classCallCheck")),b=p(e("@babel/runtime/helpers/createClass")),x=p(e("@babel/runtime/helpers/possibleConstructorReturn")),W=p(e("@babel/runtime/helpers/getPrototypeOf")),N=p(e("@babel/runtime/helpers/assertThisInitialized")),O=p(e("@babel/runtime/helpers/inherits")),k=p(e("@babel/runtime/helpers/defineProperty")),T=p(e("@babel/runtime/helpers/typeof")),w=p(e("fs")),S=p(e("path")),U=p(e("events")),R=e("@jimp/utils"),Y=p(e("any-base")),I=p(e("mkdirp")),E=p(e("pixelmatch")),L=p(e("tinycolor2")),D=p(e("./modules/phash")),M=p(e("./request")),F=p(e("./composite")),z=p(e("./utils/promisify")),j=g(e("./utils/mime")),V=e("./utils/image-bitmap"),q=g(e("./constants")),G="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_",H=[NaN,NaN],J=2,Z;65>J;J++)Z=(0,Y["default"])(Y["default"].BIN,G.slice(0,J))(Array(65).join("1")),H.push(Z.length);var Q={data:null,width:null,height:null},$=function(e){function a(){function e(){for(var e=arguments.length,a=Array(e),t=0;t<e;t++)a[t]=arguments[t];var r=a[0];(r||{}).methodName="constructor",setTimeout(function(){var e;r&&K===n?P.emitError("constructor",r):!r&&P.emitMulti("constructor","initialized"),(e=K).call.apply(e,[P].concat(a))},1)}for(var t=arguments.length,i=Array(t),X=0,m;X<t;X++)i[X]=arguments[X];(0,y["default"])(this,a),m=(0,x["default"])(this,(0,W["default"])(a).call(this)),(0,k["default"])((0,N["default"])(m),"bitmap",Q),(0,k["default"])((0,N["default"])(m),"_background",0),(0,k["default"])((0,N["default"])(m),"_originalMime",a.MIME_PNG),(0,k["default"])((0,N["default"])(m),"_exif",null),(0,k["default"])((0,N["default"])(m),"_rgba",!0),(0,k["default"])((0,N["default"])(m),"writeAsync",function(e){return(0,z["default"])(m.write,(0,N["default"])(m),e)}),(0,k["default"])((0,N["default"])(m),"getBase64Async",function(e){return(0,z["default"])(m.getBase64,(0,N["default"])(m),e)}),(0,k["default"])((0,N["default"])(m),"getBuffer",V.getBuffer),(0,k["default"])((0,N["default"])(m),"getBufferAsync",V.getBufferAsync),(0,k["default"])((0,N["default"])(m),"getPixelColour",m.getPixelColor),(0,k["default"])((0,N["default"])(m),"setPixelColour",m.setPixelColor);var P=(0,N["default"])(m),K=n;if(o(i[0])&&(i[0]=c(i[0])),"number"==typeof i[0]&&"number"==typeof i[1]||parseInt(i[0],10)&&parseInt(i[1],10)){var g=parseInt(i[0],10),p=parseInt(i[1],10);if(K=i[2],"number"==typeof i[2]&&(m._background=i[2],K=i[3]),"string"==typeof i[2]&&(m._background=a.cssColorToHex(i[2]),K=i[3]),"undefined"==typeof K&&(K=n),"function"!=typeof K)return(0,x["default"])(m,R.throwError.call((0,N["default"])(m),"cb must be a function",e));m.bitmap={data:r.alloc(4*(g*p)),width:g,height:p};for(var f=0;f<m.bitmap.data.length;f+=4)m.bitmap.data.writeUInt32BE(m._background,f);e(null,(0,N["default"])(m))}else if("object"===(0,T["default"])(i[0])&&i[0].url){if(K=i[1]||n,"function"!=typeof K)return(0,x["default"])(m,R.throwError.call((0,N["default"])(m),"cb must be a function",e));s(i[0],function(a,t){return a?R.throwError.call((0,N["default"])(m),a,e):void m.parseBitmap(t,i[0].url,e)})}else if(i[0]instanceof a){var h=i[0];if(K=i[1],"undefined"==typeof K&&(K=n),"function"!=typeof K)return(0,x["default"])(m,R.throwError.call((0,N["default"])(m),"cb must be a function",e));m.bitmap={data:r.from(h.bitmap.data),width:h.bitmap.width,height:h.bitmap.height},m._quality=h._quality,m._deflateLevel=h._deflateLevel,m._deflateStrategy=h._deflateStrategy,m._filterType=h._filterType,m._rgba=h._rgba,m._background=h._background,m._originalMime=h._originalMime,e(null,(0,N["default"])(m))}else if(u(i[0])){var b=i[0];K=i[1]||n;var A=4*(b.width*b.height)===b.data.length,v=A?r.from(b.data):d(b.data);m.bitmap={data:v,width:b.width,height:b.height},e(null,(0,N["default"])(m))}else if("string"==typeof i[0]){var C=i[0];if(K=i[1],"undefined"==typeof K&&(K=n),"function"!=typeof K)return(0,x["default"])(m,R.throwError.call((0,N["default"])(m),"cb must be a function",e));l(C,function(a,t){return a?R.throwError.call((0,N["default"])(m),a,e):void m.parseBitmap(t,C,e)})}else if("object"===(0,T["default"])(i[0])&&r.isBuffer(i[0])){var B=i[0];if(K=i[1],"function"!=typeof K)return(0,x["default"])(m,R.throwError.call((0,N["default"])(m),"cb must be a function",e));m.parseBitmap(B,null,e)}else{K=i[i.length-1],"function"!=typeof K&&(K=i[i.length-2],"function"!=typeof K&&(K=n));var _=a.__extraConstructors.find(function(e){return e.test.apply(e,i)});if(_)new Promise(function(e,a){var t;return(t=_.run).call.apply(t,[(0,N["default"])(m),e,a].concat(i))}).then(function(){return e(null,(0,N["default"])(m))})["catch"](e);else return(0,x["default"])(m,R.throwError.call((0,N["default"])(m),"No matching constructor overloading was found. Please see the docs for how to call the Jimp constructor.",e))}return m}return(0,O["default"])(a,e),(0,b["default"])(a,[{key:"parseBitmap",value:function(e,a,t){V.parseBitmap.call(this,e,null,t)}},{key:"rgba",value:function(e,a){return"boolean"==typeof e?(this._rgba=e,(0,R.isNodePattern)(a)&&a.call(this,null,this),this):R.throwError.call(this,"bool must be a boolean, true for RGBA or false for RGB",a)}},{key:"emitMulti",value:function(e,a){var t=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};t=Object.assign(t,{methodName:e,eventName:a}),this.emit("any",t),e&&this.emit(e,t),this.emit(a,t)}},{key:"emitError",value:function(e,a){this.emitMulti(e,"error",a)}},{key:"getHeight",value:function(){return this.bitmap.height}},{key:"getWidth",value:function(){return this.bitmap.width}},{key:"inspect",value:function(){return"<Jimp "+(this.bitmap===Q?"pending...":this.bitmap.width+"x"+this.bitmap.height)+">"}},{key:"toString",value:function(){return"[object Jimp]"}},{key:"getMIME",value:function(){var e=this._originalMime||a.MIME_PNG;return e}},{key:"getExtension",value:function(){var e=this.getMIME();return j.getExtension(e)}},{key:"write",value:function(e,a){var t=this;if(!w["default"]||!w["default"].createWriteStream)throw new Error("Cant access the filesystem. You can use the getBase64 method.");if("string"!=typeof e)return R.throwError.call(this,"path must be a string",a);if("undefined"==typeof a&&(a=n),"function"!=typeof a)return R.throwError.call(this,"cb must be a function",a);var r=j.getType(e)||this.getMIME(),i=S["default"].parse(e);return i.dir&&I["default"].sync(i.dir),this.getBuffer(r,function(r,n){if(r)return R.throwError.call(t,r,a);var i=w["default"].createWriteStream(e);i.on("open",function(){i.write(n),i.end()}).on("error",function(e){return R.throwError.call(t,e,a)}),i.on("finish",function(){a.call(t,null,t)})}),this}},{key:"getBase64",value:function(e,t){return(e===a.AUTO&&(e=this.getMIME()),"string"!=typeof e)?R.throwError.call(this,"mime must be a string",t):"function"==typeof t?(this.getBuffer(e,function(a,r){if(a)return R.throwError.call(this,a,t);var n="data:"+e+";base64,"+r.toString("base64");t.call(this,null,n)}),this):R.throwError.call(this,"cb must be a function",t)}},{key:"hash",value:function e(a,t){if(a=a||64,"function"==typeof a&&(t=a,a=64),"number"!=typeof a)return R.throwError.call(this,"base must be a number",t);if(2>a||64<a)return R.throwError.call(this,"base must be a number between 2 and 64",t);var e=this.pHash();for(e=(0,Y["default"])(Y["default"].BIN,G.slice(0,a))(e);e.length<H[a];)e="0"+e;return(0,R.isNodePattern)(t)&&t.call(this,null,e),e}},{key:"pHash",value:function e(){var e=new D["default"];return e.getHash(this)}},{key:"distanceFromHash",value:function(e){var a=new D["default"],t=a.getHash(this);return a.distance(t,e)}},{key:"getPixelIndex",value:function(e,t,r,n){var o,c;if("function"==typeof r&&"undefined"==typeof n&&(n=r,r=null),r||(r=a.EDGE_EXTEND),"number"!=typeof e||"number"!=typeof t)return R.throwError.call(this,"x and y must be numbers",n);e=C(e),t=C(t),o=e,c=t,r===a.EDGE_EXTEND&&(0>e&&(o=0),e>=this.bitmap.width&&(o=this.bitmap.width-1),0>t&&(c=0),t>=this.bitmap.height&&(c=this.bitmap.height-1)),r===a.EDGE_WRAP&&(0>e&&(o=this.bitmap.width+e),e>=this.bitmap.width&&(o=e%this.bitmap.width),0>t&&(o=this.bitmap.height+t),t>=this.bitmap.height&&(c=t%this.bitmap.height));var s=this.bitmap.width*c+o<<2;return(0>o||o>=this.bitmap.width)&&(s=-1),(0>c||c>=this.bitmap.height)&&(s=-1),(0,R.isNodePattern)(n)&&n.call(this,null,s),s}},{key:"getPixelColor",value:function(e,a,t){if("number"!=typeof e||"number"!=typeof a)return R.throwError.call(this,"x and y must be numbers",t);e=C(e),a=C(a);var r=this.getPixelIndex(e,a),n=this.bitmap.data.readUInt32BE(r);return(0,R.isNodePattern)(t)&&t.call(this,null,n),n}},{key:"setPixelColor",value:function(e,a,t,r){if("number"!=typeof e||"number"!=typeof a||"number"!=typeof t)return R.throwError.call(this,"hex, x and y must be numbers",r);a=C(a),t=C(t);var n=this.getPixelIndex(a,t);return this.bitmap.data.writeUInt32BE(e,n),(0,R.isNodePattern)(r)&&r.call(this,null,this),this}},{key:"hasAlpha",value:function(){for(var e=0;e<this.bitmap.height;e++)for(var a=0;a<this.bitmap.width;a++){var t=this.bitmap.width*e+a<<2,r=this.bitmap.data[t+3];if(255!==r)return!0}return!1}},{key:"scanIterator",value:function(e,a,t,r){return"number"!=typeof e||"number"!=typeof a?R.throwError.call(this,"x and y must be numbers"):"number"!=typeof t||"number"!=typeof r?R.throwError.call(this,"w and h must be numbers"):(0,R.scanIterator)(this,e,a,t,r)}}]),a}(U["default"]);if(X(q),m({composite:F["default"]}),$.__extraConstructors=[],$.appendConstructorOption=function(e,a,t){$.__extraConstructors.push({name:e,test:a,run:t})},$.read=function(){for(var e=arguments.length,a=Array(e),t=0;t<e;t++)a[t]=arguments[t];return new Promise(function(e,t){(0,f["default"])($,a.concat([function(a,r){a?t(a):e(r)}]))})},$.create=$.read,$.rgbaToInt=function(e,t,n,o,c){if("number"!=typeof e||"number"!=typeof t||"number"!=typeof n||"number"!=typeof o)return R.throwError.call(this,"r, g, b and a must be numbers",c);if(0>e||255<e)return R.throwError.call(this,"r must be between 0 and 255",c);if((0>t||255<t)&&R.throwError.call(this,"g must be between 0 and 255",c),0>n||255<n)return R.throwError.call(this,"b must be between 0 and 255",c);if(0>o||255<o)return R.throwError.call(this,"a must be between 0 and 255",c);e=C(e),n=C(n),t=C(t),o=C(o);var s=e*v(256,3)+t*v(256,2)+n*v(256,1)+o*v(256,0);return(0,R.isNodePattern)(c)&&c.call(this,null,s),s},$.intToRGBA=function(e,a){if("number"!=typeof e)return R.throwError.call(this,"i must be a number",a);var t={};return t.r=A(e/v(256,3)),t.g=A((e-t.r*v(256,3))/v(256,2)),t.b=A((e-t.r*v(256,3)-t.g*v(256,2))/v(256,1)),t.a=A((e-t.r*v(256,3)-t.g*v(256,2)-t.b*v(256,1))/v(256,0)),(0,R.isNodePattern)(a)&&a.call(this,null,t),t},$.cssColorToHex=function(e){return e=e||0,"number"==typeof e?+e:parseInt((0,L["default"])(e).toHex8(),16)},$.limit255=function(e){return e=B(e,0),e=_(e,255),e},$.diff=function(e,a){var t=2<arguments.length&&void 0!==arguments[2]?arguments[2]:.1;if(!(e instanceof $)||!(a instanceof $))return R.throwError.call(this,"img1 and img2 must be an Jimp images");var r=e.bitmap,n=a.bitmap;if((r.width!==n.width||r.height!==n.height)&&(r.width*r.height>n.width*n.height?e=e.cloneQuiet().resize(n.width,n.height):a=a.cloneQuiet().resize(r.width,r.height)),"number"!=typeof t||0>t||1<t)return R.throwError.call(this,"threshold must be a number between 0 and 1");var i=new $(r.width,r.height,4294967295),o=(0,E["default"])(r.data,n.data,i.bitmap.data,i.bitmap.width,i.bitmap.height,{threshold:t});return{percent:o/(i.bitmap.width*i.bitmap.height),image:i}},$.distance=function(e,a){var t=new D["default"],r=t.getHash(e),n=t.getHash(a);return t.distance(r,n)},$.compareHashes=function(e,a){var t=new D["default"];return t.distance(e,a)},$.colorDiff=function(e,a){var t=function(e){return v(e,2)},r=B;return 0===e.a||e.a||(e.a=255),0===a.a||a.a||(a.a=255),(r(t(e.r-a.r),t(e.r-a.r-e.a+a.a))+r(t(e.g-a.g),t(e.g-a.g-e.a+a.a))+r(t(e.b-a.b),t(e.b-a.b-e.a+a.a)))/195075},P("clone","clone",function(e){var a=new $(this);return(0,R.isNodePattern)(e)&&e.call(a,null,a),a}),K("background",function(e,a){return"number"==typeof e?(this._background=e,(0,R.isNodePattern)(a)&&a.call(this,null,this),this):R.throwError.call(this,"hex must be a hexadecimal rgba value",a)}),K("scan",function(e,a,t,r,n,i){if("number"!=typeof e||"number"!=typeof a)return R.throwError.call(this,"x and y must be numbers",i);if("number"!=typeof t||"number"!=typeof r)return R.throwError.call(this,"w and h must be numbers",i);if("function"!=typeof n)return R.throwError.call(this,"f must be a function",i);var o=(0,R.scan)(this,e,a,t,r,n);return(0,R.isNodePattern)(i)&&i.call(this,null,o),o}),"BROWSER"===a.env.ENVIRONMENT){var ee;"undefined"!=typeof window&&"object"===("undefined"==typeof window?"undefined":(0,T["default"])(window))&&(ee=window),"undefined"!=typeof self&&"object"===("undefined"==typeof self?"undefined":(0,T["default"])(self))&&(ee=self),ee.Jimp=$,ee.Buffer=r}t["default"]=$}).call(this,e("_process"),e("buffer").Buffer)},{"./composite":28,"./constants":29,"./modules/phash":31,"./request":32,"./utils/image-bitmap":33,"./utils/mime":34,"./utils/promisify":35,"@babel/runtime/helpers/assertThisInitialized":4,"@babel/runtime/helpers/classCallCheck":5,"@babel/runtime/helpers/construct":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/defineProperty":8,"@babel/runtime/helpers/getPrototypeOf":10,"@babel/runtime/helpers/inherits":11,"@babel/runtime/helpers/interopRequireDefault":12,"@babel/runtime/helpers/interopRequireWildcard":13,"@babel/runtime/helpers/possibleConstructorReturn":19,"@babel/runtime/helpers/slicedToArray":21,"@babel/runtime/helpers/typeof":23,"@jimp/utils":68,_process:116,"any-base":69,buffer:119,events:295,fs:114,mkdirp:340,path:371,pixelmatch:374,tinycolor2:464}],31:[function(e,a){"use strict";function t(e,a){this.size=this.size||e,this.smallerSize=this.smallerSize||a,n(this.size)}function r(e){var a={};return a.r=A(e/v(256,3)),a.g=A((e-a.r*v(256,3))/v(256,2)),a.b=A((e-a.r*v(256,3)-a.g*v(256,2))/v(256,1)),a.a=A((e-a.r*v(256,3)-a.g*v(256,2)-a.b*v(256,1))/v(256,0)),a}function n(e){for(var a=1;a<e;a++)o[a]=1;o[0]=1/h(2)}function i(e,a){for(var t=a,r=[],n=0;n<t;n++){r[n]=[];for(var c=0,s;c<t;c++){s=0;for(var l=0;l<t;l++)for(var d=0;d<t;d++)s+=g((2*l+1)/(2*t)*n*p)*g((2*d+1)/(2*t)*c*p)*e[l][d];s*=o[n]*o[c]/4,r[n][c]=s}}return r}t.prototype.size=32,t.prototype.smallerSize=8,t.prototype.distance=function(e,a){for(var t=0,r=0;r<e.length;r++)e[r]!==a[r]&&t++;return t/e.length},t.prototype.getHash=function(e){e=e.clone().resize(this.size,this.size),e.grayscale();for(var a=[],t=0;t<e.bitmap.width;t++){a[t]=[];for(var n=0;n<e.bitmap.height;n++)a[t][n]=r(e.getPixelColor(t,n)).b}for(var o=i(a,this.size),c=0,s=0;s<this.smallerSize;s++)for(var l=0;l<this.smallerSize;l++)c+=o[s][l];for(var u=c/(this.smallerSize*this.smallerSize),d="",X=0;X<this.smallerSize;X++)for(var m=0;m<this.smallerSize;m++)d+=o[X][m]>u?"1":"0";return d};var o=[];a.exports=t},{}],32:[function(e,a){(function(t,r){"use strict";function n(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);a&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),t.push.apply(t,r)}return t}function i(e){for(var a=1,t;a<arguments.length;a++)t=null==arguments[a]?{}:arguments[a],a%2?n(t,!0).forEach(function(a){(0,c["default"])(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):n(t).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))});return e}var o=e("@babel/runtime/helpers/interopRequireDefault"),c=o(e("@babel/runtime/helpers/defineProperty")),s=o(e("@babel/runtime/helpers/extends"));a.exports=t.browser||"BROWSER"===t.env.ENVIRONMENT||"undefined"!=typeof t.versions.electron&&"renderer"===t.type&&"function"==typeof XMLHttpRequest?function(e,a){var t=new XMLHttpRequest;t.open("GET",e.url,!0),t.responseType="arraybuffer",t.addEventListener("load",function(){if(400>t.status)try{var n=r.from(this.response);a(null,t,n)}catch(t){return a(new Error("Response is not a buffer for url "+e.url+". Error: "+t.message))}else a(new Error("HTTP Status "+t.status+" for url "+e.url))}),t.addEventListener("error",function(t){a(t)}),t.send()}:function(a,t){var r=(0,s["default"])({},a),n=e("phin");n(i({compression:!0},r),function(e,a){null===e?t(null,a,a.body):t(e)})}}).call(this,e("_process"),e("buffer").Buffer)},{"@babel/runtime/helpers/defineProperty":8,"@babel/runtime/helpers/extends":9,"@babel/runtime/helpers/interopRequireDefault":12,_process:116,buffer:119,phin:373}],33:[function(e,a,t){(function(a){"use strict";function r(e,a){var t=(0,m["default"])(e);return t?t.mime:a?p.getType(a):null}function n(e){return e._exif&&e._exif.tags&&e._exif.tags.Orientation||1}function i(e){var a=e.getWidth(),t=e.getHeight();switch(n(e)){case 1:return null;case 2:return function(e,t){return[a-e-1,t]};case 3:return function(e,r){return[a-e-1,t-r-1]};case 4:return function(e,a){return[e,t-a-1]};case 5:return function(e,a){return[a,e]};case 6:return function(e,a){return[a,t-e-1]};case 7:return function(e,r){return[a-r-1,t-e-1]};case 8:return function(e,t){return[a-t-1,e]};default:return null;}}function o(e,t,r,n){for(var i=e.bitmap.data,o=e.bitmap.width,c=a.alloc(i.length),s=0;s<t;s++)for(var l=0;l<r;l++){var u=n(s,l),d=(0,X["default"])(u,2),m=d[0],P=d[1],K=t*l+s<<2,g=i.readUInt32BE(o*P+m<<2);c.writeUInt32BE(g,K)}e.bitmap.data=c,e.bitmap.width=t,e.bitmap.height=r}function c(e){if(!(2>n(e))){var a=i(e),t=4<n(e),r=t?e.bitmap.height:e.bitmap.width,c=t?e.bitmap.width:e.bitmap.height;o(e,r,c,a)}}function s(e,a){return new e(a.bitmap.width,a.bitmap.height,a._background).composite(a,0,0).bitmap}function l(e,t){if(e===g.AUTO&&(e=this.getMIME()),"string"!=typeof e)return K.throwError.call(this,"mime must be a string",t);if("function"!=typeof t)return K.throwError.call(this,"cb must be a function",t);if(e=e.toLowerCase(),this.bitmap.data=this._rgba&&this.constructor.hasAlpha[e]?a.from(this.bitmap.data):s(this.constructor,this).data,this.constructor.encoders[e]){var r=this.constructor.encoders[e](this);t.call(this,null,r)}else t.call(this,"Unsupported MIME type: "+e);return this}var u=e("@babel/runtime/helpers/interopRequireWildcard"),d=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(t,"__esModule",{value:!0}),t.parseBitmap=function(e,a,t){var n=r(e,a);if("string"!=typeof n)return t(new Error("Could not find MIME for Buffer <"+a+">"));this._originalMime=n.toLowerCase();try{var i=this.getMIME();if(this.constructor.decoders[i])this.bitmap=this.constructor.decoders[i](e);else return K.throwError.call(this,"Unsupported MIME type: "+i,t)}catch(e){return t.call(this,e,this)}try{this._exif=P["default"].create(e).parse(),c(this)}catch(e){}return t.call(this,null,this),this},t.getBuffer=l,t.getBufferAsync=function(e){return(0,f["default"])(l,this,e)};var X=d(e("@babel/runtime/helpers/slicedToArray")),m=d(e("file-type")),P=d(e("exif-parser")),K=e("@jimp/utils"),g=u(e("../constants")),p=u(e("./mime")),f=d(e("./promisify"))}).call(this,e("buffer").Buffer)},{"../constants":29,"./mime":34,"./promisify":35,"@babel/runtime/helpers/interopRequireDefault":12,"@babel/runtime/helpers/interopRequireWildcard":13,"@babel/runtime/helpers/slicedToArray":21,"@jimp/utils":68,buffer:119,"exif-parser":296,"file-type":305}],34:[function(e,a,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getExtension=t.getType=t.addType=void 0;var r={},n=function(e){return Object.entries(r).find(function(a){return a[1].includes(e)})||[]};t.addType=function(e,a){r[e]=a};t.getType=function(e){var a=e.split("/").slice(-1),t=a[a.length-1].split(".").pop(),r=n(t);return r[0]};t.getExtension=function(e){return(r[e.toLowerCase()]||[])[0]}},{}],35:[function(e,a,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;t["default"]=function(e,a){for(var t=arguments.length,r=Array(2<t?t-2:0),n=2;n<t;n++)r[n-2]=arguments[n];return new Promise(function(t,n){r.push(function(e,a){e&&n(e),t(a)}),e.bind(a).apply(void 0,r)})},a.exports=t.default},{}],36:[function(e,a,t){"use strict";function r(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);a&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),t.push.apply(t,r)}return t}function n(e){for(var a=1,t;a<arguments.length;a++)t=null==arguments[a]?{}:arguments[a],a%2?r(t,!0).forEach(function(a){(0,s["default"])(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):r(t).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))});return e}var i=e("@babel/runtime/helpers/interopRequireWildcard"),o=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){function a(e){Object.entries(e).forEach(function(e){var a=(0,l["default"])(e,2),t=a[0],i=a[1];r[t]=n({},r[t],{},i)})}var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:u["default"],r={hasAlpha:{},encoders:{},decoders:{},class:{},constants:{}};return e.types&&(e.types.forEach(function(e){var t=e();Array.isArray(t.mime)?u.addType.apply(void 0,(0,c["default"])(t.mime)):Object.entries(t.mime).forEach(function(e){return u.addType.apply(void 0,(0,c["default"])(e))}),delete t.mime,a(t)}),t.decoders=n({},t.decoders,{},r.decoders),t.encoders=n({},t.encoders,{},r.encoders),t.hasAlpha=n({},t.hasAlpha,{},r.hasAlpha)),e.plugins&&e.plugins.forEach(function(e){var t=e(u.jimpEvChange)||{};t["class"]||t.constants?a(t):a({class:t})}),(0,u.addJimpMethods)(r["class"],t),(0,u.addConstants)(r.constants,t),u["default"]};var c=o(e("@babel/runtime/helpers/toConsumableArray")),s=o(e("@babel/runtime/helpers/defineProperty")),l=o(e("@babel/runtime/helpers/slicedToArray")),u=i(e("@jimp/core"));a.exports=t.default},{"@babel/runtime/helpers/defineProperty":8,"@babel/runtime/helpers/interopRequireDefault":12,"@babel/runtime/helpers/interopRequireWildcard":13,"@babel/runtime/helpers/slicedToArray":21,"@babel/runtime/helpers/toConsumableArray":22,"@jimp/core":30}],37:[function(e,a,t){(function(r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var i=n(e("@babel/runtime/helpers/defineProperty")),o=n(e("omggif")),c=e("gifwrap"),s="image/gif";t["default"]=function(){return{mime:(0,i["default"])({},s,["gif"]),constants:{MIME_GIF:s},decoders:(0,i["default"])({},s,function(e){var a=new o["default"].GifReader(e),t=r.alloc(4*(a.width*a.height));return a.decodeAndBlitFrameRGBA(0,t),{data:t,width:a.width,height:a.height}}),encoders:(0,i["default"])({},s,function(e){var a=new c.BitmapImage(e.bitmap);c.GifUtil.quantizeDekker(a,256);var t=new c.GifFrame(a),r=new c.GifCodec;return r.encodeGif([t],{}).then(function(e){return e.buffer})})}},a.exports=t.default}).call(this,e("buffer").Buffer)},{"@babel/runtime/helpers/defineProperty":8,"@babel/runtime/helpers/interopRequireDefault":12,buffer:119,gifwrap:314,omggif:349}],38:[function(e,a,t){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var n=r(e("@babel/runtime/helpers/defineProperty")),i=r(e("jpeg-js")),o=e("@jimp/utils"),c="image/jpeg";t["default"]=function(){return{mime:(0,n["default"])({},c,["jpeg","jpg","jpe"]),constants:{MIME_JPEG:c},decoders:(0,n["default"])({},c,i["default"].decode),encoders:(0,n["default"])({},c,function(e){return i["default"].encode(e.bitmap,e._quality).data}),class:{_quality:100,quality:function(e,a){return"number"==typeof e?0>e||100<e?o.throwError.call(this,"n must be a number 0 - 100",a):(this._quality=C(e),(0,o.isNodePattern)(a)&&a.call(this,null,this),this):o.throwError.call(this,"n must be a number",a)}}}},a.exports=t.default},{"@babel/runtime/helpers/defineProperty":8,"@babel/runtime/helpers/interopRequireDefault":12,"@jimp/utils":68,"jpeg-js":330}],39:[function(e,a,t){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var n=r(e("@babel/runtime/helpers/typeof")),i=e("@jimp/utils");t["default"]=function(){return{blit:function(e,a,t,r,o,c,s,l){if(!(e instanceof this.constructor))return i.throwError.call(this,"The source must be a Jimp image",l);if("number"!=typeof a||"number"!=typeof t)return i.throwError.call(this,"x and y must be numbers",l);if("function"==typeof r)l=r,r=0,o=0,c=e.bitmap.width,s=e.bitmap.height;else if((0,n["default"])(r)===(0,n["default"])(o)&&(0,n["default"])(o)===(0,n["default"])(c)&&(0,n["default"])(c)===(0,n["default"])(s))r=r||0,o=o||0,c=c||e.bitmap.width,s=s||e.bitmap.height;else return i.throwError.call(this,"srcx, srcy, srcw, srch must be numbers",l);a=C(a),t=C(t),r=C(r),o=C(o),c=C(c),s=C(s);var u=this.bitmap.width,d=this.bitmap.height,X=this;return e.scanQuiet(r,o,c,s,function(e,n,i){var c=a+e-r,s=t+n-o;if(0<=c&&0<=s&&0<u-c&&0<d-s){var l=X.getPixelIndex(c,s),m={r:this.bitmap.data[i],g:this.bitmap.data[i+1],b:this.bitmap.data[i+2],a:this.bitmap.data[i+3]},P={r:X.bitmap.data[l],g:X.bitmap.data[l+1],b:X.bitmap.data[l+2],a:X.bitmap.data[l+3]};X.bitmap.data[l]=(m.a*(m.r-P.r)-P.r+255>>8)+P.r,X.bitmap.data[l+1]=(m.a*(m.g-P.g)-P.g+255>>8)+P.g,X.bitmap.data[l+2]=(m.a*(m.b-P.b)-P.b+255>>8)+P.b,X.bitmap.data[l+3]=this.constructor.limit255(P.a+m.a)}}),(0,i.isNodePattern)(l)&&l.call(this,null,this),this}}},a.exports=t.default},{"@babel/runtime/helpers/interopRequireDefault":12,"@babel/runtime/helpers/typeof":23,"@jimp/utils":68}],40:[function(e,a,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shgTable=t.mulTable=void 0;t.mulTable=[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];t.shgTable=[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]},{}],41:[function(e,a,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var n=e("@jimp/utils"),o=e("./blur-tables");t["default"]=function(){return{blur:function(e,a){if("number"!=typeof e)return n.throwError.call(this,"r must be a number",a);if(1>e)return n.throwError.call(this,"r must be greater than 0",a);for(var t=this.bitmap.width-1,r=this.bitmap.height-1,c=e+1,s=o.mulTable[e],l=o.shgTable[e],u=[],d=[],X=[],m=[],P=[],K=[],g=2,f,h,b,A,v,C,B,_,W,N,O,k,T,w;0<g--;){for(k=0,T=0,C=0;C<this.bitmap.height;C++){for(f=this.bitmap.data[T]*c,h=this.bitmap.data[T+1]*c,b=this.bitmap.data[T+2]*c,A=this.bitmap.data[T+3]*c,B=1;B<=e;B++)_=T+((B>t?t:B)<<2),f+=this.bitmap.data[_++],h+=this.bitmap.data[_++],b+=this.bitmap.data[_++],A+=this.bitmap.data[_];for(v=0;v<this.bitmap.width;v++)u[k]=f,d[k]=h,X[k]=b,m[k]=A,0===C&&(P[v]=((_=v+c)<t?_:t)<<2,K[v]=0<(_=v-e)?_<<2:0),W=T+P[v],N=T+K[v],f+=this.bitmap.data[W++]-this.bitmap.data[N++],h+=this.bitmap.data[W++]-this.bitmap.data[N++],b+=this.bitmap.data[W++]-this.bitmap.data[N++],A+=this.bitmap.data[W]-this.bitmap.data[N],k++;T+=this.bitmap.width<<2}for(v=0;v<this.bitmap.width;v++){for(O=v,f=u[O]*c,h=d[O]*c,b=X[O]*c,A=m[O]*c,B=1;B<=e;B++)O+=B>r?0:this.bitmap.width,f+=u[O],h+=d[O],b+=X[O],A+=m[O];for(k=v<<2,C=0;C<this.bitmap.height;C++)w=A*s>>>l,this.bitmap.data[k+3]=w,255<w&&(this.bitmap.data[k+3]=255),0<w?(w=255/w,this.bitmap.data[k]=(f*s>>>l)*w,this.bitmap.data[k+1]=(h*s>>>l)*w,this.bitmap.data[k+2]=(b*s>>>l)*w):(this.bitmap.data[k+2]=0,this.bitmap.data[k+1]=0,this.bitmap.data[k]=0),0===v&&(P[C]=((_=C+c)<r?_:r)*this.bitmap.width,K[C]=0<(_=C-e)?_*this.bitmap.width:0),W=v+P[C],N=v+K[C],f+=u[W]-u[N],h+=d[W]-d[N],b+=X[W]-X[N],A+=m[W]-m[N],k+=this.bitmap.width<<2}}return(0,n.isNodePattern)(a)&&a.call(this,null,this),this}}},a.exports=t.default},{"./blur-tables":40,"@jimp/utils":68}],42:[function(e,a,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var r=e("@jimp/utils");t["default"]=function(){return{circle:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},a=1<arguments.length?arguments[1]:void 0;"function"==typeof e&&(a=e,e={});var t=e.radius||(this.bitmap.width>this.bitmap.height?this.bitmap.height:this.bitmap.width)/2,n={x:"number"==typeof e.x?e.x:this.bitmap.width/2,y:"number"==typeof e.y?e.y:this.bitmap.height/2};return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(e,a,r){var i=h(v(e-n.x,2)+v(a-n.y,2));0>=t-i?this.bitmap.data[r+3]=0:1>t-i&&(this.bitmap.data[r+3]=255*(t-i))}),(0,r.isNodePattern)(a)&&a.call(this,null,this),this}}},a.exports=t.default},{"@jimp/utils":68}],43:[function(e,a,t){(function(r){"use strict";function n(e,a,t,r){for(var n=[0,0,0],i=(a.length-1)/2,o=0;o<a.length;o+=1)for(var c=0,s;c<a[o].length;c+=1)s=e.getPixelIndex(t+o-i,r+c-i),n[0]+=e.bitmap.data[s]*a[o][c],n[1]+=e.bitmap.data[s+1]*a[o][c],n[2]+=e.bitmap.data[s+2]*a[o][c];return n}function i(e){return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(e,a,t){var r=parseInt(.2126*this.bitmap.data[t]+.7152*this.bitmap.data[t+1]+.0722*this.bitmap.data[t+2],10);this.bitmap.data[t]=r,this.bitmap.data[t+1]=r,this.bitmap.data[t+2]=r}),(0,d.isNodePattern)(e)&&e.call(this,null,this),this}function o(e,a){var t=2<arguments.length&&arguments[2]!==void 0?arguments[2]:50;return{r:(a.r-e.r)*(t/100)+e.r,g:(a.g-e.g)*(t/100)+e.g,b:(a.b-e.b)*(t/100)+e.b}}function c(e,a){var t=this;return e&&Array.isArray(e)?(e=e.map(function(e){return("xor"===e.apply||"mix"===e.apply)&&(e.params[0]=(0,u["default"])(e.params[0]).toRgb()),e}),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(r,n,i){var c={r:t.bitmap.data[i],g:t.bitmap.data[i+1],b:t.bitmap.data[i+2]},s=function(e,a){return t.constructor.limit255(c[e]+a)};e.forEach(function(e){if("mix"===e.apply)c=o(c,e.params[0],e.params[1]);else if("tint"===e.apply)c=o(c,{r:255,g:255,b:255},e.params[0]);else if("shade"===e.apply)c=o(c,{r:0,g:0,b:0},e.params[0]);else if("xor"===e.apply)c={r:c.r^e.params[0].r,g:c.g^e.params[0].g,b:c.b^e.params[0].b};else if("red"===e.apply)c.r=s("r",e.params[0]);else if("green"===e.apply)c.g=s("g",e.params[0]);else if("blue"===e.apply)c.b=s("b",e.params[0]);else{var r;if("hue"===e.apply&&(e.apply="spin"),c=(0,u["default"])(c),!c[e.apply])return d.throwError.call(t,"action "+e.apply+" not supported",a);c=(r=c)[e.apply].apply(r,(0,l["default"])(e.params)).toRgb()}}),t.bitmap.data[i]=c.r,t.bitmap.data[i+1]=c.g,t.bitmap.data[i+2]=c.b}),(0,d.isNodePattern)(a)&&a.call(this,null,this),this):d.throwError.call(this,"actions must be an array",a)}var s=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var l=s(e("@babel/runtime/helpers/toConsumableArray")),u=s(e("tinycolor2")),d=e("@jimp/utils"),X=function(e){return"undefined"!=typeof e&&null!==e};t["default"]=function(){return{brightness:function(e,a){return"number"==typeof e?-1>e||1<e?d.throwError.call(this,"val must be a number between -1 and +1",a):(this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(a,t,r){0>e?(this.bitmap.data[r]*=1+e,this.bitmap.data[r+1]=this.bitmap.data[r+1]*(1+e),this.bitmap.data[r+2]=this.bitmap.data[r+2]*(1+e)):(this.bitmap.data[r]+=(255-this.bitmap.data[r])*e,this.bitmap.data[r+1]=this.bitmap.data[r+1]+(255-this.bitmap.data[r+1])*e,this.bitmap.data[r+2]=this.bitmap.data[r+2]+(255-this.bitmap.data[r+2])*e)}),(0,d.isNodePattern)(a)&&a.call(this,null,this),this):d.throwError.call(this,"val must be numbers",a)},contrast:function(e,a){function t(e){return e=A(r*(e-127)+127),0>e?0:255<e?255:e}if("number"!=typeof e)return d.throwError.call(this,"val must be numbers",a);if(-1>e||1<e)return d.throwError.call(this,"val must be a number between -1 and +1",a);var r=(e+1)/(1-e);return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(e,a,r){this.bitmap.data[r]=t(this.bitmap.data[r]),this.bitmap.data[r+1]=t(this.bitmap.data[r+1]),this.bitmap.data[r+2]=t(this.bitmap.data[r+2])}),(0,d.isNodePattern)(a)&&a.call(this,null,this),this},posterize:function(e,a){return"number"==typeof e?(2>e&&(e=2),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(a,t,r){this.bitmap.data[r]=255*(A(this.bitmap.data[r]/255*(e-1))/(e-1)),this.bitmap.data[r+1]=255*(A(this.bitmap.data[r+1]/255*(e-1))/(e-1)),this.bitmap.data[r+2]=255*(A(this.bitmap.data[r+2]/255*(e-1))/(e-1))}),(0,d.isNodePattern)(a)&&a.call(this,null,this),this):d.throwError.call(this,"n must be numbers",a)},greyscale:i,grayscale:i,opacity:function(e,a){return"number"==typeof e?0>e||1<e?d.throwError.call(this,"f must be a number from 0 to 1",a):(this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(a,t,r){var n=this.bitmap.data[r+3]*e;this.bitmap.data[r+3]=n}),(0,d.isNodePattern)(a)&&a.call(this,null,this),this):d.throwError.call(this,"f must be a number",a)},sepia:function(e){return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(e,a,t){var r=this.bitmap.data[t],n=this.bitmap.data[t+1],i=this.bitmap.data[t+2];r=.393*r+.769*n+.189*i,n=.349*r+.686*n+.168*i,i=.272*r+.534*n+.131*i,this.bitmap.data[t]=255>r?r:255,this.bitmap.data[t+1]=255>n?n:255,this.bitmap.data[t+2]=255>i?i:255}),(0,d.isNodePattern)(e)&&e.call(this,null,this),this},fade:function(e,a){return"number"==typeof e?0>e||1<e?d.throwError.call(this,"f must be a number from 0 to 1",a):(this.opacity(1-e),(0,d.isNodePattern)(a)&&a.call(this,null,this),this):d.throwError.call(this,"f must be a number",a)},convolution:function(e,a,t){"function"==typeof a&&"undefined"==typeof t&&(t=a,a=null),a||(a=this.constructor.EDGE_EXTEND);var n=r.from(this.bitmap.data),i=e.length,o=e[0].length,c=A(i/2),s=A(o/2),l,u,X,m,P,K,g,p,f,h;return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,r,i){m=0,X=0,u=0;for(var o=-c;o<=c;o++)for(var d=-s;d<=s;d++)p=t+d,f=r+o,l=e[o+c][d+s],h=this.getPixelIndex(p,f,a),-1===h?(g=0,K=0,P=0):(P=this.bitmap.data[h+0],K=this.bitmap.data[h+1],g=this.bitmap.data[h+2]),u+=l*P,X+=l*K,m+=l*g;0>u&&(u=0),0>X&&(X=0),0>m&&(m=0),255<u&&(u=255),255<X&&(X=255),255<m&&(m=255),n[i+0]=u,n[i+1]=X,n[i+2]=m}),this.bitmap.data=n,(0,d.isNodePattern)(t)&&t.call(this,null,this),this},opaque:function(e){return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(e,a,t){this.bitmap.data[t+3]=255}),(0,d.isNodePattern)(e)&&e.call(this,null,this),this},pixelate:function(e,a,t,r,i,o){if("function"==typeof a)o=a,i=null,r=null,t=null,a=null;else{if("number"!=typeof e)return d.throwError.call(this,"size must be a number",o);if(X(a)&&"number"!=typeof a)return d.throwError.call(this,"x must be a number",o);if(X(t)&&"number"!=typeof t)return d.throwError.call(this,"y must be a number",o);if(X(r)&&"number"!=typeof r)return d.throwError.call(this,"w must be a number",o);if(X(i)&&"number"!=typeof i)return d.throwError.call(this,"h must be a number",o)}var c=[[1/16,2/16,1/16],[2/16,4/16,2/16],[1/16,2/16,1/16]];a=a||0,t=t||0,r=X(r)?r:this.bitmap.width-a,i=X(i)?i:this.bitmap.height-t;var s=this.cloneQuiet();return this.scanQuiet(a,t,r,i,function(a,t,r){a=e*A(a/e),t=e*A(t/e);var i=n(s,c,a,t);this.bitmap.data[r]=i[0],this.bitmap.data[r+1]=i[1],this.bitmap.data[r+2]=i[2]}),(0,d.isNodePattern)(o)&&o.call(this,null,this),this},convolute:function(e,a,t,r,i,o){if(!Array.isArray(e))return d.throwError.call(this,"the kernel must be an array",o);if("function"==typeof a)o=a,a=null,t=null,r=null,i=null;else{if(X(a)&&"number"!=typeof a)return d.throwError.call(this,"x must be a number",o);if(X(t)&&"number"!=typeof t)return d.throwError.call(this,"y must be a number",o);if(X(r)&&"number"!=typeof r)return d.throwError.call(this,"w must be a number",o);if(X(i)&&"number"!=typeof i)return d.throwError.call(this,"h must be a number",o)}var c=(e.length-1)/2;a=X(a)?a:c,t=X(t)?t:c,r=X(r)?r:this.bitmap.width-a,i=X(i)?i:this.bitmap.height-t;var s=this.cloneQuiet();return this.scanQuiet(a,t,r,i,function(a,t,r){var i=n(s,e,a,t);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])}),(0,d.isNodePattern)(o)&&o.call(this,null,this),this},color:c,colour:c}},a.exports=t.default}).call(this,e("buffer").Buffer)},{"@babel/runtime/helpers/interopRequireDefault":12,"@babel/runtime/helpers/toConsumableArray":22,"@jimp/utils":68,buffer:119,tinycolor2:464}],44:[function(e,a,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var r=e("@jimp/utils");t["default"]=function(){return{contain:function(e,a,t,n,i){if("number"!=typeof e||"number"!=typeof a)return r.throwError.call(this,"w and h must be numbers",i);"string"==typeof t&&("function"==typeof n&&"undefined"==typeof i&&(i=n),n=t,t=null),"function"==typeof t&&("undefined"==typeof i&&(i=t),n=null,t=null),"function"==typeof n&&"undefined"==typeof i&&(i=n,n=null),t=t||this.constructor.HORIZONTAL_ALIGN_CENTER|this.constructor.VERTICAL_ALIGN_MIDDLE;var o=7&t,s=t>>3;if((0==o||o&o-1)&&(0===s||s&s-1))return r.throwError.call(this,"only use one flag per alignment direction",i);var l=e/a>this.bitmap.width/this.bitmap.height?a/this.bitmap.height:e/this.bitmap.width,u=this.cloneQuiet().scale(l,n);return this.resize(e,a,n),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(e,a,t){this.bitmap.data.writeUInt32BE(this._background,t)}),this.blit(u,(this.bitmap.width-u.bitmap.width)/2*(o>>1),(this.bitmap.height-u.bitmap.height)/2*(s>>1)),(0,r.isNodePattern)(i)&&i.call(this,null,this),this}}},a.exports=t.default},{"@jimp/utils":68}],45:[function(e,a,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var r=e("@jimp/utils");t["default"]=function(){return{cover:function(e,a,t,n,i){if("number"!=typeof e||"number"!=typeof a)return r.throwError.call(this,"w and h must be numbers",i);t&&"function"==typeof t&&"undefined"==typeof i?(i=t,t=null,n=null):"function"==typeof n&&"undefined"==typeof i&&(i=n,n=null),t=t||this.constructor.HORIZONTAL_ALIGN_CENTER|this.constructor.VERTICAL_ALIGN_MIDDLE;var o=7&t,c=t>>3;if((0==o||o&o-1)&&(0===c||c&c-1))return r.throwError.call(this,"only use one flag per alignment direction",i);var s=e/a>this.bitmap.width/this.bitmap.height?e/this.bitmap.width:a/this.bitmap.height;return this.scale(s,n),this.crop((this.bitmap.width-e)/2*(o>>1),(this.bitmap.height-a)/2*(c>>1),e,a),(0,r.isNodePattern)(i)&&i.call(this,null,this),this}}},a.exports=t.default},{"@jimp/utils":68}],46:[function(e,a,t){(function(r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){return e("crop",function(e,a,t,n,i){if("number"!=typeof e||"number"!=typeof a)return o.throwError.call(this,"x and y must be numbers",i);if("number"!=typeof t||"number"!=typeof n)return o.throwError.call(this,"w and h must be numbers",i);if(e=C(e),a=C(a),t=C(t),n=C(n),0===e&&t===this.bitmap.width){var c=t*a+e<<2,s=c+n*t<<2;this.bitmap.data=this.bitmap.data.slice(c,s)}else{var l=r.allocUnsafe(4*(t*n)),u=0;this.scanQuiet(e,a,t,n,function(e,a,t){var r=this.bitmap.data.readUInt32BE(t,!0);l.writeUInt32BE(r,u,!0),u+=4}),this.bitmap.data=l}return this.bitmap.width=t,this.bitmap.height=n,(0,o.isNodePattern)(i)&&i.call(this,null,this),this}),{class:{autocrop:function(){for(var e=this.bitmap.width,t=this.bitmap.height,r=1,n=0,c=2e-4,s=!0,l=!1,u={north:!1,south:!1,east:!1,west:!1},d=arguments.length,X=Array(d),m=0,P;m<d;m++)X[m]=arguments[m];for(var K=0,g=X.length;K<g;K++)if("number"==typeof X[K]&&(c=X[K]),"boolean"==typeof X[K]&&(s=X[K]),"function"==typeof X[K]&&(P=X[K]),"object"===(0,i["default"])(X[K])){var p=X[K];"undefined"!=typeof p.tolerance&&(c=p.tolerance),"undefined"!=typeof p.cropOnlyFrames&&(s=p.cropOnlyFrames),"undefined"!=typeof p.cropSymmetric&&(l=p.cropSymmetric),"undefined"!=typeof p.leaveBorder&&(n=p.leaveBorder),"undefined"!=typeof p.ignoreSides&&(u=p.ignoreSides)}var f=this.getPixelColor(0,0),h=this.constructor.intToRGBA(f),b=0,A=0,v=0,C=0;if(f=this.getPixelColor(0,0),!u.north)north:for(var B=0;B<t-r;B++){for(var W=0;W<e;W++){var N=this.getPixelColor(W,B),O=this.constructor.intToRGBA(N);if(this.constructor.colorDiff(h,O)>c)break north}b++}if(f=this.getPixelColor(e,0),!u.east)east:for(var k=0;k<e-r;k++){for(var T=0+b;T<t;T++){var w=this.getPixelColor(k,T),S=this.constructor.intToRGBA(w);if(this.constructor.colorDiff(h,S)>c)break east}A++}if(f=this.getPixelColor(0,t),!u.south)south:for(var U=t-1;U>=b+r;U--){for(var R=e-A-1;0<=R;R--){var Y=this.getPixelColor(R,U),I=this.constructor.intToRGBA(Y);if(this.constructor.colorDiff(h,I)>c)break south}v++}if(f=this.getPixelColor(e,t),!u.west)west:for(var E=e-1;E>=0+A+r;E--){for(var L=t-1;L>=0+b;L--){var D=this.getPixelColor(E,L),M=this.constructor.intToRGBA(D);if(this.constructor.colorDiff(h,M)>c)break west}C++}var F=!1;if(C-=n,A-=n,b-=n,v-=n,l){var z=_(A,C),j=_(b,v);C=z,A=z,b=j,v=j}C=0<=C?C:0,A=0<=A?A:0,b=0<=b?b:0,v=0<=v?v:0;var V=e-(C+A),q=t-(v+b);return F=s?0!==A&&0!==b&&0!==C&&0!==v:0!==A||0!==b||0!==C||0!==v,F&&this.crop(A,b,V,q),(0,o.isNodePattern)(P)&&P.call(this,null,this),this}}}};var i=n(e("@babel/runtime/helpers/typeof")),o=e("@jimp/utils");a.exports=t.default}).call(this,e("buffer").Buffer)},{"@babel/runtime/helpers/interopRequireDefault":12,"@babel/runtime/helpers/typeof":23,"@jimp/utils":68,buffer:119}],47:[function(e,a,t){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var n=r(e("@babel/runtime/helpers/typeof")),i=e("@jimp/utils");t["default"]=function(){return{displace:function(e,a,t){if("object"!==(0,n["default"])(e)||e.constructor!==this.constructor)return i.throwError.call(this,"The source must be a Jimp image",t);if("number"!=typeof a)return i.throwError.call(this,"factor must be a number",t);var r=this.cloneQuiet();return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,n,i){var o=e.bitmap.data[i]/256*a;o=C(o);var c=this.getPixelIndex(t+o,n);this.bitmap.data[c]=r.bitmap.data[i],this.bitmap.data[c+1]=r.bitmap.data[i+1],this.bitmap.data[c+2]=r.bitmap.data[i+2]}),(0,i.isNodePattern)(t)&&t.call(this,null,this),this}}},a.exports=t.default},{"@babel/runtime/helpers/interopRequireDefault":12,"@babel/runtime/helpers/typeof":23,"@jimp/utils":68}],48:[function(e,a,t){"use strict";function r(e){var a=[1,9,3,11,13,5,15,7,4,12,2,10,16,8,14,6];return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(e,t,r){var n=a[((3&t)<<2)+e%4];this.bitmap.data[r]=_(this.bitmap.data[r]+n,255),this.bitmap.data[r+1]=_(this.bitmap.data[r+1]+n,255),this.bitmap.data[r+2]=_(this.bitmap.data[r+2]+n,255)}),(0,n.isNodePattern)(e)&&e.call(this,null,this),this}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var n=e("@jimp/utils");t["default"]=function(){return{dither565:r,dither16:r}},a.exports=t.default},{"@jimp/utils":68}],49:[function(e,a,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var r=e("@jimp/utils");t["default"]=function(){return{fisheye:function(){var e=this,a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{r:2.5},t=1<arguments.length?arguments[1]:void 0;"function"==typeof a&&(t=a,a={r:2.5});var n=this.cloneQuiet(),i=n.bitmap,o=i.width,c=i.height;return n.scanQuiet(0,0,o,c,function(t,i){var s=t/o,l=i/c,u=h(v(s-.5,2)+v(l-.5,2)),r=2*v(u,a.r),d=C((r*((s-.5)/u)+.5)*o),X=C((r*((l-.5)/u)+.5)*c),m=n.getPixelColor(d,X);e.setPixelColor(m,t,i)}),this.setPixelColor(n.getPixelColor(o/2,c/2),o/2,c/2),(0,r.isNodePattern)(t)&&t.call(this,null,this),this}}},a.exports=t.default},{"@jimp/utils":68}],50:[function(e,a,t){(function(r){"use strict";function n(e,a,t){if("boolean"!=typeof e||"boolean"!=typeof a)return i.throwError.call(this,"horizontal and vertical must be Booleans",t);var n=r.alloc(this.bitmap.data.length);return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,r,i){var o=e?this.bitmap.width-1-t:t,c=a?this.bitmap.height-1-r:r,s=this.bitmap.width*c+o<<2,l=this.bitmap.data.readUInt32BE(i);n.writeUInt32BE(l,s)}),this.bitmap.data=r.from(n),(0,i.isNodePattern)(t)&&t.call(this,null,this),this}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var i=e("@jimp/utils");t["default"]=function(){return{flip:n,mirror:n}},a.exports=t.default}).call(this,e("buffer").Buffer)},{"@jimp/utils":68,buffer:119}],51:[function(e,a,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var n=e("@jimp/utils");t["default"]=function(){return{gaussian:function(e,a){if("number"!=typeof e)return n.throwError.call(this,"r must be a number",a);if(1>e)return n.throwError.call(this,"r must be greater than 0",a);for(var t=K(2.57*e),r=2*t+1,i=2*(e*e),o=[],c=0;c<r;c++){o[c]=[];for(var s=0,l;s<r;s++)l=v(s-t,2)+v(c-t,2),o[c][s]=P(-l/i)/(i*p)}for(var u=0;u<this.bitmap.height;u++)for(var d=0;d<this.bitmap.width;d++)for(var X=0,m=0,g=0,f=0,h=0,b=0;b<r;b++){for(var A=0;A<r;A++){var W=_(this.bitmap.width-1,B(0,A+d-t)),N=_(this.bitmap.height-1,B(0,b+u-t)),O=o[b][A],k=N*this.bitmap.width+W<<2;X+=this.bitmap.data[k]*O,m+=this.bitmap.data[k+1]*O,g+=this.bitmap.data[k+2]*O,f+=this.bitmap.data[k+3]*O,h+=O}var T=u*this.bitmap.width+d<<2;this.bitmap.data[T]=C(X/h),this.bitmap.data[T+1]=C(m/h),this.bitmap.data[T+2]=C(g/h),this.bitmap.data[T+3]=C(f/h)}return(0,n.isNodePattern)(a)&&a.call(this,null,this),this}}},a.exports=t.default},{"@jimp/utils":68}],52:[function(e,a,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var r=e("@jimp/utils");t["default"]=function(){return{invert:function(e){return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(e,a,t){this.bitmap.data[t]=255-this.bitmap.data[t],this.bitmap.data[t+1]=255-this.bitmap.data[t+1],this.bitmap.data[t+2]=255-this.bitmap.data[t+2]}),(0,r.isNodePattern)(e)&&e.call(this,null,this),this}}},a.exports=t.default},{"@jimp/utils":68}],53:[function(e,a,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var r=e("@jimp/utils");t["default"]=function(){return{mask:function(e){var a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,t=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,n=3<arguments.length?arguments[3]:void 0;if(!(e instanceof this.constructor))return r.throwError.call(this,"The source must be a Jimp image",n);if("number"!=typeof a||"number"!=typeof t)return r.throwError.call(this,"x and y must be numbers",n);a=C(a),t=C(t);var i=this.bitmap.width,o=this.bitmap.height,c=this;return e.scanQuiet(0,0,e.bitmap.width,e.bitmap.height,function(e,r,n){var s=a+e,l=t+r;if(0<=s&&0<=l&&s<i&&l<o){var u=c.getPixelIndex(s,l),d=this.bitmap.data,X=(d[n+0]+d[n+1]+d[n+2])/3;c.bitmap.data[u+3]*=X/255}}),(0,r.isNodePattern)(n)&&n.call(this,null,this),this}}},a.exports=t.default},{"@jimp/utils":68}],54:[function(e,a,t){"use strict";function r(){var e={r:Array(256).fill(0),g:Array(256).fill(0),b:Array(256).fill(0)};return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(a,t,r){e.r[this.bitmap.data[r+0]]++,e.g[this.bitmap.data[r+1]]++,e.b[this.bitmap.data[r+2]]++}),e}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var n=e("@jimp/utils"),i=function(e,a,t){return 255*(e-a)/(t-a)},o=function(e){return[e.findIndex(function(e){return 0<e}),255-e.slice().reverse().findIndex(function(e){return 0<e})]};t["default"]=function(){return{normalize:function(e){var a=r.call(this),t={r:o(a.r),g:o(a.g),b:o(a.b)};return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(e,a,n){var o=this.bitmap.data[n+0],r=this.bitmap.data[n+1],c=this.bitmap.data[n+2];this.bitmap.data[n+0]=i(o,t.r[0],t.r[1]),this.bitmap.data[n+1]=i(r,t.g[0],t.g[1]),this.bitmap.data[n+2]=i(c,t.b[0],t.b[1])}),(0,n.isNodePattern)(e)&&e.call(this,null,this),this}}},a.exports=t.default},{"@jimp/utils":68}],55:[function(e,a,t){(function(r,n){"use strict";function i(e,a,t,r,n){return n===e.HORIZONTAL_ALIGN_LEFT?0:n===e.HORIZONTAL_ALIGN_CENTER?(r-(0,p.measureText)(a,t))/2:r-(0,p.measureText)(a,t)}function o(e,a,t,r,n){if(0<n.width&&0<n.height){var i=a.pages[n.page];e.blit(i,t+n.xoffset,r+n.yoffset,n.x,n.y,n.width,n.height)}return e}function c(e,a,t,r,n){for(var c=0,s;c<r.length;c++){s=void 0,s=e.chars[r[c]]?r[c]:/\s/.test(r[c])?"":"?";var l=e.chars[s]||{},u=e.kernings[s];o(this,e,a,t,l||{});var d=u&&u[r[c+1]]?u[r[c+1]]:0;a+=d+(l.xadvance||n)}}function s(e,a,t){var r=a.split(" "),n=[],i=[],o=0;return r.forEach(function(a){var r=[].concat((0,X["default"])(i),[a]).join(" "),c=(0,p.measureText)(e,r);c<=t?(c>o&&(o=c),i.push(a)):(n.push(i),i=[a])}),n.push(i),{lines:n,longestLine:o}}function l(e,a,t){var r=t.map(function(t){return e.read(a+"/"+t)});return Promise.all(r)}var u=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var d=u(e("@babel/runtime/helpers/typeof")),X=u(e("@babel/runtime/helpers/toConsumableArray")),P=u(e("path")),K=u(e("load-bmfont")),g=e("@jimp/utils"),p=e("./measure-text"),f=r.env.DIRNAME||"".concat(n,"/../");t["default"]=function(){return{constants:{measureText:p.measureText,measureTextHeight:p.measureTextHeight,FONT_SANS_8_BLACK:P["default"].join(f,"fonts/open-sans/open-sans-8-black/open-sans-8-black.fnt"),FONT_SANS_10_BLACK:P["default"].join(f,"fonts/open-sans/open-sans-10-black/open-sans-10-black.fnt"),FONT_SANS_12_BLACK:P["default"].join(f,"fonts/open-sans/open-sans-12-black/open-sans-12-black.fnt"),FONT_SANS_14_BLACK:P["default"].join(f,"fonts/open-sans/open-sans-14-black/open-sans-14-black.fnt"),FONT_SANS_16_BLACK:P["default"].join(f,"fonts/open-sans/open-sans-16-black/open-sans-16-black.fnt"),FONT_SANS_32_BLACK:P["default"].join(f,"fonts/open-sans/open-sans-32-black/open-sans-32-black.fnt"),FONT_SANS_64_BLACK:P["default"].join(f,"fonts/open-sans/open-sans-64-black/open-sans-64-black.fnt"),FONT_SANS_128_BLACK:P["default"].join(f,"fonts/open-sans/open-sans-128-black/open-sans-128-black.fnt"),FONT_SANS_8_WHITE:P["default"].join(f,"fonts/open-sans/open-sans-8-white/open-sans-8-white.fnt"),FONT_SANS_16_WHITE:P["default"].join(f,"fonts/open-sans/open-sans-16-white/open-sans-16-white.fnt"),FONT_SANS_32_WHITE:P["default"].join(f,"fonts/open-sans/open-sans-32-white/open-sans-32-white.fnt"),FONT_SANS_64_WHITE:P["default"].join(f,"fonts/open-sans/open-sans-64-white/open-sans-64-white.fnt"),FONT_SANS_128_WHITE:P["default"].join(f,"fonts/open-sans/open-sans-128-white/open-sans-128-white.fnt"),loadFont:function(e,a){var t=this;return"string"==typeof e?new Promise(function(r,n){a=a||function(e,a){e?n(e):r(a)},(0,K["default"])(e,function(r,n){var o={},c={};if(r)return g.throwError.call(t,r,a);for(var s=0;s<n.chars.length;s++)o[m(n.chars[s].id)]=n.chars[s];for(var u=0,d;u<n.kernings.length;u++)d=m(n.kernings[u].first),c[d]=c[d]||{},c[d][m(n.kernings[u].second)]=n.kernings[u].amount;l(t,P["default"].dirname(e),n.pages).then(function(e){a(null,{chars:o,kernings:c,pages:e,common:n.common,info:n.info})})})}):g.throwError.call(this,"file must be a string",a)}},class:{print:function(e,a,t,r,n,o,l){var u=this;if("function"==typeof n&&"undefined"==typeof l&&(l=n,n=1/0),"undefined"==typeof n&&(n=1/0),"function"==typeof o&&"undefined"==typeof l&&(l=o,o=1/0),"undefined"==typeof o&&(o=1/0),"object"!==(0,d["default"])(e))return g.throwError.call(this,"font must be a Jimp loadFont",l);if("number"!=typeof a||"number"!=typeof t||"number"!=typeof n)return g.throwError.call(this,"x, y and maxWidth must be numbers",l);if("number"!=typeof n)return g.throwError.call(this,"maxWidth must be a number",l);if("number"!=typeof o)return g.throwError.call(this,"maxHeight must be a number",l);var X,m;if("object"===(0,d["default"])(r)&&null!==r.text&&void 0!==r.text){X=r.alignmentX||this.constructor.HORIZONTAL_ALIGN_LEFT,m=r.alignmentY||this.constructor.VERTICAL_ALIGN_TOP;var P=r;r=P.text}else X=this.constructor.HORIZONTAL_ALIGN_LEFT,m=this.constructor.VERTICAL_ALIGN_TOP,r=r.toString();o!==1/0&&m===this.constructor.VERTICAL_ALIGN_BOTTOM?t+=o-(0,p.measureTextHeight)(e,r,n):o!==1/0&&m===this.constructor.VERTICAL_ALIGN_MIDDLE&&(t+=o/2-(0,p.measureTextHeight)(e,r,n)/2);var K=Object.entries(e.chars)[0][1].xadvance,f=s(e,r,n),h=f.lines,b=f.longestLine;return h.forEach(function(r){var o=r.join(" "),s=i(u.constructor,e,o,n,X);c.call(u,e,a+s,t,o,K),t+=e.common.lineHeight}),(0,g.isNodePattern)(l)&&l.call(this,null,this,{x:a+b,y:t}),this}}}},a.exports=t.default}).call(this,e("_process"),"/node_modules/@jimp/plugin-print/dist")},{"./measure-text":56,"@babel/runtime/helpers/interopRequireDefault":12,"@babel/runtime/helpers/toConsumableArray":22,"@babel/runtime/helpers/typeof":23,"@jimp/utils":68,_process:116,"load-bmfont":338,path:371}],56:[function(e,a,t){"use strict";function r(e,a){for(var t=0,r=0;r<a.length;r++)if(e.chars[a[r]]){var n=e.kernings[a[r]]&&e.kernings[a[r]][a[r+1]]?e.kernings[a[r]][a[r+1]]:0;t+=(e.chars[a[r]].xadvance||0)+n}return t}Object.defineProperty(t,"__esModule",{value:!0}),t.measureText=r,t.measureTextHeight=function(e,a,t){for(var i=a.split(" "),o="",c=e.common.lineHeight,s=0;s<i.length;s++){var l=o+i[s]+" ",u=r(e,l);u>t&&0<s?(c+=e.common.lineHeight,o=i[s]+" "):o=l}return c}},{}],57:[function(e,a,t){(function(r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var i=e("@jimp/utils"),o=n(e("./modules/resize")),c=n(e("./modules/resize2"));t["default"]=function(){return{constants:{RESIZE_NEAREST_NEIGHBOR:"nearestNeighbor",RESIZE_BILINEAR:"bilinearInterpolation",RESIZE_BICUBIC:"bicubicInterpolation",RESIZE_HERMITE:"hermiteInterpolation",RESIZE_BEZIER:"bezierInterpolation"},class:{resize:function e(a,t,n,s){if("number"!=typeof a||"number"!=typeof t)return i.throwError.call(this,"w and h must be numbers",s);if("function"==typeof n&&"undefined"==typeof s&&(s=n,n=null),a===this.constructor.AUTO&&t===this.constructor.AUTO)return i.throwError.call(this,"w and h cannot both be set to auto",s);if(a===this.constructor.AUTO&&(a=this.bitmap.width*(t/this.bitmap.height)),t===this.constructor.AUTO&&(t=this.bitmap.height*(a/this.bitmap.width)),0>a||0>t)return i.throwError.call(this,"w and h must be positive numbers",s);if(a=C(a),t=C(t),"function"==typeof c["default"][n]){var l={data:r.alloc(4*(a*t)),width:a,height:t};c["default"][n](this.bitmap,l),this.bitmap=l}else{var u=this,e=new o["default"](this.bitmap.width,this.bitmap.height,a,t,!0,!0,function(e){u.bitmap.data=r.from(e),u.bitmap.width=a,u.bitmap.height=t});e.resize(this.bitmap.data)}return(0,i.isNodePattern)(s)&&s.call(this,null,this),this}}}},a.exports=t.default}).call(this,e("buffer").Buffer)},{"./modules/resize":58,"./modules/resize2":59,"@babel/runtime/helpers/interopRequireDefault":12,"@jimp/utils":68,buffer:119}],58:[function(e,a){"use strict";function t(e,a,t,r,n,i,o){this.widthOriginal=X(A(e)||0),this.heightOriginal=X(A(a)||0),this.targetWidth=X(A(t)||0),this.targetHeight=X(A(r)||0),this.colorChannels=n?4:3,this.interpolationPass=!!i,this.resizeCallback="function"==typeof o?o: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()}t.prototype.initialize=function(){if(0<this.widthOriginal&&0<this.heightOriginal&&0<this.targetWidth&&0<this.targetHeight)this.configurePasses();else throw new Error("Invalid settings specified for the resizer.")},t.prototype.configurePasses=function(){this.widthOriginal===this.targetWidth?this.resizeWidth=this.bypassResizer:(this.ratioWeightWidthPass=this.widthOriginal/this.targetWidth,1>this.ratioWeightWidthPass&&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,1>this.ratioWeightHeightPass&&this.interpolationPass?(this.initializeSecondPassBuffers(!0),this.resizeHeight=this.resizeHeightInterpolated):(this.initializeSecondPassBuffers(!1),this.resizeHeight=4===this.colorChannels?this.resizeHeightRGBA:this.resizeHeightRGB))},t.prototype._resizeWidthInterpolatedRGBChannels=function(e,a){var t=a?4:3,r=this.ratioWeightWidthPass,n=this.widthBuffer,i=0,o=0,c=0,s=0,l=0,u;for(u=0;i<1/3;u+=t,i+=r)for(o=u,c=0;o<this.widthPassResultSize;c+=this.originalWidthMultipliedByChannels,o+=this.targetWidthMultipliedByChannels)n[o]=e[c],n[o+1]=e[c+1],n[o+2]=e[c+2],a&&(n[o+3]=e[c+3]);i-=1/3;var d;for(d=this.widthOriginal-1;i<d;u+=t,i+=r)for(l=i%1,s=1-l,(o=u,c=A(i)*t);o<this.widthPassResultSize;c+=this.originalWidthMultipliedByChannels,o+=this.targetWidthMultipliedByChannels)n[o+0]=e[c+0]*s+e[c+t+0]*l,n[o+1]=e[c+1]*s+e[c+t+1]*l,n[o+2]=e[c+2]*s+e[c+t+2]*l,a&&(n[o+3]=e[c+3]*s+e[c+t+3]*l);for(d=this.originalWidthMultipliedByChannels-t;u<this.targetWidthMultipliedByChannels;u+=t)for(o=u,c=d;o<this.widthPassResultSize;c+=this.originalWidthMultipliedByChannels,o+=this.targetWidthMultipliedByChannels)n[o]=e[c],n[o+1]=e[c+1],n[o+2]=e[c+2],a&&(n[o+3]=e[c+3]);return n},t.prototype._resizeWidthRGBChannels=function(e,t){var n=t?4:3,i=this.ratioWeightWidthPass,o=1/i,c=this.originalWidthMultipliedByChannels-n+1,s=this.targetWidthMultipliedByChannels-n+1,l=this.outputWidthWorkBench,u=this.widthBuffer,d=this.outputWidthWorkBenchOpaquePixelsCount,X=0,m=0,P=0,K=0,p=0,f=0,h=0,y=1,A=0,v=0,C=0,B=0;do{for(p=0;p<this.originalHeightMultipliedByChannels;)l[p++]=0,l[p++]=0,l[p++]=0,t&&(l[p++]=0,d[p/n-1]=0);X=i;do{for(m=1+P-K,y=_(X,m),(p=0,f=P);p<this.originalHeightMultipliedByChannels;f+=c)A=e[f],v=e[++f],C=e[++f],B=t?e[++f]:255,l[p++]+=(B?A:0)*y,l[p++]+=(B?v:0)*y,l[p++]+=(B?C:0)*y,t&&(l[p++]+=B*y,d[p/n-1]+=B?y:0);if(X>=m)P+=n,K=P,X-=m;else{K+=X;break}}while(0<X&&P<this.originalWidthMultipliedByChannels);for(p=0,f=h;p<this.originalHeightMultipliedByChannels;f+=s)X=t?d[p/n]:1,y=t?X?1/X:0:o,u[f]=l[p++]*y,u[++f]=l[p++]*y,u[++f]=l[p++]*y,t&&(u[++f]=l[p++]*o);h+=n}while(h<this.targetWidthMultipliedByChannels);return u},t.prototype._resizeHeightRGBChannels=function(e,t){var n=this.ratioWeightHeightPass,i=1/n,o=this.outputHeightWorkBench,c=this.heightBuffer,s=this.outputHeightWorkBenchOpaquePixelsCount,l=0,u=0,d=0,X=0,m=0,P=0,K=0,p=1,f=0,h=0,y=0,A=0;do{for(m=0;m<this.targetWidthMultipliedByChannels;)o[m++]=0,o[m++]=0,o[m++]=0,t&&(o[m++]=0,s[m/4-1]=0);l=n;do{for(u=1+d-X,p=_(l,u),K=d,m=0;m<this.targetWidthMultipliedByChannels;)f=e[K++],h=e[K++],y=e[K++],A=t?e[K++]:255,o[m++]+=(A?f:0)*p,o[m++]+=(A?h:0)*p,o[m++]+=(A?y:0)*p,t&&(o[m++]+=A*p,s[m/4-1]+=A?p:0);if(l>=u)d=K,X=d,l-=u;else{X+=l;break}}while(0<l&&d<this.widthPassResultSize);for(m=0;m<this.targetWidthMultipliedByChannels;)l=t?s[m/4]:1,p=t?l?1/l:0:i,c[P++]=C(o[m++]*p),c[P++]=C(o[m++]*p),c[P++]=C(o[m++]*p),t&&(c[P++]=C(o[m++]*i))}while(P<this.finalResultSize);return c},t.prototype.resizeWidthInterpolatedRGB=function(e){return this._resizeWidthInterpolatedRGBChannels(e,!1)},t.prototype.resizeWidthInterpolatedRGBA=function(e){return this._resizeWidthInterpolatedRGBChannels(e,!0)},t.prototype.resizeWidthRGB=function(e){return this._resizeWidthRGBChannels(e,!1)},t.prototype.resizeWidthRGBA=function(e){return this._resizeWidthRGBChannels(e,!0)},t.prototype.resizeHeightInterpolated=function(e){for(var a=this.ratioWeightHeightPass,t=this.heightBuffer,r=0,n=0,i=0,o=0,c=0,s=0,l=0,u;r<1/3;r+=a)for(i=0;i<this.targetWidthMultipliedByChannels;)t[n++]=C(e[i++]);for(r-=1/3,u=this.heightOriginal-1;r<u;r+=a)for(l=r%1,s=1-l,o=A(r)*this.targetWidthMultipliedByChannels,c=o+this.targetWidthMultipliedByChannels,i=0;i<this.targetWidthMultipliedByChannels;++i)t[n++]=C(e[o++]*s+e[c++]*l);for(;n<this.finalResultSize;)for(i=0,o=u*this.targetWidthMultipliedByChannels;i<this.targetWidthMultipliedByChannels;++i)t[n++]=C(e[o++]);return t},t.prototype.resizeHeightRGB=function(e){return this._resizeHeightRGBChannels(e,!1)},t.prototype.resizeHeightRGBA=function(e){return this._resizeHeightRGBChannels(e,!0)},t.prototype.resize=function(e){this.resizeCallback(this.resizeHeight(this.resizeWidth(e)))},t.prototype.bypassResizer=function(e){return e},t.prototype.initializeFirstPassBuffers=function(e){this.widthBuffer=this.generateFloatBuffer(this.widthPassResultSize),e||(this.outputWidthWorkBench=this.generateFloatBuffer(this.originalHeightMultipliedByChannels),3<this.colorChannels&&(this.outputWidthWorkBenchOpaquePixelsCount=this.generateFloat64Buffer(this.heightOriginal)))},t.prototype.initializeSecondPassBuffers=function(e){this.heightBuffer=this.generateUint8Buffer(this.finalResultSize),e||(this.outputHeightWorkBench=this.generateFloatBuffer(this.targetWidthMultipliedByChannels),3<this.colorChannels&&(this.outputHeightWorkBenchOpaquePixelsCount=this.generateFloat64Buffer(this.targetWidth)))},t.prototype.generateFloatBuffer=function(e){try{return new Float32Array(e)}catch(e){return[]}},t.prototype.generateFloat64Buffer=function(e){try{return new Float64Array(e)}catch(e){return[]}},t.prototype.generateUint8Buffer=function(e){try{return new Uint8Array(e)}catch(e){return[]}},a.exports=t},{}],59:[function(e,a){(function(e){"use strict";a.exports={nearestNeighbor:function(e,a){for(var t=e.width,r=e.height,n=a.width,o=a.height,c=e.data,s=a.data,l=0;l<o;l++)for(var u=0;u<n;u++){var d=4*(l*n+u),X=A(l*r/o),m=A(u*t/n),P=4*(X*t+m);s[d++]=c[P++],s[d++]=c[P++],s[d++]=c[P++],s[d++]=c[P++]}},bilinearInterpolation:function(e,a){for(var t=e.width,r=e.height,n=a.width,o=a.height,c=e.data,s=a.data,l=function(e,a,t,r,n){return a===r?t:C((e-a)*n+(r-e)*t)},u=function(e,a,r,n,i,o,u,d){var X=4*(u*t+n)+a,m=4*(u*t+i)+a,P=l(r,n,c[X],i,c[m]);if(d===u)s[e+a]=P;else{X=4*(d*t+n)+a,m=4*(d*t+i)+a;var K=l(r,n,c[X],i,c[m]);s[e+a]=l(o,u,P,d,K)}},d=0;d<o;d++)for(var X=0;X<n;X++){var m=4*(d*n+X),P=X*t/n,g=A(P),p=_(K(P),t-1),f=d*r/o,h=A(f),y=_(K(f),r-1);u(m,0,P,g,p,f,h,y),u(m,1,P,g,p,f,h,y),u(m,2,P,g,p,f,h,y),u(m,3,P,g,p,f,h,y)}},_interpolate2D:function(t,n,o,c){for(var s=t.data,l=n.data,u=t.width,d=t.height,X=n.width,P=n.height,K=B(1,A(u/X)),p=X*K,f=B(1,A(d/P)),h=P*f,v=e.alloc(4*(p*d)),_=0;_<d;_++)for(var W=0;W<p;W++)for(var N=W*(u-1)/p,x=A(N),O=4*(_*u+x),T=4*(_*p+W),w=0;4>w;w++){var S=O+w,U=0<x?s[S-4]:2*s[S]-s[S+4],R=s[S],Y=s[S+4],I=x<u-2?s[S+8]:2*s[S+4]-s[S];v[T+w]=c(U,R,Y,I,N-x)}for(var E=e.alloc(4*(p*h)),L=0;L<h;L++)for(var D=0;D<p;D++)for(var M=L*(d-1)/h,y=A(M),F=4*(y*p+D),z=4*(L*p+D),V=0;4>V;V++){var q=F+V,G=0<y?v[q-4*p]:2*v[q]-v[q+4*p],H=v[q],J=v[q+4*p],Z=y<d-2?v[q+8*p]:2*v[q+4*p]-v[q];E[z+V]=c(G,H,J,Z,M-y)}var Q=K*f;if(1<Q)for(var m=0;m<P;m++)for(var $=0;$<X;$++){for(var ee=0,ae=0,te=0,re=0,ne=0,ie=0,oe;ie<f;ie++){oe=m*f+ie;for(var ce=0;ce<K;ce++){var se=$*K+ce,le=4*(oe*p+se),ue=E[le+3];ue&&(ee+=E[le],ae+=E[le+1],te+=E[le+2],ne++),re+=ue}}var de=4*(m*X+$);l[de]=ne?C(ee/ne):0,l[de+1]=ne?C(ae/ne):0,l[de+2]=ne?C(te/ne):0,l[de+3]=C(re/Q)}else n.data=E},bicubicInterpolation:function(e,a,t){return this._interpolate2D(e,a,t,function(e,a,r,n,i){var t=n-r-e+a;return B(0,_(255,t*(i*i*i)+(e-a-t)*(i*i)+(r-e)*i+a))})},hermiteInterpolation:function(e,a,t){return this._interpolate2D(e,a,t,function(e,a,r,n,i){return B(0,_(255,C((((.5*(n-e)+1.5*(a-r))*i+(e-2.5*a+2*r-.5*n))*i+.5*(r-e))*i+a)))})},bezierInterpolation:function(e,a,t){return this._interpolate2D(e,a,t,function(e,a,r,n,i){var t=1-i;return B(0,_(255,C(a*t*t*t+3*(a+(r-e)/4)*t*t*i+3*(r-(n-a)/4)*t*i*i+r*i*i*i)))})}}}).call(this,e("buffer").Buffer)},{buffer:119}],60:[function(e,a,t){(function(r){"use strict";function n(e,a){function t(e,a){return function(t,r){return{x:t+e,y:r+a}}}e%=360;var n=e*p/180,i=g(n),o=d(n),s=this.bitmap.width,l=this.bitmap.height;if(!0===a||"string"==typeof a){s=K(X(this.bitmap.width*i)+X(this.bitmap.height*o))+1,l=K(X(this.bitmap.width*o)+X(this.bitmap.height*i))+1,0!=s%2&&s++,0!=l%2&&l++;var u=this.cloneQuiet();this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(e,a,t){this.bitmap.data.writeUInt32BE(this._background,t)});var c=B(s,l,this.bitmap.width,this.bitmap.height);this.resize(c,c,a),this.blit(u,this.bitmap.width/2-u.bitmap.width/2,this.bitmap.height/2-u.bitmap.height/2)}for(var m=this.bitmap.width,P=this.bitmap.height,f=r.alloc(this.bitmap.data.length),b=t(-(m/2),-(P/2)),A=t(m/2+.5,P/2+.5),v=1;v<=P;v++)for(var C=1;C<=m;C++){var _=b(C,v),W=A(i*_.x-o*_.y,i*_.y+o*_.x),N=m*(v-1)+C-1<<2;if(0<=W.x&&W.x<m&&0<=W.y&&W.y<P){var O=(0|m*(0|W.y)+W.x)<<2,k=this.bitmap.data.readUInt32BE(O);f.writeUInt32BE(k,N)}else f.writeUInt32BE(this._background,N)}if(this.bitmap.data=f,!0===a||"string"==typeof a){var T=m/2-s/2,S=P/2-l/2;this.crop(T,S,s,l)}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var i=e("@jimp/utils");t["default"]=function(){return{rotate:function(e,a,t){return(("undefined"==typeof a||null===a)&&(a=!0),"function"==typeof a&&"undefined"==typeof t&&(t=a,a=!0),"number"!=typeof e)?i.throwError.call(this,"deg must be a number",t):"boolean"!=typeof a&&"string"!=typeof a?i.throwError.call(this,"mode must be a boolean or a string",t):(n.call(this,e,a,t),(0,i.isNodePattern)(t)&&t.call(this,null,this),this)}}},a.exports=t.default}).call(this,e("buffer").Buffer)},{"@jimp/utils":68,buffer:119}],61:[function(e,a,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var r=e("@jimp/utils");t["default"]=function(){return{scale:function(e,a,t){if("number"!=typeof e)return r.throwError.call(this,"f must be a number",t);if(0>e)return r.throwError.call(this,"f must be a positive number",t);"function"==typeof a&&"undefined"==typeof t&&(t=a,a=null);var n=this.bitmap.width*e,i=this.bitmap.height*e;return this.resize(n,i,a),(0,r.isNodePattern)(t)&&t.call(this,null,this),this},scaleToFit:function(e,a,t,n){if("number"!=typeof e||"number"!=typeof a)return r.throwError.call(this,"w and h must be numbers",n);"function"==typeof t&&"undefined"==typeof n&&(n=t,t=null);var i=e/a>this.bitmap.width/this.bitmap.height?a/this.bitmap.height:e/this.bitmap.width;return this.scale(i,t),(0,r.isNodePattern)(n)&&n.call(this,null,this),this}}},a.exports=t.default},{"@jimp/utils":68}],62:[function(e,a,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var r=e("@jimp/utils");t["default"]=function(){return{shadow:function e(){var a=this,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=1<arguments.length?arguments[1]:void 0;"function"==typeof t&&(n=t,t={});var i=t,o=i.opacity,c=void 0===o?.7:o,s=i.size,l=void 0===s?1.1:s,u=i.x,d=void 0===u?-25:u,X=i.y,m=void 0===X?25:X,P=i.blur,K=void 0===P?5:P,g=this.clone(),e=this.clone();return e.scan(0,0,e.bitmap.width,e.bitmap.height,function(t,r,n){e.bitmap.data[n]=0,e.bitmap.data[n+1]=0,e.bitmap.data[n+2]=0,e.bitmap.data[n+3]=e.constructor.limit255(e.bitmap.data[n+3]*c),a.bitmap.data[n]=0,a.bitmap.data[n+1]=0,a.bitmap.data[n+2]=0,a.bitmap.data[n+3]=0}),e.resize(e.bitmap.width*l,e.bitmap.height*l).blur(K),this.composite(e,d,m),this.composite(g,0,0),(0,r.isNodePattern)(n)&&n.call(this,null,this),this}}},a.exports=t.default},{"@jimp/utils":68}],63:[function(e,a,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var r=e("@jimp/utils");t["default"]=function(){return{threshold:function(e,a){var t=this,n=e.max,i=e.replace,o=void 0===i?255:i,c=e.autoGreyscale,s=void 0===c||c;return"number"==typeof n?"number"==typeof o?"boolean"==typeof s?(n=this.constructor.limit255(n),o=this.constructor.limit255(o),s&&this.greyscale(),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(e,a,r){var i=t.bitmap.data[r]<n?t.bitmap.data[r]:o;t.bitmap.data[r]=i,t.bitmap.data[r+1]=i,t.bitmap.data[r+2]=i}),(0,r.isNodePattern)(a)&&a.call(this,null,this),this):r.throwError.call(this,"autoGreyscale must be a boolean",a):r.throwError.call(this,"replace must be a number",a):r.throwError.call(this,"max must be a number",a)}}},a.exports=t.default},{"@jimp/utils":68}],64:[function(e,a,t){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var n=r(e("@babel/runtime/helpers/toConsumableArray")),i=e("timm"),o=r(e("@jimp/plugin-blit")),c=r(e("@jimp/plugin-blur")),s=r(e("@jimp/plugin-circle")),l=r(e("@jimp/plugin-color")),u=r(e("@jimp/plugin-contain")),d=r(e("@jimp/plugin-cover")),X=r(e("@jimp/plugin-crop")),m=r(e("@jimp/plugin-displace")),P=r(e("@jimp/plugin-dither")),K=r(e("@jimp/plugin-fisheye")),g=r(e("@jimp/plugin-flip")),p=r(e("@jimp/plugin-gaussian")),f=r(e("@jimp/plugin-invert")),h=r(e("@jimp/plugin-mask")),y=r(e("@jimp/plugin-normalize")),b=r(e("@jimp/plugin-print")),A=r(e("@jimp/plugin-resize")),v=r(e("@jimp/plugin-rotate")),C=r(e("@jimp/plugin-scale")),B=r(e("@jimp/plugin-shadow")),x=r(e("@jimp/plugin-threshold")),_=[o["default"],c["default"],s["default"],l["default"],u["default"],d["default"],X["default"],m["default"],P["default"],K["default"],g["default"],p["default"],f["default"],h["default"],y["default"],b["default"],A["default"],v["default"],C["default"],B["default"],x["default"]];t["default"]=function(e){var a=_.map(function(a){var t=a(e)||{};return t["class"]||t.constants||(t={class:t}),t});return i.mergeDeep.apply(void 0,(0,n["default"])(a))},a.exports=t.default},{"@babel/runtime/helpers/interopRequireDefault":12,"@babel/runtime/helpers/toConsumableArray":22,"@jimp/plugin-blit":39,"@jimp/plugin-blur":41,"@jimp/plugin-circle":42,"@jimp/plugin-color":43,"@jimp/plugin-contain":44,"@jimp/plugin-cover":45,"@jimp/plugin-crop":46,"@jimp/plugin-displace":47,"@jimp/plugin-dither":48,"@jimp/plugin-fisheye":49,"@jimp/plugin-flip":50,"@jimp/plugin-gaussian":51,"@jimp/plugin-invert":52,"@jimp/plugin-mask":53,"@jimp/plugin-normalize":54,"@jimp/plugin-print":55,"@jimp/plugin-resize":57,"@jimp/plugin-rotate":60,"@jimp/plugin-scale":61,"@jimp/plugin-shadow":62,"@jimp/plugin-threshold":63,timm:462}],65:[function(e,a,t){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var n=r(e("@babel/runtime/helpers/defineProperty")),i=e("pngjs"),o=e("@jimp/utils"),c="image/png",s=-1;t["default"]=function(){return{mime:(0,n["default"])({},c,["png"]),constants:{MIME_PNG:c,PNG_FILTER_AUTO:s,PNG_FILTER_NONE:0,PNG_FILTER_SUB:1,PNG_FILTER_UP:2,PNG_FILTER_AVERAGE:3,PNG_FILTER_PATH:4},hasAlpha:(0,n["default"])({},c,!0),decoders:(0,n["default"])({},c,i.PNG.sync.read),encoders:(0,n["default"])({},c,function(e){var a=new i.PNG({width:e.bitmap.width,height:e.bitmap.height});return a.data=e.bitmap.data,i.PNG.sync.write(a,{width:e.bitmap.width,height:e.bitmap.height,deflateLevel:e._deflateLevel,deflateStrategy:e._deflateStrategy,filterType:e._filterType,colorType:"number"==typeof e._colorType?e._colorType:e._rgba?6:2,inputHasAlpha:e._rgba})}),class:{_deflateLevel:9,_deflateStrategy:3,_filterType:s,_colorType:null,deflateLevel:function(e,a){return"number"==typeof e?0>e||9<e?o.throwError.call(this,"l must be a number 0 - 9",a):(this._deflateLevel=C(e),(0,o.isNodePattern)(a)&&a.call(this,null,this),this):o.throwError.call(this,"l must be a number",a)},deflateStrategy:function(e,a){return"number"==typeof e?0>e||3<e?o.throwError.call(this,"s must be a number 0 - 3",a):(this._deflateStrategy=C(e),(0,o.isNodePattern)(a)&&a.call(this,null,this),this):o.throwError.call(this,"s must be a number",a)},filterType:function(e,a){return"number"==typeof e?-1>e||4<e?o.throwError.call(this,"n must be -1 (auto) or a number 0 - 4",a):(this._filterType=C(e),(0,o.isNodePattern)(a)&&a.call(this,null,this),this):o.throwError.call(this,"n must be a number",a)},colorType:function(e,a){return"number"==typeof e?0!==e&&2!==e&&4!==e&&6!==e?o.throwError.call(this,"s must be a number 0, 2, 4, 6.",a):(this._colorType=C(e),(0,o.isNodePattern)(a)&&a.call(this,null,this),this):o.throwError.call(this,"s must be a number",a)}}}},a.exports=t.default},{"@babel/runtime/helpers/defineProperty":8,"@babel/runtime/helpers/interopRequireDefault":12,"@jimp/utils":68,pngjs:395}],66:[function(e,a,t){(function(r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var i=n(e("@babel/runtime/helpers/defineProperty")),o=n(e("utif")),c="image/tiff";t["default"]=function(){return{mime:(0,i["default"])({},c,["tiff","tif"]),constants:{MIME_TIFF:c},decoders:(0,i["default"])({},c,function(e){var a=o["default"].decode(e),t=a[0];o["default"].decodeImages(e,a);var n=o["default"].toRGBA8(t);return{data:r.from(n),width:t.t256[0],height:t.t257[0]}}),encoders:(0,i["default"])({},c,function(e){var a=o["default"].encodeImage(e.bitmap.data,e.bitmap.width,e.bitmap.height);return r.from(a)})}},a.exports=t.default}).call(this,e("buffer").Buffer)},{"@babel/runtime/helpers/defineProperty":8,"@babel/runtime/helpers/interopRequireDefault":12,buffer:119,utif:473}],67:[function(e,a,t){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var n=e("timm"),i=r(e("@jimp/jpeg")),o=r(e("@jimp/png")),c=r(e("@jimp/bmp")),s=r(e("@jimp/tiff")),l=r(e("@jimp/gif"));t["default"]=function(){return(0,n.mergeDeep)((0,i["default"])(),(0,o["default"])(),(0,c["default"])(),(0,s["default"])(),(0,l["default"])())},a.exports=t.default},{"@babel/runtime/helpers/interopRequireDefault":12,"@jimp/bmp":26,"@jimp/gif":37,"@jimp/jpeg":38,"@jimp/png":65,"@jimp/tiff":66,timm:462}],68:[function(e,a,t){"use strict";function r(e,a,t,r,n){var c,s,l;return i["default"].wrap(function(i){for(;;)switch(i.prev=i.next){case 0:a=C(a),t=C(t),r=C(r),n=C(n),c=t;case 5:if(!(c<t+n)){i.next=17;break}s=a;case 7:if(!(s<a+r)){i.next=14;break}return l=e.bitmap.width*c+s<<2,i.next=11,{x:s,y:c,idx:l,image:e};case 11:s++,i.next=7;break;case 14:c++,i.next=5;break;case 17:case"end":return i.stop();}},o)}var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(t,"__esModule",{value:!0}),t.isNodePattern=function(e){if("undefined"==typeof e)return!1;if("function"!=typeof e)throw new TypeError("Callback must be a function");return!0},t.throwError=function(e,a){if("string"==typeof e&&(e=new Error(e)),"function"==typeof a)return a.call(this,e);throw e},t.scan=function(e,a,t,r,n,i){a=C(a),t=C(t),r=C(r),n=C(n);for(var o=t;o<t+n;o++)for(var c=a,s;c<a+r;c++)s=e.bitmap.width*o+c<<2,i.call(e,c,o,s);return e},t.scanIterator=r;var i=n(e("@babel/runtime/regenerator")),o=i["default"].mark(r)},{"@babel/runtime/helpers/interopRequireDefault":12,"@babel/runtime/regenerator":25}],69:[function(e,a){function t(e,a){var t=new r(e,a);return function(e){return t.convert(e)}}var r=e("./src/converter");t.BIN="01",t.OCT="01234567",t.DEC="0123456789",t.HEX="0123456789abcdef",a.exports=t},{"./src/converter":70}],70:[function(e,a){'use strict';function t(e,a){if(!e||!a||!e.length||!a.length)throw new Error("Bad alphabet");this.srcAlphabet=e,this.dstAlphabet=a}t.prototype.convert=function(e){var a={},t=this.srcAlphabet.length,r=this.dstAlphabet.length,n=e.length,o="string"==typeof e?"":[],c,s,l;if(!this.isValid(e))throw new Error("Number \""+e+"\" contains of non-alphabetic digits ("+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return e;for(c=0;c<n;c++)a[c]=this.srcAlphabet.indexOf(e[c]);do{for(s=0,l=0,c=0;c<n;c++)s=s*t+a[c],s>=r?(a[l++]=parseInt(s/r,10),s%=r):0<l&&(a[l++]=0);n=l,o=this.dstAlphabet.slice(s,s+1).concat(o)}while(0!==l);return o},t.prototype.isValid=function(e){for(var a=0;a<e.length;++a)if(-1===this.srcAlphabet.indexOf(e[a]))return!1;return!0},a.exports=t},{}],71:[function(e,a){(function(t){'use strict';/*! |
| 2 | * The buffer module from node.js, for the browser. |
| 3 | * |
| 4 | * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org> |
no test coverage detected