Socket
Socket
Sign inDemoInstall

node-vibrant

Package Overview
Dependencies
Maintainers
2
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-vibrant - npm Package Compare versions

Comparing version 3.1.5 to 3.1.6

dist/93f63b0c942e296fc062.worker.js

2

dist/vibrant.min.js

@@ -1,1 +0,1 @@

!function(e){var n={};function o(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.m=e,o.c=n,o.d=function(t,r,e){o.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:e})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(r,t){if(1&t&&(r=o(r)),8&t)return r;if(4&t&&"object"==typeof r&&r&&r.__esModule)return r;var e=Object.create(null);if(o.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:r}),2&t&&"string"!=typeof r)for(var n in r)o.d(e,n,function(t){return r[t]}.bind(null,n));return e},o.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(r,"a",r),r},o.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},o.p="",o(o.s=185)}([function(t,r){var e=Array.isArray;t.exports=e},function(t,r,e){var n=e(43),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},function(t,r){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,r){t.exports=function(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)}},function(t,r,e){var n=e(96),o=e(99);t.exports=function(t,r){var e=o(t,r);return n(e)?e:void 0}},function(t,r,e){var n=e(42),o=e(81),i=e(10);t.exports=function(t){return i(t)?n(t):o(t)}},function(t,r,e){var n=e(7),o=e(77),i=e(78),a=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?o(t):i(t)}},function(t,r,e){var n=e(1).Symbol;t.exports=n},function(t,r){t.exports=function(t,r){return t===r||t!=t&&r!=r}},function(t,n,r){"use strict";function e(t){var r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return null===r?null:[r[1],r[2],r[3]].map(function(t){return parseInt(t,16)})}function o(t,r,e){return r/=255,e/=255,t=.04045<(t/=255)?Math.pow((t+.005)/1.055,2.4):t/12.92,r=.04045<r?Math.pow((r+.005)/1.055,2.4):r/12.92,e=.04045<e?Math.pow((e+.005)/1.055,2.4):e/12.92,[.4124*(t*=100)+.3576*(r*=100)+.1805*(e*=100),.2126*t+.7152*r+.0722*e,.0193*t+.1192*r+.9505*e]}function i(t,r,e){return r/=100,e/=108.883,t=.008856<(t/=95.047)?Math.pow(t,1/3):7.787*t+16/116,[116*(r=.008856<r?Math.pow(r,1/3):7.787*r+16/116)-16,500*(t-r),200*(r-(e=.008856<e?Math.pow(e,1/3):7.787*e+16/116))]}function a(t,r,e){var n=o(t,r,e);return i(n[0],n[1],n[2])}function u(t,r){var e=t[0],n=t[1],o=t[2],i=r[0],a=r[1],u=r[2],s=e-i,c=n-a,f=o-u,h=Math.sqrt(n*n+o*o),l=i-e,p=Math.sqrt(a*a+u*u)-h,v=Math.sqrt(s*s+c*c+f*f),b=Math.sqrt(v)>Math.sqrt(Math.abs(l))+Math.sqrt(Math.abs(p))?Math.sqrt(v*v-l*l-p*p):0;return l/=1,p/=1*(1+.045*h),b/=1*(1+.015*h),Math.sqrt(l*l+p*p+b*b)}function s(t,r){return u(a.apply(void 0,t),a.apply(void 0,r))}Object.defineProperty(n,"__esModule",{value:!0}),n.DELTAE94_DIFF_STATUS={NA:0,PERFECT:1,CLOSE:2,GOOD:10,SIMILAR:50},n.SIGBITS=5,n.RSHIFT=8-n.SIGBITS,n.defer=function(){var e,n,t=new Promise(function(t,r){e=t,n=r});return{resolve:e,reject:n,promise:t}},n.hexToRgb=e,n.rgbToHex=function(t,r,e){return"#"+((1<<24)+(t<<16)+(r<<8)+e).toString(16).slice(1,7)},n.rgbToHsl=function(t,r,e){t/=255,r/=255,e/=255;var n,o,i=Math.max(t,r,e),a=Math.min(t,r,e),u=(i+a)/2;if(i===a)n=o=0;else{var s=i-a;switch(o=.5<u?s/(2-i-a):s/(i+a),i){case t:n=(r-e)/s+(r<e?6:0);break;case r:n=(e-t)/s+2;break;case e:n=(t-r)/s+4}n/=6}return[n,o,u]},n.hslToRgb=function(t,r,e){var n,o,i;function a(t,r,e){return e<0&&(e+=1),1<e&&(e-=1),e<1/6?t+6*(r-t)*e:e<.5?r:e<2/3?t+(r-t)*(2/3-e)*6:t}if(0===r)n=o=i=e;else{var u=e<.5?e*(1+r):e+r-e*r,s=2*e-u;n=a(s,u,t+1/3),o=a(s,u,t),i=a(s,u,t-1/3)}return[255*n,255*o,255*i]},n.rgbToXyz=o,n.xyzToCIELab=i,n.rgbToCIELab=a,n.deltaE94=u,n.rgbDiff=s,n.hexDiff=function(t,r){return s(e(t),e(r))},n.getColorDiffStatus=function(t){return t<n.DELTAE94_DIFF_STATUS.NA?"N/A":t<=n.DELTAE94_DIFF_STATUS.PERFECT?"Perfect":t<=n.DELTAE94_DIFF_STATUS.CLOSE?"Close":t<=n.DELTAE94_DIFF_STATUS.GOOD?"Good":t<n.DELTAE94_DIFF_STATUS.SIMILAR?"Similar":"Wrong"},n.getColorIndex=function(t,r,e){return(t<<2*n.SIGBITS)+(r<<n.SIGBITS)+e}},function(t,r,e){var n=e(47),o=e(23);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},function(t,r,e){var n=e(20);t.exports=function(t){if("string"==typeof t||n(t))return t;var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}},function(t,r,e){var c=e(58),f=e(59);t.exports=function(t,r,e,n){var o=!e;e=e||{};for(var i=-1,a=r.length;++i<a;){var u=r[i],s=n?n(e[u],t[u],u,e,t):void 0;void 0===s&&(s=t[u]),o?f(e,u,s):c(e,u,s)}return e}},function(t,r){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,r,e){var n=e(86),o=e(87),i=e(88),a=e(89),u=e(90);function s(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,t.exports=s},function(t,r,e){var n=e(8);t.exports=function(t,r){for(var e=t.length;e--;)if(n(t[e][0],r))return e;return-1}},function(t,r,e){var n=e(4)(Object,"create");t.exports=n},function(t,r,e){var n=e(108);t.exports=function(t,r){var e=t.__data__;return n(r)?e["string"==typeof r?"string":"hash"]:e.map}},function(t,r,e){var n=e(122),o=e(28),i=e(123),a=e(124),u=e(125),s=e(6),c=e(49),f="[object Map]",h="[object Promise]",l="[object Set]",p="[object WeakMap]",v="[object DataView]",b=c(n),g=c(o),y=c(i),d=c(a),m=c(u),_=s;(n&&_(new n(new ArrayBuffer(1)))!=v||o&&_(new o)!=f||i&&_(i.resolve())!=h||a&&_(new a)!=l||u&&_(new u)!=p)&&(_=function(t){var r=s(t),e="[object Object]"==r?t.constructor:void 0,n=e?c(e):"";if(n)switch(n){case b:return v;case g:return f;case y:return h;case d:return l;case m:return p}return r}),t.exports=_},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var o=e(9),n=e(69),i=(a.applyFilter=function(t,o){return"function"==typeof o?n(t,function(t){var r=t.r,e=t.g,n=t.b;return o(r,e,n,255)}):t},Object.defineProperty(a.prototype,"r",{get:function(){return this._rgb[0]},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"g",{get:function(){return this._rgb[1]},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"b",{get:function(){return this._rgb[2]},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"rgb",{get:function(){return this._rgb},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"hsl",{get:function(){if(!this._hsl){var t=this._rgb,r=t[0],e=t[1],n=t[2];this._hsl=o.rgbToHsl(r,e,n)}return this._hsl},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"hex",{get:function(){if(!this._hex){var t=this._rgb,r=t[0],e=t[1],n=t[2];this._hex=o.rgbToHex(r,e,n)}return this._hex},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"population",{get:function(){return this._population},enumerable:!0,configurable:!0}),a.prototype.toJSON=function(){return{rgb:this.rgb,population:this.population}},a.prototype.getRgb=function(){return this._rgb},a.prototype.getHsl=function(){return this.hsl},a.prototype.getPopulation=function(){return this._population},a.prototype.getHex=function(){return this.hex},a.prototype.getYiq=function(){if(!this._yiq){var t=this._rgb;this._yiq=(299*t[0]+587*t[1]+114*t[2])/1e3}return this._yiq},Object.defineProperty(a.prototype,"titleTextColor",{get:function(){return this._titleTextColor||(this._titleTextColor=this.getYiq()<200?"#fff":"#000"),this._titleTextColor},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"bodyTextColor",{get:function(){return this._bodyTextColor||(this._bodyTextColor=this.getYiq()<150?"#fff":"#000"),this._bodyTextColor},enumerable:!0,configurable:!0}),a.prototype.getTitleTextColor=function(){return this.titleTextColor},a.prototype.getBodyTextColor=function(){return this.bodyTextColor},a);function a(t,r){this._rgb=t,this._population=r}r.Swatch=i},function(t,r,e){var n=e(6),o=e(2);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==n(t)}},function(t,u,s){(function(t){var r=s(1),e=s(79),n=u&&!u.nodeType&&u,o=n&&"object"==typeof t&&t&&!t.nodeType&&t,i=o&&o.exports===n?r.Buffer:void 0,a=(i?i.isBuffer:void 0)||e;t.exports=a}).call(this,s(13)(t))},function(t,r){var n=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var e=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==e||"symbol"!=e&&n.test(t))&&-1<t&&t%1==0&&t<r}},function(t,r){t.exports=function(t){return"number"==typeof t&&-1<t&&t%1==0&&t<=9007199254740991}},function(t,r){t.exports=function(r){return function(t){return r(t)}}},function(t,a,u){(function(t){var r=u(43),e=a&&!a.nodeType&&a,n=e&&"object"==typeof t&&t&&!t.nodeType&&t,o=n&&n.exports===e&&r.process,i=function(){try{var t=n&&n.require&&n.require("util").types;return t||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=i}).call(this,u(13)(t))},function(t,r){var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},function(t,r,e){var n=e(14),o=e(91),i=e(92),a=e(93),u=e(94),s=e(95);function c(t){var r=this.__data__=new n(t);this.size=r.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=u,c.prototype.set=s,t.exports=c},function(t,r,e){var n=e(4)(e(1),"Map");t.exports=n},function(t,r,e){var n=e(100),o=e(107),i=e(109),a=e(110),u=e(111);function s(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,t.exports=s},function(t,r,e){var n=e(41),o=e(55),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,u=a?function(r){return null==r?[]:(r=Object(r),n(a(r),function(t){return i.call(r,t)}))}:o;t.exports=u},function(t,r,e){var n=e(0),o=e(32),i=e(129),a=e(132);t.exports=function(t,r){return n(t)?t:o(t,r)?[t]:i(a(t))}},function(t,r,e){var n=e(0),o=e(20),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,r){if(n(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!o(t))||(a.test(t)||!i.test(t)||null!=r&&t in Object(r))}},function(t,r){t.exports=function(t){return t}},function(t,r,e){var n=e(42),o=e(145),i=e(10);t.exports=function(t){return i(t)?n(t,!0):o(t)}},function(t,r,e){var n=e(52);t.exports=function(t){var r=new t.constructor(t.byteLength);return new n(r).set(new n(t)),r}},function(t,r,e){var n=e(76),o=e(2),i=Object.prototype,a=i.hasOwnProperty,u=i.propertyIsEnumerable,s=n(function(){return arguments}())?n:function(t){return o(t)&&a.call(t,"callee")&&!u.call(t,"callee")};t.exports=s},function(t,r){t.exports=function(t,r){for(var e=-1,n=r.length,o=t.length;++e<n;)t[o+e]=r[e];return t}},function(t,r,e){var o=e(31),i=e(11);t.exports=function(t,r){for(var e=0,n=(r=o(r,t)).length;null!=t&&e<n;)t=t[i(r[e++])];return e&&e==n?t:void 0}},function(t,r,e){var n=e(46)(Object.getPrototypeOf,Object);t.exports=n},function(t,r,e){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var r={};if(null!=t)for(var e in t)Object.hasOwnProperty.call(t,e)&&(r[e]=t[e]);return r.default=t,r};Object.defineProperty(r,"__esModule",{value:!0});var i=e(19),a=n(e(140)),u=o(e(9)),s=o(e(163)),c=o(e(167)),f=o(e(175)),h=e(62),l=(p.from=function(t){return new a.default(t)},p.prototype._process=function(t,r){var e=r.quantizer,n=r.generator;return t.scaleDown(r),t.applyFilter(r.combinedFilter).then(function(t){return e(t.data,r)}).then(function(t){return i.Swatch.applyFilter(t,r.combinedFilter)}).then(function(t){return Promise.resolve(n(t))})},p.prototype.palette=function(){return this.swatches()},p.prototype.swatches=function(){return this._palette},p.prototype.getPalette=function(r){var e=this,n=new this.opts.ImageClass,t=n.load(this._src).then(function(t){return e._process(t,e.opts)}).then(function(t){return e._palette=t,n.remove(),t},function(t){throw n.remove(),t});return r&&t.then(function(t){return r(null,t)},function(t){return r(t)}),t},p.Builder=a.default,p.Quantizer=s,p.Generator=c,p.Filter=f,p.Util=u,p.Swatch=i.Swatch,p.DefaultOpts={colorCount:64,quality:5,generator:c.Default,ImageClass:null,quantizer:s.MMCQ,filters:[f.Default]},p);function p(t,r){this._src=t,this.opts=h({},r,p.DefaultOpts),this.opts.combinedFilter=f.combineFilters(this.opts.filters)}r.default=l},function(t,r){t.exports=function(t,r){for(var e=-1,n=null==t?0:t.length,o=0,i=[];++e<n;){var a=t[e];r(a,e,t)&&(i[o++]=a)}return i}},function(t,r,e){var f=e(75),h=e(36),l=e(0),p=e(21),v=e(22),b=e(45),g=Object.prototype.hasOwnProperty;t.exports=function(t,r){var e=l(t),n=!e&&h(t),o=!e&&!n&&p(t),i=!e&&!n&&!o&&b(t),a=e||n||o||i,u=a?f(t.length,String):[],s=u.length;for(var c in t)!r&&!g.call(t,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||v(c,s))||u.push(c);return u}},function(e,t,r){(function(t){var r="object"==typeof t&&t&&t.Object===Object&&t;e.exports=r}).call(this,r(44))},function(t,r){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,r,e){var n=e(80),o=e(24),i=e(25),a=i&&i.isTypedArray,u=a?o(a):n;t.exports=u},function(t,r){t.exports=function(r,e){return function(t){return r(e(t))}}},function(t,r,e){var n=e(6),o=e(3);t.exports=function(t){if(!o(t))return!1;var r=n(t);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}},function(t,r,e){var n=e(84),o=e(127),i=e(33),a=e(0),u=e(137);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?a(t)?o(t[0],t[1]):n(t):u(t)}},function(t,r){var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,r,e){var a=e(112),u=e(2);t.exports=function t(r,e,n,o,i){return r===e||(null==r||null==e||!u(r)&&!u(e)?r!=r&&e!=e:a(r,e,n,o,t,i))}},function(t,r,e){var g=e(113),y=e(116),d=e(117);t.exports=function(t,r,e,n,o,i){var a=1&e,u=t.length,s=r.length;if(u!=s&&!(a&&u<s))return!1;var c=i.get(t);if(c&&i.get(r))return c==r;var f=-1,h=!0,l=2&e?new g:void 0;for(i.set(t,r),i.set(r,t);++f<u;){var p=t[f],v=r[f];if(n)var b=a?n(v,p,f,r,t,i):n(p,v,f,t,r,i);if(void 0!==b){if(b)continue;h=!1;break}if(l){if(!y(r,function(t,r){if(!d(l,r)&&(p===t||o(p,t,e,n,i)))return l.push(r)})){h=!1;break}}else if(p!==v&&!o(p,v,e,n,i)){h=!1;break}}return i.delete(t),i.delete(r),h}},function(t,r,e){var n=e(1).Uint8Array;t.exports=n},function(t,r,e){var n=e(54),o=e(30),i=e(5);t.exports=function(t){return n(t,i,o)}},function(t,r,e){var o=e(37),i=e(0);t.exports=function(t,r,e){var n=r(t);return i(t)?n:o(n,e(t))}},function(t,r){t.exports=function(){return[]}},function(t,r,e){var n=e(3);t.exports=function(t){return t==t&&!n(t)}},function(t,r){t.exports=function(r,e){return function(t){return null!=t&&(t[r]===e&&(void 0!==e||r in Object(t)))}}},function(t,r,e){var o=e(59),i=e(8),a=Object.prototype.hasOwnProperty;t.exports=function(t,r,e){var n=t[r];a.call(t,r)&&i(n,e)&&(void 0!==e||r in t)||o(t,r,e)}},function(t,r,e){var n=e(60);t.exports=function(t,r,e){"__proto__"==r&&n?n(t,r,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[r]=e}},function(t,r,e){var n=e(4),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},function(t,r,e){var n=e(37),o=e(39),i=e(30),a=e(55),u=Object.getOwnPropertySymbols?function(t){for(var r=[];t;)n(r,i(t)),t=o(t);return r}:a;t.exports=u},function(t,r,e){var n=e(169),h=e(8),l=e(174),p=e(34),v=Object.prototype,b=v.hasOwnProperty,o=n(function(t,r){t=Object(t);var e=-1,n=r.length,o=2<n?r[2]:void 0;for(o&&l(r[0],r[1],o)&&(n=1);++e<n;)for(var i=r[e],a=p(i),u=-1,s=a.length;++u<s;){var c=a[u],f=t[c];(void 0===f||h(f,v[c])&&!b.call(t,c))&&(t[c]=i[c])}return t});t.exports=o},function(t,r){t.exports=function(t,r){for(var e=-1,n=null==t?0:t.length,o=Array(n);++e<n;)o[e]=r(t[e],e,t);return o}},function(t,r,e){var y=e(27),d=e(142),m=e(58),_=e(143),x=e(144),j=e(147),w=e(148),O=e(149),S=e(150),A=e(53),M=e(65),I=e(18),C=e(151),T=e(152),P=e(157),D=e(0),L=e(21),k=e(159),F=e(3),E=e(161),V=e(5),z=1,U=2,q=4,R="[object Arguments]",N="[object Function]",H="[object GeneratorFunction]",B="[object Object]",$={};$[R]=$["[object Array]"]=$["[object ArrayBuffer]"]=$["[object DataView]"]=$["[object Boolean]"]=$["[object Date]"]=$["[object Float32Array]"]=$["[object Float64Array]"]=$["[object Int8Array]"]=$["[object Int16Array]"]=$["[object Int32Array]"]=$["[object Map]"]=$["[object Number]"]=$[B]=$["[object RegExp]"]=$["[object Set]"]=$["[object String]"]=$["[object Symbol]"]=$["[object Uint8Array]"]=$["[object Uint8ClampedArray]"]=$["[object Uint16Array]"]=$["[object Uint32Array]"]=!0,$["[object Error]"]=$[N]=$["[object WeakMap]"]=!1,t.exports=function e(n,o,i,t,r,a){var u,s=o&z,c=o&U,f=o&q;if(i&&(u=r?i(n,t,r,a):i(n)),void 0!==u)return u;if(!F(n))return n;var h=D(n);if(h){if(u=C(n),!s)return w(n,u)}else{var l=I(n),p=l==N||l==H;if(L(n))return j(n,s);if(l==B||l==R||p&&!r){if(u=c||p?{}:P(n),!s)return c?S(n,x(u,n)):O(n,_(u,n))}else{if(!$[l])return r?n:{};u=T(n,l,s)}}var v=(a=a||new y).get(n);if(v)return v;a.set(n,u),E(n)?n.forEach(function(t){u.add(e(t,o,i,t,n,a))}):k(n)&&n.forEach(function(t,r){u.set(r,e(t,o,i,r,n,a))});var b=f?c?M:A:c?keysIn:V,g=h?void 0:b(n);return d(g||n,function(t,r){g&&(t=n[r=t]),m(u,r,e(t,o,i,r,n,a))}),u}},function(t,r,e){var n=e(54),o=e(61),i=e(34);t.exports=function(t){return n(t,i,o)}},function(t,r,e){var s=e(170),c=Math.max;t.exports=function(i,a,u){return a=c(void 0===a?i.length-1:a,0),function(){for(var t=arguments,r=-1,e=c(t.length-a,0),n=Array(e);++r<e;)n[r]=t[a+r];r=-1;for(var o=Array(a+1);++r<a;)o[r]=t[r];return o[a]=u(n),s(i,this,o)}}},function(t,r,e){var n=e(171),o=e(173)(n);t.exports=o},function(t,r,e){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},o=n(e(40)),i=n(e(177));o.default.DefaultOpts.ImageClass=i.default,t.exports=o.default},function(t,r,e){var n=e(41),o=e(70),i=e(48),a=e(0);t.exports=function(t,r){return(a(t)?n:o)(t,i(r,3))}},function(t,r,e){var i=e(71);t.exports=function(t,n){var o=[];return i(t,function(t,r,e){n(t,r,e)&&o.push(t)}),o}},function(t,r,e){var n=e(72),o=e(83)(n);t.exports=o},function(t,r,e){var n=e(73),o=e(5);t.exports=function(t,r){return t&&n(t,r,o)}},function(t,r,e){var n=e(74)();t.exports=n},function(t,r){t.exports=function(s){return function(t,r,e){for(var n=-1,o=Object(t),i=e(t),a=i.length;a--;){var u=i[s?a:++n];if(!1===r(o[u],u,o))break}return t}}},function(t,r){t.exports=function(t,r){for(var e=-1,n=Array(t);++e<t;)n[e]=r(e);return n}},function(t,r,e){var n=e(6),o=e(2);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},function(t,r,e){var n=e(7),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,u=n?n.toStringTag:void 0;t.exports=function(t){var r=i.call(t,u),e=t[u];try{var n=!(t[u]=void 0)}catch(t){}var o=a.call(t);return n&&(r?t[u]=e:delete t[u]),o}},function(t,r){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},function(t,r){t.exports=function(){return!1}},function(t,r,e){var n=e(6),o=e(23),i=e(2),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!a[n(t)]}},function(t,r,e){var n=e(26),o=e(82),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var r=[];for(var e in Object(t))i.call(t,e)&&"constructor"!=e&&r.push(e);return r}},function(t,r,e){var n=e(46)(Object.keys,Object);t.exports=n},function(t,r,e){var u=e(10);t.exports=function(i,a){return function(t,r){if(null==t)return t;if(!u(t))return i(t,r);for(var e=t.length,n=a?e:-1,o=Object(t);(a?n--:++n<e)&&!1!==r(o[n],n,o););return t}}},function(t,r,e){var n=e(85),o=e(126),i=e(57);t.exports=function(r){var e=o(r);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(t){return t===r||n(t,r,e)}}},function(t,r,e){var p=e(27),v=e(50);t.exports=function(t,r,e,n){var o=e.length,i=o,a=!n;if(null==t)return!i;for(t=Object(t);o--;){var u=e[o];if(a&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++o<i;){var s=(u=e[o])[0],c=t[s],f=u[1];if(a&&u[2]){if(void 0===c&&!(s in t))return!1}else{var h=new p;if(n)var l=n(c,f,s,t,r,h);if(!(void 0===l?v(f,c,3,n,h):l))return!1}}return!0}},function(t,r){t.exports=function(){this.__data__=[],this.size=0}},function(t,r,e){var n=e(15),o=Array.prototype.splice;t.exports=function(t){var r=this.__data__,e=n(r,t);return!(e<0)&&(e==r.length-1?r.pop():o.call(r,e,1),--this.size,!0)}},function(t,r,e){var n=e(15);t.exports=function(t){var r=this.__data__,e=n(r,t);return e<0?void 0:r[e][1]}},function(t,r,e){var n=e(15);t.exports=function(t){return-1<n(this.__data__,t)}},function(t,r,e){var o=e(15);t.exports=function(t,r){var e=this.__data__,n=o(e,t);return n<0?(++this.size,e.push([t,r])):e[n][1]=r,this}},function(t,r,e){var n=e(14);t.exports=function(){this.__data__=new n,this.size=0}},function(t,r){t.exports=function(t){var r=this.__data__,e=r.delete(t);return this.size=r.size,e}},function(t,r){t.exports=function(t){return this.__data__.get(t)}},function(t,r){t.exports=function(t){return this.__data__.has(t)}},function(t,r,e){var o=e(14),i=e(28),a=e(29);t.exports=function(t,r){var e=this.__data__;if(e instanceof o){var n=e.__data__;if(!i||n.length<199)return n.push([t,r]),this.size=++e.size,this;e=this.__data__=new a(n)}return e.set(t,r),this.size=e.size,this}},function(t,r,e){var n=e(47),o=e(97),i=e(3),a=e(49),u=/^\[object .+?Constructor\]$/,s=Function.prototype,c=Object.prototype,f=s.toString,h=c.hasOwnProperty,l=RegExp("^"+f.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(n(t)?l:u).test(a(t))}},function(t,r,e){var n,o=e(98),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!i&&i in t}},function(t,r,e){var n=e(1)["__core-js_shared__"];t.exports=n},function(t,r){t.exports=function(t,r){return null==t?void 0:t[r]}},function(t,r,e){var n=e(101),o=e(14),i=e(28);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},function(t,r,e){var n=e(102),o=e(103),i=e(104),a=e(105),u=e(106);function s(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,t.exports=s},function(t,r,e){var n=e(16);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},function(t,r){t.exports=function(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}},function(t,r,e){var n=e(16),o=Object.prototype.hasOwnProperty;t.exports=function(t){var r=this.__data__;if(n){var e=r[t];return"__lodash_hash_undefined__"===e?void 0:e}return o.call(r,t)?r[t]:void 0}},function(t,r,e){var n=e(16),o=Object.prototype.hasOwnProperty;t.exports=function(t){var r=this.__data__;return n?void 0!==r[t]:o.call(r,t)}},function(t,r,e){var n=e(16);t.exports=function(t,r){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=n&&void 0===r?"__lodash_hash_undefined__":r,this}},function(t,r,e){var n=e(17);t.exports=function(t){var r=n(this,t).delete(t);return this.size-=r?1:0,r}},function(t,r){t.exports=function(t){var r=typeof t;return"string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t}},function(t,r,e){var n=e(17);t.exports=function(t){return n(this,t).get(t)}},function(t,r,e){var n=e(17);t.exports=function(t){return n(this,t).has(t)}},function(t,r,e){var o=e(17);t.exports=function(t,r){var e=o(this,t),n=e.size;return e.set(t,r),this.size+=e.size==n?0:1,this}},function(t,r,e){var b=e(27),g=e(51),y=e(118),d=e(121),m=e(18),_=e(0),x=e(21),j=e(45),w="[object Arguments]",O="[object Array]",S="[object Object]",A=Object.prototype.hasOwnProperty;t.exports=function(t,r,e,n,o,i){var a=_(t),u=_(r),s=a?O:m(t),c=u?O:m(r),f=(s=s==w?S:s)==S,h=(c=c==w?S:c)==S,l=s==c;if(l&&x(t)){if(!x(r))return!1;f=!(a=!0)}if(l&&!f)return i=i||new b,a||j(t)?g(t,r,e,n,o,i):y(t,r,s,e,n,o,i);if(!(1&e)){var p=f&&A.call(t,"__wrapped__"),v=h&&A.call(r,"__wrapped__");if(p||v)return o(p?t.value():t,v?r.value():r,e,n,i=i||new b)}return l&&(i=i||new b,d(t,r,e,n,o,i))}},function(t,r,e){var n=e(29),o=e(114),i=e(115);function a(t){var r=-1,e=null==t?0:t.length;for(this.__data__=new n;++r<e;)this.add(t[r])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,t.exports=a},function(t,r){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},function(t,r){t.exports=function(t){return this.__data__.has(t)}},function(t,r){t.exports=function(t,r){for(var e=-1,n=null==t?0:t.length;++e<n;)if(r(t[e],e,t))return!0;return!1}},function(t,r){t.exports=function(t,r){return t.has(r)}},function(t,r,e){var n=e(7),h=e(52),l=e(8),p=e(51),v=e(119),b=e(120),o=n?n.prototype:void 0,g=o?o.valueOf:void 0;t.exports=function(t,r,e,n,o,i,a){switch(e){case"[object DataView]":if(t.byteLength!=r.byteLength||t.byteOffset!=r.byteOffset)return!1;t=t.buffer,r=r.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=r.byteLength||!i(new h(t),new h(r)));case"[object Boolean]":case"[object Date]":case"[object Number]":return l(+t,+r);case"[object Error]":return t.name==r.name&&t.message==r.message;case"[object RegExp]":case"[object String]":return t==r+"";case"[object Map]":var u=v;case"[object Set]":var s=1&n;if(u=u||b,t.size!=r.size&&!s)return!1;var c=a.get(t);if(c)return c==r;n|=2,a.set(t,r);var f=p(u(t),u(r),n,o,i,a);return a.delete(t),f;case"[object Symbol]":if(g)return g.call(t)==g.call(r)}return!1}},function(t,r){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}},function(t,r){t.exports=function(t){var r=-1,e=Array(t.size);return t.forEach(function(t){e[++r]=t}),e}},function(t,r,e){var m=e(53),_=Object.prototype.hasOwnProperty;t.exports=function(t,r,e,n,o,i){var a=1&e,u=m(t),s=u.length;if(s!=m(r).length&&!a)return!1;for(var c=s;c--;){var f=u[c];if(!(a?f in r:_.call(r,f)))return!1}var h=i.get(t);if(h&&i.get(r))return h==r;var l=!0;i.set(t,r),i.set(r,t);for(var p=a;++c<s;){var v=t[f=u[c]],b=r[f];if(n)var g=a?n(b,v,f,r,t,i):n(v,b,f,t,r,i);if(!(void 0===g?v===b||o(v,b,e,n,i):g)){l=!1;break}p=p||"constructor"==f}if(l&&!p){var y=t.constructor,d=r.constructor;y!=d&&"constructor"in t&&"constructor"in r&&!("function"==typeof y&&y instanceof y&&"function"==typeof d&&d instanceof d)&&(l=!1)}return i.delete(t),i.delete(r),l}},function(t,r,e){var n=e(4)(e(1),"DataView");t.exports=n},function(t,r,e){var n=e(4)(e(1),"Promise");t.exports=n},function(t,r,e){var n=e(4)(e(1),"Set");t.exports=n},function(t,r,e){var n=e(4)(e(1),"WeakMap");t.exports=n},function(t,r,e){var i=e(56),a=e(5);t.exports=function(t){for(var r=a(t),e=r.length;e--;){var n=r[e],o=t[n];r[e]=[n,o,i(o)]}return r}},function(t,r,e){var o=e(50),i=e(128),a=e(134),u=e(32),s=e(56),c=e(57),f=e(11);t.exports=function(e,n){return u(e)&&s(n)?c(f(e),n):function(t){var r=i(t,e);return void 0===r&&r===n?a(t,e):o(n,r,3)}}},function(t,r,e){var o=e(38);t.exports=function(t,r,e){var n=null==t?void 0:o(t,r);return void 0===n?e:n}},function(t,r,e){var n=e(130),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,o=n(function(t){var o=[];return 46===t.charCodeAt(0)&&o.push(""),t.replace(i,function(t,r,e,n){o.push(e?n.replace(a,"$1"):r||t)}),o});t.exports=o},function(t,r,e){var n=e(131);t.exports=function(t){var r=n(t,function(t){return 500===e.size&&e.clear(),t}),e=r.cache;return r}},function(t,r,e){var n=e(29),u="Expected a function";function s(o,i){if("function"!=typeof o||null!=i&&"function"!=typeof i)throw new TypeError(u);var a=function(){var t=arguments,r=i?i.apply(this,t):t[0],e=a.cache;if(e.has(r))return e.get(r);var n=o.apply(this,t);return a.cache=e.set(r,n)||e,n};return a.cache=new(s.Cache||n),a}s.Cache=n,t.exports=s},function(t,r,e){var n=e(133);t.exports=function(t){return null==t?"":n(t)}},function(t,r,e){var n=e(7),o=e(63),i=e(0),a=e(20),u=1/0,s=n?n.prototype:void 0,c=s?s.toString:void 0;t.exports=function t(r){if("string"==typeof r)return r;if(i(r))return o(r,t)+"";if(a(r))return c?c.call(r):"";var e=r+"";return"0"==e&&1/r==-u?"-0":e}},function(t,r,e){var n=e(135),o=e(136);t.exports=function(t,r){return null!=t&&o(t,r,n)}},function(t,r){t.exports=function(t,r){return null!=t&&r in Object(t)}},function(t,r,e){var u=e(31),s=e(36),c=e(0),f=e(22),h=e(23),l=e(11);t.exports=function(t,r,e){for(var n=-1,o=(r=u(r,t)).length,i=!1;++n<o;){var a=l(r[n]);if(!(i=null!=t&&e(t,a)))break;t=t[a]}return i||++n!=o?i:!!(o=null==t?0:t.length)&&h(o)&&f(a,o)&&(c(t)||s(t))}},function(t,r,e){var n=e(138),o=e(139),i=e(32),a=e(11);t.exports=function(t){return i(t)?n(a(t)):o(t)}},function(t,r){t.exports=function(r){return function(t){return null==t?void 0:t[r]}}},function(t,r,e){var n=e(38);t.exports=function(r){return function(t){return n(t,r)}}},function(t,r,e){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0});var o=n(e(40)),i=e(141),a=(u.prototype.maxColorCount=function(t){return this._opts.colorCount=t,this},u.prototype.maxDimension=function(t){return this._opts.maxDimension=t,this},u.prototype.addFilter=function(t){return this._opts.filters.push(t),this},u.prototype.removeFilter=function(t){var r=this._opts.filters.indexOf(t);return 0<r&&this._opts.filters.splice(r),this},u.prototype.clearFilters=function(){return this._opts.filters=[],this},u.prototype.quality=function(t){return this._opts.quality=t,this},u.prototype.useImageClass=function(t){return this._opts.ImageClass=t,this},u.prototype.useGenerator=function(t){return this._opts.generator=t,this},u.prototype.useQuantizer=function(t){return this._opts.quantizer=t,this},u.prototype.build=function(){return new o.default(this._src,this._opts)},u.prototype.getPalette=function(t){return this.build().getPalette(t)},u.prototype.getSwatches=function(t){return this.build().getPalette(t)},u);function u(t,r){void 0===r&&(r={}),this._src=t,this._opts=r,this._opts.filters=i(o.default.DefaultOpts.filters)}r.default=a},function(t,r,e){var n=e(64);t.exports=function(t){return n(t,4)}},function(t,r){t.exports=function(t,r){for(var e=-1,n=null==t?0:t.length;++e<n&&!1!==r(t[e],e,t););return t}},function(t,r,e){var n=e(12),o=e(5);t.exports=function(t,r){return t&&n(r,o(r),t)}},function(t,r,e){var n=e(12),o=e(34);t.exports=function(t,r){return t&&n(r,o(r),t)}},function(t,r,e){var o=e(3),i=e(26),a=e(146),u=Object.prototype.hasOwnProperty;t.exports=function(t){if(!o(t))return a(t);var r=i(t),e=[];for(var n in t)("constructor"!=n||!r&&u.call(t,n))&&e.push(n);return e}},function(t,r){t.exports=function(t){var r=[];if(null!=t)for(var e in Object(t))r.push(e);return r}},function(t,a,u){(function(t){var r=u(1),e=a&&!a.nodeType&&a,n=e&&"object"==typeof t&&t&&!t.nodeType&&t,o=n&&n.exports===e?r.Buffer:void 0,i=o?o.allocUnsafe:void 0;t.exports=function(t,r){if(r)return t.slice();var e=t.length,n=i?i(e):new t.constructor(e);return t.copy(n),n}}).call(this,u(13)(t))},function(t,r){t.exports=function(t,r){var e=-1,n=t.length;for(r=r||Array(n);++e<n;)r[e]=t[e];return r}},function(t,r,e){var n=e(12),o=e(30);t.exports=function(t,r){return n(t,o(t),r)}},function(t,r,e){var n=e(12),o=e(61);t.exports=function(t,r){return n(t,o(t),r)}},function(t,r){var n=Object.prototype.hasOwnProperty;t.exports=function(t){var r=t.length,e=new t.constructor(r);return r&&"string"==typeof t[0]&&n.call(t,"index")&&(e.index=t.index,e.input=t.input),e}},function(t,r,e){var o=e(35),i=e(153),a=e(154),u=e(155),s=e(156);t.exports=function(t,r,e){var n=t.constructor;switch(r){case"[object ArrayBuffer]":return o(t);case"[object Boolean]":case"[object Date]":return new n(+t);case"[object DataView]":return i(t,e);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(t,e);case"[object Map]":return new n;case"[object Number]":case"[object String]":return new n(t);case"[object RegExp]":return a(t);case"[object Set]":return new n;case"[object Symbol]":return u(t)}}},function(t,r,e){var n=e(35);t.exports=function(t,r){var e=r?n(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}},function(t,r){var e=/\w*$/;t.exports=function(t){var r=new t.constructor(t.source,e.exec(t));return r.lastIndex=t.lastIndex,r}},function(t,r,e){var n=e(7),o=n?n.prototype:void 0,i=o?o.valueOf:void 0;t.exports=function(t){return i?Object(i.call(t)):{}}},function(t,r,e){var n=e(35);t.exports=function(t,r){var e=r?n(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}},function(t,r,e){var n=e(158),o=e(39),i=e(26);t.exports=function(t){return"function"!=typeof t.constructor||i(t)?{}:n(o(t))}},function(t,r,e){function n(t){if(!o(t))return{};if(i)return i(t);a.prototype=t;var r=new a;return a.prototype=void 0,r}var o=e(3),i=Object.create;function a(){}t.exports=n},function(t,r,e){var n=e(160),o=e(24),i=e(25),a=i&&i.isMap,u=a?o(a):n;t.exports=u},function(t,r,e){var n=e(18),o=e(2);t.exports=function(t){return o(t)&&"[object Map]"==n(t)}},function(t,r,e){var n=e(162),o=e(24),i=e(25),a=i&&i.isSet,u=a?o(a):n;t.exports=u},function(t,r,e){var n=e(18),o=e(2);t.exports=function(t){return o(t)&&"[object Set]"==n(t)}},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e(164);r.MMCQ=n.default,r.WebWorker=null},function(t,r,e){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0});var a=e(19),u=n(e(165)),s=n(e(166));function c(t,r){for(var e=t.size();t.size()<r;){var n=t.pop();if(!(n&&0<n.count()))break;var o=n.split(),i=o[0],a=o[1];if(t.push(i),a&&0<a.count()&&t.push(a),t.size()===e)break;e=t.size()}}r.default=function(t,r){if(0===t.length||r.colorCount<2||256<r.colorCount)throw new Error("Wrong MMCQ parameters");var e=u.default.build(t),n=e.hist,o=(Object.keys(n).length,new s.default(function(t,r){return t.count()-r.count()}));o.push(e),c(o,.75*r.colorCount);var i=new s.default(function(t,r){return t.count()*t.volume()-r.count()*r.volume()});return i.contents=o.contents,c(i,r.colorCount-i.size()),function(t){var r=[];for(;t.size();){var e=t.pop(),n=e.avg();n[0],n[1],n[2];r.push(new a.Swatch(n,e.count()))}return r}(i)}},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var S=e(9),n=(g.build=function(t,r){var e,n,o,i,a,u,s,c,f,h=1<<3*S.SIGBITS,l=new Uint32Array(h);e=o=a=0,n=i=u=Number.MAX_VALUE;for(var p=t.length/4,v=0;v<p;){var b=4*v;v++,s=t[0+b],c=t[1+b],f=t[2+b],0!==t[3+b]&&(s>>=S.RSHIFT,c>>=S.RSHIFT,f>>=S.RSHIFT,l[S.getColorIndex(s,c,f)]+=1,e<s&&(e=s),s<n&&(n=s),o<c&&(o=c),c<i&&(i=c),a<f&&(a=f),f<u&&(u=f))}return new g(n,e,i,o,u,a,l)},g.prototype.invalidate=function(){this._volume=this._count=-1,this._avg=null},g.prototype.volume=function(){if(this._volume<0){var t=this.dimension,r=t.r1,e=t.r2,n=t.g1,o=t.g2,i=t.b1,a=t.b2;this._volume=(e-r+1)*(o-n+1)*(a-i+1)}return this._volume},g.prototype.count=function(){if(this._count<0){for(var t=this.hist,r=this.dimension,e=r.r1,n=r.r2,o=r.g1,i=r.g2,a=r.b1,u=r.b2,s=0,c=e;c<=n;c++)for(var f=o;f<=i;f++)for(var h=a;h<=u;h++)s+=t[S.getColorIndex(c,f,h)];this._count=s}return this._count},g.prototype.clone=function(){var t=this.hist,r=this.dimension;return new g(r.r1,r.r2,r.g1,r.g2,r.b1,r.b2,t)},g.prototype.avg=function(){if(!this._avg){var t=this.hist,r=this.dimension,e=r.r1,n=r.r2,o=r.g1,i=r.g2,a=r.b1,u=r.b2,s=0,c=1<<8-S.SIGBITS,f=void 0,h=void 0,l=void 0;f=h=l=0;for(var p=e;p<=n;p++)for(var v=o;v<=i;v++)for(var b=a;b<=u;b++){var g=t[S.getColorIndex(p,v,b)];s+=g,f+=g*(p+.5)*c,h+=g*(v+.5)*c,l+=g*(b+.5)*c}this._avg=s?[~~(f/s),~~(h/s),~~(l/s)]:[~~(c*(e+n+1)/2),~~(c*(o+i+1)/2),~~(c*(a+u+1)/2)]}return this._avg},g.prototype.contains=function(t){var r=t[0],e=t[1],n=t[2],o=this.dimension,i=o.r1,a=o.r2,u=o.g1,s=o.g2,c=o.b1,f=o.b2;return r>>=S.RSHIFT,e>>=S.RSHIFT,n>>=S.RSHIFT,i<=r&&r<=a&&u<=e&&e<=s&&c<=n&&n<=f},g.prototype.split=function(){var t=this.hist,r=this.dimension,e=r.r1,n=r.r2,o=r.g1,i=r.g2,a=r.b1,u=r.b2,s=this.count();if(!s)return[];if(1===s)return[this.clone()];var c,f,h=n-e+1,l=i-o+1,p=u-a+1,v=Math.max(h,l,p),b=null;c=f=0;var g=null;if(v===h){g="r",b=new Uint32Array(n+1);for(var y=e;y<=n;y++){c=0;for(var d=o;d<=i;d++)for(var m=a;m<=u;m++)c+=t[S.getColorIndex(y,d,m)];f+=c,b[y]=f}}else if(v===l)for(g="g",b=new Uint32Array(i+1),d=o;d<=i;d++){for(c=0,y=e;y<=n;y++)for(m=a;m<=u;m++)c+=t[S.getColorIndex(y,d,m)];f+=c,b[d]=f}else for(g="b",b=new Uint32Array(u+1),m=a;m<=u;m++){for(c=0,y=e;y<=n;y++)for(d=o;d<=i;d++)c+=t[S.getColorIndex(y,d,m)];f+=c,b[m]=f}for(var _=-1,x=new Uint32Array(b.length),j=0;j<b.length;j++){var w=b[j];_<0&&f/2<w&&(_=j),x[j]=f-w}var O=this;return function(t){var r=t+"1",e=t+"2",n=O.dimension[r],o=O.dimension[e],i=O.clone(),a=O.clone(),u=_-n,s=o-_;for(o=u<=s?(o=Math.min(o-1,~~(_+s/2)),Math.max(0,o)):(o=Math.max(n,~~(_-1-u/2)),Math.min(O.dimension[e],o));!b[o];)o++;for(var c=x[o];!c&&b[o-1];)c=x[--o];return i.dimension[e]=o,a.dimension[r]=o+1,[i,a]}(g)},g);function g(t,r,e,n,o,i,a){this._volume=-1,this._count=-1,this.dimension={r1:t,r2:r,g1:e,g2:n,b1:o,b2:i},this.hist=a}r.default=n},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=(o.prototype._sort=function(){this._sorted||(this.contents.sort(this._comparator),this._sorted=!0)},o.prototype.push=function(t){this.contents.push(t),this._sorted=!1},o.prototype.peek=function(t){return this._sort(),t="number"==typeof t?t:this.contents.length-1,this.contents[t]},o.prototype.pop=function(){return this._sort(),this.contents.pop()},o.prototype.size=function(){return this.contents.length},o.prototype.map=function(t){return this._sort(),this.contents.map(t)},o);function o(t){this._comparator=t,this.contents=[],this._sorted=!1}r.default=n},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e(168);r.Default=n.default},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var b=e(19),g=e(9),c=e(62),f={targetDarkLuma:.26,maxDarkLuma:.45,minLightLuma:.55,targetLightLuma:.74,minNormalLuma:.3,targetNormalLuma:.5,maxNormalLuma:.7,targetMutesSaturation:.3,maxMutesSaturation:.4,targetVibrantSaturation:1,minVibrantSaturation:.35,weightSaturation:3,weightLuma:6.5,weightPopulation:.5};function d(t,r,e,n,o,i,a){function u(t,r){return 1-Math.abs(t-r)}return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var e=0,n=0,o=0;o<t.length;o+=2){var i=t[o],a=t[o+1];e+=i*a,n+=a}return e/n}(u(t,r),a.weightSaturation,u(e,n),a.weightLuma,o/i,a.weightPopulation)}function h(u,t,s,c,f,h,l,p,v,b){var g=null,y=0;return t.forEach(function(t){var r,e,n=t.getHsl(),o=n[1],i=n[2];if(p<=o&&o<=v&&f<=i&&i<=h&&(e=t,(r=u).Vibrant!==e&&r.DarkVibrant!==e&&r.LightVibrant!==e&&r.Muted!==e&&r.DarkMuted!==e&&r.LightMuted!==e)){var a=d(o,l,i,c,t.getPopulation(),s,b);(null===g||y<a)&&(g=t,y=a)}}),g}r.default=function(t,r){r=c({},r,f);var e,n,o,i,a,u=(e=0,t.forEach(function(t){e=Math.max(e,t.getPopulation())}),e),s=((a={}).Vibrant=h(a,n=t,o=u,(i=r).targetNormalLuma,i.minNormalLuma,i.maxNormalLuma,i.targetVibrantSaturation,i.minVibrantSaturation,1,i),a.LightVibrant=h(a,n,o,i.targetLightLuma,i.minLightLuma,1,i.targetVibrantSaturation,i.minVibrantSaturation,1,i),a.DarkVibrant=h(a,n,o,i.targetDarkLuma,0,i.maxDarkLuma,i.targetVibrantSaturation,i.minVibrantSaturation,1,i),a.Muted=h(a,n,o,i.targetNormalLuma,i.minNormalLuma,i.maxNormalLuma,i.targetMutesSaturation,0,i.maxMutesSaturation,i),a.LightMuted=h(a,n,o,i.targetLightLuma,i.minLightLuma,1,i.targetMutesSaturation,0,i.maxMutesSaturation,i),a.DarkMuted=h(a,n,o,i.targetDarkLuma,0,i.maxDarkLuma,i.targetMutesSaturation,0,i.maxMutesSaturation,i),a);return function(t,r,e){if(null===t.Vibrant&&null===t.DarkVibrant&&null===t.LightVibrant){if(null===t.DarkVibrant&&null!==t.DarkMuted){var n=t.DarkMuted.getHsl(),o=n[0],i=n[1],a=n[2];a=e.targetDarkLuma,t.DarkVibrant=new b.Swatch(g.hslToRgb(o,i,a),0)}if(null===t.LightVibrant&&null!==t.LightMuted){var u=t.LightMuted.getHsl();o=u[0],i=u[1],a=u[2];a=e.targetDarkLuma,t.DarkVibrant=new b.Swatch(g.hslToRgb(o,i,a),0)}}if(null===t.Vibrant&&null!==t.DarkVibrant){var s=t.DarkVibrant.getHsl();o=s[0],i=s[1],a=s[2];a=e.targetNormalLuma,t.Vibrant=new b.Swatch(g.hslToRgb(o,i,a),0)}else if(null===t.Vibrant&&null!==t.LightVibrant){var c=t.LightVibrant.getHsl();o=c[0],i=c[1],a=c[2];a=e.targetNormalLuma,t.Vibrant=new b.Swatch(g.hslToRgb(o,i,a),0)}if(null===t.DarkVibrant&&null!==t.Vibrant){var f=t.Vibrant.getHsl();o=f[0],i=f[1],a=f[2];a=e.targetDarkLuma,t.DarkVibrant=new b.Swatch(g.hslToRgb(o,i,a),0)}if(null===t.LightVibrant&&null!==t.Vibrant){var h=t.Vibrant.getHsl();o=h[0],i=h[1],a=h[2];a=e.targetLightLuma,t.LightVibrant=new b.Swatch(g.hslToRgb(o,i,a),0)}if(null===t.Muted&&null!==t.Vibrant){var l=t.Vibrant.getHsl();o=l[0],i=l[1],a=l[2];a=e.targetMutesSaturation,t.Muted=new b.Swatch(g.hslToRgb(o,i,a),0)}if(null===t.DarkMuted&&null!==t.DarkVibrant){var p=t.DarkVibrant.getHsl();o=p[0],i=p[1],a=p[2];a=e.targetMutesSaturation,t.DarkMuted=new b.Swatch(g.hslToRgb(o,i,a),0)}if(null===t.LightMuted&&null!==t.LightVibrant){var v=t.LightVibrant.getHsl();o=v[0],i=v[1],a=v[2];a=e.targetMutesSaturation,t.LightMuted=new b.Swatch(g.hslToRgb(o,i,a),0)}}(s,0,r),s}},function(t,r,e){var n=e(33),o=e(66),i=e(67);t.exports=function(t,r){return i(o(t,r,n),t+"")}},function(t,r){t.exports=function(t,r,e){switch(e.length){case 0:return t.call(r);case 1:return t.call(r,e[0]);case 2:return t.call(r,e[0],e[1]);case 3:return t.call(r,e[0],e[1],e[2])}return t.apply(r,e)}},function(t,r,e){var n=e(172),o=e(60),i=e(33),a=o?function(t,r){return o(t,"toString",{configurable:!0,enumerable:!1,value:n(r),writable:!0})}:i;t.exports=a},function(t,r){t.exports=function(t){return function(){return t}}},function(t,r){var i=Date.now;t.exports=function(e){var n=0,o=0;return function(){var t=i(),r=16-(t-o);if(o=t,0<r){if(800<=++n)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},function(t,r,e){var o=e(8),i=e(10),a=e(22),u=e(3);t.exports=function(t,r,e){if(!u(e))return!1;var n=typeof r;return!!("number"==n?i(e)&&a(r,e.length):"string"==n&&r in e)&&o(e[r],t)}},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e(176);r.Default=n.default,r.combineFilters=function(i){return Array.isArray(i)&&0!==i.length?function(t,r,e,n){if(0===n)return!1;for(var o=0;o<i.length;o++)if(!i[o](t,r,e,n))return!1;return!0}:null}},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(t,r,e,n){return 125<=n&&!(250<t&&250<r&&250<e)}},function(t,r,e){"use strict";var n,o=this&&this.__extends||(n=function(t,r){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)r.hasOwnProperty(e)&&(t[e]=r[e])})(t,r)},function(t,r){function e(){this.constructor=t}n(t,r),t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var r={};if(null!=t)for(var e in t)Object.hasOwnProperty.call(t,e)&&(r[e]=t[e]);return r.default=t,r};Object.defineProperty(r,"__esModule",{value:!0});var a=e(178),f=i(e(179));var u,s=(u=a.ImageBase,o(c,u),c.prototype._initCanvas=function(){var t=this.image,r=this._canvas=document.createElement("canvas"),e=this._context=r.getContext("2d");r.className="vibrant-canvas",r.style.display="none",this._width=r.width=t.width,this._height=r.height=t.height,e.drawImage(t,0,0),document.body.appendChild(r)},c.prototype.load=function(t){var r,e,n,o,i,a,u=this,s=null,c=null;if("string"==typeof t)s=document.createElement("img"),i=t,null===(a=f.parse(i)).protocol&&null===a.host&&null===a.port||(r=window.location.href,e=t,n=f.parse(r),o=f.parse(e),n.protocol===o.protocol&&n.hostname===o.hostname&&n.port===o.port)||(s.crossOrigin="anonymous"),c=s.src=t;else{if(!(t instanceof HTMLImageElement))return Promise.reject(new Error("Cannot load buffer as an image in browser"));c=(s=t).src}return this.image=s,new Promise(function(t,r){function e(){u._initCanvas(),t(u)}s.complete?e():(s.onload=e,s.onerror=function(t){return r(new Error("Fail to load image: "+c))})})},c.prototype.clear=function(){this._context.clearRect(0,0,this._width,this._height)},c.prototype.update=function(t){this._context.putImageData(t,0,0)},c.prototype.getWidth=function(){return this._width},c.prototype.getHeight=function(){return this._height},c.prototype.resize=function(t,r,e){var n=this._canvas,o=this._context,i=this.image;this._width=n.width=t,this._height=n.height=r,o.scale(e,e),o.drawImage(i,0,0)},c.prototype.getPixelCount=function(){return this._width*this._height},c.prototype.getImageData=function(){return this._context.getImageData(0,0,this._width,this._height)},c.prototype.remove=function(){this._canvas&&this._canvas.parentNode&&this._canvas.parentNode.removeChild(this._canvas)},c);function c(){return null!==u&&u.apply(this,arguments)||this}r.default=s},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=(o.prototype.scaleDown=function(t){var r=this.getWidth(),e=this.getHeight(),n=1;if(0<t.maxDimension){var o=Math.max(r,e);o>t.maxDimension&&(n=t.maxDimension/o)}else n=1/t.quality;n<1&&this.resize(r*n,e*n,n)},o.prototype.applyFilter=function(t){var r=this.getImageData();if("function"==typeof t)for(var e=r.data,n=e.length/4,o=void 0,i=0;i<n;i++)t(e[0+(o=4*i)],e[o+1],e[o+2],e[o+3])||(e[o+3]=0);return Promise.resolve(r)},o);function o(){}r.ImageBase=n},function(t,r,e){"use strict";var L=e(180),k=e(181);function M(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}r.parse=i,r.resolve=function(t,r){return i(t,!1,!0).resolve(r)},r.resolveObject=function(t,r){return t?i(t,!1,!0).resolveObject(r):r},r.format=function(t){k.isString(t)&&(t=i(t));return t instanceof M?t.format():M.prototype.format.call(t)},r.Url=M;var F=/^([a-z0-9.+-]+:)/i,n=/:[0-9]*$/,E=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,o=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),V=["'"].concat(o),z=["%","/","?",";","#"].concat(V),U=["/","?","#"],q=/^[+a-z0-9A-Z_-]{0,63}$/,R=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,N={javascript:!0,"javascript:":!0},H={javascript:!0,"javascript:":!0},B={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},$=e(182);function i(t,r,e){if(t&&k.isObject(t)&&t instanceof M)return t;var n=new M;return n.parse(t,r,e),n}M.prototype.parse=function(t,r,e){if(!k.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var n=t.indexOf("?"),o=-1!==n&&n<t.indexOf("#")?"?":"#",i=t.split(o);i[0]=i[0].replace(/\\/g,"/");var a=t=i.join(o);if(a=a.trim(),!e&&1===t.split("#").length){var u=E.exec(a);if(u)return this.path=a,this.href=a,this.pathname=u[1],u[2]?(this.search=u[2],this.query=r?$.parse(this.search.substr(1)):this.search.substr(1)):r&&(this.search="",this.query={}),this}var s=F.exec(a);if(s){var c=(s=s[0]).toLowerCase();this.protocol=c,a=a.substr(s.length)}if(e||s||a.match(/^\/\/[^@\/]+@[^@\/]+/)){var f="//"===a.substr(0,2);!f||s&&H[s]||(a=a.substr(2),this.slashes=!0)}if(!H[s]&&(f||s&&!B[s])){for(var h,l,p=-1,v=0;v<U.length;v++){-1!==(b=a.indexOf(U[v]))&&(-1===p||b<p)&&(p=b)}-1!==(l=-1===p?a.lastIndexOf("@"):a.lastIndexOf("@",p))&&(h=a.slice(0,l),a=a.slice(l+1),this.auth=decodeURIComponent(h)),p=-1;for(v=0;v<z.length;v++){var b;-1!==(b=a.indexOf(z[v]))&&(-1===p||b<p)&&(p=b)}-1===p&&(p=a.length),this.host=a.slice(0,p),a=a.slice(p),this.parseHost(),this.hostname=this.hostname||"";var g="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!g)for(var y=this.hostname.split(/\./),d=(v=0,y.length);v<d;v++){var m=y[v];if(m&&!m.match(q)){for(var _="",x=0,j=m.length;x<j;x++)127<m.charCodeAt(x)?_+="x":_+=m[x];if(!_.match(q)){var w=y.slice(0,v),O=y.slice(v+1),S=m.match(R);S&&(w.push(S[1]),O.unshift(S[2])),O.length&&(a="/"+O.join(".")+a),this.hostname=w.join(".");break}}}255<this.hostname.length?this.hostname="":this.hostname=this.hostname.toLowerCase(),g||(this.hostname=L.toASCII(this.hostname));var A=this.port?":"+this.port:"",M=this.hostname||"";this.host=M+A,this.href+=this.host,g&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==a[0]&&(a="/"+a))}if(!N[c])for(v=0,d=V.length;v<d;v++){var I=V[v];if(-1!==a.indexOf(I)){var C=encodeURIComponent(I);C===I&&(C=escape(I)),a=a.split(I).join(C)}}var T=a.indexOf("#");-1!==T&&(this.hash=a.substr(T),a=a.slice(0,T));var P=a.indexOf("?");if(-1!==P?(this.search=a.substr(P),this.query=a.substr(P+1),r&&(this.query=$.parse(this.query)),a=a.slice(0,P)):r&&(this.search="",this.query={}),a&&(this.pathname=a),B[c]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){A=this.pathname||"";var D=this.search||"";this.path=A+D}return this.href=this.format(),this},M.prototype.format=function(){var t=this.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var r=this.protocol||"",e=this.pathname||"",n=this.hash||"",o=!1,i="";this.host?o=t+this.host:this.hostname&&(o=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&k.isObject(this.query)&&Object.keys(this.query).length&&(i=$.stringify(this.query));var a=this.search||i&&"?"+i||"";return r&&":"!==r.substr(-1)&&(r+=":"),this.slashes||(!r||B[r])&&!1!==o?(o="//"+(o||""),e&&"/"!==e.charAt(0)&&(e="/"+e)):o=o||"",n&&"#"!==n.charAt(0)&&(n="#"+n),a&&"?"!==a.charAt(0)&&(a="?"+a),r+o+(e=e.replace(/[?#]/g,function(t){return encodeURIComponent(t)}))+(a=a.replace("#","%23"))+n},M.prototype.resolve=function(t){return this.resolveObject(i(t,!1,!0)).format()},M.prototype.resolveObject=function(t){if(k.isString(t)){var r=new M;r.parse(t,!1,!0),t=r}for(var e=new M,n=Object.keys(this),o=0;o<n.length;o++){var i=n[o];e[i]=this[i]}if(e.hash=t.hash,""===t.href)return e.href=e.format(),e;if(t.slashes&&!t.protocol){for(var a=Object.keys(t),u=0;u<a.length;u++){var s=a[u];"protocol"!==s&&(e[s]=t[s])}return B[e.protocol]&&e.hostname&&!e.pathname&&(e.path=e.pathname="/"),e.href=e.format(),e}if(t.protocol&&t.protocol!==e.protocol){if(!B[t.protocol]){for(var c=Object.keys(t),f=0;f<c.length;f++){var h=c[f];e[h]=t[h]}return e.href=e.format(),e}if(e.protocol=t.protocol,t.host||H[t.protocol])e.pathname=t.pathname;else{for(var l=(t.pathname||"").split("/");l.length&&!(t.host=l.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==l[0]&&l.unshift(""),l.length<2&&l.unshift(""),e.pathname=l.join("/")}if(e.search=t.search,e.query=t.query,e.host=t.host||"",e.auth=t.auth,e.hostname=t.hostname||t.host,e.port=t.port,e.pathname||e.search){var p=e.pathname||"",v=e.search||"";e.path=p+v}return e.slashes=e.slashes||t.slashes,e.href=e.format(),e}var b=e.pathname&&"/"===e.pathname.charAt(0),g=t.host||t.pathname&&"/"===t.pathname.charAt(0),y=g||b||e.host&&t.pathname,d=y,m=e.pathname&&e.pathname.split("/")||[],_=(l=t.pathname&&t.pathname.split("/")||[],e.protocol&&!B[e.protocol]);if(_&&(e.hostname="",e.port=null,e.host&&(""===m[0]?m[0]=e.host:m.unshift(e.host)),e.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===l[0]?l[0]=t.host:l.unshift(t.host)),t.host=null),y=y&&(""===l[0]||""===m[0])),g)e.host=t.host||""===t.host?t.host:e.host,e.hostname=t.hostname||""===t.hostname?t.hostname:e.hostname,e.search=t.search,e.query=t.query,m=l;else if(l.length)(m=m||[]).pop(),m=m.concat(l),e.search=t.search,e.query=t.query;else if(!k.isNullOrUndefined(t.search)){if(_)e.hostname=e.host=m.shift(),(S=!!(e.host&&0<e.host.indexOf("@"))&&e.host.split("@"))&&(e.auth=S.shift(),e.host=e.hostname=S.shift());return e.search=t.search,e.query=t.query,k.isNull(e.pathname)&&k.isNull(e.search)||(e.path=(e.pathname?e.pathname:"")+(e.search?e.search:"")),e.href=e.format(),e}if(!m.length)return e.pathname=null,e.search?e.path="/"+e.search:e.path=null,e.href=e.format(),e;for(var x=m.slice(-1)[0],j=(e.host||t.host||1<m.length)&&("."===x||".."===x)||""===x,w=0,O=m.length;0<=O;O--)"."===(x=m[O])?m.splice(O,1):".."===x?(m.splice(O,1),w++):w&&(m.splice(O,1),w--);if(!y&&!d)for(;w--;)m.unshift("..");!y||""===m[0]||m[0]&&"/"===m[0].charAt(0)||m.unshift(""),j&&"/"!==m.join("/").substr(-1)&&m.push("");var S,A=""===m[0]||m[0]&&"/"===m[0].charAt(0);_&&(e.hostname=e.host=A?"":m.length?m.shift():"",(S=!!(e.host&&0<e.host.indexOf("@"))&&e.host.split("@"))&&(e.auth=S.shift(),e.host=e.hostname=S.shift()));return(y=y||e.host&&m.length)&&!A&&m.unshift(""),m.length?e.pathname=m.join("/"):(e.pathname=null,e.path=null),k.isNull(e.pathname)&&k.isNull(e.search)||(e.path=(e.pathname?e.pathname:"")+(e.search?e.search:"")),e.auth=t.auth||e.auth,e.slashes=e.slashes||t.slashes,e.href=e.format(),e},M.prototype.parseHost=function(){var t=this.host,r=n.exec(t);r&&(":"!==(r=r[0])&&(this.port=r.substr(1)),t=t.substr(0,t.length-r.length)),t&&(this.hostname=t)}},function(t,g,P){(function(p,v){var b;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(){g&&g.nodeType,p&&p.nodeType;var t="object"==typeof v&&v;t.global!==t&&t.window!==t&&t.self;var r,y=2147483647,d=36,m=1,_=26,o=38,i=700,x=72,j=128,w="-",e=/^xn--/,n=/[^\x20-\x7E]/,a=/[\x2E\u3002\uFF0E\uFF61]/g,u={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},s=d-m,O=Math.floor,S=String.fromCharCode;function A(t){throw new RangeError(u[t])}function c(t,r){for(var e=t.length,n=[];e--;)n[e]=r(t[e]);return n}function f(t,r){var e=t.split("@"),n="";return 1<e.length&&(n=e[0]+"@",t=e[1]),n+c((t=t.replace(a,".")).split("."),r).join(".")}function M(t){for(var r,e,n=[],o=0,i=t.length;o<i;)55296<=(r=t.charCodeAt(o++))&&r<=56319&&o<i?56320==(64512&(e=t.charCodeAt(o++)))?n.push(((1023&r)<<10)+(1023&e)+65536):(n.push(r),o--):n.push(r);return n}function I(t){return c(t,function(t){var r="";return 65535<t&&(r+=S((t-=65536)>>>10&1023|55296),t=56320|1023&t),r+=S(t)}).join("")}function C(t,r){return t+22+75*(t<26)-((0!=r)<<5)}function T(t,r,e){var n=0;for(t=e?O(t/i):t>>1,t+=O(t/r);s*_>>1<t;n+=d)t=O(t/s);return O(n+(s+1)*t/(t+o))}function h(t){var r,e,n,o,i,a,u,s,c,f,h,l=[],p=t.length,v=0,b=j,g=x;for((e=t.lastIndexOf(w))<0&&(e=0),n=0;n<e;++n)128<=t.charCodeAt(n)&&A("not-basic"),l.push(t.charCodeAt(n));for(o=0<e?e+1:0;o<p;){for(i=v,a=1,u=d;p<=o&&A("invalid-input"),h=t.charCodeAt(o++),(d<=(s=h-48<10?h-22:h-65<26?h-65:h-97<26?h-97:d)||s>O((y-v)/a))&&A("overflow"),v+=s*a,!(s<(c=u<=g?m:g+_<=u?_:u-g));u+=d)a>O(y/(f=d-c))&&A("overflow"),a*=f;g=T(v-i,r=l.length+1,0==i),O(v/r)>y-b&&A("overflow"),b+=O(v/r),v%=r,l.splice(v++,0,b)}return I(l)}function l(t){var r,e,n,o,i,a,u,s,c,f,h,l,p,v,b,g=[];for(l=(t=M(t)).length,r=j,i=x,a=e=0;a<l;++a)(h=t[a])<128&&g.push(S(h));for(n=o=g.length,o&&g.push(w);n<l;){for(u=y,a=0;a<l;++a)r<=(h=t[a])&&h<u&&(u=h);for(u-r>O((y-e)/(p=n+1))&&A("overflow"),e+=(u-r)*p,r=u,a=0;a<l;++a)if((h=t[a])<r&&++e>y&&A("overflow"),h==r){for(s=e,c=d;!(s<(f=c<=i?m:i+_<=c?_:c-i));c+=d)b=s-f,v=d-f,g.push(S(C(f+b%v,0))),s=O(b/v);g.push(S(C(s,0))),i=T(e,p,n==o),e=0,++n}++e,++r}return g.join("")}r={version:"1.4.1",ucs2:{decode:M,encode:I},decode:h,encode:l,toASCII:function(t){return f(t,function(t){return n.test(t)?"xn--"+l(t):t})},toUnicode:function(t){return f(t,function(t){return e.test(t)?h(t.slice(4).toLowerCase()):t})}},void 0===(b=function(){return r}.call(g,P,g,p))||(p.exports=b)}()}).call(this,P(13)(t),P(44))},function(t,r,e){"use strict";t.exports={isString:function(t){return"string"==typeof t},isObject:function(t){return"object"==typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},function(t,r,e){"use strict";r.decode=r.parse=e(183),r.encode=r.stringify=e(184)},function(t,r,e){"use strict";t.exports=function(t,r,e,n){r=r||"&",e=e||"=";var o={};if("string"!=typeof t||0===t.length)return o;var i=/\+/g;t=t.split(r);var a=1e3;n&&"number"==typeof n.maxKeys&&(a=n.maxKeys);var u,s,c=t.length;0<a&&a<c&&(c=a);for(var f=0;f<c;++f){var h,l,p,v,b=t[f].replace(i,"%20"),g=b.indexOf(e);l=0<=g?(h=b.substr(0,g),b.substr(g+1)):(h=b,""),p=decodeURIComponent(h),v=decodeURIComponent(l),u=o,s=p,Object.prototype.hasOwnProperty.call(u,s)?y(o[p])?o[p].push(v):o[p]=[o[p],v]:o[p]=v}return o};var y=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},function(t,r,e){"use strict";function i(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}}t.exports=function(e,n,o,t){return n=n||"&",o=o||"=",null===e&&(e=void 0),"object"==typeof e?u(s(e),function(t){var r=encodeURIComponent(i(t))+o;return a(e[t])?u(e[t],function(t){return r+encodeURIComponent(i(t))}).join(n):r+encodeURIComponent(i(e[t]))}).join(n):t?encodeURIComponent(i(t))+o+encodeURIComponent(i(e)):""};var a=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function u(t,r){if(t.map)return t.map(r);for(var e=[],n=0;n<t.length;n++)e.push(r(t[n],n));return e}var s=Object.keys||function(t){var r=[];for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&r.push(e);return r}},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e(68);(typeof window==="object"&&window instanceof Window?window:t.exports).Vibrant=n}]);
!function(r){var n={};function o(t){if(n[t])return n[t].exports;var e=n[t]={i:t,l:!1,exports:{}};return r[t].call(e.exports,e,e.exports,o),e.l=!0,e.exports}o.m=r,o.c=n,o.d=function(t,e,r){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(r,n,function(t){return e[t]}.bind(null,n));return r},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=185)}([function(t,e){var r=Array.isArray;t.exports=r},function(t,e,r){var n=r(43),r="object"==typeof self&&self&&self.Object===Object&&self,r=n||r||Function("return this")();t.exports=r},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,r){var n=r(96),o=r(99);t.exports=function(t,e){return e=o(t,e),n(e)?e:void 0}},function(t,e,r){var n=r(42),o=r(81),i=r(10);t.exports=function(t){return(i(t)?n:o)(t)}},function(t,e,r){var n=r(7),o=r(77),i=r(78),u=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":(u&&u in Object(t)?o:i)(t)}},function(t,e,r){r=r(1).Symbol;t.exports=r},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,n,e){"use strict";function r(t){t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return null===t?null:[t[1],t[2],t[3]].map(function(t){return parseInt(t,16)})}function o(t,e,r){return e/=255,r/=255,t=.04045<(t/=255)?Math.pow((t+.005)/1.055,2.4):t/12.92,e=.04045<e?Math.pow((e+.005)/1.055,2.4):e/12.92,r=.04045<r?Math.pow((r+.005)/1.055,2.4):r/12.92,[.4124*(t*=100)+.3576*(e*=100)+.1805*(r*=100),.2126*t+.7152*e+.0722*r,.0193*t+.1192*e+.9505*r]}function i(t,e,r){return e/=100,r/=108.883,t=.008856<(t/=95.047)?Math.pow(t,1/3):7.787*t+16/116,[116*(e=.008856<e?Math.pow(e,1/3):7.787*e+16/116)-16,500*(t-e),200*(e-(r=.008856<r?Math.pow(r,1/3):7.787*r+16/116))]}function u(t,e,r){r=o(t,e,r);return i(r[0],r[1],r[2])}function a(t,e){var r=t[0],n=t[1],o=t[2],i=e[0],u=e[1],a=e[2],s=r-i,t=n-u,e=o-a,o=Math.sqrt(n*n+o*o),r=i-r,a=Math.sqrt(u*u+a*a)-o,e=Math.sqrt(s*s+t*t+e*e),e=Math.sqrt(e)>Math.sqrt(Math.abs(r))+Math.sqrt(Math.abs(a))?Math.sqrt(e*e-r*r-a*a):0;return r/=1,a/=1+.045*o,e/=1+.015*o,Math.sqrt(r*r+a*a+e*e)}function s(t,e){return a(u.apply(void 0,t),u.apply(void 0,e))}Object.defineProperty(n,"__esModule",{value:!0}),n.getColorIndex=n.getColorDiffStatus=n.hexDiff=n.rgbDiff=n.deltaE94=n.rgbToCIELab=n.xyzToCIELab=n.rgbToXyz=n.hslToRgb=n.rgbToHsl=n.rgbToHex=n.hexToRgb=n.defer=n.RSHIFT=n.SIGBITS=n.DELTAE94_DIFF_STATUS=void 0,n.DELTAE94_DIFF_STATUS={NA:0,PERFECT:1,CLOSE:2,GOOD:10,SIMILAR:50},n.SIGBITS=5,n.RSHIFT=8-n.SIGBITS,n.defer=function(){var r,n,t=new Promise(function(t,e){r=t,n=e});return{resolve:r,reject:n,promise:t}},n.hexToRgb=r,n.rgbToHex=function(t,e,r){return"#"+((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1,7)},n.rgbToHsl=function(t,e,r){t/=255,e/=255,r/=255;var n,o=Math.max(t,e,r),i=Math.min(t,e,r),u=(o+i)/2;if(o===i)n=s=0;else{var a=o-i,s=.5<u?a/(2-o-i):a/(o+i);switch(o){case t:n=(e-r)/a+(e<r?6:0);break;case e:n=(r-t)/a+2;break;case r:n=(t-e)/a+4}n/=6}return[n,s,u]},n.hslToRgb=function(t,e,r){var n,o,i;function u(t,e,r){return r<0&&(r+=1),1<r&&--r,r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}return 0===e?n=o=i=r:(n=u(e=2*r-(r=r<.5?r*(1+e):r+e-r*e),r,t+1/3),o=u(e,r,t),i=u(e,r,t-1/3)),[255*n,255*o,255*i]},n.rgbToXyz=o,n.xyzToCIELab=i,n.rgbToCIELab=u,n.deltaE94=a,n.rgbDiff=s,n.hexDiff=function(t,e){return s(r(t),r(e))},n.getColorDiffStatus=function(t){return t<n.DELTAE94_DIFF_STATUS.NA?"N/A":t<=n.DELTAE94_DIFF_STATUS.PERFECT?"Perfect":t<=n.DELTAE94_DIFF_STATUS.CLOSE?"Close":t<=n.DELTAE94_DIFF_STATUS.GOOD?"Good":t<n.DELTAE94_DIFF_STATUS.SIMILAR?"Similar":"Wrong"},n.getColorIndex=function(t,e,r){return(t<<2*n.SIGBITS)+(e<<n.SIGBITS)+r}},function(t,e,r){var n=r(47),o=r(24);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},function(t,e,r){var n=r(21);t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},function(t,e,r){var c=r(58),f=r(59);t.exports=function(t,e,r,n){var o=!r;r=r||{};for(var i=-1,u=e.length;++i<u;){var a=e[i],s=n?n(r[a],t[a],a,r,t):void 0;void 0===s&&(s=t[a]),(o?f:c)(r,a,s)}return r}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,r){var n=r(86),o=r(87),i=r(88),u=r(89),r=r(90);function a(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=o,a.prototype.get=i,a.prototype.has=u,a.prototype.set=r,t.exports=a},function(t,e,r){var n=r(8);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},function(t,e,r){r=r(4)(Object,"create");t.exports=r},function(t,e,r){var n=r(108);t.exports=function(t,e){return t=t.__data__,n(e)?t["string"==typeof e?"string":"hash"]:t.map}},function(t,e,r){var n=r(122),o=r(29),i=r(123),u=r(124),a=r(125),s=r(6),c=r(49),f="[object Map]",l="[object Promise]",h="[object Set]",p="[object WeakMap]",v="[object DataView]",b=c(n),d=c(o),g=c(i),y=c(u),m=c(a),r=s;(n&&r(new n(new ArrayBuffer(1)))!=v||o&&r(new o)!=f||i&&r(i.resolve())!=l||u&&r(new u)!=h||a&&r(new a)!=p)&&(r=function(t){var e=s(t),t="[object Object]"==e?t.constructor:void 0,t=t?c(t):"";if(t)switch(t){case b:return v;case d:return f;case g:return l;case y:return h;case m:return p}return e}),t.exports=r},function(t,e,r){var n=r(42),o=r(145),i=r(10);t.exports=function(t){return i(t)?n(t,!0):o(t)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Swatch=void 0;var n=r(9),o=r(69),r=(i.applyFilter=function(t,n){return"function"==typeof n?o(t,function(t){var e=t.r,r=t.g,t=t.b;return n(e,r,t,255)}):t},Object.defineProperty(i.prototype,"r",{get:function(){return this._rgb[0]},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"g",{get:function(){return this._rgb[1]},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"b",{get:function(){return this._rgb[2]},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"rgb",{get:function(){return this._rgb},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"hsl",{get:function(){var t,e,r;return this._hsl||(t=(r=this._rgb)[0],e=r[1],r=r[2],this._hsl=n.rgbToHsl(t,e,r)),this._hsl},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"hex",{get:function(){var t,e,r;return this._hex||(t=(r=this._rgb)[0],e=r[1],r=r[2],this._hex=n.rgbToHex(t,e,r)),this._hex},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"population",{get:function(){return this._population},enumerable:!1,configurable:!0}),i.prototype.toJSON=function(){return{rgb:this.rgb,population:this.population}},i.prototype.getRgb=function(){return this._rgb},i.prototype.getHsl=function(){return this.hsl},i.prototype.getPopulation=function(){return this._population},i.prototype.getHex=function(){return this.hex},i.prototype.getYiq=function(){var t;return this._yiq||(t=this._rgb,this._yiq=(299*t[0]+587*t[1]+114*t[2])/1e3),this._yiq},Object.defineProperty(i.prototype,"titleTextColor",{get:function(){return this._titleTextColor||(this._titleTextColor=this.getYiq()<200?"#fff":"#000"),this._titleTextColor},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"bodyTextColor",{get:function(){return this._bodyTextColor||(this._bodyTextColor=this.getYiq()<150?"#fff":"#000"),this._bodyTextColor},enumerable:!1,configurable:!0}),i.prototype.getTitleTextColor=function(){return this.titleTextColor},i.prototype.getBodyTextColor=function(){return this.bodyTextColor},i);function i(t,e){this._rgb=t,this._population=e}e.Swatch=r},function(t,e,r){var n=r(6),o=r(2);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==n(t)}},function(t,i,u){(function(t){var e=u(1),r=u(79),n=i&&!i.nodeType&&i,o=n&&"object"==typeof t&&t&&!t.nodeType&&t,e=o&&o.exports===n?e.Buffer:void 0,r=(e?e.isBuffer:void 0)||r;t.exports=r}).call(this,u(13)(t))},function(t,e){var n=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&n.test(t))&&-1<t&&t%1==0&&t<e}},function(t,e){t.exports=function(t){return"number"==typeof t&&-1<t&&t%1==0&&t<=9007199254740991}},function(t,e){t.exports=function(e){return function(t){return e(t)}}},function(t,i,u){(function(t){var e=u(43),r=i&&!i.nodeType&&i,n=r&&"object"==typeof t&&t&&!t.nodeType&&t,o=n&&n.exports===r&&e.process,e=function(){try{var t=n&&n.require&&n.require("util").types;return t?t:o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=e}).call(this,u(13)(t))},function(t,e){var r=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},function(t,e,r){var n=r(14),o=r(91),i=r(92),u=r(93),a=r(94),r=r(95);function s(t){t=this.__data__=new n(t);this.size=t.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=u,s.prototype.has=a,s.prototype.set=r,t.exports=s},function(t,e,r){r=r(4)(r(1),"Map");t.exports=r},function(t,e,r){var n=r(100),o=r(107),i=r(109),u=r(110),r=r(111);function a(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=o,a.prototype.get=i,a.prototype.has=u,a.prototype.set=r,t.exports=a},function(t,e,r){var n=r(41),r=r(55),o=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,r=i?function(e){return null==e?[]:(e=Object(e),n(i(e),function(t){return o.call(e,t)}))}:r;t.exports=r},function(t,e,r){var n=r(0),o=r(33),i=r(129),u=r(132);t.exports=function(t,e){return n(t)?t:o(t,e)?[t]:i(u(t))}},function(t,e,r){var n=r(0),o=r(21),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!o(t))||(u.test(t)||!i.test(t)||null!=e&&t in Object(e))}},function(t,e){t.exports=function(t){return t}},function(t,e,r){var n=r(52);t.exports=function(t){var e=new t.constructor(t.byteLength);return new n(e).set(new n(t)),e}},function(t,e,r){var n=r(76),o=r(2),r=Object.prototype,i=r.hasOwnProperty,u=r.propertyIsEnumerable,n=n(function(){return arguments}())?n:function(t){return o(t)&&i.call(t,"callee")&&!u.call(t,"callee")};t.exports=n},function(t,e){t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},function(t,e,r){var o=r(32),i=r(11);t.exports=function(t,e){for(var r=0,n=(e=o(e,t)).length;null!=t&&r<n;)t=t[i(e[r++])];return r&&r==n?t:void 0}},function(t,e,r){r=r(46)(Object.getPrototypeOf,Object);t.exports=r},function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e},u=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var a=r(20),s=u(r(140)),c=i(r(9)),f=i(r(163)),u=i(r(167)),l=i(r(175)),h=r(62),f=(p.from=function(t){return new s.default(t)},p.prototype._process=function(t,e){var r=e.quantizer,n=e.generator;return t.scaleDown(e),t.applyFilter(e.combinedFilter).then(function(t){return r(t.data,e)}).then(function(t){return a.Swatch.applyFilter(t,e.combinedFilter)}).then(function(t){return Promise.resolve(n(t))})},p.prototype.palette=function(){return this.swatches()},p.prototype.swatches=function(){return this._palette},p.prototype.getPalette=function(e){var r=this,n=new this.opts.ImageClass,t=n.load(this._src).then(function(t){return r._process(t,r.opts)}).then(function(t){return r._palette=t,n.remove(),t},function(t){throw n.remove(),t});return e&&t.then(function(t){return e(null,t)},function(t){return e(t)}),t},p.Builder=s.default,p.Quantizer=f,p.Generator=u,p.Filter=l,p.Util=c,p.Swatch=a.Swatch,p.DefaultOpts={colorCount:64,quality:5,generator:u.Default,ImageClass:null,quantizer:f.MMCQ,filters:[l.Default]},p);function p(t,e){this._src=t,this.opts=h({},e,p.DefaultOpts),this.opts.combinedFilter=l.combineFilters(this.opts.filters)}e.default=f},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var u=t[r];e(u,r,t)&&(i[o++]=u)}return i}},function(t,e,r){var f=r(75),l=r(36),h=r(0),p=r(22),v=r(23),b=r(45),d=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r,n=h(t),o=!n&&l(t),i=!n&&!o&&p(t),u=!n&&!o&&!i&&b(t),a=n||o||i||u,s=a?f(t.length,String):[],c=s.length;for(r in t)!e&&!d.call(t,r)||a&&("length"==r||i&&("offset"==r||"parent"==r)||u&&("buffer"==r||"byteLength"==r||"byteOffset"==r)||v(r,c))||s.push(r);return s}},function(e,t,r){(function(t){t="object"==typeof t&&t&&t.Object===Object&&t;e.exports=t}).call(this,r(44))},function(t,e){var r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){var n=r(80),o=r(25),r=r(26),r=r&&r.isTypedArray,n=r?o(r):n;t.exports=n},function(t,e){t.exports=function(e,r){return function(t){return e(r(t))}}},function(t,e,r){var n=r(6),o=r(3);t.exports=function(t){return!!o(t)&&("[object Function]"==(t=n(t))||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t)}},function(t,e,r){var n=r(84),o=r(127),i=r(34),u=r(0),a=r(137);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?u(t)?o(t[0],t[1]):n(t):a(t)}},function(t,e){var r=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,r){var u=r(112),a=r(2);t.exports=function t(e,r,n,o,i){return e===r||(null==e||null==r||!a(e)&&!a(r)?e!=e&&r!=r:u(e,r,n,o,t,i))}},function(t,e,r){var d=r(113),g=r(116),y=r(117);t.exports=function(t,e,r,n,o,i){var u=1&r,a=t.length,s=e.length;if(a!=s&&!(u&&a<s))return!1;var c=i.get(t),s=i.get(e);if(c&&s)return c==e&&s==t;var f=-1,l=!0,h=2&r?new d:void 0;for(i.set(t,e),i.set(e,t);++f<a;){var p,v=t[f],b=e[f];if(n&&(p=u?n(b,v,f,e,t,i):n(v,b,f,t,e,i)),void 0!==p){if(p)continue;l=!1;break}if(h){if(!g(e,function(t,e){if(!y(h,e)&&(v===t||o(v,t,r,n,i)))return h.push(e)})){l=!1;break}}else if(v!==b&&!o(v,b,r,n,i)){l=!1;break}}return i.delete(t),i.delete(e),l}},function(t,e,r){r=r(1).Uint8Array;t.exports=r},function(t,e,r){var n=r(54),o=r(31),i=r(5);t.exports=function(t){return n(t,i,o)}},function(t,e,r){var n=r(37),o=r(0);t.exports=function(t,e,r){return e=e(t),o(t)?e:n(e,r(t))}},function(t,e){t.exports=function(){return[]}},function(t,e,r){var n=r(3);t.exports=function(t){return t==t&&!n(t)}},function(t,e){t.exports=function(e,r){return function(t){return null!=t&&(t[e]===r&&(void 0!==r||e in Object(t)))}}},function(t,e,r){var o=r(59),i=r(8),u=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){var n=t[e];u.call(t,e)&&i(n,r)&&(void 0!==r||e in t)||o(t,e,r)}},function(t,e,r){var n=r(60);t.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},function(t,e,r){var n=r(4),r=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=r},function(t,e,r){var n=r(37),o=r(39),i=r(31),r=r(55),r=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)n(e,i(t)),t=o(t);return e}:r;t.exports=r},function(t,e,r){var n=r(169),l=r(8),h=r(174),p=r(19),v=Object.prototype,b=v.hasOwnProperty,n=n(function(t,e){t=Object(t);var r=-1,n=e.length,o=2<n?e[2]:void 0;for(o&&h(e[0],e[1],o)&&(n=1);++r<n;)for(var i=e[r],u=p(i),a=-1,s=u.length;++a<s;){var c=u[a],f=t[c];(void 0===f||l(f,v[c])&&!b.call(t,c))&&(t[c]=i[c])}return t});t.exports=n},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}},function(t,e,r){var v=r(28),b=r(142),d=r(58),g=r(143),y=r(144),m=r(147),_=r(148),x=r(149),j=r(150),w=r(53),O=r(65),S=r(18),A=r(151),M=r(152),I=r(157),T=r(0),P=r(22),C=r(159),D=r(3),L=r(161),F=r(5),E=r(19),k=1,V=2,z=4,R="[object Arguments]",U="[object Function]",q="[object GeneratorFunction]",H="[object Object]",N={};N[R]=N["[object Array]"]=N["[object ArrayBuffer]"]=N["[object DataView]"]=N["[object Boolean]"]=N["[object Date]"]=N["[object Float32Array]"]=N["[object Float64Array]"]=N["[object Int8Array]"]=N["[object Int16Array]"]=N["[object Int32Array]"]=N["[object Map]"]=N["[object Number]"]=N[H]=N["[object RegExp]"]=N["[object Set]"]=N["[object String]"]=N["[object Symbol]"]=N["[object Uint8Array]"]=N["[object Uint8ClampedArray]"]=N["[object Uint16Array]"]=N["[object Uint32Array]"]=!0,N["[object Error]"]=N[U]=N["[object WeakMap]"]=!1,t.exports=function r(n,o,i,t,e,u){var a,s=o&k,c=o&V,f=o&z;if(i&&(a=e?i(n,t,e,u):i(n)),void 0!==a)return a;if(!D(n))return n;var l=T(n);if(l){if(a=A(n),!s)return _(n,a)}else{var h=S(n),t=h==U||h==q;if(P(n))return m(n,s);if(h==H||h==R||t&&!e){if(a=c||t?{}:I(n),!s)return c?j(n,y(a,n)):x(n,g(a,n))}else{if(!N[h])return e?n:{};a=M(n,h,s)}}s=(u=u||new v).get(n);if(s)return s;u.set(n,a),L(n)?n.forEach(function(t){a.add(r(t,o,i,t,n,u))}):C(n)&&n.forEach(function(t,e){a.set(e,r(t,o,i,e,n,u))});var p=l?void 0:(f?c?O:w:c?E:F)(n);return b(p||n,function(t,e){p&&(t=n[e=t]),d(a,e,r(t,o,i,e,n,u))}),a}},function(t,e,r){var n=r(54),o=r(61),i=r(19);t.exports=function(t){return n(t,i,o)}},function(t,e,r){var s=r(170),c=Math.max;t.exports=function(i,u,a){return u=c(void 0===u?i.length-1:u,0),function(){for(var t=arguments,e=-1,r=c(t.length-u,0),n=Array(r);++e<r;)n[e]=t[u+e];e=-1;for(var o=Array(u+1);++e<u;)o[e]=t[e];return o[u]=a(n),s(i,this,o)}}},function(t,e,r){var n=r(171),n=r(173)(n);t.exports=n},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},o=n(r(40)),r=n(r(177));o.default.DefaultOpts.ImageClass=r.default,t.exports=o.default},function(t,e,r){var n=r(41),o=r(70),i=r(48),u=r(0);t.exports=function(t,e){return(u(t)?n:o)(t,i(e,3))}},function(t,e,r){var i=r(71);t.exports=function(t,n){var o=[];return i(t,function(t,e,r){n(t,e,r)&&o.push(t)}),o}},function(t,e,r){var n=r(72),n=r(83)(n);t.exports=n},function(t,e,r){var n=r(73),o=r(5);t.exports=function(t,e){return t&&n(t,e,o)}},function(t,e,r){r=r(74)();t.exports=r},function(t,e){t.exports=function(s){return function(t,e,r){for(var n=-1,o=Object(t),i=r(t),u=i.length;u--;){var a=i[s?u:++n];if(!1===e(o[a],a,o))break}return t}}},function(t,e){t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},function(t,e,r){var n=r(6),o=r(2);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},function(t,e,r){var n=r(7),r=Object.prototype,i=r.hasOwnProperty,u=r.toString,a=n?n.toStringTag:void 0;t.exports=function(t){var e=i.call(t,a),r=t[a];try{var n=!(t[a]=void 0)}catch(t){}var o=u.call(t);return n&&(e?t[a]=r:delete t[a]),o}},function(t,e){var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},function(t,e){t.exports=function(){return!1}},function(t,e,r){var n=r(6),o=r(24),i=r(2),u={};u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u["[object Arguments]"]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u["[object Function]"]=u["[object Map]"]=u["[object Number]"]=u["[object Object]"]=u["[object RegExp]"]=u["[object Set]"]=u["[object String]"]=u["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!u[n(t)]}},function(t,e,r){var n=r(27),o=r(82),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e,r=[];for(e in Object(t))i.call(t,e)&&"constructor"!=e&&r.push(e);return r}},function(t,e,r){r=r(46)(Object.keys,Object);t.exports=r},function(t,e,r){var a=r(10);t.exports=function(i,u){return function(t,e){if(null==t)return t;if(!a(t))return i(t,e);for(var r=t.length,n=u?r:-1,o=Object(t);(u?n--:++n<r)&&!1!==e(o[n],n,o););return t}}},function(t,e,r){var n=r(85),o=r(126),i=r(57);t.exports=function(e){var r=o(e);return 1==r.length&&r[0][2]?i(r[0][0],r[0][1]):function(t){return t===e||n(t,e,r)}}},function(t,e,r){var p=r(28),v=r(50);t.exports=function(t,e,r,n){var o=r.length,i=o,u=!n;if(null==t)return!i;for(t=Object(t);o--;){var a=r[o];if(u&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++o<i;){var s=(a=r[o])[0],c=t[s],f=a[1];if(u&&a[2]){if(void 0===c&&!(s in t))return!1}else{var l,h=new p;if(n&&(l=n(c,f,s,t,e,h)),!(void 0===l?v(f,c,3,n,h):l))return!1}}return!0}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,r){var n=r(15),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__;return!((t=n(e,t))<0)&&(t==e.length-1?e.pop():o.call(e,t,1),--this.size,!0)}},function(t,e,r){var n=r(15);t.exports=function(t){var e=this.__data__;return(t=n(e,t))<0?void 0:e[t][1]}},function(t,e,r){var n=r(15);t.exports=function(t){return-1<n(this.__data__,t)}},function(t,e,r){var o=r(15);t.exports=function(t,e){var r=this.__data__,n=o(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}},function(t,e,r){var n=r(14);t.exports=function(){this.__data__=new n,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,t=e.delete(t);return this.size=e.size,t}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,r){var o=r(14),i=r(29),u=r(30);t.exports=function(t,e){var r=this.__data__;if(r instanceof o){var n=r.__data__;if(!i||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new u(n)}return r.set(t,e),this.size=r.size,this}},function(t,e,r){var n=r(47),o=r(97),i=r(3),u=r(49),a=/^\[object .+?Constructor\]$/,s=Function.prototype,r=Object.prototype,s=s.toString,r=r.hasOwnProperty,c=RegExp("^"+s.call(r).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(n(t)?c:a).test(u(t))}},function(t,e,r){var r=r(98),n=(r=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!n&&n in t}},function(t,e,r){r=r(1)["__core-js_shared__"];t.exports=r},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,r){var n=r(101),o=r(14),i=r(29);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},function(t,e,r){var n=r(102),o=r(103),i=r(104),u=r(105),r=r(106);function a(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=o,a.prototype.get=i,a.prototype.has=u,a.prototype.set=r,t.exports=a},function(t,e,r){var n=r(16);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},function(t,e){t.exports=function(t){return t=this.has(t)&&delete this.__data__[t],this.size-=t?1:0,t}},function(t,e,r){var n=r(16),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(e,t)?e[t]:void 0}},function(t,e,r){var n=r(16),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}},function(t,e,r){var n=r(16);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},function(t,e,r){var n=r(17);t.exports=function(t){return t=n(this,t).delete(t),this.size-=t?1:0,t}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,r){var n=r(17);t.exports=function(t){return n(this,t).get(t)}},function(t,e,r){var n=r(17);t.exports=function(t){return n(this,t).has(t)}},function(t,e,r){var o=r(17);t.exports=function(t,e){var r=o(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}},function(t,e,r){var l=r(28),h=r(51),p=r(118),v=r(121),b=r(18),d=r(0),g=r(22),y=r(45),m="[object Arguments]",_="[object Array]",x="[object Object]",j=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,n,o,i){var u=d(t),a=d(e),s=u?_:b(t),c=a?_:b(e),f=(s=s==m?x:s)==x,a=(c=c==m?x:c)==x;if((c=s==c)&&g(t)){if(!g(e))return!1;f=!(u=!0)}if(c&&!f)return i=i||new l,u||y(t)?h(t,e,r,n,o,i):p(t,e,s,r,n,o,i);if(!(1&r)){f=f&&j.call(t,"__wrapped__"),a=a&&j.call(e,"__wrapped__");if(f||a)return o(f?t.value():t,a?e.value():e,r,n,i=i||new l)}return!!c&&(i=i||new l,v(t,e,r,n,o,i))}},function(t,e,r){var n=r(30),o=r(114),r=r(115);function i(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}i.prototype.add=i.prototype.push=o,i.prototype.has=r,t.exports=i},function(t,e){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},function(t,e){t.exports=function(t,e){return t.has(e)}},function(t,e,r){var n=r(7),s=r(52),c=r(8),f=r(51),l=r(119),h=r(120),n=n?n.prototype:void 0,p=n?n.valueOf:void 0;t.exports=function(t,e,r,n,o,i,u){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return t.byteLength==e.byteLength&&i(new s(t),new s(e))?!0:!1;case"[object Boolean]":case"[object Date]":case"[object Number]":return c(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var a=l;case"[object Set]":r=1&n,a=a||h;if(t.size!=e.size&&!r)return!1;r=u.get(t);if(r)return r==e;n|=2,u.set(t,e);i=f(a(t),a(e),n,o,i,u);return u.delete(t),i;case"[object Symbol]":if(p)return p.call(t)==p.call(e)}return!1}},function(t,e){t.exports=function(t){var r=-1,n=Array(t.size);return t.forEach(function(t,e){n[++r]=[e,t]}),n}},function(t,e){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}},function(t,e,r){var y=r(53),m=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,n,o,i){var u=1&r,a=y(t),s=a.length;if(s!=y(e).length&&!u)return!1;for(var c=s;c--;){var f=a[c];if(!(u?f in e:m.call(e,f)))return!1}var l=i.get(t),h=i.get(e);if(l&&h)return l==e&&h==t;var p=!0;i.set(t,e),i.set(e,t);for(var v=u;++c<s;){var b,d=t[f=a[c]],g=e[f];if(n&&(b=u?n(g,d,f,e,t,i):n(d,g,f,t,e,i)),!(void 0===b?d===g||o(d,g,r,n,i):b)){p=!1;break}v=v||"constructor"==f}return!p||v||(l=t.constructor)!=(h=e.constructor)&&"constructor"in t&&"constructor"in e&&!("function"==typeof l&&l instanceof l&&"function"==typeof h&&h instanceof h)&&(p=!1),i.delete(t),i.delete(e),p}},function(t,e,r){r=r(4)(r(1),"DataView");t.exports=r},function(t,e,r){r=r(4)(r(1),"Promise");t.exports=r},function(t,e,r){r=r(4)(r(1),"Set");t.exports=r},function(t,e,r){r=r(4)(r(1),"WeakMap");t.exports=r},function(t,e,r){var i=r(56),u=r(5);t.exports=function(t){for(var e=u(t),r=e.length;r--;){var n=e[r],o=t[n];e[r]=[n,o,i(o)]}return e}},function(t,e,r){var o=r(50),i=r(128),u=r(134),a=r(33),s=r(56),c=r(57),f=r(11);t.exports=function(r,n){return a(r)&&s(n)?c(f(r),n):function(t){var e=i(t,r);return void 0===e&&e===n?u(t,r):o(n,e,3)}}},function(t,e,r){var n=r(38);t.exports=function(t,e,r){return void 0===(e=null==t?void 0:n(t,e))?r:e}},function(t,e,r){var r=r(130),n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,r=r(function(t){var o=[];return 46===t.charCodeAt(0)&&o.push(""),t.replace(n,function(t,e,r,n){o.push(r?n.replace(i,"$1"):e||t)}),o});t.exports=r},function(t,e,r){var n=r(131);t.exports=function(t){var e=(t=n(t,function(t){return 500===e.size&&e.clear(),t})).cache;return t}},function(t,e,r){var u=r(30),a="Expected a function";function s(n,o){if("function"!=typeof n||null!=o&&"function"!=typeof o)throw new TypeError(a);var i=function(){var t=arguments,e=o?o.apply(this,t):t[0],r=i.cache;if(r.has(e))return r.get(e);t=n.apply(this,t);return i.cache=r.set(e,t)||r,t};return i.cache=new(s.Cache||u),i}s.Cache=u,t.exports=s},function(t,e,r){var n=r(133);t.exports=function(t){return null==t?"":n(t)}},function(t,e,r){var n=r(7),o=r(63),i=r(0),u=r(21),a=1/0,n=n?n.prototype:void 0,s=n?n.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(u(e))return s?s.call(e):"";var r=e+"";return"0"==r&&1/e==-a?"-0":r}},function(t,e,r){var n=r(135),o=r(136);t.exports=function(t,e){return null!=t&&o(t,e,n)}},function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},function(t,e,r){var a=r(32),s=r(36),c=r(0),f=r(23),l=r(24),h=r(11);t.exports=function(t,e,r){for(var n=-1,o=(e=a(e,t)).length,i=!1;++n<o;){var u=h(e[n]);if(!(i=null!=t&&r(t,u)))break;t=t[u]}return i||++n!=o?i:!!(o=null==t?0:t.length)&&l(o)&&f(u,o)&&(c(t)||s(t))}},function(t,e,r){var n=r(138),o=r(139),i=r(33),u=r(11);t.exports=function(t){return i(t)?n(u(t)):o(t)}},function(t,e){t.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(t,e,r){var n=r(38);t.exports=function(e){return function(t){return n(t,e)}}},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=n(r(40)),i=r(141),r=(u.prototype.maxColorCount=function(t){return this._opts.colorCount=t,this},u.prototype.maxDimension=function(t){return this._opts.maxDimension=t,this},u.prototype.addFilter=function(t){return this._opts.filters.push(t),this},u.prototype.removeFilter=function(t){t=this._opts.filters.indexOf(t);return 0<t&&this._opts.filters.splice(t),this},u.prototype.clearFilters=function(){return this._opts.filters=[],this},u.prototype.quality=function(t){return this._opts.quality=t,this},u.prototype.useImageClass=function(t){return this._opts.ImageClass=t,this},u.prototype.useGenerator=function(t){return this._opts.generator=t,this},u.prototype.useQuantizer=function(t){return this._opts.quantizer=t,this},u.prototype.build=function(){return new o.default(this._src,this._opts)},u.prototype.getPalette=function(t){return this.build().getPalette(t)},u.prototype.getSwatches=function(t){return this.build().getPalette(t)},u);function u(t,e){void 0===e&&(e={}),this._src=t,this._opts=e,this._opts.filters=i(o.default.DefaultOpts.filters)}e.default=r},function(t,e,r){var n=r(64);t.exports=function(t){return n(t,4)}},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}},function(t,e,r){var n=r(12),o=r(5);t.exports=function(t,e){return t&&n(e,o(e),t)}},function(t,e,r){var n=r(12),o=r(19);t.exports=function(t,e){return t&&n(e,o(e),t)}},function(t,e,r){var o=r(3),i=r(27),u=r(146),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!o(t))return u(t);var e,r=i(t),n=[];for(e in t)("constructor"!=e||!r&&a.call(t,e))&&n.push(e);return n}},function(t,e){t.exports=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}},function(t,i,u){(function(t){var e=u(1),r=i&&!i.nodeType&&i,n=r&&"object"==typeof t&&t&&!t.nodeType&&t,e=n&&n.exports===r?e.Buffer:void 0,o=e?e.allocUnsafe:void 0;t.exports=function(t,e){return e?t.slice():(e=t.length,e=o?o(e):new t.constructor(e),t.copy(e),e)}}).call(this,u(13)(t))},function(t,e){t.exports=function(t,e){var r=-1,n=t.length;for(e=e||Array(n);++r<n;)e[r]=t[r];return e}},function(t,e,r){var n=r(12),o=r(31);t.exports=function(t,e){return n(t,o(t),e)}},function(t,e,r){var n=r(12),o=r(61);t.exports=function(t,e){return n(t,o(t),e)}},function(t,e){var n=Object.prototype.hasOwnProperty;t.exports=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&n.call(t,"index")&&(r.index=t.index,r.input=t.input),r}},function(t,e,r){var o=r(35),i=r(153),u=r(154),a=r(155),s=r(156);t.exports=function(t,e,r){var n=t.constructor;switch(e){case"[object ArrayBuffer]":return o(t);case"[object Boolean]":case"[object Date]":return new n(+t);case"[object DataView]":return i(t,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(t,r);case"[object Map]":return new n;case"[object Number]":case"[object String]":return new n(t);case"[object RegExp]":return u(t);case"[object Set]":return new n;case"[object Symbol]":return a(t)}}},function(t,e,r){var n=r(35);t.exports=function(t,e){return e=e?n(t.buffer):t.buffer,new t.constructor(e,t.byteOffset,t.byteLength)}},function(t,e){var r=/\w*$/;t.exports=function(t){var e=new t.constructor(t.source,r.exec(t));return e.lastIndex=t.lastIndex,e}},function(t,e,r){var r=r(7),r=r?r.prototype:void 0,n=r?r.valueOf:void 0;t.exports=function(t){return n?Object(n.call(t)):{}}},function(t,e,r){var n=r(35);t.exports=function(t,e){return e=e?n(t.buffer):t.buffer,new t.constructor(e,t.byteOffset,t.length)}},function(t,e,r){var n=r(158),o=r(39),i=r(27);t.exports=function(t){return"function"!=typeof t.constructor||i(t)?{}:n(o(t))}},function(t,e,r){var n=r(3),o=Object.create,r=function(t){if(!n(t))return{};if(o)return o(t);i.prototype=t;t=new i;return i.prototype=void 0,t};function i(){}t.exports=r},function(t,e,r){var n=r(160),o=r(25),r=r(26),r=r&&r.isMap,n=r?o(r):n;t.exports=n},function(t,e,r){var n=r(18),o=r(2);t.exports=function(t){return o(t)&&"[object Map]"==n(t)}},function(t,e,r){var n=r(162),o=r(25),r=r(26),r=r&&r.isSet,n=r?o(r):n;t.exports=n},function(t,e,r){var n=r(18),o=r(2);t.exports=function(t){return o(t)&&"[object Set]"==n(t)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WebWorker=void 0;var n=r(164);Object.defineProperty(e,"MMCQ",{enumerable:!0,get:function(){return n.default}}),e.WebWorker=null},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=r(20),i=n(r(165)),u=n(r(166));function a(t,e){for(var r=t.size();t.size()<e;){var n=t.pop();if(!(n&&0<n.count()))break;var o=n.split(),n=o[0],o=o[1];if(t.push(n),o&&0<o.count()&&t.push(o),t.size()===r)break;r=t.size()}}e.default=function(t,e){if(0===t.length||e.colorCount<2||256<e.colorCount)throw new Error("Wrong MMCQ parameters");var r=i.default.build(t),t=r.hist,t=(Object.keys(t).length,new u.default(function(t,e){return t.count()-e.count()}));t.push(r),a(t,.75*e.colorCount);r=new u.default(function(t,e){return t.count()*t.volume()-e.count()*e.volume()});return r.contents=t.contents,a(r,e.colorCount-r.size()),function(t){var e=[];for(;t.size();){var r=t.pop(),n=r.avg();n[0],n[1],n[2];e.push(new o.Swatch(n,r.count()))}return e}(r)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var j=r(9),r=(d.build=function(t,e){for(var r,n,o,i,u,a,s,c=1<<3*j.SIGBITS,f=new Uint32Array(c),l=r=o=0,h=n=i=Number.MAX_VALUE,p=t.length/4,v=0;v<p;){var b=4*v;v++,u=t[0+b],a=t[1+b],s=t[2+b],0!==t[3+b]&&(u>>=j.RSHIFT,a>>=j.RSHIFT,s>>=j.RSHIFT,f[j.getColorIndex(u,a,s)]+=1,l<u&&(l=u),u<h&&(h=u),r<a&&(r=a),a<n&&(n=a),o<s&&(o=s),s<i&&(i=s))}return new d(h,l,n,r,i,o,f)},d.prototype.invalidate=function(){this._volume=this._count=-1,this._avg=null},d.prototype.volume=function(){var t,e,r,n,o,i;return this._volume<0&&(t=(i=this.dimension).r1,e=i.r2,r=i.g1,n=i.g2,o=i.b1,i=i.b2,this._volume=(e-t+1)*(n-r+1)*(i-o+1)),this._volume},d.prototype.count=function(){if(this._count<0){for(var t=this.hist,e=this.dimension,r=e.r1,n=e.r2,o=e.g1,i=e.g2,u=e.b1,a=e.b2,s=0,c=r;c<=n;c++)for(var f=o;f<=i;f++)for(var l=u;l<=a;l++){s+=t[j.getColorIndex(c,f,l)]}this._count=s}return this._count},d.prototype.clone=function(){var t=this.hist,e=this.dimension;return new d(e.r1,e.r2,e.g1,e.g2,e.b1,e.b2,t)},d.prototype.avg=function(){if(!this._avg){for(var t=this.hist,e=this.dimension,r=e.r1,n=e.r2,o=e.g1,i=e.g2,u=e.b1,a=e.b2,s=0,c=1<<8-j.SIGBITS,f=void 0,l=void 0,h=void 0,f=l=h=0,p=r;p<=n;p++)for(var v=o;v<=i;v++)for(var b=u;b<=a;b++){var d=t[j.getColorIndex(p,v,b)];s+=d,f+=d*(p+.5)*c,l+=d*(v+.5)*c,h+=d*(b+.5)*c}this._avg=s?[~~(f/s),~~(l/s),~~(h/s)]:[~~(c*(r+n+1)/2),~~(c*(o+i+1)/2),~~(c*(u+a+1)/2)]}return this._avg},d.prototype.contains=function(t){var e=t[0],r=t[1],n=t[2],o=this.dimension,i=o.r1,u=o.r2,a=o.g1,s=o.g2,t=o.b1,o=o.b2;return e>>=j.RSHIFT,r>>=j.RSHIFT,n>>=j.RSHIFT,i<=e&&e<=u&&a<=r&&r<=s&&t<=n&&n<=o},d.prototype.split=function(){var t=this.hist,e=this.dimension,r=e.r1,n=e.r2,o=e.g1,i=e.g2,u=e.b1,a=e.b2,s=this.count();if(!s)return[];if(1===s)return[this.clone()];var c,f=n-r+1,l=i-o+1,e=a-u+1,s=Math.max(f,l,e),h=null,p=c=0,e=null;if(s===f){e="r",h=new Uint32Array(n+1);for(var v=r;v<=n;v++){p=0;for(var b=o;b<=i;b++)for(var d=u;d<=a;d++){p+=t[j.getColorIndex(v,b,d)]}c+=p,h[v]=c}}else if(s===l){e="g",h=new Uint32Array(i+1);for(b=o;b<=i;b++){p=0;for(v=r;v<=n;v++)for(d=u;d<=a;d++){p+=t[j.getColorIndex(v,b,d)]}c+=p,h[b]=c}}else{e="b",h=new Uint32Array(a+1);for(d=u;d<=a;d++){p=0;for(v=r;v<=n;v++)for(b=o;b<=i;b++){p+=t[j.getColorIndex(v,b,d)]}c+=p,h[d]=c}}for(var g=-1,y=new Uint32Array(h.length),m=0;m<h.length;m++){var _=h[m];g<0&&c/2<_&&(g=m),y[m]=c-_}var x=this;return function(t){for(var e=t+"1",r=t+"2",n=x.dimension[e],o=x.dimension[r],i=x.clone(),u=x.clone(),a=g-n,o=a<=(t=o-g)?(o=Math.min(o-1,~~(g+t/2)),Math.max(0,o)):(o=Math.max(n,~~(g-1-a/2)),Math.min(x.dimension[r],o));!h[o];)o++;for(var s=y[o];!s&&h[o-1];)s=y[--o];return i.dimension[r]=o,u.dimension[e]=o+1,[i,u]}(e)},d);function d(t,e,r,n,o,i,u){this._volume=-1,this._count=-1,this.dimension={r1:t,r2:e,g1:r,g2:n,b1:o,b2:i},this.hist=u}e.default=r},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=(o.prototype._sort=function(){this._sorted||(this.contents.sort(this._comparator),this._sorted=!0)},o.prototype.push=function(t){this.contents.push(t),this._sorted=!1},o.prototype.peek=function(t){return this._sort(),t="number"==typeof t?t:this.contents.length-1,this.contents[t]},o.prototype.pop=function(){return this._sort(),this.contents.pop()},o.prototype.size=function(){return this.contents.length},o.prototype.map=function(t){return this._sort(),this.contents.map(t)},o);function o(t){this._comparator=t,this.contents=[],this._sorted=!1}e.default=n},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(168);Object.defineProperty(e,"Default",{enumerable:!0,get:function(){return n.default}})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var p=r(20),v=r(9),b=r(62),d={targetDarkLuma:.26,maxDarkLuma:.45,minLightLuma:.55,targetLightLuma:.74,minNormalLuma:.3,targetNormalLuma:.5,maxNormalLuma:.7,targetMutesSaturation:.3,maxMutesSaturation:.4,targetVibrantSaturation:1,minVibrantSaturation:.35,weightSaturation:3,weightLuma:6.5,weightPopulation:.5};function g(t,e,r,n,o,i,u){function a(t,e){return 1-Math.abs(t-e)}return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0,n=0,o=0;o<t.length;o+=2){var i=t[o],u=t[o+1];r+=i*u,n+=u}return r/n}(a(t,e),u.weightSaturation,a(r,n),u.weightLuma,o/i,u.weightPopulation)}function y(i,t,u,a,s,c,f,l,h,p){var v=null,b=0;return t.forEach(function(t){var e,r=t.getHsl(),n=r[1],o=r[2];l<=n&&n<=h&&s<=o&&o<=c&&(e=t,(r=i).Vibrant!==e&&r.DarkVibrant!==e&&r.LightVibrant!==e&&r.Muted!==e&&r.DarkMuted!==e&&r.LightMuted!==e)&&(o=g(n,f,o,a,t.getPopulation(),u,p),(null===v||b<o)&&(v=t,b=o))}),v}e.default=function(t,e){e=b({},e,d);var r,n,o,i,u,a,s,c,f,l,h=(r=0,t.forEach(function(t){r=Math.max(r,t.getPopulation())}),r),h=((o={}).Vibrant=y(o,n=t,t=h,(h=e).targetNormalLuma,h.minNormalLuma,h.maxNormalLuma,h.targetVibrantSaturation,h.minVibrantSaturation,1,h),o.LightVibrant=y(o,n,t,h.targetLightLuma,h.minLightLuma,1,h.targetVibrantSaturation,h.minVibrantSaturation,1,h),o.DarkVibrant=y(o,n,t,h.targetDarkLuma,0,h.maxDarkLuma,h.targetVibrantSaturation,h.minVibrantSaturation,1,h),o.Muted=y(o,n,t,h.targetNormalLuma,h.minNormalLuma,h.maxNormalLuma,h.targetMutesSaturation,0,h.maxMutesSaturation,h),o.LightMuted=y(o,n,t,h.targetLightLuma,h.minLightLuma,1,h.targetMutesSaturation,0,h.maxMutesSaturation,h),o.DarkMuted=y(o,n,t,h.targetDarkLuma,0,h.maxDarkLuma,h.targetMutesSaturation,0,h.maxMutesSaturation,h),o);return o=e,null===(e=h).Vibrant&&null===e.DarkVibrant&&null===e.LightVibrant&&(null===e.DarkVibrant&&null!==e.DarkMuted&&(c=(l=e.DarkMuted.getHsl())[0],f=l[1],l=l[2],l=o.targetDarkLuma,e.DarkVibrant=new p.Swatch(v.hslToRgb(c,f,l),0)),null===e.LightVibrant&&null!==e.LightMuted&&(c=(i=e.LightMuted.getHsl())[0],f=i[1],l=i[2],l=o.targetDarkLuma,e.DarkVibrant=new p.Swatch(v.hslToRgb(c,f,l),0))),null===e.Vibrant&&null!==e.DarkVibrant?(c=(i=e.DarkVibrant.getHsl())[0],f=i[1],l=i[2],l=o.targetNormalLuma,e.Vibrant=new p.Swatch(v.hslToRgb(c,f,l),0)):null===e.Vibrant&&null!==e.LightVibrant&&(c=(u=e.LightVibrant.getHsl())[0],f=u[1],l=u[2],l=o.targetNormalLuma,e.Vibrant=new p.Swatch(v.hslToRgb(c,f,l),0)),null===e.DarkVibrant&&null!==e.Vibrant&&(c=(u=e.Vibrant.getHsl())[0],f=u[1],l=u[2],l=o.targetDarkLuma,e.DarkVibrant=new p.Swatch(v.hslToRgb(c,f,l),0)),null===e.LightVibrant&&null!==e.Vibrant&&(c=(a=e.Vibrant.getHsl())[0],f=a[1],l=a[2],l=o.targetLightLuma,e.LightVibrant=new p.Swatch(v.hslToRgb(c,f,l),0)),null===e.Muted&&null!==e.Vibrant&&(c=(a=e.Vibrant.getHsl())[0],f=a[1],l=a[2],l=o.targetMutesSaturation,e.Muted=new p.Swatch(v.hslToRgb(c,f,l),0)),null===e.DarkMuted&&null!==e.DarkVibrant&&(c=(s=e.DarkVibrant.getHsl())[0],f=s[1],l=s[2],l=o.targetMutesSaturation,e.DarkMuted=new p.Swatch(v.hslToRgb(c,f,l),0)),null===e.LightMuted&&null!==e.LightVibrant&&(c=(s=e.LightVibrant.getHsl())[0],f=s[1],l=s[2],l=o.targetMutesSaturation,e.LightMuted=new p.Swatch(v.hslToRgb(c,f,l),0)),h}},function(t,e,r){var n=r(34),o=r(66),i=r(67);t.exports=function(t,e){return i(o(t,e,n),t+"")}},function(t,e){t.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},function(t,e,r){var n=r(172),o=r(60),r=r(34),r=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:n(e),writable:!0})}:r;t.exports=r},function(t,e){t.exports=function(t){return function(){return t}}},function(t,e){var i=Date.now;t.exports=function(r){var n=0,o=0;return function(){var t=i(),e=16-(t-o);if(o=t,0<e){if(800<=++n)return arguments[0]}else n=0;return r.apply(void 0,arguments)}}},function(t,e,r){var o=r(8),i=r(10),u=r(23),a=r(3);t.exports=function(t,e,r){if(!a(r))return!1;var n=typeof e;return!!("number"==n?i(r)&&u(e,r.length):"string"==n&&e in r)&&o(r[e],t)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.combineFilters=void 0;var n=r(176);Object.defineProperty(e,"Default",{enumerable:!0,get:function(){return n.default}}),e.combineFilters=function(i){return Array.isArray(i)&&0!==i.length?function(t,e,r,n){if(0===n)return!1;for(var o=0;o<i.length;o++)if(!i[o](t,e,r,n))return!1;return!0}:null}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,r,n){return 125<=n&&!(250<t&&250<e&&250<r)}},function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),u=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),a=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.hasOwnProperty.call(t,r)&&i(e,t,r);return u(e,t),e};Object.defineProperty(e,"__esModule",{value:!0});var s=r(178),c=a(r(179));var f,o=(f=s.ImageBase,o(l,f),l.prototype._initCanvas=function(){var t=this.image,e=this._canvas=document.createElement("canvas"),r=this._context=e.getContext("2d");e.className="vibrant-canvas",e.style.display="none",this._width=e.width=t.width,this._height=e.height=t.height,r.drawImage(t,0,0),document.body.appendChild(e)},l.prototype.load=function(t){var e,r,n=this,o=null,i=null;if("string"==typeof t)o=document.createElement("img"),r=t,null===(r=c.parse(r)).protocol&&null===r.host&&null===r.port||(e=window.location.href,r=t,e=c.parse(e),r=c.parse(r),e.protocol===r.protocol&&e.hostname===r.hostname&&e.port===r.port)||(o.crossOrigin="anonymous"),i=o.src=t;else{if(!(t instanceof HTMLImageElement))return Promise.reject(new Error("Cannot load buffer as an image in browser"));i=(o=t).src}return this.image=o,new Promise(function(t,e){function r(){n._initCanvas(),t(n)}o.complete?r():(o.onload=r,o.onerror=function(t){return e(new Error("Fail to load image: "+i))})})},l.prototype.clear=function(){this._context.clearRect(0,0,this._width,this._height)},l.prototype.update=function(t){this._context.putImageData(t,0,0)},l.prototype.getWidth=function(){return this._width},l.prototype.getHeight=function(){return this._height},l.prototype.resize=function(t,e,r){var n=this._canvas,o=this._context,i=this.image;this._width=n.width=t,this._height=n.height=e,o.scale(r,r),o.drawImage(i,0,0)},l.prototype.getPixelCount=function(){return this._width*this._height},l.prototype.getImageData=function(){return this._context.getImageData(0,0,this._width,this._height)},l.prototype.remove=function(){this._canvas&&this._canvas.parentNode&&this._canvas.parentNode.removeChild(this._canvas)},l);function l(){return null!==f&&f.apply(this,arguments)||this}e.default=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ImageBase=void 0;var n=(o.prototype.scaleDown=function(t){var e,r=this.getWidth(),n=this.getHeight(),o=1;0<t.maxDimension?(e=Math.max(r,n))>t.maxDimension&&(o=t.maxDimension/e):o=1/t.quality,o<1&&this.resize(r*o,n*o,o)},o.prototype.applyFilter=function(t){var e=this.getImageData();if("function"==typeof t)for(var r,n=e.data,o=n.length/4,i=0;i<o;i++)t(n[0+(r=4*i)],n[1+r],n[2+r],n[3+r])||(n[3+r]=0);return Promise.resolve(e)},o);function o(){}e.ImageBase=n},function(t,e,r){"use strict";var A=r(180),M=r(181);function x(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}e.parse=o,e.resolve=function(t,e){return o(t,!1,!0).resolve(e)},e.resolveObject=function(t,e){return t?o(t,!1,!0).resolveObject(e):e},e.format=function(t){M.isString(t)&&(t=o(t));return t instanceof x?t.format():x.prototype.format.call(t)},e.Url=x;var I=/^([a-z0-9.+-]+:)/i,n=/:[0-9]*$/,T=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,e=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),P=["'"].concat(e),C=["%","/","?",";","#"].concat(P),D=["/","?","#"],L=/^[+a-z0-9A-Z_-]{0,63}$/,F=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,E={javascript:!0,"javascript:":!0},k={javascript:!0,"javascript:":!0},V={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},z=r(182);function o(t,e,r){if(t&&M.isObject(t)&&t instanceof x)return t;var n=new x;return n.parse(t,e,r),n}x.prototype.parse=function(t,e,r){if(!M.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var n=t.indexOf("?"),o=-1!==n&&n<t.indexOf("#")?"?":"#",n=t.split(o);n[0]=n[0].replace(/\\/g,"/");var i=(i=t=n.join(o)).trim();if(!r&&1===t.split("#").length){var u=T.exec(i);if(u)return this.path=i,this.href=i,this.pathname=u[1],u[2]?(this.search=u[2],this.query=e?z.parse(this.search.substr(1)):this.search.substr(1)):e&&(this.search="",this.query={}),this}var a,u=I.exec(i);if(u&&(S=(u=u[0]).toLowerCase(),this.protocol=S,i=i.substr(u.length)),(r||u||i.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(a="//"===i.substr(0,2))||u&&k[u]||(i=i.substr(2),this.slashes=!0)),!k[u]&&(a||u&&!V[u])){for(var s=-1,c=0;c<D.length;c++){-1!==(f=i.indexOf(D[c]))&&(-1===s||f<s)&&(s=f)}-1!==(x=-1===s?i.lastIndexOf("@"):i.lastIndexOf("@",s))&&(j=i.slice(0,x),i=i.slice(x+1),this.auth=decodeURIComponent(j)),s=-1;for(var f,c=0;c<C.length;c++){-1!==(f=i.indexOf(C[c]))&&(-1===s||f<s)&&(s=f)}-1===s&&(s=i.length),this.host=i.slice(0,s),i=i.slice(s),this.parseHost(),this.hostname=this.hostname||"";var l="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!l)for(var h=this.hostname.split(/\./),c=0,p=h.length;c<p;c++){var v=h[c];if(v&&!v.match(L)){for(var b="",d=0,g=v.length;d<g;d++)127<v.charCodeAt(d)?b+="x":b+=v[d];if(!b.match(L)){var y=h.slice(0,c),m=h.slice(c+1),_=v.match(F);_&&(y.push(_[1]),m.unshift(_[2])),m.length&&(i="/"+m.join(".")+i),this.hostname=y.join(".");break}}}255<this.hostname.length?this.hostname="":this.hostname=this.hostname.toLowerCase(),l||(this.hostname=A.toASCII(this.hostname));var x=this.port?":"+this.port:"",j=this.hostname||"";this.host=j+x,this.href+=this.host,l&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==i[0]&&(i="/"+i))}if(!E[S])for(c=0,p=P.length;c<p;c++){var w,O=P[c];-1!==i.indexOf(O)&&((w=encodeURIComponent(O))===O&&(w=escape(O)),i=i.split(O).join(w))}l=i.indexOf("#");-1!==l&&(this.hash=i.substr(l),i=i.slice(0,l));var S,l=i.indexOf("?");return-1!==l?(this.search=i.substr(l),this.query=i.substr(l+1),e&&(this.query=z.parse(this.query)),i=i.slice(0,l)):e&&(this.search="",this.query={}),i&&(this.pathname=i),V[S]&&this.hostname&&!this.pathname&&(this.pathname="/"),(this.pathname||this.search)&&(x=this.pathname||"",S=this.search||"",this.path=x+S),this.href=this.format(),this},x.prototype.format=function(){var t=this.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var e=this.protocol||"",r=this.pathname||"",n=this.hash||"",o=!1,i="";this.host?o=t+this.host:this.hostname&&(o=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&M.isObject(this.query)&&Object.keys(this.query).length&&(i=z.stringify(this.query));i=this.search||i&&"?"+i||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||V[e])&&!1!==o?(o="//"+(o||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):o=o||"",n&&"#"!==n.charAt(0)&&(n="#"+n),i&&"?"!==i.charAt(0)&&(i="?"+i),e+o+(r=r.replace(/[?#]/g,function(t){return encodeURIComponent(t)}))+(i=i.replace("#","%23"))+n},x.prototype.resolve=function(t){return this.resolveObject(o(t,!1,!0)).format()},x.prototype.resolveObject=function(t){M.isString(t)&&((p=new x).parse(t,!1,!0),t=p);for(var e=new x,r=Object.keys(this),n=0;n<r.length;n++){var o=r[n];e[o]=this[o]}if(e.hash=t.hash,""===t.href)return e.href=e.format(),e;if(t.slashes&&!t.protocol){for(var i=Object.keys(t),u=0;u<i.length;u++){var a=i[u];"protocol"!==a&&(e[a]=t[a])}return V[e.protocol]&&e.hostname&&!e.pathname&&(e.path=e.pathname="/"),e.href=e.format(),e}if(t.protocol&&t.protocol!==e.protocol){if(!V[t.protocol]){for(var s=Object.keys(t),c=0;c<s.length;c++){var f=s[c];e[f]=t[f]}return e.href=e.format(),e}if(e.protocol=t.protocol,t.host||k[t.protocol])e.pathname=t.pathname;else{for(var l=(t.pathname||"").split("/");l.length&&!(t.host=l.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==l[0]&&l.unshift(""),l.length<2&&l.unshift(""),e.pathname=l.join("/")}return e.search=t.search,e.query=t.query,e.host=t.host||"",e.auth=t.auth,e.hostname=t.hostname||t.host,e.port=t.port,(e.pathname||e.search)&&(v=e.pathname||"",b=e.search||"",e.path=v+b),e.slashes=e.slashes||t.slashes,e.href=e.format(),e}var h=e.pathname&&"/"===e.pathname.charAt(0),p=t.host||t.pathname&&"/"===t.pathname.charAt(0),v=p||h||e.host&&t.pathname,b=v,d=e.pathname&&e.pathname.split("/")||[],l=t.pathname&&t.pathname.split("/")||[],h=e.protocol&&!V[e.protocol];if(h&&(e.hostname="",e.port=null,e.host&&(""===d[0]?d[0]=e.host:d.unshift(e.host)),e.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===l[0]?l[0]=t.host:l.unshift(t.host)),t.host=null),v=v&&(""===l[0]||""===d[0])),p)e.host=(t.host||""===t.host?t:e).host,e.hostname=(t.hostname||""===t.hostname?t:e).hostname,e.search=t.search,e.query=t.query,d=l;else if(l.length)(d=d||[]).pop(),d=d.concat(l),e.search=t.search,e.query=t.query;else if(!M.isNullOrUndefined(t.search)){return h&&(e.hostname=e.host=d.shift(),(_=!!(e.host&&0<e.host.indexOf("@"))&&e.host.split("@"))&&(e.auth=_.shift(),e.host=e.hostname=_.shift())),e.search=t.search,e.query=t.query,M.isNull(e.pathname)&&M.isNull(e.search)||(e.path=(e.pathname||"")+(e.search||"")),e.href=e.format(),e}if(!d.length)return e.pathname=null,e.search?e.path="/"+e.search:e.path=null,e.href=e.format(),e;for(var g=d.slice(-1)[0],p=(e.host||t.host||1<d.length)&&("."===g||".."===g)||""===g,y=0,m=d.length;0<=m;m--)"."===(g=d[m])?d.splice(m,1):".."===g?(d.splice(m,1),y++):y&&(d.splice(m,1),y--);if(!v&&!b)for(;y--;)d.unshift("..");!v||""===d[0]||d[0]&&"/"===d[0].charAt(0)||d.unshift(""),p&&"/"!==d.join("/").substr(-1)&&d.push("");var _,p=""===d[0]||d[0]&&"/"===d[0].charAt(0);return h&&(e.hostname=e.host=!p&&d.length?d.shift():"",(_=!!(e.host&&0<e.host.indexOf("@"))&&e.host.split("@"))&&(e.auth=_.shift(),e.host=e.hostname=_.shift())),(v=v||e.host&&d.length)&&!p&&d.unshift(""),d.length?e.pathname=d.join("/"):(e.pathname=null,e.path=null),M.isNull(e.pathname)&&M.isNull(e.search)||(e.path=(e.pathname||"")+(e.search||"")),e.auth=t.auth||e.auth,e.slashes=e.slashes||t.slashes,e.href=e.format(),e},x.prototype.parseHost=function(){var t=this.host,e=n.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},function(t,P,C){(function(p,b){var d;/*! https://mths.be/punycode v1.3.2 by @mathias */!function(){P&&P.nodeType,p&&p.nodeType;var t="object"==typeof b&&b;t.global!==t&&t.window!==t&&t.self;var e,g=2147483647,y=36,m=1,_=26,o=38,i=700,x=72,j=128,w="-",r=/^xn--/,n=/[^\x20-\x7E]/,u=/[\x2E\u3002\uFF0E\uFF61]/g,a={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},s=y-m,O=Math.floor,S=String.fromCharCode;function A(t){throw RangeError(a[t])}function c(t,e){for(var r=t.length,n=[];r--;)n[r]=e(t[r]);return n}function f(t,e){var r=t.split("@"),n="";return 1<r.length&&(n=r[0]+"@",t=r[1]),n+c((t=t.replace(u,".")).split("."),e).join(".")}function M(t){for(var e,r,n=[],o=0,i=t.length;o<i;)55296<=(e=t.charCodeAt(o++))&&e<=56319&&o<i?56320==(64512&(r=t.charCodeAt(o++)))?n.push(((1023&e)<<10)+(1023&r)+65536):(n.push(e),o--):n.push(e);return n}function v(t){return c(t,function(t){var e="";return 65535<t&&(e+=S((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+=S(t)}).join("")}function I(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function T(t,e,r){var n=0;for(t=r?O(t/i):t>>1,t+=O(t/e);s*_>>1<t;n+=y)t=O(t/s);return O(n+(s+1)*t/(t+o))}function l(t){var e,r,n,o,i,u,a,s=[],c=t.length,f=0,l=j,h=x,p=t.lastIndexOf(w);for(p<0&&(p=0),r=0;r<p;++r)128<=t.charCodeAt(r)&&A("not-basic"),s.push(t.charCodeAt(r));for(n=0<p?p+1:0;n<c;){for(o=f,i=1,u=y;c<=n&&A("invalid-input"),a=t.charCodeAt(n++),(y<=(a=a-48<10?a-22:a-65<26?a-65:a-97<26?a-97:y)||a>O((g-f)/i))&&A("overflow"),f+=a*i,!(a<(a=u<=h?m:h+_<=u?_:u-h));u+=y)i>O(g/(a=y-a))&&A("overflow"),i*=a;h=T(f-o,e=s.length+1,0==o),O(f/e)>g-l&&A("overflow"),l+=O(f/e),f%=e,s.splice(f++,0,l)}return v(s)}function h(t){for(var e,r,n,o,i,u,a,s,c,f,l,h=[],p=(t=M(t)).length,v=j,b=x,d=e=0;d<p;++d)(s=t[d])<128&&h.push(S(s));for(r=n=h.length,n&&h.push(w);r<p;){for(o=g,d=0;d<p;++d)v<=(s=t[d])&&s<o&&(o=s);for(o-v>O((g-e)/(c=r+1))&&A("overflow"),e+=(o-v)*c,v=o,d=0;d<p;++d)if((s=t[d])<v&&++e>g&&A("overflow"),s==v){for(i=e,u=y;!(i<(a=u<=b?m:b+_<=u?_:u-b));u+=y)l=i-a,f=y-a,h.push(S(I(a+l%f,0))),i=O(l/f);h.push(S(I(i,0))),b=T(e,c,r==n),e=0,++r}++e,++v}return h.join("")}e={version:"1.3.2",ucs2:{decode:M,encode:v},decode:l,encode:h,toASCII:function(t){return f(t,function(t){return n.test(t)?"xn--"+h(t):t})},toUnicode:function(t){return f(t,function(t){return r.test(t)?l(t.slice(4).toLowerCase()):t})}},void 0===(d=function(){return e}.call(P,C,P,p))||(p.exports=d)}()}).call(this,C(13)(t),C(44))},function(t,e,r){"use strict";t.exports={isString:function(t){return"string"==typeof t},isObject:function(t){return"object"==typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},function(t,e,r){"use strict";e.decode=e.parse=r(183),e.encode=e.stringify=r(184)},function(t,e,r){"use strict";t.exports=function(t,e,r,n){e=e||"&",r=r||"=";var o={};if("string"!=typeof t||0===t.length)return o;var i=/\+/g;t=t.split(e);e=1e3;n&&"number"==typeof n.maxKeys&&(e=n.maxKeys);var u=t.length;0<e&&e<u&&(u=e);for(var a=0;a<u;++a){var s,c=t[a].replace(i,"%20"),f=c.indexOf(r),l=0<=f?(s=c.substr(0,f),c.substr(f+1)):(s=c,""),h=decodeURIComponent(s),f=decodeURIComponent(l);c=o,l=h,Object.prototype.hasOwnProperty.call(c,l)?p(o[h])?o[h].push(f):o[h]=[o[h],f]:o[h]=f}return o};var p=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},function(t,e,r){"use strict";function i(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}}t.exports=function(r,n,o,t){return n=n||"&",o=o||"=",null===r&&(r=void 0),"object"==typeof r?a(s(r),function(t){var e=encodeURIComponent(i(t))+o;return u(r[t])?a(r[t],function(t){return e+encodeURIComponent(i(t))}).join(n):e+encodeURIComponent(i(r[t]))}).join(n):t?encodeURIComponent(i(t))+o+encodeURIComponent(i(r)):""};var u=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function a(t,e){if(t.map)return t.map(e);for(var r=[],n=0;n<t.length;n++)r.push(e(t[n],n));return r}var s=Object.keys||function(t){var e,r=[];for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&r.push(e);return r}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});r=r(68);("object"==typeof window&&window instanceof Window?window:t.exports).Vibrant=r}]);
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Swatch = void 0;
var util_1 = require("./util");

@@ -20,3 +21,3 @@ var filter = require("lodash/filter");

get: function () { return this._rgb[0]; },
enumerable: true,
enumerable: false,
configurable: true

@@ -26,3 +27,3 @@ });

get: function () { return this._rgb[1]; },
enumerable: true,
enumerable: false,
configurable: true

@@ -32,3 +33,3 @@ });

get: function () { return this._rgb[2]; },
enumerable: true,
enumerable: false,
configurable: true

@@ -38,3 +39,3 @@ });

get: function () { return this._rgb; },
enumerable: true,
enumerable: false,
configurable: true

@@ -50,3 +51,3 @@ });

},
enumerable: true,
enumerable: false,
configurable: true

