@crmchatreactcomponent/quick-messages 0.0.1

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.
@@ -0,0 +1,3834 @@
1
+ import { jsx as p, jsxs as P, Fragment as Qt } from "react/jsx-runtime";
2
+ import * as j from "react";
3
+ import de, { useContext as lt, useMemo as le, useState as U, useEffect as oe, createContext as Jt, useRef as en, useDebugValue as hn, createElement as Lo } from "react";
4
+ import { ConfigProvider as Go, theme as qo, Popover as Yn, Space as F, message as Bo, Modal as Xn, Table as Be, Empty as Zn, Button as Q, Flex as Qe, Input as Ft, Popconfirm as Ho, Menu as Vo, Alert as Wo, ColorPicker as Uo } from "antd";
5
+ import Ko, { EmojiStyle as Yo, Theme as pn } from "emoji-picker-react";
6
+ import { useTranslation as Ae, I18nextProvider as Xo } from "react-i18next";
7
+ import Zo from "i18next";
8
+ function Qn() {
9
+ const { theme: e } = lt(Go.ConfigContext);
10
+ return le(() => (e == null ? void 0 : e.algorithm) === qo.darkAlgorithm, [e]);
11
+ }
12
+ const Qo = Yo.FACEBOOK, cc = ({
13
+ children: e,
14
+ disabled: t = !1,
15
+ onSelect: n = () => {
16
+ },
17
+ onOpenChange: r = () => {
18
+ }
19
+ }) => {
20
+ const [o, a] = U(!1), i = Qn();
21
+ oe(() => {
22
+ r(o);
23
+ }, [o]);
24
+ function s(l) {
25
+ n(l.emoji), a(!1);
26
+ }
27
+ function c(l) {
28
+ t || a(l);
29
+ }
30
+ return /* @__PURE__ */ p(
31
+ Yn,
32
+ {
33
+ title: "",
34
+ open: o,
35
+ onOpenChange: c,
36
+ overlayInnerStyle: {
37
+ backgroundColor: "transparent",
38
+ padding: 0
39
+ },
40
+ trigger: ["click"],
41
+ content: /* @__PURE__ */ p(F, { direction: "vertical", size: 12, children: /* @__PURE__ */ p(
42
+ Ko,
43
+ {
44
+ skinTonesDisabled: !0,
45
+ onEmojiClick: s,
46
+ emojiStyle: Qo,
47
+ lazyLoadEmojis: !1,
48
+ theme: i ? pn.DARK : pn.LIGHT
49
+ }
50
+ ) }),
51
+ destroyTooltipOnHide: !0,
52
+ children: e
53
+ }
54
+ );
55
+ };
56
+ function Jo() {
57
+ return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
58
+ const t = Math.random() * 16 | 0;
59
+ return (e == "x" ? t : t & 3 | 8).toString(16);
60
+ });
61
+ }
62
+ function Jn(e, t) {
63
+ return e.length > t ? e.substring(0, t) + "…" : e;
64
+ }
65
+ const er = Jt(null);
66
+ function lc(e) {
67
+ const [t, n] = Bo.useMessage(), [r, o] = Xn.useModal();
68
+ return /* @__PURE__ */ P(
69
+ er.Provider,
70
+ {
71
+ value: {
72
+ messageApi: t,
73
+ modalApi: r
74
+ },
75
+ children: [
76
+ n,
77
+ o,
78
+ e.children
79
+ ]
80
+ }
81
+ );
82
+ }
83
+ var z = function() {
84
+ return z = Object.assign || function(t) {
85
+ for (var n, r = 1, o = arguments.length; r < o; r++) {
86
+ n = arguments[r];
87
+ for (var a in n)
88
+ Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
89
+ }
90
+ return t;
91
+ }, z.apply(this, arguments);
92
+ };
93
+ function xe(e, t, n) {
94
+ if (n || arguments.length === 2)
95
+ for (var r = 0, o = t.length, a; r < o; r++)
96
+ (a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
97
+ return e.concat(a || Array.prototype.slice.call(t));
98
+ }
99
+ function ea(e) {
100
+ var t = /* @__PURE__ */ Object.create(null);
101
+ return function(n) {
102
+ return t[n] === void 0 && (t[n] = e(n)), t[n];
103
+ };
104
+ }
105
+ var ta = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, na = /* @__PURE__ */ ea(
106
+ function(e) {
107
+ return ta.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
108
+ }
109
+ /* Z+1 */
110
+ );
111
+ function tr(e) {
112
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
113
+ }
114
+ var O = "-ms-", Fe = "-moz-", C = "-webkit-", nr = "comm", ut = "rule", tn = "decl", ra = "@import", rr = "@keyframes", oa = "@layer", or = Math.abs, nn = String.fromCharCode, zt = Object.assign;
115
+ function aa(e, t) {
116
+ return I(e, 0) ^ 45 ? (((t << 2 ^ I(e, 0)) << 2 ^ I(e, 1)) << 2 ^ I(e, 2)) << 2 ^ I(e, 3) : 0;
117
+ }
118
+ function ar(e) {
119
+ return e.trim();
120
+ }
121
+ function Z(e, t) {
122
+ return (e = t.exec(e)) ? e[0] : e;
123
+ }
124
+ function y(e, t, n) {
125
+ return e.replace(t, n);
126
+ }
127
+ function Je(e, t, n) {
128
+ return e.indexOf(t, n);
129
+ }
130
+ function I(e, t) {
131
+ return e.charCodeAt(t) | 0;
132
+ }
133
+ function Ce(e, t, n) {
134
+ return e.slice(t, n);
135
+ }
136
+ function W(e) {
137
+ return e.length;
138
+ }
139
+ function ir(e) {
140
+ return e.length;
141
+ }
142
+ function $e(e, t) {
143
+ return t.push(e), e;
144
+ }
145
+ function ia(e, t) {
146
+ return e.map(t).join("");
147
+ }
148
+ function gn(e, t) {
149
+ return e.filter(function(n) {
150
+ return !Z(n, t);
151
+ });
152
+ }
153
+ var ft = 1, ke = 1, sr = 0, B = 0, T = 0, Me = "";
154
+ function dt(e, t, n, r, o, a, i, s) {
155
+ return { value: e, root: t, parent: n, type: r, props: o, children: a, line: ft, column: ke, length: i, return: "", siblings: s };
156
+ }
157
+ function ee(e, t) {
158
+ return zt(dt("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
159
+ }
160
+ function be(e) {
161
+ for (; e.root; )
162
+ e = ee(e.root, { children: [e] });
163
+ $e(e, e.siblings);
164
+ }
165
+ function sa() {
166
+ return T;
167
+ }
168
+ function ca() {
169
+ return T = B > 0 ? I(Me, --B) : 0, ke--, T === 10 && (ke = 1, ft--), T;
170
+ }
171
+ function V() {
172
+ return T = B < sr ? I(Me, B++) : 0, ke++, T === 10 && (ke = 1, ft++), T;
173
+ }
174
+ function ue() {
175
+ return I(Me, B);
176
+ }
177
+ function et() {
178
+ return B;
179
+ }
180
+ function ht(e, t) {
181
+ return Ce(Me, e, t);
182
+ }
183
+ function Rt(e) {
184
+ switch (e) {
185
+ case 0:
186
+ case 9:
187
+ case 10:
188
+ case 13:
189
+ case 32:
190
+ return 5;
191
+ case 33:
192
+ case 43:
193
+ case 44:
194
+ case 47:
195
+ case 62:
196
+ case 64:
197
+ case 126:
198
+ case 59:
199
+ case 123:
200
+ case 125:
201
+ return 4;
202
+ case 58:
203
+ return 3;
204
+ case 34:
205
+ case 39:
206
+ case 40:
207
+ case 91:
208
+ return 2;
209
+ case 41:
210
+ case 93:
211
+ return 1;
212
+ }
213
+ return 0;
214
+ }
215
+ function la(e) {
216
+ return ft = ke = 1, sr = W(Me = e), B = 0, [];
217
+ }
218
+ function ua(e) {
219
+ return Me = "", e;
220
+ }
221
+ function St(e) {
222
+ return ar(ht(B - 1, _t(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
223
+ }
224
+ function fa(e) {
225
+ for (; (T = ue()) && T < 33; )
226
+ V();
227
+ return Rt(e) > 2 || Rt(T) > 3 ? "" : " ";
228
+ }
229
+ function da(e, t) {
230
+ for (; --t && V() && !(T < 48 || T > 102 || T > 57 && T < 65 || T > 70 && T < 97); )
231
+ ;
232
+ return ht(e, et() + (t < 6 && ue() == 32 && V() == 32));
233
+ }
234
+ function _t(e) {
235
+ for (; V(); )
236
+ switch (T) {
237
+ case e:
238
+ return B;
239
+ case 34:
240
+ case 39:
241
+ e !== 34 && e !== 39 && _t(T);
242
+ break;
243
+ case 40:
244
+ e === 41 && _t(e);
245
+ break;
246
+ case 92:
247
+ V();
248
+ break;
249
+ }
250
+ return B;
251
+ }
252
+ function ha(e, t) {
253
+ for (; V() && e + T !== 57; )
254
+ if (e + T === 84 && ue() === 47)
255
+ break;
256
+ return "/*" + ht(t, B - 1) + "*" + nn(e === 47 ? e : V());
257
+ }
258
+ function pa(e) {
259
+ for (; !Rt(ue()); )
260
+ V();
261
+ return ht(e, B);
262
+ }
263
+ function ga(e) {
264
+ return ua(tt("", null, null, null, [""], e = la(e), 0, [0], e));
265
+ }
266
+ function tt(e, t, n, r, o, a, i, s, c) {
267
+ for (var l = 0, d = 0, u = i, f = 0, h = 0, m = 0, x = 1, M = 1, v = 1, S = 0, k = "", E = o, A = a, w = r, b = k; M; )
268
+ switch (m = S, S = V()) {
269
+ case 40:
270
+ if (m != 108 && I(b, u - 1) == 58) {
271
+ Je(b += y(St(S), "&", "&\f"), "&\f", or(l ? s[l - 1] : 0)) != -1 && (v = -1);
272
+ break;
273
+ }
274
+ case 34:
275
+ case 39:
276
+ case 91:
277
+ b += St(S);
278
+ break;
279
+ case 9:
280
+ case 10:
281
+ case 13:
282
+ case 32:
283
+ b += fa(m);
284
+ break;
285
+ case 92:
286
+ b += da(et() - 1, 7);
287
+ continue;
288
+ case 47:
289
+ switch (ue()) {
290
+ case 42:
291
+ case 47:
292
+ $e(ma(ha(V(), et()), t, n, c), c);
293
+ break;
294
+ default:
295
+ b += "/";
296
+ }
297
+ break;
298
+ case 123 * x:
299
+ s[l++] = W(b) * v;
300
+ case 125 * x:
301
+ case 59:
302
+ case 0:
303
+ switch (S) {
304
+ case 0:
305
+ case 125:
306
+ M = 0;
307
+ case 59 + d:
308
+ v == -1 && (b = y(b, /\f/g, "")), h > 0 && W(b) - u && $e(h > 32 ? yn(b + ";", r, n, u - 1, c) : yn(y(b, " ", "") + ";", r, n, u - 2, c), c);
309
+ break;
310
+ case 59:
311
+ b += ";";
312
+ default:
313
+ if ($e(w = mn(b, t, n, l, d, o, s, k, E = [], A = [], u, a), a), S === 123)
314
+ if (d === 0)
315
+ tt(b, t, w, w, E, a, u, s, A);
316
+ else
317
+ switch (f === 99 && I(b, 3) === 110 ? 100 : f) {
318
+ case 100:
319
+ case 108:
320
+ case 109:
321
+ case 115:
322
+ tt(e, w, w, r && $e(mn(e, w, w, 0, 0, o, s, k, o, E = [], u, A), A), o, A, u, s, r ? E : A);
323
+ break;
324
+ default:
325
+ tt(b, w, w, w, [""], A, 0, s, A);
326
+ }
327
+ }
328
+ l = d = h = 0, x = v = 1, k = b = "", u = i;
329
+ break;
330
+ case 58:
331
+ u = 1 + W(b), h = m;
332
+ default:
333
+ if (x < 1) {
334
+ if (S == 123)
335
+ --x;
336
+ else if (S == 125 && x++ == 0 && ca() == 125)
337
+ continue;
338
+ }
339
+ switch (b += nn(S), S * x) {
340
+ case 38:
341
+ v = d > 0 ? 1 : (b += "\f", -1);
342
+ break;
343
+ case 44:
344
+ s[l++] = (W(b) - 1) * v, v = 1;
345
+ break;
346
+ case 64:
347
+ ue() === 45 && (b += St(V())), f = ue(), d = u = W(k = b += pa(et())), S++;
348
+ break;
349
+ case 45:
350
+ m === 45 && W(b) == 2 && (x = 0);
351
+ }
352
+ }
353
+ return a;
354
+ }
355
+ function mn(e, t, n, r, o, a, i, s, c, l, d, u) {
356
+ for (var f = o - 1, h = o === 0 ? a : [""], m = ir(h), x = 0, M = 0, v = 0; x < r; ++x)
357
+ for (var S = 0, k = Ce(e, f + 1, f = or(M = i[x])), E = e; S < m; ++S)
358
+ (E = ar(M > 0 ? h[S] + " " + k : y(k, /&\f/g, h[S]))) && (c[v++] = E);
359
+ return dt(e, t, n, o === 0 ? ut : s, c, l, d, u);
360
+ }
361
+ function ma(e, t, n, r) {
362
+ return dt(e, t, n, nr, nn(sa()), Ce(e, 2, -2), 0, r);
363
+ }
364
+ function yn(e, t, n, r, o) {
365
+ return dt(e, t, n, tn, Ce(e, 0, r), Ce(e, r + 1, -1), r, o);
366
+ }
367
+ function cr(e, t, n) {
368
+ switch (aa(e, t)) {
369
+ case 5103:
370
+ return C + "print-" + e + e;
371
+ case 5737:
372
+ case 4201:
373
+ case 3177:
374
+ case 3433:
375
+ case 1641:
376
+ case 4457:
377
+ case 2921:
378
+ case 5572:
379
+ case 6356:
380
+ case 5844:
381
+ case 3191:
382
+ case 6645:
383
+ case 3005:
384
+ case 6391:
385
+ case 5879:
386
+ case 5623:
387
+ case 6135:
388
+ case 4599:
389
+ case 4855:
390
+ case 4215:
391
+ case 6389:
392
+ case 5109:
393
+ case 5365:
394
+ case 5621:
395
+ case 3829:
396
+ return C + e + e;
397
+ case 4789:
398
+ return Fe + e + e;
399
+ case 5349:
400
+ case 4246:
401
+ case 4810:
402
+ case 6968:
403
+ case 2756:
404
+ return C + e + Fe + e + O + e + e;
405
+ case 5936:
406
+ switch (I(e, t + 11)) {
407
+ case 114:
408
+ return C + e + O + y(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
409
+ case 108:
410
+ return C + e + O + y(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
411
+ case 45:
412
+ return C + e + O + y(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
413
+ }
414
+ case 6828:
415
+ case 4268:
416
+ case 2903:
417
+ return C + e + O + e + e;
418
+ case 6165:
419
+ return C + e + O + "flex-" + e + e;
420
+ case 5187:
421
+ return C + e + y(e, /(\w+).+(:[^]+)/, C + "box-$1$2" + O + "flex-$1$2") + e;
422
+ case 5443:
423
+ return C + e + O + "flex-item-" + y(e, /flex-|-self/g, "") + (Z(e, /flex-|baseline/) ? "" : O + "grid-row-" + y(e, /flex-|-self/g, "")) + e;
424
+ case 4675:
425
+ return C + e + O + "flex-line-pack" + y(e, /align-content|flex-|-self/g, "") + e;
426
+ case 5548:
427
+ return C + e + O + y(e, "shrink", "negative") + e;
428
+ case 5292:
429
+ return C + e + O + y(e, "basis", "preferred-size") + e;
430
+ case 6060:
431
+ return C + "box-" + y(e, "-grow", "") + C + e + O + y(e, "grow", "positive") + e;
432
+ case 4554:
433
+ return C + y(e, /([^-])(transform)/g, "$1" + C + "$2") + e;
434
+ case 6187:
435
+ return y(y(y(e, /(zoom-|grab)/, C + "$1"), /(image-set)/, C + "$1"), e, "") + e;
436
+ case 5495:
437
+ case 3959:
438
+ return y(e, /(image-set\([^]*)/, C + "$1$`$1");
439
+ case 4968:
440
+ return y(y(e, /(.+:)(flex-)?(.*)/, C + "box-pack:$3" + O + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + C + e + e;
441
+ case 4200:
442
+ if (!Z(e, /flex-|baseline/))
443
+ return O + "grid-column-align" + Ce(e, t) + e;
444
+ break;
445
+ case 2592:
446
+ case 3360:
447
+ return O + y(e, "template-", "") + e;
448
+ case 4384:
449
+ case 3616:
450
+ return n && n.some(function(r, o) {
451
+ return t = o, Z(r.props, /grid-\w+-end/);
452
+ }) ? ~Je(e + (n = n[t].value), "span", 0) ? e : O + y(e, "-start", "") + e + O + "grid-row-span:" + (~Je(n, "span", 0) ? Z(n, /\d+/) : +Z(n, /\d+/) - +Z(e, /\d+/)) + ";" : O + y(e, "-start", "") + e;
453
+ case 4896:
454
+ case 4128:
455
+ return n && n.some(function(r) {
456
+ return Z(r.props, /grid-\w+-start/);
457
+ }) ? e : O + y(y(e, "-end", "-span"), "span ", "") + e;
458
+ case 4095:
459
+ case 3583:
460
+ case 4068:
461
+ case 2532:
462
+ return y(e, /(.+)-inline(.+)/, C + "$1$2") + e;
463
+ case 8116:
464
+ case 7059:
465
+ case 5753:
466
+ case 5535:
467
+ case 5445:
468
+ case 5701:
469
+ case 4933:
470
+ case 4677:
471
+ case 5533:
472
+ case 5789:
473
+ case 5021:
474
+ case 4765:
475
+ if (W(e) - 1 - t > 6)
476
+ switch (I(e, t + 1)) {
477
+ case 109:
478
+ if (I(e, t + 4) !== 45)
479
+ break;
480
+ case 102:
481
+ return y(e, /(.+:)(.+)-([^]+)/, "$1" + C + "$2-$3$1" + Fe + (I(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
482
+ case 115:
483
+ return ~Je(e, "stretch", 0) ? cr(y(e, "stretch", "fill-available"), t, n) + e : e;
484
+ }
485
+ break;
486
+ case 5152:
487
+ case 5920:
488
+ return y(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(r, o, a, i, s, c, l) {
489
+ return O + o + ":" + a + l + (i ? O + o + "-span:" + (s ? c : +c - +a) + l : "") + e;
490
+ });
491
+ case 4949:
492
+ if (I(e, t + 6) === 121)
493
+ return y(e, ":", ":" + C) + e;
494
+ break;
495
+ case 6444:
496
+ switch (I(e, I(e, 14) === 45 ? 18 : 11)) {
497
+ case 120:
498
+ return y(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + C + (I(e, 14) === 45 ? "inline-" : "") + "box$3$1" + C + "$2$3$1" + O + "$2box$3") + e;
499
+ case 100:
500
+ return y(e, ":", ":" + O) + e;
501
+ }
502
+ break;
503
+ case 5719:
504
+ case 2647:
505
+ case 2135:
506
+ case 3927:
507
+ case 2391:
508
+ return y(e, "scroll-", "scroll-snap-") + e;
509
+ }
510
+ return e;
511
+ }
512
+ function at(e, t) {
513
+ for (var n = "", r = 0; r < e.length; r++)
514
+ n += t(e[r], r, e, t) || "";
515
+ return n;
516
+ }
517
+ function ya(e, t, n, r) {
518
+ switch (e.type) {
519
+ case oa:
520
+ if (e.children.length)
521
+ break;
522
+ case ra:
523
+ case tn:
524
+ return e.return = e.return || e.value;
525
+ case nr:
526
+ return "";
527
+ case rr:
528
+ return e.return = e.value + "{" + at(e.children, r) + "}";
529
+ case ut:
530
+ if (!W(e.value = e.props.join(",")))
531
+ return "";
532
+ }
533
+ return W(n = at(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
534
+ }
535
+ function ba(e) {
536
+ var t = ir(e);
537
+ return function(n, r, o, a) {
538
+ for (var i = "", s = 0; s < t; s++)
539
+ i += e[s](n, r, o, a) || "";
540
+ return i;
541
+ };
542
+ }
543
+ function va(e) {
544
+ return function(t) {
545
+ t.root || (t = t.return) && e(t);
546
+ };
547
+ }
548
+ function wa(e, t, n, r) {
549
+ if (e.length > -1 && !e.return)
550
+ switch (e.type) {
551
+ case tn:
552
+ e.return = cr(e.value, e.length, n);
553
+ return;
554
+ case rr:
555
+ return at([ee(e, { value: y(e.value, "@", "@" + C) })], r);
556
+ case ut:
557
+ if (e.length)
558
+ return ia(n = e.props, function(o) {
559
+ switch (Z(o, r = /(::plac\w+|:read-\w+)/)) {
560
+ case ":read-only":
561
+ case ":read-write":
562
+ be(ee(e, { props: [y(o, /:(read-\w+)/, ":" + Fe + "$1")] })), be(ee(e, { props: [o] })), zt(e, { props: gn(n, r) });
563
+ break;
564
+ case "::placeholder":
565
+ be(ee(e, { props: [y(o, /:(plac\w+)/, ":" + C + "input-$1")] })), be(ee(e, { props: [y(o, /:(plac\w+)/, ":" + Fe + "$1")] })), be(ee(e, { props: [y(o, /:(plac\w+)/, O + "input-$1")] })), be(ee(e, { props: [o] })), zt(e, { props: gn(n, r) });
566
+ break;
567
+ }
568
+ return "";
569
+ });
570
+ }
571
+ }
572
+ var xa = {
573
+ animationIterationCount: 1,
574
+ borderImageOutset: 1,
575
+ borderImageSlice: 1,
576
+ borderImageWidth: 1,
577
+ boxFlex: 1,
578
+ boxFlexGroup: 1,
579
+ boxOrdinalGroup: 1,
580
+ columnCount: 1,
581
+ columns: 1,
582
+ flex: 1,
583
+ flexGrow: 1,
584
+ flexPositive: 1,
585
+ flexShrink: 1,
586
+ flexNegative: 1,
587
+ flexOrder: 1,
588
+ gridRow: 1,
589
+ gridRowEnd: 1,
590
+ gridRowSpan: 1,
591
+ gridRowStart: 1,
592
+ gridColumn: 1,
593
+ gridColumnEnd: 1,
594
+ gridColumnSpan: 1,
595
+ gridColumnStart: 1,
596
+ msGridRow: 1,
597
+ msGridRowSpan: 1,
598
+ msGridColumn: 1,
599
+ msGridColumnSpan: 1,
600
+ fontWeight: 1,
601
+ lineHeight: 1,
602
+ opacity: 1,
603
+ order: 1,
604
+ orphans: 1,
605
+ tabSize: 1,
606
+ widows: 1,
607
+ zIndex: 1,
608
+ zoom: 1,
609
+ WebkitLineClamp: 1,
610
+ // SVG-related properties
611
+ fillOpacity: 1,
612
+ floodOpacity: 1,
613
+ stopOpacity: 1,
614
+ strokeDasharray: 1,
615
+ strokeDashoffset: 1,
616
+ strokeMiterlimit: 1,
617
+ strokeOpacity: 1,
618
+ strokeWidth: 1
619
+ }, he = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", lr = "active", ur = "data-styled-version", pt = "6.1.8", rn = `/*!sc*/
620
+ `, on = typeof window < "u" && "HTMLElement" in window, Ca = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? process.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && process.env.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.SC_DISABLE_SPEEDY !== void 0 && process.env.SC_DISABLE_SPEEDY !== "" ? process.env.SC_DISABLE_SPEEDY !== "false" && process.env.SC_DISABLE_SPEEDY : process.env.NODE_ENV !== "production"), bn = /invalid hook call/i, He = /* @__PURE__ */ new Set(), ka = function(e, t) {
621
+ if (process.env.NODE_ENV !== "production") {
622
+ var n = t ? ' with the id of "'.concat(t, '"') : "", r = "The component ".concat(e).concat(n, ` has been created dynamically.
623
+ `) + `You may see this warning because you've called styled inside another component.
624
+ To resolve this only create new StyledComponents outside of any render method and function component.`, o = console.error;
625
+ try {
626
+ var a = !0;
627
+ console.error = function(i) {
628
+ for (var s = [], c = 1; c < arguments.length; c++)
629
+ s[c - 1] = arguments[c];
630
+ bn.test(i) ? (a = !1, He.delete(r)) : o.apply(void 0, xe([i], s, !1));
631
+ }, en(), a && !He.has(r) && (console.warn(r), He.add(r));
632
+ } catch (i) {
633
+ bn.test(i.message) && He.delete(r);
634
+ } finally {
635
+ console.error = o;
636
+ }
637
+ }
638
+ }, gt = Object.freeze([]), Se = Object.freeze({});
639
+ function Sa(e, t, n) {
640
+ return n === void 0 && (n = Se), e.theme !== n.theme && e.theme || t || n.theme;
641
+ }
642
+ var jt = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), Ea = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Oa = /(^-|-$)/g;
643
+ function vn(e) {
644
+ return e.replace(Ea, "-").replace(Oa, "");
645
+ }
646
+ var Aa = /(a)(d)/gi, Ve = 52, wn = function(e) {
647
+ return String.fromCharCode(e + (e > 25 ? 39 : 97));
648
+ };
649
+ function Lt(e) {
650
+ var t, n = "";
651
+ for (t = Math.abs(e); t > Ve; t = t / Ve | 0)
652
+ n = wn(t % Ve) + n;
653
+ return (wn(t % Ve) + n).replace(Aa, "$1-$2");
654
+ }
655
+ var Et, fr = 5381, se = function(e, t) {
656
+ for (var n = t.length; n; )
657
+ e = 33 * e ^ t.charCodeAt(--n);
658
+ return e;
659
+ }, dr = function(e) {
660
+ return se(fr, e);
661
+ };
662
+ function Ma(e) {
663
+ return Lt(dr(e) >>> 0);
664
+ }
665
+ function hr(e) {
666
+ return process.env.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
667
+ }
668
+ function Ot(e) {
669
+ return typeof e == "string" && (process.env.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
670
+ }
671
+ var pr = typeof Symbol == "function" && Symbol.for, gr = pr ? Symbol.for("react.memo") : 60115, Na = pr ? Symbol.for("react.forward_ref") : 60112, Pa = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, Ta = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, mr = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, Da = ((Et = {})[Na] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, Et[gr] = mr, Et);
672
+ function xn(e) {
673
+ return ("type" in (t = e) && t.type.$$typeof) === gr ? mr : "$$typeof" in e ? Da[e.$$typeof] : Pa;
674
+ var t;
675
+ }
676
+ var Ia = Object.defineProperty, $a = Object.getOwnPropertyNames, Cn = Object.getOwnPropertySymbols, Fa = Object.getOwnPropertyDescriptor, za = Object.getPrototypeOf, kn = Object.prototype;
677
+ function yr(e, t, n) {
678
+ if (typeof t != "string") {
679
+ if (kn) {
680
+ var r = za(t);
681
+ r && r !== kn && yr(e, r, n);
682
+ }
683
+ var o = $a(t);
684
+ Cn && (o = o.concat(Cn(t)));
685
+ for (var a = xn(e), i = xn(t), s = 0; s < o.length; ++s) {
686
+ var c = o[s];
687
+ if (!(c in Ta || n && n[c] || i && c in i || a && c in a)) {
688
+ var l = Fa(t, c);
689
+ try {
690
+ Ia(e, c, l);
691
+ } catch {
692
+ }
693
+ }
694
+ }
695
+ }
696
+ return e;
697
+ }
698
+ function Ee(e) {
699
+ return typeof e == "function";
700
+ }
701
+ function an(e) {
702
+ return typeof e == "object" && "styledComponentId" in e;
703
+ }
704
+ function ce(e, t) {
705
+ return e && t ? "".concat(e, " ").concat(t) : e || t || "";
706
+ }
707
+ function Sn(e, t) {
708
+ if (e.length === 0)
709
+ return "";
710
+ for (var n = e[0], r = 1; r < e.length; r++)
711
+ n += t ? t + e[r] : e[r];
712
+ return n;
713
+ }
714
+ function Oe(e) {
715
+ return e !== null && typeof e == "object" && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
716
+ }
717
+ function Gt(e, t, n) {
718
+ if (n === void 0 && (n = !1), !n && !Oe(e) && !Array.isArray(e))
719
+ return t;
720
+ if (Array.isArray(t))
721
+ for (var r = 0; r < t.length; r++)
722
+ e[r] = Gt(e[r], t[r]);
723
+ else if (Oe(t))
724
+ for (var r in t)
725
+ e[r] = Gt(e[r], t[r]);
726
+ return e;
727
+ }
728
+ function sn(e, t) {
729
+ Object.defineProperty(e, "toString", { value: t });
730
+ }
731
+ var Ra = process.env.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
732
+
733
+ `, 2: `Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
734
+
735
+ - Are you trying to reuse it across renders?
736
+ - Are you accidentally calling collectStyles twice?
737
+
738
+ `, 3: `Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
739
+
740
+ `, 4: `The \`StyleSheetManager\` expects a valid target or sheet prop!
741
+
742
+ - Does this error occur on the client and is your target falsy?
743
+ - Does this error occur on the server and is the sheet falsy?
744
+
745
+ `, 5: `The clone method cannot be used on the client!
746
+
747
+ - Are you running in a client-like environment on the server?
748
+ - Are you trying to run SSR on the client?
749
+
750
+ `, 6: `Trying to insert a new style tag, but the given Node is unmounted!
751
+
752
+ - Are you using a custom target that isn't mounted?
753
+ - Does your document not have a valid head element?
754
+ - Have you accidentally removed a style tag manually?
755
+
756
+ `, 7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n', 8: `ThemeProvider: Please make your "theme" prop an object.
757
+
758
+ `, 9: "Missing document `<head>`\n\n", 10: `Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
759
+
760
+ `, 11: `_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
761
+
762
+ `, 12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n", 13: `%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.
763
+
764
+ `, 14: `ThemeProvider: "theme" prop is required.
765
+
766
+ `, 15: "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n", 16: `Reached the limit of how many styled components may be created at group %s.
767
+ You may only create up to 1,073,741,824 components. If you're creating components dynamically,
768
+ as for instance in your render method then you may be running into this limitation.
769
+
770
+ `, 17: `CSSStyleSheet could not be found on HTMLStyleElement.
771
+ Has styled-components' style tag been unmounted or altered by another script?
772
+ `, 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
773
+ function _a() {
774
+ for (var e = [], t = 0; t < arguments.length; t++)
775
+ e[t] = arguments[t];
776
+ for (var n = e[0], r = [], o = 1, a = e.length; o < a; o += 1)
777
+ r.push(e[o]);
778
+ return r.forEach(function(i) {
779
+ n = n.replace(/%[a-z]/, i);
780
+ }), n;
781
+ }
782
+ function Ne(e) {
783
+ for (var t = [], n = 1; n < arguments.length; n++)
784
+ t[n - 1] = arguments[n];
785
+ return process.env.NODE_ENV === "production" ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e, " for more information.").concat(t.length > 0 ? " Args: ".concat(t.join(", ")) : "")) : new Error(_a.apply(void 0, xe([Ra[e]], t, !1)).trim());
786
+ }
787
+ var ja = function() {
788
+ function e(t) {
789
+ this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = t;
790
+ }
791
+ return e.prototype.indexOfGroup = function(t) {
792
+ for (var n = 0, r = 0; r < t; r++)
793
+ n += this.groupSizes[r];
794
+ return n;
795
+ }, e.prototype.insertRules = function(t, n) {
796
+ if (t >= this.groupSizes.length) {
797
+ for (var r = this.groupSizes, o = r.length, a = o; t >= a; )
798
+ if ((a <<= 1) < 0)
799
+ throw Ne(16, "".concat(t));
800
+ this.groupSizes = new Uint32Array(a), this.groupSizes.set(r), this.length = a;
801
+ for (var i = o; i < a; i++)
802
+ this.groupSizes[i] = 0;
803
+ }
804
+ for (var s = this.indexOfGroup(t + 1), c = (i = 0, n.length); i < c; i++)
805
+ this.tag.insertRule(s, n[i]) && (this.groupSizes[t]++, s++);
806
+ }, e.prototype.clearGroup = function(t) {
807
+ if (t < this.length) {
808
+ var n = this.groupSizes[t], r = this.indexOfGroup(t), o = r + n;
809
+ this.groupSizes[t] = 0;
810
+ for (var a = r; a < o; a++)
811
+ this.tag.deleteRule(r);
812
+ }
813
+ }, e.prototype.getGroup = function(t) {
814
+ var n = "";
815
+ if (t >= this.length || this.groupSizes[t] === 0)
816
+ return n;
817
+ for (var r = this.groupSizes[t], o = this.indexOfGroup(t), a = o + r, i = o; i < a; i++)
818
+ n += "".concat(this.tag.getRule(i)).concat(rn);
819
+ return n;
820
+ }, e;
821
+ }(), nt = /* @__PURE__ */ new Map(), it = /* @__PURE__ */ new Map(), rt = 1, We = function(e) {
822
+ if (nt.has(e))
823
+ return nt.get(e);
824
+ for (; it.has(rt); )
825
+ rt++;
826
+ var t = rt++;
827
+ if (process.env.NODE_ENV !== "production" && ((0 | t) < 0 || t > 1073741824))
828
+ throw Ne(16, "".concat(t));
829
+ return nt.set(e, t), it.set(t, e), t;
830
+ }, La = function(e, t) {
831
+ rt = t + 1, nt.set(e, t), it.set(t, e);
832
+ }, Ga = "style[".concat(he, "][").concat(ur, '="').concat(pt, '"]'), qa = new RegExp("^".concat(he, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), Ba = function(e, t, n) {
833
+ for (var r, o = n.split(","), a = 0, i = o.length; a < i; a++)
834
+ (r = o[a]) && e.registerName(t, r);
835
+ }, Ha = function(e, t) {
836
+ for (var n, r = ((n = t.textContent) !== null && n !== void 0 ? n : "").split(rn), o = [], a = 0, i = r.length; a < i; a++) {
837
+ var s = r[a].trim();
838
+ if (s) {
839
+ var c = s.match(qa);
840
+ if (c) {
841
+ var l = 0 | parseInt(c[1], 10), d = c[2];
842
+ l !== 0 && (La(d, l), Ba(e, d, c[3]), e.getTag().insertRules(l, o)), o.length = 0;
843
+ } else
844
+ o.push(s);
845
+ }
846
+ }
847
+ };
848
+ function Va() {
849
+ return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
850
+ }
851
+ var br = function(e) {
852
+ var t = document.head, n = e || t, r = document.createElement("style"), o = function(s) {
853
+ var c = Array.from(s.querySelectorAll("style[".concat(he, "]")));
854
+ return c[c.length - 1];
855
+ }(n), a = o !== void 0 ? o.nextSibling : null;
856
+ r.setAttribute(he, lr), r.setAttribute(ur, pt);
857
+ var i = Va();
858
+ return i && r.setAttribute("nonce", i), n.insertBefore(r, a), r;
859
+ }, Wa = function() {
860
+ function e(t) {
861
+ this.element = br(t), this.element.appendChild(document.createTextNode("")), this.sheet = function(n) {
862
+ if (n.sheet)
863
+ return n.sheet;
864
+ for (var r = document.styleSheets, o = 0, a = r.length; o < a; o++) {
865
+ var i = r[o];
866
+ if (i.ownerNode === n)
867
+ return i;
868
+ }
869
+ throw Ne(17);
870
+ }(this.element), this.length = 0;
871
+ }
872
+ return e.prototype.insertRule = function(t, n) {
873
+ try {
874
+ return this.sheet.insertRule(n, t), this.length++, !0;
875
+ } catch {
876
+ return !1;
877
+ }
878
+ }, e.prototype.deleteRule = function(t) {
879
+ this.sheet.deleteRule(t), this.length--;
880
+ }, e.prototype.getRule = function(t) {
881
+ var n = this.sheet.cssRules[t];
882
+ return n && n.cssText ? n.cssText : "";
883
+ }, e;
884
+ }(), Ua = function() {
885
+ function e(t) {
886
+ this.element = br(t), this.nodes = this.element.childNodes, this.length = 0;
887
+ }
888
+ return e.prototype.insertRule = function(t, n) {
889
+ if (t <= this.length && t >= 0) {
890
+ var r = document.createTextNode(n);
891
+ return this.element.insertBefore(r, this.nodes[t] || null), this.length++, !0;
892
+ }
893
+ return !1;
894
+ }, e.prototype.deleteRule = function(t) {
895
+ this.element.removeChild(this.nodes[t]), this.length--;
896
+ }, e.prototype.getRule = function(t) {
897
+ return t < this.length ? this.nodes[t].textContent : "";
898
+ }, e;
899
+ }(), Ka = function() {
900
+ function e(t) {
901
+ this.rules = [], this.length = 0;
902
+ }
903
+ return e.prototype.insertRule = function(t, n) {
904
+ return t <= this.length && (this.rules.splice(t, 0, n), this.length++, !0);
905
+ }, e.prototype.deleteRule = function(t) {
906
+ this.rules.splice(t, 1), this.length--;
907
+ }, e.prototype.getRule = function(t) {
908
+ return t < this.length ? this.rules[t] : "";
909
+ }, e;
910
+ }(), En = on, Ya = { isServer: !on, useCSSOMInjection: !Ca }, vr = function() {
911
+ function e(t, n, r) {
912
+ t === void 0 && (t = Se), n === void 0 && (n = {});
913
+ var o = this;
914
+ this.options = z(z({}, Ya), t), this.gs = n, this.names = new Map(r), this.server = !!t.isServer, !this.server && on && En && (En = !1, function(a) {
915
+ for (var i = document.querySelectorAll(Ga), s = 0, c = i.length; s < c; s++) {
916
+ var l = i[s];
917
+ l && l.getAttribute(he) !== lr && (Ha(a, l), l.parentNode && l.parentNode.removeChild(l));
918
+ }
919
+ }(this)), sn(this, function() {
920
+ return function(a) {
921
+ for (var i = a.getTag(), s = i.length, c = "", l = function(u) {
922
+ var f = function(v) {
923
+ return it.get(v);
924
+ }(u);
925
+ if (f === void 0)
926
+ return "continue";
927
+ var h = a.names.get(f), m = i.getGroup(u);
928
+ if (h === void 0 || m.length === 0)
929
+ return "continue";
930
+ var x = "".concat(he, ".g").concat(u, '[id="').concat(f, '"]'), M = "";
931
+ h !== void 0 && h.forEach(function(v) {
932
+ v.length > 0 && (M += "".concat(v, ","));
933
+ }), c += "".concat(m).concat(x, '{content:"').concat(M, '"}').concat(rn);
934
+ }, d = 0; d < s; d++)
935
+ l(d);
936
+ return c;
937
+ }(o);
938
+ });
939
+ }
940
+ return e.registerId = function(t) {
941
+ return We(t);
942
+ }, e.prototype.reconstructWithOptions = function(t, n) {
943
+ return n === void 0 && (n = !0), new e(z(z({}, this.options), t), this.gs, n && this.names || void 0);
944
+ }, e.prototype.allocateGSInstance = function(t) {
945
+ return this.gs[t] = (this.gs[t] || 0) + 1;
946
+ }, e.prototype.getTag = function() {
947
+ return this.tag || (this.tag = (t = function(n) {
948
+ var r = n.useCSSOMInjection, o = n.target;
949
+ return n.isServer ? new Ka(o) : r ? new Wa(o) : new Ua(o);
950
+ }(this.options), new ja(t)));
951
+ var t;
952
+ }, e.prototype.hasNameForId = function(t, n) {
953
+ return this.names.has(t) && this.names.get(t).has(n);
954
+ }, e.prototype.registerName = function(t, n) {
955
+ if (We(t), this.names.has(t))
956
+ this.names.get(t).add(n);
957
+ else {
958
+ var r = /* @__PURE__ */ new Set();
959
+ r.add(n), this.names.set(t, r);
960
+ }
961
+ }, e.prototype.insertRules = function(t, n, r) {
962
+ this.registerName(t, n), this.getTag().insertRules(We(t), r);
963
+ }, e.prototype.clearNames = function(t) {
964
+ this.names.has(t) && this.names.get(t).clear();
965
+ }, e.prototype.clearRules = function(t) {
966
+ this.getTag().clearGroup(We(t)), this.clearNames(t);
967
+ }, e.prototype.clearTag = function() {
968
+ this.tag = void 0;
969
+ }, e;
970
+ }(), Xa = /&/g, Za = /^\s*\/\/.*$/gm;
971
+ function wr(e, t) {
972
+ return e.map(function(n) {
973
+ return n.type === "rule" && (n.value = "".concat(t, " ").concat(n.value), n.value = n.value.replaceAll(",", ",".concat(t, " ")), n.props = n.props.map(function(r) {
974
+ return "".concat(t, " ").concat(r);
975
+ })), Array.isArray(n.children) && n.type !== "@keyframes" && (n.children = wr(n.children, t)), n;
976
+ });
977
+ }
978
+ function Qa(e) {
979
+ var t, n, r, o = e === void 0 ? Se : e, a = o.options, i = a === void 0 ? Se : a, s = o.plugins, c = s === void 0 ? gt : s, l = function(f, h, m) {
980
+ return m.startsWith(n) && m.endsWith(n) && m.replaceAll(n, "").length > 0 ? ".".concat(t) : f;
981
+ }, d = c.slice();
982
+ d.push(function(f) {
983
+ f.type === ut && f.value.includes("&") && (f.props[0] = f.props[0].replace(Xa, n).replace(r, l));
984
+ }), i.prefix && d.push(wa), d.push(ya);
985
+ var u = function(f, h, m, x) {
986
+ h === void 0 && (h = ""), m === void 0 && (m = ""), x === void 0 && (x = "&"), t = x, n = h, r = new RegExp("\\".concat(n, "\\b"), "g");
987
+ var M = f.replace(Za, ""), v = ga(m || h ? "".concat(m, " ").concat(h, " { ").concat(M, " }") : M);
988
+ i.namespace && (v = wr(v, i.namespace));
989
+ var S = [];
990
+ return at(v, ba(d.concat(va(function(k) {
991
+ return S.push(k);
992
+ })))), S;
993
+ };
994
+ return u.hash = c.length ? c.reduce(function(f, h) {
995
+ return h.name || Ne(15), se(f, h.name);
996
+ }, fr).toString() : "", u;
997
+ }
998
+ var Ja = new vr(), qt = Qa(), xr = de.createContext({ shouldForwardProp: void 0, styleSheet: Ja, stylis: qt });
999
+ xr.Consumer;
1000
+ de.createContext(void 0);
1001
+ function On() {
1002
+ return lt(xr);
1003
+ }
1004
+ var An = function() {
1005
+ function e(t, n) {
1006
+ var r = this;
1007
+ this.inject = function(o, a) {
1008
+ a === void 0 && (a = qt);
1009
+ var i = r.name + a.hash;
1010
+ o.hasNameForId(r.id, i) || o.insertRules(r.id, i, a(r.rules, i, "@keyframes"));
1011
+ }, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = n, sn(this, function() {
1012
+ throw Ne(12, String(r.name));
1013
+ });
1014
+ }
1015
+ return e.prototype.getName = function(t) {
1016
+ return t === void 0 && (t = qt), this.name + t.hash;
1017
+ }, e;
1018
+ }(), ei = function(e) {
1019
+ return e >= "A" && e <= "Z";
1020
+ };
1021
+ function Mn(e) {
1022
+ for (var t = "", n = 0; n < e.length; n++) {
1023
+ var r = e[n];
1024
+ if (n === 1 && r === "-" && e[0] === "-")
1025
+ return e;
1026
+ ei(r) ? t += "-" + r.toLowerCase() : t += r;
1027
+ }
1028
+ return t.startsWith("ms-") ? "-" + t : t;
1029
+ }
1030
+ var Cr = function(e) {
1031
+ return e == null || e === !1 || e === "";
1032
+ }, kr = function(e) {
1033
+ var t, n, r = [];
1034
+ for (var o in e) {
1035
+ var a = e[o];
1036
+ e.hasOwnProperty(o) && !Cr(a) && (Array.isArray(a) && a.isCss || Ee(a) ? r.push("".concat(Mn(o), ":"), a, ";") : Oe(a) ? r.push.apply(r, xe(xe(["".concat(o, " {")], kr(a), !1), ["}"], !1)) : r.push("".concat(Mn(o), ": ").concat((t = o, (n = a) == null || typeof n == "boolean" || n === "" ? "" : typeof n != "number" || n === 0 || t in xa || t.startsWith("--") ? String(n).trim() : "".concat(n, "px")), ";")));
1037
+ }
1038
+ return r;
1039
+ };
1040
+ function fe(e, t, n, r) {
1041
+ if (Cr(e))
1042
+ return [];
1043
+ if (an(e))
1044
+ return [".".concat(e.styledComponentId)];
1045
+ if (Ee(e)) {
1046
+ if (!Ee(a = e) || a.prototype && a.prototype.isReactComponent || !t)
1047
+ return [e];
1048
+ var o = e(t);
1049
+ return process.env.NODE_ENV === "production" || typeof o != "object" || Array.isArray(o) || o instanceof An || Oe(o) || o === null || console.error("".concat(hr(e), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), fe(o, t, n, r);
1050
+ }
1051
+ var a;
1052
+ return e instanceof An ? n ? (e.inject(n, r), [e.getName(r)]) : [e] : Oe(e) ? kr(e) : Array.isArray(e) ? Array.prototype.concat.apply(gt, e.map(function(i) {
1053
+ return fe(i, t, n, r);
1054
+ })) : [e.toString()];
1055
+ }
1056
+ function ti(e) {
1057
+ for (var t = 0; t < e.length; t += 1) {
1058
+ var n = e[t];
1059
+ if (Ee(n) && !an(n))
1060
+ return !1;
1061
+ }
1062
+ return !0;
1063
+ }
1064
+ var ni = dr(pt), ri = function() {
1065
+ function e(t, n, r) {
1066
+ this.rules = t, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (r === void 0 || r.isStatic) && ti(t), this.componentId = n, this.baseHash = se(ni, n), this.baseStyle = r, vr.registerId(n);
1067
+ }
1068
+ return e.prototype.generateAndInjectStyles = function(t, n, r) {
1069
+ var o = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, n, r) : "";
1070
+ if (this.isStatic && !r.hash)
1071
+ if (this.staticRulesId && n.hasNameForId(this.componentId, this.staticRulesId))
1072
+ o = ce(o, this.staticRulesId);
1073
+ else {
1074
+ var a = Sn(fe(this.rules, t, n, r)), i = Lt(se(this.baseHash, a) >>> 0);
1075
+ if (!n.hasNameForId(this.componentId, i)) {
1076
+ var s = r(a, ".".concat(i), void 0, this.componentId);
1077
+ n.insertRules(this.componentId, i, s);
1078
+ }
1079
+ o = ce(o, i), this.staticRulesId = i;
1080
+ }
1081
+ else {
1082
+ for (var c = se(this.baseHash, r.hash), l = "", d = 0; d < this.rules.length; d++) {
1083
+ var u = this.rules[d];
1084
+ if (typeof u == "string")
1085
+ l += u, process.env.NODE_ENV !== "production" && (c = se(c, u));
1086
+ else if (u) {
1087
+ var f = Sn(fe(u, t, n, r));
1088
+ c = se(c, f + d), l += f;
1089
+ }
1090
+ }
1091
+ if (l) {
1092
+ var h = Lt(c >>> 0);
1093
+ n.hasNameForId(this.componentId, h) || n.insertRules(this.componentId, h, r(l, ".".concat(h), void 0, this.componentId)), o = ce(o, h);
1094
+ }
1095
+ }
1096
+ return o;
1097
+ }, e;
1098
+ }(), Sr = de.createContext(void 0);
1099
+ Sr.Consumer;
1100
+ var At = {}, Nn = /* @__PURE__ */ new Set();
1101
+ function oi(e, t, n) {
1102
+ var r = an(e), o = e, a = !Ot(e), i = t.attrs, s = i === void 0 ? gt : i, c = t.componentId, l = c === void 0 ? function(E, A) {
1103
+ var w = typeof E != "string" ? "sc" : vn(E);
1104
+ At[w] = (At[w] || 0) + 1;
1105
+ var b = "".concat(w, "-").concat(Ma(pt + w + At[w]));
1106
+ return A ? "".concat(A, "-").concat(b) : b;
1107
+ }(t.displayName, t.parentComponentId) : c, d = t.displayName, u = d === void 0 ? function(E) {
1108
+ return Ot(E) ? "styled.".concat(E) : "Styled(".concat(hr(E), ")");
1109
+ }(e) : d, f = t.displayName && t.componentId ? "".concat(vn(t.displayName), "-").concat(t.componentId) : t.componentId || l, h = r && o.attrs ? o.attrs.concat(s).filter(Boolean) : s, m = t.shouldForwardProp;
1110
+ if (r && o.shouldForwardProp) {
1111
+ var x = o.shouldForwardProp;
1112
+ if (t.shouldForwardProp) {
1113
+ var M = t.shouldForwardProp;
1114
+ m = function(E, A) {
1115
+ return x(E, A) && M(E, A);
1116
+ };
1117
+ } else
1118
+ m = x;
1119
+ }
1120
+ var v = new ri(n, f, r ? o.componentStyle : void 0);
1121
+ function S(E, A) {
1122
+ return function(w, b, ae) {
1123
+ var me = w.attrs, $o = w.componentStyle, Fo = w.defaultProps, zo = w.foldedComponentIds, fn = w.styledComponentId, Ro = w.target, _o = de.useContext(Sr), jo = On(), wt = w.shouldForwardProp || jo.shouldForwardProp;
1124
+ process.env.NODE_ENV !== "production" && hn(fn);
1125
+ var dn = Sa(b, _o, Fo) || Se, Y = function(Le, De, Ge) {
1126
+ for (var ye, ie = z(z({}, De), { className: void 0, theme: Ge }), kt = 0; kt < Le.length; kt += 1) {
1127
+ var qe = Ee(ye = Le[kt]) ? ye(ie) : ye;
1128
+ for (var J in qe)
1129
+ ie[J] = J === "className" ? ce(ie[J], qe[J]) : J === "style" ? z(z({}, ie[J]), qe[J]) : qe[J];
1130
+ }
1131
+ return De.className && (ie.className = ce(ie.className, De.className)), ie;
1132
+ }(me, b, dn), Pe = Y.as || Ro, Te = {};
1133
+ for (var G in Y)
1134
+ Y[G] === void 0 || G[0] === "$" || G === "as" || G === "theme" && Y.theme === dn || (G === "forwardedAs" ? Te.as = Y.forwardedAs : wt && !wt(G, Pe) || (Te[G] = Y[G], wt || process.env.NODE_ENV !== "development" || na(G) || Nn.has(G) || !jt.has(Pe) || (Nn.add(G), console.warn('styled-components: it looks like an unknown prop "'.concat(G, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
1135
+ var xt = function(Le, De) {
1136
+ var Ge = On(), ye = Le.generateAndInjectStyles(De, Ge.styleSheet, Ge.stylis);
1137
+ return process.env.NODE_ENV !== "production" && hn(ye), ye;
1138
+ }($o, Y);
1139
+ process.env.NODE_ENV !== "production" && w.warnTooManyClasses && w.warnTooManyClasses(xt);
1140
+ var Ct = ce(zo, fn);
1141
+ return xt && (Ct += " " + xt), Y.className && (Ct += " " + Y.className), Te[Ot(Pe) && !jt.has(Pe) ? "class" : "className"] = Ct, Te.ref = ae, Lo(Pe, Te);
1142
+ }(k, E, A);
1143
+ }
1144
+ S.displayName = u;
1145
+ var k = de.forwardRef(S);
1146
+ return k.attrs = h, k.componentStyle = v, k.displayName = u, k.shouldForwardProp = m, k.foldedComponentIds = r ? ce(o.foldedComponentIds, o.styledComponentId) : "", k.styledComponentId = f, k.target = r ? o.target : e, Object.defineProperty(k, "defaultProps", { get: function() {
1147
+ return this._foldedDefaultProps;
1148
+ }, set: function(E) {
1149
+ this._foldedDefaultProps = r ? function(A) {
1150
+ for (var w = [], b = 1; b < arguments.length; b++)
1151
+ w[b - 1] = arguments[b];
1152
+ for (var ae = 0, me = w; ae < me.length; ae++)
1153
+ Gt(A, me[ae], !0);
1154
+ return A;
1155
+ }({}, o.defaultProps, E) : E;
1156
+ } }), process.env.NODE_ENV !== "production" && (ka(u, f), k.warnTooManyClasses = /* @__PURE__ */ function(E, A) {
1157
+ var w = {}, b = !1;
1158
+ return function(ae) {
1159
+ if (!b && (w[ae] = !0, Object.keys(w).length >= 200)) {
1160
+ var me = A ? ' with the id of "'.concat(A, '"') : "";
1161
+ console.warn("Over ".concat(200, " classes were generated for component ").concat(E).concat(me, `.
1162
+ `) + `Consider using the attrs method, together with a style object for frequently changed styles.
1163
+ Example:
1164
+ const Component = styled.div.attrs(props => ({
1165
+ style: {
1166
+ background: props.background,
1167
+ },
1168
+ }))\`width: 100%;\`
1169
+
1170
+ <Component />`), b = !0, w = {};
1171
+ }
1172
+ };
1173
+ }(u, f)), sn(k, function() {
1174
+ return ".".concat(k.styledComponentId);
1175
+ }), a && yr(k, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), k;
1176
+ }
1177
+ function Pn(e, t) {
1178
+ for (var n = [e[0]], r = 0, o = t.length; r < o; r += 1)
1179
+ n.push(t[r], e[r + 1]);
1180
+ return n;
1181
+ }
1182
+ var Tn = function(e) {
1183
+ return Object.assign(e, { isCss: !0 });
1184
+ };
1185
+ function ai(e) {
1186
+ for (var t = [], n = 1; n < arguments.length; n++)
1187
+ t[n - 1] = arguments[n];
1188
+ if (Ee(e) || Oe(e))
1189
+ return Tn(fe(Pn(gt, xe([e], t, !0))));
1190
+ var r = e;
1191
+ return t.length === 0 && r.length === 1 && typeof r[0] == "string" ? fe(r) : Tn(fe(Pn(r, t)));
1192
+ }
1193
+ function Bt(e, t, n) {
1194
+ if (n === void 0 && (n = Se), !t)
1195
+ throw Ne(1, t);
1196
+ var r = function(o) {
1197
+ for (var a = [], i = 1; i < arguments.length; i++)
1198
+ a[i - 1] = arguments[i];
1199
+ return e(t, n, ai.apply(void 0, xe([o], a, !1)));
1200
+ };
1201
+ return r.attrs = function(o) {
1202
+ return Bt(e, t, z(z({}, n), { attrs: Array.prototype.concat(n.attrs, o).filter(Boolean) }));
1203
+ }, r.withConfig = function(o) {
1204
+ return Bt(e, t, z(z({}, n), o));
1205
+ }, r;
1206
+ }
1207
+ var Er = function(e) {
1208
+ return Bt(oi, e);
1209
+ }, K = Er;
1210
+ jt.forEach(function(e) {
1211
+ K[e] = Er(e);
1212
+ });
1213
+ process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
1214
+ Perhaps you're looking to import 'styled-components/native'?
1215
+ Read more about this at https://www.styled-components.com/docs/basics#react-native`);
1216
+ var Ue = "__sc-".concat(he, "__");
1217
+ process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof window < "u" && (window[Ue] || (window[Ue] = 0), window[Ue] === 1 && console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
1218
+
1219
+ See https://s-c.sh/2BAXzed for more info.`), window[Ue] += 1);
1220
+ const ii = ({
1221
+ data: e = [],
1222
+ onChange: t = () => {
1223
+ },
1224
+ tableHeight: n = "460px",
1225
+ limitation: r = {}
1226
+ }) => {
1227
+ const { messageApi: o } = lt(er), { title: a = 15, content: i = 2e3 } = r, { t: s } = Ae();
1228
+ function c(u) {
1229
+ const f = e.findIndex((h) => h.label === u.label);
1230
+ e[f] = u, t([...e]);
1231
+ }
1232
+ function l() {
1233
+ const u = [
1234
+ {
1235
+ label: `#${e.length + 1}`,
1236
+ content: ""
1237
+ },
1238
+ ...e
1239
+ ];
1240
+ t(u), o.success(s("createSuccessfully"));
1241
+ }
1242
+ function d(u) {
1243
+ const f = e.filter((h) => h.label !== u);
1244
+ t(f);
1245
+ }
1246
+ return /* @__PURE__ */ P(
1247
+ Be,
1248
+ {
1249
+ bordered: !0,
1250
+ dataSource: e,
1251
+ pagination: !1,
1252
+ rowKey: "label",
1253
+ size: "small",
1254
+ scroll: {
1255
+ y: n,
1256
+ x: !0
1257
+ },
1258
+ locale: {
1259
+ emptyText: () => /* @__PURE__ */ P(
1260
+ F,
1261
+ {
1262
+ direction: "vertical",
1263
+ size: 24,
1264
+ style: {
1265
+ width: "100%",
1266
+ textAlign: "center",
1267
+ padding: "62px 0px"
1268
+ },
1269
+ children: [
1270
+ /* @__PURE__ */ p(Zn, {}),
1271
+ /* @__PURE__ */ p(Q, { type: "primary", onClick: l, children: s("create") })
1272
+ ]
1273
+ }
1274
+ )
1275
+ },
1276
+ footer: () => /* @__PURE__ */ P(Qe, { style: { width: "100%" }, justify: "space-between", children: [
1277
+ /* @__PURE__ */ p(F, { children: /* @__PURE__ */ p("div", {}) }),
1278
+ /* @__PURE__ */ p(F, { children: /* @__PURE__ */ p(Q, { type: "primary", onClick: l, children: s("create") }) })
1279
+ ] }),
1280
+ children: [
1281
+ /* @__PURE__ */ p(
1282
+ Be.Column,
1283
+ {
1284
+ title: s("titleFieldName"),
1285
+ dataIndex: "label",
1286
+ width: 400,
1287
+ render: (u, f) => /* @__PURE__ */ p(
1288
+ Dn,
1289
+ {
1290
+ maxLength: a,
1291
+ type: "input",
1292
+ value: u,
1293
+ onChange: (h) => {
1294
+ if (f.label !== h) {
1295
+ if (e.find((m) => m.label === h)) {
1296
+ o.error(s("cannotSavedMessageCuzLabelExisted"));
1297
+ return;
1298
+ }
1299
+ if (h.trim() === "") {
1300
+ o.error(s("cannotSavedMessageCuzLabelEmpty"));
1301
+ return;
1302
+ }
1303
+ f.label = h, c(f);
1304
+ }
1305
+ }
1306
+ }
1307
+ )
1308
+ },
1309
+ "label"
1310
+ ),
1311
+ /* @__PURE__ */ p(
1312
+ Be.Column,
1313
+ {
1314
+ title: s("content"),
1315
+ dataIndex: "content",
1316
+ width: 400,
1317
+ render: (u, f) => /* @__PURE__ */ p(
1318
+ Dn,
1319
+ {
1320
+ maxLength: i,
1321
+ type: "textarea",
1322
+ value: u,
1323
+ onChange: (h) => {
1324
+ if (h.trim() === "") {
1325
+ o.error(s("cannotSavedMessageCuzContentEmpty"));
1326
+ return;
1327
+ }
1328
+ f.content = h, c(f);
1329
+ }
1330
+ }
1331
+ )
1332
+ },
1333
+ "content"
1334
+ ),
1335
+ /* @__PURE__ */ p(
1336
+ Be.Column,
1337
+ {
1338
+ title: "操作",
1339
+ dataIndex: "id",
1340
+ width: 120,
1341
+ render: (u, f) => /* @__PURE__ */ p(F, { size: 4, children: /* @__PURE__ */ p(
1342
+ Q,
1343
+ {
1344
+ size: "small",
1345
+ type: "text",
1346
+ danger: !0,
1347
+ onClick: () => d(f.label),
1348
+ children: s("delete")
1349
+ }
1350
+ ) })
1351
+ },
1352
+ "id"
1353
+ )
1354
+ ]
1355
+ }
1356
+ );
1357
+ }, si = K.div`
1358
+ border: 1px solid transparent;
1359
+ padding: 0 4px;
1360
+ margin: 0 -4px;
1361
+ border-radius: 4px;
1362
+ cursor: pointer;
1363
+
1364
+ &:hover {
1365
+ border-color: ${(e) => e.$isDark ? "#4d4848" : "#c0bbbb"};
1366
+ }
1367
+ `;
1368
+ function Dn(e) {
1369
+ const [t, n] = U(!1), r = en(null), o = Qn();
1370
+ oe(() => {
1371
+ t && r.current && (e.type === "input" ? r.current.select() : r.current.focus());
1372
+ }, [t, e.type]);
1373
+ function a() {
1374
+ n(!0);
1375
+ }
1376
+ function i(c) {
1377
+ n(!1), e.onChange(c);
1378
+ }
1379
+ function s(c) {
1380
+ e.onChange(c), r.current.blur();
1381
+ }
1382
+ if (t) {
1383
+ if (e.type === "textarea")
1384
+ return /* @__PURE__ */ p("div", { style: { paddingBottom: 18 }, children: /* @__PURE__ */ p(
1385
+ Ft.TextArea,
1386
+ {
1387
+ showCount: !0,
1388
+ maxLength: e.maxLength,
1389
+ defaultValue: e.value,
1390
+ ref: r,
1391
+ size: "small",
1392
+ style: { width: "100%" },
1393
+ autoSize: { minRows: 4, maxRows: 4 },
1394
+ onBlur: (c) => i(c.target.value),
1395
+ onKeyDown: (c) => {
1396
+ if (c.key === "Enter") {
1397
+ if (c.shiftKey || c.ctrlKey || c.metaKey)
1398
+ return;
1399
+ {
1400
+ c.preventDefault();
1401
+ const l = c.target;
1402
+ return s(l.value), !1;
1403
+ }
1404
+ }
1405
+ }
1406
+ }
1407
+ ) });
1408
+ if (e.type === "input")
1409
+ return /* @__PURE__ */ p(
1410
+ Ft,
1411
+ {
1412
+ showCount: !0,
1413
+ maxLength: e.maxLength,
1414
+ defaultValue: e.value,
1415
+ ref: r,
1416
+ size: "small",
1417
+ style: { width: "100%" },
1418
+ onBlur: (c) => i(c.target.value),
1419
+ onPressEnter: (c) => {
1420
+ const l = c.target;
1421
+ s(l.value);
1422
+ }
1423
+ }
1424
+ );
1425
+ }
1426
+ return /* @__PURE__ */ p(si, { onClick: a, $isDark: o, children: /* @__PURE__ */ p(
1427
+ "div",
1428
+ {
1429
+ style: { minHeight: 22 },
1430
+ dangerouslySetInnerHTML: {
1431
+ __html: e.value.trim().split(`
1432
+ `).slice(0, 4).join("<br/>") + (e.value.trim().split(`
1433
+ `).length > 4 ? "..." : "")
1434
+ }
1435
+ }
1436
+ ) });
1437
+ }
1438
+ var ci = /* @__PURE__ */ Jt({});
1439
+ const Or = ci;
1440
+ function pe() {
1441
+ return pe = Object.assign ? Object.assign.bind() : function(e) {
1442
+ for (var t = 1; t < arguments.length; t++) {
1443
+ var n = arguments[t];
1444
+ for (var r in n)
1445
+ Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
1446
+ }
1447
+ return e;
1448
+ }, pe.apply(this, arguments);
1449
+ }
1450
+ function li(e) {
1451
+ if (Array.isArray(e))
1452
+ return e;
1453
+ }
1454
+ function ui(e, t) {
1455
+ var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1456
+ if (n != null) {
1457
+ var r, o, a, i, s = [], c = !0, l = !1;
1458
+ try {
1459
+ if (a = (n = n.call(e)).next, t === 0) {
1460
+ if (Object(n) !== n)
1461
+ return;
1462
+ c = !1;
1463
+ } else
1464
+ for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0)
1465
+ ;
1466
+ } catch (d) {
1467
+ l = !0, o = d;
1468
+ } finally {
1469
+ try {
1470
+ if (!c && n.return != null && (i = n.return(), Object(i) !== i))
1471
+ return;
1472
+ } finally {
1473
+ if (l)
1474
+ throw o;
1475
+ }
1476
+ }
1477
+ return s;
1478
+ }
1479
+ }
1480
+ function In(e, t) {
1481
+ (t == null || t > e.length) && (t = e.length);
1482
+ for (var n = 0, r = new Array(t); n < t; n++)
1483
+ r[n] = e[n];
1484
+ return r;
1485
+ }
1486
+ function fi(e, t) {
1487
+ if (e) {
1488
+ if (typeof e == "string")
1489
+ return In(e, t);
1490
+ var n = Object.prototype.toString.call(e).slice(8, -1);
1491
+ if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set")
1492
+ return Array.from(e);
1493
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
1494
+ return In(e, t);
1495
+ }
1496
+ }
1497
+ function di() {
1498
+ throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1499
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1500
+ }
1501
+ function Ar(e, t) {
1502
+ return li(e) || ui(e, t) || fi(e, t) || di();
1503
+ }
1504
+ function ge(e) {
1505
+ "@babel/helpers - typeof";
1506
+ return ge = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
1507
+ return typeof t;
1508
+ } : function(t) {
1509
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1510
+ }, ge(e);
1511
+ }
1512
+ function hi(e, t) {
1513
+ if (ge(e) != "object" || !e)
1514
+ return e;
1515
+ var n = e[Symbol.toPrimitive];
1516
+ if (n !== void 0) {
1517
+ var r = n.call(e, t || "default");
1518
+ if (ge(r) != "object")
1519
+ return r;
1520
+ throw new TypeError("@@toPrimitive must return a primitive value.");
1521
+ }
1522
+ return (t === "string" ? String : Number)(e);
1523
+ }
1524
+ function pi(e) {
1525
+ var t = hi(e, "string");
1526
+ return ge(t) == "symbol" ? t : String(t);
1527
+ }
1528
+ function Ht(e, t, n) {
1529
+ return t = pi(t), t in e ? Object.defineProperty(e, t, {
1530
+ value: n,
1531
+ enumerable: !0,
1532
+ configurable: !0,
1533
+ writable: !0
1534
+ }) : e[t] = n, e;
1535
+ }
1536
+ function gi(e, t) {
1537
+ if (e == null)
1538
+ return {};
1539
+ var n = {}, r = Object.keys(e), o, a;
1540
+ for (a = 0; a < r.length; a++)
1541
+ o = r[a], !(t.indexOf(o) >= 0) && (n[o] = e[o]);
1542
+ return n;
1543
+ }
1544
+ function Mr(e, t) {
1545
+ if (e == null)
1546
+ return {};
1547
+ var n = gi(e, t), r, o;
1548
+ if (Object.getOwnPropertySymbols) {
1549
+ var a = Object.getOwnPropertySymbols(e);
1550
+ for (o = 0; o < a.length; o++)
1551
+ r = a[o], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);
1552
+ }
1553
+ return n;
1554
+ }
1555
+ var Nr = { exports: {} };
1556
+ /*!
1557
+ Copyright (c) 2018 Jed Watson.
1558
+ Licensed under the MIT License (MIT), see
1559
+ http://jedwatson.github.io/classnames
1560
+ */
1561
+ (function(e) {
1562
+ (function() {
1563
+ var t = {}.hasOwnProperty;
1564
+ function n() {
1565
+ for (var a = "", i = 0; i < arguments.length; i++) {
1566
+ var s = arguments[i];
1567
+ s && (a = o(a, r(s)));
1568
+ }
1569
+ return a;
1570
+ }
1571
+ function r(a) {
1572
+ if (typeof a == "string" || typeof a == "number")
1573
+ return a;
1574
+ if (typeof a != "object")
1575
+ return "";
1576
+ if (Array.isArray(a))
1577
+ return n.apply(null, a);
1578
+ if (a.toString !== Object.prototype.toString && !a.toString.toString().includes("[native code]"))
1579
+ return a.toString();
1580
+ var i = "";
1581
+ for (var s in a)
1582
+ t.call(a, s) && a[s] && (i = o(i, s));
1583
+ return i;
1584
+ }
1585
+ function o(a, i) {
1586
+ return i ? a ? a + " " + i : a + i : a;
1587
+ }
1588
+ e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
1589
+ })();
1590
+ })(Nr);
1591
+ var mi = Nr.exports;
1592
+ const yi = /* @__PURE__ */ tr(mi);
1593
+ function q(e, t) {
1594
+ bi(e) && (e = "100%");
1595
+ const n = vi(e);
1596
+ return e = t === 360 ? e : Math.min(t, Math.max(0, parseFloat(e))), n && (e = parseInt(String(e * t), 10) / 100), Math.abs(e - t) < 1e-6 ? 1 : (t === 360 ? e = (e < 0 ? e % t + t : e % t) / parseFloat(String(t)) : e = e % t / parseFloat(String(t)), e);
1597
+ }
1598
+ function bi(e) {
1599
+ return typeof e == "string" && e.indexOf(".") !== -1 && parseFloat(e) === 1;
1600
+ }
1601
+ function vi(e) {
1602
+ return typeof e == "string" && e.indexOf("%") !== -1;
1603
+ }
1604
+ function wi(e) {
1605
+ return e = parseFloat(e), (isNaN(e) || e < 0 || e > 1) && (e = 1), e;
1606
+ }
1607
+ function Ke(e) {
1608
+ return Number(e) <= 1 ? `${Number(e) * 100}%` : e;
1609
+ }
1610
+ function Mt(e) {
1611
+ return e.length === 1 ? "0" + e : String(e);
1612
+ }
1613
+ function xi(e, t, n) {
1614
+ return {
1615
+ r: q(e, 255) * 255,
1616
+ g: q(t, 255) * 255,
1617
+ b: q(n, 255) * 255
1618
+ };
1619
+ }
1620
+ function Nt(e, t, n) {
1621
+ return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? e + (t - e) * (6 * n) : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
1622
+ }
1623
+ function Ci(e, t, n) {
1624
+ let r, o, a;
1625
+ if (e = q(e, 360), t = q(t, 100), n = q(n, 100), t === 0)
1626
+ o = n, a = n, r = n;
1627
+ else {
1628
+ const i = n < 0.5 ? n * (1 + t) : n + t - n * t, s = 2 * n - i;
1629
+ r = Nt(s, i, e + 1 / 3), o = Nt(s, i, e), a = Nt(s, i, e - 1 / 3);
1630
+ }
1631
+ return { r: r * 255, g: o * 255, b: a * 255 };
1632
+ }
1633
+ function ki(e, t, n) {
1634
+ e = q(e, 255), t = q(t, 255), n = q(n, 255);
1635
+ const r = Math.max(e, t, n), o = Math.min(e, t, n);
1636
+ let a = 0;
1637
+ const i = r, s = r - o, c = r === 0 ? 0 : s / r;
1638
+ if (r === o)
1639
+ a = 0;
1640
+ else {
1641
+ switch (r) {
1642
+ case e:
1643
+ a = (t - n) / s + (t < n ? 6 : 0);
1644
+ break;
1645
+ case t:
1646
+ a = (n - e) / s + 2;
1647
+ break;
1648
+ case n:
1649
+ a = (e - t) / s + 4;
1650
+ break;
1651
+ }
1652
+ a /= 6;
1653
+ }
1654
+ return { h: a, s: c, v: i };
1655
+ }
1656
+ function Si(e, t, n) {
1657
+ e = q(e, 360) * 6, t = q(t, 100), n = q(n, 100);
1658
+ const r = Math.floor(e), o = e - r, a = n * (1 - t), i = n * (1 - o * t), s = n * (1 - (1 - o) * t), c = r % 6, l = [n, i, a, a, s, n][c], d = [s, n, n, i, a, a][c], u = [a, a, s, n, n, i][c];
1659
+ return { r: l * 255, g: d * 255, b: u * 255 };
1660
+ }
1661
+ function Ei(e, t, n, r) {
1662
+ const o = [
1663
+ Mt(Math.round(e).toString(16)),
1664
+ Mt(Math.round(t).toString(16)),
1665
+ Mt(Math.round(n).toString(16))
1666
+ ];
1667
+ return r && o[0].startsWith(o[0].charAt(1)) && o[1].startsWith(o[1].charAt(1)) && o[2].startsWith(o[2].charAt(1)) ? o[0].charAt(0) + o[1].charAt(0) + o[2].charAt(0) : o.join("");
1668
+ }
1669
+ function $n(e) {
1670
+ return R(e) / 255;
1671
+ }
1672
+ function R(e) {
1673
+ return parseInt(e, 16);
1674
+ }
1675
+ const Fn = {
1676
+ aliceblue: "#f0f8ff",
1677
+ antiquewhite: "#faebd7",
1678
+ aqua: "#00ffff",
1679
+ aquamarine: "#7fffd4",
1680
+ azure: "#f0ffff",
1681
+ beige: "#f5f5dc",
1682
+ bisque: "#ffe4c4",
1683
+ black: "#000000",
1684
+ blanchedalmond: "#ffebcd",
1685
+ blue: "#0000ff",
1686
+ blueviolet: "#8a2be2",
1687
+ brown: "#a52a2a",
1688
+ burlywood: "#deb887",
1689
+ cadetblue: "#5f9ea0",
1690
+ chartreuse: "#7fff00",
1691
+ chocolate: "#d2691e",
1692
+ coral: "#ff7f50",
1693
+ cornflowerblue: "#6495ed",
1694
+ cornsilk: "#fff8dc",
1695
+ crimson: "#dc143c",
1696
+ cyan: "#00ffff",
1697
+ darkblue: "#00008b",
1698
+ darkcyan: "#008b8b",
1699
+ darkgoldenrod: "#b8860b",
1700
+ darkgray: "#a9a9a9",
1701
+ darkgreen: "#006400",
1702
+ darkgrey: "#a9a9a9",
1703
+ darkkhaki: "#bdb76b",
1704
+ darkmagenta: "#8b008b",
1705
+ darkolivegreen: "#556b2f",
1706
+ darkorange: "#ff8c00",
1707
+ darkorchid: "#9932cc",
1708
+ darkred: "#8b0000",
1709
+ darksalmon: "#e9967a",
1710
+ darkseagreen: "#8fbc8f",
1711
+ darkslateblue: "#483d8b",
1712
+ darkslategray: "#2f4f4f",
1713
+ darkslategrey: "#2f4f4f",
1714
+ darkturquoise: "#00ced1",
1715
+ darkviolet: "#9400d3",
1716
+ deeppink: "#ff1493",
1717
+ deepskyblue: "#00bfff",
1718
+ dimgray: "#696969",
1719
+ dimgrey: "#696969",
1720
+ dodgerblue: "#1e90ff",
1721
+ firebrick: "#b22222",
1722
+ floralwhite: "#fffaf0",
1723
+ forestgreen: "#228b22",
1724
+ fuchsia: "#ff00ff",
1725
+ gainsboro: "#dcdcdc",
1726
+ ghostwhite: "#f8f8ff",
1727
+ goldenrod: "#daa520",
1728
+ gold: "#ffd700",
1729
+ gray: "#808080",
1730
+ green: "#008000",
1731
+ greenyellow: "#adff2f",
1732
+ grey: "#808080",
1733
+ honeydew: "#f0fff0",
1734
+ hotpink: "#ff69b4",
1735
+ indianred: "#cd5c5c",
1736
+ indigo: "#4b0082",
1737
+ ivory: "#fffff0",
1738
+ khaki: "#f0e68c",
1739
+ lavenderblush: "#fff0f5",
1740
+ lavender: "#e6e6fa",
1741
+ lawngreen: "#7cfc00",
1742
+ lemonchiffon: "#fffacd",
1743
+ lightblue: "#add8e6",
1744
+ lightcoral: "#f08080",
1745
+ lightcyan: "#e0ffff",
1746
+ lightgoldenrodyellow: "#fafad2",
1747
+ lightgray: "#d3d3d3",
1748
+ lightgreen: "#90ee90",
1749
+ lightgrey: "#d3d3d3",
1750
+ lightpink: "#ffb6c1",
1751
+ lightsalmon: "#ffa07a",
1752
+ lightseagreen: "#20b2aa",
1753
+ lightskyblue: "#87cefa",
1754
+ lightslategray: "#778899",
1755
+ lightslategrey: "#778899",
1756
+ lightsteelblue: "#b0c4de",
1757
+ lightyellow: "#ffffe0",
1758
+ lime: "#00ff00",
1759
+ limegreen: "#32cd32",
1760
+ linen: "#faf0e6",
1761
+ magenta: "#ff00ff",
1762
+ maroon: "#800000",
1763
+ mediumaquamarine: "#66cdaa",
1764
+ mediumblue: "#0000cd",
1765
+ mediumorchid: "#ba55d3",
1766
+ mediumpurple: "#9370db",
1767
+ mediumseagreen: "#3cb371",
1768
+ mediumslateblue: "#7b68ee",
1769
+ mediumspringgreen: "#00fa9a",
1770
+ mediumturquoise: "#48d1cc",
1771
+ mediumvioletred: "#c71585",
1772
+ midnightblue: "#191970",
1773
+ mintcream: "#f5fffa",
1774
+ mistyrose: "#ffe4e1",
1775
+ moccasin: "#ffe4b5",
1776
+ navajowhite: "#ffdead",
1777
+ navy: "#000080",
1778
+ oldlace: "#fdf5e6",
1779
+ olive: "#808000",
1780
+ olivedrab: "#6b8e23",
1781
+ orange: "#ffa500",
1782
+ orangered: "#ff4500",
1783
+ orchid: "#da70d6",
1784
+ palegoldenrod: "#eee8aa",
1785
+ palegreen: "#98fb98",
1786
+ paleturquoise: "#afeeee",
1787
+ palevioletred: "#db7093",
1788
+ papayawhip: "#ffefd5",
1789
+ peachpuff: "#ffdab9",
1790
+ peru: "#cd853f",
1791
+ pink: "#ffc0cb",
1792
+ plum: "#dda0dd",
1793
+ powderblue: "#b0e0e6",
1794
+ purple: "#800080",
1795
+ rebeccapurple: "#663399",
1796
+ red: "#ff0000",
1797
+ rosybrown: "#bc8f8f",
1798
+ royalblue: "#4169e1",
1799
+ saddlebrown: "#8b4513",
1800
+ salmon: "#fa8072",
1801
+ sandybrown: "#f4a460",
1802
+ seagreen: "#2e8b57",
1803
+ seashell: "#fff5ee",
1804
+ sienna: "#a0522d",
1805
+ silver: "#c0c0c0",
1806
+ skyblue: "#87ceeb",
1807
+ slateblue: "#6a5acd",
1808
+ slategray: "#708090",
1809
+ slategrey: "#708090",
1810
+ snow: "#fffafa",
1811
+ springgreen: "#00ff7f",
1812
+ steelblue: "#4682b4",
1813
+ tan: "#d2b48c",
1814
+ teal: "#008080",
1815
+ thistle: "#d8bfd8",
1816
+ tomato: "#ff6347",
1817
+ turquoise: "#40e0d0",
1818
+ violet: "#ee82ee",
1819
+ wheat: "#f5deb3",
1820
+ white: "#ffffff",
1821
+ whitesmoke: "#f5f5f5",
1822
+ yellow: "#ffff00",
1823
+ yellowgreen: "#9acd32"
1824
+ };
1825
+ function Ie(e) {
1826
+ let t = { r: 0, g: 0, b: 0 }, n = 1, r = null, o = null, a = null, i = !1, s = !1;
1827
+ return typeof e == "string" && (e = Mi(e)), typeof e == "object" && (X(e.r) && X(e.g) && X(e.b) ? (t = xi(e.r, e.g, e.b), i = !0, s = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : X(e.h) && X(e.s) && X(e.v) ? (r = Ke(e.s), o = Ke(e.v), t = Si(e.h, r, o), i = !0, s = "hsv") : X(e.h) && X(e.s) && X(e.l) && (r = Ke(e.s), a = Ke(e.l), t = Ci(e.h, r, a), i = !0, s = "hsl"), Object.prototype.hasOwnProperty.call(e, "a") && (n = e.a)), n = wi(n), {
1828
+ ok: i,
1829
+ format: e.format || s,
1830
+ r: Math.min(255, Math.max(t.r, 0)),
1831
+ g: Math.min(255, Math.max(t.g, 0)),
1832
+ b: Math.min(255, Math.max(t.b, 0)),
1833
+ a: n
1834
+ };
1835
+ }
1836
+ const Oi = "[-\\+]?\\d+%?", Ai = "[-\\+]?\\d*\\.\\d+%?", te = `(?:${Ai})|(?:${Oi})`, Pt = `[\\s|\\(]+(${te})[,|\\s]+(${te})[,|\\s]+(${te})\\s*\\)?`, Tt = `[\\s|\\(]+(${te})[,|\\s]+(${te})[,|\\s]+(${te})[,|\\s]+(${te})\\s*\\)?`, H = {
1837
+ CSS_UNIT: new RegExp(te),
1838
+ rgb: new RegExp("rgb" + Pt),
1839
+ rgba: new RegExp("rgba" + Tt),
1840
+ hsl: new RegExp("hsl" + Pt),
1841
+ hsla: new RegExp("hsla" + Tt),
1842
+ hsv: new RegExp("hsv" + Pt),
1843
+ hsva: new RegExp("hsva" + Tt),
1844
+ hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
1845
+ hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
1846
+ hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
1847
+ hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
1848
+ };
1849
+ function Mi(e) {
1850
+ if (e = e.trim().toLowerCase(), e.length === 0)
1851
+ return !1;
1852
+ let t = !1;
1853
+ if (Fn[e])
1854
+ e = Fn[e], t = !0;
1855
+ else if (e === "transparent")
1856
+ return { r: 0, g: 0, b: 0, a: 0, format: "name" };
1857
+ let n = H.rgb.exec(e);
1858
+ return n ? { r: n[1], g: n[2], b: n[3] } : (n = H.rgba.exec(e), n ? { r: n[1], g: n[2], b: n[3], a: n[4] } : (n = H.hsl.exec(e), n ? { h: n[1], s: n[2], l: n[3] } : (n = H.hsla.exec(e), n ? { h: n[1], s: n[2], l: n[3], a: n[4] } : (n = H.hsv.exec(e), n ? { h: n[1], s: n[2], v: n[3] } : (n = H.hsva.exec(e), n ? { h: n[1], s: n[2], v: n[3], a: n[4] } : (n = H.hex8.exec(e), n ? {
1859
+ r: R(n[1]),
1860
+ g: R(n[2]),
1861
+ b: R(n[3]),
1862
+ a: $n(n[4]),
1863
+ format: t ? "name" : "hex8"
1864
+ } : (n = H.hex6.exec(e), n ? {
1865
+ r: R(n[1]),
1866
+ g: R(n[2]),
1867
+ b: R(n[3]),
1868
+ format: t ? "name" : "hex"
1869
+ } : (n = H.hex4.exec(e), n ? {
1870
+ r: R(n[1] + n[1]),
1871
+ g: R(n[2] + n[2]),
1872
+ b: R(n[3] + n[3]),
1873
+ a: $n(n[4] + n[4]),
1874
+ format: t ? "name" : "hex8"
1875
+ } : (n = H.hex3.exec(e), n ? {
1876
+ r: R(n[1] + n[1]),
1877
+ g: R(n[2] + n[2]),
1878
+ b: R(n[3] + n[3]),
1879
+ format: t ? "name" : "hex"
1880
+ } : !1)))))))));
1881
+ }
1882
+ function X(e) {
1883
+ return !!H.CSS_UNIT.exec(String(e));
1884
+ }
1885
+ var Ye = 2, zn = 0.16, Ni = 0.05, Pi = 0.05, Ti = 0.15, Pr = 5, Tr = 4, Di = [{
1886
+ index: 7,
1887
+ opacity: 0.15
1888
+ }, {
1889
+ index: 6,
1890
+ opacity: 0.25
1891
+ }, {
1892
+ index: 5,
1893
+ opacity: 0.3
1894
+ }, {
1895
+ index: 5,
1896
+ opacity: 0.45
1897
+ }, {
1898
+ index: 5,
1899
+ opacity: 0.65
1900
+ }, {
1901
+ index: 5,
1902
+ opacity: 0.85
1903
+ }, {
1904
+ index: 4,
1905
+ opacity: 0.9
1906
+ }, {
1907
+ index: 3,
1908
+ opacity: 0.95
1909
+ }, {
1910
+ index: 2,
1911
+ opacity: 0.97
1912
+ }, {
1913
+ index: 1,
1914
+ opacity: 0.98
1915
+ }];
1916
+ function Rn(e) {
1917
+ var t = e.r, n = e.g, r = e.b, o = ki(t, n, r);
1918
+ return {
1919
+ h: o.h * 360,
1920
+ s: o.s,
1921
+ v: o.v
1922
+ };
1923
+ }
1924
+ function Xe(e) {
1925
+ var t = e.r, n = e.g, r = e.b;
1926
+ return "#".concat(Ei(t, n, r, !1));
1927
+ }
1928
+ function Ii(e, t, n) {
1929
+ var r = n / 100, o = {
1930
+ r: (t.r - e.r) * r + e.r,
1931
+ g: (t.g - e.g) * r + e.g,
1932
+ b: (t.b - e.b) * r + e.b
1933
+ };
1934
+ return o;
1935
+ }
1936
+ function _n(e, t, n) {
1937
+ var r;
1938
+ return Math.round(e.h) >= 60 && Math.round(e.h) <= 240 ? r = n ? Math.round(e.h) - Ye * t : Math.round(e.h) + Ye * t : r = n ? Math.round(e.h) + Ye * t : Math.round(e.h) - Ye * t, r < 0 ? r += 360 : r >= 360 && (r -= 360), r;
1939
+ }
1940
+ function jn(e, t, n) {
1941
+ if (e.h === 0 && e.s === 0)
1942
+ return e.s;
1943
+ var r;
1944
+ return n ? r = e.s - zn * t : t === Tr ? r = e.s + zn : r = e.s + Ni * t, r > 1 && (r = 1), n && t === Pr && r > 0.1 && (r = 0.1), r < 0.06 && (r = 0.06), Number(r.toFixed(2));
1945
+ }
1946
+ function Ln(e, t, n) {
1947
+ var r;
1948
+ return n ? r = e.v + Pi * t : r = e.v - Ti * t, r > 1 && (r = 1), Number(r.toFixed(2));
1949
+ }
1950
+ function Vt(e) {
1951
+ for (var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = [], r = Ie(e), o = Pr; o > 0; o -= 1) {
1952
+ var a = Rn(r), i = Xe(Ie({
1953
+ h: _n(a, o, !0),
1954
+ s: jn(a, o, !0),
1955
+ v: Ln(a, o, !0)
1956
+ }));
1957
+ n.push(i);
1958
+ }
1959
+ n.push(Xe(r));
1960
+ for (var s = 1; s <= Tr; s += 1) {
1961
+ var c = Rn(r), l = Xe(Ie({
1962
+ h: _n(c, s),
1963
+ s: jn(c, s),
1964
+ v: Ln(c, s)
1965
+ }));
1966
+ n.push(l);
1967
+ }
1968
+ return t.theme === "dark" ? Di.map(function(d) {
1969
+ var u = d.index, f = d.opacity, h = Xe(Ii(Ie(t.backgroundColor || "#141414"), Ie(n[u]), f * 100));
1970
+ return h;
1971
+ }) : n;
1972
+ }
1973
+ var Dt = {
1974
+ red: "#F5222D",
1975
+ volcano: "#FA541C",
1976
+ orange: "#FA8C16",
1977
+ gold: "#FAAD14",
1978
+ yellow: "#FADB14",
1979
+ lime: "#A0D911",
1980
+ green: "#52C41A",
1981
+ cyan: "#13C2C2",
1982
+ blue: "#1677FF",
1983
+ geekblue: "#2F54EB",
1984
+ purple: "#722ED1",
1985
+ magenta: "#EB2F96",
1986
+ grey: "#666666"
1987
+ }, ot = {}, It = {};
1988
+ Object.keys(Dt).forEach(function(e) {
1989
+ ot[e] = Vt(Dt[e]), ot[e].primary = ot[e][5], It[e] = Vt(Dt[e], {
1990
+ theme: "dark",
1991
+ backgroundColor: "#141414"
1992
+ }), It[e].primary = It[e][5];
1993
+ });
1994
+ var $i = ot.blue;
1995
+ function Gn(e, t) {
1996
+ var n = Object.keys(e);
1997
+ if (Object.getOwnPropertySymbols) {
1998
+ var r = Object.getOwnPropertySymbols(e);
1999
+ t && (r = r.filter(function(o) {
2000
+ return Object.getOwnPropertyDescriptor(e, o).enumerable;
2001
+ })), n.push.apply(n, r);
2002
+ }
2003
+ return n;
2004
+ }
2005
+ function ne(e) {
2006
+ for (var t = 1; t < arguments.length; t++) {
2007
+ var n = arguments[t] != null ? arguments[t] : {};
2008
+ t % 2 ? Gn(Object(n), !0).forEach(function(r) {
2009
+ Ht(e, r, n[r]);
2010
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Gn(Object(n)).forEach(function(r) {
2011
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
2012
+ });
2013
+ }
2014
+ return e;
2015
+ }
2016
+ function Fi() {
2017
+ return !!(typeof window < "u" && window.document && window.document.createElement);
2018
+ }
2019
+ function zi(e, t) {
2020
+ if (!e)
2021
+ return !1;
2022
+ if (e.contains)
2023
+ return e.contains(t);
2024
+ for (var n = t; n; ) {
2025
+ if (n === e)
2026
+ return !0;
2027
+ n = n.parentNode;
2028
+ }
2029
+ return !1;
2030
+ }
2031
+ var qn = "data-rc-order", Bn = "data-rc-priority", Ri = "rc-util-key", Wt = /* @__PURE__ */ new Map();
2032
+ function Dr() {
2033
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.mark;
2034
+ return t ? t.startsWith("data-") ? t : "data-".concat(t) : Ri;
2035
+ }
2036
+ function cn(e) {
2037
+ if (e.attachTo)
2038
+ return e.attachTo;
2039
+ var t = document.querySelector("head");
2040
+ return t || document.body;
2041
+ }
2042
+ function _i(e) {
2043
+ return e === "queue" ? "prependQueue" : e ? "prepend" : "append";
2044
+ }
2045
+ function Ir(e) {
2046
+ return Array.from((Wt.get(e) || e).children).filter(function(t) {
2047
+ return t.tagName === "STYLE";
2048
+ });
2049
+ }
2050
+ function $r(e) {
2051
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2052
+ if (!Fi())
2053
+ return null;
2054
+ var n = t.csp, r = t.prepend, o = t.priority, a = o === void 0 ? 0 : o, i = _i(r), s = i === "prependQueue", c = document.createElement("style");
2055
+ c.setAttribute(qn, i), s && a && c.setAttribute(Bn, "".concat(a)), n != null && n.nonce && (c.nonce = n == null ? void 0 : n.nonce), c.innerHTML = e;
2056
+ var l = cn(t), d = l.firstChild;
2057
+ if (r) {
2058
+ if (s) {
2059
+ var u = Ir(l).filter(function(f) {
2060
+ if (!["prepend", "prependQueue"].includes(f.getAttribute(qn)))
2061
+ return !1;
2062
+ var h = Number(f.getAttribute(Bn) || 0);
2063
+ return a >= h;
2064
+ });
2065
+ if (u.length)
2066
+ return l.insertBefore(c, u[u.length - 1].nextSibling), c;
2067
+ }
2068
+ l.insertBefore(c, d);
2069
+ } else
2070
+ l.appendChild(c);
2071
+ return c;
2072
+ }
2073
+ function ji(e) {
2074
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = cn(t);
2075
+ return Ir(n).find(function(r) {
2076
+ return r.getAttribute(Dr(t)) === e;
2077
+ });
2078
+ }
2079
+ function Li(e, t) {
2080
+ var n = Wt.get(e);
2081
+ if (!n || !zi(document, n)) {
2082
+ var r = $r("", t), o = r.parentNode;
2083
+ Wt.set(e, o), e.removeChild(r);
2084
+ }
2085
+ }
2086
+ function Gi(e, t) {
2087
+ var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = cn(n);
2088
+ Li(r, n);
2089
+ var o = ji(t, n);
2090
+ if (o) {
2091
+ var a, i;
2092
+ if ((a = n.csp) !== null && a !== void 0 && a.nonce && o.nonce !== ((i = n.csp) === null || i === void 0 ? void 0 : i.nonce)) {
2093
+ var s;
2094
+ o.nonce = (s = n.csp) === null || s === void 0 ? void 0 : s.nonce;
2095
+ }
2096
+ return o.innerHTML !== e && (o.innerHTML = e), o;
2097
+ }
2098
+ var c = $r(e, n);
2099
+ return c.setAttribute(Dr(n), t), c;
2100
+ }
2101
+ function Fr(e) {
2102
+ var t;
2103
+ return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
2104
+ }
2105
+ function qi(e) {
2106
+ return Fr(e) instanceof ShadowRoot;
2107
+ }
2108
+ function Bi(e) {
2109
+ return qi(e) ? Fr(e) : null;
2110
+ }
2111
+ var Ut = {}, ln = [], Hi = function(t) {
2112
+ ln.push(t);
2113
+ };
2114
+ function Vi(e, t) {
2115
+ if (process.env.NODE_ENV !== "production" && !e && console !== void 0) {
2116
+ var n = ln.reduce(function(r, o) {
2117
+ return o(r ?? "", "warning");
2118
+ }, t);
2119
+ n && console.error("Warning: ".concat(n));
2120
+ }
2121
+ }
2122
+ function Wi(e, t) {
2123
+ if (process.env.NODE_ENV !== "production" && !e && console !== void 0) {
2124
+ var n = ln.reduce(function(r, o) {
2125
+ return o(r ?? "", "note");
2126
+ }, t);
2127
+ n && console.warn("Note: ".concat(n));
2128
+ }
2129
+ }
2130
+ function Ui() {
2131
+ Ut = {};
2132
+ }
2133
+ function zr(e, t, n) {
2134
+ !t && !Ut[n] && (e(!1, n), Ut[n] = !0);
2135
+ }
2136
+ function mt(e, t) {
2137
+ zr(Vi, e, t);
2138
+ }
2139
+ function Ki(e, t) {
2140
+ zr(Wi, e, t);
2141
+ }
2142
+ mt.preMessage = Hi;
2143
+ mt.resetWarned = Ui;
2144
+ mt.noteOnce = Ki;
2145
+ function Yi(e) {
2146
+ return e.replace(/-(.)/g, function(t, n) {
2147
+ return n.toUpperCase();
2148
+ });
2149
+ }
2150
+ function Xi(e, t) {
2151
+ mt(e, "[@ant-design/icons] ".concat(t));
2152
+ }
2153
+ function Hn(e) {
2154
+ return ge(e) === "object" && typeof e.name == "string" && typeof e.theme == "string" && (ge(e.icon) === "object" || typeof e.icon == "function");
2155
+ }
2156
+ function Vn() {
2157
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2158
+ return Object.keys(e).reduce(function(t, n) {
2159
+ var r = e[n];
2160
+ switch (n) {
2161
+ case "class":
2162
+ t.className = r, delete t.class;
2163
+ break;
2164
+ default:
2165
+ delete t[n], t[Yi(n)] = r;
2166
+ }
2167
+ return t;
2168
+ }, {});
2169
+ }
2170
+ function Kt(e, t, n) {
2171
+ return n ? /* @__PURE__ */ de.createElement(e.tag, ne(ne({
2172
+ key: t
2173
+ }, Vn(e.attrs)), n), (e.children || []).map(function(r, o) {
2174
+ return Kt(r, "".concat(t, "-").concat(e.tag, "-").concat(o));
2175
+ })) : /* @__PURE__ */ de.createElement(e.tag, ne({
2176
+ key: t
2177
+ }, Vn(e.attrs)), (e.children || []).map(function(r, o) {
2178
+ return Kt(r, "".concat(t, "-").concat(e.tag, "-").concat(o));
2179
+ }));
2180
+ }
2181
+ function Rr(e) {
2182
+ return Vt(e)[0];
2183
+ }
2184
+ function _r(e) {
2185
+ return e ? Array.isArray(e) ? e : [e] : [];
2186
+ }
2187
+ var Zi = `
2188
+ .anticon {
2189
+ display: inline-block;
2190
+ color: inherit;
2191
+ font-style: normal;
2192
+ line-height: 0;
2193
+ text-align: center;
2194
+ text-transform: none;
2195
+ vertical-align: -0.125em;
2196
+ text-rendering: optimizeLegibility;
2197
+ -webkit-font-smoothing: antialiased;
2198
+ -moz-osx-font-smoothing: grayscale;
2199
+ }
2200
+
2201
+ .anticon > * {
2202
+ line-height: 1;
2203
+ }
2204
+
2205
+ .anticon svg {
2206
+ display: inline-block;
2207
+ }
2208
+
2209
+ .anticon::before {
2210
+ display: none;
2211
+ }
2212
+
2213
+ .anticon .anticon-icon {
2214
+ display: block;
2215
+ }
2216
+
2217
+ .anticon[tabindex] {
2218
+ cursor: pointer;
2219
+ }
2220
+
2221
+ .anticon-spin::before,
2222
+ .anticon-spin {
2223
+ display: inline-block;
2224
+ -webkit-animation: loadingCircle 1s infinite linear;
2225
+ animation: loadingCircle 1s infinite linear;
2226
+ }
2227
+
2228
+ @-webkit-keyframes loadingCircle {
2229
+ 100% {
2230
+ -webkit-transform: rotate(360deg);
2231
+ transform: rotate(360deg);
2232
+ }
2233
+ }
2234
+
2235
+ @keyframes loadingCircle {
2236
+ 100% {
2237
+ -webkit-transform: rotate(360deg);
2238
+ transform: rotate(360deg);
2239
+ }
2240
+ }
2241
+ `, Qi = function(t) {
2242
+ var n = lt(Or), r = n.csp, o = n.prefixCls, a = Zi;
2243
+ o && (a = a.replace(/anticon/g, o)), oe(function() {
2244
+ var i = t.current, s = Bi(i);
2245
+ Gi(a, "@ant-design-icons", {
2246
+ prepend: !0,
2247
+ csp: r,
2248
+ attachTo: s
2249
+ });
2250
+ }, []);
2251
+ }, Ji = ["icon", "className", "onClick", "style", "primaryColor", "secondaryColor"], ze = {
2252
+ primaryColor: "#333",
2253
+ secondaryColor: "#E6E6E6",
2254
+ calculated: !1
2255
+ };
2256
+ function es(e) {
2257
+ var t = e.primaryColor, n = e.secondaryColor;
2258
+ ze.primaryColor = t, ze.secondaryColor = n || Rr(t), ze.calculated = !!n;
2259
+ }
2260
+ function ts() {
2261
+ return ne({}, ze);
2262
+ }
2263
+ var yt = function(t) {
2264
+ var n = t.icon, r = t.className, o = t.onClick, a = t.style, i = t.primaryColor, s = t.secondaryColor, c = Mr(t, Ji), l = j.useRef(), d = ze;
2265
+ if (i && (d = {
2266
+ primaryColor: i,
2267
+ secondaryColor: s || Rr(i)
2268
+ }), Qi(l), Xi(Hn(n), "icon should be icon definiton, but got ".concat(n)), !Hn(n))
2269
+ return null;
2270
+ var u = n;
2271
+ return u && typeof u.icon == "function" && (u = ne(ne({}, u), {}, {
2272
+ icon: u.icon(d.primaryColor, d.secondaryColor)
2273
+ })), Kt(u.icon, "svg-".concat(u.name), ne(ne({
2274
+ className: r,
2275
+ onClick: o,
2276
+ style: a,
2277
+ "data-icon": u.name,
2278
+ width: "1em",
2279
+ height: "1em",
2280
+ fill: "currentColor",
2281
+ "aria-hidden": "true"
2282
+ }, c), {}, {
2283
+ ref: l
2284
+ }));
2285
+ };
2286
+ yt.displayName = "IconReact";
2287
+ yt.getTwoToneColors = ts;
2288
+ yt.setTwoToneColors = es;
2289
+ const un = yt;
2290
+ function jr(e) {
2291
+ var t = _r(e), n = Ar(t, 2), r = n[0], o = n[1];
2292
+ return un.setTwoToneColors({
2293
+ primaryColor: r,
2294
+ secondaryColor: o
2295
+ });
2296
+ }
2297
+ function ns() {
2298
+ var e = un.getTwoToneColors();
2299
+ return e.calculated ? [e.primaryColor, e.secondaryColor] : e.primaryColor;
2300
+ }
2301
+ var rs = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
2302
+ jr($i.primary);
2303
+ var bt = /* @__PURE__ */ j.forwardRef(function(e, t) {
2304
+ var n, r = e.className, o = e.icon, a = e.spin, i = e.rotate, s = e.tabIndex, c = e.onClick, l = e.twoToneColor, d = Mr(e, rs), u = j.useContext(Or), f = u.prefixCls, h = f === void 0 ? "anticon" : f, m = u.rootClassName, x = yi(m, h, (n = {}, Ht(n, "".concat(h, "-").concat(o.name), !!o.name), Ht(n, "".concat(h, "-spin"), !!a || o.name === "loading"), n), r), M = s;
2305
+ M === void 0 && c && (M = -1);
2306
+ var v = i ? {
2307
+ msTransform: "rotate(".concat(i, "deg)"),
2308
+ transform: "rotate(".concat(i, "deg)")
2309
+ } : void 0, S = _r(l), k = Ar(S, 2), E = k[0], A = k[1];
2310
+ return /* @__PURE__ */ j.createElement("span", pe({
2311
+ role: "img",
2312
+ "aria-label": o.name
2313
+ }, d, {
2314
+ ref: t,
2315
+ tabIndex: M,
2316
+ onClick: c,
2317
+ className: x
2318
+ }), /* @__PURE__ */ j.createElement(un, {
2319
+ icon: o,
2320
+ primaryColor: E,
2321
+ secondaryColor: A,
2322
+ style: v
2323
+ }));
2324
+ });
2325
+ bt.displayName = "AntdIcon";
2326
+ bt.getTwoToneColor = ns;
2327
+ bt.setTwoToneColor = jr;
2328
+ const vt = bt;
2329
+ var os = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z" } }] }, name: "delete", theme: "outlined" };
2330
+ const as = os;
2331
+ var Lr = function(t, n) {
2332
+ return /* @__PURE__ */ j.createElement(vt, pe({}, t, {
2333
+ ref: n,
2334
+ icon: as
2335
+ }));
2336
+ };
2337
+ process.env.NODE_ENV !== "production" && (Lr.displayName = "DeleteOutlined");
2338
+ const is = /* @__PURE__ */ j.forwardRef(Lr);
2339
+ var ss = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z" } }] }, name: "edit", theme: "outlined" };
2340
+ const cs = ss;
2341
+ var Gr = function(t, n) {
2342
+ return /* @__PURE__ */ j.createElement(vt, pe({}, t, {
2343
+ ref: n,
2344
+ icon: cs
2345
+ }));
2346
+ };
2347
+ process.env.NODE_ENV !== "production" && (Gr.displayName = "EditOutlined");
2348
+ const ls = /* @__PURE__ */ j.forwardRef(Gr);
2349
+ var us = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" } }, { tag: "path", attrs: { d: "M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" } }] }, name: "plus", theme: "outlined" };
2350
+ const fs = us;
2351
+ var qr = function(t, n) {
2352
+ return /* @__PURE__ */ j.createElement(vt, pe({}, t, {
2353
+ ref: n,
2354
+ icon: fs
2355
+ }));
2356
+ };
2357
+ process.env.NODE_ENV !== "production" && (qr.displayName = "PlusOutlined");
2358
+ const ds = /* @__PURE__ */ j.forwardRef(qr);
2359
+ var hs = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z" } }] }, name: "setting", theme: "outlined" };
2360
+ const ps = hs;
2361
+ var Br = function(t, n) {
2362
+ return /* @__PURE__ */ j.createElement(vt, pe({}, t, {
2363
+ ref: n,
2364
+ icon: ps
2365
+ }));
2366
+ };
2367
+ process.env.NODE_ENV !== "production" && (Br.displayName = "SettingOutlined");
2368
+ const gs = /* @__PURE__ */ j.forwardRef(Br), ms = K.div``, ys = K.div`
2369
+ min-height: 380px;
2370
+ `, bs = K.span`
2371
+ font-size: 12px;
2372
+ `, vs = K.div`
2373
+ &:hover {
2374
+ .ant-btn {
2375
+ display: block;
2376
+ }
2377
+ }
2378
+ .ant-btn {
2379
+ display: none;
2380
+ }
2381
+ `, ws = K.div`
2382
+ background-color: ${(e) => e.$color};
2383
+ width: 12px;
2384
+ height: 12px;
2385
+ border: 1px solid #fff;
2386
+ border-radius: 4px;
2387
+ `, xs = ({
2388
+ data: e = [],
2389
+ onChange: t = () => {
2390
+ },
2391
+ ...n
2392
+ }) => {
2393
+ const [r, o] = U([]), { t: a } = Ae();
2394
+ oe(() => {
2395
+ e.length > 0 && o([e[0].id]);
2396
+ }, []);
2397
+ const i = le(() => e.map((f) => ({
2398
+ key: f.id,
2399
+ label: /* @__PURE__ */ p(vs, { children: /* @__PURE__ */ P(Qe, { justify: "space-between", align: "center", children: [
2400
+ /* @__PURE__ */ P(F, { children: [
2401
+ /* @__PURE__ */ p("span", { children: f.title }),
2402
+ f.data.length ? /* @__PURE__ */ P(bs, { children: [
2403
+ "(",
2404
+ f.data.length,
2405
+ ")"
2406
+ ] }) : null
2407
+ ] }),
2408
+ /* @__PURE__ */ P(F, { size: 8, children: [
2409
+ /* @__PURE__ */ p(ws, { $color: f.color }),
2410
+ /* @__PURE__ */ p(
2411
+ Cs,
2412
+ {
2413
+ data: f,
2414
+ onSaved: (h) => c(f.id, h)
2415
+ }
2416
+ ),
2417
+ /* @__PURE__ */ p(
2418
+ Ho,
2419
+ {
2420
+ title: a("confirmDelete"),
2421
+ onConfirm: () => l(f.id),
2422
+ children: /* @__PURE__ */ p(
2423
+ Q,
2424
+ {
2425
+ danger: !0,
2426
+ size: "small",
2427
+ icon: /* @__PURE__ */ p(is, {}),
2428
+ type: "text"
2429
+ }
2430
+ )
2431
+ }
2432
+ )
2433
+ ] })
2434
+ ] }) })
2435
+ })), [e]), s = le(() => {
2436
+ const f = r[0];
2437
+ if (f) {
2438
+ const h = e.find((m) => m.id === f);
2439
+ if (h)
2440
+ return h.data;
2441
+ }
2442
+ return !1;
2443
+ }, [r, e]);
2444
+ function c(f, h) {
2445
+ const m = [...e], x = m.findIndex((M) => M.id === f);
2446
+ ~x && (m[x] = {
2447
+ ...m[x],
2448
+ ...h
2449
+ }), t(m);
2450
+ }
2451
+ function l(f) {
2452
+ const h = [...e].filter((m) => m.id !== f);
2453
+ t(h);
2454
+ }
2455
+ function d(f) {
2456
+ const h = [...e], m = r[0];
2457
+ if (m) {
2458
+ const x = h.find((M) => M.id === m);
2459
+ x && (x.data = f);
2460
+ }
2461
+ t(h);
2462
+ }
2463
+ function u(f) {
2464
+ const h = Jo(), m = [...e];
2465
+ m.push({
2466
+ id: h,
2467
+ color: f.color,
2468
+ title: f.title,
2469
+ data: []
2470
+ }), t(m), o([h]);
2471
+ }
2472
+ return i.length === 0 ? /* @__PURE__ */ P(Qe, { vertical: !0, align: "center", gap: 8, children: [
2473
+ /* @__PURE__ */ p(Zn, { description: a("noData") }),
2474
+ /* @__PURE__ */ p(Wn, { onCreate: u })
2475
+ ] }) : /* @__PURE__ */ p(ms, { children: /* @__PURE__ */ P(Qe, { gap: 16, children: [
2476
+ /* @__PURE__ */ P(F, { direction: "vertical", children: [
2477
+ /* @__PURE__ */ p(ys, { children: /* @__PURE__ */ p(
2478
+ Vo,
2479
+ {
2480
+ items: i,
2481
+ style: { width: 300 },
2482
+ selectedKeys: r,
2483
+ onSelect: ({ key: f }) => {
2484
+ o([f]);
2485
+ }
2486
+ }
2487
+ ) }),
2488
+ /* @__PURE__ */ p(Wn, { onCreate: u, block: !0 })
2489
+ ] }),
2490
+ s ? /* @__PURE__ */ p(
2491
+ ii,
2492
+ {
2493
+ data: s,
2494
+ onChange: d,
2495
+ ...n
2496
+ }
2497
+ ) : /* @__PURE__ */ p(
2498
+ Wo,
2499
+ {
2500
+ type: "info",
2501
+ message: a("selectAGroupFirst"),
2502
+ style: { height: 60, minWidth: 400 }
2503
+ }
2504
+ )
2505
+ ] }) });
2506
+ };
2507
+ function Cs(e) {
2508
+ const [t, n] = U({ title: "", color: "" });
2509
+ return /* @__PURE__ */ p(
2510
+ Hr,
2511
+ {
2512
+ isEdit: !1,
2513
+ onCompleteChange: e.onSaved,
2514
+ data: t,
2515
+ onOpenChange: (r) => {
2516
+ r && n(e.data);
2517
+ },
2518
+ onDataChange: (r) => n(r),
2519
+ children: /* @__PURE__ */ p(Q, { size: "small", icon: /* @__PURE__ */ p(ls, {}), type: "text" })
2520
+ }
2521
+ );
2522
+ }
2523
+ function Wn(e) {
2524
+ const { t } = Ae(), n = {
2525
+ title: "",
2526
+ color: "#1677FF"
2527
+ }, [r, o] = U({
2528
+ ...n
2529
+ });
2530
+ return /* @__PURE__ */ p(
2531
+ Hr,
2532
+ {
2533
+ isEdit: !1,
2534
+ onCompleteChange: e.onCreate,
2535
+ data: r,
2536
+ onOpenChange: (a) => {
2537
+ a && o({
2538
+ ...n
2539
+ });
2540
+ },
2541
+ onDataChange: (a) => o(a),
2542
+ children: /* @__PURE__ */ p(Q, { block: !!e.block, icon: /* @__PURE__ */ p(ds, {}), children: t("addNewGroup") })
2543
+ }
2544
+ );
2545
+ }
2546
+ function Hr(e) {
2547
+ const [t, n] = U(!1), [r, o] = U(""), a = en(null), { t: i } = Ae();
2548
+ oe(() => {
2549
+ e.onOpenChange(t);
2550
+ }, [t]), oe(() => {
2551
+ t ? (o(e.data.color), setTimeout(() => {
2552
+ var l;
2553
+ (l = a.current) == null || l.focus();
2554
+ }, 300)) : o("");
2555
+ }, [e.data]);
2556
+ function s() {
2557
+ e.data.title.trim().length !== 0 && (e.onCompleteChange({
2558
+ title: e.data.title.trim(),
2559
+ color: e.data.color
2560
+ }), n(!1));
2561
+ }
2562
+ function c(l, d) {
2563
+ e.onDataChange({
2564
+ ...e.data,
2565
+ [l]: d
2566
+ });
2567
+ }
2568
+ return /* @__PURE__ */ p(Qt, { children: /* @__PURE__ */ p(
2569
+ Yn,
2570
+ {
2571
+ title: e.isEdit ? i("editGroup") : i("createGroup"),
2572
+ open: t,
2573
+ onOpenChange: n,
2574
+ trigger: ["click"],
2575
+ content: /* @__PURE__ */ P(F, { direction: "vertical", size: 16, children: [
2576
+ /* @__PURE__ */ P(F, { size: 16, children: [
2577
+ /* @__PURE__ */ P("span", { children: [
2578
+ i("titleFieldName"),
2579
+ ":"
2580
+ ] }),
2581
+ /* @__PURE__ */ p(
2582
+ Ft,
2583
+ {
2584
+ ref: a,
2585
+ showCount: !0,
2586
+ maxLength: 20,
2587
+ value: e.data.title,
2588
+ onChange: (l) => c("title", l.target.value)
2589
+ }
2590
+ )
2591
+ ] }),
2592
+ /* @__PURE__ */ P(F, { size: 16, children: [
2593
+ /* @__PURE__ */ P("span", { children: [
2594
+ i("colorFieldName"),
2595
+ ":"
2596
+ ] }),
2597
+ r && /* @__PURE__ */ p(
2598
+ Uo,
2599
+ {
2600
+ value: r,
2601
+ onChange: (l) => o(`#${l.toHex()}`),
2602
+ showText: !0,
2603
+ onChangeComplete: (l) => {
2604
+ c("color", `#${l.toHex()}`);
2605
+ }
2606
+ }
2607
+ )
2608
+ ] }),
2609
+ /* @__PURE__ */ p(Q, { block: !0, type: "primary", onClick: s, children: e.isEdit ? i("create") : i("save") })
2610
+ ] }),
2611
+ children: e.children
2612
+ }
2613
+ ) });
2614
+ }
2615
+ const ks = ({ open: e, onOpenChange: t = () => {
2616
+ }, children: n, ...r }) => {
2617
+ const [o, a] = U(e), { t: i } = Ae();
2618
+ return oe(() => {
2619
+ a(!!e);
2620
+ }, [e]), /* @__PURE__ */ P(Qt, { children: [
2621
+ /* @__PURE__ */ p(
2622
+ Xn,
2623
+ {
2624
+ title: i("quickMessageConfigs"),
2625
+ open: o,
2626
+ onCancel: () => {
2627
+ a(!1), t(!1);
2628
+ },
2629
+ width: 980,
2630
+ footer: null,
2631
+ children: /* @__PURE__ */ p(xs, { ...r })
2632
+ }
2633
+ ),
2634
+ /* @__PURE__ */ p(
2635
+ "span",
2636
+ {
2637
+ onClick: () => {
2638
+ a(!0), t(!0);
2639
+ },
2640
+ children: n
2641
+ }
2642
+ )
2643
+ ] });
2644
+ };
2645
+ var Vr = { exports: {} }, Wr = {
2646
+ aliceblue: [240, 248, 255],
2647
+ antiquewhite: [250, 235, 215],
2648
+ aqua: [0, 255, 255],
2649
+ aquamarine: [127, 255, 212],
2650
+ azure: [240, 255, 255],
2651
+ beige: [245, 245, 220],
2652
+ bisque: [255, 228, 196],
2653
+ black: [0, 0, 0],
2654
+ blanchedalmond: [255, 235, 205],
2655
+ blue: [0, 0, 255],
2656
+ blueviolet: [138, 43, 226],
2657
+ brown: [165, 42, 42],
2658
+ burlywood: [222, 184, 135],
2659
+ cadetblue: [95, 158, 160],
2660
+ chartreuse: [127, 255, 0],
2661
+ chocolate: [210, 105, 30],
2662
+ coral: [255, 127, 80],
2663
+ cornflowerblue: [100, 149, 237],
2664
+ cornsilk: [255, 248, 220],
2665
+ crimson: [220, 20, 60],
2666
+ cyan: [0, 255, 255],
2667
+ darkblue: [0, 0, 139],
2668
+ darkcyan: [0, 139, 139],
2669
+ darkgoldenrod: [184, 134, 11],
2670
+ darkgray: [169, 169, 169],
2671
+ darkgreen: [0, 100, 0],
2672
+ darkgrey: [169, 169, 169],
2673
+ darkkhaki: [189, 183, 107],
2674
+ darkmagenta: [139, 0, 139],
2675
+ darkolivegreen: [85, 107, 47],
2676
+ darkorange: [255, 140, 0],
2677
+ darkorchid: [153, 50, 204],
2678
+ darkred: [139, 0, 0],
2679
+ darksalmon: [233, 150, 122],
2680
+ darkseagreen: [143, 188, 143],
2681
+ darkslateblue: [72, 61, 139],
2682
+ darkslategray: [47, 79, 79],
2683
+ darkslategrey: [47, 79, 79],
2684
+ darkturquoise: [0, 206, 209],
2685
+ darkviolet: [148, 0, 211],
2686
+ deeppink: [255, 20, 147],
2687
+ deepskyblue: [0, 191, 255],
2688
+ dimgray: [105, 105, 105],
2689
+ dimgrey: [105, 105, 105],
2690
+ dodgerblue: [30, 144, 255],
2691
+ firebrick: [178, 34, 34],
2692
+ floralwhite: [255, 250, 240],
2693
+ forestgreen: [34, 139, 34],
2694
+ fuchsia: [255, 0, 255],
2695
+ gainsboro: [220, 220, 220],
2696
+ ghostwhite: [248, 248, 255],
2697
+ gold: [255, 215, 0],
2698
+ goldenrod: [218, 165, 32],
2699
+ gray: [128, 128, 128],
2700
+ green: [0, 128, 0],
2701
+ greenyellow: [173, 255, 47],
2702
+ grey: [128, 128, 128],
2703
+ honeydew: [240, 255, 240],
2704
+ hotpink: [255, 105, 180],
2705
+ indianred: [205, 92, 92],
2706
+ indigo: [75, 0, 130],
2707
+ ivory: [255, 255, 240],
2708
+ khaki: [240, 230, 140],
2709
+ lavender: [230, 230, 250],
2710
+ lavenderblush: [255, 240, 245],
2711
+ lawngreen: [124, 252, 0],
2712
+ lemonchiffon: [255, 250, 205],
2713
+ lightblue: [173, 216, 230],
2714
+ lightcoral: [240, 128, 128],
2715
+ lightcyan: [224, 255, 255],
2716
+ lightgoldenrodyellow: [250, 250, 210],
2717
+ lightgray: [211, 211, 211],
2718
+ lightgreen: [144, 238, 144],
2719
+ lightgrey: [211, 211, 211],
2720
+ lightpink: [255, 182, 193],
2721
+ lightsalmon: [255, 160, 122],
2722
+ lightseagreen: [32, 178, 170],
2723
+ lightskyblue: [135, 206, 250],
2724
+ lightslategray: [119, 136, 153],
2725
+ lightslategrey: [119, 136, 153],
2726
+ lightsteelblue: [176, 196, 222],
2727
+ lightyellow: [255, 255, 224],
2728
+ lime: [0, 255, 0],
2729
+ limegreen: [50, 205, 50],
2730
+ linen: [250, 240, 230],
2731
+ magenta: [255, 0, 255],
2732
+ maroon: [128, 0, 0],
2733
+ mediumaquamarine: [102, 205, 170],
2734
+ mediumblue: [0, 0, 205],
2735
+ mediumorchid: [186, 85, 211],
2736
+ mediumpurple: [147, 112, 219],
2737
+ mediumseagreen: [60, 179, 113],
2738
+ mediumslateblue: [123, 104, 238],
2739
+ mediumspringgreen: [0, 250, 154],
2740
+ mediumturquoise: [72, 209, 204],
2741
+ mediumvioletred: [199, 21, 133],
2742
+ midnightblue: [25, 25, 112],
2743
+ mintcream: [245, 255, 250],
2744
+ mistyrose: [255, 228, 225],
2745
+ moccasin: [255, 228, 181],
2746
+ navajowhite: [255, 222, 173],
2747
+ navy: [0, 0, 128],
2748
+ oldlace: [253, 245, 230],
2749
+ olive: [128, 128, 0],
2750
+ olivedrab: [107, 142, 35],
2751
+ orange: [255, 165, 0],
2752
+ orangered: [255, 69, 0],
2753
+ orchid: [218, 112, 214],
2754
+ palegoldenrod: [238, 232, 170],
2755
+ palegreen: [152, 251, 152],
2756
+ paleturquoise: [175, 238, 238],
2757
+ palevioletred: [219, 112, 147],
2758
+ papayawhip: [255, 239, 213],
2759
+ peachpuff: [255, 218, 185],
2760
+ peru: [205, 133, 63],
2761
+ pink: [255, 192, 203],
2762
+ plum: [221, 160, 221],
2763
+ powderblue: [176, 224, 230],
2764
+ purple: [128, 0, 128],
2765
+ rebeccapurple: [102, 51, 153],
2766
+ red: [255, 0, 0],
2767
+ rosybrown: [188, 143, 143],
2768
+ royalblue: [65, 105, 225],
2769
+ saddlebrown: [139, 69, 19],
2770
+ salmon: [250, 128, 114],
2771
+ sandybrown: [244, 164, 96],
2772
+ seagreen: [46, 139, 87],
2773
+ seashell: [255, 245, 238],
2774
+ sienna: [160, 82, 45],
2775
+ silver: [192, 192, 192],
2776
+ skyblue: [135, 206, 235],
2777
+ slateblue: [106, 90, 205],
2778
+ slategray: [112, 128, 144],
2779
+ slategrey: [112, 128, 144],
2780
+ snow: [255, 250, 250],
2781
+ springgreen: [0, 255, 127],
2782
+ steelblue: [70, 130, 180],
2783
+ tan: [210, 180, 140],
2784
+ teal: [0, 128, 128],
2785
+ thistle: [216, 191, 216],
2786
+ tomato: [255, 99, 71],
2787
+ turquoise: [64, 224, 208],
2788
+ violet: [238, 130, 238],
2789
+ wheat: [245, 222, 179],
2790
+ white: [255, 255, 255],
2791
+ whitesmoke: [245, 245, 245],
2792
+ yellow: [255, 255, 0],
2793
+ yellowgreen: [154, 205, 50]
2794
+ }, Ur = { exports: {} }, Ss = function(t) {
2795
+ return !t || typeof t == "string" ? !1 : t instanceof Array || Array.isArray(t) || t.length >= 0 && (t.splice instanceof Function || Object.getOwnPropertyDescriptor(t, t.length - 1) && t.constructor.name !== "String");
2796
+ }, Es = Ss, Os = Array.prototype.concat, As = Array.prototype.slice, Un = Ur.exports = function(t) {
2797
+ for (var n = [], r = 0, o = t.length; r < o; r++) {
2798
+ var a = t[r];
2799
+ Es(a) ? n = Os.call(n, As.call(a)) : n.push(a);
2800
+ }
2801
+ return n;
2802
+ };
2803
+ Un.wrap = function(e) {
2804
+ return function() {
2805
+ return e(Un(arguments));
2806
+ };
2807
+ };
2808
+ var Ms = Ur.exports, Re = Wr, je = Ms, Kr = Object.hasOwnProperty, Yr = /* @__PURE__ */ Object.create(null);
2809
+ for (var $t in Re)
2810
+ Kr.call(Re, $t) && (Yr[Re[$t]] = $t);
2811
+ var L = Vr.exports = {
2812
+ to: {},
2813
+ get: {}
2814
+ };
2815
+ L.get = function(e) {
2816
+ var t = e.substring(0, 3).toLowerCase(), n, r;
2817
+ switch (t) {
2818
+ case "hsl":
2819
+ n = L.get.hsl(e), r = "hsl";
2820
+ break;
2821
+ case "hwb":
2822
+ n = L.get.hwb(e), r = "hwb";
2823
+ break;
2824
+ default:
2825
+ n = L.get.rgb(e), r = "rgb";
2826
+ break;
2827
+ }
2828
+ return n ? { model: r, value: n } : null;
2829
+ };
2830
+ L.get.rgb = function(e) {
2831
+ if (!e)
2832
+ return null;
2833
+ var t = /^#([a-f0-9]{3,4})$/i, n = /^#([a-f0-9]{6})([a-f0-9]{2})?$/i, r = /^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/, o = /^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/, a = /^(\w+)$/, i = [0, 0, 0, 1], s, c, l;
2834
+ if (s = e.match(n)) {
2835
+ for (l = s[2], s = s[1], c = 0; c < 3; c++) {
2836
+ var d = c * 2;
2837
+ i[c] = parseInt(s.slice(d, d + 2), 16);
2838
+ }
2839
+ l && (i[3] = parseInt(l, 16) / 255);
2840
+ } else if (s = e.match(t)) {
2841
+ for (s = s[1], l = s[3], c = 0; c < 3; c++)
2842
+ i[c] = parseInt(s[c] + s[c], 16);
2843
+ l && (i[3] = parseInt(l + l, 16) / 255);
2844
+ } else if (s = e.match(r)) {
2845
+ for (c = 0; c < 3; c++)
2846
+ i[c] = parseInt(s[c + 1], 0);
2847
+ s[4] && (s[5] ? i[3] = parseFloat(s[4]) * 0.01 : i[3] = parseFloat(s[4]));
2848
+ } else if (s = e.match(o)) {
2849
+ for (c = 0; c < 3; c++)
2850
+ i[c] = Math.round(parseFloat(s[c + 1]) * 2.55);
2851
+ s[4] && (s[5] ? i[3] = parseFloat(s[4]) * 0.01 : i[3] = parseFloat(s[4]));
2852
+ } else
2853
+ return (s = e.match(a)) ? s[1] === "transparent" ? [0, 0, 0, 0] : Kr.call(Re, s[1]) ? (i = Re[s[1]], i[3] = 1, i) : null : null;
2854
+ for (c = 0; c < 3; c++)
2855
+ i[c] = re(i[c], 0, 255);
2856
+ return i[3] = re(i[3], 0, 1), i;
2857
+ };
2858
+ L.get.hsl = function(e) {
2859
+ if (!e)
2860
+ return null;
2861
+ var t = /^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/, n = e.match(t);
2862
+ if (n) {
2863
+ var r = parseFloat(n[4]), o = (parseFloat(n[1]) % 360 + 360) % 360, a = re(parseFloat(n[2]), 0, 100), i = re(parseFloat(n[3]), 0, 100), s = re(isNaN(r) ? 1 : r, 0, 1);
2864
+ return [o, a, i, s];
2865
+ }
2866
+ return null;
2867
+ };
2868
+ L.get.hwb = function(e) {
2869
+ if (!e)
2870
+ return null;
2871
+ var t = /^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/, n = e.match(t);
2872
+ if (n) {
2873
+ var r = parseFloat(n[4]), o = (parseFloat(n[1]) % 360 + 360) % 360, a = re(parseFloat(n[2]), 0, 100), i = re(parseFloat(n[3]), 0, 100), s = re(isNaN(r) ? 1 : r, 0, 1);
2874
+ return [o, a, i, s];
2875
+ }
2876
+ return null;
2877
+ };
2878
+ L.to.hex = function() {
2879
+ var e = je(arguments);
2880
+ return "#" + Ze(e[0]) + Ze(e[1]) + Ze(e[2]) + (e[3] < 1 ? Ze(Math.round(e[3] * 255)) : "");
2881
+ };
2882
+ L.to.rgb = function() {
2883
+ var e = je(arguments);
2884
+ return e.length < 4 || e[3] === 1 ? "rgb(" + Math.round(e[0]) + ", " + Math.round(e[1]) + ", " + Math.round(e[2]) + ")" : "rgba(" + Math.round(e[0]) + ", " + Math.round(e[1]) + ", " + Math.round(e[2]) + ", " + e[3] + ")";
2885
+ };
2886
+ L.to.rgb.percent = function() {
2887
+ var e = je(arguments), t = Math.round(e[0] / 255 * 100), n = Math.round(e[1] / 255 * 100), r = Math.round(e[2] / 255 * 100);
2888
+ return e.length < 4 || e[3] === 1 ? "rgb(" + t + "%, " + n + "%, " + r + "%)" : "rgba(" + t + "%, " + n + "%, " + r + "%, " + e[3] + ")";
2889
+ };
2890
+ L.to.hsl = function() {
2891
+ var e = je(arguments);
2892
+ return e.length < 4 || e[3] === 1 ? "hsl(" + e[0] + ", " + e[1] + "%, " + e[2] + "%)" : "hsla(" + e[0] + ", " + e[1] + "%, " + e[2] + "%, " + e[3] + ")";
2893
+ };
2894
+ L.to.hwb = function() {
2895
+ var e = je(arguments), t = "";
2896
+ return e.length >= 4 && e[3] !== 1 && (t = ", " + e[3]), "hwb(" + e[0] + ", " + e[1] + "%, " + e[2] + "%" + t + ")";
2897
+ };
2898
+ L.to.keyword = function(e) {
2899
+ return Yr[e.slice(0, 3)];
2900
+ };
2901
+ function re(e, t, n) {
2902
+ return Math.min(Math.max(t, e), n);
2903
+ }
2904
+ function Ze(e) {
2905
+ var t = Math.round(e).toString(16).toUpperCase();
2906
+ return t.length < 2 ? "0" + t : t;
2907
+ }
2908
+ var Ns = Vr.exports;
2909
+ const _e = Wr, Xr = {};
2910
+ for (const e of Object.keys(_e))
2911
+ Xr[_e[e]] = e;
2912
+ const g = {
2913
+ rgb: { channels: 3, labels: "rgb" },
2914
+ hsl: { channels: 3, labels: "hsl" },
2915
+ hsv: { channels: 3, labels: "hsv" },
2916
+ hwb: { channels: 3, labels: "hwb" },
2917
+ cmyk: { channels: 4, labels: "cmyk" },
2918
+ xyz: { channels: 3, labels: "xyz" },
2919
+ lab: { channels: 3, labels: "lab" },
2920
+ lch: { channels: 3, labels: "lch" },
2921
+ hex: { channels: 1, labels: ["hex"] },
2922
+ keyword: { channels: 1, labels: ["keyword"] },
2923
+ ansi16: { channels: 1, labels: ["ansi16"] },
2924
+ ansi256: { channels: 1, labels: ["ansi256"] },
2925
+ hcg: { channels: 3, labels: ["h", "c", "g"] },
2926
+ apple: { channels: 3, labels: ["r16", "g16", "b16"] },
2927
+ gray: { channels: 1, labels: ["gray"] }
2928
+ };
2929
+ var Zr = g;
2930
+ for (const e of Object.keys(g)) {
2931
+ if (!("channels" in g[e]))
2932
+ throw new Error("missing channels property: " + e);
2933
+ if (!("labels" in g[e]))
2934
+ throw new Error("missing channel labels property: " + e);
2935
+ if (g[e].labels.length !== g[e].channels)
2936
+ throw new Error("channel and label counts mismatch: " + e);
2937
+ const { channels: t, labels: n } = g[e];
2938
+ delete g[e].channels, delete g[e].labels, Object.defineProperty(g[e], "channels", { value: t }), Object.defineProperty(g[e], "labels", { value: n });
2939
+ }
2940
+ g.rgb.hsl = function(e) {
2941
+ const t = e[0] / 255, n = e[1] / 255, r = e[2] / 255, o = Math.min(t, n, r), a = Math.max(t, n, r), i = a - o;
2942
+ let s, c;
2943
+ a === o ? s = 0 : t === a ? s = (n - r) / i : n === a ? s = 2 + (r - t) / i : r === a && (s = 4 + (t - n) / i), s = Math.min(s * 60, 360), s < 0 && (s += 360);
2944
+ const l = (o + a) / 2;
2945
+ return a === o ? c = 0 : l <= 0.5 ? c = i / (a + o) : c = i / (2 - a - o), [s, c * 100, l * 100];
2946
+ };
2947
+ g.rgb.hsv = function(e) {
2948
+ let t, n, r, o, a;
2949
+ const i = e[0] / 255, s = e[1] / 255, c = e[2] / 255, l = Math.max(i, s, c), d = l - Math.min(i, s, c), u = function(f) {
2950
+ return (l - f) / 6 / d + 1 / 2;
2951
+ };
2952
+ return d === 0 ? (o = 0, a = 0) : (a = d / l, t = u(i), n = u(s), r = u(c), i === l ? o = r - n : s === l ? o = 1 / 3 + t - r : c === l && (o = 2 / 3 + n - t), o < 0 ? o += 1 : o > 1 && (o -= 1)), [
2953
+ o * 360,
2954
+ a * 100,
2955
+ l * 100
2956
+ ];
2957
+ };
2958
+ g.rgb.hwb = function(e) {
2959
+ const t = e[0], n = e[1];
2960
+ let r = e[2];
2961
+ const o = g.rgb.hsl(e)[0], a = 1 / 255 * Math.min(t, Math.min(n, r));
2962
+ return r = 1 - 1 / 255 * Math.max(t, Math.max(n, r)), [o, a * 100, r * 100];
2963
+ };
2964
+ g.rgb.cmyk = function(e) {
2965
+ const t = e[0] / 255, n = e[1] / 255, r = e[2] / 255, o = Math.min(1 - t, 1 - n, 1 - r), a = (1 - t - o) / (1 - o) || 0, i = (1 - n - o) / (1 - o) || 0, s = (1 - r - o) / (1 - o) || 0;
2966
+ return [a * 100, i * 100, s * 100, o * 100];
2967
+ };
2968
+ function Ps(e, t) {
2969
+ return (e[0] - t[0]) ** 2 + (e[1] - t[1]) ** 2 + (e[2] - t[2]) ** 2;
2970
+ }
2971
+ g.rgb.keyword = function(e) {
2972
+ const t = Xr[e];
2973
+ if (t)
2974
+ return t;
2975
+ let n = 1 / 0, r;
2976
+ for (const o of Object.keys(_e)) {
2977
+ const a = _e[o], i = Ps(e, a);
2978
+ i < n && (n = i, r = o);
2979
+ }
2980
+ return r;
2981
+ };
2982
+ g.keyword.rgb = function(e) {
2983
+ return _e[e];
2984
+ };
2985
+ g.rgb.xyz = function(e) {
2986
+ let t = e[0] / 255, n = e[1] / 255, r = e[2] / 255;
2987
+ t = t > 0.04045 ? ((t + 0.055) / 1.055) ** 2.4 : t / 12.92, n = n > 0.04045 ? ((n + 0.055) / 1.055) ** 2.4 : n / 12.92, r = r > 0.04045 ? ((r + 0.055) / 1.055) ** 2.4 : r / 12.92;
2988
+ const o = t * 0.4124 + n * 0.3576 + r * 0.1805, a = t * 0.2126 + n * 0.7152 + r * 0.0722, i = t * 0.0193 + n * 0.1192 + r * 0.9505;
2989
+ return [o * 100, a * 100, i * 100];
2990
+ };
2991
+ g.rgb.lab = function(e) {
2992
+ const t = g.rgb.xyz(e);
2993
+ let n = t[0], r = t[1], o = t[2];
2994
+ n /= 95.047, r /= 100, o /= 108.883, n = n > 8856e-6 ? n ** (1 / 3) : 7.787 * n + 16 / 116, r = r > 8856e-6 ? r ** (1 / 3) : 7.787 * r + 16 / 116, o = o > 8856e-6 ? o ** (1 / 3) : 7.787 * o + 16 / 116;
2995
+ const a = 116 * r - 16, i = 500 * (n - r), s = 200 * (r - o);
2996
+ return [a, i, s];
2997
+ };
2998
+ g.hsl.rgb = function(e) {
2999
+ const t = e[0] / 360, n = e[1] / 100, r = e[2] / 100;
3000
+ let o, a, i;
3001
+ if (n === 0)
3002
+ return i = r * 255, [i, i, i];
3003
+ r < 0.5 ? o = r * (1 + n) : o = r + n - r * n;
3004
+ const s = 2 * r - o, c = [0, 0, 0];
3005
+ for (let l = 0; l < 3; l++)
3006
+ a = t + 1 / 3 * -(l - 1), a < 0 && a++, a > 1 && a--, 6 * a < 1 ? i = s + (o - s) * 6 * a : 2 * a < 1 ? i = o : 3 * a < 2 ? i = s + (o - s) * (2 / 3 - a) * 6 : i = s, c[l] = i * 255;
3007
+ return c;
3008
+ };
3009
+ g.hsl.hsv = function(e) {
3010
+ const t = e[0];
3011
+ let n = e[1] / 100, r = e[2] / 100, o = n;
3012
+ const a = Math.max(r, 0.01);
3013
+ r *= 2, n *= r <= 1 ? r : 2 - r, o *= a <= 1 ? a : 2 - a;
3014
+ const i = (r + n) / 2, s = r === 0 ? 2 * o / (a + o) : 2 * n / (r + n);
3015
+ return [t, s * 100, i * 100];
3016
+ };
3017
+ g.hsv.rgb = function(e) {
3018
+ const t = e[0] / 60, n = e[1] / 100;
3019
+ let r = e[2] / 100;
3020
+ const o = Math.floor(t) % 6, a = t - Math.floor(t), i = 255 * r * (1 - n), s = 255 * r * (1 - n * a), c = 255 * r * (1 - n * (1 - a));
3021
+ switch (r *= 255, o) {
3022
+ case 0:
3023
+ return [r, c, i];
3024
+ case 1:
3025
+ return [s, r, i];
3026
+ case 2:
3027
+ return [i, r, c];
3028
+ case 3:
3029
+ return [i, s, r];
3030
+ case 4:
3031
+ return [c, i, r];
3032
+ case 5:
3033
+ return [r, i, s];
3034
+ }
3035
+ };
3036
+ g.hsv.hsl = function(e) {
3037
+ const t = e[0], n = e[1] / 100, r = e[2] / 100, o = Math.max(r, 0.01);
3038
+ let a, i;
3039
+ i = (2 - n) * r;
3040
+ const s = (2 - n) * o;
3041
+ return a = n * o, a /= s <= 1 ? s : 2 - s, a = a || 0, i /= 2, [t, a * 100, i * 100];
3042
+ };
3043
+ g.hwb.rgb = function(e) {
3044
+ const t = e[0] / 360;
3045
+ let n = e[1] / 100, r = e[2] / 100;
3046
+ const o = n + r;
3047
+ let a;
3048
+ o > 1 && (n /= o, r /= o);
3049
+ const i = Math.floor(6 * t), s = 1 - r;
3050
+ a = 6 * t - i, i & 1 && (a = 1 - a);
3051
+ const c = n + a * (s - n);
3052
+ let l, d, u;
3053
+ switch (i) {
3054
+ default:
3055
+ case 6:
3056
+ case 0:
3057
+ l = s, d = c, u = n;
3058
+ break;
3059
+ case 1:
3060
+ l = c, d = s, u = n;
3061
+ break;
3062
+ case 2:
3063
+ l = n, d = s, u = c;
3064
+ break;
3065
+ case 3:
3066
+ l = n, d = c, u = s;
3067
+ break;
3068
+ case 4:
3069
+ l = c, d = n, u = s;
3070
+ break;
3071
+ case 5:
3072
+ l = s, d = n, u = c;
3073
+ break;
3074
+ }
3075
+ return [l * 255, d * 255, u * 255];
3076
+ };
3077
+ g.cmyk.rgb = function(e) {
3078
+ const t = e[0] / 100, n = e[1] / 100, r = e[2] / 100, o = e[3] / 100, a = 1 - Math.min(1, t * (1 - o) + o), i = 1 - Math.min(1, n * (1 - o) + o), s = 1 - Math.min(1, r * (1 - o) + o);
3079
+ return [a * 255, i * 255, s * 255];
3080
+ };
3081
+ g.xyz.rgb = function(e) {
3082
+ const t = e[0] / 100, n = e[1] / 100, r = e[2] / 100;
3083
+ let o, a, i;
3084
+ return o = t * 3.2406 + n * -1.5372 + r * -0.4986, a = t * -0.9689 + n * 1.8758 + r * 0.0415, i = t * 0.0557 + n * -0.204 + r * 1.057, o = o > 31308e-7 ? 1.055 * o ** (1 / 2.4) - 0.055 : o * 12.92, a = a > 31308e-7 ? 1.055 * a ** (1 / 2.4) - 0.055 : a * 12.92, i = i > 31308e-7 ? 1.055 * i ** (1 / 2.4) - 0.055 : i * 12.92, o = Math.min(Math.max(0, o), 1), a = Math.min(Math.max(0, a), 1), i = Math.min(Math.max(0, i), 1), [o * 255, a * 255, i * 255];
3085
+ };
3086
+ g.xyz.lab = function(e) {
3087
+ let t = e[0], n = e[1], r = e[2];
3088
+ t /= 95.047, n /= 100, r /= 108.883, t = t > 8856e-6 ? t ** (1 / 3) : 7.787 * t + 16 / 116, n = n > 8856e-6 ? n ** (1 / 3) : 7.787 * n + 16 / 116, r = r > 8856e-6 ? r ** (1 / 3) : 7.787 * r + 16 / 116;
3089
+ const o = 116 * n - 16, a = 500 * (t - n), i = 200 * (n - r);
3090
+ return [o, a, i];
3091
+ };
3092
+ g.lab.xyz = function(e) {
3093
+ const t = e[0], n = e[1], r = e[2];
3094
+ let o, a, i;
3095
+ a = (t + 16) / 116, o = n / 500 + a, i = a - r / 200;
3096
+ const s = a ** 3, c = o ** 3, l = i ** 3;
3097
+ return a = s > 8856e-6 ? s : (a - 16 / 116) / 7.787, o = c > 8856e-6 ? c : (o - 16 / 116) / 7.787, i = l > 8856e-6 ? l : (i - 16 / 116) / 7.787, o *= 95.047, a *= 100, i *= 108.883, [o, a, i];
3098
+ };
3099
+ g.lab.lch = function(e) {
3100
+ const t = e[0], n = e[1], r = e[2];
3101
+ let o;
3102
+ o = Math.atan2(r, n) * 360 / 2 / Math.PI, o < 0 && (o += 360);
3103
+ const i = Math.sqrt(n * n + r * r);
3104
+ return [t, i, o];
3105
+ };
3106
+ g.lch.lab = function(e) {
3107
+ const t = e[0], n = e[1], o = e[2] / 360 * 2 * Math.PI, a = n * Math.cos(o), i = n * Math.sin(o);
3108
+ return [t, a, i];
3109
+ };
3110
+ g.rgb.ansi16 = function(e, t = null) {
3111
+ const [n, r, o] = e;
3112
+ let a = t === null ? g.rgb.hsv(e)[2] : t;
3113
+ if (a = Math.round(a / 50), a === 0)
3114
+ return 30;
3115
+ let i = 30 + (Math.round(o / 255) << 2 | Math.round(r / 255) << 1 | Math.round(n / 255));
3116
+ return a === 2 && (i += 60), i;
3117
+ };
3118
+ g.hsv.ansi16 = function(e) {
3119
+ return g.rgb.ansi16(g.hsv.rgb(e), e[2]);
3120
+ };
3121
+ g.rgb.ansi256 = function(e) {
3122
+ const t = e[0], n = e[1], r = e[2];
3123
+ return t === n && n === r ? t < 8 ? 16 : t > 248 ? 231 : Math.round((t - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(t / 255 * 5) + 6 * Math.round(n / 255 * 5) + Math.round(r / 255 * 5);
3124
+ };
3125
+ g.ansi16.rgb = function(e) {
3126
+ let t = e % 10;
3127
+ if (t === 0 || t === 7)
3128
+ return e > 50 && (t += 3.5), t = t / 10.5 * 255, [t, t, t];
3129
+ const n = (~~(e > 50) + 1) * 0.5, r = (t & 1) * n * 255, o = (t >> 1 & 1) * n * 255, a = (t >> 2 & 1) * n * 255;
3130
+ return [r, o, a];
3131
+ };
3132
+ g.ansi256.rgb = function(e) {
3133
+ if (e >= 232) {
3134
+ const a = (e - 232) * 10 + 8;
3135
+ return [a, a, a];
3136
+ }
3137
+ e -= 16;
3138
+ let t;
3139
+ const n = Math.floor(e / 36) / 5 * 255, r = Math.floor((t = e % 36) / 6) / 5 * 255, o = t % 6 / 5 * 255;
3140
+ return [n, r, o];
3141
+ };
3142
+ g.rgb.hex = function(e) {
3143
+ const n = (((Math.round(e[0]) & 255) << 16) + ((Math.round(e[1]) & 255) << 8) + (Math.round(e[2]) & 255)).toString(16).toUpperCase();
3144
+ return "000000".substring(n.length) + n;
3145
+ };
3146
+ g.hex.rgb = function(e) {
3147
+ const t = e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
3148
+ if (!t)
3149
+ return [0, 0, 0];
3150
+ let n = t[0];
3151
+ t[0].length === 3 && (n = n.split("").map((s) => s + s).join(""));
3152
+ const r = parseInt(n, 16), o = r >> 16 & 255, a = r >> 8 & 255, i = r & 255;
3153
+ return [o, a, i];
3154
+ };
3155
+ g.rgb.hcg = function(e) {
3156
+ const t = e[0] / 255, n = e[1] / 255, r = e[2] / 255, o = Math.max(Math.max(t, n), r), a = Math.min(Math.min(t, n), r), i = o - a;
3157
+ let s, c;
3158
+ return i < 1 ? s = a / (1 - i) : s = 0, i <= 0 ? c = 0 : o === t ? c = (n - r) / i % 6 : o === n ? c = 2 + (r - t) / i : c = 4 + (t - n) / i, c /= 6, c %= 1, [c * 360, i * 100, s * 100];
3159
+ };
3160
+ g.hsl.hcg = function(e) {
3161
+ const t = e[1] / 100, n = e[2] / 100, r = n < 0.5 ? 2 * t * n : 2 * t * (1 - n);
3162
+ let o = 0;
3163
+ return r < 1 && (o = (n - 0.5 * r) / (1 - r)), [e[0], r * 100, o * 100];
3164
+ };
3165
+ g.hsv.hcg = function(e) {
3166
+ const t = e[1] / 100, n = e[2] / 100, r = t * n;
3167
+ let o = 0;
3168
+ return r < 1 && (o = (n - r) / (1 - r)), [e[0], r * 100, o * 100];
3169
+ };
3170
+ g.hcg.rgb = function(e) {
3171
+ const t = e[0] / 360, n = e[1] / 100, r = e[2] / 100;
3172
+ if (n === 0)
3173
+ return [r * 255, r * 255, r * 255];
3174
+ const o = [0, 0, 0], a = t % 1 * 6, i = a % 1, s = 1 - i;
3175
+ let c = 0;
3176
+ switch (Math.floor(a)) {
3177
+ case 0:
3178
+ o[0] = 1, o[1] = i, o[2] = 0;
3179
+ break;
3180
+ case 1:
3181
+ o[0] = s, o[1] = 1, o[2] = 0;
3182
+ break;
3183
+ case 2:
3184
+ o[0] = 0, o[1] = 1, o[2] = i;
3185
+ break;
3186
+ case 3:
3187
+ o[0] = 0, o[1] = s, o[2] = 1;
3188
+ break;
3189
+ case 4:
3190
+ o[0] = i, o[1] = 0, o[2] = 1;
3191
+ break;
3192
+ default:
3193
+ o[0] = 1, o[1] = 0, o[2] = s;
3194
+ }
3195
+ return c = (1 - n) * r, [
3196
+ (n * o[0] + c) * 255,
3197
+ (n * o[1] + c) * 255,
3198
+ (n * o[2] + c) * 255
3199
+ ];
3200
+ };
3201
+ g.hcg.hsv = function(e) {
3202
+ const t = e[1] / 100, n = e[2] / 100, r = t + n * (1 - t);
3203
+ let o = 0;
3204
+ return r > 0 && (o = t / r), [e[0], o * 100, r * 100];
3205
+ };
3206
+ g.hcg.hsl = function(e) {
3207
+ const t = e[1] / 100, r = e[2] / 100 * (1 - t) + 0.5 * t;
3208
+ let o = 0;
3209
+ return r > 0 && r < 0.5 ? o = t / (2 * r) : r >= 0.5 && r < 1 && (o = t / (2 * (1 - r))), [e[0], o * 100, r * 100];
3210
+ };
3211
+ g.hcg.hwb = function(e) {
3212
+ const t = e[1] / 100, n = e[2] / 100, r = t + n * (1 - t);
3213
+ return [e[0], (r - t) * 100, (1 - r) * 100];
3214
+ };
3215
+ g.hwb.hcg = function(e) {
3216
+ const t = e[1] / 100, r = 1 - e[2] / 100, o = r - t;
3217
+ let a = 0;
3218
+ return o < 1 && (a = (r - o) / (1 - o)), [e[0], o * 100, a * 100];
3219
+ };
3220
+ g.apple.rgb = function(e) {
3221
+ return [e[0] / 65535 * 255, e[1] / 65535 * 255, e[2] / 65535 * 255];
3222
+ };
3223
+ g.rgb.apple = function(e) {
3224
+ return [e[0] / 255 * 65535, e[1] / 255 * 65535, e[2] / 255 * 65535];
3225
+ };
3226
+ g.gray.rgb = function(e) {
3227
+ return [e[0] / 100 * 255, e[0] / 100 * 255, e[0] / 100 * 255];
3228
+ };
3229
+ g.gray.hsl = function(e) {
3230
+ return [0, 0, e[0]];
3231
+ };
3232
+ g.gray.hsv = g.gray.hsl;
3233
+ g.gray.hwb = function(e) {
3234
+ return [0, 100, e[0]];
3235
+ };
3236
+ g.gray.cmyk = function(e) {
3237
+ return [0, 0, 0, e[0]];
3238
+ };
3239
+ g.gray.lab = function(e) {
3240
+ return [e[0], 0, 0];
3241
+ };
3242
+ g.gray.hex = function(e) {
3243
+ const t = Math.round(e[0] / 100 * 255) & 255, r = ((t << 16) + (t << 8) + t).toString(16).toUpperCase();
3244
+ return "000000".substring(r.length) + r;
3245
+ };
3246
+ g.rgb.gray = function(e) {
3247
+ return [(e[0] + e[1] + e[2]) / 3 / 255 * 100];
3248
+ };
3249
+ const st = Zr;
3250
+ function Ts() {
3251
+ const e = {}, t = Object.keys(st);
3252
+ for (let n = t.length, r = 0; r < n; r++)
3253
+ e[t[r]] = {
3254
+ // http://jsperf.com/1-vs-infinity
3255
+ // micro-opt, but this is simple.
3256
+ distance: -1,
3257
+ parent: null
3258
+ };
3259
+ return e;
3260
+ }
3261
+ function Ds(e) {
3262
+ const t = Ts(), n = [e];
3263
+ for (t[e].distance = 0; n.length; ) {
3264
+ const r = n.pop(), o = Object.keys(st[r]);
3265
+ for (let a = o.length, i = 0; i < a; i++) {
3266
+ const s = o[i], c = t[s];
3267
+ c.distance === -1 && (c.distance = t[r].distance + 1, c.parent = r, n.unshift(s));
3268
+ }
3269
+ }
3270
+ return t;
3271
+ }
3272
+ function Is(e, t) {
3273
+ return function(n) {
3274
+ return t(e(n));
3275
+ };
3276
+ }
3277
+ function $s(e, t) {
3278
+ const n = [t[e].parent, e];
3279
+ let r = st[t[e].parent][e], o = t[e].parent;
3280
+ for (; t[o].parent; )
3281
+ n.unshift(t[o].parent), r = Is(st[t[o].parent][o], r), o = t[o].parent;
3282
+ return r.conversion = n, r;
3283
+ }
3284
+ var Fs = function(e) {
3285
+ const t = Ds(e), n = {}, r = Object.keys(t);
3286
+ for (let o = r.length, a = 0; a < o; a++) {
3287
+ const i = r[a];
3288
+ t[i].parent !== null && (n[i] = $s(i, t));
3289
+ }
3290
+ return n;
3291
+ };
3292
+ const Yt = Zr, zs = Fs, ve = {}, Rs = Object.keys(Yt);
3293
+ function _s(e) {
3294
+ const t = function(...n) {
3295
+ const r = n[0];
3296
+ return r == null ? r : (r.length > 1 && (n = r), e(n));
3297
+ };
3298
+ return "conversion" in e && (t.conversion = e.conversion), t;
3299
+ }
3300
+ function js(e) {
3301
+ const t = function(...n) {
3302
+ const r = n[0];
3303
+ if (r == null)
3304
+ return r;
3305
+ r.length > 1 && (n = r);
3306
+ const o = e(n);
3307
+ if (typeof o == "object")
3308
+ for (let a = o.length, i = 0; i < a; i++)
3309
+ o[i] = Math.round(o[i]);
3310
+ return o;
3311
+ };
3312
+ return "conversion" in e && (t.conversion = e.conversion), t;
3313
+ }
3314
+ Rs.forEach((e) => {
3315
+ ve[e] = {}, Object.defineProperty(ve[e], "channels", { value: Yt[e].channels }), Object.defineProperty(ve[e], "labels", { value: Yt[e].labels });
3316
+ const t = zs(e);
3317
+ Object.keys(t).forEach((r) => {
3318
+ const o = t[r];
3319
+ ve[e][r] = js(o), ve[e][r].raw = _s(o);
3320
+ });
3321
+ });
3322
+ var Ls = ve;
3323
+ const we = Ns, _ = Ls, Qr = [
3324
+ // To be honest, I don't really feel like keyword belongs in color convert, but eh.
3325
+ "keyword",
3326
+ // Gray conflicts with some method names, and has its own method defined.
3327
+ "gray",
3328
+ // Shouldn't really be in color-convert either...
3329
+ "hex"
3330
+ ], Xt = {};
3331
+ for (const e of Object.keys(_))
3332
+ Xt[[..._[e].labels].sort().join("")] = e;
3333
+ const ct = {};
3334
+ function $(e, t) {
3335
+ if (!(this instanceof $))
3336
+ return new $(e, t);
3337
+ if (t && t in Qr && (t = null), t && !(t in _))
3338
+ throw new Error("Unknown model: " + t);
3339
+ let n, r;
3340
+ if (e == null)
3341
+ this.model = "rgb", this.color = [0, 0, 0], this.valpha = 1;
3342
+ else if (e instanceof $)
3343
+ this.model = e.model, this.color = [...e.color], this.valpha = e.valpha;
3344
+ else if (typeof e == "string") {
3345
+ const o = we.get(e);
3346
+ if (o === null)
3347
+ throw new Error("Unable to parse color from string: " + e);
3348
+ this.model = o.model, r = _[this.model].channels, this.color = o.value.slice(0, r), this.valpha = typeof o.value[r] == "number" ? o.value[r] : 1;
3349
+ } else if (e.length > 0) {
3350
+ this.model = t || "rgb", r = _[this.model].channels;
3351
+ const o = Array.prototype.slice.call(e, 0, r);
3352
+ this.color = Zt(o, r), this.valpha = typeof e[r] == "number" ? e[r] : 1;
3353
+ } else if (typeof e == "number")
3354
+ this.model = "rgb", this.color = [
3355
+ e >> 16 & 255,
3356
+ e >> 8 & 255,
3357
+ e & 255
3358
+ ], this.valpha = 1;
3359
+ else {
3360
+ this.valpha = 1;
3361
+ const o = Object.keys(e);
3362
+ "alpha" in e && (o.splice(o.indexOf("alpha"), 1), this.valpha = typeof e.alpha == "number" ? e.alpha : 0);
3363
+ const a = o.sort().join("");
3364
+ if (!(a in Xt))
3365
+ throw new Error("Unable to parse color from object: " + JSON.stringify(e));
3366
+ this.model = Xt[a];
3367
+ const { labels: i } = _[this.model], s = [];
3368
+ for (n = 0; n < i.length; n++)
3369
+ s.push(e[i[n]]);
3370
+ this.color = Zt(s);
3371
+ }
3372
+ if (ct[this.model])
3373
+ for (r = _[this.model].channels, n = 0; n < r; n++) {
3374
+ const o = ct[this.model][n];
3375
+ o && (this.color[n] = o(this.color[n]));
3376
+ }
3377
+ this.valpha = Math.max(0, Math.min(1, this.valpha)), Object.freeze && Object.freeze(this);
3378
+ }
3379
+ $.prototype = {
3380
+ toString() {
3381
+ return this.string();
3382
+ },
3383
+ toJSON() {
3384
+ return this[this.model]();
3385
+ },
3386
+ string(e) {
3387
+ let t = this.model in we.to ? this : this.rgb();
3388
+ t = t.round(typeof e == "number" ? e : 1);
3389
+ const n = t.valpha === 1 ? t.color : [...t.color, this.valpha];
3390
+ return we.to[t.model](n);
3391
+ },
3392
+ percentString(e) {
3393
+ const t = this.rgb().round(typeof e == "number" ? e : 1), n = t.valpha === 1 ? t.color : [...t.color, this.valpha];
3394
+ return we.to.rgb.percent(n);
3395
+ },
3396
+ array() {
3397
+ return this.valpha === 1 ? [...this.color] : [...this.color, this.valpha];
3398
+ },
3399
+ object() {
3400
+ const e = {}, { channels: t } = _[this.model], { labels: n } = _[this.model];
3401
+ for (let r = 0; r < t; r++)
3402
+ e[n[r]] = this.color[r];
3403
+ return this.valpha !== 1 && (e.alpha = this.valpha), e;
3404
+ },
3405
+ unitArray() {
3406
+ const e = this.rgb().color;
3407
+ return e[0] /= 255, e[1] /= 255, e[2] /= 255, this.valpha !== 1 && e.push(this.valpha), e;
3408
+ },
3409
+ unitObject() {
3410
+ const e = this.rgb().object();
3411
+ return e.r /= 255, e.g /= 255, e.b /= 255, this.valpha !== 1 && (e.alpha = this.valpha), e;
3412
+ },
3413
+ round(e) {
3414
+ return e = Math.max(e || 0, 0), new $([...this.color.map(qs(e)), this.valpha], this.model);
3415
+ },
3416
+ alpha(e) {
3417
+ return e !== void 0 ? new $([...this.color, Math.max(0, Math.min(1, e))], this.model) : this.valpha;
3418
+ },
3419
+ // Rgb
3420
+ red: N("rgb", 0, D(255)),
3421
+ green: N("rgb", 1, D(255)),
3422
+ blue: N("rgb", 2, D(255)),
3423
+ hue: N(["hsl", "hsv", "hsl", "hwb", "hcg"], 0, (e) => (e % 360 + 360) % 360),
3424
+ saturationl: N("hsl", 1, D(100)),
3425
+ lightness: N("hsl", 2, D(100)),
3426
+ saturationv: N("hsv", 1, D(100)),
3427
+ value: N("hsv", 2, D(100)),
3428
+ chroma: N("hcg", 1, D(100)),
3429
+ gray: N("hcg", 2, D(100)),
3430
+ white: N("hwb", 1, D(100)),
3431
+ wblack: N("hwb", 2, D(100)),
3432
+ cyan: N("cmyk", 0, D(100)),
3433
+ magenta: N("cmyk", 1, D(100)),
3434
+ yellow: N("cmyk", 2, D(100)),
3435
+ black: N("cmyk", 3, D(100)),
3436
+ x: N("xyz", 0, D(95.047)),
3437
+ y: N("xyz", 1, D(100)),
3438
+ z: N("xyz", 2, D(108.833)),
3439
+ l: N("lab", 0, D(100)),
3440
+ a: N("lab", 1),
3441
+ b: N("lab", 2),
3442
+ keyword(e) {
3443
+ return e !== void 0 ? new $(e) : _[this.model].keyword(this.color);
3444
+ },
3445
+ hex(e) {
3446
+ return e !== void 0 ? new $(e) : we.to.hex(this.rgb().round().color);
3447
+ },
3448
+ hexa(e) {
3449
+ if (e !== void 0)
3450
+ return new $(e);
3451
+ const t = this.rgb().round().color;
3452
+ let n = Math.round(this.valpha * 255).toString(16).toUpperCase();
3453
+ return n.length === 1 && (n = "0" + n), we.to.hex(t) + n;
3454
+ },
3455
+ rgbNumber() {
3456
+ const e = this.rgb().color;
3457
+ return (e[0] & 255) << 16 | (e[1] & 255) << 8 | e[2] & 255;
3458
+ },
3459
+ luminosity() {
3460
+ const e = this.rgb().color, t = [];
3461
+ for (const [n, r] of e.entries()) {
3462
+ const o = r / 255;
3463
+ t[n] = o <= 0.04045 ? o / 12.92 : ((o + 0.055) / 1.055) ** 2.4;
3464
+ }
3465
+ return 0.2126 * t[0] + 0.7152 * t[1] + 0.0722 * t[2];
3466
+ },
3467
+ contrast(e) {
3468
+ const t = this.luminosity(), n = e.luminosity();
3469
+ return t > n ? (t + 0.05) / (n + 0.05) : (n + 0.05) / (t + 0.05);
3470
+ },
3471
+ level(e) {
3472
+ const t = this.contrast(e);
3473
+ return t >= 7 ? "AAA" : t >= 4.5 ? "AA" : "";
3474
+ },
3475
+ isDark() {
3476
+ const e = this.rgb().color;
3477
+ return (e[0] * 2126 + e[1] * 7152 + e[2] * 722) / 1e4 < 128;
3478
+ },
3479
+ isLight() {
3480
+ return !this.isDark();
3481
+ },
3482
+ negate() {
3483
+ const e = this.rgb();
3484
+ for (let t = 0; t < 3; t++)
3485
+ e.color[t] = 255 - e.color[t];
3486
+ return e;
3487
+ },
3488
+ lighten(e) {
3489
+ const t = this.hsl();
3490
+ return t.color[2] += t.color[2] * e, t;
3491
+ },
3492
+ darken(e) {
3493
+ const t = this.hsl();
3494
+ return t.color[2] -= t.color[2] * e, t;
3495
+ },
3496
+ saturate(e) {
3497
+ const t = this.hsl();
3498
+ return t.color[1] += t.color[1] * e, t;
3499
+ },
3500
+ desaturate(e) {
3501
+ const t = this.hsl();
3502
+ return t.color[1] -= t.color[1] * e, t;
3503
+ },
3504
+ whiten(e) {
3505
+ const t = this.hwb();
3506
+ return t.color[1] += t.color[1] * e, t;
3507
+ },
3508
+ blacken(e) {
3509
+ const t = this.hwb();
3510
+ return t.color[2] += t.color[2] * e, t;
3511
+ },
3512
+ grayscale() {
3513
+ const e = this.rgb().color, t = e[0] * 0.3 + e[1] * 0.59 + e[2] * 0.11;
3514
+ return $.rgb(t, t, t);
3515
+ },
3516
+ fade(e) {
3517
+ return this.alpha(this.valpha - this.valpha * e);
3518
+ },
3519
+ opaquer(e) {
3520
+ return this.alpha(this.valpha + this.valpha * e);
3521
+ },
3522
+ rotate(e) {
3523
+ const t = this.hsl();
3524
+ let n = t.color[0];
3525
+ return n = (n + e) % 360, n = n < 0 ? 360 + n : n, t.color[0] = n, t;
3526
+ },
3527
+ mix(e, t) {
3528
+ if (!e || !e.rgb)
3529
+ throw new Error('Argument to "mix" was not a Color instance, but rather an instance of ' + typeof e);
3530
+ const n = e.rgb(), r = this.rgb(), o = t === void 0 ? 0.5 : t, a = 2 * o - 1, i = n.alpha() - r.alpha(), s = ((a * i === -1 ? a : (a + i) / (1 + a * i)) + 1) / 2, c = 1 - s;
3531
+ return $.rgb(
3532
+ s * n.red() + c * r.red(),
3533
+ s * n.green() + c * r.green(),
3534
+ s * n.blue() + c * r.blue(),
3535
+ n.alpha() * o + r.alpha() * (1 - o)
3536
+ );
3537
+ }
3538
+ };
3539
+ for (const e of Object.keys(_)) {
3540
+ if (Qr.includes(e))
3541
+ continue;
3542
+ const { channels: t } = _[e];
3543
+ $.prototype[e] = function(...n) {
3544
+ return this.model === e ? new $(this) : n.length > 0 ? new $(n, e) : new $([...Bs(_[this.model][e].raw(this.color)), this.valpha], e);
3545
+ }, $[e] = function(...n) {
3546
+ let r = n[0];
3547
+ return typeof r == "number" && (r = Zt(n, t)), new $(r, e);
3548
+ };
3549
+ }
3550
+ function Gs(e, t) {
3551
+ return Number(e.toFixed(t));
3552
+ }
3553
+ function qs(e) {
3554
+ return function(t) {
3555
+ return Gs(t, e);
3556
+ };
3557
+ }
3558
+ function N(e, t, n) {
3559
+ e = Array.isArray(e) ? e : [e];
3560
+ for (const r of e)
3561
+ (ct[r] || (ct[r] = []))[t] = n;
3562
+ return e = e[0], function(r) {
3563
+ let o;
3564
+ return r !== void 0 ? (n && (r = n(r)), o = this[e](), o.color[t] = r, o) : (o = this[e]().color[t], n && (o = n(o)), o);
3565
+ };
3566
+ }
3567
+ function D(e) {
3568
+ return function(t) {
3569
+ return Math.max(0, Math.min(e, t));
3570
+ };
3571
+ }
3572
+ function Bs(e) {
3573
+ return Array.isArray(e) ? e : [e];
3574
+ }
3575
+ function Zt(e, t) {
3576
+ for (let n = 0; n < t; n++)
3577
+ typeof e[n] != "number" && (e[n] = 0);
3578
+ return e;
3579
+ }
3580
+ var Hs = $;
3581
+ const Vs = /* @__PURE__ */ tr(Hs), Ws = K.div`
3582
+ font-size: 14px;
3583
+ background: #dae5f8;
3584
+ padding: 0 4px;
3585
+ border-radius: 2px;
3586
+ cursor: pointer;
3587
+ min-width: 20px;
3588
+ user-select: none;
3589
+
3590
+ &:hover {
3591
+ background-color: #bcd0f3;
3592
+ }
3593
+
3594
+ &:active {
3595
+ background-color: #9dbcf3;
3596
+ }
3597
+ `, Us = K.div`
3598
+ min-height: 18px;
3599
+ `, uc = ({
3600
+ data: e = [],
3601
+ onChange: t,
3602
+ tableHeight: n,
3603
+ limitation: r,
3604
+ displayTitleMaxLength: o = 10,
3605
+ displayMaxLength: a = 99,
3606
+ SlotContentPrefixSlot: i,
3607
+ SlotContentSuffixSlot: s,
3608
+ onSelect: c = () => {
3609
+ }
3610
+ }) => {
3611
+ const [l, d] = U(!1), [u, f] = U(""), { t: h } = Ae(), m = le(() => e.find((v) => v.id === u), [u, e]), x = le(() => m ? m.data : [], [m, e]), M = le(() => e.length === 0, [e]);
3612
+ return oe(() => {
3613
+ e.length > 0 && f(e[0].id);
3614
+ }, []), /* @__PURE__ */ P(Qt, { children: [
3615
+ M ? /* @__PURE__ */ p(
3616
+ Q,
3617
+ {
3618
+ size: "small",
3619
+ type: "primary",
3620
+ onClick: () => d(!0),
3621
+ children: h("create")
3622
+ }
3623
+ ) : /* @__PURE__ */ P(F, { size: 2, direction: "vertical", children: [
3624
+ /* @__PURE__ */ p(Us, { children: /* @__PURE__ */ p(F, { size: 8, children: x.slice(0, a).map((v) => /* @__PURE__ */ P(
3625
+ Ws,
3626
+ {
3627
+ title: v.label,
3628
+ onClick: (S) => {
3629
+ S.target.closest("bdi") || c(v);
3630
+ },
3631
+ children: [
3632
+ i && /* @__PURE__ */ p("bdi", { children: /* @__PURE__ */ p(
3633
+ i,
3634
+ {
3635
+ group: m,
3636
+ message: v
3637
+ }
3638
+ ) }),
3639
+ Jn(v.label, o),
3640
+ s && /* @__PURE__ */ P("bdi", { children: [
3641
+ /* @__PURE__ */ p(
3642
+ s,
3643
+ {
3644
+ group: m,
3645
+ message: v
3646
+ }
3647
+ ),
3648
+ " "
3649
+ ] })
3650
+ ]
3651
+ },
3652
+ v.label
3653
+ )) }) }),
3654
+ /* @__PURE__ */ P(F, { size: 8, children: [
3655
+ e.slice(0, a).map((v) => /* @__PURE__ */ p(
3656
+ Ys,
3657
+ {
3658
+ data: v,
3659
+ active: u === v.id,
3660
+ displayTitleMaxLength: o,
3661
+ onClick: () => f(v.id)
3662
+ },
3663
+ v.id
3664
+ )),
3665
+ /* @__PURE__ */ p(
3666
+ Q,
3667
+ {
3668
+ size: "small",
3669
+ type: "text",
3670
+ onClick: () => d(!0),
3671
+ children: /* @__PURE__ */ p(gs, {})
3672
+ }
3673
+ )
3674
+ ] })
3675
+ ] }),
3676
+ /* @__PURE__ */ p(
3677
+ ks,
3678
+ {
3679
+ open: l,
3680
+ onOpenChange: d,
3681
+ data: e,
3682
+ onChange: t,
3683
+ tableHeight: n,
3684
+ limitation: r
3685
+ }
3686
+ )
3687
+ ] });
3688
+ }, Ks = K.div`
3689
+ background-color: ${(e) => e.$backgroundColor};
3690
+ color: ${(e) => e.$textColor};
3691
+ border: 1px solid transparent;
3692
+ border-color: ${(e) => e.$active ? "#ccc" : "transparent"};
3693
+ padding: 0px 4px;
3694
+ font-size: 14px;
3695
+ border-radius: 2px;
3696
+ cursor: pointer;
3697
+ min-width: 20px;
3698
+ user-select: none;
3699
+ &:hover {
3700
+ background-color: ${(e) => e.$hoverColor};
3701
+ }
3702
+ &:active {
3703
+ opacity: 0.6;
3704
+ }
3705
+ `;
3706
+ function Ys(e) {
3707
+ const t = le(() => {
3708
+ var a, i;
3709
+ const n = Vs(e.data.color), r = n.isDark(), o = r ? (a = n.lighten(0.2)) == null ? void 0 : a.hex() : (i = n.darken(0.15)) == null ? void 0 : i.hex();
3710
+ return {
3711
+ $textColor: r ? "#fff" : "#333",
3712
+ $backgroundColor: e.data.color,
3713
+ $hoverColor: o
3714
+ };
3715
+ }, [e.data.color]);
3716
+ return /* @__PURE__ */ p(
3717
+ Ks,
3718
+ {
3719
+ ...t,
3720
+ $active: e.active,
3721
+ "data-id": e.data.id,
3722
+ onClick: e.onClick,
3723
+ title: e.data.title,
3724
+ children: Jn(e.data.title, e.displayTitleMaxLength)
3725
+ }
3726
+ );
3727
+ }
3728
+ /*! This file was generated by vite-i18n-gen-resources-type check https://github.com/CRMChatReactComponent/vite-i18n-gen-resources-type. Please do not modify. */
3729
+ var Jr = /* @__PURE__ */ ((e) => (e.ZH_CN = "zh-CN", e.EN_US = "en-US", e))(Jr || {});
3730
+ const eo = "Are you sure to delete it?", to = "No data available", no = "Select a Group first", ro = "Create a Group", oo = "Edit Group", ao = "Create Group", io = "Title", so = "Color", co = "Save", lo = "Create", uo = "Quick Messages Configs", fo = "Created Successfully", ho = "Cannot be saved: title already existing", po = "Cannot be saved: title is empty", go = "Cannot be saved: content is empty", mo = "Content", Xs = {
3731
+ confirmDelete: eo,
3732
+ noData: to,
3733
+ selectAGroupFirst: no,
3734
+ addNewGroup: ro,
3735
+ editGroup: oo,
3736
+ createGroup: ao,
3737
+ titleFieldName: io,
3738
+ colorFieldName: so,
3739
+ save: co,
3740
+ create: lo,
3741
+ quickMessageConfigs: uo,
3742
+ createSuccessfully: fo,
3743
+ cannotSavedMessageCuzLabelExisted: ho,
3744
+ cannotSavedMessageCuzLabelEmpty: po,
3745
+ cannotSavedMessageCuzContentEmpty: go,
3746
+ content: mo,
3747
+ delete: "Delete"
3748
+ }, Zs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3749
+ __proto__: null,
3750
+ addNewGroup: ro,
3751
+ cannotSavedMessageCuzContentEmpty: go,
3752
+ cannotSavedMessageCuzLabelEmpty: po,
3753
+ cannotSavedMessageCuzLabelExisted: ho,
3754
+ colorFieldName: so,
3755
+ confirmDelete: eo,
3756
+ content: mo,
3757
+ create: lo,
3758
+ createGroup: ao,
3759
+ createSuccessfully: fo,
3760
+ default: Xs,
3761
+ editGroup: oo,
3762
+ noData: to,
3763
+ quickMessageConfigs: uo,
3764
+ save: co,
3765
+ selectAGroupFirst: no,
3766
+ titleFieldName: io
3767
+ }, Symbol.toStringTag, { value: "Module" })), yo = "确定删除吗?", bo = "没有数据", vo = "请在左侧选择一个分组", wo = "添加一个分组", xo = "编辑分组", Co = "新建分组", ko = "标题", So = "颜色", Eo = "保存", Oo = "创建", Ao = "快捷消息配置", Mo = "创建成功", No = "无法保存: 标题重复", Po = "无法保存: 标题不能为空", To = "无法保存: 内容不能为空", Do = "内容", Qs = {
3768
+ confirmDelete: yo,
3769
+ noData: bo,
3770
+ selectAGroupFirst: vo,
3771
+ addNewGroup: wo,
3772
+ editGroup: xo,
3773
+ createGroup: Co,
3774
+ titleFieldName: ko,
3775
+ colorFieldName: So,
3776
+ save: Eo,
3777
+ create: Oo,
3778
+ quickMessageConfigs: Ao,
3779
+ createSuccessfully: Mo,
3780
+ cannotSavedMessageCuzLabelExisted: No,
3781
+ cannotSavedMessageCuzLabelEmpty: Po,
3782
+ cannotSavedMessageCuzContentEmpty: To,
3783
+ content: Do,
3784
+ delete: "删除"
3785
+ }, Js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3786
+ __proto__: null,
3787
+ addNewGroup: wo,
3788
+ cannotSavedMessageCuzContentEmpty: To,
3789
+ cannotSavedMessageCuzLabelEmpty: Po,
3790
+ cannotSavedMessageCuzLabelExisted: No,
3791
+ colorFieldName: So,
3792
+ confirmDelete: yo,
3793
+ content: Do,
3794
+ create: Oo,
3795
+ createGroup: Co,
3796
+ createSuccessfully: Mo,
3797
+ default: Qs,
3798
+ editGroup: xo,
3799
+ noData: bo,
3800
+ quickMessageConfigs: Ao,
3801
+ save: Eo,
3802
+ selectAGroupFirst: vo,
3803
+ titleFieldName: ko
3804
+ }, Symbol.toStringTag, { value: "Module" })), ec = /* @__PURE__ */ Object.assign({
3805
+ "./locales/en-US/common.json": Zs,
3806
+ "./locales/zh-CN/common.json": Js
3807
+ }), Kn = Object.entries(ec).reduce(
3808
+ (e, t) => {
3809
+ const [n, r] = t, o = n.match(/\/locales\/([\w-]+)\//), a = n.match(/\/([\w-_]+)\.json$/);
3810
+ return a && o ? (e[o[1]] = e[o[1]] || {}, e[o[1]][a[1]] = r.default) : console.error(`无法解析文件名称 path:${n}`), e;
3811
+ },
3812
+ {}
3813
+ ), Io = Zo.createInstance();
3814
+ Io.init({
3815
+ lng: Jr.ZH_CN,
3816
+ debug: !1,
3817
+ ns: Object.keys(Kn),
3818
+ resources: Kn
3819
+ });
3820
+ const tc = Jt(null);
3821
+ function fc(e) {
3822
+ return /* @__PURE__ */ p(Xo, { i18n: Io, defaultNS: "common", children: /* @__PURE__ */ p(tc.Provider, { value: {}, children: e.children }) });
3823
+ }
3824
+ export {
3825
+ er as AntdApiContext,
3826
+ lc as AntdApiContextProviderCmp,
3827
+ cc as EmojiPickerWrapper,
3828
+ tc as I18nContext,
3829
+ fc as I18nContextCmp,
3830
+ xs as MessageConfigsPanel,
3831
+ ks as MessageConfigsPanelModalWrapper,
3832
+ ii as MessagesEditTable,
3833
+ uc as QuickMessages
3834
+ };