@viglet/viglet-design-system 2026.3.12 → 2026.3.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/README.md +39 -10
  2. package/dist/bento/bento-calendar.d.ts +52 -0
  3. package/dist/bento/bento-calendar.d.ts.map +1 -0
  4. package/dist/bento/bento-change-mark.d.ts +21 -0
  5. package/dist/bento/bento-change-mark.d.ts.map +1 -0
  6. package/dist/bento/bento-data-table.d.ts +8 -1
  7. package/dist/bento/bento-data-table.d.ts.map +1 -1
  8. package/dist/bento/bento-diff.d.ts +10 -1
  9. package/dist/bento/bento-diff.d.ts.map +1 -1
  10. package/dist/bento/bento-split-page.d.ts +31 -0
  11. package/dist/bento/bento-split-page.d.ts.map +1 -0
  12. package/dist/bento/bento-version-rail.d.ts.map +1 -1
  13. package/dist/bento/index.d.ts +4 -1
  14. package/dist/bento/index.d.ts.map +1 -1
  15. package/dist/bento.cjs +4 -4
  16. package/dist/bento.es.js +1430 -787
  17. package/dist/catalogue.json +189 -1
  18. package/dist/components/ui/viglet-assistant.d.ts +7 -1
  19. package/dist/components/ui/viglet-assistant.d.ts.map +1 -1
  20. package/dist/exports.json +14 -1
  21. package/dist/i18n/index.d.ts +44 -0
  22. package/dist/i18n/index.d.ts.map +1 -1
  23. package/dist/i18n/locales/en/bento.json.d.ts +22 -0
  24. package/dist/i18n/locales/pt/bento.json.d.ts +22 -0
  25. package/dist/i18n.cjs +1 -1
  26. package/dist/i18n.es.js +40 -0
  27. package/dist/index.cjs +1 -1
  28. package/dist/index.es.js +971 -1083
  29. package/dist/preset.css +1 -1
  30. package/dist/{user.context-BXQ7lgg5.js → user.context-D3kmD3_y.js} +285 -169
  31. package/dist/user.context-gQvBxcwr.cjs +1 -0
  32. package/dist/viglet-design-system.css +1 -1
  33. package/docs/BENTO-AUTHORING.md +13 -2
  34. package/docs/reference/README.md +2 -1
  35. package/docs/reference/canvas.json +10 -1
  36. package/docs/reference/split.dc.html +164 -0
  37. package/package.json +1 -1
  38. package/scripts/lib/contrast.mjs +29 -3
  39. package/scripts/page-reference.mjs +3 -3
  40. package/dist/user.context-D01CI8gq.cjs +0 -1
package/dist/index.es.js CHANGED
@@ -1,40 +1,38 @@
1
1
  "use client";
2
2
  import { a as e, n as t, r as n, t as r } from "./utils-Fk5jmzzb.js";
3
- import { C as i, S as a, _ as o, a as s, b as c, c as l, d as u, f as d, g as f, h as p, i as m, l as h, m as g, n as _, o as v, p as y, r as b, s as x, t as S, u as C, x as w } from "./badge-locale-Bx7m7tg2.js";
4
- import { A as T, B as ee, C as E, D, E as O, F as k, H as A, I as j, L as M, M as N, N as P, O as te, P as ne, R as F, S as re, T as ie, V as ae, _ as oe, a as se, b as ce, c as le, d as ue, f as de, g as fe, h as I, i as pe, j as me, k as L, l as he, m as ge, n as _e, o as ve, p as ye, s as be, t as xe, u as Se, v as Ce, w as we, x as Te, y as Ee, z as R } from "./user.context-BXQ7lgg5.js";
5
- import { FloatingFormulasBg as De } from "./floating-formulas-bg.es.js";
6
- import { i as Oe, n as ke, r as Ae } from "./products-Du9KB6Xl.js";
7
- import * as z from "@radix-ui/react-accordion";
8
- import * as B from "react";
9
- import je, { createContext as Me, useCallback as Ne, useContext as Pe, useEffect as V, useMemo as Fe, useRef as H, useState as Ie } from "react";
10
- import { Fragment as Le, jsx as U, jsxs as W } from "react/jsx-runtime";
11
- import * as Re from "@radix-ui/react-avatar";
12
- import { Slot as ze } from "@radix-ui/react-slot";
13
- import { cva as Be } from "class-variance-authority";
14
- import { useTranslation as G } from "react-i18next";
15
- import * as K from "@radix-ui/react-dialog";
16
- import { Drawer as q } from "vaul";
17
- import { Controller as Ve, FormProvider as He, useFormContext as Ue, useFormState as We } from "react-hook-form";
18
- import * as Ge from "@radix-ui/react-label";
19
- import { IconAlertTriangle as Ke, IconAlertTriangleFilled as qe, IconCheck as Je, IconCircleCheck as Ye, IconDeviceFloppy as Xe, IconLoader2 as Ze, IconLogout as Qe, IconRefresh as $e, IconTrash as et, IconUserCircle as tt, IconX as nt } from "@tabler/icons-react";
20
- import * as rt from "@radix-ui/react-switch";
21
- import * as it from "@radix-ui/react-hover-card";
22
- import * as at from "@radix-ui/react-navigation-menu";
23
- import { Progress as ot } from "radix-ui";
24
- import { Group as st, Panel as ct, Separator as lt } from "react-resizable-panels";
3
+ import { C as i, S as a, _ as o, a as s, b as c, c as l, d as u, f as d, g as f, h as p, i as m, l as h, m as g, n as _, o as v, p as y, r as ee, s as b, t as x, u as S, x as C } from "./badge-locale-Bx7m7tg2.js";
4
+ import { A as w, B as T, C as te, D as E, E as D, F as O, G as k, H as A, I as j, J as M, K as N, L as P, M as ne, N as F, O as re, P as ie, R as ae, S as oe, T as se, U as ce, V as le, W as ue, X as de, Y as fe, _ as I, a as pe, b as me, c as L, d as he, f as ge, g as _e, h as ve, i as ye, j as be, k as xe, l as Se, m as Ce, n as we, o as Te, p as Ee, q as R, s as De, t as Oe, u as ke, v as Ae, w as je, x as Me, y as Ne, z as Pe } from "./user.context-D3kmD3_y.js";
5
+ import { FloatingFormulasBg as Fe } from "./floating-formulas-bg.es.js";
6
+ import { i as Ie, n as Le, r as Re } from "./products-Du9KB6Xl.js";
7
+ import * as ze from "@radix-ui/react-accordion";
8
+ import * as z from "react";
9
+ import Be, { createContext as Ve, useCallback as He, useContext as Ue, useEffect as B, useMemo as We, useRef as V, useState as Ge } from "react";
10
+ import { Fragment as Ke, jsx as H, jsxs as U } from "react/jsx-runtime";
11
+ import * as qe from "@radix-ui/react-avatar";
12
+ import { Slot as Je } from "@radix-ui/react-slot";
13
+ import { cva as Ye } from "class-variance-authority";
14
+ import { useTranslation as W } from "react-i18next";
15
+ import * as G from "@radix-ui/react-dialog";
16
+ import { Drawer as K } from "vaul";
17
+ import { Controller as Xe, FormProvider as Ze, useFormContext as Qe, useFormState as $e } from "react-hook-form";
18
+ import * as et from "@radix-ui/react-label";
19
+ import { IconAlertTriangle as tt, IconAlertTriangleFilled as nt, IconCheck as rt, IconCircleCheck as it, IconDeviceFloppy as at, IconLoader2 as ot, IconLogout as st, IconRefresh as ct, IconTrash as lt, IconUserCircle as ut, IconX as dt } from "@tabler/icons-react";
20
+ import * as ft from "@radix-ui/react-switch";
21
+ import * as pt from "@radix-ui/react-hover-card";
22
+ import * as q from "@radix-ui/react-navigation-menu";
23
+ import { Progress as mt } from "radix-ui";
25
24
  import * as J from "@radix-ui/react-select";
26
- import * as ut from "@radix-ui/react-separator";
27
- import * as dt from "@radix-ui/react-slider";
28
- import { ThemeProvider as ft, useTheme as pt } from "next-themes";
29
- import { useSonner as mt } from "sonner";
30
- import * as ht from "@radix-ui/react-tabs";
31
- import * as gt from "@radix-ui/react-toggle";
32
- import * as _t from "@radix-ui/react-toggle-group";
25
+ import * as ht from "@radix-ui/react-separator";
26
+ import * as gt from "@radix-ui/react-slider";
27
+ import { ThemeProvider as _t, useTheme as vt } from "next-themes";
28
+ import { useSonner as yt } from "sonner";
29
+ import * as bt from "@radix-ui/react-toggle";
30
+ import * as xt from "@radix-ui/react-toggle-group";
33
31
  import Y from "axios";
34
- import { enUS as vt, ptBR as yt } from "date-fns/locale";
35
- import * as bt from "xlsx";
32
+ import { enUS as St, ptBR as Ct } from "date-fns/locale";
33
+ import * as wt from "xlsx";
36
34
  //#region node_modules/lucide-react/dist/esm/icons/book.mjs