@@ -62,3 +63,3 @@ });

},
enumerable: true,
enumerable: false,
configurable: true

@@ -68,3 +69,3 @@ });

get: function () { return this._population; },
enumerable: true,
enumerable: false,
configurable: true

@@ -100,3 +101,3 @@ });

},
enumerable: true,
enumerable: false,
configurable: true

@@ -111,3 +112,3 @@ });

},
enumerable: true,
enumerable: false,
configurable: true

@@ -114,0 +115,0 @@ });

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.combineFilters = void 0;
var default_1 = require("./default");
exports.Default = default_1.default;
Object.defineProperty(exports, "Default", { enumerable: true, get: function () { return default_1.default; } });
function combineFilters(filters) {

@@ -6,0 +7,0 @@ // TODO: caching

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var default_1 = require("./default");
exports.Default = default_1.default;
Object.defineProperty(exports, "Default", { enumerable: true, get: function () { return default_1.default; } });
//# sourceMappingURL=index.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ImageBase = void 0;
var ImageBase = /** @class */ (function () {

@@ -4,0 +5,0 @@ function ImageBase() {

@@ -15,7 +15,19 @@ "use strict";

})();
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;

@@ -22,0 +34,0 @@ };

@@ -15,7 +15,19 @@ "use strict";

})();
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;

