feffery_utils_components 0.2.0-rc10 → 0.2.0-rc12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DESCRIPTION +1 -1
- package/NAMESPACE +2 -0
- package/Project.toml +1 -1
- package/README.md +1 -1
- package/feffery_utils_components/FefferyDiv.py +1 -1
- package/feffery_utils_components/FefferyDom2Image.py +68 -0
- package/feffery_utils_components/FefferySetFavicon.py +45 -0
- package/feffery_utils_components/FefferySetTitle.py +7 -4
- package/feffery_utils_components/__init__.py +2 -1
- package/feffery_utils_components/_imports_.py +4 -0
- package/feffery_utils_components/alias.py +2 -0
- package/feffery_utils_components/async-feffery_animated_3d_background_p5.js +1 -1
- package/feffery_utils_components/async-feffery_animated_3d_background_three.js +2 -2
- package/feffery_utils_components/async-feffery_animated_image.js +1 -1
- package/feffery_utils_components/async-feffery_aplayer.js +1 -1
- package/feffery_utils_components/async-feffery_auto_animate.js +1 -1
- package/feffery_utils_components/async-feffery_auto_fit.js +1 -1
- package/feffery_utils_components/async-feffery_captcha.js +1 -1
- package/feffery_utils_components/async-feffery_color_pickers.js +1 -1
- package/feffery_utils_components/async-feffery_dom2image.js +4 -0
- package/feffery_utils_components/async-feffery_dom2image.js.LICENSE.txt +1 -0
- package/feffery_utils_components/async-feffery_dplayer.js +1 -1
- package/feffery_utils_components/async-feffery_emoji_picker.js +1 -1
- package/feffery_utils_components/async-feffery_excel_preview.js +1 -1
- package/feffery_utils_components/async-feffery_extra_spinner.js +1 -1
- package/feffery_utils_components/async-feffery_fancy_button.js +1 -1
- package/feffery_utils_components/async-feffery_grid.js +1 -1
- package/feffery_utils_components/async-feffery_image_cropper.js +1 -1
- package/feffery_utils_components/async-feffery_json_viewer.js +1 -1
- package/feffery_utils_components/async-feffery_local_large_storage.js +1 -1
- package/feffery_utils_components/async-feffery_markdown_editor.js +2 -2
- package/feffery_utils_components/async-feffery_motion.js +1 -1
- package/feffery_utils_components/async-feffery_music_player.js +1 -1
- package/feffery_utils_components/async-feffery_photo_sphere_viewer.js +1 -1
- package/feffery_utils_components/async-feffery_resizable.js +1 -1
- package/feffery_utils_components/async-feffery_rich_text_editor.js +2 -2
- package/feffery_utils_components/async-feffery_rnd.js +1 -1
- package/feffery_utils_components/async-feffery_seamless_scroll.js +1 -1
- package/feffery_utils_components/async-feffery_shortcut_panel.js +1 -1
- package/feffery_utils_components/async-feffery_sortable.js +1 -1
- package/feffery_utils_components/async-feffery_word_preview.js +1 -1
- package/feffery_utils_components/async-fuc-shared.js +2 -2
- package/feffery_utils_components/feffery_utils_components.min.js +2 -2
- package/feffery_utils_components/metadata.json +170 -2
- package/feffery_utils_components/package-info.json +2 -1
- package/package.json +2 -1
- package/src/lib/components/FefferyDiv.react.js +3 -1
- package/src/lib/components/FefferyDom2Image.react.js +88 -0
- package/src/lib/components/FefferySetFavicon.react.js +58 -0
- package/src/lib/components/FefferySetTitle.react.js +21 -6
- package/src/lib/fragments/FefferyDom2Image.react.js +59 -0
- package/src/lib/index.js +5 -1
- package/usage.py +15 -27
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonpfeffery_utils_components=window.webpackJsonpfeffery_utils_components||[]).push([[8],{501:function(e,t,r){"use strict";r.r(t);function n(e){var t=e.id,r=e.className,n=e.style,o=e.color,a=e.showAlpha,i=e.setProps,e=e.loading_state;return Object(s.useEffect)(function(){i({color:o})},[]),a?React.createElement(l.a,{id:t,className:r,style:n,color:o,onChange:function(e){return i({color:e})},"data-dash-is-loading":e&&e.is_loading||void 0}):React.createElement(l.b,{id:t,className:r,style:n,color:o,onChange:function(e){return i({color:e})},"data-dash-is-loading":e&&e.is_loading||void 0})}var l=r(597),s=r(1),r=r(178);(t.default=n).defaultProps=r.b,n.propTypes=r.c},502:function(e,t,r){"use strict";r.r(t);function n(e){var t=e.id,r=e.className,n=e.style,o=e.color,a=e.showAlpha,i=e.setProps,e=e.loading_state;return Object(s.useEffect)(function(){i({color:o})},[]),a?React.createElement(l.d,{id:t,className:r,style:n,color:o,onChange:function(e){return i({color:e})},"data-dash-is-loading":e&&e.is_loading||void 0}):React.createElement(l.c,{id:t,className:r,style:n,color:o,onChange:function(e){return i({color:e})},"data-dash-is-loading":e&&e.is_loading||void 0})}var l=r(597),s=r(1),r=r(179);(t.default=n).defaultProps=r.b,n.propTypes=r.c},528:function(e,t,r){"use strict";r.r(t);var b=r(1),i=r.n(b),n=r(555),g=r.n(n),n=r(577),v=r.n(n),m=(Math.PI,e=>{var{r:e,g:t,b:r}=e;return"#"+(e=(e<<16|t<<8|r).toString(16),new Array(7-e.length).join("0")+e)}),y=e=>{var{r:e,g:t,b:r,a:n}=e=(e=>{var t=e.replace("#",""),r=(/^#?/.test(e)&&3===t.length&&(e="#"+t.charAt(0)+t.charAt(0)+t.charAt(1)+t.charAt(1)+t.charAt(2)+t.charAt(2)),new RegExp("[A-Za-z0-9]{2}","g")),[n,o,a=0,i]=e.match(r).map(e=>parseInt(e,16));return{r:n,g:o,b:a,a:(null!=i?i:255)/255}})(e),o=Math.max(e,t,r),a=o-Math.min(e,t,r);return{h:60*((r=a?o===e?(t-r)/a:o===t?2+(r-e)/a:4+(e-t)/a:0)<0?6+r:r),s:o?a/o*100:0,v:o/255*100,a:n}},w=e=>{var{h:e,s:t,v:r,a:n}=e,e=e/60,t=t/100,o=r/100,r=Math.floor(e)%6,e=e-Math.floor(e),a=255*o*(1-t),i=255*o*(1-t*e),l=255*o*(1-t*(1-e)),s=(o*=255,{});switch(r){case 0:s.r=o,s.g=l,s.b=a;break;case 1:s.r=i,s.g=o,s.b=a;break;case 2:s.r=a,s.g=o,s.b=l;break;case 3:s.r=a,s.g=i,s.b=o;break;case 4:s.r=l,s.g=a,s.b=o;break;case 5:s.r=o,s.g=a,s.b=i}return s.r=Math.round(s.r),s.g=Math.round(s.g),s.b=Math.round(s.b),g()({},s,{a:n})},x=e=>m(w(e)),_=e=>/^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(e);function O(e){var r=Object(b.useRef)(e);return Object(b.useEffect)(()=>{r.current=e}),Object(b.useCallback)((e,t)=>r.current&&r.current(e,t),[])}function o(e,t,r){return void 0===t&&(t=0),(r=void 0===r?1:r)<e?r:e<t?t:e}var j=e=>"touches"in e,E=e=>{!j(e)&&e.preventDefault&&e.preventDefault()},C=(e,t)=>{e=e.getBoundingClientRect(),t=j(t)?t.touches[0]:t;return{left:o((t.pageX-(e.left+window.pageXOffset))/e.width),top:o((t.pageY-(e.top+window.pageYOffset))/e.height),width:e.width,height:e.height,x:t.pageX-(e.left+window.pageXOffset),y:t.pageY-(e.top+window.pageYOffset)}},S=r(567),M=["prefixCls","className","onMove","onDown"],n=i.a.forwardRef((e,t)=>{var{prefixCls:r="w-color-interactive",className:n,onMove:o,onDown:a}=e,e=v()(e,M),i=Object(b.useRef)(null),l=Object(b.useRef)(!1),[s,c]=Object(b.useState)(!1),u=O(o),f=O(a),h=Object(b.useCallback)(e=>{E(e),(j(e)?0<e.touches.length:0<e.buttons)&&i.current?u&&u(C(i.current,e),e):c(!1)},[u]),p=Object(b.useCallback)(()=>c(!1),[]),d=Object(b.useCallback)(e=>{e=e?window.addEventListener:window.removeEventListener;e(l.current?"touchmove":"mousemove",h),e(l.current?"touchend":"mouseup",p)},[]),o=(Object(b.useEffect)(()=>(d(s),()=>{s&&d(!1)}),[s,d]),Object(b.useCallback)(e=>{var t;E(e.nativeEvent),t=e.nativeEvent,l.current&&!j(t)||(l.current=j(t),0)||(f&&f(C(i.current,e.nativeEvent),e.nativeEvent),c(!0))},[f]));return Object(S.jsx)("div",g()({},e,{className:[r,n||""].filter(Boolean).join(" "),style:g()({},e.style,{touchAction:"none"}),ref:i,tabIndex:0,onMouseDown:o,onTouchStart:o}))}),k=(n.displayName="Interactive",n),R=e=>{var{className:e,color:t,left:r,top:n,style:o,prefixCls:a}=e,o=g()({},o,{position:"absolute",top:n,left:r}),n=a+"-pointer "+(e||"");return Object(S.jsx)("div",{className:n,style:o,children:Object(S.jsx)("div",{className:a+"-fill",style:{width:10,height:10,transform:"translate(-5px, -5px)",boxShadow:"rgb(255 255 255) 0px 0px 0px 1.5px, rgb(0 0 0 / 30%) 0px 0px 1px 1px inset, rgb(0 0 0 / 40%) 0px 0px 1px 2px",borderRadius:"50%",backgroundColor:"#fff"},children:Object(S.jsx)("div",{style:{inset:0,borderRadius:"50%",position:"absolute",backgroundColor:t}})})})},A=2*Math.PI;function P(e){var{width:e=0}=e,t=e/2;return{width:e,radius:t,cx:t,cy:t}}function N(e){var{width:e=0}=e;return e/2}function H(e,t,r){var n=e.angle||0,e=e.direction;return r&&"clockwise"===e?t=n+t:"clockwise"===e?t=360-n+t:r&&"anticlockwise"===e?t=n+180-t:"anticlockwise"===e&&(t=n-t),(t%360+360)%360}function a(e){var t=e.id,r=e.className,n=e.style,o=e.color,a=e.setProps,e=e.loading_state;return Object(b.useEffect)(function(){o||a({color:"#fffc51"})},[]),i.a.createElement(l,{id:t,className:r,style:n,color:o,onChange:function(e){a({color:e.hex})},"data-dash-is-loading":e&&e.is_loading||void 0})}var T=["prefixCls","radius","pointer","className","style","width","height","oval","direction","angle","color","onChange"],n=i.a.forwardRef((e,t)=>{var{prefixCls:r="w-color-wheel",pointer:n,className:o,style:a,width:u=200,height:f=200,oval:i,direction:l="anticlockwise",angle:s=180,color:c,onChange:h}=e,e=v()(e,T),p="string"==typeof c&&_(c)?y(c):c||{},c=c?x(p):"",d=function(e){var{cx:t,cy:r}=P(e),n=N(e),o=(180+H(e,p.h,!0))*(A/360),n=p.s/100*n,e="clockwise"===e.direction?-1:1;return{x:t+n*Math.cos(o)*e,y:r+n*Math.sin(o)*e}}({width:u}),c={top:"0",left:"0",color:c},b=(e,t)=>{var r,n,o,a,i,l,s,c,e=function(e,t,r){var{cx:n,cy:o}=P(e),a=N(e),n=(t=n-t,r=o-r,H(e,Math.atan2(-r,-t)*(360/A))),o=Math.min(Math.sqrt(t*t+r*r),a);return{h:Math.round(n),s:Math.round(100/a*o)}}({width:u},u-e.x,f-e.y),e={h:e.h,s:e.s,v:p.v,a:p.a};h&&h(("string"==typeof(e=e)&&_(e)?(l=y(e),s=e):"string"!=typeof e&&(l=e),l&&(o=(()=>{var{h:e,s:t,v:r}=l;return{h:e,s:t,v:r}})(),i=(e=>{var{h:e,s:t,v:r,a:n}=e,o=(200-t)*r/100;return{h:e,s:0<o&&o<200?t*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:n}})(l),c=(e=>{var{r:e,g:t,b:r,a:n}=e,o="number"==typeof n&&(255*n|256).toString(16).slice(1);return""+m({r:e,g:t,b:r,a:n})+(o||"")})(a=w(l)),s=x(l),n=(()=>{var{h:e,s:t,l:r}=i;return{h:e,s:t,l:r}})(),r=(()=>{var{r:e,g:t,b:r}=a;return{r:e,g:t,b:r}})()),{rgb:r,hsl:n,hsv:o,rgba:a,hsla:i,hsva:l,hex:s,hexa:c}))},d={zIndex:1,transform:"translate("+d.x+"px, "+d.y+"px) "+("x"===i||"X"===i?"scaleY(2)":"y"===i||"Y"===i?"scaleX(2)":"")},n=n&&"function"==typeof n?n(g()({prefixCls:r,style:d},c)):Object(S.jsx)(R,g()({prefixCls:r,style:d},c));return Object(S.jsxs)(k,g()({className:[r,o||""].filter(Boolean).join(" ")},e,{style:g()({position:"relative",width:u,transform:"x"===i||"X"===i?"scaleY(0.5)":"y"===i||"Y"===i?"scaleX(0.5)":"",height:f},a),ref:t,onMove:b,onDown:b,children:[n,Object(S.jsx)("div",{style:{position:"absolute",borderRadius:"50%",background:"anticlockwise"===l?"conic-gradient(red, yellow, lime, aqua, blue, magenta, red)":"conic-gradient(red, magenta, blue, aqua, lime, yellow, red)",transform:"rotateZ("+(s+90)+"deg)",inset:0}}),Object(S.jsx)("div",{style:{position:"absolute",borderRadius:"50%",background:"radial-gradient(circle closest-side, #fff, transparent)",inset:0}}),Object(S.jsx)("div",{style:{backgroundColor:"#000",borderRadius:"50%",position:"absolute",inset:0,opacity:"number"==typeof p.v?1-p.v/100:0}})]}))}),l=(n.displayName="Wheel",n),n=r(184);(t.default=a).defaultProps=n.b,a.propTypes=n.c},531:function(e,t,r){"use strict";r.r(t);function n(e){var t=e.color,r=e.onClick,n=e.onSwatchHover,o=e.hover,a=e.active,i=e.circleSize,e=e.circleSpacing,e=h()({default:{swatch:{width:i,height:i,marginRight:e,marginBottom:e,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+(i/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:o,active:a});return f.a.createElement("div",{style:e.swatch},f.a.createElement(s.d,{style:e.Swatch,color:t,onClick:r,onHover:n,focusStyle:{boxShadow:e.Swatch.boxShadow+", 0 0 5px "+t}}))}function o(e){function t(e,t){return n({hex:e,source:"hex"},t)}var r=e.width,n=e.onChange,o=e.onSwatchHover,a=e.colors,i=e.hex,l=e.circleSize,s=void 0===(s=e.styles)?{}:s,c=e.circleSpacing,e=void 0===(e=e.className)?"":e,r=h()(Object(d.a)({default:{card:{width:r,display:"flex",flexWrap:"wrap",marginRight:-c,marginBottom:-c}}},s));return f.a.createElement("div",{style:r.card,className:"circle-picker "+e},Object(p.a)(a,function(e){return f.a.createElement(b,{key:e,color:e,onClick:t,onSwatchHover:o,active:i===e.toLowerCase(),circleSize:l,circleSpacing:c})}))}function a(e){var t=e.id,r=e.className,n=e.style,o=e.width,a=e.circleSize,i=e.circleSpacing,l=e.color,s=e.colors,c=e.setProps,e=e.loading_state;return Object(u.useEffect)(function(){s&&!l&&c({color:s[0]})},[]),f.a.createElement(g,{id:t,className:r,style:n,width:o,circleSize:a,circleSpacing:i,color:l,colors:s,onChangeComplete:function(e,t){return c({color:e.hex})},"data-dash-is-loading":e&&e.is_loading||void 0})}var u=r(1),f=r.n(u),i=r(0),i=r.n(i),l=r(548),h=r.n(l),p=r(573),d=r(564),s=r(554),b=(n.defaultProps={circleSize:28,circleSpacing:14},Object(l.handleHover)(n)),g=(o.propTypes={width:i.a.oneOfType([i.a.string,i.a.number]),circleSize:i.a.number,circleSpacing:i.a.number,styles:i.a.object},o.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4caf50","#8bc34a","#cddc39","#ffeb3b","#ffc107","#ff9800","#ff5722","#795548","#607d8b"],styles:{}},Object(s.b)(o)),l=r(183);(t.default=a).defaultProps=l.b,a.propTypes=l.c},532:function(e,t,r){"use strict";r.r(t);function n(e){function t(e,t){return o({hex:e,source:"hex"},t)}var r=e.width,n=e.colors,o=e.onChange,a=e.onSwatchHover,i=e.triangle,l=void 0===(l=e.styles)?{}:l,e=void 0===(e=e.className)?"":e,r=u()(Object(h.a)({default:{card:{width:r,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)"}}},l),{"hide-triangle":"hide"===i,"top-left-triangle":"top-left"===i,"top-right-triangle":"top-right"===i,"bottom-left-triangle":"bottom-left"===i,"bottom-right-triangle":"bottom-right"===i});return c.a.createElement("div",{style:r.card,className:"github-picker "+e},c.a.createElement("div",{style:r.triangleShadow}),c.a.createElement("div",{style:r.triangle}),Object(f.a)(n,function(e){return c.a.createElement(p,{color:e,key:e,onClick:t,onSwatchHover:a})}))}function o(e){var t=e.id,r=e.className,n=e.style,o=e.color,a=e.colors,i=e.triangle,l=e.setProps,e=e.loading_state;return Object(s.useEffect)(function(){a&&!o&&l({color:a[0]})},[]),c.a.createElement(d,{id:t,className:r,style:n,color:o,colors:a,triangle:i,onChangeComplete:function(e,t){return l({color:e.hex})},"data-dash-is-loading":e&&e.is_loading||void 0})}var s=r(1),c=r.n(s),a=r(0),a=r.n(a),i=r(548),u=r.n(i),f=r(573),h=r(564),l=r(554),p=Object(i.handleHover)(function(e){var t=e.hover,r=e.color,n=e.onClick,e=e.onSwatchHover,o={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},t=u()({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:o}},{hover:t});return c.a.createElement("div",{style:t.swatch},c.a.createElement(l.d,{color:r,onClick:n,onHover:e,focusStyle:o}))}),d=(n.propTypes={width:a.a.oneOfType([a.a.string,a.a.number]),colors:a.a.arrayOf(a.a.string),triangle:a.a.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:a.a.object},n.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}},Object(l.b)(n)),i=r(180);(t.default=o).defaultProps=i.b,o.propTypes=i.c},533:function(e,t,r){"use strict";r.r(t);function u(e){var t=e.colors,r=e.onClick,n=e.onSwatchHover,o=h()({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return f.a.createElement("div",{style:o.swatches},Object(l.a)(t,function(e){return f.a.createElement(b.d,{key:e,color:e,style:o.swatch,onClick:r,onHover:n,focusStyle:{boxShadow:"0 0 4px "+e}})}),f.a.createElement("div",{style:o.clear}))}function n(e){function t(e,t){d.b(e)&&r({hex:e,source:"hex"},t)}var r=e.onChange,n=e.onSwatchHover,o=e.hex,a=e.colors,i=e.width,l=e.triangle,s=void 0===(s=e.styles)?{}:s,e=void 0===(e=e.className)?"":e,c="transparent"===o,i=h()(Object(p.a)({default:{card:{width:i,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:o,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:d.a(o),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+o+" transparent",position:"absolute",top:"-10px",left:"50%",marginLeft:"-10px"},input:{width:"100%",fontSize:"12px",color:"#666",border:"0px",outline:"none",height:"22px",boxShadow:"inset 0 0 0 1px #ddd",borderRadius:"4px",padding:"0 7px",boxSizing:"border-box"}},"hide-triangle":{triangle:{display:"none"}}},s),{"hide-triangle":"hide"===l});return f.a.createElement("div",{style:i.card,className:"block-picker "+e},f.a.createElement("div",{style:i.triangle}),f.a.createElement("div",{style:i.head},c&&f.a.createElement(b.a,{borderRadius:"6px 6px 0 0"}),f.a.createElement("div",{style:i.label},o)),f.a.createElement("div",{style:i.body},f.a.createElement(u,{colors:a,onClick:t,onSwatchHover:n}),f.a.createElement(b.c,{style:{input:i.input},value:o,onChange:t})))}function o(e){var t=e.id,r=e.className,n=e.style,o=e.width,a=e.color,i=e.colors,l=e.triangle,s=e.setProps,e=e.loading_state;return Object(c.useEffect)(function(){i&&!a&&s({color:i[0]})},[]),f.a.createElement(g,{id:t,className:r,style:n,color:a,colors:i,width:o,triangle:l,onChangeComplete:function(e,t){return s({color:e.hex})},"data-dash-is-loading":e&&e.is_loading||void 0})}var c=r(1),f=r.n(c),a=r(0),a=r.n(a),i=r(548),h=r.n(i),p=r(564),d=r(593),b=r(554),l=r(573),g=(n.propTypes={width:a.a.oneOfType([a.a.string,a.a.number]),colors:a.a.arrayOf(a.a.string),triangle:a.a.oneOf(["top","hide"]),styles:a.a.object},n.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}},Object(b.b)(n)),i=r(182);(t.default=o).defaultProps=i.b,o.propTypes=i.c},536:function(e,t,r){"use strict";r.r(t);function n(e){function r(e,t){d.b(e)&&n({hex:e,source:"hex"},t)}var n=e.onChange,o=e.onSwatchHover,t=e.hex,a=e.colors,i=e.width,l=e.triangle,s=void 0===(s=e.styles)?{}:s,e=void 0===(e=e.className)?"":e,c=f()(Object(p.a)({default:{card:{width:i,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},s),{"hide-triangle":"hide"===l,"top-left-triangle":"top-left"===l,"top-right-triangle":"top-right"===l});return u.a.createElement("div",{style:c.card,className:"twitter-picker "+e},u.a.createElement("div",{style:c.triangleShadow}),u.a.createElement("div",{style:c.triangle}),u.a.createElement("div",{style:c.body},Object(h.a)(a,function(e,t){return u.a.createElement(b.d,{key:t,color:e,hex:e,style:c.swatch,onClick:r,onHover:o,focusStyle:{boxShadow:"0 0 4px "+e}})}),u.a.createElement("div",{style:c.hash},"#"),u.a.createElement(b.c,{label:null,style:{input:c.input},value:t.replace("#",""),onChange:r}),u.a.createElement("div",{style:c.clear})))}function o(e){var t=e.id,r=e.className,n=e.style,o=e.width,a=e.color,i=e.colors,l=e.triangle,s=e.setProps,e=e.loading_state;return Object(c.useEffect)(function(){i&&!a&&s({color:i[0]})},[]),u.a.createElement(g,{id:t,className:r,style:n,color:a,colors:i,width:o,triangle:l,onChangeComplete:function(e,t){return s({color:e.hex})},"data-dash-is-loading":e&&e.is_loading||void 0})}var c=r(1),u=r.n(c),a=r(0),a=r.n(a),i=r(548),f=r.n(i),h=r(573),p=r(564),d=r(593),b=r(554),g=(n.propTypes={width:a.a.oneOfType([a.a.string,a.a.number]),triangle:a.a.oneOf(["hide","top-left","top-right"]),colors:a.a.arrayOf(a.a.string),styles:a.a.object},n.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}},Object(b.b)(n)),i=r(181);(t.default=o).defaultProps=i.b,o.propTypes=i.c},537:function(e,t,r){"use strict";r.r(t);var c=r(1);const o=()=>"undefined"!=typeof window&&"EyeDropper"in window,n=()=>Promise.reject(new Error("Unsupported browser."));function a(e){var t=e.id,r=e.enable,n=e.setProps,e=e.loading_state,o=s(),a=o.open,i=o.close,l=o.isSupported;return Object(c.useEffect)(function(){l()&&(r?a().then(function(e){n({color:e.sRGBHex,enable:!1})}).catch(function(e){return n({enable:!1})}):i())},[r]),React.createElement("div",{id:t,"data-dash-is-loading":e&&e.is_loading||void 0})}var s=t=>{const a=Object(c.useMemo)(()=>{return e=t,(e=o()&&new EyeDropper(e))?EyeDropper.prototype.open.bind(e):n;var e},[t]),[i,e]=(()=>{const e=Object(c.useRef)(),[t,r]=Object(c.useState)(!1);Object(c.useEffect)(()=>(e.current=!0,r(o()),()=>{e.current=!1}),[]);var n=Object(c.useCallback)(()=>t,[t]);return[e,n]})(),l=Object(c.useRef)(),s=Object(c.useCallback)(()=>{void 0!==l.current&&l.current.abort()},[l]),r=Object(c.useCallback)(async function(e){void 0===e&&(e={}),s();const{signal:t,...r}=e,n=new AbortController;l.current=n;var o=void 0!==t?(e=>{const t=new AbortController,r=()=>{t.abort();for(const t of e)t.removeEventListener("abort",r)};for(const t of e){if(t.aborted){r();break}t.addEventListener("abort",r)}return t.signal})([t,n.signal]):n.signal;try{return await a({...r,signal:o})}catch(e){throw i.current||(e.canceled=!0),e}},[l,i,s,a]);return Object(c.useEffect)(()=>s,[s]),{open:r,close:s,isSupported:e}},r=r(192);(t.default=a).defaultProps=r.b,a.propTypes=r.c},548:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReactCSS=t.loop=t.handleActive=t.handleHover=t.hover=void 0;var a=s(r(663)),i=s(r(689)),l=s(r(691)),n=s(r(692)),o=s(r(693)),r=s(r(694));function s(e){return e&&e.__esModule?e:{default:e}}t.hover=n.default,t.handleHover=n.default,t.handleActive=o.default,t.loop=r.default;n=t.ReactCSS=function(e){for(var t=arguments.length,r=Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=(0,a.default)(r),e=(0,i.default)(e,o);return(0,l.default)(e)};t.default=n},554:function(D,e,t){"use strict";function r(e){var t=e.white,r=e.grey,n=e.size,o=e.renderers,a=e.borderRadius,i=e.boxShadow,e=e.children,i=u()({default:{grid:{borderRadius:a,boxShadow:i,absolute:"0px 0px 0px 0px",background:"url("+(a=t,i=r,t=n,r=o.canvas,s[n=a+"-"+i+"-"+t+(r?"-server":"")]||(a=a,i=i,t=t,a=("undefined"!=typeof document||r)&&((r=r?new r:document.createElement("canvas")).width=2*t,r.height=2*t,o=r.getContext("2d"))?(o.fillStyle=a,o.fillRect(0,0,r.width,r.height),o.fillStyle=i,o.fillRect(0,0,t,t),o.translate(t,t),o.fillRect(0,0,t,t),r.toDataURL()):null,s[n]=a))+") center left"}}});return Object(l.isValidElement)(e)?c.a.cloneElement(e,f({},e.props,{style:f({},e.props.style,i.grid)})):c.a.createElement("div",{style:i.grid})}var l=t(1),c=t.n(l),n=t(548),u=t.n(n),s={},f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h=(r.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}},r),o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n=function(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),e};function a(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)}}function i(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}var p=l.PureComponent||l.Component;function d(){var r,e=this,t=d;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,o=Array(n),a=0;a<n;a++)o[a]=arguments[a];return t=r=i(this,(e=d.__proto__||Object.getPrototypeOf(d)).call.apply(e,[this].concat(o))),r.handleChange=function(e){var t=function(e,t,r,n,o){var a=o.clientWidth,i=o.clientHeight,l=("number"==typeof e.pageX?e:e.touches[0]).pageX,e=("number"==typeof e.pageY?e:e.touches[0]).pageY,l=l-(o.getBoundingClientRect().left+window.pageXOffset),e=e-(o.getBoundingClientRect().top+window.pageYOffset);if("vertical"===r){o=e<0?0:i<e?1:Math.round(100*e/i)/100;if(t.a!==o)return{h:t.h,s:t.s,l:t.l,a:o,source:"rgb"}}else if(n!==(r=l<0?0:a<l?1:Math.round(100*l/a)/100))return{h:t.h,s:t.s,l:t.l,a:r,source:"rgb"};return null}(e,r.props.hsl,r.props.direction,r.props.a,r.container);t&&"function"==typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleChange),window.removeEventListener("mouseup",r.handleMouseUp)},i(r,t)}var b=d;if("function"!=typeof p&&null!==p)throw new TypeError("Super expression must either be null or a function, not "+typeof p);b.prototype=Object.create(p&&p.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(b,p):b.__proto__=p),n(d,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var t=this,e=this.props.rgb,e=u()({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("+e.r+","+e.g+","+e.b+", 0) 0%,\n rgba("+e.r+","+e.g+","+e.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:100*e.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("+e.r+","+e.g+","+e.b+", 0) 0%,\n rgba("+e.r+","+e.g+","+e.b+", 1) 100%)"},pointer:{left:0,top:100*e.a+"%"}},overwrite:o({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return c.a.createElement("div",{style:e.alpha},c.a.createElement("div",{style:e.checkboard},c.a.createElement(h,{renderers:this.props.renderers})),c.a.createElement("div",{style:e.gradient}),c.a.createElement("div",{style:e.container,ref:function(e){return t.container=e},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},c.a.createElement("div",{style:e.pointer},this.props.pointer?c.a.createElement(this.props.pointer,this.props):c.a.createElement("div",{style:e.slider}))))}}]);var g=function(e,t,r){return t&&v(e.prototype,t),r&&v(e,r),e};function v(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)}}var m=[38,40],y=1,w=function(e){function t(e){var n;if(this instanceof t)return(n=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this))).handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(e){n.setUpdatedValue(e.target.value,e)},n.handleKeyDown=function(e){r=e.target.value;var t,r=Number(String(r).replace(/%/g,""));!isNaN(r)&&(t=e.keyCode,-1<m.indexOf(t))&&(t=n.getArrowOffset(),r=38===e.keyCode?r+t:r-t,n.setUpdatedValue(r,e))},n.handleDrag=function(e){var t;n.props.dragLabel&&0<=(t=Math.round(n.props.value+e.movementX))&&t<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(t),e)},n.handleMouseDown=function(e){n.props.dragLabel&&(e.preventDefault(),n.handleDrag(e),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},n.inputId="rc-editable-input-"+y++,n;throw new TypeError("Cannot call a class as a function")}var r=t;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);return r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e),g(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 t={},r=this.props.label,e=e,r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t;var t,r}},{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 t=this,e=u()({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 c.a.createElement("div",{style:e.wrap},c.a.createElement("input",{id:this.inputId,style:e.input,ref:function(e){return t.input=e},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?c.a.createElement("label",{htmlFor:this.inputId,style:e.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(l.PureComponent||l.Component),b=function(e,t,r){return t&&x(e.prototype,t),r&&x(e,r),e};function x(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)}}function _(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}p=l.PureComponent||l.Component;function O(){var r,e=this,t=O;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,o=Array(n),a=0;a<n;a++)o[a]=arguments[a];return t=r=_(this,(e=O.__proto__||Object.getPrototypeOf(O)).call.apply(e,[this].concat(o))),r.handleChange=function(e){var t=function(e,t,r,n){var o=n.clientWidth,a=n.clientHeight,i=("number"==typeof e.pageX?e:e.touches[0]).pageX,e=("number"==typeof e.pageY?e:e.touches[0]).pageY,i=i-(n.getBoundingClientRect().left+window.pageXOffset),e=e-(n.getBoundingClientRect().top+window.pageYOffset);if("vertical"===t){n=void 0,n=e<0?359:a<e?0:360*(-100*e/a+100)/100;if(r.h!==n)return{h:n,s:r.s,l:r.l,a:r.a,source:"hsl"}}else{t=void 0,t=i<0?0:o<i?359:100*i/o*360/100;if(r.h!==t)return{h:t,s:r.s,l:r.l,a:r.a,source:"hsl"}}return null}(e,r.props.direction,r.props.hsl,r.container);t&&"function"==typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},_(r,t)}n=O;if("function"!=typeof p&&null!==p)throw new TypeError("Super expression must either be null or a function, not "+typeof p);n.prototype=Object.create(p&&p.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(n,p):n.__proto__=p),b(O,[{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 t=this,e=this.props.direction,e=void 0===e?"horizontal":e,r=u()({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"===e});return c.a.createElement("div",{style:r.hue},c.a.createElement("div",{className:"hue-"+e,style:r.container,ref:function(e){return t.container=e},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},c.a.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 "),c.a.createElement("div",{style:r.pointer},this.props.pointer?c.a.createElement(this.props.pointer,this.props):c.a.createElement("div",{style:r.slider}))))}}]);var n=t(0),p=t.n(n),j=(t(564),p.a.string,p.a.oneOf([0,1,2,3,4,5]),p.a.number,p.a.object,t(498)),b=function(e,t,r){return t&&E(e.prototype,t),r&&E(e,r),e};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)}}n=l.PureComponent||l.Component;function C(e){var l;if(this instanceof C)return(l=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,e))).handleChange=function(e){var t,r,n,o,a,i;"function"==typeof l.props.onChange&&l.throttle(l.props.onChange,(t=e,r=l.props.hsl,n=l.container,o=n.getBoundingClientRect(),a=o.width,o=o.height,i=("number"==typeof t.pageX?t:t.touches[0]).pageX,t=("number"==typeof t.pageY?t:t.touches[0]).pageY,i-=n.getBoundingClientRect().left+window.pageXOffset,t-=n.getBoundingClientRect().top+window.pageYOffset,i<0?i=0:a<i&&(i=a),t<0?t=0:o<t&&(t=o),{h:r.h,s:i/a,v:1-t/o,a:r.a,source:"hsv"}),e)},l.handleMouseDown=function(e){l.handleChange(e);e=l.getContainerRenderWindow();e.addEventListener("mousemove",l.handleChange),e.addEventListener("mouseup",l.handleMouseUp)},l.handleMouseUp=function(){l.unbindEventListeners()},l.throttle=Object(j.a)(function(e,t,r){e(t,r)},50),l;throw new TypeError("Cannot call a class as a function")}p=C;if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);p.prototype=Object.create(n&&n.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(p,n):p.__proto__=n),b(C,[{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 t=this,e=this.props.style||{},r=e.color,n=e.white,o=e.black,a=e.pointer,e=e.circle,r=u()({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:n,black:o,pointer:a,circle:e}},{custom:!!this.props.style});return c.a.createElement("div",{style:r.color,ref:function(e){return t.container=e},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},c.a.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 "),c.a.createElement("div",{style:r.white,className:"saturation-white"},c.a.createElement("div",{style:r.black,className:"saturation-black"}),c.a.createElement("div",{style:r.pointer},this.props.pointer?c.a.createElement(this.props.pointer,this.props):c.a.createElement("div",{style:r.circle}))))}}]);var S=t(291),M=t(593),k=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},R=function(e,t,r){return t&&A(e.prototype,t),r&&A(e,r),e};function A(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)}}function P(n){var e=function(e){function t(e){var r;if(this instanceof t)return(r=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this))).handleChange=function(e,t){M.c(e)&&(e=M.d(e,e.h||r.state.oldHue),r.setState(e),r.props.onChangeComplete&&r.debounce(r.props.onChangeComplete,e,t),r.props.onChange)&&r.props.onChange(e,t)},r.handleSwatchHover=function(e,t){M.c(e)&&(e=M.d(e,e.h||r.state.oldHue),r.props.onSwatchHover)&&r.props.onSwatchHover(e,t)},r.state=k({},M.d(e.color,0)),r.debounce=Object(S.a)(function(e,t,r){e(t,r)},100),r;throw new TypeError("Cannot call a class as a function")}var r=t;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);return r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e),R(t,[{key:"render",value:function(){var e={};return this.props.onSwatchHover&&(e.onSwatchHover=this.handleSwatchHover),c.a.createElement(n,k({},this.props,this.state,{onChange:this.handleChange},e))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return k({},M.d(e.color,t.oldHue))}}]),t}(l.PureComponent||l.Component);return e.propTypes=k({},n.propTypes),e.defaultProps=k({},n.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),e}var F=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},L=function(e,t,r){return t&&N(e.prototype,t),r&&N(e,r),e};function N(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)}}function H(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}var T=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},B=function(e,t){var r=1<arguments.length&&void 0!==t?t:"span",t=c.a.Component;function i(){var e,t=this,r=i;if(!(t instanceof r))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,o=Array(n),a=0;a<n;a++)o[a]=arguments[a];return r=e=H(this,(t=i.__proto__||Object.getPrototypeOf(i)).call.apply(t,[this].concat(o))),e.state={focus:!1},e.handleFocus=function(){return e.setState({focus:!0})},e.handleBlur=function(){return e.setState({focus:!1})},H(e,r)}var n=i;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);return n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t),L(i,[{key:"render",value:function(){return c.a.createElement(r,{onFocus:this.handleFocus,onBlur:this.handleBlur},c.a.createElement(e,F({},this.props,this.state)))}}]),i}(function(e){var t=e.color,r=e.style,n=e.onClick,o=void 0===n?function(){}:n,a=e.onHover,n=e.title,n=void 0===n?t:n,i=e.children,l=e.focus,e=e.focusStyle,e=void 0===e?{}:e,s="transparent"===t,r=u()({default:{swatch:T({background:t,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},r,l?e:{})}}),l={};return a&&(l.onMouseOver=function(e){return a(t,e)}),c.a.createElement("div",T({style:r.swatch,onClick:function(e){return o(t,e)},title:n,tabIndex:0,onKeyDown:function(e){return 13===e.keyCode&&o(t,e)}},l),i,s&&c.a.createElement(h,{borderRadius:r.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))});t.d(e,"a",function(){return h}),t.d(e,"c",function(){return w}),t.d(e,"b",function(){return P}),t.d(e,"d",function(){return B})},564:function(D,e,t){"use strict";var w=t(120),r=t(32),n=function(){try{var e=Object(r.a)(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),f=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r},h=t(94),x=function(e,t,r){(void 0===r||Object(h.a)(e[t],r))&&(void 0!==r||t in e)||f(e,t,r)},o=t(650),_=t(695),a=t(165),O=function(e,t){var r,t=t?(t=e.buffer,r=new t.constructor(t.byteLength),new a.a(r).set(new a.a(t)),r):e.buffer;return new e.constructor(t,e.byteOffset,e.length)},j=function(e,t){var r=-1,n=e.length;for(t=t||Array(n);++r<n;)t[r]=e[r];return t},E=t(35),i=Object.create,l=function(e){if(!Object(E.a)(e))return{};if(i)return i(e);p.prototype=e;e=new p;return p.prototype=void 0,e},s=t(283),c=Object(s.a)(Object.getPrototypeOf,Object),u=t(191);function p(){}function d(e,t,r,n){var o=!r;r=r||{};for(var a,i,l=-1,s=t.length;++l<s;){var c=t[l],u=n?n(r[c],e[c],c,r,e):void 0;void 0===u&&(u=e[c]),o?f(r,c,u):(u=u,i=void 0,i=(a=r)[c=c],V.call(a,c)&&Object(h.a)(i,u)&&(void 0!==u||c in a)||f(a,c,u))}return r}function C(e){return Object(y.a)(e)?Object($.a)(e,!0):J(e)}function S(b,g,v,m,y){b!==g&&Object(o.a)(g,function(e,t){var r,n,o,a,i,l,s,c,u,f,h,p,d;y=y||new w.a,Object(E.a)(e)?(n=g,a=v,i=S,l=m,s=y,h=N(r=b,o=t),p=N(n,o),(d=s.get(p))?x(r,o,d):((n=void 0===(d=l?l(h,p,o+"",r,n,s):void 0))&&(u=!(c=Object(k.a)(p))&&Object(z.a)(p),f=!c&&!u&&Object(q.a)(p),d=p,c||u||f?d=Object(k.a)(h)?h:B(h)?j(h):u?(n=!1,Object(_.a)(p,!0)):f?O(p,!(n=!1)):[]:Y(p)||Object(M.a)(p)?(d=h,Object(M.a)(h)?d=G(h):Object(E.a)(h)&&!Object(U.a)(h)||(d=L(p))):n=!1),n&&(s.set(p,d),i(d,p,a,l,s),s.delete(p)),x(r,o,d))):(c=m?m(N(b,t),e,t+"",b,g,y):void 0,x(b,t,c=void 0===c?e:c))},C)}function F(e,t){return ee((a=e,i=t,l=H.a,i=T(void 0===i?a.length-1:i,0),function(){for(var e=arguments,t=-1,r=T(e.length-i,0),n=Array(r);++t<r;)n[t]=e[i+t];for(var t=-1,o=Array(i+1);++t<i;)o[t]=e[t];return o[i]=l(n),Z(a,this,o)}),e+"");var a,i,l}var b,g,v,m,L=function(e){return"function"!=typeof e.constructor||Object(u.a)(e)?{}:l(c(e))},M=t(231),k=t(52),y=t(171),R=t(36),B=function(e){return Object(R.a)(e)&&Object(y.a)(e)},z=t(83),U=t(117),I=t(37),s=Function.prototype,A=Object.prototype,P=s.toString,W=A.hasOwnProperty,X=P.call(Object),Y=function(e){return!(!Object(R.a)(e)||"[object Object]"!=Object(I.a)(e))&&(null===(e=c(e))||"function"==typeof(e=W.call(e,"constructor")&&e.constructor)&&e instanceof e&&P.call(e)==X)},q=t(121),N=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},V=Object.prototype.hasOwnProperty,$=t(292),K=Object.prototype.hasOwnProperty,J=function(e){if(Object(E.a)(e)){var t,r=Object(u.a)(e),n=[];for(t in e)("constructor"!=t||!r&&K.call(e,t))&&n.push(t);return n}var o=e,a=[];if(null!=o)for(var i in Object(o))a.push(i);return a},G=function(e){return d(e,C(e))},H=t(566),Z=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)},T=Math.max,s=n?function(e,t){return n(e,"toString",{configurable:!0,enumerable:!1,value:(r=t,function(){return r}),writable:!0});var r}:H.a,Q=Date.now,ee=(b=s,v=g=0,function(){var e=Q(),t=16-(e-v);if(v=e,0<t){if(800<=++g)return arguments[0]}else g=0;return b.apply(void 0,arguments)}),te=t(190),A=(m=function(e,t,r){S(e,t,r)},F(function(e,t){var r,n,o,a=-1,i=t.length,l=1<i?t[i-1]:void 0,s=2<i?t[2]:void 0,l=3<m.length&&"function"==typeof l?(i--,l):void 0;for((s&&(r=t[0],n=t[1],s=s,!!Object(E.a)(s))&&!!("number"==(o=typeof n)?Object(y.a)(s)&&Object(te.a)(n,s.length):"string"==o&&n in s)&&Object(h.a)(s[n],r)&&(l=i<3?void 0:l,i=1),e=Object(e));++a<i;){var c=t[a];c&&m(e,c,a)}return e}));e.a=A},565:function(e,t,r){var n=r(315);e.exports=function(e){var t;return"string"==typeof e||n(e)?e:"0"==(t=e+"")&&1/e==-1/0?"-0":t}},566:function(e,t,r){"use strict";t.a=function(e){return e}},567:function(e,t,r){"use strict";e.exports=r(697)},573:function(D,e,t){"use strict";var r=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},p=t(120),d=t(229),a=function(e,t,r,n){var o=r.length,a=o,i=!n;if(null==e)return!a;for(e=Object(e);o--;){var l=r[o];if(i&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<a;){var s=(l=r[o])[0],c=e[s],u=l[1];if(i&&l[2]){if(void 0===c&&!(s in e))return!1}else{var f,h=new p.a;if(!(void 0===(f=n?n(c,u,s,e,t,h):f)?Object(d.a)(u,c,3,n,h):f))return!1}}return!0},n=t(35),i=function(e){return e==e&&!Object(n.a)(e)},l=t(230),s=function(e){for(var t=Object(l.a)(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,i(o)]}return t},c=function(t,r){return function(e){return null!=e&&e[t]===r&&(void 0!==r||t in Object(e))}},u=t(52),o=t(172),f=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,h=/^\w*$/,b=function(e,t){var r;return!Object(u.a)(e)&&(!("number"!=(r=typeof e)&&"symbol"!=r&&"boolean"!=r&&null!=e&&!Object(o.a)(e))||h.test(e)||!f.test(e)||null!=t&&e in Object(t))},g=t(119);function v(n,o){if("function"!=typeof n||null!=o&&"function"!=typeof o)throw new TypeError("Expected a function");function a(){var e=arguments,t=o?o.apply(this,e):e[0],r=a.cache;return r.has(t)?r.get(t):(e=n.apply(this,e),a.cache=r.set(t,e)||r,e)}return a.cache=new(v.Cache||g.a),a}v.Cache=g.a;function m(e){var t;return"string"==typeof e?e:Object(u.a)(e)?r(e,m)+"":Object(o.a)(e)?M?M.call(e):"":"0"==(t=e+"")&&1/e==-1/0?"-0":t}function y(e,t){return Object(u.a)(e)?e:b(e,t)?[e]:C(null==(t=e)?"":m(t))}function w(e,t){for(var r=0,n=(t=y(t,e)).length;null!=e&&r<n;)e=e[k(t[r++])];return r&&r==n?e:void 0}function x(e,t){return null!=e&&t in Object(e)}function _(e){return"function"==typeof e?e:null==e?T.a:"object"==typeof e?Object(u.a)(e)?(n=e[0],o=e[1],b(n)&&i(o)?c(k(n),o):function(e){var t=R(e,n);return void 0===t&&t===o?H(e,n):Object(d.a)(o,t,3)}):1==(r=s(t=e)).length&&r[0][2]?c(r[0][0],r[0][1]):function(e){return e===t||a(e,t,r)}:b(e=e)?F(k(e)):L(e);var t,r,n,o}var O,j=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,E=/\\(\\)?/g,C=(O=(S=v(function(e){var o=[];return 46===e.charCodeAt(0)&&o.push(""),e.replace(j,function(e,t,r,n){o.push(r?n.replace(E,"$1"):t||e)}),o},function(e){return 500===O.size&&O.clear(),e})).cache,S),S=t(44),S=S.a?S.a.prototype:void 0,M=S?S.toString:void 0,k=function(e){var t;return"string"==typeof e||Object(o.a)(e)?e:"0"==(t=e+"")&&1/e==-1/0?"-0":t},R=function(e,t,r){e=null==e?void 0:w(e,t);return void 0===e?r:e},A=t(231),P=t(190),N=t(118),H=function(e,t){return null!=e&&function(e,t,r){for(var n=-1,o=(t=y(t,e)).length,a=!1;++n<o;){var i=k(t[n]);if(!(a=null!=e&&r(e,i)))break;e=e[i]}return a||++n!=o?a:!!(o=null==e?0:e.length)&&Object(N.a)(o)&&Object(P.a)(i,o)&&(Object(u.a)(e)||Object(A.a)(e))}(e,t,x)},T=t(566),F=function(t){return function(e){return null==e?void 0:e[t]}},L=function(t){return function(e){return w(e,t)}},B=t(649),z=t(171);e.a=function(e,t){return(Object(u.a)(e)?r:function(e,n){var o=-1,a=Object(z.a)(e)?Array(e.length):[];return Object(B.a)(e,function(e,t,r){a[++o]=n(e,t,r)}),a})(e,_(t))}},575:function(e,t,r){var n=r(598),o=r(667);e.exports=function(e,t){return e&&n(e,o(t))}},576:function(e,t,r){var n=r(89),o=r(315),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;e.exports=function(e,t){var r;return!n(e)&&(!("number"!=(r=typeof e)&&"symbol"!=r&&"boolean"!=r&&null!=e&&!o(e))||i.test(e)||!a.test(e)||null!=t&&e in Object(t))}},593:function(e,t,r){"use strict";var a=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e},i=r(649),n=r(566),l=function(e){return"function"==typeof e?e:n.a},s=r(52),o=r(696),c=r.n(o),u=(r.d(t,"c",function(){return u}),r.d(t,"d",function(){return f}),r.d(t,"b",function(){return h}),r.d(t,"a",function(){return p}),function(t){var e,r,n=0,o=0;return e=["r","g","b","a","h","s","l","v"],r=function(e){!t[e]||(n+=1,isNaN(t[e])||(o+=1),"s"!==e&&"l"!==e)||/^\d+%$/.test(t[e])&&(o+=1)},(Object(s.a)(e)?a:i.a)(e,l(r)),n===o&&t}),f=function(e,t){var r=e.hex?c()(e.hex):c()(e),n=r.toHsl(),o=r.toHsv(),a=r.toRgb(),r=r.toHex();return 0===n.s&&(n.h=t||0,o.h=t||0),{hsl:n,hex:"000000"===r&&0===a.a?"transparent":"#"+r,rgb:a,hsv:o,oldHue:e.h||t||n.h,source:e.source}},h=function(e){var t;return"transparent"===e||(t="#"===String(e).charAt(0)?1:0,e.length!==4+t&&e.length<7+t&&c()(e).isValid())},p=function(e){return e?"transparent"===(e=f(e)).hex?"rgba(0,0,0,0.4)":128<=(299*e.rgb.r+587*e.rgb.g+114*e.rgb.b)/1e3?"#000":"#fff":"#fff"}},597:function(D,e,o){"use strict";o.d(e,"a",function(){return I}),o.d(e,"b",function(){return B}),o.d(e,"c",function(){return q}),o.d(e,"d",function(){return X});var f=o(1),h=o.n(f);function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function d(e,t){if(null==e)return{};for(var r,n={},o=Object.keys(e),a=0;a<o.length;a++)0<=t.indexOf(r=o[a])||(n[r]=e[r]);return n}function b(e){var t=Object(f.useRef)(e),r=Object(f.useRef)(function(e){t.current&&t.current(e)});return t.current=e,r.current}function a(e,t,r){return void 0===t&&(t=0),(r=void 0===r?1:r)<e?r:e<t?t:e}function g(e){return"touches"in e}function v(e){return e&&e.ownerDocument.defaultView||self}function m(e,t,r){var n=e.getBoundingClientRect(),r=g(t)?function(e,t){for(var r=0;r<e.length;r++)if(e[r].identifier===t)return e[r];return e[0]}(t.touches,r):t;return{left:a((r.pageX-(n.left+v(e).pageXOffset))/n.width),top:a((r.pageY-(n.top+v(e).pageYOffset))/n.height)}}function y(e){g(e)||e.preventDefault()}function i(e){var t=e.color,r=e.left,n=void 0===(n=e.top)?.5:n,e=j(["react-colorful__pointer",e.className]);return h.a.createElement("div",{className:e,style:{top:100*n+"%",left:100*r+"%"}},h.a.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))}function t(e){return M(C(e))}function r(e){return e=c(e),t=e.r,r=e.g,n=e.b,e=(e=e.a)<1?S(E(255*e)):"","#"+S(t)+S(r)+S(n)+e;var t,r,n}function n(e){var t=e.s,r=e.v,n=e.a,o=(200-t)*r/100;return{h:E(e.h),s:E(0<o&&o<200?t*r/100/(o<=100?o:200-o)*100:0),l:E(o/2),a:E(n,2)}}function l(e){return"hsl("+(e=n(e)).h+", "+e.s+"%, "+e.l+"%)"}function s(e){return"hsla("+(e=n(e)).h+", "+e.s+"%, "+e.l+"%, "+e.a+")"}function c(e){var t=e.h,r=e.s,n=e.v,e=e.a,t=t/360*6,o=(r/=100,n/=100,Math.floor(t)),a=n*(1-r),i=n*(1-(t-o)*r);return{r:E(255*[n,i,a,a,t=n*(1-(1-t+o)*r),n][r=o%6]),g:E(255*[t,n,n,i,a,a][r]),b:E(255*[a,a,t,n,n,i][r]),a:E(e,2)}}function u(e){return(e=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e))?M({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:void 0===e[7]?1:Number(e[7])/(e[8]?100:1)}):{h:0,s:0,v:0,a:1}}function w(e,t){if(e!==t)for(var r in e)if(e[r]!==t[r])return!1;return!0}function x(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")}function _(e,t){return e.toLowerCase()===t.toLowerCase()||w(C(e),C(t))}var O=h.a.memo(function(e){var t=e.onMove,r=e.onKey,e=d(e,["onMove","onKey"]),i=Object(f.useRef)(null),l=b(t),s=b(r),c=Object(f.useRef)(null),u=Object(f.useRef)(!1),t=Object(f.useMemo)(function(){function n(e){y(e),(g(e)?0<e.touches.length:0<e.buttons)&&i.current?l(m(i.current,e,c.current)):a(!1)}function o(){return a(!1)}function a(e){var t=u.current,r=v(i.current),e=e?r.addEventListener:r.removeEventListener;e(t?"touchmove":"mousemove",n),e(t?"touchend":"mouseup",o)}return[function(e){var t,e=e.nativeEvent,r=i.current;r&&(y(e),!u.current||g(e))&&r&&(g(e)&&(u.current=!0,(t=e.changedTouches||[]).length)&&(c.current=t[0].identifier),r.focus(),l(m(r,e,c.current)),a(!0))},function(e){var t=e.which||e.keyCode;t<37||40<t||(e.preventDefault(),s({left:39===t?.05:37===t?-.05:0,top:40===t?.05:38===t?-.05:0}))},a]},[s,l]),r=t[0],n=t[1],o=t[2];return Object(f.useEffect)(function(){return o},[o]),h.a.createElement("div",p({},e,{onTouchStart:r,onMouseDown:r,className:"react-colorful__interactive",ref:i,onKeyDown:n,tabIndex:0,role:"slider"}))}),j=function(e){return e.filter(Boolean).join(" ")},E=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=Math.pow(10,t)),Math.round(r*e)/r},C=(Math.PI,function(e){return(e="#"===e[0]?e.substring(1):e).length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?E(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:8===e.length?E(parseInt(e.substring(6,8),16)/255,2):1}}),e=u,S=function(e){e=e.toString(16);return e.length<2?"0"+e:e},M=function(e){var t=e.r,r=e.g,n=e.b,e=e.a,o=Math.max(t,r,n),a=o-Math.min(t,r,n),n=a?o===t?(r-n)/a:o===r?2+(n-t)/a:4+(t-r)/a:0;return{h:E(60*(n<0?6+n:n)),s:E(o?a/o*100:0),v:E(o/255*100),a:e}},k=h.a.memo(function(e){var t=e.hue,r=e.onChange,e=j(["react-colorful__hue",e.className]);return h.a.createElement("div",{className:e},h.a.createElement(O,{onMove:function(e){r({h:360*e.left})},onKey:function(e){r({h:a(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":E(t),"aria-valuemax":"360","aria-valuemin":"0"},h.a.createElement(i,{className:"react-colorful__hue-pointer",left:t/360,color:l({h:t,s:100,v:100,a:1})})))}),R=h.a.memo(function(e){var t=e.hsva,r=e.onChange,e={backgroundColor:l({h:t.h,s:100,v:100,a:1})};return h.a.createElement("div",{className:"react-colorful__saturation",style:e},h.a.createElement(O,{onMove:function(e){r({s:100*e.left,v:100-100*e.top})},onKey:function(e){r({s:a(t.s+100*e.left,0,100),v:a(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+E(t.s)+"%, Brightness "+E(t.v)+"%"},h.a.createElement(i,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:l(t)})))});function A(t,r,e){var n=b(e),e=Object(f.useState)(function(){return t.toHsva(r)}),o=e[0],a=e[1],i=Object(f.useRef)({color:r,hsva:o}),e=(Object(f.useEffect)(function(){var e;t.equal(r,i.current.color)||(e=t.toHsva(r),i.current={hsva:e,color:r},a(e))},[r,t]),Object(f.useEffect)(function(){var e;w(o,i.current.hsva)||t.equal(e=t.fromHsva(o),i.current.color)||(i.current={hsva:o,color:e},n(e))},[o,t,n]),Object(f.useCallback)(function(t){a(function(e){return Object.assign({},e,t)})},[]));return[o,e]}function P(e){var t=e.className,r=e.colorModel,n=void 0===(n=e.color)?r.defaultColor:n,o=e.onChange,e=d(e,["className","colorModel","color","onChange"]),a=Object(f.useRef)(null);T(a);n=(r=A(r,n,o))[0],o=r[1],r=j(["react-colorful",t]);return h.a.createElement("div",p({},e,{ref:a,className:r}),h.a.createElement(R,{hsva:n,onChange:o}),h.a.createElement(k,{hue:n.h,onChange:o,className:"react-colorful__last-control"}))}function N(e){var t=e.className,r=e.colorModel,n=void 0===(n=e.color)?r.defaultColor:n,o=e.onChange,e=d(e,["className","colorModel","color","onChange"]),a=Object(f.useRef)(null);T(a);n=(r=A(r,n,o))[0],o=r[1],r=j(["react-colorful",t]);return h.a.createElement("div",p({},e,{ref:a,className:r}),h.a.createElement(R,{hsva:n,onChange:o}),h.a.createElement(k,{hue:n.h,onChange:o}),h.a.createElement(z,{hsva:n,onChange:o,className:"react-colorful__last-control"}))}var F="undefined"!=typeof window?f.useLayoutEffect:f.useEffect,H=new Map,T=function(n){F(function(){var e,t,r=n.current?n.current.ownerDocument:document;void 0===r||H.has(r)||((e=r.createElement("style")).innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',H.set(r,e),(t=o.nc)&&e.setAttribute("nonce",t),r.head.appendChild(e))},[])},L={defaultColor:"000",toHsva:t,fromHsva:function(e){return r({h:e.h,s:e.s,v:e.v,a:1})},equal:_},B=function(e){return h.a.createElement(P,p({},e,{colorModel:L}))},z=function(e){var t=e.className,r=e.hsva,n=e.onChange,e={backgroundImage:"linear-gradient(90deg, "+s(Object.assign({},r,{a:0}))+", "+s(Object.assign({},r,{a:1}))+")"},t=j(["react-colorful__alpha",t]),o=E(100*r.a);return h.a.createElement("div",{className:t},h.a.createElement("div",{className:"react-colorful__alpha-gradient",style:e}),h.a.createElement(O,{onMove:function(e){n({a:e.left})},onKey:function(e){n({a:a(r.a+e.left)})},"aria-label":"Alpha","aria-valuetext":o+"%","aria-valuenow":o,"aria-valuemin":"0","aria-valuemax":"100"},h.a.createElement(i,{className:"react-colorful__alpha-pointer",left:r.a,color:s(r)})))},U={defaultColor:"0001",toHsva:t,fromHsva:r,equal:_},I=function(e){return h.a.createElement(N,p({},e,{colorModel:U}))},W={defaultColor:"rgba(0, 0, 0, 1)",toHsva:u,fromHsva:function(e){e=c(e);return"rgba("+e.r+", "+e.g+", "+e.b+", "+e.a+")"},equal:x},X=function(e){return h.a.createElement(N,p({},e,{colorModel:W}))},Y={defaultColor:"rgb(0, 0, 0)",toHsva:e,fromHsva:function(e){e=c(e);return"rgb("+e.r+", "+e.g+", "+e.b+")"},equal:x},q=function(e){return h.a.createElement(P,p({},e,{colorModel:Y}))}},598:function(e,t,r){var n=r(665),o=r(91);e.exports=function(e,t){return e&&n(e,t,o)}},600:function(e,t,r){var n=r(40);e.exports=function(e){return e==e&&!n(e)}},601:function(e,t){e.exports=function(t,r){return function(e){return null!=e&&e[t]===r&&(void 0!==r||t in Object(e))}}},602:function(e,t,r){var o=r(603),a=r(565);e.exports=function(e,t){for(var r=0,n=(t=o(t,e)).length;null!=e&&r<n;)e=e[a(t[r++])];return r&&r==n?e:void 0}},603:function(e,t,r){var n=r(89),o=r(576),a=r(676),i=r(560);e.exports=function(e,t){return n(e)?e:o(e,t)?[e]:a(i(e))}},649:function(e,t,r){"use strict";function n(e,t){if(null!=e){if(!Object(l.a)(e))return a(e,t);for(var r=e.length,n=-1,o=Object(e);++n<r&&!1!==t(o[n],n,o););}return e}var a,o=r(650),i=r(230),l=r(171);a=function(e,t){return e&&Object(o.a)(e,t,i.a)};t.a=n},650:function(e,t,r){"use strict";t.a=function(e,t,r){for(var n=-1,o=Object(e),a=r(e),i=a.length;i--;){var l=a[++n];if(!1===t(o[l],l,o))break}return e}},663:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flattenNames=void 0;var n=l(r(664)),o=l(r(575)),a=l(r(668)),i=l(r(669));function l(e){return e&&e.__esModule?e:{default:e}}r=t.flattenNames=function t(){var r=[];return(0,i.default)(0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],function(e){Array.isArray(e)?t(e).map(function(e){return r.push(e)}):(0,a.default)(e)?(0,o.default)(e,function(e,t){!0===e&&r.push(t),r.push(t+"-"+e)}):(0,n.default)(e)&&r.push(e)}),r};t.default=r},664:function(e,t,r){var n=r(70),o=r(89),a=r(53);e.exports=function(e){return"string"==typeof e||!o(e)&&a(e)&&"[object String]"==n(e)}},665:function(e,t,r){r=r(666)();e.exports=r},666:function(e,t){e.exports=function(s){return function(e,t,r){for(var n=-1,o=Object(e),a=r(e),i=a.length;i--;){var l=a[s?i:++n];if(!1===t(o[l],l,o))break}return e}}},667:function(e,t,r){var n=r(173);e.exports=function(e){return"function"==typeof e?e:n}},668:function(e,t,r){var n=r(70),o=r(193),a=r(53),r=Function.prototype,i=Object.prototype,l=r.toString,s=i.hasOwnProperty,c=l.call(Object);e.exports=function(e){return!(!a(e)||"[object Object]"!=n(e))&&(null===(e=o(e))||"function"==typeof(e=s.call(e,"constructor")&&e.constructor)&&e instanceof e&&l.call(e)==c)}},669:function(e,t,r){var n=r(599),o=r(670),a=r(686),i=r(89);e.exports=function(e,t){return(i(e)?n:a)(e,o(t,3))}},670:function(e,t,r){var n=r(671),o=r(674),a=r(173),i=r(89),l=r(683);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?i(e)?o(e[0],e[1]):n(e):l(e)}},671:function(e,t,r){var n=r(672),o=r(673),a=r(601);e.exports=function(t){var r=o(t);return 1==r.length&&r[0][2]?a(r[0][0],r[0][1]):function(e){return e===t||n(e,t,r)}}},672:function(e,t,r){var p=r(185),d=r(316);e.exports=function(e,t,r,n){var o=r.length,a=o,i=!n;if(null==e)return!a;for(e=Object(e);o--;){var l=r[o];if(i&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<a;){var s=(l=r[o])[0],c=e[s],u=l[1];if(i&&l[2]){if(void 0===c&&!(s in e))return!1}else{var f,h=new p;if(!(void 0===(f=n?n(c,u,s,e,t,h):f)?d(u,c,3,n,h):f))return!1}}return!0}},673:function(e,t,r){var a=r(600),i=r(91);e.exports=function(e){for(var t=i(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,a(o)]}return t}},674:function(e,t,r){var o=r(316),a=r(675),i=r(680),l=r(576),s=r(600),c=r(601),u=r(565);e.exports=function(r,n){return l(r)&&s(n)?c(u(r),n):function(e){var t=a(e,r);return void 0===t&&t===n?i(e,r):o(n,t,3)}}},675:function(e,t,r){var n=r(602);e.exports=function(e,t,r){e=null==e?void 0:n(e,t);return void 0===e?r:e}},676:function(e,t,r){var r=r(677),n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,r=r(function(e){var o=[];return 46===e.charCodeAt(0)&&o.push(""),e.replace(n,function(e,t,r,n){o.push(r?n.replace(a,"$1"):t||e)}),o});e.exports=r},677:function(e,t,r){var n=r(678);e.exports=function(e){var e=n(e,function(e){return 500===t.size&&t.clear(),e}),t=e.cache;return e}},678:function(e,t,r){var i=r(186);function l(n,o){if("function"!=typeof n||null!=o&&"function"!=typeof o)throw new TypeError("Expected a function");function a(){var e=arguments,t=o?o.apply(this,e):e[0],r=a.cache;return r.has(t)?r.get(t):(e=n.apply(this,e),a.cache=r.set(t,e)||r,e)}return a.cache=new(l.Cache||i),a}l.Cache=i,e.exports=l},680:function(e,t,r){var n=r(681),o=r(682);e.exports=function(e,t){return null!=e&&o(e,t,n)}},681:function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},682:function(e,t,r){var l=r(603),s=r(317),c=r(89),u=r(187),f=r(188),h=r(565);e.exports=function(e,t,r){for(var n=-1,o=(t=l(t,e)).length,a=!1;++n<o;){var i=h(t[n]);if(!(a=null!=e&&r(e,i)))break;e=e[i]}return a||++n!=o?a:!!(o=null==e?0:e.length)&&f(o)&&u(i,o)&&(c(e)||s(e))}},683:function(e,t,r){var n=r(684),o=r(685),a=r(576),i=r(565);e.exports=function(e){return a(e)?n(i(e)):o(e)}},684:function(e,t){e.exports=function(t){return function(e){return null==e?void 0:e[t]}}},685:function(e,t,r){var n=r(602);e.exports=function(t){return function(e){return n(e,t)}}},686:function(e,t,r){var i=r(687),l=r(92);e.exports=function(e,n){var o=-1,a=l(e)?Array(e.length):[];return i(e,function(e,t,r){a[++o]=n(e,t,r)}),a}},687:function(e,t,r){var n=r(598),r=r(688)(n);e.exports=r},688:function(e,t,r){var l=r(92);e.exports=function(a,i){return function(e,t){if(null!=e){if(!l(e))return a(e,t);for(var r=e.length,n=i?r:-1,o=Object(e);(i?n--:++n<r)&&!1!==t(o[n],n,o););}return e}}},689:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeClasses=void 0;var o=n(r(575)),a=n(r(690)),i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function n(e){return e&&e.__esModule?e:{default:e}}r=t.mergeClasses=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],n=t.default&&(0,a.default)(t.default)||{};return e.map(function(e){var r=t[e];return r&&(0,o.default)(r,function(e,t){n[t]||(n[t]={}),n[t]=i({},n[t],r[t])}),e}),n};t.default=r},690:function(e,t,r){var n=r(318);e.exports=function(e){return n(e,5)}},691:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.autoprefix=void 0;var r=r(575),o=r&&r.__esModule?r:{default:r},a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i={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){e=e&&e.split(" ");return{position:"absolute",top:e&&e[0],right:e&&e[1],bottom:e&&e[2],left:e&&e[3]}},extend:function(e,t){return t[e]||{extend:e}}},r=t.autoprefix=function(e){var r={};return(0,o.default)(e,function(e,t){var n={};(0,o.default)(e,function(e,t){var r=i[t];r?n=a({},n,r(e)):n[t]=e}),r[t]=n}),r};t.default=r},692:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hover=void 0;var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r=r(1),u=r&&r.__esModule?r:{default:r};function f(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}r=t.hover=function(i){var l=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"span",e=u.default.Component;function s(){var e,t=this,r=s;if(!(t instanceof r))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,o=Array(n),a=0;a<n;a++)o[a]=arguments[a];return r=e=f(this,(t=s.__proto__||Object.getPrototypeOf(s)).call.apply(t,[this].concat(o))),e.state={hover:!1},e.handleMouseOver=function(){return e.setState({hover:!0})},e.handleMouseOut=function(){return e.setState({hover:!1})},e.render=function(){return u.default.createElement(l,{onMouseOver:e.handleMouseOver,onMouseOut:e.handleMouseOut},u.default.createElement(i,c({},e.props,e.state)))},f(e,r)}var t=s;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),s};t.default=r},693:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.active=void 0;var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r=r(1),u=r&&r.__esModule?r:{default:r};function f(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}r=t.active=function(i){var l=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"span",e=u.default.Component;function s(){var e,t=this,r=s;if(!(t instanceof r))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,o=Array(n),a=0;a<n;a++)o[a]=arguments[a];return r=e=f(this,(t=s.__proto__||Object.getPrototypeOf(s)).call.apply(t,[this].concat(o))),e.state={active:!1},e.handleMouseDown=function(){return e.setState({active:!0})},e.handleMouseUp=function(){return e.setState({active:!1})},e.render=function(){return u.default.createElement(l,{onMouseDown:e.handleMouseDown,onMouseUp:e.handleMouseUp},u.default.createElement(i,c({},e.props,e.state)))},f(e,r)}var t=s;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),s};t.default=r},694:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){function r(e){n[e]=!(1<arguments.length&&void 0!==arguments[1])||arguments[1]}var n={};return 0===e&&r("first-child"),e===t-1&&r("last-child"),0!==e&&e%2!=0||r("even"),1===Math.abs(e%2)&&r("odd"),r("nth-child",e),n}},695:function(e,o,a){"use strict";!function(e){var t=a(15),r="object"==typeof exports&&exports&&!exports.nodeType&&exports,e=r&&"object"==typeof e&&e&&!e.nodeType&&e,e=e&&e.exports===r?t.a.Buffer:void 0,n=e?e.allocUnsafe:void 0;o.a=function(e,t){return t?e.slice():(t=e.length,t=n?n(t):new e.constructor(t),e.copy(t),t)}}.call(this,a(189)(e))},696:function(e,t,r){e.exports=function(){"use strict";function m(e){return(m="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})(e)}var y=/^\s+/,w=/\s+$/;function x(e,t){var r,n,o,a,i,l,s,c,u,f,h,p,d,b,g;return t=t||{},(e=e||"")instanceof x?e:this instanceof x?(h={r:0,g:0,b:0},d=null,g=b=!(p=1),p=O(p="object"==m(r="string"==typeof(r=e)?function(e){e=e.replace(y,"").replace(w,"").toLowerCase();var t,r=!1;if(_[e])e=_[e],r=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=N.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=N.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=N.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=N.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=N.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=N.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=N.hex8.exec(e))?{r:E(t[1]),g:E(t[2]),b:E(t[3]),a:k(t[4]),format:r?"name":"hex8"}:(t=N.hex6.exec(e))?{r:E(t[1]),g:E(t[2]),b:E(t[3]),format:r?"name":"hex"}:(t=N.hex4.exec(e))?{r:E(t[1]+""+t[1]),g:E(t[2]+""+t[2]),b:E(t[3]+""+t[3]),a:k(t[4]+""+t[4]),format:r?"name":"hex8"}:!!(t=N.hex3.exec(e))&&{r:E(t[1]+""+t[1]),g:E(t[2]+""+t[2]),b:E(t[3]+""+t[3]),format:r?"name":"hex"}}(r):r)&&(H(r.r)&&H(r.g)&&H(r.b)?(s=r.r,i=r.g,l=r.b,h={r:255*j(s,255),g:255*j(i,255),b:255*j(l,255)},b=!0,g="%"===String(r.r).substr(-1)?"prgb":"rgb"):H(r.h)&&H(r.s)&&H(r.v)?(d=S(r.s),s=S(r.v),i=r.h,l=d,s=s,i=6*j(i,360),l=j(l,100),s=j(s,100),c=Math.floor(i),h={r:255*[s,f=s*(1-(i-=c)*l),u=s*(1-l),u,i=s*(1-(1-i)*l),s][l=c%6],g:255*[i,s,s,f,u,u][l],b:255*[u,u,i,s,s,f][l]},b=!0,g="hsv"):H(r.h)&&H(r.s)&&H(r.l)&&(d=S(r.s),c=S(r.l),u=r.h,i=d,s=c,u=j(u,360),i=j(i,100),s=j(s,100),0===i?n=o=a=s:(n=v(i=2*s-(s=s<.5?s*(1+i):s+i-s*i),s,u+1/3),o=v(i,s,u),a=v(i,s,u-1/3)),h={r:255*n,g:255*o,b:255*a},b=!0,g="hsl"),r.hasOwnProperty("a"))?r.a:p),f={ok:b,format:r.format||g,r:Math.min(255,Math.max(h.r,0)),g:Math.min(255,Math.max(h.g,0)),b:Math.min(255,Math.max(h.b,0)),a:p},this._originalInput=e,this._r=f.r,this._g=f.g,this._b=f.b,this._a=f.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||f.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)),void(this._ok=f.ok)):new x(e,t);function v(e,t,r){return r<0&&(r+=1),1<r&&--r,r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}}function n(e,t,r){e=j(e,255),t=j(t,255),r=j(r,255);var n,o=Math.max(e,t,r),a=Math.min(e,t,r),i=(o+a)/2;if(o==a)n=s=0;else{var l=o-a,s=.5<i?l/(2-o-a):l/(o+a);switch(o){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:s,l:i}}function o(e,t,r){e=j(e,255),t=j(t,255),r=j(r,255);var n,o=Math.max(e,t,r),a=Math.min(e,t,r),i=o,l=o-a,s=0===o?0:l/o;if(o==a)n=0;else{switch(o){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:s,v:i}}function t(e,t,r,n){e=[C(Math.round(e).toString(16)),C(Math.round(t).toString(16)),C(Math.round(r).toString(16))];return n&&e[0].charAt(0)==e[0].charAt(1)&&e[1].charAt(0)==e[1].charAt(1)&&e[2].charAt(0)==e[2].charAt(1)?e[0].charAt(0)+e[1].charAt(0)+e[2].charAt(0):e.join("")}function a(e,t,r,n){return[C(M(n)),C(Math.round(e).toString(16)),C(Math.round(t).toString(16)),C(Math.round(r).toString(16))].join("")}function e(e,t){t=0===t?0:t||10;e=x(e).toHsl();return e.s-=t/100,e.s=v(e.s),x(e)}function r(e,t){t=0===t?0:t||10;e=x(e).toHsl();return e.s+=t/100,e.s=v(e.s),x(e)}function i(e){return x(e).desaturate(100)}function l(e,t){t=0===t?0:t||10;e=x(e).toHsl();return e.l+=t/100,e.l=v(e.l),x(e)}function s(e,t){t=0===t?0:t||10;e=x(e).toRgb();return e.r=Math.max(0,Math.min(255,e.r-Math.round(-t/100*255))),e.g=Math.max(0,Math.min(255,e.g-Math.round(-t/100*255))),e.b=Math.max(0,Math.min(255,e.b-Math.round(-t/100*255))),x(e)}function c(e,t){t=0===t?0:t||10;e=x(e).toHsl();return e.l-=t/100,e.l=v(e.l),x(e)}function u(e,t){e=x(e).toHsl(),t=(e.h+t)%360;return e.h=t<0?360+t:t,x(e)}function f(e){e=x(e).toHsl();return e.h=(e.h+180)%360,x(e)}function h(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var r=x(e).toHsl(),n=[x(e)],o=360/t,a=1;a<t;a++)n.push(x({h:(r.h+a*o)%360,s:r.s,l:r.l}));return n}function p(e){var t=x(e).toHsl(),r=t.h;return[x(e),x({h:(r+72)%360,s:t.s,l:t.l}),x({h:(r+216)%360,s:t.s,l:t.l})]}function d(e,t,r){t=t||6,r=r||30;var n=x(e).toHsl(),o=360/r,a=[x(e)];for(n.h=(n.h-(o*t>>1)+720)%360;--t;)n.h=(n.h+o)%360,a.push(x(n));return a}function b(e,t){t=t||6;for(var e=x(e).toHsv(),r=e.h,n=e.s,o=e.v,a=[],i=1/t;t--;)a.push(x({h:r,s:n,v:o})),o=(o+i)%1;return a}x.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=this.toRgb(),t=e.r/255,r=e.g/255,e=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((.055+t)/1.055,2.4))+.7152*(r<=.03928?r/12.92:Math.pow((.055+r)/1.055,2.4))+.0722*(e<=.03928?e/12.92:Math.pow((.055+e)/1.055,2.4))},setAlpha:function(e){return this._a=O(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=o(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=o(this._r,this._g,this._b),t=Math.round(360*e.h),r=Math.round(100*e.s),e=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+r+"%, "+e+"%)":"hsva("+t+", "+r+"%, "+e+"%, "+this._roundA+")"},toHsl:function(){var e=n(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=n(this._r,this._g,this._b),t=Math.round(360*e.h),r=Math.round(100*e.s),e=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+r+"%, "+e+"%)":"hsla("+t+", "+r+"%, "+e+"%, "+this._roundA+")"},toHex:function(e){return t(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){var t=this._r,r=this._g,n=this._b,o=this._a;return t=[C(Math.round(t).toString(16)),C(Math.round(r).toString(16)),C(Math.round(n).toString(16)),C(M(o))],e&&t[0].charAt(0)==t[0].charAt(1)&&t[1].charAt(0)==t[1].charAt(1)&&t[2].charAt(0)==t[2].charAt(1)&&t[3].charAt(0)==t[3].charAt(1)?t[0].charAt(0)+t[1].charAt(0)+t[2].charAt(0)+t[3].charAt(0):t.join("")},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*j(this._r,255))+"%",g:Math.round(100*j(this._g,255))+"%",b:Math.round(100*j(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*j(this._r,255))+"%, "+Math.round(100*j(this._g,255))+"%, "+Math.round(100*j(this._b,255))+"%)":"rgba("+Math.round(100*j(this._r,255))+"%, "+Math.round(100*j(this._g,255))+"%, "+Math.round(100*j(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(g[t(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+a(this._r,this._g,this._b,this._a),r=t;return"progid:DXImageTransform.Microsoft.gradient("+(this._gradientType?"GradientType = 1, ":"")+"startColorstr="+t+",endColorstr="+(r=e?"#"+a((t=x(e))._r,t._g,t._b,t._a):r)+")"},toString:function(e){var t=!!e,r=(e=e||this._format,!1),n=this._a<1&&0<=this._a;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()),(r="hsv"===e?this.toHsvString():r)||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return x(this.toString())},_applyModification:function(e,t){e=e.apply(null,[this].concat([].slice.call(t)));return this._r=e._r,this._g=e._g,this._b=e._b,this.setAlpha(e._a),this},lighten:function(){return this._applyModification(l,arguments)},brighten:function(){return this._applyModification(s,arguments)},darken:function(){return this._applyModification(c,arguments)},desaturate:function(){return this._applyModification(e,arguments)},saturate:function(){return this._applyModification(r,arguments)},greyscale:function(){return this._applyModification(i,arguments)},spin:function(){return this._applyModification(u,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(d,arguments)},complement:function(){return this._applyCombination(f,arguments)},monochromatic:function(){return this._applyCombination(b,arguments)},splitcomplement:function(){return this._applyCombination(p,arguments)},triad:function(){return this._applyCombination(h,[3])},tetrad:function(){return this._applyCombination(h,[4])}},x.fromRatio=function(e,t){if("object"==m(e)){var r,n={};for(r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:S(e[r]));e=n}return x(e,t)},x.equals=function(e,t){return!(!e||!t)&&x(e).toRgbString()==x(t).toRgbString()},x.random=function(){return x.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},x.mix=function(e,t,r){r=0===r?0:r||50;e=x(e).toRgb(),t=x(t).toRgb(),r/=100;return x({r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b,a:(t.a-e.a)*r+e.a})},x.readability=function(e,t){e=x(e),t=x(t);return(Math.max(e.getLuminance(),t.getLuminance())+.05)/(Math.min(e.getLuminance(),t.getLuminance())+.05)},x.isReadable=function(e,t,r){var n=x.readability(e,t),o=!1,e=r,t=((e=r||{level:"AA",size:"small"}).level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase();switch((e={level:t="AA"!==t&&"AAA"!==t?"AA":t,size:r="small"!==r&&"large"!==r?"small":r}).level+e.size){case"AAsmall":case"AAAlarge":o=4.5<=n;break;case"AAlarge":o=3<=n;break;case"AAAsmall":o=7<=n}return o},x.mostReadable=function(e,t,r){for(var n,o=null,a=0,i=(r=r||{}).includeFallbackColors,l=r.level,s=r.size,c=0;c<t.length;c++)(n=x.readability(e,t[c]))>a&&(a=n,o=x(t[c]));return x.isReadable(e,o,{level:l,size:s})||!i?o:(r.includeFallbackColors=!1,x.mostReadable(e,["#fff","#000"],r))};var _=x.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"},g=x.hexNames=function(e){var t,r={};for(t in e)e.hasOwnProperty(t)&&(r[e[t]]=t);return r}(_);function O(e){return e=parseFloat(e),e=isNaN(e)||e<0||1<e?1:e}function j(e,t){var r="string"==typeof(e="string"==typeof(r=e)&&-1!=r.indexOf(".")&&1===parseFloat(r)?"100%":e)&&-1!=e.indexOf("%");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 v(e){return Math.min(1,Math.max(0,e))}function E(e){return parseInt(e,16)}function C(e){return 1==e.length?"0"+e:""+e}function S(e){return e=e<=1?100*e+"%":e}function M(e){return Math.round(255*parseFloat(e)).toString(16)}function k(e){return E(e)/255}A="[\\s|\\(]+("+(R="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+R+")[,|\\s]+("+R+")\\s*\\)?",P="[\\s|\\(]+("+R+")[,|\\s]+("+R+")[,|\\s]+("+R+")[,|\\s]+("+R+")\\s*\\)?";var R,A,P,N={CSS_UNIT:new RegExp(R),rgb:new RegExp("rgb"+A),rgba:new RegExp("rgba"+P),hsl:new RegExp("hsl"+A),hsla:new RegExp("hsla"+P),hsv:new RegExp("hsv"+A),hsva:new RegExp("hsva"+P),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 H(e){return N.CSS_UNIT.exec(e)}return x}()},697:function(e,t,r){"use strict";var n,r=r(1),l=60103,s=(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for&&(l=(n=Symbol.for)("react.element"),t.Fragment=n("react.fragment")),r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner),c=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function o(e,t,r){var n,o={},a=null,i=null;for(n in void 0!==r&&(a=""+r),void 0!==t.key&&(a=""+t.key),void 0!==t.ref&&(i=t.ref),t)c.call(t,n)&&!u.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:l,type:e,key:a,ref:i,props:o,_owner:s.current}}t.jsx=o,t.jsxs=o}}]);
|
|
1
|
+
(window.webpackJsonpfeffery_utils_components=window.webpackJsonpfeffery_utils_components||[]).push([[8],{502:function(e,t,r){"use strict";r.r(t);function n(e){var t=e.id,r=e.className,n=e.style,o=e.color,a=e.showAlpha,i=e.setProps,e=e.loading_state;return Object(s.useEffect)(function(){i({color:o})},[]),a?React.createElement(l.a,{id:t,className:r,style:n,color:o,onChange:function(e){return i({color:e})},"data-dash-is-loading":e&&e.is_loading||void 0}):React.createElement(l.b,{id:t,className:r,style:n,color:o,onChange:function(e){return i({color:e})},"data-dash-is-loading":e&&e.is_loading||void 0})}var l=r(599),s=r(1),r=r(178);(t.default=n).defaultProps=r.b,n.propTypes=r.c},503:function(e,t,r){"use strict";r.r(t);function n(e){var t=e.id,r=e.className,n=e.style,o=e.color,a=e.showAlpha,i=e.setProps,e=e.loading_state;return Object(s.useEffect)(function(){i({color:o})},[]),a?React.createElement(l.d,{id:t,className:r,style:n,color:o,onChange:function(e){return i({color:e})},"data-dash-is-loading":e&&e.is_loading||void 0}):React.createElement(l.c,{id:t,className:r,style:n,color:o,onChange:function(e){return i({color:e})},"data-dash-is-loading":e&&e.is_loading||void 0})}var l=r(599),s=r(1),r=r(179);(t.default=n).defaultProps=r.b,n.propTypes=r.c},529:function(e,t,r){"use strict";r.r(t);var b=r(1),i=r.n(b),n=r(557),g=r.n(n),n=r(579),v=r.n(n),m=(Math.PI,e=>{var{r:e,g:t,b:r}=e;return"#"+(e=(e<<16|t<<8|r).toString(16),new Array(7-e.length).join("0")+e)}),y=e=>{var{r:e,g:t,b:r,a:n}=e=(e=>{var t=e.replace("#",""),r=(/^#?/.test(e)&&3===t.length&&(e="#"+t.charAt(0)+t.charAt(0)+t.charAt(1)+t.charAt(1)+t.charAt(2)+t.charAt(2)),new RegExp("[A-Za-z0-9]{2}","g")),[n,o,a=0,i]=e.match(r).map(e=>parseInt(e,16));return{r:n,g:o,b:a,a:(null!=i?i:255)/255}})(e),o=Math.max(e,t,r),a=o-Math.min(e,t,r);return{h:60*((r=a?o===e?(t-r)/a:o===t?2+(r-e)/a:4+(e-t)/a:0)<0?6+r:r),s:o?a/o*100:0,v:o/255*100,a:n}},w=e=>{var{h:e,s:t,v:r,a:n}=e,e=e/60,t=t/100,o=r/100,r=Math.floor(e)%6,e=e-Math.floor(e),a=255*o*(1-t),i=255*o*(1-t*e),l=255*o*(1-t*(1-e)),s=(o*=255,{});switch(r){case 0:s.r=o,s.g=l,s.b=a;break;case 1:s.r=i,s.g=o,s.b=a;break;case 2:s.r=a,s.g=o,s.b=l;break;case 3:s.r=a,s.g=i,s.b=o;break;case 4:s.r=l,s.g=a,s.b=o;break;case 5:s.r=o,s.g=a,s.b=i}return s.r=Math.round(s.r),s.g=Math.round(s.g),s.b=Math.round(s.b),g()({},s,{a:n})},x=e=>m(w(e)),_=e=>/^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(e);function O(e){var r=Object(b.useRef)(e);return Object(b.useEffect)(()=>{r.current=e}),Object(b.useCallback)((e,t)=>r.current&&r.current(e,t),[])}function o(e,t,r){return void 0===t&&(t=0),(r=void 0===r?1:r)<e?r:e<t?t:e}var j=e=>"touches"in e,E=e=>{!j(e)&&e.preventDefault&&e.preventDefault()},C=(e,t)=>{e=e.getBoundingClientRect(),t=j(t)?t.touches[0]:t;return{left:o((t.pageX-(e.left+window.pageXOffset))/e.width),top:o((t.pageY-(e.top+window.pageYOffset))/e.height),width:e.width,height:e.height,x:t.pageX-(e.left+window.pageXOffset),y:t.pageY-(e.top+window.pageYOffset)}},S=r(569),M=["prefixCls","className","onMove","onDown"],n=i.a.forwardRef((e,t)=>{var{prefixCls:r="w-color-interactive",className:n,onMove:o,onDown:a}=e,e=v()(e,M),i=Object(b.useRef)(null),l=Object(b.useRef)(!1),[s,c]=Object(b.useState)(!1),u=O(o),f=O(a),h=Object(b.useCallback)(e=>{E(e),(j(e)?0<e.touches.length:0<e.buttons)&&i.current?u&&u(C(i.current,e),e):c(!1)},[u]),p=Object(b.useCallback)(()=>c(!1),[]),d=Object(b.useCallback)(e=>{e=e?window.addEventListener:window.removeEventListener;e(l.current?"touchmove":"mousemove",h),e(l.current?"touchend":"mouseup",p)},[]),o=(Object(b.useEffect)(()=>(d(s),()=>{s&&d(!1)}),[s,d]),Object(b.useCallback)(e=>{var t;E(e.nativeEvent),t=e.nativeEvent,l.current&&!j(t)||(l.current=j(t),0)||(f&&f(C(i.current,e.nativeEvent),e.nativeEvent),c(!0))},[f]));return Object(S.jsx)("div",g()({},e,{className:[r,n||""].filter(Boolean).join(" "),style:g()({},e.style,{touchAction:"none"}),ref:i,tabIndex:0,onMouseDown:o,onTouchStart:o}))}),k=(n.displayName="Interactive",n),R=e=>{var{className:e,color:t,left:r,top:n,style:o,prefixCls:a}=e,o=g()({},o,{position:"absolute",top:n,left:r}),n=a+"-pointer "+(e||"");return Object(S.jsx)("div",{className:n,style:o,children:Object(S.jsx)("div",{className:a+"-fill",style:{width:10,height:10,transform:"translate(-5px, -5px)",boxShadow:"rgb(255 255 255) 0px 0px 0px 1.5px, rgb(0 0 0 / 30%) 0px 0px 1px 1px inset, rgb(0 0 0 / 40%) 0px 0px 1px 2px",borderRadius:"50%",backgroundColor:"#fff"},children:Object(S.jsx)("div",{style:{inset:0,borderRadius:"50%",position:"absolute",backgroundColor:t}})})})},A=2*Math.PI;function P(e){var{width:e=0}=e,t=e/2;return{width:e,radius:t,cx:t,cy:t}}function N(e){var{width:e=0}=e;return e/2}function H(e,t,r){var n=e.angle||0,e=e.direction;return r&&"clockwise"===e?t=n+t:"clockwise"===e?t=360-n+t:r&&"anticlockwise"===e?t=n+180-t:"anticlockwise"===e&&(t=n-t),(t%360+360)%360}function a(e){var t=e.id,r=e.className,n=e.style,o=e.color,a=e.setProps,e=e.loading_state;return Object(b.useEffect)(function(){o||a({color:"#fffc51"})},[]),i.a.createElement(l,{id:t,className:r,style:n,color:o,onChange:function(e){a({color:e.hex})},"data-dash-is-loading":e&&e.is_loading||void 0})}var T=["prefixCls","radius","pointer","className","style","width","height","oval","direction","angle","color","onChange"],n=i.a.forwardRef((e,t)=>{var{prefixCls:r="w-color-wheel",pointer:n,className:o,style:a,width:u=200,height:f=200,oval:i,direction:l="anticlockwise",angle:s=180,color:c,onChange:h}=e,e=v()(e,T),p="string"==typeof c&&_(c)?y(c):c||{},c=c?x(p):"",d=function(e){var{cx:t,cy:r}=P(e),n=N(e),o=(180+H(e,p.h,!0))*(A/360),n=p.s/100*n,e="clockwise"===e.direction?-1:1;return{x:t+n*Math.cos(o)*e,y:r+n*Math.sin(o)*e}}({width:u}),c={top:"0",left:"0",color:c},b=(e,t)=>{var r,n,o,a,i,l,s,c,e=function(e,t,r){var{cx:n,cy:o}=P(e),a=N(e),n=(t=n-t,r=o-r,H(e,Math.atan2(-r,-t)*(360/A))),o=Math.min(Math.sqrt(t*t+r*r),a);return{h:Math.round(n),s:Math.round(100/a*o)}}({width:u},u-e.x,f-e.y),e={h:e.h,s:e.s,v:p.v,a:p.a};h&&h(("string"==typeof(e=e)&&_(e)?(l=y(e),s=e):"string"!=typeof e&&(l=e),l&&(o=(()=>{var{h:e,s:t,v:r}=l;return{h:e,s:t,v:r}})(),i=(e=>{var{h:e,s:t,v:r,a:n}=e,o=(200-t)*r/100;return{h:e,s:0<o&&o<200?t*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:n}})(l),c=(e=>{var{r:e,g:t,b:r,a:n}=e,o="number"==typeof n&&(255*n|256).toString(16).slice(1);return""+m({r:e,g:t,b:r,a:n})+(o||"")})(a=w(l)),s=x(l),n=(()=>{var{h:e,s:t,l:r}=i;return{h:e,s:t,l:r}})(),r=(()=>{var{r:e,g:t,b:r}=a;return{r:e,g:t,b:r}})()),{rgb:r,hsl:n,hsv:o,rgba:a,hsla:i,hsva:l,hex:s,hexa:c}))},d={zIndex:1,transform:"translate("+d.x+"px, "+d.y+"px) "+("x"===i||"X"===i?"scaleY(2)":"y"===i||"Y"===i?"scaleX(2)":"")},n=n&&"function"==typeof n?n(g()({prefixCls:r,style:d},c)):Object(S.jsx)(R,g()({prefixCls:r,style:d},c));return Object(S.jsxs)(k,g()({className:[r,o||""].filter(Boolean).join(" ")},e,{style:g()({position:"relative",width:u,transform:"x"===i||"X"===i?"scaleY(0.5)":"y"===i||"Y"===i?"scaleX(0.5)":"",height:f},a),ref:t,onMove:b,onDown:b,children:[n,Object(S.jsx)("div",{style:{position:"absolute",borderRadius:"50%",background:"anticlockwise"===l?"conic-gradient(red, yellow, lime, aqua, blue, magenta, red)":"conic-gradient(red, magenta, blue, aqua, lime, yellow, red)",transform:"rotateZ("+(s+90)+"deg)",inset:0}}),Object(S.jsx)("div",{style:{position:"absolute",borderRadius:"50%",background:"radial-gradient(circle closest-side, #fff, transparent)",inset:0}}),Object(S.jsx)("div",{style:{backgroundColor:"#000",borderRadius:"50%",position:"absolute",inset:0,opacity:"number"==typeof p.v?1-p.v/100:0}})]}))}),l=(n.displayName="Wheel",n),n=r(184);(t.default=a).defaultProps=n.b,a.propTypes=n.c},532:function(e,t,r){"use strict";r.r(t);function n(e){var t=e.color,r=e.onClick,n=e.onSwatchHover,o=e.hover,a=e.active,i=e.circleSize,e=e.circleSpacing,e=h()({default:{swatch:{width:i,height:i,marginRight:e,marginBottom:e,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+(i/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:o,active:a});return f.a.createElement("div",{style:e.swatch},f.a.createElement(s.d,{style:e.Swatch,color:t,onClick:r,onHover:n,focusStyle:{boxShadow:e.Swatch.boxShadow+", 0 0 5px "+t}}))}function o(e){function t(e,t){return n({hex:e,source:"hex"},t)}var r=e.width,n=e.onChange,o=e.onSwatchHover,a=e.colors,i=e.hex,l=e.circleSize,s=void 0===(s=e.styles)?{}:s,c=e.circleSpacing,e=void 0===(e=e.className)?"":e,r=h()(Object(d.a)({default:{card:{width:r,display:"flex",flexWrap:"wrap",marginRight:-c,marginBottom:-c}}},s));return f.a.createElement("div",{style:r.card,className:"circle-picker "+e},Object(p.a)(a,function(e){return f.a.createElement(b,{key:e,color:e,onClick:t,onSwatchHover:o,active:i===e.toLowerCase(),circleSize:l,circleSpacing:c})}))}function a(e){var t=e.id,r=e.className,n=e.style,o=e.width,a=e.circleSize,i=e.circleSpacing,l=e.color,s=e.colors,c=e.setProps,e=e.loading_state;return Object(u.useEffect)(function(){s&&!l&&c({color:s[0]})},[]),f.a.createElement(g,{id:t,className:r,style:n,width:o,circleSize:a,circleSpacing:i,color:l,colors:s,onChangeComplete:function(e,t){return c({color:e.hex})},"data-dash-is-loading":e&&e.is_loading||void 0})}var u=r(1),f=r.n(u),i=r(0),i=r.n(i),l=r(550),h=r.n(l),p=r(575),d=r(566),s=r(556),b=(n.defaultProps={circleSize:28,circleSpacing:14},Object(l.handleHover)(n)),g=(o.propTypes={width:i.a.oneOfType([i.a.string,i.a.number]),circleSize:i.a.number,circleSpacing:i.a.number,styles:i.a.object},o.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4caf50","#8bc34a","#cddc39","#ffeb3b","#ffc107","#ff9800","#ff5722","#795548","#607d8b"],styles:{}},Object(s.b)(o)),l=r(183);(t.default=a).defaultProps=l.b,a.propTypes=l.c},533:function(e,t,r){"use strict";r.r(t);function n(e){function t(e,t){return o({hex:e,source:"hex"},t)}var r=e.width,n=e.colors,o=e.onChange,a=e.onSwatchHover,i=e.triangle,l=void 0===(l=e.styles)?{}:l,e=void 0===(e=e.className)?"":e,r=u()(Object(h.a)({default:{card:{width:r,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)"}}},l),{"hide-triangle":"hide"===i,"top-left-triangle":"top-left"===i,"top-right-triangle":"top-right"===i,"bottom-left-triangle":"bottom-left"===i,"bottom-right-triangle":"bottom-right"===i});return c.a.createElement("div",{style:r.card,className:"github-picker "+e},c.a.createElement("div",{style:r.triangleShadow}),c.a.createElement("div",{style:r.triangle}),Object(f.a)(n,function(e){return c.a.createElement(p,{color:e,key:e,onClick:t,onSwatchHover:a})}))}function o(e){var t=e.id,r=e.className,n=e.style,o=e.color,a=e.colors,i=e.triangle,l=e.setProps,e=e.loading_state;return Object(s.useEffect)(function(){a&&!o&&l({color:a[0]})},[]),c.a.createElement(d,{id:t,className:r,style:n,color:o,colors:a,triangle:i,onChangeComplete:function(e,t){return l({color:e.hex})},"data-dash-is-loading":e&&e.is_loading||void 0})}var s=r(1),c=r.n(s),a=r(0),a=r.n(a),i=r(550),u=r.n(i),f=r(575),h=r(566),l=r(556),p=Object(i.handleHover)(function(e){var t=e.hover,r=e.color,n=e.onClick,e=e.onSwatchHover,o={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},t=u()({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:o}},{hover:t});return c.a.createElement("div",{style:t.swatch},c.a.createElement(l.d,{color:r,onClick:n,onHover:e,focusStyle:o}))}),d=(n.propTypes={width:a.a.oneOfType([a.a.string,a.a.number]),colors:a.a.arrayOf(a.a.string),triangle:a.a.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:a.a.object},n.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}},Object(l.b)(n)),i=r(180);(t.default=o).defaultProps=i.b,o.propTypes=i.c},534:function(e,t,r){"use strict";r.r(t);function u(e){var t=e.colors,r=e.onClick,n=e.onSwatchHover,o=h()({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return f.a.createElement("div",{style:o.swatches},Object(l.a)(t,function(e){return f.a.createElement(b.d,{key:e,color:e,style:o.swatch,onClick:r,onHover:n,focusStyle:{boxShadow:"0 0 4px "+e}})}),f.a.createElement("div",{style:o.clear}))}function n(e){function t(e,t){d.b(e)&&r({hex:e,source:"hex"},t)}var r=e.onChange,n=e.onSwatchHover,o=e.hex,a=e.colors,i=e.width,l=e.triangle,s=void 0===(s=e.styles)?{}:s,e=void 0===(e=e.className)?"":e,c="transparent"===o,i=h()(Object(p.a)({default:{card:{width:i,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:o,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:d.a(o),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+o+" transparent",position:"absolute",top:"-10px",left:"50%",marginLeft:"-10px"},input:{width:"100%",fontSize:"12px",color:"#666",border:"0px",outline:"none",height:"22px",boxShadow:"inset 0 0 0 1px #ddd",borderRadius:"4px",padding:"0 7px",boxSizing:"border-box"}},"hide-triangle":{triangle:{display:"none"}}},s),{"hide-triangle":"hide"===l});return f.a.createElement("div",{style:i.card,className:"block-picker "+e},f.a.createElement("div",{style:i.triangle}),f.a.createElement("div",{style:i.head},c&&f.a.createElement(b.a,{borderRadius:"6px 6px 0 0"}),f.a.createElement("div",{style:i.label},o)),f.a.createElement("div",{style:i.body},f.a.createElement(u,{colors:a,onClick:t,onSwatchHover:n}),f.a.createElement(b.c,{style:{input:i.input},value:o,onChange:t})))}function o(e){var t=e.id,r=e.className,n=e.style,o=e.width,a=e.color,i=e.colors,l=e.triangle,s=e.setProps,e=e.loading_state;return Object(c.useEffect)(function(){i&&!a&&s({color:i[0]})},[]),f.a.createElement(g,{id:t,className:r,style:n,color:a,colors:i,width:o,triangle:l,onChangeComplete:function(e,t){return s({color:e.hex})},"data-dash-is-loading":e&&e.is_loading||void 0})}var c=r(1),f=r.n(c),a=r(0),a=r.n(a),i=r(550),h=r.n(i),p=r(566),d=r(595),b=r(556),l=r(575),g=(n.propTypes={width:a.a.oneOfType([a.a.string,a.a.number]),colors:a.a.arrayOf(a.a.string),triangle:a.a.oneOf(["top","hide"]),styles:a.a.object},n.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}},Object(b.b)(n)),i=r(182);(t.default=o).defaultProps=i.b,o.propTypes=i.c},537:function(e,t,r){"use strict";r.r(t);function n(e){function r(e,t){d.b(e)&&n({hex:e,source:"hex"},t)}var n=e.onChange,o=e.onSwatchHover,t=e.hex,a=e.colors,i=e.width,l=e.triangle,s=void 0===(s=e.styles)?{}:s,e=void 0===(e=e.className)?"":e,c=f()(Object(p.a)({default:{card:{width:i,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},s),{"hide-triangle":"hide"===l,"top-left-triangle":"top-left"===l,"top-right-triangle":"top-right"===l});return u.a.createElement("div",{style:c.card,className:"twitter-picker "+e},u.a.createElement("div",{style:c.triangleShadow}),u.a.createElement("div",{style:c.triangle}),u.a.createElement("div",{style:c.body},Object(h.a)(a,function(e,t){return u.a.createElement(b.d,{key:t,color:e,hex:e,style:c.swatch,onClick:r,onHover:o,focusStyle:{boxShadow:"0 0 4px "+e}})}),u.a.createElement("div",{style:c.hash},"#"),u.a.createElement(b.c,{label:null,style:{input:c.input},value:t.replace("#",""),onChange:r}),u.a.createElement("div",{style:c.clear})))}function o(e){var t=e.id,r=e.className,n=e.style,o=e.width,a=e.color,i=e.colors,l=e.triangle,s=e.setProps,e=e.loading_state;return Object(c.useEffect)(function(){i&&!a&&s({color:i[0]})},[]),u.a.createElement(g,{id:t,className:r,style:n,color:a,colors:i,width:o,triangle:l,onChangeComplete:function(e,t){return s({color:e.hex})},"data-dash-is-loading":e&&e.is_loading||void 0})}var c=r(1),u=r.n(c),a=r(0),a=r.n(a),i=r(550),f=r.n(i),h=r(575),p=r(566),d=r(595),b=r(556),g=(n.propTypes={width:a.a.oneOfType([a.a.string,a.a.number]),triangle:a.a.oneOf(["hide","top-left","top-right"]),colors:a.a.arrayOf(a.a.string),styles:a.a.object},n.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}},Object(b.b)(n)),i=r(181);(t.default=o).defaultProps=i.b,o.propTypes=i.c},538:function(e,t,r){"use strict";r.r(t);var c=r(1);const o=()=>"undefined"!=typeof window&&"EyeDropper"in window,n=()=>Promise.reject(new Error("Unsupported browser."));function a(e){var t=e.id,r=e.enable,n=e.setProps,e=e.loading_state,o=s(),a=o.open,i=o.close,l=o.isSupported;return Object(c.useEffect)(function(){l()&&(r?a().then(function(e){n({color:e.sRGBHex,enable:!1})}).catch(function(e){return n({enable:!1})}):i())},[r]),React.createElement("div",{id:t,"data-dash-is-loading":e&&e.is_loading||void 0})}var s=t=>{const a=Object(c.useMemo)(()=>{return e=t,(e=o()&&new EyeDropper(e))?EyeDropper.prototype.open.bind(e):n;var e},[t]),[i,e]=(()=>{const e=Object(c.useRef)(),[t,r]=Object(c.useState)(!1);Object(c.useEffect)(()=>(e.current=!0,r(o()),()=>{e.current=!1}),[]);var n=Object(c.useCallback)(()=>t,[t]);return[e,n]})(),l=Object(c.useRef)(),s=Object(c.useCallback)(()=>{void 0!==l.current&&l.current.abort()},[l]),r=Object(c.useCallback)(async function(e){void 0===e&&(e={}),s();const{signal:t,...r}=e,n=new AbortController;l.current=n;var o=void 0!==t?(e=>{const t=new AbortController,r=()=>{t.abort();for(const t of e)t.removeEventListener("abort",r)};for(const t of e){if(t.aborted){r();break}t.addEventListener("abort",r)}return t.signal})([t,n.signal]):n.signal;try{return await a({...r,signal:o})}catch(e){throw i.current||(e.canceled=!0),e}},[l,i,s,a]);return Object(c.useEffect)(()=>s,[s]),{open:r,close:s,isSupported:e}},r=r(192);(t.default=a).defaultProps=r.b,a.propTypes=r.c},550:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReactCSS=t.loop=t.handleActive=t.handleHover=t.hover=void 0;var a=s(r(665)),i=s(r(691)),l=s(r(693)),n=s(r(694)),o=s(r(695)),r=s(r(696));function s(e){return e&&e.__esModule?e:{default:e}}t.hover=n.default,t.handleHover=n.default,t.handleActive=o.default,t.loop=r.default;n=t.ReactCSS=function(e){for(var t=arguments.length,r=Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=(0,a.default)(r),e=(0,i.default)(e,o);return(0,l.default)(e)};t.default=n},556:function(D,e,t){"use strict";function r(e){var t=e.white,r=e.grey,n=e.size,o=e.renderers,a=e.borderRadius,i=e.boxShadow,e=e.children,i=u()({default:{grid:{borderRadius:a,boxShadow:i,absolute:"0px 0px 0px 0px",background:"url("+(a=t,i=r,t=n,r=o.canvas,s[n=a+"-"+i+"-"+t+(r?"-server":"")]||(a=a,i=i,t=t,a=("undefined"!=typeof document||r)&&((r=r?new r:document.createElement("canvas")).width=2*t,r.height=2*t,o=r.getContext("2d"))?(o.fillStyle=a,o.fillRect(0,0,r.width,r.height),o.fillStyle=i,o.fillRect(0,0,t,t),o.translate(t,t),o.fillRect(0,0,t,t),r.toDataURL()):null,s[n]=a))+") center left"}}});return Object(l.isValidElement)(e)?c.a.cloneElement(e,f({},e.props,{style:f({},e.props.style,i.grid)})):c.a.createElement("div",{style:i.grid})}var l=t(1),c=t.n(l),n=t(550),u=t.n(n),s={},f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h=(r.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}},r),o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n=function(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),e};function a(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)}}function i(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}var p=l.PureComponent||l.Component;function d(){var r,e=this,t=d;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,o=Array(n),a=0;a<n;a++)o[a]=arguments[a];return t=r=i(this,(e=d.__proto__||Object.getPrototypeOf(d)).call.apply(e,[this].concat(o))),r.handleChange=function(e){var t=function(e,t,r,n,o){var a=o.clientWidth,i=o.clientHeight,l=("number"==typeof e.pageX?e:e.touches[0]).pageX,e=("number"==typeof e.pageY?e:e.touches[0]).pageY,l=l-(o.getBoundingClientRect().left+window.pageXOffset),e=e-(o.getBoundingClientRect().top+window.pageYOffset);if("vertical"===r){o=e<0?0:i<e?1:Math.round(100*e/i)/100;if(t.a!==o)return{h:t.h,s:t.s,l:t.l,a:o,source:"rgb"}}else if(n!==(r=l<0?0:a<l?1:Math.round(100*l/a)/100))return{h:t.h,s:t.s,l:t.l,a:r,source:"rgb"};return null}(e,r.props.hsl,r.props.direction,r.props.a,r.container);t&&"function"==typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleChange),window.removeEventListener("mouseup",r.handleMouseUp)},i(r,t)}var b=d;if("function"!=typeof p&&null!==p)throw new TypeError("Super expression must either be null or a function, not "+typeof p);b.prototype=Object.create(p&&p.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(b,p):b.__proto__=p),n(d,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var t=this,e=this.props.rgb,e=u()({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("+e.r+","+e.g+","+e.b+", 0) 0%,\n rgba("+e.r+","+e.g+","+e.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:100*e.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("+e.r+","+e.g+","+e.b+", 0) 0%,\n rgba("+e.r+","+e.g+","+e.b+", 1) 100%)"},pointer:{left:0,top:100*e.a+"%"}},overwrite:o({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return c.a.createElement("div",{style:e.alpha},c.a.createElement("div",{style:e.checkboard},c.a.createElement(h,{renderers:this.props.renderers})),c.a.createElement("div",{style:e.gradient}),c.a.createElement("div",{style:e.container,ref:function(e){return t.container=e},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},c.a.createElement("div",{style:e.pointer},this.props.pointer?c.a.createElement(this.props.pointer,this.props):c.a.createElement("div",{style:e.slider}))))}}]);var g=function(e,t,r){return t&&v(e.prototype,t),r&&v(e,r),e};function v(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)}}var m=[38,40],y=1,w=function(e){function t(e){var n;if(this instanceof t)return(n=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this))).handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(e){n.setUpdatedValue(e.target.value,e)},n.handleKeyDown=function(e){r=e.target.value;var t,r=Number(String(r).replace(/%/g,""));!isNaN(r)&&(t=e.keyCode,-1<m.indexOf(t))&&(t=n.getArrowOffset(),r=38===e.keyCode?r+t:r-t,n.setUpdatedValue(r,e))},n.handleDrag=function(e){var t;n.props.dragLabel&&0<=(t=Math.round(n.props.value+e.movementX))&&t<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(t),e)},n.handleMouseDown=function(e){n.props.dragLabel&&(e.preventDefault(),n.handleDrag(e),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},n.inputId="rc-editable-input-"+y++,n;throw new TypeError("Cannot call a class as a function")}var r=t;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);return r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e),g(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 t={},r=this.props.label,e=e,r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t;var t,r}},{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 t=this,e=u()({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 c.a.createElement("div",{style:e.wrap},c.a.createElement("input",{id:this.inputId,style:e.input,ref:function(e){return t.input=e},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?c.a.createElement("label",{htmlFor:this.inputId,style:e.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(l.PureComponent||l.Component),b=function(e,t,r){return t&&x(e.prototype,t),r&&x(e,r),e};function x(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)}}function _(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}p=l.PureComponent||l.Component;function O(){var r,e=this,t=O;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,o=Array(n),a=0;a<n;a++)o[a]=arguments[a];return t=r=_(this,(e=O.__proto__||Object.getPrototypeOf(O)).call.apply(e,[this].concat(o))),r.handleChange=function(e){var t=function(e,t,r,n){var o=n.clientWidth,a=n.clientHeight,i=("number"==typeof e.pageX?e:e.touches[0]).pageX,e=("number"==typeof e.pageY?e:e.touches[0]).pageY,i=i-(n.getBoundingClientRect().left+window.pageXOffset),e=e-(n.getBoundingClientRect().top+window.pageYOffset);if("vertical"===t){n=void 0,n=e<0?359:a<e?0:360*(-100*e/a+100)/100;if(r.h!==n)return{h:n,s:r.s,l:r.l,a:r.a,source:"hsl"}}else{t=void 0,t=i<0?0:o<i?359:100*i/o*360/100;if(r.h!==t)return{h:t,s:r.s,l:r.l,a:r.a,source:"hsl"}}return null}(e,r.props.direction,r.props.hsl,r.container);t&&"function"==typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},_(r,t)}n=O;if("function"!=typeof p&&null!==p)throw new TypeError("Super expression must either be null or a function, not "+typeof p);n.prototype=Object.create(p&&p.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(n,p):n.__proto__=p),b(O,[{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 t=this,e=this.props.direction,e=void 0===e?"horizontal":e,r=u()({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"===e});return c.a.createElement("div",{style:r.hue},c.a.createElement("div",{className:"hue-"+e,style:r.container,ref:function(e){return t.container=e},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},c.a.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 "),c.a.createElement("div",{style:r.pointer},this.props.pointer?c.a.createElement(this.props.pointer,this.props):c.a.createElement("div",{style:r.slider}))))}}]);var n=t(0),p=t.n(n),j=(t(566),p.a.string,p.a.oneOf([0,1,2,3,4,5]),p.a.number,p.a.object,t(499)),b=function(e,t,r){return t&&E(e.prototype,t),r&&E(e,r),e};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)}}n=l.PureComponent||l.Component;function C(e){var l;if(this instanceof C)return(l=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,e))).handleChange=function(e){var t,r,n,o,a,i;"function"==typeof l.props.onChange&&l.throttle(l.props.onChange,(t=e,r=l.props.hsl,n=l.container,o=n.getBoundingClientRect(),a=o.width,o=o.height,i=("number"==typeof t.pageX?t:t.touches[0]).pageX,t=("number"==typeof t.pageY?t:t.touches[0]).pageY,i-=n.getBoundingClientRect().left+window.pageXOffset,t-=n.getBoundingClientRect().top+window.pageYOffset,i<0?i=0:a<i&&(i=a),t<0?t=0:o<t&&(t=o),{h:r.h,s:i/a,v:1-t/o,a:r.a,source:"hsv"}),e)},l.handleMouseDown=function(e){l.handleChange(e);e=l.getContainerRenderWindow();e.addEventListener("mousemove",l.handleChange),e.addEventListener("mouseup",l.handleMouseUp)},l.handleMouseUp=function(){l.unbindEventListeners()},l.throttle=Object(j.a)(function(e,t,r){e(t,r)},50),l;throw new TypeError("Cannot call a class as a function")}p=C;if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);p.prototype=Object.create(n&&n.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(p,n):p.__proto__=n),b(C,[{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 t=this,e=this.props.style||{},r=e.color,n=e.white,o=e.black,a=e.pointer,e=e.circle,r=u()({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:n,black:o,pointer:a,circle:e}},{custom:!!this.props.style});return c.a.createElement("div",{style:r.color,ref:function(e){return t.container=e},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},c.a.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 "),c.a.createElement("div",{style:r.white,className:"saturation-white"},c.a.createElement("div",{style:r.black,className:"saturation-black"}),c.a.createElement("div",{style:r.pointer},this.props.pointer?c.a.createElement(this.props.pointer,this.props):c.a.createElement("div",{style:r.circle}))))}}]);var S=t(292),M=t(595),k=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},R=function(e,t,r){return t&&A(e.prototype,t),r&&A(e,r),e};function A(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)}}function P(n){var e=function(e){function t(e){var r;if(this instanceof t)return(r=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this))).handleChange=function(e,t){M.c(e)&&(e=M.d(e,e.h||r.state.oldHue),r.setState(e),r.props.onChangeComplete&&r.debounce(r.props.onChangeComplete,e,t),r.props.onChange)&&r.props.onChange(e,t)},r.handleSwatchHover=function(e,t){M.c(e)&&(e=M.d(e,e.h||r.state.oldHue),r.props.onSwatchHover)&&r.props.onSwatchHover(e,t)},r.state=k({},M.d(e.color,0)),r.debounce=Object(S.a)(function(e,t,r){e(t,r)},100),r;throw new TypeError("Cannot call a class as a function")}var r=t;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);return r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e),R(t,[{key:"render",value:function(){var e={};return this.props.onSwatchHover&&(e.onSwatchHover=this.handleSwatchHover),c.a.createElement(n,k({},this.props,this.state,{onChange:this.handleChange},e))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return k({},M.d(e.color,t.oldHue))}}]),t}(l.PureComponent||l.Component);return e.propTypes=k({},n.propTypes),e.defaultProps=k({},n.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),e}var F=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},L=function(e,t,r){return t&&N(e.prototype,t),r&&N(e,r),e};function N(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)}}function H(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}var T=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},B=function(e,t){var r=1<arguments.length&&void 0!==t?t:"span",t=c.a.Component;function i(){var e,t=this,r=i;if(!(t instanceof r))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,o=Array(n),a=0;a<n;a++)o[a]=arguments[a];return r=e=H(this,(t=i.__proto__||Object.getPrototypeOf(i)).call.apply(t,[this].concat(o))),e.state={focus:!1},e.handleFocus=function(){return e.setState({focus:!0})},e.handleBlur=function(){return e.setState({focus:!1})},H(e,r)}var n=i;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);return n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t),L(i,[{key:"render",value:function(){return c.a.createElement(r,{onFocus:this.handleFocus,onBlur:this.handleBlur},c.a.createElement(e,F({},this.props,this.state)))}}]),i}(function(e){var t=e.color,r=e.style,n=e.onClick,o=void 0===n?function(){}:n,a=e.onHover,n=e.title,n=void 0===n?t:n,i=e.children,l=e.focus,e=e.focusStyle,e=void 0===e?{}:e,s="transparent"===t,r=u()({default:{swatch:T({background:t,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},r,l?e:{})}}),l={};return a&&(l.onMouseOver=function(e){return a(t,e)}),c.a.createElement("div",T({style:r.swatch,onClick:function(e){return o(t,e)},title:n,tabIndex:0,onKeyDown:function(e){return 13===e.keyCode&&o(t,e)}},l),i,s&&c.a.createElement(h,{borderRadius:r.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))});t.d(e,"a",function(){return h}),t.d(e,"c",function(){return w}),t.d(e,"b",function(){return P}),t.d(e,"d",function(){return B})},566:function(D,e,t){"use strict";var w=t(120),r=t(32),n=function(){try{var e=Object(r.a)(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),f=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r},h=t(94),x=function(e,t,r){(void 0===r||Object(h.a)(e[t],r))&&(void 0!==r||t in e)||f(e,t,r)},o=t(652),_=t(697),a=t(165),O=function(e,t){var r,t=t?(t=e.buffer,r=new t.constructor(t.byteLength),new a.a(r).set(new a.a(t)),r):e.buffer;return new e.constructor(t,e.byteOffset,e.length)},j=function(e,t){var r=-1,n=e.length;for(t=t||Array(n);++r<n;)t[r]=e[r];return t},E=t(35),i=Object.create,l=function(e){if(!Object(E.a)(e))return{};if(i)return i(e);p.prototype=e;e=new p;return p.prototype=void 0,e},s=t(284),c=Object(s.a)(Object.getPrototypeOf,Object),u=t(191);function p(){}function d(e,t,r,n){var o=!r;r=r||{};for(var a,i,l=-1,s=t.length;++l<s;){var c=t[l],u=n?n(r[c],e[c],c,r,e):void 0;void 0===u&&(u=e[c]),o?f(r,c,u):(u=u,i=void 0,i=(a=r)[c=c],V.call(a,c)&&Object(h.a)(i,u)&&(void 0!==u||c in a)||f(a,c,u))}return r}function C(e){return Object(y.a)(e)?Object($.a)(e,!0):J(e)}function S(b,g,v,m,y){b!==g&&Object(o.a)(g,function(e,t){var r,n,o,a,i,l,s,c,u,f,h,p,d;y=y||new w.a,Object(E.a)(e)?(n=g,a=v,i=S,l=m,s=y,h=N(r=b,o=t),p=N(n,o),(d=s.get(p))?x(r,o,d):((n=void 0===(d=l?l(h,p,o+"",r,n,s):void 0))&&(u=!(c=Object(k.a)(p))&&Object(z.a)(p),f=!c&&!u&&Object(q.a)(p),d=p,c||u||f?d=Object(k.a)(h)?h:B(h)?j(h):u?(n=!1,Object(_.a)(p,!0)):f?O(p,!(n=!1)):[]:Y(p)||Object(M.a)(p)?(d=h,Object(M.a)(h)?d=G(h):Object(E.a)(h)&&!Object(U.a)(h)||(d=L(p))):n=!1),n&&(s.set(p,d),i(d,p,a,l,s),s.delete(p)),x(r,o,d))):(c=m?m(N(b,t),e,t+"",b,g,y):void 0,x(b,t,c=void 0===c?e:c))},C)}function F(e,t){return ee((a=e,i=t,l=H.a,i=T(void 0===i?a.length-1:i,0),function(){for(var e=arguments,t=-1,r=T(e.length-i,0),n=Array(r);++t<r;)n[t]=e[i+t];for(var t=-1,o=Array(i+1);++t<i;)o[t]=e[t];return o[i]=l(n),Z(a,this,o)}),e+"");var a,i,l}var b,g,v,m,L=function(e){return"function"!=typeof e.constructor||Object(u.a)(e)?{}:l(c(e))},M=t(232),k=t(52),y=t(171),R=t(36),B=function(e){return Object(R.a)(e)&&Object(y.a)(e)},z=t(83),U=t(117),I=t(37),s=Function.prototype,A=Object.prototype,P=s.toString,W=A.hasOwnProperty,X=P.call(Object),Y=function(e){return!(!Object(R.a)(e)||"[object Object]"!=Object(I.a)(e))&&(null===(e=c(e))||"function"==typeof(e=W.call(e,"constructor")&&e.constructor)&&e instanceof e&&P.call(e)==X)},q=t(121),N=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},V=Object.prototype.hasOwnProperty,$=t(293),K=Object.prototype.hasOwnProperty,J=function(e){if(Object(E.a)(e)){var t,r=Object(u.a)(e),n=[];for(t in e)("constructor"!=t||!r&&K.call(e,t))&&n.push(t);return n}var o=e,a=[];if(null!=o)for(var i in Object(o))a.push(i);return a},G=function(e){return d(e,C(e))},H=t(568),Z=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)},T=Math.max,s=n?function(e,t){return n(e,"toString",{configurable:!0,enumerable:!1,value:(r=t,function(){return r}),writable:!0});var r}:H.a,Q=Date.now,ee=(b=s,v=g=0,function(){var e=Q(),t=16-(e-v);if(v=e,0<t){if(800<=++g)return arguments[0]}else g=0;return b.apply(void 0,arguments)}),te=t(190),A=(m=function(e,t,r){S(e,t,r)},F(function(e,t){var r,n,o,a=-1,i=t.length,l=1<i?t[i-1]:void 0,s=2<i?t[2]:void 0,l=3<m.length&&"function"==typeof l?(i--,l):void 0;for((s&&(r=t[0],n=t[1],s=s,!!Object(E.a)(s))&&!!("number"==(o=typeof n)?Object(y.a)(s)&&Object(te.a)(n,s.length):"string"==o&&n in s)&&Object(h.a)(s[n],r)&&(l=i<3?void 0:l,i=1),e=Object(e));++a<i;){var c=t[a];c&&m(e,c,a)}return e}));e.a=A},567:function(e,t,r){var n=r(316);e.exports=function(e){var t;return"string"==typeof e||n(e)?e:"0"==(t=e+"")&&1/e==-1/0?"-0":t}},568:function(e,t,r){"use strict";t.a=function(e){return e}},569:function(e,t,r){"use strict";e.exports=r(699)},575:function(D,e,t){"use strict";var r=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},p=t(120),d=t(230),a=function(e,t,r,n){var o=r.length,a=o,i=!n;if(null==e)return!a;for(e=Object(e);o--;){var l=r[o];if(i&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<a;){var s=(l=r[o])[0],c=e[s],u=l[1];if(i&&l[2]){if(void 0===c&&!(s in e))return!1}else{var f,h=new p.a;if(!(void 0===(f=n?n(c,u,s,e,t,h):f)?Object(d.a)(u,c,3,n,h):f))return!1}}return!0},n=t(35),i=function(e){return e==e&&!Object(n.a)(e)},l=t(231),s=function(e){for(var t=Object(l.a)(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,i(o)]}return t},c=function(t,r){return function(e){return null!=e&&e[t]===r&&(void 0!==r||t in Object(e))}},u=t(52),o=t(172),f=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,h=/^\w*$/,b=function(e,t){var r;return!Object(u.a)(e)&&(!("number"!=(r=typeof e)&&"symbol"!=r&&"boolean"!=r&&null!=e&&!Object(o.a)(e))||h.test(e)||!f.test(e)||null!=t&&e in Object(t))},g=t(119);function v(n,o){if("function"!=typeof n||null!=o&&"function"!=typeof o)throw new TypeError("Expected a function");function a(){var e=arguments,t=o?o.apply(this,e):e[0],r=a.cache;return r.has(t)?r.get(t):(e=n.apply(this,e),a.cache=r.set(t,e)||r,e)}return a.cache=new(v.Cache||g.a),a}v.Cache=g.a;function m(e){var t;return"string"==typeof e?e:Object(u.a)(e)?r(e,m)+"":Object(o.a)(e)?M?M.call(e):"":"0"==(t=e+"")&&1/e==-1/0?"-0":t}function y(e,t){return Object(u.a)(e)?e:b(e,t)?[e]:C(null==(t=e)?"":m(t))}function w(e,t){for(var r=0,n=(t=y(t,e)).length;null!=e&&r<n;)e=e[k(t[r++])];return r&&r==n?e:void 0}function x(e,t){return null!=e&&t in Object(e)}function _(e){return"function"==typeof e?e:null==e?T.a:"object"==typeof e?Object(u.a)(e)?(n=e[0],o=e[1],b(n)&&i(o)?c(k(n),o):function(e){var t=R(e,n);return void 0===t&&t===o?H(e,n):Object(d.a)(o,t,3)}):1==(r=s(t=e)).length&&r[0][2]?c(r[0][0],r[0][1]):function(e){return e===t||a(e,t,r)}:b(e=e)?F(k(e)):L(e);var t,r,n,o}var O,j=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,E=/\\(\\)?/g,C=(O=(S=v(function(e){var o=[];return 46===e.charCodeAt(0)&&o.push(""),e.replace(j,function(e,t,r,n){o.push(r?n.replace(E,"$1"):t||e)}),o},function(e){return 500===O.size&&O.clear(),e})).cache,S),S=t(44),S=S.a?S.a.prototype:void 0,M=S?S.toString:void 0,k=function(e){var t;return"string"==typeof e||Object(o.a)(e)?e:"0"==(t=e+"")&&1/e==-1/0?"-0":t},R=function(e,t,r){e=null==e?void 0:w(e,t);return void 0===e?r:e},A=t(232),P=t(190),N=t(118),H=function(e,t){return null!=e&&function(e,t,r){for(var n=-1,o=(t=y(t,e)).length,a=!1;++n<o;){var i=k(t[n]);if(!(a=null!=e&&r(e,i)))break;e=e[i]}return a||++n!=o?a:!!(o=null==e?0:e.length)&&Object(N.a)(o)&&Object(P.a)(i,o)&&(Object(u.a)(e)||Object(A.a)(e))}(e,t,x)},T=t(568),F=function(t){return function(e){return null==e?void 0:e[t]}},L=function(t){return function(e){return w(e,t)}},B=t(651),z=t(171);e.a=function(e,t){return(Object(u.a)(e)?r:function(e,n){var o=-1,a=Object(z.a)(e)?Array(e.length):[];return Object(B.a)(e,function(e,t,r){a[++o]=n(e,t,r)}),a})(e,_(t))}},577:function(e,t,r){var n=r(600),o=r(669);e.exports=function(e,t){return e&&n(e,o(t))}},578:function(e,t,r){var n=r(89),o=r(316),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;e.exports=function(e,t){var r;return!n(e)&&(!("number"!=(r=typeof e)&&"symbol"!=r&&"boolean"!=r&&null!=e&&!o(e))||i.test(e)||!a.test(e)||null!=t&&e in Object(t))}},595:function(e,t,r){"use strict";var a=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e},i=r(651),n=r(568),l=function(e){return"function"==typeof e?e:n.a},s=r(52),o=r(698),c=r.n(o),u=(r.d(t,"c",function(){return u}),r.d(t,"d",function(){return f}),r.d(t,"b",function(){return h}),r.d(t,"a",function(){return p}),function(t){var e,r,n=0,o=0;return e=["r","g","b","a","h","s","l","v"],r=function(e){!t[e]||(n+=1,isNaN(t[e])||(o+=1),"s"!==e&&"l"!==e)||/^\d+%$/.test(t[e])&&(o+=1)},(Object(s.a)(e)?a:i.a)(e,l(r)),n===o&&t}),f=function(e,t){var r=e.hex?c()(e.hex):c()(e),n=r.toHsl(),o=r.toHsv(),a=r.toRgb(),r=r.toHex();return 0===n.s&&(n.h=t||0,o.h=t||0),{hsl:n,hex:"000000"===r&&0===a.a?"transparent":"#"+r,rgb:a,hsv:o,oldHue:e.h||t||n.h,source:e.source}},h=function(e){var t;return"transparent"===e||(t="#"===String(e).charAt(0)?1:0,e.length!==4+t&&e.length<7+t&&c()(e).isValid())},p=function(e){return e?"transparent"===(e=f(e)).hex?"rgba(0,0,0,0.4)":128<=(299*e.rgb.r+587*e.rgb.g+114*e.rgb.b)/1e3?"#000":"#fff":"#fff"}},599:function(D,e,o){"use strict";o.d(e,"a",function(){return I}),o.d(e,"b",function(){return B}),o.d(e,"c",function(){return q}),o.d(e,"d",function(){return X});var f=o(1),h=o.n(f);function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function d(e,t){if(null==e)return{};for(var r,n={},o=Object.keys(e),a=0;a<o.length;a++)0<=t.indexOf(r=o[a])||(n[r]=e[r]);return n}function b(e){var t=Object(f.useRef)(e),r=Object(f.useRef)(function(e){t.current&&t.current(e)});return t.current=e,r.current}function a(e,t,r){return void 0===t&&(t=0),(r=void 0===r?1:r)<e?r:e<t?t:e}function g(e){return"touches"in e}function v(e){return e&&e.ownerDocument.defaultView||self}function m(e,t,r){var n=e.getBoundingClientRect(),r=g(t)?function(e,t){for(var r=0;r<e.length;r++)if(e[r].identifier===t)return e[r];return e[0]}(t.touches,r):t;return{left:a((r.pageX-(n.left+v(e).pageXOffset))/n.width),top:a((r.pageY-(n.top+v(e).pageYOffset))/n.height)}}function y(e){g(e)||e.preventDefault()}function i(e){var t=e.color,r=e.left,n=void 0===(n=e.top)?.5:n,e=j(["react-colorful__pointer",e.className]);return h.a.createElement("div",{className:e,style:{top:100*n+"%",left:100*r+"%"}},h.a.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))}function t(e){return M(C(e))}function r(e){return e=c(e),t=e.r,r=e.g,n=e.b,e=(e=e.a)<1?S(E(255*e)):"","#"+S(t)+S(r)+S(n)+e;var t,r,n}function n(e){var t=e.s,r=e.v,n=e.a,o=(200-t)*r/100;return{h:E(e.h),s:E(0<o&&o<200?t*r/100/(o<=100?o:200-o)*100:0),l:E(o/2),a:E(n,2)}}function l(e){return"hsl("+(e=n(e)).h+", "+e.s+"%, "+e.l+"%)"}function s(e){return"hsla("+(e=n(e)).h+", "+e.s+"%, "+e.l+"%, "+e.a+")"}function c(e){var t=e.h,r=e.s,n=e.v,e=e.a,t=t/360*6,o=(r/=100,n/=100,Math.floor(t)),a=n*(1-r),i=n*(1-(t-o)*r);return{r:E(255*[n,i,a,a,t=n*(1-(1-t+o)*r),n][r=o%6]),g:E(255*[t,n,n,i,a,a][r]),b:E(255*[a,a,t,n,n,i][r]),a:E(e,2)}}function u(e){return(e=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e))?M({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:void 0===e[7]?1:Number(e[7])/(e[8]?100:1)}):{h:0,s:0,v:0,a:1}}function w(e,t){if(e!==t)for(var r in e)if(e[r]!==t[r])return!1;return!0}function x(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")}function _(e,t){return e.toLowerCase()===t.toLowerCase()||w(C(e),C(t))}var O=h.a.memo(function(e){var t=e.onMove,r=e.onKey,e=d(e,["onMove","onKey"]),i=Object(f.useRef)(null),l=b(t),s=b(r),c=Object(f.useRef)(null),u=Object(f.useRef)(!1),t=Object(f.useMemo)(function(){function n(e){y(e),(g(e)?0<e.touches.length:0<e.buttons)&&i.current?l(m(i.current,e,c.current)):a(!1)}function o(){return a(!1)}function a(e){var t=u.current,r=v(i.current),e=e?r.addEventListener:r.removeEventListener;e(t?"touchmove":"mousemove",n),e(t?"touchend":"mouseup",o)}return[function(e){var t,e=e.nativeEvent,r=i.current;r&&(y(e),!u.current||g(e))&&r&&(g(e)&&(u.current=!0,(t=e.changedTouches||[]).length)&&(c.current=t[0].identifier),r.focus(),l(m(r,e,c.current)),a(!0))},function(e){var t=e.which||e.keyCode;t<37||40<t||(e.preventDefault(),s({left:39===t?.05:37===t?-.05:0,top:40===t?.05:38===t?-.05:0}))},a]},[s,l]),r=t[0],n=t[1],o=t[2];return Object(f.useEffect)(function(){return o},[o]),h.a.createElement("div",p({},e,{onTouchStart:r,onMouseDown:r,className:"react-colorful__interactive",ref:i,onKeyDown:n,tabIndex:0,role:"slider"}))}),j=function(e){return e.filter(Boolean).join(" ")},E=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=Math.pow(10,t)),Math.round(r*e)/r},C=(Math.PI,function(e){return(e="#"===e[0]?e.substring(1):e).length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?E(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:8===e.length?E(parseInt(e.substring(6,8),16)/255,2):1}}),e=u,S=function(e){e=e.toString(16);return e.length<2?"0"+e:e},M=function(e){var t=e.r,r=e.g,n=e.b,e=e.a,o=Math.max(t,r,n),a=o-Math.min(t,r,n),n=a?o===t?(r-n)/a:o===r?2+(n-t)/a:4+(t-r)/a:0;return{h:E(60*(n<0?6+n:n)),s:E(o?a/o*100:0),v:E(o/255*100),a:e}},k=h.a.memo(function(e){var t=e.hue,r=e.onChange,e=j(["react-colorful__hue",e.className]);return h.a.createElement("div",{className:e},h.a.createElement(O,{onMove:function(e){r({h:360*e.left})},onKey:function(e){r({h:a(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":E(t),"aria-valuemax":"360","aria-valuemin":"0"},h.a.createElement(i,{className:"react-colorful__hue-pointer",left:t/360,color:l({h:t,s:100,v:100,a:1})})))}),R=h.a.memo(function(e){var t=e.hsva,r=e.onChange,e={backgroundColor:l({h:t.h,s:100,v:100,a:1})};return h.a.createElement("div",{className:"react-colorful__saturation",style:e},h.a.createElement(O,{onMove:function(e){r({s:100*e.left,v:100-100*e.top})},onKey:function(e){r({s:a(t.s+100*e.left,0,100),v:a(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+E(t.s)+"%, Brightness "+E(t.v)+"%"},h.a.createElement(i,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:l(t)})))});function A(t,r,e){var n=b(e),e=Object(f.useState)(function(){return t.toHsva(r)}),o=e[0],a=e[1],i=Object(f.useRef)({color:r,hsva:o}),e=(Object(f.useEffect)(function(){var e;t.equal(r,i.current.color)||(e=t.toHsva(r),i.current={hsva:e,color:r},a(e))},[r,t]),Object(f.useEffect)(function(){var e;w(o,i.current.hsva)||t.equal(e=t.fromHsva(o),i.current.color)||(i.current={hsva:o,color:e},n(e))},[o,t,n]),Object(f.useCallback)(function(t){a(function(e){return Object.assign({},e,t)})},[]));return[o,e]}function P(e){var t=e.className,r=e.colorModel,n=void 0===(n=e.color)?r.defaultColor:n,o=e.onChange,e=d(e,["className","colorModel","color","onChange"]),a=Object(f.useRef)(null);T(a);n=(r=A(r,n,o))[0],o=r[1],r=j(["react-colorful",t]);return h.a.createElement("div",p({},e,{ref:a,className:r}),h.a.createElement(R,{hsva:n,onChange:o}),h.a.createElement(k,{hue:n.h,onChange:o,className:"react-colorful__last-control"}))}function N(e){var t=e.className,r=e.colorModel,n=void 0===(n=e.color)?r.defaultColor:n,o=e.onChange,e=d(e,["className","colorModel","color","onChange"]),a=Object(f.useRef)(null);T(a);n=(r=A(r,n,o))[0],o=r[1],r=j(["react-colorful",t]);return h.a.createElement("div",p({},e,{ref:a,className:r}),h.a.createElement(R,{hsva:n,onChange:o}),h.a.createElement(k,{hue:n.h,onChange:o}),h.a.createElement(z,{hsva:n,onChange:o,className:"react-colorful__last-control"}))}var F="undefined"!=typeof window?f.useLayoutEffect:f.useEffect,H=new Map,T=function(n){F(function(){var e,t,r=n.current?n.current.ownerDocument:document;void 0===r||H.has(r)||((e=r.createElement("style")).innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',H.set(r,e),(t=o.nc)&&e.setAttribute("nonce",t),r.head.appendChild(e))},[])},L={defaultColor:"000",toHsva:t,fromHsva:function(e){return r({h:e.h,s:e.s,v:e.v,a:1})},equal:_},B=function(e){return h.a.createElement(P,p({},e,{colorModel:L}))},z=function(e){var t=e.className,r=e.hsva,n=e.onChange,e={backgroundImage:"linear-gradient(90deg, "+s(Object.assign({},r,{a:0}))+", "+s(Object.assign({},r,{a:1}))+")"},t=j(["react-colorful__alpha",t]),o=E(100*r.a);return h.a.createElement("div",{className:t},h.a.createElement("div",{className:"react-colorful__alpha-gradient",style:e}),h.a.createElement(O,{onMove:function(e){n({a:e.left})},onKey:function(e){n({a:a(r.a+e.left)})},"aria-label":"Alpha","aria-valuetext":o+"%","aria-valuenow":o,"aria-valuemin":"0","aria-valuemax":"100"},h.a.createElement(i,{className:"react-colorful__alpha-pointer",left:r.a,color:s(r)})))},U={defaultColor:"0001",toHsva:t,fromHsva:r,equal:_},I=function(e){return h.a.createElement(N,p({},e,{colorModel:U}))},W={defaultColor:"rgba(0, 0, 0, 1)",toHsva:u,fromHsva:function(e){e=c(e);return"rgba("+e.r+", "+e.g+", "+e.b+", "+e.a+")"},equal:x},X=function(e){return h.a.createElement(N,p({},e,{colorModel:W}))},Y={defaultColor:"rgb(0, 0, 0)",toHsva:e,fromHsva:function(e){e=c(e);return"rgb("+e.r+", "+e.g+", "+e.b+")"},equal:x},q=function(e){return h.a.createElement(P,p({},e,{colorModel:Y}))}},600:function(e,t,r){var n=r(667),o=r(91);e.exports=function(e,t){return e&&n(e,t,o)}},602:function(e,t,r){var n=r(40);e.exports=function(e){return e==e&&!n(e)}},603:function(e,t){e.exports=function(t,r){return function(e){return null!=e&&e[t]===r&&(void 0!==r||t in Object(e))}}},604:function(e,t,r){var o=r(605),a=r(567);e.exports=function(e,t){for(var r=0,n=(t=o(t,e)).length;null!=e&&r<n;)e=e[a(t[r++])];return r&&r==n?e:void 0}},605:function(e,t,r){var n=r(89),o=r(578),a=r(678),i=r(562);e.exports=function(e,t){return n(e)?e:o(e,t)?[e]:a(i(e))}},651:function(e,t,r){"use strict";function n(e,t){if(null!=e){if(!Object(l.a)(e))return a(e,t);for(var r=e.length,n=-1,o=Object(e);++n<r&&!1!==t(o[n],n,o););}return e}var a,o=r(652),i=r(231),l=r(171);a=function(e,t){return e&&Object(o.a)(e,t,i.a)};t.a=n},652:function(e,t,r){"use strict";t.a=function(e,t,r){for(var n=-1,o=Object(e),a=r(e),i=a.length;i--;){var l=a[++n];if(!1===t(o[l],l,o))break}return e}},665:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flattenNames=void 0;var n=l(r(666)),o=l(r(577)),a=l(r(670)),i=l(r(671));function l(e){return e&&e.__esModule?e:{default:e}}r=t.flattenNames=function t(){var r=[];return(0,i.default)(0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],function(e){Array.isArray(e)?t(e).map(function(e){return r.push(e)}):(0,a.default)(e)?(0,o.default)(e,function(e,t){!0===e&&r.push(t),r.push(t+"-"+e)}):(0,n.default)(e)&&r.push(e)}),r};t.default=r},666:function(e,t,r){var n=r(70),o=r(89),a=r(53);e.exports=function(e){return"string"==typeof e||!o(e)&&a(e)&&"[object String]"==n(e)}},667:function(e,t,r){r=r(668)();e.exports=r},668:function(e,t){e.exports=function(s){return function(e,t,r){for(var n=-1,o=Object(e),a=r(e),i=a.length;i--;){var l=a[s?i:++n];if(!1===t(o[l],l,o))break}return e}}},669:function(e,t,r){var n=r(173);e.exports=function(e){return"function"==typeof e?e:n}},670:function(e,t,r){var n=r(70),o=r(193),a=r(53),r=Function.prototype,i=Object.prototype,l=r.toString,s=i.hasOwnProperty,c=l.call(Object);e.exports=function(e){return!(!a(e)||"[object Object]"!=n(e))&&(null===(e=o(e))||"function"==typeof(e=s.call(e,"constructor")&&e.constructor)&&e instanceof e&&l.call(e)==c)}},671:function(e,t,r){var n=r(601),o=r(672),a=r(688),i=r(89);e.exports=function(e,t){return(i(e)?n:a)(e,o(t,3))}},672:function(e,t,r){var n=r(673),o=r(676),a=r(173),i=r(89),l=r(685);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?i(e)?o(e[0],e[1]):n(e):l(e)}},673:function(e,t,r){var n=r(674),o=r(675),a=r(603);e.exports=function(t){var r=o(t);return 1==r.length&&r[0][2]?a(r[0][0],r[0][1]):function(e){return e===t||n(e,t,r)}}},674:function(e,t,r){var p=r(185),d=r(317);e.exports=function(e,t,r,n){var o=r.length,a=o,i=!n;if(null==e)return!a;for(e=Object(e);o--;){var l=r[o];if(i&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<a;){var s=(l=r[o])[0],c=e[s],u=l[1];if(i&&l[2]){if(void 0===c&&!(s in e))return!1}else{var f,h=new p;if(!(void 0===(f=n?n(c,u,s,e,t,h):f)?d(u,c,3,n,h):f))return!1}}return!0}},675:function(e,t,r){var a=r(602),i=r(91);e.exports=function(e){for(var t=i(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,a(o)]}return t}},676:function(e,t,r){var o=r(317),a=r(677),i=r(682),l=r(578),s=r(602),c=r(603),u=r(567);e.exports=function(r,n){return l(r)&&s(n)?c(u(r),n):function(e){var t=a(e,r);return void 0===t&&t===n?i(e,r):o(n,t,3)}}},677:function(e,t,r){var n=r(604);e.exports=function(e,t,r){e=null==e?void 0:n(e,t);return void 0===e?r:e}},678:function(e,t,r){var r=r(679),n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,r=r(function(e){var o=[];return 46===e.charCodeAt(0)&&o.push(""),e.replace(n,function(e,t,r,n){o.push(r?n.replace(a,"$1"):t||e)}),o});e.exports=r},679:function(e,t,r){var n=r(680);e.exports=function(e){var e=n(e,function(e){return 500===t.size&&t.clear(),e}),t=e.cache;return e}},680:function(e,t,r){var i=r(186);function l(n,o){if("function"!=typeof n||null!=o&&"function"!=typeof o)throw new TypeError("Expected a function");function a(){var e=arguments,t=o?o.apply(this,e):e[0],r=a.cache;return r.has(t)?r.get(t):(e=n.apply(this,e),a.cache=r.set(t,e)||r,e)}return a.cache=new(l.Cache||i),a}l.Cache=i,e.exports=l},682:function(e,t,r){var n=r(683),o=r(684);e.exports=function(e,t){return null!=e&&o(e,t,n)}},683:function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},684:function(e,t,r){var l=r(605),s=r(318),c=r(89),u=r(187),f=r(188),h=r(567);e.exports=function(e,t,r){for(var n=-1,o=(t=l(t,e)).length,a=!1;++n<o;){var i=h(t[n]);if(!(a=null!=e&&r(e,i)))break;e=e[i]}return a||++n!=o?a:!!(o=null==e?0:e.length)&&f(o)&&u(i,o)&&(c(e)||s(e))}},685:function(e,t,r){var n=r(686),o=r(687),a=r(578),i=r(567);e.exports=function(e){return a(e)?n(i(e)):o(e)}},686:function(e,t){e.exports=function(t){return function(e){return null==e?void 0:e[t]}}},687:function(e,t,r){var n=r(604);e.exports=function(t){return function(e){return n(e,t)}}},688:function(e,t,r){var i=r(689),l=r(92);e.exports=function(e,n){var o=-1,a=l(e)?Array(e.length):[];return i(e,function(e,t,r){a[++o]=n(e,t,r)}),a}},689:function(e,t,r){var n=r(600),r=r(690)(n);e.exports=r},690:function(e,t,r){var l=r(92);e.exports=function(a,i){return function(e,t){if(null!=e){if(!l(e))return a(e,t);for(var r=e.length,n=i?r:-1,o=Object(e);(i?n--:++n<r)&&!1!==t(o[n],n,o););}return e}}},691:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeClasses=void 0;var o=n(r(577)),a=n(r(692)),i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function n(e){return e&&e.__esModule?e:{default:e}}r=t.mergeClasses=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],n=t.default&&(0,a.default)(t.default)||{};return e.map(function(e){var r=t[e];return r&&(0,o.default)(r,function(e,t){n[t]||(n[t]={}),n[t]=i({},n[t],r[t])}),e}),n};t.default=r},692:function(e,t,r){var n=r(319);e.exports=function(e){return n(e,5)}},693:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.autoprefix=void 0;var r=r(577),o=r&&r.__esModule?r:{default:r},a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i={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){e=e&&e.split(" ");return{position:"absolute",top:e&&e[0],right:e&&e[1],bottom:e&&e[2],left:e&&e[3]}},extend:function(e,t){return t[e]||{extend:e}}},r=t.autoprefix=function(e){var r={};return(0,o.default)(e,function(e,t){var n={};(0,o.default)(e,function(e,t){var r=i[t];r?n=a({},n,r(e)):n[t]=e}),r[t]=n}),r};t.default=r},694:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hover=void 0;var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r=r(1),u=r&&r.__esModule?r:{default:r};function f(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}r=t.hover=function(i){var l=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"span",e=u.default.Component;function s(){var e,t=this,r=s;if(!(t instanceof r))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,o=Array(n),a=0;a<n;a++)o[a]=arguments[a];return r=e=f(this,(t=s.__proto__||Object.getPrototypeOf(s)).call.apply(t,[this].concat(o))),e.state={hover:!1},e.handleMouseOver=function(){return e.setState({hover:!0})},e.handleMouseOut=function(){return e.setState({hover:!1})},e.render=function(){return u.default.createElement(l,{onMouseOver:e.handleMouseOver,onMouseOut:e.handleMouseOut},u.default.createElement(i,c({},e.props,e.state)))},f(e,r)}var t=s;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),s};t.default=r},695:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.active=void 0;var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r=r(1),u=r&&r.__esModule?r:{default:r};function f(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}r=t.active=function(i){var l=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"span",e=u.default.Component;function s(){var e,t=this,r=s;if(!(t instanceof r))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,o=Array(n),a=0;a<n;a++)o[a]=arguments[a];return r=e=f(this,(t=s.__proto__||Object.getPrototypeOf(s)).call.apply(t,[this].concat(o))),e.state={active:!1},e.handleMouseDown=function(){return e.setState({active:!0})},e.handleMouseUp=function(){return e.setState({active:!1})},e.render=function(){return u.default.createElement(l,{onMouseDown:e.handleMouseDown,onMouseUp:e.handleMouseUp},u.default.createElement(i,c({},e.props,e.state)))},f(e,r)}var t=s;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),s};t.default=r},696:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){function r(e){n[e]=!(1<arguments.length&&void 0!==arguments[1])||arguments[1]}var n={};return 0===e&&r("first-child"),e===t-1&&r("last-child"),0!==e&&e%2!=0||r("even"),1===Math.abs(e%2)&&r("odd"),r("nth-child",e),n}},697:function(e,o,a){"use strict";!function(e){var t=a(15),r="object"==typeof exports&&exports&&!exports.nodeType&&exports,e=r&&"object"==typeof e&&e&&!e.nodeType&&e,e=e&&e.exports===r?t.a.Buffer:void 0,n=e?e.allocUnsafe:void 0;o.a=function(e,t){return t?e.slice():(t=e.length,t=n?n(t):new e.constructor(t),e.copy(t),t)}}.call(this,a(189)(e))},698:function(e,t,r){e.exports=function(){"use strict";function m(e){return(m="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})(e)}var y=/^\s+/,w=/\s+$/;function x(e,t){var r,n,o,a,i,l,s,c,u,f,h,p,d,b,g;return t=t||{},(e=e||"")instanceof x?e:this instanceof x?(h={r:0,g:0,b:0},d=null,g=b=!(p=1),p=O(p="object"==m(r="string"==typeof(r=e)?function(e){e=e.replace(y,"").replace(w,"").toLowerCase();var t,r=!1;if(_[e])e=_[e],r=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=N.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=N.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=N.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=N.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=N.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=N.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=N.hex8.exec(e))?{r:E(t[1]),g:E(t[2]),b:E(t[3]),a:k(t[4]),format:r?"name":"hex8"}:(t=N.hex6.exec(e))?{r:E(t[1]),g:E(t[2]),b:E(t[3]),format:r?"name":"hex"}:(t=N.hex4.exec(e))?{r:E(t[1]+""+t[1]),g:E(t[2]+""+t[2]),b:E(t[3]+""+t[3]),a:k(t[4]+""+t[4]),format:r?"name":"hex8"}:!!(t=N.hex3.exec(e))&&{r:E(t[1]+""+t[1]),g:E(t[2]+""+t[2]),b:E(t[3]+""+t[3]),format:r?"name":"hex"}}(r):r)&&(H(r.r)&&H(r.g)&&H(r.b)?(s=r.r,i=r.g,l=r.b,h={r:255*j(s,255),g:255*j(i,255),b:255*j(l,255)},b=!0,g="%"===String(r.r).substr(-1)?"prgb":"rgb"):H(r.h)&&H(r.s)&&H(r.v)?(d=S(r.s),s=S(r.v),i=r.h,l=d,s=s,i=6*j(i,360),l=j(l,100),s=j(s,100),c=Math.floor(i),h={r:255*[s,f=s*(1-(i-=c)*l),u=s*(1-l),u,i=s*(1-(1-i)*l),s][l=c%6],g:255*[i,s,s,f,u,u][l],b:255*[u,u,i,s,s,f][l]},b=!0,g="hsv"):H(r.h)&&H(r.s)&&H(r.l)&&(d=S(r.s),c=S(r.l),u=r.h,i=d,s=c,u=j(u,360),i=j(i,100),s=j(s,100),0===i?n=o=a=s:(n=v(i=2*s-(s=s<.5?s*(1+i):s+i-s*i),s,u+1/3),o=v(i,s,u),a=v(i,s,u-1/3)),h={r:255*n,g:255*o,b:255*a},b=!0,g="hsl"),r.hasOwnProperty("a"))?r.a:p),f={ok:b,format:r.format||g,r:Math.min(255,Math.max(h.r,0)),g:Math.min(255,Math.max(h.g,0)),b:Math.min(255,Math.max(h.b,0)),a:p},this._originalInput=e,this._r=f.r,this._g=f.g,this._b=f.b,this._a=f.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||f.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)),void(this._ok=f.ok)):new x(e,t);function v(e,t,r){return r<0&&(r+=1),1<r&&--r,r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}}function n(e,t,r){e=j(e,255),t=j(t,255),r=j(r,255);var n,o=Math.max(e,t,r),a=Math.min(e,t,r),i=(o+a)/2;if(o==a)n=s=0;else{var l=o-a,s=.5<i?l/(2-o-a):l/(o+a);switch(o){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:s,l:i}}function o(e,t,r){e=j(e,255),t=j(t,255),r=j(r,255);var n,o=Math.max(e,t,r),a=Math.min(e,t,r),i=o,l=o-a,s=0===o?0:l/o;if(o==a)n=0;else{switch(o){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:s,v:i}}function t(e,t,r,n){e=[C(Math.round(e).toString(16)),C(Math.round(t).toString(16)),C(Math.round(r).toString(16))];return n&&e[0].charAt(0)==e[0].charAt(1)&&e[1].charAt(0)==e[1].charAt(1)&&e[2].charAt(0)==e[2].charAt(1)?e[0].charAt(0)+e[1].charAt(0)+e[2].charAt(0):e.join("")}function a(e,t,r,n){return[C(M(n)),C(Math.round(e).toString(16)),C(Math.round(t).toString(16)),C(Math.round(r).toString(16))].join("")}function e(e,t){t=0===t?0:t||10;e=x(e).toHsl();return e.s-=t/100,e.s=v(e.s),x(e)}function r(e,t){t=0===t?0:t||10;e=x(e).toHsl();return e.s+=t/100,e.s=v(e.s),x(e)}function i(e){return x(e).desaturate(100)}function l(e,t){t=0===t?0:t||10;e=x(e).toHsl();return e.l+=t/100,e.l=v(e.l),x(e)}function s(e,t){t=0===t?0:t||10;e=x(e).toRgb();return e.r=Math.max(0,Math.min(255,e.r-Math.round(-t/100*255))),e.g=Math.max(0,Math.min(255,e.g-Math.round(-t/100*255))),e.b=Math.max(0,Math.min(255,e.b-Math.round(-t/100*255))),x(e)}function c(e,t){t=0===t?0:t||10;e=x(e).toHsl();return e.l-=t/100,e.l=v(e.l),x(e)}function u(e,t){e=x(e).toHsl(),t=(e.h+t)%360;return e.h=t<0?360+t:t,x(e)}function f(e){e=x(e).toHsl();return e.h=(e.h+180)%360,x(e)}function h(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var r=x(e).toHsl(),n=[x(e)],o=360/t,a=1;a<t;a++)n.push(x({h:(r.h+a*o)%360,s:r.s,l:r.l}));return n}function p(e){var t=x(e).toHsl(),r=t.h;return[x(e),x({h:(r+72)%360,s:t.s,l:t.l}),x({h:(r+216)%360,s:t.s,l:t.l})]}function d(e,t,r){t=t||6,r=r||30;var n=x(e).toHsl(),o=360/r,a=[x(e)];for(n.h=(n.h-(o*t>>1)+720)%360;--t;)n.h=(n.h+o)%360,a.push(x(n));return a}function b(e,t){t=t||6;for(var e=x(e).toHsv(),r=e.h,n=e.s,o=e.v,a=[],i=1/t;t--;)a.push(x({h:r,s:n,v:o})),o=(o+i)%1;return a}x.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=this.toRgb(),t=e.r/255,r=e.g/255,e=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((.055+t)/1.055,2.4))+.7152*(r<=.03928?r/12.92:Math.pow((.055+r)/1.055,2.4))+.0722*(e<=.03928?e/12.92:Math.pow((.055+e)/1.055,2.4))},setAlpha:function(e){return this._a=O(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=o(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=o(this._r,this._g,this._b),t=Math.round(360*e.h),r=Math.round(100*e.s),e=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+r+"%, "+e+"%)":"hsva("+t+", "+r+"%, "+e+"%, "+this._roundA+")"},toHsl:function(){var e=n(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=n(this._r,this._g,this._b),t=Math.round(360*e.h),r=Math.round(100*e.s),e=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+r+"%, "+e+"%)":"hsla("+t+", "+r+"%, "+e+"%, "+this._roundA+")"},toHex:function(e){return t(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){var t=this._r,r=this._g,n=this._b,o=this._a;return t=[C(Math.round(t).toString(16)),C(Math.round(r).toString(16)),C(Math.round(n).toString(16)),C(M(o))],e&&t[0].charAt(0)==t[0].charAt(1)&&t[1].charAt(0)==t[1].charAt(1)&&t[2].charAt(0)==t[2].charAt(1)&&t[3].charAt(0)==t[3].charAt(1)?t[0].charAt(0)+t[1].charAt(0)+t[2].charAt(0)+t[3].charAt(0):t.join("")},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*j(this._r,255))+"%",g:Math.round(100*j(this._g,255))+"%",b:Math.round(100*j(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*j(this._r,255))+"%, "+Math.round(100*j(this._g,255))+"%, "+Math.round(100*j(this._b,255))+"%)":"rgba("+Math.round(100*j(this._r,255))+"%, "+Math.round(100*j(this._g,255))+"%, "+Math.round(100*j(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(g[t(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+a(this._r,this._g,this._b,this._a),r=t;return"progid:DXImageTransform.Microsoft.gradient("+(this._gradientType?"GradientType = 1, ":"")+"startColorstr="+t+",endColorstr="+(r=e?"#"+a((t=x(e))._r,t._g,t._b,t._a):r)+")"},toString:function(e){var t=!!e,r=(e=e||this._format,!1),n=this._a<1&&0<=this._a;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()),(r="hsv"===e?this.toHsvString():r)||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return x(this.toString())},_applyModification:function(e,t){e=e.apply(null,[this].concat([].slice.call(t)));return this._r=e._r,this._g=e._g,this._b=e._b,this.setAlpha(e._a),this},lighten:function(){return this._applyModification(l,arguments)},brighten:function(){return this._applyModification(s,arguments)},darken:function(){return this._applyModification(c,arguments)},desaturate:function(){return this._applyModification(e,arguments)},saturate:function(){return this._applyModification(r,arguments)},greyscale:function(){return this._applyModification(i,arguments)},spin:function(){return this._applyModification(u,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(d,arguments)},complement:function(){return this._applyCombination(f,arguments)},monochromatic:function(){return this._applyCombination(b,arguments)},splitcomplement:function(){return this._applyCombination(p,arguments)},triad:function(){return this._applyCombination(h,[3])},tetrad:function(){return this._applyCombination(h,[4])}},x.fromRatio=function(e,t){if("object"==m(e)){var r,n={};for(r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:S(e[r]));e=n}return x(e,t)},x.equals=function(e,t){return!(!e||!t)&&x(e).toRgbString()==x(t).toRgbString()},x.random=function(){return x.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},x.mix=function(e,t,r){r=0===r?0:r||50;e=x(e).toRgb(),t=x(t).toRgb(),r/=100;return x({r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b,a:(t.a-e.a)*r+e.a})},x.readability=function(e,t){e=x(e),t=x(t);return(Math.max(e.getLuminance(),t.getLuminance())+.05)/(Math.min(e.getLuminance(),t.getLuminance())+.05)},x.isReadable=function(e,t,r){var n=x.readability(e,t),o=!1,e=r,t=((e=r||{level:"AA",size:"small"}).level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase();switch((e={level:t="AA"!==t&&"AAA"!==t?"AA":t,size:r="small"!==r&&"large"!==r?"small":r}).level+e.size){case"AAsmall":case"AAAlarge":o=4.5<=n;break;case"AAlarge":o=3<=n;break;case"AAAsmall":o=7<=n}return o},x.mostReadable=function(e,t,r){for(var n,o=null,a=0,i=(r=r||{}).includeFallbackColors,l=r.level,s=r.size,c=0;c<t.length;c++)(n=x.readability(e,t[c]))>a&&(a=n,o=x(t[c]));return x.isReadable(e,o,{level:l,size:s})||!i?o:(r.includeFallbackColors=!1,x.mostReadable(e,["#fff","#000"],r))};var _=x.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"},g=x.hexNames=function(e){var t,r={};for(t in e)e.hasOwnProperty(t)&&(r[e[t]]=t);return r}(_);function O(e){return e=parseFloat(e),e=isNaN(e)||e<0||1<e?1:e}function j(e,t){var r="string"==typeof(e="string"==typeof(r=e)&&-1!=r.indexOf(".")&&1===parseFloat(r)?"100%":e)&&-1!=e.indexOf("%");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 v(e){return Math.min(1,Math.max(0,e))}function E(e){return parseInt(e,16)}function C(e){return 1==e.length?"0"+e:""+e}function S(e){return e=e<=1?100*e+"%":e}function M(e){return Math.round(255*parseFloat(e)).toString(16)}function k(e){return E(e)/255}A="[\\s|\\(]+("+(R="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+R+")[,|\\s]+("+R+")\\s*\\)?",P="[\\s|\\(]+("+R+")[,|\\s]+("+R+")[,|\\s]+("+R+")[,|\\s]+("+R+")\\s*\\)?";var R,A,P,N={CSS_UNIT:new RegExp(R),rgb:new RegExp("rgb"+A),rgba:new RegExp("rgba"+P),hsl:new RegExp("hsl"+A),hsla:new RegExp("hsla"+P),hsv:new RegExp("hsv"+A),hsva:new RegExp("hsva"+P),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 H(e){return N.CSS_UNIT.exec(e)}return x}()},699:function(e,t,r){"use strict";var n,r=r(1),l=60103,s=(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for&&(l=(n=Symbol.for)("react.element"),t.Fragment=n("react.fragment")),r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner),c=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function o(e,t,r){var n,o={},a=null,i=null;for(n in void 0!==r&&(a=""+r),void 0!==t.key&&(a=""+t.key),void 0!==t.ref&&(i=t.ref),t)c.call(t,n)&&!u.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:l,type:e,key:a,ref:i,props:o,_owner:s.current}}t.jsx=o,t.jsxs=o}}]);
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
(window.webpackJsonpfeffery_utils_components=window.webpackJsonpfeffery_utils_components||[]).push([[9],{546:function(e,t,r){"use strict";r.r(t);var i=r(2),l=r(1),c=r(8),u=r(892),r=r(229);function T(e){return(T="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})(e)}function k(){k=function(){return l};var c,l={},e=Object.prototype,u=e.hasOwnProperty,s=Object.defineProperty||function(e,t,r){e[t]=r.value},t="function"==typeof Symbol?Symbol:{},n=t.iterator||"@@iterator",r=t.asyncIterator||"@@asyncIterator",o=t.toStringTag||"@@toStringTag";function i(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{i({},"")}catch(c){i=function(e,t,r){return e[t]=r}}function a(e,t,r,n){var o,i,l,a,t=t&&t.prototype instanceof p?t:p,t=Object.create(t.prototype),n=new C(n||[]);return s(t,"_invoke",{value:(o=e,i=r,l=n,a=f,function(e,t){if(a===h)throw new Error("Generator is already running");if(a===m){if("throw"===e)throw t;return{value:c,done:!0}}for(l.method=e,l.arg=t;;){var r=l.delegate;if(r){r=function e(t,r){var n=r.method,o=t.iterator[n];if(o===c)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=c,e(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;n=d(o,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,g;o=n.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=c),r.delegate=null,g):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}(r,l);if(r){if(r===g)continue;return r}}if("next"===l.method)l.sent=l._sent=l.arg;else if("throw"===l.method){if(a===f)throw a=m,l.arg;l.dispatchException(l.arg)}else"return"===l.method&&l.abrupt("return",l.arg);a=h;r=d(o,i,l);if("normal"===r.type){if(a=l.done?m:"suspendedYield",r.arg===g)continue;return{value:r.arg,done:l.done}}"throw"===r.type&&(a=m,l.method="throw",l.arg=r.arg)}})}),t}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}l.wrap=a;var f="suspendedStart",h="executing",m="completed",g={};function p(){}function y(){}function w(){}var t={},v=(i(t,n,function(){return this}),Object.getPrototypeOf),v=v&&v(v(N([]))),b=(v&&v!==e&&u.call(v,n)&&(t=v),w.prototype=p.prototype=Object.create(t));function S(e){["next","throw","return"].forEach(function(t){i(e,t,function(e){return this._invoke(t,e)})})}function E(l,a){var t;s(this,"_invoke",{value:function(r,n){function e(){return new a(function(e,t){!function t(e,r,n,o){var i,e=d(l[e],l,r);if("throw"!==e.type)return(r=(i=e.arg).value)&&"object"==T(r)&&u.call(r,"__await")?a.resolve(r.__await).then(function(e){t("next",e,n,o)},function(e){t("throw",e,n,o)}):a.resolve(r).then(function(e){i.value=e,n(i)},function(e){return t("throw",e,n,o)});o(e.arg)}(r,n,e,t)})}return t=t?t.then(e,e):e()}})}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function N(t){if(t||""===t){var r,e=t[n];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return r=-1,(e=function e(){for(;++r<t.length;)if(u.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=c,e.done=!0,e}).next=e}throw new TypeError(T(t)+" is not iterable")}return s(b,"constructor",{value:y.prototype=w,configurable:!0}),s(w,"constructor",{value:y,configurable:!0}),y.displayName=i(w,o,"GeneratorFunction"),l.isGeneratorFunction=function(e){e="function"==typeof e&&e.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},l.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,i(e,o,"GeneratorFunction")),e.prototype=Object.create(b),e},l.awrap=function(e){return{__await:e}},S(E.prototype),i(E.prototype,r,function(){return this}),l.AsyncIterator=E,l.async=function(e,t,r,n,o){void 0===o&&(o=Promise);var i=new E(a(e,t,r,n),o);return l.isGeneratorFunction(t)?i:i.next().then(function(e){return e.done?e.value:i.next()})},S(b),i(b,o,"Generator"),i(b,n,function(){return this}),i(b,"toString",function(){return"[object Generator]"}),l.keys=function(e){var t,r=Object(e),n=[];for(t in r)n.push(t);return n.reverse(),function e(){for(;n.length;){var t=n.pop();if(t in r)return e.value=t,e.done=!1,e}return e.done=!0,e}},l.values=N,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=c,this.done=!1,this.delegate=null,this.method="next",this.arg=c,this.tryEntries.forEach(A),!e)for(var t in this)"t"===t.charAt(0)&&u.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=c)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var n=this;function e(e,t){return i.type="throw",i.arg=r,n.next=e,t&&(n.method="next",n.arg=c),!!t}for(var t=this.tryEntries.length-1;0<=t;--t){var o=this.tryEntries[t],i=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var l=u.call(o,"catchLoc"),a=u.call(o,"finallyLoc");if(l&&a){if(this.prev<o.catchLoc)return e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!a)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;0<=r;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&u.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}var i=(o=o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc?null:o)?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),A(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var r,n,o=this.tryEntries[t];if(o.tryLoc===e)return"throw"===(r=o.completion).type&&(n=r.arg,A(o)),n}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:N(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=c),g}},l}function s(e,t,r,n,o,i,l){try{var a=e[i](l),c=a.value}catch(e){return r(e)}a.done?t(c):Promise.resolve(c).then(n,o)}function n(e){var t,a,r=e.targetSelector,n=e.scale,o=e.setProps;return e.loading_state,a=k().mark(function e(){var t;return k().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r&&((t=document.querySelector(r))?Object(u.domToPng)(t,{scale:n}).then(function(e){o({screenshotResult:{selector:r,status:"success",dataUrl:e,timestamp:(new Date).getTime()}})}):o({screenshotResult:{selector:r,status:"failed",dataUrl:null,timestamp:(new Date).getTime()}}),o({targetSelector:null}));case 1:case"end":return e.stop()}},e)}),t=function(){var e=this,l=arguments;return new Promise(function(t,r){var n=a.apply(e,l);function o(e){s(n,t,r,o,i,"next",e)}function i(e){s(n,t,r,o,i,"throw",e)}o(void 0)})},e=[r],Object(l.useEffect)(function(){var r=t(),n=!1;return function(){Object(i.b)(this,void 0,void 0,function(){return Object(i.d)(this,function(e){switch(e.label){case 0:if(t=r,!Object(c.b)(t[Symbol.asyncIterator]))return[3,4];e.label=1;case 1:return[4,r.next()];case 2:return e.sent().done||n?[3,3]:[3,1];case 3:return[3,6];case 4:return[4,r];case 5:e.sent(),e.label=6;case 6:return[2]}var t})})}(),function(){n=!0}},e),React.createElement(React.Fragment,null)}(t.default=n).defaultProps=r.b,n.propTypes=r.c},892:function(r,e,o){{var M,B=Object.defineProperty,W=Object.defineProperties,q=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertySymbols,$=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable,z=Math.pow,G=(e,t,r)=>t in e?B(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,y=(e,t)=>{for(var r in t=t||{})$.call(t,r)&&G(e,r,t[r]);if(p)for(var r of p(t))V.call(t,r)&&G(e,r,t[r]);return e},m=(e,t)=>W(e,q(t)),E=(e,l,a)=>new Promise((t,r)=>{var n=e=>{try{i(a.next(e))}catch(e){r(e)}},o=e=>{try{i(a.throw(e))}catch(e){r(e)}},i=e=>e.done?t(e.value):Promise.resolve(e.value).then(n,o);i((a=a.apply(e,l)).next())});function H(e,t){return e[13]=1,e[14]=t>>8,e[15]=255&t,e[16]=t>>8,e[17]=255&t,e}const l="p".charCodeAt(0),a="H".charCodeAt(0),u="Y".charCodeAt(0),d="s".charCodeAt(0);let i;function X(e,t,r=!1){var n=new Uint8Array(13),t=(t*=39.3701,n[0]=l,n[1]=a,n[2]=u,n[3]=d,n[4]=t>>>24,n[5]=t>>>16,n[6]=t>>>8,n[7]=255&t,n[8]=n[4],n[9]=n[5],n[10]=n[6],n[11]=n[7],n[12]=1,function(t){let r=-1;i=i||function(){var r=new Int32Array(256);for(let e=0;e<256;e++){let t=e;for(let e=0;e<8;e++)t=1&t?3988292384^t>>>1:t>>>1;r[e]=t}return r}();for(let e=0;e<t.length;e++)r=i[255&(r^t[e])]^r>>>8;return-1^r}(n)),o=new Uint8Array(4);if(o[0]=t>>>24,o[1]=t>>>16,o[2]=t>>>8,o[3]=255&t,r){const t=function(t){for(let e=t.length-1;4<=e;e--)if(9===t[e-4]&&t[e-3]===l&&t[e-2]===a&&t[e-1]===u&&t[e]===d)return e-3;return 0}(e);return e.set(n,t),e.set(o,t+13),e}{const t=new Uint8Array(4),r=(t[0]=0,t[1]=0,t[2]=0,t[3]=9,new Uint8Array(54));return r.set(e,0),r.set(t,33),r.set(n,37),r.set(o,50),r}}const g="[modern-screenshot]",b="undefined"!=typeof window,ge=b&&"Worker"in window,h=b&&"atob"in window,pe=b&&"btoa"in window,t=b?null==(M=window.navigator)?void 0:M.userAgent:"",N=t.includes("Chrome"),S=t.includes("AppleWebKit")&&!N,T=t.includes("Firefox"),k=e=>1===e.nodeType,D=e=>"object"==typeof e.className,L=e=>"image"===e.tagName,P=e=>k(e)&&void 0!==e.style&&!D(e),ye=e=>8===e.nodeType,_=e=>"IMG"===e.tagName,F=e=>"VIDEO"===e.tagName,O=e=>"TEXTAREA"===e.tagName,we=e=>"SLOT"===e.tagName,j=(...e)=>console.warn(g,...e),I=e=>e.startsWith("data:");function Y(e,t){var r,n,o;return e.match(/^[a-z]+:\/\//i)?e:b&&e.match(/^\/\//)?window.location.protocol+e:e.match(/^[a-z]+:/i)||!b?e:(n=(r=s().implementation.createHTMLDocument()).createElement("base"),o=r.createElement("a"),r.head.appendChild(n),r.body.appendChild(o),t&&(n.href=t),o.href=e,o.href)}function s(e){return null!=(e=e&&k(e)?null==e?void 0:e.ownerDocument:e)?e:window.document}const R="http://www.w3.org/2000/svg";function J(e,t,r){r=s(r).createElementNS(R,"svg");return r.setAttributeNS(null,"width",e.toString()),r.setAttributeNS(null,"height",t.toString()),r.setAttributeNS(null,"viewBox",`0 0 ${e} `+t),r}function K(e,t){let r=(new XMLSerializer).serializeToString(e);return t&&(r=r.replace(/[\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]/gu,"")),"data:image/svg+xml;charset=utf-8,"+encodeURIComponent(r)}function Q(l,a="image/png",c=1){return E(this,null,function*(){try{return yield new Promise((t,r)=>{l.toBlob(e=>{e?t(e):r(new Error("Blob is null"))},a,c)})}catch(e){if(h){j("Failed canvas to blob",{type:a,quality:c},e);var[t,r]=l.toDataURL(a,c).split(","),t=null!=(t=null==(t=t.match(/data:(.+);/))?void 0:t[1])?t:void 0,n=window.atob(r),o=n.length,i=new Uint8Array(o);for(let e=0;e<o;e+=1)i[e]=n.charCodeAt(e);return new Blob([i],{type:t})}throw e}})}function Z(n,o){return new Promise((e,t)=>{const r=new FileReader;r.onload=()=>e(r.result),r.onerror=()=>t(r.error),r.onabort=()=>t(new Error("Failed read blob to "+o)),"dataUrl"===o?r.readAsDataURL(n):"arrayBuffer"===o&&r.readAsArrayBuffer(n)})}const ve=e=>Z(e,"dataUrl");function x(e,t){t=s(t).createElement("img");return t.decoding="sync",t.loading="eager",t.src=e,t}function A(c,u){return new Promise(e=>{const{timeout:t,ownerDocument:r,onError:n}=null!=u?u:{},o="string"==typeof c?x(c,s(r)):c;let i=null,l=null;function a(){e(o),i&&clearTimeout(i),null!=l&&l()}if(t&&(i=setTimeout(a,t)),F(o)){const c=o.currentSrc||o.src;if(!c)return o.poster?A(o.poster,u).then(e):a();if(2<=o.readyState)return a();const t=a,r=e=>{j("Failed video load",c,e),null!=n&&n(e),a()};l=()=>{o.removeEventListener("loadeddata",t),o.removeEventListener("error",r)},o.addEventListener("loadeddata",t,{once:!0}),o.addEventListener("error",r,{once:!0})}else{const c=L(o)?o.href.baseVal:o.currentSrc||o.src;if(!c)return a();const u=()=>E(this,null,function*(){if(_(o)&&"decode"in o)try{yield o.decode()}catch(e){j("Failed to decode image, trying to render anyway",o.dataset.originalSrc||c,e)}a()}),e=e=>{j("Failed image load",o.dataset.originalSrc||c,e),a()};if(_(o)&&o.complete)return u();l=()=>{o.removeEventListener("load",u),o.removeEventListener("error",e)},o.addEventListener("load",u,{once:!0}),o.addEventListener("error",e,{once:!0})}})}function ee(t,r){return E(this,null,function*(){P(t)&&(_(t)||F(t)?yield A(t,{timeout:r}):yield Promise.all(["img","video"].flatMap(e=>Array.from(t.querySelectorAll(e)).map(e=>A(e,{timeout:r})))))})}const U=function(){let e=0;return()=>(e+=1,"u"+("0000"+(Math.random()*z(36,4)<<0).toString(36)).slice(-4)+e)}();function te(e){return null==e?void 0:e.split(",").map(e=>e.trim().replace(/"|'/g,"").toLowerCase()).filter(Boolean)}function w(e,t){return E(this,null,function*(){return e&&"__CONTEXT__"in e?e:re(e,m(y({},t),{autoDestruct:!0}))})}function re(f,h){return E(this,null,function*(){var t;const{scale:e=1,workerUrl:r,workerNumber:n=1}=h||{},o=Boolean(null==h?void 0:h.debug),i=null==(s=null==h?void 0:h.features)||s,l=null!=(s=f.ownerDocument)?s:b?window.document:void 0,a=null!=(s=null==(s=f.ownerDocument)?void 0:s.defaultView)?s:b?window:void 0,c=new Map,u=m(y({width:0,height:0,quality:1,type:"image/png",scale:e,backgroundColor:null,style:null,filter:null,maximumCanvasSize:0,timeout:3e4,progress:null,debug:o,fetch:y({requestInit:{cache:(null==(s=null==h?void 0:h.fetch)?void 0:s.bypassingCache)?"no-cache":"force-cache"},placeholderImage:"data:image/png;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",bypassingCache:!1},null==h?void 0:h.fetch),fetchFn:null,font:{},drawImageInterval:100,workerUrl:null,workerNumber:n,onCloneNode:null,onEmbedNode:null,onCreateForeignObjectSvg:null,includeStyleProperties:null,autoDestruct:!1},h),{__CONTEXT__:!0,log:(t=o,{time:e=>{return t&&(e=e,console.time(g+" "+e))},timeEnd:e=>{return t&&(e=e,console.timeEnd(g+" "+e))},warn:(...e)=>t&&j(...e)}),node:f,ownerDocument:l,ownerWindow:a,dpi:1===e?null:96*e,svgStyleElement:ne(l),svgDefsElement:null==l?void 0:l.createElementNS(R,"defs"),svgStyles:new Map,defaultComputedStyles:new Map,workers:[...new Array(ge&&r&&n?n:0)].map(()=>{try{var e=new Worker(r);return e.onmessage=o=>E(this,null,function*(){var e,t,{url:r,result:n}=o.data;n?null!=(e=null==(t=c.get(r))?void 0:t.resolve)&&e.call(t,n):null!=(t=null==(e=c.get(r))?void 0:e.reject)&&t.call(e,new Error("Error receiving message from worker: "+r))}),e.onmessageerror=e=>{var t,r,e=e.data["url"];null!=(r=null==(t=c.get(e))?void 0:t.reject)&&r.call(t,new Error("Error receiving message from worker: "+e))},e}catch(e){return j("Failed to new Worker",e),null}}).filter(Boolean),fontFamilies:new Set,fontCssTexts:new Map,acceptOfImage:[((d=null==(d=null==(s=l)?void 0:s.createElement)?void 0:d.call(s,"canvas"))&&(d.height=d.width=1),d&&"toDataURL"in d&&Boolean(d.toDataURL("image/webp").includes("image/webp"))&&"image/webp"),"image/svg+xml","image/*","*/*"].filter(Boolean).join(",")+";q=0.8",requests:c,drawImageCount:0,tasks:[],features:i,isEnable:e=>{return"boolean"==typeof i?i:null==(e=i[e])||e}});u.log.time("wait until load"),yield ee(f,u.timeout),u.log.timeEnd("wait until load");var{width:s,height:d}=function(e,t){let{width:r,height:n}=t;if(k(e)&&(!r||!n)){const t=e.getBoundingClientRect();r=r||t.width||Number(e.getAttribute("width"))||0,n=n||t.height||Number(e.getAttribute("height"))||0}return{width:r,height:n}}(f,u);return u.width=s,u.height=d,u})}function ne(e){var t;if(e)return t=(e=e.createElement("style")).ownerDocument.createTextNode("\n.______background-clip--text {\n background-clip: text;\n -webkit-background-clip: text;\n}\n"),e.appendChild(t),e}const be=["width","height","-webkit-text-fill-color"],Se=["stroke","fill"];function oe(r,e,t){var{defaultComputedStyles:n,ownerDocument:o}=t,i=r.nodeName.toLowerCase(),l=D(r)&&"svg"!==i,a=l?Se.map(e=>[e,r.getAttribute(e)]).filter(([,e])=>null!==e):[],c=[l&&"svg",i,a.map((e,t)=>e+"="+t).join(","),e].filter(Boolean).join(":");if(n.has(c))return n.get(c);let u=t.sandbox;if(!u)try{o&&((u=o.createElement("iframe")).id="__SANDBOX__-"+U(),u.width="0",u.height="0",u.style.visibility="hidden",u.style.position="fixed",o.body.appendChild(u),null!=(s=u.contentWindow)&&s.document.write('<!DOCTYPE html><meta charset="UTF-8"><title></title><body>'),t.sandbox=u)}catch(r){j("Failed to create iframe sandbox",r)}if(!u)return new Map;o=u.contentWindow;if(!o)return new Map;var s=o.document;let d,f;l?(d=s.createElementNS(R,"svg"),f=d.ownerDocument.createElementNS(d.namespaceURI,i),a.forEach(([e,t])=>{f.setAttributeNS(null,e,t)}),d.appendChild(f)):d=f=s.createElement(i),f.textContent=" ",s.body.appendChild(d);var h=o.getComputedStyle(f,e),m=new Map;for(let e=h.length,t=0;t<e;t++){const r=h.item(t);be.includes(r)||m.set(r,h.getPropertyValue(r))}return s.body.removeChild(d),n.set(c,m),m}function ie(i,e,t){var r;const l=new Map,a=[],c=new Map;if(t)for(const i of t)n(i);else for(let e=i.length,t=0;t<e;t++)n(i.item(t));for(let e=a.length,t=0;t<e;t++)null!=(r=c.get(a[t]))&&r.forEach((e,t)=>l.set(t,e));function n(t){var r=i.getPropertyValue(t),n=i.getPropertyPriority(t),o=t.lastIndexOf("-"),o=-1<o?t.substring(0,o):void 0;if(o){let e=c.get(o);e||(e=new Map,c.set(o,e)),e.set(t,[r,n])}e.get(t)===r&&!n||(o?a.push(o):l.set(t,[r,n]))}return l}const Ee=[":before",":after"],xe=[":-webkit-scrollbar",":-webkit-scrollbar-button",":-webkit-scrollbar-thumb",":-webkit-scrollbar-track",":-webkit-scrollbar-track-piece",":-webkit-scrollbar-corner",":-webkit-resizer"];function le(e){if(e.ownerDocument)try{const t=e.toDataURL();if("data:,"!==t)return x(t,e.ownerDocument)}catch(e){}const t=e.cloneNode(!1),r=e.getContext("2d"),n=t.getContext("2d");try{r&&n&&n.putImageData(r.getImageData(0,0,e.width,e.height),0,0)}catch(e){j("Failed to clone canvas",e)}return t}const n=new Set(["symbol"]);function ae(e,t,r){return E(this,null,function*(){k(t)&&("STYLE"===t.tagName||"SCRIPT"===t.tagName)||r.filter&&!r.filter(t)||(n.has(e.nodeName)||n.has(t.nodeName)?r.currentParentNodeStyle=void 0:r.currentParentNodeStyle=r.currentNodeStyle,e.appendChild(yield C(t,r)))})}function ce(r,n,o){return E(this,null,function*(){var t;for(let e=null!=(t=!k(r)||null==(t=r.shadowRoot)?void 0:t.firstChild)?t:r.firstChild;e;e=e.nextSibling)if(!ye(e))if(k(e)&&we(e)&&"function"==typeof e.assignedNodes){const r=e.assignedNodes();for(let e=0;e<r.length;e++)yield ae(n,r[e],o)}else yield ae(n,e,o)})}const Ae=/^[\w-:]+$/;function C(v,b,S=!1){return E(this,null,function*(){const{ownerDocument:r,ownerWindow:t,fontFamilies:n}=b;if(r&&3===v.nodeType)return r.createTextNode(v.data);if(r&&t&&k(v)&&(P(v)||D(v))){const r=yield function(e,t){if("CANVAS"===e.tagName)return le(e);if("IFRAME"!==e.tagName)return _(e)?(t=(r=e).cloneNode(!1),r.currentSrc&&r.currentSrc!==r.src&&(t.src=r.currentSrc,t.srcset=""),"lazy"===t.loading&&(t.loading="eager"),t):F(e)?function(o){return E(this,null,function*(){if(o.ownerDocument&&!o.currentSrc&&o.poster)return x(o.poster,o.ownerDocument);const t=o.cloneNode(!1);t.crossOrigin="anonymous",o.currentSrc&&o.currentSrc!==o.src&&(t.src=o.currentSrc);var r=t.ownerDocument;if(r){let e=!0;if(yield A(t,{onError:()=>e=!1}),!e)return o.poster?x(o.poster,o.ownerDocument):t;t.currentTime=o.currentTime,yield new Promise(e=>{t.addEventListener("seeked",e,{once:!0})});var n=r.createElement("canvas");n.width=o.offsetWidth,n.height=o.offsetHeight;try{const o=n.getContext("2d");o&&o.drawImage(t,0,0,n.width,n.height)}catch(r){return j("Failed to clone video",r),o.poster?x(o.poster,o.ownerDocument):t}return le(n)}return t})}(e):e.cloneNode(!1);var r,n=e;try{if(null!=(r=null==n?void 0:n.contentDocument)&&r.body)return C(n.contentDocument.body,t)}catch(n){j("Failed to clone iframe",n)}return n.cloneNode(!1)}(v,b);if(b.isEnable("removeAbnormalAttributes")){const v=r.getAttributeNames();for(let e=v.length,t=0;t<e;t++){const b=v[t];Ae.test(b)||r.removeAttribute(b)}}const t=b.currentNodeStyle=function(e,t,r,n){const{ownerWindow:o,includeStyleProperties:i,currentParentNodeStyle:l}=n,a=t.style,c=o.getComputedStyle(e),u=oe(e,null,n);null!=l&&l.forEach((e,t)=>{u.delete(t)});n=ie(c,u,i);return n.delete("transition-property"),n.delete("all"),n.delete("d"),n.delete("content"),r&&(n.delete("margin-top"),n.delete("margin-right"),n.delete("margin-bottom"),n.delete("margin-left"),n.delete("margin-block-start"),n.delete("margin-block-end"),n.delete("margin-inline-start"),n.delete("margin-inline-end"),n.set("box-sizing",["border-box",""])),"text"===(null==(r=n.get("background-clip"))?void 0:r[0])&&t.classList.add("______background-clip--text"),N&&(n.has("font-kerning")||n.set("font-kerning",["normal",""]),"hidden"===(null==(r=n.get("overflow-x"))?void 0:r[0])||"hidden"===(null==(t=n.get("overflow-y"))?void 0:t[0]))&&"ellipsis"===(null==(r=n.get("text-overflow"))?void 0:r[0])&&e.scrollWidth===e.clientWidth&&n.set("text-overflow",["clip",""]),n.forEach(([e,t],r)=>{a.setProperty(r,e,t)}),n}(v,r,S,b);if(S){var o=r;var{backgroundColor:i,width:l,height:a,style:c}=b,u=o.style;if(i&&u.setProperty("background-color",i,"important"),l&&u.setProperty("width",l+"px","important"),a&&u.setProperty("height",a+"px","important"),c)for(const o in c)u[o]=c[o]}let e=!1;if(b.isEnable("copyScrollbar")){const b=[null==(o=t.get("overflow-x"))?void 0:o[0],null==(i=t.get("overflow-y"))?void 0:i[1]];e=b.includes("scroll")||(b.includes("auto")||b.includes("overlay"))&&(v.scrollHeight>v.clientHeight||v.scrollWidth>v.clientWidth)}{var s=v;var d=r;l=e;var f=b;const{ownerWindow:g,svgStyleElement:p,svgStyles:y,currentNodeStyle:w}=f;function h(t){var e=g.getComputedStyle(s,t);let r=e.getPropertyValue("content");if(r&&"none"!==r){r=r.replace(/(')|(")|(counter\(.+\))/g,"");const o=[U()],i=oe(s,t,f);null!=w&&w.forEach((e,t)=>{i.delete(t)});e=ie(e,i,f.includeStyleProperties);e.delete("content"),e.delete("-webkit-locale"),"text"===(null==(n=e.get("background-clip"))?void 0:n[0])&&d.classList.add("______background-clip--text");const l=[`content: '${r}';`];if(e.forEach(([e,t],r)=>{l.push(r+`: ${e}${t?" !important":""};`)}),1!==l.length){try{d.className=[d.className,...o].join(" ")}catch(e){return}var n=l.join("\n ");let e=y.get(n);e||(e=[],y.set(n,e)),e.push(`.${o[0]}:`+t)}}}p&&g&&(Ee.forEach(h),l)&&xe.forEach(h)}return a=v,m=r,O(a)&&(m.innerHTML=a.value),!O(a)&&"INPUT"!==a.tagName&&"SELECT"!==a.tagName||m.setAttribute("value",a.value),null!=(m=te(null==(m=t.get("font-family"))?void 0:m[0]))&&m.forEach(e=>n.add(e)),F(v)||(yield ce(v,r,b)),r}var m=v.cloneNode(!1);return yield ce(v,m,b),m})}function ue(e){if(e.ownerDocument=void 0,e.ownerWindow=void 0,e.svgStyleElement=void 0,e.svgDefsElement=void 0,e.svgStyles.clear(),e.defaultComputedStyles.clear(),e.sandbox){try{e.sandbox.remove()}catch(e){}e.sandbox=void 0}e.workers=[],e.fontFamilies.clear(),e.fontCssTexts.clear(),e.requests.clear(),e.tasks=[]}function v(a,e){const{url:c,requestType:u="text",responseType:t="text",imageDom:r}=e;let n=c;const{timeout:o,acceptOfImage:i,requests:s,fetchFn:d,fetch:{requestInit:l,bypassingCache:f,placeholderImage:h},workers:m}=a;"image"===u&&(S||T)&&a.drawImageCount++;let g=s.get(c);if(!g){f&&f instanceof RegExp&&f.test(n)&&(n+=(/\?/.test(n)?"&":"?")+(new Date).getTime());const a=y({url:n,timeout:o,responseType:t,headers:"image"===u?{accept:i}:void 0},l);(g={type:u,resolve:void 0,reject:void 0,response:null}).response=E(this,null,function*(){if(d&&"image"===u){const a=yield d(c);if(a)return a}if(!S&&c.startsWith("http")&&m.length)return new Promise((e,t)=>{m[s.size&m.length-1].postMessage(y({rawUrl:c},a)),g.resolve=e,g.reject=t});{const e=a,{url:t,timeout:r,responseType:n}=e,o=((e,t)=>{var r={};for(n in e)$.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&p)for(var n of p(e))t.indexOf(n)<0&&V.call(e,n)&&(r[n]=e[n]);return r})(e,["url","timeout","responseType"]),i=new AbortController,l=r?setTimeout(()=>i.abort(),r):void 0;return fetch(t,y({signal:i.signal},o)).then(e=>{if(e.ok)return"dataUrl"!==n?e.text():e.blob().then(ve);throw new Error("Failed fetch, not 2xx response",{cause:e})}).finally(()=>clearTimeout(l))}}).catch(e=>{if(s.delete(c),"image"===u&&h)return j("Failed to fetch image base64, trying to use placeholder image",n),"string"==typeof h?h:h(r);throw e}),s.set(c,g)}return g.response}function se(r,n,o,i){return E(this,null,function*(){if(de(r))for(var[t,e]of function(n){const o=[];return r.replace(Ce,(e,t,r)=>(o.push([r,Y(r,n)]),e)),o.filter(([e])=>!I(e))}(n))try{const n=yield v(o,{url:e,requestType:i?"image":"text",responseType:"dataUrl"});r=r.replace(function(e){e=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${e})(['"]?\\))`,"g")}(t),`$1${n}$3`)}catch(e){j("Failed to fetch css data url",t,e)}return r})}function de(e){return/url\((['"]?)([^'"]+?)\1\)/.test(e)}const Ce=/url\((['"]?)([^'"]+?)\1\)/g,Ne=/(\/\*[\s\S]*?\*\/)/gi,Te=/((@.*?keyframes [\s\S]*?){([\s\S]*?}\s*?)})/gi,ke=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,De=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function fe(e,t){const r=t["font"],n=!r||null==r?void 0:r.preferredFormat;return n?e.replace(De,e=>{for(;;){var[t,,r]=ke.exec(e)||[];if(!r)return"";if(r===n)return`src: ${t};`}}):e}const Le=["background-image","border-image-source","-webkit-border-image","-webkit-mask-image","list-style-image"];function he(p,y){return E(this,null,function*(){var n=yield w(p,y);if(k(n.node)&&D(n.node))return n.node;const{ownerDocument:e,log:t,tasks:r,svgStyleElement:o,svgDefsElement:i,svgStyles:l,font:a,progress:c,autoDestruct:u,onCloneNode:s,onEmbedNode:d,onCreateForeignObjectSvg:f}=n;t.time("clone node");var h=yield C(n.node,n,!0);if(o&&e){let r="";l.forEach((e,t)=>{r+=e.join(",\n")+` {
|
|
2
|
+
${t}
|
|
3
|
+
}
|
|
4
|
+
`}),o.appendChild(e.createTextNode(r))}t.timeEnd("clone node"),null!=s&&s(h),!1!==a&&k(h)&&(t.time("embed web font"),yield function(a){return E(this,null,function*(){const{ownerDocument:n,svgStyleElement:o,fontFamilies:t,fontCssTexts:i,tasks:l,font:e}=a;if(n&&o&&t.size)if(e&&e.cssText){const t=fe(e.cssText,a);o.appendChild(n.createTextNode(t+"\n"))}else{const e=Array.from(n.styleSheets).filter(t=>{try{return"cssRules"in t&&Boolean(t.cssRules.length)}catch(e){return j("Error while reading CSS rules from "+t.href,e),!1}});yield Promise.all(e.flatMap(i=>Array.from(i.cssRules).map((r,o)=>E(this,null,function*(){if("CSSImportRule"===r.constructor.name){let e=o+1;const n=r.href;let t="";try{t=yield v(a,{url:n,requestType:"text",responseType:"text"})}catch(e){j("Error fetch remote css import from "+n,e)}for(const a of function(e){if(null==e)return[];var t=[];let r=e.replace(Ne,"");for(;;){const e=Te.exec(r);if(!e)break;t.push(e[0])}r=r.replace(Te,"");for(var n=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,o=new RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");;){let e=n.exec(r);if(e)o.lastIndex=n.lastIndex;else{if(!(e=o.exec(r)))break;n.lastIndex=o.lastIndex}t.push(e[0])}return t}(t.replace(Ce,(e,t,r)=>e.replace(r,Y(r,n)))))try{i.insertRule(a,a.startsWith("@import")?e+=1:i.cssRules.length)}catch(e){j("Error inserting rule from remote css import",{rule:a,error:e})}}})))),e.flatMap(e=>Array.from(e.cssRules)).filter(e=>{return"CSSFontFaceRule"===e.constructor.name&&de(e.style.getPropertyValue("src"))&&(null==(e=te(e.style.getPropertyValue("font-family")))?void 0:e.some(e=>t.has(e)))}).forEach(e=>{const t=e,r=i.get(t.cssText);r?o.appendChild(n.createTextNode(r+"\n")):l.push(se(t.cssText,t.parentStyleSheet?t.parentStyleSheet.href:null,a).then(e=>{e=fe(e,a),i.set(t.cssText,e),o.appendChild(n.createTextNode(e+"\n"))}))})}})}(n),t.timeEnd("embed web font")),t.time("embed node"),function t(e,r){var n,o,i=r.tasks;k(e)&&((_(e)||L(e))&&i.push(...function(t,e){if(_(t)){const r=t.currentSrc||t.src;if(!I(r))return[v(e,{url:r,imageDom:t,requestType:"image",responseType:"dataUrl"}).then(e=>{e&&(t.srcset="",t.dataset.originalSrc=r,t.src=e||"")})];(S||T)&&e.drawImageCount++}else if(D(t)&&!I(t.href.baseVal)){const n=t.href.baseVal;return[v(e,{url:n,imageDom:t,requestType:"image",responseType:"dataUrl"}).then(e=>{e&&(t.dataset.originalSrc=n,t.href.baseVal=e||"")})]}return[]}(e,r)),"use"===e.tagName)&&i.push(...function(e,t){var r;const{ownerDocument:n,svgDefsElement:o}=t,i=null!=(r=e.getAttribute("href"))?r:e.getAttribute("xlink:href");if(i){var[l,a]=i.split("#");if(a){const r="#"+a,i=null==n?void 0:n.querySelector("svg "+r);if(l&&e.setAttribute("href",r),null!=o&&o.querySelector(r))return[];if(i)return null!=o&&o.appendChild(i.cloneNode(!0)),[];if(l)return[v(t,{url:l,responseType:"text"}).then(e=>{null!=o&&o.insertAdjacentHTML("beforeend",e)})]}}return[]}(e,r)),P(e)&&i.push(...(n=e.style,o=r,Le.map(t=>{const r=n.getPropertyValue(t);return r&&"none"!==r?((S||T)&&o.drawImageCount++,se(r,null,o,!0).then(e=>{e&&r!==e&&n.setProperty(t,e,n.getPropertyPriority(t))})):null}).filter(Boolean))),e.childNodes.forEach(e=>{t(e,r)})}(h,n);const m=r.length;let g=0;null!=c&&c(g,m),yield Promise.all([...Array(4)].map(()=>E(this,null,function*(){for(;;){var e=r.pop();if(!e)break;try{yield e}catch(e){j("Failed to run task",e)}null!=c&&c(++g,m)}}))),t.timeEnd("embed node"),null!=d&&d(h);h=function(e){var{width:t,height:r}=n,t=J(t,r,e.ownerDocument),r=t.ownerDocument.createElementNS(t.namespaceURI,"foreignObject");return r.setAttributeNS(null,"x","0%"),r.setAttributeNS(null,"y","0%"),r.setAttributeNS(null,"width","100%"),r.setAttributeNS(null,"height","100%"),r.append(e),t.appendChild(r),t}(h);return i&&h.insertBefore(i,h.children[0]),o&&h.insertBefore(o,h.children[0]),u&&ue(n),null!=f&&f(h),h})}function f(o,i){return E(this,null,function*(){var e=yield w(o,i),t=yield he(e),r=K(t,e.isEnable("removeControlCharacter")),n=(e.autoDestruct||(e.svgStyleElement=ne(e.ownerDocument),e.svgDefsElement=null==(n=e.ownerDocument)?void 0:n.createElementNS(R,"defs"),e.svgStyles.clear()),x(r,t.ownerDocument));return yield function(c,u){return E(this,null,function*(){const{log:e,timeout:t,drawImageCount:r,drawImageInterval:n}=u,o=(e.time("image to canvas"),yield A(c,{timeout:t})),{canvas:i,context2d:l}=function(e){var{width:t,height:r,scale:n,backgroundColor:o,maximumCanvasSize:i}=u,e=e.createElement("canvas"),n=(e.width=Math.floor(t*n),e.height=Math.floor(r*n),e.style.width=t+"px",e.style.height=r+"px",i&&(e.width>i||e.height>i)&&(e.width>i&&e.height>i?e.width>e.height?(e.height*=i/e.width,e.width=i):(e.width*=i/e.height,e.height=i):e.width>i?(e.height*=i/e.width,e.width=i):(e.width*=i/e.height,e.height=i)),e.getContext("2d"));return n&&o&&(n.fillStyle=o,n.fillRect(0,0,e.width,e.height)),{canvas:e,context2d:n}}(c.ownerDocument),a=()=>{try{null!=l&&l.drawImage(o,0,0,i.width,i.height)}catch(e){j("Failed to drawImage",e)}};if(a(),u.isEnable("fixSvgXmlDecode"))for(let t=0;t<r;t++)yield new Promise(e=>{setTimeout(()=>{a(),e()},t+n)});return u.drawImageCount=0,e.timeEnd("image to canvas"),i})}(n,e)})}function c(s,d){return E(this,null,function*(){const e=yield w(s,d),{log:t,quality:r,type:n,dpi:o}=e,i=yield f(e);t.time("canvas to data url");let l=i.toDataURL(n,r);if(["image/png","image/jpeg"].includes(n)&&o&&h&&pe){const[s,d]=l.split(",");let e=0,t=!1;if("image/png"===n){const s=function(e){let t=e.indexOf("AAlwSFlz");return t=-1===(t=-1===t?e.indexOf("AAAJcEhZ"):t)?e.indexOf("AAAACXBI"):t}(d);0<=s?(e=4*Math.ceil((s+28)/3),t=!0):e=44}else"image/jpeg"===n&&(e=24);const r=d.substring(0,e),i=d.substring(e),c=window.atob(r),u=new Uint8Array(c.length);for(let e=0;e<u.length;e++)u[e]=c.charCodeAt(e);var a="image/png"===n?X(u,o,t):H(u,o);l=[s,",",window.btoa(String.fromCharCode(...a)),i].join("")}return t.timeEnd("canvas to data url"),l})}function me(i,l){return E(this,null,function*(){var e=yield w(i,l),{width:t,height:r,ownerDocument:n}=e,o=yield c(e),t=J(t,r,n),r=t.ownerDocument.createElementNS(t.namespaceURI,"image");return r.setAttributeNS(null,"href",o),r.setAttributeNS(null,"height","100%"),r.setAttributeNS(null,"width","100%"),t.appendChild(r),K(t,e.isEnable("removeControlCharacter"))})}e.createContext=re,e.destroyContext=ue,e.domToBlob=function(i,l){return E(this,null,function*(){var t=yield w(i,l),{log:r,type:n,quality:e,dpi:o}=t,t=yield f(t),t=(r.time("canvas to blob"),yield Q(t,n,e));if(["image/png","image/jpeg"].includes(n)&&o){const i=yield Z(t.slice(0,33),"arrayBuffer");let e=new Uint8Array(i);return"image/png"===n?e=X(e,o):"image/jpeg"===n&&(e=H(e,o)),r.timeEnd("canvas to blob"),new Blob([e,t.slice(33)],{type:n})}return r.timeEnd("canvas to blob"),t})},e.domToCanvas=f,e.domToDataUrl=c,e.domToForeignObjectSvg=he,e.domToImage=function(l,a){return E(this,null,function*(){var e=yield w(l,a),{ownerDocument:t,width:r,height:n,scale:o,type:i}=e,i=x("image/svg+xml"===i?yield me(e):yield c(e),t);return i.width=Math.floor(r*o),i.height=Math.floor(n*o),i.style.width=r+"px",i.style.height=n+"px",i})},e.domToJpeg=function(e,t){return E(this,null,function*(){return c(yield w(e,m(y({},t),{type:"image/jpeg"})))})},e.domToPixel=function(t,r){return E(this,null,function*(){var e=yield f(yield w(t,r));return e.getContext("2d").getImageData(0,0,e.width,e.height).data})},e.domToPng=function(e,t){return E(this,null,function*(){return c(yield w(e,m(y({},t),{type:"image/png"})))})},e.domToSvg=me,e.domToWebp=function(e,t){return E(this,null,function*(){return c(yield w(e,m(y({},t),{type:"image/webp"})))})},e.loadMedia=A,e.waitUntilLoad=ee,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|