-
Notifications
You must be signed in to change notification settings - Fork 0
/
component---src-pages-index-jsx-428ad3912175bc3d0207.js
8 lines (8 loc) · 206 KB
/
component---src-pages-index-jsx-428ad3912175bc3d0207.js
1
2
3
4
5
6
7
8
webpackJsonp([0xc23565d713b7],{1046:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(){return"undefined"==typeof x&&"undefined"!=typeof window&&window.IntersectionObserver&&(x=new window.IntersectionObserver(function(t){t.forEach(function(t){j.forEach(function(e){e[0]===t.target&&(t.isIntersecting||t.intersectionRatio>0)&&(x.unobserve(e[0]),e[1]())})})},{rootMargin:"200px"})),x}e.__esModule=!0;var i=n(14),a=r(i),s=n(31),u=r(s),c=n(30),l=r(c),f=n(13),p=r(f),h=n(8),d=r(h),y=n(1),v=r(y),m=n(3),_=r(m),g=function(t){var e=(0,d.default)({},t);return e.responsiveResolution&&(e.resolutions=e.responsiveResolution,delete e.responsiveResolution),e.responsiveSizes&&(e.sizes=e.responsiveSizes,delete e.responsiveSizes),e},b={},w=function(t){var e=g(t),n=e.sizes?e.sizes.src:e.resolutions.src;return!!b[n]||(b[n]=!0,!1)},x=void 0,j=[],E=function(t,e){o().observe(t),j.push([t,e])},O=null,S=function(){if(null!==O)return O;var t="undefined"!=typeof window?window.document.createElement("canvas"):{};return O=!(!t.getContext||!t.getContext("2d"))&&0===t.toDataURL("image/webp").indexOf("data:image/webp")},C=function(t){var e=t.opacity,n=void 0===e?"1":e,r=t.src,o=t.srcSet,i=t.sizes,a=void 0===i?"":i,s=t.title,u=void 0===s?"":s,c=t.alt,l=void 0===c?"":c,f=t.width,p=void 0===f?"":f,h=t.height,d=void 0===h?"":h,y=t.transitionDelay,v=void 0===y?"0.5s":y;return'<img width="'+p+'" height="'+d+'" src="'+r+'" srcset="'+o+'" alt="'+l+'" title="'+u+'" sizes="'+a+'" style="position:absolute;top:0;left:0;transition:opacity 0.5s;transition-delay:'+v+";opacity:"+n+';width:100%;height:100%;object-fit:cover;object-position:center"/>'},k=function(t){var e=t.style,n=t.onLoad,r=(0,p.default)(t,["style","onLoad"]);return v.default.createElement("img",(0,d.default)({},r,{onLoad:n,style:(0,d.default)({position:"absolute",top:0,left:0,transition:"opacity 0.5s",width:"100%",height:"100%",objectFit:"cover",objectPosition:"center"},e)}))};k.propTypes={style:_.default.object,onLoad:_.default.func};var T=function(t){function e(n){(0,a.default)(this,e);var r=(0,u.default)(this,t.call(this,n)),o=!0,i=!0,s=!1,c=w(n);return!c&&"undefined"!=typeof window&&window.IntersectionObserver&&(o=!1,i=!1,s=!0),"undefined"==typeof window&&(o=!1,i=!1),r.state={isVisible:o,imgLoaded:i,IOSupported:s},r.handleRef=r.handleRef.bind(r),r}return(0,l.default)(e,t),e.prototype.handleRef=function(t){var e=this;this.state.IOSupported&&t&&E(t,function(){e.setState({isVisible:!0,imgLoaded:!1})})},e.prototype.render=function(){var t=this,e=g(this.props),n=e.title,r=e.alt,o=e.className,i=e.outerWrapperClassName,a=e.style,s=void 0===a?{}:a,u=e.imgStyle,c=void 0===u?{}:u,l=e.sizes,f=e.resolutions,p=e.backgroundColor,h=e.Tag,y=void 0;y="boolean"==typeof p?"lightgray":p;var m=(0,d.default)({opacity:this.state.imgLoaded?0:1,transitionDelay:"0.25s"},c),_=(0,d.default)({opacity:this.state.imgLoaded||this.props.fadeIn===!1?1:0},c);if(l){var b=l;return b.srcWebp&&b.srcSetWebp&&S()&&(b.src=b.srcWebp,b.srcSet=b.srcSetWebp),v.default.createElement(h,{className:(i?i:"")+" gatsby-image-outer-wrapper",style:{zIndex:0,position:"absolute"===s.position?"initial":"relative"}},v.default.createElement(h,{className:(o?o:"")+" gatsby-image-wrapper",style:(0,d.default)({position:"relative",overflow:"hidden",zIndex:1},s),ref:this.handleRef},v.default.createElement(h,{style:{width:"100%",paddingBottom:100/b.aspectRatio+"%"}}),b.base64&&v.default.createElement(k,{alt:r,title:n,src:b.base64,style:m}),b.tracedSVG&&v.default.createElement(k,{alt:r,title:n,src:b.tracedSVG,style:m}),y&&v.default.createElement(h,{title:n,style:{backgroundColor:y,position:"absolute",top:0,bottom:0,opacity:this.state.imgLoaded?0:1,transitionDelay:"0.35s",right:0,left:0}}),this.state.isVisible&&v.default.createElement(k,{alt:r,title:n,srcSet:b.srcSet,src:b.src,sizes:b.sizes,style:_,onLoad:function(){t.state.IOSupported&&t.setState({imgLoaded:!0}),t.props.onLoad&&t.props.onLoad()}}),v.default.createElement("noscript",{dangerouslySetInnerHTML:{__html:C((0,d.default)({alt:r,title:n},b))}})))}if(f){var w=f,x=(0,d.default)({position:"relative",overflow:"hidden",display:"inline-block",zIndex:1,width:w.width,height:w.height},s);return"inherit"===s.display&&delete x.display,w.srcWebp&&w.srcSetWebp&&S()&&(w.src=w.srcWebp,w.srcSet=w.srcSetWebp),v.default.createElement(h,{className:(i?i:"")+" gatsby-image-outer-wrapper",style:{zIndex:0,position:"absolute"===s.position?"initial":"relative"}},v.default.createElement(h,{className:(o?o:"")+" gatsby-image-wrapper",style:x,ref:this.handleRef},w.base64&&v.default.createElement(k,{alt:r,title:n,src:w.base64,style:m}),w.tracedSVG&&v.default.createElement(k,{alt:r,title:n,src:w.tracedSVG,style:m}),y&&v.default.createElement(h,{title:n,style:{backgroundColor:y,width:w.width,opacity:this.state.imgLoaded?0:1,transitionDelay:"0.25s",height:w.height}}),this.state.isVisible&&v.default.createElement(k,{alt:r,title:n,width:w.width,height:w.height,srcSet:w.srcSet,src:w.src,style:_,onLoad:function(){t.setState({imgLoaded:!0}),t.props.onLoad&&t.props.onLoad()}}),v.default.createElement("noscript",{dangerouslySetInnerHTML:{__html:C((0,d.default)({alt:r,title:n,width:w.width,height:w.height},w))}})))}return null},e}(v.default.Component);T.defaultProps={fadeIn:!0,alt:"",Tag:"div"},T.propTypes={responsiveResolution:_.default.object,responsiveSizes:_.default.object,resolutions:_.default.object,sizes:_.default.object,fadeIn:_.default.bool,title:_.default.string,alt:_.default.string,className:_.default.oneOfType([_.default.string,_.default.object]),outerWrapperClassName:_.default.oneOfType([_.default.string,_.default.object]),style:_.default.object,imgStyle:_.default.object,position:_.default.string,backgroundColor:_.default.oneOfType([_.default.string,_.default.bool]),onLoad:_.default.func,Tag:_.default.string},e.default=T},851:function(t,e,n){!function(e,n){t.exports=n()}(this,function(){"use strict";var t={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},e={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n=Object.defineProperty,r=Object.getOwnPropertyNames,o=Object.getOwnPropertySymbols,i=Object.getOwnPropertyDescriptor,a=Object.getPrototypeOf,s=a&&a(Object);return function u(c,l,f){if("string"!=typeof l){if(s){var p=a(l);p&&p!==s&&u(c,p,f)}var h=r(l);o&&(h=h.concat(o(l)));for(var d=0;d<h.length;++d){var y=h[d];if(!(t[y]||e[y]||f&&f[y])){var v=i(l,y);try{n(c,y,v)}catch(t){}}}return c}return c}})},38:function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(t){if(l===setTimeout)return setTimeout(t,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(t,0);try{return l(t,0)}catch(e){try{return l.call(null,t,0)}catch(e){return l.call(this,t,0)}}}function i(t){if(f===clearTimeout)return clearTimeout(t);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(t);try{return f(t)}catch(e){try{return f.call(null,t)}catch(e){return f.call(this,t)}}}function a(){y&&h&&(y=!1,h.length?d=h.concat(d):v=-1,d.length&&s())}function s(){if(!y){var t=o(a);y=!0;for(var e=d.length;e;){for(h=d,d=[];++v<e;)h&&h[v].run();v=-1,e=d.length}h=null,y=!1,i(t)}}function u(t,e){this.fun=t,this.array=e}function c(){}var l,f,p=t.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(t){l=n}try{f="function"==typeof clearTimeout?clearTimeout:r}catch(t){f=r}}();var h,d=[],y=!1,v=-1;p.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];d.push(new u(t,e)),1!==d.length||y||o(s)},u.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=c,p.addListener=c,p.once=c,p.off=c,p.removeListener=c,p.removeAllListeners=c,p.emit=c,p.prependListener=c,p.prependOnceListener=c,p.listeners=function(t){return[]},p.binding=function(t){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(t){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},808:function(t,e,n){(function(e,n){!function(e,n){t.exports=n()}(this,function(){var t=Math.abs,r=Math.min,o=Math.max,i=String.fromCharCode;return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=87)}([function(t){"use strict";function e(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function r(t){if(c===setTimeout)return setTimeout(t,0);if((c===e||!c)&&setTimeout)return c=setTimeout,setTimeout(t,0);try{return c(t,0)}catch(e){try{return c.call(null,t,0)}catch(e){return c.call(this,t,0)}}}function o(t){if(l===clearTimeout)return clearTimeout(t);if((l===n||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(t);try{return l(t)}catch(e){try{return l.call(null,t)}catch(e){return l.call(this,t)}}}function i(){d&&p&&(d=!1,p.length?h=p.concat(h):y=-1,h.length&&a())}function a(){if(!d){var t=r(i);d=!0;for(var e=h.length;e;){for(p=h,h=[];++y<e;)p&&p[y].run();y=-1,e=h.length}p=null,d=!1,o(t)}}function s(t,e){this.fun=t,this.array=e}function u(){}var c,l,f=t.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:e}catch(t){c=e}try{l="function"==typeof clearTimeout?clearTimeout:n}catch(t){l=n}}();var p,h=[],d=!1,y=-1;f.nextTick=function(t){var e=Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];h.push(new s(t,e)),1!==h.length||d||r(a)},s.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=u,f.addListener=u,f.once=u,f.off=u,f.removeListener=u,f.removeAllListeners=u,f.emit=u,f.prependListener=u,f.prependOnceListener=u,f.listeners=function(){return[]},f.binding=function(){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=n(58),i="object"==("undefined"==typeof self?"undefined":r(self))&&self&&self.Object===Object&&self,a=o||i||Function("return this")();t.exports=a},function(t){"use strict";var e=Array.isArray;t.exports=e},function(t,e,n){"use strict";(function(e){var r=n(29),o=r;"production"!==e.env.NODE_ENV&&function(){var t=function(t){for(var e=arguments.length,n=Array(1<e?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+t.replace(/%s/g,function(){return n[o++]});"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(t){}};o=function(e,n){if(void 0===n)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==n.indexOf("Failed Composite propType: ")&&!e){for(var r=arguments.length,o=Array(2<r?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];t.apply(void 0,[n].concat(o))}}}(),t.exports=o}).call(e,n(0))},function(t,e,n){"use strict";(function(e){var n=function(){};"production"!==e.env.NODE_ENV&&(n=function(t){if(void 0===t)throw new Error("invariant requires an error message argument")}),t.exports=function(t,e,r,o,i,a,s,u){if(n(e),!t){var c;if(void 0===e)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[r,o,i,a,s,u],f=0;c=new Error(e.replace(/%s/g,function(){return l[f++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}}).call(e,n(0))},function(t,e,n){"use strict";(function(e){function r(t){if("production"!==e.env.NODE_ENV&&d.call(t,"ref")){var n=Object.getOwnPropertyDescriptor(t,"ref").get;if(n&&n.isReactWarning)return!1}return void 0!==t.ref}function o(t){if("production"!==e.env.NODE_ENV&&d.call(t,"key")){var n=Object.getOwnPropertyDescriptor(t,"key").get;if(n&&n.isReactWarning)return!1}return void 0!==t.key}function i(t,n){var r=function(){s||(s=!0,"production"===e.env.NODE_ENV?void 0:p(!1,"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",n))};r.isReactWarning=!0,Object.defineProperty(t,"key",{get:r,configurable:!0})}function a(t,n){var r=function(){u||(u=!0,"production"===e.env.NODE_ENV?void 0:p(!1,"%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",n))};r.isReactWarning=!0,Object.defineProperty(t,"ref",{get:r,configurable:!0})}var s,u,c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l=n(16),f=n(18),p=n(3),h=n(17),d=Object.prototype.hasOwnProperty,y=n(50),v={key:!0,ref:!0,__self:!0,__source:!0},m=function(t,n,r,o,i,a,s){var u={$$typeof:y,type:t,key:n,ref:r,props:s,_owner:a};return"production"!==e.env.NODE_ENV&&(u._store={},h?(Object.defineProperty(u._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(u,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(u,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i})):(u._store.validated=!1,u._self=o,u._source=i),Object.freeze&&(Object.freeze(u.props),Object.freeze(u))),u};m.createElement=function(t,n,s){var u,c={},l=null,p=null,h=null,_=null;if(null!=n)for(u in r(n)&&(p=n.ref),o(n)&&(l=""+n.key),h=void 0===n.__self?null:n.__self,_=void 0===n.__source?null:n.__source,n)d.call(n,u)&&!v.hasOwnProperty(u)&&(c[u]=n[u]);var g=arguments.length-2;if(1==g)c.children=s;else if(1<g){for(var b=Array(g),w=0;w<g;w++)b[w]=arguments[w+2];"production"!==e.env.NODE_ENV&&Object.freeze&&Object.freeze(b),c.children=b}if(t&&t.defaultProps){var x=t.defaultProps;for(u in x)void 0===c[u]&&(c[u]=x[u])}if("production"!==e.env.NODE_ENV&&(l||p)&&("undefined"==typeof c.$$typeof||c.$$typeof!==y)){var j="function"==typeof t?t.displayName||t.name||"Unknown":t;l&&i(c,j),p&&a(c,j)}return m(t,l,p,h,_,f.current,c)},m.createFactory=function(t){var e=m.createElement.bind(null,t);return e.type=t,e},m.cloneAndReplaceKey=function(t,e){var n=m(t.type,e,t.ref,t._self,t._source,t._owner,t.props);return n},m.cloneElement=function(t,e,n){var i,a=l({},t.props),s=t.key,u=t.ref,c=t._self,p=t._source,h=t._owner;if(null!=e){r(e)&&(u=e.ref,h=f.current),o(e)&&(s=""+e.key);var y;for(i in t.type&&t.type.defaultProps&&(y=t.type.defaultProps),e)d.call(e,i)&&!v.hasOwnProperty(i)&&(a[i]=void 0===e[i]&&void 0!==y?y[i]:e[i])}var _=arguments.length-2;if(1==_)a.children=n;else if(1<_){for(var g=Array(_),b=0;b<_;b++)g[b]=arguments[b+2];a.children=g}return m(t.type,s,u,c,p,h,a)},m.isValidElement=function(t){return"object"===("undefined"==typeof t?"undefined":c(t))&&null!==t&&t.$$typeof===y},t.exports=m}).call(e,n(0))},function(t){"use strict";var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t){var n="undefined"==typeof t?"undefined":e(t);return null!=t&&("object"==n||"function"==n)}},function(t,e,n){"use strict";var r=n(141),o=n(144);t.exports=function(t,e){var n=o(t,e);return r(n)?n:void 0}},function(t){"use strict";t.exports=function(t){for(var e=arguments.length-1,n="Minified React error #"+t+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+t,r=0;r<e;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);n+=" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";var o=new Error(n);throw o.name="Invariant Violation",o.framesToPop=1,o}},function(t,e,n){"use strict";var r=n(56),o=n(125),i=n(23);t.exports=function(t){return i(t)?r(t):o(t)}},function(t,e,n){"use strict";var r=n(11),o=n(119),i=n(120),a=r?r.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,e,n){"use strict";var r=n(1),o=r.Symbol;t.exports=o},function(t){"use strict";var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t){return null!=t&&"object"==("undefined"==typeof t?"undefined":e(t))}},function(t){"use strict";t.exports=function(t,e){return t===e||t!==t&&e!==e}},function(t,e,n){"use strict";var r=n(175);t.exports=function(t){return null==t?"":r(t)}},function(t,e,n){"use strict";var r=n(79),o=n(80);t.exports=function(t,e,n,i){var a=!n;n||(n={});for(var s=-1,u=e.length;++s<u;){var c=e[s],l=i?i(n[c],t[c],c,n,t):void 0;void 0===l&&(l=t[c]),a?o(n,c,l):r(n,c,l)}return n}},function(t){"use strict";function e(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;10>n;n++)e["_"+i(n)]=n;var r=Object.getOwnPropertyNames(e).map(function(t){return e[t]});if("0123456789"!==r.join(""))return!1;var o={};return["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t"].forEach(function(t){o[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(t){return!1}}()?Object.assign:function(t){for(var i,a,s=e(t),u=1;u<arguments.length;u++){for(var c in i=Object(arguments[u]))r.call(i,c)&&(s[c]=i[c]);if(n){a=n(i);for(var l=0;l<a.length;l++)o.call(i,a[l])&&(s[a[l]]=i[a[l]])}}return s}},function(t,e,n){"use strict";(function(e){var n=!1;if("production"!==e.env.NODE_ENV)try{Object.defineProperty({},"x",{get:function(){}}),n=!0}catch(t){}t.exports=n}).call(e,n(0))},function(t){"use strict";t.exports={current:null}},function(e,n,i){"use strict";function a(t){var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return null===e?null:[e[1],e[2],e[3]].map(function(t){return parseInt(t,16)})}function s(t,e,n){t/=255,e/=255,n/=255,t=.04045<t?p((t+.005)/1.055,2.4):t/12.92,e=.04045<e?p((e+.005)/1.055,2.4):e/12.92,n=.04045<n?p((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 u(t,e,n){t/=95.047,e/=100,n/=108.883,t=.008856<t?p(t,1/3):7.787*t+16/116,e=.008856<e?p(e,1/3):7.787*e+16/116,n=.008856<n?p(n,1/3):7.787*n+16/116;var r=116*e-16,o=500*(t-e),i=200*(e-n);return[r,o,i]}function c(t,e,n){var r=s(t,e,n),o=r[0],i=r[1],a=r[2];return u(o,i,a)}function l(e,n){var r=Math.sqrt,o=e[0],i=e[1],a=e[2],s=n[0],u=n[1],c=n[2],l=o-s,f=i-u,p=a-c,h=r(i*i+a*a),d=r(u*u+c*c),y=s-o,v=d-h,m=r(l*l+f*f+p*p),_=r(m)>r(t(y))+r(t(v))?r(m*m-y*y-v*v):0;return y/=1,v/=1*(1+.045*h),_/=1*(1+.015*h),r(y*y+v*v+_*_)}function f(t,e){var n=c.apply(void 0,t),r=c.apply(void 0,e);return l(n,r)}var p=Math.pow;Object.defineProperty(n,"__esModule",{value:!0});var h=i(20);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 t,e,n=new h(function(n,r){t=n,e=r});return{resolve:t,reject:e,promise:n}},n.hexToRgb=a,n.rgbToHex=function(t,e,n){return"#"+(16777216+(t<<16)+(e<<8)+n).toString(16).slice(1,7)},n.rgbToHsl=function(t,e,n){t/=255,e/=255,n/=255;var i,a,s=o(t,e,n),u=r(t,e,n),c=(s+u)/2;if(s===u)i=a=0;else{var l=s-u;a=.5<c?l/(2-s-u):l/(s+u),s===t?i=(e-n)/l+(e<n?6:0):s===e?i=(n-t)/l+2:s===n?i=(t-e)/l+4:void 0,i/=6}return[i,a,c]},n.hslToRgb=function(t,e,n){function r(t,e,n){return 0>n&&(n+=1),1<n&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+6*((e-t)*(2/3-n)):t}var o,i,a;if(0===e)o=i=a=n;else{var s=.5>n?n*(1+e):n+e-n*e,u=2*n-s;o=r(u,s,t+1/3),i=r(u,s,t),a=r(u,s,t-1/3)}return[255*o,255*i,255*a]},n.rgbToXyz=s,n.xyzToCIELab=u,n.rgbToCIELab=c,n.deltaE94=l,n.rgbDiff=f,n.hexDiff=function(t,e){var n=a(t),r=a(e);return f(n,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,e,r){return(t<<2*n.SIGBITS)+(e<<n.SIGBITS)+r}},function(t,e,n){"use strict";(function(n,r,i){var a,s,u,c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(n){"object"==c(e)&&"undefined"!=typeof t?t.exports=n():(s=[],a=n,u="function"==typeof a?a.apply(e,s):a,!(void 0!==u&&(t.exports=u)))}(function(){return function t(e,n,r){function o(a,s){if(!n[a]){if(!e[a]){var u="function"==typeof _dereq_&&_dereq_;if(!s&&u)return u(a,!0);if(i)return i(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[a]={exports:{}};e[a][0].call(l.exports,function(t){var n=e[a][1][t];return o(n?n:t)},l,l.exports,t,e,n,r)}return n[a].exports}for(var i="function"==typeof _dereq_&&_dereq_,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(t,e){e.exports=function(t){function e(t){var e=new n(t),r=e.promise();return e.setHowMany(1),e.setUnwrap(),e.init(),r}var n=t._SomePromiseArray;t.any=function(t){return e(t)},t.prototype.any=function(){return e(this)}}},{}],2:[function(t,e){function r(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new c(16),this._normalQueue=new c(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var t=this;this.drainQueues=function(){t._drainQueues()},this._schedule=u}function o(t,e,n){this._lateQueue.push(t,e,n),this._queueTick()}function i(t,e,n){this._normalQueue.push(t,e,n),this._queueTick()}function a(t){this._normalQueue._pushOne(t),this._queueTick()}var s;try{throw new Error}catch(t){s=t}var u=t("./schedule"),c=t("./queue"),l=t("./util");r.prototype.setScheduler=function(t){var e=this._schedule;return this._schedule=t,this._customScheduler=!0,e},r.prototype.hasCustomScheduler=function(){return this._customScheduler},r.prototype.enableTrampoline=function(){this._trampolineEnabled=!0},r.prototype.disableTrampolineIfNecessary=function(){l.hasDevTools&&(this._trampolineEnabled=!1)},r.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},r.prototype.fatalError=function(t,e){e?(n.stderr.write("Fatal "+(t instanceof Error?t.stack:t)+"\n"),n.exit(2)):this.throwLater(t)},r.prototype.throwLater=function(t,e){if(1===arguments.length&&(e=t,t=function(){throw e}),"undefined"!=typeof setTimeout)setTimeout(function(){t(e)},0);else try{this._schedule(function(){t(e)})}catch(t){throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")}},l.hasDevTools?(r.prototype.invokeLater=function(t,e,n){this._trampolineEnabled?o.call(this,t,e,n):this._schedule(function(){setTimeout(function(){t.call(e,n)},100)})},r.prototype.invoke=function(t,e,n){this._trampolineEnabled?i.call(this,t,e,n):this._schedule(function(){t.call(e,n)})},r.prototype.settlePromises=function(t){this._trampolineEnabled?a.call(this,t):this._schedule(function(){t._settlePromises()})}):(r.prototype.invokeLater=o,r.prototype.invoke=i,r.prototype.settlePromises=a),r.prototype._drainQueue=function(t){for(;0<t.length();){var e=t.shift();if("function"==typeof e){var n=t.shift(),r=t.shift();e.call(n,r)}else e._settlePromises()}},r.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},r.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},r.prototype._reset=function(){this._isTickUsed=!1},e.exports=r,e.exports.firstLineError=s},{"./queue":26,"./schedule":29,"./util":36}],3:[function(t,e){e.exports=function(t,e,n,r){var o=!1,i=function(t,e){this._reject(e)},a=function(t,e){e.promiseRejectionQueued=!0,e.bindingPromise._then(i,i,null,this,t)},s=function(t,e){0==(50397184&this._bitField)&&this._resolveCallback(e.target)},u=function(t,e){e.promiseRejectionQueued||this._reject(t)};t.prototype.bind=function(i){o||(o=!0,t.prototype._propagateFrom=r.propagateFromFunction(),t.prototype._boundValue=r.boundValueFunction());var c=n(i),l=new t(e);l._propagateFrom(this,1);var f=this._target();if(l._setBoundTo(c),c instanceof t){var p={promiseRejectionQueued:!1,promise:l,target:f,bindingPromise:c};f._then(e,a,void 0,l,p),c._then(s,u,void 0,l,p),l._setOnCancel(c)}else l._resolveCallback(f);return l},t.prototype._setBoundTo=function(t){void 0===t?this._bitField&=-2097153:(this._bitField|=2097152,this._boundTo=t)},t.prototype._isBound=function(){return 2097152==(2097152&this._bitField)},t.bind=function(e,n){return t.resolve(n).bind(e)}}},{}],4:[function(t,e){var n;"undefined"!=typeof Promise&&(n=Promise);var r=t("./promise")();r.noConflict=function(){try{Promise===r&&(Promise=n)}catch(t){}return r},e.exports=r},{"./promise":22}],5:[function(t,e){var n=Object.create;if(n){var r=n(null),i=n(null);r[" size"]=i[" size"]=0}e.exports=function(e){function n(t,n){var r;if(null!=t&&(r=t[n]),"function"!=typeof r){var o="Object "+u.classString(t)+" has no method '"+u.toString(n)+"'";throw new e.TypeError(o)}return r}function r(t){var e=this.pop(),r=n(t,e);return r.apply(t,this)}function i(t){return t[this]}function a(t){var e=+this;return 0>e&&(e=o(0,e+t.length)),t[e]}var s,u=t("./util"),c=u.canEvaluate;u.isIdentifier;e.prototype.call=function(t){var e=[].slice.call(arguments,1);return e.push(t),this._then(r,void 0,void 0,e,void 0)},e.prototype.get=function(t){var e;if("number"==typeof t)e=a;else if(c){var n=s(t);e=null===n?i:n}else e=i;return this._then(e,void 0,void 0,t,void 0)}}},{"./util":36}],6:[function(t,e){e.exports=function(e,n,r,o){var i=t("./util"),a=i.tryCatch,s=i.errorObj,u=e._async;e.prototype.break=e.prototype.cancel=function(){if(!o.cancellation())return this._warn("cancellation is disabled");for(var t=this,e=t;t._isCancellable();){if(!t._cancelBy(e)){e._isFollowing()?e._followee().cancel():e._cancelBranched();break}var n=t._cancellationParent;if(null==n||!n._isCancellable()){t._isFollowing()?t._followee().cancel():t._cancelBranched();break}t._isFollowing()&&t._followee().cancel(),t._setWillBeCancelled(),e=t,t=n}},e.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},e.prototype._enoughBranchesHaveCancelled=function(){return void 0===this._branchesRemainingToCancel||0>=this._branchesRemainingToCancel},e.prototype._cancelBy=function(t){return t===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},e.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},e.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),u.invoke(this._cancelPromises,this,void 0))},e.prototype._cancelPromises=function(){0<this._length()&&this._settlePromises()},e.prototype._unsetOnCancel=function(){this._onCancelField=void 0},e.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},e.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},e.prototype._doInvokeOnCancel=function(t,e){if(i.isArray(t))for(var n=0;n<t.length;++n)this._doInvokeOnCancel(t[n],e);else if(void 0!==t)if("function"!=typeof t)t._resultCancelled(this);else if(!e){var r=a(t).call(this._boundValue());r===s&&(this._attachExtraTrace(r.e),u.throwLater(r.e))}},e.prototype._invokeOnCancel=function(){var t=this._onCancel();this._unsetOnCancel(),u.invoke(this._doInvokeOnCancel,this,t)},e.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},e.prototype._resultCancelled=function(){this.cancel()}}},{"./util":36}],7:[function(t,e){e.exports=function(e){var n=t("./util"),r=t("./es5").keys,o=n.tryCatch,i=n.errorObj;return function(t,a,s){return function(u){var c=s._boundValue();t:for(var l,f=0;f<t.length;++f)if(l=t[f],l===Error||null!=l&&l.prototype instanceof Error){if(u instanceof l)return o(a).call(c,u)}else if("function"==typeof l){var p=o(l).call(c,u);if(p===i)return p;if(p)return o(a).call(c,u)}else if(n.isObject(u)){for(var h,d=r(l),y=0;y<d.length;++y)if(h=d[y],l[h]!=u[h])continue t;return o(a).call(c,u)}return e}}}},{"./es5":13,"./util":36}],8:[function(t,e){e.exports=function(t){function e(){this._trace=new e.CapturedTrace(n())}function n(){var t=o.length-1;return 0<=t?o[t]:void 0}var r=!1,o=[];return t.prototype._promiseCreated=function(){},t.prototype._pushContext=function(){},t.prototype._popContext=function(){return null},t._peekContext=t.prototype._peekContext=function(){},e.prototype._pushContext=function(){void 0!==this._trace&&(this._trace._promiseCreated=null,o.push(this._trace))},e.prototype._popContext=function(){if(void 0!==this._trace){var t=o.pop(),e=t._promiseCreated;return t._promiseCreated=null,e}return null},e.CapturedTrace=null,e.create=function(){if(r)return new e},e.deactivateLongStackTraces=function(){},e.activateLongStackTraces=function(){var o=t.prototype._pushContext,i=t.prototype._popContext,a=t._peekContext,s=t.prototype._peekContext,u=t.prototype._promiseCreated;e.deactivateLongStackTraces=function(){t.prototype._pushContext=o,t.prototype._popContext=i,t._peekContext=a,t.prototype._peekContext=s,t.prototype._promiseCreated=u,r=!1},r=!0,t.prototype._pushContext=e.prototype._pushContext,t.prototype._popContext=e.prototype._popContext,t._peekContext=t.prototype._peekContext=n,t.prototype._promiseCreated=function(){var t=this._peekContext();t&&null==t._promiseCreated&&(t._promiseCreated=this)}},e}},{}],9:[function(t,e){e.exports=function(e,r){function o(t,e){return{promise:e}}function i(){return!1}function a(t,e,n){var r=this;try{t(e,n,function(t){if("function"!=typeof t)throw new TypeError("onCancel must be a function, got: "+D.toString(t));r._attachCancellationCallback(t)})}catch(t){return t}}function s(t){if(!this._isCancellable())return this;var e=this._onCancel();void 0===e?this._setOnCancel(t):D.isArray(e)?e.push(t):this._setOnCancel([e,t])}function u(){return this._onCancelField}function l(t){this._onCancelField=t}function f(){this._cancellationParent=void 0,this._onCancelField=void 0}function p(t,e){if(0!=(1&e)){this._cancellationParent=t;var n=t._branchesRemainingToCancel;void 0===n&&(n=0),t._branchesRemainingToCancel=n+1}0!=(2&e)&&t._isBound()&&this._setBoundTo(t._boundTo)}function h(){var t=this._boundTo;return void 0!==t&&t instanceof e?t.isFulfilled()?t.value():void 0:t}function d(){this._trace=new T(this._peekContext())}function y(t,e){if(M(t)){var n=this._trace;if(void 0!==n&&e&&(n=n._parent),void 0!==n)n.attachExtraTrace(t);else if(!t.__stackCleaned__){var r=x(t);D.notEnumerableProp(t,"stack",r.message+"\n"+r.stack.join("\n")),D.notEnumerableProp(t,"__stackCleaned__",!0)}}}function v(t,n,r){if(rt.warnings){var o,i=new R(t);if(n)r._attachExtraTrace(i);else if(rt.longStackTraces&&(o=e._peekContext()))o.attachExtraTrace(i);else{
var a=x(i);i.stack=a.message+"\n"+a.stack.join("\n")}Z("warning",i)||j(i,"",!0)}}function m(t,e){for(var n=0;n<e.length-1;++n)e[n].push("From previous event:"),e[n]=e[n].join("\n");return n<e.length&&(e[n]=e[n].join("\n")),t+"\n"+e.join("\n")}function _(t){for(var e=0;e<t.length;++e)(0===t[e].length||e+1<t.length&&t[e][0]===t[e+1][0])&&(t.splice(e,1),e--)}function g(t){for(var e=t[0],n=1;n<t.length;++n){for(var r=t[n],o=e.length-1,i=e[o],a=-1,s=r.length-1;0<=s;--s)if(r[s]===i){a=s;break}for(var u,s=a;0<=s&&(u=r[s],e[o]===u);--s)e.pop(),o--;e=r}}function b(t){for(var e=[],n=0;n<t.length;++n){var r=t[n],o=" (No stack trace)"===r||z.test(r),i=o&&tt(r);o&&!i&&(B&&" "!==r.charAt(0)&&(r=" "+r),e.push(r))}return e}function w(t){for(var e,n=t.stack.replace(/\s+$/g,"").split("\n"),r=0;r<n.length&&(e=n[r],!(" (No stack trace)"===e||z.test(e)));++r);return 0<r&&"SyntaxError"!=t.name&&(n=n.slice(r)),n}function x(t){var e=t.stack,n=t.toString();return e="string"==typeof e&&0<e.length?w(t):[" (No stack trace)"],{message:n,stack:"SyntaxError"==t.name?e:b(e)}}function j(t,e,n){if("undefined"!=typeof console){var r;if(D.isObject(t)){var o=t.stack;r=e+q(o,t)}else r=e+(t+"");"function"==typeof A?A(r,n):("function"==typeof console.log||"object"===c(console.log))&&console.log(r)}}function E(t,e,n,r){var o=!1;try{"function"==typeof e&&(o=!0,"rejectionHandled"===t?e(r):e(n,r))}catch(t){F.throwLater(t)}"unhandledRejection"===t?!Z(t,n,r)&&!o&&j(n,"Unhandled rejection "):Z(t,r)}function O(t){var e;if("function"==typeof t)e="[function "+(t.name||"anonymous")+"]";else{e=t&&"function"==typeof t.toString?t.toString():D.toString(t);var n=/\[object [a-zA-Z0-9$_]+\]/;if(n.test(e))try{var r=JSON.stringify(t);e=r}catch(t){}0===e.length&&(e="(empty array)")}return"(<"+S(e)+">, no stack trace)"}function S(t){var e=41;return t.length<e?t:t.substr(0,e-3)+"..."}function C(){return"function"==typeof nt}function k(t){var e=t.match(et);if(e)return{fileName:e[1],line:parseInt(e[2],10)}}function T(t){this._parent=t,this._promisesCreated=0;var e=this._length=1+(void 0===t?0:t._length);nt(this,T),32<e&&this.uncycle()}var P,N,A,I=e._getDomain,F=e._async,R=t("./errors").Warning,D=t("./util"),M=D.canAttachTrace,V=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,L=/\((?:timers\.js):\d+:\d+\)/,U=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,z=null,q=null,B=!1,H=!(0==D.env("BLUEBIRD_DEBUG")),$=!(0==D.env("BLUEBIRD_WARNINGS")||!H&&!D.env("BLUEBIRD_WARNINGS")),W=!(0==D.env("BLUEBIRD_LONG_STACK_TRACES")||!H&&!D.env("BLUEBIRD_LONG_STACK_TRACES")),G=0!=D.env("BLUEBIRD_W_FORGOTTEN_RETURN")&&($||!!D.env("BLUEBIRD_W_FORGOTTEN_RETURN"));e.prototype.suppressUnhandledRejections=function(){var t=this._target();t._bitField=524288|-1048577&t._bitField},e.prototype._ensurePossibleRejectionHandled=function(){if(0==(524288&this._bitField)){this._setRejectionIsUnhandled();var t=this;setTimeout(function(){t._notifyUnhandledRejection()},1)}},e.prototype._notifyUnhandledRejectionIsHandled=function(){E("rejectionHandled",P,void 0,this)},e.prototype._setReturnedNonUndefined=function(){this._bitField|=268435456},e.prototype._returnedNonUndefined=function(){return 0!=(268435456&this._bitField)},e.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var t=this._settledValue();this._setUnhandledRejectionIsNotified(),E("unhandledRejection",N,t,this)}},e.prototype._setUnhandledRejectionIsNotified=function(){this._bitField|=262144},e.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField&=-262145},e.prototype._isUnhandledRejectionNotified=function(){return 0<(262144&this._bitField)},e.prototype._setRejectionIsUnhandled=function(){this._bitField|=1048576},e.prototype._unsetRejectionIsUnhandled=function(){this._bitField&=-1048577,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},e.prototype._isRejectionUnhandled=function(){return 0<(1048576&this._bitField)},e.prototype._warn=function(t,e,n){return v(t,e,n||this)},e.onPossiblyUnhandledRejection=function(t){var e=I();N="function"==typeof t?null===e?t:D.domainBind(e,t):void 0},e.onUnhandledRejectionHandled=function(t){var e=I();P="function"==typeof t?null===e?t:D.domainBind(e,t):void 0};var Y=function(){};e.longStackTraces=function(){if(F.haveItemsQueued()&&!rt.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");if(!rt.longStackTraces&&C()){var t=e.prototype._captureStackTrace,n=e.prototype._attachExtraTrace;rt.longStackTraces=!0,Y=function(){if(F.haveItemsQueued()&&!rt.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");e.prototype._captureStackTrace=t,e.prototype._attachExtraTrace=n,r.deactivateLongStackTraces(),F.enableTrampoline(),rt.longStackTraces=!1},e.prototype._captureStackTrace=d,e.prototype._attachExtraTrace=y,r.activateLongStackTraces(),F.disableTrampolineIfNecessary()}},e.hasLongStackTraces=function(){return rt.longStackTraces&&C()};var Q=function(){try{if("function"==typeof CustomEvent){var t=new CustomEvent("CustomEvent");return D.global.dispatchEvent(t),function(t,e){var n=new CustomEvent(t.toLowerCase(),{detail:e,cancelable:!0});return!D.global.dispatchEvent(n)}}if("function"==typeof Event){var t=new Event("CustomEvent");return D.global.dispatchEvent(t),function(t,e){var n=new Event(t.toLowerCase(),{cancelable:!0});return n.detail=e,!D.global.dispatchEvent(n)}}var t=document.createEvent("CustomEvent");return t.initCustomEvent("testingtheevent",!1,!0,{}),D.global.dispatchEvent(t),function(t,e){var n=document.createEvent("CustomEvent");return n.initCustomEvent(t.toLowerCase(),!1,!0,e),!D.global.dispatchEvent(n)}}catch(t){}return function(){return!1}}(),X=function(){return D.isNode?function(){return n.emit.apply(n,arguments)}:D.global?function(t){var e="on"+t.toLowerCase(),n=D.global[e];return!!n&&(n.apply(D.global,[].slice.call(arguments,1)),!0)}:function(){return!1}}(),K={promiseCreated:o,promiseFulfilled:o,promiseRejected:o,promiseResolved:o,promiseCancelled:o,promiseChained:function(t,e,n){return{promise:e,child:n}},warning:function(t,e){return{warning:e}},unhandledRejection:function(t,e,n){return{reason:e,promise:n}},rejectionHandled:o},Z=function(t){var e=!1;try{e=X.apply(null,arguments)}catch(t){F.throwLater(t),e=!0}var n=!1;try{n=Q(t,K[t].apply(null,arguments))}catch(t){F.throwLater(t),n=!0}return n||e};e.config=function(t){if(t=Object(t),"longStackTraces"in t&&(t.longStackTraces?e.longStackTraces():!t.longStackTraces&&e.hasLongStackTraces()&&Y()),"warnings"in t){var n=t.warnings;rt.warnings=!!n,G=rt.warnings,D.isObject(n)&&"wForgottenReturn"in n&&(G=!!n.wForgottenReturn)}if("cancellation"in t&&t.cancellation&&!rt.cancellation){if(F.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");e.prototype._clearCancellationData=f,e.prototype._propagateFrom=p,e.prototype._onCancel=u,e.prototype._setOnCancel=l,e.prototype._attachCancellationCallback=s,e.prototype._execute=a,J=p,rt.cancellation=!0}return"monitoring"in t&&(t.monitoring&&!rt.monitoring?(rt.monitoring=!0,e.prototype._fireEvent=Z):!t.monitoring&&rt.monitoring&&(rt.monitoring=!1,e.prototype._fireEvent=i)),e},e.prototype._fireEvent=i,e.prototype._execute=function(t,e,n){try{t(e,n)}catch(t){return t}},e.prototype._onCancel=function(){},e.prototype._setOnCancel=function(){},e.prototype._attachCancellationCallback=function(){},e.prototype._captureStackTrace=function(){},e.prototype._attachExtraTrace=function(){},e.prototype._clearCancellationData=function(){},e.prototype._propagateFrom=function(){};var J=function(t,e){0!=(2&e)&&t._isBound()&&this._setBoundTo(t._boundTo)},tt=function(){return!1},et=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;D.inherits(T,Error),r.CapturedTrace=T,T.prototype.uncycle=function(){var t=this._length;if(!(2>t)){for(var e=[],n={},r=0,o=this;void 0!==o;++r)e.push(o),o=o._parent;t=this._length=r;for(var i,r=t-1;0<=r;--r)i=e[r].stack,void 0===n[i]&&(n[i]=r);for(var r=0;r<t;++r){var a=e[r].stack,s=n[a];if(void 0!==s&&s!==r){0<s&&(e[s-1]._parent=void 0,e[s-1]._length=1),e[r]._parent=void 0,e[r]._length=1;var u=0<r?e[r-1]:this;s<t-1?(u._parent=e[s+1],u._parent.uncycle(),u._length=u._parent._length+1):(u._parent=void 0,u._length=1);for(var c=u._length+1,l=r-2;0<=l;--l)e[l]._length=c,c++;return}}}},T.prototype.attachExtraTrace=function(t){if(!t.__stackCleaned__){this.uncycle();for(var e=x(t),n=e.message,r=[e.stack],o=this;void 0!==o;)r.push(b(o.stack.split("\n"))),o=o._parent;g(r),_(r),D.notEnumerableProp(t,"stack",m(n,r)),D.notEnumerableProp(t,"__stackCleaned__",!0)}};var nt=function(){var t=/^\s*at\s*/,e=function(t,e){return"string"==typeof t?t:void 0!==e.name&&void 0!==e.message?e.toString():O(e)};if("number"==typeof Error.stackTraceLimit&&"function"==typeof Error.captureStackTrace){Error.stackTraceLimit+=6,z=t,q=e;var n=Error.captureStackTrace;return tt=function(t){return V.test(t)},function(t,e){Error.stackTraceLimit+=6,n(t,e),Error.stackTraceLimit-=6}}var r=new Error;if("string"==typeof r.stack&&0<=r.stack.split("\n")[0].indexOf("stackDetection@"))return z=/@/,q=e,B=!0,function(t){t.stack=(new Error).stack};var o;try{throw new Error}catch(t){o="stack"in t}return"stack"in r||!o||"number"!=typeof Error.stackTraceLimit?(q=function(t,e){return"string"==typeof t?t:"object"!==("undefined"==typeof e?"undefined":c(e))&&"function"!=typeof e||void 0===e.name||void 0===e.message?O(e):e.toString()},null):(z=t,q=e,function(t){Error.stackTraceLimit+=6;try{throw new Error}catch(e){t.stack=e.stack}Error.stackTraceLimit-=6})}([]);"undefined"!=typeof console&&"undefined"!=typeof console.warn&&(A=function(t){console.warn(t)},D.isNode&&n.stderr.isTTY?A=function(t,e){var n=e?"[33m":"[31m";console.warn(n+t+"[0m\n")}:!D.isNode&&"string"==typeof(new Error).stack&&(A=function(t,e){console.warn("%c"+t,e?"color: darkorange":"color: red")}));var rt={warnings:$,longStackTraces:!1,cancellation:!1,monitoring:!1};return W&&e.longStackTraces(),{longStackTraces:function(){return rt.longStackTraces},warnings:function(){return rt.warnings},cancellation:function(){return rt.cancellation},monitoring:function(){return rt.monitoring},propagateFromFunction:function(){return J},boundValueFunction:function(){return h},checkForgottenReturns:function(t,e,n,r,o){if(void 0===t&&null!==e&&G){if(void 0!==o&&o._returnedNonUndefined())return;if(0==(65535&r._bitField))return;n&&(n+=" ");var i="",a="";if(e._trace){for(var s,u=e._trace.stack.split("\n"),c=b(u),l=c.length-1;0<=l;--l)if(s=c[l],!L.test(s)){var f=s.match(U);f&&(i="at "+f[1]+":"+f[2]+":"+f[3]+" ");break}if(0<c.length)for(var p=c[0],l=0;l<u.length;++l)if(u[l]===p){0<l&&(a="\n"+u[l-1]);break}}var h="a promise was created in a "+n+"handler "+i+"but was not returned from it, see http://goo.gl/rRqMUw"+a;r._warn(h,!0,e)}},setBounds:function(t,e){if(C()){for(var n,r,o,i=t.stack.split("\n"),a=e.stack.split("\n"),s=-1,u=-1,c=0;c<i.length;++c)if(o=k(i[c])){n=o.fileName,s=o.line;break}for(var o,c=0;c<a.length;++c)if(o=k(a[c])){r=o.fileName,u=o.line;break}0>s||0>u||!n||!r||n!==r||s>=u||(tt=function(t){if(V.test(t))return!0;var e=k(t);return e&&e.fileName===n&&s<=e.line&&e.line<=u})}},warn:v,deprecated:function(t,e){var n=t+" is deprecated and will be removed in a future version.";return e&&(n+=" Use "+e+" instead."),v(n)},CapturedTrace:T,fireDomEvent:Q,fireGlobalEvent:X}}},{"./errors":12,"./util":36}],10:[function(t,e){e.exports=function(t){function e(){return this.value}function n(){throw this.reason}t.prototype.return=t.prototype.thenReturn=function(n){return n instanceof t&&n.suppressUnhandledRejections(),this._then(e,void 0,void 0,{value:n},void 0)},t.prototype.throw=t.prototype.thenThrow=function(t){return this._then(n,void 0,void 0,{reason:t},void 0)},t.prototype.catchThrow=function(t){if(1>=arguments.length)return this._then(void 0,n,void 0,{reason:t},void 0);var e=arguments[1];return this.caught(t,function(){throw e})},t.prototype.catchReturn=function(n){if(1>=arguments.length)return n instanceof t&&n.suppressUnhandledRejections(),this._then(void 0,e,void 0,{value:n},void 0);var r=arguments[1];return r instanceof t&&r.suppressUnhandledRejections(),this.caught(n,function(){return r})}}},{}],11:[function(t,e){e.exports=function(t,e){function n(){return o(this)}var r=t.reduce,o=t.all;t.prototype.each=function(t){return r(this,t,e,0)._then(n,void 0,void 0,this,void 0)},t.prototype.mapSeries=function(t){return r(this,t,e,e)},t.each=function(t,o){return r(t,o,e,0)._then(n,void 0,void 0,t,void 0)},t.mapSeries=function(t,n){return r(t,n,e,e)}}},{}],12:[function(t,e){function n(t,e){function n(r){return this instanceof n?(l(this,"message","string"==typeof r?r:e),l(this,"name",t),void(Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this))):new n(r)}return c(n,Error),n}function r(t){return this instanceof r?(l(this,"name","OperationalError"),l(this,"message",t),this.cause=t,this.isOperational=!0,void(t instanceof Error?(l(this,"message",t.message),l(this,"stack",t.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor))):new r(t)}var o,i,a=t("./es5"),s=a.freeze,u=t("./util"),c=u.inherits,l=u.notEnumerableProp,f=n("Warning","warning"),p=n("CancellationError","cancellation error"),h=n("TimeoutError","timeout error"),d=n("AggregateError","aggregate error");try{o=TypeError,i=RangeError}catch(t){o=n("TypeError","type error"),i=n("RangeError","range error")}for(var y="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),v=0;v<y.length;++v)"function"==typeof Array.prototype[y[v]]&&(d.prototype[y[v]]=Array.prototype[y[v]]);a.defineProperty(d.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),d.prototype.isOperational=!0;var m=0;d.prototype.toString=function(){var t=Array(4*m+1).join(" "),e="\n"+t+"AggregateError of:\n";m++,t=Array(4*m+1).join(" ");for(var n=0;n<this.length;++n){for(var r=this[n]===this?"[Circular AggregateError]":this[n]+"",o=r.split("\n"),i=0;i<o.length;++i)o[i]=t+o[i];r=o.join("\n"),e+=r+"\n"}return m--,e},c(r,Error);var _=Error.__BluebirdErrorTypes__;_||(_=s({CancellationError:p,TimeoutError:h,OperationalError:r,RejectionError:r,AggregateError:d}),a.defineProperty(Error,"__BluebirdErrorTypes__",{value:_,writable:!1,enumerable:!1,configurable:!1})),e.exports={Error:Error,TypeError:o,RangeError:i,CancellationError:_.CancellationError,OperationalError:_.OperationalError,TimeoutError:_.TimeoutError,AggregateError:_.AggregateError,Warning:f}},{"./es5":13,"./util":36}],13:[function(t,e){var n=function(){return void 0===this}();if(n)e.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:n,propertyIsWritable:function(t,e){var n=Object.getOwnPropertyDescriptor(t,e);return!(n&&!n.writable&&!n.set)}};else{var r={}.hasOwnProperty,o={}.toString,i={}.constructor.prototype,a=function(t){var e=[];for(var n in t)r.call(t,n)&&e.push(n);return e},s=function(t,e){return{value:t[e]}},u=function(t,e,n){return t[e]=n.value,t},c=function(t){return t},l=function(t){try{return Object(t).constructor.prototype}catch(t){return i}},f=function(t){try{return"[object Array]"===o.call(t)}catch(t){return!1}};e.exports={isArray:f,keys:a,names:a,defineProperty:u,getDescriptor:s,freeze:c,getPrototypeOf:l,isES5:n,propertyIsWritable:function(){return!0}}}},{}],14:[function(t,e){e.exports=function(t,e){var n=t.map;t.prototype.filter=function(t,r){return n(this,t,r,e)},t.filter=function(t,r,o){return n(t,r,o,e)}}},{}],15:[function(t,e){e.exports=function(e,n,r){function o(t,e,n){this.promise=t,this.type=e,this.handler=n,this.called=!1,this.cancelPromise=null}function i(t){this.finallyHandler=t}function a(t,e){return null!=t.cancelPromise&&(1<arguments.length?t.cancelPromise._reject(e):t.cancelPromise._cancel(),t.cancelPromise=null,!0)}function s(){return c.call(this,this.promise._target()._settledValue())}function u(t){if(!a(this,t))return p.e=t,p}function c(t){var o=this.promise,c=this.handler;if(!this.called){this.called=!0;var l=this.isFinallyHandler()?c.call(o._boundValue()):c.call(o._boundValue(),t);if(l===r)return l;if(void 0!==l){o._setReturnedNonUndefined();var h=n(l,o);if(h instanceof e){if(null!=this.cancelPromise){if(h._isCancelled()){var d=new f("late cancellation observer");return o._attachExtraTrace(d),p.e=d,p}h.isPending()&&h._attachCancellationCallback(new i(this))}return h._then(s,u,void 0,this,void 0)}}}return o.isRejected()?(a(this),p.e=t,p):(a(this),t)}var l=t("./util"),f=e.CancellationError,p=l.errorObj,h=t("./catch_filter")(r);return o.prototype.isFinallyHandler=function(){return 0===this.type},i.prototype._resultCancelled=function(){a(this.finallyHandler)},e.prototype._passThrough=function(t,e,n,r){return"function"==typeof t?this._then(n,r,void 0,new o(this,e,t),void 0):this.then()},e.prototype.lastly=e.prototype.finally=function(t){return this._passThrough(t,0,c,c)},e.prototype.tap=function(t){return this._passThrough(t,1,c)},e.prototype.tapCatch=function(t){var n=arguments.length;if(1===n)return this._passThrough(t,1,void 0,c);var r,o=Array(n-1),i=0;for(r=0;r<n-1;++r){var a=arguments[r];if(!l.isObject(a))return e.reject(new TypeError("tapCatch statement predicate: expecting an object but got "+l.classString(a)));o[i++]=a}o.length=i;var s=arguments[r];return this._passThrough(h(o,s,this),1,void 0,c)},o}},{"./catch_filter":7,"./util":36}],16:[function(t,e){e.exports=function(e,n,r,o,i,a){function s(t,n,r){for(var i=0;i<n.length;++i){r._pushContext();var a=h(n[i])(t);if(r._popContext(),a===p){r._pushContext();var s=e.reject(p.e);return r._popContext(),s}var u=o(a,r);if(u instanceof e)return u}return null}function u(t,n,o,i){if(a.cancellation()){var s=new e(r),u=this._finallyPromise=new e(r);this._promise=s.lastly(function(){return u}),s._captureStackTrace(),s._setOnCancel(this)}else{var c=this._promise=new e(r);c._captureStackTrace()}this._stack=i,this._generatorFunction=t,this._receiver=n,this._generator=void 0,this._yieldHandlers="function"==typeof o?[o].concat(d):d,this._yieldedPromise=null,this._cancellationPhase=!1}var c=t("./errors"),l=c.TypeError,f=t("./util"),p=f.errorObj,h=f.tryCatch,d=[];f.inherits(u,i),u.prototype._isResolved=function(){return null===this._promise},u.prototype._cleanup=function(){this._promise=this._generator=null,a.cancellation()&&null!==this._finallyPromise&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},u.prototype._promiseCancelled=function(){if(!this._isResolved()){var t,n="undefined"!=typeof this._generator.return;if(n)this._promise._pushContext(),t=h(this._generator.return).call(this._generator,void 0),this._promise._popContext();else{var r=new e.CancellationError("generator .return() sentinel");e.coroutine.returnSentinel=r,this._promise._attachExtraTrace(r),this._promise._pushContext(),t=h(this._generator.throw).call(this._generator,r),this._promise._popContext()}this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(t)}},u.prototype._promiseFulfilled=function(t){this._yieldedPromise=null,this._promise._pushContext();var e=h(this._generator.next).call(this._generator,t);this._promise._popContext(),this._continue(e)},u.prototype._promiseRejected=function(t){this._yieldedPromise=null,this._promise._attachExtraTrace(t),this._promise._pushContext();var e=h(this._generator.throw).call(this._generator,t);this._promise._popContext(),this._continue(e)},u.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof e){var t=this._yieldedPromise;this._yieldedPromise=null,t.cancel()}},u.prototype.promise=function(){return this._promise},u.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},u.prototype._continue=function(t){var n=this._promise;if(t===p)return this._cleanup(),this._cancellationPhase?n.cancel():n._rejectCallback(t.e,!1);var r=t.value;if(!0===t.done)return this._cleanup(),this._cancellationPhase?n.cancel():n._resolveCallback(r);var i=o(r,this._promise);if(!(i instanceof e)&&(i=s(i,this._yieldHandlers,this._promise),null===i))return void this._promiseRejected(new l("A value %s was yielded that could not be treated as a promise\n\n See http://goo.gl/MqrFmX\n\n".replace("%s",r+"")+"From coroutine:\n"+this._stack.split("\n").slice(1,-7).join("\n")));i=i._target();var a=i._bitField;0==(50397184&a)?(this._yieldedPromise=i,i._proxy(this,null)):0==(33554432&a)?0==(16777216&a)?this._promiseCancelled():e._async.invoke(this._promiseRejected,this,i._reason()):e._async.invoke(this._promiseFulfilled,this,i._value())},e.coroutine=function(t,e){if("function"!=typeof t)throw new l("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");var n=Object(e).yieldHandler,r=(new Error).stack;return function(){var e=t.apply(this,arguments),o=new u(void 0,void 0,n,r),i=o.promise();return o._generator=e,o._promiseFulfilled(void 0),i}},e.coroutine.addYieldHandler=function(t){if("function"!=typeof t)throw new l("expecting a function but got "+f.classString(t));d.push(t)},e.spawn=function(t){if(a.deprecated("Promise.spawn()","Promise.coroutine()"),"function"!=typeof t)return n("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");var r=new u(t,this),o=r.promise();return r._run(e.spawn),o}}},{"./errors":12,"./util":36}],17:[function(t,e){e.exports=function(e,n){var r=t("./util");r.canEvaluate,r.tryCatch,r.errorObj;e.join=function(){var t,e=arguments.length-1;if(0<e&&"function"==typeof arguments[e]){t=arguments[e];var r}var o=[].slice.call(arguments);t&&o.pop();var r=new n(o).promise();return void 0===t?r:r.spread(t)}}},{"./util":36}],18:[function(t,e){e.exports=function(e,n,r,o,i,a){function s(t,e,n,r){this.constructor$(t),this._promise._captureStackTrace();var o=l();this._callback=null===o?e:f.domainBind(o,e),this._preservedValues=r===i?Array(this.length()):null,this._limit=n,this._inFlight=0,this._queue=[],d.invoke(this._asyncInit,this,void 0)}function u(t,n,o,i){if("function"!=typeof n)return r("expecting a function but got "+f.classString(n));var a=0;if(void 0!==o){if("object"!==("undefined"==typeof o?"undefined":c(o))||null===o)return e.reject(new TypeError("options argument must be an object but it is "+f.classString(o)));if("number"!=typeof o.concurrency)return e.reject(new TypeError("'concurrency' must be a number but it is "+f.classString(o.concurrency)));a=o.concurrency}return a="number"==typeof a&&isFinite(a)&&1<=a?a:0,new s(t,n,a,i).promise()}var l=e._getDomain,f=t("./util"),p=f.tryCatch,h=f.errorObj,d=e._async;f.inherits(s,n),s.prototype._asyncInit=function(){this._init$(void 0,-2)},s.prototype._init=function(){},s.prototype._promiseFulfilled=function(t,n){var r=this._values,i=this.length(),s=this._preservedValues,u=this._limit;if(0>n){if(n=-1*n-1,r[n]=t,1<=u&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(1<=u&&this._inFlight>=u)return r[n]=t,this._queue.push(n),!1;null!==s&&(s[n]=t);var c=this._promise,l=this._callback,f=c._boundValue();c._pushContext();var d=p(l).call(f,t,n,i),y=c._popContext();if(a.checkForgottenReturns(d,y,null===s?"Promise.map":"Promise.filter",c),d===h)return this._reject(d.e),!0;var v=o(d,this._promise);if(v instanceof e){v=v._target();var m=v._bitField;if(0==(50397184&m))return 1<=u&&this._inFlight++,r[n]=v,v._proxy(this,-1*(n+1)),!1;if(0==(33554432&m))return 0==(16777216&m)?(this._cancel(),!0):(this._reject(v._reason()),!0);d=v._value()}r[n]=d}var _=++this._totalResolved;return!!(_>=i)&&(null===s?this._resolve(r):this._filter(r,s),!0)},s.prototype._drainQueue=function(){for(var t=this._queue,e=this._limit,n=this._values;0<t.length&&this._inFlight<e;){if(this._isResolved())return;var r=t.pop();this._promiseFulfilled(n[r],r)}},s.prototype._filter=function(t,e){for(var n=e.length,r=Array(n),o=0,i=0;i<n;++i)t[i]&&(r[o++]=e[i]);r.length=o,this._resolve(r)},s.prototype.preservedValues=function(){return this._preservedValues},e.prototype.map=function(t,e){return u(this,t,e,null)},e.map=function(t,e,n,r){return u(t,e,n,r)}}},{"./util":36}],19:[function(t,e){e.exports=function(e,n,r,o,i){var a=t("./util"),s=a.tryCatch;e.method=function(t){if("function"!=typeof t)throw new e.TypeError("expecting a function but got "+a.classString(t));return function(){var r=new e(n);r._captureStackTrace(),r._pushContext();var o=s(t).apply(this,arguments),a=r._popContext();return i.checkForgottenReturns(o,a,"Promise.method",r),r._resolveFromSyncValue(o),r}},e.attempt=e.try=function(t){if("function"!=typeof t)return o("expecting a function but got "+a.classString(t));var r=new e(n);r._captureStackTrace(),r._pushContext();var u;if(1<arguments.length){i.deprecated("calling Promise.try with more than 1 argument");var c=arguments[1],l=arguments[2];u=a.isArray(c)?s(t).apply(l,c):s(t).call(l,c)}else u=s(t)();var f=r._popContext();return i.checkForgottenReturns(u,f,"Promise.try",r),r._resolveFromSyncValue(u),r},e.prototype._resolveFromSyncValue=function(t){t===a.errorObj?this._rejectCallback(t.e,!1):this._resolveCallback(t,!0)}}},{"./util":36}],20:[function(t,e){function n(t){return t instanceof Error&&u.getPrototypeOf(t)===Error.prototype}function r(t){var e;if(n(t)){e=new s(t),e.name=t.name,e.message=t.message,e.stack=t.stack;for(var r,i=u.keys(t),a=0;a<i.length;++a)r=i[a],c.test(r)||(e[r]=t[r]);return e}return o.markAsOriginatingFromRejection(t),t}var o=t("./util"),i=o.maybeWrapAsError,a=t("./errors"),s=a.OperationalError,u=t("./es5"),c=/^(?:name|message|stack|cause)$/;e.exports=function(t,e){return function(n,o){if(null!==t){if(n){var a=r(i(n));t._attachExtraTrace(a),t._reject(a)}else if(e){var s=[].slice.call(arguments,1);t._fulfill(s)}else t._fulfill(o);t=null}}}},{"./errors":12,"./es5":13,"./util":36}],21:[function(t,e){e.exports=function(e){function n(t,e){var n=this;if(!i.isArray(t))return r.call(n,t,e);var o=s(e).apply(n._boundValue(),[null].concat(t));o===u&&a.throwLater(o.e)}function r(t,e){var n=this,r=n._boundValue(),o=void 0===t?s(e).call(r,null):s(e).call(r,null,t);o===u&&a.throwLater(o.e)}function o(t,e){var n=this;if(!t){var r=new Error(t+"");r.cause=t,t=r}var o=s(e).call(n._boundValue(),t);o===u&&a.throwLater(o.e)}var i=t("./util"),a=e._async,s=i.tryCatch,u=i.errorObj;e.prototype.asCallback=e.prototype.nodeify=function(t,e){if("function"==typeof t){var i=r;void 0!==e&&Object(e).spread&&(i=n),this._then(i,o,void 0,this,t)}return this}}},{"./util":36}],22:[function(t,e){e.exports=function(){function r(){}function o(t,e){if(null==t||t.constructor!==i)throw new g("the promise constructor cannot be invoked directly\n\n See http://goo.gl/MqrFmX\n");if("function"!=typeof e)throw new g("expecting a function but got "+d.classString(e))}function i(t){t!==w&&o(this,t),this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,this._resolveFromExecutor(t),this._promiseCreated(),this._fireEvent("promiseCreated",this)}function a(t){this.promise._resolveCallback(t)}function s(t){this.promise._rejectCallback(t,!1)}function u(t){var e=new i(w);e._fulfillmentHandler0=t,e._rejectionHandler0=t,e._promise0=t,e._receiver0=t}var c,l=function(){return new g("circular promise resolution chain\n\n See http://goo.gl/MqrFmX\n")},f=function(){return new i.PromiseInspection(this._target())},p=function(t){return i.reject(new g(t))},h={},d=t("./util");c=d.isNode?function(){var t=n.domain;return void 0===t&&(t=null),t}:function(){return null},d.notEnumerableProp(i,"_getDomain",c);var y=t("./es5"),v=t("./async"),m=new v;y.defineProperty(i,"_async",{value:m});var _=t("./errors"),g=i.TypeError=_.TypeError;i.RangeError=_.RangeError;var b=i.CancellationError=_.CancellationError;i.TimeoutError=_.TimeoutError,i.OperationalError=_.OperationalError,i.RejectionError=_.OperationalError,i.AggregateError=_.AggregateError;var w=function(){},x={},j={},E=t("./thenables")(i,w),O=t("./promise_array")(i,w,E,p,r),S=t("./context")(i),C=S.create,k=t("./debuggability")(i,S),T=(k.CapturedTrace,t("./finally")(i,E,j)),P=t("./catch_filter")(j),N=t("./nodeback"),A=d.errorObj,I=d.tryCatch;return i.prototype.toString=function(){return"[object Promise]"},i.prototype.caught=i.prototype.catch=function(t){var e=arguments.length;if(1<e){var n,r=Array(e-1),o=0;for(n=0;n<e-1;++n){var i=arguments[n];if(!d.isObject(i))return p("Catch statement predicate: expecting an object but got "+d.classString(i));r[o++]=i}return r.length=o,t=arguments[n],this.then(void 0,P(r,t,this))}return this.then(void 0,t)},i.prototype.reflect=function(){return this._then(f,f,void 0,this,void 0)},i.prototype.then=function(t,e){if(k.warnings()&&0<arguments.length&&"function"!=typeof t&&"function"!=typeof e){var n=".then() only accepts functions but was passed: "+d.classString(t);1<arguments.length&&(n+=", "+d.classString(e)),this._warn(n)}return this._then(t,e,void 0,void 0,void 0)},i.prototype.done=function(t,e){var n=this._then(t,e,void 0,void 0,void 0);n._setIsFinal()},i.prototype.spread=function(t){return"function"==typeof t?this.all()._then(t,void 0,void 0,x,void 0):p("expecting a function but got "+d.classString(t))},i.prototype.toJSON=function(){var t={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(t.fulfillmentValue=this.value(),t.isFulfilled=!0):this.isRejected()&&(t.rejectionReason=this.reason(),t.isRejected=!0),t},i.prototype.all=function(){return 0<arguments.length&&this._warn(".all() was passed arguments but it does not take any"),new O(this).promise()},i.prototype.error=function(t){return this.caught(d.originatesFromRejection,t)},i.getNewLibraryCopy=e.exports,i.is=function(t){return t instanceof i},i.fromNode=i.fromCallback=function(t){var e=new i(w);e._captureStackTrace();var n=!!(1<arguments.length)&&!!Object(arguments[1]).multiArgs,r=I(t)(N(e,n));return r===A&&e._rejectCallback(r.e,!0),e._isFateSealed()||e._setAsyncGuaranteed(),e},i.all=function(t){return new O(t).promise()},i.cast=function(t){var e=E(t);return e instanceof i||(e=new i(w),e._captureStackTrace(),e._setFulfilled(),e._rejectionHandler0=t),e},i.resolve=i.fulfilled=i.cast,i.reject=i.rejected=function(t){var e=new i(w);return e._captureStackTrace(),e._rejectCallback(t,!0),e},i.setScheduler=function(t){if("function"!=typeof t)throw new g("expecting a function but got "+d.classString(t));return m.setScheduler(t)},i.prototype._then=function(t,e,n,r,o){var a=void 0!==o,s=a?o:new i(w),u=this._target(),l=u._bitField;a||(s._propagateFrom(this,3),s._captureStackTrace(),void 0===r&&0!=(2097152&this._bitField)&&(r=0==(50397184&l)?u===this?void 0:this._boundTo:this._boundValue()),this._fireEvent("promiseChained",this,s));var f=c();if(0!=(50397184&l)){var p,h,y=u._settlePromiseCtx;0==(33554432&l)?0==(16777216&l)?(y=u._settlePromiseLateCancellationObserver,h=new b("late cancellation observer"),u._attachExtraTrace(h),p=e):(h=u._fulfillmentHandler0,p=e,u._unsetRejectionIsUnhandled()):(h=u._rejectionHandler0,p=t),m.invoke(y,u,{handler:null===f?p:"function"==typeof p&&d.domainBind(f,p),promise:s,receiver:r,value:h})}else u._addCallbacks(t,e,s,r,f);return s},i.prototype._length=function(){return 65535&this._bitField},i.prototype._isFateSealed=function(){return 0!=(117506048&this._bitField)},i.prototype._isFollowing=function(){return 67108864==(67108864&this._bitField)},i.prototype._setLength=function(t){this._bitField=-65536&this._bitField|65535&t},i.prototype._setFulfilled=function(){this._bitField|=33554432,this._fireEvent("promiseFulfilled",this)},i.prototype._setRejected=function(){this._bitField|=16777216,this._fireEvent("promiseRejected",this)},i.prototype._setFollowing=function(){this._bitField|=67108864,this._fireEvent("promiseResolved",this)},i.prototype._setIsFinal=function(){
this._bitField|=4194304},i.prototype._isFinal=function(){return 0<(4194304&this._bitField)},i.prototype._unsetCancelled=function(){this._bitField&=-65537},i.prototype._setCancelled=function(){this._bitField|=65536,this._fireEvent("promiseCancelled",this)},i.prototype._setWillBeCancelled=function(){this._bitField|=8388608},i.prototype._setAsyncGuaranteed=function(){m.hasCustomScheduler()||(this._bitField|=134217728)},i.prototype._receiverAt=function(t){var e=0===t?this._receiver0:this[4*t-4+3];if(e!==h)return void 0===e&&this._isBound()?this._boundValue():e},i.prototype._promiseAt=function(t){return this[4*t-4+2]},i.prototype._fulfillmentHandlerAt=function(t){return this[4*t-4+0]},i.prototype._rejectionHandlerAt=function(t){return this[4*t-4+1]},i.prototype._boundValue=function(){},i.prototype._migrateCallback0=function(t){var e=(t._bitField,t._fulfillmentHandler0),n=t._rejectionHandler0,r=t._promise0,o=t._receiverAt(0);void 0===o&&(o=h),this._addCallbacks(e,n,r,o,null)},i.prototype._migrateCallbackAt=function(t,e){var n=t._fulfillmentHandlerAt(e),r=t._rejectionHandlerAt(e),o=t._promiseAt(e),i=t._receiverAt(e);void 0===i&&(i=h),this._addCallbacks(n,r,o,i,null)},i.prototype._addCallbacks=function(t,e,n,r,o){var i=this._length();if(65531<=i&&(i=0,this._setLength(0)),0===i)this._promise0=n,this._receiver0=r,"function"==typeof t&&(this._fulfillmentHandler0=null===o?t:d.domainBind(o,t)),"function"==typeof e&&(this._rejectionHandler0=null===o?e:d.domainBind(o,e));else{var a=4*i-4;this[a+2]=n,this[a+3]=r,"function"==typeof t&&(this[a+0]=null===o?t:d.domainBind(o,t)),"function"==typeof e&&(this[a+1]=null===o?e:d.domainBind(o,e))}return this._setLength(i+1),i},i.prototype._proxy=function(t,e){this._addCallbacks(void 0,void 0,e,t,null)},i.prototype._resolveCallback=function(t,e){if(0==(117506048&this._bitField)){if(t===this)return this._rejectCallback(l(),!1);var n=E(t,this);if(!(n instanceof i))return this._fulfill(t);e&&this._propagateFrom(n,2);var r=n._target();if(r===this)return void this._reject(l());var o=r._bitField;if(0==(50397184&o)){var a=this._length();0<a&&r._migrateCallback0(this);for(var s=1;s<a;++s)r._migrateCallbackAt(this,s);this._setFollowing(),this._setLength(0),this._setFollowee(r)}else if(0!=(33554432&o))this._fulfill(r._value());else if(0!=(16777216&o))this._reject(r._reason());else{var u=new b("late cancellation observer");r._attachExtraTrace(u),this._reject(u)}}},i.prototype._rejectCallback=function(t,e,n){var r=d.ensureErrorObject(t),o=r===t;if(!o&&!n&&k.warnings()){var i="a promise was rejected with a non-error: "+d.classString(t);this._warn(i,!0)}this._attachExtraTrace(r,!!e&&o),this._reject(t)},i.prototype._resolveFromExecutor=function(t){if(t!==w){var e=this;this._captureStackTrace(),this._pushContext();var n=!0,r=this._execute(t,function(t){e._resolveCallback(t)},function(t){e._rejectCallback(t,n)});n=!1,this._popContext(),void 0!==r&&e._rejectCallback(r,!0)}},i.prototype._settlePromiseFromHandler=function(t,e,n,r){var o=r._bitField;if(0==(65536&o)){r._pushContext();var i;e===x?n&&"number"==typeof n.length?i=I(t).apply(this._boundValue(),n):(i=A,i.e=new g("cannot .spread() a non-array: "+d.classString(n))):i=I(t).call(e,n);var a=r._popContext();o=r._bitField,0!=(65536&o)||(i===j?r._reject(n):i===A?r._rejectCallback(i.e,!1):(k.checkForgottenReturns(i,a,"",r,this),r._resolveCallback(i)))}},i.prototype._target=function(){for(var t=this;t._isFollowing();)t=t._followee();return t},i.prototype._followee=function(){return this._rejectionHandler0},i.prototype._setFollowee=function(t){this._rejectionHandler0=t},i.prototype._settlePromise=function(t,e,n,o){var a=t instanceof i,s=this._bitField,u=0!=(134217728&s);0==(65536&s)?"function"==typeof e?a?(u&&t._setAsyncGuaranteed(),this._settlePromiseFromHandler(e,n,o,t)):e.call(n,o,t):n instanceof r?!n._isResolved()&&(0==(33554432&s)?n._promiseRejected(o,t):n._promiseFulfilled(o,t)):a&&(u&&t._setAsyncGuaranteed(),0==(33554432&s)?t._reject(o):t._fulfill(o)):(a&&t._invokeInternalOnCancel(),n instanceof T&&n.isFinallyHandler()?(n.cancelPromise=t,I(e).call(n,o)===A&&t._reject(A.e)):e===f?t._fulfill(f.call(n)):n instanceof r?n._promiseCancelled(t):a||t instanceof O?t._cancel():n.cancel())},i.prototype._settlePromiseLateCancellationObserver=function(t){var e=t.handler,n=t.promise,r=t.receiver,o=t.value;"function"==typeof e?n instanceof i?this._settlePromiseFromHandler(e,r,o,n):e.call(r,o,n):n instanceof i&&n._reject(o)},i.prototype._settlePromiseCtx=function(t){this._settlePromise(t.promise,t.handler,t.receiver,t.value)},i.prototype._settlePromise0=function(t,e){var n=this._promise0,r=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(n,t,r,e)},i.prototype._clearCallbackDataAtIndex=function(t){var e=4*t-4;this[e+2]=this[e+3]=this[e+0]=this[e+1]=void 0},i.prototype._fulfill=function(t){var e=this._bitField;if(!((117506048&e)>>>16)){if(t===this){var n=l();return this._attachExtraTrace(n),this._reject(n)}this._setFulfilled(),this._rejectionHandler0=t,0<(65535&e)&&(0==(134217728&e)?m.settlePromises(this):this._settlePromises())}},i.prototype._reject=function(t){var e=this._bitField;if(!((117506048&e)>>>16))return this._setRejected(),this._fulfillmentHandler0=t,this._isFinal()?m.fatalError(t,d.isNode):void(0<(65535&e)?m.settlePromises(this):this._ensurePossibleRejectionHandled())},i.prototype._fulfillPromises=function(t,e){for(var n=1;n<t;n++){var r=this._fulfillmentHandlerAt(n),o=this._promiseAt(n),i=this._receiverAt(n);this._clearCallbackDataAtIndex(n),this._settlePromise(o,r,i,e)}},i.prototype._rejectPromises=function(t,e){for(var n=1;n<t;n++){var r=this._rejectionHandlerAt(n),o=this._promiseAt(n),i=this._receiverAt(n);this._clearCallbackDataAtIndex(n),this._settlePromise(o,r,i,e)}},i.prototype._settlePromises=function(){var t=this._bitField,e=65535&t;if(0<e){if(0!=(16842752&t)){var n=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,n,t),this._rejectPromises(e,n)}else{var r=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,r,t),this._fulfillPromises(e,r)}this._setLength(0)}this._clearCancellationData()},i.prototype._settledValue=function(){var t=this._bitField;return 0==(33554432&t)?0==(16777216&t)?void 0:this._fulfillmentHandler0:this._rejectionHandler0},i.defer=i.pending=function(){k.deprecated("Promise.defer","new Promise");var t=new i(w);return{promise:t,resolve:a,reject:s}},d.notEnumerableProp(i,"_makeSelfResolutionError",l),t("./method")(i,w,E,p,k),t("./bind")(i,w,E,k),t("./cancel")(i,O,p,k),t("./direct_resolve")(i),t("./synchronous_inspection")(i),t("./join")(i,O,E,w,m,c),i.Promise=i,i.version="3.5.1",t("./map.js")(i,O,p,E,w,k),t("./call_get.js")(i),t("./using.js")(i,p,E,C,w,k),t("./timers.js")(i,w,k),t("./generators.js")(i,p,w,E,r,k),t("./nodeify.js")(i),t("./promisify.js")(i,w),t("./props.js")(i,O,E,p),t("./race.js")(i,w,E,p),t("./reduce.js")(i,O,p,E,w,k),t("./settle.js")(i,O,k),t("./some.js")(i,O,p),t("./filter.js")(i,w),t("./each.js")(i,w),t("./any.js")(i),d.toFastProperties(i),d.toFastProperties(i.prototype),u({a:1}),u({b:2}),u({c:3}),u(1),u(function(){}),u(void 0),u(!1),u(new i(w)),k.setBounds(v.firstLineError,d.lastLineError),i}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36}],23:[function(t,e){e.exports=function(e,n,r,o,i){function a(t){return-2===t?[]:-3===t?{}:-6===t?new Map:void 0}function s(t){var r=this._promise=new e(n);t instanceof e&&r._propagateFrom(t,3),r._setOnCancel(this),this._values=t,this._length=0,this._totalResolved=0,this._init(void 0,-2)}var u=t("./util");u.isArray;return u.inherits(s,i),s.prototype.length=function(){return this._length},s.prototype.promise=function(){return this._promise},s.prototype._init=function t(n,i){var s=r(this._values,this._promise);if(s instanceof e){s=s._target();var c=s._bitField;if(this._values=s,0==(50397184&c))return this._promise._setAsyncGuaranteed(),s._then(t,this._reject,void 0,this,i);if(0==(33554432&c))return 0==(16777216&c)?this._cancel():this._reject(s._reason());s=s._value()}if(s=u.asArray(s),null===s){var l=o("expecting an array or an iterable object but got "+u.classString(s)).reason();return void this._promise._rejectCallback(l,!1)}return 0===s.length?void(-5===i?this._resolveEmptyArray():this._resolve(a(i))):void this._iterate(s)},s.prototype._iterate=function(t){var n=this.getActualLength(t.length);this._length=n,this._values=this.shouldCopyValues()?Array(n):this._values;for(var o,i=this._promise,a=!1,s=null,u=0;u<n;++u)o=r(t[u],i),o instanceof e?(o=o._target(),s=o._bitField):s=null,a?null!==s&&o.suppressUnhandledRejections():null===s?a=this._promiseFulfilled(o,u):0==(50397184&s)?(o._proxy(this,u),this._values[u]=o):a=0==(33554432&s)?0==(16777216&s)?this._promiseCancelled(u):this._promiseRejected(o._reason(),u):this._promiseFulfilled(o._value(),u);a||i._setAsyncGuaranteed()},s.prototype._isResolved=function(){return null===this._values},s.prototype._resolve=function(t){this._values=null,this._promise._fulfill(t)},s.prototype._cancel=function(){this._isResolved()||!this._promise._isCancellable()||(this._values=null,this._promise._cancel())},s.prototype._reject=function(t){this._values=null,this._promise._rejectCallback(t,!1)},s.prototype._promiseFulfilled=function(t,e){this._values[e]=t;var n=++this._totalResolved;return!!(n>=this._length)&&(this._resolve(this._values),!0)},s.prototype._promiseCancelled=function(){return this._cancel(),!0},s.prototype._promiseRejected=function(t){return this._totalResolved++,this._reject(t),!0},s.prototype._resultCancelled=function(){if(!this._isResolved()){var t=this._values;if(this._cancel(),t instanceof e)t.cancel();else for(var n=0;n<t.length;++n)t[n]instanceof e&&t[n].cancel()}},s.prototype.shouldCopyValues=function(){return!0},s.prototype.getActualLength=function(t){return t},s}},{"./util":36}],24:[function(t,e){e.exports=function(e,n){function r(t){return!b.test(t)}function o(t){try{return!0===t.__isPromisified__}catch(t){return!1}}function i(t,e,n){var r=h.getDataPropertyOrDefault(t,e+n,g);return!!r&&o(r)}function a(t,e,n){for(var r,o=0;o<t.length;o+=2)if(r=t[o],n.test(r))for(var i=r.replace(n,""),a=0;a<t.length;a+=2)if(t[a]===i)throw new _("Cannot promisify an API that has normal methods with '%s'-suffix\n\n See http://goo.gl/MqrFmX\n".replace("%s",e))}function s(t,e,n,r){for(var s=h.inheritedDataKeys(t),u=[],c=0;c<s.length;++c){var l=s[c],f=t[l],p=r===w||w(l,f,t);"function"!=typeof f||o(f)||i(t,l,e)||!r(l,f,t,p)||u.push(l,f)}return a(u,e,n),u}function u(t,e,n,r,o){for(var i=new RegExp(x(e)+"$"),a=s(t,e,i,n),u=0,c=a.length;u<c;u+=2){var l=a[u],f=a[u+1],d=l+e;if(r===j)t[d]=j(l,p,l,f,e,o);else{var y=r(f,function(){return j(l,p,l,f,e,o)});h.notEnumerableProp(y,"__isPromisified__",!0),t[d]=y}}return h.toFastProperties(t),t}function l(t,e,n){return j(t,e,void 0,t,null,n)}var f,p={},h=t("./util"),d=t("./nodeback"),y=h.withAppended,v=h.maybeWrapAsError,m=h.canEvaluate,_=t("./errors").TypeError,g={__isPromisified__:!0},b=new RegExp("^(?:"+["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"].join("|")+")$"),w=function(t){return h.isIdentifier(t)&&"_"!==t.charAt(0)&&"constructor"!==t},x=function(t){return t.replace(/([$])/,"\\$")},j=m?f:function(t,r,o,i,a,s){function u(){var o=r;r===p&&(o=this);var i=new e(n);i._captureStackTrace();var a="string"==typeof l&&this!==c?this[l]:t,u=d(i,s);try{a.apply(o,y(arguments,u))}catch(t){i._rejectCallback(v(t),!0,!0)}return i._isFateSealed()||i._setAsyncGuaranteed(),i}var c=function(){return this}(),l=t;return"string"==typeof l&&(t=i),h.notEnumerableProp(u,"__isPromisified__",!0),u};e.promisify=function(t,e){if("function"!=typeof t)throw new _("expecting a function but got "+h.classString(t));if(o(t))return t;e=Object(e);var n=void 0===e.context?p:e.context,i=!!e.multiArgs,a=l(t,n,i);return h.copyDescriptors(t,a,r),a},e.promisifyAll=function(t,e){if("function"!=typeof t&&"object"!==("undefined"==typeof t?"undefined":c(t)))throw new _("the target of promisifyAll must be an object or a function\n\n See http://goo.gl/MqrFmX\n");e=Object(e);var n=!!e.multiArgs,r=e.suffix;"string"!=typeof r&&(r="Async");var o=e.filter;"function"!=typeof o&&(o=w);var i=e.promisifier;if("function"!=typeof i&&(i=j),!h.isIdentifier(r))throw new RangeError("suffix must be a valid identifier\n\n See http://goo.gl/MqrFmX\n");for(var a,s=h.inheritedDataKeys(t),l=0;l<s.length;++l)a=t[s[l]],"constructor"!==s[l]&&h.isClass(a)&&(u(a.prototype,r,o,i,n),u(a,r,o,i,n));return u(t,r,o,i,n)}}},{"./errors":12,"./nodeback":20,"./util":36}],25:[function(t,e){e.exports=function(e,n,r,o){function i(t){var e,n=!1;if(void 0!==s&&t instanceof s)e=f(t),n=!0;else{var r=l.keys(t),o=r.length;e=Array(2*o);for(var i,a=0;a<o;++a)i=r[a],e[a]=t[i],e[a+o]=i}this.constructor$(e),this._isMap=n,this._init$(void 0,n?-6:-3)}function a(t){var n,a=r(t);return c(a)?(n=a instanceof e?a._then(e.props,void 0,void 0,void 0,void 0):new i(a).promise(),a instanceof e&&n._propagateFrom(a,2),n):o("cannot await properties of a non-object\n\n See http://goo.gl/MqrFmX\n")}var s,u=t("./util"),c=u.isObject,l=t("./es5");"function"==typeof Map&&(s=Map);var f=function(){function t(t,r){this[e]=t,this[e+n]=r,e++}var e=0,n=0;return function(r){n=r.size,e=0;var o=Array(2*r.size);return r.forEach(t,o),o}}(),p=function(t){for(var e=new s,n=0|t.length/2,r=0;r<n;++r){var o=t[n+r],i=t[r];e.set(o,i)}return e};u.inherits(i,n),i.prototype._init=function(){},i.prototype._promiseFulfilled=function(t,e){this._values[e]=t;var n=++this._totalResolved;if(n>=this._length){var r;if(this._isMap)r=p(this._values);else{r={};for(var o=this.length(),i=0,a=this.length();i<a;++i)r[this._values[i+o]]=this._values[i]}return this._resolve(r),!0}return!1},i.prototype.shouldCopyValues=function(){return!1},i.prototype.getActualLength=function(t){return t>>1},e.prototype.props=function(){return a(this)},e.props=function(t){return a(t)}}},{"./es5":13,"./util":36}],26:[function(t,e){function n(t,e,n,r,o){for(var i=0;i<o;++i)n[i+r]=t[i+e],t[i+e]=void 0}function r(t){this._capacity=t,this._length=0,this._front=0}r.prototype._willBeOverCapacity=function(t){return this._capacity<t},r.prototype._pushOne=function(t){var e=this.length();this._checkCapacity(e+1);var n=this._front+e&this._capacity-1;this[n]=t,this._length=e+1},r.prototype.push=function(t,e,n){var r=this.length()+3;if(this._willBeOverCapacity(r))return this._pushOne(t),this._pushOne(e),void this._pushOne(n);var o=this._front+r-3;this._checkCapacity(r);var i=this._capacity-1;this[o+0&i]=t,this[o+1&i]=e,this[o+2&i]=n,this._length=r},r.prototype.shift=function(){var t=this._front,e=this[t];return this[t]=void 0,this._front=t+1&this._capacity-1,this._length--,e},r.prototype.length=function(){return this._length},r.prototype._checkCapacity=function(t){this._capacity<t&&this._resizeTo(this._capacity<<1)},r.prototype._resizeTo=function(t){var e=this._capacity;this._capacity=t;var r=this._front,o=this._length;n(this,0,this,e,r+o&e-1)},e.exports=r},{}],27:[function(t,e){e.exports=function(e,n,r,o){function i(t,i){var u=r(t);if(u instanceof e)return s(u);if(t=a.asArray(t),null===t)return o("expecting an array or an iterable object but got "+a.classString(t));var c=new e(n);void 0!==i&&c._propagateFrom(i,3);for(var l,f=c._fulfill,p=c._reject,h=0,d=t.length;h<d;++h)l=t[h],(void 0!==l||h in t)&&e.cast(l)._then(f,p,void 0,c,null);return c}var a=t("./util"),s=function(t){return t.then(function(e){return i(e,t)})};e.race=function(t){return i(t,void 0)},e.prototype.race=function(){return i(this,void 0)}}},{"./util":36}],28:[function(t,e){e.exports=function(e,n,r,o,i,a){function s(t,n,r,o){this.constructor$(t);var a=p();this._fn=null===a?n:h.domainBind(a,n),void 0!==r&&(r=e.resolve(r),r._attachCancellationCallback(this)),this._initialValue=r,this._currentCancellable=null,this._eachValues=o===i?Array(this._length):0===o?null:void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}function u(t,e){this.isFulfilled()?e._resolve(t):e._reject(t)}function c(t,e,n,o){if("function"!=typeof e)return r("expecting a function but got "+h.classString(e));var i=new s(t,e,n,o);return i.promise()}function l(t){this.accum=t,this.array._gotAccum(t);var n=o(this.value,this.array._promise);return n instanceof e?(this.array._currentCancellable=n,n._then(f,void 0,void 0,this,void 0)):f.call(this,n)}function f(t){var n=this.array,r=n._promise,o=d(n._fn);r._pushContext();var i;i=void 0===n._eachValues?o.call(r._boundValue(),this.accum,t,this.index,this.length):o.call(r._boundValue(),t,this.index,this.length),i instanceof e&&(n._currentCancellable=i);var s=r._popContext();return a.checkForgottenReturns(i,s,void 0===n._eachValues?"Promise.reduce":"Promise.each",r),i}var p=e._getDomain,h=t("./util"),d=h.tryCatch;h.inherits(s,n),s.prototype._gotAccum=function(t){void 0!==this._eachValues&&null!==this._eachValues&&t!==i&&this._eachValues.push(t)},s.prototype._eachComplete=function(t){return null!==this._eachValues&&this._eachValues.push(t),this._eachValues},s.prototype._init=function(){},s.prototype._resolveEmptyArray=function(){this._resolve(void 0===this._eachValues?this._initialValue:this._eachValues)},s.prototype.shouldCopyValues=function(){return!1},s.prototype._resolve=function(t){this._promise._resolveCallback(t),this._values=null},s.prototype._resultCancelled=function(t){return t===this._initialValue?this._cancel():void(this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof e&&this._currentCancellable.cancel(),this._initialValue instanceof e&&this._initialValue.cancel()))},s.prototype._iterate=function(t){this._values=t;var n,r,o=t.length;if(void 0===this._initialValue?(n=e.resolve(t[0]),r=1):(n=this._initialValue,r=0),this._currentCancellable=n,!n.isRejected())for(;r<o;++r){var i={accum:null,value:t[r],index:r,length:o,array:this};n=n._then(l,void 0,void 0,i,void 0)}void 0!==this._eachValues&&(n=n._then(this._eachComplete,void 0,void 0,this,void 0)),n._then(u,u,void 0,n,this)},e.prototype.reduce=function(t,e){return c(this,t,e,null)},e.reduce=function(t,e,n,r){return c(t,e,n,r)}}},{"./util":36}],29:[function(t,e){var o,a=t("./util"),s=a.getNativePromise();if(a.isNode&&"undefined"==typeof MutationObserver){var u=r.setImmediate,c=n.nextTick;o=a.isRecentNode?function(t){u.call(r,t)}:function(t){c.call(n,t)}}else if("function"==typeof s&&"function"==typeof s.resolve){var l=s.resolve();o=function(t){l.then(t)}}else o="undefined"==typeof MutationObserver||"undefined"!=typeof window&&window.navigator&&(window.navigator.standalone||window.cordova)?"undefined"==typeof i?"undefined"==typeof setTimeout?function(){throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")}:function(t){setTimeout(t,0)}:function(t){i(t)}:function(){var t=document.createElement("div"),e={attributes:!0},n=!1,r=document.createElement("div"),o=new MutationObserver(function(){t.classList.toggle("foo"),n=!1});o.observe(r,e);var i=function(){n||(n=!0,r.classList.toggle("foo"))};return function(n){var r=new MutationObserver(function(){r.disconnect(),n()});r.observe(t,e),i()}}();e.exports=o},{"./util":36}],30:[function(t,e){e.exports=function(e,n,r){function o(t){this.constructor$(t)}var i=e.PromiseInspection,a=t("./util");a.inherits(o,n),o.prototype._promiseResolved=function(t,e){this._values[t]=e;var n=++this._totalResolved;return!!(n>=this._length)&&(this._resolve(this._values),!0)},o.prototype._promiseFulfilled=function(t,e){var n=new i;return n._bitField=33554432,n._settledValueField=t,this._promiseResolved(e,n)},o.prototype._promiseRejected=function(t,e){var n=new i;return n._bitField=16777216,n._settledValueField=t,this._promiseResolved(e,n)},e.settle=function(t){return r.deprecated(".settle()",".reflect()"),new o(t).promise()},e.prototype.settle=function(){return e.settle(this)}}},{"./util":36}],31:[function(t,e){e.exports=function(e,n,r){function o(t){this.constructor$(t),this._howMany=0,this._unwrap=!1,this._initialized=!1}function i(t,e){if((0|e)!==e||0>e)return r("expecting a positive integer\n\n See http://goo.gl/MqrFmX\n");var n=new o(t),i=n.promise();return n.setHowMany(e),n.init(),i}var a=t("./util"),s=t("./errors").RangeError,u=t("./errors").AggregateError,c=a.isArray,l={};a.inherits(o,n),o.prototype._init=function(){if(this._initialized){if(0===this._howMany)return void this._resolve([]);this._init$(void 0,-5);var t=c(this._values);!this._isResolved()&&t&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}},o.prototype.init=function(){this._initialized=!0,this._init()},o.prototype.setUnwrap=function(){this._unwrap=!0},o.prototype.howMany=function(){return this._howMany},o.prototype.setHowMany=function(t){this._howMany=t},o.prototype._promiseFulfilled=function(t){return this._addFulfilled(t),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),1===this.howMany()&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},o.prototype._promiseRejected=function(t){return this._addRejected(t),this._checkOutcome()},o.prototype._promiseCancelled=function(){return this._values instanceof e||null==this._values?this._cancel():(this._addRejected(l),this._checkOutcome())},o.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var t=new u,e=this.length();e<this._values.length;++e)this._values[e]!==l&&t.push(this._values[e]);return 0<t.length?this._reject(t):this._cancel(),!0}return!1},o.prototype._fulfilled=function(){return this._totalResolved},o.prototype._rejected=function(){return this._values.length-this.length()},o.prototype._addRejected=function(t){this._values.push(t)},o.prototype._addFulfilled=function(t){this._values[this._totalResolved++]=t},o.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},o.prototype._getRangeError=function(t){var e="Input array must contain at least "+this._howMany+" items but contains only "+t+" items";return new s(e)},o.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},e.some=function(t,e){return i(t,e)},e.prototype.some=function(t){return i(this,t)},e._SomePromiseArray=o}},{"./errors":12,"./util":36}],32:[function(t,e){e.exports=function(t){function e(t){void 0===t?(this._bitField=0,this._settledValueField=void 0):(t=t._target(),this._bitField=t._bitField,this._settledValueField=t._isFateSealed()?t._settledValue():void 0)}e.prototype._settledValue=function(){return this._settledValueField};var n=e.prototype.value=function(){if(!this.isFulfilled())throw new TypeError("cannot get fulfillment value of a non-fulfilled promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},r=e.prototype.error=e.prototype.reason=function(){if(!this.isRejected())throw new TypeError("cannot get rejection reason of a non-rejected promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},o=e.prototype.isFulfilled=function(){return 0!=(33554432&this._bitField)},i=e.prototype.isRejected=function(){return 0!=(16777216&this._bitField)},a=e.prototype.isPending=function(){return 0==(50397184&this._bitField)},s=e.prototype.isResolved=function(){return 0!=(50331648&this._bitField)};e.prototype.isCancelled=function(){return 0!=(8454144&this._bitField)},t.prototype.__isCancelled=function(){return 65536==(65536&this._bitField)},t.prototype._isCancelled=function(){return this._target().__isCancelled()},t.prototype.isCancelled=function(){return 0!=(8454144&this._target()._bitField)},t.prototype.isPending=function(){return a.call(this._target())},t.prototype.isRejected=function(){return i.call(this._target())},t.prototype.isFulfilled=function(){return o.call(this._target())},t.prototype.isResolved=function(){return s.call(this._target())},t.prototype.value=function(){return n.call(this._target())},t.prototype.reason=function(){var t=this._target();return t._unsetRejectionIsUnhandled(),r.call(t)},t.prototype._value=function(){return this._settledValue()},t.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},t.PromiseInspection=e}},{}],33:[function(t,e){e.exports=function(e,n){function r(t){return t.then}function o(t){try{return r(t)}catch(t){return u.e=t,u}}function i(t){try{return l.call(t,"_promise0")}catch(t){return!1}}function a(t,r,o){var i=new e(n),a=i;o&&o._pushContext(),i._captureStackTrace(),o&&o._popContext();var c=!0,l=s.tryCatch(r).call(t,function(t){i&&(i._resolveCallback(t),i=null)},function(t){i&&(i._rejectCallback(t,c,!0),i=null)});return c=!1,i&&l===u&&(i._rejectCallback(l.e,!0,!0),i=null),a}var s=t("./util"),u=s.errorObj,c=s.isObject,l={}.hasOwnProperty;return function(t,r){if(c(t)){if(t instanceof e)return t;var s=o(t);if(s===u){r&&r._pushContext();var l=e.reject(s.e);return r&&r._popContext(),l}if("function"==typeof s){if(i(t)){var l=new e(n);return t._then(l._fulfill,l._reject,void 0,l,null),l}return a(t,s,r)}}return t}}},{"./util":36}],34:[function(t,e){e.exports=function(e,n,r){function o(t){this.handle=t}function i(t){return clearTimeout(this.handle),t}function a(t){throw clearTimeout(this.handle),t}var s=t("./util"),u=e.TimeoutError;o.prototype._resultCancelled=function(){clearTimeout(this.handle)};var c=function(t){return l(+this).thenReturn(t)},l=e.delay=function(t,i){var a,s;return void 0===i?(a=new e(n),s=setTimeout(function(){a._fulfill()},+t),r.cancellation()&&a._setOnCancel(new o(s)),a._captureStackTrace()):(a=e.resolve(i)._then(c,null,null,t,void 0),r.cancellation()&&i instanceof e&&a._setOnCancel(i)),a._setAsyncGuaranteed(),a};e.prototype.delay=function(t){return l(t,this)};var f=function(t,e,n){var r;r="string"==typeof e?new u(e):e instanceof Error?e:new u("operation timed out"),s.markAsOriginatingFromRejection(r),t._attachExtraTrace(r),t._reject(r),null!=n&&n.cancel()};e.prototype.timeout=function(t,e){t=+t;var n,s,u=new o(setTimeout(function(){n.isPending()&&f(n,e,s)},t));return r.cancellation()?(s=this.then(),n=s._then(i,a,void 0,u,void 0),n._setOnCancel(u)):n=this._then(i,a,void 0,u,void 0),n}}},{"./util":36}],35:[function(t,e){e.exports=function(e,n,r,o,i,a){function s(t){setTimeout(function(){throw t},0)}function u(t){var e=r(t);return e!==t&&"function"==typeof t._isDisposable&&"function"==typeof t._getDisposer&&t._isDisposable()&&e._setDisposable(t._getDisposer()),e}function c(t,n){function o(){if(a>=c)return l._fulfill();var i=u(t[a++]);if(i instanceof e&&i._isDisposable()){try{i=r(i._getDisposer().tryDispose(n),t.promise)}catch(t){return s(t)}if(i instanceof e)return i._then(o,s,null,null,null)}o()}var a=0,c=t.length,l=new e(i);return o(),l}function l(t,e,n){this._data=t,this._promise=e,this._context=n}function f(t,e,n){this.constructor$(t,e,n)}function p(t){return l.isDisposer(t)?(this.resources[this.index]._setDisposable(t),t.promise()):t}function h(t){this.length=t,this.promise=null,this[t-1]=null}var d=t("./util"),y=t("./errors").TypeError,v=t("./util").inherits,m=d.errorObj,_=d.tryCatch,g={};l.prototype.data=function(){return this._data},l.prototype.promise=function(){return this._promise},l.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():g},l.prototype.tryDispose=function(t){var e=this.resource(),n=this._context;void 0!==n&&n._pushContext();var r=e===g?null:this.doDispose(e,t);return void 0!==n&&n._popContext(),this._promise._unsetDisposable(),this._data=null,r},l.isDisposer=function(t){return null!=t&&"function"==typeof t.resource&&"function"==typeof t.tryDispose},v(f,l),f.prototype.doDispose=function(t,e){var n=this.data();return n.call(t,t,e)},h.prototype._resultCancelled=function(){for(var t,n=this.length,r=0;r<n;++r)t=this[r],t instanceof e&&t.cancel()},e.using=function(){var t=arguments.length;if(2>t)return n("you must pass at least 2 arguments to Promise.using");var o=arguments[t-1];if("function"!=typeof o)return n("expecting a function but got "+d.classString(o));var i,s=!0;2===t&&Array.isArray(arguments[0])?(i=arguments[0],t=i.length,s=!1):(i=arguments,t--);for(var u,f=new h(t),y=0;y<t;++y){if(u=i[y],l.isDisposer(u)){var v=u;u=u.promise(),u._setDisposable(v)}else{var g=r(u);g instanceof e&&(u=g._then(p,null,null,{resources:f,index:y},void 0))}f[y]=u}for(var b=Array(f.length),y=0;y<b.length;++y)b[y]=e.resolve(f[y]).reflect();var w=e.all(b).then(function(t){for(var e,n=0;n<t.length;++n){if(e=t[n],e.isRejected())return m.e=e.error(),m;if(!e.isFulfilled())return void w.cancel();t[n]=e.value()}x._pushContext(),o=_(o);var r=s?o.apply(void 0,t):o(t),i=x._popContext();return a.checkForgottenReturns(r,i,"Promise.using",x),r}),x=w.lastly(function(){var t=new e.PromiseInspection(w);return c(f,t)});return f.promise=x,x._setOnCancel(f),x},e.prototype._setDisposable=function(t){this._bitField|=131072,this._disposer=t},e.prototype._isDisposable=function(){return 0<(131072&this._bitField)},e.prototype._getDisposer=function(){return this._disposer},e.prototype._unsetDisposable=function(){this._bitField&=-131073,this._disposer=void 0},e.prototype.disposer=function(t){if("function"==typeof t)return new f(t,this,o());throw new y}}},{"./errors":12,"./util":36}],36:[function(t,e,o){function i(){try{var t=T;return T=null,t.apply(this,arguments)}catch(t){return A.e=t,A}}function a(t){return T=t,i}function s(t){return null==t||!0===t||!1===t||"string"==typeof t||"number"==typeof t}function u(t){return"function"==typeof t||"object"===("undefined"==typeof t?"undefined":c(t))&&null!==t}function l(t){return s(t)?new Error(g(t)):t}function f(t,e){var n,r=t.length,o=Array(r+1);for(n=0;n<r;++n)o[n]=t[n];return o[n]=e,o}function p(t,e,n){if(!P.isES5)return{}.hasOwnProperty.call(t,e)?t[e]:void 0;var r=Object.getOwnPropertyDescriptor(t,e);return null!=r?null==r.get&&null==r.set?r.value:n:void 0}function h(t,e,n){return s(t)?t:(P.defineProperty(t,e,{value:n,configurable:!0,enumerable:!1,writable:!0}),t)}function d(t){throw t}function y(t){try{if("function"==typeof t){var e=P.names(t.prototype),n=P.isES5&&1<e.length,r=0<e.length&&(1!==e.length||"constructor"!==e[0]),o=D.test(t+"")&&0<P.names(t).length;if(n||r||o)return!0}return!1}catch(t){return!1}}function v(t){function e(){}e.prototype=t;for(var n=8;n--;)new e;return t}function m(t){return M.test(t)}function _(t,e,n){for(var r=Array(t),o=0;o<t;++o)r[o]=e+o+n;return r}function g(t){try{return t+""}catch(t){return"[no string representation]"}}function b(t){return t instanceof Error||null!==t&&"object"===("undefined"==typeof t?"undefined":c(t))&&"string"==typeof t.message&&"string"==typeof t.name}function w(t){try{h(t,"isOperational",!0)}catch(t){}}function x(t){return null!=t&&(t instanceof Error.__BluebirdErrorTypes__.OperationalError||!0===t.isOperational)}function j(t){return b(t)&&P.propertyIsWritable(t,"stack")}function E(t){return{}.toString.call(t)}function O(t,e,n){for(var r,o=P.names(t),i=0;i<o.length;++i)if(r=o[i],n(r))try{P.defineProperty(e,r,P.getDescriptor(t,r))}catch(t){}}function S(t){return q?n.env[t]:void 0}function C(){if("function"==typeof Promise)try{var t=new Promise(function(){});if("[object Promise]"==={}.toString.call(t))return Promise}catch(t){}}function k(t,e){return t.bind(e)}var T,P=t("./es5"),N="undefined"==typeof navigator,A={e:{}},I="undefined"==typeof self?"undefined"==typeof window?"undefined"==typeof r?void 0===this?null:this:r:window:self,F=function(t,e){function n(){for(var n in this.constructor=t,this.constructor$=e,e.prototype)r.call(e.prototype,n)&&"$"!==n.charAt(n.length-1)&&(this[n+"$"]=e.prototype[n])}var r={}.hasOwnProperty;return n.prototype=e.prototype,t.prototype=new n,t.prototype},R=function(){
var t=[Array.prototype,Object.prototype,Function.prototype],e=function(e){for(var n=0;n<t.length;++n)if(t[n]===e)return!0;return!1};if(P.isES5){var n=Object.getOwnPropertyNames;return function(t){for(var r=[],o=Object.create(null);null!=t&&!e(t);){var i;try{i=n(t)}catch(t){return r}for(var a,s=0;s<i.length;++s)if(a=i[s],!o[a]){o[a]=!0;var u=Object.getOwnPropertyDescriptor(t,a);null!=u&&null==u.get&&null==u.set&&r.push(a)}t=P.getPrototypeOf(t)}return r}}var r={}.hasOwnProperty;return function(n){if(e(n))return[];var o=[];t:for(var i in n)if(r.call(n,i))o.push(i);else{for(var a=0;a<t.length;++a)if(r.call(t[a],i))continue t;o.push(i)}return o}}(),D=/this\s*\.\s*\S+\s*=/,M=/^[a-z$_][a-z$_0-9]*$/i,V=function(){return"stack"in new Error?function(t){return j(t)?t:new Error(g(t))}:function(t){if(j(t))return t;try{throw new Error(g(t))}catch(t){return t}}}(),L=function(t){return P.isArray(t)?t:null};if("undefined"!=typeof Symbol&&Symbol.iterator){var U="function"==typeof Array.from?function(t){return Array.from(t)}:function(t){for(var e,n=[],r=t[Symbol.iterator]();!(e=r.next()).done;)n.push(e.value);return n};L=function(t){return P.isArray(t)?t:null!=t&&"function"==typeof t[Symbol.iterator]?U(t):null}}var z="undefined"!=typeof n&&"[object process]"===E(n).toLowerCase(),q="undefined"!=typeof n&&"undefined"!=typeof n.env,B={isClass:y,isIdentifier:m,inheritedDataKeys:R,getDataPropertyOrDefault:p,thrower:d,isArray:P.isArray,asArray:L,notEnumerableProp:h,isPrimitive:s,isObject:u,isError:b,canEvaluate:N,errorObj:A,tryCatch:a,inherits:F,withAppended:f,maybeWrapAsError:l,toFastProperties:v,filledRange:_,toString:g,canAttachTrace:j,ensureErrorObject:V,originatesFromRejection:x,markAsOriginatingFromRejection:w,classString:E,copyDescriptors:O,hasDevTools:"undefined"!=typeof chrome&&chrome&&"function"==typeof chrome.loadTimes,isNode:z,hasEnvVariables:q,env:S,global:I,getNativePromise:C,domainBind:k};B.isRecentNode=B.isNode&&function(){var t=n.versions.node.split(".").map(Number);return 0===t[0]&&10<t[1]||0<t[0]}(),B.isNode&&B.toFastProperties(n);try{throw new Error}catch(t){B.lastLineError=t}e.exports=B},{"./es5":13}]},{},[4])(4)}),"undefined"!=typeof window&&null!==window?window.P=window.Promise:"undefined"!=typeof self&&null!==self&&(self.P=self.Promise)}).call(e,n(0),n(21),n(109).setImmediate)},function(t){"use strict";var e,n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e=function(){return this}();try{e=e||Function("return this")()||(0,eval)("this")}catch(t){"object"===("undefined"==typeof window?"undefined":n(window))&&(e=window)}t.exports=e},function(t){"use strict";t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],!t.children&&(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){"use strict";var r=n(61),o=n(35);t.exports=function(t){return null!=t&&o(t.length)&&!r(t)}},function(t,e,n){"use strict";function r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}var o=n(131),i=n(132),a=n(133),s=n(134),u=n(135);r.prototype.clear=o,r.prototype.delete=i,r.prototype.get=a,r.prototype.has=s,r.prototype.set=u,t.exports=r},function(t,e,n){"use strict";var r=n(13);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},function(t,e,n){"use strict";var r=n(7),o=r(Object,"create");t.exports=o},function(t,e,n){"use strict";var r=n(153);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},function(t,e,n){"use strict";var r=n(42);t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-(1/0)?"-0":e}},function(t){"use strict";function e(t){return function(){return t}}var n=function(){};n.thatReturns=e,n.thatReturnsFalse=e(!1),n.thatReturnsTrue=e(!0),n.thatReturnsNull=e(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(t){return t},t.exports=n},function(t,e,n){"use strict";(function(e){var n=function(){};if("production"!==e.env.NODE_ENV){var r=function(t){for(var e=arguments.length,n=Array(1<e?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+t.replace(/%s/g,function(){return n[o++]});"undefined"!=typeof console&&console.warn(i);try{throw new Error(i)}catch(t){}};n=function(t,e){if(void 0===e)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(!t){for(var n=arguments.length,o=Array(2<n?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];r.apply(void 0,[e].concat(o))}}}t.exports=n}).call(e,n(0))},function(t,e,n){"use strict";(function(e){function r(t){var e=Function.prototype.toString,n=Object.prototype.hasOwnProperty,r=RegExp("^"+e.call(n).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");try{var o=e.call(t);return r.test(o)}catch(t){return!1}}function o(t){var e=c(t);if(e){var n=e.childIDs;l(t),n.forEach(o)}}function i(t,e,n){return"\n in "+(t||"Unknown")+(e?" (at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+")":n?" (created by "+n+")":"")}function a(t){return null==t?"#empty":"string"==typeof t||"number"==typeof t?"#text":"string"==typeof t.type?t.type:t.type.displayName||t.type.name||"Unknown"}function s(t){var n,r=k.getDisplayName(t),o=k.getElement(t),a=k.getOwnerID(t);return a&&(n=k.getDisplayName(a)),"production"===e.env.NODE_ENV?void 0:g(o,"ReactComponentTreeHook: Missing React element for debugID %s when building stack",t),i(r,o&&o._source,n)}var u,c,l,f,p,h,d,y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v=n(8),m=n(18),_=n(4),g=n(3),b="function"==typeof Array.from&&"function"==typeof Map&&r(Map)&&null!=Map.prototype&&"function"==typeof Map.prototype.keys&&r(Map.prototype.keys)&&"function"==typeof Set&&r(Set)&&null!=Set.prototype&&"function"==typeof Set.prototype.keys&&r(Set.prototype.keys);if(b){var w=new Map,x=new Set;u=function(t,e){w.set(t,e)},c=function(t){return w.get(t)},l=function(t){w.delete(t)},f=function(){return Array.from(w.keys())},p=function(t){x.add(t)},h=function(t){x.delete(t)},d=function(){return Array.from(x.keys())}}else{var j={},E={},O=function(t){return"."+t},S=function(t){return parseInt(t.substr(1),10)};u=function(t,e){var n=O(t);j[n]=e},c=function(t){var e=O(t);return j[e]},l=function(t){var e=O(t);delete j[e]},f=function(){return Object.keys(j).map(S)},p=function(t){var e=O(t);E[e]=!0},h=function(t){var e=O(t);delete E[e]},d=function(){return Object.keys(E).map(S)}}var C=[],k={onSetChildren:function(t,n){var r=c(t);r?void 0:"production"===e.env.NODE_ENV?v("144"):_(!1,"Item must have been set"),r.childIDs=n;for(var o=0;o<n.length;o++){var i=n[o],a=c(i);a?void 0:"production"===e.env.NODE_ENV?v("140"):_(!1,"Expected hook events to fire for the child before its parent includes it in onSetChildren()."),null!=a.childIDs||"object"!==y(a.element)||null==a.element?void 0:"production"===e.env.NODE_ENV?v("141"):_(!1,"Expected onSetChildren() to fire for a container child before its parent includes it in onSetChildren()."),a.isMounted?void 0:"production"===e.env.NODE_ENV?v("71"):_(!1,"Expected onMountComponent() to fire for the child before its parent includes it in onSetChildren()."),null==a.parentID&&(a.parentID=t),a.parentID===t?void 0:"production"===e.env.NODE_ENV?v("142",i,a.parentID,t):_(!1,"Expected onBeforeMountComponent() parent and onSetChildren() to be consistent (%s has parents %s and %s).",i,a.parentID,t)}},onBeforeMountComponent:function(t,e,n){u(t,{element:e,parentID:n,text:null,childIDs:[],isMounted:!1,updateCount:0})},onBeforeUpdateComponent:function(t,e){var n=c(t);n&&n.isMounted&&(n.element=e)},onMountComponent:function(t){var n=c(t);n?void 0:"production"===e.env.NODE_ENV?v("144"):_(!1,"Item must have been set"),n.isMounted=!0;var r=0===n.parentID;r&&p(t)},onUpdateComponent:function(t){var e=c(t);e&&e.isMounted&&e.updateCount++},onUnmountComponent:function(t){var e=c(t);if(e){e.isMounted=!1;var n=0===e.parentID;n&&h(t)}C.push(t)},purgeUnmountedComponents:function(){if(!k._preventPurging){for(var t,e=0;e<C.length;e++)t=C[e],o(t);C.length=0}},isMounted:function(t){var e=c(t);return!!e&&e.isMounted},getCurrentStackAddendum:function(t){var e="";if(t){var n=a(t),r=t._owner;e+=i(n,t._source,r&&r.getName())}var o=m.current,s=o&&o._debugID;return e+=k.getStackAddendumByID(s)},getStackAddendumByID:function(t){for(var e="";t;)e+=s(t),t=k.getParentID(t);return e},getChildIDs:function(t){var e=c(t);return e?e.childIDs:[]},getDisplayName:function(t){var e=k.getElement(t);return e?a(e):null},getElement:function(t){var e=c(t);return e?e.element:null},getOwnerID:function(t){var e=k.getElement(t);return e&&e._owner?e._owner._debugID:null},getParentID:function(t){var e=c(t);return e?e.parentID:null},getSource:function(t){var e=c(t),n=e?e.element:null,r=null==n?null:n._source;return r},getText:function(t){var e=k.getElement(t);return"string"==typeof e?e:"number"==typeof e?""+e:null},getUpdateCount:function(t){var e=c(t);return e?e.updateCount:0},getRootIDs:d,getRegisteredIDs:f,pushNonStandardWarningStack:function(t,e){if("function"==typeof console.reactStack){var n=[],r=m.current,o=r&&r._debugID;try{for(t&&n.push({name:o?k.getDisplayName(o):null,fileName:e?e.fileName:null,lineNumber:e?e.lineNumber:null});o;){var i=k.getElement(o),a=k.getParentID(o),s=k.getOwnerID(o),u=s?k.getDisplayName(s):null,c=i&&i._source;n.push({name:u,fileName:c?c.fileName:null,lineNumber:c?c.lineNumber:null}),o=a}}catch(t){}console.reactStack(n)}},popNonStandardWarningStack:function(){"function"!=typeof console.reactStackEnd||console.reactStackEnd()}};t.exports=k}).call(e,n(0))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(19),o=n(111),i=function(){function t(t,e){this._rgb=t,this._population=e}return t.applyFilter=function(t,e){return"function"==typeof e?o(t,function(t){var n=t.r,r=t.g,o=t.b;return e(n,r,o,255)}):t},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}),t.prototype.getRgb=function(){return this._rgb},t.prototype.getHsl=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},t.prototype.getPopulation=function(){return this._population},t.prototype.getHex=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},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},t.prototype.getTitleTextColor=function(){return 200>this.getYiq()?"#fff":"#000"},t.prototype.getBodyTextColor=function(){return 150>this.getYiq()?"#fff":"#000"},t}();e.Swatch=i},function(t,e,n){"use strict";(function(t){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=n(1),i=n(121),a="object"==r(e)&&e&&!e.nodeType&&e,s=a&&"object"==r(t)&&t&&!t.nodeType&&t,u=s&&s.exports===a,c=u?o.Buffer:void 0,l=c?c.isBuffer:void 0;t.exports=l||i}).call(e,n(22)(t))},function(t){"use strict";var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){return n=null==n?9007199254740991:n,!!n&&("number"==typeof t||e.test(t))&&-1<t&&0==t%1&&t<n}},function(t){"use strict";t.exports=function(t){return"number"==typeof t&&-1<t&&0==t%1&&t<=9007199254740991}},function(t){"use strict";var e=Object.prototype;t.exports=function(t){var n=t&&t.constructor,r="function"==typeof n&&n.prototype||e;return t===r}},function(t,e,n){"use strict";function r(t){var e=this.__data__=new o(t);this.size=e.size}var o=n(24),i=n(136),a=n(137),s=n(138),u=n(139),c=n(140);r.prototype.clear=i,r.prototype.delete=a,r.prototype.get=s,r.prototype.has=u,r.prototype.set=c,t.exports=r},function(t,e,n){"use strict";var r=n(7),o=n(1),i=r(o,"Map");t.exports=i},function(t,e,n){"use strict";function r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}var o=n(145),i=n(152),a=n(154),s=n(155),u=n(156);r.prototype.clear=o,r.prototype.delete=i,r.prototype.get=a,r.prototype.has=s,r.prototype.set=u,t.exports=r},function(t,e,n){"use strict";var r=n(55),o=n(71),i=Object.prototype,a=i.propertyIsEnumerable,s=Object.getOwnPropertySymbols,u=s?function(t){return null==t?[]:(t=Object(t),r(s(t),function(e){return a.call(t,e)}))}:o;t.exports=u},function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=n(2),i=n(42),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;t.exports=function(t,e){if(o(t))return!1;var n="undefined"==typeof t?"undefined":r(t);return"number"==n||"symbol"==n||"boolean"==n||null==t||i(t)||s.test(t)||!a.test(t)||null!=e&&t in Object(e)}},function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=n(10),i=n(12);t.exports=function(t){return"symbol"==("undefined"==typeof t?"undefined":r(t))||i(t)&&"[object Symbol]"==o(t)}},function(t){"use strict";t.exports=function(t){return t}},function(t,e,n){"use strict";var r=n(56),o=n(191),i=n(23);t.exports=function(t){return i(t)?r(t,!0):o(t)}},function(t,e,n){"use strict";var r=n(65);t.exports=function(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}},function(t){"use strict";t.exports=function(t,e,n,r){var o=-1,i=null==t?0:t.length;for(r&&i&&(n=t[++o]);++o<i;)n=e(n,t[o],o,t);return n}},function(t,e,n){"use strict";(function(e){function r(t,e,n){this.props=t,this.context=e,this.refs=f,this.updater=n||c}function o(t,e,n){this.props=t,this.context=e,this.refs=f,this.updater=n||c}function i(){}var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s=n(8),u=n(16),c=n(48),l=n(17),f=n(49),p=n(4),h=n(30);if(r.prototype.isReactComponent={},r.prototype.setState=function(t,n){"object"===("undefined"==typeof t?"undefined":a(t))||"function"==typeof t||null==t?void 0:"production"===e.env.NODE_ENV?s("85"):p(!1,"setState(...): takes an object of state variables to update or a function which returns an object of state variables."),this.updater.enqueueSetState(this,t),n&&this.updater.enqueueCallback(this,n,"setState")},r.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this),t&&this.updater.enqueueCallback(this,t,"forceUpdate")},"production"!==e.env.NODE_ENV){var d={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},y=function(t,e){l&&Object.defineProperty(r.prototype,t,{get:function(){h(!1,"%s(...) is deprecated in plain JavaScript React classes. %s",e[0],e[1])}})};for(var v in d)d.hasOwnProperty(v)&&y(v,d[v])}i.prototype=r.prototype,o.prototype=new i,o.prototype.constructor=o,u(o.prototype,r.prototype),o.prototype.isPureReactComponent=!0,t.exports={Component:r,PureComponent:o}}).call(e,n(0))},function(t,e,n){"use strict";(function(e){function r(t,n){if("production"!==e.env.NODE_ENV){var r=t.constructor;"production"===e.env.NODE_ENV?void 0:o(!1,"%s(...): Can only update a mounted or mounting component. This usually means you called %s() on an unmounted component. This is a no-op. Please check the code for the %s component.",n,n,r&&(r.displayName||r.name)||"ReactClass")}}var o=n(3);t.exports={isMounted:function(){return!1},enqueueCallback:function(){},enqueueForceUpdate:function(t){r(t,"forceUpdate")},enqueueReplaceState:function(t){r(t,"replaceState")},enqueueSetState:function(t){r(t,"setState")}}}).call(e,n(0))},function(t,e,n){"use strict";(function(e){var n={};"production"!==e.env.NODE_ENV&&Object.freeze(n),t.exports=n}).call(e,n(0))},function(t){"use strict";var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;t.exports=e},function(t){"use strict";var e="function"==typeof Symbol&&Symbol.iterator;t.exports=function(t){var n=t&&(e&&t[e]||t["@@iterator"]);if("function"==typeof n)return n}},function(t,e,n){"use strict";(function(e){function r(){if(l.current){var t=l.current.getName();if(t)return" Check the render method of `"+t+"`."}return""}function o(t){if(null!==t&&void 0!==t&&void 0!==t.__source){var e=t.__source,n=e.fileName.replace(/^.*[\\\/]/,""),r=e.lineNumber;return" Check your code at "+n+":"+r+"."}return""}function i(t){var e=r();if(!e){var n="string"==typeof t?t:t.displayName||t.name;n&&(e=" Check the top-level render call using <"+n+">.")}return e}function a(t,n){if(t._store&&!t._store.validated&&null==t.key){t._store.validated=!0;var r=_.uniqueKey||(_.uniqueKey={}),o=i(n);if(!r[o]){r[o]=!0;var a="";t&&t._owner&&t._owner!==l.current&&(a=" It was passed a child from "+t._owner.getName()+"."),"production"===e.env.NODE_ENV?void 0:v(!1,'Each child in an array or iterator should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.%s',o,a,f.getCurrentStackAddendum(t))}}}function s(t,e){if("object"===("undefined"==typeof t?"undefined":c(t)))if(Array.isArray(t))for(var n,r=0;r<t.length;r++)n=t[r],p.isValidElement(n)&&a(n,e);else if(p.isValidElement(t))t._store&&(t._store.validated=!0);else if(t){var o=y(t);if(o&&o!==t.entries)for(var i,s=o.call(t);!(i=s.next()).done;)p.isValidElement(i.value)&&a(i.value,e)}}function u(t){var n=t.type;if("function"==typeof n){var r=n.displayName||n.name;n.propTypes&&h(n.propTypes,t.props,"prop",r,t,null),"function"==typeof n.getDefaultProps&&("production"===e.env.NODE_ENV?void 0:v(n.getDefaultProps.isReactClassApproved,"getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."))}}var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l=n(18),f=n(31),p=n(5),h=n(96),d=n(17),y=n(51),v=n(3),m=n(30),_={},g={createElement:function(t,n){var i="string"==typeof t||"function"==typeof t;if(!i&&"function"!=typeof t&&"string"!=typeof t){var a="";(void 0===t||"object"===("undefined"==typeof t?"undefined":c(t))&&null!==t&&0===Object.keys(t).length)&&(a+=" You likely forgot to export your component from the file it's defined in.");var l=o(n);a+=l?l:r(),a+=f.getCurrentStackAddendum();var h=null!==n&&void 0!==n&&void 0!==n.__source?n.__source:null;f.pushNonStandardWarningStack(!0,h),"production"===e.env.NODE_ENV?void 0:v(!1,"React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",null==t?t:"undefined"==typeof t?"undefined":c(t),a),f.popNonStandardWarningStack()}var d=p.createElement.apply(this,arguments);if(null==d)return d;if(i)for(var y=2;y<arguments.length;y++)s(arguments[y],t);return u(d),d},createFactory:function(t){var n=g.createElement.bind(null,t);return n.type=t,"production"!==e.env.NODE_ENV&&d&&Object.defineProperty(n,"type",{enumerable:!1,get:function(){return m(!1,"Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:t}),t}}),n},cloneElement:function(){for(var t=p.cloneElement.apply(this,arguments),e=2;e<arguments.length;e++)s(arguments[e],t.type);return u(t),t}};t.exports=g}).call(e,n(0))},function(t){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(32),o=n(20),i=n(77),a=n(194),s=n(19),u=n(217),c=n(221),l=n(223),f=function(){function t(e,n){this._src=e,this.opts=i({},n,t.DefaultOpts),this.opts.combinedFilter=l.combineFilters(this.opts.filters)}return t.from=function(t){return new a.default(t)},t.prototype._process=function(t,e){var n=e.quantizer,i=e.generator;return t.scaleDown(e),t.applyFilter(e.combinedFilter).then(function(t){return n(t.data,e)}).then(function(t){return r.Swatch.applyFilter(t,e.combinedFilter)}).then(function(t){return o.resolve(i(t))})},t.prototype.palette=function(){return this.swatches()},t.prototype.swatches=function(){return this._palette},t.prototype.getPalette=function(t){var e=this,n=new this.opts.ImageClass;return n.load(this._src).then(function(t){return e._process(t,e.opts)}).tap(function(t){return e._palette=t}).finally(function(){return n.remove()}).asCallback(t)},t.Builder=a.default,t.Quantizer=u,t.Generator=c,t.Filter=l,t.Util=s,t.DefaultOpts={colorCount:64,quality:5,generator:c.Default,ImageClass:null,quantizer:u.MMCQ,filters:[l.Default]},t}();e.default=f},function(t){"use strict";t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var a=t[n];e(a,n,t)&&(i[o++]=a)}return i}},function(t,e,n){"use strict";var r=n(117),o=n(57),i=n(2),a=n(33),s=n(34),u=n(59),c=Object.prototype,l=c.hasOwnProperty;t.exports=function(t,e){var n=i(t),c=!n&&o(t),f=!n&&!c&&a(t),p=!n&&!c&&!f&&u(t),h=n||c||f||p,d=h?r(t.length,String):[],y=d.length;for(var v in t)(e||l.call(t,v))&&!(h&&("length"==v||f&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,y)))&&d.push(v);return d}},function(t,e,n){"use strict";var r=n(118),o=n(12),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(t){return o(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=u},function(t,e,n){"use strict";(function(e){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r="object"==("undefined"==typeof e?"undefined":n(e))&&e&&e.Object===Object&&e;t.exports=r}).call(e,n(21))},function(t,e,n){"use strict";var r=n(122),o=n(123),i=n(124),a=i&&i.isTypedArray,s=a?o(a):r;t.exports=s},function(t){"use strict";t.exports=function(t,e){return function(n){return t(e(n))}}},function(t,e,n){"use strict";var r=n(10),o=n(6);t.exports=function(t){if(!o(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t){"use strict";var e=Function.prototype,n=e.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,n){"use strict";function r(t,e,n,a,s){return!(t!==e)||(null!=t&&null!=e&&(i(t)||i(e))?o(t,e,n,a,r,s):t!==t&&e!==e)}var o=n(157),i=n(12);t.exports=r},function(t,e,n){"use strict";var r=n(158),o=n(161),i=n(162);t.exports=function(t,e,n,a,s,u){var c=1&n,l=t.length,f=e.length;if(l!=f&&!(c&&f>l))return!1;var p=u.get(t);if(p&&u.get(e))return p==e;var h=-1,d=!0,y=2&n?new r:void 0;for(u.set(t,e),u.set(e,t);++h<l;){var v=t[h],m=e[h];if(a)var _=c?a(m,v,h,e,t,u):a(v,m,h,t,e,u);if(void 0!==_){if(_)continue;d=!1;break}if(y){if(!o(e,function(t,e){if(!i(y,e)&&(v===t||s(v,t,n,a,u)))return y.push(e)})){d=!1;break}}else if(v!==m&&!s(v,m,n,a,u)){d=!1;break}}return u.delete(t),u.delete(e),d}},function(t,e,n){"use strict";var r=n(1),o=r.Uint8Array;t.exports=o},function(t){"use strict";t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}},function(t){"use strict";t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}},function(t,e,n){"use strict";var r=n(69),o=n(40),i=n(9);t.exports=function(t){return r(t,i,o)}},function(t,e,n){"use strict";var r=n(70),o=n(2);t.exports=function(t,e,n){var i=e(t);return o(t)?i:r(i,n(t))}},function(t){"use strict";t.exports=function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}},function(t){"use strict";t.exports=function(){return[]}},function(t,e,n){"use strict";var r=n(165),o=n(38),i=n(166),a=n(167),s=n(168),u=n(10),c=n(62),l="[object Map]",f="[object Promise]",p="[object Set]",h="[object WeakMap]",d="[object DataView]",y=c(r),v=c(o),m=c(i),_=c(a),g=c(s),b=u;(r&&b(new r(new ArrayBuffer(1)))!=d||o&&b(new o)!=l||i&&b(i.resolve())!=f||a&&b(new a)!=p||s&&b(new s)!=h)&&(b=function(t){var e=u(t),n="[object Object]"==e?t.constructor:void 0,r=n?c(n):"";if(r)switch(r){case y:return d;case v:return l;case m:return f;case _:return p;case g:return h}return e}),t.exports=b},function(t,e,n){"use strict";var r=n(6);t.exports=function(t){return t===t&&!r(t)}},function(t){"use strict";t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},function(t,e,n){"use strict";var r=n(76),o=n(28);t.exports=function(t,e){e=r(e,t);for(var n=0,i=e.length;null!=t&&n<i;)t=t[o(e[n++])];return n&&n==i?t:void 0}},function(t,e,n){"use strict";var r=n(2),o=n(41),i=n(172),a=n(14);t.exports=function(t,e){return r(t)?t:o(t,e)?[t]:i(a(t))}},function(t,e,n){"use strict";var r=n(78),o=n(183),i=n(82),a=n(193),s=i(function(t){return t.push(void 0,a),r(o,void 0,t)});t.exports=s},function(t){"use strict";t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},function(t,e,n){"use strict";var r=n(80),o=n(13),i=Object.prototype,a=i.hasOwnProperty;t.exports=function(t,e,n){var i=t[e];a.call(t,e)&&o(i,n)&&(void 0!==n||e in t)||r(t,e,n)}},function(t,e,n){"use strict";var r=n(81);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},function(t,e,n){"use strict";var r=n(7),o=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},function(t,e,n){"use strict";var r=n(43),o=n(185),i=n(186);t.exports=function(t,e){return i(o(t,e,r),t+"")}},function(t,e,n){"use strict";var r=n(70),o=n(84),i=n(40),a=n(71),s=Object.getOwnPropertySymbols,u=s?function(t){for(var e=[];t;)r(e,i(t)),t=o(t);return e}:a;t.exports=u},function(t,e,n){"use strict";var r=n(60),o=r(Object.getPrototypeOf,Object);t.exports=o},function(t,e){(function(e){t.exports=e}).call(e,{})},function(t){"use strict";var e=/[\u200d\ud800-\udfff\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff\ufe0e\ufe0f]/;t.exports=function(t){return e.test(t)}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(88);Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r(o).default}})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n,r=0;r<e.length;r++)n=e[r],n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=n(89),c=(r(u),n(107)),l=r(c),f=function(t){function e(){var t,n,r,a;o(this,e);for(var s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];return n=r=i(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(u))),r.state={palette:{},loaded:!1,error:!1},r.updatePalette=function(t){return(0,l.default)(t).then(function(t){return r.setState({palette:t,loaded:!0})}).catch(function(t){console.error(t),r.setState({palette:{},loaded:!0,error:t})})},a=n,i(r,a)}return a(e,t),s(e,[{key:"componentDidMount",value:function(){return this.updatePalette(this.props.image)}},{key:"componentWillReceiveProps",value:function(t){if(t.image!==this.props.image)return this.updatePalette(t.image)}},{key:"render",value:function(){var t=this.props.children,e=this.state,n=e.palette,r=e.loaded;return r&&t(n)}}]),e}(u.PureComponent);e.default=f},function(t,e,n){"use strict";t.exports=n(90)},function(t,e,n){"use strict";(function(e){var r=n(16),o=n(47),i=n(91),a=n(95),s=n(5),u=n(99),c=n(103),l=n(104),f=n(106),p=s.createElement,h=s.createFactory,d=s.cloneElement;if("production"!==e.env.NODE_ENV){var y=n(30),v=n(17),m=n(52),_=!1;p=m.createElement,h=m.createFactory,d=m.cloneElement}var g=r,b=function(t){return t};if("production"!==e.env.NODE_ENV){var w=!1,x=!1;g=function(){return y(w,"React.__spread is deprecated and should not be used. Use Object.assign directly or another helper function with similar semantics. You may be seeing this warning due to your compiler. See https://fb.me/react-spread-deprecation for more details."),w=!0,r.apply(null,arguments)},b=function(t){return y(x,"React.createMixin is deprecated and should not be used. In React v16.0, it will be removed. You can use this mixin directly instead. See https://fb.me/createmixin-was-never-implemented for more info."),x=!0,t}}var j={Children:{map:i.map,forEach:i.forEach,count:i.count,toArray:i.toArray,only:f},Component:o.Component,PureComponent:o.PureComponent,createElement:p,cloneElement:d,isValidElement:s.isValidElement,PropTypes:u,createClass:l,createFactory:h,createMixin:b,DOM:a,version:c,__spread:g};if("production"!==e.env.NODE_ENV){var E=!1;v&&(Object.defineProperty(j,"PropTypes",{get:function(){return y(_,"Accessing PropTypes via the main React package is deprecated, and will be removed in React v16.0. Use the latest available v15.* prop-types package from npm instead. For info on usage, compatibility, migration and more, see https://fb.me/prop-types-docs"),_=!0,u}}),Object.defineProperty(j,"createClass",{get:function(){return y(E,"Accessing createClass via the main React package is deprecated, and will be removed in React v16.0. Use a plain JavaScript class instead. If you're not yet ready to migrate, create-react-class v15.* is available on npm as a temporary, drop-in replacement. For more info see https://fb.me/react-create-class"),E=!0,l}})),j.DOM={};var O=!1;Object.keys(a).forEach(function(t){j.DOM[t]=function(){return O||(y(!1,"Accessing factories like React.DOM.%s has been deprecated and will be removed in v16.0+. Use the react-dom-factories package instead. Version 1.0 provides a drop-in replacement. For more info, see https://fb.me/react-dom-factories",t),O=!0),a[t].apply(a,arguments)}})}t.exports=j}).call(e,n(0))},function(t,e,n){"use strict";function r(t){return(""+t).replace(v,"$&/")}function o(t,e){this.func=t,this.context=e,this.count=0}function i(t,e){var n=t.func,r=t.context;n.call(r,e,t.count++)}function a(t,e,n,r){this.result=t,this.keyPrefix=e,this.func=n,this.context=r,this.count=0}function s(t,e,n){var o=t.result,i=t.keyPrefix,a=t.func,s=t.context,c=a.call(s,e,t.count++);Array.isArray(c)?u(c,o,n,p.thatReturnsArgument):null!=c&&(f.isValidElement(c)&&(c=f.cloneAndReplaceKey(c,i+(!c.key||e&&e.key===c.key?"":r(c.key)+"/")+n)),
o.push(c))}function u(t,e,n,o,i){var u="";null!=n&&(u=r(n)+"/");var c=a.getPooled(e,u,o,i);h(t,s,c),a.release(c)}function c(){return null}var l=n(92),f=n(5),p=n(29),h=n(93),d=l.twoArgumentPooler,y=l.fourArgumentPooler,v=/\/+/g;o.prototype.destructor=function(){this.func=null,this.context=null,this.count=0},l.addPoolingTo(o,d),a.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},l.addPoolingTo(a,y),t.exports={forEach:function(t,e,n){if(null==t)return t;var r=o.getPooled(e,n);h(t,i,r),o.release(r)},map:function(t,e,n){if(null==t)return t;var r=[];return u(t,r,null,e,n),r},mapIntoWithKeyPrefixInternal:u,count:function(t){return h(t,c,null)},toArray:function(t){var e=[];return u(t,e,null,p.thatReturnsArgument),e}}},function(t,e,n){"use strict";(function(e){var r=n(8),o=n(4),i=function(t){var e=this;if(e.instancePool.length){var n=e.instancePool.pop();return e.call(n,t),n}return new e(t)},a=function(t){var n=this;t instanceof n?void 0:"production"===e.env.NODE_ENV?r("25"):o(!1,"Trying to release an instance into a pool of a different type."),t.destructor(),n.instancePool.length<n.poolSize&&n.instancePool.push(t)};t.exports={addPoolingTo:function(t,e){var n=t;return n.instancePool=[],n.getPooled=e||i,n.poolSize||(n.poolSize=10),n.release=a,n},oneArgumentPooler:i,twoArgumentPooler:function(t,e){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,t,e),r}return new n(t,e)},threeArgumentPooler:function(t,e,n){var r=this;if(r.instancePool.length){var o=r.instancePool.pop();return r.call(o,t,e,n),o}return new r(t,e,n)},fourArgumentPooler:function(t,e,n,r){var o=this;if(o.instancePool.length){var i=o.instancePool.pop();return o.call(i,t,e,n,r),i}return new o(t,e,n,r)}}}).call(e,n(0))},function(t,e,n){"use strict";(function(e){function r(t,e){return t&&"object"===("undefined"==typeof t?"undefined":i(t))&&null!=t.key?f.escape(t.key):e.toString(36)}function o(t,n,v,m){var _="undefined"==typeof t?"undefined":i(t);if(("undefined"===_||"boolean"===_)&&(t=null),null===t||"string"===_||"number"===_||"object"===_&&t.$$typeof===u)return v(m,t,""===n?h+r(t,0):n),1;var g,b,w=0,x=""===n?h:n+d;if(Array.isArray(t))for(var j=0;j<t.length;j++)g=t[j],b=x+r(g,j),w+=o(g,b,v,m);else{var E=c(t);if(E){var O,S=E.call(t);if(E!==t.entries)for(var C=0;!(O=S.next()).done;)g=O.value,b=x+r(g,C++),w+=o(g,b,v,m);else{if("production"!==e.env.NODE_ENV){var k="";if(s.current){var T=s.current.getName();T&&(k=" Check the render method of `"+T+"`.")}"production"===e.env.NODE_ENV?void 0:p(y,"Using Maps as children is not yet fully supported. It is an experimental feature that might be removed. Convert it to a sequence / iterable of keyed ReactElements instead.%s",k),y=!0}for(;!(O=S.next()).done;){var P=O.value;P&&(g=P[1],b=x+f.escape(P[0])+d+r(g,0),w+=o(g,b,v,m))}}}else if("object"===_){var N="";if("production"!==e.env.NODE_ENV&&(N=" If you meant to render a collection of children, use an array instead or wrap the object using createFragment(object) from the React add-ons.",t._isReactElement&&(N=" It looks like you're using an element created by a different version of React. Make sure to use only one copy of React."),s.current)){var A=s.current.getName();A&&(N+=" Check the render method of `"+A+"`.")}var I=t+"";"production"===e.env.NODE_ENV?a("31","[object Object]"===I?"object with keys {"+Object.keys(t).join(", ")+"}":I,N):l(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===I?"object with keys {"+Object.keys(t).join(", ")+"}":I,N)}}return w}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a=n(8),s=n(18),u=n(50),c=n(51),l=n(4),f=n(94),p=n(3),h=".",d=":",y=!1;t.exports=function(t,e,n){return null==t?0:o(t,"",e,n)}}).call(e,n(0))},function(t){"use strict";t.exports={escape:function(t){var e=/[=:]/g,n={"=":"=0",":":"=2"},r=(""+t).replace(e,function(t){return n[t]});return"$"+r},unescape:function(t){var e=/(=0|=2)/g,n={"=0":"=","=2":":"},r="."===t[0]&&"$"===t[1]?t.substring(2):t.substring(1);return(""+r).replace(e,function(t){return n[t]})}}},function(t,e,n){"use strict";(function(e){var r=n(5),o=r.createFactory;if("production"!==e.env.NODE_ENV){var i=n(52);o=i.createFactory}var a={a:o("a"),abbr:o("abbr"),address:o("address"),area:o("area"),article:o("article"),aside:o("aside"),audio:o("audio"),b:o("b"),base:o("base"),bdi:o("bdi"),bdo:o("bdo"),big:o("big"),blockquote:o("blockquote"),body:o("body"),br:o("br"),button:o("button"),canvas:o("canvas"),caption:o("caption"),cite:o("cite"),code:o("code"),col:o("col"),colgroup:o("colgroup"),data:o("data"),datalist:o("datalist"),dd:o("dd"),del:o("del"),details:o("details"),dfn:o("dfn"),dialog:o("dialog"),div:o("div"),dl:o("dl"),dt:o("dt"),em:o("em"),embed:o("embed"),fieldset:o("fieldset"),figcaption:o("figcaption"),figure:o("figure"),footer:o("footer"),form:o("form"),h1:o("h1"),h2:o("h2"),h3:o("h3"),h4:o("h4"),h5:o("h5"),h6:o("h6"),head:o("head"),header:o("header"),hgroup:o("hgroup"),hr:o("hr"),html:o("html"),i:o("i"),iframe:o("iframe"),img:o("img"),input:o("input"),ins:o("ins"),kbd:o("kbd"),keygen:o("keygen"),label:o("label"),legend:o("legend"),li:o("li"),link:o("link"),main:o("main"),map:o("map"),mark:o("mark"),menu:o("menu"),menuitem:o("menuitem"),meta:o("meta"),meter:o("meter"),nav:o("nav"),noscript:o("noscript"),object:o("object"),ol:o("ol"),optgroup:o("optgroup"),option:o("option"),output:o("output"),p:o("p"),param:o("param"),picture:o("picture"),pre:o("pre"),progress:o("progress"),q:o("q"),rp:o("rp"),rt:o("rt"),ruby:o("ruby"),s:o("s"),samp:o("samp"),script:o("script"),section:o("section"),select:o("select"),small:o("small"),source:o("source"),span:o("span"),strong:o("strong"),style:o("style"),sub:o("sub"),summary:o("summary"),sup:o("sup"),table:o("table"),tbody:o("tbody"),td:o("td"),textarea:o("textarea"),tfoot:o("tfoot"),th:o("th"),thead:o("thead"),time:o("time"),title:o("title"),tr:o("tr"),track:o("track"),u:o("u"),ul:o("ul"),var:o("var"),video:o("video"),wbr:o("wbr"),circle:o("circle"),clipPath:o("clipPath"),defs:o("defs"),ellipse:o("ellipse"),g:o("g"),image:o("image"),line:o("line"),linearGradient:o("linearGradient"),mask:o("mask"),path:o("path"),pattern:o("pattern"),polygon:o("polygon"),polyline:o("polyline"),radialGradient:o("radialGradient"),rect:o("rect"),stop:o("stop"),svg:o("svg"),text:o("text"),tspan:o("tspan")};t.exports=a}).call(e,n(0))},function(t,e,n){"use strict";(function(e){var r,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=n(8),a=n(97),s=n(98),u=n(4),c=n(3);"undefined"!=typeof e&&e.env&&"test"===e.env.NODE_ENV&&(r=n(31));var l={};t.exports=function(t,f,p,h,d,y){for(var v in t)if(t.hasOwnProperty(v)){var m;try{"function"==typeof t[v]?void 0:"production"===e.env.NODE_ENV?i("84",h||"React class",a[p],v):u(!1,"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",h||"React class",a[p],v),m=t[v](f,v,h,p,null,s)}catch(t){m=t}if("production"===e.env.NODE_ENV?void 0:c(!m||m instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",h||"React class",a[p],v,"undefined"==typeof m?"undefined":o(m)),m instanceof Error&&!(m.message in l)){l[m.message]=!0;var _="";"production"!==e.env.NODE_ENV&&(!r&&(r=n(31)),null===y?null!==d&&(_=r.getCurrentStackAddendum(d)):_=r.getStackAddendumByID(y)),"production"===e.env.NODE_ENV?void 0:c(!1,"Failed %s type: %s%s",p,m.message,_)}}}}).call(e,n(0))},function(t,e,n){"use strict";(function(e){var n={};"production"!==e.env.NODE_ENV&&(n={prop:"prop",context:"context",childContext:"child context"}),t.exports=n}).call(e,n(0))},function(t){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){"use strict";var r=n(5),o=r.isValidElement,i=n(100);t.exports=i(o)},function(t,e,n){"use strict";var r=n(101);t.exports=function(t){return r(t,!1)}},function(t,e,n){"use strict";(function(e){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=n(29),i=n(4),a=n(3),s=n(53),u=n(102);t.exports=function(t,n){function c(t){var e=t&&(b&&t[b]||t[w]);if("function"==typeof e)return e}function l(t,e){return t===e?0!==t||1/t==1/e:t!==t&&e!==e}function f(t){this.message=t,this.stack=""}function p(t){function r(r,c,l,p,h,d,y){if(p=p||x,d=d||l,y!==s)if(n)i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==e.env.NODE_ENV&&"undefined"!=typeof console){var v=p+":"+l;!o[v]&&3>u&&(a(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",d,p),o[v]=!0,u++)}return null==c[l]?r?new f(null===c[l]?"The "+h+" `"+d+"` is marked as required "+("in `"+p+"`, but its value is `null`."):"The "+h+" `"+d+"` is marked as required in "+("`"+p+"`, but its value is `undefined`.")):null:t(c,l,p,h,d)}if("production"!==e.env.NODE_ENV)var o={},u=0;var c=r.bind(null,!1);return c.isRequired=r.bind(null,!0),c}function h(t){return p(function(e,n,r,o,i){var a=e[n],s=v(a);if(s!==t){var u=m(a);return new f("Invalid "+o+" `"+i+"` of type "+("`"+u+"` supplied to `"+r+"`, expected ")+("`"+t+"`."))}return null})}function d(e){switch("undefined"==typeof e?"undefined":r(e)){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(d);if(null===e||t(e))return!0;var n=c(e);if(!n)return!1;var o,i=n.call(e);if(n!==e.entries){for(;!(o=i.next()).done;)if(!d(o.value))return!1}else for(;!(o=i.next()).done;){var a=o.value;if(a&&!d(a[1]))return!1}return!0;default:return!1}}function y(t,e){return"symbol"===t||"Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol}function v(t){var e="undefined"==typeof t?"undefined":r(t);return Array.isArray(t)?"array":t instanceof RegExp?"object":y(e,t)?"symbol":e}function m(t){if("undefined"==typeof t||null===t)return""+t;var e=v(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function _(t){var e=m(t);return"array"===e||"object"===e?"an "+e:"boolean"===e||"date"===e||"regexp"===e?"a "+e:e}function g(t){return t.constructor&&t.constructor.name?t.constructor.name:x}var b="function"==typeof Symbol&&Symbol.iterator,w="@@iterator",x="<<anonymous>>",j={array:h("array"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:function(){return p(o.thatReturnsNull)}(),arrayOf:function(t){return p(function(e,n,r,o,i){if("function"!=typeof t)return new f("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var a=e[n];if(!Array.isArray(a)){var u=v(a);return new f("Invalid "+o+" `"+i+"` of type "+("`"+u+"` supplied to `"+r+"`, expected an array."))}for(var c,l=0;l<a.length;l++)if(c=t(a,l,r,o,i+"["+l+"]",s),c instanceof Error)return c;return null})},element:function(){return p(function(e,n,r,o,i){var a=e[n];if(!t(a)){var s=v(a);return new f("Invalid "+o+" `"+i+"` of type "+("`"+s+"` supplied to `"+r+"`, expected a single ReactElement."))}return null})}(),instanceOf:function(t){return p(function(e,n,r,o,i){if(!(e[n]instanceof t)){var a=t.name||x,s=g(e[n]);return new f("Invalid "+o+" `"+i+"` of type "+("`"+s+"` supplied to `"+r+"`, expected ")+("instance of `"+a+"`."))}return null})},node:function(){return p(function(t,e,n,r,o){return d(t[e])?null:new f("Invalid "+r+" `"+o+"` supplied to "+("`"+n+"`, expected a ReactNode."))})}(),objectOf:function(t){return p(function(e,n,r,o,i){if("function"!=typeof t)return new f("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var a=e[n],u=v(a);if("object"!==u)return new f("Invalid "+o+" `"+i+"` of type "+("`"+u+"` supplied to `"+r+"`, expected an object."));for(var c in a)if(a.hasOwnProperty(c)){var l=t(a,c,r,o,i+"."+c,s);if(l instanceof Error)return l}return null})},oneOf:function(t){return Array.isArray(t)?p(function(e,n,r,o,i){for(var a=e[n],s=0;s<t.length;s++)if(l(a,t[s]))return null;var u=JSON.stringify(t);return new f("Invalid "+o+" `"+i+"` of value `"+a+"` "+("supplied to `"+r+"`, expected one of "+u+"."))}):("production"===e.env.NODE_ENV?void 0:a(!1,"Invalid argument supplied to oneOf, expected an instance of array."),o.thatReturnsNull)},oneOfType:function(t){if(!Array.isArray(t))return"production"===e.env.NODE_ENV?void 0:a(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),o.thatReturnsNull;for(var n,r=0;r<t.length;r++)if(n=t[r],"function"!=typeof n)return a(!1,"Invalid argument supplid to oneOfType. Expected an array of check functions, but received %s at index %s.",_(n),r),o.thatReturnsNull;return p(function(e,n,r,o,i){for(var a,u=0;u<t.length;u++)if(a=t[u],null==a(e,n,r,o,i,s))return null;return new f("Invalid "+o+" `"+i+"` supplied to "+("`"+r+"`."))})},shape:function(t){return p(function(e,n,r,o,i){var a=e[n],u=v(a);if("object"!==u)return new f("Invalid "+o+" `"+i+"` of type `"+u+"` "+("supplied to `"+r+"`, expected `object`."));for(var c in t){var l=t[c];if(l){var p=l(a,c,r,o,i+"."+c,s);if(p)return p}}return null})}};return f.prototype=Error.prototype,j.checkPropTypes=u,j.PropTypes=j,j}}).call(e,n(0))},function(t,e,n){"use strict";(function(e){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};if("production"!==e.env.NODE_ENV)var o=n(4),i=n(3),a=n(53),s={};t.exports=function(t,n,u,c,l){if("production"!==e.env.NODE_ENV)for(var f in t)if(t.hasOwnProperty(f)){var p;try{o("function"==typeof t[f],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",c||"React class",u,f),p=t[f](n,f,c,u,null,a)}catch(t){p=t}if(i(!p||p instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",c||"React class",u,f,"undefined"==typeof p?"undefined":r(p)),p instanceof Error&&!(p.message in s)){s[p.message]=!0;var h=l?l():"";i(!1,"Failed %s type: %s%s",u,p.message,null==h?"":h)}}}}).call(e,n(0))},function(t){"use strict";t.exports="15.6.1"},function(t,e,n){"use strict";var r=n(47),o=r.Component,i=n(5),a=i.isValidElement,s=n(48),u=n(105);t.exports=u(o,a,s)},function(t,e,n){"use strict";(function(e){function r(t){return t}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=n(16),a=n(49),s=n(4);if("production"!==e.env.NODE_ENV)var u=n(3);var c,l="mixins";c="production"===e.env.NODE_ENV?{}:{prop:"prop",context:"context",childContext:"child context"},t.exports=function(t,n,f){function p(t,n,r){for(var o in n)n.hasOwnProperty(o)&&"production"!==e.env.NODE_ENV&&u("function"==typeof n[o],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",t.displayName||"ReactClass",c[r],o)}function h(t,e){var n=x.hasOwnProperty(e)?x[e]:null;S.hasOwnProperty(e)&&s("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",e),t&&s("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",e)}function d(t,r){if(r){s("function"!=typeof r,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),s(!n(r),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var i=t.prototype,a=i.__reactAutoBindPairs;for(var c in r.hasOwnProperty(l)&&j.mixins(t,r.mixins),r)if(r.hasOwnProperty(c)&&c!=l){var f=r[c],p=i.hasOwnProperty(c);if(h(p,c),j.hasOwnProperty(c))j[c](t,f);else{var d=x.hasOwnProperty(c),y="function"==typeof f&&!d&&!p&&!1!==r.autobind;if(y)a.push(c,f),i[c]=f;else if(p){var v=x[c];s(d&&("DEFINE_MANY_MERGED"===v||"DEFINE_MANY"===v),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",v,c),"DEFINE_MANY_MERGED"===v?i[c]=m(i[c],f):"DEFINE_MANY"===v&&(i[c]=_(i[c],f))}else i[c]=f,"production"!==e.env.NODE_ENV&&"function"==typeof f&&r.displayName&&(i[c].displayName=r.displayName+"_"+c)}}}else if("production"!==e.env.NODE_ENV){var g="undefined"==typeof r?"undefined":o(r);"production"!==e.env.NODE_ENV&&u("object"===g&&null!==r,"%s: You're attempting to include a mixin that is either null or not an object. Check the mixins included by the component, as well as any mixins they include themselves. Expected object but got %s.",t.displayName||"ReactClass",null===r?null:g)}}function y(t,e){if(e)for(var n in e){var r=e[n];e.hasOwnProperty(n)&&(s(!(n in j),'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n),s(!(n in t),"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),t[n]=r)}}function v(t,e){for(var n in s(t&&e&&"object"===("undefined"==typeof t?"undefined":o(t))&&"object"===("undefined"==typeof e?"undefined":o(e)),"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects."),e)e.hasOwnProperty(n)&&(s(void 0===t[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),t[n]=e[n]);return t}function m(t,e){return function(){var n=t.apply(this,arguments),r=e.apply(this,arguments);if(null==n)return r;if(null==r)return n;var o={};return v(o,n),v(o,r),o}}function _(t,e){return function(){t.apply(this,arguments),e.apply(this,arguments)}}function g(t,n){var r=n.bind(t);if("production"!==e.env.NODE_ENV){r.__reactBoundContext=t,r.__reactBoundMethod=n,r.__reactBoundArguments=null;var o=t.constructor.displayName,i=r.bind;r.bind=function(a){for(var s=arguments.length,c=Array(1<s?s-1:0),l=1;l<s;l++)c[l-1]=arguments[l];if(a!==t&&null!==a)"production"!==e.env.NODE_ENV&&u(!1,"bind(): React component methods may only be bound to the component instance. See %s",o);else if(!c.length)return"production"!==e.env.NODE_ENV&&u(!1,"bind(): You are binding a component method to the component. React does this for you automatically in a high-performance way, so you can safely remove this call. See %s",o),r;var f=i.apply(r,arguments);return f.__reactBoundContext=t,f.__reactBoundMethod=n,f.__reactBoundArguments=c,f}}return r}function b(t){for(var e=t.__reactAutoBindPairs,n=0;n<e.length;n+=2){var r=e[n],o=e[n+1];t[r]=g(t,o)}}var w=[],x={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},j={displayName:function(t,e){t.displayName=e},mixins:function(t,e){if(e)for(var n=0;n<e.length;n++)d(t,e[n])},childContextTypes:function(t,n){"production"!==e.env.NODE_ENV&&p(t,n,"childContext"),t.childContextTypes=i({},t.childContextTypes,n)},contextTypes:function(t,n){"production"!==e.env.NODE_ENV&&p(t,n,"context"),t.contextTypes=i({},t.contextTypes,n)},getDefaultProps:function(t,e){t.getDefaultProps=t.getDefaultProps?m(t.getDefaultProps,e):e},propTypes:function(t,n){"production"!==e.env.NODE_ENV&&p(t,n,"prop"),t.propTypes=i({},t.propTypes,n)},statics:function(t,e){y(t,e)},autobind:function(){}},E={componentDidMount:function(){this.__isMounted=!0}},O={componentWillUnmount:function(){this.__isMounted=!1}},S={replaceState:function(t,e){this.updater.enqueueReplaceState(this,t,e)},isMounted:function(){return"production"!==e.env.NODE_ENV&&(u(this.__didWarnIsMounted,"%s: isMounted is deprecated. Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks.",this.constructor&&this.constructor.displayName||this.name||"Component"),this.__didWarnIsMounted=!0),!!this.__isMounted}},C=function(){};return i(C.prototype,t.prototype,S),function(t){var n=r(function(t,r,i){"production"!==e.env.NODE_ENV&&u(this instanceof n,"Something is calling a React component directly. Use a factory or JSX instead. See: https://fb.me/react-legacyfactory"),this.__reactAutoBindPairs.length&&b(this),this.props=t,this.context=r,this.refs=a,this.updater=i||f,this.state=null;var c=this.getInitialState?this.getInitialState():null;"production"!==e.env.NODE_ENV&&void 0===c&&this.getInitialState._isMockFunction&&(c=null),s("object"===("undefined"==typeof c?"undefined":o(c))&&!Array.isArray(c),"%s.getInitialState(): must return an object or null",n.displayName||"ReactCompositeComponent"),this.state=c});for(var i in n.prototype=new C,n.prototype.constructor=n,n.prototype.__reactAutoBindPairs=[],w.forEach(d.bind(null,n)),d(n,E),d(n,t),d(n,O),n.getDefaultProps&&(n.defaultProps=n.getDefaultProps()),"production"!==e.env.NODE_ENV&&(n.getDefaultProps&&(n.getDefaultProps.isReactClassApproved={}),n.prototype.getInitialState&&(n.prototype.getInitialState.isReactClassApproved={})),s(n.prototype.render,"createClass(...): Class specification must implement a `render` method."),"production"!==e.env.NODE_ENV&&(u(!n.prototype.componentShouldUpdate,"%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",t.displayName||"A component"),u(!n.prototype.componentWillRecieveProps,"%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",t.displayName||"A component")),x)n.prototype[i]||(n.prototype[i]=null);return n}}}).call(e,n(0))},function(t,e,n){"use strict";(function(e){var r=n(8),o=n(5),i=n(4);t.exports=function(t){return o.isValidElement(t)?void 0:"production"===e.env.NODE_ENV?r("143"):i(!1,"React.Children.only expected to receive a single React element child."),t}}).call(e,n(0))},function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Object.defineProperty(e,"__esModule",{value:!0});var o=Object.assign||function(t){for(var e,n=1;n<arguments.length;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},i=n(108),a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(i),s=n(233),u=function(t){return t&&t.__esModule?t:{default:t}}(s);e.default=function(t){return a.from(t).getPalette().then(function(t){var e=Object.keys(t),n=e.reduce(function(e,n){return o({},e,r({},(0,u.default)(n),t[n]&&t[n].getHex()))},{});return n})}},function(t,e,n){"use strict";var r=n(54),o=n(225);r.default.DefaultOpts.ImageClass=o.default,t.exports=r.default},function(t,r,o){"use strict";function i(t,e){this._id=t,this._clearFn=e}var a=Function.prototype.apply;r.setTimeout=function(){return new i(a.call(setTimeout,window,arguments),clearTimeout)},r.setInterval=function(){return new i(a.call(setInterval,window,arguments),clearInterval)},r.clearTimeout=r.clearInterval=function(t){t&&t.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(window,this._id)},r.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},r.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},r._unrefActive=r.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;0<=e&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},o(110),r.setImmediate=e,r.clearImmediate=n},function(t,e,n){"use strict";(function(t,e){!function(t){function n(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var r={callback:t,args:e};return d[h]=r,p(h),h++}function r(t){delete d[t]}function o(t){var e=t.callback,n=t.args;switch(n.length){case 0:e();break;case 1:e(n[0]);break;case 2:e(n[0],n[1]);break;case 3:e(n[0],n[1],n[2]);break;default:e.apply(void 0,n)}}function i(t){if(y)setTimeout(i,0,t);else{var e=d[t];if(e){y=!0;try{o(e)}finally{r(t),y=!1}}}}function a(){p=function(t){e.nextTick(function(){i(t)})}}function s(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}function u(){var e="setImmediate$"+Math.random()+"$",n=function(n){n.source===t&&"string"==typeof n.data&&0===n.data.indexOf(e)&&i(+n.data.slice(e.length))};t.addEventListener?t.addEventListener("message",n,!1):t.attachEvent("onmessage",n),p=function(n){t.postMessage(e+n,"*")}}function c(){var t=new MessageChannel;t.port1.onmessage=function(t){var e=t.data;i(e)},p=function(e){t.port2.postMessage(e)}}function l(){var t=v.documentElement;p=function(e){var n=v.createElement("script");n.onreadystatechange=function(){i(e),n.onreadystatechange=null,t.removeChild(n),n=null},t.appendChild(n)}}function f(){p=function(t){setTimeout(i,0,t)}}if(!t.setImmediate){var p,h=1,d={},y=!1,v=t.document,m=Object.getPrototypeOf&&Object.getPrototypeOf(t);m=m&&m.setTimeout?m:t,"[object process]"==={}.toString.call(t.process)?a():s()?u():t.MessageChannel?c():v&&"onreadystatechange"in v.createElement("script")?l():f(),m.setImmediate=n,m.clearImmediate=r}}("undefined"==typeof self?"undefined"==typeof t?void 0:t:self)}).call(e,n(21),n(0))},function(t,e,n){"use strict";var r=n(55),o=n(112),i=n(128),a=n(2);t.exports=function(t,e){var n=a(t)?r:o;return n(t,i(e,3))}},function(t,e,n){"use strict";var r=n(113);t.exports=function(t,e){var n=[];return r(t,function(t,r,o){e(t,r,o)&&n.push(t)}),n}},function(t,e,n){"use strict";var r=n(114),o=n(127),i=o(r);t.exports=i},function(t,e,n){"use strict";var r=n(115),o=n(9);t.exports=function(t,e){return t&&r(t,e,o)}},function(t,e,n){"use strict";var r=n(116),o=r();t.exports=o},function(t){"use strict";t.exports=function(t){return function(e,n,r){for(var o=-1,i=Object(e),a=r(e),s=a.length;s--;){var u=a[t?s:++o];if(!1===n(i[u],u,i))break}return e}}},function(t){"use strict";t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},function(t,e,n){"use strict";var r=n(10),o=n(12);t.exports=function(t){return o(t)&&"[object Arguments]"==r(t)}},function(t,e,n){"use strict";var r=n(11),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;t.exports=function(t){var e=i.call(t,s),n=t[s];try{t[s]=void 0}catch(t){}var r=a.call(t);return e?t[s]=n:delete t[s],r}},function(t){"use strict";var e=Object.prototype,n=e.toString;t.exports=function(t){return n.call(t)}},function(t){"use strict";t.exports=function(){return!1}},function(t,e,n){"use strict";var r=n(10),o=n(35),i=n(12),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[r(t)]}},function(t){"use strict";t.exports=function(t){return function(e){return t(e)}}},function(t,e,n){"use strict";(function(t){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=n(58),i="object"==r(e)&&e&&!e.nodeType&&e,a=i&&"object"==r(t)&&t&&!t.nodeType&&t,s=a&&a.exports===i,u=s&&o.process,c=function(){try{return u&&u.binding&&u.binding("util")}catch(t){}}();t.exports=c}).call(e,n(22)(t))},function(t,e,n){"use strict";var r=n(36),o=n(126),i=Object.prototype,a=i.hasOwnProperty;t.exports=function(t){if(!r(t))return o(t);var e=[];for(var n in Object(t))a.call(t,n)&&"constructor"!=n&&e.push(n);return e}},function(t,e,n){"use strict";var r=n(60),o=r(Object.keys,Object);t.exports=o},function(t,e,n){"use strict";var r=n(23);t.exports=function(t,e){return function(n,o){if(null==n)return n;if(!r(n))return t(n,o);for(var i=n.length,a=e?i:-1,s=Object(n);(e?a--:++a<i)&&!1!==o(s[a],a,s););return n}}},function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=n(129),i=n(170),a=n(43),s=n(2),u=n(180);t.exports=function(t){return"function"==typeof t?t:null==t?a:"object"==("undefined"==typeof t?"undefined":r(t))?s(t)?i(t[0],t[1]):o(t):u(t)}},function(t,e,n){"use strict";var r=n(130),o=n(169),i=n(74);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},function(t,e,n){"use strict";var r=n(37),o=n(63);t.exports=function(t,e,n,i){var a=n.length,s=a,u=!i;if(null==t)return!s;for(t=Object(t);a--;){var c=n[a];if(u&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++a<s;){c=n[a];var l=c[0],f=t[l],p=c[1];if(u&&c[2]){if(void 0===f&&!(l in t))return!1}else{var h=new r;if(i)var d=i(f,p,l,t,e,h);if(void 0===d?!o(p,f,3,i,h):!d)return!1}}return!0}},function(t){"use strict";t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){"use strict";var r=n(25),o=Array.prototype,i=o.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);if(0>n)return!1;var o=e.length-1;return n==o?e.pop():i.call(e,n,1),--this.size,!0}},function(t,e,n){"use strict";var r=n(25);t.exports=function(t){var e=this.__data__,n=r(e,t);return 0>n?void 0:e[n][1]}},function(t,e,n){"use strict";var r=n(25);t.exports=function(t){return-1<r(this.__data__,t)}},function(t,e,n){"use strict";var r=n(25);t.exports=function(t,e){var n=this.__data__,o=r(n,t);return 0>o?(++this.size,n.push([t,e])):n[o][1]=e,this}},function(t,e,n){"use strict";var r=n(24);t.exports=function(){this.__data__=new r,this.size=0}},function(t){"use strict";t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},function(t){"use strict";t.exports=function(t){return this.__data__.get(t)}},function(t){"use strict";t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){"use strict";
var r=n(24),o=n(38),i=n(39);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(t,e),this.size=n.size,this}},function(t,e,n){"use strict";var r=n(61),o=n(142),i=n(6),a=n(62),s=/[\\^$.*+?()[\]{}|]/g,u=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,f=c.toString,p=l.hasOwnProperty,h=RegExp("^"+f.call(p).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){if(!i(t)||o(t))return!1;var e=r(t)?h:u;return e.test(a(t))}},function(t,e,n){"use strict";var r=n(143),o=function(){var t=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();t.exports=function(t){return!!o&&o in t}},function(t,e,n){"use strict";var r=n(1),o=r["__core-js_shared__"];t.exports=o},function(t){"use strict";t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,n){"use strict";var r=n(146),o=n(24),i=n(38);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},function(t,e,n){"use strict";function r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}var o=n(147),i=n(148),a=n(149),s=n(150),u=n(151);r.prototype.clear=o,r.prototype.delete=i,r.prototype.get=a,r.prototype.has=s,r.prototype.set=u,t.exports=r},function(t,e,n){"use strict";var r=n(26);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(t){"use strict";t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,n){"use strict";var r=n(26),o=Object.prototype,i=o.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(e,t)?e[t]:void 0}},function(t,e,n){"use strict";var r=n(26),o=Object.prototype,i=o.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:i.call(e,t)}},function(t,e,n){"use strict";var r=n(26);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},function(t,e,n){"use strict";var r=n(27);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},function(t){"use strict";var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t){var n="undefined"==typeof t?"undefined":e(t);return"string"==n||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==t:null===t}},function(t,e,n){"use strict";var r=n(27);t.exports=function(t){return r(this,t).get(t)}},function(t,e,n){"use strict";var r=n(27);t.exports=function(t){return r(this,t).has(t)}},function(t,e,n){"use strict";var r=n(27);t.exports=function(t,e){var n=r(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this}},function(t,e,n){"use strict";var r=n(37),o=n(64),i=n(163),a=n(164),s=n(72),u=n(2),c=n(33),l=n(59),f="[object Arguments]",p="[object Array]",h="[object Object]",d=Object.prototype,y=d.hasOwnProperty;t.exports=function(t,e,n,d,v,m){var _=u(t),g=u(e),b=_?p:s(t),w=g?p:s(e);b=b==f?h:b,w=w==f?h:w;var x=b==h,j=w==h,E=b==w;if(E&&c(t)){if(!c(e))return!1;_=!0,x=!1}if(E&&!x)return m||(m=new r),_||l(t)?o(t,e,n,d,v,m):i(t,e,b,n,d,v,m);if(!(1&n)){var O=x&&y.call(t,"__wrapped__"),S=j&&y.call(e,"__wrapped__");if(O||S){var C=O?t.value():t,k=S?e.value():e;return m||(m=new r),v(C,k,n,d,m)}}return!!E&&(m||(m=new r),a(t,e,n,d,v,m))}},function(t,e,n){"use strict";function r(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new o;++e<n;)this.add(t[e])}var o=n(39),i=n(159),a=n(160);r.prototype.add=r.prototype.push=i,r.prototype.has=a,t.exports=r},function(t){"use strict";t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},function(t){"use strict";t.exports=function(t){return this.__data__.has(t)}},function(t){"use strict";t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},function(t){"use strict";t.exports=function(t,e){return t.has(e)}},function(t,e,n){"use strict";var r=n(11),o=n(65),i=n(13),a=n(64),s=n(66),u=n(67),c=r?r.prototype:void 0,l=c?c.valueOf:void 0;t.exports=function(t,e,n,r,c,f,p){switch(n){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&&f(new o(t),new o(e));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+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 h=s;case"[object Set]":var d=1&r;if(h||(h=u),t.size!=e.size&&!d)return!1;var y=p.get(t);if(y)return y==e;r|=2,p.set(t,e);var v=a(h(t),h(e),r,c,f,p);return p.delete(t),v;case"[object Symbol]":if(l)return l.call(t)==l.call(e)}return!1}},function(t,e,n){"use strict";var r=n(68),o=Object.prototype,i=o.hasOwnProperty;t.exports=function(t,e,n,o,a,s){var u=1&n,c=r(t),l=c.length,f=r(e),p=f.length;if(l!=p&&!u)return!1;for(var h,d=l;d--;)if(h=c[d],u?!(h in e):!i.call(e,h))return!1;var y=s.get(t);if(y&&s.get(e))return y==e;var v=!0;s.set(t,e),s.set(e,t);for(var m=u;++d<l;){h=c[d];var _=t[h],g=e[h];if(o)var b=u?o(g,_,h,e,t,s):o(_,g,h,t,e,s);if(void 0===b?!(_===g||a(_,g,n,o,s)):!b){v=!1;break}m||(m="constructor"==h)}if(v&&!m){var w=t.constructor,x=e.constructor;w!=x&&"constructor"in t&&"constructor"in e&&!("function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x)&&(v=!1)}return s.delete(t),s.delete(e),v}},function(t,e,n){"use strict";var r=n(7),o=n(1),i=r(o,"DataView");t.exports=i},function(t,e,n){"use strict";var r=n(7),o=n(1),i=r(o,"Promise");t.exports=i},function(t,e,n){"use strict";var r=n(7),o=n(1),i=r(o,"Set");t.exports=i},function(t,e,n){"use strict";var r=n(7),o=n(1),i=r(o,"WeakMap");t.exports=i},function(t,e,n){"use strict";var r=n(73),o=n(9);t.exports=function(t){for(var e=o(t),n=e.length;n--;){var i=e[n],a=t[i];e[n]=[i,a,r(a)]}return e}},function(t,e,n){"use strict";var r=n(63),o=n(171),i=n(177),a=n(41),s=n(73),u=n(74),c=n(28);t.exports=function(t,e){return a(t)&&s(e)?u(c(t),e):function(n){var a=o(n,t);return void 0===a&&a===e?i(n,t):r(e,a,3)}}},function(t,e,n){"use strict";var r=n(75);t.exports=function(t,e,n){var o=null==t?void 0:r(t,e);return void 0===o?n:o}},function(t,e,n){"use strict";var r=n(173),o=/^\./,i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,s=r(function(t){var e=[];return o.test(t)&&e.push(""),t.replace(i,function(t,n,r,o){e.push(r?o.replace(a,"$1"):n||t)}),e});t.exports=s},function(t,e,n){"use strict";var r=n(174);t.exports=function(t){var e=r(t,function(t){return 500===n.size&&n.clear(),t}),n=e.cache;return e}},function(t,e,n){"use strict";function r(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(i);var n=function n(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=t.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(r.Cache||o),n}var o=n(39),i="Expected a function";r.Cache=o,t.exports=r},function(t,e,n){"use strict";function r(t){if("string"==typeof t)return t;if(a(t))return i(t,r)+"";if(s(t))return l?l.call(t):"";var e=t+"";return"0"==e&&1/t==-u?"-0":e}var o=n(11),i=n(176),a=n(2),s=n(42),u=1/0,c=o?o.prototype:void 0,l=c?c.toString:void 0;t.exports=r},function(t){"use strict";t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}},function(t,e,n){"use strict";var r=n(178),o=n(179);t.exports=function(t,e){return null!=t&&o(t,e,r)}},function(t){"use strict";t.exports=function(t,e){return null!=t&&e in Object(t)}},function(t,e,n){"use strict";var r=n(76),o=n(57),i=n(2),a=n(34),s=n(35),u=n(28);t.exports=function(t,e,n){e=r(e,t);for(var c,l=-1,f=e.length,p=!1;++l<f&&(c=u(e[l]),!!(p=null!=t&&n(t,c)));)t=t[c];return p||++l!=f?p:(f=null==t?0:t.length,!!f&&s(f)&&a(c,f)&&(i(t)||o(t)))}},function(t,e,n){"use strict";var r=n(181),o=n(182),i=n(41),a=n(28);t.exports=function(t){return i(t)?r(a(t)):o(t)}},function(t){"use strict";t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},function(t,e,n){"use strict";var r=n(75);t.exports=function(t){return function(e){return r(e,t)}}},function(t,e,n){"use strict";var r=n(15),o=n(184),i=n(44),a=o(function(t,e,n,o){r(e,i(e),t,o)});t.exports=a},function(t,e,n){"use strict";var r=n(82),o=n(190);t.exports=function(t){return r(function(e,n){var r=-1,i=n.length,a=1<i?n[i-1]:void 0,s=2<i?n[2]:void 0;for(a=3<t.length&&"function"==typeof a?(i--,a):void 0,s&&o(n[0],n[1],s)&&(a=3>i?void 0:a,i=1),e=Object(e);++r<i;){var u=n[r];u&&t(e,u,r,a)}return e})}},function(t,e,n){"use strict";var r=n(78),i=o;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,s=i(o.length-e,0),u=Array(s);++a<s;)u[a]=o[e+a];a=-1;for(var c=Array(e+1);++a<e;)c[a]=o[a];return c[e]=n(u),r(t,this,c)}}},function(t,e,n){"use strict";var r=n(187),o=n(189),i=o(r);t.exports=i},function(t,e,n){"use strict";var r=n(188),o=n(81),i=n(43),a=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:i;t.exports=a},function(t){"use strict";t.exports=function(t){return function(){return t}}},function(t){"use strict";var e=Date.now;t.exports=function(t){var n=0,r=0;return function(){var o=e(),i=16-(o-r);if(r=o,0<i){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}},function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=n(13),i=n(23),a=n(34),s=n(6);t.exports=function(t,e,n){if(!s(n))return!1;var u="undefined"==typeof e?"undefined":r(e);return!("number"==u?!(i(n)&&a(e,n.length)):!("string"==u&&e in n))&&o(n[e],t)}},function(t,e,n){"use strict";var r=n(6),o=n(36),i=n(192),a=Object.prototype,s=a.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=o(t),n=[];for(var a in t)("constructor"!=a||!e&&s.call(t,a))&&n.push(a);return n}},function(t){"use strict";t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},function(t,e,n){"use strict";var r=n(13),o=Object.prototype,i=o.hasOwnProperty;t.exports=function(t,e,n,a){return void 0===t||r(t,o[n])&&!i.call(a,n)?e:t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(195),o=n(54),i=function(){function t(t,e){void 0===e&&(e={}),this._src=t,this._opts=e,this._opts.filters=r(o.default.DefaultOpts.filters)}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.push(t),this},t.prototype.removeFilter=function(t){var e=this._opts.filters.indexOf(t);return 0<e&&this._opts.filters.splice(e),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){return this._opts.generator=t,this},t.prototype.useQuantizer=function(t){return this._opts.quantizer=t,this},t.prototype.build=function(){return new o.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},function(t,e,n){"use strict";var r=n(196);t.exports=function(t){return r(t,4)}},function(t,e,n){"use strict";function r(t,e,n,N,A,I){var F,R=e&j,D=e&E;if(n&&(F=A?n(t,N,A,I):n(t)),void 0!==F)return F;if(!w(t))return t;var M=g(t);if(M){if(F=v(t),!R)return l(t,F)}else{var V=y(t),L=V==C||V==k;if(b(t))return c(t,R);if(V==T||V==S||L&&!A){if(F=D||L?{}:_(t),!R)return D?p(t,u(F,t)):f(t,s(F,t))}else{if(!P[V])return A?t:{};F=m(t,V,r,R)}}I||(I=new o);var U=I.get(t);if(U)return U;I.set(t,F);var z=e&O?D?d:h:D?keysIn:x,q=M?void 0:z(t);return i(q||t,function(o,i){q&&(i=o,o=t[i]),a(F,i,r(o,e,n,i,t,I))}),F}var o=n(37),i=n(197),a=n(79),s=n(198),u=n(199),c=n(200),l=n(201),f=n(202),p=n(203),h=n(68),d=n(204),y=n(72),v=n(205),m=n(206),_=n(215),g=n(2),b=n(33),w=n(6),x=n(9),j=1,E=2,O=4,S="[object Arguments]",C="[object Function]",k="[object GeneratorFunction]",T="[object Object]",P={};P[S]=P["[object Array]"]=P["[object ArrayBuffer]"]=P["[object DataView]"]=P["[object Boolean]"]=P["[object Date]"]=P["[object Float32Array]"]=P["[object Float64Array]"]=P["[object Int8Array]"]=P["[object Int16Array]"]=P["[object Int32Array]"]=P["[object Map]"]=P["[object Number]"]=P[T]=P["[object RegExp]"]=P["[object Set]"]=P["[object String]"]=P["[object Symbol]"]=P["[object Uint8Array]"]=P["[object Uint8ClampedArray]"]=P["[object Uint16Array]"]=P["[object Uint32Array]"]=!0,P["[object Error]"]=P[C]=P["[object WeakMap]"]=!1,t.exports=r},function(t){"use strict";t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},function(t,e,n){"use strict";var r=n(15),o=n(9);t.exports=function(t,e){return t&&r(e,o(e),t)}},function(t,e,n){"use strict";var r=n(15),o=n(44);t.exports=function(t,e){return t&&r(e,o(e),t)}},function(t,e,n){"use strict";(function(t){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=n(1),i="object"==r(e)&&e&&!e.nodeType&&e,a=i&&"object"==r(t)&&t&&!t.nodeType&&t,s=a&&a.exports===i,u=s?o.Buffer:void 0,c=u?u.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=c?c(n):new t.constructor(n);return t.copy(r),r}}).call(e,n(22)(t))},function(t){"use strict";t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}},function(t,e,n){"use strict";var r=n(15),o=n(40);t.exports=function(t,e){return r(t,o(t),e)}},function(t,e,n){"use strict";var r=n(15),o=n(83);t.exports=function(t,e){return r(t,o(t),e)}},function(t,e,n){"use strict";var r=n(69),o=n(83),i=n(44);t.exports=function(t){return r(t,i,o)}},function(t){"use strict";var e=Object.prototype,n=e.hasOwnProperty;t.exports=function(t){var e=t.length,r=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,n){"use strict";var r=n(45),o=n(207),i=n(208),a=n(210),s=n(211),u=n(213),c=n(214);t.exports=function(t,e,n,l){var f=t.constructor;return"[object ArrayBuffer]"===e?r(t):"[object Boolean]"===e||"[object Date]"===e?new f(+t):"[object DataView]"===e?o(t,l):"[object Float32Array]"===e||"[object Float64Array]"===e||"[object Int8Array]"===e||"[object Int16Array]"===e||"[object Int32Array]"===e||"[object Uint8Array]"===e||"[object Uint8ClampedArray]"===e||"[object Uint16Array]"===e||"[object Uint32Array]"===e?c(t,l):"[object Map]"===e?i(t,l,n):"[object Number]"===e||"[object String]"===e?new f(t):"[object RegExp]"===e?a(t):"[object Set]"===e?s(t,l,n):"[object Symbol]"===e?u(t):void 0}},function(t,e,n){"use strict";var r=n(45);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}},function(t,e,n){"use strict";var r=n(209),o=n(46),i=n(66);t.exports=function(t,e,n){var a=e?n(i(t),1):i(t);return o(a,r,new t.constructor)}},function(t){"use strict";t.exports=function(t,e){return t.set(e[0],e[1]),t}},function(t){"use strict";var e=/\w*$/;t.exports=function(t){var n=new t.constructor(t.source,e.exec(t));return n.lastIndex=t.lastIndex,n}},function(t,e,n){"use strict";var r=n(212),o=n(46),i=n(67);t.exports=function(t,e,n){var a=e?n(i(t),1):i(t);return o(a,r,new t.constructor)}},function(t){"use strict";t.exports=function(t,e){return t.add(e),t}},function(t,e,n){"use strict";var r=n(11),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;t.exports=function(t){return i?Object(i.call(t)):{}}},function(t,e,n){"use strict";var r=n(45);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},function(t,e,n){"use strict";var r=n(216),o=n(84),i=n(36);t.exports=function(t){return"function"!=typeof t.constructor||i(t)?{}:r(o(t))}},function(t,e,n){"use strict";var r=n(6),o=Object.create,i=function(){function t(){}return function(e){if(!r(e))return{};if(o)return o(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(218);e.MMCQ=r.default,e.WebWorker=null},function(t,e,n){"use strict";function r(t,e){for(var n=t.size();t.size()<e;){var r=t.pop();if(!(r&&0<r.count()))break;var o=r.split(),i=o[0],a=o[1];if(t.push(i),a&&0<a.count()&&t.push(a),t.size()===n)break;n=t.size()}}function o(t){for(var e=[];t.size();){var n=t.pop(),r=n.avg();r[0],r[1],r[2];e.push(new i.Swatch(r,n.count()))}return e}Object.defineProperty(e,"__esModule",{value:!0});var i=n(32),a=n(219),s=n(220);e.default=function(t,e){if(0===t.length||2>e.colorCount||256<e.colorCount)throw new Error("Wrong MMCQ parameters");var n=a.default.build(t),i=n.hist,u=(Object.keys(i).length,new s.default(function(t,e){return t.count()-e.count()}));u.push(n),r(u,.75*e.colorCount);var c=new s.default(function(t,e){return t.count()*t.volume()-e.count()*e.volume()});return c.contents=u.contents,r(c,e.colorCount-c.size()),o(c)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(19),a=function(){function t(t,e,n,r,o,i,a){this._volume=-1,this._count=-1,this.dimension={r1:t,r2:e,g1:n,g2:r,b1:o,b2:i},this.hist=a}return t.build=function(e){var n,r,o,a,s,u,c,l,f,p,h=1<<3*i.SIGBITS,d=new Uint32Array(h);n=o=s=0,r=a=u=Number.MAX_VALUE;for(var y,v=e.length/4,m=0;m<v;)if(y=4*m,m++,c=e[y+0],l=e[y+1],f=e[y+2],p=e[y+3],0!==p){c>>=i.RSHIFT,l>>=i.RSHIFT,f>>=i.RSHIFT;var _=i.getColorIndex(c,l,f);d[_]+=1,c>n&&(n=c),c<r&&(r=c),l>o&&(o=l),l<a&&(a=l),f>s&&(s=f),f<u&&(u=f)}return new t(r,n,a,o,u,s,d)},t.prototype.invalidate=function(){this._volume=this._count=-1,this._avg=null},t.prototype.volume=function(){if(0>this._volume){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(0>this._count){for(var t=this.hist,e=this.dimension,n=e.r1,r=e.r2,o=e.g1,a=e.g2,s=e.b1,u=e.b2,c=0,l=n;l<=r;l++)for(var f=o;f<=a;f++)for(var p,h=s;h<=u;h++)p=i.getColorIndex(l,f,h),c+=t[p];this._count=c}return this._count},t.prototype.clone=function(){var e=this.hist,n=this.dimension,r=n.r1,o=n.r2,i=n.g1,a=n.g2,s=n.b1,u=n.b2;return new t(r,o,i,a,s,u,e)},t.prototype.avg=function(){if(!this._avg){var t,e,n,r=this.hist,o=this.dimension,a=o.r1,s=o.r2,u=o.g1,c=o.g2,l=o.b1,f=o.b2,p=0,h=1<<8-i.SIGBITS;t=e=n=0;for(var d=a;d<=s;d++)for(var y=u;y<=c;y++)for(var v=l;v<=f;v++){var m=i.getColorIndex(d,y,v),_=r[m];p+=_,t+=_*(d+.5)*h,e+=_*(y+.5)*h,n+=_*(v+.5)*h}this._avg=p?[~~(t/p),~~(e/p),~~(n/p)]:[~~(h*(a+s+1)/2),~~(h*(u+c+1)/2),~~(h*(l+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,s=o.r2,u=o.g1,c=o.g2,l=o.b1,f=o.b2;return e>>=i.RSHIFT,n>>=i.RSHIFT,r>>=i.RSHIFT,e>=a&&e<=s&&n>=u&&n<=c&&r>=l&&r<=f},t.prototype.split=function(){var t=this.hist,e=this.dimension,n=e.r1,a=e.r2,s=e.g1,u=e.g2,c=e.b1,l=e.b2,f=this.count();if(!f)return[];if(1===f)return[this.clone()];var p,h,d=a-n+1,y=u-s+1,v=o(d,y,l-c+1),m=null;p=h=0;var _=null;if(v===d){_="r",m=new Uint32Array(a+1);for(var g=n;g<=a;g++){p=0;for(var b=s;b<=u;b++)for(var w,x=c;x<=l;x++)w=i.getColorIndex(g,b,x),p+=t[w];h+=p,m[g]=h}}else if(v===y){_="g",m=new Uint32Array(u+1);for(var b=s;b<=u;b++){p=0;for(var g=n;g<=a;g++)for(var w,x=c;x<=l;x++)w=i.getColorIndex(g,b,x),p+=t[w];h+=p,m[b]=h}}else{_="b",m=new Uint32Array(l+1);for(var x=c;x<=l;x++){p=0;for(var g=n;g<=a;g++)for(var w,b=s;b<=u;b++)w=i.getColorIndex(g,b,x),p+=t[w];h+=p,m[x]=h}}for(var j,E=-1,O=new Uint32Array(m.length),S=0;S<m.length;S++)j=m[S],0>E&&j>h/2&&(E=S),O[S]=h-j;var C=this;return function(t){var e=t+"1",n=t+"2",i=C.dimension[e],a=C.dimension[n],s=C.clone(),u=C.clone(),c=E-i,l=a-E;for(c<=l?(a=r(a-1,~~(E+l/2)),a=o(0,a)):(a=o(i,~~(E-1-c/2)),a=r(C.dimension[n],a));!m[a];)a++;for(var f=O[a];!f&&m[a-1];)f=O[--a];return s.dimension[n]=a,u.dimension[e]=a+1,[s,u]}(_)},t}();e.default=a},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=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=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(222);e.Default=r.default},function(e,n,r){"use strict";function i(t){var e=0;return t.forEach(function(t){e=o(e,t.getPopulation())}),e}function a(t,e){return t.Vibrant===e||t.DarkVibrant===e||t.LightVibrant===e||t.Muted===e||t.DarkMuted===e||t.LightMuted===e}function s(e,n,r,o,i,a,s){function u(e,n){return 1-t(e-n)}return function(){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}(u(e,n),s.weightSaturation,u(r,o),s.weightLuma,i/a,s.weightPopulation)}function u(t,e,n,r,o,i,u,c,l,f){var p=null,h=0;return e.forEach(function(e){var d=e.getHsl(),y=d[1],v=d[2];if(y>=c&&y<=l&&v>=o&&v<=i&&!a(t,e)){var m=s(y,u,v,r,e.getPopulation(),n,f);(null==p||m>h)&&(p=e,h=m)}}),p}function c(t,e,n){var r={};return r.Vibrant=u(r,t,e,n.targetNormalLuma,n.minNormalLuma,n.maxNormalLuma,n.targetVibrantSaturation,n.minVibrantSaturation,1,n),r.LightVibrant=u(r,t,e,n.targetLightLuma,n.minLightLuma,1,n.targetVibrantSaturation,n.minVibrantSaturation,1,n),r.DarkVibrant=u(r,t,e,n.targetDarkLuma,0,n.maxDarkLuma,n.targetVibrantSaturation,n.minVibrantSaturation,1,n),r.Muted=u(r,t,e,n.targetNormalLuma,n.minNormalLuma,n.maxNormalLuma,n.targetMutesSaturation,0,n.maxMutesSaturation,n),r.LightMuted=u(r,t,e,n.targetLightLuma,n.minLightLuma,1,n.targetMutesSaturation,0,n.maxMutesSaturation,n),r.DarkMuted=u(r,t,e,n.targetDarkLuma,0,n.maxDarkLuma,n.targetMutesSaturation,0,n.maxMutesSaturation,n),r}function l(t,e,n){if(null===t.Vibrant&&null!==t.DarkVibrant){var r=t.DarkVibrant.getHsl(),o=r[0],i=r[1],a=r[2];a=n.targetNormalLuma,t.Vibrant=new f.Swatch(p.hslToRgb(o,i,a),0)}if(null===t.DarkVibrant&&null!==t.Vibrant){var s=t.Vibrant.getHsl(),o=s[0],i=s[1],a=s[2];a=n.targetDarkLuma,t.DarkVibrant=new f.Swatch(p.hslToRgb(o,i,a),0)}}Object.defineProperty(n,"__esModule",{value:!0});var f=r(32),p=r(19),h=r(77),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};n.default=function(t,e){e=h({},e,d);var n=i(t),r=c(t,n,e);return l(r,n,e),r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(224);e.Default=r.default,e.combineFilters=function(t){return Array.isArray(t)&&0!==t.length?function(e,n,r,o){if(0===o)return!1;for(var i=0;i<t.length;i++)if(!t[i](e,n,r,o))return!1;return!0}:null}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,r){return 125<=r&&!(250<t&&250<e&&250<n)}},function(t,e,n){"use strict";function r(t){var e=u.parse(t);return null===e.protocol&&null===e.host&&null===e.port}function o(t,e){var n=u.parse(t),r=u.parse(e);return n.protocol===r.protocol&&n.hostname===r.hostname&&n.port===r.port}var i=function(){var 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])};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 a=n(20),s=n(226),u=n(227),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype._initCanvas=function(){var t=this.image,e=this._canvas=document.createElement("canvas"),n=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,n.drawImage(t,0,0),document.body.appendChild(e)},e.prototype.load=function(t){var e=this,n=null,i=null;if("string"==typeof t)n=document.createElement("img"),i=t;else{if(!(t instanceof HTMLImageElement))return a.reject(new Error("Cannot load buffer as an image in browser"));n=t,i=t.src}return this.image=n,r(i)||o(window.location.href,i)||(n.crossOrigin="anonymous"),"string"==typeof t&&(n.src=i),new a(function(t,r){var o=function(){e._initCanvas(),t(e)};n.complete?o():(n.onload=o,n.onerror=function(){return r(new Error("Fail to load image: "+i))})})},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.parentNode.removeChild(this._canvas)},e}(s.ImageBase);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(20),i=function(){function t(){}return t.prototype.scaleDown=function(t){var e=this.getWidth(),n=this.getHeight(),r=1;if(0<t.maxDimension){var i=o(e,n);i>t.maxDimension&&(r=t.maxDimension/i)}else r=1/t.quality;1>r&&this.resize(e*r,n*r,r)},t.prototype.applyFilter=function(t){var e=this.getImageData();if("function"==typeof t)for(var n=e.data,o=n.length/4,i=void 0,a=void 0,s=void 0,u=void 0,c=void 0,l=0;l<o;l++)i=4*l,a=n[i+0],s=n[i+1],u=n[i+2],c=n[i+3],t(a,s,u,c)||(n[i+3]=0);return r.resolve(e)},t}();e.ImageBase=i},function(t,e,n){"use strict";function r(){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}function o(t,e,n){if(t&&s.isObject(t)&&t instanceof r)return t;var o=new r;return o.parse(t,e,n),o}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a=n(228),s=n(229);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){return s.isString(t)&&(t=o(t)),t instanceof r?t.format():r.prototype.format.call(t)},e.Url=r;var u=/^([a-z0-9.+-]+:)/i,c=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,f=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),p=["'"].concat(f),h=["%","/","?",";","#"].concat(p),d=["/","?","#"],y=/^[+a-z0-9A-Z_-]{0,63}$/,v=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},_={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},b=n(230);r.prototype.parse=function(t,e,n){if(!s.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+("undefined"==typeof t?"undefined":i(t)));var r=t.indexOf("?"),o=-1!==r&&r<t.indexOf("#")?"?":"#",c=t.split(o),f=/\\/g;c[0]=c[0].replace(f,"/"),t=c.join(o);var w=t;if(w=w.trim(),!n&&1===t.split("#").length){var x=l.exec(w);if(x)return this.path=w,this.href=w,this.pathname=x[1],x[2]?(this.search=x[2],this.query=e?b.parse(this.search.substr(1)):this.search.substr(1)):e&&(this.search="",this.query={}),this}var j=u.exec(w);if(j){j=j[0];var E=j.toLowerCase();this.protocol=E,w=w.substr(j.length)}if(n||j||w.match(/^\/\/[^@\/]+@[^@\/]+/)){var O="//"===w.substr(0,2);O&&!(j&&_[j])&&(w=w.substr(2),this.slashes=!0)}if(!_[j]&&(O||j&&!g[j])){for(var S,C=-1,k=0;k<d.length;k++)S=w.indexOf(d[k]),-1!==S&&(-1==C||S<C)&&(C=S);var T,P;P=-1===C?w.lastIndexOf("@"):w.lastIndexOf("@",C),-1!==P&&(T=w.slice(0,P),w=w.slice(P+1),this.auth=decodeURIComponent(T)),C=-1;for(var S,k=0;k<h.length;k++)S=w.indexOf(h[k]),-1!==S&&(-1===C||S<C)&&(C=S);-1===C&&(C=w.length),this.host=w.slice(0,C),w=w.slice(C),this.parseHost(),this.hostname=this.hostname||"";var N="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!N)for(var A,I=this.hostname.split(/\./),k=0,F=I.length;k<F;k++)if(A=I[k],A&&!A.match(y)){for(var R="",D=0,M=A.length;D<M;D++)R+=127<A.charCodeAt(D)?"x":A[D];if(!R.match(y)){var V=I.slice(0,k),L=I.slice(k+1),U=A.match(v);U&&(V.push(U[1]),L.unshift(U[2])),L.length&&(w="/"+L.join(".")+w),this.hostname=V.join(".");break}}this.hostname=this.hostname.length>255?"":this.hostname.toLowerCase(),N||(this.hostname=a.toASCII(this.hostname));var z=this.port?":"+this.port:"",q=this.hostname||"";this.host=q+z,this.href+=this.host,N&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==w[0]&&(w="/"+w))}if(!m[E])for(var B,k=0,F=p.length;k<F;k++)if(B=p[k],-1!==w.indexOf(B)){var H=encodeURIComponent(B);H===B&&(H=escape(B)),w=w.split(B).join(H)}var $=w.indexOf("#");-1!==$&&(this.hash=w.substr($),w=w.slice(0,$));var W=w.indexOf("?");if(-1===W?e&&(this.search="",this.query={}):(this.search=w.substr(W),this.query=w.substr(W+1),e&&(this.query=b.parse(this.query)),w=w.slice(0,W)),w&&(this.pathname=w),g[E]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var z=this.pathname||"",G=this.search||"";this.path=z+G}return this.href=this.format(),this},r.prototype.format=function(){var t=this.auth||"";t&&(t=encodeURIComponent(t),t=t.replace(/%3A/i,":"),t+="@");var e=this.protocol||"",n=this.pathname||"",r=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&&s.isObject(this.query)&&Object.keys(this.query).length&&(i=b.stringify(this.query));var a=this.search||i&&"?"+i||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||g[e])&&!1!==o?(o="//"+(o||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):!o&&(o=""),r&&"#"!==r.charAt(0)&&(r="#"+r),a&&"?"!==a.charAt(0)&&(a="?"+a),n=n.replace(/[?#]/g,function(t){return encodeURIComponent(t)}),a=a.replace("#","%23"),e+o+n+a+r},r.prototype.resolve=function(t){return this.resolveObject(o(t,!1,!0)).format()},r.prototype.resolveObject=function(t){if(s.isString(t)){var e=new r;e.parse(t,!1,!0),t=e}for(var n,o=new r,i=Object.keys(this),a=0;a<i.length;a++)n=i[a],o[n]=this[n];if(o.hash=t.hash,""===t.href)return o.href=o.format(),o;if(t.slashes&&!t.protocol){for(var u,c=Object.keys(t),l=0;l<c.length;l++)u=c[l],"protocol"!==u&&(o[u]=t[u]);return g[o.protocol]&&o.hostname&&!o.pathname&&(o.path=o.pathname="/"),o.href=o.format(),o}if(t.protocol&&t.protocol!==o.protocol){if(!g[t.protocol]){for(var f,p=Object.keys(t),h=0;h<p.length;h++)f=p[h],o[f]=t[f];return o.href=o.format(),o}if(o.protocol=t.protocol,t.host||_[t.protocol])o.pathname=t.pathname;else{for(var d=(t.pathname||"").split("/");d.length&&!(t.host=d.shift()););
t.host||(t.host=""),t.hostname||(t.hostname=""),""!==d[0]&&d.unshift(""),2>d.length&&d.unshift(""),o.pathname=d.join("/")}if(o.search=t.search,o.query=t.query,o.host=t.host||"",o.auth=t.auth,o.hostname=t.hostname||t.host,o.port=t.port,o.pathname||o.search){var y=o.pathname||"",v=o.search||"";o.path=y+v}return o.slashes=o.slashes||t.slashes,o.href=o.format(),o}var m=o.pathname&&"/"===o.pathname.charAt(0),b=t.host||t.pathname&&"/"===t.pathname.charAt(0),w=b||m||o.host&&t.pathname,x=w,j=o.pathname&&o.pathname.split("/")||[],d=t.pathname&&t.pathname.split("/")||[],E=o.protocol&&!g[o.protocol];if(E&&(o.hostname="",o.port=null,o.host&&(""===j[0]?j[0]=o.host:j.unshift(o.host)),o.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===d[0]?d[0]=t.host:d.unshift(t.host)),t.host=null),w=w&&(""===d[0]||""===j[0])),b)o.host=t.host||""===t.host?t.host:o.host,o.hostname=t.hostname||""===t.hostname?t.hostname:o.hostname,o.search=t.search,o.query=t.query,j=d;else if(d.length)j||(j=[]),j.pop(),j=j.concat(d),o.search=t.search,o.query=t.query;else if(!s.isNullOrUndefined(t.search)){if(E){o.hostname=o.host=j.shift();var O=o.host&&0<o.host.indexOf("@")&&o.host.split("@");O&&(o.auth=O.shift(),o.host=o.hostname=O.shift())}return o.search=t.search,o.query=t.query,s.isNull(o.pathname)&&s.isNull(o.search)||(o.path=(o.pathname?o.pathname:"")+(o.search?o.search:"")),o.href=o.format(),o}if(!j.length)return o.pathname=null,o.path=o.search?"/"+o.search:null,o.href=o.format(),o;for(var S=j.slice(-1)[0],C=(o.host||t.host||1<j.length)&&("."===S||".."===S)||""===S,k=0,T=j.length;0<=T;T--)S=j[T],"."===S?j.splice(T,1):".."===S?(j.splice(T,1),k++):k&&(j.splice(T,1),k--);if(!w&&!x)for(;k--;k)j.unshift("..");w&&""!==j[0]&&(!j[0]||"/"!==j[0].charAt(0))&&j.unshift(""),C&&"/"!==j.join("/").substr(-1)&&j.push("");var P=""===j[0]||j[0]&&"/"===j[0].charAt(0);if(E){o.hostname=o.host=P?"":j.length?j.shift():"";var O=o.host&&0<o.host.indexOf("@")&&o.host.split("@");O&&(o.auth=O.shift(),o.host=o.hostname=O.shift())}return w=w||o.host&&j.length,w&&!P&&j.unshift(""),j.length?o.pathname=j.join("/"):(o.pathname=null,o.path=null),s.isNull(o.pathname)&&s.isNull(o.search)||(o.path=(o.pathname?o.pathname:"")+(o.search?o.search:"")),o.auth=t.auth||o.auth,o.slashes=o.slashes||t.slashes,o.href=o.format(),o},r.prototype.parseHost=function(){var t=this.host,e=c.exec(t);e&&(e=e[0],":"!==e&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},function(t,e,n){"use strict";(function(t,r){var o,a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(s){function u(t){throw RangeError(R[t])}function c(t,e){for(var n=t.length,r=[];n--;)r[n]=e(t[n]);return r}function l(t,e){var n=t.split("@"),r="";1<n.length&&(r=n[0]+"@",t=n[1]),t=t.replace(F,".");var o=t.split("."),i=c(o,e).join(".");return r+i}function f(t){for(var e,n,r=[],o=0,i=t.length;o<i;)e=t.charCodeAt(o++),55296<=e&&56319>=e&&o<i?(n=t.charCodeAt(o++),56320==(64512&n)?r.push(((1023&e)<<10)+(1023&n)+65536):(r.push(e),o--)):r.push(e);return r}function p(t){return c(t,function(t){var e="";return 65535<t&&(t-=65536,e+=V(55296|1023&t>>>10),t=56320|1023&t),e+=V(t)}).join("")}function h(t){return 10>t-48?t-22:26>t-65?t-65:26>t-97?t-97:E}function d(t,e){return t+22+75*(26>t)-((0!=e)<<5)}function y(t,e,n){var r=0;for(t=n?M(t/k):t>>1,t+=M(t/e);t>D*S>>1;r+=E)t=M(t/D);return M(r+(D+1)*t/(t+C))}function v(t){var e,n,r,o,i,a,s,c,l,f,d=[],v=t.length,m=0,_=P,g=T;for(n=t.lastIndexOf(N),0>n&&(n=0),r=0;r<n;++r)128<=t.charCodeAt(r)&&u("not-basic"),d.push(t.charCodeAt(r));for(o=0<n?n+1:0;o<v;){for(i=m,a=1,s=E;o>=v&&u("invalid-input"),c=h(t.charCodeAt(o++)),(c>=E||c>M((j-m)/a))&&u("overflow"),m+=c*a,l=s<=g?O:s>=g+S?S:s-g,!(c<l);s+=E)f=E-l,a>M(j/f)&&u("overflow"),a*=f;e=d.length+1,g=y(m-i,e,0==i),M(m/e)>j-_&&u("overflow"),_+=M(m/e),m%=e,d.splice(m++,0,_)}return p(d)}function m(t){var e,n,r,o,i,a,s,c,l,p,h,v,m,_,g,b=[];for(t=f(t),v=t.length,e=P,n=0,i=T,a=0;a<v;++a)h=t[a],128>h&&b.push(V(h));for(r=o=b.length,o&&b.push(N);r<v;){for(s=j,a=0;a<v;++a)h=t[a],h>=e&&h<s&&(s=h);for(m=r+1,s-e>M((j-n)/m)&&u("overflow"),n+=(s-e)*m,e=s,a=0;a<v;++a)if(h=t[a],h<e&&++n>j&&u("overflow"),h==e){for(c=n,l=E;p=l<=i?O:l>=i+S?S:l-i,!(c<p);l+=E)g=c-p,_=E-p,b.push(V(d(p+g%_,0))),c=M(g/_);b.push(V(d(c,0))),i=y(n,m,r==o),n=0,++r}++n,++e}return b.join("")}var _="object"==a(e)&&e&&!e.nodeType&&e,g="object"==a(t)&&t&&!t.nodeType&&t,b="object"==("undefined"==typeof r?"undefined":a(r))&&r;(b.global===b||b.window===b||b.self===b)&&(s=b);var w,x,j=2147483647,E=36,O=1,S=26,C=38,k=700,T=72,P=128,N="-",A=/^xn--/,I=/[^\x20-\x7E]/,F=/[\x2E\u3002\uFF0E\uFF61]/g,R={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},D=E-O,M=Math.floor,V=i;if(w={version:"1.3.2",ucs2:{decode:f,encode:p},decode:v,encode:m,toASCII:function(t){return l(t,function(t){return I.test(t)?"xn--"+m(t):t})},toUnicode:function(t){return l(t,function(t){return A.test(t)?v(t.slice(4).toLowerCase()):t})}},"object"==a(n(85))&&n(85))o=function(){return w}.call(e,n,e,t),!(void 0!==o&&(t.exports=o));else if(_&&g)if(t.exports==_)g.exports=w;else for(x in w)w.hasOwnProperty(x)&&(_[x]=w[x]);else s.punycode=w}(void 0)}).call(e,n(22)(t),n(21))},function(t){"use strict";var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports={isString:function(t){return"string"==typeof t},isObject:function(t){return"object"===("undefined"==typeof t?"undefined":e(t))&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},function(t,e,n){"use strict";e.decode=e.parse=n(231),e.encode=e.stringify=n(232)},function(t){"use strict";function e(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,r,o,i){r=r||"&",o=o||"=";var a={};if("string"!=typeof t||0===t.length)return a;var s=/\+/g;t=t.split(r);var u=1e3;i&&"number"==typeof i.maxKeys&&(u=i.maxKeys);var c=t.length;0<u&&c>u&&(c=u);for(var l=0;l<c;++l){var f,p,h,d,y=t[l].replace(s,"%20"),v=y.indexOf(o);0<=v?(f=y.substr(0,v),p=y.substr(v+1)):(f=y,p=""),h=decodeURIComponent(f),d=decodeURIComponent(p),e(a,h)?n(a[h])?a[h].push(d):a[h]=[a[h],d]:a[h]=d}return a};var n=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},function(t){"use strict";function e(t,e){if(t.map)return t.map(e);for(var n=[],r=0;r<t.length;r++)n.push(e(t[r],r));return n}var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=function(t){switch("undefined"==typeof t?"undefined":n(t)){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,a,s,u){return a=a||"&",s=s||"=",null===t&&(t=void 0),"object"===("undefined"==typeof t?"undefined":n(t))?e(i(t),function(n){var i=encodeURIComponent(r(n))+s;return o(t[n])?e(t[n],function(t){return i+encodeURIComponent(r(t))}).join(a):i+encodeURIComponent(r(t[n]))}).join(a):u?encodeURIComponent(r(u))+s+encodeURIComponent(r(t)):""};var o=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},i=Object.keys||function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push(n);return e}},function(t,e,n){"use strict";var r=n(234),o=n(242),i=o(function(t,e,n){return e=e.toLowerCase(),t+(n?r(e):e)});t.exports=i},function(t,e,n){"use strict";var r=n(14),o=n(235);t.exports=function(t){return o(r(t).toLowerCase())}},function(t,e,n){"use strict";var r=n(236),o=r("toUpperCase");t.exports=o},function(t,e,n){"use strict";var r=n(237),o=n(86),i=n(239),a=n(14);t.exports=function(t){return function(e){e=a(e);var n=o(e)?i(e):void 0,s=n?n[0]:e.charAt(0),u=n?r(n,1).join(""):e.slice(1);return s[t]()+u}}},function(t,e,n){"use strict";var r=n(238);t.exports=function(t,e,n){var o=t.length;return n=void 0===n?o:n,!e&&n>=o?t:r(t,e,n)}},function(t){"use strict";t.exports=function(t,e,n){var r=-1,o=t.length;0>e&&(e=-e>o?0:o+e),n=n>o?o:n,0>n&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var i=Array(o);++r<o;)i[r]=t[r+e];return i}},function(t,e,n){"use strict";var r=n(240),o=n(86),i=n(241);t.exports=function(t){return o(t)?i(t):r(t)}},function(t){"use strict";t.exports=function(t){return t.split("")}},function(t){"use strict";var e="\\ud800-\\udfff",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\\ud83c[\\udffb-\\udfff]",o="[^"+e+"]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:"+n+"|"+r+")?",u="[\\ufe0e\\ufe0f]?",c="(?:\\u200d(?:"+[o,i,a].join("|")+")"+u+s+")*",l="(?:"+[o+n+"?",n,i,a,"["+e+"]"].join("|")+")",f=RegExp(r+"(?="+r+")|"+l+(u+s+c),"g");t.exports=function(t){return t.match(f)||[]}},function(t,e,n){"use strict";var r=n(46),o=n(243),i=n(246),a=/['’]/g;t.exports=function(t){return function(e){return r(i(o(e).replace(a,"")),t,"")}}},function(t,e,n){"use strict";var r=n(244),o=n(14),i=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=/[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]/g;t.exports=function(t){return t=o(t),t&&t.replace(i,r).replace(a,"")}},function(t,e,n){"use strict";var r=n(245),o=r({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"});t.exports=o},function(t){"use strict";t.exports=function(t){return function(e){return null==t?void 0:t[e]}}},function(t,e,n){"use strict";var r=n(247),o=n(248),i=n(14),a=n(249);t.exports=function(t,e,n){return t=i(t),e=n?void 0:e,void 0===e?o(t)?a(t):r(t):t.match(e)||[]}},function(t){"use strict";var e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;t.exports=function(t){return t.match(e)||[]}},function(t){"use strict";var e=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;t.exports=function(t){return e.test(t)}},function(t){"use strict";var e="\\ud800-\\udfff",n="\\u2700-\\u27bf",r="a-z\\xdf-\\xf6\\xf8-\\xff",o="A-Z\\xc0-\\xd6\\xd8-\\xde",i="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="['’]",s="["+i+"]",u="\\d+",c="["+r+"]",l="[^"+e+i+u+n+r+o+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",h="["+o+"]",d="(?:"+c+"|"+l+")",y="(?:"+a+"(?:d|ll|m|re|s|t|ve))?",v="(?:"+a+"(?:D|LL|M|RE|S|T|VE))?",m="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",_="[\\ufe0e\\ufe0f]?",g="(?:\\u200d(?:"+["[^"+e+"]",f,p].join("|")+")"+_+m+")*",b="(?:"+["["+n+"]",f,p].join("|")+")"+(_+m+g),w=RegExp([h+"?"+c+"+"+y+"(?="+[s,h,"$"].join("|")+")","(?:"+h+"|"+l+")+"+v+"(?="+[s,h+d,"$"].join("|")+")",h+"?"+d+"+"+y,h+"+"+v,"\\d*(?:(?:1ST|2ND|3RD|(?![123])\\dTH)\\b)","\\d*(?:(?:1st|2nd|3rd|(?![123])\\dth)\\b)",u,b].join("|"),"g");t.exports=function(t){return t.match(w)||[]}}])})}).call(e,n(715).setImmediate,n(715).clearImmediate)},812:function(t,e,n){(function(t,e){!function(t,n){"use strict";function r(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var r={callback:t,args:e};return y[d]=r,h(d),d++}function o(t){delete y[t]}function i(t){var e=t.callback,r=t.args;switch(r.length){case 0:e();break;case 1:e(r[0]);break;case 2:e(r[0],r[1]);break;case 3:e(r[0],r[1],r[2]);break;default:e.apply(n,r)}}function a(t){if(v)setTimeout(a,0,t);else{var e=y[t];if(e){v=!0;try{i(e)}finally{o(t),v=!1}}}}function s(){h=function(t){e.nextTick(function(){a(t)})}}function u(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}function c(){var e="setImmediate$"+Math.random()+"$",n=function(n){n.source===t&&"string"==typeof n.data&&0===n.data.indexOf(e)&&a(+n.data.slice(e.length))};t.addEventListener?t.addEventListener("message",n,!1):t.attachEvent("onmessage",n),h=function(n){t.postMessage(e+n,"*")}}function l(){var t=new MessageChannel;t.port1.onmessage=function(t){var e=t.data;a(e)},h=function(e){t.port2.postMessage(e)}}function f(){var t=m.documentElement;h=function(e){var n=m.createElement("script");n.onreadystatechange=function(){a(e),n.onreadystatechange=null,t.removeChild(n),n=null},t.appendChild(n)}}function p(){h=function(t){setTimeout(a,0,t)}}if(!t.setImmediate){var h,d=1,y={},v=!1,m=t.document,_=Object.getPrototypeOf&&Object.getPrototypeOf(t);_=_&&_.setTimeout?_:t,"[object process]"==={}.toString.call(t.process)?s():u()?c():t.MessageChannel?l():m&&"onreadystatechange"in m.createElement("script")?f():p(),_.setImmediate=r,_.clearImmediate=o}}("undefined"==typeof self?"undefined"==typeof t?this:t:self)}).call(e,function(){return this}(),n(38))},715:function(t,e,n){(function(t){function r(t,e){this._id=t,this._clearFn=e}var o=Function.prototype.apply;e.setTimeout=function(){return new r(o.call(setTimeout,window,arguments),clearTimeout)},e.setInterval=function(){return new r(o.call(setInterval,window,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(window,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(812),e.setImmediate="undefined"!=typeof self&&self.setImmediate||"undefined"!=typeof t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||"undefined"!=typeof t&&t.clearImmediate||this&&this.clearImmediate}).call(e,function(){return this}())},915:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=n(1),u=r(s),c=n(729),l=r(c),f=n(1046),p=r(f),h=n(808),d=r(h),y=n(1032),v=r(y),m=function(t){function e(){return o(this,e),i(this,t.apply(this,arguments))}return a(e,t),e.prototype.getList=function(){var t=[];return this.props.projectEdges.forEach(function(e){t.push({path:e.node.fields.slug,cover:e.node.frontmatter.cover.childImageSharp.sizes,client:e.node.frontmatter.client,platform:e.node.frontmatter.platform,imageURL:e.node.frontmatter.cover.childImageSharp.sizes.src})}),t},e.prototype.render=function(){var t=this.getList();return u.default.createElement("div",{className:v.default.base},t.map(function(t){return u.default.createElement("div",{key:t.path,className:v.default.wrapper},u.default.createElement("div",{className:v.default.content},u.default.createElement("div",{className:v.default.image},u.default.createElement(p.default,{sizes:t.cover})),u.default.createElement(l.default,{to:t.path,key:t.path,className:v.default.link},u.default.createElement(d.default,{image:t.imageURL},function(t){return u.default.createElement("div",{className:v.default.overlay,style:{backgroundColor:t.vibrant}})}),u.default.createElement("h2",{className:v.default.client,key:t.client},t.client),u.default.createElement("div",{className:v.default.platform,key:t.platform},t.platform))))}))},e}(u.default.PureComponent);e.default=m,t.exports=e.default},1032:function(t,e){t.exports={base:"src-components-ProjectListing----ProjectListing-module---base---1Mw9Z",wrapper:"src-components-ProjectListing----ProjectListing-module---wrapper---2iw-5",content:"src-components-ProjectListing----ProjectListing-module---content---1J9Nr",image:"src-components-ProjectListing----ProjectListing-module---image---1zs0X",overlay:"src-components-ProjectListing----ProjectListing-module---overlay---2HwJb"}},920:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.pageQuery=void 0;var o=n(1),i=r(o),a=n(47),s=r(a),u=n(24),c=r(u),l=n(915),f=r(l),p=n(717),h=r(p),d=function(t){var e=t.data.allMarkdownRemark.edges;return i.default.createElement("div",{className:"container index-container"},i.default.createElement(s.default,null,i.default.createElement("title",null,c.default.siteTitle)),i.default.createElement("div",null,i.default.createElement(f.default,{projectEdges:e})),i.default.createElement(h.default,null))};e.default=d;e.pageQuery="** extracted graphql fragment **"}});
//# sourceMappingURL=component---src-pages-index-jsx-428ad3912175bc3d0207.js.map