iobroker.vis-2-widgets-collection 2.0.2 → 2.0.4

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.
Files changed (40) hide show
  1. package/README.md +8 -0
  2. package/io-package.json +27 -27
  3. package/package.json +1 -1
  4. package/widgets/vis-2-widgets-collection/assets/Button-BK3gDuCC.js +677 -0
  5. package/widgets/vis-2-widgets-collection/assets/ButtonGroupCollectionWidget-Bjl7COzs.js +687 -0
  6. package/widgets/vis-2-widgets-collection/assets/CheckboxCollectionWidget-8WjweMs2.js +440 -0
  7. package/widgets/vis-2-widgets-collection/assets/Close-APpa6HX8.js +18 -0
  8. package/widgets/vis-2-widgets-collection/assets/DialogCollectionWidget-o_rzKqrW.js +485 -0
  9. package/widgets/vis-2-widgets-collection/assets/FormControlLabel-CHae4jKA.js +207 -0
  10. package/widgets/vis-2-widgets-collection/assets/GaugeCollectionWidget-C7OFMKbW.js +2860 -0
  11. package/widgets/vis-2-widgets-collection/assets/Light2CollectionWidget-C_bjOKZG.js +2733 -0
  12. package/widgets/vis-2-widgets-collection/assets/RadioGroupCollectionWidget-dntcZhrq.js +538 -0
  13. package/widgets/vis-2-widgets-collection/assets/SafeImg-DHsE-xU3.js +29 -0
  14. package/widgets/vis-2-widgets-collection/assets/SelectCollectionWidget-Dh93X-tG.js +2545 -0
  15. package/widgets/vis-2-widgets-collection/assets/Stack-Dzb7Q6ZE.js +132 -0
  16. package/widgets/vis-2-widgets-collection/assets/StateCollectionWidget-Cp6J4wqx.js +1610 -0
  17. package/widgets/vis-2-widgets-collection/assets/SwitchBase-C4gssu33.js +204 -0
  18. package/widgets/vis-2-widgets-collection/assets/SwitchCollectionWidget-2KPRtnA9.js +572 -0
  19. package/widgets/vis-2-widgets-collection/assets/_commonjsHelpers-Cpj98o6Y.js +8 -0
  20. package/widgets/vis-2-widgets-collection/assets/commonFields-Dc3dYGx-.js +20628 -0
  21. package/widgets/vis-2-widgets-collection/assets/formControlState-Dq1zat_P.js +6 -0
  22. package/widgets/vis-2-widgets-collection/assets/hostInit-D6momM_S.js +9 -0
  23. package/widgets/vis-2-widgets-collection/assets/index-B5Qt9EMX.js +18 -0
  24. package/widgets/vis-2-widgets-collection/assets/index-BEpFHtMA.js +249 -0
  25. package/widgets/vis-2-widgets-collection/assets/index-DMBzzD-N.js +6098 -0
  26. package/widgets/vis-2-widgets-collection/assets/listItemTextClasses-DQeLHf2R.js +120 -0
  27. package/widgets/vis-2-widgets-collection/assets/preload-helper-PPVm8Dsz.js +36 -0
  28. package/widgets/vis-2-widgets-collection/assets/translations-DXoq3Ras.js +9 -0
  29. package/widgets/vis-2-widgets-collection/assets/useFormControl--TM4wVzV.js +20 -0
  30. package/widgets/vis-2-widgets-collection/assets/useHtmlValue-Dcwl_hqT.js +27 -0
  31. package/widgets/vis-2-widgets-collection/assets/useOidValue-DGq_wsMY.js +35 -0
  32. package/widgets/vis-2-widgets-collection/assets/virtualExposes-B50cAOvG.js +118 -0
  33. package/widgets/vis-2-widgets-collection/assets/vis2CollectionWidget__loadShare__react__loadShare__-L1bZe9z4.js +45 -0
  34. package/widgets/vis-2-widgets-collection/assets/vis2CollectionWidget__mf_v__runtimeInit__mf_v__-Cugi9Gwb.js +12 -0
  35. package/widgets/vis-2-widgets-collection/img/prev-collection-checkbox.png +0 -0
  36. package/widgets/vis-2-widgets-collection/img/prev-collection-dialog.png +0 -0
  37. package/widgets/vis-2-widgets-collection/img/prev-collection-gauge.png +0 -0
  38. package/widgets/vis-2-widgets-collection/img/prev-collection-light.png +0 -0
  39. package/widgets/vis-2-widgets-collection/img/prev-collection-radio-group.png +0 -0
  40. package/widgets/vis-2-widgets-collection/img/prev-collection-select.png +0 -0