37
- var xt = {
35
+ var Tt = {
38
36
  name: "book",
39
37
  size: 24,
40
38
  node: [["path", {
@@ -42,8 +40,8 @@ var xt = {
42
40
  key: "k3hazp"
43
41
  }]]
44
42
  };
45
- xt.node;
46
- var St = i(xt), Ct = {
43
+ Tt.node;
44
+ var Et = i(Tt), Dt = {
47
45
  name: "chevron-down",
48
46
  size: 24,
49
47
  node: [["path", {
@@ -51,8 +49,8 @@ var St = i(xt), Ct = {
51
49
  key: "qrunsl"
52
50
  }]]
53
51
  };
54
- Ct.node;
55
- var wt = i(Ct), Tt = {
52
+ Dt.node;
53
+ var Ot = i(Dt), kt = {
56
54
  name: "chevron-left",
57
55
  size: 24,
58
56
  node: [["path", {
@@ -60,8 +58,8 @@ var wt = i(Ct), Tt = {
60
58
  key: "1wnfg3"
61
59
  }]]
62
60
  };
63
- Tt.node;
64
- var Et = i(Tt), Dt = {
61
+ kt.node;
62
+ var At = i(kt), jt = {
65
63
  name: "chevron-up",
66
64
  size: 24,
67
65
  node: [["path", {
@@ -69,8 +67,8 @@ var Et = i(Tt), Dt = {
69
67
  key: "153udz"
70
68
  }]]
71
69
  };
72
- Dt.node;
73
- var Ot = i(Dt), kt = {
70
+ jt.node;
71
+ var Mt = i(jt), Nt = {
74
72
  name: "cloud",
75
73
  size: 24,
76
74
  node: [["path", {
@@ -78,8 +76,8 @@ var Ot = i(Dt), kt = {
78
76
  key: "p7xjir"
79
77
  }]]
80
78
  };
81
- kt.node;
82
- var At = i(kt), jt = {
79
+ Nt.node;
80
+ var Pt = i(Nt), Ft = {
83
81
  name: "ellipsis",
84
82
  size: 24,
85
83
  node: [
@@ -104,8 +102,8 @@ var At = i(kt), jt = {
104
102
  ],
105
103
  aliases: ["more-horizontal"]
106
104
  };
107
- jt.node;
108
- var Mt = i(jt), Nt = {
105
+ Ft.node;
106
+ var It = i(Ft), Lt = {
109
107
  name: "external-link",
110
108
  size: 24,
111
109
  node: [
@@ -123,51 +121,8 @@ var Mt = i(jt), Nt = {
123
121
  }]
124
122
  ]
125
123
  };
126
- Nt.node;
127
- var Pt = i(Nt), Ft = {
128
- name: "grip-vertical",
129
- size: 24,
130
- node: [
131
- ["circle", {
132
- cx: "9",
133
- cy: "12",
134
- r: "1",
135
- key: "1vctgf"
136
- }],
137
- ["circle", {
138
- cx: "9",
139
- cy: "5",
140
- r: "1",
141
- key: "hp0tcf"
142
- }],
143
- ["circle", {
144
- cx: "9",
145
- cy: "19",
146
- r: "1",
147
- key: "fkjjf6"
148
- }],
149
- ["circle", {
150
- cx: "15",
151
- cy: "12",
152
- r: "1",
153
- key: "1tmaij"
154
- }],
155
- ["circle", {
156
- cx: "15",
157
- cy: "5",
158
- r: "1",
159
- key: "19l28e"
160
- }],
161
- ["circle", {
162
- cx: "15",
163
- cy: "19",
164
- r: "1",
165
- key: "f4zoj3"
166
- }]
167
- ]
168
- };
169
- Ft.node;
170
- var It = i(Ft), Lt = {
124
+ Lt.node;
125
+ var Rt = i(Lt), zt = {
171
126
  name: "languages",
172
127
  size: 24,
173
128
  node: [
@@ -197,8 +152,8 @@ var It = i(Ft), Lt = {
197
152
  }]
198
153
  ]
199
154
  };
200
- Lt.node;
201
- var Rt = i(Lt), zt = {
155
+ zt.node;
156
+ var Bt = i(zt), Vt = {
202
157
  name: "layout-grid",
203
158
  size: 24,
204
159
  node: [
@@ -236,8 +191,8 @@ var Rt = i(Lt), zt = {
236
191
  }]
237
192
  ]
238
193
  };
239
- zt.node;
240
- var Bt = i(zt), Vt = {
194
+ Vt.node;
195
+ var Ht = i(Vt), Ut = {
241
196
  name: "menu",
242
197
  size: 24,
243
198
  node: [
@@ -255,8 +210,8 @@ var Bt = i(zt), Vt = {
255
210
  }]
256
211
  ]
257
212
  };
258
- Vt.node;
259
- var Ht = i(Vt), Ut = {
213
+ Ut.node;
214
+ var Wt = i(Ut), Gt = {
260
215
  name: "monitor",
261
216
  size: 24,
262
217
  node: [
@@ -284,8 +239,8 @@ var Ht = i(Vt), Ut = {
284
239
  }]
285
240
  ]
286
241
  };
287
- Ut.node;
288
- var Wt = i(Ut), Gt = {
242
+ Gt.node;
243
+ var Kt = i(Gt), qt = {
289
244
  name: "moon",
290
245
  size: 24,
291
246
  node: [["path", {
@@ -293,8 +248,8 @@ var Wt = i(Ut), Gt = {
293
248
  key: "kfwtm"
294
249
  }]]
295
250
  };
296
- Gt.node;
297
- var Kt = i(Gt), qt = {
251
+ qt.node;
252
+ var Jt = i(qt), Yt = {
298
253
  name: "panel-left",
299
254
  size: 24,
300
255
  node: [["rect", {
@@ -310,8 +265,8 @@ var Kt = i(Gt), qt = {
310
265
  }]],
311
266
  aliases: ["sidebar"]
312
267
  };
313
- qt.node;
314
- var Jt = i(qt), Yt = {
268
+ Yt.node;
269
+ var Xt = i(Yt), Zt = {
315
270
  name: "sun",
316
271
  size: 24,
317
272
  node: [
@@ -355,51 +310,51 @@ var Jt = i(qt), Yt = {
355
310
  }]
356
311
  ]
357
312
  };
358
- Yt.node;
359
- var Xt = i(Yt), Zt = z.Root, Qt = B.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ U(z.Item, {
313
+ Zt.node;
314
+ var Qt = i(Zt), $t = ze.Root, en = z.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ H(ze.Item, {
360
315
  ref: n,
361
316
  className: r("border-b", e),
362
317
  ...t
363
318
  }));
364
- Qt.displayName = "AccordionItem";
365
- var $t = B.forwardRef(({ className: e, children: t, ...n }, i) => /* @__PURE__ */ U(z.Header, {
319
+ en.displayName = "AccordionItem";
320
+ var tn = z.forwardRef(({ className: e, children: t, ...n }, i) => /* @__PURE__ */ H(ze.Header, {
366
321
  className: "flex",
367
- children: /* @__PURE__ */ W(z.Trigger, {
322
+ children: /* @__PURE__ */ U(ze.Trigger, {
368
323
  ref: i,
369
324
  className: r("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180", e),
370
325
  ...n,
371
- children: [t, /* @__PURE__ */ U(wt, { className: "h-4 w-4 shrink-0 transition-transform duration-200" })]
326
+ children: [t, /* @__PURE__ */ H(Ot, { className: "h-4 w-4 shrink-0 transition-transform duration-200" })]
372
327
  })
373
328
  }));
374
- $t.displayName = z.Trigger.displayName;
375
- var en = B.forwardRef(({ className: e, children: t, ...n }, i) => /* @__PURE__ */ U(z.Content, {
329
+ tn.displayName = ze.Trigger.displayName;
330
+ var nn = z.forwardRef(({ className: e, children: t, ...n }, i) => /* @__PURE__ */ H(ze.Content, {
376
331
  ref: i,
377
332
  className: "overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
378
333
  ...n,
379
- children: /* @__PURE__ */ U("div", {
334
+ children: /* @__PURE__ */ H("div", {
380
335
  className: r("pb-4 pt-0", e),
381
336
  children: t
382
337
  })
383
338
  }));
384
- en.displayName = z.Content.displayName;
339
+ nn.displayName = ze.Content.displayName;
385
340
  //#endregion
386
341
  //#region src/components/ui/avatar.tsx
387
- function tn({ className: e, ...t }) {
388
- return /* @__PURE__ */ U(Re.Root, {
342
+ function rn({ className: e, ...t }) {
343
+ return /* @__PURE__ */ H(qe.Root, {
389
344
  "data-slot": "avatar",
390
345
  className: r("relative flex size-8 shrink-0 overflow-hidden rounded-full", e),
391
346
  ...t
392
347
  });
393
348
  }
394
- function nn({ className: e, ...t }) {
395
- return /* @__PURE__ */ U(Re.Image, {
349
+ function an({ className: e, ...t }) {
350
+ return /* @__PURE__ */ H(qe.Image, {
396
351
  "data-slot": "avatar-image",
397
352
  className: r("aspect-square size-full", e),
398
353
  ...t
399
354
  });
400
355
  }
401
- function rn({ className: e, ...t }) {
402
- return /* @__PURE__ */ U(Re.Fallback, {
356
+ function on({ className: e, ...t }) {
357
+ return /* @__PURE__ */ H(qe.Fallback, {
403
358
  "data-slot": "avatar-fallback",
404
359
  className: r("bg-muted flex size-full items-center justify-center rounded-full", e),
405
360
  ...t
@@ -407,37 +362,37 @@ function rn({ className: e, ...t }) {
407
362
  }
408
363
  //#endregion
409
364
  //#region src/components/ui/breadcrumb.tsx
410
- function an({ ...e }) {
411
- let { t } = G();
412
- return /* @__PURE__ */ U("nav", {
365
+ function sn({ ...e }) {
366
+ let { t } = W();
367
+ return /* @__PURE__ */ H("nav", {
413
368
  "aria-label": t("common.breadcrumb", { defaultValue: "Breadcrumb" }),
414
369
  "data-slot": "breadcrumb",
415
370
  ...e
416
371
  });
417
372
  }
418
- function on({ className: e, ...t }) {
419
- return /* @__PURE__ */ U("ol", {
373
+ function cn({ className: e, ...t }) {
374
+ return /* @__PURE__ */ H("ol", {
420
375
  "data-slot": "breadcrumb-list",
421
376
  className: r("text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5", e),
422
377
  ...t
423
378
  });
424
379
  }
425
- function sn({ className: e, ...t }) {
426
- return /* @__PURE__ */ U("li", {
380
+ function ln({ className: e, ...t }) {
381
+ return /* @__PURE__ */ H("li", {
427
382
  "data-slot": "breadcrumb-item",
428
383
  className: r("inline-flex items-center gap-1.5", e),
429
384
  ...t
430
385
  });
431
386
  }
432
- function cn({ asChild: e, className: t, ...n }) {
433
- return /* @__PURE__ */ U(e ? ze : "a", {
387
+ function un({ asChild: e, className: t, ...n }) {
388
+ return /* @__PURE__ */ H(e ? Je : "a", {
434
389
  "data-slot": "breadcrumb-link",
435
390
  className: r("hover:text-foreground transition-colors", t),
436
391
  ...n
437
392
  });
438
393
  }
439
- function ln({ className: e, ...t }) {
440
- return /* @__PURE__ */ U("span", {
394
+ function dn({ className: e, ...t }) {
395
+ return /* @__PURE__ */ H("span", {
441
396
  "data-slot": "breadcrumb-page",
442
397
  role: "link",
443
398
  "aria-disabled": "true",
@@ -446,25 +401,25 @@ function ln({ className: e, ...t }) {
446
401
  ...t
447
402
  });
448
403
  }
449
- function un({ children: e, className: t, ...n }) {
450
- return /* @__PURE__ */ U("li", {
404
+ function fn({ children: e, className: t, ...n }) {
405
+ return /* @__PURE__ */ H("li", {
451
406
  "data-slot": "breadcrumb-separator",
452
407
  role: "presentation",
453
408
  "aria-hidden": "true",
454
409
  className: r("[&>svg]:size-3.5", t),
455
410
  ...n,
456
- children: e ?? /* @__PURE__ */ U(ae, {})
411
+ children: e ?? /* @__PURE__ */ H(fe, {})
457
412
  });
458
413
  }
459
- function dn({ className: e, ...t }) {
460
- let { t: n } = G();
461
- return /* @__PURE__ */ W("span", {
414
+ function pn({ className: e, ...t }) {
415
+ let { t: n } = W();
416
+ return /* @__PURE__ */ U("span", {
462
417
  "data-slot": "breadcrumb-ellipsis",
463
418
  role: "presentation",
464
419
  "aria-hidden": "true",
465
420
  className: r("flex size-9 items-center justify-center", e),
466
421
  ...t,
467
- children: [/* @__PURE__ */ U(Mt, { className: "size-4" }), /* @__PURE__ */ U("span", {
422
+ children: [/* @__PURE__ */ H(It, { className: "size-4" }), /* @__PURE__ */ H("span", {
468
423
  className: "sr-only",
469
424
  children: n("common.more", { defaultValue: "More" })
470
425
  })]
@@ -472,50 +427,50 @@ function dn({ className: e, ...t }) {
472
427
  }
473
428
  //#endregion
474
429
  //#region src/components/ui/card.tsx
475
- function fn({ className: e, ...t }) {
476
- return /* @__PURE__ */ U("div", {
430
+ function mn({ className: e, ...t }) {
431
+ return /* @__PURE__ */ H("div", {
477
432
  "data-slot": "card",
478
433
  className: r("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm", e),
479
434
  ...t
480
435
  });
481
436
  }
482
- function pn({ className: e, ...t }) {
483
- return /* @__PURE__ */ U("div", {
437
+ function hn({ className: e, ...t }) {
438
+ return /* @__PURE__ */ H("div", {
484
439
  "data-slot": "card-header",
485
440
  className: r("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6", e),
486
441
  ...t
487
442
  });
488
443
  }
489
- function mn({ className: e, ...t }) {
490
- return /* @__PURE__ */ U("div", {
444
+ function gn({ className: e, ...t }) {
445
+ return /* @__PURE__ */ H("div", {
491
446
  "data-slot": "card-title",
492
447
  className: r("leading-none font-semibold", e),
493
448
  ...t
494
449
  });
495
450
  }
496
- function hn({ className: e, ...t }) {
497
- return /* @__PURE__ */ U("div", {
451
+ function _n({ className: e, ...t }) {
452
+ return /* @__PURE__ */ H("div", {
498
453
  "data-slot": "card-description",
499
454
  className: r("text-muted-foreground text-sm", e),
500
455
  ...t
501
456
  });
502
457
  }
503
- function gn({ className: e, ...t }) {
504
- return /* @__PURE__ */ U("div", {
458
+ function vn({ className: e, ...t }) {
459
+ return /* @__PURE__ */ H("div", {
505
460
  "data-slot": "card-action",
506
461
  className: r("col-start-2 row-span-2 row-start-1 self-start justify-self-end", e),
507
462
  ...t
508
463
  });
509
464
  }
510
- function _n({ className: e, ...t }) {
511
- return /* @__PURE__ */ U("div", {
465
+ function yn({ className: e, ...t }) {
466
+ return /* @__PURE__ */ H("div", {
512
467
  "data-slot": "card-content",
513
468
  className: r("px-6", e),
514
469
  ...t
515
470
  });
516
471
  }
517
- function vn({ className: e, ...t }) {
518
- return /* @__PURE__ */ U("div", {
472
+ function bn({ className: e, ...t }) {
473
+ return /* @__PURE__ */ H("div", {
519
474
  "data-slot": "card-footer",
520
475
  className: r("flex items-center px-6 [.border-t]:pt-6", e),
521
476
  ...t
@@ -523,71 +478,71 @@ function vn({ className: e, ...t }) {
523
478
  }
524
479
  //#endregion
525
480
  //#region src/components/ui/drawer.tsx
526
- function yn({ ...e }) {
527
- return /* @__PURE__ */ U(q.Root, {
481
+ function xn({ ...e }) {
482
+ return /* @__PURE__ */ H(K.Root, {
528
483
  "data-slot": "drawer",
529
484
  ...e
530
485
  });
531
486
  }
532
- function bn({ ...e }) {
533
- return /* @__PURE__ */ U(q.Trigger, {
487
+ function Sn({ ...e }) {
488
+ return /* @__PURE__ */ H(K.Trigger, {
534
489
  "data-slot": "drawer-trigger",
535
490
  ...e
536
491
  });
537
492
  }
538
- function xn({ ...e }) {
539
- return /* @__PURE__ */ U(q.Portal, {
493
+ function Cn({ ...e }) {
494
+ return /* @__PURE__ */ H(K.Portal, {
540
495
  "data-slot": "drawer-portal",
541
496
  ...e
542
497
  });
543
498
  }
544
- function Sn({ ...e }) {
545
- return /* @__PURE__ */ U(q.Close, {
499
+ function wn({ ...e }) {
500
+ return /* @__PURE__ */ H(K.Close, {
546
501
  "data-slot": "drawer-close",
547
502
  ...e
548
503
  });
549
504
  }
550
- function Cn({ className: e, ...t }) {
551
- return /* @__PURE__ */ U(q.Overlay, {
505
+ function Tn({ className: e, ...t }) {
506
+ return /* @__PURE__ */ H(K.Overlay, {
552
507
  "data-slot": "drawer-overlay",
553
508
  className: r("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", e),
554
509
  ...t
555
510
  });
556
511
  }
557
- function wn({ className: e, children: t, ...n }) {
558
- return /* @__PURE__ */ W(xn, {
512
+ function En({ className: e, children: t, ...n }) {
513
+ return /* @__PURE__ */ U(Cn, {
559
514
  "data-slot": "drawer-portal",
560
- children: [/* @__PURE__ */ U(Cn, {}), /* @__PURE__ */ W(q.Content, {
515
+ children: [/* @__PURE__ */ H(Tn, {}), /* @__PURE__ */ U(K.Content, {
561
516
  "data-slot": "drawer-content",
562
517
  className: r("group/drawer-content bg-background fixed z-50 flex h-auto flex-col", "data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b", "data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t", "data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm", "data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm", e),
563
518
  ...n,
564
- children: [/* @__PURE__ */ U("div", { className: "bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }), t]
519
+ children: [/* @__PURE__ */ H("div", { className: "bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }), t]
565
520
  })]
566
521
  });
567
522
  }
568
- function Tn({ className: e, ...t }) {
569
- return /* @__PURE__ */ U("div", {
523
+ function Dn({ className: e, ...t }) {
524
+ return /* @__PURE__ */ H("div", {
570
525
  "data-slot": "drawer-header",
571
526
  className: r("flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-left", e),
572
527
  ...t
573
528
  });
574
529
  }
575
- function En({ className: e, ...t }) {
576
- return /* @__PURE__ */ U("div", {
530
+ function On({ className: e, ...t }) {
531
+ return /* @__PURE__ */ H("div", {
577
532
  "data-slot": "drawer-footer",
578
533
  className: r("mt-auto flex flex-col gap-2 p-4", e),
579
534
  ...t
580
535
  });
581
536
  }
582
- function Dn({ className: e, ...t }) {
583
- return /* @__PURE__ */ U(q.Title, {
537
+ function kn({ className: e, ...t }) {
538
+ return /* @__PURE__ */ H(K.Title, {
584
539
  "data-slot": "drawer-title",
585
540
  className: r("text-foreground font-semibold", e),
586
541
  ...t
587
542
  });
588
543
  }
589
- function On({ className: e, ...t }) {
590
- return /* @__PURE__ */ U(q.Description, {
544
+ function An({ className: e, ...t }) {
545
+ return /* @__PURE__ */ H(K.Description, {
591
546
  "data-slot": "drawer-description",
592
547
  className: r("text-muted-foreground text-sm", e),
593
548
  ...t
@@ -595,8 +550,8 @@ function On({ className: e, ...t }) {
595
550
  }
596
551
  //#endregion
597
552
  //#region src/components/ui/label.tsx
598
- function kn({ className: e, ...t }) {
599
- return /* @__PURE__ */ U(Ge.Root, {
553
+ function jn({ className: e, ...t }) {
554
+ return /* @__PURE__ */ H(et.Root, {
600
555
  "data-slot": "label",
601
556
  className: r("flex items-center gap-2 text-sm leading-none font-medium text-foreground select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", e),
602
557
  ...t
@@ -604,17 +559,17 @@ function kn({ className: e, ...t }) {
604
559
  }
605
560
  //#endregion
606
561
  //#region src/components/ui/form.tsx
607
- var An = He, jn = B.createContext({}), Mn = ({ ...e }) => {
608
- let t = !!e.rules?.required, n = B.useMemo(() => ({
562
+ var Mn = Ze, Nn = z.createContext({}), Pn = ({ ...e }) => {
563
+ let t = !!e.rules?.required, n = z.useMemo(() => ({
609
564
  name: e.name,
610
565
  required: t
611
566
  }), [e.name, t]);
612
- return /* @__PURE__ */ U(jn.Provider, {
567
+ return /* @__PURE__ */ H(Nn.Provider, {
613
568
  value: n,
614
- children: /* @__PURE__ */ U(Ve, { ...e })
569
+ children: /* @__PURE__ */ H(Xe, { ...e })
615
570
  });
616
- }, Nn = () => {
617
- let e = B.useContext(jn), t = B.useContext(Pn), { getFieldState: n } = Ue(), r = We({ name: e.name }), i = n(e.name, r);
571
+ }, Fn = () => {
572
+ let e = z.useContext(Nn), t = z.useContext(In), { getFieldState: n } = Qe(), r = $e({ name: e.name }), i = n(e.name, r);
618
573
  if (!e) throw Error("useFormField should be used within <FormField>");
619
574
  let { id: a } = t;
620
575
  return {
@@ -626,35 +581,35 @@ var An = He, jn = B.createContext({}), Mn = ({ ...e }) => {
626
581
  formMessageId: `${a}-form-item-message`,
627
582
  ...i
628
583
  };
629
- }, Pn = B.createContext({});
630
- function Fn({ className: e, ...t }) {
631
- let n = B.useId(), i = B.useMemo(() => ({ id: n }), [n]);
632
- return /* @__PURE__ */ U(Pn.Provider, {
584
+ }, In = z.createContext({});
585
+ function Ln({ className: e, ...t }) {
586
+ let n = z.useId(), i = z.useMemo(() => ({ id: n }), [n]);
587
+ return /* @__PURE__ */ H(In.Provider, {
633
588
  value: i,
634
- children: /* @__PURE__ */ U("div", {
589
+ children: /* @__PURE__ */ H("div", {
635
590
  "data-slot": "form-item",
636
591
  className: r("grid gap-2", e),
637
592
  ...t
638
593
  })
639
594
  });
640
595
  }
641
- function In({ className: e, children: t, ...n }) {
642
- let { error: i, formItemId: a, required: o } = Nn();
643
- return /* @__PURE__ */ W(kn, {
596
+ function Rn({ className: e, children: t, ...n }) {
597
+ let { error: i, formItemId: a, required: o } = Fn();
598
+ return /* @__PURE__ */ U(jn, {
644
599
  "data-slot": "form-label",
645
600
  "data-error": !!i,
646
601
  className: r("data-[error=true]:text-destructive", e),
647
602
  htmlFor: a,
648
603
  ...n,
649
- children: [t, o ? /* @__PURE__ */ U("span", {
604
+ children: [t, o ? /* @__PURE__ */ H("span", {
650
605
  className: "text-destructive",
651
606
  children: " *"
652
607
  }) : null]
653
608
  });
654
609
  }
655
- function Ln({ ...e }) {
656
- let { error: t, formItemId: n, formDescriptionId: r, formMessageId: i } = Nn();
657
- return /* @__PURE__ */ U(ze, {
610
+ function zn({ ...e }) {
611
+ let { error: t, formItemId: n, formDescriptionId: r, formMessageId: i } = Fn();
612
+ return /* @__PURE__ */ H(Je, {
658
613
  "data-slot": "form-control",
659
614
  id: n,
660
615
  "aria-describedby": t ? `${r} ${i}` : `${r}`,
@@ -662,18 +617,18 @@ function Ln({ ...e }) {
662
617
  ...e
663
618
  });
664
619
  }
665
- function Rn({ className: e, ...t }) {
666
- let { formDescriptionId: n } = Nn();
667
- return /* @__PURE__ */ U("p", {
620
+ function Bn({ className: e, ...t }) {
621
+ let { formDescriptionId: n } = Fn();
622
+ return /* @__PURE__ */ H("p", {
668
623
  "data-slot": "form-description",
669
624
  id: n,
670
625
  className: r("text-muted-foreground text-sm", e),
671
626
  ...t
672
627
  });
673
628
  }
674
- function zn({ className: e, ...t }) {
675
- let { error: n, formMessageId: i } = Nn(), a = n ? String(n?.message ?? "") : t.children;
676
- return a ? /* @__PURE__ */ U("p", {
629
+ function Vn({ className: e, ...t }) {
630
+ let { error: n, formMessageId: i } = Fn(), a = n ? String(n?.message ?? "") : t.children;
631
+ return a ? /* @__PURE__ */ H("p", {
677
632
  "data-slot": "form-message",
678
633
  id: i,
679
634
  className: r("text-destructive text-sm", e),
@@ -683,63 +638,63 @@ function zn({ className: e, ...t }) {
683
638
  }
684
639
  //#endregion
685
640
  //#region src/components/ui/form-actions.tsx
686
- function Bn({ children: e, className: t }) {
687
- return /* @__PURE__ */ U("div", {
641
+ function Hn({ children: e, className: t }) {
642
+ return /* @__PURE__ */ H("div", {
688
643
  className: r("flex items-center justify-end gap-3 pt-4 border-t", t),
689
644
  children: e
690
645
  });
691
646
  }
692
- function Vn({ onClick: e, children: t, className: n }) {
693
- let { t: r } = G();
694
- return /* @__PURE__ */ W(v, {
647
+ function Un({ onClick: e, children: t, className: n }) {
648
+ let { t: r } = W();
649
+ return /* @__PURE__ */ U(v, {
695
650
  type: "button",
696
651
  variant: "outline",
697
652
  onClick: e,
698
653
  className: n,
699
- children: [/* @__PURE__ */ U(nt, { className: "size-4" }), t ?? r("forms.formActions.cancel")]
654
+ children: [/* @__PURE__ */ H(dt, { className: "size-4" }), t ?? r("forms.formActions.cancel")]
700
655
  });
701
656
  }
702
- function Hn({ loading: e, disabled: t, children: n, className: r }) {
703
- let { t: i } = G();
704
- return /* @__PURE__ */ W(v, {
657
+ function Wn({ loading: e, disabled: t, children: n, className: r }) {
658
+ let { t: i } = W();
659
+ return /* @__PURE__ */ U(v, {
705
660
  type: "submit",
706
661
  disabled: t || e,
707
662
  className: r,
708
- children: [e ? /* @__PURE__ */ U(Ze, { className: "size-4 animate-spin" }) : /* @__PURE__ */ U(Xe, { className: "size-4" }), n ?? i("forms.formActions.saveChanges")]
663
+ children: [e ? /* @__PURE__ */ H(ot, { className: "size-4 animate-spin" }) : /* @__PURE__ */ H(at, { className: "size-4" }), n ?? i("forms.formActions.saveChanges")]
709
664
  });
710
665
  }
711
- function Un({ onClick: e, children: t, className: n }) {
712
- let { t: i } = G();
713
- return /* @__PURE__ */ W(v, {
666
+ function Gn({ onClick: e, children: t, className: n }) {
667
+ let { t: i } = W();
668
+ return /* @__PURE__ */ U(v, {
714
669
  type: "button",
715
670
  variant: "outline",
716
671
  onClick: e,
717
672
  className: r("md:hidden text-destructive border-destructive/30 hover:bg-destructive/10 mr-auto", n),
718
- children: [/* @__PURE__ */ U(et, { className: "size-4" }), t ?? i("forms.formActions.delete")]
673
+ children: [/* @__PURE__ */ H(lt, { className: "size-4" }), t ?? i("forms.formActions.delete")]
719
674
  });
720
675
  }
721
- Bn.Cancel = Vn, Bn.Submit = Hn, Bn.Delete = Un;
722
- var Wn = Object.assign(({ className: e, ...t }) => /* @__PURE__ */ U(Fn, { children: /* @__PURE__ */ U("div", {
676
+ Hn.Cancel = Un, Hn.Submit = Wn, Hn.Delete = Gn;
677
+ var Kn = Object.assign(({ className: e, ...t }) => /* @__PURE__ */ H(Ln, { children: /* @__PURE__ */ H("div", {
723
678
  className: r("flex w-full flex-row items-center gap-4", e),
724
679
  ...t
725
680
  }) }), {
726
- Left: ({ className: e, ...t }) => /* @__PURE__ */ U("div", {
681
+ Left: ({ className: e, ...t }) => /* @__PURE__ */ H("div", {
727
682
  className: r("flex w-1/2 flex-col gap-1", e),
728
683
  ...t
729
684
  }),
730
- Right: ({ className: e, ...t }) => /* @__PURE__ */ U("div", {
685
+ Right: ({ className: e, ...t }) => /* @__PURE__ */ H("div", {
731
686
  className: r("flex w-1/2 justify-end", e),
732
687
  ...t
733
688
  }),
734
- Label: ({ className: e, ...t }) => /* @__PURE__ */ U(In, {
689
+ Label: ({ className: e, ...t }) => /* @__PURE__ */ H(Rn, {
735
690
  className: r(e),
736
691
  ...t
737
692
  }),
738
- Description: ({ className: e, ...t }) => /* @__PURE__ */ U(Rn, {
693
+ Description: ({ className: e, ...t }) => /* @__PURE__ */ H(Bn, {
739
694
  className: r(e),
740
695
  ...t
741
696
  })
742
- }), Gn = Be("peer inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", {
697
+ }), qn = Ye("peer inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", {
743
698
  variants: { variant: {
744
699
  default: [
745
700
  "data-[state=checked]:bg-gradient-to-r data-[state=checked]:from-[var(--vg-accent-fill-from)] data-[state=checked]:to-[var(--vg-accent-fill-to)]",
@@ -774,12 +729,12 @@ var Wn = Object.assign(({ className: e, ...t }) => /* @__PURE__ */ U(Fn, { child
774
729
  } },
775
730
  defaultVariants: { variant: "default" }
776
731
  });
777
- function Kn({ className: e, variant: t, ...n }) {
778
- return /* @__PURE__ */ U(rt.Root, {
732
+ function Jn({ className: e, variant: t, ...n }) {
733
+ return /* @__PURE__ */ H(ft.Root, {
779
734
  "data-slot": "gradient-switch",
780
- className: r(Gn({ variant: t }), e),
735
+ className: r(qn({ variant: t }), e),
781
736
  ...n,
782
- children: /* @__PURE__ */ U(rt.Thumb, {
737
+ children: /* @__PURE__ */ H(ft.Thumb, {
783
738
  "data-slot": "gradient-switch-thumb",
784
739
  className: r("bg-background pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0 dark:bg-primary-foreground")
785
740
  })
@@ -787,11 +742,11 @@ function Kn({ className: e, variant: t, ...n }) {
787
742
  }
788
743
  //#endregion
789
744
  //#region src/components/ui/glass-card.tsx
790
- var qn = "rounded-2xl p-6 sm:p-8";
791
- function Jn({ children: e, color: t, colorDark: n, className: i, style: a, ...o }) {
745
+ var Yn = "rounded-2xl p-6 sm:p-8";
746
+ function Xn({ children: e, color: t, colorDark: n, className: i, style: a, ...o }) {
792
747
  let s = {};
793
- return t && (s["--glass-card-color"] = t), n ? s["--glass-card-color-dark"] = n : t && (s["--glass-card-color-dark"] = t), /* @__PURE__ */ U("div", {
794
- className: r("vig-glass-card", qn, i),
748
+ return t && (s["--glass-card-color"] = t), n ? s["--glass-card-color-dark"] = n : t && (s["--glass-card-color-dark"] = t), /* @__PURE__ */ H("div", {
749
+ className: r("vig-glass-card", Yn, i),
795
750
  style: {
796
751
  ...a ?? {},
797
752
  ...s
@@ -802,9 +757,9 @@ function Jn({ children: e, color: t, colorDark: n, className: i, style: a, ...o
802
757
  }
803
758
  //#endregion
804
759
  //#region src/components/ui/pulse-ring.tsx
805
- function Yn({ children: e, color: t, colorDark: n, paused: i, className: a, style: o, ...s }) {
760
+ function Zn({ children: e, color: t, colorDark: n, paused: i, className: a, style: o, ...s }) {
806
761
  let c = {};
807
- return t && (c["--pulse-ring-color"] = t), n ? c["--pulse-ring-color-dark"] = n : t && (c["--pulse-ring-color-dark"] = t), /* @__PURE__ */ U("div", {
762
+ return t && (c["--pulse-ring-color"] = t), n ? c["--pulse-ring-color-dark"] = n : t && (c["--pulse-ring-color-dark"] = t), /* @__PURE__ */ H("div", {
808
763
  className: r("vig-pulse-ring", !i && "vig-pulse-ring--active", a),
809
764
  style: {
810
765
  ...o ?? {},
@@ -816,116 +771,116 @@ function Yn({ children: e, color: t, colorDark: n, paused: i, className: a, styl
816
771
  }
817
772
  //#endregion
818
773
  //#region src/components/ui/hover-card.tsx
819
- var Xn = it.Root, Zn = it.Trigger, Qn = B.forwardRef(({ className: e, align: t = "center", sideOffset: n = 4, ...i }, a) => /* @__PURE__ */ U(it.Content, {
774
+ var Qn = pt.Root, $n = pt.Trigger, er = z.forwardRef(({ className: e, align: t = "center", sideOffset: n = 4, ...i }, a) => /* @__PURE__ */ H(pt.Content, {
820
775
  ref: a,
821
776
  align: t,
822
777
  sideOffset: n,
823
778
  className: r("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", e),
824
779
  ...i
825
780
  }));
826
- Qn.displayName = it.Content.displayName;
781
+ er.displayName = pt.Content.displayName;
827
782
  //#endregion
828
783
  //#region src/components/ui/navigation-menu.tsx
829
- function $n({ className: e, children: t, viewport: n = !0, ...i }) {
830
- let { t: a } = G();
831
- return /* @__PURE__ */ W(at.Root, {
784
+ function tr({ className: e, children: t, viewport: n = !0, ...i }) {
785
+ let { t: a } = W();
786
+ return /* @__PURE__ */ U(q.Root, {
832
787
  "data-slot": "navigation-menu",
833
788
  "data-viewport": n,
834
789
  "aria-label": a("common.mainNavigation", { defaultValue: "Main navigation" }),
835
790
  className: r("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center", e),
836
791
  ...i,
837
- children: [t, n && /* @__PURE__ */ U(ar, {})]
792
+ children: [t, n && /* @__PURE__ */ H(sr, {})]
838
793
  });
839
794
  }
840
- function er({ className: e, ...t }) {
841
- return /* @__PURE__ */ U(at.List, {
795
+ function nr({ className: e, ...t }) {
796
+ return /* @__PURE__ */ H(q.List, {
842
797
  "data-slot": "navigation-menu-list",
843
798
  className: r("group flex flex-1 list-none items-center justify-center gap-1", e),
844
799
  ...t
845
800
  });
846
801
  }
847
- function tr({ className: e, ...t }) {
848
- return /* @__PURE__ */ U(at.Item, {
802
+ function rr({ className: e, ...t }) {
803
+ return /* @__PURE__ */ H(q.Item, {
849
804
  "data-slot": "navigation-menu-item",
850
805
  className: r("relative", e),
851
806
  ...t
852
807
  });
853
808
  }
854
- var nr = Be("group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1");
855
- function rr({ className: e, children: t, ...n }) {
856
- return /* @__PURE__ */ W(at.Trigger, {
809
+ var ir = Ye("group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1");
810
+ function ar({ className: e, children: t, ...n }) {
811
+ return /* @__PURE__ */ U(q.Trigger, {
857
812
  "data-slot": "navigation-menu-trigger",
858
- className: r(nr(), "group", e),
813
+ className: r(ir(), "group", e),
859
814
  ...n,
860
815
  children: [
861
816
  t,
862
817
  " ",
863
- /* @__PURE__ */ U(wt, {
818
+ /* @__PURE__ */ H(Ot, {
864
819
  className: "relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180",
865
820
  "aria-hidden": "true"
866
821
  })
867
822
  ]
868
823
  });
869
824
  }
870
- function ir({ className: e, ...t }) {
871
- return /* @__PURE__ */ U(at.Content, {
825
+ function or({ className: e, ...t }) {
826
+ return /* @__PURE__ */ H(q.Content, {
872
827
  "data-slot": "navigation-menu-content",
873
828
  className: r("data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto", "group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none", e),
874
829
  ...t
875
830
  });
876
831
  }
877
- function ar({ className: e, ...t }) {
878
- return /* @__PURE__ */ U("div", {
832
+ function sr({ className: e, ...t }) {
833
+ return /* @__PURE__ */ H("div", {
879
834
  className: r("absolute top-full left-0 isolate z-50 flex justify-center"),
880
- children: /* @__PURE__ */ U(at.Viewport, {
835
+ children: /* @__PURE__ */ H(q.Viewport, {
881
836
  "data-slot": "navigation-menu-viewport",
882
837
  className: r("origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]", e),
883
838
  ...t
884
839
  })
885
840
  });
886
841
  }
887
- function or({ className: e, ...t }) {
888
- return /* @__PURE__ */ U(at.Link, {
842
+ function cr({ className: e, ...t }) {
843
+ return /* @__PURE__ */ H(q.Link, {
889
844
  "data-slot": "navigation-menu-link",
890
845
  className: r("data-[active=true]:focus:bg-accent data-[active=true]:hover:bg-accent data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex flex-col gap-1 rounded-sm p-2 text-sm transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4", e),
891
846
  ...t
892
847
  });
893
848
  }
894
- function sr({ className: e, ...t }) {
895
- return /* @__PURE__ */ U(at.Indicator, {
849
+ function lr({ className: e, ...t }) {
850
+ return /* @__PURE__ */ H(q.Indicator, {
896
851
  "data-slot": "navigation-menu-indicator",
897
852
  className: r("data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden", e),
898
853
  ...t,
899
- children: /* @__PURE__ */ U("div", { className: "bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md" })
854
+ children: /* @__PURE__ */ H("div", { className: "bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md" })
900
855
  });
901
856
  }
902
857
  //#endregion
903
858
  //#region src/components/ui/pagination.tsx
904
- function cr({ className: e, ...t }) {
905
- let { t: n } = G();
906
- return /* @__PURE__ */ U("nav", {
859
+ function ur({ className: e, ...t }) {
860
+ let { t: n } = W();
861
+ return /* @__PURE__ */ H("nav", {
907
862
  role: "navigation",
908
863
  "aria-label": n("common.pagination", { defaultValue: "Pagination" }),
909
864
  className: r("mx-auto flex w-full justify-center", e),
910
865
  ...t
911
866
  });
912
867
  }
913
- var lr = B.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ U("ol", {
868
+ var dr = z.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ H("ol", {
914
869
  ref: n,
915
870
  className: r("flex flex-row items-center gap-1", e),
916
871
  ...t
917
872
  }));
918
- lr.displayName = "PaginationContent";
919
- var ur = B.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ U("li", {
873
+ dr.displayName = "PaginationContent";
874
+ var fr = z.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ H("li", {
920
875
  ref: n,
921
876
  className: r("", e),
922
877
  ...t
923
878
  }));
924
- ur.displayName = "PaginationItem";
925
- function dr({ className: e, isActive: t, size: n = "icon", children: i, ...a }) {
926
- return /* @__PURE__ */ U("a", {
879
+ fr.displayName = "PaginationItem";
880
+ function pr({ className: e, isActive: t, size: n = "icon", children: i, ...a }) {
881
+ return /* @__PURE__ */ H("a", {
927
882
  "aria-current": t ? "page" : void 0,
928
- className: r(ee({
883
+ className: r(M({
929
884
  variant: t ? "outline" : "ghost",
930
885
  size: n
931
886
  }), t && "bg-accent text-accent-foreground", e),
@@ -933,33 +888,33 @@ function dr({ className: e, isActive: t, size: n = "icon", children: i, ...a })
933
888
  children: i
934
889
  });
935
890
  }
936
- function fr({ className: e, ...t }) {
937
- let { t: n } = G();
938
- return /* @__PURE__ */ W(dr, {
891
+ function mr({ className: e, ...t }) {
892
+ let { t: n } = W();
893
+ return /* @__PURE__ */ U(pr, {
939
894
  "aria-label": n("common.goToPreviousPage", { defaultValue: "Go to previous page" }),
940
895
  size: "default",
941
896
  className: r("gap-1 pl-2.5", e),
942
897
  ...t,
943
- children: [/* @__PURE__ */ U(Et, { className: "h-4 w-4" }), /* @__PURE__ */ U("span", { children: n("common.previous", { defaultValue: "Previous" }) })]
898
+ children: [/* @__PURE__ */ H(At, { className: "h-4 w-4" }), /* @__PURE__ */ H("span", { children: n("common.previous", { defaultValue: "Previous" }) })]
944
899
  });
945
900
  }
946
- function pr({ className: e, ...t }) {
947
- let { t: n } = G();
948
- return /* @__PURE__ */ W(dr, {
901
+ function hr({ className: e, ...t }) {
902
+ let { t: n } = W();
903
+ return /* @__PURE__ */ U(pr, {
949
904
  "aria-label": n("common.goToNextPage", { defaultValue: "Go to next page" }),
950
905
  size: "default",
951
906
  className: r("gap-1 pr-2.5", e),
952
907
  ...t,
953
- children: [/* @__PURE__ */ U("span", { children: n("common.next", { defaultValue: "Next" }) }), /* @__PURE__ */ U(ae, { className: "h-4 w-4" })]
908
+ children: [/* @__PURE__ */ H("span", { children: n("common.next", { defaultValue: "Next" }) }), /* @__PURE__ */ H(fe, { className: "h-4 w-4" })]
954
909
  });
955
910
  }
956
- function mr({ className: e, ...t }) {
957
- let { t: n } = G();
958
- return /* @__PURE__ */ W("span", {
911
+ function gr({ className: e, ...t }) {
912
+ let { t: n } = W();
913
+ return /* @__PURE__ */ U("span", {
959
914
  "aria-hidden": "true",
960
915
  className: r("flex h-9 w-9 items-center justify-center", e),
961
916
  ...t,
962
- children: [/* @__PURE__ */ U(Mt, { className: "h-4 w-4" }), /* @__PURE__ */ U("span", {
917
+ children: [/* @__PURE__ */ H(It, { className: "h-4 w-4" }), /* @__PURE__ */ H("span", {
963
918
  className: "sr-only",
964
919
  children: n("common.morePages", { defaultValue: "More pages" })
965
920
  })]
@@ -967,12 +922,12 @@ function mr({ className: e, ...t }) {
967
922
  }
968
923
  //#endregion
969
924
  //#region src/components/ui/progress.tsx
970
- function hr({ className: e, value: t, ...n }) {
971
- return /* @__PURE__ */ U(ot.Root, {
925
+ function _r({ className: e, value: t, ...n }) {
926
+ return /* @__PURE__ */ H(mt.Root, {
972
927
  "data-slot": "progress",
973
928
  className: r("relative h-2 w-full overflow-hidden rounded-full bg-primary/20", e),
974
929
  ...n,
975
- children: /* @__PURE__ */ U(ot.Indicator, {
930
+ children: /* @__PURE__ */ H(mt.Indicator, {
976
931
  "data-slot": "progress-indicator",
977
932
  className: "h-full w-full flex-1 bg-primary transition-all",
978
933
  style: { transform: `translateX(-${100 - (t || 0)}%)` }
@@ -980,127 +935,99 @@ function hr({ className: e, value: t, ...n }) {
980
935
  });
981
936
  }
982
937
  //#endregion
983
- //#region src/components/ui/resizable.tsx
984
- function gr({ className: e, ...t }) {
985
- return /* @__PURE__ */ U(st, {
986
- "data-slot": "resizable-panel-group",
987
- className: r("flex h-full w-full", e),
988
- ...t
989
- });
990
- }
991
- function _r({ overflowHidden: e, className: t, ...n }) {
992
- return /* @__PURE__ */ U(ct, {
993
- "data-slot": "resizable-panel",
994
- className: r(e && "[&>div]:overflow-hidden!", t),
995
- style: e ? { overflow: "hidden" } : void 0,
996
- ...n
997
- });
998
- }
999
- function vr({ withHandle: e, className: t, ...n }) {
1000
- return /* @__PURE__ */ U(lt, {
1001
- "data-slot": "resizable-handle",
1002
- className: r("bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:-left-2 after:-right-2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden", "[&[aria-orientation=horizontal]]:h-px [&[aria-orientation=horizontal]]:w-full [&[aria-orientation=horizontal]]:after:inset-x-0 [&[aria-orientation=horizontal]]:after:-top-2 [&[aria-orientation=horizontal]]:after:-bottom-2 [&[aria-orientation=horizontal]>div]:rotate-90", t),
1003
- ...n,
1004
- children: e && /* @__PURE__ */ U("div", {
1005
- className: "bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",
1006
- children: /* @__PURE__ */ U(It, { className: "size-2.5" })
1007
- })
1008
- });
1009
- }
1010
- //#endregion
1011
938
  //#region src/components/ui/select.tsx
1012
- function yr({ ...e }) {
1013
- return /* @__PURE__ */ U(J.Root, {
939
+ function vr({ ...e }) {
940
+ return /* @__PURE__ */ H(J.Root, {
1014
941
  "data-slot": "select",
1015
942
  ...e
1016
943
  });
1017
944
  }
1018
- function br({ ...e }) {
1019
- return /* @__PURE__ */ U(J.Group, {
945
+ function yr({ ...e }) {
946
+ return /* @__PURE__ */ H(J.Group, {
1020
947
  "data-slot": "select-group",
1021
948
  ...e
1022
949
  });
1023
950
  }
1024
- function xr({ ...e }) {
1025
- return /* @__PURE__ */ U(J.Value, {
951
+ function br({ ...e }) {
952
+ return /* @__PURE__ */ H(J.Value, {
1026
953
  "data-slot": "select-value",
1027
954
  ...e
1028
955
  });
1029
956
  }
1030
- function Sr({ className: e, size: t = "default", children: n, ...i }) {
1031
- return /* @__PURE__ */ W(J.Trigger, {
957
+ function xr({ className: e, size: t = "default", children: n, ...i }) {
958
+ return /* @__PURE__ */ U(J.Trigger, {
1032
959
  "data-slot": "select-trigger",
1033
960
  "data-size": t,
1034
961
  className: r("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", e),
1035
962
  ...i,
1036
- children: [n, /* @__PURE__ */ U(J.Icon, {
963
+ children: [n, /* @__PURE__ */ H(J.Icon, {
1037
964
  asChild: !0,
1038
- children: /* @__PURE__ */ U(wt, { className: "size-4 opacity-50" })
965
+ children: /* @__PURE__ */ H(Ot, { className: "size-4 opacity-50" })
1039
966
  })]
1040
967
  });
1041
968
  }
1042
- function Cr({ className: e, children: t, position: n = "popper", align: i = "center", ...a }) {
1043
- return /* @__PURE__ */ U(J.Portal, { children: /* @__PURE__ */ W(J.Content, {
969
+ function Sr({ className: e, children: t, position: n = "popper", align: i = "center", ...a }) {
970
+ return /* @__PURE__ */ H(J.Portal, { children: /* @__PURE__ */ U(J.Content, {
1044
971
  "data-slot": "select-content",
1045
972
  className: r("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md", n === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", e),
1046
973
  position: n,
1047
974
  align: i,
1048
975
  ...a,
1049
976
  children: [
1050
- /* @__PURE__ */ U(Dr, {}),
1051
- /* @__PURE__ */ U(J.Viewport, {
977
+ /* @__PURE__ */ H(Er, {}),
978
+ /* @__PURE__ */ H(J.Viewport, {
1052
979
  className: r("p-1", n === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),
1053
980
  children: t
1054
981
  }),
1055
- /* @__PURE__ */ U(Or, {})
982
+ /* @__PURE__ */ H(Dr, {})
1056
983
  ]
1057
984
  }) });
1058
985
  }
1059
- function wr({ className: e, ...t }) {
1060
- return /* @__PURE__ */ U(J.Label, {
986
+ function Cr({ className: e, ...t }) {
987
+ return /* @__PURE__ */ H(J.Label, {
1061
988
  "data-slot": "select-label",
1062
989
  className: r("text-muted-foreground px-2 py-1.5 text-xs", e),
1063
990
  ...t
1064
991
  });
1065
992
  }
1066
- function Tr({ className: e, children: t, ...n }) {
1067
- return /* @__PURE__ */ W(J.Item, {
993
+ function wr({ className: e, children: t, ...n }) {
994
+ return /* @__PURE__ */ U(J.Item, {
1068
995
  "data-slot": "select-item",
1069
996
  className: r("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2", e),
1070
997
  ...n,
1071
- children: [/* @__PURE__ */ U("span", {
998
+ children: [/* @__PURE__ */ H("span", {
1072
999
  className: "absolute right-2 flex size-3.5 items-center justify-center",
1073
- children: /* @__PURE__ */ U(J.ItemIndicator, { children: /* @__PURE__ */ U(A, { className: "size-4" }) })
1074
- }), /* @__PURE__ */ U(J.ItemText, { children: t })]
1000
+ children: /* @__PURE__ */ H(J.ItemIndicator, { children: /* @__PURE__ */ H(de, { className: "size-4" }) })
1001
+ }), /* @__PURE__ */ H(J.ItemText, { children: t })]
1075
1002
  });
1076
1003
  }
1077
- function Er({ className: e, ...t }) {
1078
- return /* @__PURE__ */ U(J.Separator, {
1004
+ function Tr({ className: e, ...t }) {
1005
+ return /* @__PURE__ */ H(J.Separator, {
1079
1006
  "data-slot": "select-separator",
1080
1007
  className: r("bg-border pointer-events-none -mx-1 my-1 h-px", e),
1081
1008
  ...t
1082
1009
  });
1083
1010
  }
1084
- function Dr({ className: e, ...t }) {
1085
- return /* @__PURE__ */ U(J.ScrollUpButton, {
1011
+ function Er({ className: e, ...t }) {
1012
+ return /* @__PURE__ */ H(J.ScrollUpButton, {
1086
1013
  "data-slot": "select-scroll-up-button",
1087
1014
  className: r("flex cursor-default items-center justify-center py-1", e),
1088
1015
  ...t,
1089
- children: /* @__PURE__ */ U(Ot, { className: "size-4" })
1016
+ children: /* @__PURE__ */ H(Mt, { className: "size-4" })
1090
1017
  });
1091
1018
  }
1092
- function Or({ className: e, ...t }) {
1093
- return /* @__PURE__ */ U(J.ScrollDownButton, {
1019
+ function Dr({ className: e, ...t }) {
1020
+ return /* @__PURE__ */ H(J.ScrollDownButton, {
1094
1021
  "data-slot": "select-scroll-down-button",
1095
1022
  className: r("flex cursor-default items-center justify-center py-1", e),
1096
1023
  ...t,
1097
- children: /* @__PURE__ */ U(wt, { className: "size-4" })
1024
+ children: /* @__PURE__ */ H(Ot, { className: "size-4" })
1098
1025
  });
1099
1026
  }
1100
1027
  //#endregion
1101
1028
  //#region src/components/ui/separator.tsx
1102
- function kr({ className: e, orientation: t = "horizontal", decorative: n = !0, ...i }) {
1103
- return /* @__PURE__ */ U(ut.Root, {
1029
+ function Or({ className: e, orientation: t = "horizontal", decorative: n = !0, ...i }) {
1030
+ return /* @__PURE__ */ H(ht.Root, {
1104
1031
  "data-slot": "separator",
1105
1032
  decorative: n,
1106
1033
  orientation: t,
@@ -1110,120 +1037,107 @@ function kr({ className: e, orientation: t = "horizontal", decorative: n = !0, .
1110
1037
  }
1111
1038
  //#endregion
1112
1039
  //#region src/components/ui/sheet.tsx
1113
- function Ar({ ...e }) {
1114
- return /* @__PURE__ */ U(K.Root, {
1040
+ function kr({ ...e }) {
1041
+ return /* @__PURE__ */ H(G.Root, {
1115
1042
  "data-slot": "sheet",
1116
1043
  ...e
1117
1044
  });
1118
1045
  }
1119
- function jr({ ...e }) {
1120
- return /* @__PURE__ */ U(K.Trigger, {
1046
+ function Ar({ ...e }) {
1047
+ return /* @__PURE__ */ H(G.Trigger, {
1121
1048
  "data-slot": "sheet-trigger",
1122
1049
  ...e
1123
1050
  });
1124
1051
  }
1125
- function Mr({ ...e }) {
1126
- return /* @__PURE__ */ U(K.Close, {
1052
+ function jr({ ...e }) {
1053
+ return /* @__PURE__ */ H(G.Close, {
1127
1054
  "data-slot": "sheet-close",
1128
1055
  ...e
1129
1056
  });
1130
1057
  }
1131
- function Nr({ ...e }) {
1132
- return /* @__PURE__ */ U(K.Portal, {
1058
+ function Mr({ ...e }) {
1059
+ return /* @__PURE__ */ H(G.Portal, {
1133
1060
  "data-slot": "sheet-portal",
1134
1061
  ...e
1135
1062
  });
1136
1063
  }
1137
- function Pr({ className: e, ...t }) {
1138
- return /* @__PURE__ */ U(K.Overlay, {
1064
+ function Nr({ className: e, ...t }) {
1065
+ return /* @__PURE__ */ H(G.Overlay, {
1139
1066
  "data-slot": "sheet-overlay",
1140
1067
  className: r("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", e),
1141
1068
  ...t
1142
1069
  });
1143
1070
  }
1144
- function Fr({ className: e, children: t, side: n = "right", ...i }) {
1145
- let { t: o } = G();
1146
- return /* @__PURE__ */ W(Nr, { children: [/* @__PURE__ */ U(Pr, {}), /* @__PURE__ */ W(K.Content, {
1071
+ function Pr({ className: e, children: t, side: n = "right", ...i }) {
1072
+ let { t: o } = W();
1073
+ return /* @__PURE__ */ U(Mr, { children: [/* @__PURE__ */ H(Nr, {}), /* @__PURE__ */ U(G.Content, {
1147
1074
  "data-slot": "sheet-content",
1148
1075
  className: r("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500", n === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm", n === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm", n === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b", n === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t", e),
1149
1076
  ...i,
1150
- children: [t, /* @__PURE__ */ W(K.Close, {
1077
+ children: [t, /* @__PURE__ */ U(G.Close, {
1151
1078
  className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",
1152
- children: [/* @__PURE__ */ U(a, { className: "size-4" }), /* @__PURE__ */ U("span", {
1079
+ children: [/* @__PURE__ */ H(a, { className: "size-4" }), /* @__PURE__ */ H("span", {
1153
1080
  className: "sr-only",
1154
1081
  children: o("dialog.close", { defaultValue: "Close" })
1155
1082
  })]
1156
1083
  })]
1157
1084
  })] });
1158
1085
  }
1159
- function Ir({ className: e, ...t }) {
1160
- return /* @__PURE__ */ U("div", {
1086
+ function Fr({ className: e, ...t }) {
1087
+ return /* @__PURE__ */ H("div", {
1161
1088
  "data-slot": "sheet-header",
1162
1089
  className: r("flex flex-col gap-1.5 p-4", e),
1163
1090
  ...t
1164
1091
  });
1165
1092
  }
1166
- function Lr({ className: e, ...t }) {
1167
- return /* @__PURE__ */ U("div", {
1093
+ function Ir({ className: e, ...t }) {
1094
+ return /* @__PURE__ */ H("div", {
1168
1095
  "data-slot": "sheet-footer",
1169
1096
  className: r("mt-auto flex flex-col gap-2 p-4", e),
1170
1097
  ...t
1171
1098
  });
1172
1099
  }
1173
- function Rr({ className: e, ...t }) {
1174
- return /* @__PURE__ */ U(K.Title, {
1100
+ function Lr({ className: e, ...t }) {
1101
+ return /* @__PURE__ */ H(G.Title, {
1175
1102
  "data-slot": "sheet-title",
1176
1103
  className: r("text-foreground font-semibold", e),
1177
1104
  ...t
1178
1105
  });
1179
1106
  }
1180
- function zr({ className: e, ...t }) {
1181
- return /* @__PURE__ */ U(K.Description, {
1107
+ function Rr({ className: e, ...t }) {
1108
+ return /* @__PURE__ */ H(G.Description, {
1182
1109
  "data-slot": "sheet-description",
1183
1110
  className: r("text-muted-foreground text-sm", e),
1184
1111
  ...t
1185
1112
  });
1186
1113
  }
1187
1114
  //#endregion
1188
- //#region src/hooks/use-mobile.ts
1189
- var Br = "(max-width: 767px)";
1190
- function Vr() {
1191
- return window.matchMedia(Br);
1192
- }
1193
- function Hr(e) {
1194
- let t = Vr();
1195
- return t.addEventListener("change", e), () => t.removeEventListener("change", e);
1196
- }
1197
- function Ur() {
1198
- return B.useSyncExternalStore(Hr, () => Vr().matches, () => !1);
1199
- }
1200
- //#endregion
1201
1115
  //#region src/components/ui/sidebar.tsx
1202
- var Wr = "sidebar_state", Gr = 604800, Kr = "16rem", qr = "18rem", Jr = "3rem", Yr = "b", Xr = B.createContext(null);
1203
- function Zr() {
1204
- let e = B.useContext(Xr);
1116
+ var zr = "sidebar_state", Br = 604800, Vr = "16rem", Hr = "18rem", Ur = "3rem", Wr = "b", Gr = z.createContext(null);
1117
+ function Kr() {
1118
+ let e = z.useContext(Gr);
1205
1119
  if (!e) throw Error("useSidebar must be used within a SidebarProvider.");
1206
1120
  return e;
1207
1121
  }
1208
- function Qr() {
1209
- return B.useContext(Xr);
1122
+ function qr() {
1123
+ return z.useContext(Gr);
1210
1124
  }
1211
- function $r({ defaultOpen: e = !0, open: t, onOpenChange: n, className: i, style: a, children: o, ...s }) {
1212
- let c = Ur(), [l, u] = B.useState(!1), [d, f] = B.useState(e), p = t ?? d, m = B.useCallback((e) => {
1125
+ function Jr({ defaultOpen: e = !0, open: t, onOpenChange: n, className: i, style: a, children: o, ...s }) {
1126
+ let c = Ee(), [l, u] = z.useState(!1), [d, f] = z.useState(e), p = t ?? d, m = z.useCallback((e) => {
1213
1127
  let t = typeof e == "function" ? e(p) : e;
1214
- n ? n(t) : f(t), document.cookie = `${Wr}=${t}; path=/; max-age=${Gr}`;
1215
- }, [n, p]), h = B.useCallback(() => c ? u((e) => !e) : m((e) => !e), [
1128
+ n ? n(t) : f(t), document.cookie = `${zr}=${t}; path=/; max-age=${Br}`;
1129
+ }, [n, p]), h = z.useCallback(() => c ? u((e) => !e) : m((e) => !e), [
1216
1130
  c,
1217
1131
  m,
1218
1132
  u
1219
1133
  ]);
1220
- B.useEffect(() => {
1134
+ z.useEffect(() => {
1221
1135
  let e = (e) => {
1222
- e.key === Yr && (e.metaKey || e.ctrlKey) && (e.preventDefault(), h());
1136
+ e.key === Wr && (e.metaKey || e.ctrlKey) && (e.preventDefault(), h());
1223
1137
  };
1224
1138
  return globalThis.addEventListener("keydown", e), () => globalThis.removeEventListener("keydown", e);
1225
1139
  }, [h]);
1226
- let g = p ? "expanded" : "collapsed", _ = B.useMemo(() => ({
1140
+ let g = p ? "expanded" : "collapsed", _ = z.useMemo(() => ({
1227
1141
  state: g,
1228
1142
  open: p,
1229
1143
  setOpen: m,
@@ -1240,15 +1154,15 @@ function $r({ defaultOpen: e = !0, open: t, onOpenChange: n, className: i, style
1240
1154
  u,
1241
1155
  h
1242
1156
  ]);
1243
- return /* @__PURE__ */ U(Xr.Provider, {
1157
+ return /* @__PURE__ */ H(Gr.Provider, {
1244
1158
  value: _,
1245
- children: /* @__PURE__ */ U(ue, {
1159
+ children: /* @__PURE__ */ H(_e, {
1246
1160
  delayDuration: 0,
1247
- children: /* @__PURE__ */ U("div", {
1161
+ children: /* @__PURE__ */ H("div", {
1248
1162
  "data-slot": "sidebar-wrapper",
1249
1163
  style: {
1250
- "--sidebar-width": Kr,
1251
- "--sidebar-width-icon": Jr,
1164
+ "--sidebar-width": Vr,
1165
+ "--sidebar-width-icon": Ur,
1252
1166
  ...a
1253
1167
  },
1254
1168
  className: r("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full", i),
@@ -1258,9 +1172,9 @@ function $r({ defaultOpen: e = !0, open: t, onOpenChange: n, className: i, style
1258
1172
  })
1259
1173
  });
1260
1174
  }
1261
- function ei({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcanvas", position: i = "fixed", className: a, children: o, ...s }) {
1262
- let { isMobile: c, state: l, openMobile: u, setOpenMobile: d } = Zr(), { t: f } = G();
1263
- if (n === "none") return /* @__PURE__ */ U("div", {
1175
+ function Yr({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcanvas", position: i = "fixed", className: a, children: o, ...s }) {
1176
+ let { isMobile: c, state: l, openMobile: u, setOpenMobile: d } = Kr(), { t: f } = W();
1177
+ if (n === "none") return /* @__PURE__ */ H("div", {
1264
1178
  "data-slot": "sidebar",
1265
1179
  className: r("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col", a),
1266
1180
  ...s,
@@ -1268,10 +1182,10 @@ function ei({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcan
1268
1182
  });
1269
1183
  if (c) {
1270
1184
  let { style: t, ...n } = s;
1271
- return /* @__PURE__ */ U(Ar, {
1185
+ return /* @__PURE__ */ H(kr, {
1272
1186
  open: u,
1273
1187
  onOpenChange: d,
1274
- children: /* @__PURE__ */ W(Fr, {
1188
+ children: /* @__PURE__ */ U(Pr, {
1275
1189
  "data-sidebar": "sidebar",
1276
1190
  "data-slot": "sidebar",
1277
1191
  "data-mobile": "true",
@@ -1279,34 +1193,34 @@ function ei({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcan
1279
1193
  ...n,
1280
1194
  className: r("bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden", a),
1281
1195
  style: {
1282
- "--sidebar-width": qr,
1196
+ "--sidebar-width": Hr,
1283
1197
  ...t
1284
1198
  },
1285
- children: [/* @__PURE__ */ W(Ir, {
1199
+ children: [/* @__PURE__ */ U(Fr, {
1286
1200
  className: "sr-only",
1287
- children: [/* @__PURE__ */ U(Rr, { children: f("sidebar.title", { defaultValue: "Sidebar" }) }), /* @__PURE__ */ U(zr, { children: f("sidebar.description", { defaultValue: "Displays the mobile sidebar." }) })]
1288
- }), /* @__PURE__ */ U("div", {
1201
+ children: [/* @__PURE__ */ H(Lr, { children: f("sidebar.title", { defaultValue: "Sidebar" }) }), /* @__PURE__ */ H(Rr, { children: f("sidebar.description", { defaultValue: "Displays the mobile sidebar." }) })]
1202
+ }), /* @__PURE__ */ H("div", {
1289
1203
  className: "flex h-full w-full flex-col",
1290
1204
  children: o
1291
1205
  })]
1292
1206
  })
1293
1207
  });
1294
1208
  }
1295
- return /* @__PURE__ */ W("div", {
1209
+ return /* @__PURE__ */ U("div", {
1296
1210
  className: r("group peer text-sidebar-foreground hidden md:block", i === "absolute" && "relative"),
1297
1211
  "data-state": l,
1298
1212
  "data-collapsible": l === "collapsed" ? n : "",
1299
1213
  "data-variant": t,
1300
1214
  "data-side": e,
1301
1215
  "data-slot": "sidebar",
1302
- children: [/* @__PURE__ */ U("div", {
1216
+ children: [/* @__PURE__ */ H("div", {
1303
1217
  "data-slot": "sidebar-gap",
1304
1218
  className: r("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear", "group-data-[collapsible=offcanvas]:w-0", "group-data-[side=right]:rotate-180", t === "floating" || t === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)")
1305
- }), /* @__PURE__ */ U("div", {
1219
+ }), /* @__PURE__ */ H("div", {
1306
1220
  "data-slot": "sidebar-container",
1307
1221
  className: r("inset-y-0 z-10 hidden w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex", i === "absolute" ? "h-full" : "h-svh", i === "absolute" ? "absolute" : "fixed", e === "left" ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]" : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]", t === "floating" || t === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l", a),
1308
1222
  ...s,
1309
- children: /* @__PURE__ */ U("div", {
1223
+ children: /* @__PURE__ */ H("div", {
1310
1224
  "data-sidebar": "sidebar",
1311
1225
  "data-slot": "sidebar-inner",
1312
1226
  className: "bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",
@@ -1315,11 +1229,11 @@ function ei({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcan
1315
1229
  })]
1316
1230
  });
1317
1231
  }
1318
- function ti({ className: e, onClick: t, ...n }) {
1319
- let i = Qr(), { t: a } = G();
1232
+ function Xr({ className: e, onClick: t, ...n }) {
1233
+ let i = qr(), { t: a } = W();
1320
1234
  if (!i) return null;
1321
1235
  let { toggleSidebar: o, isMobile: s } = i;
1322
- return /* @__PURE__ */ W(v, {
1236
+ return /* @__PURE__ */ U(v, {
1323
1237
  "data-sidebar": "trigger",
1324
1238
  "data-slot": "sidebar-trigger",
1325
1239
  variant: "ghost",
@@ -1329,15 +1243,15 @@ function ti({ className: e, onClick: t, ...n }) {
1329
1243
  t?.(e), o();
1330
1244
  },
1331
1245
  ...n,
1332
- children: [U(s ? Ht : Jt, {}), /* @__PURE__ */ U("span", {
1246
+ children: [H(s ? Wt : Xt, {}), /* @__PURE__ */ H("span", {
1333
1247
  className: "sr-only",
1334
1248
  children: a("sidebar.toggle", { defaultValue: "Toggle Sidebar" })
1335
1249
  })]
1336
1250
  });
1337
1251
  }
1338
- function ni({ className: e, ...t }) {
1339
- let { toggleSidebar: n } = Zr(), { t: i } = G(), a = i("sidebar.toggle", { defaultValue: "Toggle Sidebar" });
1340
- return /* @__PURE__ */ U("button", {
1252
+ function Zr({ className: e, ...t }) {
1253
+ let { toggleSidebar: n } = Kr(), { t: i } = W(), a = i("sidebar.toggle", { defaultValue: "Toggle Sidebar" });
1254
+ return /* @__PURE__ */ H("button", {
1341
1255
  "data-sidebar": "rail",
1342
1256
  "data-slot": "sidebar-rail",
1343
1257
  "aria-label": a,
@@ -1348,102 +1262,102 @@ function ni({ className: e, ...t }) {
1348
1262
  ...t
1349
1263
  });
1350
1264
  }
1351
- function ri({ className: e, ...t }) {
1352
- return /* @__PURE__ */ U("main", {
1265
+ function Qr({ className: e, ...t }) {
1266
+ return /* @__PURE__ */ H("main", {
1353
1267
  "data-slot": "sidebar-inset",
1354
1268
  className: r("bg-background relative flex w-full flex-1 flex-col", "md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2", e),
1355
1269
  ...t
1356
1270
  });
1357
1271
  }
1358
- function ii({ className: e, ...t }) {
1359
- return /* @__PURE__ */ U(s, {
1272
+ function $r({ className: e, ...t }) {
1273
+ return /* @__PURE__ */ H(s, {
1360
1274
  "data-slot": "sidebar-input",
1361
1275
  "data-sidebar": "input",
1362
1276
  className: r("bg-background h-8 w-full shadow-none", e),
1363
1277
  ...t
1364
1278
  });
1365
1279
  }
1366
- function ai({ className: e, ...t }) {
1367
- return /* @__PURE__ */ U("div", {
1280
+ function ei({ className: e, ...t }) {
1281
+ return /* @__PURE__ */ H("div", {
1368
1282
  "data-slot": "sidebar-header",
1369
1283
  "data-sidebar": "header",
1370
1284
  className: r("flex flex-col gap-2 p-2", e),
1371
1285
  ...t
1372
1286
  });
1373
1287
  }
1374
- function oi({ className: e, ...t }) {
1375
- return /* @__PURE__ */ U("div", {
1288
+ function ti({ className: e, ...t }) {
1289
+ return /* @__PURE__ */ H("div", {
1376
1290
  "data-slot": "sidebar-footer",
1377
1291
  "data-sidebar": "footer",
1378
1292
  className: r("flex flex-col gap-2 p-2", e),
1379
1293
  ...t
1380
1294
  });
1381
1295
  }
1382
- function si({ className: e, ...t }) {
1383
- return /* @__PURE__ */ U(kr, {
1296
+ function ni({ className: e, ...t }) {
1297
+ return /* @__PURE__ */ H(Or, {
1384
1298
  "data-slot": "sidebar-separator",
1385
1299
  "data-sidebar": "separator",
1386
1300
  className: r("bg-sidebar-border mx-2 w-auto", e),
1387
1301
  ...t
1388
1302
  });
1389
1303
  }
1390
- function ci({ className: e, ...t }) {
1391
- return /* @__PURE__ */ U("div", {
1304
+ function ri({ className: e, ...t }) {
1305
+ return /* @__PURE__ */ H("div", {
1392
1306
  "data-slot": "sidebar-content",
1393
1307
  "data-sidebar": "content",
1394
1308
  className: r("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden", e),
1395
1309
  ...t
1396
1310
  });
1397
1311
  }
1398
- function li({ className: e, ...t }) {
1399
- return /* @__PURE__ */ U("div", {
1312
+ function ii({ className: e, ...t }) {
1313
+ return /* @__PURE__ */ H("div", {
1400
1314
  "data-slot": "sidebar-group",
1401
1315
  "data-sidebar": "group",
1402
1316
  className: r("relative flex w-full min-w-0 flex-col p-2", e),
1403
1317
  ...t
1404
1318
  });
1405
1319
  }
1406
- function ui({ className: e, asChild: t = !1, ...n }) {
1407
- return /* @__PURE__ */ U(t ? ze : "div", {
1320
+ function ai({ className: e, asChild: t = !1, ...n }) {
1321
+ return /* @__PURE__ */ H(t ? Je : "div", {
1408
1322
  "data-slot": "sidebar-group-label",
1409
1323
  "data-sidebar": "group-label",
1410
1324
  className: r("text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", "group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0", e),
1411
1325
  ...n
1412
1326
  });
1413
1327
  }
1414
- function di({ className: e, asChild: t = !1, ...n }) {
1415
- return /* @__PURE__ */ U(t ? ze : "button", {
1328
+ function oi({ className: e, asChild: t = !1, ...n }) {
1329
+ return /* @__PURE__ */ H(t ? Je : "button", {
1416
1330
  "data-slot": "sidebar-group-action",
1417
1331
  "data-sidebar": "group-action",
1418
1332
  className: r("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", "after:absolute after:-inset-2 md:after:hidden", "group-data-[collapsible=icon]:hidden", e),
1419
1333
  ...n
1420
1334
  });
1421
1335
  }
1422
- function fi({ className: e, ...t }) {
1423
- return /* @__PURE__ */ U("div", {
1336
+ function si({ className: e, ...t }) {
1337
+ return /* @__PURE__ */ H("div", {
1424
1338
  "data-slot": "sidebar-group-content",
1425
1339
  "data-sidebar": "group-content",
1426
1340
  className: r("w-full text-sm", e),
1427
1341
  ...t
1428
1342
  });
1429
1343
  }
1430
- function pi({ className: e, ...t }) {
1431
- return /* @__PURE__ */ U("ul", {
1344
+ function ci({ className: e, ...t }) {
1345
+ return /* @__PURE__ */ H("ul", {
1432
1346
  "data-slot": "sidebar-menu",
1433
1347
  "data-sidebar": "menu",
1434
1348
  className: r("flex w-full min-w-0 flex-col gap-1", e),
1435
1349
  ...t
1436
1350
  });
1437
1351
  }
1438
- function mi({ className: e, ...t }) {
1439
- return /* @__PURE__ */ U("li", {
1352
+ function li({ className: e, ...t }) {
1353
+ return /* @__PURE__ */ H("li", {
1440
1354
  "data-slot": "sidebar-menu-item",
1441
1355
  "data-sidebar": "menu-item",
1442
1356
  className: r("group/menu-item relative", e),
1443
1357
  ...t
1444
1358
  });
1445
1359
  }
1446
- var hi = Be("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0", {
1360
+ var ui = Ye("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0", {
1447
1361
  variants: {
1448
1362
  variant: {
1449
1363
  default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
@@ -1460,84 +1374,84 @@ var hi = Be("peer/menu-button flex w-full items-center gap-2 overflow-hidden rou
1460
1374
  size: "default"
1461
1375
  }
1462
1376
  });
1463
- function gi({ asChild: e = !1, isActive: t = !1, variant: n = "default", size: i = "default", tooltip: a, className: o, ...s }) {
1464
- let c = e ? ze : "button", { isMobile: l, state: u } = Zr(), d = /* @__PURE__ */ U(c, {
1377
+ function di({ asChild: e = !1, isActive: t = !1, variant: n = "default", size: i = "default", tooltip: a, className: o, ...s }) {
1378
+ let c = e ? Je : "button", { isMobile: l, state: u } = Kr(), d = /* @__PURE__ */ H(c, {
1465
1379
  "data-slot": "sidebar-menu-button",
1466
1380
  "data-sidebar": "menu-button",
1467
1381
  "data-size": i,
1468
1382
  "data-active": t,
1469
- className: r(hi({
1383
+ className: r(ui({
1470
1384
  variant: n,
1471
1385
  size: i
1472
1386
  }), o),
1473
1387
  ...s
1474
1388
  });
1475
- return a ? (typeof a == "string" && (a = { children: a }), /* @__PURE__ */ W(he, { children: [/* @__PURE__ */ U(de, {
1389
+ return a ? (typeof a == "string" && (a = { children: a }), /* @__PURE__ */ U(Ce, { children: [/* @__PURE__ */ H(I, {
1476
1390
  asChild: !0,
1477
1391
  children: d
1478
- }), /* @__PURE__ */ U(Se, {
1392
+ }), /* @__PURE__ */ H(ve, {
1479
1393
  side: "right",
1480
1394
  align: "center",
1481
1395
  hidden: u !== "collapsed" || l,
1482
1396
  ...a
1483
1397
  })] })) : d;
1484
1398
  }
1485
- function _i({ className: e, asChild: t = !1, showOnHover: n = !1, ...i }) {
1486
- return /* @__PURE__ */ U(t ? ze : "button", {
1399
+ function fi({ className: e, asChild: t = !1, showOnHover: n = !1, ...i }) {
1400
+ return /* @__PURE__ */ H(t ? Je : "button", {
1487
1401
  "data-slot": "sidebar-menu-action",
1488
1402
  "data-sidebar": "menu-action",
1489
1403
  className: r("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", "after:absolute after:-inset-2 md:after:hidden", "peer-data-[size=sm]/menu-button:top-1", "peer-data-[size=default]/menu-button:top-1.5", "peer-data-[size=lg]/menu-button:top-2.5", "group-data-[collapsible=icon]:hidden", n && "peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0", e),
1490
1404
  ...i
1491
1405
  });
1492
1406
  }
1493
- function vi({ className: e, ...t }) {
1494
- return /* @__PURE__ */ U("div", {
1407
+ function pi({ className: e, ...t }) {
1408
+ return /* @__PURE__ */ H("div", {
1495
1409
  "data-slot": "sidebar-menu-badge",
1496
1410
  "data-sidebar": "menu-badge",
1497
1411
  className: r("text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none", "peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground", "peer-data-[size=sm]/menu-button:top-1", "peer-data-[size=default]/menu-button:top-1.5", "peer-data-[size=lg]/menu-button:top-2.5", "group-data-[collapsible=icon]:hidden", e),
1498
1412
  ...t
1499
1413
  });
1500
1414
  }
1501
- function yi(e) {
1415
+ function mi(e) {
1502
1416
  let t = 0;
1503
1417
  for (let n = 0; n < e.length; n++) t = t * 31 + e.charCodeAt(n) | 0;
1504
1418
  return Math.abs(t);
1505
1419
  }
1506
- function bi({ className: e, showIcon: t = !1, ...n }) {
1507
- let i = `${50 + yi(B.useId()) % 40}%`;
1508
- return /* @__PURE__ */ W("div", {
1420
+ function hi({ className: e, showIcon: t = !1, ...n }) {
1421
+ let i = `${50 + mi(z.useId()) % 40}%`;
1422
+ return /* @__PURE__ */ U("div", {
1509
1423
  "data-slot": "sidebar-menu-skeleton",
1510
1424
  "data-sidebar": "menu-skeleton",
1511
1425
  className: r("flex h-8 items-center gap-2 rounded-md px-2", e),
1512
1426
  ...n,
1513
- children: [t && /* @__PURE__ */ U(m, {
1427
+ children: [t && /* @__PURE__ */ H(m, {
1514
1428
  className: "size-4 rounded-md",
1515
1429
  "data-sidebar": "menu-skeleton-icon"
1516
- }), /* @__PURE__ */ U(m, {
1430
+ }), /* @__PURE__ */ H(m, {
1517
1431
  className: "h-4 max-w-(--skeleton-width) flex-1",
1518
1432
  "data-sidebar": "menu-skeleton-text",
1519
1433
  style: { "--skeleton-width": i }
1520
1434
  })]
1521
1435
  });
1522
1436
  }
1523
- function xi({ className: e, ...t }) {
1524
- return /* @__PURE__ */ U("ul", {
1437
+ function gi({ className: e, ...t }) {
1438
+ return /* @__PURE__ */ H("ul", {
1525
1439
  "data-slot": "sidebar-menu-sub",
1526
1440
  "data-sidebar": "menu-sub",
1527
1441
  className: r("border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5", "group-data-[collapsible=icon]:hidden", e),
1528
1442
  ...t
1529
1443
  });
1530
1444
  }
1531
- function Si({ className: e, ...t }) {
1532
- return /* @__PURE__ */ U("li", {
1445
+ function _i({ className: e, ...t }) {
1446
+ return /* @__PURE__ */ H("li", {
1533
1447
  "data-slot": "sidebar-menu-sub-item",
1534
1448
  "data-sidebar": "menu-sub-item",
1535
1449
  className: r("group/menu-sub-item relative", e),
1536
1450
  ...t
1537
1451
  });
1538
1452
  }
1539
- function Ci({ asChild: e = !1, size: t = "md", isActive: n = !1, className: i, ...a }) {
1540
- return /* @__PURE__ */ U(e ? ze : "a", {
1453
+ function vi({ asChild: e = !1, size: t = "md", isActive: n = !1, className: i, ...a }) {
1454
+ return /* @__PURE__ */ H(e ? Je : "a", {
1541
1455
  "data-slot": "sidebar-menu-sub-button",
1542
1456
  "data-sidebar": "menu-sub-button",
1543
1457
  "data-size": t,
@@ -1548,61 +1462,61 @@ function Ci({ asChild: e = !1, size: t = "md", isActive: n = !1, className: i, .
1548
1462
  }
1549
1463
  //#endregion
1550
1464
  //#region src/components/ui/sticky-save-bar.tsx
1551
- var wi = {
1465
+ var yi = {
1552
1466
  gray: "bg-gray-50 dark:bg-gray-950/30",
1553
1467
  blue: "bg-blue-50 dark:bg-blue-950/30",
1554
1468
  orange: "bg-orange-50 dark:bg-orange-950/30",
1555
1469
  green: "bg-green-50 dark:bg-green-950/30"
1556
1470
  };
1557
- function Ti({ title: e, badges: t, actions: n, onCancel: r, loading: i, disabled: a, variant: o = "gray" }) {
1558
- let { t: s } = G();
1559
- return /* @__PURE__ */ W("div", {
1560
- className: `sticky top-0 z-10 border rounded-lg px-4 py-3 flex items-center justify-between gap-4 ${wi[o]}`,
1561
- children: [/* @__PURE__ */ W("div", {
1471
+ function bi({ title: e, badges: t, actions: n, onCancel: r, loading: i, disabled: a, variant: o = "gray" }) {
1472
+ let { t: s } = W();
1473
+ return /* @__PURE__ */ U("div", {
1474
+ className: `sticky top-0 z-10 border rounded-lg px-4 py-3 flex items-center justify-between gap-4 ${yi[o]}`,
1475
+ children: [/* @__PURE__ */ U("div", {
1562
1476
  className: "flex items-center gap-3 min-w-0",
1563
- children: [/* @__PURE__ */ U("h3", {
1477
+ children: [/* @__PURE__ */ H("h3", {
1564
1478
  className: "text-lg font-semibold text-foreground truncate",
1565
1479
  children: e
1566
- }), t && /* @__PURE__ */ U("div", {
1480
+ }), t && /* @__PURE__ */ H("div", {
1567
1481
  className: "flex items-center gap-1.5 shrink-0",
1568
1482
  children: t
1569
1483
  })]
1570
- }), /* @__PURE__ */ U("div", {
1484
+ }), /* @__PURE__ */ H("div", {
1571
1485
  className: "flex gap-2 shrink-0",
1572
- children: n ?? /* @__PURE__ */ W(Le, { children: [/* @__PURE__ */ W(v, {
1486
+ children: n ?? /* @__PURE__ */ U(Ke, { children: [/* @__PURE__ */ U(v, {
1573
1487
  type: "submit",
1574
1488
  size: "sm",
1575
1489
  loading: i,
1576
1490
  disabled: a,
1577
- children: [/* @__PURE__ */ U(Xe, { className: "size-4" }), s("forms.formActions.saveChanges")]
1578
- }), r && /* @__PURE__ */ W(v, {
1491
+ children: [/* @__PURE__ */ H(at, { className: "size-4" }), s("forms.formActions.saveChanges")]
1492
+ }), r && /* @__PURE__ */ U(v, {
1579
1493
  type: "button",
1580
1494
  variant: "outline",
1581
1495
  size: "sm",
1582
1496
  onClick: r,
1583
- children: [/* @__PURE__ */ U(nt, { className: "size-4" }), s("forms.formActions.cancel")]
1497
+ children: [/* @__PURE__ */ H(dt, { className: "size-4" }), s("forms.formActions.cancel")]
1584
1498
  })] })
1585
1499
  })]
1586
1500
  });
1587
1501
  }
1588
- function Ei({ children: e }) {
1589
- return /* @__PURE__ */ U(c, {
1502
+ function xi({ children: e }) {
1503
+ return /* @__PURE__ */ H(c, {
1590
1504
  variant: "outline",
1591
1505
  className: "text-xs",
1592
1506
  children: e
1593
1507
  });
1594
1508
  }
1595
- Ti.Badge = Ei;
1509
+ bi.Badge = xi;
1596
1510
  //#endregion
1597
1511
  //#region src/components/ui/slider.tsx
1598
- function Di({ className: e, defaultValue: t, value: n, min: i = 0, max: a = 100, "aria-label": o, "aria-labelledby": s, ...c }) {
1599
- let l = B.useMemo(() => Array.isArray(n) ? n : Array.isArray(t) ? t : [i, a], [
1512
+ function Si({ className: e, defaultValue: t, value: n, min: i = 0, max: a = 100, "aria-label": o, "aria-labelledby": s, ...c }) {
1513
+ let l = z.useMemo(() => Array.isArray(n) ? n : Array.isArray(t) ? t : [i, a], [
1600
1514
  n,
1601
1515
  t,
1602
1516
  i,
1603
1517
  a
1604
1518
  ]);
1605
- return /* @__PURE__ */ W(dt.Root, {
1519
+ return /* @__PURE__ */ U(gt.Root, {
1606
1520
  "data-slot": "slider",
1607
1521
  defaultValue: t,
1608
1522
  value: n,
@@ -1610,14 +1524,14 @@ function Di({ className: e, defaultValue: t, value: n, min: i = 0, max: a = 100,
1610
1524
  max: a,
1611
1525
  className: r("relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col", e),
1612
1526
  ...c,
1613
- children: [/* @__PURE__ */ U(dt.Track, {
1527
+ children: [/* @__PURE__ */ H(gt.Track, {
1614
1528
  "data-slot": "slider-track",
1615
1529
  className: r("bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"),
1616
- children: /* @__PURE__ */ U(dt.Range, {
1530
+ children: /* @__PURE__ */ H(gt.Range, {
1617
1531
  "data-slot": "slider-range",
1618
1532
  className: r("bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")
1619
1533
  })
1620
- }), Array.from({ length: l.length }, (e, t) => /* @__PURE__ */ U(dt.Thumb, {
1534
+ }), Array.from({ length: l.length }, (e, t) => /* @__PURE__ */ H(gt.Thumb, {
1621
1535
  "data-slot": "slider-thumb",
1622
1536
  "aria-label": o && l.length > 1 ? `${o} ${t + 1}` : o,
1623
1537
  "aria-labelledby": s,
@@ -1627,59 +1541,59 @@ function Di({ className: e, defaultValue: t, value: n, min: i = 0, max: a = 100,
1627
1541
  }
1628
1542
  //#endregion
1629
1543
  //#region src/components/ui/tree.tsx
1630
- var Oi = "/";
1631
- function ki(e, t) {
1632
- return e === "" ? t : `${e}${Oi}${t}`;
1544
+ var Ci = "/";
1545
+ function wi(e, t) {
1546
+ return e === "" ? t : `${e}${Ci}${t}`;
1633
1547
  }
1634
- function Ai(e) {
1548
+ function Ti(e) {
1635
1549
  return e.children !== void 0 && e.children.length > 0;
1636
1550
  }
1637
- function ji(e, t, n) {
1638
- if (!n || !Ai(e)) return {
1551
+ function Ei(e, t, n) {
1552
+ if (!n || !Ti(e)) return {
1639
1553
  node: e,
1640
1554
  ids: t
1641
1555
  };
1642
1556
  let r = e.children?.length === 1 ? e.children[0] : void 0;
1643
- return r === void 0 || !Ai(r) ? {
1557
+ return r === void 0 || !Ti(r) ? {
1644
1558
  node: e,
1645
1559
  ids: t
1646
- } : ji(r, [...t, r.id], n);
1560
+ } : Ei(r, [...t, r.id], n);
1647
1561
  }
1648
- function Mi(e, t, n, r = "", i = 1) {
1562
+ function Di(e, t, n, r = "", i = 1) {
1649
1563
  let a = [];
1650
1564
  for (let o of e) {
1651
- let e = ji(o, [o.id], n), s = e.ids.reduce((e, t) => ki(e, t), r), c = Ai(e.node);
1565
+ let e = Ei(o, [o.id], n), s = e.ids.reduce((e, t) => wi(e, t), r), c = Ti(e.node);
1652
1566
  a.push({
1653
1567
  key: s,
1654
1568
  node: e.node,
1655
1569
  ids: e.ids,
1656
1570
  level: i,
1657
1571
  hasChildren: c
1658
- }), c && t.has(s) && a.push(...Mi(e.node.children ?? [], t, n, s, i + 1));
1572
+ }), c && t.has(s) && a.push(...Di(e.node.children ?? [], t, n, s, i + 1));
1659
1573
  }
1660
1574
  return a;
1661
1575
  }
1662
- function Ni(e) {
1663
- return e.ids.length > 1 ? e.ids.join(Oi) : e.node.label;
1576
+ function Oi(e) {
1577
+ return e.ids.length > 1 ? e.ids.join(Ci) : e.node.label;
1664
1578
  }
1665
- function Pi({ nodes: e, label: t, expanded: n, defaultExpanded: i, onExpandedChange: a, selected: o, onSelect: s, renderAfter: c, compact: l = !0, className: u, ...d }) {
1666
- let [f, p] = B.useState(i ?? []), m = B.useMemo(() => new Set(n ?? f), [n, f]), h = B.useMemo(() => Mi(e, m, l), [
1579
+ function ki({ nodes: e, label: t, expanded: n, defaultExpanded: i, onExpandedChange: a, selected: o, onSelect: s, renderAfter: c, compact: l = !0, className: u, ...d }) {
1580
+ let [f, p] = z.useState(i ?? []), m = z.useMemo(() => new Set(n ?? f), [n, f]), h = z.useMemo(() => Di(e, m, l), [
1667
1581
  e,
1668
1582
  m,
1669
1583
  l
1670
- ]), [g, _] = B.useState(null), v = h.some((e) => e.key === g) ? g : h[0]?.key ?? null, y = B.useRef(null), b = B.useCallback((e) => {
1584
+ ]), [g, _] = z.useState(null), v = h.some((e) => e.key === g) ? g : h[0]?.key ?? null, y = z.useRef(null), ee = z.useCallback((e) => {
1671
1585
  n === void 0 && p(e), a?.(e);
1672
- }, [n, a]), x = B.useCallback((e, t) => {
1586
+ }, [n, a]), b = z.useCallback((e, t) => {
1673
1587
  let n = [...m];
1674
- t !== m.has(e) && b(t ? [...n, e] : n.filter((t) => t !== e));
1675
- }, [m, b]), S = B.useCallback((e) => {
1588
+ t !== m.has(e) && ee(t ? [...n, e] : n.filter((t) => t !== e));
1589
+ }, [m, ee]), x = z.useCallback((e) => {
1676
1590
  _(e), (y.current?.querySelector(`[data-tree-key="${CSS.escape(e)}"]`))?.focus();
1677
- }, []), C = B.useCallback((e) => {
1591
+ }, []), S = z.useCallback((e) => {
1678
1592
  let t = h.findIndex((e) => e.key === v), n = h[t];
1679
1593
  if (n === void 0) return;
1680
1594
  let r = (e) => {
1681
1595
  let t = h[e];
1682
- t !== void 0 && S(t.key);
1596
+ t !== void 0 && x(t.key);
1683
1597
  };
1684
1598
  switch (e.key) {
1685
1599
  case "ArrowDown":
@@ -1695,24 +1609,24 @@ function Pi({ nodes: e, label: t, expanded: n, defaultExpanded: i, onExpandedCha
1695
1609
  e.preventDefault(), r(h.length - 1);
1696
1610
  return;
1697
1611
  case "ArrowRight":
1698
- e.preventDefault(), n.hasChildren && !m.has(n.key) ? x(n.key, !0) : n.hasChildren && r(t + 1);
1612
+ e.preventDefault(), n.hasChildren && !m.has(n.key) ? b(n.key, !0) : n.hasChildren && r(t + 1);
1699
1613
  return;
1700
1614
  case "ArrowLeft":
1701
1615
  if (e.preventDefault(), n.hasChildren && m.has(n.key)) {
1702
- x(n.key, !1);
1616
+ b(n.key, !1);
1703
1617
  return;
1704
1618
  }
1705
1619
  for (let e = t - 1; e >= 0; --e) {
1706
1620
  let t = h[e];
1707
1621
  if (t !== void 0 && t.level < n.level) {
1708
- S(t.key);
1622
+ x(t.key);
1709
1623
  return;
1710
1624
  }
1711
1625
  }
1712
1626
  return;
1713
1627
  case "Enter":
1714
1628
  case " ":
1715
- e.preventDefault(), n.hasChildren && x(n.key, !m.has(n.key)), s?.(n.key, n.node);
1629
+ e.preventDefault(), n.hasChildren && b(n.key, !m.has(n.key)), s?.(n.key, n.node);
1716
1630
  return;
1717
1631
  default: return;
1718
1632
  }
@@ -1720,20 +1634,20 @@ function Pi({ nodes: e, label: t, expanded: n, defaultExpanded: i, onExpandedCha
1720
1634
  h,
1721
1635
  v,
1722
1636
  m,
1637
+ b,
1723
1638
  x,
1724
- S,
1725
1639
  s
1726
1640
  ]);
1727
- return /* @__PURE__ */ U("div", {
1641
+ return /* @__PURE__ */ H("div", {
1728
1642
  ref: y,
1729
1643
  role: "tree",
1730
1644
  "aria-label": t,
1731
1645
  className: r("flex flex-col text-sm", u),
1732
- onKeyDown: C,
1646
+ onKeyDown: S,
1733
1647
  ...d,
1734
1648
  children: h.map((e) => {
1735
1649
  let t = e.hasChildren && m.has(e.key);
1736
- return /* @__PURE__ */ W("div", {
1650
+ return /* @__PURE__ */ U("div", {
1737
1651
  role: "treeitem",
1738
1652
  "data-tree-key": e.key,
1739
1653
  "aria-level": e.level,
@@ -1746,16 +1660,16 @@ function Pi({ nodes: e, label: t, expanded: n, defaultExpanded: i, onExpandedCha
1746
1660
  _(e.key);
1747
1661
  },
1748
1662
  onClick: () => {
1749
- e.hasChildren && x(e.key, !t), s?.(e.key, e.node);
1663
+ e.hasChildren && b(e.key, !t), s?.(e.key, e.node);
1750
1664
  },
1751
1665
  children: [
1752
- /* @__PURE__ */ U(ae, {
1666
+ /* @__PURE__ */ H(fe, {
1753
1667
  "aria-hidden": "true",
1754
1668
  className: r("size-3.5 shrink-0 transition-transform", e.hasChildren ? "opacity-70" : "opacity-0", t && "rotate-90")
1755
1669
  }),
1756
- /* @__PURE__ */ U("span", {
1670
+ /* @__PURE__ */ H("span", {
1757
1671
  className: "min-w-0 truncate",
1758
- children: Ni(e)
1672
+ children: Oi(e)
1759
1673
  }),
1760
1674
  c?.(e.node, e.key)
1761
1675
  ]
@@ -1763,8 +1677,8 @@ function Pi({ nodes: e, label: t, expanded: n, defaultExpanded: i, onExpandedCha
1763
1677
  })
1764
1678
  });
1765
1679
  }
1766
- function Fi(e, t = {}) {
1767
- let n = t.separator ?? Oi, r = [], i = /* @__PURE__ */ new Map();
1680
+ function Ai(e, t = {}) {
1681
+ let n = t.separator ?? Ci, r = [], i = /* @__PURE__ */ new Map();
1768
1682
  for (let t of e) {
1769
1683
  let e = t.split(n).filter((e) => e !== ""), a = r, o = "";
1770
1684
  for (let t of e) {
@@ -1781,64 +1695,64 @@ function Fi(e, t = {}) {
1781
1695
  }
1782
1696
  //#endregion
1783
1697
  //#region src/components/ui/stepper.tsx
1784
- var Ii = Me({
1698
+ var ji = Ve({
1785
1699
  completedSteps: [],
1786
1700
  allDone: !1
1787
1701
  });
1788
- function Li({ completedSteps: e, children: t, className: n }) {
1702
+ function Mi({ completedSteps: e, children: t, className: n }) {
1789
1703
  let i = e.length > 0 && e.every(Boolean);
1790
- return /* @__PURE__ */ U(Ii.Provider, {
1704
+ return /* @__PURE__ */ H(ji.Provider, {
1791
1705
  value: {
1792
1706
  completedSteps: e,
1793
1707
  allDone: i
1794
1708
  },
1795
- children: /* @__PURE__ */ W("div", {
1709
+ children: /* @__PURE__ */ U("div", {
1796
1710
  className: r("relative", n),
1797
- children: [/* @__PURE__ */ U("div", { className: "stepper-line absolute left-3.75 top-4 bottom-4 w-0.5 rounded-full" }), t]
1711
+ children: [/* @__PURE__ */ H("div", { className: "stepper-line absolute left-3.75 top-4 bottom-4 w-0.5 rounded-full" }), t]
1798
1712
  })
1799
1713
  });
1800
1714
  }
1801
- function Ri({ index: e, children: t, className: n }) {
1802
- let { completedSteps: i } = Pe(Ii), a = i[e] ?? !1, o = e + 1;
1803
- return /* @__PURE__ */ W("div", {
1715
+ function Ni({ index: e, children: t, className: n }) {
1716
+ let { completedSteps: i } = Ue(ji), a = i[e] ?? !1, o = e + 1;
1717
+ return /* @__PURE__ */ U("div", {
1804
1718
  className: r("relative flex items-start gap-4 pb-8", n),
1805
- children: [/* @__PURE__ */ U("div", {
1719
+ children: [/* @__PURE__ */ H("div", {
1806
1720
  className: "flex flex-col items-center",
1807
- children: /* @__PURE__ */ U("div", {
1721
+ children: /* @__PURE__ */ H("div", {
1808
1722
  className: r("relative z-10 flex h-8 w-8 items-center justify-center rounded-full text-xs font-bold transition-all duration-500", a ? "bg-emerald-500 text-white shadow-md shadow-emerald-500/30 scale-105" : "bg-primary text-primary-foreground"),
1809
- children: a ? /* @__PURE__ */ U(Je, { className: "h-4 w-4" }) : o
1723
+ children: a ? /* @__PURE__ */ H(rt, { className: "h-4 w-4" }) : o
1810
1724
  })
1811
- }), /* @__PURE__ */ U("div", {
1725
+ }), /* @__PURE__ */ H("div", {
1812
1726
  className: "flex-1 pt-0.5",
1813
1727
  children: t
1814
1728
  })]
1815
1729
  });
1816
1730
  }
1817
- function zi({ readyLabel: e, pendingLabel: t, className: n }) {
1818
- let { allDone: i } = Pe(Ii), { t: a } = G(), o = e ?? a("common.readyToSubmit"), s = t ?? a("common.completeAllSteps");
1819
- return /* @__PURE__ */ W("div", {
1731
+ function Pi({ readyLabel: e, pendingLabel: t, className: n }) {
1732
+ let { allDone: i } = Ue(ji), { t: a } = W(), o = e ?? a("common.readyToSubmit"), s = t ?? a("common.completeAllSteps");
1733
+ return /* @__PURE__ */ U("div", {
1820
1734
  className: r("relative flex items-center gap-4", n),
1821
- children: [/* @__PURE__ */ U("div", {
1735
+ children: [/* @__PURE__ */ H("div", {
1822
1736
  className: "flex flex-col items-center",
1823
- children: /* @__PURE__ */ U("div", {
1737
+ children: /* @__PURE__ */ H("div", {
1824
1738
  className: r("relative z-10 flex h-8 w-8 items-center justify-center rounded-full transition-all duration-700", i ? "stepper-ready bg-emerald-500 text-white shadow-lg shadow-emerald-500/40 scale-110" : "bg-muted text-muted-foreground/40"),
1825
- children: /* @__PURE__ */ U(Ye, { className: "h-5 w-5" })
1739
+ children: /* @__PURE__ */ H(it, { className: "h-5 w-5" })
1826
1740
  })
1827
- }), /* @__PURE__ */ U("span", {
1828
- className: r("text-sm font-medium transition-all duration-500", i ? "text-emerald-600 dark:text-emerald-400" : "text-muted-foreground/40"),
1741
+ }), /* @__PURE__ */ H("span", {
1742
+ className: r("text-sm font-medium transition-all duration-500", i ? "text-emerald-700 dark:text-emerald-400" : "text-muted-foreground"),
1829
1743
  children: i ? o : s
1830
1744
  })]
1831
1745
  });
1832
1746
  }
1833
- Li.Step = Ri, Li.Completion = zi;
1747
+ Mi.Step = Ni, Mi.Completion = Pi;
1834
1748
  //#endregion
1835
1749
  //#region src/components/ui/switch.tsx
1836
- function Bi({ className: e, ...t }) {
1837
- return /* @__PURE__ */ U(rt.Root, {
1750
+ function Fi({ className: e, ...t }) {
1751
+ return /* @__PURE__ */ H(ft.Root, {
1838
1752
  "data-slot": "switch",
1839
1753
  className: r("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", e),
1840
1754
  ...t,
1841
- children: /* @__PURE__ */ U(rt.Thumb, {
1755
+ children: /* @__PURE__ */ H(ft.Thumb, {
1842
1756
  "data-slot": "switch-thumb",
1843
1757
  className: r("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")
1844
1758
  })
@@ -1846,100 +1760,70 @@ function Bi({ className: e, ...t }) {
1846
1760
  }
1847
1761
  //#endregion
1848
1762
  //#region src/components/ui/table.tsx
1849
- function Vi({ className: e, ...t }) {
1850
- return /* @__PURE__ */ U("div", {
1763
+ function Ii({ className: e, ...t }) {
1764
+ return /* @__PURE__ */ H("div", {
1851
1765
  "data-slot": "table-container",
1852
1766
  className: "relative w-full overflow-x-auto",
1853
- children: /* @__PURE__ */ U("table", {
1767
+ children: /* @__PURE__ */ H("table", {
1854
1768
  "data-slot": "table",
1855
1769
  className: r("w-full caption-bottom text-sm", e),
1856
1770
  ...t
1857
1771
  })
1858
1772
  });
1859
1773
  }
1860
- function Hi({ className: e, ...t }) {
1861
- return /* @__PURE__ */ U("thead", {
1774
+ function Li({ className: e, ...t }) {
1775
+ return /* @__PURE__ */ H("thead", {
1862
1776
  "data-slot": "table-header",
1863
1777
  className: r("[&_tr]:border-b", e),
1864
1778
  ...t
1865
1779
  });
1866
1780
  }
1867
- function Ui({ className: e, ...t }) {
1868
- return /* @__PURE__ */ U("tbody", {
1781
+ function Ri({ className: e, ...t }) {
1782
+ return /* @__PURE__ */ H("tbody", {
1869
1783
  "data-slot": "table-body",
1870
1784
  className: r("[&_tr:last-child]:border-0", e),
1871
1785
  ...t
1872
1786
  });
1873
1787
  }
1874
- function Wi({ className: e, ...t }) {
1875
- return /* @__PURE__ */ U("tfoot", {
1788
+ function zi({ className: e, ...t }) {
1789
+ return /* @__PURE__ */ H("tfoot", {
1876
1790
  "data-slot": "table-footer",
1877
1791
  className: r("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0", e),
1878
1792
  ...t
1879
1793
  });
1880
1794
  }
1881
- function Gi({ className: e, ...t }) {
1882
- return /* @__PURE__ */ U("tr", {
1795
+ function Bi({ className: e, ...t }) {
1796
+ return /* @__PURE__ */ H("tr", {
1883
1797
  "data-slot": "table-row",
1884
1798
  className: r("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors", e),
1885
1799
  ...t
1886
1800
  });
1887
1801
  }
1888
- function Ki({ className: e, ...t }) {
1889
- return /* @__PURE__ */ U("th", {
1802
+ function Vi({ className: e, ...t }) {
1803
+ return /* @__PURE__ */ H("th", {
1890
1804
  "data-slot": "table-head",
1891
1805
  className: r("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]", e),
1892
1806
  ...t
1893
1807
  });
1894
1808
  }
1895
- function qi({ className: e, ...t }) {
1896
- return /* @__PURE__ */ U("td", {
1809
+ function Hi({ className: e, ...t }) {
1810
+ return /* @__PURE__ */ H("td", {
1897
1811
  "data-slot": "table-cell",
1898
1812
  className: r("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]", e),
1899
1813
  ...t
1900
1814
  });
1901
1815
  }
1902
- function Ji({ className: e, ...t }) {
1903
- return /* @__PURE__ */ U("caption", {
1816
+ function Ui({ className: e, ...t }) {
1817
+ return /* @__PURE__ */ H("caption", {
1904
1818
  "data-slot": "table-caption",
1905
1819
  className: r("text-muted-foreground mt-4 text-sm", e),
1906
1820
  ...t
1907
1821
  });
1908
1822
  }
1909
1823
  //#endregion
1910
- //#region src/components/ui/tabs.tsx
1911
- function Yi({ className: e, ...t }) {
1912
- return /* @__PURE__ */ U(ht.Root, {
1913
- "data-slot": "tabs",
1914
- className: r("flex flex-col gap-2", e),
1915
- ...t
1916
- });
1917
- }
1918
- function Xi({ className: e, ...t }) {
1919
- return /* @__PURE__ */ U(ht.List, {
1920
- "data-slot": "tabs-list",
1921
- className: r("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]", e),
1922
- ...t
1923
- });
1924
- }
1925
- function Zi({ className: e, ...t }) {
1926
- return /* @__PURE__ */ U(ht.Trigger, {
1927
- "data-slot": "tabs-trigger",
1928
- className: r("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", e),
1929
- ...t
1930
- });
1931
- }
1932
- function Qi({ className: e, ...t }) {
1933
- return /* @__PURE__ */ U(ht.Content, {
1934
- "data-slot": "tabs-content",
1935
- className: r("flex-1 outline-none", e),
1936
- ...t
1937
- });
1938
- }
1939
- //#endregion
1940
1824
  //#region src/components/ui/textarea.tsx
1941
- function $i({ className: e, ...t }) {
1942
- return /* @__PURE__ */ U("textarea", {
1825
+ function Wi({ className: e, ...t }) {
1826
+ return /* @__PURE__ */ H("textarea", {
1943
1827
  "data-slot": "textarea",
1944
1828
  className: r("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", e),
1945
1829
  ...t
@@ -1947,7 +1831,7 @@ function $i({ className: e, ...t }) {
1947
1831
  }
1948
1832
  //#endregion
1949
1833
  //#region src/components/ui/toggle.tsx
1950
- var ea = Be("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap", {
1834
+ var Gi = Ye("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap", {
1951
1835
  variants: {
1952
1836
  variant: {
1953
1837
  default: "bg-transparent",
@@ -1964,10 +1848,10 @@ var ea = Be("inline-flex items-center justify-center gap-2 rounded-md text-sm fo
1964
1848
  size: "default"
1965
1849
  }
1966
1850
  });
1967
- function ta({ className: e, variant: t, size: n, ...i }) {
1968
- return /* @__PURE__ */ U(gt.Root, {
1851
+ function Ki({ className: e, variant: t, size: n, ...i }) {
1852
+ return /* @__PURE__ */ H(bt.Root, {
1969
1853
  "data-slot": "toggle",
1970
- className: r(ea({
1854
+ className: r(Gi({
1971
1855
  variant: t,
1972
1856
  size: n,
1973
1857
  className: e
@@ -1977,13 +1861,13 @@ function ta({ className: e, variant: t, size: n, ...i }) {
1977
1861
  }
1978
1862
  //#endregion
1979
1863
  //#region src/components/ui/toggle-group.tsx
1980
- var na = B.createContext({
1864
+ var qi = z.createContext({
1981
1865
  size: "default",
1982
1866
  variant: "default",
1983
1867
  spacing: 0
1984
1868
  });
1985
- function ra({ className: e, variant: t, size: n, spacing: i = 0, children: a, ...o }) {
1986
- return /* @__PURE__ */ U(_t.Root, {
1869
+ function Ji({ className: e, variant: t, size: n, spacing: i = 0, children: a, ...o }) {
1870
+ return /* @__PURE__ */ H(xt.Root, {
1987
1871
  "data-slot": "toggle-group",
1988
1872
  "data-variant": t,
1989
1873
  "data-size": n,
@@ -1991,7 +1875,7 @@ function ra({ className: e, variant: t, size: n, spacing: i = 0, children: a, ..
1991
1875
  style: { "--gap": i },
1992
1876
  className: r("group/toggle-group flex w-fit items-center gap-[--spacing(var(--gap))] rounded-md data-[spacing=default]:data-[variant=outline]:shadow-xs", e),
1993
1877
  ...o,
1994
- children: /* @__PURE__ */ U(na.Provider, {
1878
+ children: /* @__PURE__ */ H(qi.Provider, {
1995
1879
  value: {
1996
1880
  variant: t,
1997
1881
  size: n,
@@ -2001,14 +1885,14 @@ function ra({ className: e, variant: t, size: n, spacing: i = 0, children: a, ..
2001
1885
  })
2002
1886
  });
2003
1887
  }
2004
- function ia({ className: e, children: t, variant: n, size: i, ...a }) {
2005
- let o = B.useContext(na);
2006
- return /* @__PURE__ */ U(_t.Item, {
1888
+ function Yi({ className: e, children: t, variant: n, size: i, ...a }) {
1889
+ let o = z.useContext(qi);
1890
+ return /* @__PURE__ */ H(xt.Item, {
2007
1891
  "data-slot": "toggle-group-item",
2008
1892
  "data-variant": o.variant || n,
2009
1893
  "data-size": o.size || i,
2010
1894
  "data-spacing": o.spacing,
2011
- className: r(ea({
1895
+ className: r(Gi({
2012
1896
  variant: o.variant || n,
2013
1897
  size: o.size || i
2014
1898
  }), "w-auto min-w-0 shrink-0 px-3 focus:z-10 focus-visible:z-10", "data-[spacing=0]:rounded-none data-[spacing=0]:shadow-none data-[spacing=0]:first:rounded-l-md data-[spacing=0]:last:rounded-r-md data-[spacing=0]:data-[variant=outline]:border-l-0 data-[spacing=0]:data-[variant=outline]:first:border-l", e),
@@ -2018,11 +1902,11 @@ function ia({ className: e, children: t, variant: n, size: i, ...a }) {
2018
1902
  }
2019
1903
  //#endregion
2020
1904
  //#region src/components/ui/viglet-avatar.tsx
2021
- var aa = (e) => e <= .04045 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4, oa = (e) => e <= .0031308 ? 12.92 * e : 1.055 * e ** (1 / 2.4) - .055, X = (e) => [
2022
- aa((e >> 16 & 255) / 255),
2023
- aa((e >> 8 & 255) / 255),
2024
- aa((e & 255) / 255)
2025
- ], sa = {
1905
+ var Xi = (e) => e <= .04045 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4, Zi = (e) => e <= .0031308 ? 12.92 * e : 1.055 * e ** (1 / 2.4) - .055, X = (e) => [
1906
+ Xi((e >> 16 & 255) / 255),
1907
+ Xi((e >> 8 & 255) / 255),
1908
+ Xi((e & 255) / 255)
1909
+ ], Qi = {
2026
1910
  idle: {
2027
1911
  center: X(14916170),
2028
1912
  rim: X(11022874),
@@ -2048,8 +1932,8 @@ var aa = (e) => e <= .04045 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4, oa = (e)
2048
1932
  rim: X(11812382),
2049
1933
  glow: .42
2050
1934
  }
2051
- }, ca = 2;
2052
- function la(e) {
1935
+ }, $i = 2;
1936
+ function ea(e) {
2053
1937
  let t = (1 + Math.sqrt(5)) / 2, n = [
2054
1938
  -1,
2055
1939
  t,
@@ -2185,12 +2069,12 @@ function la(e) {
2185
2069
  count: u
2186
2070
  };
2187
2071
  }
2188
- var ua = la(ca), da = (e) => e < 0 ? 0 : e > 1 ? 1 : e, Z = (e, t, n) => e + (t - e) * n;
2189
- function fa(e, t, n) {
2190
- let r = da((n - e) / (t - e));
2072
+ var ta = ea($i), na = (e) => e < 0 ? 0 : e > 1 ? 1 : e, Z = (e, t, n) => e + (t - e) * n;
2073
+ function ra(e, t, n) {
2074
+ let r = na((n - e) / (t - e));
2191
2075
  return r * r * (3 - 2 * r);
2192
2076
  }
2193
- var pa = .78, ma = [
2077
+ var ia = .78, aa = [
2194
2078
  [
2195
2079
  .59719,
2196
2080
  .35458,
@@ -2206,7 +2090,7 @@ var pa = .78, ma = [
2206
2090
  .13383,
2207
2091
  .83777
2208
2092
  ]
2209
- ], ha = [
2093
+ ], oa = [
2210
2094
  [
2211
2095
  1.60475,
2212
2096
  -.53108,
@@ -2222,70 +2106,70 @@ var pa = .78, ma = [
2222
2106
  -.07276,
2223
2107
  1.07602
2224
2108
  ]
2225
- ], ga = (e) => (e * (e + .0245786) - 90537e-9) / (e * (.983729 * e + .432951) + .238081);
2226
- function _a(e, t, n, r) {
2227
- let i = t * pa, a = n * pa, o = r * pa;
2109
+ ], sa = (e) => (e * (e + .0245786) - 90537e-9) / (e * (.983729 * e + .432951) + .238081);
2110
+ function ca(e, t, n, r) {
2111
+ let i = t * ia, a = n * ia, o = r * ia;
2228
2112
  for (let t = 0; t < 3; t += 1) {
2229
- let [n, r, s] = ma[t];
2230
- e[t] = ga(n * i + r * a + s * o);
2113
+ let [n, r, s] = aa[t];
2114
+ e[t] = sa(n * i + r * a + s * o);
2231
2115
  }
2232
2116
  let [s, c, l] = e;
2233
2117
  for (let t = 0; t < 3; t += 1) {
2234
- let [n, r, i] = ha[t];
2235
- e[t] = Math.round(oa(da(n * s + r * c + i * l)) * 255);
2118
+ let [n, r, i] = oa[t];
2119
+ e[t] = Math.round(Zi(na(n * s + r * c + i * l)) * 255);
2236
2120
  }
2237
2121
  }
2238
2122
  function Q(e) {
2239
- let t = e * pa;
2240
- return Math.round(oa(da(ga(t))) * 255);
2123
+ let t = e * ia;
2124
+ return Math.round(Zi(na(sa(t))) * 255);
2241
2125
  }
2242
- var va = 60, ya = "rgba(255,214,150,0.34)";
2243
- function ba(e) {
2126
+ var la = 60, ua = "rgba(255,214,150,0.34)";
2127
+ function da(e) {
2244
2128
  let t = Math.abs(Math.trunc(e)) % 2147483646 + 1;
2245
2129
  return () => (t = t * 16807 % 2147483647, (t - 1) / 2147483646);
2246
2130
  }
2247
- var xa = 1618033;
2248
- function Sa({ state: e = "idle", size: t = 128, compact: n = !1, activity: r = 0, unread: i = !1, paused: a = !1, seed: o = xa, className: s, style: c }) {
2249
- let l = H(null), u = H(e), d = H(0), f = H(n), p = H(i), m = H(a), h = H(-Infinity), g = H(null);
2250
- return V(() => {
2131
+ var fa = 1618033;
2132
+ function pa({ state: e = "idle", size: t = 128, compact: n = !1, activity: r = 0, unread: i = !1, paused: a = !1, seed: o = fa, className: s, style: c }) {
2133
+ let l = V(null), u = V(e), d = V(0), f = V(n), p = V(i), m = V(a), h = V(-Infinity), g = V(null);
2134
+ return B(() => {
2251
2135
  u.current = e, d.current = typeof performance > "u" ? 0 : performance.now(), g.current?.();
2252
- }, [e]), V(() => {
2136
+ }, [e]), B(() => {
2253
2137
  f.current = n, g.current?.();
2254
- }, [n]), V(() => {
2138
+ }, [n]), B(() => {
2255
2139
  p.current = i, g.current?.();
2256
- }, [i]), V(() => {
2140
+ }, [i]), B(() => {
2257
2141
  m.current = a, g.current?.();
2258
- }, [a]), V(() => {
2142
+ }, [a]), B(() => {
2259
2143
  r && (h.current = performance.now(), g.current?.());
2260
- }, [r]), V(() => {
2144
+ }, [r]), B(() => {
2261
2145
  let r = l.current;
2262
2146
  if (!r) return;
2263
2147
  let i = r.getContext("2d");
2264
2148
  if (!i) return;
2265
2149
  let a = i, s = typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches, c = Math.min(window.devicePixelRatio || 1, 2);
2266
2150
  r.width = Math.round(t * c), r.height = Math.round(t * c), a.scale(c, c);
2267
- let _ = t / 2, v = t / 2, y = ba(o), b = Array.from({ length: 34 }, () => ({
2151
+ let _ = t / 2, v = t / 2, y = da(o), ee = Array.from({ length: 34 }, () => ({
2268
2152
  x: (y() - .5) * 1.9,
2269
2153
  y: y() * 2.8 - .4,
2270
2154
  z: (y() - .5) * 1.9,
2271
2155
  speed: .05 + y() * .09
2272
- })), x = {
2273
- center: [...sa[e].center],
2274
- rim: [...sa[e].rim],
2275
- glow: sa[e].glow
2276
- }, S = 0, C = va, w = 0, T = 0, ee = performance.now(), E = 0, D = .34, O = n ? 7.4 : 9, k = -Infinity, A = {
2156
+ })), b = {
2157
+ center: [...Qi[e].center],
2158
+ rim: [...Qi[e].rim],
2159
+ glow: Qi[e].glow
2160
+ }, x = 0, S = la, C = 0, w = 0, T = performance.now(), te = 0, E = .34, D = n ? 7.4 : 9, O = -Infinity, k = {
2277
2161
  x: 0,
2278
2162
  y: 0
2279
- }, j = {
2163
+ }, A = {
2280
2164
  x: 0,
2281
2165
  y: 0
2282
- }, M = (e) => {
2283
- A.x = e.clientX / window.innerWidth * 2 - 1, A.y = -(e.clientY / window.innerHeight * 2 - 1), k = performance.now(), C = va, S ||= requestAnimationFrame(ie);
2284
- }, N = t * (n ? .27 : .24), P = (e, t, n, r) => {
2285
- let i = O / (O - n * r);
2286
- return [_ + e * r * i * N, v - t * r * i * N];
2166
+ }, j = (e) => {
2167
+ k.x = e.clientX / window.innerWidth * 2 - 1, k.y = -(e.clientY / window.innerHeight * 2 - 1), O = performance.now(), S = la, x ||= requestAnimationFrame(ie);
2168
+ }, M = t * (n ? .27 : .24), N = (e, t, n, r) => {
2169
+ let i = D / (D - n * r);
2170
+ return [_ + e * r * i * M, v - t * r * i * M];
2287
2171
  };
2288
- function te(e, t, n, r) {
2172
+ function P(e, t, n, r) {
2289
2173
  let i = a.createRadialGradient(e, t, 0, e, t, Math.max(n, .01));
2290
2174
  for (let [e, t] of r) i.addColorStop(e, t);
2291
2175
  return i;
@@ -2295,67 +2179,67 @@ function Sa({ state: e = "idle", size: t = 128, compact: n = !1, activity: r = 0
2295
2179
  a.save(), a.globalCompositeOperation = "lighter", a.strokeStyle = r, a.lineWidth = n, a.lineCap = "round", a.beginPath();
2296
2180
  let s = !1;
2297
2181
  for (let n = 0; n <= 96; n += 1) {
2298
- let r = n / 96 * Math.PI * 2, i = Math.cos(r) * t, c = Math.sin(r) * t, l = c * Math.cos(D), u = c * Math.sin(D), d = u >= 0 ? 1 : -1, f = !o || r >= o[0] && r <= o[1];
2182
+ let r = n / 96 * Math.PI * 2, i = Math.cos(r) * t, c = Math.sin(r) * t, l = c * Math.cos(E), u = c * Math.sin(E), d = u >= 0 ? 1 : -1, f = !o || r >= o[0] && r <= o[1];
2299
2183
  if (d !== e || !f) {
2300
2184
  s = !1;
2301
2185
  continue;
2302
2186
  }
2303
- let [p, m] = P(i, l, u, 1);
2187
+ let [p, m] = N(i, l, u, 1);
2304
2188
  s ? a.lineTo(p, m) : (a.moveTo(p, m), s = !0);
2305
2189
  }
2306
2190
  a.globalAlpha = e === -1 ? i * .32 : i, a.stroke(), a.restore();
2307
2191
  }
2308
- let F = new Float64Array(ua.points.length), re = [
2192
+ let F = new Float64Array(ta.points.length), re = [
2309
2193
  0,
2310
2194
  0,
2311
2195
  0
2312
2196
  ];
2313
2197
  function ie(e) {
2314
- S = 0;
2315
- let n = a, r = Math.min((e - ee) / 1e3, .05);
2316
- ee = e;
2317
- let i = u.current, o = sa[i], c = f.current, l = m.current || s, g = l ? 0 : e / 1e3, M = l ? 0 : (e - d.current) / 1e3, ae = l ? Infinity : (e - h.current) / 1e3, oe = !l && e - k < 1200;
2318
- T = l ? 0 : Z(T, +!!oe, oe ? .05 : .02), l || (w += r * (.25 + T * .75));
2319
- let se = c ? 7.4 : 9, ce = !l && Math.abs(O - se) > .01;
2320
- O = l ? se : Z(O, se, .12), (i !== "idle" || ae < 2.2 || p.current || T > .004 || ce) && (C = va);
2198
+ x = 0;
2199
+ let n = a, r = Math.min((e - T) / 1e3, .05);
2200
+ T = e;
2201
+ let i = u.current, o = Qi[i], c = f.current, l = m.current || s, g = l ? 0 : e / 1e3, j = l ? 0 : (e - d.current) / 1e3, ae = l ? Infinity : (e - h.current) / 1e3, oe = !l && e - O < 1200;
2202
+ w = l ? 0 : Z(w, +!!oe, oe ? .05 : .02), l || (C += r * (.25 + w * .75));
2203
+ let se = c ? 7.4 : 9, ce = !l && Math.abs(D - se) > .01;
2204
+ D = l ? se : Z(D, se, .12), (i !== "idle" || ae < 2.2 || p.current || w > .004 || ce) && (S = la);
2321
2205
  let le = l ? 1 : .06;
2322
- for (let e = 0; e < 3; e += 1) x.center[e] = Z(x.center[e], o.center[e], le), x.rim[e] = Z(x.rim[e], o.rim[e], le);
2206
+ for (let e = 0; e < 3; e += 1) b.center[e] = Z(b.center[e], o.center[e], le), b.rim[e] = Z(b.rim[e], o.rim[e], le);
2323
2207
  let ue = o.glow, de = 1;
2324
- ue += Math.sin(w * .9) * .05 * T;
2325
- let fe = ae < 1.8 ? Math.sin(da(ae / 1.8) * Math.PI) * .14 : 0;
2208
+ ue += Math.sin(C * .9) * .05 * w;
2209
+ let fe = ae < 1.8 ? Math.sin(na(ae / 1.8) * Math.PI) * .14 : 0;
2326
2210
  if (ue += fe, i === "working" && (ue += Math.sin(g * 2.2) * .06), i === "success") {
2327
- let e = da(M / 1.4);
2328
- de = 1 + Math.sin((1 - (1 - e) ** 3) * Math.PI) * .06, M > 1.4 && (ue = Z(o.glow, sa.idle.glow + .25, da((M - 1.4) / 2)));
2211
+ let e = na(j / 1.4);
2212
+ de = 1 + Math.sin((1 - (1 - e) ** 3) * Math.PI) * .06, j > 1.4 && (ue = Z(o.glow, Qi.idle.glow + .25, na((j - 1.4) / 2)));
2329
2213
  }
2330
- i === "error" && (de = .94), x.glow = Z(x.glow, ue, l ? 1 : .08);
2331
- let I = x.glow;
2332
- l || (E += r * (.06 + T * .1), D = .34 + Math.sin(w * .6) * .12, j.x = Z(j.x, A.x, .02), j.y = Z(j.y, A.y, .02));
2333
- let pe = l ? 0 : Math.sin(w * .35) * .05 + j.x * .12, me = l ? 0 : -j.y * .08, L = de * (1 + fe * .08);
2334
- n.clearRect(0, 0, t, t), n.fillStyle = te(_, v, N * 1.95, [
2214
+ i === "error" && (de = .94), b.glow = Z(b.glow, ue, l ? 1 : .08);
2215
+ let I = b.glow;
2216
+ l || (te += r * (.06 + w * .1), E = .34 + Math.sin(C * .6) * .12, A.x = Z(A.x, k.x, .02), A.y = Z(A.y, k.y, .02));
2217
+ let pe = l ? 0 : Math.sin(C * .35) * .05 + A.x * .12, me = l ? 0 : -A.y * .08, L = de * (1 + fe * .08);
2218
+ n.clearRect(0, 0, t, t), n.fillStyle = P(_, v, M * 1.95, [
2335
2219
  [0, "rgba(9,11,15,0.5)"],
2336
2220
  [.52, "rgba(9,11,15,0.3)"],
2337
2221
  [.8, "rgba(9,11,15,0.08)"],
2338
2222
  [1, "rgba(9,11,15,0)"]
2339
2223
  ]), n.fillRect(0, 0, t, t), n.save(), n.globalCompositeOperation = "lighter";
2340
- let he = N * (1.5 + I * .5) * L, ge = .06 + I * .24;
2341
- n.fillStyle = te(_, v, he, [
2342
- [0, `rgba(${Q(x.center[0])},${Q(x.center[1])},${Q(x.center[2])},${ge * .5})`],
2343
- [.34, `rgba(${Q(x.rim[0] * 1.4)},${Q(x.rim[1] * 1.4)},${Q(x.rim[2] * 1.4)},${ge * .2})`],
2224
+ let he = M * (1.5 + I * .5) * L, ge = .06 + I * .24;
2225
+ n.fillStyle = P(_, v, he, [
2226
+ [0, `rgba(${Q(b.center[0])},${Q(b.center[1])},${Q(b.center[2])},${ge * .5})`],
2227
+ [.34, `rgba(${Q(b.rim[0] * 1.4)},${Q(b.rim[1] * 1.4)},${Q(b.rim[2] * 1.4)},${ge * .2})`],
2344
2228
  [1, "rgba(160,50,10,0)"]
2345
2229
  ]), n.fillRect(0, 0, t, t), n.restore();
2346
2230
  let _e = i === "working" ? .55 : p.current ? .26 + Math.sin(g * .8) * .07 : 0, ve = g * 1.6 % (Math.PI * 2), ye = 1.5 * L, be = Math.max(1, t * .007), xe = Math.max(1, t * .011), Se = (e) => {
2347
2231
  ne(e, ye, be, "rgba(255,224,160,1)", _e * .45), i === "working" && ne(e, ye, xe, "rgba(255,236,190,1)", .75, [ve, ve + 1.1]);
2348
2232
  };
2349
2233
  Se(-1), n.save(), n.globalCompositeOperation = "lighter";
2350
- let Ce = l ? 0 : i === "success" || i === "attention" ? 1 : Math.max(T, .12), we = .08 + I * .4;
2351
- n.fillStyle = `rgba(${Q(x.center[0])},${Q(x.center[1])},${Q(x.center[2])},${we})`;
2352
- for (let e of b) {
2234
+ let Ce = l ? 0 : i === "success" || i === "attention" ? 1 : Math.max(w, .12), we = .08 + I * .4;
2235
+ n.fillStyle = `rgba(${Q(b.center[0])},${Q(b.center[1])},${Q(b.center[2])},${we})`;
2236
+ for (let e of ee) {
2353
2237
  e.y += e.speed * r * (.4 + I) * Ce, e.y > 2.4 && (e.y = -.4, e.x = (y() - .5) * 1.9, e.z = (y() - .5) * 1.9);
2354
- let [i, a] = P(e.x, e.y, e.z, 1), o = Math.max(t * .005, 1) * (e.z > 0 ? 1 : .7);
2238
+ let [i, a] = N(e.x, e.y, e.z, 1), o = Math.max(t * .005, 1) * (e.z > 0 ? 1 : .7);
2355
2239
  n.beginPath(), n.arc(i, a, o, 0, Math.PI * 2), n.fill();
2356
2240
  }
2357
2241
  n.restore();
2358
- let Te = Math.cos(E + pe), Ee = Math.sin(E + pe), R = Math.cos(.32 + me), De = Math.sin(.32 + me), { points: Oe, grain: ke, count: Ae } = ua;
2242
+ let Te = Math.cos(te + pe), Ee = Math.sin(te + pe), R = Math.cos(.32 + me), De = Math.sin(.32 + me), { points: Oe, grain: ke, count: Ae } = ta;
2359
2243
  for (let e = 0; e < Oe.length; e += 3) {
2360
2244
  let t = Oe[e], n = Oe[e + 1], r = Oe[e + 2], i = t * Te + r * Ee, a = -t * Ee + r * Te, o = n * R - a * De, s = n * De + a * R;
2361
2245
  F[e] = i, F[e + 1] = o, F[e + 2] = s;
@@ -2363,41 +2247,41 @@ function Sa({ state: e = "idle", size: t = 128, compact: n = !1, activity: r = 0
2363
2247
  for (let e = 0; e < Ae; e += 1) {
2364
2248
  let t = e * 9, r = t + 3, i = t + 6, a = F[r] - F[t], o = F[r + 1] - F[t + 1], s = F[r + 2] - F[t + 2], c = F[i] - F[t], l = F[i + 1] - F[t + 1], u = F[i + 2] - F[t + 2], d = o * u - s * l, f = s * c - a * u, p = a * l - o * c;
2365
2249
  if (p <= 0) continue;
2366
- let m = 1 - p / Math.hypot(d, f, p), h = ke[e], g = .9 + .14 * h + .06 * Math.sin(w * .8 + h * 6.28), _ = fa(.08, .82, m), v = fa(.66, 0, m) * I * .62, y = 1 - .18 * fa(.82, 1, m);
2367
- _a(re, (Z(x.center[0], x.rim[0], _) * g + v) * y, (Z(x.center[1], x.rim[1], _) * g + v * .72) * y, (Z(x.center[2], x.rim[2], _) * g + v * .3) * y);
2368
- let b = `rgb(${re[0]},${re[1]},${re[2]})`, [S, C] = P(F[t], F[t + 1], F[t + 2], L), [T, ee] = P(F[r], F[r + 1], F[r + 2], L), [E, D] = P(F[i], F[i + 1], F[i + 2], L);
2369
- n.beginPath(), n.moveTo(S, C), n.lineTo(T, ee), n.lineTo(E, D), n.closePath(), n.fillStyle = b, n.fill(), n.strokeStyle = ya, n.lineWidth = 1, n.stroke();
2250
+ let m = 1 - p / Math.hypot(d, f, p), h = ke[e], g = .9 + .14 * h + .06 * Math.sin(C * .8 + h * 6.28), _ = ra(.08, .82, m), v = ra(.66, 0, m) * I * .62, y = 1 - .18 * ra(.82, 1, m);
2251
+ ca(re, (Z(b.center[0], b.rim[0], _) * g + v) * y, (Z(b.center[1], b.rim[1], _) * g + v * .72) * y, (Z(b.center[2], b.rim[2], _) * g + v * .3) * y);
2252
+ let ee = `rgb(${re[0]},${re[1]},${re[2]})`, [x, S] = N(F[t], F[t + 1], F[t + 2], L), [w, T] = N(F[r], F[r + 1], F[r + 2], L), [te, E] = N(F[i], F[i + 1], F[i + 2], L);
2253
+ n.beginPath(), n.moveTo(x, S), n.lineTo(w, T), n.lineTo(te, E), n.closePath(), n.fillStyle = ee, n.fill(), n.strokeStyle = ua, n.lineWidth = 1, n.stroke();
2370
2254
  }
2371
2255
  Se(1), n.save(), n.globalCompositeOperation = "lighter";
2372
- let z = N * .34 * L;
2373
- if (n.fillStyle = te(_ - N * .38 * L, v - N * .44 * L, z, [
2256
+ let je = M * .34 * L;
2257
+ if (n.fillStyle = P(_ - M * .38 * L, v - M * .44 * L, je, [
2374
2258
  [0, `rgba(255,246,228,${.05 + I * .09})`],
2375
2259
  [.5, `rgba(255,240,214,${.015 + I * .03})`],
2376
2260
  [1, "rgba(255,240,214,0)"]
2377
- ]), n.fillRect(0, 0, t, t), i === "success" && M < 2.6) {
2378
- let e = M / 2.6, n = 1.05 + e * 1.5, r = Math.max(1, t * .009), i = .65 * (1 - e);
2261
+ ]), n.fillRect(0, 0, t, t), i === "success" && j < 2.6) {
2262
+ let e = j / 2.6, n = 1.05 + e * 1.5, r = Math.max(1, t * .009), i = .65 * (1 - e);
2379
2263
  ne(-1, n, r, "rgba(255,241,192,1)", i), ne(1, n, r, "rgba(255,241,192,1)", i);
2380
2264
  }
2381
2265
  if (n.restore(), i === "attention") {
2382
- let e = da(M / 2.4), r = Z(-1.9, .25, 1 - (1 - e) ** 2), i = e < 1 ? .7 : .7 * Math.max(0, 1 - (M - 2.4) / 2.5);
2266
+ let e = na(j / 2.4), r = Z(-1.9, .25, 1 - (1 - e) ** 2), i = e < 1 ? .7 : .7 * Math.max(0, 1 - (j - 2.4) / 2.5);
2383
2267
  if (i > .002) {
2384
2268
  n.save(), n.globalCompositeOperation = "lighter", n.globalAlpha = i, n.strokeStyle = "rgba(255,230,160,1)", n.lineWidth = Math.max(1, t * .009);
2385
- let [, e] = P(0, r, 0, 1);
2386
- n.beginPath(), n.ellipse(_, e, N * 1.6, N * .42, 0, 0, Math.PI * 2), n.stroke(), n.restore();
2269
+ let [, e] = N(0, r, 0, 1);
2270
+ n.beginPath(), n.ellipse(_, e, M * 1.6, M * .42, 0, 0, Math.PI * 2), n.stroke(), n.restore();
2387
2271
  }
2388
2272
  }
2389
2273
  if (!c) {
2390
- let e = v + N * 1.5;
2391
- n.save(), n.globalCompositeOperation = "lighter", n.fillStyle = te(_, e, N * 1.5, [[0, `rgba(220,140,60,${.1 + I * .2})`], [1, "rgba(220,140,60,0)"]]), n.fillRect(0, 0, t, t), n.restore();
2274
+ let e = v + M * 1.5;
2275
+ n.save(), n.globalCompositeOperation = "lighter", n.fillStyle = P(_, e, M * 1.5, [[0, `rgba(220,140,60,${.1 + I * .2})`], [1, "rgba(220,140,60,0)"]]), n.fillRect(0, 0, t, t), n.restore();
2392
2276
  }
2393
- l || (--C, C > 0 && (S = requestAnimationFrame(ie)));
2277
+ l || (--S, S > 0 && (x = requestAnimationFrame(ie)));
2394
2278
  }
2395
2279
  return g.current = () => {
2396
- C = va, ee = performance.now(), S ||= requestAnimationFrame(ie);
2397
- }, s || window.addEventListener("mousemove", M, { passive: !0 }), ie(performance.now()), () => {
2398
- g.current = null, S && cancelAnimationFrame(S), window.removeEventListener("mousemove", M);
2280
+ S = la, T = performance.now(), x ||= requestAnimationFrame(ie);
2281
+ }, s || window.addEventListener("mousemove", j, { passive: !0 }), ie(performance.now()), () => {
2282
+ g.current = null, x && cancelAnimationFrame(x), window.removeEventListener("mousemove", j);
2399
2283
  };
2400
- }, [t, o]), /* @__PURE__ */ U("canvas", {
2284
+ }, [t, o]), /* @__PURE__ */ H("canvas", {
2401
2285
  ref: l,
2402
2286
  "aria-hidden": "true",
2403
2287
  "data-state": e,
@@ -2412,61 +2296,61 @@ function Sa({ state: e = "idle", size: t = 128, compact: n = !1, activity: r = 0
2412
2296
  }
2413
2297
  //#endregion
2414
2298
  //#region src/components/ui/viglet-assistant.tsx
2415
- var Ca = {
2299
+ var ma = {
2416
2300
  idle: "assistant.idle",
2417
2301
  working: "assistant.working",
2418
2302
  success: "assistant.success",
2419
2303
  error: "assistant.error",
2420
2304
  attention: "assistant.attention"
2421
- }, wa = {
2305
+ }, ha = {
2422
2306
  idle: "text-muted-foreground",
2423
- working: "text-amber-600 dark:text-amber-400",
2307
+ working: "text-amber-700 dark:text-amber-400",
2424
2308
  success: "text-emerald-700 dark:text-emerald-400",
2425
2309
  error: "text-destructive",
2426
- attention: "text-amber-700 dark:text-amber-300"
2427
- }, Ta = 3;
2428
- function Ea(e) {
2310
+ attention: "text-amber-800 dark:text-amber-300"
2311
+ }, ga = 3;
2312
+ function _a(e) {
2429
2313
  return e.role === "report";
2430
2314
  }
2431
- function Da() {
2315
+ function va() {
2432
2316
  return typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
2433
2317
  }
2434
- function Oa({ text: e, className: t }) {
2435
- let [n, r] = Ie(0);
2436
- return V(() => {
2437
- let t = e.length;
2438
- if (t === 0) return;
2439
- if (Da()) {
2440
- let e = setTimeout(() => r(t), 0);
2318
+ function ya({ text: e, still: t = !1, className: n }) {
2319
+ let [r, i] = Ge(0);
2320
+ return B(() => {
2321
+ let n = e.length;
2322
+ if (n === 0) return;
2323
+ if (t || va()) {
2324
+ let e = setTimeout(() => i(n), 0);
2441
2325
  return () => clearTimeout(e);
2442
2326
  }
2443
- let n = Math.max(14, Math.min(34, 1400 / t)), i = setInterval(() => {
2444
- r((e) => e >= t ? (clearInterval(i), e) : e + 1);
2445
- }, n);
2446
- return () => clearInterval(i);
2447
- }, [e]), /* @__PURE__ */ U("span", {
2448
- className: t,
2449
- children: /* @__PURE__ */ W("span", {
2327
+ let r = Math.max(14, Math.min(34, 1400 / n)), a = setInterval(() => {
2328
+ i((e) => e >= n ? (clearInterval(a), e) : e + 1);
2329
+ }, r);
2330
+ return () => clearInterval(a);
2331
+ }, [e, t]), /* @__PURE__ */ H("span", {
2332
+ className: n,
2333
+ children: /* @__PURE__ */ U("span", {
2450
2334
  "aria-hidden": "true",
2451
- children: [e.slice(0, n), n < e.length && /* @__PURE__ */ U("span", { className: "ml-px inline-block h-[0.95em] w-px translate-y-[0.15em] bg-current align-baseline motion-safe:animate-pulse" })]
2335
+ children: [e.slice(0, r), r < e.length && /* @__PURE__ */ H("span", { className: "ml-px inline-block h-[0.95em] w-px translate-y-[0.15em] bg-current align-baseline motion-safe:animate-pulse" })]
2452
2336
  })
2453
2337
  });
2454
2338
  }
2455
- function ka({ at: e, locale: t }) {
2339
+ function ba({ at: e, locale: t }) {
2456
2340
  let n = new Date(e);
2457
2341
  if (Number.isNaN(n.getTime())) return null;
2458
2342
  let r = n.toDateString() === (/* @__PURE__ */ new Date()).toDateString(), i = new Intl.DateTimeFormat(t, r ? { timeStyle: "short" } : {
2459
2343
  dateStyle: "short",
2460
2344
  timeStyle: "short"
2461
2345
  }).format(n);
2462
- return /* @__PURE__ */ U("time", {
2346
+ return /* @__PURE__ */ H("time", {
2463
2347
  dateTime: n.toISOString(),
2464
2348
  className: "text-muted-foreground",
2465
2349
  children: i
2466
2350
  });
2467
2351
  }
2468
- function Aa({ state: e, caption: t, messages: n, busy: r = !1, onSend: i, open: a, defaultOpen: o = !1, onOpenChange: c, unread: l, onRead: u, onDismiss: d, activity: f = 0, inline: p = !1, className: m }) {
2469
- let { t: h, i18n: g } = G(), _ = pe(), [v, y] = Ie(o), [b, x] = Ie(""), S = H(null), C = n ?? [], w = C.filter(Ea), T = w.filter((e) => !e.read), ee = T[T.length - 1], E = a ?? v, D = typeof i == "function", O = e ?? ee?.tone ?? "idle", k = t === void 0 ? ee?.text ?? null : t, A = typeof l == "number" ? l : T.length, j = l === !0 || A > 0, [M, N] = Ie({
2352
+ function xa({ state: e, caption: t, messages: n, busy: r = !1, onSend: i, open: a, defaultOpen: o = !1, onOpenChange: c, unread: l, onRead: u, onDismiss: d, activity: f = 0, inline: p = !1, paused: m = !1, className: h }) {
2353
+ let { t: g, i18n: _ } = W(), v = ye(), [y, ee] = Ge(o), [b, x] = Ge(""), S = V(null), C = n ?? [], w = C.filter(_a), T = w.filter((e) => !e.read), te = T[T.length - 1], E = a ?? y, D = typeof i == "function", O = e ?? te?.tone ?? "idle", k = t === void 0 ? te?.text ?? null : t, A = typeof l == "number" ? l : T.length, j = l === !0 || A > 0, [M, N] = Ge({
2470
2354
  source: k,
2471
2355
  text: E ? "" : k ?? ""
2472
2356
  });
@@ -2476,139 +2360,142 @@ function Aa({ state: e, caption: t, messages: n, busy: r = !1, onSend: i, open:
2476
2360
  });
2477
2361
  let P = (e) => {
2478
2362
  if (e !== E) for (let e of T) u?.(e.id);
2479
- a === void 0 && y(e), c?.(e);
2363
+ a === void 0 && ee(e), c?.(e);
2480
2364
  };
2481
- V(() => {
2365
+ B(() => {
2482
2366
  let e = S.current;
2483
2367
  e && (e.scrollTop = e.scrollHeight);
2484
2368
  }, [n, r]);
2485
- let te = () => {
2369
+ let ne = () => {
2486
2370
  let e = b.trim();
2487
2371
  !e || r || !i || (i(e), x(""));
2488
- }, ne = E ? h("assistant.collapse") : [h("assistant.open"), A > 0 ? h("assistant.unreadCount", { count: A }) : null].filter(Boolean).join(", ");
2489
- return /* @__PURE__ */ W("div", {
2372
+ }, F = E ? g("assistant.collapse") : [g("assistant.open"), A > 0 ? g("assistant.unreadCount", { count: A }) : null].filter(Boolean).join(", ");
2373
+ return /* @__PURE__ */ U("div", {
2490
2374
  className: [
2491
- p || _ ? "relative" : "fixed bottom-5 right-5 z-50",
2492
- _ ? "pointer-events-auto" : "",
2375
+ p || v ? "relative" : "fixed bottom-5 right-5 z-50",
2376
+ v ? "pointer-events-auto" : "",
2493
2377
  "flex flex-col",
2494
2378
  E ? "w-[min(22.5rem,calc(100vw-2.5rem))] rounded-2xl border border-border bg-popover p-4 text-popover-foreground shadow-2xl" : "w-[8.25rem] items-end",
2495
- m ?? ""
2379
+ h ?? ""
2496
2380
  ].join(" "),
2497
2381
  onKeyDown: (e) => {
2498
2382
  e.key === "Escape" && E && P(!1);
2499
2383
  },
2500
2384
  children: [
2501
- /* @__PURE__ */ U("span", {
2385
+ /* @__PURE__ */ H("span", {
2502
2386
  role: "status",
2503
2387
  "aria-live": "polite",
2504
2388
  className: "sr-only",
2505
2389
  children: M.text
2506
2390
  }),
2507
- !E && k && /* @__PURE__ */ U(Oa, {
2391
+ !E && k && /* @__PURE__ */ H(ya, {
2508
2392
  text: k,
2393
+ still: m,
2509
2394
  className: "pointer-events-none absolute bottom-11 right-[7.75rem] w-max max-w-[min(23rem,calc(100vw-9rem))] text-right text-sm font-semibold leading-snug text-foreground drop-shadow-sm"
2510
2395
  }, k),
2511
- /* @__PURE__ */ W("div", {
2396
+ /* @__PURE__ */ U("div", {
2512
2397
  className: "flex flex-none items-center gap-3",
2513
2398
  children: [
2514
- /* @__PURE__ */ W("button", {
2399
+ /* @__PURE__ */ U("button", {
2515
2400
  type: "button",
2516
- "aria-label": ne,
2401
+ "aria-label": F,
2517
2402
  "aria-expanded": E,
2518
2403
  onClick: () => P(!E),
2519
2404
  className: "relative flex-none rounded-full focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring",
2520
- children: [/* @__PURE__ */ U(Sa, {
2405
+ children: [/* @__PURE__ */ H(pa, {
2521
2406
  state: O,
2522
2407
  compact: !E,
2523
2408
  unread: j,
2524
2409
  activity: f,
2410
+ paused: m,
2525
2411
  size: E ? 76 : 132
2526
- }), !E && A > 0 && /* @__PURE__ */ U("span", {
2412
+ }), !E && A > 0 && /* @__PURE__ */ H("span", {
2527
2413
  "aria-hidden": "true",
2528
2414
  className: "absolute right-5 top-5 grid h-5 min-w-5 place-items-center rounded-full bg-primary px-1 text-[0.6875rem] font-semibold leading-none text-primary-foreground",
2529
2415
  children: A
2530
2416
  })]
2531
2417
  }),
2532
- E && /* @__PURE__ */ W("div", {
2418
+ E && /* @__PURE__ */ U("div", {
2533
2419
  className: "flex min-w-0 flex-1 flex-col gap-0.5",
2534
2420
  children: [
2535
- /* @__PURE__ */ U("span", {
2421
+ /* @__PURE__ */ H("span", {
2536
2422
  className: "text-xs text-muted-foreground",
2537
- children: h("assistant.state")
2423
+ children: g("assistant.state")
2538
2424
  }),
2539
- /* @__PURE__ */ U("span", {
2540
- className: `text-sm font-semibold ${wa[O]}`,
2541
- children: h(Ca[O])
2425
+ /* @__PURE__ */ H("span", {
2426
+ className: `text-sm font-semibold ${ha[O]}`,
2427
+ children: g(ma[O])
2542
2428
  }),
2543
- k && /* @__PURE__ */ U(Oa, {
2429
+ k && /* @__PURE__ */ H(ya, {
2544
2430
  text: k,
2431
+ still: m,
2545
2432
  className: "text-xs leading-snug text-muted-foreground"
2546
2433
  }, k)
2547
2434
  ]
2548
2435
  }),
2549
- E && /* @__PURE__ */ U(R, {
2436
+ E && /* @__PURE__ */ H(R, {
2550
2437
  variant: "ghost",
2551
2438
  size: "sm",
2552
2439
  className: "flex-none self-start",
2553
2440
  onClick: () => P(!1),
2554
- children: h("assistant.collapseAction")
2441
+ children: g("assistant.collapseAction")
2555
2442
  })
2556
2443
  ]
2557
2444
  }),
2558
- E && (D || w.length > 0) && /* @__PURE__ */ W("div", {
2445
+ E && (D || w.length > 0) && /* @__PURE__ */ U("div", {
2559
2446
  ref: S,
2560
2447
  role: "log",
2561
- "aria-label": h("assistant.transcript"),
2448
+ "aria-label": g("assistant.transcript"),
2562
2449
  "aria-busy": r,
2563
2450
  className: "mt-3 flex max-h-96 min-h-32 flex-1 flex-col gap-2.5 overflow-y-auto pr-1",
2564
2451
  children: [
2565
- C.length === 0 && !r && /* @__PURE__ */ U("p", {
2452
+ C.length === 0 && !r && /* @__PURE__ */ H("p", {
2566
2453
  className: "m-auto max-w-52 text-center text-xs leading-relaxed text-muted-foreground",
2567
- children: h("assistant.empty")
2454
+ children: g("assistant.empty")
2568
2455
  }),
2569
- C.map((e, t) => Ea(e) ? /* @__PURE__ */ W("div", {
2456
+ C.map((e, t) => _a(e) ? /* @__PURE__ */ U("div", {
2570
2457
  "data-kind": "report",
2571
2458
  className: `w-full rounded-lg border px-3 py-2 text-sm ${e.read ? "border-border/60" : "border-border bg-muted/50"}`,
2572
2459
  children: [
2573
- /* @__PURE__ */ W("div", {
2460
+ /* @__PURE__ */ U("div", {
2574
2461
  className: "flex items-center gap-2 text-xs",
2575
2462
  children: [
2576
- /* @__PURE__ */ U("span", {
2463
+ /* @__PURE__ */ H("span", {
2577
2464
  "aria-hidden": "true",
2578
- className: `size-2 flex-none rounded-full bg-current ${wa[e.tone]}`
2465
+ className: `size-2 flex-none rounded-full bg-current ${ha[e.tone]}`
2579
2466
  }),
2580
- /* @__PURE__ */ U("span", {
2467
+ /* @__PURE__ */ H("span", {
2581
2468
  className: "font-semibold",
2582
- children: h(Ca[e.tone])
2469
+ children: g(ma[e.tone])
2583
2470
  }),
2584
- /* @__PURE__ */ U(ka, {
2471
+ /* @__PURE__ */ H(ba, {
2585
2472
  at: e.at,
2586
- locale: g?.resolvedLanguage
2473
+ locale: _?.resolvedLanguage
2587
2474
  }),
2588
- !e.read && /* @__PURE__ */ U("span", {
2475
+ !e.read && /* @__PURE__ */ H("span", {
2589
2476
  className: "rounded-full border border-border px-1.5 leading-4",
2590
- children: h("assistant.new")
2477
+ children: g("assistant.new")
2591
2478
  }),
2592
- d && /* @__PURE__ */ U(R, {
2479
+ d && /* @__PURE__ */ H(R, {
2593
2480
  variant: "ghost",
2594
2481
  size: "icon",
2595
2482
  className: "ml-auto size-6",
2596
- "aria-label": h("assistant.dismiss"),
2483
+ "aria-label": g("assistant.dismiss"),
2597
2484
  onClick: () => d(e.id),
2598
- children: /* @__PURE__ */ U(nt, {
2485
+ children: /* @__PURE__ */ H(dt, {
2599
2486
  "aria-hidden": "true",
2600
2487
  size: 14
2601
2488
  })
2602
2489
  })
2603
2490
  ]
2604
2491
  }),
2605
- /* @__PURE__ */ U("p", {
2492
+ /* @__PURE__ */ H("p", {
2606
2493
  className: "m-0 mt-1 whitespace-pre-wrap leading-snug",
2607
2494
  children: e.text
2608
2495
  }),
2609
- e.actions && e.actions.length > 0 && /* @__PURE__ */ U("div", {
2496
+ e.actions && e.actions.length > 0 && /* @__PURE__ */ H("div", {
2610
2497
  className: "mt-2 flex flex-wrap gap-2",
2611
- children: e.actions.slice(0, Ta).map((e) => /* @__PURE__ */ U(R, {
2498
+ children: e.actions.slice(0, ga).map((e) => /* @__PURE__ */ H(R, {
2612
2499
  variant: "outline",
2613
2500
  size: "sm",
2614
2501
  onClick: e.onSelect,
@@ -2616,13 +2503,13 @@ function Aa({ state: e, caption: t, messages: n, busy: r = !1, onSend: i, open:
2616
2503
  }, e.label))
2617
2504
  })
2618
2505
  ]
2619
- }, e.id) : /* @__PURE__ */ W("div", {
2506
+ }, e.id) : /* @__PURE__ */ U("div", {
2620
2507
  "data-kind": e.role,
2621
2508
  className: e.role === "user" ? "max-w-[92%] self-end rounded-xl rounded-br-sm bg-accent px-3 py-2 text-sm text-accent-foreground" : "max-w-[92%] self-start rounded-xl rounded-bl-sm border border-border px-3 py-2 text-sm",
2622
- children: [/* @__PURE__ */ U("p", {
2509
+ children: [/* @__PURE__ */ H("p", {
2623
2510
  className: "m-0 whitespace-pre-wrap leading-snug",
2624
2511
  children: e.text
2625
- }), e.action && /* @__PURE__ */ U(R, {
2512
+ }), e.action && /* @__PURE__ */ H(R, {
2626
2513
  variant: "link",
2627
2514
  size: "sm",
2628
2515
  className: "mt-1 h-auto whitespace-normal p-0 text-left",
@@ -2630,28 +2517,28 @@ function Aa({ state: e, caption: t, messages: n, busy: r = !1, onSend: i, open:
2630
2517
  children: e.action.label
2631
2518
  })]
2632
2519
  }, e.id ?? t)),
2633
- r && /* @__PURE__ */ U("p", {
2520
+ r && /* @__PURE__ */ H("p", {
2634
2521
  className: "m-0 self-start px-3 py-2 text-sm text-muted-foreground",
2635
- children: h("assistant.thinking")
2522
+ children: g("assistant.thinking")
2636
2523
  })
2637
2524
  ]
2638
2525
  }),
2639
- E && D && /* @__PURE__ */ W("div", {
2526
+ E && D && /* @__PURE__ */ U("div", {
2640
2527
  className: "mt-3 flex flex-none gap-2",
2641
- children: [/* @__PURE__ */ U(s, {
2528
+ children: [/* @__PURE__ */ H(s, {
2642
2529
  value: b,
2643
2530
  disabled: r,
2644
- placeholder: h("assistant.placeholder"),
2645
- "aria-label": h("assistant.placeholder"),
2531
+ placeholder: g("assistant.placeholder"),
2532
+ "aria-label": g("assistant.placeholder"),
2646
2533
  onChange: (e) => x(e.target.value),
2647
2534
  onKeyDown: (e) => {
2648
- e.key === "Enter" && (e.preventDefault(), te());
2535
+ e.key === "Enter" && (e.preventDefault(), ne());
2649
2536
  }
2650
- }), /* @__PURE__ */ U(R, {
2537
+ }), /* @__PURE__ */ H(R, {
2651
2538
  variant: "outline",
2652
2539
  disabled: r || b.trim().length === 0,
2653
- onClick: te,
2654
- children: h("assistant.send")
2540
+ onClick: ne,
2541
+ children: g("assistant.send")
2655
2542
  })]
2656
2543
  })
2657
2544
  ]
@@ -2659,15 +2546,15 @@ function Aa({ state: e, caption: t, messages: n, busy: r = !1, onSend: i, open:
2659
2546
  }
2660
2547
  //#endregion
2661
2548
  //#region src/components/ui/user-menu.tsx
2662
- function ja({ user: e, onAccount: t, onSignOut: n, extraItems: i, className: a, align: o = "end" }) {
2663
- let { t: s } = G(), c = `${e.firstName ?? ""} ${e.lastName ?? ""}`.trim() || e.username || "";
2664
- return /* @__PURE__ */ W(E, { children: [/* @__PURE__ */ U(M, {
2549
+ function Sa({ user: e, onAccount: t, onSignOut: n, extraItems: i, className: a, align: o = "end" }) {
2550
+ let { t: s } = W(), c = `${e.firstName ?? ""} ${e.lastName ?? ""}`.trim() || e.username || "";
2551
+ return /* @__PURE__ */ U(be, { children: [/* @__PURE__ */ H(k, {
2665
2552
  asChild: !0,
2666
- children: /* @__PURE__ */ U("button", {
2553
+ children: /* @__PURE__ */ H("button", {
2667
2554
  type: "button",
2668
2555
  title: c || e.username,
2669
2556
  className: r("cursor-pointer rounded-full outline-none focus-visible:ring-2 focus-visible:ring-ring", a),
2670
- children: /* @__PURE__ */ U(se, {
2557
+ children: /* @__PURE__ */ H(pe, {
2671
2558
  givenName: e.firstName,
2672
2559
  familyName: e.lastName,
2673
2560
  name: c || e.username,
@@ -2676,52 +2563,52 @@ function ja({ user: e, onAccount: t, onSignOut: n, extraItems: i, className: a,
2676
2563
  className: "hover:ring-2 hover:ring-border transition-all"
2677
2564
  })
2678
2565
  })
2679
- }), /* @__PURE__ */ W(ie, {
2566
+ }), /* @__PURE__ */ U(F, {
2680
2567
  className: "min-w-56 rounded-lg",
2681
2568
  align: o,
2682
2569
  sideOffset: 8,
2683
2570
  children: [
2684
- /* @__PURE__ */ U(te, {
2571
+ /* @__PURE__ */ H(j, {
2685
2572
  className: "p-0 font-normal",
2686
- children: /* @__PURE__ */ W("div", {
2573
+ children: /* @__PURE__ */ U("div", {
2687
2574
  className: "flex items-center gap-2 px-1 py-1.5 text-left text-sm",
2688
- children: [/* @__PURE__ */ U(se, {
2575
+ children: [/* @__PURE__ */ H(pe, {
2689
2576
  givenName: e.firstName,
2690
2577
  familyName: e.lastName,
2691
2578
  name: c || e.username,
2692
2579
  src: e.avatarUrl || void 0,
2693
2580
  alt: e.username
2694
- }), /* @__PURE__ */ W("div", {
2581
+ }), /* @__PURE__ */ U("div", {
2695
2582
  className: "grid flex-1 text-left text-sm leading-tight",
2696
- children: [c && /* @__PURE__ */ U("span", {
2583
+ children: [c && /* @__PURE__ */ H("span", {
2697
2584
  className: "truncate font-medium",
2698
2585
  children: c
2699
- }), e.email && /* @__PURE__ */ U("span", {
2586
+ }), e.email && /* @__PURE__ */ H("span", {
2700
2587
  className: "text-muted-foreground truncate text-xs",
2701
2588
  children: e.email
2702
2589
  })]
2703
2590
  })]
2704
2591
  })
2705
2592
  }),
2706
- /* @__PURE__ */ U(N, {}),
2707
- /* @__PURE__ */ W(O, { children: [t && /* @__PURE__ */ W(D, {
2593
+ /* @__PURE__ */ H(T, {}),
2594
+ /* @__PURE__ */ U(ie, { children: [t && /* @__PURE__ */ U(O, {
2708
2595
  onSelect: t,
2709
2596
  className: "cursor-pointer",
2710
- children: [/* @__PURE__ */ U(tt, {}), s("nav.account")]
2597
+ children: [/* @__PURE__ */ H(ut, {}), s("nav.account")]
2711
2598
  }), i] }),
2712
- (t || i) && /* @__PURE__ */ U(N, {}),
2713
- n && /* @__PURE__ */ W(D, {
2599
+ (t || i) && /* @__PURE__ */ H(T, {}),
2600
+ n && /* @__PURE__ */ U(O, {
2714
2601
  onSelect: n,
2715
2602
  className: "cursor-pointer text-red-500 focus:text-red-500 focus:bg-red-50 dark:focus:bg-red-950",
2716
- children: [/* @__PURE__ */ U(Qe, {}), s("nav.logOut")]
2603
+ children: [/* @__PURE__ */ H(st, {}), s("nav.logOut")]
2717
2604
  })
2718
2605
  ]
2719
2606
  })] });
2720
2607
  }
2721
2608
  //#endregion
2722
2609
  //#region src/components/login/login.tsx
2723
- var Ma = Me({});
2724
- function Na(e) {
2610
+ var Ca = Ve({});
2611
+ function wa(e) {
2725
2612
  if (!e) return null;
2726
2613
  let t = /^#([0-9a-f])([0-9a-f])([0-9a-f])$/i.exec(e.trim());
2727
2614
  if (t) {
@@ -2735,18 +2622,18 @@ function Na(e) {
2735
2622
  }
2736
2623
  return null;
2737
2624
  }
2738
- function Pa({ color: e, colorDark: t, children: n, className: i, style: a, ...o }) {
2625
+ function Ta({ color: e, colorDark: t, children: n, className: i, style: a, ...o }) {
2739
2626
  let s = {};
2740
2627
  e && (s["--ff-color"] = e), t ? s["--ff-color-dark"] = t : e && (s["--ff-color-dark"] = e);
2741
- let c = Na(e);
2628
+ let c = wa(e);
2742
2629
  c && (s["--ff-color-rgb"] = c);
2743
- let l = Na(t) ?? c;
2744
- return l && (s["--ff-color-dark-rgb"] = l), /* @__PURE__ */ U(Ma.Provider, {
2630
+ let l = wa(t) ?? c;
2631
+ return l && (s["--ff-color-dark-rgb"] = l), /* @__PURE__ */ H(Ca.Provider, {
2745
2632
  value: {
2746
2633
  color: e,
2747
2634
  colorDark: t
2748
2635
  },
2749
- children: /* @__PURE__ */ U("div", {
2636
+ children: /* @__PURE__ */ H("div", {
2750
2637
  className: r("vig-login relative min-h-svh flex items-center justify-center overflow-hidden bg-slate-50 dark:bg-slate-900", i),
2751
2638
  style: {
2752
2639
  ...a ?? {},
@@ -2757,108 +2644,108 @@ function Pa({ color: e, colorDark: t, children: n, className: i, style: a, ...o
2757
2644
  })
2758
2645
  });
2759
2646
  }
2760
- function Fa(e) {
2761
- let { color: t, colorDark: n } = Pe(Ma);
2762
- return /* @__PURE__ */ U(De, {
2647
+ function Ea(e) {
2648
+ let { color: t, colorDark: n } = Ue(Ca);
2649
+ return /* @__PURE__ */ H(Fe, {
2763
2650
  color: t,
2764
2651
  colorDark: n,
2765
2652
  ...e
2766
2653
  });
2767
2654
  }
2768
- function Ia({ children: e, className: t, ...n }) {
2769
- return /* @__PURE__ */ U("div", {
2655
+ function Da({ children: e, className: t, ...n }) {
2656
+ return /* @__PURE__ */ H("div", {
2770
2657
  className: r("absolute top-4 right-4 z-30 flex items-center gap-2", t),
2771
2658
  ...n,
2772
2659
  children: e
2773
2660
  });
2774
2661
  }
2775
- function La({ children: e, className: t, ...n }) {
2776
- return /* @__PURE__ */ U("div", {
2662
+ function Oa({ children: e, className: t, ...n }) {
2663
+ return /* @__PURE__ */ H("div", {
2777
2664
  className: r("relative z-20 flex flex-col items-center w-full max-w-md px-6 py-4", t),
2778
2665
  ...n,
2779
2666
  children: e
2780
2667
  });
2781
2668
  }
2782
- function Ra({ children: e, pulsePaused: t, className: n, ...i }) {
2783
- return /* @__PURE__ */ U("div", {
2669
+ function ka({ children: e, pulsePaused: t, className: n, ...i }) {
2670
+ return /* @__PURE__ */ H("div", {
2784
2671
  className: r("vig-login__fade-in mb-3", n),
2785
2672
  ...i,
2786
- children: /* @__PURE__ */ U(Yn, {
2673
+ children: /* @__PURE__ */ H(Zn, {
2787
2674
  paused: t,
2788
- children: /* @__PURE__ */ U("div", {
2675
+ children: /* @__PURE__ */ H("div", {
2789
2676
  className: "flex h-16 w-16 items-center justify-center rounded-2xl bg-white/80 dark:bg-slate-800/80 backdrop-blur-sm shadow-lg ring-1 ring-[rgba(var(--ff-color-rgb,37,99,235),0.2)] dark:ring-[rgba(var(--ff-color-dark-rgb,96,165,250),0.2)]",
2790
2677
  children: e
2791
2678
  })
2792
2679
  })
2793
2680
  });
2794
2681
  }
2795
- function za({ children: e, className: t, ...n }) {
2796
- return /* @__PURE__ */ U("div", {
2682
+ function Aa({ children: e, className: t, ...n }) {
2683
+ return /* @__PURE__ */ H("div", {
2797
2684
  className: "vig-login__fade-in-d1 text-center mb-1",
2798
- children: /* @__PURE__ */ U("h1", {
2685
+ children: /* @__PURE__ */ H("h1", {
2799
2686
  className: r("text-2xl font-bold tracking-tight bg-clip-text text-transparent vig-login__title-gradient", t),
2800
2687
  ...n,
2801
2688
  children: e
2802
2689
  })
2803
2690
  });
2804
2691
  }
2805
- function Ba({ children: e, className: t, ...n }) {
2806
- return /* @__PURE__ */ U("div", {
2692
+ function ja({ children: e, className: t, ...n }) {
2693
+ return /* @__PURE__ */ H("div", {
2807
2694
  className: "vig-login__fade-in-d1 text-center mb-4",
2808
- children: /* @__PURE__ */ U("p", {
2695
+ children: /* @__PURE__ */ H("p", {
2809
2696
  className: r("text-sm text-slate-500 dark:text-slate-400 max-w-xs leading-relaxed", t),
2810
2697
  ...n,
2811
2698
  children: e
2812
2699
  })
2813
2700
  });
2814
2701
  }
2815
- function Va({ children: e, className: t, ...n }) {
2816
- return /* @__PURE__ */ U("div", {
2702
+ function Ma({ children: e, className: t, ...n }) {
2703
+ return /* @__PURE__ */ H("div", {
2817
2704
  className: r("vig-login__fade-in-d2 flex flex-wrap justify-center gap-2 mb-5", t),
2818
2705
  ...n,
2819
2706
  children: e
2820
2707
  });
2821
2708
  }
2822
- function Ha({ icon: e, children: t, className: n, ...i }) {
2823
- return /* @__PURE__ */ W("div", {
2709
+ function Na({ icon: e, children: t, className: n, ...i }) {
2710
+ return /* @__PURE__ */ U("div", {
2824
2711
  className: r("vig-login__feature-pill flex items-center gap-1.5 rounded-full px-3 py-1", n),
2825
2712
  ...i,
2826
- children: [e, /* @__PURE__ */ U("span", {
2713
+ children: [e, /* @__PURE__ */ H("span", {
2827
2714
  className: "text-xs font-medium text-slate-600 dark:text-slate-300",
2828
2715
  children: t
2829
2716
  })]
2830
2717
  });
2831
2718
  }
2832
- function Ua({ children: e, className: t, ...n }) {
2833
- return /* @__PURE__ */ U("div", {
2719
+ function Pa({ children: e, className: t, ...n }) {
2720
+ return /* @__PURE__ */ H("div", {
2834
2721
  className: r("vig-login__fade-in-d3 w-full", t),
2835
2722
  ...n,
2836
- children: /* @__PURE__ */ U(Jn, { children: e })
2723
+ children: /* @__PURE__ */ H(Xn, { children: e })
2837
2724
  });
2838
2725
  }
2839
- function Wa({ children: e, className: t, ...n }) {
2840
- return /* @__PURE__ */ U("div", {
2726
+ function Fa({ children: e, className: t, ...n }) {
2727
+ return /* @__PURE__ */ H("div", {
2841
2728
  className: "vig-login__fade-in-d3 mt-4 text-center",
2842
- children: /* @__PURE__ */ U("p", {
2729
+ children: /* @__PURE__ */ H("p", {
2843
2730
  className: r("text-xs text-slate-400 dark:text-slate-500", t),
2844
2731
  ...n,
2845
2732
  children: e
2846
2733
  })
2847
2734
  });
2848
2735
  }
2849
- var Ga = Object.assign(Pa, {
2850
- Background: Fa,
2851
- Settings: Ia,
2852
- Content: La,
2853
- Logo: Ra,
2854
- Title: za,
2855
- Tagline: Ba,
2856
- Features: Va,
2857
- FeaturePill: Ha,
2858
- Card: Ua,
2859
- Footer: Wa
2860
- }), Ka = Me({});
2861
- function qa(e) {
2736
+ var Ia = Object.assign(Ta, {
2737
+ Background: Ea,
2738
+ Settings: Da,
2739
+ Content: Oa,
2740
+ Logo: ka,
2741
+ Title: Aa,
2742
+ Tagline: ja,
2743
+ Features: Ma,
2744
+ FeaturePill: Na,
2745
+ Card: Pa,
2746
+ Footer: Fa
2747
+ }), La = Ve({});
2748
+ function Ra(e) {
2862
2749
  if (!e) return null;
2863
2750
  let t = /^#([0-9a-f])([0-9a-f])([0-9a-f])$/i.exec(e.trim());
2864
2751
  if (t) {
@@ -2872,18 +2759,18 @@ function qa(e) {
2872
2759
  }
2873
2760
  return null;
2874
2761
  }
2875
- function Ja({ color: e, colorDark: t, children: n, className: i, style: a, ...o }) {
2762
+ function za({ color: e, colorDark: t, children: n, className: i, style: a, ...o }) {
2876
2763
  let s = {};
2877
2764
  e && (s["--ff-color"] = e), t ? s["--ff-color-dark"] = t : e && (s["--ff-color-dark"] = e);
2878
- let c = qa(e);
2765
+ let c = Ra(e);
2879
2766
  c && (s["--ff-color-rgb"] = c);
2880
- let l = qa(t) ?? c;
2881
- return l && (s["--ff-color-dark-rgb"] = l), /* @__PURE__ */ U(Ka.Provider, {
2767
+ let l = Ra(t) ?? c;
2768
+ return l && (s["--ff-color-dark-rgb"] = l), /* @__PURE__ */ H(La.Provider, {
2882
2769
  value: {
2883
2770
  color: e,
2884
2771
  colorDark: t
2885
2772
  },
2886
- children: /* @__PURE__ */ U("div", {
2773
+ children: /* @__PURE__ */ H("div", {
2887
2774
  className: r("vig-sf relative min-h-svh flex items-center justify-center overflow-hidden bg-slate-50 dark:bg-slate-950", i),
2888
2775
  style: {
2889
2776
  ...a ?? {},
@@ -2894,24 +2781,24 @@ function Ja({ color: e, colorDark: t, children: n, className: i, style: a, ...o
2894
2781
  })
2895
2782
  });
2896
2783
  }
2897
- function Ya(e) {
2898
- let { color: t, colorDark: n } = Pe(Ka);
2899
- return /* @__PURE__ */ U(De, {
2784
+ function Ba(e) {
2785
+ let { color: t, colorDark: n } = Ue(La);
2786
+ return /* @__PURE__ */ H(Fe, {
2900
2787
  color: t,
2901
2788
  colorDark: n,
2902
2789
  ...e
2903
2790
  });
2904
2791
  }
2905
- function Xa({ children: e, className: t, ...n }) {
2906
- return /* @__PURE__ */ U("div", {
2792
+ function Va({ children: e, className: t, ...n }) {
2793
+ return /* @__PURE__ */ H("div", {
2907
2794
  className: r("relative z-20 flex flex-col items-center w-full max-w-lg px-6 py-6", t),
2908
2795
  ...n,
2909
2796
  children: e
2910
2797
  });
2911
2798
  }
2912
- function Za({ current: e, total: t, className: n, ...i }) {
2913
- let { t: a } = G();
2914
- return /* @__PURE__ */ U("div", {
2799
+ function Ha({ current: e, total: t, className: n, ...i }) {
2800
+ let { t: a } = W();
2801
+ return /* @__PURE__ */ H("div", {
2915
2802
  className: r("vig-sf__fade-in flex items-center gap-2 mb-4", n),
2916
2803
  role: "group",
2917
2804
  "aria-label": a("common.stepOf", {
@@ -2920,20 +2807,20 @@ function Za({ current: e, total: t, className: n, ...i }) {
2920
2807
  defaultValue: "Step {{index}} of {{count}}"
2921
2808
  }),
2922
2809
  ...i,
2923
- children: Array.from({ length: t }, (t, n) => /* @__PURE__ */ U("span", {
2810
+ children: Array.from({ length: t }, (t, n) => /* @__PURE__ */ H("span", {
2924
2811
  className: n + 1 <= e ? "vig-sf__step vig-sf__step--active" : "vig-sf__step",
2925
2812
  "aria-current": n + 1 === e ? "step" : void 0
2926
2813
  }, `step-${n + 1}`))
2927
2814
  });
2928
2815
  }
2929
- function Qa({ children: e, pulsePaused: t, size: n = 80, className: i, style: a, ...o }) {
2930
- return /* @__PURE__ */ U("div", {
2816
+ function Ua({ children: e, pulsePaused: t, size: n = 80, className: i, style: a, ...o }) {
2817
+ return /* @__PURE__ */ H("div", {
2931
2818
  className: r("vig-sf__fade-in mb-4", i),
2932
2819
  style: a,
2933
2820
  ...o,
2934
- children: /* @__PURE__ */ U(Yn, {
2821
+ children: /* @__PURE__ */ H(Zn, {
2935
2822
  paused: t,
2936
- children: /* @__PURE__ */ U("div", {
2823
+ children: /* @__PURE__ */ H("div", {
2937
2824
  className: "flex items-center justify-center rounded-3xl bg-white/80 dark:bg-slate-800/80 backdrop-blur-sm shadow-xl ring-1 ring-[rgba(var(--ff-color-rgb,37,99,235),0.2)] dark:ring-[rgba(var(--ff-color-dark-rgb,96,165,250),0.2)]",
2938
2825
  style: {
2939
2826
  width: n,
@@ -2944,90 +2831,91 @@ function Qa({ children: e, pulsePaused: t, size: n = 80, className: i, style: a,
2944
2831
  })
2945
2832
  });
2946
2833
  }
2947
- function $a({ children: e, className: t, ...n }) {
2948
- return /* @__PURE__ */ U("div", {
2834
+ function Wa({ children: e, className: t, ...n }) {
2835
+ return /* @__PURE__ */ H("div", {
2949
2836
  className: "vig-sf__fade-in-d1 text-center mb-2",
2950
- children: /* @__PURE__ */ U("h1", {
2837
+ children: /* @__PURE__ */ H("h1", {
2951
2838
  className: r("text-3xl font-bold tracking-tight bg-clip-text text-transparent vig-sf__title-gradient", t),
2952
2839
  ...n,
2953
2840
  children: e
2954
2841
  })
2955
2842
  });
2956
2843
  }
2957
- function eo({ children: e, className: t, ...n }) {
2958
- return /* @__PURE__ */ U("div", {
2844
+ function Ga({ children: e, className: t, ...n }) {
2845
+ return /* @__PURE__ */ H("div", {
2959
2846
  className: "vig-sf__fade-in-d1 text-center mb-5",
2960
- children: /* @__PURE__ */ U("p", {
2847
+ children: /* @__PURE__ */ H("p", {
2961
2848
  className: r("text-sm text-slate-500 dark:text-slate-400 max-w-md leading-relaxed", t),
2962
2849
  ...n,
2963
2850
  children: e
2964
2851
  })
2965
2852
  });
2966
2853
  }
2967
- function to({ children: e, className: t, ...n }) {
2968
- return /* @__PURE__ */ U("div", {
2854
+ function Ka({ children: e, className: t, ...n }) {
2855
+ return /* @__PURE__ */ H("div", {
2969
2856
  className: r("vig-sf__fade-in-d2 w-full", t),
2970
2857
  ...n,
2971
- children: /* @__PURE__ */ U(Jn, { children: e })
2858
+ children: /* @__PURE__ */ H(Xn, { children: e })
2972
2859
  });
2973
2860
  }
2974
- function no({ children: e, className: t, ...n }) {
2975
- return /* @__PURE__ */ U("div", {
2861
+ function qa({ children: e, className: t, ...n }) {
2862
+ return /* @__PURE__ */ H("div", {
2976
2863
  className: r("vig-sf__fade-in-d3 w-full mt-4 flex items-center justify-between gap-3", t),
2977
2864
  ...n,
2978
2865
  children: e
2979
2866
  });
2980
2867
  }
2981
- function ro({ children: e, className: t, ...n }) {
2982
- return /* @__PURE__ */ U("div", {
2868
+ function Ja({ children: e, className: t, ...n }) {
2869
+ return /* @__PURE__ */ H("div", {
2983
2870
  className: "vig-sf__fade-in-d3 mt-6 text-center",
2984
- children: /* @__PURE__ */ U("p", {
2871
+ children: /* @__PURE__ */ H("p", {
2985
2872
  className: r("text-xs text-slate-400 dark:text-slate-500", t),
2986
2873
  ...n,
2987
2874
  children: e
2988
2875
  })
2989
2876
  });
2990
2877
  }
2991
- function io({ icon: e, children: t, className: n, ...i }) {
2992
- return /* @__PURE__ */ W("div", {
2878
+ function Ya({ icon: e, children: t, className: n, ...i }) {
2879
+ return /* @__PURE__ */ U("div", {
2993
2880
  className: r("vig-sf__hint flex items-start gap-2 rounded-lg px-3 py-2 text-xs text-slate-600 dark:text-slate-300", n),
2994
2881
  ...i,
2995
- children: [e, /* @__PURE__ */ U("span", { children: t })]
2996
- });
2997
- }
2998
- var ao = Object.assign(Ja, {
2999
- Background: Ya,
3000
- Content: Xa,
3001
- Steps: Za,
3002
- Logo: Qa,
3003
- Title: $a,
3004
- Description: eo,
3005
- Card: to,
3006
- Actions: no,
3007
- Footer: ro,
3008
- Hint: io
2882
+ children: [e, /* @__PURE__ */ H("span", { children: t })]
2883
+ });
2884
+ }
2885
+ var Xa = Object.assign(za, {
2886
+ Background: Ba,
2887
+ Content: Va,
2888
+ Steps: Ha,
2889
+ Logo: Ua,
2890
+ Title: Wa,
2891
+ Description: Ga,
2892
+ Card: Ka,
2893
+ Actions: qa,
2894
+ Footer: Ja,
2895
+ Hint: Ya
3009
2896
  });
3010
2897
  //#endregion
3011
2898
  //#region src/components/app-footer.tsx
3012
- function oo({ logo: e, productName: t, version: n, links: r = [] }) {
3013
- return /* @__PURE__ */ W("footer", {
2899
+ function Za({ logo: e, productName: t, version: n, links: r = [] }) {
2900
+ return /* @__PURE__ */ U("footer", {
3014
2901
  className: "mt-auto",
3015
- children: [/* @__PURE__ */ U("div", { className: "mx-6 border-t" }), /* @__PURE__ */ W("div", {
2902
+ children: [/* @__PURE__ */ H("div", { className: "mx-6 border-t" }), /* @__PURE__ */ U("div", {
3016
2903
  className: "px-6 py-3 flex items-center justify-center gap-2 flex-wrap",
3017
2904
  children: [
3018
2905
  e,
3019
- /* @__PURE__ */ W("span", {
3020
- className: "text-xs text-muted-foreground/70",
2906
+ /* @__PURE__ */ U("span", {
2907
+ className: "text-xs text-muted-foreground",
3021
2908
  children: [t, n ? ` ${n}` : ""]
3022
2909
  }),
3023
- r.map((e) => /* @__PURE__ */ W(je.Fragment, { children: [/* @__PURE__ */ U("span", {
2910
+ r.map((e) => /* @__PURE__ */ U(Be.Fragment, { children: [/* @__PURE__ */ H("span", {
2911
+ "aria-hidden": "true",
3024
2912
  className: "text-xs text-muted-foreground/40",
3025
2913
  children: "·"
3026
- }), /* @__PURE__ */ U("a", {
2914
+ }), /* @__PURE__ */ H("a", {
3027
2915
  href: e.href,
3028
2916
  target: "_blank",
3029
2917
  rel: "noopener noreferrer",
3030
- className: "text-[11px] text-muted-foreground/50 hover:text-muted-foreground transition-colors",
2918
+ className: "text-[11px] text-muted-foreground hover:text-foreground transition-colors",
3031
2919
  children: e.label
3032
2920
  })] }, e.label))
3033
2921
  ]
@@ -3036,32 +2924,32 @@ function oo({ logo: e, productName: t, version: n, links: r = [] }) {
3036
2924
  }
3037
2925
  //#endregion
3038
2926
  //#region src/components/app-switcher.tsx
3039
- function so({ open: e, onToggle: t, apps: n, triggerTitle: r, closeLabel: i, showTrigger: a = !0, headerHeight: o = 56 }) {
3040
- let { t: s } = G(), c = r ?? s("common.apps"), l = i ?? s("common.closeAppSwitcher"), u = {
2927
+ function Qa({ open: e, onToggle: t, apps: n, triggerTitle: r, closeLabel: i, showTrigger: a = !0, headerHeight: o = 56 }) {
2928
+ let { t: s } = W(), c = r ?? s("common.apps"), l = i ?? s("common.closeAppSwitcher"), u = {
3041
2929
  top: `${o}px`,
3042
2930
  height: `calc(100vh - ${o}px)`
3043
2931
  };
3044
- return /* @__PURE__ */ W(Le, { children: [
3045
- a && /* @__PURE__ */ U("button", {
2932
+ return /* @__PURE__ */ U(Ke, { children: [
2933
+ a && /* @__PURE__ */ H("button", {
3046
2934
  type: "button",
3047
2935
  title: c,
3048
2936
  onClick: t,
3049
2937
  className: `inline-flex items-center justify-center rounded-full w-9 h-9 transition-colors ${e ? "text-foreground bg-accent" : "text-muted-foreground hover:text-foreground hover:bg-accent"}`,
3050
- children: /* @__PURE__ */ U(Bt, { className: "h-5 w-5" })
2938
+ children: /* @__PURE__ */ H(Ht, { className: "h-5 w-5" })
3051
2939
  }),
3052
- e && /* @__PURE__ */ U("button", {
2940
+ e && /* @__PURE__ */ H("button", {
3053
2941
  type: "button",
3054
2942
  className: "fixed inset-0 z-40 cursor-default bg-transparent border-none",
3055
2943
  onClick: t,
3056
2944
  onKeyDown: (e) => e.key === "Escape" && t(),
3057
2945
  "aria-label": l
3058
2946
  }),
3059
- e && /* @__PURE__ */ U("div", {
2947
+ e && /* @__PURE__ */ H("div", {
3060
2948
  className: "vg-app-switcher-panel fixed right-0 z-50 w-72 border-l border-border bg-card shadow-xl overflow-y-auto",
3061
2949
  style: u,
3062
- children: /* @__PURE__ */ U("div", {
2950
+ children: /* @__PURE__ */ H("div", {
3063
2951
  className: "p-4",
3064
- children: n.map((e) => /* @__PURE__ */ U(co, {
2952
+ children: n.map((e) => /* @__PURE__ */ H($a, {
3065
2953
  app: e,
3066
2954
  onToggle: t
3067
2955
  }, e.id))
@@ -3069,37 +2957,37 @@ function so({ open: e, onToggle: t, apps: n, triggerTitle: r, closeLabel: i, sho
3069
2957
  })
3070
2958
  ] });
3071
2959
  }
3072
- function co({ app: e, onToggle: t }) {
3073
- let { t: n } = G(), r = e.name.includes(".") ? n(e.name, { defaultValue: e.name }) : e.name;
3074
- return /* @__PURE__ */ W("a", {
2960
+ function $a({ app: e, onToggle: t }) {
2961
+ let { t: n } = W(), r = e.name.includes(".") ? n(e.name, { defaultValue: e.name }) : e.name;
2962
+ return /* @__PURE__ */ U("a", {
3075
2963
  href: e.href,
3076
2964
  target: e.external ? "_blank" : void 0,
3077
2965
  rel: e.external ? "noopener noreferrer" : void 0,
3078
2966
  onClick: t,
3079
2967
  className: `flex items-center gap-3 px-3 py-2.5 rounded-lg transition-colors ${e.active ? "bg-accent font-medium" : "hover:bg-accent"}`,
3080
2968
  children: [
3081
- e.active && /* @__PURE__ */ U(A, { className: "h-4 w-4 text-[var(--vg-brand,#C2410C)] shrink-0" }),
3082
- e.image ? /* @__PURE__ */ U("img", {
2969
+ e.active && /* @__PURE__ */ H(de, { className: "h-4 w-4 text-[var(--vg-brand,#C2410C)] shrink-0" }),
2970
+ e.image ? /* @__PURE__ */ H("img", {
3083
2971
  src: e.image,
3084
2972
  alt: "",
3085
2973
  "aria-hidden": "true",
3086
2974
  className: `${e.active ? "" : "ml-7"} shrink-0 w-7 h-7 object-contain`
3087
- }) : /* @__PURE__ */ U("div", {
2975
+ }) : /* @__PURE__ */ H("div", {
3088
2976
  className: `${e.active ? "" : "ml-7"} shrink-0 w-7 h-7 rounded-[18%] bg-[#f5deb3] dark:bg-amber-900/40 p-0.5`,
3089
- children: /* @__PURE__ */ U("div", {
2977
+ children: /* @__PURE__ */ H("div", {
3090
2978
  className: `w-full h-full rounded-[14%] ${e.iconBg ?? "bg-muted"} flex items-center justify-center text-white`,
3091
2979
  children: e.icon
3092
2980
  })
3093
2981
  }),
3094
- /* @__PURE__ */ U("span", {
2982
+ /* @__PURE__ */ H("span", {
3095
2983
  className: "text-sm flex-1",
3096
2984
  children: r
3097
2985
  }),
3098
- e.external && /* @__PURE__ */ U(Pt, { className: "h-3.5 w-3.5 text-muted-foreground" })
2986
+ e.external && /* @__PURE__ */ H(Rt, { className: "h-3.5 w-3.5 text-muted-foreground" })
3099
2987
  ]
3100
2988
  });
3101
2989
  }
3102
- var lo = new class {
2990
+ var eo = new class {
3103
2991
  status = "online";
3104
2992
  listeners = /* @__PURE__ */ new Set();
3105
2993
  get current() {
@@ -3114,30 +3002,30 @@ var lo = new class {
3114
3002
  };
3115
3003
  }
3116
3004
  }();
3117
- function uo() {
3118
- lo.set("offline");
3005
+ function to() {
3006
+ eo.set("offline");
3119
3007
  }
3120
- function fo() {
3121
- lo.set("online");
3008
+ function no() {
3009
+ eo.set("online");
3122
3010
  }
3123
- var po = Me(null);
3124
- function mo() {
3125
- let e = Pe(po);
3011
+ var ro = Ve(null);
3012
+ function io() {
3013
+ let e = Ue(ro);
3126
3014
  if (!e) throw Error("useBackendStatus must be used inside <BackendStatusProvider>");
3127
3015
  return e;
3128
3016
  }
3129
- function ho({ healthEndpoint: e = "/api/v2/ping", pollInterval: t = 5e3, showBanner: n = !0, children: r }) {
3130
- let [i, a] = Ie(lo.current);
3131
- V(() => lo.subscribe(a), []);
3132
- let o = Ne(async () => {
3133
- lo.set("checking");
3017
+ function ao({ healthEndpoint: e = "/api/v2/ping", pollInterval: t = 5e3, showBanner: n = !0, children: r }) {
3018
+ let [i, a] = Ge(eo.current);
3019
+ B(() => eo.subscribe(a), []);
3020
+ let o = He(async () => {
3021
+ eo.set("checking");
3134
3022
  try {
3135
- await Y.get(e, { timeout: 4e3 }), lo.set("online");
3023
+ await Y.get(e, { timeout: 4e3 }), eo.set("online");
3136
3024
  } catch {
3137
- lo.set("offline");
3025
+ eo.set("offline");
3138
3026
  }
3139
3027
  }, [e]);
3140
- return V(() => {
3028
+ return B(() => {
3141
3029
  if (i === "online") return;
3142
3030
  let e = setInterval(o, t);
3143
3031
  return () => clearInterval(e);
@@ -3145,38 +3033,38 @@ function ho({ healthEndpoint: e = "/api/v2/ping", pollInterval: t = 5e3, showBan
3145
3033
  i,
3146
3034
  t,
3147
3035
  o
3148
- ]), /* @__PURE__ */ W(po.Provider, {
3036
+ ]), /* @__PURE__ */ U(ro.Provider, {
3149
3037
  value: {
3150
3038
  status: i,
3151
3039
  retry: o
3152
3040
  },
3153
- children: [n && /* @__PURE__ */ U(go, {}), r]
3041
+ children: [n && /* @__PURE__ */ H(oo, {}), r]
3154
3042
  });
3155
3043
  }
3156
- function go() {
3157
- let { status: e, retry: t } = mo(), { t: n } = G();
3044
+ function oo() {
3045
+ let { status: e, retry: t } = io(), { t: n } = W();
3158
3046
  if (e === "online") return null;
3159
3047
  let r = e === "checking";
3160
- return /* @__PURE__ */ U("div", {
3048
+ return /* @__PURE__ */ H("div", {
3161
3049
  role: "status",
3162
3050
  "aria-live": "polite",
3163
3051
  className: "sticky top-0 z-50 w-full border-b border-amber-500/30 bg-amber-500/10 backdrop-blur supports-[backdrop-filter]:bg-amber-500/15 text-amber-900 dark:text-amber-100",
3164
- children: /* @__PURE__ */ W("div", {
3052
+ children: /* @__PURE__ */ U("div", {
3165
3053
  className: "flex items-center gap-3 px-4 py-2 text-sm",
3166
3054
  children: [
3167
- r ? /* @__PURE__ */ U(Ze, { className: "size-4 animate-spin shrink-0" }) : /* @__PURE__ */ U(Ke, { className: "size-4 shrink-0" }),
3168
- /* @__PURE__ */ U("span", {
3055
+ r ? /* @__PURE__ */ H(ot, { className: "size-4 animate-spin shrink-0" }) : /* @__PURE__ */ H(tt, { className: "size-4 shrink-0" }),
3056
+ /* @__PURE__ */ H("span", {
3169
3057
  className: "flex-1",
3170
3058
  children: n(r ? "backendStatus.checking" : "backendStatus.offline", r ? "Reconnecting to the server..." : "Server unavailable. Retrying...")
3171
3059
  }),
3172
- /* @__PURE__ */ W(v, {
3060
+ /* @__PURE__ */ U(v, {
3173
3061
  type: "button",
3174
3062
  variant: "ghost",
3175
3063
  size: "sm",
3176
3064
  onClick: t,
3177
3065
  disabled: r,
3178
3066
  className: "text-amber-900 dark:text-amber-100 hover:bg-amber-500/20",
3179
- children: [/* @__PURE__ */ U($e, { className: `size-4 ${r ? "animate-spin" : ""}` }), n("backendStatus.retry", "Retry now")]
3067
+ children: [/* @__PURE__ */ H(ct, { className: `size-4 ${r ? "animate-spin" : ""}` }), n("backendStatus.retry", "Retry now")]
3180
3068
  })
3181
3069
  ]
3182
3070
  })
@@ -3184,7 +3072,7 @@ function go() {
3184
3072
  }
3185
3073
  //#endregion
3186
3074
  //#region src/components/error-boundary.tsx
3187
- var _o = class extends je.Component {
3075
+ var so = class extends Be.Component {
3188
3076
  state = { hasError: !1 };
3189
3077
  static getDerivedStateFromError(e) {
3190
3078
  return {
@@ -3207,49 +3095,49 @@ var _o = class extends je.Component {
3207
3095
  return this.props.fallback ? this.props.fallback({
3208
3096
  error: e,
3209
3097
  reset: this.reset
3210
- }) : /* @__PURE__ */ U(vo, { error: e });
3098
+ }) : /* @__PURE__ */ H(co, { error: e });
3211
3099
  }
3212
3100
  };
3213
- function vo({ error: e }) {
3214
- let { t } = G();
3215
- return /* @__PURE__ */ U("div", {
3101
+ function co({ error: e }) {
3102
+ let { t } = W();
3103
+ return /* @__PURE__ */ H("div", {
3216
3104
  className: "flex items-center justify-center min-h-[80vh] px-6 py-16",
3217
- children: /* @__PURE__ */ U("div", {
3105
+ children: /* @__PURE__ */ H("div", {
3218
3106
  className: "relative w-full max-w-md overflow-hidden rounded-2xl border border-border/50 bg-card/80 backdrop-blur-sm shadow-xl",
3219
- children: /* @__PURE__ */ W("div", {
3107
+ children: /* @__PURE__ */ U("div", {
3220
3108
  className: "relative flex flex-col items-center text-center px-8 py-12 space-y-6",
3221
3109
  children: [
3222
- /* @__PURE__ */ W("div", {
3110
+ /* @__PURE__ */ U("div", {
3223
3111
  className: "relative",
3224
- children: [/* @__PURE__ */ U("div", { className: "absolute inset-0 rounded-2xl bg-gradient-to-br from-red-500/20 to-rose-500/20 blur-xl animate-pulse" }), /* @__PURE__ */ U("div", {
3112
+ children: [/* @__PURE__ */ H("div", { className: "absolute inset-0 rounded-2xl bg-gradient-to-br from-red-500/20 to-rose-500/20 blur-xl animate-pulse" }), /* @__PURE__ */ H("div", {
3225
3113
  className: "relative inline-flex h-16 w-16 items-center justify-center rounded-2xl bg-gradient-to-br from-red-600 to-rose-600 shadow-lg shadow-red-500/25 ring-4 ring-red-500/10",
3226
- children: /* @__PURE__ */ U(qe, {
3114
+ children: /* @__PURE__ */ H(nt, {
3227
3115
  className: "text-white",
3228
3116
  size: 30
3229
3117
  })
3230
3118
  })]
3231
3119
  }),
3232
- /* @__PURE__ */ W("div", {
3120
+ /* @__PURE__ */ U("div", {
3233
3121
  className: "space-y-2",
3234
3122
  children: [
3235
- /* @__PURE__ */ U("h2", {
3123
+ /* @__PURE__ */ H("h2", {
3236
3124
  className: "text-xl font-semibold tracking-tight",
3237
3125
  children: t("errorBoundary.title", "Something went wrong")
3238
3126
  }),
3239
- /* @__PURE__ */ U("p", {
3127
+ /* @__PURE__ */ H("p", {
3240
3128
  className: "text-sm text-muted-foreground leading-relaxed max-w-xs mx-auto",
3241
3129
  children: t("errorBoundary.description", "An unexpected error occurred. Try reloading the page.")
3242
3130
  }),
3243
- e.message && /* @__PURE__ */ U("pre", {
3131
+ e.message && /* @__PURE__ */ H("pre", {
3244
3132
  className: "mt-3 text-xs text-left text-muted-foreground bg-muted/40 rounded-md p-3 max-h-32 overflow-auto whitespace-pre-wrap break-words",
3245
3133
  children: e.message
3246
3134
  })
3247
3135
  ]
3248
3136
  }),
3249
- /* @__PURE__ */ W(v, {
3137
+ /* @__PURE__ */ U(v, {
3250
3138
  size: "lg",
3251
3139
  onClick: () => window.location.reload(),
3252
- children: [/* @__PURE__ */ U($e, { className: "size-4" }), t("errorBoundary.reload", "Reload page")]
3140
+ children: [/* @__PURE__ */ H(ct, { className: "size-4" }), t("errorBoundary.reload", "Reload page")]
3253
3141
  })
3254
3142
  ]
3255
3143
  })
@@ -3258,8 +3146,8 @@ function vo({ error: e }) {
3258
3146
  }
3259
3147
  //#endregion
3260
3148
  //#region src/components/language-select.tsx
3261
- function yo({ value: e, onValueChange: t, locales: n, extraLocaleValues: r = [], placeholder: i, className: a }) {
3262
- let { t: o } = G(), s = i ?? o("forms.common.chooseLanguage"), c = /* @__PURE__ */ new Map();
3149
+ function lo({ value: e, onValueChange: t, locales: n, extraLocaleValues: r = [], placeholder: i, className: a }) {
3150
+ let { t: o } = W(), s = i ?? o("forms.common.chooseLanguage"), c = /* @__PURE__ */ new Map();
3263
3151
  n.forEach((e) => {
3264
3152
  c.set(e.initials, {
3265
3153
  name: e.en,
@@ -3276,34 +3164,34 @@ function yo({ value: e, onValueChange: t, locales: n, extraLocaleValues: r = [],
3276
3164
  name: t.name,
3277
3165
  label: t.label
3278
3166
  })), u = l.find((t) => t.value === e);
3279
- return /* @__PURE__ */ W(yr, {
3167
+ return /* @__PURE__ */ U(vr, {
3280
3168
  value: e,
3281
3169
  onValueChange: t,
3282
- children: [/* @__PURE__ */ U(Sr, {
3170
+ children: [/* @__PURE__ */ H(xr, {
3283
3171
  className: a,
3284
3172
  "aria-label": s,
3285
- children: u ? /* @__PURE__ */ W("div", {
3173
+ children: u ? /* @__PURE__ */ U("div", {
3286
3174
  className: "flex items-center gap-2 truncate",
3287
- children: [/* @__PURE__ */ U(S, { locale: u.value }), /* @__PURE__ */ U("span", {
3175
+ children: [/* @__PURE__ */ H(x, { locale: u.value }), /* @__PURE__ */ H("span", {
3288
3176
  className: "truncate",
3289
3177
  children: u.label
3290
3178
  })]
3291
- }) : /* @__PURE__ */ U("span", {
3179
+ }) : /* @__PURE__ */ H("span", {
3292
3180
  className: "text-muted-foreground",
3293
3181
  children: s
3294
3182
  })
3295
- }), /* @__PURE__ */ U(Cr, { children: l.map((e) => /* @__PURE__ */ U(Tr, {
3183
+ }), /* @__PURE__ */ H(Sr, { children: l.map((e) => /* @__PURE__ */ H(wr, {
3296
3184
  value: e.value,
3297
- children: /* @__PURE__ */ W("div", {
3185
+ children: /* @__PURE__ */ U("div", {
3298
3186
  className: "flex items-center gap-2",
3299
- children: [/* @__PURE__ */ U(S, { locale: e.value }), /* @__PURE__ */ U("span", { children: e.label })]
3187
+ children: [/* @__PURE__ */ H(x, { locale: e.value }), /* @__PURE__ */ H("span", { children: e.label })]
3300
3188
  })
3301
3189
  }, e.value)) })]
3302
3190
  });
3303
3191
  }
3304
3192
  //#endregion
3305
3193
  //#region src/components/language-switcher.tsx
3306
- var bo = [{
3194
+ var uo = [{
3307
3195
  code: "en",
3308
3196
  label: "English",
3309
3197
  flag: "🇺🇸"
@@ -3312,24 +3200,24 @@ var bo = [{
3312
3200
  label: "Português",
3313
3201
  flag: "🇧🇷"
3314
3202
  }];
3315
- function xo({ languages: e = bo }) {
3316
- let { i18n: t, t: n } = G();
3317
- return /* @__PURE__ */ W(E, { children: [/* @__PURE__ */ U(M, {
3203
+ function fo({ languages: e = uo }) {
3204
+ let { i18n: t, t: n } = W();
3205
+ return /* @__PURE__ */ U(be, { children: [/* @__PURE__ */ H(k, {
3318
3206
  asChild: !0,
3319
- children: /* @__PURE__ */ W(v, {
3207
+ children: /* @__PURE__ */ U(v, {
3320
3208
  variant: "outline",
3321
3209
  size: "sm",
3322
- children: [/* @__PURE__ */ U(Rt, { className: "h-[1.2rem] w-[1.2rem]" }), /* @__PURE__ */ U("span", {
3210
+ children: [/* @__PURE__ */ H(Bt, { className: "h-[1.2rem] w-[1.2rem]" }), /* @__PURE__ */ H("span", {
3323
3211
  className: "sr-only",
3324
3212
  children: n("language.toggle")
3325
3213
  })]
3326
3214
  })
3327
- }), /* @__PURE__ */ U(ie, {
3215
+ }), /* @__PURE__ */ H(F, {
3328
3216
  align: "end",
3329
- children: e.map((e) => /* @__PURE__ */ W(D, {
3217
+ children: e.map((e) => /* @__PURE__ */ U(O, {
3330
3218
  onClick: () => t.changeLanguage(e.code),
3331
3219
  className: t.language === e.code ? "font-semibold bg-accent" : "",
3332
- children: [e.flag && /* @__PURE__ */ U("span", {
3220
+ children: [e.flag && /* @__PURE__ */ H("span", {
3333
3221
  className: "mr-2",
3334
3222
  children: e.flag
3335
3223
  }), e.label]
@@ -3338,8 +3226,8 @@ function xo({ languages: e = bo }) {
3338
3226
  }
3339
3227
  //#endregion
3340
3228
  //#region src/components/theme-provider.tsx
3341
- function So({ children: e, defaultTheme: t = "system", storageKey: n = "vite-ui-theme", ...r }) {
3342
- return /* @__PURE__ */ U(ft, {
3229
+ function po({ children: e, defaultTheme: t = "system", storageKey: n = "vite-ui-theme", ...r }) {
3230
+ return /* @__PURE__ */ H(_t, {
3343
3231
  attribute: "class",
3344
3232
  enableSystem: !0,
3345
3233
  defaultTheme: t,
@@ -3348,8 +3236,8 @@ function So({ children: e, defaultTheme: t = "system", storageKey: n = "vite-ui-
3348
3236
  children: e
3349
3237
  });
3350
3238
  }
3351
- var Co = () => {
3352
- let { theme: e, setTheme: t } = pt();
3239
+ var mo = () => {
3240
+ let { theme: e, setTheme: t } = vt();
3353
3241
  return {
3354
3242
  theme: e ?? "system",
3355
3243
  setTheme: t
@@ -3357,104 +3245,104 @@ var Co = () => {
3357
3245
  };
3358
3246
  //#endregion
3359
3247
  //#region src/components/mode-toggle.tsx
3360
- function wo() {
3361
- let { setTheme: e } = Co(), { t } = G();
3362
- return /* @__PURE__ */ W(E, { children: [/* @__PURE__ */ U(M, {
3248
+ function ho() {
3249
+ let { setTheme: e } = mo(), { t } = W();
3250
+ return /* @__PURE__ */ U(be, { children: [/* @__PURE__ */ H(k, {
3363
3251
  asChild: !0,
3364
- children: /* @__PURE__ */ W(v, {
3252
+ children: /* @__PURE__ */ U(v, {
3365
3253
  variant: "outline",
3366
3254
  size: "sm",
3367
3255
  children: [
3368
- /* @__PURE__ */ U(Xt, { className: "h-[1.2rem] w-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90" }),
3369
- /* @__PURE__ */ U(Kt, { className: "absolute h-[1.2rem] w-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0" }),
3370
- /* @__PURE__ */ U("span", {
3256
+ /* @__PURE__ */ H(Qt, { className: "h-[1.2rem] w-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90" }),
3257
+ /* @__PURE__ */ H(Jt, { className: "absolute h-[1.2rem] w-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0" }),
3258
+ /* @__PURE__ */ H("span", {
3371
3259
  className: "sr-only",
3372
3260
  children: t("theme.toggle")
3373
3261
  })
3374
3262
  ]
3375
3263
  })
3376
- }), /* @__PURE__ */ W(ie, {
3264
+ }), /* @__PURE__ */ U(F, {
3377
3265
  align: "end",
3378
3266
  children: [
3379
- /* @__PURE__ */ U(D, {
3267
+ /* @__PURE__ */ H(O, {
3380
3268
  onClick: () => e("light"),
3381
3269
  children: t("theme.light")
3382
3270
  }),
3383
- /* @__PURE__ */ U(D, {
3271
+ /* @__PURE__ */ H(O, {
3384
3272
  onClick: () => e("dark"),
3385
3273
  children: t("theme.dark")
3386
3274
  }),
3387
- /* @__PURE__ */ U(D, {
3275
+ /* @__PURE__ */ H(O, {
3388
3276
  onClick: () => e("system"),
3389
3277
  children: t("theme.system")
3390
3278
  })
3391
3279
  ]
3392
3280
  })] });
3393
3281
  }
3394
- var To = [
3282
+ var go = [
3395
3283
  {
3396
3284
  value: "light",
3397
3285
  labelKey: "theme.light",
3398
- icon: Xt
3286
+ icon: Qt
3399
3287
  },
3400
3288
  {
3401
3289
  value: "dark",
3402
3290
  labelKey: "theme.dark",
3403
- icon: Kt
3291
+ icon: Jt
3404
3292
  },
3405
3293
  {
3406
3294
  value: "system",
3407
3295
  labelKey: "theme.system",
3408
- icon: Wt
3296
+ icon: Kt
3409
3297
  }
3410
3298
  ];
3411
- function Eo() {
3412
- let { theme: e, setTheme: t } = Co(), { t: n } = G(), r = To.find((t) => t.value === e) ?? To[2];
3299
+ function _o() {
3300
+ let { theme: e, setTheme: t } = mo(), { t: n } = W(), r = go.find((t) => t.value === e) ?? go[2];
3413
3301
  function i() {
3414
- let n = To[(To.findIndex((t) => t.value === e) + 1) % To.length];
3302
+ let n = go[(go.findIndex((t) => t.value === e) + 1) % go.length];
3415
3303
  t(n.value);
3416
3304
  }
3417
3305
  let a = r.icon;
3418
- return /* @__PURE__ */ W("button", {
3306
+ return /* @__PURE__ */ U("button", {
3419
3307
  type: "button",
3420
3308
  title: n("theme.toggle"),
3421
3309
  onClick: i,
3422
3310
  className: "md:hidden flex items-center gap-3 rounded-lg px-3 py-2 text-sm text-sidebar-foreground hover:bg-sidebar-accent transition-colors w-full",
3423
- children: [/* @__PURE__ */ U(a, { className: "size-4 shrink-0" }), /* @__PURE__ */ U("span", { children: n("theme.modeLabel", { mode: n(r.labelKey) }) })]
3311
+ children: [/* @__PURE__ */ H(a, { className: "size-4 shrink-0" }), /* @__PURE__ */ H("span", { children: n("theme.modeLabel", { mode: n(r.labelKey) }) })]
3424
3312
  });
3425
3313
  }
3426
3314
  //#endregion
3427
3315
  //#region src/components/nav-secondary.tsx
3428
- function Do({ items: e, ...t }) {
3429
- return /* @__PURE__ */ U(li, {
3316
+ function vo({ items: e, ...t }) {
3317
+ return /* @__PURE__ */ H(ii, {
3430
3318
  ...t,
3431
- children: /* @__PURE__ */ U(fi, { children: /* @__PURE__ */ U(pi, { children: e.map((e) => /* @__PURE__ */ U(mi, { children: /* @__PURE__ */ U(gi, {
3319
+ children: /* @__PURE__ */ H(si, { children: /* @__PURE__ */ H(ci, { children: e.map((e) => /* @__PURE__ */ H(li, { children: /* @__PURE__ */ H(di, {
3432
3320
  asChild: !0,
3433
- children: /* @__PURE__ */ W("a", {
3321
+ children: /* @__PURE__ */ U("a", {
3434
3322
  href: e.url,
3435
- children: [/* @__PURE__ */ U(e.icon, {}), /* @__PURE__ */ U("span", { children: e.title })]
3323
+ children: [/* @__PURE__ */ H(e.icon, {}), /* @__PURE__ */ H("span", { children: e.title })]
3436
3324
  })
3437
3325
  }) }, e.title)) }) })
3438
3326
  });
3439
3327
  }
3440
3328
  //#endregion
3441
3329
  //#region src/components/viglet-app-switcher.tsx
3442
- var Oo = {
3330
+ var yo = {
3443
3331
  cloud: "https://console.viglet.cloud",
3444
3332
  turing: "https://turing.viglet.cloud",
3445
3333
  shio: "https://shio.viglet.cloud",
3446
3334
  dumont: "https://dumont.viglet.cloud",
3447
3335
  docs: "https://docs.viglet.org"
3448
3336
  };
3449
- function ko({ open: e, onToggle: t, activeProduct: n, urls: r, triggerTitle: i, closeLabel: a, headerHeight: o = 56 }) {
3450
- let { t: s } = G(), c = {
3451
- ...Oo,
3337
+ function bo({ open: e, onToggle: t, activeProduct: n, urls: r, triggerTitle: i, closeLabel: a, headerHeight: o = 56 }) {
3338
+ let { t: s } = W(), c = {
3339
+ ...yo,
3452
3340
  ...r
3453
3341
  }, l = [
3454
3342
  {
3455
3343
  id: "cloud",
3456
3344
  name: "Viglet Cloud",
3457
- icon: /* @__PURE__ */ U(At, { className: "h-4 w-4" }),
3345
+ icon: /* @__PURE__ */ H(Pt, { className: "h-4 w-4" }),
3458
3346
  iconBg: "bg-linear-to-br from-[#C2410C] to-[#F97316]",
3459
3347
  href: n === "cloud" ? "/" : c.cloud,
3460
3348
  external: n !== "cloud",
@@ -3463,7 +3351,7 @@ function ko({ open: e, onToggle: t, activeProduct: n, urls: r, triggerTitle: i,
3463
3351
  {
3464
3352
  id: "turing",
3465
3353
  name: "Turing ES",
3466
- image: Oe,
3354
+ image: Ie,
3467
3355
  href: n === "turing" ? "/" : c.turing,
3468
3356
  external: n !== "turing",
3469
3357
  active: n === "turing"
@@ -3471,7 +3359,7 @@ function ko({ open: e, onToggle: t, activeProduct: n, urls: r, triggerTitle: i,
3471
3359
  {
3472
3360
  id: "shio",
3473
3361
  name: "Shio CMS",
3474
- image: Ae,
3362
+ image: Re,
3475
3363
  href: n === "shio" ? "/" : c.shio,
3476
3364
  external: n !== "shio",
3477
3365
  active: n === "shio"
@@ -3479,7 +3367,7 @@ function ko({ open: e, onToggle: t, activeProduct: n, urls: r, triggerTitle: i,
3479
3367
  {
3480
3368
  id: "dumont",
3481
3369
  name: "Dumont DEP",
3482
- image: ke,
3370
+ image: Le,
3483
3371
  href: n === "dumont" ? "/" : c.dumont,
3484
3372
  external: n !== "dumont",
3485
3373
  active: n === "dumont"
@@ -3487,13 +3375,13 @@ function ko({ open: e, onToggle: t, activeProduct: n, urls: r, triggerTitle: i,
3487
3375
  {
3488
3376
  id: "docs",
3489
3377
  name: s("common.docs", { defaultValue: "Documentation" }),
3490
- icon: /* @__PURE__ */ U(St, { className: "h-4 w-4" }),
3378
+ icon: /* @__PURE__ */ H(Et, { className: "h-4 w-4" }),
3491
3379
  iconBg: "bg-linear-to-br from-violet-500 to-purple-600",
3492
3380
  href: c.docs,
3493
3381
  external: !0
3494
3382
  }
3495
3383
  ], u = i ?? s("common.apps", { defaultValue: "Apps" });
3496
- return /* @__PURE__ */ U(so, {
3384
+ return /* @__PURE__ */ H(Qa, {
3497
3385
  open: e,
3498
3386
  onToggle: t,
3499
3387
  apps: l,
@@ -3504,19 +3392,19 @@ function ko({ open: e, onToggle: t, activeProduct: n, urls: r, triggerTitle: i,
3504
3392
  }
3505
3393
  //#endregion
3506
3394
  //#region src/hooks/use-date-locale.ts
3507
- var Ao = {
3508
- en: vt,
3509
- pt: yt
3395
+ var xo = {
3396
+ en: St,
3397
+ pt: Ct
3510
3398
  };
3511
- function jo() {
3512
- let { i18n: e } = G();
3513
- return Fe(() => Ao[e.language?.substring(0, 2)] ?? vt, [e.language]);
3399
+ function So() {
3400
+ let { i18n: e } = W();
3401
+ return We(() => xo[e.language?.substring(0, 2)] ?? St, [e.language]);
3514
3402
  }
3515
3403
  //#endregion
3516
3404
  //#region src/hooks/use-grid-adapter.ts
3517
- function Mo(e, t) {
3405
+ function Co(e, t) {
3518
3406
  let { id: n, name: r, description: i, url: a, icon: o } = t;
3519
- return Fe(() => {
3407
+ return We(() => {
3520
3408
  if (!Array.isArray(e) || e.length === 0) return [];
3521
3409
  let t = (e, t) => {
3522
3410
  if (typeof t == "function") return t(e);
@@ -3547,15 +3435,15 @@ function Mo(e, t) {
3547
3435
  }
3548
3436
  //#endregion
3549
3437
  //#region src/contexts/breadcrumb.context.tsx
3550
- var No = Me(void 0);
3551
- function Po({ children: e }) {
3552
- let [t, n] = Ie([]), r = Ne((e) => {
3438
+ var wo = Ve(void 0);
3439
+ function To({ children: e }) {
3440
+ let [t, n] = Ge([]), r = He((e) => {
3553
3441
  n((t) => t.length > 0 && t[t.length - 1].label === e.label ? t : [...t, e]);
3554
- }, []), i = Ne(() => {
3442
+ }, []), i = He(() => {
3555
3443
  n((e) => e.slice(0, -1));
3556
- }, []), a = Ne((e = []) => {
3444
+ }, []), a = He((e = []) => {
3557
3445
  n(e);
3558
- }, []), o = Fe(() => ({
3446
+ }, []), o = We(() => ({
3559
3447
  items: t,
3560
3448
  setItems: n,
3561
3449
  pushItem: r,
@@ -3567,21 +3455,21 @@ function Po({ children: e }) {
3567
3455
  i,
3568
3456
  a
3569
3457
  ]);
3570
- return /* @__PURE__ */ U(No.Provider, {
3458
+ return /* @__PURE__ */ H(wo.Provider, {
3571
3459
  value: o,
3572
3460
  children: e
3573
3461
  });
3574
3462
  }
3575
- var Fo = () => {
3576
- let e = Pe(No);
3463
+ var Eo = () => {
3464
+ let e = Ue(wo);
3577
3465
  if (!e) throw Error("useBreadcrumb must be used within Provider");
3578
3466
  return e;
3579
- }, Io = () => Pe(No);
3467
+ }, Do = () => Ue(wo);
3580
3468
  //#endregion
3581
3469
  //#region src/hooks/use-sub-page-breadcrumb.ts
3582
- function Lo(e) {
3583
- let t = Io()?.setItems, n = H([]);
3584
- V(() => {
3470
+ function Oo(e) {
3471
+ let t = Do()?.setItems, n = V([]);
3472
+ B(() => {
3585
3473
  if (e === void 0 || !t) return;
3586
3474
  let r = typeof e == "string" ? [{ label: e }] : Array.isArray(e) ? e : [e], i = n.current;
3587
3475
  i.length === r.length && i.every((e, t) => e.label === r[t].label && e.href === r[t].href) || t((e) => {
@@ -3597,7 +3485,7 @@ function Lo(e) {
3597
3485
  ...o
3598
3486
  ];
3599
3487
  });
3600
- }, [e, t]), V(() => () => {
3488
+ }, [e, t]), B(() => () => {
3601
3489
  let e = n.current;
3602
3490
  e.length > 0 && t && t((t) => {
3603
3491
  let n = t.indexOf(e[0]);
@@ -3607,28 +3495,28 @@ function Lo(e) {
3607
3495
  }
3608
3496
  //#endregion
3609
3497
  //#region src/hooks/use-assistant-notifications.ts
3610
- var Ro = {
3498
+ var ko = {
3611
3499
  loading: "working",
3612
3500
  success: "success",
3613
3501
  error: "error",
3614
3502
  warning: "attention",
3615
3503
  info: "attention"
3616
- }, zo = [
3504
+ }, Ao = [
3617
3505
  "working",
3618
3506
  "error",
3619
3507
  "attention",
3620
3508
  "success"
3621
3509
  ];
3622
- function Bo(e) {
3510
+ function jo(e) {
3623
3511
  let { title: t } = e;
3624
3512
  return typeof t == "string" ? t : typeof t == "number" ? String(t) : null;
3625
3513
  }
3626
- function Vo() {
3627
- let { toasts: e } = mt(), t = e.filter((e) => !e.delete), n = "idle", r = null;
3628
- for (let e of zo) {
3629
- let i = t.find((t) => Ro[t.type ?? ""] === e);
3514
+ function Mo() {
3515
+ let { toasts: e } = yt(), t = e.filter((e) => !e.delete), n = "idle", r = null;
3516
+ for (let e of Ao) {
3517
+ let i = t.find((t) => ko[t.type ?? ""] === e);
3630
3518
  if (i) {
3631
- n = e, r = Bo(i);
3519
+ n = e, r = jo(i);
3632
3520
  break;
3633
3521
  }
3634
3522
  }
@@ -3640,8 +3528,8 @@ function Vo() {
3640
3528
  }
3641
3529
  //#endregion
3642
3530
  //#region src/lib/axios.ts
3643
- var Ho = "X-XSRF-TOKEN", Uo = "/csrf", $ = null, Wo = Y.create({ withCredentials: !0 });
3644
- function Go(e) {
3531
+ var No = "X-XSRF-TOKEN", Po = "/csrf", $ = null, Fo = Y.create({ withCredentials: !0 });
3532
+ function Io(e) {
3645
3533
  return [
3646
3534
  "post",
3647
3535
  "put",
@@ -3649,58 +3537,58 @@ function Go(e) {
3649
3537
  "patch"
3650
3538
  ].includes(e?.toLowerCase() || "");
3651
3539
  }
3652
- function Ko(e) {
3653
- return e ? typeof e == "object" && e && "get" in e && typeof e.get == "function" ? e.get(Ho) || null : typeof e == "object" && e && e[Ho.toLowerCase()] || null : null;
3540
+ function Lo(e) {
3541
+ return e ? typeof e == "object" && e && "get" in e && typeof e.get == "function" ? e.get(No) || null : typeof e == "object" && e && e[No.toLowerCase()] || null : null;
3654
3542
  }
3655
- function qo(e, t) {
3543
+ function Ro(e, t) {
3656
3544
  if (typeof e.headers == "object" && e.headers !== null && "set" in e.headers && typeof e.headers.set == "function") {
3657
- e.headers.set(Ho, t);
3545
+ e.headers.set(No, t);
3658
3546
  return;
3659
3547
  }
3660
3548
  let n = e.headers || {};
3661
- n[Ho] = t, e.headers = n;
3549
+ n[No] = t, e.headers = n;
3662
3550
  }
3663
- function Jo() {
3664
- $ = null, Xo = null;
3551
+ function zo() {
3552
+ $ = null, Vo = null;
3665
3553
  }
3666
- function Yo() {
3554
+ function Bo() {
3667
3555
  let e = /(?:^|;\s*)XSRF-TOKEN=([^;]+)/.exec(globalThis.document.cookie);
3668
3556
  return e ? decodeURIComponent(e[1]) : null;
3669
3557
  }
3670
- var Xo = null;
3671
- async function Zo() {
3672
- Wo.defaults.baseURL = Y.defaults.baseURL;
3673
- let e = await Wo.get(Uo), t = Ko(e.headers), n = typeof e.data == "object" && e.data !== null ? e.data.token : void 0, r = Yo();
3558
+ var Vo = null;
3559
+ async function Ho() {
3560
+ Fo.defaults.baseURL = Y.defaults.baseURL;
3561
+ let e = await Fo.get(Po), t = Lo(e.headers), n = typeof e.data == "object" && e.data !== null ? e.data.token : void 0, r = Bo();
3674
3562
  $ = t || n || r || null;
3675
3563
  }
3676
- async function Qo() {
3564
+ async function Uo() {
3677
3565
  if (!$) {
3678
- if (!Xo) {
3679
- let e = Zo().finally(() => {
3680
- Xo === e && (Xo = null);
3566
+ if (!Vo) {
3567
+ let e = Ho().finally(() => {
3568
+ Vo === e && (Vo = null);
3681
3569
  });
3682
- Xo = e;
3570
+ Vo = e;
3683
3571
  }
3684
- await Xo;
3572
+ await Vo;
3685
3573
  }
3686
3574
  }
3687
- function $o(e = {}) {
3575
+ function Wo(e = {}) {
3688
3576
  let t = e.loginPath ?? "/login";
3689
- e.baseURL && (Y.defaults.baseURL = e.baseURL), Y.defaults.withCredentials = !0, Y.defaults.xsrfCookieName = "XSRF-TOKEN", Y.defaults.xsrfHeaderName = Ho, Y.interceptors.request.use(async (e) => {
3577
+ e.baseURL && (Y.defaults.baseURL = e.baseURL), Y.defaults.withCredentials = !0, Y.defaults.xsrfCookieName = "XSRF-TOKEN", Y.defaults.xsrfHeaderName = No, Y.interceptors.request.use(async (e) => {
3690
3578
  let t = e.url || "", n = e.baseURL || Y.defaults.baseURL;
3691
- if (Wo.defaults.baseURL = n, t.includes(Uo) || !Go(e.method)) return e;
3692
- if ($ || await Qo(), !$) throw Error("Unable to obtain CSRF token for mutating request.");
3693
- return qo(e, $), e;
3579
+ if (Fo.defaults.baseURL = n, t.includes(Po) || !Io(e.method)) return e;
3580
+ if ($ || await Uo(), !$) throw Error("Unable to obtain CSRF token for mutating request.");
3581
+ return Ro(e, $), e;
3694
3582
  }, (e) => Promise.reject(e)), Y.interceptors.response.use((e) => {
3695
- let t = Ko(e.headers);
3583
+ let t = Lo(e.headers);
3696
3584
  return t && ($ = t), e;
3697
3585
  }, async (e) => {
3698
- let n = Ko(e.response?.headers);
3586
+ let n = Lo(e.response?.headers);
3699
3587
  n && ($ = n);
3700
3588
  let r = e.config;
3701
- if (e.response?.status === 403 && r && !r._csrfRetried && Go(r.method)) {
3702
- if (r._csrfRetried = !0, Jo(), Wo.defaults.baseURL = r.baseURL || Y.defaults.baseURL, await Qo(), !$) throw e;
3703
- return qo(r, $), Y.request(r);
3589
+ if (e.response?.status === 403 && r && !r._csrfRetried && Io(r.method)) {
3590
+ if (r._csrfRetried = !0, zo(), Fo.defaults.baseURL = r.baseURL || Y.defaults.baseURL, await Uo(), !$) throw e;
3591
+ return Ro(r, $), Y.request(r);
3704
3592
  }
3705
3593
  if (e.response?.status === 401 && !globalThis.location.pathname.startsWith(t)) {
3706
3594
  let e = globalThis.location.pathname + globalThis.location.search;
@@ -3711,15 +3599,15 @@ function $o(e = {}) {
3711
3599
  }
3712
3600
  //#endregion
3713
3601
  //#region src/lib/export-xlsx.ts
3714
- var es = /[[\]:*?/\\]/g, ts = 31;
3715
- function ns(e) {
3716
- return e.replace(es, " ").trim().slice(0, ts) || "Sheet1";
3602
+ var Go = /[[\]:*?/\\]/g, Ko = 31;
3603
+ function qo(e) {
3604
+ return e.replace(Go, " ").trim().slice(0, Ko) || "Sheet1";
3717
3605
  }
3718
- function rs(e) {
3606
+ function Jo(e) {
3719
3607
  return Array.isArray(e) ? e.join(", ") : e instanceof Date ? e.toISOString() : e;
3720
3608
  }
3721
- function is(e, t, n, r) {
3722
- let i = t.map((e) => e.label), a = e.map((e) => t.map((t) => rs(e[t.key]))), o = bt.utils.aoa_to_sheet([i, ...a]);
3609
+ function Yo(e, t, n, r) {
3610
+ let i = t.map((e) => e.label), a = e.map((e) => t.map((t) => Jo(e[t.key]))), o = wt.utils.aoa_to_sheet([i, ...a]);
3723
3611
  o["!cols"] = t.map((e, t) => {
3724
3612
  let n = e.label.length;
3725
3613
  for (let e of a) {
@@ -3728,8 +3616,8 @@ function is(e, t, n, r) {
3728
3616
  }
3729
3617
  return { wch: Math.min(Math.max(n + 2, 12), 60) };
3730
3618
  });
3731
- let s = bt.utils.book_new();
3732
- bt.utils.book_append_sheet(s, o, ns(r ?? n)), bt.writeFile(s, `${n}.xlsx`);
3619
+ let s = wt.utils.book_new();
3620
+ wt.utils.book_append_sheet(s, o, qo(r ?? n)), wt.writeFile(s, `${n}.xlsx`);
3733
3621
  }
3734
3622
  //#endregion
3735
- export { Zt as Accordion, en as AccordionContent, Qt as AccordionItem, $t as AccordionTrigger, oo as AppFooter, so as AppSwitcher, tn as Avatar, rn as AvatarFallback, nn as AvatarImage, go as BackendStatusBanner, ho as BackendStatusProvider, c as Badge, b as BadgeColorful, S as BadgeLocale, an as Breadcrumb, dn as BreadcrumbEllipsis, sn as BreadcrumbItem, cn as BreadcrumbLink, on as BreadcrumbList, ln as BreadcrumbPage, Po as BreadcrumbProvider, un as BreadcrumbSeparator, R as Button, fn as Card, gn as CardAction, _n as CardContent, hn as CardDescription, vn as CardFooter, pn as CardHeader, mn as CardTitle, F as Checkbox, l as Dialog, h as DialogClose, C as DialogContent, u as DialogDescription, d as DialogFooter, y as DialogHeader, g as DialogOverlay, p as DialogPortal, f as DialogTitle, o as DialogTrigger, yn as Drawer, Sn as DrawerClose, wn as DrawerContent, On as DrawerDescription, En as DrawerFooter, Tn as DrawerHeader, Cn as DrawerOverlay, xn as DrawerPortal, Dn as DrawerTitle, bn as DrawerTrigger, E as DropdownMenu, we as DropdownMenuCheckboxItem, ie as DropdownMenuContent, O as DropdownMenuGroup, D as DropdownMenuItem, te as DropdownMenuLabel, L as DropdownMenuPortal, T as DropdownMenuRadioGroup, me as DropdownMenuRadioItem, N as DropdownMenuSeparator, P as DropdownMenuShortcut, ne as DropdownMenuSub, k as DropdownMenuSubContent, j as DropdownMenuSubTrigger, M as DropdownMenuTrigger, _o as ErrorBoundary, De as FloatingFormulasBg, An as Form, Bn as FormActions, Ln as FormControl, Rn as FormDescription, Mn as FormField, Fn as FormItem, Wn as FormItemTwoColumns, In as FormLabel, zn as FormMessage, Jn as GlassCard, v as GradientButton, Kn as GradientSwitch, Xn as HoverCard, Qn as HoverCardContent, Zn as HoverCardTrigger, re as IconPickerDialog, s as Input, kn as Label, yo as LanguageSelect, xo as LanguageSwitcher, Ga as Login, wo as ModeToggle, Eo as ModeToggleSidebar, Do as NavSecondary, $n as NavigationMenu, ir as NavigationMenuContent, sr as NavigationMenuIndicator, tr as NavigationMenuItem, or as NavigationMenuLink, er as NavigationMenuList, rr as NavigationMenuTrigger, ar as NavigationMenuViewport, cr as Pagination, lr as PaginationContent, mr as PaginationEllipsis, ur as PaginationItem, dr as PaginationLink, pr as PaginationNext, fr as PaginationPrevious, I as Popover, fe as PopoverAnchor, oe as PopoverContent, Ce as PopoverDescription, Ee as PopoverHeader, ce as PopoverTitle, Te as PopoverTrigger, hr as Progress, Yn as PulseRing, vr as ResizableHandle, _r as ResizablePanel, gr as ResizablePanelGroup, ye as SectionCard, yr as Select, Cr as SelectContent, br as SelectGroup, Tr as SelectItem, wr as SelectLabel, Or as SelectScrollDownButton, Dr as SelectScrollUpButton, Er as SelectSeparator, Sr as SelectTrigger, xr as SelectValue, kr as Separator, Ar as Sheet, Mr as SheetClose, Fr as SheetContent, zr as SheetDescription, Lr as SheetFooter, Ir as SheetHeader, Rr as SheetTitle, jr as SheetTrigger, ei as Sidebar, ci as SidebarContent, oi as SidebarFooter, li as SidebarGroup, di as SidebarGroupAction, fi as SidebarGroupContent, ui as SidebarGroupLabel, ai as SidebarHeader, ii as SidebarInput, ri as SidebarInset, pi as SidebarMenu, _i as SidebarMenuAction, vi as SidebarMenuBadge, gi as SidebarMenuButton, mi as SidebarMenuItem, bi as SidebarMenuSkeleton, xi as SidebarMenuSub, Ci as SidebarMenuSubButton, Si as SidebarMenuSubItem, $r as SidebarProvider, ni as SidebarRail, si as SidebarSeparator, ti as SidebarTrigger, m as Skeleton, Di as Slider, ao as StartupFirst, Li as Stepper, Ti as StickySaveBar, Bi as Switch, Vi as Table, Ui as TableBody, Ji as TableCaption, qi as TableCell, Wi as TableFooter, Ki as TableHead, Hi as TableHeader, Gi as TableRow, Yi as Tabs, Qi as TabsContent, Xi as TabsList, Zi as TabsTrigger, $i as Textarea, So as ThemeProvider, be as Toaster, ta as Toggle, ra as ToggleGroup, ia as ToggleGroupItem, he as Tooltip, Se as TooltipContent, ue as TooltipProvider, de as TooltipTrigger, Pi as Tree, se as UserAvatar, ja as UserMenu, xe as UserProvider, ko as VigletAppSwitcher, Aa as VigletAssistant, Sa as VigletAvatar, w as badgeVariants, ee as buttonVariants, r as cn, is as exportToXlsx, t as getFlagEmoji, n as getHashedColor, _ as getLocaleCountryCode, ve as getUserInitials, x as gradientButtonVariants, Gn as gradientSwitchVariants, nr as navigationMenuTriggerStyle, uo as reportBackendOffline, fo as reportBackendOnline, ge as sectionCardColorVariants, $o as setupAxiosInterceptors, le as toast, ea as toggleVariants, Fi as treeFromPaths, e as truncateMiddle, Vo as useAssistantNotifications, mo as useBackendStatus, Fo as useBreadcrumb, Io as useBreadcrumbOptional, _e as useCurrentUser, jo as useDateLocale, Nn as useFormField, Mo as useGridAdapter, Ur as useIsMobile, Zr as useSidebar, Qr as useSidebarOptional, Lo as useSubPageBreadcrumb, Co as useTheme };
3623
+ export { $t as Accordion, nn as AccordionContent, en as AccordionItem, tn as AccordionTrigger, Za as AppFooter, Qa as AppSwitcher, rn as Avatar, on as AvatarFallback, an as AvatarImage, oo as BackendStatusBanner, ao as BackendStatusProvider, c as Badge, ee as BadgeColorful, x as BadgeLocale, sn as Breadcrumb, pn as BreadcrumbEllipsis, ln as BreadcrumbItem, un as BreadcrumbLink, cn as BreadcrumbList, dn as BreadcrumbPage, To as BreadcrumbProvider, fn as BreadcrumbSeparator, R as Button, mn as Card, vn as CardAction, yn as CardContent, _n as CardDescription, bn as CardFooter, hn as CardHeader, gn as CardTitle, N as Checkbox, l as Dialog, h as DialogClose, S as DialogContent, u as DialogDescription, d as DialogFooter, y as DialogHeader, g as DialogOverlay, p as DialogPortal, f as DialogTitle, o as DialogTrigger, xn as Drawer, wn as DrawerClose, En as DrawerContent, An as DrawerDescription, On as DrawerFooter, Dn as DrawerHeader, Tn as DrawerOverlay, Cn as DrawerPortal, kn as DrawerTitle, Sn as DrawerTrigger, be as DropdownMenu, ne as DropdownMenuCheckboxItem, F as DropdownMenuContent, ie as DropdownMenuGroup, O as DropdownMenuItem, j as DropdownMenuLabel, P as DropdownMenuPortal, ae as DropdownMenuRadioGroup, Pe as DropdownMenuRadioItem, T as DropdownMenuSeparator, le as DropdownMenuShortcut, A as DropdownMenuSub, ce as DropdownMenuSubContent, ue as DropdownMenuSubTrigger, k as DropdownMenuTrigger, so as ErrorBoundary, Fe as FloatingFormulasBg, Mn as Form, Hn as FormActions, zn as FormControl, Bn as FormDescription, Pn as FormField, Ln as FormItem, Kn as FormItemTwoColumns, Rn as FormLabel, Vn as FormMessage, Xn as GlassCard, v as GradientButton, Jn as GradientSwitch, Qn as HoverCard, er as HoverCardContent, $n as HoverCardTrigger, w as IconPickerDialog, s as Input, jn as Label, lo as LanguageSelect, fo as LanguageSwitcher, Ia as Login, ho as ModeToggle, _o as ModeToggleSidebar, vo as NavSecondary, tr as NavigationMenu, or as NavigationMenuContent, lr as NavigationMenuIndicator, rr as NavigationMenuItem, cr as NavigationMenuLink, nr as NavigationMenuList, ar as NavigationMenuTrigger, sr as NavigationMenuViewport, ur as Pagination, dr as PaginationContent, gr as PaginationEllipsis, fr as PaginationItem, pr as PaginationLink, hr as PaginationNext, mr as PaginationPrevious, te as Popover, je as PopoverAnchor, se as PopoverContent, D as PopoverDescription, E as PopoverHeader, re as PopoverTitle, xe as PopoverTrigger, _r as Progress, Zn as PulseRing, me as ResizableHandle, Me as ResizablePanel, oe as ResizablePanelGroup, Ae as SectionCard, vr as Select, Sr as SelectContent, yr as SelectGroup, wr as SelectItem, Cr as SelectLabel, Dr as SelectScrollDownButton, Er as SelectScrollUpButton, Tr as SelectSeparator, xr as SelectTrigger, br as SelectValue, Or as Separator, kr as Sheet, jr as SheetClose, Pr as SheetContent, Rr as SheetDescription, Ir as SheetFooter, Fr as SheetHeader, Lr as SheetTitle, Ar as SheetTrigger, Yr as Sidebar, ri as SidebarContent, ti as SidebarFooter, ii as SidebarGroup, oi as SidebarGroupAction, si as SidebarGroupContent, ai as SidebarGroupLabel, ei as SidebarHeader, $r as SidebarInput, Qr as SidebarInset, ci as SidebarMenu, fi as SidebarMenuAction, pi as SidebarMenuBadge, di as SidebarMenuButton, li as SidebarMenuItem, hi as SidebarMenuSkeleton, gi as SidebarMenuSub, vi as SidebarMenuSubButton, _i as SidebarMenuSubItem, Jr as SidebarProvider, Zr as SidebarRail, ni as SidebarSeparator, Xr as SidebarTrigger, m as Skeleton, Si as Slider, Xa as StartupFirst, Mi as Stepper, bi as StickySaveBar, Fi as Switch, Ii as Table, Ri as TableBody, Ui as TableCaption, Hi as TableCell, zi as TableFooter, Vi as TableHead, Li as TableHeader, Bi as TableRow, De as Tabs, L as TabsContent, Se as TabsList, ke as TabsTrigger, Wi as Textarea, po as ThemeProvider, he as Toaster, Ki as Toggle, Ji as ToggleGroup, Yi as ToggleGroupItem, Ce as Tooltip, ve as TooltipContent, _e as TooltipProvider, I as TooltipTrigger, ki as Tree, pe as UserAvatar, Sa as UserMenu, Oe as UserProvider, bo as VigletAppSwitcher, xa as VigletAssistant, pa as VigletAvatar, C as badgeVariants, M as buttonVariants, r as cn, Yo as exportToXlsx, t as getFlagEmoji, n as getHashedColor, _ as getLocaleCountryCode, Te as getUserInitials, b as gradientButtonVariants, qn as gradientSwitchVariants, ir as navigationMenuTriggerStyle, to as reportBackendOffline, no as reportBackendOnline, Ne as sectionCardColorVariants, Wo as setupAxiosInterceptors, ge as toast, Gi as toggleVariants, Ai as treeFromPaths, e as truncateMiddle, Mo as useAssistantNotifications, io as useBackendStatus, Eo as useBreadcrumb, Do as useBreadcrumbOptional, we as useCurrentUser, So as useDateLocale, Fn as useFormField, Co as useGridAdapter, Ee as useIsMobile, Kr as useSidebar, qr as useSidebarOptional, Oo as useSubPageBreadcrumb, mo as useTheme };