Skip to content

Instantly share code, notes, and snippets.

@callumflack
Created February 21, 2019 23:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save callumflack/283f68fc3b5a34dcab0d73bbb2a79d32 to your computer and use it in GitHub Desktop.
Save callumflack/283f68fc3b5a34dcab0d73bbb2a79d32 to your computer and use it in GitHub Desktop.
(function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=0)})({0:function(t,e,n){t.exports=n("56d7")},"01f9":function(t,e,n){"use strict";var r=n("2d00"),o=n("5ca1"),i=n("2aba"),a=n("32e9"),u=n("84f2"),s=n("41a0"),c=n("7f20"),f=n("38fd"),l=n("2b4c")("iterator"),p=!([].keys&&"next"in[].keys()),h="@@iterator",d="keys",v="values",y=function(){return this};t.exports=function(t,e,n,g,m,b,_){s(n,e,g);var w,x,S,L=function(t){if(!p&&t in j)return j[t];switch(t){case d:return function(){return new n(this,t)};case v:return function(){return new n(this,t)}}return function(){return new n(this,t)}},O=e+" Iterator",P=m==v,M=!1,j=t.prototype,k=j[l]||j[h]||m&&j[m],T=k||L(m),C=m?P?L("entries"):T:void 0,E="Array"==e&&j.entries||k;if(E&&(S=f(E.call(new t)),S!==Object.prototype&&S.next&&(c(S,O,!0),r||"function"==typeof S[l]||a(S,l,y))),P&&k&&k.name!==v&&(M=!0,T=function(){return k.call(this)}),r&&!_||!p&&!M&&j[l]||a(j,l,T),u[e]=T,u[O]=y,m)if(w={values:P?T:L(v),keys:b?T:L(d),entries:C},_)for(x in w)x in j||i(j,x,w[x]);else o(o.P+o.F*(p||M),e,w);return w}},"0621":function(t,e,n){"use strict";var r=n("661e"),o=n("b6c7");r.default.DefaultOpts.ImageClass=o.default,t.exports=r.default},"07e3":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"097d":function(t,e,n){"use strict";var r=n("5ca1"),o=n("8378"),i=n("7726"),a=n("ebd6"),u=n("bcaa");r(r.P+r.R,"Promise",{finally:function(t){var e=a(this,o.Promise||i.Promise),n="function"==typeof t;return this.then(n?function(n){return u(e,t()).then(function(){return n})}:t,n?function(n){return u(e,t()).then(function(){throw n})}:t)}})},"0a49":function(t,e,n){var r=n("9b43"),o=n("626a"),i=n("4bf8"),a=n("9def"),u=n("cd1c");t.exports=function(t,e){var n=1==t,s=2==t,c=3==t,f=4==t,l=6==t,p=5==t||l,h=e||u;return function(e,u,d){for(var v,y,g=i(e),m=o(g),b=r(u,d,3),_=a(m.length),w=0,x=n?h(e,_):s?h(e,0):void 0;_>w;w++)if((p||w in m)&&(v=m[w],y=b(v,w,g),t))if(n)x[w]=y;else if(y)switch(t){case 3:return!0;case 5:return v;case 6:return w;case 2:x.push(v)}else if(f)return!1;return l?-1:c||f?f:x}}},"0d58":function(t,e,n){var r=n("ce10"),o=n("e11e");t.exports=Object.keys||function(t){return r(t,o)}},"0e46":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("2084"),o=n("5428");r.default(self,o.default)},"0fc9":function(t,e,n){var r=n("3a38"),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},1169:function(t,e,n){var r=n("2d95");t.exports=Array.isArray||function(t){return"Array"==r(t)}},1173:function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},1495:function(t,e,n){var r=n("86cc"),o=n("cb7c"),i=n("0d58");t.exports=n("9e1e")?Object.defineProperties:function(t,e){o(t);var n,a=i(e),u=a.length,s=0;while(u>s)r.f(t,n=a[s++],e[n]);return t}},1654:function(t,e,n){"use strict";var r=n("71c1")(!0);n("30f1")(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},1691:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},1991:function(t,e,n){var r,o,i,a=n("9b43"),u=n("31f4"),s=n("fab2"),c=n("230e"),f=n("7726"),l=f.process,p=f.setImmediate,h=f.clearImmediate,d=f.MessageChannel,v=f.Dispatch,y=0,g={},m="onreadystatechange",b=function(){var t=+this;if(g.hasOwnProperty(t)){var e=g[t];delete g[t],e()}},_=function(t){b.call(t.data)};p&&h||(p=function(t){var e=[],n=1;while(arguments.length>n)e.push(arguments[n++]);return g[++y]=function(){u("function"==typeof t?t:Function(t),e)},r(y),y},h=function(t){delete g[t]},"process"==n("2d95")(l)?r=function(t){l.nextTick(a(b,t,1))}:v&&v.now?r=function(t){v.now(a(b,t,1))}:d?(o=new d,i=o.port2,o.port1.onmessage=_,r=a(i.postMessage,i,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",_,!1)):r=m in c("script")?function(t){s.appendChild(c("script"))[m]=function(){s.removeChild(this),b.call(t)}}:function(t){setTimeout(a(b,t,1),0)}),t.exports={set:p,clear:h}},"1bc3":function(t,e,n){var r=n("f772");t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},"1ec9":function(t,e,n){var r=n("f772"),o=n("e53d").document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},"1fa8":function(t,e,n){var r=n("cb7c");t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(a){var i=t["return"];throw void 0!==i&&r(i.call(t)),a}}},2084:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("afc1");function o(t,e){r.default(t,function(t,n){return e.process(t,n)})}e.default=o},"230e":function(t,e,n){var r=n("d3f4"),o=n("7726").document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},2350:function(t,e){function n(t,e){var n=t[1]||"",o=t[3];if(!o)return n;if(e&&"function"===typeof btoa){var i=r(o),a=o.sources.map(function(t){return"/*# sourceURL="+o.sourceRoot+t+" */"});return[n].concat(a).concat([i]).join("\n")}return[n].join("\n")}function r(t){var e=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,"+e;return"/*# "+n+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var r=n(e,t);return e[2]?"@media "+e[2]+"{"+r+"}":r}).join("")},e.i=function(t,n){"string"===typeof t&&(t=[[null,t,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"===typeof i&&(r[i]=!0)}for(o=0;o<t.length;o++){var a=t[o];"number"===typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},"23c6":function(t,e,n){var r=n("2d95"),o=n("2b4c")("toStringTag"),i="Arguments"==r(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(n){}};t.exports=function(t){var e,n,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),o))?n:i?r(e):"Object"==(u=r(e))&&"function"==typeof e.callee?"Arguments":u}},"241e":function(t,e,n){var r=n("25eb");t.exports=function(t){return Object(r(t))}},"24c5":function(t,e,n){"use strict";var r,o,i,a,u=n("b8e3"),s=n("e53d"),c=n("d864"),f=n("40c3"),l=n("63b6"),p=n("f772"),h=n("79aa"),d=n("1173"),v=n("a22a"),y=n("f201"),g=n("4178").set,m=n("aba2")(),b=n("656e"),_=n("4439"),w=n("bc13"),x=n("cd78"),S="Promise",L=s.TypeError,O=s.process,P=O&&O.versions,M=P&&P.v8||"",j=s[S],k="process"==f(O),T=function(){},C=o=b.f,E=!!function(){try{var t=j.resolve(1),e=(t.constructor={})[n("5168")("species")]=function(t){t(T,T)};return(k||"function"==typeof PromiseRejectionEvent)&&t.then(T)instanceof e&&0!==M.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(r){}}(),D=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},A=function(t,e){if(!t._n){t._n=!0;var n=t._c;m(function(){var r=t._v,o=1==t._s,i=0,a=function(e){var n,i,a,u=o?e.ok:e.fail,s=e.resolve,c=e.reject,f=e.domain;try{u?(o||(2==t._h&&I(t),t._h=1),!0===u?n=r:(f&&f.enter(),n=u(r),f&&(f.exit(),a=!0)),n===e.promise?c(L("Promise-chain cycle")):(i=D(n))?i.call(n,s,c):s(n)):c(r)}catch(l){f&&!a&&f.exit(),c(l)}};while(n.length>i)a(n[i++]);t._c=[],t._n=!1,e&&!t._h&&V(t)})}},V=function(t){g.call(s,function(){var e,n,r,o=t._v,i=R(t);if(i&&(e=_(function(){k?O.emit("unhandledRejection",o,t):(n=s.onunhandledrejection)?n({promise:t,reason:o}):(r=s.console)&&r.error&&r.error("Unhandled promise rejection",o)}),t._h=k||R(t)?2:1),t._a=void 0,i&&e.e)throw e.v})},R=function(t){return 1!==t._h&&0===(t._a||t._c).length},I=function(t){g.call(s,function(){var e;k?O.emit("rejectionHandled",t):(e=s.onrejectionhandled)&&e({promise:t,reason:t._v})})},F=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),A(e,!0))},N=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw L("Promise can't be resolved itself");(e=D(t))?m(function(){var r={_w:n,_d:!1};try{e.call(t,c(N,r,1),c(F,r,1))}catch(o){F.call(r,o)}}):(n._v=t,n._s=1,A(n,!1))}catch(r){F.call({_w:n,_d:!1},r)}}};E||(j=function(t){d(this,j,S,"_h"),h(t),r.call(this);try{t(c(N,this,1),c(F,this,1))}catch(e){F.call(this,e)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n("5c95")(j.prototype,{then:function(t,e){var n=C(y(this,j));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=k?O.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&A(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r;this.promise=t,this.resolve=c(N,t,1),this.reject=c(F,t,1)},b.f=C=function(t){return t===j||t===a?new i(t):o(t)}),l(l.G+l.W+l.F*!E,{Promise:j}),n("45f2")(j,S),n("4c95")(S),a=n("584a")[S],l(l.S+l.F*!E,S,{reject:function(t){var e=C(this),n=e.reject;return n(t),e.promise}}),l(l.S+l.F*(u||!E),S,{resolve:function(t){return x(u&&this===a?j:this,t)}}),l(l.S+l.F*!(E&&n("4ee1")(function(t){j.all(t)["catch"](T)})),S,{all:function(t){var e=this,n=C(e),r=n.resolve,o=n.reject,i=_(function(){var n=[],i=0,a=1;v(t,!1,function(t){var u=i++,s=!1;n.push(void 0),a++,e.resolve(t).then(function(t){s||(s=!0,n[u]=t,--a||r(n))},o)}),--a||r(n)});return i.e&&o(i.v),n.promise},race:function(t){var e=this,n=C(e),r=n.reject,o=_(function(){v(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return o.e&&r(o.v),n.promise}})},"24e1":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("368d"),o=function(){function t(t,e){this._rgb=t,this._population=e}return t.applyFilters=function(t,e){return e.length>0?t.filter(function(t){for(var n=t.r,r=t.g,o=t.b,i=0;i<e.length;i++)if(!e[i](n,r,o,255))return!1;return!0}):t},t.clone=function(e){return new t(e._rgb,e._population)},Object.defineProperty(t.prototype,"r",{get:function(){return this._rgb[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"g",{get:function(){return this._rgb[1]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"b",{get:function(){return this._rgb[2]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rgb",{get:function(){return this._rgb},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hsl",{get:function(){if(!this._hsl){var t=this._rgb,e=t[0],n=t[1],o=t[2];this._hsl=r.rgbToHsl(e,n,o)}return this._hsl},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hex",{get:function(){if(!this._hex){var t=this._rgb,e=t[0],n=t[1],o=t[2];this._hex=r.rgbToHex(e,n,o)}return this._hex},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"population",{get:function(){return this._population},enumerable:!0,configurable:!0}),t.prototype.toJSON=function(){return{rgb:this.rgb,population:this.population}},t.prototype.getRgb=function(){return this._rgb},t.prototype.getHsl=function(){return this.hsl},t.prototype.getPopulation=function(){return this._population},t.prototype.getHex=function(){return this.hex},t.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(t.prototype,"titleTextColor",{get:function(){return this._titleTextColor&&(this._titleTextColor=this.getYiq()<200?"#fff":"#000"),this._titleTextColor},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bodyTextColor",{get:function(){return this._bodyTextColor&&(this._bodyTextColor=this.getYiq()<150?"#fff":"#000"),this._bodyTextColor},enumerable:!0,configurable:!0}),t.prototype.getTitleTextColor=function(){return this.titleTextColor},t.prototype.getBodyTextColor=function(){return this.bodyTextColor},t}();e.Swatch=o},"25eb":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},2621:function(t,e){e.f=Object.getOwnPropertySymbols},"263c":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("4a52"),o=5,i=8-o,a=function(){function t(t,e,n,r,o,i,a){this.histogram=a,this._volume=-1,this._count=-1,this.dimension={r1:t,r2:e,g1:n,g2:r,b1:o,b2:i}}return t.build=function(e){var n=new r.default(e,{sigBits:o}),i=n.rmin,a=n.rmax,u=n.gmin,s=n.gmax,c=n.bmin,f=n.bmax;return new t(i,a,u,s,c,f,n)},t.prototype.invalidate=function(){this._volume=this._count=-1,this._avg=null},t.prototype.volume=function(){if(this._volume<0){var t=this.dimension,e=t.r1,n=t.r2,r=t.g1,o=t.g2,i=t.b1,a=t.b2;this._volume=(n-e+1)*(o-r+1)*(a-i+1)}return this._volume},t.prototype.count=function(){if(this._count<0){for(var t=this.histogram,e=t.hist,n=t.getColorIndex,r=this.dimension,o=r.r1,i=r.r2,a=r.g1,u=r.g2,s=r.b1,c=r.b2,f=0,l=o;l<=i;l++)for(var p=a;p<=u;p++)for(var h=s;h<=c;h++){var d=n(l,p,h);f+=e[d]}this._count=f}return this._count},t.prototype.clone=function(){var e=this.histogram,n=this.dimension,r=n.r1,o=n.r2,i=n.g1,a=n.g2,u=n.b1,s=n.b2;return new t(r,o,i,a,u,s,e)},t.prototype.avg=function(){if(!this._avg){var t=this.histogram,e=t.hist,n=t.getColorIndex,r=this.dimension,i=r.r1,a=r.r2,u=r.g1,s=r.g2,c=r.b1,f=r.b2,l=0,p=1<<8-o,h=void 0,d=void 0,v=void 0;h=d=v=0;for(var y=i;y<=a;y++)for(var g=u;g<=s;g++)for(var m=c;m<=f;m++){var b=n(y,g,m),_=e[b];l+=_,h+=_*(y+.5)*p,d+=_*(g+.5)*p,v+=_*(m+.5)*p}this._avg=l?[~~(h/l),~~(d/l),~~(v/l)]:[~~(p*(i+a+1)/2),~~(p*(u+s+1)/2),~~(p*(c+f+1)/2)]}return this._avg},t.prototype.contains=function(t){var e=t[0],n=t[1],r=t[2],o=this.dimension,a=o.r1,u=o.r2,s=o.g1,c=o.g2,f=o.b1,l=o.b2;return e>>=i,n>>=i,r>>=i,e>=a&&e<=u&&n>=s&&n<=c&&r>=f&&r<=l},t.prototype.split=function(){var t=this.histogram,e=t.hist,n=t.getColorIndex,r=this.dimension,o=r.r1,i=r.r2,a=r.g1,u=r.g2,s=r.b1,c=r.b2,f=this.count();if(!f)return[];if(1===f)return[this.clone()];var l,p,h=i-o+1,d=u-a+1,v=c-s+1,y=Math.max(h,d,v),g=null;l=p=0;var m=null;if(y===h){m="r",g=new Uint32Array(i+1);for(var b=o;b<=i;b++){l=0;for(var _=a;_<=u;_++)for(var w=s;w<=c;w++){var x=n(b,_,w);l+=e[x]}p+=l,g[b]=p}}else if(y===d){m="g",g=new Uint32Array(u+1);for(_=a;_<=u;_++){l=0;for(b=o;b<=i;b++)for(w=s;w<=c;w++){x=n(b,_,w);l+=e[x]}p+=l,g[_]=p}}else{m="b",g=new Uint32Array(c+1);for(w=s;w<=c;w++){l=0;for(b=o;b<=i;b++)for(_=a;_<=u;_++){x=n(b,_,w);l+=e[x]}p+=l,g[w]=p}}for(var S=-1,L=new Uint32Array(g.length),O=0;O<g.length;O++){var P=g[O];S<0&&P>p/2&&(S=O),L[O]=p-P}var M=this;function j(t){var e=t+"1",n=t+"2",r=M.dimension[e],o=M.dimension[n],i=M.clone(),a=M.clone(),u=S-r,s=o-S;u<=s?(o=Math.min(o-1,~~(S+s/2)),o=Math.max(0,o)):(o=Math.max(r,~~(S-1-u/2)),o=Math.min(M.dimension[n],o));while(!g[o])o++;var c=L[o];while(!c&&g[o-1])c=L[--o];return i.dimension[n]=o,a.dimension[e]=o+1,[i,a]}return j(m)},t}();e.default=a},"27ee":function(t,e,n){var r=n("23c6"),o=n("2b4c")("iterator"),i=n("84f2");t.exports=n("8378").getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},"294c":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"2aba":function(t,e,n){var r=n("7726"),o=n("32e9"),i=n("69a8"),a=n("ca5a")("src"),u=n("fa5b"),s="toString",c=(""+u).split(s);n("8378").inspectSource=function(t){return u.call(t)},(t.exports=function(t,e,n,u){var s="function"==typeof n;s&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(s&&(i(n,a)||o(n,a,t[e]?""+t[e]:c.join(String(e)))),t===r?t[e]=n:u?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,s,function(){return"function"==typeof this&&this[a]||u.call(this)})},"2aeb":function(t,e,n){var r=n("cb7c"),o=n("1495"),i=n("e11e"),a=n("613b")("IE_PROTO"),u=function(){},s="prototype",c=function(){var t,e=n("230e")("iframe"),r=i.length,o="<",a=">";e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(o+"script"+a+"document.F=Object"+o+"/script"+a),t.close(),c=t.F;while(r--)delete c[s][i[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(u[s]=r(t),n=new u,u[s]=null,n[a]=t):n=c(),void 0===e?n:o(n,e)}},"2b4c":function(t,e,n){var r=n("5537")("wks"),o=n("ca5a"),i=n("7726").Symbol,a="function"==typeof i,u=t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))};u.store=r},"2bcc":function(t,e,n){"use strict";function r(t,e){var n={};for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];n[r]=e(o)}return n}function o(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.forEach(function(e){if(e)for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];Array.isArray(r)?t[n]=r.slice(0):"object"===typeof r?(t[n]||(t[n]={}),o(t[n],r)):t[n]=r}}),t}Object.defineProperty(e,"__esModule",{value:!0}),e.mapValues=r,e.assignDeep=o},"2d00":function(t,e){t.exports=!1},"2d95":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"2f21":function(t,e,n){"use strict";var r=n("79e5");t.exports=function(t,e){return!!t&&r(function(){e?t.call(null,function(){},1):t.call(null)})}},3024:function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},"30f1":function(t,e,n){"use strict";var r=n("b8e3"),o=n("63b6"),i=n("9138"),a=n("35e8"),u=n("481b"),s=n("8f60"),c=n("45f2"),f=n("53e2"),l=n("5168")("iterator"),p=!([].keys&&"next"in[].keys()),h="@@iterator",d="keys",v="values",y=function(){return this};t.exports=function(t,e,n,g,m,b,_){s(n,e,g);var w,x,S,L=function(t){if(!p&&t in j)return j[t];switch(t){case d:return function(){return new n(this,t)};case v:return function(){return new n(this,t)}}return function(){return new n(this,t)}},O=e+" Iterator",P=m==v,M=!1,j=t.prototype,k=j[l]||j[h]||m&&j[m],T=k||L(m),C=m?P?L("entries"):T:void 0,E="Array"==e&&j.entries||k;if(E&&(S=f(E.call(new t)),S!==Object.prototype&&S.next&&(c(S,O,!0),r||"function"==typeof S[l]||a(S,l,y))),P&&k&&k.name!==v&&(M=!0,T=function(){return k.call(this)}),r&&!_||!p&&!M&&j[l]||a(j,l,T),u[e]=T,u[O]=y,m)if(w={values:P?T:L(v),keys:b?T:L(d),entries:C},_)for(x in w)x in j||i(j,x,w[x]);else o(o.P+o.F*(p||M),e,w);return w}},"31f4":function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},"32e9":function(t,e,n){var r=n("86cc"),o=n("4630");t.exports=n("9e1e")?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},"32fc":function(t,e,n){var r=n("e53d").document;t.exports=r&&r.documentElement},"335c":function(t,e,n){var r=n("6b4c");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},"33a4":function(t,e,n){var r=n("84f2"),o=n("2b4c")("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},"35e8":function(t,e,n){var r=n("d9f6"),o=n("aebd");t.exports=n("8e60")?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},"368d":function(t,e,n){"use strict";function r(t){var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(!e)throw new RangeError("'"+t+"' is not a valid hex color");return[e[1],e[2],e[3]].map(function(t){return parseInt(t,16)})}function o(t,e,n){return"#"+((1<<24)+(t<<16)+(e<<8)+n).toString(16).slice(1,7)}function i(t,e,n){t/=255,e/=255,n/=255;var r=Math.max(t,e,n),o=Math.min(t,e,n),i=0,a=0,u=(r+o)/2;if(r!==o){var s=r-o;switch(a=u>.5?s/(2-r-o):s/(r+o),r){case t:i=(e-n)/s+(e<n?6:0);break;case e:i=(n-t)/s+2;break;case n:i=(t-e)/s+4;break}i/=6}return[i,a,u]}function a(t,e,n){var r,o,i;function a(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}if(0===e)r=o=i=n;else{var u=n<.5?n*(1+e):n+e-n*e,s=2*n-u;r=a(s,u,t+1/3),o=a(s,u,t),i=a(s,u,t-1/3)}return[255*r,255*o,255*i]}function u(t,e,n){t/=255,e/=255,n/=255,t=t>.04045?Math.pow((t+.005)/1.055,2.4):t/12.92,e=e>.04045?Math.pow((e+.005)/1.055,2.4):e/12.92,n=n>.04045?Math.pow((n+.005)/1.055,2.4):n/12.92,t*=100,e*=100,n*=100;var r=.4124*t+.3576*e+.1805*n,o=.2126*t+.7152*e+.0722*n,i=.0193*t+.1192*e+.9505*n;return[r,o,i]}function s(t,e,n){var r=95.047,o=100,i=108.883;t/=r,e/=o,n/=i,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,e=e>.008856?Math.pow(e,1/3):7.787*e+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116;var a=116*e-16,u=500*(t-e),s=200*(e-n);return[a,u,s]}function c(t,e,n){var r=u(t,e,n),o=r[0],i=r[1],a=r[2];return s(o,i,a)}function f(t,e){var n=1,r=1,o=1,i=t[0],a=t[1],u=t[2],s=e[0],c=e[1],f=e[2],l=i-s,p=a-c,h=u-f,d=Math.sqrt(a*a+u*u),v=Math.sqrt(c*c+f*f),y=s-i,g=v-d,m=Math.sqrt(l*l+p*p+h*h),b=Math.sqrt(m)>Math.sqrt(Math.abs(y))+Math.sqrt(Math.abs(g))?Math.sqrt(m*m-y*y-g*g):0,_=1+.045*d,w=1+.015*d;return y/=n,g/=r*_,b/=o*w,Math.sqrt(y*y+g*g+b*b)}function l(t,e){var n=c.apply(void 0,t),r=c.apply(void 0,e);return f(n,r)}function p(t,e){var n=r(t),o=r(e);return l(n,o)}function h(t){return t<e.DELTAE94_DIFF_STATUS.NA?"N/A":t<=e.DELTAE94_DIFF_STATUS.PERFECT?"Perfect":t<=e.DELTAE94_DIFF_STATUS.CLOSE?"Close":t<=e.DELTAE94_DIFF_STATUS.GOOD?"Good":t<e.DELTAE94_DIFF_STATUS.SIMILAR?"Similar":"Wrong"}Object.defineProperty(e,"__esModule",{value:!0}),e.DELTAE94_DIFF_STATUS={NA:0,PERFECT:1,CLOSE:2,GOOD:10,SIMILAR:50},e.hexToRgb=r,e.rgbToHex=o,e.rgbToHsl=i,e.hslToRgb=a,e.rgbToXyz=u,e.xyzToCIELab=s,e.rgbToCIELab=c,e.deltaE94=f,e.rgbDiff=l,e.hexDiff=p,e.getColorDiffStatus=h},"36c3":function(t,e,n){var r=n("335c"),o=n("25eb");t.exports=function(t){return r(o(t))}},3702:function(t,e,n){var r=n("481b"),o=n("5168")("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},"38fd":function(t,e,n){var r=n("69a8"),o=n("4bf8"),i=n("613b")("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},"3a38":function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},"3c11":function(t,e,n){"use strict";var r=n("63b6"),o=n("584a"),i=n("e53d"),a=n("f201"),u=n("cd78");r(r.P+r.R,"Promise",{finally:function(t){var e=a(this,o.Promise||i.Promise),n="function"==typeof t;return this.then(n?function(n){return u(e,t()).then(function(){return n})}:t,n?function(n){return u(e,t()).then(function(){throw n})}:t)}})},"40c3":function(t,e,n){var r=n("6b4c"),o=n("5168")("toStringTag"),i="Arguments"==r(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(n){}};t.exports=function(t){var e,n,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),o))?n:i?r(e):"Object"==(u=r(e))&&"function"==typeof e.callee?"Arguments":u}},4106:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ac4"),o=n("2bcc"),i=function(){function t(t,e){void 0===e&&(e={}),this._src=t,this._opts=o.assignDeep({},r.default.DefaultOpts,e)}return t.prototype.maxColorCount=function(t){return this._opts.colorCount=t,this},t.prototype.maxDimension=function(t){return this._opts.maxDimension=t,this},t.prototype.addFilter=function(t){return this._opts.filters?this._opts.filters.push(t):this._opts.filters=[t],this},t.prototype.removeFilter=function(t){if(this._opts.filters){var e=this._opts.filters.indexOf(t);e>0&&this._opts.filters.splice(e)}return this},t.prototype.clearFilters=function(){return this._opts.filters=[],this},t.prototype.quality=function(t){return this._opts.quality=t,this},t.prototype.useImageClass=function(t){return this._opts.ImageClass=t,this},t.prototype.useGenerator=function(t,e){return this._opts.generators||(this._opts.generators=[]),this._opts.generators.push(e?{name:t,options:e}:t),this},t.prototype.useQuantizer=function(t,e){return this._opts.quantizer=e?{name:t,options:e}:t,this},t.prototype.build=function(){return new r.default(this._src,this._opts)},t.prototype.getPalette=function(t){return this.build().getPalette(t)},t.prototype.getSwatches=function(t){return this.build().getPalette(t)},t}();e.default=i},4178:function(t,e,n){var r,o,i,a=n("d864"),u=n("3024"),s=n("32fc"),c=n("1ec9"),f=n("e53d"),l=f.process,p=f.setImmediate,h=f.clearImmediate,d=f.MessageChannel,v=f.Dispatch,y=0,g={},m="onreadystatechange",b=function(){var t=+this;if(g.hasOwnProperty(t)){var e=g[t];delete g[t],e()}},_=function(t){b.call(t.data)};p&&h||(p=function(t){var e=[],n=1;while(arguments.length>n)e.push(arguments[n++]);return g[++y]=function(){u("function"==typeof t?t:Function(t),e)},r(y),y},h=function(t){delete g[t]},"process"==n("6b4c")(l)?r=function(t){l.nextTick(a(b,t,1))}:v&&v.now?r=function(t){v.now(a(b,t,1))}:d?(o=new d,i=o.port2,o.port1.onmessage=_,r=a(i.postMessage,i,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",_,!1)):r=m in c("script")?function(t){s.appendChild(c("script"))[m]=function(){s.removeChild(this),b.call(t)}}:function(t){setTimeout(a(b,t,1),0)}),t.exports={set:p,clear:h}},"41a0":function(t,e,n){"use strict";var r=n("2aeb"),o=n("4630"),i=n("7f20"),a={};n("32e9")(a,n("2b4c")("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:o(1,n)}),i(t,e+" Iterator")}},"43fc":function(t,e,n){"use strict";var r=n("63b6"),o=n("656e"),i=n("4439");r(r.S,"Promise",{try:function(t){var e=o.f(this),n=i(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},4439:function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(e){return{e:!0,v:e}}}},4588:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},"45f2":function(t,e,n){var r=n("d9f6").f,o=n("07e3"),i=n("5168")("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"481b":function(t,e){t.exports={}},"499e":function(t,e,n){"use strict";function r(t,e){for(var n=[],r={},o=0;o<e.length;o++){var i=e[o],a=i[0],u=i[1],s=i[2],c=i[3],f={id:t+":"+o,css:u,media:s,sourceMap:c};r[a]?r[a].parts.push(f):n.push(r[a]={id:a,parts:[f]})}return n}n.r(e),n.d(e,"default",function(){return d});var o="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!o)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var i={},a=o&&(document.head||document.getElementsByTagName("head")[0]),u=null,s=0,c=!1,f=function(){},l=null,p="data-vue-ssr-id",h="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function d(t,e,n,o){c=n,l=o||{};var a=r(t,e);return v(a),function(e){for(var n=[],o=0;o<a.length;o++){var u=a[o],s=i[u.id];s.refs--,n.push(s)}e?(a=r(t,e),v(a)):a=[];for(o=0;o<n.length;o++){s=n[o];if(0===s.refs){for(var c=0;c<s.parts.length;c++)s.parts[c]();delete i[s.id]}}}}function v(t){for(var e=0;e<t.length;e++){var n=t[e],r=i[n.id];if(r){r.refs++;for(var o=0;o<r.parts.length;o++)r.parts[o](n.parts[o]);for(;o<n.parts.length;o++)r.parts.push(g(n.parts[o]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(o=0;o<n.parts.length;o++)a.push(g(n.parts[o]));i[n.id]={id:n.id,refs:1,parts:a}}}}function y(){var t=document.createElement("style");return t.type="text/css",a.appendChild(t),t}function g(t){var e,n,r=document.querySelector("style["+p+'~="'+t.id+'"]');if(r){if(c)return f;r.parentNode.removeChild(r)}if(h){var o=s++;r=u||(u=y()),e=b.bind(null,r,o,!1),n=b.bind(null,r,o,!0)}else r=y(),e=_.bind(null,r),n=function(){r.parentNode.removeChild(r)};return e(t),function(r){if(r){if(r.css===t.css&&r.media===t.media&&r.sourceMap===t.sourceMap)return;e(t=r)}else n()}}var m=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}();function b(t,e,n,r){var o=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=m(e,o);else{var i=document.createTextNode(o),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(i,a[e]):t.appendChild(i)}}function _(t,e){var n=e.css,r=e.media,o=e.sourceMap;if(r&&t.setAttribute("media",r),l.ssrId&&t.setAttribute(p,e.id),o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{while(t.firstChild)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}},"4a52":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){this.pixels=t,this.opts=e;var n=e.sigBits,r=function(t,e,r){return(t<<2*n)+(e<<n)+r};this.getColorIndex=r;var o,i,a,u,s,c,f,l,p,h,d=8-n,v=1<<3*n,y=new Uint32Array(v);o=a=s=0,i=u=c=Number.MAX_VALUE;var g=t.length/4,m=0;while(m<g){var b=4*m;if(m++,f=t[b+0],l=t[b+1],p=t[b+2],h=t[b+3],0!==h){f>>=d,l>>=d,p>>=d;var _=r(f,l,p);y[_]+=1,f>o&&(o=f),f<i&&(i=f),l>a&&(a=l),l<u&&(u=l),p>s&&(s=p),p<c&&(c=p)}}this._colorCount=y.reduce(function(t,e){return e>0?t+1:t},0),this.hist=y,this.rmax=o,this.rmin=i,this.gmax=a,this.gmin=u,this.bmax=s,this.bmin=c}return Object.defineProperty(t.prototype,"colorCount",{get:function(){return this._colorCount},enumerable:!0,configurable:!0}),t}();e.default=r},"4a59":function(t,e,n){var r=n("9b43"),o=n("1fa8"),i=n("33a4"),a=n("cb7c"),u=n("9def"),s=n("27ee"),c={},f={};e=t.exports=function(t,e,n,l,p){var h,d,v,y,g=p?function(){return t}:s(t),m=r(n,l,e?2:1),b=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(i(g)){for(h=u(t.length);h>b;b++)if(y=e?m(a(d=t[b])[0],d[1]):m(t[b]),y===c||y===f)return y}else for(v=g.call(t);!(d=v.next()).done;)if(y=o(v,m,d.value,e),y===c||y===f)return y};e.BREAK=c,e.RETURN=f},"4bf8":function(t,e,n){var r=n("be13");t.exports=function(t){return Object(r(t))}},"4c95":function(t,e,n){"use strict";var r=n("e53d"),o=n("584a"),i=n("d9f6"),a=n("8e60"),u=n("5168")("species");t.exports=function(t){var e="function"==typeof o[t]?o[t]:r[t];a&&e&&!e[u]&&i.f(e,u,{configurable:!0,get:function(){return this}})}},"4ee1":function(t,e,n){var r=n("5168")("iterator"),o=!1;try{var i=[7][r]();i["return"]=function(){o=!0},Array.from(i,function(){throw 2})}catch(a){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],u=i[r]();u.next=function(){return{done:n=!0}},i[r]=function(){return u},t(i)}catch(a){}return n}},"50ed":function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},5168:function(t,e,n){var r=n("dbdb")("wks"),o=n("62a0"),i=n("e53d").Symbol,a="function"==typeof i,u=t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))};u.store=r},"52a7":function(t,e){e.f={}.propertyIsEnumerable},"53e2":function(t,e,n){var r=n("07e3"),o=n("241e"),i=n("5559")("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},5428:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("daff"),o=n("851f"),i=n("c2d8"),a=(new i.BasicPipeline).filter.register("default",function(t,e,n,r){return r>=125&&!(t>250&&e>250&&n>250)}).quantizer.register("mmcq",r.default).generator.register("default",o.default);e.default=a},"551c":function(t,e,n){"use strict";var r,o,i,a,u=n("2d00"),s=n("7726"),c=n("9b43"),f=n("23c6"),l=n("5ca1"),p=n("d3f4"),h=n("d8e8"),d=n("f605"),v=n("4a59"),y=n("ebd6"),g=n("1991").set,m=n("8079")(),b=n("a5b8"),_=n("9c80"),w=n("a25f"),x=n("bcaa"),S="Promise",L=s.TypeError,O=s.process,P=O&&O.versions,M=P&&P.v8||"",j=s[S],k="process"==f(O),T=function(){},C=o=b.f,E=!!function(){try{var t=j.resolve(1),e=(t.constructor={})[n("2b4c")("species")]=function(t){t(T,T)};return(k||"function"==typeof PromiseRejectionEvent)&&t.then(T)instanceof e&&0!==M.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(r){}}(),D=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},A=function(t,e){if(!t._n){t._n=!0;var n=t._c;m(function(){var r=t._v,o=1==t._s,i=0,a=function(e){var n,i,a,u=o?e.ok:e.fail,s=e.resolve,c=e.reject,f=e.domain;try{u?(o||(2==t._h&&I(t),t._h=1),!0===u?n=r:(f&&f.enter(),n=u(r),f&&(f.exit(),a=!0)),n===e.promise?c(L("Promise-chain cycle")):(i=D(n))?i.call(n,s,c):s(n)):c(r)}catch(l){f&&!a&&f.exit(),c(l)}};while(n.length>i)a(n[i++]);t._c=[],t._n=!1,e&&!t._h&&V(t)})}},V=function(t){g.call(s,function(){var e,n,r,o=t._v,i=R(t);if(i&&(e=_(function(){k?O.emit("unhandledRejection",o,t):(n=s.onunhandledrejection)?n({promise:t,reason:o}):(r=s.console)&&r.error&&r.error("Unhandled promise rejection",o)}),t._h=k||R(t)?2:1),t._a=void 0,i&&e.e)throw e.v})},R=function(t){return 1!==t._h&&0===(t._a||t._c).length},I=function(t){g.call(s,function(){var e;k?O.emit("rejectionHandled",t):(e=s.onrejectionhandled)&&e({promise:t,reason:t._v})})},F=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),A(e,!0))},N=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw L("Promise can't be resolved itself");(e=D(t))?m(function(){var r={_w:n,_d:!1};try{e.call(t,c(N,r,1),c(F,r,1))}catch(o){F.call(r,o)}}):(n._v=t,n._s=1,A(n,!1))}catch(r){F.call({_w:n,_d:!1},r)}}};E||(j=function(t){d(this,j,S,"_h"),h(t),r.call(this);try{t(c(N,this,1),c(F,this,1))}catch(e){F.call(this,e)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n("dcbc")(j.prototype,{then:function(t,e){var n=C(y(this,j));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=k?O.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&A(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r;this.promise=t,this.resolve=c(N,t,1),this.reject=c(F,t,1)},b.f=C=function(t){return t===j||t===a?new i(t):o(t)}),l(l.G+l.W+l.F*!E,{Promise:j}),n("7f20")(j,S),n("7a56")(S),a=n("8378")[S],l(l.S+l.F*!E,S,{reject:function(t){var e=C(this),n=e.reject;return n(t),e.promise}}),l(l.S+l.F*(u||!E),S,{resolve:function(t){return x(u&&this===a?j:this,t)}}),l(l.S+l.F*!(E&&n("5cc5")(function(t){j.all(t)["catch"](T)})),S,{all:function(t){var e=this,n=C(e),r=n.resolve,o=n.reject,i=_(function(){var n=[],i=0,a=1;v(t,!1,function(t){var u=i++,s=!1;n.push(void 0),a++,e.resolve(t).then(function(t){s||(s=!0,n[u]=t,--a||r(n))},o)}),--a||r(n)});return i.e&&o(i.v),n.promise},race:function(t){var e=this,n=C(e),r=n.reject,o=_(function(){v(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return o.e&&r(o.v),n.promise}})},5537:function(t,e,n){var r=n("8378"),o=n("7726"),i="__core-js_shared__",a=o[i]||(o[i]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},5559:function(t,e,n){var r=n("dbdb")("keys"),o=n("62a0");t.exports=function(t){return r[t]||(r[t]=o(t))}},"56d7":function(t,e,n){"use strict";n.r(e);n("cadf"),n("551c"),n("f751"),n("097d");var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"CloudinaryAssets assets__wrap",class:{"assets--empty":0===t.model.assets.length}},[t.model.assets.length?n("ul",{staticClass:"CloudinaryAssets__list assets"},t._l(t.model.assets,function(e,r){return n("li",{key:e.id+"-"+r,staticClass:"assets__item uk-flex"},[n("div",{staticClass:"assets__lcol"},[n("img",{staticClass:"assets__item-icon",attrs:{src:"https://res.cloudinary.com/"+t.options.cloudName+"/image/upload/c_thumb,f_auto,g_center,q_auto,w_20,h_20/v"+e.version+"/"+e.id,alt:""}})]),n("div",[n("div",[n("a",{staticClass:"link link--inverse",attrs:{href:"https://res.cloudinary.com/"+t.options.cloudName+"/image/upload/f_auto,q_auto/v"+e.version+"/"+e.id,target:"_blank"}},[t._v("\n "+t._s(e.id)+"\n ")]),n("a",{staticClass:"assets__item-trash",attrs:{title:"Remove"},on:{click:function(e){return t.removeAsset(r)}}},[n("i",{staticClass:"uk-icon-minus-circle"})])]),n("input",{directives:[{name:"model",rawName:"v-model",value:t.model.assets[r].title,expression:"model.assets[index].title"}],staticClass:"uk-form-small assets__item-name",attrs:{type:"text",placeholder:"Title"},domProps:{value:t.model.assets[r].title},on:{input:function(e){e.target.composing||t.$set(t.model.assets[r],"title",e.target.value)}}}),n("input",{directives:[{name:"model",rawName:"v-model",value:t.model.assets[r].alt,expression:"model.assets[index].alt"}],staticClass:"uk-form-small assets__item-name",attrs:{type:"text",placeholder:"Alt"},domProps:{value:t.model.assets[r].alt},on:{input:function(e){e.target.composing||t.$set(t.model.assets[r],"alt",e.target.value)}}}),n("input",{staticClass:"uk-form-small assets__item-name",attrs:{type:"text",placeholder:"Dominant color"},domProps:{value:t.model.assets[r].dominant_color}})])])}),0):t._e(),t.model.assets.length<t.options.maxFiles?n("a",{staticClass:"uk-form-file assets__btn",on:{click:t.browseMediaLibrary}},[t._m(0)]):t._e()])},o=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"util__nobreak"},[n("i",{staticClass:"uk-icon-upload uk-margin-small-right"}),t._v(" Add Asset(s)\n ")])}],i=(n("d25f"),n("96cf"),n("795b")),a=n.n(i);function u(t,e,n,r,o,i,u){try{var s=t[i](u),c=s.value}catch(f){return void n(f)}s.done?e(c):a.a.resolve(c).then(r,o)}function s(t){return function(){var e=this,n=arguments;return new a.a(function(r,o){var i=t.apply(e,n);function a(t){u(i,r,o,a,s,"next",t)}function s(t){u(i,r,o,a,s,"throw",t)}a(void 0)})}}n("ac6a"),n("f3e2");var c=n("5bcd"),f={mixins:[window.Storyblok.plugin],watch:{model:{deep:!0,handler:function(t){this.$emit("changed-model",t)}}},created:function(){var t=this,e=parent,n=e.document,r=n.createElement("script");r.type="text/javascript",r.onload=function(){t.mediaLibrary=e.cloudinary.createMediaLibrary({api_key:t.options.apiKey,cloud_name:t.options.cloudName},{insertHandler:t.addImages})},r.src="https://media-library.cloudinary.com/global/all.js",n.getElementsByTagName("head")[0].appendChild(r)},methods:{addImages:function(t){var e=this,n=t.assets,r=n.slice(0,this.options.maxFiles-this.model.assets.length);r.forEach(function(){var t=s(regeneratorRuntime.mark(function t(n){var r,o,i,a,u,s,f;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return r=n.context,o=n.height,i=n.public_id,a=n.secure_url,u=n.version,s=n.width,t.next=3,c["from"](a).getPalette();case 3:f=t.sent,e.model.assets.push({alt:r&&r.custom.alt,aspect_ratio:s/o,dominant_color:f.Vibrant&&f.Vibrant.getHex(),height:o,id:i,title:r&&r.custom.caption,version:u,width:s});case 5:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}())},browseMediaLibrary:function(){var t=this.options.maxFiles-this.model.assets.length;this.mediaLibrary.show({max_files:t,multiple:t>1})},initWith:function(){return{assets:[],plugin:"cfd-cloudinary-assets"}},removeAsset:function(t){this.model.assets=this.model.assets.filter(function(e,n){return n!==t})}}},l=f;n("efad");function p(t,e,n,r,o,i,a,u){var s,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),a?(s=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=s):o&&(s=u?function(){o.call(this,this.$root.$options.shadowRoot)}:o),s)if(c.functional){c._injectStyles=s;var f=c.render;c.render=function(t,e){return s.call(e),f(t,e)}}else{var l=c.beforeCreate;c.beforeCreate=l?[].concat(l,s):[s]}return{exports:t,options:c}}var h=p(l,r,o,!1,null,null,null),d=h.exports,v=d.methods.initWith();window.storyblok.field_types[v.plugin]=d},"584a":function(t,e){var n=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},"5b4e":function(t,e,n){var r=n("36c3"),o=n("b447"),i=n("0fc9");t.exports=function(t){return function(e,n,a){var u,s=r(e),c=o(s.length),f=i(a,c);if(t&&n!=n){while(c>f)if(u=s[f++],u!=u)return!0}else for(;c>f;f++)if((t||f in s)&&s[f]===n)return t||f||0;return!t&&-1}}},"5bcd":function(t,e,n){"use strict";var r=n("0621"),o=n("b039"),i=n("0e46");r.use(new o.WorkerPipeline(i)),t.exports=r},"5c7d":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9408"),o=function(){function t(){this._pools={}}return t.prototype.register=function(t,e){this._pools[t]=new r.default(e)},t.prototype.hasWorker=function(t){return!!this._pools[t]},t.prototype.getWorker=function(t){return this._pools[t]},t.prototype.invokeWorker=function(t,e,n){return this.hasWorker(t)?this.getWorker(t).invoke(e,n):Promise.reject("Worker '"+t+"' does not exist")},t}();e.default=o},"5c95":function(t,e,n){var r=n("35e8");t.exports=function(t,e,n){for(var o in e)n&&t[o]?t[o]=e[o]:r(t,o,e[o]);return t}},"5ca1":function(t,e,n){var r=n("7726"),o=n("8378"),i=n("32e9"),a=n("2aba"),u=n("9b43"),s="prototype",c=function(t,e,n){var f,l,p,h,d=t&c.F,v=t&c.G,y=t&c.S,g=t&c.P,m=t&c.B,b=v?r:y?r[e]||(r[e]={}):(r[e]||{})[s],_=v?o:o[e]||(o[e]={}),w=_[s]||(_[s]={});for(f in v&&(n=e),n)l=!d&&b&&void 0!==b[f],p=(l?b:n)[f],h=m&&l?u(p,r):g&&"function"==typeof p?u(Function.call,p):p,b&&a(b,f,p,t&c.U),_[f]!=p&&i(_,f,h),g&&w[f]!=p&&(w[f]=p)};r.core=o,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},"5cc5":function(t,e,n){var r=n("2b4c")("iterator"),o=!1;try{var i=[7][r]();i["return"]=function(){o=!0},Array.from(i,function(){throw 2})}catch(a){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],u=i[r]();u.next=function(){return{done:n=!0}},i[r]=function(){return u},t(i)}catch(a){}return n}},"613b":function(t,e,n){var r=n("5537")("keys"),o=n("ca5a");t.exports=function(t){return r[t]||(r[t]=o(t))}},"626a":function(t,e,n){var r=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},"62a0":function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},"63b6":function(t,e,n){var r=n("e53d"),o=n("584a"),i=n("d864"),a=n("35e8"),u=n("07e3"),s="prototype",c=function(t,e,n){var f,l,p,h=t&c.F,d=t&c.G,v=t&c.S,y=t&c.P,g=t&c.B,m=t&c.W,b=d?o:o[e]||(o[e]={}),_=b[s],w=d?r:v?r[e]:(r[e]||{})[s];for(f in d&&(n=e),n)l=!h&&w&&void 0!==w[f],l&&u(b,f)||(p=l?w[f]:n[f],b[f]=d&&"function"!=typeof w[f]?n[f]:g&&l?i(p,r):m&&w[f]==p?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e[s]=t[s],e}(p):y&&"function"==typeof p?i(Function.call,p):p,y&&((b.virtual||(b.virtual={}))[f]=p,t&c.R&&_&&!_[f]&&a(_,f,p)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},"656e":function(t,e,n){"use strict";var r=n("79aa");function o(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=r(e),this.reject=r(n)}t.exports.f=function(t){return new o(t)}},"661e":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ac4");r.default.DefaultOpts.quantizer="mmcq",r.default.DefaultOpts.generators=["default"],r.default.DefaultOpts.filters=["default"],e.default=r.default},6821:function(t,e,n){var r=n("626a"),o=n("be13");t.exports=function(t){return r(o(t))}},"696e":function(t,e,n){n("c207"),n("1654"),n("6c1c"),n("24c5"),n("3c11"),n("43fc"),t.exports=n("584a").Promise},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"6a99":function(t,e,n){var r=n("d3f4");t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},"6b4c":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"6c1c":function(t,e,n){n("c367");for(var r=n("e53d"),o=n("35e8"),i=n("481b"),a=n("5168")("toStringTag"),u="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),s=0;s<u.length;s++){var c=u[s],f=r[c],l=f&&f.prototype;l&&!l[a]&&o(l,a,c),i[c]=i.Array}},"71c1":function(t,e,n){var r=n("3a38"),o=n("25eb");t.exports=function(t){return function(e,n){var i,a,u=String(o(e)),s=r(n),c=u.length;return s<0||s>=c?t?"":void 0:(i=u.charCodeAt(s),i<55296||i>56319||s+1===c||(a=u.charCodeAt(s+1))<56320||a>57343?t?u.charAt(s):i:t?u.slice(s,s+2):a-56320+(i-55296<<10)+65536)}}},7333:function(t,e,n){"use strict";var r=n("0d58"),o=n("2621"),i=n("52a7"),a=n("4bf8"),u=n("626a"),s=Object.assign;t.exports=!s||n("79e5")(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=s({},t)[n]||Object.keys(s({},e)).join("")!=r})?function(t,e){var n=a(t),s=arguments.length,c=1,f=o.f,l=i.f;while(s>c){var p,h=u(arguments[c++]),d=f?r(h).concat(f(h)):r(h),v=d.length,y=0;while(v>y)l.call(h,p=d[y++])&&(n[p]=h[p])}return n}:s},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(t,e,n){var r=n("4588"),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},"794b":function(t,e,n){t.exports=!n("8e60")&&!n("294c")(function(){return 7!=Object.defineProperty(n("1ec9")("div"),"a",{get:function(){return 7}}).a})},"795b":function(t,e,n){t.exports=n("696e")},"79aa":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"7a56":function(t,e,n){"use strict";var r=n("7726"),o=n("86cc"),i=n("9e1e"),a=n("2b4c")("species");t.exports=function(t){var e=r[t];i&&e&&!e[a]&&o.f(e,a,{configurable:!0,get:function(){return this}})}},"7cd6":function(t,e,n){var r=n("40c3"),o=n("5168")("iterator"),i=n("481b");t.exports=n("584a").getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},"7e90":function(t,e,n){var r=n("d9f6"),o=n("e4ae"),i=n("c3a1");t.exports=n("8e60")?Object.defineProperties:function(t,e){o(t);var n,a=i(e),u=a.length,s=0;while(u>s)r.f(t,n=a[s++],e[n]);return t}},"7f20":function(t,e,n){var r=n("86cc").f,o=n("69a8"),i=n("2b4c")("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},8079:function(t,e,n){var r=n("7726"),o=n("1991").set,i=r.MutationObserver||r.WebKitMutationObserver,a=r.process,u=r.Promise,s="process"==n("2d95")(a);t.exports=function(){var t,e,n,c=function(){var r,o;s&&(r=a.domain)&&r.exit();while(t){o=t.fn,t=t.next;try{o()}catch(i){throw t?n():e=void 0,i}}e=void 0,r&&r.enter()};if(s)n=function(){a.nextTick(c)};else if(!i||r.navigator&&r.navigator.standalone)if(u&&u.resolve){var f=u.resolve(void 0);n=function(){f.then(c)}}else n=function(){o.call(r,c)};else{var l=!0,p=document.createTextNode("");new i(c).observe(p,{characterData:!0}),n=function(){p.data=l=!l}}return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},8378:function(t,e){var n=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},8436:function(t,e){t.exports=function(){}},"84f2":function(t,e){t.exports={}},"851f":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("24e1"),o=n("368d"),i={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 a(t){var e=0;return t.forEach(function(t){e=Math.max(e,t.getPopulation())}),e}function u(t,e){return t.Vibrant===e||t.DarkVibrant===e||t.LightVibrant===e||t.Muted===e||t.DarkMuted===e||t.LightMuted===e}function s(t,e,n,r,o,i,a){function u(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,r=0,o=0;o<t.length;o+=2){var i=t[o],a=t[o+1];n+=i*a,r+=a}return n/r}function s(t,e){return 1-Math.abs(t-e)}return u(s(t,e),a.weightSaturation,s(n,r),a.weightLuma,o/i,a.weightPopulation)}function c(t,e,n,r,o,i,a,c,f,l){var p=null,h=0;return e.forEach(function(e){var d=e.getHsl(),v=d[1],y=d[2];if(v>=c&&v<=f&&y>=o&&y<=i&&!u(t,e)){var g=s(v,a,y,r,e.getPopulation(),n,l);(null===p||g>h)&&(p=e,h=g)}}),p}function f(t,e,n){var r={Vibrant:null,DarkVibrant:null,LightVibrant:null,Muted:null,DarkMuted:null,LightMuted:null};return r.Vibrant=c(r,t,e,n.targetNormalLuma,n.minNormalLuma,n.maxNormalLuma,n.targetVibrantSaturation,n.minVibrantSaturation,1,n),r.LightVibrant=c(r,t,e,n.targetLightLuma,n.minLightLuma,1,n.targetVibrantSaturation,n.minVibrantSaturation,1,n),r.DarkVibrant=c(r,t,e,n.targetDarkLuma,0,n.maxDarkLuma,n.targetVibrantSaturation,n.minVibrantSaturation,1,n),r.Muted=c(r,t,e,n.targetNormalLuma,n.minNormalLuma,n.maxNormalLuma,n.targetMutesSaturation,0,n.maxMutesSaturation,n),r.LightMuted=c(r,t,e,n.targetLightLuma,n.minLightLuma,1,n.targetMutesSaturation,0,n.maxMutesSaturation,n),r.DarkMuted=c(r,t,e,n.targetDarkLuma,0,n.maxDarkLuma,n.targetMutesSaturation,0,n.maxMutesSaturation,n),r}function l(t,e,n){if(!t.Vibrant&&!t.DarkVibrant&&!t.LightVibrant){if(!t.DarkVibrant&&t.DarkMuted){var i=t.DarkMuted.getHsl(),a=i[0],u=i[1],s=i[2];s=n.targetDarkLuma,t.DarkVibrant=new r.Swatch(o.hslToRgb(a,u,s),0)}if(!t.LightVibrant&&t.LightMuted){var c=t.LightMuted.getHsl();a=c[0],u=c[1],s=c[2];s=n.targetDarkLuma,t.DarkVibrant=new r.Swatch(o.hslToRgb(a,u,s),0)}}if(!t.Vibrant&&t.DarkVibrant){var f=t.DarkVibrant.getHsl();a=f[0],u=f[1],s=f[2];s=n.targetNormalLuma,t.Vibrant=new r.Swatch(o.hslToRgb(a,u,s),0)}else if(!t.Vibrant&&t.LightVibrant){var l=t.LightVibrant.getHsl();a=l[0],u=l[1],s=l[2];s=n.targetNormalLuma,t.Vibrant=new r.Swatch(o.hslToRgb(a,u,s),0)}if(!t.DarkVibrant&&t.Vibrant){var p=t.Vibrant.getHsl();a=p[0],u=p[1],s=p[2];s=n.targetDarkLuma,t.DarkVibrant=new r.Swatch(o.hslToRgb(a,u,s),0)}if(!t.LightVibrant&&t.Vibrant){var h=t.Vibrant.getHsl();a=h[0],u=h[1],s=h[2];s=n.targetLightLuma,t.LightVibrant=new r.Swatch(o.hslToRgb(a,u,s),0)}if(!t.Muted&&t.Vibrant){var d=t.Vibrant.getHsl();a=d[0],u=d[1],s=d[2];s=n.targetMutesSaturation,t.Muted=new r.Swatch(o.hslToRgb(a,u,s),0)}if(!t.DarkMuted&&t.DarkVibrant){var v=t.DarkVibrant.getHsl();a=v[0],u=v[1],s=v[2];s=n.targetMutesSaturation,t.DarkMuted=new r.Swatch(o.hslToRgb(a,u,s),0)}if(!t.LightMuted&&t.LightVibrant){var y=t.LightVibrant.getHsl();a=y[0],u=y[1],s=y[2];s=n.targetMutesSaturation,t.LightMuted=new r.Swatch(o.hslToRgb(a,u,s),0)}}var p=function(t,e){e=Object.assign({},i,e);var n=a(t),r=f(t,n,e);return l(r,n,e),r};e.default=p},"86cc":function(t,e,n){var r=n("cb7c"),o=n("c69a"),i=n("6a99"),a=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(u){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"8e60":function(t,e,n){t.exports=!n("294c")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"8f60":function(t,e,n){"use strict";var r=n("a159"),o=n("aebd"),i=n("45f2"),a={};n("35e8")(a,n("5168")("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:o(1,n)}),i(t,e+" Iterator")}},9138:function(t,e,n){t.exports=n("35e8")},9408:function(t,e,n){"use strict";var r=this&&this.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&(n[r[o]]=t[r[o]])}return n};Object.defineProperty(e,"__esModule",{value:!0});var o=n("ceee"),i=5,a=function(){function t(t){this.WorkerClass=t,this._taskId=0,this._workers=[],this._queue=[],this._executing={}}return t.prototype._findIdleWorker=function(){var t;return 0===this._workers.length||this._workers.length<i?(t=new this.WorkerClass,t.id=this._workers.length,t.idle=!0,this._workers.push(t),t.onmessage=this._onMessage.bind(this,t.id)):t=this._workers.find(function(t){var e=t.idle;return e}),t},t.prototype._enqueue=function(t,e){var n=o.defer(),r={id:this._taskId++,payload:t,transferList:e,deferred:n};return this._queue.push(r),this._tryDequeue(),n.promise},t.prototype._tryDequeue=function(){if(!(this._queue.length<=0)){var t=this._findIdleWorker();if(t){var e=this._queue.shift();this._executing[e.id]=e;var n=e.transferList,o=(e.deferred,e.transferList,r(e,["deferred","transferList"]));t.postMessage(o,n),t.idle=!1}}},t.prototype._onMessage=function(t,e){var n=e.data;if(n){var r=n.id,o=this._executing[r];switch(delete this._executing[r],n.type){case"return":o.deferred.resolve(n.payload);break;case"error":o.deferred.reject(new Error(n.payload));break}this._workers[t].idle=!0,this._tryDequeue()}},t.prototype.invoke=function(t,e){return this._enqueue(t,e)},t}();e.default=a},"96cf":function(t,e){!function(e){"use strict";var n,r=Object.prototype,o=r.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag",c="object"===typeof t,f=e.regeneratorRuntime;if(f)c&&(t.exports=f);else{f=e.regeneratorRuntime=c?t.exports:{},f.wrap=_;var l="suspendedStart",p="suspendedYield",h="executing",d="completed",v={},y={};y[a]=function(){return this};var g=Object.getPrototypeOf,m=g&&g(g(E([])));m&&m!==r&&o.call(m,a)&&(y=m);var b=L.prototype=x.prototype=Object.create(y);S.prototype=b.constructor=L,L.constructor=S,L[s]=S.displayName="GeneratorFunction",f.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===S||"GeneratorFunction"===(e.displayName||e.name))},f.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,L):(t.__proto__=L,s in t||(t[s]="GeneratorFunction")),t.prototype=Object.create(b),t},f.awrap=function(t){return{__await:t}},O(P.prototype),P.prototype[u]=function(){return this},f.AsyncIterator=P,f.async=function(t,e,n,r){var o=new P(_(t,e,n,r));return f.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},O(b),b[s]="Generator",b[a]=function(){return this},b.toString=function(){return"[object Generator]"},f.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){while(e.length){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},f.values=E,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(T),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,o){return u.type="throw",u.arg=t,e.next=r,o&&(e.method="next",e.arg=n),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),v}}}function _(t,e,n,r){var o=e&&e.prototype instanceof x?e:x,i=Object.create(o.prototype),a=new C(r||[]);return i._invoke=M(t,n,a),i}function w(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(r){return{type:"throw",arg:r}}}function x(){}function S(){}function L(){}function O(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function P(t){function e(n,r,i,a){var u=w(t[n],t,r);if("throw"!==u.type){var s=u.arg,c=s.value;return c&&"object"===typeof c&&o.call(c,"__await")?Promise.resolve(c.__await).then(function(t){e("next",t,i,a)},function(t){e("throw",t,i,a)}):Promise.resolve(c).then(function(t){s.value=t,i(s)},function(t){return e("throw",t,i,a)})}a(u.arg)}var n;function r(t,r){function o(){return new Promise(function(n,o){e(t,r,n,o)})}return n=n?n.then(o,o):o()}this._invoke=r}function M(t,e,n){var r=l;return function(o,i){if(r===h)throw new Error("Generator is already running");if(r===d){if("throw"===o)throw i;return D()}n.method=o,n.arg=i;while(1){var a=n.delegate;if(a){var u=j(a,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var s=w(t,e,n);if("normal"===s.type){if(r=n.done?d:p,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r=d,n.method="throw",n.arg=s.arg)}}}function j(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,j(t,e),"throw"===e.method))return v;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=w(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,v;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,v):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[a];if(e)return e.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){while(++r<t.length)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=n,e.done=!0,e};return i.next=i}}return{next:D}}function D(){return{value:n,done:!0}}}(function(){return this||"object"===typeof self&&self}()||Function("return this")())},"9ac4":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("bf4c"),o=n("4106"),i=n("2bcc"),a=function(){function t(e,n){this._src=e,this.opts=i.assignDeep({},t.DefaultOpts,n)}return t.use=function(t){this._pipeline=t},t.from=function(t){return new o.default(t)},Object.defineProperty(t.prototype,"result",{get:function(){return this._result},enumerable:!0,configurable:!0}),t.prototype._process=function(e,n){this.opts.quantizer;e.scaleDown(this.opts);var o=r.buildProcessOptions(this.opts,n);return t._pipeline.process(e.getImageData(),o)},t.prototype.palette=function(){return this.swatches()},t.prototype.swatches=function(){throw new Error("Method deprecated. Use `Vibrant.result.palettes[name]` instead")},t.prototype.getPalette=function(){var t=this,e=arguments[0],n=arguments[1],r="string"===typeof e?e:"default",o="string"===typeof e?n:e,i=new this.opts.ImageClass;return i.load(this._src).then(function(e){return t._process(e,{generators:[r]})}).then(function(e){return t._result=e,e.palettes[r]}).then(function(t){return i.remove(),o&&o(void 0,t),t}).catch(function(t){return i.remove(),o&&o(t),Promise.reject(t)})},t.prototype.getPalettes=function(){var t=this,e=arguments[0],n=arguments[1],r=Array.isArray(e)?e:["*"],o=Array.isArray(e)?n:e,i=new this.opts.ImageClass;return i.load(this._src).then(function(e){return t._process(e,{generators:r})}).then(function(e){return t._result=e,e.palettes}).then(function(t){return i.remove(),o&&o(void 0,t),t}).catch(function(t){return i.remove(),o&&o(t),Promise.reject(t)})},t.DefaultOpts={colorCount:64,quality:5,filters:[]},t}();e.default=a},"9b43":function(t,e,n){var r=n("d8e8");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},"9c6c":function(t,e,n){var r=n("2b4c")("unscopables"),o=Array.prototype;void 0==o[r]&&n("32e9")(o,r,{}),t.exports=function(t){o[r][t]=!0}},"9c80":function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(e){return{e:!0,v:e}}}},"9def":function(t,e,n){var r=n("4588"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},a159:function(t,e,n){var r=n("e4ae"),o=n("7e90"),i=n("1691"),a=n("5559")("IE_PROTO"),u=function(){},s="prototype",c=function(){var t,e=n("1ec9")("iframe"),r=i.length,o="<",a=">";e.style.display="none",n("32fc").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(o+"script"+a+"document.F=Object"+o+"/script"+a),t.close(),c=t.F;while(r--)delete c[s][i[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(u[s]=r(t),n=new u,u[s]=null,n[a]=t):n=c(),void 0===e?n:o(n,e)}},a22a:function(t,e,n){var r=n("d864"),o=n("b0dc"),i=n("3702"),a=n("e4ae"),u=n("b447"),s=n("7cd6"),c={},f={};e=t.exports=function(t,e,n,l,p){var h,d,v,y,g=p?function(){return t}:s(t),m=r(n,l,e?2:1),b=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(i(g)){for(h=u(t.length);h>b;b++)if(y=e?m(a(d=t[b])[0],d[1]):m(t[b]),y===c||y===f)return y}else for(v=g.call(t);!(d=v.next()).done;)if(y=o(v,m,d.value,e),y===c||y===f)return y};e.BREAK=c,e.RETURN=f},a25f:function(t,e,n){var r=n("7726"),o=r.navigator;t.exports=o&&o.userAgent||""},a5b8:function(t,e,n){"use strict";var r=n("d8e8");function o(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=r(e),this.reject=r(n)}t.exports.f=function(t){return new o(t)}},aba2:function(t,e,n){var r=n("e53d"),o=n("4178").set,i=r.MutationObserver||r.WebKitMutationObserver,a=r.process,u=r.Promise,s="process"==n("6b4c")(a);t.exports=function(){var t,e,n,c=function(){var r,o;s&&(r=a.domain)&&r.exit();while(t){o=t.fn,t=t.next;try{o()}catch(i){throw t?n():e=void 0,i}}e=void 0,r&&r.enter()};if(s)n=function(){a.nextTick(c)};else if(!i||r.navigator&&r.navigator.standalone)if(u&&u.resolve){var f=u.resolve(void 0);n=function(){f.then(c)}}else n=function(){o.call(r,c)};else{var l=!0,p=document.createTextNode("");new i(c).observe(p,{characterData:!0}),n=function(){p.data=l=!l}}return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},ac6a:function(t,e,n){for(var r=n("cadf"),o=n("0d58"),i=n("2aba"),a=n("7726"),u=n("32e9"),s=n("84f2"),c=n("2b4c"),f=c("iterator"),l=c("toStringTag"),p=s.Array,h={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},d=o(h),v=0;v<d.length;v++){var y,g=d[v],m=h[g],b=a[g],_=b&&b.prototype;if(_&&(_[f]||u(_,f,p),_[l]||u(_,l,g),s[g]=p,m))for(y in r)_[y]||i(_,y,r[y],!0)}},aebd:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},afc1:function(t,e,n){"use strict";function r(t,e){t.onmessage=function(n){var r=n.data,o=r.id,i=r.payload;Promise.resolve(e.apply(void 0,i)).then(function(e){t.postMessage({id:o,type:"return",payload:e})}).catch(function(e){t.postMessage({id:o,type:"error",payload:e.message})})}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r},b039:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("5c7d"),o=n("24e1"),i=n("2bcc"),a=function(){function t(t){this.PipelineWorker=t,this._manager=new r.default,this._manager.register("pipeline",t)}return t.prototype._rehydrate=function(t){var e=t.colors,n=t.palettes;return t.colors=e.map(function(t){return o.Swatch.clone(t)}),t.palettes=i.mapValues(n,function(t){return i.mapValues(t,function(t){return t?o.Swatch.clone(t):null})}),t},t.prototype.process=function(t,e){var n=this;return this._manager.invokeWorker("pipeline",[t,e],[t.data.buffer]).then(function(t){return n._rehydrate(t)})},t}();e.WorkerPipeline=a},b0dc:function(t,e,n){var r=n("e4ae");t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(a){var i=t["return"];throw void 0!==i&&r(i.call(t)),a}}},b447:function(t,e,n){var r=n("3a38"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},b6c7:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n("bf43");function i(t){var e=new URL(t,location.href);return e.protocol===location.protocol&&e.host===location.host&&e.port===location.port}function a(t,e){var n=new URL(t),r=new URL(e);return n.protocol===r.protocol&&n.hostname===r.hostname&&n.port===r.port}var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype._initCanvas=function(){var t=this.image,e=this._canvas=document.createElement("canvas"),n=e.getContext("2d");if(!n)throw new ReferenceError("Failed to create canvas context");this._context=n,e.className="@vibrant/canvas",e.style.display="none",this._width=e.width=t.width,this._height=e.height=t.height,n.drawImage(t,0,0),document.body.appendChild(e)},e.prototype.load=function(t){var e,n,r=this;if("string"===typeof t)e=document.createElement("img"),n=t,i(n)||a(window.location.href,n)||(e.crossOrigin="anonymous"),e.src=n;else{if(!(t instanceof HTMLImageElement))return Promise.reject(new Error("Cannot load buffer as an image in browser"));e=t,n=t.src}return this.image=e,new Promise(function(t,o){var i=function(){r._initCanvas(),t(r)};e.complete?i():(e.onload=i,e.onerror=function(t){return o(new Error("Fail to load image: "+n))})})},e.prototype.clear=function(){this._context.clearRect(0,0,this._width,this._height)},e.prototype.update=function(t){this._context.putImageData(t,0,0)},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.resize=function(t,e,n){var r=this,o=r._canvas,i=r._context,a=r.image;this._width=o.width=t,this._height=o.height=e,i.scale(n,n),i.drawImage(a,0,0)},e.prototype.getPixelCount=function(){return this._width*this._height},e.prototype.getImageData=function(){return this._context.getImageData(0,0,this._width,this._height)},e.prototype.remove=function(){this._canvas&&this._canvas.parentNode&&this._canvas.parentNode.removeChild(this._canvas)},e}(o.ImageBase);e.default=u},b8e3:function(t,e){t.exports=!0},bc13:function(t,e,n){var r=n("e53d"),o=r.navigator;t.exports=o&&o.userAgent||""},bcaa:function(t,e,n){var r=n("cb7c"),o=n("d3f4"),i=n("a5b8");t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t),a=n.resolve;return a(e),n.promise}},be13:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},bf43:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){}return t.prototype.scaleDown=function(t){var e=this.getWidth(),n=this.getHeight(),r=1;if(t.maxDimension>0){var o=Math.max(e,n);o>t.maxDimension&&(r=t.maxDimension/o)}else r=1/t.quality;r<1&&this.resize(e*r,n*r,r)},t}();function o(t,e){if(e.length>0)for(var n=t.data,r=n.length/4,o=void 0,i=void 0,a=void 0,u=void 0,s=void 0,c=0;c<r;c++){o=4*c,i=n[o+0],a=n[o+1],u=n[o+2],s=n[o+3];for(var f=0;f<e.length;f++)if(!e[f](i,a,u,s)){n[o+3]=0;break}}return t}e.ImageBase=r,e.applyFilters=o},bf4c:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("2bcc");function o(t,e){var n=t.colorCount,o=t.quantizer,i=t.generators,a=t.filters,u={colorCount:n},s="string"===typeof o?{name:o,options:{}}:o;return s.options=r.assignDeep({},u,s.options),r.assignDeep({},{quantizer:s,generators:i,filters:a},e)}e.buildProcessOptions=o},c207:function(t,e){},c2d8:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))(function(o,i){function a(t){try{s(r.next(t))}catch(e){i(e)}}function u(t){try{s(r["throw"](t))}catch(e){i(e)}}function s(t){t.done?o(t.value):new n(function(e){e(t.value)}).then(a,u)}s((r=r.apply(t,e||[])).next())})},o=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(t){return function(e){return s([t,e])}}function s(i){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(o=2&i[0]?r["return"]:i[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!(o=o.length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(u){i=[6,u],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}};Object.defineProperty(e,"__esModule",{value:!0});var i=n("bf43"),a=function(){function t(t){this.pipeline=t,this._map={}}return t.prototype.names=function(){return Object.keys(this._map)},t.prototype.has=function(t){return!!this._map[t]},t.prototype.get=function(t){return this._map[t]},t.prototype.register=function(t,e){return this._map[t]=e,this.pipeline},t}();e.Stage=a;var u=function(){function t(){this.filter=new a(this),this.quantizer=new a(this),this.generator=new a(this)}return t.prototype._buildProcessTasks=function(t){var e=this,n=t.filters,r=t.quantizer,o=t.generators;return 1===o.length&&"*"===o[0]&&(o=this.generator.names()),{filters:n.map(function(t){return i(e.filter,t)}),quantizer:i(this.quantizer,r),generators:o.map(function(t){return i(e.generator,t)})};function i(t,e){var n,r;return"string"===typeof e?n=e:(n=e.name,r=e.options),{name:n,fn:t.get(n),options:r}}},t.prototype.process=function(t,e){return r(this,void 0,void 0,function(){var n,r,i,a,u,s,c;return o(this,function(o){switch(o.label){case 0:return n=this._buildProcessTasks(e),r=n.filters,i=n.quantizer,a=n.generators,[4,this._filterColors(r,t)];case 1:return u=o.sent(),[4,this._generateColors(i,u)];case 2:return s=o.sent(),[4,this._generatePalettes(a,s)];case 3:return c=o.sent(),[2,{colors:s,palettes:c}]}})})},t.prototype._filterColors=function(t,e){return Promise.resolve(i.applyFilters(e,t.map(function(t){var e=t.fn;return e})))},t.prototype._generateColors=function(t,e){return Promise.resolve(t.fn(e.data,t.options))},t.prototype._generatePalettes=function(t,e){return r(this,void 0,void 0,function(){var n;return o(this,function(r){switch(r.label){case 0:return[4,Promise.all(t.map(function(t){var n=t.fn,r=t.options;return Promise.resolve(n(e,r))}))];case 1:return n=r.sent(),[2,Promise.resolve(n.reduce(function(e,n,r){return e[t[r].name]=n,e},{}))]}})})},t}();e.BasicPipeline=u},c366:function(t,e,n){var r=n("6821"),o=n("9def"),i=n("77f1");t.exports=function(t){return function(e,n,a){var u,s=r(e),c=o(s.length),f=i(a,c);if(t&&n!=n){while(c>f)if(u=s[f++],u!=u)return!0}else for(;c>f;f++)if((t||f in s)&&s[f]===n)return t||f||0;return!t&&-1}}},c367:function(t,e,n){"use strict";var r=n("8436"),o=n("50ed"),i=n("481b"),a=n("36c3");t.exports=n("30f1")(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},c3a1:function(t,e,n){var r=n("e6f3"),o=n("1691");t.exports=Object.keys||function(t){return r(t,o)}},c411:function(t,e,n){e=t.exports=n("2350")(!1),e.push([t.i,".CloudinaryAssets__list{padding-left:0;list-style-type:none}",""])},c69a:function(t,e,n){t.exports=!n("9e1e")&&!n("79e5")(function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a})},ca5a:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},cadf:function(t,e,n){"use strict";var r=n("9c6c"),o=n("d53b"),i=n("84f2"),a=n("6821");t.exports=n("01f9")(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},cb7c:function(t,e,n){var r=n("d3f4");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},cd1c:function(t,e,n){var r=n("e853");t.exports=function(t,e){return new(r(t))(e)}},cd78:function(t,e,n){var r=n("e4ae"),o=n("f772"),i=n("656e");t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t),a=n.resolve;return a(e),n.promise}},ce10:function(t,e,n){var r=n("69a8"),o=n("6821"),i=n("c366")(!1),a=n("613b")("IE_PROTO");t.exports=function(t,e){var n,u=o(t),s=0,c=[];for(n in u)n!=a&&r(u,n)&&c.push(n);while(e.length>s)r(u,n=e[s++])&&(~i(c,n)||c.push(n));return c}},ceee:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){var t=this;this.promise=new Promise(function(e,n){t.resolve=e,t.reject=n})}return t}();function o(){return new r}e.Defer=r,e.defer=o},d25f:function(t,e,n){"use strict";var r=n("5ca1"),o=n("0a49")(2);r(r.P+r.F*!n("2f21")([].filter,!0),"Array",{filter:function(t){return o(this,t,arguments[1])}})},d3f4:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},d53b:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},d864:function(t,e,n){var r=n("79aa");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},d99f:function(t,e,n){var r=n("c411");"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var o=n("499e").default;o("600b9cdc",r,!0,{sourceMap:!1,shadowMode:!1})},d9f6:function(t,e,n){var r=n("e4ae"),o=n("794b"),i=n("1bc3"),a=Object.defineProperty;e.f=n("8e60")?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(u){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},daff:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("24e1"),o=n("263c"),i=n("fc08"),a=.75;function u(t,e){var n=t.size();while(t.size()<e){var r=t.pop();if(!(r&&r.count()>0))break;var o=r.split(),i=o[0],a=o[1];if(t.push(i),a&&a.count()>0&&t.push(a),t.size()===n)break;n=t.size()}}var s=function(t,e){if(0===t.length||e.colorCount<2||e.colorCount>256)throw new Error("Wrong MMCQ parameters");var n=o.default.build(t),r=(n.histogram.colorCount,new i.default(function(t,e){return t.count()-e.count()}));r.push(n),u(r,a*e.colorCount);var s=new i.default(function(t,e){return t.count()*t.volume()-e.count()*e.volume()});return s.contents=r.contents,u(s,e.colorCount-s.size()),c(s)};function c(t){var e=[];while(t.size()){var n=t.pop(),o=n.avg();o[0],o[1],o[2];e.push(new r.Swatch(o,n.count()))}return e}e.default=s},dbdb:function(t,e,n){var r=n("584a"),o=n("e53d"),i="__core-js_shared__",a=o[i]||(o[i]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n("b8e3")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},dcbc:function(t,e,n){var r=n("2aba");t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e4ae:function(t,e,n){var r=n("f772");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},e53d:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},e6f3:function(t,e,n){var r=n("07e3"),o=n("36c3"),i=n("5b4e")(!1),a=n("5559")("IE_PROTO");t.exports=function(t,e){var n,u=o(t),s=0,c=[];for(n in u)n!=a&&r(u,n)&&c.push(n);while(e.length>s)r(u,n=e[s++])&&(~i(c,n)||c.push(n));return c}},e853:function(t,e,n){var r=n("d3f4"),o=n("1169"),i=n("2b4c")("species");t.exports=function(t){var e;return o(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!o(e.prototype)||(e=void 0),r(e)&&(e=e[i],null===e&&(e=void 0))),void 0===e?Array:e}},ebd6:function(t,e,n){var r=n("cb7c"),o=n("d8e8"),i=n("2b4c")("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||void 0==(n=r(a)[i])?e:o(n)}},efad:function(t,e,n){"use strict";var r=n("d99f"),o=n.n(r);o.a},f201:function(t,e,n){var r=n("e4ae"),o=n("79aa"),i=n("5168")("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||void 0==(n=r(a)[i])?e:o(n)}},f3e2:function(t,e,n){"use strict";var r=n("5ca1"),o=n("0a49")(0),i=n("2f21")([].forEach,!0);r(r.P+r.F*!i,"Array",{forEach:function(t){return o(this,t,arguments[1])}})},f605:function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},f751:function(t,e,n){var r=n("5ca1");r(r.S+r.F,"Object",{assign:n("7333")})},f772:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},fa5b:function(t,e,n){t.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(t,e,n){var r=n("7726").document;t.exports=r&&r.documentElement},fc08:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t){this._comparator=t,this.contents=[],this._sorted=!1}return t.prototype._sort=function(){this._sorted||(this.contents.sort(this._comparator),this._sorted=!0)},t.prototype.push=function(t){this.contents.push(t),this._sorted=!1},t.prototype.peek=function(t){return this._sort(),t="number"===typeof t?t:this.contents.length-1,this.contents[t]},t.prototype.pop=function(){return this._sort(),this.contents.pop()},t.prototype.size=function(){return this.contents.length},t.prototype.map=function(t){return this._sort(),this.contents.map(t)},t}();e.default=r}});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment