(self.webpackChunkweb_toolbox=self.webpackChunkweb_toolbox||[]).push([[725],{47530:(e,t,r)=>{"use strict";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=r(9950),i=(n=a)&&n.__esModule?n:{default:n};t.A=function(e){var t=e.fill,r=void 0===t?"currentColor":t,n=e.width,a=void 0===n?24:n,s=e.height,l=void 0===s?24:s,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 i.default.createElement("svg",o({viewBox:"0 0 24 24",style:o({fill:r,width:a,height:l},u)},p),i.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))}},46127:(e,t,r)=>{"use strict";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=r(9950),i=(n=a)&&n.__esModule?n:{default:n};t.A=function(e){var t=e.fill,r=void 0===t?"currentColor":t,n=e.width,a=void 0===n?24:n,s=e.height,l=void 0===s?24:s,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 i.default.createElement("svg",o({viewBox:"0 0 24 24",style:o({fill:r,width:a,height:l},u)},p),i.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"}))}},35607:(e,t,r)=>{"use strict";var n=r(24994);t.A=void 0;var o=n(r(79526)),a=r(44414);t.A=(0,o.default)((0,a.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete")},13004:(e,t,r)=>{"use strict";var n=r(24994);t.A=void 0;var o=n(r(79526)),a=r(44414);t.A=(0,o.default)([(0,a.jsx)("circle",{cx:"12",cy:"12",r:"3.2"},"0"),(0,a.jsx)("path",{d:"M9 2 7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5"},"1")],"PhotoCamera")},67243:(e,t,r)=>{"use strict";var n=r(59660),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var r,a,i,s,l,c,u=!1;t||(t={}),r=t.debug||!1;try{if(i=n(),s=document.createRange(),l=document.getSelection(),(c=document.createElement("span")).textContent=e,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(n){if(n.stopPropagation(),t.format)if(n.preventDefault(),"undefined"===typeof n.clipboardData){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var a=o[t.format]||o.default;window.clipboardData.setData(a,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e);t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))})),document.body.appendChild(c),s.selectNodeContents(c),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(p){r&&console.error("unable to copy using execCommand: ",p),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(p){r&&console.error("unable to copy using clipboardData: ",p),r&&console.error("falling back to prompt"),a=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(a,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),c&&document.body.removeChild(c),i()}return u}},22434:(e,t,r)=>{var n=r(20220)(r(14759),"DataView");e.exports=n},1111:(e,t,r)=>{var n=r(76958),o=r(41176),a=r(1787),i=r(70231),s=r(27455);function l(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])}}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=i,l.prototype.set=s,e.exports=l},85661:(e,t,r)=>{var n=r(5088),o=r(10150),a=r(7889),i=r(44349),s=r(33077);function l(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])}}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=i,l.prototype.set=s,e.exports=l},81465:(e,t,r)=>{var n=r(20220)(r(14759),"Map");e.exports=n},54467:(e,t,r)=>{var n=r(40738),o=r(70708),a=r(26823),i=r(20475),s=r(77859);function l(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])}}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=i,l.prototype.set=s,e.exports=l},30202:(e,t,r)=>{var n=r(20220)(r(14759),"Promise");e.exports=n},57887:(e,t,r)=>{var n=r(20220)(r(14759),"Set");e.exports=n},36669:(e,t,r)=>{var n=r(54467),o=r(62274),a=r(69757);function i(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}i.prototype.add=i.prototype.push=o,i.prototype.has=a,e.exports=i},25535:(e,t,r)=>{var n=r(85661),o=r(44710),a=r(78384),i=r(87379),s=r(80799),l=r(12791);function c(e){var t=this.__data__=new n(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=a,c.prototype.get=i,c.prototype.has=s,c.prototype.set=l,e.exports=c},4635:(e,t,r)=>{var n=r(14759).Symbol;e.exports=n},48246:(e,t,r)=>{var n=r(14759).Uint8Array;e.exports=n},94801:(e,t,r)=>{var n=r(20220)(r(14759),"WeakMap");e.exports=n},48951:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}},46860:e=>{e.exports=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}},37405:(e,t,r)=>{var n=r(44102),o=r(24578),a=r(12279),i=r(6794),s=r(97059),l=r(71641),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=a(e),u=!r&&o(e),p=!r&&!u&&i(e),f=!r&&!u&&!p&&l(e),h=r||u||p||f,d=h?n(e.length,String):[],b=d.length;for(var v in e)!t&&!c.call(e,v)||h&&("length"==v||p&&("offset"==v||"parent"==v)||f&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,b))||d.push(v);return d}},61570:e=>{e.exports=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}},87518:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}},56010:e=>{e.exports=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}},77305:(e,t,r)=>{var n=r(10366),o=r(44206),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var i=e[t];a.call(e,t)&&o(i,r)&&(void 0!==r||t in e)||n(e,t,r)}},45099:(e,t,r)=>{var n=r(44206);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},40291:(e,t,r)=>{var n=r(83965),o=r(65724);e.exports=function(e,t){return e&&n(t,o(t),e)}},62064:(e,t,r)=>{var n=r(83965),o=r(31235);e.exports=function(e,t){return e&&n(t,o(t),e)}},10366:(e,t,r)=>{var n=r(88925);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},79645:(e,t,r)=>{var n=r(25535),o=r(48951),a=r(77305),i=r(40291),s=r(62064),l=r(8984),c=r(76321),u=r(21849),p=r(63586),f=r(93660),h=r(36387),d=r(25531),b=r(17203),v=r(10997),g=r(35539),x=r(12279),y=r(6794),m=r(97744),w=r(24567),_=r(5738),E=r(65724),j=r(31235),C="[object Arguments]",O="[object Function]",S="[object Object]",k={};k[C]=k["[object Array]"]=k["[object ArrayBuffer]"]=k["[object DataView]"]=k["[object Boolean]"]=k["[object Date]"]=k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Map]"]=k["[object Number]"]=k[S]=k["[object RegExp]"]=k["[object Set]"]=k["[object String]"]=k["[object Symbol]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k["[object Error]"]=k[O]=k["[object WeakMap]"]=!1,e.exports=function e(t,r,A,M,R,F){var B,P=1&r,T=2&r,z=4&r;if(A&&(B=R?A(t,M,R,F):A(t)),void 0!==B)return B;if(!w(t))return t;var D=x(t);if(D){if(B=b(t),!P)return c(t,B)}else{var H=d(t),L=H==O||"[object GeneratorFunction]"==H;if(y(t))return l(t,P);if(H==S||H==C||L&&!R){if(B=T||L?{}:g(t),!P)return T?p(t,s(B,t)):u(t,i(B,t))}else{if(!k[H])return R?t:{};B=v(t,H,P)}}F||(F=new n);var N=F.get(t);if(N)return N;F.set(t,B),_(t)?t.forEach((function(n){B.add(e(n,r,A,n,t,F))})):m(t)&&t.forEach((function(n,o){B.set(o,e(n,r,A,o,t,F))}));var U=D?void 0:(z?T?h:f:T?j:E)(t);return o(U||t,(function(n,o){U&&(n=t[o=n]),a(B,o,e(n,r,A,o,t,F))})),B}},48230:(e,t,r)=>{var n=r(24567),o=Object.create,a=function(){function e(){}return function(t){if(!n(t))return{};if(o)return o(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();e.exports=a},20927:(e,t,r)=>{var n=r(70423),o=r(73267)(n);e.exports=o},93031:(e,t,r)=>{var n=r(45211)();e.exports=n},70423:(e,t,r)=>{var n=r(93031),o=r(65724);e.exports=function(e,t){return e&&n(e,t,o)}},10052:(e,t,r)=>{var n=r(26463),o=r(92535);e.exports=function(e,t){for(var r=0,a=(t=n(t,e)).length;null!=e&&r<a;)e=e[o(t[r++])];return r&&r==a?e:void 0}},54761:(e,t,r)=>{var n=r(87518),o=r(12279);e.exports=function(e,t,r){var a=t(e);return o(e)?a:n(a,r(e))}},22022:(e,t,r)=>{var n=r(4635),o=r(81581),a=r(65336),i=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?o(e):a(e)}},14591:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},73012:(e,t,r)=>{var n=r(22022),o=r(39248);e.exports=function(e){return o(e)&&"[object Arguments]"==n(e)}},1404:(e,t,r)=>{var n=r(92130),o=r(39248);e.exports=function e(t,r,a,i,s){return t===r||(null==t||null==r||!o(t)&&!o(r)?t!==t&&r!==r:n(t,r,a,i,e,s))}},92130:(e,t,r)=>{var n=r(25535),o=r(49757),a=r(21416),i=r(16195),s=r(25531),l=r(12279),c=r(6794),u=r(71641),p="[object Arguments]",f="[object Array]",h="[object Object]",d=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,b,v,g){var x=l(e),y=l(t),m=x?f:s(e),w=y?f:s(t),_=(m=m==p?h:m)==h,E=(w=w==p?h:w)==h,j=m==w;if(j&&c(e)){if(!c(t))return!1;x=!0,_=!1}if(j&&!_)return g||(g=new n),x||u(e)?o(e,t,r,b,v,g):a(e,t,m,r,b,v,g);if(!(1&r)){var C=_&&d.call(e,"__wrapped__"),O=E&&d.call(t,"__wrapped__");if(C||O){var S=C?e.value():e,k=O?t.value():t;return g||(g=new n),v(S,k,r,b,g)}}return!!j&&(g||(g=new n),i(e,t,r,b,v,g))}},3530:(e,t,r)=>{var n=r(25531),o=r(39248);e.exports=function(e){return o(e)&&"[object Map]"==n(e)}},24489:(e,t,r)=>{var n=r(25535),o=r(1404);e.exports=function(e,t,r,a){var i=r.length,s=i,l=!a;if(null==e)return!s;for(e=Object(e);i--;){var c=r[i];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++i<s;){var u=(c=r[i])[0],p=e[u],f=c[1];if(l&&c[2]){if(void 0===p&&!(u in e))return!1}else{var h=new n;if(a)var d=a(p,f,u,e,t,h);if(!(void 0===d?o(f,p,3,a,h):d))return!1}}return!0}},57949:(e,t,r)=>{var n=r(93008),o=r(73306),a=r(24567),i=r(29131),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,p=c.hasOwnProperty,f=RegExp("^"+u.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||o(e))&&(n(e)?f:s).test(i(e))}},40771:(e,t,r)=>{var n=r(25531),o=r(39248);e.exports=function(e){return o(e)&&"[object Set]"==n(e)}},38183:(e,t,r)=>{var n=r(22022),o=r(5776),a=r(39248),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&o(e.length)&&!!i[n(e)]}},15127:(e,t,r)=>{var n=r(79769),o=r(21723),a=r(69002),i=r(12279),s=r(78857);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?i(e)?o(e[0],e[1]):n(e):s(e)}},37462:(e,t,r)=>{var n=r(82161),o=r(25112),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=[];for(var r in Object(e))a.call(e,r)&&"constructor"!=r&&t.push(r);return t}},28833:(e,t,r)=>{var n=r(24567),o=r(82161),a=r(7175),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return a(e);var t=o(e),r=[];for(var s in e)("constructor"!=s||!t&&i.call(e,s))&&r.push(s);return r}},56602:(e,t,r)=>{var n=r(20927),o=r(97840);e.exports=function(e,t){var r=-1,a=o(e)?Array(e.length):[];return n(e,(function(e,n,o){a[++r]=t(e,n,o)})),a}},79769:(e,t,r)=>{var n=r(24489),o=r(13334),a=r(14243);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}},21723:(e,t,r)=>{var n=r(1404),o=r(87946),a=r(15321),i=r(43535),s=r(29794),l=r(14243),c=r(92535);e.exports=function(e,t){return i(e)&&s(t)?l(c(e),t):function(r){var i=o(r,e);return void 0===i&&i===t?a(r,e):n(t,i,3)}}},29343:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},84753:(e,t,r)=>{var n=r(10052);e.exports=function(e){return function(t){return n(t,e)}}},44102:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},91582:(e,t,r)=>{var n=r(4635),o=r(61570),a=r(12279),i=r(50184),s=n?n.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(a(t))return o(t,e)+"";if(i(t))return l?l.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}},35639:e=>{e.exports=function(e){return function(t){return e(t)}}},63445:e=>{e.exports=function(e,t){return e.has(t)}},39036:(e,t,r)=>{var n=r(69002);e.exports=function(e){return"function"==typeof e?e:n}},26463:(e,t,r)=>{var n=r(12279),o=r(43535),a=r(17044),i=r(54008);e.exports=function(e,t){return n(e)?e:o(e,t)?[e]:a(i(e))}},75871:(e,t,r)=>{var n=r(48246);e.exports=function(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}},8984:(e,t,r)=>{e=r.nmd(e);var n=r(14759),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o?n.Buffer:void 0,s=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=s?s(r):new e.constructor(r);return e.copy(n),n}},93863:(e,t,r)=>{var n=r(75871);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}},91991:e=>{var t=/\w*$/;e.exports=function(e){var r=new e.constructor(e.source,t.exec(e));return r.lastIndex=e.lastIndex,r}},42106:(e,t,r)=>{var n=r(4635),o=n?n.prototype:void 0,a=o?o.valueOf:void 0;e.exports=function(e){return a?Object(a.call(e)):{}}},58463:(e,t,r)=>{var n=r(75871);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},76321:e=>{e.exports=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}},83965:(e,t,r)=>{var n=r(77305),o=r(10366);e.exports=function(e,t,r,a){var i=!r;r||(r={});for(var s=-1,l=t.length;++s<l;){var c=t[s],u=a?a(r[c],e[c],c,r,e):void 0;void 0===u&&(u=e[c]),i?o(r,c,u):n(r,c,u)}return r}},21849:(e,t,r)=>{var n=r(83965),o=r(98194);e.exports=function(e,t){return n(e,o(e),t)}},63586:(e,t,r)=>{var n=r(83965),o=r(9653);e.exports=function(e,t){return n(e,o(e),t)}},64123:(e,t,r)=>{var n=r(14759)["__core-js_shared__"];e.exports=n},73267:(e,t,r)=>{var n=r(97840);e.exports=function(e,t){return function(r,o){if(null==r)return r;if(!n(r))return e(r,o);for(var a=r.length,i=t?a:-1,s=Object(r);(t?i--:++i<a)&&!1!==o(s[i],i,s););return r}}},45211:e=>{e.exports=function(e){return function(t,r,n){for(var o=-1,a=Object(t),i=n(t),s=i.length;s--;){var l=i[e?s:++o];if(!1===r(a[l],l,a))break}return t}}},88925:(e,t,r)=>{var n=r(20220),o=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=o},49757:(e,t,r)=>{var n=r(36669),o=r(56010),a=r(63445);e.exports=function(e,t,r,i,s,l){var c=1&r,u=e.length,p=t.length;if(u!=p&&!(c&&p>u))return!1;var f=l.get(e),h=l.get(t);if(f&&h)return f==t&&h==e;var d=-1,b=!0,v=2&r?new n:void 0;for(l.set(e,t),l.set(t,e);++d<u;){var g=e[d],x=t[d];if(i)var y=c?i(x,g,d,t,e,l):i(g,x,d,e,t,l);if(void 0!==y){if(y)continue;b=!1;break}if(v){if(!o(t,(function(e,t){if(!a(v,t)&&(g===e||s(g,e,r,i,l)))return v.push(t)}))){b=!1;break}}else if(g!==x&&!s(g,x,r,i,l)){b=!1;break}}return l.delete(e),l.delete(t),b}},21416:(e,t,r)=>{var n=r(4635),o=r(48246),a=r(44206),i=r(49757),s=r(90943),l=r(26557),c=n?n.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,r,n,c,p,f){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||!p(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+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 h=s;case"[object Set]":var d=1&n;if(h||(h=l),e.size!=t.size&&!d)return!1;var b=f.get(e);if(b)return b==t;n|=2,f.set(e,t);var v=i(h(e),h(t),n,c,p,f);return f.delete(e),v;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},16195:(e,t,r)=>{var n=r(93660),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,a,i,s){var l=1&r,c=n(e),u=c.length;if(u!=n(t).length&&!l)return!1;for(var p=u;p--;){var f=c[p];if(!(l?f in t:o.call(t,f)))return!1}var h=s.get(e),d=s.get(t);if(h&&d)return h==t&&d==e;var b=!0;s.set(e,t),s.set(t,e);for(var v=l;++p<u;){var g=e[f=c[p]],x=t[f];if(a)var y=l?a(x,g,f,t,e,s):a(g,x,f,e,t,s);if(!(void 0===y?g===x||i(g,x,r,a,s):y)){b=!1;break}v||(v="constructor"==f)}if(b&&!v){var m=e.constructor,w=t.constructor;m==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof m&&m instanceof m&&"function"==typeof w&&w instanceof w||(b=!1)}return s.delete(e),s.delete(t),b}},16658:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},93660:(e,t,r)=>{var n=r(54761),o=r(98194),a=r(65724);e.exports=function(e){return n(e,a,o)}},36387:(e,t,r)=>{var n=r(54761),o=r(9653),a=r(31235);e.exports=function(e){return n(e,a,o)}},77101:(e,t,r)=>{var n=r(94672);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},13334:(e,t,r)=>{var n=r(29794),o=r(65724);e.exports=function(e){for(var t=o(e),r=t.length;r--;){var a=t[r],i=e[a];t[r]=[a,i,n(i)]}return t}},20220:(e,t,r)=>{var n=r(57949),o=r(98166);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},42253:(e,t,r)=>{var n=r(62621)(Object.getPrototypeOf,Object);e.exports=n},81581:(e,t,r)=>{var n=r(4635),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=a.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(l){}var o=i.call(e);return n&&(t?e[s]=r:delete e[s]),o}},98194:(e,t,r)=>{var n=r(46860),o=r(71515),a=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(e){return null==e?[]:(e=Object(e),n(i(e),(function(t){return a.call(e,t)})))}:o;e.exports=s},9653:(e,t,r)=>{var n=r(87518),o=r(42253),a=r(98194),i=r(71515),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,a(e)),e=o(e);return t}:i;e.exports=s},25531:(e,t,r)=>{var n=r(22434),o=r(81465),a=r(30202),i=r(57887),s=r(94801),l=r(22022),c=r(29131),u="[object Map]",p="[object Promise]",f="[object Set]",h="[object WeakMap]",d="[object DataView]",b=c(n),v=c(o),g=c(a),x=c(i),y=c(s),m=l;(n&&m(new n(new ArrayBuffer(1)))!=d||o&&m(new o)!=u||a&&m(a.resolve())!=p||i&&m(new i)!=f||s&&m(new s)!=h)&&(m=function(e){var t=l(e),r="[object Object]"==t?e.constructor:void 0,n=r?c(r):"";if(n)switch(n){case b:return d;case v:return u;case g:return p;case x:return f;case y:return h}return t}),e.exports=m},98166:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},10964:(e,t,r)=>{var n=r(26463),o=r(24578),a=r(12279),i=r(97059),s=r(5776),l=r(92535);e.exports=function(e,t,r){for(var c=-1,u=(t=n(t,e)).length,p=!1;++c<u;){var f=l(t[c]);if(!(p=null!=e&&r(e,f)))break;e=e[f]}return p||++c!=u?p:!!(u=null==e?0:e.length)&&s(u)&&i(f,u)&&(a(e)||o(e))}},76958:(e,t,r)=>{var n=r(73616);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},41176:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},1787:(e,t,r)=>{var n=r(73616),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(t,e)?t[e]:void 0}},70231:(e,t,r)=>{var n=r(73616),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:o.call(t,e)}},27455:(e,t,r)=>{var n=r(73616);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},17203:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var r=e.length,n=new e.constructor(r);return r&&"string"==typeof e[0]&&t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}},10997:(e,t,r)=>{var n=r(75871),o=r(93863),a=r(91991),i=r(42106),s=r(58463);e.exports=function(e,t,r){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return n(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return o(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 s(e,r);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return a(e);case"[object Symbol]":return i(e)}}},35539:(e,t,r)=>{var n=r(48230),o=r(42253),a=r(82161);e.exports=function(e){return"function"!=typeof e.constructor||a(e)?{}:n(o(e))}},97059:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},43535:(e,t,r)=>{var n=r(12279),o=r(50184),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!o(e))||(i.test(e)||!a.test(e)||null!=t&&e in Object(t))}},94672:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},73306:(e,t,r)=>{var n=r(64123),o=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!o&&o in e}},82161:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},29794:(e,t,r)=>{var n=r(24567);e.exports=function(e){return e===e&&!n(e)}},5088:e=>{e.exports=function(){this.__data__=[],this.size=0}},10150:(e,t,r)=>{var n=r(45099),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():o.call(t,r,1),--this.size,!0)}},7889:(e,t,r)=>{var n=r(45099);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},44349:(e,t,r)=>{var n=r(45099);e.exports=function(e){return n(this.__data__,e)>-1}},33077:(e,t,r)=>{var n=r(45099);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},40738:(e,t,r)=>{var n=r(1111),o=r(85661),a=r(81465);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(a||o),string:new n}}},70708:(e,t,r)=>{var n=r(77101);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},26823:(e,t,r)=>{var n=r(77101);e.exports=function(e){return n(this,e).get(e)}},20475:(e,t,r)=>{var n=r(77101);e.exports=function(e){return n(this,e).has(e)}},77859:(e,t,r)=>{var n=r(77101);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}},90943:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},14243:e=>{e.exports=function(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}}},23734:(e,t,r)=>{var n=r(42434);e.exports=function(e){var t=n(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}},73616:(e,t,r)=>{var n=r(20220)(Object,"create");e.exports=n},25112:(e,t,r)=>{var n=r(62621)(Object.keys,Object);e.exports=n},7175:e=>{e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},82479:(e,t,r)=>{e=r.nmd(e);var n=r(16658),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o&&n.process,s=function(){try{var e=a&&a.require&&a.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(t){}}();e.exports=s},65336:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},62621:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},14759:(e,t,r)=>{var n=r(16658),o="object"==typeof self&&self&&self.Object===Object&&self,a=n||o||Function("return this")();e.exports=a},62274:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},69757:e=>{e.exports=function(e){return this.__data__.has(e)}},26557:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},44710:(e,t,r)=>{var n=r(85661);e.exports=function(){this.__data__=new n,this.size=0}},78384:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},87379:e=>{e.exports=function(e){return this.__data__.get(e)}},80799:e=>{e.exports=function(e){return this.__data__.has(e)}},12791:(e,t,r)=>{var n=r(85661),o=r(81465),a=r(54467);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var i=r.__data__;if(!o||i.length<199)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new a(i)}return r.set(e,t),this.size=r.size,this}},17044:(e,t,r)=>{var n=r(23734),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,i=n((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,r,n,o){t.push(n?o.replace(a,"$1"):r||e)})),t}));e.exports=i},92535:(e,t,r)=>{var n=r(50184);e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},29131:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(r){}try{return e+""}catch(r){}}return""}},55117:(e,t,r)=>{var n=r(79645);e.exports=function(e){return n(e,5)}},44206:e=>{e.exports=function(e,t){return e===t||e!==e&&t!==t}},28437:(e,t,r)=>{var n=r(70423),o=r(39036);e.exports=function(e,t){return e&&n(e,o(t))}},87946:(e,t,r)=>{var n=r(10052);e.exports=function(e,t,r){var o=null==e?void 0:n(e,t);return void 0===o?r:o}},15321:(e,t,r)=>{var n=r(14591),o=r(10964);e.exports=function(e,t){return null!=e&&o(e,t,n)}},69002:e=>{e.exports=function(e){return e}},24578:(e,t,r)=>{var n=r(73012),o=r(39248),a=Object.prototype,i=a.hasOwnProperty,s=a.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(e){return o(e)&&i.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},12279:e=>{var t=Array.isArray;e.exports=t},97840:(e,t,r)=>{var n=r(93008),o=r(5776);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},6794:(e,t,r)=>{e=r.nmd(e);var n=r(14759),o=r(63721),a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,s=i&&i.exports===a?n.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},93008:(e,t,r)=>{var n=r(22022),o=r(24567);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},5776:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},97744:(e,t,r)=>{var n=r(3530),o=r(35639),a=r(82479),i=a&&a.isMap,s=i?o(i):n;e.exports=s},24567:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},39248:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},75461:(e,t,r)=>{var n=r(22022),o=r(42253),a=r(39248),i=Function.prototype,s=Object.prototype,l=i.toString,c=s.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!a(e)||"[object Object]"!=n(e))return!1;var t=o(e);if(null===t)return!0;var r=c.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&l.call(r)==u}},5738:(e,t,r)=>{var n=r(40771),o=r(35639),a=r(82479),i=a&&a.isSet,s=i?o(i):n;e.exports=s},56801:(e,t,r)=>{var n=r(22022),o=r(12279),a=r(39248);e.exports=function(e){return"string"==typeof e||!o(e)&&a(e)&&"[object String]"==n(e)}},50184:(e,t,r)=>{var n=r(22022),o=r(39248);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==n(e)}},71641:(e,t,r)=>{var n=r(38183),o=r(35639),a=r(82479),i=a&&a.isTypedArray,s=i?o(i):n;e.exports=s},65724:(e,t,r)=>{var n=r(37405),o=r(37462),a=r(97840);e.exports=function(e){return a(e)?n(e):o(e)}},31235:(e,t,r)=>{var n=r(37405),o=r(28833),a=r(97840);e.exports=function(e){return a(e)?n(e,!0):o(e)}},55876:(e,t,r)=>{var n=r(61570),o=r(15127),a=r(56602),i=r(12279);e.exports=function(e,t){return(i(e)?n:a)(e,o(t,3))}},42434:(e,t,r)=>{var n=r(54467);function o(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(o.Cache||n),r}o.Cache=n,e.exports=o},78857:(e,t,r)=>{var n=r(29343),o=r(84753),a=r(43535),i=r(92535);e.exports=function(e){return a(e)?n(i(e)):o(e)}},71515:e=>{e.exports=function(){return[]}},63721:e=>{e.exports=function(){return!1}},54008:(e,t,r)=>{var n=r(91582);e.exports=function(e){return null==e?"":n(e)}},25825:(e,t,r)=>{"use strict";r.d(t,{Xq:()=>qa});var n=r(9950),o=r(65617),a={},i=function(e,t,r,n){var o=e+"-"+t+"-"+r+(n?"-server":"");if(a[o])return a[o];var i=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 a[o]=i,i},s=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},l=function(e){var t=e.white,r=e.grey,a=e.size,l=e.renderers,c=e.borderRadius,u=e.boxShadow,p=e.children,f=(0,o.Ay)({default:{grid:{borderRadius:c,boxShadow:u,absolute:"0px 0px 0px 0px",background:"url("+i(t,r,a,l.canvas)+") center left"}}});return(0,n.isValidElement)(p)?n.cloneElement(p,s({},p.props,{style:s({},p.props.style,f.grid)})):n.createElement("div",{style:f.grid})};l.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};const c=l;var u=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},p=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}}();function f(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}const h=function(e){function t(){var e,r,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=n=f(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),n.handleChange=function(e){var t=function(e,t,r,n,o){var a=o.clientWidth,i=o.clientHeight,s="number"===typeof e.pageX?e.pageX:e.touches[0].pageX,l="number"===typeof e.pageY?e.pageY:e.touches[0].pageY,c=s-(o.getBoundingClientRect().left+window.pageXOffset),u=l-(o.getBoundingClientRect().top+window.pageYOffset);if("vertical"===r){var p=void 0;if(p=u<0?0:u>i?1:Math.round(100*u/i)/100,t.a!==p)return{h:t.h,s:t.s,l:t.l,a:p,source:"rgb"}}else{var f=void 0;if(n!==(f=c<0?0:c>a?1:Math.round(100*c/a)/100))return{h:t.h,s:t.s,l:t.l,a:f,source:"rgb"}}return null}(e,n.props.hsl,n.props.direction,n.props.a,n.container);t&&"function"===typeof n.props.onChange&&n.props.onChange(t,e)},n.handleMouseDown=function(e){n.handleChange(e),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)},f(n,r)}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)}(t,e),p(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var e=this,t=this.props.rgb,r=(0,o.Ay)({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:u({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return n.createElement("div",{style:r.alpha},n.createElement("div",{style:r.checkboard},n.createElement(c,{renderers:this.props.renderers})),n.createElement("div",{style:r.gradient}),n.createElement("div",{style:r.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},n.createElement("div",{style:r.pointer},this.props.pointer?n.createElement(this.props.pointer,this.props):n.createElement("div",{style:r.slider}))))}}]),t}(n.PureComponent||n.Component);var d=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}}();var b=[38,40],v=1;const g=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=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}(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.setUpdatedValue(e.target.value,e)},r.handleKeyDown=function(e){var t,n=function(e){return Number(String(e).replace(/%/g,""))}(e.target.value);if(!isNaN(n)&&(t=e.keyCode,b.indexOf(t)>-1)){var o=r.getArrowOffset(),a=38===e.keyCode?n+o:n-o;r.setUpdatedValue(a,e)}},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(r.getValueObjectWithLabel(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.inputId="rc-editable-input-"+v++,r}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)}(t,e),d(t,[{key:"componentDidUpdate",value:function(e,t){this.props.value===this.state.value||e.value===this.props.value&&t.value===this.state.value||(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(e){return function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},this.props.label,e)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(e,t){var r=this.props.label?this.getValueObjectWithLabel(e):e;this.props.onChange&&this.props.onChange(r,t),this.setState({value:e})}},{key:"render",value:function(){var e=this,t=(0,o.Ay)({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 n.createElement("div",{style:t.wrap},n.createElement("input",{id:this.inputId,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?n.createElement("label",{htmlFor:this.inputId,style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(n.PureComponent||n.Component);var x=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}}();function y(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}const m=function(e){function t(){var e,r,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=n=y(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),n.handleChange=function(e){var t=function(e,t,r,n){var o=n.clientWidth,a=n.clientHeight,i="number"===typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"===typeof e.pageY?e.pageY:e.touches[0].pageY,l=i-(n.getBoundingClientRect().left+window.pageXOffset),c=s-(n.getBoundingClientRect().top+window.pageYOffset);if("vertical"===t){var u=void 0;if(u=c<0?359:c>a?0:360*(-100*c/a+100)/100,r.h!==u)return{h:u,s:r.s,l:r.l,a:r.a,source:"hsl"}}else{var p=void 0;if(p=l<0?0:l>o?359:100*l/o*360/100,r.h!==p)return{h:p,s:r.s,l:r.l,a:r.a,source:"hsl"}}return null}(e,n.props.direction,n.props.hsl,n.container);t&&"function"===typeof n.props.onChange&&n.props.onChange(t,e)},n.handleMouseDown=function(e){n.handleChange(e),window.addEventListener("mousemove",n.handleChange),window.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},y(n,r)}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)}(t,e),x(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,r=void 0===t?"horizontal":t,a=(0,o.Ay)({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"===r});return n.createElement("div",{style:a.hue},n.createElement("div",{className:"hue-"+r,style:a.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},n.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          "),n.createElement("div",{style:a.pointer},this.props.pointer?n.createElement(this.props.pointer,this.props):n.createElement("div",{style:a.slider}))))}}]),t}(n.PureComponent||n.Component);var w=r(11942),_=r.n(w);const E=function(){this.__data__=[],this.size=0};const j=function(e,t){return e===t||e!==e&&t!==t};const C=function(e,t){for(var r=e.length;r--;)if(j(e[r][0],t))return r;return-1};var O=Array.prototype.splice;const S=function(e){var t=this.__data__,r=C(t,e);return!(r<0)&&(r==t.length-1?t.pop():O.call(t,r,1),--this.size,!0)};const k=function(e){var t=this.__data__,r=C(t,e);return r<0?void 0:t[r][1]};const A=function(e){return C(this.__data__,e)>-1};const M=function(e,t){var r=this.__data__,n=C(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function R(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])}}R.prototype.clear=E,R.prototype.delete=S,R.prototype.get=k,R.prototype.has=A,R.prototype.set=M;const F=R;const B=function(){this.__data__=new F,this.size=0};const P=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r};const T=function(e){return this.__data__.get(e)};const z=function(e){return this.__data__.has(e)};const D="object"==typeof global&&global&&global.Object===Object&&global;var H="object"==typeof self&&self&&self.Object===Object&&self;const L=D||H||Function("return this")();const N=L.Symbol;var U=Object.prototype,G=U.hasOwnProperty,I=U.toString,W=N?N.toStringTag:void 0;const X=function(e){var t=G.call(e,W),r=e[W];try{e[W]=void 0;var n=!0}catch(a){}var o=I.call(e);return n&&(t?e[W]=r:delete e[W]),o};var V=Object.prototype.toString;const $=function(e){return V.call(e)};var q=N?N.toStringTag:void 0;const Y=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":q&&q in Object(e)?X(e):$(e)};const K=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};const Z=function(e){if(!K(e))return!1;var t=Y(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};const J=L["__core-js_shared__"];var Q=function(){var e=/[^.]+$/.exec(J&&J.keys&&J.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();const ee=function(e){return!!Q&&Q in e};var te=Function.prototype.toString;const re=function(e){if(null!=e){try{return te.call(e)}catch(t){}try{return e+""}catch(t){}}return""};var ne=/^\[object .+?Constructor\]$/,oe=Function.prototype,ae=Object.prototype,ie=oe.toString,se=ae.hasOwnProperty,le=RegExp("^"+ie.call(se).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const ce=function(e){return!(!K(e)||ee(e))&&(Z(e)?le:ne).test(re(e))};const ue=function(e,t){return null==e?void 0:e[t]};const pe=function(e,t){var r=ue(e,t);return ce(r)?r:void 0};const fe=pe(L,"Map");const he=pe(Object,"create");const de=function(){this.__data__=he?he(null):{},this.size=0};const be=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t};var ve=Object.prototype.hasOwnProperty;const ge=function(e){var t=this.__data__;if(he){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return ve.call(t,e)?t[e]:void 0};var xe=Object.prototype.hasOwnProperty;const ye=function(e){var t=this.__data__;return he?void 0!==t[e]:xe.call(t,e)};const me=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=he&&void 0===t?"__lodash_hash_undefined__":t,this};function we(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])}}we.prototype.clear=de,we.prototype.delete=be,we.prototype.get=ge,we.prototype.has=ye,we.prototype.set=me;const _e=we;const Ee=function(){this.size=0,this.__data__={hash:new _e,map:new(fe||F),string:new _e}};const je=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};const Ce=function(e,t){var r=e.__data__;return je(t)?r["string"==typeof t?"string":"hash"]:r.map};const Oe=function(e){var t=Ce(this,e).delete(e);return this.size-=t?1:0,t};const Se=function(e){return Ce(this,e).get(e)};const ke=function(e){return Ce(this,e).has(e)};const Ae=function(e,t){var r=Ce(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function Me(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])}}Me.prototype.clear=Ee,Me.prototype.delete=Oe,Me.prototype.get=Se,Me.prototype.has=ke,Me.prototype.set=Ae;const Re=Me;const Fe=function(e,t){var r=this.__data__;if(r instanceof F){var n=r.__data__;if(!fe||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Re(n)}return r.set(e,t),this.size=r.size,this};function Be(e){var t=this.__data__=new F(e);this.size=t.size}Be.prototype.clear=B,Be.prototype.delete=P,Be.prototype.get=T,Be.prototype.has=z,Be.prototype.set=Fe;const Pe=Be;const Te=function(){try{var e=pe(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();const ze=function(e,t,r){"__proto__"==t&&Te?Te(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r};const De=function(e,t,r){(void 0!==r&&!j(e[t],r)||void 0===r&&!(t in e))&&ze(e,t,r)};const He=function(e){return function(t,r,n){for(var o=-1,a=Object(t),i=n(t),s=i.length;s--;){var l=i[e?s:++o];if(!1===r(a[l],l,a))break}return t}}();var Le="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ne=Le&&"object"==typeof module&&module&&!module.nodeType&&module,Ue=Ne&&Ne.exports===Le?L.Buffer:void 0,Ge=Ue?Ue.allocUnsafe:void 0;const Ie=function(e,t){if(t)return e.slice();var r=e.length,n=Ge?Ge(r):new e.constructor(r);return e.copy(n),n};const We=L.Uint8Array;const Xe=function(e){var t=new e.constructor(e.byteLength);return new We(t).set(new We(e)),t};const Ve=function(e,t){var r=t?Xe(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)};const $e=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t};var qe=Object.create;const Ye=function(){function e(){}return function(t){if(!K(t))return{};if(qe)return qe(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const Ke=function(e,t){return function(r){return e(t(r))}};const Ze=Ke(Object.getPrototypeOf,Object);var Je=Object.prototype;const Qe=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Je)};const et=function(e){return"function"!=typeof e.constructor||Qe(e)?{}:Ye(Ze(e))};const tt=function(e){return null!=e&&"object"==typeof e};const rt=function(e){return tt(e)&&"[object Arguments]"==Y(e)};var nt=Object.prototype,ot=nt.hasOwnProperty,at=nt.propertyIsEnumerable;const it=rt(function(){return arguments}())?rt:function(e){return tt(e)&&ot.call(e,"callee")&&!at.call(e,"callee")};const st=Array.isArray;const lt=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};const ct=function(e){return null!=e&&lt(e.length)&&!Z(e)};const ut=function(e){return tt(e)&&ct(e)};const pt=function(){return!1};var ft="object"==typeof exports&&exports&&!exports.nodeType&&exports,ht=ft&&"object"==typeof module&&module&&!module.nodeType&&module,dt=ht&&ht.exports===ft?L.Buffer:void 0;const bt=(dt?dt.isBuffer:void 0)||pt;var vt=Function.prototype,gt=Object.prototype,xt=vt.toString,yt=gt.hasOwnProperty,mt=xt.call(Object);const wt=function(e){if(!tt(e)||"[object Object]"!=Y(e))return!1;var t=Ze(e);if(null===t)return!0;var r=yt.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&xt.call(r)==mt};var _t={};_t["[object Float32Array]"]=_t["[object Float64Array]"]=_t["[object Int8Array]"]=_t["[object Int16Array]"]=_t["[object Int32Array]"]=_t["[object Uint8Array]"]=_t["[object Uint8ClampedArray]"]=_t["[object Uint16Array]"]=_t["[object Uint32Array]"]=!0,_t["[object Arguments]"]=_t["[object Array]"]=_t["[object ArrayBuffer]"]=_t["[object Boolean]"]=_t["[object DataView]"]=_t["[object Date]"]=_t["[object Error]"]=_t["[object Function]"]=_t["[object Map]"]=_t["[object Number]"]=_t["[object Object]"]=_t["[object RegExp]"]=_t["[object Set]"]=_t["[object String]"]=_t["[object WeakMap]"]=!1;const Et=function(e){return tt(e)&&lt(e.length)&&!!_t[Y(e)]};const jt=function(e){return function(t){return e(t)}};var Ct="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ot=Ct&&"object"==typeof module&&module&&!module.nodeType&&module,St=Ot&&Ot.exports===Ct&&D.process,kt=function(){try{var e=Ot&&Ot.require&&Ot.require("util").types;return e||St&&St.binding&&St.binding("util")}catch(t){}}();var At=kt&&kt.isTypedArray;const Mt=At?jt(At):Et;const Rt=function(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]};var Ft=Object.prototype.hasOwnProperty;const Bt=function(e,t,r){var n=e[t];Ft.call(e,t)&&j(n,r)&&(void 0!==r||t in e)||ze(e,t,r)};const Pt=function(e,t,r,n){var o=!r;r||(r={});for(var a=-1,i=t.length;++a<i;){var s=t[a],l=n?n(r[s],e[s],s,r,e):void 0;void 0===l&&(l=e[s]),o?ze(r,s,l):Bt(r,s,l)}return r};const Tt=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n};var zt=/^(?:0|[1-9]\d*)$/;const Dt=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&zt.test(e))&&e>-1&&e%1==0&&e<t};var Ht=Object.prototype.hasOwnProperty;const Lt=function(e,t){var r=st(e),n=!r&&it(e),o=!r&&!n&&bt(e),a=!r&&!n&&!o&&Mt(e),i=r||n||o||a,s=i?Tt(e.length,String):[],l=s.length;for(var c in e)!t&&!Ht.call(e,c)||i&&("length"==c||o&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Dt(c,l))||s.push(c);return s};const Nt=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t};var Ut=Object.prototype.hasOwnProperty;const Gt=function(e){if(!K(e))return Nt(e);var t=Qe(e),r=[];for(var n in e)("constructor"!=n||!t&&Ut.call(e,n))&&r.push(n);return r};const It=function(e){return ct(e)?Lt(e,!0):Gt(e)};const Wt=function(e){return Pt(e,It(e))};const Xt=function(e,t,r,n,o,a,i){var s=Rt(e,r),l=Rt(t,r),c=i.get(l);if(c)De(e,r,c);else{var u=a?a(s,l,r+"",e,t,i):void 0,p=void 0===u;if(p){var f=st(l),h=!f&&bt(l),d=!f&&!h&&Mt(l);u=l,f||h||d?st(s)?u=s:ut(s)?u=$e(s):h?(p=!1,u=Ie(l,!0)):d?(p=!1,u=Ve(l,!0)):u=[]:wt(l)||it(l)?(u=s,it(s)?u=Wt(s):K(s)&&!Z(s)||(u=et(l))):p=!1}p&&(i.set(l,u),o(u,l,n,a,i),i.delete(l)),De(e,r,u)}};const Vt=function e(t,r,n,o,a){t!==r&&He(r,(function(i,s){if(a||(a=new Pe),K(i))Xt(t,r,s,n,e,o,a);else{var l=o?o(Rt(t,s),i,s+"",t,r,a):void 0;void 0===l&&(l=i),De(t,s,l)}}),It)};const $t=function(e){return e};const qt=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)};var Yt=Math.max;const Kt=function(e,t,r){return t=Yt(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,a=Yt(n.length-t,0),i=Array(a);++o<a;)i[o]=n[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=n[o];return s[t]=r(i),qt(e,this,s)}};const Zt=function(e){return function(){return e}};const Jt=Te?function(e,t){return Te(e,"toString",{configurable:!0,enumerable:!1,value:Zt(t),writable:!0})}:$t;var Qt=Date.now;const er=function(e){var t=0,r=0;return function(){var n=Qt(),o=16-(n-r);if(r=n,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Jt);const tr=function(e,t){return er(Kt(e,t,$t),e+"")};const rr=function(e,t,r){if(!K(r))return!1;var n=typeof t;return!!("number"==n?ct(r)&&Dt(t,r.length):"string"==n&&t in r)&&j(r[t],e)};const nr=function(e){return tr((function(t,r){var n=-1,o=r.length,a=o>1?r[o-1]:void 0,i=o>2?r[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,i&&rr(r[0],r[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++n<o;){var s=r[n];s&&e(t,s,n,a)}return t}))}((function(e,t,r){Vt(e,t,r)}));var or=function(e){var t=e.zDepth,r=e.radius,a=e.background,i=e.children,s=e.styles,l=void 0===s?{}:s,c=(0,o.Ay)(nr({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:r,background:a}},"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%"}}},l),{"zDepth-1":1===t});return n.createElement("div",{style:c.wrap},n.createElement("div",{style:c.bg}),n.createElement("div",{style:c.content},i))};or.propTypes={background:_().string,zDepth:_().oneOf([0,1,2,3,4,5]),radius:_().number,styles:_().object},or.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}};const ar=or;const ir=function(){return L.Date.now()};var sr=/\s/;const lr=function(e){for(var t=e.length;t--&&sr.test(e.charAt(t)););return t};var cr=/^\s+/;const ur=function(e){return e?e.slice(0,lr(e)+1).replace(cr,""):e};const pr=function(e){return"symbol"==typeof e||tt(e)&&"[object Symbol]"==Y(e)};var fr=/^[-+]0x[0-9a-f]+$/i,hr=/^0b[01]+$/i,dr=/^0o[0-7]+$/i,br=parseInt;const vr=function(e){if("number"==typeof e)return e;if(pr(e))return NaN;if(K(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=K(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=ur(e);var r=hr.test(e);return r||dr.test(e)?br(e.slice(2),r?2:8):fr.test(e)?NaN:+e};var gr=Math.max,xr=Math.min;const yr=function(e,t,r){var n,o,a,i,s,l,c=0,u=!1,p=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function h(t){var r=n,a=o;return n=o=void 0,c=t,i=e.apply(a,r)}function d(e){var r=e-l;return void 0===l||r>=t||r<0||p&&e-c>=a}function b(){var e=ir();if(d(e))return v(e);s=setTimeout(b,function(e){var r=t-(e-l);return p?xr(r,a-(e-c)):r}(e))}function v(e){return s=void 0,f&&n?h(e):(n=o=void 0,i)}function g(){var e=ir(),r=d(e);if(n=arguments,o=this,l=e,r){if(void 0===s)return function(e){return c=e,s=setTimeout(b,t),u?h(e):i}(l);if(p)return clearTimeout(s),s=setTimeout(b,t),h(l)}return void 0===s&&(s=setTimeout(b,t)),i}return t=vr(t)||0,K(r)&&(u=!!r.leading,a=(p="maxWait"in r)?gr(vr(r.maxWait)||0,t):a,f="trailing"in r?!!r.trailing:f),g.cancel=function(){void 0!==s&&clearTimeout(s),c=0,n=l=o=s=void 0},g.flush=function(){return void 0===s?i:v(ir())},g};const mr=function(e,t,r){var n=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return K(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),yr(e,t,{leading:n,maxWait:t,trailing:o})};var wr=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}}();var _r=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.handleChange=function(e){"function"===typeof r.props.onChange&&r.throttle(r.props.onChange,function(e,t,r){var n=r.getBoundingClientRect(),o=n.width,a=n.height,i="number"===typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"===typeof e.pageY?e.pageY:e.touches[0].pageY,l=i-(r.getBoundingClientRect().left+window.pageXOffset),c=s-(r.getBoundingClientRect().top+window.pageYOffset);l<0?l=0:l>o&&(l=o),c<0?c=0:c>a&&(c=a);var u=l/o,p=1-c/a;return{h:t.h,s:u,v:p,a:t.a,source:"hsv"}}(e,r.props.hsl,r.container),e)},r.handleMouseDown=function(e){r.handleChange(e);var t=r.getContainerRenderWindow();t.addEventListener("mousemove",r.handleChange),t.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r.throttle=mr((function(e,t,r){e(t,r)}),50),r}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)}(t,e),wr(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var e=this.container,t=window;!t.document.contains(e)&&t.parent!==t;)t=t.parent;return t}},{key:"unbindEventListeners",value:function(){var e=this.getContainerRenderWindow();e.removeEventListener("mousemove",this.handleChange),e.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.style||{},r=t.color,a=t.white,i=t.black,s=t.pointer,l=t.circle,c=(0,o.Ay)({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:r,white:a,black:i,pointer:s,circle:l}},{custom:!!this.props.style});return n.createElement("div",{style:c.color,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},n.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        "),n.createElement("div",{style:c.white,className:"saturation-white"},n.createElement("div",{style:c.black,className:"saturation-black"}),n.createElement("div",{style:c.pointer},this.props.pointer?n.createElement(this.props.pointer,this.props):n.createElement("div",{style:c.circle}))))}}]),t}(n.PureComponent||n.Component);const Er=_r;const jr=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e};const Cr=Ke(Object.keys,Object);var Or=Object.prototype.hasOwnProperty;const Sr=function(e){if(!Qe(e))return Cr(e);var t=[];for(var r in Object(e))Or.call(e,r)&&"constructor"!=r&&t.push(r);return t};const kr=function(e){return ct(e)?Lt(e):Sr(e)};const Ar=function(e,t){return function(r,n){if(null==r)return r;if(!ct(r))return e(r,n);for(var o=r.length,a=t?o:-1,i=Object(r);(t?a--:++a<o)&&!1!==n(i[a],a,i););return r}}((function(e,t){return e&&He(e,t,kr)}));const Mr=function(e){return"function"==typeof e?e:$t};const Rr=function(e,t){return(st(e)?jr:Ar)(e,Mr(t))};function Fr(e){return Fr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fr(e)}var Br=/^\s+/,Pr=/\s+$/;function Tr(e,t){if(t=t||{},(e=e||"")instanceof Tr)return e;if(!(this instanceof Tr))return new Tr(e,t);var r=function(e){var t={r:0,g:0,b:0},r=1,n=null,o=null,a=null,i=!1,s=!1;"string"==typeof e&&(e=function(e){e=e.replace(Br,"").replace(Pr,"").toLowerCase();var t,r=!1;if(Jr[e])e=Jr[e],r=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=cn.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=cn.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=cn.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=cn.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=cn.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=cn.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=cn.hex8.exec(e))return{r:nn(t[1]),g:nn(t[2]),b:nn(t[3]),a:ln(t[4]),format:r?"name":"hex8"};if(t=cn.hex6.exec(e))return{r:nn(t[1]),g:nn(t[2]),b:nn(t[3]),format:r?"name":"hex"};if(t=cn.hex4.exec(e))return{r:nn(t[1]+""+t[1]),g:nn(t[2]+""+t[2]),b:nn(t[3]+""+t[3]),a:ln(t[4]+""+t[4]),format:r?"name":"hex8"};if(t=cn.hex3.exec(e))return{r:nn(t[1]+""+t[1]),g:nn(t[2]+""+t[2]),b:nn(t[3]+""+t[3]),format:r?"name":"hex"};return!1}(e));"object"==Fr(e)&&(un(e.r)&&un(e.g)&&un(e.b)?(l=e.r,c=e.g,u=e.b,t={r:255*tn(l,255),g:255*tn(c,255),b:255*tn(u,255)},i=!0,s="%"===String(e.r).substr(-1)?"prgb":"rgb"):un(e.h)&&un(e.s)&&un(e.v)?(n=an(e.s),o=an(e.v),t=function(e,t,r){e=6*tn(e,360),t=tn(t,100),r=tn(r,100);var n=Math.floor(e),o=e-n,a=r*(1-t),i=r*(1-o*t),s=r*(1-(1-o)*t),l=n%6,c=[r,i,a,a,s,r][l],u=[s,r,r,i,a,a][l],p=[a,a,s,r,r,i][l];return{r:255*c,g:255*u,b:255*p}}(e.h,n,o),i=!0,s="hsv"):un(e.h)&&un(e.s)&&un(e.l)&&(n=an(e.s),a=an(e.l),t=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=tn(e,360),t=tn(t,100),r=tn(r,100),0===t)n=o=a=r;else{var s=r<.5?r*(1+t):r+t-r*t,l=2*r-s;n=i(l,s,e+1/3),o=i(l,s,e),a=i(l,s,e-1/3)}return{r:255*n,g:255*o,b:255*a}}(e.h,n,a),i=!0,s="hsl"),e.hasOwnProperty("a")&&(r=e.a));var l,c,u;return r=en(r),{ok:i,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}function zr(e,t,r){e=tn(e,255),t=tn(t,255),r=tn(r,255);var n,o,a=Math.max(e,t,r),i=Math.min(e,t,r),s=(a+i)/2;if(a==i)n=o=0;else{var l=a-i;switch(o=s>.5?l/(2-a-i):l/(a+i),a){case e:n=(t-r)/l+(t<r?6:0);break;case t:n=(r-e)/l+2;break;case r:n=(e-t)/l+4}n/=6}return{h:n,s:o,l:s}}function Dr(e,t,r){e=tn(e,255),t=tn(t,255),r=tn(r,255);var n,o,a=Math.max(e,t,r),i=Math.min(e,t,r),s=a,l=a-i;if(o=0===a?0:l/a,a==i)n=0;else{switch(a){case e:n=(t-r)/l+(t<r?6:0);break;case t:n=(r-e)/l+2;break;case r:n=(e-t)/l+4}n/=6}return{h:n,s:o,v:s}}function Hr(e,t,r,n){var o=[on(Math.round(e).toString(16)),on(Math.round(t).toString(16)),on(Math.round(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 Lr(e,t,r,n){return[on(sn(n)),on(Math.round(e).toString(16)),on(Math.round(t).toString(16)),on(Math.round(r).toString(16))].join("")}function Nr(e,t){t=0===t?0:t||10;var r=Tr(e).toHsl();return r.s-=t/100,r.s=rn(r.s),Tr(r)}function Ur(e,t){t=0===t?0:t||10;var r=Tr(e).toHsl();return r.s+=t/100,r.s=rn(r.s),Tr(r)}function Gr(e){return Tr(e).desaturate(100)}function Ir(e,t){t=0===t?0:t||10;var r=Tr(e).toHsl();return r.l+=t/100,r.l=rn(r.l),Tr(r)}function Wr(e,t){t=0===t?0:t||10;var r=Tr(e).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(-t/100*255))),r.g=Math.max(0,Math.min(255,r.g-Math.round(-t/100*255))),r.b=Math.max(0,Math.min(255,r.b-Math.round(-t/100*255))),Tr(r)}function Xr(e,t){t=0===t?0:t||10;var r=Tr(e).toHsl();return r.l-=t/100,r.l=rn(r.l),Tr(r)}function Vr(e,t){var r=Tr(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,Tr(r)}function $r(e){var t=Tr(e).toHsl();return t.h=(t.h+180)%360,Tr(t)}function qr(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var r=Tr(e).toHsl(),n=[Tr(e)],o=360/t,a=1;a<t;a++)n.push(Tr({h:(r.h+a*o)%360,s:r.s,l:r.l}));return n}function Yr(e){var t=Tr(e).toHsl(),r=t.h;return[Tr(e),Tr({h:(r+72)%360,s:t.s,l:t.l}),Tr({h:(r+216)%360,s:t.s,l:t.l})]}function Kr(e,t,r){t=t||6,r=r||30;var n=Tr(e).toHsl(),o=360/r,a=[Tr(e)];for(n.h=(n.h-(o*t>>1)+720)%360;--t;)n.h=(n.h+o)%360,a.push(Tr(n));return a}function Zr(e,t){t=t||6;for(var r=Tr(e).toHsv(),n=r.h,o=r.s,a=r.v,i=[],s=1/t;t--;)i.push(Tr({h:n,s:o,v:a})),a=(a+s)%1;return i}Tr.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,t,r,n=this.toRgb();return e=n.r/255,t=n.g/255,r=n.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},setAlpha:function(e){return this._a=en(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=Dr(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=Dr(this._r,this._g,this._b),t=Math.round(360*e.h),r=Math.round(100*e.s),n=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=zr(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=zr(this._r,this._g,this._b),t=Math.round(360*e.h),r=Math.round(100*e.s),n=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+r+"%, "+n+"%)":"hsla("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return Hr(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 a=[on(Math.round(e).toString(16)),on(Math.round(t).toString(16)),on(Math.round(r).toString(16)),on(sn(n))];if(o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1))return a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0);return a.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*tn(this._r,255))+"%",g:Math.round(100*tn(this._g,255))+"%",b:Math.round(100*tn(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*tn(this._r,255))+"%, "+Math.round(100*tn(this._g,255))+"%, "+Math.round(100*tn(this._b,255))+"%)":"rgba("+Math.round(100*tn(this._r,255))+"%, "+Math.round(100*tn(this._g,255))+"%, "+Math.round(100*tn(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(Qr[Hr(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+Lr(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var o=Tr(e);r="#"+Lr(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 Tr(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(Ir,arguments)},brighten:function(){return this._applyModification(Wr,arguments)},darken:function(){return this._applyModification(Xr,arguments)},desaturate:function(){return this._applyModification(Nr,arguments)},saturate:function(){return this._applyModification(Ur,arguments)},greyscale:function(){return this._applyModification(Gr,arguments)},spin:function(){return this._applyModification(Vr,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(Kr,arguments)},complement:function(){return this._applyCombination($r,arguments)},monochromatic:function(){return this._applyCombination(Zr,arguments)},splitcomplement:function(){return this._applyCombination(Yr,arguments)},triad:function(){return this._applyCombination(qr,[3])},tetrad:function(){return this._applyCombination(qr,[4])}},Tr.fromRatio=function(e,t){if("object"==Fr(e)){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]="a"===n?e[n]:an(e[n]));e=r}return Tr(e,t)},Tr.equals=function(e,t){return!(!e||!t)&&Tr(e).toRgbString()==Tr(t).toRgbString()},Tr.random=function(){return Tr.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},Tr.mix=function(e,t,r){r=0===r?0:r||50;var n=Tr(e).toRgb(),o=Tr(t).toRgb(),a=r/100;return Tr({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})},Tr.readability=function(e,t){var r=Tr(e),n=Tr(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},Tr.isReadable=function(e,t,r){var n,o,a=Tr.readability(e,t);switch(o=!1,(n=function(e){var t,r;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==r&&"large"!==r&&(r="small");return{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},Tr.mostReadable=function(e,t,r){var n,o,a,i,s=null,l=0;o=(r=r||{}).includeFallbackColors,a=r.level,i=r.size;for(var c=0;c<t.length;c++)(n=Tr.readability(e,t[c]))>l&&(l=n,s=Tr(t[c]));return Tr.isReadable(e,s,{level:a,size:i})||!o?s:(r.includeFallbackColors=!1,Tr.mostReadable(e,["#fff","#000"],r))};var Jr=Tr.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"},Qr=Tr.hexNames=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}(Jr);function en(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function tn(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var r=function(e){return"string"===typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function rn(e){return Math.min(1,Math.max(0,e))}function nn(e){return parseInt(e,16)}function on(e){return 1==e.length?"0"+e:""+e}function an(e){return e<=1&&(e=100*e+"%"),e}function sn(e){return Math.round(255*parseFloat(e)).toString(16)}function ln(e){return nn(e)/255}var cn=function(){var e="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",t="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?",r="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?";return{CSS_UNIT:new RegExp(e),rgb:new RegExp("rgb"+t),rgba:new RegExp("rgba"+r),hsl:new RegExp("hsl"+t),hsla:new RegExp("hsla"+r),hsv:new RegExp("hsv"+t),hsva:new RegExp("hsva"+r),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 un(e){return!!cn.CSS_UNIT.exec(e)}var pn=function(e){var t=0,r=0;return Rr(["r","g","b","a","h","s","l","v"],(function(n){if(e[n]&&(t+=1,isNaN(e[n])||(r+=1),"s"===n||"l"===n)){/^\d+%$/.test(e[n])&&(r+=1)}})),t===r&&e},fn=function(e,t){var r=e.hex?Tr(e.hex):Tr(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}},hn=function(e){if("transparent"===e)return!0;var t="#"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&Tr(e).isValid()},dn=function(e){if(!e)return"#fff";var t=fn(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"},bn=function(e,t){return Tr(t+" ("+e.replace("\xb0","")+")")._ok},vn=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},gn=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}}();const xn=function(e){var t=function(t){function r(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);var t=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}(this,(r.__proto__||Object.getPrototypeOf(r)).call(this));return t.handleChange=function(e,r){if(pn(e)){var n=fn(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(pn(e)){var n=fn(e,e.h||t.state.oldHue);t.props.onSwatchHover&&t.props.onSwatchHover(n,r)}},t.state=vn({},fn(e.color,0)),t.debounce=yr((function(e,t,r){e(t,r)}),100),t}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)}(r,t),gn(r,[{key:"render",value:function(){var t={};return this.props.onSwatchHover&&(t.onSwatchHover=this.handleSwatchHover),n.createElement(e,vn({},this.props,this.state,{onChange:this.handleChange},t))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return vn({},fn(e.color,t.oldHue))}}]),r}(n.PureComponent||n.Component);return t.propTypes=vn({},e.propTypes),t.defaultProps=vn({},e.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),t};var yn=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},mn=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}}();function wn(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 _n=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};const En=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(r){function o(){var e,t,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);for(var n=arguments.length,a=Array(n),i=0;i<n;i++)a[i]=arguments[i];return t=r=wn(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})},wn(r,t)}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)}(o,r),mn(o,[{key:"render",value:function(){return n.createElement(t,{onFocus:this.handleFocus,onBlur:this.handleBlur},n.createElement(e,yn({},this.props,this.state)))}}]),o}(n.Component)}((function(e){var t=e.color,r=e.style,a=e.onClick,i=void 0===a?function(){}:a,s=e.onHover,l=e.title,u=void 0===l?t:l,p=e.children,f=e.focus,h=e.focusStyle,d=void 0===h?{}:h,b="transparent"===t,v=(0,o.Ay)({default:{swatch:_n({background:t,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},r,f?d:{})}}),g={};return s&&(g.onMouseOver=function(e){return s(t,e)}),n.createElement("div",_n({style:v.swatch,onClick:function(e){return i(t,e)},title:u,tabIndex:0,onKeyDown:function(e){return 13===e.keyCode&&i(t,e)}},g),p,b&&n.createElement(c,{borderRadius:v.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))}));const jn=function(e){var t=e.direction,r=(0,o.Ay)({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 n.createElement("div",{style:r.picker})};var Cn=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},On=function(e){var t=e.rgb,r=e.hsl,a=e.width,i=e.height,s=e.onChange,l=e.direction,c=e.style,u=e.renderers,p=e.pointer,f=e.className,d=void 0===f?"":f,b=(0,o.Ay)({default:{picker:{position:"relative",width:a,height:i},alpha:{radius:"2px",style:c}}});return n.createElement("div",{style:b.picker,className:"alpha-picker "+d},n.createElement(h,Cn({},b.alpha,{rgb:t,hsl:r,pointer:p,renderers:u,onChange:s,direction:l})))};On.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:jn};xn(On);const Sn=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};const kn=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};const An=function(e){return this.__data__.has(e)};function Mn(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Re;++t<r;)this.add(e[t])}Mn.prototype.add=Mn.prototype.push=kn,Mn.prototype.has=An;const Rn=Mn;const Fn=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};const Bn=function(e,t){return e.has(t)};const Pn=function(e,t,r,n,o,a){var i=1&r,s=e.length,l=t.length;if(s!=l&&!(i&&l>s))return!1;var c=a.get(e),u=a.get(t);if(c&&u)return c==t&&u==e;var p=-1,f=!0,h=2&r?new Rn:void 0;for(a.set(e,t),a.set(t,e);++p<s;){var d=e[p],b=t[p];if(n)var v=i?n(b,d,p,t,e,a):n(d,b,p,e,t,a);if(void 0!==v){if(v)continue;f=!1;break}if(h){if(!Fn(t,(function(e,t){if(!Bn(h,t)&&(d===e||o(d,e,r,n,a)))return h.push(t)}))){f=!1;break}}else if(d!==b&&!o(d,b,r,n,a)){f=!1;break}}return a.delete(e),a.delete(t),f};const Tn=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r};const zn=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r};var Dn=N?N.prototype:void 0,Hn=Dn?Dn.valueOf:void 0;const Ln=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 We(e),new We(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return j(+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 s=Tn;case"[object Set]":var l=1&n;if(s||(s=zn),e.size!=t.size&&!l)return!1;var c=i.get(e);if(c)return c==t;n|=2,i.set(e,t);var u=Pn(s(e),s(t),n,o,a,i);return i.delete(e),u;case"[object Symbol]":if(Hn)return Hn.call(e)==Hn.call(t)}return!1};const Nn=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e};const Un=function(e,t,r){var n=t(e);return st(e)?n:Nn(n,r(e))};const Gn=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};const In=function(){return[]};var Wn=Object.prototype.propertyIsEnumerable,Xn=Object.getOwnPropertySymbols;const Vn=Xn?function(e){return null==e?[]:(e=Object(e),Gn(Xn(e),(function(t){return Wn.call(e,t)})))}:In;const $n=function(e){return Un(e,kr,Vn)};var qn=Object.prototype.hasOwnProperty;const Yn=function(e,t,r,n,o,a){var i=1&r,s=$n(e),l=s.length;if(l!=$n(t).length&&!i)return!1;for(var c=l;c--;){var u=s[c];if(!(i?u in t:qn.call(t,u)))return!1}var p=a.get(e),f=a.get(t);if(p&&f)return p==t&&f==e;var h=!0;a.set(e,t),a.set(t,e);for(var d=i;++c<l;){var b=e[u=s[c]],v=t[u];if(n)var g=i?n(v,b,u,t,e,a):n(b,v,u,e,t,a);if(!(void 0===g?b===v||o(b,v,r,n,a):g)){h=!1;break}d||(d="constructor"==u)}if(h&&!d){var x=e.constructor,y=t.constructor;x==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof y&&y instanceof y||(h=!1)}return a.delete(e),a.delete(t),h};const Kn=pe(L,"DataView");const Zn=pe(L,"Promise");const Jn=pe(L,"Set");const Qn=pe(L,"WeakMap");var eo="[object Map]",to="[object Promise]",ro="[object Set]",no="[object WeakMap]",oo="[object DataView]",ao=re(Kn),io=re(fe),so=re(Zn),lo=re(Jn),co=re(Qn),uo=Y;(Kn&&uo(new Kn(new ArrayBuffer(1)))!=oo||fe&&uo(new fe)!=eo||Zn&&uo(Zn.resolve())!=to||Jn&&uo(new Jn)!=ro||Qn&&uo(new Qn)!=no)&&(uo=function(e){var t=Y(e),r="[object Object]"==t?e.constructor:void 0,n=r?re(r):"";if(n)switch(n){case ao:return oo;case io:return eo;case so:return to;case lo:return ro;case co:return no}return t});const po=uo;var fo="[object Arguments]",ho="[object Array]",bo="[object Object]",vo=Object.prototype.hasOwnProperty;const go=function(e,t,r,n,o,a){var i=st(e),s=st(t),l=i?ho:po(e),c=s?ho:po(t),u=(l=l==fo?bo:l)==bo,p=(c=c==fo?bo:c)==bo,f=l==c;if(f&&bt(e)){if(!bt(t))return!1;i=!0,u=!1}if(f&&!u)return a||(a=new Pe),i||Mt(e)?Pn(e,t,r,n,o,a):Ln(e,t,l,r,n,o,a);if(!(1&r)){var h=u&&vo.call(e,"__wrapped__"),d=p&&vo.call(t,"__wrapped__");if(h||d){var b=h?e.value():e,v=d?t.value():t;return a||(a=new Pe),o(b,v,r,n,a)}}return!!f&&(a||(a=new Pe),Yn(e,t,r,n,o,a))};const xo=function e(t,r,n,o,a){return t===r||(null==t||null==r||!tt(t)&&!tt(r)?t!==t&&r!==r:go(t,r,n,o,e,a))};const yo=function(e,t,r,n){var o=r.length,a=o,i=!n;if(null==e)return!a;for(e=Object(e);o--;){var s=r[o];if(i&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<a;){var l=(s=r[o])[0],c=e[l],u=s[1];if(i&&s[2]){if(void 0===c&&!(l in e))return!1}else{var p=new Pe;if(n)var f=n(c,u,l,e,t,p);if(!(void 0===f?xo(u,c,3,n,p):f))return!1}}return!0};const mo=function(e){return e===e&&!K(e)};const wo=function(e){for(var t=kr(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,mo(o)]}return t};const _o=function(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}};const Eo=function(e){var t=wo(e);return 1==t.length&&t[0][2]?_o(t[0][0],t[0][1]):function(r){return r===e||yo(r,e,t)}};var jo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Co=/^\w*$/;const Oo=function(e,t){if(st(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!pr(e))||(Co.test(e)||!jo.test(e)||null!=t&&e in Object(t))};function So(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(So.Cache||Re),r}So.Cache=Re;const ko=So;var Ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Mo=/\\(\\)?/g;const Ro=function(e){var t=ko(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Ao,(function(e,r,n,o){t.push(n?o.replace(Mo,"$1"):r||e)})),t}));var Fo=N?N.prototype:void 0,Bo=Fo?Fo.toString:void 0;const Po=function e(t){if("string"==typeof t)return t;if(st(t))return Sn(t,e)+"";if(pr(t))return Bo?Bo.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r};const To=function(e){return null==e?"":Po(e)};const zo=function(e,t){return st(e)?e:Oo(e,t)?[e]:Ro(To(e))};const Do=function(e){if("string"==typeof e||pr(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t};const Ho=function(e,t){for(var r=0,n=(t=zo(t,e)).length;null!=e&&r<n;)e=e[Do(t[r++])];return r&&r==n?e:void 0};const Lo=function(e,t,r){var n=null==e?void 0:Ho(e,t);return void 0===n?r:n};const No=function(e,t){return null!=e&&t in Object(e)};const Uo=function(e,t,r){for(var n=-1,o=(t=zo(t,e)).length,a=!1;++n<o;){var i=Do(t[n]);if(!(a=null!=e&&r(e,i)))break;e=e[i]}return a||++n!=o?a:!!(o=null==e?0:e.length)&&lt(o)&&Dt(i,o)&&(st(e)||it(e))};const Go=function(e,t){return null!=e&&Uo(e,t,No)};const Io=function(e,t){return Oo(e)&&mo(t)?_o(Do(e),t):function(r){var n=Lo(r,e);return void 0===n&&n===t?Go(r,e):xo(t,n,3)}};const Wo=function(e){return function(t){return null==t?void 0:t[e]}};const Xo=function(e){return function(t){return Ho(t,e)}};const Vo=function(e){return Oo(e)?Wo(Do(e)):Xo(e)};const $o=function(e){return"function"==typeof e?e:null==e?$t:"object"==typeof e?st(e)?Io(e[0],e[1]):Eo(e):Vo(e)};const qo=function(e,t){var r=-1,n=ct(e)?Array(e.length):[];return Ar(e,(function(e,o,a){n[++r]=t(e,o,a)})),n};const Yo=function(e,t){return(st(e)?Sn:qo)(e,$o(t,3))};const Ko=function(e){var t=e.colors,r=e.onClick,a=e.onSwatchHover,i=(0,o.Ay)({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return n.createElement("div",{style:i.swatches},Yo(t,(function(e){return n.createElement(En,{key:e,color:e,style:i.swatch,onClick:r,onHover:a,focusStyle:{boxShadow:"0 0 4px "+e}})})),n.createElement("div",{style:i.clear}))};var Zo=function(e){var t=e.onChange,r=e.onSwatchHover,a=e.hex,i=e.colors,s=e.width,l=e.triangle,u=e.styles,p=void 0===u?{}:u,f=e.className,h=void 0===f?"":f,d="transparent"===a,b=function(e,r){hn(e)&&t({hex:e,source:"hex"},r)},v=(0,o.Ay)(nr({default:{card:{width:s,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:a,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:dn(a),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+a+" 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"}}},p),{"hide-triangle":"hide"===l});return n.createElement("div",{style:v.card,className:"block-picker "+h},n.createElement("div",{style:v.triangle}),n.createElement("div",{style:v.head},d&&n.createElement(c,{borderRadius:"6px 6px 0 0"}),n.createElement("div",{style:v.label},a)),n.createElement("div",{style:v.body},n.createElement(Ko,{colors:i,onClick:b,onSwatchHover:r}),n.createElement(g,{style:{input:v.input},value:a,onChange:b})))};Zo.propTypes={width:_().oneOfType([_().string,_().number]),colors:_().arrayOf(_().string),triangle:_().oneOf(["top","hide"]),styles:_().object},Zo.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}};xn(Zo);var Jo={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",a100:"#ff8a80",a200:"#ff5252",a400:"#ff1744",a700:"#d50000"},Qo={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",a100:"#ff80ab",a200:"#ff4081",a400:"#f50057",a700:"#c51162"},ea={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",a100:"#ea80fc",a200:"#e040fb",a400:"#d500f9",a700:"#aa00ff"},ta={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},ra={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",a100:"#8c9eff",a200:"#536dfe",a400:"#3d5afe",a700:"#304ffe"},na={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",a100:"#82b1ff",a200:"#448aff",a400:"#2979ff",a700:"#2962ff"},oa={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",a100:"#80d8ff",a200:"#40c4ff",a400:"#00b0ff",a700:"#0091ea"},aa={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},ia={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},sa={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",a100:"#b9f6ca",a200:"#69f0ae",a400:"#00e676",a700:"#00c853"},la={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},ca={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},ua={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},pa={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},fa={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",a100:"#ffd180",a200:"#ffab40",a400:"#ff9100",a700:"#ff6d00"},ha={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"},da={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},ba={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"};var va=function(e){var t=e.color,r=e.onClick,a=e.onSwatchHover,i=e.hover,s=e.active,l=e.circleSize,c=e.circleSpacing,u=(0,o.Ay)({default:{swatch:{width:l,height:l,marginRight:c,marginBottom:c,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+(l/2+1)+"px "+t,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+t}}},{hover:i,active:s});return n.createElement("div",{style:u.swatch},n.createElement(En,{style:u.Swatch,color:t,onClick:r,onHover:a,focusStyle:{boxShadow:u.Swatch.boxShadow+", 0 0 5px "+t}}))};va.defaultProps={circleSize:28,circleSpacing:14};const ga=(0,o.H8)(va);var xa=function(e){var t=e.width,r=e.onChange,a=e.onSwatchHover,i=e.colors,s=e.hex,l=e.circleSize,c=e.styles,u=void 0===c?{}:c,p=e.circleSpacing,f=e.className,h=void 0===f?"":f,d=(0,o.Ay)(nr({default:{card:{width:t,display:"flex",flexWrap:"wrap",marginRight:-p,marginBottom:-p}}},u)),b=function(e,t){return r({hex:e,source:"hex"},t)};return n.createElement("div",{style:d.card,className:"circle-picker "+h},Yo(i,(function(e){return n.createElement(ga,{key:e,color:e,onClick:b,onSwatchHover:a,active:s===e.toLowerCase(),circleSize:l,circleSpacing:p})})))};xa.propTypes={width:_().oneOfType([_().string,_().number]),circleSize:_().number,circleSpacing:_().number,styles:_().object},xa.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[Jo[500],Qo[500],ea[500],ta[500],ra[500],na[500],oa[500],aa[500],ia[500],sa[500],la[500],ca[500],ua[500],pa[500],fa[500],ha[500],da[500],ba[500]],styles:{}};xn(xa);const ya=function(e){return void 0===e};var ma=r(46127),wa=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}}();var _a=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.toggleViews=function(){"hex"===r.state.view?r.setState({view:"rgb"}):"rgb"===r.state.view?r.setState({view:"hsl"}):"hsl"===r.state.view&&(1===r.props.hsl.a?r.setState({view:"hex"}):r.setState({view:"rgb"}))},r.handleChange=function(e,t){e.hex?hn(e.hex)&&r.props.onChange({hex:e.hex,source:"hex"},t):e.r||e.g||e.b?r.props.onChange({r:e.r||r.props.rgb.r,g:e.g||r.props.rgb.g,b:e.b||r.props.rgb.b,source:"rgb"},t):e.a?(e.a<0?e.a=0:e.a>1&&(e.a=1),r.props.onChange({h:r.props.hsl.h,s:r.props.hsl.s,l:r.props.hsl.l,a:Math.round(100*e.a)/100,source:"rgb"},t)):(e.h||e.s||e.l)&&("string"===typeof e.s&&e.s.includes("%")&&(e.s=e.s.replace("%","")),"string"===typeof e.l&&e.l.includes("%")&&(e.l=e.l.replace("%","")),1==e.s?e.s=.01:1==e.l&&(e.l=.01),r.props.onChange({h:e.h||r.props.hsl.h,s:Number(ya(e.s)?r.props.hsl.s:e.s),l:Number(ya(e.l)?r.props.hsl.l:e.l),source:"hsl"},t))},r.showHighlight=function(e){e.currentTarget.style.background="#eee"},r.hideHighlight=function(e){e.currentTarget.style.background="transparent"},1!==e.hsl.a&&"hex"===e.view?r.state={view:"rgb"}:r.state={view:e.view},r}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)}(t,e),wa(t,[{key:"render",value:function(){var e=this,t=(0,o.Ay)({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),r=void 0;return"hex"===this.state.view?r=n.createElement("div",{style:t.fields,className:"flexbox-fix"},n.createElement("div",{style:t.field},n.createElement(g,{style:{input:t.input,label:t.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):"rgb"===this.state.view?r=n.createElement("div",{style:t.fields,className:"flexbox-fix"},n.createElement("div",{style:t.field},n.createElement(g,{style:{input:t.input,label:t.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),n.createElement("div",{style:t.field},n.createElement(g,{style:{input:t.input,label:t.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),n.createElement("div",{style:t.field},n.createElement(g,{style:{input:t.input,label:t.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),n.createElement("div",{style:t.alpha},n.createElement(g,{style:{input:t.input,label:t.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):"hsl"===this.state.view&&(r=n.createElement("div",{style:t.fields,className:"flexbox-fix"},n.createElement("div",{style:t.field},n.createElement(g,{style:{input:t.input,label:t.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),n.createElement("div",{style:t.field},n.createElement(g,{style:{input:t.input,label:t.label},label:"s",value:Math.round(100*this.props.hsl.s)+"%",onChange:this.handleChange})),n.createElement("div",{style:t.field},n.createElement(g,{style:{input:t.input,label:t.label},label:"l",value:Math.round(100*this.props.hsl.l)+"%",onChange:this.handleChange})),n.createElement("div",{style:t.alpha},n.createElement(g,{style:{input:t.input,label:t.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),n.createElement("div",{style:t.wrap,className:"flexbox-fix"},r,n.createElement("div",{style:t.toggle},n.createElement("div",{style:t.icon,onClick:this.toggleViews,ref:function(t){return e.icon=t}},n.createElement(ma.A,{style:t.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 1!==e.hsl.a&&"hex"===t.view?{view:"rgb"}:null}}]),t}(n.Component);_a.defaultProps={view:"hex"};const Ea=_a;const ja=function(){var e=(0,o.Ay)({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 n.createElement("div",{style:e.picker})};const Ca=function(){var e=(0,o.Ay)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return n.createElement("div",{style:e.picker})};var Oa=function(e){var t=e.width,r=e.onChange,a=e.disableAlpha,i=e.rgb,s=e.hsl,l=e.hsv,u=e.hex,p=e.renderers,f=e.styles,d=void 0===f?{}:f,b=e.className,v=void 0===b?"":b,g=e.defaultView,x=(0,o.Ay)(nr({default:{picker:{width:t,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",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("+i.r+", "+i.g+", "+i.b+", "+i.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"}}},d),{disableAlpha:a});return n.createElement("div",{style:x.picker,className:"chrome-picker "+v},n.createElement("div",{style:x.saturation},n.createElement(Er,{style:x.Saturation,hsl:s,hsv:l,pointer:Ca,onChange:r})),n.createElement("div",{style:x.body},n.createElement("div",{style:x.controls,className:"flexbox-fix"},n.createElement("div",{style:x.color},n.createElement("div",{style:x.swatch},n.createElement("div",{style:x.active}),n.createElement(c,{renderers:p}))),n.createElement("div",{style:x.toggles},n.createElement("div",{style:x.hue},n.createElement(m,{style:x.Hue,hsl:s,pointer:ja,onChange:r})),n.createElement("div",{style:x.alpha},n.createElement(h,{style:x.Alpha,rgb:i,hsl:s,pointer:ja,renderers:p,onChange:r})))),n.createElement(Ea,{rgb:i,hsl:s,hex:u,view:g,onChange:r,disableAlpha:a})))};Oa.propTypes={width:_().oneOfType([_().string,_().number]),disableAlpha:_().bool,styles:_().object,defaultView:_().oneOf(["hex","rgb","hsl"])},Oa.defaultProps={width:225,disableAlpha:!1,styles:{}};xn(Oa);const Sa=function(e){var t=e.color,r=e.onClick,a=void 0===r?function(){}:r,i=e.onSwatchHover,s=e.active,l=(0,o.Ay)({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:dn(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:s,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return n.createElement(En,{style:l.color,color:t,onClick:a,onHover:i,focusStyle:{boxShadow:"0 0 4px "+t}},n.createElement("div",{style:l.dot}))};const ka=function(e){var t=e.hex,r=e.rgb,a=e.onChange,i=(0,o.Ay)({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"}}}),s=function(e,t){e.r||e.g||e.b?a({r:e.r||r.r,g:e.g||r.g,b:e.b||r.b,source:"rgb"},t):a({hex:e.hex,source:"hex"},t)};return n.createElement("div",{style:i.fields,className:"flexbox-fix"},n.createElement("div",{style:i.active}),n.createElement(g,{style:{wrap:i.HEXwrap,input:i.HEXinput,label:i.HEXlabel},label:"hex",value:t,onChange:s}),n.createElement(g,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"r",value:r.r,onChange:s}),n.createElement(g,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"g",value:r.g,onChange:s}),n.createElement(g,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"b",value:r.b,onChange:s}))};var Aa=function(e){var t=e.onChange,r=e.onSwatchHover,a=e.colors,i=e.hex,s=e.rgb,l=e.styles,c=void 0===l?{}:l,u=e.className,p=void 0===u?"":u,f=(0,o.Ay)(nr({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},c)),h=function(e,r){e.hex?hn(e.hex)&&t({hex:e.hex,source:"hex"},r):t(e,r)};return n.createElement(ar,{style:f.Compact,styles:c},n.createElement("div",{style:f.compact,className:"compact-picker "+p},n.createElement("div",null,Yo(a,(function(e){return n.createElement(Sa,{key:e,color:e,active:e.toLowerCase()===i,onClick:h,onSwatchHover:r})})),n.createElement("div",{style:f.clear})),n.createElement(ka,{hex:i,rgb:s,onChange:h})))};Aa.propTypes={colors:_().arrayOf(_().string),styles:_().object},Aa.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"],styles:{}};xn(Aa);const Ma=(0,o.H8)((function(e){var t=e.hover,r=e.color,a=e.onClick,i=e.onSwatchHover,s={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},l=(0,o.Ay)({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:s}},{hover:t});return n.createElement("div",{style:l.swatch},n.createElement(En,{color:r,onClick:a,onHover:i,focusStyle:s}))}));var Ra=function(e){var t=e.width,r=e.colors,a=e.onChange,i=e.onSwatchHover,s=e.triangle,l=e.styles,c=void 0===l?{}:l,u=e.className,p=void 0===u?"":u,f=(0,o.Ay)(nr({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)"}}},c),{"hide-triangle":"hide"===s,"top-left-triangle":"top-left"===s,"top-right-triangle":"top-right"===s,"bottom-left-triangle":"bottom-left"===s,"bottom-right-triangle":"bottom-right"===s}),h=function(e,t){return a({hex:e,source:"hex"},t)};return n.createElement("div",{style:f.card,className:"github-picker "+p},n.createElement("div",{style:f.triangleShadow}),n.createElement("div",{style:f.triangle}),Yo(r,(function(e){return n.createElement(Ma,{color:e,key:e,onClick:h,onSwatchHover:i})})))};Ra.propTypes={width:_().oneOfType([_().string,_().number]),colors:_().arrayOf(_().string),triangle:_().oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:_().object},Ra.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}};xn(Ra);const Fa=function(e){var t=e.direction,r=(0,o.Ay)({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 n.createElement("div",{style:r.picker})};var Ba=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},Pa=function(e){var t=e.width,r=e.height,a=e.onChange,i=e.hsl,s=e.direction,l=e.pointer,c=e.styles,u=void 0===c?{}:c,p=e.className,f=void 0===p?"":p,h=(0,o.Ay)(nr({default:{picker:{position:"relative",width:t,height:r},hue:{radius:"2px"}}},u));return n.createElement("div",{style:h.picker,className:"hue-picker "+f},n.createElement(m,Ba({},h.hue,{hsl:i,pointer:l,onChange:function(e){return a({a:1,h:e.h,l:.5,s:1})},direction:s})))};Pa.propTypes={styles:_().object},Pa.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:Fa,styles:{}};xn(Pa);xn((function(e){var t=e.onChange,r=e.hex,a=e.rgb,i=e.styles,s=void 0===i?{}:i,l=e.className,c=void 0===l?"":l,u=(0,o.Ay)(nr({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 "+r,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)),p=function(e,r){e.hex?hn(e.hex)&&t({hex:e.hex,source:"hex"},r):(e.r||e.g||e.b)&&t({r:e.r||a.r,g:e.g||a.g,b:e.b||a.b,source:"rgb"},r)};return n.createElement(ar,{styles:s},n.createElement("div",{style:u.material,className:"material-picker "+c},n.createElement(g,{style:{wrap:u.HEXwrap,input:u.HEXinput,label:u.HEXlabel},label:"hex",value:r,onChange:p}),n.createElement("div",{style:u.split,className:"flexbox-fix"},n.createElement("div",{style:u.third},n.createElement(g,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"r",value:a.r,onChange:p})),n.createElement("div",{style:u.third},n.createElement(g,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"g",value:a.g,onChange:p})),n.createElement("div",{style:u.third},n.createElement(g,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"b",value:a.b,onChange:p})))))}));const Ta=function(e){var t=e.onChange,r=e.rgb,a=e.hsv,i=e.hex,s=(0,o.Ay)({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",top:"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,n){e["#"]?hn(e["#"])&&t({hex:e["#"],source:"hex"},n):e.r||e.g||e.b?t({r:e.r||r.r,g:e.g||r.g,b:e.b||r.b,source:"rgb"},n):(e.h||e.s||e.v)&&t({h:e.h||a.h,s:e.s||a.s,v:e.v||a.v,source:"hsv"},n)};return n.createElement("div",{style:s.fields},n.createElement(g,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"h",value:Math.round(a.h),onChange:l}),n.createElement(g,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"s",value:Math.round(100*a.s),onChange:l}),n.createElement(g,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"v",value:Math.round(100*a.v),onChange:l}),n.createElement("div",{style:s.divider}),n.createElement(g,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"r",value:r.r,onChange:l}),n.createElement(g,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"g",value:r.g,onChange:l}),n.createElement(g,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"b",value:r.b,onChange:l}),n.createElement("div",{style:s.divider}),n.createElement(g,{style:{wrap:s.HEXwrap,input:s.HEXinput,label:s.HEXlabel},label:"#",value:i.replace("#",""),onChange:l}),n.createElement("div",{style:s.fieldSymbols},n.createElement("div",{style:s.symbol},"\xb0"),n.createElement("div",{style:s.symbol},"%"),n.createElement("div",{style:s.symbol},"%")))};const za=function(e){var t=e.hsl,r=(0,o.Ay)({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 n.createElement("div",{style:r.picker})};const Da=function(){var e=(0,o.Ay)({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 n.createElement("div",{style:e.pointer},n.createElement("div",{style:e.left},n.createElement("div",{style:e.leftInside})),n.createElement("div",{style:e.right},n.createElement("div",{style:e.rightInside})))};const Ha=function(e){var t=e.onClick,r=e.label,a=e.children,i=e.active,s=(0,o.Ay)({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:i});return n.createElement("div",{style:s.button,onClick:t},r||a)};const La=function(e){var t=e.rgb,r=e.currentColor,a=(0,o.Ay)({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:r,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return n.createElement("div",null,n.createElement("div",{style:a.label},"new"),n.createElement("div",{style:a.swatches},n.createElement("div",{style:a.new}),n.createElement("div",{style:a.current})),n.createElement("div",{style:a.label},"current"))};var Na=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}}();var Ua=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.state={currentColor:e.hex},r}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)}(t,e),Na(t,[{key:"render",value:function(){var e=this.props,t=e.styles,r=void 0===t?{}:t,a=e.className,i=void 0===a?"":a,s=(0,o.Ay)(nr({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"}}},r));return n.createElement("div",{style:s.picker,className:"photoshop-picker "+i},n.createElement("div",{style:s.head},this.props.header),n.createElement("div",{style:s.body,className:"flexbox-fix"},n.createElement("div",{style:s.saturation},n.createElement(Er,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:za,onChange:this.props.onChange})),n.createElement("div",{style:s.hue},n.createElement(m,{direction:"vertical",hsl:this.props.hsl,pointer:Da,onChange:this.props.onChange})),n.createElement("div",{style:s.controls},n.createElement("div",{style:s.top,className:"flexbox-fix"},n.createElement("div",{style:s.previews},n.createElement(La,{rgb:this.props.rgb,currentColor:this.state.currentColor})),n.createElement("div",{style:s.actions},n.createElement(Ha,{label:"OK",onClick:this.props.onAccept,active:!0}),n.createElement(Ha,{label:"Cancel",onClick:this.props.onCancel}),n.createElement(Ta,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),t}(n.Component);Ua.propTypes={header:_().string,styles:_().object},Ua.defaultProps={header:"Color Picker",styles:{}};xn(Ua);const Ga=function(e){var t=e.onChange,r=e.rgb,a=e.hsl,i=e.hex,s=e.disableAlpha,l=(0,o.Ay)({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:s}),c=function(e,n){e.hex?hn(e.hex)&&t({hex:e.hex,source:"hex"},n):e.r||e.g||e.b?t({r:e.r||r.r,g:e.g||r.g,b:e.b||r.b,a:r.a,source:"rgb"},n):e.a&&(e.a<0?e.a=0:e.a>100&&(e.a=100),e.a/=100,t({h:a.h,s:a.s,l:a.l,a:e.a,source:"rgb"},n))};return n.createElement("div",{style:l.fields,className:"flexbox-fix"},n.createElement("div",{style:l.double},n.createElement(g,{style:{input:l.input,label:l.label},label:"hex",value:i.replace("#",""),onChange:c})),n.createElement("div",{style:l.single},n.createElement(g,{style:{input:l.input,label:l.label},label:"r",value:r.r,onChange:c,dragLabel:"true",dragMax:"255"})),n.createElement("div",{style:l.single},n.createElement(g,{style:{input:l.input,label:l.label},label:"g",value:r.g,onChange:c,dragLabel:"true",dragMax:"255"})),n.createElement("div",{style:l.single},n.createElement(g,{style:{input:l.input,label:l.label},label:"b",value:r.b,onChange:c,dragLabel:"true",dragMax:"255"})),n.createElement("div",{style:l.alpha},n.createElement(g,{style:{input:l.input,label:l.label},label:"a",value:Math.round(100*r.a),onChange:c,dragLabel:"true",dragMax:"100"})))};var Ia=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},Wa=function(e){var t=e.colors,r=e.onClick,a=void 0===r?function(){}:r,i=e.onSwatchHover,s=(0,o.Ay)({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){a({hex:e,source:"hex"},t)};return n.createElement("div",{style:s.colors,className:"flexbox-fix"},t.map((function(e){var t="string"===typeof e?{color:e}:e,r=""+t.color+(t.title||"");return n.createElement("div",{key:r,style:s.swatchWrap},n.createElement(En,Ia({},t,{style:s.swatch,onClick:l,onHover:i,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+t.color}})))})))};Wa.propTypes={colors:_().arrayOf(_().oneOfType([_().string,_().shape({color:_().string,title:_().string})])).isRequired};const Xa=Wa;var Va=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=function(e){var t=e.width,r=e.rgb,a=e.hex,i=e.hsv,s=e.hsl,l=e.onChange,u=e.onSwatchHover,p=e.disableAlpha,f=e.presetColors,d=e.renderers,b=e.styles,v=void 0===b?{}:b,g=e.className,x=void 0===g?"":g,y=(0,o.Ay)(nr({default:Va({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("+r.r+","+r.g+","+r.b+","+r.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)"}},v),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},v),{disableAlpha:p});return n.createElement("div",{style:y.picker,className:"sketch-picker "+x},n.createElement("div",{style:y.saturation},n.createElement(Er,{style:y.Saturation,hsl:s,hsv:i,onChange:l})),n.createElement("div",{style:y.controls,className:"flexbox-fix"},n.createElement("div",{style:y.sliders},n.createElement("div",{style:y.hue},n.createElement(m,{style:y.Hue,hsl:s,onChange:l})),n.createElement("div",{style:y.alpha},n.createElement(h,{style:y.Alpha,rgb:r,hsl:s,renderers:d,onChange:l}))),n.createElement("div",{style:y.color},n.createElement(c,null),n.createElement("div",{style:y.activeColor}))),n.createElement(Ga,{rgb:r,hsl:s,hex:a,onChange:l,disableAlpha:p}),n.createElement(Xa,{colors:f,onClick:l,onSwatchHover:u}))};$a.propTypes={disableAlpha:_().bool,width:_().oneOfType([_().string,_().number]),styles:_().object},$a.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]};const qa=xn($a);const Ya=function(e){var t=e.hsl,r=e.offset,a=e.onClick,i=void 0===a?function(){}:a,s=e.active,l=e.first,c=e.last,u=(0,o.Ay)({default:{swatch:{height:"12px",background:"hsl("+t.h+", 50%, "+100*r+"%)",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:s,first:l,last:c});return n.createElement("div",{style:u.swatch,onClick:function(e){return i({h:t.h,s:.5,l:r,source:"hsl"},e)}})};const Ka=function(e){var t=e.onClick,r=e.hsl,a=(0,o.Ay)({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}}),i=.1;return n.createElement("div",{style:a.swatches},n.createElement("div",{style:a.swatch},n.createElement(Ya,{hsl:r,offset:".80",active:Math.abs(r.l-.8)<i&&Math.abs(r.s-.5)<i,onClick:t,first:!0})),n.createElement("div",{style:a.swatch},n.createElement(Ya,{hsl:r,offset:".65",active:Math.abs(r.l-.65)<i&&Math.abs(r.s-.5)<i,onClick:t})),n.createElement("div",{style:a.swatch},n.createElement(Ya,{hsl:r,offset:".50",active:Math.abs(r.l-.5)<i&&Math.abs(r.s-.5)<i,onClick:t})),n.createElement("div",{style:a.swatch},n.createElement(Ya,{hsl:r,offset:".35",active:Math.abs(r.l-.35)<i&&Math.abs(r.s-.5)<i,onClick:t})),n.createElement("div",{style:a.swatch},n.createElement(Ya,{hsl:r,offset:".20",active:Math.abs(r.l-.2)<i&&Math.abs(r.s-.5)<i,onClick:t,last:!0})),n.createElement("div",{style:a.clear}))};const Za=function(){var e=(0,o.Ay)({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 n.createElement("div",{style:e.picker})};var Ja=function(e){var t=e.hsl,r=e.onChange,a=e.pointer,i=e.styles,s=void 0===i?{}:i,l=e.className,c=void 0===l?"":l,u=(0,o.Ay)(nr({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}},s));return n.createElement("div",{style:u.wrap||{},className:"slider-picker "+c},n.createElement("div",{style:u.hue},n.createElement(m,{style:u.Hue,hsl:t,pointer:a,onChange:r})),n.createElement("div",{style:u.swatches},n.createElement(Ka,{hsl:t,onClick:r})))};Ja.propTypes={styles:_().object},Ja.defaultProps={pointer:Za,styles:{}};xn(Ja);var Qa=r(47530);const ei=function(e){var t=e.color,r=e.onClick,a=void 0===r?function(){}:r,i=e.onSwatchHover,s=e.first,l=e.last,c=e.active,u=(0,o.Ay)({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:t,marginBottom:"1px"},check:{color:dn(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:s,last:l,active:c,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return n.createElement(En,{color:t,style:u.color,onClick:a,onHover:i,focusStyle:{boxShadow:"0 0 4px "+t}},n.createElement("div",{style:u.check},n.createElement(Qa.A,null)))};const ti=function(e){var t=e.onClick,r=e.onSwatchHover,a=e.group,i=e.active,s=(0,o.Ay)({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return n.createElement("div",{style:s.group},Yo(a,(function(e,o){return n.createElement(ei,{key:e,color:e,active:e.toLowerCase()===i,first:0===o,last:o===a.length-1,onClick:t,onSwatchHover:r})})))};var ri=function(e){var t=e.width,r=e.height,a=e.onChange,i=e.onSwatchHover,s=e.colors,l=e.hex,c=e.styles,u=void 0===c?{}:c,p=e.className,f=void 0===p?"":p,h=(0,o.Ay)(nr({default:{picker:{width:t,height:r},overflow:{height:r,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},u)),d=function(e,t){return a({hex:e,source:"hex"},t)};return n.createElement("div",{style:h.picker,className:"swatches-picker "+f},n.createElement(ar,null,n.createElement("div",{style:h.overflow},n.createElement("div",{style:h.body},Yo(s,(function(e){return n.createElement(ti,{key:e.toString(),group:e,active:l,onClick:d,onSwatchHover:i})})),n.createElement("div",{style:h.clear})))))};ri.propTypes={width:_().oneOfType([_().string,_().number]),height:_().oneOfType([_().string,_().number]),colors:_().arrayOf(_().arrayOf(_().string)),styles:_().object},ri.defaultProps={width:320,height:240,colors:[[Jo[900],Jo[700],Jo[500],Jo[300],Jo[100]],[Qo[900],Qo[700],Qo[500],Qo[300],Qo[100]],[ea[900],ea[700],ea[500],ea[300],ea[100]],[ta[900],ta[700],ta[500],ta[300],ta[100]],[ra[900],ra[700],ra[500],ra[300],ra[100]],[na[900],na[700],na[500],na[300],na[100]],[oa[900],oa[700],oa[500],oa[300],oa[100]],[aa[900],aa[700],aa[500],aa[300],aa[100]],[ia[900],ia[700],ia[500],ia[300],ia[100]],["#194D33",sa[700],sa[500],sa[300],sa[100]],[la[900],la[700],la[500],la[300],la[100]],[ca[900],ca[700],ca[500],ca[300],ca[100]],[ua[900],ua[700],ua[500],ua[300],ua[100]],[pa[900],pa[700],pa[500],pa[300],pa[100]],[fa[900],fa[700],fa[500],fa[300],fa[100]],[ha[900],ha[700],ha[500],ha[300],ha[100]],[da[900],da[700],da[500],da[300],da[100]],[ba[900],ba[700],ba[500],ba[300],ba[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}};xn(ri);var ni=function(e){var t=e.onChange,r=e.onSwatchHover,a=e.hex,i=e.colors,s=e.width,l=e.triangle,c=e.styles,u=void 0===c?{}:c,p=e.className,f=void 0===p?"":p,h=(0,o.Ay)(nr({default:{card:{width:s,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"}}},u),{"hide-triangle":"hide"===l,"top-left-triangle":"top-left"===l,"top-right-triangle":"top-right"===l}),d=function(e,r){hn(e)&&t({hex:e,source:"hex"},r)};return n.createElement("div",{style:h.card,className:"twitter-picker "+f},n.createElement("div",{style:h.triangleShadow}),n.createElement("div",{style:h.triangle}),n.createElement("div",{style:h.body},Yo(i,(function(e,t){return n.createElement(En,{key:t,color:e,hex:e,style:h.swatch,onClick:d,onHover:r,focusStyle:{boxShadow:"0 0 4px "+e}})})),n.createElement("div",{style:h.hash},"#"),n.createElement(g,{label:null,style:{input:h.input},value:a.replace("#",""),onChange:d}),n.createElement("div",{style:h.clear})))};ni.propTypes={width:_().oneOfType([_().string,_().number]),triangle:_().oneOf(["hide","top-left","top-right"]),colors:_().arrayOf(_().string),styles:_().object},ni.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}};xn(ni);var oi=function(e){var t=(0,o.Ay)({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",border:"2px #fff solid",transform:"translate(-12px, -13px)",background:"hsl("+Math.round(e.hsl.h)+", "+Math.round(100*e.hsl.s)+"%, "+Math.round(100*e.hsl.l)+"%)"}}});return n.createElement("div",{style:t.picker})};oi.propTypes={hsl:_().shape({h:_().number,s:_().number,l:_().number,a:_().number})},oi.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};const ai=oi;var ii=function(e){var t=(0,o.Ay)({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",transform:"translate(-10px, -7px)",background:"hsl("+Math.round(e.hsl.h)+", 100%, 50%)",border:"2px white solid"}}});return n.createElement("div",{style:t.picker})};ii.propTypes={hsl:_().shape({h:_().number,s:_().number,l:_().number,a:_().number})},ii.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};const si=ii;const li=function(e){var t=e.onChange,r=e.rgb,a=e.hsl,i=e.hex,s=e.hsv,l=function(e,r){if(e.hex)hn(e.hex)&&t({hex:e.hex,source:"hex"},r);else if(e.rgb){var n=e.rgb.split(",");bn(e.rgb,"rgb")&&t({r:n[0],g:n[1],b:n[2],a:1,source:"rgb"},r)}else if(e.hsv){var o=e.hsv.split(",");bn(e.hsv,"hsv")&&(o[2]=o[2].replace("%",""),o[1]=o[1].replace("%",""),o[0]=o[0].replace("\xb0",""),1==o[1]?o[1]=.01:1==o[2]&&(o[2]=.01),t({h:Number(o[0]),s:Number(o[1]),v:Number(o[2]),source:"hsv"},r))}else if(e.hsl){var a=e.hsl.split(",");bn(e.hsl,"hsl")&&(a[2]=a[2].replace("%",""),a[1]=a[1].replace("%",""),a[0]=a[0].replace("\xb0",""),1==f[1]?f[1]=.01:1==f[2]&&(f[2]=.01),t({h:Number(a[0]),s:Number(a[1]),v:Number(a[2]),source:"hsl"},r))}},c=(0,o.Ay)({default:{wrap:{display:"flex",height:"100px",marginTop:"4px"},fields:{width:"100%"},column:{paddingTop:"10px",display:"flex",justifyContent:"space-between"},double:{padding:"0px 4.4px",boxSizing:"border-box"},input:{width:"100%",height:"38px",boxSizing:"border-box",padding:"4px 10% 3px",textAlign:"center",border:"1px solid #dadce0",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",fontFamily:"Roboto,Arial,sans-serif"},input2:{height:"38px",width:"100%",border:"1px solid #dadce0",boxSizing:"border-box",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",paddingLeft:"10px",fontFamily:"Roboto,Arial,sans-serif"},label:{textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"35px",top:"-6px",left:"0",right:"0",marginLeft:"auto",marginRight:"auto",fontFamily:"Roboto,Arial,sans-serif"},label2:{left:"10px",textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"32px",top:"-6px",fontFamily:"Roboto,Arial,sans-serif"},single:{flexGrow:"1",margin:"0px 4.4px"}}}),u=r.r+", "+r.g+", "+r.b,p=Math.round(a.h)+"\xb0, "+Math.round(100*a.s)+"%, "+Math.round(100*a.l)+"%",f=Math.round(s.h)+"\xb0, "+Math.round(100*s.s)+"%, "+Math.round(100*s.v)+"%";return n.createElement("div",{style:c.wrap,className:"flexbox-fix"},n.createElement("div",{style:c.fields},n.createElement("div",{style:c.double},n.createElement(g,{style:{input:c.input,label:c.label},label:"hex",value:i,onChange:l})),n.createElement("div",{style:c.column},n.createElement("div",{style:c.single},n.createElement(g,{style:{input:c.input2,label:c.label2},label:"rgb",value:u,onChange:l})),n.createElement("div",{style:c.single},n.createElement(g,{style:{input:c.input2,label:c.label2},label:"hsv",value:f,onChange:l})),n.createElement("div",{style:c.single},n.createElement(g,{style:{input:c.input2,label:c.label2},label:"hsl",value:p,onChange:l})))))};var ci=function(e){var t=e.width,r=e.onChange,a=e.rgb,i=e.hsl,s=e.hsv,l=e.hex,c=e.header,u=e.styles,p=void 0===u?{}:u,f=e.className,h=void 0===f?"":f,d=(0,o.Ay)(nr({default:{picker:{width:t,background:"#fff",border:"1px solid #dfe1e5",boxSizing:"initial",display:"flex",flexWrap:"wrap",borderRadius:"8px 8px 0px 0px"},head:{height:"57px",width:"100%",paddingTop:"16px",paddingBottom:"16px",paddingLeft:"16px",fontSize:"20px",boxSizing:"border-box",fontFamily:"Roboto-Regular,HelveticaNeue,Arial,sans-serif"},saturation:{width:"70%",padding:"0px",position:"relative",overflow:"hidden"},swatch:{width:"30%",height:"228px",padding:"0px",background:"rgba("+a.r+", "+a.g+", "+a.b+", 1)",position:"relative",overflow:"hidden"},body:{margin:"auto",width:"95%"},controls:{display:"flex",boxSizing:"border-box",height:"52px",paddingTop:"22px"},color:{width:"32px"},hue:{height:"8px",position:"relative",margin:"0px 16px 0px 16px",width:"100%"},Hue:{radius:"2px"}}},p));return n.createElement("div",{style:d.picker,className:"google-picker "+h},n.createElement("div",{style:d.head},c),n.createElement("div",{style:d.swatch}),n.createElement("div",{style:d.saturation},n.createElement(Er,{hsl:i,hsv:s,pointer:ai,onChange:r})),n.createElement("div",{style:d.body},n.createElement("div",{style:d.controls,className:"flexbox-fix"},n.createElement("div",{style:d.hue},n.createElement(m,{style:d.Hue,hsl:i,radius:"4px",pointer:si,onChange:r}))),n.createElement(li,{rgb:a,hsl:i,hex:l,hsv:s,onChange:r})))};ci.propTypes={width:_().oneOfType([_().string,_().number]),styles:_().object,header:_().string},ci.defaultProps={width:652,styles:{},header:"Color picker"};xn(ci)},59138:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.autoprefix=void 0;var n,o=r(28437),a=(n=o)&&n.__esModule?n:{default:n},i=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};var s={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){var r=t[e];return r||{extend:e}}},l=t.autoprefix=function(e){var t={};return(0,a.default)(e,(function(e,r){var n={};(0,a.default)(e,(function(e,t){var r=s[t];r?n=i({},n,r(e)):n[t]=e})),t[r]=n})),t};t.default=l},76054:(e,t,r)=>{"use strict";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=r(9950),i=(n=a)&&n.__esModule?n:{default:n};function s(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,a,l;!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 a=l=s(this,(r=n.__proto__||Object.getPrototypeOf(n)).call.apply(r,[this].concat(u))),l.state={active:!1},l.handleMouseDown=function(){return l.setState({active:!0})},l.handleMouseUp=function(){return l.setState({active:!1})},l.render=function(){return i.default.createElement(t,{onMouseDown:l.handleMouseDown,onMouseUp:l.handleMouseUp},i.default.createElement(e,o({},l.props,l.state)))},s(l,a)}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,r),n}(i.default.Component)};t.default=l},97208:(e,t,r)=>{"use strict";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=r(9950),i=(n=a)&&n.__esModule?n:{default:n};function s(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,a,l;!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 a=l=s(this,(r=n.__proto__||Object.getPrototypeOf(n)).call.apply(r,[this].concat(u))),l.state={hover:!1},l.handleMouseOver=function(){return l.setState({hover:!0})},l.handleMouseOut=function(){return l.setState({hover:!1})},l.render=function(){return i.default.createElement(t,{onMouseOver:l.handleMouseOver,onMouseOut:l.handleMouseOut},i.default.createElement(e,o({},l.props,l.state)))},s(l,a)}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,r),n}(i.default.Component)};t.default=l},69059:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flattenNames=void 0;var n=s(r(56801)),o=s(r(28437)),a=s(r(75461)),i=s(r(55876));function s(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]:[],r=[];return(0,i.default)(t,(function(t){Array.isArray(t)?e(t).map((function(e){return r.push(e)})):(0,a.default)(t)?(0,o.default)(t,(function(e,t){!0===e&&r.push(t),r.push(t+"-"+e)})):(0,n.default)(t)&&r.push(t)})),r};t.default=l},65617:(e,t,r)=>{"use strict";t.H8=void 0;var n=c(r(69059)),o=c(r(50109)),a=c(r(59138)),i=c(r(97208)),s=c(r(76054)),l=c(r(88759));function c(e){return e&&e.__esModule?e:{default:e}}i.default,t.H8=i.default,s.default,l.default;var u=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];var s=(0,n.default)(r),l=(0,o.default)(e,s);return(0,a.default)(l)};t.Ay=u},88759:(e,t)=>{"use strict";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}},50109:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeClasses=void 0;var n=i(r(28437)),o=i(r(55117)),a=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 i(e){return e&&e.__esModule?e:{default:e}}var s=t.mergeClasses=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=e.default&&(0,o.default)(e.default)||{};return t.map((function(t){var o=e[t];return o&&(0,n.default)(o,(function(e,t){r[t]||(r[t]={}),r[t]=a({},r[t],o[t])})),t})),r};t.default=s},59660:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||r.forEach((function(t){e.addRange(t)})),t&&t.focus()}}}}]);