@yyc3/music-ui 1.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,62 +1,61 @@
1
- import { jsx as e, jsxs as i, Fragment as se } from "react/jsx-runtime";
2
- import * as Y from "@radix-ui/react-accordion";
3
- import { ChevronDownIcon as de, MoreHorizontal as ct, ChevronRight as He, ChevronLeft as ut, ArrowRight as mt, ArrowLeft as ft, CheckIcon as ee, XIcon as Ve, SearchIcon as pt, CircleIcon as le, ChevronRightIcon as ce, MinusIcon as gt, MoreHorizontalIcon as bt, ChevronLeftIcon as vt, GripVerticalIcon as ht, ChevronUpIcon as xt, PanelLeftIcon as yt, Loader2 as ke, Info as wt, AlertTriangle as Nt, AlertCircle as We, CheckCircle2 as kt, X as te, Search as Ct, EyeOff as zt, Eye as St, Download as Ke, Star as Te, Zap as Me, Music as ae, Users as Ee, BarChart3 as It, Heart as Dt } from "lucide-react";
4
- import { clsx as p } from "clsx";
1
+ import { jsx as e, jsxs as s, Fragment as ie } from "react/jsx-runtime";
2
+ import * as J from "@radix-ui/react-accordion";
3
+ import { ChevronDownIcon as se, MoreHorizontal as ct, ChevronRight as He, ChevronLeft as ut, ArrowRight as mt, ArrowLeft as ft, CheckIcon as Q, XIcon as Ve, SearchIcon as pt, CircleIcon as de, ChevronRightIcon as le, MinusIcon as gt, MoreHorizontalIcon as bt, ChevronLeftIcon as vt, GripVerticalIcon as ht, ChevronUpIcon as xt, PanelLeftIcon as yt, Loader2 as ke, Info as wt, AlertTriangle as Nt, AlertCircle as We, CheckCircle2 as kt, X as ee, Search as Ct, EyeOff as zt, Eye as St, Download as Ke, Star as Te, Zap as Me, Music as te, Users as Ee, BarChart3 as It, Heart as Dt } from "lucide-react";
4
+ import { clsx as f } from "clsx";
5
5
  import { twMerge as _t } from "tailwind-merge";
6
6
  import { cva as U } from "class-variance-authority";
7
7
  import * as R from "@radix-ui/react-alert-dialog";
8
8
  import { Slot as A } from "@radix-ui/react-slot";
9
9
  import * as Pt from "@radix-ui/react-aspect-ratio";
10
10
  import * as Ce from "@radix-ui/react-avatar";
11
- import { DayPicker as Tt } from "react-day-picker";
11
+ import { getDefaultClassNames as Tt, DayPicker as Mt } from "react-day-picker";
12
12
  import * as v from "react";
13
- import V, { useRef as Mt, useEffect as Re, useMemo as Ue, useState as L } from "react";
14
- import Et from "embla-carousel-react";
15
- import * as ze from "recharts";
16
- import { ResponsiveContainer as ue, PieChart as Rt, Pie as At, Cell as jt, Tooltip as Se, BarChart as Lt, CartesianGrid as Ze, XAxis as Xe, YAxis as qe, Legend as Ft, Bar as Ae, LineChart as Bt, Line as Je, AreaChart as $t, Area as Gt } from "recharts";
17
- import * as je from "@radix-ui/react-checkbox";
18
- import * as Ie from "@radix-ui/react-collapsible";
19
- import { Command as H } from "cmdk";
13
+ import W, { useRef as Et, useEffect as Re, useMemo as Ue, useState as L } from "react";
14
+ import Rt from "embla-carousel-react";
15
+ import * as ce from "recharts";
16
+ import * as Ae from "@radix-ui/react-checkbox";
17
+ import * as ze from "@radix-ui/react-collapsible";
18
+ import { Command as V } from "cmdk";
20
19
  import * as z from "@radix-ui/react-dialog";
21
20
  import * as S from "@radix-ui/react-context-menu";
22
21
  import { Drawer as F } from "vaul";
23
22
  import * as I from "@radix-ui/react-dropdown-menu";
24
- import { FormProvider as Ot, Controller as Ht, useFormContext as Vt, useFormState as Wt } from "react-hook-form";
25
- import * as Kt from "@radix-ui/react-label";
26
- import * as ie from "@radix-ui/react-hover-card";
27
- import { OTPInput as Ut, OTPInputContext as Zt } from "input-otp";
23
+ import { FormProvider as At, Controller as jt, useFormContext as Lt, useFormState as Ft } from "react-hook-form";
24
+ import * as Bt from "@radix-ui/react-label";
25
+ import * as oe from "@radix-ui/react-hover-card";
26
+ import { OTPInput as $t, OTPInputContext as Gt } from "input-otp";
28
27
  import * as D from "@radix-ui/react-menubar";
29
28
  import * as B from "@radix-ui/react-navigation-menu";
30
- import * as Q from "@radix-ui/react-popover";
31
- import * as Le from "@radix-ui/react-progress";
29
+ import * as Y from "@radix-ui/react-popover";
30
+ import * as je from "@radix-ui/react-progress";
32
31
  import * as we from "@radix-ui/react-radio-group";
33
- import * as De from "react-resizable-panels";
34
- import * as q from "@radix-ui/react-scroll-area";
35
- import * as P from "@radix-ui/react-select";
36
- import * as Xt from "@radix-ui/react-separator";
37
- import * as W from "@radix-ui/react-tooltip";
38
- import * as re from "@radix-ui/react-slider";
39
- import { useTheme as qt } from "next-themes";
40
- import { Toaster as Jt } from "sonner";
41
- import * as Fe from "@radix-ui/react-switch";
42
- import * as me from "@radix-ui/react-tabs";
43
- import * as Yt from "@radix-ui/react-toggle";
44
- import * as Ye from "@radix-ui/react-toggle-group";
45
- import { motion as E, AnimatePresence as Qt } from "motion/react";
32
+ import * as Se from "react-resizable-panels";
33
+ import * as X from "@radix-ui/react-scroll-area";
34
+ import * as _ from "@radix-ui/react-select";
35
+ import * as Ot from "@radix-ui/react-separator";
36
+ import * as K from "@radix-ui/react-tooltip";
37
+ import * as ae from "@radix-ui/react-slider";
38
+ import { useTheme as Ht } from "next-themes";
39
+ import { Toaster as Vt } from "sonner";
40
+ import * as Le from "@radix-ui/react-switch";
41
+ import * as ue from "@radix-ui/react-tabs";
42
+ import * as Wt from "@radix-ui/react-toggle";
43
+ import * as Ze from "@radix-ui/react-toggle-group";
44
+ import { motion as E, AnimatePresence as Kt } from "motion/react";
46
45
  function o(...t) {
47
- return _t(p(t));
46
+ return _t(f(t));
48
47
  }
49
48
  function Mr({
50
49
  ...t
51
50
  }) {
52
- return /* @__PURE__ */ e(Y.Root, { "data-slot": "accordion", ...t });
51
+ return /* @__PURE__ */ e(J.Root, { "data-slot": "accordion", ...t });
53
52
  }