@@ -0,0 +1,2733 @@
1
+ import { j as g, C as W, a9 as Nt, q as Me, v as j, y as st, A as ht, E as ut, z as Dt, M as Ft, w as N, c as Vt, aa as Gt, I as xe, D as Ze, al as dt, G as $t, H as Je, K as Ut, L as Xt, __tla as __tla_0 } from "./commonFields-Dc3dYGx-.js";
2
+ import { v as f, __tla as __tla_1 } from "./vis2CollectionWidget__loadShare__react__loadShare__-L1bZe9z4.js";
3
+ import { B as Kt, __tla as __tla_2 } from "./Button-BK3gDuCC.js";
4
+ import { u as Yt, __tla as __tla_3 } from "./useOidValue-DGq_wsMY.js";
5
+ import "./_commonjsHelpers-Cpj98o6Y.js";
6
+ import "./vis2CollectionWidget__mf_v__runtimeInit__mf_v__-Cugi9Gwb.js";
7
+ let It;
8
+ let __tla = Promise.all([
9
+ (() => {
10
+ try {
11
+ return __tla_0;
12
+ } catch {
13
+ }
14
+ })(),
15
+ (() => {
16
+ try {
17
+ return __tla_1;
18
+ } catch {
19
+ }
20
+ })(),
21
+ (() => {
22
+ try {
23
+ return __tla_2;
24
+ } catch {
25
+ }
26
+ })(),
27
+ (() => {
28
+ try {
29
+ return __tla_3;
30
+ } catch {
31
+ }
32
+ })()
33
+ ]).then(async () => {
34
+ const et = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBmaWxsPSJjdXJyZW50Q29sb3IiIGQ9Ik0xMyAzaC0ydjEwaDJWM3ptNC44MyAyLjE3bC0xLjQyIDEuNDJBNi45MiA2LjkyIDAgMCAxIDE5IDEyYzAgMy44Ny0zLjEzIDctNyA3QTYuOTk1IDYuOTk1IDAgMCAxIDcuNTggNi41OEw2LjE3IDUuMTdBOC45MzIgOC45MzIgMCAwIDAgMyAxMmE5IDkgMCAwIDAgMTggMGMwLTIuNzQtMS4yMy01LjE4LTMuMTctNi44M3oiLz48L3N2Zz4=", tt = {
35
+ "switch.light": "colorLightSwitchOid",
36
+ "level.color.rgb": "colorLightRgbHexOid",
37
+ "level.color.red": "colorLightRedOid",
38
+ "level.color.green": "colorLightGreenOid",
39
+ "level.color.blue": "colorLightBlueOid",
40
+ "level.color.hue": "colorLightHueOid",
41
+ "level.color.saturation": "colorLightSaturationOid",
42
+ "level.brightness": "colorLightBrightnessOid",
43
+ "level.dimmer": "colorLightBrightnessOid",
44
+ "level.color.temperature": "colorLightTemperatureOid",
45
+ "level.color.luminance": "colorLightBrightnessOid",
46
+ "level.color.white": "colorLightBrightnessOid"
47
+ }, qt = async (e, r, i, t) => {
48
+ const n = e.name;
49
+ if (n && r[n]) {
50
+ const o = await t.getObject(r[n]);
51
+ if (o && o.common) {
52
+ const l = r[n].split(".");
53
+ l.pop();
54
+ const c = await t.getObjectView(`${l.join(".")}.`, `${l.join(".")}.\u9999`, "state");
55
+ if (c) {
56
+ const s = r;
57
+ await Promise.all(Object.values(c).map(async (u) => {
58
+ const h = u.common.role;
59
+ if (h && tt[h] && (!r[h] || r[h] === "nothing_selected") && n !== h) {
60
+ const a = tt[h];
61
+ s[a] = u._id, await Nt([
62
+ "boolean",
63
+ "number",
64
+ "string",
65
+ "mixed"
66
+ ], a)(e, r, i, t), a === "colorLightTemperatureOid" && (!s.colorLightCtMin && u.common.min && (s.colorLightCtMin = u.common.min), !s.colorLightCtMax && u.common.max && (s.colorLightCtMax = u.common.max)), a === "colorLightSwitchOid" && (s.values_count = 2, s.value1 = true, s.alias1 = "TRUE", s.value2 = false, s.alias2 = "FALSE", s.iconSize = 0, s.iconSmall1 = et, s.iconColor1 = "red", s.iconSize1 = 100, s.iconSmall2 = et, s.iconColor2 = "green", s.iconSize2 = 100);
67
+ }
68
+ })), i(r);
69
+ }
70
+ }
71
+ }
72
+ }, Qt = () => [
73
+ {
74
+ type: "custom",
75
+ component: () => g.jsx(W, {})
76
+ },
77
+ {
78
+ name: "colorLightButton",
79
+ label: "color_light_button",
80
+ type: "checkbox",
81
+ default: false
82
+ },
83
+ {
84
+ name: "colorLightDelayLongPress",
85
+ label: "color_light_delay_long_press",
86
+ type: "number",
87
+ default: 500,
88
+ min: 0,
89
+ max: 1e4,
90
+ step: 1,
91
+ hidden: "!data.colorLightButton"
92
+ },
93
+ {
94
+ name: "colorLightModalWidth",
95
+ label: "color_light_modal_width",
96
+ type: "number",
97
+ min: 0,
98
+ max: 5e3,
99
+ step: 1,
100
+ hidden: "!data.colorLightButton",
101
+ tooltip: "color_light_modal_width_tooltip"
102
+ },
103
+ {
104
+ name: "colorLightModalHeight",
105
+ label: "color_light_modal_height",
106
+ type: "number",
107
+ default: 300,
108
+ min: 0,
109
+ max: 5e3,
110
+ step: 1,
111
+ hidden: "!data.colorLightButton"
112
+ },
113
+ {
114
+ type: "custom",
115
+ component: () => g.jsx(W, {})
116
+ },
117
+ {
118
+ name: "colorLightSliderWidth",
119
+ label: "color_light_slider_width",
120
+ type: "slider",
121
+ min: 0,
122
+ max: 10,
123
+ default: 1,
124
+ step: 0.1
125
+ },
126
+ {
127
+ name: "colorLightBorderWidth",
128
+ label: "color_light_border_width",
129
+ type: "slider",
130
+ min: 0,
131
+ max: 100,
132
+ default: 3,
133
+ step: 1
134
+ },
135
+ {
136
+ name: "colorLightBorderColor",
137
+ label: "color_light_border_color",
138
+ type: "color"
139
+ },
140
+ {
141
+ name: "colorLightPadding",
142
+ type: "number",
143
+ label: "color_light_padding",
144
+ default: 1,
145
+ step: 0.5,
146
+ min: 0
147
+ },
148
+ {
149
+ type: "custom",
150
+ component: () => g.jsx(W, {})
151
+ },
152
+ {
153
+ name: "colorLightSwitchOid",
154
+ type: "id",
155
+ label: "color_light_switch_oid",
156
+ onChange: qt
157
+ },
158
+ {
159
+ type: "custom",
160
+ component: () => g.jsx(W, {})
161
+ },
162
+ {
163
+ name: "colorLightUIComponent",
164
+ type: "select",
165
+ label: "color_light_ui_component",
166
+ options: [
167
+ {
168
+ value: "wheel",
169
+ label: "Wheel"
170
+ },
171
+ {
172
+ value: "box",
173
+ label: "Box"
174
+ },
175
+ {
176
+ value: "slider",
177
+ label: "Slider"
178
+ }
179
+ ],
180
+ default: "wheel",
181
+ noTranslation: true,
182
+ hidden: (e) => e.colorLightType === "cct" || e.colorLightType === "none"
183
+ },
184
+ {
185
+ name: "colorWheelLightness",
186
+ label: "color_wheel_lightness",
187
+ type: "checkbox",
188
+ default: false,
189
+ hidden: (e) => e.colorLightType === "none" || e.colorLightType === "cct" || e.colorLightUIComponent !== "wheel"
190
+ },
191
+ {
192
+ type: "custom",
193
+ component: () => g.jsx(W, {}),
194
+ hidden: (e) => e.colorLightType === "cct" || e.colorLightType === "none"
195
+ },
196
+ {
197
+ name: "colorLightType",
198
+ type: "select",
199
+ label: "color_light_type",
200
+ options: [
201
+ {
202
+ value: "none",
203
+ label: "nothing_selected"
204
+ },
205
+ {
206
+ value: "cct",
207
+ label: "cct"
208
+ },
209
+ {
210
+ value: "rgb",
211
+ label: "rgb"
212
+ },
213
+ {
214
+ value: "rgbcct",
215
+ label: "rgb & cct"
216
+ },
217
+ {
218
+ value: "r/g/b",
219
+ label: "r/g/b"
220
+ },
221
+ {
222
+ value: "r/g/b/cct",
223
+ label: "r/g/b & cct"
224
+ },
225
+ {
226
+ value: "h/s/v",
227
+ label: "h/s/v"
228
+ },
229
+ {
230
+ value: "h/s/v/cct",
231
+ label: "h/s/v & cct"
232
+ }
233
+ ],
234
+ default: "none",
235
+ noTranslation: true
236
+ },
237
+ {
238
+ type: "custom",
239
+ component: () => g.jsx(W, {}),
240
+ hidden: (e) => e.colorLightType === "none"
241
+ },
242
+ {
243
+ name: "colorLightTemperatureOid",
244
+ type: "id",
245
+ label: "color_light_temperature_oid",
246
+ hidden: (e) => ![
247
+ "cct",
248
+ "rgbcct",
249
+ "r/g/b/cct",
250
+ "h/s/v/cct"
251
+ ].includes(e.colorLightType || "")
252
+ },
253
+ {
254
+ name: "colorLightCtMin",
255
+ type: "number",
256
+ min: 500,
257
+ max: 1e4,
258
+ default: 2e3,
259
+ label: "color_light_ct_min",
260
+ hidden: (e) => ![
261
+ "cct",
262
+ "rgbcct",
263
+ "r/g/b/cct",
264
+ "h/s/v/cct"
265
+ ].includes(e.colorLightType || "") || !e.colorLightTemperatureOid
266
+ },
267
+ {
268
+ name: "colorLightCtMax",
269
+ type: "number",
270
+ min: 500,
271
+ max: 1e4,
272
+ default: 6500,
273
+ label: "color_light_ct_max",
274
+ hidden: (e) => ![
275
+ "cct",
276
+ "rgbcct",
277
+ "r/g/b/cct",
278
+ "h/s/v/cct"
279
+ ].includes(e.colorLightType || "") || !e.colorLightTemperatureOid
280
+ },
281
+ {
282
+ type: "custom",
283
+ component: () => g.jsx(W, {}),
284
+ hidden: (e) => ![
285
+ "cct",
286
+ "rgbcct",
287
+ "r/g/b/cct",
288
+ "h/s/v/cct"
289
+ ].includes(e.colorLightType || "") || e.colorLightType === "none"
290
+ },
291
+ {
292
+ name: "colorLightRgbHexOid",
293
+ type: "id",
294
+ label: "color_light_rgb_hex_oid",
295
+ hidden: (e) => ![
296
+ "rgb",
297
+ "rgbcct"
298
+ ].includes(e.colorLightType || "")
299
+ },
300
+ {
301
+ name: "colorLightRedOid",
302
+ type: "id",
303
+ label: "color_light_red_oid",
304
+ hidden: (e) => ![
305
+ "r/g/b",
306
+ "r/g/b/cct"
307
+ ].includes(e.colorLightType || "")
308
+ },
309
+ {
310
+ name: "colorLightGreenOid",
311
+ type: "id",
312
+ label: "color_light_green_oid",
313
+ hidden: (e) => ![
314
+ "r/g/b",
315
+ "r/g/b/cct"
316
+ ].includes(e.colorLightType || "")
317
+ },
318
+ {
319
+ name: "colorLightBlueOid",
320
+ type: "id",
321
+ label: "color_light_blue_oid",
322
+ hidden: (e) => ![
323
+ "r/g/b",
324
+ "r/g/b/cct"
325
+ ].includes(e.colorLightType || "")
326
+ },
327
+ {
328
+ name: "colorLightHueOid",
329
+ type: "id",
330
+ label: "color_light_hue_oid",
331
+ hidden: (e) => ![
332
+ "h/s/v",
333
+ "h/s/v/cct"
334
+ ].includes(e.colorLightType || "")
335
+ },
336
+ {
337
+ name: "colorLightSaturationOid",
338
+ type: "id",
339
+ label: "color_light_saturation_oid",
340
+ hidden: (e) => ![
341
+ "h/s/v",
342
+ "h/s/v/cct"
343
+ ].includes(e.colorLightType || "")
344
+ },
345
+ {
346
+ name: "colorLightBrightnessOid",
347
+ type: "id",
348
+ label: "color_light_brightness_oid",
349
+ hidden: (e) => ![
350
+ "cct",
351
+ "h/s/v",
352
+ "h/s/v/cct"
353
+ ].includes(e.colorLightType || "")
354
+ }
355
+ ];
356
+ function Zt({ onClick: e = () => {
357
+ }, onLongPress: r = () => {
358
+ }, ms: i = 300 } = {}) {
359
+ const t = f.useRef(null), n = f.useRef(null), o = f.useRef(false), l = f.useCallback(() => {
360
+ n.current && (o.current = true, r(n.current)), t.current = null, n.current = null;
361
+ }, [
362
+ r
363
+ ]), c = f.useCallback((u) => {
364
+ "touches" in u && u.preventDefault(), n.current = u, o.current = false, t.current = setTimeout(l, i);
365
+ }, [
366
+ l,
367
+ i
368
+ ]), s = f.useCallback((u) => {
369
+ const h = n.current, a = o.current;
370
+ t.current && (clearTimeout(t.current), t.current = null), !a && h && e(h), n.current = null, o.current = false;
371
+ }, [
372
+ e
373
+ ]);
374
+ return f.useMemo(() => ({
375
+ onMouseDown: c,
376
+ onMouseUp: s,
377
+ onMouseLeave: s,
378
+ onTouchStart: c,
379
+ onTouchEnd: s
380
+ }), [
381
+ c,
382
+ s
383
+ ]);
384
+ }
385
+ function Jt(e) {
386
+ return "colorLightButton" in e && "colorLightSwitchOid" in e;
387
+ }
388
+ function er(e) {
389
+ const r = (t) => {
390
+ var _a;
391
+ const n = f.useContext(Me);
392
+ if (!n || !n.widget) throw new Error("withButtonModal must be used within a CollectionProvider");
393
+ const { widget: o } = n, [l, c] = f.useState(false), s = o.data, { value: u, updateValue: h } = j("colorLightSwitchOid"), { data: a } = st("colorLightSwitchOid"), d = Jt(s) && s.colorLightButton, b = ((_a = d ? s.colorLightSwitchOidObject : void 0) == null ? void 0 : _a.type) === "boolean", x = Zt({
394
+ onClick: () => h(!u),
395
+ onLongPress: () => c(true),
396
+ ms: d ? s.colorLightDelayLongPress ?? 500 : 500
397
+ }), L = d ? (s.colorLightSliderWidth || 1) * 28 : 28, k = d && typeof s.colorLightModalWidth == "number" && s.colorLightModalWidth > 0 ? s.colorLightModalWidth : (d && s.colorLightModalHeight || 300) + 40 + 12 + L;
398
+ return d ? g.jsxs(g.Fragment, {
399
+ children: [
400
+ g.jsxs(ht, {
401
+ isValidType: b,
402
+ data: a,
403
+ oidValue: u,
404
+ children: [
405
+ g.jsx(ut, {
406
+ data: a,
407
+ widget: o
408
+ }),
409
+ g.jsx(Kt, {
410
+ variant: "text",
411
+ ...x,
412
+ sx: {
413
+ color: a.iconColorActive || "inherit",
414
+ width: "100%",
415
+ height: "100%",
416
+ display: "flex",
417
+ justifyContent: "center",
418
+ alignItems: "center"
419
+ },
420
+ children: g.jsx("img", {
421
+ alt: "",
422
+ src: a.iconActive || "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",
423
+ style: {
424
+ width: typeof a.iconSizeOnly == "number" && `calc(100% * ${a.iconSizeOnly} / 100)` || "100%",
425
+ height: typeof a.iconSizeOnly == "number" && `calc(100% * ${a.iconSizeOnly} / 100)` || "100%",
426
+ objectFit: "contain",
427
+ ...Dt(a.iconActive || "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", a.iconColorActive || a.iconColor)
428
+ }
429
+ })
430
+ })
431
+ ]
432
+ }),
433
+ g.jsx(Ft, {
434
+ open: l,
435
+ onClose: () => c(false),
436
+ children: g.jsx(N, {
437
+ sx: {
438
+ position: "absolute",
439
+ top: "50%",
440
+ left: "50%",
441
+ transform: "translate(-50%, -50%)",
442
+ width: k,
443
+ height: s.colorLightModalHeight || 300
444
+ },
445
+ children: g.jsx(e, {
446
+ ...t
447
+ })
448
+ })
449
+ })
450
+ ]
451
+ }) : g.jsx(e, {
452
+ ...t
453
+ });
454
+ }, i = e.displayName || e.name || "Component";
455
+ return r.displayName = `withButtonModal(${i})`, r;
456
+ }
457
+ var S, oe, ft, Ce, gt, H = {}, Re = [], tr = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i;
458
+ function B(e, r) {
459
+ for (var i in r) e[i] = r[i];
460
+ return e;
461
+ }
462
+ function vt(e) {
463
+ var r = e.parentNode;
464
+ r && r.removeChild(e);
465
+ }
466
+ function y(e, r, i) {
467
+ var t, n, o, l, c = arguments;
468
+ if (r = B({}, r), arguments.length > 3) for (i = [
469
+ i
470
+ ], t = 3; t < arguments.length; t++) i.push(c[t]);
471
+ if (i != null && (r.children = i), e != null && e.defaultProps != null) for (n in e.defaultProps) r[n] === void 0 && (r[n] = e.defaultProps[n]);
472
+ return l = r.key, (o = r.ref) != null && delete r.ref, l != null && delete r.key, ke(e, r, l, o);
473
+ }
474
+ function ke(e, r, i, t) {
475
+ var n = {
476
+ type: e,
477
+ props: r,
478
+ key: i,
479
+ ref: t,
480
+ __k: null,
481
+ __p: null,
482
+ __b: 0,
483
+ __e: null,
484
+ l: null,
485
+ __c: null,
486
+ constructor: void 0
487
+ };
488
+ return S.vnode && S.vnode(n), n;
489
+ }
490
+ function ae(e) {
491
+ return e.children;
492
+ }
493
+ function rr(e) {
494
+ if (e == null || typeof e == "boolean") return null;
495
+ if (typeof e == "string" || typeof e == "number") return ke(null, e, null, null);
496
+ if (e.__e != null || e.__c != null) {
497
+ var r = ke(e.type, e.props, e.key, null);
498
+ return r.__e = e.__e, r;
499
+ }
500
+ return e;
501
+ }
502
+ function q(e, r) {
503
+ this.props = e, this.context = r;
504
+ }
505
+ function le(e, r) {
506
+ if (r == null) return e.__p ? le(e.__p, e.__p.__k.indexOf(e) + 1) : null;
507
+ for (var i; r < e.__k.length; r++) if ((i = e.__k[r]) != null && i.__e != null) return i.__e;
508
+ return typeof e.type == "function" ? le(e) : null;
509
+ }
510
+ function mt(e) {
511
+ var r, i;
512
+ if ((e = e.__p) != null && e.__c != null) {
513
+ for (e.__e = e.__c.base = null, r = 0; r < e.__k.length; r++) if ((i = e.__k[r]) != null && i.__e != null) {
514
+ e.__e = e.__c.base = i.__e;
515
+ break;
516
+ }
517
+ return mt(e);
518
+ }
519
+ }
520
+ function Le(e) {
521
+ (!e.__d && (e.__d = true) && oe.push(e) === 1 || Ce !== S.debounceRendering) && (Ce = S.debounceRendering, (S.debounceRendering || ft)(ir));
522
+ }
523
+ function ir() {
524
+ var e, r, i, t, n, o, l, c;
525
+ for (oe.sort(function(s, u) {
526
+ return u.__v.__b - s.__v.__b;
527
+ }); e = oe.pop(); ) e.__d && (i = void 0, t = void 0, o = (n = (r = e).__v).__e, l = r.__P, c = r.u, r.u = false, l && (i = [], t = Te(l, n, B({}, n), r.__n, l.ownerSVGElement !== void 0, null, i, c, o ?? le(n)), pt(i, n), t != o && mt(n)));
528
+ }
529
+ function bt(e, r, i, t, n, o, l, c, s) {
530
+ var u, h, a, d, v, _, b, x = i && i.__k || Re, L = x.length;
531
+ if (c == H && (c = o != null ? o[0] : L ? le(i, 0) : null), u = 0, r.__k = Ie(r.__k, function(m) {
532
+ if (m != null) {
533
+ if (m.__p = r, m.__b = r.__b + 1, (a = x[u]) === null || a && m.key == a.key && m.type === a.type) x[u] = void 0;
534
+ else for (h = 0; h < L; h++) {
535
+ if ((a = x[h]) && m.key == a.key && m.type === a.type) {
536
+ x[h] = void 0;
537
+ break;
538
+ }
539
+ a = null;
540
+ }
541
+ if (d = Te(e, m, a = a || H, t, n, o, l, null, c, s), (h = m.ref) && a.ref != h && (b || (b = [])).push(h, m.__c || d, m), d != null) {
542
+ if (_ == null && (_ = d), m.l != null) d = m.l, m.l = null;
543
+ else if (o == a || d != c || d.parentNode == null) {
544
+ e: if (c == null || c.parentNode !== e) e.appendChild(d);
545
+ else {
546
+ for (v = c, h = 0; (v = v.nextSibling) && h < L; h += 2) if (v == d) break e;
547
+ e.insertBefore(d, c);
548
+ }
549
+ r.type == "option" && (e.value = "");
550
+ }
551
+ c = d.nextSibling, typeof r.type == "function" && (r.l = d);
552
+ }
553
+ }
554
+ return u++, m;
555
+ }), r.__e = _, o != null && typeof r.type != "function") for (u = o.length; u--; ) o[u] != null && vt(o[u]);
556
+ for (u = L; u--; ) x[u] != null && yt(x[u], x[u]);
557
+ if (b) for (u = 0; u < b.length; u++) _t(b[u], b[++u], b[++u]);
558
+ }
559
+ function Ie(e, r, i) {
560
+ if (i == null && (i = []), e == null || typeof e == "boolean") r && i.push(r(null));
561
+ else if (Array.isArray(e)) for (var t = 0; t < e.length; t++) Ie(e[t], r, i);
562
+ else i.push(r ? r(rr(e)) : e);
563
+ return i;
564
+ }
565
+ function nr(e, r, i, t, n) {
566
+ var o;
567
+ for (o in i) o in r || it(e, o, null, i[o], t);
568
+ for (o in r) n && typeof r[o] != "function" || o === "value" || o === "checked" || i[o] === r[o] || it(e, o, r[o], i[o], t);
569
+ }
570
+ function rt(e, r, i) {
571
+ r[0] === "-" ? e.setProperty(r, i) : e[r] = typeof i == "number" && tr.test(r) === false ? i + "px" : i ?? "";
572
+ }
573
+ function it(e, r, i, t, n) {
574
+ var o, l, c, s, u;
575
+ if (!((r = n ? r === "className" ? "class" : r : r === "class" ? "className" : r) === "key" || r === "children")) if (r === "style") if (o = e.style, typeof i == "string") o.cssText = i;
576
+ else {
577
+ if (typeof t == "string" && (o.cssText = "", t = null), t) for (l in t) i && l in i || rt(o, l, "");
578
+ if (i) for (c in i) t && i[c] === t[c] || rt(o, c, i[c]);
579
+ }
580
+ else r[0] === "o" && r[1] === "n" ? (s = r !== (r = r.replace(/Capture$/, "")), u = r.toLowerCase(), r = (u in e ? u : r).slice(2), i ? (t || e.addEventListener(r, nt, s), (e.t || (e.t = {}))[r] = i) : e.removeEventListener(r, nt, s)) : r !== "list" && r !== "tagName" && r !== "form" && !n && r in e ? e[r] = i ?? "" : typeof i != "function" && r !== "dangerouslySetInnerHTML" && (r !== (r = r.replace(/^xlink:?/, "")) ? i == null || i === false ? e.removeAttributeNS("http://www.w3.org/1999/xlink", r.toLowerCase()) : e.setAttributeNS("http://www.w3.org/1999/xlink", r.toLowerCase(), i) : i == null || i === false ? e.removeAttribute(r) : e.setAttribute(r, i));
581
+ }
582
+ function nt(e) {
583
+ return this.t[e.type](S.event ? S.event(e) : e);
584
+ }
585
+ function Te(e, r, i, t, n, o, l, c, s, u) {
586
+ var h, a, d, v, _, b, x, L, m, k, w = r.type;
587
+ if (r.constructor !== void 0) return null;
588
+ (h = S.__b) && h(r);
589
+ try {
590
+ e: if (typeof w == "function") {
591
+ if (L = r.props, m = (h = w.contextType) && t[h.__c], k = h ? m ? m.props.value : h.__p : t, i.__c ? x = (a = r.__c = i.__c).__p = a.__E : ("prototype" in w && w.prototype.render ? r.__c = a = new w(L, k) : (r.__c = a = new q(L, k), a.constructor = w, a.render = lr), m && m.sub(a), a.props = L, a.state || (a.state = {}), a.context = k, a.__n = t, d = a.__d = true, a.__h = []), a.__s == null && (a.__s = a.state), w.getDerivedStateFromProps != null && B(a.__s == a.state ? a.__s = B({}, a.__s) : a.__s, w.getDerivedStateFromProps(L, a.__s)), d) w.getDerivedStateFromProps == null && a.componentWillMount != null && a.componentWillMount(), a.componentDidMount != null && l.push(a);
592
+ else {
593
+ if (w.getDerivedStateFromProps == null && c == null && a.componentWillReceiveProps != null && a.componentWillReceiveProps(L, k), !c && a.shouldComponentUpdate != null && a.shouldComponentUpdate(L, a.__s, k) === false) {
594
+ for (a.props = L, a.state = a.__s, a.__d = false, a.__v = r, r.__e = s != null ? s !== i.__e ? s : i.__e : null, r.__k = i.__k, h = 0; h < r.__k.length; h++) r.__k[h] && (r.__k[h].__p = r);
595
+ break e;
596
+ }
597
+ a.componentWillUpdate != null && a.componentWillUpdate(L, a.__s, k);
598
+ }
599
+ for (v = a.props, _ = a.state, a.context = k, a.props = L, a.state = a.__s, (h = S.__r) && h(r), a.__d = false, a.__v = r, a.__P = e, h = a.render(a.props, a.state, a.context), r.__k = Ie(h != null && h.type == ae && h.key == null ? h.props.children : h), a.getChildContext != null && (t = B(B({}, t), a.getChildContext())), d || a.getSnapshotBeforeUpdate == null || (b = a.getSnapshotBeforeUpdate(v, _)), bt(e, r, i, t, n, o, l, s, u), a.base = r.__e; h = a.__h.pop(); ) a.__s && (a.state = a.__s), h.call(a);
600
+ d || v == null || a.componentDidUpdate == null || a.componentDidUpdate(v, _, b), x && (a.__E = a.__p = null);
601
+ } else r.__e = or(i.__e, r, i, t, n, o, l, u);
602
+ (h = S.diffed) && h(r);
603
+ } catch (p) {
604
+ S.__e(p, r, i);
605
+ }
606
+ return r.__e;
607
+ }
608
+ function pt(e, r) {
609
+ for (var i; i = e.pop(); ) try {
610
+ i.componentDidMount();
611
+ } catch (t) {
612
+ S.__e(t, i.__v);
613
+ }
614
+ S.__c && S.__c(r);
615
+ }
616
+ function or(e, r, i, t, n, o, l, c) {
617
+ var s, u, h, a, d = i.props, v = r.props;
618
+ if (n = r.type === "svg" || n, e == null && o != null) {
619
+ for (s = 0; s < o.length; s++) if ((u = o[s]) != null && (r.type === null ? u.nodeType === 3 : u.localName === r.type)) {
620
+ e = u, o[s] = null;
621
+ break;
622
+ }
623
+ }
624
+ if (e == null) {
625
+ if (r.type === null) return document.createTextNode(v);
626
+ e = n ? document.createElementNS("http://www.w3.org/2000/svg", r.type) : document.createElement(r.type), o = null;
627
+ }
628
+ return r.type === null ? d !== v && (o != null && (o[o.indexOf(e)] = null), e.data = v) : r !== i && (o != null && (o = Re.slice.call(e.childNodes)), h = (d = i.props || H).dangerouslySetInnerHTML, a = v.dangerouslySetInnerHTML, c || (a || h) && (a && h && a.__html == h.__html || (e.innerHTML = a && a.__html || "")), nr(e, v, d, n, c), r.__k = r.props.children, a || bt(e, r, i, t, r.type !== "foreignObject" && n, o, l, H, c), c || ("value" in v && v.value !== void 0 && v.value !== e.value && (e.value = v.value == null ? "" : v.value), "checked" in v && v.checked !== void 0 && v.checked !== e.checked && (e.checked = v.checked))), e;
629
+ }
630
+ function _t(e, r, i) {
631
+ try {
632
+ typeof e == "function" ? e(r) : e.current = r;
633
+ } catch (t) {
634
+ S.__e(t, i);
635
+ }
636
+ }
637
+ function yt(e, r, i) {
638
+ var t, n, o;
639
+ if (S.unmount && S.unmount(e), (t = e.ref) && _t(t, null, r), i || typeof e.type == "function" || (i = (n = e.__e) != null), e.__e = e.l = null, (t = e.__c) != null) {
640
+ if (t.componentWillUnmount) try {
641
+ t.componentWillUnmount();
642
+ } catch (l) {
643
+ S.__e(l, r);
644
+ }
645
+ t.base = t.__P = null;
646
+ }
647
+ if (t = e.__k) for (o = 0; o < t.length; o++) t[o] && yt(t[o], r, i);
648
+ n != null && vt(n);
649
+ }
650
+ function lr(e, r, i) {
651
+ return this.constructor(e, i);
652
+ }
653
+ function cr(e, r, i) {
654
+ var t, n, o;
655
+ S.__p && S.__p(e, r), n = (t = i === gt) ? null : r.__k, e = y(ae, null, [
656
+ e
657
+ ]), o = [], Te(r, r.__k = e, n || H, H, r.ownerSVGElement !== void 0, n ? null : Re.slice.call(r.childNodes), o, false, H, t), pt(o, e);
658
+ }
659
+ S = {}, q.prototype.setState = function(e, r) {
660
+ var i = this.__s !== this.state && this.__s || (this.__s = B({}, this.state));
661
+ (typeof e != "function" || (e = e(i, this.props))) && B(i, e), e != null && this.__v && (this.u = false, r && this.__h.push(r), Le(this));
662
+ }, q.prototype.forceUpdate = function(e) {
663
+ this.__v && (e && this.__h.push(e), this.u = true, Le(this));
664
+ }, q.prototype.render = ae, oe = [], ft = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Ce = S.debounceRendering, S.__e = function(e, r, i) {
665
+ for (var t; r = r.__p; ) if ((t = r.__c) && !t.__p) try {
666
+ if (t.constructor && t.constructor.getDerivedStateFromError != null) t.setState(t.constructor.getDerivedStateFromError(e));
667
+ else {
668
+ if (t.componentDidCatch == null) continue;
669
+ t.componentDidCatch(e);
670
+ }
671
+ return Le(t.__E = t);
672
+ } catch (n) {
673
+ e = n;
674
+ }
675
+ throw e;
676
+ }, gt = H;
677
+ function ar(e, r) {
678
+ for (var i = 0; i < r.length; i++) {
679
+ var t = r[i];
680
+ t.enumerable = t.enumerable || false, t.configurable = true, "value" in t && (t.writable = true), Object.defineProperty(e, t.key, t);
681
+ }
682
+ }
683
+ function sr(e, r, i) {
684
+ return r && ar(e.prototype, r), e;
685
+ }
686
+ function R() {
687
+ return R = Object.assign || function(e) {
688
+ for (var r = arguments, i = 1; i < arguments.length; i++) {
689
+ var t = r[i];
690
+ for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
691
+ }
692
+ return e;
693
+ }, R.apply(this, arguments);
694
+ }
695
+ var hr = "[-\\+]?\\d+%?", ur = "[-\\+]?\\d*\\.\\d+%?", D = "(?:" + ur + ")|(?:" + hr + ")", xt = "[\\s|\\(]+(" + D + ")[,|\\s]+(" + D + ")[,|\\s]+(" + D + ")\\s*\\)?", Lt = "[\\s|\\(]+(" + D + ")[,|\\s]+(" + D + ")[,|\\s]+(" + D + ")[,|\\s]+(" + D + ")\\s*\\)?", dr = new RegExp("rgb" + xt), fr = new RegExp("rgba" + Lt), gr = new RegExp("hsl" + xt), vr = new RegExp("hsla" + Lt), se = "^(?:#?|0x?)", F = "([0-9a-fA-F]{1})", V = "([0-9a-fA-F]{2})", mr = new RegExp(se + F + F + F + "$"), br = new RegExp(se + F + F + F + F + "$"), pr = new RegExp(se + V + V + V + "$"), _r = new RegExp(se + V + V + V + V + "$"), yr = 2e3, xr = 4e4, ie = Math.log, X = Math.round, Z = Math.floor;
696
+ function I(e, r, i) {
697
+ return Math.min(Math.max(e, r), i);
698
+ }
699
+ function A(e, r) {
700
+ var i = e.indexOf("%") > -1, t = parseFloat(e);
701
+ return i ? r / 100 * t : t;
702
+ }
703
+ function M(e) {
704
+ return parseInt(e, 16);
705
+ }
706
+ function z(e) {
707
+ return e.toString(16).padStart(2, "0");
708
+ }
709
+ var K = (function() {
710
+ function e(i, t) {
711
+ this.$ = {
712
+ h: 0,
713
+ s: 0,
714
+ v: 0,
715
+ a: 1
716
+ }, i && this.set(i), this.onChange = t, this.initialValue = R({}, this.$);
717
+ }
718
+ var r = e.prototype;
719
+ return r.set = function(t) {
720
+ if (typeof t == "string") /^(?:#?|0x?)[0-9a-fA-F]{3,8}$/.test(t) ? this.hexString = t : /^rgba?/.test(t) ? this.rgbString = t : /^hsla?/.test(t) && (this.hslString = t);
721
+ else if (typeof t == "object") t instanceof e ? this.hsva = t.hsva : "r" in t && "g" in t && "b" in t ? this.rgb = t : "h" in t && "s" in t && "v" in t ? this.hsv = t : "h" in t && "s" in t && "l" in t ? this.hsl = t : "kelvin" in t && (this.kelvin = t.kelvin);
722
+ else throw new Error("Invalid color value");
723
+ }, r.setChannel = function(t, n, o) {
724
+ var l;
725
+ this[t] = R({}, this[t], (l = {}, l[n] = o, l));
726
+ }, r.reset = function() {
727
+ this.hsva = this.initialValue;
728
+ }, r.clone = function() {
729
+ return new e(this);
730
+ }, r.unbind = function() {
731
+ this.onChange = void 0;
732
+ }, e.hsvToRgb = function(t) {
733
+ var n = t.h / 60, o = t.s / 100, l = t.v / 100, c = Z(n), s = n - c, u = l * (1 - o), h = l * (1 - s * o), a = l * (1 - (1 - s) * o), d = c % 6, v = [
734
+ l,
735
+ h,
736
+ u,
737
+ u,
738
+ a,
739
+ l
740
+ ][d], _ = [
741
+ a,
742
+ l,
743
+ l,
744
+ h,
745
+ u,
746
+ u
747
+ ][d], b = [
748
+ u,
749
+ u,
750
+ a,
751
+ l,
752
+ l,
753
+ h
754
+ ][d];
755
+ return {
756
+ r: I(v * 255, 0, 255),
757
+ g: I(_ * 255, 0, 255),
758
+ b: I(b * 255, 0, 255)
759
+ };
760
+ }, e.rgbToHsv = function(t) {
761
+ var n = t.r / 255, o = t.g / 255, l = t.b / 255, c = Math.max(n, o, l), s = Math.min(n, o, l), u = c - s, h = 0, a = c, d = c === 0 ? 0 : u / c;
762
+ switch (c) {
763
+ case s:
764
+ h = 0;
765
+ break;
766
+ case n:
767
+ h = (o - l) / u + (o < l ? 6 : 0);
768
+ break;
769
+ case o:
770
+ h = (l - n) / u + 2;
771
+ break;
772
+ case l:
773
+ h = (n - o) / u + 4;
774
+ break;
775
+ }
776
+ return {
777
+ h: h * 60 % 360,
778
+ s: I(d * 100, 0, 100),
779
+ v: I(a * 100, 0, 100)
780
+ };
781
+ }, e.hsvToHsl = function(t) {
782
+ var n = t.s / 100, o = t.v / 100, l = (2 - n) * o, c = l <= 1 ? l : 2 - l, s = c < 1e-9 ? 0 : n * o / c;
783
+ return {
784
+ h: t.h,
785
+ s: I(s * 100, 0, 100),
786
+ l: I(l * 50, 0, 100)
787
+ };
788
+ }, e.hslToHsv = function(t) {
789
+ var n = t.l * 2, o = t.s * (n <= 100 ? n : 200 - n) / 100, l = n + o < 1e-9 ? 0 : 2 * o / (n + o);
790
+ return {
791
+ h: t.h,
792
+ s: I(l * 100, 0, 100),
793
+ v: I((n + o) / 2, 0, 100)
794
+ };
795
+ }, e.kelvinToRgb = function(t) {
796
+ var n = t / 100, o, l, c;
797
+ return n < 66 ? (o = 255, l = -155.25485562709179 - 0.44596950469579133 * (l = n - 2) + 104.49216199393888 * ie(l), c = n < 20 ? 0 : -254.76935184120902 + 0.8274096064007395 * (c = n - 10) + 115.67994401066147 * ie(c)) : (o = 351.97690566805693 + 0.114206453784165 * (o = n - 55) - 40.25366309332127 * ie(o), l = 325.4494125711974 + 0.07943456536662342 * (l = n - 50) - 28.0852963507957 * ie(l), c = 255), {
798
+ r: I(Z(o), 0, 255),
799
+ g: I(Z(l), 0, 255),
800
+ b: I(Z(c), 0, 255)
801
+ };
802
+ }, e.rgbToKelvin = function(t) {
803
+ for (var n = t.r, o = t.b, l = 0.4, c = yr, s = xr, u; s - c > l; ) {
804
+ u = (s + c) * 0.5;
805
+ var h = e.kelvinToRgb(u);
806
+ h.b / h.r >= o / n ? s = u : c = u;
807
+ }
808
+ return u;
809
+ }, sr(e, [
810
+ {
811
+ key: "hsv",
812
+ get: function() {
813
+ var t = this.$;
814
+ return {
815
+ h: t.h,
816
+ s: t.s,
817
+ v: t.v
818
+ };
819
+ },
820
+ set: function(t) {
821
+ var n = this.$;
822
+ if (t = R({}, n, t), this.onChange) {
823
+ var o = {
824
+ h: false,
825
+ v: false,
826
+ s: false,
827
+ a: false
828
+ };
829
+ for (var l in n) o[l] = t[l] != n[l];
830
+ this.$ = t, (o.h || o.s || o.v || o.a) && this.onChange(this, o);
831
+ } else this.$ = t;
832
+ }
833
+ },
834
+ {
835
+ key: "hsva",
836
+ get: function() {
837
+ return R({}, this.$);
838
+ },
839
+ set: function(t) {
840
+ this.hsv = t;
841
+ }
842
+ },
843
+ {
844
+ key: "hue",
845
+ get: function() {
846
+ return this.$.h;
847
+ },
848
+ set: function(t) {
849
+ this.hsv = {
850
+ h: t
851
+ };
852
+ }
853
+ },
854
+ {
855
+ key: "saturation",
856
+ get: function() {
857
+ return this.$.s;
858
+ },
859
+ set: function(t) {
860
+ this.hsv = {
861
+ s: t
862
+ };
863
+ }
864
+ },
865
+ {
866
+ key: "value",
867
+ get: function() {
868
+ return this.$.v;
869
+ },
870
+ set: function(t) {
871
+ this.hsv = {
872
+ v: t
873
+ };
874
+ }
875
+ },
876
+ {
877
+ key: "alpha",
878
+ get: function() {
879
+ return this.$.a;
880
+ },
881
+ set: function(t) {
882
+ this.hsv = R({}, this.hsv, {
883
+ a: t
884
+ });
885
+ }
886
+ },
887
+ {
888
+ key: "kelvin",
889
+ get: function() {
890
+ return e.rgbToKelvin(this.rgb);
891
+ },
892
+ set: function(t) {
893
+ this.rgb = e.kelvinToRgb(t);
894
+ }
895
+ },
896
+ {
897
+ key: "red",
898
+ get: function() {
899
+ var t = this.rgb;
900
+ return t.r;
901
+ },
902
+ set: function(t) {
903
+ this.rgb = R({}, this.rgb, {
904
+ r: t
905
+ });
906
+ }
907
+ },
908
+ {
909
+ key: "green",
910
+ get: function() {
911
+ var t = this.rgb;
912
+ return t.g;
913
+ },
914
+ set: function(t) {
915
+ this.rgb = R({}, this.rgb, {
916
+ g: t
917
+ });
918
+ }
919
+ },
920
+ {
921
+ key: "blue",
922
+ get: function() {
923
+ var t = this.rgb;
924
+ return t.b;
925
+ },
926
+ set: function(t) {
927
+ this.rgb = R({}, this.rgb, {
928
+ b: t
929
+ });
930
+ }
931
+ },
932
+ {
933
+ key: "rgb",
934
+ get: function() {
935
+ var t = e.hsvToRgb(this.$), n = t.r, o = t.g, l = t.b;
936
+ return {
937
+ r: X(n),
938
+ g: X(o),
939
+ b: X(l)
940
+ };
941
+ },
942
+ set: function(t) {
943
+ this.hsv = R({}, e.rgbToHsv(t), {
944
+ a: t.a === void 0 ? 1 : t.a
945
+ });
946
+ }
947
+ },
948
+ {
949
+ key: "rgba",
950
+ get: function() {
951
+ return R({}, this.rgb, {
952
+ a: this.alpha
953
+ });
954
+ },
955
+ set: function(t) {
956
+ this.rgb = t;
957
+ }
958
+ },
959
+ {
960
+ key: "hsl",
961
+ get: function() {
962
+ var t = e.hsvToHsl(this.$), n = t.h, o = t.s, l = t.l;
963
+ return {
964
+ h: X(n),
965
+ s: X(o),
966
+ l: X(l)
967
+ };
968
+ },
969
+ set: function(t) {
970
+ this.hsv = R({}, e.hslToHsv(t), {
971
+ a: t.a === void 0 ? 1 : t.a
972
+ });
973
+ }
974
+ },
975
+ {
976
+ key: "hsla",
977
+ get: function() {
978
+ return R({}, this.hsl, {
979
+ a: this.alpha
980
+ });
981
+ },
982
+ set: function(t) {
983
+ this.hsl = t;
984
+ }
985
+ },
986
+ {
987
+ key: "rgbString",
988
+ get: function() {
989
+ var t = this.rgb;
990
+ return "rgb(" + t.r + ", " + t.g + ", " + t.b + ")";
991
+ },
992
+ set: function(t) {
993
+ var n, o, l, c, s = 1;
994
+ if ((n = dr.exec(t)) ? (o = A(n[1], 255), l = A(n[2], 255), c = A(n[3], 255)) : (n = fr.exec(t)) && (o = A(n[1], 255), l = A(n[2], 255), c = A(n[3], 255), s = A(n[4], 1)), n) this.rgb = {
995
+ r: o,
996
+ g: l,
997
+ b: c,
998
+ a: s
999
+ };
1000
+ else throw new Error("Invalid rgb string");
1001
+ }
1002
+ },
1003
+ {
1004
+ key: "rgbaString",
1005
+ get: function() {
1006
+ var t = this.rgba;
1007
+ return "rgba(" + t.r + ", " + t.g + ", " + t.b + ", " + t.a + ")";
1008
+ },
1009
+ set: function(t) {
1010
+ this.rgbString = t;
1011
+ }
1012
+ },
1013
+ {
1014
+ key: "hexString",
1015
+ get: function() {
1016
+ var t = this.rgb;
1017
+ return "#" + z(t.r) + z(t.g) + z(t.b);
1018
+ },
1019
+ set: function(t) {
1020
+ var n, o, l, c, s = 255;
1021
+ if ((n = mr.exec(t)) ? (o = M(n[1]) * 17, l = M(n[2]) * 17, c = M(n[3]) * 17) : (n = br.exec(t)) ? (o = M(n[1]) * 17, l = M(n[2]) * 17, c = M(n[3]) * 17, s = M(n[4]) * 17) : (n = pr.exec(t)) ? (o = M(n[1]), l = M(n[2]), c = M(n[3])) : (n = _r.exec(t)) && (o = M(n[1]), l = M(n[2]), c = M(n[3]), s = M(n[4])), n) this.rgb = {
1022
+ r: o,
1023
+ g: l,
1024
+ b: c,
1025
+ a: s / 255
1026
+ };
1027
+ else throw new Error("Invalid hex string");
1028
+ }
1029
+ },
1030
+ {
1031
+ key: "hex8String",
1032
+ get: function() {
1033
+ var t = this.rgba;
1034
+ return "#" + z(t.r) + z(t.g) + z(t.b) + z(Z(t.a * 255));
1035
+ },
1036
+ set: function(t) {
1037
+ this.hexString = t;
1038
+ }
1039
+ },
1040
+ {
1041
+ key: "hslString",
1042
+ get: function() {
1043
+ var t = this.hsl;
1044
+ return "hsl(" + t.h + ", " + t.s + "%, " + t.l + "%)";
1045
+ },
1046
+ set: function(t) {
1047
+ var n, o, l, c, s = 1;
1048
+ if ((n = gr.exec(t)) ? (o = A(n[1], 360), l = A(n[2], 100), c = A(n[3], 100)) : (n = vr.exec(t)) && (o = A(n[1], 360), l = A(n[2], 100), c = A(n[3], 100), s = A(n[4], 1)), n) this.hsl = {
1049
+ h: o,
1050
+ s: l,
1051
+ l: c,
1052
+ a: s
1053
+ };
1054
+ else throw new Error("Invalid hsl string");
1055
+ }
1056
+ },
1057
+ {
1058
+ key: "hslaString",
1059
+ get: function() {
1060
+ var t = this.hsla;
1061
+ return "hsla(" + t.h + ", " + t.s + "%, " + t.l + "%, " + t.a + ")";
1062
+ },
1063
+ set: function(t) {
1064
+ this.hslString = t;
1065
+ }
1066
+ }
1067
+ ]), e;
1068
+ })(), Lr = {
1069
+ sliderShape: "bar",
1070
+ sliderType: "value",
1071
+ minTemperature: 2200,
1072
+ maxTemperature: 11e3
1073
+ };
1074
+ function je(e) {
1075
+ var r, i = e.width, t = e.sliderSize, n = e.borderWidth, o = e.handleRadius, l = e.padding, c = e.sliderShape, s = e.layoutDirection === "horizontal";
1076
+ return t = (r = t) != null ? r : l * 2 + o * 2, c === "circle" ? {
1077
+ handleStart: e.padding + e.handleRadius,
1078
+ handleRange: i - l * 2 - o * 2,
1079
+ width: i,
1080
+ height: i,
1081
+ cx: i / 2,
1082
+ cy: i / 2,
1083
+ radius: i / 2 - n / 2
1084
+ } : {
1085
+ handleStart: t / 2,
1086
+ handleRange: i - t,
1087
+ radius: t / 2,
1088
+ x: 0,
1089
+ y: 0,
1090
+ width: s ? t : i,
1091
+ height: s ? i : t
1092
+ };
1093
+ }
1094
+ function wr(e, r) {
1095
+ var i = r.hsva, t = r.rgb;
1096
+ switch (e.sliderType) {
1097
+ case "red":
1098
+ return t.r / 2.55;
1099
+ case "green":
1100
+ return t.g / 2.55;
1101
+ case "blue":
1102
+ return t.b / 2.55;
1103
+ case "alpha":
1104
+ return i.a * 100;
1105
+ case "kelvin":
1106
+ var n = e.minTemperature, o = e.maxTemperature, l = o - n, c = (r.kelvin - n) / l * 100;
1107
+ return Math.max(0, Math.min(c, 100));
1108
+ case "hue":
1109
+ return i.h /= 3.6;
1110
+ case "saturation":
1111
+ return i.s;
1112
+ default:
1113
+ return i.v;
1114
+ }
1115
+ }
1116
+ function Sr(e, r, i) {
1117
+ var t = je(e), n = t.handleRange, o = t.handleStart, l;
1118
+ e.layoutDirection === "horizontal" ? l = -1 * i + n + o : l = r - o, l = Math.max(Math.min(l, n), 0);
1119
+ var c = Math.round(100 / n * l);
1120
+ switch (e.sliderType) {
1121
+ case "kelvin":
1122
+ var s = e.minTemperature, u = e.maxTemperature, h = u - s;
1123
+ return s + h * (c / 100);
1124
+ case "alpha":
1125
+ return c / 100;
1126
+ case "hue":
1127
+ return c * 3.6;
1128
+ case "red":
1129
+ case "blue":
1130
+ case "green":
1131
+ return c * 2.55;
1132
+ default:
1133
+ return c;
1134
+ }
1135
+ }
1136
+ function Cr(e, r) {
1137
+ var i = je(e), t = i.width, n = i.height, o = i.handleRange, l = i.handleStart, c = e.layoutDirection === "horizontal", s = wr(e, r), u = c ? t / 2 : n / 2, h = l + s / 100 * o;
1138
+ return c && (h = -1 * h + o + l * 2), {
1139
+ x: c ? u : h,
1140
+ y: c ? h : u
1141
+ };
1142
+ }
1143
+ function kr(e, r) {
1144
+ var i = r.hsv, t = r.rgb;
1145
+ switch (e.sliderType) {
1146
+ case "red":
1147
+ return [
1148
+ [
1149
+ 0,
1150
+ "rgb(0," + t.g + "," + t.b + ")"
1151
+ ],
1152
+ [
1153
+ 100,
1154
+ "rgb(255," + t.g + "," + t.b + ")"
1155
+ ]
1156
+ ];
1157
+ case "green":
1158
+ return [
1159
+ [
1160
+ 0,
1161
+ "rgb(" + t.r + ",0," + t.b + ")"
1162
+ ],
1163
+ [
1164
+ 100,
1165
+ "rgb(" + t.r + ",255," + t.b + ")"
1166
+ ]
1167
+ ];
1168
+ case "blue":
1169
+ return [
1170
+ [
1171
+ 0,
1172
+ "rgb(" + t.r + "," + t.g + ",0)"
1173
+ ],
1174
+ [
1175
+ 100,
1176
+ "rgb(" + t.r + "," + t.g + ",255)"
1177
+ ]
1178
+ ];
1179
+ case "alpha":
1180
+ return [
1181
+ [
1182
+ 0,
1183
+ "rgba(" + t.r + "," + t.g + "," + t.b + ",0)"
1184
+ ],
1185
+ [
1186
+ 100,
1187
+ "rgb(" + t.r + "," + t.g + "," + t.b + ")"
1188
+ ]
1189
+ ];
1190
+ case "kelvin":
1191
+ for (var n = [], o = e.minTemperature, l = e.maxTemperature, c = 8, s = l - o, u = o, h = 0; u < l; u += s / c, h += 1) {
1192
+ var a = K.kelvinToRgb(u), d = a.r, v = a.g, _ = a.b;
1193
+ n.push([
1194
+ 100 / c * h,
1195
+ "rgb(" + d + "," + v + "," + _ + ")"
1196
+ ]);
1197
+ }
1198
+ return n;
1199
+ case "hue":
1200
+ return [
1201
+ [
1202
+ 0,
1203
+ "#f00"
1204
+ ],
1205
+ [
1206
+ 16.666,
1207
+ "#ff0"
1208
+ ],
1209
+ [
1210
+ 33.333,
1211
+ "#0f0"
1212
+ ],
1213
+ [
1214
+ 50,
1215
+ "#0ff"
1216
+ ],
1217
+ [
1218
+ 66.666,
1219
+ "#00f"
1220
+ ],
1221
+ [
1222
+ 83.333,
1223
+ "#f0f"
1224
+ ],
1225
+ [
1226
+ 100,
1227
+ "#f00"
1228
+ ]
1229
+ ];
1230
+ case "saturation":
1231
+ var b = K.hsvToHsl({
1232
+ h: i.h,
1233
+ s: 0,
1234
+ v: i.v
1235
+ }), x = K.hsvToHsl({
1236
+ h: i.h,
1237
+ s: 100,
1238
+ v: i.v
1239
+ });
1240
+ return [
1241
+ [
1242
+ 0,
1243
+ "hsl(" + b.h + "," + b.s + "%," + b.l + "%)"
1244
+ ],
1245
+ [
1246
+ 100,
1247
+ "hsl(" + x.h + "," + x.s + "%," + x.l + "%)"
1248
+ ]
1249
+ ];
1250
+ default:
1251
+ var L = K.hsvToHsl({
1252
+ h: i.h,
1253
+ s: i.s,
1254
+ v: 100
1255
+ });
1256
+ return [
1257
+ [
1258
+ 0,
1259
+ "#000"
1260
+ ],
1261
+ [
1262
+ 100,
1263
+ "hsl(" + L.h + "," + L.s + "%," + L.l + "%)"
1264
+ ]
1265
+ ];
1266
+ }
1267
+ }
1268
+ var wt = Math.PI * 2, Or = function(r, i) {
1269
+ return (r % i + i) % i;
1270
+ }, St = function(r, i) {
1271
+ return Math.sqrt(r * r + i * i);
1272
+ };
1273
+ function Ct(e) {
1274
+ return e.width / 2 - e.padding - e.handleRadius - e.borderWidth;
1275
+ }
1276
+ function Er(e, r, i) {
1277
+ var t = he(e), n = t.cx, o = t.cy, l = e.width / 2;
1278
+ return St(n - r, o - i) < l;
1279
+ }
1280
+ function he(e) {
1281
+ var r = e.width / 2;
1282
+ return {
1283
+ width: e.width,
1284
+ radius: r - e.borderWidth,
1285
+ cx: r,
1286
+ cy: r
1287
+ };
1288
+ }
1289
+ function kt(e, r, i) {
1290
+ var t = e.wheelAngle, n = e.wheelDirection;
1291
+ return i && n === "clockwise" ? r = t + r : n === "clockwise" ? r = 360 - t + r : i && n === "anticlockwise" ? r = t + 180 - r : n === "anticlockwise" && (r = t - r), Or(r, 360);
1292
+ }
1293
+ function Ar(e, r) {
1294
+ var i = r.hsv, t = he(e), n = t.cx, o = t.cy, l = Ct(e), c = (180 + kt(e, i.h, true)) * (wt / 360), s = i.s / 100 * l, u = e.wheelDirection === "clockwise" ? -1 : 1;
1295
+ return {
1296
+ x: n + s * Math.cos(c) * u,
1297
+ y: o + s * Math.sin(c) * u
1298
+ };
1299
+ }
1300
+ function ot(e, r, i) {
1301
+ var t = he(e), n = t.cx, o = t.cy, l = Ct(e);
1302
+ r = n - r, i = o - i;
1303
+ var c = kt(e, Math.atan2(-i, -r) * (360 / wt)), s = Math.min(St(r, i), l);
1304
+ return {
1305
+ h: Math.round(c),
1306
+ s: Math.round(100 / l * s)
1307
+ };
1308
+ }
1309
+ function Pe(e) {
1310
+ var r = e.width, i = e.boxHeight, t = e.padding, n = e.handleRadius;
1311
+ return {
1312
+ width: r,
1313
+ height: i ?? r,
1314
+ radius: t + n
1315
+ };
1316
+ }
1317
+ function lt(e, r, i) {
1318
+ var t = Pe(e), n = t.width, o = t.height, l = t.radius, c = l, s = n - l * 2, u = o - l * 2, h = (r - c) / s * 100, a = (i - c) / u * 100;
1319
+ return {
1320
+ s: Math.max(0, Math.min(h, 100)),
1321
+ v: Math.max(0, Math.min(100 - a, 100))
1322
+ };
1323
+ }
1324
+ function Mr(e, r) {
1325
+ var i = Pe(e), t = i.width, n = i.height, o = i.radius, l = r.hsv, c = o, s = t - o * 2, u = n - o * 2;
1326
+ return {
1327
+ x: c + l.s / 100 * s,
1328
+ y: c + (u - l.v / 100 * u)
1329
+ };
1330
+ }
1331
+ function Rr(e, r) {
1332
+ var i = r.hue;
1333
+ return [
1334
+ [
1335
+ [
1336
+ 0,
1337
+ "#fff"
1338
+ ],
1339
+ [
1340
+ 100,
1341
+ "hsl(" + i + ",100%,50%)"
1342
+ ]
1343
+ ],
1344
+ [
1345
+ [
1346
+ 0,
1347
+ "rgba(0,0,0,0)"
1348
+ ],
1349
+ [
1350
+ 100,
1351
+ "#000"
1352
+ ]
1353
+ ]
1354
+ ];
1355
+ }
1356
+ var we;
1357
+ function Ir(e) {
1358
+ we || (we = document.getElementsByTagName("base"));
1359
+ var r = window.navigator.userAgent, i = /^((?!chrome|android).)*safari/i.test(r), t = /iPhone|iPod|iPad/i.test(r), n = window.location;
1360
+ return (i || t) && we.length > 0 ? n.protocol + "//" + n.host + n.pathname + n.search + e : e;
1361
+ }
1362
+ function Ot(e, r, i, t) {
1363
+ for (var n = 0; n < t.length; n++) {
1364
+ var o = t[n].x - r, l = t[n].y - i, c = Math.sqrt(o * o + l * l);
1365
+ if (c < e.handleRadius) return n;
1366
+ }
1367
+ return null;
1368
+ }
1369
+ function Be(e) {
1370
+ return {
1371
+ boxSizing: "border-box",
1372
+ border: e.borderWidth + "px solid " + e.borderColor
1373
+ };
1374
+ }
1375
+ function Oe(e, r, i) {
1376
+ return e + "-gradient(" + r + ", " + i.map(function(t) {
1377
+ var n = t[0], o = t[1];
1378
+ return o + " " + n + "%";
1379
+ }).join(",") + ")";
1380
+ }
1381
+ function E(e) {
1382
+ return typeof e == "string" ? e : e + "px";
1383
+ }
1384
+ var Tr = {
1385
+ width: 300,
1386
+ height: 300,
1387
+ color: "#fff",
1388
+ colors: [],
1389
+ padding: 6,
1390
+ layoutDirection: "vertical",
1391
+ borderColor: "#fff",
1392
+ borderWidth: 0,
1393
+ handleRadius: 8,
1394
+ activeHandleRadius: null,
1395
+ handleSvg: null,
1396
+ handleProps: {
1397
+ x: 0,
1398
+ y: 0
1399
+ },
1400
+ wheelLightness: true,
1401
+ wheelAngle: 0,
1402
+ wheelDirection: "anticlockwise",
1403
+ sliderSize: null,
1404
+ sliderMargin: 12,
1405
+ boxHeight: null
1406
+ }, ct = [
1407
+ "mousemove",
1408
+ "touchmove",
1409
+ "mouseup",
1410
+ "touchend"
1411
+ ], ue = (function(e) {
1412
+ function r(i) {
1413
+ e.call(this, i), this.uid = (Math.random() + 1).toString(36).substring(5);
1414
+ }
1415
+ return e && (r.__proto__ = e), r.prototype = Object.create(e && e.prototype), r.prototype.constructor = r, r.prototype.render = function(t) {
1416
+ var n = this.handleEvent.bind(this), o = {
1417
+ onMouseDown: n,
1418
+ ontouchstart: n
1419
+ }, l = t.layoutDirection === "horizontal", c = t.margin === null ? t.sliderMargin : t.margin, s = {
1420
+ overflow: "visible",
1421
+ display: l ? "inline-block" : "block"
1422
+ };
1423
+ return t.index > 0 && (s[l ? "marginLeft" : "marginTop"] = c), y(ae, null, t.children(this.uid, o, s));
1424
+ }, r.prototype.handleEvent = function(t) {
1425
+ var n = this, o = this.props.onInput, l = this.base.getBoundingClientRect();
1426
+ t.preventDefault();
1427
+ var c = t.touches ? t.changedTouches[0] : t, s = c.clientX - l.left, u = c.clientY - l.top;
1428
+ switch (t.type) {
1429
+ case "mousedown":
1430
+ case "touchstart":
1431
+ var h = o(s, u, 0);
1432
+ h !== false && ct.forEach(function(a) {
1433
+ document.addEventListener(a, n, {
1434
+ passive: false
1435
+ });
1436
+ });
1437
+ break;
1438
+ case "mousemove":
1439
+ case "touchmove":
1440
+ o(s, u, 1);
1441
+ break;
1442
+ case "mouseup":
1443
+ case "touchend":
1444
+ o(s, u, 2), ct.forEach(function(a) {
1445
+ document.removeEventListener(a, n, {
1446
+ passive: false
1447
+ });
1448
+ });
1449
+ break;
1450
+ }
1451
+ }, r;
1452
+ })(q);
1453
+ function G(e) {
1454
+ var r = e.r, i = e.url, t = r, n = r;
1455
+ return y("svg", {
1456
+ className: "IroHandle IroHandle--" + e.index + " " + (e.isActive ? "IroHandle--isActive" : ""),
1457
+ style: {
1458
+ "-webkit-tap-highlight-color": "rgba(0, 0, 0, 0);",
1459
+ transform: "translate(" + E(e.x) + ", " + E(e.y) + ")",
1460
+ willChange: "transform",
1461
+ top: E(-r),
1462
+ left: E(-r),
1463
+ width: E(r * 2),
1464
+ height: E(r * 2),
1465
+ position: "absolute",
1466
+ overflow: "visible"
1467
+ }
1468
+ }, i && y("use", Object.assign({
1469
+ xlinkHref: Ir(i)
1470
+ }, e.props)), !i && y("circle", {
1471
+ cx: t,
1472
+ cy: n,
1473
+ r,
1474
+ fill: "none",
1475
+ "stroke-width": 2,
1476
+ stroke: "#000"
1477
+ }), !i && y("circle", {
1478
+ cx: t,
1479
+ cy: n,
1480
+ r: r - 2,
1481
+ fill: e.fill,
1482
+ "stroke-width": 2,
1483
+ stroke: "#fff"
1484
+ }));
1485
+ }
1486
+ G.defaultProps = {
1487
+ fill: "none",
1488
+ x: 0,
1489
+ y: 0,
1490
+ r: 8,
1491
+ url: null,
1492
+ props: {
1493
+ x: 0,
1494
+ y: 0
1495
+ }
1496
+ };
1497
+ function ce(e) {
1498
+ var r = e.activeIndex, i = r !== void 0 && r < e.colors.length ? e.colors[r] : e.color, t = je(e), n = t.width, o = t.height, l = t.radius, c = Cr(e, i), s = kr(e, i);
1499
+ function u(h, a, d) {
1500
+ var v = Sr(e, h, a);
1501
+ e.parent.inputActive = true, i[e.sliderType] = v, e.onInput(d, e.id);
1502
+ }
1503
+ return y(ue, Object.assign({}, e, {
1504
+ onInput: u
1505
+ }), function(h, a, d) {
1506
+ return y("div", Object.assign({}, a, {
1507
+ className: "IroSlider",
1508
+ style: Object.assign({}, {
1509
+ position: "relative",
1510
+ width: E(n),
1511
+ height: E(o),
1512
+ borderRadius: E(l),
1513
+ background: "conic-gradient(#ccc 25%, #fff 0 50%, #ccc 0 75%, #fff 0)",
1514
+ backgroundSize: "8px 8px"
1515
+ }, d)
1516
+ }), y("div", {
1517
+ className: "IroSliderGradient",
1518
+ style: Object.assign({}, {
1519
+ position: "absolute",
1520
+ top: 0,
1521
+ left: 0,
1522
+ width: "100%",
1523
+ height: "100%",
1524
+ borderRadius: E(l),
1525
+ background: Oe("linear", e.layoutDirection === "horizontal" ? "to top" : "to right", s)
1526
+ }, Be(e))
1527
+ }), y(G, {
1528
+ isActive: true,
1529
+ index: i.index,
1530
+ r: e.handleRadius,
1531
+ url: e.handleSvg,
1532
+ props: e.handleProps,
1533
+ x: c.x,
1534
+ y: c.y
1535
+ }));
1536
+ });
1537
+ }
1538
+ ce.defaultProps = Object.assign({}, Lr);
1539
+ function jr(e) {
1540
+ var r = Pe(e), i = r.width, t = r.height, n = r.radius, o = e.colors, l = e.parent, c = e.activeIndex, s = c !== void 0 && c < e.colors.length ? e.colors[c] : e.color, u = Rr(e, s), h = o.map(function(d) {
1541
+ return Mr(e, d);
1542
+ });
1543
+ function a(d, v, _) {
1544
+ if (_ === 0) {
1545
+ var b = Ot(e, d, v, h);
1546
+ b !== null ? l.setActiveColor(b) : (l.inputActive = true, s.hsv = lt(e, d, v), e.onInput(_, e.id));
1547
+ } else _ === 1 && (l.inputActive = true, s.hsv = lt(e, d, v));
1548
+ e.onInput(_, e.id);
1549
+ }
1550
+ return y(ue, Object.assign({}, e, {
1551
+ onInput: a
1552
+ }), function(d, v, _) {
1553
+ return y("div", Object.assign({}, v, {
1554
+ className: "IroBox",
1555
+ style: Object.assign({}, {
1556
+ width: E(i),
1557
+ height: E(t),
1558
+ position: "relative"
1559
+ }, _)
1560
+ }), y("div", {
1561
+ className: "IroBox",
1562
+ style: Object.assign({}, {
1563
+ width: "100%",
1564
+ height: "100%",
1565
+ borderRadius: E(n)
1566
+ }, Be(e), {
1567
+ background: Oe("linear", "to bottom", u[1]) + "," + Oe("linear", "to right", u[0])
1568
+ })
1569
+ }), o.filter(function(b) {
1570
+ return b !== s;
1571
+ }).map(function(b) {
1572
+ return y(G, {
1573
+ isActive: false,
1574
+ index: b.index,
1575
+ fill: b.hslString,
1576
+ r: e.handleRadius,
1577
+ url: e.handleSvg,
1578
+ props: e.handleProps,
1579
+ x: h[b.index].x,
1580
+ y: h[b.index].y
1581
+ });
1582
+ }), y(G, {
1583
+ isActive: true,
1584
+ index: s.index,
1585
+ fill: s.hslString,
1586
+ r: e.activeHandleRadius || e.handleRadius,
1587
+ url: e.handleSvg,
1588
+ props: e.handleProps,
1589
+ x: h[s.index].x,
1590
+ y: h[s.index].y
1591
+ }));
1592
+ });
1593
+ }
1594
+ var Pr = "conic-gradient(red, yellow, lime, aqua, blue, magenta, red)", Br = "conic-gradient(red, magenta, blue, aqua, lime, yellow, red)";
1595
+ function Et(e) {
1596
+ var r = he(e), i = r.width, t = e.colors;
1597
+ e.borderWidth;
1598
+ var n = e.parent, o = e.color, l = o.hsv, c = t.map(function(h) {
1599
+ return Ar(e, h);
1600
+ }), s = {
1601
+ position: "absolute",
1602
+ top: 0,
1603
+ left: 0,
1604
+ width: "100%",
1605
+ height: "100%",
1606
+ borderRadius: "50%",
1607
+ boxSizing: "border-box"
1608
+ };
1609
+ function u(h, a, d) {
1610
+ if (d === 0) {
1611
+ if (!Er(e, h, a)) return false;
1612
+ var v = Ot(e, h, a, c);
1613
+ v !== null ? n.setActiveColor(v) : (n.inputActive = true, o.hsv = ot(e, h, a), e.onInput(d, e.id));
1614
+ } else d === 1 && (n.inputActive = true, o.hsv = ot(e, h, a));
1615
+ e.onInput(d, e.id);
1616
+ }
1617
+ return y(ue, Object.assign({}, e, {
1618
+ onInput: u
1619
+ }), function(h, a, d) {
1620
+ return y("div", Object.assign({}, a, {
1621
+ className: "IroWheel",
1622
+ style: Object.assign({}, {
1623
+ width: E(i),
1624
+ height: E(i),
1625
+ position: "relative"
1626
+ }, d)
1627
+ }), y("div", {
1628
+ className: "IroWheelHue",
1629
+ style: Object.assign({}, s, {
1630
+ transform: "rotateZ(" + (e.wheelAngle + 90) + "deg)",
1631
+ background: e.wheelDirection === "clockwise" ? Pr : Br
1632
+ })
1633
+ }), y("div", {
1634
+ className: "IroWheelSaturation",
1635
+ style: Object.assign({}, s, {
1636
+ background: "radial-gradient(circle closest-side, #fff, transparent)"
1637
+ })
1638
+ }), e.wheelLightness && y("div", {
1639
+ className: "IroWheelLightness",
1640
+ style: Object.assign({}, s, {
1641
+ background: "#000",
1642
+ opacity: 1 - l.v / 100
1643
+ })
1644
+ }), y("div", {
1645
+ className: "IroWheelBorder",
1646
+ style: Object.assign({}, s, Be(e))
1647
+ }), t.filter(function(v) {
1648
+ return v !== o;
1649
+ }).map(function(v) {
1650
+ return y(G, {
1651
+ isActive: false,
1652
+ index: v.index,
1653
+ fill: v.hslString,
1654
+ r: e.handleRadius,
1655
+ url: e.handleSvg,
1656
+ props: e.handleProps,
1657
+ x: c[v.index].x,
1658
+ y: c[v.index].y
1659
+ });
1660
+ }), y(G, {
1661
+ isActive: true,
1662
+ index: o.index,
1663
+ fill: o.hslString,
1664
+ r: e.activeHandleRadius || e.handleRadius,
1665
+ url: e.handleSvg,
1666
+ props: e.handleProps,
1667
+ x: c[o.index].x,
1668
+ y: c[o.index].y
1669
+ }));
1670
+ });
1671
+ }
1672
+ function Hr(e) {
1673
+ var r = function(i, t) {
1674
+ var n, o = document.createElement("div");
1675
+ cr(y(e, Object.assign({}, {
1676
+ ref: function(c) {
1677
+ return n = c;
1678
+ }
1679
+ }, t)), o);
1680
+ function l() {
1681
+ var c = i instanceof Element ? i : document.querySelector(i);
1682
+ c.appendChild(n.base), n.onMount(c);
1683
+ }
1684
+ return document.readyState !== "loading" ? l() : document.addEventListener("DOMContentLoaded", l), n;
1685
+ };
1686
+ return r.prototype = e.prototype, Object.assign(r, e), r.__component = e, r;
1687
+ }
1688
+ var At = (function(e) {
1689
+ function r(i) {
1690
+ var t = this;
1691
+ e.call(this, i), this.colors = [], this.inputActive = false, this.events = {}, this.activeEvents = {}, this.deferredEvents = {}, this.id = i.id;
1692
+ var n = i.colors.length > 0 ? i.colors : [
1693
+ i.color
1694
+ ];
1695
+ n.forEach(function(o) {
1696
+ return t.addColor(o);
1697
+ }), this.setActiveColor(0), this.state = Object.assign({}, i, {
1698
+ color: this.color,
1699
+ colors: this.colors,
1700
+ layout: i.layout
1701
+ });
1702
+ }
1703
+ return e && (r.__proto__ = e), r.prototype = Object.create(e && e.prototype), r.prototype.constructor = r, r.prototype.addColor = function(t, n) {
1704
+ n === void 0 && (n = this.colors.length);
1705
+ var o = new K(t, this.onColorChange.bind(this));
1706
+ this.colors.splice(n, 0, o), this.colors.forEach(function(l, c) {
1707
+ return l.index = c;
1708
+ }), this.state && this.setState({
1709
+ colors: this.colors
1710
+ }), this.deferredEmit("color:init", o);
1711
+ }, r.prototype.removeColor = function(t) {
1712
+ var n = this.colors.splice(t, 1)[0];
1713
+ n.unbind(), this.colors.forEach(function(o, l) {
1714
+ return o.index = l;
1715
+ }), this.state && this.setState({
1716
+ colors: this.colors
1717
+ }), n.index === this.color.index && this.setActiveColor(0), this.emit("color:remove", n);
1718
+ }, r.prototype.setActiveColor = function(t) {
1719
+ this.color = this.colors[t], this.state && this.setState({
1720
+ color: this.color
1721
+ }), this.emit("color:setActive", this.color);
1722
+ }, r.prototype.setColors = function(t, n) {
1723
+ var o = this;
1724
+ n === void 0 && (n = 0), this.colors.forEach(function(l) {
1725
+ return l.unbind();
1726
+ }), this.colors = [], t.forEach(function(l) {
1727
+ return o.addColor(l);
1728
+ }), this.setActiveColor(n), this.emit("color:setAll", this.colors);
1729
+ }, r.prototype.on = function(t, n) {
1730
+ var o = this, l = this.events;
1731
+ (Array.isArray(t) ? t : [
1732
+ t
1733
+ ]).forEach(function(c) {
1734
+ (l[c] || (l[c] = [])).push(n), o.deferredEvents[c] && (o.deferredEvents[c].forEach(function(s) {
1735
+ n.apply(null, s);
1736
+ }), o.deferredEvents[c] = []);
1737
+ });
1738
+ }, r.prototype.off = function(t, n) {
1739
+ var o = this;
1740
+ (Array.isArray(t) ? t : [
1741
+ t
1742
+ ]).forEach(function(l) {
1743
+ var c = o.events[l];
1744
+ c && c.splice(c.indexOf(n), 1);
1745
+ });
1746
+ }, r.prototype.emit = function(t) {
1747
+ for (var n = this, o = [], l = arguments.length - 1; l-- > 0; ) o[l] = arguments[l + 1];
1748
+ var c = this.activeEvents, s = c.hasOwnProperty(t) ? c[t] : false;
1749
+ if (!s) {
1750
+ c[t] = true;
1751
+ var u = this.events[t] || [];
1752
+ u.forEach(function(h) {
1753
+ return h.apply(n, o);
1754
+ }), c[t] = false;
1755
+ }
1756
+ }, r.prototype.deferredEmit = function(t) {
1757
+ for (var n, o = [], l = arguments.length - 1; l-- > 0; ) o[l] = arguments[l + 1];
1758
+ var c = this.deferredEvents;
1759
+ (n = this).emit.apply(n, [
1760
+ t
1761
+ ].concat(o)), (c[t] || (c[t] = [])).push(o);
1762
+ }, r.prototype.setOptions = function(t) {
1763
+ this.setState(t);
1764
+ }, r.prototype.resize = function(t) {
1765
+ this.setOptions({
1766
+ width: t
1767
+ });
1768
+ }, r.prototype.reset = function() {
1769
+ this.colors.forEach(function(t) {
1770
+ return t.reset();
1771
+ }), this.setState({
1772
+ colors: this.colors
1773
+ });
1774
+ }, r.prototype.onMount = function(t) {
1775
+ this.el = t, this.deferredEmit("mount", this);
1776
+ }, r.prototype.onColorChange = function(t, n) {
1777
+ this.setState({
1778
+ color: this.color
1779
+ }), this.inputActive && (this.inputActive = false, this.emit("input:change", t, n)), this.emit("color:change", t, n);
1780
+ }, r.prototype.emitInputEvent = function(t, n) {
1781
+ t === 0 ? this.emit("input:start", this.color, n) : t === 1 ? this.emit("input:move", this.color, n) : t === 2 && this.emit("input:end", this.color, n);
1782
+ }, r.prototype.render = function(t, n) {
1783
+ var o = this, l = n.layout;
1784
+ return Array.isArray(l) || (l = [
1785
+ {
1786
+ component: Et
1787
+ },
1788
+ {
1789
+ component: ce
1790
+ }
1791
+ ], n.transparency && l.push({
1792
+ component: ce,
1793
+ options: {
1794
+ sliderType: "alpha"
1795
+ }
1796
+ })), y("div", {
1797
+ class: "IroColorPicker",
1798
+ id: n.id,
1799
+ style: {
1800
+ display: n.display
1801
+ }
1802
+ }, l.map(function(c, s) {
1803
+ var u = c.component, h = c.options;
1804
+ return y(u, Object.assign({}, n, h, {
1805
+ ref: void 0,
1806
+ onInput: o.emitInputEvent.bind(o),
1807
+ parent: o,
1808
+ index: s
1809
+ }));
1810
+ }));
1811
+ }, r;
1812
+ })(q);
1813
+ At.defaultProps = Object.assign({}, Tr, {
1814
+ colors: [],
1815
+ display: "block",
1816
+ id: null,
1817
+ layout: "default",
1818
+ margin: null
1819
+ });
1820
+ var Wr = Hr(At), Ee;
1821
+ (function(e) {
1822
+ e.version = "5.5.2", e.Color = K, e.ColorPicker = Wr, (function(r) {
1823
+ r.h = y, r.ComponentBase = ue, r.Handle = G, r.Slider = ce, r.Wheel = Et, r.Box = jr;
1824
+ })(e.ui || (e.ui = {}));
1825
+ })(Ee || (Ee = {}));
1826
+ var P = Ee;
1827
+ function zr(e, r, i, t, n) {
1828
+ if (i === "cct") return [
1829
+ [
1830
+ {
1831
+ component: P.ui.Slider,
1832
+ options: {
1833
+ sliderType: "kelvin",
1834
+ sliderShape: "circle",
1835
+ minTemperature: t,
1836
+ maxTemperature: n
1837
+ }
1838
+ },
1839
+ {
1840
+ component: P.ui.Slider,
1841
+ options: {
1842
+ sliderType: "value"
1843
+ }
1844
+ }
1845
+ ][e - 1]
1846
+ ];
1847
+ switch (r) {
1848
+ case "wheel":
1849
+ return [
1850
+ {
1851
+ component: P.ui.Wheel,
1852
+ options: {}
1853
+ },
1854
+ {
1855
+ component: P.ui.Slider,
1856
+ options: {
1857
+ sliderType: "value"
1858
+ }
1859
+ }
1860
+ ];
1861
+ case "box":
1862
+ return [
1863
+ {
1864
+ component: P.ui.Box,
1865
+ options: {
1866
+ boxLightness: false
1867
+ }
1868
+ },
1869
+ {
1870
+ component: P.ui.Slider,
1871
+ options: {
1872
+ sliderType: "hue"
1873
+ }
1874
+ }
1875
+ ];
1876
+ case "slider":
1877
+ return [
1878
+ {
1879
+ component: P.ui.Slider,
1880
+ options: {
1881
+ sliderType: "red"
1882
+ }
1883
+ },
1884
+ {
1885
+ component: P.ui.Slider,
1886
+ options: {
1887
+ sliderType: "green"
1888
+ }
1889
+ },
1890
+ {
1891
+ component: P.ui.Slider,
1892
+ options: {
1893
+ sliderType: "blue"
1894
+ }
1895
+ }
1896
+ ];
1897
+ default:
1898
+ return [];
1899
+ }
1900
+ }
1901
+ function Nr(e, r, i) {
1902
+ if (i === "cct") return e.maxWidth;
1903
+ switch (r) {
1904
+ case "wheel":
1905
+ case "box":
1906
+ return e.maxWidth;
1907
+ case "slider":
1908
+ return e.height;
1909
+ default:
1910
+ return 0;
1911
+ }
1912
+ }
1913
+ function Mt(e, r, i, t) {
1914
+ if (!e.width || !e.height) return 12;
1915
+ if (r === "slider" && t !== "cct") return (e.width - 3 * (i || 1) * 28) / 2;
1916
+ const n = e.maxWidth, o = (i || 1) * 28, l = e.width - n - o;
1917
+ return Math.max(12, l);
1918
+ }
1919
+ function Dr(e, r, i, t, n, o) {
1920
+ e.current && (r.current = P.ColorPicker(e.current, i), r.current.on("color:init", (l) => {
1921
+ n && n(l, o);
1922
+ }), r.current.on("input:change", (l, c) => {
1923
+ t && t(l, c);
1924
+ }));
1925
+ }
1926
+ function Fr(e) {
1927
+ e.current = null;
1928
+ }
1929
+ function Vr(e, r) {
1930
+ !e || !r || e.resize(r);
1931
+ }
1932
+ function Gr(e, r) {
1933
+ e && e.setOptions(r);
1934
+ }
1935
+ function $r(e, r) {
1936
+ typeof e == "function" ? e(r) : e && "current" in e && (e.current = r);
1937
+ }
1938
+ const Ae = f.forwardRef(({ dimensions: e, colorLightUIComponent: r, colorLightSliderWidth: i, colorLightBorderWidth: t, colorLightBorderColor: n, colorWheelLightness: o, colorLightType: l, colorLightCtMin: c, colorLightCtMax: s, colorLightGamut: u, cctComponentNumber: h, onInputChange: a, onColorInit: d }, v) => {
1939
+ const { theme: _ } = f.useContext(Me), b = f.useRef(null), x = f.useRef(null), L = f.useRef(d), m = f.useRef(a);
1940
+ L.current = d, m.current = a;
1941
+ const k = f.useMemo(() => zr(h, r, l, c, s), [
1942
+ h,
1943
+ r,
1944
+ l,
1945
+ c,
1946
+ s
1947
+ ]), w = f.useMemo(() => Nr(e, r, l), [
1948
+ e,
1949
+ r,
1950
+ l
1951
+ ]), p = f.useMemo(() => Mt(e, r, i, l), [
1952
+ e,
1953
+ r,
1954
+ i,
1955
+ l
1956
+ ]);
1957
+ return f.useEffect(() => (Dr(b, x, {
1958
+ color: "#ffffff",
1959
+ width: 0,
1960
+ margin: 12,
1961
+ sliderSize: 28,
1962
+ display: "flex",
1963
+ padding: 6,
1964
+ handleRadius: 8,
1965
+ layoutDirection: "horizontal"
1966
+ }, ($, U) => {
1967
+ var _a;
1968
+ return (_a = m.current) == null ? void 0 : _a.call(m, $, U);
1969
+ }, ($, U) => {
1970
+ var _a;
1971
+ return (_a = L.current) == null ? void 0 : _a.call(L, $, U);
1972
+ }, h), $r(v, x.current), () => Fr(x)), [
1973
+ v,
1974
+ h
1975
+ ]), f.useEffect(() => {
1976
+ Vr(x.current, w);
1977
+ }, [
1978
+ w
1979
+ ]), f.useEffect(() => {
1980
+ Gr(x.current, {
1981
+ layout: k,
1982
+ margin: p,
1983
+ wheelLightness: o,
1984
+ sliderSize: (i || 1) * 28,
1985
+ borderWidth: t || 0,
1986
+ borderColor: !n || typeof n == "string" && n.trim() === "" ? _.palette.primary.main : n
1987
+ });
1988
+ }, [
1989
+ _.palette.primary.main,
1990
+ k,
1991
+ p,
1992
+ i,
1993
+ t,
1994
+ n,
1995
+ o
1996
+ ]), g.jsx(N, {
1997
+ ref: b
1998
+ });
1999
+ });
2000
+ Ae.displayName = "Light2Picker";
2001
+ const Ur = Vt(g.jsx("path", {
2002
+ d: "M13 3h-2v10h2zm4.83 2.17-1.42 1.42C17.99 7.86 19 9.81 19 12c0 3.87-3.13 7-7 7s-7-3.13-7-7c0-2.19 1.01-4.14 2.58-5.42L6.17 5.17C4.23 6.82 3 9.26 3 12c0 4.97 4.03 9 9 9s9-4.03 9-9c0-2.74-1.23-5.18-3.17-6.83"
2003
+ }), "PowerSettingsNew"), Xr = (e) => f.createElement("svg", {
2004
+ width: "800px",
2005
+ height: "800px",
2006
+ viewBox: "0 0 128 128",
2007
+ xmlns: "http://www.w3.org/2000/svg",
2008
+ xmlnsXlink: "http://www.w3.org/1999/xlink",
2009
+ "aria-hidden": "true",
2010
+ role: "img",
2011
+ className: "iconify iconify--noto",
2012
+ preserveAspectRatio: "xMidYMid meet",
2013
+ ...e
2014
+ }, f.createElement("path", {
2015
+ d: "M77.37 19.32C46.83 3.21 19.03 14.69 9.01 30.38c-3.28 5.13-5.6 14.46-5.51 21.86c.18 15.23 8.61 32.2 26.8 49.32c22.38 21.06 45.22 19.22 52.48 17.45c9.14-2.23 15.27-4.13 14.33-12.65c-.12-1.12-1.08-3.15-2.53-4.04c-4.65-2.82-14.36-4.29-18.93-11.08c-6.64-9.89 1.62-10.39 9.53-6.16c8.47 4.53 13.31 7.36 21.81 6.58c6.23-.57 15.29-4.33 16.52-14.84c1.1-9.51-12.78-39.9-46.14-57.5zM89.84 71c-2.34 3.56-8.12 2.34-11.91-1.02c-3.79-3.36-4.28-8.96-1.82-11.16c2.5-2.23 7.2-1.72 10.99 1.64c3.78 3.37 4.57 7.74 2.74 10.54z",
2016
+ fill: "#ac5810"
2017
+ }), f.createElement("path", {
2018
+ d: "M78.71 15.69C48.17-.42 20.3 12.04 10.28 27.73C.25 43.43 4.61 72.5 31.63 97.93c22.38 21.06 45.22 19.22 52.48 17.45c9.14-2.23 15.59-6.58 11.57-12.13c-2.77-3.83-12.7-6.72-18.69-15.64c-6.64-9.89 1.62-10.39 9.53-6.16c8.47 4.53 13.31 7.36 21.81 6.58c6.23-.57 15.65-5.39 15.37-15.13c-.29-9.57-11.63-39.6-44.99-57.21zm14.06 55.03c-2.85 3.08-8.92 2.24-13.56-1.86c-4.63-4.11-6.08-9.93-3.23-13c2.85-3.08 8.92-2.24 13.56 1.86c4.64 4.1 6.08 9.93 3.23 13z",
2019
+ fill: "#f2a259"
2020
+ }), f.createElement("path", {
2021
+ d: "M47.62 84.66c1.15-2.94 9.33-6.16 16.85-.81c2.11 1.5 4.75 5.32 4.48 10.12c-.88 15.68-26.61 4.22-21.33-9.31z",
2022
+ fill: "#eee"
2023
+ }), f.createElement("path", {
2024
+ d: "M23.73 58.07c2.63-4.2 9.02-4.68 14.61-1.05c4.98 3.23 9.14 11.18 3 16.38c-3.29 2.79-8.98 1.06-12.49-1.63c-4.26-3.25-7.95-9.18-5.12-13.7z",
2025
+ fill: "#2686c6"
2026
+ }), f.createElement("path", {
2027
+ d: "M57.67 21.42c.81-3.33 6.46-3.9 10.46-2.41c6.91 2.58 10.04 9.42 7.49 13.23c-3.73 5.57-11.86 3.66-14.94.47c-5.23-5.4-3.69-8.5-3.01-11.29z",
2028
+ fill: "#ffee58"
2029
+ }), f.createElement("path", {
2030
+ d: "M97.71 37.72c5.54 2.52 6.26 6.51 5.2 9.42c-.66 1.8-2.01 4.27-4.77 4.49c-4.67.38-5.32-3.48-8.65-4.54c-2.8-.89-3.94-4.72-2.84-7.29c1.02-2.37 4-5.3 11.06-2.08z",
2031
+ fill: "#7cb342"
2032
+ }), f.createElement("path", {
2033
+ d: "M66.97 96.96c-1.38 1.25-6.17 2.79-12.25-1.01c-2.06-1.29-4.03-3.16-5.14-5.96c-.87-2.2-.68-4.32-.29-5.26c1.12-2.71 2.83-3.21 2.83-3.21c-1.72-.12-4.97 2.16-5.51 5.15c-.17.94-1.38 6.82 6.41 12.15c6.71 4.6 16.63 4.17 15.98-5.09c-.3 1.14-1.15 2.44-2.03 3.23z",
2034
+ fill: "#b0b0b0"
2035
+ }), f.createElement("path", {
2036
+ d: "M44.26 65.72c-.19 3.57-4.37 5.45-6.7 5.46c-6.59.01-12.51-4.13-12.92-11.5c-.07-1.32.58-3.23.58-3.23c-.87.37-2.1 2.25-2.36 3.31c-1.54 6.36 4.87 13.77 11.62 15.27c3.42.76 7.73-.41 9.3-3.47c1.12-2.18.9-4.05.48-5.84z",
2037
+ fill: "#01579b"
2038
+ }), f.createElement("path", {
2039
+ d: "M67.32 32.72c-4.48-.51-6.96-3.44-7.61-4.11c-1.78-1.86-2.88-3.67-2.24-6.35c.2-.86.69-1.96 1.29-2.58c-.73.24-1.91 1.81-2.28 2.66c-.38.85-1.76 4.04 1.2 7.97c1.83 2.44 5.02 5.19 9.74 5.85c3.35.47 5.75-.73 7.75-2.68c1.36-1.33 1.96-4.33 1.15-5.88c.13 1.13-1.94 5.93-9 5.12z",
2040
+ fill: "#df7f14"
2041
+ }), f.createElement("path", {
2042
+ d: "M104.17 44.85c-.41-1.51-1.58-3.08-1.7-3.16c.51.98 1.52 3.92-.6 6.78c-1.07 1.44-4.29 3.21-8.09.13c-1.12-.91-2.02-1.81-4.04-2.55c-5.13-1.89-2.89-7.11-1.11-8.73c-1.4.73-2.67 2.04-3.2 4.04c-.74 2.79 1.09 5.71 3.87 7.11c3.16 1.59 4.18 4.66 8.51 4.66c.22 0 .45-.01.7-.03c2.92-.25 4.15-1.38 5.04-2.76c1.09-1.72 1.12-3.67.62-5.49z",
2043
+ fill: "#558b2f"
2044
+ }), f.createElement("path", {
2045
+ d: "M25.82 25.79c2.28-2.25 6.25-4.63 12.06-1.6c3.5 1.82 7.57 3.96 5.73 11.36c-1.14 4.59-7.82 7.02-13.4 1.91c-2.21-2.02-10.61-5.53-4.39-11.67z",
2046
+ fill: "#f44336"
2047
+ }), f.createElement("path", {
2048
+ d: "M44.94 34.56c.07-1.75-.83-3.88-1.14-4.6c.05 1.05.96 3.7-3.21 7.21c-1.45 1.22-4.08 2.15-6.95 1.02c-1.47-.58-3.58-3.01-5.09-3.62c-5.61-2.26-3.19-8.27-2.4-9.09c-1.27.89-2.35 2.31-2.75 4.38c-.52 2.71-.04 5.27 3.68 8.2c10.56 8.33 13.8 3.31 14.95 2.03c1.45-1.56 2.83-3.6 2.91-5.53z",
2049
+ fill: "#c62828"
2050
+ }), f.createElement("path", {
2051
+ d: "M65.74 19.36c-1.47-.69-5.67-.49-6.48 3.01c-.49 2.1 1.05 4.23 2.5 3.98c1.65-.28.77-2.85 1.76-3.58c1.51-1.1 4.28-2.44 2.22-3.41z",
2052
+ fill: "#ffffff"
2053
+ }), f.createElement("path", {
2054
+ d: "M34.76 24.46c-1.45-.96-6.08-.97-7.47 2.58c-.84 2.13.47 4.6 2.04 4.56c1.79-.04.93-2.15 2.42-3.49c1.88-1.69 5.04-2.31 3.01-3.65z",
2055
+ fill: "#ffffff"
2056
+ }), f.createElement("path", {
2057
+ d: "M34.07 56.5c-1.37-.87-5.43-1.21-7.11 1.97c-1.23 2.34.46 4.92 1.93 4.85c1.67-.08 1.11-2.74 2.18-3.34c1.63-.91 4.92-2.26 3-3.48z",
2058
+ fill: "#ffffff"
2059
+ }), f.createElement("path", {
2060
+ d: "M57.4 83.13c-1.47-.69-5.67-.49-6.48 3.01c-.49 2.1 1.05 4.23 2.5 3.98c1.65-.28.77-2.85 1.76-3.58c1.5-1.1 4.27-2.44 2.22-3.41z",
2061
+ fill: "#ffffff"
2062
+ }), f.createElement("path", {
2063
+ d: "M95.08 38.05c-1.32-.94-5.49-1.49-6.91 1.81c-.85 1.98.28 4.35 1.75 4.36c1.67.01 1.26-2.67 2.37-3.21c1.67-.81 4.64-1.64 2.79-2.96z",
2064
+ fill: "#ffffff"
2065
+ })), Y = (e, r, i) => {
2066
+ const t = r[e];
2067
+ if (typeof t != "string" || !t.trim()) return;
2068
+ const n = i(e), o = Number(n);
2069
+ return Number.isFinite(o) ? o : void 0;
2070
+ }, Kr = (e, r) => {
2071
+ if (e !== void 0) return Math.round(typeof r == "number" && r === 254 ? e / 254 * 100 : e);
2072
+ }, ne = (e, r, i, t) => {
2073
+ const n = Y(e, r, i);
2074
+ return Kr(n, t);
2075
+ };
2076
+ function Rt(e, r, i) {
2077
+ const t = Y("colorLightTemperatureOid", r, i) ?? 2e3;
2078
+ e.kelvin = t;
2079
+ }
2080
+ function at(e, r, i) {
2081
+ var _a;
2082
+ const t = ne("colorLightBrightnessOid", r, i, (_a = r.colorLightBrightnessOidObject) == null ? void 0 : _a.maxValue);
2083
+ t !== void 0 && (e.value = t);
2084
+ }
2085
+ function J(e, r, i, t, n) {
2086
+ var _a, _b, _c;
2087
+ switch (r) {
2088
+ case "cct": {
2089
+ if (n === 1) Rt(e, t, i);
2090
+ else if (n === 2) {
2091
+ const o = ne("colorLightBrightnessOid", t, i, (_a = t.colorLightBrightnessOidObject) == null ? void 0 : _a.maxValue);
2092
+ o !== void 0 && (e.value = o);
2093
+ }
2094
+ break;
2095
+ }
2096
+ case "rgb":
2097
+ case "rgbcct": {
2098
+ if (!t.colorLightRgbHexOid) break;
2099
+ const o = i("colorLightRgbHexOid"), l = typeof o == "string" && o.trim().length > 0 ? o : "#ffffff";
2100
+ e.hexString = l;
2101
+ break;
2102
+ }
2103
+ case "r/g/b":
2104
+ case "r/g/b/cct": {
2105
+ if (t.colorLightRedOid && t.colorLightGreenOid && t.colorLightBlueOid) {
2106
+ const o = Y("colorLightRedOid", t, i), l = Y("colorLightGreenOid", t, i), c = Y("colorLightBlueOid", t, i);
2107
+ e.red = o ?? 0, e.green = l ?? 0, e.blue = c ?? 0;
2108
+ }
2109
+ break;
2110
+ }
2111
+ case "h/s/v":
2112
+ case "h/s/v/cct": {
2113
+ if (t.colorLightHueOid && t.colorLightSaturationOid && t.colorLightBrightnessOid) {
2114
+ const o = Y("colorLightHueOid", t, i), l = ne("colorLightSaturationOid", t, i, (_b = t.colorLightSaturationOidObject) == null ? void 0 : _b.maxValue), c = ne("colorLightBrightnessOid", t, i, (_c = t.colorLightBrightnessOidObject) == null ? void 0 : _c.maxValue);
2115
+ o !== void 0 && (e.hue = o), l !== void 0 && (e.saturation = l), c !== void 0 && (e.value = c);
2116
+ }
2117
+ break;
2118
+ }
2119
+ }
2120
+ }
2121
+ const Yr = (e, r) => !e || !r ? true : !!r[e], qr = (e) => e === "kelvin" ? 2e3 : e === "hexString" ? "#ffffff" : 0, Se = (e, r) => {
2122
+ const i = r.value;
2123
+ r.hexString = e.hexString, r.value = i;
2124
+ }, Qr = (e) => g.jsx(dt, {
2125
+ component: Xr,
2126
+ viewBox: "0 0 128 128",
2127
+ ...e
2128
+ }), Zr = (e) => g.jsxs(dt, {
2129
+ viewBox: "0 0 512 512",
2130
+ ...e,
2131
+ children: [
2132
+ g.jsxs("defs", {
2133
+ children: [
2134
+ g.jsxs("linearGradient", {
2135
+ id: "cctGradient",
2136
+ x1: "0",
2137
+ y1: "0",
2138
+ x2: "0",
2139
+ y2: "1",
2140
+ children: [
2141
+ g.jsx("stop", {
2142
+ offset: "0%",
2143
+ stopColor: "#1E90FF"
2144
+ }),
2145
+ g.jsx("stop", {
2146
+ offset: "100%",
2147
+ stopColor: "#FF8C00"
2148
+ })
2149
+ ]
2150
+ }),
2151
+ g.jsxs("filter", {
2152
+ id: "insetShadow",
2153
+ x: "-50%",
2154
+ y: "-50%",
2155
+ width: "200%",
2156
+ height: "200%",
2157
+ children: [
2158
+ g.jsx("feOffset", {
2159
+ dx: "0",
2160
+ dy: "2"
2161
+ }),
2162
+ g.jsx("feGaussianBlur", {
2163
+ stdDeviation: "4",
2164
+ result: "offset-blur"
2165
+ }),
2166
+ g.jsx("feComposite", {
2167
+ operator: "out",
2168
+ in: "SourceGraphic",
2169
+ in2: "offset-blur",
2170
+ result: "inverse"
2171
+ }),
2172
+ g.jsx("feFlood", {
2173
+ floodColor: "#FFF176",
2174
+ floodOpacity: "0.4"
2175
+ }),
2176
+ g.jsx("feComposite", {
2177
+ in2: "inverse",
2178
+ operator: "in",
2179
+ result: "shadow"
2180
+ }),
2181
+ g.jsx("feComposite", {
2182
+ in: "shadow",
2183
+ in2: "SourceGraphic",
2184
+ operator: "over"
2185
+ })
2186
+ ]
2187
+ })
2188
+ ]
2189
+ }),
2190
+ g.jsx("circle", {
2191
+ cx: "256",
2192
+ cy: "256",
2193
+ r: "252",
2194
+ fill: "#FFF176"
2195
+ }),
2196
+ g.jsx("circle", {
2197
+ cx: "256",
2198
+ cy: "256",
2199
+ r: "240",
2200
+ fill: "url(#cctGradient)",
2201
+ filter: "url(#insetShadow)"
2202
+ }),
2203
+ g.jsx("g", {
2204
+ transform: "translate(256 280) scale(1.2) translate(-256 -256)",
2205
+ children: g.jsx("path", {
2206
+ d: "M192 200c0-35 29-64 64-64s64 29 64 64c0 23.1-12.2 43.5-30.6 55.3V288c0 8.8-7.2 16-16 16h-35c-8.8 0-16-7.2-16-16v-32.7C204.2 243.5 192 223.1 192 200zm56 136h16c4.4 0 8 3.6 8 8v16h-32v-16c0-4.4 3.6-8 8-8z",
2207
+ fill: "#FFF176",
2208
+ stroke: "#000000",
2209
+ strokeWidth: "4"
2210
+ })
2211
+ })
2212
+ ]
2213
+ });
2214
+ function Jr() {
2215
+ var _a;
2216
+ const [e, r] = f.useState(false), i = f.useContext(Me), { widget: t, widget: { data: n }, values: o, getPropertyValue: l } = i, { data: c } = st("oid"), s = Yt("oid"), u = f.useRef(null), h = Gt(u.current, (n.colorLightSliderWidth || 1) * 28), a = f.useRef(null), d = f.useRef(null), v = f.useRef(e), _ = f.useRef(t.data);
2217
+ _.current = t.data;
2218
+ const b = f.useRef(l);
2219
+ b.current = l;
2220
+ const [x, L] = f.useState(false), m = f.useRef(false), k = f.useRef(false), w = n.colorLightType === "rgbcct" || n.colorLightType === "r/g/b/cct" || n.colorLightType === "h/s/v/cct", p = e && w ? "cct" : n.colorLightType, { value: $, updateValue: U } = j("colorLightSwitchOid"), { value: Q, hasBackendChange: He, updateValue: de } = j("colorLightTemperatureOid"), { updateValue: ee, hasBackendChange: te } = j("colorLightBrightnessOid"), { updateValue: fe, hasBackendChange: We } = j("colorLightRgbHexOid"), { updateValue: ge, hasBackendChange: ze } = j("colorLightRedOid"), { updateValue: ve, hasBackendChange: Ne } = j("colorLightGreenOid"), { updateValue: me, hasBackendChange: De } = j("colorLightBlueOid"), { updateValue: be, hasBackendChange: Fe } = j("colorLightHueOid"), { updateValue: pe, hasBackendChange: Ve } = j("colorLightSaturationOid"), Tt = ((_a = t.data.colorLightSwitchOidObject) == null ? void 0 : _a.type) === "boolean", Ge = (C, O) => {
2221
+ J(C, p, l, t.data, O);
2222
+ }, $e = f.useMemo(() => (C, O) => {
2223
+ const _e = (O == null ? void 0 : O.maxValue) === 254, re = Math.round(C);
2224
+ return _e ? Math.round(C / 100 * 254) : re;
2225
+ }, []), Ue = f.useMemo(() => ({
2226
+ cct: [
2227
+ {
2228
+ colorProp: "kelvin",
2229
+ oidField: "colorLightTemperatureOid",
2230
+ setter: de,
2231
+ cctComponent: 1
2232
+ },
2233
+ {
2234
+ colorProp: "value",
2235
+ oidField: "colorLightBrightnessOid",
2236
+ setter: ee,
2237
+ normalize: true,
2238
+ cctComponent: 2
2239
+ }
2240
+ ],
2241
+ rgb: [
2242
+ {
2243
+ colorProp: "hexString",
2244
+ oidField: "colorLightRgbHexOid",
2245
+ setter: fe
2246
+ }
2247
+ ],
2248
+ rgbcct: [
2249
+ {
2250
+ colorProp: "hexString",
2251
+ oidField: "colorLightRgbHexOid",
2252
+ setter: fe
2253
+ }
2254
+ ],
2255
+ "r/g/b": [
2256
+ {
2257
+ colorProp: "red",
2258
+ oidField: "colorLightRedOid",
2259
+ setter: ge
2260
+ },
2261
+ {
2262
+ colorProp: "green",
2263
+ oidField: "colorLightGreenOid",
2264
+ setter: ve
2265
+ },
2266
+ {
2267
+ colorProp: "blue",
2268
+ oidField: "colorLightBlueOid",
2269
+ setter: me
2270
+ }
2271
+ ],
2272
+ "r/g/b/cct": [
2273
+ {
2274
+ colorProp: "red",
2275
+ oidField: "colorLightRedOid",
2276
+ setter: ge
2277
+ },
2278
+ {
2279
+ colorProp: "green",
2280
+ oidField: "colorLightGreenOid",
2281
+ setter: ve
2282
+ },
2283
+ {
2284
+ colorProp: "blue",
2285
+ oidField: "colorLightBlueOid",
2286
+ setter: me
2287
+ }
2288
+ ],
2289
+ "h/s/v": [
2290
+ {
2291
+ colorProp: "hue",
2292
+ oidField: "colorLightHueOid",
2293
+ setter: be,
2294
+ changeKey: "h"
2295
+ },
2296
+ {
2297
+ colorProp: "saturation",
2298
+ oidField: "colorLightSaturationOid",
2299
+ setter: pe,
2300
+ normalize: true,
2301
+ changeKey: "s"
2302
+ },
2303
+ {
2304
+ colorProp: "value",
2305
+ oidField: "colorLightBrightnessOid",
2306
+ setter: ee,
2307
+ normalize: true,
2308
+ changeKey: "v"
2309
+ }
2310
+ ],
2311
+ "h/s/v/cct": [
2312
+ {
2313
+ colorProp: "hue",
2314
+ oidField: "colorLightHueOid",
2315
+ setter: be,
2316
+ changeKey: "h"
2317
+ },
2318
+ {
2319
+ colorProp: "saturation",
2320
+ oidField: "colorLightSaturationOid",
2321
+ setter: pe,
2322
+ normalize: true,
2323
+ changeKey: "s"
2324
+ },
2325
+ {
2326
+ colorProp: "value",
2327
+ oidField: "colorLightBrightnessOid",
2328
+ setter: ee,
2329
+ normalize: true,
2330
+ changeKey: "v"
2331
+ }
2332
+ ]
2333
+ }), [
2334
+ de,
2335
+ ee,
2336
+ fe,
2337
+ ge,
2338
+ ve,
2339
+ me,
2340
+ be,
2341
+ pe
2342
+ ]), Xe = f.useMemo(() => (C, O, _e) => {
2343
+ if (!(!p || k.current || m.current)) {
2344
+ k.current = true;
2345
+ try {
2346
+ const re = Ue[p];
2347
+ if (!re) return;
2348
+ re.forEach((ye) => {
2349
+ const { colorProp: Ye, oidField: Pt, setter: Bt, normalize: Ht, cctComponent: qe, changeKey: Wt } = ye;
2350
+ if (qe !== void 0 && O !== qe || !Yr(Wt, _e)) return;
2351
+ const zt = `${Pt}Object`, Qe = t.data[zt];
2352
+ if (!Qe) return;
2353
+ let T = C[Ye];
2354
+ Ht && typeof T == "number" ? T = $e(T, Qe) : typeof T == "number" && (T = Math.round(T)), T == null && (T = qr(Ye)), Bt(T);
2355
+ }), O === 1 && L((ye) => !ye);
2356
+ } finally {
2357
+ Promise.resolve().then(() => {
2358
+ k.current = false;
2359
+ });
2360
+ }
2361
+ }
2362
+ }, [
2363
+ p,
2364
+ Ue,
2365
+ t,
2366
+ $e,
2367
+ k
2368
+ ]), jt = f.useMemo(() => Mt(h, n.colorLightUIComponent, n.colorLightSliderWidth, p), [
2369
+ h,
2370
+ n.colorLightUIComponent,
2371
+ n.colorLightSliderWidth,
2372
+ p
2373
+ ]), Ke = f.useMemo(() => ({
2374
+ dimensions: h,
2375
+ colorLightGamut: n.colorLightGamut,
2376
+ colorWheelLightness: n.colorWheelLightness,
2377
+ colorLightUIComponent: n.colorLightUIComponent,
2378
+ colorLightSliderWidth: n.colorLightSliderWidth,
2379
+ colorLightBorderWidth: n.colorLightBorderWidth,
2380
+ colorLightBorderColor: n.colorLightBorderColor,
2381
+ colorLightType: p,
2382
+ colorLightCtMin: n.colorLightCtMin,
2383
+ colorLightCtMax: n.colorLightCtMax
2384
+ }), [
2385
+ h,
2386
+ n.colorLightGamut,
2387
+ n.colorWheelLightness,
2388
+ n.colorLightUIComponent,
2389
+ n.colorLightSliderWidth,
2390
+ n.colorLightBorderWidth,
2391
+ n.colorLightBorderColor,
2392
+ n.colorLightCtMin,
2393
+ n.colorLightCtMax,
2394
+ p
2395
+ ]);
2396
+ return f.useEffect(() => {
2397
+ if (p !== "cct" || !a.current || !d.current) return;
2398
+ const C = a.current.color, O = d.current.color;
2399
+ if (x) {
2400
+ m.current = true;
2401
+ try {
2402
+ Se(C, O);
2403
+ } finally {
2404
+ m.current = false;
2405
+ }
2406
+ }
2407
+ }, [
2408
+ p,
2409
+ x
2410
+ ]), f.useEffect(() => {
2411
+ if (p !== "cct" || !a.current || !d.current || !He) return;
2412
+ const C = a.current.color, O = d.current.color;
2413
+ if (Q != null) {
2414
+ m.current = true;
2415
+ try {
2416
+ C.kelvin = Number(Q), Se(C, O);
2417
+ } finally {
2418
+ m.current = false;
2419
+ }
2420
+ }
2421
+ }, [
2422
+ p,
2423
+ He,
2424
+ Q
2425
+ ]), f.useEffect(() => {
2426
+ if (!(!e || p !== "cct") && !(!te || !d.current)) {
2427
+ m.current = true;
2428
+ try {
2429
+ at(d.current.color, _.current, b.current);
2430
+ } finally {
2431
+ m.current = false;
2432
+ }
2433
+ }
2434
+ }, [
2435
+ e,
2436
+ p,
2437
+ te
2438
+ ]), f.useEffect(() => {
2439
+ if (!(e || ![
2440
+ "rgb",
2441
+ "rgbcct"
2442
+ ].includes(p || "")) && !(!We || !a.current)) {
2443
+ m.current = true;
2444
+ try {
2445
+ J(a.current.color, p, l, t.data);
2446
+ } finally {
2447
+ m.current = false;
2448
+ }
2449
+ }
2450
+ }, [
2451
+ e,
2452
+ p,
2453
+ We,
2454
+ l,
2455
+ t.data
2456
+ ]), f.useEffect(() => {
2457
+ if (!(e || ![
2458
+ "r/g/b",
2459
+ "r/g/b/cct"
2460
+ ].includes(p || "")) && !(!ze && !Ne && !De || !a.current)) {
2461
+ m.current = true;
2462
+ try {
2463
+ J(a.current.color, p, l, t.data);
2464
+ } finally {
2465
+ m.current = false;
2466
+ }
2467
+ }
2468
+ }, [
2469
+ e,
2470
+ p,
2471
+ ze,
2472
+ Ne,
2473
+ De,
2474
+ l,
2475
+ t.data
2476
+ ]), f.useEffect(() => {
2477
+ if (!(e || ![
2478
+ "h/s/v",
2479
+ "h/s/v/cct"
2480
+ ].includes(p || "")) && !(!Fe && !Ve && !te || !a.current)) {
2481
+ m.current = true;
2482
+ try {
2483
+ J(a.current.color, p, l, t.data);
2484
+ } finally {
2485
+ m.current = false;
2486
+ }
2487
+ }
2488
+ }, [
2489
+ e,
2490
+ p,
2491
+ Fe,
2492
+ Ve,
2493
+ te,
2494
+ l,
2495
+ t.data
2496
+ ]), f.useEffect(() => {
2497
+ if (!e || !w || !a.current || !d.current) return;
2498
+ const C = a.current.color, O = d.current.color;
2499
+ m.current = true;
2500
+ try {
2501
+ Rt(C, _.current, b.current), v.current === false && Number(Q) !== Number(C.kelvin) && de(Number(C.kelvin)), Se(C, O);
2502
+ } finally {
2503
+ m.current = false;
2504
+ }
2505
+ }, [
2506
+ e,
2507
+ w
2508
+ ]), f.useEffect(() => {
2509
+ !v.current || e || !w || a.current && at(a.current.color, _.current, b.current);
2510
+ }, [
2511
+ e,
2512
+ w
2513
+ ]), f.useEffect(() => {
2514
+ if (!(v.current !== true || e || !w || !a.current)) {
2515
+ m.current = true;
2516
+ try {
2517
+ J(a.current.color, p, b.current, _.current);
2518
+ } finally {
2519
+ m.current = false;
2520
+ }
2521
+ }
2522
+ }, [
2523
+ e,
2524
+ w,
2525
+ p
2526
+ ]), f.useEffect(() => {
2527
+ v.current = e;
2528
+ }, [
2529
+ e
2530
+ ]), g.jsxs(ht, {
2531
+ isValidType: Tt,
2532
+ data: c,
2533
+ oidValue: s,
2534
+ children: [
2535
+ g.jsx(ut, {
2536
+ data: c,
2537
+ widget: t
2538
+ }),
2539
+ n.colorLightType !== "none" ? g.jsxs(N, {
2540
+ sx: {
2541
+ minWidth: 0,
2542
+ height: "100%",
2543
+ display: "flex",
2544
+ flexShrink: 0,
2545
+ flexDirection: "column",
2546
+ justifyContent: "flex-start",
2547
+ alignItems: "center"
2548
+ },
2549
+ children: [
2550
+ g.jsx(xe, {
2551
+ onClick: () => {
2552
+ U(!$);
2553
+ },
2554
+ children: g.jsx(Ur, {
2555
+ sx: {
2556
+ color: $ ? "red" : "green",
2557
+ width: "26px",
2558
+ height: "26px"
2559
+ }
2560
+ })
2561
+ }),
2562
+ w && g.jsxs(N, {
2563
+ sx: {
2564
+ display: "inline-block"
2565
+ },
2566
+ children: [
2567
+ g.jsx(Ze, {
2568
+ orientation: "horizontal",
2569
+ flexItem: true,
2570
+ variant: "fullWidth"
2571
+ }),
2572
+ g.jsx(xe, {
2573
+ onClick: () => r(false),
2574
+ children: g.jsx(Qr, {
2575
+ sx: {
2576
+ width: "24px",
2577
+ height: "24px"
2578
+ }
2579
+ })
2580
+ })
2581
+ ]
2582
+ }),
2583
+ w && g.jsx(N, {
2584
+ sx: {
2585
+ display: "block"
2586
+ },
2587
+ children: g.jsx(xe, {
2588
+ onClick: () => r(true),
2589
+ children: g.jsx(Zr, {
2590
+ sx: {
2591
+ width: "24px",
2592
+ height: "24px"
2593
+ }
2594
+ })
2595
+ })
2596
+ })
2597
+ ]
2598
+ }) : null,
2599
+ g.jsx(Ze, {
2600
+ orientation: "vertical",
2601
+ flexItem: true,
2602
+ variant: "middle"
2603
+ }),
2604
+ g.jsx(N, {
2605
+ ref: u,
2606
+ sx: {
2607
+ minWidth: 0,
2608
+ width: "100%",
2609
+ height: "100%",
2610
+ display: "flex",
2611
+ justifyContent: "center",
2612
+ alignItems: "center",
2613
+ p: Number(n.colorLightPadding) || 0
2614
+ },
2615
+ children: Object.keys(o).length !== 0 && h.width !== void 0 && n.colorLightType !== "none" && g.jsxs(g.Fragment, {
2616
+ children: [
2617
+ g.jsx(Ae, {
2618
+ cctComponentNumber: 1,
2619
+ ref: a,
2620
+ onColorInit: Ge,
2621
+ onInputChange: (C, O) => Xe(C, 1, O),
2622
+ ...Ke
2623
+ }),
2624
+ p === "cct" && g.jsx(N, {
2625
+ sx: {
2626
+ ml: `${jt}px`
2627
+ },
2628
+ children: g.jsx(Ae, {
2629
+ cctComponentNumber: 2,
2630
+ onColorInit: Ge,
2631
+ onInputChange: (C, O) => Xe(C, 2, O),
2632
+ ref: d,
2633
+ ...Ke
2634
+ })
2635
+ })
2636
+ ]
2637
+ })
2638
+ })
2639
+ ]
2640
+ });
2641
+ }
2642
+ const ei = er(Jr);
2643
+ It = class extends $t {
2644
+ static getWidgetInfo() {
2645
+ return {
2646
+ id: "tplLight2CollectionWidget",
2647
+ visSet: "vis-2-widgets-collection",
2648
+ visSetLabel: "widgets_collection",
2649
+ visName: "Light2CollectionWidget",
2650
+ visWidgetLabel: "light2_collection_widget",
2651
+ visOrder: 11,
2652
+ visAttrs: [
2653
+ {
2654
+ name: "common",
2655
+ fields: [
2656
+ ...Je({
2657
+ groupName: "",
2658
+ allFields: true
2659
+ })
2660
+ ]
2661
+ },
2662
+ {
2663
+ name: "light",
2664
+ label: "group_light",
2665
+ fields: [
2666
+ ...Ut(),
2667
+ ...Qt()
2668
+ ]
2669
+ },
2670
+ {
2671
+ name: "values",
2672
+ label: "values",
2673
+ indexFrom: 1,
2674
+ indexTo: "values_count",
2675
+ fields: [
2676
+ ...Je({
2677
+ groupName: "",
2678
+ allFields: false
2679
+ })
2680
+ ],
2681
+ hidden: (r) => !r.colorLightButton
2682
+ }
2683
+ ],
2684
+ visDefaultStyle: {
2685
+ width: "100%",
2686
+ height: "100px",
2687
+ position: "relative"
2688
+ },
2689
+ visPrev: "widgets/vis-2-widgets-collection/img/prev-collection-light.png"
2690
+ };
2691
+ }
2692
+ getWidgetInfo() {
2693
+ return It.getWidgetInfo();
2694
+ }
2695
+ onRxDataChanged() {
2696
+ }
2697
+ onRxStyleChanged() {
2698
+ }
2699
+ onStateUpdated(r, i) {
2700
+ }
2701
+ componentDidMount() {
2702
+ super.componentDidMount();
2703
+ }
2704
+ renderWidgetBody(r) {
2705
+ super.renderWidgetBody(r);
2706
+ const i = !(r.widget.data.noCard || r.widget.usedInWidget);
2707
+ this.wrappedCollectionContent = i;
2708
+ const t = {
2709
+ id: r.id,
2710
+ refService: r.refService,
2711
+ style: r.style,
2712
+ widget: {
2713
+ data: this.state.rxData,
2714
+ style: this.state.rxStyle
2715
+ },
2716
+ setValue: this.setValue,
2717
+ setState: this.setState.bind(this),
2718
+ values: this.state.values,
2719
+ isSignalVisible: this.isSignalVisible.bind(this),
2720
+ getPropertyValue: this.getPropertyValue.bind(this),
2721
+ mode: this.props.context.themeType,
2722
+ socket: this.props.context.socket,
2723
+ theme: this.props.context.theme,
2724
+ wrappedContent: i
2725
+ };
2726
+ return Xt(this.wrapContent(g.jsx(ei, {})), t);
2727
+ }
2728
+ };
2729
+ });
2730
+ export {
2731
+ __tla,
2732
+ It as default
2733
+ };