@sillsdev/config-r 1.0.0-alpha.3 → 1.0.0-alpha.5
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/dist/ConfigrColorPicker.d.ts +2 -0
- package/dist/ContentPane.d.ts +4 -0
- package/dist/configr.es.js +39 -28
- package/dist/configr.umd.js +13 -13
- package/package.json +6 -1
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
export declare const ConfigrColorPicker: React.FunctionComponent<{
|
|
3
3
|
value: string;
|
|
4
|
+
disabled?: boolean;
|
|
4
5
|
onChange: (value: string) => void;
|
|
5
6
|
}>;
|
|
6
7
|
export declare const SwatchButton: React.FunctionComponent<{
|
|
7
8
|
color: string;
|
|
9
|
+
disabled?: boolean;
|
|
8
10
|
onClick: () => void;
|
|
9
11
|
}>;
|
package/dist/ContentPane.d.ts
CHANGED
|
@@ -29,8 +29,10 @@ export declare const ConfigrInput: React.FunctionComponent<React.PropsWithChildr
|
|
|
29
29
|
export declare const ConfigrCustomStringInput: React.FunctionComponent<React.PropsWithChildren<{
|
|
30
30
|
path: string;
|
|
31
31
|
label: string;
|
|
32
|
+
disabled?: boolean;
|
|
32
33
|
control: React.FunctionComponent<{
|
|
33
34
|
value: string;
|
|
35
|
+
disabled?: boolean;
|
|
34
36
|
onChange: (value: string) => void;
|
|
35
37
|
}>;
|
|
36
38
|
getErrorMessage?: (data: any) => string | undefined;
|
|
@@ -63,6 +65,7 @@ export declare const ConfigrSelect: React.FunctionComponent<React.PropsWithChild
|
|
|
63
65
|
path: string;
|
|
64
66
|
label: string;
|
|
65
67
|
indented?: boolean;
|
|
68
|
+
disabled?: boolean;
|
|
66
69
|
options: Array<{
|
|
67
70
|
value: string;
|
|
68
71
|
label?: string;
|
|
@@ -93,6 +96,7 @@ export declare const ConfigrForEach: React.FunctionComponent<React.PropsWithChil
|
|
|
93
96
|
export declare const ConfigrBoolean: React.FunctionComponent<React.PropsWithChildren<{
|
|
94
97
|
path: string;
|
|
95
98
|
label: string;
|
|
99
|
+
disabled?: boolean;
|
|
96
100
|
description?: string;
|
|
97
101
|
immediateEffect?: boolean;
|
|
98
102
|
}>>;
|
package/dist/configr.es.js
CHANGED
|
@@ -3223,8 +3223,8 @@ const wy = Aa, Ey = (e) => {
|
|
|
3223
3223
|
elevation: 2,
|
|
3224
3224
|
css: ve`
|
|
3225
3225
|
//width: 100%; doesn't work with shadow
|
|
3226
|
-
margin-left:
|
|
3227
|
-
margin-right:
|
|
3226
|
+
margin-left: 2px; //needed to show shadow
|
|
3227
|
+
margin-right: 2px; //needed to show shadow
|
|
3228
3228
|
margin-bottom: 12px !important;
|
|
3229
3229
|
`,
|
|
3230
3230
|
children: /* @__PURE__ */ x(
|
|
@@ -3302,7 +3302,8 @@ ko(t, e.path)) ? null : /* @__PURE__ */ x(X.Fragment, { children: e.children })
|
|
|
3302
3302
|
css: ve`
|
|
3303
3303
|
&,
|
|
3304
3304
|
* {
|
|
3305
|
-
|
|
3305
|
+
// this is a hack... we need to figured out how to have this MUI List stuff allow a text along the bottom
|
|
3306
|
+
max-width: calc(100% - 200px);
|
|
3306
3307
|
}
|
|
3307
3308
|
`,
|
|
3308
3309
|
children: e.description
|
|
@@ -3388,7 +3389,7 @@ ko(t, e.path)) ? null : /* @__PURE__ */ x(X.Fragment, { children: e.children })
|
|
|
3388
3389
|
at,
|
|
3389
3390
|
{
|
|
3390
3391
|
...e,
|
|
3391
|
-
control: /* @__PURE__ */ x(e.control, { value: a, onChange: i })
|
|
3392
|
+
control: /* @__PURE__ */ x(e.control, { disabled: e.disabled, value: a, onChange: i })
|
|
3392
3393
|
}
|
|
3393
3394
|
);
|
|
3394
3395
|
}, xP = (e) => {
|
|
@@ -3421,7 +3422,7 @@ function wP(e) {
|
|
|
3421
3422
|
);
|
|
3422
3423
|
}
|
|
3423
3424
|
const EP = (e) => {
|
|
3424
|
-
const t = !Xy(!0, e.enableWhen);
|
|
3425
|
+
const t = e.disabled || !Xy(!0, e.enableWhen);
|
|
3425
3426
|
return /* @__PURE__ */ x(
|
|
3426
3427
|
at,
|
|
3427
3428
|
{
|
|
@@ -3486,7 +3487,16 @@ const EP = (e) => {
|
|
|
3486
3487
|
}, TP = (e) => {
|
|
3487
3488
|
const [t, r, n] = Ot(e.path);
|
|
3488
3489
|
(t.value === void 0 || t.value === null) && window.setTimeout(() => n.setValue(!1), 0);
|
|
3489
|
-
const a = e.immediateEffect ? /* @__PURE__ */ x(Tr, { component: eu, type: "checkbox", name: e.path, label: e.label }) : /* @__PURE__ */ x(
|
|
3490
|
+
const a = e.immediateEffect ? /* @__PURE__ */ x(Tr, { component: eu, type: "checkbox", name: e.path, label: e.label }) : /* @__PURE__ */ x(
|
|
3491
|
+
Tr,
|
|
3492
|
+
{
|
|
3493
|
+
component: Zl,
|
|
3494
|
+
type: "checkbox",
|
|
3495
|
+
disabled: e.disabled,
|
|
3496
|
+
name: e.path,
|
|
3497
|
+
label: e.label
|
|
3498
|
+
}
|
|
3499
|
+
);
|
|
3490
3500
|
return /* @__PURE__ */ x(
|
|
3491
3501
|
at,
|
|
3492
3502
|
{
|
|
@@ -5444,9 +5454,9 @@ var s1 = function(e) {
|
|
|
5444
5454
|
});
|
|
5445
5455
|
};
|
|
5446
5456
|
const FP = (e) => {
|
|
5447
|
-
const [t, r] = ke(0), n = e.themeOverrides ? Ki(jo, e.themeOverrides) : Ki(jo), a = X.Children.toArray(e.children).length > 1, [i, o] = ke(e.initialValues), s = (
|
|
5448
|
-
e.setValueOnRender && e.setValueOnRender(
|
|
5449
|
-
};
|
|
5457
|
+
const [t, r] = ke(0), n = e.themeOverrides ? Ki(jo, e.themeOverrides) : Ki(jo), a = X.Children.toArray(e.children).length > 1, [i, o] = ke(e.initialValues), s = (d) => {
|
|
5458
|
+
e.setValueOnRender && e.setValueOnRender(d), o(d);
|
|
5459
|
+
}, { setValueOnRender: c, ...u } = e;
|
|
5450
5460
|
return /* @__PURE__ */ ne(
|
|
5451
5461
|
"div",
|
|
5452
5462
|
{
|
|
@@ -5455,28 +5465,27 @@ const FP = (e) => {
|
|
|
5455
5465
|
flex-direction: row;
|
|
5456
5466
|
`,
|
|
5457
5467
|
children: [
|
|
5458
|
-
/* @__PURE__ */ x(rf, { theme: n, children: /* @__PURE__ */ x(Ny, { children: /* @__PURE__ */ x(or.Consumer, { children: ({ searchString:
|
|
5468
|
+
/* @__PURE__ */ x(rf, { theme: n, children: /* @__PURE__ */ x(Ny, { children: /* @__PURE__ */ x(or.Consumer, { children: ({ searchString: d, setSearchString: l }) => /* @__PURE__ */ ne(X.Fragment, { children: [
|
|
5459
5469
|
e.showAppBar && /* @__PURE__ */ x(
|
|
5460
5470
|
yf,
|
|
5461
5471
|
{
|
|
5462
5472
|
label: e.label,
|
|
5463
5473
|
showSearch: e.showSearch,
|
|
5464
|
-
searchValue:
|
|
5465
|
-
setSearchString: (
|
|
5466
|
-
|
|
5474
|
+
searchValue: d,
|
|
5475
|
+
setSearchString: (f) => {
|
|
5476
|
+
d !== f && (l(f), r(f ? void 0 : 0));
|
|
5467
5477
|
}
|
|
5468
5478
|
}
|
|
5469
5479
|
),
|
|
5470
5480
|
/* @__PURE__ */ ne(
|
|
5471
5481
|
"div",
|
|
5472
5482
|
{
|
|
5483
|
+
id: "configr-pane",
|
|
5473
5484
|
css: ve`
|
|
5474
5485
|
// no. Make client set the background color: background-color: #f8f9fa;
|
|
5475
5486
|
height: 100%;
|
|
5476
5487
|
display: flex;
|
|
5477
|
-
padding-
|
|
5478
|
-
padding-left: ${a ? void 0 : "20px"};
|
|
5479
|
-
|
|
5488
|
+
//padding-left: ${a ? void 0 : "20px"};
|
|
5480
5489
|
.MuiTab-wrapper {
|
|
5481
5490
|
text-align: left;
|
|
5482
5491
|
align-items: start;
|
|
@@ -5496,8 +5505,8 @@ const FP = (e) => {
|
|
|
5496
5505
|
Gy,
|
|
5497
5506
|
{
|
|
5498
5507
|
currentGroupIndex: t,
|
|
5499
|
-
|
|
5500
|
-
|
|
5508
|
+
...u,
|
|
5509
|
+
setValueOnRender: s
|
|
5501
5510
|
}
|
|
5502
5511
|
)
|
|
5503
5512
|
]
|
|
@@ -12468,20 +12477,20 @@ Ui.defaultProps = {
|
|
|
12468
12477
|
};
|
|
12469
12478
|
De(Ui);
|
|
12470
12479
|
const kP = (e) => {
|
|
12471
|
-
const [t, r] = ke(!1), [n, a] = ke(e.value)
|
|
12480
|
+
const [t, r] = ke(!1), [n, a] = ke(e.value), i = () => {
|
|
12481
|
+
r(!t);
|
|
12482
|
+
}, o = () => {
|
|
12483
|
+
r(!1);
|
|
12484
|
+
}, s = (c) => {
|
|
12485
|
+
a(c.hex), e.onChange && e.onChange(c.hex);
|
|
12486
|
+
};
|
|
12472
12487
|
return /* @__PURE__ */ ne("div", { children: [
|
|
12473
|
-
/* @__PURE__ */ x(tP, { color: n, onClick:
|
|
12474
|
-
|
|
12475
|
-
} }),
|
|
12476
|
-
/* @__PURE__ */ x(Xc, { open: t, onClose: () => {
|
|
12477
|
-
r(!1);
|
|
12478
|
-
}, children: /* @__PURE__ */ x(
|
|
12488
|
+
/* @__PURE__ */ x(tP, { disabled: e.disabled, color: n, onClick: i }),
|
|
12489
|
+
/* @__PURE__ */ x(Xc, { open: t, onClose: o, children: /* @__PURE__ */ x(
|
|
12479
12490
|
T5,
|
|
12480
12491
|
{
|
|
12481
12492
|
color: n,
|
|
12482
|
-
onChange:
|
|
12483
|
-
a(c.hex), e.onChange && e.onChange(c.hex);
|
|
12484
|
-
},
|
|
12493
|
+
onChange: s,
|
|
12485
12494
|
css: ve`
|
|
12486
12495
|
padding: 10px;
|
|
12487
12496
|
`
|
|
@@ -12492,11 +12501,13 @@ const kP = (e) => {
|
|
|
12492
12501
|
"button",
|
|
12493
12502
|
{
|
|
12494
12503
|
onClick: e.onClick,
|
|
12504
|
+
disabled: e.disabled,
|
|
12495
12505
|
css: ve`
|
|
12496
12506
|
border: solid 1px black;
|
|
12497
12507
|
background-color: white;
|
|
12498
12508
|
padding: 2px;
|
|
12499
12509
|
cursor: pointer;
|
|
12510
|
+
opacity: ${e.disabled ? 0.2 : 1};
|
|
12500
12511
|
`,
|
|
12501
12512
|
children: /* @__PURE__ */ x(
|
|
12502
12513
|
"div",
|
package/dist/configr.umd.js
CHANGED
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
margin-bottom: 12px !important;
|
|
45
45
|
`,children:[m.jsx(j.Typography,{variant:e.level===2?"h3":"h2",children:e.label}),m.jsx(j.Typography,{variant:"caption",children:e.description})]}),e.level===1?m.jsx("div",{className:"indentIfInSubPage",children:e.children}):m.jsx(Bb,{children:e.children})]}),Bb=e=>{const t=Hb(e);return m.jsx(j.Paper,{className:"indentIfInSubPage",elevation:2,css:ce.css`
|
|
46
46
|
//width: 100%; doesn't work with shadow
|
|
47
|
-
margin-left:
|
|
48
|
-
margin-right:
|
|
47
|
+
margin-left: 2px; //needed to show shadow
|
|
48
|
+
margin-right: 2px; //needed to show shadow
|
|
49
49
|
margin-bottom: 12px !important;
|
|
50
50
|
`,children:m.jsx(j.List,{component:"nav",css:ce.css`
|
|
51
51
|
width: calc(100% - 20px);
|
|
@@ -64,7 +64,8 @@
|
|
|
64
64
|
`,primary:e.label,secondary:m.jsx(j.Typography,{variant:"caption",css:ce.css`
|
|
65
65
|
&,
|
|
66
66
|
* {
|
|
67
|
-
|
|
67
|
+
// this is a hack... we need to figured out how to have this MUI List stuff allow a text along the bottom
|
|
68
|
+
max-width: calc(100% - 200px);
|
|
68
69
|
}
|
|
69
70
|
`,children:e.description})}),m.jsx(j.ListItemSecondaryAction,{css:ce.css`
|
|
70
71
|
// OK, this feels like a hack. But the MUI default puts it at
|
|
@@ -81,7 +82,7 @@
|
|
|
81
82
|
input {
|
|
82
83
|
text-align: end;
|
|
83
84
|
}
|
|
84
|
-
`})}),Ub=e=>{const[t,r,n]=yt(e.path),{value:a}=r,{setValue:i}=n;return m.jsx(Ye,{...e,control:m.jsx(e.control,{value:a,onChange:i})})},zb=e=>{const[t,r,n]=yt(e.path),{value:a}=r,{setValue:i}=n;return m.jsx(Ye,{...e,control:m.jsx(e.control,{value:a,onChange:i})})},Wb=e=>{const[t,r,n]=yt(e.path),{value:a}=r,{setValue:i}=n;return m.jsx(Ye,{...e,control:m.jsx(e.control,{value:a,onChange:i})})};function Kb(e){const[t,r,n]=yt(e.path),{value:a}=r,{setValue:i}=n;return m.jsx(Ye,{...e,control:m.jsx(e.control,{value:a,onChange:i})})}const qb=e=>{const t
|
|
85
|
+
`})}),Ub=e=>{const[t,r,n]=yt(e.path),{value:a}=r,{setValue:i}=n;return m.jsx(Ye,{...e,control:m.jsx(e.control,{disabled:e.disabled,value:a,onChange:i})})},zb=e=>{const[t,r,n]=yt(e.path),{value:a}=r,{setValue:i}=n;return m.jsx(Ye,{...e,control:m.jsx(e.control,{value:a,onChange:i})})},Wb=e=>{const[t,r,n]=yt(e.path),{value:a}=r,{setValue:i}=n;return m.jsx(Ye,{...e,control:m.jsx(e.control,{value:a,onChange:i})})};function Kb(e){const[t,r,n]=yt(e.path),{value:a}=r,{setValue:i}=n;return m.jsx(Ye,{...e,control:m.jsx(e.control,{value:a,onChange:i})})}const qb=e=>{const t=e.disabled||!ay(!0,e.enableWhen);return m.jsx(Ye,{...e,disabled:t,control:m.jsx(wr,{name:e.path,disabled:t,component:Qo,sx:{minWidth:180},css:ce.css`
|
|
85
86
|
.MuiSelect-select {
|
|
86
87
|
padding: 3px !important;
|
|
87
88
|
padding-left: 9px !important;
|
|
@@ -95,7 +96,7 @@
|
|
|
95
96
|
margin-left: 20px;
|
|
96
97
|
//margin-right: 20px;
|
|
97
98
|
}
|
|
98
|
-
`,children:m.jsx(hs,{children:e.children})})]}):m.jsx(Ye,{onClick:()=>r(e.path),control:m.jsx(ic,{}),...e})}),Xb=e=>{const{values:t}=gt(),r=bs(t,e.path);return m.jsx(X.Fragment,{children:r.map((n,a)=>e.render(`${e.path}[${a}]`,a))})},Jb=e=>{const[t,r,n]=yt(e.path);(t.value===void 0||t.value===null)&&window.setTimeout(()=>n.setValue(!1),0);const a=e.immediateEffect?m.jsx(wr,{component:es,type:"checkbox",name:e.path,label:e.label}):m.jsx(wr,{component:Zo,type:"checkbox",name:e.path,label:e.label});return m.jsx(Ye,{onClick:()=>{n.setValue(!t.value)},control:a,...e})},Zb=e=>m.jsx(Gb,{...e,control:m.jsx(vs,{...e})}),vs=e=>{const[t]=yt(e.path);return console.log("radiogroup field "+JSON.stringify(t)),m.jsx(j.RadioGroup,{row:e.row,...t,...e,children:e.children})},Qb=e=>{const t=j.useRadioGroup();return console.log("useRadioGroup "+JSON.stringify(t)),e.label?m.jsx(j.FormControlLabel,{value:e.value,control:m.jsx(j.Radio,{}),label:e.label}):m.jsx(X.Fragment,{children:e.children})},ey=e=>m.jsx(Ye,{...e,control:m.jsx(gs,{...e})}),gs=e=>m.jsx(wr,{component:rs,name:e.path,type:"checkbox",exclusive:!0,children:e.children});function ty(e,t){return m.jsx(j.ToggleButton,{value:e,children:t})}const ry=e=>{const{setFieldValue:t}=gt(),[r]=yt(e.path);return m.jsx(Ye,{...e,height:"50px",control:m.jsxs("div",{css:ce.css`
|
|
99
|
+
`,children:m.jsx(hs,{children:e.children})})]}):m.jsx(Ye,{onClick:()=>r(e.path),control:m.jsx(ic,{}),...e})}),Xb=e=>{const{values:t}=gt(),r=bs(t,e.path);return m.jsx(X.Fragment,{children:r.map((n,a)=>e.render(`${e.path}[${a}]`,a))})},Jb=e=>{const[t,r,n]=yt(e.path);(t.value===void 0||t.value===null)&&window.setTimeout(()=>n.setValue(!1),0);const a=e.immediateEffect?m.jsx(wr,{component:es,type:"checkbox",name:e.path,label:e.label}):m.jsx(wr,{component:Zo,type:"checkbox",disabled:e.disabled,name:e.path,label:e.label});return m.jsx(Ye,{onClick:()=>{n.setValue(!t.value)},control:a,...e})},Zb=e=>m.jsx(Gb,{...e,control:m.jsx(vs,{...e})}),vs=e=>{const[t]=yt(e.path);return console.log("radiogroup field "+JSON.stringify(t)),m.jsx(j.RadioGroup,{row:e.row,...t,...e,children:e.children})},Qb=e=>{const t=j.useRadioGroup();return console.log("useRadioGroup "+JSON.stringify(t)),e.label?m.jsx(j.FormControlLabel,{value:e.value,control:m.jsx(j.Radio,{}),label:e.label}):m.jsx(X.Fragment,{children:e.children})},ey=e=>m.jsx(Ye,{...e,control:m.jsx(gs,{...e})}),gs=e=>m.jsx(wr,{component:rs,name:e.path,type:"checkbox",exclusive:!0,children:e.children});function ty(e,t){return m.jsx(j.ToggleButton,{value:e,children:t})}const ry=e=>{const{setFieldValue:t}=gt(),[r]=yt(e.path);return m.jsx(Ye,{...e,height:"50px",control:m.jsxs("div",{css:ce.css`
|
|
99
100
|
height: 56px; // leave room to show the path below the button
|
|
100
101
|
`,children:[m.jsx(j.Button,{disabled:e.disabled,variant:"outlined",onClick:()=>{const n=e.chooseAction(r.value);t(e.path,n)},children:e.buttonLabel}),m.jsx("div",{css:ce.css`
|
|
101
102
|
color: ${Nb};
|
|
@@ -131,21 +132,19 @@
|
|
|
131
132
|
*
|
|
132
133
|
* This source code is licensed under the MIT license found in the
|
|
133
134
|
* LICENSE file in the root directory of this source tree.
|
|
134
|
-
*/var $s;function fy(){return $s||($s=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=f,t=_s();function r(h,l){return h===l&&(h!==0||1/h===1/l)||h!==h&&l!==l}var n=typeof Object.is=="function"?Object.is:r,a=t.useSyncExternalStore,i=e.useRef,o=e.useEffect,s=e.useMemo,c=e.useDebugValue;function u(h,l,d,p,v){var g=i(null),y;g.current===null?(y={hasValue:!1,value:null},g.current=y):y=g.current;var x=s(function(){var b=!1,T,k,W=function(he){if(!b){b=!0,T=he;var Se=p(he);if(v!==void 0&&y.hasValue){var be=y.value;if(v(be,Se))return k=be,be}return k=Se,Se}var Ce=T,se=k;if(n(Ce,he))return se;var me=p(he);return v!==void 0&&v(se,me)?se:(T=he,k=me,me)},q=d===void 0?null:d,ge=function(){return W(l())},ae=q===null?void 0:function(){return W(q())};return[ge,ae]},[l,d,p,v]),C=x[0],_=x[1],S=a(h,C,_);return o(function(){y.hasValue=!0,y.value=S},[S]),c(S),S}ia.useSyncExternalStoreWithSelector=u,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),ia}(function(e){process.env.NODE_ENV==="production"?e.exports=cy():e.exports=fy()})(oy);const dy=xc(ta),{useSyncExternalStoreWithSelector:hy}=dy;function Ts(e,t=e.getState,r){const n=hy(e.subscribe,e.getState,e.getServerState||e.getState,t,r);return f.useDebugValue(n),n}const Os=e=>{var t;((t={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1})==null?void 0:t.MODE)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const r=typeof e=="function"?iy(e):e,n=(a,i)=>Ts(r,a,i);return Object.assign(n,r),n},py=e=>e?Os(e):Os;var As=e=>{var t;return((t={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1})==null?void 0:t.MODE)!=="production"&&console.warn("[DEPRECATED] Default export is deprecated. Instead use `import { create } from 'zustand'`."),py(e)};function Ps(){var e;((e={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1})==null?void 0:e.MODE)!=="production"&&console.warn("[DEPRECATED] `context` will be removed in a future version. Instead use `import { createStore, useStore } from 'zustand'`. See: https://github.com/pmndrs/zustand/discussions/1180.");const t=f.createContext(void 0);return{Provider:({createStore:i,children:o})=>{const s=f.useRef();return s.current||(s.current=i()),f.createElement(t.Provider,{value:s.current},o)},useStore:(i,o)=>{const s=f.useContext(t);if(!s)throw new Error("Seems like you have not used zustand provider as an ancestor.");return Ts(s,i,o)},useStoreApi:()=>{const i=f.useContext(t);if(!i)throw new Error("Seems like you have not used zustand provider as an ancestor.");return f.useMemo(()=>({...i}),[i])}}}const Ms=(e,t)=>(...r)=>Object.assign({},e,t(...r));var vy=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(a){e.addRange(a)}),t&&t.focus()}},gy=vy,Is={"text/plain":"Text","text/html":"Url",default:"Text"},by="Copy to clipboard: #{key}, Enter";function yy(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function my(e,t){var r,n,a,i,o,s,c=!1;t||(t={}),r=t.debug||!1;try{a=gy(),i=document.createRange(),o=document.getSelection(),s=document.createElement("span"),s.textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",function(h){if(h.stopPropagation(),t.format)if(h.preventDefault(),typeof h.clipboardData>"u"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var l=Is[t.format]||Is.default;window.clipboardData.setData(l,e)}else h.clipboardData.clearData(),h.clipboardData.setData(t.format,e);t.onCopy&&(h.preventDefault(),t.onCopy(h.clipboardData))}),document.body.appendChild(s),i.selectNodeContents(s),o.addRange(i);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");c=!0}catch(h){r&&console.error("unable to copy using execCommand: ",h),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(l){r&&console.error("unable to copy using clipboardData: ",l),r&&console.error("falling back to prompt"),n=yy("message"in t?t.message:by),window.prompt(n,e)}}finally{o&&(typeof o.removeRange=="function"?o.removeRange(i):o.removeAllRanges()),s&&document.body.removeChild(s),a()}return c}var Fs=my;function oa(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ie(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable}))),n.forEach(function(a){oa(e,a,r[a])})}return e}function xy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function _r(e,t){return t=t??{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):xy(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function sa(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Sy(e){if(Array.isArray(e))return sa(e)}function ks(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wy(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function js(e,t){if(e){if(typeof e=="string")return sa(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sa(e,t)}}function at(e){return Sy(e)||ks(e)||js(e)||wy()}function Ey(e){if(Array.isArray(e))return e}function _y(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Me(e,t){return Ey(e)||ks(e)||js(e,t)||_y()}var la={scheme:"Light Theme",author:"mac gainor (https://github.com/mac-s-g)",base00:"rgba(0, 0, 0, 0)",base01:"rgb(245, 245, 245)",base02:"rgb(235, 235, 235)",base03:"#93a1a1",base04:"rgba(0, 0, 0, 0.3)",base05:"#586e75",base06:"#073642",base07:"#002b36",base08:"#d33682",base09:"#cb4b16",base0A:"#dc322f",base0B:"#859900",base0C:"#6c71c4",base0D:"#586e75",base0E:"#2aa198",base0F:"#268bd2"},Ds={scheme:"Dark Theme",author:"Chris Kempson (http://chriskempson.com)",base00:"#181818",base01:"#282828",base02:"#383838",base03:"#585858",base04:"#b8b8b8",base05:"#d8d8d8",base06:"#e8e8e8",base07:"#f8f8f8",base08:"#ab4642",base09:"#dc9656",base0A:"#f7ca88",base0B:"#a1b56c",base0C:"#86c1b9",base0D:"#7cafc2",base0E:"#ba8baf",base0F:"#a16946"},Ns=function(){return null};Ns.when=function(){return!1};var ua,ca,fa,da,ha,pa,va,ga,ba,ya,ma,xa,Sa,wa,Ea,Cy=function(e){return As(Ms({enableClipboard:(ua=e.enableClipboard)!==null&&ua!==void 0?ua:!0,indentWidth:(ca=e.indentWidth)!==null&&ca!==void 0?ca:3,groupArraysAfterLength:(fa=e.groupArraysAfterLength)!==null&&fa!==void 0?fa:100,collapseStringsAfterLength:e.collapseStringsAfterLength===!1?Number.MAX_VALUE:(da=e.collapseStringsAfterLength)!==null&&da!==void 0?da:50,maxDisplayLength:(ha=e.maxDisplayLength)!==null&&ha!==void 0?ha:30,rootName:(pa=e.rootName)!==null&&pa!==void 0?pa:"root",onChange:(va=e.onChange)!==null&&va!==void 0?va:function(){},onCopy:(ga=e.onCopy)!==null&&ga!==void 0?ga:void 0,keyRenderer:(ba=e.keyRenderer)!==null&&ba!==void 0?ba:Ns,editable:(ya=e.editable)!==null&&ya!==void 0?ya:!1,defaultInspectDepth:(ma=e.defaultInspectDepth)!==null&&ma!==void 0?ma:5,objectSortKeys:(xa=e.objectSortKeys)!==null&&xa!==void 0?xa:!1,quotesOnKeys:(Sa=e.quotesOnKeys)!==null&&Sa!==void 0?Sa:!0,displayDataTypes:(wa=e.displayDataTypes)!==null&&wa!==void 0?wa:!0,inspectCache:{},hoverPath:null,colorspace:la,value:e.value,displayObjectSize:(Ea=e.displayObjectSize)!==null&&Ea!==void 0?Ea:!0},function(t,r){return{getInspectCache:function(n,a){var i=a!==void 0?n.join(".")+"[".concat(a,"]nt"):n.join(".");return r().inspectCache[i]},setInspectCache:function(n,a,i){var o=i!==void 0?n.join(".")+"[".concat(i,"]nt"):n.join(".");t(function(s){return{inspectCache:_r(ie({},s.inspectCache),oa({},o,typeof a=="function"?a(s.inspectCache[o]):a))}})},setHover:function(n,a){t({hoverPath:n?{path:n,nestedIndex:a}:null})}}}))},_a=Ps(),J=_a.useStore,Ls=_a.useStoreApi,$y=_a.Provider,Ca=function(){return J(function(e){return e.colorspace.base07})};function it(e,t){return t!=null&&typeof Symbol<"u"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function Ty(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.timeout,r=t===void 0?2e3:t,n=Me(f.useState(!1),2),a=n[0],i=n[1],o=f.useRef(null),s=f.useCallback(function(l){var d=o.current;d&&window.clearTimeout(d),o.current=window.setTimeout(function(){return i(!1)},r),i(l)},[r]),c=J(function(l){return l.onCopy}),u=f.useCallback(function(l,d){if(typeof c=="function")try{var p=c(l,d);it(p,Promise)?p.then(function(){s(!0)}).catch(function(g){console.error("error when copy ".concat(l.length===0?"src":"src[".concat(l.join(".")),"]"),g)}):s(!0)}catch(g){console.error("error when copy ".concat(l.length===0?"src":"src[".concat(l.join(".")),"]"),g)}else{var v=JSON.stringify(typeof d=="function"?d.toString():d,null," ");"clipboard"in navigator?navigator.clipboard.writeText(v).then(function(){return s(!0)}).catch(function(){return Fs(v)}):Fs(v)}},[s,c]),h=f.useCallback(function(){i(!1),o.current&&clearTimeout(o.current)},[]);return{copy:u,reset:h,copied:a}}var Oy=function(e,t,r){if(e===null||r===null||typeof e!="object"||typeof r!="object")return!1;if(Object.is(e,r)&&t.length!==0)return"";for(var n=[],a=at(t),i=e;i!==r||a.length!==0;){if(typeof i!="object"||i===null)return!1;if(Object.is(i,r))return n.reduce(function(s,c,u){return typeof c=="number"?s+"[".concat(c,"]"):s+"".concat(u===0?"":".").concat(c)},"");var o=a.shift();n.push(o),i=i[o]}return!1};function Cr(e){return e===null?0:Array.isArray(e)?e.length:it(e,Map)||it(e,Set)?e.size:it(e,Date)?1:typeof e=="object"?Object.keys(e).length:typeof e=="string"?e.length:1}function Ay(e,t){for(var r=[],n=0;n<e.length;)r.push(e.slice(n,n+t)),n+=t;return r}function $a(e,t){var r=J(function(n){return n.value});return f.useMemo(function(){return Oy(r,e,t)},[e,t,r])}function Py(e,t,r){var n=e.length,a=$a(e,t),i=J(function(d){return d.getInspectCache}),o=J(function(d){return d.setInspectCache}),s=J(function(d){return d.defaultInspectDepth});f.useEffect(function(){var d=i(e,r);if(d===void 0)if(r!==void 0)o(e,!1,r);else{var p=a?!1:n<s;o(e,p)}},[s,n,i,a,r,e,o]);var c=Me(f.useState(function(){var d=i(e,r);return d!==void 0?d:r!==void 0||a?!1:n<s}),2),u=c[0],h=c[1],l=f.useCallback(function(d){h(function(p){var v=typeof d=="boolean"?d:d(p);return o(e,v,r),v})},[r,e,o]);return[u,l]}function My(e){return e&&e.constructor===Symbol?"symbol":typeof e}var ot=function(e){return m.jsx(j.Box,_r(ie({component:"div"},e),{sx:ie({display:"inline-block"},e.sx)}))},Bs=function(e){var t=e.dataType,r=e.enable,n=r===void 0?!0:r;return n?m.jsx(ot,{className:"data-type-label",sx:{mx:.5,fontSize:"0.7rem",opacity:.8,userSelect:"none"},children:t}):null};function et(e,t,r){var n,a=(n=r.displayTypeLabel)!==null&&n!==void 0?n:!0,i=f.memo(t),o=function(u){var h=J(function(d){return d.displayDataTypes}),l=J(function(d){return d.colorspace[r.colorKey]});return m.jsxs(ot,{sx:{color:l},children:[a&&h&&m.jsx(Bs,{dataType:e}),m.jsx(ot,{className:"".concat(e,"-value"),children:m.jsx(i,{value:u.value})})]})};if(o.displayName="easy-".concat(e,"-type"),!r.fromString)return{Component:o};var s=r.fromString,c=function(u){var h=u.value,l=u.setValue,d=J(function(p){return p.colorspace[r.colorKey]});return m.jsx(j.InputBase,{value:h,onChange:f.useCallback(function(p){var v=s(p.target.value);l(v)},[l]),size:"small",multiline:!0,sx:{color:d,padding:.5,borderStyle:"solid",borderColor:"black",borderWidth:1,fontSize:"0.8rem",fontFamily:"monospace",display:"inline-flex"}})};return c.displayName="easy-".concat(e,"-type-editor"),{Component:o,Editor:c}}var Iy=function(e){var t=e.toString(),r=!0,n=t.indexOf(")"),a=t.indexOf("=>");return a!==-1&&a>n&&(r=!1),r?t.substring(t.indexOf("{",n)+1,t.lastIndexOf("}")):t.substring(t.indexOf("=>")+2)},Fy=function(e){var t=e.toString(),r=t.indexOf("function")!==-1;return r?t.substring(8,t.indexOf("{")).trim():t.substring(0,t.indexOf("=>")+2).trim()},ky="{",jy="}",Dy=function(e){return m.jsxs(j.NoSsr,{children:[m.jsx(Bs,{dataType:"function"}),m.jsxs(j.Box,{component:"span",className:"data-function-start",sx:{letterSpacing:.5},children:[Fy(e.value)," ",ky]})]})},Ny=function(){return m.jsx(j.NoSsr,{children:m.jsx(j.Box,{component:"span",className:"data-function-end",children:jy})})},Ly=function(e){var t=J(function(r){return r.colorspace.base05});return m.jsx(j.NoSsr,{children:m.jsx(j.Box,{className:"data-function",sx:{display:e.inspect?"block":"inline-block",pl:e.inspect?2:0,color:t},children:e.inspect?Iy(e.value):m.jsx(j.Box,{component:"span",className:"data-function-body",onClick:function(){return e.setInspect(!0)},sx:{"&:hover":{cursor:"pointer"},padding:.5},children:"…"})})})};function By(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function Hy(e,t){if(e==null)return{};var r=By(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var mt=function(e){var t=e.d,r=Hy(e,["d"]);return m.jsx(j.SvgIcon,_r(ie({},r),{children:m.jsx("path",{d:t})}))},Gy="M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z",Vy="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",Uy="M 12 2 C 10.615 1.998 9.214625 2.2867656 7.890625 2.8847656 L 8.9003906 4.6328125 C 9.9043906 4.2098125 10.957 3.998 12 4 C 15.080783 4 17.738521 5.7633175 19.074219 8.3222656 L 17.125 9 L 21.25 11 L 22.875 7 L 20.998047 7.6523438 C 19.377701 4.3110398 15.95585 2 12 2 z M 6.5097656 4.4882812 L 2.2324219 5.0820312 L 3.734375 6.3808594 C 1.6515335 9.4550558 1.3615962 13.574578 3.3398438 17 C 4.0308437 18.201 4.9801562 19.268234 6.1601562 20.115234 L 7.1699219 18.367188 C 6.3019219 17.710187 5.5922656 16.904 5.0722656 16 C 3.5320014 13.332354 3.729203 10.148679 5.2773438 7.7128906 L 6.8398438 9.0625 L 6.5097656 4.4882812 z M 19.929688 13 C 19.794687 14.08 19.450734 15.098 18.927734 16 C 17.386985 18.668487 14.531361 20.090637 11.646484 19.966797 L 12.035156 17.9375 L 8.2402344 20.511719 L 10.892578 23.917969 L 11.265625 21.966797 C 14.968963 22.233766 18.681899 20.426323 20.660156 17 C 21.355156 15.801 21.805219 14.445 21.949219 13 L 19.929688 13 z",zy="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",Wy="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",Ky="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z",qy="M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z",Hs=function(e){return m.jsx(mt,ie({d:Gy},e))},Ry=function(e){return m.jsx(mt,ie({d:Vy},e))},Yy=function(e){return m.jsx(mt,ie({d:Uy},e))},Xy=function(e){return m.jsx(mt,ie({d:zy},e))},Jy=function(e){return m.jsx(mt,ie({d:Wy},e))},Zy=function(e){return m.jsx(mt,ie({d:Ky},e))},Qy=function(e){return m.jsx(mt,ie({d:qy},e))},em="{",tm="[",rm="}",nm="]";function Gs(e){var t=Cr(e),r="";return(it(e,Map)||it(e,Set))&&(r=e[Symbol.toStringTag]),Object.prototype.hasOwnProperty.call(e,Symbol.toStringTag)&&(r=e[Symbol.toStringTag]),"".concat(t," Items").concat(r?" (".concat(r,")"):"")}var am=function(e){var t=J(function(c){return c.colorspace.base04}),r=Ca(),n=f.useMemo(function(){return Array.isArray(e.value)},[e.value]),a=f.useMemo(function(){return Cr(e.value)===0},[e.value]),i=f.useMemo(function(){return Gs(e.value)},[e.inspect,e.value]),o=J(function(c){return c.displayObjectSize}),s=$a(e.path,e.value);return m.jsxs(j.Box,{component:"span",className:"data-object-start",sx:{letterSpacing:.5},children:[n?tm:em,o&&e.inspect&&!a&&m.jsx(j.Box,{component:"span",sx:{pl:.5,fontStyle:"italic",color:t,userSelect:"none"},children:i}),s&&!e.inspect?m.jsxs(m.Fragment,{children:[m.jsx(Yy,{sx:{fontSize:12,color:r,mx:.5}}),s]}):null]})},im=function(e){var t=J(function(o){return o.colorspace.base04}),r=f.useMemo(function(){return Array.isArray(e.value)},[e.value]),n=J(function(o){return o.displayObjectSize}),a=f.useMemo(function(){return Cr(e.value)===0},[e.value]),i=f.useMemo(function(){return Gs(e.value)},[e.inspect,e.value]);return m.jsxs(j.Box,{component:"span",className:"data-object-end",children:[r?nm:rm,n&&(a||!e.inspect)?m.jsx(j.Box,{component:"span",sx:{pl:.5,fontStyle:"italic",color:t,userSelect:"none"},children:i}):null]})};function om(e){return typeof(e==null?void 0:e[Symbol.iterator])=="function"}var sm=function(e){var t=Ca(),r=J(function(v){return v.colorspace.base02}),n=J(function(v){return v.groupArraysAfterLength}),a=$a(e.path,e.value),i=Me(f.useState(J(function(v){return v.maxDisplayLength})),2),o=i[0],s=i[1],c=J(function(v){return v.objectSortKeys}),u=f.useMemo(function(){if(!e.inspect)return null;var v=e.value,g=om(v);if(g&&!Array.isArray(v)){var y=[];if(it(v,Map)){var x=!0,C=!1,_=void 0;try{for(var S=v[Symbol.iterator](),b;!(x=(b=S.next()).done);x=!0){var T=b.value,k=Me(T,2),W=k[0],q=k[1],ge="".concat(W);y.push(m.jsx(It,{path:at(e.path).concat([ge]),value:q,editable:!1},ge))}}catch(M){C=!0,_=M}finally{try{!x&&S.return!=null&&S.return()}finally{if(C)throw _}}}else{var ae=0,he=!0,Se=!1,be=void 0;try{for(var Ce=v[Symbol.iterator](),se;!(he=(se=Ce.next()).done);he=!0){var me=se.value;y.push(m.jsx(It,{path:at(e.path).concat(["iterator:".concat(ae)]),value:me,nestedIndex:ae,editable:!1},ae)),ae++}}catch(M){Se=!0,be=M}finally{try{!he&&Ce.return!=null&&Ce.return()}finally{if(Se)throw be}}}return y}if(Array.isArray(v)){if(v.length<=n){var Oe=v.slice(0,o).map(function(M,L){var B=at(e.path).concat([L]);return m.jsx(It,{path:B,value:M},L)});if(v.length>o){var Ae=v.length-o;Oe.push(m.jsxs(ot,{sx:{cursor:"pointer",lineHeight:1.5,color:t,letterSpacing:.5,opacity:.8,userSelect:"none"},onClick:function(){return s(function(M){return M*2})},children:["hidden ",Ae," items…"]},"last"))}return Oe}var $=Ay(v,n);return $.map(function(M,L){var B=at(e.path);return m.jsx(It,{path:B,value:M,nestedIndex:L},L)})}var A=Object.entries(v);c&&(A=c===!0?A.sort(function(M,L){var B=Me(M,1),H=B[0],P=Me(L,1),K=P[0];return H.localeCompare(K)}):A.sort(function(M,L){var B=Me(M,1),H=B[0],P=Me(L,1),K=P[0];return c(H,K)}));var U=A.slice(0,o).map(function(M){var L=Me(M,2),B=L[0],H=L[1],P=at(e.path).concat([B]);return m.jsx(It,{path:P,value:H},B)});if(A.length>o){var G=A.length-o;U.push(m.jsxs(ot,{sx:{cursor:"pointer",lineHeight:1.5,color:t,letterSpacing:.5,opacity:.8,userSelect:"none"},onClick:function(){return s(function(M){return M*2})},children:["hidden ",G," items…"]},"last"))}return U},[e.inspect,e.value,e.path,n,o,t,c]),h=e.inspect?.6:0,l=J(function(v){return v.indentWidth}),d=e.inspect?l-h:l,p=f.useMemo(function(){return Cr(e.value)===0},[e.value]);return p?null:m.jsx(j.Box,{className:"data-object",sx:{display:e.inspect?"block":"inline-block",pl:e.inspect?d-.6:0,marginLeft:h,color:t,borderLeft:e.inspect?"1px solid ".concat(r):"none"},children:e.inspect?u:a?null:m.jsx(j.Box,{component:"span",className:"data-object-body",onClick:function(){return e.setInspect(!0)},sx:{"&:hover":{cursor:"pointer"},padding:.5,userSelect:"none"},children:"…"})})},lm=function(){return As(Ms({registry:[]},function(e){return{registerTypes:function(t){e(function(r){return{registry:typeof t=="function"?t(r.registry):t}})}}}))},Vs=Ps(),um=Vs.Provider,Us=Vs.useStore,cm={is:function(e){return typeof e=="object"},Component:sm,PreComponent:am,PostComponent:im};function fm(e,t,r){var n,a=!0,i=!1,o=void 0;try{for(var s=r[Symbol.iterator](),c;!(a=(c=s.next()).done);a=!0){var u=c.value;if(u.is(e,t)&&(n=u,typeof e=="object"))return u}}catch(h){i=!0,o=h}finally{try{!a&&s.return!=null&&s.return()}finally{if(i)throw o}}if(n===void 0){if(typeof e=="object")return cm;throw new Error("this is not possible")}return n}function dm(e,t){var r=Us(function(n){return n.registry});return f.useMemo(function(){return fm(e,t,r)},[e,t,r])}function hm(){var e=function(i){function o(s,c){var u,h;return Object.is(s.value,c.value)&&s.inspect&&c.inspect&&((u=s.path)===null||u===void 0?void 0:u.join("."))===((h=c.path)===null||h===void 0?void 0:h.join("."))}i.Component=f.memo(i.Component,o),i.Editor&&(i.Editor=f.memo(i.Editor,function(c,u){return Object.is(c.value,u.value)})),i.PreComponent&&(i.PreComponent=f.memo(i.PreComponent,o)),i.PostComponent&&(i.PostComponent=f.memo(i.PostComponent,o)),t.push(i)},t=[];e(ie({is:function(a){return typeof a=="boolean"}},et("bool",function(a){var i=a.value;return m.jsx(m.Fragment,{children:i?"true":"false"})},{colorKey:"base0E",fromString:function(a){return Boolean(a)}})));var r={weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"};e(ie({is:function(a){return it(a,Date)}},et("date",function(a){var i=a.value;return m.jsx(m.Fragment,{children:i.toLocaleTimeString("en-us",r)})},{colorKey:"base0D"}))),e(ie({is:function(a){return a===null}},et("null",function(){var a=J(function(i){return i.colorspace.base02});return m.jsx(j.Box,{sx:{fontSize:"0.8rem",backgroundColor:a,fontWeight:"bold",borderRadius:"3px",padding:"0.5px 2px"},children:"NULL"})},{colorKey:"base08",displayTypeLabel:!1}))),e(ie({is:function(a){return a===void 0}},et("undefined",function(){var a=J(function(i){return i.colorspace.base02});return m.jsx(j.Box,{sx:{fontSize:"0.7rem",backgroundColor:a,borderRadius:"3px",padding:"0.5px 2px"},children:"undefined"})},{colorKey:"base05",displayTypeLabel:!1}))),e(ie({is:function(a){return typeof a=="string"}},et("string",function(a){var i=Me(f.useState(!1),2),o=i[0],s=i[1],c=J(function(l){return l.collapseStringsAfterLength}),u=o?a.value:a.value.slice(0,c),h=a.value.length>c;return m.jsxs(j.Box,{component:"span",sx:{overflowWrap:"anywhere",cursor:h?"pointer":"inherit"},onClick:function(){h&&s(function(l){return!l})},children:['"',u,h&&!o&&m.jsx(j.Box,{component:"span",sx:{padding:.5},children:"…"}),'"']})},{colorKey:"base09",fromString:function(a){return a}}))),e({is:function(a){return typeof a=="function"},Component:Ly,PreComponent:Dy,PostComponent:Ny});var n=function(a){return a%1===0};return e(ie({is:function(a){return typeof a=="number"&&isNaN(a)}},et("NaN",function(){var a=J(function(i){return i.colorspace.base02});return m.jsx(j.Box,{sx:{backgroundColor:a,fontSize:"0.8rem",fontWeight:"bold",borderRadius:"3px"},children:"NaN"})},{colorKey:"base08",displayTypeLabel:!1}))),e(ie({is:function(a){return typeof a=="number"&&!n(a)}},et("float",function(a){var i=a.value;return m.jsx(m.Fragment,{children:i})},{colorKey:"base0B",fromString:function(a){return parseFloat(a)}}))),e(ie({is:function(a){return typeof a=="number"&&n(a)}},et("int",function(a){var i=a.value;return m.jsx(m.Fragment,{children:i})},{colorKey:"base0F",fromString:function(a){return parseInt(a)}}))),e(ie({is:function(a){return(typeof a>"u"?"undefined":My(a))==="bigint"}},et("bigint",function(a){var i=a.value;return m.jsx(m.Fragment,{children:"".concat(i,"n")})},{colorKey:"base0F",fromString:function(a){return BigInt(a.replace(/\D/g,""))}}))),t}var Qr=function(e){return m.jsx(j.Box,_r(ie({component:"span"},e),{sx:ie({cursor:"pointer",paddingLeft:"0.7rem"},e.sx)}))},It=function(e){var t=e.value,r=e.path,n=e.nestedIndex,a,i=(a=e.editable)!==null&&a!==void 0?a:void 0,o=J(function(P){return P.editable}),s=f.useMemo(function(){return o===!1||i===!1?!1:typeof o=="function"?!!o(r,t):o},[r,i,o,t]),c=Me(f.useState(typeof t=="function"?function(){return t}:t),2),u=c[0],h=c[1],l=r.length,d=r[l-1],p=J(function(P){return P.hoverPath}),v=f.useMemo(function(){return p&&r.every(function(P,K){return P===p.path[K]&&n===p.nestedIndex})},[p,r,n]),g=J(function(P){return P.setHover}),y=J(function(P){return P.value}),x=Me(Py(r,t,n),2),C=x[0],_=x[1],S=Me(f.useState(!1),2),b=S[0],T=S[1],k=J(function(P){return P.onChange}),W=Ca(),q=J(function(P){return P.colorspace.base0C}),ge=dm(t,r),ae=ge.Component,he=ge.PreComponent,Se=ge.PostComponent,be=ge.Editor,Ce=J(function(P){return P.quotesOnKeys}),se=J(function(P){return P.rootName}),me=y===t,Oe=Number.isInteger(Number(d)),Ae=J(function(P){return P.enableClipboard}),$=Ty(),A=$.copy,U=$.copied,G=f.useMemo(function(){return b?m.jsxs(m.Fragment,{children:[m.jsx(Qr,{children:m.jsx(Xy,{sx:{fontSize:".8rem"},onClick:function(){T(!1),h(t)}})}),m.jsx(Qr,{children:m.jsx(Hs,{sx:{fontSize:".8rem"},onClick:function(){T(!1),k(r,t,u)}})})]}):m.jsxs(m.Fragment,{children:[Ae&&m.jsx(Qr,{onClick:function(P){P.preventDefault();try{A(r,t)}catch(K){console.error(K)}},children:U?m.jsx(Hs,{sx:{fontSize:".8rem"}}):m.jsx(Jy,{sx:{fontSize:".8rem"}})}),be&&s&&m.jsx(Qr,{onClick:function(P){P.preventDefault(),T(!0)},children:m.jsx(Zy,{sx:{fontSize:".8rem"}})})]})},[be,U,A,s,b,Ae,k,r,u,t]),M=f.useMemo(function(){return Cr(t)===0},[t]),L=!M&&!!(he&&Se),B=J(function(P){return P.keyRenderer}),H=f.useMemo(function(){return{path:r,inspect:C,setInspect:_,value:t}},[C,r,_,t]);return m.jsxs(j.Box,{className:"data-key-pair","data-testid":"data-key-pair"+r.join("."),sx:{userSelect:"text"},onMouseEnter:f.useCallback(function(){return g(r,n)},[g,r,n]),children:[m.jsxs(ot,{component:"span",className:"data-key",sx:{lineHeight:1.5,color:W,letterSpacing:.5,opacity:.8},onClick:f.useCallback(function(P){P.isDefaultPrevented()||M||_(function(K){return!K})},[_]),children:[L?C?m.jsx(Qy,{sx:{fontSize:".8rem","&:hover":{cursor:"pointer"}}}):m.jsx(Ry,{sx:{fontSize:".8rem","&:hover":{cursor:"pointer"}}}):null,me?se!==!1?Ce?m.jsxs(m.Fragment,{children:['"',se,'"']}):m.jsx(m.Fragment,{children:se}):null:B.when(H)?m.jsx(B,ie({},H)):n===void 0&&(Oe?m.jsx(j.Box,{component:"span",style:{color:q},children:d}):Ce?m.jsxs(m.Fragment,{children:['"',d,'"']}):m.jsx(m.Fragment,{children:d})),me?se!==!1?m.jsx(ot,{sx:{mr:.5},children:":"}):null:n===void 0&&m.jsx(ot,{sx:{mr:.5},children:":"}),he&&m.jsx(he,ie({},H)),v&&L&&C&&G]}),b&&s?be&&m.jsx(be,{value:u,setValue:h}):ae?m.jsx(ae,ie({},H)):m.jsx(j.Box,{component:"span",className:"data-value-fallback",children:"fallback: ".concat(t)}),Se&&m.jsx(Se,ie({},H)),v&&L&&!C&&G,v&&!L&&G]})},zs="(prefers-color-scheme: dark)";function pm(){var e=Me(f.useState(!1),2),t=e[0],r=e[1];return f.useEffect(function(){var n=function(i){r(i.matches)};r(window.matchMedia(zs).matches);var a=window.matchMedia(zs);return a.addEventListener("change",n),function(){return a.removeEventListener("change",n)}},[]),t}function Le(e,t){var r=Ls();f.useEffect(function(){t!==void 0&&r.setState(oa({},e,t))},[e,t,r])}var vm=function(e){var t=Ls();Le("value",e.value),Le("editable",e.editable),Le("indentWidth",e.indentWidth),Le("onChange",e.onChange),Le("groupArraysAfterLength",e.groupArraysAfterLength),Le("keyRenderer",e.keyRenderer),Le("maxDisplayLength",e.maxDisplayLength),Le("enableClipboard",e.enableClipboard),Le("rootName",e.rootName),Le("displayDataTypes",e.displayDataTypes),Le("displayObjectSize",e.displayObjectSize),Le("onCopy",e.onCopy),f.useEffect(function(){e.theme==="light"?t.setState({colorspace:la}):e.theme==="dark"?t.setState({colorspace:Ds}):typeof e.theme=="object"&&t.setState({colorspace:e.theme})},[t,e.theme]);var r=f.useRef(!0),n=f.useMemo(function(){return hm()},[]),a=Us(function(u){return u.registerTypes});if(r.current){var i,o=at(n);(i=e.valueTypes)===null||i===void 0||i.forEach(function(u){o.push(u)}),a(o),r.current=!1}f.useEffect(function(){var u,h=at(n);(u=e.valueTypes)===null||u===void 0||u.forEach(function(l){h.push(l)}),a(h)},[n,e.valueTypes,a]);var s=J(function(u){return u.value}),c=J(function(u){return u.setHover});return m.jsx(j.Paper,{elevation:0,className:e.className,style:e.style,sx:{fontFamily:"monospace",userSelect:"none",contentVisibility:"auto"},onMouseLeave:f.useCallback(function(){c(null)},[c]),children:m.jsx(It,{value:s,path:f.useMemo(function(){return[]},[])})})},gm=function(t){var r=pm(),n,a=f.useMemo(function(){return t.theme==="auto"?r?"light":"dark":(n=t.theme)!==null&&n!==void 0?n:"light"},[r,t.theme]),i=f.useMemo(function(){var s=typeof a=="object"?a.base00:a==="dark"?Ds.base00:la.base00;return j.createTheme({components:{MuiPaper:{styleOverrides:{root:{backgroundColor:s}}}},palette:{mode:a==="dark"?"dark":"light",background:{default:s}}})},[a]),o=_r(ie({},t),{theme:a});return m.jsx(j.ThemeProvider,{theme:i,children:m.jsx(um,{createStore:lm,children:m.jsx($y,{createStore:function(){return Cy(t)},children:m.jsx(vm,ie({},o))})})})};const bm=e=>{const[t,r]=f.useState(0),n=e.themeOverrides?rt.createTheme(ms,e.themeOverrides):rt.createTheme(ms),a=X.Children.toArray(e.children).length>1,[i,o]=f.useState(e.initialValues),s=c=>{e.setValueOnRender&&e.setValueOnRender(c),o(c)};return m.jsxs("div",{css:ce.css`
|
|
135
|
+
*/var $s;function fy(){return $s||($s=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=f,t=_s();function r(h,l){return h===l&&(h!==0||1/h===1/l)||h!==h&&l!==l}var n=typeof Object.is=="function"?Object.is:r,a=t.useSyncExternalStore,i=e.useRef,o=e.useEffect,s=e.useMemo,c=e.useDebugValue;function u(h,l,d,p,v){var g=i(null),y;g.current===null?(y={hasValue:!1,value:null},g.current=y):y=g.current;var x=s(function(){var b=!1,T,k,W=function(he){if(!b){b=!0,T=he;var Se=p(he);if(v!==void 0&&y.hasValue){var be=y.value;if(v(be,Se))return k=be,be}return k=Se,Se}var Ce=T,se=k;if(n(Ce,he))return se;var me=p(he);return v!==void 0&&v(se,me)?se:(T=he,k=me,me)},q=d===void 0?null:d,ge=function(){return W(l())},ae=q===null?void 0:function(){return W(q())};return[ge,ae]},[l,d,p,v]),C=x[0],_=x[1],S=a(h,C,_);return o(function(){y.hasValue=!0,y.value=S},[S]),c(S),S}ia.useSyncExternalStoreWithSelector=u,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),ia}(function(e){process.env.NODE_ENV==="production"?e.exports=cy():e.exports=fy()})(oy);const dy=xc(ta),{useSyncExternalStoreWithSelector:hy}=dy;function Ts(e,t=e.getState,r){const n=hy(e.subscribe,e.getState,e.getServerState||e.getState,t,r);return f.useDebugValue(n),n}const Os=e=>{var t;((t={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1})==null?void 0:t.MODE)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const r=typeof e=="function"?iy(e):e,n=(a,i)=>Ts(r,a,i);return Object.assign(n,r),n},py=e=>e?Os(e):Os;var As=e=>{var t;return((t={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1})==null?void 0:t.MODE)!=="production"&&console.warn("[DEPRECATED] Default export is deprecated. Instead use `import { create } from 'zustand'`."),py(e)};function Ps(){var e;((e={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1})==null?void 0:e.MODE)!=="production"&&console.warn("[DEPRECATED] `context` will be removed in a future version. Instead use `import { createStore, useStore } from 'zustand'`. See: https://github.com/pmndrs/zustand/discussions/1180.");const t=f.createContext(void 0);return{Provider:({createStore:i,children:o})=>{const s=f.useRef();return s.current||(s.current=i()),f.createElement(t.Provider,{value:s.current},o)},useStore:(i,o)=>{const s=f.useContext(t);if(!s)throw new Error("Seems like you have not used zustand provider as an ancestor.");return Ts(s,i,o)},useStoreApi:()=>{const i=f.useContext(t);if(!i)throw new Error("Seems like you have not used zustand provider as an ancestor.");return f.useMemo(()=>({...i}),[i])}}}const Ms=(e,t)=>(...r)=>Object.assign({},e,t(...r));var vy=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(a){e.addRange(a)}),t&&t.focus()}},gy=vy,Is={"text/plain":"Text","text/html":"Url",default:"Text"},by="Copy to clipboard: #{key}, Enter";function yy(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function my(e,t){var r,n,a,i,o,s,c=!1;t||(t={}),r=t.debug||!1;try{a=gy(),i=document.createRange(),o=document.getSelection(),s=document.createElement("span"),s.textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",function(h){if(h.stopPropagation(),t.format)if(h.preventDefault(),typeof h.clipboardData>"u"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var l=Is[t.format]||Is.default;window.clipboardData.setData(l,e)}else h.clipboardData.clearData(),h.clipboardData.setData(t.format,e);t.onCopy&&(h.preventDefault(),t.onCopy(h.clipboardData))}),document.body.appendChild(s),i.selectNodeContents(s),o.addRange(i);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");c=!0}catch(h){r&&console.error("unable to copy using execCommand: ",h),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(l){r&&console.error("unable to copy using clipboardData: ",l),r&&console.error("falling back to prompt"),n=yy("message"in t?t.message:by),window.prompt(n,e)}}finally{o&&(typeof o.removeRange=="function"?o.removeRange(i):o.removeAllRanges()),s&&document.body.removeChild(s),a()}return c}var Fs=my;function oa(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ie(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable}))),n.forEach(function(a){oa(e,a,r[a])})}return e}function xy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function _r(e,t){return t=t??{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):xy(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function sa(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Sy(e){if(Array.isArray(e))return sa(e)}function ks(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wy(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function js(e,t){if(e){if(typeof e=="string")return sa(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sa(e,t)}}function at(e){return Sy(e)||ks(e)||js(e)||wy()}function Ey(e){if(Array.isArray(e))return e}function _y(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Me(e,t){return Ey(e)||ks(e)||js(e,t)||_y()}var la={scheme:"Light Theme",author:"mac gainor (https://github.com/mac-s-g)",base00:"rgba(0, 0, 0, 0)",base01:"rgb(245, 245, 245)",base02:"rgb(235, 235, 235)",base03:"#93a1a1",base04:"rgba(0, 0, 0, 0.3)",base05:"#586e75",base06:"#073642",base07:"#002b36",base08:"#d33682",base09:"#cb4b16",base0A:"#dc322f",base0B:"#859900",base0C:"#6c71c4",base0D:"#586e75",base0E:"#2aa198",base0F:"#268bd2"},Ds={scheme:"Dark Theme",author:"Chris Kempson (http://chriskempson.com)",base00:"#181818",base01:"#282828",base02:"#383838",base03:"#585858",base04:"#b8b8b8",base05:"#d8d8d8",base06:"#e8e8e8",base07:"#f8f8f8",base08:"#ab4642",base09:"#dc9656",base0A:"#f7ca88",base0B:"#a1b56c",base0C:"#86c1b9",base0D:"#7cafc2",base0E:"#ba8baf",base0F:"#a16946"},Ns=function(){return null};Ns.when=function(){return!1};var ua,ca,fa,da,ha,pa,va,ga,ba,ya,ma,xa,Sa,wa,Ea,Cy=function(e){return As(Ms({enableClipboard:(ua=e.enableClipboard)!==null&&ua!==void 0?ua:!0,indentWidth:(ca=e.indentWidth)!==null&&ca!==void 0?ca:3,groupArraysAfterLength:(fa=e.groupArraysAfterLength)!==null&&fa!==void 0?fa:100,collapseStringsAfterLength:e.collapseStringsAfterLength===!1?Number.MAX_VALUE:(da=e.collapseStringsAfterLength)!==null&&da!==void 0?da:50,maxDisplayLength:(ha=e.maxDisplayLength)!==null&&ha!==void 0?ha:30,rootName:(pa=e.rootName)!==null&&pa!==void 0?pa:"root",onChange:(va=e.onChange)!==null&&va!==void 0?va:function(){},onCopy:(ga=e.onCopy)!==null&&ga!==void 0?ga:void 0,keyRenderer:(ba=e.keyRenderer)!==null&&ba!==void 0?ba:Ns,editable:(ya=e.editable)!==null&&ya!==void 0?ya:!1,defaultInspectDepth:(ma=e.defaultInspectDepth)!==null&&ma!==void 0?ma:5,objectSortKeys:(xa=e.objectSortKeys)!==null&&xa!==void 0?xa:!1,quotesOnKeys:(Sa=e.quotesOnKeys)!==null&&Sa!==void 0?Sa:!0,displayDataTypes:(wa=e.displayDataTypes)!==null&&wa!==void 0?wa:!0,inspectCache:{},hoverPath:null,colorspace:la,value:e.value,displayObjectSize:(Ea=e.displayObjectSize)!==null&&Ea!==void 0?Ea:!0},function(t,r){return{getInspectCache:function(n,a){var i=a!==void 0?n.join(".")+"[".concat(a,"]nt"):n.join(".");return r().inspectCache[i]},setInspectCache:function(n,a,i){var o=i!==void 0?n.join(".")+"[".concat(i,"]nt"):n.join(".");t(function(s){return{inspectCache:_r(ie({},s.inspectCache),oa({},o,typeof a=="function"?a(s.inspectCache[o]):a))}})},setHover:function(n,a){t({hoverPath:n?{path:n,nestedIndex:a}:null})}}}))},_a=Ps(),J=_a.useStore,Ls=_a.useStoreApi,$y=_a.Provider,Ca=function(){return J(function(e){return e.colorspace.base07})};function it(e,t){return t!=null&&typeof Symbol<"u"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function Ty(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.timeout,r=t===void 0?2e3:t,n=Me(f.useState(!1),2),a=n[0],i=n[1],o=f.useRef(null),s=f.useCallback(function(l){var d=o.current;d&&window.clearTimeout(d),o.current=window.setTimeout(function(){return i(!1)},r),i(l)},[r]),c=J(function(l){return l.onCopy}),u=f.useCallback(function(l,d){if(typeof c=="function")try{var p=c(l,d);it(p,Promise)?p.then(function(){s(!0)}).catch(function(g){console.error("error when copy ".concat(l.length===0?"src":"src[".concat(l.join(".")),"]"),g)}):s(!0)}catch(g){console.error("error when copy ".concat(l.length===0?"src":"src[".concat(l.join(".")),"]"),g)}else{var v=JSON.stringify(typeof d=="function"?d.toString():d,null," ");"clipboard"in navigator?navigator.clipboard.writeText(v).then(function(){return s(!0)}).catch(function(){return Fs(v)}):Fs(v)}},[s,c]),h=f.useCallback(function(){i(!1),o.current&&clearTimeout(o.current)},[]);return{copy:u,reset:h,copied:a}}var Oy=function(e,t,r){if(e===null||r===null||typeof e!="object"||typeof r!="object")return!1;if(Object.is(e,r)&&t.length!==0)return"";for(var n=[],a=at(t),i=e;i!==r||a.length!==0;){if(typeof i!="object"||i===null)return!1;if(Object.is(i,r))return n.reduce(function(s,c,u){return typeof c=="number"?s+"[".concat(c,"]"):s+"".concat(u===0?"":".").concat(c)},"");var o=a.shift();n.push(o),i=i[o]}return!1};function Cr(e){return e===null?0:Array.isArray(e)?e.length:it(e,Map)||it(e,Set)?e.size:it(e,Date)?1:typeof e=="object"?Object.keys(e).length:typeof e=="string"?e.length:1}function Ay(e,t){for(var r=[],n=0;n<e.length;)r.push(e.slice(n,n+t)),n+=t;return r}function $a(e,t){var r=J(function(n){return n.value});return f.useMemo(function(){return Oy(r,e,t)},[e,t,r])}function Py(e,t,r){var n=e.length,a=$a(e,t),i=J(function(d){return d.getInspectCache}),o=J(function(d){return d.setInspectCache}),s=J(function(d){return d.defaultInspectDepth});f.useEffect(function(){var d=i(e,r);if(d===void 0)if(r!==void 0)o(e,!1,r);else{var p=a?!1:n<s;o(e,p)}},[s,n,i,a,r,e,o]);var c=Me(f.useState(function(){var d=i(e,r);return d!==void 0?d:r!==void 0||a?!1:n<s}),2),u=c[0],h=c[1],l=f.useCallback(function(d){h(function(p){var v=typeof d=="boolean"?d:d(p);return o(e,v,r),v})},[r,e,o]);return[u,l]}function My(e){return e&&e.constructor===Symbol?"symbol":typeof e}var ot=function(e){return m.jsx(j.Box,_r(ie({component:"div"},e),{sx:ie({display:"inline-block"},e.sx)}))},Bs=function(e){var t=e.dataType,r=e.enable,n=r===void 0?!0:r;return n?m.jsx(ot,{className:"data-type-label",sx:{mx:.5,fontSize:"0.7rem",opacity:.8,userSelect:"none"},children:t}):null};function et(e,t,r){var n,a=(n=r.displayTypeLabel)!==null&&n!==void 0?n:!0,i=f.memo(t),o=function(u){var h=J(function(d){return d.displayDataTypes}),l=J(function(d){return d.colorspace[r.colorKey]});return m.jsxs(ot,{sx:{color:l},children:[a&&h&&m.jsx(Bs,{dataType:e}),m.jsx(ot,{className:"".concat(e,"-value"),children:m.jsx(i,{value:u.value})})]})};if(o.displayName="easy-".concat(e,"-type"),!r.fromString)return{Component:o};var s=r.fromString,c=function(u){var h=u.value,l=u.setValue,d=J(function(p){return p.colorspace[r.colorKey]});return m.jsx(j.InputBase,{value:h,onChange:f.useCallback(function(p){var v=s(p.target.value);l(v)},[l]),size:"small",multiline:!0,sx:{color:d,padding:.5,borderStyle:"solid",borderColor:"black",borderWidth:1,fontSize:"0.8rem",fontFamily:"monospace",display:"inline-flex"}})};return c.displayName="easy-".concat(e,"-type-editor"),{Component:o,Editor:c}}var Iy=function(e){var t=e.toString(),r=!0,n=t.indexOf(")"),a=t.indexOf("=>");return a!==-1&&a>n&&(r=!1),r?t.substring(t.indexOf("{",n)+1,t.lastIndexOf("}")):t.substring(t.indexOf("=>")+2)},Fy=function(e){var t=e.toString(),r=t.indexOf("function")!==-1;return r?t.substring(8,t.indexOf("{")).trim():t.substring(0,t.indexOf("=>")+2).trim()},ky="{",jy="}",Dy=function(e){return m.jsxs(j.NoSsr,{children:[m.jsx(Bs,{dataType:"function"}),m.jsxs(j.Box,{component:"span",className:"data-function-start",sx:{letterSpacing:.5},children:[Fy(e.value)," ",ky]})]})},Ny=function(){return m.jsx(j.NoSsr,{children:m.jsx(j.Box,{component:"span",className:"data-function-end",children:jy})})},Ly=function(e){var t=J(function(r){return r.colorspace.base05});return m.jsx(j.NoSsr,{children:m.jsx(j.Box,{className:"data-function",sx:{display:e.inspect?"block":"inline-block",pl:e.inspect?2:0,color:t},children:e.inspect?Iy(e.value):m.jsx(j.Box,{component:"span",className:"data-function-body",onClick:function(){return e.setInspect(!0)},sx:{"&:hover":{cursor:"pointer"},padding:.5},children:"…"})})})};function By(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function Hy(e,t){if(e==null)return{};var r=By(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var mt=function(e){var t=e.d,r=Hy(e,["d"]);return m.jsx(j.SvgIcon,_r(ie({},r),{children:m.jsx("path",{d:t})}))},Gy="M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z",Vy="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",Uy="M 12 2 C 10.615 1.998 9.214625 2.2867656 7.890625 2.8847656 L 8.9003906 4.6328125 C 9.9043906 4.2098125 10.957 3.998 12 4 C 15.080783 4 17.738521 5.7633175 19.074219 8.3222656 L 17.125 9 L 21.25 11 L 22.875 7 L 20.998047 7.6523438 C 19.377701 4.3110398 15.95585 2 12 2 z M 6.5097656 4.4882812 L 2.2324219 5.0820312 L 3.734375 6.3808594 C 1.6515335 9.4550558 1.3615962 13.574578 3.3398438 17 C 4.0308437 18.201 4.9801562 19.268234 6.1601562 20.115234 L 7.1699219 18.367188 C 6.3019219 17.710187 5.5922656 16.904 5.0722656 16 C 3.5320014 13.332354 3.729203 10.148679 5.2773438 7.7128906 L 6.8398438 9.0625 L 6.5097656 4.4882812 z M 19.929688 13 C 19.794687 14.08 19.450734 15.098 18.927734 16 C 17.386985 18.668487 14.531361 20.090637 11.646484 19.966797 L 12.035156 17.9375 L 8.2402344 20.511719 L 10.892578 23.917969 L 11.265625 21.966797 C 14.968963 22.233766 18.681899 20.426323 20.660156 17 C 21.355156 15.801 21.805219 14.445 21.949219 13 L 19.929688 13 z",zy="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",Wy="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",Ky="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z",qy="M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z",Hs=function(e){return m.jsx(mt,ie({d:Gy},e))},Ry=function(e){return m.jsx(mt,ie({d:Vy},e))},Yy=function(e){return m.jsx(mt,ie({d:Uy},e))},Xy=function(e){return m.jsx(mt,ie({d:zy},e))},Jy=function(e){return m.jsx(mt,ie({d:Wy},e))},Zy=function(e){return m.jsx(mt,ie({d:Ky},e))},Qy=function(e){return m.jsx(mt,ie({d:qy},e))},em="{",tm="[",rm="}",nm="]";function Gs(e){var t=Cr(e),r="";return(it(e,Map)||it(e,Set))&&(r=e[Symbol.toStringTag]),Object.prototype.hasOwnProperty.call(e,Symbol.toStringTag)&&(r=e[Symbol.toStringTag]),"".concat(t," Items").concat(r?" (".concat(r,")"):"")}var am=function(e){var t=J(function(c){return c.colorspace.base04}),r=Ca(),n=f.useMemo(function(){return Array.isArray(e.value)},[e.value]),a=f.useMemo(function(){return Cr(e.value)===0},[e.value]),i=f.useMemo(function(){return Gs(e.value)},[e.inspect,e.value]),o=J(function(c){return c.displayObjectSize}),s=$a(e.path,e.value);return m.jsxs(j.Box,{component:"span",className:"data-object-start",sx:{letterSpacing:.5},children:[n?tm:em,o&&e.inspect&&!a&&m.jsx(j.Box,{component:"span",sx:{pl:.5,fontStyle:"italic",color:t,userSelect:"none"},children:i}),s&&!e.inspect?m.jsxs(m.Fragment,{children:[m.jsx(Yy,{sx:{fontSize:12,color:r,mx:.5}}),s]}):null]})},im=function(e){var t=J(function(o){return o.colorspace.base04}),r=f.useMemo(function(){return Array.isArray(e.value)},[e.value]),n=J(function(o){return o.displayObjectSize}),a=f.useMemo(function(){return Cr(e.value)===0},[e.value]),i=f.useMemo(function(){return Gs(e.value)},[e.inspect,e.value]);return m.jsxs(j.Box,{component:"span",className:"data-object-end",children:[r?nm:rm,n&&(a||!e.inspect)?m.jsx(j.Box,{component:"span",sx:{pl:.5,fontStyle:"italic",color:t,userSelect:"none"},children:i}):null]})};function om(e){return typeof(e==null?void 0:e[Symbol.iterator])=="function"}var sm=function(e){var t=Ca(),r=J(function(v){return v.colorspace.base02}),n=J(function(v){return v.groupArraysAfterLength}),a=$a(e.path,e.value),i=Me(f.useState(J(function(v){return v.maxDisplayLength})),2),o=i[0],s=i[1],c=J(function(v){return v.objectSortKeys}),u=f.useMemo(function(){if(!e.inspect)return null;var v=e.value,g=om(v);if(g&&!Array.isArray(v)){var y=[];if(it(v,Map)){var x=!0,C=!1,_=void 0;try{for(var S=v[Symbol.iterator](),b;!(x=(b=S.next()).done);x=!0){var T=b.value,k=Me(T,2),W=k[0],q=k[1],ge="".concat(W);y.push(m.jsx(It,{path:at(e.path).concat([ge]),value:q,editable:!1},ge))}}catch(M){C=!0,_=M}finally{try{!x&&S.return!=null&&S.return()}finally{if(C)throw _}}}else{var ae=0,he=!0,Se=!1,be=void 0;try{for(var Ce=v[Symbol.iterator](),se;!(he=(se=Ce.next()).done);he=!0){var me=se.value;y.push(m.jsx(It,{path:at(e.path).concat(["iterator:".concat(ae)]),value:me,nestedIndex:ae,editable:!1},ae)),ae++}}catch(M){Se=!0,be=M}finally{try{!he&&Ce.return!=null&&Ce.return()}finally{if(Se)throw be}}}return y}if(Array.isArray(v)){if(v.length<=n){var Oe=v.slice(0,o).map(function(M,L){var B=at(e.path).concat([L]);return m.jsx(It,{path:B,value:M},L)});if(v.length>o){var Ae=v.length-o;Oe.push(m.jsxs(ot,{sx:{cursor:"pointer",lineHeight:1.5,color:t,letterSpacing:.5,opacity:.8,userSelect:"none"},onClick:function(){return s(function(M){return M*2})},children:["hidden ",Ae," items…"]},"last"))}return Oe}var $=Ay(v,n);return $.map(function(M,L){var B=at(e.path);return m.jsx(It,{path:B,value:M,nestedIndex:L},L)})}var A=Object.entries(v);c&&(A=c===!0?A.sort(function(M,L){var B=Me(M,1),H=B[0],P=Me(L,1),K=P[0];return H.localeCompare(K)}):A.sort(function(M,L){var B=Me(M,1),H=B[0],P=Me(L,1),K=P[0];return c(H,K)}));var U=A.slice(0,o).map(function(M){var L=Me(M,2),B=L[0],H=L[1],P=at(e.path).concat([B]);return m.jsx(It,{path:P,value:H},B)});if(A.length>o){var G=A.length-o;U.push(m.jsxs(ot,{sx:{cursor:"pointer",lineHeight:1.5,color:t,letterSpacing:.5,opacity:.8,userSelect:"none"},onClick:function(){return s(function(M){return M*2})},children:["hidden ",G," items…"]},"last"))}return U},[e.inspect,e.value,e.path,n,o,t,c]),h=e.inspect?.6:0,l=J(function(v){return v.indentWidth}),d=e.inspect?l-h:l,p=f.useMemo(function(){return Cr(e.value)===0},[e.value]);return p?null:m.jsx(j.Box,{className:"data-object",sx:{display:e.inspect?"block":"inline-block",pl:e.inspect?d-.6:0,marginLeft:h,color:t,borderLeft:e.inspect?"1px solid ".concat(r):"none"},children:e.inspect?u:a?null:m.jsx(j.Box,{component:"span",className:"data-object-body",onClick:function(){return e.setInspect(!0)},sx:{"&:hover":{cursor:"pointer"},padding:.5,userSelect:"none"},children:"…"})})},lm=function(){return As(Ms({registry:[]},function(e){return{registerTypes:function(t){e(function(r){return{registry:typeof t=="function"?t(r.registry):t}})}}}))},Vs=Ps(),um=Vs.Provider,Us=Vs.useStore,cm={is:function(e){return typeof e=="object"},Component:sm,PreComponent:am,PostComponent:im};function fm(e,t,r){var n,a=!0,i=!1,o=void 0;try{for(var s=r[Symbol.iterator](),c;!(a=(c=s.next()).done);a=!0){var u=c.value;if(u.is(e,t)&&(n=u,typeof e=="object"))return u}}catch(h){i=!0,o=h}finally{try{!a&&s.return!=null&&s.return()}finally{if(i)throw o}}if(n===void 0){if(typeof e=="object")return cm;throw new Error("this is not possible")}return n}function dm(e,t){var r=Us(function(n){return n.registry});return f.useMemo(function(){return fm(e,t,r)},[e,t,r])}function hm(){var e=function(i){function o(s,c){var u,h;return Object.is(s.value,c.value)&&s.inspect&&c.inspect&&((u=s.path)===null||u===void 0?void 0:u.join("."))===((h=c.path)===null||h===void 0?void 0:h.join("."))}i.Component=f.memo(i.Component,o),i.Editor&&(i.Editor=f.memo(i.Editor,function(c,u){return Object.is(c.value,u.value)})),i.PreComponent&&(i.PreComponent=f.memo(i.PreComponent,o)),i.PostComponent&&(i.PostComponent=f.memo(i.PostComponent,o)),t.push(i)},t=[];e(ie({is:function(a){return typeof a=="boolean"}},et("bool",function(a){var i=a.value;return m.jsx(m.Fragment,{children:i?"true":"false"})},{colorKey:"base0E",fromString:function(a){return Boolean(a)}})));var r={weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"};e(ie({is:function(a){return it(a,Date)}},et("date",function(a){var i=a.value;return m.jsx(m.Fragment,{children:i.toLocaleTimeString("en-us",r)})},{colorKey:"base0D"}))),e(ie({is:function(a){return a===null}},et("null",function(){var a=J(function(i){return i.colorspace.base02});return m.jsx(j.Box,{sx:{fontSize:"0.8rem",backgroundColor:a,fontWeight:"bold",borderRadius:"3px",padding:"0.5px 2px"},children:"NULL"})},{colorKey:"base08",displayTypeLabel:!1}))),e(ie({is:function(a){return a===void 0}},et("undefined",function(){var a=J(function(i){return i.colorspace.base02});return m.jsx(j.Box,{sx:{fontSize:"0.7rem",backgroundColor:a,borderRadius:"3px",padding:"0.5px 2px"},children:"undefined"})},{colorKey:"base05",displayTypeLabel:!1}))),e(ie({is:function(a){return typeof a=="string"}},et("string",function(a){var i=Me(f.useState(!1),2),o=i[0],s=i[1],c=J(function(l){return l.collapseStringsAfterLength}),u=o?a.value:a.value.slice(0,c),h=a.value.length>c;return m.jsxs(j.Box,{component:"span",sx:{overflowWrap:"anywhere",cursor:h?"pointer":"inherit"},onClick:function(){h&&s(function(l){return!l})},children:['"',u,h&&!o&&m.jsx(j.Box,{component:"span",sx:{padding:.5},children:"…"}),'"']})},{colorKey:"base09",fromString:function(a){return a}}))),e({is:function(a){return typeof a=="function"},Component:Ly,PreComponent:Dy,PostComponent:Ny});var n=function(a){return a%1===0};return e(ie({is:function(a){return typeof a=="number"&&isNaN(a)}},et("NaN",function(){var a=J(function(i){return i.colorspace.base02});return m.jsx(j.Box,{sx:{backgroundColor:a,fontSize:"0.8rem",fontWeight:"bold",borderRadius:"3px"},children:"NaN"})},{colorKey:"base08",displayTypeLabel:!1}))),e(ie({is:function(a){return typeof a=="number"&&!n(a)}},et("float",function(a){var i=a.value;return m.jsx(m.Fragment,{children:i})},{colorKey:"base0B",fromString:function(a){return parseFloat(a)}}))),e(ie({is:function(a){return typeof a=="number"&&n(a)}},et("int",function(a){var i=a.value;return m.jsx(m.Fragment,{children:i})},{colorKey:"base0F",fromString:function(a){return parseInt(a)}}))),e(ie({is:function(a){return(typeof a>"u"?"undefined":My(a))==="bigint"}},et("bigint",function(a){var i=a.value;return m.jsx(m.Fragment,{children:"".concat(i,"n")})},{colorKey:"base0F",fromString:function(a){return BigInt(a.replace(/\D/g,""))}}))),t}var Qr=function(e){return m.jsx(j.Box,_r(ie({component:"span"},e),{sx:ie({cursor:"pointer",paddingLeft:"0.7rem"},e.sx)}))},It=function(e){var t=e.value,r=e.path,n=e.nestedIndex,a,i=(a=e.editable)!==null&&a!==void 0?a:void 0,o=J(function(P){return P.editable}),s=f.useMemo(function(){return o===!1||i===!1?!1:typeof o=="function"?!!o(r,t):o},[r,i,o,t]),c=Me(f.useState(typeof t=="function"?function(){return t}:t),2),u=c[0],h=c[1],l=r.length,d=r[l-1],p=J(function(P){return P.hoverPath}),v=f.useMemo(function(){return p&&r.every(function(P,K){return P===p.path[K]&&n===p.nestedIndex})},[p,r,n]),g=J(function(P){return P.setHover}),y=J(function(P){return P.value}),x=Me(Py(r,t,n),2),C=x[0],_=x[1],S=Me(f.useState(!1),2),b=S[0],T=S[1],k=J(function(P){return P.onChange}),W=Ca(),q=J(function(P){return P.colorspace.base0C}),ge=dm(t,r),ae=ge.Component,he=ge.PreComponent,Se=ge.PostComponent,be=ge.Editor,Ce=J(function(P){return P.quotesOnKeys}),se=J(function(P){return P.rootName}),me=y===t,Oe=Number.isInteger(Number(d)),Ae=J(function(P){return P.enableClipboard}),$=Ty(),A=$.copy,U=$.copied,G=f.useMemo(function(){return b?m.jsxs(m.Fragment,{children:[m.jsx(Qr,{children:m.jsx(Xy,{sx:{fontSize:".8rem"},onClick:function(){T(!1),h(t)}})}),m.jsx(Qr,{children:m.jsx(Hs,{sx:{fontSize:".8rem"},onClick:function(){T(!1),k(r,t,u)}})})]}):m.jsxs(m.Fragment,{children:[Ae&&m.jsx(Qr,{onClick:function(P){P.preventDefault();try{A(r,t)}catch(K){console.error(K)}},children:U?m.jsx(Hs,{sx:{fontSize:".8rem"}}):m.jsx(Jy,{sx:{fontSize:".8rem"}})}),be&&s&&m.jsx(Qr,{onClick:function(P){P.preventDefault(),T(!0)},children:m.jsx(Zy,{sx:{fontSize:".8rem"}})})]})},[be,U,A,s,b,Ae,k,r,u,t]),M=f.useMemo(function(){return Cr(t)===0},[t]),L=!M&&!!(he&&Se),B=J(function(P){return P.keyRenderer}),H=f.useMemo(function(){return{path:r,inspect:C,setInspect:_,value:t}},[C,r,_,t]);return m.jsxs(j.Box,{className:"data-key-pair","data-testid":"data-key-pair"+r.join("."),sx:{userSelect:"text"},onMouseEnter:f.useCallback(function(){return g(r,n)},[g,r,n]),children:[m.jsxs(ot,{component:"span",className:"data-key",sx:{lineHeight:1.5,color:W,letterSpacing:.5,opacity:.8},onClick:f.useCallback(function(P){P.isDefaultPrevented()||M||_(function(K){return!K})},[_]),children:[L?C?m.jsx(Qy,{sx:{fontSize:".8rem","&:hover":{cursor:"pointer"}}}):m.jsx(Ry,{sx:{fontSize:".8rem","&:hover":{cursor:"pointer"}}}):null,me?se!==!1?Ce?m.jsxs(m.Fragment,{children:['"',se,'"']}):m.jsx(m.Fragment,{children:se}):null:B.when(H)?m.jsx(B,ie({},H)):n===void 0&&(Oe?m.jsx(j.Box,{component:"span",style:{color:q},children:d}):Ce?m.jsxs(m.Fragment,{children:['"',d,'"']}):m.jsx(m.Fragment,{children:d})),me?se!==!1?m.jsx(ot,{sx:{mr:.5},children:":"}):null:n===void 0&&m.jsx(ot,{sx:{mr:.5},children:":"}),he&&m.jsx(he,ie({},H)),v&&L&&C&&G]}),b&&s?be&&m.jsx(be,{value:u,setValue:h}):ae?m.jsx(ae,ie({},H)):m.jsx(j.Box,{component:"span",className:"data-value-fallback",children:"fallback: ".concat(t)}),Se&&m.jsx(Se,ie({},H)),v&&L&&!C&&G,v&&!L&&G]})},zs="(prefers-color-scheme: dark)";function pm(){var e=Me(f.useState(!1),2),t=e[0],r=e[1];return f.useEffect(function(){var n=function(i){r(i.matches)};r(window.matchMedia(zs).matches);var a=window.matchMedia(zs);return a.addEventListener("change",n),function(){return a.removeEventListener("change",n)}},[]),t}function Le(e,t){var r=Ls();f.useEffect(function(){t!==void 0&&r.setState(oa({},e,t))},[e,t,r])}var vm=function(e){var t=Ls();Le("value",e.value),Le("editable",e.editable),Le("indentWidth",e.indentWidth),Le("onChange",e.onChange),Le("groupArraysAfterLength",e.groupArraysAfterLength),Le("keyRenderer",e.keyRenderer),Le("maxDisplayLength",e.maxDisplayLength),Le("enableClipboard",e.enableClipboard),Le("rootName",e.rootName),Le("displayDataTypes",e.displayDataTypes),Le("displayObjectSize",e.displayObjectSize),Le("onCopy",e.onCopy),f.useEffect(function(){e.theme==="light"?t.setState({colorspace:la}):e.theme==="dark"?t.setState({colorspace:Ds}):typeof e.theme=="object"&&t.setState({colorspace:e.theme})},[t,e.theme]);var r=f.useRef(!0),n=f.useMemo(function(){return hm()},[]),a=Us(function(u){return u.registerTypes});if(r.current){var i,o=at(n);(i=e.valueTypes)===null||i===void 0||i.forEach(function(u){o.push(u)}),a(o),r.current=!1}f.useEffect(function(){var u,h=at(n);(u=e.valueTypes)===null||u===void 0||u.forEach(function(l){h.push(l)}),a(h)},[n,e.valueTypes,a]);var s=J(function(u){return u.value}),c=J(function(u){return u.setHover});return m.jsx(j.Paper,{elevation:0,className:e.className,style:e.style,sx:{fontFamily:"monospace",userSelect:"none",contentVisibility:"auto"},onMouseLeave:f.useCallback(function(){c(null)},[c]),children:m.jsx(It,{value:s,path:f.useMemo(function(){return[]},[])})})},gm=function(t){var r=pm(),n,a=f.useMemo(function(){return t.theme==="auto"?r?"light":"dark":(n=t.theme)!==null&&n!==void 0?n:"light"},[r,t.theme]),i=f.useMemo(function(){var s=typeof a=="object"?a.base00:a==="dark"?Ds.base00:la.base00;return j.createTheme({components:{MuiPaper:{styleOverrides:{root:{backgroundColor:s}}}},palette:{mode:a==="dark"?"dark":"light",background:{default:s}}})},[a]),o=_r(ie({},t),{theme:a});return m.jsx(j.ThemeProvider,{theme:i,children:m.jsx(um,{createStore:lm,children:m.jsx($y,{createStore:function(){return Cy(t)},children:m.jsx(vm,ie({},o))})})})};const bm=e=>{const[t,r]=f.useState(0),n=e.themeOverrides?rt.createTheme(ms,e.themeOverrides):rt.createTheme(ms),a=X.Children.toArray(e.children).length>1,[i,o]=f.useState(e.initialValues),s=h=>{e.setValueOnRender&&e.setValueOnRender(h),o(h)},{setValueOnRender:c,...u}=e;return m.jsxs("div",{css:ce.css`
|
|
135
136
|
display: flex;
|
|
136
137
|
flex-direction: row;
|
|
137
|
-
`,children:[m.jsx(rt.ThemeProvider,{theme:n,children:m.jsx(kb,{children:m.jsx(Mt.Consumer,{children:({searchString:
|
|
138
|
+
`,children:[m.jsx(rt.ThemeProvider,{theme:n,children:m.jsx(kb,{children:m.jsx(Mt.Consumer,{children:({searchString:h,setSearchString:l})=>m.jsxs(X.Fragment,{children:[e.showAppBar&&m.jsx(mc,{label:e.label,showSearch:e.showSearch,searchValue:h,setSearchString:d=>{h!==d&&(l(d),r(d?void 0:0))}}),m.jsxs("div",{id:"configr-pane",css:ce.css`
|
|
138
139
|
// no. Make client set the background color: background-color: #f8f9fa;
|
|
139
140
|
height: 100%;
|
|
140
141
|
display: flex;
|
|
141
|
-
padding-
|
|
142
|
-
padding-left: ${a?void 0:"20px"};
|
|
143
|
-
|
|
142
|
+
//padding-left: ${a?void 0:"20px"};
|
|
144
143
|
.MuiTab-wrapper {
|
|
145
144
|
text-align: left;
|
|
146
145
|
align-items: start;
|
|
147
146
|
}
|
|
148
|
-
`,className:e.className,children:[a&&m.jsx(ym,{currentGroup:t,setCurrentGroupIndex:r,children:e.children}),m.jsx(fs,{currentGroupIndex:t,setValueOnRender:s
|
|
147
|
+
`,className:e.className,children:[a&&m.jsx(ym,{currentGroup:t,setCurrentGroupIndex:r,children:e.children}),m.jsx(fs,{currentGroupIndex:t,...u,setValueOnRender:s})]})]})})})}),e.showJson&&m.jsx("div",{css:ce.css`
|
|
149
148
|
white-space: pre;
|
|
150
149
|
margin-left: 20px;
|
|
151
150
|
.data-type-label {
|
|
@@ -217,13 +216,14 @@ Valid keys: `+JSON.stringify(Object.keys($),null," "));var E=we(H,Y,M,L,B+"."+Y
|
|
|
217
216
|
background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));
|
|
218
217
|
background: linear-gradient(to top, #000, rgba(0,0,0,0));
|
|
219
218
|
}
|
|
220
|
-
`),f.createElement("div",{style:h.white,className:"saturation-white"},f.createElement("div",{style:h.black,className:"saturation-black"}),f.createElement("div",{style:h.pointer},this.props.pointer?f.createElement(this.props.pointer,this.props):f.createElement("div",{style:h.circle}))))}}]),t}(f.PureComponent||f.Component);function VO(e,t){return e&&gu(e,t,vr)}function UO(e,t){return function(r,n){if(r==null)return r;if(!At(r))return e(r,n);for(var a=r.length,i=t?a:-1,o=Object(r);(t?i--:++i<a)&&n(o[i],i,o)!==!1;);return r}}var zO=UO(VO);const wu=zO;function WO(e){return typeof e=="function"?e:cn}function KO(e,t){var r=Te(e)?to:wu;return r(e,WO(t))}function dn(e){return dn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dn(e)}var qO=/^\s+/,RO=/\s+$/;function F(e,t){if(e=e||"",t=t||{},e instanceof F)return e;if(!(this instanceof F))return new F(e,t);var r=YO(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}F.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 t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),r,n,a,i,o,s;return r=t.r/255,n=t.g/255,a=t.b/255,r<=.03928?i=r/12.92:i=Math.pow((r+.055)/1.055,2.4),n<=.03928?o=n/12.92:o=Math.pow((n+.055)/1.055,2.4),a<=.03928?s=a/12.92:s=Math.pow((a+.055)/1.055,2.4),.2126*i+.7152*o+.0722*s},setAlpha:function(t){return this._a=Ou(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=_u(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=_u(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.v*100);return this._a==1?"hsv("+r+", "+n+"%, "+a+"%)":"hsva("+r+", "+n+"%, "+a+"%, "+this._roundA+")"},toHsl:function(){var t=Eu(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=Eu(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.l*100);return this._a==1?"hsl("+r+", "+n+"%, "+a+"%)":"hsla("+r+", "+n+"%, "+a+"%, "+this._roundA+")"},toHex:function(t){return Cu(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return QO(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"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(ve(this._r,255)*100)+"%",g:Math.round(ve(this._g,255)*100)+"%",b:Math.round(ve(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(ve(this._r,255)*100)+"%, "+Math.round(ve(this._g,255)*100)+"%, "+Math.round(ve(this._b,255)*100)+"%)":"rgba("+Math.round(ve(this._r,255)*100)+"%, "+Math.round(ve(this._g,255)*100)+"%, "+Math.round(ve(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:fA[Cu(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var r="#"+$u(this._r,this._g,this._b,this._a),n=r,a=this._gradientType?"GradientType = 1, ":"";if(t){var i=F(t);n="#"+$u(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+a+"startColorstr="+r+",endColorstr="+n+")"},toString:function(t){var r=!!t;t=t||this._format;var n=!1,a=this._a<1&&this._a>=0,i=!r&&a&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return i?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return F(this.toString())},_applyModification:function(t,r){var n=t.apply(null,[this].concat([].slice.call(r)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(nA,arguments)},brighten:function(){return this._applyModification(aA,arguments)},darken:function(){return this._applyModification(iA,arguments)},desaturate:function(){return this._applyModification(eA,arguments)},saturate:function(){return this._applyModification(tA,arguments)},greyscale:function(){return this._applyModification(rA,arguments)},spin:function(){return this._applyModification(oA,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(uA,arguments)},complement:function(){return this._applyCombination(sA,arguments)},monochromatic:function(){return this._applyCombination(cA,arguments)},splitcomplement:function(){return this._applyCombination(lA,arguments)},triad:function(){return this._applyCombination(Tu,[3])},tetrad:function(){return this._applyCombination(Tu,[4])}},F.fromRatio=function(e,t){if(dn(e)=="object"){var r={};for(var n in e)e.hasOwnProperty(n)&&(n==="a"?r[n]=e[n]:r[n]=Fr(e[n]));e=r}return F(e,t)};function YO(e){var t={r:0,g:0,b:0},r=1,n=null,a=null,i=null,o=!1,s=!1;return typeof e=="string"&&(e=vA(e)),dn(e)=="object"&&(tt(e.r)&&tt(e.g)&&tt(e.b)?(t=XO(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):tt(e.h)&&tt(e.s)&&tt(e.v)?(n=Fr(e.s),a=Fr(e.v),t=ZO(e.h,n,a),o=!0,s="hsv"):tt(e.h)&&tt(e.s)&&tt(e.l)&&(n=Fr(e.s),i=Fr(e.l),t=JO(e.h,n,i),o=!0,s="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=Ou(r),{ok:o,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}function XO(e,t,r){return{r:ve(e,255)*255,g:ve(t,255)*255,b:ve(r,255)*255}}function Eu(e,t,r){e=ve(e,255),t=ve(t,255),r=ve(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),i,o,s=(n+a)/2;if(n==a)i=o=0;else{var c=n-a;switch(o=s>.5?c/(2-n-a):c/(n+a),n){case e:i=(t-r)/c+(t<r?6:0);break;case t:i=(r-e)/c+2;break;case r:i=(e-t)/c+4;break}i/=6}return{h:i,s:o,l:s}}function JO(e,t,r){var n,a,i;e=ve(e,360),t=ve(t,100),r=ve(r,100);function o(u,h,l){return l<0&&(l+=1),l>1&&(l-=1),l<1/6?u+(h-u)*6*l:l<1/2?h:l<2/3?u+(h-u)*(2/3-l)*6:u}if(t===0)n=a=i=r;else{var s=r<.5?r*(1+t):r+t-r*t,c=2*r-s;n=o(c,s,e+1/3),a=o(c,s,e),i=o(c,s,e-1/3)}return{r:n*255,g:a*255,b:i*255}}function _u(e,t,r){e=ve(e,255),t=ve(t,255),r=ve(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),i,o,s=n,c=n-a;if(o=n===0?0:c/n,n==a)i=0;else{switch(n){case e:i=(t-r)/c+(t<r?6:0);break;case t:i=(r-e)/c+2;break;case r:i=(e-t)/c+4;break}i/=6}return{h:i,s:o,v:s}}function ZO(e,t,r){e=ve(e,360)*6,t=ve(t,100),r=ve(r,100);var n=Math.floor(e),a=e-n,i=r*(1-t),o=r*(1-a*t),s=r*(1-(1-a)*t),c=n%6,u=[r,o,i,i,s,r][c],h=[s,r,r,o,i,i][c],l=[i,i,s,r,r,o][c];return{r:u*255,g:h*255,b:l*255}}function Cu(e,t,r,n){var a=[Ve(Math.round(e).toString(16)),Ve(Math.round(t).toString(16)),Ve(Math.round(r).toString(16))];return n&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function QO(e,t,r,n,a){var i=[Ve(Math.round(e).toString(16)),Ve(Math.round(t).toString(16)),Ve(Math.round(r).toString(16)),Ve(Au(n))];return a&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function $u(e,t,r,n){var a=[Ve(Au(n)),Ve(Math.round(e).toString(16)),Ve(Math.round(t).toString(16)),Ve(Math.round(r).toString(16))];return a.join("")}F.equals=function(e,t){return!e||!t?!1:F(e).toRgbString()==F(t).toRgbString()},F.random=function(){return F.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function eA(e,t){t=t===0?0:t||10;var r=F(e).toHsl();return r.s-=t/100,r.s=hn(r.s),F(r)}function tA(e,t){t=t===0?0:t||10;var r=F(e).toHsl();return r.s+=t/100,r.s=hn(r.s),F(r)}function rA(e){return F(e).desaturate(100)}function nA(e,t){t=t===0?0:t||10;var r=F(e).toHsl();return r.l+=t/100,r.l=hn(r.l),F(r)}function aA(e,t){t=t===0?0:t||10;var r=F(e).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),F(r)}function iA(e,t){t=t===0?0:t||10;var r=F(e).toHsl();return r.l-=t/100,r.l=hn(r.l),F(r)}function oA(e,t){var r=F(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,F(r)}function sA(e){var t=F(e).toHsl();return t.h=(t.h+180)%360,F(t)}function Tu(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var r=F(e).toHsl(),n=[F(e)],a=360/t,i=1;i<t;i++)n.push(F({h:(r.h+i*a)%360,s:r.s,l:r.l}));return n}function lA(e){var t=F(e).toHsl(),r=t.h;return[F(e),F({h:(r+72)%360,s:t.s,l:t.l}),F({h:(r+216)%360,s:t.s,l:t.l})]}function uA(e,t,r){t=t||6,r=r||30;var n=F(e).toHsl(),a=360/r,i=[F(e)];for(n.h=(n.h-(a*t>>1)+720)%360;--t;)n.h=(n.h+a)%360,i.push(F(n));return i}function cA(e,t){t=t||6;for(var r=F(e).toHsv(),n=r.h,a=r.s,i=r.v,o=[],s=1/t;t--;)o.push(F({h:n,s:a,v:i})),i=(i+s)%1;return o}F.mix=function(e,t,r){r=r===0?0:r||50;var n=F(e).toRgb(),a=F(t).toRgb(),i=r/100,o={r:(a.r-n.r)*i+n.r,g:(a.g-n.g)*i+n.g,b:(a.b-n.b)*i+n.b,a:(a.a-n.a)*i+n.a};return F(o)},F.readability=function(e,t){var r=F(e),n=F(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},F.isReadable=function(e,t,r){var n=F.readability(e,t),a,i;switch(i=!1,a=gA(r),a.level+a.size){case"AAsmall":case"AAAlarge":i=n>=4.5;break;case"AAlarge":i=n>=3;break;case"AAAsmall":i=n>=7;break}return i},F.mostReadable=function(e,t,r){var n=null,a=0,i,o,s,c;r=r||{},o=r.includeFallbackColors,s=r.level,c=r.size;for(var u=0;u<t.length;u++)i=F.readability(e,t[u]),i>a&&(a=i,n=F(t[u]));return F.isReadable(e,n,{level:s,size:c})||!o?n:(r.includeFallbackColors=!1,F.mostReadable(e,["#fff","#000"],r))};var oi=F.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"},fA=F.hexNames=dA(oi);function dA(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}function Ou(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ve(e,t){hA(e)&&(e="100%");var r=pA(e);return e=Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function hn(e){return Math.min(1,Math.max(0,e))}function je(e){return parseInt(e,16)}function hA(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function pA(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Ve(e){return e.length==1?"0"+e:""+e}function Fr(e){return e<=1&&(e=e*100+"%"),e}function Au(e){return Math.round(parseFloat(e)*255).toString(16)}function Pu(e){return je(e)/255}var Ue=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",r="(?:"+t+")|(?:"+e+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",a="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+a),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 tt(e){return!!Ue.CSS_UNIT.exec(e)}function vA(e){e=e.replace(qO,"").replace(RO,"").toLowerCase();var t=!1;if(oi[e])e=oi[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=Ue.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=Ue.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=Ue.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=Ue.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=Ue.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=Ue.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=Ue.hex8.exec(e))?{r:je(r[1]),g:je(r[2]),b:je(r[3]),a:Pu(r[4]),format:t?"name":"hex8"}:(r=Ue.hex6.exec(e))?{r:je(r[1]),g:je(r[2]),b:je(r[3]),format:t?"name":"hex"}:(r=Ue.hex4.exec(e))?{r:je(r[1]+""+r[1]),g:je(r[2]+""+r[2]),b:je(r[3]+""+r[3]),a:Pu(r[4]+""+r[4]),format:t?"name":"hex8"}:(r=Ue.hex3.exec(e))?{r:je(r[1]+""+r[1]),g:je(r[2]+""+r[2]),b:je(r[3]+""+r[3]),format:t?"name":"hex"}:!1}function gA(e){var t,r;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:t,size:r}}var Mu=function(t){var r=["r","g","b","a","h","s","l","v"],n=0,a=0;return KO(r,function(i){if(t[i]&&(n+=1,isNaN(t[i])||(a+=1),i==="s"||i==="l")){var o=/^\d+%$/;o.test(t[i])&&(a+=1)}}),n===a?t:!1},kr=function(t,r){var n=t.hex?F(t.hex):F(t),a=n.toHsl(),i=n.toHsv(),o=n.toRgb(),s=n.toHex();a.s===0&&(a.h=r||0,i.h=r||0);var c=s==="000000"&&o.a===0;return{hsl:a,hex:c?"transparent":"#"+s,rgb:o,hsv:i,oldHue:t.h||r||a.h,source:t.source}},st=function(t){if(t==="transparent")return!0;var r=String(t).charAt(0)==="#"?1:0;return t.length!==4+r&&t.length<7+r&&F(t).isValid()},si=function(t){if(!t)return"#fff";var r=kr(t);if(r.hex==="transparent")return"rgba(0,0,0,0.4)";var n=(r.rgb.r*299+r.rgb.g*587+r.rgb.b*114)/1e3;return n>=128?"#000":"#fff"},li=function(t,r){var n=t.replace("°","");return F(r+" ("+n+")")._ok},jr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bA=function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function yA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mA(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function xA(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Fe=function(t){var r=function(n){xA(a,n);function a(i){yA(this,a);var o=mA(this,(a.__proto__||Object.getPrototypeOf(a)).call(this));return o.handleChange=function(s,c){var u=Mu(s);if(u){var h=kr(s,s.h||o.state.oldHue);o.setState(h),o.props.onChangeComplete&&o.debounce(o.props.onChangeComplete,h,c),o.props.onChange&&o.props.onChange(h,c)}},o.handleSwatchHover=function(s,c){var u=Mu(s);if(u){var h=kr(s,s.h||o.state.oldHue);o.props.onSwatchHover&&o.props.onSwatchHover(h,c)}},o.state=jr({},kr(i.color,0)),o.debounce=Su(function(s,c,u){s(c,u)},100),o}return bA(a,[{key:"render",value:function(){var o={};return this.props.onSwatchHover&&(o.onSwatchHover=this.handleSwatchHover),f.createElement(t,jr({},this.props,this.state,{onChange:this.handleChange},o))}}],[{key:"getDerivedStateFromProps",value:function(o,s){return jr({},kr(o.color,s.oldHue))}}]),a}(f.PureComponent||f.Component);return r.propTypes=jr({},t.propTypes),r.defaultProps=jr({},t.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),r},SA=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wA=function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function EA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Iu(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function _A(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var CA=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){_A(a,n);function a(){var i,o,s,c;EA(this,a);for(var u=arguments.length,h=Array(u),l=0;l<u;l++)h[l]=arguments[l];return c=(o=(s=Iu(this,(i=a.__proto__||Object.getPrototypeOf(a)).call.apply(i,[this].concat(h))),s),s.state={focus:!1},s.handleFocus=function(){return s.setState({focus:!0})},s.handleBlur=function(){return s.setState({focus:!1})},o),Iu(s,c)}return wA(a,[{key:"render",value:function(){return f.createElement(r,{onFocus:this.handleFocus,onBlur:this.handleBlur},f.createElement(t,SA({},this.props,this.state)))}}]),a}(f.Component)},Fu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$A=13,TA=function(t){var r=t.color,n=t.style,a=t.onClick,i=a===void 0?function(){}:a,o=t.onHover,s=t.title,c=s===void 0?r:s,u=t.children,h=t.focus,l=t.focusStyle,d=l===void 0?{}:l,p=r==="transparent",v=z({default:{swatch:Fu({background:r,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},n,h?d:{})}}),g=function(S){return i(r,S)},y=function(S){return S.keyCode===$A&&i(r,S)},x=function(S){return o(r,S)},C={};return o&&(C.onMouseOver=x),f.createElement("div",Fu({style:v.swatch,onClick:g,title:c,tabIndex:0,onKeyDown:y},C),u,p&&f.createElement(Lt,{borderRadius:v.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))};const St=CA(TA);var OA=function(t){var r=t.direction,n=z({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:r==="vertical"});return f.createElement("div",{style:n.picker})},AA=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ku=function(t){var r=t.rgb,n=t.hsl,a=t.width,i=t.height,o=t.onChange,s=t.direction,c=t.style,u=t.renderers,h=t.pointer,l=t.className,d=l===void 0?"":l,p=z({default:{picker:{position:"relative",width:a,height:i},alpha:{radius:"2px",style:c}}});return f.createElement("div",{style:p.picker,className:"alpha-picker "+d},f.createElement(Ya,AA({},p.alpha,{rgb:r,hsl:n,pointer:h,renderers:u,onChange:o,direction:s})))};ku.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:OA},Fe(ku);var PA="__lodash_hash_undefined__";function MA(e){return this.__data__.set(e,PA),this}function IA(e){return this.__data__.has(e)}function pn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Qe;++t<r;)this.add(e[t])}pn.prototype.add=pn.prototype.push=MA,pn.prototype.has=IA;function FA(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function kA(e,t){return e.has(t)}var jA=1,DA=2;function ju(e,t,r,n,a,i){var o=r&jA,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var u=i.get(e),h=i.get(t);if(u&&h)return u==t&&h==e;var l=-1,d=!0,p=r&DA?new pn:void 0;for(i.set(e,t),i.set(t,e);++l<s;){var v=e[l],g=t[l];if(n)var y=o?n(g,v,l,t,e,i):n(v,g,l,e,t,i);if(y!==void 0){if(y)continue;d=!1;break}if(p){if(!FA(t,function(x,C){if(!kA(p,C)&&(v===x||a(v,x,r,n,i)))return p.push(C)})){d=!1;break}}else if(!(v===g||a(v,g,r,n,i))){d=!1;break}}return i.delete(e),i.delete(t),d}function NA(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}function LA(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var BA=1,HA=2,GA="[object Boolean]",VA="[object Date]",UA="[object Error]",zA="[object Map]",WA="[object Number]",KA="[object RegExp]",qA="[object Set]",RA="[object String]",YA="[object Symbol]",XA="[object ArrayBuffer]",JA="[object DataView]",Du=Ke?Ke.prototype:void 0,ui=Du?Du.valueOf:void 0;function ZA(e,t,r,n,a,i,o){switch(r){case JA:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case XA:return!(e.byteLength!=t.byteLength||!i(new Rr(e),new Rr(t)));case GA:case VA:case WA:return ur(+e,+t);case UA:return e.name==t.name&&e.message==t.message;case KA:case RA:return e==t+"";case zA:var s=NA;case qA:var c=n&BA;if(s||(s=LA),e.size!=t.size&&!c)return!1;var u=o.get(e);if(u)return u==t;n|=HA,o.set(e,t);var h=ju(s(e),s(t),n,a,i,o);return o.delete(e),h;case YA:if(ui)return ui.call(e)==ui.call(t)}return!1}var QA=1,e5=Object.prototype,t5=e5.hasOwnProperty;function r5(e,t,r,n,a,i){var o=r&QA,s=Bn(e),c=s.length,u=Bn(t),h=u.length;if(c!=h&&!o)return!1;for(var l=c;l--;){var d=s[l];if(!(o?d in t:t5.call(t,d)))return!1}var p=i.get(e),v=i.get(t);if(p&&v)return p==t&&v==e;var g=!0;i.set(e,t),i.set(t,e);for(var y=o;++l<c;){d=s[l];var x=e[d],C=t[d];if(n)var _=o?n(C,x,d,t,e,i):n(x,C,d,e,t,i);if(!(_===void 0?x===C||a(x,C,r,n,i):_)){g=!1;break}y||(y=d=="constructor")}if(g&&!y){var S=e.constructor,b=t.constructor;S!=b&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof b=="function"&&b instanceof b)&&(g=!1)}return i.delete(e),i.delete(t),g}var n5=1,Nu="[object Arguments]",Lu="[object Array]",vn="[object Object]",a5=Object.prototype,Bu=a5.hasOwnProperty;function i5(e,t,r,n,a,i){var o=Te(e),s=Te(t),c=o?Lu:br(e),u=s?Lu:br(t);c=c==Nu?vn:c,u=u==Nu?vn:u;var h=c==vn,l=u==vn,d=c==u;if(d&&hr(e)){if(!hr(t))return!1;o=!0,h=!1}if(d&&!h)return i||(i=new Ge),o||jn(e)?ju(e,t,r,n,a,i):ZA(e,t,c,r,n,a,i);if(!(r&n5)){var p=h&&Bu.call(e,"__wrapped__"),v=l&&Bu.call(t,"__wrapped__");if(p||v){var g=p?e.value():e,y=v?t.value():t;return i||(i=new Ge),a(g,y,r,n,i)}}return d?(i||(i=new Ge),r5(e,t,r,n,a,i)):!1}function ci(e,t,r,n,a){return e===t?!0:e==null||t==null||!qe(e)&&!qe(t)?e!==e&&t!==t:i5(e,t,r,n,ci,a)}var o5=1,s5=2;function l5(e,t,r,n){var a=r.length,i=a,o=!n;if(e==null)return!i;for(e=Object(e);a--;){var s=r[a];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<i;){s=r[a];var c=s[0],u=e[c],h=s[1];if(o&&s[2]){if(u===void 0&&!(c in e))return!1}else{var l=new Ge;if(n)var d=n(u,h,c,e,t,l);if(!(d===void 0?ci(h,u,o5|s5,n,l):d))return!1}}return!0}function Hu(e){return e===e&&!ke(e)}function u5(e){for(var t=vr(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,Hu(a)]}return t}function Gu(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function c5(e){var t=u5(e);return t.length==1&&t[0][2]?Gu(t[0][0],t[0][1]):function(r){return r===e||l5(r,e,t)}}var f5=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,d5=/^\w*$/;function fi(e,t){if(Te(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||mr(e)?!0:d5.test(e)||!f5.test(e)||t!=null&&e in Object(t)}function Vu(e,t){return Te(e)?e:fi(e,t)?[e]:Lo(Vo(e))}function Uu(e,t){t=Vu(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[xr(t[r++])];return r&&r==n?e:void 0}function h5(e,t,r){var n=e==null?void 0:Uu(e,t);return n===void 0?r:n}function p5(e,t){return e!=null&&t in Object(e)}function v5(e,t,r){t=Vu(t,e);for(var n=-1,a=t.length,i=!1;++n<a;){var o=xr(t[n]);if(!(i=e!=null&&r(e,o)))break;e=e[o]}return i||++n!=a?i:(a=e==null?0:e.length,!!a&&In(a)&&Mn(o,a)&&(Te(e)||qr(e)))}function g5(e,t){return e!=null&&v5(e,t,p5)}var b5=1,y5=2;function m5(e,t){return fi(e)&&Hu(t)?Gu(xr(e),t):function(r){var n=h5(r,e);return n===void 0&&n===t?g5(r,e):ci(t,n,b5|y5)}}function x5(e){return function(t){return t==null?void 0:t[e]}}function S5(e){return function(t){return Uu(t,e)}}function w5(e){return fi(e)?x5(xr(e)):S5(e)}function E5(e){return typeof e=="function"?e:e==null?cn:typeof e=="object"?Te(e)?m5(e[0],e[1]):c5(e):w5(e)}function _5(e,t){var r=-1,n=At(e)?Array(e.length):[];return wu(e,function(a,i,o){n[++r]=t(a,i,o)}),n}function wt(e,t){var r=Te(e)?Wn:_5;return r(e,E5(t))}var C5=function(t){var r=t.colors,n=t.onClick,a=t.onSwatchHover,i=z({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return f.createElement("div",{style:i.swatches},wt(r,function(o){return f.createElement(St,{key:o,color:o,style:i.swatch,onClick:n,onHover:a,focusStyle:{boxShadow:"0 0 4px "+o}})}),f.createElement("div",{style:i.clear}))},di=function(t){var r=t.onChange,n=t.onSwatchHover,a=t.hex,i=t.colors,o=t.width,s=t.triangle,c=t.styles,u=c===void 0?{}:c,h=t.className,l=h===void 0?"":h,d=a==="transparent",p=function(y,x){st(y)&&r({hex:y,source:"hex"},x)},v=z(Ie({default:{card:{width:o,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:a,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:si(a),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+a+" transparent",position:"absolute",top:"-10px",left:"50%",marginLeft:"-10px"},input:{width:"100%",fontSize:"12px",color:"#666",border:"0px",outline:"none",height:"22px",boxShadow:"inset 0 0 0 1px #ddd",borderRadius:"4px",padding:"0 7px",boxSizing:"border-box"}},"hide-triangle":{triangle:{display:"none"}}},u),{"hide-triangle":s==="hide"});return f.createElement("div",{style:v.card,className:"block-picker "+l},f.createElement("div",{style:v.triangle}),f.createElement("div",{style:v.head},d&&f.createElement(Lt,{borderRadius:"6px 6px 0 0"}),f.createElement("div",{style:v.label},a)),f.createElement("div",{style:v.body},f.createElement(C5,{colors:i,onClick:p,onSwatchHover:n}),f.createElement(Z,{style:{input:v.input},value:a,onChange:p})))};di.propTypes={width:O.oneOfType([O.string,O.number]),colors:O.arrayOf(O.string),triangle:O.oneOf(["top","hide"]),styles:O.object},di.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}},Fe(di);var Ht={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",a100:"#ff8a80",a200:"#ff5252",a400:"#ff1744",a700:"#d50000"},Gt={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",a100:"#ff80ab",a200:"#ff4081",a400:"#f50057",a700:"#c51162"},Vt={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",a100:"#ea80fc",a200:"#e040fb",a400:"#d500f9",a700:"#aa00ff"},Ut={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},zt={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",a100:"#8c9eff",a200:"#536dfe",a400:"#3d5afe",a700:"#304ffe"},Wt={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",a100:"#82b1ff",a200:"#448aff",a400:"#2979ff",a700:"#2962ff"},Kt={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",a100:"#80d8ff",a200:"#40c4ff",a400:"#00b0ff",a700:"#0091ea"},qt={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},Rt={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},Dr={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",a100:"#b9f6ca",a200:"#69f0ae",a400:"#00e676",a700:"#00c853"},Yt={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},Xt={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},Jt={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},Zt={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},Qt={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",a100:"#ffd180",a200:"#ffab40",a400:"#ff9100",a700:"#ff6d00"},er={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"},tr={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},rr={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},zu=function(t){var r=t.color,n=t.onClick,a=t.onSwatchHover,i=t.hover,o=t.active,s=t.circleSize,c=t.circleSpacing,u=z({default:{swatch:{width:s,height:s,marginRight:c,marginBottom:c,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+(s/2+1)+"px "+r,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+r}}},{hover:i,active:o});return f.createElement("div",{style:u.swatch},f.createElement(St,{style:u.Swatch,color:r,onClick:n,onHover:a,focusStyle:{boxShadow:u.Swatch.boxShadow+", 0 0 5px "+r}}))};zu.defaultProps={circleSize:28,circleSpacing:14};const $5=qa(zu);var hi=function(t){var r=t.width,n=t.onChange,a=t.onSwatchHover,i=t.colors,o=t.hex,s=t.circleSize,c=t.styles,u=c===void 0?{}:c,h=t.circleSpacing,l=t.className,d=l===void 0?"":l,p=z(Ie({default:{card:{width:r,display:"flex",flexWrap:"wrap",marginRight:-h,marginBottom:-h}}},u)),v=function(y,x){return n({hex:y,source:"hex"},x)};return f.createElement("div",{style:p.card,className:"circle-picker "+d},wt(i,function(g){return f.createElement($5,{key:g,color:g,onClick:v,onSwatchHover:a,active:o===g.toLowerCase(),circleSize:s,circleSpacing:h})}))};hi.propTypes={width:O.oneOfType([O.string,O.number]),circleSize:O.number,circleSpacing:O.number,styles:O.object},hi.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[Ht[500],Gt[500],Vt[500],Ut[500],zt[500],Wt[500],Kt[500],qt[500],Rt[500],Dr[500],Yt[500],Xt[500],Jt[500],Zt[500],Qt[500],er[500],tr[500],rr[500]],styles:{}},Fe(hi);function Wu(e){return e===void 0}var Ku={};Object.defineProperty(Ku,"__esModule",{value:!0});var qu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},T5=f,Ru=O5(T5);function O5(e){return e&&e.__esModule?e:{default:e}}function A5(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}var gn=24,P5=Ku.default=function(e){var t=e.fill,r=t===void 0?"currentColor":t,n=e.width,a=n===void 0?gn:n,i=e.height,o=i===void 0?gn:i,s=e.style,c=s===void 0?{}:s,u=A5(e,["fill","width","height","style"]);return Ru.default.createElement("svg",qu({viewBox:"0 0 "+gn+" "+gn,style:qu({fill:r,width:a,height:o},c)},u),Ru.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))},M5=function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function I5(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F5(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function k5(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Yu=function(e){k5(t,e);function t(r){I5(this,t);var n=F5(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.toggleViews=function(){n.state.view==="hex"?n.setState({view:"rgb"}):n.state.view==="rgb"?n.setState({view:"hsl"}):n.state.view==="hsl"&&(n.props.hsl.a===1?n.setState({view:"hex"}):n.setState({view:"rgb"}))},n.handleChange=function(a,i){a.hex?st(a.hex)&&n.props.onChange({hex:a.hex,source:"hex"},i):a.r||a.g||a.b?n.props.onChange({r:a.r||n.props.rgb.r,g:a.g||n.props.rgb.g,b:a.b||n.props.rgb.b,source:"rgb"},i):a.a?(a.a<0?a.a=0:a.a>1&&(a.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(a.a*100)/100,source:"rgb"},i)):(a.h||a.s||a.l)&&(typeof a.s=="string"&&a.s.includes("%")&&(a.s=a.s.replace("%","")),typeof a.l=="string"&&a.l.includes("%")&&(a.l=a.l.replace("%","")),a.s==1?a.s=.01:a.l==1&&(a.l=.01),n.props.onChange({h:a.h||n.props.hsl.h,s:Number(Wu(a.s)?n.props.hsl.s:a.s),l:Number(Wu(a.l)?n.props.hsl.l:a.l),source:"hsl"},i))},n.showHighlight=function(a){a.currentTarget.style.background="#eee"},n.hideHighlight=function(a){a.currentTarget.style.background="transparent"},r.hsl.a!==1&&r.view==="hex"?n.state={view:"rgb"}:n.state={view:r.view},n}return M5(t,[{key:"render",value:function(){var n=this,a=z({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),i=void 0;return this.state.view==="hex"?i=f.createElement("div",{style:a.fields,className:"flexbox-fix"},f.createElement("div",{style:a.field},f.createElement(Z,{style:{input:a.input,label:a.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):this.state.view==="rgb"?i=f.createElement("div",{style:a.fields,className:"flexbox-fix"},f.createElement("div",{style:a.field},f.createElement(Z,{style:{input:a.input,label:a.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),f.createElement("div",{style:a.field},f.createElement(Z,{style:{input:a.input,label:a.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),f.createElement("div",{style:a.field},f.createElement(Z,{style:{input:a.input,label:a.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),f.createElement("div",{style:a.alpha},f.createElement(Z,{style:{input:a.input,label:a.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):this.state.view==="hsl"&&(i=f.createElement("div",{style:a.fields,className:"flexbox-fix"},f.createElement("div",{style:a.field},f.createElement(Z,{style:{input:a.input,label:a.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),f.createElement("div",{style:a.field},f.createElement(Z,{style:{input:a.input,label:a.label},label:"s",value:Math.round(this.props.hsl.s*100)+"%",onChange:this.handleChange})),f.createElement("div",{style:a.field},f.createElement(Z,{style:{input:a.input,label:a.label},label:"l",value:Math.round(this.props.hsl.l*100)+"%",onChange:this.handleChange})),f.createElement("div",{style:a.alpha},f.createElement(Z,{style:{input:a.input,label:a.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),f.createElement("div",{style:a.wrap,className:"flexbox-fix"},i,f.createElement("div",{style:a.toggle},f.createElement("div",{style:a.icon,onClick:this.toggleViews,ref:function(s){return n.icon=s}},f.createElement(P5,{style:a.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(n,a){return n.hsl.a!==1&&a.view==="hex"?{view:"rgb"}:null}}]),t}(f.Component);Yu.defaultProps={view:"hex"};var Xu=function(){var t=z({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return f.createElement("div",{style:t.picker})},j5=function(){var t=z({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return f.createElement("div",{style:t.picker})},pi=function(t){var r=t.width,n=t.onChange,a=t.disableAlpha,i=t.rgb,o=t.hsl,s=t.hsv,c=t.hex,u=t.renderers,h=t.styles,l=h===void 0?{}:h,d=t.className,p=d===void 0?"":d,v=t.defaultView,g=z(Ie({default:{picker:{width:r,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+i.r+", "+i.g+", "+i.b+", "+i.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},l),{disableAlpha:a});return f.createElement("div",{style:g.picker,className:"chrome-picker "+p},f.createElement("div",{style:g.saturation},f.createElement(fn,{style:g.Saturation,hsl:o,hsv:s,pointer:j5,onChange:n})),f.createElement("div",{style:g.body},f.createElement("div",{style:g.controls,className:"flexbox-fix"},f.createElement("div",{style:g.color},f.createElement("div",{style:g.swatch},f.createElement("div",{style:g.active}),f.createElement(Lt,{renderers:u}))),f.createElement("div",{style:g.toggles},f.createElement("div",{style:g.hue},f.createElement(Bt,{style:g.Hue,hsl:o,pointer:Xu,onChange:n})),f.createElement("div",{style:g.alpha},f.createElement(Ya,{style:g.Alpha,rgb:i,hsl:o,pointer:Xu,renderers:u,onChange:n})))),f.createElement(Yu,{rgb:i,hsl:o,hex:c,view:v,onChange:n,disableAlpha:a})))};pi.propTypes={width:O.oneOfType([O.string,O.number]),disableAlpha:O.bool,styles:O.object,defaultView:O.oneOf(["hex","rgb","hsl"])},pi.defaultProps={width:225,disableAlpha:!1,styles:{}};const D5=Fe(pi);var N5=function(t){var r=t.color,n=t.onClick,a=n===void 0?function(){}:n,i=t.onSwatchHover,o=t.active,s=z({default:{color:{background:r,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:si(r),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:o,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return f.createElement(St,{style:s.color,color:r,onClick:a,onHover:i,focusStyle:{boxShadow:"0 0 4px "+r}},f.createElement("div",{style:s.dot}))},L5=function(t){var r=t.hex,n=t.rgb,a=t.onChange,i=z({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:r},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),o=function(c,u){c.r||c.g||c.b?a({r:c.r||n.r,g:c.g||n.g,b:c.b||n.b,source:"rgb"},u):a({hex:c.hex,source:"hex"},u)};return f.createElement("div",{style:i.fields,className:"flexbox-fix"},f.createElement("div",{style:i.active}),f.createElement(Z,{style:{wrap:i.HEXwrap,input:i.HEXinput,label:i.HEXlabel},label:"hex",value:r,onChange:o}),f.createElement(Z,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"r",value:n.r,onChange:o}),f.createElement(Z,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"g",value:n.g,onChange:o}),f.createElement(Z,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"b",value:n.b,onChange:o}))},vi=function(t){var r=t.onChange,n=t.onSwatchHover,a=t.colors,i=t.hex,o=t.rgb,s=t.styles,c=s===void 0?{}:s,u=t.className,h=u===void 0?"":u,l=z(Ie({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},c)),d=function(v,g){v.hex?st(v.hex)&&r({hex:v.hex,source:"hex"},g):r(v,g)};return f.createElement(Ir,{style:l.Compact,styles:c},f.createElement("div",{style:l.compact,className:"compact-picker "+h},f.createElement("div",null,wt(a,function(p){return f.createElement(N5,{key:p,color:p,active:p.toLowerCase()===i,onClick:d,onSwatchHover:n})}),f.createElement("div",{style:l.clear})),f.createElement(L5,{hex:i,rgb:o,onChange:d})))};vi.propTypes={colors:O.arrayOf(O.string),styles:O.object},vi.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}},Fe(vi);var B5=function(t){var r=t.hover,n=t.color,a=t.onClick,i=t.onSwatchHover,o={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},s=z({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:o}},{hover:r});return f.createElement("div",{style:s.swatch},f.createElement(St,{color:n,onClick:a,onHover:i,focusStyle:o}))};const H5=qa(B5);var gi=function(t){var r=t.width,n=t.colors,a=t.onChange,i=t.onSwatchHover,o=t.triangle,s=t.styles,c=s===void 0?{}:s,u=t.className,h=u===void 0?"":u,l=z(Ie({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)"}}},c),{"hide-triangle":o==="hide","top-left-triangle":o==="top-left","top-right-triangle":o==="top-right","bottom-left-triangle":o==="bottom-left","bottom-right-triangle":o==="bottom-right"}),d=function(v,g){return a({hex:v,source:"hex"},g)};return f.createElement("div",{style:l.card,className:"github-picker "+h},f.createElement("div",{style:l.triangleShadow}),f.createElement("div",{style:l.triangle}),wt(n,function(p){return f.createElement(H5,{color:p,key:p,onClick:d,onSwatchHover:i})}))};gi.propTypes={width:O.oneOfType([O.string,O.number]),colors:O.arrayOf(O.string),triangle:O.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:O.object},gi.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}},Fe(gi);var G5=function(t){var r=t.direction,n=z({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:r==="vertical"});return f.createElement("div",{style:n.picker})},V5=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bi=function(t){var r=t.width,n=t.height,a=t.onChange,i=t.hsl,o=t.direction,s=t.pointer,c=t.styles,u=c===void 0?{}:c,h=t.className,l=h===void 0?"":h,d=z(Ie({default:{picker:{position:"relative",width:r,height:n},hue:{radius:"2px"}}},u)),p=function(g){return a({a:1,h:g.h,l:.5,s:1})};return f.createElement("div",{style:d.picker,className:"hue-picker "+l},f.createElement(Bt,V5({},d.hue,{hsl:i,pointer:s,onChange:p,direction:o})))};bi.propTypes={styles:O.object},bi.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:G5,styles:{}},Fe(bi);var U5=function(t){var r=t.onChange,n=t.hex,a=t.rgb,i=t.styles,o=i===void 0?{}:i,s=t.className,c=s===void 0?"":s,u=z(Ie({default:{material:{width:"98px",height:"98px",padding:"16px",fontFamily:"Roboto"},HEXwrap:{position:"relative"},HEXinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"2px solid "+n,outline:"none",height:"30px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},Hex:{style:{}},RGBwrap:{position:"relative"},RGBinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"1px solid #eee",outline:"none",height:"30px"},RGBlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},split:{display:"flex",marginRight:"-10px",paddingTop:"11px"},third:{flex:"1",paddingRight:"10px"}}},o)),h=function(d,p){d.hex?st(d.hex)&&r({hex:d.hex,source:"hex"},p):(d.r||d.g||d.b)&&r({r:d.r||a.r,g:d.g||a.g,b:d.b||a.b,source:"rgb"},p)};return f.createElement(Ir,{styles:o},f.createElement("div",{style:u.material,className:"material-picker "+c},f.createElement(Z,{style:{wrap:u.HEXwrap,input:u.HEXinput,label:u.HEXlabel},label:"hex",value:n,onChange:h}),f.createElement("div",{style:u.split,className:"flexbox-fix"},f.createElement("div",{style:u.third},f.createElement(Z,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"r",value:a.r,onChange:h})),f.createElement("div",{style:u.third},f.createElement(Z,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"g",value:a.g,onChange:h})),f.createElement("div",{style:u.third},f.createElement(Z,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"b",value:a.b,onChange:h})))))};Fe(U5);var z5=function(t){var r=t.onChange,n=t.rgb,a=t.hsv,i=t.hex,o=z({default:{fields:{paddingTop:"5px",paddingBottom:"9px",width:"80px",position:"relative"},divider:{height:"5px"},RGBwrap:{position:"relative"},RGBinput:{marginLeft:"40%",width:"40%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"5px",fontSize:"13px",paddingLeft:"3px",marginRight:"10px"},RGBlabel:{left:"0px",top:"0px",width:"34px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px",position:"absolute"},HEXwrap:{position:"relative"},HEXinput:{marginLeft:"20%",width:"80%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"6px",fontSize:"13px",paddingLeft:"3px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",width:"14px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px"},fieldSymbols:{position:"absolute",top:"5px",right:"-7px",fontSize:"13px"},symbol:{height:"20px",lineHeight:"22px",paddingBottom:"7px"}}}),s=function(u,h){u["#"]?st(u["#"])&&r({hex:u["#"],source:"hex"},h):u.r||u.g||u.b?r({r:u.r||n.r,g:u.g||n.g,b:u.b||n.b,source:"rgb"},h):(u.h||u.s||u.v)&&r({h:u.h||a.h,s:u.s||a.s,v:u.v||a.v,source:"hsv"},h)};return f.createElement("div",{style:o.fields},f.createElement(Z,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"h",value:Math.round(a.h),onChange:s}),f.createElement(Z,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"s",value:Math.round(a.s*100),onChange:s}),f.createElement(Z,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"v",value:Math.round(a.v*100),onChange:s}),f.createElement("div",{style:o.divider}),f.createElement(Z,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"r",value:n.r,onChange:s}),f.createElement(Z,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"g",value:n.g,onChange:s}),f.createElement(Z,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"b",value:n.b,onChange:s}),f.createElement("div",{style:o.divider}),f.createElement(Z,{style:{wrap:o.HEXwrap,input:o.HEXinput,label:o.HEXlabel},label:"#",value:i.replace("#",""),onChange:s}),f.createElement("div",{style:o.fieldSymbols},f.createElement("div",{style:o.symbol},"°"),f.createElement("div",{style:o.symbol},"%"),f.createElement("div",{style:o.symbol},"%")))},W5=function(t){var r=t.hsl,n=z({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}},"black-outline":{picker:{boxShadow:"inset 0 0 0 1px #000"}}},{"black-outline":r.l>.5});return f.createElement("div",{style:n.picker})},K5=function(){var t=z({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return f.createElement("div",{style:t.pointer},f.createElement("div",{style:t.left},f.createElement("div",{style:t.leftInside})),f.createElement("div",{style:t.right},f.createElement("div",{style:t.rightInside})))},Ju=function(t){var r=t.onClick,n=t.label,a=t.children,i=t.active,o=z({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:i});return f.createElement("div",{style:o.button,onClick:r},n||a)},q5=function(t){var r=t.rgb,n=t.currentColor,a=z({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+r.r+","+r.g+", "+r.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:n,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return f.createElement("div",null,f.createElement("div",{style:a.label},"new"),f.createElement("div",{style:a.swatches},f.createElement("div",{style:a.new}),f.createElement("div",{style:a.current})),f.createElement("div",{style:a.label},"current"))},R5=function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function Y5(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function X5(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function J5(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var yi=function(e){J5(t,e);function t(r){Y5(this,t);var n=X5(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.state={currentColor:r.hex},n}return R5(t,[{key:"render",value:function(){var n=this.props,a=n.styles,i=a===void 0?{}:a,o=n.className,s=o===void 0?"":o,c=z(Ie({default:{picker:{background:"#DCDCDC",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)",boxSizing:"initial",width:"513px"},head:{backgroundImage:"linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)",borderBottom:"1px solid #B1B1B1",boxShadow:"inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)",height:"23px",lineHeight:"24px",borderRadius:"4px 4px 0 0",fontSize:"13px",color:"#4D4D4D",textAlign:"center"},body:{padding:"15px 15px 0",display:"flex"},saturation:{width:"256px",height:"256px",position:"relative",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0",overflow:"hidden"},hue:{position:"relative",height:"256px",width:"19px",marginLeft:"10px",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0"},controls:{width:"180px",marginLeft:"10px"},top:{display:"flex"},previews:{width:"60px"},actions:{flex:"1",marginLeft:"20px"}}},i));return f.createElement("div",{style:c.picker,className:"photoshop-picker "+s},f.createElement("div",{style:c.head},this.props.header),f.createElement("div",{style:c.body,className:"flexbox-fix"},f.createElement("div",{style:c.saturation},f.createElement(fn,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:W5,onChange:this.props.onChange})),f.createElement("div",{style:c.hue},f.createElement(Bt,{direction:"vertical",hsl:this.props.hsl,pointer:K5,onChange:this.props.onChange})),f.createElement("div",{style:c.controls},f.createElement("div",{style:c.top,className:"flexbox-fix"},f.createElement("div",{style:c.previews},f.createElement(q5,{rgb:this.props.rgb,currentColor:this.state.currentColor})),f.createElement("div",{style:c.actions},f.createElement(Ju,{label:"OK",onClick:this.props.onAccept,active:!0}),f.createElement(Ju,{label:"Cancel",onClick:this.props.onCancel}),f.createElement(z5,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),t}(f.Component);yi.propTypes={header:O.string,styles:O.object},yi.defaultProps={header:"Color Picker",styles:{}},Fe(yi);var Z5=function(t){var r=t.onChange,n=t.rgb,a=t.hsl,i=t.hex,o=t.disableAlpha,s=z({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:o}),c=function(h,l){h.hex?st(h.hex)&&r({hex:h.hex,source:"hex"},l):h.r||h.g||h.b?r({r:h.r||n.r,g:h.g||n.g,b:h.b||n.b,a:n.a,source:"rgb"},l):h.a&&(h.a<0?h.a=0:h.a>100&&(h.a=100),h.a/=100,r({h:a.h,s:a.s,l:a.l,a:h.a,source:"rgb"},l))};return f.createElement("div",{style:s.fields,className:"flexbox-fix"},f.createElement("div",{style:s.double},f.createElement(Z,{style:{input:s.input,label:s.label},label:"hex",value:i.replace("#",""),onChange:c})),f.createElement("div",{style:s.single},f.createElement(Z,{style:{input:s.input,label:s.label},label:"r",value:n.r,onChange:c,dragLabel:"true",dragMax:"255"})),f.createElement("div",{style:s.single},f.createElement(Z,{style:{input:s.input,label:s.label},label:"g",value:n.g,onChange:c,dragLabel:"true",dragMax:"255"})),f.createElement("div",{style:s.single},f.createElement(Z,{style:{input:s.input,label:s.label},label:"b",value:n.b,onChange:c,dragLabel:"true",dragMax:"255"})),f.createElement("div",{style:s.alpha},f.createElement(Z,{style:{input:s.input,label:s.label},label:"a",value:Math.round(n.a*100),onChange:c,dragLabel:"true",dragMax:"100"})))},Q5=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zu=function(t){var r=t.colors,n=t.onClick,a=n===void 0?function(){}:n,i=t.onSwatchHover,o=z({default:{colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},"no-presets":{colors:{display:"none"}}},{"no-presets":!r||!r.length}),s=function(u,h){a({hex:u,source:"hex"},h)};return f.createElement("div",{style:o.colors,className:"flexbox-fix"},r.map(function(c){var u=typeof c=="string"?{color:c}:c,h=""+u.color+(u.title||"");return f.createElement("div",{key:h,style:o.swatchWrap},f.createElement(St,Q5({},u,{style:o.swatch,onClick:s,onHover:i,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+u.color}})))}))};Zu.propTypes={colors:O.arrayOf(O.oneOfType([O.string,O.shape({color:O.string,title:O.string})])).isRequired};var eP=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mi=function(t){var r=t.width,n=t.rgb,a=t.hex,i=t.hsv,o=t.hsl,s=t.onChange,c=t.onSwatchHover,u=t.disableAlpha,h=t.presetColors,l=t.renderers,d=t.styles,p=d===void 0?{}:d,v=t.className,g=v===void 0?"":v,y=z(Ie({default:eP({picker:{width:r,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba("+n.r+","+n.g+","+n.b+","+n.a+")",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},p),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},p),{disableAlpha:u});return f.createElement("div",{style:y.picker,className:"sketch-picker "+g},f.createElement("div",{style:y.saturation},f.createElement(fn,{style:y.Saturation,hsl:o,hsv:i,onChange:s})),f.createElement("div",{style:y.controls,className:"flexbox-fix"},f.createElement("div",{style:y.sliders},f.createElement("div",{style:y.hue},f.createElement(Bt,{style:y.Hue,hsl:o,onChange:s})),f.createElement("div",{style:y.alpha},f.createElement(Ya,{style:y.Alpha,rgb:n,hsl:o,renderers:l,onChange:s}))),f.createElement("div",{style:y.color},f.createElement(Lt,null),f.createElement("div",{style:y.activeColor}))),f.createElement(Z5,{rgb:n,hsl:o,hex:a,onChange:s,disableAlpha:u}),f.createElement(Zu,{colors:h,onClick:s,onSwatchHover:c}))};mi.propTypes={disableAlpha:O.bool,width:O.oneOfType([O.string,O.number]),styles:O.object},mi.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]},Fe(mi);var Nr=function(t){var r=t.hsl,n=t.offset,a=t.onClick,i=a===void 0?function(){}:a,o=t.active,s=t.first,c=t.last,u=z({default:{swatch:{height:"12px",background:"hsl("+r.h+", 50%, "+n*100+"%)",cursor:"pointer"}},first:{swatch:{borderRadius:"2px 0 0 2px"}},last:{swatch:{borderRadius:"0 2px 2px 0"}},active:{swatch:{transform:"scaleY(1.8)",borderRadius:"3.6px/2px"}}},{active:o,first:s,last:c}),h=function(d){return i({h:r.h,s:.5,l:n,source:"hsl"},d)};return f.createElement("div",{style:u.swatch,onClick:h})},tP=function(t){var r=t.onClick,n=t.hsl,a=z({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}}),i=.1;return f.createElement("div",{style:a.swatches},f.createElement("div",{style:a.swatch},f.createElement(Nr,{hsl:n,offset:".80",active:Math.abs(n.l-.8)<i&&Math.abs(n.s-.5)<i,onClick:r,first:!0})),f.createElement("div",{style:a.swatch},f.createElement(Nr,{hsl:n,offset:".65",active:Math.abs(n.l-.65)<i&&Math.abs(n.s-.5)<i,onClick:r})),f.createElement("div",{style:a.swatch},f.createElement(Nr,{hsl:n,offset:".50",active:Math.abs(n.l-.5)<i&&Math.abs(n.s-.5)<i,onClick:r})),f.createElement("div",{style:a.swatch},f.createElement(Nr,{hsl:n,offset:".35",active:Math.abs(n.l-.35)<i&&Math.abs(n.s-.5)<i,onClick:r})),f.createElement("div",{style:a.swatch},f.createElement(Nr,{hsl:n,offset:".20",active:Math.abs(n.l-.2)<i&&Math.abs(n.s-.5)<i,onClick:r,last:!0})),f.createElement("div",{style:a.clear}))},rP=function(){var t=z({default:{picker:{width:"14px",height:"14px",borderRadius:"6px",transform:"translate(-7px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return f.createElement("div",{style:t.picker})},xi=function(t){var r=t.hsl,n=t.onChange,a=t.pointer,i=t.styles,o=i===void 0?{}:i,s=t.className,c=s===void 0?"":s,u=z(Ie({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}},o));return f.createElement("div",{style:u.wrap||{},className:"slider-picker "+c},f.createElement("div",{style:u.hue},f.createElement(Bt,{style:u.Hue,hsl:r,pointer:a,onChange:n})),f.createElement("div",{style:u.swatches},f.createElement(tP,{hsl:r,onClick:n})))};xi.propTypes={styles:O.object},xi.defaultProps={pointer:rP,styles:{}},Fe(xi);var Qu={};Object.defineProperty(Qu,"__esModule",{value:!0});var ec=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nP=f,tc=aP(nP);function aP(e){return e&&e.__esModule?e:{default:e}}function iP(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}var bn=24,oP=Qu.default=function(e){var t=e.fill,r=t===void 0?"currentColor":t,n=e.width,a=n===void 0?bn:n,i=e.height,o=i===void 0?bn:i,s=e.style,c=s===void 0?{}:s,u=iP(e,["fill","width","height","style"]);return tc.default.createElement("svg",ec({viewBox:"0 0 "+bn+" "+bn,style:ec({fill:r,width:a,height:o},c)},u),tc.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))},sP=function(t){var r=t.color,n=t.onClick,a=n===void 0?function(){}:n,i=t.onSwatchHover,o=t.first,s=t.last,c=t.active,u=z({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:r,marginBottom:"1px"},check:{color:si(r),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:o,last:s,active:c,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return f.createElement(St,{color:r,style:u.color,onClick:a,onHover:i,focusStyle:{boxShadow:"0 0 4px "+r}},f.createElement("div",{style:u.check},f.createElement(oP,null)))},lP=function(t){var r=t.onClick,n=t.onSwatchHover,a=t.group,i=t.active,o=z({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return f.createElement("div",{style:o.group},wt(a,function(s,c){return f.createElement(sP,{key:s,color:s,active:s.toLowerCase()===i,first:c===0,last:c===a.length-1,onClick:r,onSwatchHover:n})}))},Si=function(t){var r=t.width,n=t.height,a=t.onChange,i=t.onSwatchHover,o=t.colors,s=t.hex,c=t.styles,u=c===void 0?{}:c,h=t.className,l=h===void 0?"":h,d=z(Ie({default:{picker:{width:r,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},u)),p=function(g,y){return a({hex:g,source:"hex"},y)};return f.createElement("div",{style:d.picker,className:"swatches-picker "+l},f.createElement(Ir,null,f.createElement("div",{style:d.overflow},f.createElement("div",{style:d.body},wt(o,function(v){return f.createElement(lP,{key:v.toString(),group:v,active:s,onClick:p,onSwatchHover:i})}),f.createElement("div",{style:d.clear})))))};Si.propTypes={width:O.oneOfType([O.string,O.number]),height:O.oneOfType([O.string,O.number]),colors:O.arrayOf(O.arrayOf(O.string)),styles:O.object},Si.defaultProps={width:320,height:240,colors:[[Ht[900],Ht[700],Ht[500],Ht[300],Ht[100]],[Gt[900],Gt[700],Gt[500],Gt[300],Gt[100]],[Vt[900],Vt[700],Vt[500],Vt[300],Vt[100]],[Ut[900],Ut[700],Ut[500],Ut[300],Ut[100]],[zt[900],zt[700],zt[500],zt[300],zt[100]],[Wt[900],Wt[700],Wt[500],Wt[300],Wt[100]],[Kt[900],Kt[700],Kt[500],Kt[300],Kt[100]],[qt[900],qt[700],qt[500],qt[300],qt[100]],[Rt[900],Rt[700],Rt[500],Rt[300],Rt[100]],["#194D33",Dr[700],Dr[500],Dr[300],Dr[100]],[Yt[900],Yt[700],Yt[500],Yt[300],Yt[100]],[Xt[900],Xt[700],Xt[500],Xt[300],Xt[100]],[Jt[900],Jt[700],Jt[500],Jt[300],Jt[100]],[Zt[900],Zt[700],Zt[500],Zt[300],Zt[100]],[Qt[900],Qt[700],Qt[500],Qt[300],Qt[100]],[er[900],er[700],er[500],er[300],er[100]],[tr[900],tr[700],tr[500],tr[300],tr[100]],[rr[900],rr[700],rr[500],rr[300],rr[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}},Fe(Si);var wi=function(t){var r=t.onChange,n=t.onSwatchHover,a=t.hex,i=t.colors,o=t.width,s=t.triangle,c=t.styles,u=c===void 0?{}:c,h=t.className,l=h===void 0?"":h,d=z(Ie({default:{card:{width:o,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},u),{"hide-triangle":s==="hide","top-left-triangle":s==="top-left","top-right-triangle":s==="top-right"}),p=function(g,y){st(g)&&r({hex:g,source:"hex"},y)};return f.createElement("div",{style:d.card,className:"twitter-picker "+l},f.createElement("div",{style:d.triangleShadow}),f.createElement("div",{style:d.triangle}),f.createElement("div",{style:d.body},wt(i,function(v,g){return f.createElement(St,{key:g,color:v,hex:v,style:d.swatch,onClick:p,onHover:n,focusStyle:{boxShadow:"0 0 4px "+v}})}),f.createElement("div",{style:d.hash},"#"),f.createElement(Z,{label:null,style:{input:d.input},value:a.replace("#",""),onChange:p}),f.createElement("div",{style:d.clear})))};wi.propTypes={width:O.oneOfType([O.string,O.number]),triangle:O.oneOf(["hide","top-left","top-right"]),colors:O.arrayOf(O.string),styles:O.object},wi.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}},Fe(wi);var Ei=function(t){var r=z({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",border:"2px #fff solid",transform:"translate(-12px, -13px)",background:"hsl("+Math.round(t.hsl.h)+", "+Math.round(t.hsl.s*100)+"%, "+Math.round(t.hsl.l*100)+"%)"}}});return f.createElement("div",{style:r.picker})};Ei.propTypes={hsl:O.shape({h:O.number,s:O.number,l:O.number,a:O.number})},Ei.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var _i=function(t){var r=z({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",transform:"translate(-10px, -7px)",background:"hsl("+Math.round(t.hsl.h)+", 100%, 50%)",border:"2px white solid"}}});return f.createElement("div",{style:r.picker})};_i.propTypes={hsl:O.shape({h:O.number,s:O.number,l:O.number,a:O.number})},_i.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var uP=function(t){var r=t.onChange,n=t.rgb,a=t.hsl,i=t.hex,o=t.hsv,s=function(p,v){if(p.hex)st(p.hex)&&r({hex:p.hex,source:"hex"},v);else if(p.rgb){var g=p.rgb.split(",");li(p.rgb,"rgb")&&r({r:g[0],g:g[1],b:g[2],a:1,source:"rgb"},v)}else if(p.hsv){var y=p.hsv.split(",");li(p.hsv,"hsv")&&(y[2]=y[2].replace("%",""),y[1]=y[1].replace("%",""),y[0]=y[0].replace("°",""),y[1]==1?y[1]=.01:y[2]==1&&(y[2]=.01),r({h:Number(y[0]),s:Number(y[1]),v:Number(y[2]),source:"hsv"},v))}else if(p.hsl){var x=p.hsl.split(",");li(p.hsl,"hsl")&&(x[2]=x[2].replace("%",""),x[1]=x[1].replace("%",""),x[0]=x[0].replace("°",""),l[1]==1?l[1]=.01:l[2]==1&&(l[2]=.01),r({h:Number(x[0]),s:Number(x[1]),v:Number(x[2]),source:"hsl"},v))}},c=z({default:{wrap:{display:"flex",height:"100px",marginTop:"4px"},fields:{width:"100%"},column:{paddingTop:"10px",display:"flex",justifyContent:"space-between"},double:{padding:"0px 4.4px",boxSizing:"border-box"},input:{width:"100%",height:"38px",boxSizing:"border-box",padding:"4px 10% 3px",textAlign:"center",border:"1px solid #dadce0",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",fontFamily:"Roboto,Arial,sans-serif"},input2:{height:"38px",width:"100%",border:"1px solid #dadce0",boxSizing:"border-box",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",paddingLeft:"10px",fontFamily:"Roboto,Arial,sans-serif"},label:{textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"35px",top:"-6px",left:"0",right:"0",marginLeft:"auto",marginRight:"auto",fontFamily:"Roboto,Arial,sans-serif"},label2:{left:"10px",textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"32px",top:"-6px",fontFamily:"Roboto,Arial,sans-serif"},single:{flexGrow:"1",margin:"0px 4.4px"}}}),u=n.r+", "+n.g+", "+n.b,h=Math.round(a.h)+"°, "+Math.round(a.s*100)+"%, "+Math.round(a.l*100)+"%",l=Math.round(o.h)+"°, "+Math.round(o.s*100)+"%, "+Math.round(o.v*100)+"%";return f.createElement("div",{style:c.wrap,className:"flexbox-fix"},f.createElement("div",{style:c.fields},f.createElement("div",{style:c.double},f.createElement(Z,{style:{input:c.input,label:c.label},label:"hex",value:i,onChange:s})),f.createElement("div",{style:c.column},f.createElement("div",{style:c.single},f.createElement(Z,{style:{input:c.input2,label:c.label2},label:"rgb",value:u,onChange:s})),f.createElement("div",{style:c.single},f.createElement(Z,{style:{input:c.input2,label:c.label2},label:"hsv",value:l,onChange:s})),f.createElement("div",{style:c.single},f.createElement(Z,{style:{input:c.input2,label:c.label2},label:"hsl",value:h,onChange:s})))))},Ci=function(t){var r=t.width,n=t.onChange,a=t.rgb,i=t.hsl,o=t.hsv,s=t.hex,c=t.header,u=t.styles,h=u===void 0?{}:u,l=t.className,d=l===void 0?"":l,p=z(Ie({default:{picker:{width:r,background:"#fff",border:"1px solid #dfe1e5",boxSizing:"initial",display:"flex",flexWrap:"wrap",borderRadius:"8px 8px 0px 0px"},head:{height:"57px",width:"100%",paddingTop:"16px",paddingBottom:"16px",paddingLeft:"16px",fontSize:"20px",boxSizing:"border-box",fontFamily:"Roboto-Regular,HelveticaNeue,Arial,sans-serif"},saturation:{width:"70%",padding:"0px",position:"relative",overflow:"hidden"},swatch:{width:"30%",height:"228px",padding:"0px",background:"rgba("+a.r+", "+a.g+", "+a.b+", 1)",position:"relative",overflow:"hidden"},body:{margin:"auto",width:"95%"},controls:{display:"flex",boxSizing:"border-box",height:"52px",paddingTop:"22px"},color:{width:"32px"},hue:{height:"8px",position:"relative",margin:"0px 16px 0px 16px",width:"100%"},Hue:{radius:"2px"}}},h));return f.createElement("div",{style:p.picker,className:"google-picker "+d},f.createElement("div",{style:p.head},c),f.createElement("div",{style:p.swatch}),f.createElement("div",{style:p.saturation},f.createElement(fn,{hsl:i,hsv:o,pointer:Ei,onChange:n})),f.createElement("div",{style:p.body},f.createElement("div",{style:p.controls,className:"flexbox-fix"},f.createElement("div",{style:p.hue},f.createElement(Bt,{style:p.Hue,hsl:i,radius:"4px",pointer:_i,onChange:n}))),f.createElement(uP,{rgb:a,hsl:i,hex:s,hsv:o,onChange:n})))};Ci.propTypes={width:O.oneOfType([O.string,O.number]),styles:O.object,header:O.string},Ci.defaultProps={width:652,styles:{},header:"Color picker"},Fe(Ci);const cP=e=>{const[t,r]=f.useState(!1),[n,a]=f.useState(e.value),i=()=>{r(!t)},o=()=>{r(!1)},s=c=>{a(c.hex),e.onChange&&e.onChange(c.hex)};return m.jsxs("div",{children:[m.jsx(rc,{color:n,onClick:i}),m.jsx(j.Dialog,{open:t,onClose:o,children:m.jsx(D5,{color:n,onChange:s,css:ce.css`
|
|
219
|
+
`),f.createElement("div",{style:h.white,className:"saturation-white"},f.createElement("div",{style:h.black,className:"saturation-black"}),f.createElement("div",{style:h.pointer},this.props.pointer?f.createElement(this.props.pointer,this.props):f.createElement("div",{style:h.circle}))))}}]),t}(f.PureComponent||f.Component);function VO(e,t){return e&&gu(e,t,vr)}function UO(e,t){return function(r,n){if(r==null)return r;if(!At(r))return e(r,n);for(var a=r.length,i=t?a:-1,o=Object(r);(t?i--:++i<a)&&n(o[i],i,o)!==!1;);return r}}var zO=UO(VO);const wu=zO;function WO(e){return typeof e=="function"?e:cn}function KO(e,t){var r=Te(e)?to:wu;return r(e,WO(t))}function dn(e){return dn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dn(e)}var qO=/^\s+/,RO=/\s+$/;function F(e,t){if(e=e||"",t=t||{},e instanceof F)return e;if(!(this instanceof F))return new F(e,t);var r=YO(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}F.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 t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),r,n,a,i,o,s;return r=t.r/255,n=t.g/255,a=t.b/255,r<=.03928?i=r/12.92:i=Math.pow((r+.055)/1.055,2.4),n<=.03928?o=n/12.92:o=Math.pow((n+.055)/1.055,2.4),a<=.03928?s=a/12.92:s=Math.pow((a+.055)/1.055,2.4),.2126*i+.7152*o+.0722*s},setAlpha:function(t){return this._a=Ou(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=_u(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=_u(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.v*100);return this._a==1?"hsv("+r+", "+n+"%, "+a+"%)":"hsva("+r+", "+n+"%, "+a+"%, "+this._roundA+")"},toHsl:function(){var t=Eu(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=Eu(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.l*100);return this._a==1?"hsl("+r+", "+n+"%, "+a+"%)":"hsla("+r+", "+n+"%, "+a+"%, "+this._roundA+")"},toHex:function(t){return Cu(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return QO(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"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(ve(this._r,255)*100)+"%",g:Math.round(ve(this._g,255)*100)+"%",b:Math.round(ve(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(ve(this._r,255)*100)+"%, "+Math.round(ve(this._g,255)*100)+"%, "+Math.round(ve(this._b,255)*100)+"%)":"rgba("+Math.round(ve(this._r,255)*100)+"%, "+Math.round(ve(this._g,255)*100)+"%, "+Math.round(ve(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:fA[Cu(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var r="#"+$u(this._r,this._g,this._b,this._a),n=r,a=this._gradientType?"GradientType = 1, ":"";if(t){var i=F(t);n="#"+$u(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+a+"startColorstr="+r+",endColorstr="+n+")"},toString:function(t){var r=!!t;t=t||this._format;var n=!1,a=this._a<1&&this._a>=0,i=!r&&a&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return i?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return F(this.toString())},_applyModification:function(t,r){var n=t.apply(null,[this].concat([].slice.call(r)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(nA,arguments)},brighten:function(){return this._applyModification(aA,arguments)},darken:function(){return this._applyModification(iA,arguments)},desaturate:function(){return this._applyModification(eA,arguments)},saturate:function(){return this._applyModification(tA,arguments)},greyscale:function(){return this._applyModification(rA,arguments)},spin:function(){return this._applyModification(oA,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(uA,arguments)},complement:function(){return this._applyCombination(sA,arguments)},monochromatic:function(){return this._applyCombination(cA,arguments)},splitcomplement:function(){return this._applyCombination(lA,arguments)},triad:function(){return this._applyCombination(Tu,[3])},tetrad:function(){return this._applyCombination(Tu,[4])}},F.fromRatio=function(e,t){if(dn(e)=="object"){var r={};for(var n in e)e.hasOwnProperty(n)&&(n==="a"?r[n]=e[n]:r[n]=Fr(e[n]));e=r}return F(e,t)};function YO(e){var t={r:0,g:0,b:0},r=1,n=null,a=null,i=null,o=!1,s=!1;return typeof e=="string"&&(e=vA(e)),dn(e)=="object"&&(tt(e.r)&&tt(e.g)&&tt(e.b)?(t=XO(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):tt(e.h)&&tt(e.s)&&tt(e.v)?(n=Fr(e.s),a=Fr(e.v),t=ZO(e.h,n,a),o=!0,s="hsv"):tt(e.h)&&tt(e.s)&&tt(e.l)&&(n=Fr(e.s),i=Fr(e.l),t=JO(e.h,n,i),o=!0,s="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=Ou(r),{ok:o,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}function XO(e,t,r){return{r:ve(e,255)*255,g:ve(t,255)*255,b:ve(r,255)*255}}function Eu(e,t,r){e=ve(e,255),t=ve(t,255),r=ve(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),i,o,s=(n+a)/2;if(n==a)i=o=0;else{var c=n-a;switch(o=s>.5?c/(2-n-a):c/(n+a),n){case e:i=(t-r)/c+(t<r?6:0);break;case t:i=(r-e)/c+2;break;case r:i=(e-t)/c+4;break}i/=6}return{h:i,s:o,l:s}}function JO(e,t,r){var n,a,i;e=ve(e,360),t=ve(t,100),r=ve(r,100);function o(u,h,l){return l<0&&(l+=1),l>1&&(l-=1),l<1/6?u+(h-u)*6*l:l<1/2?h:l<2/3?u+(h-u)*(2/3-l)*6:u}if(t===0)n=a=i=r;else{var s=r<.5?r*(1+t):r+t-r*t,c=2*r-s;n=o(c,s,e+1/3),a=o(c,s,e),i=o(c,s,e-1/3)}return{r:n*255,g:a*255,b:i*255}}function _u(e,t,r){e=ve(e,255),t=ve(t,255),r=ve(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),i,o,s=n,c=n-a;if(o=n===0?0:c/n,n==a)i=0;else{switch(n){case e:i=(t-r)/c+(t<r?6:0);break;case t:i=(r-e)/c+2;break;case r:i=(e-t)/c+4;break}i/=6}return{h:i,s:o,v:s}}function ZO(e,t,r){e=ve(e,360)*6,t=ve(t,100),r=ve(r,100);var n=Math.floor(e),a=e-n,i=r*(1-t),o=r*(1-a*t),s=r*(1-(1-a)*t),c=n%6,u=[r,o,i,i,s,r][c],h=[s,r,r,o,i,i][c],l=[i,i,s,r,r,o][c];return{r:u*255,g:h*255,b:l*255}}function Cu(e,t,r,n){var a=[Ve(Math.round(e).toString(16)),Ve(Math.round(t).toString(16)),Ve(Math.round(r).toString(16))];return n&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function QO(e,t,r,n,a){var i=[Ve(Math.round(e).toString(16)),Ve(Math.round(t).toString(16)),Ve(Math.round(r).toString(16)),Ve(Au(n))];return a&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function $u(e,t,r,n){var a=[Ve(Au(n)),Ve(Math.round(e).toString(16)),Ve(Math.round(t).toString(16)),Ve(Math.round(r).toString(16))];return a.join("")}F.equals=function(e,t){return!e||!t?!1:F(e).toRgbString()==F(t).toRgbString()},F.random=function(){return F.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function eA(e,t){t=t===0?0:t||10;var r=F(e).toHsl();return r.s-=t/100,r.s=hn(r.s),F(r)}function tA(e,t){t=t===0?0:t||10;var r=F(e).toHsl();return r.s+=t/100,r.s=hn(r.s),F(r)}function rA(e){return F(e).desaturate(100)}function nA(e,t){t=t===0?0:t||10;var r=F(e).toHsl();return r.l+=t/100,r.l=hn(r.l),F(r)}function aA(e,t){t=t===0?0:t||10;var r=F(e).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),F(r)}function iA(e,t){t=t===0?0:t||10;var r=F(e).toHsl();return r.l-=t/100,r.l=hn(r.l),F(r)}function oA(e,t){var r=F(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,F(r)}function sA(e){var t=F(e).toHsl();return t.h=(t.h+180)%360,F(t)}function Tu(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var r=F(e).toHsl(),n=[F(e)],a=360/t,i=1;i<t;i++)n.push(F({h:(r.h+i*a)%360,s:r.s,l:r.l}));return n}function lA(e){var t=F(e).toHsl(),r=t.h;return[F(e),F({h:(r+72)%360,s:t.s,l:t.l}),F({h:(r+216)%360,s:t.s,l:t.l})]}function uA(e,t,r){t=t||6,r=r||30;var n=F(e).toHsl(),a=360/r,i=[F(e)];for(n.h=(n.h-(a*t>>1)+720)%360;--t;)n.h=(n.h+a)%360,i.push(F(n));return i}function cA(e,t){t=t||6;for(var r=F(e).toHsv(),n=r.h,a=r.s,i=r.v,o=[],s=1/t;t--;)o.push(F({h:n,s:a,v:i})),i=(i+s)%1;return o}F.mix=function(e,t,r){r=r===0?0:r||50;var n=F(e).toRgb(),a=F(t).toRgb(),i=r/100,o={r:(a.r-n.r)*i+n.r,g:(a.g-n.g)*i+n.g,b:(a.b-n.b)*i+n.b,a:(a.a-n.a)*i+n.a};return F(o)},F.readability=function(e,t){var r=F(e),n=F(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},F.isReadable=function(e,t,r){var n=F.readability(e,t),a,i;switch(i=!1,a=gA(r),a.level+a.size){case"AAsmall":case"AAAlarge":i=n>=4.5;break;case"AAlarge":i=n>=3;break;case"AAAsmall":i=n>=7;break}return i},F.mostReadable=function(e,t,r){var n=null,a=0,i,o,s,c;r=r||{},o=r.includeFallbackColors,s=r.level,c=r.size;for(var u=0;u<t.length;u++)i=F.readability(e,t[u]),i>a&&(a=i,n=F(t[u]));return F.isReadable(e,n,{level:s,size:c})||!o?n:(r.includeFallbackColors=!1,F.mostReadable(e,["#fff","#000"],r))};var oi=F.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"},fA=F.hexNames=dA(oi);function dA(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}function Ou(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ve(e,t){hA(e)&&(e="100%");var r=pA(e);return e=Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function hn(e){return Math.min(1,Math.max(0,e))}function je(e){return parseInt(e,16)}function hA(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function pA(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Ve(e){return e.length==1?"0"+e:""+e}function Fr(e){return e<=1&&(e=e*100+"%"),e}function Au(e){return Math.round(parseFloat(e)*255).toString(16)}function Pu(e){return je(e)/255}var Ue=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",r="(?:"+t+")|(?:"+e+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",a="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+a),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 tt(e){return!!Ue.CSS_UNIT.exec(e)}function vA(e){e=e.replace(qO,"").replace(RO,"").toLowerCase();var t=!1;if(oi[e])e=oi[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=Ue.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=Ue.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=Ue.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=Ue.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=Ue.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=Ue.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=Ue.hex8.exec(e))?{r:je(r[1]),g:je(r[2]),b:je(r[3]),a:Pu(r[4]),format:t?"name":"hex8"}:(r=Ue.hex6.exec(e))?{r:je(r[1]),g:je(r[2]),b:je(r[3]),format:t?"name":"hex"}:(r=Ue.hex4.exec(e))?{r:je(r[1]+""+r[1]),g:je(r[2]+""+r[2]),b:je(r[3]+""+r[3]),a:Pu(r[4]+""+r[4]),format:t?"name":"hex8"}:(r=Ue.hex3.exec(e))?{r:je(r[1]+""+r[1]),g:je(r[2]+""+r[2]),b:je(r[3]+""+r[3]),format:t?"name":"hex"}:!1}function gA(e){var t,r;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:t,size:r}}var Mu=function(t){var r=["r","g","b","a","h","s","l","v"],n=0,a=0;return KO(r,function(i){if(t[i]&&(n+=1,isNaN(t[i])||(a+=1),i==="s"||i==="l")){var o=/^\d+%$/;o.test(t[i])&&(a+=1)}}),n===a?t:!1},kr=function(t,r){var n=t.hex?F(t.hex):F(t),a=n.toHsl(),i=n.toHsv(),o=n.toRgb(),s=n.toHex();a.s===0&&(a.h=r||0,i.h=r||0);var c=s==="000000"&&o.a===0;return{hsl:a,hex:c?"transparent":"#"+s,rgb:o,hsv:i,oldHue:t.h||r||a.h,source:t.source}},st=function(t){if(t==="transparent")return!0;var r=String(t).charAt(0)==="#"?1:0;return t.length!==4+r&&t.length<7+r&&F(t).isValid()},si=function(t){if(!t)return"#fff";var r=kr(t);if(r.hex==="transparent")return"rgba(0,0,0,0.4)";var n=(r.rgb.r*299+r.rgb.g*587+r.rgb.b*114)/1e3;return n>=128?"#000":"#fff"},li=function(t,r){var n=t.replace("°","");return F(r+" ("+n+")")._ok},jr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bA=function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function yA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mA(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function xA(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Fe=function(t){var r=function(n){xA(a,n);function a(i){yA(this,a);var o=mA(this,(a.__proto__||Object.getPrototypeOf(a)).call(this));return o.handleChange=function(s,c){var u=Mu(s);if(u){var h=kr(s,s.h||o.state.oldHue);o.setState(h),o.props.onChangeComplete&&o.debounce(o.props.onChangeComplete,h,c),o.props.onChange&&o.props.onChange(h,c)}},o.handleSwatchHover=function(s,c){var u=Mu(s);if(u){var h=kr(s,s.h||o.state.oldHue);o.props.onSwatchHover&&o.props.onSwatchHover(h,c)}},o.state=jr({},kr(i.color,0)),o.debounce=Su(function(s,c,u){s(c,u)},100),o}return bA(a,[{key:"render",value:function(){var o={};return this.props.onSwatchHover&&(o.onSwatchHover=this.handleSwatchHover),f.createElement(t,jr({},this.props,this.state,{onChange:this.handleChange},o))}}],[{key:"getDerivedStateFromProps",value:function(o,s){return jr({},kr(o.color,s.oldHue))}}]),a}(f.PureComponent||f.Component);return r.propTypes=jr({},t.propTypes),r.defaultProps=jr({},t.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),r},SA=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wA=function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function EA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Iu(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function _A(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var CA=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){_A(a,n);function a(){var i,o,s,c;EA(this,a);for(var u=arguments.length,h=Array(u),l=0;l<u;l++)h[l]=arguments[l];return c=(o=(s=Iu(this,(i=a.__proto__||Object.getPrototypeOf(a)).call.apply(i,[this].concat(h))),s),s.state={focus:!1},s.handleFocus=function(){return s.setState({focus:!0})},s.handleBlur=function(){return s.setState({focus:!1})},o),Iu(s,c)}return wA(a,[{key:"render",value:function(){return f.createElement(r,{onFocus:this.handleFocus,onBlur:this.handleBlur},f.createElement(t,SA({},this.props,this.state)))}}]),a}(f.Component)},Fu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$A=13,TA=function(t){var r=t.color,n=t.style,a=t.onClick,i=a===void 0?function(){}:a,o=t.onHover,s=t.title,c=s===void 0?r:s,u=t.children,h=t.focus,l=t.focusStyle,d=l===void 0?{}:l,p=r==="transparent",v=z({default:{swatch:Fu({background:r,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},n,h?d:{})}}),g=function(S){return i(r,S)},y=function(S){return S.keyCode===$A&&i(r,S)},x=function(S){return o(r,S)},C={};return o&&(C.onMouseOver=x),f.createElement("div",Fu({style:v.swatch,onClick:g,title:c,tabIndex:0,onKeyDown:y},C),u,p&&f.createElement(Lt,{borderRadius:v.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))};const St=CA(TA);var OA=function(t){var r=t.direction,n=z({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:r==="vertical"});return f.createElement("div",{style:n.picker})},AA=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ku=function(t){var r=t.rgb,n=t.hsl,a=t.width,i=t.height,o=t.onChange,s=t.direction,c=t.style,u=t.renderers,h=t.pointer,l=t.className,d=l===void 0?"":l,p=z({default:{picker:{position:"relative",width:a,height:i},alpha:{radius:"2px",style:c}}});return f.createElement("div",{style:p.picker,className:"alpha-picker "+d},f.createElement(Ya,AA({},p.alpha,{rgb:r,hsl:n,pointer:h,renderers:u,onChange:o,direction:s})))};ku.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:OA},Fe(ku);var PA="__lodash_hash_undefined__";function MA(e){return this.__data__.set(e,PA),this}function IA(e){return this.__data__.has(e)}function pn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Qe;++t<r;)this.add(e[t])}pn.prototype.add=pn.prototype.push=MA,pn.prototype.has=IA;function FA(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function kA(e,t){return e.has(t)}var jA=1,DA=2;function ju(e,t,r,n,a,i){var o=r&jA,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var u=i.get(e),h=i.get(t);if(u&&h)return u==t&&h==e;var l=-1,d=!0,p=r&DA?new pn:void 0;for(i.set(e,t),i.set(t,e);++l<s;){var v=e[l],g=t[l];if(n)var y=o?n(g,v,l,t,e,i):n(v,g,l,e,t,i);if(y!==void 0){if(y)continue;d=!1;break}if(p){if(!FA(t,function(x,C){if(!kA(p,C)&&(v===x||a(v,x,r,n,i)))return p.push(C)})){d=!1;break}}else if(!(v===g||a(v,g,r,n,i))){d=!1;break}}return i.delete(e),i.delete(t),d}function NA(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}function LA(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var BA=1,HA=2,GA="[object Boolean]",VA="[object Date]",UA="[object Error]",zA="[object Map]",WA="[object Number]",KA="[object RegExp]",qA="[object Set]",RA="[object String]",YA="[object Symbol]",XA="[object ArrayBuffer]",JA="[object DataView]",Du=Ke?Ke.prototype:void 0,ui=Du?Du.valueOf:void 0;function ZA(e,t,r,n,a,i,o){switch(r){case JA:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case XA:return!(e.byteLength!=t.byteLength||!i(new Rr(e),new Rr(t)));case GA:case VA:case WA:return ur(+e,+t);case UA:return e.name==t.name&&e.message==t.message;case KA:case RA:return e==t+"";case zA:var s=NA;case qA:var c=n&BA;if(s||(s=LA),e.size!=t.size&&!c)return!1;var u=o.get(e);if(u)return u==t;n|=HA,o.set(e,t);var h=ju(s(e),s(t),n,a,i,o);return o.delete(e),h;case YA:if(ui)return ui.call(e)==ui.call(t)}return!1}var QA=1,e5=Object.prototype,t5=e5.hasOwnProperty;function r5(e,t,r,n,a,i){var o=r&QA,s=Bn(e),c=s.length,u=Bn(t),h=u.length;if(c!=h&&!o)return!1;for(var l=c;l--;){var d=s[l];if(!(o?d in t:t5.call(t,d)))return!1}var p=i.get(e),v=i.get(t);if(p&&v)return p==t&&v==e;var g=!0;i.set(e,t),i.set(t,e);for(var y=o;++l<c;){d=s[l];var x=e[d],C=t[d];if(n)var _=o?n(C,x,d,t,e,i):n(x,C,d,e,t,i);if(!(_===void 0?x===C||a(x,C,r,n,i):_)){g=!1;break}y||(y=d=="constructor")}if(g&&!y){var S=e.constructor,b=t.constructor;S!=b&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof b=="function"&&b instanceof b)&&(g=!1)}return i.delete(e),i.delete(t),g}var n5=1,Nu="[object Arguments]",Lu="[object Array]",vn="[object Object]",a5=Object.prototype,Bu=a5.hasOwnProperty;function i5(e,t,r,n,a,i){var o=Te(e),s=Te(t),c=o?Lu:br(e),u=s?Lu:br(t);c=c==Nu?vn:c,u=u==Nu?vn:u;var h=c==vn,l=u==vn,d=c==u;if(d&&hr(e)){if(!hr(t))return!1;o=!0,h=!1}if(d&&!h)return i||(i=new Ge),o||jn(e)?ju(e,t,r,n,a,i):ZA(e,t,c,r,n,a,i);if(!(r&n5)){var p=h&&Bu.call(e,"__wrapped__"),v=l&&Bu.call(t,"__wrapped__");if(p||v){var g=p?e.value():e,y=v?t.value():t;return i||(i=new Ge),a(g,y,r,n,i)}}return d?(i||(i=new Ge),r5(e,t,r,n,a,i)):!1}function ci(e,t,r,n,a){return e===t?!0:e==null||t==null||!qe(e)&&!qe(t)?e!==e&&t!==t:i5(e,t,r,n,ci,a)}var o5=1,s5=2;function l5(e,t,r,n){var a=r.length,i=a,o=!n;if(e==null)return!i;for(e=Object(e);a--;){var s=r[a];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<i;){s=r[a];var c=s[0],u=e[c],h=s[1];if(o&&s[2]){if(u===void 0&&!(c in e))return!1}else{var l=new Ge;if(n)var d=n(u,h,c,e,t,l);if(!(d===void 0?ci(h,u,o5|s5,n,l):d))return!1}}return!0}function Hu(e){return e===e&&!ke(e)}function u5(e){for(var t=vr(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,Hu(a)]}return t}function Gu(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function c5(e){var t=u5(e);return t.length==1&&t[0][2]?Gu(t[0][0],t[0][1]):function(r){return r===e||l5(r,e,t)}}var f5=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,d5=/^\w*$/;function fi(e,t){if(Te(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||mr(e)?!0:d5.test(e)||!f5.test(e)||t!=null&&e in Object(t)}function Vu(e,t){return Te(e)?e:fi(e,t)?[e]:Lo(Vo(e))}function Uu(e,t){t=Vu(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[xr(t[r++])];return r&&r==n?e:void 0}function h5(e,t,r){var n=e==null?void 0:Uu(e,t);return n===void 0?r:n}function p5(e,t){return e!=null&&t in Object(e)}function v5(e,t,r){t=Vu(t,e);for(var n=-1,a=t.length,i=!1;++n<a;){var o=xr(t[n]);if(!(i=e!=null&&r(e,o)))break;e=e[o]}return i||++n!=a?i:(a=e==null?0:e.length,!!a&&In(a)&&Mn(o,a)&&(Te(e)||qr(e)))}function g5(e,t){return e!=null&&v5(e,t,p5)}var b5=1,y5=2;function m5(e,t){return fi(e)&&Hu(t)?Gu(xr(e),t):function(r){var n=h5(r,e);return n===void 0&&n===t?g5(r,e):ci(t,n,b5|y5)}}function x5(e){return function(t){return t==null?void 0:t[e]}}function S5(e){return function(t){return Uu(t,e)}}function w5(e){return fi(e)?x5(xr(e)):S5(e)}function E5(e){return typeof e=="function"?e:e==null?cn:typeof e=="object"?Te(e)?m5(e[0],e[1]):c5(e):w5(e)}function _5(e,t){var r=-1,n=At(e)?Array(e.length):[];return wu(e,function(a,i,o){n[++r]=t(a,i,o)}),n}function wt(e,t){var r=Te(e)?Wn:_5;return r(e,E5(t))}var C5=function(t){var r=t.colors,n=t.onClick,a=t.onSwatchHover,i=z({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return f.createElement("div",{style:i.swatches},wt(r,function(o){return f.createElement(St,{key:o,color:o,style:i.swatch,onClick:n,onHover:a,focusStyle:{boxShadow:"0 0 4px "+o}})}),f.createElement("div",{style:i.clear}))},di=function(t){var r=t.onChange,n=t.onSwatchHover,a=t.hex,i=t.colors,o=t.width,s=t.triangle,c=t.styles,u=c===void 0?{}:c,h=t.className,l=h===void 0?"":h,d=a==="transparent",p=function(y,x){st(y)&&r({hex:y,source:"hex"},x)},v=z(Ie({default:{card:{width:o,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:a,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:si(a),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+a+" transparent",position:"absolute",top:"-10px",left:"50%",marginLeft:"-10px"},input:{width:"100%",fontSize:"12px",color:"#666",border:"0px",outline:"none",height:"22px",boxShadow:"inset 0 0 0 1px #ddd",borderRadius:"4px",padding:"0 7px",boxSizing:"border-box"}},"hide-triangle":{triangle:{display:"none"}}},u),{"hide-triangle":s==="hide"});return f.createElement("div",{style:v.card,className:"block-picker "+l},f.createElement("div",{style:v.triangle}),f.createElement("div",{style:v.head},d&&f.createElement(Lt,{borderRadius:"6px 6px 0 0"}),f.createElement("div",{style:v.label},a)),f.createElement("div",{style:v.body},f.createElement(C5,{colors:i,onClick:p,onSwatchHover:n}),f.createElement(Z,{style:{input:v.input},value:a,onChange:p})))};di.propTypes={width:O.oneOfType([O.string,O.number]),colors:O.arrayOf(O.string),triangle:O.oneOf(["top","hide"]),styles:O.object},di.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}},Fe(di);var Ht={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",a100:"#ff8a80",a200:"#ff5252",a400:"#ff1744",a700:"#d50000"},Gt={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",a100:"#ff80ab",a200:"#ff4081",a400:"#f50057",a700:"#c51162"},Vt={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",a100:"#ea80fc",a200:"#e040fb",a400:"#d500f9",a700:"#aa00ff"},Ut={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},zt={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",a100:"#8c9eff",a200:"#536dfe",a400:"#3d5afe",a700:"#304ffe"},Wt={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",a100:"#82b1ff",a200:"#448aff",a400:"#2979ff",a700:"#2962ff"},Kt={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",a100:"#80d8ff",a200:"#40c4ff",a400:"#00b0ff",a700:"#0091ea"},qt={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},Rt={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},Dr={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",a100:"#b9f6ca",a200:"#69f0ae",a400:"#00e676",a700:"#00c853"},Yt={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},Xt={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},Jt={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},Zt={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},Qt={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",a100:"#ffd180",a200:"#ffab40",a400:"#ff9100",a700:"#ff6d00"},er={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"},tr={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},rr={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},zu=function(t){var r=t.color,n=t.onClick,a=t.onSwatchHover,i=t.hover,o=t.active,s=t.circleSize,c=t.circleSpacing,u=z({default:{swatch:{width:s,height:s,marginRight:c,marginBottom:c,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+(s/2+1)+"px "+r,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+r}}},{hover:i,active:o});return f.createElement("div",{style:u.swatch},f.createElement(St,{style:u.Swatch,color:r,onClick:n,onHover:a,focusStyle:{boxShadow:u.Swatch.boxShadow+", 0 0 5px "+r}}))};zu.defaultProps={circleSize:28,circleSpacing:14};const $5=qa(zu);var hi=function(t){var r=t.width,n=t.onChange,a=t.onSwatchHover,i=t.colors,o=t.hex,s=t.circleSize,c=t.styles,u=c===void 0?{}:c,h=t.circleSpacing,l=t.className,d=l===void 0?"":l,p=z(Ie({default:{card:{width:r,display:"flex",flexWrap:"wrap",marginRight:-h,marginBottom:-h}}},u)),v=function(y,x){return n({hex:y,source:"hex"},x)};return f.createElement("div",{style:p.card,className:"circle-picker "+d},wt(i,function(g){return f.createElement($5,{key:g,color:g,onClick:v,onSwatchHover:a,active:o===g.toLowerCase(),circleSize:s,circleSpacing:h})}))};hi.propTypes={width:O.oneOfType([O.string,O.number]),circleSize:O.number,circleSpacing:O.number,styles:O.object},hi.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[Ht[500],Gt[500],Vt[500],Ut[500],zt[500],Wt[500],Kt[500],qt[500],Rt[500],Dr[500],Yt[500],Xt[500],Jt[500],Zt[500],Qt[500],er[500],tr[500],rr[500]],styles:{}},Fe(hi);function Wu(e){return e===void 0}var Ku={};Object.defineProperty(Ku,"__esModule",{value:!0});var qu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},T5=f,Ru=O5(T5);function O5(e){return e&&e.__esModule?e:{default:e}}function A5(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}var gn=24,P5=Ku.default=function(e){var t=e.fill,r=t===void 0?"currentColor":t,n=e.width,a=n===void 0?gn:n,i=e.height,o=i===void 0?gn:i,s=e.style,c=s===void 0?{}:s,u=A5(e,["fill","width","height","style"]);return Ru.default.createElement("svg",qu({viewBox:"0 0 "+gn+" "+gn,style:qu({fill:r,width:a,height:o},c)},u),Ru.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))},M5=function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function I5(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F5(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function k5(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Yu=function(e){k5(t,e);function t(r){I5(this,t);var n=F5(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.toggleViews=function(){n.state.view==="hex"?n.setState({view:"rgb"}):n.state.view==="rgb"?n.setState({view:"hsl"}):n.state.view==="hsl"&&(n.props.hsl.a===1?n.setState({view:"hex"}):n.setState({view:"rgb"}))},n.handleChange=function(a,i){a.hex?st(a.hex)&&n.props.onChange({hex:a.hex,source:"hex"},i):a.r||a.g||a.b?n.props.onChange({r:a.r||n.props.rgb.r,g:a.g||n.props.rgb.g,b:a.b||n.props.rgb.b,source:"rgb"},i):a.a?(a.a<0?a.a=0:a.a>1&&(a.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(a.a*100)/100,source:"rgb"},i)):(a.h||a.s||a.l)&&(typeof a.s=="string"&&a.s.includes("%")&&(a.s=a.s.replace("%","")),typeof a.l=="string"&&a.l.includes("%")&&(a.l=a.l.replace("%","")),a.s==1?a.s=.01:a.l==1&&(a.l=.01),n.props.onChange({h:a.h||n.props.hsl.h,s:Number(Wu(a.s)?n.props.hsl.s:a.s),l:Number(Wu(a.l)?n.props.hsl.l:a.l),source:"hsl"},i))},n.showHighlight=function(a){a.currentTarget.style.background="#eee"},n.hideHighlight=function(a){a.currentTarget.style.background="transparent"},r.hsl.a!==1&&r.view==="hex"?n.state={view:"rgb"}:n.state={view:r.view},n}return M5(t,[{key:"render",value:function(){var n=this,a=z({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),i=void 0;return this.state.view==="hex"?i=f.createElement("div",{style:a.fields,className:"flexbox-fix"},f.createElement("div",{style:a.field},f.createElement(Z,{style:{input:a.input,label:a.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):this.state.view==="rgb"?i=f.createElement("div",{style:a.fields,className:"flexbox-fix"},f.createElement("div",{style:a.field},f.createElement(Z,{style:{input:a.input,label:a.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),f.createElement("div",{style:a.field},f.createElement(Z,{style:{input:a.input,label:a.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),f.createElement("div",{style:a.field},f.createElement(Z,{style:{input:a.input,label:a.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),f.createElement("div",{style:a.alpha},f.createElement(Z,{style:{input:a.input,label:a.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):this.state.view==="hsl"&&(i=f.createElement("div",{style:a.fields,className:"flexbox-fix"},f.createElement("div",{style:a.field},f.createElement(Z,{style:{input:a.input,label:a.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),f.createElement("div",{style:a.field},f.createElement(Z,{style:{input:a.input,label:a.label},label:"s",value:Math.round(this.props.hsl.s*100)+"%",onChange:this.handleChange})),f.createElement("div",{style:a.field},f.createElement(Z,{style:{input:a.input,label:a.label},label:"l",value:Math.round(this.props.hsl.l*100)+"%",onChange:this.handleChange})),f.createElement("div",{style:a.alpha},f.createElement(Z,{style:{input:a.input,label:a.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),f.createElement("div",{style:a.wrap,className:"flexbox-fix"},i,f.createElement("div",{style:a.toggle},f.createElement("div",{style:a.icon,onClick:this.toggleViews,ref:function(s){return n.icon=s}},f.createElement(P5,{style:a.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(n,a){return n.hsl.a!==1&&a.view==="hex"?{view:"rgb"}:null}}]),t}(f.Component);Yu.defaultProps={view:"hex"};var Xu=function(){var t=z({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return f.createElement("div",{style:t.picker})},j5=function(){var t=z({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return f.createElement("div",{style:t.picker})},pi=function(t){var r=t.width,n=t.onChange,a=t.disableAlpha,i=t.rgb,o=t.hsl,s=t.hsv,c=t.hex,u=t.renderers,h=t.styles,l=h===void 0?{}:h,d=t.className,p=d===void 0?"":d,v=t.defaultView,g=z(Ie({default:{picker:{width:r,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+i.r+", "+i.g+", "+i.b+", "+i.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},l),{disableAlpha:a});return f.createElement("div",{style:g.picker,className:"chrome-picker "+p},f.createElement("div",{style:g.saturation},f.createElement(fn,{style:g.Saturation,hsl:o,hsv:s,pointer:j5,onChange:n})),f.createElement("div",{style:g.body},f.createElement("div",{style:g.controls,className:"flexbox-fix"},f.createElement("div",{style:g.color},f.createElement("div",{style:g.swatch},f.createElement("div",{style:g.active}),f.createElement(Lt,{renderers:u}))),f.createElement("div",{style:g.toggles},f.createElement("div",{style:g.hue},f.createElement(Bt,{style:g.Hue,hsl:o,pointer:Xu,onChange:n})),f.createElement("div",{style:g.alpha},f.createElement(Ya,{style:g.Alpha,rgb:i,hsl:o,pointer:Xu,renderers:u,onChange:n})))),f.createElement(Yu,{rgb:i,hsl:o,hex:c,view:v,onChange:n,disableAlpha:a})))};pi.propTypes={width:O.oneOfType([O.string,O.number]),disableAlpha:O.bool,styles:O.object,defaultView:O.oneOf(["hex","rgb","hsl"])},pi.defaultProps={width:225,disableAlpha:!1,styles:{}};const D5=Fe(pi);var N5=function(t){var r=t.color,n=t.onClick,a=n===void 0?function(){}:n,i=t.onSwatchHover,o=t.active,s=z({default:{color:{background:r,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:si(r),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:o,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return f.createElement(St,{style:s.color,color:r,onClick:a,onHover:i,focusStyle:{boxShadow:"0 0 4px "+r}},f.createElement("div",{style:s.dot}))},L5=function(t){var r=t.hex,n=t.rgb,a=t.onChange,i=z({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:r},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),o=function(c,u){c.r||c.g||c.b?a({r:c.r||n.r,g:c.g||n.g,b:c.b||n.b,source:"rgb"},u):a({hex:c.hex,source:"hex"},u)};return f.createElement("div",{style:i.fields,className:"flexbox-fix"},f.createElement("div",{style:i.active}),f.createElement(Z,{style:{wrap:i.HEXwrap,input:i.HEXinput,label:i.HEXlabel},label:"hex",value:r,onChange:o}),f.createElement(Z,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"r",value:n.r,onChange:o}),f.createElement(Z,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"g",value:n.g,onChange:o}),f.createElement(Z,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"b",value:n.b,onChange:o}))},vi=function(t){var r=t.onChange,n=t.onSwatchHover,a=t.colors,i=t.hex,o=t.rgb,s=t.styles,c=s===void 0?{}:s,u=t.className,h=u===void 0?"":u,l=z(Ie({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},c)),d=function(v,g){v.hex?st(v.hex)&&r({hex:v.hex,source:"hex"},g):r(v,g)};return f.createElement(Ir,{style:l.Compact,styles:c},f.createElement("div",{style:l.compact,className:"compact-picker "+h},f.createElement("div",null,wt(a,function(p){return f.createElement(N5,{key:p,color:p,active:p.toLowerCase()===i,onClick:d,onSwatchHover:n})}),f.createElement("div",{style:l.clear})),f.createElement(L5,{hex:i,rgb:o,onChange:d})))};vi.propTypes={colors:O.arrayOf(O.string),styles:O.object},vi.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}},Fe(vi);var B5=function(t){var r=t.hover,n=t.color,a=t.onClick,i=t.onSwatchHover,o={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},s=z({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:o}},{hover:r});return f.createElement("div",{style:s.swatch},f.createElement(St,{color:n,onClick:a,onHover:i,focusStyle:o}))};const H5=qa(B5);var gi=function(t){var r=t.width,n=t.colors,a=t.onChange,i=t.onSwatchHover,o=t.triangle,s=t.styles,c=s===void 0?{}:s,u=t.className,h=u===void 0?"":u,l=z(Ie({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)"}}},c),{"hide-triangle":o==="hide","top-left-triangle":o==="top-left","top-right-triangle":o==="top-right","bottom-left-triangle":o==="bottom-left","bottom-right-triangle":o==="bottom-right"}),d=function(v,g){return a({hex:v,source:"hex"},g)};return f.createElement("div",{style:l.card,className:"github-picker "+h},f.createElement("div",{style:l.triangleShadow}),f.createElement("div",{style:l.triangle}),wt(n,function(p){return f.createElement(H5,{color:p,key:p,onClick:d,onSwatchHover:i})}))};gi.propTypes={width:O.oneOfType([O.string,O.number]),colors:O.arrayOf(O.string),triangle:O.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:O.object},gi.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}},Fe(gi);var G5=function(t){var r=t.direction,n=z({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:r==="vertical"});return f.createElement("div",{style:n.picker})},V5=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bi=function(t){var r=t.width,n=t.height,a=t.onChange,i=t.hsl,o=t.direction,s=t.pointer,c=t.styles,u=c===void 0?{}:c,h=t.className,l=h===void 0?"":h,d=z(Ie({default:{picker:{position:"relative",width:r,height:n},hue:{radius:"2px"}}},u)),p=function(g){return a({a:1,h:g.h,l:.5,s:1})};return f.createElement("div",{style:d.picker,className:"hue-picker "+l},f.createElement(Bt,V5({},d.hue,{hsl:i,pointer:s,onChange:p,direction:o})))};bi.propTypes={styles:O.object},bi.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:G5,styles:{}},Fe(bi);var U5=function(t){var r=t.onChange,n=t.hex,a=t.rgb,i=t.styles,o=i===void 0?{}:i,s=t.className,c=s===void 0?"":s,u=z(Ie({default:{material:{width:"98px",height:"98px",padding:"16px",fontFamily:"Roboto"},HEXwrap:{position:"relative"},HEXinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"2px solid "+n,outline:"none",height:"30px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},Hex:{style:{}},RGBwrap:{position:"relative"},RGBinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"1px solid #eee",outline:"none",height:"30px"},RGBlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},split:{display:"flex",marginRight:"-10px",paddingTop:"11px"},third:{flex:"1",paddingRight:"10px"}}},o)),h=function(d,p){d.hex?st(d.hex)&&r({hex:d.hex,source:"hex"},p):(d.r||d.g||d.b)&&r({r:d.r||a.r,g:d.g||a.g,b:d.b||a.b,source:"rgb"},p)};return f.createElement(Ir,{styles:o},f.createElement("div",{style:u.material,className:"material-picker "+c},f.createElement(Z,{style:{wrap:u.HEXwrap,input:u.HEXinput,label:u.HEXlabel},label:"hex",value:n,onChange:h}),f.createElement("div",{style:u.split,className:"flexbox-fix"},f.createElement("div",{style:u.third},f.createElement(Z,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"r",value:a.r,onChange:h})),f.createElement("div",{style:u.third},f.createElement(Z,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"g",value:a.g,onChange:h})),f.createElement("div",{style:u.third},f.createElement(Z,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"b",value:a.b,onChange:h})))))};Fe(U5);var z5=function(t){var r=t.onChange,n=t.rgb,a=t.hsv,i=t.hex,o=z({default:{fields:{paddingTop:"5px",paddingBottom:"9px",width:"80px",position:"relative"},divider:{height:"5px"},RGBwrap:{position:"relative"},RGBinput:{marginLeft:"40%",width:"40%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"5px",fontSize:"13px",paddingLeft:"3px",marginRight:"10px"},RGBlabel:{left:"0px",top:"0px",width:"34px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px",position:"absolute"},HEXwrap:{position:"relative"},HEXinput:{marginLeft:"20%",width:"80%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"6px",fontSize:"13px",paddingLeft:"3px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",width:"14px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px"},fieldSymbols:{position:"absolute",top:"5px",right:"-7px",fontSize:"13px"},symbol:{height:"20px",lineHeight:"22px",paddingBottom:"7px"}}}),s=function(u,h){u["#"]?st(u["#"])&&r({hex:u["#"],source:"hex"},h):u.r||u.g||u.b?r({r:u.r||n.r,g:u.g||n.g,b:u.b||n.b,source:"rgb"},h):(u.h||u.s||u.v)&&r({h:u.h||a.h,s:u.s||a.s,v:u.v||a.v,source:"hsv"},h)};return f.createElement("div",{style:o.fields},f.createElement(Z,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"h",value:Math.round(a.h),onChange:s}),f.createElement(Z,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"s",value:Math.round(a.s*100),onChange:s}),f.createElement(Z,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"v",value:Math.round(a.v*100),onChange:s}),f.createElement("div",{style:o.divider}),f.createElement(Z,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"r",value:n.r,onChange:s}),f.createElement(Z,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"g",value:n.g,onChange:s}),f.createElement(Z,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"b",value:n.b,onChange:s}),f.createElement("div",{style:o.divider}),f.createElement(Z,{style:{wrap:o.HEXwrap,input:o.HEXinput,label:o.HEXlabel},label:"#",value:i.replace("#",""),onChange:s}),f.createElement("div",{style:o.fieldSymbols},f.createElement("div",{style:o.symbol},"°"),f.createElement("div",{style:o.symbol},"%"),f.createElement("div",{style:o.symbol},"%")))},W5=function(t){var r=t.hsl,n=z({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}},"black-outline":{picker:{boxShadow:"inset 0 0 0 1px #000"}}},{"black-outline":r.l>.5});return f.createElement("div",{style:n.picker})},K5=function(){var t=z({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return f.createElement("div",{style:t.pointer},f.createElement("div",{style:t.left},f.createElement("div",{style:t.leftInside})),f.createElement("div",{style:t.right},f.createElement("div",{style:t.rightInside})))},Ju=function(t){var r=t.onClick,n=t.label,a=t.children,i=t.active,o=z({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:i});return f.createElement("div",{style:o.button,onClick:r},n||a)},q5=function(t){var r=t.rgb,n=t.currentColor,a=z({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+r.r+","+r.g+", "+r.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:n,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return f.createElement("div",null,f.createElement("div",{style:a.label},"new"),f.createElement("div",{style:a.swatches},f.createElement("div",{style:a.new}),f.createElement("div",{style:a.current})),f.createElement("div",{style:a.label},"current"))},R5=function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function Y5(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function X5(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function J5(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var yi=function(e){J5(t,e);function t(r){Y5(this,t);var n=X5(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.state={currentColor:r.hex},n}return R5(t,[{key:"render",value:function(){var n=this.props,a=n.styles,i=a===void 0?{}:a,o=n.className,s=o===void 0?"":o,c=z(Ie({default:{picker:{background:"#DCDCDC",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)",boxSizing:"initial",width:"513px"},head:{backgroundImage:"linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)",borderBottom:"1px solid #B1B1B1",boxShadow:"inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)",height:"23px",lineHeight:"24px",borderRadius:"4px 4px 0 0",fontSize:"13px",color:"#4D4D4D",textAlign:"center"},body:{padding:"15px 15px 0",display:"flex"},saturation:{width:"256px",height:"256px",position:"relative",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0",overflow:"hidden"},hue:{position:"relative",height:"256px",width:"19px",marginLeft:"10px",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0"},controls:{width:"180px",marginLeft:"10px"},top:{display:"flex"},previews:{width:"60px"},actions:{flex:"1",marginLeft:"20px"}}},i));return f.createElement("div",{style:c.picker,className:"photoshop-picker "+s},f.createElement("div",{style:c.head},this.props.header),f.createElement("div",{style:c.body,className:"flexbox-fix"},f.createElement("div",{style:c.saturation},f.createElement(fn,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:W5,onChange:this.props.onChange})),f.createElement("div",{style:c.hue},f.createElement(Bt,{direction:"vertical",hsl:this.props.hsl,pointer:K5,onChange:this.props.onChange})),f.createElement("div",{style:c.controls},f.createElement("div",{style:c.top,className:"flexbox-fix"},f.createElement("div",{style:c.previews},f.createElement(q5,{rgb:this.props.rgb,currentColor:this.state.currentColor})),f.createElement("div",{style:c.actions},f.createElement(Ju,{label:"OK",onClick:this.props.onAccept,active:!0}),f.createElement(Ju,{label:"Cancel",onClick:this.props.onCancel}),f.createElement(z5,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),t}(f.Component);yi.propTypes={header:O.string,styles:O.object},yi.defaultProps={header:"Color Picker",styles:{}},Fe(yi);var Z5=function(t){var r=t.onChange,n=t.rgb,a=t.hsl,i=t.hex,o=t.disableAlpha,s=z({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:o}),c=function(h,l){h.hex?st(h.hex)&&r({hex:h.hex,source:"hex"},l):h.r||h.g||h.b?r({r:h.r||n.r,g:h.g||n.g,b:h.b||n.b,a:n.a,source:"rgb"},l):h.a&&(h.a<0?h.a=0:h.a>100&&(h.a=100),h.a/=100,r({h:a.h,s:a.s,l:a.l,a:h.a,source:"rgb"},l))};return f.createElement("div",{style:s.fields,className:"flexbox-fix"},f.createElement("div",{style:s.double},f.createElement(Z,{style:{input:s.input,label:s.label},label:"hex",value:i.replace("#",""),onChange:c})),f.createElement("div",{style:s.single},f.createElement(Z,{style:{input:s.input,label:s.label},label:"r",value:n.r,onChange:c,dragLabel:"true",dragMax:"255"})),f.createElement("div",{style:s.single},f.createElement(Z,{style:{input:s.input,label:s.label},label:"g",value:n.g,onChange:c,dragLabel:"true",dragMax:"255"})),f.createElement("div",{style:s.single},f.createElement(Z,{style:{input:s.input,label:s.label},label:"b",value:n.b,onChange:c,dragLabel:"true",dragMax:"255"})),f.createElement("div",{style:s.alpha},f.createElement(Z,{style:{input:s.input,label:s.label},label:"a",value:Math.round(n.a*100),onChange:c,dragLabel:"true",dragMax:"100"})))},Q5=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zu=function(t){var r=t.colors,n=t.onClick,a=n===void 0?function(){}:n,i=t.onSwatchHover,o=z({default:{colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},"no-presets":{colors:{display:"none"}}},{"no-presets":!r||!r.length}),s=function(u,h){a({hex:u,source:"hex"},h)};return f.createElement("div",{style:o.colors,className:"flexbox-fix"},r.map(function(c){var u=typeof c=="string"?{color:c}:c,h=""+u.color+(u.title||"");return f.createElement("div",{key:h,style:o.swatchWrap},f.createElement(St,Q5({},u,{style:o.swatch,onClick:s,onHover:i,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+u.color}})))}))};Zu.propTypes={colors:O.arrayOf(O.oneOfType([O.string,O.shape({color:O.string,title:O.string})])).isRequired};var eP=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mi=function(t){var r=t.width,n=t.rgb,a=t.hex,i=t.hsv,o=t.hsl,s=t.onChange,c=t.onSwatchHover,u=t.disableAlpha,h=t.presetColors,l=t.renderers,d=t.styles,p=d===void 0?{}:d,v=t.className,g=v===void 0?"":v,y=z(Ie({default:eP({picker:{width:r,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba("+n.r+","+n.g+","+n.b+","+n.a+")",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},p),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},p),{disableAlpha:u});return f.createElement("div",{style:y.picker,className:"sketch-picker "+g},f.createElement("div",{style:y.saturation},f.createElement(fn,{style:y.Saturation,hsl:o,hsv:i,onChange:s})),f.createElement("div",{style:y.controls,className:"flexbox-fix"},f.createElement("div",{style:y.sliders},f.createElement("div",{style:y.hue},f.createElement(Bt,{style:y.Hue,hsl:o,onChange:s})),f.createElement("div",{style:y.alpha},f.createElement(Ya,{style:y.Alpha,rgb:n,hsl:o,renderers:l,onChange:s}))),f.createElement("div",{style:y.color},f.createElement(Lt,null),f.createElement("div",{style:y.activeColor}))),f.createElement(Z5,{rgb:n,hsl:o,hex:a,onChange:s,disableAlpha:u}),f.createElement(Zu,{colors:h,onClick:s,onSwatchHover:c}))};mi.propTypes={disableAlpha:O.bool,width:O.oneOfType([O.string,O.number]),styles:O.object},mi.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]},Fe(mi);var Nr=function(t){var r=t.hsl,n=t.offset,a=t.onClick,i=a===void 0?function(){}:a,o=t.active,s=t.first,c=t.last,u=z({default:{swatch:{height:"12px",background:"hsl("+r.h+", 50%, "+n*100+"%)",cursor:"pointer"}},first:{swatch:{borderRadius:"2px 0 0 2px"}},last:{swatch:{borderRadius:"0 2px 2px 0"}},active:{swatch:{transform:"scaleY(1.8)",borderRadius:"3.6px/2px"}}},{active:o,first:s,last:c}),h=function(d){return i({h:r.h,s:.5,l:n,source:"hsl"},d)};return f.createElement("div",{style:u.swatch,onClick:h})},tP=function(t){var r=t.onClick,n=t.hsl,a=z({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}}),i=.1;return f.createElement("div",{style:a.swatches},f.createElement("div",{style:a.swatch},f.createElement(Nr,{hsl:n,offset:".80",active:Math.abs(n.l-.8)<i&&Math.abs(n.s-.5)<i,onClick:r,first:!0})),f.createElement("div",{style:a.swatch},f.createElement(Nr,{hsl:n,offset:".65",active:Math.abs(n.l-.65)<i&&Math.abs(n.s-.5)<i,onClick:r})),f.createElement("div",{style:a.swatch},f.createElement(Nr,{hsl:n,offset:".50",active:Math.abs(n.l-.5)<i&&Math.abs(n.s-.5)<i,onClick:r})),f.createElement("div",{style:a.swatch},f.createElement(Nr,{hsl:n,offset:".35",active:Math.abs(n.l-.35)<i&&Math.abs(n.s-.5)<i,onClick:r})),f.createElement("div",{style:a.swatch},f.createElement(Nr,{hsl:n,offset:".20",active:Math.abs(n.l-.2)<i&&Math.abs(n.s-.5)<i,onClick:r,last:!0})),f.createElement("div",{style:a.clear}))},rP=function(){var t=z({default:{picker:{width:"14px",height:"14px",borderRadius:"6px",transform:"translate(-7px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return f.createElement("div",{style:t.picker})},xi=function(t){var r=t.hsl,n=t.onChange,a=t.pointer,i=t.styles,o=i===void 0?{}:i,s=t.className,c=s===void 0?"":s,u=z(Ie({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}},o));return f.createElement("div",{style:u.wrap||{},className:"slider-picker "+c},f.createElement("div",{style:u.hue},f.createElement(Bt,{style:u.Hue,hsl:r,pointer:a,onChange:n})),f.createElement("div",{style:u.swatches},f.createElement(tP,{hsl:r,onClick:n})))};xi.propTypes={styles:O.object},xi.defaultProps={pointer:rP,styles:{}},Fe(xi);var Qu={};Object.defineProperty(Qu,"__esModule",{value:!0});var ec=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nP=f,tc=aP(nP);function aP(e){return e&&e.__esModule?e:{default:e}}function iP(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}var bn=24,oP=Qu.default=function(e){var t=e.fill,r=t===void 0?"currentColor":t,n=e.width,a=n===void 0?bn:n,i=e.height,o=i===void 0?bn:i,s=e.style,c=s===void 0?{}:s,u=iP(e,["fill","width","height","style"]);return tc.default.createElement("svg",ec({viewBox:"0 0 "+bn+" "+bn,style:ec({fill:r,width:a,height:o},c)},u),tc.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))},sP=function(t){var r=t.color,n=t.onClick,a=n===void 0?function(){}:n,i=t.onSwatchHover,o=t.first,s=t.last,c=t.active,u=z({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:r,marginBottom:"1px"},check:{color:si(r),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:o,last:s,active:c,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return f.createElement(St,{color:r,style:u.color,onClick:a,onHover:i,focusStyle:{boxShadow:"0 0 4px "+r}},f.createElement("div",{style:u.check},f.createElement(oP,null)))},lP=function(t){var r=t.onClick,n=t.onSwatchHover,a=t.group,i=t.active,o=z({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return f.createElement("div",{style:o.group},wt(a,function(s,c){return f.createElement(sP,{key:s,color:s,active:s.toLowerCase()===i,first:c===0,last:c===a.length-1,onClick:r,onSwatchHover:n})}))},Si=function(t){var r=t.width,n=t.height,a=t.onChange,i=t.onSwatchHover,o=t.colors,s=t.hex,c=t.styles,u=c===void 0?{}:c,h=t.className,l=h===void 0?"":h,d=z(Ie({default:{picker:{width:r,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},u)),p=function(g,y){return a({hex:g,source:"hex"},y)};return f.createElement("div",{style:d.picker,className:"swatches-picker "+l},f.createElement(Ir,null,f.createElement("div",{style:d.overflow},f.createElement("div",{style:d.body},wt(o,function(v){return f.createElement(lP,{key:v.toString(),group:v,active:s,onClick:p,onSwatchHover:i})}),f.createElement("div",{style:d.clear})))))};Si.propTypes={width:O.oneOfType([O.string,O.number]),height:O.oneOfType([O.string,O.number]),colors:O.arrayOf(O.arrayOf(O.string)),styles:O.object},Si.defaultProps={width:320,height:240,colors:[[Ht[900],Ht[700],Ht[500],Ht[300],Ht[100]],[Gt[900],Gt[700],Gt[500],Gt[300],Gt[100]],[Vt[900],Vt[700],Vt[500],Vt[300],Vt[100]],[Ut[900],Ut[700],Ut[500],Ut[300],Ut[100]],[zt[900],zt[700],zt[500],zt[300],zt[100]],[Wt[900],Wt[700],Wt[500],Wt[300],Wt[100]],[Kt[900],Kt[700],Kt[500],Kt[300],Kt[100]],[qt[900],qt[700],qt[500],qt[300],qt[100]],[Rt[900],Rt[700],Rt[500],Rt[300],Rt[100]],["#194D33",Dr[700],Dr[500],Dr[300],Dr[100]],[Yt[900],Yt[700],Yt[500],Yt[300],Yt[100]],[Xt[900],Xt[700],Xt[500],Xt[300],Xt[100]],[Jt[900],Jt[700],Jt[500],Jt[300],Jt[100]],[Zt[900],Zt[700],Zt[500],Zt[300],Zt[100]],[Qt[900],Qt[700],Qt[500],Qt[300],Qt[100]],[er[900],er[700],er[500],er[300],er[100]],[tr[900],tr[700],tr[500],tr[300],tr[100]],[rr[900],rr[700],rr[500],rr[300],rr[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}},Fe(Si);var wi=function(t){var r=t.onChange,n=t.onSwatchHover,a=t.hex,i=t.colors,o=t.width,s=t.triangle,c=t.styles,u=c===void 0?{}:c,h=t.className,l=h===void 0?"":h,d=z(Ie({default:{card:{width:o,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},u),{"hide-triangle":s==="hide","top-left-triangle":s==="top-left","top-right-triangle":s==="top-right"}),p=function(g,y){st(g)&&r({hex:g,source:"hex"},y)};return f.createElement("div",{style:d.card,className:"twitter-picker "+l},f.createElement("div",{style:d.triangleShadow}),f.createElement("div",{style:d.triangle}),f.createElement("div",{style:d.body},wt(i,function(v,g){return f.createElement(St,{key:g,color:v,hex:v,style:d.swatch,onClick:p,onHover:n,focusStyle:{boxShadow:"0 0 4px "+v}})}),f.createElement("div",{style:d.hash},"#"),f.createElement(Z,{label:null,style:{input:d.input},value:a.replace("#",""),onChange:p}),f.createElement("div",{style:d.clear})))};wi.propTypes={width:O.oneOfType([O.string,O.number]),triangle:O.oneOf(["hide","top-left","top-right"]),colors:O.arrayOf(O.string),styles:O.object},wi.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}},Fe(wi);var Ei=function(t){var r=z({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",border:"2px #fff solid",transform:"translate(-12px, -13px)",background:"hsl("+Math.round(t.hsl.h)+", "+Math.round(t.hsl.s*100)+"%, "+Math.round(t.hsl.l*100)+"%)"}}});return f.createElement("div",{style:r.picker})};Ei.propTypes={hsl:O.shape({h:O.number,s:O.number,l:O.number,a:O.number})},Ei.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var _i=function(t){var r=z({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",transform:"translate(-10px, -7px)",background:"hsl("+Math.round(t.hsl.h)+", 100%, 50%)",border:"2px white solid"}}});return f.createElement("div",{style:r.picker})};_i.propTypes={hsl:O.shape({h:O.number,s:O.number,l:O.number,a:O.number})},_i.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var uP=function(t){var r=t.onChange,n=t.rgb,a=t.hsl,i=t.hex,o=t.hsv,s=function(p,v){if(p.hex)st(p.hex)&&r({hex:p.hex,source:"hex"},v);else if(p.rgb){var g=p.rgb.split(",");li(p.rgb,"rgb")&&r({r:g[0],g:g[1],b:g[2],a:1,source:"rgb"},v)}else if(p.hsv){var y=p.hsv.split(",");li(p.hsv,"hsv")&&(y[2]=y[2].replace("%",""),y[1]=y[1].replace("%",""),y[0]=y[0].replace("°",""),y[1]==1?y[1]=.01:y[2]==1&&(y[2]=.01),r({h:Number(y[0]),s:Number(y[1]),v:Number(y[2]),source:"hsv"},v))}else if(p.hsl){var x=p.hsl.split(",");li(p.hsl,"hsl")&&(x[2]=x[2].replace("%",""),x[1]=x[1].replace("%",""),x[0]=x[0].replace("°",""),l[1]==1?l[1]=.01:l[2]==1&&(l[2]=.01),r({h:Number(x[0]),s:Number(x[1]),v:Number(x[2]),source:"hsl"},v))}},c=z({default:{wrap:{display:"flex",height:"100px",marginTop:"4px"},fields:{width:"100%"},column:{paddingTop:"10px",display:"flex",justifyContent:"space-between"},double:{padding:"0px 4.4px",boxSizing:"border-box"},input:{width:"100%",height:"38px",boxSizing:"border-box",padding:"4px 10% 3px",textAlign:"center",border:"1px solid #dadce0",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",fontFamily:"Roboto,Arial,sans-serif"},input2:{height:"38px",width:"100%",border:"1px solid #dadce0",boxSizing:"border-box",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",paddingLeft:"10px",fontFamily:"Roboto,Arial,sans-serif"},label:{textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"35px",top:"-6px",left:"0",right:"0",marginLeft:"auto",marginRight:"auto",fontFamily:"Roboto,Arial,sans-serif"},label2:{left:"10px",textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"32px",top:"-6px",fontFamily:"Roboto,Arial,sans-serif"},single:{flexGrow:"1",margin:"0px 4.4px"}}}),u=n.r+", "+n.g+", "+n.b,h=Math.round(a.h)+"°, "+Math.round(a.s*100)+"%, "+Math.round(a.l*100)+"%",l=Math.round(o.h)+"°, "+Math.round(o.s*100)+"%, "+Math.round(o.v*100)+"%";return f.createElement("div",{style:c.wrap,className:"flexbox-fix"},f.createElement("div",{style:c.fields},f.createElement("div",{style:c.double},f.createElement(Z,{style:{input:c.input,label:c.label},label:"hex",value:i,onChange:s})),f.createElement("div",{style:c.column},f.createElement("div",{style:c.single},f.createElement(Z,{style:{input:c.input2,label:c.label2},label:"rgb",value:u,onChange:s})),f.createElement("div",{style:c.single},f.createElement(Z,{style:{input:c.input2,label:c.label2},label:"hsv",value:l,onChange:s})),f.createElement("div",{style:c.single},f.createElement(Z,{style:{input:c.input2,label:c.label2},label:"hsl",value:h,onChange:s})))))},Ci=function(t){var r=t.width,n=t.onChange,a=t.rgb,i=t.hsl,o=t.hsv,s=t.hex,c=t.header,u=t.styles,h=u===void 0?{}:u,l=t.className,d=l===void 0?"":l,p=z(Ie({default:{picker:{width:r,background:"#fff",border:"1px solid #dfe1e5",boxSizing:"initial",display:"flex",flexWrap:"wrap",borderRadius:"8px 8px 0px 0px"},head:{height:"57px",width:"100%",paddingTop:"16px",paddingBottom:"16px",paddingLeft:"16px",fontSize:"20px",boxSizing:"border-box",fontFamily:"Roboto-Regular,HelveticaNeue,Arial,sans-serif"},saturation:{width:"70%",padding:"0px",position:"relative",overflow:"hidden"},swatch:{width:"30%",height:"228px",padding:"0px",background:"rgba("+a.r+", "+a.g+", "+a.b+", 1)",position:"relative",overflow:"hidden"},body:{margin:"auto",width:"95%"},controls:{display:"flex",boxSizing:"border-box",height:"52px",paddingTop:"22px"},color:{width:"32px"},hue:{height:"8px",position:"relative",margin:"0px 16px 0px 16px",width:"100%"},Hue:{radius:"2px"}}},h));return f.createElement("div",{style:p.picker,className:"google-picker "+d},f.createElement("div",{style:p.head},c),f.createElement("div",{style:p.swatch}),f.createElement("div",{style:p.saturation},f.createElement(fn,{hsl:i,hsv:o,pointer:Ei,onChange:n})),f.createElement("div",{style:p.body},f.createElement("div",{style:p.controls,className:"flexbox-fix"},f.createElement("div",{style:p.hue},f.createElement(Bt,{style:p.Hue,hsl:i,radius:"4px",pointer:_i,onChange:n}))),f.createElement(uP,{rgb:a,hsl:i,hex:s,hsv:o,onChange:n})))};Ci.propTypes={width:O.oneOfType([O.string,O.number]),styles:O.object,header:O.string},Ci.defaultProps={width:652,styles:{},header:"Color picker"},Fe(Ci);const cP=e=>{const[t,r]=f.useState(!1),[n,a]=f.useState(e.value),i=()=>{r(!t)},o=()=>{r(!1)},s=c=>{a(c.hex),e.onChange&&e.onChange(c.hex)};return m.jsxs("div",{children:[m.jsx(rc,{disabled:e.disabled,color:n,onClick:i}),m.jsx(j.Dialog,{open:t,onClose:o,children:m.jsx(D5,{color:n,onChange:s,css:ce.css`
|
|
221
220
|
padding: 10px;
|
|
222
|
-
`})})]})},rc=e=>m.jsx("button",{onClick:e.onClick,css:ce.css`
|
|
221
|
+
`})})]})},rc=e=>m.jsx("button",{onClick:e.onClick,disabled:e.disabled,css:ce.css`
|
|
223
222
|
border: solid 1px black;
|
|
224
223
|
background-color: white;
|
|
225
224
|
padding: 2px;
|
|
226
225
|
cursor: pointer;
|
|
226
|
+
opacity: ${e.disabled?.2:1};
|
|
227
227
|
`,children:m.jsx("div",{css:ce.css`
|
|
228
228
|
width: 72px;
|
|
229
229
|
height: 19px;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sillsdev/config-r",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"packageManager": "yarn@1.22.19",
|
|
6
6
|
"keywords": [
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"dev": "start http://localhost:3000 && vite",
|
|
16
16
|
"// see https://github.com/vitejs/vite/issues/3461, this uses a totally different builder that has its typescript typings act more together than vitejs": "",
|
|
17
17
|
"build": "tsc && vite build",
|
|
18
|
+
"build:dev": "tsc && vite build --mode development --minify false --sourcemap true --watch",
|
|
18
19
|
"serve": "vite preview",
|
|
19
20
|
"lint:fix": "eslint ./src --ext .jsx,.js,.ts,.tsx --quiet --fix --ignore-path ./.gitignore",
|
|
20
21
|
"lint:format": "prettier --loglevel warn --write \"./**/*.{js,jsx,ts,tsx,css,md,json}\" ",
|
|
@@ -97,5 +98,9 @@
|
|
|
97
98
|
},
|
|
98
99
|
"publishConfig": {
|
|
99
100
|
"access": "public"
|
|
101
|
+
},
|
|
102
|
+
"volta": {
|
|
103
|
+
"node": "16.14.0",
|
|
104
|
+
"yarn": "1.22.19"
|
|
100
105
|
}
|
|
101
106
|
}
|