@nation-a/ui 0.1.2 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js DELETED
@@ -1,4203 +0,0 @@
1
- import { jsxs as he, jsx as O } from "react/jsx-runtime";
2
- import * as L from "react";
3
- import be, { createContext as Ct, useContext as Ke, forwardRef as D, useMemo as ce, memo as Cr, createElement as Pn, Children as je, isValidElement as Et, cloneElement as Je, useRef as Cn, useInsertionEffect as En, useCallback as On, useState as Tn, Fragment as An } from "react";
4
- const re = (...e) => e.filter(Boolean).map((t) => t.trim()).join(" ");
5
- function Rn(e, t) {
6
- return `${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`;
7
- }
8
- function Er(e = {}) {
9
- const {
10
- name: t,
11
- strict: r = !0,
12
- hookName: n = "useContext",
13
- providerName: o = "Provider",
14
- errorMessage: i,
15
- defaultValue: a
16
- } = e, s = Ct(a);
17
- s.displayName = t;
18
- function l() {
19
- var c;
20
- const f = Ke(s);
21
- if (!f && r) {
22
- const d = new Error(
23
- i ?? Rn(n, o)
24
- );
25
- throw d.name = "ContextError", (c = Error.captureStackTrace) == null || c.call(Error, d, l), d;
26
- }
27
- return f;
28
- }
29
- return [s.Provider, l, s];
30
- }
31
- function _n(...e) {
32
- return function(...r) {
33
- e.forEach((n) => n == null ? void 0 : n(...r));
34
- };
35
- }
36
- const $n = (...e) => e.map((t) => {
37
- var r;
38
- return (r = t == null ? void 0 : t.trim) == null ? void 0 : r.call(t);
39
- }).filter(Boolean).join(" "), Mn = /^on[A-Z]/;
40
- function Ot(...e) {
41
- let t = {};
42
- for (let r of e) {
43
- for (let n in t) {
44
- if (Mn.test(n) && typeof t[n] == "function" && typeof r[n] == "function") {
45
- t[n] = _n(t[n], r[n]);
46
- continue;
47
- }
48
- if (n === "className" || n === "class") {
49
- t[n] = $n(t[n], r[n]);
50
- continue;
51
- }
52
- if (n === "style") {
53
- t[n] = Object.assign({}, t[n] ?? {}, r[n] ?? {});
54
- continue;
55
- }
56
- t[n] = r[n] !== void 0 ? r[n] : t[n];
57
- }
58
- for (let n in r)
59
- t[n] === void 0 && (t[n] = r[n]);
60
- }
61
- return t;
62
- }
63
- const In = Object.freeze({}), Nn = Object.freeze(
64
- {}
65
- );
66
- function Or(e) {
67
- var t = /* @__PURE__ */ Object.create(null);
68
- return function(r) {
69
- return t[r] === void 0 && (t[r] = e(r)), t[r];
70
- };
71
- }
72
- var jn = /^((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|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|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)-.*))$/, Fn = /* @__PURE__ */ Or(
73
- function(e) {
74
- return jn.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
75
- }
76
- /* Z+1 */
77
- );
78
- function Wn(e) {
79
- if (e.sheet)
80
- return e.sheet;
81
- for (var t = 0; t < document.styleSheets.length; t++)
82
- if (document.styleSheets[t].ownerNode === e)
83
- return document.styleSheets[t];
84
- }
85
- function Bn(e) {
86
- var t = document.createElement("style");
87
- return t.setAttribute("data-emotion", e.key), e.nonce !== void 0 && t.setAttribute("nonce", e.nonce), t.appendChild(document.createTextNode("")), t.setAttribute("data-s", ""), t;
88
- }
89
- var zn = /* @__PURE__ */ function() {
90
- function e(r) {
91
- var n = this;
92
- this._insertTag = function(o) {
93
- var i;
94
- n.tags.length === 0 ? n.insertionPoint ? i = n.insertionPoint.nextSibling : n.prepend ? i = n.container.firstChild : i = n.before : i = n.tags[n.tags.length - 1].nextSibling, n.container.insertBefore(o, i), n.tags.push(o);
95
- }, this.isSpeedy = r.speedy === void 0 ? !0 : r.speedy, this.tags = [], this.ctr = 0, this.nonce = r.nonce, this.key = r.key, this.container = r.container, this.prepend = r.prepend, this.insertionPoint = r.insertionPoint, this.before = null;
96
- }
97
- var t = e.prototype;
98
- return t.hydrate = function(n) {
99
- n.forEach(this._insertTag);
100
- }, t.insert = function(n) {
101
- this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(Bn(this));
102
- var o = this.tags[this.tags.length - 1];
103
- if (this.isSpeedy) {
104
- var i = Wn(o);
105
- try {
106
- i.insertRule(n, i.cssRules.length);
107
- } catch {
108
- }
109
- } else
110
- o.appendChild(document.createTextNode(n));
111
- this.ctr++;
112
- }, t.flush = function() {
113
- this.tags.forEach(function(n) {
114
- var o;
115
- return (o = n.parentNode) == null ? void 0 : o.removeChild(n);
116
- }), this.tags = [], this.ctr = 0;
117
- }, e;
118
- }(), K = "-ms-", Ue = "-moz-", I = "-webkit-", Tr = "comm", Tt = "rule", At = "decl", Vn = "@import", Ar = "@keyframes", Ln = "@layer", Dn = Math.abs, Qe = String.fromCharCode, Hn = Object.assign;
119
- function Yn(e, t) {
120
- return q(e, 0) ^ 45 ? (((t << 2 ^ q(e, 0)) << 2 ^ q(e, 1)) << 2 ^ q(e, 2)) << 2 ^ q(e, 3) : 0;
121
- }
122
- function Rr(e) {
123
- return e.trim();
124
- }
125
- function Un(e, t) {
126
- return (e = t.exec(e)) ? e[0] : e;
127
- }
128
- function N(e, t, r) {
129
- return e.replace(t, r);
130
- }
131
- function yt(e, t) {
132
- return e.indexOf(t);
133
- }
134
- function q(e, t) {
135
- return e.charCodeAt(t) | 0;
136
- }
137
- function Me(e, t, r) {
138
- return e.slice(t, r);
139
- }
140
- function ue(e) {
141
- return e.length;
142
- }
143
- function Rt(e) {
144
- return e.length;
145
- }
146
- function We(e, t) {
147
- return t.push(e), e;
148
- }
149
- function Gn(e, t) {
150
- return e.map(t).join("");
151
- }
152
- var Ze = 1, Ee = 1, _r = 0, ne = 0, U = 0, Oe = "";
153
- function et(e, t, r, n, o, i, a) {
154
- return { value: e, root: t, parent: r, type: n, props: o, children: i, line: Ze, column: Ee, length: a, return: "" };
155
- }
156
- function Re(e, t) {
157
- return Hn(et("", null, null, "", null, null, 0), e, { length: -e.length }, t);
158
- }
159
- function Xn() {
160
- return U;
161
- }
162
- function qn() {
163
- return U = ne > 0 ? q(Oe, --ne) : 0, Ee--, U === 10 && (Ee = 1, Ze--), U;
164
- }
165
- function ae() {
166
- return U = ne < _r ? q(Oe, ne++) : 0, Ee++, U === 10 && (Ee = 1, Ze++), U;
167
- }
168
- function de() {
169
- return q(Oe, ne);
170
- }
171
- function Le() {
172
- return ne;
173
- }
174
- function Fe(e, t) {
175
- return Me(Oe, e, t);
176
- }
177
- function Ie(e) {
178
- switch (e) {
179
- // \0 \t \n \r \s whitespace token
180
- case 0:
181
- case 9:
182
- case 10:
183
- case 13:
184
- case 32:
185
- return 5;
186
- // ! + , / > @ ~ isolate token
187
- case 33:
188
- case 43:
189
- case 44:
190
- case 47:
191
- case 62:
192
- case 64:
193
- case 126:
194
- // ; { } breakpoint token
195
- case 59:
196
- case 123:
197
- case 125:
198
- return 4;
199
- // : accompanied token
200
- case 58:
201
- return 3;
202
- // " ' ( [ opening delimit token
203
- case 34:
204
- case 39:
205
- case 40:
206
- case 91:
207
- return 2;
208
- // ) ] closing delimit token
209
- case 41:
210
- case 93:
211
- return 1;
212
- }
213
- return 0;
214
- }
215
- function $r(e) {
216
- return Ze = Ee = 1, _r = ue(Oe = e), ne = 0, [];
217
- }
218
- function Mr(e) {
219
- return Oe = "", e;
220
- }
221
- function De(e) {
222
- return Rr(Fe(ne - 1, vt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
223
- }
224
- function Kn(e) {
225
- for (; (U = de()) && U < 33; )
226
- ae();
227
- return Ie(e) > 2 || Ie(U) > 3 ? "" : " ";
228
- }
229
- function Jn(e, t) {
230
- for (; --t && ae() && !(U < 48 || U > 102 || U > 57 && U < 65 || U > 70 && U < 97); )
231
- ;
232
- return Fe(e, Le() + (t < 6 && de() == 32 && ae() == 32));
233
- }
234
- function vt(e) {
235
- for (; ae(); )
236
- switch (U) {
237
- // ] ) " '
238
- case e:
239
- return ne;
240
- // " '
241
- case 34:
242
- case 39:
243
- e !== 34 && e !== 39 && vt(U);
244
- break;
245
- // (
246
- case 40:
247
- e === 41 && vt(e);
248
- break;
249
- // \
250
- case 92:
251
- ae();
252
- break;
253
- }
254
- return ne;
255
- }
256
- function Qn(e, t) {
257
- for (; ae() && e + U !== 57; )
258
- if (e + U === 84 && de() === 47)
259
- break;
260
- return "/*" + Fe(t, ne - 1) + "*" + Qe(e === 47 ? e : ae());
261
- }
262
- function Zn(e) {
263
- for (; !Ie(de()); )
264
- ae();
265
- return Fe(e, ne);
266
- }
267
- function eo(e) {
268
- return Mr(He("", null, null, null, [""], e = $r(e), 0, [0], e));
269
- }
270
- function He(e, t, r, n, o, i, a, s, l) {
271
- for (var f = 0, c = 0, d = a, u = 0, m = 0, g = 0, p = 1, x = 1, k = 1, b = 0, y = "", P = o, h = i, T = n, _ = y; x; )
272
- switch (g = b, b = ae()) {
273
- // (
274
- case 40:
275
- if (g != 108 && q(_, d - 1) == 58) {
276
- yt(_ += N(De(b), "&", "&\f"), "&\f") != -1 && (k = -1);
277
- break;
278
- }
279
- // " ' [
280
- case 34:
281
- case 39:
282
- case 91:
283
- _ += De(b);
284
- break;
285
- // \t \n \r \s
286
- case 9:
287
- case 10:
288
- case 13:
289
- case 32:
290
- _ += Kn(g);
291
- break;
292
- // \
293
- case 92:
294
- _ += Jn(Le() - 1, 7);
295
- continue;
296
- // /
297
- case 47:
298
- switch (de()) {
299
- case 42:
300
- case 47:
301
- We(to(Qn(ae(), Le()), t, r), l);
302
- break;
303
- default:
304
- _ += "/";
305
- }
306
- break;
307
- // {
308
- case 123 * p:
309
- s[f++] = ue(_) * k;
310
- // } ; \0
311
- case 125 * p:
312
- case 59:
313
- case 0:
314
- switch (b) {
315
- // \0 }
316
- case 0:
317
- case 125:
318
- x = 0;
319
- // ;
320
- case 59 + c:
321
- k == -1 && (_ = N(_, /\f/g, "")), m > 0 && ue(_) - d && We(m > 32 ? Yt(_ + ";", n, r, d - 1) : Yt(N(_, " ", "") + ";", n, r, d - 2), l);
322
- break;
323
- // @ ;
324
- case 59:
325
- _ += ";";
326
- // { rule/at-rule
327
- default:
328
- if (We(T = Ht(_, t, r, f, c, o, s, y, P = [], h = [], d), i), b === 123)
329
- if (c === 0)
330
- He(_, t, T, T, P, i, d, s, h);
331
- else
332
- switch (u === 99 && q(_, 3) === 110 ? 100 : u) {
333
- // d l m s
334
- case 100:
335
- case 108:
336
- case 109:
337
- case 115:
338
- He(e, T, T, n && We(Ht(e, T, T, 0, 0, o, s, y, o, P = [], d), h), o, h, d, s, n ? P : h);
339
- break;
340
- default:
341
- He(_, T, T, T, [""], h, 0, s, h);
342
- }
343
- }
344
- f = c = m = 0, p = k = 1, y = _ = "", d = a;
345
- break;
346
- // :
347
- case 58:
348
- d = 1 + ue(_), m = g;
349
- default:
350
- if (p < 1) {
351
- if (b == 123)
352
- --p;
353
- else if (b == 125 && p++ == 0 && qn() == 125)
354
- continue;
355
- }
356
- switch (_ += Qe(b), b * p) {
357
- // &
358
- case 38:
359
- k = c > 0 ? 1 : (_ += "\f", -1);
360
- break;
361
- // ,
362
- case 44:
363
- s[f++] = (ue(_) - 1) * k, k = 1;
364
- break;
365
- // @
366
- case 64:
367
- de() === 45 && (_ += De(ae())), u = de(), c = d = ue(y = _ += Zn(Le())), b++;
368
- break;
369
- // -
370
- case 45:
371
- g === 45 && ue(_) == 2 && (p = 0);
372
- }
373
- }
374
- return i;
375
- }
376
- function Ht(e, t, r, n, o, i, a, s, l, f, c) {
377
- for (var d = o - 1, u = o === 0 ? i : [""], m = Rt(u), g = 0, p = 0, x = 0; g < n; ++g)
378
- for (var k = 0, b = Me(e, d + 1, d = Dn(p = a[g])), y = e; k < m; ++k)
379
- (y = Rr(p > 0 ? u[k] + " " + b : N(b, /&\f/g, u[k]))) && (l[x++] = y);
380
- return et(e, t, r, o === 0 ? Tt : s, l, f, c);
381
- }
382
- function to(e, t, r) {
383
- return et(e, t, r, Tr, Qe(Xn()), Me(e, 2, -2), 0);
384
- }
385
- function Yt(e, t, r, n) {
386
- return et(e, t, r, At, Me(e, 0, n), Me(e, n + 1, -1), n);
387
- }
388
- function Pe(e, t) {
389
- for (var r = "", n = Rt(e), o = 0; o < n; o++)
390
- r += t(e[o], o, e, t) || "";
391
- return r;
392
- }
393
- function ro(e, t, r, n) {
394
- switch (e.type) {
395
- case Ln:
396
- if (e.children.length) break;
397
- case Vn:
398
- case At:
399
- return e.return = e.return || e.value;
400
- case Tr:
401
- return "";
402
- case Ar:
403
- return e.return = e.value + "{" + Pe(e.children, n) + "}";
404
- case Tt:
405
- e.value = e.props.join(",");
406
- }
407
- return ue(r = Pe(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
408
- }
409
- function no(e) {
410
- var t = Rt(e);
411
- return function(r, n, o, i) {
412
- for (var a = "", s = 0; s < t; s++)
413
- a += e[s](r, n, o, i) || "";
414
- return a;
415
- };
416
- }
417
- function oo(e) {
418
- return function(t) {
419
- t.root || (t = t.return) && e(t);
420
- };
421
- }
422
- var io = function(t, r, n) {
423
- for (var o = 0, i = 0; o = i, i = de(), o === 38 && i === 12 && (r[n] = 1), !Ie(i); )
424
- ae();
425
- return Fe(t, ne);
426
- }, ao = function(t, r) {
427
- var n = -1, o = 44;
428
- do
429
- switch (Ie(o)) {
430
- case 0:
431
- o === 38 && de() === 12 && (r[n] = 1), t[n] += io(ne - 1, r, n);
432
- break;
433
- case 2:
434
- t[n] += De(o);
435
- break;
436
- case 4:
437
- if (o === 44) {
438
- t[++n] = de() === 58 ? "&\f" : "", r[n] = t[n].length;
439
- break;
440
- }
441
- // fallthrough
442
- default:
443
- t[n] += Qe(o);
444
- }
445
- while (o = ae());
446
- return t;
447
- }, so = function(t, r) {
448
- return Mr(ao($r(t), r));
449
- }, Ut = /* @__PURE__ */ new WeakMap(), co = function(t) {
450
- if (!(t.type !== "rule" || !t.parent || // positive .length indicates that this rule contains pseudo
451
- // negative .length indicates that this rule has been already prefixed
452
- t.length < 1)) {
453
- for (var r = t.value, n = t.parent, o = t.column === n.column && t.line === n.line; n.type !== "rule"; )
454
- if (n = n.parent, !n) return;
455
- if (!(t.props.length === 1 && r.charCodeAt(0) !== 58 && !Ut.get(n)) && !o) {
456
- Ut.set(t, !0);
457
- for (var i = [], a = so(r, i), s = n.props, l = 0, f = 0; l < a.length; l++)
458
- for (var c = 0; c < s.length; c++, f++)
459
- t.props[f] = i[l] ? a[l].replace(/&\f/g, s[c]) : s[c] + " " + a[l];
460
- }
461
- }
462
- }, lo = function(t) {
463
- if (t.type === "decl") {
464
- var r = t.value;
465
- // charcode for l
466
- r.charCodeAt(0) === 108 && // charcode for b
467
- r.charCodeAt(2) === 98 && (t.return = "", t.value = "");
468
- }
469
- };
470
- function Ir(e, t) {
471
- switch (Yn(e, t)) {
472
- // color-adjust
473
- case 5103:
474
- return I + "print-" + e + e;
475
- // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
476
- case 5737:
477
- case 4201:
478
- case 3177:
479
- case 3433:
480
- case 1641:
481
- case 4457:
482
- case 2921:
483
- // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
484
- case 5572:
485
- case 6356:
486
- case 5844:
487
- case 3191:
488
- case 6645:
489
- case 3005:
490
- // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
491
- case 6391:
492
- case 5879:
493
- case 5623:
494
- case 6135:
495
- case 4599:
496
- case 4855:
497
- // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
498
- case 4215:
499
- case 6389:
500
- case 5109:
501
- case 5365:
502
- case 5621:
503
- case 3829:
504
- return I + e + e;
505
- // appearance, user-select, transform, hyphens, text-size-adjust
506
- case 5349:
507
- case 4246:
508
- case 4810:
509
- case 6968:
510
- case 2756:
511
- return I + e + Ue + e + K + e + e;
512
- // flex, flex-direction
513
- case 6828:
514
- case 4268:
515
- return I + e + K + e + e;
516
- // order
517
- case 6165:
518
- return I + e + K + "flex-" + e + e;
519
- // align-items
520
- case 5187:
521
- return I + e + N(e, /(\w+).+(:[^]+)/, I + "box-$1$2" + K + "flex-$1$2") + e;
522
- // align-self
523
- case 5443:
524
- return I + e + K + "flex-item-" + N(e, /flex-|-self/, "") + e;
525
- // align-content
526
- case 4675:
527
- return I + e + K + "flex-line-pack" + N(e, /align-content|flex-|-self/, "") + e;
528
- // flex-shrink
529
- case 5548:
530
- return I + e + K + N(e, "shrink", "negative") + e;
531
- // flex-basis
532
- case 5292:
533
- return I + e + K + N(e, "basis", "preferred-size") + e;
534
- // flex-grow
535
- case 6060:
536
- return I + "box-" + N(e, "-grow", "") + I + e + K + N(e, "grow", "positive") + e;
537
- // transition
538
- case 4554:
539
- return I + N(e, /([^-])(transform)/g, "$1" + I + "$2") + e;
540
- // cursor
541
- case 6187:
542
- return N(N(N(e, /(zoom-|grab)/, I + "$1"), /(image-set)/, I + "$1"), e, "") + e;
543
- // background, background-image
544
- case 5495:
545
- case 3959:
546
- return N(e, /(image-set\([^]*)/, I + "$1$`$1");
547
- // justify-content
548
- case 4968:
549
- return N(N(e, /(.+:)(flex-)?(.*)/, I + "box-pack:$3" + K + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + I + e + e;
550
- // (margin|padding)-inline-(start|end)
551
- case 4095:
552
- case 3583:
553
- case 4068:
554
- case 2532:
555
- return N(e, /(.+)-inline(.+)/, I + "$1$2") + e;
556
- // (min|max)?(width|height|inline-size|block-size)
557
- case 8116:
558
- case 7059:
559
- case 5753:
560
- case 5535:
561
- case 5445:
562
- case 5701:
563
- case 4933:
564
- case 4677:
565
- case 5533:
566
- case 5789:
567
- case 5021:
568
- case 4765:
569
- if (ue(e) - 1 - t > 6) switch (q(e, t + 1)) {
570
- // (m)ax-content, (m)in-content
571
- case 109:
572
- if (q(e, t + 4) !== 45) break;
573
- // (f)ill-available, (f)it-content
574
- case 102:
575
- return N(e, /(.+:)(.+)-([^]+)/, "$1" + I + "$2-$3$1" + Ue + (q(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
576
- // (s)tretch
577
- case 115:
578
- return ~yt(e, "stretch") ? Ir(N(e, "stretch", "fill-available"), t) + e : e;
579
- }
580
- break;
581
- // position: sticky
582
- case 4949:
583
- if (q(e, t + 1) !== 115) break;
584
- // display: (flex|inline-flex)
585
- case 6444:
586
- switch (q(e, ue(e) - 3 - (~yt(e, "!important") && 10))) {
587
- // stic(k)y
588
- case 107:
589
- return N(e, ":", ":" + I) + e;
590
- // (inline-)?fl(e)x
591
- case 101:
592
- return N(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + I + (q(e, 14) === 45 ? "inline-" : "") + "box$3$1" + I + "$2$3$1" + K + "$2box$3") + e;
593
- }
594
- break;
595
- // writing-mode
596
- case 5936:
597
- switch (q(e, t + 11)) {
598
- // vertical-l(r)
599
- case 114:
600
- return I + e + K + N(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
601
- // vertical-r(l)
602
- case 108:
603
- return I + e + K + N(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
604
- // horizontal(-)tb
605
- case 45:
606
- return I + e + K + N(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
607
- }
608
- return I + e + K + e + e;
609
- }
610
- return e;
611
- }
612
- var uo = function(t, r, n, o) {
613
- if (t.length > -1 && !t.return) switch (t.type) {
614
- case At:
615
- t.return = Ir(t.value, t.length);
616
- break;
617
- case Ar:
618
- return Pe([Re(t, {
619
- value: N(t.value, "@", "@" + I)
620
- })], o);
621
- case Tt:
622
- if (t.length) return Gn(t.props, function(i) {
623
- switch (Un(i, /(::plac\w+|:read-\w+)/)) {
624
- // :read-(only|write)
625
- case ":read-only":
626
- case ":read-write":
627
- return Pe([Re(t, {
628
- props: [N(i, /:(read-\w+)/, ":" + Ue + "$1")]
629
- })], o);
630
- // :placeholder
631
- case "::placeholder":
632
- return Pe([Re(t, {
633
- props: [N(i, /:(plac\w+)/, ":" + I + "input-$1")]
634
- }), Re(t, {
635
- props: [N(i, /:(plac\w+)/, ":" + Ue + "$1")]
636
- }), Re(t, {
637
- props: [N(i, /:(plac\w+)/, K + "input-$1")]
638
- })], o);
639
- }
640
- return "";
641
- });
642
- }
643
- }, fo = [uo], po = function(t) {
644
- var r = t.key;
645
- if (r === "css") {
646
- var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
647
- Array.prototype.forEach.call(n, function(p) {
648
- var x = p.getAttribute("data-emotion");
649
- x.indexOf(" ") !== -1 && (document.head.appendChild(p), p.setAttribute("data-s", ""));
650
- });
651
- }
652
- var o = t.stylisPlugins || fo, i = {}, a, s = [];
653
- a = t.container || document.head, Array.prototype.forEach.call(
654
- // this means we will ignore elements which don't have a space in them which
655
- // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
656
- document.querySelectorAll('style[data-emotion^="' + r + ' "]'),
657
- function(p) {
658
- for (var x = p.getAttribute("data-emotion").split(" "), k = 1; k < x.length; k++)
659
- i[x[k]] = !0;
660
- s.push(p);
661
- }
662
- );
663
- var l, f = [co, lo];
664
- {
665
- var c, d = [ro, oo(function(p) {
666
- c.insert(p);
667
- })], u = no(f.concat(o, d)), m = function(x) {
668
- return Pe(eo(x), u);
669
- };
670
- l = function(x, k, b, y) {
671
- c = b, m(x ? x + "{" + k.styles + "}" : k.styles), y && (g.inserted[k.name] = !0);
672
- };
673
- }
674
- var g = {
675
- key: r,
676
- sheet: new zn({
677
- key: r,
678
- container: a,
679
- nonce: t.nonce,
680
- speedy: t.speedy,
681
- prepend: t.prepend,
682
- insertionPoint: t.insertionPoint
683
- }),
684
- nonce: t.nonce,
685
- inserted: i,
686
- registered: {},
687
- insert: l
688
- };
689
- return g.sheet.hydrate(s), g;
690
- };
691
- function mo(e) {
692
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
693
- }
694
- var Be = { exports: {} }, j = {};
695
- /** @license React v16.13.1
696
- * react-is.production.min.js
697
- *
698
- * Copyright (c) Facebook, Inc. and its affiliates.
699
- *
700
- * This source code is licensed under the MIT license found in the
701
- * LICENSE file in the root directory of this source tree.
702
- */
703
- var Gt;
704
- function go() {
705
- if (Gt) return j;
706
- Gt = 1;
707
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, u = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, x = e ? Symbol.for("react.fundamental") : 60117, k = e ? Symbol.for("react.responder") : 60118, b = e ? Symbol.for("react.scope") : 60119;
708
- function y(h) {
709
- if (typeof h == "object" && h !== null) {
710
- var T = h.$$typeof;
711
- switch (T) {
712
- case t:
713
- switch (h = h.type, h) {
714
- case l:
715
- case f:
716
- case n:
717
- case i:
718
- case o:
719
- case d:
720
- return h;
721
- default:
722
- switch (h = h && h.$$typeof, h) {
723
- case s:
724
- case c:
725
- case g:
726
- case m:
727
- case a:
728
- return h;
729
- default:
730
- return T;
731
- }
732
- }
733
- case r:
734
- return T;
735
- }
736
- }
737
- }
738
- function P(h) {
739
- return y(h) === f;
740
- }
741
- return j.AsyncMode = l, j.ConcurrentMode = f, j.ContextConsumer = s, j.ContextProvider = a, j.Element = t, j.ForwardRef = c, j.Fragment = n, j.Lazy = g, j.Memo = m, j.Portal = r, j.Profiler = i, j.StrictMode = o, j.Suspense = d, j.isAsyncMode = function(h) {
742
- return P(h) || y(h) === l;
743
- }, j.isConcurrentMode = P, j.isContextConsumer = function(h) {
744
- return y(h) === s;
745
- }, j.isContextProvider = function(h) {
746
- return y(h) === a;
747
- }, j.isElement = function(h) {
748
- return typeof h == "object" && h !== null && h.$$typeof === t;
749
- }, j.isForwardRef = function(h) {
750
- return y(h) === c;
751
- }, j.isFragment = function(h) {
752
- return y(h) === n;
753
- }, j.isLazy = function(h) {
754
- return y(h) === g;
755
- }, j.isMemo = function(h) {
756
- return y(h) === m;
757
- }, j.isPortal = function(h) {
758
- return y(h) === r;
759
- }, j.isProfiler = function(h) {
760
- return y(h) === i;
761
- }, j.isStrictMode = function(h) {
762
- return y(h) === o;
763
- }, j.isSuspense = function(h) {
764
- return y(h) === d;
765
- }, j.isValidElementType = function(h) {
766
- return typeof h == "string" || typeof h == "function" || h === n || h === f || h === i || h === o || h === d || h === u || typeof h == "object" && h !== null && (h.$$typeof === g || h.$$typeof === m || h.$$typeof === a || h.$$typeof === s || h.$$typeof === c || h.$$typeof === x || h.$$typeof === k || h.$$typeof === b || h.$$typeof === p);
767
- }, j.typeOf = y, j;
768
- }
769
- var F = {};
770
- /** @license React v16.13.1
771
- * react-is.development.js
772
- *
773
- * Copyright (c) Facebook, Inc. and its affiliates.
774
- *
775
- * This source code is licensed under the MIT license found in the
776
- * LICENSE file in the root directory of this source tree.
777
- */
778
- var Xt;
779
- function ho() {
780
- return Xt || (Xt = 1, process.env.NODE_ENV !== "production" && function() {
781
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, u = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, x = e ? Symbol.for("react.fundamental") : 60117, k = e ? Symbol.for("react.responder") : 60118, b = e ? Symbol.for("react.scope") : 60119;
782
- function y(w) {
783
- return typeof w == "string" || typeof w == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
784
- w === n || w === f || w === i || w === o || w === d || w === u || typeof w == "object" && w !== null && (w.$$typeof === g || w.$$typeof === m || w.$$typeof === a || w.$$typeof === s || w.$$typeof === c || w.$$typeof === x || w.$$typeof === k || w.$$typeof === b || w.$$typeof === p);
785
- }
786
- function P(w) {
787
- if (typeof w == "object" && w !== null) {
788
- var Y = w.$$typeof;
789
- switch (Y) {
790
- case t:
791
- var ee = w.type;
792
- switch (ee) {
793
- case l:
794
- case f:
795
- case n:
796
- case i:
797
- case o:
798
- case d:
799
- return ee;
800
- default:
801
- var ve = ee && ee.$$typeof;
802
- switch (ve) {
803
- case s:
804
- case c:
805
- case g:
806
- case m:
807
- case a:
808
- return ve;
809
- default:
810
- return Y;
811
- }
812
- }
813
- case r:
814
- return Y;
815
- }
816
- }
817
- }
818
- var h = l, T = f, _ = s, E = a, C = t, A = c, B = n, R = g, X = m, Z = r, W = i, J = o, oe = d, $ = !1;
819
- function H(w) {
820
- return $ || ($ = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), V(w) || P(w) === l;
821
- }
822
- function V(w) {
823
- return P(w) === f;
824
- }
825
- function ie(w) {
826
- return P(w) === s;
827
- }
828
- function le(w) {
829
- return P(w) === a;
830
- }
831
- function ye(w) {
832
- return typeof w == "object" && w !== null && w.$$typeof === t;
833
- }
834
- function xe(w) {
835
- return P(w) === c;
836
- }
837
- function ge(w) {
838
- return P(w) === n;
839
- }
840
- function ot(w) {
841
- return P(w) === g;
842
- }
843
- function it(w) {
844
- return P(w) === m;
845
- }
846
- function S(w) {
847
- return P(w) === r;
848
- }
849
- function v(w) {
850
- return P(w) === i;
851
- }
852
- function M(w) {
853
- return P(w) === o;
854
- }
855
- function z(w) {
856
- return P(w) === d;
857
- }
858
- F.AsyncMode = h, F.ConcurrentMode = T, F.ContextConsumer = _, F.ContextProvider = E, F.Element = C, F.ForwardRef = A, F.Fragment = B, F.Lazy = R, F.Memo = X, F.Portal = Z, F.Profiler = W, F.StrictMode = J, F.Suspense = oe, F.isAsyncMode = H, F.isConcurrentMode = V, F.isContextConsumer = ie, F.isContextProvider = le, F.isElement = ye, F.isForwardRef = xe, F.isFragment = ge, F.isLazy = ot, F.isMemo = it, F.isPortal = S, F.isProfiler = v, F.isStrictMode = M, F.isSuspense = z, F.isValidElementType = y, F.typeOf = P;
859
- }()), F;
860
- }
861
- var qt;
862
- function yo() {
863
- return qt || (qt = 1, process.env.NODE_ENV === "production" ? Be.exports = go() : Be.exports = ho()), Be.exports;
864
- }
865
- var st, Kt;
866
- function vo() {
867
- if (Kt) return st;
868
- Kt = 1;
869
- var e = yo(), t = {
870
- childContextTypes: !0,
871
- contextType: !0,
872
- contextTypes: !0,
873
- defaultProps: !0,
874
- displayName: !0,
875
- getDefaultProps: !0,
876
- getDerivedStateFromError: !0,
877
- getDerivedStateFromProps: !0,
878
- mixins: !0,
879
- propTypes: !0,
880
- type: !0
881
- }, r = {
882
- name: !0,
883
- length: !0,
884
- prototype: !0,
885
- caller: !0,
886
- callee: !0,
887
- arguments: !0,
888
- arity: !0
889
- }, n = {
890
- $$typeof: !0,
891
- render: !0,
892
- defaultProps: !0,
893
- displayName: !0,
894
- propTypes: !0
895
- }, o = {
896
- $$typeof: !0,
897
- compare: !0,
898
- defaultProps: !0,
899
- displayName: !0,
900
- propTypes: !0,
901
- type: !0
902
- }, i = {};
903
- i[e.ForwardRef] = n, i[e.Memo] = o;
904
- function a(g) {
905
- return e.isMemo(g) ? o : i[g.$$typeof] || t;
906
- }
907
- var s = Object.defineProperty, l = Object.getOwnPropertyNames, f = Object.getOwnPropertySymbols, c = Object.getOwnPropertyDescriptor, d = Object.getPrototypeOf, u = Object.prototype;
908
- function m(g, p, x) {
909
- if (typeof p != "string") {
910
- if (u) {
911
- var k = d(p);
912
- k && k !== u && m(g, k, x);
913
- }
914
- var b = l(p);
915
- f && (b = b.concat(f(p)));
916
- for (var y = a(g), P = a(p), h = 0; h < b.length; ++h) {
917
- var T = b[h];
918
- if (!r[T] && !(x && x[T]) && !(P && P[T]) && !(y && y[T])) {
919
- var _ = c(p, T);
920
- try {
921
- s(g, T, _);
922
- } catch {
923
- }
924
- }
925
- }
926
- }
927
- return g;
928
- }
929
- return st = m, st;
930
- }
931
- vo();
932
- var bo = !0;
933
- function Nr(e, t, r) {
934
- var n = "";
935
- return r.split(" ").forEach(function(o) {
936
- e[o] !== void 0 ? t.push(e[o] + ";") : o && (n += o + " ");
937
- }), n;
938
- }
939
- var _t = function(t, r, n) {
940
- var o = t.key + "-" + r.name;
941
- // we only need to add the styles to the registered cache if the
942
- // class name could be used further down
943
- // the tree but if it's a string tag, we know it won't
944
- // so we don't have to add it to registered cache.
945
- // this improves memory usage since we can avoid storing the whole style string
946
- (n === !1 || // we need to always store it if we're in compat mode and
947
- // in node since emotion-server relies on whether a style is in
948
- // the registered cache to know whether a style is global or not
949
- // also, note that this check will be dead code eliminated in the browser
950
- bo === !1) && t.registered[o] === void 0 && (t.registered[o] = r.styles);
951
- }, $t = function(t, r, n) {
952
- _t(t, r, n);
953
- var o = t.key + "-" + r.name;
954
- if (t.inserted[r.name] === void 0) {
955
- var i = r;
956
- do
957
- t.insert(r === i ? "." + o : "", i, t.sheet, !0), i = i.next;
958
- while (i !== void 0);
959
- }
960
- };
961
- function xo(e) {
962
- for (var t = 0, r, n = 0, o = e.length; o >= 4; ++n, o -= 4)
963
- r = e.charCodeAt(n) & 255 | (e.charCodeAt(++n) & 255) << 8 | (e.charCodeAt(++n) & 255) << 16 | (e.charCodeAt(++n) & 255) << 24, r = /* Math.imul(k, m): */
964
- (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), r ^= /* k >>> r: */
965
- r >>> 24, t = /* Math.imul(k, m): */
966
- (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
967
- (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
968
- switch (o) {
969
- case 3:
970
- t ^= (e.charCodeAt(n + 2) & 255) << 16;
971
- case 2:
972
- t ^= (e.charCodeAt(n + 1) & 255) << 8;
973
- case 1:
974
- t ^= e.charCodeAt(n) & 255, t = /* Math.imul(h, m): */
975
- (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
976
- }
977
- return t ^= t >>> 13, t = /* Math.imul(h, m): */
978
- (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), ((t ^ t >>> 15) >>> 0).toString(36);
979
- }
980
- var So = {
981
- animationIterationCount: 1,
982
- aspectRatio: 1,
983
- borderImageOutset: 1,
984
- borderImageSlice: 1,
985
- borderImageWidth: 1,
986
- boxFlex: 1,
987
- boxFlexGroup: 1,
988
- boxOrdinalGroup: 1,
989
- columnCount: 1,
990
- columns: 1,
991
- flex: 1,
992
- flexGrow: 1,
993
- flexPositive: 1,
994
- flexShrink: 1,
995
- flexNegative: 1,
996
- flexOrder: 1,
997
- gridRow: 1,
998
- gridRowEnd: 1,
999
- gridRowSpan: 1,
1000
- gridRowStart: 1,
1001
- gridColumn: 1,
1002
- gridColumnEnd: 1,
1003
- gridColumnSpan: 1,
1004
- gridColumnStart: 1,
1005
- msGridRow: 1,
1006
- msGridRowSpan: 1,
1007
- msGridColumn: 1,
1008
- msGridColumnSpan: 1,
1009
- fontWeight: 1,
1010
- lineHeight: 1,
1011
- opacity: 1,
1012
- order: 1,
1013
- orphans: 1,
1014
- scale: 1,
1015
- tabSize: 1,
1016
- widows: 1,
1017
- zIndex: 1,
1018
- zoom: 1,
1019
- WebkitLineClamp: 1,
1020
- // SVG-related properties
1021
- fillOpacity: 1,
1022
- floodOpacity: 1,
1023
- stopOpacity: 1,
1024
- strokeDasharray: 1,
1025
- strokeDashoffset: 1,
1026
- strokeMiterlimit: 1,
1027
- strokeOpacity: 1,
1028
- strokeWidth: 1
1029
- }, ko = /[A-Z]|^ms/g, wo = /_EMO_([^_]+?)_([^]*?)_EMO_/g, jr = function(t) {
1030
- return t.charCodeAt(1) === 45;
1031
- }, Jt = function(t) {
1032
- return t != null && typeof t != "boolean";
1033
- }, ct = /* @__PURE__ */ Or(function(e) {
1034
- return jr(e) ? e : e.replace(ko, "-$&").toLowerCase();
1035
- }), Qt = function(t, r) {
1036
- switch (t) {
1037
- case "animation":
1038
- case "animationName":
1039
- if (typeof r == "string")
1040
- return r.replace(wo, function(n, o, i) {
1041
- return fe = {
1042
- name: o,
1043
- styles: i,
1044
- next: fe
1045
- }, o;
1046
- });
1047
- }
1048
- return So[t] !== 1 && !jr(t) && typeof r == "number" && r !== 0 ? r + "px" : r;
1049
- };
1050
- function Ne(e, t, r) {
1051
- if (r == null)
1052
- return "";
1053
- var n = r;
1054
- if (n.__emotion_styles !== void 0)
1055
- return n;
1056
- switch (typeof r) {
1057
- case "boolean":
1058
- return "";
1059
- case "object": {
1060
- var o = r;
1061
- if (o.anim === 1)
1062
- return fe = {
1063
- name: o.name,
1064
- styles: o.styles,
1065
- next: fe
1066
- }, o.name;
1067
- var i = r;
1068
- if (i.styles !== void 0) {
1069
- var a = i.next;
1070
- if (a !== void 0)
1071
- for (; a !== void 0; )
1072
- fe = {
1073
- name: a.name,
1074
- styles: a.styles,
1075
- next: fe
1076
- }, a = a.next;
1077
- var s = i.styles + ";";
1078
- return s;
1079
- }
1080
- return Po(e, t, r);
1081
- }
1082
- case "function": {
1083
- if (e !== void 0) {
1084
- var l = fe, f = r(e);
1085
- return fe = l, Ne(e, t, f);
1086
- }
1087
- break;
1088
- }
1089
- }
1090
- var c = r;
1091
- if (t == null)
1092
- return c;
1093
- var d = t[c];
1094
- return d !== void 0 ? d : c;
1095
- }
1096
- function Po(e, t, r) {
1097
- var n = "";
1098
- if (Array.isArray(r))
1099
- for (var o = 0; o < r.length; o++)
1100
- n += Ne(e, t, r[o]) + ";";
1101
- else
1102
- for (var i in r) {
1103
- var a = r[i];
1104
- if (typeof a != "object") {
1105
- var s = a;
1106
- t != null && t[s] !== void 0 ? n += i + "{" + t[s] + "}" : Jt(s) && (n += ct(i) + ":" + Qt(i, s) + ";");
1107
- } else if (Array.isArray(a) && typeof a[0] == "string" && (t == null || t[a[0]] === void 0))
1108
- for (var l = 0; l < a.length; l++)
1109
- Jt(a[l]) && (n += ct(i) + ":" + Qt(i, a[l]) + ";");
1110
- else {
1111
- var f = Ne(e, t, a);
1112
- switch (i) {
1113
- case "animation":
1114
- case "animationName": {
1115
- n += ct(i) + ":" + f + ";";
1116
- break;
1117
- }
1118
- default:
1119
- n += i + "{" + f + "}";
1120
- }
1121
- }
1122
- }
1123
- return n;
1124
- }
1125
- var Zt = /label:\s*([^\s;{]+)\s*(;|$)/g, fe;
1126
- function Mt(e, t, r) {
1127
- if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
1128
- return e[0];
1129
- var n = !0, o = "";
1130
- fe = void 0;
1131
- var i = e[0];
1132
- if (i == null || i.raw === void 0)
1133
- n = !1, o += Ne(r, t, i);
1134
- else {
1135
- var a = i;
1136
- o += a[0];
1137
- }
1138
- for (var s = 1; s < e.length; s++)
1139
- if (o += Ne(r, t, e[s]), n) {
1140
- var l = i;
1141
- o += l[s];
1142
- }
1143
- Zt.lastIndex = 0;
1144
- for (var f = "", c; (c = Zt.exec(o)) !== null; )
1145
- f += "-" + c[1];
1146
- var d = xo(o) + f;
1147
- return {
1148
- name: d,
1149
- styles: o,
1150
- next: fe
1151
- };
1152
- }
1153
- var Co = function(t) {
1154
- return t();
1155
- }, Fr = L.useInsertionEffect ? L.useInsertionEffect : !1, Wr = Fr || Co, er = Fr || L.useLayoutEffect, Br = /* @__PURE__ */ L.createContext(
1156
- // we're doing this to avoid preconstruct's dead code elimination in this one case
1157
- // because this module is primarily intended for the browser and node
1158
- // but it's also required in react native and similar environments sometimes
1159
- // and we could have a special build just for that
1160
- // but this is much easier and the native packages
1161
- // might use a different theme context in the future anyway
1162
- typeof HTMLElement < "u" ? /* @__PURE__ */ po({
1163
- key: "css"
1164
- }) : null
1165
- );
1166
- Br.Provider;
1167
- var It = function(t) {
1168
- return /* @__PURE__ */ D(function(r, n) {
1169
- var o = Ke(Br);
1170
- return t(r, o, n);
1171
- });
1172
- }, Nt = /* @__PURE__ */ L.createContext({}), jt = {}.hasOwnProperty, bt = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", Eo = function(t, r) {
1173
- var n = {};
1174
- for (var o in r)
1175
- jt.call(r, o) && (n[o] = r[o]);
1176
- return n[bt] = t, n;
1177
- }, Oo = function(t) {
1178
- var r = t.cache, n = t.serialized, o = t.isStringTag;
1179
- return _t(r, n, o), Wr(function() {
1180
- return $t(r, n, o);
1181
- }), null;
1182
- }, To = /* @__PURE__ */ It(function(e, t, r) {
1183
- var n = e.css;
1184
- typeof n == "string" && t.registered[n] !== void 0 && (n = t.registered[n]);
1185
- var o = e[bt], i = [n], a = "";
1186
- typeof e.className == "string" ? a = Nr(t.registered, i, e.className) : e.className != null && (a = e.className + " ");
1187
- var s = Mt(i, void 0, L.useContext(Nt));
1188
- a += t.key + "-" + s.name;
1189
- var l = {};
1190
- for (var f in e)
1191
- jt.call(e, f) && f !== "css" && f !== bt && (l[f] = e[f]);
1192
- return l.className = a, r && (l.ref = r), /* @__PURE__ */ L.createElement(L.Fragment, null, /* @__PURE__ */ L.createElement(Oo, {
1193
- cache: t,
1194
- serialized: s,
1195
- isStringTag: typeof o == "string"
1196
- }), /* @__PURE__ */ L.createElement(o, l));
1197
- }), Ao = To, tr = function(t, r) {
1198
- var n = arguments;
1199
- if (r == null || !jt.call(r, "css"))
1200
- return L.createElement.apply(void 0, n);
1201
- var o = n.length, i = new Array(o);
1202
- i[0] = Ao, i[1] = Eo(t, r);
1203
- for (var a = 2; a < o; a++)
1204
- i[a] = n[a];
1205
- return L.createElement.apply(null, i);
1206
- };
1207
- (function(e) {
1208
- var t;
1209
- t || (t = e.JSX || (e.JSX = {}));
1210
- })(tr || (tr = {}));
1211
- var rr = /* @__PURE__ */ It(function(e, t) {
1212
- var r = e.styles, n = Mt([r], void 0, L.useContext(Nt)), o = L.useRef();
1213
- return er(function() {
1214
- var i = t.key + "-global", a = new t.sheet.constructor({
1215
- key: i,
1216
- nonce: t.sheet.nonce,
1217
- container: t.sheet.container,
1218
- speedy: t.sheet.isSpeedy
1219
- }), s = !1, l = document.querySelector('style[data-emotion="' + i + " " + n.name + '"]');
1220
- return t.sheet.tags.length && (a.before = t.sheet.tags[0]), l !== null && (s = !0, l.setAttribute("data-emotion", i), a.hydrate([l])), o.current = [a, s], function() {
1221
- a.flush();
1222
- };
1223
- }, [t]), er(function() {
1224
- var i = o.current, a = i[0], s = i[1];
1225
- if (s) {
1226
- i[1] = !1;
1227
- return;
1228
- }
1229
- if (n.next !== void 0 && $t(t, n.next, !0), a.tags.length) {
1230
- var l = a.tags[a.tags.length - 1].nextElementSibling;
1231
- a.before = l, a.flush();
1232
- }
1233
- t.insert("", n, a, !1);
1234
- }, [t, n.name]), null;
1235
- });
1236
- function Ro(e, t) {
1237
- if (e != null) {
1238
- if (typeof e == "function") {
1239
- e(t);
1240
- return;
1241
- }
1242
- try {
1243
- e.current = t;
1244
- } catch {
1245
- throw new Error(`Cannot assign value '${t}' to ref '${e}'`);
1246
- }
1247
- }
1248
- }
1249
- function zr(...e) {
1250
- return (t) => {
1251
- e.forEach((r) => {
1252
- Ro(r, t);
1253
- });
1254
- };
1255
- }
1256
- function Te(e) {
1257
- const t = Object.assign({}, e);
1258
- for (let r in t)
1259
- t[r] === void 0 && delete t[r];
1260
- return t;
1261
- }
1262
- function _o(e) {
1263
- return e.default || e;
1264
- }
1265
- const te = (e) => e != null && typeof e == "object" && !Array.isArray(e), $o = (e) => /^var\(--.+\)$/.test(e), pe = (e) => typeof e == "string", Ft = (e) => typeof e == "function";
1266
- function Mo(e) {
1267
- var r;
1268
- const t = L.version;
1269
- return !pe(t) || t.startsWith("18.") ? e == null ? void 0 : e.ref : (r = e == null ? void 0 : e.props) == null ? void 0 : r.ref;
1270
- }
1271
- const [Io, tt] = Er({
1272
- name: "ChakraContext",
1273
- strict: !0,
1274
- providerName: "<ChakraProvider />"
1275
- });
1276
- function No(e) {
1277
- const { value: t, children: r } = e;
1278
- return /* @__PURE__ */ he(Io, { value: t, children: [
1279
- !t._config.disableLayers && /* @__PURE__ */ O(rr, { styles: t.layers.atRule }),
1280
- /* @__PURE__ */ O(rr, { styles: t._global }),
1281
- r
1282
- ] });
1283
- }
1284
- const jo = (e, t) => {
1285
- const r = {}, n = {}, o = Object.keys(e);
1286
- for (const i of o)
1287
- t(i) ? n[i] = e[i] : r[i] = e[i];
1288
- return [n, r];
1289
- }, Ce = (e, t) => {
1290
- const r = Ft(t) ? t : (n) => t.includes(n);
1291
- return jo(e, r);
1292
- }, Fo = /* @__PURE__ */ new Set([
1293
- "htmlWidth",
1294
- "htmlHeight",
1295
- "htmlSize",
1296
- "htmlTranslate"
1297
- ]);
1298
- function Wo(e) {
1299
- return typeof e == "string" && Fo.has(e);
1300
- }
1301
- function Bo(e, t, r) {
1302
- const { css: n, isValidProperty: o } = tt(), { children: i, ...a } = e, s = ce(() => {
1303
- const [u, m] = Ce(
1304
- a,
1305
- (b) => r(b, t.variantKeys)
1306
- ), [g, p] = Ce(
1307
- m,
1308
- t.variantKeys
1309
- ), [x, k] = Ce(p, o);
1310
- return {
1311
- forwardedProps: u,
1312
- variantProps: g,
1313
- styleProps: x,
1314
- elementProps: k
1315
- };
1316
- }, [t.variantKeys, r, a, o]), { css: l, ...f } = s.styleProps, c = ce(() => {
1317
- const u = { ...s.variantProps };
1318
- return t.variantKeys.includes("colorPalette") || (u.colorPalette = a.colorPalette), t.variantKeys.includes("orientation") || (u.orientation = a.orientation), t(u);
1319
- }, [t, s.variantProps, a.colorPalette, a.orientation]);
1320
- return {
1321
- styles: ce(() => n(c, ...zo(l), f), [n, c, l, f]),
1322
- props: {
1323
- ...s.forwardedProps,
1324
- ...s.elementProps,
1325
- children: i
1326
- }
1327
- };
1328
- }
1329
- const zo = (e) => (Array.isArray(e) ? e : [e]).filter(Boolean).flat(), Vo = _o(Fn), Lo = Vo, Do = (e) => e !== "theme", Ho = (e, t, r) => {
1330
- let n;
1331
- if (t) {
1332
- const o = t.shouldForwardProp;
1333
- n = e.__emotion_forwardProp && o ? (i) => e.__emotion_forwardProp(i) && o(i) : o;
1334
- }
1335
- return typeof n != "function" && r && (n = e.__emotion_forwardProp), n;
1336
- };
1337
- let Yo = typeof document < "u";
1338
- const nr = ({ cache: e, serialized: t, isStringTag: r }) => {
1339
- _t(e, t, r);
1340
- const n = Wr(
1341
- () => $t(e, t, r)
1342
- );
1343
- if (!Yo && n !== void 0) {
1344
- let o = t.name, i = t.next;
1345
- for (; i !== void 0; )
1346
- o = re(o, i.name), i = i.next;
1347
- return /* @__PURE__ */ O(
1348
- "style",
1349
- {
1350
- "data-emotion": re(e.key, o),
1351
- dangerouslySetInnerHTML: { __html: n },
1352
- nonce: e.sheet.nonce
1353
- }
1354
- );
1355
- }
1356
- return null;
1357
- }, Uo = (e, t = {}, r = {}) => {
1358
- if (process.env.NODE_ENV !== "production" && e === void 0)
1359
- throw new Error(
1360
- `You are trying to create a styled element with an undefined component.
1361
- You may have forgotten to import it.`
1362
- );
1363
- const n = e.__emotion_real === e, o = n && e.__emotion_base || e;
1364
- let i, a;
1365
- r !== void 0 && (i = r.label, a = r.target);
1366
- let s = [];
1367
- const l = It((f, c, d) => {
1368
- var Z;
1369
- const { cva: u, isValidProperty: m } = tt(), g = t.__cva__ ? t : u(t), p = Xo(e.__emotion_cva, g), x = (W) => (J, oe) => W.includes(J) ? !0 : !(oe != null && oe.includes(J)) && !m(J);
1370
- !r.shouldForwardProp && r.forwardProps && (r.shouldForwardProp = x(r.forwardProps));
1371
- const k = (W, J) => {
1372
- const oe = typeof e == "string" && e.charCodeAt(0) > 96 ? Lo : Do, $ = !(J != null && J.includes(W)) && !m(W);
1373
- return oe(W) && $;
1374
- }, b = Ho(e, r, n) || k, y = L.useMemo(
1375
- () => Object.assign({}, r.defaultProps, Te(f)),
1376
- [f]
1377
- ), { props: P, styles: h } = Bo(
1378
- y,
1379
- p,
1380
- b
1381
- );
1382
- let T = "", _ = [h], E = P;
1383
- if (P.theme == null) {
1384
- E = {};
1385
- for (let W in P)
1386
- E[W] = P[W];
1387
- E.theme = L.useContext(Nt);
1388
- }
1389
- typeof P.className == "string" ? T = Nr(
1390
- c.registered,
1391
- _,
1392
- P.className
1393
- ) : P.className != null && (T = re(T, P.className));
1394
- const C = Mt(
1395
- s.concat(_),
1396
- c.registered,
1397
- E
1398
- );
1399
- T = re(T, `${c.key}-${C.name}`), a !== void 0 && (T = re(T, a));
1400
- const A = !b("as");
1401
- let B = A && P.as || o, R = {};
1402
- for (let W in P)
1403
- if (!(A && W === "as")) {
1404
- if (Wo(W)) {
1405
- const J = W.replace("html", "").toLowerCase();
1406
- R[J] = P[W];
1407
- continue;
1408
- }
1409
- b(W) && (R[W] = P[W]);
1410
- }
1411
- R.className = T.trim(), R.ref = d;
1412
- const X = r.forwardAsChild || ((Z = r.forwardProps) == null ? void 0 : Z.includes("asChild"));
1413
- if (P.asChild && !X) {
1414
- const W = L.Children.only(P.children);
1415
- B = W.type, R.children = null, Reflect.deleteProperty(R, "asChild"), R = Ot(R, W.props), R.ref = zr(d, Mo(W));
1416
- }
1417
- return R.as && X ? (R.as = void 0, /* @__PURE__ */ he(L.Fragment, { children: [
1418
- /* @__PURE__ */ O(
1419
- nr,
1420
- {
1421
- cache: c,
1422
- serialized: C,
1423
- isStringTag: typeof B == "string"
1424
- }
1425
- ),
1426
- /* @__PURE__ */ O(B, { asChild: !0, ...R, children: /* @__PURE__ */ O(P.as, { children: R.children }) })
1427
- ] })) : /* @__PURE__ */ he(L.Fragment, { children: [
1428
- /* @__PURE__ */ O(
1429
- nr,
1430
- {
1431
- cache: c,
1432
- serialized: C,
1433
- isStringTag: typeof B == "string"
1434
- }
1435
- ),
1436
- /* @__PURE__ */ O(B, { ...R })
1437
- ] });
1438
- });
1439
- return l.displayName = i !== void 0 ? i : `chakra(${typeof o == "string" ? o : o.displayName || o.name || "Component"})`, l.__emotion_real = l, l.__emotion_base = o, l.__emotion_forwardProp = r.shouldForwardProp, l.__emotion_cva = t, Object.defineProperty(l, "toString", {
1440
- value() {
1441
- return a === void 0 && process.env.NODE_ENV !== "production" ? "NO_COMPONENT_SELECTOR" : `.${a}`;
1442
- }
1443
- }), l;
1444
- }, lt = Uo.bind(), ut = /* @__PURE__ */ new Map(), Go = new Proxy(lt, {
1445
- apply(e, t, r) {
1446
- return lt(...r);
1447
- },
1448
- get(e, t) {
1449
- return ut.has(t) || ut.set(t, lt(t)), ut.get(t);
1450
- }
1451
- }), G = Go, Xo = (e, t) => e && !t ? e : !e && t ? t : e.merge(t);
1452
- function Vr(e) {
1453
- const { key: t, recipe: r } = e, n = tt();
1454
- return ce(() => {
1455
- const o = r || (t != null ? n.getRecipe(t) : {});
1456
- return n.cva(structuredClone(o));
1457
- }, [t, r, n]);
1458
- }
1459
- const qo = (e) => e.charAt(0).toUpperCase() + e.slice(1);
1460
- function rt(e) {
1461
- const { key: t, recipe: r } = e, n = qo(
1462
- t || r.className || "Component"
1463
- ), [o, i] = Er({
1464
- strict: !1,
1465
- name: `${n}PropsContext`,
1466
- providerName: `${n}PropsContext`
1467
- });
1468
- function a(f) {
1469
- const { unstyled: c, ...d } = f, u = Vr({
1470
- key: t,
1471
- recipe: d.recipe || r
1472
- }), [m, g] = ce(
1473
- () => u.splitVariantProps(d),
1474
- [u, d]
1475
- );
1476
- return {
1477
- styles: c ? In : u(m),
1478
- className: u.className,
1479
- props: g
1480
- };
1481
- }
1482
- const s = (f, c) => {
1483
- const d = G(f, {}, c), u = D((m, g) => {
1484
- const p = i(), x = ce(
1485
- () => Ot(p, m),
1486
- [m, p]
1487
- ), { styles: k, className: b, props: y } = a(x);
1488
- return /* @__PURE__ */ O(
1489
- d,
1490
- {
1491
- ...y,
1492
- ref: g,
1493
- css: [k, x.css],
1494
- className: re(b, x.className)
1495
- }
1496
- );
1497
- });
1498
- return u.displayName = f.displayName || f.name, u;
1499
- };
1500
- function l() {
1501
- return o;
1502
- }
1503
- return {
1504
- withContext: s,
1505
- PropsProvider: o,
1506
- withPropsProvider: l,
1507
- usePropsContext: i,
1508
- useRecipeResult: a
1509
- };
1510
- }
1511
- const Ko = D(
1512
- function(t, r) {
1513
- const {
1514
- templateAreas: n,
1515
- column: o,
1516
- row: i,
1517
- autoFlow: a,
1518
- autoRows: s,
1519
- templateRows: l,
1520
- autoColumns: f,
1521
- templateColumns: c,
1522
- inline: d,
1523
- ...u
1524
- } = t;
1525
- return /* @__PURE__ */ O(
1526
- G.div,
1527
- {
1528
- ...u,
1529
- ref: r,
1530
- css: [
1531
- {
1532
- display: d ? "inline-grid" : "grid",
1533
- gridTemplateAreas: n,
1534
- gridAutoColumns: f,
1535
- gridColumn: o,
1536
- gridRow: i,
1537
- gridAutoFlow: a,
1538
- gridAutoRows: s,
1539
- gridTemplateRows: l,
1540
- gridTemplateColumns: c
1541
- },
1542
- t.css
1543
- ]
1544
- }
1545
- );
1546
- }
1547
- );
1548
- function Jo(e, t) {
1549
- return `${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`;
1550
- }
1551
- function Qo(e = {}) {
1552
- const {
1553
- name: t,
1554
- strict: r = !0,
1555
- hookName: n = "useContext",
1556
- providerName: o = "Provider",
1557
- errorMessage: i,
1558
- defaultValue: a
1559
- } = e, s = Ct(a);
1560
- s.displayName = t;
1561
- function l() {
1562
- var c;
1563
- const f = Ke(s);
1564
- if (!f && r) {
1565
- const d = new Error(i ?? Jo(n, o));
1566
- throw d.name = "ContextError", (c = Error.captureStackTrace) == null || c.call(Error, d, l), d;
1567
- }
1568
- return f;
1569
- }
1570
- return [s.Provider, l, s];
1571
- }
1572
- function Zo(e, t) {
1573
- typeof e == "function" ? e(t) : e != null && (e.current = t);
1574
- }
1575
- function ei(...e) {
1576
- return (t) => {
1577
- for (const r of e)
1578
- Zo(r, t);
1579
- };
1580
- }
1581
- var ti = (...e) => (...t) => {
1582
- e.forEach(function(r) {
1583
- r == null || r(...t);
1584
- });
1585
- }, ft = (e) => typeof e == "string", ri = Function.prototype.toString;
1586
- ri.call(Object);
1587
- var ni = (...e) => e.map((t) => {
1588
- var r;
1589
- return (r = t == null ? void 0 : t.trim) == null ? void 0 : r.call(t);
1590
- }).filter(Boolean).join(" "), oi = /((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g, or = (e) => {
1591
- const t = {};
1592
- let r;
1593
- for (; r = oi.exec(e); )
1594
- t[r[1]] = r[2];
1595
- return t;
1596
- }, ii = (e, t) => {
1597
- if (ft(e)) {
1598
- if (ft(t)) return `${e};${t}`;
1599
- e = or(e);
1600
- } else ft(t) && (t = or(t));
1601
- return Object.assign({}, e ?? {}, t ?? {});
1602
- };
1603
- function Lr(...e) {
1604
- let t = {};
1605
- for (let r of e) {
1606
- for (let n in t) {
1607
- if (n.startsWith("on") && typeof t[n] == "function" && typeof r[n] == "function") {
1608
- t[n] = ti(r[n], t[n]);
1609
- continue;
1610
- }
1611
- if (n === "className" || n === "class") {
1612
- t[n] = ni(t[n], r[n]);
1613
- continue;
1614
- }
1615
- if (n === "style") {
1616
- t[n] = ii(t[n], r[n]);
1617
- continue;
1618
- }
1619
- t[n] = r[n] !== void 0 ? r[n] : t[n];
1620
- }
1621
- for (let n in r)
1622
- t[n] === void 0 && (t[n] = r[n]);
1623
- }
1624
- return t;
1625
- }
1626
- function ai(e) {
1627
- var n, o;
1628
- let t = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, r = t && "isReactWarning" in t && t.isReactWarning;
1629
- return r ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, r = t && "isReactWarning" in t && t.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
1630
- }
1631
- const dt = (e) => {
1632
- const t = Cr(
1633
- D((r, n) => {
1634
- const { asChild: o, children: i, ...a } = r;
1635
- if (!o)
1636
- return Pn(e, { ...a, ref: n }, i);
1637
- const s = je.only(i);
1638
- if (!Et(s))
1639
- return null;
1640
- const l = ai(s);
1641
- return Je(s, {
1642
- ...Lr(a, s.props),
1643
- ref: n ? ei(n, l) : l
1644
- });
1645
- })
1646
- );
1647
- return t.displayName = e.displayName || e.name, t;
1648
- }, si = () => {
1649
- const e = /* @__PURE__ */ new Map();
1650
- return new Proxy(dt, {
1651
- apply(t, r, n) {
1652
- return dt(n[0]);
1653
- },
1654
- get(t, r) {
1655
- const n = r;
1656
- return e.has(n) || e.set(n, dt(n)), e.get(n);
1657
- }
1658
- });
1659
- }, ci = si(), Ps = D(
1660
- function(t, r) {
1661
- const {
1662
- appearance: n,
1663
- style: o,
1664
- className: i,
1665
- hasBackground: a = !0,
1666
- ...s
1667
- } = t;
1668
- return /* @__PURE__ */ O(
1669
- G.div,
1670
- {
1671
- color: "fg",
1672
- bg: a ? "bg" : void 0,
1673
- colorPalette: "gray",
1674
- ...s,
1675
- className: re("chakra-theme", n, i),
1676
- style: { ...o, colorScheme: n },
1677
- ref: r
1678
- }
1679
- );
1680
- }
1681
- );
1682
- function pt(e, t = []) {
1683
- const r = Cn(() => {
1684
- throw new Error("Cannot call an event handler while rendering.");
1685
- });
1686
- return En(() => {
1687
- r.current = e;
1688
- }), On((...n) => {
1689
- var o;
1690
- return (o = r.current) == null ? void 0 : o.call(r, ...n);
1691
- }, t);
1692
- }
1693
- function li(e) {
1694
- const {
1695
- value: t,
1696
- defaultValue: r,
1697
- onChange: n,
1698
- shouldUpdate: o = (u, m) => u !== m
1699
- } = e, i = pt(n), a = pt(o), [s, l] = Tn(r), f = t !== void 0, c = f ? t : s, d = pt(
1700
- (u) => {
1701
- const g = typeof u == "function" ? u(c) : u;
1702
- a(c, g) && (f || l(g), i(g));
1703
- },
1704
- [f, i, c, a]
1705
- );
1706
- return [c, d];
1707
- }
1708
- const [Cs, ui] = Qo({
1709
- name: "FieldContext",
1710
- hookName: "useFieldContext",
1711
- providerName: "<FieldProvider />",
1712
- strict: !1
1713
- }), Dr = D((e, t) => {
1714
- const r = ui(), n = Lr(r == null ? void 0 : r.getInputProps(), e);
1715
- return /* @__PURE__ */ O(ci.input, { ...n, ref: t });
1716
- });
1717
- Dr.displayName = "FieldInput";
1718
- const fi = (e, t) => {
1719
- var l;
1720
- if (!e || typeof e != "string")
1721
- return { invalid: !0, value: e };
1722
- const [r, n] = e.split("/");
1723
- if (!r || !n || r === "currentBg")
1724
- return { invalid: !0, value: r };
1725
- const o = t(`colors.${r}`), i = (l = t.raw(`opacity.${n}`)) == null ? void 0 : l.value;
1726
- if (!i && isNaN(Number(n)))
1727
- return { invalid: !0, value: r };
1728
- const a = i ? Number(i) * 100 + "%" : `${n}%`, s = o ?? r;
1729
- return {
1730
- invalid: !1,
1731
- color: s,
1732
- value: `color-mix(in srgb, ${s} ${a}, transparent)`
1733
- };
1734
- };
1735
- function xt(e) {
1736
- if (e === null || typeof e != "object") return e;
1737
- if (Array.isArray(e)) return e.map((r) => xt(r));
1738
- const t = Object.create(Object.getPrototypeOf(e));
1739
- for (const r of Object.keys(e))
1740
- t[r] = xt(e[r]);
1741
- return t;
1742
- }
1743
- function St(e, t) {
1744
- if (t == null) return e;
1745
- for (const r of Object.keys(t))
1746
- if (!(t[r] === void 0 || r === "__proto__"))
1747
- if (!te(e[r]) && te(t[r]))
1748
- Object.assign(e, { [r]: t[r] });
1749
- else if (e[r] && te(t[r]))
1750
- St(e[r], t[r]);
1751
- else if (Array.isArray(t[r]) && Array.isArray(e[r])) {
1752
- let n = 0;
1753
- for (; n < t[r].length; n++)
1754
- te(e[r][n]) && te(t[r][n]) ? St(e[r][n], t[r][n]) : e[r][n] = t[r][n];
1755
- } else
1756
- Object.assign(e, { [r]: t[r] });
1757
- return e;
1758
- }
1759
- function Ae(e, ...t) {
1760
- for (const r of t)
1761
- St(e, r);
1762
- return e;
1763
- }
1764
- const Hr = (e) => e, di = (e) => e, pi = (...e) => Ae({}, ...e.map(xt)), mi = /[^a-zA-Z0-9_\u0081-\uffff-]/g;
1765
- function gi(e) {
1766
- return `${e}`.replace(mi, (t) => `\\${t}`);
1767
- }
1768
- const hi = /[A-Z]/g;
1769
- function yi(e) {
1770
- return e.replace(hi, (t) => `-${t.toLowerCase()}`);
1771
- }
1772
- function vi(e, t = {}) {
1773
- const { fallback: r = "", prefix: n = "" } = t, o = yi(["-", n, gi(e)].filter(Boolean).join("-"));
1774
- return {
1775
- var: o,
1776
- ref: `var(${o}${r ? `, ${r}` : ""})`
1777
- };
1778
- }
1779
- var bi = "", xi = bi.split(","), Si = "WebkitAppearance,WebkitBorderBefore,WebkitBorderBeforeColor,WebkitBorderBeforeStyle,WebkitBorderBeforeWidth,WebkitBoxReflect,WebkitLineClamp,WebkitMask,WebkitMaskAttachment,WebkitMaskClip,WebkitMaskComposite,WebkitMaskImage,WebkitMaskOrigin,WebkitMaskPosition,WebkitMaskPositionX,WebkitMaskPositionY,WebkitMaskRepeat,WebkitMaskRepeatX,WebkitMaskRepeatY,WebkitMaskSize,WebkitOverflowScrolling,WebkitTapHighlightColor,WebkitTextFillColor,WebkitTextStroke,WebkitTextStrokeColor,WebkitTextStrokeWidth,WebkitTouchCallout,WebkitUserModify,accentColor,alignContent,alignItems,alignSelf,alignTracks,all,animation,animationComposition,animationDelay,animationDirection,animationDuration,animationFillMode,animationIterationCount,animationName,animationPlayState,animationRange,animationRangeEnd,animationRangeStart,animationTimingFunction,animationTimeline,appearance,aspectRatio,azimuth,backdropFilter,backfaceVisibility,background,backgroundAttachment,backgroundBlendMode,backgroundClip,backgroundColor,backgroundImage,backgroundOrigin,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundRepeat,backgroundSize,blockSize,border,borderBlock,borderBlockColor,borderBlockStyle,borderBlockWidth,borderBlockEnd,borderBlockEndColor,borderBlockEndStyle,borderBlockEndWidth,borderBlockStart,borderBlockStartColor,borderBlockStartStyle,borderBlockStartWidth,borderBottom,borderBottomColor,borderBottomLeftRadius,borderBottomRightRadius,borderBottomStyle,borderBottomWidth,borderCollapse,borderColor,borderEndEndRadius,borderEndStartRadius,borderImage,borderImageOutset,borderImageRepeat,borderImageSlice,borderImageSource,borderImageWidth,borderInline,borderInlineEnd,borderInlineColor,borderInlineStyle,borderInlineWidth,borderInlineEndColor,borderInlineEndStyle,borderInlineEndWidth,borderInlineStart,borderInlineStartColor,borderInlineStartStyle,borderInlineStartWidth,borderLeft,borderLeftColor,borderLeftStyle,borderLeftWidth,borderRadius,borderRight,borderRightColor,borderRightStyle,borderRightWidth,borderSpacing,borderStartEndRadius,borderStartStartRadius,borderStyle,borderTop,borderTopColor,borderTopLeftRadius,borderTopRightRadius,borderTopStyle,borderTopWidth,borderWidth,bottom,boxAlign,boxDecorationBreak,boxDirection,boxFlex,boxFlexGroup,boxLines,boxOrdinalGroup,boxOrient,boxPack,boxShadow,boxSizing,breakAfter,breakBefore,breakInside,captionSide,caret,caretColor,caretShape,clear,clip,clipPath,color,colorScheme,columnCount,columnFill,columnGap,columnRule,columnRuleColor,columnRuleStyle,columnRuleWidth,columnSpan,columnWidth,columns,contain,containIntrinsicSize,containIntrinsicBlockSize,containIntrinsicHeight,containIntrinsicInlineSize,containIntrinsicWidth,container,containerName,containerType,content,contentVisibility,counterIncrement,counterReset,counterSet,cursor,direction,display,emptyCells,filter,flex,flexBasis,flexDirection,flexFlow,flexGrow,flexShrink,flexWrap,float,font,fontFamily,fontFeatureSettings,fontKerning,fontLanguageOverride,fontOpticalSizing,fontPalette,fontVariationSettings,fontSize,fontSizeAdjust,fontSmooth,fontStretch,fontStyle,fontSynthesis,fontSynthesisPosition,fontSynthesisSmallCaps,fontSynthesisStyle,fontSynthesisWeight,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariantEastAsian,fontVariantEmoji,fontVariantLigatures,fontVariantNumeric,fontVariantPosition,fontWeight,forcedColorAdjust,gap,grid,gridArea,gridAutoColumns,gridAutoFlow,gridAutoRows,gridColumn,gridColumnEnd,gridColumnGap,gridColumnStart,gridGap,gridRow,gridRowEnd,gridRowGap,gridRowStart,gridTemplate,gridTemplateAreas,gridTemplateColumns,gridTemplateRows,hangingPunctuation,height,hyphenateCharacter,hyphenateLimitChars,hyphens,imageOrientation,imageRendering,imageResolution,imeMode,initialLetter,initialLetterAlign,inlineSize,inputSecurity,inset,insetBlock,insetBlockEnd,insetBlockStart,insetInline,insetInlineEnd,insetInlineStart,isolation,justifyContent,justifyItems,justifySelf,justifyTracks,left,letterSpacing,lineBreak,lineClamp,lineHeight,lineHeightStep,listStyle,listStyleImage,listStylePosition,listStyleType,margin,marginBlock,marginBlockEnd,marginBlockStart,marginBottom,marginInline,marginInlineEnd,marginInlineStart,marginLeft,marginRight,marginTop,marginTrim,mask,maskBorder,maskBorderMode,maskBorderOutset,maskBorderRepeat,maskBorderSlice,maskBorderSource,maskBorderWidth,maskClip,maskComposite,maskImage,maskMode,maskOrigin,maskPosition,maskRepeat,maskSize,maskType,masonryAutoFlow,mathDepth,mathShift,mathStyle,maxBlockSize,maxHeight,maxInlineSize,maxLines,maxWidth,minBlockSize,minHeight,minInlineSize,minWidth,mixBlendMode,objectFit,objectPosition,offset,offsetAnchor,offsetDistance,offsetPath,offsetPosition,offsetRotate,opacity,order,orphans,outline,outlineColor,outlineOffset,outlineStyle,outlineWidth,overflow,overflowAnchor,overflowBlock,overflowClipBox,overflowClipMargin,overflowInline,overflowWrap,overflowX,overflowY,overlay,overscrollBehavior,overscrollBehaviorBlock,overscrollBehaviorInline,overscrollBehaviorX,overscrollBehaviorY,padding,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingBottom,paddingInline,paddingInlineEnd,paddingInlineStart,paddingLeft,paddingRight,paddingTop,page,pageBreakAfter,pageBreakBefore,pageBreakInside,paintOrder,perspective,perspectiveOrigin,placeContent,placeItems,placeSelf,pointerEvents,position,printColorAdjust,quotes,resize,right,rotate,rowGap,rubyAlign,rubyMerge,rubyPosition,scale,scrollbarColor,scrollbarGutter,scrollbarWidth,scrollBehavior,scrollMargin,scrollMarginBlock,scrollMarginBlockStart,scrollMarginBlockEnd,scrollMarginBottom,scrollMarginInline,scrollMarginInlineStart,scrollMarginInlineEnd,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollPadding,scrollPaddingBlock,scrollPaddingBlockStart,scrollPaddingBlockEnd,scrollPaddingBottom,scrollPaddingInline,scrollPaddingInlineStart,scrollPaddingInlineEnd,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollSnapAlign,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapStop,scrollSnapType,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,shapeImageThreshold,shapeMargin,shapeOutside,tabSize,tableLayout,textAlign,textAlignLast,textCombineUpright,textDecoration,textDecorationColor,textDecorationLine,textDecorationSkip,textDecorationSkipInk,textDecorationStyle,textDecorationThickness,textEmphasis,textEmphasisColor,textEmphasisPosition,textEmphasisStyle,textIndent,textJustify,textOrientation,textOverflow,textRendering,textShadow,textSizeAdjust,textTransform,textUnderlineOffset,textUnderlinePosition,textWrap,timelineScope,top,touchAction,transform,transformBox,transformOrigin,transformStyle,transition,transitionBehavior,transitionDelay,transitionDuration,transitionProperty,transitionTimingFunction,translate,unicodeBidi,userSelect,verticalAlign,viewTimeline,viewTimelineAxis,viewTimelineInset,viewTimelineName,viewTransitionName,visibility,whiteSpace,whiteSpaceCollapse,widows,width,willChange,wordBreak,wordSpacing,wordWrap,writingMode,zIndex,zoom,alignmentBaseline,baselineShift,clipRule,colorInterpolation,colorRendering,dominantBaseline,fill,fillOpacity,fillRule,floodColor,floodOpacity,glyphOrientationVertical,lightingColor,marker,markerEnd,markerMid,markerStart,shapeRendering,stopColor,stopOpacity,stroke,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,strokeWidth,textAnchor,vectorEffect", ki = Si.split(",").concat(xi), wi = new Map(ki.map((e) => [e, !0]));
1780
- function Pi(e) {
1781
- const t = /* @__PURE__ */ Object.create(null);
1782
- return (r) => (t[r] === void 0 && (t[r] = e(r)), t[r]);
1783
- }
1784
- var Ci = /&|@/, Ei = /* @__PURE__ */ Pi((e) => wi.has(e) || e.startsWith("--") || Ci.test(e));
1785
- const Oi = (e) => e != null;
1786
- function me(e, t, r = {}) {
1787
- const { stop: n, getKey: o } = r;
1788
- function i(a, s = []) {
1789
- if (te(a) || Array.isArray(a)) {
1790
- const l = {};
1791
- for (const [f, c] of Object.entries(a)) {
1792
- const d = (o == null ? void 0 : o(f, c)) ?? f, u = [...s, d];
1793
- if (n != null && n(a, u))
1794
- return t(a, s);
1795
- const m = i(c, u);
1796
- Oi(m) && (l[d] = m);
1797
- }
1798
- return l;
1799
- }
1800
- return t(a, s);
1801
- }
1802
- return i(e);
1803
- }
1804
- function Q(e, t) {
1805
- return Array.isArray(e) ? e.map((r) => t(r)) : te(e) ? me(e, (r) => t(r)) : e != null ? t(e) : e;
1806
- }
1807
- function Ti(e, t) {
1808
- const r = {};
1809
- return me(
1810
- e,
1811
- (n, o) => {
1812
- n && (r[o.join(".")] = n.value);
1813
- },
1814
- { stop: t }
1815
- ), r;
1816
- }
1817
- var mt, ir;
1818
- function Ai() {
1819
- if (ir) return mt;
1820
- ir = 1, mt = i, i.default = i, i.stable = f, i.stableStringify = f;
1821
- var e = "[...]", t = "[Circular]", r = [], n = [];
1822
- function o() {
1823
- return {
1824
- depthLimit: Number.MAX_SAFE_INTEGER,
1825
- edgesLimit: Number.MAX_SAFE_INTEGER
1826
- };
1827
- }
1828
- function i(u, m, g, p) {
1829
- typeof p > "u" && (p = o()), s(u, "", 0, [], void 0, 0, p);
1830
- var x;
1831
- try {
1832
- n.length === 0 ? x = JSON.stringify(u, m, g) : x = JSON.stringify(u, d(m), g);
1833
- } catch {
1834
- return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]");
1835
- } finally {
1836
- for (; r.length !== 0; ) {
1837
- var k = r.pop();
1838
- k.length === 4 ? Object.defineProperty(k[0], k[1], k[3]) : k[0][k[1]] = k[2];
1839
- }
1840
- }
1841
- return x;
1842
- }
1843
- function a(u, m, g, p) {
1844
- var x = Object.getOwnPropertyDescriptor(p, g);
1845
- x.get !== void 0 ? x.configurable ? (Object.defineProperty(p, g, { value: u }), r.push([p, g, m, x])) : n.push([m, g, u]) : (p[g] = u, r.push([p, g, m]));
1846
- }
1847
- function s(u, m, g, p, x, k, b) {
1848
- k += 1;
1849
- var y;
1850
- if (typeof u == "object" && u !== null) {
1851
- for (y = 0; y < p.length; y++)
1852
- if (p[y] === u) {
1853
- a(t, u, m, x);
1854
- return;
1855
- }
1856
- if (typeof b.depthLimit < "u" && k > b.depthLimit) {
1857
- a(e, u, m, x);
1858
- return;
1859
- }
1860
- if (typeof b.edgesLimit < "u" && g + 1 > b.edgesLimit) {
1861
- a(e, u, m, x);
1862
- return;
1863
- }
1864
- if (p.push(u), Array.isArray(u))
1865
- for (y = 0; y < u.length; y++)
1866
- s(u[y], y, y, p, u, k, b);
1867
- else {
1868
- var P = Object.keys(u);
1869
- for (y = 0; y < P.length; y++) {
1870
- var h = P[y];
1871
- s(u[h], h, y, p, u, k, b);
1872
- }
1873
- }
1874
- p.pop();
1875
- }
1876
- }
1877
- function l(u, m) {
1878
- return u < m ? -1 : u > m ? 1 : 0;
1879
- }
1880
- function f(u, m, g, p) {
1881
- typeof p > "u" && (p = o());
1882
- var x = c(u, "", 0, [], void 0, 0, p) || u, k;
1883
- try {
1884
- n.length === 0 ? k = JSON.stringify(x, m, g) : k = JSON.stringify(x, d(m), g);
1885
- } catch {
1886
- return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]");
1887
- } finally {
1888
- for (; r.length !== 0; ) {
1889
- var b = r.pop();
1890
- b.length === 4 ? Object.defineProperty(b[0], b[1], b[3]) : b[0][b[1]] = b[2];
1891
- }
1892
- }
1893
- return k;
1894
- }
1895
- function c(u, m, g, p, x, k, b) {
1896
- k += 1;
1897
- var y;
1898
- if (typeof u == "object" && u !== null) {
1899
- for (y = 0; y < p.length; y++)
1900
- if (p[y] === u) {
1901
- a(t, u, m, x);
1902
- return;
1903
- }
1904
- try {
1905
- if (typeof u.toJSON == "function")
1906
- return;
1907
- } catch {
1908
- return;
1909
- }
1910
- if (typeof b.depthLimit < "u" && k > b.depthLimit) {
1911
- a(e, u, m, x);
1912
- return;
1913
- }
1914
- if (typeof b.edgesLimit < "u" && g + 1 > b.edgesLimit) {
1915
- a(e, u, m, x);
1916
- return;
1917
- }
1918
- if (p.push(u), Array.isArray(u))
1919
- for (y = 0; y < u.length; y++)
1920
- c(u[y], y, y, p, u, k, b);
1921
- else {
1922
- var P = {}, h = Object.keys(u).sort(l);
1923
- for (y = 0; y < h.length; y++) {
1924
- var T = h[y];
1925
- c(u[T], T, y, p, u, k, b), P[T] = u[T];
1926
- }
1927
- if (typeof x < "u")
1928
- r.push([x, m, u]), x[m] = P;
1929
- else
1930
- return P;
1931
- }
1932
- p.pop();
1933
- }
1934
- }
1935
- function d(u) {
1936
- return u = typeof u < "u" ? u : function(m, g) {
1937
- return g;
1938
- }, function(m, g) {
1939
- if (n.length > 0)
1940
- for (var p = 0; p < n.length; p++) {
1941
- var x = n[p];
1942
- if (x[1] === m && x[0] === g) {
1943
- g = x[2], n.splice(p, 1);
1944
- break;
1945
- }
1946
- }
1947
- return u.call(this, m, g);
1948
- };
1949
- }
1950
- return mt;
1951
- }
1952
- var Ri = Ai();
1953
- const _i = /* @__PURE__ */ mo(Ri), se = (e) => {
1954
- const t = /* @__PURE__ */ Object.create(null);
1955
- function r(...n) {
1956
- const o = n.map((i) => _i(i)).join("|");
1957
- return t[o] === void 0 && (t[o] = e(...n)), t[o];
1958
- }
1959
- return r;
1960
- }, Yr = 16, Ge = "px", Wt = "em", $e = "rem";
1961
- function Ur(e = "") {
1962
- const t = new RegExp(String.raw`-?\d+(?:\.\d+|\d*)`), r = new RegExp(`${Ge}|${Wt}|${$e}`), n = e.match(
1963
- new RegExp(`${t.source}(${r.source})`)
1964
- );
1965
- return n == null ? void 0 : n[1];
1966
- }
1967
- function Gr(e = "") {
1968
- if (typeof e == "number")
1969
- return `${e}px`;
1970
- const t = Ur(e);
1971
- if (!t || t === Ge)
1972
- return e;
1973
- if (t === Wt || t === $e)
1974
- return `${parseFloat(e) * Yr}${Ge}`;
1975
- }
1976
- function Xr(e = "") {
1977
- const t = Ur(e);
1978
- if (!t || t === $e)
1979
- return e;
1980
- if (t === Wt)
1981
- return `${parseFloat(e)}${$e}`;
1982
- if (t === Ge)
1983
- return `${parseFloat(e) / Yr}${$e}`;
1984
- }
1985
- const $i = (e) => e.charAt(0).toUpperCase() + e.slice(1);
1986
- function Mi(e) {
1987
- const t = Ii(e), r = Object.fromEntries(t);
1988
- function n(u) {
1989
- return r[u];
1990
- }
1991
- function o(u) {
1992
- return ke(n(u));
1993
- }
1994
- function i() {
1995
- const u = Object.keys(r), m = Ni(u), g = u.flatMap((p) => {
1996
- const x = n(p), k = [
1997
- `${p}Down`,
1998
- ke({ max: Ye(x.min) })
1999
- ], b = [p, ke({ min: x.min })], y = [`${p}Only`, o(p)];
2000
- return [b, y, k];
2001
- }).filter(([, p]) => p !== "").concat(
2002
- m.map(([p, x]) => {
2003
- const k = n(p), b = n(x);
2004
- return [
2005
- `${p}To${$i(x)}`,
2006
- ke({ min: k.min, max: Ye(b.min) })
2007
- ];
2008
- })
2009
- );
2010
- return Object.fromEntries(g);
2011
- }
2012
- function a() {
2013
- const u = i();
2014
- return Object.fromEntries(Object.entries(u));
2015
- }
2016
- const s = a(), l = (u) => s[u];
2017
- function f() {
2018
- return ["base", ...Object.keys(r)];
2019
- }
2020
- function c(u) {
2021
- return ke({ min: n(u).min });
2022
- }
2023
- function d(u) {
2024
- return ke({ max: Ye(n(u).min) });
2025
- }
2026
- return {
2027
- values: Object.values(r),
2028
- only: o,
2029
- keys: f,
2030
- conditions: s,
2031
- getCondition: l,
2032
- up: c,
2033
- down: d
2034
- };
2035
- }
2036
- function Ye(e) {
2037
- const t = parseFloat(Gr(e) ?? "") - 0.04;
2038
- return Xr(`${t}px`);
2039
- }
2040
- function Ii(e) {
2041
- return Object.entries(e).sort(([, r], [, n]) => parseInt(r, 10) < parseInt(n, 10) ? -1 : 1).map(([r, n], o, i) => {
2042
- var s;
2043
- let a = null;
2044
- return o <= i.length - 1 && (a = (s = i[o + 1]) == null ? void 0 : s[1]), a != null && (a = Ye(a)), [r, { name: r, min: Xr(n), max: a }];
2045
- });
2046
- }
2047
- function Ni(e) {
2048
- const t = [];
2049
- return e.forEach((r, n) => {
2050
- let o = n;
2051
- o++;
2052
- let i = e[o];
2053
- for (; i; )
2054
- t.push([r, i]), o++, i = e[o];
2055
- }), t;
2056
- }
2057
- function ke({ min: e, max: t }) {
2058
- return e == null && t == null ? "" : [
2059
- "@media screen",
2060
- e && `(min-width: ${e})`,
2061
- t && `(max-width: ${t})`
2062
- ].filter(Boolean).join(" and ");
2063
- }
2064
- const ji = (e, t) => Object.fromEntries(
2065
- Object.entries(e).map(([r, n]) => t(r, n))
2066
- ), Fi = (e) => {
2067
- const { breakpoints: t, conditions: r = {} } = e, n = ji(r, (c, d) => [`_${c}`, d]), o = Object.assign({}, n, t.conditions);
2068
- function i() {
2069
- return Object.keys(o);
2070
- }
2071
- function a(c) {
2072
- return i().includes(c) || /^@|&|&$/.test(c) || c.startsWith("_");
2073
- }
2074
- function s(c) {
2075
- return c.filter((d) => d !== "base").sort((d, u) => {
2076
- const m = a(d), g = a(u);
2077
- return m && !g ? 1 : !m && g ? -1 : 0;
2078
- });
2079
- }
2080
- function l(c) {
2081
- return c.startsWith("@breakpoint") ? t.getCondition(c.replace("@breakpoint ", "")) : c;
2082
- }
2083
- function f(c) {
2084
- return Reflect.get(o, c) || c;
2085
- }
2086
- return {
2087
- keys: i,
2088
- sort: s,
2089
- has: a,
2090
- resolve: f,
2091
- breakpoints: t.keys(),
2092
- expandAtRule: l
2093
- };
2094
- }, qr = (e) => ({
2095
- minMax: new RegExp(
2096
- `(!?\\(\\s*min(-device-)?-${e})(.|
2097
- )+\\(\\s*max(-device)?-${e}`,
2098
- "i"
2099
- ),
2100
- min: new RegExp(`\\(\\s*min(-device)?-${e}`, "i"),
2101
- maxMin: new RegExp(
2102
- `(!?\\(\\s*max(-device)?-${e})(.|
2103
- )+\\(\\s*min(-device)?-${e}`,
2104
- "i"
2105
- ),
2106
- max: new RegExp(`\\(\\s*max(-device)?-${e}`, "i")
2107
- }), Wi = qr("width"), Bi = qr("height"), Kr = (e) => ({
2108
- isMin: fr(e.minMax, e.maxMin, e.min),
2109
- isMax: fr(e.maxMin, e.minMax, e.max)
2110
- }), { isMin: kt, isMax: ar } = Kr(Wi), { isMin: wt, isMax: sr } = Kr(Bi), cr = /print/i, lr = /^print$/i, zi = /(-?\d*\.?\d+)(ch|em|ex|px|rem)/, Vi = /(\d)/, _e = Number.MAX_VALUE, Li = { ch: 8.8984375, em: 16, rem: 16, ex: 8.296875, px: 1 };
2111
- function ur(e) {
2112
- const t = zi.exec(e) || (kt(e) || wt(e) ? Vi.exec(e) : null);
2113
- if (!t) return _e;
2114
- if (t[0] === "0") return 0;
2115
- const r = parseFloat(t[1]), n = t[2];
2116
- return r * (Li[n] || 1);
2117
- }
2118
- function fr(e, t, r) {
2119
- return (n) => e.test(n) || !t.test(n) && r.test(n);
2120
- }
2121
- function Di(e, t) {
2122
- const r = cr.test(e), n = lr.test(e), o = cr.test(t), i = lr.test(t);
2123
- return r && o ? !n && i ? 1 : n && !i ? -1 : e.localeCompare(t) : r ? 1 : o ? -1 : null;
2124
- }
2125
- const Hi = se((e, t) => {
2126
- const r = Di(e, t);
2127
- if (r !== null) return r;
2128
- const n = kt(e) || wt(e), o = ar(e) || sr(e), i = kt(t) || wt(t), a = ar(t) || sr(t);
2129
- if (n && a) return -1;
2130
- if (o && i) return 1;
2131
- const s = ur(e), l = ur(t);
2132
- return s === _e && l === _e ? e.localeCompare(t) : s === _e ? 1 : l === _e ? -1 : s !== l ? s > l ? o ? -1 : 1 : o ? 1 : -1 : e.localeCompare(t);
2133
- });
2134
- function dr(e) {
2135
- return e.sort(([t], [r]) => Hi(t, r));
2136
- }
2137
- function Jr(e) {
2138
- const t = [], r = [], n = {};
2139
- for (const [a, s] of Object.entries(e))
2140
- a.startsWith("@media") ? t.push([a, s]) : a.startsWith("@container") ? r.push([a, s]) : te(s) ? n[a] = Jr(s) : n[a] = s;
2141
- const o = dr(t), i = dr(r);
2142
- return {
2143
- ...n,
2144
- ...Object.fromEntries(o),
2145
- ...Object.fromEntries(i)
2146
- };
2147
- }
2148
- const Qr = /\s*!(important)?/i, Yi = (e) => pe(e) ? Qr.test(e) : !1, Ui = (e) => pe(e) ? e.replace(Qr, "").trim() : e;
2149
- function Zr(e) {
2150
- const { transform: t, conditions: r, normalize: n } = e, o = qi(e);
2151
- return se(function(...a) {
2152
- const s = o(...a), l = n(s), f = /* @__PURE__ */ Object.create(null);
2153
- return me(l, (c, d) => {
2154
- const u = Yi(c);
2155
- if (c == null) return;
2156
- const [m, ...g] = r.sort(d).map(r.resolve);
2157
- u && (c = Ui(c));
2158
- let p = t(m, c) ?? /* @__PURE__ */ Object.create(null);
2159
- p = me(
2160
- p,
2161
- (x) => pe(x) && u ? `${x} !important` : x,
2162
- { getKey: (x) => r.expandAtRule(x) }
2163
- ), Gi(f, g.flat(), p);
2164
- }), Jr(f);
2165
- });
2166
- }
2167
- function Gi(e, t, r) {
2168
- let n = e;
2169
- for (const o of t)
2170
- o && (n[o] || (n[o] = /* @__PURE__ */ Object.create(null)), n = n[o]);
2171
- Ae(n, r);
2172
- }
2173
- function Xi(...e) {
2174
- return e.filter(
2175
- (t) => te(t) && Object.keys(Te(t)).length > 0
2176
- );
2177
- }
2178
- function qi(e) {
2179
- function t(r) {
2180
- const n = Xi(...r);
2181
- return n.length === 1 ? n : n.map((o) => e.normalize(o));
2182
- }
2183
- return se(function(...n) {
2184
- return Ae({}, ...t(n));
2185
- });
2186
- }
2187
- function en(e, t = []) {
2188
- const r = Object.assign({}, e);
2189
- for (const n of t)
2190
- n in r && delete r[n];
2191
- return r;
2192
- }
2193
- const Ki = (...e) => {
2194
- const t = e.filter(Boolean);
2195
- return Array.from(new Set(t));
2196
- }, tn = (e) => ({
2197
- base: {},
2198
- variants: {},
2199
- defaultVariants: {},
2200
- compoundVariants: [],
2201
- ...e
2202
- });
2203
- function Ji(e) {
2204
- const { css: t, conditions: r, normalize: n, layers: o } = e;
2205
- function i(s = {}) {
2206
- const { base: l, variants: f, defaultVariants: c, compoundVariants: d } = tn(s), u = Zr({
2207
- conditions: r,
2208
- normalize: n,
2209
- transform(b, y) {
2210
- var P;
2211
- return (P = f[b]) == null ? void 0 : P[y];
2212
- }
2213
- }), m = (b = {}) => {
2214
- const y = n({
2215
- ...c,
2216
- ...Te(b)
2217
- });
2218
- let P = { ...l };
2219
- Ae(P, u(y));
2220
- const h = a(
2221
- d,
2222
- y
2223
- );
2224
- return o.wrap("recipes", t(P, h));
2225
- }, g = Object.keys(f), p = (b) => {
2226
- const y = en(b, ["recipe"]), [P, h] = Ce(y, g);
2227
- return g.includes("colorPalette") || (P.colorPalette = b.colorPalette || c.colorPalette), g.includes("orientation") && (h.orientation = b.orientation), [P, h];
2228
- }, x = Object.fromEntries(
2229
- Object.entries(f).map(([b, y]) => [
2230
- b,
2231
- Object.keys(y)
2232
- ])
2233
- );
2234
- return Object.assign((b) => t(m(b)), {
2235
- className: s.className,
2236
- __cva__: !0,
2237
- variantMap: x,
2238
- variantKeys: g,
2239
- raw: m,
2240
- config: s,
2241
- splitVariantProps: p,
2242
- merge(b) {
2243
- return i(Qi(e)(this, b));
2244
- }
2245
- });
2246
- }
2247
- function a(s, l) {
2248
- let f = {};
2249
- return s.forEach((c) => {
2250
- Object.entries(c).every(([u, m]) => u === "css" ? !0 : (Array.isArray(m) ? m : [m]).some((p) => l[u] === p)) && (f = t(f, c.css));
2251
- }), f;
2252
- }
2253
- return i;
2254
- }
2255
- function Qi(e) {
2256
- const { css: t } = e;
2257
- return function(n, o) {
2258
- const i = tn(o.config), a = Ki(n.variantKeys, Object.keys(o.variants)), s = t(n.base, i.base), l = Object.fromEntries(
2259
- a.map((u) => [
2260
- u,
2261
- t(n.config.variants[u], i.variants[u])
2262
- ])
2263
- ), f = Ae(
2264
- n.config.defaultVariants,
2265
- i.defaultVariants
2266
- ), c = [
2267
- ...n.compoundVariants,
2268
- ...i.compoundVariants
2269
- ];
2270
- return {
2271
- className: re(n.className, o.className),
2272
- base: s,
2273
- variants: l,
2274
- defaultVariants: f,
2275
- compoundVariants: c
2276
- };
2277
- };
2278
- }
2279
- const Zi = {
2280
- reset: "reset",
2281
- base: "base",
2282
- tokens: "tokens",
2283
- recipes: "recipes"
2284
- }, pr = {
2285
- reset: 0,
2286
- base: 1,
2287
- tokens: 2,
2288
- recipes: 3
2289
- };
2290
- function ea(e) {
2291
- const t = e.layers ?? Zi, n = Object.values(t).sort((o, i) => pr[o] - pr[i]);
2292
- return {
2293
- names: n,
2294
- atRule: `@layer ${n.join(", ")};`,
2295
- wrap(o, i) {
2296
- return e.disableLayers ? i : { [`@layer ${t[o]}`]: i };
2297
- }
2298
- };
2299
- }
2300
- function ta(e) {
2301
- const { utility: t, normalize: r } = e, { hasShorthand: n, resolveShorthand: o } = t;
2302
- return function(i) {
2303
- return me(i, r, {
2304
- stop: (a) => Array.isArray(a),
2305
- getKey: n ? o : void 0
2306
- });
2307
- };
2308
- }
2309
- function ra(e) {
2310
- const { preflight: t } = e;
2311
- if (!t) return {};
2312
- const { scope: r = "", level: n = "parent" } = te(t) ? t : {};
2313
- let o = "";
2314
- r && n === "parent" ? o = `${r} ` : r && n === "element" && (o = `&${r}`);
2315
- const i = {
2316
- "*": {
2317
- margin: "0px",
2318
- padding: "0px",
2319
- font: "inherit",
2320
- wordWrap: "break-word",
2321
- WebkitTapHighlightColor: "transparent"
2322
- },
2323
- "*, *::before, *::after, *::backdrop": {
2324
- boxSizing: "border-box",
2325
- borderWidth: "0px",
2326
- borderStyle: "solid",
2327
- borderColor: "var(--global-color-border, currentColor)"
2328
- },
2329
- hr: {
2330
- height: "0px",
2331
- color: "inherit",
2332
- borderTopWidth: "1px"
2333
- },
2334
- body: {
2335
- minHeight: "100dvh",
2336
- position: "relative"
2337
- },
2338
- img: {
2339
- borderStyle: "none"
2340
- },
2341
- "img, svg, video, canvas, audio, iframe, embed, object": {
2342
- display: "block",
2343
- verticalAlign: "middle"
2344
- },
2345
- iframe: { border: "none" },
2346
- "img, video": { maxWidth: "100%", height: "auto" },
2347
- "p, h1, h2, h3, h4, h5, h6": { overflowWrap: "break-word" },
2348
- "ol, ul": { listStyle: "none" },
2349
- "code, kbd, pre, samp": { fontSize: "1em" },
2350
- "button, [type='button'], [type='reset'], [type='submit']": {
2351
- WebkitAppearance: "button",
2352
- backgroundColor: "transparent",
2353
- backgroundImage: "none"
2354
- },
2355
- "button, input, optgroup, select, textarea": { color: "inherit" },
2356
- "button, select": { textTransform: "none" },
2357
- table: {
2358
- textIndent: "0px",
2359
- borderColor: "inherit",
2360
- borderCollapse: "collapse"
2361
- },
2362
- "*::placeholder": {
2363
- opacity: "unset",
2364
- color: "#9ca3af",
2365
- userSelect: "none"
2366
- },
2367
- textarea: {
2368
- resize: "vertical"
2369
- },
2370
- summary: {
2371
- display: "list-item"
2372
- },
2373
- small: {
2374
- fontSize: "80%"
2375
- },
2376
- "sub, sup": {
2377
- fontSize: "75%",
2378
- lineHeight: 0,
2379
- position: "relative",
2380
- verticalAlign: "baseline"
2381
- },
2382
- sub: {
2383
- bottom: "-0.25em"
2384
- },
2385
- sup: {
2386
- top: "-0.5em"
2387
- },
2388
- dialog: {
2389
- padding: "0px"
2390
- },
2391
- a: {
2392
- color: "inherit",
2393
- textDecoration: "inherit"
2394
- },
2395
- "abbr:where([title])": {
2396
- textDecoration: "underline dotted"
2397
- },
2398
- "b, strong": {
2399
- fontWeight: "bolder"
2400
- },
2401
- "code, kbd, samp, pre": {
2402
- fontSize: "1em",
2403
- "--font-mono-fallback": "ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New'",
2404
- fontFamily: "var(--global-font-mono, var(--font-mono-fallback))"
2405
- },
2406
- 'input[type="text"], input[type="email"], input[type="search"], input[type="password"]': {
2407
- WebkitAppearance: "none",
2408
- MozAppearance: "none"
2409
- },
2410
- "input[type='search']": {
2411
- WebkitAppearance: "textfield",
2412
- outlineOffset: "-2px"
2413
- },
2414
- "::-webkit-search-decoration, ::-webkit-search-cancel-button": {
2415
- WebkitAppearance: "none"
2416
- },
2417
- "::-webkit-file-upload-button": {
2418
- WebkitAppearance: "button",
2419
- font: "inherit"
2420
- },
2421
- 'input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button': {
2422
- height: "auto"
2423
- },
2424
- "input[type='number']": {
2425
- MozAppearance: "textfield"
2426
- },
2427
- ":-moz-ui-invalid": {
2428
- boxShadow: "none"
2429
- },
2430
- ":-moz-focusring": {
2431
- outline: "auto"
2432
- },
2433
- "[hidden]:where(:not([hidden='until-found']))": {
2434
- display: "none !important"
2435
- }
2436
- }, a = {
2437
- [r || "html"]: {
2438
- lineHeight: 1.5,
2439
- "--font-fallback": "ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",
2440
- WebkitTextSizeAdjust: "100%",
2441
- WebkitFontSmoothing: "antialiased",
2442
- MozOsxFontSmoothing: "grayscale",
2443
- textRendering: "optimizeLegibility",
2444
- touchAction: "manipulation",
2445
- MozTabSize: "4",
2446
- tabSize: "4",
2447
- fontFamily: "var(--global-font-body, var(--font-fallback))"
2448
- }
2449
- };
2450
- if (n === "element") {
2451
- const s = Object.entries(i).reduce((l, [f, c]) => (l[f] = { [o]: c }, l), {});
2452
- Object.assign(a, s);
2453
- } else o ? a[o] = i : Object.assign(a, i);
2454
- return a;
2455
- }
2456
- function na(e) {
2457
- const { conditions: t, isValidProperty: r } = e;
2458
- return function(o) {
2459
- return me(o, (i) => i, {
2460
- getKey: (i, a) => te(a) && !t.has(i) && !r(i) ? oa(i).map((s) => "&" + s).join(", ") : i
2461
- });
2462
- };
2463
- }
2464
- function oa(e) {
2465
- const t = [];
2466
- let r = 0, n = "", o = !1;
2467
- for (let i = 0; i < e.length; i++) {
2468
- const a = e[i];
2469
- if (a === "\\" && !o) {
2470
- o = !0, n += a;
2471
- continue;
2472
- }
2473
- if (o) {
2474
- o = !1, n += a;
2475
- continue;
2476
- }
2477
- a === "(" ? r++ : a === ")" && r--, a === "," && r === 0 ? (t.push(n.trim()), n = "") : n += a;
2478
- }
2479
- return n && t.push(n.trim()), t;
2480
- }
2481
- const ia = (e = {}) => {
2482
- const t = (o) => {
2483
- var i;
2484
- return {
2485
- base: ((i = e.base) == null ? void 0 : i[o]) ?? {},
2486
- variants: {},
2487
- defaultVariants: e.defaultVariants ?? {},
2488
- compoundVariants: e.compoundVariants ? aa(e.compoundVariants, o) : []
2489
- };
2490
- }, n = (e.slots ?? []).map((o) => [o, t(o)]);
2491
- for (const [o, i] of Object.entries(
2492
- e.variants ?? {}
2493
- ))
2494
- for (const [a, s] of Object.entries(
2495
- i
2496
- ))
2497
- n.forEach(([l, f]) => {
2498
- var c;
2499
- (c = f.variants)[o] ?? (c[o] = {}), f.variants[o][a] = s[l] ?? {};
2500
- });
2501
- return Object.fromEntries(n);
2502
- }, aa = (e, t) => e.filter((r) => r.css[t]).map((r) => ({
2503
- ...r,
2504
- css: r.css[t]
2505
- }));
2506
- function sa(e) {
2507
- const { cva: t } = e;
2508
- return function(n = {}) {
2509
- const o = Object.entries(ia(n)).map(
2510
- ([d, u]) => [d, t(u)]
2511
- );
2512
- function i(d) {
2513
- const u = o.map(([m, g]) => [m, g(d)]);
2514
- return Object.fromEntries(u);
2515
- }
2516
- const a = n.variants ?? {}, s = Object.keys(a);
2517
- function l(d) {
2518
- var p;
2519
- const u = en(d, ["recipe"]), [m, g] = Ce(u, s);
2520
- return s.includes("colorPalette") || (m.colorPalette = d.colorPalette || ((p = n.defaultVariants) == null ? void 0 : p.colorPalette)), s.includes("orientation") && (g.orientation = d.orientation), [m, g];
2521
- }
2522
- const f = Object.fromEntries(
2523
- Object.entries(a).map(([d, u]) => [d, Object.keys(u)])
2524
- );
2525
- let c = {};
2526
- return n.className && (c = Object.fromEntries(
2527
- n.slots.map((d) => [
2528
- d,
2529
- `${n.className}__${d}`
2530
- ])
2531
- )), Object.assign(i, {
2532
- variantMap: f,
2533
- variantKeys: s,
2534
- splitVariantProps: l,
2535
- classNameMap: c
2536
- });
2537
- };
2538
- }
2539
- const ca = () => (e) => Array.from(new Set(e)), la = /([\0-\x1f\x7f]|^-?\d)|^-$|^-|[^\x80-\uFFFF\w-]/g, ua = function(e, t) {
2540
- return t ? e === "\0" ? "�" : e === "-" && e.length === 1 ? "\\-" : e.slice(0, -1) + "\\" + e.charCodeAt(e.length - 1).toString(16) : "\\" + e;
2541
- }, rn = (e) => (e + "").replace(la, ua), nn = (e, t) => {
2542
- let r = "", n = 0, o = "char", i = "", a = "";
2543
- const s = [];
2544
- for (; n < e.length; ) {
2545
- const l = e[n];
2546
- if (l === "{") {
2547
- const c = e.indexOf("}", n);
2548
- if (c === -1)
2549
- break;
2550
- const d = e.slice(n + 1, c), u = t(d);
2551
- r += u ?? d, n = c + 1;
2552
- continue;
2553
- }
2554
- if (o === "token" && l === ",") {
2555
- e[n] === "" && n++, o = "fallback", s.push(o);
2556
- const c = t(i);
2557
- c != null && c.endsWith(")") && (r += c.slice(0, -1)), i = "", a = "";
2558
- continue;
2559
- }
2560
- if (o === "fallback" && a + l === ", var(") {
2561
- const u = fa(e.slice(n + 1)) + n + 1, m = e.slice(n + 1, u);
2562
- if (u === -1)
2563
- break;
2564
- r += ", var(" + m + ")", n = u + 1, o = s.pop() ?? o, a = "";
2565
- continue;
2566
- }
2567
- if (o === "token" || o === "fallback") {
2568
- if (n++, l === ")") {
2569
- o = s.pop() ?? o ?? "char", a += l;
2570
- const c = i && (t(i) ?? rn(i));
2571
- if (a) {
2572
- if (a = a.slice(1).trim(), !a.startsWith("token(") && a.endsWith(")") && (a = a.slice(0, -1)), a.includes("token(")) {
2573
- const u = nn(a, t);
2574
- u && (a = u.slice(0, -1));
2575
- } else if (a) {
2576
- const u = t(a);
2577
- u && (a = u);
2578
- }
2579
- }
2580
- const d = r.at(-1);
2581
- a ? d != null && d.trim() ? r += c.slice(0, -1) + (", " + a + ")") : r += a : r += c || ")", i = "", a = "", o = "char";
2582
- continue;
2583
- }
2584
- o === "token" && (i += l), o === "fallback" && (a += l);
2585
- continue;
2586
- }
2587
- const f = e.indexOf("token(", n);
2588
- if (f !== -1) {
2589
- const c = f + 6;
2590
- r += e.slice(n, f), n = c, o = "token", s.push(o);
2591
- continue;
2592
- }
2593
- r += l, n++;
2594
- }
2595
- return r;
2596
- }, fa = (e) => {
2597
- let t = 0;
2598
- const r = ["("];
2599
- for (; t < e.length; ) {
2600
- const n = e[t];
2601
- if (n === "(")
2602
- r.push(n);
2603
- else if (n === ")" && (r.pop(), r.length === 0))
2604
- return t;
2605
- t++;
2606
- }
2607
- return t;
2608
- };
2609
- function on(e) {
2610
- const t = {};
2611
- return e.forEach((r, n) => {
2612
- r instanceof Map ? t[n] = Object.fromEntries(r) : t[n] = r;
2613
- }), t;
2614
- }
2615
- const an = /({([^}]*)})/g, da = /[{}]/g, pa = /\w+\.\w+/, sn = (e) => {
2616
- if (!pe(e)) return [];
2617
- const t = e.match(an);
2618
- return t ? t.map((r) => r.replace(da, "")).map((r) => r.trim()) : [];
2619
- }, ma = (e) => an.test(e);
2620
- function cn(e) {
2621
- var r, n, o;
2622
- if (!((r = e.extensions) != null && r.references))
2623
- return ((o = (n = e.extensions) == null ? void 0 : n.cssVar) == null ? void 0 : o.ref) ?? e.value;
2624
- const t = e.extensions.references ?? {};
2625
- return e.value = Object.keys(t).reduce((i, a) => {
2626
- const s = t[a];
2627
- if (s.extensions.conditions)
2628
- return i;
2629
- const l = cn(s);
2630
- return i.replace(`{${a}}`, l);
2631
- }, e.value), delete e.extensions.references, e.value;
2632
- }
2633
- function ln(e) {
2634
- return te(e) && e.reference ? e.reference : String(e);
2635
- }
2636
- const nt = (e, ...t) => t.map(ln).join(` ${e} `).replace(/calc/g, ""), mr = (...e) => `calc(${nt("+", ...e)})`, gr = (...e) => `calc(${nt("-", ...e)})`, Pt = (...e) => `calc(${nt("*", ...e)})`, hr = (...e) => `calc(${nt("/", ...e)})`, yr = (e) => {
2637
- const t = ln(e);
2638
- return t != null && !Number.isNaN(parseFloat(t)) ? String(t).startsWith("-") ? String(t).slice(1) : `-${t}` : Pt(t, -1);
2639
- }, we = Object.assign(
2640
- (e) => ({
2641
- add: (...t) => we(mr(e, ...t)),
2642
- subtract: (...t) => we(gr(e, ...t)),
2643
- multiply: (...t) => we(Pt(e, ...t)),
2644
- divide: (...t) => we(hr(e, ...t)),
2645
- negate: () => we(yr(e)),
2646
- toString: () => e.toString()
2647
- }),
2648
- {
2649
- add: mr,
2650
- subtract: gr,
2651
- multiply: Pt,
2652
- divide: hr,
2653
- negate: yr
2654
- }
2655
- ), ga = {
2656
- enforce: "pre",
2657
- transform(e) {
2658
- const { prefix: t, allTokens: r, formatCssVar: n, formatTokenName: o, registerToken: i } = e;
2659
- r.filter(
2660
- ({ extensions: s }) => s.category === "spacing"
2661
- ).forEach((s) => {
2662
- const l = s.path.slice(), f = n(l, t);
2663
- if (pe(s.value) && s.value === "0rem")
2664
- return;
2665
- const c = structuredClone(s);
2666
- Object.assign(c.extensions, {
2667
- negative: !0,
2668
- prop: `-${s.extensions.prop}`,
2669
- originalPath: l
2670
- }), c.value = we.negate(f.ref);
2671
- const d = c.path[c.path.length - 1];
2672
- d != null && (c.path[c.path.length - 1] = `-${d}`), c.path && (c.name = o(c.path)), i(c);
2673
- });
2674
- }
2675
- }, ha = /* @__PURE__ */ new Set([
2676
- "spacing",
2677
- "sizes",
2678
- "borderWidths",
2679
- "fontSizes",
2680
- "radii"
2681
- ]), ya = {
2682
- enforce: "post",
2683
- transform(e) {
2684
- e.allTokens.filter((r) => ha.has(r.extensions.category) && !r.extensions.negative).forEach((r) => {
2685
- Object.assign(r.extensions, {
2686
- pixelValue: Gr(r.value)
2687
- });
2688
- });
2689
- }
2690
- }, va = {
2691
- enforce: "post",
2692
- transform(e) {
2693
- const { allTokens: t, registerToken: r, formatTokenName: n } = e, o = t.filter(
2694
- ({ extensions: s }) => s.category === "colors"
2695
- ), i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map();
2696
- o.forEach((s) => {
2697
- const { colorPalette: l } = s.extensions;
2698
- l && (l.keys.forEach((f) => {
2699
- i.set(n(f), f);
2700
- }), l.roots.forEach((f) => {
2701
- var u;
2702
- const c = n(f), d = a.get(c) || [];
2703
- if (d.push(s), a.set(c, d), s.extensions.default && f.length === 1) {
2704
- const m = (u = l.keys[0]) == null ? void 0 : u.filter(Boolean);
2705
- if (!m.length) return;
2706
- const g = f.concat(m);
2707
- i.set(n(g), []);
2708
- }
2709
- }));
2710
- }), i.forEach((s) => {
2711
- const l = ["colors", "colorPalette", ...s].filter(Boolean), f = n(l), c = n(l.slice(1));
2712
- r({
2713
- name: f,
2714
- value: f,
2715
- originalValue: f,
2716
- path: l,
2717
- extensions: {
2718
- condition: "base",
2719
- originalPath: l,
2720
- category: "colors",
2721
- prop: c,
2722
- virtual: !0
2723
- }
2724
- }, "pre");
2725
- });
2726
- }
2727
- }, ba = {
2728
- enforce: "post",
2729
- transform(e) {
2730
- e.allTokens = e.allTokens.filter(
2731
- (t) => t.value !== ""
2732
- );
2733
- }
2734
- }, xa = [
2735
- ga,
2736
- va,
2737
- ya,
2738
- ba
2739
- ], Sa = {
2740
- type: "extensions",
2741
- enforce: "pre",
2742
- name: "tokens/css-var",
2743
- transform(e, t) {
2744
- const { prefix: r, formatCssVar: n } = t, { negative: o, originalPath: i } = e.extensions, a = o ? i : e.path;
2745
- return {
2746
- cssVar: n(a.filter(Boolean), r)
2747
- };
2748
- }
2749
- }, ka = {
2750
- enforce: "post",
2751
- type: "value",
2752
- name: "tokens/conditionals",
2753
- transform(e, t) {
2754
- const { prefix: r, formatCssVar: n } = t, o = sn(e.value);
2755
- return o.length && o.forEach((i) => {
2756
- const a = n(i.split("."), r);
2757
- e.value = e.value.replace(`{${a.ref}}`, a);
2758
- }), e.value;
2759
- }
2760
- }, wa = {
2761
- type: "extensions",
2762
- enforce: "pre",
2763
- name: "tokens/colors/colorPalette",
2764
- match(e) {
2765
- return e.extensions.category === "colors" && !e.extensions.virtual;
2766
- },
2767
- transform(e, t) {
2768
- let r = e.path.slice();
2769
- if (r.pop(), r.shift(), r.length === 0) {
2770
- const s = [...e.path];
2771
- s.shift(), r = s;
2772
- }
2773
- if (r.length === 0)
2774
- return {};
2775
- const n = r.reduce((s, l, f, c) => {
2776
- const d = c.slice(0, f + 1);
2777
- return s.push(d), s;
2778
- }, []), o = r[0], i = t.formatTokenName(r), a = e.path.slice(e.path.indexOf(o) + 1).reduce((s, l, f, c) => (s.push(c.slice(f)), s), []);
2779
- return a.length === 0 && a.push([""]), {
2780
- colorPalette: { value: i, roots: n, keys: a }
2781
- };
2782
- }
2783
- }, Pa = [
2784
- Sa,
2785
- ka,
2786
- wa
2787
- ], vr = (e) => te(e) && Object.prototype.hasOwnProperty.call(e, "value");
2788
- function Ca(e) {
2789
- return e ? {
2790
- breakpoints: Q(e, (t) => ({ value: t })),
2791
- sizes: Object.fromEntries(
2792
- Object.entries(e).map(([t, r]) => [
2793
- `breakpoint-${t}`,
2794
- { value: r }
2795
- ])
2796
- )
2797
- } : { breakpoints: {}, sizes: {} };
2798
- }
2799
- function Ea(e) {
2800
- const {
2801
- prefix: t = "",
2802
- tokens: r = {},
2803
- semanticTokens: n = {},
2804
- breakpoints: o = {}
2805
- } = e, i = (S) => S.join("."), a = (S, v) => vi(S.join("-"), { prefix: v }), s = [], l = /* @__PURE__ */ new Map(), f = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Map(), x = [];
2806
- function k(S, v) {
2807
- s.push(S), l.set(S.name, S), v && p.forEach((M) => {
2808
- M.enforce === v && V(M, S);
2809
- });
2810
- }
2811
- const b = Ca(o), y = Te({
2812
- ...r,
2813
- breakpoints: b.breakpoints,
2814
- sizes: {
2815
- ...r.sizes,
2816
- ...b.sizes
2817
- }
2818
- });
2819
- function P() {
2820
- me(
2821
- y,
2822
- (S, v) => {
2823
- const M = v.includes("DEFAULT");
2824
- v = br(v);
2825
- const z = v[0], w = i(v), Y = pe(S) ? { value: S } : S, ee = {
2826
- value: Y.value,
2827
- originalValue: Y.value,
2828
- name: w,
2829
- path: v,
2830
- extensions: {
2831
- condition: "base",
2832
- originalPath: v,
2833
- category: z,
2834
- prop: i(v.slice(1))
2835
- }
2836
- };
2837
- M && (ee.extensions.default = !0), k(ee);
2838
- },
2839
- { stop: vr }
2840
- ), me(
2841
- n,
2842
- (S, v) => {
2843
- const M = v.includes("DEFAULT");
2844
- v = un(br(v));
2845
- const z = v[0], w = i(v), Y = pe(S.value) ? { value: { base: S.value } } : S, ee = {
2846
- value: Y.value.base || "",
2847
- originalValue: Y.value.base || "",
2848
- name: w,
2849
- path: v,
2850
- extensions: {
2851
- originalPath: v,
2852
- category: z,
2853
- conditions: Y.value,
2854
- condition: "base",
2855
- prop: i(v.slice(1))
2856
- }
2857
- };
2858
- M && (ee.extensions.default = !0), k(ee);
2859
- },
2860
- { stop: vr }
2861
- );
2862
- }
2863
- function h(S) {
2864
- return l.get(S);
2865
- }
2866
- function T(S) {
2867
- const { condition: v } = S.extensions;
2868
- v && (f.has(v) || f.set(v, /* @__PURE__ */ new Set()), f.get(v).add(S));
2869
- }
2870
- function _(S) {
2871
- const { category: v, prop: M } = S.extensions;
2872
- v && (g.has(v) || g.set(v, /* @__PURE__ */ new Map()), g.get(v).set(M, S));
2873
- }
2874
- function E(S) {
2875
- const { condition: v, negative: M, virtual: z, cssVar: w } = S.extensions;
2876
- M || z || !v || !w || (c.has(v) || c.set(v, /* @__PURE__ */ new Map()), c.get(v).set(w.var, S.value));
2877
- }
2878
- function C(S) {
2879
- const { category: v, prop: M, cssVar: z, negative: w } = S.extensions;
2880
- if (!v) return;
2881
- m.has(v) || m.set(v, /* @__PURE__ */ new Map());
2882
- const Y = w ? S.extensions.conditions ? S.originalValue : S.value : z.ref;
2883
- m.get(v).set(M, Y), u.set([v, M].join("."), Y);
2884
- }
2885
- function A(S) {
2886
- const { colorPalette: v, virtual: M, default: z } = S.extensions;
2887
- !v || M || v.roots.forEach((w) => {
2888
- var zt;
2889
- const Y = i(w);
2890
- d.has(Y) || d.set(Y, /* @__PURE__ */ new Map());
2891
- const ee = Ta(
2892
- [...S.path],
2893
- [...w]
2894
- ), ve = i(ee), Se = h(ve);
2895
- if (!Se || !Se.extensions.cssVar) return;
2896
- const { var: Sn } = Se.extensions.cssVar;
2897
- if (d.get(Y).set(Sn, S.extensions.cssVar.ref), z && w.length === 1) {
2898
- const kn = i(["colors", "colorPalette"]), Vt = h(kn);
2899
- if (!Vt) return;
2900
- const wn = i(S.path), Lt = h(wn);
2901
- if (!Lt) return;
2902
- const Dt = (zt = v.keys[0]) == null ? void 0 : zt.filter(Boolean);
2903
- if (!Dt.length) return;
2904
- const at = i(w.concat(Dt));
2905
- d.has(at) || d.set(at, /* @__PURE__ */ new Map()), d.get(at).set(
2906
- Vt.extensions.cssVar.var,
2907
- Lt.extensions.cssVar.ref
2908
- );
2909
- }
2910
- });
2911
- }
2912
- let B = {};
2913
- function R() {
2914
- s.forEach((S) => {
2915
- T(S), _(S), E(S), C(S), A(S);
2916
- }), B = on(m);
2917
- }
2918
- const X = (S, v) => {
2919
- var Se;
2920
- if (!S || typeof S != "string") return { invalid: !0, value: S };
2921
- const [M, z] = S.split("/");
2922
- if (!M || !z)
2923
- return { invalid: !0, value: M };
2924
- const w = v(M), Y = (Se = h(`opacity.${z}`)) == null ? void 0 : Se.value;
2925
- if (!Y && isNaN(Number(z)))
2926
- return { invalid: !0, value: M };
2927
- const ee = Y ? Number(Y) * 100 + "%" : `${z}%`, ve = w ?? M;
2928
- return {
2929
- invalid: !1,
2930
- color: ve,
2931
- value: `color-mix(in srgb, ${ve} ${ee}, transparent)`
2932
- };
2933
- }, Z = se((S, v) => u.get(S) ?? v), W = se((S) => B[S] || null), J = se((S) => nn(S, (v) => {
2934
- if (!v) return;
2935
- if (v.includes("/")) {
2936
- const z = X(v, (w) => Z(w));
2937
- if (z.invalid)
2938
- throw new Error("Invalid color mix at " + v + ": " + z.value);
2939
- return z.value;
2940
- }
2941
- const M = Z(v);
2942
- return M || (pa.test(v) ? rn(v) : v);
2943
- })), oe = {
2944
- prefix: t,
2945
- allTokens: s,
2946
- tokenMap: l,
2947
- registerToken: k,
2948
- getByName: h,
2949
- formatTokenName: i,
2950
- formatCssVar: a,
2951
- flatMap: u,
2952
- cssVarMap: c,
2953
- categoryMap: g,
2954
- colorPaletteMap: d,
2955
- getVar: Z,
2956
- getCategoryValues: W,
2957
- expandReferenceInValue: J
2958
- };
2959
- function $(...S) {
2960
- S.forEach((v) => {
2961
- p.set(v.name, v);
2962
- });
2963
- }
2964
- function H(...S) {
2965
- x.push(...S);
2966
- }
2967
- function V(S, v) {
2968
- if (v.extensions.references || Ft(S.match) && !S.match(v)) return;
2969
- const z = ((w) => S.transform(w, oe))(v);
2970
- switch (!0) {
2971
- case S.type === "extensions":
2972
- Object.assign(v.extensions, z);
2973
- break;
2974
- case S.type === "value":
2975
- v.value = z;
2976
- break;
2977
- default:
2978
- v[S.type] = z;
2979
- break;
2980
- }
2981
- }
2982
- function ie(S) {
2983
- x.forEach((v) => {
2984
- v.enforce === S && v.transform(oe);
2985
- });
2986
- }
2987
- function le(S) {
2988
- p.forEach((v) => {
2989
- v.enforce === S && s.forEach((M) => {
2990
- V(v, M);
2991
- });
2992
- });
2993
- }
2994
- function ye() {
2995
- s.forEach((S) => {
2996
- const v = Oa(S);
2997
- !v || v.length === 0 || v.forEach((M) => {
2998
- k(M);
2999
- });
3000
- });
3001
- }
3002
- function xe(S) {
3003
- return sn(S).map((M) => h(M)).filter(Boolean);
3004
- }
3005
- function ge() {
3006
- s.forEach((S) => {
3007
- if (!ma(S.value)) return;
3008
- const v = xe(S.value);
3009
- S.extensions.references = v.reduce((M, z) => (M[z.name] = z, M), {});
3010
- });
3011
- }
3012
- function ot() {
3013
- s.forEach((S) => {
3014
- cn(S);
3015
- });
3016
- }
3017
- function it() {
3018
- ie("pre"), le("pre"), ye(), ge(), ot(), ie("post"), le("post"), R();
3019
- }
3020
- return P(), $(...Pa), H(...xa), it(), oe;
3021
- }
3022
- function br(e) {
3023
- return e[0] === "DEFAULT" ? e : e.filter((t) => t !== "DEFAULT");
3024
- }
3025
- function un(e) {
3026
- return e.filter((t) => t !== "base");
3027
- }
3028
- function Oa(e) {
3029
- if (!e.extensions.conditions) return;
3030
- const { conditions: t } = e.extensions, r = [];
3031
- return me(t, (n, o) => {
3032
- const i = un(o);
3033
- if (!i.length) return;
3034
- const a = structuredClone(e);
3035
- a.value = n, a.extensions.condition = i.join(":"), r.push(a);
3036
- }), r;
3037
- }
3038
- function Ta(e, t) {
3039
- const r = e.findIndex(
3040
- (n, o) => t.every(
3041
- (i, a) => e[o + a] === i
3042
- )
3043
- );
3044
- return r === -1 || (e.splice(r, t.length), e.splice(r, 0, "colorPalette")), e;
3045
- }
3046
- ca()([
3047
- "aspectRatios",
3048
- "zIndex",
3049
- "opacity",
3050
- "colors",
3051
- "fonts",
3052
- "fontSizes",
3053
- "fontWeights",
3054
- "lineHeights",
3055
- "letterSpacings",
3056
- "sizes",
3057
- "shadows",
3058
- "spacing",
3059
- "radii",
3060
- "cursor",
3061
- "borders",
3062
- "borderWidths",
3063
- "borderStyles",
3064
- "durations",
3065
- "easings",
3066
- "animations",
3067
- "blurs",
3068
- "gradients",
3069
- "breakpoints",
3070
- "assets"
3071
- ]);
3072
- function Aa(e) {
3073
- return Object.fromEntries(
3074
- Object.entries(e).map(([t, r]) => [t, r])
3075
- );
3076
- }
3077
- function Ra(e) {
3078
- const t = Aa(e.config), r = e.tokens, n = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
3079
- function i(E, C) {
3080
- t[E] = C, a(E, C);
3081
- }
3082
- const a = (E, C) => {
3083
- const A = p(C);
3084
- A && (o.set(E, A), d(E, C));
3085
- }, s = () => {
3086
- for (const [E, C] of Object.entries(t))
3087
- C && a(E, C);
3088
- }, l = () => {
3089
- for (const [E, C] of Object.entries(t)) {
3090
- const { shorthand: A } = C ?? {};
3091
- if (!A) continue;
3092
- (Array.isArray(A) ? A : [A]).forEach((R) => n.set(R, E));
3093
- }
3094
- }, f = () => {
3095
- const E = on(r.colorPaletteMap);
3096
- i("colorPalette", {
3097
- values: Object.keys(E),
3098
- transform: se((C) => E[C])
3099
- });
3100
- }, c = /* @__PURE__ */ new Map(), d = (E, C) => {
3101
- if (!C) return;
3102
- const A = p(C, (R) => `type:Tokens["${R}"]`);
3103
- if (typeof A == "object" && A.type) {
3104
- c.set(E, /* @__PURE__ */ new Set([`type:${A.type}`]));
3105
- return;
3106
- }
3107
- if (A) {
3108
- const R = new Set(Object.keys(A));
3109
- c.set(E, R);
3110
- }
3111
- const B = c.get(E) ?? /* @__PURE__ */ new Set();
3112
- C.property && c.set(E, B.add(`CssProperties["${C.property}"]`));
3113
- }, u = () => {
3114
- for (const [E, C] of Object.entries(t))
3115
- C && d(E, C);
3116
- }, m = (E, C) => {
3117
- const A = c.get(E) ?? /* @__PURE__ */ new Set();
3118
- c.set(E, /* @__PURE__ */ new Set([...A, ...C]));
3119
- }, g = () => {
3120
- const E = /* @__PURE__ */ new Map();
3121
- for (const [C, A] of c.entries()) {
3122
- if (A.size === 0) {
3123
- E.set(C, ["string"]);
3124
- continue;
3125
- }
3126
- const B = Array.from(A).map((R) => R.startsWith("CssProperties") ? R : R.startsWith("type:") ? R.replace("type:", "") : JSON.stringify(R));
3127
- E.set(C, B);
3128
- }
3129
- return E;
3130
- }, p = (E, C) => {
3131
- const { values: A } = E, B = (R) => {
3132
- const X = C == null ? void 0 : C(R);
3133
- return X ? { [X]: X } : void 0;
3134
- };
3135
- return pe(A) ? (B == null ? void 0 : B(A)) ?? r.getCategoryValues(A) ?? {} : Array.isArray(A) ? A.reduce((R, X) => (R[X] = X, R), {}) : Ft(A) ? A(C ? B : r.getCategoryValues) : A;
3136
- }, x = se((E, C) => ({
3137
- [E]: E.startsWith("--") ? r.getVar(C, C) : C
3138
- })), k = Object.assign(r.getVar, {
3139
- raw: (E) => r.getByName(E)
3140
- }), b = se((E, C) => {
3141
- var Z;
3142
- const A = h(E);
3143
- pe(C) && !C.includes("_EMO_") && (C = r.expandReferenceInValue(C));
3144
- const B = t[A];
3145
- if (!B)
3146
- return x(A, C);
3147
- const R = (Z = o.get(A)) == null ? void 0 : Z[C];
3148
- if (!B.transform)
3149
- return x(E, R ?? C);
3150
- const X = (W) => fi(W, k);
3151
- return B.transform(R ?? C, {
3152
- raw: C,
3153
- token: k,
3154
- utils: { colorMix: X }
3155
- });
3156
- });
3157
- function y() {
3158
- l(), f(), s(), u();
3159
- }
3160
- y();
3161
- const P = n.size > 0, h = se((E) => n.get(E) ?? E);
3162
- return {
3163
- keys: () => [...Array.from(n.keys()), ...Object.keys(t)],
3164
- hasShorthand: P,
3165
- transform: b,
3166
- shorthands: n,
3167
- resolveShorthand: h,
3168
- register: i,
3169
- getTypes: g,
3170
- addPropertyType: m
3171
- };
3172
- }
3173
- function _a(...e) {
3174
- const t = pi(...e), {
3175
- theme: r = {},
3176
- utilities: n = {},
3177
- globalCss: o = {},
3178
- cssVarsRoot: i = ":where(:root, :host)",
3179
- cssVarsPrefix: a = "chakra",
3180
- preflight: s
3181
- } = t, l = ea(t), f = Ea({
3182
- breakpoints: r.breakpoints,
3183
- tokens: r.tokens,
3184
- semanticTokens: r.semanticTokens,
3185
- prefix: a
3186
- }), c = Mi(r.breakpoints ?? {}), d = Fi({
3187
- conditions: t.conditions ?? {},
3188
- breakpoints: c
3189
- }), u = Ra({
3190
- config: n,
3191
- tokens: f
3192
- });
3193
- function m() {
3194
- const { textStyles: $, layerStyles: H, animationStyles: V } = r, ie = Te({
3195
- textStyle: $,
3196
- layerStyle: H,
3197
- animationStyle: V
3198
- });
3199
- for (const [le, ye] of Object.entries(ie)) {
3200
- const xe = Ti(
3201
- ye ?? {},
3202
- (ge) => te(ge) && "value" in ge
3203
- );
3204
- u.register(le, {
3205
- values: Object.keys(xe),
3206
- transform(ge) {
3207
- return y(xe[ge]);
3208
- }
3209
- });
3210
- }
3211
- }
3212
- m(), u.addPropertyType("animationName", Object.keys(r.keyframes ?? {}));
3213
- const g = /* @__PURE__ */ new Set(["css", ...u.keys(), ...d.keys()]), p = se(
3214
- ($) => g.has($) || Ei($)
3215
- ), x = ($) => Array.isArray($) ? $.reduce((H, V, ie) => {
3216
- const le = d.breakpoints[ie];
3217
- return V != null && (H[le] = V), H;
3218
- }, {}) : $, k = ta({
3219
- utility: u,
3220
- normalize: x
3221
- }), b = na({
3222
- conditions: d,
3223
- isValidProperty: p
3224
- }), y = Zr({
3225
- transform: u.transform,
3226
- conditions: d,
3227
- normalize: k
3228
- }), P = Ji({
3229
- css: y,
3230
- conditions: d,
3231
- normalize: k,
3232
- layers: l
3233
- }), h = sa({ cva: P });
3234
- function T() {
3235
- const $ = {};
3236
- for (const [H, V] of f.cssVarMap.entries()) {
3237
- const ie = Object.fromEntries(V);
3238
- if (Object.keys(ie).length === 0) continue;
3239
- const le = H === "base" ? i : d.resolve(H), ye = y(b({ [le]: ie }));
3240
- Ae($, ye);
3241
- }
3242
- return l.wrap("tokens", $);
3243
- }
3244
- function _() {
3245
- const $ = Object.fromEntries(
3246
- Object.entries(r.keyframes ?? {}).map(([V, ie]) => [
3247
- `@keyframes ${V}`,
3248
- ie
3249
- ])
3250
- ), H = Object.assign({}, $, y(b(o)));
3251
- return l.wrap("base", H);
3252
- }
3253
- function E($) {
3254
- return Ce($, p);
3255
- }
3256
- function C() {
3257
- const $ = ra({ preflight: s });
3258
- return l.wrap("reset", $);
3259
- }
3260
- const A = $a(f), B = ($, H) => {
3261
- var V;
3262
- return ((V = A.get($)) == null ? void 0 : V.value) || H;
3263
- };
3264
- B.var = ($, H) => {
3265
- var V;
3266
- return ((V = A.get($)) == null ? void 0 : V.variable) || H;
3267
- };
3268
- function R($, H) {
3269
- var V;
3270
- return ((V = r.recipes) == null ? void 0 : V[$]) ?? H;
3271
- }
3272
- function X($, H) {
3273
- var V;
3274
- return ((V = r.slotRecipes) == null ? void 0 : V[$]) ?? H;
3275
- }
3276
- function Z($) {
3277
- return Object.hasOwnProperty.call(r.recipes ?? {}, $);
3278
- }
3279
- function W($) {
3280
- return Object.hasOwnProperty.call(r.slotRecipes ?? {}, $);
3281
- }
3282
- function J($) {
3283
- return Z($) || W($);
3284
- }
3285
- const oe = [C(), _(), T()];
3286
- return {
3287
- $$chakra: !0,
3288
- _config: t,
3289
- _global: oe,
3290
- breakpoints: c,
3291
- tokens: f,
3292
- conditions: d,
3293
- utility: u,
3294
- token: B,
3295
- properties: g,
3296
- layers: l,
3297
- isValidProperty: p,
3298
- splitCssProps: E,
3299
- normalizeValue: x,
3300
- getTokenCss: T,
3301
- getGlobalCss: _,
3302
- getPreflightCss: C,
3303
- css: y,
3304
- cva: P,
3305
- sva: h,
3306
- getRecipe: R,
3307
- getSlotRecipe: X,
3308
- hasRecipe: J,
3309
- isRecipe: Z,
3310
- isSlotRecipe: W
3311
- };
3312
- }
3313
- function $a(e) {
3314
- const t = /* @__PURE__ */ new Map();
3315
- return e.allTokens.forEach((r) => {
3316
- const { cssVar: n, virtual: o, conditions: i } = r.extensions, a = i || o ? n.ref : r.value;
3317
- t.set(r.name, { value: a, variable: n.ref });
3318
- }), t;
3319
- }
3320
- const Ma = Hr({
3321
- "& > *:not(style)": {
3322
- overflow: "hidden",
3323
- position: "absolute",
3324
- top: "0",
3325
- right: "0",
3326
- bottom: "0",
3327
- left: "0",
3328
- display: "flex",
3329
- justifyContent: "center",
3330
- alignItems: "center",
3331
- width: "100%",
3332
- height: "100%"
3333
- },
3334
- "& > img, & > video": {
3335
- objectFit: "cover"
3336
- }
3337
- }), Es = D(
3338
- function(t, r) {
3339
- const { ratio: n = 4 / 3, children: o, className: i, ...a } = t, s = je.only(o);
3340
- return /* @__PURE__ */ O(
3341
- G.div,
3342
- {
3343
- ref: r,
3344
- position: "relative",
3345
- className: re("chakra-aspect-ratio", i),
3346
- _before: {
3347
- height: 0,
3348
- content: '""',
3349
- display: "block",
3350
- paddingBottom: Q(n, (l) => `${1 / l * 100}%`)
3351
- },
3352
- ...a,
3353
- css: [Ma, t.css],
3354
- children: s
3355
- }
3356
- );
3357
- }
3358
- ), gt = (e) => e ? "" : void 0, Ia = G("div", {
3359
- base: {
3360
- display: "inline-flex",
3361
- gap: "0.5rem",
3362
- isolation: "isolate",
3363
- position: "relative",
3364
- "& [data-group-item]": {
3365
- _focusVisible: {
3366
- zIndex: 1
3367
- }
3368
- }
3369
- },
3370
- variants: {
3371
- orientation: {
3372
- horizontal: {
3373
- flexDirection: "row"
3374
- },
3375
- vertical: {
3376
- flexDirection: "column"
3377
- }
3378
- },
3379
- attached: {
3380
- true: {
3381
- gap: "0!"
3382
- }
3383
- },
3384
- grow: {
3385
- true: {
3386
- display: "flex",
3387
- "& > *": {
3388
- flex: 1
3389
- }
3390
- }
3391
- },
3392
- stacking: {
3393
- "first-on-top": {
3394
- "& > [data-group-item]": {
3395
- zIndex: "calc(var(--group-count) - var(--group-index))"
3396
- }
3397
- },
3398
- "last-on-top": {
3399
- "& > [data-group-item]": {
3400
- zIndex: "var(--group-index)"
3401
- }
3402
- }
3403
- }
3404
- },
3405
- compoundVariants: [
3406
- {
3407
- orientation: "horizontal",
3408
- attached: !0,
3409
- css: {
3410
- "& > *[data-first]": {
3411
- borderEndRadius: "0!",
3412
- marginEnd: "-1px"
3413
- },
3414
- "& > *[data-between]": {
3415
- borderRadius: "0!",
3416
- marginEnd: "-1px"
3417
- },
3418
- "& > *[data-last]": {
3419
- borderStartRadius: "0!"
3420
- }
3421
- }
3422
- },
3423
- {
3424
- orientation: "vertical",
3425
- attached: !0,
3426
- css: {
3427
- "& > *[data-first]": {
3428
- borderBottomRadius: "0!",
3429
- marginBottom: "-1px"
3430
- },
3431
- "& > *[data-between]": {
3432
- borderRadius: "0!",
3433
- marginBottom: "-1px"
3434
- },
3435
- "& > *[data-last]": {
3436
- borderTopRadius: "0!"
3437
- }
3438
- }
3439
- }
3440
- ],
3441
- defaultVariants: {
3442
- orientation: "horizontal"
3443
- }
3444
- }), Na = Cr(
3445
- D(function(t, r) {
3446
- const {
3447
- align: n = "center",
3448
- justify: o = "flex-start",
3449
- children: i,
3450
- wrap: a,
3451
- skip: s,
3452
- ...l
3453
- } = t, f = ce(() => {
3454
- let c = je.toArray(i).filter(Et);
3455
- if (c.length === 1) return c;
3456
- const d = c.filter((m) => !(s != null && s(m))), u = d.length;
3457
- return d.length === 1 ? c : c.map((m) => {
3458
- const g = m.props;
3459
- if (s != null && s(m)) return m;
3460
- const p = d.indexOf(m);
3461
- return Je(m, {
3462
- ...g,
3463
- "data-group-item": "",
3464
- "data-first": gt(p === 0),
3465
- "data-last": gt(p === u - 1),
3466
- "data-between": gt(p > 0 && p < u - 1),
3467
- style: {
3468
- "--group-count": u,
3469
- "--group-index": p,
3470
- ...(g == null ? void 0 : g.style) ?? {}
3471
- }
3472
- });
3473
- });
3474
- }, [i, s]);
3475
- return /* @__PURE__ */ O(
3476
- Ia,
3477
- {
3478
- ref: r,
3479
- alignItems: n,
3480
- justifyContent: o,
3481
- flexWrap: a,
3482
- ...l,
3483
- className: re("chakra-group", t.className),
3484
- children: f
3485
- }
3486
- );
3487
- })
3488
- ), ja = "cm,mm,Q,in,pc,pt,px,em,ex,ch,rem,lh,rlh,vw,vh,vmin,vmax,vb,vi,svw,svh,lvw,lvh,dvw,dvh,cqw,cqh,cqi,cqb,cqmin,cqmax,%", Fa = `(?:${ja.split(",").join("|")})`, Wa = new RegExp(
3489
- `^[+-]?[0-9]*.?[0-9]+(?:[eE][+-]?[0-9]+)?${Fa}$`
3490
- ), Ba = (e) => typeof e == "string" && Wa.test(e), ze = (e) => Ba(e) || $o(e) ? e : `token(spacing.${e}, ${e})`, Os = D(
3491
- function(t, r) {
3492
- const {
3493
- inline: n,
3494
- inlineStart: o,
3495
- inlineEnd: i,
3496
- block: a,
3497
- blockStart: s,
3498
- blockEnd: l,
3499
- ...f
3500
- } = t;
3501
- return /* @__PURE__ */ O(
3502
- G.div,
3503
- {
3504
- ref: r,
3505
- ...f,
3506
- css: {
3507
- "--bleed-inline-start": Q(n ?? o, ze),
3508
- "--bleed-inline-end": Q(n ?? i, ze),
3509
- "--bleed-block-start": Q(a ?? s, ze),
3510
- "--bleed-block-end": Q(a ?? l, ze),
3511
- marginInlineStart: "calc(var(--bleed-inline-start, 0) * -1)",
3512
- marginInlineEnd: "calc(var(--bleed-inline-end, 0) * -1)",
3513
- marginBlockStart: "calc(var(--bleed-block-start, 0) * -1)",
3514
- marginBlockEnd: "calc(var(--bleed-block-end, 0) * -1)"
3515
- }
3516
- }
3517
- );
3518
- }
3519
- ), fn = G("div");
3520
- fn.displayName = "Box";
3521
- const Ve = G("span"), dn = G("div", {
3522
- base: {
3523
- position: "absolute",
3524
- display: "flex",
3525
- alignItems: "center",
3526
- justifyContent: "center"
3527
- },
3528
- variants: {
3529
- axis: {
3530
- horizontal: {
3531
- insetStart: "50%",
3532
- translate: "-50%",
3533
- _rtl: {
3534
- translate: "50%"
3535
- }
3536
- },
3537
- vertical: {
3538
- top: "50%",
3539
- translate: "0 -50%"
3540
- },
3541
- both: {
3542
- insetStart: "50%",
3543
- top: "50%",
3544
- translate: "-50% -50%",
3545
- _rtl: {
3546
- translate: "50% -50%"
3547
- }
3548
- }
3549
- }
3550
- },
3551
- defaultVariants: {
3552
- axis: "both"
3553
- }
3554
- });
3555
- dn.displayName = "AbsoluteCenter";
3556
- const { withContext: za } = rt({
3557
- key: "spinner"
3558
- }), Va = za("span"), La = L.forwardRef(
3559
- function(t, r) {
3560
- const {
3561
- spinner: n = /* @__PURE__ */ O(Va, { size: "inherit", borderWidth: "0.125em", color: "inherit" }),
3562
- spinnerPlacement: o = "start",
3563
- children: i,
3564
- text: a,
3565
- visible: s = !0,
3566
- ...l
3567
- } = t;
3568
- return s ? a ? /* @__PURE__ */ he(Ve, { ref: r, display: "contents", ...l, children: [
3569
- o === "start" && n,
3570
- a,
3571
- o === "end" && n
3572
- ] }) : n ? /* @__PURE__ */ he(Ve, { ref: r, display: "contents", ...l, children: [
3573
- /* @__PURE__ */ O(dn, { display: "inline-flex", children: n }),
3574
- /* @__PURE__ */ O(Ve, { opacity: 0, children: i })
3575
- ] }) : /* @__PURE__ */ O(Ve, { ref: r, display: "contents", ...l, children: i }) : i;
3576
- }
3577
- ), { useRecipeResult: Da, usePropsContext: Ha } = rt(
3578
- { key: "button" }
3579
- ), Ya = D(
3580
- function(t, r) {
3581
- const n = Ha(), o = ce(
3582
- () => Ot(n, t),
3583
- [n, t]
3584
- ), i = Da(o), {
3585
- loading: a,
3586
- loadingText: s,
3587
- children: l,
3588
- spinner: f,
3589
- spinnerPlacement: c,
3590
- ...d
3591
- } = i.props;
3592
- return /* @__PURE__ */ O(
3593
- G.button,
3594
- {
3595
- type: "button",
3596
- ref: r,
3597
- ...d,
3598
- disabled: a || d.disabled,
3599
- className: re(i.className, o.className),
3600
- css: [i.styles, o.css],
3601
- children: !o.asChild && a ? /* @__PURE__ */ O(
3602
- La,
3603
- {
3604
- spinner: f,
3605
- text: s,
3606
- spinnerPlacement: c,
3607
- children: l
3608
- }
3609
- ) : l
3610
- }
3611
- );
3612
- }
3613
- ), Ua = D(
3614
- function(t, r) {
3615
- return /* @__PURE__ */ O(
3616
- Ya,
3617
- {
3618
- px: "0",
3619
- py: "0",
3620
- _icon: { fontSize: "1.2em" },
3621
- ref: r,
3622
- ...t
3623
- }
3624
- );
3625
- }
3626
- ), Ga = G("div", {
3627
- base: {
3628
- display: "flex",
3629
- alignItems: "center",
3630
- justifyContent: "center"
3631
- },
3632
- variants: {
3633
- inline: {
3634
- true: {
3635
- display: "inline-flex"
3636
- }
3637
- }
3638
- }
3639
- });
3640
- Ga.displayName = "Center";
3641
- function Xa(e) {
3642
- const { gap: t, direction: r } = e, n = {
3643
- column: {
3644
- marginY: t,
3645
- marginX: 0,
3646
- borderInlineStartWidth: 0,
3647
- borderTopWidth: "1px"
3648
- },
3649
- "column-reverse": {
3650
- marginY: t,
3651
- marginX: 0,
3652
- borderInlineStartWidth: 0,
3653
- borderTopWidth: "1px"
3654
- },
3655
- row: {
3656
- marginX: t,
3657
- marginY: 0,
3658
- borderInlineStartWidth: "1px",
3659
- borderTopWidth: 0
3660
- },
3661
- "row-reverse": {
3662
- marginX: t,
3663
- marginY: 0,
3664
- borderInlineStartWidth: "1px",
3665
- borderTopWidth: 0
3666
- }
3667
- };
3668
- return {
3669
- "&": Q(r, (o) => n[o])
3670
- };
3671
- }
3672
- function qa(e) {
3673
- return je.toArray(e).filter(
3674
- (t) => Et(t)
3675
- );
3676
- }
3677
- const Bt = D(
3678
- function(t, r) {
3679
- const {
3680
- direction: n = "column",
3681
- align: o,
3682
- justify: i,
3683
- gap: a = "0.5rem",
3684
- wrap: s,
3685
- children: l,
3686
- separator: f,
3687
- className: c,
3688
- ...d
3689
- } = t, u = ce(
3690
- () => Xa({ gap: a, direction: n }),
3691
- [a, n]
3692
- ), m = ce(() => f ? qa(l).map((g, p, x) => {
3693
- const k = typeof g.key < "u" ? g.key : p, b = Je(f, {
3694
- css: [u, f.props.css]
3695
- });
3696
- return /* @__PURE__ */ he(An, { children: [
3697
- g,
3698
- p === x.length - 1 ? null : b
3699
- ] }, k);
3700
- }) : l, [l, f, u]);
3701
- return /* @__PURE__ */ O(
3702
- G.div,
3703
- {
3704
- ref: r,
3705
- display: "flex",
3706
- alignItems: o,
3707
- justifyContent: i,
3708
- flexDirection: n,
3709
- flexWrap: s,
3710
- gap: f ? void 0 : a,
3711
- className: re("chakra-stack", c),
3712
- ...d,
3713
- children: m
3714
- }
3715
- );
3716
- }
3717
- ), { withContext: Ka } = rt({
3718
- key: "container"
3719
- }), Ts = Ka("div"), As = D(
3720
- function(t, r) {
3721
- const {
3722
- direction: n,
3723
- align: o,
3724
- justify: i,
3725
- wrap: a,
3726
- basis: s,
3727
- grow: l,
3728
- shrink: f,
3729
- inline: c,
3730
- ...d
3731
- } = t;
3732
- return /* @__PURE__ */ O(
3733
- G.div,
3734
- {
3735
- ref: r,
3736
- ...d,
3737
- css: {
3738
- display: c ? "inline-flex" : "flex",
3739
- flexDirection: n,
3740
- alignItems: o,
3741
- justifyContent: i,
3742
- flexWrap: a,
3743
- flexBasis: s,
3744
- flexGrow: l,
3745
- flexShrink: f,
3746
- ...t.css
3747
- }
3748
- }
3749
- );
3750
- }
3751
- ), Rs = D(
3752
- function(t, r) {
3753
- const {
3754
- offsetX: n,
3755
- offsetY: o,
3756
- offset: i = "0",
3757
- placement: a = "top-end",
3758
- ...s
3759
- } = t, l = ce(
3760
- () => ({
3761
- display: "inline-flex",
3762
- justifyContent: "center",
3763
- alignItems: "center",
3764
- position: "absolute",
3765
- insetBlockStart: Q(a, (f) => {
3766
- const [c] = f.split("-");
3767
- return {
3768
- top: o ?? i,
3769
- middle: "50%",
3770
- bottom: "auto"
3771
- }[c];
3772
- }),
3773
- insetBlockEnd: Q(a, (f) => {
3774
- const [c] = f.split("-");
3775
- return {
3776
- top: "auto",
3777
- middle: "50%",
3778
- bottom: o ?? i
3779
- }[c];
3780
- }),
3781
- insetStart: Q(a, (f) => {
3782
- const [, c] = f.split("-");
3783
- return {
3784
- start: n ?? i,
3785
- center: "50%",
3786
- end: "auto"
3787
- }[c];
3788
- }),
3789
- insetEnd: Q(a, (f) => {
3790
- const [, c] = f.split("-");
3791
- return {
3792
- start: "auto",
3793
- center: "50%",
3794
- end: n ?? i
3795
- }[c];
3796
- }),
3797
- translate: Q(a, (f) => {
3798
- const [c, d] = f.split("-"), u = { start: "-50%", center: "-50%", end: "50%" }, m = { top: "-50%", middle: "-50%", bottom: "50%" };
3799
- return `${u[d]} ${m[c]}`;
3800
- })
3801
- }),
3802
- [i, n, o, a]
3803
- );
3804
- return /* @__PURE__ */ O(G.div, { ref: r, css: l, ...s });
3805
- }
3806
- );
3807
- function xr(e) {
3808
- return Q(
3809
- e,
3810
- (t) => t === "auto" ? "auto" : `span ${t}/span ${t}`
3811
- );
3812
- }
3813
- const _s = D(
3814
- function(t, r) {
3815
- const {
3816
- area: n,
3817
- colSpan: o,
3818
- colStart: i,
3819
- colEnd: a,
3820
- rowEnd: s,
3821
- rowSpan: l,
3822
- rowStart: f,
3823
- ...c
3824
- } = t, d = Te({
3825
- gridArea: n,
3826
- gridColumn: xr(o),
3827
- gridRow: xr(l),
3828
- gridColumnStart: i,
3829
- gridColumnEnd: a,
3830
- gridRowStart: f,
3831
- gridRowEnd: s
3832
- });
3833
- return /* @__PURE__ */ O(G.div, { ref: r, css: d, ...c });
3834
- }
3835
- ), $s = D(
3836
- function(t, r) {
3837
- const { columns: n, minChildWidth: o, ...i } = t, a = tt(), s = o ? Qa(o, a) : Za(n);
3838
- return /* @__PURE__ */ O(Ko, { ref: r, templateColumns: s, ...i });
3839
- }
3840
- );
3841
- function Ja(e) {
3842
- return typeof e == "number" ? `${e}px` : e;
3843
- }
3844
- function Qa(e, t) {
3845
- return Q(e, (r) => {
3846
- const n = t.tokens.getVar(`sizes.${r}`, Ja(r));
3847
- return r === null ? null : `repeat(auto-fit, minmax(${n}, 1fr))`;
3848
- });
3849
- }
3850
- function Za(e) {
3851
- return Q(
3852
- e,
3853
- (t) => t === null ? null : `repeat(${t}, minmax(0, 1fr))`
3854
- );
3855
- }
3856
- const { withContext: es } = rt({
3857
- key: "input"
3858
- }), ts = es(Dr), Sr = D(
3859
- function({ unstyled: t, ...r }, n) {
3860
- const o = Vr({ key: "inputAddon", recipe: r.recipe }), [i, a] = o.splitVariantProps(r), s = t ? Nn : o(i);
3861
- return /* @__PURE__ */ O(G.div, { ref: n, ...a, css: [s, r.css] });
3862
- }
3863
- ), ht = G("div", {
3864
- base: {
3865
- display: "flex",
3866
- alignItems: "center",
3867
- justifyContent: "center",
3868
- position: "absolute",
3869
- zIndex: 2,
3870
- color: "fg.muted",
3871
- height: "full",
3872
- fontSize: "sm",
3873
- px: "3"
3874
- },
3875
- variants: {
3876
- placement: {
3877
- start: {
3878
- insetInlineStart: "0"
3879
- },
3880
- end: {
3881
- insetInlineEnd: "0"
3882
- }
3883
- }
3884
- }
3885
- }), rs = D(
3886
- function(t, r) {
3887
- const {
3888
- startElement: n,
3889
- startElementProps: o,
3890
- endElement: i,
3891
- endElementProps: a,
3892
- startAddon: s,
3893
- startAddonProps: l,
3894
- endAddon: f,
3895
- endAddonProps: c,
3896
- children: d,
3897
- startOffset: u = "0px",
3898
- endOffset: m = "0px",
3899
- ...g
3900
- } = t, p = je.only(d);
3901
- return /* @__PURE__ */ he(
3902
- Na,
3903
- {
3904
- width: "full",
3905
- ref: r,
3906
- attached: !!(s || f),
3907
- skip: (k) => k.type === ht,
3908
- ...g,
3909
- children: [
3910
- s && /* @__PURE__ */ O(Sr, { ...l, children: s }),
3911
- n && /* @__PURE__ */ O(ht, { pointerEvents: "none", ...o, children: n }),
3912
- Je(p, {
3913
- ...n && {
3914
- ps: `calc(var(--input-height) - ${u})`
3915
- },
3916
- ...i && { pe: `calc(var(--input-height) - ${m})` },
3917
- ...d.props
3918
- }),
3919
- i && /* @__PURE__ */ O(ht, { placement: "end", ...a, children: i }),
3920
- f && /* @__PURE__ */ O(Sr, { ...c, children: f })
3921
- ]
3922
- }
3923
- );
3924
- }
3925
- ), kr = D(
3926
- function(t, r) {
3927
- return /* @__PURE__ */ O(Bt, { align: "center", ...t, direction: "row", ref: r });
3928
- }
3929
- ), Ms = D(
3930
- function(t, r) {
3931
- return /* @__PURE__ */ O(Bt, { align: "center", ...t, direction: "column", ref: r });
3932
- }
3933
- ), ns = D(
3934
- function(t, r) {
3935
- const { gap: n = "0.5rem", justify: o, direction: i, align: a, ...s } = t;
3936
- return /* @__PURE__ */ O(
3937
- G.div,
3938
- {
3939
- ref: r,
3940
- display: "flex",
3941
- flexWrap: "wrap",
3942
- justifyContent: o,
3943
- alignItems: a,
3944
- flexDirection: i,
3945
- gap: n,
3946
- ...s,
3947
- className: re("chakra-wrap", t.className)
3948
- }
3949
- );
3950
- }
3951
- );
3952
- ns.displayName = "Wrap";
3953
- const os = Hr({
3954
- display: "flex",
3955
- alignItems: "flex-start"
3956
- }), Is = D(
3957
- function(t, r) {
3958
- return /* @__PURE__ */ O(
3959
- G.div,
3960
- {
3961
- ref: r,
3962
- css: [os, t.css],
3963
- ...t,
3964
- className: re("chakra-wrap__listitem", t.className)
3965
- }
3966
- );
3967
- }
3968
- );
3969
- var is = { colors: { content: { neutral: { bold: { value: "{colors.neutral.1100}" }, default: { value: "{colors.neutral.1000}" }, subtle: { value: "{colors.neutral.900}" }, subtlest: { value: "{colors.neutral.700}" }, disabled: { value: "{colors.neutral.600}" }, default_inverse: { value: "{colors.neutral.0}" } }, neuroidPrimary: { default: { value: "{colors.purple.400}" }, default_inverse: { value: "{colors.purple.800}" } }, danger: { default: { value: "{colors.red.400}" } }, warning: { default: { value: "{colors.yellow.400}" } }, success: { default: { value: "{colors.green.400}" } }, informative: { default: { value: "{colors.blue.400}" } }, zoltarinaPrimary: { default: { value: "{colors.ohre.400}" }, defult_inverse: { value: "{colors.ohre.900}" } }, heydPrimary: { default: { value: "{colors.cyan.400}" }, defult_inverse: { value: "{colors.cyan.1000}" } } }, background: { neutral: { default: { value: "{colors.neutral.200}" }, selected: { value: "{colors.neutral.300}" }, disabled: { value: "{colors.neutral.400}" } }, neuroidPrimary: { default: { value: "{colors.purple.600}" }, selected: { value: "{colors.purple.700}" }, disabled: { value: "{colors.neutral.400}" } }, neuroidSecondary: { default: { value: "{colors.purple.300}" }, selected: { value: "{colors.purple.400}" }, disabled: { value: "{colors.neutral.400}" } }, danger: { default: { value: "{colors.red.700}" }, selected: { value: "{colors.red.800}" }, disabled: { value: "{colors.neutral.400}" } }, warning: { default: { value: "{colors.yellow.700}" }, selected: { value: "{colors.yellow.800}" }, disabled: { value: "{colors.neutral.400}" } }, success: { default: { value: "{colors.green.700}" }, selected: { value: "{colors.green.800}" }, disabled: { value: "{colors.neutral.400}" } }, informative: { default: { value: "{colors.blue.700}" }, selected: { value: "{colors.blue.800}" }, disabled: { value: "{colors.neutral.400}" } }, zoltarinaPrimary: { default: { value: "{colors.ohre.400}" }, selected: { value: "{colors.ohre.500}" }, disabled: { value: "{colors.neutral.400}" } }, zoltarinaSecondary: { default: { value: "{colors.ohre.200}" }, selected: { value: "{colors.ohre.300}" }, disabled: { value: "{colors.neutral.400}" } }, heydPrimary: { default: { value: "{colors.cyan.500}" }, selected: { value: "{colors.cyan.600}" }, disabled: { value: "{colors.neutral.400}" } }, heydSecondary: { default: { value: "{colors.cyan.200}" }, selected: { value: "{colors.cyan.300}" }, disabled: { value: "{colors.neutral.400}" } } }, surface: { base: { value: "{colors.neutral.0}" }, layer_1: { value: "{colors.neutral.100}" }, layer_2: { value: "{colors.neutral.200}" } }, shadow: { overlay: { value: "{colors.black.400A}" }, raised: { value: "{colors.black.600A}" } }, scrim: { default: { value: "{colors.black.600A}" } }, skeleton: { default: { value: "{colors.neutral.100}" }, subtle: { value: "{colors.neutral.200}" } }, border: { neutral: { default: { value: "{colors.neutral.400}" }, subtle: { value: "{colors.neutral.300}" }, disabled: { value: "{colors.neutral.200}" } }, neuroidPrimary: { default: { value: "{colors.purple.400}" } }, danger: { default: { value: "{colors.red.400}" } }, warning: { default: { value: "{colors.yellow.400}" } }, success: { default: { value: "{colors.green.400}" } }, informative: { default: { value: "{colors.blue.400}" } }, zoltarinaPrimary: { default: { value: "{colors.ohre.400}" } }, heydPrimary: { default: { value: "{colors.cyan.400}" } } } }, shadows: { raised: { value: "0px 1px 3px 0px {colors.shadow.raised}" }, overlay: { value: "0px 20px 25px -5px {colors.shadow.overlay}" } } }, as = { colors: { neutral: { 0: { value: "#080A0E" }, 100: { value: "#101216" }, 200: { value: "#181A1E" }, 300: { value: "#282A2E" }, 400: { value: "#383A3E" }, 500: { value: "#505256" }, 600: { value: "#64666A" }, 700: { value: "#787A7E" }, 800: { value: "#A0A2A6" }, 900: { value: "#B4B6BA" }, 1e3: { value: "#DADCE0" }, 1100: { value: "#FAFCFF" } }, black: { "700A": { value: "rgba(0,0,0,0.8)" }, "600A": { value: "rgba(0,0,0,0.6)" }, "500A": { value: "rgba(0,0,0,0.4)" }, "400A": { value: "rgba(0,0,0,0.32)" }, "300A": { value: "rgba(0,0,0,0.2)" }, "200A": { value: "rgba(0,0,0,0.12)" }, "100A": { value: "rgba(0,0,0,0.08)" } }, white: { "700A": { value: "rgba(255,255,255,0.8)" }, "600A": { value: "rgba(255,255,255,0.6)" }, "500A": { value: "rgba(255,255,255,0.4)" }, "400A": { value: "rgba(255,255,255,0.32)" }, "300A": { value: "rgba(255,255,255,0.2)" }, "200A": { value: "rgba(255,255,255,0.12)" }, "100A": { value: "rgba(255,255,255,0.08)" } }, red: { 100: { value: "#ffeceb" }, 200: { value: "#ffd5d2" }, 300: { value: "#fd9891" }, 400: { value: "#f87168" }, 500: { value: "#f15b50" }, 600: { value: "#e2483d" }, 700: { value: "#c9372c" }, 800: { value: "#87241c" }, 900: { value: "#5d1f1a" }, 1e3: { value: "#42221f" } }, yellow: { 100: { value: "#fff5eb" }, 200: { value: "#ffe9d2" }, 300: { value: "#fdc991" }, 400: { value: "#f8b268" }, 500: { value: "#f1a350" }, 600: { value: "#e2923d" }, 700: { value: "#c97d2c" }, 800: { value: "#87531c" }, 900: { value: "#5d3d1a" }, 1e3: { value: "#42311f" } }, blue: { 100: { value: "#ebf2ff" }, 200: { value: "#d2e1ff" }, 300: { value: "#91b5fd" }, 400: { value: "#6898f8" }, 500: { value: "#5086f1" }, 600: { value: "#3d74e2" }, 700: { value: "#2c60c9" }, 800: { value: "#1c4087" }, 900: { value: "#1a305d" }, 1e3: { value: "#1f2b42" } }, green: { 100: { value: "#ebfff5" }, 200: { value: "#9cfccc" }, 300: { value: "#47EB99" }, 400: { value: "#26d980" }, 500: { value: "#14b866" }, 600: { value: "#10934c" }, 700: { value: "#147042" }, 800: { value: "#125433" }, 900: { value: "#104129" }, 1e3: { value: "#0b2819" } }, purple: { 100: { value: "#f3ebff" }, 200: { value: "#e9ddfd" }, 300: { value: "#cbacfb" }, 400: { value: "#ac7cf8" }, 500: { value: "#8d4bf6" }, 600: { value: "#6d19f5" }, 700: { value: "#570ad1" }, 800: { value: "#4308a0" }, 900: { value: "#2f0670" }, 1e3: { value: "#1a033f" } }, ohre: { 100: { value: "#FFF8F1" }, 200: { value: "#FFE6C8" }, 300: { value: "#FFD3A0" }, 400: { value: "#FFC077" }, 500: { value: "#E2A763" }, 600: { value: "#C58F50" }, 700: { value: "#A8773F" }, 800: { value: "#8A6030" }, 900: { value: "#6D4B22" }, 1e3: { value: "#503617" } }, cyan: { 100: { value: "#ecffff" }, 200: { value: "#c1feff" }, 300: { value: "#96feff" }, 400: { value: "#6bfdff" }, 500: { value: "#3df1f3" }, 600: { value: "#2acfd1" }, 700: { value: "#1aadaf" }, 800: { value: "#0e8c8d" }, 900: { value: "#056a6b" }, 1e3: { value: "#004849" } } }, borderWidths: { none: { value: "0px" }, sm: { value: "1px" }, md: { value: "2px" }, lg: { value: "4px" } }, spacing: { 0: { value: "0rem" }, 1: { value: "0.25rem" }, 2: { value: "0.5rem" }, 3: { value: "0.75rem" }, 4: { value: "1rem" }, 6: { value: "1.5rem" }, 8: { value: "2rem" }, 12: { value: "3rem" }, 20: { value: "5rem" }, 30: { value: "7.5rem" }, 56: { value: "14rem" }, 72: { value: "18rem" }, 98: { value: "24rem" }, 128: { value: "32rem" }, 160: { value: "40rem" } }, radii: { none: { value: "0px" }, xs: { value: "2px" }, sm: { value: "4px" }, md: { value: "8px" }, lg: { value: "16px" }, full: { value: "9999px" } }, fontSizes: { xs: { value: "0.75rem" }, sm: { value: "0.875rem" }, md: { value: "1rem" }, lg: { value: "1.25rem" }, xl: { value: "1.5rem" }, "2xl": { value: "2rem" }, "3xl": { value: "2.5rem" }, "4xl": { value: "3rem" } }, letterSpacings: { xs: { value: "-1.5px" }, sm: { value: "-1.2px" }, md: { value: "-1px" }, lg: { value: "-0.8px" }, xl: { value: "-0.6px" }, "2xl": { value: "-0.4px" }, "3xl": { value: "-0.2px" } }, lineHeights: { md: { value: "1rem" }, lg: { value: "1.25rem" }, xl: { value: "1.5rem" }, "2xl": { value: "1.75rem" }, "3xl": { value: "2.25rem" }, "4xl": { value: "2.75rem" }, "5xl": { value: "3rem" } }, fontWeights: { regular: { value: "400" }, medium: { value: "500" }, semibold: { value: "600" }, bold: { value: "700" }, regularItalic: { value: "Italic" }, mediumItalic: { value: "Medium Italic" } }, fonts: { inter: { value: "Inter" }, notoSans: { value: "Noto Sans" } } }, ss = { body: { md: { value: { fontFamily: "notoSans", fontWeight: "regular", fontSize: "sm", lineHeight: "lg", letterSpacing: "3xl" } }, lg: { value: { fontFamily: "notoSans", fontWeight: "regular", fontSize: "md", lineHeight: "xl", letterSpacing: "3xl" } }, sm: { value: { fontSize: "xs", fontWeight: "regular", fontFamily: "notoSans", lineHeight: "md", letterSpacing: "3xl" } } }, label: { sm: { value: { fontFamily: "notoSans", fontWeight: "medium", fontSize: "xs", lineHeight: "md", letterSpacing: "3xl" } }, md: { value: { fontFamily: "notoSans", fontWeight: "medium", fontSize: "sm", lineHeight: "lg", letterSpacing: "3xl" } } }, title: { sm: { value: { fontFamily: "notoSans", fontWeight: "medium", fontSize: "sm", lineHeight: "lg", letterSpacing: "2xl" } }, md: { value: { fontFamily: "notoSans", fontWeight: "medium", fontSize: "md", lineHeight: "xl", letterSpacing: "xl" } }, lg: { value: { fontFamily: "notoSans", fontWeight: "semibold", fontSize: "lg", lineHeight: "2xl", letterSpacing: "xl" } } }, headline: { sm: { value: { fontFamily: "inter", fontWeight: "semibold", fontSize: "xl", lineHeight: "2xl", letterSpacing: "lg" } }, md: { value: { fontFamily: "inter", fontWeight: "bold", fontSize: "2xl", lineHeight: "3xl", letterSpacing: "md" } } }, display: { md: { value: { fontFamily: "inter", fontWeight: "bold", fontSize: "3xl", lineHeight: "4xl", letterSpacing: "sm" } }, lg: { value: { fontFamily: "inter", fontWeight: "bold", fontSize: "4xl", lineHeight: "5xl", letterSpacing: "xs" } } } }, cs = { semantic: is, primitive: as, textStyles: ss };
3970
- const { primitive: pn, semantic: mn, textStyles: gn } = cs, hn = {
3971
- semantic: mn,
3972
- primitive: pn,
3973
- textStyles: gn
3974
- }, ls = di({
3975
- theme: {
3976
- tokens: pn,
3977
- semanticTokens: mn,
3978
- textStyles: gn
3979
- }
3980
- }), us = _a(ls), yn = Ct(hn), Ns = () => Ke(yn), js = ({ children: e }) => /* @__PURE__ */ O(yn.Provider, { value: hn, children: /* @__PURE__ */ O(No, { value: us, children: e }) });
3981
- var vn = {
3982
- color: void 0,
3983
- size: void 0,
3984
- className: void 0,
3985
- style: void 0,
3986
- attr: void 0
3987
- }, wr = be.createContext && /* @__PURE__ */ be.createContext(vn), fs = ["attr", "size", "title"];
3988
- function ds(e, t) {
3989
- if (e == null) return {};
3990
- var r = ps(e, t), n, o;
3991
- if (Object.getOwnPropertySymbols) {
3992
- var i = Object.getOwnPropertySymbols(e);
3993
- for (o = 0; o < i.length; o++)
3994
- n = i[o], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (r[n] = e[n]);
3995
- }
3996
- return r;
3997
- }
3998
- function ps(e, t) {
3999
- if (e == null) return {};
4000
- var r = {};
4001
- for (var n in e)
4002
- if (Object.prototype.hasOwnProperty.call(e, n)) {
4003
- if (t.indexOf(n) >= 0) continue;
4004
- r[n] = e[n];
4005
- }
4006
- return r;
4007
- }
4008
- function Xe() {
4009
- return Xe = Object.assign ? Object.assign.bind() : function(e) {
4010
- for (var t = 1; t < arguments.length; t++) {
4011
- var r = arguments[t];
4012
- for (var n in r)
4013
- Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
4014
- }
4015
- return e;
4016
- }, Xe.apply(this, arguments);
4017
- }
4018
- function Pr(e, t) {
4019
- var r = Object.keys(e);
4020
- if (Object.getOwnPropertySymbols) {
4021
- var n = Object.getOwnPropertySymbols(e);
4022
- t && (n = n.filter(function(o) {
4023
- return Object.getOwnPropertyDescriptor(e, o).enumerable;
4024
- })), r.push.apply(r, n);
4025
- }
4026
- return r;
4027
- }
4028
- function qe(e) {
4029
- for (var t = 1; t < arguments.length; t++) {
4030
- var r = arguments[t] != null ? arguments[t] : {};
4031
- t % 2 ? Pr(Object(r), !0).forEach(function(n) {
4032
- ms(e, n, r[n]);
4033
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Pr(Object(r)).forEach(function(n) {
4034
- Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
4035
- });
4036
- }
4037
- return e;
4038
- }
4039
- function ms(e, t, r) {
4040
- return t = gs(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
4041
- }
4042
- function gs(e) {
4043
- var t = hs(e, "string");
4044
- return typeof t == "symbol" ? t : t + "";
4045
- }
4046
- function hs(e, t) {
4047
- if (typeof e != "object" || !e) return e;
4048
- var r = e[Symbol.toPrimitive];
4049
- if (r !== void 0) {
4050
- var n = r.call(e, t);
4051
- if (typeof n != "object") return n;
4052
- throw new TypeError("@@toPrimitive must return a primitive value.");
4053
- }
4054
- return (t === "string" ? String : Number)(e);
4055
- }
4056
- function bn(e) {
4057
- return e && e.map((t, r) => /* @__PURE__ */ be.createElement(t.tag, qe({
4058
- key: r
4059
- }, t.attr), bn(t.child)));
4060
- }
4061
- function xn(e) {
4062
- return (t) => /* @__PURE__ */ be.createElement(ys, Xe({
4063
- attr: qe({}, e.attr)
4064
- }, t), bn(e.child));
4065
- }
4066
- function ys(e) {
4067
- var t = (r) => {
4068
- var {
4069
- attr: n,
4070
- size: o,
4071
- title: i
4072
- } = e, a = ds(e, fs), s = o || r.size || "1em", l;
4073
- return r.className && (l = r.className), e.className && (l = (l ? l + " " : "") + e.className), /* @__PURE__ */ be.createElement("svg", Xe({
4074
- stroke: "currentColor",
4075
- fill: "currentColor",
4076
- strokeWidth: "0"
4077
- }, r.attr, n, a, {
4078
- className: l,
4079
- style: qe(qe({
4080
- color: e.color || r.color
4081
- }, r.style), e.style),
4082
- height: s,
4083
- width: s,
4084
- xmlns: "http://www.w3.org/2000/svg"
4085
- }), i && /* @__PURE__ */ be.createElement("title", null, i), e.children);
4086
- };
4087
- return wr !== void 0 ? /* @__PURE__ */ be.createElement(wr.Consumer, null, (r) => t(r)) : t(vn);
4088
- }
4089
- function vs(e) {
4090
- return xn({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49" }, child: [] }, { tag: "path", attr: { d: "M14.084 14.158a3 3 0 0 1-4.242-4.242" }, child: [] }, { tag: "path", attr: { d: "M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143" }, child: [] }, { tag: "path", attr: { d: "m2 2 20 20" }, child: [] }] })(e);
4091
- }
4092
- function bs(e) {
4093
- return xn({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0" }, child: [] }, { tag: "circle", attr: { cx: "12", cy: "12", r: "3" }, child: [] }] })(e);
4094
- }
4095
- const Fs = L.forwardRef(function(t, r) {
4096
- const {
4097
- rootProps: n,
4098
- defaultVisible: o,
4099
- visible: i,
4100
- onVisibleChange: a,
4101
- visibilityIcon: s = { on: /* @__PURE__ */ O(bs, {}), off: /* @__PURE__ */ O(vs, {}) },
4102
- ...l
4103
- } = t, [f, c] = li({
4104
- value: i,
4105
- defaultValue: o || !1,
4106
- onChange: a
4107
- }), d = L.useRef(null);
4108
- return /* @__PURE__ */ O(
4109
- rs,
4110
- {
4111
- endElement: /* @__PURE__ */ O(
4112
- xs,
4113
- {
4114
- disabled: l.disabled,
4115
- onPointerDown: (u) => {
4116
- l.disabled || u.button === 0 && (u.preventDefault(), c(!f));
4117
- },
4118
- children: f ? s.off : s.on
4119
- }
4120
- ),
4121
- ...n,
4122
- children: /* @__PURE__ */ O(
4123
- ts,
4124
- {
4125
- ...l,
4126
- ref: zr(r, d),
4127
- type: f ? "text" : "password"
4128
- }
4129
- )
4130
- }
4131
- );
4132
- }), xs = L.forwardRef(
4133
- function(t, r) {
4134
- return /* @__PURE__ */ O(
4135
- Ua,
4136
- {
4137
- tabIndex: -1,
4138
- ref: r,
4139
- me: "-2",
4140
- aspectRatio: "square",
4141
- size: "sm",
4142
- variant: "ghost",
4143
- height: "calc(100% - {spacing.2})",
4144
- "aria-label": "Toggle password visibility",
4145
- ...t
4146
- }
4147
- );
4148
- }
4149
- ), Ws = L.forwardRef(function(t, r) {
4150
- const { max: n = 4, value: o, ...i } = t, a = o / n * 100, { label: s, colorPalette: l } = Ss(a);
4151
- return /* @__PURE__ */ he(Bt, { align: "flex-end", gap: "1", ref: r, ...i, children: [
4152
- /* @__PURE__ */ O(kr, { width: "full", ref: r, ...i, children: Array.from({ length: n }).map((f, c) => /* @__PURE__ */ O(
4153
- fn,
4154
- {
4155
- height: "1",
4156
- flex: "1",
4157
- rounded: "sm",
4158
- "data-selected": c < o ? "" : void 0,
4159
- layerStyle: "fill.subtle",
4160
- colorPalette: "gray",
4161
- _selected: {
4162
- colorPalette: l,
4163
- layerStyle: "fill.solid"
4164
- }
4165
- },
4166
- c
4167
- )) }),
4168
- s && /* @__PURE__ */ O(kr, { textStyle: "xs", children: s })
4169
- ] });
4170
- });
4171
- function Ss(e) {
4172
- switch (!0) {
4173
- case e < 33:
4174
- return { label: "Low", colorPalette: "red" };
4175
- case e < 66:
4176
- return { label: "Medium", colorPalette: "orange" };
4177
- default:
4178
- return { label: "High", colorPalette: "green" };
4179
- }
4180
- }
4181
- export {
4182
- Es as AspectRatio,
4183
- Os as Bleed,
4184
- fn as Box,
4185
- Ga as Center,
4186
- Ts as Container,
4187
- As as Flex,
4188
- Rs as Float,
4189
- Ko as Grid,
4190
- _s as GridItem,
4191
- Na as Group,
4192
- kr as HStack,
4193
- Fs as PasswordInput,
4194
- Ws as PasswordStrengthMeter,
4195
- $s as SimpleGrid,
4196
- Bt as Stack,
4197
- Ps as Theme,
4198
- js as ThemeProvider,
4199
- Ms as VStack,
4200
- ns as Wrap,
4201
- Is as WrapItem,
4202
- Ns as useTheme
4203
- };