@@ -22,0 +34,0 @@ };

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.WebWorker = void 0;
var mmcq_1 = require("./mmcq");
exports.MMCQ = mmcq_1.default;
Object.defineProperty(exports, "MMCQ", { enumerable: true, get: function () { return mmcq_1.default; } });
exports.WebWorker = null;
//# sourceMappingURL=index.js.map
import { Pixels, ComputedOptions } from '../typing';
import { Swatch } from '../color';
declare const MMCQ: (pixels: Pixels, opts: ComputedOptions) => Swatch[];
declare const MMCQ: (pixels: Pixels, opts: ComputedOptions) => Array<Swatch>;
export default MMCQ;

@@ -21,3 +21,3 @@ "use strict";

},
enumerable: true,
enumerable: false,
configurable: true

@@ -24,0 +24,0 @@ });

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getColorIndex = exports.getColorDiffStatus = exports.hexDiff = exports.rgbDiff = exports.deltaE94 = exports.rgbToCIELab = exports.xyzToCIELab = exports.rgbToXyz = exports.hslToRgb = exports.rgbToHsl = exports.rgbToHex = exports.hexToRgb = exports.defer = exports.RSHIFT = exports.SIGBITS = exports.DELTAE94_DIFF_STATUS = void 0;
exports.DELTAE94_DIFF_STATUS = {

@@ -4,0 +5,0 @@ NA: 0,

"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -13,0 +25,0 @@ var color_1 = require("./color");

{
"name": "node-vibrant",
"version": "3.1.5",
"version": "3.1.6",
"description": "Extract prominent colors from an image. Supports both node and browser environment.",

@@ -14,6 +14,6 @@ "main": "lib/index.js",

"@types/node": "^10.11.7",
"@jimp/custom": "^0.9.3",
"@jimp/types": "^0.9.3",
"@jimp/plugin-resize": "^0.9.3",
"lodash": "^4.17.4",
"@jimp/custom": "^0.16.1",
"@jimp/types": "^0.16.1",
"@jimp/plugin-resize": "^0.16.1",
"lodash": "^4.17.20",
"url": "^0.11.0"

@@ -20,0 +20,0 @@ },

@@ -31,3 +31,3 @@ import { ImageData, ImageSource } from '../typing'

export default class NodeImage extends ImageBase {
private _image: typeof Jimp
private _image: InstanceType<typeof Jimp>
private _loadByProtocolHandler (handler: ProtocalHandler, src: string): Promise<Buffer> {

@@ -34,0 +34,0 @@ return new Promise<Buffer>((resolve, reject) => {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc