text: !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t(e.ReactColor={},e.React)}(this,(function(e,t){"use strict";var r="default"in t?t.default:t,n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function a(e,t){return e(t={exports:{}},t.exports),t.exports}var i="object"==typeof n&&n&&n.Object===Object&&n,l="object"==typeof self&&self&&self.Object===Object&&self,s=i||l||Function("return this")(),c=s.Symbol,u=Object.prototype,p=u.hasOwnProperty,h=u.toString,f=c?c.toStringTag:void 0,d=Object.prototype.toString,b=c?c.toStringTag:void 0,g=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":b&&b in Object(e)?function(e){var t=p.call(e,f),r=e[f];try{e[f]=void 0;var n=!0}catch(e){}var o=h.call(e);return n&&(t?e[f]=r:delete e[f]),o}(e):function(e){return d.call(e)}(e)},v=Array.isArray,x=function(e){return null!=e&&"object"==typeof e},y=function(e){return"string"==typeof e||!v(e)&&x(e)&&"[object String]"==g(e)},m=function(e,t,r){for(var n=-1,o=Object(e),a=r(e),i=a.length;i--;){var l=a[++n];if(!1===t(o[l],l,o))break}return e},w=function(e){return x(e)&&"[object Arguments]"==g(e)},E=Object.prototype,_=E.hasOwnProperty,C=E.propertyIsEnumerable,S=w(function(){return arguments}())?w:function(e){return x(e)&&_.call(e,"callee")&&!C.call(e,"callee")},k=function(){return!1},j=a((function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r?s.Buffer:void 0,a=(o?o.isBuffer:void 0)||k;e.exports=a})),O=/^(?:0|[1-9]\d*)$/,R=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&O.test(e))&&e>-1&&e%1==0&&e<t},A=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},F={};F["[object Float32Array]"]=F["[object Float64Array]"]=F["[object Int8Array]"]=F["[object Int16Array]"]=F["[object Int32Array]"]=F["[object Uint8Array]"]=F["[object Uint8ClampedArray]"]=F["[object Uint16Array]"]=F["[object Uint32Array]"]=!0,F["[object Arguments]"]=F["[object Array]"]=F["[object ArrayBuffer]"]=F["[object Boolean]"]=F["[object DataView]"]=F["[object Date]"]=F["[object Error]"]=F["[object Function]"]=F["[object Map]"]=F["[object Number]"]=F["[object Object]"]=F["[object RegExp]"]=F["[object Set]"]=F["[object String]"]=F["[object WeakMap]"]=!1;var B=function(e){return function(t){return e(t)}},M=a((function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r&&i.process,a=function(){try{return n&&n.require&&n.require("util").types||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a})),H=M&&M.isTypedArray,P=H?B(H):function(e){return x(e)&&A(e.length)&&!!F[g(e)]},T=Object.prototype.hasOwnProperty,D=function(e,t){var r=v(e),n=!r&&S(e),o=!r&&!n&&j(e),a=!r&&!n&&!o&&P(e),i=r||n||o||a,l=i?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],s=l.length;for(var c in e)!t&&!T.call(e,c)||i&&("length"==c||o&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||R(c,s))||l.push(c);return l},z=Object.prototype,L=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||z)},N=function(e,t){return function(r){return e(t(r))}},G=N(Object.keys,Object),U=Object.prototype.hasOwnProperty,I=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},W=function(e){if(!I(e))return!1;var t=g(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},X=function(e){return null!=e&&A(e.length)&&!W(e)},V=function(e){return X(e)?D(e):function(e){if(!L(e))return G(e);var t=[];for(var r in Object(e))U.call(e,r)&&"constructor"!=r&&t.push(r);return t}(e)},$=function(e,t){return e&&m(e,t,V)},q=function(e){return e},Y=function(e){return"function"==typeof e?e:q},K=function(e,t){return e&&$(e,Y(t))},Z=N(Object.getPrototypeOf,Object),J=Function.prototype,Q=Object.prototype,ee=J.toString,te=Q.hasOwnProperty,re=ee.call(Object),ne=function(e){if(!x(e)||"[object Object]"!=g(e))return!1;var t=Z(e);if(null===t)return!0;var r=te.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&ee.call(r)==re},oe=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o},ae=function(e,t){return e===t||e!=e&&t!=t},ie=function(e,t){for(var r=e.length;r--;)if(ae(e[r][0],t))return r;return-1},le=Array.prototype.splice;function se(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}se.prototype.clear=function(){this.__data__=[],this.size=0},se.prototype.delete=function(e){var t=this.__data__,r=ie(t,e);return!(r<0||(r==t.length-1?t.pop():le.call(t,r,1),--this.size,0))},se.prototype.get=function(e){var t=this.__data__,r=ie(t,e);return r<0?void 0:t[r][1]},se.prototype.has=function(e){return ie(this.__data__,e)>-1},se.prototype.set=function(e,t){var r=this.__data__,n=ie(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var ce,ue=se,pe=s["__core-js_shared__"],he=(ce=/[^.]+$/.exec(pe&&pe.keys&&pe.keys.IE_PROTO||""))?"Symbol(src)_1."+ce:"",fe=Function.prototype.toString,de=function(e){if(null!=e){try{return fe.call(e)}catch(e){}try{return e+""}catch(e){}}return""},be=/^\[object .+?Constructor\]$/,ge=Function.prototype,ve=Object.prototype,xe=ge.toString,ye=ve.hasOwnProperty,me=RegExp("^"+xe.call(ye).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),we=function(e){return!(!I(e)||function(e){return!!he&&he in e}(e))&&(W(e)?me:be).test(de(e))},Ee=function(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return we(r)?r:void 0},_e=Ee(s,"Map"),Ce=Ee(Object,"create"),Se=Object.prototype.hasOwnProperty,ke=Object.prototype.hasOwnProperty;function je(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}je.prototype.clear=function(){this.__data__=Ce?Ce(null):{},this.size=0},je.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},je.prototype.get=function(e){var t=this.__data__;if(Ce){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return Se.call(t,e)?t[e]:void 0},je.prototype.has=function(e){var t=this.__data__;return Ce?void 0!==t[e]:ke.call(t,e)},je.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ce&&void 0===t?"__lodash_hash_undefined__":t,this};var Oe=je,Re=function(e,t){var r=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?r["string"==typeof t?"string":"hash"]:r.map};function Ae(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ae.prototype.clear=function(){this.size=0,this.__data__={hash:new Oe,map:new(_e||ue),string:new Oe}},Ae.prototype.delete=function(e){var t=Re(this,e).delete(e);return this.size-=t?1:0,t},Ae.prototype.get=function(e){return Re(this,e).get(e)},Ae.prototype.has=function(e){return Re(this,e).has(e)},Ae.prototype.set=function(e,t){var r=Re(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};var Fe=Ae;function Be(e){var t=this.__data__=new ue(e);this.size=t.size}Be.prototype.clear=function(){this.__data__=new ue,this.size=0},Be.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Be.prototype.get=function(e){return this.__data__.get(e)},Be.prototype.has=function(e){return this.__data__.has(e)},Be.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ue){var n=r.__data__;if(!_e||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Fe(n)}return r.set(e,t),this.size=r.size,this};var Me=Be;function He(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Fe;++t<r;)this.add(e[t])}He.prototype.add=He.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},He.prototype.has=function(e){return this.__data__.has(e)};var Pe=He,Te=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1},De=function(e,t){return e.has(t)},ze=function(e,t,r,n,o,a){var i=1&r,l=e.length,s=t.length;if(l!=s&&!(i&&s>l))return!1;var c=a.get(e);if(c&&a.get(t))return c==t;var u=-1,p=!0,h=2&r?new Pe:void 0;for(a.set(e,t),a.set(t,e);++u<l;){var f=e[u],d=t[u];if(n)var b=i?n(d,f,u,t,e,a):n(f,d,u,e,t,a);if(void 0!==b){if(b)continue;p=!1;break}if(h){if(!Te(t,(function(e,t){if(!De(h,t)&&(f===e||o(f,e,r,n,a)))return h.push(t)}))){p=!1;break}}else if(f!==d&&!o(f,d,r,n,a)){p=!1;break}}return a.delete(e),a.delete(t),p},Le=s.Uint8Array,Ne=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r},Ge=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r},Ue=c?c.prototype:void 0,Ie=Ue?Ue.valueOf:void 0,We=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e},Xe=function(e,t,r){var n=t(e);return v(e)?n:We(n,r(e))},Ve=function(){return[]},$e=Object.prototype.propertyIsEnumerable,qe=Object.getOwnPropertySymbols,Ye=qe?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,a=[];++r<n;){var i=e[r];t(i,r,e)&&(a[o++]=i)}return a}(qe(e),(function(t){return $e.call(e,t)})))}:Ve,Ke=function(e){return Xe(e,V,Ye)},Ze=Object.prototype.hasOwnProperty,Je=Ee(s,"DataView"),Qe=Ee(s,"Promise"),et=Ee(s,"Set"),tt=Ee(s,"WeakMap"),rt=de(Je),nt=de(_e),ot=de(Qe),at=de(et),it=de(tt),lt=g;(Je&&"[object DataView]"!=lt(new Je(new ArrayBuffer(1)))||_e&&"[object Map]"!=lt(new _e)||Qe&&"[object Promise]"!=lt(Qe.resolve())||et&&"[object Set]"!=lt(new et)||tt&&"[object WeakMap]"!=lt(new tt))&&(lt=function(e){var t=g(e),r="[object Object]"==t?e.constructor:void 0,n=r?de(r):"";if(n)switch(n){case rt:return"[object DataView]";case nt:return"[object Map]";case ot:return"[object Promise]";case at:return"[object Set]";case it:return"[object WeakMap]"}return t});var st=lt,ct="[object Arguments]",ut="[object Array]",pt="[object Object]",ht=Object.prototype.hasOwnProperty,ft=function(e,t,r,n,o,a){var i=v(e),l=v(t),s=i?ut:st(e),c=l?ut:st(t),u=(s=s==ct?pt:s)==pt,p=(c=c==ct?pt:c)==pt,h=s==c;if(h&&j(e)){if(!j(t))return!1;i=!0,u=!1}if(h&&!u)return a||(a=new Me),i||P(e)?ze(e,t,r,n,o,a):function(e,t,r,n,o,a,i){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!a(new Le(e),new Le(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return ae(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var l=Ne;case"[object Set]":var s=1&n;if(l||(l=Ge),e.size!=t.size&&!s)return!1;var c=i.get(e);if(c)return c==t;n|=2,i.set(e,t);var u=ze(l(e),l(t),n,o,a,i);return i.delete(e),u;case"[object Symbol]":if(Ie)return Ie.call(e)==Ie.call(t)}return!1}(e,t,s,r,n,o,a);if(!(1&r)){var f=u&&ht.call(e,"__wrapped__"),d=p&&ht.call(t,"__wrapped__");if(f||d){var b=f?e.value():e,g=d?t.value():t;return a||(a=new Me),o(b,g,r,n,a)}}return!!h&&(a||(a=new Me),function(e,t,r,n,o,a){var i=1&r,l=Ke(e),s=l.length;if(s!=Ke(t).length&&!i)return!1;for(var c=s;c--;){var u=l[c];if(!(i?u in t:Ze.call(t,u)))return!1}var p=a.get(e);if(p&&a.get(t))return p==t;var h=!0;a.set(e,t),a.set(t,e);for(var f=i;++c<s;){var d=e[u=l[c]],b=t[u];if(n)var g=i?n(b,d,u,t,e,a):n(d,b,u,e,t,a);if(!(void 0===g?d===b||o(d,b,r,n,a):g)){h=!1;break}f||(f="constructor"==u)}if(h&&!f){var v=e.constructor,x=t.constructor;v!=x&&"constructor"in e&&"constructor"in t&&!("function"==typeof v&&v instanceof v&&"function"==typeof x&&x instanceof x)&&(h=!1)}return a.delete(e),a.delete(t),h}(e,t,r,n,o,a))},dt=function e(t,r,n,o,a){return t===r||(null==t||null==r||!x(t)&&!x(r)?t!=t&&r!=r:ft(t,r,n,o,e,a))},bt=function(e){return e==e&&!I(e)},gt=function(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}},vt=function(e){var t=function(e){for(var t=V(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,bt(o)]}return t}(e);return 1==t.length&&t[0][2]?gt(t[0][0],t[0][1]):function(r){return r===e||function(e,t,r,n){var o=r.length,a=o,i=!n;if(null==e)return!a;for(e=Object(e);o--;){var l=r[o];if(i&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<a;){var s=(l=r[o])[0],c=e[s],u=l[1];if(i&&l[2]){if(void 0===c&&!(s in e))return!1}else{var p=new Me;if(n)var h=n(c,u,s,e,t,p);if(!(void 0===h?dt(u,c,3,n,p):h))return!1}}return!0}(r,e,t)}},xt=function(e){return"symbol"==typeof e||x(e)&&"[object Symbol]"==g(e)},yt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,mt=/^\w*$/,wt=function(e,t){if(v(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!xt(e))||mt.test(e)||!yt.test(e)||null!=t&&e in Object(t)};function Et(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(Et.Cache||Fe),r}Et.Cache=Fe;var _t=Et,Ct=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,St=/\\(\\)?/g,kt=function(e){var t=_t((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Ct,(function(e,r,n,o){t.push(n?o.replace(St,"$1"):r||e)})),t}),(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}(),jt=c?c.prototype:void 0,Ot=jt?jt.toString:void 0,Rt=function(e){return null==e?"":function e(t){if("string"==typeof t)return t;if(v(t))return oe(t,e)+"";if(xt(t))return Ot?Ot.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}(e)},At=function(e,t){return v(e)?e:wt(e,t)?[e]:kt(Rt(e))},Ft=function(e){if("string"==typeof e||xt(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},Bt=function(e,t){for(var r=0,n=(t=At(t,e)).length;null!=e&&r<n;)e=e[Ft(t[r++])];return r&&r==n?e:void 0},Mt=function(e,t){return null!=e&&t in Object(e)},Ht=function(e,t){return null!=e&&function(e,t,r){for(var n=-1,o=(t=At(t,e)).length,a=!1;++n<o;){var i=Ft(t[n]);if(!(a=null!=e&&r(e,i)))break;e=e[i]}return a||++n!=o?a:!!(o=null==e?0:e.length)&&A(o)&&R(i,o)&&(v(e)||S(e))}(e,t,Mt)},Pt=function(e,t){return wt(e)&&bt(t)?gt(Ft(e),t):function(r){var n=function(e,t,r){var n=null==e?void 0:Bt(e,t);return void 0===n?r:n}(r,e);return void 0===n&&n===t?Ht(r,e):dt(t,n,3)}},Tt=function(e){return wt(e)?function(e){return function(t){return null==t?void 0:t[e]}}(Ft(e)):function(e){return function(t){return Bt(t,e)}}(e)},Dt=function(e,t){return function(t,r){if(null==t)return t;if(!X(t))return e(t,r);for(var n=t.length,o=-1,a=Object(t);++o<n&&!1!==r(a[o],o,a););return t}}($),zt=function(e,t){var r=-1,n=X(e)?Array(e.length):[];return Dt(e,(function(e,o,a){n[++r]=t(e,o,a)})),n},Lt=function(e,t){return(v(e)?oe:zt)(e,function(e){return"function"==typeof e?e:null==e?q:"object"==typeof e?v(e)?Pt(e[0],e[1]):vt(e):Tt(e)}(t))},Nt=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.flattenNames=void 0;var r=i(y),n=i(K),o=i(ne),a=i(Lt);function i(e){return e&&e.__esModule?e:{default:e}}var l=t.flattenNames=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=[];return(0,a.default)(t,(function(t){Array.isArray(t)?e(t).map((function(e){return i.push(e)})):(0,o.default)(t)?(0,n.default)(t,(function(e,t){!0===e&&i.push(t),i.push(t+"-"+e)})):(0,r.default)(t)&&i.push(t)})),i};t.default=l}));o(Nt),Nt.flattenNames;var Gt=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e},Ut=function(){try{var e=Ee(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),It=function(e,t,r){"__proto__"==t&&Ut?Ut(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r},Wt=Object.prototype.hasOwnProperty,Xt=function(e,t,r){var n=e[t];Wt.call(e,t)&&ae(n,r)&&(void 0!==r||t in e)||It(e,t,r)},Vt=function(e,t,r,n){var o=!r;r||(r={});for(var a=-1,i=t.length;++a<i;){var l=t[a],s=n?n(r[l],e[l],l,r,e):void 0;void 0===s&&(s=e[l]),o?It(r,l,s):Xt(r,l,s)}return r},$t=Object.prototype.hasOwnProperty,qt=function(e){if(!I(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=L(e),r=[];for(var n in e)("constructor"!=n||!t&&$t.call(e,n))&&r.push(n);return r},Yt=function(e){return X(e)?D(e,!0):qt(e)},Kt=a((function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r?s.Buffer:void 0,a=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=a?a(r):new e.constructor(r);return e.copy(n),n}})),Zt=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)We(t,Ye(e)),e=Z(e);return t}:Ve,Jt=function(e){return Xe(e,Yt,Zt)},Qt=Object.prototype.hasOwnProperty,er=function(e){var t=new e.constructor(e.byteLength);return new Le(t).set(new Le(e)),t},tr=/\w*$/,rr=c?c.prototype:void 0,nr=rr?rr.valueOf:void 0,or=function(e,t,r){var n=e.constructor;switch(t){case"[object ArrayBuffer]":return er(e);case"[object Boolean]":case"[object Date]":return new n(+e);case"[object DataView]":return function(e,t){var r=t?er(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var r=t?er(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}(e,r);case"[object Map]":return new n;case"[object Number]":case"[object String]":return new n(e);case"[object RegExp]":return function(e){var t=new e.constructor(e.source,tr.exec(e));return t.lastIndex=e.lastIndex,t}(e);case"[object Set]":return new n;case"[object Symbol]":return function(e){return nr?Object(nr.call(e)):{}}(e)}},ar=Object.create,ir=function(){function e(){}return function(t){if(!I(t))return{};if(ar)return ar(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),lr=M&&M.isMap,sr=lr?B(lr):function(e){return x(e)&&"[object Map]"==st(e)},cr=M&&M.isSet,ur=cr?B(cr):function(e){return x(e)&&"[object Set]"==st(e)},pr="[object Arguments]",hr="[object Function]",fr="[object Object]",dr={};dr[pr]=dr["[object Array]"]=dr["[object ArrayBuffer]"]=dr["[object DataView]"]=dr["[object Boolean]"]=dr["[object Date]"]=dr["[object Float32Array]"]=dr["[object Float64Array]"]=dr["[object Int8Array]"]=dr["[object Int16Array]"]=dr["[object Int32Array]"]=dr["[object Map]"]=dr["[object Number]"]=dr[fr]=dr["[object RegExp]"]=dr["[object Set]"]=dr["[object String]"]=dr["[object Symbol]"]=dr["[object Uint8Array]"]=dr["[object Uint8ClampedArray]"]=dr["[object Uint16Array]"]=dr["[object Uint32Array]"]=!0,dr["[object Error]"]=dr[hr]=dr["[object WeakMap]"]=!1;var br=function e(t,r,n,o,a,i){var l,s=1&r,c=2&r,u=4&r;if(n&&(l=a?n(t,o,a,i):n(t)),void 0!==l)return l;if(!I(t))return t;var p=v(t);if(p){if(l=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&Qt.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(t),!s)return function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}(t,l)}else{var h=st(t),f=h==hr||"[object GeneratorFunction]"==h;if(j(t))return Kt(t,s);if(h==fr||h==pr||f&&!a){if(l=c||f?{}:function(e){return"function"!=typeof e.constructor||L(e)?{}:ir(Z(e))}(t),!s)return c?function(e,t){return Vt(e,Zt(e),t)}(t,function(e,t){return e&&Vt(t,Yt(t),e)}(l,t)):function(e,t){return Vt(e,Ye(e),t)}(t,function(e,t){return e&&Vt(t,V(t),e)}(l,t))}else{if(!dr[h])return a?t:{};l=or(t,h,s)}}i||(i=new Me);var d=i.get(t);if(d)return d;if(i.set(t,l),ur(t))return t.forEach((function(o){l.add(e(o,r,n,o,t,i))})),l;if(sr(t))return t.forEach((function(o,a){l.set(a,e(o,r,n,a,t,i))})),l;var b=u?c?Jt:Ke:c?keysIn:V,g=p?void 0:b(t);return Gt(g||t,(function(o,a){g&&(o=t[a=o]),Xt(l,a,e(o,r,n,a,t,i))})),l},gr=function(e){return br(e,5)},vr=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.mergeClasses=void 0;var r=a(K),n=a(gr),o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function a(e){return e&&e.__esModule?e:{default:e}}var i=t.mergeClasses=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=e.default&&(0,n.default)(e.default)||{};return t.map((function(t){var n=e[t];return n&&(0,r.default)(n,(function(e,t){a[t]||(a[t]={}),a[t]=o({},a[t],n[t])})),t})),a};t.default=i}));o(vr),vr.mergeClasses;var xr=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.autoprefix=void 0;var r,n=(r=K)&&r.__esModule?r:{default:r},o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},a={borderRadius:function(e){return{msBorderRadius:e,MozBorderRadius:e,OBorderRadius:e,WebkitBorderRadius:e,borderRadius:e}},boxShadow:function(e){return{msBoxShadow:e,MozBoxShadow:e,OBoxShadow:e,WebkitBoxShadow:e,boxShadow:e}},userSelect:function(e){return{WebkitTouchCallout:e,KhtmlUserSelect:e,MozUserSelect:e,msUserSelect:e,WebkitUserSelect:e,userSelect:e}},flex:function(e){return{WebkitBoxFlex:e,MozBoxFlex:e,WebkitFlex:e,msFlex:e,flex:e}},flexBasis:function(e){return{WebkitFlexBasis:e,flexBasis:e}},justifyContent:function(e){return{WebkitJustifyContent:e,justifyContent:e}},transition:function(e){return{msTransition:e,MozTransition:e,OTransition:e,WebkitTransition:e,transition:e}},transform:function(e){return{msTransform:e,MozTransform:e,OTransform:e,WebkitTransform:e,transform:e}},absolute:function(e){var t=e&&e.split(" ");return{position:"absolute",top:t&&t[0],right:t&&t[1],bottom:t&&t[2],left:t&&t[3]}},extend:function(e,t){return t[e]||{extend:e}}},i=t.autoprefix=function(e){var t={};return(0,n.default)(e,(function(e,r){var i={};(0,n.default)(e,(function(e,t){var r=a[t];r?i=o({},i,r(e)):i[t]=e})),t[r]=i})),t};t.default=i}));o(xr),xr.autoprefix;var yr=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.hover=void 0;var n,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},a=(n=r)&&n.__esModule?n:{default:n};function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var l=t.hover=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(r){function n(){var r,l,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var c=arguments.length,u=Array(c),p=0;p<c;p++)u[p]=arguments[p];return l=s=i(this,(r=n.__proto__||Object.getPrototypeOf(n)).call.apply(r,[this].concat(u))),s.state={hover:!1},s.handleMouseOver=function(){return s.setState({hover:!0})},s.handleMouseOut=function(){return s.setState({hover:!1})},s.render=function(){return a.default.createElement(t,{onMouseOver:s.handleMouseOver,onMouseOut:s.handleMouseOut},a.default.createElement(e,o({},s.props,s.state)))},i(s,l)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,a.default.Component),n}()};t.default=l}));o(yr),yr.hover;var mr=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.active=void 0;var n,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},a=(n=r)&&n.__esModule?n:{default:n};function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var l=t.active=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(r){function n(){var r,l,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var c=arguments.length,u=Array(c),p=0;p<c;p++)u[p]=arguments[p];return l=s=i(this,(r=n.__proto__||Object.getPrototypeOf(n)).call.apply(r,[this].concat(u))),s.state={active:!1},s.handleMouseDown=function(){return s.setState({active:!0})},s.handleMouseUp=function(){return s.setState({active:!1})},s.render=function(){return a.default.createElement(t,{onMouseDown:s.handleMouseDown,onMouseUp:s.handleMouseUp},a.default.createElement(e,o({},s.props,s.state)))},i(s,l)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,a.default.Component),n}()};t.default=l}));o(mr),mr.active;var wr=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r={},n=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];r[e]=t};return 0===e&&n("first-child"),e===t-1&&n("last-child"),(0===e||e%2==0)&&n("even"),1===Math.abs(e%2)&&n("odd"),n("nth-child",e),r}}));o(wr);var Er=a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ReactCSS=t.loop=t.handleActive=t.handleHover=t.hover=void 0;var r=s(Nt),n=s(vr),o=s(xr),a=s(yr),i=s(mr),l=s(wr);function s(e){return e&&e.__esModule?e:{default:e}}t.hover=a.default,t.handleHover=a.default,t.handleActive=i.default,t.loop=l.default;var c=t.ReactCSS=function(e){for(var t=arguments.length,a=Array(t>1?t-1:0),i=1;i<t;i++)a[i-1]=arguments[i];var l=(0,r.default)(a),s=(0,n.default)(e,l);return(0,o.default)(s)};t.default=c})),_r=o(Er),Cr=(Er.ReactCSS,Er.loop,Er.handleActive,Er.handleHover),Sr=(Er.hover,function(e,t,r,n){e.preventDefault();var o=n.clientWidth,a=n.clientHeight,i="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,l="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,s=i-(n.getBoundingClientRect().left+window.pageXOffset),c=l-(n.getBoundingClientRect().top+window.pageYOffset);if("vertical"===r.direction){var u;if(u=c<0?0:c>a?1:Math.round(100*c/a)/100,r.hsl.a!==u)return{h:r.hsl.h,s:r.hsl.s,l:r.hsl.l,a:u,source:"rgb"}}else{var p;if(p=s<0?0:s>o?1:Math.round(100*s/o)/100,r.a!==p)return{h:r.hsl.h,s:r.hsl.s,l:r.hsl.l,a:p,source:"rgb"}}return null}),kr={},jr=function(e,t,r,n){var o=e+"-"+t+"-"+r+(n?"-server":""),a=function(e,t,r,n){if("undefined"==typeof document&&!n)return null;var o=n?new n:document.createElement("canvas");o.width=2*r,o.height=2*r;var a=o.getContext("2d");return a?(a.fillStyle=e,a.fillRect(0,0,o.width,o.height),a.fillStyle=t,a.fillRect(0,0,r,r),a.translate(r,r),a.fillRect(0,0,r,r),o.toDataURL()):null}(e,t,r,n);return kr[o]?kr[o]:(kr[o]=a,a)},Or=function(e){var t=e.white,n=e.grey,o=e.size,a=e.renderers,i=e.borderRadius,l=e.boxShadow,s=_r({default:{grid:{borderRadius:i,boxShadow:l,absolute:"0px 0px 0px 0px",background:"url("+jr(t,n,o,a.canvas)+") center left"}}});return r.createElement("div",{style:s.grid})};Or.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var Rr=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Ar=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),Fr=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},Br=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Mr=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},Hr=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},Pr=function(e){function t(){var e,r,n;Rr(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=n=Hr(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),n.handleChange=function(e,t){var r=Sr(e,t,n.props,n.container);r&&n.props.onChange&&n.props.onChange(r,e)},n.handleMouseDown=function(e){n.handleChange(e,!0),window.addEventListener("mousemove",n.handleChange),window.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleChange),window.removeEventListener("mouseup",n.handleMouseUp)},Hr(n,r)}return Mr(t,e),Ar(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var e=this,t=this.props.rgb,n=_r({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n           rgba("+t.r+","+t.g+","+t.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:100*t.a+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n           rgba("+t.r+","+t.g+","+t.b+", 1) 100%)"},pointer:{left:0,top:100*t.a+"%"}},overwrite:Br({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return r.createElement("div",{style:n.alpha},r.createElement("div",{style:n.checkboard},r.createElement(Or,{renderers:this.props.renderers})),r.createElement("div",{style:n.gradient}),r.createElement("div",{style:n.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},r.createElement("div",{style:n.pointer},this.props.pointer?r.createElement(this.props.pointer,this.props):r.createElement("div",{style:n.slider}))))}}]),t}(t.PureComponent||t.Component),Tr=function(e){function t(e){Rr(this,t);var r=Hr(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.handleBlur=function(){r.state.blurValue&&r.setState({value:r.state.blurValue,blurValue:null})},r.handleChange=function(e){r.props.label?r.props.onChange&&r.props.onChange(Fr({},r.props.label,e.target.value),e):r.props.onChange&&r.props.onChange(e.target.value,e),r.setState({value:e.target.value})},r.handleKeyDown=function(e){var t=String(e.target.value),n=t.indexOf("%")>-1,o=Number(t.replace(/%/g,""));if(!isNaN(o)){var a=r.props.arrowOffset||1;38===e.keyCode&&(null!==r.props.label?r.props.onChange&&r.props.onChange(Fr({},r.props.label,o+a),e):r.props.onChange&&r.props.onChange(o+a,e),n?r.setState({value:o+a+"%"}):r.setState({value:o+a})),40===e.keyCode&&(null!==r.props.label?r.props.onChange&&r.props.onChange(Fr({},r.props.label,o-a),e):r.props.onChange&&r.props.onChange(o-a,e),n?r.setState({value:o-a+"%"}):r.setState({value:o-a}))}},r.handleDrag=function(e){if(r.props.dragLabel){
  var t=Math.round(r.props.value+e.movementX);t>=0&&t<=r.props.dragMax&&r.props.onChange&&r.props.onChange(Fr({},r.props.label,t),e)}},r.handleMouseDown=function(e){r.props.dragLabel&&(e.preventDefault(),r.handleDrag(e),window.addEventListener("mousemove",r.handleDrag),window.addEventListener("mouseup",r.handleMouseUp))},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleDrag),window.removeEventListener("mouseup",r.handleMouseUp)},r.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},r}return Mr(t,e),Ar(t,[{key:"componentWillReceiveProps",value:function(e){var t=this.input;e.value!==this.state.value&&(t===document.activeElement?this.setState({blurValue:String(e.value).toUpperCase()}):this.setState({value:String(e.value).toUpperCase(),blurValue:!this.state.blurValue&&String(e.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var e=this,t=_r({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return r.createElement("div",{style:t.wrap},r.createElement("input",{style:t.input,ref:function(t){return e.input=t},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?r.createElement("span",{style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(t.PureComponent||t.Component),Dr=function(e,t,r,n){e.preventDefault();var o=n.clientWidth,a=n.clientHeight,i="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,l="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,s=i-(n.getBoundingClientRect().left+window.pageXOffset),c=l-(n.getBoundingClientRect().top+window.pageYOffset);if("vertical"===r.direction){var u=void 0;if(u=c<0?359:c>a?0:360*(-100*c/a+100)/100,r.hsl.h!==u)return{h:u,s:r.hsl.s,l:r.hsl.l,a:r.hsl.a,source:"rgb"}}else{var p=void 0;if(p=s<0?0:s>o?359:100*s/o*360/100,r.hsl.h!==p)return{h:p,s:r.hsl.s,l:r.hsl.l,a:r.hsl.a,source:"rgb"}}return null},zr=function(e){function t(){var e,r,n;Rr(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=n=Hr(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),n.handleChange=function(e,t){var r=Dr(e,0,n.props,n.container);r&&n.props.onChange&&n.props.onChange(r,e)},n.handleMouseDown=function(e){n.handleChange(e,!0),window.addEventListener("mousemove",n.handleChange),window.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},Hr(n,r)}return Mr(t,e),Ar(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.direction,n=void 0===t?"horizontal":t,o=_r({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:100*this.props.hsl.h/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-100*this.props.hsl.h/360+100+"%"}}},{vertical:"vertical"===n});return r.createElement("div",{style:o.hue},r.createElement("div",{className:"hue-"+n,style:o.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},r.createElement("style",null,"\n            .hue-horizontal {\n              background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n                33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n              background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n                17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n            }\n\n            .hue-vertical {\n              background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n                #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n              background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n                #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n            }\n          "),r.createElement("div",{style:o.pointer},this.props.pointer?r.createElement(this.props.pointer,this.props):r.createElement("div",{style:o.slider}))))}}]),t}(t.PureComponent||t.Component);function Lr(e){return function(){return e}}var Nr=function(){};Nr.thatReturns=Lr,Nr.thatReturnsFalse=Lr(!1),Nr.thatReturnsTrue=Lr(!0),Nr.thatReturnsNull=Lr(null),Nr.thatReturnsThis=function(){return this},Nr.thatReturnsArgument=function(e){return e};var Gr=Nr,Ur=a((function(e){e.exports=function(){function e(e,t,r,n,o,a){"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==a&&function(e,t,r,n,o,a,i,l){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,n,o,a,i,l],u=0;(s=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw s.framesToPop=1,s}}(!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")}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return r.checkPropTypes=Gr,r.PropTypes=r,r}()})),Ir=function(e){var t=e.zDepth,n=e.radius,o=e.background,a=e.children,i=_r({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+t+"px "+4*t+"px rgba(0,0,0,.24)",borderRadius:n,background:o}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},{"zDepth-1":1===t});return r.createElement("div",{style:i.wrap},r.createElement("div",{style:i.bg}),r.createElement("div",{style:i.content},a))};Ir.propTypes={background:Ur.string,zDepth:Ur.oneOf([0,1,2,3,4,5]),radius:Ur.number},Ir.defaultProps={background:"#fff",zDepth:1,radius:2};var Wr=function(){return s.Date.now()},Xr=/^\s+|\s+$/g,Vr=/^[-+]0x[0-9a-f]+$/i,$r=/^0b[01]+$/i,qr=/^0o[0-7]+$/i,Yr=parseInt,Kr=function(e){if("number"==typeof e)return e;if(xt(e))return NaN;if(I(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=I(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Xr,"");var r=$r.test(e);return r||qr.test(e)?Yr(e.slice(2),r?2:8):Vr.test(e)?NaN:+e},Zr=Math.max,Jr=Math.min,Qr=function(e,t,r){var n,o,a,i,l,s,c=0,u=!1,p=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var r=n,a=o;return n=o=void 0,c=t,i=e.apply(a,r)}function d(e){var r=e-s;return void 0===s||r>=t||r<0||p&&e-c>=a}function b(){var e=Wr();if(d(e))return g(e);l=setTimeout(b,function(e){var r=t-(e-s);return p?Jr(r,a-(e-c)):r}(e))}function g(e){return l=void 0,h&&n?f(e):(n=o=void 0,i)}function v(){var e=Wr(),r=d(e);if(n=arguments,o=this,s=e,r){if(void 0===l)return function(e){return c=e,l=setTimeout(b,t),u?f(e):i}(s);if(p)return l=setTimeout(b,t),f(s)}return void 0===l&&(l=setTimeout(b,t)),i}return t=Kr(t)||0,I(r)&&(u=!!r.leading,a=(p="maxWait"in r)?Zr(Kr(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h),v.cancel=function(){void 0!==l&&clearTimeout(l),c=0,n=s=o=l=void 0},v.flush=function(){return void 0===l?i:g(Wr())},v},en=function(e){function t(e){Rr(this,t);var r=Hr(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.handleChange=function(e,t){r.props.onChange&&r.throttle(r.props.onChange,function(e,t,r,n){e.preventDefault();var o=n.getBoundingClientRect(),a=o.width,i=o.height,l="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,c=l-(n.getBoundingClientRect().left+window.pageXOffset),u=s-(n.getBoundingClientRect().top+window.pageYOffset);c<0?c=0:c>a?c=a:u<0?u=0:u>i&&(u=i);var p=100*c/a,h=-100*u/i+100;return{h:r.hsl.h,s:p,v:h,a:r.hsl.a,source:"rgb"}}(e,0,r.props,r.container),e)},r.handleMouseDown=function(e){r.handleChange(e,!0),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r.throttle=function(e,t,r){var n=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return I(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),Qr(e,t,{leading:n,maxWait:t,trailing:o})}((function(e,t,r){e(t,r)}),50),r}return Mr(t,e),Ar(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.style||{},n=t.color,o=t.white,a=t.black,i=t.pointer,l=t.circle,s=_r({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-100*this.props.hsv.v+100+"%",left:100*this.props.hsv.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:"0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n            0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:n,white:o,black:a,pointer:i,circle:l}},{custom:!!this.props.style});return r.createElement("div",{style:s.color,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},r.createElement("style",null,"\n          .saturation-white {\n            background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n            background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n          }\n          .saturation-black {\n            background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n            background: linear-gradient(to top, #000, rgba(0,0,0,0));\n          }\n        "),r.createElement("div",{style:s.white,className:"saturation-white"},r.createElement("div",{style:s.black,className:"saturation-black"}),r.createElement("div",{style:s.pointer},this.props.pointer?r.createElement(this.props.pointer,this.props):r.createElement("div",{style:s.circle}))))}}]),t}(t.PureComponent||t.Component),tn=a((function(e){!function(t){var r=/^\s+/,n=/\s+$/,o=0,a=t.round,i=t.min,l=t.max,s=t.random;function c(e,s){if(s=s||{},(e=e||"")instanceof c)return e;if(!(this instanceof c))return new c(e,s);var u=function(e){var o,a,s,c={r:0,g:0,b:0},u=1,p=null,h=null,f=null,d=!1,b=!1;return"string"==typeof e&&(e=function(e){e=e.replace(r,"").replace(n,"").toLowerCase();var t,o=!1;if(j[e])e=j[e],o=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=N.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=N.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=N.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=N.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=N.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=N.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=N.hex8.exec(e))?{r:B(t[1]),g:B(t[2]),b:B(t[3]),a:T(t[4]),format:o?"name":"hex8"}:(t=N.hex6.exec(e))?{r:B(t[1]),g:B(t[2]),b:B(t[3]),format:o?"name":"hex"}:(t=N.hex4.exec(e))?{r:B(t[1]+""+t[1]),g:B(t[2]+""+t[2]),b:B(t[3]+""+t[3]),a:T(t[4]+""+t[4]),format:o?"name":"hex8"}:!!(t=N.hex3.exec(e))&&{r:B(t[1]+""+t[1]),g:B(t[2]+""+t[2]),b:B(t[3]+""+t[3]),format:o?"name":"hex"}}(e)),"object"==typeof e&&(G(e.r)&&G(e.g)&&G(e.b)?(o=e.r,a=e.g,s=e.b,c={r:255*A(o,255),g:255*A(a,255),b:255*A(s,255)},d=!0,b="%"===String(e.r).substr(-1)?"prgb":"rgb"):G(e.h)&&G(e.s)&&G(e.v)?(p=H(e.s),h=H(e.v),c=function(e,r,n){e=6*A(e,360),r=A(r,100),n=A(n,100);var o=t.floor(e),a=e-o,i=n*(1-r),l=n*(1-a*r),s=n*(1-(1-a)*r),c=o%6;return{r:255*[n,l,i,i,s,n][c],g:255*[s,n,n,l,i,i][c],b:255*[i,i,s,n,n,l][c]}}(e.h,p,h),d=!0,b="hsv"):G(e.h)&&G(e.s)&&G(e.l)&&(p=H(e.s),f=H(e.l),c=function(e,t,r){var n,o,a;function i(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}if(e=A(e,360),t=A(t,100),r=A(r,100),0===t)n=o=a=r;else{var l=r<.5?r*(1+t):r+t-r*t,s=2*r-l;n=i(s,l,e+1/3),o=i(s,l,e),a=i(s,l,e-1/3)}return{r:255*n,g:255*o,b:255*a}}(e.h,p,f),d=!0,b="hsl"),e.hasOwnProperty("a")&&(u=e.a)),u=R(u),{ok:d,format:e.format||b,r:i(255,l(c.r,0)),g:i(255,l(c.g,0)),b:i(255,l(c.b,0)),a:u}}(e);this._originalInput=e,this._r=u.r,this._g=u.g,this._b=u.b,this._a=u.a,this._roundA=a(100*this._a)/100,this._format=s.format||u.format,this._gradientType=s.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=u.ok,this._tc_id=o++}function u(e,t,r){e=A(e,255),t=A(t,255),r=A(r,255);var n,o,a=l(e,t,r),s=i(e,t,r),c=(a+s)/2;if(a==s)n=o=0;else{var u=a-s;switch(o=c>.5?u/(2-a-s):u/(a+s),a){case e:n=(t-r)/u+(t<r?6:0);break;case t:n=(r-e)/u+2;break;case r:n=(e-t)/u+4}n/=6}return{h:n,s:o,l:c}}function p(e,t,r){e=A(e,255),t=A(t,255),r=A(r,255);var n,o,a=l(e,t,r),s=i(e,t,r),c=a,u=a-s;if(o=0===a?0:u/a,a==s)n=0;else{switch(a){case e:n=(t-r)/u+(t<r?6:0);break;case t:n=(r-e)/u+2;break;case r:n=(e-t)/u+4}n/=6}return{h:n,s:o,v:c}}function h(e,t,r,n){var o=[M(a(e).toString(16)),M(a(t).toString(16)),M(a(r).toString(16))];return n&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function f(e,t,r,n){return[M(P(n)),M(a(e).toString(16)),M(a(t).toString(16)),M(a(r).toString(16))].join("")}function d(e,t){t=0===t?0:t||10;var r=c(e).toHsl();return r.s-=t/100,r.s=F(r.s),c(r)}function b(e,t){t=0===t?0:t||10;var r=c(e).toHsl();return r.s+=t/100,r.s=F(r.s),c(r)}function g(e){return c(e).desaturate(100)}function v(e,t){t=0===t?0:t||10;var r=c(e).toHsl();return r.l+=t/100,r.l=F(r.l),c(r)}function x(e,t){t=0===t?0:t||10;var r=c(e).toRgb();return r.r=l(0,i(255,r.r-a(-t/100*255))),r.g=l(0,i(255,r.g-a(-t/100*255))),r.b=l(0,i(255,r.b-a(-t/100*255))),c(r)}function y(e,t){t=0===t?0:t||10;var r=c(e).toHsl();return r.l-=t/100,r.l=F(r.l),c(r)}function m(e,t){var r=c(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,c(r)}function w(e){var t=c(e).toHsl();return t.h=(t.h+180)%360,c(t)}function E(e){var t=c(e).toHsl(),r=t.h;return[c(e),c({h:(r+120)%360,s:t.s,l:t.l}),c({h:(r+240)%360,s:t.s,l:t.l})]}function _(e){var t=c(e).toHsl(),r=t.h;return[c(e),c({h:(r+90)%360,s:t.s,l:t.l}),c({h:(r+180)%360,s:t.s,l:t.l}),c({h:(r+270)%360,s:t.s,l:t.l})]}function C(e){var t=c(e).toHsl(),r=t.h;return[c(e),c({h:(r+72)%360,s:t.s,l:t.l}),c({h:(r+216)%360,s:t.s,l:t.l})]}function S(e,t,r){t=t||6,r=r||30;var n=c(e).toHsl(),o=360/r,a=[c(e)];for(n.h=(n.h-(o*t>>1)+720)%360;--t;)n.h=(n.h+o)%360,a.push(c(n));return a}function k(e,t){t=t||6;for(var r=c(e).toHsv(),n=r.h,o=r.s,a=r.v,i=[],l=1/t;t--;)i.push(c({h:n,s:o,v:a})),a=(a+l)%1;return i}c.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,r,n,o=this.toRgb();return e=o.r/255,r=o.g/255,n=o.b/255,.2126*(e<=.03928?e/12.92:t.pow((e+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:t.pow((r+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:t.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=R(e),this._roundA=a(100*this._a)/100,this},toHsv:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=p(this._r,this._g,this._b),t=a(360*e.h),r=a(100*e.s),n=a(100*e.v);return 1==this._a?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=u(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=u(this._r,this._g,this._b),t=a(360*e.h),r=a(100*e.s),n=a(100*e.l);return 1==this._a?"hsl("+t+", "+r+"%, "+n+"%)":"hsla("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return h(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,r,n,o){var i=[M(a(e).toString(16)),M(a(t).toString(16)),M(a(r).toString(16)),M(P(n))];return o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(100*A(this._r,255))+"%",g:a(100*A(this._g,255))+"%",b:a(100*A(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+a(100*A(this._r,255))+"%, "+a(100*A(this._g,255))+"%, "+a(100*A(this._b,255))+"%)":"rgba("+a(100*A(this._r,255))+"%, "+a(100*A(this._g,255))+"%, "+a(100*A(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(O[h(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+f(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var o=c(e);r="#"+f(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+t+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this._format;var r=!1,n=this._a<1&&this._a>=0;return t||!n||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return c(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(v,arguments)},brighten:function(){return this._applyModification(x,arguments)},darken:function(){return this._applyModification(y,arguments)},desaturate:function(){return this._applyModification(d,arguments)},saturate:function(){return this._applyModification(b,arguments)},greyscale:function(){return this._applyModification(g,arguments)},spin:function(){return this._applyModification(m,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(S,arguments)},complement:function(){return this._applyCombination(w,arguments)},monochromatic:function(){return this._applyCombination(k,arguments)},splitcomplement:function(){return this._applyCombination(C,arguments)},triad:function(){return this._applyCombination(E,arguments)},tetrad:function(){return this._applyCombination(_,arguments)}},c.fromRatio=function(e,t){if("object"==typeof e){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]="a"===n?e[n]:H(e[n]));e=r}return c(e,t)},c.equals=function(e,t){return!(!e||!t)&&c(e).toRgbString()==c(t).toRgbString()},c.random=function(){return c.fromRatio({r:s(),g:s(),b:s()})},c.mix=function(e,t,r){r=0===r?0:r||50;var n=c(e).toRgb(),o=c(t).toRgb(),a=r/100;return c({r:(o.r-n.r)*a+n.r,g:(o.g-n.g)*a+n.g,b:(o.b-n.b)*a+n.b,a:(o.a-n.a)*a+n.a})},c.readability=function(e,r){var n=c(e),o=c(r);return(t.max(n.getLuminance(),o.getLuminance())+.05)/(t.min(n.getLuminance(),o.getLuminance())+.05)},c.isReadable=function(e,t,r){var n,o,a=c.readability(e,t);switch(o=!1,(n=function(e){var t,r;return"AA"!==(t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==t&&(t="AA"),"small"!==(r=(e.size||"small").toLowerCase())&&"large"!==r&&(r="small"),{level:t,size:r}}(r)).level+n.size){case"AAsmall":case"AAAlarge":o=a>=4.5;break;case"AAlarge":o=a>=3;break;case"AAAsmall":o=a>=7}return o},c.mostReadable=function(e,t,r){var n,o,a,i,l=null,s=0;o=(r=r||{}).includeFallbackColors,a=r.level,i=r.size;for(var u=0;u<t.length;u++)(n=c.readability(e,t[u]))>s&&(s=n,l=c(t[u]));return c.isReadable(e,l,{level:a,size:i})||!o?l:(r.includeFallbackColors=!1,c.mostReadable(e,["#fff","#000"],r))};var j=c.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},O=c.hexNames=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}(j);function R(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function A(e,r){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=i(r,l(0,parseFloat(e))),n&&(e=parseInt(e*r,10)/100),t.abs(e-r)<1e-6?1:e%r/parseFloat(r)}function F(e){return i(1,l(0,e))}function B(e){return parseInt(e,16)}function M(e){return 1==e.length?"0"+e:""+e}function H(e){return e<=1&&(e=100*e+"%"),e}function P(e){return t.round(255*parseFloat(e)).toString(16)}function T(e){return B(e)/255}var D,z,L,N=(z="[\\s|\\(]+("+(D="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+D+")[,|\\s]+("+D+")\\s*\\)?",L="[\\s|\\(]+("+D+")[,|\\s]+("+D+")[,|\\s]+("+D+")[,|\\s]+("+D+")\\s*\\)?",{CSS_UNIT:new RegExp(D),rgb:new RegExp("rgb"+z),rgba:new RegExp("rgba"+L),hsl:new RegExp("hsl"+z),hsla:new RegExp("hsla"+L),hsv:new RegExp("hsv"+z),hsva:new RegExp("hsva"+L),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function G(e){return!!N.CSS_UNIT.exec(e)}e.exports?e.exports=c:window.tinycolor=c}(Math)})),rn={simpleCheckForValidColor:function(e){var t=0,r=0;return function(e,t){(v(e)?Gt:Dt)(e,Y(t))}(["r","g","b","a","h","s","l","v"],(function(n){e[n]&&(t+=1,isNaN(e[n])||(r+=1),"s"===n||"l"===n)&&/^\d+%$/.test(e[n])&&(r+=1)})),t===r&&e},toState:function(e,t){var r=e.hex?tn(e.hex):tn(e),n=r.toHsl(),o=r.toHsv(),a=r.toRgb(),i=r.toHex();return 0===n.s&&(n.h=t||0,o.h=t||0),{hsl:n,hex:"000000"===i&&0===a.a?"transparent":"#"+i,rgb:a,hsv:o,oldHue:e.h||t||n.h,source:e.source}},isValidHex:function(e){var t="#"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&tn(e).isValid()},getContrastingColor:function(e){if(!e)return"#fff";var t=this.toState(e);return"transparent"===t.hex?"rgba(0,0,0,0.4)":(299*t.rgb.r+587*t.rgb.g+114*t.rgb.b)/1e3>=128?"#000":"#fff"}},nn=function(e){var n=function(t){function n(e){Rr(this,n);var t=Hr(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.handleChange=function(e,r){if(rn.simpleCheckForValidColor(e)){var n=rn.toState(e,e.h||t.state.oldHue);t.setState(n),t.props.onChangeComplete&&t.debounce(t.props.onChangeComplete,n,r),t.props.onChange&&t.props.onChange(n,r)}},t.handleSwatchHover=function(e,r){if(rn.simpleCheckForValidColor(e)){var n=rn.toState(e,e.h||t.state.oldHue);t.setState(n),t.props.onSwatchHover&&t.props.onSwatchHover(n,r)}},t.state=Br({},rn.toState(e.color,0)),t.debounce=Qr((function(e,t,r){e(t,r)}),100),t}return Mr(n,t),Ar(n,[{key:"componentWillReceiveProps",value:function(e){this.setState(Br({},rn.toState(e.color,this.state.oldHue)))}},{key:"render",value:function(){var t={};return this.props.onSwatchHover&&(t.onSwatchHover=this.handleSwatchHover),r.createElement(e,Br({},this.props,this.state,{onChange:this.handleChange},t))}}]),n}(t.PureComponent||t.Component);return n.propTypes=Br({},e.propTypes),n.defaultProps=Br({},e.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),n},on=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function o(){var e,t,r;Rr(this,o);for(var n=arguments.length,a=Array(n),i=0;i<n;i++)a[i]=arguments[i];return t=r=Hr(this,(e=o.__proto__||Object.getPrototypeOf(o)).call.apply(e,[this].concat(a))),r.state={focus:!1},r.handleFocus=function(){return r.setState({focus:!0})},r.handleBlur=function(){return r.setState({focus:!1})},Hr(r,t)}return Mr(o,n),Ar(o,[{key:"render",value:function(){return r.createElement(t,{onFocus:this.handleFocus,onBlur:this.handleBlur},r.createElement(e,Br({},this.props,this.state)))}}]),o}(r.Component)}((function(e){var t=e.color,n=e.style,o=e.onClick,a=void 0===o?function(){}:o,i=e.onHover,l=e.title,s=void 0===l?t:l,c=e.children,u=e.focus,p=e.focusStyle,h="transparent"===t,f=_r({default:{swatch:Br({background:t,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},n,u?void 0===p?{}:p:{})}}),d={};return i&&(d.onMouseOver=function(e){return i(t,e)}),r.createElement("div",Br({style:f.swatch,onClick:function(e){return a(t,e)},title:s,tabIndex:0,onKeyDown:function(e){return 13===e.keyCode&&a(t,e)}},d),c,h&&r.createElement(Or,{borderRadius:f.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))})),an=function(e){var t=e.rgb,n=e.hsl,o=e.width,a=e.height,i=e.onChange,l=e.direction,s=e.style,c=e.renderers,u=e.pointer,p=e.className,h=void 0===p?"":p,f=_r({default:{picker:{position:"relative",width:o,height:a},alpha:{radius:"2px",style:s}}});return r.createElement("div",{style:f.picker,className:"alpha-picker "+h},r.createElement(Pr,Br({},f.alpha,{rgb:t,hsl:n,pointer:u,renderers:c,onChange:i,direction:l})))};an.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:function(e){var t=e.direction,n=_r({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===t});return r.createElement("div",{style:n.picker})}};var ln=nn(an),sn=function(e){var t=e.colors,n=e.onClick,o=e.onSwatchHover,a=_r({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return r.createElement("div",{style:a.swatches},Lt(t,(function(e){return r.createElement(on,{key:e,color:e,style:a.swatch,onClick:n,onHover:o,focusStyle:{boxShadow:"0 0 4px "+e}})})),r.createElement("div",{style:a.clear}))},cn=function(e){var t=e.onChange,n=e.onSwatchHover,o=e.hex,a=e.colors,i=e.width,l=e.triangle,s=e.className,c=void 0===s?"":s,u="transparent"===o,p=function(e,r){rn.isValidHex(e)&&t({hex:e,source:"hex"},r)},h=_r({default:{card:{width:i,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:o,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:rn.getContrastingColor(o),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+o+" transparent",position:"absolute",top:"-10px",left:"50%",marginLeft:"-10px"},input:{width:"100%",fontSize:"12px",color:"#666",border:"0px",outline:"none",height:"22px",boxShadow:"inset 0 0 0 1px #ddd",borderRadius:"4px",padding:"0 7px",boxSizing:"border-box"}},"hide-triangle":{triangle:{display:"none"}}},{"hide-triangle":"hide"===l});return r.createElement("div",{style:h.card,className:"block-picker "+c},r.createElement("div",{style:h.triangle}),r.createElement("div",{style:h.head},u&&r.createElement(Or,{borderRadius:"6px 6px 0 0"}),r.createElement("div",{style:h.label},o)),r.createElement("div",{style:h.body},r.createElement(sn,{colors:a,onClick:p,onSwatchHover:n}),r.createElement(Tr,{style:{input:h.input},value:o,onChange:p})))};cn.propTypes={width:Ur.oneOfType([Ur.string,Ur.number]),
  colors:Ur.arrayOf(Ur.string),triangle:Ur.oneOf(["top","hide"])},cn.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top"};var un=nn(cn),pn="#f44336",hn="#e91e63",fn="#9c27b0",dn="#673ab7",bn="#3f51b5",gn="#2196f3",vn="#03a9f4",xn="#00bcd4",yn="#009688",mn="#4caf50",wn="#8bc34a",En="#cddc39",_n="#ffeb3b",Cn="#ffc107",Sn="#ff9800",kn="#ff5722",jn="#795548",On="#607d8b",Rn=function(e){var t=e.color,n=e.onClick,o=e.onSwatchHover,a=e.hover,i=e.active,l=e.circleSize,s=e.circleSpacing,c=_r({default:{swatch:{width:l,height:l,marginRight:s,marginBottom:s,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+l/2+"px "+t,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+t}}},{hover:a,active:i});return r.createElement("div",{style:c.swatch},r.createElement(on,{style:c.Swatch,color:t,onClick:n,onHover:o,focusStyle:{boxShadow:c.Swatch.boxShadow+", 0 0 5px "+t}}))};Rn.defaultProps={circleSize:28,circleSpacing:14};var An=Cr(Rn),Fn=function(e){var t=e.width,n=e.onChange,o=e.onSwatchHover,a=e.colors,i=e.hex,l=e.circleSize,s=e.circleSpacing,c=e.className,u=void 0===c?"":c,p=_r({default:{card:{width:t,display:"flex",flexWrap:"wrap",marginRight:-s,marginBottom:-s}}}),h=function(e,t){return n({hex:e,source:"hex"},t)};return r.createElement("div",{style:p.card,className:"circle-picker "+u},Lt(a,(function(e){return r.createElement(An,{key:e,color:e,onClick:h,onSwatchHover:o,active:i===e.toLowerCase(),circleSize:l,circleSpacing:s})})))};Fn.propTypes={width:Ur.oneOfType([Ur.string,Ur.number]),circleSize:Ur.number,circleSpacing:Ur.number},Fn.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[pn,hn,fn,dn,bn,gn,vn,xn,yn,mn,wn,En,_n,Cn,Sn,kn,jn,On]};var Bn=nn(Fn),Mn=o(a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},a=(n=r)&&n.__esModule?n:{default:n};t.default=function(e){var t=e.fill,r=void 0===t?"currentColor":t,n=e.width,i=void 0===n?24:n,l=e.height,s=void 0===l?24:l,c=e.style,u=void 0===c?{}:c,p=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(e,["fill","width","height","style"]);return a.default.createElement("svg",o({viewBox:"0 0 24 24",style:o({fill:r,width:i,height:s},u)},p),a.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))}}))),Hn=function(e){function t(){var e,r,n;Rr(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=n=Hr(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),n.state={view:""},n.toggleViews=function(){"hex"===n.state.view?n.setState({view:"rgb"}):"rgb"===n.state.view?n.setState({view:"hsl"}):"hsl"===n.state.view&&(1===n.props.hsl.a?n.setState({view:"hex"}):n.setState({view:"rgb"}))},n.handleChange=function(e,t){e.hex?rn.isValidHex(e.hex)&&n.props.onChange({hex:e.hex,source:"hex"},t):e.r||e.g||e.b?n.props.onChange({r:e.r||n.props.rgb.r,g:e.g||n.props.rgb.g,b:e.b||n.props.rgb.b,source:"rgb"},t):e.a?(e.a<0?e.a=0:e.a>1&&(e.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(100*e.a)/100,source:"rgb"},t)):(e.h||e.s||e.l)&&n.props.onChange({h:e.h||n.props.hsl.h,s:Number(e.s&&e.s||n.props.hsl.s),l:Number(e.l&&e.l||n.props.hsl.l),source:"hsl"},t)},n.showHighlight=function(e){e.target.style.background="#eee"},n.hideHighlight=function(e){e.target.style.background="transparent"},Hr(n,r)}return Mr(t,e),Ar(t,[{key:"componentDidMount",value:function(){1===this.props.hsl.a&&"hex"!==this.state.view?this.setState({view:"hex"}):"rgb"!==this.state.view&&"hsl"!==this.state.view&&this.setState({view:"rgb"})}},{key:"componentWillReceiveProps",value:function(e){1!==e.hsl.a&&"hex"===this.state.view&&this.setState({view:"rgb"})}},{key:"render",value:function(){var e=this,t=_r({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),n=void 0;return"hex"===this.state.view?n=r.createElement("div",{style:t.fields,className:"flexbox-fix"},r.createElement("div",{style:t.field},r.createElement(Tr,{style:{input:t.input,label:t.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):"rgb"===this.state.view?n=r.createElement("div",{style:t.fields,className:"flexbox-fix"},r.createElement("div",{style:t.field},r.createElement(Tr,{style:{input:t.input,label:t.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),r.createElement("div",{style:t.field},r.createElement(Tr,{style:{input:t.input,label:t.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),r.createElement("div",{style:t.field},r.createElement(Tr,{style:{input:t.input,label:t.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),r.createElement("div",{style:t.alpha},r.createElement(Tr,{style:{input:t.input,label:t.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):"hsl"===this.state.view&&(n=r.createElement("div",{style:t.fields,className:"flexbox-fix"},r.createElement("div",{style:t.field},r.createElement(Tr,{style:{input:t.input,label:t.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),r.createElement("div",{style:t.field},r.createElement(Tr,{style:{input:t.input,label:t.label},label:"s",value:Math.round(100*this.props.hsl.s)+"%",onChange:this.handleChange})),r.createElement("div",{style:t.field},r.createElement(Tr,{style:{input:t.input,label:t.label},label:"l",value:Math.round(100*this.props.hsl.l)+"%",onChange:this.handleChange})),r.createElement("div",{style:t.alpha},r.createElement(Tr,{style:{input:t.input,label:t.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),r.createElement("div",{style:t.wrap,className:"flexbox-fix"},n,r.createElement("div",{style:t.toggle},r.createElement("div",{style:t.icon,onClick:this.toggleViews,ref:function(t){return e.icon=t}},r.createElement(Mn,{style:t.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}]),t}(r.Component),Pn=function(){var e=_r({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return r.createElement("div",{style:e.picker})},Tn=function(){var e=_r({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return r.createElement("div",{style:e.picker})},Dn=function(e){var t=e.onChange,n=e.disableAlpha,o=e.rgb,a=e.hsl,i=e.hsv,l=e.hex,s=e.renderers,c=e.className,u=void 0===c?"":c,p=_r({default:{picker:{background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",width:"225px",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+o.r+", "+o.g+", "+o.b+", "+o.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},{disableAlpha:n});return r.createElement("div",{style:p.picker,className:"chrome-picker "+u},r.createElement("div",{style:p.saturation},r.createElement(en,{style:p.Saturation,hsl:a,hsv:i,pointer:Tn,onChange:t})),r.createElement("div",{style:p.body},r.createElement("div",{style:p.controls,className:"flexbox-fix"},r.createElement("div",{style:p.color},r.createElement("div",{style:p.swatch},r.createElement("div",{style:p.active}),r.createElement(Or,{renderers:s}))),r.createElement("div",{style:p.toggles},r.createElement("div",{style:p.hue},r.createElement(zr,{style:p.Hue,hsl:a,pointer:Pn,onChange:t})),r.createElement("div",{style:p.alpha},r.createElement(Pr,{style:p.Alpha,rgb:o,hsl:a,pointer:Pn,renderers:s,onChange:t})))),r.createElement(Hn,{rgb:o,hsl:a,hex:l,onChange:t,disableAlpha:n})))};Dn.propTypes={disableAlpha:Ur.bool},Dn.defaultProps={disableAlpha:!1};var zn=nn(Dn),Ln=function(e){var t=e.color,n=e.onClick,o=void 0===n?function(){}:n,a=e.onSwatchHover,i=e.active,l=_r({default:{color:{background:t,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:rn.getContrastingColor(t),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:i,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return r.createElement(on,{style:l.color,color:t,onClick:o,onHover:a,focusStyle:{boxShadow:"0 0 4px "+t}},r.createElement("div",{style:l.dot}))},Nn=function(e){var t=e.hex,n=e.rgb,o=e.onChange,a=_r({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:t},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),i=function(e,t){e.r||e.g||e.b?o({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:"rgb"},t):o({hex:e.hex,source:"hex"},t)};return r.createElement("div",{style:a.fields,className:"flexbox-fix"},r.createElement("div",{style:a.active}),r.createElement(Tr,{style:{wrap:a.HEXwrap,input:a.HEXinput,label:a.HEXlabel},label:"hex",value:t,onChange:i}),r.createElement(Tr,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"r",value:n.r,onChange:i}),r.createElement(Tr,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"g",value:n.g,onChange:i}),r.createElement(Tr,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"b",value:n.b,onChange:i}))},Gn=function(e){var t=e.onChange,n=e.onSwatchHover,o=e.colors,a=e.hex,i=e.rgb,l=e.className,s=void 0===l?"":l,c=_r({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}}),u=function(e,r){e.hex?rn.isValidHex(e.hex)&&t({hex:e.hex,source:"hex"},r):t(e,r)};return r.createElement(Ir,{style:c.Compact},r.createElement("div",{style:c.compact,className:"compact-picker "+s},r.createElement("div",null,Lt(o,(function(e){return r.createElement(Ln,{key:e,color:e,active:e.toLowerCase()===a,onClick:u,onSwatchHover:n})})),r.createElement("div",{style:c.clear})),r.createElement(Nn,{hex:a,rgb:i,onChange:u})))};Gn.propTypes={colors:Ur.arrayOf(Ur.string)},Gn.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"]};var Un=nn(Gn),In=Cr((function(e){var t=e.hover,n=e.color,o=e.onClick,a=e.onSwatchHover,i={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},l=_r({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:i}},{hover:t});return r.createElement("div",{style:l.swatch},r.createElement(on,{color:n,onClick:o,onHover:a,focusStyle:i}))})),Wn=function(e){var t=e.width,n=e.colors,o=e.onChange,a=e.onSwatchHover,i=e.triangle,l=e.className,s=void 0===l?"":l,c=_r({default:{card:{width:t,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},{"hide-triangle":"hide"===i,"top-left-triangle":"top-left"===i,"top-right-triangle":"top-right"===i,"bottom-left-triangle":"bottom-left"==i,"bottom-right-triangle":"bottom-right"===i}),u=function(e,t){return o({hex:e,source:"hex"},t)};return r.createElement("div",{style:c.card,className:"github-picker "+s},r.createElement("div",{style:c.triangleShadow}),r.createElement("div",{style:c.triangle}),Lt(n,(function(e){return r.createElement(In,{color:e,key:e,onClick:u,onSwatchHover:a})})))};Wn.propTypes={width:Ur.oneOfType([Ur.string,Ur.number]),colors:Ur.arrayOf(Ur.string),triangle:Ur.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"])},Wn.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left"};var Xn=nn(Wn),Vn=function(e){var t=e.width,n=e.height,o=e.onChange,a=e.hsl,i=e.direction,l=e.pointer,s=e.className,c=void 0===s?"":s,u=_r({default:{picker:{position:"relative",width:t,height:n},hue:{radius:"2px"}}});return r.createElement("div",{style:u.picker,className:"hue-picker "+c},r.createElement(zr,Br({},u.hue,{hsl:a,pointer:l,onChange:function(e){return o({a:1,h:e.h,l:.5,s:1})},direction:i})))};Vn.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:function(e){var t=e.direction,n=_r({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===t});return r.createElement("div",{style:n.picker})}};var $n=nn(Vn),qn=nn((function(e){var t=e.onChange,n=e.hex,o=e.rgb,a=e.className,i=void 0===a?"":a,l=_r({default:{material:{width:"98px",height:"98px",padding:"16px",fontFamily:"Roboto"},HEXwrap:{position:"relative"},HEXinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"2px solid "+n,outline:"none",height:"30px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},Hex:{style:{}},RGBwrap:{position:"relative"},RGBinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"1px solid #eee",outline:"none",height:"30px"},RGBlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},split:{display:"flex",marginRight:"-10px",paddingTop:"11px"},third:{flex:"1",paddingRight:"10px"}}}),s=function(e,r){e.hex?rn.isValidHex(e.hex)&&t({hex:e.hex,source:"hex"},r):(e.r||e.g||e.b)&&t({r:e.r||o.r,g:e.g||o.g,b:e.b||o.b,source:"rgb"},r)};return r.createElement(Ir,null,r.createElement("div",{style:l.material,className:"material-picker "+i},r.createElement(Tr,{style:{wrap:l.HEXwrap,input:l.HEXinput,label:l.HEXlabel},label:"hex",value:n,onChange:s}),r.createElement("div",{style:l.split,className:"flexbox-fix"},r.createElement("div",{style:l.third},r.createElement(Tr,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"r",value:o.r,onChange:s})),r.createElement("div",{style:l.third},r.createElement(Tr,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"g",value:o.g,onChange:s})),r.createElement("div",{style:l.third},r.createElement(Tr,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"b",value:o.b,onChange:s})))))})),Yn=function(e){var t=e.onChange,n=e.rgb,o=e.hsv,a=e.hex,i=_r({default:{fields:{paddingTop:"5px",paddingBottom:"9px",width:"80px",position:"relative"},divider:{height:"5px"},RGBwrap:{position:"relative"},RGBinput:{marginLeft:"40%",width:"40%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"5px",fontSize:"13px",paddingLeft:"3px",marginRight:"10px"},RGBlabel:{left:"0px",width:"34px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px",position:"absolute"},HEXwrap:{position:"relative"},HEXinput:{marginLeft:"20%",width:"80%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"6px",fontSize:"13px",paddingLeft:"3px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",width:"14px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px"},fieldSymbols:{position:"absolute",top:"5px",right:"-7px",fontSize:"13px"},symbol:{height:"20px",lineHeight:"22px",paddingBottom:"7px"}}}),l=function(e,r){e["#"]?rn.isValidHex(e["#"])&&t({hex:e["#"],source:"hex"},r):e.r||e.g||e.b?t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:"rgb"},r):(e.h||e.s||e.v)&&t({h:e.h||o.h,s:e.s||o.s,v:e.v||o.v,source:"hsv"},r)};return r.createElement("div",{style:i.fields},r.createElement(Tr,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"h",value:Math.round(o.h),onChange:l}),r.createElement(Tr,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"s",value:Math.round(100*o.s),onChange:l}),r.createElement(Tr,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"v",value:Math.round(100*o.v),onChange:l}),r.createElement("div",{style:i.divider}),r.createElement(Tr,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"r",value:n.r,onChange:l}),r.createElement(Tr,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"g",value:n.g,onChange:l}),r.createElement(Tr,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"b",value:n.b,onChange:l}),r.createElement("div",{style:i.divider}),r.createElement(Tr,{style:{wrap:i.HEXwrap,input:i.HEXinput,label:i.HEXlabel},label:"#",value:a.replace("#",""),onChange:l}),r.createElement("div",{style:i.fieldSymbols},r.createElement("div",{style:i.symbol},"°"),r.createElement("div",{style:i.symbol},"%"),r.createElement("div",{style:i.symbol},"%")))},Kn=function(e){var t=e.hsl,n=_r({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}},"black-outline":{picker:{boxShadow:"inset 0 0 0 1px #000"}}},{"black-outline":t.l>.5});return r.createElement("div",{style:n.picker})},Zn=function(){var e=_r({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return r.createElement("div",{style:e.pointer},r.createElement("div",{style:e.left},r.createElement("div",{style:e.leftInside})),r.createElement("div",{style:e.right},r.createElement("div",{style:e.rightInside})))},Jn=function(e){var t=e.onClick,n=e.label,o=e.children,a=e.active,i=_r({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:a});return r.createElement("div",{style:i.button,onClick:t},n||o)},Qn=function(e){var t=e.rgb,n=e.currentColor,o=_r({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+t.r+","+t.g+", "+t.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:n,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return r.createElement("div",null,r.createElement("div",{style:o.label},"new"),r.createElement("div",{style:o.swatches},r.createElement("div",{style:o.new}),r.createElement("div",{style:o.current})),r.createElement("div",{style:o.label},"current"))},eo=function(e){function t(e){Rr(this,t);var r=Hr(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.state={currentColor:e.hex},r}return Mr(t,e),Ar(t,[{key:"render",value:function(){var e=this.props.className,t=void 0===e?"":e,n=_r({default:{picker:{background:"#DCDCDC",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)",boxSizing:"initial",width:"513px"},head:{backgroundImage:"linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)",borderBottom:"1px solid #B1B1B1",boxShadow:"inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)",height:"23px",lineHeight:"24px",borderRadius:"4px 4px 0 0",fontSize:"13px",color:"#4D4D4D",textAlign:"center"},body:{padding:"15px 15px 0",display:"flex"},saturation:{width:"256px",height:"256px",position:"relative",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0",overflow:"hidden"},hue:{position:"relative",height:"256px",width:"19px",marginLeft:"10px",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0"},controls:{width:"180px",marginLeft:"10px"},top:{display:"flex"},previews:{width:"60px"},actions:{flex:"1",marginLeft:"20px"}}});return r.createElement("div",{style:n.picker,className:"photoshop-picker "+t},r.createElement("div",{style:n.head},this.props.header),r.createElement("div",{style:n.body,className:"flexbox-fix"},r.createElement("div",{style:n.saturation},r.createElement(en,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:Kn,onChange:this.props.onChange})),r.createElement("div",{style:n.hue},r.createElement(zr,{direction:"vertical",hsl:this.props.hsl,pointer:Zn,onChange:this.props.onChange})),r.createElement("div",{style:n.controls},r.createElement("div",{style:n.top,className:"flexbox-fix"},r.createElement("div",{style:n.previews},r.createElement(Qn,{rgb:this.props.rgb,currentColor:this.state.currentColor})),r.createElement("div",{style:n.actions},r.createElement(Jn,{label:"OK",onClick:this.props.onAccept,active:!0}),r.createElement(Jn,{label:"Cancel",onClick:this.props.onCancel}),r.createElement(Yn,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),t}(r.Component);eo.propTypes={header:Ur.string},eo.defaultProps={header:"Color Picker"};var to=nn(eo),ro=function(e){var t=e.onChange,n=e.rgb,o=e.hsl,a=e.hex,i=e.disableAlpha,l=_r({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:i}),s=function(e,r){e.hex?rn.isValidHex(e.hex)&&t({hex:e.hex,source:"hex"},r):e.r||e.g||e.b?t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,a:n.a,source:"rgb"},r):e.a&&(e.a<0?e.a=0:e.a>100&&(e.a=100),e.a/=100,t({h:o.h,s:o.s,l:o.l,a:e.a,source:"rgb"},r))};return r.createElement("div",{style:l.fields,className:"flexbox-fix"},r.createElement("div",{style:l.double},r.createElement(Tr,{style:{input:l.input,label:l.label},label:"hex",value:a.replace("#",""),onChange:s})),r.createElement("div",{style:l.single},r.createElement(Tr,{style:{input:l.input,label:l.label},label:"r",value:n.r,onChange:s,dragLabel:"true",dragMax:"255"})),r.createElement("div",{style:l.single},r.createElement(Tr,{style:{input:l.input,label:l.label},label:"g",value:n.g,onChange:s,dragLabel:"true",dragMax:"255"})),r.createElement("div",{style:l.single},r.createElement(Tr,{style:{input:l.input,label:l.label},label:"b",value:n.b,onChange:s,dragLabel:"true",dragMax:"255"})),r.createElement("div",{style:l.alpha},r.createElement(Tr,{style:{input:l.input,label:l.label},label:"a",value:Math.round(100*n.a),onChange:s,dragLabel:"true",dragMax:"100"})))},no=function(e){var t=e.colors,n=e.onClick,o=void 0===n?function(){}:n,a=e.onSwatchHover,i=_r({default:{colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},"no-presets":{colors:{display:"none"}}},{"no-presets":!t||!t.length}),l=function(e,t){o({hex:e,source:"hex"},t)};return r.createElement("div",{style:i.colors,className:"flexbox-fix"},t.map((function(e){var t="string"==typeof e?{color:e}:e,n=""+t.color+(t.title||"");return r.createElement("div",{key:n,style:i.swatchWrap},r.createElement(on,Br({},t,{style:i.swatch,onClick:l,onHover:a,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+t.color}})))})))};no.propTypes={colors:Ur.arrayOf(Ur.oneOfType([Ur.string,Ur.shape({color:Ur.string,title:Ur.string})])).isRequired};var oo=function(e){var t=e.width,n=e.rgb,o=e.hex,a=e.hsv,i=e.hsl,l=e.onChange,s=e.onSwatchHover,c=e.disableAlpha,u=e.presetColors,p=e.renderers,h=e.className,f=void 0===h?"":h,d=_r({default:{picker:{width:t,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba("+n.r+","+n.g+","+n.b+","+n.a+")",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},{disableAlpha:c});return r.createElement("div",{style:d.picker,className:"sketch-picker "+f},r.createElement("div",{style:d.saturation},r.createElement(en,{style:d.Saturation,hsl:i,hsv:a,onChange:l})),r.createElement("div",{style:d.controls,className:"flexbox-fix"},r.createElement("div",{style:d.sliders},r.createElement("div",{style:d.hue},r.createElement(zr,{style:d.Hue,hsl:i,onChange:l})),r.createElement("div",{style:d.alpha},r.createElement(Pr,{style:d.Alpha,rgb:n,hsl:i,renderers:p,onChange:l}))),r.createElement("div",{style:d.color},r.createElement(Or,null),r.createElement("div",{style:d.activeColor}))),r.createElement(ro,{rgb:n,hsl:i,hex:o,onChange:l,disableAlpha:c}),r.createElement(no,{colors:u,onClick:l,onSwatchHover:s}))};oo.propTypes={disableAlpha:Ur.bool,width:Ur.oneOfType([Ur.string,Ur.number])},oo.defaultProps={disableAlpha:!1,width:200,presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]};var ao=nn(oo),io=function(e){var t=e.hsl,n=e.offset,o=e.onClick,a=void 0===o?function(){}:o,i=e.active,l=e.first,s=e.last,c=_r({default:{swatch:{height:"12px",background:"hsl("+t.h+", 50%, "+100*n+"%)",cursor:"pointer"}},first:{swatch:{borderRadius:"2px 0 0 2px"}},last:{swatch:{borderRadius:"0 2px 2px 0"}},active:{swatch:{transform:"scaleY(1.8)",borderRadius:"3.6px/2px"}}},{active:i,first:l,last:s});return r.createElement("div",{style:c.swatch,onClick:function(e){return a({h:t.h,s:.5,l:n,source:"hsl"},e)}})},lo=function(e){var t=e.onClick,n=e.hsl,o=_r({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}});return r.createElement("div",{style:o.swatches},r.createElement("div",{style:o.swatch},r.createElement(io,{hsl:n,offset:".80",active:Math.round(100*n.l)/100==.8&&Math.round(100*n.s)/100==.5,onClick:t,first:!0})),r.createElement("div",{style:o.swatch},r.createElement(io,{hsl:n,offset:".65",active:Math.round(100*n.l)/100==.65&&Math.round(100*n.s)/100==.5,onClick:t})),r.createElement("div",{style:o.swatch},r.createElement(io,{hsl:n,offset:".50",active:Math.round(100*n.l)/100==.5&&Math.round(100*n.s)/100==.5,onClick:t})),r.createElement("div",{style:o.swatch},r.createElement(io,{hsl:n,offset:".35",active:Math.round(100*n.l)/100==.35&&Math.round(100*n.s)/100==.5,onClick:t})),r.createElement("div",{style:o.swatch},r.createElement(io,{hsl:n,offset:".20",active:Math.round(100*n.l)/100==.2&&Math.round(100*n.s)/100==.5,onClick:t,last:!0})),r.createElement("div",{style:o.clear}))},so=function(e){var t=e.hsl,n=e.onChange,o=e.pointer,a=e.className,i=void 0===a?"":a,l=_r({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}});return r.createElement("div",{className:"slider-picker "+i},r.createElement("div",{style:l.hue},r.createElement(zr,{style:l.Hue,hsl:t,pointer:o,onChange:n})),r.createElement("div",{style:l.swatches},r.createElement(lo,{hsl:t,onClick:n})))};so.defaultProps={pointer:function(){var e=_r({default:{picker:{width:"14px",height:"14px",borderRadius:"6px",transform:"translate(-7px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}})
  ;return r.createElement("div",{style:e.picker})}};var co=nn(so),uo=o(a((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},a=(n=r)&&n.__esModule?n:{default:n};t.default=function(e){var t=e.fill,r=void 0===t?"currentColor":t,n=e.width,i=void 0===n?24:n,l=e.height,s=void 0===l?24:l,c=e.style,u=void 0===c?{}:c,p=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(e,["fill","width","height","style"]);return a.default.createElement("svg",o({viewBox:"0 0 24 24",style:o({fill:r,width:i,height:s},u)},p),a.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))}}))),po=function(e){var t=e.color,n=e.onClick,o=void 0===n?function(){}:n,a=e.onSwatchHover,i=e.first,l=e.last,s=e.active,c=_r({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:t,marginBottom:"1px"},check:{color:rn.getContrastingColor(t),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:i,last:l,active:s,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return r.createElement(on,{color:t,style:c.color,onClick:o,onHover:a,focusStyle:{boxShadow:"0 0 4px "+t}},r.createElement("div",{style:c.check},r.createElement(uo,null)))},ho=function(e){var t=e.onClick,n=e.onSwatchHover,o=e.group,a=e.active,i=_r({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return r.createElement("div",{style:i.group},Lt(o,(function(e,i){return r.createElement(po,{key:e,color:e,active:e.toLowerCase()===a,first:0===i,last:i===o.length-1,onClick:t,onSwatchHover:n})})))},fo=function(e){var t=e.width,n=e.height,o=e.onChange,a=e.onSwatchHover,i=e.colors,l=e.hex,s=e.className,c=void 0===s?"":s,u=_r({default:{picker:{width:t,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}}),p=function(e,t){rn.isValidHex(e)&&o({hex:e,source:"hex"},t)};return r.createElement("div",{style:u.picker,className:"swatches-picker "+c},r.createElement(Ir,null,r.createElement("div",{style:u.overflow},r.createElement("div",{style:u.body},Lt(i,(function(e){return r.createElement(ho,{key:e.toString(),group:e,active:l,onClick:p,onSwatchHover:a})})),r.createElement("div",{style:u.clear})))))};fo.propTypes={width:Ur.oneOfType([Ur.string,Ur.number]),height:Ur.oneOfType([Ur.string,Ur.number]),colors:Ur.arrayOf(Ur.arrayOf(Ur.string))},fo.defaultProps={width:320,height:240,colors:[["#b71c1c","#d32f2f",pn,"#e57373","#ffcdd2"],["#880e4f","#c2185b",hn,"#f06292","#f8bbd0"],["#4a148c","#7b1fa2",fn,"#ba68c8","#e1bee7"],["#311b92","#512da8",dn,"#9575cd","#d1c4e9"],["#1a237e","#303f9f",bn,"#7986cb","#c5cae9"],["#0d47a1","#1976d2",gn,"#64b5f6","#bbdefb"],["#01579b","#0288d1",vn,"#4fc3f7","#b3e5fc"],["#006064","#0097a7",xn,"#4dd0e1","#b2ebf2"],["#004d40","#00796b",yn,"#4db6ac","#b2dfdb"],["#194D33","#388e3c",mn,"#81c784","#c8e6c9"],["#33691e","#689f38",wn,"#aed581","#dcedc8"],["#827717","#afb42b",En,"#dce775","#f0f4c3"],["#f57f17","#fbc02d",_n,"#fff176","#fff9c4"],["#ff6f00","#ffa000",Cn,"#ffd54f","#ffecb3"],["#e65100","#f57c00",Sn,"#ffb74d","#ffe0b2"],["#bf360c","#e64a19",kn,"#ff8a65","#ffccbc"],["#3e2723","#5d4037",jn,"#a1887f","#d7ccc8"],["#263238","#455a64",On,"#90a4ae","#cfd8dc"],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]]};var bo=nn(fo),go=function(e){var t=e.onChange,n=e.onSwatchHover,o=e.hex,a=e.colors,i=e.width,l=e.triangle,s=e.className,c=void 0===s?"":s,u=_r({default:{card:{width:i,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},{"hide-triangle":"hide"===l,"top-left-triangle":"top-left"===l,"top-right-triangle":"top-right"===l}),p=function(e,r){rn.isValidHex(e)&&t({hex:e,source:"hex"},r)};return r.createElement("div",{style:u.card,className:"twitter-picker "+c},r.createElement("div",{style:u.triangleShadow}),r.createElement("div",{style:u.triangle}),r.createElement("div",{style:u.body},Lt(a,(function(e,t){return r.createElement(on,{key:t,color:e,hex:e,style:u.swatch,onClick:p,onHover:n,focusStyle:{boxShadow:"0 0 4px "+e}})})),r.createElement("div",{style:u.hash},"#"),r.createElement(Tr,{style:{input:u.input},value:o.replace("#",""),onChange:p}),r.createElement("div",{style:u.clear})))};go.propTypes={width:Ur.oneOfType([Ur.string,Ur.number]),triangle:Ur.oneOf(["hide","top-left","top-right"]),colors:Ur.arrayOf(Ur.string)},go.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left"};var vo=nn(go);e.AlphaPicker=ln,e.BlockPicker=un,e.CirclePicker=Bn,e.ChromePicker=zn,e.CompactPicker=Un,e.GithubPicker=Xn,e.HuePicker=$n,e.MaterialPicker=qn,e.PhotoshopPicker=to,e.SketchPicker=ao,e.SliderPicker=co,e.SwatchesPicker=bo,e.TwitterPicker=vo,e.CustomPicker=nn,Object.defineProperty(e,"__esModule",{value:!0})}));