54
53
  function Er({
55
54
  className: t,
56
55
  ...a
57
56
  }) {
58
57
  return /* @__PURE__ */ e(
59
- Y.Item,
58
+ J.Item,
60
59
  {
61
60
  "data-slot": "accordion-item",
62
61
  className: o("border-b last:border-b-0", t),
@@ -69,8 +68,8 @@ function Rr({
69
68
  children: a,
70
69
  ...r
71
70
  }) {
72
- return /* @__PURE__ */ e(Y.Header, { className: "flex", children: /* @__PURE__ */ i(
73
- Y.Trigger,
71
+ return /* @__PURE__ */ e(J.Header, { className: "flex", children: /* @__PURE__ */ s(
72
+ J.Trigger,
74
73
  {
75
74
  "data-slot": "accordion-trigger",
76
75
  className: o(
@@ -80,7 +79,7 @@ function Rr({
80
79
  ...r,
81
80
  children: [
82
81
  a,
83
- /* @__PURE__ */ e(de, { className: "text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200" })
82
+ /* @__PURE__ */ e(se, { className: "text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200" })
84
83
  ]
85
84
  }
86
85
  ) });
@@ -91,7 +90,7 @@ function Ar({
91
90
  ...r
92
91
  }) {
93
92
  return /* @__PURE__ */ e(
94
- Y.Content,
93
+ J.Content,
95
94
  {
96
95
  "data-slot": "accordion-content",
97
96
  className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",
@@ -100,7 +99,7 @@ function Ar({
100
99
  }
101
100
  );
102
101
  }
103
- const ea = U(
102
+ const Ut = U(
104
103
  "relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",
105
104
  {
106
105
  variants: {
@@ -124,7 +123,7 @@ function jr({
124
123
  {
125
124
  "data-slot": "alert",
126
125
  role: "alert",
127
- className: o(ea({ variant: a }), t),
126
+ className: o(Ut({ variant: a }), t),
128
127
  ...r
129
128
  }
130
129
  );
@@ -158,7 +157,7 @@ function Fr({
158
157
  }
159
158
  );
160
159
  }
161
- const K = U(
160
+ const H = U(
162
161
  "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
163
162
  {
164
163
  variants: {
@@ -183,19 +182,19 @@ const K = U(
183
182
  }
184
183
  }
185
184
  );
186
- function _e({
185
+ function Ie({
187
186
  className: t,
188
187
  variant: a,
189
188
  size: r,
190
189
  asChild: n = !1,
191
- ...s
190
+ ...i
192
191
  }) {
193
192
  return /* @__PURE__ */ e(
194
193
  n ? A : "button",
195
194
  {
196
195
  "data-slot": "button",
197
- className: o(K({ variant: a, size: r, className: t })),
198
- ...s
196
+ className: o(H({ variant: a, size: r, className: t })),
197
+ ...i
199
198
  }
200
199
  );
201
200
  }
@@ -209,12 +208,12 @@ function $r({
209
208
  }) {
210
209
  return /* @__PURE__ */ e(R.Trigger, { "data-slot": "alert-dialog-trigger", ...t });
211
210
  }
212
- function ta({
211
+ function Zt({
213
212
  ...t
214
213
  }) {
215
214
  return /* @__PURE__ */ e(R.Portal, { "data-slot": "alert-dialog-portal", ...t });
216
215
  }
217
- function aa({
216
+ function Xt({
218
217
  className: t,
219
218
  ...a
220
219
  }) {
@@ -234,8 +233,8 @@ function Gr({
234
233
  className: t,
235
234
  ...a
236
235
  }) {
237
- return /* @__PURE__ */ i(ta, { children: [
238
- /* @__PURE__ */ e(aa, {}),
236
+ return /* @__PURE__ */ s(Zt, { children: [
237
+ /* @__PURE__ */ e(Xt, {}),
239
238
  /* @__PURE__ */ e(
240
239
  R.Content,
241
240
  {
@@ -311,7 +310,7 @@ function Kr({
311
310
  return /* @__PURE__ */ e(
312
311
  R.Action,
313
312
  {
314
- className: o(K(), t),
313
+ className: o(H(), t),
315
314
  ...a
316
315
  }
317
316
  );
@@ -323,7 +322,7 @@ function Ur({
323
322
  return /* @__PURE__ */ e(
324
323
  R.Cancel,
325
324
  {
326
- className: o(K({ variant: "outline" }), t),
325
+ className: o(H({ variant: "outline" }), t),
327
326
  ...a
328
327
  }
329
328
  );
@@ -378,7 +377,7 @@ function Jr({
378
377
  }
379
378
  );
380
379
  }
381
- const ra = U(
380
+ const qt = U(
382
381
  "inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",
383
382
  {
384
383
  variants: {
@@ -404,7 +403,7 @@ function Yr({
404
403
  r ? A : "span",
405
404
  {
406
405
  "data-slot": "badge",
407
- className: o(ra({ variant: a }), t),
406
+ className: o(qt({ variant: a }), t),
408
407
  ...n
409
408
  }
410
409
  );
@@ -483,7 +482,7 @@ function on({
483
482
  className: t,
484
483
  ...a
485
484
  }) {
486
- return /* @__PURE__ */ i(
485
+ return /* @__PURE__ */ s(
487
486
  "span",
488
487
  {
489
488
  "data-slot": "breadcrumb-ellipsis",
@@ -504,48 +503,63 @@ function sn({
504
503
  showOutsideDays: r = !0,
505
504
  ...n
506
505
  }) {
506
+ const i = Tt();
507
507
  return /* @__PURE__ */ e(
508
- Tt,
508
+ Mt,
509
509
  {
510
510
  showOutsideDays: r,
511
511
  className: o("p-3", t),
512
512
  classNames: {
513
- months: "flex flex-col sm:flex-row gap-2",
514
- month: "flex flex-col gap-4",
515
- caption: "flex justify-center pt-1 relative items-center w-full",
516
- caption_label: "text-sm font-medium",
517
- nav: "flex items-center gap-1",
518
- nav_button: o(
519
- K({ variant: "outline" }),
520
- "size-7 bg-transparent p-0 opacity-50 hover:opacity-100"
513
+ root: o(i.root, "w-fit"),
514
+ months: o(i.months, "flex flex-col sm:flex-row gap-2"),
515
+ month: o(i.month, "flex flex-col gap-4"),
516
+ month_caption: o(
517
+ i.month_caption,
518
+ "flex justify-center pt-1 relative items-center w-full"
519
+ ),
520
+ caption_label: o(i.caption_label, "text-sm font-medium"),
521
+ nav: o(i.nav, "flex items-center gap-1"),
522
+ button_previous: o(
523
+ H({ variant: "outline" }),
524
+ "size-7 bg-transparent p-0 opacity-50 hover:opacity-100 absolute left-1"
525
+ ),
526
+ button_next: o(
527
+ H({ variant: "outline" }),
528
+ "size-7 bg-transparent p-0 opacity-50 hover:opacity-100 absolute right-1"
521
529
  ),
522
- nav_button_previous: "absolute left-1",
523
- nav_button_next: "absolute right-1",
524
- table: "w-full border-collapse space-x-1",
525
- head_row: "flex",
526
- head_cell: "text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",
527
- row: "flex w-full mt-2",
528
- cell: o(
529
- "relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-range-end)]:rounded-r-md",
530
- n.mode === "range" ? "[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md" : "[&:has([aria-selected])]:rounded-md"
530
+ month_grid: o(i.month_grid, "w-full border-collapse space-x-1"),
531
+ weekdays: o(i.weekdays, "flex"),
532
+ weekday: o(
533
+ i.weekday,
534
+ "text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]"
531
535
  ),
536
+ week: o(i.week, "flex w-full mt-2"),
532
537
  day: o(
533
- K({ variant: "ghost" }),
538
+ i.day,
539
+ "relative p-0 text-center text-sm focus-within:relative focus-within:z-20"
540
+ ),
541
+ day_button: o(
542
+ H({ variant: "ghost" }),
534
543
  "size-8 p-0 font-normal aria-selected:opacity-100"
535
544
  ),
536
- day_range_start: "day-range-start aria-selected:bg-primary aria-selected:text-primary-foreground",
537
- day_range_end: "day-range-end aria-selected:bg-primary aria-selected:text-primary-foreground",
538
- day_selected: "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",
539
- day_today: "bg-accent text-accent-foreground",
540
- day_outside: "day-outside text-muted-foreground aria-selected:text-muted-foreground",
541
- day_disabled: "text-muted-foreground opacity-50",
542
- day_range_middle: "aria-selected:bg-accent aria-selected:text-accent-foreground",
543
- day_hidden: "invisible",
545
+ range_start: o(i.range_start, "day-range-start rounded-l-md"),
546
+ range_end: o(i.range_end, "day-range-end rounded-r-md"),
547
+ range_middle: o(i.range_middle, "rounded-none"),
548
+ selected: o(
549
+ i.selected,
550
+ "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground"
551
+ ),
552
+ today: o(i.today, "bg-accent text-accent-foreground"),
553
+ outside: o(
554
+ i.outside,
555
+ "day-outside text-muted-foreground aria-selected:text-muted-foreground"
556
+ ),
557
+ disabled: o(i.disabled, "text-muted-foreground opacity-50"),
558
+ hidden: o(i.hidden, "invisible"),
544
559
  ...a
545
560
  },
546
561
  components: {
547
- IconLeft: ({ className: s, ...l }) => /* @__PURE__ */ e(ut, { className: o("size-4", s), ...l }),
548
- IconRight: ({ className: s, ...l }) => /* @__PURE__ */ e(He, { className: o("size-4", s), ...l })
562
+ Chevron: ({ className: d, orientation: c, ...u }) => /* @__PURE__ */ e(c === "right" ? He : ut, { className: o("size-4", d), ...u })
549
563
  },
550
564
  ...n
551
565
  }
@@ -630,9 +644,9 @@ function pn({ className: t, ...a }) {
630
644
  }
631
645
  );
632
646
  }
633
- const Qe = v.createContext(null);
634
- function fe() {
635
- const t = v.useContext(Qe);
647
+ const Xe = v.createContext(null);
648
+ function me() {
649
+ const t = v.useContext(Xe);
636
650
  if (!t)
637
651
  throw new Error("useCarousel must be used within a <Carousel />");
638
652
  return t;
@@ -642,65 +656,65 @@ function gn({
642
656
  opts: a,
643
657
  setApi: r,
644
658
  plugins: n,
645
- className: s,
646
- children: l,
659
+ className: i,
660
+ children: d,
647
661
  ...c
648
662
  }) {
649
- const [u, d] = Et(
663
+ const [u, l] = Rt(
650
664
  {
651
665
  ...a,
652
666
  axis: t === "horizontal" ? "x" : "y"
653
667
  },
654
668
  n
655
- ), [g, m] = v.useState(!1), [C, x] = v.useState(!1), y = v.useCallback((w) => {
656
- w && (m(w.canScrollPrev()), x(w.canScrollNext()));
657
- }, []), h = v.useCallback(() => {
658
- d == null || d.scrollPrev();
659
- }, [d]), b = v.useCallback(() => {
660
- d == null || d.scrollNext();
661
- }, [d]), f = v.useCallback(
662
- (w) => {
663
- w.key === "ArrowLeft" ? (w.preventDefault(), h()) : w.key === "ArrowRight" && (w.preventDefault(), b());
669
+ ), [b, m] = v.useState(!1), [C, w] = v.useState(!1), h = v.useCallback((y) => {
670
+ y && (m(y.canScrollPrev()), w(y.canScrollNext()));
671
+ }, []), x = v.useCallback(() => {
672
+ l?.scrollPrev();
673
+ }, [l]), p = v.useCallback(() => {
674
+ l?.scrollNext();
675
+ }, [l]), g = v.useCallback(
676
+ (y) => {
677
+ y.key === "ArrowLeft" ? (y.preventDefault(), x()) : y.key === "ArrowRight" && (y.preventDefault(), p());
664
678
  },
665
- [h, b]
679
+ [x, p]
666
680
  );
667
681
  return v.useEffect(() => {
668
- !d || !r || r(d);
669
- }, [d, r]), v.useEffect(() => {
670
- if (d)
671
- return y(d), d.on("reInit", y), d.on("select", y), () => {
672
- d == null || d.off("select", y);
682
+ !l || !r || r(l);
683
+ }, [l, r]), v.useEffect(() => {
684
+ if (l)
685
+ return h(l), l.on("reInit", h), l.on("select", h), () => {
686
+ l?.off("select", h);
673
687
  };
674
- }, [d, y]), /* @__PURE__ */ e(
675
- Qe.Provider,
688
+ }, [l, h]), /* @__PURE__ */ e(
689
+ Xe.Provider,
676
690
  {
677
691
  value: {
678
692
  carouselRef: u,
679
- api: d,
693
+ api: l,
680
694
  opts: a,
681
- orientation: t || ((a == null ? void 0 : a.axis) === "y" ? "vertical" : "horizontal"),
682
- scrollPrev: h,
683
- scrollNext: b,
684
- canScrollPrev: g,
695
+ orientation: t || (a?.axis === "y" ? "vertical" : "horizontal"),
696
+ scrollPrev: x,
697
+ scrollNext: p,
698
+ canScrollPrev: b,
685
699
  canScrollNext: C
686
700
  },
687
701
  children: /* @__PURE__ */ e(
688
702
  "div",
689
703
  {
690
- onKeyDownCapture: f,
691
- className: o("relative", s),
704
+ onKeyDownCapture: g,
705
+ className: o("relative", i),
692
706
  role: "region",
693
707
  "aria-roledescription": "carousel",
694
708
  "data-slot": "carousel",
695
709
  ...c,
696
- children: l
710
+ children: d
697
711
  }
698
712
  )
699
713
  }
700
714
  );
701
715
  }
702
716
  function bn({ className: t, ...a }) {
703
- const { carouselRef: r, orientation: n } = fe();
717
+ const { carouselRef: r, orientation: n } = me();
704
718
  return /* @__PURE__ */ e(
705
719
  "div",
706
720
  {
@@ -722,7 +736,7 @@ function bn({ className: t, ...a }) {
722
736
  );
723
737
  }
724
738
  function vn({ className: t, ...a }) {
725
- const { orientation: r } = fe();
739
+ const { orientation: r } = me();
726
740
  return /* @__PURE__ */ e(
727
741
  "div",
728
742
  {
@@ -744,20 +758,20 @@ function hn({
744
758
  size: r = "icon",
745
759
  ...n
746
760
  }) {
747
- const { orientation: s, scrollPrev: l, canScrollPrev: c } = fe();
748
- return /* @__PURE__ */ i(
749
- _e,
761
+ const { orientation: i, scrollPrev: d, canScrollPrev: c } = me();
762
+ return /* @__PURE__ */ s(
763
+ Ie,
750
764
  {
751
765
  "data-slot": "carousel-previous",
752
766
  variant: a,
753
767
  size: r,
754
768
  className: o(
755
769
  "absolute size-8 rounded-full",
756
- s === "horizontal" ? "top-1/2 -left-12 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90",
770
+ i === "horizontal" ? "top-1/2 -left-12 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90",
757
771
  t
758
772
  ),
759
773
  disabled: !c,
760
- onClick: l,
774
+ onClick: d,
761
775
  ...n,
762
776
  children: [
763
777
  /* @__PURE__ */ e(ft, {}),
@@ -772,20 +786,20 @@ function xn({
772
786
  size: r = "icon",
773
787
  ...n
774
788
  }) {
775
- const { orientation: s, scrollNext: l, canScrollNext: c } = fe();
776
- return /* @__PURE__ */ i(
777
- _e,
789
+ const { orientation: i, scrollNext: d, canScrollNext: c } = me();
790
+ return /* @__PURE__ */ s(
791
+ Ie,
778
792
  {
779
793
  "data-slot": "carousel-next",
780
794
  variant: a,
781
795
  size: r,
782
796
  className: o(
783
797
  "absolute size-8 rounded-full",
784
- s === "horizontal" ? "top-1/2 -right-12 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
798
+ i === "horizontal" ? "top-1/2 -right-12 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
785
799
  t
786
800
  ),
787
801
  disabled: !c,
788
- onClick: l,
802
+ onClick: d,
789
803
  ...n,
790
804
  children: [
791
805
  /* @__PURE__ */ e(mt, {}),
@@ -794,9 +808,9 @@ function xn({
794
808
  }
795
809
  );
796
810
  }
797
- const na = { light: "", dark: ".dark" }, et = v.createContext(null);
798
- function tt() {
799
- const t = v.useContext(et);
811
+ const Jt = { light: "", dark: ".dark" }, qe = v.createContext(null);
812
+ function Je() {
813
+ const t = v.useContext(qe);
800
814
  if (!t)
801
815
  throw new Error("useChart must be used within a <ChartContainer />");
802
816
  return t;
@@ -806,10 +820,10 @@ function yn({
806
820
  className: a,
807
821
  children: r,
808
822
  config: n,
809
- ...s
823
+ ...i
810
824
  }) {
811
- const l = v.useId(), c = `chart-${t || l.replace(/:/g, "")}`;
812
- return /* @__PURE__ */ e(et.Provider, { value: { config: n }, children: /* @__PURE__ */ i(
825
+ const d = v.useId(), c = `chart-${t || d.replace(/:/g, "")}`;
826
+ return /* @__PURE__ */ e(qe.Provider, { value: { config: n }, children: /* @__PURE__ */ s(
813
827
  "div",
814
828
  {
815
829
  "data-slot": "chart",
@@ -818,15 +832,15 @@ function yn({
818
832
  "[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border flex aspect-video justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden",
819
833
  a
820
834
  ),
821
- ...s,
835
+ ...i,
822
836
  children: [
823
- /* @__PURE__ */ e(oa, { id: c, config: n }),
824
- /* @__PURE__ */ e(ze.ResponsiveContainer, { children: r })
837
+ /* @__PURE__ */ e(Yt, { id: c, config: n }),
838
+ /* @__PURE__ */ e(ce.ResponsiveContainer, { children: r })
825
839
  ]
826
840
  }
827
841
  ) });
828
842
  }
829
- const oa = ({ id: t, config: a }) => {
843
+ const Yt = ({ id: t, config: a }) => {
830
844
  const r = Object.entries(a).filter(
831
845
  ([, n]) => n.theme || n.color
832
846
  );
@@ -834,13 +848,12 @@ const oa = ({ id: t, config: a }) => {
834
848
  "style",
835
849
  {
836
850
  dangerouslySetInnerHTML: {
837
- __html: Object.entries(na).map(
838
- ([n, s]) => `
839
- ${s} [data-chart=${t}] {
840
- ${r.map(([l, c]) => {
841
- var d;
842
- const u = ((d = c.theme) == null ? void 0 : d[n]) || c.color;
843
- return u ? ` --color-${l}: ${u};` : null;
851
+ __html: Object.entries(Jt).map(
852
+ ([n, i]) => `
853
+ ${i} [data-chart=${t}] {
854
+ ${r.map(([d, c]) => {
855
+ const u = c.theme?.[n] || c.color;
856
+ return u ? ` --color-${d}: ${u};` : null;
844
857
  }).join(`
845
858
  `)}
846
859
  }
@@ -850,41 +863,40 @@ ${r.map(([l, c]) => {
850
863
  }
851
864
  }
852
865
  ) : null;
853
- }, wn = ze.Tooltip;
866
+ }, wn = ce.Tooltip;
854
867
  function Nn({
855
868
  active: t,
856
869
  payload: a,
857
870
  className: r,
858
871
  indicator: n = "dot",
859
- hideLabel: s = !1,
860
- hideIndicator: l = !1,
872
+ hideLabel: i = !1,
873
+ hideIndicator: d = !1,
861
874
  label: c,
862
875
  labelFormatter: u,
863
- labelClassName: d,
864
- formatter: g,
876
+ labelClassName: l,
877
+ formatter: b,
865
878
  color: m,
866
879
  nameKey: C,
867
- labelKey: x
880
+ labelKey: w
868
881
  }) {
869
- const { config: y } = tt(), h = v.useMemo(() => {
870
- var Z;
871
- if (s || !(a != null && a.length))
882
+ const { config: h } = Je(), x = v.useMemo(() => {
883
+ if (i || !a?.length)
872
884
  return null;
873
- const [f] = a, w = `${x || (f == null ? void 0 : f.dataKey) || (f == null ? void 0 : f.name) || "value"}`, _ = Ne(y, f, w), T = !x && typeof c == "string" ? ((Z = y[c]) == null ? void 0 : Z.label) || c : _ == null ? void 0 : _.label;
874
- return u ? /* @__PURE__ */ e("div", { className: o("font-medium", d), children: u(T, a) }) : T ? /* @__PURE__ */ e("div", { className: o("font-medium", d), children: T }) : null;
885
+ const [g] = a, y = `${w || g?.dataKey || g?.name || "value"}`, P = Ne(h, g, y), M = !w && typeof c == "string" ? h[c]?.label || c : P?.label;
886
+ return u ? /* @__PURE__ */ e("div", { className: o("font-medium", l), children: u(M, a) }) : M ? /* @__PURE__ */ e("div", { className: o("font-medium", l), children: M }) : null;
875
887
  }, [
876
888
  c,
877
889
  u,
878
890
  a,
879
- s,
880
- d,
881
- y,
882
- x
891
+ i,
892
+ l,
893
+ h,
894
+ w
883
895
  ]);
884
- if (!t || !(a != null && a.length))
896
+ if (!t || !a?.length)
885
897
  return null;
886
- const b = a.length === 1 && n !== "dot";
887
- return /* @__PURE__ */ i(
898
+ const p = a.length === 1 && n !== "dot";
899
+ return /* @__PURE__ */ s(
888
900
  "div",
889
901
  {
890
902
  className: o(
@@ -892,9 +904,9 @@ function Nn({
892
904
  r
893
905
  ),
894
906
  children: [
895
- b ? null : h,
896
- /* @__PURE__ */ e("div", { className: "grid gap-1.5", children: a.map((f, w) => {
897
- const _ = `${C || f.name || f.dataKey || "value"}`, T = Ne(y, f, _), Z = m || f.payload.fill || f.color;
907
+ p ? null : x,
908
+ /* @__PURE__ */ e("div", { className: "grid gap-1.5", children: a.map((g, y) => {
909
+ const P = `${C || g.name || g.dataKey || "value"}`, M = Ne(h, g, P), Pe = m || g.payload.fill || g.color;
898
910
  return /* @__PURE__ */ e(
899
911
  "div",
900
912
  {
@@ -902,8 +914,8 @@ function Nn({
902
914
  "[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5",
903
915
  n === "dot" && "items-center"
904
916
  ),
905
- children: g && (f == null ? void 0 : f.value) !== void 0 && f.name ? g(f.value, f.name, f, w, f.payload) : /* @__PURE__ */ i(se, { children: [
906
- T != null && T.icon ? /* @__PURE__ */ e(T.icon, {}) : !l && /* @__PURE__ */ e(
917
+ children: b && g?.value !== void 0 && g.name ? b(g.value, g.name, g, y, g.payload) : /* @__PURE__ */ s(ie, { children: [
918
+ M?.icon ? /* @__PURE__ */ e(M.icon, {}) : !d && /* @__PURE__ */ e(
907
919
  "div",
908
920
  {
909
921
  className: o(
@@ -912,50 +924,50 @@ function Nn({
912
924
  "h-2.5 w-2.5": n === "dot",
913
925
  "w-1": n === "line",
914
926
  "w-0 border-[1.5px] border-dashed bg-transparent": n === "dashed",
915
- "my-0.5": b && n === "dashed"
927
+ "my-0.5": p && n === "dashed"
916
928
  }
917
929
  ),
918
930
  style: {
919
- "--color-bg": Z,
920
- "--color-border": Z
931
+ "--color-bg": Pe,
932
+ "--color-border": Pe
921
933
  }
922
934
  }
923
935
  ),
924
- /* @__PURE__ */ i(
936
+ /* @__PURE__ */ s(
925
937
  "div",
926
938
  {
927
939
  className: o(
928
940
  "flex flex-1 justify-between leading-none",
929
- b ? "items-end" : "items-center"
941
+ p ? "items-end" : "items-center"
930
942
  ),
931
943
  children: [
932
- /* @__PURE__ */ i("div", { className: "grid gap-1.5", children: [
933
- b ? h : null,
934
- /* @__PURE__ */ e("span", { className: "text-muted-foreground", children: (T == null ? void 0 : T.label) || f.name })
944
+ /* @__PURE__ */ s("div", { className: "grid gap-1.5", children: [
945
+ p ? x : null,
946
+ /* @__PURE__ */ e("span", { className: "text-muted-foreground", children: M?.label || g.name })
935
947
  ] }),
936
- f.value && /* @__PURE__ */ e("span", { className: "text-foreground font-mono font-medium tabular-nums", children: f.value.toLocaleString() })
948
+ g.value && /* @__PURE__ */ e("span", { className: "text-foreground font-mono font-medium tabular-nums", children: g.value.toLocaleString() })
937
949
  ]
938
950
  }
939
951
  )
940
952
  ] })
941
953
  },
942
- f.dataKey
954
+ g.dataKey
943
955
  );
944
956
  }) })
945
957
  ]
946
958
  }
947
959
  );
948
960
  }
949
- const kn = ze.Legend;
961
+ const kn = ce.Legend;
950
962
  function Cn({
951
963
  className: t,
952
964
  hideIcon: a = !1,
953
965
  payload: r,
954
966
  verticalAlign: n = "bottom",
955
- nameKey: s
967
+ nameKey: i
956
968
  }) {
957
- const { config: l } = tt();
958
- return r != null && r.length ? /* @__PURE__ */ e(
969
+ const { config: d } = Je();
970
+ return r?.length ? /* @__PURE__ */ e(
959
971
  "div",
960
972
  {
961
973
  className: o(
@@ -964,15 +976,15 @@ function Cn({
964
976
  t
965
977
  ),
966
978
  children: r.map((c) => {
967
- const u = `${s || c.dataKey || "value"}`, d = Ne(l, c, u);
968
- return /* @__PURE__ */ i(
979
+ const u = `${i || c.dataKey || "value"}`, l = Ne(d, c, u);
980
+ return /* @__PURE__ */ s(
969
981
  "div",
970
982
  {
971
983
  className: o(
972
984
  "[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3"
973
985
  ),
974
986
  children: [
975
- d != null && d.icon && !a ? /* @__PURE__ */ e(d.icon, {}) : /* @__PURE__ */ e(
987
+ l?.icon && !a ? /* @__PURE__ */ e(l.icon, {}) : /* @__PURE__ */ e(
976
988
  "div",
977
989
  {
978
990
  className: "h-2 w-2 shrink-0 rounded-[2px]",
@@ -981,7 +993,7 @@ function Cn({
981
993
  }
982
994
  }
983
995
  ),
984
- d == null ? void 0 : d.label
996
+ l?.label
985
997
  ]
986
998
  },
987
999
  c.value
@@ -994,15 +1006,15 @@ function Ne(t, a, r) {
994
1006
  if (typeof a != "object" || a === null)
995
1007
  return;
996
1008
  const n = "payload" in a && typeof a.payload == "object" && a.payload !== null ? a.payload : void 0;
997
- let s = r;
998
- return r in a && typeof a[r] == "string" ? s = a[r] : n && r in n && typeof n[r] == "string" && (s = n[r]), s in t ? t[s] : t[r];
1009
+ let i = r;
1010
+ return r in a && typeof a[r] == "string" ? i = a[r] : n && r in n && typeof n[r] == "string" && (i = n[r]), i in t ? t[i] : t[r];
999
1011
  }
1000
1012
  function zn({
1001
1013
  className: t,
1002
1014
  ...a
1003
1015
  }) {
1004
1016
  return /* @__PURE__ */ e(
1005
- je.Root,
1017
+ Ae.Root,
1006
1018
  {
1007
1019
  "data-slot": "checkbox",
1008
1020
  className: o(
@@ -1011,11 +1023,11 @@ function zn({
1011
1023
  ),
1012
1024
  ...a,
1013
1025
  children: /* @__PURE__ */ e(
1014
- je.Indicator,
1026
+ Ae.Indicator,
1015
1027
  {
1016
1028
  "data-slot": "checkbox-indicator",
1017
1029
  className: "flex items-center justify-center text-current transition-none",
1018
- children: /* @__PURE__ */ e(ee, { className: "size-3.5" })
1030
+ children: /* @__PURE__ */ e(Q, { className: "size-3.5" })
1019
1031
  }
1020
1032
  )
1021
1033
  }
@@ -1024,13 +1036,13 @@ function zn({
1024
1036
  function Sn({
1025
1037
  ...t
1026
1038
  }) {
1027
- return /* @__PURE__ */ e(Ie.Root, { "data-slot": "collapsible", ...t });
1039
+ return /* @__PURE__ */ e(ze.Root, { "data-slot": "collapsible", ...t });
1028
1040
  }
1029
1041
  function In({
1030
1042
  ...t
1031
1043
  }) {
1032
1044
  return /* @__PURE__ */ e(
1033
- Ie.CollapsibleTrigger,
1045
+ ze.CollapsibleTrigger,
1034
1046
  {
1035
1047
  "data-slot": "collapsible-trigger",
1036
1048
  ...t
@@ -1041,14 +1053,14 @@ function Dn({
1041
1053
  ...t
1042
1054
  }) {
1043
1055
  return /* @__PURE__ */ e(
1044
- Ie.CollapsibleContent,
1056
+ ze.CollapsibleContent,
1045
1057
  {
1046
1058
  "data-slot": "collapsible-content",
1047
1059
  ...t
1048
1060
  }
1049
1061
  );
1050
1062
  }
1051
- function ia({
1063
+ function Qt({
1052
1064
  ...t
1053
1065
  }) {
1054
1066
  return /* @__PURE__ */ e(z.Root, { "data-slot": "dialog", ...t });
@@ -1058,7 +1070,7 @@ function _n({
1058
1070
  }) {
1059
1071
  return /* @__PURE__ */ e(z.Trigger, { "data-slot": "dialog-trigger", ...t });
1060
1072
  }
1061
- function sa({
1073
+ function ea({
1062
1074
  ...t
1063
1075
  }) {
1064
1076
  return /* @__PURE__ */ e(z.Portal, { "data-slot": "dialog-portal", ...t });
@@ -1068,7 +1080,7 @@ function Pn({
1068
1080
  }) {
1069
1081
  return /* @__PURE__ */ e(z.Close, { "data-slot": "dialog-close", ...t });
1070
1082
  }
1071
- function da({
1083
+ function ta({
1072
1084
  className: t,
1073
1085
  ...a
1074
1086
  }) {
@@ -1084,14 +1096,14 @@ function da({
1084
1096
  }
1085
1097
  );
1086
1098
  }
1087
- function la({
1099
+ function aa({
1088
1100
  className: t,
1089
1101
  children: a,
1090
1102
  ...r
1091
1103
  }) {
1092
- return /* @__PURE__ */ i(sa, { "data-slot": "dialog-portal", children: [
1093
- /* @__PURE__ */ e(da, {}),
1094
- /* @__PURE__ */ i(
1104
+ return /* @__PURE__ */ s(ea, { "data-slot": "dialog-portal", children: [
1105
+ /* @__PURE__ */ e(ta, {}),
1106
+ /* @__PURE__ */ s(
1095
1107
  z.Content,
1096
1108
  {
1097
1109
  "data-slot": "dialog-content",
@@ -1102,7 +1114,7 @@ function la({
1102
1114
  ...r,
1103
1115
  children: [
1104
1116
  a,
1105
- /* @__PURE__ */ i(z.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground 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 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", children: [
1117
+ /* @__PURE__ */ s(z.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground 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 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", children: [
1106
1118
  /* @__PURE__ */ e(Ve, {}),
1107
1119
  /* @__PURE__ */ e("span", { className: "sr-only", children: "Close" })
1108
1120
  ] })
@@ -1111,7 +1123,7 @@ function la({
1111
1123
  )
1112
1124
  ] });
1113
1125
  }
1114
- function ca({ className: t, ...a }) {
1126
+ function ra({ className: t, ...a }) {
1115
1127
  return /* @__PURE__ */ e(
1116
1128
  "div",
1117
1129
  {
@@ -1134,7 +1146,7 @@ function Tn({ className: t, ...a }) {
1134
1146
  }
1135
1147
  );
1136
1148
  }
1137
- function ua({
1149
+ function na({
1138
1150
  className: t,
1139
1151
  ...a
1140
1152
  }) {
@@ -1147,7 +1159,7 @@ function ua({
1147
1159
  }
1148
1160
  );
1149
1161
  }
1150
- function ma({
1162
+ function oa({
1151
1163
  className: t,
1152
1164
  ...a
1153
1165
  }) {
@@ -1160,12 +1172,12 @@ function ma({
1160
1172
  }
1161
1173
  );
1162
1174
  }
1163
- function fa({
1175
+ function ia({
1164
1176
  className: t,
1165
1177
  ...a
1166
1178
  }) {
1167
1179
  return /* @__PURE__ */ e(
1168
- H,
1180
+ V,
1169
1181
  {
1170
1182
  "data-slot": "command",
1171
1183
  className: o(
@@ -1182,19 +1194,19 @@ function Mn({
1182
1194
  children: r,
1183
1195
  ...n
1184
1196
  }) {
1185
- return /* @__PURE__ */ i(ia, { ...n, children: [
1186
- /* @__PURE__ */ i(ca, { className: "sr-only", children: [
1187
- /* @__PURE__ */ e(ua, { children: t }),
1188
- /* @__PURE__ */ e(ma, { children: a })
1197
+ return /* @__PURE__ */ e(Qt, { ...n, children: /* @__PURE__ */ s(aa, { className: "overflow-hidden p-0", children: [
1198
+ /* @__PURE__ */ s(ra, { className: "sr-only", children: [
1199
+ /* @__PURE__ */ e(na, { children: t }),
1200
+ /* @__PURE__ */ e(oa, { children: a })
1189
1201
  ] }),
1190
- /* @__PURE__ */ e(la, { className: "overflow-hidden p-0", children: /* @__PURE__ */ e(fa, { className: "[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: r }) })
1191
- ] });
1202
+ /* @__PURE__ */ e(ia, { className: "[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: r })
1203
+ ] }) });
1192
1204
  }
1193
1205
  function En({
1194
1206
  className: t,
1195
1207
  ...a
1196
1208
  }) {
1197
- return /* @__PURE__ */ i(
1209
+ return /* @__PURE__ */ s(
1198
1210
  "div",
1199
1211
  {
1200
1212
  "data-slot": "command-input-wrapper",
@@ -1202,7 +1214,7 @@ function En({
1202
1214
  children: [
1203
1215
  /* @__PURE__ */ e(pt, { className: "size-4 shrink-0 opacity-50" }),
1204
1216
  /* @__PURE__ */ e(
1205
- H.Input,
1217
+ V.Input,
1206
1218
  {
1207
1219
  "data-slot": "command-input",
1208
1220
  className: o(
@@ -1221,7 +1233,7 @@ function Rn({
1221
1233
  ...a
1222
1234
  }) {
1223
1235
  return /* @__PURE__ */ e(
1224
- H.List,
1236
+ V.List,
1225
1237
  {
1226
1238
  "data-slot": "command-list",
1227
1239
  className: o(
@@ -1236,7 +1248,7 @@ function An({
1236
1248
  ...t
1237
1249
  }) {
1238
1250
  return /* @__PURE__ */ e(
1239
- H.Empty,
1251
+ V.Empty,
1240
1252
  {
1241
1253
  "data-slot": "command-empty",
1242
1254
  className: "py-6 text-center text-sm",
@@ -1249,7 +1261,7 @@ function jn({
1249
1261
  ...a
1250
1262
  }) {
1251
1263
  return /* @__PURE__ */ e(
1252
- H.Group,
1264
+ V.Group,
1253
1265
  {
1254
1266
  "data-slot": "command-group",
1255
1267
  className: o(
@@ -1265,7 +1277,7 @@ function Ln({
1265
1277
  ...a
1266
1278
  }) {
1267
1279
  return /* @__PURE__ */ e(
1268
- H.Separator,
1280
+ V.Separator,
1269
1281
  {
1270
1282
  "data-slot": "command-separator",
1271
1283
  className: o("bg-border -mx-1 h-px", t),
@@ -1278,7 +1290,7 @@ function Fn({
1278
1290
  ...a
1279
1291
  }) {
1280
1292
  return /* @__PURE__ */ e(
1281
- H.Item,
1293
+ V.Item,
1282
1294
  {
1283
1295
  "data-slot": "command-item",
1284
1296
  className: o(
@@ -1347,7 +1359,7 @@ function Kn({
1347
1359
  children: r,
1348
1360
  ...n
1349
1361
  }) {
1350
- return /* @__PURE__ */ i(
1362
+ return /* @__PURE__ */ s(
1351
1363
  S.SubTrigger,
1352
1364
  {
1353
1365
  "data-slot": "context-menu-sub-trigger",
@@ -1359,7 +1371,7 @@ function Kn({
1359
1371
  ...n,
1360
1372
  children: [
1361
1373
  r,
1362
- /* @__PURE__ */ e(ce, { className: "ml-auto" })
1374
+ /* @__PURE__ */ e(le, { className: "ml-auto" })
1363
1375
  ]
1364
1376
  }
1365
1377
  );
@@ -1422,7 +1434,7 @@ function qn({
1422
1434
  checked: r,
1423
1435
  ...n
1424
1436
  }) {
1425
- return /* @__PURE__ */ i(
1437
+ return /* @__PURE__ */ s(
1426
1438
  S.CheckboxItem,
1427
1439
  {
1428
1440
  "data-slot": "context-menu-checkbox-item",
@@ -1433,7 +1445,7 @@ function qn({
1433
1445
  checked: r,
1434
1446
  ...n,
1435
1447
  children: [
1436
- /* @__PURE__ */ e("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e(S.ItemIndicator, { children: /* @__PURE__ */ e(ee, { className: "size-4" }) }) }),
1448
+ /* @__PURE__ */ e("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e(S.ItemIndicator, { children: /* @__PURE__ */ e(Q, { className: "size-4" }) }) }),
1437
1449
  a
1438
1450
  ]
1439
1451
  }
@@ -1444,7 +1456,7 @@ function Jn({
1444
1456
  children: a,
1445
1457
  ...r
1446
1458
  }) {
1447
- return /* @__PURE__ */ i(
1459
+ return /* @__PURE__ */ s(
1448
1460
  S.RadioItem,
1449
1461
  {
1450
1462
  "data-slot": "context-menu-radio-item",
@@ -1454,7 +1466,7 @@ function Jn({
1454
1466
  ),
1455
1467
  ...r,
1456
1468
  children: [
1457
- /* @__PURE__ */ e("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e(S.ItemIndicator, { children: /* @__PURE__ */ e(le, { className: "size-2 fill-current" }) }) }),
1469
+ /* @__PURE__ */ e("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e(S.ItemIndicator, { children: /* @__PURE__ */ e(de, { className: "size-2 fill-current" }) }) }),
1458
1470
  a
1459
1471
  ]
1460
1472
  }
@@ -1517,7 +1529,7 @@ function ao({
1517
1529
  }) {
1518
1530
  return /* @__PURE__ */ e(F.Trigger, { "data-slot": "drawer-trigger", ...t });
1519
1531
  }
1520
- function pa({
1532
+ function sa({
1521
1533
  ...t
1522
1534
  }) {
1523
1535
  return /* @__PURE__ */ e(F.Portal, { "data-slot": "drawer-portal", ...t });
@@ -1527,7 +1539,7 @@ function ro({
1527
1539
  }) {
1528
1540
  return /* @__PURE__ */ e(F.Close, { "data-slot": "drawer-close", ...t });
1529
1541
  }
1530
- function ga({
1542
+ function da({
1531
1543
  className: t,
1532
1544
  ...a
1533
1545
  }) {
@@ -1548,9 +1560,9 @@ function no({
1548
1560
  children: a,
1549
1561
  ...r
1550
1562
  }) {
1551
- return /* @__PURE__ */ i(pa, { "data-slot": "drawer-portal", children: [
1552
- /* @__PURE__ */ e(ga, {}),
1553
- /* @__PURE__ */ i(
1563
+ return /* @__PURE__ */ s(sa, { "data-slot": "drawer-portal", children: [
1564
+ /* @__PURE__ */ e(da, {}),
1565
+ /* @__PURE__ */ s(
1554
1566
  F.Content,
1555
1567
  {
1556
1568
  "data-slot": "drawer-content",
@@ -1687,7 +1699,7 @@ function bo({
1687
1699
  checked: r,
1688
1700
  ...n
1689
1701
  }) {
1690
- return /* @__PURE__ */ i(
1702
+ return /* @__PURE__ */ s(
1691
1703
  I.CheckboxItem,
1692
1704
  {
1693
1705
  "data-slot": "dropdown-menu-checkbox-item",
@@ -1698,7 +1710,7 @@ function bo({
1698
1710
  checked: r,
1699
1711
  ...n,
1700
1712
  children: [
1701
- /* @__PURE__ */ e("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e(I.ItemIndicator, { children: /* @__PURE__ */ e(ee, { className: "size-4" }) }) }),
1713
+ /* @__PURE__ */ e("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e(I.ItemIndicator, { children: /* @__PURE__ */ e(Q, { className: "size-4" }) }) }),
1702
1714
  a
1703
1715
  ]
1704
1716
  }
@@ -1720,7 +1732,7 @@ function ho({
1720
1732
  children: a,
1721
1733
  ...r
1722
1734
  }) {
1723
- return /* @__PURE__ */ i(
1735
+ return /* @__PURE__ */ s(
1724
1736
  I.RadioItem,
1725
1737
  {
1726
1738
  "data-slot": "dropdown-menu-radio-item",
@@ -1730,7 +1742,7 @@ function ho({
1730
1742
  ),
1731
1743
  ...r,
1732
1744
  children: [
1733
- /* @__PURE__ */ e("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e(I.ItemIndicator, { children: /* @__PURE__ */ e(le, { className: "size-2 fill-current" }) }) }),
1745
+ /* @__PURE__ */ e("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e(I.ItemIndicator, { children: /* @__PURE__ */ e(de, { className: "size-2 fill-current" }) }) }),
1734
1746
  a
1735
1747
  ]
1736
1748
  }
@@ -1794,7 +1806,7 @@ function ko({
1794
1806
  children: r,
1795
1807
  ...n
1796
1808
  }) {
1797
- return /* @__PURE__ */ i(
1809
+ return /* @__PURE__ */ s(
1798
1810
  I.SubTrigger,
1799
1811
  {
1800
1812
  "data-slot": "dropdown-menu-sub-trigger",
@@ -1806,7 +1818,7 @@ function ko({
1806
1818
  ...n,
1807
1819
  children: [
1808
1820
  r,
1809
- /* @__PURE__ */ e(ce, { className: "ml-auto size-4" })
1821
+ /* @__PURE__ */ e(le, { className: "ml-auto size-4" })
1810
1822
  ]
1811
1823
  }
1812
1824
  );
@@ -1827,12 +1839,12 @@ function Co({
1827
1839
  }
1828
1840
  );
1829
1841
  }
1830
- function ba({
1842
+ function la({
1831
1843
  className: t,
1832
1844
  ...a
1833
1845
  }) {
1834
1846
  return /* @__PURE__ */ e(
1835
- Kt.Root,
1847
+ Bt.Root,
1836
1848
  {
1837
1849
  "data-slot": "label",
1838
1850
  className: o(
@@ -1843,29 +1855,29 @@ function ba({
1843
1855
  }
1844
1856
  );
1845
1857
  }
1846
- const zo = Ot, at = v.createContext(
1858
+ const zo = At, Ye = v.createContext(
1847
1859
  {}
1848
1860
  ), So = ({
1849
1861
  ...t
1850
- }) => /* @__PURE__ */ e(at.Provider, { value: { name: t.name }, children: /* @__PURE__ */ e(Ht, { ...t }) }), pe = () => {
1851
- const t = v.useContext(at), a = v.useContext(rt), { getFieldState: r } = Vt(), n = Wt({ name: t.name }), s = r(t.name, n);
1862
+ }) => /* @__PURE__ */ e(Ye.Provider, { value: { name: t.name }, children: /* @__PURE__ */ e(jt, { ...t }) }), fe = () => {
1863
+ const t = v.useContext(Ye), a = v.useContext(Qe), { getFieldState: r } = Lt(), n = Ft({ name: t.name }), i = r(t.name, n);
1852
1864
  if (!t)
1853
1865
  throw new Error("useFormField should be used within <FormField>");
1854
- const { id: l } = a;
1866
+ const { id: d } = a;
1855
1867
  return {
1856
- id: l,
1868
+ id: d,
1857
1869
  name: t.name,
1858
- formItemId: `${l}-form-item`,
1859
- formDescriptionId: `${l}-form-item-description`,
1860
- formMessageId: `${l}-form-item-message`,
1861
- ...s
1870
+ formItemId: `${d}-form-item`,
1871
+ formDescriptionId: `${d}-form-item-description`,
1872
+ formMessageId: `${d}-form-item-message`,
1873
+ ...i
1862
1874
  };
1863
- }, rt = v.createContext(
1875
+ }, Qe = v.createContext(
1864
1876
  {}
1865
1877
  );
1866
1878
  function Io({ className: t, ...a }) {
1867
1879
  const r = v.useId();
1868
- return /* @__PURE__ */ e(rt.Provider, { value: { id: r }, children: /* @__PURE__ */ e(
1880
+ return /* @__PURE__ */ e(Qe.Provider, { value: { id: r }, children: /* @__PURE__ */ e(
1869
1881
  "div",
1870
1882
  {
1871
1883
  "data-slot": "form-item",
@@ -1878,9 +1890,9 @@ function Do({
1878
1890
  className: t,
1879
1891
  ...a
1880
1892
  }) {
1881
- const { error: r, formItemId: n } = pe();
1893
+ const { error: r, formItemId: n } = fe();
1882
1894
  return /* @__PURE__ */ e(
1883
- ba,
1895
+ la,
1884
1896
  {
1885
1897
  "data-slot": "form-label",
1886
1898
  "data-error": !!r,
@@ -1891,20 +1903,20 @@ function Do({
1891
1903
  );
1892
1904
  }
1893
1905
  function _o({ ...t }) {
1894
- const { error: a, formItemId: r, formDescriptionId: n, formMessageId: s } = pe();
1906
+ const { error: a, formItemId: r, formDescriptionId: n, formMessageId: i } = fe();
1895
1907
  return /* @__PURE__ */ e(
1896
1908
  A,
1897
1909
  {
1898
1910
  "data-slot": "form-control",
1899
1911
  id: r,
1900
- "aria-describedby": a ? `${n} ${s}` : `${n}`,
1912
+ "aria-describedby": a ? `${n} ${i}` : `${n}`,
1901
1913
  "aria-invalid": !!a,
1902
1914
  ...t
1903
1915
  }
1904
1916
  );
1905
1917
  }
1906
1918
  function Po({ className: t, ...a }) {
1907
- const { formDescriptionId: r } = pe();
1919
+ const { formDescriptionId: r } = fe();
1908
1920
  return /* @__PURE__ */ e(
1909
1921
  "p",
1910
1922
  {
@@ -1916,27 +1928,27 @@ function Po({ className: t, ...a }) {
1916
1928
  );
1917
1929
  }
1918
1930
  function To({ className: t, ...a }) {
1919
- const { error: r, formMessageId: n } = pe(), s = r ? String((r == null ? void 0 : r.message) ?? "") : a.children;
1920
- return s ? /* @__PURE__ */ e(
1931
+ const { error: r, formMessageId: n } = fe(), i = r ? String(r?.message ?? "") : a.children;
1932
+ return i ? /* @__PURE__ */ e(
1921
1933
  "p",
1922
1934
  {
1923
1935
  "data-slot": "form-message",
1924
1936
  id: n,
1925
1937
  className: o("text-destructive text-sm", t),
1926
1938
  ...a,
1927
- children: s
1939
+ children: i
1928
1940
  }
1929
1941
  ) : null;
1930
1942
  }
1931
1943
  function Mo({
1932
1944
  ...t
1933
1945
  }) {
1934
- return /* @__PURE__ */ e(ie.Root, { "data-slot": "hover-card", ...t });
1946
+ return /* @__PURE__ */ e(oe.Root, { "data-slot": "hover-card", ...t });
1935
1947
  }
1936
1948
  function Eo({
1937
1949
  ...t
1938
1950
  }) {
1939
- return /* @__PURE__ */ e(ie.Trigger, { "data-slot": "hover-card-trigger", ...t });
1951
+ return /* @__PURE__ */ e(oe.Trigger, { "data-slot": "hover-card-trigger", ...t });
1940
1952
  }
1941
1953
  function Ro({
1942
1954
  className: t,
@@ -1944,8 +1956,8 @@ function Ro({
1944
1956
  sideOffset: r = 4,
1945
1957
  ...n
1946
1958
  }) {
1947
- return /* @__PURE__ */ e(ie.Portal, { "data-slot": "hover-card-portal", children: /* @__PURE__ */ e(
1948
- ie.Content,
1959
+ return /* @__PURE__ */ e(oe.Portal, { "data-slot": "hover-card-portal", children: /* @__PURE__ */ e(
1960
+ oe.Content,
1949
1961
  {
1950
1962
  "data-slot": "hover-card-content",
1951
1963
  align: a,
@@ -1958,7 +1970,7 @@ function Ro({
1958
1970
  }
1959
1971
  ) });
1960
1972
  }
1961
- function va({ className: t, type: a, ...r }) {
1973
+ function ca({ className: t, type: a, ...r }) {
1962
1974
  return /* @__PURE__ */ e(
1963
1975
  "input",
1964
1976
  {
@@ -1980,7 +1992,7 @@ function Ao({
1980
1992
  ...r
1981
1993
  }) {
1982
1994
  return /* @__PURE__ */ e(
1983
- Ut,
1995
+ $t,
1984
1996
  {
1985
1997
  "data-slot": "input-otp",
1986
1998
  containerClassName: o(
@@ -2007,8 +2019,8 @@ function Lo({
2007
2019
  className: a,
2008
2020
  ...r
2009
2021
  }) {
2010
- const n = v.useContext(Zt), { char: s, hasFakeCaret: l, isActive: c } = (n == null ? void 0 : n.slots[t]) ?? {};
2011
- return /* @__PURE__ */ i(
2022
+ const n = v.useContext(Gt), { char: i, hasFakeCaret: d, isActive: c } = n?.slots[t] ?? {};
2023
+ return /* @__PURE__ */ s(
2012
2024
  "div",
2013
2025
  {
2014
2026
  "data-slot": "input-otp-slot",
@@ -2019,8 +2031,8 @@ function Lo({
2019
2031
  ),
2020
2032
  ...r,
2021
2033
  children: [
2022
- s,
2023
- l && /* @__PURE__ */ e("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ e("div", { className: "animate-caret-blink bg-foreground h-4 w-px duration-1000" }) })
2034
+ i,
2035
+ d && /* @__PURE__ */ e("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ e("div", { className: "animate-caret-blink bg-foreground h-4 w-px duration-1000" }) })
2024
2036
  ]
2025
2037
  }
2026
2038
  );
@@ -2054,7 +2066,7 @@ function Go({
2054
2066
  }) {
2055
2067
  return /* @__PURE__ */ e(D.Group, { "data-slot": "menubar-group", ...t });
2056
2068
  }
2057
- function ha({
2069
+ function ua({
2058
2070
  ...t
2059
2071
  }) {
2060
2072
  return /* @__PURE__ */ e(D.Portal, { "data-slot": "menubar-portal", ...t });
@@ -2085,9 +2097,9 @@ function Vo({
2085
2097
  align: a = "start",
2086
2098
  alignOffset: r = -4,
2087
2099
  sideOffset: n = 8,
2088
- ...s
2100
+ ...i
2089
2101
  }) {
2090
- return /* @__PURE__ */ e(ha, { children: /* @__PURE__ */ e(
2102
+ return /* @__PURE__ */ e(ua, { children: /* @__PURE__ */ e(
2091
2103
  D.Content,
2092
2104
  {
2093
2105
  "data-slot": "menubar-content",
@@ -2098,7 +2110,7 @@ function Vo({
2098
2110
  "bg-popover text-popover-foreground data-[state=open]:animate-in 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 z-50 min-w-[12rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-md",
2099
2111
  t
2100
2112
  ),
2101
- ...s
2113
+ ...i
2102
2114
  }
2103
2115
  ) });
2104
2116
  }
@@ -2128,7 +2140,7 @@ function Ko({
2128
2140
  checked: r,
2129
2141
  ...n
2130
2142
  }) {
2131
- return /* @__PURE__ */ i(
2143
+ return /* @__PURE__ */ s(
2132
2144
  D.CheckboxItem,
2133
2145
  {
2134
2146
  "data-slot": "menubar-checkbox-item",
@@ -2139,7 +2151,7 @@ function Ko({
2139
2151
  checked: r,
2140
2152
  ...n,
2141
2153
  children: [
2142
- /* @__PURE__ */ e("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e(D.ItemIndicator, { children: /* @__PURE__ */ e(ee, { className: "size-4" }) }) }),
2154
+ /* @__PURE__ */ e("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e(D.ItemIndicator, { children: /* @__PURE__ */ e(Q, { className: "size-4" }) }) }),
2143
2155
  a
2144
2156
  ]
2145
2157
  }
@@ -2150,7 +2162,7 @@ function Uo({
2150
2162
  children: a,
2151
2163
  ...r
2152
2164
  }) {
2153
- return /* @__PURE__ */ i(
2165
+ return /* @__PURE__ */ s(
2154
2166
  D.RadioItem,
2155
2167
  {
2156
2168
  "data-slot": "menubar-radio-item",
@@ -2160,7 +2172,7 @@ function Uo({
2160
2172
  ),
2161
2173
  ...r,
2162
2174
  children: [
2163
- /* @__PURE__ */ e("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e(D.ItemIndicator, { children: /* @__PURE__ */ e(le, { className: "size-2 fill-current" }) }) }),
2175
+ /* @__PURE__ */ e("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e(D.ItemIndicator, { children: /* @__PURE__ */ e(de, { className: "size-2 fill-current" }) }) }),
2164
2176
  a
2165
2177
  ]
2166
2178
  }
@@ -2224,7 +2236,7 @@ function Yo({
2224
2236
  children: r,
2225
2237
  ...n
2226
2238
  }) {
2227
- return /* @__PURE__ */ i(
2239
+ return /* @__PURE__ */ s(
2228
2240
  D.SubTrigger,
2229
2241
  {
2230
2242
  "data-slot": "menubar-sub-trigger",
@@ -2236,7 +2248,7 @@ function Yo({
2236
2248
  ...n,
2237
2249
  children: [
2238
2250
  r,
2239
- /* @__PURE__ */ e(ce, { className: "ml-auto h-4 w-4" })
2251
+ /* @__PURE__ */ e(le, { className: "ml-auto h-4 w-4" })
2240
2252
  ]
2241
2253
  }
2242
2254
  );
@@ -2263,7 +2275,7 @@ function ei({
2263
2275
  viewport: r = !0,
2264
2276
  ...n
2265
2277
  }) {
2266
- return /* @__PURE__ */ i(
2278
+ return /* @__PURE__ */ s(
2267
2279
  B.Root,
2268
2280
  {
2269
2281
  "data-slot": "navigation-menu",
@@ -2275,7 +2287,7 @@ function ei({
2275
2287
  ...n,
2276
2288
  children: [
2277
2289
  a,
2278
- r && /* @__PURE__ */ e(ya, {})
2290
+ r && /* @__PURE__ */ e(fa, {})
2279
2291
  ]
2280
2292
  }
2281
2293
  );
@@ -2309,7 +2321,7 @@ function ai({
2309
2321
  }
2310
2322
  );
2311
2323
  }
2312
- const xa = U(
2324
+ const ma = U(
2313
2325
  "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"
2314
2326
  );
2315
2327
  function ri({
@@ -2317,17 +2329,17 @@ function ri({
2317
2329
  children: a,
2318
2330
  ...r
2319
2331
  }) {
2320
- return /* @__PURE__ */ i(
2332
+ return /* @__PURE__ */ s(
2321
2333
  B.Trigger,
2322
2334
  {
2323
2335
  "data-slot": "navigation-menu-trigger",
2324
- className: o(xa(), "group", t),
2336
+ className: o(ma(), "group", t),
2325
2337
  ...r,
2326
2338
  children: [
2327
2339
  a,
2328
2340
  " ",
2329
2341
  /* @__PURE__ */ e(
2330
- de,
2342
+ se,
2331
2343
  {
2332
2344
  className: "relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180",
2333
2345
  "aria-hidden": "true"
@@ -2354,7 +2366,7 @@ function ni({
2354
2366
  }
2355
2367
  );
2356
2368
  }
2357
- function ya({
2369
+ function fa({
2358
2370
  className: t,
2359
2371
  ...a
2360
2372
  }) {
@@ -2439,7 +2451,7 @@ function di({
2439
2451
  function li({ ...t }) {
2440
2452
  return /* @__PURE__ */ e("li", { "data-slot": "pagination-item", ...t });
2441
2453
  }
2442
- function nt({
2454
+ function et({
2443
2455
  className: t,
2444
2456
  isActive: a,
2445
2457
  size: r = "icon",
@@ -2452,7 +2464,7 @@ function nt({
2452
2464
  "data-slot": "pagination-link",
2453
2465
  "data-active": a,
2454
2466
  className: o(
2455
- K({
2467
+ H({
2456
2468
  variant: a ? "outline" : "ghost",
2457
2469
  size: r
2458
2470
  }),
@@ -2466,8 +2478,8 @@ function ci({
2466
2478
  className: t,
2467
2479
  ...a
2468
2480
  }) {
2469
- return /* @__PURE__ */ i(
2470
- nt,
2481
+ return /* @__PURE__ */ s(
2482
+ et,
2471
2483
  {
2472
2484
  "aria-label": "Go to previous page",
2473
2485
  size: "default",
@@ -2484,8 +2496,8 @@ function ui({
2484
2496
  className: t,
2485
2497
  ...a
2486
2498
  }) {
2487
- return /* @__PURE__ */ i(
2488
- nt,
2499
+ return /* @__PURE__ */ s(
2500
+ et,
2489
2501
  {
2490
2502
  "aria-label": "Go to next page",
2491
2503
  size: "default",
@@ -2493,7 +2505,7 @@ function ui({
2493
2505
  ...a,
2494
2506
  children: [
2495
2507
  /* @__PURE__ */ e("span", { className: "hidden sm:block", children: "Next" }),
2496
- /* @__PURE__ */ e(ce, {})
2508
+ /* @__PURE__ */ e(le, {})
2497
2509
  ]
2498
2510
  }
2499
2511
  );
@@ -2502,7 +2514,7 @@ function mi({
2502
2514
  className: t,
2503
2515
  ...a
2504
2516
  }) {
2505
- return /* @__PURE__ */ i(
2517
+ return /* @__PURE__ */ s(
2506
2518
  "span",
2507
2519
  {
2508
2520
  "aria-hidden": !0,
@@ -2519,12 +2531,12 @@ function mi({
2519
2531
  function fi({
2520
2532
  ...t
2521
2533
  }) {
2522
- return /* @__PURE__ */ e(Q.Root, { "data-slot": "popover", ...t });
2534
+ return /* @__PURE__ */ e(Y.Root, { "data-slot": "popover", ...t });
2523
2535
  }
2524
2536
  function pi({
2525
2537
  ...t
2526
2538
  }) {
2527
- return /* @__PURE__ */ e(Q.Trigger, { "data-slot": "popover-trigger", ...t });
2539
+ return /* @__PURE__ */ e(Y.Trigger, { "data-slot": "popover-trigger", ...t });
2528
2540
  }
2529
2541
  function gi({
2530
2542
  className: t,
@@ -2532,8 +2544,8 @@ function gi({
2532
2544
  sideOffset: r = 4,
2533
2545
  ...n
2534
2546
  }) {
2535
- return /* @__PURE__ */ e(Q.Portal, { children: /* @__PURE__ */ e(
2536
- Q.Content,
2547
+ return /* @__PURE__ */ e(Y.Portal, { children: /* @__PURE__ */ e(
2548
+ Y.Content,
2537
2549
  {
2538
2550
  "data-slot": "popover-content",
2539
2551
  align: a,
@@ -2549,7 +2561,7 @@ function gi({
2549
2561
  function bi({
2550
2562
  ...t
2551
2563
  }) {
2552
- return /* @__PURE__ */ e(Q.Anchor, { "data-slot": "popover-anchor", ...t });
2564
+ return /* @__PURE__ */ e(Y.Anchor, { "data-slot": "popover-anchor", ...t });
2553
2565
  }
2554
2566
  function vi({
2555
2567
  className: t,
@@ -2557,16 +2569,17 @@ function vi({
2557
2569
  ...r
2558
2570
  }) {
2559
2571
  return /* @__PURE__ */ e(
2560
- Le.Root,
2572
+ je.Root,
2561
2573
  {
2562
2574
  "data-slot": "progress",
2575
+ value: a,
2563
2576
  className: o(
2564
2577
  "bg-primary/20 relative h-2 w-full overflow-hidden rounded-full",
2565
2578
  t
2566
2579
  ),
2567
2580
  ...r,
2568
2581
  children: /* @__PURE__ */ e(
2569
- Le.Indicator,
2582
+ je.Indicator,
2570
2583
  {
2571
2584
  "data-slot": "progress-indicator",
2572
2585
  className: "bg-primary h-full w-full flex-1 transition-all",
@@ -2607,7 +2620,7 @@ function xi({
2607
2620
  {
2608
2621
  "data-slot": "radio-group-indicator",
2609
2622
  className: "relative flex items-center justify-center",
2610
- children: /* @__PURE__ */ e(le, { className: "fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" })
2623
+ children: /* @__PURE__ */ e(de, { className: "fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" })
2611
2624
  }
2612
2625
  )
2613
2626
  }
@@ -2618,7 +2631,7 @@ function yi({
2618
2631
  ...a
2619
2632
  }) {
2620
2633
  return /* @__PURE__ */ e(
2621
- De.PanelGroup,
2634
+ Se.PanelGroup,
2622
2635
  {
2623
2636
  "data-slot": "resizable-panel-group",
2624
2637
  className: o(
@@ -2632,7 +2645,7 @@ function yi({
2632
2645
  function wi({
2633
2646
  ...t
2634
2647
  }) {
2635
- return /* @__PURE__ */ e(De.Panel, { "data-slot": "resizable-panel", ...t });
2648
+ return /* @__PURE__ */ e(Se.Panel, { "data-slot": "resizable-panel", ...t });
2636
2649
  }
2637
2650
  function Ni({
2638
2651
  withHandle: t,
@@ -2640,7 +2653,7 @@ function Ni({
2640
2653
  ...r
2641
2654
  }) {
2642
2655
  return /* @__PURE__ */ e(
2643
- De.PanelResizeHandle,
2656
+ Se.PanelResizeHandle,
2644
2657
  {
2645
2658
  "data-slot": "resizable-handle",
2646
2659
  className: o(
@@ -2657,34 +2670,34 @@ function ki({
2657
2670
  children: a,
2658
2671
  ...r
2659
2672
  }) {
2660
- return /* @__PURE__ */ i(
2661
- q.Root,
2673
+ return /* @__PURE__ */ s(
2674
+ X.Root,
2662
2675
  {
2663
2676
  "data-slot": "scroll-area",
2664
2677
  className: o("relative", t),
2665
2678
  ...r,
2666
2679
  children: [
2667
2680
  /* @__PURE__ */ e(
2668
- q.Viewport,
2681
+ X.Viewport,
2669
2682
  {
2670
2683
  "data-slot": "scroll-area-viewport",
2671
2684
  className: "focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",
2672
2685
  children: a
2673
2686
  }
2674
2687
  ),
2675
- /* @__PURE__ */ e(wa, {}),
2676
- /* @__PURE__ */ e(q.Corner, {})
2688
+ /* @__PURE__ */ e(pa, {}),
2689
+ /* @__PURE__ */ e(X.Corner, {})
2677
2690
  ]
2678
2691
  }
2679
2692
  );
2680
2693
  }
2681
- function wa({
2694
+ function pa({
2682
2695
  className: t,
2683
2696
  orientation: a = "vertical",
2684
2697
  ...r
2685
2698
  }) {
2686
2699
  return /* @__PURE__ */ e(
2687
- q.ScrollAreaScrollbar,
2700
+ X.ScrollAreaScrollbar,
2688
2701
  {
2689
2702
  "data-slot": "scroll-area-scrollbar",
2690
2703
  orientation: a,
@@ -2696,7 +2709,7 @@ function wa({
2696
2709
  ),
2697
2710
  ...r,
2698
2711
  children: /* @__PURE__ */ e(
2699
- q.ScrollAreaThumb,
2712
+ X.ScrollAreaThumb,
2700
2713
  {
2701
2714
  "data-slot": "scroll-area-thumb",
2702
2715
  className: "bg-border relative flex-1 rounded-full"
@@ -2708,17 +2721,17 @@ function wa({
2708
2721
  function Ci({
2709
2722
  ...t
2710
2723
  }) {
2711
- return /* @__PURE__ */ e(P.Root, { "data-slot": "select", ...t });
2724
+ return /* @__PURE__ */ e(_.Root, { "data-slot": "select", ...t });
2712
2725
  }
2713
2726
  function zi({
2714
2727
  ...t
2715
2728
  }) {
2716
- return /* @__PURE__ */ e(P.Group, { "data-slot": "select-group", ...t });
2729
+ return /* @__PURE__ */ e(_.Group, { "data-slot": "select-group", ...t });
2717
2730
  }
2718
2731
  function Si({
2719
2732
  ...t
2720
2733
  }) {
2721
- return /* @__PURE__ */ e(P.Value, { "data-slot": "select-value", ...t });
2734
+ return /* @__PURE__ */ e(_.Value, { "data-slot": "select-value", ...t });
2722
2735
  }
2723
2736
  function Ii({
2724
2737
  className: t,
@@ -2726,8 +2739,8 @@ function Ii({
2726
2739
  children: r,
2727
2740
  ...n
2728
2741
  }) {
2729
- return /* @__PURE__ */ i(
2730
- P.Trigger,
2742
+ return /* @__PURE__ */ s(
2743
+ _.Trigger,
2731
2744
  {
2732
2745
  "data-slot": "select-trigger",
2733
2746
  "data-size": a,
@@ -2738,7 +2751,7 @@ function Ii({
2738
2751
  ...n,
2739
2752
  children: [
2740
2753
  r,
2741
- /* @__PURE__ */ e(P.Icon, { asChild: !0, children: /* @__PURE__ */ e(de, { className: "size-4 opacity-50" }) })
2754
+ /* @__PURE__ */ e(_.Icon, { asChild: !0, children: /* @__PURE__ */ e(se, { className: "size-4 opacity-50" }) })
2742
2755
  ]
2743
2756
  }
2744
2757
  );
@@ -2749,8 +2762,8 @@ function Di({
2749
2762
  position: r = "popper",
2750
2763
  ...n
2751
2764
  }) {
2752
- return /* @__PURE__ */ e(P.Portal, { children: /* @__PURE__ */ i(
2753
- P.Content,
2765
+ return /* @__PURE__ */ e(_.Portal, { children: /* @__PURE__ */ s(
2766
+ _.Content,
2754
2767
  {
2755
2768
  "data-slot": "select-content",
2756
2769
  className: o(
@@ -2761,9 +2774,9 @@ function Di({
2761
2774
  position: r,
2762
2775
  ...n,
2763
2776
  children: [
2764
- /* @__PURE__ */ e(Na, {}),
2777
+ /* @__PURE__ */ e(ga, {}),
2765
2778
  /* @__PURE__ */ e(
2766
- P.Viewport,
2779
+ _.Viewport,
2767
2780
  {
2768
2781
  className: o(
2769
2782
  "p-1",
@@ -2772,7 +2785,7 @@ function Di({
2772
2785
  children: a
2773
2786
  }
2774
2787
  ),
2775
- /* @__PURE__ */ e(ka, {})
2788
+ /* @__PURE__ */ e(ba, {})
2776
2789
  ]
2777
2790
  }
2778
2791
  ) });
@@ -2782,7 +2795,7 @@ function _i({
2782
2795
  ...a
2783
2796
  }) {
2784
2797
  return /* @__PURE__ */ e(
2785
- P.Label,
2798
+ _.Label,
2786
2799
  {
2787
2800
  "data-slot": "select-label",
2788
2801
  className: o("text-muted-foreground px-2 py-1.5 text-xs", t),
@@ -2795,8 +2808,8 @@ function Pi({
2795
2808
  children: a,
2796
2809
  ...r
2797
2810
  }) {
2798
- return /* @__PURE__ */ i(
2799
- P.Item,
2811
+ return /* @__PURE__ */ s(
2812
+ _.Item,
2800
2813
  {
2801
2814
  "data-slot": "select-item",
2802
2815
  className: o(
@@ -2805,8 +2818,8 @@ function Pi({
2805
2818
  ),
2806
2819
  ...r,
2807
2820
  children: [
2808
- /* @__PURE__ */ e("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e(P.ItemIndicator, { children: /* @__PURE__ */ e(ee, { className: "size-4" }) }) }),
2809
- /* @__PURE__ */ e(P.ItemText, { children: a })
2821
+ /* @__PURE__ */ e("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e(_.ItemIndicator, { children: /* @__PURE__ */ e(Q, { className: "size-4" }) }) }),
2822
+ /* @__PURE__ */ e(_.ItemText, { children: a })
2810
2823
  ]
2811
2824
  }
2812
2825
  );
@@ -2816,7 +2829,7 @@ function Ti({
2816
2829
  ...a
2817
2830
  }) {
2818
2831
  return /* @__PURE__ */ e(
2819
- P.Separator,
2832
+ _.Separator,
2820
2833
  {
2821
2834
  "data-slot": "select-separator",
2822
2835
  className: o("bg-border pointer-events-none -mx-1 my-1 h-px", t),
@@ -2824,12 +2837,12 @@ function Ti({
2824
2837
  }
2825
2838
  );
2826
2839
  }
2827
- function Na({
2840
+ function ga({
2828
2841
  className: t,
2829
2842
  ...a
2830
2843
  }) {
2831
2844
  return /* @__PURE__ */ e(
2832
- P.ScrollUpButton,
2845
+ _.ScrollUpButton,
2833
2846
  {
2834
2847
  "data-slot": "select-scroll-up-button",
2835
2848
  className: o(
@@ -2841,12 +2854,12 @@ function Na({
2841
2854
  }
2842
2855
  );
2843
2856
  }
2844
- function ka({
2857
+ function ba({
2845
2858
  className: t,
2846
2859
  ...a
2847
2860
  }) {
2848
2861
  return /* @__PURE__ */ e(
2849
- P.ScrollDownButton,
2862
+ _.ScrollDownButton,
2850
2863
  {
2851
2864
  "data-slot": "select-scroll-down-button",
2852
2865
  className: o(
@@ -2854,18 +2867,18 @@ function ka({
2854
2867
  t
2855
2868
  ),
2856
2869
  ...a,
2857
- children: /* @__PURE__ */ e(de, { className: "size-4" })
2870
+ children: /* @__PURE__ */ e(se, { className: "size-4" })
2858
2871
  }
2859
2872
  );
2860
2873
  }
2861
- function Ca({
2874
+ function va({
2862
2875
  className: t,
2863
2876
  orientation: a = "horizontal",
2864
2877
  decorative: r = !0,
2865
2878
  ...n
2866
2879
  }) {
2867
2880
  return /* @__PURE__ */ e(
2868
- Xt.Root,
2881
+ Ot.Root,
2869
2882
  {
2870
2883
  "data-slot": "separator-root",
2871
2884
  decorative: r,
@@ -2878,7 +2891,7 @@ function Ca({
2878
2891
  }
2879
2892
  );
2880
2893
  }
2881
- function za({ ...t }) {
2894
+ function ha({ ...t }) {
2882
2895
  return /* @__PURE__ */ e(z.Root, { "data-slot": "sheet", ...t });
2883
2896
  }
2884
2897
  function Mi({
@@ -2891,12 +2904,12 @@ function Ei({
2891
2904
  }) {
2892
2905
  return /* @__PURE__ */ e(z.Close, { "data-slot": "sheet-close", ...t });
2893
2906
  }
2894
- function Sa({
2907
+ function xa({
2895
2908
  ...t
2896
2909
  }) {
2897
2910
  return /* @__PURE__ */ e(z.Portal, { "data-slot": "sheet-portal", ...t });
2898
2911
  }
2899
- function Ia({
2912
+ function ya({
2900
2913
  className: t,
2901
2914
  ...a
2902
2915
  }) {
@@ -2912,15 +2925,15 @@ function Ia({
2912
2925
  }
2913
2926
  );
2914
2927
  }
2915
- function Da({
2928
+ function wa({
2916
2929
  className: t,
2917
2930
  children: a,
2918
2931
  side: r = "right",
2919
2932
  ...n
2920
2933
  }) {
2921
- return /* @__PURE__ */ i(Sa, { children: [
2922
- /* @__PURE__ */ e(Ia, {}),
2923
- /* @__PURE__ */ i(
2934
+ return /* @__PURE__ */ s(xa, { children: [
2935
+ /* @__PURE__ */ e(ya, {}),
2936
+ /* @__PURE__ */ s(
2924
2937
  z.Content,
2925
2938
  {
2926
2939
  "data-slot": "sheet-content",
@@ -2935,7 +2948,7 @@ function Da({
2935
2948
  ...n,
2936
2949
  children: [
2937
2950
  a,
2938
- /* @__PURE__ */ i(z.Close, { 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", children: [
2951
+ /* @__PURE__ */ s(z.Close, { 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", children: [
2939
2952
  /* @__PURE__ */ e(Ve, { className: "size-4" }),
2940
2953
  /* @__PURE__ */ e("span", { className: "sr-only", children: "Close" })
2941
2954
  ] })
@@ -2944,7 +2957,7 @@ function Da({
2944
2957
  )
2945
2958
  ] });
2946
2959
  }
2947
- function _a({ className: t, ...a }) {
2960
+ function Na({ className: t, ...a }) {
2948
2961
  return /* @__PURE__ */ e(
2949
2962
  "div",
2950
2963
  {
@@ -2964,7 +2977,7 @@ function Ri({ className: t, ...a }) {
2964
2977
  }
2965
2978
  );
2966
2979
  }
2967
- function Pa({
2980
+ function ka({
2968
2981
  className: t,
2969
2982
  ...a
2970
2983
  }) {
@@ -2977,7 +2990,7 @@ function Pa({
2977
2990
  }
2978
2991
  );
2979
2992
  }
2980
- function Ta({
2993
+ function Ca({
2981
2994
  className: t,
2982
2995
  ...a
2983
2996
  }) {
@@ -2991,7 +3004,7 @@ function Ta({
2991
3004
  );
2992
3005
  }
2993
3006
  const be = 768;
2994
- function Ma() {
3007
+ function za() {
2995
3008
  const [t, a] = v.useState(
2996
3009
  void 0
2997
3010
  );
@@ -3002,7 +3015,7 @@ function Ma() {
3002
3015
  return r.addEventListener("change", n), a(window.innerWidth < be), () => r.removeEventListener("change", n);
3003
3016
  }, []), !!t;
3004
3017
  }
3005
- function Be({ className: t, ...a }) {
3018
+ function Fe({ className: t, ...a }) {
3006
3019
  return /* @__PURE__ */ e(
3007
3020
  "div",
3008
3021
  {
@@ -3012,12 +3025,12 @@ function Be({ className: t, ...a }) {
3012
3025
  }
3013
3026
  );
3014
3027
  }
3015
- function ot({
3028
+ function tt({
3016
3029
  delayDuration: t = 0,
3017
3030
  ...a
3018
3031
  }) {
3019
3032
  return /* @__PURE__ */ e(
3020
- W.Provider,
3033
+ K.Provider,
3021
3034
  {
3022
3035
  "data-slot": "tooltip-provider",
3023
3036
  delayDuration: t,
@@ -3025,24 +3038,24 @@ function ot({
3025
3038
  }
3026
3039
  );
3027
3040
  }
3028
- function Ea({
3041
+ function Sa({
3029
3042
  ...t
3030
3043
  }) {
3031
- return /* @__PURE__ */ e(ot, { children: /* @__PURE__ */ e(W.Root, { "data-slot": "tooltip", ...t }) });
3044
+ return /* @__PURE__ */ e(tt, { children: /* @__PURE__ */ e(K.Root, { "data-slot": "tooltip", ...t }) });
3032
3045
  }
3033
- function Ra({
3046
+ function Ia({
3034
3047
  ...t
3035
3048
  }) {
3036
- return /* @__PURE__ */ e(W.Trigger, { "data-slot": "tooltip-trigger", ...t });
3049
+ return /* @__PURE__ */ e(K.Trigger, { "data-slot": "tooltip-trigger", ...t });
3037
3050
  }
3038
- function Aa({
3051
+ function Da({
3039
3052
  className: t,
3040
3053
  sideOffset: a = 0,
3041
3054
  children: r,
3042
3055
  ...n
3043
3056
  }) {
3044
- return /* @__PURE__ */ e(W.Portal, { children: /* @__PURE__ */ i(
3045
- W.Content,
3057
+ return /* @__PURE__ */ e(K.Portal, { children: /* @__PURE__ */ s(
3058
+ K.Content,
3046
3059
  {
3047
3060
  "data-slot": "tooltip-content",
3048
3061
  sideOffset: a,
@@ -3053,14 +3066,14 @@ function Aa({
3053
3066
  ...n,
3054
3067
  children: [
3055
3068
  r,
3056
- /* @__PURE__ */ e(W.Arrow, { className: "bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })
3069
+ /* @__PURE__ */ e(K.Arrow, { className: "bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })
3057
3070
  ]
3058
3071
  }
3059
3072
  ) });
3060
3073
  }
3061
- const ja = "sidebar_state", La = 3600 * 24 * 7, Fa = "16rem", Ba = "18rem", $a = "3rem", Ga = "b", it = v.createContext(null);
3062
- function ge() {
3063
- const t = v.useContext(it);
3074
+ const _a = "sidebar_state", Pa = 3600 * 24 * 7, Ta = "16rem", Ma = "18rem", Ea = "3rem", Ra = "b", at = v.createContext(null);
3075
+ function pe() {
3076
+ const t = v.useContext(at);
3064
3077
  if (!t)
3065
3078
  throw new Error("useSidebar must be used within a SidebarProvider.");
3066
3079
  return t;
@@ -3070,50 +3083,50 @@ function Ai({
3070
3083
  open: a,
3071
3084
  onOpenChange: r,
3072
3085
  className: n,
3073
- style: s,
3074
- children: l,
3086
+ style: i,
3087
+ children: d,
3075
3088
  ...c
3076
3089
  }) {
3077
- const u = Ma(), [d, g] = v.useState(!1), [m, C] = v.useState(t), x = a ?? m, y = v.useCallback(
3078
- (w) => {
3079
- const _ = typeof w == "function" ? w(x) : w;
3080
- r ? r(_) : C(_), document.cookie = `${ja}=${_}; path=/; max-age=${La}`;
3090
+ const u = za(), [l, b] = v.useState(!1), [m, C] = v.useState(t), w = a ?? m, h = v.useCallback(
3091
+ (y) => {
3092
+ const P = typeof y == "function" ? y(w) : y;
3093
+ r ? r(P) : C(P), document.cookie = `${_a}=${P}; path=/; max-age=${Pa}`;
3081
3094
  },
3082
- [r, x]
3083
- ), h = v.useCallback(() => u ? g((w) => !w) : y((w) => !w), [u, y, g]);
3095
+ [r, w]
3096
+ ), x = v.useCallback(() => u ? b((y) => !y) : h((y) => !y), [u, h, b]);
3084
3097
  v.useEffect(() => {
3085
- const w = (_) => {
3086
- _.key === Ga && (_.metaKey || _.ctrlKey) && (_.preventDefault(), h());
3098
+ const y = (P) => {
3099
+ P.key === Ra && (P.metaKey || P.ctrlKey) && (P.preventDefault(), x());
3087
3100
  };
3088
- return window.addEventListener("keydown", w), () => window.removeEventListener("keydown", w);
3089
- }, [h]);
3090
- const b = x ? "expanded" : "collapsed", f = v.useMemo(
3101
+ return window.addEventListener("keydown", y), () => window.removeEventListener("keydown", y);
3102
+ }, [x]);
3103
+ const p = w ? "expanded" : "collapsed", g = v.useMemo(
3091
3104
  () => ({
3092
- state: b,
3093
- open: x,
3094
- setOpen: y,
3105
+ state: p,
3106
+ open: w,
3107
+ setOpen: h,
3095
3108
  isMobile: u,
3096
- openMobile: d,
3097
- setOpenMobile: g,
3098
- toggleSidebar: h
3109
+ openMobile: l,
3110
+ setOpenMobile: b,
3111
+ toggleSidebar: x
3099
3112
  }),
3100
- [b, x, y, u, d, g, h]
3113
+ [p, w, h, u, l, b, x]
3101
3114
  );
3102
- return /* @__PURE__ */ e(it.Provider, { value: f, children: /* @__PURE__ */ e(ot, { delayDuration: 0, children: /* @__PURE__ */ e(
3115
+ return /* @__PURE__ */ e(at.Provider, { value: g, children: /* @__PURE__ */ e(tt, { delayDuration: 0, children: /* @__PURE__ */ e(
3103
3116
  "div",
3104
3117
  {
3105
3118
  "data-slot": "sidebar-wrapper",
3106
3119
  style: {
3107
- "--sidebar-width": Fa,
3108
- "--sidebar-width-icon": $a,
3109
- ...s
3120
+ "--sidebar-width": Ta,
3121
+ "--sidebar-width-icon": Ea,
3122
+ ...i
3110
3123
  },
3111
3124
  className: o(
3112
3125
  "group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",
3113
3126
  n
3114
3127
  ),
3115
3128
  ...c,
3116
- children: l
3129
+ children: d
3117
3130
  }
3118
3131
  ) }) });
3119
3132
  }
@@ -3122,10 +3135,10 @@ function ji({
3122
3135
  variant: a = "sidebar",
3123
3136
  collapsible: r = "offcanvas",
3124
3137
  className: n,
3125
- children: s,
3126
- ...l
3138
+ children: i,
3139
+ ...d
3127
3140
  }) {
3128
- const { isMobile: c, state: u, openMobile: d, setOpenMobile: g } = ge();
3141
+ const { isMobile: c, state: u, openMobile: l, setOpenMobile: b } = pe();
3129
3142
  return r === "none" ? /* @__PURE__ */ e(
3130
3143
  "div",
3131
3144
  {
@@ -3134,29 +3147,29 @@ function ji({
3134
3147
  "bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",
3135
3148
  n
3136
3149
  ),
3137
- ...l,
3138
- children: s
3150
+ ...d,
3151
+ children: i
3139
3152
  }
3140
- ) : c ? /* @__PURE__ */ e(za, { open: d, onOpenChange: g, ...l, children: /* @__PURE__ */ i(
3141
- Da,
3153
+ ) : c ? /* @__PURE__ */ e(ha, { open: l, onOpenChange: b, ...d, children: /* @__PURE__ */ s(
3154
+ wa,
3142
3155
  {
3143
3156
  "data-sidebar": "sidebar",
3144
3157
  "data-slot": "sidebar",
3145
3158
  "data-mobile": "true",
3146
3159
  className: "bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",
3147
3160
  style: {
3148
- "--sidebar-width": Ba
3161
+ "--sidebar-width": Ma
3149
3162
  },
3150
3163
  side: t,
3151
3164
  children: [
3152
- /* @__PURE__ */ i(_a, { className: "sr-only", children: [
3153
- /* @__PURE__ */ e(Pa, { children: "Sidebar" }),
3154
- /* @__PURE__ */ e(Ta, { children: "Displays the mobile sidebar." })
3165
+ /* @__PURE__ */ s(Na, { className: "sr-only", children: [
3166
+ /* @__PURE__ */ e(ka, { children: "Sidebar" }),
3167
+ /* @__PURE__ */ e(Ca, { children: "Displays the mobile sidebar." })
3155
3168
  ] }),
3156
- /* @__PURE__ */ e("div", { className: "flex h-full w-full flex-col", children: s })
3169
+ /* @__PURE__ */ e("div", { className: "flex h-full w-full flex-col", children: i })
3157
3170
  ]
3158
3171
  }
3159
- ) }) : /* @__PURE__ */ i(
3172
+ ) }) : /* @__PURE__ */ s(
3160
3173
  "div",
3161
3174
  {
3162
3175
  className: "group peer text-sidebar-foreground hidden md:block",
@@ -3189,14 +3202,14 @@ function ji({
3189
3202
  a === "floating" || a === "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",
3190
3203
  n
3191
3204
  ),
3192
- ...l,
3205
+ ...d,
3193
3206
  children: /* @__PURE__ */ e(
3194
3207
  "div",
3195
3208
  {
3196
3209
  "data-sidebar": "sidebar",
3197
3210
  "data-slot": "sidebar-inner",
3198
3211
  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",
3199
- children: s
3212
+ children: i
3200
3213
  }
3201
3214
  )
3202
3215
  }
@@ -3210,17 +3223,17 @@ function Li({
3210
3223
  onClick: a,
3211
3224
  ...r
3212
3225
  }) {
3213
- const { toggleSidebar: n } = ge();
3214
- return /* @__PURE__ */ i(
3215
- _e,
3226
+ const { toggleSidebar: n } = pe();
3227
+ return /* @__PURE__ */ s(
3228
+ Ie,
3216
3229
  {
3217
3230
  "data-sidebar": "trigger",
3218
3231
  "data-slot": "sidebar-trigger",
3219
3232
  variant: "ghost",
3220
3233
  size: "icon",
3221
3234
  className: o("size-7", t),
3222
- onClick: (s) => {
3223
- a == null || a(s), n();
3235
+ onClick: (i) => {
3236
+ a?.(i), n();
3224
3237
  },
3225
3238
  ...r,
3226
3239
  children: [
@@ -3231,7 +3244,7 @@ function Li({
3231
3244
  );
3232
3245
  }
3233
3246
  function Fi({ className: t, ...a }) {
3234
- const { toggleSidebar: r } = ge();
3247
+ const { toggleSidebar: r } = pe();
3235
3248
  return /* @__PURE__ */ e(
3236
3249
  "button",
3237
3250
  {
@@ -3273,7 +3286,7 @@ function $i({
3273
3286
  ...a
3274
3287
  }) {
3275
3288
  return /* @__PURE__ */ e(
3276
- va,
3289
+ ca,
3277
3290
  {
3278
3291
  "data-slot": "sidebar-input",
3279
3292
  "data-sidebar": "input",
@@ -3309,7 +3322,7 @@ function Hi({
3309
3322
  ...a
3310
3323
  }) {
3311
3324
  return /* @__PURE__ */ e(
3312
- Ca,
3325
+ va,
3313
3326
  {
3314
3327
  "data-slot": "sidebar-separator",
3315
3328
  "data-sidebar": "separator",
@@ -3419,7 +3432,7 @@ function qi({ className: t, ...a }) {
3419
3432
  }
3420
3433
  );
3421
3434
  }
3422
- const Oa = U(
3435
+ const Aa = U(
3423
3436
  "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",
3424
3437
  {
3425
3438
  variants: {
@@ -3444,32 +3457,32 @@ function Ji({
3444
3457
  isActive: a = !1,
3445
3458
  variant: r = "default",
3446
3459
  size: n = "default",
3447
- tooltip: s,
3448
- className: l,
3460
+ tooltip: i,
3461
+ className: d,
3449
3462
  ...c
3450
3463
  }) {
3451
- const u = t ? A : "button", { isMobile: d, state: g } = ge(), m = /* @__PURE__ */ e(
3464
+ const u = t ? A : "button", { isMobile: l, state: b } = pe(), m = /* @__PURE__ */ e(
3452
3465
  u,
3453
3466
  {
3454
3467
  "data-slot": "sidebar-menu-button",
3455
3468
  "data-sidebar": "menu-button",
3456
3469
  "data-size": n,
3457
3470
  "data-active": a,
3458
- className: o(Oa({ variant: r, size: n }), l),
3471
+ className: o(Aa({ variant: r, size: n }), d),
3459
3472
  ...c
3460
3473
  }
3461
3474
  );
3462
- return s ? (typeof s == "string" && (s = {
3463
- children: s
3464
- }), /* @__PURE__ */ i(Ea, { children: [
3465
- /* @__PURE__ */ e(Ra, { asChild: !0, children: m }),
3475
+ return i ? (typeof i == "string" && (i = {
3476
+ children: i
3477
+ }), /* @__PURE__ */ s(Sa, { children: [
3478
+ /* @__PURE__ */ e(Ia, { asChild: !0, children: m }),
3466
3479
  /* @__PURE__ */ e(
3467
- Aa,
3480
+ Da,
3468
3481
  {
3469
3482
  side: "right",
3470
3483
  align: "center",
3471
- hidden: g !== "collapsed" || d,
3472
- ...s
3484
+ hidden: b !== "collapsed" || l,
3485
+ ...i
3473
3486
  }
3474
3487
  )
3475
3488
  ] })) : m;
@@ -3528,7 +3541,7 @@ function es({
3528
3541
  ...r
3529
3542
  }) {
3530
3543
  const n = v.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []);
3531
- return /* @__PURE__ */ i(
3544
+ return /* @__PURE__ */ s(
3532
3545
  "div",
3533
3546
  {
3534
3547
  "data-slot": "sidebar-menu-skeleton",
@@ -3537,14 +3550,14 @@ function es({
3537
3550
  ...r,
3538
3551
  children: [
3539
3552
  a && /* @__PURE__ */ e(
3540
- Be,
3553
+ Fe,
3541
3554
  {
3542
3555
  className: "size-4 rounded-md",
3543
3556
  "data-sidebar": "menu-skeleton-icon"
3544
3557
  }
3545
3558
  ),
3546
3559
  /* @__PURE__ */ e(
3547
- Be,
3560
+ Fe,
3548
3561
  {
3549
3562
  className: "h-4 max-w-(--skeleton-width) flex-1",
3550
3563
  "data-sidebar": "menu-skeleton-text",
@@ -3591,7 +3604,7 @@ function rs({
3591
3604
  size: a = "md",
3592
3605
  isActive: r = !1,
3593
3606
  className: n,
3594
- ...s
3607
+ ...i
3595
3608
  }) {
3596
3609
  return /* @__PURE__ */ e(
3597
3610
  t ? A : "a",
@@ -3608,7 +3621,7 @@ function rs({
3608
3621
  "group-data-[collapsible=icon]:hidden",
3609
3622
  n
3610
3623
  ),
3611
- ...s
3624
+ ...i
3612
3625
  }
3613
3626
  );
3614
3627
  }
@@ -3617,36 +3630,36 @@ function ns({
3617
3630
  defaultValue: a,
3618
3631
  value: r,
3619
3632
  min: n = 0,
3620
- max: s = 100,
3621
- ...l
3633
+ max: i = 100,
3634
+ ...d
3622
3635
  }) {
3623
3636
  const c = v.useMemo(
3624
- () => Array.isArray(r) ? r : Array.isArray(a) ? a : [n, s],
3625
- [r, a, n, s]
3637
+ () => Array.isArray(r) ? r : Array.isArray(a) ? a : [n, i],
3638
+ [r, a, n, i]
3626
3639
  );
3627
- return /* @__PURE__ */ i(
3628
- re.Root,
3640
+ return /* @__PURE__ */ s(
3641
+ ae.Root,
3629
3642
  {
3630
3643
  "data-slot": "slider",
3631
3644
  defaultValue: a,
3632
3645
  value: r,
3633
3646
  min: n,
3634
- max: s,
3647
+ max: i,
3635
3648
  className: o(
3636
3649
  "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",
3637
3650
  t
3638
3651
  ),
3639
- ...l,
3652
+ ...d,
3640
3653
  children: [
3641
3654
  /* @__PURE__ */ e(
3642
- re.Track,
3655
+ ae.Track,
3643
3656
  {
3644
3657
  "data-slot": "slider-track",
3645
3658
  className: o(
3646
3659
  "bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-4 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"
3647
3660
  ),
3648
3661
  children: /* @__PURE__ */ e(
3649
- re.Range,
3662
+ ae.Range,
3650
3663
  {
3651
3664
  "data-slot": "slider-range",
3652
3665
  className: o(
@@ -3656,22 +3669,22 @@ function ns({
3656
3669
  )
3657
3670
  }
3658
3671
  ),
3659
- Array.from({ length: c.length }, (u, d) => /* @__PURE__ */ e(
3660
- re.Thumb,
3672
+ Array.from({ length: c.length }, (u, l) => /* @__PURE__ */ e(
3673
+ ae.Thumb,
3661
3674
  {
3662
3675
  "data-slot": "slider-thumb",
3663
3676
  className: "border-primary bg-background ring-ring/50 block size-4 shrink-0 rounded-full border shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"
3664
3677
  },
3665
- d
3678
+ l
3666
3679
  ))
3667
3680
  ]
3668
3681
  }
3669
3682
  );
3670
3683
  }
3671
3684
  const os = ({ ...t }) => {
3672
- const { theme: a = "system" } = qt();
3685
+ const { theme: a = "system" } = Ht();
3673
3686
  return /* @__PURE__ */ e(
3674
- Jt,
3687
+ Vt,
3675
3688
  {
3676
3689
  theme: a,
3677
3690
  className: "toaster group",
@@ -3689,7 +3702,7 @@ function is({
3689
3702
  ...a
3690
3703
  }) {
3691
3704
  return /* @__PURE__ */ e(
3692
- Fe.Root,
3705
+ Le.Root,
3693
3706
  {
3694
3707
  "data-slot": "switch",
3695
3708
  className: o(
@@ -3698,7 +3711,7 @@ function is({
3698
3711
  ),
3699
3712
  ...a,
3700
3713
  children: /* @__PURE__ */ e(
3701
- Fe.Thumb,
3714
+ Le.Thumb,
3702
3715
  {
3703
3716
  "data-slot": "switch-thumb",
3704
3717
  className: o(
@@ -3816,7 +3829,7 @@ function gs({
3816
3829
  ...a
3817
3830
  }) {
3818
3831
  return /* @__PURE__ */ e(
3819
- me.Root,
3832
+ ue.Root,
3820
3833
  {
3821
3834
  "data-slot": "tabs",
3822
3835
  className: o("flex flex-col gap-2", t),
@@ -3829,7 +3842,7 @@ function bs({
3829
3842
  ...a
3830
3843
  }) {
3831
3844
  return /* @__PURE__ */ e(
3832
- me.List,
3845
+ ue.List,
3833
3846
  {
3834
3847
  "data-slot": "tabs-list",
3835
3848
  className: o(
@@ -3845,7 +3858,7 @@ function vs({
3845
3858
  ...a
3846
3859
  }) {
3847
3860
  return /* @__PURE__ */ e(
3848
- me.Trigger,
3861
+ ue.Trigger,
3849
3862
  {
3850
3863
  "data-slot": "tabs-trigger",
3851
3864
  className: o(
@@ -3861,7 +3874,7 @@ function hs({
3861
3874
  ...a
3862
3875
  }) {
3863
3876
  return /* @__PURE__ */ e(
3864
- me.Content,
3877
+ ue.Content,
3865
3878
  {
3866
3879
  "data-slot": "tabs-content",
3867
3880
  className: o("flex-1 outline-none", t),
@@ -3882,7 +3895,7 @@ function xs({ className: t, ...a }) {
3882
3895
  }
3883
3896
  );
3884
3897
  }
3885
- const st = U(
3898
+ const rt = U(
3886
3899
  "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",
3887
3900
  {
3888
3901
  variants: {
@@ -3909,15 +3922,15 @@ function ys({
3909
3922
  ...n
3910
3923
  }) {
3911
3924
  return /* @__PURE__ */ e(
3912
- Yt.Root,
3925
+ Wt.Root,
3913
3926
  {
3914
3927
  "data-slot": "toggle",
3915
- className: o(st({ variant: a, size: r, className: t })),
3928
+ className: o(rt({ variant: a, size: r, className: t })),
3916
3929
  ...n
3917
3930
  }
3918
3931
  );
3919
3932
  }
3920
- const dt = v.createContext({
3933
+ const nt = v.createContext({
3921
3934
  size: "default",
3922
3935
  variant: "default"
3923
3936
  });
@@ -3926,10 +3939,10 @@ function ws({
3926
3939
  variant: a,
3927
3940
  size: r,
3928
3941
  children: n,
3929
- ...s
3942
+ ...i
3930
3943
  }) {
3931
3944
  return /* @__PURE__ */ e(
3932
- Ye.Root,
3945
+ Ze.Root,
3933
3946
  {
3934
3947
  "data-slot": "toggle-group",
3935
3948
  "data-variant": a,
@@ -3938,8 +3951,8 @@ function ws({
3938
3951
  "group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs",
3939
3952
  t
3940
3953
  ),
3941
- ...s,
3942
- children: /* @__PURE__ */ e(dt.Provider, { value: { variant: a, size: r }, children: n })
3954
+ ...i,
3955
+ children: /* @__PURE__ */ e(nt.Provider, { value: { variant: a, size: r }, children: n })
3943
3956
  }
3944
3957
  );
3945
3958
  }
@@ -3948,35 +3961,35 @@ function Ns({
3948
3961
  children: a,
3949
3962
  variant: r,
3950
3963
  size: n,
3951
- ...s
3964
+ ...i
3952
3965
  }) {
3953
- const l = v.useContext(dt);
3966
+ const d = v.useContext(nt);
3954
3967
  return /* @__PURE__ */ e(
3955
- Ye.Item,
3968
+ Ze.Item,
3956
3969
  {
3957
3970
  "data-slot": "toggle-group-item",
3958
- "data-variant": l.variant || r,
3959
- "data-size": l.size || n,
3971
+ "data-variant": d.variant || r,
3972
+ "data-size": d.size || n,
3960
3973
  className: o(
3961
- st({
3962
- variant: l.variant || r,
3963
- size: l.size || n
3974
+ rt({
3975
+ variant: d.variant || r,
3976
+ size: d.size || n
3964
3977
  }),
3965
3978
  "min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",
3966
3979
  t
3967
3980
  ),
3968
- ...s,
3981
+ ...i,
3969
3982
  children: a
3970
3983
  }
3971
3984
  );
3972
3985
  }
3973
- const Ha = {
3986
+ const ja = {
3974
3987
  primary: "bg-gradient-to-r from-[var(--dm-accent-from)] to-[var(--dm-accent-to)] text-white shadow-[var(--dm-shadow-sm)] hover:shadow-[var(--dm-shadow-md)] hover:brightness-110 active:brightness-95",
3975
3988
  secondary: "bg-[var(--dm-hover-bg)] text-[var(--dm-text-primary)] border border-[var(--dm-border)] hover:bg-[var(--dm-active-bg)] hover:border-[var(--dm-border-strong)]",
3976
3989
  ghost: "bg-transparent text-[var(--dm-text-secondary)] hover:bg-[var(--dm-hover-bg)] hover:text-[var(--dm-text-primary)]",
3977
3990
  danger: "bg-[var(--dm-error)] text-white hover:brightness-110 active:brightness-95",
3978
3991
  accent: "bg-[var(--dm-accent-from)]/15 text-[var(--dm-accent-from)] border border-[var(--dm-accent-from)]/30 hover:bg-[var(--dm-accent-from)]/25"
3979
- }, Va = {
3992
+ }, La = {
3980
3993
  sm: "h-8 px-3 text-xs gap-1.5 rounded-lg",
3981
3994
  md: "h-10 px-4 text-sm gap-2 rounded-xl",
3982
3995
  lg: "h-12 px-6 text-base gap-2.5 rounded-xl"
@@ -3985,31 +3998,31 @@ const Ha = {
3985
3998
  size: a = "md",
3986
3999
  loading: r = !1,
3987
4000
  icon: n,
3988
- iconRight: s,
3989
- fullWidth: l = !1,
4001
+ iconRight: i,
4002
+ fullWidth: d = !1,
3990
4003
  disabled: c,
3991
4004
  className: u,
3992
- children: d,
3993
- ...g
3994
- }) => /* @__PURE__ */ i(
4005
+ children: l,
4006
+ ...b
4007
+ }) => /* @__PURE__ */ s(
3995
4008
  "button",
3996
4009
  {
3997
4010
  disabled: c || r,
3998
- className: p(
4011
+ className: f(
3999
4012
  "inline-flex items-center justify-center font-medium",
4000
4013
  "transition-all duration-150 ease-out",
4001
4014
  "dm-focus-ring select-none",
4002
4015
  "disabled:opacity-40 disabled:cursor-not-allowed disabled:pointer-events-none",
4003
- Ha[t],
4004
- Va[a],
4005
- l && "w-full",
4016
+ ja[t],
4017
+ La[a],
4018
+ d && "w-full",
4006
4019
  u
4007
4020
  ),
4008
- ...g,
4021
+ ...b,
4009
4022
  children: [
4010
4023
  r ? /* @__PURE__ */ e(ke, { className: "w-4 h-4 animate-spin", "aria-hidden": "true" }) : n ? /* @__PURE__ */ e("span", { className: "flex-shrink-0", "aria-hidden": "true", children: n }) : null,
4011
- d && /* @__PURE__ */ e("span", { children: d }),
4012
- s && !r && /* @__PURE__ */ e("span", { className: "flex-shrink-0", "aria-hidden": "true", children: s })
4024
+ l && /* @__PURE__ */ e("span", { children: l }),
4025
+ i && !r && /* @__PURE__ */ e("span", { className: "flex-shrink-0", "aria-hidden": "true", children: i })
4013
4026
  ]
4014
4027
  }
4015
4028
  ), j = ({
@@ -4017,60 +4030,60 @@ const Ha = {
4017
4030
  label: a,
4018
4031
  error: r,
4019
4032
  hint: n,
4020
- inputSize: s = "md",
4021
- leftIcon: l,
4033
+ inputSize: i = "md",
4034
+ leftIcon: d,
4022
4035
  className: c,
4023
4036
  id: u,
4024
- type: d,
4025
- ...g
4037
+ type: l,
4038
+ ...b
4026
4039
  }) => {
4027
- const [m, C] = V.useState(!1), x = u || `dinput-${V.useId()}`, y = t === "password", h = t === "search", b = y ? m ? "text" : "password" : d || "text", f = { sm: "h-8", md: "h-10", lg: "h-12" }, w = { sm: "text-xs", md: "text-sm", lg: "text-base" };
4028
- return /* @__PURE__ */ i("div", { className: p("flex flex-col gap-1.5", c), children: [
4040
+ const [m, C] = W.useState(!1), w = W.useId(), h = u || `dinput-${w}`, x = t === "password", p = t === "search", g = x ? m ? "text" : "password" : l || "text", y = { sm: "h-8", md: "h-10", lg: "h-12" }, P = { sm: "text-xs", md: "text-sm", lg: "text-base" };
4041
+ return /* @__PURE__ */ s("div", { className: f("flex flex-col gap-1.5", c), children: [
4029
4042
  a && /* @__PURE__ */ e(
4030
4043
  "label",
4031
4044
  {
4032
- htmlFor: x,
4045
+ htmlFor: h,
4033
4046
  className: "text-xs font-medium",
4034
4047
  style: { color: "var(--dm-text-secondary)" },
4035
4048
  children: a
4036
4049
  }
4037
4050
  ),
4038
- /* @__PURE__ */ i("div", { className: "relative", children: [
4039
- (h || l) && /* @__PURE__ */ e(
4051
+ /* @__PURE__ */ s("div", { className: "relative", children: [
4052
+ (p || d) && /* @__PURE__ */ e(
4040
4053
  "span",
4041
4054
  {
4042
4055
  className: "absolute left-3 top-1/2 -translate-y-1/2 pointer-events-none",
4043
4056
  style: { color: "var(--dm-text-tertiary)" },
4044
4057
  "aria-hidden": "true",
4045
- children: h ? /* @__PURE__ */ e(Ct, { className: "w-4 h-4" }) : l
4058
+ children: p ? /* @__PURE__ */ e(Ct, { className: "w-4 h-4" }) : d
4046
4059
  }
4047
4060
  ),
4048
4061
  /* @__PURE__ */ e(
4049
4062
  "input",
4050
4063
  {
4051
- id: x,
4052
- type: b,
4053
- className: p(
4064
+ id: h,
4065
+ type: g,
4066
+ className: f(
4054
4067
  "w-full rounded-xl border px-3 font-normal",
4055
4068
  "transition-all duration-150 ease-out dm-focus-ring",
4056
4069
  "placeholder:text-[var(--dm-text-disabled)]",
4057
- f[s],
4058
- w[s],
4059
- (h || l) && "pl-9",
4060
- y && "pr-9",
4070
+ y[i],
4071
+ P[i],
4072
+ (p || d) && "pl-9",
4073
+ x && "pr-9",
4061
4074
  r ? "border-[var(--dm-error)] bg-[var(--dm-error)]/5" : "border-[var(--dm-border)] bg-[var(--dm-bg-panel)]"
4062
4075
  ),
4063
4076
  style: { color: "var(--dm-text-primary)" },
4064
4077
  "aria-invalid": r ? "true" : void 0,
4065
- "aria-describedby": r ? `${x}-error` : n ? `${x}-hint` : void 0,
4066
- ...g
4078
+ "aria-describedby": r ? `${h}-error` : n ? `${h}-hint` : void 0,
4079
+ ...b
4067
4080
  }
4068
4081
  ),
4069
- y && /* @__PURE__ */ e(
4082
+ x && /* @__PURE__ */ e(
4070
4083
  "button",
4071
4084
  {
4072
4085
  type: "button",
4073
- onClick: () => C((_) => !_),
4086
+ onClick: () => C((M) => !M),
4074
4087
  className: "absolute right-3 top-1/2 -translate-y-1/2 p-0.5 rounded dm-focus-ring",
4075
4088
  style: { color: "var(--dm-text-tertiary)" },
4076
4089
  "aria-label": m ? "Hide password" : "Show password",
@@ -4079,13 +4092,13 @@ const Ha = {
4079
4092
  }
4080
4093
  )
4081
4094
  ] }),
4082
- r && /* @__PURE__ */ i("p", { id: `${x}-error`, className: "text-xs flex items-center gap-1", style: { color: "var(--dm-error)" }, role: "alert", children: [
4095
+ r && /* @__PURE__ */ s("p", { id: `${h}-error`, className: "text-xs flex items-center gap-1", style: { color: "var(--dm-error)" }, role: "alert", children: [
4083
4096
  /* @__PURE__ */ e(We, { className: "w-3 h-3 flex-shrink-0" }),
4084
4097
  r
4085
4098
  ] }),
4086
- n && !r && /* @__PURE__ */ e("p", { id: `${x}-hint`, className: "text-xs", style: { color: "var(--dm-text-tertiary)" }, children: n })
4099
+ n && !r && /* @__PURE__ */ e("p", { id: `${h}-hint`, className: "text-xs", style: { color: "var(--dm-text-tertiary)" }, children: n })
4087
4100
  ] });
4088
- }, Wa = {
4101
+ }, Fa = {
4089
4102
  none: "p-0",
4090
4103
  sm: "p-3",
4091
4104
  md: "p-4",
@@ -4095,31 +4108,31 @@ const Ha = {
4095
4108
  className: a,
4096
4109
  children: r,
4097
4110
  onClick: n,
4098
- interactive: s = !1,
4099
- glowColor: l,
4111
+ interactive: i = !1,
4112
+ glowColor: d,
4100
4113
  padding: c = "md"
4101
4114
  }) => {
4102
- const u = s || !!n, d = u ? E.div : "div", g = p(
4115
+ const u = i || !!n, l = u ? E.div : "div", b = f(
4103
4116
  "rounded-2xl border overflow-hidden",
4104
- Wa[c],
4117
+ Fa[c],
4105
4118
  u && "cursor-pointer dm-focus-ring",
4106
4119
  t === "glass" && "backdrop-blur-xl",
4107
4120
  a
4108
4121
  ), m = {
4109
4122
  background: t === "glass" ? "var(--dm-bg-overlay)" : "var(--dm-bg-elevated)",
4110
4123
  borderColor: "var(--dm-border-subtle)",
4111
- boxShadow: l ? `0 0 20px ${l}20, var(--dm-shadow-sm)` : "var(--dm-shadow-sm)"
4124
+ boxShadow: d ? `0 0 20px ${d}20, var(--dm-shadow-sm)` : "var(--dm-shadow-sm)"
4112
4125
  };
4113
4126
  return /* @__PURE__ */ e(
4114
- d,
4127
+ l,
4115
4128
  {
4116
- className: g,
4129
+ className: b,
4117
4130
  style: m,
4118
4131
  onClick: n,
4119
4132
  role: u ? "button" : void 0,
4120
4133
  tabIndex: u ? 0 : void 0,
4121
- onKeyDown: u ? (x) => {
4122
- (x.key === "Enter" || x.key === " ") && (x.preventDefault(), n == null || n());
4134
+ onKeyDown: u ? (w) => {
4135
+ (w.key === "Enter" || w.key === " ") && (w.preventDefault(), n?.());
4123
4136
  } : void 0,
4124
4137
  ...u ? {
4125
4138
  whileHover: { scale: 1.02, y: -2 },
@@ -4134,46 +4147,46 @@ const Ha = {
4134
4147
  artist: a,
4135
4148
  coverUrl: r,
4136
4149
  duration: n,
4137
- emotion: s,
4138
- isPlaying: l,
4150
+ emotion: i,
4151
+ isPlaying: d,
4139
4152
  onClick: c,
4140
4153
  className: u
4141
- }) => /* @__PURE__ */ i(k, { variant: "default", interactive: !0, onClick: c, padding: "sm", className: p("flex items-center gap-3", u), children: [
4142
- /* @__PURE__ */ i(
4154
+ }) => /* @__PURE__ */ s(k, { variant: "default", interactive: !0, onClick: c, padding: "sm", className: f("flex items-center gap-3", u), children: [
4155
+ /* @__PURE__ */ s(
4143
4156
  "div",
4144
4157
  {
4145
4158
  className: "w-12 h-12 rounded-xl flex-shrink-0 bg-gradient-to-br from-[var(--dm-accent-from)]/30 to-[var(--dm-accent-to)]/30 flex items-center justify-center overflow-hidden relative",
4146
4159
  children: [
4147
4160
  r ? /* @__PURE__ */ e("img", { src: r, alt: t, className: "w-full h-full object-cover", loading: "lazy" }) : /* @__PURE__ */ e("span", { className: "text-lg", children: "🎵" }),
4148
- l && /* @__PURE__ */ e("div", { className: "absolute inset-0 bg-black/40 flex items-center justify-center", children: /* @__PURE__ */ e("div", { className: "flex gap-0.5 items-end h-4", "aria-label": "Playing", children: [0, 1, 2].map((d) => /* @__PURE__ */ e(
4161
+ d && /* @__PURE__ */ e("div", { className: "absolute inset-0 bg-black/40 flex items-center justify-center", children: /* @__PURE__ */ e("div", { className: "flex gap-0.5 items-end h-4", "aria-label": "Playing", children: [0, 1, 2].map((l) => /* @__PURE__ */ e(
4149
4162
  E.div,
4150
4163
  {
4151
4164
  className: "w-1 rounded-full",
4152
4165
  style: { background: "var(--dm-accent-from)" },
4153
4166
  animate: { height: ["40%", "100%", "40%"] },
4154
- transition: { duration: 0.8, repeat: 1 / 0, delay: d * 0.15 }
4167
+ transition: { duration: 0.8, repeat: 1 / 0, delay: l * 0.15 }
4155
4168
  },
4156
- d
4169
+ l
4157
4170
  )) }) })
4158
4171
  ]
4159
4172
  }
4160
4173
  ),
4161
- /* @__PURE__ */ i("div", { className: "flex-1 min-w-0", children: [
4174
+ /* @__PURE__ */ s("div", { className: "flex-1 min-w-0", children: [
4162
4175
  /* @__PURE__ */ e("p", { className: "text-sm font-medium truncate", style: { color: "var(--dm-text-primary)" }, children: t }),
4163
4176
  /* @__PURE__ */ e("p", { className: "text-xs truncate", style: { color: "var(--dm-text-tertiary)" }, children: a })
4164
4177
  ] }),
4165
- /* @__PURE__ */ i("div", { className: "flex flex-col items-end gap-0.5 flex-shrink-0", children: [
4178
+ /* @__PURE__ */ s("div", { className: "flex flex-col items-end gap-0.5 flex-shrink-0", children: [
4166
4179
  n && /* @__PURE__ */ e("span", { className: "text-[10px] tabular-nums", style: { color: "var(--dm-text-disabled)" }, children: n }),
4167
- s && /* @__PURE__ */ e(O, { size: "xs", variant: "emotion", children: s })
4180
+ i && /* @__PURE__ */ e(O, { size: "xs", variant: "emotion", children: i })
4168
4181
  ] })
4169
- ] }), $e = ({
4182
+ ] }), Be = ({
4170
4183
  name: t,
4171
4184
  avatar: a,
4172
4185
  subtitle: r,
4173
4186
  badge: n,
4174
- onClick: s,
4175
- className: l
4176
- }) => /* @__PURE__ */ i(k, { variant: "default", interactive: !0, onClick: s, padding: "sm", className: p("flex items-center gap-3", l), children: [
4187
+ onClick: i,
4188
+ className: d
4189
+ }) => /* @__PURE__ */ s(k, { variant: "default", interactive: !0, onClick: i, padding: "sm", className: f("flex items-center gap-3", d), children: [
4177
4190
  /* @__PURE__ */ e(
4178
4191
  "div",
4179
4192
  {
@@ -4181,46 +4194,46 @@ const Ha = {
4181
4194
  children: a ? /* @__PURE__ */ e("img", { src: a, alt: t, className: "w-full h-full object-cover", loading: "lazy" }) : t.charAt(0).toUpperCase()
4182
4195
  }
4183
4196
  ),
4184
- /* @__PURE__ */ i("div", { className: "flex-1 min-w-0", children: [
4185
- /* @__PURE__ */ i("div", { className: "flex items-center gap-1.5", children: [
4197
+ /* @__PURE__ */ s("div", { className: "flex-1 min-w-0", children: [
4198
+ /* @__PURE__ */ s("div", { className: "flex items-center gap-1.5", children: [
4186
4199
  /* @__PURE__ */ e("span", { className: "text-sm font-medium truncate", style: { color: "var(--dm-text-primary)" }, children: t }),
4187
- n && /* @__PURE__ */ e(M, { variant: "accent", size: "sm", children: n })
4200
+ n && /* @__PURE__ */ e(T, { variant: "accent", size: "sm", children: n })
4188
4201
  ] }),
4189
4202
  r && /* @__PURE__ */ e("p", { className: "text-xs truncate", style: { color: "var(--dm-text-tertiary)" }, children: r })
4190
4203
  ] })
4191
- ] }), Ka = {
4204
+ ] }), Ba = {
4192
4205
  common: { color: "#9CA3AF", label: "普通" },
4193
4206
  rare: { color: "#3B82F6", label: "稀有" },
4194
4207
  epic: { color: "#A855F7", label: "史诗" },
4195
4208
  legendary: { color: "#F59E0B", label: "传说" }
4196
- }, Ge = ({
4209
+ }, $e = ({
4197
4210
  title: t,
4198
4211
  description: a,
4199
4212
  icon: r,
4200
4213
  progress: n,
4201
- unlocked: s,
4202
- rarity: l = "common",
4214
+ unlocked: i,
4215
+ rarity: d = "common",
4203
4216
  className: c
4204
4217
  }) => {
4205
- const u = Ka[l];
4206
- return /* @__PURE__ */ i(
4218
+ const u = Ba[d];
4219
+ return /* @__PURE__ */ s(
4207
4220
  k,
4208
4221
  {
4209
4222
  variant: "default",
4210
4223
  padding: "md",
4211
- glowColor: s ? u.color : void 0,
4212
- className: p("flex items-center gap-4", !s && "opacity-60", c),
4224
+ glowColor: i ? u.color : void 0,
4225
+ className: f("flex items-center gap-4", !i && "opacity-60", c),
4213
4226
  children: [
4214
- /* @__PURE__ */ i("div", { className: "relative flex-shrink-0", children: [
4215
- /* @__PURE__ */ e(J, { progress: n, size: 52, color: u.color, strokeWidth: 3 }),
4227
+ /* @__PURE__ */ s("div", { className: "relative flex-shrink-0", children: [
4228
+ /* @__PURE__ */ e(q, { progress: n, size: 52, color: u.color, strokeWidth: 3 }),
4216
4229
  /* @__PURE__ */ e("span", { className: "absolute inset-0 flex items-center justify-center text-xl", role: "img", "aria-label": t, children: r })
4217
4230
  ] }),
4218
- /* @__PURE__ */ i("div", { className: "flex-1 min-w-0", children: [
4231
+ /* @__PURE__ */ s("div", { className: "flex-1 min-w-0", children: [
4219
4232
  /* @__PURE__ */ e("p", { className: "text-sm font-medium truncate", style: { color: "var(--dm-text-primary)" }, children: t }),
4220
4233
  a && /* @__PURE__ */ e("p", { className: "text-xs truncate", style: { color: "var(--dm-text-tertiary)" }, children: a }),
4221
- /* @__PURE__ */ i("div", { className: "flex items-center gap-2 mt-1", children: [
4234
+ /* @__PURE__ */ s("div", { className: "flex items-center gap-2 mt-1", children: [
4222
4235
  /* @__PURE__ */ e(O, { size: "xs", style: { color: u.color, borderColor: `${u.color}40`, background: `${u.color}15` }, children: u.label }),
4223
- /* @__PURE__ */ i("span", { className: "text-[10px] tabular-nums", style: { color: "var(--dm-text-disabled)" }, children: [
4236
+ /* @__PURE__ */ s("span", { className: "text-[10px] tabular-nums", style: { color: "var(--dm-text-disabled)" }, children: [
4224
4237
  n,
4225
4238
  "%"
4226
4239
  ] })
@@ -4229,52 +4242,52 @@ const Ha = {
4229
4242
  ]
4230
4243
  }
4231
4244
  );
4232
- }, Ua = { sm: "h-1", md: "h-2", lg: "h-3" }, X = ({
4245
+ }, $a = { sm: "h-1", md: "h-2", lg: "h-3" }, Z = ({
4233
4246
  value: t,
4234
4247
  size: a = "md",
4235
4248
  variant: r = "gradient",
4236
4249
  showLabel: n = !1,
4237
- className: s,
4238
- ...l
4250
+ className: i,
4251
+ ...d
4239
4252
  }) => {
4240
4253
  const c = Math.min(100, Math.max(0, t)), u = r === "gradient" ? { background: "linear-gradient(to right, var(--dm-accent-from), var(--dm-accent-to))", width: `${c}%` } : r === "success" ? { background: "var(--dm-success)", width: `${c}%` } : r === "warning" ? { background: "var(--dm-warning)", width: `${c}%` } : r === "error" ? { background: "var(--dm-error)", width: `${c}%` } : { background: "var(--dm-accent-from)", width: `${c}%` };
4241
- return /* @__PURE__ */ i("div", { className: p("flex items-center gap-2", s), children: [
4254
+ return /* @__PURE__ */ s("div", { className: f("flex items-center gap-2", i), children: [
4242
4255
  /* @__PURE__ */ e(
4243
4256
  "div",
4244
4257
  {
4245
- className: p("flex-1 rounded-full overflow-hidden", Ua[a]),
4258
+ className: f("flex-1 rounded-full overflow-hidden", $a[a]),
4246
4259
  style: { background: "var(--dm-hover-bg)" },
4247
4260
  role: "progressbar",
4248
4261
  "aria-valuenow": c,
4249
4262
  "aria-valuemin": 0,
4250
4263
  "aria-valuemax": 100,
4251
- "aria-label": l["aria-label"] || `Progress: ${c}%`,
4264
+ "aria-label": d["aria-label"] || `Progress: ${c}%`,
4252
4265
  children: /* @__PURE__ */ e(
4253
4266
  "div",
4254
4267
  {
4255
- className: p("h-full rounded-full transition-[width] duration-500 ease-out"),
4268
+ className: f("h-full rounded-full transition-[width] duration-500 ease-out"),
4256
4269
  style: u
4257
4270
  }
4258
4271
  )
4259
4272
  }
4260
4273
  ),
4261
- n && /* @__PURE__ */ i("span", { className: "text-xs tabular-nums flex-shrink-0", style: { color: "var(--dm-text-tertiary)" }, children: [
4274
+ n && /* @__PURE__ */ s("span", { className: "text-xs tabular-nums flex-shrink-0", style: { color: "var(--dm-text-tertiary)" }, children: [
4262
4275
  c,
4263
4276
  "%"
4264
4277
  ] })
4265
4278
  ] });
4266
- }, J = ({
4279
+ }, q = ({
4267
4280
  progress: t,
4268
4281
  size: a = 48,
4269
4282
  strokeWidth: r = 3,
4270
4283
  color: n,
4271
- bgColor: s,
4272
- children: l,
4284
+ bgColor: i,
4285
+ children: d,
4273
4286
  className: c
4274
4287
  }) => {
4275
- const u = Math.min(100, Math.max(0, t)), d = (a - r) / 2, g = 2 * Math.PI * d, m = g - u / 100 * g;
4276
- return /* @__PURE__ */ i("div", { className: p("relative inline-flex items-center justify-center", c), style: { width: a, height: a }, children: [
4277
- /* @__PURE__ */ i(
4288
+ const u = Math.min(100, Math.max(0, t)), l = (a - r) / 2, b = 2 * Math.PI * l, m = b - u / 100 * b;
4289
+ return /* @__PURE__ */ s("div", { className: f("relative inline-flex items-center justify-center", c), style: { width: a, height: a }, children: [
4290
+ /* @__PURE__ */ s(
4278
4291
  "svg",
4279
4292
  {
4280
4293
  width: a,
@@ -4291,9 +4304,9 @@ const Ha = {
4291
4304
  {
4292
4305
  cx: a / 2,
4293
4306
  cy: a / 2,
4294
- r: d,
4307
+ r: l,
4295
4308
  fill: "none",
4296
- stroke: s || "var(--dm-hover-bg)",
4309
+ stroke: i || "var(--dm-hover-bg)",
4297
4310
  strokeWidth: r
4298
4311
  }
4299
4312
  ),
@@ -4302,11 +4315,11 @@ const Ha = {
4302
4315
  {
4303
4316
  cx: a / 2,
4304
4317
  cy: a / 2,
4305
- r: d,
4318
+ r: l,
4306
4319
  fill: "none",
4307
4320
  stroke: n || "var(--dm-accent-from)",
4308
4321
  strokeWidth: r,
4309
- strokeDasharray: g,
4322
+ strokeDasharray: b,
4310
4323
  strokeDashoffset: m,
4311
4324
  strokeLinecap: "round",
4312
4325
  className: "transition-[stroke-dashoffset] duration-700 ease-out",
@@ -4316,9 +4329,9 @@ const Ha = {
4316
4329
  ]
4317
4330
  }
4318
4331
  ),
4319
- l && /* @__PURE__ */ e("div", { className: "absolute inset-0 flex items-center justify-center", children: l })
4332
+ d && /* @__PURE__ */ e("div", { className: "absolute inset-0 flex items-center justify-center", children: d })
4320
4333
  ] });
4321
- }, lt = {
4334
+ }, ot = {
4322
4335
  loading: { Icon: ke, colorVar: "--dm-info" },
4323
4336
  success: { Icon: kt, colorVar: "--dm-success" },
4324
4337
  error: { Icon: We, colorVar: "--dm-error" },
@@ -4329,16 +4342,16 @@ const Ha = {
4329
4342
  message: a,
4330
4343
  description: r,
4331
4344
  className: n,
4332
- onDismiss: s
4345
+ onDismiss: i
4333
4346
  }) => {
4334
- const { Icon: l, colorVar: c } = lt[t], u = `var(${c})`;
4335
- return /* @__PURE__ */ i(
4347
+ const { Icon: d, colorVar: c } = ot[t], u = `var(${c})`;
4348
+ return /* @__PURE__ */ s(
4336
4349
  E.div,
4337
4350
  {
4338
4351
  initial: { opacity: 0, y: -8 },
4339
4352
  animate: { opacity: 1, y: 0 },
4340
4353
  exit: { opacity: 0, y: -8 },
4341
- className: p(
4354
+ className: f(
4342
4355
  "flex items-start gap-3 p-3 rounded-xl border",
4343
4356
  n
4344
4357
  ),
@@ -4350,25 +4363,25 @@ const Ha = {
4350
4363
  "aria-live": t === "error" ? "assertive" : "polite",
4351
4364
  children: [
4352
4365
  /* @__PURE__ */ e(
4353
- l,
4366
+ d,
4354
4367
  {
4355
- className: p("w-5 h-5 flex-shrink-0 mt-0.5", t === "loading" && "animate-spin"),
4368
+ className: f("w-5 h-5 flex-shrink-0 mt-0.5", t === "loading" && "animate-spin"),
4356
4369
  style: { color: u },
4357
4370
  "aria-hidden": "true"
4358
4371
  }
4359
4372
  ),
4360
- /* @__PURE__ */ i("div", { className: "flex-1 min-w-0", children: [
4373
+ /* @__PURE__ */ s("div", { className: "flex-1 min-w-0", children: [
4361
4374
  /* @__PURE__ */ e("p", { className: "text-sm font-medium", style: { color: "var(--dm-text-primary)" }, children: a }),
4362
4375
  r && /* @__PURE__ */ e("p", { className: "text-xs mt-0.5", style: { color: "var(--dm-text-secondary)" }, children: r })
4363
4376
  ] }),
4364
- s && /* @__PURE__ */ e(
4377
+ i && /* @__PURE__ */ e(
4365
4378
  "button",
4366
4379
  {
4367
- onClick: s,
4380
+ onClick: i,
4368
4381
  className: "p-0.5 rounded dm-focus-ring flex-shrink-0",
4369
4382
  style: { color: "var(--dm-text-tertiary)" },
4370
4383
  "aria-label": "Dismiss",
4371
- children: /* @__PURE__ */ e(te, { className: "w-4 h-4" })
4384
+ children: /* @__PURE__ */ e(ee, { className: "w-4 h-4" })
4372
4385
  }
4373
4386
  )
4374
4387
  ]
@@ -4377,34 +4390,34 @@ const Ha = {
4377
4390
  }, he = ({ size: t = "md", className: a }) => /* @__PURE__ */ e(
4378
4391
  ke,
4379
4392
  {
4380
- className: p("animate-spin", { sm: "w-4 h-4", md: "w-6 h-6", lg: "w-8 h-8" }[t], a),
4393
+ className: f("animate-spin", { sm: "w-4 h-4", md: "w-6 h-6", lg: "w-8 h-8" }[t], a),
4381
4394
  style: { color: "var(--dm-accent-from)" },
4382
4395
  "aria-label": "Loading"
4383
4396
  }
4384
- ), Za = {
4397
+ ), Ga = {
4385
4398
  default: "bg-[var(--dm-hover-bg)] text-[var(--dm-text-secondary)] border-[var(--dm-border-subtle)]",
4386
4399
  accent: "bg-[var(--dm-accent-from)]/15 text-[var(--dm-accent-from)] border-[var(--dm-accent-from)]/30",
4387
4400
  success: "bg-[var(--dm-success)]/15 text-[var(--dm-success)] border-[var(--dm-success)]/30",
4388
4401
  warning: "bg-[var(--dm-warning)]/15 text-[var(--dm-warning)] border-[var(--dm-warning)]/30",
4389
4402
  error: "bg-[var(--dm-error)]/15 text-[var(--dm-error)] border-[var(--dm-error)]/30",
4390
4403
  info: "bg-[var(--dm-info)]/15 text-[var(--dm-info)] border-[var(--dm-info)]/30"
4391
- }, M = ({
4404
+ }, T = ({
4392
4405
  variant: t = "default",
4393
4406
  size: a = "sm",
4394
4407
  children: r,
4395
4408
  className: n,
4396
- dot: s = !1
4397
- }) => /* @__PURE__ */ i(
4409
+ dot: i = !1
4410
+ }) => /* @__PURE__ */ s(
4398
4411
  "span",
4399
4412
  {
4400
- className: p(
4413
+ className: f(
4401
4414
  "inline-flex items-center gap-1 border rounded-full font-medium",
4402
4415
  a === "sm" ? "px-1.5 py-0.5 text-[10px]" : "px-2 py-0.5 text-xs",
4403
- Za[t],
4416
+ Ga[t],
4404
4417
  n
4405
4418
  ),
4406
4419
  children: [
4407
- s && /* @__PURE__ */ e("span", { className: "w-1.5 h-1.5 rounded-full bg-current", "aria-hidden": "true" }),
4420
+ i && /* @__PURE__ */ e("span", { className: "w-1.5 h-1.5 rounded-full bg-current", "aria-hidden": "true" }),
4408
4421
  r
4409
4422
  ]
4410
4423
  }
@@ -4413,12 +4426,12 @@ const Ha = {
4413
4426
  size: a = "sm",
4414
4427
  children: r,
4415
4428
  onRemove: n,
4416
- className: s,
4417
- style: l
4418
- }) => /* @__PURE__ */ i(
4429
+ className: i,
4430
+ style: d
4431
+ }) => /* @__PURE__ */ s(
4419
4432
  "span",
4420
4433
  {
4421
- className: p(
4434
+ className: f(
4422
4435
  "inline-flex items-center gap-1 rounded-full font-medium border",
4423
4436
  {
4424
4437
  xs: "px-1.5 py-0 text-[9px]",
@@ -4426,9 +4439,9 @@ const Ha = {
4426
4439
  md: "px-2.5 py-1 text-xs"
4427
4440
  }[a],
4428
4441
  t === "emotion" ? "bg-[var(--dm-accent-from)]/10 text-[var(--dm-accent-from)] border-[var(--dm-accent-from)]/20" : t === "outline" ? "bg-transparent text-[var(--dm-text-secondary)] border-[var(--dm-border)]" : "bg-[var(--dm-hover-bg)] text-[var(--dm-text-secondary)] border-[var(--dm-border-subtle)]",
4429
- s
4442
+ i
4430
4443
  ),
4431
- style: l,
4444
+ style: d,
4432
4445
  children: [
4433
4446
  r,
4434
4447
  n && /* @__PURE__ */ e(
@@ -4437,28 +4450,28 @@ const Ha = {
4437
4450
  onClick: n,
4438
4451
  className: "p-0 rounded-full hover:text-[var(--dm-text-primary)] dm-focus-ring",
4439
4452
  "aria-label": `Remove ${r}`,
4440
- children: /* @__PURE__ */ e(te, { className: "w-3 h-3" })
4453
+ children: /* @__PURE__ */ e(ee, { className: "w-3 h-3" })
4441
4454
  }
4442
4455
  )
4443
4456
  ]
4444
4457
  }
4445
- ), Xa = ({
4458
+ ), Oa = ({
4446
4459
  icon: t = "🎵",
4447
4460
  title: a,
4448
4461
  description: r,
4449
4462
  action: n,
4450
- className: s
4451
- }) => /* @__PURE__ */ i("div", { className: p("flex flex-col items-center justify-center py-12 px-6 text-center", s), children: [
4463
+ className: i
4464
+ }) => /* @__PURE__ */ s("div", { className: f("flex flex-col items-center justify-center py-12 px-6 text-center", i), children: [
4452
4465
  /* @__PURE__ */ e("span", { className: "text-4xl mb-4", role: "img", "aria-hidden": "true", children: t }),
4453
4466
  /* @__PURE__ */ e("h3", { className: "text-base font-medium mb-1", style: { color: "var(--dm-text-primary)" }, children: a }),
4454
4467
  r && /* @__PURE__ */ e("p", { className: "text-sm max-w-xs", style: { color: "var(--dm-text-tertiary)" }, children: r }),
4455
4468
  n && /* @__PURE__ */ e("div", { className: "mt-4", children: n })
4456
- ] }), qa = ({
4469
+ ] }), Ha = ({
4457
4470
  children: t,
4458
4471
  label: a,
4459
4472
  className: r,
4460
4473
  divided: n = !0
4461
- }) => /* @__PURE__ */ e("div", { className: p(r), role: "list", "aria-label": a, children: /* @__PURE__ */ e("div", { className: p(n && "divide-y divide-[var(--dm-border-subtle)]"), children: t }) }), xe = ({
4474
+ }) => /* @__PURE__ */ e("div", { className: f(r), role: "list", "aria-label": a, children: /* @__PURE__ */ e("div", { className: f(n && "divide-y divide-[var(--dm-border-subtle)]"), children: t }) }), xe = ({
4462
4475
  children: t,
4463
4476
  onClick: a,
4464
4477
  className: r,
@@ -4468,11 +4481,11 @@ const Ha = {
4468
4481
  {
4469
4482
  role: "listitem",
4470
4483
  onClick: a,
4471
- onKeyDown: a ? (s) => {
4472
- (s.key === "Enter" || s.key === " ") && (s.preventDefault(), a());
4484
+ onKeyDown: a ? (i) => {
4485
+ (i.key === "Enter" || i.key === " ") && (i.preventDefault(), a());
4473
4486
  } : void 0,
4474
4487
  tabIndex: a ? 0 : void 0,
4475
- className: p(
4488
+ className: f(
4476
4489
  "px-3 py-2.5",
4477
4490
  a && "cursor-pointer hover:bg-[var(--dm-hover-bg)] dm-focus-ring transition-colors",
4478
4491
  n && "bg-[var(--dm-active-bg)]",
@@ -4480,36 +4493,33 @@ const Ha = {
4480
4493
  ),
4481
4494
  children: t
4482
4495
  }
4483
- ), Ja = {
4496
+ ), Va = {
4484
4497
  sm: "max-w-sm",
4485
4498
  md: "max-w-md",
4486
4499
  lg: "max-w-lg"
4487
- }, Ya = ({
4500
+ }, Wa = ({
4488
4501
  isOpen: t,
4489
4502
  onClose: a,
4490
4503
  title: r,
4491
4504
  description: n,
4492
- children: s,
4493
- footer: l,
4505
+ children: i,
4506
+ footer: d,
4494
4507
  size: c = "md",
4495
4508
  className: u,
4496
- closeOnBackdrop: d = !0
4509
+ closeOnBackdrop: l = !0
4497
4510
  }) => {
4498
- const g = V.useRef(null);
4499
- return V.useEffect(() => {
4511
+ const b = W.useRef(null);
4512
+ return W.useEffect(() => {
4500
4513
  if (!t) return;
4501
4514
  const m = (C) => {
4502
4515
  C.key === "Escape" && (C.preventDefault(), a());
4503
4516
  };
4504
4517
  return document.addEventListener("keydown", m), () => document.removeEventListener("keydown", m);
4505
- }, [t, a]), V.useEffect(() => {
4506
- if (t && g.current) {
4507
- const m = g.current.querySelector(
4508
- 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
4509
- );
4510
- m == null || m.focus();
4511
- }
4512
- }, [t]), t ? /* @__PURE__ */ i(se, { children: [
4518
+ }, [t, a]), W.useEffect(() => {
4519
+ t && b.current && b.current.querySelector(
4520
+ 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
4521
+ )?.focus();
4522
+ }, [t]), t ? /* @__PURE__ */ s(ie, { children: [
4513
4523
  /* @__PURE__ */ e(
4514
4524
  E.div,
4515
4525
  {
@@ -4519,14 +4529,14 @@ const Ha = {
4519
4529
  transition: { duration: 0.2 },
4520
4530
  className: "fixed inset-0 z-[70] backdrop-blur-sm",
4521
4531
  style: { background: "var(--dm-bg-overlay, rgba(0,0,0,0.5))" },
4522
- onClick: d ? a : void 0,
4532
+ onClick: l ? a : void 0,
4523
4533
  "aria-hidden": "true"
4524
4534
  }
4525
4535
  ),
4526
- /* @__PURE__ */ e("div", { className: "fixed inset-0 z-[71] flex items-center justify-center p-4", children: /* @__PURE__ */ i(
4536
+ /* @__PURE__ */ e("div", { className: "fixed inset-0 z-[71] flex items-center justify-center p-4", children: /* @__PURE__ */ s(
4527
4537
  E.div,
4528
4538
  {
4529
- ref: g,
4539
+ ref: b,
4530
4540
  initial: { opacity: 0, scale: 0.95, y: 10 },
4531
4541
  animate: { opacity: 1, scale: 1, y: 0 },
4532
4542
  exit: { opacity: 0, scale: 0.95, y: 10 },
@@ -4534,9 +4544,9 @@ const Ha = {
4534
4544
  role: "dialog",
4535
4545
  "aria-modal": "true",
4536
4546
  "aria-label": r,
4537
- className: p(
4547
+ className: f(
4538
4548
  "w-full rounded-2xl border shadow-2xl overflow-hidden",
4539
- Ja[c],
4549
+ Va[c],
4540
4550
  u
4541
4551
  ),
4542
4552
  style: {
@@ -4546,13 +4556,13 @@ const Ha = {
4546
4556
  },
4547
4557
  onClick: (m) => m.stopPropagation(),
4548
4558
  children: [
4549
- /* @__PURE__ */ i(
4559
+ /* @__PURE__ */ s(
4550
4560
  "div",
4551
4561
  {
4552
4562
  className: "flex items-center justify-between px-5 py-4",
4553
4563
  style: { borderBottom: "1px solid var(--dm-border-subtle)" },
4554
4564
  children: [
4555
- /* @__PURE__ */ i("div", { className: "min-w-0", children: [
4565
+ /* @__PURE__ */ s("div", { className: "min-w-0", children: [
4556
4566
  /* @__PURE__ */ e("h3", { className: "font-semibold text-sm", style: { color: "var(--dm-text-primary)" }, children: r }),
4557
4567
  n && /* @__PURE__ */ e("p", { className: "text-xs mt-0.5", style: { color: "var(--dm-text-tertiary)" }, children: n })
4558
4568
  ] }),
@@ -4563,19 +4573,19 @@ const Ha = {
4563
4573
  className: "p-1.5 rounded-lg transition-colors dm-focus-ring flex-shrink-0 hover:bg-[var(--dm-hover-bg)]",
4564
4574
  style: { color: "var(--dm-text-tertiary)" },
4565
4575
  "aria-label": "Close dialog",
4566
- children: /* @__PURE__ */ e(te, { className: "w-4 h-4" })
4576
+ children: /* @__PURE__ */ e(ee, { className: "w-4 h-4" })
4567
4577
  }
4568
4578
  )
4569
4579
  ]
4570
4580
  }
4571
4581
  ),
4572
- /* @__PURE__ */ e("div", { className: "px-5 py-4 overflow-y-auto max-h-[60vh]", children: s }),
4573
- l && /* @__PURE__ */ e(
4582
+ /* @__PURE__ */ e("div", { className: "px-5 py-4 overflow-y-auto max-h-[60vh]", children: i }),
4583
+ d && /* @__PURE__ */ e(
4574
4584
  "div",
4575
4585
  {
4576
4586
  className: "px-5 py-3 flex justify-end gap-2",
4577
4587
  style: { borderTop: "1px solid var(--dm-border-subtle)" },
4578
- children: l
4588
+ children: d
4579
4589
  }
4580
4590
  )
4581
4591
  ]
@@ -4587,47 +4597,47 @@ const Ha = {
4587
4597
  activeTab: a,
4588
4598
  onTabChange: r,
4589
4599
  variant: n = "default",
4590
- size: s = "md",
4591
- className: l,
4600
+ size: i = "md",
4601
+ className: d,
4592
4602
  fullWidth: c = !1
4593
4603
  }) => /* @__PURE__ */ e(
4594
4604
  "div",
4595
4605
  {
4596
4606
  role: "tablist",
4597
- className: p(
4607
+ className: f(
4598
4608
  "flex",
4599
4609
  n === "default" && "gap-1 p-1 rounded-xl",
4600
4610
  n === "pills" && "gap-2",
4601
4611
  n === "underline" && "gap-0",
4602
4612
  c && "w-full",
4603
- l
4613
+ d
4604
4614
  ),
4605
4615
  style: n === "default" ? { background: "var(--dm-hover-bg)" } : void 0,
4606
4616
  children: t.map((u) => {
4607
- const d = u.id === a;
4608
- return /* @__PURE__ */ i(
4617
+ const l = u.id === a;
4618
+ return /* @__PURE__ */ s(
4609
4619
  "button",
4610
4620
  {
4611
4621
  role: "tab",
4612
- "aria-selected": d,
4622
+ "aria-selected": l,
4613
4623
  "aria-disabled": u.disabled,
4614
4624
  onClick: () => !u.disabled && r(u.id),
4615
- className: p(
4625
+ className: f(
4616
4626
  "relative inline-flex items-center justify-center gap-1.5 font-medium transition-all dm-focus-ring",
4617
4627
  c && "flex-1",
4618
4628
  u.disabled && "opacity-40 cursor-not-allowed",
4619
- s === "sm" ? "px-2.5 py-1 text-xs" : "px-3.5 py-1.5 text-sm",
4620
- n === "default" && p(
4629
+ i === "sm" ? "px-2.5 py-1 text-xs" : "px-3.5 py-1.5 text-sm",
4630
+ n === "default" && f(
4621
4631
  "rounded-lg",
4622
- d ? "bg-[var(--dm-bg-panel)] text-[var(--dm-text-primary)] shadow-sm" : "text-[var(--dm-text-tertiary)] hover:text-[var(--dm-text-secondary)]"
4632
+ l ? "bg-[var(--dm-bg-panel)] text-[var(--dm-text-primary)] shadow-sm" : "text-[var(--dm-text-tertiary)] hover:text-[var(--dm-text-secondary)]"
4623
4633
  ),
4624
- n === "pills" && p(
4634
+ n === "pills" && f(
4625
4635
  "rounded-full border",
4626
- d ? "bg-[var(--dm-accent-from)]/15 text-[var(--dm-accent-from)] border-[var(--dm-accent-from)]/30" : "text-[var(--dm-text-tertiary)] border-transparent hover:text-[var(--dm-text-secondary)] hover:bg-[var(--dm-hover-bg)]"
4636
+ l ? "bg-[var(--dm-accent-from)]/15 text-[var(--dm-accent-from)] border-[var(--dm-accent-from)]/30" : "text-[var(--dm-text-tertiary)] border-transparent hover:text-[var(--dm-text-secondary)] hover:bg-[var(--dm-hover-bg)]"
4627
4637
  ),
4628
- n === "underline" && p(
4638
+ n === "underline" && f(
4629
4639
  "pb-2",
4630
- d ? "text-[var(--dm-text-primary)]" : "text-[var(--dm-text-tertiary)] hover:text-[var(--dm-text-secondary)]"
4640
+ l ? "text-[var(--dm-text-primary)]" : "text-[var(--dm-text-tertiary)] hover:text-[var(--dm-text-secondary)]"
4631
4641
  )
4632
4642
  ),
4633
4643
  children: [
@@ -4638,13 +4648,13 @@ const Ha = {
4638
4648
  {
4639
4649
  className: "min-w-[16px] h-4 px-1 rounded-full text-[10px] font-bold flex items-center justify-center",
4640
4650
  style: {
4641
- background: d ? "var(--dm-accent-from)" : "var(--dm-hover-bg)",
4642
- color: d ? "#fff" : "var(--dm-text-tertiary)"
4651
+ background: l ? "var(--dm-accent-from)" : "var(--dm-hover-bg)",
4652
+ color: l ? "#fff" : "var(--dm-text-tertiary)"
4643
4653
  },
4644
4654
  children: u.badge > 99 ? "99+" : u.badge
4645
4655
  }
4646
4656
  ),
4647
- n === "underline" && d && /* @__PURE__ */ e(
4657
+ n === "underline" && l && /* @__PURE__ */ e(
4648
4658
  E.div,
4649
4659
  {
4650
4660
  layoutId: "tab-underline",
@@ -4664,19 +4674,19 @@ const Ha = {
4664
4674
  message: a,
4665
4675
  description: r,
4666
4676
  onDismiss: n,
4667
- className: s
4677
+ className: i
4668
4678
  }) => {
4669
- const { Icon: l, colorVar: c } = lt[t], u = `var(${c})`;
4670
- return /* @__PURE__ */ i(
4679
+ const { Icon: d, colorVar: c } = ot[t], u = `var(${c})`;
4680
+ return /* @__PURE__ */ s(
4671
4681
  E.div,
4672
4682
  {
4673
4683
  initial: { opacity: 0, y: 50, scale: 0.9 },
4674
4684
  animate: { opacity: 1, y: 0, scale: 1 },
4675
4685
  exit: { opacity: 0, y: 20, scale: 0.95 },
4676
4686
  transition: { type: "spring", damping: 25, stiffness: 400 },
4677
- className: p(
4687
+ className: f(
4678
4688
  "flex items-start gap-3 p-3 rounded-xl border shadow-lg max-w-sm pointer-events-auto",
4679
- s
4689
+ i
4680
4690
  ),
4681
4691
  style: {
4682
4692
  background: "var(--dm-bg-elevated)",
@@ -4687,14 +4697,14 @@ const Ha = {
4687
4697
  "aria-live": "assertive",
4688
4698
  children: [
4689
4699
  /* @__PURE__ */ e(
4690
- l,
4700
+ d,
4691
4701
  {
4692
4702
  className: "w-5 h-5 flex-shrink-0 mt-0.5",
4693
4703
  style: { color: u },
4694
4704
  "aria-hidden": "true"
4695
4705
  }
4696
4706
  ),
4697
- /* @__PURE__ */ i("div", { className: "flex-1 min-w-0", children: [
4707
+ /* @__PURE__ */ s("div", { className: "flex-1 min-w-0", children: [
4698
4708
  /* @__PURE__ */ e("p", { className: "text-sm font-medium", style: { color: "var(--dm-text-primary)" }, children: a }),
4699
4709
  r && /* @__PURE__ */ e("p", { className: "text-xs mt-0.5", style: { color: "var(--dm-text-secondary)" }, children: r })
4700
4710
  ] }),
@@ -4705,77 +4715,74 @@ const Ha = {
4705
4715
  className: "p-0.5 rounded dm-focus-ring flex-shrink-0",
4706
4716
  style: { color: "var(--dm-text-tertiary)" },
4707
4717
  "aria-label": "Dismiss",
4708
- children: /* @__PURE__ */ e(te, { className: "w-4 h-4" })
4718
+ children: /* @__PURE__ */ e(ee, { className: "w-4 h-4" })
4709
4719
  }
4710
4720
  )
4711
4721
  ]
4712
4722
  }
4713
4723
  );
4714
- }, Qa = ({
4724
+ }, Ka = ({
4715
4725
  items: t,
4716
4726
  separator: a,
4717
4727
  className: r
4718
4728
  }) => {
4719
4729
  const n = a || /* @__PURE__ */ e("span", { className: "text-[10px] mx-1", style: { color: "var(--dm-text-disabled)" }, "aria-hidden": "true", children: "/" });
4720
- return /* @__PURE__ */ e("nav", { "aria-label": "Breadcrumb", className: p("flex items-center flex-wrap", r), children: t.map((s, l) => {
4721
- const c = l === t.length - 1;
4722
- return /* @__PURE__ */ e(V.Fragment, { children: c ? /* @__PURE__ */ e(
4730
+ return /* @__PURE__ */ e("nav", { "aria-label": "Breadcrumb", className: f("flex items-center flex-wrap", r), children: t.map((i, d) => {
4731
+ const c = d === t.length - 1;
4732
+ return /* @__PURE__ */ e(W.Fragment, { children: c ? /* @__PURE__ */ e(
4723
4733
  "span",
4724
4734
  {
4725
4735
  className: "text-xs font-medium",
4726
4736
  style: { color: "var(--dm-text-primary)" },
4727
4737
  "aria-current": "page",
4728
- children: s.label
4738
+ children: i.label
4729
4739
  }
4730
- ) : /* @__PURE__ */ i(se, { children: [
4740
+ ) : /* @__PURE__ */ s(ie, { children: [
4731
4741
  /* @__PURE__ */ e(
4732
4742
  "button",
4733
4743
  {
4734
- onClick: s.onClick,
4744
+ onClick: i.onClick,
4735
4745
  className: "text-xs hover:underline dm-focus-ring transition-colors",
4736
4746
  style: { color: "var(--dm-text-tertiary)" },
4737
- children: s.label
4747
+ children: i.label
4738
4748
  }
4739
4749
  ),
4740
4750
  n
4741
- ] }) }, l);
4751
+ ] }) }, d);
4742
4752
  }) });
4743
- }, er = {
4753
+ }, Ua = {
4744
4754
  sm: "max-w-sm",
4745
4755
  md: "max-w-md",
4746
4756
  lg: "max-w-lg",
4747
4757
  xl: "max-w-xl",
4748
4758
  full: "max-w-full"
4749
- }, tr = ({
4759
+ }, Za = ({
4750
4760
  isOpen: t,
4751
4761
  onClose: a,
4752
4762
  title: r,
4753
4763
  subtitle: n,
4754
- icon: s,
4755
- children: l,
4764
+ icon: i,
4765
+ children: d,
4756
4766
  footer: c,
4757
4767
  size: u = "md",
4758
- sectionLabel: d,
4759
- className: g,
4768
+ sectionLabel: l,
4769
+ className: b,
4760
4770
  mobileBottomSheet: m = !1,
4761
4771
  noBackdrop: C = !1,
4762
- headerActions: x
4772
+ headerActions: w
4763
4773
  }) => {
4764
- const y = Mt(null);
4774
+ const h = Et(null);
4765
4775
  return Re(() => {
4766
4776
  if (!t) return;
4767
- const h = (b) => {
4768
- b.key === "Escape" && (b.preventDefault(), a());
4777
+ const x = (p) => {
4778
+ p.key === "Escape" && (p.preventDefault(), a());
4769
4779
  };
4770
- return document.addEventListener("keydown", h), () => document.removeEventListener("keydown", h);
4780
+ return document.addEventListener("keydown", x), () => document.removeEventListener("keydown", x);
4771
4781
  }, [t, a]), Re(() => {
4772
- if (t && y.current) {
4773
- const h = y.current.querySelector(
4774
- 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
4775
- );
4776
- h == null || h.focus();
4777
- }
4778
- }, [t]), /* @__PURE__ */ e(Qt, { children: t && /* @__PURE__ */ i(se, { children: [
4782
+ t && h.current && h.current.querySelector(
4783
+ 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
4784
+ )?.focus();
4785
+ }, [t]), /* @__PURE__ */ e(Kt, { children: t && /* @__PURE__ */ s(ie, { children: [
4779
4786
  !C && /* @__PURE__ */ e(
4780
4787
  E.div,
4781
4788
  {
@@ -4789,10 +4796,10 @@ const Ha = {
4789
4796
  "aria-hidden": "true"
4790
4797
  }
4791
4798
  ),
4792
- /* @__PURE__ */ i(
4799
+ /* @__PURE__ */ s(
4793
4800
  E.div,
4794
4801
  {
4795
- ref: y,
4802
+ ref: h,
4796
4803
  initial: m ? { y: "100%", opacity: 0 } : { x: "100%", opacity: 0 },
4797
4804
  animate: m ? { y: 0, opacity: 1 } : { x: 0, opacity: 1 },
4798
4805
  exit: m ? { y: "100%", opacity: 0 } : { x: "100%", opacity: 0 },
@@ -4800,12 +4807,12 @@ const Ha = {
4800
4807
  role: "dialog",
4801
4808
  "aria-modal": "true",
4802
4809
  "aria-label": r,
4803
- className: p(
4810
+ className: f(
4804
4811
  "fixed z-[61] flex flex-col shadow-2xl",
4805
4812
  // Responsive positioning
4806
4813
  m ? "bottom-0 left-0 right-0 max-h-[85vh] rounded-t-2xl" : "right-0 top-0 bottom-0 w-full",
4807
- !m && er[u],
4808
- g
4814
+ !m && Ua[u],
4815
+ b
4809
4816
  ),
4810
4817
  style: {
4811
4818
  background: "var(--dm-bg-panel, #0D1235)",
@@ -4815,14 +4822,14 @@ const Ha = {
4815
4822
  WebkitBackdropFilter: "blur(20px)"
4816
4823
  },
4817
4824
  children: [
4818
- /* @__PURE__ */ i(
4825
+ /* @__PURE__ */ s(
4819
4826
  "div",
4820
4827
  {
4821
4828
  className: "flex items-center justify-between px-5 py-4 flex-shrink-0",
4822
4829
  style: { borderBottom: "1px solid var(--dm-border-subtle)" },
4823
4830
  children: [
4824
- /* @__PURE__ */ i("div", { className: "flex items-center gap-3 min-w-0", children: [
4825
- s && /* @__PURE__ */ e(
4831
+ /* @__PURE__ */ s("div", { className: "flex items-center gap-3 min-w-0", children: [
4832
+ i && /* @__PURE__ */ e(
4826
4833
  "div",
4827
4834
  {
4828
4835
  className: "w-8 h-8 rounded-xl flex items-center justify-center flex-shrink-0",
@@ -4830,10 +4837,10 @@ const Ha = {
4830
4837
  background: "linear-gradient(135deg, var(--dm-accent-from, #8B5CF6)20, var(--dm-accent-to, #EC4899)20)",
4831
4838
  border: "1px solid var(--dm-border)"
4832
4839
  },
4833
- children: /* @__PURE__ */ e("span", { style: { color: "var(--dm-accent-from)" }, children: s })
4840
+ children: /* @__PURE__ */ e("span", { style: { color: "var(--dm-accent-from)" }, children: i })
4834
4841
  }
4835
4842
  ),
4836
- /* @__PURE__ */ i("div", { className: "min-w-0", children: [
4843
+ /* @__PURE__ */ s("div", { className: "min-w-0", children: [
4837
4844
  /* @__PURE__ */ e(
4838
4845
  "h3",
4839
4846
  {
@@ -4852,8 +4859,8 @@ const Ha = {
4852
4859
  )
4853
4860
  ] })
4854
4861
  ] }),
4855
- /* @__PURE__ */ i("div", { className: "flex items-center gap-2 flex-shrink-0", children: [
4856
- x,
4862
+ /* @__PURE__ */ s("div", { className: "flex items-center gap-2 flex-shrink-0", children: [
4863
+ w,
4857
4864
  /* @__PURE__ */ e(
4858
4865
  "button",
4859
4866
  {
@@ -4863,21 +4870,21 @@ const Ha = {
4863
4870
  color: "var(--dm-text-tertiary)",
4864
4871
  background: "transparent"
4865
4872
  },
4866
- onMouseEnter: (h) => {
4867
- h.target.style.background = "var(--dm-hover-bg)", h.target.style.color = "var(--dm-text-primary)";
4873
+ onMouseEnter: (x) => {
4874
+ x.target.style.background = "var(--dm-hover-bg)", x.target.style.color = "var(--dm-text-primary)";
4868
4875
  },
4869
- onMouseLeave: (h) => {
4870
- h.target.style.background = "transparent", h.target.style.color = "var(--dm-text-tertiary)";
4876
+ onMouseLeave: (x) => {
4877
+ x.target.style.background = "transparent", x.target.style.color = "var(--dm-text-tertiary)";
4871
4878
  },
4872
4879
  "aria-label": "Close panel",
4873
- children: /* @__PURE__ */ e(te, { className: "w-4 h-4" })
4880
+ children: /* @__PURE__ */ e(ee, { className: "w-4 h-4" })
4874
4881
  }
4875
4882
  )
4876
4883
  ] })
4877
4884
  ]
4878
4885
  }
4879
4886
  ),
4880
- /* @__PURE__ */ e("div", { className: "flex-1 overflow-y-auto overflow-x-hidden no-scrollbar", children: l }),
4887
+ /* @__PURE__ */ e("div", { className: "flex-1 overflow-y-auto overflow-x-hidden no-scrollbar", children: d }),
4881
4888
  c && /* @__PURE__ */ e(
4882
4889
  "div",
4883
4890
  {
@@ -4886,12 +4893,28 @@ const Ha = {
4886
4893
  children: c
4887
4894
  }
4888
4895
  ),
4889
- d && /* @__PURE__ */ e("div", { className: "px-5 pb-2 flex-shrink-0", children: /* @__PURE__ */ e("p", { className: "text-[9px] text-center", style: { color: "var(--dm-text-disabled)" }, children: d }) })
4896
+ l && /* @__PURE__ */ e("div", { className: "px-5 pb-2 flex-shrink-0", children: /* @__PURE__ */ e("p", { className: "text-[9px] text-center", style: { color: "var(--dm-text-disabled)" }, children: l }) })
4890
4897
  ]
4891
4898
  }
4892
4899
  )
4893
4900
  ] }) });
4894
- }, ar = {
4901
+ }, {
4902
+ LineChart: Xa,
4903
+ Line: it,
4904
+ BarChart: qa,
4905
+ Bar: Ge,
4906
+ PieChart: Ja,
4907
+ Pie: Ya,
4908
+ Cell: Qa,
4909
+ XAxis: st,
4910
+ YAxis: dt,
4911
+ Tooltip: De,
4912
+ ResponsiveContainer: ge,
4913
+ CartesianGrid: lt,
4914
+ Area: er,
4915
+ AreaChart: tr,
4916
+ Legend: ar
4917
+ } = ce, rr = {
4895
4918
  primary: [
4896
4919
  "#8B5CF6",
4897
4920
  // Violet
@@ -4928,7 +4951,7 @@ const Ha = {
4928
4951
  error: "#EF4444",
4929
4952
  info: "#3B82F6"
4930
4953
  }
4931
- }, Pe = ({ active: t, payload: a, label: r, formatter: n }) => !t || !(a != null && a.length) ? null : /* @__PURE__ */ i(
4954
+ }, _e = ({ active: t, payload: a, label: r, formatter: n }) => !t || !a?.length ? null : /* @__PURE__ */ s(
4932
4955
  "div",
4933
4956
  {
4934
4957
  className: "rounded-xl border px-3 py-2 text-xs backdrop-blur-xl",
@@ -4938,80 +4961,77 @@ const Ha = {
4938
4961
  },
4939
4962
  children: [
4940
4963
  r && /* @__PURE__ */ e("p", { className: "font-medium mb-1", style: { color: "var(--dm-text-secondary)" }, children: r }),
4941
- a.map((s, l) => /* @__PURE__ */ i("p", { className: "flex items-center gap-2", style: { color: s.color }, children: [
4964
+ a.map((i, d) => /* @__PURE__ */ s("p", { className: "flex items-center gap-2", style: { color: i.color }, children: [
4942
4965
  /* @__PURE__ */ e(
4943
4966
  "span",
4944
4967
  {
4945
4968
  className: "w-2 h-2 rounded-full flex-shrink-0",
4946
- style: { background: s.color }
4969
+ style: { background: i.color }
4947
4970
  }
4948
4971
  ),
4949
- /* @__PURE__ */ i("span", { style: { color: "var(--dm-text-primary)" }, children: [
4950
- s.name,
4972
+ /* @__PURE__ */ s("span", { style: { color: "var(--dm-text-primary)" }, children: [
4973
+ i.name,
4951
4974
  ": ",
4952
- n ? n(s.value) : s.value
4975
+ n ? n(i.value) : i.value
4953
4976
  ] })
4954
- ] }, l))
4977
+ ] }, d))
4955
4978
  ]
4956
4979
  }
4957
- ), rr = ({
4980
+ ), nr = ({
4958
4981
  data: t,
4959
4982
  height: a = 200,
4960
4983
  className: r,
4961
4984
  lang: n = "zh"
4962
- }) => {
4963
- var s;
4964
- return /* @__PURE__ */ e("div", { className: p("w-full", r), role: "img", "aria-label": n === "zh" ? "星力值增长曲线" : "Star Power Growth Curve", children: /* @__PURE__ */ e(ue, { width: "100%", height: a, children: /* @__PURE__ */ i($t, { data: t, margin: { top: 5, right: 5, left: -20, bottom: 0 }, children: [
4965
- /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ i("linearGradient", { id: "spGradient", x1: "0", y1: "0", x2: "0", y2: "1", children: [
4966
- /* @__PURE__ */ e("stop", { offset: "0%", stopColor: "#8B5CF6", stopOpacity: 0.4 }),
4967
- /* @__PURE__ */ e("stop", { offset: "100%", stopColor: "#8B5CF6", stopOpacity: 0.05 })
4968
- ] }) }),
4969
- /* @__PURE__ */ e(Ze, { strokeDasharray: "3 3", stroke: "var(--dm-border-subtle)", vertical: !1 }),
4970
- /* @__PURE__ */ e(
4971
- Xe,
4972
- {
4973
- dataKey: "date",
4974
- tick: { fill: "var(--dm-text-disabled)", fontSize: 10 },
4975
- axisLine: { stroke: "var(--dm-border-subtle)" },
4976
- tickLine: !1
4977
- }
4978
- ),
4979
- /* @__PURE__ */ e(
4980
- qe,
4981
- {
4982
- tick: { fill: "var(--dm-text-disabled)", fontSize: 10 },
4983
- axisLine: !1,
4984
- tickLine: !1
4985
- }
4986
- ),
4987
- /* @__PURE__ */ e(Se, { content: /* @__PURE__ */ e(Pe, {}) }),
4988
- /* @__PURE__ */ e(
4989
- Gt,
4990
- {
4991
- type: "monotone",
4992
- dataKey: "value",
4993
- stroke: "#8B5CF6",
4994
- strokeWidth: 2,
4995
- fill: "url(#spGradient)",
4996
- name: n === "zh" ? "星力值" : "Star Power",
4997
- dot: !1,
4998
- activeDot: { r: 4, fill: "#8B5CF6", stroke: "#fff", strokeWidth: 2 }
4999
- }
5000
- ),
5001
- ((s = t[0]) == null ? void 0 : s.earned) !== void 0 && /* @__PURE__ */ e(
5002
- Je,
5003
- {
5004
- type: "monotone",
5005
- dataKey: "earned",
5006
- stroke: "#22C55E",
5007
- strokeWidth: 1.5,
5008
- strokeDasharray: "4 4",
5009
- dot: !1,
5010
- name: n === "zh" ? "获得" : "Earned"
5011
- }
5012
- )
5013
- ] }) }) });
5014
- }, nr = {
4985
+ }) => /* @__PURE__ */ e("div", { className: f("w-full", r), role: "img", "aria-label": n === "zh" ? "星力值增长曲线" : "Star Power Growth Curve", children: /* @__PURE__ */ e(ge, { width: "100%", height: a, children: /* @__PURE__ */ s(tr, { data: t, margin: { top: 5, right: 5, left: -20, bottom: 0 }, children: [
4986
+ /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ s("linearGradient", { id: "spGradient", x1: "0", y1: "0", x2: "0", y2: "1", children: [
4987
+ /* @__PURE__ */ e("stop", { offset: "0%", stopColor: "#8B5CF6", stopOpacity: 0.4 }),
4988
+ /* @__PURE__ */ e("stop", { offset: "100%", stopColor: "#8B5CF6", stopOpacity: 0.05 })
4989
+ ] }) }),
4990
+ /* @__PURE__ */ e(lt, { strokeDasharray: "3 3", stroke: "var(--dm-border-subtle)", vertical: !1 }),
4991
+ /* @__PURE__ */ e(
4992
+ st,
4993
+ {
4994
+ dataKey: "date",
4995
+ tick: { fill: "var(--dm-text-disabled)", fontSize: 10 },
4996
+ axisLine: { stroke: "var(--dm-border-subtle)" },
4997
+ tickLine: !1
4998
+ }
4999
+ ),
5000
+ /* @__PURE__ */ e(
5001
+ dt,
5002
+ {
5003
+ tick: { fill: "var(--dm-text-disabled)", fontSize: 10 },
5004
+ axisLine: !1,
5005
+ tickLine: !1
5006
+ }
5007
+ ),
5008
+ /* @__PURE__ */ e(De, { content: /* @__PURE__ */ e(_e, {}) }),
5009
+ /* @__PURE__ */ e(
5010
+ er,
5011
+ {
5012
+ type: "monotone",
5013
+ dataKey: "value",
5014
+ stroke: "#8B5CF6",
5015
+ strokeWidth: 2,
5016
+ fill: "url(#spGradient)",
5017
+ name: n === "zh" ? "星力值" : "Star Power",
5018
+ dot: !1,
5019
+ activeDot: { r: 4, fill: "#8B5CF6", stroke: "#fff", strokeWidth: 2 }
5020
+ }
5021
+ ),
5022
+ t[0]?.earned !== void 0 && /* @__PURE__ */ e(
5023
+ it,
5024
+ {
5025
+ type: "monotone",
5026
+ dataKey: "earned",
5027
+ stroke: "#22C55E",
5028
+ strokeWidth: 1.5,
5029
+ strokeDasharray: "4 4",
5030
+ dot: !1,
5031
+ name: n === "zh" ? "获得" : "Earned"
5032
+ }
5033
+ )
5034
+ ] }) }) }), or = {
5015
5035
  happy: "开心",
5016
5036
  sad: "忧伤",
5017
5037
  energetic: "活力",
@@ -5022,26 +5042,26 @@ const Ha = {
5022
5042
  hopeful: "希望",
5023
5043
  angry: "愤怒",
5024
5044
  romantic: "浪漫"
5025
- }, or = ({
5045
+ }, ir = ({
5026
5046
  data: t,
5027
5047
  size: a = 180,
5028
5048
  className: r,
5029
5049
  lang: n = "zh"
5030
5050
  }) => {
5031
- const s = Ue(
5032
- () => t.map((l) => ({
5033
- ...l,
5034
- label: n === "zh" && nr[l.emotion] || l.emotion,
5035
- fill: ar.emotion[l.emotion] || "#667EEA"
5051
+ const i = Ue(
5052
+ () => t.map((d) => ({
5053
+ ...d,
5054
+ label: n === "zh" && or[d.emotion] || d.emotion,
5055
+ fill: rr.emotion[d.emotion] || "#667EEA"
5036
5056
  })),
5037
5057
  [t, n]
5038
5058
  );
5039
- return /* @__PURE__ */ i("div", { className: p("flex items-center gap-4", r), role: "img", "aria-label": n === "zh" ? "情绪分布" : "Emotion Distribution", children: [
5040
- /* @__PURE__ */ e(ue, { width: a, height: a, children: /* @__PURE__ */ i(Rt, { children: [
5059
+ return /* @__PURE__ */ s("div", { className: f("flex items-center gap-4", r), role: "img", "aria-label": n === "zh" ? "情绪分布" : "Emotion Distribution", children: [
5060
+ /* @__PURE__ */ e(ge, { width: a, height: a, children: /* @__PURE__ */ s(Ja, { children: [
5041
5061
  /* @__PURE__ */ e(
5042
- At,
5062
+ Ya,
5043
5063
  {
5044
- data: s,
5064
+ data: i,
5045
5065
  dataKey: "count",
5046
5066
  nameKey: "label",
5047
5067
  cx: "50%",
@@ -5050,88 +5070,85 @@ const Ha = {
5050
5070
  outerRadius: a * 0.44,
5051
5071
  paddingAngle: 2,
5052
5072
  strokeWidth: 0,
5053
- children: s.map((l, c) => /* @__PURE__ */ e(jt, { fill: l.fill }, c))
5073
+ children: i.map((d, c) => /* @__PURE__ */ e(Qa, { fill: d.fill }, c))
5054
5074
  }
5055
5075
  ),
5056
- /* @__PURE__ */ e(Se, { content: /* @__PURE__ */ e(Pe, {}) })
5076
+ /* @__PURE__ */ e(De, { content: /* @__PURE__ */ e(_e, {}) })
5057
5077
  ] }) }),
5058
- /* @__PURE__ */ e("div", { className: "flex flex-col gap-1 min-w-0", children: s.slice(0, 5).map((l, c) => /* @__PURE__ */ i("div", { className: "flex items-center gap-2 text-xs", children: [
5059
- /* @__PURE__ */ e("span", { className: "w-2 h-2 rounded-full flex-shrink-0", style: { background: l.fill } }),
5060
- /* @__PURE__ */ e("span", { className: "truncate", style: { color: "var(--dm-text-secondary)" }, children: l.label }),
5061
- /* @__PURE__ */ i("span", { className: "ml-auto tabular-nums", style: { color: "var(--dm-text-disabled)" }, children: [
5062
- l.pct ?? l.count,
5078
+ /* @__PURE__ */ e("div", { className: "flex flex-col gap-1 min-w-0", children: i.slice(0, 5).map((d, c) => /* @__PURE__ */ s("div", { className: "flex items-center gap-2 text-xs", children: [
5079
+ /* @__PURE__ */ e("span", { className: "w-2 h-2 rounded-full flex-shrink-0", style: { background: d.fill } }),
5080
+ /* @__PURE__ */ e("span", { className: "truncate", style: { color: "var(--dm-text-secondary)" }, children: d.label }),
5081
+ /* @__PURE__ */ s("span", { className: "ml-auto tabular-nums", style: { color: "var(--dm-text-disabled)" }, children: [
5082
+ d.pct ?? d.count,
5063
5083
  "%"
5064
5084
  ] })
5065
5085
  ] }, c)) })
5066
5086
  ] });
5067
- }, ir = ({
5087
+ }, sr = ({
5068
5088
  data: t,
5069
5089
  height: a = 200,
5070
5090
  className: r,
5071
5091
  lang: n = "zh"
5072
- }) => {
5073
- var s;
5074
- return /* @__PURE__ */ e("div", { className: p("w-full", r), role: "img", "aria-label": n === "zh" ? "播放统计" : "Play Statistics", children: /* @__PURE__ */ e(ue, { width: "100%", height: a, children: /* @__PURE__ */ i(Lt, { data: t, margin: { top: 5, right: 5, left: -20, bottom: 0 }, children: [
5075
- /* @__PURE__ */ e(Ze, { strokeDasharray: "3 3", stroke: "var(--dm-border-subtle)", vertical: !1 }),
5076
- /* @__PURE__ */ e(
5077
- Xe,
5078
- {
5079
- dataKey: "name",
5080
- tick: { fill: "var(--dm-text-disabled)", fontSize: 10 },
5081
- axisLine: { stroke: "var(--dm-border-subtle)" },
5082
- tickLine: !1
5083
- }
5084
- ),
5085
- /* @__PURE__ */ e(
5086
- qe,
5087
- {
5088
- tick: { fill: "var(--dm-text-disabled)", fontSize: 10 },
5089
- axisLine: !1,
5090
- tickLine: !1
5091
- }
5092
- ),
5093
- /* @__PURE__ */ e(Se, { content: /* @__PURE__ */ e(Pe, {}) }),
5094
- /* @__PURE__ */ e(
5095
- Ft,
5096
- {
5097
- wrapperStyle: { fontSize: 11, color: "var(--dm-text-tertiary)" }
5098
- }
5099
- ),
5100
- /* @__PURE__ */ e(
5101
- Ae,
5102
- {
5103
- dataKey: "plays",
5104
- name: n === "zh" ? "播放量" : "Plays",
5105
- fill: "#8B5CF6",
5106
- radius: [4, 4, 0, 0],
5107
- maxBarSize: 32
5108
- }
5109
- ),
5110
- ((s = t[0]) == null ? void 0 : s.likes) !== void 0 && /* @__PURE__ */ e(
5111
- Ae,
5112
- {
5113
- dataKey: "likes",
5114
- name: n === "zh" ? "点赞" : "Likes",
5115
- fill: "#EC4899",
5116
- radius: [4, 4, 0, 0],
5117
- maxBarSize: 32
5118
- }
5119
- )
5120
- ] }) }) });
5121
- }, sr = ({
5092
+ }) => /* @__PURE__ */ e("div", { className: f("w-full", r), role: "img", "aria-label": n === "zh" ? "播放统计" : "Play Statistics", children: /* @__PURE__ */ e(ge, { width: "100%", height: a, children: /* @__PURE__ */ s(qa, { data: t, margin: { top: 5, right: 5, left: -20, bottom: 0 }, children: [
5093
+ /* @__PURE__ */ e(lt, { strokeDasharray: "3 3", stroke: "var(--dm-border-subtle)", vertical: !1 }),
5094
+ /* @__PURE__ */ e(
5095
+ st,
5096
+ {
5097
+ dataKey: "name",
5098
+ tick: { fill: "var(--dm-text-disabled)", fontSize: 10 },
5099
+ axisLine: { stroke: "var(--dm-border-subtle)" },
5100
+ tickLine: !1
5101
+ }
5102
+ ),
5103
+ /* @__PURE__ */ e(
5104
+ dt,
5105
+ {
5106
+ tick: { fill: "var(--dm-text-disabled)", fontSize: 10 },
5107
+ axisLine: !1,
5108
+ tickLine: !1
5109
+ }
5110
+ ),
5111
+ /* @__PURE__ */ e(De, { content: /* @__PURE__ */ e(_e, {}) }),
5112
+ /* @__PURE__ */ e(
5113
+ ar,
5114
+ {
5115
+ wrapperStyle: { fontSize: 11, color: "var(--dm-text-tertiary)" }
5116
+ }
5117
+ ),
5118
+ /* @__PURE__ */ e(
5119
+ Ge,
5120
+ {
5121
+ dataKey: "plays",
5122
+ name: n === "zh" ? "播放量" : "Plays",
5123
+ fill: "#8B5CF6",
5124
+ radius: [4, 4, 0, 0],
5125
+ maxBarSize: 32
5126
+ }
5127
+ ),
5128
+ t[0]?.likes !== void 0 && /* @__PURE__ */ e(
5129
+ Ge,
5130
+ {
5131
+ dataKey: "likes",
5132
+ name: n === "zh" ? "点赞" : "Likes",
5133
+ fill: "#EC4899",
5134
+ radius: [4, 4, 0, 0],
5135
+ maxBarSize: 32
5136
+ }
5137
+ )
5138
+ ] }) }) }), dr = ({
5122
5139
  items: t,
5123
5140
  columns: a = 4,
5124
5141
  className: r
5125
5142
  }) => /* @__PURE__ */ e(
5126
5143
  "div",
5127
5144
  {
5128
- className: p("grid gap-4", r),
5145
+ className: f("grid gap-4", r),
5129
5146
  style: { gridTemplateColumns: `repeat(${a}, minmax(0, 1fr))` },
5130
5147
  role: "list",
5131
5148
  "aria-label": "Achievements",
5132
- children: t.map((n) => /* @__PURE__ */ i("div", { className: "flex flex-col items-center gap-1.5", role: "listitem", children: [
5149
+ children: t.map((n) => /* @__PURE__ */ s("div", { className: "flex flex-col items-center gap-1.5", role: "listitem", children: [
5133
5150
  /* @__PURE__ */ e(
5134
- J,
5151
+ q,
5135
5152
  {
5136
5153
  progress: n.progress,
5137
5154
  size: 56,
@@ -5141,38 +5158,38 @@ const Ha = {
5141
5158
  }
5142
5159
  ),
5143
5160
  /* @__PURE__ */ e("span", { className: "text-[10px] text-center truncate w-full", style: { color: "var(--dm-text-tertiary)" }, children: n.title }),
5144
- /* @__PURE__ */ i("span", { className: "text-[9px] tabular-nums", style: { color: "var(--dm-text-disabled)" }, children: [
5161
+ /* @__PURE__ */ s("span", { className: "text-[9px] tabular-nums", style: { color: "var(--dm-text-disabled)" }, children: [
5145
5162
  n.progress,
5146
5163
  "%"
5147
5164
  ] })
5148
5165
  ] }, n.id))
5149
5166
  }
5150
- ), oe = ({
5167
+ ), ne = ({
5151
5168
  data: t,
5152
5169
  width: a = 80,
5153
5170
  height: r = 24,
5154
5171
  color: n = "#8B5CF6",
5155
- showDot: s = !0,
5156
- className: l
5172
+ showDot: i = !0,
5173
+ className: d
5157
5174
  }) => {
5158
- const c = Ue(() => t.map((u, d) => ({ i: d, v: u })), [t]);
5159
- return /* @__PURE__ */ e("div", { className: p("inline-flex", l), role: "img", "aria-label": "Trend", children: /* @__PURE__ */ e(ue, { width: a, height: r, children: /* @__PURE__ */ e(Bt, { data: c, margin: { top: 2, right: 4, bottom: 2, left: 4 }, children: /* @__PURE__ */ e(
5160
- Je,
5175
+ const c = Ue(() => t.map((u, l) => ({ i: l, v: u })), [t]);
5176
+ return /* @__PURE__ */ e("div", { className: f("inline-flex", d), role: "img", "aria-label": "Trend", children: /* @__PURE__ */ e(ge, { width: a, height: r, children: /* @__PURE__ */ e(Xa, { data: c, margin: { top: 2, right: 4, bottom: 2, left: 4 }, children: /* @__PURE__ */ e(
5177
+ it,
5161
5178
  {
5162
5179
  type: "monotone",
5163
5180
  dataKey: "v",
5164
5181
  stroke: n,
5165
5182
  strokeWidth: 1.5,
5166
5183
  dot: !1,
5167
- activeDot: s ? { r: 2, fill: n } : !1
5184
+ activeDot: i ? { r: 2, fill: n } : !1
5168
5185
  }
5169
5186
  ) }) }) });
5170
- }, dr = ({
5187
+ }, lr = ({
5171
5188
  data: t,
5172
5189
  filename: a = "dmusic-data",
5173
5190
  format: r = "csv",
5174
5191
  label: n,
5175
- className: s
5192
+ className: i
5176
5193
  }) => /* @__PURE__ */ e(
5177
5194
  N,
5178
5195
  {
@@ -5184,43 +5201,43 @@ const Ha = {
5184
5201
  if (r === "csv") {
5185
5202
  if (t.length === 0) return;
5186
5203
  const C = Object.keys(t[0]);
5187
- c = [C.join(","), ...t.map((y) => C.map((h) => JSON.stringify(y[h] ?? "")).join(","))].join(`
5204
+ c = [C.join(","), ...t.map((h) => C.map((x) => JSON.stringify(h[x] ?? "")).join(","))].join(`
5188
5205
  `), u = "text/csv";
5189
5206
  } else
5190
5207
  c = JSON.stringify(t, null, 2), u = "application/json";
5191
- const d = new Blob([c], { type: u }), g = URL.createObjectURL(d), m = document.createElement("a");
5192
- m.href = g, m.download = `${a}.${r}`, document.body.appendChild(m), m.click(), document.body.removeChild(m), URL.revokeObjectURL(g);
5208
+ const l = new Blob([c], { type: u }), b = URL.createObjectURL(l), m = document.createElement("a");
5209
+ m.href = b, m.download = `${a}.${r}`, document.body.appendChild(m), m.click(), document.body.removeChild(m), URL.revokeObjectURL(b);
5193
5210
  },
5194
- className: s,
5211
+ className: i,
5195
5212
  "aria-label": n || `Export as ${r.toUpperCase()}`,
5196
5213
  children: n || r.toUpperCase()
5197
5214
  }
5198
- ), ne = ({
5215
+ ), re = ({
5199
5216
  label: t,
5200
5217
  value: a,
5201
5218
  change: r,
5202
5219
  trend: n,
5203
- icon: s,
5204
- className: l
5220
+ icon: i,
5221
+ className: d
5205
5222
  }) => {
5206
5223
  const c = (r ?? 0) >= 0;
5207
- return /* @__PURE__ */ i(
5224
+ return /* @__PURE__ */ s(
5208
5225
  "div",
5209
5226
  {
5210
- className: p("rounded-xl border p-4 flex flex-col gap-2", l),
5227
+ className: f("rounded-xl border p-4 flex flex-col gap-2", d),
5211
5228
  style: {
5212
5229
  background: "var(--dm-bg-elevated)",
5213
5230
  borderColor: "var(--dm-border-subtle)"
5214
5231
  },
5215
5232
  children: [
5216
- /* @__PURE__ */ i("div", { className: "flex items-center justify-between", children: [
5233
+ /* @__PURE__ */ s("div", { className: "flex items-center justify-between", children: [
5217
5234
  /* @__PURE__ */ e("span", { className: "text-xs", style: { color: "var(--dm-text-tertiary)" }, children: t }),
5218
- s && /* @__PURE__ */ e("span", { style: { color: "var(--dm-text-disabled)" }, children: s })
5235
+ i && /* @__PURE__ */ e("span", { style: { color: "var(--dm-text-disabled)" }, children: i })
5219
5236
  ] }),
5220
- /* @__PURE__ */ i("div", { className: "flex items-end justify-between", children: [
5237
+ /* @__PURE__ */ s("div", { className: "flex items-end justify-between", children: [
5221
5238
  /* @__PURE__ */ e("span", { className: "text-2xl font-bold tabular-nums", style: { color: "var(--dm-text-primary)" }, children: a }),
5222
- /* @__PURE__ */ i("div", { className: "flex flex-col items-end gap-1", children: [
5223
- r !== void 0 && /* @__PURE__ */ i(
5239
+ /* @__PURE__ */ s("div", { className: "flex flex-col items-end gap-1", children: [
5240
+ r !== void 0 && /* @__PURE__ */ s(
5224
5241
  "span",
5225
5242
  {
5226
5243
  className: "text-xs font-medium tabular-nums",
@@ -5233,7 +5250,7 @@ const Ha = {
5233
5250
  }
5234
5251
  ),
5235
5252
  n && n.length > 2 && /* @__PURE__ */ e(
5236
- oe,
5253
+ ne,
5237
5254
  {
5238
5255
  data: n,
5239
5256
  width: 60,
@@ -5246,66 +5263,66 @@ const Ha = {
5246
5263
  ]
5247
5264
  }
5248
5265
  );
5249
- }, lr = { 1: "🥇", 2: "🥈", 3: "🥉" }, G = { 1: "#FFD700", 2: "#C0C0C0", 3: "#CD7F32" }, cr = ({
5266
+ }, cr = { 1: "🥇", 2: "🥈", 3: "🥉" }, G = { 1: "#FFD700", 2: "#C0C0C0", 3: "#CD7F32" }, ur = ({
5250
5267
  items: t,
5251
5268
  maxItems: a = 10,
5252
5269
  valueLabel: r,
5253
5270
  className: n,
5254
- lang: s = "zh",
5255
- onItemClick: l
5271
+ lang: i = "zh",
5272
+ onItemClick: d
5256
5273
  }) => {
5257
- const c = t.slice(0, a), u = Math.max(...c.map((d) => d.score), 1);
5258
- return /* @__PURE__ */ i("div", { className: p("w-full", n), role: "list", "aria-label": s === "zh" ? "排行榜" : "Rankings", children: [
5259
- /* @__PURE__ */ i("div", { className: "flex items-center justify-between px-2 py-1.5 mb-1", children: [
5260
- /* @__PURE__ */ e("span", { className: "text-[10px] font-medium", style: { color: "var(--dm-text-disabled)" }, children: s === "zh" ? "排名" : "Rank" }),
5261
- /* @__PURE__ */ e("span", { className: "text-[10px] font-medium", style: { color: "var(--dm-text-disabled)" }, children: r || (s === "zh" ? "得分" : "Score") })
5274
+ const c = t.slice(0, a), u = Math.max(...c.map((l) => l.score), 1);
5275
+ return /* @__PURE__ */ s("div", { className: f("w-full", n), role: "list", "aria-label": i === "zh" ? "排行榜" : "Rankings", children: [
5276
+ /* @__PURE__ */ s("div", { className: "flex items-center justify-between px-2 py-1.5 mb-1", children: [
5277
+ /* @__PURE__ */ e("span", { className: "text-[10px] font-medium", style: { color: "var(--dm-text-disabled)" }, children: i === "zh" ? "排名" : "Rank" }),
5278
+ /* @__PURE__ */ e("span", { className: "text-[10px] font-medium", style: { color: "var(--dm-text-disabled)" }, children: r || (i === "zh" ? "得分" : "Score") })
5262
5279
  ] }),
5263
- c.map((d) => {
5264
- const g = d.score / u * 100, m = d.rank <= 3;
5265
- return /* @__PURE__ */ i(
5280
+ c.map((l) => {
5281
+ const b = l.score / u * 100, m = l.rank <= 3;
5282
+ return /* @__PURE__ */ s(
5266
5283
  "div",
5267
5284
  {
5268
5285
  role: "listitem",
5269
- onClick: () => l == null ? void 0 : l(d),
5270
- className: p(
5286
+ onClick: () => d?.(l),
5287
+ className: f(
5271
5288
  "flex items-center gap-2 px-2 py-2 rounded-lg transition-colors relative overflow-hidden",
5272
- l && "cursor-pointer hover:bg-[var(--dm-hover-bg)]",
5273
- d.highlight && "ring-1 ring-[var(--dm-accent-from)]/30 bg-[var(--dm-accent-from)]/5"
5289
+ d && "cursor-pointer hover:bg-[var(--dm-hover-bg)]",
5290
+ l.highlight && "ring-1 ring-[var(--dm-accent-from)]/30 bg-[var(--dm-accent-from)]/5"
5274
5291
  ),
5275
5292
  children: [
5276
- /* @__PURE__ */ e("div", { className: "w-7 flex-shrink-0 text-center", children: m ? /* @__PURE__ */ e("span", { className: "text-sm", role: "img", "aria-label": `Rank ${d.rank}`, children: lr[d.rank] }) : /* @__PURE__ */ e("span", { className: "text-xs tabular-nums font-medium", style: { color: "var(--dm-text-tertiary)" }, children: d.rank }) }),
5293
+ /* @__PURE__ */ e("div", { className: "w-7 flex-shrink-0 text-center", children: m ? /* @__PURE__ */ e("span", { className: "text-sm", role: "img", "aria-label": `Rank ${l.rank}`, children: cr[l.rank] }) : /* @__PURE__ */ e("span", { className: "text-xs tabular-nums font-medium", style: { color: "var(--dm-text-tertiary)" }, children: l.rank }) }),
5277
5294
  /* @__PURE__ */ e(
5278
5295
  "div",
5279
5296
  {
5280
5297
  className: "w-7 h-7 rounded-full flex-shrink-0 flex items-center justify-center text-[10px] font-bold overflow-hidden",
5281
5298
  style: {
5282
- background: m ? `linear-gradient(135deg, ${G[d.rank]}40, ${G[d.rank]}20)` : "var(--dm-hover-bg)",
5283
- color: m ? G[d.rank] : "var(--dm-text-tertiary)"
5299
+ background: m ? `linear-gradient(135deg, ${G[l.rank]}40, ${G[l.rank]}20)` : "var(--dm-hover-bg)",
5300
+ color: m ? G[l.rank] : "var(--dm-text-tertiary)"
5284
5301
  },
5285
- children: d.avatar ? /* @__PURE__ */ e("img", { src: d.avatar, alt: d.name, className: "w-full h-full object-cover", loading: "lazy" }) : d.name.charAt(0).toUpperCase()
5302
+ children: l.avatar ? /* @__PURE__ */ e("img", { src: l.avatar, alt: l.name, className: "w-full h-full object-cover", loading: "lazy" }) : l.name.charAt(0).toUpperCase()
5286
5303
  }
5287
5304
  ),
5288
- /* @__PURE__ */ i("div", { className: "flex-1 min-w-0", children: [
5289
- /* @__PURE__ */ i("div", { className: "flex items-center gap-1.5", children: [
5305
+ /* @__PURE__ */ s("div", { className: "flex-1 min-w-0", children: [
5306
+ /* @__PURE__ */ s("div", { className: "flex items-center gap-1.5", children: [
5290
5307
  /* @__PURE__ */ e(
5291
5308
  "span",
5292
5309
  {
5293
- className: p("text-xs truncate", m ? "font-semibold" : "font-medium"),
5294
- style: { color: m ? G[d.rank] : "var(--dm-text-primary)" },
5295
- children: d.name
5310
+ className: f("text-xs truncate", m ? "font-semibold" : "font-medium"),
5311
+ style: { color: m ? G[l.rank] : "var(--dm-text-primary)" },
5312
+ children: l.name
5296
5313
  }
5297
5314
  ),
5298
- d.change === "up" && /* @__PURE__ */ e("span", { className: "text-[9px] text-green-400", children: "▲" }),
5299
- d.change === "down" && /* @__PURE__ */ e("span", { className: "text-[9px] text-red-400", children: "▼" }),
5300
- d.change === "new" && /* @__PURE__ */ e("span", { className: "text-[8px] px-1 py-0 rounded bg-[var(--dm-accent-from)]/20 text-[var(--dm-accent-from)]", children: "NEW" })
5315
+ l.change === "up" && /* @__PURE__ */ e("span", { className: "text-[9px] text-green-400", children: "▲" }),
5316
+ l.change === "down" && /* @__PURE__ */ e("span", { className: "text-[9px] text-red-400", children: "▼" }),
5317
+ l.change === "new" && /* @__PURE__ */ e("span", { className: "text-[8px] px-1 py-0 rounded bg-[var(--dm-accent-from)]/20 text-[var(--dm-accent-from)]", children: "NEW" })
5301
5318
  ] }),
5302
5319
  /* @__PURE__ */ e("div", { className: "h-1 rounded-full mt-1 overflow-hidden", style: { background: "var(--dm-hover-bg)" }, children: /* @__PURE__ */ e(
5303
5320
  "div",
5304
5321
  {
5305
5322
  className: "h-full rounded-full transition-[width] duration-700 ease-out",
5306
5323
  style: {
5307
- width: `${g}%`,
5308
- background: m ? `linear-gradient(to right, ${G[d.rank]}, ${G[d.rank]}80)` : "linear-gradient(to right, var(--dm-accent-from), var(--dm-accent-to))",
5324
+ width: `${b}%`,
5325
+ background: m ? `linear-gradient(to right, ${G[l.rank]}, ${G[l.rank]}80)` : "linear-gradient(to right, var(--dm-accent-from), var(--dm-accent-to))",
5309
5326
  opacity: m ? 1 : 0.6
5310
5327
  }
5311
5328
  }
@@ -5315,13 +5332,13 @@ const Ha = {
5315
5332
  "span",
5316
5333
  {
5317
5334
  className: "text-xs tabular-nums font-medium flex-shrink-0",
5318
- style: { color: m ? G[d.rank] : "var(--dm-text-secondary)" },
5319
- children: d.score.toLocaleString()
5335
+ style: { color: m ? G[l.rank] : "var(--dm-text-secondary)" },
5336
+ children: l.score.toLocaleString()
5320
5337
  }
5321
5338
  )
5322
5339
  ]
5323
5340
  },
5324
- d.rank
5341
+ l.rank
5325
5342
  );
5326
5343
  })
5327
5344
  ] });
@@ -5332,13 +5349,13 @@ const Ha = {
5332
5349
  { date: "4月", value: 620, earned: 170 },
5333
5350
  { date: "5月", value: 890, earned: 270 },
5334
5351
  { date: "6月", value: 1200, earned: 310 }
5335
- ], ur = [
5352
+ ], mr = [
5336
5353
  { emotion: "happy", count: 35, pct: 35 },
5337
5354
  { emotion: "calm", count: 25, pct: 25 },
5338
5355
  { emotion: "energetic", count: 20, pct: 20 },
5339
5356
  { emotion: "sad", count: 12, pct: 12 },
5340
5357
  { emotion: "romantic", count: 8, pct: 8 }
5341
- ], mr = [
5358
+ ], fr = [
5342
5359
  { name: "周一", plays: 120, likes: 45 },
5343
5360
  { name: "周二", plays: 180, likes: 67 },
5344
5361
  { name: "周三", plays: 95, likes: 38 },
@@ -5346,7 +5363,7 @@ const Ha = {
5346
5363
  { name: "周五", plays: 310, likes: 120 },
5347
5364
  { name: "周六", plays: 420, likes: 180 },
5348
5365
  { name: "周日", plays: 380, likes: 155 }
5349
- ], fr = [
5366
+ ], pr = [
5350
5367
  { id: "1", title: "初次创作", icon: "🎵", progress: 100, color: "#22C55E" },
5351
5368
  { id: "2", title: "社区之星", icon: "⭐", progress: 75, color: "#F59E0B" },
5352
5369
  { id: "3", title: "改编大师", icon: "🎨", progress: 40, color: "#A855F7" },
@@ -5356,12 +5373,12 @@ const Ha = {
5356
5373
  { id: "7", title: "每日打卡", icon: "📅", progress: 55, color: "#06B6D4" },
5357
5374
  { id: "8", title: "收藏达人", icon: "❤️", progress: 30, color: "#F43F5E" }
5358
5375
  ], Cs = ({ lang: t = "zh" }) => {
5359
- const [a, r] = L(!1), [n, s] = L(""), [l, c] = L({}), [u, d] = L(!1), [g, m] = L("tab1"), [C, x] = L("tab1"), [y, h] = L("tab1"), b = ({ title: f, section: w }) => /* @__PURE__ */ i("div", { className: "flex items-center gap-3 mb-4 mt-8 first:mt-0", children: [
5360
- /* @__PURE__ */ e("h2", { className: "text-lg font-bold", style: { color: "var(--dm-text-primary)" }, children: f }),
5361
- /* @__PURE__ */ e(M, { variant: "accent", children: w })
5376
+ const [a, r] = L(!1), [n, i] = L(""), [d, c] = L({}), [u, l] = L(!1), [b, m] = L("tab1"), [C, w] = L("tab1"), [h, x] = L("tab1"), p = ({ title: g, section: y }) => /* @__PURE__ */ s("div", { className: "flex items-center gap-3 mb-4 mt-8 first:mt-0", children: [
5377
+ /* @__PURE__ */ e("h2", { className: "text-lg font-bold", style: { color: "var(--dm-text-primary)" }, children: g }),
5378
+ /* @__PURE__ */ e(T, { variant: "accent", children: y })
5362
5379
  ] });
5363
- return /* @__PURE__ */ i("div", { className: "p-6 space-y-6 max-w-4xl mx-auto", children: [
5364
- /* @__PURE__ */ i("div", { className: "text-center mb-8", children: [
5380
+ return /* @__PURE__ */ s("div", { className: "p-6 space-y-6 max-w-4xl mx-auto", children: [
5381
+ /* @__PURE__ */ s("div", { className: "text-center mb-8", children: [
5365
5382
  /* @__PURE__ */ e(
5366
5383
  "h1",
5367
5384
  {
@@ -5372,10 +5389,10 @@ const Ha = {
5372
5389
  ),
5373
5390
  /* @__PURE__ */ e("p", { className: "text-sm mt-1", style: { color: "var(--dm-text-tertiary)" }, children: "§1.1 组件库 · §1.2 面板 · §1.3 可视化 · §1.4 主题" })
5374
5391
  ] }),
5375
- /* @__PURE__ */ e(b, { title: "按钮组件", section: "§1.1" }),
5376
- /* @__PURE__ */ e(k, { padding: "md", children: /* @__PURE__ */ i("div", { className: "space-y-4", children: [
5392
+ /* @__PURE__ */ e(p, { title: "按钮组件", section: "§1.1" }),
5393
+ /* @__PURE__ */ e(k, { padding: "md", children: /* @__PURE__ */ s("div", { className: "space-y-4", children: [
5377
5394
  /* @__PURE__ */ e("p", { className: "text-xs font-medium", style: { color: "var(--dm-text-secondary)" }, children: "变体 Variants" }),
5378
- /* @__PURE__ */ i("div", { className: "flex flex-wrap gap-3", children: [
5395
+ /* @__PURE__ */ s("div", { className: "flex flex-wrap gap-3", children: [
5379
5396
  /* @__PURE__ */ e(N, { variant: "primary", icon: /* @__PURE__ */ e(Te, { className: "w-4 h-4" }), children: "主要按钮" }),
5380
5397
  /* @__PURE__ */ e(N, { variant: "secondary", children: "次要按钮" }),
5381
5398
  /* @__PURE__ */ e(N, { variant: "ghost", children: "幽灵按钮" }),
@@ -5383,82 +5400,82 @@ const Ha = {
5383
5400
  /* @__PURE__ */ e(N, { variant: "accent", children: "强调按钮" })
5384
5401
  ] }),
5385
5402
  /* @__PURE__ */ e("p", { className: "text-xs font-medium", style: { color: "var(--dm-text-secondary)" }, children: "尺寸 Sizes" }),
5386
- /* @__PURE__ */ i("div", { className: "flex flex-wrap items-center gap-3", children: [
5403
+ /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-3", children: [
5387
5404
  /* @__PURE__ */ e(N, { size: "sm", children: "小号 SM" }),
5388
5405
  /* @__PURE__ */ e(N, { size: "md", children: "中号 MD" }),
5389
5406
  /* @__PURE__ */ e(N, { size: "lg", children: "大号 LG" })
5390
5407
  ] }),
5391
5408
  /* @__PURE__ */ e("p", { className: "text-xs font-medium", style: { color: "var(--dm-text-secondary)" }, children: "状态 States" }),
5392
- /* @__PURE__ */ i("div", { className: "flex flex-wrap gap-3", children: [
5409
+ /* @__PURE__ */ s("div", { className: "flex flex-wrap gap-3", children: [
5393
5410
  /* @__PURE__ */ e(N, { loading: !0, children: "加载中" }),
5394
5411
  /* @__PURE__ */ e(N, { disabled: !0, children: "禁用" }),
5395
5412
  /* @__PURE__ */ e(N, { icon: /* @__PURE__ */ e(Ke, { className: "w-4 h-4" }), iconRight: /* @__PURE__ */ e(Me, { className: "w-3 h-3" }), children: "双图标" }),
5396
5413
  /* @__PURE__ */ e(N, { fullWidth: !0, variant: "secondary", children: "全宽按钮" })
5397
5414
  ] })
5398
5415
  ] }) }),
5399
- /* @__PURE__ */ e(b, { title: "输入框组件", section: "§1.1" }),
5400
- /* @__PURE__ */ e(k, { padding: "md", children: /* @__PURE__ */ i("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
5401
- /* @__PURE__ */ e(j, { label: "用户名", placeholder: "请输入用户名", hint: "支持中英文和数字", value: n, onChange: (f) => s(f.target.value) }),
5416
+ /* @__PURE__ */ e(p, { title: "输入框组件", section: "§1.1" }),
5417
+ /* @__PURE__ */ e(k, { padding: "md", children: /* @__PURE__ */ s("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
5418
+ /* @__PURE__ */ e(j, { label: "用户名", placeholder: "请输入用户名", hint: "支持中英文和数字", value: n, onChange: (g) => i(g.target.value) }),
5402
5419
  /* @__PURE__ */ e(j, { variant: "password", label: "密码", placeholder: "请输入密码" }),
5403
5420
  /* @__PURE__ */ e(j, { variant: "search", placeholder: "搜索歌曲、艺术家..." }),
5404
5421
  /* @__PURE__ */ e(j, { label: "邮箱", placeholder: "example@dmusic.com", error: "邮箱格式不正确" }),
5405
5422
  /* @__PURE__ */ e(j, { label: "小号输入", inputSize: "sm", placeholder: "SM size" }),
5406
- /* @__PURE__ */ e(j, { label: "大号输入", inputSize: "lg", placeholder: "LG size", leftIcon: /* @__PURE__ */ e(ae, { className: "w-4 h-4" }) })
5423
+ /* @__PURE__ */ e(j, { label: "大号输入", inputSize: "lg", placeholder: "LG size", leftIcon: /* @__PURE__ */ e(te, { className: "w-4 h-4" }) })
5407
5424
  ] }) }),
5408
- /* @__PURE__ */ e(b, { title: "卡片组件", section: "§1.1" }),
5409
- /* @__PURE__ */ i("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
5425
+ /* @__PURE__ */ e(p, { title: "卡片组件", section: "§1.1" }),
5426
+ /* @__PURE__ */ s("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
5410
5427
  /* @__PURE__ */ e(ve, { title: "星际漫游", artist: "D-Music Studio", duration: "3:42", emotion: "calm", isPlaying: !0 }),
5411
5428
  /* @__PURE__ */ e(ve, { title: "深空回响", artist: "Echo Chamber", duration: "4:15", emotion: "energetic" }),
5412
- /* @__PURE__ */ e($e, { name: "创作者小星", subtitle: "金牌创作者 · 1.2k 粉丝", badge: "金牌" }),
5413
- /* @__PURE__ */ e($e, { name: "Echo", subtitle: "银牌创作者 · 820 M❤️", badge: "银牌" })
5429
+ /* @__PURE__ */ e(Be, { name: "创作者小星", subtitle: "金牌创作者 · 1.2k 粉丝", badge: "金牌" }),
5430
+ /* @__PURE__ */ e(Be, { name: "Echo", subtitle: "银牌创作者 · 820 M❤️", badge: "银牌" })
5414
5431
  ] }),
5415
- /* @__PURE__ */ i("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4 mt-4", children: [
5416
- /* @__PURE__ */ e(Ge, { title: "灵感喷泉", description: "连续7天每日创作", icon: "💡", progress: 75, unlocked: !0, rarity: "rare" }),
5417
- /* @__PURE__ */ e(Ge, { title: "改编大师", description: "衍生分支作品超5个", icon: "🎨", progress: 40, rarity: "epic" })
5432
+ /* @__PURE__ */ s("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4 mt-4", children: [
5433
+ /* @__PURE__ */ e($e, { title: "灵感喷泉", description: "连续7天每日创作", icon: "💡", progress: 75, unlocked: !0, rarity: "rare" }),
5434
+ /* @__PURE__ */ e($e, { title: "改编大师", description: "衍生分支作品超5个", icon: "🎨", progress: 40, rarity: "epic" })
5418
5435
  ] }),
5419
- /* @__PURE__ */ i(k, { variant: "glass", padding: "md", className: "mt-4", children: [
5436
+ /* @__PURE__ */ s(k, { variant: "glass", padding: "md", className: "mt-4", children: [
5420
5437
  /* @__PURE__ */ e("p", { className: "text-sm", style: { color: "var(--dm-text-primary)" }, children: "毛玻璃卡片 (Glass Variant)" }),
5421
5438
  /* @__PURE__ */ e("p", { className: "text-xs mt-1", style: { color: "var(--dm-text-tertiary)" }, children: "使用 backdrop-blur-xl 实现毛玻璃效果" })
5422
5439
  ] }),
5423
- /* @__PURE__ */ e(b, { title: "进度指示器", section: "§1.1" }),
5424
- /* @__PURE__ */ e(k, { padding: "md", children: /* @__PURE__ */ i("div", { className: "space-y-4", children: [
5425
- /* @__PURE__ */ e(X, { value: 65, variant: "gradient", showLabel: !0, "aria-label": "整体进度" }),
5426
- /* @__PURE__ */ e(X, { value: 80, variant: "success", showLabel: !0, size: "lg" }),
5427
- /* @__PURE__ */ e(X, { value: 45, variant: "warning", showLabel: !0, size: "sm" }),
5428
- /* @__PURE__ */ e(X, { value: 30, variant: "error", showLabel: !0 }),
5429
- /* @__PURE__ */ i("div", { className: "flex gap-6 items-center mt-4", children: [
5430
- /* @__PURE__ */ e(J, { progress: 85, size: 64, strokeWidth: 4, color: "#8B5CF6", children: /* @__PURE__ */ e("span", { className: "text-xs font-bold", style: { color: "var(--dm-text-primary)" }, children: "85%" }) }),
5431
- /* @__PURE__ */ e(J, { progress: 60, size: 56, strokeWidth: 3, color: "#22C55E", children: /* @__PURE__ */ e("span", { className: "text-lg", children: "⭐" }) }),
5432
- /* @__PURE__ */ e(J, { progress: 100, size: 48, strokeWidth: 3, color: "#F59E0B", children: /* @__PURE__ */ e("span", { className: "text-lg", children: "🏆" }) })
5440
+ /* @__PURE__ */ e(p, { title: "进度指示器", section: "§1.1" }),
5441
+ /* @__PURE__ */ e(k, { padding: "md", children: /* @__PURE__ */ s("div", { className: "space-y-4", children: [
5442
+ /* @__PURE__ */ e(Z, { value: 65, variant: "gradient", showLabel: !0, "aria-label": "整体进度" }),
5443
+ /* @__PURE__ */ e(Z, { value: 80, variant: "success", showLabel: !0, size: "lg" }),
5444
+ /* @__PURE__ */ e(Z, { value: 45, variant: "warning", showLabel: !0, size: "sm" }),
5445
+ /* @__PURE__ */ e(Z, { value: 30, variant: "error", showLabel: !0 }),
5446
+ /* @__PURE__ */ s("div", { className: "flex gap-6 items-center mt-4", children: [
5447
+ /* @__PURE__ */ e(q, { progress: 85, size: 64, strokeWidth: 4, color: "#8B5CF6", children: /* @__PURE__ */ e("span", { className: "text-xs font-bold", style: { color: "var(--dm-text-primary)" }, children: "85%" }) }),
5448
+ /* @__PURE__ */ e(q, { progress: 60, size: 56, strokeWidth: 3, color: "#22C55E", children: /* @__PURE__ */ e("span", { className: "text-lg", children: "⭐" }) }),
5449
+ /* @__PURE__ */ e(q, { progress: 100, size: 48, strokeWidth: 3, color: "#F59E0B", children: /* @__PURE__ */ e("span", { className: "text-lg", children: "🏆" }) })
5433
5450
  ] })
5434
5451
  ] }) }),
5435
- /* @__PURE__ */ e(b, { title: "反馈组件", section: "§1.1" }),
5436
- /* @__PURE__ */ i("div", { className: "space-y-3", children: [
5437
- !l.loading && /* @__PURE__ */ e($, { type: "loading", message: "正在加载音频数据...", description: "请稍候", onDismiss: () => c((f) => ({ ...f, loading: !0 })) }),
5438
- !l.success && /* @__PURE__ */ e($, { type: "success", message: "作品发布成功!", description: "已自动同步至社区", onDismiss: () => c((f) => ({ ...f, success: !0 })) }),
5439
- !l.error && /* @__PURE__ */ e($, { type: "error", message: "网络连接失败", description: "请检查网络设置后重试", onDismiss: () => c((f) => ({ ...f, error: !0 })) }),
5440
- !l.warning && /* @__PURE__ */ e($, { type: "warning", message: "存储空间不足", description: "建议清理缓存或升级套餐", onDismiss: () => c((f) => ({ ...f, warning: !0 })) }),
5452
+ /* @__PURE__ */ e(p, { title: "反馈组件", section: "§1.1" }),
5453
+ /* @__PURE__ */ s("div", { className: "space-y-3", children: [
5454
+ !d.loading && /* @__PURE__ */ e($, { type: "loading", message: "正在加载音频数据...", description: "请稍候", onDismiss: () => c((g) => ({ ...g, loading: !0 })) }),
5455
+ !d.success && /* @__PURE__ */ e($, { type: "success", message: "作品发布成功!", description: "已自动同步至社区", onDismiss: () => c((g) => ({ ...g, success: !0 })) }),
5456
+ !d.error && /* @__PURE__ */ e($, { type: "error", message: "网络连接失败", description: "请检查网络设置后重试", onDismiss: () => c((g) => ({ ...g, error: !0 })) }),
5457
+ !d.warning && /* @__PURE__ */ e($, { type: "warning", message: "存储空间不足", description: "建议清理缓存或升级套餐", onDismiss: () => c((g) => ({ ...g, warning: !0 })) }),
5441
5458
  /* @__PURE__ */ e($, { type: "info", message: "新版本可用 v2.6.0", description: "包含 AI 作曲增强和性能优化" }),
5442
- /* @__PURE__ */ i("div", { className: "flex items-center gap-4 mt-2", children: [
5459
+ /* @__PURE__ */ s("div", { className: "flex items-center gap-4 mt-2", children: [
5443
5460
  /* @__PURE__ */ e(he, { size: "sm" }),
5444
5461
  /* @__PURE__ */ e(he, { size: "md" }),
5445
5462
  /* @__PURE__ */ e(he, { size: "lg" })
5446
5463
  ] })
5447
5464
  ] }),
5448
- /* @__PURE__ */ e(b, { title: "徽章与标签", section: "§1.1" }),
5449
- /* @__PURE__ */ e(k, { padding: "md", children: /* @__PURE__ */ i("div", { className: "space-y-4", children: [
5465
+ /* @__PURE__ */ e(p, { title: "徽章与标签", section: "§1.1" }),
5466
+ /* @__PURE__ */ e(k, { padding: "md", children: /* @__PURE__ */ s("div", { className: "space-y-4", children: [
5450
5467
  /* @__PURE__ */ e("p", { className: "text-xs font-medium", style: { color: "var(--dm-text-secondary)" }, children: "徽章 Badges" }),
5451
- /* @__PURE__ */ i("div", { className: "flex flex-wrap gap-2", children: [
5452
- /* @__PURE__ */ e(M, { children: "默认" }),
5453
- /* @__PURE__ */ e(M, { variant: "accent", children: "强调" }),
5454
- /* @__PURE__ */ e(M, { variant: "success", dot: !0, children: "在线" }),
5455
- /* @__PURE__ */ e(M, { variant: "warning", children: "审核中" }),
5456
- /* @__PURE__ */ e(M, { variant: "error", children: "已下架" }),
5457
- /* @__PURE__ */ e(M, { variant: "info", children: "新" }),
5458
- /* @__PURE__ */ e(M, { variant: "accent", size: "md", children: "金牌创作者" })
5468
+ /* @__PURE__ */ s("div", { className: "flex flex-wrap gap-2", children: [
5469
+ /* @__PURE__ */ e(T, { children: "默认" }),
5470
+ /* @__PURE__ */ e(T, { variant: "accent", children: "强调" }),
5471
+ /* @__PURE__ */ e(T, { variant: "success", dot: !0, children: "在线" }),
5472
+ /* @__PURE__ */ e(T, { variant: "warning", children: "审核中" }),
5473
+ /* @__PURE__ */ e(T, { variant: "error", children: "已下架" }),
5474
+ /* @__PURE__ */ e(T, { variant: "info", children: "新" }),
5475
+ /* @__PURE__ */ e(T, { variant: "accent", size: "md", children: "金牌创作者" })
5459
5476
  ] }),
5460
5477
  /* @__PURE__ */ e("p", { className: "text-xs font-medium", style: { color: "var(--dm-text-secondary)" }, children: "标签 Tags" }),
5461
- /* @__PURE__ */ i("div", { className: "flex flex-wrap gap-2", children: [
5478
+ /* @__PURE__ */ s("div", { className: "flex flex-wrap gap-2", children: [
5462
5479
  /* @__PURE__ */ e(O, { children: "电子" }),
5463
5480
  /* @__PURE__ */ e(O, { variant: "emotion", children: "开心" }),
5464
5481
  /* @__PURE__ */ e(O, { variant: "outline", children: "流行" }),
@@ -5467,60 +5484,60 @@ const Ha = {
5467
5484
  }, children: "可删除标签" })
5468
5485
  ] })
5469
5486
  ] }) }),
5470
- /* @__PURE__ */ e(b, { title: "列表组件", section: "§1.1" }),
5471
- /* @__PURE__ */ e(k, { padding: "none", children: /* @__PURE__ */ i(qa, { label: "播放列表", children: [
5487
+ /* @__PURE__ */ e(p, { title: "列表组件", section: "§1.1" }),
5488
+ /* @__PURE__ */ e(k, { padding: "none", children: /* @__PURE__ */ s(Ha, { label: "播放列表", children: [
5472
5489
  /* @__PURE__ */ e(xe, { onClick: () => {
5473
- }, active: !0, children: /* @__PURE__ */ i("div", { className: "flex items-center gap-3", children: [
5490
+ }, active: !0, children: /* @__PURE__ */ s("div", { className: "flex items-center gap-3", children: [
5474
5491
  /* @__PURE__ */ e("span", { className: "text-sm", style: { color: "var(--dm-text-primary)" }, children: "🎵 星际漫游 — D-Music Studio" }),
5475
- /* @__PURE__ */ e(M, { variant: "accent", size: "sm", children: "播放中" })
5492
+ /* @__PURE__ */ e(T, { variant: "accent", size: "sm", children: "播放中" })
5476
5493
  ] }) }),
5477
5494
  /* @__PURE__ */ e(xe, { onClick: () => {
5478
5495
  }, children: /* @__PURE__ */ e("span", { className: "text-sm", style: { color: "var(--dm-text-primary)" }, children: "🎵 深空回响 — Echo Chamber" }) }),
5479
5496
  /* @__PURE__ */ e(xe, { onClick: () => {
5480
5497
  }, children: /* @__PURE__ */ e("span", { className: "text-sm", style: { color: "var(--dm-text-primary)" }, children: "🎵 极光之舞 — Aurora Beats" }) })
5481
5498
  ] }) }),
5482
- /* @__PURE__ */ e(b, { title: "空状态", section: "§1.1" }),
5499
+ /* @__PURE__ */ e(p, { title: "空状态", section: "§1.1" }),
5483
5500
  /* @__PURE__ */ e(k, { padding: "none", children: /* @__PURE__ */ e(
5484
- Xa,
5501
+ Oa,
5485
5502
  {
5486
5503
  icon: "🎧",
5487
5504
  title: "暂无播放记录",
5488
5505
  description: "播放音乐后,您的收听统计将在这里显示",
5489
- action: /* @__PURE__ */ e(N, { size: "sm", icon: /* @__PURE__ */ e(ae, { className: "w-3.5 h-3.5" }), children: "探索音乐" })
5506
+ action: /* @__PURE__ */ e(N, { size: "sm", icon: /* @__PURE__ */ e(te, { className: "w-3.5 h-3.5" }), children: "探索音乐" })
5490
5507
  }
5491
5508
  ) }),
5492
- /* @__PURE__ */ e(b, { title: "模态框组件", section: "§1.1" }),
5493
- /* @__PURE__ */ e(k, { padding: "md", children: /* @__PURE__ */ e(N, { onClick: () => d(!0), icon: /* @__PURE__ */ e(Me, { className: "w-4 h-4" }), children: "打开模态框" }) }),
5509
+ /* @__PURE__ */ e(p, { title: "模态框组件", section: "§1.1" }),
5510
+ /* @__PURE__ */ e(k, { padding: "md", children: /* @__PURE__ */ e(N, { onClick: () => l(!0), icon: /* @__PURE__ */ e(Me, { className: "w-4 h-4" }), children: "打开模态框" }) }),
5494
5511
  /* @__PURE__ */ e(
5495
- Ya,
5512
+ Wa,
5496
5513
  {
5497
5514
  isOpen: u,
5498
- onClose: () => d(!1),
5515
+ onClose: () => l(!1),
5499
5516
  title: "确认操作",
5500
5517
  description: "这是一个 DModal 模态框示例",
5501
- footer: /* @__PURE__ */ i("div", { className: "flex gap-2", children: [
5502
- /* @__PURE__ */ e(N, { variant: "secondary", size: "sm", onClick: () => d(!1), children: "取消" }),
5503
- /* @__PURE__ */ e(N, { size: "sm", onClick: () => d(!1), children: "确认" })
5518
+ footer: /* @__PURE__ */ s("div", { className: "flex gap-2", children: [
5519
+ /* @__PURE__ */ e(N, { variant: "secondary", size: "sm", onClick: () => l(!1), children: "取消" }),
5520
+ /* @__PURE__ */ e(N, { size: "sm", onClick: () => l(!1), children: "确认" })
5504
5521
  ] }),
5505
- children: /* @__PURE__ */ i("div", { className: "space-y-3", children: [
5522
+ children: /* @__PURE__ */ s("div", { className: "space-y-3", children: [
5506
5523
  /* @__PURE__ */ e($, { type: "warning", message: "此操作不可撤销", description: "请仔细确认后再继续" }),
5507
5524
  /* @__PURE__ */ e(j, { label: "输入确认文字", placeholder: "请输入 CONFIRM" })
5508
5525
  ] })
5509
5526
  }
5510
5527
  ),
5511
- /* @__PURE__ */ e(b, { title: "标签导航", section: "§1.1" }),
5512
- /* @__PURE__ */ e(k, { padding: "md", children: /* @__PURE__ */ i("div", { className: "space-y-4", children: [
5528
+ /* @__PURE__ */ e(p, { title: "标签导航", section: "§1.1" }),
5529
+ /* @__PURE__ */ e(k, { padding: "md", children: /* @__PURE__ */ s("div", { className: "space-y-4", children: [
5513
5530
  /* @__PURE__ */ e("p", { className: "text-xs font-medium", style: { color: "var(--dm-text-secondary)" }, children: "默认样式 Default" }),
5514
5531
  /* @__PURE__ */ e(
5515
5532
  ye,
5516
5533
  {
5517
5534
  tabs: [
5518
- { id: "tab1", label: "全部", icon: /* @__PURE__ */ e(ae, { className: "w-3 h-3" }) },
5535
+ { id: "tab1", label: "全部", icon: /* @__PURE__ */ e(te, { className: "w-3 h-3" }) },
5519
5536
  { id: "tab2", label: "推��", badge: 5 },
5520
5537
  { id: "tab3", label: "收藏" },
5521
5538
  { id: "tab4", label: "离线", disabled: !0 }
5522
5539
  ],
5523
- activeTab: g,
5540
+ activeTab: b,
5524
5541
  onTabChange: m
5525
5542
  }
5526
5543
  ),
@@ -5536,7 +5553,7 @@ const Ha = {
5536
5553
  { id: "tab4", label: "古典" }
5537
5554
  ],
5538
5555
  activeTab: C,
5539
- onTabChange: x
5556
+ onTabChange: w
5540
5557
  }
5541
5558
  ),
5542
5559
  /* @__PURE__ */ e("p", { className: "text-xs font-medium", style: { color: "var(--dm-text-secondary)" }, children: "下划线样式 Underline" }),
@@ -5549,14 +5566,14 @@ const Ha = {
5549
5566
  { id: "tab2", label: "歌词" },
5550
5567
  { id: "tab3", label: "评论", badge: 12 }
5551
5568
  ],
5552
- activeTab: y,
5553
- onTabChange: h
5569
+ activeTab: h,
5570
+ onTabChange: x
5554
5571
  }
5555
5572
  )
5556
5573
  ] }) }),
5557
- /* @__PURE__ */ e(b, { title: "��包屑导航", section: "§1.1" }),
5574
+ /* @__PURE__ */ e(p, { title: "��包屑导航", section: "§1.1" }),
5558
5575
  /* @__PURE__ */ e(k, { padding: "md", children: /* @__PURE__ */ e(
5559
- Qa,
5576
+ Ka,
5560
5577
  {
5561
5578
  items: [
5562
5579
  { label: "首页", onClick: () => {
@@ -5569,13 +5586,13 @@ const Ha = {
5569
5586
  ]
5570
5587
  }
5571
5588
  ) }),
5572
- /* @__PURE__ */ e(b, { title: "面板组件", section: "§1.2" }),
5573
- /* @__PURE__ */ i(k, { padding: "md", children: [
5589
+ /* @__PURE__ */ e(p, { title: "面板组件", section: "§1.2" }),
5590
+ /* @__PURE__ */ s(k, { padding: "md", children: [
5574
5591
  /* @__PURE__ */ e("p", { className: "text-sm mb-3", style: { color: "var(--dm-text-secondary)" }, children: "统一面板壳:支持侧边抽屉/底部抽屉,含头部/内容/底部三段式布局" }),
5575
5592
  /* @__PURE__ */ e(N, { onClick: () => r(!0), icon: /* @__PURE__ */ e(Ee, { className: "w-4 h-4" }), children: "打开示例面板" })
5576
5593
  ] }),
5577
5594
  /* @__PURE__ */ e(
5578
- tr,
5595
+ Za,
5579
5596
  {
5580
5597
  isOpen: a,
5581
5598
  onClose: () => r(!1),
@@ -5583,57 +5600,57 @@ const Ha = {
5583
5600
  subtitle: "§1.2 统一面板组件",
5584
5601
  icon: /* @__PURE__ */ e(Ee, { className: "w-4 h-4" }),
5585
5602
  sectionLabel: "§1.2 · DPanel",
5586
- footer: /* @__PURE__ */ i("div", { className: "flex gap-2", children: [
5603
+ footer: /* @__PURE__ */ s("div", { className: "flex gap-2", children: [
5587
5604
  /* @__PURE__ */ e(N, { variant: "secondary", size: "sm", fullWidth: !0, onClick: () => r(!1), children: "取消" }),
5588
5605
  /* @__PURE__ */ e(N, { size: "sm", fullWidth: !0, onClick: () => r(!1), children: "确认" })
5589
5606
  ] }),
5590
- children: /* @__PURE__ */ i("div", { className: "p-5 space-y-4", children: [
5607
+ children: /* @__PURE__ */ s("div", { className: "p-5 space-y-4", children: [
5591
5608
  /* @__PURE__ */ e($, { type: "info", message: "这是 DPanel 内的内容区域" }),
5592
5609
  /* @__PURE__ */ e(ve, { title: "面板内音乐卡片", artist: "D-Music", duration: "3:42" }),
5593
- /* @__PURE__ */ e(X, { value: 70, showLabel: !0, variant: "gradient" }),
5610
+ /* @__PURE__ */ e(Z, { value: 70, showLabel: !0, variant: "gradient" }),
5594
5611
  /* @__PURE__ */ e(j, { label: "面板内输入框", placeholder: "输入内容..." })
5595
5612
  ] })
5596
5613
  }
5597
5614
  ),
5598
- /* @__PURE__ */ e(b, { title: "星力值增长曲线", section: "§1.3" }),
5599
- /* @__PURE__ */ i(k, { padding: "md", children: [
5600
- /* @__PURE__ */ i("div", { className: "flex items-center justify-between mb-3", children: [
5615
+ /* @__PURE__ */ e(p, { title: "星力值增长曲线", section: "§1.3" }),
5616
+ /* @__PURE__ */ s(k, { padding: "md", children: [
5617
+ /* @__PURE__ */ s("div", { className: "flex items-center justify-between mb-3", children: [
5601
5618
  /* @__PURE__ */ e("p", { className: "text-sm font-medium", style: { color: "var(--dm-text-primary)" }, children: "星力值趋势" }),
5602
- /* @__PURE__ */ e(dr, { data: Oe, filename: "starpower", label: "导出" })
5619
+ /* @__PURE__ */ e(lr, { data: Oe, filename: "starpower", label: "导出" })
5603
5620
  ] }),
5604
- /* @__PURE__ */ e(rr, { data: Oe, height: 220, lang: t })
5621
+ /* @__PURE__ */ e(nr, { data: Oe, height: 220, lang: t })
5605
5622
  ] }),
5606
- /* @__PURE__ */ e(b, { title: "情绪分布图", section: "§1.3" }),
5607
- /* @__PURE__ */ e(k, { padding: "md", children: /* @__PURE__ */ e(or, { data: ur, lang: t }) }),
5608
- /* @__PURE__ */ e(b, { title: "播放统计", section: "§1.3" }),
5609
- /* @__PURE__ */ e(k, { padding: "md", children: /* @__PURE__ */ e(ir, { data: mr, height: 220, lang: t }) }),
5610
- /* @__PURE__ */ e(b, { title: "成就进度环网格", section: "§1.3" }),
5611
- /* @__PURE__ */ e(k, { padding: "md", children: /* @__PURE__ */ e(sr, { items: fr, columns: 4 }) }),
5612
- /* @__PURE__ */ e(b, { title: "数据统计卡片", section: "§1.3" }),
5613
- /* @__PURE__ */ i("div", { className: "grid grid-cols-2 md:grid-cols-4 gap-3", children: [
5614
- /* @__PURE__ */ e(ne, { label: "总播放量", value: "12.8K", change: 15, trend: [80, 90, 85, 110, 130, 120, 150], icon: /* @__PURE__ */ e(It, { className: "w-4 h-4" }) }),
5615
- /* @__PURE__ */ e(ne, { label: "总收藏", value: "3,240", change: 8, trend: [40, 55, 50, 65, 70, 68, 80], icon: /* @__PURE__ */ e(Dt, { className: "w-4 h-4" }) }),
5616
- /* @__PURE__ */ e(ne, { label: "星力值", value: "1,200", change: 25, trend: [120, 280, 450, 620, 890, 1200], icon: /* @__PURE__ */ e(Te, { className: "w-4 h-4" }) }),
5617
- /* @__PURE__ */ e(ne, { label: "创作数", value: "47", change: -3, trend: [12, 15, 10, 8, 6, 5], icon: /* @__PURE__ */ e(ae, { className: "w-4 h-4" }) })
5623
+ /* @__PURE__ */ e(p, { title: "情绪分布图", section: "§1.3" }),
5624
+ /* @__PURE__ */ e(k, { padding: "md", children: /* @__PURE__ */ e(ir, { data: mr, lang: t }) }),
5625
+ /* @__PURE__ */ e(p, { title: "播放统计", section: "§1.3" }),
5626
+ /* @__PURE__ */ e(k, { padding: "md", children: /* @__PURE__ */ e(sr, { data: fr, height: 220, lang: t }) }),
5627
+ /* @__PURE__ */ e(p, { title: "成就进度环网格", section: "§1.3" }),
5628
+ /* @__PURE__ */ e(k, { padding: "md", children: /* @__PURE__ */ e(dr, { items: pr, columns: 4 }) }),
5629
+ /* @__PURE__ */ e(p, { title: "数据统计卡片", section: "§1.3" }),
5630
+ /* @__PURE__ */ s("div", { className: "grid grid-cols-2 md:grid-cols-4 gap-3", children: [
5631
+ /* @__PURE__ */ e(re, { label: "总播放量", value: "12.8K", change: 15, trend: [80, 90, 85, 110, 130, 120, 150], icon: /* @__PURE__ */ e(It, { className: "w-4 h-4" }) }),
5632
+ /* @__PURE__ */ e(re, { label: "总收藏", value: "3,240", change: 8, trend: [40, 55, 50, 65, 70, 68, 80], icon: /* @__PURE__ */ e(Dt, { className: "w-4 h-4" }) }),
5633
+ /* @__PURE__ */ e(re, { label: "星力值", value: "1,200", change: 25, trend: [120, 280, 450, 620, 890, 1200], icon: /* @__PURE__ */ e(Te, { className: "w-4 h-4" }) }),
5634
+ /* @__PURE__ */ e(re, { label: "创作数", value: "47", change: -3, trend: [12, 15, 10, 8, 6, 5], icon: /* @__PURE__ */ e(te, { className: "w-4 h-4" }) })
5618
5635
  ] }),
5619
- /* @__PURE__ */ e(b, { title: "迷你趋势线", section: "§1.3" }),
5620
- /* @__PURE__ */ e(k, { padding: "md", children: /* @__PURE__ */ i("div", { className: "flex items-center gap-6", children: [
5621
- /* @__PURE__ */ i("div", { className: "flex items-center gap-2", children: [
5636
+ /* @__PURE__ */ e(p, { title: "迷你趋势线", section: "§1.3" }),
5637
+ /* @__PURE__ */ e(k, { padding: "md", children: /* @__PURE__ */ s("div", { className: "flex items-center gap-6", children: [
5638
+ /* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
5622
5639
  /* @__PURE__ */ e("span", { className: "text-xs", style: { color: "var(--dm-text-tertiary)" }, children: "上升趋势:" }),
5623
- /* @__PURE__ */ e(oe, { data: [10, 20, 15, 30, 25, 40, 45], color: "#22C55E" })
5640
+ /* @__PURE__ */ e(ne, { data: [10, 20, 15, 30, 25, 40, 45], color: "#22C55E" })
5624
5641
  ] }),
5625
- /* @__PURE__ */ i("div", { className: "flex items-center gap-2", children: [
5642
+ /* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
5626
5643
  /* @__PURE__ */ e("span", { className: "text-xs", style: { color: "var(--dm-text-tertiary)" }, children: "下降趋势:" }),
5627
- /* @__PURE__ */ e(oe, { data: [45, 40, 35, 30, 20, 15, 10], color: "#EF4444" })
5644
+ /* @__PURE__ */ e(ne, { data: [45, 40, 35, 30, 20, 15, 10], color: "#EF4444" })
5628
5645
  ] }),
5629
- /* @__PURE__ */ i("div", { className: "flex items-center gap-2", children: [
5646
+ /* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
5630
5647
  /* @__PURE__ */ e("span", { className: "text-xs", style: { color: "var(--dm-text-tertiary)" }, children: "波动趋势:" }),
5631
- /* @__PURE__ */ e(oe, { data: [20, 35, 15, 40, 10, 30, 25], color: "#8B5CF6" })
5648
+ /* @__PURE__ */ e(ne, { data: [20, 35, 15, 40, 10, 30, 25], color: "#8B5CF6" })
5632
5649
  ] })
5633
5650
  ] }) }),
5634
- /* @__PURE__ */ e(b, { title: "排行榜列表", section: "§1.3" }),
5651
+ /* @__PURE__ */ e(p, { title: "排行榜列表", section: "§1.3" }),
5635
5652
  /* @__PURE__ */ e(k, { padding: "md", children: /* @__PURE__ */ e(
5636
- cr,
5653
+ ur,
5637
5654
  {
5638
5655
  lang: t,
5639
5656
  valueLabel: t === "zh" ? "星力值" : "SP",
@@ -5649,27 +5666,27 @@ const Ha = {
5649
5666
  ) }),
5650
5667
  /* @__PURE__ */ e("div", { className: "text-center py-8", children: /* @__PURE__ */ e("p", { className: "text-[10px]", style: { color: "var(--dm-text-disabled)" }, children: "D-Music Design System · §1.1 组件库 · §1.2 面板 · §1.3 数据可视化 · §1.4 主题系统 · v1.0.0" }) })
5651
5668
  ] });
5652
- }, pr = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODgiIGhlaWdodD0iODgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBvcGFjaXR5PSIuMyIgZmlsbD0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIzLjciPjxyZWN0IHg9IjE2IiB5PSIxNiIgd2lkdGg9IjU2IiBoZWlnaHQ9IjU2IiByeD0iNiIvPjxwYXRoIGQ9Im0xNiA1OCAxNi0xOCAzMiAzMiIvPjxjaXJjbGUgY3g9IjUzIiBjeT0iMzUiIHI9IjciLz48L3N2Zz4KCg==";
5669
+ }, gr = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODgiIGhlaWdodD0iODgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBvcGFjaXR5PSIuMyIgZmlsbD0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIzLjciPjxyZWN0IHg9IjE2IiB5PSIxNiIgd2lkdGg9IjU2IiBoZWlnaHQ9IjU2IiByeD0iNiIvPjxwYXRoIGQ9Im0xNiA1OCAxNi0xOCAzMiAzMiIvPjxjaXJjbGUgY3g9IjUzIiBjeT0iMzUiIHI9IjciLz48L3N2Zz4KCg==";
5653
5670
  function zs(t) {
5654
5671
  const [a, r] = L(!1), n = () => {
5655
5672
  r(!0);
5656
- }, { src: s, alt: l, style: c, className: u, ...d } = t;
5673
+ }, { src: i, alt: d, style: c, className: u, ...l } = t;
5657
5674
  return a ? /* @__PURE__ */ e(
5658
5675
  "div",
5659
5676
  {
5660
5677
  className: `inline-block bg-gray-100 text-center align-middle ${u ?? ""}`,
5661
5678
  style: c,
5662
- children: /* @__PURE__ */ e("div", { className: "flex items-center justify-center w-full h-full", children: /* @__PURE__ */ e("img", { src: pr, alt: "Error loading image", ...d, "data-original-url": s }) })
5679
+ children: /* @__PURE__ */ e("div", { className: "flex items-center justify-center w-full h-full", children: /* @__PURE__ */ e("img", { src: gr, alt: "Error loading image", ...l, "data-original-url": i }) })
5663
5680
  }
5664
- ) : /* @__PURE__ */ e("img", { src: s, alt: l, className: u, style: c, ...d, onError: n });
5681
+ ) : /* @__PURE__ */ e("img", { src: i, alt: d, className: u, style: c, ...l, onError: n });
5665
5682
  }
5666
5683
  export {
5667
5684
  Mr as Accordion,
5668
5685
  Ar as AccordionContent,
5669
5686
  Er as AccordionItem,
5670
5687
  Rr as AccordionTrigger,
5671
- sr as AchievementGrid,
5672
- J as AchievementRing,
5688
+ dr as AchievementGrid,
5689
+ q as AchievementRing,
5673
5690
  jr as Alert,
5674
5691
  Fr as AlertDescription,
5675
5692
  Br as AlertDialog,
@@ -5679,8 +5696,8 @@ export {
5679
5696
  Wr as AlertDialogDescription,
5680
5697
  Hr as AlertDialogFooter,
5681
5698
  Or as AlertDialogHeader,
5682
- aa as AlertDialogOverlay,
5683
- ta as AlertDialogPortal,
5699
+ Xt as AlertDialogOverlay,
5700
+ Zt as AlertDialogPortal,
5684
5701
  Vr as AlertDialogTitle,
5685
5702
  $r as AlertDialogTrigger,
5686
5703
  Lr as AlertTitle,
@@ -5696,7 +5713,7 @@ export {
5696
5713
  en as BreadcrumbList,
5697
5714
  rn as BreadcrumbPage,
5698
5715
  nn as BreadcrumbSeparator,
5699
- _e as Button,
5716
+ Ie as Button,
5700
5717
  sn as Calendar,
5701
5718
  dn as Card,
5702
5719
  mn as CardAction,
@@ -5713,14 +5730,14 @@ export {
5713
5730
  yn as ChartContainer,
5714
5731
  kn as ChartLegend,
5715
5732
  Cn as ChartLegendContent,
5716
- oa as ChartStyle,
5733
+ Yt as ChartStyle,
5717
5734
  wn as ChartTooltip,
5718
5735
  Nn as ChartTooltipContent,
5719
5736
  zn as Checkbox,
5720
5737
  Sn as Collapsible,
5721
5738
  Dn as CollapsibleContent,
5722
5739
  In as CollapsibleTrigger,
5723
- fa as Command,
5740
+ ia as Command,
5724
5741
  Mn as CommandDialog,
5725
5742
  An as CommandEmpty,
5726
5743
  jn as CommandGroup,
@@ -5744,37 +5761,37 @@ export {
5744
5761
  Un as ContextMenuSubContent,
5745
5762
  Kn as ContextMenuSubTrigger,
5746
5763
  Gn as ContextMenuTrigger,
5747
- ar as DATA_VIZ_PALETTE,
5748
- Ge as DAchievementCard,
5749
- M as DBadge,
5750
- Qa as DBreadcrumb,
5764
+ rr as DATA_VIZ_PALETTE,
5765
+ $e as DAchievementCard,
5766
+ T as DBadge,
5767
+ Ka as DBreadcrumb,
5751
5768
  N as DButton,
5752
5769
  k as DCard,
5753
- Xa as DEmptyState,
5770
+ Oa as DEmptyState,
5754
5771
  $ as DFeedback,
5755
5772
  j as DInput,
5756
- qa as DList,
5773
+ Ha as DList,
5757
5774
  xe as DListItem,
5758
- Ya as DModal,
5775
+ Wa as DModal,
5759
5776
  ve as DMusicCard,
5760
5777
  Cs as DMusicShowcase,
5761
- tr as DPanel,
5762
- X as DProgress,
5778
+ Za as DPanel,
5779
+ Z as DProgress,
5763
5780
  he as DSpinner,
5764
5781
  ye as DTabBar,
5765
5782
  O as DTag,
5766
5783
  ks as DToast,
5767
- $e as DUserCard,
5768
- dr as DataExportButton,
5769
- ia as Dialog,
5784
+ Be as DUserCard,
5785
+ lr as DataExportButton,
5786
+ Qt as Dialog,
5770
5787
  Pn as DialogClose,
5771
- la as DialogContent,
5772
- ma as DialogDescription,
5788
+ aa as DialogContent,
5789
+ oa as DialogDescription,
5773
5790
  Tn as DialogFooter,
5774
- ca as DialogHeader,
5775
- da as DialogOverlay,
5776
- sa as DialogPortal,
5777
- ua as DialogTitle,
5791
+ ra as DialogHeader,
5792
+ ta as DialogOverlay,
5793
+ ea as DialogPortal,
5794
+ na as DialogTitle,
5778
5795
  _n as DialogTrigger,
5779
5796
  to as Drawer,
5780
5797
  ro as DrawerClose,
@@ -5782,8 +5799,8 @@ export {
5782
5799
  lo as DrawerDescription,
5783
5800
  io as DrawerFooter,
5784
5801
  oo as DrawerHeader,
5785
- ga as DrawerOverlay,
5786
- pa as DrawerPortal,
5802
+ da as DrawerOverlay,
5803
+ sa as DrawerPortal,
5787
5804
  so as DrawerTitle,
5788
5805
  ao as DrawerTrigger,
5789
5806
  co as DropdownMenu,
@@ -5801,7 +5818,7 @@ export {
5801
5818
  Co as DropdownMenuSubContent,
5802
5819
  ko as DropdownMenuSubTrigger,
5803
5820
  mo as DropdownMenuTrigger,
5804
- or as EmotionPieChart,
5821
+ ir as EmotionPieChart,
5805
5822
  zo as Form,
5806
5823
  _o as FormControl,
5807
5824
  Po as FormDescription,
@@ -5813,12 +5830,12 @@ export {
5813
5830
  Ro as HoverCardContent,
5814
5831
  Eo as HoverCardTrigger,
5815
5832
  zs as ImageWithFallback,
5816
- va as Input,
5833
+ ca as Input,
5817
5834
  Ao as InputOTP,
5818
5835
  jo as InputOTPGroup,
5819
5836
  Fo as InputOTPSeparator,
5820
5837
  Lo as InputOTPSlot,
5821
- ba as Label,
5838
+ la as Label,
5822
5839
  Bo as Menubar,
5823
5840
  Ko as MenubarCheckboxItem,
5824
5841
  Vo as MenubarContent,
@@ -5826,7 +5843,7 @@ export {
5826
5843
  Wo as MenubarItem,
5827
5844
  Zo as MenubarLabel,
5828
5845
  $o as MenubarMenu,
5829
- ha as MenubarPortal,
5846
+ ua as MenubarPortal,
5830
5847
  Oo as MenubarRadioGroup,
5831
5848
  Uo as MenubarRadioItem,
5832
5849
  Xo as MenubarSeparator,
@@ -5842,15 +5859,15 @@ export {
5842
5859
  oi as NavigationMenuLink,
5843
5860
  ti as NavigationMenuList,
5844
5861
  ri as NavigationMenuTrigger,
5845
- ya as NavigationMenuViewport,
5862
+ fa as NavigationMenuViewport,
5846
5863
  si as Pagination,
5847
5864
  di as PaginationContent,
5848
5865
  mi as PaginationEllipsis,
5849
5866
  li as PaginationItem,
5850
- nt as PaginationLink,
5867
+ et as PaginationLink,
5851
5868
  ui as PaginationNext,
5852
5869
  ci as PaginationPrevious,
5853
- ir as PlayStatsChart,
5870
+ sr as PlayStatsChart,
5854
5871
  fi as Popover,
5855
5872
  bi as PopoverAnchor,
5856
5873
  gi as PopoverContent,
@@ -5858,30 +5875,30 @@ export {
5858
5875
  vi as Progress,
5859
5876
  hi as RadioGroup,
5860
5877
  xi as RadioGroupItem,
5861
- cr as RankingList,
5878
+ ur as RankingList,
5862
5879
  Ni as ResizableHandle,
5863
5880
  wi as ResizablePanel,
5864
5881
  yi as ResizablePanelGroup,
5865
5882
  ki as ScrollArea,
5866
- wa as ScrollBar,
5883
+ pa as ScrollBar,
5867
5884
  Ci as Select,
5868
5885
  Di as SelectContent,
5869
5886
  zi as SelectGroup,
5870
5887
  Pi as SelectItem,
5871
5888
  _i as SelectLabel,
5872
- ka as SelectScrollDownButton,
5873
- Na as SelectScrollUpButton,
5889
+ ba as SelectScrollDownButton,
5890
+ ga as SelectScrollUpButton,
5874
5891
  Ti as SelectSeparator,
5875
5892
  Ii as SelectTrigger,
5876
5893
  Si as SelectValue,
5877
- Ca as Separator,
5878
- za as Sheet,
5894
+ va as Separator,
5895
+ ha as Sheet,
5879
5896
  Ei as SheetClose,
5880
- Da as SheetContent,
5881
- Ta as SheetDescription,
5897
+ wa as SheetContent,
5898
+ Ca as SheetDescription,
5882
5899
  Ri as SheetFooter,
5883
- _a as SheetHeader,
5884
- Pa as SheetTitle,
5900
+ Na as SheetHeader,
5901
+ ka as SheetTitle,
5885
5902
  Mi as SheetTrigger,
5886
5903
  ji as Sidebar,
5887
5904
  Vi as SidebarContent,
@@ -5906,11 +5923,11 @@ export {
5906
5923
  Fi as SidebarRail,
5907
5924
  Hi as SidebarSeparator,
5908
5925
  Li as SidebarTrigger,
5909
- Be as Skeleton,
5926
+ Fe as Skeleton,
5910
5927
  ns as Slider,
5911
- oe as SparklineChart,
5912
- rr as StarPowerChart,
5913
- ne as StatCard,
5928
+ ne as SparklineChart,
5929
+ nr as StarPowerChart,
5930
+ re as StatCard,
5914
5931
  is as Switch,
5915
5932
  ss as Table,
5916
5933
  ls as TableBody,
@@ -5929,17 +5946,17 @@ export {
5929
5946
  ys as Toggle,
5930
5947
  ws as ToggleGroup,
5931
5948
  Ns as ToggleGroupItem,
5932
- Ea as Tooltip,
5933
- Aa as TooltipContent,
5934
- ot as TooltipProvider,
5935
- Ra as TooltipTrigger,
5936
- ra as badgeVariants,
5937
- K as buttonVariants,
5949
+ Sa as Tooltip,
5950
+ Da as TooltipContent,
5951
+ tt as TooltipProvider,
5952
+ Ia as TooltipTrigger,
5953
+ qt as badgeVariants,
5954
+ H as buttonVariants,
5938
5955
  o as cn,
5939
- xa as navigationMenuTriggerStyle,
5940
- st as toggleVariants,
5941
- pe as useFormField,
5942
- Ma as useIsMobile,
5943
- ge as useSidebar
5956
+ ma as navigationMenuTriggerStyle,
5957
+ rt as toggleVariants,
5958
+ fe as useFormField,
5959
+ za as useIsMobile,
5960
+ pe as useSidebar
5944
5961
  };
5945
5962
  //# sourceMappingURL=index.js.map